@agents24/node 0.5.30 → 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/compatibility.json +3 -3
- package/dist/bff.cjs +4 -0
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +6 -2
- package/dist/bff.d.ts +6 -2
- package/dist/bff.js +4 -0
- package/dist/bff.js.map +1 -1
- package/dist/{client-BIn7miCx.d.cts → client-vFBe6Sfx.d.cts} +58 -3
- package/dist/{client-BIn7miCx.d.ts → client-vFBe6Sfx.d.ts} +58 -3
- package/dist/index.cjs +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/types/agents.d.ts.map +1 -1
- package/dist/types/bff-agent-resolution.d.ts +16 -0
- package/dist/types/bff-agent-resolution.d.ts.map +1 -1
- package/dist/types/bff.d.ts.map +1 -1
- package/dist/types/embed-types.d.ts +12 -0
- package/dist/types/embed-types.d.ts.map +1 -1
- package/dist/types/embed.d.ts.map +1 -1
- package/dist/types/generated/ingestion-types.d.ts +20 -0
- package/dist/types/generated/ingestion-types.d.ts.map +1 -1
- package/dist/types/types.d.ts +23 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/bff.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as Agents24 } from './client-
|
|
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-
|
|
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,
|