@agents24/node 0.5.31 → 0.5.33
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 +5 -5
- package/dist/artifacts.cjs +12 -0
- package/dist/artifacts.cjs.map +1 -1
- package/dist/artifacts.d.cts +13 -1
- package/dist/artifacts.d.ts +13 -1
- package/dist/artifacts.js +12 -1
- package/dist/artifacts.js.map +1 -1
- package/dist/bff.cjs +266 -139
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +15 -7
- package/dist/bff.d.ts +15 -7
- package/dist/bff.js +266 -140
- package/dist/bff.js.map +1 -1
- package/dist/{client-vFBe6Sfx.d.cts → client-IX8nsoyr.d.cts} +66 -16
- package/dist/{client-vFBe6Sfx.d.ts → client-IX8nsoyr.d.ts} +66 -16
- package/dist/index.cjs +46 -4
- 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 +47 -5
- package/dist/index.js.map +1 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.js.map +1 -1
- package/dist/types/artifacts.d.ts +12 -0
- package/dist/types/artifacts.d.ts.map +1 -1
- package/dist/types/bff-agent-resolution.d.ts +5 -0
- package/dist/types/bff-agent-resolution.d.ts.map +1 -1
- package/dist/types/bff-bootstrap.d.ts +17 -0
- package/dist/types/bff-bootstrap.d.ts.map +1 -0
- package/dist/types/bff-conversation-submission.d.ts +16 -0
- package/dist/types/bff-conversation-submission.d.ts.map +1 -0
- package/dist/types/bff-errors.d.ts +1 -1
- package/dist/types/bff-errors.d.ts.map +1 -1
- package/dist/types/bff-history.d.ts +17 -0
- package/dist/types/bff-history.d.ts.map +1 -0
- package/dist/types/bff-multi-agent.d.ts +12 -0
- package/dist/types/bff-multi-agent.d.ts.map +1 -0
- package/dist/types/bff-request.d.ts +3 -1
- package/dist/types/bff-request.d.ts.map +1 -1
- package/dist/types/bff-resolver.d.ts +9 -0
- package/dist/types/bff-resolver.d.ts.map +1 -0
- package/dist/types/bff-single-agent.d.ts +5 -0
- package/dist/types/bff-single-agent.d.ts.map +1 -0
- package/dist/types/bff.d.ts +2 -4
- package/dist/types/bff.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 +2 -2
- package/dist/types/embed.d.ts.map +1 -1
- package/dist/types/generated/embed.d.ts +8 -0
- package/dist/types/generated/embed.d.ts.map +1 -0
- package/dist/types/generated/manifest.d.ts +1 -1
- package/dist/types/generated/manifest.d.ts.map +1 -1
- package/dist/types/streams.d.ts +1 -1
- package/dist/types/streams.d.ts.map +1 -1
- package/dist/types/types.d.ts +41 -0
- 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';
|
|
1
|
+
import { A as Agents24 } from './client-IX8nsoyr.cjs';
|
|
3
2
|
import '@agents24/client/protocol';
|
|
3
|
+
import '@agents24/client';
|
|
4
4
|
|
|
5
5
|
interface AgentBffPrincipal {
|
|
6
6
|
subject: string;
|
|
@@ -16,6 +16,7 @@ interface AgentBffPrincipalResolution {
|
|
|
16
16
|
issuer: string;
|
|
17
17
|
subject: string;
|
|
18
18
|
};
|
|
19
|
+
trustedContext?: Record<string, unknown>;
|
|
19
20
|
chatScope?: string;
|
|
20
21
|
knowledgeNamespaces?: Record<string, string>;
|
|
21
22
|
responseHeaders?: HeadersInit;
|
|
@@ -43,20 +44,27 @@ type Agents24BffAgent = Agents24BffAgentVersion & ({
|
|
|
43
44
|
interface Agents24BffHandlerOptions {
|
|
44
45
|
client: Pick<Agents24, "embed">;
|
|
45
46
|
agents: readonly Agents24BffAgent[];
|
|
47
|
+
/** Historical Agents are readable/deletable but never selectable for execution. */
|
|
48
|
+
readOnlyAgents?: readonly Agents24BffAgent[];
|
|
46
49
|
integrationId: string;
|
|
47
50
|
integrationName?: string;
|
|
48
51
|
runtimeTarget?: "draft" | "published";
|
|
49
52
|
basePath?: string;
|
|
50
53
|
resolvePrincipal(request: Request): Promise<AgentBffPrincipalResolution> | AgentBffPrincipalResolution;
|
|
51
54
|
revokePrincipal?(request: Request, principal: AgentBffPrincipal): Promise<HeadersInit | void> | HeadersInit | void;
|
|
55
|
+
onPrincipalResolved?(request: Request, resolution: AgentBffPrincipalResolution, principalRef: string): Promise<void> | void;
|
|
52
56
|
onDiagnostic?(diagnostic: Agents24BffDiagnostic): Promise<void> | void;
|
|
53
57
|
}
|
|
54
58
|
type Agents24BffHandler = (request: Request) => Promise<Response>;
|
|
55
59
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
type AgentBffResolverErrorKind = "unauthenticated" | "denied" | "unavailable";
|
|
61
|
+
/** Explicit authentication outcome from the application's trusted resolver. */
|
|
62
|
+
declare class AgentBffResolverError extends Error {
|
|
63
|
+
readonly kind: AgentBffResolverErrorKind;
|
|
64
|
+
readonly retryAfterMs?: number | undefined;
|
|
65
|
+
constructor(kind: AgentBffResolverErrorKind, retryAfterMs?: number | undefined);
|
|
66
|
+
}
|
|
67
|
+
|
|
60
68
|
declare function createAgents24BffHandler(options: Agents24BffHandlerOptions): Agents24BffHandler;
|
|
61
69
|
|
|
62
|
-
export { type AgentBffPrincipal, type AgentBffPrincipalResolution, type Agents24BffAgent, type Agents24BffDiagnostic, type Agents24BffHandler, type Agents24BffHandlerOptions, createAgents24BffHandler };
|
|
70
|
+
export { type AgentBffPrincipal, type AgentBffPrincipalResolution, AgentBffResolverError, type AgentBffResolverErrorKind, type Agents24BffAgent, type Agents24BffDiagnostic, type Agents24BffHandler, type Agents24BffHandlerOptions, createAgents24BffHandler };
|
package/dist/bff.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as Agents24 } from './client-
|
|
2
|
-
import '@agents24/client';
|
|
1
|
+
import { A as Agents24 } from './client-IX8nsoyr.js';
|
|
3
2
|
import '@agents24/client/protocol';
|
|
3
|
+
import '@agents24/client';
|
|
4
4
|
|
|
5
5
|
interface AgentBffPrincipal {
|
|
6
6
|
subject: string;
|
|
@@ -16,6 +16,7 @@ interface AgentBffPrincipalResolution {
|
|
|
16
16
|
issuer: string;
|
|
17
17
|
subject: string;
|
|
18
18
|
};
|
|
19
|
+
trustedContext?: Record<string, unknown>;
|
|
19
20
|
chatScope?: string;
|
|
20
21
|
knowledgeNamespaces?: Record<string, string>;
|
|
21
22
|
responseHeaders?: HeadersInit;
|
|
@@ -43,20 +44,27 @@ type Agents24BffAgent = Agents24BffAgentVersion & ({
|
|
|
43
44
|
interface Agents24BffHandlerOptions {
|
|
44
45
|
client: Pick<Agents24, "embed">;
|
|
45
46
|
agents: readonly Agents24BffAgent[];
|
|
47
|
+
/** Historical Agents are readable/deletable but never selectable for execution. */
|
|
48
|
+
readOnlyAgents?: readonly Agents24BffAgent[];
|
|
46
49
|
integrationId: string;
|
|
47
50
|
integrationName?: string;
|
|
48
51
|
runtimeTarget?: "draft" | "published";
|
|
49
52
|
basePath?: string;
|
|
50
53
|
resolvePrincipal(request: Request): Promise<AgentBffPrincipalResolution> | AgentBffPrincipalResolution;
|
|
51
54
|
revokePrincipal?(request: Request, principal: AgentBffPrincipal): Promise<HeadersInit | void> | HeadersInit | void;
|
|
55
|
+
onPrincipalResolved?(request: Request, resolution: AgentBffPrincipalResolution, principalRef: string): Promise<void> | void;
|
|
52
56
|
onDiagnostic?(diagnostic: Agents24BffDiagnostic): Promise<void> | void;
|
|
53
57
|
}
|
|
54
58
|
type Agents24BffHandler = (request: Request) => Promise<Response>;
|
|
55
59
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
type AgentBffResolverErrorKind = "unauthenticated" | "denied" | "unavailable";
|
|
61
|
+
/** Explicit authentication outcome from the application's trusted resolver. */
|
|
62
|
+
declare class AgentBffResolverError extends Error {
|
|
63
|
+
readonly kind: AgentBffResolverErrorKind;
|
|
64
|
+
readonly retryAfterMs?: number | undefined;
|
|
65
|
+
constructor(kind: AgentBffResolverErrorKind, retryAfterMs?: number | undefined);
|
|
66
|
+
}
|
|
67
|
+
|
|
60
68
|
declare function createAgents24BffHandler(options: Agents24BffHandlerOptions): Agents24BffHandler;
|
|
61
69
|
|
|
62
|
-
export { type AgentBffPrincipal, type AgentBffPrincipalResolution, type Agents24BffAgent, type Agents24BffDiagnostic, type Agents24BffHandler, type Agents24BffHandlerOptions, createAgents24BffHandler };
|
|
70
|
+
export { type AgentBffPrincipal, type AgentBffPrincipalResolution, AgentBffResolverError, type AgentBffResolverErrorKind, type Agents24BffAgent, type Agents24BffDiagnostic, type Agents24BffHandler, type Agents24BffHandlerOptions, createAgents24BffHandler };
|