@econ-v1/app-sdk 6.17.0 → 6.18.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.
@@ -0,0 +1,39 @@
1
+ /**
2
+ * The versioned managed-v1 SDK seam.
3
+ *
4
+ * This is intentionally separate from index.ts, whose newline-delimited IPC
5
+ * protocol is the legacy Bun app contract. The host and this module both own
6
+ * the managed-v1 length prefix and canonical JSON rules.
7
+ */
8
+ export declare const MANAGED_V1_VERSION: "managed-v1";
9
+ export declare const MAX_FRAME_BYTES: number;
10
+ export type ManagedErrorFamily = "protocol" | "limit" | "epoch" | "app";
11
+ export interface ManagedCapabilityRequest {
12
+ type: "capability_request";
13
+ id: string;
14
+ nonce: string;
15
+ epoch: number;
16
+ capability: string;
17
+ payload: unknown;
18
+ timeout_ms: number;
19
+ }
20
+ export interface ManagedCapabilityResponse {
21
+ type: "capability_response";
22
+ id: string;
23
+ nonce: string;
24
+ epoch: number;
25
+ success: boolean;
26
+ payload: unknown;
27
+ }
28
+ export declare class ManagedProtocolError extends Error {
29
+ readonly family: ManagedErrorFamily;
30
+ constructor(family: ManagedErrorFamily, message: string);
31
+ }
32
+ export declare function encodeManagedFrame(value: unknown): Buffer;
33
+ export declare function decodeManagedFrame(frame: Buffer): unknown;
34
+ export declare class SessionNonce {
35
+ readonly value: string;
36
+ readonly version: typeof MANAGED_V1_VERSION;
37
+ private constructor();
38
+ static generate(): SessionNonce;
39
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@econ-v1/app-sdk",
3
- "version": "6.17.0",
3
+ "version": "6.18.0",
4
4
  "description": "TypeScript SDK for building Node mini-app plugins (Bun runtime) on the Lightning-powered marketplace daemon",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "author": "Node contributors",