@bpmsoftwaresolutions/ai-engine-client 1.1.54 → 1.1.55

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +9 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmsoftwaresolutions/ai-engine-client",
3
- "version": "1.1.54",
3
+ "version": "1.1.55",
4
4
  "description": "Thin npm client for the AI Engine operator and retrieval APIs",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const DEFAULT_TIMEOUT_MS = 30000;
2
- export const AI_ENGINE_CLIENT_VERSION = '1.1.54';
2
+ export const AI_ENGINE_CLIENT_VERSION = '1.1.55';
3
3
  export const GOVERNED_MUTATION_REQUIRED_CAPABILITIES = [
4
4
  'executeVerifiedMutation',
5
5
  'post_mutation_verification',
@@ -1310,6 +1310,7 @@ export class AIEngineClient {
1310
1310
  transfer_channel_id,
1311
1311
  participantRole,
1312
1312
  participant_role,
1313
+ role,
1313
1314
  capability,
1314
1315
  includeStale,
1315
1316
  include_stale,
@@ -1322,7 +1323,7 @@ export class AIEngineClient {
1322
1323
  return this._request(basePath, {
1323
1324
  query: {
1324
1325
  workflow_run_id: cleanText(workflow_run_id) || cleanText(workflowRunId),
1325
- participant_role: cleanText(participant_role) || cleanText(participantRole),
1326
+ participant_role: cleanText(participant_role) || cleanText(participantRole) || cleanText(role),
1326
1327
  capability: cleanText(capability),
1327
1328
  include_stale: include_stale ?? includeStale,
1328
1329
  limit,
@@ -1337,13 +1338,14 @@ export class AIEngineClient {
1337
1338
  transfer_channel_id,
1338
1339
  participantRole,
1339
1340
  participant_role,
1341
+ role,
1340
1342
  capability,
1341
1343
  } = {}) {
1342
1344
  const normalizedTransferChannelId = cleanText(transfer_channel_id) || cleanText(transferChannelId);
1343
1345
  const body = {
1344
1346
  workflow_run_id: cleanText(workflow_run_id) || cleanText(workflowRunId),
1345
1347
  transfer_channel_id: normalizedTransferChannelId,
1346
- participant_role: cleanText(participant_role) || cleanText(participantRole),
1348
+ participant_role: cleanText(participant_role) || cleanText(participantRole) || cleanText(role),
1347
1349
  capability: cleanText(capability),
1348
1350
  };
1349
1351
  const path = normalizedTransferChannelId
@@ -1370,6 +1372,7 @@ export class AIEngineClient {
1370
1372
  recipient_agent_session_id,
1371
1373
  recipientRole,
1372
1374
  recipient_role,
1375
+ role,
1373
1376
  participantId,
1374
1377
  participant_id,
1375
1378
  recipientParticipantId,
@@ -1397,7 +1400,7 @@ export class AIEngineClient {
1397
1400
  sender_agent_session_id: cleanText(sender_agent_session_id) || cleanText(senderAgentSessionId),
1398
1401
  sender_role: cleanText(sender_role) || cleanText(senderRole),
1399
1402
  recipient_agent_session_id: cleanText(recipient_agent_session_id) || cleanText(recipientAgentSessionId),
1400
- recipient_role: cleanText(recipient_role) || cleanText(recipientRole),
1403
+ recipient_role: cleanText(recipient_role) || cleanText(recipientRole) || cleanText(role),
1401
1404
  participant_id: cleanText(participant_id) || cleanText(participantId) || cleanText(recipient_participant_id) || cleanText(recipientParticipantId),
1402
1405
  message_kind: cleanText(message_kind) || cleanText(messageKind),
1403
1406
  payload: isPlainObject(payload) ? payload : {},
@@ -1423,6 +1426,7 @@ export class AIEngineClient {
1423
1426
  recipient_role,
1424
1427
  participantRole,
1425
1428
  participant_role,
1429
+ role,
1426
1430
  recipientAgentSessionId,
1427
1431
  recipient_agent_session_id,
1428
1432
  workflowRunId,
@@ -1448,7 +1452,7 @@ export class AIEngineClient {
1448
1452
  sender_agent_session_id: cleanText(sender_agent_session_id) || cleanText(senderAgentSessionId),
1449
1453
  sender_role: cleanText(sender_role) || cleanText(senderRole),
1450
1454
  recipient_agent_session_id: cleanText(recipient_agent_session_id) || cleanText(recipientAgentSessionId),
1451
- recipient_role: cleanText(recipient_role) || cleanText(recipientRole) || cleanText(participant_role) || cleanText(participantRole),
1455
+ recipient_role: cleanText(recipient_role) || cleanText(recipientRole) || cleanText(role) || cleanText(participant_role) || cleanText(participantRole),
1452
1456
  message_kind: cleanText(message_kind) || cleanText(messageKind),
1453
1457
  payload: isPlainObject(payload) ? payload : {},
1454
1458
  scope: isPlainObject(scope) ? scope : {},