@myronsi/messenger-api 2.1.0-alpha.51.next.177 → 2.1.0-alpha.52
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 +5 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/openapi.yaml +9 -3
- package/dist/schema.d.ts +6 -2
- package/dist/ws-events.d.ts +1 -1
- package/dist/ws-events.schema.json +7 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
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.52
|
|
6
|
+
|
|
7
|
+
- Imported stickers can be real stickers: `ImportedMessageType` gains `sticker` and `ImportedMessage` gains
|
|
8
|
+
`sticker_id` (a sticker the importer may send, for example from a pack made from the export's stickers).
|
|
9
|
+
|
|
5
10
|
## 2.1.0-alpha.51
|
|
6
11
|
|
|
7
12
|
- `UploadPurpose` `sticker` accepts animated WebP as a source of an animated sticker, like an animated GIF: the server
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated from api/openapi.yaml 2.1.0-alpha.
|
|
2
|
-
export declare const API_VERSION: "2.1.0-alpha.
|
|
1
|
+
/* Generated from api/openapi.yaml 2.1.0-alpha.52. Do not edit. */
|
|
2
|
+
export declare const API_VERSION: "2.1.0-alpha.52";
|
|
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.
|
|
1
|
+
export const API_VERSION = "2.1.0-alpha.52";
|
package/dist/openapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.1.0
|
|
2
2
|
info:
|
|
3
3
|
title: Messenger API
|
|
4
|
-
version: 2.1.0-alpha.
|
|
4
|
+
version: 2.1.0-alpha.52
|
|
5
5
|
summary: REST contract of the Messenger backend (v2).
|
|
6
6
|
description: |
|
|
7
7
|
Contract for the Go backend. The WebSocket protocol is described in `websocket/` and
|
|
@@ -9562,8 +9562,11 @@ components:
|
|
|
9562
9562
|
items: { $ref: "#/components/schemas/StartChatImportSender" }
|
|
9563
9563
|
ImportedMessageType:
|
|
9564
9564
|
type: string
|
|
9565
|
-
description:
|
|
9566
|
-
|
|
9565
|
+
description: |
|
|
9566
|
+
`note`: a line of the export that is not a message (for example that someone joined), shown as a system message.
|
|
9567
|
+
`sticker`: a sticker the importer may send (usually from a pack the importer made from the export's stickers),
|
|
9568
|
+
with `sticker_id` and no `content` or `attachment_ids`.
|
|
9569
|
+
enum: [text, file, voice, note, sticker]
|
|
9567
9570
|
ImportedMessage:
|
|
9568
9571
|
type: object
|
|
9569
9572
|
required: [index, original_at, type]
|
|
@@ -9589,6 +9592,9 @@ components:
|
|
|
9589
9592
|
maxItems: 10
|
|
9590
9593
|
uniqueItems: true
|
|
9591
9594
|
items: { $ref: "#/components/schemas/AttachmentRef" }
|
|
9595
|
+
sticker_id:
|
|
9596
|
+
description: The sticker of a `sticker` message; the server sets `content` to the sticker's emoji.
|
|
9597
|
+
$ref: "#/components/schemas/Id"
|
|
9592
9598
|
reply_to_index:
|
|
9593
9599
|
type: integer
|
|
9594
9600
|
minimum: 0
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated from api/openapi.yaml 2.1.0-alpha.
|
|
1
|
+
/* Generated from api/openapi.yaml 2.1.0-alpha.52. Do not edit. */
|
|
2
2
|
export interface paths {
|
|
3
3
|
"/meta": {
|
|
4
4
|
parameters: {
|
|
@@ -6916,9 +6916,11 @@ export interface components {
|
|
|
6916
6916
|
};
|
|
6917
6917
|
/**
|
|
6918
6918
|
* @description `note`: a line of the export that is not a message (for example that someone joined), shown as a system message.
|
|
6919
|
+
* `sticker`: a sticker the importer may send (usually from a pack the importer made from the export's stickers),
|
|
6920
|
+
* with `sticker_id` and no `content` or `attachment_ids`.
|
|
6919
6921
|
* @enum {string}
|
|
6920
6922
|
*/
|
|
6921
|
-
ImportedMessageType: "text" | "file" | "voice" | "note";
|
|
6923
|
+
ImportedMessageType: "text" | "file" | "voice" | "note" | "sticker";
|
|
6922
6924
|
ImportedMessage: {
|
|
6923
6925
|
/** @description Position in the import, counting from 0 without gaps. */
|
|
6924
6926
|
index: number;
|
|
@@ -6930,6 +6932,8 @@ export interface components {
|
|
|
6930
6932
|
content?: string | null;
|
|
6931
6933
|
/** @description The importer's uploads; two to ten images or videos make an album. */
|
|
6932
6934
|
attachment_ids?: components["schemas"]["AttachmentRef"][];
|
|
6935
|
+
/** @description The sticker of a `sticker` message; the server sets `content` to the sticker's emoji. */
|
|
6936
|
+
sticker_id?: components["schemas"]["Id"];
|
|
6933
6937
|
/** @description `index` of an earlier message of the import that this one answers. */
|
|
6934
6938
|
reply_to_index?: number;
|
|
6935
6939
|
};
|
package/dist/ws-events.d.ts
CHANGED
|
@@ -5398,12 +5398,13 @@
|
|
|
5398
5398
|
},
|
|
5399
5399
|
"ImportedMessageType": {
|
|
5400
5400
|
"type": "string",
|
|
5401
|
-
"description": "`note`: a line of the export that is not a message (for example that someone joined), shown as a system message
|
|
5401
|
+
"description": "`note`: a line of the export that is not a message (for example that someone joined), shown as a system message.\n`sticker`: a sticker the importer may send (usually from a pack the importer made from the export's stickers),\nwith `sticker_id` and no `content` or `attachment_ids`.\n",
|
|
5402
5402
|
"enum": [
|
|
5403
5403
|
"text",
|
|
5404
5404
|
"file",
|
|
5405
5405
|
"voice",
|
|
5406
|
-
"note"
|
|
5406
|
+
"note",
|
|
5407
|
+
"sticker"
|
|
5407
5408
|
]
|
|
5408
5409
|
},
|
|
5409
5410
|
"ImportedMessage": {
|
|
@@ -5455,6 +5456,10 @@
|
|
|
5455
5456
|
"$ref": "#/$defs/AttachmentRef"
|
|
5456
5457
|
}
|
|
5457
5458
|
},
|
|
5459
|
+
"sticker_id": {
|
|
5460
|
+
"description": "The sticker of a `sticker` message; the server sets `content` to the sticker's emoji.",
|
|
5461
|
+
"$ref": "#/$defs/Id"
|
|
5462
|
+
},
|
|
5458
5463
|
"reply_to_index": {
|
|
5459
5464
|
"type": "integer",
|
|
5460
5465
|
"minimum": 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myronsi/messenger-api",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.52",
|
|
4
4
|
"description": "API contract of the Messenger backend: OpenAPI document, WebSocket event schemas and generated TypeScript types",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|