1
0
Fork 0
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:
Konstantin Ivanov 2025-05-21 13:26:42 +02:00 committed by GitHub
parent 3654ffcadb
commit ac282e7b73
Signed by: github
GPG key ID: B5690EEEBB952194
4 changed files with 81 additions and 1 deletions

View file

@ -1,5 +1,5 @@
[versions]
middlewareVersion = "v0.41.0-rc5mobile"
middlewareVersion = "v0.41.0-rc7mobile"
kotlinVersion = '2.0.21'
kspVersion = "2.0.21-1.0.25"

View file

@ -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 {

View file

@ -197,6 +197,7 @@ message Event {
message ClientInfo {
string processName = 1;
string processPath = 2;
string name = 4;
bool signatureVerified = 3;
}
string challenge = 1;

View file

@ -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