@myronsi/messenger-api 2.1.0-alpha.50.next.175 → 2.1.0-alpha.51.next.177
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 +6 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/openapi.yaml +3 -3
- package/dist/schema.d.ts +3 -3
- package/dist/ws-events.d.ts +1 -1
- package/dist/ws-events.schema.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
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.51
|
|
6
|
+
|
|
7
|
+
- `UploadPurpose` `sticker` accepts animated WebP as a source of an animated sticker, like an animated GIF: the server
|
|
8
|
+
keeps at most 3 s, crops it when asked and stores a looping animated WebP of at most 512 x 512 px. Before, such
|
|
9
|
+
files got `415`.
|
|
10
|
+
|
|
5
11
|
## 2.1.0-alpha.50
|
|
6
12
|
|
|
7
13
|
- Synced settings: `GET` and `PATCH /me/client-settings` (`ClientSettings`, `UpdateClientSettingsRequest`,
|
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.51. Do not edit. */
|
|
2
|
+
export declare const API_VERSION: "2.1.0-alpha.51";
|
|
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.51";
|
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.51
|
|
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
|
|
@@ -8160,8 +8160,8 @@ components:
|
|
|
8160
8160
|
border and stores a WebP (`413` when that is still over 512 KB). Only its uploader can load it until it is
|
|
8161
8161
|
added to a pack.
|
|
8162
8162
|
|
|
8163
|
-
A sticker can also be made from a video (`kind: video`: MP4, WebM or MOV)
|
|
8164
|
-
The server keeps at most 3 s of it (from `start_ms` to `end_ms`, or the first 3 s), crops it to the square
|
|
8163
|
+
A sticker can also be made from a video (`kind: video`: MP4, WebM or MOV), an animated GIF or an animated WebP
|
|
8164
|
+
of at most 15 MB. The server keeps at most 3 s of it (from `start_ms` to `end_ms`, or the first 3 s), crops it to the square
|
|
8165
8165
|
`crop_x`, `crop_y`, `crop_size` when given (otherwise it fits the clip into the square with a transparent
|
|
8166
8166
|
border), drops the sound and stores a looping animated WebP of at most 512 x 512 px (`413` when it is still
|
|
8167
8167
|
over 1 MB at the lowest quality). The sticker then has `is_animated: true`.
|
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.51. Do not edit. */
|
|
2
2
|
export interface paths {
|
|
3
3
|
"/meta": {
|
|
4
4
|
parameters: {
|
|
@@ -6099,8 +6099,8 @@ export interface components {
|
|
|
6099
6099
|
* border and stores a WebP (`413` when that is still over 512 KB). Only its uploader can load it until it is
|
|
6100
6100
|
* added to a pack.
|
|
6101
6101
|
*
|
|
6102
|
-
* A sticker can also be made from a video (`kind: video`: MP4, WebM or MOV)
|
|
6103
|
-
* The server keeps at most 3 s of it (from `start_ms` to `end_ms`, or the first 3 s), crops it to the square
|
|
6102
|
+
* A sticker can also be made from a video (`kind: video`: MP4, WebM or MOV), an animated GIF or an animated WebP
|
|
6103
|
+
* of at most 15 MB. The server keeps at most 3 s of it (from `start_ms` to `end_ms`, or the first 3 s), crops it to the square
|
|
6104
6104
|
* `crop_x`, `crop_y`, `crop_size` when given (otherwise it fits the clip into the square with a transparent
|
|
6105
6105
|
* border), drops the sound and stores a looping animated WebP of at most 512 x 512 px (`413` when it is still
|
|
6106
6106
|
* over 1 MB at the lowest quality). The sticker then has `is_animated: true`.
|
package/dist/ws-events.d.ts
CHANGED
|
@@ -2480,7 +2480,7 @@
|
|
|
2480
2480
|
},
|
|
2481
2481
|
"UploadPurpose": {
|
|
2482
2482
|
"type": "string",
|
|
2483
|
-
"description": "`message`: an animated WebP keeps its frames (at most 300); the server removes its metadata and checks every\nframe. `avatar` and `profile_background` take only still WebP (`415` otherwise).\n\n`sticker`: a PNG, JPEG or still WebP of at most 5 MB. The server fits it into 512 x 512 px with a transparent\nborder and stores a WebP (`413` when that is still over 512 KB). Only its uploader can load it until it is\nadded to a pack.\n\nA sticker can also be made from a video (`kind: video`: MP4, WebM or MOV) or an animated
|
|
2483
|
+
"description": "`message`: an animated WebP keeps its frames (at most 300); the server removes its metadata and checks every\nframe. `avatar` and `profile_background` take only still WebP (`415` otherwise).\n\n`sticker`: a PNG, JPEG or still WebP of at most 5 MB. The server fits it into 512 x 512 px with a transparent\nborder and stores a WebP (`413` when that is still over 512 KB). Only its uploader can load it until it is\nadded to a pack.\n\nA sticker can also be made from a video (`kind: video`: MP4, WebM or MOV), an animated GIF or an animated WebP\nof at most 15 MB. The server keeps at most 3 s of it (from `start_ms` to `end_ms`, or the first 3 s), crops it to the square\n`crop_x`, `crop_y`, `crop_size` when given (otherwise it fits the clip into the square with a transparent\nborder), drops the sound and stores a looping animated WebP of at most 512 x 512 px (`413` when it is still\nover 1 MB at the lowest quality). The sticker then has `is_animated: true`.\n\n`profile_music`: an audio file of at most 20 MB. The server keeps at most 30 s of it (from `start_ms` to\n`end_ms`, or the first 30 s), stored as AAC, reads the title and artist into `tags` and the embedded cover\ninto `thumbnail_url`. Use it with `PUT /me/music`.\n\n`profile_background`: an image (10 MB), an animated GIF (15 MB) or a video of at most 15 s (15 MB). Use it\nwith `PUT /me/background` or `PUT /groups/{chat_id}/background`.\n\n`emoji`: a PNG, JPEG, still WebP or GIF of at most 8 MB. The server scales it into 128 x 128 px (a GIF frame\nby frame) and refuses it with `413` when the result is still over 256 KB. Use it with\n`POST /emoji/packs/{pack_id}/emoji`.\n\n`chat_wallpaper`: a still image (JPEG, PNG, WebP or HEIC) of at most 10 MB; no GIF or video. Use it with\n`PUT /me/wallpapers/default` or `PUT /chats/{chat_id}/wallpaper`. Its uploader can load it, and the other\nperson of a direct chat once it was set there for both.\n",
|
|
2484
2484
|
"enum": [
|
|
2485
2485
|
"message",
|
|
2486
2486
|
"avatar",
|
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.51.next.177",
|
|
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": {
|