@myronsi/messenger-api 2.1.0-alpha.40 → 2.1.0-alpha.41.next.147
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 +23 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/openapi.yaml +730 -3
- package/dist/schema.d.ts +3582 -2283
- package/dist/ws-docs.json +6 -2
- package/dist/ws-events.d.ts +57 -3
- package/dist/ws-events.schema.json +455 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
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.41
|
|
6
|
+
|
|
7
|
+
- Public cards without an account (tag `public`, `security: []`, rate limited per IP, `X-Robots-Tag: noindex`):
|
|
8
|
+
`GET /public/names/{public_name}` (`PublicNameLookup`: `PublicNameKind` `user`, `group`, `unavailable`, with
|
|
9
|
+
`PublicUser` or `PublicGroup`), `GET /public/invites/{token}` (`PublicGroup`), their avatars
|
|
10
|
+
`GET /public/names/{public_name}/avatar` and `GET /public/invites/{token}/avatar`, and link preview pages for
|
|
11
|
+
crawlers `GET /og/names/{public_name}` and `GET /og/invites/{token}` (`text/html`).
|
|
12
|
+
- `PrivacySettings.web_profile_visibility` (`WebProfileVisibility`: `everyone`, `nobody`; default `everyone`);
|
|
13
|
+
`UpdatePrivacySettingsRequest` accepts it.
|
|
14
|
+
- Group invite links: `GET/POST /groups/{chat_id}/invite-links`, `PATCH/DELETE /groups/{chat_id}/invite-links/{link_id}`
|
|
15
|
+
(`InviteLink`, `InviteLinkList`, `CreateInviteLinkRequest`, `UpdateInviteLinkRequest`), `GET /invites/{token}`
|
|
16
|
+
(`GroupPreview`) and `POST /invites/{token}/join` (`Chat`).
|
|
17
|
+
- Public groups: `PUT/DELETE /groups/{chat_id}/public-name` (`SetPublicNameRequest`), `Group.public_name`
|
|
18
|
+
(`PublicName`, one name space with usernames), `GET /public-groups` (`GroupPreviewPage`),
|
|
19
|
+
`GET /public-groups/{public_name}`, `POST /public-groups/{public_name}/join` and
|
|
20
|
+
`GET /public-names/{public_name}/availability` (`PublicNameAvailability`).
|
|
21
|
+
- Bans: removing a member bans them; `GET /groups/{chat_id}/bans` (`GroupBanPage` of `GroupBan`) and
|
|
22
|
+
`DELETE /groups/{chat_id}/bans/{user_id}`.
|
|
23
|
+
- `AccountRestriction` gains `share_group` and `join_by_link`.
|
|
24
|
+
- Mentions: `Message.mentions` (member IDs) and `Message.mentions_all` (`@all` from an owner or admin);
|
|
25
|
+
`Chat.unread_mentions_count`; `GET /chats/{chat_id}/mentions` (`MentionList`);
|
|
26
|
+
`NotificationPreferences.mentions_in_muted` (default `true`).
|
|
27
|
+
|
|
5
28
|
## 2.1.0-alpha.40
|
|
6
29
|
|
|
7
30
|
- `RegisterRequest` gains the optional `terms_version` (the date of the accepted Terms of Use, such as `2026-11-19`)
|
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.41. Do not edit. */
|
|
2
|
+
export declare const API_VERSION: "2.1.0-alpha.41";
|
|
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.41";
|