@dxos/protocols 0.1.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.
Files changed (399) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/dist/src/codec.test.d.ts +2 -0
  4. package/dist/src/codec.test.d.ts.map +1 -0
  5. package/dist/src/codec.test.js +21 -0
  6. package/dist/src/codec.test.js.map +1 -0
  7. package/dist/src/index.d.ts +4 -0
  8. package/dist/src/index.d.ts.map +1 -0
  9. package/dist/src/index.js +23 -0
  10. package/dist/src/index.js.map +1 -0
  11. package/dist/src/proto/gen/dxos/bot.d.ts +268 -0
  12. package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -0
  13. package/dist/src/proto/gen/dxos/bot.js +19 -0
  14. package/dist/src/proto/gen/dxos/bot.js.map +1 -0
  15. package/dist/src/proto/gen/dxos/client.d.ts +388 -0
  16. package/dist/src/proto/gen/dxos/client.d.ts.map +1 -0
  17. package/dist/src/proto/gen/dxos/client.js +15 -0
  18. package/dist/src/proto/gen/dxos/client.js.map +1 -0
  19. package/dist/src/proto/gen/dxos/config.d.ts +849 -0
  20. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -0
  21. package/dist/src/proto/gen/dxos/config.js +39 -0
  22. package/dist/src/proto/gen/dxos/config.js.map +1 -0
  23. package/dist/src/proto/gen/dxos/devtools/host.d.ts +387 -0
  24. package/dist/src/proto/gen/dxos/devtools/host.d.ts.map +1 -0
  25. package/dist/src/proto/gen/dxos/devtools/host.js +3 -0
  26. package/dist/src/proto/gen/dxos/devtools/host.js.map +1 -0
  27. package/dist/src/proto/gen/dxos/devtools/swarmLog.d.ts +50 -0
  28. package/dist/src/proto/gen/dxos/devtools/swarmLog.d.ts.map +1 -0
  29. package/dist/src/proto/gen/dxos/devtools/swarmLog.js +3 -0
  30. package/dist/src/proto/gen/dxos/devtools/swarmLog.js.map +1 -0
  31. package/dist/src/proto/gen/dxos/echo/feed.d.ts +112 -0
  32. package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -0
  33. package/dist/src/proto/gen/dxos/echo/feed.js +17 -0
  34. package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -0
  35. package/dist/src/proto/gen/dxos/echo/metadata.d.ts +64 -0
  36. package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -0
  37. package/dist/src/proto/gen/dxos/echo/metadata.js +3 -0
  38. package/dist/src/proto/gen/dxos/echo/metadata.js.map +1 -0
  39. package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts +10 -0
  40. package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts.map +1 -0
  41. package/dist/src/proto/gen/dxos/echo/model/messenger.js +3 -0
  42. package/dist/src/proto/gen/dxos/echo/model/messenger.js.map +1 -0
  43. package/dist/src/proto/gen/dxos/echo/model/object.d.ts +141 -0
  44. package/dist/src/proto/gen/dxos/echo/model/object.d.ts.map +1 -0
  45. package/dist/src/proto/gen/dxos/echo/model/object.js +40 -0
  46. package/dist/src/proto/gen/dxos/echo/model/object.js.map +1 -0
  47. package/dist/src/proto/gen/dxos/echo/model/text.d.ts +16 -0
  48. package/dist/src/proto/gen/dxos/echo/model/text.d.ts.map +1 -0
  49. package/dist/src/proto/gen/dxos/echo/model/text.js +3 -0
  50. package/dist/src/proto/gen/dxos/echo/model/text.js.map +1 -0
  51. package/dist/src/proto/gen/dxos/echo/service.d.ts +83 -0
  52. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -0
  53. package/dist/src/proto/gen/dxos/echo/service.js +3 -0
  54. package/dist/src/proto/gen/dxos/echo/service.js.map +1 -0
  55. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +133 -0
  56. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -0
  57. package/dist/src/proto/gen/dxos/echo/snapshot.js +3 -0
  58. package/dist/src/proto/gen/dxos/echo/snapshot.js.map +1 -0
  59. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +20 -0
  60. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -0
  61. package/dist/src/proto/gen/dxos/echo/timeframe.js +3 -0
  62. package/dist/src/proto/gen/dxos/echo/timeframe.js.map +1 -0
  63. package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts +36 -0
  64. package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts.map +1 -0
  65. package/dist/src/proto/gen/dxos/halo/credentials/auth.js +3 -0
  66. package/dist/src/proto/gen/dxos/halo/credentials/auth.js.map +1 -0
  67. package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts +70 -0
  68. package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts.map +1 -0
  69. package/dist/src/proto/gen/dxos/halo/credentials/greet.js +19 -0
  70. package/dist/src/proto/gen/dxos/halo/credentials/greet.js.map +1 -0
  71. package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts +18 -0
  72. package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts.map +1 -0
  73. package/dist/src/proto/gen/dxos/halo/credentials/identity.js +3 -0
  74. package/dist/src/proto/gen/dxos/halo/credentials/identity.js.map +1 -0
  75. package/dist/src/proto/gen/dxos/halo/credentials/party.d.ts +82 -0
  76. package/dist/src/proto/gen/dxos/halo/credentials/party.d.ts.map +1 -0
  77. package/dist/src/proto/gen/dxos/halo/credentials/party.js +19 -0
  78. package/dist/src/proto/gen/dxos/halo/credentials/party.js.map +1 -0
  79. package/dist/src/proto/gen/dxos/halo/credentials.d.ts +272 -0
  80. package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -0
  81. package/dist/src/proto/gen/dxos/halo/credentials.js +31 -0
  82. package/dist/src/proto/gen/dxos/halo/credentials.js.map +1 -0
  83. package/dist/src/proto/gen/dxos/halo/invitations.d.ts +117 -0
  84. package/dist/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -0
  85. package/dist/src/proto/gen/dxos/halo/invitations.js +16 -0
  86. package/dist/src/proto/gen/dxos/halo/invitations.js.map +1 -0
  87. package/dist/src/proto/gen/dxos/halo/keyring.d.ts +9 -0
  88. package/dist/src/proto/gen/dxos/halo/keyring.d.ts.map +1 -0
  89. package/dist/src/proto/gen/dxos/halo/keyring.js +3 -0
  90. package/dist/src/proto/gen/dxos/halo/keyring.js.map +1 -0
  91. package/dist/src/proto/gen/dxos/halo/keys.d.ts +88 -0
  92. package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -0
  93. package/dist/src/proto/gen/dxos/halo/keys.js +17 -0
  94. package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -0
  95. package/dist/src/proto/gen/dxos/halo/signed.d.ts +64 -0
  96. package/dist/src/proto/gen/dxos/halo/signed.d.ts.map +1 -0
  97. package/dist/src/proto/gen/dxos/halo/signed.js +3 -0
  98. package/dist/src/proto/gen/dxos/halo/signed.js.map +1 -0
  99. package/dist/src/proto/gen/dxos/iframe.d.ts +27 -0
  100. package/dist/src/proto/gen/dxos/iframe.d.ts.map +1 -0
  101. package/dist/src/proto/gen/dxos/iframe.js +3 -0
  102. package/dist/src/proto/gen/dxos/iframe.js.map +1 -0
  103. package/dist/src/proto/gen/dxos/keys.d.ts +15 -0
  104. package/dist/src/proto/gen/dxos/keys.d.ts.map +1 -0
  105. package/dist/src/proto/gen/dxos/keys.js +3 -0
  106. package/dist/src/proto/gen/dxos/keys.js.map +1 -0
  107. package/dist/src/proto/gen/dxos/mesh/bridge.d.ts +92 -0
  108. package/dist/src/proto/gen/dxos/mesh/bridge.d.ts.map +1 -0
  109. package/dist/src/proto/gen/dxos/mesh/bridge.js +15 -0
  110. package/dist/src/proto/gen/dxos/mesh/bridge.js.map +1 -0
  111. package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts +15 -0
  112. package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts.map +1 -0
  113. package/dist/src/proto/gen/dxos/mesh/broadcast.js +3 -0
  114. package/dist/src/proto/gen/dxos/mesh/broadcast.js.map +1 -0
  115. package/dist/src/proto/gen/dxos/mesh/messaging.d.ts +26 -0
  116. package/dist/src/proto/gen/dxos/mesh/messaging.d.ts.map +1 -0
  117. package/dist/src/proto/gen/dxos/mesh/messaging.js +3 -0
  118. package/dist/src/proto/gen/dxos/mesh/messaging.js.map +1 -0
  119. package/dist/src/proto/gen/dxos/mesh/presence.d.ts +28 -0
  120. package/dist/src/proto/gen/dxos/mesh/presence.d.ts.map +1 -0
  121. package/dist/src/proto/gen/dxos/mesh/presence.js +3 -0
  122. package/dist/src/proto/gen/dxos/mesh/presence.js.map +1 -0
  123. package/dist/src/proto/gen/dxos/mesh/protocol.d.ts +27 -0
  124. package/dist/src/proto/gen/dxos/mesh/protocol.d.ts.map +1 -0
  125. package/dist/src/proto/gen/dxos/mesh/protocol.js +3 -0
  126. package/dist/src/proto/gen/dxos/mesh/protocol.js.map +1 -0
  127. package/dist/src/proto/gen/dxos/mesh/replicator.d.ts +26 -0
  128. package/dist/src/proto/gen/dxos/mesh/replicator.d.ts.map +1 -0
  129. package/dist/src/proto/gen/dxos/mesh/replicator.js +3 -0
  130. package/dist/src/proto/gen/dxos/mesh/replicator.js.map +1 -0
  131. package/dist/src/proto/gen/dxos/mesh/signal.d.ts +99 -0
  132. package/dist/src/proto/gen/dxos/mesh/signal.d.ts.map +1 -0
  133. package/dist/src/proto/gen/dxos/mesh/signal.js +3 -0
  134. package/dist/src/proto/gen/dxos/mesh/signal.js.map +1 -0
  135. package/dist/src/proto/gen/dxos/mesh/swarm.d.ts +60 -0
  136. package/dist/src/proto/gen/dxos/mesh/swarm.d.ts.map +1 -0
  137. package/dist/src/proto/gen/dxos/mesh/swarm.js +3 -0
  138. package/dist/src/proto/gen/dxos/mesh/swarm.js.map +1 -0
  139. package/dist/src/proto/gen/dxos/registry.d.ts +82 -0
  140. package/dist/src/proto/gen/dxos/registry.d.ts.map +1 -0
  141. package/dist/src/proto/gen/dxos/registry.js +3 -0
  142. package/dist/src/proto/gen/dxos/registry.js.map +1 -0
  143. package/dist/src/proto/gen/dxos/rpc.d.ts +94 -0
  144. package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -0
  145. package/dist/src/proto/gen/dxos/rpc.js +16 -0
  146. package/dist/src/proto/gen/dxos/rpc.js.map +1 -0
  147. package/dist/src/proto/gen/dxos/service/publisher.d.ts +39 -0
  148. package/dist/src/proto/gen/dxos/service/publisher.d.ts.map +1 -0
  149. package/dist/src/proto/gen/dxos/service/publisher.js +3 -0
  150. package/dist/src/proto/gen/dxos/service/publisher.js.map +1 -0
  151. package/dist/src/proto/gen/dxos/service/scheduler.d.ts +300 -0
  152. package/dist/src/proto/gen/dxos/service/scheduler.d.ts.map +1 -0
  153. package/dist/src/proto/gen/dxos/service/scheduler.js +16 -0
  154. package/dist/src/proto/gen/dxos/service/scheduler.js.map +1 -0
  155. package/dist/src/proto/gen/dxos/type.d.ts +167 -0
  156. package/dist/src/proto/gen/dxos/type.d.ts.map +1 -0
  157. package/dist/src/proto/gen/dxos/type.js +3 -0
  158. package/dist/src/proto/gen/dxos/type.js.map +1 -0
  159. package/dist/src/proto/gen/example/testing/data.d.ts +23 -0
  160. package/dist/src/proto/gen/example/testing/data.d.ts.map +1 -0
  161. package/dist/src/proto/gen/example/testing/data.js +3 -0
  162. package/dist/src/proto/gen/example/testing/data.js.map +1 -0
  163. package/dist/src/proto/gen/example/testing/rpc.d.ts +67 -0
  164. package/dist/src/proto/gen/example/testing/rpc.d.ts.map +1 -0
  165. package/dist/src/proto/gen/example/testing/rpc.js +3 -0
  166. package/dist/src/proto/gen/example/testing/rpc.js.map +1 -0
  167. package/dist/src/proto/gen/google/protobuf.d.ts +38 -0
  168. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -0
  169. package/dist/src/proto/gen/google/protobuf.js +3 -0
  170. package/dist/src/proto/gen/google/protobuf.js.map +1 -0
  171. package/dist/src/proto/gen/index.d.ts +385 -0
  172. package/dist/src/proto/gen/index.d.ts.map +1 -0
  173. package/dist/src/proto/gen/index.js +11 -0
  174. package/dist/src/proto/gen/index.js.map +1 -0
  175. package/dist/src/proto/index.d.ts +2 -0
  176. package/dist/src/proto/index.d.ts.map +1 -0
  177. package/dist/src/proto/index.js +10 -0
  178. package/dist/src/proto/index.js.map +1 -0
  179. package/dist/src/proto/substitutions.d.ts +60 -0
  180. package/dist/src/proto/substitutions.d.ts.map +1 -0
  181. package/dist/src/proto/substitutions.js +37 -0
  182. package/dist/src/proto/substitutions.js.map +1 -0
  183. package/dist/src/testing.d.ts +5 -0
  184. package/dist/src/testing.d.ts.map +1 -0
  185. package/dist/src/testing.js +22 -0
  186. package/dist/src/testing.js.map +1 -0
  187. package/dist/src/types.d.ts +33 -0
  188. package/dist/src/types.d.ts.map +1 -0
  189. package/dist/src/types.js +6 -0
  190. package/dist/src/types.js.map +1 -0
  191. package/package.json +40 -0
  192. package/proto/README.md +7 -0
  193. package/proto/dxos/bot.d.ts +2 -0
  194. package/proto/dxos/bot.d.ts.map +10 -0
  195. package/proto/dxos/bot.js +2 -0
  196. package/proto/dxos/client.d.ts +2 -0
  197. package/proto/dxos/client.d.ts.map +10 -0
  198. package/proto/dxos/client.js +2 -0
  199. package/proto/dxos/config.d.ts +2 -0
  200. package/proto/dxos/config.d.ts.map +10 -0
  201. package/proto/dxos/config.js +2 -0
  202. package/proto/dxos/devtools/host.d.ts +2 -0
  203. package/proto/dxos/devtools/host.d.ts.map +10 -0
  204. package/proto/dxos/devtools/host.js +2 -0
  205. package/proto/dxos/devtools/swarmLog.d.ts +2 -0
  206. package/proto/dxos/devtools/swarmLog.d.ts.map +10 -0
  207. package/proto/dxos/devtools/swarmLog.js +2 -0
  208. package/proto/dxos/echo/feed.d.ts +2 -0
  209. package/proto/dxos/echo/feed.d.ts.map +10 -0
  210. package/proto/dxos/echo/feed.js +2 -0
  211. package/proto/dxos/echo/metadata.d.ts +2 -0
  212. package/proto/dxos/echo/metadata.d.ts.map +10 -0
  213. package/proto/dxos/echo/metadata.js +2 -0
  214. package/proto/dxos/echo/model/messenger.d.ts +2 -0
  215. package/proto/dxos/echo/model/messenger.d.ts.map +10 -0
  216. package/proto/dxos/echo/model/messenger.js +2 -0
  217. package/proto/dxos/echo/model/object.d.ts +2 -0
  218. package/proto/dxos/echo/model/object.d.ts.map +10 -0
  219. package/proto/dxos/echo/model/object.js +2 -0
  220. package/proto/dxos/echo/model/text.d.ts +2 -0
  221. package/proto/dxos/echo/model/text.d.ts.map +10 -0
  222. package/proto/dxos/echo/model/text.js +2 -0
  223. package/proto/dxos/echo/service.d.ts +2 -0
  224. package/proto/dxos/echo/service.d.ts.map +10 -0
  225. package/proto/dxos/echo/service.js +2 -0
  226. package/proto/dxos/echo/snapshot.d.ts +2 -0
  227. package/proto/dxos/echo/snapshot.d.ts.map +10 -0
  228. package/proto/dxos/echo/snapshot.js +2 -0
  229. package/proto/dxos/echo/timeframe.d.ts +2 -0
  230. package/proto/dxos/echo/timeframe.d.ts.map +10 -0
  231. package/proto/dxos/echo/timeframe.js +2 -0
  232. package/proto/dxos/google.d.ts +2 -0
  233. package/proto/dxos/google.d.ts.map +10 -0
  234. package/proto/dxos/google.js +2 -0
  235. package/proto/dxos/halo/credentials/auth.d.ts +2 -0
  236. package/proto/dxos/halo/credentials/auth.d.ts.map +10 -0
  237. package/proto/dxos/halo/credentials/auth.js +2 -0
  238. package/proto/dxos/halo/credentials/greet.d.ts +2 -0
  239. package/proto/dxos/halo/credentials/greet.d.ts.map +10 -0
  240. package/proto/dxos/halo/credentials/greet.js +2 -0
  241. package/proto/dxos/halo/credentials/identity.d.ts +2 -0
  242. package/proto/dxos/halo/credentials/identity.d.ts.map +10 -0
  243. package/proto/dxos/halo/credentials/identity.js +2 -0
  244. package/proto/dxos/halo/credentials/party.d.ts +2 -0
  245. package/proto/dxos/halo/credentials/party.d.ts.map +10 -0
  246. package/proto/dxos/halo/credentials/party.js +2 -0
  247. package/proto/dxos/halo/credentials.d.ts +2 -0
  248. package/proto/dxos/halo/credentials.d.ts.map +10 -0
  249. package/proto/dxos/halo/credentials.js +2 -0
  250. package/proto/dxos/halo/invitations.d.ts +2 -0
  251. package/proto/dxos/halo/invitations.d.ts.map +10 -0
  252. package/proto/dxos/halo/invitations.js +2 -0
  253. package/proto/dxos/halo/keyring.d.ts +2 -0
  254. package/proto/dxos/halo/keyring.d.ts.map +10 -0
  255. package/proto/dxos/halo/keyring.js +2 -0
  256. package/proto/dxos/halo/keys.d.ts +2 -0
  257. package/proto/dxos/halo/keys.d.ts.map +10 -0
  258. package/proto/dxos/halo/keys.js +2 -0
  259. package/proto/dxos/halo/signed.d.ts +2 -0
  260. package/proto/dxos/halo/signed.d.ts.map +10 -0
  261. package/proto/dxos/halo/signed.js +2 -0
  262. package/proto/dxos/iframe.d.ts +2 -0
  263. package/proto/dxos/iframe.d.ts.map +10 -0
  264. package/proto/dxos/iframe.js +2 -0
  265. package/proto/dxos/keys.d.ts +2 -0
  266. package/proto/dxos/keys.d.ts.map +10 -0
  267. package/proto/dxos/keys.js +2 -0
  268. package/proto/dxos/mesh/bridge.d.ts +2 -0
  269. package/proto/dxos/mesh/bridge.d.ts.map +10 -0
  270. package/proto/dxos/mesh/bridge.js +2 -0
  271. package/proto/dxos/mesh/broadcast.d.ts +2 -0
  272. package/proto/dxos/mesh/broadcast.d.ts.map +10 -0
  273. package/proto/dxos/mesh/broadcast.js +2 -0
  274. package/proto/dxos/mesh/messaging.d.ts +2 -0
  275. package/proto/dxos/mesh/messaging.d.ts.map +10 -0
  276. package/proto/dxos/mesh/messaging.js +2 -0
  277. package/proto/dxos/mesh/presence.d.ts +2 -0
  278. package/proto/dxos/mesh/presence.d.ts.map +10 -0
  279. package/proto/dxos/mesh/presence.js +2 -0
  280. package/proto/dxos/mesh/protocol.d.ts +2 -0
  281. package/proto/dxos/mesh/protocol.d.ts.map +10 -0
  282. package/proto/dxos/mesh/protocol.js +2 -0
  283. package/proto/dxos/mesh/replicator.d.ts +2 -0
  284. package/proto/dxos/mesh/replicator.d.ts.map +10 -0
  285. package/proto/dxos/mesh/replicator.js +2 -0
  286. package/proto/dxos/mesh/signal.d.ts +2 -0
  287. package/proto/dxos/mesh/signal.d.ts.map +10 -0
  288. package/proto/dxos/mesh/signal.js +2 -0
  289. package/proto/dxos/mesh/swarm.d.ts +2 -0
  290. package/proto/dxos/mesh/swarm.d.ts.map +10 -0
  291. package/proto/dxos/mesh/swarm.js +2 -0
  292. package/proto/dxos/registry.d.ts +2 -0
  293. package/proto/dxos/registry.d.ts.map +10 -0
  294. package/proto/dxos/registry.js +2 -0
  295. package/proto/dxos/rpc.d.ts +2 -0
  296. package/proto/dxos/rpc.d.ts.map +10 -0
  297. package/proto/dxos/rpc.js +2 -0
  298. package/proto/dxos/service/publisher.d.ts +2 -0
  299. package/proto/dxos/service/publisher.d.ts.map +10 -0
  300. package/proto/dxos/service/publisher.js +2 -0
  301. package/proto/dxos/service/scheduler.d.ts +2 -0
  302. package/proto/dxos/service/scheduler.d.ts.map +10 -0
  303. package/proto/dxos/service/scheduler.js +2 -0
  304. package/proto/dxos/type.d.ts +2 -0
  305. package/proto/dxos/type.d.ts.map +10 -0
  306. package/proto/dxos/type.js +2 -0
  307. package/proto/example/testing/data.d.ts +2 -0
  308. package/proto/example/testing/data.d.ts.map +10 -0
  309. package/proto/example/testing/data.js +2 -0
  310. package/proto/example/testing/rpc.d.ts +2 -0
  311. package/proto/example/testing/rpc.d.ts.map +10 -0
  312. package/proto/example/testing/rpc.js +2 -0
  313. package/src/codec.test.ts +24 -0
  314. package/src/index.ts +7 -0
  315. package/src/proto/dxos/bot.proto +151 -0
  316. package/src/proto/dxos/client.proto +254 -0
  317. package/src/proto/dxos/config.proto +305 -0
  318. package/src/proto/dxos/devtools/host.proto +294 -0
  319. package/src/proto/dxos/devtools/swarmLog.proto +32 -0
  320. package/src/proto/dxos/echo/feed.proto +83 -0
  321. package/src/proto/dxos/echo/metadata.proto +51 -0
  322. package/src/proto/dxos/echo/model/messenger.proto +13 -0
  323. package/src/proto/dxos/echo/model/object.proto +123 -0
  324. package/src/proto/dxos/echo/model/text.proto +16 -0
  325. package/src/proto/dxos/echo/service.proto +63 -0
  326. package/src/proto/dxos/echo/snapshot.proto +98 -0
  327. package/src/proto/dxos/echo/timeframe.proto +21 -0
  328. package/src/proto/dxos/google.proto +7 -0
  329. package/src/proto/dxos/halo/credentials/auth.proto +31 -0
  330. package/src/proto/dxos/halo/credentials/greet.proto +125 -0
  331. package/src/proto/dxos/halo/credentials/identity.proto +21 -0
  332. package/src/proto/dxos/halo/credentials/party.proto +127 -0
  333. package/src/proto/dxos/halo/credentials.proto +232 -0
  334. package/src/proto/dxos/halo/invitations.proto +90 -0
  335. package/src/proto/dxos/halo/keyring.proto +13 -0
  336. package/src/proto/dxos/halo/keys.proto +83 -0
  337. package/src/proto/dxos/halo/signed.proto +51 -0
  338. package/src/proto/dxos/iframe.proto +24 -0
  339. package/src/proto/dxos/keys.proto +15 -0
  340. package/src/proto/dxos/mesh/bridge.proto +76 -0
  341. package/src/proto/dxos/mesh/broadcast.proto +21 -0
  342. package/src/proto/dxos/mesh/messaging.proto +24 -0
  343. package/src/proto/dxos/mesh/presence.proto +22 -0
  344. package/src/proto/dxos/mesh/protocol.proto +28 -0
  345. package/src/proto/dxos/mesh/replicator.proto +19 -0
  346. package/src/proto/dxos/mesh/signal.proto +79 -0
  347. package/src/proto/dxos/mesh/swarm.proto +41 -0
  348. package/src/proto/dxos/registry.proto +60 -0
  349. package/src/proto/dxos/rpc.proto +73 -0
  350. package/src/proto/dxos/service/publisher.proto +35 -0
  351. package/src/proto/dxos/service/scheduler.proto +171 -0
  352. package/src/proto/dxos/type.proto +166 -0
  353. package/src/proto/example/testing/data.proto +20 -0
  354. package/src/proto/example/testing/rpc.proto +47 -0
  355. package/src/proto/gen/dxos/bot.ts +303 -0
  356. package/src/proto/gen/dxos/client.ts +422 -0
  357. package/src/proto/gen/dxos/config.ts +888 -0
  358. package/src/proto/gen/dxos/devtools/host.ts +419 -0
  359. package/src/proto/gen/dxos/devtools/swarmLog.ts +89 -0
  360. package/src/proto/gen/dxos/echo/feed.ts +149 -0
  361. package/src/proto/gen/dxos/echo/metadata.ts +102 -0
  362. package/src/proto/gen/dxos/echo/model/messenger.ts +50 -0
  363. package/src/proto/gen/dxos/echo/model/object.ts +181 -0
  364. package/src/proto/gen/dxos/echo/model/text.ts +56 -0
  365. package/src/proto/gen/dxos/echo/service.ts +119 -0
  366. package/src/proto/gen/dxos/echo/snapshot.ts +171 -0
  367. package/src/proto/gen/dxos/echo/timeframe.ts +60 -0
  368. package/src/proto/gen/dxos/halo/credentials/auth.ts +75 -0
  369. package/src/proto/gen/dxos/halo/credentials/greet.ts +108 -0
  370. package/src/proto/gen/dxos/halo/credentials/identity.ts +57 -0
  371. package/src/proto/gen/dxos/halo/credentials/party.ts +119 -0
  372. package/src/proto/gen/dxos/halo/credentials.ts +311 -0
  373. package/src/proto/gen/dxos/halo/invitations.ts +156 -0
  374. package/src/proto/gen/dxos/halo/keyring.ts +49 -0
  375. package/src/proto/gen/dxos/halo/keys.ts +126 -0
  376. package/src/proto/gen/dxos/halo/signed.ts +102 -0
  377. package/src/proto/gen/dxos/iframe.ts +67 -0
  378. package/src/proto/gen/dxos/keys.ts +55 -0
  379. package/src/proto/gen/dxos/mesh/bridge.ts +129 -0
  380. package/src/proto/gen/dxos/mesh/broadcast.ts +55 -0
  381. package/src/proto/gen/dxos/mesh/messaging.ts +65 -0
  382. package/src/proto/gen/dxos/mesh/presence.ts +68 -0
  383. package/src/proto/gen/dxos/mesh/protocol.ts +66 -0
  384. package/src/proto/gen/dxos/mesh/replicator.ts +65 -0
  385. package/src/proto/gen/dxos/mesh/signal.ts +137 -0
  386. package/src/proto/gen/dxos/mesh/swarm.ts +99 -0
  387. package/src/proto/gen/dxos/registry.ts +121 -0
  388. package/src/proto/gen/dxos/rpc.ts +133 -0
  389. package/src/proto/gen/dxos/service/publisher.ts +78 -0
  390. package/src/proto/gen/dxos/service/scheduler.ts +337 -0
  391. package/src/proto/gen/dxos/type.ts +206 -0
  392. package/src/proto/gen/example/testing/data.ts +63 -0
  393. package/src/proto/gen/example/testing/rpc.ts +105 -0
  394. package/src/proto/gen/google/protobuf.ts +78 -0
  395. package/src/proto/gen/index.ts +385 -0
  396. package/src/proto/index.ts +5 -0
  397. package/src/proto/substitutions.ts +39 -0
  398. package/src/testing.ts +28 -0
  399. package/src/types.ts +51 -0
@@ -0,0 +1,102 @@
1
+ import type { Stream } from "@dxos/codec-protobuf";
2
+ import substitutions from "../../../substitutions";
3
+ import * as dxos_bot from "../bot";
4
+ import * as dxos_client from "../client";
5
+ import * as dxos_config from "../config";
6
+ import * as dxos_devtools_host from "../devtools/host";
7
+ import * as dxos_devtools_swarmLog from "../devtools/swarmLog";
8
+ import * as dxos_echo_feed from "./feed";
9
+ import * as dxos_echo_model_messenger from "./model/messenger";
10
+ import * as dxos_echo_model_object from "./model/object";
11
+ import * as dxos_echo_model_text from "./model/text";
12
+ import * as dxos_echo_service from "./service";
13
+ import * as dxos_echo_snapshot from "./snapshot";
14
+ import * as dxos_echo_timeframe from "./timeframe";
15
+ import * as dxos_halo_credentials from "../halo/credentials";
16
+ import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
17
+ import * as dxos_halo_credentials_greet from "../halo/credentials/greet";
18
+ import * as dxos_halo_credentials_identity from "../halo/credentials/identity";
19
+ import * as dxos_halo_credentials_party from "../halo/credentials/party";
20
+ import * as dxos_halo_invitations from "../halo/invitations";
21
+ import * as dxos_halo_keyring from "../halo/keyring";
22
+ import * as dxos_halo_keys from "../halo/keys";
23
+ import * as dxos_halo_signed from "../halo/signed";
24
+ import * as dxos_iframe from "../iframe";
25
+ import * as dxos_keys from "../keys";
26
+ import * as dxos_mesh_bridge from "../mesh/bridge";
27
+ import * as dxos_mesh_broadcast from "../mesh/broadcast";
28
+ import * as dxos_mesh_messaging from "../mesh/messaging";
29
+ import * as dxos_mesh_presence from "../mesh/presence";
30
+ import * as dxos_mesh_protocol from "../mesh/protocol";
31
+ import * as dxos_mesh_replicator from "../mesh/replicator";
32
+ import * as dxos_mesh_signal from "../mesh/signal";
33
+ import * as dxos_mesh_swarm from "../mesh/swarm";
34
+ import * as dxos_registry from "../registry";
35
+ import * as dxos_rpc from "../rpc";
36
+ import * as dxos_service_publisher from "../service/publisher";
37
+ import * as dxos_service_scheduler from "../service/scheduler";
38
+ import * as dxos_type from "../type";
39
+ import * as example_testing_data from "../../example/testing/data";
40
+ import * as example_testing_rpc from "../../example/testing/rpc";
41
+ import * as google_protobuf from "../../google/protobuf";
42
+ /**
43
+ * Defined in:
44
+ * {@link file://./../../../dxos/echo/metadata.proto}
45
+ */
46
+ export interface EchoMetadata {
47
+ /**
48
+ * Version number that is inceremnted every time there's a breaking change to the storage schema.
49
+ * This is used to detect if the storage schema has changed since the last time the client was run.
50
+ * Loading data from a different version will might result in an error.
51
+ */
52
+ version: number;
53
+ created: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
54
+ updated: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
55
+ /**
56
+ * Options:
57
+ * - proto3_optional = true
58
+ */
59
+ identity?: dxos_halo_credentials.IdentityRecord;
60
+ /**
61
+ * List of the data parties.
62
+ */
63
+ parties?: PartyMetadata[];
64
+ }
65
+ /**
66
+ * Defined in:
67
+ * {@link file://./../../../dxos/echo/metadata.proto}
68
+ */
69
+ export interface PartyMetadata {
70
+ /**
71
+ * Party key.
72
+ */
73
+ key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
74
+ /**
75
+ * Options:
76
+ * - proto3_optional = true
77
+ */
78
+ genesisFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
79
+ /**
80
+ * Key of the wriatable control feed.
81
+ *
82
+ * Options:
83
+ * - proto3_optional = true
84
+ */
85
+ controlFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
86
+ /**
87
+ * List of all feed associated with the party.
88
+ */
89
+ feedKeys?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
90
+ /**
91
+ * Key of the wriatable data feed.
92
+ *
93
+ * Options:
94
+ * - proto3_optional = true
95
+ */
96
+ dataFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
97
+ /**
98
+ * Options:
99
+ * - proto3_optional = true
100
+ */
101
+ latestTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
102
+ }
@@ -0,0 +1,50 @@
1
+ import type { Stream } from "@dxos/codec-protobuf";
2
+ import substitutions from "../../../../substitutions";
3
+ import * as dxos_bot from "../../bot";
4
+ import * as dxos_client from "../../client";
5
+ import * as dxos_config from "../../config";
6
+ import * as dxos_devtools_host from "../../devtools/host";
7
+ import * as dxos_devtools_swarmLog from "../../devtools/swarmLog";
8
+ import * as dxos_echo_feed from "../feed";
9
+ import * as dxos_echo_metadata from "../metadata";
10
+ import * as dxos_echo_model_object from "./object";
11
+ import * as dxos_echo_model_text from "./text";
12
+ import * as dxos_echo_service from "../service";
13
+ import * as dxos_echo_snapshot from "../snapshot";
14
+ import * as dxos_echo_timeframe from "../timeframe";
15
+ import * as dxos_halo_credentials from "../../halo/credentials";
16
+ import * as dxos_halo_credentials_auth from "../../halo/credentials/auth";
17
+ import * as dxos_halo_credentials_greet from "../../halo/credentials/greet";
18
+ import * as dxos_halo_credentials_identity from "../../halo/credentials/identity";
19
+ import * as dxos_halo_credentials_party from "../../halo/credentials/party";
20
+ import * as dxos_halo_invitations from "../../halo/invitations";
21
+ import * as dxos_halo_keyring from "../../halo/keyring";
22
+ import * as dxos_halo_keys from "../../halo/keys";
23
+ import * as dxos_halo_signed from "../../halo/signed";
24
+ import * as dxos_iframe from "../../iframe";
25
+ import * as dxos_keys from "../../keys";
26
+ import * as dxos_mesh_bridge from "../../mesh/bridge";
27
+ import * as dxos_mesh_broadcast from "../../mesh/broadcast";
28
+ import * as dxos_mesh_messaging from "../../mesh/messaging";
29
+ import * as dxos_mesh_presence from "../../mesh/presence";
30
+ import * as dxos_mesh_protocol from "../../mesh/protocol";
31
+ import * as dxos_mesh_replicator from "../../mesh/replicator";
32
+ import * as dxos_mesh_signal from "../../mesh/signal";
33
+ import * as dxos_mesh_swarm from "../../mesh/swarm";
34
+ import * as dxos_registry from "../../registry";
35
+ import * as dxos_rpc from "../../rpc";
36
+ import * as dxos_service_publisher from "../../service/publisher";
37
+ import * as dxos_service_scheduler from "../../service/scheduler";
38
+ import * as dxos_type from "../../type";
39
+ import * as example_testing_data from "../../../example/testing/data";
40
+ import * as example_testing_rpc from "../../../example/testing/rpc";
41
+ import * as google_protobuf from "../../../google/protobuf";
42
+ /**
43
+ * Defined in:
44
+ * {@link file://./../../../../dxos/echo/model/messenger.proto}
45
+ */
46
+ export interface Message {
47
+ timestamp: string;
48
+ text: string;
49
+ sender: string;
50
+ }
@@ -0,0 +1,181 @@
1
+ import type { Stream } from "@dxos/codec-protobuf";
2
+ import substitutions from "../../../../substitutions";
3
+ import * as dxos_bot from "../../bot";
4
+ import * as dxos_client from "../../client";
5
+ import * as dxos_config from "../../config";
6
+ import * as dxos_devtools_host from "../../devtools/host";
7
+ import * as dxos_devtools_swarmLog from "../../devtools/swarmLog";
8
+ import * as dxos_echo_feed from "../feed";
9
+ import * as dxos_echo_metadata from "../metadata";
10
+ import * as dxos_echo_model_messenger from "./messenger";
11
+ import * as dxos_echo_model_text from "./text";
12
+ import * as dxos_echo_service from "../service";
13
+ import * as dxos_echo_snapshot from "../snapshot";
14
+ import * as dxos_echo_timeframe from "../timeframe";
15
+ import * as dxos_halo_credentials from "../../halo/credentials";
16
+ import * as dxos_halo_credentials_auth from "../../halo/credentials/auth";
17
+ import * as dxos_halo_credentials_greet from "../../halo/credentials/greet";
18
+ import * as dxos_halo_credentials_identity from "../../halo/credentials/identity";
19
+ import * as dxos_halo_credentials_party from "../../halo/credentials/party";
20
+ import * as dxos_halo_invitations from "../../halo/invitations";
21
+ import * as dxos_halo_keyring from "../../halo/keyring";
22
+ import * as dxos_halo_keys from "../../halo/keys";
23
+ import * as dxos_halo_signed from "../../halo/signed";
24
+ import * as dxos_iframe from "../../iframe";
25
+ import * as dxos_keys from "../../keys";
26
+ import * as dxos_mesh_bridge from "../../mesh/bridge";
27
+ import * as dxos_mesh_broadcast from "../../mesh/broadcast";
28
+ import * as dxos_mesh_messaging from "../../mesh/messaging";
29
+ import * as dxos_mesh_presence from "../../mesh/presence";
30
+ import * as dxos_mesh_protocol from "../../mesh/protocol";
31
+ import * as dxos_mesh_replicator from "../../mesh/replicator";
32
+ import * as dxos_mesh_signal from "../../mesh/signal";
33
+ import * as dxos_mesh_swarm from "../../mesh/swarm";
34
+ import * as dxos_registry from "../../registry";
35
+ import * as dxos_rpc from "../../rpc";
36
+ import * as dxos_service_publisher from "../../service/publisher";
37
+ import * as dxos_service_scheduler from "../../service/scheduler";
38
+ import * as dxos_type from "../../type";
39
+ import * as example_testing_data from "../../../example/testing/data";
40
+ import * as example_testing_rpc from "../../../example/testing/rpc";
41
+ import * as google_protobuf from "../../../google/protobuf";
42
+ /**
43
+ * Generic value.
44
+ *
45
+ * Defined in:
46
+ * {@link file://./../../../../dxos/echo/model/object.proto}
47
+ */
48
+ export interface Value {
49
+ null?: boolean;
50
+ bool?: boolean;
51
+ int?: string;
52
+ float?: number;
53
+ string?: string;
54
+ timestamp?: string;
55
+ datetime?: string;
56
+ bytes?: Uint8Array;
57
+ object?: KeyValueObject;
58
+ array?: Array;
59
+ }
60
+ /**
61
+ * Ordered collection of values.
62
+ *
63
+ * Defined in:
64
+ * {@link file://./../../../../dxos/echo/model/object.proto}
65
+ */
66
+ export interface Array {
67
+ values?: Value[];
68
+ }
69
+ /**
70
+ * Key x Value tuple.
71
+ *
72
+ * Defined in:
73
+ * {@link file://./../../../../dxos/echo/model/object.proto}
74
+ */
75
+ export interface KeyValue {
76
+ key: string;
77
+ value: Value;
78
+ }
79
+ /**
80
+ * Object data definition.
81
+ *
82
+ * Defined in:
83
+ * {@link file://./../../../../dxos/echo/model/object.proto}
84
+ */
85
+ export interface KeyValueObject {
86
+ properties?: KeyValue[];
87
+ }
88
+ /**
89
+ * Query predicate.
90
+ *
91
+ * Defined in:
92
+ * {@link file://./../../../../dxos/echo/model/object.proto}
93
+ */
94
+ export interface Predicate {
95
+ op: Predicate.Operation;
96
+ /**
97
+ * Options:
98
+ * - proto3_optional = true
99
+ */
100
+ key?: string;
101
+ /**
102
+ * Options:
103
+ * - proto3_optional = true
104
+ */
105
+ value?: Value;
106
+ predicates?: Predicate[];
107
+ }
108
+ export namespace Predicate {
109
+ /**
110
+ * Defined in:
111
+ * {@link file://./../../../../dxos/echo/model/object.proto}
112
+ */
113
+ export enum Operation {
114
+ OR = 0,
115
+ AND = 1,
116
+ NOT = 2,
117
+ IN = 10,
118
+ EQUALS = 11,
119
+ GTE = 12,
120
+ GT = 13,
121
+ LTE = 14,
122
+ LT = 15,
123
+ PREFIX_MATCH = 20,
124
+ TEXT_MATCH = 21
125
+ }
126
+ }
127
+ /**
128
+ * Query.
129
+ *
130
+ * Defined in:
131
+ * {@link file://./../../../../dxos/echo/model/object.proto}
132
+ */
133
+ export interface Query {
134
+ root: Predicate;
135
+ }
136
+ /**
137
+ * State snapshot.
138
+ *
139
+ * Defined in:
140
+ * {@link file://./../../../../dxos/echo/model/object.proto}
141
+ */
142
+ export interface ObjectSnapshot {
143
+ root: Value;
144
+ }
145
+ /**
146
+ * Atomic mutation.
147
+ *
148
+ * Defined in:
149
+ * {@link file://./../../../../dxos/echo/model/object.proto}
150
+ */
151
+ export interface ObjectMutation {
152
+ operation: ObjectMutation.Operation;
153
+ key: string;
154
+ /**
155
+ * Options:
156
+ * - proto3_optional = true
157
+ */
158
+ value?: Value;
159
+ }
160
+ export namespace ObjectMutation {
161
+ /**
162
+ * Defined in:
163
+ * {@link file://./../../../../dxos/echo/model/object.proto}
164
+ */
165
+ export enum Operation {
166
+ SET = 0,
167
+ DELETE = 1,
168
+ ARRAY_PUSH = 2,
169
+ SET_ADD = 4,
170
+ SET_DELETE = 5
171
+ }
172
+ }
173
+ /**
174
+ * Set of mutations.
175
+ *
176
+ * Defined in:
177
+ * {@link file://./../../../../dxos/echo/model/object.proto}
178
+ */
179
+ export interface ObjectMutationSet {
180
+ mutations?: ObjectMutation[];
181
+ }
@@ -0,0 +1,56 @@
1
+ import type { Stream } from "@dxos/codec-protobuf";
2
+ import substitutions from "../../../../substitutions";
3
+ import * as dxos_bot from "../../bot";
4
+ import * as dxos_client from "../../client";
5
+ import * as dxos_config from "../../config";
6
+ import * as dxos_devtools_host from "../../devtools/host";
7
+ import * as dxos_devtools_swarmLog from "../../devtools/swarmLog";
8
+ import * as dxos_echo_feed from "../feed";
9
+ import * as dxos_echo_metadata from "../metadata";
10
+ import * as dxos_echo_model_messenger from "./messenger";
11
+ import * as dxos_echo_model_object from "./object";
12
+ import * as dxos_echo_service from "../service";
13
+ import * as dxos_echo_snapshot from "../snapshot";
14
+ import * as dxos_echo_timeframe from "../timeframe";
15
+ import * as dxos_halo_credentials from "../../halo/credentials";
16
+ import * as dxos_halo_credentials_auth from "../../halo/credentials/auth";
17
+ import * as dxos_halo_credentials_greet from "../../halo/credentials/greet";
18
+ import * as dxos_halo_credentials_identity from "../../halo/credentials/identity";
19
+ import * as dxos_halo_credentials_party from "../../halo/credentials/party";
20
+ import * as dxos_halo_invitations from "../../halo/invitations";
21
+ import * as dxos_halo_keyring from "../../halo/keyring";
22
+ import * as dxos_halo_keys from "../../halo/keys";
23
+ import * as dxos_halo_signed from "../../halo/signed";
24
+ import * as dxos_iframe from "../../iframe";
25
+ import * as dxos_keys from "../../keys";
26
+ import * as dxos_mesh_bridge from "../../mesh/bridge";
27
+ import * as dxos_mesh_broadcast from "../../mesh/broadcast";
28
+ import * as dxos_mesh_messaging from "../../mesh/messaging";
29
+ import * as dxos_mesh_presence from "../../mesh/presence";
30
+ import * as dxos_mesh_protocol from "../../mesh/protocol";
31
+ import * as dxos_mesh_replicator from "../../mesh/replicator";
32
+ import * as dxos_mesh_signal from "../../mesh/signal";
33
+ import * as dxos_mesh_swarm from "../../mesh/swarm";
34
+ import * as dxos_registry from "../../registry";
35
+ import * as dxos_rpc from "../../rpc";
36
+ import * as dxos_service_publisher from "../../service/publisher";
37
+ import * as dxos_service_scheduler from "../../service/scheduler";
38
+ import * as dxos_type from "../../type";
39
+ import * as example_testing_data from "../../../example/testing/data";
40
+ import * as example_testing_rpc from "../../../example/testing/rpc";
41
+ import * as google_protobuf from "../../../google/protobuf";
42
+ /**
43
+ * Defined in:
44
+ * {@link file://./../../../../dxos/echo/model/text.proto}
45
+ */
46
+ export interface Mutation {
47
+ update: Uint8Array;
48
+ clientId: number;
49
+ }
50
+ /**
51
+ * Defined in:
52
+ * {@link file://./../../../../dxos/echo/model/text.proto}
53
+ */
54
+ export interface Snapshot {
55
+ data: Uint8Array;
56
+ }
@@ -0,0 +1,119 @@
1
+ import type { Stream } from "@dxos/codec-protobuf";
2
+ import substitutions from "../../../substitutions";
3
+ import * as dxos_bot from "../bot";
4
+ import * as dxos_client from "../client";
5
+ import * as dxos_config from "../config";
6
+ import * as dxos_devtools_host from "../devtools/host";
7
+ import * as dxos_devtools_swarmLog from "../devtools/swarmLog";
8
+ import * as dxos_echo_feed from "./feed";
9
+ import * as dxos_echo_metadata from "./metadata";
10
+ import * as dxos_echo_model_messenger from "./model/messenger";
11
+ import * as dxos_echo_model_object from "./model/object";
12
+ import * as dxos_echo_model_text from "./model/text";
13
+ import * as dxos_echo_snapshot from "./snapshot";
14
+ import * as dxos_echo_timeframe from "./timeframe";
15
+ import * as dxos_halo_credentials from "../halo/credentials";
16
+ import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
17
+ import * as dxos_halo_credentials_greet from "../halo/credentials/greet";
18
+ import * as dxos_halo_credentials_identity from "../halo/credentials/identity";
19
+ import * as dxos_halo_credentials_party from "../halo/credentials/party";
20
+ import * as dxos_halo_invitations from "../halo/invitations";
21
+ import * as dxos_halo_keyring from "../halo/keyring";
22
+ import * as dxos_halo_keys from "../halo/keys";
23
+ import * as dxos_halo_signed from "../halo/signed";
24
+ import * as dxos_iframe from "../iframe";
25
+ import * as dxos_keys from "../keys";
26
+ import * as dxos_mesh_bridge from "../mesh/bridge";
27
+ import * as dxos_mesh_broadcast from "../mesh/broadcast";
28
+ import * as dxos_mesh_messaging from "../mesh/messaging";
29
+ import * as dxos_mesh_presence from "../mesh/presence";
30
+ import * as dxos_mesh_protocol from "../mesh/protocol";
31
+ import * as dxos_mesh_replicator from "../mesh/replicator";
32
+ import * as dxos_mesh_signal from "../mesh/signal";
33
+ import * as dxos_mesh_swarm from "../mesh/swarm";
34
+ import * as dxos_registry from "../registry";
35
+ import * as dxos_rpc from "../rpc";
36
+ import * as dxos_service_publisher from "../service/publisher";
37
+ import * as dxos_service_scheduler from "../service/scheduler";
38
+ import * as dxos_type from "../type";
39
+ import * as example_testing_data from "../../example/testing/data";
40
+ import * as example_testing_rpc from "../../example/testing/rpc";
41
+ import * as google_protobuf from "../../google/protobuf";
42
+ /**
43
+ * Defined in:
44
+ * {@link file://./../../../dxos/echo/service.proto}
45
+ */
46
+ export interface SubscribeEntitySetRequest {
47
+ partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
48
+ }
49
+ /**
50
+ * Defined in:
51
+ * {@link file://./../../../dxos/echo/service.proto}
52
+ */
53
+ export interface SubscribeEntitySetResponse {
54
+ added?: dxos_echo_feed.EchoEnvelope[];
55
+ deleted?: dxos_echo_feed.EchoEnvelope[];
56
+ }
57
+ /**
58
+ * Defined in:
59
+ * {@link file://./../../../dxos/echo/service.proto}
60
+ */
61
+ export interface SubscribeEntityStreamRequest {
62
+ partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
63
+ itemId: string;
64
+ }
65
+ /**
66
+ * Defined in:
67
+ * {@link file://./../../../dxos/echo/service.proto}
68
+ */
69
+ export interface SubscribeEntityStreamResponse {
70
+ snapshot?: dxos_echo_snapshot.ItemSnapshot;
71
+ mutation?: SubscribeEntityStreamResponse.Mutation;
72
+ }
73
+ export namespace SubscribeEntityStreamResponse {
74
+ /**
75
+ * Defined in:
76
+ * {@link file://./../../../dxos/echo/service.proto}
77
+ */
78
+ export interface Mutation {
79
+ data: dxos_echo_feed.EchoEnvelope;
80
+ meta: SubscribeEntityStreamResponse.Mutation.Metadata;
81
+ }
82
+ export namespace Mutation {
83
+ /**
84
+ * Defined in:
85
+ * {@link file://./../../../dxos/echo/service.proto}
86
+ */
87
+ export interface Metadata {
88
+ feedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
89
+ memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
90
+ seq: number;
91
+ timeframe: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
92
+ }
93
+ }
94
+ }
95
+ /**
96
+ * Defined in:
97
+ * {@link file://./../../../dxos/echo/service.proto}
98
+ */
99
+ export interface WriteRequest {
100
+ partyKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
101
+ mutation: dxos_echo_feed.EchoEnvelope;
102
+ }
103
+ /**
104
+ * Defined in:
105
+ * {@link file://./../../../dxos/echo/service.proto}
106
+ */
107
+ export interface MutationReceipt {
108
+ feedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
109
+ seq: number;
110
+ }
111
+ /**
112
+ * Defined in:
113
+ * {@link file://./../../../dxos/echo/service.proto}
114
+ */
115
+ export interface DataService {
116
+ subscribeEntitySet: (request: SubscribeEntitySetRequest) => Stream<SubscribeEntitySetResponse>;
117
+ subscribeEntityStream: (request: SubscribeEntityStreamRequest) => Stream<SubscribeEntityStreamResponse>;
118
+ write: (request: WriteRequest) => Promise<MutationReceipt>;
119
+ }
@@ -0,0 +1,171 @@
1
+ import type { Stream } from "@dxos/codec-protobuf";
2
+ import substitutions from "../../../substitutions";
3
+ import * as dxos_bot from "../bot";
4
+ import * as dxos_client from "../client";
5
+ import * as dxos_config from "../config";
6
+ import * as dxos_devtools_host from "../devtools/host";
7
+ import * as dxos_devtools_swarmLog from "../devtools/swarmLog";
8
+ import * as dxos_echo_feed from "./feed";
9
+ import * as dxos_echo_metadata from "./metadata";
10
+ import * as dxos_echo_model_messenger from "./model/messenger";
11
+ import * as dxos_echo_model_object from "./model/object";
12
+ import * as dxos_echo_model_text from "./model/text";
13
+ import * as dxos_echo_service from "./service";
14
+ import * as dxos_echo_timeframe from "./timeframe";
15
+ import * as dxos_halo_credentials from "../halo/credentials";
16
+ import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
17
+ import * as dxos_halo_credentials_greet from "../halo/credentials/greet";
18
+ import * as dxos_halo_credentials_identity from "../halo/credentials/identity";
19
+ import * as dxos_halo_credentials_party from "../halo/credentials/party";
20
+ import * as dxos_halo_invitations from "../halo/invitations";
21
+ import * as dxos_halo_keyring from "../halo/keyring";
22
+ import * as dxos_halo_keys from "../halo/keys";
23
+ import * as dxos_halo_signed from "../halo/signed";
24
+ import * as dxos_iframe from "../iframe";
25
+ import * as dxos_keys from "../keys";
26
+ import * as dxos_mesh_bridge from "../mesh/bridge";
27
+ import * as dxos_mesh_broadcast from "../mesh/broadcast";
28
+ import * as dxos_mesh_messaging from "../mesh/messaging";
29
+ import * as dxos_mesh_presence from "../mesh/presence";
30
+ import * as dxos_mesh_protocol from "../mesh/protocol";
31
+ import * as dxos_mesh_replicator from "../mesh/replicator";
32
+ import * as dxos_mesh_signal from "../mesh/signal";
33
+ import * as dxos_mesh_swarm from "../mesh/swarm";
34
+ import * as dxos_registry from "../registry";
35
+ import * as dxos_rpc from "../rpc";
36
+ import * as dxos_service_publisher from "../service/publisher";
37
+ import * as dxos_service_scheduler from "../service/scheduler";
38
+ import * as dxos_type from "../type";
39
+ import * as example_testing_data from "../../example/testing/data";
40
+ import * as example_testing_rpc from "../../example/testing/rpc";
41
+ import * as google_protobuf from "../../google/protobuf";
42
+ /**
43
+ * Defined in:
44
+ * {@link file://./../../../dxos/echo/snapshot.proto}
45
+ */
46
+ export interface PartySnapshot {
47
+ partyKey: Uint8Array;
48
+ /**
49
+ * Options:
50
+ * - proto3_optional = true
51
+ */
52
+ timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
53
+ /**
54
+ * Options:
55
+ * - proto3_optional = true
56
+ */
57
+ timestamp?: number;
58
+ halo: HaloStateSnapshot;
59
+ database: DatabaseSnapshot;
60
+ }
61
+ /**
62
+ * Defined in:
63
+ * {@link file://./../../../dxos/echo/snapshot.proto}
64
+ */
65
+ export interface HaloStateSnapshot {
66
+ messages?: dxos_halo_signed.Message[];
67
+ }
68
+ /**
69
+ * Defined in:
70
+ * {@link file://./../../../dxos/echo/snapshot.proto}
71
+ */
72
+ export interface DatabaseSnapshot {
73
+ items?: ItemSnapshot[];
74
+ links?: LinkSnapshot[];
75
+ }
76
+ /**
77
+ * Defined in:
78
+ * {@link file://./../../../dxos/echo/snapshot.proto}
79
+ */
80
+ export interface ItemSnapshot {
81
+ /**
82
+ * Options:
83
+ * - proto3_optional = true
84
+ */
85
+ itemId?: string;
86
+ /**
87
+ * Options:
88
+ * - proto3_optional = true
89
+ */
90
+ itemType?: string;
91
+ modelType: string;
92
+ /**
93
+ * Options:
94
+ * - proto3_optional = true
95
+ */
96
+ modelVersion?: string;
97
+ /**
98
+ * Options:
99
+ * - proto3_optional = true
100
+ */
101
+ parentId?: string;
102
+ /**
103
+ * Options:
104
+ * - proto3_optional = true
105
+ */
106
+ model?: ModelSnapshot;
107
+ }
108
+ /**
109
+ * Defined in:
110
+ * {@link file://./../../../dxos/echo/snapshot.proto}
111
+ */
112
+ export interface LinkSnapshot {
113
+ /**
114
+ * Options:
115
+ * - proto3_optional = true
116
+ */
117
+ linkId?: string;
118
+ /**
119
+ * Options:
120
+ * - proto3_optional = true
121
+ */
122
+ linkType?: string;
123
+ modelType: string;
124
+ /**
125
+ * Options:
126
+ * - proto3_optional = true
127
+ */
128
+ modelVersion?: string;
129
+ source: string;
130
+ target: string;
131
+ /**
132
+ * Options:
133
+ * - proto3_optional = true
134
+ */
135
+ model?: ModelSnapshot;
136
+ }
137
+ /**
138
+ * Defined in:
139
+ * {@link file://./../../../dxos/echo/snapshot.proto}
140
+ */
141
+ export interface ModelSnapshot {
142
+ /**
143
+ * Encoded model snapshot (defined by the model's codec).
144
+ * If undefined the state machine will be initialized with it's default state.
145
+ *
146
+ * Options:
147
+ * - proto3_optional = true
148
+ */
149
+ snapshot?: Uint8Array;
150
+ /**
151
+ * Mutations to be applied on top of the snapshot, or on top of initial state if the snapshot is undefined.
152
+ */
153
+ mutations?: ModelMutation[];
154
+ }
155
+ /**
156
+ * Defined in:
157
+ * {@link file://./../../../dxos/echo/snapshot.proto}
158
+ */
159
+ export interface ModelMutation {
160
+ mutation: Uint8Array;
161
+ meta: ModelMutationMeta;
162
+ }
163
+ /**
164
+ * Defined in:
165
+ * {@link file://./../../../dxos/echo/snapshot.proto}
166
+ */
167
+ export interface ModelMutationMeta {
168
+ feedKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
169
+ seq: number;
170
+ memberKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
171
+ }