@agents24/node 0.5.29 → 0.5.31

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/bff.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { A as Agents24 } from './client-CH-cgwTv.cjs';
2
- import '@agents24/client/protocol';
1
+ import { A as Agents24 } from './client-vFBe6Sfx.cjs';
3
2
  import '@agents24/client';
3
+ import '@agents24/client/protocol';
4
4
 
5
5
  interface AgentBffPrincipal {
6
6
  subject: string;
@@ -12,6 +12,10 @@ interface AgentBffPrincipal {
12
12
  }
13
13
  interface AgentBffPrincipalResolution {
14
14
  principal: AgentBffPrincipal;
15
+ customerTenant?: {
16
+ issuer: string;
17
+ subject: string;
18
+ };
15
19
  chatScope?: string;
16
20
  knowledgeNamespaces?: Record<string, string>;
17
21
  responseHeaders?: HeadersInit;
package/dist/bff.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { A as Agents24 } from './client-CH-cgwTv.js';
2
- import '@agents24/client/protocol';
1
+ import { A as Agents24 } from './client-vFBe6Sfx.js';
3
2
  import '@agents24/client';
3
+ import '@agents24/client/protocol';
4
4
 
5
5
  interface AgentBffPrincipal {
6
6
  subject: string;
@@ -12,6 +12,10 @@ interface AgentBffPrincipal {
12
12
  }
13
13
  interface AgentBffPrincipalResolution {
14
14
  principal: AgentBffPrincipal;
15
+ customerTenant?: {
16
+ issuer: string;
17
+ subject: string;
18
+ };
15
19
  chatScope?: string;
16
20
  knowledgeNamespaces?: Record<string, string>;
17
21
  responseHeaders?: HeadersInit;
package/dist/bff.js CHANGED
@@ -648,11 +648,13 @@ function createAgents24BffHandlerWithResolver(options, resolveCustomerIdentity)
648
648
  mode: "queue",
649
649
  input,
650
650
  attachmentIds,
651
+ ...resolution.customerTenant === void 0 ? {} : { customerTenant: resolution.customerTenant },
651
652
  ...stringValue(body.requestedModelId) ? { requestedModelId: stringValue(body.requestedModelId) } : {},
652
653
  ...resolution.knowledgeNamespaces === void 0 ? {} : { knowledgeNamespaces: resolution.knowledgeNamespaces },
653
654
  toolInputs: objectValue(body.toolInputs),
654
655
  ...body.metadata === void 0 ? {} : { metadata: objectValue(body.metadata) }
655
656
  }, { idempotencyKey }) : await embed.startAgentRun(agentId, {
657
+ ...resolution.customerTenant === void 0 ? {} : { customer_tenant: resolution.customerTenant },
656
658
  ...identity,
657
659
  integration_id: integrationId,
658
660
  ...resolution.chatScope === void 0 ? {} : { chat_scope: resolution.chatScope },
@@ -1149,11 +1151,13 @@ function createResolvedAgents24BffHandler(options) {
1149
1151
  mode: "queue",
1150
1152
  input: input ?? "",
1151
1153
  attachmentIds,
1154
+ ...resolution.customerTenant === void 0 ? {} : { customerTenant: resolution.customerTenant },
1152
1155
  ...stringValue(body.requestedModelId) ? { requestedModelId: stringValue(body.requestedModelId) } : {},
1153
1156
  ...resolution.knowledgeNamespaces === void 0 ? {} : { knowledgeNamespaces: resolution.knowledgeNamespaces },
1154
1157
  toolInputs: objectValue(body.toolInputs),
1155
1158
  ...body.metadata === void 0 ? {} : { metadata: objectValue(body.metadata) }
1156
1159
  }, { idempotencyKey: stringValue(request.headers.get("idempotency-key")) }) : await options.client.embed.startAgentRun(selected.agentId, {
1160
+ ...resolution.customerTenant === void 0 ? {} : { customer_tenant: resolution.customerTenant },
1157
1161
  ...identity,
1158
1162
  ...selected.agentVersionId ? { agent_version_id: selected.agentVersionId } : {},
1159
1163
  runtime_target: runtimeTarget,