@uipath/maestro-builder-sdk 6.124.11 → 6.124.13

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
@@ -67,7 +67,7 @@ could hand you spans for a version you do not have.
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
68
  | `ApiWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:125-236` | Option shapes | 9 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
- | `ArmBuilder` | class | `dist/flow-sdk.d.ts:1314-1337` | Builders | The sub-builder an ARM callback receives — a `StepList` that can also name itself with `.label(...)`. |
70
+ | `ArmBuilder` | class | `dist/flow-sdk.d.ts:1325-1348` | 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:258-277` | Supporting types | A value the reviewer FILLS IN: read downstream with `out('<step>', '<id>')`. |
72
72
  | `at` | function | `dist/flow-sdk.d.ts:620-649` | Flow construction | A node's layout at a canvas position — the short form of a NodeLayout for the `nodes` map of FlowBuilder.layout. |
73
73
  | `batchTransform` | function | `dist/nodes/ai-patterns/flow/factories.d.ts:55-89` | Actions | Add AI-generated columns to a CSV — the platform's **Batch transform** node, `uipath.pattern.batch-transform` (service… |
@@ -152,11 +152,11 @@ could hand you spans for a version you do not have.
152
152
  | `FilterCondition` | type | `dist/nodes/transform/flow/spec.d.ts:10-11` | Supporting types | Comparison a filter rule applies to a field. |
153
153
  | `FilterMatch` | type | `dist/nodes/transform/flow/spec.d.ts:8-9` | Supporting types | How a filter combines its rules: every rule must match, or any one. |
154
154
  | `FilterRule` | interface | `dist/nodes/transform/flow/spec.d.ts:12-24` | Supporting types | 3 field(s) |
155
- | `flow` | function | `dist/flow-sdk.d.ts:1742-1757` | Flow construction | Start building a flow with the given id. |
155
+ | `flow` | function | `dist/flow-sdk.d.ts:1753-1768` | Flow construction | Start building a flow with the given id. |
156
156
  | `FlowAction` | class | `dist/core/node-classes.d.ts:171-177` | Supporting types | A node placed as a step — pass an instance to `.step(name, …)`. |
157
157
  | `FlowActionSpec` | type | `dist/flow-sdk.d.ts:61-62` | Supporting types | What `.step()` accepts here: the shared actions plus this SDK's subflow. |
158
158
  | `FlowActionSpecs` | interface | `dist/core/actions.d.ts:959-1000` | Supporting types | Every action kind, keyed by kind, to the body of its spec — the arm's fields other than `kind`. |
159
- | `FlowBuilder` | class | `dist/flow-sdk.d.ts:1338-1741` | Builders | 15 member(s) |
159
+ | `FlowBuilder` | class | `dist/flow-sdk.d.ts:1349-1752` | Builders | 15 member(s) |
160
160
  | `FlowLayout` | interface | `dist/flow-sdk.d.ts:736-749` | Supporting types | Designer layout for a flow, keyed by AUTHOR-level ids: node entries by step name (plus the trigger id and `end`), edge… |
161
161
  | `FlowMetadata` | interface | `dist/nodes/script/flow/spec.d.ts:63-95` | Actions | The instance metadata, as a script function's second parameter sees it. |
162
162
  | `FlowNode` | class | `dist/core/node-classes.d.ts:135-170` | Supporting types | The abstract root of every definition-backed node the builder can place. |
@@ -273,12 +273,12 @@ could hand you spans for a version you do not have.
273
273
  | `ShownField` | interface | `dist/core/actions.d.ts:242-257` | Supporting types | A value the reviewer READS: shown on the form, filled in from the flow. |
274
274
  | `StartingPrompt` | interface | `dist/nodes/trigger/flow/spec.d.ts:52-63` | Supporting types | One suggestion the chat shows before the user types: a chip labelled `displayPrompt` that sends `actualPrompt` to the… |
275
275
  | `Step` | type | `dist/flow-sdk.d.ts:484-604` | Supporting types | |
276
- | `StepList` | class | `dist/flow-sdk.d.ts:816-1313` | Builders | Collects a sequence of steps. |
276
+ | `StepList` | class | `dist/flow-sdk.d.ts:816-1324` | Builders | Collects a sequence of steps. |
277
277
  | `StepOptions` | interface | `dist/flow-sdk.d.ts:313-346` | Option shapes | The options of `.step()`: the NodeOptions, plus `draft` for a node the canvas saved unfinished. |
278
278
  | `STICKY_NOTE_COLORS` | const | `dist/flow-sdk.d.ts:689-694` | Flow construction | The designer's sticky-note palette. |
279
279
  | `StickyNote` | interface | `dist/flow-sdk.d.ts:701-735` | Supporting types | A canvas sticky note — free text pinned to the diagram, for the humans reading it. |
280
280
  | `StickyNoteColor` | type | `dist/flow-sdk.d.ts:695-700` | Supporting types | A sticky note's swatch. |
281
- | `subflow` | function | `dist/flow-sdk.d.ts:1758-1797` | Flow construction | Run another flow as one step, and read back what it returns. |
281
+ | `subflow` | function | `dist/flow-sdk.d.ts:1769-1808` | Flow construction | Run another flow as one step, and read back what it returns. |
282
282
  | `SubflowSpec` | interface | `dist/flow-sdk.d.ts:53-60` | Supporting types | A step that runs a child flow. |
283
283
  | `summarize` | function | `dist/nodes/ai-patterns/flow/factories.d.ts:8-54` | Actions | Summarize a document with citations — the platform's **Summarize** node. |
284
284
  | `SummarizeInputs` | interface | `dist/nodes/ai-patterns/flow/spec.d.ts:9-41` | Option shapes | 3 field(s) |
@@ -78,7 +78,7 @@ not find it either.
78
78
  | `app` | property | `HumanTaskFormOpts` | `dist/bpmn/bpmn-sdk.d.ts:1684-1685` |
79
79
  | `appSystemName` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:205-210` |
80
80
  | `appVersion` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1662-1663` |
81
- | `armLabel` | property | `ArmBuilder` | `dist/flow-sdk.d.ts:1326` |
81
+ | `armLabel` | property | `ArmBuilder` | `dist/flow-sdk.d.ts:1337` |
82
82
  | `assignee` | property | `HitlRecipient` | `dist/nodes/hitl/flow/spec.d.ts:54-69` |
83
83
  | `assignmentCriteria` | property | `ActionSpecData` | `dist/case/case-sdk.d.ts:897-903` |
84
84
  | `async` | property | `OrchestratorAsyncOpts` | `dist/bpmn/bpmn-sdk.d.ts:1555-1559` |
@@ -115,14 +115,14 @@ not find it either.
115
115
  | `body` | property | `TypedContextRow` | `dist/bpmn/typed-node.d.ts:221-226` |
116
116
  | `body` | property | `TypedInputRow` | `dist/bpmn/typed-node.d.ts:252-253` |
117
117
  | `boundaryEvent` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2638-2645` |
118
- | `branch` | method | `StepList` | `dist/flow-sdk.d.ts:1028-1049` |
118
+ | `branch` | method | `StepList` | `dist/flow-sdk.d.ts:1039-1060` |
119
119
  | `branches` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:25-30` |
120
- | `break` | method | `StepList` | `dist/flow-sdk.d.ts:1173-1182` |
120
+ | `break` | method | `StepList` | `dist/flow-sdk.d.ts:1184-1193` |
121
121
  | `breakEnabled` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:476-477` |
122
122
  | `breakEnabled` | property | `LoopOptions` | `dist/flow-sdk.d.ts:458-462` |
123
123
  | `build` | method | `BpmnBuilder` | `dist/bpmn/bpmn-sdk.d.ts:4064-4073` |
124
124
  | `build` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2181-2186` |
125
- | `build` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1732-1740` |
125
+ | `build` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1743-1751` |
126
126
  | `businessEvent` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2170-2180` |
127
127
  | `businessEvent` | property | `RuleOpts` | `dist/case/case-sdk.d.ts:85-92` |
128
128
  | `businessEvents` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1232-1233` |
@@ -207,7 +207,7 @@ not find it either.
207
207
  | `contextRows` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1890-1897` |
208
208
  | `contextRows` | property | `ExtensionPayload` | `dist/bpmn/bpmn-sdk.d.ts:772-795` |
209
209
  | `contextVerbatim` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1970-1975` |
210
- | `continue` | method | `StepList` | `dist/flow-sdk.d.ts:1183-1197` |
210
+ | `continue` | method | `StepList` | `dist/flow-sdk.d.ts:1194-1208` |
211
211
  | `contribute` | method | `FlowNode` | `dist/core/node-classes.d.ts:153-162` |
212
212
  | `controlType` | property | `FormFieldSettings` | `dist/core/actions.d.ts:204-208` |
213
213
  | `conversationalAgent` | property | `FlowActionSpecs` | `dist/nodes/agent/flow/spec.d.ts:460-463` |
@@ -251,7 +251,7 @@ not find it either.
251
251
  | `definition` | method | `NodeCatalog` | `dist/core/node-catalog.d.ts:13-14` |
252
252
  | `definition` | property | `NodeContribution` | `dist/core/node-classes.d.ts:120-121` |
253
253
  | `definitions` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:794-799` |
254
- | `definitions` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1592-1632` |
254
+ | `definitions` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1603-1643` |
255
255
  | `delay` | property | `FlowActionSpecs` | `dist/nodes/delay/flow/spec.d.ts:38-41` |
256
256
  | `dependsOn` | property | `LookupSpec` | `dist/core/lookups.d.ts:34-35` |
257
257
  | `deployment` | property | `CaseDocumentExtractionSpec` | `dist/case/case-sdk.d.ts:632-637` |
@@ -274,7 +274,7 @@ not find it either.
274
274
  | `description` | property | `CustomGuardrail` | `dist/core/actions.d.ts:381` |
275
275
  | `description` | property | `EscalationRef` | `dist/core/actions.d.ts:859-860` |
276
276
  | `description` | property | `EventTriggerOpts` | `dist/case/case-sdk.d.ts:328` |
277
- | `description` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1364-1371` |
277
+ | `description` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1375-1382` |
278
278
  | `description` | property | `FormFieldSettings` | `dist/core/actions.d.ts:219-220` |
279
279
  | `description` | property | `HttpRequestToolRef` | `dist/core/actions.d.ts:569` |
280
280
  | `description` | property | `IxpExtractInputs` | `dist/nodes/document/flow/spec.d.ts:216-223` |
@@ -324,7 +324,7 @@ not find it either.
324
324
  | `documentExtraction` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1550-1568` |
325
325
  | `documentExtractionSaved` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:1033-1034` |
326
326
  | `documentId` | property | `DocValidationInputs` | `dist/nodes/hitl/flow/spec.d.ts:90-91` |
327
- | `doWhile` | method | `StepList` | `dist/flow-sdk.d.ts:1148-1172` |
327
+ | `doWhile` | method | `StepList` | `dist/flow-sdk.d.ts:1159-1183` |
328
328
  | `draft` | property | `BranchOptions` | `dist/flow-sdk.d.ts:352-362` |
329
329
  | `draft` | property | `StepOptions` | `dist/flow-sdk.d.ts:318-332` |
330
330
  | `dueDate` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:50-51` |
@@ -358,7 +358,7 @@ not find it either.
358
358
  | `entry` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:1060` |
359
359
  | `entry` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:1052` |
360
360
  | `entryPoint` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:1023-1024` |
361
- | `entryPoint` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1449-1517` |
361
+ | `entryPoint` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1460-1528` |
362
362
  | `entryPointId` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1976-1981` |
363
363
  | `entryPointId` | property | `ConnectorEventOpts` | `dist/bpmn/bpmn-sdk.d.ts:1853-1857` |
364
364
  | `entryPointId` | property | `ProcessMetadata` | `dist/bpmn/bpmn-sdk.d.ts:678-690` |
@@ -579,7 +579,7 @@ not find it either.
579
579
  | `inOuts` | property | `ActionSchemaFile` | `dist/nodes/hitl/flow/spec.d.ts:287-288` |
580
580
  | `inOuts` | property | `PlatformActionSchema` | `dist/nodes/hitl/flow/spec.d.ts:311-312` |
581
581
  | `input` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2036-2082` |
582
- | `input` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1673-1685` |
582
+ | `input` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1684-1696` |
583
583
  | `input` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1653-1654` |
584
584
  | `input` | property | `OrchestratorOpts` | `dist/bpmn/bpmn-sdk.d.ts:1517-1518` |
585
585
  | `input` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3601-3628` |
@@ -673,7 +673,7 @@ not find it either.
673
673
  | `kind` | property | `SubflowSpec` | `dist/flow-sdk.d.ts:55` |
674
674
  | `kind` | property | `WhenExpression` | `dist/case/case-sdk.d.ts:166-167` |
675
675
  | `kValue` | property | `AgentMemoryRef` | `dist/core/actions.d.ts:609-610` |
676
- | `label` | method | `ArmBuilder` | `dist/flow-sdk.d.ts:1327-1336` |
676
+ | `label` | method | `ArmBuilder` | `dist/flow-sdk.d.ts:1338-1347` |
677
677
  | `label` | property | `AskedField` | `dist/core/actions.d.ts:262-263` |
678
678
  | `label` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:1055` |
679
679
  | `label` | property | `ContextIndexRef` | `dist/core/actions.d.ts:953-957` |
@@ -693,7 +693,7 @@ not find it either.
693
693
  | `layout` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1236-1237` |
694
694
  | `layout` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:790-791` |
695
695
  | `layout` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2015-2035` |
696
- | `layout` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1372-1401` |
696
+ | `layout` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1383-1412` |
697
697
  | `legacyCompleted` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:386-418` |
698
698
  | `limit` | property | `DataFabricReadInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:101-106` |
699
699
  | `limit` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:474-475` |
@@ -708,7 +708,7 @@ not find it either.
708
708
  | `lookups` | property | `ConnectorMeta` | `dist/core/connectors.d.ts:89-100` |
709
709
  | `loop` | property | `ActivityNodeFields` | `dist/bpmn/bpmn-sdk.d.ts:441-442` |
710
710
  | `loop` | property | `ActivityOpts` | `dist/bpmn/bpmn-sdk.d.ts:1069-1070` |
711
- | `loop` | method | `StepList` | `dist/flow-sdk.d.ts:1136-1147` |
711
+ | `loop` | method | `StepList` | `dist/flow-sdk.d.ts:1147-1158` |
712
712
  | `managed` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:37-68` |
713
713
  | `marksCaseComplete` | property | `BuiltCaseExitCondition` | `dist/case/case-sdk.d.ts:457` |
714
714
  | `marksStageComplete` | property | `BuiltExitCondition` | `dist/case/case-sdk.d.ts:424` |
@@ -811,7 +811,7 @@ not find it either.
811
811
  | `name` | property | `EventSubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:2227-2228` |
812
812
  | `name` | property | `EventTriggerOpts` | `dist/case/case-sdk.d.ts:327` |
813
813
  | `name` | property | `ExternalTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1861-1862` |
814
- | `name` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1356-1363` |
814
+ | `name` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1367-1374` |
815
815
  | `name` | property | `FlowOpts` | `dist/bpmn/bpmn-sdk.d.ts:2019-2020` |
816
816
  | `name` | property | `GatewayOpts` | `dist/bpmn/bpmn-sdk.d.ts:988-989` |
817
817
  | `name` | property | `HandlerOpts` | `dist/bpmn/bpmn-sdk.d.ts:2122-2123` |
@@ -886,7 +886,7 @@ not find it either.
886
886
  | `onTimer` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3865-3873` |
887
887
  | `onTimer` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3874-3882` |
888
888
  | `openTails` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:809-814` |
889
- | `openTails` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1633-1672` |
889
+ | `openTails` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1644-1683` |
890
890
  | `operation` | property | `Aggregation` | `dist/nodes/transform/flow/spec.d.ts:37` |
891
891
  | `operation` | property | `CarriedConnectorOperation` | `dist/core/carried-connector-operation.d.ts:62-63` |
892
892
  | `operation` | property | `ConnectorToolRef` | `dist/core/actions.d.ts:691-692` |
@@ -908,7 +908,7 @@ not find it either.
908
908
  | `outcomes` | property | `HumanTaskForm` | `dist/bpmn/human-task-form.d.ts:87-91` |
909
909
  | `outcomes` | property | `PlatformActionSchema` | `dist/nodes/hitl/flow/spec.d.ts:313-314` |
910
910
  | `output` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2083-2091` |
911
- | `output` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1686-1721` |
911
+ | `output` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1697-1732` |
912
912
  | `output` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:97` |
913
913
  | `output` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3629-3637` |
914
914
  | `outputColumns` | property | `BatchTransformInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:50-54` |
@@ -950,7 +950,7 @@ not find it either.
950
950
  | `pageRange` | property | `DynamicExtractInputs` | `dist/nodes/document/flow/spec.d.ts:94-95` |
951
951
  | `pageRange` | property | `IxpExtractInputs` | `dist/nodes/document/flow/spec.d.ts:205-206` |
952
952
  | `parallel` | property | `LoopOptions` | `dist/flow-sdk.d.ts:451-452` |
953
- | `parallel` | method | `StepList` | `dist/flow-sdk.d.ts:1093-1135` |
953
+ | `parallel` | method | `StepList` | `dist/flow-sdk.d.ts:1104-1146` |
954
954
  | `parallelGateway` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2655-2664` |
955
955
  | `parameters` | property | `ConnectorEventOpts` | `dist/bpmn/bpmn-sdk.d.ts:1818-1819` |
956
956
  | `parameters` | property | `HttpOpts` | `dist/bpmn/bpmn-sdk.d.ts:1413-1414` |
@@ -1088,7 +1088,7 @@ not find it either.
1088
1088
  | `retryBackoff` | property | `TaskRetryPolicy` | `dist/case/case-sdk.d.ts:957-958` |
1089
1089
  | `retryBackoffType` | property | `TaskRetryPolicy` | `dist/case/case-sdk.d.ts:965-966` |
1090
1090
  | `retryCount` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:119-133` |
1091
- | `return` | method | `StepList` | `dist/flow-sdk.d.ts:1303-1312` |
1091
+ | `return` | method | `StepList` | `dist/flow-sdk.d.ts:1314-1323` |
1092
1092
  | `returnCitations` | property | `SummarizeInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:35-40` |
1093
1093
  | `returns` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:617-640` |
1094
1094
  | `returns` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:219-235` |
@@ -1132,7 +1132,7 @@ not find it either.
1132
1132
  | `schemaVersion` | method | `BpmnBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3956-3985` |
1133
1133
  | `schemaVersion` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:774-780` |
1134
1134
  | `schemaVersion` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1935-1964` |
1135
- | `schemaVersion` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1552-1591` |
1135
+ | `schemaVersion` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1563-1602` |
1136
1136
  | `scope` | property | `EscalationRecipient` | `dist/case/case-sdk.d.ts:188` |
1137
1137
  | `scopes` | property | `GuardrailSelector` | `dist/core/actions.d.ts:327` |
1138
1138
  | `script` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:1035-1036` |
@@ -1219,11 +1219,11 @@ not find it either.
1219
1219
  | `steps` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:784` |
1220
1220
  | `steps` | property | `StepList` | `dist/flow-sdk.d.ts:818` |
1221
1221
  | `stepSwitch` | method | `StepList` | `dist/flow-sdk.d.ts:861-903` |
1222
- | `stepToList` | method | `StepList` | `dist/flow-sdk.d.ts:980-1019` |
1223
- | `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1237-1281` |
1224
- | `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1282-1302` |
1222
+ | `stepToList` | method | `StepList` | `dist/flow-sdk.d.ts:984-1030` |
1223
+ | `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1248-1292` |
1224
+ | `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1293-1313` |
1225
1225
  | `stickyNotes` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:792-793` |
1226
- | `stickyNotes` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1402-1427` |
1226
+ | `stickyNotes` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1413-1438` |
1227
1227
  | `storageBucket` | property | `DocValidationInputs` | `dist/nodes/hitl/flow/spec.d.ts:88-89` |
1228
1228
  | `strategy` | property | `LookupSpec` | `dist/core/lookups.d.ts:33` |
1229
1229
  | `style` | property | `CaseNodeLayout` | `dist/case/case-sdk.d.ts:1162-1163` |
@@ -1236,7 +1236,7 @@ not find it either.
1236
1236
  | `subType` | property | `VarSpec` | `dist/flow-sdk.d.ts:96-97` |
1237
1237
  | `summarize` | property | `FlowActionSpecs` | `dist/nodes/ai-patterns/flow/spec.d.ts:60-63` |
1238
1238
  | `summary` | property | `CaseAppConfig` | `dist/case/case-sdk.d.ts:1144-1145` |
1239
- | `switch` | method | `StepList` | `dist/flow-sdk.d.ts:1050-1092` |
1239
+ | `switch` | method | `StepList` | `dist/flow-sdk.d.ts:1061-1103` |
1240
1240
  | `systemPrompt` | property | `ConversationalAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:57-62` |
1241
1241
  | `systemPrompt` | property | `InlineAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:194-243` |
1242
1242
  | `systemPrompt` | property | `VoiceAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:151-156` |
@@ -1262,7 +1262,7 @@ not find it either.
1262
1262
  | `temperature` | property | `InlineAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:304-305` |
1263
1263
  | `temperature` | property | `VoiceSettings` | `dist/nodes/agent/flow/spec.d.ts:138-139` |
1264
1264
  | `terminate` | property | `EndOpts` | `dist/bpmn/bpmn-sdk.d.ts:915-916` |
1265
- | `terminate` | method | `StepList` | `dist/flow-sdk.d.ts:1198-1236` |
1265
+ | `terminate` | method | `StepList` | `dist/flow-sdk.d.ts:1209-1247` |
1266
1266
  | `threshold` | property | `ContextIndexRef` | `dist/core/actions.d.ts:949-950` |
1267
1267
  | `timeCycle` | property | `BuiltTrigger` | `dist/case/case-sdk.d.ts:286-287` |
1268
1268
  | `timeout` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:92-118` |
@@ -1287,11 +1287,11 @@ not find it either.
1287
1287
  | `trigger` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:785-787` |
1288
1288
  | `trigger` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2125-2133` |
1289
1289
  | `trigger` | property | `EscalationOpts` | `dist/case/case-sdk.d.ts:195-196` |
1290
- | `trigger` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1428-1448` |
1290
+ | `trigger` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1439-1459` |
1291
1291
  | `trigger` | property | `StartOpts` | `dist/bpmn/bpmn-sdk.d.ts:836-883` |
1292
1292
  | `triggeredByEvent` | property | `SubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:1233-1234` |
1293
1293
  | `triggerId` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:802-808` |
1294
- | `triggerId` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1518-1537` |
1294
+ | `triggerId` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1529-1548` |
1295
1295
  | `triggerOptions` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:788-789` |
1296
1296
  | `triggers` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1234-1235` |
1297
1297
  | `triggers` | property | `CaseLayout` | `dist/case/case-sdk.d.ts:1185-1186` |
@@ -1365,7 +1365,7 @@ not find it either.
1365
1365
  | `value` | property | `TypedInputRow` | `dist/bpmn/typed-node.d.ts:250-251` |
1366
1366
  | `values` | property | `DataFabricCreateInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:143-148` |
1367
1367
  | `var` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2092-2124` |
1368
- | `var` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1722-1731` |
1368
+ | `var` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1733-1742` |
1369
1369
  | `var` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3592-3600` |
1370
1370
  | `var` | property | `TaskOutputBinding` | `dist/case/case-sdk.d.ts:1004-1005` |
1371
1371
  | `var` | property | `TypedOutputRow` | `dist/bpmn/typed-node.d.ts:296-297` |
@@ -1392,7 +1392,7 @@ not find it either.
1392
1392
  | `version` | property | `ConnectorToolRef` | `dist/core/actions.d.ts:693-694` |
1393
1393
  | `version` | property | `EventSubscription` | `dist/core/actions.d.ts:1259` |
1394
1394
  | `version` | property | `ExternalTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1869-1870` |
1395
- | `version` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1538-1551` |
1395
+ | `version` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1549-1562` |
1396
1396
  | `version` | property | `NodeOptions` | `dist/flow-sdk.d.ts:256-263` |
1397
1397
  | `version` | property | `TriggerMeta` | `dist/core/connectors.d.ts:139` |
1398
1398
  | `version` | property | `TriggerOptions` | `dist/core/actions.d.ts:1216-1217` |
package/dist/check.js CHANGED
@@ -849,8 +849,8 @@ function checkFlow(built, ancestors, opts = {}) {
849
849
  if (exit !== undefined && seenExit.has(exit.port)) {
850
850
  diags.push({
851
851
  level: 'error', code: 'STEP_SWITCH_EXIT_DUP', step: s0.name,
852
- message: `.stepSwitch("${s0.name}") has two arms for ${JSON.stringify(c.value)}. A port takes `
853
- + `exactly one outgoing edge, so put everything that exit needs in one arm.`,
852
+ message: `.stepSwitch("${s0.name}") has two arms for ${JSON.stringify(c.value)}. Each value has one `
853
+ + `exit port and one arm, so put everything that exit needs in one arm.`,
854
854
  });
855
855
  }
856
856
  else if (exit !== undefined) {
package/dist/decompile.js CHANGED
@@ -1810,7 +1810,9 @@ function forkRegion(edges, stop, scope, ipdom, ctx, refInto, fromTrigger = false
1810
1810
  // A trigger's arms that never meet, not every one of them ending: a side
1811
1811
  // list off the trigger's port, before any step, then the walk goes on down
1812
1812
  // the last arm (#2254) — the trigger twin of `sideListFanOut`.
1813
- const sides = fromTrigger && stopBehind === undefined ? sideListArms(edges, stop, scope, ctx, ipdom, refInto) : undefined;
1813
+ // A Terminate behind a step only rules out the `.parallel` fold (an arm
1814
+ // there must start with it, TERMINATE_NOT_ARM_HEAD); a side list may end in one.
1815
+ const sides = fromTrigger ? sideListArms(edges, stop, scope, ctx, ipdom, refInto) : undefined;
1814
1816
  if (sides) {
1815
1817
  ctx.graph.accounted.add(sides.main);
1816
1818
  return [...sides.segs, ...region(sides.main.targetNodeId, stop, scope, ipdom, ctx, refInto)];
@@ -2498,8 +2500,9 @@ function region(cursor, stop, scope, ipdom, ctx, refInto) {
2498
2500
  flagDropped(node, ctx, segs);
2499
2501
  return segs;
2500
2502
  }
2501
- // Arms that never meet, not every one of them ending: side lists off the one port.
2502
- const sides = stopBehind === undefined ? sideListFanOut(node, stop, scope, ctx, ipdom, refInto) : undefined;
2503
+ // Arms that never meet and do not fold to a `.parallel`: side lists off the one port.
2504
+ // A Terminate behind a step rules out only the `.parallel` fold above.
2505
+ const sides = sideListFanOut(node, stop, scope, ctx, ipdom, refInto);
2503
2506
  if (sides) {
2504
2507
  segs.push(...sides.segs);
2505
2508
  cursor = sides.cursor;
@@ -2538,8 +2541,10 @@ function region(cursor, stop, scope, ipdom, ctx, refInto) {
2538
2541
  * does reach a step of the last arm's path ends in `.stepToRef(...)`, the edge
2539
2542
  * the file has.
2540
2543
  *
2541
- * `undefined`, so the caller keeps its marker, when the port has more than two
2542
- * edges (a port takes one side list), when the edges leave more than one port, from a human task (whose ports a side list may not rewire), when
2544
+ * Three or more arms are as many side lists, every one but the last.
2545
+ *
2546
+ * `undefined`, so the caller keeps its marker, when the edges leave more than
2547
+ * one port, from a human task (whose ports a side list may not rewire), when
2543
2548
  * an arm goes straight into the enclosing loop's handle, or when an arm would
2544
2549
  * walk past the region's `stop` the last arm does not reach (the enclosing
2545
2550
  * construct emits that node).
@@ -2558,13 +2563,14 @@ function sideListFanOut(node, stop, scope, ctx, ipdom, refInto) {
2558
2563
  * fan-out (`sideListFanOut`) and a trigger's (`forkRegion`, #2254), where the
2559
2564
  * side list comes before any step and leaves the trigger.
2560
2565
  *
2561
- * `undefined` when there are not exactly two edges (a port takes one side list,
2562
- * PORT_ALREADY_ROUTED, so a third arm has nowhere to go), when they leave more
2563
- * than one port, when an arm goes straight into the enclosing loop's handle, or
2566
+ * Any number of arms: a port takes as many side lists as its definition allows
2567
+ * edges, and a forward port (`success`, a trigger's `output`) sets no limit.
2568
+ *
2569
+ * `undefined` when there is one edge, when they leave more than one port, when an arm goes straight into the enclosing loop's handle, or
2564
2570
  * when an arm would walk past the region's `stop` the last arm does not reach.
2565
2571
  */
2566
2572
  function sideListArms(edges, stop, scope, ctx, ipdom, refInto) {
2567
- if (edges.length !== 2)
2573
+ if (edges.length < 2)
2568
2574
  return undefined;
2569
2575
  const port = edges[0].sourcePort;
2570
2576
  if (edges.some((e) => e.sourcePort !== port))
@@ -2587,6 +2593,9 @@ function sideListArms(edges, stop, scope, ctx, ipdom, refInto) {
2587
2593
  if (body.length === 0)
2588
2594
  return undefined;
2589
2595
  segs.push(`.stepToList(${tsLiteral(port)}, ${armCb('p', body)})`);
2596
+ // A later arm that reaches a step this one printed hands control to it by name.
2597
+ for (const n of forwardReach([e.targetNodeId], scope, ctx.graph))
2598
+ into.add(n);
2590
2599
  }
2591
2600
  return { segs, main };
2592
2601
  }
@@ -970,12 +970,16 @@ declare class StepList {
970
970
  * guards, so `steps.at(-1)` would refuse a second port-edge on the same step —
971
971
  * and would attach `.stepToRef('error', …)` to the wrong thing.
972
972
  *
973
- * A port takes exactly one outgoing edge (the definitions say so:
974
- * `maxConnections: 1`), so a second edge from the same port is refused here
975
- * rather than emitted and silently dropped downstream.
973
+ * The `error` port takes exactly one outgoing edge (every definition that
974
+ * declares it says so: `maxConnections: 1`), so a second handler on it is
975
+ * refused here, where the author wrote it. Any other port takes as many side
976
+ * lists as its definition allows edges — a forward port (`success`, a
977
+ * trigger's `output`) sets no limit, so the canvas can draw several edges
978
+ * from it (#2254). Serialize checks every port against its definition's
979
+ * `maxConnections` (`assertPortConnectionLimits`).
976
980
  */
977
981
  private portSource;
978
- /** PORT_ALREADY_ROUTED when one of the `attached` side exits already leaves `port` of `owner`. */
982
+ /** PORT_ALREADY_ROUTED when one of the `attached` side exits already leaves the `error` port of `owner`. */
979
983
  private refuseTaken;
980
984
  /**
981
985
  * Run a step list from a named PORT of the step this follows — the general form
@@ -1010,6 +1014,13 @@ declare class StepList {
1010
1014
  * .step('right', script({ … })) // start -> right
1011
1015
  * ```
1012
1016
  *
1017
+ * A second `.stepToList()` on the same port adds a second path; it does not
1018
+ * replace or extend the first. A forward port (`success`, a trigger's `output`)
1019
+ * takes any number: two calls on `'success'` followed by `.step('next', …)`
1020
+ * compile to three edges out of the step, three paths that run in parallel. To run
1021
+ * steps one after another on one path, chain them inside ONE body. The `error`
1022
+ * port takes one edge: a second list on it is refused (PORT_ALREADY_ROUTED).
1023
+ *
1013
1024
  * @param port - The port of the preceding step to leave from, e.g. `'error'`
1014
1025
  * (`'output'`, the trigger's, when no step precedes it).
1015
1026
  * @param bodyFn - Receives a sub-builder for the path that port leads to.
package/dist/flow-sdk.js CHANGED
@@ -422,9 +422,13 @@ class StepList {
422
422
  * guards, so `steps.at(-1)` would refuse a second port-edge on the same step —
423
423
  * and would attach `.stepToRef('error', …)` to the wrong thing.
424
424
  *
425
- * A port takes exactly one outgoing edge (the definitions say so:
426
- * `maxConnections: 1`), so a second edge from the same port is refused here
427
- * rather than emitted and silently dropped downstream.
425
+ * The `error` port takes exactly one outgoing edge (every definition that
426
+ * declares it says so: `maxConnections: 1`), so a second handler on it is
427
+ * refused here, where the author wrote it. Any other port takes as many side
428
+ * lists as its definition allows edges — a forward port (`success`, a
429
+ * trigger's `output`) sets no limit, so the canvas can draw several edges
430
+ * from it (#2254). Serialize checks every port against its definition's
431
+ * `maxConnections` (`assertPortConnectionLimits`).
428
432
  */
429
433
  portSource(port, called) {
430
434
  let i = this.steps.length - 1;
@@ -464,11 +468,13 @@ class StepList {
464
468
  this.refuseTaken(attached, port, called, owner);
465
469
  return { name: source.name, owner };
466
470
  }
467
- /** PORT_ALREADY_ROUTED when one of the `attached` side exits already leaves `port` of `owner`. */
471
+ /** PORT_ALREADY_ROUTED when one of the `attached` side exits already leaves the `error` port of `owner`. */
468
472
  refuseTaken(attached, port, called, owner) {
473
+ if (port !== 'error')
474
+ return;
469
475
  const taken = attached.some((s) => (s.kind === 'stepToList' || s.kind === 'stepToRef') && s.port === port);
470
476
  if (taken) {
471
- throw new CompileRefusal('PORT_ALREADY_ROUTED', `${called} is already set on ${owner}'s "${port}" port. A port takes exactly ONE outgoing edge `
477
+ throw new CompileRefusal('PORT_ALREADY_ROUTED', `${called} is already set on ${owner}'s "${port}" port. The error port takes exactly ONE outgoing edge `
472
478
  + `(the definition says so: maxConnections: 1), so put everything that path needs in one place.`);
473
479
  }
474
480
  }
@@ -505,6 +511,13 @@ class StepList {
505
511
  * .step('right', script({ … })) // start -> right
506
512
  * ```
507
513
  *
514
+ * A second `.stepToList()` on the same port adds a second path; it does not
515
+ * replace or extend the first. A forward port (`success`, a trigger's `output`)
516
+ * takes any number: two calls on `'success'` followed by `.step('next', …)`
517
+ * compile to three edges out of the step, three paths that run in parallel. To run
518
+ * steps one after another on one path, chain them inside ONE body. The `error`
519
+ * port takes one edge: a second list on it is refused (PORT_ALREADY_ROUTED).
520
+ *
508
521
  * @param port - The port of the preceding step to leave from, e.g. `'error'`
509
522
  * (`'output'`, the trigger's, when no step precedes it).
510
523
  * @param bodyFn - Receives a sub-builder for the path that port leads to.
@@ -0,0 +1,18 @@
1
+ import type { MergeFinding } from './merge-roundtrip.js';
2
+ import type { AnyNode } from './edit-scope.js';
3
+ /** The key the Schema Editor parks an unsaved draft under (flow-schema `IXP_SCHEMA_EDITOR_DRAFT_EXTENSION`). */
4
+ export declare const SCHEMA_EDITOR_DRAFT_KEY = "x-uipath-schema-editor-draft";
5
+ /** The problems the editor found in that draft (flow-schema `IXP_SCHEMA_EDITOR_ISSUES_EXTENSION`). */
6
+ export declare const SCHEMA_EDITOR_ISSUES_KEY = "x-uipath-schema-editor-issues";
7
+ /**
8
+ * Check every merged Extract document node against the original node of the
9
+ * same id: `refused` for one whose draft the merge would overwrite, `discarded`
10
+ * (a report, never refusing) for one whose draft the source dropped. MUTATES a
11
+ * discarded node: its leftover issues key goes with the draft.
12
+ */
13
+ export declare function extractDraftFindings(originalNodes: readonly AnyNode[], mergedNodes: readonly AnyNode[],
14
+ /** The baseline's nodes, root and subflows; `undefined` for a two-way merge. */
15
+ baselineNodes?: readonly AnyNode[]): {
16
+ refused: MergeFinding[];
17
+ discarded: MergeFinding[];
18
+ };
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Merge and an Extract document node's unsaved Schema Editor draft.
3
+ *
4
+ * Short version: when someone leaves an editing session in the Studio Web Schema
5
+ * Editor that is not valid yet, the designer parks their unfinished taxonomy on
6
+ * the node, beside the saved one:
7
+ *
8
+ * ```json
9
+ * "schemaDocument": {
10
+ * "prompt": "...", "outputSchema": { ... },
11
+ * "x-uipath-schema-editor-draft": { "prompt": "...", "outputSchema": { ... } },
12
+ * "x-uipath-schema-editor-issues": [{ "message": "Field \"PO Number\" ... has no instructions." }]
13
+ * }
14
+ * ```
15
+ *
16
+ * That draft is a person's work. An older `uip`'s `nodes schema set` refused to
17
+ * write such a node unless told `--discard-draft`. Decompile carries the whole
18
+ * document into `dynamicExtract({ schema })`, so before this the SDK route let an
19
+ * edit to the saved taxonomy land beside a draft that no longer matched it, with
20
+ * nothing refusing. The same rule, at merge:
21
+ *
22
+ * - The merged node still carries the draft, and its schema document differs
23
+ * from the original's in any way (the saved taxonomy or the draft itself):
24
+ * refused in every mode, nothing written.
25
+ * - The source dropped the draft key, and the baseline (the decompile the author
26
+ * started from) carries it: the author saw the draft and discarded it, the
27
+ * SDK route's discard. Merge writes the edit, removes the leftover issues
28
+ * key with the draft, and reports the discard. With no baseline, or one
29
+ * without the draft, the source may never have held it (one compiled from a
30
+ * hand-written file), so a missing key is no discard: the edit is refused as
31
+ * above. (The object merge already keeps the original's key there, since
32
+ * no baseline says it was removed; this check does not lean on that.)
33
+ * - The edit removed the node's inline schema document (a published model in
34
+ * its place): refused, with its own message, since the draft lives in it.
35
+ *
36
+ * A node the edit did not touch keeps its draft as the original has it.
37
+ */
38
+ import { isRecord } from './core/node-envelope.js';
39
+ import { DYNAMIC_EXTRACT_TYPE } from './nodes/document/flow/family.js';
40
+ /** The key the Schema Editor parks an unsaved draft under (flow-schema `IXP_SCHEMA_EDITOR_DRAFT_EXTENSION`). */
41
+ export const SCHEMA_EDITOR_DRAFT_KEY = 'x-uipath-schema-editor-draft';
42
+ /** The problems the editor found in that draft (flow-schema `IXP_SCHEMA_EDITOR_ISSUES_EXTENSION`). */
43
+ export const SCHEMA_EDITOR_ISSUES_KEY = 'x-uipath-schema-editor-issues';
44
+ function schemaDocumentOf(node) {
45
+ const doc = isRecord(node?.inputs) ? node.inputs.schemaDocument : undefined;
46
+ return isRecord(doc) ? doc : undefined;
47
+ }
48
+ /** JSON text with object keys sorted, so key order alone is no change. */
49
+ function sortedJson(v) {
50
+ return JSON.stringify(v, (_k, value) => (isRecord(value) && !Array.isArray(value)
51
+ ? Object.fromEntries(Object.keys(value).sort().map((k) => [k, value[k]]))
52
+ : value));
53
+ }
54
+ /** The issue messages the editor left with the draft, for the refusal. */
55
+ function issueMessages(doc) {
56
+ const issues = doc[SCHEMA_EDITOR_ISSUES_KEY];
57
+ return Array.isArray(issues)
58
+ ? issues.flatMap((i) => (isRecord(i) && typeof i.message === 'string' && i.message.trim() !== '' ? [i.message.trim()] : []))
59
+ : [];
60
+ }
61
+ function issuesSuffix(doc) {
62
+ const issues = issueMessages(doc);
63
+ return issues.length > 0 ? ` The editor reported: ${issues.join(' ')}` : '';
64
+ }
65
+ /**
66
+ * Check every merged Extract document node against the original node of the
67
+ * same id: `refused` for one whose draft the merge would overwrite, `discarded`
68
+ * (a report, never refusing) for one whose draft the source dropped. MUTATES a
69
+ * discarded node: its leftover issues key goes with the draft.
70
+ */
71
+ export function extractDraftFindings(originalNodes, mergedNodes,
72
+ /** The baseline's nodes, root and subflows; `undefined` for a two-way merge. */
73
+ baselineNodes) {
74
+ const before = new Map(originalNodes.map((n) => [n.id, n]));
75
+ const base = new Map((baselineNodes ?? []).map((n) => [n.id, n]));
76
+ const refused = [];
77
+ const discarded = [];
78
+ for (const node of mergedNodes) {
79
+ if (node.type !== DYNAMIC_EXTRACT_TYPE)
80
+ continue;
81
+ const was = schemaDocumentOf(before.get(node.id));
82
+ if (was === undefined || !Object.hasOwn(was, SCHEMA_EDITOR_DRAFT_KEY))
83
+ continue;
84
+ const now = schemaDocumentOf(node);
85
+ if (now === undefined) {
86
+ refused.push({
87
+ kind: 'extract-draft', refuses: true,
88
+ message: `Extract document node "${node.id}" carries an unsaved Schema Editor draft (${SCHEMA_EDITOR_DRAFT_KEY}), `
89
+ + 'someone\'s unfinished work in Studio Web, and the edit removes the inline taxonomy (its schema document) '
90
+ + 'that holds the draft. Have the author finish or discard the draft in Studio Web first, then merge again.'
91
+ + issuesSuffix(was),
92
+ });
93
+ continue;
94
+ }
95
+ const sawDraft = Object.hasOwn(schemaDocumentOf(base.get(node.id)) ?? {}, SCHEMA_EDITOR_DRAFT_KEY);
96
+ if (sawDraft && !Object.hasOwn(now, SCHEMA_EDITOR_DRAFT_KEY)) {
97
+ delete now[SCHEMA_EDITOR_ISSUES_KEY];
98
+ discarded.push({
99
+ kind: 'extract-draft', refuses: false,
100
+ message: `Extract document node "${node.id}": the source dropped its unsaved Schema Editor draft `
101
+ + `(${SCHEMA_EDITOR_DRAFT_KEY}), so merge discarded it: deleting the draft key is the discard.`,
102
+ });
103
+ continue;
104
+ }
105
+ if (sortedJson(now) === sortedJson(was))
106
+ continue;
107
+ refused.push({
108
+ kind: 'extract-draft', refuses: true,
109
+ message: `Extract document node "${node.id}" carries an unsaved Schema Editor draft (${SCHEMA_EDITOR_DRAFT_KEY}), `
110
+ + 'someone\'s unfinished work in Studio Web, and the edit changes its schema document. Have the author finish '
111
+ + 'or discard the draft in Studio Web first. To throw the draft away, only when the user says so, delete the '
112
+ + `"${SCHEMA_EDITOR_DRAFT_KEY}" key from the step's schema in the source and merge again. `
113
+ + 'If no one can be asked, leave the node unchanged and report the draft.'
114
+ + issuesSuffix(was),
115
+ });
116
+ }
117
+ return { refused, discarded };
118
+ }
@@ -33,7 +33,7 @@ interface RtFlow {
33
33
  /** One difference, or one inconsistency in the merged file. */
34
34
  export interface MergeFinding {
35
35
  /** Which comparison found it. */
36
- kind: 'node-removed' | 'node-added' | 'node-type' | 'implicit-end' | 'edge-handle-renamed' | 'edge-rewired' | 'edge-removed' | 'edge-added' | 'handle-ids' | 'binding-removed' | 'binding-added' | 'variable-added' | 'variable-changed' | 'undeclared-handle' | 'duplicate-binding' | 'agent-sidecar' | 'agent-storage' | 'agent-prompt-input' | 'agent-embedded-edit' | 'outputs-superseded' | 'entry-point-repaired';
36
+ kind: 'node-removed' | 'node-added' | 'node-type' | 'implicit-end' | 'edge-handle-renamed' | 'edge-rewired' | 'edge-removed' | 'edge-added' | 'handle-ids' | 'binding-removed' | 'binding-added' | 'variable-added' | 'variable-changed' | 'undeclared-handle' | 'duplicate-binding' | 'agent-sidecar' | 'agent-storage' | 'agent-prompt-input' | 'agent-embedded-edit' | 'outputs-superseded' | 'entry-point-repaired' | 'extract-draft';
37
37
  /** The finding, phrased for the author, naming the node, edge or row. */
38
38
  message: string;
39
39
  /**
package/dist/merge.js CHANGED
@@ -108,6 +108,7 @@ import { mergeObject, mergeVariables, stableJson, withoutReturnRespellings } fro
108
108
  import { keepProcessInputReads } from './merge-process-inputs.js';
109
109
  import { replaceSupersededOutputs } from './merge-superseded-outputs.js';
110
110
  import { restoredConnectionMessage, withOriginalConnectionLabels } from './merge-baseline-connections.js';
111
+ import { extractDraftFindings } from './merge-extract-draft.js';
111
112
  import { byId, isKept, nodeUnchanged, subflowsTakenFromEdited } from './edit-scope.js';
112
113
  export { MergeRefusedError } from './merge-roundtrip.js';
113
114
  /**
@@ -403,8 +404,8 @@ function positionStoreOf(f) {
403
404
  }
404
405
  export function mergeFlow(original, edited, options = {}) {
405
406
  options = withFaithfulBaseline(original, options);
406
- const { result, findings, agentFindings } = mergeFlowFindings(original, edited, options);
407
- reportOrRefuse([...findings, ...agentFindings()], options);
407
+ const { result, findings, agentFindings, draftRefusals } = mergeFlowFindings(original, edited, options);
408
+ reportOrRefuse([...findings, ...agentFindings()], options, draftRefusals);
408
409
  return result;
409
410
  }
410
411
  /**
@@ -419,11 +420,11 @@ export function mergeFlow(original, edited, options = {}) {
419
420
  */
420
421
  export function mergeFlowWithSidecars(original, edited, sidecars, options = {}) {
421
422
  options = withFaithfulBaseline(original, options);
422
- const { result, findings, agentFindings } = mergeFlowFindings(original, edited, options);
423
+ const { result, findings, agentFindings, draftRefusals } = mergeFlowFindings(original, edited, options);
423
424
  const carried = mergeAgentSidecars(result, sidecars, { original, baseline: options.baseline, edited });
424
425
  // After the carry: what it wrote onto an embedded node is the author's.
425
426
  const authored = new Map(carried.onNodes.map((c) => [c.node, c.inputs]));
426
- reportOrRefuse([...findings, ...agentFindings(authored), ...carried.findings], options, carried.missing);
427
+ reportOrRefuse([...findings, ...agentFindings(authored), ...carried.findings], options, [...carried.missing, ...draftRefusals]);
427
428
  return {
428
429
  flow: result,
429
430
  sidecars: carried.writes,
@@ -447,7 +448,11 @@ function withFaithfulBaseline(original, options) {
447
448
  options.warn?.(message);
448
449
  return { ...options, baseline };
449
450
  }
450
- /** Refused with or without `strict`: merging would replace the project's `agent.json`. */
451
+ /**
452
+ * Refused with or without `strict`: merging would replace the project's
453
+ * `agent.json`, or change the taxonomy of an Extract document node that holds
454
+ * someone's unsaved Schema Editor draft (merge-extract-draft.ts).
455
+ */
451
456
  class SidecarOverwriteError extends MergeRefusedError {
452
457
  constructor(findings) {
453
458
  super(findings);
@@ -456,7 +461,8 @@ class SidecarOverwriteError extends MergeRefusedError {
456
461
  }
457
462
  /**
458
463
  * Warn every finding; under `strict`, throw over the refusing ones (and still
459
- * warn the rest). `overwrites` refuse in every mode.
464
+ * warn the rest). `overwrites` refuse in every mode: an `agent.json` replaced,
465
+ * an Extract document draft overwritten.
460
466
  */
461
467
  function reportOrRefuse(findings, options, overwrites = []) {
462
468
  const refusing = options.strict ? findings.filter((f) => f.refuses) : [];
@@ -670,7 +676,14 @@ function mergeFlowFindings(original, edited, options) {
670
676
  const superseded = replaceSupersededOutputs(result, edited);
671
677
  // ── What the no-edit round trip changed, and what mixing sources broke. ──
672
678
  // The caller warns them, or refuses under strict (`reportOrRefuse`).
679
+ // ── Extract document drafts: an edit to a taxonomy someone left an unsaved
680
+ // Schema Editor draft on is refused; dropping the draft discards it. ──
681
+ const drafts = extractDraftFindings(originalNodes, allNodes, options.baseline && [
682
+ ...(options.baseline.nodes ?? []),
683
+ ...Object.values(options.baseline.subflows ?? {}).flatMap((sf) => sf?.nodes ?? []),
684
+ ]);
673
685
  const findings = [
686
+ ...drafts.discarded,
674
687
  ...superseded.findings,
675
688
  ...(options.baseline ? roundTripFindings(original, options.baseline, result, superseded.rootVariables) : []),
676
689
  ...entryPointRepairs,
@@ -685,7 +698,7 @@ function mergeFlowFindings(original, edited, options) {
685
698
  edited: subflowEdited.get(key) ?? new Set(),
686
699
  })),
687
700
  ], authored);
688
- return { result, findings, agentFindings };
701
+ return { result, findings, agentFindings, draftRefusals: drafts.refused };
689
702
  }
690
703
  /**
691
704
  * Replace a non-GUID root `entryPointId` with the edited compile's GUID: publish
@@ -6,4 +6,4 @@ export declare const documentFlowFamily: FlowNodeFamily;
6
6
  * The IDP processor rules, for `compile` (`idp-processor-files.ts`) and
7
7
  * `bindings_v2.json`: pure, and not part of the public surface.
8
8
  */
9
- export { buildIdpProcessorSpec, collectWorkflowNodes, DEFAULT_IDP_PROCESSOR_NAME, deriveIdpProcessorName, idpProcessorBindingRows, idpProcessorResourcePath, isIdpProcessorResource, isPublishedIdpProcessorLink, readAuthoringProcessorKey, readIdpProcessorName, readNodeLabel, updateIdpProcessorResource, withIdpProcessorRows, wrapIdpProcessorSpec, type IdpProcessorBindingRow, type WorkflowNodeLike, } from './idp-processor.js';
9
+ export { buildIdpProcessorSpec, collectWorkflowNodes, DEFAULT_IDP_PROCESSOR_NAME, deriveIdpProcessorName, DYNAMIC_EXTRACT_TYPE, idpProcessorBindingRows, idpProcessorResourcePath, isIdpProcessorResource, isPublishedIdpProcessorLink, readAuthoringProcessorKey, readIdpProcessorName, readNodeLabel, updateIdpProcessorResource, withIdpProcessorRows, wrapIdpProcessorSpec, type IdpProcessorBindingRow, type WorkflowNodeLike, } from './idp-processor.js';
@@ -11,4 +11,4 @@ export const documentFlowFamily = {
11
11
  * The IDP processor rules, for `compile` (`idp-processor-files.ts`) and
12
12
  * `bindings_v2.json`: pure, and not part of the public surface.
13
13
  */
14
- export { buildIdpProcessorSpec, collectWorkflowNodes, DEFAULT_IDP_PROCESSOR_NAME, deriveIdpProcessorName, idpProcessorBindingRows, idpProcessorResourcePath, isIdpProcessorResource, isPublishedIdpProcessorLink, readAuthoringProcessorKey, readIdpProcessorName, readNodeLabel, updateIdpProcessorResource, withIdpProcessorRows, wrapIdpProcessorSpec, } from './idp-processor.js';
14
+ export { buildIdpProcessorSpec, collectWorkflowNodes, DEFAULT_IDP_PROCESSOR_NAME, deriveIdpProcessorName, DYNAMIC_EXTRACT_TYPE, idpProcessorBindingRows, idpProcessorResourcePath, isIdpProcessorResource, isPublishedIdpProcessorLink, readAuthoringProcessorKey, readIdpProcessorName, readNodeLabel, updateIdpProcessorResource, withIdpProcessorRows, wrapIdpProcessorSpec, } from './idp-processor.js';
@@ -301,6 +301,19 @@ export declare function serializeForCheck(built: BuiltFlow, opts?: SerializeOpts
301
301
  * @throws Error naming each node whose configuration Studio Web would show empty.
302
302
  */
303
303
  export declare function assertConnectorConfigurationRestorable(flow: any): void;
304
+ /**
305
+ * No port carries more edges than its definition's `constraints.maxConnections`
306
+ * allows — the rule `validate` and the canvas apply to a source handle.
307
+ *
308
+ * A port with no limit (a step's `success`, a trigger's `output`) takes any
309
+ * number of edges, which is how several `.stepToList()` side lists leave one
310
+ * port (#2254). The limit sits on the definition, so it is read there and not
311
+ * assumed per port name; the builder refuses the common case, a second
312
+ * `.onError()`, where the author wrote it.
313
+ *
314
+ * @throws CompileRefusal PORT_ALREADY_ROUTED naming each port over its limit.
315
+ */
316
+ export declare function assertPortConnectionLimits(flow: any): void;
304
317
  /**
305
318
  * Node ids and edge ids are each one namespace over the WHOLE file: the root
306
319
  * and every `subflows` entry. Pack flattens subflows into one BPMN document, so
package/dist/serialize.js CHANGED
@@ -3823,6 +3823,7 @@ function serializeFlow(built, opts, scopeLayout) {
3823
3823
  // each call site remembering it (flow-builder-sdk#865/#866).
3824
3824
  assertBindingPlaceholdersResolve(flow, unboundDrafts);
3825
3825
  assertFileWideIdsUnique(flow);
3826
+ assertPortConnectionLimits(flow);
3826
3827
  assertConnectorConfigurationRestorable(flow);
3827
3828
  connectionConnectors(flow, standInConnections);
3828
3829
  return flow;
@@ -3873,6 +3874,53 @@ export function assertConnectorConfigurationRestorable(flow) {
3873
3874
  + `save drops its bodyParameters (flow-builder-sdk#936). Emit { essentialConfiguration } only.`);
3874
3875
  }
3875
3876
  }
3877
+ /**
3878
+ * No port carries more edges than its definition's `constraints.maxConnections`
3879
+ * allows — the rule `validate` and the canvas apply to a source handle.
3880
+ *
3881
+ * A port with no limit (a step's `success`, a trigger's `output`) takes any
3882
+ * number of edges, which is how several `.stepToList()` side lists leave one
3883
+ * port (#2254). The limit sits on the definition, so it is read there and not
3884
+ * assumed per port name; the builder refuses the common case, a second
3885
+ * `.onError()`, where the author wrote it.
3886
+ *
3887
+ * @throws CompileRefusal PORT_ALREADY_ROUTED naming each port over its limit.
3888
+ */
3889
+ export function assertPortConnectionLimits(flow) {
3890
+ const defs = new Map();
3891
+ for (const d of Array.isArray(flow?.definitions) ? flow.definitions : [])
3892
+ defs.set(`${d?.nodeType}@${d?.version}`, d);
3893
+ const scopes = [flow, ...Object.values(flow?.subflows ?? {})];
3894
+ const over = [];
3895
+ for (const scope of scopes) {
3896
+ const nodes = new Map((Array.isArray(scope?.nodes) ? scope.nodes : []).map((n) => [n?.id, n]));
3897
+ const counts = new Map();
3898
+ for (const e of Array.isArray(scope?.edges) ? scope.edges : []) {
3899
+ const k = `${e?.sourceNodeId}\0${e?.sourcePort}`;
3900
+ counts.set(k, (counts.get(k) ?? 0) + 1);
3901
+ }
3902
+ for (const [k, count] of counts) {
3903
+ if (count < 2)
3904
+ continue;
3905
+ const [nodeId, port] = k.split('\0');
3906
+ const node = nodes.get(nodeId);
3907
+ const def = node ? defs.get(`${node.type}@${node.typeVersion}`) : undefined;
3908
+ let max;
3909
+ for (const g of Array.isArray(def?.handleConfiguration) ? def.handleConfiguration : []) {
3910
+ for (const h of Array.isArray(g?.handles) ? g.handles : []) {
3911
+ if (h?.type === 'source' && h.id === port && typeof h.constraints?.maxConnections === 'number')
3912
+ max = h.constraints.maxConnections;
3913
+ }
3914
+ }
3915
+ if (max !== undefined && count > max)
3916
+ over.push(`node "${nodeId}" port "${port}" has ${count} edges (its definition allows ${max})`);
3917
+ }
3918
+ }
3919
+ if (over.length) {
3920
+ throw new CompileRefusal('PORT_ALREADY_ROUTED', `a port carries more outgoing edges than its definition allows: ${over.join('; ')}. `
3921
+ + 'Put everything that path needs in one side list.');
3922
+ }
3923
+ }
3876
3924
  /**
3877
3925
  * Node ids and edge ids are each one namespace over the WHOLE file: the root
3878
3926
  * and every `subflows` entry. Pack flattens subflows into one BPMN document, so
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.124.11",
3
+ "version": "6.124.13",
4
4
  "description": "Build UiPath Flow, Case, and BPMN artifacts by writing TypeScript.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://docs.uipath.com/maestro",
@@ -128,5 +128,5 @@
128
128
  "@types/node": "^22.7.0",
129
129
  "esbuild": "^0.28.1"
130
130
  },
131
- "gitref": "0b448e1f428f388337994691c97be736a75984df"
131
+ "gitref": "b207ef69dc14bfd4031e662dc9ae5becc96a27c5"
132
132
  }