@agents24/node 0.5.37 → 0.5.39
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 +7 -7
- package/dist/bff.cjs +5 -0
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +10 -1
- package/dist/bff.d.ts +10 -1
- package/dist/bff.js +5 -0
- package/dist/bff.js.map +1 -1
- package/dist/{client-YSS2tctB.d.cts → client-nGaq0BDQ.d.cts} +131 -2
- package/dist/{client-YSS2tctB.d.ts → client-nGaq0BDQ.d.ts} +131 -2
- package/dist/index.cjs +68 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +68 -1
- package/dist/index.js.map +1 -1
- package/dist/types/bff-agent-resolution.d.ts +9 -0
- package/dist/types/bff-agent-resolution.d.ts.map +1 -1
- package/dist/types/bff-conversation-submission.d.ts.map +1 -1
- package/dist/types/builders.d.ts.map +1 -1
- package/dist/types/embed-types.d.ts +2 -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 +101 -0
- package/dist/types/generated/ingestion-types.d.ts.map +1 -1
- package/dist/types/generated/knowledgeStores.d.ts +8 -1
- package/dist/types/generated/knowledgeStores.d.ts.map +1 -1
- package/dist/types/generated/manifest.d.ts +1 -1
- package/dist/types/generated/manifest.d.ts.map +1 -1
- package/dist/types/generated/model-capabilities.d.ts +8 -1
- package/dist/types/generated/model-capabilities.d.ts.map +1 -1
- package/dist/types/generated/personal-skills.d.ts +7 -0
- package/dist/types/generated/personal-skills.d.ts.map +1 -1
- package/dist/types/types.d.ts +5 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/bff.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Agents24 } from './client-
|
|
1
|
+
import { A as Agents24 } from './client-nGaq0BDQ.cjs';
|
|
2
2
|
import '@agents24/client/protocol';
|
|
3
3
|
import '@agents24/client';
|
|
4
4
|
|
|
@@ -19,6 +19,15 @@ interface AgentBffPrincipalResolution {
|
|
|
19
19
|
trustedContext?: Record<string, unknown>;
|
|
20
20
|
chatScope?: string;
|
|
21
21
|
knowledgeNamespaces?: Record<string, string>;
|
|
22
|
+
/**
|
|
23
|
+
* Which access scopes of each knowledge store this reader may see, as
|
|
24
|
+
* `{ storeId: scopeIds }`. Resolved on your server from the signed-in
|
|
25
|
+
* user, never from the browser: naming a scope widens the read past the
|
|
26
|
+
* store's baseline, so the platform accepts it only from the
|
|
27
|
+
* organization API key this handler holds. Omit it and the reader gets
|
|
28
|
+
* the store's default scope.
|
|
29
|
+
*/
|
|
30
|
+
knowledgeAccessScopes?: Record<string, string[]>;
|
|
22
31
|
responseHeaders?: HeadersInit;
|
|
23
32
|
}
|
|
24
33
|
interface Agents24BffDiagnostic {
|
package/dist/bff.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Agents24 } from './client-
|
|
1
|
+
import { A as Agents24 } from './client-nGaq0BDQ.js';
|
|
2
2
|
import '@agents24/client/protocol';
|
|
3
3
|
import '@agents24/client';
|
|
4
4
|
|
|
@@ -19,6 +19,15 @@ interface AgentBffPrincipalResolution {
|
|
|
19
19
|
trustedContext?: Record<string, unknown>;
|
|
20
20
|
chatScope?: string;
|
|
21
21
|
knowledgeNamespaces?: Record<string, string>;
|
|
22
|
+
/**
|
|
23
|
+
* Which access scopes of each knowledge store this reader may see, as
|
|
24
|
+
* `{ storeId: scopeIds }`. Resolved on your server from the signed-in
|
|
25
|
+
* user, never from the browser: naming a scope widens the read past the
|
|
26
|
+
* store's baseline, so the platform accepts it only from the
|
|
27
|
+
* organization API key this handler holds. Omit it and the reader gets
|
|
28
|
+
* the store's default scope.
|
|
29
|
+
*/
|
|
30
|
+
knowledgeAccessScopes?: Record<string, string[]>;
|
|
22
31
|
responseHeaders?: HeadersInit;
|
|
23
32
|
}
|
|
24
33
|
interface Agents24BffDiagnostic {
|
package/dist/bff.js
CHANGED
|
@@ -303,6 +303,7 @@ async function submitConversationStream(input) {
|
|
|
303
303
|
...resolution.customerTenant === void 0 ? {} : { customer_tenant: resolution.customerTenant },
|
|
304
304
|
...resolution.trustedContext === void 0 ? {} : { trusted_context: resolution.trustedContext },
|
|
305
305
|
...resolution.knowledgeNamespaces === void 0 ? {} : { knowledge_namespaces: resolution.knowledgeNamespaces },
|
|
306
|
+
...resolution.knowledgeAccessScopes === void 0 ? {} : { knowledge_access_scopes: resolution.knowledgeAccessScopes },
|
|
306
307
|
...value.requestedOutputs === void 0 ? {} : { requested_outputs: value.requestedOutputs },
|
|
307
308
|
tool_inputs: value.toolInputs,
|
|
308
309
|
metadata: objectValue(body.metadata)
|
|
@@ -783,6 +784,7 @@ function createAgents24BffHandlerWithResolver(options, resolveCustomerIdentity)
|
|
|
783
784
|
...resolution.trustedContext === void 0 ? {} : { trustedContext: resolution.trustedContext },
|
|
784
785
|
...stringValue(body.requestedModelId) ? { requestedModelId: stringValue(body.requestedModelId) } : {},
|
|
785
786
|
...resolution.knowledgeNamespaces === void 0 ? {} : { knowledgeNamespaces: resolution.knowledgeNamespaces },
|
|
787
|
+
...resolution.knowledgeAccessScopes === void 0 ? {} : { knowledgeAccessScopes: resolution.knowledgeAccessScopes },
|
|
786
788
|
...stringValue(body.dictationSessionId) ? { dictationSessionId: stringValue(body.dictationSessionId) } : {},
|
|
787
789
|
...body.requestedOutputs === void 0 ? {} : { requestedOutputs: requestedOutputNames(body.requestedOutputs) },
|
|
788
790
|
toolInputs: objectValue(body.toolInputs),
|
|
@@ -801,6 +803,7 @@ function createAgents24BffHandlerWithResolver(options, resolveCustomerIdentity)
|
|
|
801
803
|
attachment_ids: attachmentIds,
|
|
802
804
|
...stringValue(body.requestedModelId) ? { requested_model_id: stringValue(body.requestedModelId) } : {},
|
|
803
805
|
...resolution.knowledgeNamespaces === void 0 ? {} : { knowledge_namespaces: resolution.knowledgeNamespaces },
|
|
806
|
+
...resolution.knowledgeAccessScopes === void 0 ? {} : { knowledge_access_scopes: resolution.knowledgeAccessScopes },
|
|
804
807
|
...stringValue(body.dictationSessionId) ? { dictation_session_id: stringValue(body.dictationSessionId) } : {},
|
|
805
808
|
...body.requestedOutputs === void 0 ? {} : { requested_outputs: requestedOutputNames(body.requestedOutputs) },
|
|
806
809
|
tool_inputs: objectValue(body.toolInputs),
|
|
@@ -945,6 +948,7 @@ function createAgents24BffHandlerWithResolver(options, resolveCustomerIdentity)
|
|
|
945
948
|
...resolution.trustedContext === void 0 ? {} : { trustedContext: resolution.trustedContext },
|
|
946
949
|
...resolution.customerTenant === void 0 ? {} : { customerTenant: resolution.customerTenant },
|
|
947
950
|
...resolution.knowledgeNamespaces === void 0 ? {} : { knowledgeNamespaces: resolution.knowledgeNamespaces },
|
|
951
|
+
...resolution.knowledgeAccessScopes === void 0 ? {} : { knowledgeAccessScopes: resolution.knowledgeAccessScopes },
|
|
948
952
|
agentVersionId: agentVersionId ?? null
|
|
949
953
|
},
|
|
950
954
|
{ idempotencyKey }
|
|
@@ -1298,6 +1302,7 @@ function createResolvedAgents24BffHandler(options, sharedIdentity) {
|
|
|
1298
1302
|
...body.requestedOutputs === void 0 ? {} : { requested_outputs: requestedOutputNames(body.requestedOutputs) },
|
|
1299
1303
|
...stringValue(body.requestedModelId) ? { requested_model_id: stringValue(body.requestedModelId) } : {},
|
|
1300
1304
|
...resolution.knowledgeNamespaces === void 0 ? {} : { knowledge_namespaces: resolution.knowledgeNamespaces },
|
|
1305
|
+
...resolution.knowledgeAccessScopes === void 0 ? {} : { knowledge_access_scopes: resolution.knowledgeAccessScopes },
|
|
1301
1306
|
tool_inputs: objectValue(body.toolInputs),
|
|
1302
1307
|
...body.metadata === void 0 ? {} : { metadata: objectValue(body.metadata) },
|
|
1303
1308
|
client: objectValue(body.client)
|