wire-mesh-core 0.0.0 → 1.0.2
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/README.md +32 -0
- package/dist/adapters/frame-codec.cjs +37 -0
- package/dist/adapters/frame-codec.d.cts +12 -0
- package/dist/adapters/frame-codec.d.mts +12 -0
- package/dist/adapters/frame-codec.mjs +33 -0
- package/dist/adapters/memory-storage.cjs +14 -0
- package/dist/adapters/memory-storage.d.cts +5 -0
- package/dist/adapters/memory-storage.d.mts +5 -0
- package/dist/adapters/memory-storage.mjs +13 -0
- package/dist/adapters/node-identity.cjs +55 -0
- package/dist/adapters/node-identity.d.cts +11 -0
- package/dist/adapters/node-identity.d.mts +11 -0
- package/dist/adapters/node-identity.mjs +52 -0
- package/dist/adapters/system-clock.cjs +8 -0
- package/dist/adapters/system-clock.d.cts +5 -0
- package/dist/adapters/system-clock.d.mts +5 -0
- package/dist/adapters/system-clock.mjs +7 -0
- package/dist/adapters/tcp-transport.cjs +154 -0
- package/dist/adapters/tcp-transport.d.cts +5 -0
- package/dist/adapters/tcp-transport.d.mts +5 -0
- package/dist/adapters/tcp-transport.mjs +153 -0
- package/dist/adapters/tls-transport.cjs +178 -0
- package/dist/adapters/tls-transport.d.cts +9 -0
- package/dist/adapters/tls-transport.d.mts +9 -0
- package/dist/adapters/tls-transport.mjs +177 -0
- package/dist/clock-DiSx-WKM.d.cts +7 -0
- package/dist/clock-DiSx-WKM.d.mts +7 -0
- package/dist/domain/device-id.cjs +27 -0
- package/dist/domain/device-id.d.cts +9 -0
- package/dist/domain/device-id.d.mts +9 -0
- package/dist/domain/device-id.mjs +24 -0
- package/dist/domain/handshake.cjs +23 -0
- package/dist/domain/handshake.d.cts +16 -0
- package/dist/domain/handshake.d.mts +16 -0
- package/dist/domain/handshake.mjs +21 -0
- package/dist/domain/mesh-session.cjs +439 -0
- package/dist/domain/mesh-session.d.cts +101 -0
- package/dist/domain/mesh-session.d.mts +101 -0
- package/dist/domain/mesh-session.mjs +436 -0
- package/dist/domain/relay-hub.cjs +99 -0
- package/dist/domain/relay-hub.d.cts +10 -0
- package/dist/domain/relay-hub.d.mts +10 -0
- package/dist/domain/relay-hub.mjs +98 -0
- package/dist/domain/revocation-view.cjs +22 -0
- package/dist/domain/revocation-view.d.cts +12 -0
- package/dist/domain/revocation-view.d.mts +12 -0
- package/dist/domain/revocation-view.mjs +21 -0
- package/dist/domain/tokens.cjs +300 -0
- package/dist/domain/tokens.d.cts +86 -0
- package/dist/domain/tokens.d.mts +86 -0
- package/dist/domain/tokens.mjs +296 -0
- package/dist/generated/protocol.cjs +466 -0
- package/dist/generated/protocol.d.cts +2 -0
- package/dist/generated/protocol.d.mts +2 -0
- package/dist/generated/protocol.mjs +382 -0
- package/dist/generated/runtime.cjs +8 -0
- package/dist/generated/runtime.d.cts +2 -0
- package/dist/generated/runtime.d.mts +2 -0
- package/dist/generated/runtime.mjs +2 -0
- package/dist/identity-BRLEUfVY.d.cts +17 -0
- package/dist/identity-qNkmGytv.d.mts +17 -0
- package/dist/ports/clock.cjs +0 -0
- package/dist/ports/clock.d.cts +2 -0
- package/dist/ports/clock.d.mts +2 -0
- package/dist/ports/clock.mjs +1 -0
- package/dist/ports/identity.cjs +0 -0
- package/dist/ports/identity.d.cts +2 -0
- package/dist/ports/identity.d.mts +2 -0
- package/dist/ports/identity.mjs +1 -0
- package/dist/ports/storage.cjs +0 -0
- package/dist/ports/storage.d.cts +9 -0
- package/dist/ports/storage.d.mts +9 -0
- package/dist/ports/storage.mjs +1 -0
- package/dist/ports/transport.cjs +0 -0
- package/dist/ports/transport.d.cts +29 -0
- package/dist/ports/transport.d.mts +29 -0
- package/dist/ports/transport.mjs +1 -0
- package/dist/protocol-B26-5VX7.d.cts +1112 -0
- package/dist/protocol-B26-5VX7.d.mts +1112 -0
- package/package.json +130 -2
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/generated/protocol.ts
|
|
4
|
+
const dataHaveFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
5
|
+
"type": zod.z.literal("data-have"),
|
|
6
|
+
"peer": zod.z.lazy(() => deviceIdSchema),
|
|
7
|
+
"head-seq": zod.z.number().int().nonnegative()
|
|
8
|
+
}));
|
|
9
|
+
const dataRequestFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
10
|
+
"type": zod.z.literal("data-request"),
|
|
11
|
+
"peer": zod.z.lazy(() => deviceIdSchema),
|
|
12
|
+
"from-seq": zod.z.number().int().nonnegative()
|
|
13
|
+
}));
|
|
14
|
+
const dataEntriesFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
15
|
+
"type": zod.z.literal("data-entries"),
|
|
16
|
+
"peer": zod.z.lazy(() => deviceIdSchema),
|
|
17
|
+
"from-seq": zod.z.number().int().nonnegative(),
|
|
18
|
+
"entries": zod.z.array(zod.z.instanceof(Uint8Array))
|
|
19
|
+
}));
|
|
20
|
+
const handleClaimsSchema = zod.z.lazy(() => zod.z.object({
|
|
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));
|
|
30
|
+
const manageCommandParamsSchema = zod.z.lazy(() => zod.z.union([
|
|
31
|
+
zod.z.union([
|
|
32
|
+
zod.z.lazy(() => ptySpawnSchema),
|
|
33
|
+
zod.z.lazy(() => ptyWriteSchema),
|
|
34
|
+
zod.z.lazy(() => ptyResizeSchema),
|
|
35
|
+
zod.z.lazy(() => ptyKillSchema),
|
|
36
|
+
zod.z.lazy(() => procSpawnSchema),
|
|
37
|
+
zod.z.lazy(() => procSignalSchema),
|
|
38
|
+
zod.z.lazy(() => procKillSchema),
|
|
39
|
+
zod.z.lazy(() => execListSchema)
|
|
40
|
+
]),
|
|
41
|
+
zod.z.object({}).catchall(zod.z.unknown()),
|
|
42
|
+
zod.z.union([
|
|
43
|
+
zod.z.lazy(() => roomSendSchema),
|
|
44
|
+
zod.z.lazy(() => roomReadSchema),
|
|
45
|
+
zod.z.lazy(() => roomLeaveSchema),
|
|
46
|
+
zod.z.lazy(() => roomMembersSchema)
|
|
47
|
+
]),
|
|
48
|
+
zod.z.union([zod.z.lazy(() => roomJoinSchema), zod.z.lazy(() => roomInviteSchema)]),
|
|
49
|
+
zod.z.union([
|
|
50
|
+
zod.z.lazy(() => webrtcOfferSchema),
|
|
51
|
+
zod.z.lazy(() => webrtcAnswerSchema),
|
|
52
|
+
zod.z.lazy(() => webrtcIceCandidateSchema)
|
|
53
|
+
])
|
|
54
|
+
]));
|
|
55
|
+
const ptySpawnSchema = zod.z.lazy(() => zod.z.object({
|
|
56
|
+
"verb": zod.z.literal("pty.spawn"),
|
|
57
|
+
"shell": zod.z.string().optional(),
|
|
58
|
+
"argv": zod.z.array(zod.z.string()),
|
|
59
|
+
"cwd": zod.z.string().optional(),
|
|
60
|
+
"env": zod.z.object({}).catchall(zod.z.string()),
|
|
61
|
+
"cols": zod.z.number().int().nonnegative(),
|
|
62
|
+
"rows": zod.z.number().int().nonnegative()
|
|
63
|
+
}));
|
|
64
|
+
const ptyWriteSchema = zod.z.lazy(() => zod.z.object({
|
|
65
|
+
"verb": zod.z.literal("pty.write"),
|
|
66
|
+
"session": zod.z.lazy(() => streamSessionSchema),
|
|
67
|
+
"bytes": zod.z.instanceof(Uint8Array)
|
|
68
|
+
}));
|
|
69
|
+
const ptyResizeSchema = zod.z.lazy(() => zod.z.object({
|
|
70
|
+
"verb": zod.z.literal("pty.resize"),
|
|
71
|
+
"session": zod.z.lazy(() => streamSessionSchema),
|
|
72
|
+
"cols": zod.z.number().int().nonnegative(),
|
|
73
|
+
"rows": zod.z.number().int().nonnegative()
|
|
74
|
+
}));
|
|
75
|
+
const ptyKillSchema = zod.z.lazy(() => zod.z.object({
|
|
76
|
+
"verb": zod.z.literal("pty.kill"),
|
|
77
|
+
"session": zod.z.lazy(() => streamSessionSchema),
|
|
78
|
+
"signal": zod.z.number().int()
|
|
79
|
+
}));
|
|
80
|
+
const procSpawnSchema = zod.z.lazy(() => zod.z.object({
|
|
81
|
+
"verb": zod.z.literal("proc.spawn"),
|
|
82
|
+
"argv": zod.z.array(zod.z.string()),
|
|
83
|
+
"cwd": zod.z.string().optional(),
|
|
84
|
+
"env": zod.z.object({}).catchall(zod.z.string())
|
|
85
|
+
}));
|
|
86
|
+
const procSignalSchema = zod.z.lazy(() => zod.z.object({
|
|
87
|
+
"verb": zod.z.literal("proc.signal"),
|
|
88
|
+
"session": zod.z.lazy(() => streamSessionSchema),
|
|
89
|
+
"signal": zod.z.number().int()
|
|
90
|
+
}));
|
|
91
|
+
const procKillSchema = zod.z.lazy(() => zod.z.object({
|
|
92
|
+
"verb": zod.z.literal("proc.kill"),
|
|
93
|
+
"session": zod.z.lazy(() => streamSessionSchema)
|
|
94
|
+
}));
|
|
95
|
+
const execListSchema = zod.z.lazy(() => zod.z.object({ "verb": zod.z.literal("exec.list") }));
|
|
96
|
+
const execSessionInfoSchema = zod.z.lazy(() => zod.z.object({
|
|
97
|
+
"session": zod.z.lazy(() => streamSessionSchema),
|
|
98
|
+
"kind": zod.z.union([zod.z.literal("pty"), zod.z.literal("proc")]),
|
|
99
|
+
"argv": zod.z.array(zod.z.string()).optional(),
|
|
100
|
+
"cwd": zod.z.string().optional()
|
|
101
|
+
}));
|
|
102
|
+
const frameVariantSchema = zod.z.lazy(() => zod.z.union([
|
|
103
|
+
zod.z.lazy(() => handshakeFrameSchema),
|
|
104
|
+
zod.z.lazy(() => pingFrameSchema),
|
|
105
|
+
zod.z.lazy(() => closeFrameSchema),
|
|
106
|
+
zod.z.lazy(() => gossipFrameSchema),
|
|
107
|
+
zod.z.lazy(() => candidatesFrameSchema),
|
|
108
|
+
zod.z.lazy(() => syncPunchFrameSchema),
|
|
109
|
+
zod.z.lazy(() => observedAddressFrameSchema),
|
|
110
|
+
zod.z.lazy(() => relayOfferFrameSchema),
|
|
111
|
+
zod.z.lazy(() => relayConnectFrameSchema),
|
|
112
|
+
zod.z.lazy(() => relayDataFrameSchema),
|
|
113
|
+
zod.z.lazy(() => relayInboundFrameSchema),
|
|
114
|
+
zod.z.lazy(() => coordinatorFrameSchema),
|
|
115
|
+
zod.z.lazy(() => manageRequestFrameSchema),
|
|
116
|
+
zod.z.lazy(() => manageResponseFrameSchema),
|
|
117
|
+
zod.z.lazy(() => revocationAnnounceFrameSchema),
|
|
118
|
+
zod.z.lazy(() => streamDataFrameSchema),
|
|
119
|
+
zod.z.lazy(() => streamAckFrameSchema),
|
|
120
|
+
zod.z.lazy(() => streamEndFrameSchema),
|
|
121
|
+
zod.z.lazy(() => dataHaveFrameSchema),
|
|
122
|
+
zod.z.lazy(() => dataRequestFrameSchema),
|
|
123
|
+
zod.z.lazy(() => dataEntriesFrameSchema)
|
|
124
|
+
]));
|
|
125
|
+
const frameSchema = zod.z.lazy(() => zod.z.lazy(() => frameVariantSchema));
|
|
126
|
+
const protocolVersionSchema = zod.z.lazy(() => zod.z.number().int().nonnegative());
|
|
127
|
+
const domainIdSchema = zod.z.lazy(() => zod.z.union([
|
|
128
|
+
zod.z.lazy(() => coreDomainNameSchema),
|
|
129
|
+
zod.z.lazy(() => namespacedDomainIdSchema),
|
|
130
|
+
zod.z.lazy(() => privateUseDomainIdSchema)
|
|
131
|
+
]));
|
|
132
|
+
const coreDomainNameSchema = zod.z.lazy(() => zod.z.union([
|
|
133
|
+
zod.z.literal("core/management"),
|
|
134
|
+
zod.z.literal("core/exec"),
|
|
135
|
+
zod.z.literal("core/data"),
|
|
136
|
+
zod.z.literal("core/federation"),
|
|
137
|
+
zod.z.literal("core/webrtc"),
|
|
138
|
+
zod.z.literal("core/room")
|
|
139
|
+
]));
|
|
140
|
+
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_.-]+")));
|
|
141
|
+
const privateUseDomainIdSchema = zod.z.lazy(() => zod.z.string().regex(/* @__PURE__ */ new RegExp("x-[A-Za-z0-9_.-]+")));
|
|
142
|
+
const handshakeFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
143
|
+
"type": zod.z.literal("handshake"),
|
|
144
|
+
"version": zod.z.lazy(() => protocolVersionSchema),
|
|
145
|
+
"domains": zod.z.array(zod.z.lazy(() => domainIdSchema)),
|
|
146
|
+
"params": zod.z.object({}).catchall(zod.z.unknown()).optional()
|
|
147
|
+
}));
|
|
148
|
+
const identityKeySchema = zod.z.lazy(() => zod.z.object({
|
|
149
|
+
"alg": zod.z.number().int(),
|
|
150
|
+
"public-key": zod.z.instanceof(Uint8Array)
|
|
151
|
+
}));
|
|
152
|
+
const deviceIdSchema = zod.z.lazy(() => zod.z.instanceof(Uint8Array).refine((v) => v.length === 32, { message: "expected exactly 32 bytes" }));
|
|
153
|
+
const peerIdentitySchema = zod.z.lazy(() => zod.z.object({
|
|
154
|
+
"device-id": zod.z.lazy(() => deviceIdSchema),
|
|
155
|
+
"identity-key": zod.z.lazy(() => identityKeySchema),
|
|
156
|
+
"certificate": zod.z.instanceof(Uint8Array).optional()
|
|
157
|
+
}));
|
|
158
|
+
const manageCommandSchema = zod.z.lazy(() => zod.z.object({
|
|
159
|
+
"verb": zod.z.lazy(() => capabilityVerbSchema),
|
|
160
|
+
"params": zod.z.lazy(() => manageCommandParamsSchema)
|
|
161
|
+
}));
|
|
162
|
+
const manageRequestFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
163
|
+
"type": zod.z.literal("manage-request"),
|
|
164
|
+
"request-id": zod.z.number().int().nonnegative(),
|
|
165
|
+
"command": zod.z.lazy(() => manageCommandSchema),
|
|
166
|
+
"scope": zod.z.lazy(() => capabilityScopeSchema),
|
|
167
|
+
"token": zod.z.lazy(() => capabilityTokenSchema).optional()
|
|
168
|
+
}));
|
|
169
|
+
const manageOkSchema = zod.z.lazy(() => zod.z.object({ "result": zod.z.literal("ok") }).catchall(zod.z.unknown()));
|
|
170
|
+
const manageErrorSchema = zod.z.lazy(() => zod.z.object({
|
|
171
|
+
"result": zod.z.literal("error"),
|
|
172
|
+
"code": zod.z.string(),
|
|
173
|
+
"message": zod.z.string().optional()
|
|
174
|
+
}));
|
|
175
|
+
const manageResponseFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
176
|
+
"type": zod.z.literal("manage-response"),
|
|
177
|
+
"request-id": zod.z.number().int().nonnegative(),
|
|
178
|
+
"outcome": zod.z.union([zod.z.lazy(() => manageOkSchema), zod.z.lazy(() => manageErrorSchema)])
|
|
179
|
+
}));
|
|
180
|
+
const revocationClaimsSchema = zod.z.lazy(() => zod.z.object({
|
|
181
|
+
"token-id": zod.z.instanceof(Uint8Array),
|
|
182
|
+
"issuer": zod.z.lazy(() => deviceIdSchema),
|
|
183
|
+
"issuer-key": zod.z.lazy(() => identityKeySchema),
|
|
184
|
+
"revoked-at": zod.z.number().int().nonnegative()
|
|
185
|
+
}));
|
|
186
|
+
const revocationEntrySchema = zod.z.lazy(() => zod.z.lazy(() => coseSign1Schema));
|
|
187
|
+
const revocationAnnounceFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
188
|
+
"type": zod.z.literal("revocation-announce"),
|
|
189
|
+
"entries": zod.z.array(zod.z.lazy(() => revocationEntrySchema))
|
|
190
|
+
}));
|
|
191
|
+
const roomPathSchema = zod.z.lazy(() => zod.z.union([zod.z.lazy(() => ownerNamedRoomPathSchema), zod.z.lazy(() => dmRoomPathSchema)]));
|
|
192
|
+
const deviceIdHexSchema = zod.z.lazy(() => zod.z.string().regex(/* @__PURE__ */ new RegExp("[0-9a-f]{64}")));
|
|
193
|
+
const ownerNamedRoomPathSchema = zod.z.lazy(() => zod.z.string().regex(/* @__PURE__ */ new RegExp("[0-9a-f]{64}/[A-Za-z0-9_-]+")));
|
|
194
|
+
const dmRoomPathSchema = zod.z.lazy(() => zod.z.string().regex(/* @__PURE__ */ new RegExp("[0-9a-f]{64}\\+[0-9a-f]{64}")));
|
|
195
|
+
const roomSendSchema = zod.z.lazy(() => zod.z.object({
|
|
196
|
+
"verb": zod.z.literal("room.send"),
|
|
197
|
+
"message-id": zod.z.instanceof(Uint8Array),
|
|
198
|
+
"sent-at": zod.z.number().int().nonnegative(),
|
|
199
|
+
"text": zod.z.string(),
|
|
200
|
+
"content-type": zod.z.string().optional(),
|
|
201
|
+
"refs": zod.z.array(zod.z.lazy(() => messageRefSchema)).optional()
|
|
202
|
+
}).catchall(zod.z.unknown()));
|
|
203
|
+
const roomReadSchema = zod.z.lazy(() => zod.z.object({
|
|
204
|
+
"verb": zod.z.literal("room.read"),
|
|
205
|
+
"messages": zod.z.array(zod.z.instanceof(Uint8Array)),
|
|
206
|
+
"at": zod.z.number().int().nonnegative()
|
|
207
|
+
}).catchall(zod.z.unknown()));
|
|
208
|
+
const roomLeaveSchema = zod.z.lazy(() => zod.z.object({ "verb": zod.z.literal("room.leave") }).catchall(zod.z.unknown()));
|
|
209
|
+
const roomMembersSchema = zod.z.lazy(() => zod.z.object({ "verb": zod.z.literal("room.members") }).catchall(zod.z.unknown()));
|
|
210
|
+
const messageRefSchema = zod.z.lazy(() => zod.z.object({
|
|
211
|
+
"id": zod.z.instanceof(Uint8Array),
|
|
212
|
+
"relation": zod.z.string()
|
|
213
|
+
}));
|
|
214
|
+
const roomJoinSchema = zod.z.lazy(() => zod.z.object({ "verb": zod.z.literal("room.join") }).catchall(zod.z.unknown()));
|
|
215
|
+
const roomInviteSchema = zod.z.lazy(() => zod.z.object({
|
|
216
|
+
"verb": zod.z.literal("room.invite"),
|
|
217
|
+
"invitee": zod.z.lazy(() => deviceIdSchema),
|
|
218
|
+
"token": zod.z.lazy(() => capabilityTokenSchema)
|
|
219
|
+
}).catchall(zod.z.unknown()));
|
|
220
|
+
const roomMemberSchema = zod.z.lazy(() => zod.z.object({ "device": zod.z.lazy(() => deviceIdSchema) }).catchall(zod.z.unknown()));
|
|
221
|
+
const roomJoinOkSchema = zod.z.lazy(() => zod.z.object({
|
|
222
|
+
"result": zod.z.literal("ok"),
|
|
223
|
+
"granted-token": zod.z.lazy(() => capabilityTokenSchema),
|
|
224
|
+
"members": zod.z.array(zod.z.lazy(() => roomMemberSchema))
|
|
225
|
+
}).catchall(zod.z.unknown()));
|
|
226
|
+
const roomMembersOkSchema = zod.z.lazy(() => zod.z.object({
|
|
227
|
+
"result": zod.z.literal("ok"),
|
|
228
|
+
"members": zod.z.array(zod.z.lazy(() => roomMemberSchema))
|
|
229
|
+
}).catchall(zod.z.unknown()));
|
|
230
|
+
const roomNoticeSchema = zod.z.lazy(() => zod.z.lazy(() => coseSign1Schema));
|
|
231
|
+
const roomNoticeClaimsSchema = zod.z.lazy(() => zod.z.object({
|
|
232
|
+
"room": zod.z.lazy(() => roomPathSchema),
|
|
233
|
+
"poster": zod.z.lazy(() => deviceIdSchema),
|
|
234
|
+
"poster-key": zod.z.lazy(() => identityKeySchema),
|
|
235
|
+
"token": zod.z.lazy(() => capabilityTokenSchema),
|
|
236
|
+
"notice-id": zod.z.instanceof(Uint8Array),
|
|
237
|
+
"posted-at": zod.z.number().int().nonnegative(),
|
|
238
|
+
"content-type": zod.z.string(),
|
|
239
|
+
"content": zod.z.instanceof(Uint8Array),
|
|
240
|
+
"refs": zod.z.array(zod.z.lazy(() => messageRefSchema)).optional()
|
|
241
|
+
}).catchall(zod.z.unknown()));
|
|
242
|
+
const streamSessionSchema = zod.z.lazy(() => zod.z.number().int().nonnegative());
|
|
243
|
+
const streamDataFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
244
|
+
"type": zod.z.literal("stream-data"),
|
|
245
|
+
"session": zod.z.lazy(() => streamSessionSchema),
|
|
246
|
+
"seq": zod.z.number().int().nonnegative(),
|
|
247
|
+
"channel": zod.z.string(),
|
|
248
|
+
"bytes": zod.z.instanceof(Uint8Array)
|
|
249
|
+
}));
|
|
250
|
+
const streamAckFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
251
|
+
"type": zod.z.literal("stream-ack"),
|
|
252
|
+
"session": zod.z.lazy(() => streamSessionSchema),
|
|
253
|
+
"ack-seq": zod.z.number().int().nonnegative(),
|
|
254
|
+
"window": zod.z.number().int().nonnegative()
|
|
255
|
+
}));
|
|
256
|
+
const streamEndFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
257
|
+
"type": zod.z.literal("stream-end"),
|
|
258
|
+
"session": zod.z.lazy(() => streamSessionSchema),
|
|
259
|
+
"exit-code": zod.z.number().int().optional(),
|
|
260
|
+
"exit-signal": zod.z.number().int().optional()
|
|
261
|
+
}));
|
|
262
|
+
const capabilityVerbSchema = zod.z.lazy(() => zod.z.union([
|
|
263
|
+
zod.z.lazy(() => coreCapabilitySchema),
|
|
264
|
+
zod.z.lazy(() => namespacedCapabilitySchema),
|
|
265
|
+
zod.z.lazy(() => privateUseCapabilitySchema)
|
|
266
|
+
]));
|
|
267
|
+
const coreCapabilitySchema = zod.z.lazy(() => zod.z.string().regex(/* @__PURE__ */ new RegExp("[a-z][a-z0-9-]*:[a-z][a-z0-9-]*")));
|
|
268
|
+
const namespacedCapabilitySchema = zod.z.lazy(() => zod.z.string().regex(/* @__PURE__ */ new RegExp("[a-z0-9.-]+/[A-Za-z0-9_.-]+:[A-Za-z0-9_.-]+")));
|
|
269
|
+
const privateUseCapabilitySchema = zod.z.lazy(() => zod.z.string().regex(/* @__PURE__ */ new RegExp("x-[A-Za-z0-9_.-]+:[A-Za-z0-9_.-]+")));
|
|
270
|
+
const capabilityScopeSchema = zod.z.lazy(() => zod.z.object({
|
|
271
|
+
"kind": zod.z.string(),
|
|
272
|
+
"path": zod.z.string().optional()
|
|
273
|
+
}));
|
|
274
|
+
const coseHeaderAlgSchema = zod.z.lazy(() => zod.z.literal(1));
|
|
275
|
+
const coseHeaderKidSchema = zod.z.lazy(() => zod.z.literal(4));
|
|
276
|
+
const coseHeaderLabelSchema = zod.z.lazy(() => zod.z.union([zod.z.number().int(), zod.z.string()]));
|
|
277
|
+
const coseTokenHeadersSchema = zod.z.lazy(() => zod.z.object({
|
|
278
|
+
"1": zod.z.number().int().optional(),
|
|
279
|
+
"4": zod.z.instanceof(Uint8Array).optional()
|
|
280
|
+
}).catchall(zod.z.unknown()));
|
|
281
|
+
const coseSign1Schema = zod.z.lazy(() => zod.z.tuple([
|
|
282
|
+
zod.z.instanceof(Uint8Array),
|
|
283
|
+
zod.z.lazy(() => coseTokenHeadersSchema),
|
|
284
|
+
zod.z.union([zod.z.instanceof(Uint8Array), zod.z.null()]),
|
|
285
|
+
zod.z.instanceof(Uint8Array)
|
|
286
|
+
]));
|
|
287
|
+
const capabilityTokenSchema = zod.z.lazy(() => zod.z.lazy(() => coseSign1Schema));
|
|
288
|
+
const tokenClaimsSchema = zod.z.lazy(() => zod.z.object({
|
|
289
|
+
"token-id": zod.z.instanceof(Uint8Array),
|
|
290
|
+
"issuer": zod.z.lazy(() => deviceIdSchema),
|
|
291
|
+
"issuer-key": zod.z.lazy(() => identityKeySchema),
|
|
292
|
+
"bearer": zod.z.lazy(() => deviceIdSchema),
|
|
293
|
+
"capability": zod.z.lazy(() => capabilityVerbSchema),
|
|
294
|
+
"scope": zod.z.lazy(() => capabilityScopeSchema),
|
|
295
|
+
"expires": zod.z.number().int().nonnegative(),
|
|
296
|
+
"not-before": zod.z.number().int().nonnegative().optional(),
|
|
297
|
+
"parent": zod.z.instanceof(Uint8Array).optional(),
|
|
298
|
+
"delegations-remaining": zod.z.number().int().nonnegative().optional()
|
|
299
|
+
}).catchall(zod.z.unknown()));
|
|
300
|
+
const pingFrameSchema = zod.z.lazy(() => zod.z.object({ "type": zod.z.literal("ping") }));
|
|
301
|
+
const closeFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
302
|
+
"type": zod.z.literal("close"),
|
|
303
|
+
"reason": zod.z.string().optional()
|
|
304
|
+
}));
|
|
305
|
+
const peerAdvertSchema = zod.z.lazy(() => zod.z.object({
|
|
306
|
+
"device": zod.z.lazy(() => deviceIdSchema),
|
|
307
|
+
"addresses": zod.z.array(zod.z.string()),
|
|
308
|
+
"snapshot-seconds": zod.z.number().int()
|
|
309
|
+
}));
|
|
310
|
+
const gossipFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
311
|
+
"type": zod.z.literal("gossip"),
|
|
312
|
+
"peers": zod.z.array(zod.z.lazy(() => peerAdvertSchema))
|
|
313
|
+
}));
|
|
314
|
+
const candidateKindSchema = zod.z.lazy(() => zod.z.union([
|
|
315
|
+
zod.z.literal("host"),
|
|
316
|
+
zod.z.literal("server-reflexive"),
|
|
317
|
+
zod.z.literal("relayed")
|
|
318
|
+
]));
|
|
319
|
+
const wireCandidateSchema = zod.z.lazy(() => zod.z.object({
|
|
320
|
+
"address": zod.z.string(),
|
|
321
|
+
"kind": zod.z.lazy(() => candidateKindSchema),
|
|
322
|
+
"priority": zod.z.number().int().nonnegative()
|
|
323
|
+
}));
|
|
324
|
+
const candidatesFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
325
|
+
"type": zod.z.literal("candidates"),
|
|
326
|
+
"candidates": zod.z.array(zod.z.lazy(() => wireCandidateSchema))
|
|
327
|
+
}));
|
|
328
|
+
const syncPunchFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
329
|
+
"type": zod.z.literal("sync-punch"),
|
|
330
|
+
"nonce": zod.z.number().int().nonnegative(),
|
|
331
|
+
"deadline-unix-ms": zod.z.number().int().nonnegative()
|
|
332
|
+
}));
|
|
333
|
+
const observedAddressFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
334
|
+
"type": zod.z.literal("observed-address"),
|
|
335
|
+
"address": zod.z.string()
|
|
336
|
+
}));
|
|
337
|
+
const relayOfferFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
338
|
+
"type": zod.z.literal("relay-offer"),
|
|
339
|
+
"addresses": zod.z.array(zod.z.string())
|
|
340
|
+
}));
|
|
341
|
+
const relayConnectFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
342
|
+
"type": zod.z.literal("relay-connect"),
|
|
343
|
+
"target-device": zod.z.lazy(() => deviceIdSchema)
|
|
344
|
+
}));
|
|
345
|
+
const relayDataFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
346
|
+
"type": zod.z.literal("relay-data"),
|
|
347
|
+
"payload": zod.z.instanceof(Uint8Array),
|
|
348
|
+
"to-device": zod.z.lazy(() => deviceIdSchema).optional(),
|
|
349
|
+
"from-device": zod.z.lazy(() => deviceIdSchema).optional()
|
|
350
|
+
}));
|
|
351
|
+
const relayInboundFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
352
|
+
"type": zod.z.literal("relay-inbound"),
|
|
353
|
+
"source-device": zod.z.lazy(() => deviceIdSchema)
|
|
354
|
+
}));
|
|
355
|
+
const coordinatorFrameSchema = zod.z.lazy(() => zod.z.object({
|
|
356
|
+
"type": zod.z.literal("coordinator"),
|
|
357
|
+
"term": zod.z.number().int().nonnegative(),
|
|
358
|
+
"coordinator": zod.z.lazy(() => deviceIdSchema),
|
|
359
|
+
"capacity-hint": zod.z.number().int().nonnegative().optional()
|
|
360
|
+
}));
|
|
361
|
+
const webrtcOfferSchema = zod.z.lazy(() => zod.z.object({
|
|
362
|
+
"verb": zod.z.literal("webrtc.offer"),
|
|
363
|
+
"negotiation-id": zod.z.number().int().nonnegative(),
|
|
364
|
+
"sdp": zod.z.string()
|
|
365
|
+
}));
|
|
366
|
+
const webrtcAnswerSchema = zod.z.lazy(() => zod.z.object({
|
|
367
|
+
"verb": zod.z.literal("webrtc.answer"),
|
|
368
|
+
"negotiation-id": zod.z.number().int().nonnegative(),
|
|
369
|
+
"sdp": zod.z.string()
|
|
370
|
+
}));
|
|
371
|
+
const webrtcIceCandidateSchema = zod.z.lazy(() => zod.z.object({
|
|
372
|
+
"verb": zod.z.literal("webrtc.ice-candidate"),
|
|
373
|
+
"negotiation-id": zod.z.number().int().nonnegative(),
|
|
374
|
+
"candidate": zod.z.lazy(() => iceCandidateInitSchema).optional()
|
|
375
|
+
}));
|
|
376
|
+
const iceCandidateInitSchema = zod.z.lazy(() => zod.z.object({
|
|
377
|
+
"candidate": zod.z.string(),
|
|
378
|
+
"sdp-mid": zod.z.string().optional(),
|
|
379
|
+
"sdp-m-line-index": zod.z.number().int().nonnegative().optional(),
|
|
380
|
+
"username-fragment": zod.z.string().optional()
|
|
381
|
+
}));
|
|
382
|
+
//#endregion
|
|
383
|
+
exports.candidateKindSchema = candidateKindSchema;
|
|
384
|
+
exports.candidatesFrameSchema = candidatesFrameSchema;
|
|
385
|
+
exports.capabilityScopeSchema = capabilityScopeSchema;
|
|
386
|
+
exports.capabilityTokenSchema = capabilityTokenSchema;
|
|
387
|
+
exports.capabilityVerbSchema = capabilityVerbSchema;
|
|
388
|
+
exports.closeFrameSchema = closeFrameSchema;
|
|
389
|
+
exports.coordinatorFrameSchema = coordinatorFrameSchema;
|
|
390
|
+
exports.coreCapabilitySchema = coreCapabilitySchema;
|
|
391
|
+
exports.coreDomainNameSchema = coreDomainNameSchema;
|
|
392
|
+
exports.coseHeaderAlgSchema = coseHeaderAlgSchema;
|
|
393
|
+
exports.coseHeaderKidSchema = coseHeaderKidSchema;
|
|
394
|
+
exports.coseHeaderLabelSchema = coseHeaderLabelSchema;
|
|
395
|
+
exports.coseSign1Schema = coseSign1Schema;
|
|
396
|
+
exports.coseTokenHeadersSchema = coseTokenHeadersSchema;
|
|
397
|
+
exports.dataEntriesFrameSchema = dataEntriesFrameSchema;
|
|
398
|
+
exports.dataHaveFrameSchema = dataHaveFrameSchema;
|
|
399
|
+
exports.dataRequestFrameSchema = dataRequestFrameSchema;
|
|
400
|
+
exports.deviceIdHexSchema = deviceIdHexSchema;
|
|
401
|
+
exports.deviceIdSchema = deviceIdSchema;
|
|
402
|
+
exports.dmRoomPathSchema = dmRoomPathSchema;
|
|
403
|
+
exports.domainIdSchema = domainIdSchema;
|
|
404
|
+
exports.execListSchema = execListSchema;
|
|
405
|
+
exports.execSessionInfoSchema = execSessionInfoSchema;
|
|
406
|
+
exports.frameSchema = frameSchema;
|
|
407
|
+
exports.frameVariantSchema = frameVariantSchema;
|
|
408
|
+
exports.gossipFrameSchema = gossipFrameSchema;
|
|
409
|
+
exports.handleClaimsSchema = handleClaimsSchema;
|
|
410
|
+
exports.handleRecordSchema = handleRecordSchema;
|
|
411
|
+
exports.handshakeFrameSchema = handshakeFrameSchema;
|
|
412
|
+
exports.iceCandidateInitSchema = iceCandidateInitSchema;
|
|
413
|
+
exports.identityKeySchema = identityKeySchema;
|
|
414
|
+
exports.manageCommandParamsSchema = manageCommandParamsSchema;
|
|
415
|
+
exports.manageCommandSchema = manageCommandSchema;
|
|
416
|
+
exports.manageErrorSchema = manageErrorSchema;
|
|
417
|
+
exports.manageOkSchema = manageOkSchema;
|
|
418
|
+
exports.manageRequestFrameSchema = manageRequestFrameSchema;
|
|
419
|
+
exports.manageResponseFrameSchema = manageResponseFrameSchema;
|
|
420
|
+
exports.messageRefSchema = messageRefSchema;
|
|
421
|
+
exports.namespacedCapabilitySchema = namespacedCapabilitySchema;
|
|
422
|
+
exports.namespacedDomainIdSchema = namespacedDomainIdSchema;
|
|
423
|
+
exports.observedAddressFrameSchema = observedAddressFrameSchema;
|
|
424
|
+
exports.ownerNamedRoomPathSchema = ownerNamedRoomPathSchema;
|
|
425
|
+
exports.peerAdvertSchema = peerAdvertSchema;
|
|
426
|
+
exports.peerIdentitySchema = peerIdentitySchema;
|
|
427
|
+
exports.pingFrameSchema = pingFrameSchema;
|
|
428
|
+
exports.privateUseCapabilitySchema = privateUseCapabilitySchema;
|
|
429
|
+
exports.privateUseDomainIdSchema = privateUseDomainIdSchema;
|
|
430
|
+
exports.procKillSchema = procKillSchema;
|
|
431
|
+
exports.procSignalSchema = procSignalSchema;
|
|
432
|
+
exports.procSpawnSchema = procSpawnSchema;
|
|
433
|
+
exports.protocolVersionSchema = protocolVersionSchema;
|
|
434
|
+
exports.ptyKillSchema = ptyKillSchema;
|
|
435
|
+
exports.ptyResizeSchema = ptyResizeSchema;
|
|
436
|
+
exports.ptySpawnSchema = ptySpawnSchema;
|
|
437
|
+
exports.ptyWriteSchema = ptyWriteSchema;
|
|
438
|
+
exports.relayConnectFrameSchema = relayConnectFrameSchema;
|
|
439
|
+
exports.relayDataFrameSchema = relayDataFrameSchema;
|
|
440
|
+
exports.relayInboundFrameSchema = relayInboundFrameSchema;
|
|
441
|
+
exports.relayOfferFrameSchema = relayOfferFrameSchema;
|
|
442
|
+
exports.revocationAnnounceFrameSchema = revocationAnnounceFrameSchema;
|
|
443
|
+
exports.revocationClaimsSchema = revocationClaimsSchema;
|
|
444
|
+
exports.revocationEntrySchema = revocationEntrySchema;
|
|
445
|
+
exports.roomInviteSchema = roomInviteSchema;
|
|
446
|
+
exports.roomJoinOkSchema = roomJoinOkSchema;
|
|
447
|
+
exports.roomJoinSchema = roomJoinSchema;
|
|
448
|
+
exports.roomLeaveSchema = roomLeaveSchema;
|
|
449
|
+
exports.roomMemberSchema = roomMemberSchema;
|
|
450
|
+
exports.roomMembersOkSchema = roomMembersOkSchema;
|
|
451
|
+
exports.roomMembersSchema = roomMembersSchema;
|
|
452
|
+
exports.roomNoticeClaimsSchema = roomNoticeClaimsSchema;
|
|
453
|
+
exports.roomNoticeSchema = roomNoticeSchema;
|
|
454
|
+
exports.roomPathSchema = roomPathSchema;
|
|
455
|
+
exports.roomReadSchema = roomReadSchema;
|
|
456
|
+
exports.roomSendSchema = roomSendSchema;
|
|
457
|
+
exports.streamAckFrameSchema = streamAckFrameSchema;
|
|
458
|
+
exports.streamDataFrameSchema = streamDataFrameSchema;
|
|
459
|
+
exports.streamEndFrameSchema = streamEndFrameSchema;
|
|
460
|
+
exports.streamSessionSchema = streamSessionSchema;
|
|
461
|
+
exports.syncPunchFrameSchema = syncPunchFrameSchema;
|
|
462
|
+
exports.tokenClaimsSchema = tokenClaimsSchema;
|
|
463
|
+
exports.webrtcAnswerSchema = webrtcAnswerSchema;
|
|
464
|
+
exports.webrtcIceCandidateSchema = webrtcIceCandidateSchema;
|
|
465
|
+
exports.webrtcOfferSchema = webrtcOfferSchema;
|
|
466
|
+
exports.wireCandidateSchema = wireCandidateSchema;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $ as PtyResize, $n as streamEndFrameSchema, $t as execSessionInfoSchema, A as IceCandidateInit, An as ptySpawnSchema, At as WireCandidate, B as NamespacedDomainId, Bn as roomJoinOkSchema, Bt as coseHeaderAlgSchema, C as ExecSessionInfo, Cn as privateUseDomainIdSchema, Ct as StreamEndFrame, D as HandleClaims, Dn as protocolVersionSchema, Dt as WebrtcAnswer, E as GossipFrame, En as procSpawnSchema, Et as TokenClaims, F as ManageOk, Fn as relayOfferFrameSchema, Ft as capabilityVerbSchema, G as PingFrame, Gn as roomMembersSchema, Gt as dataEntriesFrameSchema, H as OwnerNamedRoomPath, Hn as roomLeaveSchema, Ht as coseHeaderLabelSchema, I as ManageRequestFrame, In as revocationAnnounceFrameSchema, It as closeFrameSchema, J as ProcKill, Jn as roomPathSchema, Jt as deviceIdHexSchema, K as PrivateUseCapability, Kn as roomNoticeClaimsSchema, Kt as dataHaveFrameSchema, L as ManageResponseFrame, Ln as revocationClaimsSchema, Lt as coordinatorFrameSchema, M as ManageCommand, Mn as relayConnectFrameSchema, Mt as candidatesFrameSchema, N as ManageCommandParams, Nn as relayDataFrameSchema, Nt as capabilityScopeSchema, O as HandleRecord, On as ptyKillSchema, Ot as WebrtcIceCandidate, P as ManageError, Pn as relayInboundFrameSchema, Pt as capabilityTokenSchema, Q as PtyKill, Qn as streamDataFrameSchema, Qt as execListSchema, R as MessageRef, Rn as revocationEntrySchema, Rt as coreCapabilitySchema, S as ExecList, Sn as privateUseCapabilitySchema, St as StreamDataFrame, T as FrameVariant, Tn as procSignalSchema, Tt as SyncPunchFrame, U as PeerAdvert, Un as roomMemberSchema, Ut as coseSign1Schema, V as ObservedAddressFrame, Vn as roomJoinSchema, Vt as coseHeaderKidSchema, W as PeerIdentity, Wn as roomMembersOkSchema, Wt as coseTokenHeadersSchema, X as ProcSpawn, Xn as roomSendSchema, Xt as dmRoomPathSchema, Y as ProcSignal, Yn as roomReadSchema, Yt as deviceIdSchema, Z as ProtocolVersion, Zn as streamAckFrameSchema, Zt as domainIdSchema, _ as DataRequestFrame, _n as observedAddressFrameSchema, _t as RoomNoticeClaims, a as CapabilityVerb, an as handshakeFrameSchema, ar as webrtcOfferSchema, at as RelayOfferFrame, b as DmRoomPath, bn as peerIdentitySchema, bt as RoomSend, c as CoreCapability, cn as manageCommandParamsSchema, ct as RevocationEntry, d as CoseHeaderKid, dn as manageOkSchema, dt as RoomJoinOk, en as frameSchema, er as streamSessionSchema, et as PtySpawn, f as CoseHeaderLabel, fn as manageRequestFrameSchema, ft as RoomLeave, g as DataHaveFrame, gn as namespacedDomainIdSchema, gt as RoomNotice, h as DataEntriesFrame, hn as namespacedCapabilitySchema, ht as RoomMembersOk, i as CapabilityToken, in as handleRecordSchema, ir as webrtcIceCandidateSchema, it as RelayInboundFrame, j as IdentityKey, jn as ptyWriteSchema, jt as candidateKindSchema, k as HandshakeFrame, kn as ptyResizeSchema, kt as WebrtcOffer, l as CoreDomainName, ln as manageCommandSchema, lt as RoomInvite, m as CoseTokenHeaders, mn as messageRefSchema, mt as RoomMembers, n as CandidatesFrame, nn as gossipFrameSchema, nr as tokenClaimsSchema, nt as RelayConnectFrame, o as CloseFrame, on as iceCandidateInitSchema, or as wireCandidateSchema, ot as RevocationAnnounceFrame, p as CoseSign1, pn as manageResponseFrameSchema, pt as RoomMember, q as PrivateUseDomainId, qn as roomNoticeSchema, qt as dataRequestFrameSchema, r as CapabilityScope, rn as handleClaimsSchema, rr as webrtcAnswerSchema, rt as RelayDataFrame, s as CoordinatorFrame, sn as identityKeySchema, st as RevocationClaims, t as CandidateKind, tn as frameVariantSchema, tr as syncPunchFrameSchema, tt as PtyWrite, u as CoseHeaderAlg, un as manageErrorSchema, ut as RoomJoin, v as DeviceId, vn as ownerNamedRoomPathSchema, vt as RoomPath, w as Frame, wn as procKillSchema, wt as StreamSession, x as DomainId, xn as pingFrameSchema, xt as StreamAckFrame, y as DeviceIdHex, yn as peerAdvertSchema, yt as RoomRead, z as NamespacedCapability, zn as roomInviteSchema, zt as coreDomainNameSchema } from "../protocol-B26-5VX7.cjs";
|
|
2
|
+
export { CandidateKind, CandidatesFrame, CapabilityScope, CapabilityToken, CapabilityVerb, CloseFrame, CoordinatorFrame, CoreCapability, CoreDomainName, CoseHeaderAlg, CoseHeaderKid, CoseHeaderLabel, CoseSign1, CoseTokenHeaders, DataEntriesFrame, DataHaveFrame, DataRequestFrame, DeviceId, DeviceIdHex, DmRoomPath, DomainId, ExecList, ExecSessionInfo, Frame, FrameVariant, GossipFrame, HandleClaims, HandleRecord, HandshakeFrame, IceCandidateInit, IdentityKey, ManageCommand, ManageCommandParams, ManageError, ManageOk, ManageRequestFrame, ManageResponseFrame, MessageRef, NamespacedCapability, NamespacedDomainId, ObservedAddressFrame, OwnerNamedRoomPath, PeerAdvert, PeerIdentity, PingFrame, PrivateUseCapability, PrivateUseDomainId, ProcKill, ProcSignal, ProcSpawn, ProtocolVersion, PtyKill, PtyResize, PtySpawn, PtyWrite, RelayConnectFrame, RelayDataFrame, RelayInboundFrame, RelayOfferFrame, RevocationAnnounceFrame, RevocationClaims, RevocationEntry, RoomInvite, RoomJoin, RoomJoinOk, RoomLeave, RoomMember, RoomMembers, RoomMembersOk, RoomNotice, RoomNoticeClaims, RoomPath, RoomRead, RoomSend, StreamAckFrame, StreamDataFrame, StreamEndFrame, StreamSession, SyncPunchFrame, TokenClaims, WebrtcAnswer, WebrtcIceCandidate, WebrtcOffer, WireCandidate, candidateKindSchema, candidatesFrameSchema, capabilityScopeSchema, capabilityTokenSchema, capabilityVerbSchema, closeFrameSchema, coordinatorFrameSchema, coreCapabilitySchema, coreDomainNameSchema, coseHeaderAlgSchema, coseHeaderKidSchema, coseHeaderLabelSchema, coseSign1Schema, coseTokenHeadersSchema, dataEntriesFrameSchema, dataHaveFrameSchema, dataRequestFrameSchema, deviceIdHexSchema, deviceIdSchema, dmRoomPathSchema, domainIdSchema, execListSchema, execSessionInfoSchema, frameSchema, frameVariantSchema, gossipFrameSchema, handleClaimsSchema, handleRecordSchema, handshakeFrameSchema, iceCandidateInitSchema, identityKeySchema, manageCommandParamsSchema, manageCommandSchema, manageErrorSchema, manageOkSchema, manageRequestFrameSchema, manageResponseFrameSchema, messageRefSchema, namespacedCapabilitySchema, namespacedDomainIdSchema, observedAddressFrameSchema, ownerNamedRoomPathSchema, peerAdvertSchema, peerIdentitySchema, pingFrameSchema, privateUseCapabilitySchema, privateUseDomainIdSchema, procKillSchema, procSignalSchema, procSpawnSchema, protocolVersionSchema, ptyKillSchema, ptyResizeSchema, ptySpawnSchema, ptyWriteSchema, relayConnectFrameSchema, relayDataFrameSchema, relayInboundFrameSchema, relayOfferFrameSchema, revocationAnnounceFrameSchema, revocationClaimsSchema, revocationEntrySchema, roomInviteSchema, roomJoinOkSchema, roomJoinSchema, roomLeaveSchema, roomMemberSchema, roomMembersOkSchema, roomMembersSchema, roomNoticeClaimsSchema, roomNoticeSchema, roomPathSchema, roomReadSchema, roomSendSchema, streamAckFrameSchema, streamDataFrameSchema, streamEndFrameSchema, streamSessionSchema, syncPunchFrameSchema, tokenClaimsSchema, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $ as PtyResize, $n as streamEndFrameSchema, $t as execSessionInfoSchema, A as IceCandidateInit, An as ptySpawnSchema, At as WireCandidate, B as NamespacedDomainId, Bn as roomJoinOkSchema, Bt as coseHeaderAlgSchema, C as ExecSessionInfo, Cn as privateUseDomainIdSchema, Ct as StreamEndFrame, D as HandleClaims, Dn as protocolVersionSchema, Dt as WebrtcAnswer, E as GossipFrame, En as procSpawnSchema, Et as TokenClaims, F as ManageOk, Fn as relayOfferFrameSchema, Ft as capabilityVerbSchema, G as PingFrame, Gn as roomMembersSchema, Gt as dataEntriesFrameSchema, H as OwnerNamedRoomPath, Hn as roomLeaveSchema, Ht as coseHeaderLabelSchema, I as ManageRequestFrame, In as revocationAnnounceFrameSchema, It as closeFrameSchema, J as ProcKill, Jn as roomPathSchema, Jt as deviceIdHexSchema, K as PrivateUseCapability, Kn as roomNoticeClaimsSchema, Kt as dataHaveFrameSchema, L as ManageResponseFrame, Ln as revocationClaimsSchema, Lt as coordinatorFrameSchema, M as ManageCommand, Mn as relayConnectFrameSchema, Mt as candidatesFrameSchema, N as ManageCommandParams, Nn as relayDataFrameSchema, Nt as capabilityScopeSchema, O as HandleRecord, On as ptyKillSchema, Ot as WebrtcIceCandidate, P as ManageError, Pn as relayInboundFrameSchema, Pt as capabilityTokenSchema, Q as PtyKill, Qn as streamDataFrameSchema, Qt as execListSchema, R as MessageRef, Rn as revocationEntrySchema, Rt as coreCapabilitySchema, S as ExecList, Sn as privateUseCapabilitySchema, St as StreamDataFrame, T as FrameVariant, Tn as procSignalSchema, Tt as SyncPunchFrame, U as PeerAdvert, Un as roomMemberSchema, Ut as coseSign1Schema, V as ObservedAddressFrame, Vn as roomJoinSchema, Vt as coseHeaderKidSchema, W as PeerIdentity, Wn as roomMembersOkSchema, Wt as coseTokenHeadersSchema, X as ProcSpawn, Xn as roomSendSchema, Xt as dmRoomPathSchema, Y as ProcSignal, Yn as roomReadSchema, Yt as deviceIdSchema, Z as ProtocolVersion, Zn as streamAckFrameSchema, Zt as domainIdSchema, _ as DataRequestFrame, _n as observedAddressFrameSchema, _t as RoomNoticeClaims, a as CapabilityVerb, an as handshakeFrameSchema, ar as webrtcOfferSchema, at as RelayOfferFrame, b as DmRoomPath, bn as peerIdentitySchema, bt as RoomSend, c as CoreCapability, cn as manageCommandParamsSchema, ct as RevocationEntry, d as CoseHeaderKid, dn as manageOkSchema, dt as RoomJoinOk, en as frameSchema, er as streamSessionSchema, et as PtySpawn, f as CoseHeaderLabel, fn as manageRequestFrameSchema, ft as RoomLeave, g as DataHaveFrame, gn as namespacedDomainIdSchema, gt as RoomNotice, h as DataEntriesFrame, hn as namespacedCapabilitySchema, ht as RoomMembersOk, i as CapabilityToken, in as handleRecordSchema, ir as webrtcIceCandidateSchema, it as RelayInboundFrame, j as IdentityKey, jn as ptyWriteSchema, jt as candidateKindSchema, k as HandshakeFrame, kn as ptyResizeSchema, kt as WebrtcOffer, l as CoreDomainName, ln as manageCommandSchema, lt as RoomInvite, m as CoseTokenHeaders, mn as messageRefSchema, mt as RoomMembers, n as CandidatesFrame, nn as gossipFrameSchema, nr as tokenClaimsSchema, nt as RelayConnectFrame, o as CloseFrame, on as iceCandidateInitSchema, or as wireCandidateSchema, ot as RevocationAnnounceFrame, p as CoseSign1, pn as manageResponseFrameSchema, pt as RoomMember, q as PrivateUseDomainId, qn as roomNoticeSchema, qt as dataRequestFrameSchema, r as CapabilityScope, rn as handleClaimsSchema, rr as webrtcAnswerSchema, rt as RelayDataFrame, s as CoordinatorFrame, sn as identityKeySchema, st as RevocationClaims, t as CandidateKind, tn as frameVariantSchema, tr as syncPunchFrameSchema, tt as PtyWrite, u as CoseHeaderAlg, un as manageErrorSchema, ut as RoomJoin, v as DeviceId, vn as ownerNamedRoomPathSchema, vt as RoomPath, w as Frame, wn as procKillSchema, wt as StreamSession, x as DomainId, xn as pingFrameSchema, xt as StreamAckFrame, y as DeviceIdHex, yn as peerAdvertSchema, yt as RoomRead, z as NamespacedCapability, zn as roomInviteSchema, zt as coreDomainNameSchema } from "../protocol-B26-5VX7.mjs";
|
|
2
|
+
export { CandidateKind, CandidatesFrame, CapabilityScope, CapabilityToken, CapabilityVerb, CloseFrame, CoordinatorFrame, CoreCapability, CoreDomainName, CoseHeaderAlg, CoseHeaderKid, CoseHeaderLabel, CoseSign1, CoseTokenHeaders, DataEntriesFrame, DataHaveFrame, DataRequestFrame, DeviceId, DeviceIdHex, DmRoomPath, DomainId, ExecList, ExecSessionInfo, Frame, FrameVariant, GossipFrame, HandleClaims, HandleRecord, HandshakeFrame, IceCandidateInit, IdentityKey, ManageCommand, ManageCommandParams, ManageError, ManageOk, ManageRequestFrame, ManageResponseFrame, MessageRef, NamespacedCapability, NamespacedDomainId, ObservedAddressFrame, OwnerNamedRoomPath, PeerAdvert, PeerIdentity, PingFrame, PrivateUseCapability, PrivateUseDomainId, ProcKill, ProcSignal, ProcSpawn, ProtocolVersion, PtyKill, PtyResize, PtySpawn, PtyWrite, RelayConnectFrame, RelayDataFrame, RelayInboundFrame, RelayOfferFrame, RevocationAnnounceFrame, RevocationClaims, RevocationEntry, RoomInvite, RoomJoin, RoomJoinOk, RoomLeave, RoomMember, RoomMembers, RoomMembersOk, RoomNotice, RoomNoticeClaims, RoomPath, RoomRead, RoomSend, StreamAckFrame, StreamDataFrame, StreamEndFrame, StreamSession, SyncPunchFrame, TokenClaims, WebrtcAnswer, WebrtcIceCandidate, WebrtcOffer, WireCandidate, candidateKindSchema, candidatesFrameSchema, capabilityScopeSchema, capabilityTokenSchema, capabilityVerbSchema, closeFrameSchema, coordinatorFrameSchema, coreCapabilitySchema, coreDomainNameSchema, coseHeaderAlgSchema, coseHeaderKidSchema, coseHeaderLabelSchema, coseSign1Schema, coseTokenHeadersSchema, dataEntriesFrameSchema, dataHaveFrameSchema, dataRequestFrameSchema, deviceIdHexSchema, deviceIdSchema, dmRoomPathSchema, domainIdSchema, execListSchema, execSessionInfoSchema, frameSchema, frameVariantSchema, gossipFrameSchema, handleClaimsSchema, handleRecordSchema, handshakeFrameSchema, iceCandidateInitSchema, identityKeySchema, manageCommandParamsSchema, manageCommandSchema, manageErrorSchema, manageOkSchema, manageRequestFrameSchema, manageResponseFrameSchema, messageRefSchema, namespacedCapabilitySchema, namespacedDomainIdSchema, observedAddressFrameSchema, ownerNamedRoomPathSchema, peerAdvertSchema, peerIdentitySchema, pingFrameSchema, privateUseCapabilitySchema, privateUseDomainIdSchema, procKillSchema, procSignalSchema, procSpawnSchema, protocolVersionSchema, ptyKillSchema, ptyResizeSchema, ptySpawnSchema, ptyWriteSchema, relayConnectFrameSchema, relayDataFrameSchema, relayInboundFrameSchema, relayOfferFrameSchema, revocationAnnounceFrameSchema, revocationClaimsSchema, revocationEntrySchema, roomInviteSchema, roomJoinOkSchema, roomJoinSchema, roomLeaveSchema, roomMemberSchema, roomMembersOkSchema, roomMembersSchema, roomNoticeClaimsSchema, roomNoticeSchema, roomPathSchema, roomReadSchema, roomSendSchema, streamAckFrameSchema, streamDataFrameSchema, streamEndFrameSchema, streamSessionSchema, syncPunchFrameSchema, tokenClaimsSchema, webrtcAnswerSchema, webrtcIceCandidateSchema, webrtcOfferSchema, wireCandidateSchema };
|