@zervonex/baileys 0.0.0-stage → 3.0.2

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.
Files changed (124) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3206 -3
  3. package/WAProto/WAProtoCompile.js +291 -0
  4. package/WAProto/fetcher.js +69 -0
  5. package/WAProto/index.js +88 -0
  6. package/WAProto/parser.js +313 -0
  7. package/engine-requirements.js +10 -0
  8. package/lib/Builders/AIRich.js +643 -0
  9. package/lib/Builders/base.js +130 -0
  10. package/lib/Builders/builders.js +449 -0
  11. package/lib/Builders/index.js +3 -0
  12. package/lib/Defaults/index.js +225 -0
  13. package/lib/Defaults/phonenumber-mcc.json +223 -0
  14. package/lib/Signal/index.js +2 -0
  15. package/lib/Signal/libsignal.js +523 -0
  16. package/lib/Signal/lid-mapping.js +283 -0
  17. package/lib/Socket/Client/index.js +2 -0
  18. package/lib/Socket/Client/types.js +10 -0
  19. package/lib/Socket/Client/websocket.js +84 -0
  20. package/lib/Socket/business.js +152 -0
  21. package/lib/Socket/chats.js +855 -0
  22. package/lib/Socket/communities.js +147 -0
  23. package/lib/Socket/groups.js +294 -0
  24. package/lib/Socket/index.js +15 -0
  25. package/lib/Socket/messages-recv.js +981 -0
  26. package/lib/Socket/messages-send.js +708 -0
  27. package/lib/Socket/mex.js +34 -0
  28. package/lib/Socket/newsletter.js +781 -0
  29. package/lib/Socket/registration.js +155 -0
  30. package/lib/Socket/socket.js +797 -0
  31. package/lib/Socket/spam-report.js +65 -0
  32. package/lib/Socket/username.js +82 -0
  33. package/lib/Socket/zervonex-handler.js +55 -0
  34. package/lib/Store/index.js +6 -0
  35. package/lib/Store/make-cache-manager-store.js +81 -0
  36. package/lib/Store/make-in-memory-store.js +425 -0
  37. package/lib/Store/make-ordered-dictionary.js +82 -0
  38. package/lib/Store/object-repository.js +31 -0
  39. package/lib/Store/reporting-info-store.js +38 -0
  40. package/lib/Types/Auth.js +2 -0
  41. package/lib/Types/Bussines.js +2 -0
  42. package/lib/Types/Call.js +2 -0
  43. package/lib/Types/Chat.js +8 -0
  44. package/lib/Types/Contact.js +2 -0
  45. package/lib/Types/Events.js +2 -0
  46. package/lib/Types/GroupMetadata.js +2 -0
  47. package/lib/Types/Label.js +25 -0
  48. package/lib/Types/LabelAssociation.js +7 -0
  49. package/lib/Types/Message.js +15 -0
  50. package/lib/Types/Newsletter.js +100 -0
  51. package/lib/Types/Product.js +2 -0
  52. package/lib/Types/Signal.js +2 -0
  53. package/lib/Types/Socket.js +14 -0
  54. package/lib/Types/State.js +26 -0
  55. package/lib/Types/USync.js +2 -0
  56. package/lib/Types/index.js +30 -0
  57. package/lib/Utils/auth-utils.js +142 -0
  58. package/lib/Utils/baileys-event-stream.js +33 -0
  59. package/lib/Utils/bot-capabilities.js +40 -0
  60. package/lib/Utils/bot-planning-replay.js +44 -0
  61. package/lib/Utils/browser-utils.js +26 -0
  62. package/lib/Utils/business.js +75 -0
  63. package/lib/Utils/chat-utils.js +317 -0
  64. package/lib/Utils/companion-reg-client-utils.js +20 -0
  65. package/lib/Utils/consumer-application.js +38 -0
  66. package/lib/Utils/crypto.js +52 -0
  67. package/lib/Utils/decode-wa-message.js +197 -0
  68. package/lib/Utils/event-buffer.js +273 -0
  69. package/lib/Utils/extras.js +186 -0
  70. package/lib/Utils/generics.js +195 -0
  71. package/lib/Utils/history.js +51 -0
  72. package/lib/Utils/identity-change-handler.js +19 -0
  73. package/lib/Utils/index.js +38 -0
  74. package/lib/Utils/link-preview.js +51 -0
  75. package/lib/Utils/logger.js +2 -0
  76. package/lib/Utils/lt-hash.js +3 -0
  77. package/lib/Utils/make-mutex.js +16 -0
  78. package/lib/Utils/message-composer.js +59 -0
  79. package/lib/Utils/message-retry-manager.js +48 -0
  80. package/lib/Utils/messages-media.js +520 -0
  81. package/lib/Utils/messages.js +752 -0
  82. package/lib/Utils/meta-ai-msmsg.js +122 -0
  83. package/lib/Utils/meta-compositing.js +75 -0
  84. package/lib/Utils/modern-messages.js +235 -0
  85. package/lib/Utils/native-flow.js +55 -0
  86. package/lib/Utils/noise-handler.js +161 -0
  87. package/lib/Utils/pre-key-manager.js +76 -0
  88. package/lib/Utils/process-message.js +399 -0
  89. package/lib/Utils/reporting-utils.js +171 -0
  90. package/lib/Utils/signal.js +167 -0
  91. package/lib/Utils/spam-report-utils.js +135 -0
  92. package/lib/Utils/sync-action-utils.js +33 -0
  93. package/lib/Utils/tc-token-utils.js +154 -0
  94. package/lib/Utils/use-multi-file-auth-state.js +307 -0
  95. package/lib/Utils/validate-connection.js +181 -0
  96. package/lib/WABinary/constants.js +1321 -0
  97. package/lib/WABinary/decode.js +152 -0
  98. package/lib/WABinary/encode.js +140 -0
  99. package/lib/WABinary/generic-utils.js +179 -0
  100. package/lib/WABinary/index.js +6 -0
  101. package/lib/WABinary/jid-utils.js +235 -0
  102. package/lib/WABinary/types.js +4 -0
  103. package/lib/WAM/BinaryInfo.js +10 -0
  104. package/lib/WAM/constants.js +22853 -0
  105. package/lib/WAM/encode.js +150 -0
  106. package/lib/WAM/index.js +3 -0
  107. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +30 -0
  108. package/lib/WAUSync/Protocols/USyncBusinessProtocol.js +48 -0
  109. package/lib/WAUSync/Protocols/USyncContactProtocol.js +23 -0
  110. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +28 -0
  111. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +15 -0
  112. package/lib/WAUSync/Protocols/USyncFeatureProtocol.js +24 -0
  113. package/lib/WAUSync/Protocols/USyncLIDProtocol.js +9 -0
  114. package/lib/WAUSync/Protocols/USyncPictureProtocol.js +21 -0
  115. package/lib/WAUSync/Protocols/USyncSidelistProtocol.js +19 -0
  116. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +19 -0
  117. package/lib/WAUSync/Protocols/USyncTextStatusProtocol.js +22 -0
  118. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +16 -0
  119. package/lib/WAUSync/Protocols/index.js +12 -0
  120. package/lib/WAUSync/USyncQuery.js +100 -0
  121. package/lib/WAUSync/USyncUser.js +20 -0
  122. package/lib/WAUSync/index.js +3 -0
  123. package/lib/index.js +67 -0
  124. package/package.json +220 -5
@@ -0,0 +1,1321 @@
1
+ export const TAGS = {
2
+ LIST_EMPTY: 0,
3
+ DICTIONARY_0: 236,
4
+ DICTIONARY_1: 237,
5
+ DICTIONARY_2: 238,
6
+ DICTIONARY_3: 239,
7
+ INTEROP_JID: 245,
8
+ FB_JID: 246,
9
+ AD_JID: 247,
10
+ LIST_8: 248,
11
+ LIST_16: 249,
12
+ JID_PAIR: 250,
13
+ HEX_8: 251,
14
+ BINARY_8: 252,
15
+ BINARY_20: 253,
16
+ BINARY_32: 254,
17
+ NIBBLE_8: 255,
18
+ PACKED_MAX: 127
19
+ };
20
+ export const VIOLATION_TYPES = {
21
+ '15': 'Spam/Bulk Messaging',
22
+ '16': 'Automation/Bot Usage',
23
+ '18': 'Terms of Service Violation',
24
+ '20': 'Illegal Content'
25
+ };
26
+
27
+ export const PROTOCOL_ADAPTERS = {
28
+ 'redis:': '@keyv/redis',
29
+ 'rediss:': '@keyv/redis',
30
+ 'mongodb:': '@keyv/mongo',
31
+ 'mongodb+srv:': '@keyv/mongo',
32
+ 'postgresql:': '@keyv/postgres',
33
+ 'postgres:': '@keyv/postgres',
34
+ 'mysql:': '@keyv/mysql',
35
+ 'sqlite:': '@keyv/sqlite',
36
+ 'etcd:': '@keyv/etcd',
37
+ 'memcache:': '@keyv/memcache',
38
+ 'memcached:': '@keyv/memcache',
39
+ }
40
+ export const DOUBLE_BYTE_TOKENS = [
41
+ [
42
+ 'read-self',
43
+ 'active',
44
+ 'fbns',
45
+ 'protocol',
46
+ 'reaction',
47
+ 'screen_width',
48
+ 'heartbeat',
49
+ 'deviceid',
50
+ '2:47DEQpj8',
51
+ 'uploadfieldstat',
52
+ 'voip_settings',
53
+ 'retry',
54
+ 'priority',
55
+ 'longitude',
56
+ 'conflict',
57
+ 'false',
58
+ 'ig_professional',
59
+ 'replaced',
60
+ 'preaccept',
61
+ 'cover_photo',
62
+ 'uncompressed',
63
+ 'encopt',
64
+ 'ppic',
65
+ '04',
66
+ 'passive',
67
+ 'status-revoke-drop',
68
+ 'keygen',
69
+ '540',
70
+ 'offer',
71
+ 'rate',
72
+ 'opus',
73
+ 'latitude',
74
+ 'w:gp2',
75
+ 'ver',
76
+ '4',
77
+ 'business_profile',
78
+ 'medium',
79
+ 'sender',
80
+ 'prev_v_id',
81
+ 'email',
82
+ 'website',
83
+ 'invited',
84
+ 'sign_credential',
85
+ '05',
86
+ 'transport',
87
+ 'skey',
88
+ 'reason',
89
+ 'peer_abtest_bucket',
90
+ 'America/Sao_Paulo',
91
+ 'appid',
92
+ 'refresh',
93
+ '100',
94
+ '06',
95
+ '404',
96
+ '101',
97
+ '104',
98
+ '107',
99
+ '102',
100
+ '109',
101
+ '103',
102
+ 'member_add_mode',
103
+ '105',
104
+ 'transaction-id',
105
+ '110',
106
+ '106',
107
+ 'outgoing',
108
+ '108',
109
+ '111',
110
+ 'tokens',
111
+ 'followers',
112
+ 'ig_handle',
113
+ 'self_pid',
114
+ 'tue',
115
+ 'dec',
116
+ 'thu',
117
+ 'joinable',
118
+ 'peer_pid',
119
+ 'mon',
120
+ 'features',
121
+ 'wed',
122
+ 'peer_device_presence',
123
+ 'pn',
124
+ 'delete',
125
+ '07',
126
+ 'fri',
127
+ 'audio_duration',
128
+ 'admin',
129
+ 'connected',
130
+ 'delta',
131
+ 'rcat',
132
+ 'disable',
133
+ 'collection',
134
+ '08',
135
+ '480',
136
+ 'sat',
137
+ 'phash',
138
+ 'all',
139
+ 'invite',
140
+ 'accept',
141
+ 'critical_unblock_low',
142
+ 'group_update',
143
+ 'signed_credential',
144
+ 'blinded_credential',
145
+ 'eph_setting',
146
+ 'net',
147
+ '09',
148
+ 'background_location',
149
+ 'refresh_id',
150
+ 'Asia/Kolkata',
151
+ 'privacy_mode_ts',
152
+ 'account_sync',
153
+ 'voip_payload_type',
154
+ 'service_areas',
155
+ 'acs_public_key',
156
+ 'v_id',
157
+ '0a',
158
+ 'fallback_class',
159
+ 'relay',
160
+ 'actual_actors',
161
+ 'metadata',
162
+ 'w:biz',
163
+ '5',
164
+ 'connected-limit',
165
+ 'notice',
166
+ '0b',
167
+ 'host_storage',
168
+ 'fb_page',
169
+ 'subject',
170
+ 'privatestats',
171
+ 'invis',
172
+ 'groupadd',
173
+ '010',
174
+ 'note.m4r',
175
+ 'uuid',
176
+ '0c',
177
+ '8000',
178
+ 'sun',
179
+ '372',
180
+ '1020',
181
+ 'stage',
182
+ '1200',
183
+ '720',
184
+ 'canonical',
185
+ 'fb',
186
+ '011',
187
+ 'video_duration',
188
+ '0d',
189
+ '1140',
190
+ 'superadmin',
191
+ '012',
192
+ 'Opening.m4r',
193
+ 'keystore_attestation',
194
+ 'dleq_proof',
195
+ '013',
196
+ 'timestamp',
197
+ 'ab_key',
198
+ 'w:sync:app:state',
199
+ '0e',
200
+ 'vertical',
201
+ '600',
202
+ 'p_v_id',
203
+ '6',
204
+ 'likes',
205
+ '014',
206
+ '500',
207
+ '1260',
208
+ 'creator',
209
+ '0f',
210
+ 'rte',
211
+ 'destination',
212
+ 'group',
213
+ 'group_info',
214
+ 'syncd_anti_tampering_fatal_exception_enabled',
215
+ '015',
216
+ 'dl_bw',
217
+ 'Asia/Jakarta',
218
+ 'vp8/h.264',
219
+ 'online',
220
+ '1320',
221
+ 'fb:multiway',
222
+ '10',
223
+ 'timeout',
224
+ '016',
225
+ 'nse_retry',
226
+ 'urn:xmpp:whatsapp:dirty',
227
+ '017',
228
+ 'a_v_id',
229
+ 'web_shops_chat_header_button_enabled',
230
+ 'nse_call',
231
+ 'inactive-upgrade',
232
+ 'none',
233
+ 'web',
234
+ 'groups',
235
+ '2250',
236
+ 'mms_hot_content_timespan_in_seconds',
237
+ 'contact_blacklist',
238
+ 'nse_read',
239
+ 'suspended_group_deletion_notification',
240
+ 'binary_version',
241
+ '018',
242
+ 'https://www.whatsapp.com/otp/copy/',
243
+ 'reg_push',
244
+ 'shops_hide_catalog_attachment_entrypoint',
245
+ 'server_sync',
246
+ '.',
247
+ 'ephemeral_messages_allowed_values',
248
+ '019',
249
+ 'mms_vcache_aggregation_enabled',
250
+ 'iphone',
251
+ 'America/Argentina/Buenos_Aires',
252
+ '01a',
253
+ 'mms_vcard_autodownload_size_kb',
254
+ 'nse_ver',
255
+ 'shops_header_dropdown_menu_item',
256
+ 'dhash',
257
+ 'catalog_status',
258
+ 'communities_mvp_new_iqs_serverprop',
259
+ 'blocklist',
260
+ 'default',
261
+ '11',
262
+ 'ephemeral_messages_enabled',
263
+ '01b',
264
+ 'original_dimensions',
265
+ '8',
266
+ 'mms4_media_retry_notification_encryption_enabled',
267
+ 'mms4_server_error_receipt_encryption_enabled',
268
+ 'original_image_url',
269
+ 'sync',
270
+ 'multiway',
271
+ '420',
272
+ 'companion_enc_static',
273
+ 'shops_profile_drawer_entrypoint',
274
+ '01c',
275
+ 'vcard_as_document_size_kb',
276
+ 'status_video_max_duration',
277
+ 'request_image_url',
278
+ '01d',
279
+ 'regular_high',
280
+ 's_t',
281
+ 'abt',
282
+ 'share_ext_min_preliminary_image_quality',
283
+ '01e',
284
+ '32',
285
+ 'syncd_key_rotation_enabled',
286
+ 'data_namespace',
287
+ 'md_downgrade_read_receipts2',
288
+ 'patch',
289
+ 'polltype',
290
+ 'ephemeral_messages_setting',
291
+ 'userrate',
292
+ '15',
293
+ 'partial_pjpeg_bw_threshold',
294
+ 'played-self',
295
+ 'catalog_exists',
296
+ '01f',
297
+ 'mute_v2'
298
+ ],
299
+ [
300
+ 'reject',
301
+ 'dirty',
302
+ 'announcement',
303
+ '020',
304
+ '13',
305
+ '9',
306
+ 'status_video_max_bitrate',
307
+ 'fb:thrift_iq',
308
+ 'offline_batch',
309
+ '022',
310
+ 'full',
311
+ 'ctwa_first_business_reply_logging',
312
+ 'h.264',
313
+ 'smax_id',
314
+ 'group_description_length',
315
+ 'https://www.whatsapp.com/otp/code',
316
+ 'status_image_max_edge',
317
+ 'smb_upsell_business_profile_enabled',
318
+ '021',
319
+ 'web_upgrade_to_md_modal',
320
+ '14',
321
+ '023',
322
+ 's_o',
323
+ 'smaller_video_thumbs_status_enabled',
324
+ 'media_max_autodownload',
325
+ '960',
326
+ 'blocking_status',
327
+ 'peer_msg',
328
+ 'joinable_group_call_client_version',
329
+ 'group_call_video_maximization_enabled',
330
+ 'return_snapshot',
331
+ 'high',
332
+ 'America/Mexico_City',
333
+ 'entry_point_block_logging_enabled',
334
+ 'pop',
335
+ '024',
336
+ '1050',
337
+ '16',
338
+ '1380',
339
+ 'one_tap_calling_in_group_chat_size',
340
+ 'regular_low',
341
+ 'inline_joinable_education_enabled',
342
+ 'hq_image_max_edge',
343
+ 'locked',
344
+ 'America/Bogota',
345
+ 'smb_biztools_deeplink_enabled',
346
+ 'status_image_quality',
347
+ '1088',
348
+ '025',
349
+ 'payments_upi_intent_transaction_limit',
350
+ 'voip',
351
+ 'w:g2',
352
+ '027',
353
+ 'md_pin_chat_enabled',
354
+ '026',
355
+ 'multi_scan_pjpeg_download_enabled',
356
+ 'shops_product_grid',
357
+ 'transaction_id',
358
+ 'ctwa_context_enabled',
359
+ '20',
360
+ 'fna',
361
+ 'hq_image_quality',
362
+ 'alt_jpeg_doc_detection_quality',
363
+ 'group_call_max_participants',
364
+ 'pkey',
365
+ 'America/Belem',
366
+ 'image_max_kbytes',
367
+ 'web_cart_v1_1_order_message_changes_enabled',
368
+ 'ctwa_context_enterprise_enabled',
369
+ 'urn:xmpp:whatsapp:account',
370
+ '840',
371
+ 'Asia/Kuala_Lumpur',
372
+ 'max_participants',
373
+ 'video_remux_after_repair_enabled',
374
+ 'stella_addressbook_restriction_type',
375
+ '660',
376
+ '900',
377
+ '780',
378
+ 'context_menu_ios13_enabled',
379
+ 'mute-state',
380
+ 'ref',
381
+ 'payments_request_messages',
382
+ '029',
383
+ 'frskmsg',
384
+ 'vcard_max_size_kb',
385
+ 'sample_buffer_gif_player_enabled',
386
+ 'match_last_seen',
387
+ '510',
388
+ '4983',
389
+ 'video_max_bitrate',
390
+ '028',
391
+ 'w:comms:chat',
392
+ '17',
393
+ 'frequently_forwarded_max',
394
+ 'groups_privacy_blacklist',
395
+ 'Asia/Karachi',
396
+ '02a',
397
+ 'web_download_document_thumb_mms_enabled',
398
+ '02b',
399
+ 'hist_sync',
400
+ 'biz_block_reasons_version',
401
+ '1024',
402
+ '18',
403
+ 'web_is_direct_connection_for_plm_transparent',
404
+ 'view_once_write',
405
+ 'file_max_size',
406
+ 'paid_convo_id',
407
+ 'online_privacy_setting',
408
+ 'video_max_edge',
409
+ 'view_once_read',
410
+ 'enhanced_storage_management',
411
+ 'multi_scan_pjpeg_encoding_enabled',
412
+ 'ctwa_context_forward_enabled',
413
+ 'video_transcode_downgrade_enable',
414
+ 'template_doc_mime_types',
415
+ 'hq_image_bw_threshold',
416
+ '30',
417
+ 'body',
418
+ 'u_aud_limit_sil_restarts_ctrl',
419
+ 'other',
420
+ 'participating',
421
+ 'w:biz:directory',
422
+ '1110',
423
+ 'vp8',
424
+ '4018',
425
+ 'meta',
426
+ 'doc_detection_image_max_edge',
427
+ 'image_quality',
428
+ '1170',
429
+ '02c',
430
+ 'smb_upsell_chat_banner_enabled',
431
+ 'key_expiry_time_second',
432
+ 'pid',
433
+ 'stella_interop_enabled',
434
+ '19',
435
+ 'linked_device_max_count',
436
+ 'md_device_sync_enabled',
437
+ '02d',
438
+ '02e',
439
+ '360',
440
+ 'enhanced_block_enabled',
441
+ 'ephemeral_icon_in_forwarding',
442
+ 'paid_convo_status',
443
+ 'gif_provider',
444
+ 'project_name',
445
+ 'server-error',
446
+ 'canonical_url_validation_enabled',
447
+ 'wallpapers_v2',
448
+ 'syncd_clear_chat_delete_chat_enabled',
449
+ 'medianotify',
450
+ '02f',
451
+ 'shops_required_tos_version',
452
+ 'vote',
453
+ 'reset_skey_on_id_change',
454
+ '030',
455
+ 'image_max_edge',
456
+ 'multicast_limit_global',
457
+ 'ul_bw',
458
+ '21',
459
+ '25',
460
+ '5000',
461
+ 'poll',
462
+ '570',
463
+ '22',
464
+ '031',
465
+ '1280',
466
+ 'WhatsApp',
467
+ '032',
468
+ 'bloks_shops_enabled',
469
+ '50',
470
+ 'upload_host_switching_enabled',
471
+ 'web_ctwa_context_compose_enabled',
472
+ 'ptt_forwarded_features_enabled',
473
+ 'unblocked',
474
+ 'partial_pjpeg_enabled',
475
+ 'fbid:devices',
476
+ 'height',
477
+ 'ephemeral_group_query_ts',
478
+ 'group_join_permissions',
479
+ 'order',
480
+ '033',
481
+ 'alt_jpeg_status_quality',
482
+ 'migrate',
483
+ 'popular-bank',
484
+ 'win_uwp_deprecation_killswitch_enabled',
485
+ 'web_download_status_thumb_mms_enabled',
486
+ 'blocking',
487
+ 'url_text',
488
+ '035',
489
+ 'web_forwarding_limit_to_groups',
490
+ '1600',
491
+ 'val',
492
+ '1000',
493
+ 'syncd_msg_date_enabled',
494
+ 'bank-ref-id',
495
+ 'max_subject',
496
+ 'payments_web_enabled',
497
+ 'web_upload_document_thumb_mms_enabled',
498
+ 'size',
499
+ 'request',
500
+ 'ephemeral',
501
+ '24',
502
+ 'receipt_agg',
503
+ 'ptt_remember_play_position',
504
+ 'sampling_weight',
505
+ 'enc_rekey',
506
+ 'mute_always',
507
+ '037',
508
+ '034',
509
+ '23',
510
+ '036',
511
+ 'action',
512
+ 'click_to_chat_qr_enabled',
513
+ 'width',
514
+ 'disabled',
515
+ '038',
516
+ 'md_blocklist_v2',
517
+ 'played_self_enabled',
518
+ 'web_buttons_message_enabled',
519
+ 'flow_id',
520
+ 'clear',
521
+ '450',
522
+ 'fbid:thread',
523
+ 'bloks_session_state',
524
+ 'America/Lima',
525
+ 'attachment_picker_refresh',
526
+ 'download_host_switching_enabled',
527
+ '1792',
528
+ 'u_aud_limit_sil_restarts_test2',
529
+ 'custom_urls',
530
+ 'device_fanout',
531
+ 'optimistic_upload',
532
+ '2000',
533
+ 'key_cipher_suite',
534
+ 'web_smb_upsell_in_biz_profile_enabled',
535
+ 'e',
536
+ '039',
537
+ 'siri_post_status_shortcut',
538
+ 'pair-device',
539
+ 'lg',
540
+ 'lc',
541
+ 'stream_attribution_url',
542
+ 'model',
543
+ 'mspjpeg_phash_gen',
544
+ 'catalog_send_all',
545
+ 'new_multi_vcards_ui',
546
+ 'share_biz_vcard_enabled',
547
+ '-',
548
+ 'clean',
549
+ '200',
550
+ 'md_blocklist_v2_server',
551
+ '03b',
552
+ '03a',
553
+ 'web_md_migration_experience',
554
+ 'ptt_conversation_waveform',
555
+ 'u_aud_limit_sil_restarts_test1'
556
+ ],
557
+ [
558
+ '64',
559
+ 'ptt_playback_speed_enabled',
560
+ 'web_product_list_message_enabled',
561
+ 'paid_convo_ts',
562
+ '27',
563
+ 'manufacturer',
564
+ 'psp-routing',
565
+ 'grp_uii_cleanup',
566
+ 'ptt_draft_enabled',
567
+ '03c',
568
+ 'business_initiated',
569
+ 'web_catalog_products_onoff',
570
+ 'web_upload_link_thumb_mms_enabled',
571
+ '03e',
572
+ 'mediaretry',
573
+ '35',
574
+ 'hfm_string_changes',
575
+ '28',
576
+ 'America/Fortaleza',
577
+ 'max_keys',
578
+ 'md_mhfs_days',
579
+ 'streaming_upload_chunk_size',
580
+ '5541',
581
+ '040',
582
+ '03d',
583
+ '2675',
584
+ '03f',
585
+ '...',
586
+ '512',
587
+ 'mute',
588
+ '48',
589
+ '041',
590
+ 'alt_jpeg_quality',
591
+ '60',
592
+ '042',
593
+ 'md_smb_quick_reply',
594
+ '5183',
595
+ 'c',
596
+ '1343',
597
+ '40',
598
+ '1230',
599
+ '043',
600
+ '044',
601
+ 'mms_cat_v1_forward_hot_override_enabled',
602
+ 'user_notice',
603
+ 'ptt_waveform_send',
604
+ '047',
605
+ 'Asia/Calcutta',
606
+ '250',
607
+ 'md_privacy_v2',
608
+ '31',
609
+ '29',
610
+ '128',
611
+ 'md_messaging_enabled',
612
+ '046',
613
+ 'crypto',
614
+ '690',
615
+ '045',
616
+ 'enc_iv',
617
+ '75',
618
+ 'failure',
619
+ 'ptt_oot_playback',
620
+ 'AIzaSyDR5yfaG7OG8sMTUj8kfQEb8T9pN8BM6Lk',
621
+ 'w',
622
+ '048',
623
+ '2201',
624
+ 'web_large_files_ui',
625
+ 'Asia/Makassar',
626
+ '812',
627
+ 'status_collapse_muted',
628
+ '1334',
629
+ '257',
630
+ '2HP4dm',
631
+ '049',
632
+ 'patches',
633
+ '1290',
634
+ '43cY6T',
635
+ 'America/Caracas',
636
+ 'web_sticker_maker',
637
+ 'campaign',
638
+ 'ptt_pausable_enabled',
639
+ '33',
640
+ '42',
641
+ 'attestation',
642
+ 'biz',
643
+ '04b',
644
+ 'query_linked',
645
+ 's',
646
+ '125',
647
+ '04a',
648
+ '810',
649
+ 'availability',
650
+ '1411',
651
+ 'responsiveness_v2_m1',
652
+ 'catalog_not_created',
653
+ '34',
654
+ 'America/Santiago',
655
+ '1465',
656
+ 'enc_p',
657
+ '04d',
658
+ 'status_info',
659
+ '04f',
660
+ 'key_version',
661
+ '..',
662
+ '04c',
663
+ '04e',
664
+ 'md_group_notification',
665
+ '1598',
666
+ '1215',
667
+ 'web_cart_enabled',
668
+ '37',
669
+ '630',
670
+ '1920',
671
+ '2394',
672
+ '-1',
673
+ 'vcard',
674
+ '38',
675
+ 'elapsed',
676
+ '36',
677
+ '828',
678
+ 'peer',
679
+ 'pricing_category',
680
+ '1245',
681
+ 'invalid',
682
+ 'stella_ios_enabled',
683
+ '2687',
684
+ '45',
685
+ '1528',
686
+ '39',
687
+ 'u_is_redial_audio_1104_ctrl',
688
+ '1025',
689
+ '1455',
690
+ '58',
691
+ '2524',
692
+ '2603',
693
+ '054',
694
+ 'bsp_system_message_enabled',
695
+ 'web_pip_redesign',
696
+ '051',
697
+ 'verify_apps',
698
+ '1974',
699
+ '1272',
700
+ '1322',
701
+ '1755',
702
+ '052',
703
+ '70',
704
+ '050',
705
+ '1063',
706
+ '1135',
707
+ '1361',
708
+ '80',
709
+ '1096',
710
+ '1828',
711
+ '1851',
712
+ '1251',
713
+ '1921',
714
+ 'key_config_id',
715
+ '1254',
716
+ '1566',
717
+ '1252',
718
+ '2525',
719
+ 'critical_block',
720
+ '1669',
721
+ 'max_available',
722
+ 'w:auth:backup:token',
723
+ 'product',
724
+ '2530',
725
+ '870',
726
+ '1022',
727
+ 'participant_uuid',
728
+ 'web_cart_on_off',
729
+ '1255',
730
+ '1432',
731
+ '1867',
732
+ '41',
733
+ '1415',
734
+ '1440',
735
+ '240',
736
+ '1204',
737
+ '1608',
738
+ '1690',
739
+ '1846',
740
+ '1483',
741
+ '1687',
742
+ '1749',
743
+ '69',
744
+ 'url_number',
745
+ '053',
746
+ '1325',
747
+ '1040',
748
+ '365',
749
+ '59',
750
+ 'Asia/Riyadh',
751
+ '1177',
752
+ 'test_recommended',
753
+ '057',
754
+ '1612',
755
+ '43',
756
+ '1061',
757
+ '1518',
758
+ '1635',
759
+ '055',
760
+ '1034',
761
+ '1375',
762
+ '750',
763
+ '1430',
764
+ 'event_code',
765
+ '1682',
766
+ '503',
767
+ '55',
768
+ '865',
769
+ '78',
770
+ '1309',
771
+ '1365',
772
+ '44',
773
+ 'America/Guayaquil',
774
+ '535',
775
+ 'LIMITED',
776
+ '1377',
777
+ '1613',
778
+ '1420',
779
+ '1599',
780
+ '1822',
781
+ '05a',
782
+ '1681',
783
+ 'password',
784
+ '1111',
785
+ '1214',
786
+ '1376',
787
+ '1478',
788
+ '47',
789
+ '1082',
790
+ '4282',
791
+ 'Europe/Istanbul',
792
+ '1307',
793
+ '46',
794
+ '058',
795
+ '1124',
796
+ '256',
797
+ 'rate-overlimit',
798
+ 'retail',
799
+ 'u_a_socket_err_fix_succ_test',
800
+ '1292',
801
+ '1370',
802
+ '1388',
803
+ '520',
804
+ '861',
805
+ 'psa',
806
+ 'regular',
807
+ '1181',
808
+ '1766',
809
+ '05b',
810
+ '1183',
811
+ '1213',
812
+ '1304',
813
+ '1537'
814
+ ],
815
+ [
816
+ '1724',
817
+ 'profile_picture',
818
+ '1071',
819
+ '1314',
820
+ '1605',
821
+ '407',
822
+ '990',
823
+ '1710',
824
+ '746',
825
+ 'pricing_model',
826
+ '056',
827
+ '059',
828
+ '061',
829
+ '1119',
830
+ '6027',
831
+ '65',
832
+ '877',
833
+ '1607',
834
+ '05d',
835
+ '917',
836
+ 'seen',
837
+ '1516',
838
+ '49',
839
+ '470',
840
+ '973',
841
+ '1037',
842
+ '1350',
843
+ '1394',
844
+ '1480',
845
+ '1796',
846
+ 'keys',
847
+ '794',
848
+ '1536',
849
+ '1594',
850
+ '2378',
851
+ '1333',
852
+ '1524',
853
+ '1825',
854
+ '116',
855
+ '309',
856
+ '52',
857
+ '808',
858
+ '827',
859
+ '909',
860
+ '495',
861
+ '1660',
862
+ '361',
863
+ '957',
864
+ 'google',
865
+ '1357',
866
+ '1565',
867
+ '1967',
868
+ '996',
869
+ '1775',
870
+ '586',
871
+ '736',
872
+ '1052',
873
+ '1670',
874
+ 'bank',
875
+ '177',
876
+ '1416',
877
+ '2194',
878
+ '2222',
879
+ '1454',
880
+ '1839',
881
+ '1275',
882
+ '53',
883
+ '997',
884
+ '1629',
885
+ '6028',
886
+ 'smba',
887
+ '1378',
888
+ '1410',
889
+ '05c',
890
+ '1849',
891
+ '727',
892
+ 'create',
893
+ '1559',
894
+ '536',
895
+ '1106',
896
+ '1310',
897
+ '1944',
898
+ '670',
899
+ '1297',
900
+ '1316',
901
+ '1762',
902
+ 'en',
903
+ '1148',
904
+ '1295',
905
+ '1551',
906
+ '1853',
907
+ '1890',
908
+ '1208',
909
+ '1784',
910
+ '7200',
911
+ '05f',
912
+ '178',
913
+ '1283',
914
+ '1332',
915
+ '381',
916
+ '643',
917
+ '1056',
918
+ '1238',
919
+ '2024',
920
+ '2387',
921
+ '179',
922
+ '981',
923
+ '1547',
924
+ '1705',
925
+ '05e',
926
+ '290',
927
+ '903',
928
+ '1069',
929
+ '1285',
930
+ '2436',
931
+ '062',
932
+ '251',
933
+ '560',
934
+ '582',
935
+ '719',
936
+ '56',
937
+ '1700',
938
+ '2321',
939
+ '325',
940
+ '448',
941
+ '613',
942
+ '777',
943
+ '791',
944
+ '51',
945
+ '488',
946
+ '902',
947
+ 'Asia/Almaty',
948
+ 'is_hidden',
949
+ '1398',
950
+ '1527',
951
+ '1893',
952
+ '1999',
953
+ '2367',
954
+ '2642',
955
+ '237',
956
+ 'busy',
957
+ '065',
958
+ '067',
959
+ '233',
960
+ '590',
961
+ '993',
962
+ '1511',
963
+ '54',
964
+ '723',
965
+ '860',
966
+ '363',
967
+ '487',
968
+ '522',
969
+ '605',
970
+ '995',
971
+ '1321',
972
+ '1691',
973
+ '1865',
974
+ '2447',
975
+ '2462',
976
+ 'NON_TRANSACTIONAL',
977
+ '433',
978
+ '871',
979
+ '432',
980
+ '1004',
981
+ '1207',
982
+ '2032',
983
+ '2050',
984
+ '2379',
985
+ '2446',
986
+ '279',
987
+ '636',
988
+ '703',
989
+ '904',
990
+ '248',
991
+ '370',
992
+ '691',
993
+ '700',
994
+ '1068',
995
+ '1655',
996
+ '2334',
997
+ '060',
998
+ '063',
999
+ '364',
1000
+ '533',
1001
+ '534',
1002
+ '567',
1003
+ '1191',
1004
+ '1210',
1005
+ '1473',
1006
+ '1827',
1007
+ '069',
1008
+ '701',
1009
+ '2531',
1010
+ '514',
1011
+ 'prev_dhash',
1012
+ '064',
1013
+ '496',
1014
+ '790',
1015
+ '1046',
1016
+ '1139',
1017
+ '1505',
1018
+ '1521',
1019
+ '1108',
1020
+ '207',
1021
+ '544',
1022
+ '637',
1023
+ 'final',
1024
+ '1173',
1025
+ '1293',
1026
+ '1694',
1027
+ '1939',
1028
+ '1951',
1029
+ '1993',
1030
+ '2353',
1031
+ '2515',
1032
+ '504',
1033
+ '601',
1034
+ '857',
1035
+ 'modify',
1036
+ 'spam_request',
1037
+ 'p_121_aa_1101_test4',
1038
+ '866',
1039
+ '1427',
1040
+ '1502',
1041
+ '1638',
1042
+ '1744',
1043
+ '2153',
1044
+ '068',
1045
+ '382',
1046
+ '725',
1047
+ '1704',
1048
+ '1864',
1049
+ '1990',
1050
+ '2003',
1051
+ 'Asia/Dubai',
1052
+ '508',
1053
+ '531',
1054
+ '1387',
1055
+ '1474',
1056
+ '1632',
1057
+ '2307',
1058
+ '2386',
1059
+ '819',
1060
+ '2014',
1061
+ '066',
1062
+ '387',
1063
+ '1468',
1064
+ '1706',
1065
+ '2186',
1066
+ '2261',
1067
+ '471',
1068
+ '728',
1069
+ '1147',
1070
+ '1372',
1071
+ '1961'
1072
+ ]
1073
+ ];
1074
+ export const SINGLE_BYTE_TOKENS = [
1075
+ '',
1076
+ 'xmlstreamstart',
1077
+ 'xmlstreamend',
1078
+ 's.whatsapp.net',
1079
+ 'type',
1080
+ 'participant',
1081
+ 'from',
1082
+ 'receipt',
1083
+ 'id',
1084
+ 'notification',
1085
+ 'disappearing_mode',
1086
+ 'status',
1087
+ 'jid',
1088
+ 'broadcast',
1089
+ 'user',
1090
+ 'devices',
1091
+ 'device_hash',
1092
+ 'to',
1093
+ 'offline',
1094
+ 'message',
1095
+ 'result',
1096
+ 'class',
1097
+ 'xmlns',
1098
+ 'duration',
1099
+ 'notify',
1100
+ 'iq',
1101
+ 't',
1102
+ 'ack',
1103
+ 'g.us',
1104
+ 'enc',
1105
+ 'urn:xmpp:whatsapp:push',
1106
+ 'presence',
1107
+ 'config_value',
1108
+ 'picture',
1109
+ 'verified_name',
1110
+ 'config_code',
1111
+ 'key-index-list',
1112
+ 'contact',
1113
+ 'mediatype',
1114
+ 'routing_info',
1115
+ 'edge_routing',
1116
+ 'get',
1117
+ 'read',
1118
+ 'urn:xmpp:ping',
1119
+ 'fallback_hostname',
1120
+ '0',
1121
+ 'chatstate',
1122
+ 'business_hours_config',
1123
+ 'unavailable',
1124
+ 'download_buckets',
1125
+ 'skmsg',
1126
+ 'verified_level',
1127
+ 'composing',
1128
+ 'handshake',
1129
+ 'device-list',
1130
+ 'media',
1131
+ 'text',
1132
+ 'fallback_ip4',
1133
+ 'media_conn',
1134
+ 'device',
1135
+ 'creation',
1136
+ 'location',
1137
+ 'config',
1138
+ 'item',
1139
+ 'fallback_ip6',
1140
+ 'count',
1141
+ 'w:profile:picture',
1142
+ 'image',
1143
+ 'business',
1144
+ '2',
1145
+ 'hostname',
1146
+ 'call-creator',
1147
+ 'display_name',
1148
+ 'relaylatency',
1149
+ 'platform',
1150
+ 'abprops',
1151
+ 'success',
1152
+ 'msg',
1153
+ 'offline_preview',
1154
+ 'prop',
1155
+ 'key-index',
1156
+ 'v',
1157
+ 'day_of_week',
1158
+ 'pkmsg',
1159
+ 'version',
1160
+ '1',
1161
+ 'ping',
1162
+ 'w:p',
1163
+ 'download',
1164
+ 'video',
1165
+ 'set',
1166
+ 'specific_hours',
1167
+ 'props',
1168
+ 'primary',
1169
+ 'unknown',
1170
+ 'hash',
1171
+ 'commerce_experience',
1172
+ 'last',
1173
+ 'subscribe',
1174
+ 'max_buckets',
1175
+ 'call',
1176
+ 'profile',
1177
+ 'member_since_text',
1178
+ 'close_time',
1179
+ 'call-id',
1180
+ 'sticker',
1181
+ 'mode',
1182
+ 'participants',
1183
+ 'value',
1184
+ 'query',
1185
+ 'profile_options',
1186
+ 'open_time',
1187
+ 'code',
1188
+ 'list',
1189
+ 'host',
1190
+ 'ts',
1191
+ 'contacts',
1192
+ 'upload',
1193
+ 'lid',
1194
+ 'preview',
1195
+ 'update',
1196
+ 'usync',
1197
+ 'w:stats',
1198
+ 'delivery',
1199
+ 'auth_ttl',
1200
+ 'context',
1201
+ 'fail',
1202
+ 'cart_enabled',
1203
+ 'appdata',
1204
+ 'category',
1205
+ 'atn',
1206
+ 'direct_connection',
1207
+ 'decrypt-fail',
1208
+ 'relay_id',
1209
+ 'mmg-fallback.whatsapp.net',
1210
+ 'target',
1211
+ 'available',
1212
+ 'name',
1213
+ 'last_id',
1214
+ 'mmg.whatsapp.net',
1215
+ 'categories',
1216
+ '401',
1217
+ 'is_new',
1218
+ 'index',
1219
+ 'tctoken',
1220
+ 'ip4',
1221
+ 'token_id',
1222
+ 'latency',
1223
+ 'recipient',
1224
+ 'edit',
1225
+ 'ip6',
1226
+ 'add',
1227
+ 'thumbnail-document',
1228
+ '26',
1229
+ 'paused',
1230
+ 'true',
1231
+ 'identity',
1232
+ 'stream:error',
1233
+ 'key',
1234
+ 'sidelist',
1235
+ 'background',
1236
+ 'audio',
1237
+ '3',
1238
+ 'thumbnail-image',
1239
+ 'biz-cover-photo',
1240
+ 'cat',
1241
+ 'gcm',
1242
+ 'thumbnail-video',
1243
+ 'error',
1244
+ 'auth',
1245
+ 'deny',
1246
+ 'serial',
1247
+ 'in',
1248
+ 'registration',
1249
+ 'thumbnail-link',
1250
+ 'remove',
1251
+ '00',
1252
+ 'gif',
1253
+ 'thumbnail-gif',
1254
+ 'tag',
1255
+ 'capability',
1256
+ 'multicast',
1257
+ 'item-not-found',
1258
+ 'description',
1259
+ 'business_hours',
1260
+ 'config_expo_key',
1261
+ 'md-app-state',
1262
+ 'expiration',
1263
+ 'fallback',
1264
+ 'ttl',
1265
+ '300',
1266
+ 'md-msg-hist',
1267
+ 'device_orientation',
1268
+ 'out',
1269
+ 'w:m',
1270
+ 'open_24h',
1271
+ 'side_list',
1272
+ 'token',
1273
+ 'inactive',
1274
+ '01',
1275
+ 'document',
1276
+ 'te2',
1277
+ 'played',
1278
+ 'encrypt',
1279
+ 'msgr',
1280
+ 'hide',
1281
+ 'direct_path',
1282
+ '12',
1283
+ 'state',
1284
+ 'not-authorized',
1285
+ 'url',
1286
+ 'terminate',
1287
+ 'signature',
1288
+ 'status-revoke-delay',
1289
+ '02',
1290
+ 'te',
1291
+ 'linked_accounts',
1292
+ 'trusted_contact',
1293
+ 'timezone',
1294
+ 'ptt',
1295
+ 'kyc-id',
1296
+ 'privacy_token',
1297
+ 'readreceipts',
1298
+ 'appointment_only',
1299
+ 'address',
1300
+ 'expected_ts',
1301
+ 'privacy',
1302
+ '7',
1303
+ 'android',
1304
+ 'interactive',
1305
+ 'device-identity',
1306
+ 'enabled',
1307
+ 'attribute_padding',
1308
+ '1080',
1309
+ '03',
1310
+ 'screen_height'
1311
+ ];
1312
+ export const TOKEN_MAP = {};
1313
+ for (const [i, SINGLE_BYTE_TOKEN] of SINGLE_BYTE_TOKENS.entries()) {
1314
+ TOKEN_MAP[SINGLE_BYTE_TOKEN] = { index: i };
1315
+ }
1316
+ for (const [i, DOUBLE_BYTE_TOKEN] of DOUBLE_BYTE_TOKENS.entries()) {
1317
+ for (const [j, element] of DOUBLE_BYTE_TOKEN.entries()) {
1318
+ TOKEN_MAP[element] = { dict: i, index: j };
1319
+ }
1320
+ }
1321
+ //# sourceMappingURL=constants.js.map