@fluidgrids/workflows 2026.1029.1 → 2026.1030.1
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/README.md +112 -4
- package/dist/{activation-CESehfYi.d.cts → activation-DqUfpHzk.d.cts} +1 -1
- package/dist/{activation-BnVQMv9y.d.ts → activation-xpx1oWuo.d.ts} +1 -1
- package/dist/{chunk-MJ5TGYVG.js → chunk-2D3MYIIF.js} +969 -153
- package/dist/{chunk-2B37XAFQ.cjs → chunk-3U2NU7YC.cjs} +24 -11
- package/dist/{chunk-NEIUQASE.cjs → chunk-4QKB4ARC.cjs} +3 -3
- package/dist/{chunk-GBQ33SIZ.cjs → chunk-54FLQNUM.cjs} +12 -1
- package/dist/{chunk-2DDULZFM.js → chunk-5HIVIV53.js} +86 -75
- package/dist/chunk-5MFVJM76.js +1222 -0
- package/dist/{chunk-EWYADREB.cjs → chunk-672KMMBK.cjs} +2 -2
- package/dist/{chunk-KXJDRQ6G.js → chunk-6A2FGSUS.js} +22 -2
- package/dist/{chunk-OIX4O6UR.js → chunk-6OLN6BMB.js} +16 -3
- package/dist/{chunk-6FSHT5IL.js → chunk-7EZIANC7.js} +1 -1
- package/dist/chunk-A5SXCA62.cjs +93 -0
- package/dist/chunk-AC6ZEXVR.js +85 -0
- package/dist/{chunk-FWBRQWRX.js → chunk-AE5Q6ZAJ.js} +167 -10
- package/dist/{chunk-7ILGCUI6.js → chunk-C4F5KJTI.js} +142 -3
- package/dist/{chunk-WXXNCHUY.js → chunk-G5H32GIG.js} +1 -1
- package/dist/{chunk-OMY3CKUZ.cjs → chunk-GEQDGUGB.cjs} +1042 -226
- package/dist/{chunk-25BKWR2O.js → chunk-HCM7ZC7Q.js} +1 -1
- package/dist/{chunk-I47EENR4.cjs → chunk-HMZUGSMU.cjs} +673 -156
- package/dist/{chunk-NXFBVDOI.cjs → chunk-IQPXHQQQ.cjs} +8 -4
- package/dist/{chunk-RUQIMTN5.cjs → chunk-ISOIA7NV.cjs} +178 -15
- package/dist/chunk-JSC75O5C.cjs +167 -0
- package/dist/{chunk-BD7ZPG53.js → chunk-NWQ5WRLE.js} +10 -2
- package/dist/chunk-ODZ2IAR2.cjs +1247 -0
- package/dist/{chunk-FQSJI5NV.js → chunk-SR7TR5KX.js} +6 -2
- package/dist/{chunk-OKX3FYIM.cjs → chunk-TCTE7DX5.cjs} +3 -3
- package/dist/{chunk-3FIDHONL.cjs → chunk-TYF56RGB.cjs} +99 -80
- package/dist/{chunk-J3PYFGKA.cjs → chunk-VA4OFR72.cjs} +162 -4
- package/dist/chunk-VU5S5A7V.js +150 -0
- package/dist/{chunk-A36CCOWS.js → chunk-YEHR4NNE.js} +633 -128
- package/dist/{chunk-ELL2RBML.cjs → chunk-ZCGKGDCL.cjs} +23 -1
- package/dist/codegen/index.d.cts +2 -2
- package/dist/codegen/index.d.ts +2 -2
- package/dist/{collect-BTHjQaSp.d.ts → collect-6NIEufHd.d.ts} +20 -3
- package/dist/{collect-CSyOg5XC.d.cts → collect-CcTCKqx6.d.cts} +20 -3
- package/dist/{file-cgL9l9l8.d.cts → file-BxYpwjRQ.d.cts} +250 -15
- package/dist/{file-olQudcx5.d.ts → file-CFdPQJI9.d.ts} +250 -15
- package/dist/history/index.cjs +283 -106
- package/dist/history/index.d.cts +549 -10
- package/dist/history/index.d.ts +549 -10
- package/dist/history/index.js +5 -4
- package/dist/index.cjs +146 -53
- package/dist/index.d.cts +38 -14
- package/dist/index.d.ts +38 -14
- package/dist/index.js +6 -5
- package/dist/interceptors-CNcr2dlk.d.ts +159 -0
- package/dist/interceptors-CqkNZVfI.d.cts +159 -0
- package/dist/ir/index.cjs +339 -36
- package/dist/ir/index.d.cts +244 -8
- package/dist/ir/index.d.ts +244 -8
- package/dist/ir/index.js +306 -21
- package/dist/{lower-3S6PsqjJ.d.cts → lower-BtRfIW2A.d.cts} +23 -9
- package/dist/{lower-DmZpQ8hJ.d.ts → lower-CpsMFOFX.d.ts} +23 -9
- package/dist/{manifest-BJjrQt77.d.ts → manifest-D-I_twys.d.ts} +1 -1
- package/dist/{manifest-gRI2Q5Fj.d.cts → manifest-DahBQVM8.d.cts} +1 -1
- package/dist/node-evaluator-DGQDPSPI.cjs +24 -0
- package/dist/node-evaluator-LEEVD7H7.js +14 -0
- package/dist/payload-fields-BVRQn2yH.d.cts +122 -0
- package/dist/payload-fields-oOBWxDiG.d.ts +122 -0
- package/dist/quickjs/index.cjs +27 -27
- package/dist/quickjs/index.d.cts +6 -6
- package/dist/quickjs/index.d.ts +6 -6
- package/dist/quickjs/index.js +9 -9
- package/dist/roundtrip/index.cjs +72 -66
- package/dist/roundtrip/index.d.cts +25 -11
- package/dist/roundtrip/index.d.ts +25 -11
- package/dist/roundtrip/index.js +13 -11
- package/dist/runtime/index.cjs +19 -19
- package/dist/runtime/index.d.cts +139 -12
- package/dist/runtime/index.d.ts +139 -12
- package/dist/runtime/index.js +6 -6
- package/dist/testing/index.cjs +688 -121
- package/dist/testing/index.d.cts +174 -10
- package/dist/testing/index.d.ts +174 -10
- package/dist/testing/index.js +646 -82
- package/dist/{types-CnIOinoz.d.ts → types-Bv2i4cBX.d.cts} +126 -23
- package/dist/{types-CQKOhPTa.d.cts → types-DGx-b9eq.d.ts} +126 -23
- package/dist/{types-Bb2wRnJ5.d.cts → types-V7jEEUaL.d.cts} +1 -1
- package/dist/{types-Bb2wRnJ5.d.ts → types-V7jEEUaL.d.ts} +1 -1
- package/dist/{workflow-8uRU9rhL.d.ts → workflow-B18OeF7g.d.ts} +2 -2
- package/dist/{workflow-DWTPHFbt.d.ts → workflow-BGnv8SS6.d.ts} +261 -14
- package/dist/{workflow-CZOXUlQ5.d.cts → workflow-BJPFv3cp.d.cts} +2 -2
- package/dist/{workflow-O6e64ZcG.d.cts → workflow-DS32Gtws.d.cts} +261 -14
- package/fixtures/histories/activity-options-updated.history.json +159 -0
- package/fixtures/histories/activity-paused-unpaused.history.json +160 -0
- package/fixtures/histories/codec-opaque.history.json +229 -0
- package/fixtures/histories/dynamic-workflow.history.json +150 -0
- package/fixtures/histories/interceptor-headers.history.json +339 -0
- package/fixtures/histories/query-custom.history.json +213 -0
- package/fixtures/histories/query-default-handler.history.json +120 -0
- package/fixtures/histories/reset-forked-reapplied-signals.history.json +239 -0
- package/fixtures/histories/reset-reapplied-update-admitted.history.json +228 -0
- package/fixtures/histories/search-attributes-upserted.history.json +177 -0
- package/fixtures/histories/update-accepted-completed.history.json +45 -30
- package/fixtures/histories/update-default-handler.history.json +246 -0
- package/fixtures/histories/update-handler-awaits-activity.history.json +196 -0
- package/fixtures/histories/update-not-handled.history.json +138 -0
- package/fixtures/histories/update-rejected-no-event.history.json +190 -0
- package/fixtures/histories/update-with-start-admitted.history.json +150 -0
- package/fixtures/histories/user-activity-cancel.history.json +149 -0
- package/fixtures/histories/user-activity-retry.history.json +143 -0
- package/fixtures/histories/user-activity.history.json +149 -0
- package/package.json +1 -1
- package/schema/bridge-v2.schema.json +1062 -0
- package/schema/history-file.schema.json +255 -81
- package/schema/ir-v2.schema.json +246 -1
- package/schema/payload-fields.json +162 -0
- package/schema/run-event.schema.json +239 -80
- package/schema/workflow-command.schema.json +210 -84
- package/schema/workflow-task.schema.json +532 -167
- package/dist/chunk-6QPOJZT6.cjs +0 -1180
- package/dist/chunk-A2OHX3UQ.js +0 -1156
- package/dist/chunk-PWIUEWC3.js +0 -81
- package/dist/chunk-YHBVMOMK.cjs +0 -87
- package/dist/node-evaluator-SOADN23V.js +0 -14
- package/dist/node-evaluator-YGDEXK4U.cjs +0 -24
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as JsonObject, E as ErrorType, a as Json } from './types-V7jEEUaL.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The durable-function history contract (PLAN-B C-HIST, C-CMD, C-ABI):
|
|
@@ -17,10 +17,21 @@ declare const HISTORY_PROTOCOL = 1;
|
|
|
17
17
|
* The runtime compatibility release of this SDK (the runtime train of
|
|
18
18
|
* PLAN-B19 critique 4.5). R1 is the Phase B core runtime; R2 adds local
|
|
19
19
|
* activities, handler drain, run handles by workflow id and the R2 history
|
|
20
|
-
* fields.
|
|
21
|
-
*
|
|
20
|
+
* fields. Release 3 (Phase C, C-R1) adds updates, custom and default queries,
|
|
21
|
+
* dynamic workflows, user activities, search attributes, interceptors with
|
|
22
|
+
* header propagation and sinks. A history recorded by release N replays under
|
|
23
|
+
* every release >= N; the service and the workers pin the release whose
|
|
24
|
+
* histories they accept.
|
|
22
25
|
*/
|
|
23
|
-
declare const RUNTIME_RELEASE =
|
|
26
|
+
declare const RUNTIME_RELEASE = 3;
|
|
27
|
+
/**
|
|
28
|
+
* What the runtime of this release can answer (C-ABI-H, reported as
|
|
29
|
+
* `FluidgridsRuntimeAbi.capabilities`). A bundle built before C-R1 reports no
|
|
30
|
+
* capabilities, and the service refuses updates and custom queries for it
|
|
31
|
+
* (DC4) instead of delivering requests the bundle would ignore.
|
|
32
|
+
*/
|
|
33
|
+
declare const RUNTIME_CAPABILITIES: readonly ["updates", "queries", "dynamic"];
|
|
34
|
+
type RuntimeCapability = (typeof RUNTIME_CAPABILITIES)[number];
|
|
24
35
|
/** Every value of the `type` column of `workflow_run_events`, UPPER_SNAKE (DB4). */
|
|
25
36
|
declare const EVENT_TYPES: readonly ["WORKFLOW_STARTED", "WORKFLOW_TASK_SCHEDULED", "WORKFLOW_TASK_STARTED", "WORKFLOW_TASK_COMPLETED", "WORKFLOW_TASK_FAILED", "WORKFLOW_TASK_TIMED_OUT", "ACTIVITY_SCHEDULED", "ACTIVITY_STARTED", "ACTIVITY_HEARTBEAT", "ACTIVITY_COMPLETED", "ACTIVITY_FAILED", "ACTIVITY_TIMED_OUT", "ACTIVITY_CANCEL_REQUESTED", "ACTIVITY_CANCELLED", "ACTIVITY_PAUSED", "ACTIVITY_UNPAUSED", "ACTIVITY_RESET", "ACTIVITY_OPTIONS_UPDATED", "TIMER_STARTED", "TIMER_FIRED", "TIMER_CANCELLED", "SIGNAL_RECEIVED", "UPDATE_ADMITTED", "UPDATE_ACCEPTED", "UPDATE_COMPLETED", "CHILD_RUN_INITIATED", "CHILD_RUN_STARTED", "CHILD_RUN_COMPLETED", "CHILD_RUN_FAILED", "CHILD_RUN_CANCELLED", "CHILD_RUN_TERMINATED", "CHILD_RUN_TIMED_OUT", "EXTERNAL_RUN_CANCEL_REQUESTED", "EXTERNAL_RUN_CANCEL_RESOLVED", "EXTERNAL_RUN_SIGNALED", "SIDE_EFFECT_RECORDED", "LOCAL_ACTIVITY_COMPLETED", "LOCAL_ACTIVITY_FAILED", "SEARCH_ATTRIBUTES_UPSERTED", "CONTEXT_UPSERTED", "MARKER_RECORDED", "WORKFLOW_CANCEL_REQUESTED", "WORKFLOW_RESET", "VERSIONING_OVERRIDE_SET", "WORKFLOW_COMPLETED", "WORKFLOW_FAILED", "WORKFLOW_CANCELLED", "WORKFLOW_TERMINATED", "WORKFLOW_TIMED_OUT", "WORKFLOW_CONTINUED_AS_NEW"];
|
|
26
37
|
type RunEventType = (typeof EVENT_TYPES)[number];
|
|
@@ -31,7 +42,11 @@ type CommandType = (typeof COMMAND_TYPES)[number];
|
|
|
31
42
|
declare const PHASE_B_CORE_COMMANDS: ReadonlySet<CommandType>;
|
|
32
43
|
/** Commands of the Phase B parity releases (defined now, enabled by the service per release). */
|
|
33
44
|
declare const PHASE_B_PARITY_COMMANDS: ReadonlySet<CommandType>;
|
|
34
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Commands of Phase C. They were refused throughout Phase B; from C-R1 the
|
|
47
|
+
* C-GATE feature set decides (`c.updates`, `c.searchAttributes`), and the
|
|
48
|
+
* deprecated release levels of `isCommandEnabled` still refuse them.
|
|
49
|
+
*/
|
|
35
50
|
declare const PHASE_C_COMMANDS: ReadonlySet<CommandType>;
|
|
36
51
|
/** Commands that end the run; one may appear, and only last in a batch. */
|
|
37
52
|
declare const TERMINAL_COMMANDS: ReadonlySet<CommandType>;
|
|
@@ -165,15 +180,26 @@ interface WorkflowTimeouts {
|
|
|
165
180
|
runTimeout?: number;
|
|
166
181
|
workflowTaskTimeout?: number;
|
|
167
182
|
}
|
|
168
|
-
|
|
183
|
+
/** The longest fairness key (11 §2.11). */
|
|
184
|
+
declare const FAIRNESS_KEY_MAX_LENGTH = 255;
|
|
185
|
+
/** The range of a fairness weight (11 §2.11); the default is 1. */
|
|
186
|
+
declare const FAIRNESS_WEIGHT_MIN = 0.1;
|
|
187
|
+
declare const FAIRNESS_WEIGHT_MAX = 10;
|
|
188
|
+
/** The name of a user activity (C-CMD-C). */
|
|
189
|
+
declare const ACTIVITY_NAME_PATTERN = "^[A-Za-z_][A-Za-z0-9_.-]{0,127}$";
|
|
190
|
+
/** The name of a task queue (C-CMD-C); `managed` is the platform's queue. */
|
|
191
|
+
declare const TASK_QUEUE_NAME_PATTERN = "^[a-z0-9][a-z0-9-]{0,62}$";
|
|
192
|
+
/** At most this many connections a user activity may name. */
|
|
193
|
+
declare const MAX_ACTIVITY_CONNECTIONS = 16;
|
|
194
|
+
/** UTF-8 bytes of the JSON of a command's `headers` map, at most. */
|
|
195
|
+
declare const MAX_HEADERS_BYTES: number;
|
|
196
|
+
/** At most this many sink calls one workflow task reports. */
|
|
197
|
+
declare const MAX_SINK_CALLS = 256;
|
|
198
|
+
/** What both kinds of `SCHEDULE_ACTIVITY` carry. */
|
|
199
|
+
interface ScheduleActivityBase extends CommandBase {
|
|
169
200
|
type: 'SCHEDULE_ACTIVITY';
|
|
170
201
|
activityId: string;
|
|
171
|
-
kind: 'node';
|
|
172
|
-
nodeType: string;
|
|
173
|
-
nodeVersion?: string;
|
|
174
|
-
operation: string;
|
|
175
202
|
args: Json;
|
|
176
|
-
connection?: string;
|
|
177
203
|
retry: RetryPolicy;
|
|
178
204
|
startToCloseTimeout?: number;
|
|
179
205
|
scheduleToCloseTimeout?: number;
|
|
@@ -182,8 +208,34 @@ interface ScheduleActivityCommand extends CommandBase {
|
|
|
182
208
|
cancellationType?: ActivityCancellationType;
|
|
183
209
|
priority?: number;
|
|
184
210
|
summary?: string;
|
|
211
|
+
/** Fairness within the queue (11 §2.11, Phase C); default the workspace id. */
|
|
212
|
+
fairnessKey?: string;
|
|
213
|
+
/** 0.1 to 10; default 1. */
|
|
214
|
+
fairnessWeight?: number;
|
|
215
|
+
}
|
|
216
|
+
/** A canvas node operation run as an activity (`ctx.run`). */
|
|
217
|
+
interface ScheduleNodeActivityCommand extends ScheduleActivityBase {
|
|
218
|
+
kind: 'node';
|
|
219
|
+
nodeType: string;
|
|
220
|
+
nodeVersion?: string;
|
|
221
|
+
operation: string;
|
|
222
|
+
connection?: string;
|
|
185
223
|
runOn?: string;
|
|
186
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* A user activity (`ctx.activity`, Phase C, C-CMD-C): a function a
|
|
227
|
+
* self-hosted worker polling `taskQueue` implements. It has no node type,
|
|
228
|
+
* operation or `runOn`.
|
|
229
|
+
*/
|
|
230
|
+
interface ScheduleUserActivityCommand extends ScheduleActivityBase {
|
|
231
|
+
kind: 'user';
|
|
232
|
+
activityName: string;
|
|
233
|
+
taskQueue: string;
|
|
234
|
+
/** Connection names the worker may resolve per attempt (H2), at most 16. */
|
|
235
|
+
connections?: string[];
|
|
236
|
+
}
|
|
237
|
+
/** `SCHEDULE_ACTIVITY`, a `oneOf` on `kind` (C-CMD-C). */
|
|
238
|
+
type ScheduleActivityCommand = ScheduleNodeActivityCommand | ScheduleUserActivityCommand;
|
|
187
239
|
interface RequestCancelActivityCommand extends CommandBase {
|
|
188
240
|
type: 'REQUEST_CANCEL_ACTIVITY';
|
|
189
241
|
activityId: string;
|
|
@@ -217,6 +269,9 @@ interface ChildRunOptions {
|
|
|
217
269
|
versioningBehavior?: VersioningBehavior;
|
|
218
270
|
idReusePolicy?: WorkflowIdReusePolicy;
|
|
219
271
|
idConflictPolicy?: WorkflowIdConflictPolicy;
|
|
272
|
+
/** Fairness of the child's tasks (11 §2.11, Phase C); inherited by default. */
|
|
273
|
+
fairnessKey?: string;
|
|
274
|
+
fairnessWeight?: number;
|
|
220
275
|
[key: string]: Json | RunRetryPolicy | undefined;
|
|
221
276
|
}
|
|
222
277
|
interface StartChildRunCommand extends CommandBase {
|
|
@@ -362,10 +417,52 @@ interface WorkflowInfoSnapshot {
|
|
|
362
417
|
versioningBehavior?: VersioningBehavior;
|
|
363
418
|
/** The run-level retry policy of the chain. */
|
|
364
419
|
retry?: RunRetryPolicy;
|
|
420
|
+
/** The run's search attributes at the start (11 §2.8, Phase C). */
|
|
421
|
+
searchAttributes?: JsonObject;
|
|
422
|
+
/** Fairness of the run's tasks (11 §2.11, Phase C). */
|
|
423
|
+
fairnessKey?: string;
|
|
424
|
+
fairnessWeight?: number;
|
|
365
425
|
}
|
|
366
|
-
/** A built-in query (11 §2.21)
|
|
426
|
+
/** A built-in query (11 §2.21); any other name is a custom query (Phase C). */
|
|
367
427
|
type BuiltInQueryName = '__stack_trace' | '__enhanced_stack_trace' | '__metadata';
|
|
368
428
|
declare const BUILT_IN_QUERIES: readonly BuiltInQueryName[];
|
|
429
|
+
/**
|
|
430
|
+
* A pending update the lease delivers to a workflow task (C-ABI-H). The
|
|
431
|
+
* request is not in history until the task accepts it (`UPDATE_ACCEPTED`);
|
|
432
|
+
* `admitted` marks one that history already holds as `UPDATE_ADMITTED`
|
|
433
|
+
* (update-with-start, reset re-application), which the runtime delivers from
|
|
434
|
+
* that event instead.
|
|
435
|
+
*/
|
|
436
|
+
interface UpdateRequest {
|
|
437
|
+
updateId: string;
|
|
438
|
+
name: string;
|
|
439
|
+
args?: Json;
|
|
440
|
+
admitted?: boolean;
|
|
441
|
+
headers?: Headers;
|
|
442
|
+
}
|
|
443
|
+
/** A query a task answers (11 §2.21). Built-in names need no handler. */
|
|
444
|
+
interface QueryRequest {
|
|
445
|
+
queryId: string;
|
|
446
|
+
name: string;
|
|
447
|
+
args?: Json;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* The answer to one query. `rejected` means no handler took the name (the
|
|
451
|
+
* service answers `VALIDATION`); `error` without `rejected` means the handler
|
|
452
|
+
* threw or the replay failed.
|
|
453
|
+
*/
|
|
454
|
+
interface QueryResult {
|
|
455
|
+
queryId: string;
|
|
456
|
+
value?: Json;
|
|
457
|
+
error?: string;
|
|
458
|
+
rejected?: boolean;
|
|
459
|
+
}
|
|
460
|
+
/** One call workflow code made to a worker-side sink (11 §2.31); never on replay. */
|
|
461
|
+
interface SinkCall {
|
|
462
|
+
sink: string;
|
|
463
|
+
fn: string;
|
|
464
|
+
args: Json[];
|
|
465
|
+
}
|
|
369
466
|
/** The input of one workflow task (C-ABI). */
|
|
370
467
|
interface WorkflowTaskRequest {
|
|
371
468
|
protocol: number;
|
|
@@ -376,11 +473,19 @@ interface WorkflowTaskRequest {
|
|
|
376
473
|
/** The task's start time; the clock for new side effects only. */
|
|
377
474
|
nowMs: number;
|
|
378
475
|
localActivityResults?: LocalActivityResult[];
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
476
|
+
/** Pending updates the lease delivers (C-ABI-H, Phase C). */
|
|
477
|
+
updates?: UpdateRequest[];
|
|
478
|
+
/** Queries to answer once the history is replayed. */
|
|
479
|
+
queries?: QueryRequest[];
|
|
480
|
+
/**
|
|
481
|
+
* The bundle features (C-FEATURES, the names of `code.features`) the
|
|
482
|
+
* workspace enables for this task, from its flags (Phase C). From C-R1 the
|
|
483
|
+
* runtime reads `interceptors`: a `task` of a bundle that exports
|
|
484
|
+
* interceptors fails with `UNSUPPORTED_COMMAND` unless it is listed, so
|
|
485
|
+
* turning `fluidgrids.run-control` off stops interceptors from running even
|
|
486
|
+
* for a bundle pushed while it was on. Absent means none.
|
|
487
|
+
*/
|
|
488
|
+
features?: string[];
|
|
384
489
|
}
|
|
385
490
|
/** The result of one local activity, as the worker passes it back into the task (C-ABI). */
|
|
386
491
|
interface LocalActivityResult {
|
|
@@ -436,11 +541,9 @@ interface WorkflowTaskResult {
|
|
|
436
541
|
outcome: 'commands' | 'failed' | 'localActivityRequested';
|
|
437
542
|
commands: WorkflowCommand[];
|
|
438
543
|
localActivityRequests?: LocalActivityRequest[];
|
|
439
|
-
queryResults?:
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
error?: string;
|
|
443
|
-
}>;
|
|
544
|
+
queryResults?: QueryResult[];
|
|
545
|
+
/** Sink calls of the open activation, at most {@link MAX_SINK_CALLS} (Phase C). */
|
|
546
|
+
sinkCalls?: SinkCall[];
|
|
444
547
|
failure?: {
|
|
445
548
|
cause: WorkflowTaskFailureCause;
|
|
446
549
|
message: string;
|
|
@@ -485,4 +588,4 @@ declare function isCommandEvent(event: {
|
|
|
485
588
|
payload: JsonObject;
|
|
486
589
|
}): boolean;
|
|
487
590
|
|
|
488
|
-
export {
|
|
591
|
+
export { PARENT_CLOSE_POLICIES as $, ACTIVITY_CANCELLATION_TYPES as A, BUILT_IN_QUERIES as B, type ChildCancellationType as C, DEFAULT_HISTORY_LIMIT as D, ERROR_TYPES as E, type Failure as F, FAIRNESS_WEIGHT_MAX as G, FAIRNESS_WEIGHT_MIN as H, type FailWorkflowCommand as I, type FailureSource as J, HISTORY_LIMIT_EXCEEDED_RATIO as K, HISTORY_PROTOCOL as L, type Headers as M, type HistoryLimit as N, INPUT_EVENTS as O, type ParentClosePolicy as P, type QueryResult as Q, type RunEventRecord as R, LOCAL_ACTIVITY_MAX_TIMEOUT_MS as S, type TaskLogLine as T, type UnfinishedHandler as U, type LocalActivityRequest as V, type WorkflowCommand as W, type LocalActivityResult as X, MAX_ACTIVITY_CONNECTIONS as Y, MAX_HEADERS_BYTES as Z, MAX_SINK_CALLS as _, type WorkflowTaskFailureCause as a, PHASE_B_CORE_COMMANDS as a0, PHASE_B_PARITY_COMMANDS as a1, PHASE_C_COMMANDS as a2, RUNTIME_CAPABILITIES as a3, RUNTIME_RELEASE as a4, type RecordLocalActivityCommand as a5, type RecordMarkerCommand as a6, type RecordSideEffectCommand as a7, type RejectUpdateCommand as a8, type RequestCancelActivityCommand as a9, type WorkflowTaskResult as aA, type WorkflowTimeoutType as aB, type WorkflowTimeouts as aC, isCommandEvent as aD, isInputEvent as aE, type RequestCancelExternalRunCommand as aa, type RunEventDraft as ab, type RunEventType as ac, type RunTarget as ad, type RuntimeCapability as ae, type ScheduleActivityCommand as af, type ScheduleNodeActivityCommand as ag, type ScheduleUserActivityCommand as ah, type SignalRunCommand as ai, type SinkCall as aj, type StartChildRunCommand as ak, type StartTimerCommand as al, TASK_FAILURE_CAUSES as am, TASK_QUEUE_NAME_PATTERN as an, TERMINAL_COMMANDS as ao, TERMINAL_EVENTS as ap, type UpsertContextCommand as aq, type UpsertSearchAttributesCommand as ar, VERSIONING_BEHAVIORS as as, type VersioningBehavior as at, WORKFLOW_ID_CONFLICT_POLICIES as au, WORKFLOW_ID_REUSE_POLICIES as av, WORKFLOW_TIMEOUT_TYPES as aw, type WorkflowIdConflictPolicy as ax, type WorkflowIdReusePolicy as ay, type WorkflowTaskRequest as az, type WorkflowInfoSnapshot as b, type UpdateRequest as c, type QueryRequest as d, type RetryPolicy as e, type RunRetryPolicy as f, ACTIVITY_NAME_PATTERN as g, type AcceptUpdateCommand as h, type ActivityCancellationType as i, type BuiltInQueryName as j, CHILD_CANCELLATION_TYPES as k, COMMAND_EVENTS as l, COMMAND_EVENT_TYPES as m, COMMAND_TYPES as n, CONTINUE_AS_NEW_SUGGESTED_RATIO as o, type CancelTimerCommand as p, type CancelWorkflowCommand as q, type ChildRunOptions as r, type CommandType as s, type CompleteUpdateCommand as t, type CompleteWorkflowCommand as u, type ContinueAsNewCommand as v, EVENT_TYPES as w, EXECUTION_KINDS as x, type ExecutionKind as y, FAIRNESS_KEY_MAX_LENGTH as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as JsonObject, E as ErrorType, a as Json } from './types-V7jEEUaL.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The durable-function history contract (PLAN-B C-HIST, C-CMD, C-ABI):
|
|
@@ -17,10 +17,21 @@ declare const HISTORY_PROTOCOL = 1;
|
|
|
17
17
|
* The runtime compatibility release of this SDK (the runtime train of
|
|
18
18
|
* PLAN-B19 critique 4.5). R1 is the Phase B core runtime; R2 adds local
|
|
19
19
|
* activities, handler drain, run handles by workflow id and the R2 history
|
|
20
|
-
* fields.
|
|
21
|
-
*
|
|
20
|
+
* fields. Release 3 (Phase C, C-R1) adds updates, custom and default queries,
|
|
21
|
+
* dynamic workflows, user activities, search attributes, interceptors with
|
|
22
|
+
* header propagation and sinks. A history recorded by release N replays under
|
|
23
|
+
* every release >= N; the service and the workers pin the release whose
|
|
24
|
+
* histories they accept.
|
|
22
25
|
*/
|
|
23
|
-
declare const RUNTIME_RELEASE =
|
|
26
|
+
declare const RUNTIME_RELEASE = 3;
|
|
27
|
+
/**
|
|
28
|
+
* What the runtime of this release can answer (C-ABI-H, reported as
|
|
29
|
+
* `FluidgridsRuntimeAbi.capabilities`). A bundle built before C-R1 reports no
|
|
30
|
+
* capabilities, and the service refuses updates and custom queries for it
|
|
31
|
+
* (DC4) instead of delivering requests the bundle would ignore.
|
|
32
|
+
*/
|
|
33
|
+
declare const RUNTIME_CAPABILITIES: readonly ["updates", "queries", "dynamic"];
|
|
34
|
+
type RuntimeCapability = (typeof RUNTIME_CAPABILITIES)[number];
|
|
24
35
|
/** Every value of the `type` column of `workflow_run_events`, UPPER_SNAKE (DB4). */
|
|
25
36
|
declare const EVENT_TYPES: readonly ["WORKFLOW_STARTED", "WORKFLOW_TASK_SCHEDULED", "WORKFLOW_TASK_STARTED", "WORKFLOW_TASK_COMPLETED", "WORKFLOW_TASK_FAILED", "WORKFLOW_TASK_TIMED_OUT", "ACTIVITY_SCHEDULED", "ACTIVITY_STARTED", "ACTIVITY_HEARTBEAT", "ACTIVITY_COMPLETED", "ACTIVITY_FAILED", "ACTIVITY_TIMED_OUT", "ACTIVITY_CANCEL_REQUESTED", "ACTIVITY_CANCELLED", "ACTIVITY_PAUSED", "ACTIVITY_UNPAUSED", "ACTIVITY_RESET", "ACTIVITY_OPTIONS_UPDATED", "TIMER_STARTED", "TIMER_FIRED", "TIMER_CANCELLED", "SIGNAL_RECEIVED", "UPDATE_ADMITTED", "UPDATE_ACCEPTED", "UPDATE_COMPLETED", "CHILD_RUN_INITIATED", "CHILD_RUN_STARTED", "CHILD_RUN_COMPLETED", "CHILD_RUN_FAILED", "CHILD_RUN_CANCELLED", "CHILD_RUN_TERMINATED", "CHILD_RUN_TIMED_OUT", "EXTERNAL_RUN_CANCEL_REQUESTED", "EXTERNAL_RUN_CANCEL_RESOLVED", "EXTERNAL_RUN_SIGNALED", "SIDE_EFFECT_RECORDED", "LOCAL_ACTIVITY_COMPLETED", "LOCAL_ACTIVITY_FAILED", "SEARCH_ATTRIBUTES_UPSERTED", "CONTEXT_UPSERTED", "MARKER_RECORDED", "WORKFLOW_CANCEL_REQUESTED", "WORKFLOW_RESET", "VERSIONING_OVERRIDE_SET", "WORKFLOW_COMPLETED", "WORKFLOW_FAILED", "WORKFLOW_CANCELLED", "WORKFLOW_TERMINATED", "WORKFLOW_TIMED_OUT", "WORKFLOW_CONTINUED_AS_NEW"];
|
|
26
37
|
type RunEventType = (typeof EVENT_TYPES)[number];
|
|
@@ -31,7 +42,11 @@ type CommandType = (typeof COMMAND_TYPES)[number];
|
|
|
31
42
|
declare const PHASE_B_CORE_COMMANDS: ReadonlySet<CommandType>;
|
|
32
43
|
/** Commands of the Phase B parity releases (defined now, enabled by the service per release). */
|
|
33
44
|
declare const PHASE_B_PARITY_COMMANDS: ReadonlySet<CommandType>;
|
|
34
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Commands of Phase C. They were refused throughout Phase B; from C-R1 the
|
|
47
|
+
* C-GATE feature set decides (`c.updates`, `c.searchAttributes`), and the
|
|
48
|
+
* deprecated release levels of `isCommandEnabled` still refuse them.
|
|
49
|
+
*/
|
|
35
50
|
declare const PHASE_C_COMMANDS: ReadonlySet<CommandType>;
|
|
36
51
|
/** Commands that end the run; one may appear, and only last in a batch. */
|
|
37
52
|
declare const TERMINAL_COMMANDS: ReadonlySet<CommandType>;
|
|
@@ -165,15 +180,26 @@ interface WorkflowTimeouts {
|
|
|
165
180
|
runTimeout?: number;
|
|
166
181
|
workflowTaskTimeout?: number;
|
|
167
182
|
}
|
|
168
|
-
|
|
183
|
+
/** The longest fairness key (11 §2.11). */
|
|
184
|
+
declare const FAIRNESS_KEY_MAX_LENGTH = 255;
|
|
185
|
+
/** The range of a fairness weight (11 §2.11); the default is 1. */
|
|
186
|
+
declare const FAIRNESS_WEIGHT_MIN = 0.1;
|
|
187
|
+
declare const FAIRNESS_WEIGHT_MAX = 10;
|
|
188
|
+
/** The name of a user activity (C-CMD-C). */
|
|
189
|
+
declare const ACTIVITY_NAME_PATTERN = "^[A-Za-z_][A-Za-z0-9_.-]{0,127}$";
|
|
190
|
+
/** The name of a task queue (C-CMD-C); `managed` is the platform's queue. */
|
|
191
|
+
declare const TASK_QUEUE_NAME_PATTERN = "^[a-z0-9][a-z0-9-]{0,62}$";
|
|
192
|
+
/** At most this many connections a user activity may name. */
|
|
193
|
+
declare const MAX_ACTIVITY_CONNECTIONS = 16;
|
|
194
|
+
/** UTF-8 bytes of the JSON of a command's `headers` map, at most. */
|
|
195
|
+
declare const MAX_HEADERS_BYTES: number;
|
|
196
|
+
/** At most this many sink calls one workflow task reports. */
|
|
197
|
+
declare const MAX_SINK_CALLS = 256;
|
|
198
|
+
/** What both kinds of `SCHEDULE_ACTIVITY` carry. */
|
|
199
|
+
interface ScheduleActivityBase extends CommandBase {
|
|
169
200
|
type: 'SCHEDULE_ACTIVITY';
|
|
170
201
|
activityId: string;
|
|
171
|
-
kind: 'node';
|
|
172
|
-
nodeType: string;
|
|
173
|
-
nodeVersion?: string;
|
|
174
|
-
operation: string;
|
|
175
202
|
args: Json;
|
|
176
|
-
connection?: string;
|
|
177
203
|
retry: RetryPolicy;
|
|
178
204
|
startToCloseTimeout?: number;
|
|
179
205
|
scheduleToCloseTimeout?: number;
|
|
@@ -182,8 +208,34 @@ interface ScheduleActivityCommand extends CommandBase {
|
|
|
182
208
|
cancellationType?: ActivityCancellationType;
|
|
183
209
|
priority?: number;
|
|
184
210
|
summary?: string;
|
|
211
|
+
/** Fairness within the queue (11 §2.11, Phase C); default the workspace id. */
|
|
212
|
+
fairnessKey?: string;
|
|
213
|
+
/** 0.1 to 10; default 1. */
|
|
214
|
+
fairnessWeight?: number;
|
|
215
|
+
}
|
|
216
|
+
/** A canvas node operation run as an activity (`ctx.run`). */
|
|
217
|
+
interface ScheduleNodeActivityCommand extends ScheduleActivityBase {
|
|
218
|
+
kind: 'node';
|
|
219
|
+
nodeType: string;
|
|
220
|
+
nodeVersion?: string;
|
|
221
|
+
operation: string;
|
|
222
|
+
connection?: string;
|
|
185
223
|
runOn?: string;
|
|
186
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* A user activity (`ctx.activity`, Phase C, C-CMD-C): a function a
|
|
227
|
+
* self-hosted worker polling `taskQueue` implements. It has no node type,
|
|
228
|
+
* operation or `runOn`.
|
|
229
|
+
*/
|
|
230
|
+
interface ScheduleUserActivityCommand extends ScheduleActivityBase {
|
|
231
|
+
kind: 'user';
|
|
232
|
+
activityName: string;
|
|
233
|
+
taskQueue: string;
|
|
234
|
+
/** Connection names the worker may resolve per attempt (H2), at most 16. */
|
|
235
|
+
connections?: string[];
|
|
236
|
+
}
|
|
237
|
+
/** `SCHEDULE_ACTIVITY`, a `oneOf` on `kind` (C-CMD-C). */
|
|
238
|
+
type ScheduleActivityCommand = ScheduleNodeActivityCommand | ScheduleUserActivityCommand;
|
|
187
239
|
interface RequestCancelActivityCommand extends CommandBase {
|
|
188
240
|
type: 'REQUEST_CANCEL_ACTIVITY';
|
|
189
241
|
activityId: string;
|
|
@@ -217,6 +269,9 @@ interface ChildRunOptions {
|
|
|
217
269
|
versioningBehavior?: VersioningBehavior;
|
|
218
270
|
idReusePolicy?: WorkflowIdReusePolicy;
|
|
219
271
|
idConflictPolicy?: WorkflowIdConflictPolicy;
|
|
272
|
+
/** Fairness of the child's tasks (11 §2.11, Phase C); inherited by default. */
|
|
273
|
+
fairnessKey?: string;
|
|
274
|
+
fairnessWeight?: number;
|
|
220
275
|
[key: string]: Json | RunRetryPolicy | undefined;
|
|
221
276
|
}
|
|
222
277
|
interface StartChildRunCommand extends CommandBase {
|
|
@@ -362,10 +417,52 @@ interface WorkflowInfoSnapshot {
|
|
|
362
417
|
versioningBehavior?: VersioningBehavior;
|
|
363
418
|
/** The run-level retry policy of the chain. */
|
|
364
419
|
retry?: RunRetryPolicy;
|
|
420
|
+
/** The run's search attributes at the start (11 §2.8, Phase C). */
|
|
421
|
+
searchAttributes?: JsonObject;
|
|
422
|
+
/** Fairness of the run's tasks (11 §2.11, Phase C). */
|
|
423
|
+
fairnessKey?: string;
|
|
424
|
+
fairnessWeight?: number;
|
|
365
425
|
}
|
|
366
|
-
/** A built-in query (11 §2.21)
|
|
426
|
+
/** A built-in query (11 §2.21); any other name is a custom query (Phase C). */
|
|
367
427
|
type BuiltInQueryName = '__stack_trace' | '__enhanced_stack_trace' | '__metadata';
|
|
368
428
|
declare const BUILT_IN_QUERIES: readonly BuiltInQueryName[];
|
|
429
|
+
/**
|
|
430
|
+
* A pending update the lease delivers to a workflow task (C-ABI-H). The
|
|
431
|
+
* request is not in history until the task accepts it (`UPDATE_ACCEPTED`);
|
|
432
|
+
* `admitted` marks one that history already holds as `UPDATE_ADMITTED`
|
|
433
|
+
* (update-with-start, reset re-application), which the runtime delivers from
|
|
434
|
+
* that event instead.
|
|
435
|
+
*/
|
|
436
|
+
interface UpdateRequest {
|
|
437
|
+
updateId: string;
|
|
438
|
+
name: string;
|
|
439
|
+
args?: Json;
|
|
440
|
+
admitted?: boolean;
|
|
441
|
+
headers?: Headers;
|
|
442
|
+
}
|
|
443
|
+
/** A query a task answers (11 §2.21). Built-in names need no handler. */
|
|
444
|
+
interface QueryRequest {
|
|
445
|
+
queryId: string;
|
|
446
|
+
name: string;
|
|
447
|
+
args?: Json;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* The answer to one query. `rejected` means no handler took the name (the
|
|
451
|
+
* service answers `VALIDATION`); `error` without `rejected` means the handler
|
|
452
|
+
* threw or the replay failed.
|
|
453
|
+
*/
|
|
454
|
+
interface QueryResult {
|
|
455
|
+
queryId: string;
|
|
456
|
+
value?: Json;
|
|
457
|
+
error?: string;
|
|
458
|
+
rejected?: boolean;
|
|
459
|
+
}
|
|
460
|
+
/** One call workflow code made to a worker-side sink (11 §2.31); never on replay. */
|
|
461
|
+
interface SinkCall {
|
|
462
|
+
sink: string;
|
|
463
|
+
fn: string;
|
|
464
|
+
args: Json[];
|
|
465
|
+
}
|
|
369
466
|
/** The input of one workflow task (C-ABI). */
|
|
370
467
|
interface WorkflowTaskRequest {
|
|
371
468
|
protocol: number;
|
|
@@ -376,11 +473,19 @@ interface WorkflowTaskRequest {
|
|
|
376
473
|
/** The task's start time; the clock for new side effects only. */
|
|
377
474
|
nowMs: number;
|
|
378
475
|
localActivityResults?: LocalActivityResult[];
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
476
|
+
/** Pending updates the lease delivers (C-ABI-H, Phase C). */
|
|
477
|
+
updates?: UpdateRequest[];
|
|
478
|
+
/** Queries to answer once the history is replayed. */
|
|
479
|
+
queries?: QueryRequest[];
|
|
480
|
+
/**
|
|
481
|
+
* The bundle features (C-FEATURES, the names of `code.features`) the
|
|
482
|
+
* workspace enables for this task, from its flags (Phase C). From C-R1 the
|
|
483
|
+
* runtime reads `interceptors`: a `task` of a bundle that exports
|
|
484
|
+
* interceptors fails with `UNSUPPORTED_COMMAND` unless it is listed, so
|
|
485
|
+
* turning `fluidgrids.run-control` off stops interceptors from running even
|
|
486
|
+
* for a bundle pushed while it was on. Absent means none.
|
|
487
|
+
*/
|
|
488
|
+
features?: string[];
|
|
384
489
|
}
|
|
385
490
|
/** The result of one local activity, as the worker passes it back into the task (C-ABI). */
|
|
386
491
|
interface LocalActivityResult {
|
|
@@ -436,11 +541,9 @@ interface WorkflowTaskResult {
|
|
|
436
541
|
outcome: 'commands' | 'failed' | 'localActivityRequested';
|
|
437
542
|
commands: WorkflowCommand[];
|
|
438
543
|
localActivityRequests?: LocalActivityRequest[];
|
|
439
|
-
queryResults?:
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
error?: string;
|
|
443
|
-
}>;
|
|
544
|
+
queryResults?: QueryResult[];
|
|
545
|
+
/** Sink calls of the open activation, at most {@link MAX_SINK_CALLS} (Phase C). */
|
|
546
|
+
sinkCalls?: SinkCall[];
|
|
444
547
|
failure?: {
|
|
445
548
|
cause: WorkflowTaskFailureCause;
|
|
446
549
|
message: string;
|
|
@@ -485,4 +588,4 @@ declare function isCommandEvent(event: {
|
|
|
485
588
|
payload: JsonObject;
|
|
486
589
|
}): boolean;
|
|
487
590
|
|
|
488
|
-
export {
|
|
591
|
+
export { PARENT_CLOSE_POLICIES as $, ACTIVITY_CANCELLATION_TYPES as A, BUILT_IN_QUERIES as B, type ChildCancellationType as C, DEFAULT_HISTORY_LIMIT as D, ERROR_TYPES as E, type Failure as F, FAIRNESS_WEIGHT_MAX as G, FAIRNESS_WEIGHT_MIN as H, type FailWorkflowCommand as I, type FailureSource as J, HISTORY_LIMIT_EXCEEDED_RATIO as K, HISTORY_PROTOCOL as L, type Headers as M, type HistoryLimit as N, INPUT_EVENTS as O, type ParentClosePolicy as P, type QueryResult as Q, type RunEventRecord as R, LOCAL_ACTIVITY_MAX_TIMEOUT_MS as S, type TaskLogLine as T, type UnfinishedHandler as U, type LocalActivityRequest as V, type WorkflowCommand as W, type LocalActivityResult as X, MAX_ACTIVITY_CONNECTIONS as Y, MAX_HEADERS_BYTES as Z, MAX_SINK_CALLS as _, type WorkflowTaskFailureCause as a, PHASE_B_CORE_COMMANDS as a0, PHASE_B_PARITY_COMMANDS as a1, PHASE_C_COMMANDS as a2, RUNTIME_CAPABILITIES as a3, RUNTIME_RELEASE as a4, type RecordLocalActivityCommand as a5, type RecordMarkerCommand as a6, type RecordSideEffectCommand as a7, type RejectUpdateCommand as a8, type RequestCancelActivityCommand as a9, type WorkflowTaskResult as aA, type WorkflowTimeoutType as aB, type WorkflowTimeouts as aC, isCommandEvent as aD, isInputEvent as aE, type RequestCancelExternalRunCommand as aa, type RunEventDraft as ab, type RunEventType as ac, type RunTarget as ad, type RuntimeCapability as ae, type ScheduleActivityCommand as af, type ScheduleNodeActivityCommand as ag, type ScheduleUserActivityCommand as ah, type SignalRunCommand as ai, type SinkCall as aj, type StartChildRunCommand as ak, type StartTimerCommand as al, TASK_FAILURE_CAUSES as am, TASK_QUEUE_NAME_PATTERN as an, TERMINAL_COMMANDS as ao, TERMINAL_EVENTS as ap, type UpsertContextCommand as aq, type UpsertSearchAttributesCommand as ar, VERSIONING_BEHAVIORS as as, type VersioningBehavior as at, WORKFLOW_ID_CONFLICT_POLICIES as au, WORKFLOW_ID_REUSE_POLICIES as av, WORKFLOW_TIMEOUT_TYPES as aw, type WorkflowIdConflictPolicy as ax, type WorkflowIdReusePolicy as ay, type WorkflowTaskRequest as az, type WorkflowInfoSnapshot as b, type UpdateRequest as c, type QueryRequest as d, type RetryPolicy as e, type RunRetryPolicy as f, ACTIVITY_NAME_PATTERN as g, type AcceptUpdateCommand as h, type ActivityCancellationType as i, type BuiltInQueryName as j, CHILD_CANCELLATION_TYPES as k, COMMAND_EVENTS as l, COMMAND_EVENT_TYPES as m, COMMAND_TYPES as n, CONTINUE_AS_NEW_SUGGESTED_RATIO as o, type CancelTimerCommand as p, type CancelWorkflowCommand as q, type ChildRunOptions as r, type CommandType as s, type CompleteUpdateCommand as t, type CompleteWorkflowCommand as u, type ContinueAsNewCommand as v, EVENT_TYPES as w, EXECUTION_KINDS as x, type ExecutionKind as y, FAIRNESS_KEY_MAX_LENGTH as z };
|
|
@@ -241,4 +241,4 @@ interface WorkflowDefinition {
|
|
|
241
241
|
[key: string]: unknown;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
export type { CodeBundleActivityExport as C, ErrorType as E,
|
|
244
|
+
export type { CodeBundleActivityExport as C, ErrorType as E, JsonObject as J, LegacyCredentialRef as L, NodeArgs as N, Position as P, RetryConfig as R, WorkflowDefinition as W, Json as a, WorkflowInterface as b, CodeBundleWorkflowExport as c, ConnectionRef as d, ExecutionSettings as e, NodeErrorConfig as f, NodeTimeout as g, RunOnSetting as h, WorkflowAuthoring as i, WorkflowCode as j, WorkflowConfig as k, WorkflowEdge as l, WorkflowNode as m, WorkflowRunRetryConfig as n };
|
|
@@ -241,4 +241,4 @@ interface WorkflowDefinition {
|
|
|
241
241
|
[key: string]: unknown;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
export type { CodeBundleActivityExport as C, ErrorType as E,
|
|
244
|
+
export type { CodeBundleActivityExport as C, ErrorType as E, JsonObject as J, LegacyCredentialRef as L, NodeArgs as N, Position as P, RetryConfig as R, WorkflowDefinition as W, Json as a, WorkflowInterface as b, CodeBundleWorkflowExport as c, ConnectionRef as d, ExecutionSettings as e, NodeErrorConfig as f, NodeTimeout as g, RunOnSetting as h, WorkflowAuthoring as i, WorkflowCode as j, WorkflowConfig as k, WorkflowEdge as l, WorkflowNode as m, WorkflowRunRetryConfig as n };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as Json, J as JsonObject, d as ConnectionRef, L as LegacyCredentialRef, R as RetryConfig, g as NodeTimeout, f as NodeErrorConfig, e as ExecutionSettings, m as WorkflowNode, l as WorkflowEdge, k as WorkflowConfig, b as WorkflowInterface, j as WorkflowCode } from './types-V7jEEUaL.js';
|
|
2
|
+
import { v as DurableWorkflow, O as Operation } from './workflow-BGnv8SS6.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Typed references and predicates for the tier-1 builder (spec 02 §3).
|