@bowl42/keywire 0.0.0-stage → 0.3.1

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.
Files changed (384) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +118 -2
  3. package/dist/app.d.ts +2 -0
  4. package/dist/app.js +13 -0
  5. package/dist/app.js.map +1 -0
  6. package/dist/bytes.d.ts +1 -0
  7. package/dist/bytes.js +7 -0
  8. package/dist/bytes.js.map +1 -0
  9. package/dist/client.d.ts +66 -0
  10. package/dist/client.js +846 -0
  11. package/dist/client.js.map +1 -0
  12. package/dist/compress/block.d.ts +51 -0
  13. package/dist/compress/block.js +667 -0
  14. package/dist/compress/block.js.map +1 -0
  15. package/dist/compress/deflate.d.ts +7 -0
  16. package/dist/compress/deflate.js +603 -0
  17. package/dist/compress/deflate.js.map +1 -0
  18. package/dist/compress/index.d.ts +6 -0
  19. package/dist/compress/index.js +13 -0
  20. package/dist/compress/index.js.map +1 -0
  21. package/dist/compress/inflate.d.ts +21 -0
  22. package/dist/compress/inflate.js +380 -0
  23. package/dist/compress/inflate.js.map +1 -0
  24. package/dist/compress/wasm.d.ts +50 -0
  25. package/dist/compress/wasm.js +192 -0
  26. package/dist/compress/wasm.js.map +1 -0
  27. package/dist/compress/zlib-wasm.d.ts +15 -0
  28. package/dist/compress/zlib-wasm.js +18 -0
  29. package/dist/compress/zlib-wasm.js.map +1 -0
  30. package/dist/conn.d.ts +126 -0
  31. package/dist/conn.js +685 -0
  32. package/dist/conn.js.map +1 -0
  33. package/dist/dial/index.d.ts +3 -0
  34. package/dist/dial/index.js +10 -0
  35. package/dist/dial/index.js.map +1 -0
  36. package/dist/discovery/index.d.ts +16 -0
  37. package/dist/discovery/index.js +173 -0
  38. package/dist/discovery/index.js.map +1 -0
  39. package/dist/discovery/reach.d.ts +4 -0
  40. package/dist/discovery/reach.js +36 -0
  41. package/dist/discovery/reach.js.map +1 -0
  42. package/dist/domain.d.ts +3 -0
  43. package/dist/domain.js +12 -0
  44. package/dist/domain.js.map +1 -0
  45. package/dist/errors.d.ts +7 -0
  46. package/dist/errors.js +49 -0
  47. package/dist/errors.js.map +1 -0
  48. package/dist/extension.d.ts +53 -0
  49. package/dist/extension.js +158 -0
  50. package/dist/extension.js.map +1 -0
  51. package/dist/forward.d.ts +11 -0
  52. package/dist/forward.js +125 -0
  53. package/dist/forward.js.map +1 -0
  54. package/dist/framed-stream.d.ts +14 -0
  55. package/dist/framed-stream.js +113 -0
  56. package/dist/framed-stream.js.map +1 -0
  57. package/dist/gen/keywire/discovery/v1/discovery_pb.d.ts +105 -0
  58. package/dist/gen/keywire/discovery/v1/discovery_pb.js +57 -0
  59. package/dist/gen/keywire/discovery/v1/discovery_pb.js.map +1 -0
  60. package/dist/gen/keywire/state/v1/state_pb.d.ts +988 -0
  61. package/dist/gen/keywire/state/v1/state_pb.js +184 -0
  62. package/dist/gen/keywire/state/v1/state_pb.js.map +1 -0
  63. package/dist/gen/keywire/v1/forward_pb.d.ts +53 -0
  64. package/dist/gen/keywire/v1/forward_pb.js +58 -0
  65. package/dist/gen/keywire/v1/forward_pb.js.map +1 -0
  66. package/dist/gen/keywire/v1/guest_pb.d.ts +322 -0
  67. package/dist/gen/keywire/v1/guest_pb.js +100 -0
  68. package/dist/gen/keywire/v1/guest_pb.js.map +1 -0
  69. package/dist/gen/keywire/v1/pair_pb.d.ts +106 -0
  70. package/dist/gen/keywire/v1/pair_pb.js +45 -0
  71. package/dist/gen/keywire/v1/pair_pb.js.map +1 -0
  72. package/dist/gen/keywire/v1/relay_pb.d.ts +116 -0
  73. package/dist/gen/keywire/v1/relay_pb.js +20 -0
  74. package/dist/gen/keywire/v1/relay_pb.js.map +1 -0
  75. package/dist/gen/keywire/v1/roster_pb.d.ts +213 -0
  76. package/dist/gen/keywire/v1/roster_pb.js +77 -0
  77. package/dist/gen/keywire/v1/roster_pb.js.map +1 -0
  78. package/dist/gen/keywire/v1/sync_pb.d.ts +68 -0
  79. package/dist/gen/keywire/v1/sync_pb.js +24 -0
  80. package/dist/gen/keywire/v1/sync_pb.js.map +1 -0
  81. package/dist/guest/equal-bytes.d.ts +1 -0
  82. package/dist/guest/equal-bytes.js +10 -0
  83. package/dist/guest/equal-bytes.js.map +1 -0
  84. package/dist/guest/hello.d.ts +4 -0
  85. package/dist/guest/hello.js +42 -0
  86. package/dist/guest/hello.js.map +1 -0
  87. package/dist/guest/invite-frame.d.ts +8 -0
  88. package/dist/guest/invite-frame.js +44 -0
  89. package/dist/guest/invite-frame.js.map +1 -0
  90. package/dist/guest/invite.d.ts +17 -0
  91. package/dist/guest/invite.js +86 -0
  92. package/dist/guest/invite.js.map +1 -0
  93. package/dist/guest/relay-hello.d.ts +2 -0
  94. package/dist/guest/relay-hello.js +38 -0
  95. package/dist/guest/relay-hello.js.map +1 -0
  96. package/dist/guest/revocations.d.ts +12 -0
  97. package/dist/guest/revocations.js +134 -0
  98. package/dist/guest/revocations.js.map +1 -0
  99. package/dist/guest/roster.d.ts +2 -0
  100. package/dist/guest/roster.js +14 -0
  101. package/dist/guest/roster.js.map +1 -0
  102. package/dist/guest/token-payload.d.ts +2 -0
  103. package/dist/guest/token-payload.js +71 -0
  104. package/dist/guest/token-payload.js.map +1 -0
  105. package/dist/guest-conn.d.ts +20 -0
  106. package/dist/guest-conn.js +99 -0
  107. package/dist/guest-conn.js.map +1 -0
  108. package/dist/guest-relay.d.ts +7 -0
  109. package/dist/guest-relay.js +45 -0
  110. package/dist/guest-relay.js.map +1 -0
  111. package/dist/guest.d.ts +20 -0
  112. package/dist/guest.js +99 -0
  113. package/dist/guest.js.map +1 -0
  114. package/dist/index.d.ts +31 -0
  115. package/dist/index.js +28 -0
  116. package/dist/index.js.map +1 -0
  117. package/dist/msg-path.d.ts +9 -0
  118. package/dist/msg-path.js +2 -0
  119. package/dist/msg-path.js.map +1 -0
  120. package/dist/mux/byte-queue.d.ts +9 -0
  121. package/dist/mux/byte-queue.js +62 -0
  122. package/dist/mux/byte-queue.js.map +1 -0
  123. package/dist/mux/codec.d.ts +30 -0
  124. package/dist/mux/codec.js +23 -0
  125. package/dist/mux/codec.js.map +1 -0
  126. package/dist/mux/errors.d.ts +23 -0
  127. package/dist/mux/errors.js +47 -0
  128. package/dist/mux/errors.js.map +1 -0
  129. package/dist/mux/frame.d.ts +44 -0
  130. package/dist/mux/frame.js +161 -0
  131. package/dist/mux/frame.js.map +1 -0
  132. package/dist/mux/nexttask.d.ts +1 -0
  133. package/dist/mux/nexttask.js +19 -0
  134. package/dist/mux/nexttask.js.map +1 -0
  135. package/dist/mux/session.d.ts +69 -0
  136. package/dist/mux/session.js +586 -0
  137. package/dist/mux/session.js.map +1 -0
  138. package/dist/mux/signal.d.ts +5 -0
  139. package/dist/mux/signal.js +14 -0
  140. package/dist/mux/signal.js.map +1 -0
  141. package/dist/mux/stream.d.ts +34 -0
  142. package/dist/mux/stream.js +620 -0
  143. package/dist/mux/stream.js.map +1 -0
  144. package/dist/nodekit/device.d.ts +40 -0
  145. package/dist/nodekit/device.js +188 -0
  146. package/dist/nodekit/device.js.map +1 -0
  147. package/dist/nodekit/index.d.ts +5 -0
  148. package/dist/nodekit/index.js +8 -0
  149. package/dist/nodekit/index.js.map +1 -0
  150. package/dist/nodekit/indexeddb.d.ts +2 -0
  151. package/dist/nodekit/indexeddb.js +114 -0
  152. package/dist/nodekit/indexeddb.js.map +1 -0
  153. package/dist/nodekit/pair-device.d.ts +27 -0
  154. package/dist/nodekit/pair-device.js +44 -0
  155. package/dist/nodekit/pair-device.js.map +1 -0
  156. package/dist/nodekit/sealed-signer.d.ts +22 -0
  157. package/dist/nodekit/sealed-signer.js +74 -0
  158. package/dist/nodekit/sealed-signer.js.map +1 -0
  159. package/dist/nodekit/store.d.ts +22 -0
  160. package/dist/nodekit/store.js +21 -0
  161. package/dist/nodekit/store.js.map +1 -0
  162. package/dist/noise/backend.d.ts +25 -0
  163. package/dist/noise/backend.js +2 -0
  164. package/dist/noise/backend.js.map +1 -0
  165. package/dist/noise/backends.d.ts +4 -0
  166. package/dist/noise/backends.js +19 -0
  167. package/dist/noise/backends.js.map +1 -0
  168. package/dist/noise/cipher.d.ts +18 -0
  169. package/dist/noise/cipher.js +69 -0
  170. package/dist/noise/cipher.js.map +1 -0
  171. package/dist/noise/crypto.d.ts +11 -0
  172. package/dist/noise/crypto.js +47 -0
  173. package/dist/noise/crypto.js.map +1 -0
  174. package/dist/noise/handshake.d.ts +28 -0
  175. package/dist/noise/handshake.js +183 -0
  176. package/dist/noise/handshake.js.map +1 -0
  177. package/dist/noise/import.d.ts +2 -0
  178. package/dist/noise/import.js +16 -0
  179. package/dist/noise/import.js.map +1 -0
  180. package/dist/noise/noble.d.ts +2 -0
  181. package/dist/noise/noble.js +51 -0
  182. package/dist/noise/noble.js.map +1 -0
  183. package/dist/noise/pair-code.d.ts +2 -0
  184. package/dist/noise/pair-code.js +11 -0
  185. package/dist/noise/pair-code.js.map +1 -0
  186. package/dist/noise/pkcs8.d.ts +3 -0
  187. package/dist/noise/pkcs8.js +18 -0
  188. package/dist/noise/pkcs8.js.map +1 -0
  189. package/dist/noise/sealed.d.ts +21 -0
  190. package/dist/noise/sealed.js +40 -0
  191. package/dist/noise/sealed.js.map +1 -0
  192. package/dist/noise/symmetric.d.ts +17 -0
  193. package/dist/noise/symmetric.js +56 -0
  194. package/dist/noise/symmetric.js.map +1 -0
  195. package/dist/noise/webcrypto.d.ts +3 -0
  196. package/dist/noise/webcrypto.js +98 -0
  197. package/dist/noise/webcrypto.js.map +1 -0
  198. package/dist/pair-relay.d.ts +4 -0
  199. package/dist/pair-relay.js +46 -0
  200. package/dist/pair-relay.js.map +1 -0
  201. package/dist/pair.d.ts +7 -0
  202. package/dist/pair.js +50 -0
  203. package/dist/pair.js.map +1 -0
  204. package/dist/paths/link.d.ts +33 -0
  205. package/dist/paths/link.js +132 -0
  206. package/dist/paths/link.js.map +1 -0
  207. package/dist/paths/node-paths.d.ts +10 -0
  208. package/dist/paths/node-paths.js +41 -0
  209. package/dist/paths/node-paths.js.map +1 -0
  210. package/dist/paths/path.d.ts +11 -0
  211. package/dist/paths/path.js +25 -0
  212. package/dist/paths/path.js.map +1 -0
  213. package/dist/paths/race.d.ts +18 -0
  214. package/dist/paths/race.js +157 -0
  215. package/dist/paths/race.js.map +1 -0
  216. package/dist/paths/relay-sessions.d.ts +11 -0
  217. package/dist/paths/relay-sessions.js +93 -0
  218. package/dist/paths/relay-sessions.js.map +1 -0
  219. package/dist/paths/upgrades.d.ts +12 -0
  220. package/dist/paths/upgrades.js +58 -0
  221. package/dist/paths/upgrades.js.map +1 -0
  222. package/dist/relay-server/admission.d.ts +24 -0
  223. package/dist/relay-server/admission.js +140 -0
  224. package/dist/relay-server/admission.js.map +1 -0
  225. package/dist/relay-server/config.d.ts +28 -0
  226. package/dist/relay-server/config.js +47 -0
  227. package/dist/relay-server/config.js.map +1 -0
  228. package/dist/relay-server/discovery/addr.d.ts +18 -0
  229. package/dist/relay-server/discovery/addr.js +211 -0
  230. package/dist/relay-server/discovery/addr.js.map +1 -0
  231. package/dist/relay-server/discovery/directory.d.ts +42 -0
  232. package/dist/relay-server/discovery/directory.js +101 -0
  233. package/dist/relay-server/discovery/directory.js.map +1 -0
  234. package/dist/relay-server/discovery/http.d.ts +10 -0
  235. package/dist/relay-server/discovery/http.js +172 -0
  236. package/dist/relay-server/discovery/http.js.map +1 -0
  237. package/dist/relay-server/discovery/index.d.ts +6 -0
  238. package/dist/relay-server/discovery/index.js +15 -0
  239. package/dist/relay-server/discovery/index.js.map +1 -0
  240. package/dist/relay-server/discovery/listing.d.ts +24 -0
  241. package/dist/relay-server/discovery/listing.js +115 -0
  242. package/dist/relay-server/discovery/listing.js.map +1 -0
  243. package/dist/relay-server/discovery/options.d.ts +39 -0
  244. package/dist/relay-server/discovery/options.js +97 -0
  245. package/dist/relay-server/discovery/options.js.map +1 -0
  246. package/dist/relay-server/discovery/service.d.ts +21 -0
  247. package/dist/relay-server/discovery/service.js +409 -0
  248. package/dist/relay-server/discovery/service.js.map +1 -0
  249. package/dist/relay-server/forward.d.ts +3 -0
  250. package/dist/relay-server/forward.js +97 -0
  251. package/dist/relay-server/forward.js.map +1 -0
  252. package/dist/relay-server/handshake.d.ts +10 -0
  253. package/dist/relay-server/handshake.js +36 -0
  254. package/dist/relay-server/handshake.js.map +1 -0
  255. package/dist/relay-server/index.d.ts +6 -0
  256. package/dist/relay-server/index.js +10 -0
  257. package/dist/relay-server/index.js.map +1 -0
  258. package/dist/relay-server/relay.d.ts +25 -0
  259. package/dist/relay-server/relay.js +392 -0
  260. package/dist/relay-server/relay.js.map +1 -0
  261. package/dist/relay-server/service-read.d.ts +4 -0
  262. package/dist/relay-server/service-read.js +16 -0
  263. package/dist/relay-server/service-read.js.map +1 -0
  264. package/dist/relay-server/service.d.ts +25 -0
  265. package/dist/relay-server/service.js +8 -0
  266. package/dist/relay-server/service.js.map +1 -0
  267. package/dist/relay-server/session.d.ts +60 -0
  268. package/dist/relay-server/session.js +35 -0
  269. package/dist/relay-server/session.js.map +1 -0
  270. package/dist/relay-server/url.d.ts +1 -0
  271. package/dist/relay-server/url.js +8 -0
  272. package/dist/relay-server/url.js.map +1 -0
  273. package/dist/relay-url.d.ts +2 -0
  274. package/dist/relay-url.js +11 -0
  275. package/dist/relay-url.js.map +1 -0
  276. package/dist/relay.d.ts +5 -0
  277. package/dist/relay.js +60 -0
  278. package/dist/relay.js.map +1 -0
  279. package/dist/roster/admission.d.ts +17 -0
  280. package/dist/roster/admission.js +85 -0
  281. package/dist/roster/admission.js.map +1 -0
  282. package/dist/roster/credentials.d.ts +5 -0
  283. package/dist/roster/credentials.js +72 -0
  284. package/dist/roster/credentials.js.map +1 -0
  285. package/dist/roster/digest.d.ts +3 -0
  286. package/dist/roster/digest.js +23 -0
  287. package/dist/roster/digest.js.map +1 -0
  288. package/dist/roster/envelope.d.ts +11 -0
  289. package/dist/roster/envelope.js +35 -0
  290. package/dist/roster/envelope.js.map +1 -0
  291. package/dist/roster/errors.d.ts +6 -0
  292. package/dist/roster/errors.js +11 -0
  293. package/dist/roster/errors.js.map +1 -0
  294. package/dist/roster/limits.d.ts +25 -0
  295. package/dist/roster/limits.js +26 -0
  296. package/dist/roster/limits.js.map +1 -0
  297. package/dist/roster/merge.d.ts +10 -0
  298. package/dist/roster/merge.js +101 -0
  299. package/dist/roster/merge.js.map +1 -0
  300. package/dist/roster/name.d.ts +1 -0
  301. package/dist/roster/name.js +7 -0
  302. package/dist/roster/name.js.map +1 -0
  303. package/dist/roster/order.d.ts +5 -0
  304. package/dist/roster/order.js +22 -0
  305. package/dist/roster/order.js.map +1 -0
  306. package/dist/roster/ownership.d.ts +9 -0
  307. package/dist/roster/ownership.js +42 -0
  308. package/dist/roster/ownership.js.map +1 -0
  309. package/dist/roster/retain.d.ts +2 -0
  310. package/dist/roster/retain.js +55 -0
  311. package/dist/roster/retain.js.map +1 -0
  312. package/dist/roster/revocations.d.ts +5 -0
  313. package/dist/roster/revocations.js +37 -0
  314. package/dist/roster/revocations.js.map +1 -0
  315. package/dist/roster/scan.d.ts +16 -0
  316. package/dist/roster/scan.js +194 -0
  317. package/dist/roster/scan.js.map +1 -0
  318. package/dist/roster/state.d.ts +34 -0
  319. package/dist/roster/state.js +204 -0
  320. package/dist/roster/state.js.map +1 -0
  321. package/dist/roster/statement.d.ts +38 -0
  322. package/dist/roster/statement.js +176 -0
  323. package/dist/roster/statement.js.map +1 -0
  324. package/dist/roster/types.d.ts +35 -0
  325. package/dist/roster/types.js +2 -0
  326. package/dist/roster/types.js.map +1 -0
  327. package/dist/roster/verify.d.ts +3 -0
  328. package/dist/roster/verify.js +63 -0
  329. package/dist/roster/verify.js.map +1 -0
  330. package/dist/roster-sync/apply.d.ts +2 -0
  331. package/dist/roster-sync/apply.js +23 -0
  332. package/dist/roster-sync/apply.js.map +1 -0
  333. package/dist/roster-sync/exchange.d.ts +3 -0
  334. package/dist/roster-sync/exchange.js +25 -0
  335. package/dist/roster-sync/exchange.js.map +1 -0
  336. package/dist/roster-sync/frame.d.ts +17 -0
  337. package/dist/roster-sync/frame.js +66 -0
  338. package/dist/roster-sync/frame.js.map +1 -0
  339. package/dist/roster-sync/records.d.ts +8 -0
  340. package/dist/roster-sync/records.js +78 -0
  341. package/dist/roster-sync/records.js.map +1 -0
  342. package/dist/roster-sync/sync.d.ts +12 -0
  343. package/dist/roster-sync/sync.js +69 -0
  344. package/dist/roster-sync/sync.js.map +1 -0
  345. package/dist/rtc.d.ts +15 -0
  346. package/dist/rtc.js +275 -0
  347. package/dist/rtc.js.map +1 -0
  348. package/dist/state/errors.d.ts +30 -0
  349. package/dist/state/errors.js +72 -0
  350. package/dist/state/errors.js.map +1 -0
  351. package/dist/state/index.d.ts +6 -0
  352. package/dist/state/index.js +11 -0
  353. package/dist/state/index.js.map +1 -0
  354. package/dist/state/limits.d.ts +34 -0
  355. package/dist/state/limits.js +115 -0
  356. package/dist/state/limits.js.map +1 -0
  357. package/dist/state/remote.d.ts +217 -0
  358. package/dist/state/remote.js +1934 -0
  359. package/dist/state/remote.js.map +1 -0
  360. package/dist/state/shared.d.ts +56 -0
  361. package/dist/state/shared.js +300 -0
  362. package/dist/state/shared.js.map +1 -0
  363. package/dist/state/state.d.ts +118 -0
  364. package/dist/state/state.js +1048 -0
  365. package/dist/state/state.js.map +1 -0
  366. package/dist/state/store.d.ts +31 -0
  367. package/dist/state/store.js +375 -0
  368. package/dist/state/store.js.map +1 -0
  369. package/dist/state/wire.d.ts +43 -0
  370. package/dist/state/wire.js +179 -0
  371. package/dist/state/wire.js.map +1 -0
  372. package/dist/strict-proto.d.ts +10 -0
  373. package/dist/strict-proto.js +167 -0
  374. package/dist/strict-proto.js.map +1 -0
  375. package/dist/token.d.ts +18 -0
  376. package/dist/token.js +60 -0
  377. package/dist/token.js.map +1 -0
  378. package/dist/urls.d.ts +7 -0
  379. package/dist/urls.js +117 -0
  380. package/dist/urls.js.map +1 -0
  381. package/dist/ws.d.ts +19 -0
  382. package/dist/ws.js +143 -0
  383. package/dist/ws.js.map +1 -0
  384. package/package.json +72 -3
@@ -0,0 +1,100 @@
1
+ // @generated by protoc-gen-es v2.17.0 with parameter "target=ts,import_extension=ts"
2
+ // @generated from file keywire/v1/guest.proto (package keywire.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ /**
6
+ * Describes the file keywire/v1/guest.proto.
7
+ */
8
+ export const file_keywire_v1_guest = /*@__PURE__*/ fileDesc("ChZrZXl3aXJlL3YxL2d1ZXN0LnByb3RvEgprZXl3aXJlLnYxIrEBCgxUb2tlblBheWxvYWQSIwoEa2luZBgBIAEoDjIVLmtleXdpcmUudjEuVG9rZW5LaW5kEg8KB25vZGVfaWQYAiABKAwSEgoKZXhwaXJlc19tcxgDIAEoAxISCgppbnZpdGVfa2V5GAQgASgMEhAKCHNoYXJlX2lkGAUgASgMEg8KB2dyYW50ZWUYBiABKAwSDQoFZ3JhbnQYByABKAwSEQoJYW5vbnltb3VzGAggASgIIigKBVRva2VuEhAKCGVudmVsb3BlGAEgASgMEg0KBWNoYWluGAIgAygMImIKCkd1ZXN0SGVsbG8SDwoHbmV0d29yaxgBIAEoDBIPCgdyZWNvcmRzGAIgAygMEiAKBXNoYXJlGAMgASgLMhEua2V5d2lyZS52MS5Ub2tlbhIQCghmZWF0dXJlcxgEIAEoBCIzCgpHdWVzdFJlcGx5EhMKC3NoYXJlX2VuZGVkGAEgASgIEhAKCGZlYXR1cmVzGAIgASgEImgKDEludml0ZUFjY2VwdBIhCgZpbnZpdGUYASABKAsyES5rZXl3aXJlLnYxLlRva2VuEhEKCXNpZ25hdHVyZRgCIAEoDBIUCgxuYW1lX3JlY29yZHMYAyADKAwSDAoEZGF0YRgEIAEoDCJcCg5JbnZpdGVBY2NlcHRlZBIoCgZzdGF0dXMYASABKA4yGC5rZXl3aXJlLnYxLkludml0ZVN0YXR1cxIgCgVzaGFyZRgCIAEoCzIRLmtleXdpcmUudjEuVG9rZW4iIwoQR3Vlc3RSZXZvY2F0aW9ucxIPCgdyZWNvcmRzGAEgAygMKlQKCVRva2VuS2luZBIaChZUT0tFTl9LSU5EX1VOU1BFQ0lGSUVEEAASFQoRVE9LRU5fS0lORF9JTlZJVEUQARIUChBUT0tFTl9LSU5EX1NIQVJFEAIqfAoMSW52aXRlU3RhdHVzEh0KGUlOVklURV9TVEFUVVNfVU5TUEVDSUZJRUQQABIaChZJTlZJVEVfU1RBVFVTX0FDQ0VQVEVEEAESGQoVSU5WSVRFX1NUQVRVU19SRUZVU0VEEAISFgoSSU5WSVRFX1NUQVRVU19CVVNZEANCLlosZ2l0aHViLmNvbS9Cb3dsNDIva2V5d2lyZS9nby9pbnRlcm5hbC93aXJlcGJiBnByb3RvMw");
9
+ /**
10
+ * Describes the message keywire.v1.TokenPayload.
11
+ * Use `create(TokenPayloadSchema)` to create a new message.
12
+ */
13
+ export const TokenPayloadSchema = /*@__PURE__*/ messageDesc(file_keywire_v1_guest, 0);
14
+ /**
15
+ * Describes the message keywire.v1.Token.
16
+ * Use `create(TokenSchema)` to create a new message.
17
+ */
18
+ export const TokenSchema = /*@__PURE__*/ messageDesc(file_keywire_v1_guest, 1);
19
+ /**
20
+ * Describes the message keywire.v1.GuestHello.
21
+ * Use `create(GuestHelloSchema)` to create a new message.
22
+ */
23
+ export const GuestHelloSchema = /*@__PURE__*/ messageDesc(file_keywire_v1_guest, 2);
24
+ /**
25
+ * Describes the message keywire.v1.GuestReply.
26
+ * Use `create(GuestReplySchema)` to create a new message.
27
+ */
28
+ export const GuestReplySchema = /*@__PURE__*/ messageDesc(file_keywire_v1_guest, 3);
29
+ /**
30
+ * Describes the message keywire.v1.InviteAccept.
31
+ * Use `create(InviteAcceptSchema)` to create a new message.
32
+ */
33
+ export const InviteAcceptSchema = /*@__PURE__*/ messageDesc(file_keywire_v1_guest, 4);
34
+ /**
35
+ * Describes the message keywire.v1.InviteAccepted.
36
+ * Use `create(InviteAcceptedSchema)` to create a new message.
37
+ */
38
+ export const InviteAcceptedSchema = /*@__PURE__*/ messageDesc(file_keywire_v1_guest, 5);
39
+ /**
40
+ * Describes the message keywire.v1.GuestRevocations.
41
+ * Use `create(GuestRevocationsSchema)` to create a new message.
42
+ */
43
+ export const GuestRevocationsSchema = /*@__PURE__*/ messageDesc(file_keywire_v1_guest, 6);
44
+ /**
45
+ * @generated from enum keywire.v1.TokenKind
46
+ */
47
+ export var TokenKind;
48
+ (function (TokenKind) {
49
+ /**
50
+ * @generated from enum value: TOKEN_KIND_UNSPECIFIED = 0;
51
+ */
52
+ TokenKind[TokenKind["UNSPECIFIED"] = 0] = "UNSPECIFIED";
53
+ /**
54
+ * An invite: whoever holds the private half of invite_key may redeem it,
55
+ * once, for a share.
56
+ *
57
+ * @generated from enum value: TOKEN_KIND_INVITE = 1;
58
+ */
59
+ TokenKind[TokenKind["INVITE"] = 1] = "INVITE";
60
+ /**
61
+ * A share: lets grantee in to what grant names.
62
+ *
63
+ * @generated from enum value: TOKEN_KIND_SHARE = 2;
64
+ */
65
+ TokenKind[TokenKind["SHARE"] = 2] = "SHARE";
66
+ })(TokenKind || (TokenKind = {}));
67
+ /**
68
+ * Describes the enum keywire.v1.TokenKind.
69
+ */
70
+ export const TokenKindSchema = /*@__PURE__*/ enumDesc(file_keywire_v1_guest, 0);
71
+ /**
72
+ * @generated from enum keywire.v1.InviteStatus
73
+ */
74
+ export var InviteStatus;
75
+ (function (InviteStatus) {
76
+ /**
77
+ * @generated from enum value: INVITE_STATUS_UNSPECIFIED = 0;
78
+ */
79
+ InviteStatus[InviteStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
80
+ /**
81
+ * @generated from enum value: INVITE_STATUS_ACCEPTED = 1;
82
+ */
83
+ InviteStatus[InviteStatus["ACCEPTED"] = 1] = "ACCEPTED";
84
+ /**
85
+ * REFUSED covers a bad, expired, revoked or foreign invite, and an
86
+ * invite another Network or anonymous key redeemed first.
87
+ *
88
+ * @generated from enum value: INVITE_STATUS_REFUSED = 2;
89
+ */
90
+ InviteStatus[InviteStatus["REFUSED"] = 2] = "REFUSED";
91
+ /**
92
+ * @generated from enum value: INVITE_STATUS_BUSY = 3;
93
+ */
94
+ InviteStatus[InviteStatus["BUSY"] = 3] = "BUSY";
95
+ })(InviteStatus || (InviteStatus = {}));
96
+ /**
97
+ * Describes the enum keywire.v1.InviteStatus.
98
+ */
99
+ export const InviteStatusSchema = /*@__PURE__*/ enumDesc(file_keywire_v1_guest, 1);
100
+ //# sourceMappingURL=guest_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guest_pb.js","sourceRoot":"","sources":["../../../../src/gen/keywire/v1/guest_pb.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,kFAAkF;AAClF,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG/E;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAY,aAAa,CACzD,QAAQ,CAAC,wsCAAwsC,CAAC,CAAC;AA2ErtC;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAsBxC;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAsB,aAAa,CACzD,WAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAiDxC;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2B,aAAa,CACnE,WAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;AA4BxC;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2B,aAAa,CACnE,WAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;AA+CxC;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAqBxC;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA+B,aAAa,CAC3E,WAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAsBxC;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAiC,aAAa,CAC/E,WAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAExC;;GAEG;AACH,MAAM,CAAN,IAAY,SAoBX;AApBD,WAAY,SAAS;IACnB;;OAEG;IACH,uDAAe,CAAA;IAEf;;;;;OAKG;IACH,6CAAU,CAAA;IAEV;;;;OAIG;IACH,2CAAS,CAAA;AACX,CAAC,EApBW,SAAS,KAAT,SAAS,QAoBpB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAuB,aAAa,CAC9D,QAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAErC;;GAEG;AACH,MAAM,CAAN,IAAY,YAuBX;AAvBD,WAAY,YAAY;IACtB;;OAEG;IACH,6DAAe,CAAA;IAEf;;OAEG;IACH,uDAAY,CAAA;IAEZ;;;;;OAKG;IACH,qDAAW,CAAA;IAEX;;OAEG;IACH,+CAAQ,CAAA;AACV,CAAC,EAvBW,YAAY,KAAZ,YAAY,QAuBvB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA0B,aAAa,CACpE,QAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,106 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file keywire/v1/pair.proto.
5
+ */
6
+ export declare const file_keywire_v1_pair: GenFile;
7
+ /**
8
+ * Sent in the third pairing handshake message.
9
+ *
10
+ * @generated from message keywire.v1.PairRequest
11
+ */
12
+ export type PairRequest = Message<"keywire.v1.PairRequest"> & {
13
+ /**
14
+ * @generated from field: keywire.v1.PairKind kind = 1;
15
+ */
16
+ kind: PairKind;
17
+ /**
18
+ * How the device calls itself, 1 to 64 bytes.
19
+ *
20
+ * @generated from field: string name = 2;
21
+ */
22
+ name: string;
23
+ /**
24
+ * The Ed25519 key the dialer signs with: required for a Node, which
25
+ * signs records and tokens with it; optional for a device, which signs
26
+ * statements with it.
27
+ *
28
+ * @generated from field: bytes signing_key = 3;
29
+ */
30
+ signingKey: Uint8Array;
31
+ /**
32
+ * What the application has the device bring, at most 1024 bytes: keywire
33
+ * only bounds it, and hands it to the application deciding the pairing.
34
+ *
35
+ * @generated from field: bytes data = 4;
36
+ */
37
+ data: Uint8Array;
38
+ /**
39
+ * Required exactly with signing_key, 64 bytes: its signature over
40
+ * "<domain> signing key v1" 0x00 | handshake hash after message 2 (32) |
41
+ * the dialer's static key (32), proving the dialer holds the key.
42
+ *
43
+ * @generated from field: bytes signing_proof = 5;
44
+ */
45
+ signingProof: Uint8Array;
46
+ /**
47
+ * The dialer's features (spec/compression.md).
48
+ *
49
+ * @generated from field: uint64 features = 6;
50
+ */
51
+ features: bigint;
52
+ };
53
+ /**
54
+ * Describes the message keywire.v1.PairRequest.
55
+ * Use `create(PairRequestSchema)` to create a new message.
56
+ */
57
+ export declare const PairRequestSchema: GenMessage<PairRequest>;
58
+ /**
59
+ * The answer once a person allowed the pairing: the new grant and its chain
60
+ * to the genesis owner.
61
+ *
62
+ * @generated from message keywire.v1.PairAccepted
63
+ */
64
+ export type PairAccepted = Message<"keywire.v1.PairAccepted"> & {
65
+ /**
66
+ * @generated from field: repeated bytes credentials = 1;
67
+ */
68
+ credentials: Uint8Array[];
69
+ /**
70
+ * The responder's features, only when the request stated features
71
+ * (spec/compression.md).
72
+ *
73
+ * @generated from field: uint64 features = 2;
74
+ */
75
+ features: bigint;
76
+ };
77
+ /**
78
+ * Describes the message keywire.v1.PairAccepted.
79
+ * Use `create(PairAcceptedSchema)` to create a new message.
80
+ */
81
+ export declare const PairAcceptedSchema: GenMessage<PairAccepted>;
82
+ /**
83
+ * @generated from enum keywire.v1.PairKind
84
+ */
85
+ export declare enum PairKind {
86
+ /**
87
+ * @generated from enum value: PAIR_KIND_UNSPECIFIED = 0;
88
+ */
89
+ UNSPECIFIED = 0,
90
+ /**
91
+ * A phone, browser or app: becomes a member.
92
+ *
93
+ * @generated from enum value: PAIR_KIND_DEVICE = 1;
94
+ */
95
+ DEVICE = 1,
96
+ /**
97
+ * Another Node joining the Network: becomes an owner.
98
+ *
99
+ * @generated from enum value: PAIR_KIND_NODE = 2;
100
+ */
101
+ NODE = 2
102
+ }
103
+ /**
104
+ * Describes the enum keywire.v1.PairKind.
105
+ */
106
+ export declare const PairKindSchema: GenEnum<PairKind>;
@@ -0,0 +1,45 @@
1
+ // @generated by protoc-gen-es v2.17.0 with parameter "target=ts,import_extension=ts"
2
+ // @generated from file keywire/v1/pair.proto (package keywire.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ /**
6
+ * Describes the file keywire/v1/pair.proto.
7
+ */
8
+ export const file_keywire_v1_pair = /*@__PURE__*/ fileDesc("ChVrZXl3aXJlL3YxL3BhaXIucHJvdG8SCmtleXdpcmUudjEiiwEKC1BhaXJSZXF1ZXN0EiIKBGtpbmQYASABKA4yFC5rZXl3aXJlLnYxLlBhaXJLaW5kEgwKBG5hbWUYAiABKAkSEwoLc2lnbmluZ19rZXkYAyABKAwSDAoEZGF0YRgEIAEoDBIVCg1zaWduaW5nX3Byb29mGAUgASgMEhAKCGZlYXR1cmVzGAYgASgEIjUKDFBhaXJBY2NlcHRlZBITCgtjcmVkZW50aWFscxgBIAMoDBIQCghmZWF0dXJlcxgCIAEoBCpPCghQYWlyS2luZBIZChVQQUlSX0tJTkRfVU5TUEVDSUZJRUQQABIUChBQQUlSX0tJTkRfREVWSUNFEAESEgoOUEFJUl9LSU5EX05PREUQAkIuWixnaXRodWIuY29tL0Jvd2w0Mi9rZXl3aXJlL2dvL2ludGVybmFsL3dpcmVwYmIGcHJvdG8z");
9
+ /**
10
+ * Describes the message keywire.v1.PairRequest.
11
+ * Use `create(PairRequestSchema)` to create a new message.
12
+ */
13
+ export const PairRequestSchema = /*@__PURE__*/ messageDesc(file_keywire_v1_pair, 0);
14
+ /**
15
+ * Describes the message keywire.v1.PairAccepted.
16
+ * Use `create(PairAcceptedSchema)` to create a new message.
17
+ */
18
+ export const PairAcceptedSchema = /*@__PURE__*/ messageDesc(file_keywire_v1_pair, 1);
19
+ /**
20
+ * @generated from enum keywire.v1.PairKind
21
+ */
22
+ export var PairKind;
23
+ (function (PairKind) {
24
+ /**
25
+ * @generated from enum value: PAIR_KIND_UNSPECIFIED = 0;
26
+ */
27
+ PairKind[PairKind["UNSPECIFIED"] = 0] = "UNSPECIFIED";
28
+ /**
29
+ * A phone, browser or app: becomes a member.
30
+ *
31
+ * @generated from enum value: PAIR_KIND_DEVICE = 1;
32
+ */
33
+ PairKind[PairKind["DEVICE"] = 1] = "DEVICE";
34
+ /**
35
+ * Another Node joining the Network: becomes an owner.
36
+ *
37
+ * @generated from enum value: PAIR_KIND_NODE = 2;
38
+ */
39
+ PairKind[PairKind["NODE"] = 2] = "NODE";
40
+ })(PairKind || (PairKind = {}));
41
+ /**
42
+ * Describes the enum keywire.v1.PairKind.
43
+ */
44
+ export const PairKindSchema = /*@__PURE__*/ enumDesc(file_keywire_v1_pair, 0);
45
+ //# sourceMappingURL=pair_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pair_pb.js","sourceRoot":"","sources":["../../../../src/gen/keywire/v1/pair_pb.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,iFAAiF;AACjF,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG/E;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAY,aAAa,CACxD,QAAQ,CAAC,8eAA8e,CAAC,CAAC;AAsD3f;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA4B,aAAa,CACrE,WAAW,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC;AAuBvC;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC;AAEvC;;GAEG;AACH,MAAM,CAAN,IAAY,QAmBX;AAnBD,WAAY,QAAQ;IAClB;;OAEG;IACH,qDAAe,CAAA;IAEf;;;;OAIG;IACH,2CAAU,CAAA;IAEV;;;;OAIG;IACH,uCAAQ,CAAA;AACV,CAAC,EAnBW,QAAQ,KAAR,QAAQ,QAmBnB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAsB,aAAa,CAC5D,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,116 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { GuestHello, Token } from "./guest_pb.ts";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file keywire/v1/relay.proto.
6
+ */
7
+ export declare const file_keywire_v1_relay: GenFile;
8
+ /**
9
+ * A Relay forwards between devices that cannot reach each other directly. It
10
+ * keeps no state but its live sessions and sees only ciphertext of the
11
+ * end-to-end connections it carries.
12
+ *
13
+ * A device opens a relay session over a WebSocket (subprotocol keywire.v1) to
14
+ * the Relay's URL. The dialer's first message is version(1) = 0x01 |
15
+ * pattern(1) = 0x04 | network id(32) | Noise_XX message 1, with the prologue
16
+ * "keywire" 0x00 | version | pattern | network id. Unlike a handshake between
17
+ * devices, it binds no application identifier: a Relay serves every
18
+ * application. The third XX message carries a RelayHello. The Relay admits
19
+ * the dialer when the hello's records, verified against the network id, make
20
+ * its Noise key a member or an owner; anyone else gets no reply at all. After
21
+ * the handshake the session carries the multiplexer, as a connection between
22
+ * two devices does.
23
+ *
24
+ * An owner whose records name its Node (an owner-add with node_id) is
25
+ * registered under that Node id for the session's lifetime. A newer session
26
+ * replaces it only if it is of the same Noise key, or of the same owner by a
27
+ * higher owner-add, its key rotated; another owner naming that Node is
28
+ * refused. Any admitted device reaches a registered Node of its own Network
29
+ * with a forward (service 2, as in forward.proto): the Relay opens service 3
30
+ * on the Node's session and joins the two streams.
31
+ * FORWARD_STATUS_UNREACHABLE answers a Node that is not registered.
32
+ *
33
+ * A guest (guest.proto) gives guest instead of records, with either its
34
+ * share token or an invite token and invite_signature; records and guest
35
+ * together are refused. The header's network id is then the Network being
36
+ * entered, the token's: the token is verified against it, the guest's
37
+ * records against guest.network. An anonymous guest gives no records; its
38
+ * share token must name its Noise key. The Relay checks them as the Node
39
+ * would, short of revocation, which only the Node knows, and lets the guest
40
+ * forward only to the token's node_id in the token's Network, under bounds
41
+ * of its own for guests: per Network entered and, within it, per guest
42
+ * Network, every anonymous guest counting as one.
43
+ *
44
+ * A device not yet in the Network that knows a Node's id, as from an invite,
45
+ * gives pair_node alone: no records, guest or invite. The Relay admits it
46
+ * only while that Node is registered for the header's network id, under
47
+ * bounds of its own for such devices (sessions in all, per Node, and new
48
+ * sessions per Node in a minute) and for a few minutes. Its only use is one
49
+ * forward at a time, to that Node: for it the Relay opens service 4, not 3,
50
+ * on the Node's session, where the Node takes nothing but the invite pairing
51
+ * pattern (0x02). The pairing secret and code are checked by the Node as on
52
+ * any other path; the Relay sees ciphertext only.
53
+ *
54
+ * Such a device may set knock as well, to pair without an invite. The Relay
55
+ * asks nothing more of it, and opens service 5 instead of 4, where the Node
56
+ * takes nothing but the knock pattern (0x03), if it takes knocks through
57
+ * relays at all: the person at the Node lets it in by typing the code it
58
+ * shows.
59
+ *
60
+ * @generated from message keywire.v1.RelayHello
61
+ */
62
+ export type RelayHello = Message<"keywire.v1.RelayHello"> & {
63
+ /**
64
+ * The dialer's own records and their chain to the genesis owner, as in
65
+ * Credentials; empty for a guest, which gives guest instead.
66
+ *
67
+ * @generated from field: repeated bytes records = 1;
68
+ */
69
+ records: Uint8Array[];
70
+ /**
71
+ * @generated from field: keywire.v1.GuestHello guest = 2;
72
+ */
73
+ guest?: GuestHello | undefined;
74
+ /**
75
+ * @generated from field: keywire.v1.Token invite = 3;
76
+ */
77
+ invite?: Token | undefined;
78
+ /**
79
+ * invite_signature is the invite key's over "keywire invite relay v1" 0x00
80
+ * | the handshake hash after the second XX message of this relay session
81
+ * | the guest's Network id, or an anonymous guest's Noise key.
82
+ *
83
+ * @generated from field: bytes invite_signature = 4;
84
+ */
85
+ inviteSignature: Uint8Array;
86
+ /**
87
+ * pair_node is the 16-byte id of the one Node a device not yet in the
88
+ * Network asks to pair with.
89
+ *
90
+ * @generated from field: bytes pair_node = 5;
91
+ */
92
+ pairNode: Uint8Array;
93
+ /**
94
+ * knock, with pair_node, asks to pair without an invite.
95
+ *
96
+ * @generated from field: bool knock = 6;
97
+ */
98
+ knock: boolean;
99
+ };
100
+ /**
101
+ * Describes the message keywire.v1.RelayHello.
102
+ * Use `create(RelayHelloSchema)` to create a new message.
103
+ */
104
+ export declare const RelayHelloSchema: GenMessage<RelayHello>;
105
+ /**
106
+ * RelayWelcome is the Relay's payload in the second XX message, before it
107
+ * knows who dials.
108
+ *
109
+ * @generated from message keywire.v1.RelayWelcome
110
+ */
111
+ export type RelayWelcome = Message<"keywire.v1.RelayWelcome"> & {};
112
+ /**
113
+ * Describes the message keywire.v1.RelayWelcome.
114
+ * Use `create(RelayWelcomeSchema)` to create a new message.
115
+ */
116
+ export declare const RelayWelcomeSchema: GenMessage<RelayWelcome>;
@@ -0,0 +1,20 @@
1
+ // @generated by protoc-gen-es v2.17.0 with parameter "target=ts,import_extension=ts"
2
+ // @generated from file keywire/v1/relay.proto (package keywire.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_keywire_v1_guest } from "./guest_pb.js";
6
+ /**
7
+ * Describes the file keywire/v1/relay.proto.
8
+ */
9
+ export const file_keywire_v1_relay = /*@__PURE__*/ fileDesc("ChZrZXl3aXJlL3YxL3JlbGF5LnByb3RvEgprZXl3aXJlLnYxIqMBCgpSZWxheUhlbGxvEg8KB3JlY29yZHMYASADKAwSJQoFZ3Vlc3QYAiABKAsyFi5rZXl3aXJlLnYxLkd1ZXN0SGVsbG8SIQoGaW52aXRlGAMgASgLMhEua2V5d2lyZS52MS5Ub2tlbhIYChBpbnZpdGVfc2lnbmF0dXJlGAQgASgMEhEKCXBhaXJfbm9kZRgFIAEoDBINCgVrbm9jaxgGIAEoCCIOCgxSZWxheVdlbGNvbWVCLlosZ2l0aHViLmNvbS9Cb3dsNDIva2V5d2lyZS9nby9pbnRlcm5hbC93aXJlcGJiBnByb3RvMw", [file_keywire_v1_guest]);
10
+ /**
11
+ * Describes the message keywire.v1.RelayHello.
12
+ * Use `create(RelayHelloSchema)` to create a new message.
13
+ */
14
+ export const RelayHelloSchema = /*@__PURE__*/ messageDesc(file_keywire_v1_relay, 0);
15
+ /**
16
+ * Describes the message keywire.v1.RelayWelcome.
17
+ * Use `create(RelayWelcomeSchema)` to create a new message.
18
+ */
19
+ export const RelayWelcomeSchema = /*@__PURE__*/ messageDesc(file_keywire_v1_relay, 1);
20
+ //# sourceMappingURL=relay_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relay_pb.js","sourceRoot":"","sources":["../../../../src/gen/keywire/v1/relay_pb.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,kFAAkF;AAClF,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAGtD;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAY,aAAa,CACzD,QAAQ,CAAC,gXAAgX,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAoGtZ;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2B,aAAa,CACnE,WAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAWxC;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,213 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file keywire/v1/roster.proto.
5
+ */
6
+ export declare const file_keywire_v1_roster: GenFile;
7
+ /**
8
+ * Which fields a kind requires (R), allows (O) or forbids (-):
9
+ *
10
+ * kind seq noise signing expires name endpoints node_id relays meta temporary
11
+ * member R R O R R - - - O O
12
+ * revoke R R - - - - - - - -
13
+ * owner-add R R R - R - R - - -
14
+ * owner-remove R - R - - - - - - -
15
+ * node R - - - R O - O O -
16
+ * network R - - - R - - - - -
17
+ *
18
+ * @generated from message keywire.v1.RecordPayload
19
+ */
20
+ export type RecordPayload = Message<"keywire.v1.RecordPayload"> & {
21
+ /**
22
+ * @generated from field: keywire.v1.RecordKind kind = 1;
23
+ */
24
+ kind: RecordKind;
25
+ /**
26
+ * Orders a signer's records: max(last own seq + 1, unix ms).
27
+ *
28
+ * @generated from field: uint64 seq = 2;
29
+ */
30
+ seq: bigint;
31
+ /**
32
+ * The X25519 key the record is about, 32 bytes.
33
+ *
34
+ * @generated from field: bytes subject_noise_key = 3;
35
+ */
36
+ subjectNoiseKey: Uint8Array;
37
+ /**
38
+ * The Ed25519 key the record is about, 32 bytes: an owner's, or the key a
39
+ * member signs statements with.
40
+ *
41
+ * @generated from field: bytes subject_signing_key = 4;
42
+ */
43
+ subjectSigningKey: Uint8Array;
44
+ /**
45
+ * @generated from field: uint64 expires_ms = 5;
46
+ */
47
+ expiresMs: bigint;
48
+ /**
49
+ * 1 to 64 bytes of UTF-8 without control characters.
50
+ *
51
+ * @generated from field: string name = 6;
52
+ */
53
+ name: string;
54
+ /**
55
+ * At most 6 ws:// or wss:// URLs of 6 to 128 printable ASCII bytes.
56
+ *
57
+ * @generated from field: repeated string endpoints = 7;
58
+ */
59
+ endpoints: string[];
60
+ /**
61
+ * The Node an owner-add makes an owner, 16 bytes, not all zero: its name
62
+ * in the Network, kept when its keys are replaced. Two owners with one
63
+ * node_id are both refused until one is removed.
64
+ *
65
+ * @generated from field: bytes node_id = 8;
66
+ */
67
+ nodeId: Uint8Array;
68
+ /**
69
+ * At most 2 ws:// or wss:// URLs of 6 to 128 printable ASCII bytes: Relays
70
+ * the Node keeps a session with, through which it can be reached.
71
+ *
72
+ * @generated from field: repeated string relays = 9;
73
+ */
74
+ relays: string[];
75
+ /**
76
+ * What the application says of the Node or member device, 1 to 256
77
+ * bytes: keywire only bounds it and hands it back.
78
+ *
79
+ * @generated from field: bytes meta = 10;
80
+ */
81
+ meta: Uint8Array;
82
+ /**
83
+ * A temporary member was let in for a short time, as a phone a
84
+ * conversation was handed to: no Node extends it unasked.
85
+ *
86
+ * @generated from field: bool temporary = 11;
87
+ */
88
+ temporary: boolean;
89
+ };
90
+ /**
91
+ * Describes the message keywire.v1.RecordPayload.
92
+ * Use `create(RecordPayloadSchema)` to create a new message.
93
+ */
94
+ export declare const RecordPayloadSchema: GenMessage<RecordPayload>;
95
+ /**
96
+ * Sent in the first IK handshake message: the dialer's own records and their
97
+ * chain to the genesis owner, at most 16, so a Node that has not heard of it
98
+ * yet can admit it. features are the dialer's (spec/compression.md); with
99
+ * them the payload is never empty. loopback is the dialer's view of a
100
+ * loopback socket it runs directly over, only with features
101
+ * (spec/compression.md, Loopback).
102
+ *
103
+ * @generated from message keywire.v1.Credentials
104
+ */
105
+ export type Credentials = Message<"keywire.v1.Credentials"> & {
106
+ /**
107
+ * @generated from field: repeated bytes records = 1;
108
+ */
109
+ records: Uint8Array[];
110
+ /**
111
+ * @generated from field: uint64 features = 2;
112
+ */
113
+ features: bigint;
114
+ /**
115
+ * @generated from field: bytes loopback = 3;
116
+ */
117
+ loopback: Uint8Array;
118
+ /**
119
+ * loopback_proof proves the dialer shares this host's secret, only with
120
+ * loopback (spec/compression.md, Loopback).
121
+ *
122
+ * @generated from field: bytes loopback_proof = 4;
123
+ */
124
+ loopbackProof: Uint8Array;
125
+ };
126
+ /**
127
+ * Describes the message keywire.v1.Credentials.
128
+ * Use `create(CredentialsSchema)` to create a new message.
129
+ */
130
+ export declare const CredentialsSchema: GenMessage<Credentials>;
131
+ /**
132
+ * HandshakeReply is the payload of the second IK message, sent only to a
133
+ * dialer that stated features, and only when the responder has features of
134
+ * its own to state (spec/compression.md); otherwise the payload is empty.
135
+ * loopback is the responder's view of a loopback socket it runs directly
136
+ * over, only when the dialer stated one (spec/compression.md, Loopback).
137
+ *
138
+ * @generated from message keywire.v1.HandshakeReply
139
+ */
140
+ export type HandshakeReply = Message<"keywire.v1.HandshakeReply"> & {
141
+ /**
142
+ * @generated from field: uint64 features = 1;
143
+ */
144
+ features: bigint;
145
+ /**
146
+ * @generated from field: bytes loopback = 2;
147
+ */
148
+ loopback: Uint8Array;
149
+ /**
150
+ * loopback_proof proves the responder shares this host's secret, only
151
+ * with loopback (spec/compression.md, Loopback).
152
+ *
153
+ * @generated from field: bytes loopback_proof = 3;
154
+ */
155
+ loopbackProof: Uint8Array;
156
+ };
157
+ /**
158
+ * Describes the message keywire.v1.HandshakeReply.
159
+ * Use `create(HandshakeReplySchema)` to create a new message.
160
+ */
161
+ export declare const HandshakeReplySchema: GenMessage<HandshakeReply>;
162
+ /**
163
+ * @generated from enum keywire.v1.RecordKind
164
+ */
165
+ export declare enum RecordKind {
166
+ /**
167
+ * @generated from enum value: RECORD_KIND_UNSPECIFIED = 0;
168
+ */
169
+ UNSPECIFIED = 0,
170
+ /**
171
+ * A device may connect until expires_ms.
172
+ *
173
+ * @generated from enum value: RECORD_KIND_MEMBER = 1;
174
+ */
175
+ MEMBER = 1,
176
+ /**
177
+ * A device's Noise key may never connect again.
178
+ *
179
+ * @generated from enum value: RECORD_KIND_REVOKE = 2;
180
+ */
181
+ REVOKE = 2,
182
+ /**
183
+ * A Node becomes an owner: it may sign records.
184
+ *
185
+ * @generated from enum value: RECORD_KIND_OWNER_ADD = 3;
186
+ */
187
+ OWNER_ADD = 3,
188
+ /**
189
+ * An owner's grants stop counting; its revocations keep counting.
190
+ *
191
+ * @generated from enum value: RECORD_KIND_OWNER_REMOVE = 4;
192
+ */
193
+ OWNER_REMOVE = 4,
194
+ /**
195
+ * An owner Node's own name and where to reach it, signed by itself.
196
+ *
197
+ * @generated from enum value: RECORD_KIND_NODE = 5;
198
+ */
199
+ NODE = 5,
200
+ /**
201
+ * The Network's name: what the person it belongs to is called, as other
202
+ * Networks and all of its own devices see it. Signed by an owner; of all
203
+ * owners' network records, the one with the highest seq names the Network
204
+ * (ties: the greater signer key).
205
+ *
206
+ * @generated from enum value: RECORD_KIND_NETWORK = 6;
207
+ */
208
+ NETWORK = 6
209
+ }
210
+ /**
211
+ * Describes the enum keywire.v1.RecordKind.
212
+ */
213
+ export declare const RecordKindSchema: GenEnum<RecordKind>;