max-account-api 0.1.0

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.
@@ -0,0 +1,435 @@
1
+ /**
2
+ * MAX protocol opcode catalogue.
3
+ *
4
+ * Source: extracted from decompiled `ru.oneme.app` (v26.15.1, build 6690) —
5
+ * specifically the `exc` enum class. Numbers + canonical names match the
6
+ * Android client's source-of-truth; the wire protocol uses the same numbers
7
+ * over WS (`ws-api.oneme.ru/websocket`, JSON frames) and TLS
8
+ * (`api.oneme.ru:443`, msgpack-+-LZ4 binary frames).
9
+ *
10
+ * **Transport overlap:**
11
+ * - **shared** ops (work on both transports): everything except auth/QR
12
+ * specifics. E.g. op 64 (MSG_SEND), op 49 (CHAT_HISTORY), op 128
13
+ * (NOTIF_MESSAGE), …
14
+ * - **mobile-only** (binary): 17 (AUTH_REQUEST), 18 (AUTH), 115
15
+ * (AUTH_LOGIN_CHECK_PASSWORD), 290 (AUTH_QR_APPROVE) — phone-auth +
16
+ * headless QR confirm.
17
+ * - **web-only** (WS): 288, 289, 291 — QR-code generation/poll/claim for a
18
+ * web device (the mobile enum doesn't include them; web client owns the
19
+ * QR side).
20
+ *
21
+ * **Backward compatibility:** every name that used to exist in this file is
22
+ * kept as an alias to the same number — no breaking changes. New canonical
23
+ * names from the decompilation are added alongside.
24
+ */
25
+ export declare const Opcode: {
26
+ readonly PING: 1;
27
+ readonly DEBUG: 2;
28
+ readonly RECONNECT: 3;
29
+ readonly LOG: 5;
30
+ /** Alias of {@link Opcode.LOG}. */
31
+ readonly EVENT_LOG: 5;
32
+ readonly SESSION_INIT: 6;
33
+ /** Alias of {@link Opcode.SESSION_INIT}. */
34
+ readonly HELLO: 6;
35
+ readonly PROFILE: 16;
36
+ /** Alias of {@link Opcode.PROFILE}. */
37
+ readonly PROFILE_UPDATE: 16;
38
+ /**
39
+ * Mobile phone-auth START (op 17). Body prefix: `f0 15` (START_AUTH) or
40
+ * `f0 11` (RESEND). Returns short-lived `{token}` for op 18.
41
+ */
42
+ readonly AUTH_REQUEST: 17;
43
+ /** Alias of {@link Opcode.AUTH_REQUEST}. */
44
+ readonly PHONE_AUTH_START: 17;
45
+ /**
46
+ * Mobile phone-auth verify (op 18). Body prefix: `f0 ad`. Returns LOGIN
47
+ * token or `passwordChallenge` for 2FA.
48
+ */
49
+ readonly AUTH: 18;
50
+ /** Alias of {@link Opcode.AUTH}. */
51
+ readonly PHONE_AUTH_VERIFY: 18;
52
+ readonly LOGIN: 19;
53
+ readonly LOGOUT: 20;
54
+ readonly SYNC: 21;
55
+ readonly CONFIG: 22;
56
+ /** Alias of {@link Opcode.CONFIG}. */
57
+ readonly SETTINGS: 22;
58
+ readonly AUTH_CONFIRM: 23;
59
+ readonly AUTH_LOGIN_RESTORE_PASSWORD: 101;
60
+ readonly AUTH_2FA_DETAILS: 104;
61
+ /** Alias of {@link Opcode.AUTH_2FA_DETAILS}. */
62
+ readonly AUTH_PASSWORD_INFO: 104;
63
+ readonly AUTH_VALIDATE_PASSWORD: 107;
64
+ /** Alias of {@link Opcode.AUTH_VALIDATE_PASSWORD}. */
65
+ readonly AUTH_PASSWORD_VALIDATE: 107;
66
+ readonly AUTH_VALIDATE_HINT: 108;
67
+ /** Alias of {@link Opcode.AUTH_VALIDATE_HINT}. */
68
+ readonly AUTH_PASSWORD_HINT: 108;
69
+ readonly AUTH_VERIFY_EMAIL: 109;
70
+ /** Alias of {@link Opcode.AUTH_VERIFY_EMAIL}. */
71
+ readonly AUTH_EMAIL_SEND_CODE: 109;
72
+ readonly AUTH_CHECK_EMAIL: 110;
73
+ /** Alias of {@link Opcode.AUTH_CHECK_EMAIL}. */
74
+ readonly AUTH_EMAIL_VERIFY_CODE: 110;
75
+ readonly AUTH_SET_2FA: 111;
76
+ /** Alias of {@link Opcode.AUTH_SET_2FA}. */
77
+ readonly AUTH_PASSWORD_COMMIT: 111;
78
+ readonly AUTH_CREATE_TRACK: 112;
79
+ /** Alias of {@link Opcode.AUTH_CREATE_TRACK}. */
80
+ readonly AUTH_TRACK_START: 112;
81
+ readonly AUTH_CHECK_PASSWORD: 113;
82
+ /** Alias of {@link Opcode.AUTH_CHECK_PASSWORD}. */
83
+ readonly AUTH_PASSWORD_VERIFY: 113;
84
+ /**
85
+ * Op 115: submit a 2FA cloud password (mobile binary uses prefix `f0 33`,
86
+ * flags=1). On mobile: completes phone-auth verifyCode → LOGIN token.
87
+ * On web: completes QR-claim → LOGIN token. Same op, both paths.
88
+ */
89
+ readonly AUTH_LOGIN_CHECK_PASSWORD: 115;
90
+ /** Alias of {@link Opcode.AUTH_LOGIN_CHECK_PASSWORD}. */
91
+ readonly AUTH_QR_PASSWORD_LOGIN: 115;
92
+ readonly AUTH_LOGIN_PROFILE_DELETE: 116;
93
+ /**
94
+ * Op 290: **mobile** confirms a web-side QR-login (body `{qrLink}`, prefix
95
+ * `f0 34`, flags=1). The web client's op 289 long-poll flips to
96
+ * `loginAvailable:true` after this lands.
97
+ */
98
+ readonly AUTH_QR_APPROVE: 290;
99
+ /** Alias of {@link Opcode.AUTH_QR_APPROVE}. */
100
+ readonly QR_CONFIRM: 290;
101
+ readonly PRESET_AVATARS: 25;
102
+ readonly ASSETS_GET: 26;
103
+ /** Alias of {@link Opcode.ASSETS_GET}. */
104
+ readonly STICKER_LIST: 26;
105
+ readonly ASSETS_UPDATE: 27;
106
+ /** Alias of {@link Opcode.ASSETS_UPDATE}. */
107
+ readonly STICKER_SYNC: 27;
108
+ readonly ASSETS_GET_BY_IDS: 28;
109
+ /**
110
+ * @deprecated Mis-named alias of {@link Opcode.ASSETS_GET_BY_IDS} (op 28).
111
+ * The canonical "contact info" op is **32** ({@link Opcode.CONTACT_INFO}).
112
+ * Old name kept only so existing imports continue to compile; do not use
113
+ * for new code.
114
+ */
115
+ readonly CONTACT_INFO_LEGACY_28: 28;
116
+ readonly ASSETS_ADD: 29;
117
+ /** Alias of {@link Opcode.ASSETS_ADD}. */
118
+ readonly STICKER_PACK_ACTION: 29;
119
+ readonly ASSETS_REMOVE: 259;
120
+ readonly ASSETS_MOVE: 260;
121
+ readonly ASSETS_LIST_MODIFY: 261;
122
+ readonly CONTACT_INFO: 32;
123
+ /** Alias of {@link Opcode.CONTACT_INFO}. */
124
+ readonly CONTACTS_GET: 32;
125
+ readonly CONTACT_ADD: 33;
126
+ readonly CONTACT_UPDATE: 34;
127
+ /**
128
+ * @deprecated Mis-named alias of {@link Opcode.CONTACT_UPDATE} (op 34).
129
+ * `CONTACT_ACTION` is the historic name used by helpers like
130
+ * `contactAction(...)`; the canonical name is {@link Opcode.CONTACT_UPDATE}.
131
+ */
132
+ readonly CONTACT_ACTION: 34;
133
+ readonly CONTACT_PRESENCE: 35;
134
+ /** Alias of {@link Opcode.CONTACT_PRESENCE}. */
135
+ readonly PRESENCE_GET: 35;
136
+ readonly CONTACT_LIST: 36;
137
+ /** Alias of {@link Opcode.CONTACT_LIST}. */
138
+ readonly CONTACTS_LIST_BY_STATUS: 36;
139
+ readonly CONTACT_SEARCH: 37;
140
+ readonly CONTACT_MUTUAL: 38;
141
+ readonly CONTACT_PHOTOS: 39;
142
+ readonly CONTACT_SORT: 40;
143
+ readonly CONTACT_ADD_BY_PHONE: 41;
144
+ readonly CONTACT_VERIFY: 42;
145
+ readonly REMOVE_CONTACT_PHOTO: 43;
146
+ readonly CONTACT_INFO_BY_PHONE: 46;
147
+ /** Alias of {@link Opcode.CONTACT_INFO_BY_PHONE}. */
148
+ readonly CONTACT_LOOKUP_BY_PHONE: 46;
149
+ readonly CHAT_INFO: 48;
150
+ /** Alias of {@link Opcode.CHAT_INFO}. */
151
+ readonly CHATS_GET: 48;
152
+ readonly CHAT_HISTORY: 49;
153
+ /** Alias of {@link Opcode.CHAT_HISTORY}. */
154
+ readonly HISTORY_GET: 49;
155
+ readonly CHAT_MARK: 50;
156
+ /** Alias of {@link Opcode.CHAT_MARK}. */
157
+ readonly CHAT_EVENT: 50;
158
+ readonly CHAT_MEDIA: 51;
159
+ /** Alias of {@link Opcode.CHAT_MEDIA}. */
160
+ readonly HISTORY_BY_ATTACH: 51;
161
+ /**
162
+ * Op 52: fully delete the chat (removes it from the list). Use op 54
163
+ * ({@link Opcode.CHAT_CLEAR}) for clear-history-only.
164
+ */
165
+ readonly CHAT_DELETE: 52;
166
+ readonly CHATS_LIST: 53;
167
+ /** Alias of {@link Opcode.CHATS_LIST}. */
168
+ readonly CHATS_SYNC: 53;
169
+ /**
170
+ * Op 54: clear history of a chat without removing it. The pre-decompile
171
+ * version of this file had op 52 and 54 SWAPPED. Use {@link Opcode.CHAT_DELETE}
172
+ * (op 52) for full delete.
173
+ */
174
+ readonly CHAT_CLEAR: 54;
175
+ readonly CHAT_UPDATE: 55;
176
+ /** Alias of {@link Opcode.CHAT_UPDATE}. */
177
+ readonly CHAT_SETTINGS: 55;
178
+ /** Op 56: resolve a public link without joining. */
179
+ readonly CHAT_CHECK_LINK: 56;
180
+ /** Op 57: actually join a chat (after CHECK_LINK). */
181
+ readonly CHAT_JOIN: 57;
182
+ /**
183
+ * @deprecated Misleading alias: the pre-decompile name `CHAT_RESOLVE_LINK`
184
+ * (op 57) actually performs **CHAT_JOIN**. Use {@link Opcode.CHAT_CHECK_LINK}
185
+ * (op 56) if you only want to resolve.
186
+ */
187
+ readonly CHAT_RESOLVE_LINK: 57;
188
+ readonly CHAT_LEAVE: 58;
189
+ readonly CHAT_MEMBERS: 59;
190
+ /** Alias of {@link Opcode.CHAT_MEMBERS}. */
191
+ readonly MEMBERS_LIST: 59;
192
+ readonly PUBLIC_SEARCH: 60;
193
+ /** Alias of {@link Opcode.PUBLIC_SEARCH}. */
194
+ readonly GLOBAL_SEARCH_BY_TYPE: 60;
195
+ readonly CHAT_PERSONAL_CONFIG: 61;
196
+ readonly CHAT_LIVESTREAM_INFO: 62;
197
+ readonly CHAT_CREATE: 63;
198
+ readonly CHAT_SEARCH: 68;
199
+ /** Alias of {@link Opcode.CHAT_SEARCH}. */
200
+ readonly GLOBAL_SEARCH: 68;
201
+ readonly MSG_SEARCH_TOUCH: 72;
202
+ /**
203
+ * @deprecated Misleading alias: op 72 is `MSG_SEARCH_TOUCH` (focus the
204
+ * chat for search), not "open chat". Renamed for accuracy.
205
+ */
206
+ readonly CHAT_OPEN: 72;
207
+ readonly MSG_SEARCH: 73;
208
+ /** Alias of {@link Opcode.MSG_SEARCH}. */
209
+ readonly MESSAGE_SEARCH: 73;
210
+ readonly MSG_GET_STAT: 74;
211
+ /** Alias of {@link Opcode.MSG_GET_STAT}. */
212
+ readonly MESSAGE_STATS: 74;
213
+ readonly CHAT_SUBSCRIBE: 75;
214
+ readonly CHAT_MEMBERS_UPDATE: 77;
215
+ /** Alias of {@link Opcode.CHAT_MEMBERS_UPDATE}. */
216
+ readonly GROUP_PARTICIPANTS: 77;
217
+ readonly CHAT_PIN_SET_VISIBILITY: 86;
218
+ readonly CHAT_COMPLAIN: 117;
219
+ readonly CHAT_HIDE: 196;
220
+ readonly CHAT_SEARCH_COMMON_PARTICIPANTS: 198;
221
+ /** Alias of {@link Opcode.CHAT_SEARCH_COMMON_PARTICIPANTS}. */
222
+ readonly COMMON_CHATS: 198;
223
+ readonly CHAT_SUGGEST: 300;
224
+ readonly MSG_SEND: 64;
225
+ /** Alias of {@link Opcode.MSG_SEND}. */
226
+ readonly SEND_MESSAGE: 64;
227
+ readonly MSG_TYPING: 65;
228
+ /** Alias of {@link Opcode.MSG_TYPING}. */
229
+ readonly TYPING: 65;
230
+ readonly MSG_DELETE: 66;
231
+ /** Alias of {@link Opcode.MSG_DELETE}. */
232
+ readonly DELETE_MESSAGES: 66;
233
+ readonly MSG_EDIT: 67;
234
+ /** Alias of {@link Opcode.MSG_EDIT}. */
235
+ readonly EDIT_MESSAGE: 67;
236
+ readonly MSG_SHARE_PREVIEW: 70;
237
+ /** Alias of {@link Opcode.MSG_SHARE_PREVIEW}. */
238
+ readonly LINK_PREVIEW: 70;
239
+ readonly MSG_GET: 71;
240
+ readonly MSG_DELETE_RANGE: 92;
241
+ readonly MSG_SEND_CALLBACK: 118;
242
+ readonly MSG_REACTION: 178;
243
+ /** Alias of {@link Opcode.MSG_REACTION}. */
244
+ readonly REACTION_SET: 178;
245
+ readonly MSG_CANCEL_REACTION: 179;
246
+ /** Alias of {@link Opcode.MSG_CANCEL_REACTION}. */
247
+ readonly REACTION_REMOVE: 179;
248
+ readonly MSG_GET_REACTIONS: 180;
249
+ /** Alias of {@link Opcode.MSG_GET_REACTIONS}. */
250
+ readonly REACTIONS_GET: 180;
251
+ readonly MSG_GET_DETAILED_REACTIONS: 181;
252
+ /** Alias of {@link Opcode.MSG_GET_DETAILED_REACTIONS}. */
253
+ readonly REACTIONS_LIST: 181;
254
+ readonly MSG_DELIVERY: 303;
255
+ readonly VIDEO_CHAT_START: 76;
256
+ readonly VIDEO_CHAT_START_ACTIVE: 78;
257
+ /**
258
+ * @deprecated Op 78 is canonically `VIDEO_CHAT_START_ACTIVE`. The historic
259
+ * `CALL_START` alias points at it for back-compat.
260
+ */
261
+ readonly CALL_START: 78;
262
+ readonly VIDEO_CHAT_HISTORY: 79;
263
+ /** Alias of {@link Opcode.VIDEO_CHAT_HISTORY}. */
264
+ readonly CALL_HISTORY: 79;
265
+ readonly VIDEO_CHAT_CREATE_JOIN_LINK: 84;
266
+ readonly VIDEO_CHAT_JOIN: 166;
267
+ readonly VIDEO_CHAT_MEMBERS: 195;
268
+ readonly GET_INBOUND_CALLS: 103;
269
+ readonly EXTERNAL_CALLBACK: 105;
270
+ readonly PHOTO_UPLOAD: 80;
271
+ /** Alias of {@link Opcode.PHOTO_UPLOAD}. */
272
+ readonly PHOTO_UPLOAD_URL: 80;
273
+ readonly STICKER_UPLOAD: 81;
274
+ readonly VIDEO_UPLOAD: 82;
275
+ /** Alias of {@link Opcode.VIDEO_UPLOAD}. */
276
+ readonly VIDEO_UPLOAD_URL: 82;
277
+ readonly VIDEO_PLAY: 83;
278
+ /** Alias of {@link Opcode.VIDEO_PLAY}. */
279
+ readonly EXTERNAL_VIDEO_RESOLVE: 83;
280
+ readonly FILE_UPLOAD: 87;
281
+ /** Alias of {@link Opcode.FILE_UPLOAD}. */
282
+ readonly FILE_UPLOAD_URL: 87;
283
+ readonly FILE_DOWNLOAD: 88;
284
+ /** Alias of {@link Opcode.FILE_DOWNLOAD}. */
285
+ readonly FILE_DOWNLOAD_URL: 88;
286
+ readonly LINK_INFO: 89;
287
+ readonly STICKER_CREATE: 193;
288
+ readonly STICKER_SUGGEST: 194;
289
+ readonly SESSIONS_INFO: 96;
290
+ /** Alias of {@link Opcode.SESSIONS_INFO}. */
291
+ readonly SESSIONS_LIST: 96;
292
+ readonly SESSIONS_CLOSE: 97;
293
+ readonly PHONE_BIND_REQUEST: 98;
294
+ readonly PHONE_BIND_CONFIRM: 99;
295
+ readonly PHONE_WEBAPP_SHARE: 106;
296
+ readonly LOCATION_SEND: 125;
297
+ readonly LOCATION_REQUEST: 126;
298
+ readonly GET_LAST_MENTIONS: 127;
299
+ readonly DRAFT_SAVE: 176;
300
+ /**
301
+ * Op 177: discard a draft. The pre-decompile name
302
+ * `PRESENCE_SUBSCRIBE: 177` was incorrect — that op actually exists, but
303
+ * the WS protocol uses a different number for presence subscribe. Confirm
304
+ * before using {@link Opcode.PRESENCE_SUBSCRIBE} below.
305
+ */
306
+ readonly DRAFT_DISCARD: 177;
307
+ /**
308
+ * @deprecated The pre-decompile binding said this is op 177, but the
309
+ * canonical Android enum slots `DRAFT_DISCARD` at 177. WS-side
310
+ * `presence/subscribe` likely uses a different opcode — not yet verified.
311
+ */
312
+ readonly PRESENCE_SUBSCRIBE: 177;
313
+ readonly PROFILE_DELETE: 199;
314
+ readonly PROFILE_DELETE_TIME: 200;
315
+ /**
316
+ * @deprecated The pre-decompile name `KEEPALIVE_TS: 200` was wrong —
317
+ * op 200 is `PROFILE_DELETE_TIME`, not a keep-alive. Use op 1 ({@link
318
+ * Opcode.PING}) for keep-alive. Kept for back-compat only.
319
+ */
320
+ readonly KEEPALIVE_TS: 200;
321
+ readonly NOTIF_MESSAGE: 128;
322
+ /** Alias of {@link Opcode.NOTIF_MESSAGE}. */
323
+ readonly MESSAGE_INCOMING: 128;
324
+ readonly NOTIF_TYPING: 129;
325
+ /**
326
+ * @deprecated Wrong canonical name. Op 129 is `NOTIF_TYPING`, not
327
+ * `MEMBER_LEAVE_PUSH`. Renamed via deprecation; old name kept for compat.
328
+ */
329
+ readonly MEMBER_LEAVE_PUSH: 129;
330
+ readonly NOTIF_MARK: 130;
331
+ /** Alias of {@link Opcode.NOTIF_MARK}. */
332
+ readonly READ_MARK_PUSH: 130;
333
+ readonly NOTIF_CONTACT: 131;
334
+ readonly NOTIF_PRESENCE: 132;
335
+ /** Alias of {@link Opcode.NOTIF_PRESENCE}. */
336
+ readonly PRESENCE_PUSH: 132;
337
+ readonly NOTIF_CONFIG: 134;
338
+ /** Alias of {@link Opcode.NOTIF_CONFIG}. */
339
+ readonly CONFIG_HASH_PUSH: 134;
340
+ readonly NOTIF_CHAT: 135;
341
+ /** Alias of {@link Opcode.NOTIF_CHAT}. */
342
+ readonly CHAT_UPDATE_PUSH: 135;
343
+ readonly NOTIF_ATTACH: 136;
344
+ /** Alias of {@link Opcode.NOTIF_ATTACH}. */
345
+ readonly FILE_UPLOAD_DONE_PUSH: 136;
346
+ readonly NOTIF_CALL_START: 137;
347
+ readonly NOTIF_CONTACT_SORT: 139;
348
+ readonly NOTIF_MSG_DELETE_RANGE: 140;
349
+ readonly NOTIF_MSG_DELETE: 142;
350
+ readonly NOTIF_CALLBACK_ANSWER: 143;
351
+ readonly NOTIF_LOCATION: 147;
352
+ readonly NOTIF_LOCATION_REQUEST: 148;
353
+ readonly NOTIF_ASSETS_UPDATE: 150;
354
+ /** Alias of {@link Opcode.NOTIF_ASSETS_UPDATE}. */
355
+ readonly STICKER_RECENTS_PUSH: 150;
356
+ readonly NOTIF_DRAFT: 152;
357
+ readonly NOTIF_DRAFT_DISCARD: 153;
358
+ readonly NOTIF_MSG_DELAYED: 154;
359
+ readonly NOTIF_MSG_REACTIONS_CHANGED: 155;
360
+ readonly NOTIF_MSG_YOU_REACTED: 156;
361
+ readonly NOTIF_PROFILE: 159;
362
+ /** Alias of {@link Opcode.NOTIF_PROFILE}. */
363
+ readonly PROFILE_UPDATE_PUSH: 159;
364
+ readonly NOTIF_FOLDERS: 277;
365
+ readonly NOTIF_BANNERS: 292;
366
+ /** Alias of {@link Opcode.NOTIF_BANNERS}. */
367
+ readonly BANNERS: 292;
368
+ readonly NOTIF_TRANSCRIPTION: 293;
369
+ readonly CHAT_BOT_COMMANDS: 144;
370
+ readonly BOT_INFO: 145;
371
+ readonly WEB_APP_INIT_DATA: 160;
372
+ /** Alias of {@link Opcode.WEB_APP_INIT_DATA}. */
373
+ readonly BOT_MINI_APP_OPEN: 160;
374
+ readonly COMPLAIN: 161;
375
+ readonly COMPLAIN_REASONS_GET: 162;
376
+ /** Alias of {@link Opcode.COMPLAIN_REASONS_GET}. */
377
+ readonly COMPLAINS_SYNC: 162;
378
+ /**
379
+ * Op 158: short-lived OK-group access token (~14-min lifetime). Used to
380
+ * authenticate HTTP requests to `i.oneme.ru` / `videowebrtc.okcdn.ru`.
381
+ * Refresh before `token_refresh_ts`.
382
+ */
383
+ readonly OK_TOKEN: 158;
384
+ /** Alias of {@link Opcode.OK_TOKEN}. */
385
+ readonly WEB_TOKEN: 158;
386
+ readonly TRANSCRIBE_MEDIA: 202;
387
+ readonly AUDIO_PLAY: 301;
388
+ readonly ORG_INFO: 256;
389
+ readonly BANNERS_GET: 302;
390
+ readonly CHAT_REACTIONS_SETTINGS_SET: 257;
391
+ /** Alias of {@link Opcode.CHAT_REACTIONS_SETTINGS_SET}. */
392
+ readonly CHAT_REACTIONS_SETTINGS: 257;
393
+ readonly REACTIONS_SETTINGS_GET_BY_CHAT_ID: 258;
394
+ /** Alias of {@link Opcode.REACTIONS_SETTINGS_GET_BY_CHAT_ID}. */
395
+ readonly CHAT_REACTIONS_SETTINGS_GET: 258;
396
+ readonly FOLDERS_GET: 272;
397
+ /** Alias of {@link Opcode.FOLDERS_GET}. */
398
+ readonly FOLDERS_SYNC: 272;
399
+ readonly FOLDERS_GET_BY_ID: 273;
400
+ readonly FOLDERS_UPDATE: 274;
401
+ /** Alias of {@link Opcode.FOLDERS_UPDATE}. */
402
+ readonly FOLDER_UPSERT: 274;
403
+ readonly FOLDERS_REORDER: 275;
404
+ /**
405
+ * Op 276: **delete** a folder. The pre-decompile name `FOLDERS_ORDER: 276`
406
+ * was wrong — reorder lives at op 275 ({@link Opcode.FOLDERS_REORDER}).
407
+ */
408
+ readonly FOLDERS_DELETE: 276;
409
+ /**
410
+ * @deprecated Pre-decompile alias. Op 276 is **FOLDERS_DELETE**, not
411
+ * "reorder". For reordering use {@link Opcode.FOLDERS_REORDER} (op 275).
412
+ */
413
+ readonly FOLDERS_ORDER: 276;
414
+ readonly SEND_VOTE: 304;
415
+ /** Alias of {@link Opcode.SEND_VOTE}. */
416
+ readonly POLL_VOTE: 304;
417
+ readonly VOTERS_LIST_BY_ANSWER: 305;
418
+ readonly GET_POLL_UPDATES: 306;
419
+ /** Alias of {@link Opcode.GET_POLL_UPDATES}. */
420
+ readonly POLL_GET: 306;
421
+ /** Web WS: request a fresh QR session (returns `{qrLink, trackId, ttl}`). */
422
+ readonly QR_START: 288;
423
+ /** Web WS: long-poll for `loginAvailable:true` flip. */
424
+ readonly QR_POLL: 289;
425
+ /** Web WS: claim LOGIN token after `loginAvailable:true`. */
426
+ readonly QR_LOGIN: 291;
427
+ };
428
+ export type OpcodeValue = (typeof Opcode)[keyof typeof Opcode];
429
+ export declare const Cmd: {
430
+ readonly REQUEST: 0;
431
+ readonly RESPONSE: 1;
432
+ readonly ERROR: 3;
433
+ };
434
+ export declare const PROTOCOL_VERSION = 11;
435
+ //# sourceMappingURL=opcodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opcodes.d.ts","sourceRoot":"","sources":["../src/opcodes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG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