@dxos/protocols 2.33.9-dev.7d11f506 → 2.33.9-dev.9bbef4e2
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/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/proto/gen/dxos/bot.d.ts +139 -4
- package/dist/src/proto/gen/dxos/bot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/bot.js +4 -0
- package/dist/src/proto/gen/dxos/bot.js.map +1 -1
- package/dist/src/proto/gen/dxos/client.d.ts +216 -18
- package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client.js +4 -0
- package/dist/src/proto/gen/dxos/client.js.map +1 -1
- package/dist/src/proto/gen/dxos/config.d.ts +457 -0
- package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/config.js +10 -0
- package/dist/src/proto/gen/dxos/config.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/auth.d.ts +12 -3
- package/dist/src/proto/gen/dxos/credentials/auth.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/greet.d.ts +39 -8
- package/dist/src/proto/gen/dxos/credentials/greet.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/greet.js +4 -0
- package/dist/src/proto/gen/dxos/credentials/greet.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/identity.d.ts +12 -4
- package/dist/src/proto/gen/dxos/credentials/identity.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/party.d.ts +50 -18
- package/dist/src/proto/gen/dxos/credentials/party.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/credentials/party.js +4 -0
- package/dist/src/proto/gen/dxos/credentials/party.js.map +1 -1
- package/dist/src/proto/gen/dxos/credentials.d.ts +39 -0
- package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/devtools.d.ts +266 -30
- package/dist/src/proto/gen/dxos/devtools.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.d.ts +65 -6
- package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/feed.js +4 -0
- package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/invitation.d.ts +19 -3
- package/dist/src/proto/gen/dxos/echo/invitation.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/invitation.js +6 -0
- package/dist/src/proto/gen/dxos/echo/invitation.js.map +1 -1
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts +26 -4
- package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/service.d.ts +49 -13
- package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +45 -13
- package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +9 -2
- package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.d.ts +44 -2
- package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/halo/keys.js +4 -0
- package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.d.ts +58 -8
- package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/rpc.js +4 -0
- package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
- package/dist/src/proto/gen/dxos/test/echo.d.ts +15 -3
- package/dist/src/proto/gen/dxos/test/echo.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts +91 -91
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- 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/dist/src/proto/index.d.ts +0 -1
- package/dist/src/proto/index.d.ts.map +1 -1
- package/dist/src/proto/index.js +0 -16
- package/dist/src/proto/index.js.map +1 -1
- package/dist/src/public-key.d.ts +2 -2
- package/dist/src/public-key.d.ts.map +1 -1
- package/dist/src/public-key.js +31 -7
- package/dist/src/public-key.js.map +1 -1
- package/dist/src/timeframe.d.ts +1 -1
- package/dist/src/timeframe.d.ts.map +1 -1
- package/dist/src/timeframe.js +2 -2
- package/dist/src/timeframe.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -4
- package/src/index.ts +0 -1
- package/src/proto/dxos/bot.proto +25 -21
- package/src/proto/dxos/client.proto +19 -18
- package/src/proto/dxos/config.proto +101 -101
- package/src/proto/dxos/devtools.proto +15 -15
- package/src/proto/dxos/echo/feed.proto +10 -9
- package/src/proto/dxos/echo/invitation.proto +2 -2
- package/src/proto/dxos/echo/metadata.proto +7 -6
- package/src/proto/dxos/echo/service.proto +3 -3
- package/src/proto/dxos/echo/snapshot.proto +6 -5
- package/src/proto/dxos/halo/auth.proto +10 -10
- package/src/proto/dxos/halo/greet.proto +4 -3
- package/src/proto/dxos/halo/identity.proto +8 -7
- package/src/proto/dxos/halo/keys.proto +8 -7
- package/src/proto/dxos/halo/party.proto +3 -2
- package/src/proto/dxos/halo/signed.proto +16 -8
- package/src/proto/dxos/rpc.proto +15 -5
- package/src/proto/gen/dxos/bot.ts +139 -4
- package/src/proto/gen/dxos/client.ts +216 -18
- package/src/proto/gen/dxos/config.ts +457 -0
- package/src/proto/gen/dxos/credentials/auth.ts +12 -3
- package/src/proto/gen/dxos/credentials/greet.ts +39 -8
- package/src/proto/gen/dxos/credentials/identity.ts +12 -4
- package/src/proto/gen/dxos/credentials/party.ts +50 -18
- package/src/proto/gen/dxos/credentials.ts +39 -0
- package/src/proto/gen/dxos/devtools.ts +266 -30
- package/src/proto/gen/dxos/echo/feed.ts +65 -6
- package/src/proto/gen/dxos/echo/invitation.ts +19 -3
- package/src/proto/gen/dxos/echo/metadata.ts +26 -4
- package/src/proto/gen/dxos/echo/service.ts +49 -13
- package/src/proto/gen/dxos/echo/snapshot.ts +45 -13
- package/src/proto/gen/dxos/echo/timeframe.ts +9 -2
- package/src/proto/gen/dxos/halo/keys.ts +44 -2
- package/src/proto/gen/dxos/rpc.ts +58 -8
- package/src/proto/gen/dxos/test/echo.ts +15 -3
- package/src/proto/gen/google/protobuf.ts +91 -91
- package/src/proto/gen/index.ts +1 -1
- package/src/proto/index.ts +0 -2
- package/src/public-key.ts +32 -4
- package/src/timeframe.ts +1 -1
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
syntax = "proto3";
|
|
6
6
|
|
|
7
7
|
import "google/protobuf/empty.proto";
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
import "./config.proto";
|
|
9
10
|
import "./echo/invitation.proto";
|
|
10
11
|
import "./echo/snapshot.proto";
|
|
11
12
|
import "./halo/keys.proto";
|
|
@@ -34,12 +35,12 @@ enum InvitationState {
|
|
|
34
35
|
|
|
35
36
|
/// Invitation process created by sender.
|
|
36
37
|
message InvitationRequest {
|
|
37
|
-
InvitationDescriptor descriptor = 1;
|
|
38
|
+
optional InvitationDescriptor descriptor = 1;
|
|
38
39
|
|
|
39
40
|
InvitationState state = 2;
|
|
40
41
|
|
|
41
42
|
/// Only if state == ERROR.
|
|
42
|
-
string error = 3;
|
|
43
|
+
optional string error = 3;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
/// Invitation that is being redeemed.
|
|
@@ -49,10 +50,10 @@ message RedeemedInvitation {
|
|
|
49
50
|
InvitationState state = 2;
|
|
50
51
|
|
|
51
52
|
/// Only if state == ERROR.
|
|
52
|
-
string error = 3;
|
|
53
|
+
optional string error = 3;
|
|
53
54
|
|
|
54
55
|
/// Only on party invitations that are finished.
|
|
55
|
-
dxos.halo.keys.PubKey partyKey = 4;
|
|
56
|
+
optional dxos.halo.keys.PubKey partyKey = 4;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
message AuthenticateInvitationRequest {
|
|
@@ -67,17 +68,17 @@ message AuthenticateInvitationRequest {
|
|
|
67
68
|
|
|
68
69
|
message Profile {
|
|
69
70
|
required dxos.halo.keys.PubKey publicKey = 1;
|
|
70
|
-
string username = 2;
|
|
71
|
+
optional string username = 2;
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
message SubscribeProfileResponse {
|
|
74
|
-
Profile profile = 1;
|
|
75
|
+
optional Profile profile = 1;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
message CreateProfileRequest {
|
|
78
|
-
string username = 1;
|
|
79
|
-
bytes publicKey = 2;
|
|
80
|
-
bytes secretKey = 3;
|
|
79
|
+
optional string username = 1;
|
|
80
|
+
optional bytes publicKey = 2;
|
|
81
|
+
optional bytes secretKey = 3;
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
message RecoverProfileRequest {
|
|
@@ -86,7 +87,7 @@ message RecoverProfileRequest {
|
|
|
86
87
|
|
|
87
88
|
message Contact {
|
|
88
89
|
dxos.halo.keys.PubKey publicKey = 1;
|
|
89
|
-
string displayName = 2;
|
|
90
|
+
optional string displayName = 2;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
message Contacts {
|
|
@@ -154,7 +155,7 @@ service HaloService {
|
|
|
154
155
|
message Party {
|
|
155
156
|
message Member {
|
|
156
157
|
required dxos.halo.keys.PubKey publicKey = 1;
|
|
157
|
-
string displayName = 2;
|
|
158
|
+
optional string displayName = 2;
|
|
158
159
|
}
|
|
159
160
|
|
|
160
161
|
required dxos.halo.keys.PubKey publicKey = 1;
|
|
@@ -179,7 +180,7 @@ message PartyDetails {
|
|
|
179
180
|
}
|
|
180
181
|
|
|
181
182
|
message SubscribePartyResponse {
|
|
182
|
-
Party party = 1;
|
|
183
|
+
optional Party party = 1;
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
|
|
@@ -191,7 +192,7 @@ message CreateInvitationRequest {
|
|
|
191
192
|
required dxos.halo.keys.PubKey partyKey = 1;
|
|
192
193
|
|
|
193
194
|
/// When specified the invitation will be of OFFLINE type, not requiring secret exchange.
|
|
194
|
-
dxos.halo.keys.PubKey inviteeKey = 2;
|
|
195
|
+
optional dxos.halo.keys.PubKey inviteeKey = 2;
|
|
195
196
|
}
|
|
196
197
|
|
|
197
198
|
message PartyActivationOptions {
|
|
@@ -202,9 +203,9 @@ message PartyActivationOptions {
|
|
|
202
203
|
message SetPartyStateRequest {
|
|
203
204
|
required dxos.halo.keys.PubKey partyKey = 1;
|
|
204
205
|
|
|
205
|
-
bool open = 2;
|
|
206
|
-
bool activeGlobal = 3;
|
|
207
|
-
bool activeDevice = 4;
|
|
206
|
+
optional bool open = 2;
|
|
207
|
+
optional bool activeGlobal = 3;
|
|
208
|
+
optional bool activeDevice = 4;
|
|
208
209
|
}
|
|
209
210
|
|
|
210
211
|
message SubscribeMembersRequest {
|
|
@@ -214,7 +215,7 @@ message SubscribeMembersRequest {
|
|
|
214
215
|
message SubscribeMembersResponse {
|
|
215
216
|
message PartyMember {
|
|
216
217
|
required dxos.halo.keys.PubKey publicKey = 1;
|
|
217
|
-
string displayName = 2;
|
|
218
|
+
optional string displayName = 2;
|
|
218
219
|
}
|
|
219
220
|
|
|
220
221
|
repeated PartyMember members = 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,73 @@ 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
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,91 +158,91 @@ 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
|
-
|
|
166
|
-
Endpoints endpoints = 1;
|
|
167
|
-
string public_url = 2;
|
|
165
|
+
|
|
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
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
string account_uri = 2;
|
|
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
|
+
optional string account_uri = 2;
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* Public Polkadot Address.
|
|
189
|
-
|
|
190
|
-
string address = 3;
|
|
189
|
+
*/
|
|
190
|
+
optional string address = 3;
|
|
191
191
|
|
|
192
192
|
/**
|
|
193
193
|
* Public address of a DXNS Account.
|
|
194
|
-
|
|
195
|
-
string account = 4;
|
|
194
|
+
*/
|
|
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
|
}
|
|
@@ -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
|
}
|