@uipath/maestro-builder-sdk 6.97.2 → 6.98.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/api-index.md CHANGED
@@ -51,21 +51,21 @@ could hand you spans for a version you do not have.
51
51
  | `ActionSchemaSection` | interface | `dist/nodes/hitl/flow/spec.d.ts:274-280` | Supporting types | One section (`inputs`, `outputs`, `inOuts`, `outcomes`) of an `action-schema.json`. |
52
52
  | `ActionSpec` | type | `dist/core/actions.d.ts:952-960` | Supporting types | One action step's spec: `{ kind }` plus that kind's body from FlowActionSpecs, for every kind there. |
53
53
  | `agent` | function | `dist/nodes/process/flow/factories.d.ts:159-213` | Actions | Invoke an AGENT resource — either one published to Orchestrator or a sibling agent project registered in the same… |
54
- | `AgentFlavour` | type | `dist/nodes/process/flow/spec.d.ts:286-290` | Supporting types | Which KIND of agent project was published behind a `uipath.core.agent.<key>` resource. |
54
+ | `AgentFlavour` | type | `dist/nodes/process/flow/spec.d.ts:294-298` | Supporting types | Which KIND of agent project was published behind a `uipath.core.agent.<key>` resource. |
55
55
  | `AgentGuardrail` | type | `dist/core/actions.d.ts:410` | Supporting types | |
56
56
  | `agenticProcess` | function | `dist/nodes/process/flow/factories.d.ts:113-158` | Actions | Invoke a deployed AGENTIC PROCESS — a Maestro process orchestration published to Orchestrator: a BPMN process that… |
57
- | `AgenticProcessCompletion` | type | `dist/nodes/process/flow/spec.d.ts:245-283` | Supporting types | Whether an Agentic Process step waits for the process's result. |
58
- | `AgenticProcessInputs` | type | `dist/nodes/process/flow/spec.d.ts:284-285` | Option shapes | What `agenticProcess()` takes: the shared fields plus the completion policy. |
59
- | `AgenticProcessInputsBase` | interface | `dist/nodes/process/flow/spec.d.ts:188-244` | Option shapes | 7 field(s) |
60
- | `AgentInputs` | interface | `dist/nodes/process/flow/spec.d.ts:293-388` | Option shapes | What `agent()` takes: the agent resource to start, its arguments, and the output fields a read may name. |
61
- | `AgentLocation` | type | `dist/nodes/process/flow/spec.d.ts:291-292` | Supporting types | Where a published agent lives: deployed to a folder (`'published'`) or a sibling project of the same solution… |
57
+ | `AgenticProcessCompletion` | type | `dist/nodes/process/flow/spec.d.ts:253-291` | Supporting types | Whether an Agentic Process step waits for the process's result. |
58
+ | `AgenticProcessInputs` | type | `dist/nodes/process/flow/spec.d.ts:292-293` | Option shapes | What `agenticProcess()` takes: the shared fields plus the completion policy. |
59
+ | `AgenticProcessInputsBase` | interface | `dist/nodes/process/flow/spec.d.ts:194-252` | Option shapes | 7 field(s) |
60
+ | `AgentInputs` | interface | `dist/nodes/process/flow/spec.d.ts:301-396` | Option shapes | What `agent()` takes: the agent resource to start, its arguments, and the output fields a read may name. |
61
+ | `AgentLocation` | type | `dist/nodes/process/flow/spec.d.ts:299-300` | Supporting types | Where a published agent lives: deployed to a folder (`'published'`) or a sibling project of the same solution… |
62
62
  | `AgentMemoryRef` | interface | `dist/core/actions.d.ts:569-593` | Supporting types | An episodic memory the agent learns from across runs, wired to the agent's own `memory` handle. |
63
63
  | `AgentResourcePlacement` | interface | `dist/core/actions.d.ts:423-458` | Supporting types | Where one of an inline agent's resources (a context index, a tool, an escalation) sits in the `.flow`: the id of its own… |
64
64
  | `AgentResources` | type | `dist/nodes/agent/flow/spec.d.ts:38-44` | Supporting types | The resources an agent attaches on its artifact handles — `context`, `tools` and `escalation`, written exactly as… |
65
65
  | `Aggregation` | interface | `dist/nodes/transform/flow/spec.d.ts:36-42` | Supporting types | 3 field(s) |
66
66
  | `AggregationOperation` | type | `dist/nodes/transform/flow/spec.d.ts:35` | Supporting types | |
67
67
  | `apiWorkflow` | function | `dist/nodes/process/flow/factories.d.ts:53-87` | Actions | Invoke a deployed API workflow — a coded workflow published to Orchestrator, run as a serverless job rather than by a… |
68
- | `ApiWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:70-127` | Option shapes | 7 field(s) |
68
+ | `ApiWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:72-131` | Option shapes | 7 field(s) |
69
69
  | `AppRef` | interface | `dist/nodes/hitl/flow/spec.d.ts:146-254` | Supporting types | A deployed Action App that supplies a human task's form — the `'action-app'` variant's subject. |
70
70
  | `ArmBuilder` | class | `dist/flow-sdk.d.ts:1255-1278` | Builders | The sub-builder an ARM callback receives — a `StepList` that can also name itself with `.label(...)`. |
71
71
  | `AskedField` | interface | `dist/core/actions.d.ts:238-257` | Supporting types | A value the reviewer FILLS IN: read downstream with `out('<step>', '<id>')`. |
@@ -233,7 +233,7 @@ could hand you spans for a version you do not have.
233
233
  | `ProcessToolKind` | type | `dist/core/actions.d.ts:692-705` | Supporting types | The tool kinds that wrap a DEPLOYED tenant resource. |
234
234
  | `ProcessToolRef` | interface | `dist/core/actions.d.ts:735-768` | Supporting types | A deployed tenant resource the agent may invoke. |
235
235
  | `publishedFunction` | function | `dist/nodes/process/flow/factories.d.ts:88-112` | Actions | Invoke a published Orchestrator **Function** — a deployed unit of code run as one step (`uipath.core.function.<key>`,… |
236
- | `PublishedFunctionInputs` | interface | `dist/nodes/process/flow/spec.d.ts:128-187` | Option shapes | A published Orchestrator **Function** — a small, single-purpose unit of code deployed as its own resource and invoked as… |
236
+ | `PublishedFunctionInputs` | interface | `dist/nodes/process/flow/spec.d.ts:132-193` | Option shapes | A published Orchestrator **Function** — a small, single-purpose unit of code deployed as its own resource and invoked as… |
237
237
  | `queueItem` | function | `dist/nodes/queue/flow/factories.d.ts:4-49` | Actions | Declare an Orchestrator QUEUE ITEM step. |
238
238
  | `QueueItemInputs` | interface | `dist/nodes/queue/flow/spec.d.ts:11-84` | Option shapes | 10 field(s) |
239
239
  | `QueuePriority` | type | `dist/nodes/queue/flow/spec.d.ts:9-10` | Supporting types | The three priorities an Orchestrator queue item can carry. |
@@ -249,7 +249,7 @@ could hand you spans for a version you do not have.
249
249
  | `ReturnFieldType` | type | `dist/core/actions.d.ts:285-302` | Supporting types | A JSON-schema-ish type for one field of a step's declared `returns`. |
250
250
  | `ReturnOptions` | interface | `dist/flow-sdk.d.ts:368-409` | Option shapes | `.return(...)`-specific options. |
251
251
  | `rpaWorkflow` | function | `dist/nodes/process/flow/factories.d.ts:8-52` | Actions | Invoke a deployed RPA (robotic process automation) workflow — a classic UI-automation process, published to… |
252
- | `RpaWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:11-69` | Option shapes | 7 field(s) |
252
+ | `RpaWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:11-71` | Option shapes | 7 field(s) |
253
253
  | `SCHEDULE_PRESETS` | const | `dist/nodes/trigger/flow/spec.d.ts:8-15` | Actions | The eight intervals the designer offers in its Frequency dropdown. |
254
254
  | `scheduled` | function | `dist/nodes/trigger/flow/factories.d.ts:12-31` | Actions | Start the flow on a recurring schedule instead of on demand. |
255
255
  | `ScheduledInputs` | interface | `dist/nodes/trigger/flow/spec.d.ts:29-42` | Option shapes | 1 field(s) |
@@ -61,16 +61,16 @@ not find it either.
61
61
  | `activity` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3205-3243` |
62
62
  | `actualPrompt` | property | `StartingPrompt` | `dist/nodes/trigger/flow/spec.d.ts:50-51` |
63
63
  | `additionalOutputs` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:98-102` |
64
- | `agent` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:407-410` |
64
+ | `agent` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:415-418` |
65
65
  | `agent` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1326-1335` |
66
- | `agenticProcess` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:403-406` |
66
+ | `agenticProcess` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:411-414` |
67
67
  | `aiSummary` | property | `CaseAppConfig` | `dist/case/case-sdk.d.ts:1121-1126` |
68
68
  | `alias` | property | `Aggregation` | `dist/nodes/transform/flow/spec.d.ts:38-39` |
69
69
  | `aliases` | property | `LookupSpec` | `dist/core/lookups.d.ts:31-32` |
70
70
  | `allErrors` | property | `RetrySpec` | `dist/bpmn/bpmn-sdk.d.ts:950-951` |
71
71
  | `allowAdhocOptionalStageTasks` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1199-1200` |
72
72
  | `allowAdhocTasks` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1977-1984` |
73
- | `apiWorkflow` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:395-398` |
73
+ | `apiWorkflow` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:403-406` |
74
74
  | `apiWorkflow` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1346-1355` |
75
75
  | `app` | property | `EscalationRef` | `dist/core/actions.d.ts:832-859` |
76
76
  | `app` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:326-330` |
@@ -437,7 +437,7 @@ not find it either.
437
437
  | `filters` | property | `DataFabricReadInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:85-86` |
438
438
  | `filters` | property | `EventSubscription` | `dist/core/actions.d.ts:1186-1187` |
439
439
  | `filters` | property | `TriggerOptions` | `dist/core/actions.d.ts:1143-1144` |
440
- | `flavour` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:373-387` |
440
+ | `flavour` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:381-395` |
441
441
  | `flowIds` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3407-3450` |
442
442
  | `flowMode` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2347-2386` |
443
443
  | `flowProcess` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1368-1377` |
@@ -473,9 +473,9 @@ not find it either.
473
473
  | `folderKey` | property | `RemoteA2aToolRef` | `dist/core/actions.d.ts:506` |
474
474
  | `FolderKey` | property | `FlowMetadata` | `dist/nodes/script/flow/spec.d.ts:85-86` |
475
475
  | `folderName` | property | `IxpExtractInputs` | `dist/nodes/document/flow/spec.d.ts:143-149` |
476
- | `folderPath` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:214-221` |
477
- | `folderPath` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:317-328` |
478
- | `folderPath` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:92-99` |
476
+ | `folderPath` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:220-227` |
477
+ | `folderPath` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:325-336` |
478
+ | `folderPath` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:94-101` |
479
479
  | `folderPath` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:198-204` |
480
480
  | `folderPath` | property | `ConnectorEventOpts` | `dist/bpmn/bpmn-sdk.d.ts:1663-1669` |
481
481
  | `folderPath` | property | `ContextIndexRef` | `dist/core/actions.d.ts:892-893` |
@@ -483,14 +483,14 @@ not find it either.
483
483
  | `folderPath` | property | `IxpExtractInputs` | `dist/nodes/document/flow/spec.d.ts:169-175` |
484
484
  | `folderPath` | property | `McpToolRef` | `dist/core/actions.d.ts:472-473` |
485
485
  | `folderPath` | property | `ProcessToolRef` | `dist/core/actions.d.ts:752-753` |
486
- | `folderPath` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:156-166` |
486
+ | `folderPath` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:160-170` |
487
487
  | `folderPath` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:14-15` |
488
488
  | `folderPath` | property | `RemoteA2aToolRef` | `dist/core/actions.d.ts:505` |
489
489
  | `folderPath` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:31-38` |
490
490
  | `folderPath` | property | `TaskRef` | `dist/case/case-sdk.d.ts:748` |
491
491
  | `fork` | property | `ParallelOptions` | `dist/flow-sdk.d.ts:340-357` |
492
492
  | `fork` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3350-3375` |
493
- | `form` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:236-243` |
493
+ | `form` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:244-251` |
494
494
  | `form` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1554-1555` |
495
495
  | `form` | property | `HumanTaskFormOpts` | `dist/bpmn/bpmn-sdk.d.ts:1588-1589` |
496
496
  | `format` | property | `ActionSchemaProperty` | `dist/nodes/hitl/flow/spec.d.ts:267-268` |
@@ -574,9 +574,9 @@ not find it either.
574
574
  | `inputs` | property | `ActionSchemaFile` | `dist/nodes/hitl/flow/spec.d.ts:283-284` |
575
575
  | `inputs` | property | `ActionSpecData` | `dist/case/case-sdk.d.ts:889-890` |
576
576
  | `inputs` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1779-1780` |
577
- | `inputs` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:230-235` |
578
- | `inputs` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:335-352` |
579
- | `inputs` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:109-113` |
577
+ | `inputs` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:238-243` |
578
+ | `inputs` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:343-360` |
579
+ | `inputs` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:113-117` |
580
580
  | `inputs` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:211-219` |
581
581
  | `inputs` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:717-718` |
582
582
  | `inputs` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:735` |
@@ -587,9 +587,9 @@ not find it either.
587
587
  | `inputs` | property | `NodeContribution` | `dist/core/node-classes.d.ts:113-117` |
588
588
  | `inputs` | property | `PlatformActionSchema` | `dist/nodes/hitl/flow/spec.d.ts:307-308` |
589
589
  | `inputs` | property | `ProcessToolRef` | `dist/core/actions.d.ts:760-765` |
590
- | `inputs` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:176-177` |
590
+ | `inputs` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:182-183` |
591
591
  | `inputs` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:95-96` |
592
- | `inputs` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:47-52` |
592
+ | `inputs` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:49-54` |
593
593
  | `inputs` | property | `ScriptTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1026-1045` |
594
594
  | `inputs` | property | `SubflowSpec` | `dist/flow-sdk.d.ts:57-58` |
595
595
  | `inputs` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1658-1693` |
@@ -624,16 +624,16 @@ not find it either.
624
624
  | `join` | property | `ChooseOpts` | `dist/bpmn/bpmn-sdk.d.ts:2082-2083` |
625
625
  | `join` | property | `SplitOpts` | `dist/bpmn/bpmn-sdk.d.ts:2089-2090` |
626
626
  | `js` | property | `Expr` | `dist/core/expr.d.ts:17` |
627
- | `key` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:189-200` |
628
- | `key` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:295-308` |
629
- | `key` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:71-82` |
627
+ | `key` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:195-206` |
628
+ | `key` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:303-316` |
629
+ | `key` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:73-84` |
630
630
  | `key` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:179-185` |
631
631
  | `key` | property | `HitlConnection` | `dist/nodes/hitl/flow/spec.d.ts:28-29` |
632
632
  | `key` | property | `HttpRequestConnector` | `dist/case/case-sdk.d.ts:613-614` |
633
633
  | `key` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1568-1569` |
634
634
  | `key` | property | `McpToolRef` | `dist/core/actions.d.ts:469-470` |
635
635
  | `key` | property | `ProcessToolRef` | `dist/core/actions.d.ts:744-749` |
636
- | `key` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:135-145` |
636
+ | `key` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:139-149` |
637
637
  | `key` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:16-25` |
638
638
  | `key` | property | `RemoteA2aToolRef` | `dist/core/actions.d.ts:497-498` |
639
639
  | `key` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:12-22` |
@@ -676,12 +676,12 @@ not find it either.
676
676
  | `limit` | property | `DataFabricReadInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:101-106` |
677
677
  | `limit` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:440-441` |
678
678
  | `literal` | property | `Expr` | `dist/core/expr.d.ts:18` |
679
- | `location` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:203-213` |
680
- | `location` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:311-316` |
681
- | `location` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:85-91` |
679
+ | `location` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:209-219` |
680
+ | `location` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:319-324` |
681
+ | `location` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:87-93` |
682
682
  | `location` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:186-197` |
683
683
  | `location` | property | `CarriedConnectorField` | `dist/core/carried-connector-fields.d.ts:43-44` |
684
- | `location` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:148-155` |
684
+ | `location` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:152-159` |
685
685
  | `location` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:25-30` |
686
686
  | `lookups` | property | `ConnectorMeta` | `dist/core/connectors.d.ts:89-100` |
687
687
  | `loop` | property | `ActivityNodeFields` | `dist/bpmn/bpmn-sdk.d.ts:365-366` |
@@ -749,10 +749,10 @@ not find it either.
749
749
  | `name` | property | `ActionAppRef` | `dist/case/case-sdk.d.ts:834-835` |
750
750
  | `name` | property | `ActionField` | `dist/case/case-sdk.d.ts:795-796` |
751
751
  | `name` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1767-1768` |
752
- | `name` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:201-202` |
753
- | `name` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:309-310` |
752
+ | `name` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:207-208` |
753
+ | `name` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:317-318` |
754
754
  | `name` | property | `AgentMemoryRef` | `dist/core/actions.d.ts:578-579` |
755
- | `name` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:83-84` |
755
+ | `name` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:85-86` |
756
756
  | `name` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:177-178` |
757
757
  | `name` | property | `BindingContribution` | `dist/core/node-classes.d.ts:87-88` |
758
758
  | `name` | property | `BindingDecl` | `dist/bpmn/bpmn-sdk.d.ts:468-469` |
@@ -810,7 +810,7 @@ not find it either.
810
810
  | `name` | property | `PlainTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1874-1875` |
811
811
  | `name` | property | `PlatformActionSchemaArg` | `dist/nodes/hitl/flow/spec.d.ts:294-295` |
812
812
  | `name` | property | `ProcessToolRef` | `dist/core/actions.d.ts:750-751` |
813
- | `name` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:146-147` |
813
+ | `name` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:150-151` |
814
814
  | `name` | property | `QueueItemOpts` | `dist/bpmn/bpmn-sdk.d.ts:1486-1487` |
815
815
  | `name` | property | `ReceiveMessageOpts` | `dist/bpmn/bpmn-sdk.d.ts:1614-1615` |
816
816
  | `name` | property | `RegistryContextField` | `dist/bpmn/typed-node.d.ts:22` |
@@ -962,12 +962,12 @@ not find it either.
962
962
  | `processId` | property | `SugarRegistry` | `dist/bpmn/bpmn-sdk.d.ts:2226-2231` |
963
963
  | `ProcessKey` | property | `FlowMetadata` | `dist/nodes/script/flow/spec.d.ts:89-90` |
964
964
  | `project` | property | `IxpExtractInputs` | `dist/nodes/document/flow/spec.d.ts:111-124` |
965
- | `projectId` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:222-229` |
966
- | `projectId` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:329-334` |
967
- | `projectId` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:100-108` |
965
+ | `projectId` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:228-237` |
966
+ | `projectId` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:337-342` |
967
+ | `projectId` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:102-112` |
968
968
  | `projectId` | property | `IxpToolRef` | `dist/core/actions.d.ts:781-791` |
969
- | `projectId` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:167-175` |
970
- | `projectId` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:39-46` |
969
+ | `projectId` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:171-181` |
970
+ | `projectId` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:39-48` |
971
971
  | `prompt` | property | `BatchTransformInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:48-49` |
972
972
  | `prompt` | property | `SummarizeInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:33-34` |
973
973
  | `properties` | property | `ActionSchemaProperty` | `dist/nodes/hitl/flow/spec.d.ts:271-272` |
@@ -975,7 +975,7 @@ not find it either.
975
975
  | `propertyAttribute` | property | `BindingContribution` | `dist/core/node-classes.d.ts:97-98` |
976
976
  | `propertyAttribute` | property | `BindingDecl` | `dist/bpmn/bpmn-sdk.d.ts:472-473` |
977
977
  | `propertyAttribute` | property | `BindingOpts` | `dist/bpmn/bpmn-sdk.d.ts:1202-1203` |
978
- | `publishedFunction` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:399-402` |
978
+ | `publishedFunction` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:407-410` |
979
979
  | `query` | property | `BuiltinToolRef` | `dist/core/actions.d.ts:604-610` |
980
980
  | `query` | property | `CaseHttpRequestSpec` | `dist/case/case-sdk.d.ts:588-594` |
981
981
  | `query` | property | `ContextIndexRef` | `dist/core/actions.d.ts:896-901` |
@@ -1055,15 +1055,15 @@ not find it either.
1055
1055
  | `retryCount` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:119-133` |
1056
1056
  | `return` | method | `StepList` | `dist/flow-sdk.d.ts:1244-1253` |
1057
1057
  | `returnCitations` | property | `SummarizeInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:35-40` |
1058
- | `returns` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:353-372` |
1059
- | `returns` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:114-126` |
1058
+ | `returns` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:361-380` |
1059
+ | `returns` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:118-130` |
1060
1060
  | `returns` | property | `ClientSideToolRef` | `dist/core/actions.d.ts:522-523` |
1061
1061
  | `returns` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:69-91` |
1062
1062
  | `returns` | property | `InlineAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:280-293` |
1063
1063
  | `returns` | property | `ProcessToolRef` | `dist/core/actions.d.ts:766-767` |
1064
- | `returns` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:178-186` |
1064
+ | `returns` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:184-192` |
1065
1065
  | `returns` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:63-83` |
1066
- | `returns` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:53-68` |
1066
+ | `returns` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:55-70` |
1067
1067
  | `returns` | property | `ScriptInputs` | `dist/nodes/script/flow/spec.d.ts:10-43` |
1068
1068
  | `role` | property | `FlowAction` | `dist/core/node-classes.d.ts:166-167` |
1069
1069
  | `role` | property | `FlowNode` | `dist/core/node-classes.d.ts:142-143` |
@@ -1071,7 +1071,7 @@ not find it either.
1071
1071
  | `role` | property | `FlowTrigger` | `dist/core/node-classes.d.ts:173-174` |
1072
1072
  | `routedWaypoints` | property | `EdgeRoute` | `dist/flow-sdk.d.ts:641-646` |
1073
1073
  | `rpa` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1336-1345` |
1074
- | `rpaWorkflow` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:391-394` |
1074
+ | `rpaWorkflow` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:399-402` |
1075
1075
  | `rule` | property | `CaseRule` | `dist/case/case-sdk.d.ts:98` |
1076
1076
  | `rules` | property | `BuiltCaseExitCondition` | `dist/case/case-sdk.d.ts:458` |
1077
1077
  | `rules` | property | `BuiltEntryCondition` | `dist/case/case-sdk.d.ts:400` |
@@ -0,0 +1,76 @@
1
+ import type { BuiltBpmn } from './bpmn-sdk.js';
2
+ import { type BpmnCheckOpts, type CheckedBpmn, type Diagnostic } from './check.js';
3
+ /** A built process together with what `check` found in it. */
4
+ export interface CheckedProcess {
5
+ built: BuiltBpmn;
6
+ checked: CheckedBpmn;
7
+ }
8
+ /**
9
+ * Every element of `built` by id, as the text two builds are compared by. Nodes and
10
+ * flows at every depth, and the declarations: variables (the root's and each
11
+ * sub-process's own), bindings, messages and errors.
12
+ * Two declarations that share an id are kept together, so either changing counts.
13
+ */
14
+ export declare function elementIndex(built: BuiltBpmn): Map<string, string>;
15
+ /**
16
+ * Scope `edited`'s findings to the edit, against `baseline`: the original decompiled,
17
+ * built and checked the same way. See the file header for the rule. Each finding comes
18
+ * back with its `class` (when the code has one) and its `origin`.
19
+ *
20
+ * For instance, an `INTSVC_CONNECTION_MISSING` on a connector task the edit did not
21
+ * touch, which the original reports too, comes back as a `pre-existing` warning; the
22
+ * same finding after the edit renamed that task is an `edited` error.
23
+ */
24
+ export declare function scopeToEdit(edited: CheckedProcess, baseline: CheckedProcess): Diagnostic[];
25
+ /** What {@link checkAgainstBaseline} needs besides the edited process and the original. */
26
+ export interface BaselineCheckOpts extends BpmnCheckOpts {
27
+ /**
28
+ * The edited `.bpmn.ts` text, for the decompile stamp on its first line: the original
29
+ * is decompiled with the options it records, so an untouched element builds the same
30
+ * on both sides. With no readable stamp, `bpmn decompile`'s defaults are used
31
+ * (`style=explicit`, connectors lifted when a library is open).
32
+ */
33
+ source?: string;
34
+ /** Called with each note worth printing (the original changed since the decompile). */
35
+ onWarning?: (message: string) => void;
36
+ }
37
+ /**
38
+ * Why `xml` is not a `.bpmn` document, or `undefined` when it is one: XML with a
39
+ * `bpmn:process`. `check --baseline` refuses anything else before loading it, such as
40
+ * the `.bpmn.ts` source passed by mistake (`no bpmn:process element`) or a truncated
41
+ * file (`not XML: <the parser's message>`).
42
+ */
43
+ export declare function bpmnDocumentProblem(xml: string): string | undefined;
44
+ /**
45
+ * Check `built` and scope its findings to the edit ({@link scopeToEdit}), against
46
+ * `original`, the `.bpmn` text the source was decompiled from.
47
+ *
48
+ * @param built - The edited process, built from the source.
49
+ * @param original - The original `.bpmn` text.
50
+ * @param opts - The check options (the same for both checks) and the edited source.
51
+ * @returns Every finding of the edited check, each with its `origin`.
52
+ */
53
+ export declare function checkAgainstBaseline(built: BuiltBpmn, original: string, opts?: BaselineCheckOpts): Promise<Diagnostic[]>;
54
+ /**
55
+ * The baseline half of {@link checkAgainstBaseline}: `original` decompiled (with the
56
+ * options the source's stamp records), built and checked.
57
+ *
58
+ * @throws What the decompile or the build throws: the original does not decompile.
59
+ */
60
+ export declare function checkOriginal(original: string, opts?: BaselineCheckOpts): Promise<CheckedProcess>;
61
+ /**
62
+ * `original` decompiled, with the options the source's stamp records, and built: the
63
+ * process the source was before the edit. A CLI runs it before it loads the source, so
64
+ * a failure here is reported as the original's, never the source's; it then checks the
65
+ * result with the library it checks the edit with (`bpmn/check-cli.ts`).
66
+ *
67
+ * @param opts - `library` lifts connector tasks as `bpmn decompile` did; `source`
68
+ * carries the stamp; `onWarning` hears that the original changed since the decompile.
69
+ * @throws What the decompile or the build throws: the original does not decompile.
70
+ */
71
+ export declare function buildOriginal(original: string, opts?: Pick<BaselineCheckOpts, 'library' | 'source' | 'onWarning'>): Promise<BuiltBpmn>;
72
+ /**
73
+ * The `--baseline` summary line, for instance
74
+ * `1 error(s) in edited elements, 0 pre-existing SDK defect(s), 9 pre-existing warning(s)`.
75
+ */
76
+ export declare function bpmnBaselineSummary(diags: readonly Diagnostic[]): string;
@@ -0,0 +1,201 @@
1
+ /**
2
+ * check-baseline — `bpmn check --baseline <original.bpmn>`: scope the findings to the edit.
3
+ *
4
+ * In a brownfield edit the agent decompiles an existing `.bpmn`, edits the source, and
5
+ * checks it. `check` judges the whole process, so a defect the original already had, on
6
+ * an element the agent never touched, fails every edit anywhere in the file. For
7
+ * instance, a production process whose nine connector tasks name no connection gets nine
8
+ * `INTSVC_CONNECTION_MISSING` errors, and an agent fixing a typo in one script task can
9
+ * never get a green check without rewiring connections it did not touch.
10
+ *
11
+ * With a baseline, the original is decompiled (with the options the source's decompile
12
+ * stamp records), built and checked the same way, in memory, and each finding gets an
13
+ * `origin` (core/baseline-scope.ts, shared with `flow check --baseline`):
14
+ *
15
+ * - `pre-existing` when its element is UNCHANGED (below) and the original reports the
16
+ * same code, at the same level, on that element; it becomes a warning. A finding that names no element
17
+ * is pre-existing when the original reports the same code and message.
18
+ * - `edited` otherwise: an element the edit changed or added, or an untouched element
19
+ * the original does not have the finding on (an edit elsewhere broke it).
20
+ *
21
+ * An element is unchanged when the edited build and the original's build hold the same
22
+ * element under its id: the same node (kind, name, type, inputs, outputs, extension
23
+ * payload, every field the builder carries), the same sequence flow (source, target,
24
+ * condition), the same variable, binding, message or error declaration. Wiring is not
25
+ * part of a node, so a node whose neighbour was rewired is still unchanged; a
26
+ * sub-process is compared without its children, which are elements of their own.
27
+ * Both builds come from a decompile of the same original with the same options, so an
28
+ * element the author did not edit is the same object on both sides.
29
+ *
30
+ * A pre-existing `lowering` error (`compile` cannot write the element) also says it is
31
+ * probably an SDK defect: the element is the original's, so the SDK failed to read it.
32
+ * When the serializer pass of the edited check stopped early, the rest of the process
33
+ * was never judged, so CHECK_INCOMPLETE says so: passing never means "not checked".
34
+ */
35
+ import { baselineSummary, preExistingFindings, scopeFindings } from '../core/baseline-scope.js';
36
+ import { refusalClass } from '../core/refusals.js';
37
+ import { checkModel } from './check.js';
38
+ import { readStamp, sourceDigest } from './decompile-stamp.js';
39
+ import { stableJson } from './lift-verify.js';
40
+ import { buildDecompiled, stampedDecompile } from './merge-source.js';
41
+ import { findByLocal, parseXmlRanges } from './xml-ranges.js';
42
+ /** What a pre-existing lowering finding adds to its message. */
43
+ const PRE_EXISTING_LOWERING_NOTE = 'This element is unchanged from the baseline, so this is probably an SDK defect: '
44
+ + 'the SDK cannot read what the original holds here. `compile` refuses this element, so `bpmn merge` of this edit refuses too. '
45
+ + 'Report it: https://github.com/UiPath/builder-sdk/issues';
46
+ /**
47
+ * Every element of `built` by id, as the text two builds are compared by. Nodes and
48
+ * flows at every depth, and the declarations: variables (the root's and each
49
+ * sub-process's own), bindings, messages and errors.
50
+ * Two declarations that share an id are kept together, so either changing counts.
51
+ */
52
+ export function elementIndex(built) {
53
+ const index = new Map();
54
+ const add = (id, what, value) => {
55
+ const text = `${what}:${stableJson(value)}`;
56
+ const had = index.get(id);
57
+ index.set(id, had === undefined ? text : `${had}\n${text}`);
58
+ };
59
+ const walk = (nodes, flows) => {
60
+ for (const n of nodes) {
61
+ if (n.kind === 'subProcess') {
62
+ // Its children and its own declarations are elements of their own.
63
+ const { nodes: children, flows: childFlows, variables, ...own } = n;
64
+ add(n.id, 'node', own);
65
+ for (const v of variables)
66
+ add(v.id, 'variable', v);
67
+ walk(children, childFlows);
68
+ }
69
+ else {
70
+ add(n.id, 'node', n);
71
+ }
72
+ }
73
+ // `implied` says how the source wrote the flow (an arm's chain, an explicit
74
+ // `.sequenceFlow()`), not what the flow is.
75
+ for (const { implied: _implied, ...f } of flows)
76
+ add(f.id, 'flow', f);
77
+ };
78
+ walk(built.nodes, built.flows);
79
+ for (const v of built.variables)
80
+ add(v.id, 'variable', v);
81
+ for (const b of built.bindings)
82
+ add(b.id, 'binding', b);
83
+ for (const m of built.messages)
84
+ add(m.id, 'message', m);
85
+ for (const e of built.errors)
86
+ add(e.id, 'error', e);
87
+ return index;
88
+ }
89
+ /** The element a finding is on: its `nodeId`, else its `where`, when that is an element id; `''` otherwise. */
90
+ function placeOf(d, index) {
91
+ for (const id of [d.nodeId, d.where])
92
+ if (id !== undefined && index.has(id))
93
+ return id;
94
+ return '';
95
+ }
96
+ /**
97
+ * Scope `edited`'s findings to the edit, against `baseline`: the original decompiled,
98
+ * built and checked the same way. See the file header for the rule. Each finding comes
99
+ * back with its `class` (when the code has one) and its `origin`.
100
+ *
101
+ * For instance, an `INTSVC_CONNECTION_MISSING` on a connector task the edit did not
102
+ * touch, which the original reports too, comes back as a `pre-existing` warning; the
103
+ * same finding after the edit renamed that task is an `edited` error.
104
+ */
105
+ export function scopeToEdit(edited, baseline) {
106
+ const editedIndex = elementIndex(edited.built);
107
+ const baselineIndex = elementIndex(baseline.built);
108
+ const preExisting = preExistingFindings(edited.checked.diagnostics.map((d) => {
109
+ const place = placeOf(d, editedIndex);
110
+ return { level: d.level, code: d.code, message: d.message, place, unchanged: place !== '' && editedIndex.get(place) === baselineIndex.get(place) };
111
+ }), baseline.checked.diagnostics.map((d) => ({ level: d.level, code: d.code, message: d.message, place: placeOf(d, baselineIndex) })));
112
+ // Each finding names its element (`nodeId`, which uip prints as `NodeId`), however
113
+ // check placed it, so the reader can tell which element an `(edited)` error is on.
114
+ const classed = edited.checked.diagnostics.map((d) => {
115
+ const cls = refusalClass(d.code);
116
+ const place = placeOf(d, editedIndex);
117
+ return { ...d, ...(place !== '' ? { nodeId: place } : {}), ...(cls !== undefined ? { class: cls } : {}) };
118
+ });
119
+ const out = scopeFindings(classed, preExisting, PRE_EXISTING_LOWERING_NOTE);
120
+ const stop = edited.checked.stoppedAt;
121
+ if (stop) {
122
+ const at = stop.code !== undefined ? `[${stop.code}] ` : '';
123
+ out.push({
124
+ level: 'error', code: 'CHECK_INCOMPLETE',
125
+ message: `check stopped at ${at}${stop.message} Nothing the serializer refuses after that point was checked, so the edit is not judged. `
126
+ + 'Fix it, even if the original has it too, and run check again.',
127
+ class: refusalClass('CHECK_INCOMPLETE'), origin: 'edited',
128
+ });
129
+ }
130
+ return out;
131
+ }
132
+ /**
133
+ * Why `xml` is not a `.bpmn` document, or `undefined` when it is one: XML with a
134
+ * `bpmn:process`. `check --baseline` refuses anything else before loading it, such as
135
+ * the `.bpmn.ts` source passed by mistake (`no bpmn:process element`) or a truncated
136
+ * file (`not XML: <the parser's message>`).
137
+ */
138
+ export function bpmnDocumentProblem(xml) {
139
+ let ranges;
140
+ try {
141
+ ranges = parseXmlRanges(xml);
142
+ }
143
+ catch (error) {
144
+ return `not XML: ${error instanceof Error ? error.message : String(error)}`;
145
+ }
146
+ return findByLocal(ranges, 'process') !== undefined ? undefined : 'no bpmn:process element';
147
+ }
148
+ /**
149
+ * Check `built` and scope its findings to the edit ({@link scopeToEdit}), against
150
+ * `original`, the `.bpmn` text the source was decompiled from.
151
+ *
152
+ * @param built - The edited process, built from the source.
153
+ * @param original - The original `.bpmn` text.
154
+ * @param opts - The check options (the same for both checks) and the edited source.
155
+ * @returns Every finding of the edited check, each with its `origin`.
156
+ */
157
+ export async function checkAgainstBaseline(built, original, opts = {}) {
158
+ const { source: _source, onWarning: _onWarning, ...checkOpts } = opts;
159
+ return scopeToEdit({ built, checked: checkModel(built, checkOpts) }, await checkOriginal(original, opts));
160
+ }
161
+ /**
162
+ * The baseline half of {@link checkAgainstBaseline}: `original` decompiled (with the
163
+ * options the source's stamp records), built and checked.
164
+ *
165
+ * @throws What the decompile or the build throws: the original does not decompile.
166
+ */
167
+ export async function checkOriginal(original, opts = {}) {
168
+ const { source: _source, onWarning: _onWarning, ...checkOpts } = opts;
169
+ const built = await buildOriginal(original, opts);
170
+ return { built, checked: checkModel(built, checkOpts) };
171
+ }
172
+ /**
173
+ * `original` decompiled, with the options the source's stamp records, and built: the
174
+ * process the source was before the edit. A CLI runs it before it loads the source, so
175
+ * a failure here is reported as the original's, never the source's; it then checks the
176
+ * result with the library it checks the edit with (`bpmn/check-cli.ts`).
177
+ *
178
+ * @param opts - `library` lifts connector tasks as `bpmn decompile` did; `source`
179
+ * carries the stamp; `onWarning` hears that the original changed since the decompile.
180
+ * @throws What the decompile or the build throws: the original does not decompile.
181
+ */
182
+ export async function buildOriginal(original, opts = {}) {
183
+ const { source, onWarning, library } = opts;
184
+ const stamp = source !== undefined ? readStamp(source) : undefined;
185
+ const decompileOpts = stampedDecompile(stamp !== undefined && !('error' in stamp)
186
+ ? stamp
187
+ : { file: '', sha256: '', style: 'explicit', connectors: 'lift', keepFlowIds: false, keepUnusedBindings: false, verbatim: [], fetch: true }, library);
188
+ const { built, decompile } = await buildDecompiled(original, decompileOpts);
189
+ if (stamp !== undefined && !('error' in stamp) && sourceDigest(decompile.source) !== stamp.sha256) {
190
+ onWarning?.(`the original changed since the source was decompiled from it (sha256 ${stamp.sha256} recorded, `
191
+ + `${sourceDigest(decompile.source)} now); a finding on an element it changed counts as the edit's.`);
192
+ }
193
+ return built;
194
+ }
195
+ /**
196
+ * The `--baseline` summary line, for instance
197
+ * `1 error(s) in edited elements, 0 pre-existing SDK defect(s), 9 pre-existing warning(s)`.
198
+ */
199
+ export function bpmnBaselineSummary(diags) {
200
+ return baselineSummary(diags, 'elements');
201
+ }