1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-2316 Protocol | Enhancement | MW 0.32.2 (#1013)

This commit is contained in:
Evgenii Kozlov 2024-03-19 13:06:30 +01:00 committed by GitHub
parent 7049ce5919
commit c4c49a6aa6
Signed by: github
GPG key ID: B5690EEEBB952194
4 changed files with 54 additions and 4 deletions

View file

@ -1,5 +1,5 @@
[versions]
middlewareVersion = "v0.32.1"
middlewareVersion = "v0.32.2"
kotlinVersion = '1.8.22'
androidxCoreVersion = "1.12.0"

View file

@ -60,6 +60,8 @@ message Change {
StoreSliceUpdate storeSliceUpdate = 109;
OriginalCreatedTimestampSet originalCreatedTimestampSet = 110;
SetFileInfo setFileInfo = 111;
NotificationCreate notificationCreate = 112;
NotificationUpdate notificationUpdate = 113;
}
reserved 102,103,104; // old unsupported relation changes
}
@ -154,6 +156,15 @@ message Change {
}
message SetFileInfo {
model.FileInfo fileInfo = 1;
model.FileInfo fileInfo = 1;
}
message NotificationCreate {
anytype.model.Notification notification = 1;
}
message NotificationUpdate {
string id = 1;
anytype.model.Notification.Status status = 2;
}
}

View file

@ -546,6 +546,8 @@ message Rpc {
Error error = 1;
string token = 2;
string appToken = 3; // in case of mnemonic auth, need to be persisted by client
string accountId = 4; // temp, should be replaced with AccountInfo message
message Error {
Code code = 1;
string description = 2;
@ -580,7 +582,6 @@ message Rpc {
}
}
}
message Account {
@ -2464,6 +2465,7 @@ message Rpc {
IMPORT_IS_CANCELED = 6;
LIMIT_OF_ROWS_OR_RELATIONS_EXCEEDED = 7;
FILE_LOAD_ERROR = 8;
INSUFFICIENT_PERMISSIONS = 9;
}
}
}
@ -2581,13 +2583,13 @@ message Rpc {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
INSUFFICIENT_PERMISSION = 3;
}
}
}
}
}
message ObjectCollection {
message Add {
message Request {

View file

@ -48,6 +48,8 @@ enum SmartBlockType {
MissingObject = 0x207;
FileObject = 0x215;
NotificationObject = 0x217;
}
message Block {
@ -968,8 +970,14 @@ message Notification {
GalleryImport galleryImport = 9;
RequestToJoin requestToJoin = 10;
Test test = 11;
ParticipantRequestApproved participantRequestApproved = 13;
RequestToLeave requestToLeave = 15;
ParticipantRemove participantRemove = 16;
ParticipantRequestDecline participantRequestDecline = 17;
ParticipantPermissionsChange participantPermissionsChange = 18;
}
string space = 7;
string aclHeadId = 14;
message Import {
string processId = 1;
@ -1005,6 +1013,34 @@ message Notification {
message Test {}
message ParticipantRequestApproved {
string spaceId = 1;
ParticipantPermissions permissions = 2;
}
message RequestToLeave {
string spaceId = 1;
string identity = 2;
string identityName = 3;
string identityIcon = 4;
}
message ParticipantRemove {
string identity = 1;
string identityName = 2;
string identityIcon = 3;
string spaceId = 4;
}
message ParticipantRequestDecline {
string spaceId = 1;
}
message ParticipantPermissionsChange {
string spaceId = 1;
ParticipantPermissions permissions = 2;
}
enum Status {
Created = 0;
Shown = 1;
@ -1048,6 +1084,7 @@ message Import {
IMPORT_IS_CANCELED = 6;
LIMIT_OF_ROWS_OR_RELATIONS_EXCEEDED = 7;
FILE_LOAD_ERROR = 8;
INSUFFICIENT_PERMISSIONS = 9;
}
}