@fluidgrids/workflows 2026.1028.2 → 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 +181 -11
- package/dist/{activation-BBh1p82z.d.cts → activation-DqUfpHzk.d.cts} +1 -1
- package/dist/{activation-DnhG7SmF.d.ts → activation-xpx1oWuo.d.ts} +1 -1
- package/dist/{chunk-VRHHBPT6.js → chunk-2D3MYIIF.js} +1212 -128
- package/dist/chunk-3U2NU7YC.cjs +124 -0
- package/dist/{chunk-NEIUQASE.cjs → chunk-4QKB4ARC.cjs} +3 -3
- package/dist/{chunk-GBQ33SIZ.cjs → chunk-54FLQNUM.cjs} +12 -1
- package/dist/chunk-5HIVIV53.js +330 -0
- package/dist/chunk-5MFVJM76.js +1222 -0
- package/dist/{chunk-JD2VQIDZ.cjs → chunk-672KMMBK.cjs} +2 -2
- package/dist/{chunk-C5OLWZ42.js → chunk-6A2FGSUS.js} +22 -14
- package/dist/{chunk-XKJA7KX3.js → chunk-6OLN6BMB.js} +52 -3
- package/dist/{chunk-6FSHT5IL.js → chunk-7EZIANC7.js} +1 -1
- package/dist/{chunk-2J6TF7YI.cjs → chunk-A5SXCA62.cjs} +10 -3
- package/dist/{chunk-BO6OVILK.js → chunk-AC6ZEXVR.js} +10 -4
- package/dist/{chunk-ABFZWYHT.js → chunk-AE5Q6ZAJ.js} +315 -50
- package/dist/chunk-C4F5KJTI.js +293 -0
- package/dist/{chunk-IISBRUWJ.js → chunk-G5H32GIG.js} +1 -1
- package/dist/chunk-GEQDGUGB.cjs +2719 -0
- package/dist/{chunk-XHXIDVEC.js → chunk-HCM7ZC7Q.js} +1 -1
- package/dist/chunk-HMZUGSMU.cjs +1554 -0
- package/dist/{chunk-SAOBPYYJ.cjs → chunk-IQPXHQQQ.cjs} +8 -4
- package/dist/{chunk-P6TA5EZT.cjs → chunk-ISOIA7NV.cjs} +335 -58
- package/dist/chunk-JSC75O5C.cjs +167 -0
- package/dist/chunk-M272AHEX.js +25 -0
- package/dist/{chunk-BD7ZPG53.js → chunk-NWQ5WRLE.js} +10 -2
- package/dist/chunk-ODZ2IAR2.cjs +1247 -0
- package/dist/chunk-Q4MWQNJK.cjs +28 -0
- package/dist/{chunk-HWJZVOG7.js → chunk-SR7TR5KX.js} +6 -2
- package/dist/{chunk-FEW3JBYA.cjs → chunk-TCTE7DX5.cjs} +3 -3
- package/dist/{chunk-623FVQSN.cjs → chunk-TYF56RGB.cjs} +123 -0
- package/dist/chunk-VA4OFR72.cjs +324 -0
- package/dist/chunk-VU5S5A7V.js +150 -0
- package/dist/chunk-YEHR4NNE.js +1522 -0
- package/dist/{chunk-FMSW2HDF.cjs → chunk-ZCGKGDCL.cjs} +23 -15
- package/dist/codegen/index.d.cts +2 -2
- package/dist/codegen/index.d.ts +2 -2
- package/dist/collect-6NIEufHd.d.ts +103 -0
- package/dist/collect-CcTCKqx6.d.cts +103 -0
- package/dist/{file-BOoHZgoQ.d.cts → file-BxYpwjRQ.d.cts} +1007 -21
- package/dist/{file-yuPCFU5b.d.ts → file-CFdPQJI9.d.ts} +1007 -21
- package/dist/history/index.cjs +375 -86
- package/dist/history/index.d.cts +590 -12
- package/dist/history/index.d.ts +590 -12
- package/dist/history/index.js +50 -4
- package/dist/index.cjs +156 -50
- package/dist/index.d.cts +38 -58
- package/dist/index.d.ts +38 -58
- package/dist/index.js +6 -4
- package/dist/interceptors-CNcr2dlk.d.ts +159 -0
- package/dist/interceptors-CqkNZVfI.d.cts +159 -0
- package/dist/ir/index.cjs +362 -38
- package/dist/ir/index.d.cts +282 -7
- package/dist/ir/index.d.ts +282 -7
- package/dist/ir/index.js +329 -23
- package/dist/{lower-BzmUz0sq.d.cts → lower-BtRfIW2A.d.cts} +56 -8
- package/dist/{lower-_-iT4HYs.d.ts → lower-CpsMFOFX.d.ts} +56 -8
- package/dist/{manifest-C8N6HDYl.d.ts → manifest-D-I_twys.d.ts} +1 -1
- package/dist/{manifest-0OLw0i7k.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 +28 -27
- package/dist/quickjs/index.d.cts +6 -6
- package/dist/quickjs/index.d.ts +6 -6
- package/dist/quickjs/index.js +10 -9
- package/dist/roundtrip/index.cjs +259 -51
- package/dist/roundtrip/index.d.cts +100 -9
- package/dist/roundtrip/index.d.ts +100 -9
- package/dist/roundtrip/index.js +177 -11
- package/dist/runtime/index.cjs +21 -20
- package/dist/runtime/index.d.cts +184 -15
- package/dist/runtime/index.d.ts +184 -15
- package/dist/runtime/index.js +8 -7
- package/dist/testing/index.cjs +1122 -115
- package/dist/testing/index.d.cts +294 -13
- package/dist/testing/index.d.ts +294 -13
- package/dist/testing/index.js +1086 -84
- package/dist/{types-DV-HX_Gt.d.ts → types-Bv2i4cBX.d.cts} +244 -33
- package/dist/{types-CpBBjaGX.d.cts → types-DGx-b9eq.d.ts} +244 -33
- package/dist/{types-BGoPzgcl.d.ts → types-V7jEEUaL.d.cts} +20 -1
- package/dist/{types-BGoPzgcl.d.cts → types-V7jEEUaL.d.ts} +20 -1
- package/dist/{workflow-Bpr3vnA_.d.ts → workflow-B18OeF7g.d.ts} +2 -2
- package/dist/workflow-BGnv8SS6.d.ts +803 -0
- package/dist/{workflow-FXUkpIBc.d.cts → workflow-BJPFv3cp.d.cts} +2 -2
- package/dist/workflow-DS32Gtws.d.cts +803 -0
- package/fixtures/histories/activity-options-updated.history.json +159 -0
- package/fixtures/histories/activity-paused-unpaused.history.json +160 -0
- package/fixtures/histories/auto-upgrade-patched.history.json +276 -0
- package/fixtures/histories/benign-failure.history.json +146 -0
- package/fixtures/histories/cancel-activity-try-cancel.history.json +150 -0
- package/fixtures/histories/child-cancel-wait-requested.history.json +217 -0
- package/fixtures/histories/child-options-roundtrip.history.json +192 -0
- package/fixtures/histories/codec-opaque.history.json +229 -0
- package/fixtures/histories/continue-as-new-last-result.history.json +86 -0
- package/fixtures/histories/continue-as-new-options.history.json +99 -0
- package/fixtures/histories/continue-as-new-r1-long-task-queue.history.json +78 -0
- package/fixtures/histories/continue-as-new-r1-retry-options.history.json +83 -0
- package/fixtures/histories/dynamic-workflow.history.json +150 -0
- package/fixtures/histories/execution-timeout-chain.history.json +98 -0
- package/fixtures/histories/external-cancel-resolved.history.json +123 -0
- package/fixtures/histories/external-cancel-unknown-target.history.json +127 -0
- package/fixtures/histories/failure-error-types-fails-run.history.json +144 -0
- package/fixtures/histories/handler-drain-warn.history.json +222 -0
- package/fixtures/histories/heartbeat-details-on-retry.history.json +145 -0
- package/fixtures/histories/interceptor-headers.history.json +339 -0
- package/fixtures/histories/local-activity-abandoned-at-completion.history.json +73 -0
- package/fixtures/histories/local-activity-cancelled-in-scope.history.json +118 -0
- package/fixtures/histories/local-activity-completed.history.json +157 -0
- package/fixtures/histories/local-activity-failed.history.json +93 -0
- package/fixtures/histories/local-activity-retry-in-task.history.json +88 -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/run-retry-last-failure.history.json +90 -0
- package/fixtures/histories/run-timeout.history.json +159 -0
- package/fixtures/histories/schedule-to-start-timeout.history.json +132 -0
- package/fixtures/histories/search-attributes-upserted.history.json +177 -0
- package/fixtures/histories/start-delay-signal-ends-delay.history.json +155 -0
- package/fixtures/histories/typeerror-task-retry-100.history.json +137 -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 +538 -83
- package/schema/ir-v2.schema.json +290 -0
- package/schema/payload-fields.json +162 -0
- package/schema/run-event.schema.json +503 -82
- package/schema/workflow-command.schema.json +372 -69
- package/schema/workflow-task.schema.json +924 -171
- package/dist/assemble-BLqQ8lSu.d.cts +0 -39
- package/dist/assemble-DWgaXHd-.d.ts +0 -39
- package/dist/chunk-DHTLALBL.cjs +0 -80
- package/dist/chunk-DJYMDLV5.js +0 -227
- package/dist/chunk-I5LR3D2K.js +0 -869
- package/dist/chunk-M4BBAERY.cjs +0 -1635
- package/dist/chunk-N23SKIG4.js +0 -73
- package/dist/chunk-PZCVF76Q.cjs +0 -868
- package/dist/chunk-QQ6ULXHI.cjs +0 -885
- package/dist/chunk-UK3WM7YZ.cjs +0 -75
- package/dist/chunk-VOKMAAJP.js +0 -848
- package/dist/node-evaluator-4MSDKWOG.cjs +0 -22
- package/dist/node-evaluator-SX4LEYQC.js +0 -12
- package/dist/workflow-C2a05WUJ.d.ts +0 -444
- package/dist/workflow-J-yYixny.d.cts +0 -444
package/dist/ir/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { C as CodeBundleActivityExport, c as CodeBundleWorkflowExport, d as ConnectionRef, E as ErrorType, e as ExecutionSettings, a as Json, L as LegacyCredentialRef, N as NodeArgs, f as NodeErrorConfig, g as NodeTimeout, R as RetryConfig, h as RunOnSetting, i as WorkflowAuthoring, j as WorkflowCode, k as WorkflowConfig, l as WorkflowEdge, m as WorkflowNode } from '../types-
|
|
1
|
+
import { W as WorkflowDefinition, b as WorkflowInterface, J as JsonObject, P as Position } from '../types-V7jEEUaL.js';
|
|
2
|
+
export { C as CodeBundleActivityExport, c as CodeBundleWorkflowExport, d as ConnectionRef, E as ErrorType, e as ExecutionSettings, a as Json, L as LegacyCredentialRef, N as NodeArgs, f as NodeErrorConfig, g as NodeTimeout, R as RetryConfig, h as RunOnSetting, i as WorkflowAuthoring, j as WorkflowCode, k as WorkflowConfig, l as WorkflowEdge, m as WorkflowNode, n as WorkflowRunRetryConfig } from '../types-V7jEEUaL.js';
|
|
3
3
|
export { S as SourceFile, b as buildIdOf, h as hashedProjection, i as irHash, s as sourceHash } from '../hash-CZkTXPCX.js';
|
|
4
|
-
import { N as NodeManifest } from '../manifest-
|
|
5
|
-
export { M as ManifestField, a as ManifestHandles, b as ManifestOperation, f as fieldSchema, c as fieldsSchema, d as findManifest, i as isTriggerOperation, o as operationsOf } from '../manifest-
|
|
4
|
+
import { N as NodeManifest } from '../manifest-D-I_twys.js';
|
|
5
|
+
export { M as ManifestField, a as ManifestHandles, b as ManifestOperation, f as fieldSchema, c as fieldsSchema, d as findManifest, i as isTriggerOperation, o as operationsOf } from '../manifest-D-I_twys.js';
|
|
6
6
|
export { P as PathSegment, R as RefRoot, T as TemplatePart, V as ValueRefModel, f as formatRefExpression, a as formatRefTemplate, p as parseRefExpression, b as parseTemplate } from '../expressions-DhHaqyar.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -354,6 +354,205 @@ declare const IR_V2_SCHEMA: {
|
|
|
354
354
|
};
|
|
355
355
|
};
|
|
356
356
|
};
|
|
357
|
+
}, {
|
|
358
|
+
readonly if: {
|
|
359
|
+
readonly properties: {
|
|
360
|
+
readonly type: {
|
|
361
|
+
readonly const: "internal:signal-run";
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
readonly required: readonly ["type"];
|
|
365
|
+
};
|
|
366
|
+
readonly then: {
|
|
367
|
+
readonly description: "Phase C (fluidgrids.run-control): signal another run of the workspace (05 §4). A retried node delivers once (dedupe key signal-node:<nodeStateId>:<attempt>).";
|
|
368
|
+
readonly required: readonly ["args"];
|
|
369
|
+
readonly properties: {
|
|
370
|
+
readonly args: {
|
|
371
|
+
readonly required: readonly ["state"];
|
|
372
|
+
readonly properties: {
|
|
373
|
+
readonly state: {
|
|
374
|
+
readonly type: "object";
|
|
375
|
+
readonly required: readonly ["signalName", "target"];
|
|
376
|
+
readonly properties: {
|
|
377
|
+
readonly signalName: {
|
|
378
|
+
readonly type: "string";
|
|
379
|
+
readonly minLength: 1;
|
|
380
|
+
};
|
|
381
|
+
readonly target: {
|
|
382
|
+
readonly description: "The run to signal: { runId }, { workflowKey, workflowId, firstRunId? } (the open run of that workflow id) or { parent: true }. Values may be expressions.";
|
|
383
|
+
readonly oneOf: readonly [{
|
|
384
|
+
readonly type: "object";
|
|
385
|
+
readonly required: readonly ["runId"];
|
|
386
|
+
readonly properties: {
|
|
387
|
+
readonly runId: {
|
|
388
|
+
readonly type: "string";
|
|
389
|
+
readonly minLength: 1;
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
readonly additionalProperties: false;
|
|
393
|
+
}, {
|
|
394
|
+
readonly type: "object";
|
|
395
|
+
readonly required: readonly ["workflowKey", "workflowId"];
|
|
396
|
+
readonly properties: {
|
|
397
|
+
readonly workflowKey: {
|
|
398
|
+
readonly type: "string";
|
|
399
|
+
readonly minLength: 1;
|
|
400
|
+
};
|
|
401
|
+
readonly workflowId: {
|
|
402
|
+
readonly type: "string";
|
|
403
|
+
readonly minLength: 1;
|
|
404
|
+
};
|
|
405
|
+
readonly firstRunId: {
|
|
406
|
+
readonly type: "string";
|
|
407
|
+
readonly minLength: 1;
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
readonly additionalProperties: false;
|
|
411
|
+
}, {
|
|
412
|
+
readonly type: "object";
|
|
413
|
+
readonly required: readonly ["parent"];
|
|
414
|
+
readonly properties: {
|
|
415
|
+
readonly parent: {
|
|
416
|
+
readonly const: true;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
readonly additionalProperties: false;
|
|
420
|
+
}];
|
|
421
|
+
};
|
|
422
|
+
readonly payload: {};
|
|
423
|
+
readonly failOnUndelivered: {
|
|
424
|
+
readonly type: "boolean";
|
|
425
|
+
readonly description: "Default true: an undelivered signal fails the node.";
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
}, {
|
|
434
|
+
readonly if: {
|
|
435
|
+
readonly properties: {
|
|
436
|
+
readonly type: {
|
|
437
|
+
readonly const: "internal:set-search-attributes";
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
readonly required: readonly ["type"];
|
|
441
|
+
};
|
|
442
|
+
readonly then: {
|
|
443
|
+
readonly description: "Phase C (fluidgrids.search-attributes): upsert the run search attributes (11 §2.8); a null value removes one. Values may be expressions; the service validates them against the workspace definitions.";
|
|
444
|
+
readonly required: readonly ["args"];
|
|
445
|
+
readonly properties: {
|
|
446
|
+
readonly args: {
|
|
447
|
+
readonly required: readonly ["state"];
|
|
448
|
+
readonly properties: {
|
|
449
|
+
readonly state: {
|
|
450
|
+
readonly type: "object";
|
|
451
|
+
readonly required: readonly ["attributes"];
|
|
452
|
+
readonly properties: {
|
|
453
|
+
readonly attributes: {
|
|
454
|
+
readonly type: "object";
|
|
455
|
+
readonly minProperties: 1;
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
}, {
|
|
464
|
+
readonly if: {
|
|
465
|
+
readonly properties: {
|
|
466
|
+
readonly type: {
|
|
467
|
+
readonly const: "internal:schedule";
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
readonly required: readonly ["type"];
|
|
471
|
+
};
|
|
472
|
+
readonly then: {
|
|
473
|
+
readonly properties: {
|
|
474
|
+
readonly args: {
|
|
475
|
+
readonly properties: {
|
|
476
|
+
readonly state: {
|
|
477
|
+
readonly description: "Phase C schedule policies (11 §2.16, §2.33; fluidgrids.schedule-policies). Every field is optional; a trigger without overlapPolicy keeps the ALLOW_ALL behaviour of earlier versions.";
|
|
478
|
+
readonly properties: {
|
|
479
|
+
readonly overlapPolicy: {
|
|
480
|
+
readonly enum: readonly ["SKIP", "BUFFER_ONE", "BUFFER_ALL", "CANCEL_OTHER", "TERMINATE_OTHER", "ALLOW_ALL"];
|
|
481
|
+
};
|
|
482
|
+
readonly catchupWindow: {
|
|
483
|
+
readonly oneOf: readonly [{
|
|
484
|
+
readonly type: "number";
|
|
485
|
+
readonly minimum: 0;
|
|
486
|
+
}, {
|
|
487
|
+
readonly type: "string";
|
|
488
|
+
readonly minLength: 1;
|
|
489
|
+
}];
|
|
490
|
+
};
|
|
491
|
+
readonly pauseOnFailure: {
|
|
492
|
+
readonly type: "boolean";
|
|
493
|
+
};
|
|
494
|
+
readonly limitedActions: {
|
|
495
|
+
readonly type: "integer";
|
|
496
|
+
readonly minimum: 1;
|
|
497
|
+
};
|
|
498
|
+
readonly scheduleContext: {
|
|
499
|
+
readonly type: "object";
|
|
500
|
+
};
|
|
501
|
+
readonly scheduleSearchAttributes: {
|
|
502
|
+
readonly type: "object";
|
|
503
|
+
};
|
|
504
|
+
readonly spec: {
|
|
505
|
+
readonly description: "One of cron, calendar or interval, plus excludeCalendars (calendar entries whose matches are skipped), startAt, endAt (ISO 8601), timezone and jitter.";
|
|
506
|
+
readonly properties: {
|
|
507
|
+
readonly cron: {
|
|
508
|
+
readonly type: "string";
|
|
509
|
+
};
|
|
510
|
+
readonly calendar: {
|
|
511
|
+
readonly type: "array";
|
|
512
|
+
readonly items: {
|
|
513
|
+
readonly type: "object";
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
readonly interval: {
|
|
517
|
+
readonly type: "array";
|
|
518
|
+
readonly items: {
|
|
519
|
+
readonly type: "object";
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
readonly excludeCalendars: {
|
|
523
|
+
readonly type: "array";
|
|
524
|
+
readonly items: {
|
|
525
|
+
readonly type: "object";
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
readonly startAt: {
|
|
529
|
+
readonly type: "string";
|
|
530
|
+
readonly minLength: 1;
|
|
531
|
+
};
|
|
532
|
+
readonly endAt: {
|
|
533
|
+
readonly type: "string";
|
|
534
|
+
readonly minLength: 1;
|
|
535
|
+
};
|
|
536
|
+
readonly timezone: {
|
|
537
|
+
readonly type: "string";
|
|
538
|
+
};
|
|
539
|
+
readonly jitter: {
|
|
540
|
+
readonly oneOf: readonly [{
|
|
541
|
+
readonly type: "number";
|
|
542
|
+
readonly minimum: 0;
|
|
543
|
+
}, {
|
|
544
|
+
readonly type: "string";
|
|
545
|
+
readonly minLength: 1;
|
|
546
|
+
}];
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
};
|
|
357
556
|
}];
|
|
358
557
|
};
|
|
359
558
|
readonly edge: {
|
|
@@ -412,6 +611,32 @@ declare const IR_V2_SCHEMA: {
|
|
|
412
611
|
readonly versioningBehavior: {
|
|
413
612
|
readonly enum: readonly ["PINNED", "AUTO_UPGRADE"];
|
|
414
613
|
};
|
|
614
|
+
readonly retry: {
|
|
615
|
+
readonly type: "object";
|
|
616
|
+
readonly description: "Run-level retry of DURABLE_FN runs (11 §2.17); delays are seconds or duration strings. Graph runs keep their own meaning of retry.";
|
|
617
|
+
readonly properties: {
|
|
618
|
+
readonly maxAttempts: {
|
|
619
|
+
readonly type: "integer";
|
|
620
|
+
readonly minimum: 1;
|
|
621
|
+
};
|
|
622
|
+
readonly initialDelay: {
|
|
623
|
+
readonly type: readonly ["number", "string"];
|
|
624
|
+
};
|
|
625
|
+
readonly backoffMultiplier: {
|
|
626
|
+
readonly type: "number";
|
|
627
|
+
readonly minimum: 1;
|
|
628
|
+
};
|
|
629
|
+
readonly maxDelay: {
|
|
630
|
+
readonly type: readonly ["number", "string"];
|
|
631
|
+
};
|
|
632
|
+
readonly nonRetryableErrorTypes: {
|
|
633
|
+
readonly type: "array";
|
|
634
|
+
readonly items: {
|
|
635
|
+
readonly type: "string";
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
};
|
|
415
640
|
};
|
|
416
641
|
};
|
|
417
642
|
readonly interface: {
|
|
@@ -531,6 +756,10 @@ declare const IR_V2_SCHEMA: {
|
|
|
531
756
|
readonly taskQueue: {
|
|
532
757
|
readonly type: "string";
|
|
533
758
|
};
|
|
759
|
+
readonly config: {
|
|
760
|
+
readonly $ref: "#/$defs/config";
|
|
761
|
+
readonly description: "R2: the run-level settings of this function's workflow() declaration (retry, timeout, executionTimeout, workflowTaskTimeout, versioningBehavior). The service resolves run options per workflowFn from this table, never from the definition-level config, so a same-bundle child started on its parent's definition gets its own settings. Absent: the function declares none.";
|
|
762
|
+
};
|
|
534
763
|
};
|
|
535
764
|
};
|
|
536
765
|
};
|
|
@@ -556,6 +785,15 @@ declare const IR_V2_SCHEMA: {
|
|
|
556
785
|
readonly determinism: {
|
|
557
786
|
readonly enum: readonly ["isolate", "worker"];
|
|
558
787
|
};
|
|
788
|
+
readonly features: {
|
|
789
|
+
readonly type: "array";
|
|
790
|
+
readonly items: {
|
|
791
|
+
readonly type: "string";
|
|
792
|
+
readonly minLength: 1;
|
|
793
|
+
};
|
|
794
|
+
readonly uniqueItems: true;
|
|
795
|
+
readonly description: "Runtime features the bundle uses (C-FEATURES): localActivity, externalCancel, childOptions, canOptions, autoUpgrade, runRetry, timeouts (SDK R2); userActivity, updates, queries, searchAttributes, dynamic and interceptors (Phase C, C-R1). A bundle without the field was built before R2 and uses none.";
|
|
796
|
+
};
|
|
559
797
|
};
|
|
560
798
|
};
|
|
561
799
|
readonly authoring: {
|
|
@@ -823,6 +1061,37 @@ declare function checkScheduleSpec(spec: unknown, options?: {
|
|
|
823
1061
|
now?: Date;
|
|
824
1062
|
timezone?: unknown;
|
|
825
1063
|
}): ScheduleCheck;
|
|
1064
|
+
/** A problem with a schedule trigger's policy fields (11 §2.16). */
|
|
1065
|
+
interface SchedulePolicyProblem {
|
|
1066
|
+
field: string;
|
|
1067
|
+
message: string;
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* Check the Phase C policy fields of a schedule trigger's `args.state`
|
|
1071
|
+
* (`overlapPolicy`, `catchupWindow`, `pauseOnFailure`, `limitedActions`,
|
|
1072
|
+
* `scheduleContext`, `scheduleSearchAttributes`). Absent fields are fine: a
|
|
1073
|
+
* trigger without `overlapPolicy` keeps the legacy ALLOW_ALL behaviour.
|
|
1074
|
+
*/
|
|
1075
|
+
declare function checkSchedulePolicy(state: Record<string, unknown>): SchedulePolicyProblem | undefined;
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Schedule trigger fields of Phase C (11 §2.16, §2.33), shared by the IR
|
|
1079
|
+
* schema and the schedule checker. Pure data.
|
|
1080
|
+
*/
|
|
1081
|
+
/** What a tick does while a run from an earlier tick is still open (11 §2.16). */
|
|
1082
|
+
declare const SCHEDULE_OVERLAP_POLICIES: readonly ["SKIP", "BUFFER_ONE", "BUFFER_ALL", "CANCEL_OTHER", "TERMINATE_OTHER", "ALLOW_ALL"];
|
|
1083
|
+
type ScheduleOverlapPolicy = (typeof SCHEDULE_OVERLAP_POLICIES)[number];
|
|
1084
|
+
/**
|
|
1085
|
+
* The overlap policy the UI proposes for a new policy save. A stored trigger
|
|
1086
|
+
* without `overlapPolicy` keeps the legacy ALLOW_ALL behaviour (CX14, H3).
|
|
1087
|
+
*/
|
|
1088
|
+
declare const DEFAULT_NEW_SCHEDULE_OVERLAP_POLICY: ScheduleOverlapPolicy;
|
|
1089
|
+
/** The default catch-up window after an outage (11 §2.16): one hour. */
|
|
1090
|
+
declare const DEFAULT_SCHEDULE_CATCHUP_WINDOW_SECONDS = 3600;
|
|
1091
|
+
/** Policy fields of the schedule trigger's `args.state` (beside `spec`). */
|
|
1092
|
+
declare const SCHEDULE_POLICY_FIELDS: readonly ["overlapPolicy", "catchupWindow", "pauseOnFailure", "limitedActions", "scheduleContext", "scheduleSearchAttributes"];
|
|
1093
|
+
/** Fields a `spec` may carry beside its one kind (`cron`, `calendar`, `interval`). */
|
|
1094
|
+
declare const SCHEDULE_SPEC_FIELDS: readonly ["excludeCalendars", "startAt", "endAt", "timezone", "jitter"];
|
|
826
1095
|
|
|
827
1096
|
/**
|
|
828
1097
|
* Node type knowledge shared by normalisation, validation and lifting.
|
|
@@ -835,14 +1104,20 @@ declare function checkScheduleSpec(spec: unknown, options?: {
|
|
|
835
1104
|
/** Node types added by IR version 2 (spec 01 §3). */
|
|
836
1105
|
declare const CODE_WORKFLOW_NODE_TYPE = "internal:code-workflow";
|
|
837
1106
|
declare const WAIT_FOR_SIGNAL_NODE_TYPE = "internal:wait-for-signal";
|
|
1107
|
+
/** Phase C (run control): signal another run from the canvas (05 §4). */
|
|
1108
|
+
declare const SIGNAL_RUN_NODE_TYPE = "internal:signal-run";
|
|
1109
|
+
/** Phase C (search attributes): upsert the run's search attributes from the canvas (11 §2.8). */
|
|
1110
|
+
declare const SET_SEARCH_ATTRIBUTES_NODE_TYPE = "internal:set-search-attributes";
|
|
1111
|
+
/** The IR node types Phase C adds; the service seeds their manifests behind a switch. */
|
|
1112
|
+
declare const PHASE_C_NODE_TYPES: ReadonlySet<string>;
|
|
838
1113
|
/** Internal trigger node types seeded by wspace-workflow-svc (`triggers/manifests`). */
|
|
839
1114
|
declare const INTERNAL_TRIGGER_TYPES: ReadonlySet<string>;
|
|
840
1115
|
/**
|
|
841
1116
|
* True when the node goes through the internal node executor and therefore
|
|
842
1117
|
* sees the merged `data < config < data.args.state < args.state` parameters.
|
|
843
|
-
* The
|
|
844
|
-
*
|
|
1118
|
+
* The version-2 node types are internal by design and are treated the same
|
|
1119
|
+
* way.
|
|
845
1120
|
*/
|
|
846
1121
|
declare function usesMergedParameters(type: string): boolean;
|
|
847
1122
|
|
|
848
|
-
export { CODE_WORKFLOW_NODE_TYPE, CanonicalJsonError, type DefinitionChange, type ExecutorNodeView, INTERNAL_TRIGGER_TYPES, IR_V2_SCHEMA, IR_V2_SCHEMA_ID, JsonObject, LAYOUT_COLUMN_WIDTH, LAYOUT_ROW_HEIGHT, NodeManifest, type ParsedWorkflowDocument, Position, type ScheduleCheck, type ValidateOptions, type ValidationIssue, type ValidationResult, WAIT_FOR_SIGNAL_NODE_TYPE, WORKFLOW_DOCUMENT_FORMAT, WorkflowDefinition, type WorkflowExportDocument, type WorkflowExportInput, WorkflowInterface, type WorkflowNodeReference, autoLayout, buildExportDocument, canonicalJson, checkScheduleSpec, deriveInterface, diffDefinitions, durationMs, envelopeSchemaVersion, executorNodeView, executorView, exportDefinition, isV2Definition, isValidJsonSchema, normalizeDefinition, parseWorkflowDocument, readWorkflowDocument, serializeWorkflowDocument, sha256Hex, sha256Tagged, stableStringify, usesMergedParameters, validate, workflowInputsSchema };
|
|
1123
|
+
export { CODE_WORKFLOW_NODE_TYPE, CanonicalJsonError, DEFAULT_NEW_SCHEDULE_OVERLAP_POLICY, DEFAULT_SCHEDULE_CATCHUP_WINDOW_SECONDS, type DefinitionChange, type ExecutorNodeView, INTERNAL_TRIGGER_TYPES, IR_V2_SCHEMA, IR_V2_SCHEMA_ID, JsonObject, LAYOUT_COLUMN_WIDTH, LAYOUT_ROW_HEIGHT, NodeManifest, PHASE_C_NODE_TYPES, type ParsedWorkflowDocument, Position, SCHEDULE_OVERLAP_POLICIES, SCHEDULE_POLICY_FIELDS, SCHEDULE_SPEC_FIELDS, SET_SEARCH_ATTRIBUTES_NODE_TYPE, SIGNAL_RUN_NODE_TYPE, type ScheduleCheck, type ScheduleOverlapPolicy, type SchedulePolicyProblem, type ValidateOptions, type ValidationIssue, type ValidationResult, WAIT_FOR_SIGNAL_NODE_TYPE, WORKFLOW_DOCUMENT_FORMAT, WorkflowDefinition, type WorkflowExportDocument, type WorkflowExportInput, WorkflowInterface, type WorkflowNodeReference, autoLayout, buildExportDocument, canonicalJson, checkSchedulePolicy, checkScheduleSpec, deriveInterface, diffDefinitions, durationMs, envelopeSchemaVersion, executorNodeView, executorView, exportDefinition, isV2Definition, isValidJsonSchema, normalizeDefinition, parseWorkflowDocument, readWorkflowDocument, serializeWorkflowDocument, sha256Hex, sha256Tagged, stableStringify, usesMergedParameters, validate, workflowInputsSchema };
|