@@ -4,16 +4,15 @@ package xmtp.mls.api.v1;
4
4
5
5
import "google/api/annotations.proto" ;
6
6
import "google/protobuf/empty.proto" ;
7
- import "message_contents/signature.proto" ;
8
7
import "protoc-gen-openapiv2/options/annotations.proto" ;
9
8
10
9
option go_package = "github.com/xmtp/proto/v3/go/mls/api/v1" ;
11
10
option java_package = "org.xmtp.proto.mls.api.v1" ;
12
11
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger ) = {
13
12
info : {
14
- title : "MlsApi" ;
15
- version : "1.0" ;
16
- };
13
+ title : "MlsApi"
14
+ version : "1.0"
15
+ }
17
16
};
18
17
19
18
// RPCs for the new MLS API
@@ -35,14 +34,6 @@ service MlsApi {
35
34
};
36
35
}
37
36
38
- // Register a new installation, which would be validated before storage
39
- rpc RegisterInstallation (RegisterInstallationRequest ) returns (RegisterInstallationResponse ) {
40
- option (google.api.http ) = {
41
- post : "/mls/v1/register-installation"
42
- body : "*"
43
- };
44
- }
45
-
46
37
// Upload a new KeyPackage, which would be validated before storage
47
38
rpc UploadKeyPackage (UploadKeyPackageRequest ) returns (google .protobuf .Empty ) {
48
39
option (google.api.http ) = {
@@ -59,25 +50,6 @@ service MlsApi {
59
50
};
60
51
}
61
52
62
- // Would delete all key packages associated with the installation and mark
63
- // the installation as having been revoked
64
- rpc RevokeInstallation (RevokeInstallationRequest ) returns (google .protobuf .Empty ) {
65
- option (google.api.http ) = {
66
- post : "/mls/v1/revoke-installation"
67
- body : "*"
68
- };
69
- }
70
-
71
- // Used to check for changes related to members of a group.
72
- // Would return an array of any new installations associated with the wallet
73
- // address, and any revocations that have happened.
74
- rpc GetIdentityUpdates (GetIdentityUpdatesRequest ) returns (GetIdentityUpdatesResponse ) {
75
- option (google.api.http ) = {
76
- post : "/mls/v1/get-identity-updates"
77
- body : "*"
78
- };
79
- }
80
-
81
53
// Query stored group messages
82
54
rpc QueryGroupMessages (QueryGroupMessagesRequest ) returns (QueryGroupMessagesResponse ) {
83
55
option (google.api.http ) = {
@@ -190,18 +162,6 @@ message KeyPackageUpload {
190
162
bytes key_package_tls_serialized = 1 ;
191
163
}
192
164
193
- // Register a new installation
194
- message RegisterInstallationRequest {
195
- // The Key Package contains all information needed to register an installation
196
- KeyPackageUpload key_package = 1 ;
197
- bool is_inbox_id_credential = 2 ;
198
- }
199
-
200
- // The response to a RegisterInstallationRequest
201
- message RegisterInstallationResponse {
202
- bytes installation_key = 1 ;
203
- }
204
-
205
165
// Upload a new key packages
206
166
message UploadKeyPackageRequest {
207
167
// An individual key package upload request
@@ -230,52 +190,6 @@ message FetchKeyPackagesResponse {
230
190
repeated KeyPackage key_packages = 1 ;
231
191
}
232
192
233
- // Revoke an installation
234
- message RevokeInstallationRequest {
235
- bytes installation_key = 1 ;
236
- // All revocations must be validated with a wallet signature over the
237
- // installation_id being revoked (and some sort of standard prologue)
238
- xmtp.message_contents.Signature wallet_signature = 2 ;
239
- }
240
-
241
- // Get all updates for an identity since the specified time
242
- message GetIdentityUpdatesRequest {
243
- repeated string account_addresses = 1 ;
244
- uint64 start_time_ns = 2 ;
245
- }
246
-
247
- // Used to get any new or revoked installations for a list of wallet addresses
248
- message GetIdentityUpdatesResponse {
249
- // A new installation key was seen for the first time by the nodes
250
- message NewInstallationUpdate {
251
- bytes installation_key = 1 ;
252
- bytes credential_identity = 2 ;
253
- }
254
-
255
- // An installation was revoked
256
- message RevokedInstallationUpdate {
257
- bytes installation_key = 1 ;
258
- }
259
-
260
- // A wrapper for any update to the wallet
261
- message Update {
262
- uint64 timestamp_ns = 1 ;
263
- oneof kind {
264
- NewInstallationUpdate new_installation = 2 ;
265
- RevokedInstallationUpdate revoked_installation = 3 ;
266
- }
267
- }
268
-
269
- // A wrapper for the updates for a single wallet
270
- message WalletUpdates {
271
- repeated Update updates = 1 ;
272
- }
273
-
274
- // A list of updates (or empty objects if no changes) in the original order
275
- // of the request
276
- repeated WalletUpdates updates = 1 ;
277
- }
278
-
279
193
// Sort direction for queries
280
194
enum SortDirection {
281
195
SORT_DIRECTION_UNSPECIFIED = 0 ;
0 commit comments