@dudousxd/nestjs-durable-core 0.102.0 → 0.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +590 -61
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +200 -7
- package/dist/index.d.ts +200 -7
- package/dist/index.js +585 -61
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -187,9 +187,14 @@ interface ConcurrencyQuota {
|
|
|
187
187
|
* / `@Workflow({ concurrency })`): the key is derived from each start's input, and the limit may be a
|
|
188
188
|
* function of the key (per-tenant plans). A `StartOptions.concurrency` on one start overrides it.
|
|
189
189
|
*/
|
|
190
|
-
interface ConcurrencyConfig {
|
|
191
|
-
/**
|
|
192
|
-
|
|
190
|
+
interface ConcurrencyConfig<TInput = unknown> {
|
|
191
|
+
/**
|
|
192
|
+
* Derive the quota key from the input. Return `undefined` to leave this start unlimited. When the
|
|
193
|
+
* workflow declares an input schema (`@Workflow({ input })`, or `register(..., { parseInput })`),
|
|
194
|
+
* it receives the PARSED input, the same value `run(ctx, input)` gets, and `@Workflow` types
|
|
195
|
+
* `TInput` from the schema.
|
|
196
|
+
*/
|
|
197
|
+
key: (input: TInput) => string | undefined;
|
|
193
198
|
/** Max in-flight runs per key — a number, or resolved per key (e.g. from the tenant's plan). */
|
|
194
199
|
limit: number | ((key: string) => number | Promise<number>);
|
|
195
200
|
/** Which statuses occupy a slot. See {@link ConcurrencyQuota.countStatuses}. */
|
|
@@ -2356,9 +2361,13 @@ interface StartOptions {
|
|
|
2356
2361
|
* admission on a timer until a slot frees. The store atomically reserves durable slots before
|
|
2357
2362
|
* ordering unadmitted waiters by `(createdAt, id)`, so later starts cannot displace a holder.
|
|
2358
2363
|
*/
|
|
2359
|
-
interface SingletonConfig {
|
|
2360
|
-
/**
|
|
2361
|
-
|
|
2364
|
+
interface SingletonConfig<TInput = unknown> {
|
|
2365
|
+
/**
|
|
2366
|
+
* Derive the serialization key from the workflow input. When the workflow declares an input schema
|
|
2367
|
+
* (`@Workflow({ input })`, or `register(..., { parseInput })`), it receives the PARSED input, the
|
|
2368
|
+
* same value `run(ctx, input)` gets, and `@Workflow` types `TInput` from the schema.
|
|
2369
|
+
*/
|
|
2370
|
+
key: (input: TInput) => string;
|
|
2362
2371
|
/** Max concurrent runs sharing the key. Default 1 (a mutex). */
|
|
2363
2372
|
limit?: number;
|
|
2364
2373
|
/**
|
|
@@ -3041,6 +3050,16 @@ declare class WorkflowEngine {
|
|
|
3041
3050
|
concurrency?: ConcurrencyConfig | undefined;
|
|
3042
3051
|
executionTimeout?: string | number | undefined;
|
|
3043
3052
|
validateInput?: ((input: unknown) => void | Promise<void>) | undefined;
|
|
3053
|
+
/**
|
|
3054
|
+
* The input as the body sees it: a schema's parsed (coerced/transformed) value, sync or async,
|
|
3055
|
+
* throwing on input that does not parse. When set, `start` parses the input once: a failure
|
|
3056
|
+
* rejects the start like a failed `validateInput`, and `validateInput` and the `singleton` and
|
|
3057
|
+
* `concurrency` keys receive the parsed value instead of the input as sent. Each turn's
|
|
3058
|
+
* singleton admission parses the stored input again for its key; a stored input that no
|
|
3059
|
+
* longer parses fails the run with `invalid_input` (a `SchemaValidationError`) there, before
|
|
3060
|
+
* the body runs or a turn is dispatched. The run still stores the input as sent. `@dudousxd/nestjs-durable` supplies it from `@Workflow({ input })`.
|
|
3061
|
+
*/
|
|
3062
|
+
parseInput?: ((input: unknown) => unknown) | undefined;
|
|
3044
3063
|
/** Typed/validated `searchAttributes` shape — see `RegisteredWorkflow.searchAttributesSchema`. */
|
|
3045
3064
|
searchAttributesSchema?: SearchAttributesSchema | undefined;
|
|
3046
3065
|
onEvent?: OnEventEntry[] | undefined;
|
|
@@ -4766,6 +4785,13 @@ declare class WorkflowEngine {
|
|
|
4766
4785
|
* — the caller has already ensured this is the decision for the currently-awaited turn.
|
|
4767
4786
|
*/
|
|
4768
4787
|
private applyDecision;
|
|
4788
|
+
/**
|
|
4789
|
+
* A remote turn that ended in `ctx.continueAsNew(input)`: record what the turn ran, complete this
|
|
4790
|
+
* run and start its continuation (`<runId>~N`) with `input` on a clean history — the in-process
|
|
4791
|
+
* engine's handoff, with the run's partition and tenant carried over. A run cancelled while the
|
|
4792
|
+
* turn replayed stays cancelled and starts nothing.
|
|
4793
|
+
*/
|
|
4794
|
+
private applyRemoteContinueAsNew;
|
|
4769
4795
|
/**
|
|
4770
4796
|
* Re-drive a run whose turn was computed from a history OLDER than the store's.
|
|
4771
4797
|
*
|
|
@@ -4864,6 +4890,59 @@ declare class WorkflowEngine {
|
|
|
4864
4890
|
* {@link redriveLostCall}). A terminal turn (completed/failed/cancelled) applies its commands only
|
|
4865
4891
|
* to record what already ran, and must never dispatch anything new. */
|
|
4866
4892
|
private applyCommands;
|
|
4893
|
+
/**
|
|
4894
|
+
* Park a remote turn on signal `token` at `seq`: register a waiter so `engine.signal(token)` lands
|
|
4895
|
+
* the resolving `signal` checkpoint here and resumes the run. If the signal was already delivered
|
|
4896
|
+
* (buffered before the workflow reached this point — e.g. signalWithStart), resolve it now and
|
|
4897
|
+
* re-drive on a macrotask, AFTER this turn suspends and frees the run lock (a re-entrant resume
|
|
4898
|
+
* bails).
|
|
4899
|
+
*/
|
|
4900
|
+
private parkRemoteOnSignal;
|
|
4901
|
+
/** Re-drive `runId` on a macrotask, after the current turn has suspended and freed its lease. */
|
|
4902
|
+
private resumeSoon;
|
|
4903
|
+
/**
|
|
4904
|
+
* Stamp the deadline of a BOUNDED remote wait at `deadlineSeq`, once: the first apply records
|
|
4905
|
+
* `now + timeoutMs` as a `timeout:<label>` timer, and every later one reads the recorded deadline
|
|
4906
|
+
* back (the in-process `stampDeadline`). The checkpoint's `input` names the wait it bounds, so the
|
|
4907
|
+
* deadline can drop that wait's waiter when it lapses — see {@link expireRemoteDeadlines}.
|
|
4908
|
+
*/
|
|
4909
|
+
private stampRemoteDeadline;
|
|
4910
|
+
/**
|
|
4911
|
+
* Before a remote turn reads its history: a bounded wait whose deadline has lapsed drops its waiter
|
|
4912
|
+
* (exact row only), so a signal or event arriving later cannot resolve a wait the turn already saw
|
|
4913
|
+
* time out — the in-process wait removes its waiter the same way when it finds the deadline past.
|
|
4914
|
+
* A delivery that took the waiter first wins: its checkpoint is read back into `checkpoints`, and the
|
|
4915
|
+
* worker's replay checks the wait before the deadline. Returns the (possibly extended) list.
|
|
4916
|
+
*/
|
|
4917
|
+
private expireRemoteDeadlines;
|
|
4918
|
+
/**
|
|
4919
|
+
* Claim one buffered event `name` whose payload satisfies `match` and that this run's tenant may
|
|
4920
|
+
* see — the remote twin of the in-process `waitForEvent`'s buffered consumption (oldest first; a
|
|
4921
|
+
* candidate claimed elsewhere first is skipped, not waited on). Expired candidates are pruned when
|
|
4922
|
+
* {@link eventBufferTtlMs} is set, like the reconcile sweep.
|
|
4923
|
+
*/
|
|
4924
|
+
private claimBufferedEvent;
|
|
4925
|
+
/** The lease a freshly dispatched remote `call` parks on: its liveness `timeoutMs` when its policy
|
|
4926
|
+
* sets one, else the lost-dispatch window (`remoteRedispatchMs`), else none. */
|
|
4927
|
+
private callLease;
|
|
4928
|
+
/**
|
|
4929
|
+
* A re-emitted remote `call` that carries its step's policy: apply the policy to the step's
|
|
4930
|
+
* checkpoint exactly as the in-process `ctx.step` path ({@link callRemote} / {@link
|
|
4931
|
+
* callRemoteInMemory}) applies it, so a step declared with retries, backoff or a timeout on a tenant
|
|
4932
|
+
* behaves as it does on a standalone engine. Returns the time to park the run on (`undefined`: no
|
|
4933
|
+
* timer, the step's result or the next turn moves it), or `null` when the policy has nothing to say
|
|
4934
|
+
* and the lost-dispatch self-heal ({@link redriveLostCall}) decides.
|
|
4935
|
+
*
|
|
4936
|
+
* - FAILED and retried (see `remoteCallRetries`): the first sight stamps the backoff deadline on
|
|
4937
|
+
* the failed checkpoint (`wakeAt`, durable and stable across replays); once due, the step is
|
|
4938
|
+
* dispatched again under the same `stepId` with `attempts + 1`.
|
|
4939
|
+
* - PENDING with a `timeoutMs`: the step's lease is `timeoutMs` from its dispatch. A lapsed lease
|
|
4940
|
+
* re-dispatches while attempts remain, then fails the step with a `remote_step_timeout` error the
|
|
4941
|
+
* workflow can catch, as `RemoteStepTimeout` would surface in-process.
|
|
4942
|
+
*/
|
|
4943
|
+
private applyCallPolicy;
|
|
4944
|
+
/** Dispatch a policed remote `call` again as attempt `attempt` (a retry, or a timed-out attempt). */
|
|
4945
|
+
private redispatchCall;
|
|
4867
4946
|
/**
|
|
4868
4947
|
* Undo the registered saga compensations in reverse and settle the run `cancelled`. Shared by EVERY
|
|
4869
4948
|
* exit path of a run with a compensating cancel in flight — whether the resumed replay returned,
|
|
@@ -7371,6 +7450,39 @@ interface WorkflowTask {
|
|
|
7371
7450
|
*/
|
|
7372
7451
|
priority?: number | undefined;
|
|
7373
7452
|
attempt: number;
|
|
7453
|
+
/**
|
|
7454
|
+
* The workflow-decision features the control plane that dispatched this turn can apply — see
|
|
7455
|
+
* {@link REMOTE_WORKFLOW_FEATURES}. A worker checks it before emitting a command an older control
|
|
7456
|
+
* plane would not understand, and fails the turn with a clear error instead. Absent on a task from
|
|
7457
|
+
* a control plane that predates feature negotiation: only the original command kinds are safe.
|
|
7458
|
+
*/
|
|
7459
|
+
features?: string[] | undefined;
|
|
7460
|
+
}
|
|
7461
|
+
/**
|
|
7462
|
+
* The workflow-decision features this control plane applies, advertised on every {@link WorkflowTask}
|
|
7463
|
+
* it dispatches (`task.features`):
|
|
7464
|
+
* - `callPolicy` — a `call` command's `policy` (retries, backoff, liveness `timeoutMs`) is enforced;
|
|
7465
|
+
* - `sleepUntil`, `waitSignalTimeout`, `waitEvent`, `spawnChild`, `continueAsNew` — the command kinds
|
|
7466
|
+
* of the same names.
|
|
7467
|
+
* A worker must not emit a command (or a `call` policy) whose feature the task does not list.
|
|
7468
|
+
*/
|
|
7469
|
+
declare const REMOTE_WORKFLOW_FEATURES: readonly ["callPolicy", "sleepUntil", "waitSignalTimeout", "waitEvent", "spawnChild", "continueAsNew"];
|
|
7470
|
+
/** One of {@link REMOTE_WORKFLOW_FEATURES}. */
|
|
7471
|
+
type RemoteWorkflowFeature = (typeof REMOTE_WORKFLOW_FEATURES)[number];
|
|
7472
|
+
/**
|
|
7473
|
+
* The durable dispatch policy a remote `call` command carries (feature `callPolicy`): the same fields,
|
|
7474
|
+
* defaults and semantics as the in-process `ctx.step` policy ({@link StepOptions}) — `retries` is the
|
|
7475
|
+
* total number of attempts; without `timeoutMs` a failed attempt is re-dispatched after `backoff`
|
|
7476
|
+
* unless the worker marked the error non-retryable; with `timeoutMs` an attempt that returns no
|
|
7477
|
+
* result within the window is re-dispatched (up to `retries`) and a reported failure is final.
|
|
7478
|
+
*/
|
|
7479
|
+
interface RemoteCallPolicy {
|
|
7480
|
+
retries?: number | undefined;
|
|
7481
|
+
backoff?: BackoffStrategy | undefined;
|
|
7482
|
+
backoffMs?: number | undefined;
|
|
7483
|
+
backoffMaxMs?: number | undefined;
|
|
7484
|
+
jitter?: boolean | undefined;
|
|
7485
|
+
timeoutMs?: number | undefined;
|
|
7374
7486
|
}
|
|
7375
7487
|
/** One resolved durable op in a run's history — a superset of a completed {@link StepCheckpoint}. */
|
|
7376
7488
|
interface HistoryEvent {
|
|
@@ -7386,6 +7498,11 @@ interface HistoryEvent {
|
|
|
7386
7498
|
output?: unknown;
|
|
7387
7499
|
/** Set when the op resolved to a failure (e.g. a failed remote step the workflow may catch). */
|
|
7388
7500
|
error?: StepError | undefined;
|
|
7501
|
+
/**
|
|
7502
|
+
* For a `call`: how many times the step was dispatched. A worker applying a `call` policy reads it
|
|
7503
|
+
* to decide whether a failed attempt is retried (see {@link RemoteCallPolicy}).
|
|
7504
|
+
*/
|
|
7505
|
+
attempts?: number | undefined;
|
|
7389
7506
|
}
|
|
7390
7507
|
/** A decision the workflow function produced at a `seq` that was not yet in history. */
|
|
7391
7508
|
type WorkflowCommand =
|
|
@@ -7400,6 +7517,10 @@ type WorkflowCommand =
|
|
|
7400
7517
|
group: string;
|
|
7401
7518
|
input: unknown;
|
|
7402
7519
|
parallelGroup?: string;
|
|
7520
|
+
/** The step's durable dispatch policy (feature `callPolicy`). Re-sent on every turn the step is
|
|
7521
|
+
* not resolved, so whichever control-plane instance applies the turn enforces it. A failed
|
|
7522
|
+
* attempt the policy retries is re-emitted with it instead of raised. */
|
|
7523
|
+
policy?: RemoteCallPolicy;
|
|
7403
7524
|
}
|
|
7404
7525
|
/** `ctx.step(name, body)` — a LOCAL step the worker already ran this turn; the engine persists its
|
|
7405
7526
|
* result so replay returns it instead of re-running (durability for side-effectful work).
|
|
@@ -7426,12 +7547,59 @@ type WorkflowCommand =
|
|
|
7426
7547
|
seq: number;
|
|
7427
7548
|
ms: number;
|
|
7428
7549
|
}
|
|
7550
|
+
/** `ctx.sleepUntil(when)` — a durable timer to an absolute epoch-ms deadline (feature `sleepUntil`). */
|
|
7551
|
+
| {
|
|
7552
|
+
kind: 'sleepUntil';
|
|
7553
|
+
seq: number;
|
|
7554
|
+
until: number;
|
|
7555
|
+
}
|
|
7429
7556
|
/** `ctx.wait_signal(name)` — block until a signal `name` is delivered to the run. */
|
|
7430
7557
|
| {
|
|
7431
7558
|
kind: 'waitSignal';
|
|
7432
7559
|
seq: number;
|
|
7433
7560
|
signal: string;
|
|
7434
7561
|
}
|
|
7562
|
+
/** `ctx.waitForSignal(name, { timeoutMs })` (feature `waitSignalTimeout`): like the in-process ctx it
|
|
7563
|
+
* takes TWO positions — `deadlineSeq` for the deadline timer (stamped once, at `now + timeoutMs`
|
|
7564
|
+
* when first applied) and `seq` for the wait. Whichever resolves first shows in history: the signal
|
|
7565
|
+
* at `seq`, or a `timer` at `deadlineSeq`, which the worker raises as a `SignalTimeoutError`. */
|
|
7566
|
+
| {
|
|
7567
|
+
kind: 'waitSignalTimeout';
|
|
7568
|
+
seq: number;
|
|
7569
|
+
deadlineSeq: number;
|
|
7570
|
+
signal: string;
|
|
7571
|
+
timeoutMs: number;
|
|
7572
|
+
}
|
|
7573
|
+
/** `ctx.waitForEvent(name, { match, timeoutMs })` (feature `waitEvent`): wait for a named event
|
|
7574
|
+
* published with `engine.publishEvent`, buffered events included. Bounded like
|
|
7575
|
+
* `waitSignalTimeout` when `timeoutMs` is set (then `deadlineSeq` is the deadline's position). */
|
|
7576
|
+
| {
|
|
7577
|
+
kind: 'waitEvent';
|
|
7578
|
+
seq: number;
|
|
7579
|
+
name: string;
|
|
7580
|
+
match?: Record<string, unknown>;
|
|
7581
|
+
deadlineSeq?: number;
|
|
7582
|
+
timeoutMs?: number;
|
|
7583
|
+
}
|
|
7584
|
+
/** `ctx.startChild(workflow, input, opts)` (feature `spawnChild`): start a child run WITHOUT awaiting
|
|
7585
|
+
* it. The worker returns `childId` immediately and the turn goes on; the control plane starts the
|
|
7586
|
+
* child once (idempotent by id) and journals a `spawn:<childId>` step at `seq`. */
|
|
7587
|
+
| {
|
|
7588
|
+
kind: 'spawnChild';
|
|
7589
|
+
seq: number;
|
|
7590
|
+
workflow: string;
|
|
7591
|
+
input: unknown;
|
|
7592
|
+
childId: string;
|
|
7593
|
+
priority?: number;
|
|
7594
|
+
}
|
|
7595
|
+
/** `ctx.continueAsNew(input)` (feature `continueAsNew`): the LAST command of a turn. The control
|
|
7596
|
+
* plane completes this run and starts its continuation (`<runId>~N`) with `input`, as the
|
|
7597
|
+
* in-process engine does. `seq` is the position the body had reached (not consumed). */
|
|
7598
|
+
| {
|
|
7599
|
+
kind: 'continueAsNew';
|
|
7600
|
+
seq: number;
|
|
7601
|
+
input: unknown;
|
|
7602
|
+
}
|
|
7435
7603
|
/** `ctx.waitForAny(name, conditions)` — block until the first of `conditions` happens. The engine
|
|
7436
7604
|
* resolves it exactly as the in-process ctx does (see `wait-any.ts`), journals `{ key, value }` at
|
|
7437
7605
|
* `seq` and replays it as an `any` {@link HistoryEvent}. A timer's `ms` counts from when the engine
|
|
@@ -9710,6 +9878,24 @@ declare function runSchedules(engine: ScheduleTickEngine, schedules: readonly Sc
|
|
|
9710
9878
|
*/
|
|
9711
9879
|
type ScheduleTickEngine = Pick<WorkflowEngine, 'start' | 'getRun'> & Partial<Pick<WorkflowEngine, 'isDraining' | 'listRuns'>>;
|
|
9712
9880
|
|
|
9881
|
+
/**
|
|
9882
|
+
* The durable dispatch policy of a `ctx.step` call as a remote `call` command carries it: the
|
|
9883
|
+
* `@Step`-declared config, with a per-call `opts` field winning wherever it is set — the same merge
|
|
9884
|
+
* the in-process `ctx.step` applies. `undefined` when neither declares any policy field, so a call
|
|
9885
|
+
* without one stays wire-identical to a call from before policies were carried.
|
|
9886
|
+
*/
|
|
9887
|
+
declare function remoteCallPolicyOf(config: StepConfig | undefined, opts: StepDispatchOpts | undefined): RemoteCallPolicy | undefined;
|
|
9888
|
+
/** Total dispatch attempts a policy allows (`retries`, at least one) — the in-process rule. */
|
|
9889
|
+
declare function remoteCallMaxAttempts(policy: RemoteCallPolicy | undefined): number;
|
|
9890
|
+
/**
|
|
9891
|
+
* Whether a remote `call` whose attempt `attempts` FAILED with `error` is dispatched again under
|
|
9892
|
+
* `policy`, exactly as the in-process durable path decides it: never with a liveness `timeoutMs`
|
|
9893
|
+
* (there only a timeout is retried, a reported failure is final), never for an error the worker
|
|
9894
|
+
* marked non-retryable, and only while attempts remain. The worker's replay and the control plane
|
|
9895
|
+
* both decide with this one function, so they cannot disagree about a retry.
|
|
9896
|
+
*/
|
|
9897
|
+
declare function remoteCallRetries(policy: RemoteCallPolicy | undefined, attempts: number, error: StepError | undefined): boolean;
|
|
9898
|
+
|
|
9713
9899
|
/**
|
|
9714
9900
|
* A {@link StepLogger} that appends to `events`, stamping each line with `now()`. Shared by the
|
|
9715
9901
|
* local-step path (`ctx.step`) and the remote-worker path (`runStepHandler`) so a step records
|
|
@@ -10165,6 +10351,13 @@ declare const SINGLETON_TRACKED_TAG = "durable:singleton:tracked";
|
|
|
10165
10351
|
/** Tags only the engine/store may write; stripped from user-supplied start tags. */
|
|
10166
10352
|
declare const SINGLETON_RESERVED_TAGS: readonly string[];
|
|
10167
10353
|
declare const SINGLETON_ACTIVE_STATUSES: RunStatus[];
|
|
10354
|
+
/**
|
|
10355
|
+
* The `singleton:<key>` tag the ENGINE stamped on a run: the last tag with that prefix. A start
|
|
10356
|
+
* appends it after the caller's tags, and since 0.104.0 a caller's `singleton:` tags are dropped,
|
|
10357
|
+
* but a run started earlier can still carry one ahead of the engine's; reading the last one keeps
|
|
10358
|
+
* such a run under its real key until it settles. Never one of the `durable:singleton:*` markers.
|
|
10359
|
+
*/
|
|
10360
|
+
declare function singletonKeyTag(tags: readonly string[] | undefined): string | undefined;
|
|
10168
10361
|
/** `tags` without the engine's singleton admission metadata. */
|
|
10169
10362
|
declare function withoutSingletonMarkers(tags: string[] | undefined): string[] | undefined;
|
|
10170
10363
|
/** `tags` carrying {@link SINGLETON_TRACKED_TAG} (unchanged when admitted or already tracked). */
|
|
@@ -10277,4 +10470,4 @@ declare function prevRRuleFireMs(rule: ParsedRRule, atMs: number): number | null
|
|
|
10277
10470
|
*/
|
|
10278
10471
|
declare function settleResultsWithPlainCalls(store: Pick<StateStore, 'getRun' | 'getCheckpoint'> & Partial<Pick<StateStore, 'getRuns' | 'getCheckpointsForSettle' | 'getCheckpoints' | 'settleCheckpointsIfPending'>>, results: StepResultSettlement[]): Promise<(StepCheckpoint | null)[]>;
|
|
10279
10472
|
|
|
10280
|
-
export { ACCUMULATOR_SEEN_MAX, ANNOUNCED_SCHEDULE_TAG, ANY_WAIT_GROUP, type AccumulatorHost, type AccumulatorStartOptions, type Admission, type AdmissionBackend, type AdmissionItem, type AllOptions, type AllSettledOptions, type AllStepsOptions, type AllStepsSettledOptions, type AnnouncedSchedule, type AnnouncedScheduleSync, type AnnouncedWorkflow, type AnnouncedWorkflowOptions, type AnnouncementEvidence, type AttributeFilter, type AttributeOp, type AttributePredicateOperand, type AttributeValue, type AttributedEngineEvent, type BackoffStrategy, type BlockedDispatch, type BlockedResolution, type BufferedSignalRow, CHILD_EDGE_PREFIXES, CONTROL_FLOW_SIGNAL, CORE_ORIGIN, CURRENT_PROTOCOL_VERSION, type CapabilityRequirement, type CheckpointAggregatingStore, type CheckpointNameKind, type CheckpointQuery, type CheckpointStat, type ChildCallOptions, type ChildWait, CodecStateStore, type CodecStateStoreOptions, type ConcurrencyConfig, ConcurrencyLimitError, type ConcurrencyQuota, type ConsoleCapabilities, type ConsoleFederation, ContinueAsNew, type ControlMessage, type ControlPlane, DEFAULT_ANNOUNCED_SCHEDULE_GRACE_MS, DEFAULT_CONCURRENCY_STATUSES, DEFAULT_PARTITION, DEFAULT_STALLED_AFTER_MS, DURABLE_OPTIONS, DURABLE_OPTIONS_CANONICAL, DURABLE_STEP_CONFIG, DURABLE_STEP_NAME, type Disagreement, type DispatchDiagnostics, type DispatchPlan, DuplicateDurableCopyError, type DurableCopy, type DurableExecution, type DurableExecutionWrapper, type DurableTopology, type DurableWebhook, DurableWorkflow, type DynamicWorkflowCtx, ENGINE_MINTED_TAG_PREFIXES, ENTITY_WORKFLOW, EVENT_BUFFER_SCAN_LIMIT, EVENT_TOKEN_PREFIX, type EngineEvent, type EngineEventType, type EngineListener, type EngineTenancy, Entities, type EntityConfig, type EntityHandler, type EntityHost, type EntityWorkflowHost, EventAccumulators, type EventBatchConfig, type EventSubscription, FAN_SUMMARY_FAILURES, type FanJoin, type FanPage, type FanPageQuery, type FanSummary, type FanWait, FatalError, type FindStalledRunsOptions, GatherError, type GatherItemFailure, type GroupHealth, HANDOFF_SEQ_BASE, type Heartbeat, type HeartbeatSighting, type HeartbeatStatus, type HistoryEvent, InMemoryAdmissionBackend, InMemoryRunQueue, InMemoryStateStore, InMemoryTransport, type InferSearchAttributes, LEGACY_V1_CAPABILITIES, LEGACY_V1_PROTOCOL, LIFECYCLE_COALESCED_TAG_PREFIX, LIFECYCLE_HEAL_WINDOW_MS, LIFECYCLE_ORPHAN_MS, LIFECYCLE_OWED_TAG_PREFIX, LIFECYCLE_PENDING_TAG, LIFECYCLE_REGISTRY_HEARTBEAT_MS, LIFECYCLE_REGISTRY_STALE_MS, LIFECYCLE_REGISTRY_TAG, LIFECYCLE_REGISTRY_TTL_MS, LIFECYCLE_REGISTRY_WORKFLOW, LIFECYCLE_TRACE_TAG_PREFIX, LIFECYCLE_TRIGGERED_TAG_PREFIX, LIFECYCLE_TRIGGER_FAILED_TAG_PREFIX, type LifecycleDelivery, type LifecycleDeliveryState, type LifecycleEventOf, type LifecycleKind, type LifecycleRegistryEntry, type LifecycleSource, type LifecycleSubscriptionLink, type ListStalledRunsOptions, type MetricsCollector, type MetricsSnapshot, NO_LIVE_WORKER, type NamedTransport, type NegotiateOptions, type NegotiationOutcome, type NegotiationReason, type NegotiationResult, NestedWorkflowCallError, NonDeterminismError, type OnErrorInput, type OnErrorRoute, type OnEventEntry, type OwnedLeaseReclaim, PARENT_CLOSE_TAG_PREFIX, type ParentClosePolicy, type ParsedRRule, type PartitionSighting, type PayloadCodec, type QueueConfig, QueueController, REMOTE_EVENT, RUN_HISTORY_FIXTURE_VERSION, RUN_VALUE_FACET_LIMIT, RUN_VALUE_FACET_SCAN, RUN_WAIT_TOKEN_PREFIX, type RawWorkerDescriptor, RemoteStepError, RemoteStepTimeout, type RemoteTask, RemoteWorkflowExecutor, RemoteWorkflowTimeout, type RepublishLifecycleResult, type RepublishLifecycleTarget, type RetentionPolicy, type RoutableDispatch, type RoutableResolution, type RoutingResolution, type RunAppAttribution, RunAppStamper, type RunAppTopologyOptions, type RunAttributeRow, type RunConsumerOptions, type RunDetail, type RunDetailOptions, type RunDispatch, type RunDispatcher, type RunFacetQuery, type RunFacetRow, RunGateway, type RunListItem, type RunQuery, type RunQueueOptions, type RunReply, type RunReplyResult, type RunRequest, type RunRequestKind, type RunResult, type RunSchedulesOptions, type RunScope, type RunStatus, type RunTenant, type RunValueAxis, type RunValueFacetOptions, type RunValueFacetOrder, type RunValueFacetRow, type RunWaitLink, type RunWaiting, SINGLETON_ACTIVE_STATUSES, SINGLETON_ADMITTED_TAG, SINGLETON_LOCK_CHUNK, SINGLETON_RESERVED_TAGS, SINGLETON_TRACKED_TAG, STATE_STORE, STATE_STORE_CANONICAL, SUMMARY_CHILD_LIMIT, type ScalarAttributeFilter, type ScheduleAction, ScheduleAlreadyExistsError, type ScheduleAnnouncement, ScheduleClient, type ScheduleClientOptions, type ScheduleDescription, type ScheduleHost, type ScheduleListQuery, ScheduleNotFoundError, type ScheduleOptions, type ScheduleQuery, type ScheduleRecord, type ScheduleTickEngine, type ScheduledWorkflow, type SchemaIssue, type SchemaValidationCode, SchemaValidationError, type SearchAttributes, type SearchAttributesSchema, type Settled, type SignalOptions, SignalTimeoutError, type SignalWaiter, type SingletonConfig, SingletonQueueFullError, type StalePendingStep, type StalledRunInfo, StandardSchemaV1, type StartOptions, type StartRunMessage, type StartRunSingleton, type StateStore, type StepCheckpoint, type StepConfig, type StepDef, type StepDispatchOpts, type StepError, type StepEvent, type StepHandler, type StepInterceptor, type StepInvocation, type StepKind, type StepLogger, type StepOptions, type StepRef, type StepResult, type StepResultSettlement, type StepScope, type StepSettlement, type StepUndo, type StoreTransaction, type SubProcessHandle, TERMINAL_RUN_STATUSES, TRANSPORT, TRANSPORT_CANONICAL, type TenantEvent, type TenantFilter, type TenantRow, type TenantTokenSource, type TenantVerifier, type Transport, type UndoOf, type UpdateResult, type UpdateValidator, VERSION_UNDECLARED_TAG, type VerifiedTenant, WORKFLOW_NAME_KEY, type WaitAnyCondition, type WaitAnyOutcome, type WaitAnyResult, type WaitCondition, type WaitConditionSpec, type WaitForRunOptions, type WireDates, type WorkerAdjust, type WorkerConcurrencyStatus, type WorkerDescriptor, type WorkerHeartbeat, type WorkerLifecycle, type WorkerStatus, type WorkflowAnnouncement, WorkflowBlocked, type WorkflowClass, type WorkflowCommand, type WorkflowCtx, type WorkflowDecision, type WorkflowDirectory, WorkflowEngine, type WorkflowEngineDeps, type WorkflowExecutor, type WorkflowHandler, type WorkflowInputOf, type WorkflowLifecycleEvent, type WorkflowLifecycleLinks, WorkflowNotRegistered, type WorkflowOutputOf, type WorkflowRef, type WorkflowRegistration, type WorkflowRun, type WorkflowStartClient, type WorkflowStepEvent, WorkflowSuspended, type WorkflowTask, acceptingSubscription, accumulatorRunId, aggregateAnnouncements, aggregatesCheckpoints, announcedScheduleId, announcementsOf, anyCheckpointName, applyAttributeQuery, assertConcurrency, assertRoutes, assertSingleDurableCopy, attributeColumnFor, attributeOperand, attributePredicateOperands, axisIsRunColumn, bindWorkflowClass, breakpointToken, bufferedEventReaches, buildWorkflowDirectory, canRoute, capableWorkers, carriesLifecyclePending, checkpointNameKind, checkpointStatsOf, childIdsOf, classifyWaiterToken, clearDurableExecutionWrappers, clearTerminalSingletonAdmission, coalescedSubscribersOf, codeAndDetails, codeOf, collectMetrics, concurrencyTag, controlPlaneAttribution, controlPlaneDescriptor, countRuns, coveredTokens, createStepLogger, currentStep, currentStepScope, currentWorkflowCtx, debug, describeWorker, descriptorHash, detailsOf, durableCopies, error, etagMatches, eventMatchOf, eventMatches, eventNameOf, eventPrefix, eventToken, extendEtag, facetOrigin, fanPageBounds, fanPageEtag, findStalledRuns, foldedCount, getRunsByIds, grantsClientTenant, handoffHandlerId, handoffName, hasDurableExecutionWrappers, heartbeatStatus, hmacTenantVerifier, indexWaitersByRun, info, inheritTenant, isAnyCheckpoint, isAnyMember, isEngineMintedTag, isEventToken, isFailedMember, isLegacyDescriptor, isLifecycleTag, isNonEmptyRunScope, isRemoteEvent, isWorkflowControlFlowSignal, legacySingletonHolders, lifecycleDeliveriesOf, lifecycleEventName, lifecycleEventOf, lifecycleKindOf, lifecycleRegistryNamespace, lifecycleRegistryRunId, lifecycleRegistrySubscriptions, lifecycleRunId, lifecycleSourceOf, lifecycleTraceparentOf, listSignalWaitersOfRuns, liveHandoff, log, markRemoteEvent, matchesAttributes, matchesTenantPredicates, mergeRunFacetRows, mergeRunValueFacetRows, missingCapabilities, negotiate, nextCronFireMs, nextRRuleFireMs, nextScheduleFireAt, normalizeAttributeRows, normalizeDescriptor, observedAnnouncements, onErrorRunId, owedSubscribersOf, pageFan, pageFanFromStore, parentRunIdOf, parseDuration, parseLifecycleEvent, parseRRule, parseWebhookToken, partitionOfToken, planDispatch, poolNamespace, prevCronFireMs, prevRRuleFireMs, queryCheckpointsOf, readBufferedEvent, readRunsByIds, readSearchAttributes, requiredCapabilities, resolveConcurrency, resolveRouting, resolveRunWaiting, resolveTenantToken, resolveWireTenant, retentionKeeps, retiredHandoffName, routeFor, rowTenant, runCompletedEvent, runDetailEtag, runDurableExecution, runFailedEvent, runInStepLogger, runInStepScope, runInWorkflowCtx, runOutsideWorkflowCtx, runSchedules, runStepHandler, runTraceId, runValueFacetsFromRuns, runWaitPrefix, runWaitTargetOf, runWaitToken, sanitizeQueueToken, scheduleRunIdAt, scheduledRunId, scopeBufferedEvent, scopeTenantQuery, sealDurableCopies, settleResultsWithPlainCalls, signTenantToken, singletonAdmissionDenialPatch, singletonAdmissionTags, singletonClaimantIds, sqlComparator, stepConfigOf, stepId, stepNameOf, sub, subEvent, subProcess, summarizeFan, summarizeRunFromStore, summarizeTimeline, tenantAppOf, tenantGroup, tenantIdsFor, tenantVisible, toEventSubscription, traceIdOfTraceparent, triggerFailedSubscribersOf, triggeredRunsOf, triggeredSubscribersOf, useDurableExecution, verifyWireTenant, warn, withSingletonTracked, withoutSingletonMarkers, workflowName };
|
|
10473
|
+
export { ACCUMULATOR_SEEN_MAX, ANNOUNCED_SCHEDULE_TAG, ANY_WAIT_GROUP, type AccumulatorHost, type AccumulatorStartOptions, type Admission, type AdmissionBackend, type AdmissionItem, type AllOptions, type AllSettledOptions, type AllStepsOptions, type AllStepsSettledOptions, type AnnouncedSchedule, type AnnouncedScheduleSync, type AnnouncedWorkflow, type AnnouncedWorkflowOptions, type AnnouncementEvidence, type AttributeFilter, type AttributeOp, type AttributePredicateOperand, type AttributeValue, type AttributedEngineEvent, type BackoffStrategy, type BlockedDispatch, type BlockedResolution, type BufferedSignalRow, CHILD_EDGE_PREFIXES, CONTROL_FLOW_SIGNAL, CORE_ORIGIN, CURRENT_PROTOCOL_VERSION, type CapabilityRequirement, type CheckpointAggregatingStore, type CheckpointNameKind, type CheckpointQuery, type CheckpointStat, type ChildCallOptions, type ChildWait, CodecStateStore, type CodecStateStoreOptions, type ConcurrencyConfig, ConcurrencyLimitError, type ConcurrencyQuota, type ConsoleCapabilities, type ConsoleFederation, ContinueAsNew, type ControlMessage, type ControlPlane, DEFAULT_ANNOUNCED_SCHEDULE_GRACE_MS, DEFAULT_CONCURRENCY_STATUSES, DEFAULT_PARTITION, DEFAULT_STALLED_AFTER_MS, DURABLE_OPTIONS, DURABLE_OPTIONS_CANONICAL, DURABLE_STEP_CONFIG, DURABLE_STEP_NAME, type Disagreement, type DispatchDiagnostics, type DispatchPlan, DuplicateDurableCopyError, type DurableCopy, type DurableExecution, type DurableExecutionWrapper, type DurableTopology, type DurableWebhook, DurableWorkflow, type DynamicWorkflowCtx, ENGINE_MINTED_TAG_PREFIXES, ENTITY_WORKFLOW, EVENT_BUFFER_SCAN_LIMIT, EVENT_TOKEN_PREFIX, type EngineEvent, type EngineEventType, type EngineListener, type EngineTenancy, Entities, type EntityConfig, type EntityHandler, type EntityHost, type EntityWorkflowHost, EventAccumulators, type EventBatchConfig, type EventSubscription, FAN_SUMMARY_FAILURES, type FanJoin, type FanPage, type FanPageQuery, type FanSummary, type FanWait, FatalError, type FindStalledRunsOptions, GatherError, type GatherItemFailure, type GroupHealth, HANDOFF_SEQ_BASE, type Heartbeat, type HeartbeatSighting, type HeartbeatStatus, type HistoryEvent, InMemoryAdmissionBackend, InMemoryRunQueue, InMemoryStateStore, InMemoryTransport, type InferSearchAttributes, LEGACY_V1_CAPABILITIES, LEGACY_V1_PROTOCOL, LIFECYCLE_COALESCED_TAG_PREFIX, LIFECYCLE_HEAL_WINDOW_MS, LIFECYCLE_ORPHAN_MS, LIFECYCLE_OWED_TAG_PREFIX, LIFECYCLE_PENDING_TAG, LIFECYCLE_REGISTRY_HEARTBEAT_MS, LIFECYCLE_REGISTRY_STALE_MS, LIFECYCLE_REGISTRY_TAG, LIFECYCLE_REGISTRY_TTL_MS, LIFECYCLE_REGISTRY_WORKFLOW, LIFECYCLE_TRACE_TAG_PREFIX, LIFECYCLE_TRIGGERED_TAG_PREFIX, LIFECYCLE_TRIGGER_FAILED_TAG_PREFIX, type LifecycleDelivery, type LifecycleDeliveryState, type LifecycleEventOf, type LifecycleKind, type LifecycleRegistryEntry, type LifecycleSource, type LifecycleSubscriptionLink, type ListStalledRunsOptions, type MetricsCollector, type MetricsSnapshot, NO_LIVE_WORKER, type NamedTransport, type NegotiateOptions, type NegotiationOutcome, type NegotiationReason, type NegotiationResult, NestedWorkflowCallError, NonDeterminismError, type OnErrorInput, type OnErrorRoute, type OnEventEntry, type OwnedLeaseReclaim, PARENT_CLOSE_TAG_PREFIX, type ParentClosePolicy, type ParsedRRule, type PartitionSighting, type PayloadCodec, type QueueConfig, QueueController, REMOTE_EVENT, REMOTE_WORKFLOW_FEATURES, RUN_HISTORY_FIXTURE_VERSION, RUN_VALUE_FACET_LIMIT, RUN_VALUE_FACET_SCAN, RUN_WAIT_TOKEN_PREFIX, type RawWorkerDescriptor, type RemoteCallPolicy, RemoteStepError, RemoteStepTimeout, type RemoteTask, RemoteWorkflowExecutor, type RemoteWorkflowFeature, RemoteWorkflowTimeout, type RepublishLifecycleResult, type RepublishLifecycleTarget, type RetentionPolicy, type RoutableDispatch, type RoutableResolution, type RoutingResolution, type RunAppAttribution, RunAppStamper, type RunAppTopologyOptions, type RunAttributeRow, type RunConsumerOptions, type RunDetail, type RunDetailOptions, type RunDispatch, type RunDispatcher, type RunFacetQuery, type RunFacetRow, RunGateway, type RunListItem, type RunQuery, type RunQueueOptions, type RunReply, type RunReplyResult, type RunRequest, type RunRequestKind, type RunResult, type RunSchedulesOptions, type RunScope, type RunStatus, type RunTenant, type RunValueAxis, type RunValueFacetOptions, type RunValueFacetOrder, type RunValueFacetRow, type RunWaitLink, type RunWaiting, SINGLETON_ACTIVE_STATUSES, SINGLETON_ADMITTED_TAG, SINGLETON_LOCK_CHUNK, SINGLETON_RESERVED_TAGS, SINGLETON_TRACKED_TAG, STATE_STORE, STATE_STORE_CANONICAL, SUMMARY_CHILD_LIMIT, type ScalarAttributeFilter, type ScheduleAction, ScheduleAlreadyExistsError, type ScheduleAnnouncement, ScheduleClient, type ScheduleClientOptions, type ScheduleDescription, type ScheduleHost, type ScheduleListQuery, ScheduleNotFoundError, type ScheduleOptions, type ScheduleQuery, type ScheduleRecord, type ScheduleTickEngine, type ScheduledWorkflow, type SchemaIssue, type SchemaValidationCode, SchemaValidationError, type SearchAttributes, type SearchAttributesSchema, type Settled, type SignalOptions, SignalTimeoutError, type SignalWaiter, type SingletonConfig, SingletonQueueFullError, type StalePendingStep, type StalledRunInfo, StandardSchemaV1, type StartOptions, type StartRunMessage, type StartRunSingleton, type StateStore, type StepCheckpoint, type StepConfig, type StepDef, type StepDispatchOpts, type StepError, type StepEvent, type StepHandler, type StepInterceptor, type StepInvocation, type StepKind, type StepLogger, type StepOptions, type StepRef, type StepResult, type StepResultSettlement, type StepScope, type StepSettlement, type StepUndo, type StoreTransaction, type SubProcessHandle, TERMINAL_RUN_STATUSES, TRANSPORT, TRANSPORT_CANONICAL, type TenantEvent, type TenantFilter, type TenantRow, type TenantTokenSource, type TenantVerifier, type Transport, type UndoOf, type UpdateResult, type UpdateValidator, VERSION_UNDECLARED_TAG, type VerifiedTenant, WORKFLOW_NAME_KEY, type WaitAnyCondition, type WaitAnyOutcome, type WaitAnyResult, type WaitCondition, type WaitConditionSpec, type WaitForRunOptions, type WireDates, type WorkerAdjust, type WorkerConcurrencyStatus, type WorkerDescriptor, type WorkerHeartbeat, type WorkerLifecycle, type WorkerStatus, type WorkflowAnnouncement, WorkflowBlocked, type WorkflowClass, type WorkflowCommand, type WorkflowCtx, type WorkflowDecision, type WorkflowDirectory, WorkflowEngine, type WorkflowEngineDeps, type WorkflowExecutor, type WorkflowHandler, type WorkflowInputOf, type WorkflowLifecycleEvent, type WorkflowLifecycleLinks, WorkflowNotRegistered, type WorkflowOutputOf, type WorkflowRef, type WorkflowRegistration, type WorkflowRun, type WorkflowStartClient, type WorkflowStepEvent, WorkflowSuspended, type WorkflowTask, acceptingSubscription, accumulatorRunId, aggregateAnnouncements, aggregatesCheckpoints, announcedScheduleId, announcementsOf, anyCheckpointName, applyAttributeQuery, assertConcurrency, assertRoutes, assertSingleDurableCopy, attributeColumnFor, attributeOperand, attributePredicateOperands, axisIsRunColumn, bindWorkflowClass, breakpointToken, bufferedEventReaches, buildWorkflowDirectory, canRoute, capableWorkers, carriesLifecyclePending, checkpointNameKind, checkpointStatsOf, childIdsOf, classifyWaiterToken, clearDurableExecutionWrappers, clearTerminalSingletonAdmission, coalescedSubscribersOf, codeAndDetails, codeOf, collectMetrics, concurrencyTag, controlPlaneAttribution, controlPlaneDescriptor, countRuns, coveredTokens, createStepLogger, currentStep, currentStepScope, currentWorkflowCtx, debug, describeWorker, descriptorHash, detailsOf, durableCopies, error, etagMatches, eventMatchOf, eventMatches, eventNameOf, eventPrefix, eventToken, extendEtag, facetOrigin, fanPageBounds, fanPageEtag, findStalledRuns, foldedCount, getRunsByIds, grantsClientTenant, handoffHandlerId, handoffName, hasDurableExecutionWrappers, heartbeatStatus, hmacTenantVerifier, indexWaitersByRun, info, inheritTenant, isAnyCheckpoint, isAnyMember, isEngineMintedTag, isEventToken, isFailedMember, isLegacyDescriptor, isLifecycleTag, isNonEmptyRunScope, isRemoteEvent, isWorkflowControlFlowSignal, legacySingletonHolders, lifecycleDeliveriesOf, lifecycleEventName, lifecycleEventOf, lifecycleKindOf, lifecycleRegistryNamespace, lifecycleRegistryRunId, lifecycleRegistrySubscriptions, lifecycleRunId, lifecycleSourceOf, lifecycleTraceparentOf, listSignalWaitersOfRuns, liveHandoff, log, markRemoteEvent, matchesAttributes, matchesTenantPredicates, mergeRunFacetRows, mergeRunValueFacetRows, missingCapabilities, negotiate, nextCronFireMs, nextRRuleFireMs, nextScheduleFireAt, normalizeAttributeRows, normalizeDescriptor, observedAnnouncements, onErrorRunId, owedSubscribersOf, pageFan, pageFanFromStore, parentRunIdOf, parseDuration, parseLifecycleEvent, parseRRule, parseWebhookToken, partitionOfToken, planDispatch, poolNamespace, prevCronFireMs, prevRRuleFireMs, queryCheckpointsOf, readBufferedEvent, readRunsByIds, readSearchAttributes, remoteCallMaxAttempts, remoteCallPolicyOf, remoteCallRetries, requiredCapabilities, resolveConcurrency, resolveRouting, resolveRunWaiting, resolveTenantToken, resolveWireTenant, retentionKeeps, retiredHandoffName, routeFor, rowTenant, runCompletedEvent, runDetailEtag, runDurableExecution, runFailedEvent, runInStepLogger, runInStepScope, runInWorkflowCtx, runOutsideWorkflowCtx, runSchedules, runStepHandler, runTraceId, runValueFacetsFromRuns, runWaitPrefix, runWaitTargetOf, runWaitToken, sanitizeQueueToken, scheduleRunIdAt, scheduledRunId, scopeBufferedEvent, scopeTenantQuery, sealDurableCopies, settleResultsWithPlainCalls, signTenantToken, singletonAdmissionDenialPatch, singletonAdmissionTags, singletonClaimantIds, singletonKeyTag, sqlComparator, stepConfigOf, stepId, stepNameOf, sub, subEvent, subProcess, summarizeFan, summarizeRunFromStore, summarizeTimeline, tenantAppOf, tenantGroup, tenantIdsFor, tenantVisible, toEventSubscription, traceIdOfTraceparent, triggerFailedSubscribersOf, triggeredRunsOf, triggeredSubscribersOf, useDurableExecution, verifyWireTenant, warn, withSingletonTracked, withoutSingletonMarkers, workflowName };
|