@uipath/maestro-builder-sdk 6.90.4 → 6.91.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 CHANGED
@@ -298,7 +298,7 @@ could hand you spans for a version you do not have.
298
298
  | `voiceAgent` | function | `dist/nodes/agent/flow/factories.d.ts:34-58` | Actions | Put a VOICE agent on a live call (`uipath.agent.voice`) — it speaks and listens for one turn, then the flow continues. |
299
299
  | `VoiceAgentInputs` | interface | `dist/nodes/agent/flow/spec.d.ts:145-183` | Option shapes | What `voiceAgent()` takes: the agent's instructions, the call it joins, how it sounds, and the resources it attaches… |
300
300
  | `VoiceSettings` | interface | `dist/nodes/agent/flow/spec.d.ts:122-144` | Supporting types | The audio settings a voice agent speaks with. |
301
- | `voiceTrigger` | function | `dist/nodes/trigger/flow/factories.d.ts:104-128` | Actions | Start the flow when a phone call comes IN (`core.trigger.voice`). |
301
+ | `voiceTrigger` | function | `dist/nodes/trigger/flow/factories.d.ts:104-134` | Actions | Start the flow when a phone call comes IN (`core.trigger.voice`). |
302
302
  | `waitForEvent` | function | `dist/core/actions.d.ts:1150-1185` | Actions | Wait mid-flow until a connector event fires, then continue with its payload — the typed form, where a generated trigger… |
303
303
  | `waitForEvent` | function | `dist/core/actions.d.ts:1186-1193` | Actions | Stringly form, for an event with no prepared module. |
304
304
  | `waitForMessage` | function | `dist/nodes/conversation/flow/factories.d.ts:27-43` | Actions | PAUSE until the person sends their next message (`uipath.conversational.wait-for-message`) — a catch event, like… |
@@ -13294,6 +13294,118 @@
13294
13294
  }
13295
13295
  }
13296
13296
  },
13297
+ "core.trigger.voice@1.1": {
13298
+ "nodeType": "core.trigger.voice",
13299
+ "version": "1.1",
13300
+ "category": "trigger",
13301
+ "description": "Start this process when a phone call arrives on a bound number",
13302
+ "tags": [
13303
+ "trigger",
13304
+ "voice",
13305
+ "call",
13306
+ "phone",
13307
+ "incoming",
13308
+ "start"
13309
+ ],
13310
+ "sortOrder": 87,
13311
+ "display": {
13312
+ "label": "Incoming call",
13313
+ "icon": "phoneIncoming",
13314
+ "shape": "circle"
13315
+ },
13316
+ "handleConfiguration": [
13317
+ {
13318
+ "position": "right",
13319
+ "handles": [
13320
+ {
13321
+ "id": "output",
13322
+ "type": "source",
13323
+ "handleType": "output",
13324
+ "showButton": true,
13325
+ "constraints": {
13326
+ "forbiddenTargetCategories": [
13327
+ "trigger"
13328
+ ]
13329
+ }
13330
+ }
13331
+ ],
13332
+ "visible": true
13333
+ }
13334
+ ],
13335
+ "model": {
13336
+ "type": "bpmn:StartEvent",
13337
+ "entryPointId": true
13338
+ },
13339
+ "outputDefinition": {
13340
+ "output": {
13341
+ "type": "object",
13342
+ "description": "Data passed when this incoming-call trigger starts the process.",
13343
+ "source": "null",
13344
+ "var": "output",
13345
+ "schema": {
13346
+ "type": "object",
13347
+ "properties": {
13348
+ "callContext": {
13349
+ "type": "object",
13350
+ "description": "Identifies the live call. Pass to voice service tasks and conversational agents.",
13351
+ "properties": {
13352
+ "type": {
13353
+ "type": "string",
13354
+ "enum": [
13355
+ "phone",
13356
+ "web"
13357
+ ],
13358
+ "description": "Call medium"
13359
+ },
13360
+ "id": {
13361
+ "type": "string",
13362
+ "description": "Provider-side call identifier (e.g. Twilio call SID for phone)"
13363
+ },
13364
+ "conversationId": {
13365
+ "type": "string",
13366
+ "format": "uuid",
13367
+ "description": "Identifier of the conversation associated with this call"
13368
+ },
13369
+ "from": {
13370
+ "type": [
13371
+ "string",
13372
+ "null"
13373
+ ],
13374
+ "description": "Phone number the call was placed from: the caller on an incoming call, your number on an outgoing one."
13375
+ },
13376
+ "to": {
13377
+ "type": [
13378
+ "string",
13379
+ "null"
13380
+ ],
13381
+ "description": "Phone number the call was placed to: your number on an incoming call, the callee on an outgoing one."
13382
+ }
13383
+ },
13384
+ "required": [
13385
+ "type",
13386
+ "id",
13387
+ "conversationId"
13388
+ ]
13389
+ }
13390
+ },
13391
+ "required": [
13392
+ "callContext"
13393
+ ]
13394
+ }
13395
+ }
13396
+ },
13397
+ "toolbarExtensions": {
13398
+ "design": {
13399
+ "actions": [
13400
+ {
13401
+ "id": "change-trigger-type",
13402
+ "icon": "square-mouse-pointer",
13403
+ "label": "Change trigger type"
13404
+ }
13405
+ ]
13406
+ }
13407
+ }
13408
+ },
13297
13409
  "uipath.agent.voice@1.0": {
13298
13410
  "nodeType": "uipath.agent.voice",
13299
13411
  "version": "1.0",
@@ -117,11 +117,17 @@ export declare function conversationTrigger(appearance?: ConversationAppearance)
117
117
  * ```
118
118
  *
119
119
  * The trigger publishes the live call as `out('start', 'callContext')` — the
120
- * object (`{ type, id, conversationId, … }`) every voice step is keyed by.
120
+ * object (`{ type, id, conversationId, from, to }`) every voice step is keyed
121
+ * by. `from` and `to` are the call's phone numbers: absent, or `null`, when
122
+ * unknown, so test them with `== null` or `??`.
121
123
  * Nothing else is authored on it.
122
124
  *
123
125
  * The definition is BUNDLED from the workbench manifest: the family is
124
- * `AvailableOnTenant: false` today (the do-while precedent).
126
+ * `AvailableOnTenant: false` today (the do-while precedent). The trigger is
127
+ * written at 1.1, the version whose `callContext` has `from` and `to`. Pin
128
+ * `{ version: '1.0' }` to keep a 1.0 node: a source written against an
129
+ * earlier release with an unpinned `voiceTrigger()` compiled to 1.0 and now
130
+ * compiles to 1.1.
125
131
  *
126
132
  * @returns A trigger spec to pass to `.trigger(...)`.
127
133
  */
@@ -130,11 +130,17 @@ export function conversationTrigger(appearance) {
130
130
  * ```
131
131
  *
132
132
  * The trigger publishes the live call as `out('start', 'callContext')` — the
133
- * object (`{ type, id, conversationId, … }`) every voice step is keyed by.
133
+ * object (`{ type, id, conversationId, from, to }`) every voice step is keyed
134
+ * by. `from` and `to` are the call's phone numbers: absent, or `null`, when
135
+ * unknown, so test them with `== null` or `??`.
134
136
  * Nothing else is authored on it.
135
137
  *
136
138
  * The definition is BUNDLED from the workbench manifest: the family is
137
- * `AvailableOnTenant: false` today (the do-while precedent).
139
+ * `AvailableOnTenant: false` today (the do-while precedent). The trigger is
140
+ * written at 1.1, the version whose `callContext` has `from` and `to`. Pin
141
+ * `{ version: '1.0' }` to keep a 1.0 node: a source written against an
142
+ * earlier release with an unpinned `voiceTrigger()` compiled to 1.0 and now
143
+ * compiles to 1.1.
138
144
  *
139
145
  * @returns A trigger spec to pass to `.trigger(...)`.
140
146
  */
@@ -2,7 +2,7 @@
2
2
  * The five built-in start triggers, one node type each: `manual()`
3
3
  * (`core.trigger.manual`, the default), `scheduled()`, `formTrigger()`,
4
4
  * `conversationTrigger()` and `voiceTrigger()`. All are bundled.
5
- * A schedule and a conversation pick their version when the author pinned none.
5
+ * A schedule, a conversation and a call pick their version when the author pinned none.
6
6
  *
7
7
  * A trigger type owns its node's `inputs` and how it reads back. The pipeline
8
8
  * owns the root: the node's id and label, the version it resolves, the edge to
@@ -314,9 +314,16 @@ export const conversationTriggerType = {
314
314
  checkStartingPrompts(spec.appearance?.startingPrompts, ctx);
315
315
  },
316
316
  };
317
+ /**
318
+ * The voice-trigger version an unpinned `voiceTrigger()` writes: the platform's
319
+ * current one. 1.1 only adds `callContext.from` and `callContext.to` (the call's
320
+ * phone numbers) to the output schema; its inputs are 1.0's. A `{ version: '1.0' }`
321
+ * pin, which decompile prints for an existing 1.0 node, keeps 1.0.
322
+ */
323
+ const VOICE_DEFAULT_VERSION = '1.1';
317
324
  export const voiceTriggerType = {
318
325
  kind: 'voice', typeName: 'core.trigger.voice', factory: 'voiceTrigger',
319
- serialize: (_spec, ctx) => platformStartedInputs(ctx),
326
+ serialize: (_spec, ctx) => ({ version: ctx.version ?? VOICE_DEFAULT_VERSION, ...platformStartedInputs(ctx) }),
320
327
  deserialize: () => ({ kind: 'voice' }),
321
328
  print: () => ({ factory: 'voiceTrigger' }),
322
329
  check: (_spec, ctx) => inputsIgnored('voice', 'callContext', ctx),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.90.4",
3
+ "version": "6.91.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",
@@ -111,5 +111,5 @@
111
111
  "@types/node": "^22.7.0",
112
112
  "esbuild": "^0.28.1"
113
113
  },
114
- "gitref": "2a8e2b255d67a8a6578dbeb6229a80630ea3f57b"
114
+ "gitref": "ebc34129dfd4dc427791db0a25d2c4652c73f63c"
115
115
  }