wire-mesh-core 1.1.0 → 1.3.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/adapters/frame-codec.d.cts +1 -1
- package/dist/adapters/frame-codec.d.mts +1 -1
- package/dist/adapters/node-identity.d.cts +2 -2
- package/dist/adapters/node-identity.d.mts +2 -2
- package/dist/domain/device-id.d.cts +1 -1
- package/dist/domain/device-id.d.mts +1 -1
- package/dist/domain/handshake.d.cts +1 -1
- package/dist/domain/handshake.d.mts +1 -1
- package/dist/domain/mesh-session.cjs +5 -5
- package/dist/domain/mesh-session.d.cts +7 -3
- package/dist/domain/mesh-session.d.mts +7 -3
- package/dist/domain/mesh-session.mjs +5 -5
- package/dist/domain/revocation-view.d.cts +1 -1
- package/dist/domain/revocation-view.d.mts +1 -1
- package/dist/domain/tokens.d.cts +2 -2
- package/dist/domain/tokens.d.mts +2 -2
- package/dist/generated/protocol.cjs +11 -0
- package/dist/generated/protocol.d.cts +2 -2
- package/dist/generated/protocol.d.mts +2 -2
- package/dist/generated/protocol.mjs +10 -1
- package/dist/{identity-BRLEUfVY.d.cts → identity-CedN2RyT.d.cts} +1 -1
- package/dist/{identity-qNkmGytv.d.mts → identity-CuNm8s38.d.mts} +1 -1
- package/dist/ports/identity.d.cts +1 -1
- package/dist/ports/identity.d.mts +1 -1
- package/dist/ports/transport.d.cts +1 -1
- package/dist/ports/transport.d.mts +1 -1
- package/dist/{protocol-B26-5VX7.d.cts → protocol-CrX3Du0D.d.cts} +34 -6
- package/dist/{protocol-B26-5VX7.d.mts → protocol-CrX3Du0D.d.mts} +34 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as Frame } from "../protocol-CrX3Du0D.cjs";
|
|
2
2
|
//#region src/adapters/frame-codec.d.ts
|
|
3
3
|
export declare function messageFromFrame(frame: Frame): Uint8Array<ArrayBuffer>;
|
|
4
4
|
/** A frame that fails schema validation, caught separately from a decode failure so it can be dropped without disconnecting. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as Frame } from "../protocol-CrX3Du0D.mjs";
|
|
2
2
|
//#region src/adapters/frame-codec.d.ts
|
|
3
3
|
export declare function messageFromFrame(frame: Frame): Uint8Array<ArrayBuffer>;
|
|
4
4
|
/** A frame that fails schema validation, caught separately from a decode failure so it can be dropped without disconnecting. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as IdentityPort } from "../identity-
|
|
1
|
+
import { N as IdentityKey, b as DeviceId } from "../protocol-CrX3Du0D.cjs";
|
|
2
|
+
import { t as IdentityPort } from "../identity-CedN2RyT.cjs";
|
|
3
3
|
import { webcrypto } from "node:crypto";
|
|
4
4
|
//#region src/adapters/node-identity.d.ts
|
|
5
5
|
export declare function deriveDeviceId(publicKey: Uint8Array): Promise<DeviceId>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as IdentityPort } from "../identity-
|
|
1
|
+
import { N as IdentityKey, b as DeviceId } from "../protocol-CrX3Du0D.mjs";
|
|
2
|
+
import { t as IdentityPort } from "../identity-CuNm8s38.mjs";
|
|
3
3
|
import { webcrypto } from "node:crypto";
|
|
4
4
|
//#region src/adapters/node-identity.d.ts
|
|
5
5
|
export declare function deriveDeviceId(publicKey: Uint8Array): Promise<DeviceId>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as DeviceId } from "../protocol-CrX3Du0D.cjs";
|
|
2
2
|
//#region src/domain/device-id.d.ts
|
|
3
3
|
/** Lowercase, byte-exact hex for an arbitrary-length byte string -- the same encoding convention deviceIdToHex uses for the fixed-length device-id case, extracted so any other byte string needing a stable, displayable, map-keyable text form (e.g. a token-id, which tokens.cddl defines as an arbitrary-length bstr rather than a 32-byte device-id) can use the identical convention without going through a device-id-shaped function. */
|
|
4
4
|
export declare function bytesToHex(bytes: Uint8Array): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as DeviceId } from "../protocol-CrX3Du0D.mjs";
|
|
2
2
|
//#region src/domain/device-id.d.ts
|
|
3
3
|
/** Lowercase, byte-exact hex for an arbitrary-length byte string -- the same encoding convention deviceIdToHex uses for the fixed-length device-id case, extracted so any other byte string needing a stable, displayable, map-keyable text form (e.g. a token-id, which tokens.cddl defines as an arbitrary-length bstr rather than a 32-byte device-id) can use the identical convention without going through a device-id-shaped function. */
|
|
4
4
|
export declare function bytesToHex(bytes: Uint8Array): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as ProtocolVersion, C as DomainId, j as HandshakeFrame } from "../protocol-CrX3Du0D.cjs";
|
|
2
2
|
//#region src/domain/handshake.d.ts
|
|
3
3
|
/** The highest protocol version this build of core understands. */
|
|
4
4
|
export declare const SUPPORTED_PROTOCOL_VERSION: ProtocolVersion;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as ProtocolVersion, C as DomainId, j as HandshakeFrame } from "../protocol-CrX3Du0D.mjs";
|
|
2
2
|
//#region src/domain/handshake.d.ts
|
|
3
3
|
/** The highest protocol version this build of core understands. */
|
|
4
4
|
export declare const SUPPORTED_PROTOCOL_VERSION: ProtocolVersion;
|
|
@@ -16,7 +16,7 @@ function localHandshake(domains) {
|
|
|
16
16
|
/**
|
|
17
17
|
* Builds the connection-agnostic session state machine and its public MeshSession surface. dial is null for a session that can never (re)connect on its own -- acceptMeshSession's case, where the one connection it will ever have already exists by construction and reconnect therefore cannot apply (only the remote redialing, and being accepted again, produces a fresh connection). createMeshSession supplies dial as transport.connect so its own connect()/reconnect behaviour is unchanged from before this was factored out.
|
|
18
18
|
*/
|
|
19
|
-
function createSessionCore(identity, clock, reconnect, dial, onPeerAdvert) {
|
|
19
|
+
function createSessionCore(identity, clock, reconnect, dial, onPeerAdvert, addresses = []) {
|
|
20
20
|
let connection = null;
|
|
21
21
|
let state = { status: "idle" };
|
|
22
22
|
let handshake = { status: "pending" };
|
|
@@ -248,7 +248,7 @@ function createSessionCore(identity, clock, reconnect, dial, onPeerAdvert) {
|
|
|
248
248
|
type: "gossip",
|
|
249
249
|
peers: [{
|
|
250
250
|
device: identity.deviceId,
|
|
251
|
-
addresses: [],
|
|
251
|
+
addresses: [...addresses],
|
|
252
252
|
"snapshot-seconds": Math.floor(clock.now() / MS_PER_SECOND)
|
|
253
253
|
}]
|
|
254
254
|
};
|
|
@@ -410,8 +410,8 @@ function createSessionCore(identity, clock, reconnect, dial, onPeerAdvert) {
|
|
|
410
410
|
}
|
|
411
411
|
};
|
|
412
412
|
}
|
|
413
|
-
function createMeshSession(transport, identity, clock = { now: () => Date.now() }, reconnect = null) {
|
|
414
|
-
const { session } = createSessionCore(identity, clock, reconnect, async (address) => transport.connect(address));
|
|
413
|
+
function createMeshSession(transport, identity, clock = { now: () => Date.now() }, reconnect = null, addresses = []) {
|
|
414
|
+
const { session } = createSessionCore(identity, clock, reconnect, async (address) => transport.connect(address), void 0, addresses);
|
|
415
415
|
return session;
|
|
416
416
|
}
|
|
417
417
|
/** Wires an already-accepted Connection up as a full MeshSession, mirroring exactly what createMeshSession's own dial path does once a connection exists (send handshake, send self-advert, negotiate, consume frames) -- the wire-mesh#45 prerequisite agent-comms needs, since its peers both listen and dial rather than only ever dialing the way web-console's own console UI does. Reconnect does not apply here: if this connection drops, only the remote redialing and being accepted again produces a new connection, and therefore a new session -- there is nothing on this side to retry. */
|
|
@@ -426,7 +426,7 @@ async function acceptMeshSession(connection, identity, localDomains, options = {
|
|
|
426
426
|
if (peerDeviceIdResolved) return;
|
|
427
427
|
peerDeviceIdResolved = true;
|
|
428
428
|
resolvePeerDeviceId?.(advert.device);
|
|
429
|
-
});
|
|
429
|
+
}, options.addresses);
|
|
430
430
|
await wireUpConnection(connection, options.label ?? "accepted", localDomains);
|
|
431
431
|
return {
|
|
432
432
|
...session,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as IdentityPort } from "../identity-
|
|
1
|
+
import { $ as ProtocolVersion, E as Frame, G as PeerAdvert, I as ManageError, L as ManageOk, P as ManageCommand, a as CapabilityScope, b as DeviceId, o as CapabilityToken, ut as RevocationEntry } from "../protocol-CrX3Du0D.cjs";
|
|
2
|
+
import { t as IdentityPort } from "../identity-CedN2RyT.cjs";
|
|
3
3
|
import { t as Clock } from "../clock-DiSx-WKM.cjs";
|
|
4
4
|
import { Connection, Transport } from "../ports/transport.cjs";
|
|
5
5
|
//#region src/domain/mesh-session.d.ts
|
|
@@ -85,7 +85,9 @@ export interface MeshSession {
|
|
|
85
85
|
sendManageRequest: (command: ManageCommand, scope: Readonly<CapabilityScope>, targetDevice?: DeviceId, token?: CapabilityToken) => Promise<ManageOutcome>;
|
|
86
86
|
close: () => Promise<void>;
|
|
87
87
|
}
|
|
88
|
-
export declare function createMeshSession(transport: Readonly<Transport>, identity: Readonly<IdentityPort>, clock?: Readonly<Clock>, reconnect?: ReconnectPolicy | null
|
|
88
|
+
export declare function createMeshSession(transport: Readonly<Transport>, identity: Readonly<IdentityPort>, clock?: Readonly<Clock>, reconnect?: ReconnectPolicy | null,
|
|
89
|
+
/** This node's own directly-reachable "host:port" candidates (wire-mesh#38), advertised in this session's self-advert so other peers can attempt a direct connection instead of always falling back to a relay. Omit (or pass none) for a caller with nothing to offer, e.g. a browser client. */
|
|
90
|
+
addresses?: readonly string[]): MeshSession;
|
|
89
91
|
/** A MeshSession built over a connection that already exists (a Transport's own listen() handed it to onConnection), extended with the one thing a dial-side session can't offer: the device-id of the specific peer at the other end. Unlike createMeshSession, which may end up talking to a relay gossiping about many devices at once, an accepted connection is the agent-comms case -- exactly two peers, directly connected -- so "the peer" is well-defined here in a way it structurally isn't for the dial side. */
|
|
90
92
|
export interface AcceptedMeshSession extends MeshSession {
|
|
91
93
|
/** Resolves with the device-id carried by the first peer-advert this connection's remote sends -- the same self-advertisement mechanism createMeshSession's own directory already relies on for every peer, just narrowed to "the one peer this specific connection is with" rather than accumulated into a directory of possibly many. There is no transport-level authentication behind this yet (see wire-mesh#45's own createTlsTransport item): it is only as trustworthy as the remote's own gossip, exactly the same trust level the dial-side directory already has for every entry in it. */
|
|
@@ -95,6 +97,8 @@ export interface AcceptedMeshSessionOptions {
|
|
|
95
97
|
/** A caller-chosen label for this connection, used only for ConnectionState's own address field -- the Connection/Transport ports expose no remote-address concept an accepted connection could report on its own (see wire-mesh#45). Defaults to a fixed placeholder since most callers have nothing more specific to offer; a transport adapter that does know the remote's address should pass it here. */
|
|
96
98
|
label?: string;
|
|
97
99
|
clock?: Readonly<Clock>;
|
|
100
|
+
/** This node's own directly-reachable "host:port" candidates (wire-mesh#38), advertised in this session's self-advert. Omit (or pass none) for a caller with nothing to offer. */
|
|
101
|
+
addresses?: readonly string[];
|
|
98
102
|
}
|
|
99
103
|
/** Wires an already-accepted Connection up as a full MeshSession, mirroring exactly what createMeshSession's own dial path does once a connection exists (send handshake, send self-advert, negotiate, consume frames) -- the wire-mesh#45 prerequisite agent-comms needs, since its peers both listen and dial rather than only ever dialing the way web-console's own console UI does. Reconnect does not apply here: if this connection drops, only the remote redialing and being accepted again produces a new connection, and therefore a new session -- there is nothing on this side to retry. */
|
|
100
104
|
export declare function acceptMeshSession(connection: Readonly<Connection>, identity: Readonly<IdentityPort>, localDomains: readonly string[], options?: Readonly<AcceptedMeshSessionOptions>): Promise<AcceptedMeshSession>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as IdentityPort } from "../identity-
|
|
1
|
+
import { $ as ProtocolVersion, E as Frame, G as PeerAdvert, I as ManageError, L as ManageOk, P as ManageCommand, a as CapabilityScope, b as DeviceId, o as CapabilityToken, ut as RevocationEntry } from "../protocol-CrX3Du0D.mjs";
|
|
2
|
+
import { t as IdentityPort } from "../identity-CuNm8s38.mjs";
|
|
3
3
|
import { t as Clock } from "../clock-DiSx-WKM.mjs";
|
|
4
4
|
import { Connection, Transport } from "../ports/transport.mjs";
|
|
5
5
|
//#region src/domain/mesh-session.d.ts
|
|
@@ -85,7 +85,9 @@ export interface MeshSession {
|
|
|
85
85
|
sendManageRequest: (command: ManageCommand, scope: Readonly<CapabilityScope>, targetDevice?: DeviceId, token?: CapabilityToken) => Promise<ManageOutcome>;
|
|
86
86
|
close: () => Promise<void>;
|
|
87
87
|
}
|
|
88
|
-
export declare function createMeshSession(transport: Readonly<Transport>, identity: Readonly<IdentityPort>, clock?: Readonly<Clock>, reconnect?: ReconnectPolicy | null
|
|
88
|
+
export declare function createMeshSession(transport: Readonly<Transport>, identity: Readonly<IdentityPort>, clock?: Readonly<Clock>, reconnect?: ReconnectPolicy | null,
|
|
89
|
+
/** This node's own directly-reachable "host:port" candidates (wire-mesh#38), advertised in this session's self-advert so other peers can attempt a direct connection instead of always falling back to a relay. Omit (or pass none) for a caller with nothing to offer, e.g. a browser client. */
|
|
90
|
+
addresses?: readonly string[]): MeshSession;
|
|
89
91
|
/** A MeshSession built over a connection that already exists (a Transport's own listen() handed it to onConnection), extended with the one thing a dial-side session can't offer: the device-id of the specific peer at the other end. Unlike createMeshSession, which may end up talking to a relay gossiping about many devices at once, an accepted connection is the agent-comms case -- exactly two peers, directly connected -- so "the peer" is well-defined here in a way it structurally isn't for the dial side. */
|
|
90
92
|
export interface AcceptedMeshSession extends MeshSession {
|
|
91
93
|
/** Resolves with the device-id carried by the first peer-advert this connection's remote sends -- the same self-advertisement mechanism createMeshSession's own directory already relies on for every peer, just narrowed to "the one peer this specific connection is with" rather than accumulated into a directory of possibly many. There is no transport-level authentication behind this yet (see wire-mesh#45's own createTlsTransport item): it is only as trustworthy as the remote's own gossip, exactly the same trust level the dial-side directory already has for every entry in it. */
|
|
@@ -95,6 +97,8 @@ export interface AcceptedMeshSessionOptions {
|
|
|
95
97
|
/** A caller-chosen label for this connection, used only for ConnectionState's own address field -- the Connection/Transport ports expose no remote-address concept an accepted connection could report on its own (see wire-mesh#45). Defaults to a fixed placeholder since most callers have nothing more specific to offer; a transport adapter that does know the remote's address should pass it here. */
|
|
96
98
|
label?: string;
|
|
97
99
|
clock?: Readonly<Clock>;
|
|
100
|
+
/** This node's own directly-reachable "host:port" candidates (wire-mesh#38), advertised in this session's self-advert. Omit (or pass none) for a caller with nothing to offer. */
|
|
101
|
+
addresses?: readonly string[];
|
|
98
102
|
}
|
|
99
103
|
/** Wires an already-accepted Connection up as a full MeshSession, mirroring exactly what createMeshSession's own dial path does once a connection exists (send handshake, send self-advert, negotiate, consume frames) -- the wire-mesh#45 prerequisite agent-comms needs, since its peers both listen and dial rather than only ever dialing the way web-console's own console UI does. Reconnect does not apply here: if this connection drops, only the remote redialing and being accepted again produces a new connection, and therefore a new session -- there is nothing on this side to retry. */
|
|
100
104
|
export declare function acceptMeshSession(connection: Readonly<Connection>, identity: Readonly<IdentityPort>, localDomains: readonly string[], options?: Readonly<AcceptedMeshSessionOptions>): Promise<AcceptedMeshSession>;
|
|
@@ -15,7 +15,7 @@ function localHandshake(domains) {
|
|
|
15
15
|
/**
|
|
16
16
|
* Builds the connection-agnostic session state machine and its public MeshSession surface. dial is null for a session that can never (re)connect on its own -- acceptMeshSession's case, where the one connection it will ever have already exists by construction and reconnect therefore cannot apply (only the remote redialing, and being accepted again, produces a fresh connection). createMeshSession supplies dial as transport.connect so its own connect()/reconnect behaviour is unchanged from before this was factored out.
|
|
17
17
|
*/
|
|
18
|
-
function createSessionCore(identity, clock, reconnect, dial, onPeerAdvert) {
|
|
18
|
+
function createSessionCore(identity, clock, reconnect, dial, onPeerAdvert, addresses = []) {
|
|
19
19
|
let connection = null;
|
|
20
20
|
let state = { status: "idle" };
|
|
21
21
|
let handshake = { status: "pending" };
|
|
@@ -247,7 +247,7 @@ function createSessionCore(identity, clock, reconnect, dial, onPeerAdvert) {
|
|
|
247
247
|
type: "gossip",
|
|
248
248
|
peers: [{
|
|
249
249
|
device: identity.deviceId,
|
|
250
|
-
addresses: [],
|
|
250
|
+
addresses: [...addresses],
|
|
251
251
|
"snapshot-seconds": Math.floor(clock.now() / MS_PER_SECOND)
|
|
252
252
|
}]
|
|
253
253
|
};
|
|
@@ -409,8 +409,8 @@ function createSessionCore(identity, clock, reconnect, dial, onPeerAdvert) {
|
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
-
function createMeshSession(transport, identity, clock = { now: () => Date.now() }, reconnect = null) {
|
|
413
|
-
const { session } = createSessionCore(identity, clock, reconnect, async (address) => transport.connect(address));
|
|
412
|
+
function createMeshSession(transport, identity, clock = { now: () => Date.now() }, reconnect = null, addresses = []) {
|
|
413
|
+
const { session } = createSessionCore(identity, clock, reconnect, async (address) => transport.connect(address), void 0, addresses);
|
|
414
414
|
return session;
|
|
415
415
|
}
|
|
416
416
|
/** Wires an already-accepted Connection up as a full MeshSession, mirroring exactly what createMeshSession's own dial path does once a connection exists (send handshake, send self-advert, negotiate, consume frames) -- the wire-mesh#45 prerequisite agent-comms needs, since its peers both listen and dial rather than only ever dialing the way web-console's own console UI does. Reconnect does not apply here: if this connection drops, only the remote redialing and being accepted again produces a new connection, and therefore a new session -- there is nothing on this side to retry. */
|
|
@@ -425,7 +425,7 @@ async function acceptMeshSession(connection, identity, localDomains, options = {
|
|
|
425
425
|
if (peerDeviceIdResolved) return;
|
|
426
426
|
peerDeviceIdResolved = true;
|
|
427
427
|
resolvePeerDeviceId?.(advert.device);
|
|
428
|
-
});
|
|
428
|
+
}, options.addresses);
|
|
429
429
|
await wireUpConnection(connection, options.label ?? "accepted", localDomains);
|
|
430
430
|
return {
|
|
431
431
|
...session,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ut as RevocationEntry } from "../protocol-CrX3Du0D.cjs";
|
|
2
2
|
import { RevocationCheck, RevocationEntryVerdict, VerifyRevocationEntryOptions } from "./tokens.cjs";
|
|
3
3
|
//#region src/domain/revocation-view.d.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ut as RevocationEntry } from "../protocol-CrX3Du0D.mjs";
|
|
2
2
|
import { RevocationCheck, RevocationEntryVerdict, VerifyRevocationEntryOptions } from "./tokens.mjs";
|
|
3
3
|
//#region src/domain/revocation-view.d.ts
|
|
4
4
|
/**
|
package/dist/domain/tokens.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as IdentityPort } from "../identity-
|
|
1
|
+
import { Ot as TokenClaims, b as DeviceId, lt as RevocationClaims, o as CapabilityToken, ut as RevocationEntry } from "../protocol-CrX3Du0D.cjs";
|
|
2
|
+
import { t as IdentityPort } from "../identity-CedN2RyT.cjs";
|
|
3
3
|
import { t as Clock } from "../clock-DiSx-WKM.cjs";
|
|
4
4
|
//#region src/domain/tokens.d.ts
|
|
5
5
|
/**
|
package/dist/domain/tokens.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as IdentityPort } from "../identity-
|
|
1
|
+
import { Ot as TokenClaims, b as DeviceId, lt as RevocationClaims, o as CapabilityToken, ut as RevocationEntry } from "../protocol-CrX3Du0D.mjs";
|
|
2
|
+
import { t as IdentityPort } from "../identity-CuNm8s38.mjs";
|
|
3
3
|
import { t as Clock } from "../clock-DiSx-WKM.mjs";
|
|
4
4
|
//#region src/domain/tokens.d.ts
|
|
5
5
|
/**
|
|
@@ -39,6 +39,7 @@ const manageCommandParamsSchema = zod.z.lazy(() => zod.z.union([
|
|
|
39
39
|
zod.z.lazy(() => execListSchema)
|
|
40
40
|
]),
|
|
41
41
|
zod.z.object({}).catchall(zod.z.unknown()),
|
|
42
|
+
zod.z.lazy(() => capabilityRequestSchema),
|
|
42
43
|
zod.z.union([
|
|
43
44
|
zod.z.lazy(() => roomSendSchema),
|
|
44
45
|
zod.z.lazy(() => roomReadSchema),
|
|
@@ -177,6 +178,14 @@ const manageResponseFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
|
177
178
|
"request-id": zod.z.number().int().nonnegative(),
|
|
178
179
|
"outcome": zod.z.union([zod.z.lazy(() => manageOkSchema), zod.z.lazy(() => manageErrorSchema)])
|
|
179
180
|
}));
|
|
181
|
+
const capabilityRequestSchema = zod.z.lazy(() => zod.z.object({
|
|
182
|
+
"verb": zod.z.literal("capability.request"),
|
|
183
|
+
"capability": zod.z.string()
|
|
184
|
+
}).catchall(zod.z.unknown()));
|
|
185
|
+
const capabilityGrantOkSchema = zod.z.lazy(() => zod.z.object({
|
|
186
|
+
"result": zod.z.literal("ok"),
|
|
187
|
+
"granted-token": zod.z.lazy(() => capabilityTokenSchema)
|
|
188
|
+
}).catchall(zod.z.unknown()));
|
|
180
189
|
const revocationClaimsSchema = zod.z.lazy(() => zod.z.object({
|
|
181
190
|
"token-id": zod.z.instanceof(Uint8Array),
|
|
182
191
|
"issuer": zod.z.lazy(() => deviceIdSchema),
|
|
@@ -382,6 +391,8 @@ const iceCandidateInitSchema = zod.z.lazy(() => zod.z.object({
|
|
|
382
391
|
//#endregion
|
|
383
392
|
exports.candidateKindSchema = candidateKindSchema;
|
|
384
393
|
exports.candidatesFrameSchema = candidatesFrameSchema;
|
|
394
|
+
exports.capabilityGrantOkSchema = capabilityGrantOkSchema;
|
|
395
|
+
exports.capabilityRequestSchema = capabilityRequestSchema;
|
|
385
396
|
exports.capabilityScopeSchema = capabilityScopeSchema;
|
|
386
397
|
exports.capabilityTokenSchema = capabilityTokenSchema;
|
|
387
398
|
exports.capabilityVerbSchema = capabilityVerbSchema;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { CandidateKind, CandidatesFrame, CapabilityScope, CapabilityToken, CapabilityVerb, CloseFrame, CoordinatorFrame, CoreCapability, CoreDomainName, CoseHeaderAlg, CoseHeaderKid, CoseHeaderLabel, CoseSign1, CoseTokenHeaders, DataEntriesFrame, DataHaveFrame, DataRequestFrame, DeviceId, DeviceIdHex, DmRoomPath, DomainId, ExecList, ExecSessionInfo, Frame, FrameVariant, GossipFrame, HandleClaims, HandleRecord, HandshakeFrame, IceCandidateInit, IdentityKey, ManageCommand, ManageCommandParams, ManageError, ManageOk, ManageRequestFrame, ManageResponseFrame, MessageRef, NamespacedCapability, NamespacedDomainId, ObservedAddressFrame, OwnerNamedRoomPath, PeerAdvert, PeerIdentity, PingFrame, PrivateUseCapability, PrivateUseDomainId, ProcKill, ProcSignal, ProcSpawn, ProtocolVersion, PtyKill, PtyResize, PtySpawn, PtyWrite, RelayConnectFrame, RelayDataFrame, RelayInboundFrame, RelayOfferFrame, RevocationAnnounceFrame, RevocationClaims, RevocationEntry, RoomInvite, RoomJoin, RoomJoinOk, RoomLeave, RoomMember, RoomMembers, RoomMembersOk, RoomNotice, RoomNoticeClaims, RoomPath, RoomRead, RoomSend, StreamAckFrame, StreamDataFrame, StreamEndFrame, StreamSession, SyncPunchFrame, TokenClaims, WebrtcAnswer, WebrtcIceCandidate, WebrtcOffer, WireCandidate, candidateKindSchema, candidatesFrameSchema, capabilityScopeSchema, capabilityTokenSchema, capabilityVerbSchema, closeFrameSchema, coordinatorFrameSchema, coreCapabilitySchema, coreDomainNameSchema, coseHeaderAlgSchema, coseHeaderKidSchema, coseHeaderLabelSchema, coseSign1Schema, coseTokenHeadersSchema, dataEntriesFrameSchema, dataHaveFrameSchema, dataRequestFrameSchema, deviceIdHexSchema, deviceIdSchema, dmRoomPathSchema, domainIdSchema, execListSchema, execSessionInfoSchema, frameSchema, frameVariantSchema, gossipFrameSchema, handleClaimsSchema, handleRecordSchema, handshakeFrameSchema, iceCandidateInitSchema, identityKeySchema, manageCommandParamsSchema, manageCommandSchema, manageErrorSchema, manageOkSchema, manageRequestFrameSchema, manageResponseFrameSchema, messageRefSchema, namespacedCapabilitySchema, namespacedDomainIdSchema, observedAddressFrameSchema, ownerNamedRoomPathSchema, peerAdvertSchema, peerIdentitySchema, pingFrameSchema, privateUseCapabilitySchema, privateUseDomainIdSchema, procKillSchema, procSignalSchema, procSpawnSchema, protocolVersionSchema, ptyKillSchema, ptyResizeSchema, ptySpawnSchema, ptyWriteSchema, relayConnectFrameSchema, relayDataFrameSchema, relayInboundFrameSchema, relayOfferFrameSchema, revocationAnnounceFrameSchema, revocationClaimsSchema, revocationEntrySchema, roomInviteSchema, roomJoinOkSchema, roomJoinSchema, roomLeaveSchema, roomMemberSchema, roomMembersOkSchema, roomMembersSchema, roomNoticeClaimsSchema, roomNoticeSchema, roomPathSchema, roomReadSchema, roomSendSchema, streamAckFrameSchema, streamDataFrameSchema, streamEndFrameSchema, streamSessionSchema, syncPunchFrameSchema, tokenClaimsSchema, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|
|
1
|
+
import { $ as ProtocolVersion, $n as roomReadSchema, $t as deviceIdSchema, A as HandleRecord, An as procSpawnSchema, At as WebrtcIceCandidate, B as MessageRef, Bn as revocationAnnounceFrameSchema, Bt as closeFrameSchema, C as DomainId, Cn as peerAdvertSchema, Ct as StreamAckFrame, D as FrameVariant, Dn as privateUseDomainIdSchema, Dt as SyncPunchFrame, E as Frame, En as privateUseCapabilitySchema, Et as StreamSession, F as ManageCommandParams, Fn as ptyWriteSchema, Ft as capabilityGrantOkSchema, G as PeerAdvert, Gn as roomJoinSchema, Gt as coseHeaderKidSchema, H as NamespacedDomainId, Hn as revocationEntrySchema, Ht as coreCapabilitySchema, I as ManageError, In as relayConnectFrameSchema, It as capabilityRequestSchema, J as PrivateUseCapability, Jn as roomMembersOkSchema, Jt as coseTokenHeadersSchema, K as PeerIdentity, Kn as roomLeaveSchema, Kt as coseHeaderLabelSchema, L as ManageOk, Ln as relayDataFrameSchema, Lt as capabilityScopeSchema, M as IceCandidateInit, Mn as ptyKillSchema, Mt as WireCandidate, N as IdentityKey, Nn as ptyResizeSchema, Nt as candidateKindSchema, O as GossipFrame, On as procKillSchema, Ot as TokenClaims, P as ManageCommand, Pn as ptySpawnSchema, Pt as candidatesFrameSchema, Q as ProcSpawn, Qn as roomPathSchema, Qt as deviceIdHexSchema, R as ManageRequestFrame, Rn as relayInboundFrameSchema, Rt as capabilityTokenSchema, S as DmRoomPath, Sn as ownerNamedRoomPathSchema, St as RoomSend, T as ExecSessionInfo, Tn as pingFrameSchema, Tt as StreamEndFrame, U as ObservedAddressFrame, Un as roomInviteSchema, Ut as coreDomainNameSchema, V as NamespacedCapability, Vn as revocationClaimsSchema, Vt as coordinatorFrameSchema, W as OwnerNamedRoomPath, Wn as roomJoinOkSchema, Wt as coseHeaderAlgSchema, X as ProcKill, Xn as roomNoticeClaimsSchema, Xt as dataHaveFrameSchema, Y as PrivateUseDomainId, Yn as roomMembersSchema, Yt as dataEntriesFrameSchema, Z as ProcSignal, Zn as roomNoticeSchema, Zt as dataRequestFrameSchema, _ as DataEntriesFrame, _n as manageResponseFrameSchema, _t as RoomMembersOk, a as CapabilityScope, an as frameVariantSchema, ar as syncPunchFrameSchema, at as RelayDataFrame, b as DeviceId, bn as namespacedDomainIdSchema, bt as RoomPath, c as CloseFrame, cn as handleRecordSchema, cr as webrtcIceCandidateSchema, ct as RevocationAnnounceFrame, d as CoreDomainName, dn as identityKeySchema, dt as RoomInvite, en as dmRoomPathSchema, er as roomSendSchema, et as PtyKill, f as CoseHeaderAlg, fn as manageCommandParamsSchema, ft as RoomJoin, g as CoseTokenHeaders, gn as manageRequestFrameSchema, gt as RoomMembers, h as CoseSign1, hn as manageOkSchema, ht as RoomMember, i as CapabilityRequest, in as frameSchema, ir as streamSessionSchema, it as RelayConnectFrame, j as HandshakeFrame, jn as protocolVersionSchema, jt as WebrtcOffer, k as HandleClaims, kn as procSignalSchema, kt as WebrtcAnswer, l as CoordinatorFrame, ln as handshakeFrameSchema, lr as webrtcOfferSchema, lt as RevocationClaims, m as CoseHeaderLabel, mn as manageErrorSchema, mt as RoomLeave, n as CandidatesFrame, nn as execListSchema, nr as streamDataFrameSchema, nt as PtySpawn, o as CapabilityToken, on as gossipFrameSchema, or as tokenClaimsSchema, ot as RelayInboundFrame, p as CoseHeaderKid, pn as manageCommandSchema, pt as RoomJoinOk, q as PingFrame, qn as roomMemberSchema, qt as coseSign1Schema, r as CapabilityGrantOk, rn as execSessionInfoSchema, rr as streamEndFrameSchema, rt as PtyWrite, s as CapabilityVerb, sn as handleClaimsSchema, sr as webrtcAnswerSchema, st as RelayOfferFrame, t as CandidateKind, tn as domainIdSchema, tr as streamAckFrameSchema, tt as PtyResize, u as CoreCapability, un as iceCandidateInitSchema, ur as wireCandidateSchema, ut as RevocationEntry, v as DataHaveFrame, vn as messageRefSchema, vt as RoomNotice, w as ExecList, wn as peerIdentitySchema, wt as StreamDataFrame, x as DeviceIdHex, xn as observedAddressFrameSchema, xt as RoomRead, y as DataRequestFrame, yn as namespacedCapabilitySchema, yt as RoomNoticeClaims, z as ManageResponseFrame, zn as relayOfferFrameSchema, zt as capabilityVerbSchema } from "../protocol-CrX3Du0D.cjs";
|
|
2
|
+
export { CandidateKind, CandidatesFrame, CapabilityGrantOk, CapabilityRequest, CapabilityScope, CapabilityToken, CapabilityVerb, CloseFrame, CoordinatorFrame, CoreCapability, CoreDomainName, CoseHeaderAlg, CoseHeaderKid, CoseHeaderLabel, CoseSign1, CoseTokenHeaders, DataEntriesFrame, DataHaveFrame, DataRequestFrame, DeviceId, DeviceIdHex, DmRoomPath, DomainId, ExecList, ExecSessionInfo, Frame, FrameVariant, GossipFrame, HandleClaims, HandleRecord, HandshakeFrame, IceCandidateInit, IdentityKey, ManageCommand, ManageCommandParams, ManageError, ManageOk, ManageRequestFrame, ManageResponseFrame, MessageRef, NamespacedCapability, NamespacedDomainId, ObservedAddressFrame, OwnerNamedRoomPath, PeerAdvert, PeerIdentity, PingFrame, PrivateUseCapability, PrivateUseDomainId, ProcKill, ProcSignal, ProcSpawn, ProtocolVersion, PtyKill, PtyResize, PtySpawn, PtyWrite, RelayConnectFrame, RelayDataFrame, RelayInboundFrame, RelayOfferFrame, RevocationAnnounceFrame, RevocationClaims, RevocationEntry, RoomInvite, RoomJoin, RoomJoinOk, RoomLeave, RoomMember, RoomMembers, RoomMembersOk, RoomNotice, RoomNoticeClaims, RoomPath, RoomRead, RoomSend, StreamAckFrame, StreamDataFrame, StreamEndFrame, StreamSession, SyncPunchFrame, TokenClaims, WebrtcAnswer, WebrtcIceCandidate, WebrtcOffer, WireCandidate, candidateKindSchema, candidatesFrameSchema, capabilityGrantOkSchema, capabilityRequestSchema, capabilityScopeSchema, capabilityTokenSchema, capabilityVerbSchema, closeFrameSchema, coordinatorFrameSchema, coreCapabilitySchema, coreDomainNameSchema, coseHeaderAlgSchema, coseHeaderKidSchema, coseHeaderLabelSchema, coseSign1Schema, coseTokenHeadersSchema, dataEntriesFrameSchema, dataHaveFrameSchema, dataRequestFrameSchema, deviceIdHexSchema, deviceIdSchema, dmRoomPathSchema, domainIdSchema, execListSchema, execSessionInfoSchema, frameSchema, frameVariantSchema, gossipFrameSchema, handleClaimsSchema, handleRecordSchema, handshakeFrameSchema, iceCandidateInitSchema, identityKeySchema, manageCommandParamsSchema, manageCommandSchema, manageErrorSchema, manageOkSchema, manageRequestFrameSchema, manageResponseFrameSchema, messageRefSchema, namespacedCapabilitySchema, namespacedDomainIdSchema, observedAddressFrameSchema, ownerNamedRoomPathSchema, peerAdvertSchema, peerIdentitySchema, pingFrameSchema, privateUseCapabilitySchema, privateUseDomainIdSchema, procKillSchema, procSignalSchema, procSpawnSchema, protocolVersionSchema, ptyKillSchema, ptyResizeSchema, ptySpawnSchema, ptyWriteSchema, relayConnectFrameSchema, relayDataFrameSchema, relayInboundFrameSchema, relayOfferFrameSchema, revocationAnnounceFrameSchema, revocationClaimsSchema, revocationEntrySchema, roomInviteSchema, roomJoinOkSchema, roomJoinSchema, roomLeaveSchema, roomMemberSchema, roomMembersOkSchema, roomMembersSchema, roomNoticeClaimsSchema, roomNoticeSchema, roomPathSchema, roomReadSchema, roomSendSchema, streamAckFrameSchema, streamDataFrameSchema, streamEndFrameSchema, streamSessionSchema, syncPunchFrameSchema, tokenClaimsSchema, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { CandidateKind, CandidatesFrame, CapabilityScope, CapabilityToken, CapabilityVerb, CloseFrame, CoordinatorFrame, CoreCapability, CoreDomainName, CoseHeaderAlg, CoseHeaderKid, CoseHeaderLabel, CoseSign1, CoseTokenHeaders, DataEntriesFrame, DataHaveFrame, DataRequestFrame, DeviceId, DeviceIdHex, DmRoomPath, DomainId, ExecList, ExecSessionInfo, Frame, FrameVariant, GossipFrame, HandleClaims, HandleRecord, HandshakeFrame, IceCandidateInit, IdentityKey, ManageCommand, ManageCommandParams, ManageError, ManageOk, ManageRequestFrame, ManageResponseFrame, MessageRef, NamespacedCapability, NamespacedDomainId, ObservedAddressFrame, OwnerNamedRoomPath, PeerAdvert, PeerIdentity, PingFrame, PrivateUseCapability, PrivateUseDomainId, ProcKill, ProcSignal, ProcSpawn, ProtocolVersion, PtyKill, PtyResize, PtySpawn, PtyWrite, RelayConnectFrame, RelayDataFrame, RelayInboundFrame, RelayOfferFrame, RevocationAnnounceFrame, RevocationClaims, RevocationEntry, RoomInvite, RoomJoin, RoomJoinOk, RoomLeave, RoomMember, RoomMembers, RoomMembersOk, RoomNotice, RoomNoticeClaims, RoomPath, RoomRead, RoomSend, StreamAckFrame, StreamDataFrame, StreamEndFrame, StreamSession, SyncPunchFrame, TokenClaims, WebrtcAnswer, WebrtcIceCandidate, WebrtcOffer, WireCandidate, candidateKindSchema, candidatesFrameSchema, capabilityScopeSchema, capabilityTokenSchema, capabilityVerbSchema, closeFrameSchema, coordinatorFrameSchema, coreCapabilitySchema, coreDomainNameSchema, coseHeaderAlgSchema, coseHeaderKidSchema, coseHeaderLabelSchema, coseSign1Schema, coseTokenHeadersSchema, dataEntriesFrameSchema, dataHaveFrameSchema, dataRequestFrameSchema, deviceIdHexSchema, deviceIdSchema, dmRoomPathSchema, domainIdSchema, execListSchema, execSessionInfoSchema, frameSchema, frameVariantSchema, gossipFrameSchema, handleClaimsSchema, handleRecordSchema, handshakeFrameSchema, iceCandidateInitSchema, identityKeySchema, manageCommandParamsSchema, manageCommandSchema, manageErrorSchema, manageOkSchema, manageRequestFrameSchema, manageResponseFrameSchema, messageRefSchema, namespacedCapabilitySchema, namespacedDomainIdSchema, observedAddressFrameSchema, ownerNamedRoomPathSchema, peerAdvertSchema, peerIdentitySchema, pingFrameSchema, privateUseCapabilitySchema, privateUseDomainIdSchema, procKillSchema, procSignalSchema, procSpawnSchema, protocolVersionSchema, ptyKillSchema, ptyResizeSchema, ptySpawnSchema, ptyWriteSchema, relayConnectFrameSchema, relayDataFrameSchema, relayInboundFrameSchema, relayOfferFrameSchema, revocationAnnounceFrameSchema, revocationClaimsSchema, revocationEntrySchema, roomInviteSchema, roomJoinOkSchema, roomJoinSchema, roomLeaveSchema, roomMemberSchema, roomMembersOkSchema, roomMembersSchema, roomNoticeClaimsSchema, roomNoticeSchema, roomPathSchema, roomReadSchema, roomSendSchema, streamAckFrameSchema, streamDataFrameSchema, streamEndFrameSchema, streamSessionSchema, syncPunchFrameSchema, tokenClaimsSchema, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|
|
1
|
+
import { $ as ProtocolVersion, $n as roomReadSchema, $t as deviceIdSchema, A as HandleRecord, An as procSpawnSchema, At as WebrtcIceCandidate, B as MessageRef, Bn as revocationAnnounceFrameSchema, Bt as closeFrameSchema, C as DomainId, Cn as peerAdvertSchema, Ct as StreamAckFrame, D as FrameVariant, Dn as privateUseDomainIdSchema, Dt as SyncPunchFrame, E as Frame, En as privateUseCapabilitySchema, Et as StreamSession, F as ManageCommandParams, Fn as ptyWriteSchema, Ft as capabilityGrantOkSchema, G as PeerAdvert, Gn as roomJoinSchema, Gt as coseHeaderKidSchema, H as NamespacedDomainId, Hn as revocationEntrySchema, Ht as coreCapabilitySchema, I as ManageError, In as relayConnectFrameSchema, It as capabilityRequestSchema, J as PrivateUseCapability, Jn as roomMembersOkSchema, Jt as coseTokenHeadersSchema, K as PeerIdentity, Kn as roomLeaveSchema, Kt as coseHeaderLabelSchema, L as ManageOk, Ln as relayDataFrameSchema, Lt as capabilityScopeSchema, M as IceCandidateInit, Mn as ptyKillSchema, Mt as WireCandidate, N as IdentityKey, Nn as ptyResizeSchema, Nt as candidateKindSchema, O as GossipFrame, On as procKillSchema, Ot as TokenClaims, P as ManageCommand, Pn as ptySpawnSchema, Pt as candidatesFrameSchema, Q as ProcSpawn, Qn as roomPathSchema, Qt as deviceIdHexSchema, R as ManageRequestFrame, Rn as relayInboundFrameSchema, Rt as capabilityTokenSchema, S as DmRoomPath, Sn as ownerNamedRoomPathSchema, St as RoomSend, T as ExecSessionInfo, Tn as pingFrameSchema, Tt as StreamEndFrame, U as ObservedAddressFrame, Un as roomInviteSchema, Ut as coreDomainNameSchema, V as NamespacedCapability, Vn as revocationClaimsSchema, Vt as coordinatorFrameSchema, W as OwnerNamedRoomPath, Wn as roomJoinOkSchema, Wt as coseHeaderAlgSchema, X as ProcKill, Xn as roomNoticeClaimsSchema, Xt as dataHaveFrameSchema, Y as PrivateUseDomainId, Yn as roomMembersSchema, Yt as dataEntriesFrameSchema, Z as ProcSignal, Zn as roomNoticeSchema, Zt as dataRequestFrameSchema, _ as DataEntriesFrame, _n as manageResponseFrameSchema, _t as RoomMembersOk, a as CapabilityScope, an as frameVariantSchema, ar as syncPunchFrameSchema, at as RelayDataFrame, b as DeviceId, bn as namespacedDomainIdSchema, bt as RoomPath, c as CloseFrame, cn as handleRecordSchema, cr as webrtcIceCandidateSchema, ct as RevocationAnnounceFrame, d as CoreDomainName, dn as identityKeySchema, dt as RoomInvite, en as dmRoomPathSchema, er as roomSendSchema, et as PtyKill, f as CoseHeaderAlg, fn as manageCommandParamsSchema, ft as RoomJoin, g as CoseTokenHeaders, gn as manageRequestFrameSchema, gt as RoomMembers, h as CoseSign1, hn as manageOkSchema, ht as RoomMember, i as CapabilityRequest, in as frameSchema, ir as streamSessionSchema, it as RelayConnectFrame, j as HandshakeFrame, jn as protocolVersionSchema, jt as WebrtcOffer, k as HandleClaims, kn as procSignalSchema, kt as WebrtcAnswer, l as CoordinatorFrame, ln as handshakeFrameSchema, lr as webrtcOfferSchema, lt as RevocationClaims, m as CoseHeaderLabel, mn as manageErrorSchema, mt as RoomLeave, n as CandidatesFrame, nn as execListSchema, nr as streamDataFrameSchema, nt as PtySpawn, o as CapabilityToken, on as gossipFrameSchema, or as tokenClaimsSchema, ot as RelayInboundFrame, p as CoseHeaderKid, pn as manageCommandSchema, pt as RoomJoinOk, q as PingFrame, qn as roomMemberSchema, qt as coseSign1Schema, r as CapabilityGrantOk, rn as execSessionInfoSchema, rr as streamEndFrameSchema, rt as PtyWrite, s as CapabilityVerb, sn as handleClaimsSchema, sr as webrtcAnswerSchema, st as RelayOfferFrame, t as CandidateKind, tn as domainIdSchema, tr as streamAckFrameSchema, tt as PtyResize, u as CoreCapability, un as iceCandidateInitSchema, ur as wireCandidateSchema, ut as RevocationEntry, v as DataHaveFrame, vn as messageRefSchema, vt as RoomNotice, w as ExecList, wn as peerIdentitySchema, wt as StreamDataFrame, x as DeviceIdHex, xn as observedAddressFrameSchema, xt as RoomRead, y as DataRequestFrame, yn as namespacedCapabilitySchema, yt as RoomNoticeClaims, z as ManageResponseFrame, zn as relayOfferFrameSchema, zt as capabilityVerbSchema } from "../protocol-CrX3Du0D.mjs";
|
|
2
|
+
export { CandidateKind, CandidatesFrame, CapabilityGrantOk, CapabilityRequest, CapabilityScope, CapabilityToken, CapabilityVerb, CloseFrame, CoordinatorFrame, CoreCapability, CoreDomainName, CoseHeaderAlg, CoseHeaderKid, CoseHeaderLabel, CoseSign1, CoseTokenHeaders, DataEntriesFrame, DataHaveFrame, DataRequestFrame, DeviceId, DeviceIdHex, DmRoomPath, DomainId, ExecList, ExecSessionInfo, Frame, FrameVariant, GossipFrame, HandleClaims, HandleRecord, HandshakeFrame, IceCandidateInit, IdentityKey, ManageCommand, ManageCommandParams, ManageError, ManageOk, ManageRequestFrame, ManageResponseFrame, MessageRef, NamespacedCapability, NamespacedDomainId, ObservedAddressFrame, OwnerNamedRoomPath, PeerAdvert, PeerIdentity, PingFrame, PrivateUseCapability, PrivateUseDomainId, ProcKill, ProcSignal, ProcSpawn, ProtocolVersion, PtyKill, PtyResize, PtySpawn, PtyWrite, RelayConnectFrame, RelayDataFrame, RelayInboundFrame, RelayOfferFrame, RevocationAnnounceFrame, RevocationClaims, RevocationEntry, RoomInvite, RoomJoin, RoomJoinOk, RoomLeave, RoomMember, RoomMembers, RoomMembersOk, RoomNotice, RoomNoticeClaims, RoomPath, RoomRead, RoomSend, StreamAckFrame, StreamDataFrame, StreamEndFrame, StreamSession, SyncPunchFrame, TokenClaims, WebrtcAnswer, WebrtcIceCandidate, WebrtcOffer, WireCandidate, candidateKindSchema, candidatesFrameSchema, capabilityGrantOkSchema, capabilityRequestSchema, capabilityScopeSchema, capabilityTokenSchema, capabilityVerbSchema, closeFrameSchema, coordinatorFrameSchema, coreCapabilitySchema, coreDomainNameSchema, coseHeaderAlgSchema, coseHeaderKidSchema, coseHeaderLabelSchema, coseSign1Schema, coseTokenHeadersSchema, dataEntriesFrameSchema, dataHaveFrameSchema, dataRequestFrameSchema, deviceIdHexSchema, deviceIdSchema, dmRoomPathSchema, domainIdSchema, execListSchema, execSessionInfoSchema, frameSchema, frameVariantSchema, gossipFrameSchema, handleClaimsSchema, handleRecordSchema, handshakeFrameSchema, iceCandidateInitSchema, identityKeySchema, manageCommandParamsSchema, manageCommandSchema, manageErrorSchema, manageOkSchema, manageRequestFrameSchema, manageResponseFrameSchema, messageRefSchema, namespacedCapabilitySchema, namespacedDomainIdSchema, observedAddressFrameSchema, ownerNamedRoomPathSchema, peerAdvertSchema, peerIdentitySchema, pingFrameSchema, privateUseCapabilitySchema, privateUseDomainIdSchema, procKillSchema, procSignalSchema, procSpawnSchema, protocolVersionSchema, ptyKillSchema, ptyResizeSchema, ptySpawnSchema, ptyWriteSchema, relayConnectFrameSchema, relayDataFrameSchema, relayInboundFrameSchema, relayOfferFrameSchema, revocationAnnounceFrameSchema, revocationClaimsSchema, revocationEntrySchema, roomInviteSchema, roomJoinOkSchema, roomJoinSchema, roomLeaveSchema, roomMemberSchema, roomMembersOkSchema, roomMembersSchema, roomNoticeClaimsSchema, roomNoticeSchema, roomPathSchema, roomReadSchema, roomSendSchema, streamAckFrameSchema, streamDataFrameSchema, streamEndFrameSchema, streamSessionSchema, syncPunchFrameSchema, tokenClaimsSchema, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|
|
@@ -38,6 +38,7 @@ const manageCommandParamsSchema = z.lazy(() => z.union([
|
|
|
38
38
|
z.lazy(() => execListSchema)
|
|
39
39
|
]),
|
|
40
40
|
z.object({}).catchall(z.unknown()),
|
|
41
|
+
z.lazy(() => capabilityRequestSchema),
|
|
41
42
|
z.union([
|
|
42
43
|
z.lazy(() => roomSendSchema),
|
|
43
44
|
z.lazy(() => roomReadSchema),
|
|
@@ -176,6 +177,14 @@ const manageResponseFrameSchema = z.lazy(() => z.object({
|
|
|
176
177
|
"request-id": z.number().int().nonnegative(),
|
|
177
178
|
"outcome": z.union([z.lazy(() => manageOkSchema), z.lazy(() => manageErrorSchema)])
|
|
178
179
|
}));
|
|
180
|
+
const capabilityRequestSchema = z.lazy(() => z.object({
|
|
181
|
+
"verb": z.literal("capability.request"),
|
|
182
|
+
"capability": z.string()
|
|
183
|
+
}).catchall(z.unknown()));
|
|
184
|
+
const capabilityGrantOkSchema = z.lazy(() => z.object({
|
|
185
|
+
"result": z.literal("ok"),
|
|
186
|
+
"granted-token": z.lazy(() => capabilityTokenSchema)
|
|
187
|
+
}).catchall(z.unknown()));
|
|
179
188
|
const revocationClaimsSchema = z.lazy(() => z.object({
|
|
180
189
|
"token-id": z.instanceof(Uint8Array),
|
|
181
190
|
"issuer": z.lazy(() => deviceIdSchema),
|
|
@@ -379,4 +388,4 @@ const iceCandidateInitSchema = z.lazy(() => z.object({
|
|
|
379
388
|
"username-fragment": z.string().optional()
|
|
380
389
|
}));
|
|
381
390
|
//#endregion
|
|
382
|
-
export { candidateKindSchema, candidatesFrameSchema, capabilityScopeSchema, capabilityTokenSchema, capabilityVerbSchema, closeFrameSchema, coordinatorFrameSchema, coreCapabilitySchema, coreDomainNameSchema, coseHeaderAlgSchema, coseHeaderKidSchema, coseHeaderLabelSchema, coseSign1Schema, coseTokenHeadersSchema, dataEntriesFrameSchema, dataHaveFrameSchema, dataRequestFrameSchema, deviceIdHexSchema, deviceIdSchema, dmRoomPathSchema, domainIdSchema, execListSchema, execSessionInfoSchema, frameSchema, frameVariantSchema, gossipFrameSchema, handleClaimsSchema, handleRecordSchema, handshakeFrameSchema, iceCandidateInitSchema, identityKeySchema, manageCommandParamsSchema, manageCommandSchema, manageErrorSchema, manageOkSchema, manageRequestFrameSchema, manageResponseFrameSchema, messageRefSchema, namespacedCapabilitySchema, namespacedDomainIdSchema, observedAddressFrameSchema, ownerNamedRoomPathSchema, peerAdvertSchema, peerIdentitySchema, pingFrameSchema, privateUseCapabilitySchema, privateUseDomainIdSchema, procKillSchema, procSignalSchema, procSpawnSchema, protocolVersionSchema, ptyKillSchema, ptyResizeSchema, ptySpawnSchema, ptyWriteSchema, relayConnectFrameSchema, relayDataFrameSchema, relayInboundFrameSchema, relayOfferFrameSchema, revocationAnnounceFrameSchema, revocationClaimsSchema, revocationEntrySchema, roomInviteSchema, roomJoinOkSchema, roomJoinSchema, roomLeaveSchema, roomMemberSchema, roomMembersOkSchema, roomMembersSchema, roomNoticeClaimsSchema, roomNoticeSchema, roomPathSchema, roomReadSchema, roomSendSchema, streamAckFrameSchema, streamDataFrameSchema, streamEndFrameSchema, streamSessionSchema, syncPunchFrameSchema, tokenClaimsSchema, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|
|
391
|
+
export { candidateKindSchema, candidatesFrameSchema, capabilityGrantOkSchema, capabilityRequestSchema, capabilityScopeSchema, capabilityTokenSchema, capabilityVerbSchema, closeFrameSchema, coordinatorFrameSchema, coreCapabilitySchema, coreDomainNameSchema, coseHeaderAlgSchema, coseHeaderKidSchema, coseHeaderLabelSchema, coseSign1Schema, coseTokenHeadersSchema, dataEntriesFrameSchema, dataHaveFrameSchema, dataRequestFrameSchema, deviceIdHexSchema, deviceIdSchema, dmRoomPathSchema, domainIdSchema, execListSchema, execSessionInfoSchema, frameSchema, frameVariantSchema, gossipFrameSchema, handleClaimsSchema, handleRecordSchema, handshakeFrameSchema, iceCandidateInitSchema, identityKeySchema, manageCommandParamsSchema, manageCommandSchema, manageErrorSchema, manageOkSchema, manageRequestFrameSchema, manageResponseFrameSchema, messageRefSchema, namespacedCapabilitySchema, namespacedDomainIdSchema, observedAddressFrameSchema, ownerNamedRoomPathSchema, peerAdvertSchema, peerIdentitySchema, pingFrameSchema, privateUseCapabilitySchema, privateUseDomainIdSchema, procKillSchema, procSignalSchema, procSpawnSchema, protocolVersionSchema, ptyKillSchema, ptyResizeSchema, ptySpawnSchema, ptyWriteSchema, relayConnectFrameSchema, relayDataFrameSchema, relayInboundFrameSchema, relayOfferFrameSchema, revocationAnnounceFrameSchema, revocationClaimsSchema, revocationEntrySchema, roomInviteSchema, roomJoinOkSchema, roomJoinSchema, roomLeaveSchema, roomMemberSchema, roomMembersOkSchema, roomMembersSchema, roomNoticeClaimsSchema, roomNoticeSchema, roomPathSchema, roomReadSchema, roomSendSchema, streamAckFrameSchema, streamDataFrameSchema, streamEndFrameSchema, streamSessionSchema, syncPunchFrameSchema, tokenClaimsSchema, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as IdentityKey, b as DeviceId } from "./protocol-CrX3Du0D.cjs";
|
|
2
2
|
//#region src/ports/identity.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Wraps the local node's own identity plus the signing/verification primitives capability-token handling needs -- never hardcoded to one crypto library's own API shape (Node's webcrypto, a WASM implementation, a hardware key, etc. can all satisfy this same contract).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as IdentityKey, b as DeviceId } from "./protocol-CrX3Du0D.mjs";
|
|
2
2
|
//#region src/ports/identity.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Wraps the local node's own identity plus the signing/verification primitives capability-token handling needs -- never hardcoded to one crypto library's own API shape (Node's webcrypto, a WASM implementation, a hardware key, etc. can all satisfy this same contract).
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as IdentityPort } from "../identity-
|
|
1
|
+
import { t as IdentityPort } from "../identity-CedN2RyT.cjs";
|
|
2
2
|
export { IdentityPort };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as IdentityPort } from "../identity-
|
|
1
|
+
import { t as IdentityPort } from "../identity-CuNm8s38.mjs";
|
|
2
2
|
export { IdentityPort };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as Frame, b as DeviceId } from "../protocol-CrX3Du0D.cjs";
|
|
2
2
|
//#region src/ports/transport.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* An async, serialisable-data contract for exchanging frame values over some connection -- deliberately without baking in any specific transport's own primitives (no raw socket types, no WebSocket-specific options), so a TCP adapter, a WebSocket adapter, or an in-memory adapter for tests can all satisfy it.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as Frame, b as DeviceId } from "../protocol-CrX3Du0D.mjs";
|
|
2
2
|
//#region src/ports/transport.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* An async, serialisable-data contract for exchanging frame values over some connection -- deliberately without baking in any specific transport's own primitives (no raw socket types, no WebSocket-specific options), so a TCP adapter, a WebSocket adapter, or an in-memory adapter for tests can all satisfy it.
|
|
@@ -71,7 +71,10 @@ declare const manageCommandParamsSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodUni
|
|
|
71
71
|
session: z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
|
|
72
72
|
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
73
73
|
verb: z.ZodLiteral<"exec.list">;
|
|
74
|
-
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.
|
|
74
|
+
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
75
|
+
verb: z.ZodLiteral<"capability.request">;
|
|
76
|
+
capability: z.ZodString;
|
|
77
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
75
78
|
verb: z.ZodLiteral<"room.send">;
|
|
76
79
|
"message-id": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
77
80
|
"sent-at": z.ZodNumber;
|
|
@@ -255,7 +258,10 @@ declare const frameVariantSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodLazy<z.Zod
|
|
|
255
258
|
session: z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
|
|
256
259
|
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
257
260
|
verb: z.ZodLiteral<"exec.list">;
|
|
258
|
-
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.
|
|
261
|
+
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
262
|
+
verb: z.ZodLiteral<"capability.request">;
|
|
263
|
+
capability: z.ZodString;
|
|
264
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
259
265
|
verb: z.ZodLiteral<"room.send">;
|
|
260
266
|
"message-id": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
261
267
|
"sent-at": z.ZodNumber;
|
|
@@ -445,7 +451,10 @@ declare const frameSchema: z.ZodLazy<z.ZodLazy<z.ZodLazy<z.ZodUnion<readonly [z.
|
|
|
445
451
|
session: z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
|
|
446
452
|
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
447
453
|
verb: z.ZodLiteral<"exec.list">;
|
|
448
|
-
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.
|
|
454
|
+
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
455
|
+
verb: z.ZodLiteral<"capability.request">;
|
|
456
|
+
capability: z.ZodString;
|
|
457
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
449
458
|
verb: z.ZodLiteral<"room.send">;
|
|
450
459
|
"message-id": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
451
460
|
"sent-at": z.ZodNumber;
|
|
@@ -606,7 +615,10 @@ declare const manageCommandSchema: z.ZodLazy<z.ZodObject<{
|
|
|
606
615
|
session: z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
|
|
607
616
|
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
608
617
|
verb: z.ZodLiteral<"exec.list">;
|
|
609
|
-
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.
|
|
618
|
+
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
619
|
+
verb: z.ZodLiteral<"capability.request">;
|
|
620
|
+
capability: z.ZodString;
|
|
621
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
610
622
|
verb: z.ZodLiteral<"room.send">;
|
|
611
623
|
"message-id": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
612
624
|
"sent-at": z.ZodNumber;
|
|
@@ -692,7 +704,10 @@ declare const manageRequestFrameSchema: z.ZodLazy<z.ZodObject<{
|
|
|
692
704
|
session: z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
|
|
693
705
|
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
694
706
|
verb: z.ZodLiteral<"exec.list">;
|
|
695
|
-
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.
|
|
707
|
+
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
708
|
+
verb: z.ZodLiteral<"capability.request">;
|
|
709
|
+
capability: z.ZodString;
|
|
710
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
696
711
|
verb: z.ZodLiteral<"room.send">;
|
|
697
712
|
"message-id": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
698
713
|
"sent-at": z.ZodNumber;
|
|
@@ -766,6 +781,17 @@ declare const manageResponseFrameSchema: z.ZodLazy<z.ZodObject<{
|
|
|
766
781
|
message: z.ZodOptional<z.ZodString>;
|
|
767
782
|
}, z.core.$strip>>>]>;
|
|
768
783
|
}, z.core.$strip>>;
|
|
784
|
+
declare const capabilityRequestSchema: z.ZodLazy<z.ZodObject<{
|
|
785
|
+
verb: z.ZodLiteral<"capability.request">;
|
|
786
|
+
capability: z.ZodString;
|
|
787
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
788
|
+
declare const capabilityGrantOkSchema: z.ZodLazy<z.ZodObject<{
|
|
789
|
+
result: z.ZodLiteral<"ok">;
|
|
790
|
+
"granted-token": z.ZodLazy<z.ZodLazy<z.ZodLazy<z.ZodLazy<z.ZodTuple<[z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
791
|
+
"1": z.ZodOptional<z.ZodNumber>;
|
|
792
|
+
"4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
793
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>>;
|
|
794
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
769
795
|
declare const revocationClaimsSchema: z.ZodLazy<z.ZodObject<{
|
|
770
796
|
"token-id": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
771
797
|
issuer: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
|
|
@@ -1055,6 +1081,8 @@ type ManageRequestFrame = z.infer<typeof manageRequestFrameSchema>;
|
|
|
1055
1081
|
type ManageOk = z.infer<typeof manageOkSchema>;
|
|
1056
1082
|
type ManageError = z.infer<typeof manageErrorSchema>;
|
|
1057
1083
|
type ManageResponseFrame = z.infer<typeof manageResponseFrameSchema>;
|
|
1084
|
+
type CapabilityRequest = z.infer<typeof capabilityRequestSchema>;
|
|
1085
|
+
type CapabilityGrantOk = z.infer<typeof capabilityGrantOkSchema>;
|
|
1058
1086
|
type RevocationClaims = z.infer<typeof revocationClaimsSchema>;
|
|
1059
1087
|
type RevocationEntry = z.infer<typeof revocationEntrySchema>;
|
|
1060
1088
|
type RevocationAnnounceFrame = z.infer<typeof revocationAnnounceFrameSchema>;
|
|
@@ -1109,4 +1137,4 @@ type WebrtcAnswer = z.infer<typeof webrtcAnswerSchema>;
|
|
|
1109
1137
|
type WebrtcIceCandidate = z.infer<typeof webrtcIceCandidateSchema>;
|
|
1110
1138
|
type IceCandidateInit = z.infer<typeof iceCandidateInitSchema>;
|
|
1111
1139
|
//#endregion
|
|
1112
|
-
export {
|
|
1140
|
+
export { ProtocolVersion as $, roomReadSchema as $n, deviceIdSchema as $t, HandleRecord as A, procSpawnSchema as An, WebrtcIceCandidate as At, MessageRef as B, revocationAnnounceFrameSchema as Bn, closeFrameSchema as Bt, DomainId as C, peerAdvertSchema as Cn, StreamAckFrame as Ct, FrameVariant as D, privateUseDomainIdSchema as Dn, SyncPunchFrame as Dt, Frame as E, privateUseCapabilitySchema as En, StreamSession as Et, ManageCommandParams as F, ptyWriteSchema as Fn, capabilityGrantOkSchema as Ft, PeerAdvert as G, roomJoinSchema as Gn, coseHeaderKidSchema as Gt, NamespacedDomainId as H, revocationEntrySchema as Hn, coreCapabilitySchema as Ht, ManageError as I, relayConnectFrameSchema as In, capabilityRequestSchema as It, PrivateUseCapability as J, roomMembersOkSchema as Jn, coseTokenHeadersSchema as Jt, PeerIdentity as K, roomLeaveSchema as Kn, coseHeaderLabelSchema as Kt, ManageOk as L, relayDataFrameSchema as Ln, capabilityScopeSchema as Lt, IceCandidateInit as M, ptyKillSchema as Mn, WireCandidate as Mt, IdentityKey as N, ptyResizeSchema as Nn, candidateKindSchema as Nt, GossipFrame as O, procKillSchema as On, TokenClaims as Ot, ManageCommand as P, ptySpawnSchema as Pn, candidatesFrameSchema as Pt, ProcSpawn as Q, roomPathSchema as Qn, deviceIdHexSchema as Qt, ManageRequestFrame as R, relayInboundFrameSchema as Rn, capabilityTokenSchema as Rt, DmRoomPath as S, ownerNamedRoomPathSchema as Sn, RoomSend as St, ExecSessionInfo as T, pingFrameSchema as Tn, StreamEndFrame as Tt, ObservedAddressFrame as U, roomInviteSchema as Un, coreDomainNameSchema as Ut, NamespacedCapability as V, revocationClaimsSchema as Vn, coordinatorFrameSchema as Vt, OwnerNamedRoomPath as W, roomJoinOkSchema as Wn, coseHeaderAlgSchema as Wt, ProcKill as X, roomNoticeClaimsSchema as Xn, dataHaveFrameSchema as Xt, PrivateUseDomainId as Y, roomMembersSchema as Yn, dataEntriesFrameSchema as Yt, ProcSignal as Z, roomNoticeSchema as Zn, dataRequestFrameSchema as Zt, DataEntriesFrame as _, manageResponseFrameSchema as _n, RoomMembersOk as _t, CapabilityScope as a, frameVariantSchema as an, syncPunchFrameSchema as ar, RelayDataFrame as at, DeviceId as b, namespacedDomainIdSchema as bn, RoomPath as bt, CloseFrame as c, handleRecordSchema as cn, webrtcIceCandidateSchema as cr, RevocationAnnounceFrame as ct, CoreDomainName as d, identityKeySchema as dn, RoomInvite as dt, dmRoomPathSchema as en, roomSendSchema as er, PtyKill as et, CoseHeaderAlg as f, manageCommandParamsSchema as fn, RoomJoin as ft, CoseTokenHeaders as g, manageRequestFrameSchema as gn, RoomMembers as gt, CoseSign1 as h, manageOkSchema as hn, RoomMember as ht, CapabilityRequest as i, frameSchema as in, streamSessionSchema as ir, RelayConnectFrame as it, HandshakeFrame as j, protocolVersionSchema as jn, WebrtcOffer as jt, HandleClaims as k, procSignalSchema as kn, WebrtcAnswer as kt, CoordinatorFrame as l, handshakeFrameSchema as ln, webrtcOfferSchema as lr, RevocationClaims as lt, CoseHeaderLabel as m, manageErrorSchema as mn, RoomLeave as mt, CandidatesFrame as n, execListSchema as nn, streamDataFrameSchema as nr, PtySpawn as nt, CapabilityToken as o, gossipFrameSchema as on, tokenClaimsSchema as or, RelayInboundFrame as ot, CoseHeaderKid as p, manageCommandSchema as pn, RoomJoinOk as pt, PingFrame as q, roomMemberSchema as qn, coseSign1Schema as qt, CapabilityGrantOk as r, execSessionInfoSchema as rn, streamEndFrameSchema as rr, PtyWrite as rt, CapabilityVerb as s, handleClaimsSchema as sn, webrtcAnswerSchema as sr, RelayOfferFrame as st, CandidateKind as t, domainIdSchema as tn, streamAckFrameSchema as tr, PtyResize as tt, CoreCapability as u, iceCandidateInitSchema as un, wireCandidateSchema as ur, RevocationEntry as ut, DataHaveFrame as v, messageRefSchema as vn, RoomNotice as vt, ExecList as w, peerIdentitySchema as wn, StreamDataFrame as wt, DeviceIdHex as x, observedAddressFrameSchema as xn, RoomRead as xt, DataRequestFrame as y, namespacedCapabilitySchema as yn, RoomNoticeClaims as yt, ManageResponseFrame as z, relayOfferFrameSchema as zn, capabilityVerbSchema as zt };
|
|
@@ -71,7 +71,10 @@ declare const manageCommandParamsSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodUni
|
|
|
71
71
|
session: z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
|
|
72
72
|
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
73
73
|
verb: z.ZodLiteral<"exec.list">;
|
|
74
|
-
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.
|
|
74
|
+
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
75
|
+
verb: z.ZodLiteral<"capability.request">;
|
|
76
|
+
capability: z.ZodString;
|
|
77
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
75
78
|
verb: z.ZodLiteral<"room.send">;
|
|
76
79
|
"message-id": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
77
80
|
"sent-at": z.ZodNumber;
|
|
@@ -255,7 +258,10 @@ declare const frameVariantSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodLazy<z.Zod
|
|
|
255
258
|
session: z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
|
|
256
259
|
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
257
260
|
verb: z.ZodLiteral<"exec.list">;
|
|
258
|
-
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.
|
|
261
|
+
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
262
|
+
verb: z.ZodLiteral<"capability.request">;
|
|
263
|
+
capability: z.ZodString;
|
|
264
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
259
265
|
verb: z.ZodLiteral<"room.send">;
|
|
260
266
|
"message-id": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
261
267
|
"sent-at": z.ZodNumber;
|
|
@@ -445,7 +451,10 @@ declare const frameSchema: z.ZodLazy<z.ZodLazy<z.ZodLazy<z.ZodUnion<readonly [z.
|
|
|
445
451
|
session: z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
|
|
446
452
|
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
447
453
|
verb: z.ZodLiteral<"exec.list">;
|
|
448
|
-
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.
|
|
454
|
+
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
455
|
+
verb: z.ZodLiteral<"capability.request">;
|
|
456
|
+
capability: z.ZodString;
|
|
457
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
449
458
|
verb: z.ZodLiteral<"room.send">;
|
|
450
459
|
"message-id": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
451
460
|
"sent-at": z.ZodNumber;
|
|
@@ -606,7 +615,10 @@ declare const manageCommandSchema: z.ZodLazy<z.ZodObject<{
|
|
|
606
615
|
session: z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
|
|
607
616
|
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
608
617
|
verb: z.ZodLiteral<"exec.list">;
|
|
609
|
-
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.
|
|
618
|
+
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
619
|
+
verb: z.ZodLiteral<"capability.request">;
|
|
620
|
+
capability: z.ZodString;
|
|
621
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
610
622
|
verb: z.ZodLiteral<"room.send">;
|
|
611
623
|
"message-id": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
612
624
|
"sent-at": z.ZodNumber;
|
|
@@ -692,7 +704,10 @@ declare const manageRequestFrameSchema: z.ZodLazy<z.ZodObject<{
|
|
|
692
704
|
session: z.ZodLazy<z.ZodLazy<z.ZodNumber>>;
|
|
693
705
|
}, z.core.$strip>>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
694
706
|
verb: z.ZodLiteral<"exec.list">;
|
|
695
|
-
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.
|
|
707
|
+
}, z.core.$strip>>>]>, z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
708
|
+
verb: z.ZodLiteral<"capability.request">;
|
|
709
|
+
capability: z.ZodString;
|
|
710
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
696
711
|
verb: z.ZodLiteral<"room.send">;
|
|
697
712
|
"message-id": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
698
713
|
"sent-at": z.ZodNumber;
|
|
@@ -766,6 +781,17 @@ declare const manageResponseFrameSchema: z.ZodLazy<z.ZodObject<{
|
|
|
766
781
|
message: z.ZodOptional<z.ZodString>;
|
|
767
782
|
}, z.core.$strip>>>]>;
|
|
768
783
|
}, z.core.$strip>>;
|
|
784
|
+
declare const capabilityRequestSchema: z.ZodLazy<z.ZodObject<{
|
|
785
|
+
verb: z.ZodLiteral<"capability.request">;
|
|
786
|
+
capability: z.ZodString;
|
|
787
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
788
|
+
declare const capabilityGrantOkSchema: z.ZodLazy<z.ZodObject<{
|
|
789
|
+
result: z.ZodLiteral<"ok">;
|
|
790
|
+
"granted-token": z.ZodLazy<z.ZodLazy<z.ZodLazy<z.ZodLazy<z.ZodTuple<[z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
791
|
+
"1": z.ZodOptional<z.ZodNumber>;
|
|
792
|
+
"4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
793
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>>;
|
|
794
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
769
795
|
declare const revocationClaimsSchema: z.ZodLazy<z.ZodObject<{
|
|
770
796
|
"token-id": z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
771
797
|
issuer: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
|
|
@@ -1055,6 +1081,8 @@ type ManageRequestFrame = z.infer<typeof manageRequestFrameSchema>;
|
|
|
1055
1081
|
type ManageOk = z.infer<typeof manageOkSchema>;
|
|
1056
1082
|
type ManageError = z.infer<typeof manageErrorSchema>;
|
|
1057
1083
|
type ManageResponseFrame = z.infer<typeof manageResponseFrameSchema>;
|
|
1084
|
+
type CapabilityRequest = z.infer<typeof capabilityRequestSchema>;
|
|
1085
|
+
type CapabilityGrantOk = z.infer<typeof capabilityGrantOkSchema>;
|
|
1058
1086
|
type RevocationClaims = z.infer<typeof revocationClaimsSchema>;
|
|
1059
1087
|
type RevocationEntry = z.infer<typeof revocationEntrySchema>;
|
|
1060
1088
|
type RevocationAnnounceFrame = z.infer<typeof revocationAnnounceFrameSchema>;
|
|
@@ -1109,4 +1137,4 @@ type WebrtcAnswer = z.infer<typeof webrtcAnswerSchema>;
|
|
|
1109
1137
|
type WebrtcIceCandidate = z.infer<typeof webrtcIceCandidateSchema>;
|
|
1110
1138
|
type IceCandidateInit = z.infer<typeof iceCandidateInitSchema>;
|
|
1111
1139
|
//#endregion
|
|
1112
|
-
export {
|
|
1140
|
+
export { ProtocolVersion as $, roomReadSchema as $n, deviceIdSchema as $t, HandleRecord as A, procSpawnSchema as An, WebrtcIceCandidate as At, MessageRef as B, revocationAnnounceFrameSchema as Bn, closeFrameSchema as Bt, DomainId as C, peerAdvertSchema as Cn, StreamAckFrame as Ct, FrameVariant as D, privateUseDomainIdSchema as Dn, SyncPunchFrame as Dt, Frame as E, privateUseCapabilitySchema as En, StreamSession as Et, ManageCommandParams as F, ptyWriteSchema as Fn, capabilityGrantOkSchema as Ft, PeerAdvert as G, roomJoinSchema as Gn, coseHeaderKidSchema as Gt, NamespacedDomainId as H, revocationEntrySchema as Hn, coreCapabilitySchema as Ht, ManageError as I, relayConnectFrameSchema as In, capabilityRequestSchema as It, PrivateUseCapability as J, roomMembersOkSchema as Jn, coseTokenHeadersSchema as Jt, PeerIdentity as K, roomLeaveSchema as Kn, coseHeaderLabelSchema as Kt, ManageOk as L, relayDataFrameSchema as Ln, capabilityScopeSchema as Lt, IceCandidateInit as M, ptyKillSchema as Mn, WireCandidate as Mt, IdentityKey as N, ptyResizeSchema as Nn, candidateKindSchema as Nt, GossipFrame as O, procKillSchema as On, TokenClaims as Ot, ManageCommand as P, ptySpawnSchema as Pn, candidatesFrameSchema as Pt, ProcSpawn as Q, roomPathSchema as Qn, deviceIdHexSchema as Qt, ManageRequestFrame as R, relayInboundFrameSchema as Rn, capabilityTokenSchema as Rt, DmRoomPath as S, ownerNamedRoomPathSchema as Sn, RoomSend as St, ExecSessionInfo as T, pingFrameSchema as Tn, StreamEndFrame as Tt, ObservedAddressFrame as U, roomInviteSchema as Un, coreDomainNameSchema as Ut, NamespacedCapability as V, revocationClaimsSchema as Vn, coordinatorFrameSchema as Vt, OwnerNamedRoomPath as W, roomJoinOkSchema as Wn, coseHeaderAlgSchema as Wt, ProcKill as X, roomNoticeClaimsSchema as Xn, dataHaveFrameSchema as Xt, PrivateUseDomainId as Y, roomMembersSchema as Yn, dataEntriesFrameSchema as Yt, ProcSignal as Z, roomNoticeSchema as Zn, dataRequestFrameSchema as Zt, DataEntriesFrame as _, manageResponseFrameSchema as _n, RoomMembersOk as _t, CapabilityScope as a, frameVariantSchema as an, syncPunchFrameSchema as ar, RelayDataFrame as at, DeviceId as b, namespacedDomainIdSchema as bn, RoomPath as bt, CloseFrame as c, handleRecordSchema as cn, webrtcIceCandidateSchema as cr, RevocationAnnounceFrame as ct, CoreDomainName as d, identityKeySchema as dn, RoomInvite as dt, dmRoomPathSchema as en, roomSendSchema as er, PtyKill as et, CoseHeaderAlg as f, manageCommandParamsSchema as fn, RoomJoin as ft, CoseTokenHeaders as g, manageRequestFrameSchema as gn, RoomMembers as gt, CoseSign1 as h, manageOkSchema as hn, RoomMember as ht, CapabilityRequest as i, frameSchema as in, streamSessionSchema as ir, RelayConnectFrame as it, HandshakeFrame as j, protocolVersionSchema as jn, WebrtcOffer as jt, HandleClaims as k, procSignalSchema as kn, WebrtcAnswer as kt, CoordinatorFrame as l, handshakeFrameSchema as ln, webrtcOfferSchema as lr, RevocationClaims as lt, CoseHeaderLabel as m, manageErrorSchema as mn, RoomLeave as mt, CandidatesFrame as n, execListSchema as nn, streamDataFrameSchema as nr, PtySpawn as nt, CapabilityToken as o, gossipFrameSchema as on, tokenClaimsSchema as or, RelayInboundFrame as ot, CoseHeaderKid as p, manageCommandSchema as pn, RoomJoinOk as pt, PingFrame as q, roomMemberSchema as qn, coseSign1Schema as qt, CapabilityGrantOk as r, execSessionInfoSchema as rn, streamEndFrameSchema as rr, PtyWrite as rt, CapabilityVerb as s, handleClaimsSchema as sn, webrtcAnswerSchema as sr, RelayOfferFrame as st, CandidateKind as t, domainIdSchema as tn, streamAckFrameSchema as tr, PtyResize as tt, CoreCapability as u, iceCandidateInitSchema as un, wireCandidateSchema as ur, RevocationEntry as ut, DataHaveFrame as v, messageRefSchema as vn, RoomNotice as vt, ExecList as w, peerIdentitySchema as wn, StreamDataFrame as wt, DeviceIdHex as x, observedAddressFrameSchema as xn, RoomRead as xt, DataRequestFrame as y, namespacedCapabilitySchema as yn, RoomNoticeClaims as yt, ManageResponseFrame as z, relayOfferFrameSchema as zn, capabilityVerbSchema as zt };
|