@bpmsoftwaresolutions/ai-engine-client 1.1.47 → 1.1.49

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 +59 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmsoftwaresolutions/ai-engine-client",
3
- "version": "1.1.47",
3
+ "version": "1.1.49",
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.47';
2
+ export const AI_ENGINE_CLIENT_VERSION = '1.1.49';
3
3
  export const GOVERNED_MUTATION_REQUIRED_CAPABILITIES = [
4
4
  'executeVerifiedMutation',
5
5
  'post_mutation_verification',
@@ -394,6 +394,13 @@ export class AIEngineClient {
394
394
  };
395
395
  this.projections = {
396
396
  render: (request) => this.renderProjection(request),
397
+ getTransferHomeProjection: () => this.getLogaTransferHomeProjection(),
398
+ getTransferInboxProjection: (query) => this.getLogaTransferInboxProjection(query),
399
+ getTransferPacketProjection: (workTransferPacketId) => this.getLogaTransferPacketProjection(workTransferPacketId),
400
+ getTransferNegotiationEventsProjection: (query) => this.getLogaTransferNegotiationEventsProjection(query),
401
+ getTransferFrictionLaneProjection: (query) => this.getLogaTransferFrictionLaneProjection(query),
402
+ getTransferReceiptsProjection: (query) => this.getLogaTransferReceiptsProjection(query),
403
+ getTransferClosureReviewProjection: (workTransferPacketId) => this.getLogaTransferClosureReviewProjection(workTransferPacketId),
397
404
  };
398
405
  this.actions = {
399
406
  submit: (request) => this.submitActionIntent(request),
@@ -404,6 +411,7 @@ export class AIEngineClient {
404
411
  listInbox: (request) => this.listCommunicationInbox(request),
405
412
  sendMessage: (request) => this.sendCommunicationMessage(request),
406
413
  getCommunicationCapabilities: (request) => this.getCommunicationCapabilities(request),
414
+ getCollaborationCapabilities: (request) => this.getCollaborationCapabilities(request),
407
415
  getDeploymentCapabilities: (request) => this.getDeploymentCapabilities(request),
408
416
  bootstrap: (request) => this.bootstrapCommunication(request),
409
417
  negotiateTransfer: (request) => this.negotiateCommunicationTransfer(request),
@@ -612,6 +620,10 @@ export class AIEngineClient {
612
620
  return this._request('/api/agent-communications/capabilities');
613
621
  }
614
622
 
623
+ async getCollaborationCapabilities() {
624
+ return this._request('/api/agent-communications/collaboration-capabilities');
625
+ }
626
+
615
627
  async getDeploymentCapabilities() {
616
628
  return this._request('/api/agent-communications/deployment-capabilities');
617
629
  }
@@ -2609,6 +2621,52 @@ export class AIEngineClient {
2609
2621
  return this._requestLogaProjection(`/api/operator/projections/evidence-packets/${packetKey}`);
2610
2622
  }
2611
2623
 
2624
+ async getLogaTransferHomeProjection() {
2625
+ return this._requestLogaProjection('/api/operator/projections/transfers/home');
2626
+ }
2627
+
2628
+ async getLogaTransferInboxProjection({ workflowRunId, recipientAgentSessionId, recipientRoleKey } = {}) {
2629
+ return this._requestLogaProjection('/api/operator/projections/transfers/inbox', {
2630
+ query: {
2631
+ workflow_run_id: workflowRunId,
2632
+ recipient_agent_session_id: recipientAgentSessionId,
2633
+ recipient_role_key: recipientRoleKey,
2634
+ },
2635
+ });
2636
+ }
2637
+
2638
+ async getLogaTransferPacketProjection(workTransferPacketId) {
2639
+ return this._requestLogaProjection(`/api/operator/projections/transfers/${workTransferPacketId}`);
2640
+ }
2641
+
2642
+ async getLogaTransferNegotiationEventsProjection({ workTransferPacketId, workflowRunId } = {}) {
2643
+ const path = workTransferPacketId
2644
+ ? `/api/operator/projections/transfers/${workTransferPacketId}/negotiation-events`
2645
+ : '/api/operator/projections/transfers/negotiation-events';
2646
+ return this._requestLogaProjection(path, {
2647
+ query: { workflow_run_id: workflowRunId },
2648
+ });
2649
+ }
2650
+
2651
+ async getLogaTransferFrictionLaneProjection({ workflowRunId } = {}) {
2652
+ return this._requestLogaProjection('/api/operator/projections/transfers/friction-lane', {
2653
+ query: { workflow_run_id: workflowRunId },
2654
+ });
2655
+ }
2656
+
2657
+ async getLogaTransferReceiptsProjection({ workTransferPacketId, workflowRunId } = {}) {
2658
+ return this._requestLogaProjection('/api/operator/projections/transfers/receipts', {
2659
+ query: {
2660
+ work_transfer_packet_id: workTransferPacketId,
2661
+ workflow_run_id: workflowRunId,
2662
+ },
2663
+ });
2664
+ }
2665
+
2666
+ async getLogaTransferClosureReviewProjection(workTransferPacketId) {
2667
+ return this._requestLogaProjection(`/api/operator/projections/transfers/${workTransferPacketId}/closure-review`);
2668
+ }
2669
+
2612
2670
  async submitUxGateRemediation({
2613
2671
  projectionType,
2614
2672
  projectionId,