@myronsi/messenger-api 2.1.0-alpha.45.next.154 → 2.1.0-alpha.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,40 @@
2
2
 
3
3
  Contract changes only. The backend changelog is `CHANGELOG.md` in the repository root. Rules: `docs/api-compatibility.md`.
4
4
 
5
+ ## 2.1.0-alpha.47
6
+
7
+ - New message types `poll`, `contact` and `location` (`MessageType`, `SendMessageRequest.type`, `UnsentMessage.type`),
8
+ sent over REST only. `SendMessageRequest` and `UnsentMessage` gain `poll` (`PollCreate`), `contact`
9
+ (`ContactCreate`) and `location` (`LocationCreate`); `Message` gains `poll` (`Poll`), `contact` (`ContactCard`) and
10
+ `location` (`MessageLocation`). Their `content` holds a plain-text summary for older clients.
11
+ - Polls: `PUT /chats/{chat_id}/messages/{message_id}/poll/votes` (`votePoll`), `POST …/poll/close` (`closePoll`) and
12
+ `GET …/poll/voters` (`listPollVoters`). New schemas `PollQuizCreate`, `PollOption`, `PollVoteRequest`; `ErrorCode`
13
+ gains `poll_closed` and `quiz_answered`. New WebSocket server event `poll_updated`.
14
+ - Maps: `GET /maps/tiles/{z}/{x}/{y}` (`getMapTile`) and `GET /maps/static` (`getStaticMap`), new tag `maps`, new
15
+ schema `MapImage`.
16
+ - `SystemEventKind` gains `group_renamed`, `group_avatar_changed` and `owner_transferred`; `SystemEvent` gains
17
+ `old_name`, `new_name` and `avatar_removed`. New `DELETE /groups/{chat_id}/avatar` (`deleteGroupAvatar`).
18
+ - Stickers from videos and GIFs: `UploadAttachmentRequest` gains `crop_x`, `crop_y` and `crop_size`; `start_ms` and
19
+ `end_ms` also apply to stickers.
20
+
21
+ ## 2.1.0-alpha.46
22
+
23
+ - Chat import from Telegram and WhatsApp: `GET`/`POST /chats/{chat_id}/imports` (`listChatImports`,
24
+ `startChatImport`), `GET`/`DELETE /imports/{import_id}` (`getChatImport`, `removeChatImport`),
25
+ `PUT /imports/{import_id}/messages` (`addImportedMessages`), `POST /imports/{import_id}/finish`
26
+ (`finishChatImport`), `PUT /imports/{import_id}/senders/{sender_key}` (`assignImportSender`) and
27
+ `POST /imports/{import_id}/senders/{sender_key}/decision` (`decideImportSender`). New schemas `ChatImport`,
28
+ `ChatImportList`, `ChatImportSender`, `ChatImportState`, `ImportSource`, `ImportSenderKey`, `ImportSenderState`,
29
+ `StartChatImportRequest`, `StartChatImportSender`, `ImportedMessage`, `ImportedMessageType`,
30
+ `AddImportedMessagesRequest`, `ImportProgress`, `AssignImportSenderRequest`, `DecideImportSenderRequest`,
31
+ `MessageImport` and `ImportSummary`; new path parameters `ImportId` and `ImportSenderKey`.
32
+ - `Message` gains `import`; for imported messages `created_at` is the time in the other messenger, and `sender` is
33
+ `null` until the member behind the name confirms it.
34
+ - `SystemEventKind` gains `history_imported`, `history_import_ended` and `imported_note`; `SystemEvent` gains
35
+ `import` and `text`.
36
+ - `SyncChange.type` gains `history_imported`.
37
+ - WebSocket server events `import_update` and `import_sender_update`.
38
+
5
39
  ## 2.1.0-alpha.45
6
40
 
7
41
  - `GET /search/messages` gains the query parameter `kind` (`MediaKind`: `image`, `visual`, `audio`, `voice`, `file`,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.45. Do not edit. */
2
- export declare const API_VERSION: "2.1.0-alpha.45";
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.47. Do not edit. */
2
+ export declare const API_VERSION: "2.1.0-alpha.47";
3
3
  export type { paths, components, operations } from "./schema.js";
4
4
  export * from "./ws-events.js";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export const API_VERSION = "2.1.0-alpha.45";
1
+ export const API_VERSION = "2.1.0-alpha.47";