@bpmsoftwaresolutions/ai-engine-client 1.1.43 → 1.1.44
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/package.json +1 -1
- package/src/index.js +6 -3
package/package.json
CHANGED
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.
|
|
2
|
+
export const AI_ENGINE_CLIENT_VERSION = '1.1.44';
|
|
3
3
|
export const GOVERNED_MUTATION_REQUIRED_CAPABILITIES = [
|
|
4
4
|
'executeVerifiedMutation',
|
|
5
5
|
'post_mutation_verification',
|
|
@@ -532,11 +532,14 @@ export class AIEngineClient {
|
|
|
532
532
|
recipient_agent_session_id,
|
|
533
533
|
recipientRoleKey,
|
|
534
534
|
recipient_role_key,
|
|
535
|
+
workflowRunId,
|
|
536
|
+
workflow_run_id,
|
|
535
537
|
} = {}) {
|
|
536
538
|
return this._request('/api/agent-communications/inbox', {
|
|
537
539
|
query: {
|
|
538
540
|
recipient_agent_session_id: cleanText(recipient_agent_session_id) || cleanText(recipientAgentSessionId),
|
|
539
541
|
recipient_role_key: cleanText(recipient_role_key) || cleanText(recipientRoleKey),
|
|
542
|
+
workflow_run_id: cleanText(workflow_run_id) || cleanText(workflowRunId),
|
|
540
543
|
},
|
|
541
544
|
});
|
|
542
545
|
}
|
|
@@ -606,7 +609,7 @@ export class AIEngineClient {
|
|
|
606
609
|
if (!normalizedMessageId) {
|
|
607
610
|
throw new Error('agent_message_id is required.');
|
|
608
611
|
}
|
|
609
|
-
return this._request(`/api/agent-communications/messages/${encodeURIComponent(normalizedMessageId)}/respond`, {
|
|
612
|
+
return this._request(`/api/agent-communications/messages/${encodeURIComponent(normalizedMessageId)}/respond-with-evidence`, {
|
|
610
613
|
method: 'POST',
|
|
611
614
|
body: {
|
|
612
615
|
status: cleanText(status) || 'answered',
|
|
@@ -636,7 +639,7 @@ export class AIEngineClient {
|
|
|
636
639
|
if (!normalizedMessageId) {
|
|
637
640
|
throw new Error('agent_message_id is required.');
|
|
638
641
|
}
|
|
639
|
-
return this._request(`/api/agent-communications/messages/${encodeURIComponent(normalizedMessageId)}/
|
|
642
|
+
return this._request(`/api/agent-communications/messages/${encodeURIComponent(normalizedMessageId)}/evidence-links`, {
|
|
640
643
|
method: 'POST',
|
|
641
644
|
body: {
|
|
642
645
|
evidence_type: cleanText(evidence_type) || cleanText(evidenceType),
|