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

DROID-2435 Protocol | Enhancement | MW 0.33.0-rc16 (#1129)

This commit is contained in:
Evgenii Kozlov 2024-04-17 11:58:02 +02:00 committed by uburoiubu
parent 434f8833b1
commit cddf26d190
No known key found for this signature in database
GPG key ID: C8FB80E0A595FBB6
4 changed files with 57 additions and 44 deletions

View file

@ -114,7 +114,9 @@ message Rpc {
NO_SUCH_SPACE = 101;
SPACE_IS_DELETED = 102;
REQUEST_FAILED = 103;
NO_APPROVE_REQUESTS = 104;
LIMIT_REACHED = 104;
NO_APPROVE_REQUESTS = 105;
NOT_SHAREABLE = 106;
}
}
}
@ -168,6 +170,8 @@ message Rpc {
NO_SUCH_SPACE = 101;
SPACE_IS_DELETED = 102;
REQUEST_FAILED = 103;
LIMIT_REACHED = 104;
NOT_SHAREABLE = 105;
}
}
}
@ -193,6 +197,7 @@ message Rpc {
NO_SUCH_SPACE = 101;
SPACE_IS_DELETED = 102;
REQUEST_FAILED = 103;
LIMIT_REACHED = 104;
}
}
}
@ -217,9 +222,7 @@ message Rpc {
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
NO_SUCH_SPACE = 101;
SPACE_IS_DELETED = 102;
NO_ACTIVE_INVITE = 103;
NO_ACTIVE_INVITE = 101;
}
}
}
@ -244,8 +247,9 @@ message Rpc {
NO_SUCH_SPACE = 101;
SPACE_IS_DELETED = 102;
NO_ACTIVE_INVITE = 103;
REQUEST_FAILED = 105;
LIMIT_REACHED = 103;
REQUEST_FAILED = 104;
NOT_SHAREABLE = 105;
}
}
}
@ -273,10 +277,8 @@ message Rpc {
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
NO_SUCH_SPACE = 101;
SPACE_IS_DELETED = 102;
INVITE_NOT_FOUND = 103;
INVITE_BAD_SIGNATURE = 104;
INVITE_NOT_FOUND = 101;
INVITE_BAD_CONTENT = 102;
}
}
}
@ -305,8 +307,10 @@ message Rpc {
NO_SUCH_SPACE = 101;
SPACE_IS_DELETED = 102;
INVITE_NOT_FOUND = 103;
INVITE_BAD_SIGNATURE = 104;
INVITE_BAD_CONTENT = 104;
REQUEST_FAILED = 105;
LIMIT_REACHED = 106;
NOT_SHAREABLE = 107;
}
}
}
@ -332,6 +336,9 @@ message Rpc {
NO_SUCH_SPACE = 101;
SPACE_IS_DELETED = 102;
REQUEST_FAILED = 103;
LIMIT_REACHED = 104;
NO_SUCH_REQUEST = 105;
NOT_SHAREABLE = 106;
}
}
}
@ -358,9 +365,11 @@ message Rpc {
NO_SUCH_SPACE = 101;
SPACE_IS_DELETED = 102;
NO_SUCH_IDENTITY = 103;
NO_SUCH_REQUEST = 103;
INCORRECT_PERMISSIONS = 104;
REQUEST_FAILED = 105;
LIMIT_REACHED = 106;
NOT_SHAREABLE = 107;
}
}
}
@ -387,6 +396,9 @@ message Rpc {
NO_SUCH_SPACE = 101;
SPACE_IS_DELETED = 102;
REQUEST_FAILED = 103;
LIMIT_REACHED = 104;
NO_SUCH_REQUEST = 105;
NOT_SHAREABLE = 106;
}
}
}
@ -414,6 +426,8 @@ message Rpc {
SPACE_IS_DELETED = 102;
PARTICIPANT_NOT_FOUND = 103;
REQUEST_FAILED = 104;
LIMIT_REACHED = 105;
NOT_SHAREABLE = 106;
}
}
}
@ -440,6 +454,10 @@ message Rpc {
NO_SUCH_SPACE = 101;
SPACE_IS_DELETED = 102;
REQUEST_FAILED = 103;
LIMIT_REACHED = 104;
PARTICIPANT_NOT_FOUND = 105;
INCORRECT_PERMISSIONS = 106;
NOT_SHAREABLE = 107;
}
}
}
@ -465,6 +483,9 @@ message Rpc {
NO_SUCH_SPACE = 101;
SPACE_IS_DELETED = 102;
REQUEST_FAILED = 103;
LIMIT_REACHED = 104;
NOT_SHAREABLE = 105;
}
}
}
@ -6694,33 +6715,31 @@ message Rpc {
* Tiers can change on the backend so if you want to show users the latest data
* you can call this method to get the latest tiers
*/
message Tiers {
message Get {
message Request {
// pass true to force the cache update
// by default this is false
bool noCache = 1;
message GetTiers {
message Request {
// pass true to force the cache update
// by default this is false
bool noCache = 1;
string locale = 2;
}
message Response {
Error error = 1;
repeated anytype.model.MembershipTierData tiers = 2;
string locale = 2;
}
message Error {
Code code = 1;
string description = 2;
message Response {
Error error = 1;
repeated anytype.model.MembershipTierData tiers = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
message Error {
Code code = 1;
string description = 2;
NOT_LOGGED_IN = 3;
PAYMENT_NODE_ERROR = 4;
CACHE_ERROR = 5;
}
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
NOT_LOGGED_IN = 3;
PAYMENT_NODE_ERROR = 4;
CACHE_ERROR = 5;
}
}
}

View file

@ -1196,7 +1196,7 @@ message Membership {
enum PaymentMethod {
MethodNone = 0;
MethodCard = 1;
MethodStripe = 1;
MethodCrypto = 2;
MethodInappApple = 3;
MethodInappGoogle = 4;