mitra-interactions-sdk 1.0.60 → 1.0.61

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/index.mjs CHANGED
@@ -957,6 +957,7 @@ var AgentTaskSession = class {
957
957
  this._agentType = init.agentType;
958
958
  this._modelId = init.modelId;
959
959
  this._initialName = init.name;
960
+ this._connectionId = init.connectionId;
960
961
  this._setStatus("idle");
961
962
  this._wsUnsubscribePending = this._transport.subscribePending(
962
963
  this._sessionId,
@@ -1118,6 +1119,7 @@ var AgentTaskSession = class {
1118
1119
  if (modelId) payload.modelId = modelId;
1119
1120
  if (attachments) payload.attachments = attachments;
1120
1121
  if (this._taskId) payload.taskId = this._taskId;
1122
+ if (this._connectionId) payload.connectionId = this._connectionId;
1121
1123
  if (this._initialName && !this._taskId) {
1122
1124
  payload.name = this._initialName;
1123
1125
  }
@@ -1544,7 +1546,8 @@ function getAgentTaskMitra(options) {
1544
1546
  projectId: options.projectId,
1545
1547
  agentType: options.agentType,
1546
1548
  modelId: options.modelId,
1547
- name: options.name
1549
+ name: options.name,
1550
+ connectionId: options.connectionId
1548
1551
  },
1549
1552
  transport
1550
1553
  );
@@ -1561,12 +1564,12 @@ function manageAgentCredentialMitra(options) {
1561
1564
  }
1562
1565
  function rpc(options) {
1563
1566
  const transport2 = getTransport();
1564
- const { action, target, ...rest } = options;
1567
+ const { action, target, connectionId, ...rest } = options;
1565
1568
  const data = {};
1566
1569
  for (const [k, v] of Object.entries(rest)) {
1567
1570
  if (v !== void 0) data[k] = v;
1568
1571
  }
1569
- return transport2.request("credentials", { action, target, data });
1572
+ return transport2.request("credentials", { action, target, connectionId, data });
1570
1573
  }
1571
1574
  async function authSubscription(options) {
1572
1575
  const { target } = options;