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

GO-5099 Merge branch 'main' of github.com:anyproto/anytype-heart into go-5099-add-space-name-to-publishing-archive-and-page

This commit is contained in:
AnastasiaShemyakinskaya 2025-03-10 13:37:00 +03:00
commit 65ae2131a2
No known key found for this signature in database
GPG key ID: CCD60ED83B103281
36 changed files with 3905 additions and 2019 deletions

View file

@ -7951,6 +7951,7 @@ message Rpc {
message Request {
string chatObjectId = 1; // Identifier for the chat
int32 limit = 2; // Number of max last messages to return and subscribe
string subId = 3;
}
message Response {
@ -7975,6 +7976,7 @@ message Rpc {
message Unsubscribe {
message Request {
string chatObjectId = 1; // Identifier for the chat
string subId = 2;
}
message Response {
Error error = 1;
@ -7992,6 +7994,27 @@ message Rpc {
}
}
}
message SubscribeToMessagePreviews {
message Request {}
message Response {
Error error = 1;
string subId = 2;
message Error {
Code code = 1;
string description = 2;
enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
// ...
}
}
}
}
}
}

View file

@ -124,18 +124,24 @@ message Event {
message Add {
string id = 1;
string orderId = 2;
string afterOrderId = 6;
model.ChatMessage message = 3;
repeated string subIds = 4;
repeated google.protobuf.Struct dependencies = 5;
}
message Delete {
string id = 1;
repeated string subIds = 2;
}
message Update {
string id = 1;
model.ChatMessage message = 2;
repeated string subIds = 3;
}
message UpdateReactions {
string id = 1;
model.ChatMessage.Reactions reactions = 2;
repeated string subIds = 3;
}
}

View file

@ -394,5 +394,6 @@ service ClientCommands {
rpc ChatGetMessagesByIds (anytype.Rpc.Chat.GetMessagesByIds.Request) returns (anytype.Rpc.Chat.GetMessagesByIds.Response);
rpc ChatSubscribeLastMessages (anytype.Rpc.Chat.SubscribeLastMessages.Request) returns (anytype.Rpc.Chat.SubscribeLastMessages.Response);
rpc ChatUnsubscribe (anytype.Rpc.Chat.Unsubscribe.Request) returns (anytype.Rpc.Chat.Unsubscribe.Response);
rpc ChatSubscribeToMessagePreviews (anytype.Rpc.Chat.SubscribeToMessagePreviews.Request) returns (anytype.Rpc.Chat.SubscribeToMessagePreviews.Response);
rpc ObjectChatAdd (anytype.Rpc.Object.ChatAdd.Request) returns (anytype.Rpc.Object.ChatAdd.Response);
}