mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3678 Protocol | Integrate 0.41.0-rc7mobile (#2422)
This commit is contained in:
parent
3654ffcadb
commit
ac282e7b73
4 changed files with 81 additions and 1 deletions
|
@ -1265,7 +1265,77 @@ message Rpc {
|
|||
}
|
||||
}
|
||||
}
|
||||
message ListApps {
|
||||
message Request {
|
||||
}
|
||||
|
||||
message Response {
|
||||
Error error = 1;
|
||||
repeated model.Account.Auth.AppInfo app = 2;
|
||||
|
||||
message Error {
|
||||
Code code = 1;
|
||||
string description = 2;
|
||||
|
||||
enum Code {
|
||||
NULL = 0;
|
||||
UNKNOWN_ERROR = 1;
|
||||
BAD_INPUT = 2;
|
||||
|
||||
ACCOUNT_IS_NOT_RUNNING = 101;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
message CreateApp {
|
||||
message Request {
|
||||
model.Account.Auth.AppInfo app = 1;
|
||||
}
|
||||
|
||||
message Response {
|
||||
Error error = 1;
|
||||
string appKey = 2; // persistent key, that can be used to restore session via CreateSession or for JSON API
|
||||
|
||||
message Error {
|
||||
Code code = 1;
|
||||
string description = 2;
|
||||
|
||||
enum Code {
|
||||
NULL = 0;
|
||||
UNKNOWN_ERROR = 1;
|
||||
BAD_INPUT = 2;
|
||||
|
||||
ACCOUNT_IS_NOT_RUNNING = 101;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
message RevokeApp {
|
||||
message Request {
|
||||
string appHash = 1;
|
||||
}
|
||||
|
||||
message Response {
|
||||
Error error = 1;
|
||||
|
||||
message Error {
|
||||
Code code = 1;
|
||||
string description = 2;
|
||||
|
||||
enum Code {
|
||||
NULL = 0;
|
||||
UNKNOWN_ERROR = 1;
|
||||
BAD_INPUT = 2;
|
||||
NOT_FOUND = 3;
|
||||
|
||||
ACCOUNT_IS_NOT_RUNNING = 101;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
message Workspace {
|
||||
message GetCurrent {
|
||||
|
|
|
@ -197,6 +197,7 @@ message Event {
|
|||
message ClientInfo {
|
||||
string processName = 1;
|
||||
string processPath = 2;
|
||||
string name = 4;
|
||||
bool signatureVerified = 3;
|
||||
}
|
||||
string challenge = 1;
|
||||
|
|
|
@ -677,6 +677,15 @@ message Account {
|
|||
}
|
||||
|
||||
message Auth {
|
||||
message AppInfo {
|
||||
string appHash = 1;
|
||||
string appName = 2; // either from process or specified manually when creating
|
||||
string appKey = 4;
|
||||
int64 createdAt = 5;
|
||||
int64 expireAt = 6;
|
||||
LocalApiScope scope = 7;
|
||||
bool isActive = 8;
|
||||
}
|
||||
enum LocalApiScope {
|
||||
Limited = 0; // Used in WebClipper; AccountSelect(to be deprecated), ObjectSearch, ObjectShow, ObjectCreate, ObjectCreateFromURL, BlockPreview, BlockPaste, BroadcastPayloadEvent
|
||||
JsonAPI = 1; // JSON API only, no direct grpc api calls allowed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue