mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3333 proto
This commit is contained in:
parent
c4f40d15c4
commit
a3eb6c9f8c
2 changed files with 50 additions and 1 deletions
|
@ -812,6 +812,54 @@ message Rpc {
|
|||
}
|
||||
}
|
||||
|
||||
message Migrate {
|
||||
message Request {
|
||||
option (no_auth) = true;
|
||||
string id = 1; // Id of a selected account
|
||||
string rootPath = 2;
|
||||
}
|
||||
|
||||
message Response {
|
||||
Error error = 1;
|
||||
message Error {
|
||||
Code code = 1;
|
||||
string description = 2;
|
||||
|
||||
enum Code {
|
||||
NULL = 0; // No error
|
||||
UNKNOWN_ERROR = 1; // Any other errors
|
||||
BAD_INPUT = 2; // Id or root path is wrong
|
||||
|
||||
ACCOUNT_NOT_FOUND = 101;
|
||||
CANCELED = 102;
|
||||
NOT_ENOUGH_FREE_SPACE = 103;
|
||||
// TODO: [storage] Add specific error codes for migration problems
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
message MigrateCancel {
|
||||
message Request {
|
||||
option (no_auth) = true;
|
||||
string id = 1; // Id of a selected account
|
||||
}
|
||||
|
||||
message Response {
|
||||
Error error = 1;
|
||||
message Error {
|
||||
Code code = 1;
|
||||
string description = 2;
|
||||
|
||||
enum Code {
|
||||
NULL = 0; // No error
|
||||
UNKNOWN_ERROR = 1; // Any other errors
|
||||
BAD_INPUT = 2; // Id or root path is wrong
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
message Select {
|
||||
/**
|
||||
* Front end to middleware request-to-launch-a specific account using account id and a root path
|
||||
|
@ -854,6 +902,7 @@ message Rpc {
|
|||
FAILED_TO_FETCH_REMOTE_NODE_HAS_INCOMPATIBLE_PROTO_VERSION = 110;
|
||||
ACCOUNT_IS_DELETED = 111;
|
||||
ACCOUNT_LOAD_IS_CANCELED = 112;
|
||||
ACCOUNT_STORE_NOT_MIGRATED = 113;
|
||||
|
||||
CONFIG_FILE_NOT_FOUND = 200;
|
||||
CONFIG_FILE_INVALID = 201;
|
||||
|
|
|
@ -732,7 +732,7 @@ message Event {
|
|||
FaviconHash faviconHash = 6;
|
||||
Type type = 7;
|
||||
TargetObjectId targetObjectId = 8;
|
||||
|
||||
|
||||
|
||||
message Url {
|
||||
string value = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue