@dxos/protocols 0.1.30-next.7c60cd3 → 0.1.30

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 (129) hide show
  1. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +20 -0
  2. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  3. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  4. package/dist/cjs/src/proto/gen/dxos/config.d.ts +3 -18
  5. package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
  6. package/dist/cjs/src/proto/gen/dxos/config.js.map +1 -1
  7. package/dist/cjs/src/proto/gen/dxos/echo/feed.d.ts +1 -1
  8. package/dist/cjs/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
  9. package/dist/cjs/src/proto/gen/dxos/echo/model/text.d.ts +32 -4
  10. package/dist/cjs/src/proto/gen/dxos/echo/model/text.d.ts.map +1 -1
  11. package/dist/cjs/src/proto/gen/dxos/echo/model/text.js +10 -0
  12. package/dist/cjs/src/proto/gen/dxos/echo/model/text.js.map +1 -1
  13. package/dist/cjs/src/proto/gen/dxos/mesh/presence.d.ts +5 -20
  14. package/dist/cjs/src/proto/gen/dxos/mesh/presence.d.ts.map +1 -1
  15. package/dist/cjs/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +26 -0
  16. package/dist/cjs/src/proto/gen/dxos/mesh/teleport/gossip.d.ts.map +1 -0
  17. package/dist/cjs/src/proto/gen/dxos/mesh/teleport/{presence.js → gossip.js} +1 -1
  18. package/dist/cjs/src/proto/gen/dxos/mesh/teleport/gossip.js.map +1 -0
  19. package/dist/cjs/src/proto/gen/google/protobuf.d.ts +4 -4
  20. package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
  21. package/dist/cjs/src/proto/gen/google/protobuf.js.map +1 -1
  22. package/dist/cjs/src/proto/gen/index.d.ts +10 -8
  23. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  24. package/dist/cjs/src/proto/gen/index.js +1 -1
  25. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  26. package/dist/cjs/src/testing.d.ts.map +1 -1
  27. package/dist/cjs/src/testing.js +12 -8
  28. package/dist/cjs/src/testing.js.map +1 -1
  29. package/dist/cjs/src/types.d.ts +2 -2
  30. package/dist/cjs/src/types.d.ts.map +1 -1
  31. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  32. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +20 -0
  33. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  34. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  35. package/dist/esm/src/proto/gen/dxos/config.d.ts +3 -18
  36. package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
  37. package/dist/esm/src/proto/gen/dxos/config.js.map +1 -1
  38. package/dist/esm/src/proto/gen/dxos/echo/feed.d.ts +1 -1
  39. package/dist/esm/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
  40. package/dist/esm/src/proto/gen/dxos/echo/model/text.d.ts +32 -4
  41. package/dist/esm/src/proto/gen/dxos/echo/model/text.d.ts.map +1 -1
  42. package/dist/esm/src/proto/gen/dxos/echo/model/text.js +9 -1
  43. package/dist/esm/src/proto/gen/dxos/echo/model/text.js.map +1 -1
  44. package/dist/esm/src/proto/gen/dxos/mesh/presence.d.ts +5 -20
  45. package/dist/esm/src/proto/gen/dxos/mesh/presence.d.ts.map +1 -1
  46. package/dist/esm/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +26 -0
  47. package/dist/esm/src/proto/gen/dxos/mesh/teleport/gossip.d.ts.map +1 -0
  48. package/dist/esm/src/proto/gen/dxos/mesh/teleport/gossip.js +2 -0
  49. package/dist/esm/src/proto/gen/dxos/mesh/teleport/gossip.js.map +1 -0
  50. package/dist/esm/src/proto/gen/google/protobuf.d.ts +4 -4
  51. package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
  52. package/dist/esm/src/proto/gen/google/protobuf.js.map +1 -1
  53. package/dist/esm/src/proto/gen/index.d.ts +10 -8
  54. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  55. package/dist/esm/src/proto/gen/index.js +1 -1
  56. package/dist/esm/src/proto/gen/index.js.map +1 -1
  57. package/dist/esm/src/testing.d.ts.map +1 -1
  58. package/dist/esm/src/testing.js +12 -8
  59. package/dist/esm/src/testing.js.map +1 -1
  60. package/dist/esm/src/types.d.ts +2 -2
  61. package/dist/esm/src/types.d.ts.map +1 -1
  62. package/package.json +5 -5
  63. package/src/proto/dxos/client/services.proto +15 -0
  64. package/src/proto/dxos/config.proto +10 -13
  65. package/src/proto/dxos/echo/feed.proto +1 -2
  66. package/src/proto/dxos/echo/model/text.proto +13 -4
  67. package/src/proto/dxos/iframe.proto +1 -0
  68. package/src/proto/dxos/mesh/presence.proto +5 -8
  69. package/src/proto/dxos/mesh/teleport/gossip.proto +26 -0
  70. package/src/proto/gen/dxos/bot.ts +1 -1
  71. package/src/proto/gen/dxos/client/services.ts +20 -1
  72. package/src/proto/gen/dxos/config.ts +4 -19
  73. package/src/proto/gen/dxos/devtools/host.ts +1 -1
  74. package/src/proto/gen/dxos/devtools/swarm.ts +1 -1
  75. package/src/proto/gen/dxos/echo/feed.ts +2 -2
  76. package/src/proto/gen/dxos/echo/metadata.ts +1 -1
  77. package/src/proto/gen/dxos/echo/model/document.ts +1 -1
  78. package/src/proto/gen/dxos/echo/model/messenger.ts +1 -1
  79. package/src/proto/gen/dxos/echo/model/text.ts +33 -5
  80. package/src/proto/gen/dxos/echo/object.ts +1 -1
  81. package/src/proto/gen/dxos/echo/service.ts +1 -1
  82. package/src/proto/gen/dxos/echo/snapshot.ts +1 -1
  83. package/src/proto/gen/dxos/echo/timeframe.ts +1 -1
  84. package/src/proto/gen/dxos/gravity.ts +1 -1
  85. package/src/proto/gen/dxos/halo/credentials/auth.ts +1 -1
  86. package/src/proto/gen/dxos/halo/credentials/greet.ts +1 -1
  87. package/src/proto/gen/dxos/halo/credentials/identity.ts +1 -1
  88. package/src/proto/gen/dxos/halo/credentials.ts +1 -1
  89. package/src/proto/gen/dxos/halo/invitations.ts +1 -1
  90. package/src/proto/gen/dxos/halo/keyring.ts +1 -1
  91. package/src/proto/gen/dxos/halo/keys.ts +1 -1
  92. package/src/proto/gen/dxos/halo/signed.ts +1 -1
  93. package/src/proto/gen/dxos/iframe.ts +1 -1
  94. package/src/proto/gen/dxos/keys.ts +1 -1
  95. package/src/proto/gen/dxos/mesh/bridge.ts +1 -1
  96. package/src/proto/gen/dxos/mesh/broadcast.ts +1 -1
  97. package/src/proto/gen/dxos/mesh/messaging.ts +1 -1
  98. package/src/proto/gen/dxos/mesh/muxer.ts +1 -1
  99. package/src/proto/gen/dxos/mesh/presence.ts +5 -21
  100. package/src/proto/gen/dxos/mesh/protocol.ts +1 -1
  101. package/src/proto/gen/dxos/mesh/replicator.ts +1 -1
  102. package/src/proto/gen/dxos/mesh/signal.ts +1 -1
  103. package/src/proto/gen/dxos/mesh/swarm.ts +1 -1
  104. package/src/proto/gen/dxos/mesh/teleport/auth.ts +1 -1
  105. package/src/proto/gen/dxos/mesh/teleport/control.ts +1 -1
  106. package/src/proto/gen/dxos/mesh/teleport/{presence.ts → gossip.ts} +9 -9
  107. package/src/proto/gen/dxos/mesh/teleport/notarization.ts +1 -1
  108. package/src/proto/gen/dxos/mesh/teleport/objectsync.ts +1 -1
  109. package/src/proto/gen/dxos/mesh/teleport/replicator.ts +1 -1
  110. package/src/proto/gen/dxos/registry.ts +1 -1
  111. package/src/proto/gen/dxos/rpc.ts +1 -1
  112. package/src/proto/gen/dxos/service/publisher.ts +1 -1
  113. package/src/proto/gen/dxos/service/scheduler.ts +1 -1
  114. package/src/proto/gen/dxos/service/supervisor.ts +1 -1
  115. package/src/proto/gen/dxos/type.ts +1 -1
  116. package/src/proto/gen/example/testing/data.ts +1 -1
  117. package/src/proto/gen/example/testing/rpc.ts +1 -1
  118. package/src/proto/gen/google/protobuf.ts +5 -5
  119. package/src/proto/gen/index.ts +11 -9
  120. package/src/testing.ts +12 -8
  121. package/src/types.ts +2 -2
  122. package/dist/cjs/src/proto/gen/dxos/mesh/teleport/presence.d.ts +0 -26
  123. package/dist/cjs/src/proto/gen/dxos/mesh/teleport/presence.d.ts.map +0 -1
  124. package/dist/cjs/src/proto/gen/dxos/mesh/teleport/presence.js.map +0 -1
  125. package/dist/esm/src/proto/gen/dxos/mesh/teleport/presence.d.ts +0 -26
  126. package/dist/esm/src/proto/gen/dxos/mesh/teleport/presence.d.ts.map +0 -1
  127. package/dist/esm/src/proto/gen/dxos/mesh/teleport/presence.js +0 -2
  128. package/dist/esm/src/proto/gen/dxos/mesh/teleport/presence.js.map +0 -1
  129. package/src/proto/dxos/mesh/teleport/presence.proto +0 -25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.1.30-next.7c60cd3",
3
+ "version": "0.1.30",
4
4
  "description": "Protobuf definitions for DXOS protocols.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -33,10 +33,10 @@
33
33
  "src"
34
34
  ],
35
35
  "dependencies": {
36
- "@dxos/codec-protobuf": "0.1.30-next.7c60cd3",
37
- "@dxos/hypercore": "0.1.30-next.7c60cd3",
38
- "@dxos/keys": "0.1.30-next.7c60cd3",
39
- "@dxos/timeframe": "0.1.30-next.7c60cd3"
36
+ "@dxos/codec-protobuf": "0.1.30",
37
+ "@dxos/hypercore": "0.1.30",
38
+ "@dxos/keys": "0.1.30",
39
+ "@dxos/timeframe": "0.1.30"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/debug": "^4.1.7",
@@ -9,6 +9,7 @@ import "google/protobuf/empty.proto";
9
9
  import "dxos/config.proto";
10
10
  import "dxos/halo/credentials.proto";
11
11
  import "dxos/halo/invitations.proto";
12
+ import "dxos/mesh/teleport/gossip.proto";
12
13
  import "dxos/keys.proto";
13
14
 
14
15
  // TODO(burdon): Restructure all services.
@@ -159,6 +160,17 @@ message QuerySpacesResponse {
159
160
  repeated Space spaces = 1;
160
161
  }
161
162
 
163
+ message PostMessageRequest {
164
+ dxos.keys.PublicKey space_key = 1;
165
+ string channel = 2;
166
+ google.protobuf.Any message = 3;
167
+ }
168
+
169
+ message SubscribeMessagesRequest {
170
+ dxos.keys.PublicKey space_key = 1;
171
+ string channel = 2;
172
+ }
173
+
162
174
  message WriteCredentialsRequest {
163
175
  dxos.keys.PublicKey space_key = 1;
164
176
  repeated dxos.halo.credentials.Credential credentials = 2;
@@ -173,6 +185,9 @@ service SpacesService {
173
185
  rpc UpdateSpace(UpdateSpaceRequest) returns (google.protobuf.Empty);
174
186
  rpc QuerySpaces(google.protobuf.Empty) returns (stream QuerySpacesResponse);
175
187
 
188
+ rpc PostMessage(PostMessageRequest) returns (google.protobuf.Empty);
189
+ rpc SubscribeMessages(SubscribeMessagesRequest) returns (stream dxos.mesh.teleport.gossip.GossipMessage);
190
+
176
191
  /// Write credentials to the space control feed.
177
192
  rpc WriteCredentials(WriteCredentialsRequest) returns (google.protobuf.Empty);
178
193
  /// Query credentials from the space control feed.
@@ -178,7 +178,7 @@ message Runtime {
178
178
  optional string email = 3;
179
179
  optional string certfile = 4;
180
180
  optional string keyfile = 5;
181
- optional string dnsprovider = 6;
181
+ optional string dnsprovider = 6; // TODO(burdon): dns_provider.
182
182
  }
183
183
 
184
184
  message P2P {
@@ -215,12 +215,13 @@ message Runtime {
215
215
  optional string port = 4;
216
216
  }
217
217
 
218
+ // TODO(burdon): Needs documentation/
218
219
  optional string host = 1;
219
220
  optional string port = 2;
220
221
  optional Autoupdate autoupdate = 3;
221
222
  optional Https https = 4;
222
223
  optional P2P p2p = 5;
223
- optional string confhost = 6;
224
+ optional string confhost = 6; // TODO(burdon): ?
224
225
  repeated string env = 7;
225
226
  repeated string alias = 8;
226
227
  optional Monitoring monitoring = 9;
@@ -235,7 +236,6 @@ message Runtime {
235
236
  //
236
237
  message Services {
237
238
  message Kube {
238
-
239
239
  message Endpoints {
240
240
  optional string logs = 1;
241
241
  optional string services = 2;
@@ -251,7 +251,7 @@ message Runtime {
251
251
  optional string server = 2;
252
252
  }
253
253
 
254
- // TODO(burdon): Delete.
254
+ // TODO(burdon): Delete/Rename DMG.
255
255
  message Dxns {
256
256
  /// DXNS endpoint.
257
257
  optional string server = 1;
@@ -302,18 +302,15 @@ message Runtime {
302
302
  optional string npm_access_token = 5;
303
303
  }
304
304
 
305
- message BotFactory {
306
- optional string topic = 1;
307
- optional bool persistent = 2;
308
- optional int32 retry_attempts = 3;
309
- optional int32 retry_interval = 4;
305
+ message BotHost { // TODO(burdon): Add Service suffix to all?
306
+ optional string proxy = 1;
310
307
  }
311
308
 
312
- message Publisher {
309
+ message Publisher { // TODO(burdon): Publishing.
313
310
  optional string server = 1;
314
311
  }
315
312
 
316
- message Supervisor {
313
+ message Supervisor { // TODO(burdon): Is this a service?
317
314
  optional string server = 1;
318
315
  }
319
316
 
@@ -324,9 +321,9 @@ message Runtime {
324
321
  optional Signal signal = 5;
325
322
  repeated Ice ice = 6;
326
323
  optional Machine machine = 7;
327
- optional BotFactory bot = 8;
324
+ optional BotHost bot = 8;
328
325
  optional Publisher publisher = 9;
329
- optional Supervisor supervisor = 10;
326
+ optional Supervisor supervisor = 10; // TODO(burdon): Promote to 1; start others at 10.
330
327
  }
331
328
 
332
329
  message Keys {
@@ -42,6 +42,5 @@ message CredentialsMessage {
42
42
  * A container ECHO database messages in data feeds.
43
43
  */
44
44
  message DataMessage {
45
- // TODO(dmaretskyi): Batch.
46
- dxos.echo.object.EchoObject object = 1;
45
+ dxos.echo.object.EchoObjectBatch batch = 2;
47
46
  }
@@ -6,11 +6,20 @@ syntax = "proto3";
6
6
 
7
7
  package dxos.echo.model.text;
8
8
 
9
- message Mutation {
10
- bytes update = 1;
11
- int32 client_id = 2;
9
+ message TextMutation {
10
+ optional bytes update = 1;
11
+ optional int32 client_id = 2;
12
+ optional TextKind kind = 3;
13
+ optional string field = 4;
12
14
  }
13
15
 
14
- message Snapshot {
16
+ enum TextKind {
17
+ PLAIN = 0;
18
+ RICH = 1;
19
+ }
20
+
21
+ message TextSnapshot {
15
22
  bytes data = 1;
23
+ TextKind kind = 2;
24
+ string field = 3;
16
25
  }
@@ -8,6 +8,7 @@ import "google/protobuf/empty.proto";
8
8
 
9
9
  import "dxos/keys.proto";
10
10
 
11
+ // TODO(burdon): Rename dxos.xxx.iframe?
11
12
  package dxos.iframe;
12
13
 
13
14
  message StartRequest {
@@ -10,13 +10,10 @@ package dxos.mesh.presence;
10
10
  // Import Any so that the protobuf compiler is happy that there's a substitution.
11
11
  import "google/protobuf/any.proto";
12
12
 
13
- message Alive {
14
- message Connection {
15
- bytes peer_id = 1;
16
- optional bool initiator = 2;
17
- }
13
+ message PeerState {
14
+ /// Will be used to build network graph
15
+ repeated dxos.keys.PublicKey connections = 1;
18
16
 
19
- bytes peer_id = 1;
20
- repeated Connection connections = 2;
21
- optional bytes metadata = 3;
17
+ // TODO(mykola): Remove once IdentityKey can be obtained from DeviceKey.
18
+ dxos.keys.PublicKey identity_key = 2;
22
19
  }
@@ -0,0 +1,26 @@
1
+ //
2
+ // Copyright 2022 DXOS.org
3
+ //
4
+
5
+ syntax = "proto3";
6
+
7
+ import "google/protobuf/empty.proto";
8
+ import "google/protobuf/any.proto";
9
+ import "dxos/keys.proto";
10
+
11
+ package dxos.mesh.teleport.gossip;
12
+
13
+ message GossipMessage {
14
+ dxos.keys.PublicKey peer_id = 1;
15
+ /// Used to route differnt payload types to correct listeners.
16
+ string channel_id = 2;
17
+ /// Peer tracks what had been sent by message id.
18
+ dxos.keys.PublicKey message_id = 3;
19
+ google.protobuf.Timestamp timestamp = 4;
20
+
21
+ google.protobuf.Any payload = 10;
22
+ }
23
+
24
+ service GossipService {
25
+ rpc Announce(GossipMessage) returns (google.protobuf.Empty);
26
+ }
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "./mesh/signal";
35
35
  import * as dxos_mesh_swarm from "./mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "./mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "./mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "./mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "./mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "./mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "./mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "./mesh/teleport/replicator";
42
42
  import * as dxos_registry from "./registry";
43
43
  import * as dxos_rpc from "./rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../registry";
43
43
  import * as dxos_rpc from "../rpc";
@@ -253,6 +253,23 @@ export interface UpdateSpaceRequest {
253
253
  export interface QuerySpacesResponse {
254
254
  spaces?: Space[];
255
255
  }
256
+ /**
257
+ * Defined in:
258
+ * {@link file://./../../../dxos/client/services.proto}
259
+ */
260
+ export interface PostMessageRequest {
261
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
262
+ channel: string;
263
+ message: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
264
+ }
265
+ /**
266
+ * Defined in:
267
+ * {@link file://./../../../dxos/client/services.proto}
268
+ */
269
+ export interface SubscribeMessagesRequest {
270
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
271
+ channel: string;
272
+ }
256
273
  /**
257
274
  * Defined in:
258
275
  * {@link file://./../../../dxos/client/services.proto}
@@ -276,6 +293,8 @@ export interface SpacesService {
276
293
  createSpace: (request: void) => Promise<Space>;
277
294
  updateSpace: (request: UpdateSpaceRequest) => Promise<void>;
278
295
  querySpaces: (request: void) => Stream<QuerySpacesResponse>;
296
+ postMessage: (request: PostMessageRequest) => Promise<void>;
297
+ subscribeMessages: (request: SubscribeMessagesRequest) => Stream<dxos_mesh_teleport_gossip.GossipMessage>;
279
298
  /**
280
299
  * Write credentials to the space control feed.
281
300
  */
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "./mesh/signal";
35
35
  import * as dxos_mesh_swarm from "./mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "./mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "./mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "./mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "./mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "./mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "./mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "./mesh/teleport/replicator";
42
42
  import * as dxos_registry from "./registry";
43
43
  import * as dxos_rpc from "./rpc";
@@ -767,7 +767,7 @@ export namespace Runtime {
767
767
  * Options:
768
768
  * - proto3_optional = true
769
769
  */
770
- bot?: Runtime.Services.BotFactory;
770
+ bot?: Runtime.Services.BotHost;
771
771
  /**
772
772
  * Options:
773
773
  * - proto3_optional = true
@@ -970,27 +970,12 @@ export namespace Runtime {
970
970
  * Defined in:
971
971
  * {@link file://./../../dxos/config.proto}
972
972
  */
973
- export interface BotFactory {
973
+ export interface BotHost {
974
974
  /**
975
975
  * Options:
976
976
  * - proto3_optional = true
977
977
  */
978
- topic?: string;
979
- /**
980
- * Options:
981
- * - proto3_optional = true
982
- */
983
- persistent?: boolean;
984
- /**
985
- * Options:
986
- * - proto3_optional = true
987
- */
988
- retryAttempts?: number;
989
- /**
990
- * Options:
991
- * - proto3_optional = true
992
- */
993
- retryInterval?: number;
978
+ proxy?: string;
994
979
  }
995
980
  /**
996
981
  * Defined in:
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../registry";
43
43
  import * as dxos_rpc from "../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../registry";
43
43
  import * as dxos_rpc from "../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../registry";
43
43
  import * as dxos_rpc from "../rpc";
@@ -85,5 +85,5 @@ export interface CredentialsMessage {
85
85
  * {@link file://./../../../dxos/echo/feed.proto}
86
86
  */
87
87
  export interface DataMessage {
88
- object: dxos_echo_object.EchoObject;
88
+ batch: dxos_echo_object.EchoObjectBatch;
89
89
  }
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../registry";
43
43
  import * as dxos_rpc from "../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../../registry";
43
43
  import * as dxos_rpc from "../../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../../registry";
43
43
  import * as dxos_rpc from "../../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../../registry";
43
43
  import * as dxos_rpc from "../../rpc";
@@ -52,14 +52,42 @@ import * as google_protobuf from "../../../google/protobuf";
52
52
  * Defined in:
53
53
  * {@link file://./../../../../dxos/echo/model/text.proto}
54
54
  */
55
- export interface Mutation {
56
- update: Uint8Array;
57
- clientId: number;
55
+ export interface TextMutation {
56
+ /**
57
+ * Options:
58
+ * - proto3_optional = true
59
+ */
60
+ update?: Uint8Array;
61
+ /**
62
+ * Options:
63
+ * - proto3_optional = true
64
+ */
65
+ clientId?: number;
66
+ /**
67
+ * Options:
68
+ * - proto3_optional = true
69
+ */
70
+ kind?: TextKind;
71
+ /**
72
+ * Options:
73
+ * - proto3_optional = true
74
+ */
75
+ field?: string;
58
76
  }
59
77
  /**
60
78
  * Defined in:
61
79
  * {@link file://./../../../../dxos/echo/model/text.proto}
62
80
  */
63
- export interface Snapshot {
81
+ export enum TextKind {
82
+ PLAIN = 0,
83
+ RICH = 1
84
+ }
85
+ /**
86
+ * Defined in:
87
+ * {@link file://./../../../../dxos/echo/model/text.proto}
88
+ */
89
+ export interface TextSnapshot {
64
90
  data: Uint8Array;
91
+ kind: TextKind;
92
+ field: string;
65
93
  }
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../registry";
43
43
  import * as dxos_rpc from "../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../registry";
43
43
  import * as dxos_rpc from "../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../registry";
43
43
  import * as dxos_rpc from "../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../registry";
43
43
  import * as dxos_rpc from "../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "./mesh/signal";
35
35
  import * as dxos_mesh_swarm from "./mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "./mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "./mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "./mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "./mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "./mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "./mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "./mesh/teleport/replicator";
42
42
  import * as dxos_registry from "./registry";
43
43
  import * as dxos_rpc from "./rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../../registry";
43
43
  import * as dxos_rpc from "../../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../../registry";
43
43
  import * as dxos_rpc from "../../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../../registry";
43
43
  import * as dxos_rpc from "../../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../registry";
43
43
  import * as dxos_rpc from "../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../registry";
43
43
  import * as dxos_rpc from "../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../registry";
43
43
  import * as dxos_rpc from "../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../registry";
43
43
  import * as dxos_rpc from "../rpc";
@@ -35,9 +35,9 @@ import * as dxos_mesh_signal from "../mesh/signal";
35
35
  import * as dxos_mesh_swarm from "../mesh/swarm";
36
36
  import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
37
37
  import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
38
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
38
39
  import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
39
40
  import * as dxos_mesh_teleport_objectsync from "../mesh/teleport/objectsync";
40
- import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
41
41
  import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
42
42
  import * as dxos_registry from "../registry";
43
43
  import * as dxos_rpc from "../rpc";