@mtkruto/node 0.69.0 → 0.70.1

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 (565) hide show
  1. package/esm/0_deps.d.ts +3 -1
  2. package/esm/0_deps.d.ts.map +1 -1
  3. package/esm/0_deps.js +3 -1
  4. package/esm/3_types.d.ts +35 -35
  5. package/esm/3_types.d.ts.map +1 -1
  6. package/esm/3_types.js +35 -35
  7. package/esm/_dnt.polyfills.d.ts +20 -13
  8. package/esm/_dnt.polyfills.d.ts.map +1 -1
  9. package/esm/_dnt.polyfills.js +120 -11
  10. package/esm/client/0_abortable_loop.d.ts +27 -0
  11. package/esm/client/0_abortable_loop.d.ts.map +1 -0
  12. package/esm/client/0_abortable_loop.js +49 -0
  13. package/esm/client/0_client_abstract.d.ts +1 -0
  14. package/esm/client/0_client_abstract.d.ts.map +1 -1
  15. package/esm/client/0_client_abstract.js +3 -0
  16. package/esm/client/0_filters.d.ts +9 -3
  17. package/esm/client/0_filters.d.ts.map +1 -1
  18. package/esm/client/0_filters.js +4 -1
  19. package/esm/client/0_params.d.ts +1 -1
  20. package/esm/client/0_password.d.ts +2 -2
  21. package/esm/client/0_password.d.ts.map +1 -1
  22. package/esm/client/0_storage_operations.d.ts +53 -71
  23. package/esm/client/0_storage_operations.d.ts.map +1 -1
  24. package/esm/client/0_storage_operations.js +241 -238
  25. package/esm/client/0_update_processor.d.ts +2 -2
  26. package/esm/client/0_update_processor.d.ts.map +1 -1
  27. package/esm/client/0_utilities.d.ts +2 -2
  28. package/esm/client/0_utilities.d.ts.map +1 -1
  29. package/esm/client/1_types.d.ts +2 -2
  30. package/esm/client/1_types.d.ts.map +1 -1
  31. package/esm/client/2_account_manager.js +5 -5
  32. package/esm/client/2_business_connection_manager.d.ts +1 -1
  33. package/esm/client/2_business_connection_manager.d.ts.map +1 -1
  34. package/esm/client/2_business_connection_manager.js +3 -3
  35. package/esm/client/2_client_encrypted.d.ts +1 -1
  36. package/esm/client/2_client_encrypted.d.ts.map +1 -1
  37. package/esm/client/2_client_encrypted.js +26 -23
  38. package/esm/client/2_file_manager.js +2 -2
  39. package/esm/client/2_network_statistics_manager.d.ts +2 -2
  40. package/esm/client/2_network_statistics_manager.d.ts.map +1 -1
  41. package/esm/client/2_network_statistics_manager.js +30 -4
  42. package/esm/client/2_payment_manager.d.ts +1 -1
  43. package/esm/client/2_payment_manager.d.ts.map +1 -1
  44. package/esm/client/2_payment_manager.js +2 -2
  45. package/esm/client/2_reaction_manager.d.ts +1 -1
  46. package/esm/client/2_reaction_manager.d.ts.map +1 -1
  47. package/esm/client/2_reaction_manager.js +2 -2
  48. package/esm/client/2_translations_manager.d.ts +1 -1
  49. package/esm/client/2_translations_manager.d.ts.map +1 -1
  50. package/esm/client/2_translations_manager.js +15 -11
  51. package/esm/client/2_update_manager.d.ts +4 -2
  52. package/esm/client/2_update_manager.d.ts.map +1 -1
  53. package/esm/client/2_update_manager.js +62 -80
  54. package/esm/client/3_message_manager.d.ts +2 -2
  55. package/esm/client/3_message_manager.d.ts.map +1 -1
  56. package/esm/client/3_message_manager.js +5 -5
  57. package/esm/client/3_video_chat_manager.d.ts +1 -1
  58. package/esm/client/3_video_chat_manager.d.ts.map +1 -1
  59. package/esm/client/4_callback_query_manager.d.ts +1 -1
  60. package/esm/client/4_callback_query_manager.d.ts.map +1 -1
  61. package/esm/client/4_callback_query_manager.js +1 -1
  62. package/esm/client/4_chat_list_manager.d.ts +2 -3
  63. package/esm/client/4_chat_list_manager.d.ts.map +1 -1
  64. package/esm/client/4_chat_list_manager.js +10 -265
  65. package/esm/client/4_chat_manager.d.ts +2 -2
  66. package/esm/client/4_chat_manager.d.ts.map +1 -1
  67. package/esm/client/4_chat_manager.js +7 -7
  68. package/esm/client/4_gift_manager.js +3 -3
  69. package/esm/client/4_inline_query_manager.d.ts +1 -1
  70. package/esm/client/4_inline_query_manager.d.ts.map +1 -1
  71. package/esm/client/4_inline_query_manager.js +3 -3
  72. package/esm/client/4_link_preview_manager.d.ts +1 -1
  73. package/esm/client/4_link_preview_manager.d.ts.map +1 -1
  74. package/esm/client/4_link_preview_manager.js +3 -3
  75. package/esm/client/4_poll_manager.d.ts +1 -1
  76. package/esm/client/4_poll_manager.d.ts.map +1 -1
  77. package/esm/client/4_poll_manager.js +1 -1
  78. package/esm/client/4_story_manager.d.ts +1 -1
  79. package/esm/client/4_story_manager.d.ts.map +1 -1
  80. package/esm/client/4_story_manager.js +7 -7
  81. package/esm/client/5_client.d.ts +15 -9
  82. package/esm/client/5_client.d.ts.map +1 -1
  83. package/esm/client/5_client.js +420 -382
  84. package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts +12 -0
  85. package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts.map +1 -0
  86. package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.js +69 -0
  87. package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts +112 -0
  88. package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts.map +1 -0
  89. package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.js +140 -0
  90. package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts +111 -0
  91. package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts.map +1 -0
  92. package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.js +82 -0
  93. package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts +39 -0
  94. package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
  95. package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.js +109 -0
  96. package/esm/session/1_session.d.ts +1 -0
  97. package/esm/session/1_session.d.ts.map +1 -1
  98. package/esm/session/1_session.js +3 -0
  99. package/esm/session/2_session_encrypted.d.ts +2 -2
  100. package/esm/session/2_session_encrypted.d.ts.map +1 -1
  101. package/esm/session/2_session_encrypted.js +198 -135
  102. package/esm/storage/0_storage.d.ts +1 -0
  103. package/esm/storage/0_storage.d.ts.map +1 -1
  104. package/esm/storage/2_storage_indexed_db.d.ts +1 -0
  105. package/esm/storage/2_storage_indexed_db.d.ts.map +1 -1
  106. package/esm/storage/2_storage_indexed_db.js +3 -0
  107. package/esm/storage/2_storage_local_storage.node.d.ts +1 -0
  108. package/esm/storage/2_storage_local_storage.node.d.ts.map +1 -1
  109. package/esm/storage/2_storage_local_storage.node.js +3 -0
  110. package/esm/storage/2_storage_memory.d.ts +1 -0
  111. package/esm/storage/2_storage_memory.d.ts.map +1 -1
  112. package/esm/storage/2_storage_memory.js +3 -0
  113. package/esm/storage/2_storage_session_storage.d.ts +1 -0
  114. package/esm/storage/2_storage_session_storage.d.ts.map +1 -1
  115. package/esm/storage/2_storage_session_storage.js +3 -0
  116. package/esm/tl/0_utilities.d.ts +1 -0
  117. package/esm/tl/0_utilities.d.ts.map +1 -1
  118. package/esm/tl/0_utilities.js +20 -1
  119. package/esm/tl/1_telegram_api.d.ts +810 -254
  120. package/esm/tl/1_telegram_api.d.ts.map +1 -1
  121. package/esm/tl/1_telegram_api.js +912 -213
  122. package/esm/tl/1_tl_reader.d.ts +2 -2
  123. package/esm/tl/1_tl_reader.d.ts.map +1 -1
  124. package/esm/tl/1_tl_writer.d.ts +2 -2
  125. package/esm/tl/1_tl_writer.d.ts.map +1 -1
  126. package/esm/tl/2_mtproto.d.ts +1 -1
  127. package/esm/tl/2_mtproto.d.ts.map +1 -1
  128. package/esm/tl/2_telegram.d.ts +1 -1
  129. package/esm/tl/2_telegram.d.ts.map +1 -1
  130. package/esm/types/0_file_source.d.ts +1 -1
  131. package/esm/types/0_file_source.d.ts.map +1 -1
  132. package/esm/types/1_chat_p.d.ts +10 -0
  133. package/esm/types/1_chat_p.d.ts.map +1 -1
  134. package/esm/types/1_chat_p.js +4 -0
  135. package/esm/types/2_chat.d.ts +2 -5
  136. package/esm/types/2_chat.d.ts.map +1 -1
  137. package/esm/types/2_chat.js +10 -15
  138. package/esm/types/{0_message_entity.d.ts → 2_message_entity.d.ts} +3 -3
  139. package/esm/types/{0_message_entity.d.ts.map → 2_message_entity.d.ts.map} +1 -1
  140. package/esm/types/{0_message_entity.js → 2_message_entity.js} +7 -7
  141. package/esm/types/2_message_reaction_count.d.ts +2 -3
  142. package/esm/types/2_message_reaction_count.d.ts.map +1 -1
  143. package/esm/types/2_message_reaction_count.js +4 -6
  144. package/esm/types/2_poll_answer.d.ts +2 -3
  145. package/esm/types/2_poll_answer.d.ts.map +1 -1
  146. package/esm/types/2_poll_answer.js +4 -5
  147. package/esm/types/2_story_interactive_area.d.ts +2 -2
  148. package/esm/types/2_story_interactive_area.d.ts.map +1 -1
  149. package/esm/types/2_story_interactive_area.js +2 -2
  150. package/esm/types/{1_story_privacy.d.ts → 2_story_privacy.d.ts} +3 -3
  151. package/esm/types/{1_story_privacy.d.ts.map → 2_story_privacy.d.ts.map} +1 -1
  152. package/esm/types/{1_story_privacy.js → 2_story_privacy.js} +10 -10
  153. package/{script/types/1_user.d.ts → esm/types/2_user.d.ts} +5 -1
  154. package/esm/types/2_user.d.ts.map +1 -0
  155. package/esm/types/{1_user.js → 2_user.js} +24 -0
  156. package/esm/types/{2_business_connection.d.ts → 3_business_connection.d.ts} +4 -4
  157. package/esm/types/3_business_connection.d.ts.map +1 -0
  158. package/esm/types/{2_business_connection.js → 3_business_connection.js} +10 -3
  159. package/{script/types/2_chat_member.d.ts → esm/types/3_chat_member.d.ts} +6 -4
  160. package/esm/types/{2_chat_member.d.ts.map → 3_chat_member.d.ts.map} +1 -1
  161. package/esm/types/{2_chat_member.js → 3_chat_member.js} +5 -5
  162. package/esm/types/{2_chat_settings.d.ts → 3_chat_settings.d.ts} +2 -2
  163. package/{script/types/2_chat_settings.d.ts.map → esm/types/3_chat_settings.d.ts.map} +1 -1
  164. package/esm/types/{2_chat_settings.js → 3_chat_settings.js} +1 -1
  165. package/esm/types/{2_chosen_inline_result.d.ts → 3_chosen_inline_result.d.ts} +4 -4
  166. package/esm/types/3_chosen_inline_result.d.ts.map +1 -0
  167. package/esm/types/{2_chosen_inline_result.js → 3_chosen_inline_result.js} +3 -3
  168. package/esm/types/{2_forward_header.d.ts → 3_forward_header.d.ts} +4 -5
  169. package/esm/types/3_forward_header.d.ts.map +1 -0
  170. package/esm/types/{2_forward_header.js → 3_forward_header.js} +11 -12
  171. package/{script/types/2_game.d.ts → esm/types/3_game.d.ts} +2 -2
  172. package/esm/types/3_game.d.ts.map +1 -0
  173. package/esm/types/{2_gift_upgraded_component.d.ts → 3_gift_upgraded_component.d.ts} +2 -2
  174. package/esm/types/{2_gift_upgraded_component.d.ts.map → 3_gift_upgraded_component.d.ts.map} +1 -1
  175. package/esm/types/{2_gift_upgraded_component.js → 3_gift_upgraded_component.js} +1 -1
  176. package/esm/types/{2_inline_query.d.ts → 3_inline_query.d.ts} +4 -4
  177. package/esm/types/3_inline_query.d.ts.map +1 -0
  178. package/esm/types/{2_inline_query.js → 3_inline_query.js} +5 -5
  179. package/{script/types/1_input_media.d.ts → esm/types/3_input_media.d.ts} +2 -2
  180. package/esm/types/{1_input_media.d.ts.map → 3_input_media.d.ts.map} +1 -1
  181. package/{script/types/2_invite_link.d.ts → esm/types/3_invite_link.d.ts} +4 -4
  182. package/{script/types/2_invite_link.d.ts.map → esm/types/3_invite_link.d.ts.map} +1 -1
  183. package/esm/types/{2_invite_link.js → 3_invite_link.js} +5 -5
  184. package/{script/types/2_message_reactions.d.ts → esm/types/3_message_reactions.d.ts} +5 -6
  185. package/esm/types/3_message_reactions.d.ts.map +1 -0
  186. package/esm/types/{2_message_reactions.js → 3_message_reactions.js} +10 -12
  187. package/esm/types/{1_poll_option.d.ts → 3_poll_option.d.ts} +2 -2
  188. package/esm/types/{1_poll_option.d.ts.map → 3_poll_option.d.ts.map} +1 -1
  189. package/esm/types/{1_poll_option.js → 3_poll_option.js} +1 -1
  190. package/esm/types/{2_pre_checkout_query.d.ts → 3_pre_checkout_query.d.ts} +4 -4
  191. package/esm/types/3_pre_checkout_query.d.ts.map +1 -0
  192. package/esm/types/{2_pre_checkout_query.js → 3_pre_checkout_query.js} +5 -5
  193. package/{script/types/1_reply_quote.d.ts → esm/types/3_reply_quote.d.ts} +2 -2
  194. package/esm/types/{1_reply_quote.d.ts.map → 3_reply_quote.d.ts.map} +1 -1
  195. package/esm/types/{1_reply_quote.js → 3_reply_quote.js} +1 -1
  196. package/esm/types/3_story.d.ts +4 -5
  197. package/esm/types/3_story.d.ts.map +1 -1
  198. package/esm/types/3_story.js +6 -7
  199. package/esm/types/{3_chat_member_updated.d.ts → 4_chat_member_updated.d.ts} +6 -7
  200. package/esm/types/4_chat_member_updated.d.ts.map +1 -0
  201. package/esm/types/{3_chat_member_updated.js → 4_chat_member_updated.js} +13 -14
  202. package/esm/types/{3_gift.d.ts → 4_gift.d.ts} +6 -6
  203. package/esm/types/{3_gift.d.ts.map → 4_gift.d.ts.map} +1 -1
  204. package/esm/types/{3_gift.js → 4_gift.js} +7 -7
  205. package/esm/types/{3_join_request.d.ts → 4_join_request.d.ts} +6 -7
  206. package/esm/types/4_join_request.d.ts.map +1 -0
  207. package/esm/types/{3_join_request.js → 4_join_request.js} +17 -18
  208. package/esm/types/{2_poll.d.ts → 4_poll.d.ts} +3 -3
  209. package/esm/types/{2_poll.d.ts.map → 4_poll.d.ts.map} +1 -1
  210. package/esm/types/{2_poll.js → 4_poll.js} +2 -2
  211. package/{script/types/2_reply_to.d.ts → esm/types/4_reply_to.d.ts} +2 -2
  212. package/esm/types/{2_reply_to.d.ts.map → 4_reply_to.d.ts.map} +1 -1
  213. package/esm/types/{4_claimed_gift.d.ts → 5_claimed_gift.d.ts} +5 -6
  214. package/esm/types/5_claimed_gift.d.ts.map +1 -0
  215. package/esm/types/{4_claimed_gift.js → 5_claimed_gift.js} +4 -4
  216. package/esm/types/{4_link_preview.d.ts → 5_link_preview.d.ts} +4 -4
  217. package/{script/types/4_link_preview.d.ts.map → esm/types/5_link_preview.d.ts.map} +1 -1
  218. package/esm/types/{4_link_preview.js → 5_link_preview.js} +3 -3
  219. package/esm/types/{5_claimed_gifts.d.ts → 6_claimed_gifts.d.ts} +4 -4
  220. package/esm/types/6_claimed_gifts.d.ts.map +1 -0
  221. package/esm/types/{5_claimed_gifts.js → 6_claimed_gifts.js} +4 -4
  222. package/esm/types/{5_message.d.ts → 6_message.d.ts} +10 -11
  223. package/esm/types/6_message.d.ts.map +1 -0
  224. package/esm/types/{5_message.js → 6_message.js} +41 -66
  225. package/{script/types/5_message_content.d.ts → esm/types/6_message_content.d.ts} +3 -3
  226. package/esm/types/{5_message_content.d.ts.map → 6_message_content.d.ts.map} +1 -1
  227. package/{script/types/6_callback_query.d.ts → esm/types/7_callback_query.d.ts} +5 -5
  228. package/esm/types/{6_callback_query.d.ts.map → 7_callback_query.d.ts.map} +1 -1
  229. package/esm/types/{6_callback_query.js → 7_callback_query.js} +5 -5
  230. package/{script/types/6_chat_list_item.d.ts → esm/types/7_chat_list_item.d.ts} +6 -7
  231. package/esm/types/7_chat_list_item.d.ts.map +1 -0
  232. package/esm/types/{6_chat_list_item.js → 7_chat_list_item.js} +11 -11
  233. package/{script/types/6_inline_query_result.d.ts → esm/types/7_inline_query_result.d.ts} +3 -3
  234. package/esm/types/{6_inline_query_result.d.ts.map → 7_inline_query_result.d.ts.map} +1 -1
  235. package/esm/types/{6_inline_query_result.js → 7_inline_query_result.js} +1 -1
  236. package/esm/types/{6_saved_chat.d.ts → 7_saved_chat.d.ts} +4 -5
  237. package/esm/types/7_saved_chat.d.ts.map +1 -0
  238. package/esm/types/{6_saved_chat.js → 7_saved_chat.js} +4 -4
  239. package/esm/types/{6_topic.d.ts → 7_topic.d.ts} +2 -2
  240. package/esm/types/{6_topic.d.ts.map → 7_topic.d.ts.map} +1 -1
  241. package/esm/types/{7_inline_query_answer.d.ts → 8_inline_query_answer.d.ts} +2 -2
  242. package/esm/types/{7_inline_query_answer.d.ts.map → 8_inline_query_answer.d.ts.map} +1 -1
  243. package/esm/types/{7_inline_query_answer.js → 8_inline_query_answer.js} +1 -1
  244. package/{script/types/7_saved_chats.d.ts → esm/types/8_saved_chats.d.ts} +5 -5
  245. package/esm/types/8_saved_chats.d.ts.map +1 -0
  246. package/esm/types/{7_saved_chats.js → 8_saved_chats.js} +3 -3
  247. package/esm/types/{7_update.d.ts → 8_update.d.ts} +35 -16
  248. package/esm/types/8_update.d.ts.map +1 -0
  249. package/esm/types/_file_id.d.ts +1 -1
  250. package/esm/types/_file_id.d.ts.map +1 -1
  251. package/esm/types/_getters.d.ts +0 -7
  252. package/esm/types/_getters.d.ts.map +1 -1
  253. package/esm/utilities/0_hash.d.ts +2 -2
  254. package/esm/utilities/0_hash.d.ts.map +1 -1
  255. package/esm/utilities/0_misc.d.ts +1 -0
  256. package/esm/utilities/0_misc.d.ts.map +1 -1
  257. package/esm/utilities/0_misc.js +14 -1
  258. package/esm/utilities/0_part_stream.d.ts +1 -1
  259. package/esm/utilities/0_part_stream.d.ts.map +1 -1
  260. package/package.json +1 -1
  261. package/script/0_deps.d.ts +3 -1
  262. package/script/0_deps.d.ts.map +1 -1
  263. package/script/0_deps.js +6 -1
  264. package/script/3_types.d.ts +35 -35
  265. package/script/3_types.d.ts.map +1 -1
  266. package/script/3_types.js +35 -35
  267. package/script/_dnt.polyfills.d.ts +20 -13
  268. package/script/_dnt.polyfills.d.ts.map +1 -1
  269. package/script/_dnt.polyfills.js +120 -11
  270. package/script/client/0_abortable_loop.d.ts +27 -0
  271. package/script/client/0_abortable_loop.d.ts.map +1 -0
  272. package/script/client/0_abortable_loop.js +53 -0
  273. package/script/client/0_client_abstract.d.ts +1 -0
  274. package/script/client/0_client_abstract.d.ts.map +1 -1
  275. package/script/client/0_client_abstract.js +3 -0
  276. package/script/client/0_filters.d.ts +9 -3
  277. package/script/client/0_filters.d.ts.map +1 -1
  278. package/script/client/0_filters.js +4 -1
  279. package/script/client/0_params.d.ts +1 -1
  280. package/script/client/0_password.d.ts +2 -2
  281. package/script/client/0_password.d.ts.map +1 -1
  282. package/script/client/0_storage_operations.d.ts +53 -71
  283. package/script/client/0_storage_operations.d.ts.map +1 -1
  284. package/script/client/0_storage_operations.js +239 -236
  285. package/script/client/0_update_processor.d.ts +2 -2
  286. package/script/client/0_update_processor.d.ts.map +1 -1
  287. package/script/client/0_utilities.d.ts +2 -2
  288. package/script/client/0_utilities.d.ts.map +1 -1
  289. package/script/client/1_types.d.ts +2 -2
  290. package/script/client/1_types.d.ts.map +1 -1
  291. package/script/client/2_account_manager.js +5 -5
  292. package/script/client/2_business_connection_manager.d.ts +1 -1
  293. package/script/client/2_business_connection_manager.d.ts.map +1 -1
  294. package/script/client/2_business_connection_manager.js +3 -3
  295. package/script/client/2_client_encrypted.d.ts +1 -1
  296. package/script/client/2_client_encrypted.d.ts.map +1 -1
  297. package/script/client/2_client_encrypted.js +26 -23
  298. package/script/client/2_file_manager.js +2 -2
  299. package/script/client/2_network_statistics_manager.d.ts +2 -2
  300. package/script/client/2_network_statistics_manager.d.ts.map +1 -1
  301. package/script/client/2_network_statistics_manager.js +30 -4
  302. package/script/client/2_payment_manager.d.ts +1 -1
  303. package/script/client/2_payment_manager.d.ts.map +1 -1
  304. package/script/client/2_payment_manager.js +2 -2
  305. package/script/client/2_reaction_manager.d.ts +1 -1
  306. package/script/client/2_reaction_manager.d.ts.map +1 -1
  307. package/script/client/2_reaction_manager.js +2 -2
  308. package/script/client/2_translations_manager.d.ts +1 -1
  309. package/script/client/2_translations_manager.d.ts.map +1 -1
  310. package/script/client/2_translations_manager.js +15 -11
  311. package/script/client/2_update_manager.d.ts +4 -2
  312. package/script/client/2_update_manager.d.ts.map +1 -1
  313. package/script/client/2_update_manager.js +62 -80
  314. package/script/client/3_message_manager.d.ts +2 -2
  315. package/script/client/3_message_manager.d.ts.map +1 -1
  316. package/script/client/3_message_manager.js +5 -5
  317. package/script/client/3_video_chat_manager.d.ts +1 -1
  318. package/script/client/3_video_chat_manager.d.ts.map +1 -1
  319. package/script/client/4_callback_query_manager.d.ts +1 -1
  320. package/script/client/4_callback_query_manager.d.ts.map +1 -1
  321. package/script/client/4_callback_query_manager.js +1 -1
  322. package/script/client/4_chat_list_manager.d.ts +2 -3
  323. package/script/client/4_chat_list_manager.d.ts.map +1 -1
  324. package/script/client/4_chat_list_manager.js +9 -264
  325. package/script/client/4_chat_manager.d.ts +2 -2
  326. package/script/client/4_chat_manager.d.ts.map +1 -1
  327. package/script/client/4_chat_manager.js +7 -7
  328. package/script/client/4_gift_manager.js +3 -3
  329. package/script/client/4_inline_query_manager.d.ts +1 -1
  330. package/script/client/4_inline_query_manager.d.ts.map +1 -1
  331. package/script/client/4_inline_query_manager.js +3 -3
  332. package/script/client/4_link_preview_manager.d.ts +1 -1
  333. package/script/client/4_link_preview_manager.d.ts.map +1 -1
  334. package/script/client/4_link_preview_manager.js +3 -3
  335. package/script/client/4_poll_manager.d.ts +1 -1
  336. package/script/client/4_poll_manager.d.ts.map +1 -1
  337. package/script/client/4_poll_manager.js +1 -1
  338. package/script/client/4_story_manager.d.ts +1 -1
  339. package/script/client/4_story_manager.d.ts.map +1 -1
  340. package/script/client/4_story_manager.js +7 -7
  341. package/script/client/5_client.d.ts +15 -9
  342. package/script/client/5_client.d.ts.map +1 -1
  343. package/script/client/5_client.js +418 -380
  344. package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts +12 -0
  345. package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts.map +1 -0
  346. package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.js +72 -0
  347. package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts +112 -0
  348. package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts.map +1 -0
  349. package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.js +144 -0
  350. package/script/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts +111 -0
  351. package/script/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts.map +1 -0
  352. package/script/deps/jsr.io/@std/cache/0.2.0/memoize.js +85 -0
  353. package/script/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts +39 -0
  354. package/script/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
  355. package/script/deps/jsr.io/@std/encoding/1.0.7/hex.js +113 -0
  356. package/script/session/1_session.d.ts +1 -0
  357. package/script/session/1_session.d.ts.map +1 -1
  358. package/script/session/1_session.js +3 -0
  359. package/script/session/2_session_encrypted.d.ts +2 -2
  360. package/script/session/2_session_encrypted.d.ts.map +1 -1
  361. package/script/session/2_session_encrypted.js +197 -134
  362. package/script/storage/0_storage.d.ts +1 -0
  363. package/script/storage/0_storage.d.ts.map +1 -1
  364. package/script/storage/2_storage_indexed_db.d.ts +1 -0
  365. package/script/storage/2_storage_indexed_db.d.ts.map +1 -1
  366. package/script/storage/2_storage_indexed_db.js +3 -0
  367. package/script/storage/2_storage_local_storage.node.d.ts +1 -0
  368. package/script/storage/2_storage_local_storage.node.d.ts.map +1 -1
  369. package/script/storage/2_storage_local_storage.node.js +3 -0
  370. package/script/storage/2_storage_memory.d.ts +1 -0
  371. package/script/storage/2_storage_memory.d.ts.map +1 -1
  372. package/script/storage/2_storage_memory.js +3 -0
  373. package/script/storage/2_storage_session_storage.d.ts +1 -0
  374. package/script/storage/2_storage_session_storage.d.ts.map +1 -1
  375. package/script/storage/2_storage_session_storage.js +3 -0
  376. package/script/tl/0_utilities.d.ts +1 -0
  377. package/script/tl/0_utilities.d.ts.map +1 -1
  378. package/script/tl/0_utilities.js +20 -0
  379. package/script/tl/1_telegram_api.d.ts +810 -254
  380. package/script/tl/1_telegram_api.d.ts.map +1 -1
  381. package/script/tl/1_telegram_api.js +912 -213
  382. package/script/tl/1_tl_reader.d.ts +2 -2
  383. package/script/tl/1_tl_reader.d.ts.map +1 -1
  384. package/script/tl/1_tl_writer.d.ts +2 -2
  385. package/script/tl/1_tl_writer.d.ts.map +1 -1
  386. package/script/tl/2_mtproto.d.ts +1 -1
  387. package/script/tl/2_mtproto.d.ts.map +1 -1
  388. package/script/tl/2_telegram.d.ts +1 -1
  389. package/script/tl/2_telegram.d.ts.map +1 -1
  390. package/script/types/0_file_source.d.ts +1 -1
  391. package/script/types/0_file_source.d.ts.map +1 -1
  392. package/script/types/1_chat_p.d.ts +10 -0
  393. package/script/types/1_chat_p.d.ts.map +1 -1
  394. package/script/types/1_chat_p.js +5 -0
  395. package/script/types/2_chat.d.ts +2 -5
  396. package/script/types/2_chat.d.ts.map +1 -1
  397. package/script/types/2_chat.js +10 -15
  398. package/script/types/{0_message_entity.d.ts → 2_message_entity.d.ts} +3 -3
  399. package/script/types/{0_message_entity.d.ts.map → 2_message_entity.d.ts.map} +1 -1
  400. package/script/types/{0_message_entity.js → 2_message_entity.js} +7 -7
  401. package/script/types/2_message_reaction_count.d.ts +2 -3
  402. package/script/types/2_message_reaction_count.d.ts.map +1 -1
  403. package/script/types/2_message_reaction_count.js +4 -6
  404. package/script/types/2_poll_answer.d.ts +2 -3
  405. package/script/types/2_poll_answer.d.ts.map +1 -1
  406. package/script/types/2_poll_answer.js +4 -5
  407. package/script/types/2_story_interactive_area.d.ts +2 -2
  408. package/script/types/2_story_interactive_area.d.ts.map +1 -1
  409. package/script/types/2_story_interactive_area.js +2 -2
  410. package/script/types/{1_story_privacy.d.ts → 2_story_privacy.d.ts} +3 -3
  411. package/script/types/{1_story_privacy.d.ts.map → 2_story_privacy.d.ts.map} +1 -1
  412. package/script/types/{1_story_privacy.js → 2_story_privacy.js} +10 -10
  413. package/{esm/types/1_user.d.ts → script/types/2_user.d.ts} +5 -1
  414. package/script/types/2_user.d.ts.map +1 -0
  415. package/script/types/{1_user.js → 2_user.js} +25 -0
  416. package/script/types/{2_business_connection.d.ts → 3_business_connection.d.ts} +4 -4
  417. package/script/types/3_business_connection.d.ts.map +1 -0
  418. package/script/types/{2_business_connection.js → 3_business_connection.js} +10 -3
  419. package/{esm/types/2_chat_member.d.ts → script/types/3_chat_member.d.ts} +6 -4
  420. package/script/types/{2_chat_member.d.ts.map → 3_chat_member.d.ts.map} +1 -1
  421. package/script/types/{2_chat_member.js → 3_chat_member.js} +5 -5
  422. package/script/types/{2_chat_settings.d.ts → 3_chat_settings.d.ts} +2 -2
  423. package/{esm/types/2_chat_settings.d.ts.map → script/types/3_chat_settings.d.ts.map} +1 -1
  424. package/script/types/{2_chat_settings.js → 3_chat_settings.js} +2 -2
  425. package/script/types/{2_chosen_inline_result.d.ts → 3_chosen_inline_result.d.ts} +4 -4
  426. package/script/types/3_chosen_inline_result.d.ts.map +1 -0
  427. package/script/types/{2_chosen_inline_result.js → 3_chosen_inline_result.js} +4 -4
  428. package/script/types/{2_forward_header.d.ts → 3_forward_header.d.ts} +4 -5
  429. package/script/types/3_forward_header.d.ts.map +1 -0
  430. package/script/types/{2_forward_header.js → 3_forward_header.js} +11 -12
  431. package/{esm/types/2_game.d.ts → script/types/3_game.d.ts} +2 -2
  432. package/script/types/3_game.d.ts.map +1 -0
  433. package/script/types/{2_gift_upgraded_component.d.ts → 3_gift_upgraded_component.d.ts} +2 -2
  434. package/script/types/{2_gift_upgraded_component.d.ts.map → 3_gift_upgraded_component.d.ts.map} +1 -1
  435. package/script/types/{2_gift_upgraded_component.js → 3_gift_upgraded_component.js} +2 -2
  436. package/script/types/{2_inline_query.d.ts → 3_inline_query.d.ts} +4 -4
  437. package/script/types/3_inline_query.d.ts.map +1 -0
  438. package/script/types/{2_inline_query.js → 3_inline_query.js} +5 -5
  439. package/{esm/types/1_input_media.d.ts → script/types/3_input_media.d.ts} +2 -2
  440. package/script/types/{1_input_media.d.ts.map → 3_input_media.d.ts.map} +1 -1
  441. package/{esm/types/2_invite_link.d.ts → script/types/3_invite_link.d.ts} +4 -4
  442. package/{esm/types/2_invite_link.d.ts.map → script/types/3_invite_link.d.ts.map} +1 -1
  443. package/script/types/{2_invite_link.js → 3_invite_link.js} +5 -5
  444. package/{esm/types/2_message_reactions.d.ts → script/types/3_message_reactions.d.ts} +5 -6
  445. package/script/types/3_message_reactions.d.ts.map +1 -0
  446. package/script/types/{2_message_reactions.js → 3_message_reactions.js} +10 -12
  447. package/script/types/{1_poll_option.d.ts → 3_poll_option.d.ts} +2 -2
  448. package/script/types/{1_poll_option.d.ts.map → 3_poll_option.d.ts.map} +1 -1
  449. package/script/types/{1_poll_option.js → 3_poll_option.js} +2 -2
  450. package/script/types/{2_pre_checkout_query.d.ts → 3_pre_checkout_query.d.ts} +4 -4
  451. package/script/types/3_pre_checkout_query.d.ts.map +1 -0
  452. package/script/types/{2_pre_checkout_query.js → 3_pre_checkout_query.js} +5 -5
  453. package/{esm/types/1_reply_quote.d.ts → script/types/3_reply_quote.d.ts} +2 -2
  454. package/script/types/{1_reply_quote.d.ts.map → 3_reply_quote.d.ts.map} +1 -1
  455. package/script/types/{1_reply_quote.js → 3_reply_quote.js} +2 -2
  456. package/script/types/3_story.d.ts +4 -5
  457. package/script/types/3_story.d.ts.map +1 -1
  458. package/script/types/3_story.js +8 -9
  459. package/script/types/{3_chat_member_updated.d.ts → 4_chat_member_updated.d.ts} +6 -7
  460. package/script/types/4_chat_member_updated.d.ts.map +1 -0
  461. package/script/types/{3_chat_member_updated.js → 4_chat_member_updated.js} +13 -14
  462. package/script/types/{3_gift.d.ts → 4_gift.d.ts} +6 -6
  463. package/script/types/{3_gift.d.ts.map → 4_gift.d.ts.map} +1 -1
  464. package/script/types/{3_gift.js → 4_gift.js} +9 -9
  465. package/script/types/{3_join_request.d.ts → 4_join_request.d.ts} +6 -7
  466. package/script/types/4_join_request.d.ts.map +1 -0
  467. package/script/types/{3_join_request.js → 4_join_request.js} +17 -18
  468. package/script/types/{2_poll.d.ts → 4_poll.d.ts} +3 -3
  469. package/script/types/{2_poll.d.ts.map → 4_poll.d.ts.map} +1 -1
  470. package/script/types/{2_poll.js → 4_poll.js} +5 -5
  471. package/{esm/types/2_reply_to.d.ts → script/types/4_reply_to.d.ts} +2 -2
  472. package/script/types/{2_reply_to.d.ts.map → 4_reply_to.d.ts.map} +1 -1
  473. package/script/types/{4_claimed_gift.d.ts → 5_claimed_gift.d.ts} +5 -6
  474. package/script/types/5_claimed_gift.d.ts.map +1 -0
  475. package/script/types/{4_claimed_gift.js → 5_claimed_gift.js} +5 -5
  476. package/script/types/{4_link_preview.d.ts → 5_link_preview.d.ts} +4 -4
  477. package/{esm/types/4_link_preview.d.ts.map → script/types/5_link_preview.d.ts.map} +1 -1
  478. package/script/types/{4_link_preview.js → 5_link_preview.js} +3 -3
  479. package/script/types/{5_claimed_gifts.d.ts → 6_claimed_gifts.d.ts} +4 -4
  480. package/script/types/6_claimed_gifts.d.ts.map +1 -0
  481. package/script/types/{5_claimed_gifts.js → 6_claimed_gifts.js} +4 -4
  482. package/script/types/{5_message.d.ts → 6_message.d.ts} +10 -11
  483. package/script/types/6_message.d.ts.map +1 -0
  484. package/script/types/{5_message.js → 6_message.js} +45 -70
  485. package/{esm/types/5_message_content.d.ts → script/types/6_message_content.d.ts} +3 -3
  486. package/script/types/{5_message_content.d.ts.map → 6_message_content.d.ts.map} +1 -1
  487. package/{esm/types/6_callback_query.d.ts → script/types/7_callback_query.d.ts} +5 -5
  488. package/script/types/{6_callback_query.d.ts.map → 7_callback_query.d.ts.map} +1 -1
  489. package/script/types/{6_callback_query.js → 7_callback_query.js} +5 -5
  490. package/{esm/types/6_chat_list_item.d.ts → script/types/7_chat_list_item.d.ts} +6 -7
  491. package/script/types/7_chat_list_item.d.ts.map +1 -0
  492. package/script/types/{6_chat_list_item.js → 7_chat_list_item.js} +11 -11
  493. package/{esm/types/6_inline_query_result.d.ts → script/types/7_inline_query_result.d.ts} +3 -3
  494. package/script/types/{6_inline_query_result.d.ts.map → 7_inline_query_result.d.ts.map} +1 -1
  495. package/script/types/{6_inline_query_result.js → 7_inline_query_result.js} +3 -3
  496. package/script/types/{6_saved_chat.d.ts → 7_saved_chat.d.ts} +4 -5
  497. package/script/types/7_saved_chat.d.ts.map +1 -0
  498. package/script/types/{6_saved_chat.js → 7_saved_chat.js} +4 -4
  499. package/script/types/{6_topic.d.ts → 7_topic.d.ts} +2 -2
  500. package/script/types/{6_topic.d.ts.map → 7_topic.d.ts.map} +1 -1
  501. package/script/types/{7_inline_query_answer.d.ts → 8_inline_query_answer.d.ts} +2 -2
  502. package/script/types/{7_inline_query_answer.d.ts.map → 8_inline_query_answer.d.ts.map} +1 -1
  503. package/script/types/{7_inline_query_answer.js → 8_inline_query_answer.js} +2 -2
  504. package/{esm/types/7_saved_chats.d.ts → script/types/8_saved_chats.d.ts} +5 -5
  505. package/script/types/8_saved_chats.d.ts.map +1 -0
  506. package/script/types/{7_saved_chats.js → 8_saved_chats.js} +3 -3
  507. package/script/types/{7_update.d.ts → 8_update.d.ts} +35 -16
  508. package/script/types/8_update.d.ts.map +1 -0
  509. package/script/types/_file_id.d.ts +1 -1
  510. package/script/types/_file_id.d.ts.map +1 -1
  511. package/script/types/_getters.d.ts +0 -7
  512. package/script/types/_getters.d.ts.map +1 -1
  513. package/script/utilities/0_hash.d.ts +2 -2
  514. package/script/utilities/0_hash.d.ts.map +1 -1
  515. package/script/utilities/0_misc.d.ts +1 -0
  516. package/script/utilities/0_misc.d.ts.map +1 -1
  517. package/script/utilities/0_misc.js +14 -0
  518. package/script/utilities/0_part_stream.d.ts +1 -1
  519. package/script/utilities/0_part_stream.d.ts.map +1 -1
  520. package/esm/types/1_user.d.ts.map +0 -1
  521. package/esm/types/2_business_connection.d.ts.map +0 -1
  522. package/esm/types/2_chosen_inline_result.d.ts.map +0 -1
  523. package/esm/types/2_forward_header.d.ts.map +0 -1
  524. package/esm/types/2_game.d.ts.map +0 -1
  525. package/esm/types/2_inline_query.d.ts.map +0 -1
  526. package/esm/types/2_message_reactions.d.ts.map +0 -1
  527. package/esm/types/2_pre_checkout_query.d.ts.map +0 -1
  528. package/esm/types/3_chat_member_updated.d.ts.map +0 -1
  529. package/esm/types/3_join_request.d.ts.map +0 -1
  530. package/esm/types/4_claimed_gift.d.ts.map +0 -1
  531. package/esm/types/5_claimed_gifts.d.ts.map +0 -1
  532. package/esm/types/5_message.d.ts.map +0 -1
  533. package/esm/types/6_chat_list_item.d.ts.map +0 -1
  534. package/esm/types/6_saved_chat.d.ts.map +0 -1
  535. package/esm/types/7_saved_chats.d.ts.map +0 -1
  536. package/esm/types/7_update.d.ts.map +0 -1
  537. package/script/types/1_user.d.ts.map +0 -1
  538. package/script/types/2_business_connection.d.ts.map +0 -1
  539. package/script/types/2_chosen_inline_result.d.ts.map +0 -1
  540. package/script/types/2_forward_header.d.ts.map +0 -1
  541. package/script/types/2_game.d.ts.map +0 -1
  542. package/script/types/2_inline_query.d.ts.map +0 -1
  543. package/script/types/2_message_reactions.d.ts.map +0 -1
  544. package/script/types/2_pre_checkout_query.d.ts.map +0 -1
  545. package/script/types/3_chat_member_updated.d.ts.map +0 -1
  546. package/script/types/3_join_request.d.ts.map +0 -1
  547. package/script/types/4_claimed_gift.d.ts.map +0 -1
  548. package/script/types/5_claimed_gifts.d.ts.map +0 -1
  549. package/script/types/5_message.d.ts.map +0 -1
  550. package/script/types/6_chat_list_item.d.ts.map +0 -1
  551. package/script/types/6_saved_chat.d.ts.map +0 -1
  552. package/script/types/7_saved_chats.d.ts.map +0 -1
  553. package/script/types/7_update.d.ts.map +0 -1
  554. /package/esm/types/{2_game.js → 3_game.js} +0 -0
  555. /package/esm/types/{1_input_media.js → 3_input_media.js} +0 -0
  556. /package/esm/types/{2_reply_to.js → 4_reply_to.js} +0 -0
  557. /package/esm/types/{5_message_content.js → 6_message_content.js} +0 -0
  558. /package/esm/types/{6_topic.js → 7_topic.js} +0 -0
  559. /package/esm/types/{7_update.js → 8_update.js} +0 -0
  560. /package/script/types/{2_game.js → 3_game.js} +0 -0
  561. /package/script/types/{1_input_media.js → 3_input_media.js} +0 -0
  562. /package/script/types/{2_reply_to.js → 4_reply_to.js} +0 -0
  563. /package/script/types/{5_message_content.js → 6_message_content.js} +0 -0
  564. /package/script/types/{6_topic.js → 7_topic.js} +0 -0
  565. /package/script/types/{7_update.js → 8_update.js} +0 -0
@@ -21,25 +21,20 @@
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.StorageOperations = exports.K = void 0;
23
23
  const _0_deps_js_1 = require("../0_deps.js");
24
+ const _0_deps_js_2 = require("../0_deps.js");
24
25
  const _0_errors_js_1 = require("../0_errors.js");
25
26
  const _1_utilities_js_1 = require("../1_utilities.js");
27
+ const _1_utilities_js_2 = require("../1_utilities.js");
28
+ const _2_storage_js_1 = require("../2_storage.js");
26
29
  const _2_tl_js_1 = require("../2_tl.js");
27
- // key parts
30
+ const _3_types_js_1 = require("../3_types.js");
28
31
  exports.K = {
29
- connection: {
30
- P: (string) => `connection.${string}`,
31
- apiId: () => [exports.K.connection.P("apiId")],
32
- },
33
32
  session: {
34
33
  P: (string) => `session.${string}`,
35
34
  serverSalt: () => [exports.K.session.P("serverSalt")],
36
35
  },
37
36
  auth: {
38
37
  P: (string) => `auth.${string}`,
39
- dc: () => [exports.K.auth.P("dc")],
40
- key: () => [exports.K.auth.P("key")],
41
- accountId: () => [exports.K.auth.P("accountId")],
42
- accountType: () => [exports.K.auth.P("accountType")],
43
38
  isPremium: () => [exports.K.auth.P("isPremium")],
44
39
  },
45
40
  updates: {
@@ -48,14 +43,9 @@ exports.K = {
48
43
  all: () => [exports.K.updates.P("updates")],
49
44
  updates: (boxId) => [...exports.K.updates.all(), boxId],
50
45
  update: (boxId, id) => [...exports.K.updates.updates(boxId), id],
51
- channelPts: (channelId) => [exports.K.updates.P("channelPts"), channelId],
52
46
  },
53
47
  cache: {
54
48
  P: (string) => `cache.${string}`,
55
- usernames: () => [exports.K.cache.P("username")],
56
- username: (v) => [...exports.K.cache.usernames(), v],
57
- peers: () => [exports.K.cache.P("peer")],
58
- peer: (id) => [...exports.K.cache.peers(), id],
59
49
  stickerSetNames: () => [exports.K.cache.P("stickerSetNames")],
60
50
  stickerSetName: (id, accessHash) => [...exports.K.cache.stickerSetNames(), id, accessHash],
61
51
  files: () => [exports.K.cache.P("files")],
@@ -76,12 +66,6 @@ exports.K = {
76
66
  groupCall: (id) => [...exports.K.cache.groupCalls(), id],
77
67
  groupCallAccessHashes: () => [exports.K.cache.P("groupCallAccessHashes")],
78
68
  groupCallAccessHash: (id) => [...exports.K.cache.groupCallAccessHashes(), id],
79
- minPeerReferences: () => [exports.K.cache.P("minPeerReferences")],
80
- minPeerReference: (senderId, chatId) => [...exports.K.cache.minPeerReferences(), senderId, chatId],
81
- minPeerReferenceSender: (senderId) => [...exports.K.cache.minPeerReferences(), senderId],
82
- allTranslations: () => [exports.K.cache.P("translations")],
83
- platformTranslations: (platform) => [...exports.K.cache.allTranslations(), platform],
84
- translations: (platform, language) => [...exports.K.cache.platformTranslations(platform), language],
85
69
  pollResults: () => [exports.K.cache.P("pollResults")],
86
70
  pollResult: (pollId) => [...exports.K.cache.pollResults(), pollId],
87
71
  polls: () => [exports.K.cache.P("polls")],
@@ -98,23 +82,37 @@ exports.K = {
98
82
  allMessageRefs: () => [exports.K.messages.P("messageRefs")],
99
83
  messageRef: (messageId) => [...exports.K.messages.allMessageRefs(), messageId],
100
84
  },
101
- chatlists: {
102
- P: (string) => `chatlists.${string}`,
103
- hasAllChats: (listId) => [exports.K.chatlists.P("hasAllChats"), listId],
104
- chats: (listId) => [exports.K.chatlists.P("chats"), listId],
105
- chat: (listId, chatId) => [...exports.K.chatlists.chats(listId), chatId],
106
- pinnedChats: (listId) => [exports.K.chatlists.P("pinnedChats"), listId],
107
- },
108
85
  };
109
86
  class StorageOperations {
110
87
  #storage;
111
88
  #supportsFiles;
112
89
  #mustSerialize;
113
- #authKeyId = null;
90
+ #L;
91
+ #maps = new Array();
92
+ #values = new Array();
93
+ auth;
94
+ channelPts;
95
+ peers;
96
+ usernames;
97
+ translations;
114
98
  constructor(storage) {
115
99
  this.#storage = storage;
116
100
  this.#supportsFiles = storage.supportsFiles;
117
101
  this.#mustSerialize = storage.mustSerialize;
102
+ this.#L = (0, _1_utilities_js_1.getLogger)("StorageOperations");
103
+ this.auth = this.#addValue(new StorageAuth(storage));
104
+ this.channelPts = this.#addMap(new StorageMap(storage, "channelPts"));
105
+ this.peers = this.#addMap(new StorageMap(storage, "peers"));
106
+ this.usernames = this.#addMap(new StorageMap(storage, "usernames"));
107
+ this.translations = this.#addMap(new StorageMap(storage, "translations"));
108
+ }
109
+ #addMap(map) {
110
+ this.#maps.push(map);
111
+ return map;
112
+ }
113
+ #addValue(value) {
114
+ this.#values.push(value);
115
+ return value;
118
116
  }
119
117
  get provider() {
120
118
  return this.#storage;
@@ -124,7 +122,7 @@ class StorageOperations {
124
122
  }
125
123
  async initialize() {
126
124
  await this.#storage.initialize();
127
- await this.getAccountType();
125
+ await this.auth.get();
128
126
  }
129
127
  set(...args) {
130
128
  return this.#storage.set(...args);
@@ -135,49 +133,20 @@ class StorageOperations {
135
133
  get(...args) {
136
134
  return this.#storage.get(...args);
137
135
  }
138
- getMany(...args) {
139
- return this.#storage.getMany(...args);
140
- }
141
- async setDc(dc) {
142
- await this.#storage.set(exports.K.auth.dc(), dc);
143
- }
144
- getDc() {
145
- return this.#storage.get(exports.K.auth.dc());
146
- }
147
- async #resetAuthKeyId(authKey) {
148
- if (authKey !== null) {
149
- this.#authKeyId = (0, _1_utilities_js_1.bigIntFromBuffer)((await (0, _1_utilities_js_1.sha1)(authKey)).subarray(-8), true, false);
150
- }
151
- else {
152
- this.#authKeyId = null;
153
- }
154
- }
155
- async getAuthKey() {
156
- const authKey = await this.#storage.get(exports.K.auth.key());
157
- await this.#resetAuthKeyId(authKey);
158
- return authKey;
159
- }
160
- async setAuthKey(authKey) {
161
- await this.#storage.set(exports.K.auth.key(), authKey);
162
- await this.#resetAuthKeyId(authKey);
163
- }
164
- get authKeyId() {
165
- return this.#authKeyId;
166
- }
167
136
  async exportAuthString(apiId_) {
168
137
  if (typeof apiId_ === "number") {
169
- await this.setApiId(apiId_);
138
+ await this.auth.update((v) => v.apiId = apiId_);
170
139
  }
171
- const [dc, authKey, apiId, accountId, accountType] = await Promise.all([this.getDc(), this.getAuthKey(), this.getApiId(), this.getAccountId(), this.getAccountType()]);
172
- if (dc === null || authKey === null || apiId === null || accountId === null || accountType === null) {
140
+ const auth = this.auth.mustGet();
141
+ if (auth.dc === null || auth.authKey === null || auth.apiId === 0 || auth.userId === 0) {
173
142
  throw new Error("Not authorized");
174
143
  }
175
144
  const writer = new _2_tl_js_1.TLWriter();
176
- writer.writeString(dc);
177
- writer.writeBytes(authKey);
178
- writer.writeInt32(apiId);
179
- writer.write(new Uint8Array([accountType === "bot" ? 1 : 0]));
180
- writer.writeInt64(BigInt(accountId));
145
+ writer.writeString(auth.dc);
146
+ writer.writeBytes(auth.authKey);
147
+ writer.writeInt32(auth.apiId);
148
+ writer.write(new Uint8Array([auth.isBot ? 1 : 0]));
149
+ writer.writeInt64(BigInt(auth.userId));
181
150
  const data = (0, _1_utilities_js_1.rleEncode)(writer.buffer);
182
151
  return (0, _1_utilities_js_1.base64EncodeUrlSafe)(data);
183
152
  }
@@ -187,54 +156,56 @@ class StorageOperations {
187
156
  const dc = reader.readString();
188
157
  const authKey = reader.readBytes();
189
158
  const apiId = reader.readInt32();
190
- const isBot = reader.read(1)[0];
191
- const accountId = Number(reader.readInt64());
192
- await this.setAccountId(accountId);
193
- await this.setAccountType(isBot ? "bot" : "user");
194
- await this.setApiId(apiId);
195
- await this.setDc(dc);
196
- await this.setAuthKey(authKey);
197
- }
198
- async getChannelAccessHash(id) {
199
- const channel = await this.getEntity(id);
200
- if (channel) {
201
- if (!(_2_tl_js_1.Api.is("channel", channel)) && !_2_tl_js_1.Api.is("channelForbidden", channel)) {
202
- (0, _0_deps_js_1.unreachable)();
203
- }
204
- if (_2_tl_js_1.Api.is("channel", channel) && channel.min) {
205
- return null;
206
- }
207
- return typeof channel.access_hash === "bigint" ? channel.access_hash : null;
159
+ const isBot = !!reader.read(1)[0];
160
+ const userId = Number(reader.readInt64());
161
+ await this.auth.set({
162
+ apiId,
163
+ authKey,
164
+ dc,
165
+ isBot,
166
+ userId,
167
+ });
168
+ }
169
+ #lastCommit = null;
170
+ async commit(force = false) {
171
+ if (this.#storage.isMemory) {
172
+ return;
208
173
  }
209
- else {
210
- return null;
174
+ const pending = this.#values.filter((v) => v.isUpdatePending).length + this.#maps.filter((v) => v.pendingUpdateCount > 0).length;
175
+ if (pending <= 0) {
176
+ this.#L.debug("nothing to commit");
177
+ return;
211
178
  }
212
- }
213
- async getUserAccessHash(id) {
214
- const user = await this.getEntity(id);
215
- if (user) {
216
- if (!_2_tl_js_1.Api.is("user", user)) {
217
- (0, _0_deps_js_1.unreachable)();
179
+ let commit = false;
180
+ if (force) {
181
+ this.#L.debug("committing because force = true");
182
+ commit = true;
183
+ }
184
+ else {
185
+ if (!commit && pending >= 1_000) {
186
+ this.#L.debug("committing because pending writes >= threshold");
187
+ commit = true;
218
188
  }
219
- if (user.min) {
220
- return null;
189
+ else if (this.#lastCommit === null) {
190
+ this.#L.debug("committing because there is no last commit");
191
+ commit = true;
192
+ }
193
+ else if (Date.now() - this.#lastCommit.getTime() >= 5 * _0_deps_js_1.MINUTE) {
194
+ this.#L.debug("committing because last commit is older than threshold");
195
+ commit = true;
196
+ }
197
+ else {
198
+ this.#L.debug("not committing");
221
199
  }
222
- return typeof user.access_hash === "bigint" ? user.access_hash : null;
223
200
  }
224
- else {
225
- return null;
201
+ if (commit) {
202
+ const values = this.#values.filter((v) => v.isUpdatePending).map((v) => v.commit());
203
+ const maps = this.#maps.filter((v) => v.pendingUpdateCount > 0).map((v) => v.commit());
204
+ await Promise.all(values.concat(maps));
205
+ this.#L.debug("committed", values.length, "value(s) and", maps.length, "map(s)");
206
+ this.#lastCommit = new Date();
226
207
  }
227
208
  }
228
- async updateUsernames(id, usernames) {
229
- for (let username of usernames) {
230
- username = username.toLowerCase();
231
- await this.#storage.set(exports.K.cache.username(username), [id, new Date()]);
232
- }
233
- }
234
- async getUsername(username) {
235
- username = username.toLowerCase();
236
- return await this.#storage.get(exports.K.cache.username(username));
237
- }
238
209
  async setTlObject(key, value) {
239
210
  if (value === null) {
240
211
  await this.#storage.set(key, null);
@@ -286,33 +257,12 @@ class StorageOperations {
286
257
  async getMessage(chatId, messageId) {
287
258
  return await this.getTlObject(exports.K.messages.message(chatId, messageId));
288
259
  }
289
- async getLastMessage(chatId) {
290
- for await (const [_, buffer] of await this.#storage.getMany({ prefix: exports.K.messages.messages(chatId) }, { limit: 1, reverse: true })) {
291
- return await this.getTlObject(buffer);
292
- }
293
- return null;
294
- }
295
- async setChannelPts(channelId, pts) {
296
- await this.#storage.set(exports.K.updates.channelPts(channelId), pts);
297
- }
298
- getChannelPts(channelId) {
299
- return this.#storage.get(exports.K.updates.channelPts(channelId));
300
- }
301
- async setEntity(entity) {
302
- await this.#storage.set(exports.K.cache.peer(_2_tl_js_1.Api.peerToChatId(entity)), [this.#mustSerialize ? (0, _1_utilities_js_1.rleEncode)(_2_tl_js_1.Api.serializeObject(entity)) : entity, new Date()]);
303
- }
304
- async getEntity(key) {
305
- const peer_ = await this.#storage.get(exports.K.cache.peer(key));
306
- if (peer_ !== null) {
307
- const [obj_] = peer_;
308
- return await this.getTlObject(obj_);
309
- }
310
- else {
311
- return null;
312
- }
260
+ setPeer(peer_) {
261
+ const chatP = (0, _3_types_js_1.constructChatP)(peer_);
262
+ this.setPeer2(chatP, "access_hash" in peer_ ? peer_.access_hash ?? 0n : 0n);
313
263
  }
314
- async setAccountId(accountId) {
315
- await this.#storage.set(exports.K.auth.accountId(), accountId);
264
+ setPeer2(chatP, accessHash) {
265
+ this.peers.set([chatP.id], [chatP, accessHash]);
316
266
  }
317
267
  #accountId = null;
318
268
  async getAccountId() {
@@ -320,28 +270,9 @@ class StorageOperations {
320
270
  return this.#accountId;
321
271
  }
322
272
  else {
323
- return (this.#accountId = await this.#storage.get(exports.K.auth.accountId()));
324
- }
325
- }
326
- async setAccountType(type) {
327
- await this.#storage.set(exports.K.auth.accountType(), type);
328
- await this.getAccountType();
329
- }
330
- #accountType = null;
331
- async getAccountType() {
332
- if (this.#accountType !== null) {
333
- return this.#accountType;
334
- }
335
- else {
336
- return this.#accountType = await this.#storage.get(exports.K.auth.accountType());
273
+ return this.#accountId = (await this.auth.get())?.userId ?? null;
337
274
  }
338
275
  }
339
- get accountType() {
340
- if (this.#accountType === null) {
341
- (0, _0_deps_js_1.unreachable)();
342
- }
343
- return this.#accountType;
344
- }
345
276
  async setIsPremium(isPremium) {
346
277
  await this.#storage.set(exports.K.auth.isPremium(), isPremium);
347
278
  }
@@ -360,39 +291,6 @@ class StorageOperations {
360
291
  getServerSalt() {
361
292
  return this.#storage.get(exports.K.session.serverSalt());
362
293
  }
363
- async setChat(listId, chatId, pinned, topMessageId, topMessageDate) {
364
- await this.#storage.set(exports.K.chatlists.chat(listId, chatId), [pinned, topMessageId, topMessageDate]);
365
- }
366
- async getChats(listId) {
367
- const chats = new Array();
368
- for await (const [key, value] of await this.#storage.getMany({ prefix: exports.K.chatlists.chats(listId) })) {
369
- if (key.length !== 3 || typeof key[2] !== "number") {
370
- continue;
371
- }
372
- chats.push({ chatId: key[2], pinned: value[0], topMessageId: value[1], topMessageDate: value[2] });
373
- }
374
- return chats;
375
- }
376
- async removeChats(listId) {
377
- for await (const [key] of await this.#storage.getMany({ prefix: exports.K.chatlists.chats(listId) })) {
378
- await this.#storage.set(key, null);
379
- }
380
- await this.setHasAllChats(listId, false);
381
- await this.setPinnedChats(listId, null);
382
- }
383
- async setHasAllChats(listId, hasAllChats) {
384
- await this.#storage.set(exports.K.chatlists.hasAllChats(listId), hasAllChats);
385
- }
386
- async hasAllChats(listId) {
387
- const v = await this.#storage.get(exports.K.chatlists.hasAllChats(listId));
388
- return v === true;
389
- }
390
- async setPinnedChats(listId, chatIds) {
391
- await this.#storage.set(exports.K.chatlists.pinnedChats(listId), chatIds);
392
- }
393
- async getPinnedChats(listId) {
394
- return await this.#storage.get(exports.K.chatlists.pinnedChats(listId));
395
- }
396
294
  async getHistory(chatId, offsetId, limit) {
397
295
  if (offsetId === 0) {
398
296
  offsetId = Infinity;
@@ -534,15 +432,38 @@ class StorageOperations {
534
432
  return null;
535
433
  }
536
434
  assertUser(source) {
537
- if (this.accountType !== "user") {
435
+ if (this.auth.mustGet().isBot) {
538
436
  throw new _0_errors_js_1.InputError(`${source}: not user a client`);
539
437
  }
540
438
  }
541
439
  assertBot(source) {
542
- if (this.accountType !== "bot") {
440
+ if (!this.auth.mustGet().isBot) {
543
441
  throw new _0_errors_js_1.InputError(`${source}: not a bot client`);
544
442
  }
545
443
  }
444
+ get isBot() {
445
+ return this.auth.mustGet().isBot;
446
+ }
447
+ async getChannelAccessHash(id) {
448
+ const peer = await this.peers.get([id]);
449
+ if (peer?.[0].type === "channel" || peer?.[0].type === "supergroup") {
450
+ return peer[1];
451
+ }
452
+ else {
453
+ // TODO: get min peer reference
454
+ return null;
455
+ }
456
+ }
457
+ async getUserAccessHash(id) {
458
+ const peer = await this.peers.get([id]);
459
+ if (peer?.[0].type === "private") {
460
+ return peer[1];
461
+ }
462
+ else {
463
+ // TODO: get min peer reference
464
+ return null;
465
+ }
466
+ }
546
467
  async deleteFiles() {
547
468
  if (!this.#supportsFiles) {
548
469
  return;
@@ -589,21 +510,9 @@ class StorageOperations {
589
510
  await this.#storage.set(key, null);
590
511
  }
591
512
  }
592
- async deletePeers() {
593
- for await (const [key] of await this.#storage.getMany({ prefix: exports.K.cache.peers() })) {
594
- await this.#storage.set(key, null);
595
- }
596
- }
597
- async deleteUsernames() {
598
- for await (const [key] of await this.#storage.getMany({ prefix: exports.K.cache.usernames() })) {
599
- await this.#storage.set(key, null);
600
- }
601
- }
602
513
  async clear() {
603
514
  await Promise.all([
604
515
  this.deleteMessages(),
605
- this.removeChats(0),
606
- this.removeChats(1),
607
516
  this.deleteUpdates(),
608
517
  this.deleteFiles(),
609
518
  this.deleteCustomEmojiDocuments(),
@@ -613,49 +522,20 @@ class StorageOperations {
613
522
  this.deleteFullChats(),
614
523
  this.deleteGroupCalls(),
615
524
  this.deleteStickerSetNames(),
616
- this.deletePeers(),
617
- this.deleteUsernames(),
618
- this.deleteTranslations(),
525
+ this.peers.clear(),
526
+ this.usernames.clear(),
527
+ this.translations.clear(),
619
528
  this.deletePollResults(),
620
529
  this.deletePolls(),
621
530
  this.deleteVoiceTranscriptions(),
622
531
  this.deleteVoiceTranscriptionReferences(),
623
532
  ]);
624
533
  }
625
- async setApiId(apiId) {
626
- await this.#storage.set(exports.K.connection.apiId(), apiId);
627
- }
628
- async getApiId() {
629
- return await this.#storage.get(exports.K.connection.apiId());
630
- }
631
534
  async reset() {
632
535
  for await (const [key] of await this.#storage.getMany({ prefix: [] })) {
633
536
  await this.#storage.set(key, null);
634
537
  }
635
538
  }
636
- async setMinPeerReference(chatId, senderId, messageId) {
637
- await this.#storage.set(exports.K.cache.minPeerReference(senderId, chatId), [{ chatId, messageId }, new Date()]);
638
- }
639
- async getLastMinPeerReference(senderId) {
640
- const references = new Array();
641
- for await (const [, reference] of await this.#storage.getMany({ prefix: exports.K.cache.minPeerReferenceSender(senderId) })) {
642
- references.push(reference);
643
- }
644
- return references.sort((a, b) => b[1].getTime() - a[1].getTime())[0]?.[0] ?? null;
645
- }
646
- async deleteTranslations() {
647
- const maybePromises = new Array();
648
- for await (const [key] of await this.#storage.getMany({ prefix: exports.K.cache.allTranslations() })) {
649
- maybePromises.push(this.#storage.set(key, null));
650
- }
651
- await Promise.all(maybePromises);
652
- }
653
- async getTranslations(platform, language) {
654
- return await this.#storage.get(exports.K.cache.translations(platform, language));
655
- }
656
- async setTranslations(platform, language, version, translations) {
657
- await this.#storage.set(exports.K.cache.translations(platform, language), [version, translations, new Date()]);
658
- }
659
539
  async setPollResults(pollId, pollResults) {
660
540
  await this.setTlObject(exports.K.cache.pollResult(pollId), pollResults);
661
541
  }
@@ -683,10 +563,10 @@ class StorageOperations {
683
563
  await Promise.all(maybePromises);
684
564
  }
685
565
  async setVoiceTranscription(voiceTranscription) {
686
- await this.set(exports.K.cache.voiceTranscription(BigInt(voiceTranscription.id)), voiceTranscription);
566
+ await this.#storage.set(exports.K.cache.voiceTranscription(BigInt(voiceTranscription.id)), voiceTranscription);
687
567
  }
688
568
  async getVoiceTranscription(transcriptionId) {
689
- return await this.get(exports.K.cache.voiceTranscription(transcriptionId));
569
+ return await this.#storage.get(exports.K.cache.voiceTranscription(transcriptionId));
690
570
  }
691
571
  async deleteVoiceTranscriptions() {
692
572
  const maybePromises = new Array();
@@ -696,10 +576,10 @@ class StorageOperations {
696
576
  await Promise.all(maybePromises);
697
577
  }
698
578
  async setVoiceTranscriptionReference(chatId, messageId, messageEditDate, transcriptionId) {
699
- await this.set(exports.K.cache.voiceTranscriptionReference(chatId, messageId, messageEditDate.getTime()), transcriptionId);
579
+ await this.#storage.set(exports.K.cache.voiceTranscriptionReference(chatId, messageId, messageEditDate.getTime()), transcriptionId);
700
580
  }
701
581
  async getVoiceTranscriptionReference(chatId, messageId, messageEditDate) {
702
- return await this.get(exports.K.cache.voiceTranscriptionReference(chatId, messageId, messageEditDate.getTime()));
582
+ return await this.#storage.get(exports.K.cache.voiceTranscriptionReference(chatId, messageId, messageEditDate.getTime()));
703
583
  }
704
584
  async deleteVoiceTranscriptionReferences() {
705
585
  const maybePromises = new Array();
@@ -710,3 +590,126 @@ class StorageOperations {
710
590
  }
711
591
  }
712
592
  exports.StorageOperations = StorageOperations;
593
+ class StorageMap {
594
+ #storage;
595
+ #path;
596
+ constructor(storage, path) {
597
+ this.#storage = storage;
598
+ this.#path = path;
599
+ }
600
+ #pendingUpdates = new Map();
601
+ #cache = new _0_deps_js_2.LruCache(20_000);
602
+ set(key, value) {
603
+ const key_ = (0, _2_storage_js_1.toString)(key);
604
+ this.#cache.set(key_, value);
605
+ if (!this.#storage.isMemory) {
606
+ this.#pendingUpdates.set(key_, value);
607
+ }
608
+ }
609
+ get pendingUpdateCount() {
610
+ return this.#pendingUpdates.size;
611
+ }
612
+ mustGet(key) {
613
+ const value = this.#cache.get((0, _2_storage_js_1.toString)(key));
614
+ if (value === undefined) {
615
+ (0, _0_deps_js_2.unreachable)();
616
+ }
617
+ else {
618
+ return value;
619
+ }
620
+ }
621
+ async clear() {
622
+ await (0, _1_utilities_js_2.awaitablePooledMap)(10, await this.#storage.getMany({ prefix: [this.#path] }), async ([key]) => await this.#storage.set(key, null));
623
+ }
624
+ async get(key) {
625
+ const key_ = (0, _2_storage_js_1.toString)(key);
626
+ let value = this.#cache.get(key_);
627
+ if (value === undefined) {
628
+ value = await this.#storage.get([this.#path, ...key]);
629
+ this.#cache.set(key_, value);
630
+ }
631
+ return value;
632
+ }
633
+ async commit() {
634
+ if (this.#storage.isMemory) {
635
+ return;
636
+ }
637
+ await (0, _1_utilities_js_2.awaitablePooledMap)(2, this.#pendingUpdates, async ([key, value]) => await this.#storage.set([this.#path, ...(0, _2_storage_js_1.fromString)(key)], value));
638
+ this.#pendingUpdates.clear();
639
+ }
640
+ }
641
+ class StorageValue {
642
+ #storage;
643
+ #key;
644
+ constructor(storage, path) {
645
+ this.#storage = storage;
646
+ this.#key = [path];
647
+ }
648
+ #updatePending = false;
649
+ #value;
650
+ set(value) {
651
+ this.#value = value;
652
+ if (!this.#storage.isMemory) {
653
+ this.#updatePending = true;
654
+ }
655
+ }
656
+ get isUpdatePending() {
657
+ return this.#updatePending;
658
+ }
659
+ mustGet() {
660
+ return this.#value === undefined ? (0, _0_deps_js_2.unreachable)() : this.#value;
661
+ }
662
+ async get() {
663
+ if (this.#value === undefined) {
664
+ this.#value = await this.#storage.get(this.#key);
665
+ }
666
+ return this.#value;
667
+ }
668
+ async commit() {
669
+ if (this.#storage.isMemory || this.#value === undefined) {
670
+ return;
671
+ }
672
+ await this.#storage.set(this.#key, this.#value);
673
+ this.#updatePending = false;
674
+ }
675
+ }
676
+ class StorageAuth extends StorageValue {
677
+ constructor(storage) {
678
+ super(storage, "auth");
679
+ }
680
+ async get() {
681
+ const value = await super.get();
682
+ await this.#resetAuthKeyId(value);
683
+ return value;
684
+ }
685
+ mustGet() {
686
+ return super.mustGet() ?? {
687
+ apiId: 0,
688
+ authKey: new Uint8Array(),
689
+ dc: null,
690
+ isBot: false,
691
+ userId: 0,
692
+ };
693
+ }
694
+ async set(auth) {
695
+ super.set(auth);
696
+ await this.#resetAuthKeyId(auth);
697
+ }
698
+ async update(fn) {
699
+ const auth = this.mustGet();
700
+ fn(auth);
701
+ await this.set(auth);
702
+ }
703
+ #authKeyId = null;
704
+ async #resetAuthKeyId(auth) {
705
+ if (auth?.authKey) {
706
+ this.#authKeyId = (0, _1_utilities_js_1.bigIntFromBuffer)((await (0, _1_utilities_js_1.sha1)(auth.authKey)).subarray(-8), true, false);
707
+ }
708
+ else {
709
+ this.#authKeyId = null;
710
+ }
711
+ }
712
+ get authKeyId() {
713
+ return this.#authKeyId;
714
+ }
715
+ }
@@ -19,8 +19,8 @@
19
19
  */
20
20
  import type { Api } from "../2_tl.js";
21
21
  import type { Update } from "../3_types.js";
22
- export interface UpdateProcessor<U extends Api.Update> {
22
+ export interface UpdateProcessor<U extends Api.Update, P extends boolean = false> {
23
23
  canHandleUpdate(update: Api.Update): update is U;
24
- handleUpdate(update: U): Promise<Update | null>;
24
+ handleUpdate(update: U): P extends false ? Update | null : Promise<Update | null>;
25
25
  }
26
26
  //# sourceMappingURL=0_update_processor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"0_update_processor.d.ts","sourceRoot":"","sources":["../../src/client/0_update_processor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,GAAG,CAAC,MAAM;IACnD,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,IAAI,CAAC,CAAC;IACjD,YAAY,CAAC,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CACjD"}
1
+ {"version":3,"file":"0_update_processor.d.ts","sourceRoot":"","sources":["../../src/client/0_update_processor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,GAAG,CAAC,MAAM,EAAE,CAAC,SAAS,OAAO,GAAG,KAAK;IAC9E,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,IAAI,CAAC,CAAC;IACjD,YAAY,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CACnF"}