@dxos/protocols 2.33.9-dev.2637427f → 2.33.9-dev.37a7739a

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 (98) hide show
  1. package/dist/src/proto/gen/dxos/bot.d.ts +139 -4
  2. package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -1
  3. package/dist/src/proto/gen/dxos/bot.js +4 -0
  4. package/dist/src/proto/gen/dxos/bot.js.map +1 -1
  5. package/dist/src/proto/gen/dxos/client.d.ts +313 -18
  6. package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
  7. package/dist/src/proto/gen/dxos/client.js +25 -1
  8. package/dist/src/proto/gen/dxos/client.js.map +1 -1
  9. package/dist/src/proto/gen/dxos/config.d.ts +462 -0
  10. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
  11. package/dist/src/proto/gen/dxos/config.js +10 -0
  12. package/dist/src/proto/gen/dxos/config.js.map +1 -1
  13. package/dist/src/proto/gen/dxos/credentials/auth.d.ts +12 -3
  14. package/dist/src/proto/gen/dxos/credentials/auth.d.ts.map +1 -1
  15. package/dist/src/proto/gen/dxos/credentials/greet.d.ts +39 -8
  16. package/dist/src/proto/gen/dxos/credentials/greet.d.ts.map +1 -1
  17. package/dist/src/proto/gen/dxos/credentials/greet.js +4 -0
  18. package/dist/src/proto/gen/dxos/credentials/greet.js.map +1 -1
  19. package/dist/src/proto/gen/dxos/credentials/identity.d.ts +12 -4
  20. package/dist/src/proto/gen/dxos/credentials/identity.d.ts.map +1 -1
  21. package/dist/src/proto/gen/dxos/credentials/party.d.ts +50 -18
  22. package/dist/src/proto/gen/dxos/credentials/party.d.ts.map +1 -1
  23. package/dist/src/proto/gen/dxos/credentials/party.js +4 -0
  24. package/dist/src/proto/gen/dxos/credentials/party.js.map +1 -1
  25. package/dist/src/proto/gen/dxos/credentials.d.ts +39 -0
  26. package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
  27. package/dist/src/proto/gen/dxos/devtools.d.ts +266 -30
  28. package/dist/src/proto/gen/dxos/devtools.d.ts.map +1 -1
  29. package/dist/src/proto/gen/dxos/echo/feed.d.ts +65 -6
  30. package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
  31. package/dist/src/proto/gen/dxos/echo/feed.js +4 -0
  32. package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -1
  33. package/dist/src/proto/gen/dxos/echo/invitation.d.ts +19 -3
  34. package/dist/src/proto/gen/dxos/echo/invitation.d.ts.map +1 -1
  35. package/dist/src/proto/gen/dxos/echo/invitation.js +6 -0
  36. package/dist/src/proto/gen/dxos/echo/invitation.js.map +1 -1
  37. package/dist/src/proto/gen/dxos/echo/metadata.d.ts +26 -4
  38. package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
  39. package/dist/src/proto/gen/dxos/echo/service.d.ts +49 -13
  40. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  41. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +45 -13
  42. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
  43. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +9 -2
  44. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
  45. package/dist/src/proto/gen/dxos/halo/keys.d.ts +44 -2
  46. package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  47. package/dist/src/proto/gen/dxos/halo/keys.js +4 -0
  48. package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
  49. package/dist/src/proto/gen/dxos/rpc.d.ts +58 -8
  50. package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
  51. package/dist/src/proto/gen/dxos/rpc.js +4 -0
  52. package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
  53. package/dist/src/proto/gen/dxos/test/echo.d.ts +15 -3
  54. package/dist/src/proto/gen/dxos/test/echo.d.ts.map +1 -1
  55. package/dist/src/proto/gen/google/protobuf.d.ts +89 -89
  56. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
  57. package/dist/src/proto/gen/index.d.ts +11 -0
  58. package/dist/src/proto/gen/index.d.ts.map +1 -1
  59. package/dist/src/proto/gen/index.js +1 -1
  60. package/dist/src/proto/gen/index.js.map +1 -1
  61. package/dist/tsconfig.tsbuildinfo +1 -1
  62. package/package.json +2 -2
  63. package/src/proto/dxos/bot.proto +25 -21
  64. package/src/proto/dxos/client.proto +85 -18
  65. package/src/proto/dxos/config.proto +104 -101
  66. package/src/proto/dxos/devtools.proto +15 -15
  67. package/src/proto/dxos/echo/feed.proto +10 -9
  68. package/src/proto/dxos/echo/invitation.proto +2 -2
  69. package/src/proto/dxos/echo/metadata.proto +7 -6
  70. package/src/proto/dxos/echo/service.proto +3 -3
  71. package/src/proto/dxos/echo/snapshot.proto +6 -5
  72. package/src/proto/dxos/halo/auth.proto +10 -10
  73. package/src/proto/dxos/halo/greet.proto +4 -3
  74. package/src/proto/dxos/halo/identity.proto +8 -7
  75. package/src/proto/dxos/halo/keys.proto +8 -7
  76. package/src/proto/dxos/halo/party.proto +3 -2
  77. package/src/proto/dxos/halo/signed.proto +16 -8
  78. package/src/proto/dxos/rpc.proto +15 -5
  79. package/src/proto/gen/dxos/bot.ts +139 -4
  80. package/src/proto/gen/dxos/client.ts +313 -18
  81. package/src/proto/gen/dxos/config.ts +462 -0
  82. package/src/proto/gen/dxos/credentials/auth.ts +12 -3
  83. package/src/proto/gen/dxos/credentials/greet.ts +39 -8
  84. package/src/proto/gen/dxos/credentials/identity.ts +12 -4
  85. package/src/proto/gen/dxos/credentials/party.ts +50 -18
  86. package/src/proto/gen/dxos/credentials.ts +39 -0
  87. package/src/proto/gen/dxos/devtools.ts +266 -30
  88. package/src/proto/gen/dxos/echo/feed.ts +65 -6
  89. package/src/proto/gen/dxos/echo/invitation.ts +19 -3
  90. package/src/proto/gen/dxos/echo/metadata.ts +26 -4
  91. package/src/proto/gen/dxos/echo/service.ts +49 -13
  92. package/src/proto/gen/dxos/echo/snapshot.ts +45 -13
  93. package/src/proto/gen/dxos/echo/timeframe.ts +9 -2
  94. package/src/proto/gen/dxos/halo/keys.ts +44 -2
  95. package/src/proto/gen/dxos/rpc.ts +58 -8
  96. package/src/proto/gen/dxos/test/echo.ts +15 -3
  97. package/src/proto/gen/google/protobuf.ts +89 -89
  98. package/src/proto/gen/index.ts +12 -1
@@ -4,61 +4,61 @@
4
4
 
5
5
  syntax = "proto3";
6
6
 
7
+ package dxos.config;
8
+
7
9
  import "google/protobuf/any.proto";
8
10
  import "google/protobuf/timestamp.proto";
9
11
  import "google/protobuf/descriptor.proto";
10
12
 
11
- package dxos.config;
12
-
13
13
  message Config {
14
- int32 version = 1;
14
+ optional int32 version = 1;
15
15
 
16
16
  //
17
17
  // Package definition.
18
18
  //
19
19
 
20
- Package package = 2;
20
+ optional Package package = 2;
21
21
 
22
22
  //
23
23
  // Runtime configuration.
24
24
  //
25
25
 
26
- Runtime runtime = 3;
26
+ optional Runtime runtime = 3;
27
27
  }
28
28
 
29
29
  message Package {
30
- string license = 1;
30
+ optional string license = 1;
31
31
  repeated Repo repos = 2;
32
32
  repeated Module modules = 3;
33
33
  }
34
34
 
35
35
  // TODO(wittjosiah): Shared with registry types. Factor out?
36
36
  message Repo {
37
- string name = 1;
38
- string url = 2;
39
- string version = 3;
37
+ optional string name = 1;
38
+ optional string url = 2;
39
+ optional string version = 3;
40
40
  }
41
41
 
42
42
  message Module {
43
43
  message Build {
44
- string command = 1;
45
- string outdir = 2;
46
- string version = 3;
47
- string tag = 4;
44
+ optional string command = 1;
45
+ optional string outdir = 2;
46
+ optional string version = 3;
47
+ optional string tag = 4;
48
48
  }
49
49
 
50
- string name = 1;
51
- string type = 2;
52
- string display_name = 3;
53
- string description = 4;
50
+ optional string name = 1;
51
+ optional string type = 2;
52
+ optional string display_name = 3;
53
+ optional string description = 4;
54
54
  repeated string tags = 5;
55
55
 
56
- Build build = 100;
56
+ optional Build build = 100;
57
57
  repeated Repo repos = 101;
58
58
 
59
59
  /// Data which will be included as apart of DXNS record.
60
60
  /// The data will be validated based on the type when being published.
61
- google.protobuf.Any record = 200;
61
+ optional google.protobuf.Any record = 200;
62
62
  }
63
63
 
64
64
  message Runtime {
@@ -82,73 +82,76 @@ message Runtime {
82
82
  CHROME = 2;
83
83
  FIREFOX = 3;
84
84
  NODE = 4;
85
-
85
+
86
86
  // Only for key storage:
87
87
 
88
88
  LEVELJS = 11;
89
89
  JSONDOWN = 12;
90
90
  }
91
91
 
92
- bool persistent = 1;
93
- StorageDriver storage_type = 2;
94
- StorageDriver key_storage = 3;
95
- string path = 4;
92
+ optional bool persistent = 1;
93
+ optional StorageDriver storage_type = 2;
94
+ optional StorageDriver key_storage = 3;
95
+ optional string path = 4;
96
96
  }
97
97
 
98
- string debug = 1 [(env) = "DEBUG"];
99
- Storage storage = 2;
100
- bool enable_snapshots = 3;
98
+ optional string debug = 1 [(env) = "DEBUG"];
99
+ optional Storage storage = 2;
100
+ optional bool enable_snapshots = 3;
101
101
 
102
102
  /// Milliseconds
103
- int32 snapshot_interval = 4;
103
+ optional int32 snapshot_interval = 4;
104
104
 
105
105
  /// Milliseconds
106
- int32 invitation_expiration = 5;
106
+ optional int32 invitation_expiration = 5;
107
+
108
+ // TODO(wittjosiah): Remove.
109
+ optional Mode mode = 6;
107
110
 
108
- Mode mode = 6;
111
+ optional string singleton_source = 7;
109
112
  }
110
113
 
111
114
  message App {
112
- string org = 1;
113
- string theme = 2;
114
- string website = 3;
115
- string public_url = 4 [(env) = "PUBLIC_URL"];
115
+ optional string org = 1;
116
+ optional string theme = 2;
117
+ optional string website = 3;
118
+ optional string public_url = 4 [(env) = "PUBLIC_URL"];
116
119
  }
117
120
 
118
121
  // CLI configuration
119
122
  message CLI {
120
123
  message AppServe {
121
124
  message Serve {
122
- string config = 1;
123
- string login_app = 2;
124
- string key_phrase = 3;
125
+ optional string config = 1;
126
+ optional string login_app = 2;
127
+ optional string key_phrase = 3;
125
128
  }
126
129
 
127
- Serve serve = 1;
130
+ optional Serve serve = 1;
128
131
  }
129
132
 
130
133
  message Package {
131
- string package = 1;
132
- string channel = 2;
133
- string bin = 3;
134
- string config = 4;
134
+ optional string package = 1;
135
+ optional string channel = 2;
136
+ optional string bin = 3;
137
+ optional string config = 4;
135
138
  }
136
139
 
137
- string node_path = 1;
138
- AppServe app = 2;
139
- Package console = 3;
140
- Package mdns = 4;
141
- Package signal = 5;
142
- string npm_client = 6;
143
- string channel = 7;
140
+ optional string node_path = 1;
141
+ optional AppServe app = 2;
142
+ optional Package console = 3;
143
+ optional Package mdns = 4;
144
+ optional Package signal = 5;
145
+ optional string npm_client = 6;
146
+ optional string channel = 7;
144
147
  }
145
148
 
146
149
  message Props {
147
- string title = 1;
150
+ optional string title = 1;
148
151
  }
149
152
 
150
153
  message System {
151
- string debug = 1;
154
+ optional string debug = 1;
152
155
  }
153
156
 
154
157
  //
@@ -158,91 +161,91 @@ message Runtime {
158
161
  message Kube {
159
162
 
160
163
  message Endpoints {
161
- string logs = 1;
162
- string services = 2;
163
- string cert = 3;
164
+ optional string logs = 1;
165
+ optional string services = 2;
166
+ optional string cert = 3;
164
167
  }
165
-
166
- Endpoints endpoints = 1;
167
- string public_url = 2;
168
+
169
+ optional Endpoints endpoints = 1;
170
+ optional string public_url = 2;
168
171
  }
169
172
 
170
173
  message AppServer {
171
- string prefix = 1;
172
- string server = 2;
174
+ optional string prefix = 1;
175
+ optional string server = 2;
173
176
  }
174
177
 
175
178
  message Dxns {
176
179
  /// DXNS endpoint.
177
- string server = 1;
180
+ optional string server = 1;
178
181
 
179
182
  /**
180
- * Substrate account URI. This is a secret.
181
- * KUBEs do not serve this with the config but we store it in profile.yml.
182
- *
183
- * TODO(dmaretskyi): Deprecate this and move it to keyring.
184
- */
185
- string account_uri = 2;
183
+ * Substrate account URI. This is a secret.
184
+ * KUBEs do not serve this with the config but we store it in profile.yml.
185
+ *
186
+ * TODO(dmaretskyi): Deprecate this and move it to keyring.
187
+ */
188
+ optional string account_uri = 2;
186
189
 
187
190
  /**
188
191
  * Public Polkadot Address.
189
- */
190
- string address = 3;
192
+ */
193
+ optional string address = 3;
191
194
 
192
195
  /**
193
196
  * Public address of a DXNS Account.
194
- */
195
- string account = 4;
197
+ */
198
+ optional string account = 4;
196
199
 
197
- string faucet = 5;
200
+ optional string faucet = 5;
198
201
  }
199
202
 
200
203
  message Ipfs {
201
- string server = 1;
202
- string gateway = 2;
204
+ optional string server = 1;
205
+ optional string gateway = 2;
203
206
  }
204
207
 
205
208
  message Signal {
206
- string server = 1;
207
- string api = 2;
208
- string status = 3;
209
+ optional string server = 1;
210
+ optional string api = 2;
211
+ optional string status = 3;
209
212
  }
210
213
 
211
214
  message Ice {
212
- string urls = 1;
213
- string username = 2;
214
- string credential = 3;
215
+ optional string urls = 1;
216
+ optional string username = 2;
217
+ optional string credential = 3;
215
218
  }
216
219
 
217
220
  message Machine {
218
- string do_access_token = 1;
219
- string github_access_token = 2;
220
- string github_username = 3;
221
- string dns_domain = 4;
222
- string npm_access_token = 5;
221
+ optional string do_access_token = 1;
222
+ optional string github_access_token = 2;
223
+ optional string github_username = 3;
224
+ optional string dns_domain = 4;
225
+ optional string npm_access_token = 5;
223
226
  }
224
227
 
225
228
  message BotFactory {
226
- string topic = 1;
227
- bool persistent = 2;
228
- int32 retry_attempts = 3;
229
- int32 retry_interval = 4;
229
+ optional string topic = 1;
230
+ optional bool persistent = 2;
231
+ optional int32 retry_attempts = 3;
232
+ optional int32 retry_interval = 4;
230
233
  }
231
234
 
232
- Kube kube = 1;
233
- AppServer app = 2;
234
- Dxns dxns = 3;
235
- Ipfs ipfs = 4;
236
- Signal signal = 5;
235
+ optional Kube kube = 1;
236
+ optional AppServer app = 2;
237
+ optional Dxns dxns = 3;
238
+ optional Ipfs ipfs = 4;
239
+ optional Signal signal = 5;
237
240
  repeated Ice ice = 6;
238
- Machine machine = 7;
239
- BotFactory bot = 8;
241
+ optional Machine machine = 7;
242
+ optional BotFactory bot = 8;
240
243
  }
241
244
 
242
- Client client = 1;
243
- App app = 2;
244
- CLI cli = 3;
245
- Props props = 4;
246
- Services services = 5;
247
- System system = 6;
245
+ optional Client client = 1;
246
+ optional App app = 2;
247
+ optional CLI cli = 3;
248
+ optional Props props = 4;
249
+ optional Services services = 5;
250
+ optional System system = 6;
248
251
  }
@@ -83,21 +83,21 @@ message GetConfigResponse {
83
83
  // EnableDebugLogging
84
84
 
85
85
  message EnableDebugLoggingRequest {
86
- string namespaces = 1;
86
+ optional string namespaces = 1;
87
87
  }
88
88
 
89
89
  message EnableDebugLoggingResponse {
90
- string enabledNamespaces = 1;
90
+ optional string enabledNamespaces = 1;
91
91
  }
92
92
 
93
93
  // DisableDebugLogging
94
94
 
95
95
  message DisableDebugLoggingRequest {
96
- string namespaces = 1;
96
+ optional string namespaces = 1;
97
97
  }
98
98
 
99
99
  message DisableDebugLoggingResponse {
100
- string enabledNamespaces = 1;
100
+ optional string enabledNamespaces = 1;
101
101
  }
102
102
 
103
103
  // SubscribeToKeyringKeys
@@ -111,7 +111,7 @@ message SubscribeToKeyringKeysResponse {
111
111
  // SubscribeToCredential
112
112
 
113
113
  message SubscribeToCredentialMessagesRequest {
114
- PubKey partyKey = 1;
114
+ optional PubKey partyKey = 1;
115
115
  }
116
116
 
117
117
  message SubscribeToCredentialMessagesResponse {
@@ -188,9 +188,9 @@ message SubscribeToFeedsResponse {
188
188
  // SubscribeToFeedMessages
189
189
 
190
190
  message SubscribeToFeedBlocksRequest {
191
- PubKey partyKey = 1;
192
- PubKey feedKey = 2;
193
- int32 maxBlocks = 3;
191
+ optional PubKey partyKey = 1;
192
+ optional PubKey feedKey = 2;
193
+ optional int32 maxBlocks = 3;
194
194
  }
195
195
 
196
196
  message SubscribeToFeedBlocksResponse {
@@ -212,7 +212,7 @@ message GetPartySnapshotRequest {
212
212
  }
213
213
 
214
214
  message GetPartySnapshotResponse {
215
- PartySnapshot snapshot = 1;
215
+ optional PartySnapshot snapshot = 1;
216
216
  }
217
217
 
218
218
  // SavePartySnapshot
@@ -222,7 +222,7 @@ message SavePartySnapshotRequest {
222
222
  }
223
223
 
224
224
  message SavePartySnapshotResponse {
225
- PartySnapshot snapshot = 1;
225
+ optional PartySnapshot snapshot = 1;
226
226
  }
227
227
 
228
228
  // ClearSnapshots
@@ -234,7 +234,7 @@ message ClearSnapshotsRequest {}
234
234
  message SubscribeToNetworkTopicsResponse {
235
235
  message Topic {
236
236
  PubKey topic = 1;
237
- string label = 2;
237
+ optional string label = 2;
238
238
  }
239
239
 
240
240
  repeated Topic topics = 1;
@@ -249,7 +249,7 @@ message SubscribeToSignalStatusResponse {
249
249
  // SignalApi.State enum.
250
250
  string state = 2;
251
251
 
252
- string error = 3;
252
+ optional string error = 3;
253
253
 
254
254
  // Number of milliseconds before reconnection.
255
255
  // TODO(dmaretskyi): Represent as absolute timestamp.
@@ -279,16 +279,16 @@ message SubscribeToSwarmInfoResponse {
279
279
  message SwarmInfo {
280
280
  PubKey id = 1;
281
281
  PubKey topic = 2;
282
- string label = 3;
282
+ optional string label = 3;
283
283
  bool isActive = 4;
284
284
  message ConnectionInfo {
285
285
  message Json {
286
- string data = 1;
286
+ optional string data = 1;
287
287
  }
288
288
  string state = 1;
289
289
  PubKey sessionId = 2;
290
290
  PubKey remotePeerId = 3;
291
- string transport = 4;
291
+ optional string transport = 4;
292
292
  repeated string protocolExtensions = 5;
293
293
  repeated Json events = 6;
294
294
  }
@@ -8,6 +8,7 @@ syntax = "proto3";
8
8
  package dxos.echo.feed;
9
9
 
10
10
  import "google/protobuf/any.proto";
11
+
11
12
  import "./snapshot.proto";
12
13
  import "./timeframe.proto";
13
14
 
@@ -39,16 +40,16 @@ message EchoEnvelope {
39
40
  string itemId = 1;
40
41
 
41
42
  // Create item.
42
- ItemGenesis genesis = 10;
43
+ optional ItemGenesis genesis = 10;
43
44
 
44
45
  // Item system mutations.
45
- ItemMutation itemMutation = 11;
46
+ optional ItemMutation itemMutation = 11;
46
47
 
47
48
  // Model-specific mutations.
48
- bytes mutation = 12;
49
+ optional bytes mutation = 12;
49
50
 
50
51
  /// Set the model to the provided snapshot.
51
- ModelSnapshot snapshot = 13;
52
+ optional ModelSnapshot snapshot = 13;
52
53
  }
53
54
 
54
55
  // TODO(burdon): Document (different from parent/child).?
@@ -63,10 +64,10 @@ message LinkData {
63
64
  */
64
65
  // TODO(burdon): EntityGenesis?
65
66
  message ItemGenesis {
66
- string itemType = 1;
67
+ optional string itemType = 1;
67
68
  string modelType = 2;
68
- string modelVersion = 3;
69
- LinkData link = 4;
69
+ optional string modelVersion = 3;
70
+ optional LinkData link = 4;
70
71
  }
71
72
 
72
73
  /**
@@ -79,6 +80,6 @@ message ItemMutation {
79
80
  RESTORE = 2;
80
81
  }
81
82
 
82
- string parentId = 1; // TODO(burdon): Define Action type?
83
- Action action = 2;
83
+ optional string parentId = 1; // TODO(burdon): Define Action type?
84
+ optional Action action = 2;
84
85
  }
@@ -22,8 +22,8 @@ message InvitationDescriptor {
22
22
  bytes invitation = 3;
23
23
 
24
24
  /// Only present if type == OFFLINE.
25
- bytes identityKey = 4;
25
+ optional bytes identityKey = 4;
26
26
 
27
27
  /// Must be stripped out when passing to another peer.
28
- bytes secret = 5;
28
+ optional bytes secret = 5;
29
29
  }
@@ -7,12 +7,13 @@ syntax = "proto3";
7
7
  package dxos.echo.metadata;
8
8
 
9
9
  import "google/protobuf/timestamp.proto";
10
+
10
11
  import "../halo/keys.proto";
11
12
 
12
13
  message EchoMetadata {
13
14
  /**
14
15
  * Version number that is inceremnted every time there's a breaking change to the storage schema.
15
- *
16
+ *
16
17
  * This is used to detect if the storage schema has changed since the last time the client was run.
17
18
  * Loading data from a different version will might result in an error.
18
19
  */
@@ -29,17 +30,17 @@ message PartyMetadata {
29
30
  /// Party key.
30
31
  PubKey key = 1;
31
32
 
32
- PubKey genesis_feed_key = 6;
33
+ optional PubKey genesis_feed_key = 6;
33
34
 
34
35
  /// Key of the wriatable control feed.
35
- PubKey control_feed_key = 4;
36
+ optional PubKey control_feed_key = 4;
36
37
 
37
38
  /// Key of the wriatable data feed.
38
- PubKey data_feed_key = 3;
39
+ optional PubKey data_feed_key = 3;
39
40
 
40
41
  // Latest timeframe reached while processing party messages.
41
- TimeframeVector latest_timeframe = 5;
42
+ optional TimeframeVector latest_timeframe = 5;
42
43
 
43
44
  /// List of all feed associated with the party.
44
45
  repeated PubKey feed_keys = 2;
45
- }
46
+ }
@@ -5,8 +5,8 @@
5
5
  syntax = "proto3";
6
6
 
7
7
  import "../halo/keys.proto";
8
- import "feed.proto";
9
- import "snapshot.proto";
8
+ import "./feed.proto";
9
+ import "./snapshot.proto";
10
10
 
11
11
  package dxos.echo.service;
12
12
 
@@ -59,6 +59,6 @@ service DataService {
59
59
  rpc SubscribeEntitySet(SubscribeEntitySetRequest) returns (stream SubscribeEntitySetResponse);
60
60
 
61
61
  rpc SubscribeEntityStream(SubscribeEntityStreamRequest) returns (stream SubscribeEntityStreamResponse);
62
-
62
+
63
63
  rpc Write(WriteRequest) returns (MutationReceipt);
64
64
  }
@@ -6,8 +6,8 @@ syntax = "proto3";
6
6
 
7
7
  package dxos.echo.snapshot;
8
8
 
9
- import "./feed.proto";
10
9
  import "../halo/keys.proto";
10
+ import "./feed.proto";
11
11
 
12
12
  //
13
13
  // Snapshots define full party state at a given point in time.
@@ -20,10 +20,11 @@ import "../halo/keys.proto";
20
20
 
21
21
  message PartySnapshot {
22
22
  bytes partyKey = 1;
23
- TimeframeVector timeframe = 2;
23
+ optional TimeframeVector timeframe = 2;
24
24
 
25
25
  // Unix timestamp of the snapshot creation time. For information purposes only.
26
- int32 timestamp = 3;
26
+ // TODO(dmaretskyi): Convert to google.protobuf.Timestamp.
27
+ optional int32 timestamp = 3;
27
28
 
28
29
  HaloStateSnapshot halo = 11;
29
30
  // TODO(dmaretskyi): Rename to EchoSnapshot.
@@ -48,7 +49,7 @@ message DatabaseSnapshot {
48
49
  message ItemSnapshot {
49
50
  optional string itemId = 1;
50
51
  optional string itemType = 2;
51
- optional string modelType = 3;
52
+ string modelType = 3;
52
53
  optional string modelVersion = 4;
53
54
  optional string parentId = 5;
54
55
  optional ModelSnapshot model = 6;
@@ -57,7 +58,7 @@ message ItemSnapshot {
57
58
  message LinkSnapshot {
58
59
  optional string linkId = 1;
59
60
  optional string linkType = 2;
60
- optional string modelType = 3;
61
+ string modelType = 3;
61
62
  optional string modelVersion = 4;
62
63
  required string source = 5;
63
64
  required string target = 6;
@@ -6,25 +6,25 @@ syntax = "proto3";
6
6
 
7
7
  package dxos.credentials.auth;
8
8
 
9
- import "keys.proto";
10
- import "signed.proto";
9
+ import "./keys.proto";
10
+ import "./signed.proto";
11
11
 
12
12
  /**
13
13
  * The payload for a SignedMessage sent during handshake for replication authentication.
14
14
  */
15
15
  message Auth {
16
16
  /// The publicKey of the target Party for these credentials.
17
- PubKey partyKey = 1;
18
-
17
+ PubKey partyKey = 1;
18
+
19
19
  /// The publicKey of the authenticating Device.
20
- PubKey deviceKey = 2;
21
-
20
+ PubKey deviceKey = 2;
21
+
22
22
  /// The publicKey of the authenticating Identity.
23
- PubKey identityKey = 3;
24
-
23
+ PubKey identityKey = 3;
24
+
25
25
  /// The publicKey of the authenticating Identity.
26
- PubKey feedKey = 4;
26
+ optional PubKey feedKey = 4;
27
27
 
28
28
  /// FeedAdmit message to the should be written to a control feed in case the `feedKey` is not admitted to the party.
29
- google.protobuf.Any feed_admit = 5;
29
+ optional google.protobuf.Any feed_admit = 5;
30
30
  }
@@ -6,11 +6,12 @@ syntax = "proto3";
6
6
 
7
7
  package dxos.credentials.greet;
8
8
 
9
- import "keys.proto";
10
- import "party.proto";
11
9
  import "google/protobuf/any.proto";
12
10
  import "google/protobuf/wrappers.proto";
13
11
 
12
+ import "./keys.proto";
13
+ import "./party.proto";
14
+
14
15
  //
15
16
  // Greeting protocol:
16
17
  //
@@ -57,7 +58,7 @@ message Command {
57
58
  Type command = 1;
58
59
 
59
60
  // Auth secret (PIN, hash, AuthMessage, etc.).
60
- bytes secret = 2;
61
+ optional bytes secret = 2;
61
62
 
62
63
  // TODO(burdon): These seem to be signed messages? In which case we already know the type.
63
64
  // TODO(dboreham): static typing of contained messages is not yet supported, change from any when it is.
@@ -7,18 +7,19 @@ syntax = "proto3";
7
7
  package dxos.credentials.identity;
8
8
 
9
9
  import "google/protobuf/any.proto";
10
- import "greet.proto";
11
- import "keys.proto";
12
- import "signed.proto";
10
+
11
+ import "./greet.proto";
12
+ import "./keys.proto";
13
+ import "./signed.proto";
13
14
 
14
15
  // Additional, descriptive information about an Identity. Must be signed by the Identity's key.
15
16
  message IdentityInfo {
16
- PubKey publicKey = 1; // The publicKey of the Identity (must be signed by this key).
17
- string displayName = 2; // The display name to use for this key.
17
+ PubKey publicKey = 1; // The publicKey of the Identity (must be signed by this key).
18
+ string displayName = 2; // The display name to use for this key.
18
19
  }
19
20
 
20
21
  // Additional, descriptive information about a Device. Must be signed by the Device's key.
21
22
  message DeviceInfo {
22
- PubKey publicKey = 1; // The publicKey of the Device (must be signed by this key).
23
- string displayName = 2; // The display name to use for this key.
23
+ PubKey publicKey = 1; // The publicKey of the Device (must be signed by this key).
24
+ string displayName = 2; // The display name to use for this key.
24
25
  }