wire-mesh-core 1.24.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/frame-codec.d.cts +1 -1
- package/dist/adapters/frame-codec.d.mts +1 -1
- package/dist/adapters/node-identity.d.cts +2 -2
- package/dist/adapters/node-identity.d.mts +2 -2
- package/dist/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.cjs +400 -0
- package/dist/domain/bulk.d.cts +97 -0
- package/dist/domain/bulk.d.mts +97 -0
- package/dist/domain/bulk.mjs +393 -0
- package/dist/domain/capability-grant.d.cts +3 -3
- package/dist/domain/capability-grant.d.mts +3 -3
- package/dist/domain/capability-request.d.cts +2 -2
- package/dist/domain/capability-request.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/handshake.d.cts +1 -1
- package/dist/domain/handshake.d.mts +1 -1
- package/dist/domain/mesh-session.cjs +60 -0
- package/dist/domain/mesh-session.d.cts +14 -3
- package/dist/domain/mesh-session.d.mts +14 -3
- package/dist/domain/mesh-session.mjs +59 -1
- 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-token-verification.cjs +1 -1
- package/dist/domain/room-token-verification.d.cts +2 -2
- package/dist/domain/room-token-verification.d.mts +2 -2
- package/dist/domain/room-token-verification.mjs +1 -1
- package/dist/domain/room.cjs +108 -0
- package/dist/domain/room.d.cts +36 -0
- package/dist/domain/room.d.mts +36 -0
- package/dist/domain/room.mjs +106 -0
- package/dist/domain/tokens.d.cts +1 -1
- package/dist/domain/tokens.d.mts +1 -1
- package/dist/generated/protocol.cjs +78 -28
- package/dist/generated/protocol.d.cts +2 -2
- package/dist/generated/protocol.d.mts +2 -2
- package/dist/generated/protocol.mjs +72 -29
- package/dist/{identity-5LJ_B8go.d.mts → identity-C5N86BPz.d.mts} +1 -1
- package/dist/{identity-bg6IVGsH.d.cts → identity-DJ06jn4k.d.cts} +1 -1
- package/dist/ports/identity.d.cts +1 -1
- package/dist/ports/identity.d.mts +1 -1
- package/dist/ports/transport.d.cts +1 -1
- package/dist/ports/transport.d.mts +1 -1
- package/dist/{protocol-l9RMR3s5.d.cts → protocol-sW8d6Og-.d.cts} +177 -43
- package/dist/{protocol-l9RMR3s5.d.mts → protocol-sW8d6Og-.d.mts} +177 -43
- package/dist/{tokens-CBI54oF-.d.mts → tokens-CpLDI5Fo.d.mts} +2 -2
- package/dist/{tokens-H_mV_JCC.d.cts → tokens-DfVfE00W.d.cts} +2 -2
- package/dist/{transport-Baipikk7.d.cts → transport-B5E896PN.d.mts} +1 -1
- package/dist/{transport-DWbvUc3L.d.mts → transport-DxZ4JWZc.d.cts} +1 -1
- package/package.json +9 -1
|
@@ -1,33 +1,29 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/generated/protocol.ts
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"handle": zod.z.string(),
|
|
22
|
-
"device-id": zod.z.lazy(() => deviceIdSchema),
|
|
23
|
-
"identity-key": zod.z.lazy(() => identityKeySchema),
|
|
24
|
-
"candidates": zod.z.array(zod.z.lazy(() => wireCandidateSchema)).optional(),
|
|
25
|
-
"mailboxes": zod.z.array(zod.z.lazy(() => deviceIdSchema)).optional(),
|
|
26
|
-
"issued": zod.z.number().int().nonnegative(),
|
|
27
|
-
"expires": zod.z.number().int().nonnegative()
|
|
28
|
-
}));
|
|
29
|
-
const handleRecordSchema = zod.z.lazy(() => zod.z.lazy(() => coseSign1Schema));
|
|
4
|
+
const transferIdSchema = zod.z.lazy(() => zod.z.instanceof(Uint8Array).refine((v) => v.length === 16, { message: "expected exactly 16 bytes" }));
|
|
5
|
+
const bulkOpenSchema = zod.z.lazy(() => zod.z.object({
|
|
6
|
+
"verb": zod.z.literal("bulk.open"),
|
|
7
|
+
"transfer-id": zod.z.lazy(() => transferIdSchema),
|
|
8
|
+
"total-size": zod.z.number().int().nonnegative().optional(),
|
|
9
|
+
"content-type": zod.z.string().optional()
|
|
10
|
+
}).catchall(zod.z.unknown()));
|
|
11
|
+
const bulkResumeSchema = zod.z.lazy(() => zod.z.object({
|
|
12
|
+
"verb": zod.z.literal("bulk.resume"),
|
|
13
|
+
"transfer-id": zod.z.lazy(() => transferIdSchema),
|
|
14
|
+
"ack-seq": zod.z.number().int().nonnegative()
|
|
15
|
+
}).catchall(zod.z.unknown()));
|
|
16
|
+
const bulkCancelSchema = zod.z.lazy(() => zod.z.object({
|
|
17
|
+
"verb": zod.z.literal("bulk.cancel"),
|
|
18
|
+
"transfer-id": zod.z.lazy(() => transferIdSchema),
|
|
19
|
+
"reason": zod.z.string().optional()
|
|
20
|
+
}).catchall(zod.z.unknown()));
|
|
30
21
|
const manageCommandParamsSchema = zod.z.lazy(() => zod.z.union([
|
|
22
|
+
zod.z.union([
|
|
23
|
+
zod.z.lazy(() => bulkOpenSchema),
|
|
24
|
+
zod.z.lazy(() => bulkResumeSchema),
|
|
25
|
+
zod.z.lazy(() => bulkCancelSchema)
|
|
26
|
+
]),
|
|
31
27
|
zod.z.union([
|
|
32
28
|
zod.z.lazy(() => ptySpawnSchema),
|
|
33
29
|
zod.z.lazy(() => ptyWriteSchema),
|
|
@@ -54,6 +50,49 @@ const manageCommandParamsSchema = zod.z.lazy(() => zod.z.union([
|
|
|
54
50
|
zod.z.lazy(() => webrtcIceCandidateSchema)
|
|
55
51
|
])
|
|
56
52
|
]));
|
|
53
|
+
const bulkDataFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
54
|
+
"type": zod.z.literal("bulk-data"),
|
|
55
|
+
"transfer-id": zod.z.lazy(() => transferIdSchema),
|
|
56
|
+
"seq": zod.z.number().int().nonnegative(),
|
|
57
|
+
"bytes": zod.z.instanceof(Uint8Array)
|
|
58
|
+
}));
|
|
59
|
+
const bulkAckFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
60
|
+
"type": zod.z.literal("bulk-ack"),
|
|
61
|
+
"transfer-id": zod.z.lazy(() => transferIdSchema),
|
|
62
|
+
"ack-seq": zod.z.number().int().nonnegative(),
|
|
63
|
+
"window": zod.z.number().int().nonnegative()
|
|
64
|
+
}));
|
|
65
|
+
const bulkEndFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
66
|
+
"type": zod.z.literal("bulk-end"),
|
|
67
|
+
"transfer-id": zod.z.lazy(() => transferIdSchema),
|
|
68
|
+
"digest": zod.z.instanceof(Uint8Array)
|
|
69
|
+
}));
|
|
70
|
+
const dataHaveFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
71
|
+
"type": zod.z.literal("data-have"),
|
|
72
|
+
"peer": zod.z.lazy(() => deviceIdSchema),
|
|
73
|
+
"head-seq": zod.z.number().int().nonnegative()
|
|
74
|
+
}));
|
|
75
|
+
const dataRequestFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
76
|
+
"type": zod.z.literal("data-request"),
|
|
77
|
+
"peer": zod.z.lazy(() => deviceIdSchema),
|
|
78
|
+
"from-seq": zod.z.number().int().nonnegative()
|
|
79
|
+
}));
|
|
80
|
+
const dataEntriesFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
81
|
+
"type": zod.z.literal("data-entries"),
|
|
82
|
+
"peer": zod.z.lazy(() => deviceIdSchema),
|
|
83
|
+
"from-seq": zod.z.number().int().nonnegative(),
|
|
84
|
+
"entries": zod.z.array(zod.z.instanceof(Uint8Array))
|
|
85
|
+
}));
|
|
86
|
+
const handleClaimsSchema = zod.z.lazy(() => zod.z.object({
|
|
87
|
+
"handle": zod.z.string(),
|
|
88
|
+
"device-id": zod.z.lazy(() => deviceIdSchema),
|
|
89
|
+
"identity-key": zod.z.lazy(() => identityKeySchema),
|
|
90
|
+
"candidates": zod.z.array(zod.z.lazy(() => wireCandidateSchema)).optional(),
|
|
91
|
+
"mailboxes": zod.z.array(zod.z.lazy(() => deviceIdSchema)).optional(),
|
|
92
|
+
"issued": zod.z.number().int().nonnegative(),
|
|
93
|
+
"expires": zod.z.number().int().nonnegative()
|
|
94
|
+
}));
|
|
95
|
+
const handleRecordSchema = zod.z.lazy(() => zod.z.lazy(() => coseSign1Schema));
|
|
57
96
|
const ptySpawnSchema = zod.z.lazy(() => zod.z.object({
|
|
58
97
|
"verb": zod.z.literal("pty.spawn"),
|
|
59
98
|
"shell": zod.z.string().optional(),
|
|
@@ -122,7 +161,10 @@ const frameVariantSchema = zod.z.lazy(() => zod.z.union([
|
|
|
122
161
|
zod.z.lazy(() => streamEndFrameSchema),
|
|
123
162
|
zod.z.lazy(() => dataHaveFrameSchema),
|
|
124
163
|
zod.z.lazy(() => dataRequestFrameSchema),
|
|
125
|
-
zod.z.lazy(() => dataEntriesFrameSchema)
|
|
164
|
+
zod.z.lazy(() => dataEntriesFrameSchema),
|
|
165
|
+
zod.z.lazy(() => bulkDataFrameSchema),
|
|
166
|
+
zod.z.lazy(() => bulkAckFrameSchema),
|
|
167
|
+
zod.z.lazy(() => bulkEndFrameSchema)
|
|
126
168
|
]));
|
|
127
169
|
const frameSchema = zod.z.lazy(() => zod.z.lazy(() => frameVariantSchema));
|
|
128
170
|
const protocolVersionSchema = zod.z.lazy(() => zod.z.number().int().nonnegative());
|
|
@@ -137,7 +179,8 @@ const coreDomainNameSchema = zod.z.lazy(() => zod.z.union([
|
|
|
137
179
|
zod.z.literal("core/data"),
|
|
138
180
|
zod.z.literal("core/federation"),
|
|
139
181
|
zod.z.literal("core/webrtc"),
|
|
140
|
-
zod.z.literal("core/room")
|
|
182
|
+
zod.z.literal("core/room"),
|
|
183
|
+
zod.z.literal("core/bulk")
|
|
141
184
|
]));
|
|
142
185
|
const namespacedDomainIdSchema = zod.z.lazy(() => zod.z.string().regex(/* @__PURE__ */ new RegExp("[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+/[A-Za-z0-9_.-]+")));
|
|
143
186
|
const privateUseDomainIdSchema = zod.z.lazy(() => zod.z.string().regex(/* @__PURE__ */ new RegExp("x-[A-Za-z0-9_.-]+")));
|
|
@@ -399,6 +442,12 @@ const iceCandidateInitSchema = zod.z.lazy(() => zod.z.object({
|
|
|
399
442
|
"username-fragment": zod.z.string().optional()
|
|
400
443
|
}));
|
|
401
444
|
//#endregion
|
|
445
|
+
exports.bulkAckFrameSchema = bulkAckFrameSchema;
|
|
446
|
+
exports.bulkCancelSchema = bulkCancelSchema;
|
|
447
|
+
exports.bulkDataFrameSchema = bulkDataFrameSchema;
|
|
448
|
+
exports.bulkEndFrameSchema = bulkEndFrameSchema;
|
|
449
|
+
exports.bulkOpenSchema = bulkOpenSchema;
|
|
450
|
+
exports.bulkResumeSchema = bulkResumeSchema;
|
|
402
451
|
exports.candidateKindSchema = candidateKindSchema;
|
|
403
452
|
exports.candidatesFrameSchema = candidatesFrameSchema;
|
|
404
453
|
exports.capabilityGrantOkSchema = capabilityGrantOkSchema;
|
|
@@ -482,6 +531,7 @@ exports.streamEndFrameSchema = streamEndFrameSchema;
|
|
|
482
531
|
exports.streamSessionSchema = streamSessionSchema;
|
|
483
532
|
exports.syncPunchFrameSchema = syncPunchFrameSchema;
|
|
484
533
|
exports.tokenClaimsSchema = tokenClaimsSchema;
|
|
534
|
+
exports.transferIdSchema = transferIdSchema;
|
|
485
535
|
exports.webrtcAnswerSchema = webrtcAnswerSchema;
|
|
486
536
|
exports.webrtcIceCandidateSchema = webrtcIceCandidateSchema;
|
|
487
537
|
exports.webrtcOfferSchema = webrtcOfferSchema;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { 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, WebrtcAnswer, WebrtcIceCandidate, WebrtcOffer, WireCandidate, 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, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|
|
1
|
+
import { $ as PeerIdentity, $n as relayInboundFrameSchema, $t as capabilityTokenSchema, A as DomainId, An as manageOkSchema, At as StreamAckFrame, B as IdentityKey, Bn as pingFrameSchema, Bt as WireCandidate, C as CoseTokenHeaders, Cn as handleRecordSchema, Cr as webrtcAnswerSchema, Ct as RoomMembers, D as DeviceId, Dn as manageCommandParamsSchema, Dt as RoomPath, E as DataRequestFrame, En as identityKeySchema, Er as wireCandidateSchema, Et as RoomNoticeClaims, F as GossipFrame, Fn as namespacedDomainIdSchema, Ft as TokenClaims, G as ManageRequestFrame, Gn as procSpawnSchema, Gt as bulkOpenSchema, H as ManageCommandParams, Hn as privateUseDomainIdSchema, Ht as bulkCancelSchema, I as HandleClaims, In as observedAddressFrameSchema, It as TransferId, J as NamespacedCapability, Jn as ptyResizeSchema, Jt as candidatesFrameSchema, K as ManageResponseFrame, Kn as protocolVersionSchema, Kt as bulkResumeSchema, L as HandleRecord, Ln as ownerNamedRoomPathSchema, Lt as WebrtcAnswer, M as ExecSessionInfo, Mn as manageResponseFrameSchema, Mt as StreamEndFrame, N as Frame, Nn as messageRefSchema, Nt as StreamSession, O as DeviceIdHex, On as manageCommandSchema, Ot as RoomRead, P as FrameVariant, Pn as namespacedCapabilitySchema, Pt as SyncPunchFrame, Q as PeerAdvert, Qn as relayDataFrameSchema, Qt as capabilityScopeSchema, R as HandshakeFrame, Rn as peerAdvertSchema, Rt as WebrtcIceCandidate, S as CoseSign1, Sn as handleClaimsSchema, Sr as transferIdSchema, St as RoomMember, T as DataHaveFrame, Tn as iceCandidateInitSchema, Tr as webrtcOfferSchema, Tt as RoomNotice, U as ManageError, Un as procKillSchema, Ut as bulkDataFrameSchema, V as ManageCommand, Vn as privateUseCapabilitySchema, Vt as bulkAckFrameSchema, W as ManageOk, Wn as procSignalSchema, Wt as bulkEndFrameSchema, X as ObservedAddressFrame, Xn as ptyWriteSchema, Xt as capabilityGrantSchema, Y as NamespacedDomainId, Yn as ptySpawnSchema, Yt as capabilityGrantOkSchema, Z as OwnerNamedRoomPath, Zn as relayConnectFrameSchema, Zt as capabilityRequestSchema, _ as CoreCapability, _n as execListSchema, _r as streamDataFrameSchema, _t as RevocationEntry, a as BulkOpen, an as coseHeaderAlgSchema, ar as roomJoinOkSchema, at as ProcSpawn, b as CoseHeaderKid, bn as frameVariantSchema, br as syncPunchFrameSchema, bt as RoomJoinOk, c as CandidatesFrame, cn as coseSign1Schema, cr as roomMemberSchema, ct as PtyResize, d as CapabilityRequest, dn as dataHaveFrameSchema, dr as roomNoticeClaimsSchema, dt as RelayConnectFrame, en as capabilityVerbSchema, er as relayOfferFrameSchema, et as PingFrame, f as CapabilityScope, fn as dataRequestFrameSchema, fr as roomNoticeSchema, ft as RelayDataFrame, g as CoordinatorFrame, gn as domainIdSchema, gr as streamAckFrameSchema, gt as RevocationClaims, h as CloseFrame, hn as dmRoomPathSchema, hr as roomSendSchema, ht as RevocationAnnounceFrame, i as BulkEndFrame, in as coreDomainNameSchema, ir as roomInviteSchema, it as ProcSignal, j as ExecList, jn as manageRequestFrameSchema, jt as StreamDataFrame, k as DmRoomPath, kn as manageErrorSchema, kt as RoomSend, l as CapabilityGrant, ln as coseTokenHeadersSchema, lr as roomMembersOkSchema, lt as PtySpawn, m as CapabilityVerb, mn as deviceIdSchema, mr as roomReadSchema, mt as RelayOfferFrame, n as BulkCancel, nn as coordinatorFrameSchema, nr as revocationClaimsSchema, nt as PrivateUseDomainId, o as BulkResume, on as coseHeaderKidSchema, or as roomJoinSchema, ot as ProtocolVersion, p as CapabilityToken, pn as deviceIdHexSchema, pr as roomPathSchema, pt as RelayInboundFrame, q as MessageRef, qn as ptyKillSchema, qt as candidateKindSchema, r as BulkDataFrame, rn as coreCapabilitySchema, rr as revocationEntrySchema, rt as ProcKill, s as CandidateKind, sn as coseHeaderLabelSchema, sr as roomLeaveSchema, st as PtyKill, t as BulkAckFrame, tn as closeFrameSchema, tr as revocationAnnounceFrameSchema, tt as PrivateUseCapability, u as CapabilityGrantOk, un as dataEntriesFrameSchema, ur as roomMembersSchema, ut as PtyWrite, v as CoreDomainName, vn as execSessionInfoSchema, vr as streamEndFrameSchema, vt as RoomInvite, w as DataEntriesFrame, wn as handshakeFrameSchema, wr as webrtcIceCandidateSchema, wt as RoomMembersOk, x as CoseHeaderLabel, xn as gossipFrameSchema, xr as tokenClaimsSchema, xt as RoomLeave, y as CoseHeaderAlg, yn as frameSchema, yr as streamSessionSchema, yt as RoomJoin, z as IceCandidateInit, zn as peerIdentitySchema, zt as WebrtcOffer } from "../protocol-sW8d6Og-.cjs";
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { 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, WebrtcAnswer, WebrtcIceCandidate, WebrtcOffer, WireCandidate, 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, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|
|
1
|
+
import { $ as PeerIdentity, $n as relayInboundFrameSchema, $t as capabilityTokenSchema, A as DomainId, An as manageOkSchema, At as StreamAckFrame, B as IdentityKey, Bn as pingFrameSchema, Bt as WireCandidate, C as CoseTokenHeaders, Cn as handleRecordSchema, Cr as webrtcAnswerSchema, Ct as RoomMembers, D as DeviceId, Dn as manageCommandParamsSchema, Dt as RoomPath, E as DataRequestFrame, En as identityKeySchema, Er as wireCandidateSchema, Et as RoomNoticeClaims, F as GossipFrame, Fn as namespacedDomainIdSchema, Ft as TokenClaims, G as ManageRequestFrame, Gn as procSpawnSchema, Gt as bulkOpenSchema, H as ManageCommandParams, Hn as privateUseDomainIdSchema, Ht as bulkCancelSchema, I as HandleClaims, In as observedAddressFrameSchema, It as TransferId, J as NamespacedCapability, Jn as ptyResizeSchema, Jt as candidatesFrameSchema, K as ManageResponseFrame, Kn as protocolVersionSchema, Kt as bulkResumeSchema, L as HandleRecord, Ln as ownerNamedRoomPathSchema, Lt as WebrtcAnswer, M as ExecSessionInfo, Mn as manageResponseFrameSchema, Mt as StreamEndFrame, N as Frame, Nn as messageRefSchema, Nt as StreamSession, O as DeviceIdHex, On as manageCommandSchema, Ot as RoomRead, P as FrameVariant, Pn as namespacedCapabilitySchema, Pt as SyncPunchFrame, Q as PeerAdvert, Qn as relayDataFrameSchema, Qt as capabilityScopeSchema, R as HandshakeFrame, Rn as peerAdvertSchema, Rt as WebrtcIceCandidate, S as CoseSign1, Sn as handleClaimsSchema, Sr as transferIdSchema, St as RoomMember, T as DataHaveFrame, Tn as iceCandidateInitSchema, Tr as webrtcOfferSchema, Tt as RoomNotice, U as ManageError, Un as procKillSchema, Ut as bulkDataFrameSchema, V as ManageCommand, Vn as privateUseCapabilitySchema, Vt as bulkAckFrameSchema, W as ManageOk, Wn as procSignalSchema, Wt as bulkEndFrameSchema, X as ObservedAddressFrame, Xn as ptyWriteSchema, Xt as capabilityGrantSchema, Y as NamespacedDomainId, Yn as ptySpawnSchema, Yt as capabilityGrantOkSchema, Z as OwnerNamedRoomPath, Zn as relayConnectFrameSchema, Zt as capabilityRequestSchema, _ as CoreCapability, _n as execListSchema, _r as streamDataFrameSchema, _t as RevocationEntry, a as BulkOpen, an as coseHeaderAlgSchema, ar as roomJoinOkSchema, at as ProcSpawn, b as CoseHeaderKid, bn as frameVariantSchema, br as syncPunchFrameSchema, bt as RoomJoinOk, c as CandidatesFrame, cn as coseSign1Schema, cr as roomMemberSchema, ct as PtyResize, d as CapabilityRequest, dn as dataHaveFrameSchema, dr as roomNoticeClaimsSchema, dt as RelayConnectFrame, en as capabilityVerbSchema, er as relayOfferFrameSchema, et as PingFrame, f as CapabilityScope, fn as dataRequestFrameSchema, fr as roomNoticeSchema, ft as RelayDataFrame, g as CoordinatorFrame, gn as domainIdSchema, gr as streamAckFrameSchema, gt as RevocationClaims, h as CloseFrame, hn as dmRoomPathSchema, hr as roomSendSchema, ht as RevocationAnnounceFrame, i as BulkEndFrame, in as coreDomainNameSchema, ir as roomInviteSchema, it as ProcSignal, j as ExecList, jn as manageRequestFrameSchema, jt as StreamDataFrame, k as DmRoomPath, kn as manageErrorSchema, kt as RoomSend, l as CapabilityGrant, ln as coseTokenHeadersSchema, lr as roomMembersOkSchema, lt as PtySpawn, m as CapabilityVerb, mn as deviceIdSchema, mr as roomReadSchema, mt as RelayOfferFrame, n as BulkCancel, nn as coordinatorFrameSchema, nr as revocationClaimsSchema, nt as PrivateUseDomainId, o as BulkResume, on as coseHeaderKidSchema, or as roomJoinSchema, ot as ProtocolVersion, p as CapabilityToken, pn as deviceIdHexSchema, pr as roomPathSchema, pt as RelayInboundFrame, q as MessageRef, qn as ptyKillSchema, qt as candidateKindSchema, r as BulkDataFrame, rn as coreCapabilitySchema, rr as revocationEntrySchema, rt as ProcKill, s as CandidateKind, sn as coseHeaderLabelSchema, sr as roomLeaveSchema, st as PtyKill, t as BulkAckFrame, tn as closeFrameSchema, tr as revocationAnnounceFrameSchema, tt as PrivateUseCapability, u as CapabilityGrantOk, un as dataEntriesFrameSchema, ur as roomMembersSchema, ut as PtyWrite, v as CoreDomainName, vn as execSessionInfoSchema, vr as streamEndFrameSchema, vt as RoomInvite, w as DataEntriesFrame, wn as handshakeFrameSchema, wr as webrtcIceCandidateSchema, wt as RoomMembersOk, x as CoseHeaderLabel, xn as gossipFrameSchema, xr as tokenClaimsSchema, xt as RoomLeave, y as CoseHeaderAlg, yn as frameSchema, yr as streamSessionSchema, yt as RoomJoin, z as IceCandidateInit, zn as peerIdentitySchema, zt as WebrtcOffer } from "../protocol-sW8d6Og-.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, 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,32 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/generated/protocol.ts
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"handle": z.string(),
|
|
21
|
-
"device-id": z.lazy(() => deviceIdSchema),
|
|
22
|
-
"identity-key": z.lazy(() => identityKeySchema),
|
|
23
|
-
"candidates": z.array(z.lazy(() => wireCandidateSchema)).optional(),
|
|
24
|
-
"mailboxes": z.array(z.lazy(() => deviceIdSchema)).optional(),
|
|
25
|
-
"issued": z.number().int().nonnegative(),
|
|
26
|
-
"expires": z.number().int().nonnegative()
|
|
27
|
-
}));
|
|
28
|
-
const handleRecordSchema = z.lazy(() => z.lazy(() => coseSign1Schema));
|
|
3
|
+
const transferIdSchema = z.lazy(() => z.instanceof(Uint8Array).refine((v) => v.length === 16, { message: "expected exactly 16 bytes" }));
|
|
4
|
+
const bulkOpenSchema = z.lazy(() => z.object({
|
|
5
|
+
"verb": z.literal("bulk.open"),
|
|
6
|
+
"transfer-id": z.lazy(() => transferIdSchema),
|
|
7
|
+
"total-size": z.number().int().nonnegative().optional(),
|
|
8
|
+
"content-type": z.string().optional()
|
|
9
|
+
}).catchall(z.unknown()));
|
|
10
|
+
const bulkResumeSchema = z.lazy(() => z.object({
|
|
11
|
+
"verb": z.literal("bulk.resume"),
|
|
12
|
+
"transfer-id": z.lazy(() => transferIdSchema),
|
|
13
|
+
"ack-seq": z.number().int().nonnegative()
|
|
14
|
+
}).catchall(z.unknown()));
|
|
15
|
+
const bulkCancelSchema = z.lazy(() => z.object({
|
|
16
|
+
"verb": z.literal("bulk.cancel"),
|
|
17
|
+
"transfer-id": z.lazy(() => transferIdSchema),
|
|
18
|
+
"reason": z.string().optional()
|
|
19
|
+
}).catchall(z.unknown()));
|
|
29
20
|
const manageCommandParamsSchema = z.lazy(() => z.union([
|
|
21
|
+
z.union([
|
|
22
|
+
z.lazy(() => bulkOpenSchema),
|
|
23
|
+
z.lazy(() => bulkResumeSchema),
|
|
24
|
+
z.lazy(() => bulkCancelSchema)
|
|
25
|
+
]),
|
|
30
26
|
z.union([
|
|
31
27
|
z.lazy(() => ptySpawnSchema),
|
|
32
28
|
z.lazy(() => ptyWriteSchema),
|
|
@@ -53,6 +49,49 @@ const manageCommandParamsSchema = z.lazy(() => z.union([
|
|
|
53
49
|
z.lazy(() => webrtcIceCandidateSchema)
|
|
54
50
|
])
|
|
55
51
|
]));
|
|
52
|
+
const bulkDataFrameSchema = z.lazy(() => z.object({
|
|
53
|
+
"type": z.literal("bulk-data"),
|
|
54
|
+
"transfer-id": z.lazy(() => transferIdSchema),
|
|
55
|
+
"seq": z.number().int().nonnegative(),
|
|
56
|
+
"bytes": z.instanceof(Uint8Array)
|
|
57
|
+
}));
|
|
58
|
+
const bulkAckFrameSchema = z.lazy(() => z.object({
|
|
59
|
+
"type": z.literal("bulk-ack"),
|
|
60
|
+
"transfer-id": z.lazy(() => transferIdSchema),
|
|
61
|
+
"ack-seq": z.number().int().nonnegative(),
|
|
62
|
+
"window": z.number().int().nonnegative()
|
|
63
|
+
}));
|
|
64
|
+
const bulkEndFrameSchema = z.lazy(() => z.object({
|
|
65
|
+
"type": z.literal("bulk-end"),
|
|
66
|
+
"transfer-id": z.lazy(() => transferIdSchema),
|
|
67
|
+
"digest": z.instanceof(Uint8Array)
|
|
68
|
+
}));
|
|
69
|
+
const dataHaveFrameSchema = z.lazy(() => z.object({
|
|
70
|
+
"type": z.literal("data-have"),
|
|
71
|
+
"peer": z.lazy(() => deviceIdSchema),
|
|
72
|
+
"head-seq": z.number().int().nonnegative()
|
|
73
|
+
}));
|
|
74
|
+
const dataRequestFrameSchema = z.lazy(() => z.object({
|
|
75
|
+
"type": z.literal("data-request"),
|
|
76
|
+
"peer": z.lazy(() => deviceIdSchema),
|
|
77
|
+
"from-seq": z.number().int().nonnegative()
|
|
78
|
+
}));
|
|
79
|
+
const dataEntriesFrameSchema = z.lazy(() => z.object({
|
|
80
|
+
"type": z.literal("data-entries"),
|
|
81
|
+
"peer": z.lazy(() => deviceIdSchema),
|
|
82
|
+
"from-seq": z.number().int().nonnegative(),
|
|
83
|
+
"entries": z.array(z.instanceof(Uint8Array))
|
|
84
|
+
}));
|
|
85
|
+
const handleClaimsSchema = z.lazy(() => z.object({
|
|
86
|
+
"handle": z.string(),
|
|
87
|
+
"device-id": z.lazy(() => deviceIdSchema),
|
|
88
|
+
"identity-key": z.lazy(() => identityKeySchema),
|
|
89
|
+
"candidates": z.array(z.lazy(() => wireCandidateSchema)).optional(),
|
|
90
|
+
"mailboxes": z.array(z.lazy(() => deviceIdSchema)).optional(),
|
|
91
|
+
"issued": z.number().int().nonnegative(),
|
|
92
|
+
"expires": z.number().int().nonnegative()
|
|
93
|
+
}));
|
|
94
|
+
const handleRecordSchema = z.lazy(() => z.lazy(() => coseSign1Schema));
|
|
56
95
|
const ptySpawnSchema = z.lazy(() => z.object({
|
|
57
96
|
"verb": z.literal("pty.spawn"),
|
|
58
97
|
"shell": z.string().optional(),
|
|
@@ -121,7 +160,10 @@ const frameVariantSchema = z.lazy(() => z.union([
|
|
|
121
160
|
z.lazy(() => streamEndFrameSchema),
|
|
122
161
|
z.lazy(() => dataHaveFrameSchema),
|
|
123
162
|
z.lazy(() => dataRequestFrameSchema),
|
|
124
|
-
z.lazy(() => dataEntriesFrameSchema)
|
|
163
|
+
z.lazy(() => dataEntriesFrameSchema),
|
|
164
|
+
z.lazy(() => bulkDataFrameSchema),
|
|
165
|
+
z.lazy(() => bulkAckFrameSchema),
|
|
166
|
+
z.lazy(() => bulkEndFrameSchema)
|
|
125
167
|
]));
|
|
126
168
|
const frameSchema = z.lazy(() => z.lazy(() => frameVariantSchema));
|
|
127
169
|
const protocolVersionSchema = z.lazy(() => z.number().int().nonnegative());
|
|
@@ -136,7 +178,8 @@ const coreDomainNameSchema = z.lazy(() => z.union([
|
|
|
136
178
|
z.literal("core/data"),
|
|
137
179
|
z.literal("core/federation"),
|
|
138
180
|
z.literal("core/webrtc"),
|
|
139
|
-
z.literal("core/room")
|
|
181
|
+
z.literal("core/room"),
|
|
182
|
+
z.literal("core/bulk")
|
|
140
183
|
]));
|
|
141
184
|
const namespacedDomainIdSchema = z.lazy(() => z.string().regex(/* @__PURE__ */ new RegExp("[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+/[A-Za-z0-9_.-]+")));
|
|
142
185
|
const privateUseDomainIdSchema = z.lazy(() => z.string().regex(/* @__PURE__ */ new RegExp("x-[A-Za-z0-9_.-]+")));
|
|
@@ -398,4 +441,4 @@ const iceCandidateInitSchema = z.lazy(() => z.object({
|
|
|
398
441
|
"username-fragment": z.string().optional()
|
|
399
442
|
}));
|
|
400
443
|
//#endregion
|
|
401
|
-
export { 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, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|
|
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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as IdentityKey, D as DeviceId } from "./protocol-sW8d6Og-.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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as IdentityKey, D as DeviceId } from "./protocol-sW8d6Og-.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,2 +1,2 @@
|
|
|
1
|
-
import { t as IdentityPort } from "../identity-
|
|
1
|
+
import { t as IdentityPort } from "../identity-DJ06jn4k.cjs";
|
|
2
2
|
export { IdentityPort };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as IdentityPort } from "../identity-
|
|
1
|
+
import { t as IdentityPort } from "../identity-C5N86BPz.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-DxZ4JWZc.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-B5E896PN.mjs";
|
|
2
2
|
export { Connection, Listener, Transport };
|