@byok-sdk/cloud 0.8.1 → 0.9.0
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/agent-memory-projection.d.ts +72 -0
- package/dist/capabilities.d.ts +8 -0
- package/dist/cloud.d.ts +28 -1
- package/dist/composition/in-memory.d.ts +5 -1
- package/dist/errors.d.ts +16 -0
- package/dist/handlers/agent-memory-projections.d.ts +15 -0
- package/dist/handlers/messages.d.ts +14 -1
- package/dist/handlers/shared.d.ts +12 -0
- package/dist/inbound.d.ts +14 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +481 -19
- package/dist/index.js.map +1 -1
- package/dist/stores/in-memory/agent-memory-projection.d.ts +29 -0
- package/package.json +3 -3
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** In-memory conformance implementation for the one-way hosted memory projection ports. */
|
|
2
|
+
import type { Clock, TenantId } from '@byok-sdk/core';
|
|
3
|
+
import { type AgentMemoryProjectionEraseResult, type AgentMemoryProjectionReceipt } from '@byok-sdk/protocol';
|
|
4
|
+
import type { AgentMemoryProjectionAuthorization, AgentMemoryProjectionAuthorizer, AgentMemoryProjectionAuthorizerInput, AgentMemoryProjectionCommitInput, AgentMemoryProjectionStore } from '../../agent-memory-projection';
|
|
5
|
+
import type { CloudCrypto } from '../../crypto/port';
|
|
6
|
+
/**
|
|
7
|
+
* Reference transaction semantics: current snapshot bytes and immutable
|
|
8
|
+
* metering receipt advance in the same serialized mutation. Receipts retain
|
|
9
|
+
* metadata only, never a body.
|
|
10
|
+
*/
|
|
11
|
+
export declare class InMemoryAgentMemoryProjectionStore implements AgentMemoryProjectionStore {
|
|
12
|
+
#private;
|
|
13
|
+
constructor(clock: Clock, crypto: CloudCrypto);
|
|
14
|
+
commit(input: AgentMemoryProjectionCommitInput): Promise<AgentMemoryProjectionReceipt>;
|
|
15
|
+
erase(input: {
|
|
16
|
+
readonly tenantId: TenantId;
|
|
17
|
+
readonly agentId: string;
|
|
18
|
+
}): Promise<AgentMemoryProjectionEraseResult>;
|
|
19
|
+
}
|
|
20
|
+
/** Test/reference authorizer whose grant registry demonstrates revocation without model booleans. */
|
|
21
|
+
export declare class InMemoryAgentMemoryProjectionAuthorizer implements AgentMemoryProjectionAuthorizer {
|
|
22
|
+
#private;
|
|
23
|
+
grant(input: AgentMemoryProjectionAuthorizerInput): void;
|
|
24
|
+
authorize(input: AgentMemoryProjectionAuthorizerInput): Promise<AgentMemoryProjectionAuthorization>;
|
|
25
|
+
revoke(input: {
|
|
26
|
+
readonly tenantId: TenantId;
|
|
27
|
+
readonly agentId: string;
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byok-sdk/cloud",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "BYOK SDK hosted device surface: stateless frozen-v1 HTTP handlers over tenant-first @byok-sdk/core ports",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"clean": "rm -rf dist"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@byok-sdk/core": "0.
|
|
48
|
-
"@byok-sdk/protocol": "0.
|
|
47
|
+
"@byok-sdk/core": "0.9.0",
|
|
48
|
+
"@byok-sdk/protocol": "0.9.0",
|
|
49
49
|
"hono": "^4.12.30",
|
|
50
50
|
"zod": "^4.4.3"
|
|
51
51
|
}
|