wire-mesh-core 1.31.0 → 1.33.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.cjs +26 -2
- package/dist/adapters/node-identity.d.cts +5 -3
- package/dist/adapters/node-identity.d.mts +5 -3
- package/dist/adapters/node-identity.mjs +26 -2
- package/dist/adapters/tcp-transport.d.cts +1 -1
- package/dist/adapters/tcp-transport.d.mts +1 -1
- package/dist/adapters/tls-transport.d.cts +1 -1
- package/dist/adapters/tls-transport.d.mts +1 -1
- package/dist/domain/bulk.d.cts +2 -2
- package/dist/domain/bulk.d.mts +2 -2
- package/dist/domain/capability-grant.cjs +1 -1
- package/dist/domain/capability-grant.d.cts +3 -3
- package/dist/domain/capability-grant.d.mts +3 -3
- package/dist/domain/capability-grant.mjs +1 -1
- package/dist/domain/capability-request.cjs +1 -1
- package/dist/domain/capability-request.d.cts +2 -2
- package/dist/domain/capability-request.d.mts +2 -2
- package/dist/domain/capability-request.mjs +1 -1
- package/dist/domain/data-sync.d.cts +2 -2
- package/dist/domain/data-sync.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/grant-candidates.d.cts +1 -1
- package/dist/domain/grant-candidates.d.mts +1 -1
- package/dist/domain/group-key.cjs +93 -0
- package/dist/domain/group-key.d.cts +24 -0
- package/dist/domain/group-key.d.mts +24 -0
- package/dist/domain/group-key.mjs +87 -0
- package/dist/domain/handshake.d.cts +1 -1
- package/dist/domain/handshake.d.mts +1 -1
- package/dist/domain/mesh-session.d.cts +3 -3
- package/dist/domain/mesh-session.d.mts +3 -3
- package/dist/domain/relay-hub.d.cts +2 -2
- package/dist/domain/relay-hub.d.mts +2 -2
- package/dist/domain/relay-use-gate.d.cts +2 -2
- package/dist/domain/relay-use-gate.d.mts +2 -2
- package/dist/domain/revocation-view.cjs +1 -1
- package/dist/domain/revocation-view.d.cts +2 -2
- package/dist/domain/revocation-view.d.mts +2 -2
- package/dist/domain/revocation-view.mjs +1 -1
- package/dist/domain/room-rekey.cjs +112 -0
- package/dist/domain/room-rekey.d.cts +35 -0
- package/dist/domain/room-rekey.d.mts +35 -0
- package/dist/domain/room-rekey.mjs +109 -0
- package/dist/domain/room-token-verification.cjs +3 -2
- package/dist/domain/room-token-verification.d.cts +4 -2
- package/dist/domain/room-token-verification.d.mts +4 -2
- package/dist/domain/room-token-verification.mjs +3 -2
- package/dist/domain/room.d.cts +3 -3
- package/dist/domain/room.d.mts +3 -3
- package/dist/domain/tokens.cjs +1 -1
- package/dist/domain/tokens.d.cts +1 -1
- package/dist/domain/tokens.d.mts +1 -1
- package/dist/domain/tokens.mjs +1 -1
- package/dist/generated/protocol.cjs +9 -1
- package/dist/generated/protocol.d.cts +2 -2
- package/dist/generated/protocol.d.mts +2 -2
- package/dist/generated/protocol.mjs +9 -2
- package/dist/{identity-C5N86BPz.d.mts → identity-B4XBWkqg.d.cts} +3 -1
- package/dist/{identity-DJ06jn4k.d.cts → identity-CIb9dGkJ.d.mts} +3 -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-sW8d6Og-.d.cts → protocol-gbXtNeOc.d.cts} +33 -6
- package/dist/{protocol-sW8d6Og-.d.mts → protocol-gbXtNeOc.d.mts} +33 -6
- package/dist/{tokens-DfVfE00W.d.cts → tokens-C9Kwy0Gk.d.cts} +4 -2
- package/dist/{tokens-VicRWTj1.mjs → tokens-CdQwzCyJ.mjs} +2 -0
- package/dist/{tokens-CiNXdKJ8.cjs → tokens-DxGVURpB.cjs} +2 -0
- package/dist/{tokens-CpLDI5Fo.d.mts → tokens-k172l0Iy.d.mts} +4 -2
- package/dist/{transport-B5E896PN.d.mts → transport-DAsFqDDS.d.cts} +1 -1
- package/dist/{transport-DxZ4JWZc.d.cts → transport-Dy4h2eNY.d.mts} +1 -1
- package/package.json +9 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as PeerIdentity, $n as
|
|
2
|
-
export { BulkAckFrame, BulkCancel, BulkDataFrame, BulkEndFrame, BulkOpen, BulkResume, CandidateKind, CandidatesFrame, CapabilityGrant, 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, TransferId, WebrtcAnswer, WebrtcIceCandidate, WebrtcOffer, WireCandidate, bulkAckFrameSchema, bulkCancelSchema, bulkDataFrameSchema, bulkEndFrameSchema, bulkOpenSchema, bulkResumeSchema, candidateKindSchema, candidatesFrameSchema, capabilityGrantOkSchema, capabilityGrantSchema, 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, transferIdSchema, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|
|
1
|
+
import { $ as PeerIdentity, $n as relayDataFrameSchema, $t as capabilityScopeSchema, A as DomainId, An as manageErrorSchema, At as RoomSend, B as IdentityKey, Bn as peerIdentitySchema, Bt as WebrtcOffer, C as CoseTokenHeaders, Cn as handleClaimsSchema, Cr as tokenClaimsSchema, Ct as RoomMembers, D as DeviceId, Dn as identityKeySchema, Dr as webrtcOfferSchema, Dt as RoomPath, E as DataRequestFrame, En as iceCandidateInitSchema, Er as webrtcIceCandidateSchema, Et as RoomNoticeClaims, F as GossipFrame, Fn as namespacedCapabilitySchema, Ft as SyncPunchFrame, G as ManageRequestFrame, Gn as procSignalSchema, Gt as bulkEndFrameSchema, H as ManageCommandParams, Hn as privateUseCapabilitySchema, Ht as bulkAckFrameSchema, I as HandleClaims, In as namespacedDomainIdSchema, It as TokenClaims, J as NamespacedCapability, Jn as ptyKillSchema, Jt as candidateKindSchema, K as ManageResponseFrame, Kn as procSpawnSchema, Kt as bulkOpenSchema, L as HandleRecord, Ln as observedAddressFrameSchema, Lt as TransferId, M as ExecSessionInfo, Mn as manageRequestFrameSchema, Mt as StreamDataFrame, N as Frame, Nn as manageResponseFrameSchema, Nt as StreamEndFrame, O as DeviceIdHex, On as manageCommandParamsSchema, Or as wireCandidateSchema, Ot as RoomRead, P as FrameVariant, Pn as messageRefSchema, Pt as StreamSession, Q as PeerAdvert, Qn as relayConnectFrameSchema, Qt as capabilityRequestSchema, R as HandshakeFrame, Rn as ownerNamedRoomPathSchema, Rt as WebrtcAnswer, S as CoseSign1, Sn as gossipFrameSchema, Sr as syncPunchFrameSchema, St as RoomMember, T as DataHaveFrame, Tn as handshakeFrameSchema, Tr as webrtcAnswerSchema, Tt as RoomNotice, U as ManageError, Un as privateUseDomainIdSchema, Ut as bulkCancelSchema, V as ManageCommand, Vn as pingFrameSchema, Vt as WireCandidate, W as ManageOk, Wn as procKillSchema, Wt as bulkDataFrameSchema, X as ObservedAddressFrame, Xn as ptySpawnSchema, Xt as capabilityGrantOkSchema, Y as NamespacedDomainId, Yn as ptyResizeSchema, Yt as candidatesFrameSchema, Z as OwnerNamedRoomPath, Zn as ptyWriteSchema, Zt as capabilityGrantSchema, _ as CoreCapability, _n as domainIdSchema, _r as roomSendSchema, _t as RevocationEntry, a as BulkOpen, an as coreDomainNameSchema, ar as roomInviteSchema, at as ProcSpawn, b as CoseHeaderKid, bn as frameSchema, br as streamEndFrameSchema, bt as RoomJoinOk, c as CandidatesFrame, cn as coseHeaderLabelSchema, cr as roomLeaveSchema, ct as PtyResize, d as CapabilityRequest, dn as dataEntriesFrameSchema, dr as roomMembersSchema, dt as RelayConnectFrame, en as capabilityTokenSchema, er as relayInboundFrameSchema, et as PingFrame, f as CapabilityScope, fn as dataHaveFrameSchema, fr as roomNoticeClaimsSchema, ft as RelayDataFrame, g as CoordinatorFrame, gn as dmRoomPathSchema, gr as roomRekeySchema, gt as RevocationClaims, h as CloseFrame, hn as deviceIdSchema, hr as roomReadSchema, ht as RevocationAnnounceFrame, i as BulkEndFrame, in as coreCapabilitySchema, ir as revocationEntrySchema, it as ProcSignal, j as ExecList, jn as manageOkSchema, jt as StreamAckFrame, k as DmRoomPath, kn as manageCommandSchema, kt as RoomRekey, l as CapabilityGrant, ln as coseSign1Schema, lr as roomMemberSchema, lt as PtySpawn, m as CapabilityVerb, mn as deviceIdHexSchema, mr as roomPathSchema, mt as RelayOfferFrame, n as BulkCancel, nn as closeFrameSchema, nr as revocationAnnounceFrameSchema, nt as PrivateUseDomainId, o as BulkResume, on as coseHeaderAlgSchema, or as roomJoinOkSchema, ot as ProtocolVersion, p as CapabilityToken, pn as dataRequestFrameSchema, pr as roomNoticeSchema, pt as RelayInboundFrame, q as MessageRef, qn as protocolVersionSchema, qt as bulkResumeSchema, r as BulkDataFrame, rn as coordinatorFrameSchema, rr as revocationClaimsSchema, rt as ProcKill, s as CandidateKind, sn as coseHeaderKidSchema, sr as roomJoinSchema, st as PtyKill, t as BulkAckFrame, tn as capabilityVerbSchema, tr as relayOfferFrameSchema, tt as PrivateUseCapability, u as CapabilityGrantOk, un as coseTokenHeadersSchema, ur as roomMembersOkSchema, ut as PtyWrite, v as CoreDomainName, vn as execListSchema, vr as streamAckFrameSchema, vt as RoomInvite, w as DataEntriesFrame, wn as handleRecordSchema, wr as transferIdSchema, wt as RoomMembersOk, x as CoseHeaderLabel, xn as frameVariantSchema, xr as streamSessionSchema, xt as RoomLeave, y as CoseHeaderAlg, yn as execSessionInfoSchema, yr as streamDataFrameSchema, yt as RoomJoin, z as IceCandidateInit, zn as peerAdvertSchema, zt as WebrtcIceCandidate } from "../protocol-gbXtNeOc.mjs";
|
|
2
|
+
export { BulkAckFrame, BulkCancel, BulkDataFrame, BulkEndFrame, BulkOpen, BulkResume, CandidateKind, CandidatesFrame, CapabilityGrant, 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, RoomRekey, RoomSend, StreamAckFrame, StreamDataFrame, StreamEndFrame, StreamSession, SyncPunchFrame, TokenClaims, TransferId, WebrtcAnswer, WebrtcIceCandidate, WebrtcOffer, WireCandidate, bulkAckFrameSchema, bulkCancelSchema, bulkDataFrameSchema, bulkEndFrameSchema, bulkOpenSchema, bulkResumeSchema, candidateKindSchema, candidatesFrameSchema, capabilityGrantOkSchema, capabilityGrantSchema, 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, roomRekeySchema, roomSendSchema, streamAckFrameSchema, streamDataFrameSchema, streamEndFrameSchema, streamSessionSchema, syncPunchFrameSchema, tokenClaimsSchema, transferIdSchema, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|
|
@@ -43,6 +43,7 @@ const manageCommandParamsSchema = z.lazy(() => z.union([
|
|
|
43
43
|
z.lazy(() => roomMembersSchema)
|
|
44
44
|
]),
|
|
45
45
|
z.union([z.lazy(() => roomJoinSchema), z.lazy(() => roomInviteSchema)]),
|
|
46
|
+
z.lazy(() => roomRekeySchema),
|
|
46
47
|
z.union([
|
|
47
48
|
z.lazy(() => webrtcOfferSchema),
|
|
48
49
|
z.lazy(() => webrtcAnswerSchema),
|
|
@@ -275,6 +276,11 @@ const roomInviteSchema = z.lazy(() => z.object({
|
|
|
275
276
|
"invitee": z.lazy(() => deviceIdSchema),
|
|
276
277
|
"token": z.lazy(() => capabilityTokenSchema)
|
|
277
278
|
}).catchall(z.unknown()));
|
|
279
|
+
const roomRekeySchema = z.lazy(() => z.object({
|
|
280
|
+
"verb": z.literal("room.rekey"),
|
|
281
|
+
"key-epoch": z.number().int().nonnegative(),
|
|
282
|
+
"wrapped-key": z.union([z.instanceof(Uint8Array), z.array(z.instanceof(Uint8Array))])
|
|
283
|
+
}).catchall(z.unknown()));
|
|
278
284
|
const roomMemberSchema = z.lazy(() => z.object({ "device": z.lazy(() => deviceIdSchema) }).catchall(z.unknown()));
|
|
279
285
|
const roomJoinOkSchema = z.lazy(() => z.object({
|
|
280
286
|
"result": z.literal("ok"),
|
|
@@ -296,7 +302,8 @@ const roomNoticeClaimsSchema = z.lazy(() => z.object({
|
|
|
296
302
|
"content-type": z.string(),
|
|
297
303
|
"content": z.instanceof(Uint8Array),
|
|
298
304
|
"refs": z.array(z.lazy(() => messageRefSchema)).optional(),
|
|
299
|
-
"valid-until": z.number().int().nonnegative().optional()
|
|
305
|
+
"valid-until": z.number().int().nonnegative().optional(),
|
|
306
|
+
"key-epoch": z.number().int().nonnegative().optional()
|
|
300
307
|
}).catchall(z.unknown()));
|
|
301
308
|
const streamSessionSchema = z.lazy(() => z.number().int().nonnegative());
|
|
302
309
|
const streamDataFrameSchema = z.lazy(() => z.object({
|
|
@@ -441,4 +448,4 @@ const iceCandidateInitSchema = z.lazy(() => z.object({
|
|
|
441
448
|
"username-fragment": z.string().optional()
|
|
442
449
|
}));
|
|
443
450
|
//#endregion
|
|
444
|
-
export { bulkAckFrameSchema, bulkCancelSchema, bulkDataFrameSchema, bulkEndFrameSchema, bulkOpenSchema, bulkResumeSchema, candidateKindSchema, candidatesFrameSchema, capabilityGrantOkSchema, capabilityGrantSchema, 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, transferIdSchema, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|
|
451
|
+
export { bulkAckFrameSchema, bulkCancelSchema, bulkDataFrameSchema, bulkEndFrameSchema, bulkOpenSchema, bulkResumeSchema, candidateKindSchema, candidatesFrameSchema, capabilityGrantOkSchema, capabilityGrantSchema, 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, roomRekeySchema, roomSendSchema, streamAckFrameSchema, streamDataFrameSchema, streamEndFrameSchema, streamSessionSchema, syncPunchFrameSchema, tokenClaimsSchema, transferIdSchema, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as IdentityKey, D as DeviceId } from "./protocol-
|
|
1
|
+
import { B as IdentityKey, D as DeviceId } from "./protocol-gbXtNeOc.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).
|
|
@@ -12,6 +12,8 @@ interface IdentityPort {
|
|
|
12
12
|
verify: (key: IdentityKey, message: Uint8Array, signature: Uint8Array) => Promise<boolean>;
|
|
13
13
|
/** Derives the device-id an arbitrary public key would produce (SHA-256 of the raw public-key bytes -- never a certificate's own DER encoding, the bug both Cascade and agent-comms had to fix). Used to check a token's self-certifying issuer-key against its claimed issuer, not just the local node's own identity. */
|
|
14
14
|
deriveDeviceId: (publicKey: Uint8Array) => Promise<DeviceId>;
|
|
15
|
+
/** Derives a raw ECDH shared secret against a peer's identity-key, the asymmetric half of room.rekey's own ECIES key-wrapping construction (wire-mesh#141) -- HKDF and AES-256-GCM, the symmetric half, need no port since they operate on plain bytes already in hand, with no platform-specific key custody involved. Optional, not a method every implementation must throw from: ECDH is only defined here for an ES256 (P-256) identity-key, so an Ed25519-only identity genuinely cannot support it, the same "some identities can do this, some can't" reality `sign`'s own two-algorithm dispatch already reflects. A caller that needs this and finds it absent must fail closed, never substitute a different construction. Returns the raw shared-secret bytes, NOT yet an encryption key -- always pass through HKDF first, never use ECDH output directly as a symmetric key. */
|
|
16
|
+
deriveSharedSecret?: (peerKey: IdentityKey) => Promise<Uint8Array<ArrayBuffer>>;
|
|
15
17
|
}
|
|
16
18
|
//#endregion
|
|
17
19
|
export { IdentityPort as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as IdentityKey, D as DeviceId } from "./protocol-
|
|
1
|
+
import { B as IdentityKey, D as DeviceId } from "./protocol-gbXtNeOc.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).
|
|
@@ -12,6 +12,8 @@ interface IdentityPort {
|
|
|
12
12
|
verify: (key: IdentityKey, message: Uint8Array, signature: Uint8Array) => Promise<boolean>;
|
|
13
13
|
/** Derives the device-id an arbitrary public key would produce (SHA-256 of the raw public-key bytes -- never a certificate's own DER encoding, the bug both Cascade and agent-comms had to fix). Used to check a token's self-certifying issuer-key against its claimed issuer, not just the local node's own identity. */
|
|
14
14
|
deriveDeviceId: (publicKey: Uint8Array) => Promise<DeviceId>;
|
|
15
|
+
/** Derives a raw ECDH shared secret against a peer's identity-key, the asymmetric half of room.rekey's own ECIES key-wrapping construction (wire-mesh#141) -- HKDF and AES-256-GCM, the symmetric half, need no port since they operate on plain bytes already in hand, with no platform-specific key custody involved. Optional, not a method every implementation must throw from: ECDH is only defined here for an ES256 (P-256) identity-key, so an Ed25519-only identity genuinely cannot support it, the same "some identities can do this, some can't" reality `sign`'s own two-algorithm dispatch already reflects. A caller that needs this and finds it absent must fail closed, never substitute a different construction. Returns the raw shared-secret bytes, NOT yet an encryption key -- always pass through HKDF first, never use ECDH output directly as a symmetric key. */
|
|
16
|
+
deriveSharedSecret?: (peerKey: IdentityKey) => Promise<Uint8Array<ArrayBuffer>>;
|
|
15
17
|
}
|
|
16
18
|
//#endregion
|
|
17
19
|
export { IdentityPort as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as IdentityPort } from "../identity-
|
|
1
|
+
import { t as IdentityPort } from "../identity-B4XBWkqg.cjs";
|
|
2
2
|
export { IdentityPort };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as IdentityPort } from "../identity-
|
|
1
|
+
import { t as IdentityPort } from "../identity-CIb9dGkJ.mjs";
|
|
2
2
|
export { IdentityPort };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Listener, r as Transport, t as Connection } from "../transport-
|
|
1
|
+
import { n as Listener, r as Transport, t as Connection } from "../transport-DAsFqDDS.cjs";
|
|
2
2
|
export { Connection, Listener, Transport };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Listener, r as Transport, t as Connection } from "../transport-
|
|
1
|
+
import { n as Listener, r as Transport, t as Connection } from "../transport-Dy4h2eNY.mjs";
|
|
2
2
|
export { Connection, Listener, Transport };
|
|
@@ -102,7 +102,11 @@ declare const manageCommandParamsSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodUni
|
|
|
102
102
|
"1": z.ZodOptional<z.ZodNumber>;
|
|
103
103
|
"4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
104
104
|
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>>;
|
|
105
|
-
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.
|
|
105
|
+
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
106
|
+
verb: z.ZodLiteral<"room.rekey">;
|
|
107
|
+
"key-epoch": z.ZodNumber;
|
|
108
|
+
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
109
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
106
110
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
107
111
|
"negotiation-id": z.ZodNumber;
|
|
108
112
|
sdp: z.ZodString;
|
|
@@ -362,7 +366,11 @@ declare const frameVariantSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodLazy<z.Zod
|
|
|
362
366
|
"1": z.ZodOptional<z.ZodNumber>;
|
|
363
367
|
"4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
364
368
|
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>>;
|
|
365
|
-
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.
|
|
369
|
+
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
370
|
+
verb: z.ZodLiteral<"room.rekey">;
|
|
371
|
+
"key-epoch": z.ZodNumber;
|
|
372
|
+
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
373
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
366
374
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
367
375
|
"negotiation-id": z.ZodNumber;
|
|
368
376
|
sdp: z.ZodString;
|
|
@@ -589,7 +597,11 @@ declare const frameSchema: z.ZodLazy<z.ZodLazy<z.ZodLazy<z.ZodUnion<readonly [z.
|
|
|
589
597
|
"1": z.ZodOptional<z.ZodNumber>;
|
|
590
598
|
"4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
591
599
|
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>>;
|
|
592
|
-
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.
|
|
600
|
+
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
601
|
+
verb: z.ZodLiteral<"room.rekey">;
|
|
602
|
+
"key-epoch": z.ZodNumber;
|
|
603
|
+
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
604
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
593
605
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
594
606
|
"negotiation-id": z.ZodNumber;
|
|
595
607
|
sdp: z.ZodString;
|
|
@@ -787,7 +799,11 @@ declare const manageCommandSchema: z.ZodLazy<z.ZodObject<{
|
|
|
787
799
|
"1": z.ZodOptional<z.ZodNumber>;
|
|
788
800
|
"4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
789
801
|
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>>;
|
|
790
|
-
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.
|
|
802
|
+
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
803
|
+
verb: z.ZodLiteral<"room.rekey">;
|
|
804
|
+
"key-epoch": z.ZodNumber;
|
|
805
|
+
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
806
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
791
807
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
792
808
|
"negotiation-id": z.ZodNumber;
|
|
793
809
|
sdp: z.ZodString;
|
|
@@ -896,7 +912,11 @@ declare const manageRequestFrameSchema: z.ZodLazy<z.ZodObject<{
|
|
|
896
912
|
"1": z.ZodOptional<z.ZodNumber>;
|
|
897
913
|
"4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
898
914
|
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>>;
|
|
899
|
-
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.
|
|
915
|
+
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
916
|
+
verb: z.ZodLiteral<"room.rekey">;
|
|
917
|
+
"key-epoch": z.ZodNumber;
|
|
918
|
+
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
919
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
900
920
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
901
921
|
"negotiation-id": z.ZodNumber;
|
|
902
922
|
sdp: z.ZodString;
|
|
@@ -1024,6 +1044,11 @@ declare const roomInviteSchema: z.ZodLazy<z.ZodObject<{
|
|
|
1024
1044
|
"4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
1025
1045
|
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>>;
|
|
1026
1046
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1047
|
+
declare const roomRekeySchema: z.ZodLazy<z.ZodObject<{
|
|
1048
|
+
verb: z.ZodLiteral<"room.rekey">;
|
|
1049
|
+
"key-epoch": z.ZodNumber;
|
|
1050
|
+
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
1051
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1027
1052
|
declare const roomMemberSchema: z.ZodLazy<z.ZodObject<{
|
|
1028
1053
|
device: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
|
|
1029
1054
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
@@ -1067,6 +1092,7 @@ declare const roomNoticeClaimsSchema: z.ZodLazy<z.ZodObject<{
|
|
|
1067
1092
|
relation: z.ZodString;
|
|
1068
1093
|
}, z.core.$strip>>>>>;
|
|
1069
1094
|
"valid-until": z.ZodOptional<z.ZodNumber>;
|
|
1095
|
+
"key-epoch": z.ZodOptional<z.ZodNumber>;
|
|
1070
1096
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1071
1097
|
declare const streamSessionSchema: z.ZodLazy<z.ZodNumber>;
|
|
1072
1098
|
declare const streamDataFrameSchema: z.ZodLazy<z.ZodObject<{
|
|
@@ -1279,6 +1305,7 @@ type RoomMembers = z.infer<typeof roomMembersSchema>;
|
|
|
1279
1305
|
type MessageRef = z.infer<typeof messageRefSchema>;
|
|
1280
1306
|
type RoomJoin = z.infer<typeof roomJoinSchema>;
|
|
1281
1307
|
type RoomInvite = z.infer<typeof roomInviteSchema>;
|
|
1308
|
+
type RoomRekey = z.infer<typeof roomRekeySchema>;
|
|
1282
1309
|
type RoomMember = z.infer<typeof roomMemberSchema>;
|
|
1283
1310
|
type RoomJoinOk = z.infer<typeof roomJoinOkSchema>;
|
|
1284
1311
|
type RoomMembersOk = z.infer<typeof roomMembersOkSchema>;
|
|
@@ -1319,4 +1346,4 @@ type WebrtcAnswer = z.infer<typeof webrtcAnswerSchema>;
|
|
|
1319
1346
|
type WebrtcIceCandidate = z.infer<typeof webrtcIceCandidateSchema>;
|
|
1320
1347
|
type IceCandidateInit = z.infer<typeof iceCandidateInitSchema>;
|
|
1321
1348
|
//#endregion
|
|
1322
|
-
export { PeerIdentity as $,
|
|
1349
|
+
export { PeerIdentity as $, relayDataFrameSchema as $n, capabilityScopeSchema as $t, DomainId as A, manageErrorSchema as An, RoomSend as At, IdentityKey as B, peerIdentitySchema as Bn, WebrtcOffer as Bt, CoseTokenHeaders as C, handleClaimsSchema as Cn, tokenClaimsSchema as Cr, RoomMembers as Ct, DeviceId as D, identityKeySchema as Dn, webrtcOfferSchema as Dr, RoomPath as Dt, DataRequestFrame as E, iceCandidateInitSchema as En, webrtcIceCandidateSchema as Er, RoomNoticeClaims as Et, GossipFrame as F, namespacedCapabilitySchema as Fn, SyncPunchFrame as Ft, ManageRequestFrame as G, procSignalSchema as Gn, bulkEndFrameSchema as Gt, ManageCommandParams as H, privateUseCapabilitySchema as Hn, bulkAckFrameSchema as Ht, HandleClaims as I, namespacedDomainIdSchema as In, TokenClaims as It, NamespacedCapability as J, ptyKillSchema as Jn, candidateKindSchema as Jt, ManageResponseFrame as K, procSpawnSchema as Kn, bulkOpenSchema as Kt, HandleRecord as L, observedAddressFrameSchema as Ln, TransferId as Lt, ExecSessionInfo as M, manageRequestFrameSchema as Mn, StreamDataFrame as Mt, Frame as N, manageResponseFrameSchema as Nn, StreamEndFrame as Nt, DeviceIdHex as O, manageCommandParamsSchema as On, wireCandidateSchema as Or, RoomRead as Ot, FrameVariant as P, messageRefSchema as Pn, StreamSession as Pt, PeerAdvert as Q, relayConnectFrameSchema as Qn, capabilityRequestSchema as Qt, HandshakeFrame as R, ownerNamedRoomPathSchema as Rn, WebrtcAnswer as Rt, CoseSign1 as S, gossipFrameSchema as Sn, syncPunchFrameSchema as Sr, RoomMember as St, DataHaveFrame as T, handshakeFrameSchema as Tn, webrtcAnswerSchema as Tr, RoomNotice as Tt, ManageError as U, privateUseDomainIdSchema as Un, bulkCancelSchema as Ut, ManageCommand as V, pingFrameSchema as Vn, WireCandidate as Vt, ManageOk as W, procKillSchema as Wn, bulkDataFrameSchema as Wt, ObservedAddressFrame as X, ptySpawnSchema as Xn, capabilityGrantOkSchema as Xt, NamespacedDomainId as Y, ptyResizeSchema as Yn, candidatesFrameSchema as Yt, OwnerNamedRoomPath as Z, ptyWriteSchema as Zn, capabilityGrantSchema as Zt, CoreCapability as _, domainIdSchema as _n, roomSendSchema as _r, RevocationEntry as _t, BulkOpen as a, coreDomainNameSchema as an, roomInviteSchema as ar, ProcSpawn as at, CoseHeaderKid as b, frameSchema as bn, streamEndFrameSchema as br, RoomJoinOk as bt, CandidatesFrame as c, coseHeaderLabelSchema as cn, roomLeaveSchema as cr, PtyResize as ct, CapabilityRequest as d, dataEntriesFrameSchema as dn, roomMembersSchema as dr, RelayConnectFrame as dt, capabilityTokenSchema as en, relayInboundFrameSchema as er, PingFrame as et, CapabilityScope as f, dataHaveFrameSchema as fn, roomNoticeClaimsSchema as fr, RelayDataFrame as ft, CoordinatorFrame as g, dmRoomPathSchema as gn, roomRekeySchema as gr, RevocationClaims as gt, CloseFrame as h, deviceIdSchema as hn, roomReadSchema as hr, RevocationAnnounceFrame as ht, BulkEndFrame as i, coreCapabilitySchema as in, revocationEntrySchema as ir, ProcSignal as it, ExecList as j, manageOkSchema as jn, StreamAckFrame as jt, DmRoomPath as k, manageCommandSchema as kn, RoomRekey as kt, CapabilityGrant as l, coseSign1Schema as ln, roomMemberSchema as lr, PtySpawn as lt, CapabilityVerb as m, deviceIdHexSchema as mn, roomPathSchema as mr, RelayOfferFrame as mt, BulkCancel as n, closeFrameSchema as nn, revocationAnnounceFrameSchema as nr, PrivateUseDomainId as nt, BulkResume as o, coseHeaderAlgSchema as on, roomJoinOkSchema as or, ProtocolVersion as ot, CapabilityToken as p, dataRequestFrameSchema as pn, roomNoticeSchema as pr, RelayInboundFrame as pt, MessageRef as q, protocolVersionSchema as qn, bulkResumeSchema as qt, BulkDataFrame as r, coordinatorFrameSchema as rn, revocationClaimsSchema as rr, ProcKill as rt, CandidateKind as s, coseHeaderKidSchema as sn, roomJoinSchema as sr, PtyKill as st, BulkAckFrame as t, capabilityVerbSchema as tn, relayOfferFrameSchema as tr, PrivateUseCapability as tt, CapabilityGrantOk as u, coseTokenHeadersSchema as un, roomMembersOkSchema as ur, PtyWrite as ut, CoreDomainName as v, execListSchema as vn, streamAckFrameSchema as vr, RoomInvite as vt, DataEntriesFrame as w, handleRecordSchema as wn, transferIdSchema as wr, RoomMembersOk as wt, CoseHeaderLabel as x, frameVariantSchema as xn, streamSessionSchema as xr, RoomLeave as xt, CoseHeaderAlg as y, execSessionInfoSchema as yn, streamDataFrameSchema as yr, RoomJoin as yt, IceCandidateInit as z, peerAdvertSchema as zn, WebrtcIceCandidate as zt };
|
|
@@ -102,7 +102,11 @@ declare const manageCommandParamsSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodUni
|
|
|
102
102
|
"1": z.ZodOptional<z.ZodNumber>;
|
|
103
103
|
"4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
104
104
|
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>>;
|
|
105
|
-
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.
|
|
105
|
+
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
106
|
+
verb: z.ZodLiteral<"room.rekey">;
|
|
107
|
+
"key-epoch": z.ZodNumber;
|
|
108
|
+
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
109
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
106
110
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
107
111
|
"negotiation-id": z.ZodNumber;
|
|
108
112
|
sdp: z.ZodString;
|
|
@@ -362,7 +366,11 @@ declare const frameVariantSchema: z.ZodLazy<z.ZodUnion<readonly [z.ZodLazy<z.Zod
|
|
|
362
366
|
"1": z.ZodOptional<z.ZodNumber>;
|
|
363
367
|
"4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
364
368
|
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>>;
|
|
365
|
-
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.
|
|
369
|
+
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
370
|
+
verb: z.ZodLiteral<"room.rekey">;
|
|
371
|
+
"key-epoch": z.ZodNumber;
|
|
372
|
+
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
373
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
366
374
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
367
375
|
"negotiation-id": z.ZodNumber;
|
|
368
376
|
sdp: z.ZodString;
|
|
@@ -589,7 +597,11 @@ declare const frameSchema: z.ZodLazy<z.ZodLazy<z.ZodLazy<z.ZodUnion<readonly [z.
|
|
|
589
597
|
"1": z.ZodOptional<z.ZodNumber>;
|
|
590
598
|
"4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
591
599
|
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>>;
|
|
592
|
-
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.
|
|
600
|
+
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
601
|
+
verb: z.ZodLiteral<"room.rekey">;
|
|
602
|
+
"key-epoch": z.ZodNumber;
|
|
603
|
+
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
604
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
593
605
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
594
606
|
"negotiation-id": z.ZodNumber;
|
|
595
607
|
sdp: z.ZodString;
|
|
@@ -787,7 +799,11 @@ declare const manageCommandSchema: z.ZodLazy<z.ZodObject<{
|
|
|
787
799
|
"1": z.ZodOptional<z.ZodNumber>;
|
|
788
800
|
"4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
789
801
|
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>>;
|
|
790
|
-
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.
|
|
802
|
+
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
803
|
+
verb: z.ZodLiteral<"room.rekey">;
|
|
804
|
+
"key-epoch": z.ZodNumber;
|
|
805
|
+
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
806
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
791
807
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
792
808
|
"negotiation-id": z.ZodNumber;
|
|
793
809
|
sdp: z.ZodString;
|
|
@@ -896,7 +912,11 @@ declare const manageRequestFrameSchema: z.ZodLazy<z.ZodObject<{
|
|
|
896
912
|
"1": z.ZodOptional<z.ZodNumber>;
|
|
897
913
|
"4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
898
914
|
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>>;
|
|
899
|
-
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.
|
|
915
|
+
}, z.core.$catchall<z.ZodUnknown>>>>]>, z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
916
|
+
verb: z.ZodLiteral<"room.rekey">;
|
|
917
|
+
"key-epoch": z.ZodNumber;
|
|
918
|
+
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
919
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodLazy<z.ZodLazy<z.ZodObject<{
|
|
900
920
|
verb: z.ZodLiteral<"webrtc.offer">;
|
|
901
921
|
"negotiation-id": z.ZodNumber;
|
|
902
922
|
sdp: z.ZodString;
|
|
@@ -1024,6 +1044,11 @@ declare const roomInviteSchema: z.ZodLazy<z.ZodObject<{
|
|
|
1024
1044
|
"4": z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
|
|
1025
1045
|
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodNull]>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>], null>>>>>;
|
|
1026
1046
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1047
|
+
declare const roomRekeySchema: z.ZodLazy<z.ZodObject<{
|
|
1048
|
+
verb: z.ZodLiteral<"room.rekey">;
|
|
1049
|
+
"key-epoch": z.ZodNumber;
|
|
1050
|
+
"wrapped-key": z.ZodUnion<readonly [z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>]>;
|
|
1051
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1027
1052
|
declare const roomMemberSchema: z.ZodLazy<z.ZodObject<{
|
|
1028
1053
|
device: z.ZodLazy<z.ZodLazy<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>>;
|
|
1029
1054
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
@@ -1067,6 +1092,7 @@ declare const roomNoticeClaimsSchema: z.ZodLazy<z.ZodObject<{
|
|
|
1067
1092
|
relation: z.ZodString;
|
|
1068
1093
|
}, z.core.$strip>>>>>;
|
|
1069
1094
|
"valid-until": z.ZodOptional<z.ZodNumber>;
|
|
1095
|
+
"key-epoch": z.ZodOptional<z.ZodNumber>;
|
|
1070
1096
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1071
1097
|
declare const streamSessionSchema: z.ZodLazy<z.ZodNumber>;
|
|
1072
1098
|
declare const streamDataFrameSchema: z.ZodLazy<z.ZodObject<{
|
|
@@ -1279,6 +1305,7 @@ type RoomMembers = z.infer<typeof roomMembersSchema>;
|
|
|
1279
1305
|
type MessageRef = z.infer<typeof messageRefSchema>;
|
|
1280
1306
|
type RoomJoin = z.infer<typeof roomJoinSchema>;
|
|
1281
1307
|
type RoomInvite = z.infer<typeof roomInviteSchema>;
|
|
1308
|
+
type RoomRekey = z.infer<typeof roomRekeySchema>;
|
|
1282
1309
|
type RoomMember = z.infer<typeof roomMemberSchema>;
|
|
1283
1310
|
type RoomJoinOk = z.infer<typeof roomJoinOkSchema>;
|
|
1284
1311
|
type RoomMembersOk = z.infer<typeof roomMembersOkSchema>;
|
|
@@ -1319,4 +1346,4 @@ type WebrtcAnswer = z.infer<typeof webrtcAnswerSchema>;
|
|
|
1319
1346
|
type WebrtcIceCandidate = z.infer<typeof webrtcIceCandidateSchema>;
|
|
1320
1347
|
type IceCandidateInit = z.infer<typeof iceCandidateInitSchema>;
|
|
1321
1348
|
//#endregion
|
|
1322
|
-
export { PeerIdentity as $,
|
|
1349
|
+
export { PeerIdentity as $, relayDataFrameSchema as $n, capabilityScopeSchema as $t, DomainId as A, manageErrorSchema as An, RoomSend as At, IdentityKey as B, peerIdentitySchema as Bn, WebrtcOffer as Bt, CoseTokenHeaders as C, handleClaimsSchema as Cn, tokenClaimsSchema as Cr, RoomMembers as Ct, DeviceId as D, identityKeySchema as Dn, webrtcOfferSchema as Dr, RoomPath as Dt, DataRequestFrame as E, iceCandidateInitSchema as En, webrtcIceCandidateSchema as Er, RoomNoticeClaims as Et, GossipFrame as F, namespacedCapabilitySchema as Fn, SyncPunchFrame as Ft, ManageRequestFrame as G, procSignalSchema as Gn, bulkEndFrameSchema as Gt, ManageCommandParams as H, privateUseCapabilitySchema as Hn, bulkAckFrameSchema as Ht, HandleClaims as I, namespacedDomainIdSchema as In, TokenClaims as It, NamespacedCapability as J, ptyKillSchema as Jn, candidateKindSchema as Jt, ManageResponseFrame as K, procSpawnSchema as Kn, bulkOpenSchema as Kt, HandleRecord as L, observedAddressFrameSchema as Ln, TransferId as Lt, ExecSessionInfo as M, manageRequestFrameSchema as Mn, StreamDataFrame as Mt, Frame as N, manageResponseFrameSchema as Nn, StreamEndFrame as Nt, DeviceIdHex as O, manageCommandParamsSchema as On, wireCandidateSchema as Or, RoomRead as Ot, FrameVariant as P, messageRefSchema as Pn, StreamSession as Pt, PeerAdvert as Q, relayConnectFrameSchema as Qn, capabilityRequestSchema as Qt, HandshakeFrame as R, ownerNamedRoomPathSchema as Rn, WebrtcAnswer as Rt, CoseSign1 as S, gossipFrameSchema as Sn, syncPunchFrameSchema as Sr, RoomMember as St, DataHaveFrame as T, handshakeFrameSchema as Tn, webrtcAnswerSchema as Tr, RoomNotice as Tt, ManageError as U, privateUseDomainIdSchema as Un, bulkCancelSchema as Ut, ManageCommand as V, pingFrameSchema as Vn, WireCandidate as Vt, ManageOk as W, procKillSchema as Wn, bulkDataFrameSchema as Wt, ObservedAddressFrame as X, ptySpawnSchema as Xn, capabilityGrantOkSchema as Xt, NamespacedDomainId as Y, ptyResizeSchema as Yn, candidatesFrameSchema as Yt, OwnerNamedRoomPath as Z, ptyWriteSchema as Zn, capabilityGrantSchema as Zt, CoreCapability as _, domainIdSchema as _n, roomSendSchema as _r, RevocationEntry as _t, BulkOpen as a, coreDomainNameSchema as an, roomInviteSchema as ar, ProcSpawn as at, CoseHeaderKid as b, frameSchema as bn, streamEndFrameSchema as br, RoomJoinOk as bt, CandidatesFrame as c, coseHeaderLabelSchema as cn, roomLeaveSchema as cr, PtyResize as ct, CapabilityRequest as d, dataEntriesFrameSchema as dn, roomMembersSchema as dr, RelayConnectFrame as dt, capabilityTokenSchema as en, relayInboundFrameSchema as er, PingFrame as et, CapabilityScope as f, dataHaveFrameSchema as fn, roomNoticeClaimsSchema as fr, RelayDataFrame as ft, CoordinatorFrame as g, dmRoomPathSchema as gn, roomRekeySchema as gr, RevocationClaims as gt, CloseFrame as h, deviceIdSchema as hn, roomReadSchema as hr, RevocationAnnounceFrame as ht, BulkEndFrame as i, coreCapabilitySchema as in, revocationEntrySchema as ir, ProcSignal as it, ExecList as j, manageOkSchema as jn, StreamAckFrame as jt, DmRoomPath as k, manageCommandSchema as kn, RoomRekey as kt, CapabilityGrant as l, coseSign1Schema as ln, roomMemberSchema as lr, PtySpawn as lt, CapabilityVerb as m, deviceIdHexSchema as mn, roomPathSchema as mr, RelayOfferFrame as mt, BulkCancel as n, closeFrameSchema as nn, revocationAnnounceFrameSchema as nr, PrivateUseDomainId as nt, BulkResume as o, coseHeaderAlgSchema as on, roomJoinOkSchema as or, ProtocolVersion as ot, CapabilityToken as p, dataRequestFrameSchema as pn, roomNoticeSchema as pr, RelayInboundFrame as pt, MessageRef as q, protocolVersionSchema as qn, bulkResumeSchema as qt, BulkDataFrame as r, coordinatorFrameSchema as rn, revocationClaimsSchema as rr, ProcKill as rt, CandidateKind as s, coseHeaderKidSchema as sn, roomJoinSchema as sr, PtyKill as st, BulkAckFrame as t, capabilityVerbSchema as tn, relayOfferFrameSchema as tr, PrivateUseCapability as tt, CapabilityGrantOk as u, coseTokenHeadersSchema as un, roomMembersOkSchema as ur, PtyWrite as ut, CoreDomainName as v, execListSchema as vn, streamAckFrameSchema as vr, RoomInvite as vt, DataEntriesFrame as w, handleRecordSchema as wn, transferIdSchema as wr, RoomMembersOk as wt, CoseHeaderLabel as x, frameVariantSchema as xn, streamSessionSchema as xr, RoomLeave as xt, CoseHeaderAlg as y, execSessionInfoSchema as yn, streamDataFrameSchema as yr, RoomJoin as yt, IceCandidateInit as z, peerAdvertSchema as zn, WebrtcIceCandidate as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DeviceId,
|
|
2
|
-
import { t as IdentityPort } from "./identity-
|
|
1
|
+
import { B as IdentityKey, D as DeviceId, It as TokenClaims, _t as RevocationEntry, gt as RevocationClaims, p as CapabilityToken } from "./protocol-gbXtNeOc.cjs";
|
|
2
|
+
import { t as IdentityPort } from "./identity-B4XBWkqg.cjs";
|
|
3
3
|
import { t as Clock } from "./clock-DiSx-WKM.cjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { JsonValue, PredicateNode, Resolution } from "trilean";
|
|
@@ -36,6 +36,8 @@ type TokenVerdict = {
|
|
|
36
36
|
claims: TokenClaims;
|
|
37
37
|
/** The device-id at the root of this token's delegation chain: its own issuer when it carries no parent, otherwise the root of its parent's chain. Lets a caller (e.g. core/room's obligation that a chain must terminate at the path's own owner, or the verifier itself for a DM) check the chain's root with one equality comparison instead of re-walking the parent chain a second time. */
|
|
38
38
|
rootIssuer: DeviceId;
|
|
39
|
+
/** The root ancestor's own self-certifying issuer-key -- already decoded during the walk (every TokenClaims carries its own issuer-key), just threaded up rather than re-derived. Lets a caller compute an ECDH shared secret against the chain's root (e.g. room.rekey's own sender, for a named room whose token chain terminates at the owner) without a separate, out-of-band way to learn that issuer's public key. */
|
|
40
|
+
rootIssuerKey: IdentityKey;
|
|
39
41
|
/** How many delegation hops this token is from its own root -- 0 for a root grant. Costs nothing extra once rootIssuer is being tracked, and makes the delegation bound observable for diagnostics. */
|
|
40
42
|
depth: number;
|
|
41
43
|
} | {
|
|
@@ -310,6 +310,7 @@ async function verifyTokenChain(token, options) {
|
|
|
310
310
|
ok: true,
|
|
311
311
|
claims,
|
|
312
312
|
rootIssuer: parentVerdict.rootIssuer,
|
|
313
|
+
rootIssuerKey: parentVerdict.rootIssuerKey,
|
|
313
314
|
depth: parentVerdict.depth + 1
|
|
314
315
|
};
|
|
315
316
|
}
|
|
@@ -317,6 +318,7 @@ async function verifyTokenChain(token, options) {
|
|
|
317
318
|
ok: true,
|
|
318
319
|
claims,
|
|
319
320
|
rootIssuer: claims.issuer,
|
|
321
|
+
rootIssuerKey: claims["issuer-key"],
|
|
320
322
|
depth: 0
|
|
321
323
|
};
|
|
322
324
|
}
|
|
@@ -310,6 +310,7 @@ async function verifyTokenChain(token, options) {
|
|
|
310
310
|
ok: true,
|
|
311
311
|
claims,
|
|
312
312
|
rootIssuer: parentVerdict.rootIssuer,
|
|
313
|
+
rootIssuerKey: parentVerdict.rootIssuerKey,
|
|
313
314
|
depth: parentVerdict.depth + 1
|
|
314
315
|
};
|
|
315
316
|
}
|
|
@@ -317,6 +318,7 @@ async function verifyTokenChain(token, options) {
|
|
|
317
318
|
ok: true,
|
|
318
319
|
claims,
|
|
319
320
|
rootIssuer: claims.issuer,
|
|
321
|
+
rootIssuerKey: claims["issuer-key"],
|
|
320
322
|
depth: 0
|
|
321
323
|
};
|
|
322
324
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DeviceId,
|
|
2
|
-
import { t as IdentityPort } from "./identity-
|
|
1
|
+
import { B as IdentityKey, D as DeviceId, It as TokenClaims, _t as RevocationEntry, gt as RevocationClaims, p as CapabilityToken } from "./protocol-gbXtNeOc.mjs";
|
|
2
|
+
import { t as IdentityPort } from "./identity-CIb9dGkJ.mjs";
|
|
3
3
|
import { t as Clock } from "./clock-DiSx-WKM.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { JsonValue, PredicateNode, Resolution } from "trilean";
|
|
@@ -36,6 +36,8 @@ type TokenVerdict = {
|
|
|
36
36
|
claims: TokenClaims;
|
|
37
37
|
/** The device-id at the root of this token's delegation chain: its own issuer when it carries no parent, otherwise the root of its parent's chain. Lets a caller (e.g. core/room's obligation that a chain must terminate at the path's own owner, or the verifier itself for a DM) check the chain's root with one equality comparison instead of re-walking the parent chain a second time. */
|
|
38
38
|
rootIssuer: DeviceId;
|
|
39
|
+
/** The root ancestor's own self-certifying issuer-key -- already decoded during the walk (every TokenClaims carries its own issuer-key), just threaded up rather than re-derived. Lets a caller compute an ECDH shared secret against the chain's root (e.g. room.rekey's own sender, for a named room whose token chain terminates at the owner) without a separate, out-of-band way to learn that issuer's public key. */
|
|
40
|
+
rootIssuerKey: IdentityKey;
|
|
39
41
|
/** How many delegation hops this token is from its own root -- 0 for a root grant. Costs nothing extra once rootIssuer is being tracked, and makes the delegation bound observable for diagnostics. */
|
|
40
42
|
depth: number;
|
|
41
43
|
} | {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeviceId, N as Frame } from "./protocol-
|
|
1
|
+
import { D as DeviceId, N as Frame } from "./protocol-gbXtNeOc.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 { D as DeviceId, N as Frame } from "./protocol-
|
|
1
|
+
import { D as DeviceId, N as Frame } from "./protocol-gbXtNeOc.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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wire-mesh-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"packageManager": "pnpm@12.4.1+sha512.2e81e399d73fe8390dab25e06aa788ab7a5908248d2f5a370f82b481147a6a7a367bf8048f9a6fdb6460f21a66f0542dedb8b94ca2c8723596741920b1656d4c",
|
|
6
6
|
"repository": {
|
|
@@ -114,6 +114,10 @@
|
|
|
114
114
|
"import": "./dist/domain/grant-candidates.mjs",
|
|
115
115
|
"require": "./dist/domain/grant-candidates.cjs"
|
|
116
116
|
},
|
|
117
|
+
"./domain/group-key": {
|
|
118
|
+
"import": "./dist/domain/group-key.mjs",
|
|
119
|
+
"require": "./dist/domain/group-key.cjs"
|
|
120
|
+
},
|
|
117
121
|
"./domain/handshake": {
|
|
118
122
|
"import": "./dist/domain/handshake.mjs",
|
|
119
123
|
"require": "./dist/domain/handshake.cjs"
|
|
@@ -142,6 +146,10 @@
|
|
|
142
146
|
"import": "./dist/domain/room-path.mjs",
|
|
143
147
|
"require": "./dist/domain/room-path.cjs"
|
|
144
148
|
},
|
|
149
|
+
"./domain/room-rekey": {
|
|
150
|
+
"import": "./dist/domain/room-rekey.mjs",
|
|
151
|
+
"require": "./dist/domain/room-rekey.cjs"
|
|
152
|
+
},
|
|
145
153
|
"./domain/room-token-verification": {
|
|
146
154
|
"import": "./dist/domain/room-token-verification.mjs",
|
|
147
155
|
"require": "./dist/domain/room-token-verification.cjs"
|