@dxos/protocols 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/bot.js.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.d.ts +40 -1
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js +11 -1
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/src/proto/gen/dxos/client.d.ts +1 -1
- package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +54 -0
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/host.d.ts +5 -1
- package/dist/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts +5 -0
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/messenger.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/object.d.ts +26 -1
- package/dist/src/proto/gen/dxos/echo/model/object.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/object.js +1 -0
- package/dist/src/proto/gen/dxos/echo/model/object.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/model/text.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +5 -1
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/gravity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/greet.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/greet.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials/identity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/credentials.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/invitations.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keyring.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
- package/dist/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/iframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/bridge.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/bridge.js.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/broadcast.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/messaging.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/muxer.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/presence.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/protocol.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/replicator.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/signal.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/swarm.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/control.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/objectsync.d.ts +34 -0
- package/dist/src/proto/gen/dxos/mesh/teleport/objectsync.d.ts.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/teleport/objectsync.js +3 -0
- package/dist/src/proto/gen/dxos/mesh/teleport/objectsync.js.map +1 -0
- package/dist/src/proto/gen/dxos/mesh/teleport/presence.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/mesh/teleport/replicator.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/registry.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
- package/dist/src/proto/gen/dxos/service/publisher.d.ts +26 -0
- package/dist/src/proto/gen/dxos/service/publisher.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/service/scheduler.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/service/scheduler.js.map +1 -1
- package/dist/src/proto/gen/dxos/type.d.ts.map +1 -1
- package/dist/src/proto/gen/example/testing/data.d.ts +7 -0
- package/dist/src/proto/gen/example/testing/data.d.ts.map +1 -1
- package/dist/src/proto/gen/example/testing/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/src/proto/gen/index.d.ts +17 -0
- package/dist/src/proto/gen/index.d.ts.map +1 -1
- package/dist/src/proto/gen/index.js +1 -1
- package/dist/src/proto/gen/index.js.map +1 -1
- package/package.json +5 -5
- package/proto/dxos/mesh/teleport/objectsync.d.ts +5 -0
- package/proto/dxos/mesh/teleport/objectsync.js +5 -0
- package/src/proto/dxos/client/services.proto +34 -0
- package/src/proto/dxos/client.proto +3 -2
- package/src/proto/dxos/config.proto +27 -7
- package/src/proto/dxos/devtools/host.proto +1 -1
- package/src/proto/dxos/echo/metadata.proto +2 -0
- package/src/proto/dxos/echo/model/object.proto +19 -0
- package/src/proto/dxos/echo/snapshot.proto +1 -1
- package/src/proto/dxos/mesh/teleport/objectsync.proto +32 -0
- package/src/proto/dxos/service/publisher.proto +17 -0
- package/src/proto/example/testing/data.proto +4 -0
- package/src/proto/gen/dxos/bot.ts +1 -0
- package/src/proto/gen/dxos/client/services.ts +41 -1
- package/src/proto/gen/dxos/client.ts +2 -1
- package/src/proto/gen/dxos/config.ts +55 -0
- package/src/proto/gen/dxos/devtools/host.ts +6 -1
- package/src/proto/gen/dxos/devtools/swarm.ts +1 -0
- package/src/proto/gen/dxos/echo/feed.ts +1 -0
- package/src/proto/gen/dxos/echo/metadata.ts +6 -0
- package/src/proto/gen/dxos/echo/model/messenger.ts +1 -0
- package/src/proto/gen/dxos/echo/model/object.ts +27 -1
- package/src/proto/gen/dxos/echo/model/text.ts +1 -0
- package/src/proto/gen/dxos/echo/service.ts +1 -0
- package/src/proto/gen/dxos/echo/snapshot.ts +6 -1
- package/src/proto/gen/dxos/echo/timeframe.ts +1 -0
- package/src/proto/gen/dxos/gravity.ts +1 -0
- package/src/proto/gen/dxos/halo/credentials/auth.ts +1 -0
- package/src/proto/gen/dxos/halo/credentials/greet.ts +1 -0
- package/src/proto/gen/dxos/halo/credentials/identity.ts +1 -0
- package/src/proto/gen/dxos/halo/credentials.ts +1 -0
- package/src/proto/gen/dxos/halo/invitations.ts +1 -0
- package/src/proto/gen/dxos/halo/keyring.ts +1 -0
- package/src/proto/gen/dxos/halo/keys.ts +1 -0
- package/src/proto/gen/dxos/halo/signed.ts +1 -0
- package/src/proto/gen/dxos/iframe.ts +1 -0
- package/src/proto/gen/dxos/keys.ts +1 -0
- package/src/proto/gen/dxos/mesh/bridge.ts +1 -0
- package/src/proto/gen/dxos/mesh/broadcast.ts +1 -0
- package/src/proto/gen/dxos/mesh/messaging.ts +1 -0
- package/src/proto/gen/dxos/mesh/muxer.ts +1 -0
- package/src/proto/gen/dxos/mesh/presence.ts +1 -0
- package/src/proto/gen/dxos/mesh/protocol.ts +1 -0
- package/src/proto/gen/dxos/mesh/replicator.ts +1 -0
- package/src/proto/gen/dxos/mesh/signal.ts +1 -0
- package/src/proto/gen/dxos/mesh/swarm.ts +1 -0
- package/src/proto/gen/dxos/mesh/teleport/auth.ts +1 -0
- package/src/proto/gen/dxos/mesh/teleport/control.ts +1 -0
- package/src/proto/gen/dxos/mesh/teleport/objectsync.ts +80 -0
- package/src/proto/gen/dxos/mesh/teleport/presence.ts +1 -0
- package/src/proto/gen/dxos/mesh/teleport/replicator.ts +1 -0
- package/src/proto/gen/dxos/registry.ts +1 -0
- package/src/proto/gen/dxos/rpc.ts +1 -0
- package/src/proto/gen/dxos/service/publisher.ts +27 -0
- package/src/proto/gen/dxos/service/scheduler.ts +1 -0
- package/src/proto/gen/dxos/type.ts +1 -0
- package/src/proto/gen/example/testing/data.ts +8 -0
- package/src/proto/gen/example/testing/rpc.ts +1 -0
- package/src/proto/gen/google/protobuf.ts +1 -0
- package/src/proto/gen/index.ts +18 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/proto/gen/index.ts"],"names":[],"mappings":";;;;;;AAAA,yDAA8C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/proto/gen/index.ts"],"names":[],"mappings":";;;;;;AAAA,yDAA8C;AAgD9C,qEAA6C;AA2ZhC,QAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,mljIAAmljI,CAAC,CAAC;AAC7mjI,QAAA,MAAM,GAAG,uBAAM,CAAC,QAAQ,CAAkB,kBAAU,EAAE,uBAAa,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protocols",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "Protobuf definitions for DXOS protocols.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"src"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@dxos/codec-protobuf": "0.1.
|
|
18
|
-
"@dxos/hypercore": "0.1.
|
|
19
|
-
"@dxos/keys": "0.1.
|
|
20
|
-
"@dxos/timeframe": "0.1.
|
|
17
|
+
"@dxos/codec-protobuf": "0.1.21",
|
|
18
|
+
"@dxos/hypercore": "0.1.21",
|
|
19
|
+
"@dxos/keys": "0.1.21",
|
|
20
|
+
"@dxos/timeframe": "0.1.21"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/debug": "^4.1.7",
|
|
@@ -120,10 +120,18 @@ message QueryMembersResponse {
|
|
|
120
120
|
dxos.halo.credentials.IdentityProfile members = 1;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
message QueryCredentialsRequest {
|
|
124
|
+
dxos.keys.PublicKey space_key = 1;
|
|
125
|
+
}
|
|
126
|
+
|
|
123
127
|
service SpacesService {
|
|
124
128
|
rpc CreateSpace(google.protobuf.Empty) returns (Space);
|
|
125
129
|
rpc QuerySpaces(google.protobuf.Empty) returns (stream Space);
|
|
130
|
+
|
|
131
|
+
// TODO(dmaretskyi): I dont think we need a separate method here. We can include members in the Space object.
|
|
126
132
|
rpc QueryMembers(QueryMembersRequest) returns (stream QueryMembersResponse);
|
|
133
|
+
|
|
134
|
+
rpc QueryCredentials(QueryCredentialsRequest) returns (stream dxos.halo.credentials.Credential);
|
|
127
135
|
}
|
|
128
136
|
|
|
129
137
|
//
|
|
@@ -141,6 +149,8 @@ message Invitation {
|
|
|
141
149
|
INTERACTIVE_TESTING = 1;
|
|
142
150
|
/// Guest's identity key is known; invitation can be accepted by any valid peer.
|
|
143
151
|
OFFLINE = 2;
|
|
152
|
+
/// Multiple-use invitation with OTP.
|
|
153
|
+
MULTIUSE_TESTING = 3;
|
|
144
154
|
}
|
|
145
155
|
|
|
146
156
|
enum State {
|
|
@@ -215,3 +225,27 @@ service SpaceInvitationsService {
|
|
|
215
225
|
rpc AcceptInvitation(Invitation) returns (stream Invitation);
|
|
216
226
|
rpc CancelInvitation(CancelInvitationRequest) returns (google.protobuf.Empty);
|
|
217
227
|
}
|
|
228
|
+
|
|
229
|
+
//
|
|
230
|
+
// MESH
|
|
231
|
+
//
|
|
232
|
+
|
|
233
|
+
enum ConnectionState {
|
|
234
|
+
OFFLINE = 0;
|
|
235
|
+
ONLINE = 1;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// TODO(mykola): Broden API.
|
|
239
|
+
message NetworkStatus {
|
|
240
|
+
ConnectionState state = 1;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
message SetNetworkOptionsRequest {
|
|
244
|
+
ConnectionState state = 1;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// TODO(burdon): Widen API (too heavy for single feature: e.g., status).
|
|
248
|
+
service NetworkService {
|
|
249
|
+
rpc SubscribeToNetworkStatus(google.protobuf.Empty) returns (stream NetworkStatus);
|
|
250
|
+
rpc SetNetworkOptions(SetNetworkOptionsRequest) returns (google.protobuf.Empty);
|
|
251
|
+
}
|
|
@@ -110,7 +110,7 @@ message Contacts {
|
|
|
110
110
|
service ProfileService {
|
|
111
111
|
rpc CreateProfile(CreateProfileRequest) returns (Profile);
|
|
112
112
|
rpc RecoverProfile(RecoverProfileRequest) returns (Profile);
|
|
113
|
-
rpc SubscribeProfile
|
|
113
|
+
rpc SubscribeProfile(google.protobuf.Empty) returns (stream SubscribeProfileResponse);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
message AddKeyRecordRequest {
|
|
@@ -190,7 +190,7 @@ message SpaceMember {
|
|
|
190
190
|
|
|
191
191
|
dxos.keys.PublicKey identity_key = 1;
|
|
192
192
|
optional Profile profile = 2;
|
|
193
|
-
PresenceState
|
|
193
|
+
PresenceState presence = 3;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
message SubscribeSpaceResponse {
|
|
@@ -238,6 +238,7 @@ message CreateSnapshotRequest {
|
|
|
238
238
|
//
|
|
239
239
|
|
|
240
240
|
service SpaceService {
|
|
241
|
+
// TODO(burdon): SubscribeSpace (standard).
|
|
241
242
|
rpc SubscribeToSpace (SubscribeSpaceRequest) returns (stream SubscribeSpaceResponse);
|
|
242
243
|
rpc SubscribeSpaces (google.protobuf.Empty) returns (stream SubscribeSpacesResponse);
|
|
243
244
|
|
|
@@ -52,6 +52,7 @@ message Module {
|
|
|
52
52
|
optional string description = 4;
|
|
53
53
|
repeated string tags = 5;
|
|
54
54
|
optional bytes bundle = 6;
|
|
55
|
+
optional bool tunnel = 7;
|
|
55
56
|
|
|
56
57
|
optional Build build = 100;
|
|
57
58
|
repeated Repo repos = 101;
|
|
@@ -71,20 +72,21 @@ message Runtime {
|
|
|
71
72
|
FIREFOX = 3;
|
|
72
73
|
NODE = 4;
|
|
73
74
|
|
|
74
|
-
//
|
|
75
|
-
|
|
75
|
+
// Key storage only
|
|
76
76
|
LEVELJS = 11;
|
|
77
77
|
JSONDOWN = 12;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
optional bool persistent = 1;
|
|
81
|
-
optional StorageDriver key_storage = 3;
|
|
82
|
-
optional StorageDriver storage_type = 2;
|
|
83
|
-
optional string path = 4;
|
|
80
|
+
optional bool persistent = 1; // TODO(burdon): Replace with type.
|
|
81
|
+
optional StorageDriver key_storage = 3; // TODO(burdon): Rename key_store.
|
|
82
|
+
optional StorageDriver storage_type = 2; // TODO(burdon): Rename data_store.
|
|
83
|
+
optional string path = 4; // TODO(burdon): Rename data_path.
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
optional string debug = 1 [(env) = "DEBUG"];
|
|
86
|
+
optional string debug = 1 [(env) = "DEBUG"]; // TODO(burdon): Change to LOG.
|
|
87
87
|
optional Storage storage = 2;
|
|
88
|
+
|
|
89
|
+
// TODO(burdon): Structure snapshot/epoch related props.
|
|
88
90
|
optional bool enable_snapshots = 3;
|
|
89
91
|
|
|
90
92
|
/// Milliseconds
|
|
@@ -140,6 +142,9 @@ message Runtime {
|
|
|
140
142
|
optional string debug = 1;
|
|
141
143
|
}
|
|
142
144
|
|
|
145
|
+
//
|
|
146
|
+
// KUBE
|
|
147
|
+
//
|
|
143
148
|
message Kube {
|
|
144
149
|
message Autoupdate {
|
|
145
150
|
optional bool enabled = 1;
|
|
@@ -177,6 +182,19 @@ message Runtime {
|
|
|
177
182
|
bool disabled = 1;
|
|
178
183
|
}
|
|
179
184
|
|
|
185
|
+
message Gravity {
|
|
186
|
+
bool disabled = 1;
|
|
187
|
+
string name = 2;
|
|
188
|
+
optional string log_dir = 3;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
message AppTunneling {
|
|
192
|
+
optional bool enabled = 1;
|
|
193
|
+
optional string command_template = 2;
|
|
194
|
+
optional string output_re = 3;
|
|
195
|
+
optional string port = 4;
|
|
196
|
+
}
|
|
197
|
+
|
|
180
198
|
optional string host = 1;
|
|
181
199
|
optional string port = 2;
|
|
182
200
|
optional Autoupdate autoupdate = 3;
|
|
@@ -188,6 +206,8 @@ message Runtime {
|
|
|
188
206
|
optional Monitoring monitoring = 9;
|
|
189
207
|
optional Trace trace = 10;
|
|
190
208
|
optional Telemetry telemetry = 11;
|
|
209
|
+
optional Gravity gravity = 12;
|
|
210
|
+
optional AppTunneling app_tunneling = 13;
|
|
191
211
|
}
|
|
192
212
|
|
|
193
213
|
//
|
|
@@ -152,7 +152,7 @@ message SubscribeToSpacesResponse {
|
|
|
152
152
|
message SpaceInfo {
|
|
153
153
|
dxos.keys.PublicKey key = 1;
|
|
154
154
|
bool is_open = 2;
|
|
155
|
-
dxos.echo.timeframe.TimeframeVector timeframe = 3;
|
|
155
|
+
optional dxos.echo.timeframe.TimeframeVector timeframe = 3;
|
|
156
156
|
dxos.keys.PublicKey genesisFeed = 4;
|
|
157
157
|
dxos.keys.PublicKey controlFeed = 5;
|
|
158
158
|
dxos.keys.PublicKey dataFeed = 6;
|
|
@@ -30,6 +30,11 @@ message Value {
|
|
|
30
30
|
|
|
31
31
|
KeyValueObject object = 20;
|
|
32
32
|
Array array = 21;
|
|
33
|
+
|
|
34
|
+
Reference reference = 30;
|
|
35
|
+
|
|
36
|
+
// YJS state snapshot.
|
|
37
|
+
YJS yjs = 40;
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
40
|
|
|
@@ -55,6 +60,13 @@ message KeyValueObject {
|
|
|
55
60
|
repeated KeyValue properties = 1;
|
|
56
61
|
}
|
|
57
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Reference to an Item.
|
|
65
|
+
*/
|
|
66
|
+
message Reference {
|
|
67
|
+
string itemId = 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
58
70
|
/**
|
|
59
71
|
* Query predicate.
|
|
60
72
|
*/
|
|
@@ -108,11 +120,18 @@ message ObjectMutation {
|
|
|
108
120
|
// ARRAY_DELETE = 3; // TODO(burdon): Identify by value.
|
|
109
121
|
SET_ADD = 4; // TODO(burdon): Identify by value.
|
|
110
122
|
SET_DELETE = 5;
|
|
123
|
+
YJS = 6;
|
|
111
124
|
}
|
|
112
125
|
|
|
113
126
|
Operation operation = 1;
|
|
114
127
|
string key = 2;
|
|
115
128
|
optional Value value = 3;
|
|
129
|
+
optional YJS mutation = 4;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
message YJS {
|
|
133
|
+
bytes id = 1;
|
|
134
|
+
bytes payload = 2;
|
|
116
135
|
}
|
|
117
136
|
|
|
118
137
|
/**
|
|
@@ -27,7 +27,7 @@ message SpaceSnapshot {
|
|
|
27
27
|
// TODO(dmaretskyi): Convert to google.protobuf.Timestamp.
|
|
28
28
|
optional int32 timestamp = 3;
|
|
29
29
|
|
|
30
|
-
HaloStateSnapshot halo = 11;
|
|
30
|
+
optional HaloStateSnapshot halo = 11;
|
|
31
31
|
// TODO(dmaretskyi): Rename to EchoSnapshot.
|
|
32
32
|
DatabaseSnapshot database = 12;
|
|
33
33
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
|
|
10
|
+
package dxos.mesh.teleport.objectsync;
|
|
11
|
+
|
|
12
|
+
message WantList {
|
|
13
|
+
repeated string ids = 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Intentionally avoiding naming it `Object`.
|
|
17
|
+
message DataObject {
|
|
18
|
+
string id = 1;
|
|
19
|
+
google.protobuf.Any payload = 2;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Allows synchronization of opaque data objects between two peers.
|
|
24
|
+
* Loosely based on Bittorrent protocol.
|
|
25
|
+
*/
|
|
26
|
+
service ObjectSyncService {
|
|
27
|
+
/// Notify the peer that we want to receive specified objects.
|
|
28
|
+
rpc Want(WantList) returns (google.protobuf.Empty);
|
|
29
|
+
|
|
30
|
+
/// Send an object to the peer.
|
|
31
|
+
rpc Push(DataObject) returns (google.protobuf.Empty);
|
|
32
|
+
}
|
|
@@ -35,8 +35,25 @@ message ResetResponse {
|
|
|
35
35
|
int32 count = 1;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
message TunnelRequest {
|
|
39
|
+
string name = 1;
|
|
40
|
+
bool enabled = 2;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message TunnelResponse {
|
|
44
|
+
string name = 1;
|
|
45
|
+
bool enabled = 2;
|
|
46
|
+
string url = 3;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message ListTunnelsResponse {
|
|
50
|
+
repeated TunnelResponse tunnels = 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
38
53
|
service Publisher {
|
|
39
54
|
rpc Publish(PublishRequest) returns (PublishResponse);
|
|
40
55
|
rpc List(google.protobuf.Empty) returns (ListResponse);
|
|
41
56
|
rpc Reset(google.protobuf.Empty) returns (ResetResponse);
|
|
57
|
+
rpc Tunnel(TunnelRequest) returns (TunnelResponse);
|
|
58
|
+
rpc ListTunnels(google.protobuf.Empty) returns (ListTunnelsResponse);
|
|
42
59
|
}
|
|
@@ -35,6 +35,7 @@ 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_objectsync from "./mesh/teleport/objectsync";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "./mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "./mesh/teleport/replicator";
|
|
40
41
|
import * as dxos_registry from "./registry";
|
|
@@ -35,6 +35,7 @@ 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_objectsync from "../mesh/teleport/objectsync";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
|
|
40
41
|
import * as dxos_registry from "../registry";
|
|
@@ -164,6 +165,13 @@ export interface QueryMembersRequest {
|
|
|
164
165
|
export interface QueryMembersResponse {
|
|
165
166
|
members: dxos_halo_credentials.IdentityProfile;
|
|
166
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* Defined in:
|
|
170
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
171
|
+
*/
|
|
172
|
+
export interface QueryCredentialsRequest {
|
|
173
|
+
spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
174
|
+
}
|
|
167
175
|
/**
|
|
168
176
|
* Defined in:
|
|
169
177
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -172,6 +180,7 @@ export interface SpacesService {
|
|
|
172
180
|
createSpace: (request: void) => Promise<Space>;
|
|
173
181
|
querySpaces: (request: void) => Stream<Space>;
|
|
174
182
|
queryMembers: (request: QueryMembersRequest) => Stream<QueryMembersResponse>;
|
|
183
|
+
queryCredentials: (request: QueryCredentialsRequest) => Stream<dxos_halo_credentials.Credential>;
|
|
175
184
|
}
|
|
176
185
|
/**
|
|
177
186
|
* Represents the invitation state passed between client and service.
|
|
@@ -252,7 +261,8 @@ export namespace Invitation {
|
|
|
252
261
|
export enum Type {
|
|
253
262
|
INTERACTIVE = 0,
|
|
254
263
|
INTERACTIVE_TESTING = 1,
|
|
255
|
-
OFFLINE = 2
|
|
264
|
+
OFFLINE = 2,
|
|
265
|
+
MULTIUSE_TESTING = 3
|
|
256
266
|
}
|
|
257
267
|
/**
|
|
258
268
|
* Defined in:
|
|
@@ -315,3 +325,33 @@ export interface SpaceInvitationsService {
|
|
|
315
325
|
acceptInvitation: (request: Invitation) => Stream<Invitation>;
|
|
316
326
|
cancelInvitation: (request: CancelInvitationRequest) => Promise<void>;
|
|
317
327
|
}
|
|
328
|
+
/**
|
|
329
|
+
* Defined in:
|
|
330
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
331
|
+
*/
|
|
332
|
+
export enum ConnectionState {
|
|
333
|
+
OFFLINE = 0,
|
|
334
|
+
ONLINE = 1
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Defined in:
|
|
338
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
339
|
+
*/
|
|
340
|
+
export interface NetworkStatus {
|
|
341
|
+
state: ConnectionState;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Defined in:
|
|
345
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
346
|
+
*/
|
|
347
|
+
export interface SetNetworkOptionsRequest {
|
|
348
|
+
state: ConnectionState;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Defined in:
|
|
352
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
353
|
+
*/
|
|
354
|
+
export interface NetworkService {
|
|
355
|
+
subscribeToNetworkStatus: (request: void) => Stream<NetworkStatus>;
|
|
356
|
+
setNetworkOptions: (request: SetNetworkOptionsRequest) => Promise<void>;
|
|
357
|
+
}
|
|
@@ -35,6 +35,7 @@ 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_objectsync from "./mesh/teleport/objectsync";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "./mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "./mesh/teleport/replicator";
|
|
40
41
|
import * as dxos_registry from "./registry";
|
|
@@ -320,7 +321,7 @@ export interface SpaceMember {
|
|
|
320
321
|
* - proto3_optional = true
|
|
321
322
|
*/
|
|
322
323
|
profile?: Profile;
|
|
323
|
-
|
|
324
|
+
presence: SpaceMember.PresenceState;
|
|
324
325
|
}
|
|
325
326
|
export namespace SpaceMember {
|
|
326
327
|
/**
|
|
@@ -35,6 +35,7 @@ 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_objectsync from "./mesh/teleport/objectsync";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "./mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "./mesh/teleport/replicator";
|
|
40
41
|
import * as dxos_registry from "./registry";
|
|
@@ -131,6 +132,11 @@ export interface Module {
|
|
|
131
132
|
* - proto3_optional = true
|
|
132
133
|
*/
|
|
133
134
|
bundle?: Uint8Array;
|
|
135
|
+
/**
|
|
136
|
+
* Options:
|
|
137
|
+
* - proto3_optional = true
|
|
138
|
+
*/
|
|
139
|
+
tunnel?: boolean;
|
|
134
140
|
/**
|
|
135
141
|
* Options:
|
|
136
142
|
* - proto3_optional = true
|
|
@@ -503,6 +509,16 @@ export namespace Runtime {
|
|
|
503
509
|
* - proto3_optional = true
|
|
504
510
|
*/
|
|
505
511
|
telemetry?: Runtime.Kube.Telemetry;
|
|
512
|
+
/**
|
|
513
|
+
* Options:
|
|
514
|
+
* - proto3_optional = true
|
|
515
|
+
*/
|
|
516
|
+
gravity?: Runtime.Kube.Gravity;
|
|
517
|
+
/**
|
|
518
|
+
* Options:
|
|
519
|
+
* - proto3_optional = true
|
|
520
|
+
*/
|
|
521
|
+
appTunneling?: Runtime.Kube.AppTunneling;
|
|
506
522
|
}
|
|
507
523
|
export namespace Kube {
|
|
508
524
|
/**
|
|
@@ -602,6 +618,45 @@ export namespace Runtime {
|
|
|
602
618
|
export interface Telemetry {
|
|
603
619
|
disabled: boolean;
|
|
604
620
|
}
|
|
621
|
+
/**
|
|
622
|
+
* Defined in:
|
|
623
|
+
* {@link file://./../../dxos/config.proto}
|
|
624
|
+
*/
|
|
625
|
+
export interface Gravity {
|
|
626
|
+
disabled: boolean;
|
|
627
|
+
name: string;
|
|
628
|
+
/**
|
|
629
|
+
* Options:
|
|
630
|
+
* - proto3_optional = true
|
|
631
|
+
*/
|
|
632
|
+
logDir?: string;
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Defined in:
|
|
636
|
+
* {@link file://./../../dxos/config.proto}
|
|
637
|
+
*/
|
|
638
|
+
export interface AppTunneling {
|
|
639
|
+
/**
|
|
640
|
+
* Options:
|
|
641
|
+
* - proto3_optional = true
|
|
642
|
+
*/
|
|
643
|
+
enabled?: boolean;
|
|
644
|
+
/**
|
|
645
|
+
* Options:
|
|
646
|
+
* - proto3_optional = true
|
|
647
|
+
*/
|
|
648
|
+
commandTemplate?: string;
|
|
649
|
+
/**
|
|
650
|
+
* Options:
|
|
651
|
+
* - proto3_optional = true
|
|
652
|
+
*/
|
|
653
|
+
outputRe?: string;
|
|
654
|
+
/**
|
|
655
|
+
* Options:
|
|
656
|
+
* - proto3_optional = true
|
|
657
|
+
*/
|
|
658
|
+
port?: string;
|
|
659
|
+
}
|
|
605
660
|
}
|
|
606
661
|
/**
|
|
607
662
|
* Defined in:
|
|
@@ -35,6 +35,7 @@ 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_objectsync from "../mesh/teleport/objectsync";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
|
|
40
41
|
import * as dxos_registry from "../registry";
|
|
@@ -249,7 +250,11 @@ export namespace SubscribeToSpacesResponse {
|
|
|
249
250
|
export interface SpaceInfo {
|
|
250
251
|
key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
251
252
|
isOpen: boolean;
|
|
252
|
-
|
|
253
|
+
/**
|
|
254
|
+
* Options:
|
|
255
|
+
* - proto3_optional = true
|
|
256
|
+
*/
|
|
257
|
+
timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
253
258
|
genesisFeed: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
254
259
|
controlFeed: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
255
260
|
dataFeed: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
|
|
@@ -35,6 +35,7 @@ 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_objectsync from "../mesh/teleport/objectsync";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
|
|
40
41
|
import * as dxos_registry from "../registry";
|
|
@@ -35,6 +35,7 @@ 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_objectsync from "../mesh/teleport/objectsync";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
|
|
40
41
|
import * as dxos_registry from "../registry";
|
|
@@ -35,6 +35,7 @@ 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_objectsync from "../mesh/teleport/objectsync";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "../mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
|
|
40
41
|
import * as dxos_registry from "../registry";
|
|
@@ -105,4 +106,9 @@ export interface SpaceMetadata {
|
|
|
105
106
|
* - proto3_optional = true
|
|
106
107
|
*/
|
|
107
108
|
latestTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
|
|
109
|
+
/**
|
|
110
|
+
* Options:
|
|
111
|
+
* - proto3_optional = true
|
|
112
|
+
*/
|
|
113
|
+
snapshot?: string;
|
|
108
114
|
}
|
|
@@ -35,6 +35,7 @@ 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_objectsync from "../../mesh/teleport/objectsync";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "../../mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "../../mesh/teleport/replicator";
|
|
40
41
|
import * as dxos_registry from "../../registry";
|
|
@@ -35,6 +35,7 @@ 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_objectsync from "../../mesh/teleport/objectsync";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "../../mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "../../mesh/teleport/replicator";
|
|
40
41
|
import * as dxos_registry from "../../registry";
|
|
@@ -62,6 +63,8 @@ export interface Value {
|
|
|
62
63
|
bytes?: Uint8Array;
|
|
63
64
|
object?: KeyValueObject;
|
|
64
65
|
array?: Array;
|
|
66
|
+
reference?: Reference;
|
|
67
|
+
yjs?: YJS;
|
|
65
68
|
}
|
|
66
69
|
/**
|
|
67
70
|
* Ordered collection of values.
|
|
@@ -91,6 +94,15 @@ export interface KeyValue {
|
|
|
91
94
|
export interface KeyValueObject {
|
|
92
95
|
properties?: KeyValue[];
|
|
93
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* Reference to an Item.
|
|
99
|
+
*
|
|
100
|
+
* Defined in:
|
|
101
|
+
* {@link file://./../../../../dxos/echo/model/object.proto}
|
|
102
|
+
*/
|
|
103
|
+
export interface Reference {
|
|
104
|
+
itemId: string;
|
|
105
|
+
}
|
|
94
106
|
/**
|
|
95
107
|
* Query predicate.
|
|
96
108
|
*
|
|
@@ -162,6 +174,11 @@ export interface ObjectMutation {
|
|
|
162
174
|
* - proto3_optional = true
|
|
163
175
|
*/
|
|
164
176
|
value?: Value;
|
|
177
|
+
/**
|
|
178
|
+
* Options:
|
|
179
|
+
* - proto3_optional = true
|
|
180
|
+
*/
|
|
181
|
+
mutation?: YJS;
|
|
165
182
|
}
|
|
166
183
|
export namespace ObjectMutation {
|
|
167
184
|
/**
|
|
@@ -173,9 +190,18 @@ export namespace ObjectMutation {
|
|
|
173
190
|
DELETE = 1,
|
|
174
191
|
ARRAY_PUSH = 2,
|
|
175
192
|
SET_ADD = 4,
|
|
176
|
-
SET_DELETE = 5
|
|
193
|
+
SET_DELETE = 5,
|
|
194
|
+
YJS = 6
|
|
177
195
|
}
|
|
178
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* Defined in:
|
|
199
|
+
* {@link file://./../../../../dxos/echo/model/object.proto}
|
|
200
|
+
*/
|
|
201
|
+
export interface YJS {
|
|
202
|
+
id: Uint8Array;
|
|
203
|
+
payload: Uint8Array;
|
|
204
|
+
}
|
|
179
205
|
/**
|
|
180
206
|
* Set of mutations.
|
|
181
207
|
*
|
|
@@ -35,6 +35,7 @@ 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_objectsync from "../../mesh/teleport/objectsync";
|
|
38
39
|
import * as dxos_mesh_teleport_presence from "../../mesh/teleport/presence";
|
|
39
40
|
import * as dxos_mesh_teleport_replicator from "../../mesh/teleport/replicator";
|
|
40
41
|
import * as dxos_registry from "../../registry";
|