@uipath/maestro-builder-sdk 6.108.0 → 6.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-index.md +10 -10
- package/dist/api-members.md +47 -47
- package/dist/check.js +2 -2
- package/dist/core/nodes/node-type.d.ts +12 -2
- package/dist/core/refusals.d.ts +8 -0
- package/dist/core/refusals.js +8 -0
- package/dist/core/resource-resolution.d.ts +32 -0
- package/dist/core/resource-resolution.js +2 -0
- package/dist/nodes/process/flow/check.js +19 -10
- package/dist/nodes/process/flow/contract.d.ts +81 -0
- package/dist/nodes/process/flow/contract.js +253 -0
- package/dist/nodes/process/flow/node-type.js +25 -7
- package/dist/nodes/process/flow/refusals.d.ts +4 -1
- package/dist/nodes/process/flow/refusals.js +13 -1
- package/dist/nodes/process/flow/spec.d.ts +55 -0
- package/dist/registry/prepare/process-schema.d.ts +39 -0
- package/dist/registry/prepare/process-schema.js +90 -0
- package/dist/registry/prepare/resources.d.ts +2 -1
- package/dist/registry/prepare/resources.js +24 -3
- package/dist/registry/uip/commands.d.ts +8 -0
- package/dist/registry/uip/commands.js +10 -0
- package/package.json +2 -2
package/dist/api-index.md
CHANGED
|
@@ -51,21 +51,21 @@ could hand you spans for a version you do not have.
|
|
|
51
51
|
| `ActionSchemaSection` | interface | `dist/nodes/hitl/flow/spec.d.ts:274-280` | Supporting types | One section (`inputs`, `outputs`, `inOuts`, `outcomes`) of an `action-schema.json`. |
|
|
52
52
|
| `ActionSpec` | type | `dist/core/actions.d.ts:978-986` | Supporting types | One action step's spec: `{ kind }` plus that kind's body from FlowActionSpecs, for every kind there. |
|
|
53
53
|
| `agent` | function | `dist/nodes/process/flow/factories.d.ts:159-213` | Actions | Invoke an AGENT resource — either one published to Orchestrator or a sibling agent project registered in the same… |
|
|
54
|
-
| `AgentFlavour` | type | `dist/nodes/process/flow/spec.d.ts:
|
|
54
|
+
| `AgentFlavour` | type | `dist/nodes/process/flow/spec.d.ts:418-422` | Supporting types | Which KIND of agent project was published behind a `uipath.core.agent.<key>` resource. |
|
|
55
55
|
| `AgentGuardrail` | type | `dist/core/actions.d.ts:430` | Supporting types | |
|
|
56
56
|
| `agenticProcess` | function | `dist/nodes/process/flow/factories.d.ts:113-158` | Actions | Invoke a deployed AGENTIC PROCESS — a Maestro process orchestration published to Orchestrator: a BPMN process that… |
|
|
57
|
-
| `AgenticProcessCompletion` | type | `dist/nodes/process/flow/spec.d.ts:
|
|
58
|
-
| `AgenticProcessInputs` | type | `dist/nodes/process/flow/spec.d.ts:
|
|
59
|
-
| `AgenticProcessInputsBase` | interface | `dist/nodes/process/flow/spec.d.ts:
|
|
60
|
-
| `AgentInputs` | interface | `dist/nodes/process/flow/spec.d.ts:
|
|
61
|
-
| `AgentLocation` | type | `dist/nodes/process/flow/spec.d.ts:
|
|
57
|
+
| `AgenticProcessCompletion` | type | `dist/nodes/process/flow/spec.d.ts:373-415` | Supporting types | Whether an Agentic Process step waits for the process's result. |
|
|
58
|
+
| `AgenticProcessInputs` | type | `dist/nodes/process/flow/spec.d.ts:416-417` | Option shapes | What `agenticProcess()` takes: the shared fields plus the completion policy. |
|
|
59
|
+
| `AgenticProcessInputsBase` | interface | `dist/nodes/process/flow/spec.d.ts:288-372` | Option shapes | 8 field(s) |
|
|
60
|
+
| `AgentInputs` | interface | `dist/nodes/process/flow/spec.d.ts:425-551` | Option shapes | What `agent()` takes: the agent resource to start, its arguments, and the output fields a read may name. |
|
|
61
|
+
| `AgentLocation` | type | `dist/nodes/process/flow/spec.d.ts:423-424` | Supporting types | Where a published agent lives: deployed to a folder (`'published'`) or a sibling project of the same solution… |
|
|
62
62
|
| `AgentMemoryRef` | interface | `dist/core/actions.d.ts:589-613` | Supporting types | An episodic memory the agent learns from across runs, wired to the agent's own `memory` handle. |
|
|
63
63
|
| `AgentResourcePlacement` | interface | `dist/core/actions.d.ts:443-478` | Supporting types | Where one of an inline agent's resources (a context index, a tool, an escalation) sits in the `.flow`: the id of its own… |
|
|
64
64
|
| `AgentResources` | type | `dist/nodes/agent/flow/spec.d.ts:38-44` | Supporting types | The resources an agent attaches on its artifact handles — `context`, `tools` and `escalation`, written exactly as… |
|
|
65
65
|
| `Aggregation` | interface | `dist/nodes/transform/flow/spec.d.ts:36-42` | Supporting types | 3 field(s) |
|
|
66
66
|
| `AggregationOperation` | type | `dist/nodes/transform/flow/spec.d.ts:35` | Supporting types | |
|
|
67
67
|
| `apiWorkflow` | function | `dist/nodes/process/flow/factories.d.ts:53-87` | Actions | Invoke a deployed API workflow — a coded workflow published to Orchestrator, run as a serverless job rather than by a… |
|
|
68
|
-
| `ApiWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:
|
|
68
|
+
| `ApiWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:104-194` | Option shapes | 8 field(s) |
|
|
69
69
|
| `AppRef` | interface | `dist/nodes/hitl/flow/spec.d.ts:146-254` | Supporting types | A deployed Action App that supplies a human task's form — the `'action-app'` variant's subject. |
|
|
70
70
|
| `ArmBuilder` | class | `dist/flow-sdk.d.ts:1271-1294` | 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>')`. |
|
|
@@ -236,7 +236,7 @@ could hand you spans for a version you do not have.
|
|
|
236
236
|
| `ProcessToolKind` | type | `dist/core/actions.d.ts:712-725` | Supporting types | The tool kinds that wrap a DEPLOYED tenant resource. |
|
|
237
237
|
| `ProcessToolRef` | interface | `dist/core/actions.d.ts:755-788` | Supporting types | A deployed tenant resource the agent may invoke. |
|
|
238
238
|
| `publishedFunction` | function | `dist/nodes/process/flow/factories.d.ts:88-112` | Actions | Invoke a published Orchestrator **Function** — a deployed unit of code run as one step (`uipath.core.function.<key>`,… |
|
|
239
|
-
| `PublishedFunctionInputs` | interface | `dist/nodes/process/flow/spec.d.ts:
|
|
239
|
+
| `PublishedFunctionInputs` | interface | `dist/nodes/process/flow/spec.d.ts:195-287` | Option shapes | A published Orchestrator **Function** — a small, single-purpose unit of code deployed as its own resource and invoked as… |
|
|
240
240
|
| `queueItem` | function | `dist/nodes/queue/flow/factories.d.ts:4-49` | Actions | Declare an Orchestrator QUEUE ITEM step. |
|
|
241
241
|
| `QueueItemInputs` | interface | `dist/nodes/queue/flow/spec.d.ts:11-84` | Option shapes | 10 field(s) |
|
|
242
242
|
| `QueuePriority` | type | `dist/nodes/queue/flow/spec.d.ts:9-10` | Supporting types | The three priorities an Orchestrator queue item can carry. |
|
|
@@ -250,11 +250,11 @@ could hand you spans for a version you do not have.
|
|
|
250
250
|
| `resolvedValue` | function | `dist/core/lookups.d.ts:185-192` | Generated descriptors | The recorded id for a token, or `undefined`. |
|
|
251
251
|
| `resolveEventWhere` | function | `dist/core/lookups.d.ts:268-285` | Generated descriptors | An event subscription's `where` with every lookup token swapped for the id `registry prepare --resolve` recorded, or a… |
|
|
252
252
|
| `ResourceRef` | interface | `dist/core/resource-resolution.d.ts:4-18` | Supporting types | A solution resource by kind and name, and — for one in an Orchestrator folder — that folder's PATH (`Shared`,… |
|
|
253
|
-
| `ResourceToken` | interface | `dist/core/resource-resolution.d.ts:
|
|
253
|
+
| `ResourceToken` | interface | `dist/core/resource-resolution.d.ts:198-208` | Supporting types | A solution resource as a connector input: what `resource()` and `entity()` return. |
|
|
254
254
|
| `ReturnFieldType` | type | `dist/core/actions.d.ts:305-322` | Supporting types | A JSON-schema-ish type for one field of a step's declared `returns`. |
|
|
255
255
|
| `ReturnOptions` | interface | `dist/flow-sdk.d.ts:384-425` | Option shapes | `.return(...)`-specific options. |
|
|
256
256
|
| `rpaWorkflow` | function | `dist/nodes/process/flow/factories.d.ts:8-52` | Actions | Invoke a deployed RPA (robotic process automation) workflow — a classic UI-automation process, published to… |
|
|
257
|
-
| `RpaWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:11-
|
|
257
|
+
| `RpaWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:11-103` | Option shapes | 8 field(s) |
|
|
258
258
|
| `SCHEDULE_PRESETS` | const | `dist/nodes/trigger/flow/spec.d.ts:8-15` | Actions | The eight intervals the designer offers in its Frequency dropdown. |
|
|
259
259
|
| `scheduled` | function | `dist/nodes/trigger/flow/factories.d.ts:12-31` | Actions | Start the flow on a recurring schedule instead of on demand. |
|
|
260
260
|
| `ScheduledInputs` | interface | `dist/nodes/trigger/flow/spec.d.ts:29-51` | Option shapes | 1 field(s) |
|
package/dist/api-members.md
CHANGED
|
@@ -46,7 +46,7 @@ not find it either.
|
|
|
46
46
|
| --- | --- | --- | --- |
|
|
47
47
|
| `__lookup` | property | `LookupToken` | `dist/core/lookups.d.ts:46-51` |
|
|
48
48
|
| `__outputs` | property | `FlowNode` | `dist/core/node-classes.d.ts:146-150` |
|
|
49
|
-
| `__resource` | property | `ResourceToken` | `dist/core/resource-resolution.d.ts:
|
|
49
|
+
| `__resource` | property | `ResourceToken` | `dist/core/resource-resolution.d.ts:207` |
|
|
50
50
|
| `$guardrailType` | property | `BuiltInValidatorGuardrail` | `dist/core/actions.d.ts:392` |
|
|
51
51
|
| `$guardrailType` | property | `CustomGuardrail` | `dist/core/actions.d.ts:379` |
|
|
52
52
|
| `action` | property | `BuiltInValidatorGuardrail` | `dist/core/actions.d.ts:396` |
|
|
@@ -61,16 +61,16 @@ not find it either.
|
|
|
61
61
|
| `activity` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3205-3243` |
|
|
62
62
|
| `actualPrompt` | property | `StartingPrompt` | `dist/nodes/trigger/flow/spec.d.ts:59-60` |
|
|
63
63
|
| `additionalOutputs` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:98-102` |
|
|
64
|
-
| `agent` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:
|
|
64
|
+
| `agent` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:570-573` |
|
|
65
65
|
| `agent` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1326-1335` |
|
|
66
|
-
| `agenticProcess` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:
|
|
66
|
+
| `agenticProcess` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:566-569` |
|
|
67
67
|
| `aiSummary` | property | `CaseAppConfig` | `dist/case/case-sdk.d.ts:1121-1126` |
|
|
68
68
|
| `alias` | property | `Aggregation` | `dist/nodes/transform/flow/spec.d.ts:38-39` |
|
|
69
69
|
| `aliases` | property | `LookupSpec` | `dist/core/lookups.d.ts:31-32` |
|
|
70
70
|
| `allErrors` | property | `RetrySpec` | `dist/bpmn/bpmn-sdk.d.ts:950-951` |
|
|
71
71
|
| `allowAdhocOptionalStageTasks` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1199-1200` |
|
|
72
72
|
| `allowAdhocTasks` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1977-1984` |
|
|
73
|
-
| `apiWorkflow` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:
|
|
73
|
+
| `apiWorkflow` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:558-561` |
|
|
74
74
|
| `apiWorkflow` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1346-1355` |
|
|
75
75
|
| `app` | property | `EscalationRef` | `dist/core/actions.d.ts:852-879` |
|
|
76
76
|
| `app` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:326-330` |
|
|
@@ -440,7 +440,7 @@ not find it either.
|
|
|
440
440
|
| `filters` | property | `DataFabricReadInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:85-86` |
|
|
441
441
|
| `filters` | property | `EventSubscription` | `dist/core/actions.d.ts:1212-1213` |
|
|
442
442
|
| `filters` | property | `TriggerOptions` | `dist/core/actions.d.ts:1169-1170` |
|
|
443
|
-
| `flavour` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
443
|
+
| `flavour` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:536-550` |
|
|
444
444
|
| `flowIds` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3407-3450` |
|
|
445
445
|
| `flowMode` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2347-2386` |
|
|
446
446
|
| `flowProcess` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1368-1377` |
|
|
@@ -476,9 +476,9 @@ not find it either.
|
|
|
476
476
|
| `folderKey` | property | `RemoteA2aToolRef` | `dist/core/actions.d.ts:526` |
|
|
477
477
|
| `FolderKey` | property | `FlowMetadata` | `dist/nodes/script/flow/spec.d.ts:85-86` |
|
|
478
478
|
| `folderName` | property | `IxpExtractInputs` | `dist/nodes/document/flow/spec.d.ts:143-149` |
|
|
479
|
-
| `folderPath` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:
|
|
480
|
-
| `folderPath` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
481
|
-
| `folderPath` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
479
|
+
| `folderPath` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:340-347` |
|
|
480
|
+
| `folderPath` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:476-487` |
|
|
481
|
+
| `folderPath` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:153-160` |
|
|
482
482
|
| `folderPath` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:198-204` |
|
|
483
483
|
| `folderPath` | property | `ConnectorEventOpts` | `dist/bpmn/bpmn-sdk.d.ts:1663-1669` |
|
|
484
484
|
| `folderPath` | property | `ContextIndexRef` | `dist/core/actions.d.ts:912-913` |
|
|
@@ -486,14 +486,14 @@ not find it either.
|
|
|
486
486
|
| `folderPath` | property | `IxpExtractInputs` | `dist/nodes/document/flow/spec.d.ts:169-175` |
|
|
487
487
|
| `folderPath` | property | `McpToolRef` | `dist/core/actions.d.ts:492-493` |
|
|
488
488
|
| `folderPath` | property | `ProcessToolRef` | `dist/core/actions.d.ts:772-773` |
|
|
489
|
-
| `folderPath` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
489
|
+
| `folderPath` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:250-260` |
|
|
490
490
|
| `folderPath` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:14-15` |
|
|
491
491
|
| `folderPath` | property | `RemoteA2aToolRef` | `dist/core/actions.d.ts:525` |
|
|
492
|
-
| `folderPath` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
492
|
+
| `folderPath` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:58-65` |
|
|
493
493
|
| `folderPath` | property | `TaskRef` | `dist/case/case-sdk.d.ts:748` |
|
|
494
494
|
| `fork` | property | `ParallelOptions` | `dist/flow-sdk.d.ts:356-373` |
|
|
495
495
|
| `fork` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3350-3375` |
|
|
496
|
-
| `form` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:
|
|
496
|
+
| `form` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:364-371` |
|
|
497
497
|
| `form` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1554-1555` |
|
|
498
498
|
| `form` | property | `HumanTaskFormOpts` | `dist/bpmn/bpmn-sdk.d.ts:1588-1589` |
|
|
499
499
|
| `format` | property | `ActionSchemaProperty` | `dist/nodes/hitl/flow/spec.d.ts:267-268` |
|
|
@@ -579,9 +579,9 @@ not find it either.
|
|
|
579
579
|
| `inputs` | property | `ActionSchemaFile` | `dist/nodes/hitl/flow/spec.d.ts:283-284` |
|
|
580
580
|
| `inputs` | property | `ActionSpecData` | `dist/case/case-sdk.d.ts:889-890` |
|
|
581
581
|
| `inputs` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1779-1780` |
|
|
582
|
-
| `inputs` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:
|
|
583
|
-
| `inputs` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
584
|
-
| `inputs` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
582
|
+
| `inputs` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:358-363` |
|
|
583
|
+
| `inputs` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:494-511` |
|
|
584
|
+
| `inputs` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:172-176` |
|
|
585
585
|
| `inputs` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:211-219` |
|
|
586
586
|
| `inputs` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:733-734` |
|
|
587
587
|
| `inputs` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:751` |
|
|
@@ -592,9 +592,9 @@ not find it either.
|
|
|
592
592
|
| `inputs` | property | `NodeContribution` | `dist/core/node-classes.d.ts:122-126` |
|
|
593
593
|
| `inputs` | property | `PlatformActionSchema` | `dist/nodes/hitl/flow/spec.d.ts:307-308` |
|
|
594
594
|
| `inputs` | property | `ProcessToolRef` | `dist/core/actions.d.ts:780-785` |
|
|
595
|
-
| `inputs` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
595
|
+
| `inputs` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:272-273` |
|
|
596
596
|
| `inputs` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:95-96` |
|
|
597
|
-
| `inputs` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
597
|
+
| `inputs` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:77-82` |
|
|
598
598
|
| `inputs` | property | `ScriptTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1026-1045` |
|
|
599
599
|
| `inputs` | property | `SubflowSpec` | `dist/flow-sdk.d.ts:58-59` |
|
|
600
600
|
| `inputs` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1658-1693` |
|
|
@@ -629,19 +629,19 @@ not find it either.
|
|
|
629
629
|
| `join` | property | `ChooseOpts` | `dist/bpmn/bpmn-sdk.d.ts:2082-2083` |
|
|
630
630
|
| `join` | property | `SplitOpts` | `dist/bpmn/bpmn-sdk.d.ts:2089-2090` |
|
|
631
631
|
| `js` | property | `Expr` | `dist/core/expr.d.ts:17` |
|
|
632
|
-
| `key` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:
|
|
633
|
-
| `key` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
634
|
-
| `key` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
632
|
+
| `key` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:289-307` |
|
|
633
|
+
| `key` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:427-448` |
|
|
634
|
+
| `key` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:105-124` |
|
|
635
635
|
| `key` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:179-185` |
|
|
636
636
|
| `key` | property | `HitlConnection` | `dist/nodes/hitl/flow/spec.d.ts:28-29` |
|
|
637
637
|
| `key` | property | `HttpRequestConnector` | `dist/case/case-sdk.d.ts:613-614` |
|
|
638
638
|
| `key` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1568-1569` |
|
|
639
639
|
| `key` | property | `McpToolRef` | `dist/core/actions.d.ts:489-490` |
|
|
640
640
|
| `key` | property | `ProcessToolRef` | `dist/core/actions.d.ts:764-769` |
|
|
641
|
-
| `key` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
641
|
+
| `key` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:202-220` |
|
|
642
642
|
| `key` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:16-25` |
|
|
643
643
|
| `key` | property | `RemoteA2aToolRef` | `dist/core/actions.d.ts:517-518` |
|
|
644
|
-
| `key` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:12-
|
|
644
|
+
| `key` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:12-30` |
|
|
645
645
|
| `kind` | property | `BuiltinToolRef` | `dist/core/actions.d.ts:619` |
|
|
646
646
|
| `kind` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:995` |
|
|
647
647
|
| `kind` | property | `BuiltTrigger` | `dist/case/case-sdk.d.ts:282` |
|
|
@@ -681,13 +681,13 @@ not find it either.
|
|
|
681
681
|
| `limit` | property | `DataFabricReadInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:101-106` |
|
|
682
682
|
| `limit` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:456-457` |
|
|
683
683
|
| `literal` | property | `Expr` | `dist/core/expr.d.ts:18` |
|
|
684
|
-
| `location` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:
|
|
685
|
-
| `location` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
686
|
-
| `location` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
684
|
+
| `location` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:310-320` |
|
|
685
|
+
| `location` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:451-456` |
|
|
686
|
+
| `location` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:127-133` |
|
|
687
687
|
| `location` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:186-197` |
|
|
688
688
|
| `location` | property | `CarriedConnectorField` | `dist/core/carried-connector-fields.d.ts:43-44` |
|
|
689
|
-
| `location` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
690
|
-
| `location` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
689
|
+
| `location` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:223-230` |
|
|
690
|
+
| `location` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:33-38` |
|
|
691
691
|
| `lookups` | property | `ConnectorMeta` | `dist/core/connectors.d.ts:89-100` |
|
|
692
692
|
| `loop` | property | `ActivityNodeFields` | `dist/bpmn/bpmn-sdk.d.ts:365-366` |
|
|
693
693
|
| `loop` | property | `ActivityOpts` | `dist/bpmn/bpmn-sdk.d.ts:979-980` |
|
|
@@ -754,10 +754,10 @@ not find it either.
|
|
|
754
754
|
| `name` | property | `ActionAppRef` | `dist/case/case-sdk.d.ts:834-835` |
|
|
755
755
|
| `name` | property | `ActionField` | `dist/case/case-sdk.d.ts:795-796` |
|
|
756
756
|
| `name` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1767-1768` |
|
|
757
|
-
| `name` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:
|
|
758
|
-
| `name` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
757
|
+
| `name` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:308-309` |
|
|
758
|
+
| `name` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:449-450` |
|
|
759
759
|
| `name` | property | `AgentMemoryRef` | `dist/core/actions.d.ts:598-599` |
|
|
760
|
-
| `name` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
760
|
+
| `name` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:125-126` |
|
|
761
761
|
| `name` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:177-178` |
|
|
762
762
|
| `name` | property | `BindingContribution` | `dist/core/node-classes.d.ts:96-97` |
|
|
763
763
|
| `name` | property | `BindingDecl` | `dist/bpmn/bpmn-sdk.d.ts:468-469` |
|
|
@@ -815,7 +815,7 @@ not find it either.
|
|
|
815
815
|
| `name` | property | `PlainTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1874-1875` |
|
|
816
816
|
| `name` | property | `PlatformActionSchemaArg` | `dist/nodes/hitl/flow/spec.d.ts:294-295` |
|
|
817
817
|
| `name` | property | `ProcessToolRef` | `dist/core/actions.d.ts:770-771` |
|
|
818
|
-
| `name` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
818
|
+
| `name` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:221-222` |
|
|
819
819
|
| `name` | property | `QueueItemOpts` | `dist/bpmn/bpmn-sdk.d.ts:1486-1487` |
|
|
820
820
|
| `name` | property | `ReceiveMessageOpts` | `dist/bpmn/bpmn-sdk.d.ts:1614-1615` |
|
|
821
821
|
| `name` | property | `RegistryContextField` | `dist/bpmn/typed-node.d.ts:22` |
|
|
@@ -825,7 +825,7 @@ not find it either.
|
|
|
825
825
|
| `name` | property | `ResolvedEventTriggerOpts` | `dist/case/case-sdk.d.ts:369-370` |
|
|
826
826
|
| `name` | property | `ResourceRef` | `dist/core/resource-resolution.d.ts:14-15` |
|
|
827
827
|
| `name` | property | `ReturnOptions` | `dist/flow-sdk.d.ts:399-424` |
|
|
828
|
-
| `name` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
828
|
+
| `name` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:31-32` |
|
|
829
829
|
| `name` | property | `ScriptTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:991-992` |
|
|
830
830
|
| `name` | property | `SplitOpts` | `dist/bpmn/bpmn-sdk.d.ts:2087-2088` |
|
|
831
831
|
| `name` | property | `StartOpts` | `dist/bpmn/bpmn-sdk.d.ts:725-726` |
|
|
@@ -967,18 +967,18 @@ not find it either.
|
|
|
967
967
|
| `process` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1288-1297` |
|
|
968
968
|
| `processId` | property | `SugarRegistry` | `dist/bpmn/bpmn-sdk.d.ts:2226-2231` |
|
|
969
969
|
| `ProcessKey` | property | `FlowMetadata` | `dist/nodes/script/flow/spec.d.ts:89-90` |
|
|
970
|
-
| `project` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:
|
|
971
|
-
| `project` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
972
|
-
| `project` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
970
|
+
| `project` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:321-339` |
|
|
971
|
+
| `project` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:457-475` |
|
|
972
|
+
| `project` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:134-152` |
|
|
973
973
|
| `project` | property | `IxpExtractInputs` | `dist/nodes/document/flow/spec.d.ts:111-124` |
|
|
974
|
-
| `project` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
975
|
-
| `project` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
976
|
-
| `projectId` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:
|
|
977
|
-
| `projectId` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
978
|
-
| `projectId` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
974
|
+
| `project` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:231-249` |
|
|
975
|
+
| `project` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:39-57` |
|
|
976
|
+
| `projectId` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:348-357` |
|
|
977
|
+
| `projectId` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:488-493` |
|
|
978
|
+
| `projectId` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:161-171` |
|
|
979
979
|
| `projectId` | property | `IxpToolRef` | `dist/core/actions.d.ts:801-811` |
|
|
980
|
-
| `projectId` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
981
|
-
| `projectId` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
980
|
+
| `projectId` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:261-271` |
|
|
981
|
+
| `projectId` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:66-76` |
|
|
982
982
|
| `prompt` | property | `BatchTransformInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:48-49` |
|
|
983
983
|
| `prompt` | property | `SummarizeInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:33-34` |
|
|
984
984
|
| `properties` | property | `ActionSchemaProperty` | `dist/nodes/hitl/flow/spec.d.ts:271-272` |
|
|
@@ -986,7 +986,7 @@ not find it either.
|
|
|
986
986
|
| `propertyAttribute` | property | `BindingContribution` | `dist/core/node-classes.d.ts:106-107` |
|
|
987
987
|
| `propertyAttribute` | property | `BindingDecl` | `dist/bpmn/bpmn-sdk.d.ts:472-473` |
|
|
988
988
|
| `propertyAttribute` | property | `BindingOpts` | `dist/bpmn/bpmn-sdk.d.ts:1202-1203` |
|
|
989
|
-
| `publishedFunction` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:
|
|
989
|
+
| `publishedFunction` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:562-565` |
|
|
990
990
|
| `query` | property | `BuiltinToolRef` | `dist/core/actions.d.ts:624-630` |
|
|
991
991
|
| `query` | property | `CaseHttpRequestSpec` | `dist/case/case-sdk.d.ts:588-594` |
|
|
992
992
|
| `query` | property | `ContextIndexRef` | `dist/core/actions.d.ts:916-921` |
|
|
@@ -1066,15 +1066,15 @@ not find it either.
|
|
|
1066
1066
|
| `retryCount` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:119-133` |
|
|
1067
1067
|
| `return` | method | `StepList` | `dist/flow-sdk.d.ts:1260-1269` |
|
|
1068
1068
|
| `returnCitations` | property | `SummarizeInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:35-40` |
|
|
1069
|
-
| `returns` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
1070
|
-
| `returns` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
1069
|
+
| `returns` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:512-535` |
|
|
1070
|
+
| `returns` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:177-193` |
|
|
1071
1071
|
| `returns` | property | `ClientSideToolRef` | `dist/core/actions.d.ts:542-543` |
|
|
1072
1072
|
| `returns` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:69-91` |
|
|
1073
1073
|
| `returns` | property | `InlineAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:280-293` |
|
|
1074
1074
|
| `returns` | property | `ProcessToolRef` | `dist/core/actions.d.ts:786-787` |
|
|
1075
|
-
| `returns` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
1075
|
+
| `returns` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:274-286` |
|
|
1076
1076
|
| `returns` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:63-83` |
|
|
1077
|
-
| `returns` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
1077
|
+
| `returns` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:83-102` |
|
|
1078
1078
|
| `returns` | property | `ScriptInputs` | `dist/nodes/script/flow/spec.d.ts:10-43` |
|
|
1079
1079
|
| `role` | property | `FlowAction` | `dist/core/node-classes.d.ts:175-176` |
|
|
1080
1080
|
| `role` | property | `FlowNode` | `dist/core/node-classes.d.ts:151-152` |
|
|
@@ -1082,7 +1082,7 @@ not find it either.
|
|
|
1082
1082
|
| `role` | property | `FlowTrigger` | `dist/core/node-classes.d.ts:182-183` |
|
|
1083
1083
|
| `routedWaypoints` | property | `EdgeRoute` | `dist/flow-sdk.d.ts:657-662` |
|
|
1084
1084
|
| `rpa` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1336-1345` |
|
|
1085
|
-
| `rpaWorkflow` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:
|
|
1085
|
+
| `rpaWorkflow` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:554-557` |
|
|
1086
1086
|
| `rule` | property | `CaseRule` | `dist/case/case-sdk.d.ts:98` |
|
|
1087
1087
|
| `rules` | property | `BuiltCaseExitCondition` | `dist/case/case-sdk.d.ts:458` |
|
|
1088
1088
|
| `rules` | property | `BuiltEntryCondition` | `dist/case/case-sdk.d.ts:400` |
|
package/dist/check.js
CHANGED
|
@@ -1124,7 +1124,7 @@ function checkFlow(built, ancestors, opts = {}) {
|
|
|
1124
1124
|
// at the same point as the per-family no-output rules below.
|
|
1125
1125
|
const placed = checkedSteps.get(name);
|
|
1126
1126
|
if (placed) {
|
|
1127
|
-
const contract = placed.impl.output(placed.spec);
|
|
1127
|
+
const contract = placed.impl.output(placed.spec, { resources: opts.resources });
|
|
1128
1128
|
if (contract.kind === 'none') {
|
|
1129
1129
|
diags.push(catalogued(placed.entry, step, contract.code, contract.message({ node: name, ref: `$vars.${name}${field ? '.' + field : ''}`, reader: step })));
|
|
1130
1130
|
continue;
|
|
@@ -1199,7 +1199,7 @@ function checkFlow(built, ancestors, opts = {}) {
|
|
|
1199
1199
|
// A registered node type that states its output's fields: the same read
|
|
1200
1200
|
// rule, worded by its contract and reported through its family's catalog.
|
|
1201
1201
|
const fieldsPlaced = checkedSteps.get(name);
|
|
1202
|
-
const fieldsContract = fieldsPlaced?.impl.output(fieldsPlaced.spec);
|
|
1202
|
+
const fieldsContract = fieldsPlaced?.impl.output(fieldsPlaced.spec, { resources: opts.resources });
|
|
1203
1203
|
if (fieldsPlaced && fieldsContract?.kind === 'fields') {
|
|
1204
1204
|
const found = [];
|
|
1205
1205
|
checkDeclaredOutputRead({
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* `flow-node-type.ts`), so a contributor never writes these parameters.
|
|
20
20
|
*/
|
|
21
21
|
import type { TypeDesc } from '../expr.js';
|
|
22
|
+
import type { ResourceResolutions } from '../resource-resolution.js';
|
|
22
23
|
/**
|
|
23
24
|
* Where a node type's definition comes from. `bundled`: a `<typeName>@<version>`
|
|
24
25
|
* entry the SDK ships, which every answer the definition can give (its error port,
|
|
@@ -48,6 +49,15 @@ export type ExprSite = {
|
|
|
48
49
|
} | {
|
|
49
50
|
readonly code: string;
|
|
50
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* What an output contract may consult beyond its spec: the solution resources
|
|
54
|
+
* `registry prepare` recorded, for a type whose output schema can come from the
|
|
55
|
+
* tenant (a published process's `returns`, #1979). Undefined when `check` was
|
|
56
|
+
* given no ledger.
|
|
57
|
+
*/
|
|
58
|
+
export interface OutputContext {
|
|
59
|
+
readonly resources?: ResourceResolutions;
|
|
60
|
+
}
|
|
51
61
|
/** A read of a node's output, as the output rules see it. */
|
|
52
62
|
export interface OutputRead {
|
|
53
63
|
/** The step name being read. */
|
|
@@ -216,8 +226,8 @@ export interface NodeType<Spec, Serialized, Ctx extends ArtifactContexts> {
|
|
|
216
226
|
* switch off every reference rule for its steps.
|
|
217
227
|
*/
|
|
218
228
|
expressions(spec: Spec): Iterable<ExprSite>;
|
|
219
|
-
/** What reading this node's output yields. */
|
|
220
|
-
output(spec: Spec): OutputContract;
|
|
229
|
+
/** What reading this node's output yields; `ctx` carries what `check` was given beyond the spec. */
|
|
230
|
+
output(spec: Spec, ctx?: OutputContext): OutputContract;
|
|
221
231
|
/**
|
|
222
232
|
* Whether this node type is the one for `spec`, when several share a kind (see
|
|
223
233
|
* VersionedNodeType.matches). On a single-version type only; a versioned type
|
package/dist/core/refusals.d.ts
CHANGED
|
@@ -630,6 +630,14 @@ export declare const REFUSALS: {
|
|
|
630
630
|
readonly PRESERVATION_FIELD_COLLISION: "lowering";
|
|
631
631
|
readonly PRESERVATION_LEGACY_DEFAULT_MISMATCH: "lowering";
|
|
632
632
|
readonly PRESERVATION_TARGET_MISSING: "lowering";
|
|
633
|
+
readonly PROCESS_INPUT_MISSING: "lint";
|
|
634
|
+
readonly PROCESS_INPUT_TYPE: "lint";
|
|
635
|
+
readonly PROCESS_INPUT_UNKNOWN: "lint";
|
|
636
|
+
readonly PROCESS_KEY_MISMATCH: "lint";
|
|
637
|
+
readonly PROCESS_RECORD_STALE: "lint";
|
|
638
|
+
readonly PROCESS_RETURNS_TYPE: "lint";
|
|
639
|
+
readonly PROCESS_RETURNS_UNKNOWN: "lint";
|
|
640
|
+
readonly PROCESS_TYPE_MISMATCH: "lint";
|
|
633
641
|
readonly QUEUE_BAD_DATE: "lint";
|
|
634
642
|
readonly QUEUE_BAD_PRIORITY: "lint";
|
|
635
643
|
readonly QUEUE_ITEM_EXPR_UNSUPPORTED: "lowering";
|
package/dist/core/refusals.js
CHANGED
|
@@ -706,6 +706,14 @@ export const REFUSALS = {
|
|
|
706
706
|
PRESERVATION_FIELD_COLLISION: 'lowering',
|
|
707
707
|
PRESERVATION_LEGACY_DEFAULT_MISMATCH: 'lowering',
|
|
708
708
|
PRESERVATION_TARGET_MISSING: 'lowering',
|
|
709
|
+
PROCESS_INPUT_MISSING: 'lint',
|
|
710
|
+
PROCESS_INPUT_TYPE: 'lint',
|
|
711
|
+
PROCESS_INPUT_UNKNOWN: 'lint',
|
|
712
|
+
PROCESS_KEY_MISMATCH: 'lint',
|
|
713
|
+
PROCESS_RECORD_STALE: 'lint',
|
|
714
|
+
PROCESS_RETURNS_TYPE: 'lint',
|
|
715
|
+
PROCESS_RETURNS_UNKNOWN: 'lint',
|
|
716
|
+
PROCESS_TYPE_MISMATCH: 'lint',
|
|
709
717
|
QUEUE_BAD_DATE: 'lint',
|
|
710
718
|
QUEUE_BAD_PRIORITY: 'lint',
|
|
711
719
|
QUEUE_ITEM_EXPR_UNSUPPORTED: 'lowering',
|
|
@@ -64,7 +64,39 @@ export interface ResourceResolution {
|
|
|
64
64
|
* before prepare recorded it; `check` then checks no column.
|
|
65
65
|
*/
|
|
66
66
|
fields?: EntityFieldSchema[];
|
|
67
|
+
/**
|
|
68
|
+
* For a published process (kind `Process`): its Orchestrator `ProcessType`
|
|
69
|
+
* (`Process`, `Api`, `Function`, `ProcessOrchestration`, `Flow`,
|
|
70
|
+
* `CaseManagement`, `Agent`), as `uip or processes get <key>` reports it.
|
|
71
|
+
* Absent for a process authored in the solution, and for every other kind.
|
|
72
|
+
*/
|
|
73
|
+
processType?: string;
|
|
74
|
+
/**
|
|
75
|
+
* For a published process: its argument contract, the JSON Schemas in its
|
|
76
|
+
* `ArgumentsV2.Input` and `ArgumentsV2.Output` (#1979). A side Orchestrator
|
|
77
|
+
* left blank is absent: blank means the contract was not extracted, not that
|
|
78
|
+
* the process takes nothing (every `Api` process on the dev tenant answers
|
|
79
|
+
* `{"Input":"","Output":""}`, every RPA one `{}`). Absent altogether when
|
|
80
|
+
* neither side was read: every kind but `Process`, a process authored in the
|
|
81
|
+
* solution, and a process whose `ArgumentsV2` is blank.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* { input: { type: 'object', properties: { name: { type: 'string' } } },
|
|
85
|
+
* output: { type: 'object', properties: { EstimatedAge: { type: 'integer' } } } }
|
|
86
|
+
*/
|
|
87
|
+
schema?: ResourceSchema;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* A published resource's argument contract, as `prepare` recorded it (JSON
|
|
91
|
+
* Schema objects). A side that is absent is unknown, and nothing is checked
|
|
92
|
+
* or filled in from it.
|
|
93
|
+
*/
|
|
94
|
+
export interface ResourceSchema {
|
|
95
|
+
input?: Readonly<Record<string, unknown>>;
|
|
96
|
+
output?: Readonly<Record<string, unknown>>;
|
|
67
97
|
}
|
|
98
|
+
/** The kind a published Orchestrator process (RPA, API workflow, function, agentic process, agent) is catalogued under. */
|
|
99
|
+
export declare const PROCESS_KIND = "Process";
|
|
68
100
|
/** Every recorded resolution, keyed by {@link resourceLedgerKey}. */
|
|
69
101
|
export type ResourceResolutions = Readonly<Record<string, ResourceResolution>>;
|
|
70
102
|
/**
|
|
@@ -15,6 +15,8 @@ import { cliSpelling, shellArg } from './cli-spelling.js';
|
|
|
15
15
|
import { CompileRefusal } from './compile-refusal.js';
|
|
16
16
|
/** The kind a Data Fabric entity is catalogued under. */
|
|
17
17
|
export const ENTITY_KIND = 'Entity';
|
|
18
|
+
/** The kind a published Orchestrator process (RPA, API workflow, function, agentic process, agent) is catalogued under. */
|
|
19
|
+
export const PROCESS_KIND = 'Process';
|
|
18
20
|
/**
|
|
19
21
|
* The kinds `uip solution resources list --kind` documents, by lower case, so
|
|
20
22
|
* `asset` and `Asset` key one row. A kind not listed is kept as written: the
|
|
@@ -3,6 +3,7 @@ import { GUID_RE } from '../../../core/binding-messages.js';
|
|
|
3
3
|
import { nearestName } from '../../../core/edit-distance.js';
|
|
4
4
|
import { ownEntry } from '../../../core/own-entry.js';
|
|
5
5
|
import { blank } from '../../../core/process-resource.js';
|
|
6
|
+
import { returnsFromTenantHint } from './contract.js';
|
|
6
7
|
export const PROCESS_DIAGNOSTICS = {
|
|
7
8
|
AGENT_EMPTY_INPUT_FLOOR: { severity: 'warning', summary: 'an agent step that binds no inputs' },
|
|
8
9
|
AGENT_EMPTY_RETURNS: { severity: 'warning', summary: 'an agent step with returns: {}' },
|
|
@@ -60,6 +61,14 @@ export const PROCESS_DIAGNOSTICS = {
|
|
|
60
61
|
IN_SOLUTION_PROJECT_NOT_FOUND: { severity: 'error', summary: 'an in-solution process step naming no project of the solution' },
|
|
61
62
|
IN_SOLUTION_PROJECT_PUBLISHED: { severity: 'error', summary: 'a process step naming a project with location published' },
|
|
62
63
|
IN_SOLUTION_WRONG_BUILDER: { severity: 'error', summary: 'an in-solution process step whose builder does not call its project\'s type' },
|
|
64
|
+
PROCESS_INPUT_MISSING: { severity: 'error', summary: 'a published process step that leaves out an input the recorded process requires' },
|
|
65
|
+
PROCESS_INPUT_TYPE: { severity: 'error', summary: 'a published process step input whose literal is not the recorded argument type' },
|
|
66
|
+
PROCESS_INPUT_UNKNOWN: { severity: 'error', summary: 'a published process step input the recorded process does not declare' },
|
|
67
|
+
PROCESS_KEY_MISMATCH: { severity: 'error', summary: 'a published process step whose key is not the one prepare recorded' },
|
|
68
|
+
PROCESS_RECORD_STALE: { severity: 'warning', summary: 'a published process step whose prepare record is more than 24 hours old' },
|
|
69
|
+
PROCESS_RETURNS_TYPE: { severity: 'warning', summary: 'a published process step returns field typed differently from the recorded output' },
|
|
70
|
+
PROCESS_RETURNS_UNKNOWN: { severity: 'error', summary: 'a published process step returns field the recorded process does not return' },
|
|
71
|
+
PROCESS_TYPE_MISMATCH: { severity: 'error', summary: 'a published process step whose factory is not for the recorded process type' },
|
|
63
72
|
RPA_KEY_NOT_KEY: { severity: 'error', summary: 'an RPA step whose key is not a GUID' },
|
|
64
73
|
RPA_LOCAL_HAS_FOLDER: { severity: 'error', summary: 'an RPA step in-solution, with a folderPath' },
|
|
65
74
|
RPA_LOCAL_NO_PROJECT_ID: { severity: 'warning', summary: 'an RPA step in-solution, with no projectId' },
|
|
@@ -359,8 +368,8 @@ export function rpaWorkflowRead(spec) {
|
|
|
359
368
|
codePrefix: 'RPA',
|
|
360
369
|
label: 'RPA process',
|
|
361
370
|
whenUndeclared: `The process's output arguments live on the tenant; declare the ones you read. `
|
|
362
|
-
+ `\`uip maestro flow registry get uipath.core.rpa-workflow.${spec?.key}\` shows what the platform `
|
|
363
|
-
+ `synthesizes for it
|
|
371
|
+
+ `\`uip maestro flow registry get uipath.core.rpa-workflow.${spec?.key ?? '<key>'}\` shows what the platform `
|
|
372
|
+
+ `synthesizes for it.${returnsFromTenantHint(spec)}`,
|
|
364
373
|
};
|
|
365
374
|
}
|
|
366
375
|
/** A read of a published function's result — the api-workflow rules, this family's codes. */
|
|
@@ -378,8 +387,8 @@ export function checkPublishedFunctionRead({ node: name, field, rest, reader: st
|
|
|
378
387
|
report('FUNCTION_READ_WITHOUT_RETURNS', `"$vars.${name}.output.${wanted}" (read in "${step}") reads a field of function "${name}"'s `
|
|
379
388
|
+ `result, but the step declares no \`returns\` — so the node carries no output schema and nothing can `
|
|
380
389
|
+ `tell a real field from a typo. The function's output arguments live on the tenant; declare the ones `
|
|
381
|
-
+ `you read. \`uip maestro flow registry get uipath.core.function.${spec.key}\` shows what the platform `
|
|
382
|
-
+ `synthesizes for it
|
|
390
|
+
+ `you read. \`uip maestro flow registry get uipath.core.function.${spec.key ?? '<key>'}\` shows what the platform `
|
|
391
|
+
+ `synthesizes for it.${returnsFromTenantHint(spec)}`, `returns: { ${wanted}: 'string' }`);
|
|
383
392
|
return;
|
|
384
393
|
}
|
|
385
394
|
if (declared.includes(wanted))
|
|
@@ -405,8 +414,8 @@ export function checkApiWorkflowRead({ node: name, field, rest, reader: step },
|
|
|
405
414
|
report('APIWF_READ_WITHOUT_RETURNS', `"$vars.${name}.output.${wanted}" (read in "${step}") reads a field of API workflow "${name}"'s `
|
|
406
415
|
+ `result, but the step declares no \`returns\` — so the node carries no output schema and nothing `
|
|
407
416
|
+ `can tell a real field from a typo. The workflow's output arguments live on the tenant; declare `
|
|
408
|
-
+ `the ones you read. \`uip maestro flow registry get uipath.core.api-workflow.${spec.key}\` `
|
|
409
|
-
+ `shows what the platform synthesizes for it
|
|
417
|
+
+ `the ones you read. \`uip maestro flow registry get uipath.core.api-workflow.${spec.key ?? '<key>'}\` `
|
|
418
|
+
+ `shows what the platform synthesizes for it.${returnsFromTenantHint(spec)}`, `returns: { ${wanted}: 'string' }`);
|
|
410
419
|
return;
|
|
411
420
|
}
|
|
412
421
|
if (declared.includes(wanted))
|
|
@@ -444,8 +453,8 @@ export function checkAgenticProcessRead({ node: name, field, rest, reader: step
|
|
|
444
453
|
report('AGENTIC_READ_WITHOUT_RETURNS', `"$vars.${name}.output.${wanted}" (read in "${step}") reads a field of agentic process "${name}"'s `
|
|
445
454
|
+ `result, but the step declares no \`returns\` — so the node carries no output schema and nothing can `
|
|
446
455
|
+ `tell a real field from a typo. The process's output arguments live on the tenant; declare the ones `
|
|
447
|
-
+ `you read. \`uip maestro flow registry get uipath.core.agentic-process.${spec.key}\` shows what `
|
|
448
|
-
+ `the platform synthesizes for it
|
|
456
|
+
+ `you read. \`uip maestro flow registry get uipath.core.agentic-process.${spec.key ?? '<key>'}\` shows what `
|
|
457
|
+
+ `the platform synthesizes for it.${returnsFromTenantHint(spec)}`, `returns: { ${wanted}: 'string' }`);
|
|
449
458
|
return;
|
|
450
459
|
}
|
|
451
460
|
if (declared.includes(wanted))
|
|
@@ -570,8 +579,8 @@ export function checkAgentRead({ node: name, field, rest, reader: step }, spec,
|
|
|
570
579
|
report('AGENT_READ_WITHOUT_RETURNS', `"$vars.${name}.output.${wanted}" (read in "${step}") reads a field of agent "${name}"'s result, but `
|
|
571
580
|
+ `the step declares no \`returns\` — so the node carries no output schema and nothing can tell a real `
|
|
572
581
|
+ `field from a typo. The agent's output fields live on the tenant; declare the ones you read. `
|
|
573
|
-
+ `\`uip maestro flow registry get uipath.core.agent.${spec.key}\` shows them under `
|
|
574
|
-
+ `outputDefinition.output.schema.properties
|
|
582
|
+
+ `\`uip maestro flow registry get uipath.core.agent.${spec.key ?? '<key>'}\` shows them under `
|
|
583
|
+
+ `outputDefinition.output.schema.properties.${returnsFromTenantHint(spec)}`, `returns: { ${wanted}: 'string' }`);
|
|
575
584
|
return;
|
|
576
585
|
}
|
|
577
586
|
if (declared.includes(wanted))
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A published process step against what `registry prepare` recorded for it
|
|
3
|
+
* (#1979): the release key, the Orchestrator `ProcessType`, and the argument
|
|
4
|
+
* contract in the process's `ArgumentsV2` (`registry/prepare/process-schema.ts`).
|
|
5
|
+
*
|
|
6
|
+
* The author names the process the way the runtime does, by `name` and
|
|
7
|
+
* `folderPath`; the ledger row for `['Process', name, folderPath]` then
|
|
8
|
+
*
|
|
9
|
+
* - fills in what the author left out: `key` (the node type's suffix) and,
|
|
10
|
+
* when nothing is declared, `returns` (the output schema);
|
|
11
|
+
* - checks what the author wrote: the key and the factory against the
|
|
12
|
+
* recorded process, each `inputs` name and literal against the input
|
|
13
|
+
* schema, the required inputs, and each `returns` field against the output
|
|
14
|
+
* schema.
|
|
15
|
+
*
|
|
16
|
+
* Without a row nothing changes, so a flow that types the key and `returns` by
|
|
17
|
+
* hand checks and compiles exactly as before. A row older than 24 hours still
|
|
18
|
+
* fills in (a release key does not change while the process exists), but is
|
|
19
|
+
* no longer checked against (`PROCESS_RECORD_STALE`). A side of `ArgumentsV2`
|
|
20
|
+
* Orchestrator left blank is unknown: neither checked nor filled in from. A process in the solution
|
|
21
|
+
* (`location: 'in-solution'`) is never looked up here.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* // prepare --kind Process --name NameToAgeFixed --folder-path Shared, then:
|
|
25
|
+
* apiWorkflow({ name: 'NameToAgeFixed', folderPath: 'Shared', inputs: { name: 'tomasz' } })
|
|
26
|
+
* // compiles with key 'ce857908-…' and returns { EstimatedAge: 'integer' }
|
|
27
|
+
*/
|
|
28
|
+
import type { ReturnFieldType } from '../../../core/actions.js';
|
|
29
|
+
import { type ResourceRef, type ResourceResolutions } from '../../../core/resource-resolution.js';
|
|
30
|
+
import type { FlowCheckContext } from '../../../flow-node-type.js';
|
|
31
|
+
/**
|
|
32
|
+
* The ledger reference a published process step names: kind `Process`, its
|
|
33
|
+
* `name`, and its `folderPath` as the folder. Undefined for an in-solution step,
|
|
34
|
+
* or one missing either, which has nothing to look up.
|
|
35
|
+
*/
|
|
36
|
+
export declare function processRef(inputs: unknown): ResourceRef | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The `returns` a recorded output schema declares, or undefined when it
|
|
39
|
+
* declares no field.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* recordedReturns({ type: 'object', properties: { EstimatedAge: { type: 'integer' } } }) // { EstimatedAge: 'integer' }
|
|
43
|
+
*/
|
|
44
|
+
export declare function recordedReturns(output: Readonly<Record<string, unknown>> | undefined): Record<string, ReturnFieldType> | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The step's inputs with what `prepare` recorded filled in: a blank `key` from
|
|
47
|
+
* the row, and an omitted `returns` from its output schema when that side was
|
|
48
|
+
* recorded (not for a fire-and-forget dispatch, which publishes no output).
|
|
49
|
+
* Anything the author wrote is kept. A row of any age is used, so the same
|
|
50
|
+
* source and ledger compile the same `.flow`; without a row, the inputs as
|
|
51
|
+
* they are.
|
|
52
|
+
*/
|
|
53
|
+
export declare function withRecordedProcess<T>(inputs: T, resources: ResourceResolutions | undefined): T;
|
|
54
|
+
/**
|
|
55
|
+
* Why a published step with no key has none, naming the `prepare` command that
|
|
56
|
+
* records it — a missing row and an old one read differently
|
|
57
|
+
* (`resolveRecordedResource`'s wording). Undefined when the step names no
|
|
58
|
+
* process to look up (no name or folder, or in-solution), or its row is usable.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* unrecordedKeyReason({ name: 'NameToAgeFixed', folderPath: 'Shared' }, undefined)
|
|
62
|
+
* // 'process "NameToAgeFixed" in folder "Shared" is not resolved. … registry prepare --kind Process --name NameToAgeFixed --folder-path Shared'
|
|
63
|
+
*/
|
|
64
|
+
export declare function unrecordedKeyReason(inputs: unknown, resources: ResourceResolutions | undefined): string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The sentence a `*_READ_WITHOUT_RETURNS` message ends with for a published
|
|
67
|
+
* step: the `prepare` command that records the output schema compile then
|
|
68
|
+
* writes. `''` when the step names no process to record.
|
|
69
|
+
*/
|
|
70
|
+
export declare function returnsFromTenantHint(inputs: unknown): string;
|
|
71
|
+
/**
|
|
72
|
+
* Check a published process step against its recorded row: the key, the
|
|
73
|
+
* factory (`subType`, the binding subtype the step would be written with, is
|
|
74
|
+
* the `ProcessType` it starts), the inputs and the declared `returns`. A step
|
|
75
|
+
* with no fresh row is not checked here.
|
|
76
|
+
*
|
|
77
|
+
* @param inputs - The step's inputs as the author wrote them (not filled in).
|
|
78
|
+
* @param subType - The `resourceSubType` the step's definition carries, e.g. `'Api'`.
|
|
79
|
+
* @param label - How a message names the step's kind, e.g. `'API workflow'`.
|
|
80
|
+
*/
|
|
81
|
+
export declare function checkRecordedProcess(inputs: unknown, ctx: FlowCheckContext, subType: string, label: string): void;
|