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

GO-5341 Merge main

This commit is contained in:
kirillston 2025-04-07 18:44:14 +03:00
commit 5ac5c60ce1
No known key found for this signature in database
GPG key ID: BE4BF014F0ECDFE8
67 changed files with 5597 additions and 3741 deletions

View file

@ -1484,6 +1484,7 @@
- [Rpc.Chat.SubscribeLastMessages.Response.Error.Code](#anytype-Rpc-Chat-SubscribeLastMessages-Response-Error-Code)
- [Rpc.Chat.SubscribeToMessagePreviews.Response.Error.Code](#anytype-Rpc-Chat-SubscribeToMessagePreviews-Response-Error-Code)
- [Rpc.Chat.ToggleMessageReaction.Response.Error.Code](#anytype-Rpc-Chat-ToggleMessageReaction-Response-Error-Code)
- [Rpc.Chat.Unread.ReadType](#anytype-Rpc-Chat-Unread-ReadType)
- [Rpc.Chat.Unread.Response.Error.Code](#anytype-Rpc-Chat-Unread-Response-Error-Code)
- [Rpc.Chat.Unsubscribe.Response.Error.Code](#anytype-Rpc-Chat-Unsubscribe-Response-Error-Code)
- [Rpc.Chat.UnsubscribeFromMessagePreviews.Response.Error.Code](#anytype-Rpc-Chat-UnsubscribeFromMessagePreviews-Response-Error-Code)
@ -1815,8 +1816,9 @@
- [Event.Chat.Add](#anytype-Event-Chat-Add)
- [Event.Chat.Delete](#anytype-Event-Chat-Delete)
- [Event.Chat.Update](#anytype-Event-Chat-Update)
- [Event.Chat.UpdateMentionReadStatus](#anytype-Event-Chat-UpdateMentionReadStatus)
- [Event.Chat.UpdateMessageReadStatus](#anytype-Event-Chat-UpdateMessageReadStatus)
- [Event.Chat.UpdateReactions](#anytype-Event-Chat-UpdateReactions)
- [Event.Chat.UpdateReadStatus](#anytype-Event-Chat-UpdateReadStatus)
- [Event.Chat.UpdateState](#anytype-Event-Chat-UpdateState)
- [Event.File](#anytype-Event-File)
- [Event.File.LimitReached](#anytype-Event-File-LimitReached)
@ -10864,7 +10866,7 @@ Get marks list in the selected range in text block.
| chatObjectId | [string](#string) | | id of the chat object |
| afterOrderId | [string](#string) | | read from this orderId; if empty - read from the beginning of the chat |
| beforeOrderId | [string](#string) | | read til this orderId |
| lastDbTimestamp | [int64](#int64) | | dbTimestamp from the last processed ChatState event(or GetMessages). Used to prevent race conditions |
| lastStateId | [string](#string) | | stateId from the last processed ChatState event(or GetMessages). Used to prevent race conditions |
@ -11092,7 +11094,8 @@ Get marks list in the selected range in text block.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| chatObjectId | [string](#string) | | id of the chat object |
| type | [Rpc.Chat.Unread.ReadType](#anytype-Rpc-Chat-Unread-ReadType) | | |
| chatObjectId | [string](#string) | | |
| afterOrderId | [string](#string) | | |
@ -23726,8 +23729,8 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
| Name | Number | Description |
| ---- | ------ | ----------- |
| messages | 0 | |
| replies | 1 | |
| Messages | 0 | |
| Mentions | 1 | |
@ -23784,6 +23787,18 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er
<a name="anytype-Rpc-Chat-Unread-ReadType"></a>
### Rpc.Chat.Unread.ReadType
| Name | Number | Description |
| ---- | ------ | ----------- |
| Messages | 0 | |
| Mentions | 1 | |
<a name="anytype-Rpc-Chat-Unread-Response-Error-Code"></a>
### Rpc.Chat.Unread.Response.Error.Code
@ -28639,7 +28654,6 @@ Precondition: user A opened a block
| ----- | ---- | ----- | ----------- |
| id | [string](#string) | | |
| subIds | [string](#string) | repeated | |
| state | [model.ChatState](#anytype-model-ChatState) | | Chat state. dbState should be persisted after rendered |
@ -28663,6 +28677,40 @@ Precondition: user A opened a block
<a name="anytype-Event-Chat-UpdateMentionReadStatus"></a>
### Event.Chat.UpdateMentionReadStatus
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| ids | [string](#string) | repeated | |
| isRead | [bool](#bool) | | |
| subIds | [string](#string) | repeated | |
<a name="anytype-Event-Chat-UpdateMessageReadStatus"></a>
### Event.Chat.UpdateMessageReadStatus
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| ids | [string](#string) | repeated | |
| isRead | [bool](#bool) | | |
| subIds | [string](#string) | repeated | |
<a name="anytype-Event-Chat-UpdateReactions"></a>
### Event.Chat.UpdateReactions
@ -28680,23 +28728,6 @@ Precondition: user A opened a block
<a name="anytype-Event-Chat-UpdateReadStatus"></a>
### Event.Chat.UpdateReadStatus
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| ids | [string](#string) | repeated | |
| isRead | [bool](#bool) | | |
| subIds | [string](#string) | repeated | |
<a name="anytype-Event-Chat-UpdateState"></a>
### Event.Chat.UpdateState
@ -28921,7 +28952,8 @@ Precondition: user A opened a block
| chatAdd | [Event.Chat.Add](#anytype-Event-Chat-Add) | | |
| chatUpdate | [Event.Chat.Update](#anytype-Event-Chat-Update) | | |
| chatUpdateReactions | [Event.Chat.UpdateReactions](#anytype-Event-Chat-UpdateReactions) | | |
| chatUpdateReadStatus | [Event.Chat.UpdateReadStatus](#anytype-Event-Chat-UpdateReadStatus) | | received to update per-message read status (if needed to highlight the unread messages in the UI) |
| chatUpdateMessageReadStatus | [Event.Chat.UpdateMessageReadStatus](#anytype-Event-Chat-UpdateMessageReadStatus) | | received to update per-message read status (if needed to highlight the unread messages in the UI) |
| chatUpdateMentionReadStatus | [Event.Chat.UpdateMentionReadStatus](#anytype-Event-Chat-UpdateMentionReadStatus) | | received to update per-message mention read status (if needed to highlight the unread mentions in the UI) |
| chatDelete | [Event.Chat.Delete](#anytype-Event-Chat-Delete) | | |
| chatStateUpdate | [Event.Chat.UpdateState](#anytype-Event-Chat-UpdateState) | | in case new unread messages received or chat state changed (e.g. message read on another device) |
@ -30072,6 +30104,7 @@ Precondition: user A and user B opened the same block
| marketplaceForceReindexCounter | [int32](#int32) | | |
| reindexDeletedObjects | [int32](#int32) | | |
| reindexParticipants | [int32](#int32) | | |
| reindexChats | [int32](#int32) | | |
@ -30814,16 +30847,17 @@ Used to decode block meta only, without the content itself
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| id | [string](#string) | | Unique message identifier |
| orderId | [string](#string) | | Used for subscriptions |
| orderId | [string](#string) | | Lexicographical id for message in order of tree traversal |
| creator | [string](#string) | | Identifier for the message creator |
| createdAt | [int64](#int64) | | |
| modifiedAt | [int64](#int64) | | |
| addedAt | [int64](#int64) | | Message received and added to db at |
| stateId | [string](#string) | | stateId is ever-increasing id (BSON ObjectId) for this message. Unlike orderId, this ID is ordered by the time messages are added. For example, it&#39;s useful to prevent accidental reading of messages from the past when a ChatReadMessages request is sent: a message from the past may appear, but the client is still unaware of it |
| replyToMessageId | [string](#string) | | Identifier for the message being replied to |
| message | [ChatMessage.MessageContent](#anytype-model-ChatMessage-MessageContent) | | Message content |
| attachments | [ChatMessage.Attachment](#anytype-model-ChatMessage-Attachment) | repeated | Attachments slice |
| reactions | [ChatMessage.Reactions](#anytype-model-ChatMessage-Reactions) | | Reactions to the message |
| read | [bool](#bool) | | Message read status |
| mentionRead | [bool](#bool) | | |
@ -30919,7 +30953,7 @@ Used to decode block meta only, without the content itself
| ----- | ---- | ----- | ----------- |
| messages | [ChatState.UnreadState](#anytype-model-ChatState-UnreadState) | | unread messages |
| mentions | [ChatState.UnreadState](#anytype-model-ChatState-UnreadState) | | unread mentions |
| dbTimestamp | [int64](#int64) | | reflects the state of the chat db at the moment of sending response/event that includes this state |
| lastStateId | [string](#string) | | reflects the state of the chat db at the moment of sending response/event that includes this state |