@uipath/maestro-builder-sdk 6.59.0 → 6.60.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 +9 -3
- package/dist/api-members.md +39 -17
- package/dist/core/dotnet-types.d.ts +23 -0
- package/dist/core/dotnet-types.js +80 -0
- package/dist/core/refusals.d.ts +5 -0
- package/dist/core/refusals.js +5 -0
- package/dist/core/script-function.d.ts +12 -0
- package/dist/core/script-function.js +119 -1
- package/dist/nodes/agent/flow/resources.d.ts +0 -9
- package/dist/nodes/agent/flow/resources.js +2 -13
- package/dist/nodes/hitl/flow/action-schema.d.ts +63 -0
- package/dist/nodes/hitl/flow/action-schema.js +228 -0
- package/dist/nodes/hitl/flow/check.js +63 -3
- package/dist/nodes/hitl/flow/node-type.js +22 -0
- package/dist/nodes/hitl/flow/spec.d.ts +99 -0
- package/dist/nodes/script/flow/runtime.d.ts +17 -5
- package/dist/nodes/script/flow/runtime.js +40 -5
- package/dist/script-globals.d.ts +35 -0
- package/dist/script-globals.js +1 -0
- package/package.json +6 -2
package/dist/api-index.md
CHANGED
|
@@ -37,10 +37,14 @@ could hand you spans for a version you do not have.
|
|
|
37
37
|
|
|
38
38
|
## `@uipath/maestro-builder-sdk`
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
242 symbol(s). Import from `@uipath/maestro-builder-sdk`.
|
|
41
41
|
|
|
42
42
|
| Symbol | Kind | Declaration | Area | Summary |
|
|
43
43
|
| --- | --- | --- | --- | --- |
|
|
44
|
+
| `ActionSchema` | type | `dist/nodes/hitl/flow/spec.d.ts:283-284` | Supporting types | An Action App's action schema, in either spelling. |
|
|
45
|
+
| `ActionSchemaFile` | interface | `dist/nodes/hitl/flow/spec.d.ts:246-256` | Supporting types | A coded action app's `action-schema.json`. |
|
|
46
|
+
| `ActionSchemaProperty` | interface | `dist/nodes/hitl/flow/spec.d.ts:220-238` | Supporting types | One property of an `action-schema.json` section. |
|
|
47
|
+
| `ActionSchemaSection` | interface | `dist/nodes/hitl/flow/spec.d.ts:239-245` | Supporting types | One section (`inputs`, `outputs`, `inOuts`, `outcomes`) of an `action-schema.json`. |
|
|
44
48
|
| `ActionSpec` | type | `dist/core/actions.d.ts:847-855` | Supporting types | One action step's spec: `{ kind }` plus that kind's body from FlowActionSpecs, for every kind there. |
|
|
45
49
|
| `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… |
|
|
46
50
|
| `AgentFlavour` | type | `dist/nodes/process/flow/spec.d.ts:260-264` | Supporting types | Which KIND of agent project was published behind a `uipath.core.agent.<key>` resource. |
|
|
@@ -57,7 +61,7 @@ could hand you spans for a version you do not have.
|
|
|
57
61
|
| `AggregationOperation` | type | `dist/nodes/transform/flow/spec.d.ts:35` | Supporting types | |
|
|
58
62
|
| `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… |
|
|
59
63
|
| `ApiWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:70-101` | Option shapes | 5 field(s) |
|
|
60
|
-
| `AppRef` | interface | `dist/nodes/hitl/flow/spec.d.ts:140-
|
|
64
|
+
| `AppRef` | interface | `dist/nodes/hitl/flow/spec.d.ts:140-219` | Supporting types | A deployed Action App that supplies a human task's form — the `'action-app'` variant's subject. |
|
|
61
65
|
| `ArmBuilder` | class | `dist/flow-sdk.d.ts:1364-1387` | Builders | The sub-builder an ARM callback receives — a `StepList` that can also name itself with `.label(...)`. |
|
|
62
66
|
| `AskedField` | interface | `dist/core/actions.d.ts:221-240` | Supporting types | A value the reviewer FILLS IN: read downstream with `out('<step>', '<id>')`. |
|
|
63
67
|
| `at` | function | `dist/flow-sdk.d.ts:693-721` | Flow construction | A node's layout at a canvas position — the short form of a NodeLayout for the `nodes` map of FlowBuilder.layout. |
|
|
@@ -160,7 +164,7 @@ could hand you spans for a version you do not have.
|
|
|
160
164
|
| `HitlAssigneeType` | type | `dist/nodes/hitl/flow/spec.d.ts:16-23` | Supporting types | How the task is assigned, the platform's own vocabulary (canvas `HITL_ASSIGNEE_TYPE`): `'user'` a single user, `'group'`… |
|
|
161
165
|
| `HitlChannel` | type | `dist/nodes/hitl/flow/spec.d.ts:10-15` | Supporting types | Where the task is delivered. |
|
|
162
166
|
| `HitlConnection` | interface | `dist/nodes/hitl/flow/spec.d.ts:24-32` | Supporting types | A per-channel Integration Service connection (Slack / Teams delivery). |
|
|
163
|
-
| `HitlInputs` | interface | `dist/nodes/hitl/flow/spec.d.ts:
|
|
167
|
+
| `HitlInputs` | interface | `dist/nodes/hitl/flow/spec.d.ts:285-389` | Option shapes | 12 field(s) |
|
|
164
168
|
| `HitlRecipient` | interface | `dist/nodes/hitl/flow/spec.d.ts:33-69` | Supporting types | Who gets the task and over which channels. |
|
|
165
169
|
| `HitlVariant` | type | `dist/nodes/hitl/flow/spec.d.ts:114-139` | Supporting types | WHICH human-task node type to emit. |
|
|
166
170
|
| `http` | function | `dist/nodes/http/flow/factories.d.ts:7-14` | Actions | Declare an HTTP request action, explicitly choosing standalone or managed. |
|
|
@@ -204,6 +208,8 @@ could hand you spans for a version you do not have.
|
|
|
204
208
|
| `Outcome` | type | `dist/nodes/hitl/flow/spec.d.ts:94-113` | Supporting types | One completion button. |
|
|
205
209
|
| `OutputColumn` | interface | `dist/nodes/ai-patterns/flow/spec.d.ts:41-47` | Supporting types | One column Batch Transform appends to the CSV. |
|
|
206
210
|
| `ParallelOptions` | interface | `dist/flow-sdk.d.ts:447-470` | Option shapes | The options of `.parallel()`: the join's NodeOptions, plus the fork node when the flow has one. |
|
|
211
|
+
| `PlatformActionSchema` | interface | `dist/nodes/hitl/flow/spec.d.ts:270-282` | Supporting types | The platform's action schema (Apps API, a solution's `spec.actionSchema`). |
|
|
212
|
+
| `PlatformActionSchemaArg` | interface | `dist/nodes/hitl/flow/spec.d.ts:257-269` | Supporting types | One argument of the platform's action schema. |
|
|
207
213
|
| `PortArm` | interface | `dist/flow-sdk.d.ts:380-392` | Supporting types | One arm of a built `.stepSwitch` — the same shape as SwitchArm, but `value` names an exit the ACTION declares (a… |
|
|
208
214
|
| `ProcessLocation` | type | `dist/core/actions.d.ts:260-265` | Supporting types | Where a process resource lives: deployed to an Orchestrator folder (`'published'`, the default) or a sibling project of… |
|
|
209
215
|
| `ProcessToolKind` | type | `dist/core/actions.d.ts:622-635` | Supporting types | The tool kinds that wrap a DEPLOYED tenant resource. |
|
package/dist/api-members.md
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
# Maestro Builder SDK — member index
|
|
7
7
|
|
|
8
|
-
**A lookup table of
|
|
8
|
+
**A lookup table of 1224 rows — match one name in it, do not read it.**
|
|
9
9
|
Grep or search for the member you have; the row it lands on is the whole
|
|
10
10
|
answer. Reading top to bottom costs ~20x what the one row does and tells you
|
|
11
11
|
nothing you asked for.
|
|
12
12
|
|
|
13
|
-
Every field and method of every exported shape —
|
|
14
|
-
|
|
13
|
+
Every field and method of every exported shape — 1224 across
|
|
14
|
+
223 interfaces and classes — keyed by the MEMBER's own name.
|
|
15
15
|
|
|
16
16
|
**Use this when the name you have is a field or a method**, which is usually
|
|
17
17
|
the case: the reference pages are "one line per field", so you arrive holding
|
|
@@ -28,7 +28,7 @@ truncated summary would, for less. Read the span.
|
|
|
28
28
|
Member names repeat across shapes (`name` is declared on 69 of them), so the
|
|
29
29
|
`Declared on` column is what makes a match actionable. For the whole shape
|
|
30
30
|
rather than the one field, look that name up in [`api-index.md`](api-index.md) —
|
|
31
|
-
which is why its span is not repeated on all
|
|
31
|
+
which is why its span is not repeated on all 1224 rows here.
|
|
32
32
|
|
|
33
33
|
**A name that misses both indexes is probably not part of the API.** The one
|
|
34
34
|
that comes up is a RUNTIME output key — a human task's `Action`, a step's
|
|
@@ -50,6 +50,7 @@ not find it either.
|
|
|
50
50
|
| `action` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:997-1022` |
|
|
51
51
|
| `actionCatalogName` | property | `ActionSpecData` | `dist/case/case-sdk.d.ts:558-563` |
|
|
52
52
|
| `actions` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1403-1412` |
|
|
53
|
+
| `actionSchema` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:185-209` |
|
|
53
54
|
| `activity` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2966-2999` |
|
|
54
55
|
| `additionalOutputs` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:98-102` |
|
|
55
56
|
| `agent` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:381-384` |
|
|
@@ -63,7 +64,7 @@ not find it either.
|
|
|
63
64
|
| `apiWorkflow` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:369-372` |
|
|
64
65
|
| `apiWorkflow` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:903-912` |
|
|
65
66
|
| `app` | property | `EscalationRef` | `dist/core/actions.d.ts:729-756` |
|
|
66
|
-
| `app` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:
|
|
67
|
+
| `app` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:291-295` |
|
|
67
68
|
| `app` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1397-1398` |
|
|
68
69
|
| `app` | property | `HumanTaskFormOpts` | `dist/bpmn/bpmn-sdk.d.ts:1435-1436` |
|
|
69
70
|
| `appSystemName` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:170-175` |
|
|
@@ -225,6 +226,7 @@ not find it either.
|
|
|
225
226
|
| `definitions` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1621-1661` |
|
|
226
227
|
| `delay` | property | `FlowActionSpecs` | `dist/nodes/delay/flow/spec.d.ts:38-41` |
|
|
227
228
|
| `dependsOn` | property | `LookupSpec` | `dist/core/lookups.d.ts:34-35` |
|
|
229
|
+
| `description` | property | `ActionSchemaProperty` | `dist/nodes/hitl/flow/spec.d.ts:230-231` |
|
|
228
230
|
| `description` | property | `AgentMemoryRef` | `dist/core/actions.d.ts:551` |
|
|
229
231
|
| `description` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:768` |
|
|
230
232
|
| `description` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:837-838` |
|
|
@@ -283,7 +285,7 @@ not find it either.
|
|
|
283
285
|
| `displayName` | property | `RegistryInputField` | `dist/bpmn/typed-node.d.ts:65` |
|
|
284
286
|
| `displayName` | property | `SlaOpts` | `dist/case/case-sdk.d.ts:178-183` |
|
|
285
287
|
| `displayName` | property | `TriggerMeta` | `dist/core/connectors.d.ts:127-128` |
|
|
286
|
-
| `document` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:
|
|
288
|
+
| `document` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:384-388` |
|
|
287
289
|
| `documentClassify` | property | `FlowActionSpecs` | `dist/nodes/document/flow/spec.d.ts:152-155` |
|
|
288
290
|
| `documentId` | property | `DocValidationInputs` | `dist/nodes/hitl/flow/spec.d.ts:84-85` |
|
|
289
291
|
| `doWhile` | method | `StepList` | `dist/flow-sdk.d.ts:1198-1222` |
|
|
@@ -359,7 +361,7 @@ not find it either.
|
|
|
359
361
|
| `exitToStage` | property | `ExitOpts` | `dist/case/case-sdk.d.ts:816-830` |
|
|
360
362
|
| `exitWhen` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1250-1257` |
|
|
361
363
|
| `exponentialBase` | property | `RetrySpec` | `dist/bpmn/bpmn-sdk.d.ts:835-836` |
|
|
362
|
-
| `exposeError` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:
|
|
364
|
+
| `exposeError` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:344-350` |
|
|
363
365
|
| `expression` | property | `BuiltSla` | `dist/case/case-sdk.d.ts:199-200` |
|
|
364
366
|
| `expression` | property | `RuleOpts` | `dist/case/case-sdk.d.ts:83-84` |
|
|
365
367
|
| `expression` | property | `WhenExpression` | `dist/case/case-sdk.d.ts:109-110` |
|
|
@@ -377,7 +379,7 @@ not find it either.
|
|
|
377
379
|
| `field` | property | `LookupResolution` | `dist/core/lookups.d.ts:168` |
|
|
378
380
|
| `fields` | property | `DataFabricReadInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:105-106` |
|
|
379
381
|
| `fields` | property | `EscalationRef` | `dist/core/actions.d.ts:724-728` |
|
|
380
|
-
| `fields` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:
|
|
382
|
+
| `fields` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:300-309` |
|
|
381
383
|
| `fields` | property | `HumanTaskForm` | `dist/bpmn/human-task-form.d.ts:85-86` |
|
|
382
384
|
| `fileExtension` | property | `BuiltinToolRef` | `dist/core/actions.d.ts:579-580` |
|
|
383
385
|
| `fileExtension` | property | `ContextIndexRef` | `dist/core/actions.d.ts:805-806` |
|
|
@@ -438,6 +440,7 @@ not find it either.
|
|
|
438
440
|
| `form` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:210-217` |
|
|
439
441
|
| `form` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1399-1400` |
|
|
440
442
|
| `form` | property | `HumanTaskFormOpts` | `dist/bpmn/bpmn-sdk.d.ts:1433-1434` |
|
|
443
|
+
| `format` | property | `ActionSchemaProperty` | `dist/nodes/hitl/flow/spec.d.ts:232-233` |
|
|
441
444
|
| `from` | property | `CreateOutgoingCallInputs` | `dist/nodes/agent/flow/spec.d.ts:88-92` |
|
|
442
445
|
| `function` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:935-950` |
|
|
443
446
|
| `goto` | method | `PathBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3374-3398` |
|
|
@@ -451,7 +454,7 @@ not find it either.
|
|
|
451
454
|
| `height` | property | `StickyNote` | `dist/flow-sdk.d.ts:804-805` |
|
|
452
455
|
| `hidden` | property | `RegistryContextField` | `dist/bpmn/typed-node.d.ts:27` |
|
|
453
456
|
| `hidden` | property | `RegistryInputField` | `dist/bpmn/typed-node.d.ts:68` |
|
|
454
|
-
| `hitl` | property | `FlowActionSpecs` | `dist/nodes/hitl/flow/spec.d.ts:
|
|
457
|
+
| `hitl` | property | `FlowActionSpecs` | `dist/nodes/hitl/flow/spec.d.ts:392-395` |
|
|
455
458
|
| `http` | property | `FlowActionSpecs` | `dist/nodes/http/flow/spec.d.ts:145-148` |
|
|
456
459
|
| `http` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2462-2496` |
|
|
457
460
|
| `humanTask` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2719-2802` |
|
|
@@ -497,6 +500,8 @@ not find it either.
|
|
|
497
500
|
| `inclusive` | property | `ChooseOpts` | `dist/bpmn/bpmn-sdk.d.ts:1906-1910` |
|
|
498
501
|
| `inclusiveGateway` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2362-2369` |
|
|
499
502
|
| `inlineAgent` | property | `FlowActionSpecs` | `dist/nodes/agent/flow/spec.d.ts:443-446` |
|
|
503
|
+
| `inOuts` | property | `ActionSchemaFile` | `dist/nodes/hitl/flow/spec.d.ts:252-253` |
|
|
504
|
+
| `inOuts` | property | `PlatformActionSchema` | `dist/nodes/hitl/flow/spec.d.ts:276-277` |
|
|
500
505
|
| `input` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1402-1427` |
|
|
501
506
|
| `input` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1702-1714` |
|
|
502
507
|
| `input` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1415-1416` |
|
|
@@ -505,6 +510,7 @@ not find it either.
|
|
|
505
510
|
| `inputName` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:92` |
|
|
506
511
|
| `inputPattern` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:91` |
|
|
507
512
|
| `inputRows` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1618-1626` |
|
|
513
|
+
| `inputs` | property | `ActionSchemaFile` | `dist/nodes/hitl/flow/spec.d.ts:248-249` |
|
|
508
514
|
| `inputs` | property | `ActionSpecData` | `dist/case/case-sdk.d.ts:564-565` |
|
|
509
515
|
| `inputs` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1616-1617` |
|
|
510
516
|
| `inputs` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:204-209` |
|
|
@@ -518,6 +524,7 @@ not find it either.
|
|
|
518
524
|
| `inputs` | property | `ExternalTaskOptions` | `dist/case/case-sdk.d.ts:455-456` |
|
|
519
525
|
| `inputs` | property | `InlineAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:228-258` |
|
|
520
526
|
| `inputs` | property | `NodeContribution` | `dist/core/node-classes.d.ts:113-117` |
|
|
527
|
+
| `inputs` | property | `PlatformActionSchema` | `dist/nodes/hitl/flow/spec.d.ts:272-273` |
|
|
521
528
|
| `inputs` | property | `ProcessToolRef` | `dist/core/actions.d.ts:661-662` |
|
|
522
529
|
| `inputs` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:150-151` |
|
|
523
530
|
| `inputs` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:95-96` |
|
|
@@ -527,6 +534,7 @@ not find it either.
|
|
|
527
534
|
| `inputs` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1112-1124` |
|
|
528
535
|
| `inputs` | property | `VoiceAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:136-141` |
|
|
529
536
|
| `inputSchema` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1669-1677` |
|
|
537
|
+
| `inputSchema` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:210-218` |
|
|
530
538
|
| `inputSchema` | property | `ScriptTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:953-964` |
|
|
531
539
|
| `inputTarget` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:93` |
|
|
532
540
|
| `intermediateCatchEvent` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2319-2326` |
|
|
@@ -541,9 +549,11 @@ not find it either.
|
|
|
541
549
|
| `isDynamic` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:107-114` |
|
|
542
550
|
| `isInterrupting` | property | `BuiltEntryCondition` | `dist/case/case-sdk.d.ts:322` |
|
|
543
551
|
| `isInterrupting` | property | `EntryOpts` | `dist/case/case-sdk.d.ts:798` |
|
|
552
|
+
| `isList` | property | `PlatformActionSchemaArg` | `dist/nodes/hitl/flow/spec.d.ts:265-266` |
|
|
544
553
|
| `isNot` | property | `FormFieldCondition` | `dist/core/actions.d.ts:123-124` |
|
|
545
554
|
| `item` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:26-31` |
|
|
546
555
|
| `item` | property | `QueueItemOpts` | `dist/bpmn/bpmn-sdk.d.ts:1342-1343` |
|
|
556
|
+
| `items` | property | `ActionSchemaProperty` | `dist/nodes/hitl/flow/spec.d.ts:234-235` |
|
|
547
557
|
| `itemVar` | property | `LoopSpec` | `dist/bpmn/bpmn-sdk.d.ts:83-84` |
|
|
548
558
|
| `ixpExtract` | property | `FlowActionSpecs` | `dist/nodes/document/flow/spec.d.ts:160-163` |
|
|
549
559
|
| `join` | property | `ChooseOpts` | `dist/bpmn/bpmn-sdk.d.ts:1911-1912` |
|
|
@@ -588,14 +598,14 @@ not find it either.
|
|
|
588
598
|
| `label` | property | `SwitchArm` | `dist/flow-sdk.d.ts:370` |
|
|
589
599
|
| `labels` | property | `ActionSpecData` | `dist/case/case-sdk.d.ts:556-557` |
|
|
590
600
|
| `labels` | property | `EscalationRef` | `dist/core/actions.d.ts:769-770` |
|
|
591
|
-
| `labels` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:
|
|
601
|
+
| `labels` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:327-328` |
|
|
592
602
|
| `labels` | property | `HumanTaskFormOpts` | `dist/bpmn/bpmn-sdk.d.ts:1439-1440` |
|
|
593
603
|
| `lanes` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:639` |
|
|
594
604
|
| `layout` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:783-784` |
|
|
595
605
|
| `layout` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:856-857` |
|
|
596
606
|
| `layout` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1381-1401` |
|
|
597
607
|
| `layout` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1422-1448` |
|
|
598
|
-
| `legacyCompleted` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:
|
|
608
|
+
| `legacyCompleted` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:351-383` |
|
|
599
609
|
| `limit` | property | `DataFabricReadInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:95-100` |
|
|
600
610
|
| `limit` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:552-553` |
|
|
601
611
|
| `literal` | property | `Expr` | `dist/core/expr.d.ts:18` |
|
|
@@ -718,6 +728,7 @@ not find it either.
|
|
|
718
728
|
| `name` | property | `OutputColumn` | `dist/nodes/ai-patterns/flow/spec.d.ts:43-44` |
|
|
719
729
|
| `name` | property | `PendingExit` | `dist/bpmn/bpmn-sdk.d.ts:2010-2011` |
|
|
720
730
|
| `name` | property | `PlainTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1703-1704` |
|
|
731
|
+
| `name` | property | `PlatformActionSchemaArg` | `dist/nodes/hitl/flow/spec.d.ts:259-260` |
|
|
721
732
|
| `name` | property | `ProcessToolRef` | `dist/core/actions.d.ts:651-652` |
|
|
722
733
|
| `name` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:120-121` |
|
|
723
734
|
| `name` | property | `QueueItemOpts` | `dist/bpmn/bpmn-sdk.d.ts:1336-1337` |
|
|
@@ -782,10 +793,12 @@ not find it either.
|
|
|
782
793
|
| `options` | property | `FormFieldSettings` | `dist/core/actions.d.ts:192-196` |
|
|
783
794
|
| `or` | property | `DataFabricFilter` | `dist/nodes/data-fabric/flow/spec.d.ts:38-50` |
|
|
784
795
|
| `origin` | property | `PendingExit` | `dist/bpmn/bpmn-sdk.d.ts:2014-2019` |
|
|
785
|
-
| `outcomePorts` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:
|
|
796
|
+
| `outcomePorts` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:329-343` |
|
|
797
|
+
| `outcomes` | property | `ActionSchemaFile` | `dist/nodes/hitl/flow/spec.d.ts:254-255` |
|
|
786
798
|
| `outcomes` | property | `EscalationRef` | `dist/core/actions.d.ts:759-764` |
|
|
787
|
-
| `outcomes` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:
|
|
799
|
+
| `outcomes` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:310-324` |
|
|
788
800
|
| `outcomes` | property | `HumanTaskForm` | `dist/bpmn/human-task-form.d.ts:87-91` |
|
|
801
|
+
| `outcomes` | property | `PlatformActionSchema` | `dist/nodes/hitl/flow/spec.d.ts:278-279` |
|
|
789
802
|
| `output` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1428-1440` |
|
|
790
803
|
| `output` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1715-1750` |
|
|
791
804
|
| `output` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:97` |
|
|
@@ -794,6 +807,7 @@ not find it either.
|
|
|
794
807
|
| `outputRows` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1646-1652` |
|
|
795
808
|
| `outputRows` | property | `ExtensionPayload` | `dist/bpmn/bpmn-sdk.d.ts:616-617` |
|
|
796
809
|
| `outputRows` | property | `ScriptTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:943-952` |
|
|
810
|
+
| `outputs` | property | `ActionSchemaFile` | `dist/nodes/hitl/flow/spec.d.ts:250-251` |
|
|
797
811
|
| `outputs` | property | `ActionSpecData` | `dist/case/case-sdk.d.ts:566-567` |
|
|
798
812
|
| `outputs` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1644-1645` |
|
|
799
813
|
| `outputs` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:848` |
|
|
@@ -805,6 +819,7 @@ not find it either.
|
|
|
805
819
|
| `outputs` | property | `HumanTaskCommonOpts` | `dist/bpmn/bpmn-sdk.d.ts:1372-1382` |
|
|
806
820
|
| `outputs` | property | `NodeContribution` | `dist/core/node-classes.d.ts:118-122` |
|
|
807
821
|
| `outputs` | property | `OrchestratorOpts` | `dist/bpmn/bpmn-sdk.d.ts:1302-1313` |
|
|
822
|
+
| `outputs` | property | `PlatformActionSchema` | `dist/nodes/hitl/flow/spec.d.ts:274-275` |
|
|
808
823
|
| `outputs` | property | `QueueItemOpts` | `dist/bpmn/bpmn-sdk.d.ts:1349-1360` |
|
|
809
824
|
| `outputs` | property | `ReceiveMessageOpts` | `dist/bpmn/bpmn-sdk.d.ts:1475-1490` |
|
|
810
825
|
| `outputs` | property | `ResolvedEventTriggerOpts` | `dist/case/case-sdk.d.ts:296-300` |
|
|
@@ -850,7 +865,7 @@ not find it either.
|
|
|
850
865
|
| `priority` | property | `ActionSpecData` | `dist/case/case-sdk.d.ts:551` |
|
|
851
866
|
| `priority` | property | `ErrorMappingRow` | `dist/bpmn/bpmn-sdk.d.ts:330-331` |
|
|
852
867
|
| `priority` | property | `EscalationRef` | `dist/core/actions.d.ts:767-768` |
|
|
853
|
-
| `priority` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:
|
|
868
|
+
| `priority` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:298-299` |
|
|
854
869
|
| `priority` | property | `HumanTaskFormOpts` | `dist/bpmn/bpmn-sdk.d.ts:1437-1438` |
|
|
855
870
|
| `priority` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:32-33` |
|
|
856
871
|
| `process` | property | `OrchestratorOpts` | `dist/bpmn/bpmn-sdk.d.ts:1260-1278` |
|
|
@@ -864,6 +879,8 @@ not find it either.
|
|
|
864
879
|
| `projectId` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:39-46` |
|
|
865
880
|
| `prompt` | property | `BatchTransformInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:54-55` |
|
|
866
881
|
| `prompt` | property | `SummarizeInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:32-33` |
|
|
882
|
+
| `properties` | property | `ActionSchemaProperty` | `dist/nodes/hitl/flow/spec.d.ts:236-237` |
|
|
883
|
+
| `properties` | property | `ActionSchemaSection` | `dist/nodes/hitl/flow/spec.d.ts:243-244` |
|
|
867
884
|
| `propertyAttribute` | property | `BindingContribution` | `dist/core/node-classes.d.ts:97-98` |
|
|
868
885
|
| `propertyAttribute` | property | `BindingDecl` | `dist/bpmn/bpmn-sdk.d.ts:427-428` |
|
|
869
886
|
| `propertyAttribute` | property | `BindingOpts` | `dist/bpmn/bpmn-sdk.d.ts:1069-1070` |
|
|
@@ -878,7 +895,7 @@ not find it either.
|
|
|
878
895
|
| `race` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3132-3162` |
|
|
879
896
|
| `receiveMessage` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2803-2844` |
|
|
880
897
|
| `recipient` | property | `ActionSpecData` | `dist/case/case-sdk.d.ts:552-555` |
|
|
881
|
-
| `recipient` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:
|
|
898
|
+
| `recipient` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:325-326` |
|
|
882
899
|
| `recipients` | property | `EscalationRef` | `dist/core/actions.d.ts:757-758` |
|
|
883
900
|
| `record` | property | `DataFabricDeleteInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:195-196` |
|
|
884
901
|
| `record` | property | `DataFabricUpdateInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:163-164` |
|
|
@@ -891,6 +908,7 @@ not find it either.
|
|
|
891
908
|
| `render` | property | `DocValidationInputs` | `dist/nodes/hitl/flow/spec.d.ts:86-90` |
|
|
892
909
|
| `requestedVersion` | property | `ContributionContext` | `dist/core/node-classes.d.ts:72-78` |
|
|
893
910
|
| `required` | property | `ActionField` | `dist/case/case-sdk.d.ts:531-532` |
|
|
911
|
+
| `required` | property | `ActionSchemaProperty` | `dist/nodes/hitl/flow/spec.d.ts:228-229` |
|
|
894
912
|
| `required` | property | `AskedField` | `dist/core/actions.d.ts:229-230` |
|
|
895
913
|
| `required` | property | `BpmnVarDecl` | `dist/bpmn/bpmn-sdk.d.ts:406-407` |
|
|
896
914
|
| `required` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:638` |
|
|
@@ -898,6 +916,7 @@ not find it either.
|
|
|
898
916
|
| `required` | property | `HumanTaskAskedField` | `dist/bpmn/human-task-form.d.ts:55-56` |
|
|
899
917
|
| `required` | property | `HumanTaskInOutField` | `dist/bpmn/human-task-form.d.ts:71-72` |
|
|
900
918
|
| `required` | property | `InOutField` | `dist/core/actions.d.ts:256-257` |
|
|
919
|
+
| `required` | property | `PlatformActionSchemaArg` | `dist/nodes/hitl/flow/spec.d.ts:263-264` |
|
|
901
920
|
| `required` | property | `RegistryContextField` | `dist/bpmn/typed-node.d.ts:26` |
|
|
902
921
|
| `required` | property | `RegistryInputField` | `dist/bpmn/typed-node.d.ts:67` |
|
|
903
922
|
| `required` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1209-1215` |
|
|
@@ -1110,7 +1129,7 @@ not find it either.
|
|
|
1110
1129
|
| `title` | property | `ActionSpecData` | `dist/case/case-sdk.d.ts:550` |
|
|
1111
1130
|
| `title` | property | `CaseAppSection` | `dist/case/case-sdk.d.ts:690-691` |
|
|
1112
1131
|
| `title` | property | `GuardrailFieldReference` | `dist/core/actions.d.ts:298` |
|
|
1113
|
-
| `title` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:
|
|
1132
|
+
| `title` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:296-297` |
|
|
1114
1133
|
| `title` | property | `HumanTaskCommonOpts` | `dist/bpmn/bpmn-sdk.d.ts:1370-1371` |
|
|
1115
1134
|
| `to` | property | `CreateOutgoingCallInputs` | `dist/nodes/agent/flow/spec.d.ts:93-94` |
|
|
1116
1135
|
| `tool` | property | `BuiltinToolRef` | `dist/core/actions.d.ts:569-570` |
|
|
@@ -1130,6 +1149,8 @@ not find it either.
|
|
|
1130
1149
|
| `triggers` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:781-782` |
|
|
1131
1150
|
| `triggers` | property | `CaseLayout` | `dist/case/case-sdk.d.ts:732-733` |
|
|
1132
1151
|
| `type` | property | `ActionField` | `dist/case/case-sdk.d.ts:516-517` |
|
|
1152
|
+
| `type` | property | `ActionSchemaProperty` | `dist/nodes/hitl/flow/spec.d.ts:222-227` |
|
|
1153
|
+
| `type` | property | `ActionSchemaSection` | `dist/nodes/hitl/flow/spec.d.ts:241-242` |
|
|
1133
1154
|
| `type` | property | `AskedField` | `dist/core/actions.d.ts:227` |
|
|
1134
1155
|
| `type` | property | `BindingContribution` | `dist/core/node-classes.d.ts:89-90` |
|
|
1135
1156
|
| `type` | property | `BpmnVarDecl` | `dist/bpmn/bpmn-sdk.d.ts:390-391` |
|
|
@@ -1143,6 +1164,7 @@ not find it either.
|
|
|
1143
1164
|
| `type` | property | `HumanTaskShownField` | `dist/bpmn/human-task-form.d.ts:37-38` |
|
|
1144
1165
|
| `type` | property | `InOutField` | `dist/core/actions.d.ts:252` |
|
|
1145
1166
|
| `type` | property | `JsonSchemaType` | `dist/case/case-sdk.d.ts:650` |
|
|
1167
|
+
| `type` | property | `PlatformActionSchemaArg` | `dist/nodes/hitl/flow/spec.d.ts:261-262` |
|
|
1146
1168
|
| `type` | property | `RegistryContextField` | `dist/bpmn/typed-node.d.ts:25` |
|
|
1147
1169
|
| `type` | property | `RegistryInputField` | `dist/bpmn/typed-node.d.ts:66` |
|
|
1148
1170
|
| `type` | property | `RegistryOutput` | `dist/bpmn/typed-node.d.ts:80` |
|
|
@@ -1198,7 +1220,7 @@ not find it either.
|
|
|
1198
1220
|
| `variableOrder` | property | `BpmnPreservation` | `dist/bpmn/bpmn-sdk.d.ts:480-502` |
|
|
1199
1221
|
| `variables` | property | `BuiltBpmn` | `dist/bpmn/bpmn-sdk.d.ts:513-514` |
|
|
1200
1222
|
| `variant` | property | `EscalationRef` | `dist/core/actions.d.ts:715-723` |
|
|
1201
|
-
| `variant` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:
|
|
1223
|
+
| `variant` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:286-290` |
|
|
1202
1224
|
| `variant` | property | `TransformInputs` | `dist/nodes/transform/flow/spec.d.ts:96-105` |
|
|
1203
1225
|
| `vars` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:775` |
|
|
1204
1226
|
| `vars` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:849` |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One app argument's JSON Schema, from its .NET type — flow-workbench's
|
|
3
|
+
* `transformArgToSchemaProperty`, key for key: a list wraps its item type in an
|
|
4
|
+
* array, and nothing else of the argument (its nested `properties`, its
|
|
5
|
+
* description) is carried.
|
|
6
|
+
*/
|
|
7
|
+
export declare function dotNetTypeToJsonSchema(type: string, isList?: boolean): Record<string, unknown>;
|
|
8
|
+
/**
|
|
9
|
+
* The .NET type `uip codedapp push` gives an `action-schema.json` property of
|
|
10
|
+
* this `type` and `format` (for an array, its `items`' type and format), or
|
|
11
|
+
* `undefined` for a type it refuses. A `uuid` or `date` format wins over the type.
|
|
12
|
+
*/
|
|
13
|
+
export declare function actionSchemaFileDotNetType(type: unknown, format?: unknown): string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* The .NET type an agent escalation's Action Center app argument of each field
|
|
16
|
+
* type carries. Studio Web serializes the task payload through
|
|
17
|
+
* `inputSchemaDotnetTypeMapping`, which the platform schema REQUIRES on an
|
|
18
|
+
* `actionCenter` channel; it reads the raw type off the app's action schema,
|
|
19
|
+
* which the SDK does not fetch, so this is the inverse of
|
|
20
|
+
* {@link dotNetTypeToJsonSchema} for the scalars and `System.Object` for the two
|
|
21
|
+
* composite types it has no single answer for.
|
|
22
|
+
*/
|
|
23
|
+
export declare const ESCALATION_DOTNET_TYPE: Readonly<Record<string, string>>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The .NET type names an Action Center app's arguments carry, and the JSON
|
|
3
|
+
* Schema each one becomes — every direction the SDK converts in, in one place,
|
|
4
|
+
* so the tables cannot drift apart across the two families that use them (the
|
|
5
|
+
* human task's app, nodes/hitl; the agent escalation's app, nodes/agent).
|
|
6
|
+
*
|
|
7
|
+
* Three tables, from three platform sources. They do not agree with each other,
|
|
8
|
+
* and that is the platform's state, not a slip here:
|
|
9
|
+
*
|
|
10
|
+
* - {@link dotNetTypeToJsonSchema} — .NET → JSON Schema, flow-workbench's own
|
|
11
|
+
* (`@uipath/flow-schema` `agents/escalation-utils.ts`), which Studio Web's
|
|
12
|
+
* Action App picker runs to write a task's `inputs.app.inputSchema`. An
|
|
13
|
+
* unmapped type passes through AS the JSON type (`System.Object` →
|
|
14
|
+
* `{ type: 'System.Object' }`); that is the product's emission, so it is ours.
|
|
15
|
+
* - {@link actionSchemaFileDotNetType} — a coded action app's
|
|
16
|
+
* `action-schema.json` type → .NET, uipath-cli's `uip codedapp push`
|
|
17
|
+
* (`packager-tool-webapp/src/action-schema/parse.ts`
|
|
18
|
+
* `mapJsonTypeToSystemType`). `number` is `System.Decimal` and `integer`
|
|
19
|
+
* `System.Int64` there.
|
|
20
|
+
* - {@link ESCALATION_DOTNET_TYPE} — an agent escalation field type → .NET, the
|
|
21
|
+
* SDK's own inverse of the first for the scalars (`number` is `System.Double`
|
|
22
|
+
* and `integer` `System.Int32`), written onto `inputSchemaDotnetTypeMapping`.
|
|
23
|
+
*/
|
|
24
|
+
import { ownEntry } from './own-entry.js';
|
|
25
|
+
const DOTNET_STRING = new Set(['System.String', 'System.Char', 'System.Guid', 'System.Uri', 'System.TimeSpan']);
|
|
26
|
+
const DOTNET_DATE = new Set(['System.DateTime', 'System.DateOnly', 'System.DateTimeOffset']);
|
|
27
|
+
const DOTNET_INTEGER = new Set([
|
|
28
|
+
'System.Int32', 'System.Int64', 'System.Int16', 'System.Byte', 'System.SByte',
|
|
29
|
+
'System.UInt16', 'System.UInt32', 'System.UInt64',
|
|
30
|
+
]);
|
|
31
|
+
const DOTNET_NUMBER = new Set(['System.Double', 'System.Decimal', 'System.Single', 'System.Number']);
|
|
32
|
+
/**
|
|
33
|
+
* One app argument's JSON Schema, from its .NET type — flow-workbench's
|
|
34
|
+
* `transformArgToSchemaProperty`, key for key: a list wraps its item type in an
|
|
35
|
+
* array, and nothing else of the argument (its nested `properties`, its
|
|
36
|
+
* description) is carried.
|
|
37
|
+
*/
|
|
38
|
+
export function dotNetTypeToJsonSchema(type, isList = false) {
|
|
39
|
+
const base = DOTNET_STRING.has(type) ? { type: 'string' }
|
|
40
|
+
: DOTNET_DATE.has(type) ? { type: 'string', format: 'date-time' }
|
|
41
|
+
: DOTNET_INTEGER.has(type) ? { type: 'integer' }
|
|
42
|
+
: DOTNET_NUMBER.has(type) ? { type: 'number' }
|
|
43
|
+
: type === 'System.Boolean' ? { type: 'boolean' }
|
|
44
|
+
: { type };
|
|
45
|
+
return isList && base.type !== 'array' ? { type: 'array', items: { type: base.type } } : base;
|
|
46
|
+
}
|
|
47
|
+
const FILE_TYPE_DOTNET = {
|
|
48
|
+
string: 'System.String',
|
|
49
|
+
integer: 'System.Int64',
|
|
50
|
+
number: 'System.Decimal',
|
|
51
|
+
boolean: 'System.Boolean',
|
|
52
|
+
object: 'System.Object',
|
|
53
|
+
file: 'UiPath.Platform.ResourceHandling.IResource',
|
|
54
|
+
ContentValidationData: 'UiPath.DocumentProcessing.Contracts.Actions.ContentValidationData',
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* The .NET type `uip codedapp push` gives an `action-schema.json` property of
|
|
58
|
+
* this `type` and `format` (for an array, its `items`' type and format), or
|
|
59
|
+
* `undefined` for a type it refuses. A `uuid` or `date` format wins over the type.
|
|
60
|
+
*/
|
|
61
|
+
export function actionSchemaFileDotNetType(type, format) {
|
|
62
|
+
if (format === 'uuid')
|
|
63
|
+
return 'System.Guid';
|
|
64
|
+
if (format === 'date')
|
|
65
|
+
return 'System.DateOnly';
|
|
66
|
+
return typeof type === 'string' ? ownEntry(FILE_TYPE_DOTNET, type) : undefined;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The .NET type an agent escalation's Action Center app argument of each field
|
|
70
|
+
* type carries. Studio Web serializes the task payload through
|
|
71
|
+
* `inputSchemaDotnetTypeMapping`, which the platform schema REQUIRES on an
|
|
72
|
+
* `actionCenter` channel; it reads the raw type off the app's action schema,
|
|
73
|
+
* which the SDK does not fetch, so this is the inverse of
|
|
74
|
+
* {@link dotNetTypeToJsonSchema} for the scalars and `System.Object` for the two
|
|
75
|
+
* composite types it has no single answer for.
|
|
76
|
+
*/
|
|
77
|
+
export const ESCALATION_DOTNET_TYPE = {
|
|
78
|
+
string: 'System.String', number: 'System.Double', integer: 'System.Int32',
|
|
79
|
+
boolean: 'System.Boolean', object: 'System.Object', array: 'System.Object',
|
|
80
|
+
};
|
package/dist/core/refusals.d.ts
CHANGED
|
@@ -169,7 +169,12 @@ export declare const REFUSALS: {
|
|
|
169
169
|
readonly GUARDRAIL_NO_VALIDATOR: "lint";
|
|
170
170
|
readonly GUARDRAIL_TYPE_UNKNOWN: "lint";
|
|
171
171
|
readonly HITL_APP_INCOMPLETE: "lint";
|
|
172
|
+
readonly HITL_APP_INPUT_REQUIRED: "lint";
|
|
173
|
+
readonly HITL_APP_INPUT_UNKNOWN: "lint";
|
|
172
174
|
readonly HITL_APP_MISSING: "lint";
|
|
175
|
+
readonly HITL_APP_NO_SCHEMA: "lint";
|
|
176
|
+
readonly HITL_APP_OUTCOME_UNKNOWN: "lint";
|
|
177
|
+
readonly HITL_APP_SCHEMA_INVALID: "lint";
|
|
173
178
|
readonly HITL_APP_WITHOUT_VARIANT: "lint";
|
|
174
179
|
readonly HITL_APP_WITH_FIELDS: "lint";
|
|
175
180
|
readonly HITL_CHANNEL_UNKNOWN: "lint";
|
package/dist/core/refusals.js
CHANGED
|
@@ -206,7 +206,12 @@ export const REFUSALS = {
|
|
|
206
206
|
GUARDRAIL_NO_VALIDATOR: 'lint',
|
|
207
207
|
GUARDRAIL_TYPE_UNKNOWN: 'lint',
|
|
208
208
|
HITL_APP_INCOMPLETE: 'lint',
|
|
209
|
+
HITL_APP_INPUT_REQUIRED: 'lint',
|
|
210
|
+
HITL_APP_INPUT_UNKNOWN: 'lint',
|
|
209
211
|
HITL_APP_MISSING: 'lint',
|
|
212
|
+
HITL_APP_NO_SCHEMA: 'lint',
|
|
213
|
+
HITL_APP_OUTCOME_UNKNOWN: 'lint',
|
|
214
|
+
HITL_APP_SCHEMA_INVALID: 'lint',
|
|
210
215
|
HITL_APP_WITHOUT_VARIANT: 'lint',
|
|
211
216
|
HITL_APP_WITH_FIELDS: 'lint',
|
|
212
217
|
HITL_CHANNEL_UNKNOWN: 'lint',
|
|
@@ -33,6 +33,18 @@ export interface ScriptRuntime {
|
|
|
33
33
|
scopeGlobal: string;
|
|
34
34
|
/** Every other global name the runtime provides: the language built-ins it has, `console`. */
|
|
35
35
|
globals: ReadonlySet<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Globals the runtime declares with `const` before the body runs. The body
|
|
38
|
+
* runs as a script, so declaring one at its top level is an early error
|
|
39
|
+
* ("Identifier '…' has already been declared"), and assigning one is a
|
|
40
|
+
* runtime error ("Assignment to constant variable.").
|
|
41
|
+
*/
|
|
42
|
+
constGlobals?: ReadonlySet<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Globals that are objects with a fixed set of members: any other member reads
|
|
45
|
+
* `undefined` in the runtime, so reading one is refused.
|
|
46
|
+
*/
|
|
47
|
+
globalMembers?: ReadonlyMap<string, ReadonlySet<string>>;
|
|
36
48
|
/** How errors name the runtime: `the Flow script runtime`. */
|
|
37
49
|
name: string;
|
|
38
50
|
}
|
|
@@ -201,6 +201,7 @@ class Lowering {
|
|
|
201
201
|
this.checkNoCapture();
|
|
202
202
|
this.checkNoRedeclaredParameter();
|
|
203
203
|
}
|
|
204
|
+
this.checkConstGlobals();
|
|
204
205
|
this.visit(fn.body, 0);
|
|
205
206
|
if (this.aliased.size > 0) {
|
|
206
207
|
const name = [...this.aliased][0];
|
|
@@ -306,6 +307,102 @@ class Lowering {
|
|
|
306
307
|
+ 'Give the local a name of its own.');
|
|
307
308
|
}
|
|
308
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* Refuse what the runtime's `const` globals make fail: a declaration of one at
|
|
312
|
+
* the body's top level, and an assignment to one where it is still the global.
|
|
313
|
+
* The body runs as a script, so its top level is the global scope: a `let`,
|
|
314
|
+
* `const`, `function` or `class` statement directly in it, and a `var` anywhere
|
|
315
|
+
* outside a nested function (it hoists), collides with the runtime's `const`.
|
|
316
|
+
*/
|
|
317
|
+
checkConstGlobals() {
|
|
318
|
+
const { ts } = this;
|
|
319
|
+
const reserved = this.runtime.constGlobals;
|
|
320
|
+
if (!reserved || reserved.size === 0)
|
|
321
|
+
return;
|
|
322
|
+
const declared = new Set();
|
|
323
|
+
const assigned = new Set();
|
|
324
|
+
const body = this.fn.body;
|
|
325
|
+
const names = (n, into) => {
|
|
326
|
+
if (ts.isIdentifier(n)) {
|
|
327
|
+
if (reserved.has(n.text))
|
|
328
|
+
into.add(n.text);
|
|
329
|
+
return;
|
|
330
|
+
}
|
|
331
|
+
for (const e of n.elements)
|
|
332
|
+
if (!ts.isOmittedExpression(e))
|
|
333
|
+
names(e.name, into);
|
|
334
|
+
};
|
|
335
|
+
// Declarations need a block body; an expression-bodied arrow has none, but
|
|
336
|
+
// its expression can still assign one (below).
|
|
337
|
+
if (ts.isBlock(body)) {
|
|
338
|
+
for (let stmt of body.statements) {
|
|
339
|
+
// A label does not scope what it labels: `l: function console() {}` collides too (measured).
|
|
340
|
+
while (ts.isLabeledStatement(stmt))
|
|
341
|
+
stmt = stmt.statement;
|
|
342
|
+
if (ts.isVariableStatement(stmt))
|
|
343
|
+
for (const d of stmt.declarationList.declarations)
|
|
344
|
+
names(d.name, declared);
|
|
345
|
+
if ((ts.isFunctionDeclaration(stmt) || ts.isClassDeclaration(stmt)) && stmt.name && reserved.has(stmt.name.text))
|
|
346
|
+
declared.add(stmt.name.text);
|
|
347
|
+
}
|
|
348
|
+
// A `var` in a nested block hoists to the top level too.
|
|
349
|
+
const vars = (n) => {
|
|
350
|
+
if (ts.isFunctionLike(n) || ts.isClassLike(n))
|
|
351
|
+
return;
|
|
352
|
+
if (ts.isVariableDeclarationList(n) && (n.flags & ts.NodeFlags.BlockScoped) === 0)
|
|
353
|
+
for (const d of n.declarations)
|
|
354
|
+
names(d.name, declared);
|
|
355
|
+
ts.forEachChild(n, vars);
|
|
356
|
+
};
|
|
357
|
+
ts.forEachChild(body, vars);
|
|
358
|
+
}
|
|
359
|
+
// An assignment to the global itself: an unresolved target with a reserved name.
|
|
360
|
+
const targets = (e) => {
|
|
361
|
+
if (ts.isIdentifier(e)) {
|
|
362
|
+
if (reserved.has(e.text) && !this.resolves(e))
|
|
363
|
+
assigned.add(e.text);
|
|
364
|
+
}
|
|
365
|
+
else if (ts.isParenthesizedExpression(e))
|
|
366
|
+
targets(e.expression);
|
|
367
|
+
else if (ts.isArrayLiteralExpression(e))
|
|
368
|
+
e.elements.forEach((x) => targets(ts.isSpreadElement(x) ? x.expression : x));
|
|
369
|
+
else if (ts.isObjectLiteralExpression(e)) {
|
|
370
|
+
for (const p of e.properties) {
|
|
371
|
+
if (ts.isShorthandPropertyAssignment(p)) {
|
|
372
|
+
// The name resolves to the property; the value assigned is the variable's own symbol.
|
|
373
|
+
const sym = this.checker.getShorthandAssignmentValueSymbol(p);
|
|
374
|
+
if (reserved.has(p.name.text) && (!sym || isUndefinedSymbol(sym)))
|
|
375
|
+
assigned.add(p.name.text);
|
|
376
|
+
}
|
|
377
|
+
else if (ts.isPropertyAssignment(p))
|
|
378
|
+
targets(p.initializer);
|
|
379
|
+
else if (ts.isSpreadAssignment(p))
|
|
380
|
+
targets(p.expression);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
else if (ts.isBinaryExpression(e) && e.operatorToken.kind === ts.SyntaxKind.EqualsToken)
|
|
384
|
+
targets(e.left);
|
|
385
|
+
};
|
|
386
|
+
const walk = (n) => {
|
|
387
|
+
if (ts.isBinaryExpression(n) && n.operatorToken.kind >= ts.SyntaxKind.FirstAssignment && n.operatorToken.kind <= ts.SyntaxKind.LastAssignment)
|
|
388
|
+
targets(n.left);
|
|
389
|
+
if ((ts.isPrefixUnaryExpression(n) || ts.isPostfixUnaryExpression(n))
|
|
390
|
+
&& (n.operator === ts.SyntaxKind.PlusPlusToken || n.operator === ts.SyntaxKind.MinusMinusToken))
|
|
391
|
+
targets(n.operand);
|
|
392
|
+
if ((ts.isForOfStatement(n) || ts.isForInStatement(n)) && !ts.isVariableDeclarationList(n.initializer))
|
|
393
|
+
targets(n.initializer);
|
|
394
|
+
ts.forEachChild(n, walk);
|
|
395
|
+
};
|
|
396
|
+
walk(body);
|
|
397
|
+
for (const name of declared) {
|
|
398
|
+
this.problems.push(`it declares \`${name}\` at its top level, which ${this.runtime.name} has already declared with \`const\`: `
|
|
399
|
+
+ `the script would fail with "Identifier '${name}' has already been declared". Rename it, or declare it inside a nested block or function.`);
|
|
400
|
+
}
|
|
401
|
+
for (const name of assigned) {
|
|
402
|
+
this.problems.push(`it assigns to \`${name}\`, which ${this.runtime.name} declares with \`const\`: the script would fail with "Assignment to constant variable.". `
|
|
403
|
+
+ 'Use a local of another name.');
|
|
404
|
+
}
|
|
405
|
+
}
|
|
309
406
|
/**
|
|
310
407
|
* Walk the body: queue the renames and `__name` removals, and collect the
|
|
311
408
|
* names the runtime would not have. `fnDepth` counts the non-arrow functions
|
|
@@ -374,8 +471,10 @@ class Lowering {
|
|
|
374
471
|
}
|
|
375
472
|
if (symbol && !isUndefinedSymbol(symbol))
|
|
376
473
|
return;
|
|
377
|
-
if (id.text === this.runtime.scopeGlobal || this.runtime.globals.has(id.text))
|
|
474
|
+
if (id.text === this.runtime.scopeGlobal || this.runtime.globals.has(id.text)) {
|
|
475
|
+
this.checkGlobalMember(id);
|
|
378
476
|
return;
|
|
477
|
+
}
|
|
379
478
|
// `typeof x` of a bare name does not throw when `x` is absent, so it is a
|
|
380
479
|
// legitimate probe. A compound operand (`typeof x.y`, `typeof f()`) is
|
|
381
480
|
// evaluated first and does throw, so its names are checked as usual.
|
|
@@ -383,6 +482,25 @@ class Lowering {
|
|
|
383
482
|
return;
|
|
384
483
|
this.free.add(id.text);
|
|
385
484
|
}
|
|
485
|
+
/**
|
|
486
|
+
* A member the runtime's object does not have (`crypto.getRandomValues`,
|
|
487
|
+
* `console.table`): read by name (`.x`, `['x']`) from the global itself.
|
|
488
|
+
*/
|
|
489
|
+
checkGlobalMember(id) {
|
|
490
|
+
const { ts } = this;
|
|
491
|
+
const members = this.runtime.globalMembers?.get(id.text);
|
|
492
|
+
if (!members)
|
|
493
|
+
return;
|
|
494
|
+
const p = id.parent;
|
|
495
|
+
const name = ts.isPropertyAccessExpression(p) && p.expression === id ? p.name.text
|
|
496
|
+
: ts.isElementAccessExpression(p) && p.expression === id && ts.isStringLiteralLike(p.argumentExpression) ? p.argumentExpression.text
|
|
497
|
+
: undefined;
|
|
498
|
+
if (name === undefined || members.has(name))
|
|
499
|
+
return;
|
|
500
|
+
const problem = `it reads \`${id.text}.${name}\`, which ${this.runtime.name}'s \`${id.text}\` does not have: it has only ${[...members].map((m) => `\`${m}\``).join(', ')}.`;
|
|
501
|
+
if (!this.problems.includes(problem))
|
|
502
|
+
this.problems.push(problem);
|
|
503
|
+
}
|
|
386
504
|
/** Whether an identifier resolves to a declaration in the function (as opposed to an ambient global). */
|
|
387
505
|
resolves(id) {
|
|
388
506
|
const s = this.checker.getSymbolAtLocation(id);
|
|
@@ -174,15 +174,6 @@ export declare function httpRequestToolResourceJson(label: string, inputs: Recor
|
|
|
174
174
|
id: string;
|
|
175
175
|
canvasNodeId: string;
|
|
176
176
|
}): Record<string, unknown>;
|
|
177
|
-
/**
|
|
178
|
-
* The .NET type an Action Center app argument of each field type carries. Studio
|
|
179
|
-
* Web serializes the task payload through `inputSchemaDotnetTypeMapping`, which
|
|
180
|
-
* the platform schema REQUIRES on an `actionCenter` channel; it reads the raw
|
|
181
|
-
* type off the app's action schema, which the SDK does not fetch, so this is
|
|
182
|
-
* the inverse of flow-workbench's `dotNetTypeToJsonSchema` for the scalars and
|
|
183
|
-
* `System.Object` for the two composite types it has no single answer for.
|
|
184
|
-
*/
|
|
185
|
-
export declare const DOTNET_TYPE: Record<string, string>;
|
|
186
177
|
/**
|
|
187
178
|
* The folder an app escalation names: the author's `folderPath`, or
|
|
188
179
|
* `solution_folder` when they gave none — an app that ships in this solution.
|