mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-09 09:35:00 +09:00
GO-4932 Merge branch 'main' of ssh://github.com/anyproto/anytype-heart into go-4932-type-dataview-widget
# Conflicts: # pb/commands.pb.go # pkg/lib/pb/model/models.pb.go
This commit is contained in:
commit
15c88aa939
62 changed files with 4758 additions and 2635 deletions
|
@ -7952,6 +7952,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 {
|
||||
|
@ -7976,6 +7977,7 @@ message Rpc {
|
|||
message Unsubscribe {
|
||||
message Request {
|
||||
string chatObjectId = 1; // Identifier for the chat
|
||||
string subId = 2;
|
||||
}
|
||||
message Response {
|
||||
Error error = 1;
|
||||
|
@ -7993,6 +7995,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;
|
||||
// ...
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue