1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-10 10:00:46 +09:00

GO-1761 Remove unused rpc errors

This commit is contained in:
kirillston 2023-08-21 15:58:07 +02:00
parent ce2109143e
commit ae86d41c9d
No known key found for this signature in database
GPG key ID: 88218A7F1109754B
3 changed files with 1008 additions and 1195 deletions

View file

@ -2313,7 +2313,7 @@ Middleware-to-front-end response for an account creation request, that can conta
| ----- | ---- | ----- | ----------- |
| error | [Rpc.Account.Create.Response.Error](#anytype-Rpc-Account-Create-Response-Error) | | Error while trying to create an account |
| account | [model.Account](#anytype-model-Account) | | A newly created account; In case of a failure, i.e. error is non-NULL, the account model should contain empty/default-value fields |
| config | [Rpc.Account.Config](#anytype-Rpc-Account-Config) | | deprecated, use account |
| config | [Rpc.Account.Config](#anytype-Rpc-Account-Config) | | deprecated, use account, GO-1926 |
@ -2447,7 +2447,7 @@ Middleware-to-front-end response for an account creation request, that can conta
<a name="anytype-Rpc-Account-GetConfig"></a>
### Rpc.Account.GetConfig
TODO: Remove this request if we do not need it, GO-1926
@ -2679,7 +2679,7 @@ Middleware-to-front-end response for an account select request, that can contain
| ----- | ---- | ----- | ----------- |
| error | [Rpc.Account.Select.Response.Error](#anytype-Rpc-Account-Select-Response-Error) | | Error while trying to launch/select an account |
| account | [model.Account](#anytype-model-Account) | | Selected account |
| config | [Rpc.Account.Config](#anytype-Rpc-Account-Config) | | deprecated, use account |
| config | [Rpc.Account.Config](#anytype-Rpc-Account-Config) | | deprecated, use account, GO-1926 |
@ -9547,7 +9547,7 @@ Get marks list in the selected range in text block.
| url | [string](#string) | | |
| localPath | [string](#string) | | |
| type | [model.Block.Content.File.Type](#anytype-model-Block-Content-File-Type) | | |
| disableEncryption | [bool](#bool) | | deprecated, has no affect |
| disableEncryption | [bool](#bool) | | deprecated, has no affect, GO-1926 |
| style | [model.Block.Content.File.Style](#anytype-model-Block-Content-File-Style) | | |
@ -10286,7 +10286,7 @@ Get the info for page alongside with info for all inbound and outbound links fro
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| contextId | [string](#string) | | deprecated |
| contextId | [string](#string) | | deprecated, GO-1926 |
| objectId | [string](#string) | | |
@ -10783,7 +10783,7 @@ Get the info for page alongside with info for all inbound and outbound links fro
| limit | [int32](#int32) | | |
| objectTypeFilter | [string](#string) | repeated | additional filter by objectTypes
DEPRECATED |
DEPRECATED, GO-1926 |
| keys | [string](#string) | repeated | |
@ -11698,7 +11698,7 @@ Deletes the object, keys from the local store and unsubscribe from remote change
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| contextId | [string](#string) | | deprecated |
| contextId | [string](#string) | | deprecated, GO-1926 |
| traceId | [string](#string) | | |
@ -11823,7 +11823,7 @@ Deletes the object, keys from the local store and unsubscribe from remote change
| limit | [int32](#int32) | | |
| objectTypeFilter | [string](#string) | repeated | additional filter by objectTypes
DEPRECATED |
DEPRECATED, GO-1926 |
| keys | [string](#string) | repeated | needed keys in details for return, when empty - will return all |
@ -12545,7 +12545,7 @@ DEPRECATED |
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| contextId | [string](#string) | | deprecated |
| contextId | [string](#string) | | deprecated, GO-1926 |
| objectId | [string](#string) | | |
| traceId | [string](#string) | | |
| includeRelationsAsDependentObjects | [bool](#bool) | | some clients may set this option instead if having the single subscription to all relations |
@ -15119,7 +15119,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| BAD_INPUT | 2 | |
| ACCOUNT_IS_NOT_RUNNING | 101 | |
| FAILED_TO_WRITE_CONFIG | 102 | |
| FAILED_TO_GET_CONFIG | 103 | |
@ -15173,14 +15172,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| BAD_INPUT | 2 | Avatar or name is not correct |
| ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE | 101 | |
| ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME | 102 | |
| ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR | 103 | |
| FAILED_TO_STOP_RUNNING_NODE | 104 | |
| FAILED_TO_WRITE_CONFIG | 105 | |
| FAILED_TO_CREATE_LOCAL_REPO | 106 | |
| BAD_INVITE_CODE | 900 | |
| NET_ERROR | 901 | means general network error |
| NET_CONNECTION_REFUSED | 902 | means we wasn&#39;t able to connect to the cafe server |
| NET_OFFLINE | 903 | client can additionally support this error code to notify user that device is offline |
@ -15242,14 +15236,7 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| NULL | 0 | No error; |
| UNKNOWN_ERROR | 1 | Any other errors |
| BAD_INPUT | 2 | |
| NO_ACCOUNTS_FOUND | 101 | |
| NEED_TO_RECOVER_WALLET_FIRST | 102 | |
| FAILED_TO_CREATE_LOCAL_REPO | 103 | |
| LOCAL_REPO_EXISTS_BUT_CORRUPTED | 104 | |
| FAILED_TO_RUN_NODE | 105 | |
| WALLET_RECOVER_NOT_PERFORMED | 106 | |
| FAILED_TO_STOP_RUNNING_NODE | 107 | |
| ANOTHER_ANYTYPE_PROCESS_IS_RUNNING | 108 | |
@ -15283,9 +15270,7 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| FAILED_TO_FIND_ACCOUNT_INFO | 104 | |
| LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET | 105 | |
| FAILED_TO_STOP_SEARCHER_NODE | 106 | |
| FAILED_TO_RECOVER_PREDEFINED_BLOCKS | 107 | |
| ANOTHER_ANYTYPE_PROCESS_IS_RUNNING | 108 | |
| ACCOUNT_IS_DELETED | 109 | |
| FAILED_TO_FETCH_REMOTE_NODE_HAS_INCOMPATIBLE_PROTO_VERSION | 110 | |
@ -15316,9 +15301,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| NULL | 0 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| VERSION_IS_EMPTY | 3 | |
| NOT_FOUND | 101 | |
| TIMEOUT | 102 | |
@ -15344,7 +15326,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| NULL | 0 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| NODE_NOT_STARTED | 101 | |
@ -15358,7 +15339,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| NULL | 0 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| NODE_NOT_STARTED | 101 | |
@ -15840,8 +15820,7 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| ---- | ------ | ----------- |
| NULL | 0 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| NOT_A_DATAVIEW_BLOCK | 3 | ... |
| BAD_INPUT | 2 | ... |
@ -16687,7 +16666,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| NULL | 0 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| NOT_FOUND | 3 | |
@ -16729,7 +16707,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| NODE_NOT_STARTED | 103 | ... |
| FILE_NOT_YET_PINNED | 104 | |
@ -16850,8 +16827,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| NULL | 0 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| NOT_FOUND | 101 | |
| TIMEOUT | 102 | |
@ -16981,8 +16956,7 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| ---- | ------ | ----------- |
| NULL | 0 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| UNKNOWN_OBJECT_TYPE_URL | 3 | ... |
| BAD_INPUT | 2 | ... |
@ -17085,10 +17059,10 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| Name | Number | Description |
| ---- | ------ | ----------- |
| NULL | 0 | |
| INTERNAL_ERROR | 1 | |
| UNAUTHORIZED | 2 | |
| UNKNOWN_ERROR | 3 | |
| BAD_INPUT | 4 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| INTERNAL_ERROR | 3 | |
| UNAUTHORIZED | 4 | |
| FORBIDDEN | 5 | |
| SERVICE_UNAVAILABLE | 6 | |
| ACCOUNT_IS_NOT_RUNNING | 7 | |
@ -17144,13 +17118,12 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| Name | Number | Description |
| ---- | ------ | ----------- |
| NULL | 0 | |
| INTERNAL_ERROR | 1 | |
| UNKNOWN_ERROR | 2 | |
| BAD_INPUT | 3 | |
| ACCOUNT_IS_NOT_RUNNING | 4 | |
| NO_OBJECTS_TO_IMPORT | 5 | |
| IMPORT_IS_CANCELED | 6 | |
| LIMIT_OF_ROWS_OR_RELATIONS_EXCEEDED | 7 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| INTERNAL_ERROR | 3 | |
| NO_OBJECTS_TO_IMPORT | 4 | |
| IMPORT_IS_CANCELED | 5 | |
| LIMIT_OF_ROWS_OR_RELATIONS_EXCEEDED | 6 | |
@ -17176,9 +17149,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| Name | Number | Description |
| ---- | ------ | ----------- |
| NULL | 0 | |
| INTERNAL_ERROR | 1 | |
| UNKNOWN_ERROR | 2 | |
| BAD_INPUT | 3 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| INTERNAL_ERROR | 3 | |
@ -17300,7 +17273,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| NULL | 0 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| UNKNOWN_OBJECT_TYPE_URL | 3 | |
@ -17421,7 +17393,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| NULL | 0 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| UNKNOWN_OBJECT_TYPE_URL | 3 | |
@ -17474,7 +17445,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| NULL | 0 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| UNKNOWN_OBJECT_TYPE_URL | 3 | |
@ -17712,8 +17682,7 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| NULL | 0 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| UNKNOWN_OBJECT_TYPE_URL | 3 | |
| READONLY_OBJECT_TYPE | 4 | ... |
| READONLY_OBJECT_TYPE | 3 | ... |
@ -17741,8 +17710,7 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| NULL | 0 | |
| UNKNOWN_ERROR | 1 | |
| BAD_INPUT | 2 | |
| UNKNOWN_OBJECT_TYPE_URL | 3 | |
| READONLY_OBJECT_TYPE | 4 | ... |
| READONLY_OBJECT_TYPE | 3 | ... |

File diff suppressed because it is too large Load diff

View file

@ -40,10 +40,6 @@ message Rpc {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
VERSION_IS_EMPTY = 3;
NOT_FOUND = 101;
TIMEOUT = 102;
}
}
}
@ -68,8 +64,6 @@ message Rpc {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
NODE_NOT_STARTED = 101;
}
}
@ -90,8 +84,6 @@ message Rpc {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
NODE_NOT_STARTED = 101;
}
}
@ -252,7 +244,7 @@ message Rpc {
option (no_auth) = true;
string name = 1; // Account name
oneof avatar {
oneof avatar { //TODO: Remove if not needed, GO-1926
string avatarLocalPath = 2; // Path to an image, that will be used as an avatar of this account
}
string storePath = 3; // Path to local storage
@ -266,7 +258,7 @@ message Rpc {
message Response {
Error error = 1; // Error while trying to create an account
anytype.model.Account account = 2; // A newly created account; In case of a failure, i.e. error is non-NULL, the account model should contain empty/default-value fields
Config config = 3; // deprecated, use account
Config config = 3; // deprecated, use account, GO-1926
message Error {
Code code = 1;
string description = 2;
@ -278,16 +270,9 @@ message Rpc {
ACCOUNT_CREATED_BUT_FAILED_TO_START_NODE = 101;
ACCOUNT_CREATED_BUT_FAILED_TO_SET_NAME = 102;
ACCOUNT_CREATED_BUT_FAILED_TO_SET_AVATAR = 103;
FAILED_TO_STOP_RUNNING_NODE = 104;
FAILED_TO_WRITE_CONFIG = 105;
FAILED_TO_CREATE_LOCAL_REPO = 106;
BAD_INVITE_CODE = 900;
NET_ERROR = 901; // means general network error
NET_CONNECTION_REFUSED = 902; // means we wasn't able to connect to the cafe server
NET_OFFLINE = 903; // client can additionally support this error code to notify user that device is offline
}
}
}
@ -315,14 +300,7 @@ message Rpc {
UNKNOWN_ERROR = 1; // Any other errors
BAD_INPUT = 2;
NO_ACCOUNTS_FOUND = 101;
NEED_TO_RECOVER_WALLET_FIRST = 102;
FAILED_TO_CREATE_LOCAL_REPO = 103;
LOCAL_REPO_EXISTS_BUT_CORRUPTED = 104;
FAILED_TO_RUN_NODE = 105;
WALLET_RECOVER_NOT_PERFORMED = 106;
FAILED_TO_STOP_RUNNING_NODE = 107;
ANOTHER_ANYTYPE_PROCESS_IS_RUNNING = 108;
}
}
}
@ -371,7 +349,7 @@ message Rpc {
message Response {
Error error = 1; // Error while trying to launch/select an account
anytype.model.Account account = 2; // Selected account
Config config = 3; // deprecated, use account
Config config = 3; // deprecated, use account, GO-1926
message Error {
Code code = 1;
string description = 2;
@ -387,9 +365,7 @@ message Rpc {
FAILED_TO_FIND_ACCOUNT_INFO = 104;
LOCAL_REPO_NOT_EXISTS_AND_MNEMONIC_NOT_SET = 105;
FAILED_TO_STOP_SEARCHER_NODE = 106;
FAILED_TO_RECOVER_PREDEFINED_BLOCKS = 107;
ANOTHER_ANYTYPE_PROCESS_IS_RUNNING = 108;
ACCOUNT_IS_DELETED = 109;
FAILED_TO_FETCH_REMOTE_NODE_HAS_INCOMPATIBLE_PROTO_VERSION = 110;
}
@ -478,7 +454,6 @@ message Rpc {
ACCOUNT_IS_NOT_RUNNING = 101;
FAILED_TO_WRITE_CONFIG = 102;
FAILED_TO_GET_CONFIG = 103;
}
}
}
@ -515,7 +490,7 @@ message Rpc {
}
}
message GetConfig {
message GetConfig { //TODO: Remove this request if we do not need it, GO-1926
message Get {
message Request {
}
@ -813,7 +788,7 @@ message Rpc {
message Close {
message Request {
string contextId = 1; // deprecated
string contextId = 1; // deprecated, GO-1926
string objectId = 2;
}
@ -836,7 +811,7 @@ message Rpc {
message Show {
message Request {
string contextId = 1; // deprecated
string contextId = 1; // deprecated, GO-1926
string objectId = 2;
string traceId = 3;
@ -1008,7 +983,6 @@ message Rpc {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
UNKNOWN_OBJECT_TYPE_URL = 3;
// ...
}
}
@ -1088,7 +1062,7 @@ message Rpc {
message OpenBreadcrumbs {
message Request {
string contextId = 1; // deprecated
string contextId = 1; // deprecated, GO-1926
string traceId = 2;
}
@ -1167,7 +1141,7 @@ message Rpc {
int32 offset = 4;
int32 limit = 5;
// additional filter by objectTypes
repeated string objectTypeFilter = 6; // DEPRECATED
repeated string objectTypeFilter = 6; // DEPRECATED, GO-1926
// needed keys in details for return, when empty - will return all
repeated string keys = 7;
}
@ -1195,7 +1169,7 @@ message Rpc {
repeated anytype.model.Block.Content.Dataview.Filter filters = 1;
int32 limit = 2;
// additional filter by objectTypes
repeated string objectTypeFilter = 3; // DEPRECATED
repeated string objectTypeFilter = 3; // DEPRECATED, GO-1926
repeated string keys = 4;
}
@ -1514,7 +1488,6 @@ message Rpc {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
UNKNOWN_OBJECT_TYPE_URL = 3;
}
}
}
@ -1538,7 +1511,6 @@ message Rpc {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
UNKNOWN_OBJECT_TYPE_URL = 3;
}
}
}
@ -1777,7 +1749,6 @@ message Rpc {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
UNKNOWN_OBJECT_TYPE_URL = 3;
}
}
}
@ -1942,13 +1913,12 @@ message Rpc {
enum Code {
NULL = 0;
INTERNAL_ERROR = 1;
UNKNOWN_ERROR = 2;
BAD_INPUT = 3;
ACCOUNT_IS_NOT_RUNNING = 4;
NO_OBJECTS_TO_IMPORT = 5;
IMPORT_IS_CANCELED = 6;
LIMIT_OF_ROWS_OR_RELATIONS_EXCEEDED = 7;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
INTERNAL_ERROR = 3;
NO_OBJECTS_TO_IMPORT = 4;
IMPORT_IS_CANCELED = 5;
LIMIT_OF_ROWS_OR_RELATIONS_EXCEEDED = 6;
}
}
}
@ -1968,10 +1938,10 @@ message Rpc {
enum Code {
NULL = 0;
INTERNAL_ERROR = 1;
UNAUTHORIZED = 2;
UNKNOWN_ERROR = 3;
BAD_INPUT = 4;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
INTERNAL_ERROR = 3;
UNAUTHORIZED = 4;
FORBIDDEN = 5;
SERVICE_UNAVAILABLE = 6;
ACCOUNT_IS_NOT_RUNNING = 7;
@ -1995,9 +1965,9 @@ message Rpc {
enum Code {
NULL = 0;
INTERNAL_ERROR = 1;
UNKNOWN_ERROR = 2;
BAD_INPUT = 3;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
INTERNAL_ERROR = 3;
}
}
@ -2248,8 +2218,7 @@ message Rpc {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
UNKNOWN_OBJECT_TYPE_URL = 3;
READONLY_OBJECT_TYPE = 4;
READONLY_OBJECT_TYPE = 3;
// ...
}
}
@ -2272,8 +2241,7 @@ message Rpc {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
UNKNOWN_OBJECT_TYPE_URL = 3;
READONLY_OBJECT_TYPE = 4;
READONLY_OBJECT_TYPE = 3;
// ...
}
}
@ -2464,7 +2432,6 @@ message Rpc {
BAD_INPUT = 2;
// ...
NODE_NOT_STARTED = 103;
FILE_NOT_YET_PINNED = 104;
}
}
@ -2500,7 +2467,7 @@ message Rpc {
string url = 1;
string localPath = 2;
anytype.model.Block.Content.File.Type type = 3;
bool disableEncryption = 4; // deprecated, has no affect
bool disableEncryption = 4; // deprecated, has no affect, GO-1926
anytype.model.Block.Content.File.Style style = 5;
}
@ -2539,7 +2506,6 @@ message Rpc {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
NOT_FOUND = 3;
}
}
}
@ -4714,7 +4680,6 @@ message Rpc {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
NOT_A_DATAVIEW_BLOCK = 3;
// ...
}
}
@ -5526,9 +5491,6 @@ message Rpc {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
NOT_FOUND = 101;
TIMEOUT = 102;
}
}
}