@uipath/maestro-builder-sdk 6.124.10 → 6.124.12

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:1301-1324` | 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:1314-1337` | 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:1729-1744` | Flow construction | Start building a flow with the given id. |
155
+ | `flow` | function | `dist/flow-sdk.d.ts:1742-1757` | 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:1325-1728` | Builders | 15 member(s) |
159
+ | `FlowBuilder` | class | `dist/flow-sdk.d.ts:1338-1741` | 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-1300` | Builders | Collects a sequence of steps. |
276
+ | `StepList` | class | `dist/flow-sdk.d.ts:816-1313` | 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:1745-1784` | Flow construction | Run another flow as one step, and read back what it returns. |
281
+ | `subflow` | function | `dist/flow-sdk.d.ts:1758-1797` | 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:1313` |
81
+ | `armLabel` | property | `ArmBuilder` | `dist/flow-sdk.d.ts:1326` |
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:1015-1036` |
118
+ | `branch` | method | `StepList` | `dist/flow-sdk.d.ts:1028-1049` |
119
119
  | `branches` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:25-30` |
120
- | `break` | method | `StepList` | `dist/flow-sdk.d.ts:1160-1169` |
120
+ | `break` | method | `StepList` | `dist/flow-sdk.d.ts:1173-1182` |
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:1719-1727` |
125
+ | `build` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1732-1740` |
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:1170-1184` |
210
+ | `continue` | method | `StepList` | `dist/flow-sdk.d.ts:1183-1197` |
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:1579-1619` |
254
+ | `definitions` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1592-1632` |
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:1351-1358` |
277
+ | `description` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1364-1371` |
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:1135-1159` |
327
+ | `doWhile` | method | `StepList` | `dist/flow-sdk.d.ts:1148-1172` |
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:1436-1504` |
361
+ | `entryPoint` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1449-1517` |
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:1660-1672` |
582
+ | `input` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1673-1685` |
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:1314-1323` |
676
+ | `label` | method | `ArmBuilder` | `dist/flow-sdk.d.ts:1327-1336` |
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:1359-1388` |
696
+ | `layout` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1372-1401` |
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:1123-1134` |
711
+ | `loop` | method | `StepList` | `dist/flow-sdk.d.ts:1136-1147` |
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:1343-1350` |
814
+ | `name` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1356-1363` |
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:1620-1659` |
889
+ | `openTails` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1633-1672` |
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:1673-1708` |
911
+ | `output` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1686-1721` |
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:1080-1122` |
953
+ | `parallel` | method | `StepList` | `dist/flow-sdk.d.ts:1093-1135` |
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:1290-1299` |
1091
+ | `return` | method | `StepList` | `dist/flow-sdk.d.ts:1303-1312` |
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:1539-1578` |
1135
+ | `schemaVersion` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1552-1591` |
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:978-1006` |
1223
- | `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1224-1268` |
1224
- | `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1269-1289` |
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` |
1225
1225
  | `stickyNotes` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:792-793` |
1226
- | `stickyNotes` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1389-1414` |
1226
+ | `stickyNotes` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1402-1427` |
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:1037-1079` |
1239
+ | `switch` | method | `StepList` | `dist/flow-sdk.d.ts:1050-1092` |
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:1185-1223` |
1265
+ | `terminate` | method | `StepList` | `dist/flow-sdk.d.ts:1198-1236` |
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:1415-1435` |
1290
+ | `trigger` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1428-1448` |
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:1505-1524` |
1294
+ | `triggerId` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1518-1537` |
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:1709-1718` |
1368
+ | `var` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1722-1731` |
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:1525-1538` |
1395
+ | `version` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1538-1551` |
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/decompile.js CHANGED
@@ -1779,13 +1779,17 @@ function commonPostDominator(targets, ipdom) {
1779
1779
  * (edge accounting, #1125): the fold recreates each one. A fork whose arms
1780
1780
  * never meet again and each end (`unjoinedFork`) is a `.parallel(...)` whose
1781
1781
  * arms all end, which serialize writes with no merge node (#1267); it folds the
1782
- * same way, and nothing follows it. Any other fork has no builder spelling.
1782
+ * same way, and nothing follows it. A fork that leaves a trigger
1783
+ * (`fromTrigger`: the flow's body and an entry point's prefix) and whose arms
1784
+ * never meet, not all of them ending, is a `.stepToList(<port>, …)` before any
1785
+ * step beside the path the walk continues on (#2254), as `sideListFanOut` spells
1786
+ * the same fan-out off a step's port. Any other fork has no builder spelling.
1783
1787
  * Like the same shape mid-flow (`region`), it throws under `bestEffort: false`,
1784
1788
  * and otherwise keeps the first arm behind a `TODO: unstructured fan-out`
1785
1789
  * marker. Only the kept first edge is accounted; the others are reported as
1786
1790
  * dropped at the marker.
1787
1791
  */
1788
- function forkRegion(edges, stop, scope, ipdom, ctx, refInto) {
1792
+ function forkRegion(edges, stop, scope, ipdom, ctx, refInto, fromTrigger = false) {
1789
1793
  if (edges.length <= 1)
1790
1794
  return edgeRegion(edges[0], stop, scope, ipdom, ctx, refInto);
1791
1795
  const targets = edges.map((e) => e.targetNodeId);
@@ -1803,6 +1807,14 @@ function forkRegion(edges, stop, scope, ipdom, ctx, refInto) {
1803
1807
  ctx.graph.accounted.add(e);
1804
1808
  return [parallelSeg(undefined, undefined, targets, scope, ipdom, ctx, refInto, undefined, edges[0].sourceNodeId).seg];
1805
1809
  }
1810
+ // A trigger's arms that never meet, not every one of them ending: a side
1811
+ // list off the trigger's port, before any step, then the walk goes on down
1812
+ // the last arm (#2254) — the trigger twin of `sideListFanOut`.
1813
+ const sides = fromTrigger && stopBehind === undefined ? sideListArms(edges, stop, scope, ctx, ipdom, refInto) : undefined;
1814
+ if (sides) {
1815
+ ctx.graph.accounted.add(sides.main);
1816
+ return [...sides.segs, ...region(sides.main.targetNodeId, stop, scope, ipdom, ctx, refInto)];
1817
+ }
1806
1818
  const why = stopBehind !== undefined ? terminateBehindStepWhy(stopBehind) : '';
1807
1819
  if (ctx.o.bestEffort === false)
1808
1820
  throw new Error(`decompile: unstructured fan-out (${edges.length} edges)${why}.`);
@@ -2534,12 +2546,28 @@ function region(cursor, stop, scope, ipdom, ctx, refInto) {
2534
2546
  */
2535
2547
  function sideListFanOut(node, stop, scope, ctx, ipdom, refInto) {
2536
2548
  const edges = scopeSuccEdges(ctx.graph, node.id, scope);
2537
- // Exactly two: a port takes one side list (PORT_ALREADY_ROUTED), so a third arm
2538
- // has nowhere to go and the fan-out keeps the marker.
2549
+ if (ctx.graph.primaryOutcomePort(node.id) !== undefined)
2550
+ return undefined;
2551
+ const sides = sideListArms(edges, stop, scope, ctx, ipdom, refInto);
2552
+ return sides && { segs: sides.segs, cursor: follow(ctx.graph, node.id, sides.main.targetNodeId) };
2553
+ }
2554
+ /**
2555
+ * The side lists of a fan-out off ONE port whose arms never meet: every edge but
2556
+ * the last as `.stepToList(<port>, …)` (each such edge accounted), and `main`,
2557
+ * the edge the walk continues down, which the caller accounts. Shared by a step's
2558
+ * fan-out (`sideListFanOut`) and a trigger's (`forkRegion`, #2254), where the
2559
+ * side list comes before any step and leaves the trigger.
2560
+ *
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
2564
+ * when an arm would walk past the region's `stop` the last arm does not reach.
2565
+ */
2566
+ function sideListArms(edges, stop, scope, ctx, ipdom, refInto) {
2539
2567
  if (edges.length !== 2)
2540
2568
  return undefined;
2541
2569
  const port = edges[0].sourcePort;
2542
- if (edges.some((e) => e.sourcePort !== port) || ctx.graph.primaryOutcomePort(node.id) !== undefined)
2570
+ if (edges.some((e) => e.sourcePort !== port))
2543
2571
  return undefined;
2544
2572
  const main = edges[edges.length - 1];
2545
2573
  const mainReach = forwardReach([main.targetNodeId], scope, ctx.graph);
@@ -2560,7 +2588,7 @@ function sideListFanOut(node, stop, scope, ctx, ipdom, refInto) {
2560
2588
  return undefined;
2561
2589
  segs.push(`.stepToList(${tsLiteral(port)}, ${armCb('p', body)})`);
2562
2590
  }
2563
- return { segs, cursor: follow(ctx.graph, node.id, main.targetNodeId) };
2591
+ return { segs, main };
2564
2592
  }
2565
2593
  /** A branch/switch node's arm labels (the designer edge text), when non-default. */
2566
2594
  function armLabels(node) {
@@ -3402,7 +3430,7 @@ export function decompile(flow, options = {}) {
3402
3430
  const ipdom = firsts.length
3403
3431
  ? postDominators(firsts.length > 1 ? startId : firsts[0].targetNodeId, scope, graph)
3404
3432
  : new Map();
3405
- const bodySegs = firsts.length ? forkRegion(firsts, EXIT, scope, ipdom, ctx) : [];
3433
+ const bodySegs = firsts.length ? forkRegion(firsts, EXIT, scope, ipdom, ctx, undefined, true) : [];
3406
3434
  // Additional roots decompile to .entryPoint(...): scoped inputs from the
3407
3435
  // globals bound to them, and a prefix region that hands off into the shared
3408
3436
  // body — the shared nodes are in ctx.emitted by now, so the walk naturally
@@ -3516,7 +3544,7 @@ function entryPointSeg(t, scope, ipdom, ctx, isDefault = false) {
3516
3544
  // A prefix that forks needs post-dominators over ITS nodes, which the root's
3517
3545
  // map (computed from the default trigger) does not cover.
3518
3546
  const epIpdom = firsts.length > 1 ? postDominators(t.id, scope, ctx.graph) : ipdom;
3519
- const prefixSegs = firsts.length ? forkRegion(firsts, EXIT, scope, epIpdom, ctx) : [];
3547
+ const prefixSegs = firsts.length ? forkRegion(firsts, EXIT, scope, epIpdom, ctx, undefined, true) : [];
3520
3548
  const optArgText = optParts.length ? `, { ${optParts.join(', ')} }` : (prefixSegs.length ? ', undefined' : '');
3521
3549
  const prefix = prefixSegs.length ? `, ${armCb('b', prefixSegs)}` : '';
3522
3550
  return `.entryPoint(${tsLiteral(t.id)}, ${factory}${optArgText}${prefix})`;
@@ -975,6 +975,8 @@ declare class StepList {
975
975
  * rather than emitted and silently dropped downstream.
976
976
  */
977
977
  private portSource;
978
+ /** PORT_ALREADY_ROUTED when one of the `attached` side exits already leaves `port` of `owner`. */
979
+ private refuseTaken;
978
980
  /**
979
981
  * Run a step list from a named PORT of the step this follows — the general form
980
982
  * of an error handler, and the reason `.onError()` needs no machinery of its own.
@@ -998,7 +1000,18 @@ declare class StepList {
998
1000
  * .step('parse', script({ … })) // ← still the SUCCESS path
999
1001
  * ```
1000
1002
  *
1001
- * @param port - The port of the preceding step to leave from, e.g. `'error'`.
1003
+ * Before any step of the flow body or of an `.entryPoint()` prefix, the body
1004
+ * leaves the TRIGGER's `'output'` port instead, beside the path the list goes
1005
+ * on with. That is a trigger with two edges to steps that never meet again:
1006
+ *
1007
+ * ```ts
1008
+ * flow('f').openTails().trigger(manual())
1009
+ * .stepToList('output', (p) => p.step('left', script({ … }))) // start -> left
1010
+ * .step('right', script({ … })) // start -> right
1011
+ * ```
1012
+ *
1013
+ * @param port - The port of the preceding step to leave from, e.g. `'error'`
1014
+ * (`'output'`, the trigger's, when no step precedes it).
1002
1015
  * @param bodyFn - Receives a sub-builder for the path that port leads to.
1003
1016
  * @returns This builder, so calls chain.
1004
1017
  * @see stepToRef
package/dist/flow-sdk.js CHANGED
@@ -221,6 +221,16 @@ export function dim(width, height) {
221
221
  */
222
222
  export const STICKY_NOTE_COLORS = ['yellow', 'pink', 'blue', 'green', 'white'];
223
223
  // ─── Builder ────────────────────────────────────────────────────────────────
224
+ /**
225
+ * The step lists that start at a trigger — the flow's own body and each
226
+ * `.entryPoint()` prefix — mapped to that trigger's port (`'output'`). Only on
227
+ * these may a `.stepToList()` come before any step: it then leaves the trigger,
228
+ * beside the path the list continues on, which is how a trigger with two edges
229
+ * to steps that never meet again is spelled (#2254). An arm or a loop body has
230
+ * no step before it to leave. Kept off the class so the public declarations do
231
+ * not grow a member nobody calls.
232
+ */
233
+ const TRIGGER_HEADED = new WeakMap();
224
234
  /** Collects a sequence of steps. Used for the flow body and each branch/loop arm. */
225
235
  class StepList {
226
236
  steps = [];
@@ -424,6 +434,18 @@ class StepList {
424
434
  i--;
425
435
  }
426
436
  const source = this.steps[i];
437
+ // At the head of a list that starts at a trigger, the edge leaves the
438
+ // trigger. A trigger has the one port, so any other port is refused.
439
+ const headPort = TRIGGER_HEADED.get(this);
440
+ if (!source && headPort !== undefined) {
441
+ if (port !== headPort) {
442
+ throw new CompileRefusal('PORT_NO_SOURCE_STEP', `${called} leaves a port of the step BEFORE it, and there is no previous step. Before any step only the trigger's `
443
+ + `${JSON.stringify(headPort)} port can be left: .stepToList(${JSON.stringify(headPort)}, (p) => …) starts a second path at the trigger. `
444
+ + `Otherwise put the step whose ${JSON.stringify(port)} port you mean first.`);
445
+ }
446
+ this.refuseTaken(attached, port, called, 'the trigger');
447
+ return { name: 'the trigger', owner: 'the trigger' };
448
+ }
427
449
  // A container (`.loop()` or `.doWhile()`) is a legal source for the error
428
450
  // port. Both definitions set `supportsErrorHandling: true`, and the platform
429
451
  // routes it: a body step throwing inside a measured run left the instance
@@ -438,12 +460,17 @@ class StepList {
438
460
  + ' — a branch, parallel, terminate or return has no port to leave from; a .loop() or .doWhile() has one '
439
461
  + "only for 'error'.");
440
462
  }
463
+ const owner = `step "${source.name}"`;
464
+ this.refuseTaken(attached, port, called, owner);
465
+ return { name: source.name, owner };
466
+ }
467
+ /** PORT_ALREADY_ROUTED when one of the `attached` side exits already leaves `port` of `owner`. */
468
+ refuseTaken(attached, port, called, owner) {
441
469
  const taken = attached.some((s) => (s.kind === 'stepToList' || s.kind === 'stepToRef') && s.port === port);
442
470
  if (taken) {
443
- throw new CompileRefusal('PORT_ALREADY_ROUTED', `${called} is already set on step "${source.name}"'s "${port}" port. A port takes exactly ONE outgoing edge `
471
+ throw new CompileRefusal('PORT_ALREADY_ROUTED', `${called} is already set on ${owner}'s "${port}" port. A port takes exactly ONE outgoing edge `
444
472
  + `(the definition says so: maxConnections: 1), so put everything that path needs in one place.`);
445
473
  }
446
- return source;
447
474
  }
448
475
  /**
449
476
  * Run a step list from a named PORT of the step this follows — the general form
@@ -468,7 +495,18 @@ class StepList {
468
495
  * .step('parse', script({ … })) // ← still the SUCCESS path
469
496
  * ```
470
497
  *
471
- * @param port - The port of the preceding step to leave from, e.g. `'error'`.
498
+ * Before any step of the flow body or of an `.entryPoint()` prefix, the body
499
+ * leaves the TRIGGER's `'output'` port instead, beside the path the list goes
500
+ * on with. That is a trigger with two edges to steps that never meet again:
501
+ *
502
+ * ```ts
503
+ * flow('f').openTails().trigger(manual())
504
+ * .stepToList('output', (p) => p.step('left', script({ … }))) // start -> left
505
+ * .step('right', script({ … })) // start -> right
506
+ * ```
507
+ *
508
+ * @param port - The port of the preceding step to leave from, e.g. `'error'`
509
+ * (`'output'`, the trigger's, when no step precedes it).
472
510
  * @param bodyFn - Receives a sub-builder for the path that port leads to.
473
511
  * @returns This builder, so calls chain.
474
512
  * @see stepToRef
@@ -493,7 +531,7 @@ class StepList {
493
531
  h.errorSource = prev.name;
494
532
  bodyFn?.(h);
495
533
  if (h.steps.length === 0) {
496
- throw new CompileRefusal('PORT_EMPTY_PATH', `${called} on step "${prev.name}" has an empty ${noun}. An edge to nothing is worse than none — `
534
+ throw new CompileRefusal('PORT_EMPTY_PATH', `${called} on ${prev.owner} has an empty ${noun}. An edge to nothing is worse than none — `
497
535
  + `the path still leaves the main flow. Return a value, terminate the run, or do the compensating work.`);
498
536
  }
499
537
  this.steps.push({ kind: 'stepToList', port, body: h.steps });
@@ -884,6 +922,7 @@ class FlowBuilder extends StepList {
884
922
  constructor(_id) {
885
923
  super();
886
924
  this._id = _id;
925
+ TRIGGER_HEADED.set(this, 'output');
887
926
  this._name = _id;
888
927
  }
889
928
  /**
@@ -1067,6 +1106,7 @@ class FlowBuilder extends StepList {
1067
1106
  inputs.push({ name, ...varDeclOf('input', name, value) });
1068
1107
  }
1069
1108
  const b = new StepList();
1109
+ TRIGGER_HEADED.set(b, 'output');
1070
1110
  prefixFn?.(b);
1071
1111
  // A key the options type does not name is kept as written, so the
1072
1112
  // serializer refuses it (FLOW_UNKNOWN_OPTION) instead of dropping it.
@@ -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';
package/dist/serialize.js CHANGED
@@ -3132,7 +3132,7 @@ function serializeFlow(built, opts, scopeLayout) {
3132
3132
  }
3133
3133
  }
3134
3134
  else if (step.kind === 'stepToList') {
3135
- tails = emitPortList(step, lastAction ?? '?', tails, scope, parentId, loopExits);
3135
+ tails = emitPortList(step, lastAction ?? tails[0]?.node ?? '?', tails, scope, parentId, loopExits);
3136
3136
  }
3137
3137
  else if (step.kind === 'stepSwitch') {
3138
3138
  // The action, then EVERY exit it declares as an arm — no tacit tail.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.124.10",
3
+ "version": "6.124.12",
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": "5ba9a721fe5e26bf932d29dabbf0f24862f6fd5a"
131
+ "gitref": "a60735460ba3ff5356cc66cdfa31151cdd83713f"
132
132
  }