@agents24/node 0.1.0 → 0.2.1
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/README.md +25 -3
- package/compatibility.json +10 -10
- package/dist/bff.cjs +466 -0
- package/dist/bff.cjs.map +1 -0
- package/dist/bff.d.cts +25 -0
- package/dist/bff.d.ts +25 -0
- package/dist/bff.js +464 -0
- package/dist/bff.js.map +1 -0
- package/dist/client-CnOaaCVH.d.cts +1018 -0
- package/dist/client-CnOaaCVH.d.ts +1018 -0
- package/dist/index.cjs +279 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -561
- package/dist/index.d.ts +4 -561
- package/dist/index.js +279 -55
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +52 -6
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +14 -2
- package/dist/server.d.ts +14 -2
- package/dist/server.js +50 -7
- package/dist/server.js.map +1 -1
- package/dist/types/agents.d.ts +5 -4
- package/dist/types/agents.d.ts.map +1 -1
- package/dist/types/bff.d.ts +22 -0
- package/dist/types/bff.d.ts.map +1 -0
- package/dist/types/builders.d.ts +2 -0
- package/dist/types/builders.d.ts.map +1 -1
- package/dist/types/client-runtime-admin.d.ts +3 -3
- package/dist/types/client-runtime-admin.d.ts.map +1 -1
- package/dist/types/client.d.ts +8 -0
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/embed.d.ts +6 -4
- package/dist/types/embed.d.ts.map +1 -1
- package/dist/types/errors.d.ts +10 -2
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/generated/instructions.d.ts +8 -0
- package/dist/types/generated/instructions.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/generated/resourceBundles.d.ts +12 -0
- package/dist/types/generated/resourceBundles.d.ts.map +1 -0
- package/dist/types/generated/resourcePackages.d.ts +10 -0
- package/dist/types/generated/resourcePackages.d.ts.map +1 -0
- package/dist/types/generated/resourcePolicies.d.ts +14 -0
- package/dist/types/generated/resourcePolicies.d.ts.map +1 -0
- package/dist/types/http.d.ts +0 -2
- package/dist/types/http.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/runs.d.ts +4 -2
- package/dist/types/runs.d.ts.map +1 -1
- package/dist/types/server.d.ts +13 -1
- package/dist/types/server.d.ts.map +1 -1
- package/dist/types/types.d.ts +466 -61
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +8 -2
package/dist/types/builders.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../../src/builders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EACV,kBAAkB,EAClB,sBAAsB,EAEtB,aAAa,EACb,eAAe,EAEf,SAAS,EACT,cAAc,EACf,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../../src/builders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EACV,kBAAkB,EAClB,sBAAsB,EAEtB,aAAa,EACb,eAAe,EAEf,SAAS,EACT,cAAc,EACf,MAAM,YAAY,CAAC;AA4BpB,qBAAa,sBAAsB;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAmB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAjD,MAAM,EAAE,eAAe,EAAmB,OAAO,EAAE,sBAAsB;IACtG,OAAO,IAAI,eAAe;IA8B1B,eAAe,IAAI,kBAAkB;IAarC,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CACzD;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgC;IACtD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmB;IACzC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EAAE,OAAO,GAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,SAAS;IAQ1I,OAAO,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,OAAO,GAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,IAAI;IAYjM,OAAO,IAAI,eAAe;CAM3B"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { Agents24HttpClient } from "./http.js";
|
|
2
|
-
import type { BackendSessionRequestOptions, ClientDeployment, ClientSessionCredentials, CreateBackendClientSessionRequest, CreateClientDeploymentRequest,
|
|
2
|
+
import type { BackendSessionRequestOptions, ClientDeployment, ClientDeploymentListQuery, ClientDeploymentListResponse, ClientSessionCredentials, CreateBackendClientSessionRequest, CreateClientDeploymentRequest, RequestOptions, UpdateClientDeploymentRequest } from "./types.js";
|
|
3
3
|
export declare class ClientDeploymentsNamespace {
|
|
4
4
|
private readonly http;
|
|
5
5
|
constructor(http: Agents24HttpClient);
|
|
6
6
|
create(request: CreateClientDeploymentRequest, options?: RequestOptions): Promise<ClientDeployment>;
|
|
7
|
+
list(query: ClientDeploymentListQuery): Promise<ClientDeploymentListResponse>;
|
|
7
8
|
get(deploymentId: string): Promise<ClientDeployment>;
|
|
8
9
|
update(deploymentId: string, request: UpdateClientDeploymentRequest, options?: RequestOptions): Promise<ClientDeployment>;
|
|
9
|
-
|
|
10
|
-
revoke(deploymentId: string, options?: RequestOptions): Promise<ClientDeployment>;
|
|
10
|
+
delete(deploymentId: string, options?: RequestOptions): Promise<ClientDeployment>;
|
|
11
11
|
}
|
|
12
12
|
export declare class ClientSessionsNamespace {
|
|
13
13
|
private readonly http;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-runtime-admin.d.ts","sourceRoot":"","sources":["../../src/client-runtime-admin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EACV,4BAA4B,EAC5B,gBAAgB,EAChB,wBAAwB,EACxB,iCAAiC,EACjC,6BAA6B,EAC7B,
|
|
1
|
+
{"version":3,"file":"client-runtime-admin.d.ts","sourceRoot":"","sources":["../../src/client-runtime-admin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EACV,4BAA4B,EAC5B,gBAAgB,EAChB,yBAAyB,EACzB,4BAA4B,EAC5B,wBAAwB,EACxB,iCAAiC,EACjC,6BAA6B,EAC7B,cAAc,EACd,6BAA6B,EAC9B,MAAM,YAAY,CAAC;AAEpB,qBAAa,0BAA0B;IACzB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,kBAAkB;IAErD,MAAM,CAAC,OAAO,EAAE,6BAA6B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAMnG,IAAI,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAU7E,GAAG,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIpD,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,6BAA6B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAMzH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAKlF;AAED,qBAAa,uBAAuB;IACtB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,kBAAkB;IAErD,oBAAoB,CAClB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,iCAAiC,EAC1C,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,wBAAwB,CAAC;CAYrC"}
|
package/dist/types/client.d.ts
CHANGED
|
@@ -2,14 +2,22 @@ import { AgentsNamespace } from "./agents.js";
|
|
|
2
2
|
import { AgentDefinitionBuilder, GraphBuilder } from "./builders.js";
|
|
3
3
|
import { ClientDeploymentsNamespace, ClientSessionsNamespace } from "./client-runtime-admin.js";
|
|
4
4
|
import { EmbedNamespace } from "./embed.js";
|
|
5
|
+
import { ResourceBundlesNamespace } from "./generated/resourceBundles.js";
|
|
6
|
+
import { ResourcePackagesNamespace } from "./generated/resourcePackages.js";
|
|
5
7
|
import { RunsNamespace } from "./runs.js";
|
|
8
|
+
import { InstructionsNamespace } from "./generated/instructions.js";
|
|
9
|
+
import { ResourcePoliciesNamespace } from "./generated/resourcePolicies.js";
|
|
6
10
|
import type { AgentDefinitionOptions, Agents24NodeOptions } from "./types.js";
|
|
7
11
|
export declare class Agents24 {
|
|
8
12
|
readonly agents: AgentsNamespace;
|
|
9
13
|
readonly embed: EmbedNamespace;
|
|
10
14
|
readonly runs: RunsNamespace;
|
|
15
|
+
readonly resourceBundles: ResourceBundlesNamespace;
|
|
16
|
+
readonly resourcePackages: ResourcePackagesNamespace;
|
|
11
17
|
readonly clientDeployments: ClientDeploymentsNamespace;
|
|
12
18
|
readonly clientSessions: ClientSessionsNamespace;
|
|
19
|
+
readonly instructions: InstructionsNamespace;
|
|
20
|
+
readonly resourcePolicies: ResourcePoliciesNamespace;
|
|
13
21
|
constructor(options: Agents24NodeOptions);
|
|
14
22
|
agent(options: AgentDefinitionOptions): AgentDefinitionBuilder;
|
|
15
23
|
graph(): GraphBuilder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,KAAK,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAE9E,qBAAa,QAAQ;IACnB,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,eAAe,EAAE,wBAAwB,CAAC;IACnD,QAAQ,CAAC,gBAAgB,EAAE,yBAAyB,CAAC;IACrD,QAAQ,CAAC,iBAAiB,EAAE,0BAA0B,CAAC;IACvD,QAAQ,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACjD,QAAQ,CAAC,YAAY,EAAE,qBAAqB,CAAC;IAC7C,QAAQ,CAAC,gBAAgB,EAAE,yBAAyB,CAAC;gBAEzC,OAAO,EAAE,mBAAmB;IAaxC,KAAK,CAAC,OAAO,EAAE,sBAAsB,GAAG,sBAAsB;IAI9D,KAAK,IAAI,YAAY;CACtB"}
|
package/dist/types/embed.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Agents24HttpClient } from "./http.js";
|
|
2
|
-
import type { AttachRunRequest, AttachmentUploadResult, EmbedRuntimeBootstrap, EmbedRunCancelOptions, EmbedStreamRequest, McpAuthStartRequest, McpAuthStartResult, MultiAgentThreadListRequest, MultiAgentThreadSummaryEventOptions, RequestOptions, ResumeRunRequest, RunCancelResult, RunContext, RunContextOptions, RunResumeResult, RuntimeEvent, ServerEmbedAttachmentUploadOptions, StreamRequestOptions, StreamResult, ThreadDeleteOptions, ThreadDeleteResult, ThreadDetail, ThreadDetailOptions, ThreadListOptions, ThreadSummaryEvent, ThreadSummaryEventOptions, ThreadsResponse } from "./types.js";
|
|
2
|
+
import type { AttachRunRequest, AttachmentUploadResult, AttachmentContentAccess, EmbedAttachmentContentAccessRequest, EmbedRuntimeBootstrap, EmbeddedResponseFeedbackInput, EmbedRunCancelOptions, EmbedStreamRequest, McpAuthStartRequest, McpAuthStartResult, MultiAgentThreadListRequest, MultiAgentThreadSummaryEventOptions, RequestOptions, ResumeRunRequest, RunCancelResult, RunContext, RunContextOptions, RunResumeResult, ResponseFeedbackResult, RuntimeEvent, ServerEmbedAttachmentUploadOptions, StreamRequestOptions, StreamResult, ThreadDeleteOptions, ThreadDeleteResult, ThreadDetail, ThreadDetailOptions, ThreadListOptions, ThreadSummaryEvent, ThreadSummaryEventOptions, ThreadsResponse } from "./types.js";
|
|
3
3
|
export declare class EmbedNamespace {
|
|
4
4
|
private readonly http;
|
|
5
5
|
constructor(http: Agents24HttpClient);
|
|
@@ -8,15 +8,17 @@ export declare class EmbedNamespace {
|
|
|
8
8
|
private stream;
|
|
9
9
|
resumeAgentRun(agentId: string, runId: string, payload: ResumeRunRequest, options?: RequestOptions): Promise<RunResumeResult>;
|
|
10
10
|
startAgentRunMcpAuth(agentId: string, runId: string, serverId: string, payload: McpAuthStartRequest, options?: RequestOptions): Promise<McpAuthStartResult>;
|
|
11
|
-
getRuntimeBootstrap(agentId: string): Promise<EmbedRuntimeBootstrap>;
|
|
11
|
+
getRuntimeBootstrap(agentId: string, agentVersionId?: string): Promise<EmbedRuntimeBootstrap>;
|
|
12
12
|
listAgentThreads(agentId: string, options: ThreadListOptions): Promise<ThreadsResponse>;
|
|
13
13
|
listAgentThreadsMulti(options: MultiAgentThreadListRequest): Promise<ThreadsResponse>;
|
|
14
14
|
subscribeAgentThreadEvents(agentId: string, options: ThreadSummaryEventOptions, onEvent: (event: ThreadSummaryEvent) => void | Promise<void>): Promise<void>;
|
|
15
15
|
subscribeAgentThreadEventsMulti(options: MultiAgentThreadSummaryEventOptions, onEvent: (event: ThreadSummaryEvent) => void | Promise<void>): Promise<void>;
|
|
16
16
|
getAgentThread(agentId: string, threadId: string, options: ThreadDetailOptions): Promise<ThreadDetail>;
|
|
17
|
-
deleteAgentThread(agentId: string, threadId: string, options: ThreadDeleteOptions): Promise<ThreadDeleteResult>;
|
|
17
|
+
deleteAgentThread(agentId: string, threadId: string, options: ThreadDeleteOptions, requestOptions?: RequestOptions): Promise<ThreadDeleteResult>;
|
|
18
18
|
getAgentRunContext(agentId: string, runId: string, options: RunContextOptions): Promise<RunContext>;
|
|
19
|
-
cancelAgentRun(agentId: string, runId: string, options: EmbedRunCancelOptions): Promise<RunCancelResult>;
|
|
19
|
+
cancelAgentRun(agentId: string, runId: string, options: EmbedRunCancelOptions, requestOptions?: RequestOptions): Promise<RunCancelResult>;
|
|
20
|
+
setAgentRunFeedback(agentId: string, runId: string, payload: EmbeddedResponseFeedbackInput): Promise<ResponseFeedbackResult>;
|
|
20
21
|
uploadAgentAttachments(agentId: string, options: ServerEmbedAttachmentUploadOptions): Promise<AttachmentUploadResult>;
|
|
22
|
+
createAttachmentContentAccess(agentId: string, attachmentId: string, request: EmbedAttachmentContentAccessRequest, options?: RequestOptions): Promise<AttachmentContentAccess>;
|
|
21
23
|
}
|
|
22
24
|
//# sourceMappingURL=embed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed.d.ts","sourceRoot":"","sources":["../../src/embed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE9D,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,mCAAmC,EACnC,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,kCAAkC,EAClC,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,kBAAkB;IAE/C,WAAW,CACf,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,kBAAkB,EAC3B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EACvD,OAAO,GAAE,oB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/errors.d.ts
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
export type Agents24SDKErrorKind = "protocol" | "network" | "http";
|
|
2
2
|
export type Agents24NodeErrorKind = Agents24SDKErrorKind;
|
|
3
|
+
import type { FailureView } from "./types.js";
|
|
3
4
|
export declare class Agents24SDKError extends Error {
|
|
4
5
|
readonly kind: Agents24SDKErrorKind;
|
|
5
6
|
readonly status?: number;
|
|
6
|
-
readonly
|
|
7
|
+
readonly failure?: FailureView;
|
|
7
8
|
readonly responseHeaders?: Readonly<Record<string, string>>;
|
|
8
9
|
constructor(message: string, options: {
|
|
9
10
|
kind: Agents24SDKErrorKind;
|
|
10
11
|
status?: number;
|
|
11
|
-
|
|
12
|
+
failure?: FailureView;
|
|
12
13
|
responseHeaders?: Readonly<Record<string, string>>;
|
|
13
14
|
cause?: unknown;
|
|
14
15
|
});
|
|
16
|
+
get code(): string | undefined;
|
|
17
|
+
get category(): string | undefined;
|
|
18
|
+
get failureId(): string | undefined;
|
|
19
|
+
get requestId(): string | undefined;
|
|
20
|
+
get retryable(): boolean;
|
|
21
|
+
get retryAfterMs(): number | undefined;
|
|
22
|
+
get details(): Readonly<Record<string, unknown>>;
|
|
15
23
|
}
|
|
16
24
|
export { Agents24SDKError as Agents24NodeError };
|
|
17
25
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AACnE,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AACnE,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC;IAC/B,QAAQ,CAAC,eAAe,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;gBAG1D,OAAO,EAAE,MAAM,EACf,OAAO,EAAE;QACP,IAAI,EAAE,oBAAoB,CAAC;QAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,WAAW,CAAC;QACtB,eAAe,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;QACnD,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;IAUH,IAAI,IAAI,IAAI,MAAM,GAAG,SAAS,CAA+B;IAC7D,IAAI,QAAQ,IAAI,MAAM,GAAG,SAAS,CAAmC;IACrE,IAAI,SAAS,IAAI,MAAM,GAAG,SAAS,CAAqC;IACxE,IAAI,SAAS,IAAI,MAAM,GAAG,SAAS,CAAkD;IACrF,IAAI,SAAS,IAAI,OAAO,CAA6C;IACrE,IAAI,YAAY,IAAI,MAAM,GAAG,SAAS,CAAsD;IAC5F,IAAI,OAAO,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAwC;CACzF;AAED,OAAO,EAAE,gBAAgB,IAAI,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Agents24HttpClient } from "../http";
|
|
2
|
+
import type { RequestOptions } from "../types";
|
|
3
|
+
export declare class InstructionsNamespace {
|
|
4
|
+
protected readonly http: Agents24HttpClient;
|
|
5
|
+
constructor(http: Agents24HttpClient);
|
|
6
|
+
publish(instructionId: string, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=instructions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,KAAK,EACV,cAAc,EACf,MAAM,UAAU,CAAC;AAElB,qBAAa,qBAAqB;IACpB,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,kBAAkB;gBAAxB,IAAI,EAAE,kBAAkB;IAEvD,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAQ3F"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const SDK_OPERATION_IDS: readonly ["agents.cancel_run", "agents.catalog", "agents.create", "agents.delete", "agents.get", "agents.list", "agents.publish", "agents.resume_run", "agents.schema", "agents.start_run", "agents.stream", "agents.update", "agents.update_graph", "agents.upload_attachments", "agents.validate", "client.attachments.upload", "client.bootstrap", "client.chat.stream", "client.deployments.create", "client.deployments.
|
|
1
|
+
export declare const SDK_OPERATION_IDS: readonly ["agents.cancel_run", "agents.catalog", "agents.create", "agents.create_attachment_content_access", "agents.delete", "agents.get", "agents.list", "agents.publish", "agents.resume_run", "agents.schema", "agents.start_run", "agents.stream", "agents.update", "agents.update_graph", "agents.upload_attachments", "agents.validate", "client.attachments.create_content_access", "client.attachments.upload", "client.bootstrap", "client.chat.stream", "client.deployments.create", "client.deployments.delete", "client.deployments.get", "client.deployments.list", "client.deployments.update", "client.hitl.resume", "client.jwks", "client.mcp.redeem", "client.mcp.start", "client.resource_policy", "client.runs.attach", "client.runs.cancel", "client.runs.set_feedback", "client.sessions.anonymous", "client.sessions.backendExchange", "client.sessions.refresh", "client.sessions.revoke", "client.threads.delete", "client.threads.events", "client.threads.get", "client.threads.list", "embed.attach_agent_run", "embed.cancel_agent_run", "embed.create_attachment_content_access", "embed.delete_agent_thread", "embed.get_agent_run_context", "embed.get_agent_thread", "embed.get_runtime_bootstrap", "embed.list_agent_threads", "embed.list_agent_threads_multi", "embed.resume_agent_run", "embed.set_agent_run_feedback", "embed.start_agent_run_mcp_auth", "embed.stream_agent", "embed.stream_agent_thread_events", "embed.stream_agent_thread_events_multi", "embed.upload_agent_attachments", "instructions.publish", "resource_bundles.candidates", "resource_bundles.export", "resource_bundles.export_plan", "resource_bundles.import", "resource_bundles.import_preview", "resource_packages.compile", "resource_packages.export", "resource_packages.validate", "resource_policies.clear_customer_assignment", "resource_policies.get_customer_assignment", "resource_policies.get_effective_customer_policy", "resource_policies.list", "resource_policies.reset_quota_now", "resource_policies.set_customer_assignment", "resource_policies.set_quota_schedule", "runs.get", "runs.get_context", "runs.get_events", "runs.get_trace", "runs.get_tree"];
|
|
2
2
|
export type SDKOperationId = (typeof SDK_OPERATION_IDS)[number];
|
|
3
3
|
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../src/generated/manifest.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../src/generated/manifest.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,ukEA+EpB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Agents24HttpClient } from "../http";
|
|
2
|
+
import type { RequestOptions, ResourceBundle, ResourceBundleCandidateList, ResourceBundleCandidateOptions, ResourceBundleExportRequest, ResourceBundleImportPreview, ResourceBundleImportRequest, ResourceBundleImportResult, ResourceBundlePlan } from "../types";
|
|
3
|
+
export declare class ResourceBundlesNamespace {
|
|
4
|
+
protected readonly http: Agents24HttpClient;
|
|
5
|
+
constructor(http: Agents24HttpClient);
|
|
6
|
+
exportPlan(request: ResourceBundleExportRequest): Promise<ResourceBundlePlan>;
|
|
7
|
+
exportBundle(request: ResourceBundleExportRequest): Promise<ResourceBundle>;
|
|
8
|
+
candidates(options: ResourceBundleCandidateOptions): Promise<ResourceBundleCandidateList>;
|
|
9
|
+
importPreview(request: ResourceBundleImportRequest): Promise<ResourceBundleImportPreview>;
|
|
10
|
+
importBundle(request: ResourceBundleImportRequest, options?: RequestOptions): Promise<ResourceBundleImportResult>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=resourceBundles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceBundles.d.ts","sourceRoot":"","sources":["../../../src/generated/resourceBundles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,2BAA2B,EAC3B,8BAA8B,EAC9B,2BAA2B,EAC3B,2BAA2B,EAC3B,2BAA2B,EAC3B,0BAA0B,EAC1B,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAElB,qBAAa,wBAAwB;IACvB,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,kBAAkB;gBAAxB,IAAI,EAAE,kBAAkB;IAEvD,UAAU,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAO7E,YAAY,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,cAAc,CAAC;IAO3E,UAAU,CAAC,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAYzF,aAAa,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAOzF,YAAY,CAAC,OAAO,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAQlH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Agents24HttpClient } from "../http";
|
|
2
|
+
import type { ResourcePackageArchive, ResourcePackageCompileResult, ResourcePackageExportRequest, ResourcePackageUpload } from "../types";
|
|
3
|
+
export declare class ResourcePackagesNamespace {
|
|
4
|
+
protected readonly http: Agents24HttpClient;
|
|
5
|
+
constructor(http: Agents24HttpClient);
|
|
6
|
+
exportPackage(request: ResourcePackageExportRequest): Promise<ResourcePackageArchive>;
|
|
7
|
+
validatePackage(upload: ResourcePackageUpload): Promise<ResourcePackageCompileResult>;
|
|
8
|
+
compilePackage(upload: ResourcePackageUpload): Promise<ResourcePackageCompileResult>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=resourcePackages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourcePackages.d.ts","sourceRoot":"","sources":["../../../src/generated/resourcePackages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,KAAK,EAEV,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,EAC5B,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAElB,qBAAa,yBAAyB;IACxB,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,kBAAkB;gBAAxB,IAAI,EAAE,kBAAkB;IAEjD,aAAa,CAAC,OAAO,EAAE,4BAA4B,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAarF,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAerF,cAAc,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,4BAA4B,CAAC;CAc3F"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Agents24HttpClient } from "../http";
|
|
2
|
+
import type { ClearCustomerResourcePolicyAssignmentResult, CustomerIdentityRequest, CustomerResourcePolicyAssignment, EffectiveCustomerResourcePolicyRequest, EffectiveResourcePolicy, RequestOptions, ResetResourcePolicyQuotaRequest, ResourcePolicyList, ResourcePolicyQuotaScheduleResult, SetCustomerResourcePolicyAssignmentRequest, SetResourcePolicyQuotaScheduleRequest } from "../types";
|
|
3
|
+
export declare class ResourcePoliciesNamespace {
|
|
4
|
+
protected readonly http: Agents24HttpClient;
|
|
5
|
+
constructor(http: Agents24HttpClient);
|
|
6
|
+
list(): Promise<ResourcePolicyList>;
|
|
7
|
+
setCustomerAssignment(request: SetCustomerResourcePolicyAssignmentRequest, options?: RequestOptions): Promise<CustomerResourcePolicyAssignment>;
|
|
8
|
+
getCustomerAssignment(request: CustomerIdentityRequest): Promise<CustomerResourcePolicyAssignment>;
|
|
9
|
+
clearCustomerAssignment(request: CustomerIdentityRequest, options?: RequestOptions): Promise<ClearCustomerResourcePolicyAssignmentResult>;
|
|
10
|
+
getEffectiveCustomerPolicy(request: EffectiveCustomerResourcePolicyRequest): Promise<EffectiveResourcePolicy>;
|
|
11
|
+
setQuotaSchedule(request: SetResourcePolicyQuotaScheduleRequest, options?: RequestOptions): Promise<ResourcePolicyQuotaScheduleResult>;
|
|
12
|
+
resetQuotaNow(request: ResetResourcePolicyQuotaRequest, options?: RequestOptions): Promise<ResourcePolicyQuotaScheduleResult>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=resourcePolicies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourcePolicies.d.ts","sourceRoot":"","sources":["../../../src/generated/resourcePolicies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,KAAK,EACV,2CAA2C,EAC3C,uBAAuB,EACvB,gCAAgC,EAChC,sCAAsC,EACtC,uBAAuB,EACvB,cAAc,EACd,+BAA+B,EAC/B,kBAAkB,EAClB,iCAAiC,EACjC,0CAA0C,EAC1C,qCAAqC,EACtC,MAAM,UAAU,CAAC;AAElB,qBAAa,yBAAyB;IACxB,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,kBAAkB;gBAAxB,IAAI,EAAE,kBAAkB;IAEvD,IAAI,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAInC,qBAAqB,CAAC,OAAO,EAAE,0CAA0C,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gCAAgC,CAAC;IAS/I,qBAAqB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,gCAAgC,CAAC;IAOlG,uBAAuB,CAAC,OAAO,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,2CAA2C,CAAC;IASzI,0BAA0B,CAAC,OAAO,EAAE,sCAAsC,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAO7G,gBAAgB,CAAC,OAAO,EAAE,qCAAqC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,iCAAiC,CAAC;IAStI,aAAa,CAAC,OAAO,EAAE,+BAA+B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,iCAAiC,CAAC;CAQ9H"}
|
package/dist/types/http.d.ts
CHANGED
|
@@ -11,8 +11,6 @@ export type RequestConfig = {
|
|
|
11
11
|
export declare class Agents24HttpClient {
|
|
12
12
|
private readonly base;
|
|
13
13
|
private readonly apiKey;
|
|
14
|
-
private readonly organizationId;
|
|
15
|
-
private readonly projectId;
|
|
16
14
|
private readonly fetchImpl;
|
|
17
15
|
constructor(options: Agents24NodeOptions);
|
|
18
16
|
url(requestPath: string, query?: Record<string, unknown>): string;
|
package/dist/types/http.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/http.ts"],"names":[],"mapp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,aAAkB,GAAG,OAAO,CAAC,CAAC,CAAC;IAa3E,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;CAOvF"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export type { Agents24SDKErrorKind, Agents24NodeErrorKind } from "./errors.js";
|
|
|
5
5
|
export { SDK_OPERATION_IDS } from "./generated/manifest.js";
|
|
6
6
|
export type { SDKOperationId } from "./generated/manifest.js";
|
|
7
7
|
export { CONTRACT_HASH, RUNTIME_PROTOCOL_VERSION, THREAD_SUMMARY_PROTOCOL_VERSION, compressionFromContextWindow, createContextWindowTracker, mergeContextWindow, mergeContextWindowUpdate, normalizeContextCompression, normalizeContextWindow, parseRuntimeEvent, parseRuntimeSsePayload, parseThreadSummarySsePayload, validateResponseBlock, validateRuntimeEvent, validateThreadSummaryEvent, } from "@agents24/client/protocol";
|
|
8
|
-
export type { ContextCompression, ContextWindow, ContextWindowConfidence, ContextWindowSource, ContextWindowStage, ContextWindowTracker, JsonScalar, JsonValue, ProtocolErrorCategory, PublicResponseBlock, RuntimeEvent, ThreadSummaryEvent, } from "@agents24/client/protocol";
|
|
8
|
+
export type { ContextCompression, ContextWindow, ContextWindowConfidence, ContextWindowSource, ContextWindowStage, ContextWindowTracker, JsonScalar, JsonValue, ModelTurnEventName, ModelTurnKind, ModelTurnOutcome, ModelTurnPayload, ModelTurnRuntimeEvent, ModelTurnStatus, ProtocolErrorCategory, PublicResponseBlock, RuntimeEvent, ThreadSummaryEvent, } from "@agents24/client/protocol";
|
|
9
9
|
export type * from "./types.js";
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OA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,EACxB,+BAA+B,EAC/B,4BAA4B,EAC5B,0BAA0B,EAC1B,kBAAkB,EAClB,wBAAwB,EACxB,2BAA2B,EAC3B,sBAAsB,EACtB,iBAAiB,EACjB,sBAAsB,EACtB,4BAA4B,EAC5B,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,kBAAkB,EAClB,aAAa,EACb,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AACnC,mBAAmB,YAAY,CAAC"}
|
package/dist/types/runs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Agents24HttpClient } from "./http.js";
|
|
2
|
-
import type { ControlPlaneRunEventsResponse, RunContext, RunStatus,
|
|
2
|
+
import type { ControlPlaneRunEventsResponse, RunContext, RunStatus, TraceView } from "./types.js";
|
|
3
3
|
export declare class RunsNamespace {
|
|
4
4
|
private readonly http;
|
|
5
5
|
constructor(http: Agents24HttpClient);
|
|
@@ -12,6 +12,8 @@ export declare class RunsNamespace {
|
|
|
12
12
|
limit?: number;
|
|
13
13
|
}): Promise<ControlPlaneRunEventsResponse>;
|
|
14
14
|
getContext(runId: string): Promise<RunContext>;
|
|
15
|
-
getTrace(runId: string
|
|
15
|
+
getTrace(runId: string, options?: {
|
|
16
|
+
includeDiagnostics?: boolean;
|
|
17
|
+
}): Promise<TraceView>;
|
|
16
18
|
}
|
|
17
19
|
//# sourceMappingURL=runs.d.ts.map
|
package/dist/types/runs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAE,6BAA6B,EAAE,UAAU,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../src/runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAE,6BAA6B,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAElG,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,kBAAkB;IACrD,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE;QAAE,WAAW,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,OAAO,CAAC,SAAS,CAAC;IAG/E,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxD,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE;QAAE,aAAa,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,OAAO,CAAC,6BAA6B,CAAC;IAG1H,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAC9C,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE;QAAE,kBAAkB,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,OAAO,CAAC,SAAS,CAAC;CAK5F"}
|
package/dist/types/server.d.ts
CHANGED
|
@@ -12,7 +12,8 @@ export type ArtifactInvokePayload = {
|
|
|
12
12
|
export type ArtifactServerOptions = {
|
|
13
13
|
exports: unknown;
|
|
14
14
|
toolsets?: unknown;
|
|
15
|
-
signingSecret
|
|
15
|
+
signingSecret?: string;
|
|
16
|
+
authMode?: "hmac_sha256" | "none";
|
|
16
17
|
manifestPath?: string;
|
|
17
18
|
invokePath?: string;
|
|
18
19
|
};
|
|
@@ -20,6 +21,7 @@ export type ArtifactSignatureHeaders = {
|
|
|
20
21
|
"x-agents24-timestamp": string;
|
|
21
22
|
"x-agents24-signature": string;
|
|
22
23
|
};
|
|
24
|
+
export declare const ARTIFACT_VERIFICATION_PURPOSE = "agents24.artifact.verify.v1";
|
|
23
25
|
export declare function signArtifactPayload(input: {
|
|
24
26
|
body: string;
|
|
25
27
|
signingSecret: string;
|
|
@@ -32,9 +34,19 @@ export declare function verifyArtifactSignature(input: {
|
|
|
32
34
|
signature: string | null | undefined;
|
|
33
35
|
toleranceMs?: number;
|
|
34
36
|
}): boolean;
|
|
37
|
+
export declare function createArtifactVerificationProof(input: {
|
|
38
|
+
challenge: string;
|
|
39
|
+
signingSecret: string;
|
|
40
|
+
}): string;
|
|
41
|
+
export declare function verifyArtifactVerificationProof(input: {
|
|
42
|
+
challenge: string;
|
|
43
|
+
signingSecret: string;
|
|
44
|
+
proof: string | null | undefined;
|
|
45
|
+
}): boolean;
|
|
35
46
|
export declare function createArtifactServer(options: ArtifactServerOptions): {
|
|
36
47
|
manifestPath: string;
|
|
37
48
|
healthPath: string;
|
|
49
|
+
verifyPath: string;
|
|
38
50
|
invokePath: string;
|
|
39
51
|
setExports: (next: unknown) => void;
|
|
40
52
|
manifest: () => Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,KAAK,eAAe,EAAE,KAAK,MAAM,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AASjG,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;I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