wire-mesh-core 1.2.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.
@@ -1,4 +1,4 @@
1
- import { w as Frame } from "../protocol-B26-5VX7.cjs";
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 { w as Frame } from "../protocol-B26-5VX7.mjs";
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 { j as IdentityKey, v as DeviceId } from "../protocol-B26-5VX7.cjs";
2
- import { t as IdentityPort } from "../identity-BRLEUfVY.cjs";
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 { j as IdentityKey, v as DeviceId } from "../protocol-B26-5VX7.mjs";
2
- import { t as IdentityPort } from "../identity-qNkmGytv.mjs";
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 { v as DeviceId } from "../protocol-B26-5VX7.cjs";
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 { v as DeviceId } from "../protocol-B26-5VX7.mjs";
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 { Z as ProtocolVersion, k as HandshakeFrame, x as DomainId } from "../protocol-B26-5VX7.cjs";
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 { Z as ProtocolVersion, k as HandshakeFrame, x as DomainId } from "../protocol-B26-5VX7.mjs";
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;
@@ -1,5 +1,5 @@
1
- import { F as ManageOk, M as ManageCommand, P as ManageError, U as PeerAdvert, Z as ProtocolVersion, ct as RevocationEntry, i as CapabilityToken, r as CapabilityScope, v as DeviceId, w as Frame } from "../protocol-B26-5VX7.cjs";
2
- import { t as IdentityPort } from "../identity-BRLEUfVY.cjs";
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
@@ -1,5 +1,5 @@
1
- import { F as ManageOk, M as ManageCommand, P as ManageError, U as PeerAdvert, Z as ProtocolVersion, ct as RevocationEntry, i as CapabilityToken, r as CapabilityScope, v as DeviceId, w as Frame } from "../protocol-B26-5VX7.mjs";
2
- import { t as IdentityPort } from "../identity-qNkmGytv.mjs";
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
@@ -1,4 +1,4 @@
1
- import { ct as RevocationEntry } from "../protocol-B26-5VX7.cjs";
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 { ct as RevocationEntry } from "../protocol-B26-5VX7.mjs";
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
  /**
@@ -1,5 +1,5 @@
1
- import { Et as TokenClaims, ct as RevocationEntry, i as CapabilityToken, st as RevocationClaims, v as DeviceId } from "../protocol-B26-5VX7.cjs";
2
- import { t as IdentityPort } from "../identity-BRLEUfVY.cjs";
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
  /**
@@ -1,5 +1,5 @@
1
- import { Et as TokenClaims, ct as RevocationEntry, i as CapabilityToken, st as RevocationClaims, v as DeviceId } from "../protocol-B26-5VX7.mjs";
2
- import { t as IdentityPort } from "../identity-qNkmGytv.mjs";
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 PtyResize, $n as streamEndFrameSchema, $t as execSessionInfoSchema, A as IceCandidateInit, An as ptySpawnSchema, At as WireCandidate, B as NamespacedDomainId, Bn as roomJoinOkSchema, Bt as coseHeaderAlgSchema, C as ExecSessionInfo, Cn as privateUseDomainIdSchema, Ct as StreamEndFrame, D as HandleClaims, Dn as protocolVersionSchema, Dt as WebrtcAnswer, E as GossipFrame, En as procSpawnSchema, Et as TokenClaims, F as ManageOk, Fn as relayOfferFrameSchema, Ft as capabilityVerbSchema, G as PingFrame, Gn as roomMembersSchema, Gt as dataEntriesFrameSchema, H as OwnerNamedRoomPath, Hn as roomLeaveSchema, Ht as coseHeaderLabelSchema, I as ManageRequestFrame, In as revocationAnnounceFrameSchema, It as closeFrameSchema, J as ProcKill, Jn as roomPathSchema, Jt as deviceIdHexSchema, K as PrivateUseCapability, Kn as roomNoticeClaimsSchema, Kt as dataHaveFrameSchema, L as ManageResponseFrame, Ln as revocationClaimsSchema, Lt as coordinatorFrameSchema, M as ManageCommand, Mn as relayConnectFrameSchema, Mt as candidatesFrameSchema, N as ManageCommandParams, Nn as relayDataFrameSchema, Nt as capabilityScopeSchema, O as HandleRecord, On as ptyKillSchema, Ot as WebrtcIceCandidate, P as ManageError, Pn as relayInboundFrameSchema, Pt as capabilityTokenSchema, Q as PtyKill, Qn as streamDataFrameSchema, Qt as execListSchema, R as MessageRef, Rn as revocationEntrySchema, Rt as coreCapabilitySchema, S as ExecList, Sn as privateUseCapabilitySchema, St as StreamDataFrame, T as FrameVariant, Tn as procSignalSchema, Tt as SyncPunchFrame, U as PeerAdvert, Un as roomMemberSchema, Ut as coseSign1Schema, V as ObservedAddressFrame, Vn as roomJoinSchema, Vt as coseHeaderKidSchema, W as PeerIdentity, Wn as roomMembersOkSchema, Wt as coseTokenHeadersSchema, X as ProcSpawn, Xn as roomSendSchema, Xt as dmRoomPathSchema, Y as ProcSignal, Yn as roomReadSchema, Yt as deviceIdSchema, Z as ProtocolVersion, Zn as streamAckFrameSchema, Zt as domainIdSchema, _ as DataRequestFrame, _n as observedAddressFrameSchema, _t as RoomNoticeClaims, a as CapabilityVerb, an as handshakeFrameSchema, ar as webrtcOfferSchema, at as RelayOfferFrame, b as DmRoomPath, bn as peerIdentitySchema, bt as RoomSend, c as CoreCapability, cn as manageCommandParamsSchema, ct as RevocationEntry, d as CoseHeaderKid, dn as manageOkSchema, dt as RoomJoinOk, en as frameSchema, er as streamSessionSchema, et as PtySpawn, f as CoseHeaderLabel, fn as manageRequestFrameSchema, ft as RoomLeave, g as DataHaveFrame, gn as namespacedDomainIdSchema, gt as RoomNotice, h as DataEntriesFrame, hn as namespacedCapabilitySchema, ht as RoomMembersOk, i as CapabilityToken, in as handleRecordSchema, ir as webrtcIceCandidateSchema, it as RelayInboundFrame, j as IdentityKey, jn as ptyWriteSchema, jt as candidateKindSchema, k as HandshakeFrame, kn as ptyResizeSchema, kt as WebrtcOffer, l as CoreDomainName, ln as manageCommandSchema, lt as RoomInvite, m as CoseTokenHeaders, mn as messageRefSchema, mt as RoomMembers, n as CandidatesFrame, nn as gossipFrameSchema, nr as tokenClaimsSchema, nt as RelayConnectFrame, o as CloseFrame, on as iceCandidateInitSchema, or as wireCandidateSchema, ot as RevocationAnnounceFrame, p as CoseSign1, pn as manageResponseFrameSchema, pt as RoomMember, q as PrivateUseDomainId, qn as roomNoticeSchema, qt as dataRequestFrameSchema, r as CapabilityScope, rn as handleClaimsSchema, rr as webrtcAnswerSchema, rt as RelayDataFrame, s as CoordinatorFrame, sn as identityKeySchema, st as RevocationClaims, t as CandidateKind, tn as frameVariantSchema, tr as syncPunchFrameSchema, tt as PtyWrite, u as CoseHeaderAlg, un as manageErrorSchema, ut as RoomJoin, v as DeviceId, vn as ownerNamedRoomPathSchema, vt as RoomPath, w as Frame, wn as procKillSchema, wt as StreamSession, x as DomainId, xn as pingFrameSchema, xt as StreamAckFrame, y as DeviceIdHex, yn as peerAdvertSchema, yt as RoomRead, z as NamespacedCapability, zn as roomInviteSchema, zt as coreDomainNameSchema } from "../protocol-B26-5VX7.cjs";
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 PtyResize, $n as streamEndFrameSchema, $t as execSessionInfoSchema, A as IceCandidateInit, An as ptySpawnSchema, At as WireCandidate, B as NamespacedDomainId, Bn as roomJoinOkSchema, Bt as coseHeaderAlgSchema, C as ExecSessionInfo, Cn as privateUseDomainIdSchema, Ct as StreamEndFrame, D as HandleClaims, Dn as protocolVersionSchema, Dt as WebrtcAnswer, E as GossipFrame, En as procSpawnSchema, Et as TokenClaims, F as ManageOk, Fn as relayOfferFrameSchema, Ft as capabilityVerbSchema, G as PingFrame, Gn as roomMembersSchema, Gt as dataEntriesFrameSchema, H as OwnerNamedRoomPath, Hn as roomLeaveSchema, Ht as coseHeaderLabelSchema, I as ManageRequestFrame, In as revocationAnnounceFrameSchema, It as closeFrameSchema, J as ProcKill, Jn as roomPathSchema, Jt as deviceIdHexSchema, K as PrivateUseCapability, Kn as roomNoticeClaimsSchema, Kt as dataHaveFrameSchema, L as ManageResponseFrame, Ln as revocationClaimsSchema, Lt as coordinatorFrameSchema, M as ManageCommand, Mn as relayConnectFrameSchema, Mt as candidatesFrameSchema, N as ManageCommandParams, Nn as relayDataFrameSchema, Nt as capabilityScopeSchema, O as HandleRecord, On as ptyKillSchema, Ot as WebrtcIceCandidate, P as ManageError, Pn as relayInboundFrameSchema, Pt as capabilityTokenSchema, Q as PtyKill, Qn as streamDataFrameSchema, Qt as execListSchema, R as MessageRef, Rn as revocationEntrySchema, Rt as coreCapabilitySchema, S as ExecList, Sn as privateUseCapabilitySchema, St as StreamDataFrame, T as FrameVariant, Tn as procSignalSchema, Tt as SyncPunchFrame, U as PeerAdvert, Un as roomMemberSchema, Ut as coseSign1Schema, V as ObservedAddressFrame, Vn as roomJoinSchema, Vt as coseHeaderKidSchema, W as PeerIdentity, Wn as roomMembersOkSchema, Wt as coseTokenHeadersSchema, X as ProcSpawn, Xn as roomSendSchema, Xt as dmRoomPathSchema, Y as ProcSignal, Yn as roomReadSchema, Yt as deviceIdSchema, Z as ProtocolVersion, Zn as streamAckFrameSchema, Zt as domainIdSchema, _ as DataRequestFrame, _n as observedAddressFrameSchema, _t as RoomNoticeClaims, a as CapabilityVerb, an as handshakeFrameSchema, ar as webrtcOfferSchema, at as RelayOfferFrame, b as DmRoomPath, bn as peerIdentitySchema, bt as RoomSend, c as CoreCapability, cn as manageCommandParamsSchema, ct as RevocationEntry, d as CoseHeaderKid, dn as manageOkSchema, dt as RoomJoinOk, en as frameSchema, er as streamSessionSchema, et as PtySpawn, f as CoseHeaderLabel, fn as manageRequestFrameSchema, ft as RoomLeave, g as DataHaveFrame, gn as namespacedDomainIdSchema, gt as RoomNotice, h as DataEntriesFrame, hn as namespacedCapabilitySchema, ht as RoomMembersOk, i as CapabilityToken, in as handleRecordSchema, ir as webrtcIceCandidateSchema, it as RelayInboundFrame, j as IdentityKey, jn as ptyWriteSchema, jt as candidateKindSchema, k as HandshakeFrame, kn as ptyResizeSchema, kt as WebrtcOffer, l as CoreDomainName, ln as manageCommandSchema, lt as RoomInvite, m as CoseTokenHeaders, mn as messageRefSchema, mt as RoomMembers, n as CandidatesFrame, nn as gossipFrameSchema, nr as tokenClaimsSchema, nt as RelayConnectFrame, o as CloseFrame, on as iceCandidateInitSchema, or as wireCandidateSchema, ot as RevocationAnnounceFrame, p as CoseSign1, pn as manageResponseFrameSchema, pt as RoomMember, q as PrivateUseDomainId, qn as roomNoticeSchema, qt as dataRequestFrameSchema, r as CapabilityScope, rn as handleClaimsSchema, rr as webrtcAnswerSchema, rt as RelayDataFrame, s as CoordinatorFrame, sn as identityKeySchema, st as RevocationClaims, t as CandidateKind, tn as frameVariantSchema, tr as syncPunchFrameSchema, tt as PtyWrite, u as CoseHeaderAlg, un as manageErrorSchema, ut as RoomJoin, v as DeviceId, vn as ownerNamedRoomPathSchema, vt as RoomPath, w as Frame, wn as procKillSchema, wt as StreamSession, x as DomainId, xn as pingFrameSchema, xt as StreamAckFrame, y as DeviceIdHex, yn as peerAdvertSchema, yt as RoomRead, z as NamespacedCapability, zn as roomInviteSchema, zt as coreDomainNameSchema } from "../protocol-B26-5VX7.mjs";
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 { j as IdentityKey, v as DeviceId } from "./protocol-B26-5VX7.cjs";
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 { j as IdentityKey, v as DeviceId } from "./protocol-B26-5VX7.mjs";
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-BRLEUfVY.cjs";
1
+ import { t as IdentityPort } from "../identity-CedN2RyT.cjs";
2
2
  export { IdentityPort };
@@ -1,2 +1,2 @@
1
- import { t as IdentityPort } from "../identity-qNkmGytv.mjs";
1
+ import { t as IdentityPort } from "../identity-CuNm8s38.mjs";
2
2
  export { IdentityPort };
@@ -1,4 +1,4 @@
1
- import { v as DeviceId, w as Frame } from "../protocol-B26-5VX7.cjs";
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 { v as DeviceId, w as Frame } from "../protocol-B26-5VX7.mjs";
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.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
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.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
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.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
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.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
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.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
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 { PtyResize as $, streamEndFrameSchema as $n, execSessionInfoSchema as $t, IceCandidateInit as A, ptySpawnSchema as An, WireCandidate as At, NamespacedDomainId as B, roomJoinOkSchema as Bn, coseHeaderAlgSchema as Bt, ExecSessionInfo as C, privateUseDomainIdSchema as Cn, StreamEndFrame as Ct, HandleClaims as D, protocolVersionSchema as Dn, WebrtcAnswer as Dt, GossipFrame as E, procSpawnSchema as En, TokenClaims as Et, ManageOk as F, relayOfferFrameSchema as Fn, capabilityVerbSchema as Ft, PingFrame as G, roomMembersSchema as Gn, dataEntriesFrameSchema as Gt, OwnerNamedRoomPath as H, roomLeaveSchema as Hn, coseHeaderLabelSchema as Ht, ManageRequestFrame as I, revocationAnnounceFrameSchema as In, closeFrameSchema as It, ProcKill as J, roomPathSchema as Jn, deviceIdHexSchema as Jt, PrivateUseCapability as K, roomNoticeClaimsSchema as Kn, dataHaveFrameSchema as Kt, ManageResponseFrame as L, revocationClaimsSchema as Ln, coordinatorFrameSchema as Lt, ManageCommand as M, relayConnectFrameSchema as Mn, candidatesFrameSchema as Mt, ManageCommandParams as N, relayDataFrameSchema as Nn, capabilityScopeSchema as Nt, HandleRecord as O, ptyKillSchema as On, WebrtcIceCandidate as Ot, ManageError as P, relayInboundFrameSchema as Pn, capabilityTokenSchema as Pt, PtyKill as Q, streamDataFrameSchema as Qn, execListSchema as Qt, MessageRef as R, revocationEntrySchema as Rn, coreCapabilitySchema as Rt, ExecList as S, privateUseCapabilitySchema as Sn, StreamDataFrame as St, FrameVariant as T, procSignalSchema as Tn, SyncPunchFrame as Tt, PeerAdvert as U, roomMemberSchema as Un, coseSign1Schema as Ut, ObservedAddressFrame as V, roomJoinSchema as Vn, coseHeaderKidSchema as Vt, PeerIdentity as W, roomMembersOkSchema as Wn, coseTokenHeadersSchema as Wt, ProcSpawn as X, roomSendSchema as Xn, dmRoomPathSchema as Xt, ProcSignal as Y, roomReadSchema as Yn, deviceIdSchema as Yt, ProtocolVersion as Z, streamAckFrameSchema as Zn, domainIdSchema as Zt, DataRequestFrame as _, observedAddressFrameSchema as _n, RoomNoticeClaims as _t, CapabilityVerb as a, handshakeFrameSchema as an, webrtcOfferSchema as ar, RelayOfferFrame as at, DmRoomPath as b, peerIdentitySchema as bn, RoomSend as bt, CoreCapability as c, manageCommandParamsSchema as cn, RevocationEntry as ct, CoseHeaderKid as d, manageOkSchema as dn, RoomJoinOk as dt, frameSchema as en, streamSessionSchema as er, PtySpawn as et, CoseHeaderLabel as f, manageRequestFrameSchema as fn, RoomLeave as ft, DataHaveFrame as g, namespacedDomainIdSchema as gn, RoomNotice as gt, DataEntriesFrame as h, namespacedCapabilitySchema as hn, RoomMembersOk as ht, CapabilityToken as i, handleRecordSchema as in, webrtcIceCandidateSchema as ir, RelayInboundFrame as it, IdentityKey as j, ptyWriteSchema as jn, candidateKindSchema as jt, HandshakeFrame as k, ptyResizeSchema as kn, WebrtcOffer as kt, CoreDomainName as l, manageCommandSchema as ln, RoomInvite as lt, CoseTokenHeaders as m, messageRefSchema as mn, RoomMembers as mt, CandidatesFrame as n, gossipFrameSchema as nn, tokenClaimsSchema as nr, RelayConnectFrame as nt, CloseFrame as o, iceCandidateInitSchema as on, wireCandidateSchema as or, RevocationAnnounceFrame as ot, CoseSign1 as p, manageResponseFrameSchema as pn, RoomMember as pt, PrivateUseDomainId as q, roomNoticeSchema as qn, dataRequestFrameSchema as qt, CapabilityScope as r, handleClaimsSchema as rn, webrtcAnswerSchema as rr, RelayDataFrame as rt, CoordinatorFrame as s, identityKeySchema as sn, RevocationClaims as st, CandidateKind as t, frameVariantSchema as tn, syncPunchFrameSchema as tr, PtyWrite as tt, CoseHeaderAlg as u, manageErrorSchema as un, RoomJoin as ut, DeviceId as v, ownerNamedRoomPathSchema as vn, RoomPath as vt, Frame as w, procKillSchema as wn, StreamSession as wt, DomainId as x, pingFrameSchema as xn, StreamAckFrame as xt, DeviceIdHex as y, peerAdvertSchema as yn, RoomRead as yt, NamespacedCapability as z, roomInviteSchema as zn, coreDomainNameSchema as zt };
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.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
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.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
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.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
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.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
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.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
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 { PtyResize as $, streamEndFrameSchema as $n, execSessionInfoSchema as $t, IceCandidateInit as A, ptySpawnSchema as An, WireCandidate as At, NamespacedDomainId as B, roomJoinOkSchema as Bn, coseHeaderAlgSchema as Bt, ExecSessionInfo as C, privateUseDomainIdSchema as Cn, StreamEndFrame as Ct, HandleClaims as D, protocolVersionSchema as Dn, WebrtcAnswer as Dt, GossipFrame as E, procSpawnSchema as En, TokenClaims as Et, ManageOk as F, relayOfferFrameSchema as Fn, capabilityVerbSchema as Ft, PingFrame as G, roomMembersSchema as Gn, dataEntriesFrameSchema as Gt, OwnerNamedRoomPath as H, roomLeaveSchema as Hn, coseHeaderLabelSchema as Ht, ManageRequestFrame as I, revocationAnnounceFrameSchema as In, closeFrameSchema as It, ProcKill as J, roomPathSchema as Jn, deviceIdHexSchema as Jt, PrivateUseCapability as K, roomNoticeClaimsSchema as Kn, dataHaveFrameSchema as Kt, ManageResponseFrame as L, revocationClaimsSchema as Ln, coordinatorFrameSchema as Lt, ManageCommand as M, relayConnectFrameSchema as Mn, candidatesFrameSchema as Mt, ManageCommandParams as N, relayDataFrameSchema as Nn, capabilityScopeSchema as Nt, HandleRecord as O, ptyKillSchema as On, WebrtcIceCandidate as Ot, ManageError as P, relayInboundFrameSchema as Pn, capabilityTokenSchema as Pt, PtyKill as Q, streamDataFrameSchema as Qn, execListSchema as Qt, MessageRef as R, revocationEntrySchema as Rn, coreCapabilitySchema as Rt, ExecList as S, privateUseCapabilitySchema as Sn, StreamDataFrame as St, FrameVariant as T, procSignalSchema as Tn, SyncPunchFrame as Tt, PeerAdvert as U, roomMemberSchema as Un, coseSign1Schema as Ut, ObservedAddressFrame as V, roomJoinSchema as Vn, coseHeaderKidSchema as Vt, PeerIdentity as W, roomMembersOkSchema as Wn, coseTokenHeadersSchema as Wt, ProcSpawn as X, roomSendSchema as Xn, dmRoomPathSchema as Xt, ProcSignal as Y, roomReadSchema as Yn, deviceIdSchema as Yt, ProtocolVersion as Z, streamAckFrameSchema as Zn, domainIdSchema as Zt, DataRequestFrame as _, observedAddressFrameSchema as _n, RoomNoticeClaims as _t, CapabilityVerb as a, handshakeFrameSchema as an, webrtcOfferSchema as ar, RelayOfferFrame as at, DmRoomPath as b, peerIdentitySchema as bn, RoomSend as bt, CoreCapability as c, manageCommandParamsSchema as cn, RevocationEntry as ct, CoseHeaderKid as d, manageOkSchema as dn, RoomJoinOk as dt, frameSchema as en, streamSessionSchema as er, PtySpawn as et, CoseHeaderLabel as f, manageRequestFrameSchema as fn, RoomLeave as ft, DataHaveFrame as g, namespacedDomainIdSchema as gn, RoomNotice as gt, DataEntriesFrame as h, namespacedCapabilitySchema as hn, RoomMembersOk as ht, CapabilityToken as i, handleRecordSchema as in, webrtcIceCandidateSchema as ir, RelayInboundFrame as it, IdentityKey as j, ptyWriteSchema as jn, candidateKindSchema as jt, HandshakeFrame as k, ptyResizeSchema as kn, WebrtcOffer as kt, CoreDomainName as l, manageCommandSchema as ln, RoomInvite as lt, CoseTokenHeaders as m, messageRefSchema as mn, RoomMembers as mt, CandidatesFrame as n, gossipFrameSchema as nn, tokenClaimsSchema as nr, RelayConnectFrame as nt, CloseFrame as o, iceCandidateInitSchema as on, wireCandidateSchema as or, RevocationAnnounceFrame as ot, CoseSign1 as p, manageResponseFrameSchema as pn, RoomMember as pt, PrivateUseDomainId as q, roomNoticeSchema as qn, dataRequestFrameSchema as qt, CapabilityScope as r, handleClaimsSchema as rn, webrtcAnswerSchema as rr, RelayDataFrame as rt, CoordinatorFrame as s, identityKeySchema as sn, RevocationClaims as st, CandidateKind as t, frameVariantSchema as tn, syncPunchFrameSchema as tr, PtyWrite as tt, CoseHeaderAlg as u, manageErrorSchema as un, RoomJoin as ut, DeviceId as v, ownerNamedRoomPathSchema as vn, RoomPath as vt, Frame as w, procKillSchema as wn, StreamSession as wt, DomainId as x, pingFrameSchema as xn, StreamAckFrame as xt, DeviceIdHex as y, peerAdvertSchema as yn, RoomRead as yt, NamespacedCapability as z, roomInviteSchema as zn, coreDomainNameSchema as zt };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wire-mesh-core",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@10.33.0",
6
6
  "repository": {