@uipath/maestro-builder-sdk 6.108.0 → 6.110.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.d.ts +1 -1
- package/dist/check.js +57 -2
- package/dist/core/cli-library.js +11 -0
- package/dist/core/connector-checks.d.ts +32 -0
- package/dist/core/connector-configuration.d.ts +52 -0
- package/dist/core/connector-configuration.js +130 -3
- package/dist/core/nodes/node-type.d.ts +12 -2
- package/dist/core/refusals.d.ts +10 -0
- package/dist/core/refusals.js +10 -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.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* lives in the serializer alone.
|
|
10
10
|
*/
|
|
11
11
|
import type { SolutionProjects } from './core/solution-projects.js';
|
|
12
|
-
import type
|
|
12
|
+
import { type ResourceResolutions } from './core/resource-resolution.js';
|
|
13
13
|
import type { NodeCatalog } from './core/node-catalog.js';
|
|
14
14
|
import type { Library } from './core/library.js';
|
|
15
15
|
import type { BuiltFlow } from './flow-sdk.js';
|
package/dist/check.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { isResourceToken } from './core/resource-resolution.js';
|
|
2
|
+
import { isLookupToken } from './core/lookups.js';
|
|
3
|
+
import { prepareCommand } from './core/cli-spelling.js';
|
|
1
4
|
import { Expr, parallelFork } from './flow-sdk.js';
|
|
2
5
|
import { FlowNode } from './core/node-classes.js';
|
|
3
6
|
import { definitionHasErrorPort } from './core/error-port.js';
|
|
@@ -1124,7 +1127,7 @@ function checkFlow(built, ancestors, opts = {}) {
|
|
|
1124
1127
|
// at the same point as the per-family no-output rules below.
|
|
1125
1128
|
const placed = checkedSteps.get(name);
|
|
1126
1129
|
if (placed) {
|
|
1127
|
-
const contract = placed.impl.output(placed.spec);
|
|
1130
|
+
const contract = placed.impl.output(placed.spec, { resources: opts.resources });
|
|
1128
1131
|
if (contract.kind === 'none') {
|
|
1129
1132
|
diags.push(catalogued(placed.entry, step, contract.code, contract.message({ node: name, ref: `$vars.${name}${field ? '.' + field : ''}`, reader: step })));
|
|
1130
1133
|
continue;
|
|
@@ -1199,7 +1202,7 @@ function checkFlow(built, ancestors, opts = {}) {
|
|
|
1199
1202
|
// A registered node type that states its output's fields: the same read
|
|
1200
1203
|
// rule, worded by its contract and reported through its family's catalog.
|
|
1201
1204
|
const fieldsPlaced = checkedSteps.get(name);
|
|
1202
|
-
const fieldsContract = fieldsPlaced?.impl.output(fieldsPlaced.spec);
|
|
1205
|
+
const fieldsContract = fieldsPlaced?.impl.output(fieldsPlaced.spec, { resources: opts.resources });
|
|
1203
1206
|
if (fieldsPlaced && fieldsContract?.kind === 'fields') {
|
|
1204
1207
|
const found = [];
|
|
1205
1208
|
checkDeclaredOutputRead({
|
|
@@ -1291,6 +1294,58 @@ function checkConnectorResourceScope(step, spec, opts, diags) {
|
|
|
1291
1294
|
function checkConnectorSchema(step, spec, opts, diags) {
|
|
1292
1295
|
const { where, report } = connectorSite(step, diags);
|
|
1293
1296
|
coreCheckConnectorSchema(where, spec, opts, FLOW_EXPR_DIALECT, report);
|
|
1297
|
+
checkConnectorSchemaReplay(where, spec, opts, report);
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* SCHEMA_REPLAY_PARENT_MISMATCH (#1972): a step on a prepared schema-dynamic
|
|
1301
|
+
* operation that sets a parent to another literal than the one prepared. A
|
|
1302
|
+
* warning: compile writes the step's own request, and the flow may be right;
|
|
1303
|
+
* what is unproven is that its inputs fit that parent's fields.
|
|
1304
|
+
*
|
|
1305
|
+
* SCHEMA_REPLAY_MISSING (#1972): a schema-dynamic operation whose fields depend
|
|
1306
|
+
* on the VALUES of parent inputs (Jira `create-issue` on project and issue
|
|
1307
|
+
* type), on a step that compile would write `customFieldsRequestDetails: null`
|
|
1308
|
+
* for — no `prepare -f` recorded a request, and a parent is unset or computed
|
|
1309
|
+
* at run time. `validate` accepts that, and the designer cannot replay the
|
|
1310
|
+
* schema, so it opens the node with only the parents. A warning: the run reads
|
|
1311
|
+
* the node's parameters, not the request. The fix is the prepare that records
|
|
1312
|
+
* the request for the values the step means.
|
|
1313
|
+
*
|
|
1314
|
+
* A `lookup()` or `resource()` token is a literal by compile time, so it counts
|
|
1315
|
+
* as set.
|
|
1316
|
+
*/
|
|
1317
|
+
function checkConnectorSchemaReplay(where, spec, opts, report) {
|
|
1318
|
+
const authored = Object.entries(spec.inputs ?? {});
|
|
1319
|
+
// A token's value is not known here, so it is not compared with the prepared one.
|
|
1320
|
+
const mismatch = opts.schemaReplayMismatch?.(spec, Object.fromEntries(authored.filter(([, v]) => !isLookupToken(v) && !isResourceToken(v))));
|
|
1321
|
+
if (mismatch) {
|
|
1322
|
+
report({
|
|
1323
|
+
level: 'warning',
|
|
1324
|
+
code: 'SCHEMA_REPLAY_PARENT_MISMATCH',
|
|
1325
|
+
message: `${where}: this operation's fields were prepared for `
|
|
1326
|
+
+ mismatch.mismatches.map((m) => `${m.name} = ${JSON.stringify(m.recorded)}`).join(', ')
|
|
1327
|
+
+ `, but this step sets ${mismatch.mismatches.map((m) => `${m.name} = ${JSON.stringify(m.given)}`).join(', ')}. `
|
|
1328
|
+
+ "Compile writes this step's own schema replay request, but its inputs were checked against the prepared values' "
|
|
1329
|
+
+ 'fields, which can differ. To check them against this step\'s fields, prepare for its values and re-run check:\n'
|
|
1330
|
+
+ ` ${prepareCommand(spec.key, spec.action, ...mismatch.flags)}\n`
|
|
1331
|
+
+ 'One operation keeps one prepared field set, so with several steps on it, check each one this way in turn.',
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
const inputs = Object.fromEntries(authored
|
|
1335
|
+
.map(([k, v]) => [k, isLookupToken(v) || isResourceToken(v) ? '<resolved at compile>' : v]));
|
|
1336
|
+
const gap = opts.schemaReplayGap?.(spec, inputs);
|
|
1337
|
+
if (!gap)
|
|
1338
|
+
return;
|
|
1339
|
+
const flags = gap.parents.flatMap((p) => ['-f', `${p}=<value>`]);
|
|
1340
|
+
report({
|
|
1341
|
+
level: 'warning',
|
|
1342
|
+
code: 'SCHEMA_REPLAY_MISSING',
|
|
1343
|
+
message: `${where}: this operation's fields depend on the values of ${gap.parents.map((p) => `\`${p}\``).join(', ')}, `
|
|
1344
|
+
+ `and ${gap.unresolved.map((p) => `\`${p}\``).join(', ')} ${gap.unresolved.length === 1 ? 'has' : 'have'} no literal value here, `
|
|
1345
|
+
+ 'so compile writes no schema replay request (customFieldsRequestDetails: null). validate accepts that, but the '
|
|
1346
|
+
+ 'designer cannot load the fields for it. Record the request for the values the step is designed for:\n'
|
|
1347
|
+
+ ` ${prepareCommand(spec.key, spec.action, ...flags)}`,
|
|
1348
|
+
});
|
|
1294
1349
|
}
|
|
1295
1350
|
/**
|
|
1296
1351
|
* Reject a wrapper hop when the runtime shape of a list has been measured: the
|
package/dist/core/cli-library.js
CHANGED
|
@@ -22,6 +22,7 @@ import { flagValue } from '../cli-run.js';
|
|
|
22
22
|
import { defaultOverlayDir } from '../workdir.js';
|
|
23
23
|
import { EQUALS_EXPR_DIALECT } from './connector-checks.js';
|
|
24
24
|
import { connectorInputErrors, connectorResourceRefusals } from './connector-inputs.js';
|
|
25
|
+
import { schemaReplayGap, schemaReplayMismatch } from './connector-configuration.js';
|
|
25
26
|
/**
|
|
26
27
|
* The library for this invocation, or `undefined` when there is none.
|
|
27
28
|
*
|
|
@@ -149,6 +150,16 @@ export function connectorCheckOpts(library, bindings, inputErrors = (rc, inputs,
|
|
|
149
150
|
return undefined;
|
|
150
151
|
return inputErrors(r.rc, inputs, library.lookupResolutions ?? {}, library.lookupSpecs(spec.key, spec.action, spec.version, spec.object) ?? {});
|
|
151
152
|
},
|
|
153
|
+
// A schema-dynamic operation compile would write no replay request for (#1972).
|
|
154
|
+
schemaReplayGap: (spec, inputs) => {
|
|
155
|
+
const r = resolve(spec);
|
|
156
|
+
return 'rc' in r ? schemaReplayGap(r.rc.entry, inputs) : undefined;
|
|
157
|
+
},
|
|
158
|
+
// A prepared one whose parents the step sets to other values (#1972).
|
|
159
|
+
schemaReplayMismatch: (spec, inputs) => {
|
|
160
|
+
const r = resolve(spec);
|
|
161
|
+
return 'rc' in r ? schemaReplayMismatch(r.rc.entry, inputs) : undefined;
|
|
162
|
+
},
|
|
152
163
|
// The unresolved `resource()` tokens, through the field paths compile projects.
|
|
153
164
|
connectorResources: (spec, inputs, resources) => {
|
|
154
165
|
const r = resolve(spec);
|
|
@@ -159,6 +159,38 @@ export interface ConnectorCheckOpts {
|
|
|
159
159
|
* steps share across connections from one `prepare` can fix.
|
|
160
160
|
*/
|
|
161
161
|
lookupConnections?: LookupConnectionIndex;
|
|
162
|
+
/**
|
|
163
|
+
* For a schema-dynamic operation compile would write no replay request for:
|
|
164
|
+
* its parents, and the ones these inputs leave without a literal value
|
|
165
|
+
* (`schemaReplayGap`, core/connector-configuration.ts). `undefined` otherwise.
|
|
166
|
+
*/
|
|
167
|
+
schemaReplayGap?: (spec: {
|
|
168
|
+
key: string;
|
|
169
|
+
action: string;
|
|
170
|
+
version?: string;
|
|
171
|
+
object?: string;
|
|
172
|
+
}, inputs: Record<string, unknown>) => {
|
|
173
|
+
parents: string[];
|
|
174
|
+
unresolved: string[];
|
|
175
|
+
} | undefined;
|
|
176
|
+
/**
|
|
177
|
+
* For a prepared schema-dynamic operation: the parents these inputs set to
|
|
178
|
+
* other literals than `prepare -f` recorded, and the `-f` flags that would
|
|
179
|
+
* record the step's values (`schemaReplayMismatch`). `undefined` otherwise.
|
|
180
|
+
*/
|
|
181
|
+
schemaReplayMismatch?: (spec: {
|
|
182
|
+
key: string;
|
|
183
|
+
action: string;
|
|
184
|
+
version?: string;
|
|
185
|
+
object?: string;
|
|
186
|
+
}, inputs: Record<string, unknown>) => {
|
|
187
|
+
mismatches: Array<{
|
|
188
|
+
name: string;
|
|
189
|
+
recorded: string;
|
|
190
|
+
given: string;
|
|
191
|
+
}>;
|
|
192
|
+
flags: string[];
|
|
193
|
+
} | undefined;
|
|
162
194
|
}
|
|
163
195
|
/**
|
|
164
196
|
* The `resource()` / `entity()` inputs.
|
|
@@ -9,6 +9,58 @@
|
|
|
9
9
|
* nodes already store. See {@link buildConfiguration} for why the split form
|
|
10
10
|
* broke the designer (flow-builder-sdk#936).
|
|
11
11
|
*/
|
|
12
|
+
/**
|
|
13
|
+
* The parents a prepared replay request was recorded for that the step sets to
|
|
14
|
+
* a DIFFERENT literal, as `{ name, recorded, given }`.
|
|
15
|
+
*
|
|
16
|
+
* `registry prepare -f <parent>=<value>` records the request
|
|
17
|
+
* (`customFieldsRequestDetails`) and the field set those values select. A step
|
|
18
|
+
* that names another project or issue type had its inputs checked against the
|
|
19
|
+
* old fields (#1972). A parent the step leaves unset, or
|
|
20
|
+
* sets from a runtime expression, is not compared: the recorded values are the
|
|
21
|
+
* author's design-time choice for it.
|
|
22
|
+
*/
|
|
23
|
+
export declare function schemaReplayParentMismatches(details: unknown, inputValues: Record<string, unknown> | undefined): Array<{
|
|
24
|
+
name: string;
|
|
25
|
+
recorded: string;
|
|
26
|
+
given: string;
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* The parents a schema-dynamic operation needs literal values for before
|
|
30
|
+
* compile can write a replay request, or `undefined` when it writes one (or
|
|
31
|
+
* needs none).
|
|
32
|
+
*
|
|
33
|
+
* An operation is schema-dynamic when the library records its design-time
|
|
34
|
+
* action (`operation.schemaAction` with `parents`). Compile writes the request
|
|
35
|
+
* `prepare -f` recorded, else one from the step's own literal parents; with a
|
|
36
|
+
* parent unset or computed at run time it writes `customFieldsRequestDetails:
|
|
37
|
+
* null`, which `validate` accepts and the designer cannot replay
|
|
38
|
+
* (`SCHEMA_REPLAY_MISSING`, #1972).
|
|
39
|
+
*/
|
|
40
|
+
export declare function schemaReplayGap(entry: any, inputValues: Record<string, unknown>): {
|
|
41
|
+
parents: string[];
|
|
42
|
+
unresolved: string[];
|
|
43
|
+
} | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* A prepared operation's mismatch for one step: the parents the step sets to
|
|
46
|
+
* another literal, and the `prepare` that would record the step's own values,
|
|
47
|
+
* or `undefined` when the step matches what was prepared (or nothing was).
|
|
48
|
+
*
|
|
49
|
+
* `prepare -f` records ONE request per operation, so two steps on the same
|
|
50
|
+
* operation with different parents (two entities, two Jira projects) cannot
|
|
51
|
+
* both match it. Compile therefore writes each step's own request (see
|
|
52
|
+
* {@link schemaReplayDetails}); what is left is that the step's inputs were
|
|
53
|
+
* validated against the prepared values' field set, which `check` reports as
|
|
54
|
+
* the warning `SCHEMA_REPLAY_PARENT_MISMATCH` (#1972).
|
|
55
|
+
*/
|
|
56
|
+
export declare function schemaReplayMismatch(entry: any, inputValues: Record<string, unknown>): {
|
|
57
|
+
mismatches: Array<{
|
|
58
|
+
name: string;
|
|
59
|
+
recorded: string;
|
|
60
|
+
given: string;
|
|
61
|
+
}>;
|
|
62
|
+
flags: string[];
|
|
63
|
+
} | undefined;
|
|
12
64
|
/**
|
|
13
65
|
* Compose the `=jsonString:`-wrapped configuration for a connector library entry.
|
|
14
66
|
*
|