@uipath/maestro-builder-sdk 6.11.5 → 6.12.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 +83 -56
- package/dist/api-members.md +362 -261
- package/dist/bpmn/bpmn-expr-check.js +8 -1
- package/dist/bpmn/bpmn-sdk.d.ts +1026 -27
- package/dist/bpmn/bpmn-sdk.js +1328 -83
- package/dist/bpmn/check-cli.js +19 -4
- package/dist/bpmn/check.d.ts +1 -1
- package/dist/bpmn/check.js +529 -13
- package/dist/bpmn/connector.d.ts +2 -2
- package/dist/bpmn/connector.js +74 -37
- package/dist/bpmn/data-service.d.ts +124 -0
- package/dist/bpmn/data-service.js +98 -0
- package/dist/bpmn/decompile-cli.js +70 -8
- package/dist/bpmn/decompile.d.ts +71 -0
- package/dist/bpmn/decompile.js +845 -31
- package/dist/bpmn/graph.d.ts +69 -0
- package/dist/bpmn/graph.js +98 -0
- package/dist/bpmn/intsvc.js +2 -2
- package/dist/bpmn/known-methods.d.ts +15 -0
- package/dist/bpmn/known-methods.js +271 -0
- package/dist/bpmn/lift-verify.d.ts +40 -0
- package/dist/bpmn/lift-verify.js +133 -0
- package/dist/bpmn/serialize.d.ts +65 -1
- package/dist/bpmn/serialize.js +169 -22
- package/dist/bpmn/typed-node.d.ts +37 -6
- package/dist/bpmn/typed-node.js +81 -19
- package/dist/check-cli.js +2 -1
- package/dist/check.d.ts +13 -0
- package/dist/check.js +11 -0
- package/dist/cli/commands/bpmn.js +7 -1
- package/dist/cli-library.d.ts +7 -0
- package/dist/cli-library.js +19 -0
- package/dist/compile-cli.js +8 -5
- package/dist/core/byoa.d.ts +69 -0
- package/dist/core/byoa.js +98 -0
- package/dist/core/library.d.ts +23 -0
- package/dist/core/library.js +47 -1
- package/dist/core/lookup-store.d.ts +12 -0
- package/dist/core/lookup-store.js +25 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +3 -0
- package/dist/registry/generators/descriptors.d.ts +1 -1
- package/dist/registry/generators/descriptors.js +20 -2
- package/dist/registry/generators/markdown/page.js +3 -1
- package/dist/registry/generators/markdown/sections/event-facts.d.ts +2 -0
- package/dist/registry/generators/markdown/sections/event-facts.js +45 -0
- package/dist/registry/library-build/events.d.ts +32 -3
- package/dist/registry/library-build/events.js +48 -19
- package/dist/registry/prepare/byoa-ledger.d.ts +12 -0
- package/dist/registry/prepare/byoa-ledger.js +26 -0
- package/dist/registry/prepare/event.d.ts +5 -1
- package/dist/registry/prepare/event.js +22 -8
- package/dist/registry/prepare/messages.d.ts +2 -0
- package/dist/registry/prepare/messages.js +4 -0
- package/dist/serialize.js +24 -1
- package/package.json +2 -2
package/dist/serialize.js
CHANGED
|
@@ -16,6 +16,7 @@ import { connectorRawNodeRefusal } from './core/connector-raw-node.js';
|
|
|
16
16
|
import { dataFabricUnknownInputs } from './core/typed-raw-node.js';
|
|
17
17
|
import { isAnswerField } from './core/hitl-answers.js';
|
|
18
18
|
import { BindingRefusal, GUID_RE, bindingSelfNameMessage, bindingUndeclaredMessage, undeclaredBinding } from './core/binding-messages.js';
|
|
19
|
+
import { ByoaRefusal, byoaUnverified } from './core/byoa.js';
|
|
19
20
|
import { OUTCOME_HANDLE_NODE_TYPES, assertHitlExitInvariant, hitlExitModel, hitlExitViolation, outcomeSlug } from './core/hitl-routing.js';
|
|
20
21
|
import { declaredExits, hasExits, stopsAtEnd } from './core/step-ports.js';
|
|
21
22
|
import { buildConfiguration, transportHttpMethod } from './config.js';
|
|
@@ -3212,6 +3213,24 @@ function eventTarget(sub) {
|
|
|
3212
3213
|
? { key: sub.connector, ...(typeof sub.event === 'string' && sub.event !== '' ? { action: sub.event } : {}) }
|
|
3213
3214
|
: undefined;
|
|
3214
3215
|
}
|
|
3216
|
+
/**
|
|
3217
|
+
* Throw `check`'s EVENT_BYOA_UNVERIFIED for a subscription whose event only
|
|
3218
|
+
* fires on a BYOA connection and whose bound connection `prepare` never checked
|
|
3219
|
+
* — the one condition in `core/byoa.ts`, fed from the same library and
|
|
3220
|
+
* bindings, so a flow check refuses never compiles.
|
|
3221
|
+
*
|
|
3222
|
+
* `where` is check's spelling of the site (`trigger` for `onEvent`, entry points
|
|
3223
|
+
* included; `waitForEvent "<step>"`), so the two print the same sentence.
|
|
3224
|
+
*/
|
|
3225
|
+
function refuseUnverifiedByoa(opts, where, sub) {
|
|
3226
|
+
const library = opts.library;
|
|
3227
|
+
if (!library || typeof library.eventFacts !== 'function')
|
|
3228
|
+
return;
|
|
3229
|
+
const object = typeof sub.object === 'string' && sub.object !== '' ? sub.object : undefined;
|
|
3230
|
+
const message = byoaUnverified(where, { connector: sub.connector, event: sub.event, ...(object ? { object } : {}), connection: sub.connection }, library.eventFacts(sub.connector, sub.event, object), library.byoaVerifications, opts.bindings);
|
|
3231
|
+
if (message)
|
|
3232
|
+
throw new ByoaRefusal(message);
|
|
3233
|
+
}
|
|
3215
3234
|
/**
|
|
3216
3235
|
* Resolve a symbolic connection/folder name to the resource key that is inlined
|
|
3217
3236
|
* as `connectionId` / `connectionFolderKey`.
|
|
@@ -4184,7 +4203,9 @@ export function serialize(built, opts = {}) {
|
|
|
4184
4203
|
if (!opts.library)
|
|
4185
4204
|
throw new Error(`onEvent() needs a library (pass --library / set $FLOW_SDK_LIBRARY_JSON).`);
|
|
4186
4205
|
const sub = built.trigger.subscription;
|
|
4187
|
-
|
|
4206
|
+
const rc = opts.library.resolveEvent('trigger', sub.connector, sub.event, sub.version, sub.object);
|
|
4207
|
+
refuseUnverifiedByoa(opts, 'trigger', sub);
|
|
4208
|
+
return rc;
|
|
4188
4209
|
})()
|
|
4189
4210
|
: undefined;
|
|
4190
4211
|
// The trigger node's id is `start` unless the flow renamed it. `input('x')`
|
|
@@ -5306,6 +5327,7 @@ export function serialize(built, opts = {}) {
|
|
|
5306
5327
|
throw new Error(`waitForEvent "${step.name}" needs a library (pass --library / set $FLOW_SDK_LIBRARY_JSON).`);
|
|
5307
5328
|
const sub = spec.subscription;
|
|
5308
5329
|
const rc = opts.library.resolveEvent('event', sub.connector, sub.event, sub.version, sub.object);
|
|
5330
|
+
refuseUnverifiedByoa(opts, `waitForEvent "${step.name}"`, sub);
|
|
5309
5331
|
const id = stepUid(scope, step.name);
|
|
5310
5332
|
const node = makeNode(rc.nodeType, id, step.name, { parentId, requestedVersion: step.options?.version, def: rc.v1def });
|
|
5311
5333
|
node.inputs = { detail: eventDetail(rc, sub, id, opts) };
|
|
@@ -6160,6 +6182,7 @@ export function serialize(built, opts = {}) {
|
|
|
6160
6182
|
throw new Error(`onEvent() needs a library (pass --library / set $FLOW_SDK_LIBRARY_JSON).`);
|
|
6161
6183
|
const sub = epSpec.subscription;
|
|
6162
6184
|
const rc = opts.library.resolveEvent('trigger', sub.connector, sub.event, sub.version, sub.object);
|
|
6185
|
+
refuseUnverifiedByoa(opts, 'trigger', sub);
|
|
6163
6186
|
node = makeNode(rc.nodeType, ep.id, 'Event trigger', { def: rc.v1def, requestedVersion });
|
|
6164
6187
|
node.inputs = {
|
|
6165
6188
|
entryPointId: stableId(`${built.id}:${ep.id}:entryPoint`),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.12.0",
|
|
4
4
|
"description": "Build UiPath Flow, Case, and BPMN artifacts by writing TypeScript.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.uipath.com/maestro",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"@types/node": "^22.7.0",
|
|
93
93
|
"esbuild": "^0.28.1"
|
|
94
94
|
},
|
|
95
|
-
"gitref": "
|
|
95
|
+
"gitref": "82b2ac95dd3b9af08b6a40f3421af49a5c95d7c8"
|
|
96
96
|
}
|