@dxos/protocols 2.33.9-dev.d9963f00 → 2.33.9-dev.eb69ac10

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 (99) 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 +216 -18
  6. package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
  7. package/dist/src/proto/gen/dxos/client.js +4 -0
  8. package/dist/src/proto/gen/dxos/client.js.map +1 -1
  9. package/dist/src/proto/gen/dxos/config.d.ts +457 -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.map +1 -1
  58. package/dist/src/proto/gen/index.js +1 -1
  59. package/dist/src/proto/gen/index.js.map +1 -1
  60. package/dist/src/public-key.d.ts +2 -2
  61. package/dist/src/public-key.d.ts.map +1 -1
  62. package/dist/src/public-key.js +26 -2
  63. package/dist/src/public-key.js.map +1 -1
  64. package/dist/tsconfig.tsbuildinfo +1 -1
  65. package/package.json +2 -2
  66. package/src/proto/dxos/bot.proto +21 -21
  67. package/src/proto/dxos/client.proto +17 -17
  68. package/src/proto/dxos/config.proto +90 -90
  69. package/src/proto/dxos/devtools.proto +15 -15
  70. package/src/proto/dxos/echo/feed.proto +9 -9
  71. package/src/proto/dxos/echo/invitation.proto +2 -2
  72. package/src/proto/dxos/echo/metadata.proto +4 -4
  73. package/src/proto/dxos/echo/snapshot.proto +5 -4
  74. package/src/proto/dxos/halo/auth.proto +2 -2
  75. package/src/proto/dxos/halo/greet.proto +1 -1
  76. package/src/proto/dxos/halo/keys.proto +6 -6
  77. package/src/proto/dxos/halo/signed.proto +14 -7
  78. package/src/proto/dxos/rpc.proto +14 -4
  79. package/src/proto/gen/dxos/bot.ts +139 -4
  80. package/src/proto/gen/dxos/client.ts +216 -18
  81. package/src/proto/gen/dxos/config.ts +457 -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 +1 -1
  99. package/src/public-key.ts +31 -3
@@ -11,54 +11,54 @@ import "google/protobuf/descriptor.proto";
11
11
  package dxos.config;
12
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 {
@@ -89,66 +89,66 @@ message Runtime {
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
107
 
108
- Mode mode = 6;
108
+ optional Mode mode = 6;
109
109
  }
110
110
 
111
111
  message App {
112
- string org = 1;
113
- string theme = 2;
114
- string website = 3;
115
- string public_url = 4 [(env) = "PUBLIC_URL"];
112
+ optional string org = 1;
113
+ optional string theme = 2;
114
+ optional string website = 3;
115
+ optional string public_url = 4 [(env) = "PUBLIC_URL"];
116
116
  }
117
117
 
118
118
  // CLI configuration
119
119
  message CLI {
120
120
  message AppServe {
121
121
  message Serve {
122
- string config = 1;
123
- string login_app = 2;
124
- string key_phrase = 3;
122
+ optional string config = 1;
123
+ optional string login_app = 2;
124
+ optional string key_phrase = 3;
125
125
  }
126
126
 
127
- Serve serve = 1;
127
+ optional Serve serve = 1;
128
128
  }
129
129
 
130
130
  message Package {
131
- string package = 1;
132
- string channel = 2;
133
- string bin = 3;
134
- string config = 4;
131
+ optional string package = 1;
132
+ optional string channel = 2;
133
+ optional string bin = 3;
134
+ optional string config = 4;
135
135
  }
136
136
 
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;
137
+ optional string node_path = 1;
138
+ optional AppServe app = 2;
139
+ optional Package console = 3;
140
+ optional Package mdns = 4;
141
+ optional Package signal = 5;
142
+ optional string npm_client = 6;
143
+ optional string channel = 7;
144
144
  }
145
145
 
146
146
  message Props {
147
- string title = 1;
147
+ optional string title = 1;
148
148
  }
149
149
 
150
150
  message System {
151
- string debug = 1;
151
+ optional string debug = 1;
152
152
  }
153
153
 
154
154
  //
@@ -158,23 +158,23 @@ message Runtime {
158
158
  message Kube {
159
159
 
160
160
  message Endpoints {
161
- string logs = 1;
162
- string services = 2;
163
- string cert = 3;
161
+ optional string logs = 1;
162
+ optional string services = 2;
163
+ optional string cert = 3;
164
164
  }
165
165
 
166
- Endpoints endpoints = 1;
167
- string public_url = 2;
166
+ optional Endpoints endpoints = 1;
167
+ optional string public_url = 2;
168
168
  }
169
169
 
170
170
  message AppServer {
171
- string prefix = 1;
172
- string server = 2;
171
+ optional string prefix = 1;
172
+ optional string server = 2;
173
173
  }
174
174
 
175
175
  message Dxns {
176
176
  /// DXNS endpoint.
177
- string server = 1;
177
+ optional string server = 1;
178
178
 
179
179
  /**
180
180
  * Substrate account URI. This is a secret.
@@ -182,67 +182,67 @@ message Runtime {
182
182
  *
183
183
  * TODO(dmaretskyi): Deprecate this and move it to keyring.
184
184
  */
185
- string account_uri = 2;
185
+ optional string account_uri = 2;
186
186
 
187
187
  /**
188
188
  * Public Polkadot Address.
189
189
  */
190
- string address = 3;
190
+ optional string address = 3;
191
191
 
192
192
  /**
193
193
  * Public address of a DXNS Account.
194
194
  */
195
- string account = 4;
195
+ optional string account = 4;
196
196
 
197
- string faucet = 5;
197
+ optional string faucet = 5;
198
198
  }
199
199
 
200
200
  message Ipfs {
201
- string server = 1;
202
- string gateway = 2;
201
+ optional string server = 1;
202
+ optional string gateway = 2;
203
203
  }
204
204
 
205
205
  message Signal {
206
- string server = 1;
207
- string api = 2;
208
- string status = 3;
206
+ optional string server = 1;
207
+ optional string api = 2;
208
+ optional string status = 3;
209
209
  }
210
210
 
211
211
  message Ice {
212
- string urls = 1;
213
- string username = 2;
214
- string credential = 3;
212
+ optional string urls = 1;
213
+ optional string username = 2;
214
+ optional string credential = 3;
215
215
  }
216
216
 
217
217
  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;
218
+ optional string do_access_token = 1;
219
+ optional string github_access_token = 2;
220
+ optional string github_username = 3;
221
+ optional string dns_domain = 4;
222
+ optional string npm_access_token = 5;
223
223
  }
224
224
 
225
225
  message BotFactory {
226
- string topic = 1;
227
- bool persistent = 2;
228
- int32 retry_attempts = 3;
229
- int32 retry_interval = 4;
226
+ optional string topic = 1;
227
+ optional bool persistent = 2;
228
+ optional int32 retry_attempts = 3;
229
+ optional int32 retry_interval = 4;
230
230
  }
231
231
 
232
- Kube kube = 1;
233
- AppServer app = 2;
234
- Dxns dxns = 3;
235
- Ipfs ipfs = 4;
236
- Signal signal = 5;
232
+ optional Kube kube = 1;
233
+ optional AppServer app = 2;
234
+ optional Dxns dxns = 3;
235
+ optional Ipfs ipfs = 4;
236
+ optional Signal signal = 5;
237
237
  repeated Ice ice = 6;
238
- Machine machine = 7;
239
- BotFactory bot = 8;
238
+ optional Machine machine = 7;
239
+ optional BotFactory bot = 8;
240
240
  }
241
241
 
242
- Client client = 1;
243
- App app = 2;
244
- CLI cli = 3;
245
- Props props = 4;
246
- Services services = 5;
247
- System system = 6;
242
+ optional Client client = 1;
243
+ optional App app = 2;
244
+ optional CLI cli = 3;
245
+ optional Props props = 4;
246
+ optional Services services = 5;
247
+ optional System system = 6;
248
248
  }
@@ -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
  }
@@ -39,16 +39,16 @@ message EchoEnvelope {
39
39
  string itemId = 1;
40
40
 
41
41
  // Create item.
42
- ItemGenesis genesis = 10;
42
+ optional ItemGenesis genesis = 10;
43
43
 
44
44
  // Item system mutations.
45
- ItemMutation itemMutation = 11;
45
+ optional ItemMutation itemMutation = 11;
46
46
 
47
47
  // Model-specific mutations.
48
- bytes mutation = 12;
48
+ optional bytes mutation = 12;
49
49
 
50
50
  /// Set the model to the provided snapshot.
51
- ModelSnapshot snapshot = 13;
51
+ optional ModelSnapshot snapshot = 13;
52
52
  }
53
53
 
54
54
  // TODO(burdon): Document (different from parent/child).?
@@ -63,10 +63,10 @@ message LinkData {
63
63
  */
64
64
  // TODO(burdon): EntityGenesis?
65
65
  message ItemGenesis {
66
- string itemType = 1;
66
+ optional string itemType = 1;
67
67
  string modelType = 2;
68
- string modelVersion = 3;
69
- LinkData link = 4;
68
+ optional string modelVersion = 3;
69
+ optional LinkData link = 4;
70
70
  }
71
71
 
72
72
  /**
@@ -79,6 +79,6 @@ message ItemMutation {
79
79
  RESTORE = 2;
80
80
  }
81
81
 
82
- string parentId = 1; // TODO(burdon): Define Action type?
83
- Action action = 2;
82
+ optional string parentId = 1; // TODO(burdon): Define Action type?
83
+ optional Action action = 2;
84
84
  }
@@ -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
  }
@@ -29,16 +29,16 @@ message PartyMetadata {
29
29
  /// Party key.
30
30
  PubKey key = 1;
31
31
 
32
- PubKey genesis_feed_key = 6;
32
+ optional PubKey genesis_feed_key = 6;
33
33
 
34
34
  /// Key of the wriatable control feed.
35
- PubKey control_feed_key = 4;
35
+ optional PubKey control_feed_key = 4;
36
36
 
37
37
  /// Key of the wriatable data feed.
38
- PubKey data_feed_key = 3;
38
+ optional PubKey data_feed_key = 3;
39
39
 
40
40
  // Latest timeframe reached while processing party messages.
41
- TimeframeVector latest_timeframe = 5;
41
+ optional TimeframeVector latest_timeframe = 5;
42
42
 
43
43
  /// List of all feed associated with the party.
44
44
  repeated PubKey feed_keys = 2;
@@ -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;
@@ -23,8 +23,8 @@ message Auth {
23
23
  PubKey identityKey = 3;
24
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
  }
@@ -57,7 +57,7 @@ message Command {
57
57
  Type command = 1;
58
58
 
59
59
  // Auth secret (PIN, hash, AuthMessage, etc.).
60
- bytes secret = 2;
60
+ optional bytes secret = 2;
61
61
 
62
62
  // TODO(burdon): These seem to be signed messages? In which case we already know the type.
63
63
  // TODO(dboreham): static typing of contained messages is not yet supported, change from any when it is.
@@ -43,33 +43,33 @@ message KeyRecord {
43
43
  /**
44
44
  * The secret key as a Buffer (this will never be visible outside the Keyring).
45
45
  */
46
- PrivKey secretKey = 3;
46
+ optional PrivKey secretKey = 3;
47
47
 
48
48
  /**
49
49
  * Is this key from a Greeting "hint"?
50
50
  */
51
- bool hint = 4;
51
+ optional bool hint = 4;
52
52
 
53
53
  /**
54
54
  * Determines if this is our key?
55
55
  * Usually true if `secretKey` is present; may be false for "inception keys" such as the Party key.
56
56
  */
57
- bool own = 5; // TODO(burdon): Rename "local" or "private".
57
+ optional bool own = 5; // TODO(burdon): Rename "local" or "private".
58
58
 
59
59
  /**
60
60
  * Is this key to be trusted?
61
61
  */
62
- bool trusted = 6; // TODO(burdon): Rename "trust". How is this determined?
62
+ optional bool trusted = 6; // TODO(burdon): Rename "trust". How is this determined?
63
63
 
64
64
  /**
65
65
  * An RFC-3339 date/time string for when the key was added to the Keyring.
66
66
  */
67
- string added = 7;
67
+ optional string added = 7;
68
68
 
69
69
  /**
70
70
  * An RFC-3339 date/time string for when the key was created.
71
71
  */
72
- string created = 8;
72
+ optional string created = 8;
73
73
  }
74
74
 
75
75
  message KeyRecordList {
@@ -23,20 +23,27 @@ message SignedMessage {
23
23
  // Provides the common metadata needed for all signed objects.
24
24
  //
25
25
  message Signed {
26
- required string created = 1; // RFC-3339 datetime string.
26
+ /// RFC-3339 datetime string.
27
+ required string created = 1;
27
28
  required bytes nonce = 2;
28
- required google.protobuf.Any payload = 10; // The payload to be signed.
29
+ /// The payload to be signed.
30
+ required google.protobuf.Any payload = 10;
29
31
  }
30
32
 
31
33
  //
32
34
  // The signature data itself.
33
35
  //
34
36
  message Signature {
35
- required PubKey key = 1; // The publicKey of the keypair that made this signature.
36
- required bytes signature = 2; // The bytes of the signature.
37
- KeyChain keyChain = 3; // Optional. The certification chain of SignedMessages for this key.
37
+ /// The publicKey of the keypair that made this signature.
38
+ required PubKey key = 1;
39
+ /// The bytes of the signature.
40
+ required bytes signature = 2;
41
+ /// The certification chain of SignedMessages for this key.
42
+ optional KeyChain keyChain = 3;
38
43
  }
39
44
 
40
- required Signed signed = 1; // The signed message contents.
41
- repeated Signature signatures = 2; // An array of Signatures, one for each key that signed the message.
45
+ /// The signed message contents.
46
+ required Signed signed = 1;
47
+ /// An array of Signatures, one for each key that signed the message.
48
+ repeated Signature signatures = 2;
42
49
  }
@@ -8,6 +8,8 @@ import "google/protobuf/any.proto";
8
8
 
9
9
  package dxos.rpc;
10
10
 
11
+ option go_package = "github.com/dxos/kube/go/dxrpc/pb";
12
+
11
13
  message RpcMessage {
12
14
  oneof content {
13
15
  Request request = 1;
@@ -34,8 +36,16 @@ message Response {
34
36
  oneof content {
35
37
  google.protobuf.Any payload = 2;
36
38
  Error error = 3;
37
- // Sent when stream is closed without an error.
39
+ /// Sent when stream is closed without an error.
38
40
  bool close = 4;
41
+
42
+ /**
43
+ * Sent when the server has processed a request with a streaming response.
44
+ *
45
+ * Can be skipped by the server.
46
+ * In this case the first payload should be treated as the server being ready.
47
+ */
48
+ bool stream_ready = 5;
39
49
  }
40
50
  }
41
51
 
@@ -45,9 +55,9 @@ message StreamClose {
45
55
  }
46
56
 
47
57
  message Error {
48
- string name = 1;
49
- string message = 2;
50
- string stack = 3;
58
+ optional string name = 1;
59
+ optional string message = 2;
60
+ optional string stack = 3;
51
61
  }
52
62
 
53
63
  message MessageTrace {