Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eventual/core

Package Overview
Dependencies
Maintainers
2
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eventual/core - npm Package Compare versions

Comparing version 0.20.4 to 0.21.0

44

lib/cjs/activity.d.ts

@@ -0,1 +1,2 @@

import { ExecutionID } from "./execution.js";
import { FunctionRuntimeProps } from "./function-props.js";

@@ -5,14 +6,30 @@ import { AsyncTokenSymbol } from "./internal/activity.js";

import { SourceLocation } from "./internal/service-spec.js";
import type { DurationSchedule } from "./schedule.js";
import type { SendActivityHeartbeatResponse } from "./service-client.js";
import { ExecutionID } from "./execution.js";
import type { DurationSchedule, Schedule } from "./schedule.js";
import { SendActivityHeartbeatResponse } from "./service-client.js";
export interface ActivityRuntimeProps extends FunctionRuntimeProps {
}
export interface ActivityOptions extends FunctionRuntimeProps {
/**
* Activity options available when invoked by a workflow.
*/
export interface ActivityInvocationOptions {
/**
* How long the workflow will wait for the activity to complete or fail.
* A promise whose resolution (fulfillment or rejection) determines the timeout for an activity.
*
* @default - workflow will wait forever.
*
* Overrides any timeout configured on the activity definition.
*
* ```ts
* // times out after 10 minutes
* myActivity("someInput", { timeout: duration(10, "minutes") });
* // times out when myTimeoutActivity resolves
* myActivity("someInput", { timeout: myTimeoutActivity() });
* // times out when the value x is equal to 100
* myActivity("someInput", { timeout: condition(() => x === 100) });
* // times out after 10 minutes, like the first example
* myActivity("someInput", { timeout: Schedule.duration(10, "minutes") });
* ```
*
* @default - the configured activity timeout or the workflow will await forever.
*/
timeout?: DurationSchedule;
timeout?: Promise<any> | Schedule;
/**

@@ -30,2 +47,13 @@ * For long running activities, it is suggested that they report back that they

}
/**
* Activity options available at definition time.
*/
export interface ActivityOptions extends Omit<ActivityInvocationOptions, "timeout">, FunctionRuntimeProps {
/**
* How long the workflow will wait for the activity to complete or fail.
*
* @default - workflow will wait forever.
*/
timeout?: DurationSchedule;
}
export interface ActivitySpec<Name extends string = string> {

@@ -42,3 +70,3 @@ /**

}
export type ActivityArguments<Input = any> = [Input] extends [undefined] ? [input?: Input] : [input: Input];
export type ActivityArguments<Input = any> = [Input] extends [undefined] ? [input?: Input, options?: ActivityInvocationOptions] : [input: Input, options?: ActivityInvocationOptions];
export interface Activity<Name extends string = string, Input = any, Output = any> extends Omit<ActivitySpec<Name>, "name"> {

@@ -45,0 +73,0 @@ kind: "Activity";

30

lib/cjs/activity.js

@@ -7,5 +7,8 @@ "use strict";

const await_time_call_js_1 = require("./internal/calls/await-time-call.js");
const eventual_js_1 = require("./internal/eventual.js");
const flags_js_1 = require("./internal/flags.js");
const global_js_1 = require("./internal/global.js");
const schedule_js_1 = require("./internal/schedule.js");
const service_spec_js_1 = require("./internal/service-spec.js");
const util_js_1 = require("./internal/util.js");
/**

@@ -59,8 +62,23 @@ * When returned from an {@link activity}, tells the system to make the current

// register the handler to be looked up during execution.
const func = ((...handlerArgs) => {
const func = ((input, options) => {
if ((0, flags_js_1.isOrchestratorWorker)()) {
const timeout = options?.timeout ?? opts?.timeout;
if (timeout &&
!((0, eventual_js_1.isEventual)(timeout) ||
(0, schedule_js_1.isDurationSchedule)(timeout) ||
(0, schedule_js_1.isTimeSchedule)(timeout))) {
throw new Error("Timeout promise must be an Eventual or a Schedule.");
}
// if we're in the orchestrator, return a command to invoke the activity in the worker function
return (0, activity_call_js_1.createActivityCall)(name, handlerArgs[0], opts?.timeout
? (0, await_time_call_js_1.createAwaitDurationCall)(opts.timeout.dur, opts.timeout.unit)
: undefined, opts?.heartbeatTimeout);
return (0, activity_call_js_1.createActivityCall)(name, input, timeout
? // if the timeout is an eventual already, just use that
(0, eventual_js_1.isEventual)(timeout)
? timeout
: // otherwise make the right eventual type
(0, schedule_js_1.isDurationSchedule)(timeout)
? (0, await_time_call_js_1.createAwaitDurationCall)(timeout.dur, timeout.unit)
: (0, schedule_js_1.isTimeSchedule)(timeout)
? (0, await_time_call_js_1.createAwaitTimeCall)(timeout.isoDate)
: (0, util_js_1.assertNever)(timeout)
: undefined, options?.heartbeatTimeout ?? opts?.heartbeatTimeout);
}

@@ -77,3 +95,3 @@ else {

// calling the activity from outside the orchestrator just calls the handler
return handler(handlerArgs[0], context);
return handler(input, context);
}

@@ -98,2 +116,2 @@ });

exports.activity = activity;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWN0aXZpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0Esd0RBQTBEO0FBQzFELHdFQUF1RTtBQUN2RSw0RUFBOEU7QUFNOUUsa0RBQTZFO0FBQzdFLG9EQUk4QjtBQUM5QixnRUFBOEU7QUFxSzlFOzs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQW9CRztBQUNJLEtBQUssVUFBVSxXQUFXLENBQy9CLFlBQXFEO0lBRXJELElBQUksQ0FBQyxJQUFBLDJCQUFnQixHQUFFLEVBQUU7UUFDdkIsTUFBTSxJQUFJLEtBQUssQ0FBQyx5REFBeUQsQ0FBQyxDQUFDO0tBQzVFO0lBQ0QsTUFBTSxlQUFlLEdBQUcsSUFBQSw4QkFBa0IsR0FBRSxDQUFDO0lBQzdDLElBQUksQ0FBQyxlQUFlLEVBQUU7UUFDcEIsTUFBTSxJQUFJLEtBQUssQ0FDYiw4RkFBOEYsQ0FDL0YsQ0FBQztLQUNIO0lBQ0QsTUFBTSxZQUFZLENBQUMsZUFBZSxDQUFDLFVBQVUsQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUNyRCxPQUFPO1FBQ0wsQ0FBQyw4QkFBZ0IsQ0FBQyxFQUFFLDhCQUFvRDtLQUN6RSxDQUFDO0FBQ0osQ0FBQztBQWhCRCxrQ0FnQkM7QUFpQkQsU0FBZ0IsUUFBUSxDQUN0QixHQUFHLElBaUJzRD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W9uQ29udGV4dCB7XG4gIG5hbWU6IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBBY3Rpdml0eUludm9jYXRpb25Db250ZXh0IHtcbiAgLyoqXG4gICAqIEEgdG9rZW4gdXNlZCB0byBjb21wbGV0ZSBvciBoZWFydGJlYXQgYW4gYWN0aXZpdHkgd2hlbiBydW5uaW5nIGFzeW5jLlxuICAgKi9cbiAgdG9rZW46IHN0cmluZztcbiAgLyoqXG4gICAqIElTTyA4NjAxIHRpbWVzdGFtcCB3aGVuIHRoZSBhY3Rpdml0eSB3YXMgZmlyc3Qgc2NoZWR1bGVkLlxuICAgKi9cbiAgc2NoZWR1bGVkVGltZTogc3RyaW5nO1xuICAvKipcbiAgICogQ3VycmVudCByZXRyeSBjb3VudCwgc3RhcnRpbmcgYXQgMC5cbiAgICovXG4gIHJldHJ5OiBudW1iZXI7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgQWN0aXZpdHlDb250ZXh0IHtcbiAgLyoqXG4gICAqIFdvcmtmbG93IGV4ZWN1dGlvbiB3aGljaCBzdGFydGVkIHRoZSBhY3Rpdml0eS5cbiAgICovXG4gIGV4ZWN1dGlvbjogQWN0aXZpdHlFeGVjdXRpb25Db250ZXh0O1xuICAvKipcbiAgICogSW5mb3JtYXRpb24gYWJvdXQgdGhlIGFjdGl2aXR5IGJlaW5nIGludm9rZWQuXG4gICAqL1xuICBhY3Rpdml0eTogQWN0aXZpdHlEZWZpbml0aW9uQ29udGV4dDtcbiAgLyoqXG4gICAqIEluZm9ybWF0aW9uIGFib3V0IHRoaXMgc3BlY2lmaWMgaW52b2NhdGlvbiBvZiB0aGUgZXhlY3V0aW9uLlxuICAgKi9cbiAgaW52b2NhdGlvbjogQWN0aXZpdHlJbnZvY2F0aW9uQ29udGV4dDtcbn1cbiJdfQ==
import { ChildExecution } from "../../execution.js";
import { WorkflowOptions } from "../../workflow.js";
import { WorkflowExecutionOptions } from "../../workflow.js";
import { Eventual, EventualBase, EventualKind } from "../eventual.js";

@@ -13,5 +13,13 @@ import { Result } from "../result.js";

seq?: number;
opts?: WorkflowOptions;
opts?: WorkflowExecutionOptions;
/**
* An Eventual/Promise that determines when a child workflow should timeout.
*
* This timeout is separate from the timeout passed to the workflow (opts.timeout), which can only be a relative duration.
*
* TODO: support cancellation of child workflow.
*/
timeout: Eventual<any>;
}
export declare function createWorkflowCall(name: string, input?: any, opts?: WorkflowOptions): WorkflowCall;
export declare function createWorkflowCall(name: string, input?: any, opts?: WorkflowExecutionOptions, timeout?: Eventual<any>): WorkflowCall;
//# sourceMappingURL=workflow-call.d.ts.map

@@ -12,3 +12,3 @@ "use strict";

exports.isWorkflowCall = isWorkflowCall;
function createWorkflowCall(name, input, opts) {
function createWorkflowCall(name, input, opts, timeout) {
const call = (0, global_js_1.registerEventual)((0, eventual_js_1.createEventual)(eventual_js_1.EventualKind.WorkflowCall, {

@@ -18,2 +18,3 @@ input,

opts,
timeout,
}));

@@ -33,2 +34,2 @@ // create a reference to the child workflow started at a sequence in this execution.

exports.createWorkflowCall = createWorkflowCall;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3ctY2FsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9pbnRlcm5hbC9jYWxscy93b3JrZmxvdy1jYWxsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDRDQUFnRDtBQUVoRCxnREFNd0I7QUFDeEIsNENBQWdEO0FBRWhELCtEQUE2RDtBQUU3RCxTQUFnQixjQUFjLENBQUksQ0FBYztJQUM5QyxPQUFPLElBQUEsOEJBQWdCLEVBQUMsMEJBQVksQ0FBQyxZQUFZLEVBQUUsQ0FBQyxDQUFDLENBQUM7QUFDeEQsQ0FBQztBQUZELHdDQUVDO0FBY0QsU0FBZ0Isa0JBQWtCLENBQ2hDLElBQVksRUFDWixLQUFXLEVBQ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BzZXF1ZW5jZSBpbiB0aGlzIGV4ZWN1dGlvbi5cbiAgLy8gdGhpcyByZWZlcmVuY2Ugd2lsbCBiZSByZXNvbHZlZCBieSB0aGUgcnVudGltZS5cbiAgY2FsbC5zZW5kU2lnbmFsID0gZnVuY3Rpb24gKHNpZ25hbCwgcGF5bG9hZD8pIHtcbiAgICBjb25zdCBzaWduYWxJZCA9IHR5cGVvZiBzaWduYWwgPT09IFwic3RyaW5nXCIgPyBzaWduYWwgOiBzaWduYWwuaWQ7XG4gICAgcmV0dXJuIGNyZWF0ZVNlbmRTaWduYWxDYWxsKFxuICAgICAge1xuICAgICAgICB0eXBlOiBTaWduYWxUYXJnZXRUeXBlLkNoaWxkRXhlY3V0aW9uLFxuICAgICAgICBzZXE6IGNhbGwuc2VxISxcbiAgICAgICAgd29ya2Zsb3dOYW1lOiBjYWxsLm5hbWUsXG4gICAgICB9LFxuICAgICAgc2lnbmFsSWQsXG4gICAgICBwYXlsb2FkXG4gICAgKSBhcyB1bmtub3duIGFzIGFueTtcbiAgfTtcblxuICByZXR1cm4gY2FsbDtcbn1cbiJdfQ==

@@ -6,5 +6,5 @@ "use strict";

exports.eventEnvelopeSchema = zod_1.z.object({
name: zod_1.z.string(),
event: zod_1.z.record(zod_1.z.any()),
name: /* @__PURE__ */ zod_1.z.string(),
event: /* @__PURE__ */ zod_1.z.record(zod_1.z.any()),
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW50ZXJuYWwvZXZlbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNkJBQXdCO0FBRVgsUUFBQSxtQkFBbUIsR0FBbUIsT0FBQyxDQUFDLE1BQU0sQ0FBQztJQUMxRCxJQUFJLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRTtJQUNoQixLQUFLLEVBQUUsT0FBQyxDQUFDLE1BQU0sQ0FBQyxPQUFDLENBQUMsR0FBRyxFQUFFLENBQUM7Q0FDekIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgeiB9IGZyb20gXCJ6b2RcIjtcblxuZXhwb3J0IGNvbnN0IGV2ZW50RW52ZWxvcGVTY2hlbWEgPSAvKiBAX19QVVJFX18gKi8gei5vYmplY3Qoe1xuICBuYW1lOiB6LnN0cmluZygpLFxuICBldmVudDogei5yZWNvcmQoei5hbnkoKSksXG59KTtcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW50ZXJuYWwvZXZlbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNkJBQXdCO0FBRVgsUUFBQSxtQkFBbUIsR0FBbUIsT0FBQyxDQUFDLE1BQU0sQ0FBQztJQUMxRCxJQUFJLEVBQUUsZUFBZSxDQUFDLE9BQUMsQ0FBQyxNQUFNLEVBQUU7SUFDaEMsS0FBSyxFQUFFLGVBQWUsQ0FBQyxPQUFDLENBQUMsTUFBTSxDQUFDLE9BQUMsQ0FBQyxHQUFHLEVBQUUsQ0FBQztDQUN6QyxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB6IH0gZnJvbSBcInpvZFwiO1xuXG5leHBvcnQgY29uc3QgZXZlbnRFbnZlbG9wZVNjaGVtYSA9IC8qIEBfX1BVUkVfXyAqLyB6Lm9iamVjdCh7XG4gIG5hbWU6IC8qIEBfX1BVUkVfXyAqLyB6LnN0cmluZygpLFxuICBldmVudDogLyogQF9fUFVSRV9fICovIHoucmVjb3JkKHouYW55KCkpLFxufSk7XG4iXX0=

@@ -56,3 +56,12 @@ import { z } from "zod";

export declare const startExecutionRequestSchema: z.ZodObject<{
timeout: z.ZodOptional<z.ZodObject<{
timeout: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"Time">;
isoDate: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "Time";
isoDate: string;
}, {
type: "Time";
isoDate: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"Duration">;

@@ -69,3 +78,3 @@ dur: z.ZodNumber;

unit: "second" | "seconds" | "minute" | "minutes" | "hour" | "hours" | "day" | "days" | "year" | "years";
}>>;
}>]>>;
executionName: z.ZodOptional<z.ZodString>;

@@ -75,2 +84,3 @@ workflow: z.ZodString;

}, "strip", z.ZodTypeAny, {
input?: any;
timeout?: {

@@ -80,7 +90,10 @@ type: "Duration";

unit: "second" | "seconds" | "minute" | "minutes" | "hour" | "hours" | "day" | "days" | "year" | "years";
} | {
type: "Time";
isoDate: string;
} | undefined;
input?: any;
executionName?: string | undefined;
workflow: string;
}, {
input?: any;
timeout?: {

@@ -90,4 +103,6 @@ type: "Duration";

unit: "second" | "seconds" | "minute" | "minutes" | "hour" | "hours" | "day" | "days" | "year" | "years";
} | {
type: "Time";
isoDate: string;
} | undefined;
input?: any;
executionName?: string | undefined;

@@ -94,0 +109,0 @@ workflow: string;

@@ -10,45 +10,50 @@ "use strict";

exports.sortOrderSchema = zod_1.z.enum(["ASC", "DESC"]);
// Note: all top level zod builder functions should be labelled with pure
// to avoid them being considered side effects and bundled
exports.publishEventsRequestSchema = zod_1.z.object({
events: zod_1.z.array(event_js_1.eventEnvelopeSchema),
events: /* @__PURE__ */ zod_1.z.array(event_js_1.eventEnvelopeSchema),
});
exports.sendSignalRequestSchema = zod_1.z.object({
executionId: zod_1.z.string(),
signalId: zod_1.z.string(),
payload: zod_1.z.any(),
id: zod_1.z.string().optional(),
executionId: /* @__PURE__ */ zod_1.z.string(),
signalId: /* @__PURE__ */ zod_1.z.string(),
payload: /* @__PURE__ */ zod_1.z.any(),
id: /* @__PURE__ */ zod_1.z.string().optional(),
});
exports.startExecutionRequestSchema =
/* @__PURE__ */ workflow_js_1.workflowOptionsSchema.extend({
executionName: zod_1.z.string().optional(),
workflow: zod_1.z.string(),
input: zod_1.z.any().optional(),
executionName: /* @__PURE__ */ zod_1.z.string().optional(),
workflow: /* @__PURE__ */ zod_1.z.string(),
input: /* @__PURE__ */ zod_1.z.any().optional(),
});
exports.listExecutionsRequestSchema = zod_1.z.object({
statuses: zod_1.z.array(zod_1.z.nativeEnum(execution_js_1.ExecutionStatus)).optional(),
workflowName: zod_1.z.string().optional(),
nextToken: zod_1.z.string().optional(),
sortDirection: exports.sortOrderSchema.default("ASC").optional(),
maxResults: zod_1.z.number().default(100).optional(),
statuses: /* @__PURE__ */ zod_1.z.array(zod_1.z.nativeEnum(execution_js_1.ExecutionStatus)).optional(),
workflowName: /* @__PURE__ */ zod_1.z.string().optional(),
nextToken: /* @__PURE__ */ zod_1.z.string().optional(),
sortDirection: /* @__PURE__ */ exports.sortOrderSchema.default("ASC").optional(),
maxResults: /* @__PURE__ */ zod_1.z.number().default(100).optional(),
});
exports.listExecutionEventsRequestSchema = zod_1.z.object({
executionId: zod_1.z.string(),
sortDirection: exports.sortOrderSchema.default("ASC").optional(),
nextToken: zod_1.z.string().optional(),
maxResults: zod_1.z.number().default(100).optional(),
after: zod_1.z.string().optional().describe("Start returning after a data"),
executionId: /* @__PURE__ */ zod_1.z.string(),
sortDirection: /* @__PURE__ */ exports.sortOrderSchema.default("ASC").optional(),
nextToken: /* @__PURE__ */ zod_1.z.string().optional(),
maxResults: /* @__PURE__ */ zod_1.z.number().default(100).optional(),
after: /* @__PURE__ */ zod_1.z
.string()
.optional()
.describe("Start returning after a data"),
});
exports.sendActivitySuccessRequestSchema = zod_1.z.object({
type: zod_1.z.literal("Success"),
activityToken: zod_1.z.string(),
result: zod_1.z.any(),
type: /* @__PURE__ */ zod_1.z.literal("Success"),
activityToken: /* @__PURE__ */ zod_1.z.string(),
result: /* @__PURE__ */ zod_1.z.any(),
});
exports.sendActivityFailureRequestSchema = zod_1.z.object({
type: zod_1.z.literal("Failure"),
activityToken: zod_1.z.string(),
error: zod_1.z.string(),
message: zod_1.z.string().optional(),
type: /* @__PURE__ */ zod_1.z.literal("Failure"),
activityToken: /* @__PURE__ */ zod_1.z.string(),
error: /* @__PURE__ */ zod_1.z.string(),
message: /* @__PURE__ */ zod_1.z.string().optional(),
});
exports.sendActivityHeartbeatRequestSchema = zod_1.z.object({
type: zod_1.z.literal("Heartbeat"),
activityToken: zod_1.z.string(),
type: /* @__PURE__ */ zod_1.z.literal("Heartbeat"),
activityToken: /* @__PURE__ */ zod_1.z.string(),
});

@@ -72,2 +77,2 @@ exports.sendActivityUpdateSchema = zod_1.z.union([

exports.isSendActivityHeartbeatRequest = isSendActivityHeartbeatRequest;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnR1YWwtc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9pbnRlcm5hbC9ldmVudHVhbC1zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZCQUF3QjtBQUN4QixrREFBMEU7QUFFMUUseUNBQWlEO0FBRWpELCtDQUFzRDtBQUV6QyxRQUFBLGlDQUFpQyxHQUFHLFNBQVMsQ0FBQztBQUU5QyxRQUFBLGVBQWUsR0FBRyxPQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsS0FBSyxFQUFFLE1BQU0sQ0FBQyxDQUFDLENBQUM7QUFFMUMsUUFBQSwwQkFBMEIsR0FBbUIsT0FBQyxDQUFDLE1BQU0sQ0FBQztJQUNqRSxNQUFNLEVBQUUsT0FBQyxDQUFDLEtBQUssQ0FBQyw4QkFBbUIsQ0FBQztDQUNyQyxDQUFDLENBQUM7QUFhVSxRQUFBLHVCQUF1QixHQUFtQixPQUFDLENBQUMsTUFBTSxDQUFDO0lBQzlELFdBQVcsRUFBRSxPQUFD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FwidXBkYXRlQWN0aXZpdHlcIixcbiAgICBTZW5kQWN0aXZpdHlVcGRhdGUsXG4gICAgdm9pZCB8IFNlbmRBY3Rpdml0eUhlYXJ0YmVhdFJlc3BvbnNlXG4gID47XG59XG4iXX0=
import { z } from "zod";
import { DurationSchedule, DurationUnit, Schedule, TimeSchedule } from "../schedule.js";
import { DurationSchedule, DurationUnit, TimeSchedule } from "../schedule.js";
export declare function isDurationUnit(u: string): u is DurationUnit;
export declare function isDurationSchedule(schedule: Schedule): schedule is DurationSchedule;
export declare function isTimeSchedule(schedule: Schedule): schedule is TimeSchedule;
export declare function isDurationSchedule(schedule: any): schedule is DurationSchedule;
export declare function isTimeSchedule(schedule: any): schedule is TimeSchedule;
export declare const durationScheduleSchema: z.ZodObject<{

@@ -19,3 +19,3 @@ type: z.ZodLiteral<"Duration">;

}>;
export declare const TimeScheduleSchema: z.ZodObject<{
export declare const timeScheduleSchema: z.ZodObject<{
type: z.ZodLiteral<"Time">;

@@ -22,0 +22,0 @@ isoDate: z.ZodString;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TimeScheduleSchema = exports.durationScheduleSchema = exports.isTimeSchedule = exports.isDurationSchedule = exports.isDurationUnit = void 0;
exports.timeScheduleSchema = exports.durationScheduleSchema = exports.isTimeSchedule = exports.isDurationSchedule = exports.isDurationUnit = void 0;
const zod_1 = require("zod");

@@ -11,18 +11,18 @@ const schedule_js_1 = require("../schedule.js");

function isDurationSchedule(schedule) {
return schedule.type === "Duration";
return (schedule && typeof schedule === "object" && schedule.type === "Duration");
}
exports.isDurationSchedule = isDurationSchedule;
function isTimeSchedule(schedule) {
return schedule.type === "Time";
return schedule && typeof schedule === "object" && schedule.type === "Time";
}
exports.isTimeSchedule = isTimeSchedule;
exports.durationScheduleSchema = zod_1.z.object({
type: zod_1.z.literal("Duration"),
dur: zod_1.z.number(),
unit: zod_1.z.enum(schedule_js_1.DURATION_UNITS),
type: /* @__PURE__ */ zod_1.z.literal("Duration"),
dur: /* @__PURE__ */ zod_1.z.number(),
unit: /* @__PURE__ */ zod_1.z.enum(schedule_js_1.DURATION_UNITS),
});
exports.TimeScheduleSchema = zod_1.z.object({
type: zod_1.z.literal("Time"),
isoDate: zod_1.z.string().datetime(),
exports.timeScheduleSchema = zod_1.z.object({
type: /* @__PURE__ */ zod_1.z.literal("Time"),
isoDate: /* @__PURE__ */ zod_1.z.string().datetime(),
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZWR1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW50ZXJuYWwvc2NoZWR1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNkJBQXdCO0FBQ3hCLGdEQU13QjtBQUV4QixTQUFnQixjQUFjLENBQUMsQ0FBUztJQUN0QyxPQUFPLDRCQUFjLENBQUMsUUFBUSxDQUFDLENBQVEsQ0FBQyxDQUFDO0FBQzNDLENBQUM7QUFGRCx3Q0FFQztBQUVELFNBQWdCLGtCQUFrQixDQUNoQyxRQUFrQjtJQUVsQixPQUFPLFFBQVEsQ0FBQyxJQUFJLEtBQUssVUFBVSxDQUFDO0FBQ3RDLENBQUM7QUFKRCxnREFJQztBQUVELFNBQWdCLGNBQWMsQ0FBQyxRQUFrQjtJQUMvQyxPQUFPLFFBQVEsQ0FBQyxJQUFJLEtBQUssTUFBTSxDQUFDO0FBQ2xDLENBQUM7QUFGRCx3Q0FFQztBQUVZLFFBQUEsc0JBQXNCLEdBQW1CLE9BQUMsQ0FBQyxNQUFNLENBQUM7SUFDN0QsSUFBSSxFQUFFLE9BQUMsQ0FBQyxPQUFPLENBQUMsVUFBVSxDQUFDO0lBQzNCLEdBQUcsRUFBRSxPQUFDLENBQUMsTUFBTSxFQUFFO0lBQ2YsSUFBSSxFQUFFLE9BQUMsQ0FBQyxJQUFJLENBQUMsNEJBQWMsQ0FBQztDQUM3QixDQ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VTY2hlZHVsZShzY2hlZHVsZTogYW55KTogc2NoZWR1bGUgaXMgVGltZVNjaGVkdWxlIHtcbiAgcmV0dXJuIHNjaGVkdWxlICYmIHR5cGVvZiBzY2hlZHVsZSA9PT0gXCJvYmplY3RcIiAmJiBzY2hlZHVsZS50eXBlID09PSBcIlRpbWVcIjtcbn1cblxuZXhwb3J0IGNvbnN0IGR1cmF0aW9uU2NoZWR1bGVTY2hlbWEgPSAvKiBAX19QVVJFX18gKi8gei5vYmplY3Qoe1xuICB0eXBlOiAvKiBAX19QVVJFX18gKi8gei5saXRlcmFsKFwiRHVyYXRpb25cIiksXG4gIGR1cjogLyogQF9fUFVSRV9fICovIHoubnVtYmVyKCksXG4gIHVuaXQ6IC8qIEBfX1BVUkVfXyAqLyB6LmVudW0oRFVSQVRJT05fVU5JVFMpLFxufSk7XG5cbmV4cG9ydCBjb25zdCB0aW1lU2NoZWR1bGVTY2hlbWEgPSAvKiBAX19QVVJFX18gKi8gei5vYmplY3Qoe1xuICB0eXBlOiAvKiBAX19QVVJFX18gKi8gei5saXRlcmFsKFwiVGltZVwiKSxcbiAgaXNvRGF0ZTogLyogQF9fUFVSRV9fICovIHouc3RyaW5nKCkuZGF0ZXRpbWUoKSxcbn0pO1xuIl19
import { EventEnvelope } from "../event.js";
import { DurationSchedule, Schedule } from "../schedule.js";
import { WorkflowOptions } from "../workflow.js";
import { WorkflowExecutionOptions } from "../workflow.js";
import { SignalTarget } from "./signal.js";

@@ -32,3 +32,3 @@ export type WorkflowCommand = StartTimerCommand | ScheduleActivityCommand | ScheduleWorkflowCommand | PublishEventsCommand | SendSignalCommand;

input?: any;
opts?: WorkflowOptions;
opts?: WorkflowExecutionOptions;
}

@@ -35,0 +35,0 @@ export declare function isScheduleWorkflowCommand(a: WorkflowCommand): a is ScheduleWorkflowCommand;

@@ -32,2 +32,2 @@ "use strict";

exports.isPublishEventsCommand = isPublishEventsCommand;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjoz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LlB1Ymxpc2hFdmVudHM+IHtcbiAgZXZlbnRzOiBFdmVudEVudmVsb3BlW107XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc1B1Ymxpc2hFdmVudHNDb21tYW5kKFxuICBjb21tYW5kOiBXb3JrZmxvd0NvbW1hbmRcbik6IGNvbW1hbmQgaXMgUHVibGlzaEV2ZW50c0NvbW1hbmQge1xuICByZXR1cm4gY29tbWFuZC5raW5kID09PSBDb21tYW5kVHlwZS5QdWJsaXNoRXZlbnRzO1xufVxuIl19
import { z } from "zod";
export declare const workflowOptionsSchema: z.ZodObject<{
timeout: z.ZodOptional<z.ZodObject<{
timeout: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"Time">;
isoDate: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "Time";
isoDate: string;
}, {
type: "Time";
isoDate: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"Duration">;

@@ -15,3 +24,3 @@ dur: z.ZodNumber;

unit: "second" | "seconds" | "minute" | "minutes" | "hour" | "hours" | "day" | "days" | "year" | "years";
}>>;
}>]>>;
}, "strip", z.ZodTypeAny, {

@@ -22,2 +31,5 @@ timeout?: {

unit: "second" | "seconds" | "minute" | "minutes" | "hour" | "hours" | "day" | "days" | "year" | "years";
} | {
type: "Time";
isoDate: string;
} | undefined;

@@ -29,4 +41,7 @@ }, {

unit: "second" | "seconds" | "minute" | "minutes" | "hour" | "hours" | "day" | "days" | "year" | "years";
} | {
type: "Time";
isoDate: string;
} | undefined;
}>;
//# sourceMappingURL=workflow.d.ts.map

@@ -7,4 +7,6 @@ "use strict";

exports.workflowOptionsSchema = zod_1.z.object({
timeout: schedule_js_1.durationScheduleSchema.optional(),
timeout: /* @__PURE__ */ schedule_js_1.timeScheduleSchema
.or(schedule_js_1.durationScheduleSchema)
.optional(),
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3cuanMiLCJzb3VyY2VSb290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YXRpb25TY2hlZHVsZVNjaGVtYSwgdGltZVNjaGVkdWxlU2NoZW1hIH0gZnJvbSBcIi4vc2NoZWR1bGUuanNcIjtcblxuZXhwb3J0IGNvbnN0IHdvcmtmbG93T3B0aW9uc1NjaGVtYSA9IC8qIEBfX1BVUkVfXyAqLyB6Lm9iamVjdCh7XG4gIHRpbWVvdXQ6IC8qIEBfX1BVUkVfXyAqLyB0aW1lU2NoZWR1bGVTY2hlbWFcbiAgICAub3IoZHVyYXRpb25TY2hlZHVsZVNjaGVtYSlcbiAgICAub3B0aW9uYWwoKSxcbn0pO1xuIl19
import type { z } from "zod";
import type { durationScheduleSchema, TimeScheduleSchema } from "./internal/schedule.js";
import type { durationScheduleSchema, timeScheduleSchema } from "./internal/schedule.js";
export declare const DURATION_UNITS: readonly ["second", "seconds", "minute", "minutes", "hour", "hours", "day", "days", "year", "years"];

@@ -7,3 +7,3 @@ export type DurationUnit = (typeof DURATION_UNITS)[number];

}
export interface TimeSchedule extends z.infer<typeof TimeScheduleSchema> {
export interface TimeSchedule extends z.infer<typeof timeScheduleSchema> {
}

@@ -10,0 +10,0 @@ export type Schedule = DurationSchedule | TimeSchedule;

@@ -31,2 +31,2 @@ "use strict";

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZWR1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2NoZWR1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBTWEsUUFBQSxjQUFjLEdBQUc7SUFDNUIsUUFBUTtJQUNSLFNBQVM7SUFDVCxRQUFRO0lBQ1IsU0FBUztJQUNULE1BQU07SUFDTixPQUFPO0lBQ1AsS0FBSztJQUNMLE1BQU07SUFDTixNQUFNO0lBQ04sT0FBTztDQUNDLENBQUM7QUFXRSxRQUFBLFFBQVEsR0FBRztJQUN0QixRQUFRLENBQUMsR0FBVyxFQUFFLE9BQXFCLF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oZWR1bGUgPSBEdXJhdGlvblNjaGVkdWxlIHwgVGltZVNjaGVkdWxlO1xuXG5leHBvcnQgY29uc3QgU2NoZWR1bGUgPSB7XG4gIGR1cmF0aW9uKGR1cjogbnVtYmVyLCB1bml0OiBEdXJhdGlvblVuaXQgPSBcInNlY29uZHNcIik6IER1cmF0aW9uU2NoZWR1bGUge1xuICAgIHJldHVybiB7XG4gICAgICB0eXBlOiBcIkR1cmF0aW9uXCIsXG4gICAgICBkdXIsXG4gICAgICB1bml0LFxuICAgIH07XG4gIH0sXG4gIHRpbWUoaXNvRGF0ZTogc3RyaW5nIHwgRGF0ZSk6IFRpbWVTY2hlZHVsZSB7XG4gICAgcmV0dXJuIHtcbiAgICAgIHR5cGU6IFwiVGltZVwiLFxuICAgICAgaXNvRGF0ZTogdHlwZW9mIGlzb0RhdGUgPT09IFwic3RyaW5nXCIgPyBpc29EYXRlIDogaXNvRGF0ZS50b0lTT1N0cmluZygpLFxuICAgIH07XG4gIH0sXG59O1xuIl19

@@ -5,3 +5,4 @@ import type { Execution, ExecutionHandle } from "./execution.js";

import type { Signal } from "./signals.js";
import type { Workflow, WorkflowInput, WorkflowOptions } from "./workflow.js";
import type { Workflow, WorkflowInput } from "./workflow.js";
import { WorkflowExecutionOptions } from "./workflow.js";
/**

@@ -67,3 +68,3 @@ * Top level Eventual Client used by systems outside of an Eventual Service to interact with it.

}
export interface StartExecutionRequest<W extends Workflow = Workflow> extends WorkflowOptions {
export interface StartExecutionRequest<W extends Workflow = Workflow> extends WorkflowExecutionOptions {
/**

@@ -70,0 +71,0 @@ * Name of the workflow execution.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS1jbGllbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2VydmljZS1jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiI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"./execution.js";
import type { ChildExecution, ExecutionHandle, ExecutionID } from "./execution.js";
import type { Program } from "./internal/eventual.js";
import { HistoryStateEvent, TimerCompleted } from "./internal/workflow-events.js";
import type { DurationSchedule } from "./schedule.js";
import { Schedule } from "./schedule.js";
import type { StartExecutionRequest } from "./service-client.js";

@@ -11,2 +11,21 @@ export interface WorkflowHandler<Input = any, Output = any> {

/**
* Workflow options available when invoked by another workflow.
*/
export interface ChildWorkflowOptions {
timeout?: Promise<any> | Schedule;
}
/**
* Options which determine how an execution operates.
*
* Overrides those provided by the workflow definition.
*/
export interface WorkflowExecutionOptions {
/**
* Number of seconds before or a time to time the workflow out at.
*
* @default - workflow will never timeout.
*/
timeout?: Schedule;
}
/**
* Options which determine how a workflow operates.

@@ -16,3 +35,3 @@ *

*/
export interface WorkflowOptions {
export interface WorkflowDefinitionOptions {
/**

@@ -27,2 +46,3 @@ * Number of seconds before execution times out.

export type WorkflowInput<W extends Workflow> = W extends Workflow<infer In, any> ? In : undefined;
export type WorkflowArguments<Input = any> = [Input] extends [undefined] ? [input?: Input, options?: ChildWorkflowOptions] : [input: Input, options?: ChildWorkflowOptions];
/**

@@ -37,3 +57,3 @@ * A {@link Workflow} is a long-running process that orchestrates calls

name: string;
options?: WorkflowOptions;
options?: WorkflowDefinitionOptions;
/**

@@ -48,3 +68,3 @@ * Invokes the {@link Workflow} from within another workflow.

*/
(input: Input): Promise<Output> & ChildExecution;
(...args: WorkflowArguments<Input>): Promise<Output> & ChildExecution;
/**

@@ -82,3 +102,3 @@ * Starts a workflow execution

export declare function workflow<Input = any, Output = any>(name: string, definition: WorkflowHandler<Input, Output>): Workflow<Input, Output>;
export declare function workflow<Input = any, Output = any>(name: string, opts: WorkflowOptions, definition: WorkflowHandler<Input, Output>): Workflow<Input, Output>;
export declare function workflow<Input = any, Output = any>(name: string, opts: WorkflowDefinitionOptions, definition: WorkflowHandler<Input, Output>): Workflow<Input, Output>;
/**

@@ -85,0 +105,0 @@ * Generates synthetic events, for example, {@link TimerCompleted} events when the time has passed, but a real completed event has not come in yet.

@@ -6,4 +6,6 @@ "use strict";

const chain_js_1 = require("./internal/chain.js");
const eventual_js_1 = require("./internal/eventual.js");
const flags_js_1 = require("./internal/flags.js");
const global_js_1 = require("./internal/global.js");
const schedule_js_1 = require("./internal/schedule.js");
const workflow_events_js_1 = require("./internal/workflow-events.js");

@@ -15,7 +17,27 @@ function workflow(name, ...args) {

}
const workflow = ((input) => {
const workflow = ((input, options) => {
if (!(0, flags_js_1.isOrchestratorWorker)()) {
throw new Error("Direct workflow invocation is only valid in a workflow, use workflow.startExecution instead.");
}
return (0, workflow_call_js_1.createWorkflowCall)(name, input, opts);
// a timeout can either by from definition or a eventual/promise or both.
// take the invocation time configuration first.
const timeout = options?.timeout ?? opts?.timeout;
if (timeout &&
!((0, eventual_js_1.isEventual)(timeout) ||
(0, schedule_js_1.isTimeSchedule)(timeout) ||
(0, schedule_js_1.isDurationSchedule)(timeout))) {
throw new Error("Timeout promise must be an Eventual or a Schedule.");
}
return (0, workflow_call_js_1.createWorkflowCall)(name, input,
// if the timeout is a time or a duration, from any source, send the timeout to the child execution
// to time itself out.
{
timeout: (0, schedule_js_1.isDurationSchedule)(timeout) || (0, schedule_js_1.isTimeSchedule)(timeout)
? timeout
: undefined,
},
// if an eventual/promise is given, even if it is a duration or a time, timeout based on the
// promise resolution.
// TODO: support reporting cancellation to children when the parent times out?
(0, eventual_js_1.isEventual)(timeout) ? timeout : undefined);
});

@@ -67,2 +89,2 @@ Object.defineProperty(workflow, "name", { value: name, writable: false });

exports.generateSyntheticEvents = generateSyntheticEvents;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvd29ya2Zsb3cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRUEsd0VBQXVFO0FBQ3ZFLGtEQUE4QztB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ZSBXb3JrZmxvd0RlZmluaXRpb25Db250ZXh0IHtcbiAgLyoqXG4gICAqIFRoZSBuYW1lIG9mIHRoZSB3b3JrZmxvdy5cbiAgICovXG4gIG5hbWU6IHN0cmluZztcbn1cblxuLyoqXG4gKiBDb250ZXh0IHZhbHVlcyBwcm92aWRlZCB0byBlYWNoIHdvcmtmbG93IGV4ZWN1dGlvbi5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBXb3JrZmxvd0NvbnRleHQge1xuICAvKipcbiAgICogQ29udGV4dCB2YWx1ZXMgcmVsYXRlZCB0byB0aGUgY3VycmVudCBleGVjdXRpb24gb2YgdGhlIHdvcmtmbG93LlxuICAgKi9cbiAgd29ya2Zsb3c6IFdvcmtmbG93RGVmaW5pdGlvbkNvbnRleHQ7XG4gIC8qKlxuICAgKiBDb250ZXh0IHZhbHVlcyByZWxhdGVkIHRvIHRoZSB3b3JrZmxvdyBkZWZpbml0aW9uLlxuICAgKi9cbiAgZXhlY3V0aW9uOiBXb3JrZmxvd0V4ZWN1dGlvbkNvbnRleHQ7XG59XG4iXX0=

@@ -0,1 +1,2 @@

import { ExecutionID } from "./execution.js";
import { FunctionRuntimeProps } from "./function-props.js";

@@ -5,14 +6,30 @@ import { AsyncTokenSymbol } from "./internal/activity.js";

import { SourceLocation } from "./internal/service-spec.js";
import type { DurationSchedule } from "./schedule.js";
import type { SendActivityHeartbeatResponse } from "./service-client.js";
import { ExecutionID } from "./execution.js";
import type { DurationSchedule, Schedule } from "./schedule.js";
import { SendActivityHeartbeatResponse } from "./service-client.js";
export interface ActivityRuntimeProps extends FunctionRuntimeProps {
}
export interface ActivityOptions extends FunctionRuntimeProps {
/**
* Activity options available when invoked by a workflow.
*/
export interface ActivityInvocationOptions {
/**
* How long the workflow will wait for the activity to complete or fail.
* A promise whose resolution (fulfillment or rejection) determines the timeout for an activity.
*
* @default - workflow will wait forever.
*
* Overrides any timeout configured on the activity definition.
*
* ```ts
* // times out after 10 minutes
* myActivity("someInput", { timeout: duration(10, "minutes") });
* // times out when myTimeoutActivity resolves
* myActivity("someInput", { timeout: myTimeoutActivity() });
* // times out when the value x is equal to 100
* myActivity("someInput", { timeout: condition(() => x === 100) });
* // times out after 10 minutes, like the first example
* myActivity("someInput", { timeout: Schedule.duration(10, "minutes") });
* ```
*
* @default - the configured activity timeout or the workflow will await forever.
*/
timeout?: DurationSchedule;
timeout?: Promise<any> | Schedule;
/**

@@ -30,2 +47,13 @@ * For long running activities, it is suggested that they report back that they

}
/**
* Activity options available at definition time.
*/
export interface ActivityOptions extends Omit<ActivityInvocationOptions, "timeout">, FunctionRuntimeProps {
/**
* How long the workflow will wait for the activity to complete or fail.
*
* @default - workflow will wait forever.
*/
timeout?: DurationSchedule;
}
export interface ActivitySpec<Name extends string = string> {

@@ -42,3 +70,3 @@ /**

}
export type ActivityArguments<Input = any> = [Input] extends [undefined] ? [input?: Input] : [input: Input];
export type ActivityArguments<Input = any> = [Input] extends [undefined] ? [input?: Input, options?: ActivityInvocationOptions] : [input: Input, options?: ActivityInvocationOptions];
export interface Activity<Name extends string = string, Input = any, Output = any> extends Omit<ActivitySpec<Name>, "name"> {

@@ -45,0 +73,0 @@ kind: "Activity";

import { AsyncTokenSymbol } from "./internal/activity.js";
import { createActivityCall } from "./internal/calls/activity-call.js";
import { createAwaitDurationCall } from "./internal/calls/await-time-call.js";
import { createAwaitDurationCall, createAwaitTimeCall, } from "./internal/calls/await-time-call.js";
import { isEventual } from "./internal/eventual.js";
import { isActivityWorker, isOrchestratorWorker } from "./internal/flags.js";
import { activities, getActivityContext, getServiceClient, } from "./internal/global.js";
import { isDurationSchedule, isTimeSchedule } from "./internal/schedule.js";
import { isSourceLocation } from "./internal/service-spec.js";
import { assertNever } from "./internal/util.js";
/**

@@ -54,8 +57,23 @@ * When returned from an {@link activity}, tells the system to make the current

// register the handler to be looked up during execution.
const func = ((...handlerArgs) => {
const func = ((input, options) => {
if (isOrchestratorWorker()) {
const timeout = options?.timeout ?? opts?.timeout;
if (timeout &&
!(isEventual(timeout) ||
isDurationSchedule(timeout) ||
isTimeSchedule(timeout))) {
throw new Error("Timeout promise must be an Eventual or a Schedule.");
}
// if we're in the orchestrator, return a command to invoke the activity in the worker function
return createActivityCall(name, handlerArgs[0], opts?.timeout
? createAwaitDurationCall(opts.timeout.dur, opts.timeout.unit)
: undefined, opts?.heartbeatTimeout);
return createActivityCall(name, input, timeout
? // if the timeout is an eventual already, just use that
isEventual(timeout)
? timeout
: // otherwise make the right eventual type
isDurationSchedule(timeout)
? createAwaitDurationCall(timeout.dur, timeout.unit)
: isTimeSchedule(timeout)
? createAwaitTimeCall(timeout.isoDate)
: assertNever(timeout)
: undefined, options?.heartbeatTimeout ?? opts?.heartbeatTimeout);
}

@@ -72,3 +90,3 @@ else {

// calling the activity from outside the orchestrator just calls the handler
return handler(handlerArgs[0], context);
return handler(input, context);
}

@@ -92,2 +110,2 @@ });

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWN0aXZpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDMUQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDdkUsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0scUNBQXFDLENBQUM7QUFNOUUsT0FBTyxFQUFFLGdCQUFnQixFQUFFLG9CQUFvQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDN0UsT0FBTyxFQUNMLFVBQVUsRUFDVixrQkFBa0IsRUFDbEIsZ0JBQWdCLEdBQ2pCLE1BQU0sc0JBQXNCLENBQUM7QUFDOUIsT0FBTyxFQUFFLGdCQUFnQixFQUFrQixNQUFNLDRCQUE0QixDQUFDO0FBcU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bmc7XG4gIC8qKlxuICAgKiBJU08gODYwMSB0aW1lc3RhbXAgd2hlbiB0aGUgYWN0aXZpdHkgd2FzIGZpcnN0IHNjaGVkdWxlZC5cbiAgICovXG4gIHNjaGVkdWxlZFRpbWU6IHN0cmluZztcbiAgLyoqXG4gICAqIEN1cnJlbnQgcmV0cnkgY291bnQsIHN0YXJ0aW5nIGF0IDAuXG4gICAqL1xuICByZXRyeTogbnVtYmVyO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEFjdGl2aXR5Q29udGV4dCB7XG4gIC8qKlxuICAgKiBXb3JrZmxvdyBleGVjdXRpb24gd2hpY2ggc3RhcnRlZCB0aGUgYWN0aXZpdHkuXG4gICAqL1xuICBleGVjdXRpb246IEFjdGl2aXR5RXhlY3V0aW9uQ29udGV4dDtcbiAgLyoqXG4gICAqIEluZm9ybWF0aW9uIGFib3V0IHRoZSBhY3Rpdml0eSBiZWluZyBpbnZva2VkLlxuICAgKi9cbiAgYWN0aXZpdHk6IEFjdGl2aXR5RGVmaW5pdGlvbkNvbnRleHQ7XG4gIC8qKlxuICAgKiBJbmZvcm1hdGlvbiBhYm91dCB0aGlzIHNwZWNpZmljIGludm9jYXRpb24gb2YgdGhlIGV4ZWN1dGlvbi5cbiAgICovXG4gIGludm9jYXRpb246IEFjdGl2aXR5SW52b2NhdGlvbkNvbnRleHQ7XG59XG4iXX0=
import { ChildExecution } from "../../execution.js";
import { WorkflowOptions } from "../../workflow.js";
import { WorkflowExecutionOptions } from "../../workflow.js";
import { Eventual, EventualBase, EventualKind } from "../eventual.js";

@@ -13,5 +13,13 @@ import { Result } from "../result.js";

seq?: number;
opts?: WorkflowOptions;
opts?: WorkflowExecutionOptions;
/**
* An Eventual/Promise that determines when a child workflow should timeout.
*
* This timeout is separate from the timeout passed to the workflow (opts.timeout), which can only be a relative duration.
*
* TODO: support cancellation of child workflow.
*/
timeout: Eventual<any>;
}
export declare function createWorkflowCall(name: string, input?: any, opts?: WorkflowOptions): WorkflowCall;
export declare function createWorkflowCall(name: string, input?: any, opts?: WorkflowExecutionOptions, timeout?: Eventual<any>): WorkflowCall;
//# sourceMappingURL=workflow-call.d.ts.map

@@ -8,3 +8,3 @@ import { SignalTargetType } from "../signal.js";

}
export function createWorkflowCall(name, input, opts) {
export function createWorkflowCall(name, input, opts, timeout) {
const call = registerEventual(createEventual(EventualKind.WorkflowCall, {

@@ -14,2 +14,3 @@ input,

opts,
timeout,
}));

@@ -28,2 +29,2 @@ // create a reference to the child workflow started at a sequence in this execution.

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3ctY2FsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9pbnRlcm5hbC9jYWxscy93b3JrZmxvdy1jYWxsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUVoRCxPQUFPLEVBQ0wsY0FBYyxFQUdkLFlBQVksRUFDWixnQkFBZ0IsR0FDakIsTUFBTSxnQkFBZ0IsQ0FBQztBQUN4QixPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFFaEQsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFFN0QsTUFBTSxVQUFVLGNBQWMsQ0FBSSxDQUFjO0lBQzlDLE9BQU8sZ0JBQWdCLENBQUMsWUFBWSxDQUFDLFlBQVksRUFBRSxDQUFDLENBQUMsQ0FBQztBQUN4RCxDQUFDO0FBY0QsTUFBTSxVQUFVLGtCQUFrQixDQUNoQyxJQUFZLEVBQ1osS0FBVyxFQUNYLElBQXNCO0lBRXRCLE1BQU0sSUFBSSxHQUFHLGdCQUFnQixDQUMzQixjQUFjLENBQWUsWUFBWSxDQUFDLFlBQVksRUFBRTtRQUN0RC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IGF0IGEgc2VxdWVuY2UgaW4gdGhpcyBleGVjdXRpb24uXG4gIC8vIHRoaXMgcmVmZXJlbmNlIHdpbGwgYmUgcmVzb2x2ZWQgYnkgdGhlIHJ1bnRpbWUuXG4gIGNhbGwuc2VuZFNpZ25hbCA9IGZ1bmN0aW9uIChzaWduYWwsIHBheWxvYWQ/KSB7XG4gICAgY29uc3Qgc2lnbmFsSWQgPSB0eXBlb2Ygc2lnbmFsID09PSBcInN0cmluZ1wiID8gc2lnbmFsIDogc2lnbmFsLmlkO1xuICAgIHJldHVybiBjcmVhdGVTZW5kU2lnbmFsQ2FsbChcbiAgICAgIHtcbiAgICAgICAgdHlwZTogU2lnbmFsVGFyZ2V0VHlwZS5DaGlsZEV4ZWN1dGlvbixcbiAgICAgICAgc2VxOiBjYWxsLnNlcSEsXG4gICAgICAgIHdvcmtmbG93TmFtZTogY2FsbC5uYW1lLFxuICAgICAgfSxcbiAgICAgIHNpZ25hbElkLFxuICAgICAgcGF5bG9hZFxuICAgICkgYXMgdW5rbm93biBhcyBhbnk7XG4gIH07XG5cbiAgcmV0dXJuIGNhbGw7XG59XG4iXX0=
import { z } from "zod";
export const eventEnvelopeSchema = /* @__PURE__ */ z.object({
name: z.string(),
event: z.record(z.any()),
name: /* @__PURE__ */ z.string(),
event: /* @__PURE__ */ z.record(z.any()),
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW50ZXJuYWwvZXZlbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLENBQUMsRUFBRSxNQUFNLEtBQUssQ0FBQztBQUV4QixNQUFNLENBQUMsTUFBTSxtQkFBbUIsR0FBRyxlQUFlLENBQUMsQ0FBQyxDQUFDLE1BQU0sQ0FBQztJQUMxRCxJQUFJLEVBQUUsQ0FBQyxDQUFD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IHoucmVjb3JkKHouYW55KCkpLFxufSk7XG4iXX0=

@@ -56,3 +56,12 @@ import { z } from "zod";

export declare const startExecutionRequestSchema: z.ZodObject<{
timeout: z.ZodOptional<z.ZodObject<{
timeout: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"Time">;
isoDate: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "Time";
isoDate: string;
}, {
type: "Time";
isoDate: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"Duration">;

@@ -69,3 +78,3 @@ dur: z.ZodNumber;

unit: "second" | "seconds" | "minute" | "minutes" | "hour" | "hours" | "day" | "days" | "year" | "years";
}>>;
}>]>>;
executionName: z.ZodOptional<z.ZodString>;

@@ -75,2 +84,3 @@ workflow: z.ZodString;

}, "strip", z.ZodTypeAny, {
input?: any;
timeout?: {

@@ -80,7 +90,10 @@ type: "Duration";

unit: "second" | "seconds" | "minute" | "minutes" | "hour" | "hours" | "day" | "days" | "year" | "years";
} | {
type: "Time";
isoDate: string;
} | undefined;
input?: any;
executionName?: string | undefined;
workflow: string;
}, {
input?: any;
timeout?: {

@@ -90,4 +103,6 @@ type: "Duration";

unit: "second" | "seconds" | "minute" | "minutes" | "hour" | "hours" | "day" | "days" | "year" | "years";
} | {
type: "Time";
isoDate: string;
} | undefined;
input?: any;
executionName?: string | undefined;

@@ -94,0 +109,0 @@ workflow: string;

@@ -7,45 +7,50 @@ import { z } from "zod";

export const sortOrderSchema = z.enum(["ASC", "DESC"]);
// Note: all top level zod builder functions should be labelled with pure
// to avoid them being considered side effects and bundled
export const publishEventsRequestSchema = /* @__PURE__ */ z.object({
events: z.array(eventEnvelopeSchema),
events: /* @__PURE__ */ z.array(eventEnvelopeSchema),
});
export const sendSignalRequestSchema = /* @__PURE__ */ z.object({
executionId: z.string(),
signalId: z.string(),
payload: z.any(),
id: z.string().optional(),
executionId: /* @__PURE__ */ z.string(),
signalId: /* @__PURE__ */ z.string(),
payload: /* @__PURE__ */ z.any(),
id: /* @__PURE__ */ z.string().optional(),
});
export const startExecutionRequestSchema =
/* @__PURE__ */ workflowOptionsSchema.extend({
executionName: z.string().optional(),
workflow: z.string(),
input: z.any().optional(),
executionName: /* @__PURE__ */ z.string().optional(),
workflow: /* @__PURE__ */ z.string(),
input: /* @__PURE__ */ z.any().optional(),
});
export const listExecutionsRequestSchema = /* @__PURE__ */ z.object({
statuses: z.array(z.nativeEnum(ExecutionStatus)).optional(),
workflowName: z.string().optional(),
nextToken: z.string().optional(),
sortDirection: sortOrderSchema.default("ASC").optional(),
maxResults: z.number().default(100).optional(),
statuses: /* @__PURE__ */ z.array(z.nativeEnum(ExecutionStatus)).optional(),
workflowName: /* @__PURE__ */ z.string().optional(),
nextToken: /* @__PURE__ */ z.string().optional(),
sortDirection: /* @__PURE__ */ sortOrderSchema.default("ASC").optional(),
maxResults: /* @__PURE__ */ z.number().default(100).optional(),
});
export const listExecutionEventsRequestSchema = /* @__PURE__ */ z.object({
executionId: z.string(),
sortDirection: sortOrderSchema.default("ASC").optional(),
nextToken: z.string().optional(),
maxResults: z.number().default(100).optional(),
after: z.string().optional().describe("Start returning after a data"),
executionId: /* @__PURE__ */ z.string(),
sortDirection: /* @__PURE__ */ sortOrderSchema.default("ASC").optional(),
nextToken: /* @__PURE__ */ z.string().optional(),
maxResults: /* @__PURE__ */ z.number().default(100).optional(),
after: /* @__PURE__ */ z
.string()
.optional()
.describe("Start returning after a data"),
});
export const sendActivitySuccessRequestSchema = /* @__PURE__ */ z.object({
type: z.literal("Success"),
activityToken: z.string(),
result: z.any(),
type: /* @__PURE__ */ z.literal("Success"),
activityToken: /* @__PURE__ */ z.string(),
result: /* @__PURE__ */ z.any(),
});
export const sendActivityFailureRequestSchema = /* @__PURE__ */ z.object({
type: z.literal("Failure"),
activityToken: z.string(),
error: z.string(),
message: z.string().optional(),
type: /* @__PURE__ */ z.literal("Failure"),
activityToken: /* @__PURE__ */ z.string(),
error: /* @__PURE__ */ z.string(),
message: /* @__PURE__ */ z.string().optional(),
});
export const sendActivityHeartbeatRequestSchema = /* @__PURE__ */ z.object({
type: z.literal("Heartbeat"),
activityToken: z.string(),
type: /* @__PURE__ */ z.literal("Heartbeat"),
activityToken: /* @__PURE__ */ z.string(),
});

@@ -66,2 +71,2 @@ export const sendActivityUpdateSchema = /* @__PURE__ */ z.union([

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnR1YWwtc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9pbnRlcm5hbC9ldmVudHVhbC1zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxDQUFDLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFDeEIsT0FBTyxFQUEwQixlQUFlLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUUxRSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFakQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXRELE1BQU0sQ0FBQyxNQUFNLGlDQUFpQyxHQUFHLFNBQVMsQ0FBQztBQUUzRCxNQUFNLENBQUMsTUFBTSxlQUFlLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLEtBQUssRUFBRSxNQUFNLENBQUMsQ0FBQyxDQUFDO0FBRXZELE1BQU0sQ0FBQyxNQUFNLDBCQUEwQixHQUFHLGVBQWUsQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDO0lBQ2pFLE1BQU0sRUFBRSxDQUFDLENBQUMsS0FBSyxDQUFDLG1CQUFtQixDQUFDO0NBQ3JDLENBQUMsQ0FBQztBQWFILE1BQU0sQ0FBQyxNQUFNLHVCQUF1QixHQUFHLGVBQWUsQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDO0lBQzlELFdB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WduYWw6IENvbW1hbmQ8XCJzZW5kU2lnbmFsXCIsIFNlbmRTaWduYWxSZXF1ZXN0U2NoZW1hLCB2b2lkPjtcbiAgZ2V0RXhlY3V0aW9uSGlzdG9yeTogQ29tbWFuZDxcbiAgICBcImdldEV4ZWN1dGlvbkhpc3RvcnlcIixcbiAgICBMaXN0RXhlY3V0aW9uRXZlbnRzUmVxdWVzdCxcbiAgICBMaXN0RXhlY3V0aW9uRXZlbnRzUmVzcG9uc2VcbiAgPjtcbiAgZ2V0RXhlY3V0aW9uV29ya2Zsb3dIaXN0b3J5OiBDb21tYW5kPFxuICAgIFwiZ2V0RXhlY3V0aW9uV29ya2Zsb3dIaXN0b3J5XCIsXG4gICAgc3RyaW5nLFxuICAgIEV4ZWN1dGlvbkhpc3RvcnlSZXNwb25zZVxuICA+O1xuICB1cGRhdGVBY3Rpdml0eTogQ29tbWFuZDxcbiAgICBcInVwZGF0ZUFjdGl2aXR5XCIsXG4gICAgU2VuZEFjdGl2aXR5VXBkYXRlLFxuICAgIHZvaWQgfCBTZW5kQWN0aXZpdHlIZWFydGJlYXRSZXNwb25zZVxuICA+O1xufVxuIl19
import { z } from "zod";
import { DurationSchedule, DurationUnit, Schedule, TimeSchedule } from "../schedule.js";
import { DurationSchedule, DurationUnit, TimeSchedule } from "../schedule.js";
export declare function isDurationUnit(u: string): u is DurationUnit;
export declare function isDurationSchedule(schedule: Schedule): schedule is DurationSchedule;
export declare function isTimeSchedule(schedule: Schedule): schedule is TimeSchedule;
export declare function isDurationSchedule(schedule: any): schedule is DurationSchedule;
export declare function isTimeSchedule(schedule: any): schedule is TimeSchedule;
export declare const durationScheduleSchema: z.ZodObject<{

@@ -19,3 +19,3 @@ type: z.ZodLiteral<"Duration">;

}>;
export declare const TimeScheduleSchema: z.ZodObject<{
export declare const timeScheduleSchema: z.ZodObject<{
type: z.ZodLiteral<"Time">;

@@ -22,0 +22,0 @@ isoDate: z.ZodString;

@@ -7,16 +7,16 @@ import { z } from "zod";

export function isDurationSchedule(schedule) {
return schedule.type === "Duration";
return (schedule && typeof schedule === "object" && schedule.type === "Duration");
}
export function isTimeSchedule(schedule) {
return schedule.type === "Time";
return schedule && typeof schedule === "object" && schedule.type === "Time";
}
export const durationScheduleSchema = /* @__PURE__ */ z.object({
type: z.literal("Duration"),
dur: z.number(),
unit: z.enum(DURATION_UNITS),
type: /* @__PURE__ */ z.literal("Duration"),
dur: /* @__PURE__ */ z.number(),
unit: /* @__PURE__ */ z.enum(DURATION_UNITS),
});
export const TimeScheduleSchema = /* @__PURE__ */ z.object({
type: z.literal("Time"),
isoDate: z.string().datetime(),
export const timeScheduleSchema = /* @__PURE__ */ z.object({
type: /* @__PURE__ */ z.literal("Time"),
isoDate: /* @__PURE__ */ z.string().datetime(),
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZWR1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW50ZXJuYWwvc2NoZWR1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLENBQUMsRUFBRSxNQUFNLEtBQUssQ0FBQztBQUN4QixPQUFPLEVBR0wsY0FBYyxHQUdmLE1BQU0sZ0JBQWdCLENBQUM7QUFFeEIsTUFBTSxVQUFVLGNBQWMsQ0FBQyxDQUFTO0lBQ3RDLE9BQU8sY0FBYyxDQUFDLFFBQVEsQ0FBQyxDQUFRLENBQUMsQ0FBQztBQUMzQyxDQUFDO0FBRUQsTUFBTSxVQUFVLGtCQUFrQixDQUNoQyxRQUFrQjtJQUVsQixPQUFPLFFBQVEsQ0FBQyxJQUFJLEtBQUssVUFBVSxDQUFDO0FBQ3RDLENBQUM7QUFFRCxNQUFNLFVBQVUsY0FBYyxDQUFDLFFBQWtCO0lBQy9DLE9BQU8sUUFBUSxDQUFDLElBQUksS0FBSyxNQUFNLENBQUM7QUFDbEMsQ0FBQztBQUVELE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ZygpLmRhdGV0aW1lKCksXG59KTtcbiJdfQ==
import { EventEnvelope } from "../event.js";
import { DurationSchedule, Schedule } from "../schedule.js";
import { WorkflowOptions } from "../workflow.js";
import { WorkflowExecutionOptions } from "../workflow.js";
import { SignalTarget } from "./signal.js";

@@ -32,3 +32,3 @@ export type WorkflowCommand = StartTimerCommand | ScheduleActivityCommand | ScheduleWorkflowCommand | PublishEventsCommand | SendSignalCommand;

input?: any;
opts?: WorkflowOptions;
opts?: WorkflowExecutionOptions;
}

@@ -35,0 +35,0 @@ export declare function isScheduleWorkflowCommand(a: WorkflowCommand): a is ScheduleWorkflowCommand;

@@ -24,2 +24,2 @@ export var CommandType;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3ctY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9pbnRlcm5hbC93b3JrZmxvdy1jb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWlCQSxNQUFNLENBQU4sSUFBWSxXQU1YO0FBTkQsV0FBWSxXQUFXO0lBQ3JCLDhDQUErQixDQUFBO0lBQy9CLHdDQUF5QixDQUFBO0lBQ3pCLDhDQUErQixDQUFBO0lBQy9CLHdDQUF5QixDQUFBO0lBQ3pCLDhDQUErQixDQUFBO0FBQ2pDLENBQUMsRUFOVyxXQUFXLEtBQVgsV0FBVyxRQU10QjtBQWVELE1BQU0sVUFBVSx5QkFBeUIsQ0FDdkMsQ0FBa0I7SUFFbEIsT0FBTyxDQUFDLENBQUMsSUFBSSxLQUFLLFdBQVcsQ0FBQyxhQUFhLENBQUM7QUFDOUMsQ0FBQztBQVVELE1BQU0sVUFBVSx5QkFBeUIsQ0FDdkMsQ0FBa0I7SUFFbEIsT0FBTyxDQUFDLENBQUMsSUFBSSxLQUFLLFdBQVcsQ0FBQyxhQUFhLENBQUM7QUFDOUMsQ0FBQztBQ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BheWxvYWQ/OiBhbnk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc1NlbmRTaWduYWxDb21tYW5kKFxuICBjb21tYW5kOiBXb3JrZmxvd0NvbW1hbmRcbik6IGNvbW1hbmQgaXMgU2VuZFNpZ25hbENvbW1hbmQge1xuICByZXR1cm4gY29tbWFuZC5raW5kID09PSBDb21tYW5kVHlwZS5TZW5kU2lnbmFsO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFB1Ymxpc2hFdmVudHNDb21tYW5kXG4gIGV4dGVuZHMgQ29tbWFuZEJhc2U8Q29tbWFuZFR5cGUuUHVibGlzaEV2ZW50cz4ge1xuICBldmVudHM6IEV2ZW50RW52ZWxvcGVbXTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGlzUHVibGlzaEV2ZW50c0NvbW1hbmQoXG4gIGNvbW1hbmQ6IFdvcmtmbG93Q29tbWFuZFxuKTogY29tbWFuZCBpcyBQdWJsaXNoRXZlbnRzQ29tbWFuZCB7XG4gIHJldHVybiBjb21tYW5kLmtpbmQgPT09IENvbW1hbmRUeXBlLlB1Ymxpc2hFdmVudHM7XG59XG4iXX0=
import { z } from "zod";
export declare const workflowOptionsSchema: z.ZodObject<{
timeout: z.ZodOptional<z.ZodObject<{
timeout: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"Time">;
isoDate: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "Time";
isoDate: string;
}, {
type: "Time";
isoDate: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"Duration">;

@@ -15,3 +24,3 @@ dur: z.ZodNumber;

unit: "second" | "seconds" | "minute" | "minutes" | "hour" | "hours" | "day" | "days" | "year" | "years";
}>>;
}>]>>;
}, "strip", z.ZodTypeAny, {

@@ -22,2 +31,5 @@ timeout?: {

unit: "second" | "seconds" | "minute" | "minutes" | "hour" | "hours" | "day" | "days" | "year" | "years";
} | {
type: "Time";
isoDate: string;
} | undefined;

@@ -29,4 +41,7 @@ }, {

unit: "second" | "seconds" | "minute" | "minutes" | "hour" | "hours" | "day" | "days" | "year" | "years";
} | {
type: "Time";
isoDate: string;
} | undefined;
}>;
//# sourceMappingURL=workflow.d.ts.map
import { z } from "zod";
import { durationScheduleSchema } from "./schedule.js";
import { durationScheduleSchema, timeScheduleSchema } from "./schedule.js";
export const workflowOptionsSchema = /* @__PURE__ */ z.object({
timeout: durationScheduleSchema.optional(),
timeout: /* @__PURE__ */ timeScheduleSchema
.or(durationScheduleSchema)
.optional(),
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW50ZXJuYWwvd29ya2Zsb3cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLENBQUMsRUFBRSxNQUFNLEtBQUssQ0FBQztBQUN4QixPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFdkQsTUFBTSxDQUFDLE1BQU0scUJBQXFCLEdBQUcsZUFBZSxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUM7SUFDNUQsT0FBTyxFQUFFLHNCQUFzQixDQUFDLFFBQVEsRUFBRTtDQUMzQyxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB6IH0gZnJvbSBcInpvZFwiO1xuaW1wb3J0IHsgZHVyYXRpb25TY2hlZHVsZVNjaGVtYSB9IGZyb20gXCIuL3NjaGVkdWxlLmpzXCI7XG5cbmV4cG9ydCBjb25zdCB3b3JrZmxvd09wdGlvbnNTY2hlbWEgPSAvKiBAX19QVVJFX18gKi8gei5vYmplY3Qoe1xuICB0aW1lb3V0OiBkdXJhdGlvblNjaGVkdWxlU2NoZW1hLm9wdGlvbmFsKCksXG59KTtcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW50ZXJuYWwvd29ya2Zsb3cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLENBQUMsRUFBRSxNQUFNLEtBQUssQ0FBQztBQUN4QixPQUFPLEVBQUUsc0JBQXNCLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0UsTUFBTSxDQUFDLE1BQU0scUJBQXFCLEdBQUcsZUFBZSxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUM7SUFDNUQsT0FBTyxFQUFFLGVBQWUsQ0FBQyxrQkFBa0I7U0FDeEMsRUFBRSxDQUFDLHNCQUFzQixDQUFDO1NBQzFCLFFBQVEsRUFBRTtDQUNkLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHogfSBmcm9tIFwiem9kXCI7XG5pbXBvcnQgeyBkdXJhdGlvblNjaGVkdWxlU2NoZW1hLCB0aW1lU2NoZWR1bGVTY2hlbWEgfSBmcm9tIFwiLi9zY2hlZHVsZS5qc1wiO1xuXG5leHBvcnQgY29uc3Qgd29ya2Zsb3dPcHRpb25zU2NoZW1hID0gLyogQF9fUFVSRV9fICovIHoub2JqZWN0KHtcbiAgdGltZW91dDogLyogQF9fUFVSRV9fICovIHRpbWVTY2hlZHVsZVNjaGVtYVxuICAgIC5vcihkdXJhdGlvblNjaGVkdWxlU2NoZW1hKVxuICAgIC5vcHRpb25hbCgpLFxufSk7XG4iXX0=
import type { z } from "zod";
import type { durationScheduleSchema, TimeScheduleSchema } from "./internal/schedule.js";
import type { durationScheduleSchema, timeScheduleSchema } from "./internal/schedule.js";
export declare const DURATION_UNITS: readonly ["second", "seconds", "minute", "minutes", "hour", "hours", "day", "days", "year", "years"];

@@ -7,3 +7,3 @@ export type DurationUnit = (typeof DURATION_UNITS)[number];

}
export interface TimeSchedule extends z.infer<typeof TimeScheduleSchema> {
export interface TimeSchedule extends z.infer<typeof timeScheduleSchema> {
}

@@ -10,0 +10,0 @@ export type Schedule = DurationSchedule | TimeSchedule;

@@ -28,2 +28,2 @@ export const DURATION_UNITS = [

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZWR1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2NoZWR1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBTUEsTUFBTSxDQUFDLE1BQU0sY0FBYyxHQUFHO0lBQzVCLFFBQVE7SUFDUixTQUFTO0lBQ1QsUUFBUTtJQUNSLFNBQVM7SUFDVCxNQUFNO0lBQ04sT0FBTztJQUNQLEtBQUs7SUFDTCxNQUFNO0lBQ04sTUFBTTtJQUNOLE9BQU87Q0FDQyxDQUFDO0FBV1gsTUFBTSxDQUFDLE1BQU0sUUFBUSxHQUFHO0lBQ3RCLFFBQVEsQ0FBQyxHQUFXLEVBQUUsT0FBcUIsU0FBUztRQUNsRCxPQUFPO1lBQ0wsSUFBSSxFQUFFLFVBQVU7WUFDaEIsR0FBRztZQUNILElBQUk7U0FDTCxDQUFDO0lBQ0osQ0FBQztJQUNELElBQUksQ0FBQyxPQUFzQjtRQUN6QixPQUFPO1lBQ0wsSUFBSSxFQUFFLE1BQU07WUFDWixPQUFPLEVBQUUsT0FBTyxPQUFPLEtBQUssUUFBUSxDQUFDLENBQUMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxXQUFXLEVBQUU7U0FDdkUsQ0FBQztJQUNKLENBQUM7Q0FDRixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyB6IH0gZnJvbSBcInpvZFwiO1xuaW1wb3J0IHR5cGUge1xuICBkdXJhdGlvblNjaGVkdWxlU2NoZW1hLFxuICBUa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GF0ZSA9PT0gXCJzdHJpbmdcIiA/IGlzb0RhdGUgOiBpc29EYXRlLnRvSVNPU3RyaW5nKCksXG4gICAgfTtcbiAgfSxcbn07XG4iXX0=

@@ -5,3 +5,4 @@ import type { Execution, ExecutionHandle } from "./execution.js";

import type { Signal } from "./signals.js";
import type { Workflow, WorkflowInput, WorkflowOptions } from "./workflow.js";
import type { Workflow, WorkflowInput } from "./workflow.js";
import { WorkflowExecutionOptions } from "./workflow.js";
/**

@@ -67,3 +68,3 @@ * Top level Eventual Client used by systems outside of an Eventual Service to interact with it.

}
export interface StartExecutionRequest<W extends Workflow = Workflow> extends WorkflowOptions {
export interface StartExecutionRequest<W extends Workflow = Workflow> extends WorkflowExecutionOptions {
/**

@@ -70,0 +71,0 @@ * Name of the workflow execution.

export {};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS1jbGllbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2VydmljZS1jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRXhlY3V0aW9uLCBFeGVjdXRpb25IYW5kbGUgfSBmcm9tIFwiLi9leGVjdXRpb24uanNcIjtcbmltcG9ydCB0eXBlIHsgQ29tbWFuZElucHV0IH0gZnJvbSBcIi4vaHR0cC9jb21tYW5kLmpzXCI7XG5pbXBvcnQgdHlwZSB7XG4gIEV2ZW50dWFsU2VydmljZSxcbiAgRXhlY3V0aW9uSGlzdG9yeVJlc3BvbnNlLFxuICBMaXN0RXhlY3V0aW9uRXZlbnRzUmVzcG9uc2UsXG4gIExpc3RFeGVjdXRpb25zUmVzcG9uc2UsXG4gIExpc3RXb3JrZmxvd3NSZXNwb25zZSxcbiAgU2VuZEFjdGl2aXR5RmFpbHVyZVJlcXVlc3QsXG4gIFNlbmRBY3Rpdml0eUhlYXJ0YmV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Mgd2lsbCBiZSBkZWR1cGxpY2F0ZWQuXG4gICAqL1xuICBpZD86IHN0cmluZztcbn1cblxuLy8gcmUtZXhwb3J0cyB0eXBlcyB1c2VkIGJ5IHRoZSBjbGllbnQsIHRoZSB0eXBlcyBhcmUgaW4gdGhlIGludGVybmFsIHBhdGggb3RoZXJ3aXNlLlxuZXhwb3J0IHtcbiAgRXhlY3V0aW9uSGlzdG9yeVJlc3BvbnNlLFxuICBMaXN0RXhlY3V0aW9uc1Jlc3BvbnNlLFxuICBMaXN0RXhlY3V0aW9uRXZlbnRzUmVzcG9uc2UsXG4gIExpc3RXb3JrZmxvd3NSZXNwb25zZSxcbiAgU2VuZEFjdGl2aXR5RmFpbHVyZVJlcXVlc3QsXG4gIFNlbmRBY3Rpdml0eUhlYXJ0YmVhdFJlcXVlc3QsXG4gIFNlbmRBY3Rpdml0eUhlYXJ0YmVhdFJlc3BvbnNlLFxuICBTZW5kQWN0aXZpdHlTdWNjZXNzUmVxdWVzdCxcbn07XG4iXX0=

@@ -1,6 +0,6 @@

import type { ChildExecution, ExecutionHandle } from "./execution.js";
import type { ExecutionID } from "./execution.js";
import type { ChildExecution, ExecutionHandle, ExecutionID } from "./execution.js";
import type { Program } from "./internal/eventual.js";
import { HistoryStateEvent, TimerCompleted } from "./internal/workflow-events.js";
import type { DurationSchedule } from "./schedule.js";
import { Schedule } from "./schedule.js";
import type { StartExecutionRequest } from "./service-client.js";

@@ -11,2 +11,21 @@ export interface WorkflowHandler<Input = any, Output = any> {

/**
* Workflow options available when invoked by another workflow.
*/
export interface ChildWorkflowOptions {
timeout?: Promise<any> | Schedule;
}
/**
* Options which determine how an execution operates.
*
* Overrides those provided by the workflow definition.
*/
export interface WorkflowExecutionOptions {
/**
* Number of seconds before or a time to time the workflow out at.
*
* @default - workflow will never timeout.
*/
timeout?: Schedule;
}
/**
* Options which determine how a workflow operates.

@@ -16,3 +35,3 @@ *

*/
export interface WorkflowOptions {
export interface WorkflowDefinitionOptions {
/**

@@ -27,2 +46,3 @@ * Number of seconds before execution times out.

export type WorkflowInput<W extends Workflow> = W extends Workflow<infer In, any> ? In : undefined;
export type WorkflowArguments<Input = any> = [Input] extends [undefined] ? [input?: Input, options?: ChildWorkflowOptions] : [input: Input, options?: ChildWorkflowOptions];
/**

@@ -37,3 +57,3 @@ * A {@link Workflow} is a long-running process that orchestrates calls

name: string;
options?: WorkflowOptions;
options?: WorkflowDefinitionOptions;
/**

@@ -48,3 +68,3 @@ * Invokes the {@link Workflow} from within another workflow.

*/
(input: Input): Promise<Output> & ChildExecution;
(...args: WorkflowArguments<Input>): Promise<Output> & ChildExecution;
/**

@@ -82,3 +102,3 @@ * Starts a workflow execution

export declare function workflow<Input = any, Output = any>(name: string, definition: WorkflowHandler<Input, Output>): Workflow<Input, Output>;
export declare function workflow<Input = any, Output = any>(name: string, opts: WorkflowOptions, definition: WorkflowHandler<Input, Output>): Workflow<Input, Output>;
export declare function workflow<Input = any, Output = any>(name: string, opts: WorkflowDefinitionOptions, definition: WorkflowHandler<Input, Output>): Workflow<Input, Output>;
/**

@@ -85,0 +105,0 @@ * Generates synthetic events, for example, {@link TimerCompleted} events when the time has passed, but a real completed event has not come in yet.

import { createWorkflowCall } from "./internal/calls/workflow-call.js";
import { isChain } from "./internal/chain.js";
import { isEventual } from "./internal/eventual.js";
import { isOrchestratorWorker } from "./internal/flags.js";
import { getServiceClient, workflows } from "./internal/global.js";
import { isTimerCompleted, isTimerScheduled, WorkflowEventType } from "./internal/workflow-events.js";
import { isDurationSchedule, isTimeSchedule } from "./internal/schedule.js";
import { isTimerCompleted, isTimerScheduled, WorkflowEventType, } from "./internal/workflow-events.js";
export function workflow(name, ...args) {

@@ -11,7 +13,27 @@ const [opts, definition] = args.length === 1 ? [undefined, args[0]] : args;

}
const workflow = ((input) => {
const workflow = ((input, options) => {
if (!isOrchestratorWorker()) {
throw new Error("Direct workflow invocation is only valid in a workflow, use workflow.startExecution instead.");
}
return createWorkflowCall(name, input, opts);
// a timeout can either by from definition or a eventual/promise or both.
// take the invocation time configuration first.
const timeout = options?.timeout ?? opts?.timeout;
if (timeout &&
!(isEventual(timeout) ||
isTimeSchedule(timeout) ||
isDurationSchedule(timeout))) {
throw new Error("Timeout promise must be an Eventual or a Schedule.");
}
return createWorkflowCall(name, input,
// if the timeout is a time or a duration, from any source, send the timeout to the child execution
// to time itself out.
{
timeout: isDurationSchedule(timeout) || isTimeSchedule(timeout)
? timeout
: undefined,
},
// if an eventual/promise is given, even if it is a duration or a time, timeout based on the
// promise resolution.
// TODO: support reporting cancellation to children when the parent times out?
isEventual(timeout) ? timeout : undefined);
});

@@ -61,2 +83,2 @@ Object.defineProperty(workflow, "name", { value: name, writable: false });

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Zsb3cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvd29ya2Zsb3cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDdkUsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBRTlDLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQzNELE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxTQUFTLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNuRSxPQUFPLEVBRUwsZ0JBQWdCLEVBQ2hCLGdCQUFnQixFQUdoQixpQkFBaUIsRUFDbEIsTUFBTSwrQkFBK0IsQ0FBQztBQXNHdkMsTUFBTSxVQUFVLFFBQVEsQ0FDdEIsSUFBWSxFQUNaLEdBQUcsSUFFNkM7SUFFaEQsTUFBTSxDQUFDLElBQUksRUFBRSxVQUFVLENBQUMsR0FBRyxJQUFJLENBQUMsTUFBTSxLQUFLLENBQUMsQ0FBQyxDQUFDL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lIFdvcmtmbG93RGVmaW5pdGlvbkNvbnRleHQge1xuICAvKipcbiAgICogVGhlIG5hbWUgb2YgdGhlIHdvcmtmbG93LlxuICAgKi9cbiAgbmFtZTogc3RyaW5nO1xufVxuXG4vKipcbiAqIENvbnRleHQgdmFsdWVzIHByb3ZpZGVkIHRvIGVhY2ggd29ya2Zsb3cgZXhlY3V0aW9uLlxuICovXG5leHBvcnQgaW50ZXJmYWNlIFdvcmtmbG93Q29udGV4dCB7XG4gIC8qKlxuICAgKiBDb250ZXh0IHZhbHVlcyByZWxhdGVkIHRvIHRoZSBjdXJyZW50IGV4ZWN1dGlvbiBvZiB0aGUgd29ya2Zsb3cuXG4gICAqL1xuICB3b3JrZmxvdzogV29ya2Zsb3dEZWZpbml0aW9uQ29udGV4dDtcbiAgLyoqXG4gICAqIENvbnRleHQgdmFsdWVzIHJlbGF0ZWQgdG8gdGhlIHdvcmtmbG93IGRlZmluaXRpb24uXG4gICAqL1xuICBleGVjdXRpb246IFdvcmtmbG93RXhlY3V0aW9uQ29udGV4dDtcbn1cbiJdfQ==
{
"name": "@eventual/core",
"version": "0.20.4",
"version": "0.21.0",
"exports": {

@@ -5,0 +5,0 @@ ".": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc