diff --git a/protocol/src/main/proto/commands.proto b/protocol/src/main/proto/commands.proto index 18f986d9b6..39924e8fb5 100644 --- a/protocol/src/main/proto/commands.proto +++ b/protocol/src/main/proto/commands.proto @@ -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; diff --git a/protocol/src/main/proto/events.proto b/protocol/src/main/proto/events.proto index d2f121ac90..a5b5820be8 100644 --- a/protocol/src/main/proto/events.proto +++ b/protocol/src/main/proto/events.proto @@ -732,7 +732,7 @@ message Event { FaviconHash faviconHash = 6; Type type = 7; TargetObjectId targetObjectId = 8; - + message Url { string value = 1;