@myronsi/messenger-api 2.1.0-alpha.5.next.70 → 2.1.0-alpha.50
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 +508 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/openapi.yaml +9381 -1772
- package/dist/schema.d.ts +14020 -1875
- package/dist/ws-docs.json +382 -14
- package/dist/ws-events.d.ts +1220 -27
- package/dist/ws-events.schema.json +6868 -673
- package/package.json +1 -1
package/dist/ws-docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"markdown": "# WebSocket protocol (API contract v2)\r\n\r\nThe JSON Schemas in `websocket/client/` (client → server) and `websocket/server/` (server → client) are the source of truth. Every event has an example in `websocket/examples/`, validated against its schema by `npm run check`. TypeScript types are generated into `dist/ws-events.d.ts` (`ClientEvent`, `ServerEvent`).\r\n\r\n## Connecting\r\n\r\n1. `POST /api/v2/ws/ticket` (authenticated) returns `{ \"ticket\": \"…\", \"expires_in\": 30 }`. The ticket is single-use and short-lived, so no access token ends up in a URL or a log.\r\n2. Open **one connection per browser tab**: `wss://<host>/api/v2/ws?ticket=<ticket>&api_version=<contract version>`. The connection carries the events of all chats of the user. `api_version` is optional and takes the place of the `X-Client-Api-Version` header, which browsers cannot send on a WebSocket.\r\n3. The first server event is `hello` with `api_version` and `min_client_api_version`. A client that reconnects after a deploy compares them with the contract version it was built for and shows an upgrade notice instead of failing at random.\r\n4. When the ticket is invalid or expired the server closes the connection with code `4401`. A client whose `api_version` is no longer served is closed with `4426` after `hello`.\r\n\r\n## Close codes\r\n\r\n| Code | Meaning | Client |\r\n| --- | --- | --- |\r\n| `1012` | `reconnect`: the server is restarting, or it lost its pub/sub connection and events may be missing | reconnect with backoff, then load what was missed (`after` cursor) |\r\n| `1013` | the client did not keep up with its events | reconnect, then catch up |\r\n| `4401` | invalid ticket, or the session ended (logout, revoked, password changed) | get a new ticket; if that fails, sign in again |\r\n| `4426` | the client's contract version is no longer served | show the upgrade notice |\r\n\r\n## Envelope\r\n\r\nServer → client:\r\n\r\n```json\r\n{ \"type\": \"message\", \"event_id\": \"7217400317439950849\", \"chat_id\": \"42\", \"data\": { \"message\": { \"…\": \"…\" } } }\r\n```\r\n\r\nClient → server:\r\n\r\n```json\r\n{ \"type\": \"message\", \"client_temp_id\": \"c-1\", \"chat_id\": \"42\", \"data\": { \"type\": \"text\", \"content\": \"Hello!\" } }\r\n```\r\n\r\n- All IDs are strings (Snowflake IDs do not fit into a JavaScript number).\r\n- `event_id` is unique and increases per server; it is only for deduplication and logs.\r\n- `chat_id` is always `null` in `hello`, `presence` and `approval_request_created`, which do not belong to a chat. `ack` and `error` repeat the `chat_id` of the client event they answer, and it is `null` for connection-level errors.\r\n- Unknown event `type`s must be ignored by clients, so new event types are not a breaking change.\r\n- A user who is removed from a chat (or whose chat is deleted) receives `chat_deleted` and no further events of that chat.\r\n\r\n## Acknowledgements\r\n\r\nEvery client event except `typing` (which is not acknowledged and carries no `client_temp_id`) has a `client_temp_id` (1–64 characters, unique per client). The server answers with exactly one of:\r\n\r\n- `ack` — `client_temp_id`, and for `message` the stored `message_id` and `created_at`. Sending the same `client_temp_id` again returns the same `ack` (idempotent), which makes retries after a reconnect safe.\r\n- `error` — `client_temp_id` and `data.code`/`data.message
|
|
2
|
+
"markdown": "# WebSocket protocol (API contract v2)\r\n\r\nThe JSON Schemas in `websocket/client/` (client → server) and `websocket/server/` (server → client) are the source of truth. Every event has an example in `websocket/examples/`, validated against its schema by `npm run check`. TypeScript types are generated into `dist/ws-events.d.ts` (`ClientEvent`, `ServerEvent`).\r\n\r\n## Connecting\r\n\r\n1. `POST /api/v2/ws/ticket` (authenticated) returns `{ \"ticket\": \"…\", \"expires_in\": 30 }`. The ticket is single-use and short-lived, so no access token ends up in a URL or a log.\r\n2. Open **one connection per browser tab**: `wss://<host>/api/v2/ws?ticket=<ticket>&api_version=<contract version>`. The connection carries the events of all chats of the user. `api_version` is optional and takes the place of the `X-Client-Api-Version` header, which browsers cannot send on a WebSocket.\r\n3. The first server event is `hello` with `api_version` and `min_client_api_version`. A client that reconnects after a deploy compares them with the contract version it was built for and shows an upgrade notice instead of failing at random.\r\n4. When the ticket is invalid or expired the server closes the connection with code `4401`. A client whose `api_version` is no longer served is closed with `4426` after `hello`.\r\n\r\n## Close codes\r\n\r\n| Code | Meaning | Client |\r\n| --- | --- | --- |\r\n| `1012` | `reconnect`: the server is restarting, or it lost its pub/sub connection and events may be missing | reconnect with backoff, then load what was missed (`after` cursor) |\r\n| `1013` | the client did not keep up with its events, or sent more than 64 events that are not handled yet | reconnect, then catch up |\r\n| `4401` | invalid ticket, or the session ended (logout, revoked, password changed) | get a new ticket; if that fails, sign in again |\r\n| `4426` | the client's contract version is no longer served | show the upgrade notice |\r\n| `4429` | the user opened more than 10 connections on this server; the oldest one is closed | do not reconnect this tab automatically |\r\n\r\n## Envelope\r\n\r\nServer → client:\r\n\r\n```json\r\n{ \"type\": \"message\", \"event_id\": \"7217400317439950849\", \"chat_id\": \"42\", \"data\": { \"message\": { \"…\": \"…\" } } }\r\n```\r\n\r\nClient → server:\r\n\r\n```json\r\n{ \"type\": \"message\", \"client_temp_id\": \"c-1\", \"chat_id\": \"42\", \"data\": { \"type\": \"text\", \"content\": \"Hello!\" } }\r\n```\r\n\r\n- All IDs are strings (Snowflake IDs do not fit into a JavaScript number).\r\n- `event_id` is unique and increases per server; it is only for deduplication and logs.\r\n- `chat_id` is always `null` in `hello`, `presence` and `approval_request_created`, which do not belong to a chat. `ack` and `error` repeat the `chat_id` of the client event they answer, and it is `null` for connection-level errors.\r\n- Unknown event `type`s must be ignored by clients, so new event types are not a breaking change.\r\n- A user who is removed from a chat (or whose chat is deleted) receives `chat_deleted` and no further events of that chat.\r\n\r\n## Acknowledgements\r\n\r\nEvery client event except `typing` (which is not acknowledged and carries no `client_temp_id`) has a `client_temp_id` (1–64 characters, unique per client). The server answers with exactly one of:\r\n\r\n- `ack` — `client_temp_id`, and for `message` the stored `message_id` and `created_at`. Sending the same `client_temp_id` again returns the same `ack` (idempotent), which makes retries after a reconnect safe.\r\n- `error` — `client_temp_id` and `data.code`/`data.message`, and `data.field` when one setting or field caused it (for example `voice_video_messages`). `code` is one of the stable codes of `ErrorCode` in `openapi.yaml` (the same codes as the REST `application/problem+json` errors).\r\n\r\nThe sender also receives the broadcast `message` event with the stored message (its `client_temp_id` is included, so the client can replace its pending copy).\r\n\r\n## Client → server events\r\n\r\n| Type | Purpose |\r\n| --- | --- |\r\n| `message` | Send a message (`type` `text`, `file` or `voice`; files are referenced by `attachment_id`, never by URL) |\r\n| `resend` | Deliver a stored but undelivered message again |\r\n| `edit` | Edit your own text message |\r\n| `delete` | Delete a message for yourself (`scope: me`) or everyone |\r\n| `read` | Mark messages as read up to `message_id` |\r\n| `reaction_add`, `reaction_remove` | Add or remove a reaction |\r\n| `typing` | Typing, recording a voice message, choosing a sticker or sending a photo, video or file (`action`, not acknowledged). Repeat `is_typing: true` every 3 s while it lasts, send `false` when it ends |\r\n\r\n## Server → client events\r\n\r\n| Type | Meaning |\r\n| --- | --- |\r\n| `hello` | First event: `api_version`, `min_client_api_version`, `user_id` |\r\n| `ack`, `error` | Result of a client event, references `client_temp_id` |\r\n| `message`, `edit`, `delete` | Message created, edited or deleted; `delete` with `removed_by_moderation` when moderation removed it (the sender's copy also carries `moderation_reason`) |\r\n| `reaction_add`, `reaction_remove` | Reactions changed |\r\n| `read` | A user read up to `message_id` |\r\n| `typing` | A user is typing, recording a voice message, choosing a sticker or sending a photo, video or file (`action`); hide it after 6 s without a repeat |\r\n| `chat_created`, `chat_deleted`, `chat_list_update` | Chat list changes |\n| `history_cleared` | Messages up to `before_message_id` were cleared for you (`scope: me`) or everyone |\r\n| `pin_update` | A message was pinned or unpinned for everyone (to all members) or only for you (`scope: me`, to your own sessions); carries `pinned_message_count` for you |\r\n| `poll_updated` | A vote changed or a poll closed; carries the whole `Poll` as you see it (results only once you voted, for the creator, or after closing). Keep the highest `version` |\r\n| `import_update` | An imported history of the chat started, finished or is being removed (to all members); reload the chat on `done` and `removing` |\n| `import_sender_update` | A name of an imported history was suggested for a member, declined, confirmed or withdrawn; suggestions and declines go only to the importer and that member |\n| `group_created`, `group_updated` | Group changes (members, roles, name, avatar) |\r\n| `approval_request_created` | New request in the inbox |\r\n| `presence` | A user came online or went offline |\n| `account_status` | Your account status changed (`AccountStatus`); only your own sessions get it |\r\n| `report_outcome` | The moderation team reviewed something you reported (`ReportOutcome`); only your own sessions get it |\n| `client_settings_updated` | Your synced appearance or recent emoji changed (`ClientSettings`); only your own sessions get it |\n| `wallpaper_updated` | One of your chat backgrounds changed or was removed (`WallpaperUpdatedEvent`); only your own sessions get it |\n| `playlists_updated` | One of your playlists was created, changed or deleted (`PlaylistsUpdatedEvent`); only your own sessions get it |\r\n| `user_updated` | A user you share a chat with changed their profile (`profile_version`) |\n| `attachment_updated` | An optimized copy of an attachment you can see is ready (or failed): replace it in your messages |\n| `call_updated` | A call of the chat changed (state, participants, epoch); carries the whole call, keep the highest `version` |\n| `call_keys` | Sealed call sender keys for this session only (`docs/calls-e2ee.md`) |\r\n\r\n## Compatibility\r\n\r\nAdding an event type or an optional field is a MINOR change; removing or renaming an event or field, or making a field required, is MAJOR (see `docs/api-compatibility.md`). Clients must ignore unknown events and unknown fields.\r\n",
|
|
3
3
|
"examples": {
|
|
4
4
|
"client/delete.json": {
|
|
5
5
|
"type": "delete",
|
|
@@ -66,7 +66,35 @@
|
|
|
66
66
|
"type": "typing",
|
|
67
67
|
"chat_id": "42",
|
|
68
68
|
"data": {
|
|
69
|
-
"is_typing": true
|
|
69
|
+
"is_typing": true,
|
|
70
|
+
"action": "recording_voice"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"server/account_status.json": {
|
|
74
|
+
"type": "account_status",
|
|
75
|
+
"event_id": "7217400317439950011",
|
|
76
|
+
"chat_id": null,
|
|
77
|
+
"data": {
|
|
78
|
+
"status": "restricted",
|
|
79
|
+
"since": "2026-11-18T09:30:00Z",
|
|
80
|
+
"restrictions": [
|
|
81
|
+
"start_direct",
|
|
82
|
+
"invite_to_group",
|
|
83
|
+
"call",
|
|
84
|
+
"create_group",
|
|
85
|
+
"upload",
|
|
86
|
+
"forward",
|
|
87
|
+
"edit_profile",
|
|
88
|
+
"publish_pack",
|
|
89
|
+
"search"
|
|
90
|
+
],
|
|
91
|
+
"can_appeal": false,
|
|
92
|
+
"probation_until": null,
|
|
93
|
+
"decided_by": "staff",
|
|
94
|
+
"reason_code": "spam",
|
|
95
|
+
"reason_text": "Your account sent the same advertising link to many people who did not know you.",
|
|
96
|
+
"review_requested_at": null,
|
|
97
|
+
"can_request_review": true
|
|
70
98
|
}
|
|
71
99
|
},
|
|
72
100
|
"server/ack.json": {
|
|
@@ -94,9 +122,14 @@
|
|
|
94
122
|
"display_name": "Alice",
|
|
95
123
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
96
124
|
"bio": null,
|
|
125
|
+
"pronouns": null,
|
|
126
|
+
"birthday": null,
|
|
127
|
+
"music": null,
|
|
128
|
+
"background": null,
|
|
97
129
|
"is_online": true,
|
|
98
130
|
"last_seen": null,
|
|
99
|
-
"is_deleted": false
|
|
131
|
+
"is_deleted": false,
|
|
132
|
+
"profile_version": 1
|
|
100
133
|
},
|
|
101
134
|
"group_name": null,
|
|
102
135
|
"preview": "Hi, can we talk?",
|
|
@@ -104,6 +137,91 @@
|
|
|
104
137
|
}
|
|
105
138
|
}
|
|
106
139
|
},
|
|
140
|
+
"server/attachment_updated.json": {
|
|
141
|
+
"type": "attachment_updated",
|
|
142
|
+
"event_id": "0",
|
|
143
|
+
"chat_id": null,
|
|
144
|
+
"data": {
|
|
145
|
+
"attachment": {
|
|
146
|
+
"id": "5f0c8a64-2f2b-4c7e-9d0e-6b1f3a2c4d5e",
|
|
147
|
+
"kind": "video",
|
|
148
|
+
"filename": "clip.mp4",
|
|
149
|
+
"content_type": "video/mp4",
|
|
150
|
+
"size": 6815744,
|
|
151
|
+
"url": "/api/v2/attachments/5f0c8a64-2f2b-4c7e-9d0e-6b1f3a2c4d5e/content",
|
|
152
|
+
"width": 720,
|
|
153
|
+
"height": 1280,
|
|
154
|
+
"duration_ms": 42000,
|
|
155
|
+
"thumbnail_url": "/api/v2/attachments/5f0c8a64-2f2b-4c7e-9d0e-6b1f3a2c4d5e/content?variant=thumbnail",
|
|
156
|
+
"processing": "done",
|
|
157
|
+
"source_url": "/api/v2/attachments/5f0c8a64-2f2b-4c7e-9d0e-6b1f3a2c4d5e/content?variant=source"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"server/call_keys.json": {
|
|
162
|
+
"type": "call_keys",
|
|
163
|
+
"event_id": "7217400317439950111",
|
|
164
|
+
"chat_id": "77",
|
|
165
|
+
"data": {
|
|
166
|
+
"call_id": "7217400317439950100",
|
|
167
|
+
"epoch": 2,
|
|
168
|
+
"items": [
|
|
169
|
+
{
|
|
170
|
+
"epoch": 2,
|
|
171
|
+
"sender_user_id": "1002",
|
|
172
|
+
"sender_session_id": "9c1d2e3f-4a5b-4c6d-8e7f-001122334455",
|
|
173
|
+
"recipient_session_id": "5b0e8f0a-3f1c-4a52-9a8e-0d6e1c3f9b21",
|
|
174
|
+
"enc": "BJCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC",
|
|
175
|
+
"ciphertext": "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"server/call_updated.json": {
|
|
181
|
+
"type": "call_updated",
|
|
182
|
+
"event_id": "7217400317439950110",
|
|
183
|
+
"chat_id": "77",
|
|
184
|
+
"data": {
|
|
185
|
+
"call": {
|
|
186
|
+
"id": "7217400317439950100",
|
|
187
|
+
"chat_id": "77",
|
|
188
|
+
"kind": "group",
|
|
189
|
+
"state": "active",
|
|
190
|
+
"end_reason": null,
|
|
191
|
+
"initiator_id": "1001",
|
|
192
|
+
"created_at": "2026-11-07T12:00:00Z",
|
|
193
|
+
"started_at": "2026-11-07T12:00:05Z",
|
|
194
|
+
"ended_at": null,
|
|
195
|
+
"ring_expires_at": "2026-11-07T12:00:30Z",
|
|
196
|
+
"epoch": 2,
|
|
197
|
+
"version": 4,
|
|
198
|
+
"max_participants": 10,
|
|
199
|
+
"participants": [
|
|
200
|
+
{
|
|
201
|
+
"user_id": "1001",
|
|
202
|
+
"state": "joined",
|
|
203
|
+
"session_id": "5b0e8f0a-3f1c-4a52-9a8e-0d6e1c3f9b21",
|
|
204
|
+
"identity_key": "BAt2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
205
|
+
"joined_at": "2026-11-07T12:00:01Z"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"user_id": "1002",
|
|
209
|
+
"state": "joined",
|
|
210
|
+
"session_id": "9c1d2e3f-4a5b-4c6d-8e7f-001122334455",
|
|
211
|
+
"identity_key": "BHk9BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB",
|
|
212
|
+
"joined_at": "2026-11-07T12:00:05Z"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"user_id": "1003",
|
|
216
|
+
"state": "ringing",
|
|
217
|
+
"session_id": null,
|
|
218
|
+
"identity_key": null,
|
|
219
|
+
"joined_at": null
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
107
225
|
"server/chat_created.json": {
|
|
108
226
|
"type": "chat_created",
|
|
109
227
|
"event_id": "7217400317439950009",
|
|
@@ -120,12 +238,24 @@
|
|
|
120
238
|
"display_name": "Alice",
|
|
121
239
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
122
240
|
"bio": null,
|
|
241
|
+
"pronouns": null,
|
|
242
|
+
"birthday": null,
|
|
243
|
+
"music": null,
|
|
244
|
+
"background": null,
|
|
123
245
|
"is_online": true,
|
|
124
246
|
"last_seen": null,
|
|
125
|
-
"is_deleted": false
|
|
247
|
+
"is_deleted": false,
|
|
248
|
+
"profile_version": 1
|
|
126
249
|
},
|
|
127
250
|
"is_pinned": false,
|
|
251
|
+
"pin_position": null,
|
|
252
|
+
"is_archived": false,
|
|
253
|
+
"is_request": false,
|
|
128
254
|
"unread_count": 1,
|
|
255
|
+
"unread_mentions_count": 0,
|
|
256
|
+
"pinned_message_count": 0,
|
|
257
|
+
"first_unread_message_id": "7217400317439950001",
|
|
258
|
+
"last_read_message_id": null,
|
|
129
259
|
"last_message": {
|
|
130
260
|
"id": "7217400317439950001",
|
|
131
261
|
"chat_id": "42",
|
|
@@ -136,9 +266,14 @@
|
|
|
136
266
|
"display_name": "Alice",
|
|
137
267
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
138
268
|
"bio": null,
|
|
269
|
+
"pronouns": null,
|
|
270
|
+
"birthday": null,
|
|
271
|
+
"music": null,
|
|
272
|
+
"background": null,
|
|
139
273
|
"is_online": true,
|
|
140
274
|
"last_seen": null,
|
|
141
|
-
"is_deleted": false
|
|
275
|
+
"is_deleted": false,
|
|
276
|
+
"profile_version": 1
|
|
142
277
|
},
|
|
143
278
|
"content": "Hello!",
|
|
144
279
|
"attachment": null,
|
|
@@ -178,12 +313,24 @@
|
|
|
178
313
|
"display_name": "Alice",
|
|
179
314
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
180
315
|
"bio": null,
|
|
316
|
+
"pronouns": null,
|
|
317
|
+
"birthday": null,
|
|
318
|
+
"music": null,
|
|
319
|
+
"background": null,
|
|
181
320
|
"is_online": true,
|
|
182
321
|
"last_seen": null,
|
|
183
|
-
"is_deleted": false
|
|
322
|
+
"is_deleted": false,
|
|
323
|
+
"profile_version": 1
|
|
184
324
|
},
|
|
185
325
|
"is_pinned": false,
|
|
326
|
+
"pin_position": null,
|
|
327
|
+
"is_archived": false,
|
|
328
|
+
"is_request": false,
|
|
186
329
|
"unread_count": 1,
|
|
330
|
+
"unread_mentions_count": 0,
|
|
331
|
+
"pinned_message_count": 0,
|
|
332
|
+
"first_unread_message_id": "7217400317439950001",
|
|
333
|
+
"last_read_message_id": null,
|
|
187
334
|
"last_message": {
|
|
188
335
|
"id": "7217400317439950001",
|
|
189
336
|
"chat_id": "42",
|
|
@@ -194,9 +341,14 @@
|
|
|
194
341
|
"display_name": "Alice",
|
|
195
342
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
196
343
|
"bio": null,
|
|
344
|
+
"pronouns": null,
|
|
345
|
+
"birthday": null,
|
|
346
|
+
"music": null,
|
|
347
|
+
"background": null,
|
|
197
348
|
"is_online": true,
|
|
198
349
|
"last_seen": null,
|
|
199
|
-
"is_deleted": false
|
|
350
|
+
"is_deleted": false,
|
|
351
|
+
"profile_version": 1
|
|
200
352
|
},
|
|
201
353
|
"content": "Hello!",
|
|
202
354
|
"attachment": null,
|
|
@@ -214,6 +366,28 @@
|
|
|
214
366
|
}
|
|
215
367
|
}
|
|
216
368
|
},
|
|
369
|
+
"server/client_settings_updated.json": {
|
|
370
|
+
"type": "client_settings_updated",
|
|
371
|
+
"event_id": "0",
|
|
372
|
+
"chat_id": null,
|
|
373
|
+
"data": {
|
|
374
|
+
"appearance": {
|
|
375
|
+
"accent": "blue",
|
|
376
|
+
"font_size": 16,
|
|
377
|
+
"density": "compact",
|
|
378
|
+
"corners": "round"
|
|
379
|
+
},
|
|
380
|
+
"recent_emoji": [
|
|
381
|
+
"😀",
|
|
382
|
+
"❤️"
|
|
383
|
+
],
|
|
384
|
+
"recent_reactions": [
|
|
385
|
+
"👍"
|
|
386
|
+
],
|
|
387
|
+
"version": 7,
|
|
388
|
+
"updated_at": "2026-11-26T10:15:00Z"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
217
391
|
"server/delete.json": {
|
|
218
392
|
"type": "delete",
|
|
219
393
|
"event_id": "7217400317439950009",
|
|
@@ -238,9 +412,14 @@
|
|
|
238
412
|
"display_name": "Alice",
|
|
239
413
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
240
414
|
"bio": null,
|
|
415
|
+
"pronouns": null,
|
|
416
|
+
"birthday": null,
|
|
417
|
+
"music": null,
|
|
418
|
+
"background": null,
|
|
241
419
|
"is_online": true,
|
|
242
420
|
"last_seen": null,
|
|
243
|
-
"is_deleted": false
|
|
421
|
+
"is_deleted": false,
|
|
422
|
+
"profile_version": 1
|
|
244
423
|
},
|
|
245
424
|
"content": "Hello, world!",
|
|
246
425
|
"attachment": null,
|
|
@@ -275,6 +454,7 @@
|
|
|
275
454
|
"name": "Team",
|
|
276
455
|
"description": null,
|
|
277
456
|
"avatar_url": null,
|
|
457
|
+
"background": null,
|
|
278
458
|
"owner_id": "1001",
|
|
279
459
|
"my_role": "owner",
|
|
280
460
|
"members": [
|
|
@@ -285,15 +465,21 @@
|
|
|
285
465
|
"display_name": "Alice",
|
|
286
466
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
287
467
|
"bio": null,
|
|
468
|
+
"pronouns": null,
|
|
469
|
+
"birthday": null,
|
|
470
|
+
"music": null,
|
|
471
|
+
"background": null,
|
|
288
472
|
"is_online": true,
|
|
289
473
|
"last_seen": null,
|
|
290
|
-
"is_deleted": false
|
|
474
|
+
"is_deleted": false,
|
|
475
|
+
"profile_version": 1
|
|
291
476
|
},
|
|
292
477
|
"role": "owner",
|
|
293
478
|
"joined_at": "2026-10-04T12:00:00Z"
|
|
294
479
|
}
|
|
295
480
|
],
|
|
296
|
-
"created_at": "2026-10-04T12:00:00Z"
|
|
481
|
+
"created_at": "2026-10-04T12:00:00Z",
|
|
482
|
+
"public_name": null
|
|
297
483
|
}
|
|
298
484
|
}
|
|
299
485
|
},
|
|
@@ -307,6 +493,7 @@
|
|
|
307
493
|
"name": "Team",
|
|
308
494
|
"description": null,
|
|
309
495
|
"avatar_url": null,
|
|
496
|
+
"background": null,
|
|
310
497
|
"owner_id": "1001",
|
|
311
498
|
"my_role": "owner",
|
|
312
499
|
"members": [
|
|
@@ -317,15 +504,21 @@
|
|
|
317
504
|
"display_name": "Alice",
|
|
318
505
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
319
506
|
"bio": null,
|
|
507
|
+
"pronouns": null,
|
|
508
|
+
"birthday": null,
|
|
509
|
+
"music": null,
|
|
510
|
+
"background": null,
|
|
320
511
|
"is_online": true,
|
|
321
512
|
"last_seen": null,
|
|
322
|
-
"is_deleted": false
|
|
513
|
+
"is_deleted": false,
|
|
514
|
+
"profile_version": 1
|
|
323
515
|
},
|
|
324
516
|
"role": "owner",
|
|
325
517
|
"joined_at": "2026-10-04T12:00:00Z"
|
|
326
518
|
}
|
|
327
519
|
],
|
|
328
|
-
"created_at": "2026-10-04T12:00:00Z"
|
|
520
|
+
"created_at": "2026-10-04T12:00:00Z",
|
|
521
|
+
"public_name": null
|
|
329
522
|
}
|
|
330
523
|
}
|
|
331
524
|
},
|
|
@@ -339,6 +532,40 @@
|
|
|
339
532
|
"user_id": "1001"
|
|
340
533
|
}
|
|
341
534
|
},
|
|
535
|
+
"server/history_cleared.json": {
|
|
536
|
+
"type": "history_cleared",
|
|
537
|
+
"event_id": "7217400317439950011",
|
|
538
|
+
"chat_id": "42",
|
|
539
|
+
"data": {
|
|
540
|
+
"before_message_id": "7217400317439950002",
|
|
541
|
+
"scope": "everyone",
|
|
542
|
+
"actor_id": "7"
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
"server/import_sender_update.json": {
|
|
546
|
+
"type": "import_sender_update",
|
|
547
|
+
"event_id": "7217400317439950014",
|
|
548
|
+
"chat_id": "42",
|
|
549
|
+
"data": {
|
|
550
|
+
"import_id": "3",
|
|
551
|
+
"sender": {
|
|
552
|
+
"key": "s2",
|
|
553
|
+
"name": "Bert K.",
|
|
554
|
+
"message_count": 1502,
|
|
555
|
+
"state": "pending",
|
|
556
|
+
"user_id": "7"
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"server/import_update.json": {
|
|
561
|
+
"type": "import_update",
|
|
562
|
+
"event_id": "7217400317439950013",
|
|
563
|
+
"chat_id": "42",
|
|
564
|
+
"data": {
|
|
565
|
+
"import_id": "3",
|
|
566
|
+
"state": "done"
|
|
567
|
+
}
|
|
568
|
+
},
|
|
342
569
|
"server/message.json": {
|
|
343
570
|
"type": "message",
|
|
344
571
|
"event_id": "7217400317439950009",
|
|
@@ -354,9 +581,14 @@
|
|
|
354
581
|
"display_name": "Alice",
|
|
355
582
|
"avatar_url": "/api/v2/users/1001/avatar",
|
|
356
583
|
"bio": null,
|
|
584
|
+
"pronouns": null,
|
|
585
|
+
"birthday": null,
|
|
586
|
+
"music": null,
|
|
587
|
+
"background": null,
|
|
357
588
|
"is_online": true,
|
|
358
589
|
"last_seen": null,
|
|
359
|
-
"is_deleted": false
|
|
590
|
+
"is_deleted": false,
|
|
591
|
+
"profile_version": 1
|
|
360
592
|
},
|
|
361
593
|
"content": "Hello!",
|
|
362
594
|
"attachment": null,
|
|
@@ -371,6 +603,68 @@
|
|
|
371
603
|
}
|
|
372
604
|
}
|
|
373
605
|
},
|
|
606
|
+
"server/pin_update.json": {
|
|
607
|
+
"type": "pin_update",
|
|
608
|
+
"event_id": "7217400317439950012",
|
|
609
|
+
"chat_id": "42",
|
|
610
|
+
"data": {
|
|
611
|
+
"message_id": "7217400317439950002",
|
|
612
|
+
"action": "pinned",
|
|
613
|
+
"scope": "everyone",
|
|
614
|
+
"actor_id": "7",
|
|
615
|
+
"at": "2026-11-21T10:15:00Z"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
"server/playlists_updated.json": {
|
|
619
|
+
"type": "playlists_updated",
|
|
620
|
+
"event_id": "0",
|
|
621
|
+
"chat_id": null,
|
|
622
|
+
"data": {
|
|
623
|
+
"action": "updated",
|
|
624
|
+
"playlist_id": "7217400317439950100",
|
|
625
|
+
"playlist": {
|
|
626
|
+
"id": "7217400317439950100",
|
|
627
|
+
"name": "Road trip",
|
|
628
|
+
"track_count": 12,
|
|
629
|
+
"version": 4,
|
|
630
|
+
"created_at": "2026-11-20T08:00:00Z",
|
|
631
|
+
"updated_at": "2026-11-26T10:15:00Z"
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"server/poll_updated.json": {
|
|
636
|
+
"type": "poll_updated",
|
|
637
|
+
"event_id": "7217400317439950013",
|
|
638
|
+
"chat_id": "42",
|
|
639
|
+
"data": {
|
|
640
|
+
"message_id": "7217400317439950002",
|
|
641
|
+
"poll": {
|
|
642
|
+
"question": "Where do we meet?",
|
|
643
|
+
"options": [
|
|
644
|
+
{
|
|
645
|
+
"text": "Café",
|
|
646
|
+
"voter_count": 3
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"text": "Park",
|
|
650
|
+
"voter_count": 1
|
|
651
|
+
}
|
|
652
|
+
],
|
|
653
|
+
"multiple_answers": false,
|
|
654
|
+
"anonymous": true,
|
|
655
|
+
"quiz": false,
|
|
656
|
+
"explanation": null,
|
|
657
|
+
"close_at": null,
|
|
658
|
+
"closed_at": null,
|
|
659
|
+
"total_voters": 4,
|
|
660
|
+
"my_votes": [
|
|
661
|
+
0
|
|
662
|
+
],
|
|
663
|
+
"can_close": false,
|
|
664
|
+
"version": 4
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
},
|
|
374
668
|
"server/presence.json": {
|
|
375
669
|
"type": "presence",
|
|
376
670
|
"event_id": "7217400317439950009",
|
|
@@ -415,6 +709,49 @@
|
|
|
415
709
|
"read_at": "2026-10-04T12:00:00Z"
|
|
416
710
|
}
|
|
417
711
|
},
|
|
712
|
+
"server/recovery_request.json": {
|
|
713
|
+
"type": "recovery_request",
|
|
714
|
+
"event_id": "7217400317439950849",
|
|
715
|
+
"chat_id": null,
|
|
716
|
+
"data": {
|
|
717
|
+
"request_id": "z8uFZt0xFYtjm_iO3vI9xFYxsy7xM4K5uM1g1s8YbYI",
|
|
718
|
+
"user_agent": "Chrome on Windows",
|
|
719
|
+
"location": {
|
|
720
|
+
"city": "Berlin",
|
|
721
|
+
"country_code": "DE",
|
|
722
|
+
"country": "Germany"
|
|
723
|
+
},
|
|
724
|
+
"choices": [
|
|
725
|
+
17,
|
|
726
|
+
42,
|
|
727
|
+
85
|
|
728
|
+
],
|
|
729
|
+
"expires_at": "2026-11-05T20:00:00Z"
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"server/report_outcome.json": {
|
|
733
|
+
"type": "report_outcome",
|
|
734
|
+
"event_id": "7217400317439950012",
|
|
735
|
+
"chat_id": null,
|
|
736
|
+
"data": {
|
|
737
|
+
"id": "41",
|
|
738
|
+
"subject_type": "user",
|
|
739
|
+
"subject_id": "7217400317439950848",
|
|
740
|
+
"outcome": "action_taken",
|
|
741
|
+
"created_at": "2026-11-19T10:15:00Z",
|
|
742
|
+
"read": false
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
"server/security_alert.json": {
|
|
746
|
+
"type": "security_alert",
|
|
747
|
+
"event_id": "7217400317439950010",
|
|
748
|
+
"chat_id": null,
|
|
749
|
+
"data": {
|
|
750
|
+
"type": "login",
|
|
751
|
+
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/140.0",
|
|
752
|
+
"created_at": "2026-11-06T12:00:00Z"
|
|
753
|
+
}
|
|
754
|
+
},
|
|
418
755
|
"server/security_notice.json": {
|
|
419
756
|
"type": "security_notice",
|
|
420
757
|
"event_id": "7217400317439950009",
|
|
@@ -429,7 +766,38 @@
|
|
|
429
766
|
"chat_id": "42",
|
|
430
767
|
"data": {
|
|
431
768
|
"user_id": "1002",
|
|
432
|
-
"is_typing": true
|
|
769
|
+
"is_typing": true,
|
|
770
|
+
"action": "recording_voice"
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
"server/user_updated.json": {
|
|
774
|
+
"type": "user_updated",
|
|
775
|
+
"event_id": "7217400317439950012",
|
|
776
|
+
"chat_id": null,
|
|
777
|
+
"data": {
|
|
778
|
+
"user_id": "7",
|
|
779
|
+
"profile_version": 3
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
"server/wallpaper_updated.json": {
|
|
783
|
+
"type": "wallpaper_updated",
|
|
784
|
+
"event_id": "0",
|
|
785
|
+
"chat_id": null,
|
|
786
|
+
"data": {
|
|
787
|
+
"chat_id": "42",
|
|
788
|
+
"entry": {
|
|
789
|
+
"chat_id": "42",
|
|
790
|
+
"wallpaper": {
|
|
791
|
+
"kind": "color",
|
|
792
|
+
"colors": [
|
|
793
|
+
"#3366ff",
|
|
794
|
+
"#9933ff"
|
|
795
|
+
],
|
|
796
|
+
"pattern": "dots"
|
|
797
|
+
},
|
|
798
|
+
"set_by": "7",
|
|
799
|
+
"updated_at": "2026-11-26T10:15:00Z"
|
|
800
|
+
}
|
|
433
801
|
}
|
|
434
802
|
}
|
|
435
803
|
}
|