@myronsi/messenger-api 2.1.0-alpha.55.next.189 → 2.1.0-alpha.56.next.192
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 +4 -2
- package/dist/schema.d.ts +4 -2
- package/dist/ws-events.d.ts +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.56
|
|
6
|
+
|
|
7
|
+
- Description only: the `import_upload` rate of `POST /attachments?import_id=…` is 1,200 per minute (burst 100), and
|
|
8
|
+
an imported sticker that is already a 512×512 WebP within the sticker limits is stored at once, with its smaller
|
|
9
|
+
copies made in the background (`processing` until `attachment_updated`).
|
|
10
|
+
|
|
5
11
|
## 2.1.0-alpha.55
|
|
6
12
|
|
|
7
13
|
- `import_id` of `POST /attachments` moves from the form to the query (`POST /attachments?import_id=…`), so the
|
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.56. Do not edit. */
|
|
2
|
+
export declare const API_VERSION: "2.1.0-alpha.56";
|
|
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.56";
|
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.56
|
|
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
|
|
@@ -1667,9 +1667,11 @@ paths:
|
|
|
1667
1667
|
avatars. Attachments that are not used within 24 hours are deleted.
|
|
1668
1668
|
|
|
1669
1669
|
At most 60 uploads per minute per user (`429` with `Retry-After`, before the body is read). Uploads with the
|
|
1670
|
-
`import_id` of the caller's own running import have their own limit of
|
|
1670
|
+
`import_id` of the caller's own running import have their own limit of 1,200 per minute (burst 100). For them a
|
|
1671
1671
|
JPEG, PNG or still WebP image is stored with its metadata removed and its size read from the header; the
|
|
1672
1672
|
thumbnail, display copy and placeholder follow in the background (`processing`, then `attachment_updated`).
|
|
1673
|
+
A sticker (`purpose: sticker`) that is already a 512×512 WebP within the sticker limits is stored the same
|
|
1674
|
+
way, and its smaller copies follow in the background; until then they are served from the original.
|
|
1673
1675
|
parameters:
|
|
1674
1676
|
- name: import_id
|
|
1675
1677
|
in: query
|
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.56. Do not edit. */
|
|
2
2
|
export interface paths {
|
|
3
3
|
"/meta": {
|
|
4
4
|
parameters: {
|
|
@@ -1512,9 +1512,11 @@ export interface paths {
|
|
|
1512
1512
|
* avatars. Attachments that are not used within 24 hours are deleted.
|
|
1513
1513
|
*
|
|
1514
1514
|
* At most 60 uploads per minute per user (`429` with `Retry-After`, before the body is read). Uploads with the
|
|
1515
|
-
* `import_id` of the caller's own running import have their own limit of
|
|
1515
|
+
* `import_id` of the caller's own running import have their own limit of 1,200 per minute (burst 100). For them a
|
|
1516
1516
|
* JPEG, PNG or still WebP image is stored with its metadata removed and its size read from the header; the
|
|
1517
1517
|
* thumbnail, display copy and placeholder follow in the background (`processing`, then `attachment_updated`).
|
|
1518
|
+
* A sticker (`purpose: sticker`) that is already a 512×512 WebP within the sticker limits is stored the same
|
|
1519
|
+
* way, and its smaller copies follow in the background; until then they are served from the original.
|
|
1518
1520
|
*/
|
|
1519
1521
|
post: operations["uploadAttachment"];
|
|
1520
1522
|
delete?: never;
|
package/dist/ws-events.d.ts
CHANGED
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.56.next.192",
|
|
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": {
|