@myronsi/messenger-api 2.1.0-alpha.48.next.170 → 2.1.0-alpha.49.next.171

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,13 @@
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.49
6
+
7
+ - Chat imports hold up to 500,000 messages: `ChatImport.message_count` and `StartChatImportRequest.message_count`
8
+ allow up to `500000`.
9
+ - `UploadPurpose` `message` accepts animated WebP (for example WhatsApp stickers in an import) and keeps the
10
+ animation; before, such files got `415`.
11
+
5
12
  ## 2.1.0-alpha.48
6
13
 
7
14
  - Video and screen sharing in calls: `CallConfig` (`GET /calls/config`) gains `video_enabled` and
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.48. Do not edit. */
2
- export declare const API_VERSION: "2.1.0-alpha.48";
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.49. Do not edit. */
2
+ export declare const API_VERSION: "2.1.0-alpha.49";
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.48";
1
+ export const API_VERSION = "2.1.0-alpha.49";
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.48
4
+ version: 2.1.0-alpha.49
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
@@ -7673,6 +7673,9 @@ components:
7673
7673
  UploadPurpose:
7674
7674
  type: string
7675
7675
  description: |
7676
+ `message`: an animated WebP keeps its frames (at most 300); the server removes its metadata and checks every
7677
+ frame. `avatar` and `profile_background` take only still WebP (`415` otherwise).
7678
+
7676
7679
  `sticker`: a PNG, JPEG or still WebP of at most 5 MB. The server fits it into 512 x 512 px with a transparent
7677
7680
  border and stores a WebP (`413` when that is still over 512 KB). Only its uploader can load it until it is
7678
7681
  added to a pack.
@@ -9018,7 +9021,7 @@ components:
9018
9021
  chat_id: { $ref: "#/components/schemas/Id" }
9019
9022
  source: { $ref: "#/components/schemas/ImportSource" }
9020
9023
  state: { $ref: "#/components/schemas/ChatImportState" }
9021
- message_count: { type: integer, minimum: 1, maximum: 100000 }
9024
+ message_count: { type: integer, minimum: 1, maximum: 500000 }
9022
9025
  file_count: { type: integer, minimum: 0, maximum: 5000 }
9023
9026
  first_at: { $ref: "#/components/schemas/Timestamp" }
9024
9027
  last_at: { $ref: "#/components/schemas/Timestamp" }
@@ -9063,7 +9066,7 @@ components:
9063
9066
  required: [source, message_count, file_count, first_at, last_at, senders]
9064
9067
  properties:
9065
9068
  source: { $ref: "#/components/schemas/ImportSource" }
9066
- message_count: { type: integer, minimum: 1, maximum: 100000 }
9069
+ message_count: { type: integer, minimum: 1, maximum: 500000 }
9067
9070
  file_count: { type: integer, minimum: 0, maximum: 5000 }
9068
9071
  first_at: { $ref: "#/components/schemas/Timestamp" }
9069
9072
  last_at: { $ref: "#/components/schemas/Timestamp" }
package/dist/schema.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.48. Do not edit. */
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.49. Do not edit. */
2
2
  export interface paths {
3
3
  "/meta": {
4
4
  parameters: {
@@ -5742,7 +5742,10 @@ export interface components {
5742
5742
  /** @enum {string} */
5743
5743
  AttachmentKind: "image" | "audio" | "voice" | "video" | "file";
5744
5744
  /**
5745
- * @description `sticker`: a PNG, JPEG or still WebP of at most 5 MB. The server fits it into 512 x 512 px with a transparent
5745
+ * @description `message`: an animated WebP keeps its frames (at most 300); the server removes its metadata and checks every
5746
+ * frame. `avatar` and `profile_background` take only still WebP (`415` otherwise).
5747
+ *
5748
+ * `sticker`: a PNG, JPEG or still WebP of at most 5 MB. The server fits it into 512 x 512 px with a transparent
5746
5749
  * border and stores a WebP (`413` when that is still over 512 KB). Only its uploader can load it until it is
5747
5750
  * added to a pack.
5748
5751
  *
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.48. Do not edit. */
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.49. Do not edit. */
2
2
 
3
3
  /**
4
4
  * Any WebSocket event, in either direction.
@@ -2003,7 +2003,7 @@
2003
2003
  },
2004
2004
  "UploadPurpose": {
2005
2005
  "type": "string",
2006
- "description": "`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 GIF of at most 15 MB.\nThe 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",
2006
+ "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 GIF of at most 15 MB.\nThe 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",
2007
2007
  "enum": [
2008
2008
  "message",
2009
2009
  "avatar",
@@ -4780,7 +4780,7 @@
4780
4780
  "message_count": {
4781
4781
  "type": "integer",
4782
4782
  "minimum": 1,
4783
- "maximum": 100000
4783
+ "maximum": 500000
4784
4784
  },
4785
4785
  "file_count": {
4786
4786
  "type": "integer",
@@ -4894,7 +4894,7 @@
4894
4894
  "message_count": {
4895
4895
  "type": "integer",
4896
4896
  "minimum": 1,
4897
- "maximum": 100000
4897
+ "maximum": 500000
4898
4898
  },
4899
4899
  "file_count": {
4900
4900
  "type": "integer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myronsi/messenger-api",
3
- "version": "2.1.0-alpha.48.next.170",
3
+ "version": "2.1.0-alpha.49.next.171",
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": {