1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3271 Protocol | Integrate 0.39.0-rc07 (#2018)

This commit is contained in:
Konstantin Ivanov 2025-01-21 13:05:15 +01:00 committed by konstantiniiv
parent 50a979d6e7
commit 52253fc1c2
5 changed files with 134 additions and 2 deletions

View file

@ -1359,6 +1359,133 @@ message Rpc {
}
}
message Publishing {
enum PublishStatus {
// PublishStatusCreated means publish is created but not uploaded yet
PublishStatusCreated = 0;
// PublishStatusCreated means publish is active
PublishStatusPublished = 1;
}
message PublishState {
string spaceId = 1;
string objectId = 2;
string uri = 3;
PublishStatus status = 4;
string version = 5;
int64 timestamp = 6;
int64 size = 7;
bool joinSpace = 8;
}
message Create {
message Request {
string spaceId = 1;
string objectId = 2;
string uri = 3;
bool joinSpace = 4;
}
message Response {
Error error = 1;
string uri = 2;
message Error {
Code code = 1;
string description = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
NO_SUCH_OBJECT = 101;
NO_SUCH_SPACE = 102;
LIMIT_EXCEEDED = 103;
}
}
}
}
message Remove {
message Request {
string spaceId = 1;
string objectId = 2;
}
message Response {
Error error = 1;
message Error {
Code code = 1;
string description = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
NO_SUCH_OBJECT = 101;
NO_SUCH_SPACE = 102;
}
}
}
}
message List {
message Request {
string spaceId = 1;
}
message Response {
Error error = 1;
repeated PublishState publishes = 2;
message Error {
Code code = 1;
string description = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
NO_SUCH_SPACE = 102;
}
}
}
}
message ResolveUri {
message Request {
string uri = 1;
}
message Response {
Error error = 1;
PublishState publish = 2;
message Error {
Code code = 1;
string description = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
NO_SUCH_URI = 101;
}
}
}
}
message GetStatus {
message Request {
string spaceId = 1;
string objectId = 2;
}
message Response {
Error error = 1;
PublishState publish = 2;
message Error {
Code code = 1;
string description = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
NO_SUCH_OBJECT = 101;
NO_SUCH_SPACE = 102;
}
}
}
}
}
message Object {
message Open {

View file

@ -716,6 +716,8 @@ message Restrictions {
Duplicate = 8;
// can be set only for types. Restricts creating objects of this type
CreateObjectOfThisType = 9;
// object is not allowed to publish
Publish = 10;
}