@myronsi/messenger-api 2.1.0-alpha.52.next.178 → 2.1.0-alpha.53

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,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.53
6
+
7
+ - Documentation: `startChatImport` allows one running import per user (`409` otherwise), and a running import that
8
+ gets no batch for 24 hours is removed (`import_update` with `removing`).
9
+
5
10
  ## 2.1.0-alpha.52
6
11
 
7
12
  - Imported stickers can be real stickers: `ImportedMessageType` gains `sticker` and `ImportedMessage` gains
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
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";
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.53. Do not edit. */
2
+ export declare const API_VERSION: "2.1.0-alpha.53";
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.52";
1
+ export const API_VERSION = "2.1.0-alpha.53";
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.52
4
+ version: 2.1.0-alpha.53
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
@@ -2734,9 +2734,14 @@ paths:
2734
2734
  and ends with `POST /imports/{import_id}/finish`.
2735
2735
 
2736
2736
  In a direct chat either user may import, not in a chat in the Requests folder or with a block (`403`). In a
2737
- group only an admin or the owner may (`403`). One import per chat runs at a time (`409`). The messages are
2738
- placed above the oldest message of the chat, in their original order; a second import goes next to the
2739
- imports whose periods it follows, and an import whose period overlaps an existing one is `409`.
2737
+ group only an admin or the owner may (`403`). One import per chat runs at a time, and one per user: a user
2738
+ with a running import in any chat gets `409` until it is finished or removed. The messages are placed above
2739
+ the oldest message of the chat, in their original order; a second import goes next to the imports whose
2740
+ periods it follows, and an import whose period overlaps an existing one is `409`.
2741
+
2742
+ A running import that gets no batch for 24 hours is removed like `DELETE /imports/{import_id}`
2743
+ (`import_update` with `removing`). Clients send the files of each batch right before the batch, so a long
2744
+ upload keeps the import alive.
2740
2745
 
2741
2746
  `senders` lists every name of the export. `me: true` marks the caller's own messages. `user_id` suggests a
2742
2747
  member of the chat for a name; that member confirms it after the import is finished. Every other name is
package/dist/schema.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.52. Do not edit. */
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.53. Do not edit. */
2
2
  export interface paths {
3
3
  "/meta": {
4
4
  parameters: {
@@ -2403,9 +2403,14 @@ export interface paths {
2403
2403
  * and ends with `POST /imports/{import_id}/finish`.
2404
2404
  *
2405
2405
  * In a direct chat either user may import, not in a chat in the Requests folder or with a block (`403`). In a
2406
- * group only an admin or the owner may (`403`). One import per chat runs at a time (`409`). The messages are
2407
- * placed above the oldest message of the chat, in their original order; a second import goes next to the
2408
- * imports whose periods it follows, and an import whose period overlaps an existing one is `409`.
2406
+ * group only an admin or the owner may (`403`). One import per chat runs at a time, and one per user: a user
2407
+ * with a running import in any chat gets `409` until it is finished or removed. The messages are placed above
2408
+ * the oldest message of the chat, in their original order; a second import goes next to the imports whose
2409
+ * periods it follows, and an import whose period overlaps an existing one is `409`.
2410
+ *
2411
+ * A running import that gets no batch for 24 hours is removed like `DELETE /imports/{import_id}`
2412
+ * (`import_update` with `removing`). Clients send the files of each batch right before the batch, so a long
2413
+ * upload keeps the import alive.
2409
2414
  *
2410
2415
  * `senders` lists every name of the export. `me: true` marks the caller's own messages. `user_id` suggests a
2411
2416
  * member of the chat for a name; that member confirms it after the import is finished. Every other name is
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.52. Do not edit. */
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.53. Do not edit. */
2
2
 
3
3
  /**
4
4
  * Any WebSocket event, in either direction.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myronsi/messenger-api",
3
- "version": "2.1.0-alpha.52.next.178",
3
+ "version": "2.1.0-alpha.53",
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": {