@mtkruto/node 0.1.147 → 0.1.149

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 (621) hide show
  1. package/esm/0_deps.d.ts +4 -4
  2. package/esm/0_deps.js +5 -5
  3. package/esm/1_utilities.d.ts +1 -0
  4. package/esm/1_utilities.js +1 -0
  5. package/esm/3_types.d.ts +2 -2
  6. package/esm/3_types.js +2 -2
  7. package/esm/4_constants.d.ts +1 -1
  8. package/esm/4_constants.js +1 -1
  9. package/esm/client/0_types.d.ts +1 -0
  10. package/esm/client/1_file_manager.js +2 -1
  11. package/esm/client/1_reaction_manager.js +3 -3
  12. package/esm/client/1_update_manager.js +10 -10
  13. package/esm/client/2_message_manager.d.ts +2 -0
  14. package/esm/client/2_message_manager.js +42 -31
  15. package/esm/client/3_chat_list_manager.js +1 -1
  16. package/esm/client/4_client.d.ts +21 -0
  17. package/esm/client/4_client.js +89 -40
  18. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.js +3 -2
  19. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.js +2 -2
  20. package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/fmt/colors.d.ts +1 -1
  21. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/fmt/colors.js +3 -1
  22. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.d.ts +10 -8
  23. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.js +4 -4
  24. package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/media_types/extension.d.ts +3 -3
  25. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extension.js +3 -3
  26. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.d.ts +1 -1
  27. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.js +1 -1
  28. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.d.ts +3 -3
  29. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.js +3 -3
  30. package/esm/deps/deno.land/std@0.214.0/media_types/parse_media_type.d.ts +23 -0
  31. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/parse_media_type.js +7 -21
  32. package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/media_types/type_by_extension.d.ts +2 -2
  33. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/type_by_extension.js +2 -2
  34. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/common.d.ts +1 -2
  35. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/common.js +2 -2
  36. package/esm/deps/deno.land/std@0.214.0/path/constants.d.ts +3 -0
  37. package/esm/deps/deno.land/std@0.214.0/path/constants.js +6 -0
  38. package/esm/deps/deno.land/std@0.214.0/path/mod.d.ts +65 -0
  39. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/mod.js +10 -5
  40. package/{script/deps/deno.land/std@0.212.0/path → esm/deps/deno.land/std@0.214.0/path/posix}/common.d.ts +1 -2
  41. package/esm/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/common.js +2 -2
  42. package/esm/deps/deno.land/std@0.214.0/path/posix/constants.d.ts +3 -0
  43. package/esm/deps/deno.land/{std@0.212.0/path/posix/separator.js → std@0.214.0/path/posix/constants.js} +3 -2
  44. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join_globs.js +2 -2
  45. package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/path/posix/mod.d.ts +8 -1
  46. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/mod.js +8 -1
  47. package/esm/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/normalize_glob.js +2 -2
  48. package/esm/deps/deno.land/std@0.214.0/path/posix/separator.d.ts +8 -0
  49. package/esm/deps/deno.land/std@0.214.0/path/posix/separator.js +10 -0
  50. package/esm/deps/deno.land/std@0.214.0/path/separator.d.ts +8 -0
  51. package/esm/deps/deno.land/std@0.214.0/path/separator.js +11 -0
  52. package/esm/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/common.d.ts +1 -2
  53. package/esm/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/common.js +2 -2
  54. package/esm/deps/deno.land/std@0.214.0/path/windows/constants.d.ts +3 -0
  55. package/esm/deps/deno.land/std@0.214.0/path/windows/constants.js +5 -0
  56. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join_globs.js +2 -2
  57. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.d.ts +7 -0
  58. package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.js +7 -0
  59. package/esm/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/normalize_glob.js +2 -2
  60. package/esm/deps/deno.land/std@0.214.0/path/windows/separator.d.ts +8 -0
  61. package/esm/deps/deno.land/std@0.214.0/path/windows/separator.js +10 -0
  62. package/esm/storage/0_storage.d.ts +63 -11
  63. package/esm/storage/0_storage.js +159 -88
  64. package/esm/storage/1_storage_memory.d.ts +4 -1
  65. package/esm/storage/1_storage_memory.js +29 -9
  66. package/esm/tl/3_utilities.d.ts +5 -2
  67. package/esm/tl/3_utilities.js +32 -6
  68. package/esm/types/0_giveaway_parameters.d.ts +1 -0
  69. package/esm/types/0_login_url.d.ts +1 -0
  70. package/esm/types/0_mask_position.d.ts +1 -0
  71. package/esm/types/0_message_reference.d.ts +5 -0
  72. package/esm/types/0_poll_option.d.ts +1 -0
  73. package/esm/types/0_price_tag.d.ts +5 -0
  74. package/esm/types/0_restriction_reason.d.ts +1 -0
  75. package/esm/types/1_giveaway.d.ts +1 -0
  76. package/esm/types/1_inline_query_result_button.d.ts +1 -0
  77. package/esm/types/1_input_message_content.d.ts +2 -2
  78. package/esm/types/1_poll.d.ts +1 -0
  79. package/esm/types/1_reaction_count.d.ts +1 -0
  80. package/esm/types/1_reply_quote.d.ts +1 -0
  81. package/esm/types/1_sticker.d.ts +1 -0
  82. package/esm/types/2_chat_member.d.ts +1 -0
  83. package/esm/types/2_chosen_inline_result.d.ts +1 -0
  84. package/esm/types/2_game.d.ts +1 -0
  85. package/esm/types/2_message_interactions.d.ts +1 -0
  86. package/esm/types/2_message_reactions.d.ts +1 -0
  87. package/esm/types/3_chat_member_updated.d.ts +1 -0
  88. package/esm/types/3_reply_markup.d.ts +1 -0
  89. package/esm/types/4_inline_query_result.d.ts +1 -1
  90. package/esm/types/4_message.d.ts +1 -0
  91. package/esm/types/5_callback_query.d.ts +1 -0
  92. package/esm/types/5_callback_query.js +17 -2
  93. package/esm/types/6_update.d.ts +2 -2
  94. package/esm/utilities/0_cache_map.d.ts +6 -0
  95. package/esm/utilities/0_cache_map.js +30 -0
  96. package/package.json +1 -1
  97. package/script/0_deps.d.ts +4 -4
  98. package/script/0_deps.js +5 -5
  99. package/script/1_utilities.d.ts +1 -0
  100. package/script/1_utilities.js +1 -0
  101. package/script/3_types.d.ts +2 -2
  102. package/script/3_types.js +2 -2
  103. package/script/4_constants.d.ts +1 -1
  104. package/script/4_constants.js +1 -1
  105. package/script/client/0_types.d.ts +1 -0
  106. package/script/client/1_file_manager.js +2 -1
  107. package/script/client/1_reaction_manager.js +3 -3
  108. package/script/client/1_update_manager.js +10 -10
  109. package/script/client/2_message_manager.d.ts +2 -0
  110. package/script/client/2_message_manager.js +41 -30
  111. package/script/client/3_chat_list_manager.js +1 -1
  112. package/script/client/4_client.d.ts +21 -0
  113. package/script/client/4_client.js +88 -39
  114. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.js +4 -3
  115. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.js +2 -2
  116. package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/fmt/colors.d.ts +1 -1
  117. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/fmt/colors.js +4 -1
  118. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.d.ts +10 -8
  119. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.js +4 -4
  120. package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/media_types/extension.d.ts +3 -3
  121. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extension.js +3 -3
  122. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.d.ts +1 -1
  123. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.js +1 -1
  124. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.d.ts +3 -3
  125. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.js +3 -3
  126. package/script/deps/deno.land/std@0.214.0/media_types/parse_media_type.d.ts +23 -0
  127. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/parse_media_type.js +7 -21
  128. package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/media_types/type_by_extension.d.ts +2 -2
  129. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/type_by_extension.js +2 -2
  130. package/{esm/deps/deno.land/std@0.212.0/path/windows → script/deps/deno.land/std@0.214.0/path}/common.d.ts +1 -2
  131. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/common.js +2 -2
  132. package/script/deps/deno.land/std@0.214.0/path/constants.d.ts +3 -0
  133. package/script/deps/deno.land/std@0.214.0/path/constants.js +9 -0
  134. package/script/deps/deno.land/std@0.214.0/path/mod.d.ts +65 -0
  135. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/mod.js +10 -5
  136. package/script/deps/deno.land/std@0.214.0/path/posix/common.d.ts +13 -0
  137. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/common.js +2 -2
  138. package/script/deps/deno.land/std@0.214.0/path/posix/constants.d.ts +3 -0
  139. package/script/deps/deno.land/{std@0.212.0/path/posix/separator.js → std@0.214.0/path/posix/constants.js} +4 -3
  140. package/script/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/join_globs.js +2 -2
  141. package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/path/posix/mod.d.ts +8 -1
  142. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/mod.js +8 -1
  143. package/script/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/normalize_glob.js +2 -2
  144. package/script/deps/deno.land/std@0.214.0/path/posix/separator.d.ts +8 -0
  145. package/script/deps/deno.land/std@0.214.0/path/posix/separator.js +13 -0
  146. package/script/deps/deno.land/std@0.214.0/path/separator.d.ts +8 -0
  147. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/separator.js +6 -0
  148. package/script/deps/deno.land/std@0.214.0/path/windows/common.d.ts +13 -0
  149. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/common.js +2 -2
  150. package/script/deps/deno.land/std@0.214.0/path/windows/constants.d.ts +3 -0
  151. package/script/deps/deno.land/{std@0.212.0/path/windows/separator.js → std@0.214.0/path/windows/constants.js} +4 -3
  152. package/script/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/join_globs.js +2 -2
  153. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.d.ts +7 -0
  154. package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.js +7 -0
  155. package/script/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/normalize_glob.js +2 -2
  156. package/script/deps/deno.land/std@0.214.0/path/windows/separator.d.ts +8 -0
  157. package/script/deps/deno.land/std@0.214.0/path/windows/separator.js +13 -0
  158. package/script/storage/0_storage.d.ts +63 -11
  159. package/script/storage/0_storage.js +159 -88
  160. package/script/storage/1_storage_memory.d.ts +4 -1
  161. package/script/storage/1_storage_memory.js +29 -9
  162. package/script/tl/3_utilities.d.ts +5 -2
  163. package/script/tl/3_utilities.js +35 -7
  164. package/script/types/0_giveaway_parameters.d.ts +1 -0
  165. package/script/types/0_login_url.d.ts +1 -0
  166. package/script/types/0_mask_position.d.ts +1 -0
  167. package/script/types/0_message_reference.d.ts +5 -0
  168. package/script/types/0_poll_option.d.ts +1 -0
  169. package/script/types/0_price_tag.d.ts +5 -0
  170. package/script/types/0_restriction_reason.d.ts +1 -0
  171. package/script/types/1_giveaway.d.ts +1 -0
  172. package/script/types/1_inline_query_result_button.d.ts +1 -0
  173. package/script/types/1_input_message_content.d.ts +2 -2
  174. package/script/types/1_poll.d.ts +1 -0
  175. package/script/types/1_reaction_count.d.ts +1 -0
  176. package/script/types/1_reply_quote.d.ts +1 -0
  177. package/script/types/1_sticker.d.ts +1 -0
  178. package/script/types/2_chat_member.d.ts +1 -0
  179. package/script/types/2_chosen_inline_result.d.ts +1 -0
  180. package/script/types/2_game.d.ts +1 -0
  181. package/script/types/2_message_interactions.d.ts +1 -0
  182. package/script/types/2_message_reactions.d.ts +1 -0
  183. package/script/types/3_chat_member_updated.d.ts +1 -0
  184. package/script/types/3_reply_markup.d.ts +1 -0
  185. package/script/types/4_inline_query_result.d.ts +1 -1
  186. package/script/types/4_message.d.ts +1 -0
  187. package/script/types/5_callback_query.d.ts +1 -0
  188. package/script/types/5_callback_query.js +17 -1
  189. package/script/types/6_update.d.ts +2 -2
  190. package/script/utilities/0_cache_map.d.ts +6 -0
  191. package/script/utilities/0_cache_map.js +34 -0
  192. package/esm/deps/deno.land/std@0.212.0/media_types/parse_media_type.d.ts +0 -37
  193. package/esm/deps/deno.land/std@0.212.0/path/mod.d.ts +0 -28
  194. package/esm/deps/deno.land/std@0.212.0/path/posix/separator.d.ts +0 -2
  195. package/esm/deps/deno.land/std@0.212.0/path/separator.d.ts +0 -2
  196. package/esm/deps/deno.land/std@0.212.0/path/separator.js +0 -5
  197. package/esm/deps/deno.land/std@0.212.0/path/windows/separator.d.ts +0 -2
  198. package/esm/deps/deno.land/std@0.212.0/path/windows/separator.js +0 -4
  199. package/esm/types/0_labeled_price.d.ts +0 -4
  200. package/esm/types/0_message_identifier.d.ts +0 -4
  201. package/script/deps/deno.land/std@0.212.0/media_types/parse_media_type.d.ts +0 -37
  202. package/script/deps/deno.land/std@0.212.0/path/mod.d.ts +0 -28
  203. package/script/deps/deno.land/std@0.212.0/path/posix/common.d.ts +0 -14
  204. package/script/deps/deno.land/std@0.212.0/path/posix/separator.d.ts +0 -2
  205. package/script/deps/deno.land/std@0.212.0/path/separator.d.ts +0 -2
  206. package/script/deps/deno.land/std@0.212.0/path/windows/common.d.ts +0 -14
  207. package/script/deps/deno.land/std@0.212.0/path/windows/separator.d.ts +0 -2
  208. package/script/types/0_labeled_price.d.ts +0 -4
  209. package/script/types/0_message_identifier.d.ts +0 -4
  210. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.d.ts +0 -0
  211. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.js +0 -0
  212. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.d.ts +0 -0
  213. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.js +0 -0
  214. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.d.ts +0 -0
  215. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.js +0 -0
  216. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.d.ts +0 -0
  217. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.js +0 -0
  218. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.d.ts +0 -0
  219. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.js +0 -0
  220. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.d.ts +0 -0
  221. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.js +0 -0
  222. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.d.ts +0 -0
  223. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.js +0 -0
  224. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.d.ts +0 -0
  225. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.js +0 -0
  226. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.d.ts +0 -0
  227. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.js +0 -0
  228. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.d.ts +0 -0
  229. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.js +0 -0
  230. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.d.ts +0 -0
  231. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.js +0 -0
  232. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.d.ts +0 -0
  233. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.js +0 -0
  234. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.d.ts +0 -0
  235. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.js +0 -0
  236. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.d.ts +0 -0
  237. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.js +0 -0
  238. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.d.ts +0 -0
  239. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.js +0 -0
  240. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.d.ts +0 -0
  241. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.js +0 -0
  242. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.d.ts +0 -0
  243. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.d.ts +0 -0
  244. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.js +0 -0
  245. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.d.ts +0 -0
  246. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.js +0 -0
  247. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.d.ts +0 -0
  248. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.js +0 -0
  249. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.d.ts +0 -0
  250. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.js +0 -0
  251. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.d.ts +0 -0
  252. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.js +0 -0
  253. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.d.ts +0 -0
  254. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.js +0 -0
  255. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.d.ts +0 -0
  256. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.js +0 -0
  257. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.d.ts +0 -0
  258. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.js +0 -0
  259. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.d.ts +0 -0
  260. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.js +0 -0
  261. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.d.ts +0 -0
  262. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.js +0 -0
  263. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.d.ts +0 -0
  264. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.js +0 -0
  265. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.d.ts +0 -0
  266. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.js +0 -0
  267. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.d.ts +0 -0
  268. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.js +0 -0
  269. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.d.ts +0 -0
  270. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.js +0 -0
  271. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.d.ts +0 -0
  272. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.js +0 -0
  273. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.d.ts +0 -0
  274. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.d.ts +0 -0
  275. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.js +0 -0
  276. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.d.ts +0 -0
  277. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.js +0 -0
  278. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.d.ts +0 -0
  279. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.js +0 -0
  280. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  281. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  282. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.d.ts +0 -0
  283. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.js +0 -0
  284. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.d.ts +0 -0
  285. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.js +0 -0
  286. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.d.ts +0 -0
  287. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.js +0 -0
  288. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.d.ts +0 -0
  289. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.js +0 -0
  290. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.d.ts +0 -0
  291. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.js +0 -0
  292. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.d.ts +0 -0
  293. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.js +0 -0
  294. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.d.ts +0 -0
  295. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.js +0 -0
  296. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  297. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.js +0 -0
  298. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.d.ts +0 -0
  299. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.js +0 -0
  300. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.d.ts +0 -0
  301. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.js +0 -0
  302. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.d.ts +0 -0
  303. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.js +0 -0
  304. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  305. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.js +0 -0
  306. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.d.ts +0 -0
  307. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.js +0 -0
  308. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.d.ts +0 -0
  309. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.js +0 -0
  310. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.d.ts +0 -0
  311. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.js +0 -0
  312. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.d.ts +0 -0
  313. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.js +0 -0
  314. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.d.ts +0 -0
  315. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.js +0 -0
  316. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.d.ts +0 -0
  317. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.js +0 -0
  318. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.d.ts +0 -0
  319. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.js +0 -0
  320. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.d.ts +0 -0
  321. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.js +0 -0
  322. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.d.ts +0 -0
  323. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.js +0 -0
  324. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.d.ts +0 -0
  325. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.js +0 -0
  326. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.d.ts +0 -0
  327. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.js +0 -0
  328. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.d.ts +0 -0
  329. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.js +0 -0
  330. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.d.ts +0 -0
  331. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.js +0 -0
  332. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.d.ts +0 -0
  333. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.js +0 -0
  334. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.d.ts +0 -0
  335. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.js +0 -0
  336. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.d.ts +0 -0
  337. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.js +0 -0
  338. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.d.ts +0 -0
  339. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.js +0 -0
  340. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.d.ts +0 -0
  341. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.js +0 -0
  342. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.d.ts +0 -0
  343. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.js +0 -0
  344. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.d.ts +0 -0
  345. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.js +0 -0
  346. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.d.ts +0 -0
  347. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.js +0 -0
  348. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.d.ts +0 -0
  349. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.js +0 -0
  350. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.d.ts +0 -0
  351. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.js +0 -0
  352. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.d.ts +0 -0
  353. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.js +0 -0
  354. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.d.ts +0 -0
  355. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.js +0 -0
  356. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.d.ts +0 -0
  357. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.js +0 -0
  358. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join_globs.d.ts +0 -0
  359. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.d.ts +0 -0
  360. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.js +0 -0
  361. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize_glob.d.ts +0 -0
  362. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.d.ts +0 -0
  363. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.js +0 -0
  364. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.d.ts +0 -0
  365. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.js +0 -0
  366. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.d.ts +0 -0
  367. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.js +0 -0
  368. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.d.ts +0 -0
  369. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.js +0 -0
  370. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.d.ts +0 -0
  371. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.js +0 -0
  372. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.d.ts +0 -0
  373. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.js +0 -0
  374. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.d.ts +0 -0
  375. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.js +0 -0
  376. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.d.ts +0 -0
  377. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.js +0 -0
  378. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.d.ts +0 -0
  379. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.js +0 -0
  380. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.d.ts +0 -0
  381. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.js +0 -0
  382. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.d.ts +0 -0
  383. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.js +0 -0
  384. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.d.ts +0 -0
  385. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.js +0 -0
  386. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.d.ts +0 -0
  387. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.js +0 -0
  388. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.d.ts +0 -0
  389. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.js +0 -0
  390. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.d.ts +0 -0
  391. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.js +0 -0
  392. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.d.ts +0 -0
  393. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.js +0 -0
  394. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.d.ts +0 -0
  395. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.js +0 -0
  396. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.d.ts +0 -0
  397. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.js +0 -0
  398. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.d.ts +0 -0
  399. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.js +0 -0
  400. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join_globs.d.ts +0 -0
  401. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.d.ts +0 -0
  402. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.js +0 -0
  403. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize_glob.d.ts +0 -0
  404. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.d.ts +0 -0
  405. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.js +0 -0
  406. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.d.ts +0 -0
  407. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.js +0 -0
  408. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.d.ts +0 -0
  409. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.js +0 -0
  410. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.d.ts +0 -0
  411. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.js +0 -0
  412. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.d.ts +0 -0
  413. /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.js +0 -0
  414. /package/esm/types/{0_labeled_price.js → 0_message_reference.js} +0 -0
  415. /package/esm/types/{0_message_identifier.js → 0_price_tag.js} +0 -0
  416. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.d.ts +0 -0
  417. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.js +0 -0
  418. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.d.ts +0 -0
  419. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.js +0 -0
  420. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.d.ts +0 -0
  421. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.js +0 -0
  422. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.d.ts +0 -0
  423. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.js +0 -0
  424. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.d.ts +0 -0
  425. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.js +0 -0
  426. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.d.ts +0 -0
  427. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.js +0 -0
  428. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.d.ts +0 -0
  429. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.js +0 -0
  430. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.d.ts +0 -0
  431. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.js +0 -0
  432. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.d.ts +0 -0
  433. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.js +0 -0
  434. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.d.ts +0 -0
  435. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.js +0 -0
  436. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.d.ts +0 -0
  437. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.js +0 -0
  438. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.d.ts +0 -0
  439. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.js +0 -0
  440. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.d.ts +0 -0
  441. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.js +0 -0
  442. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.d.ts +0 -0
  443. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.js +0 -0
  444. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.d.ts +0 -0
  445. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.js +0 -0
  446. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.d.ts +0 -0
  447. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.js +0 -0
  448. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.d.ts +0 -0
  449. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.d.ts +0 -0
  450. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.js +0 -0
  451. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.d.ts +0 -0
  452. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.js +0 -0
  453. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.d.ts +0 -0
  454. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.js +0 -0
  455. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.d.ts +0 -0
  456. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.js +0 -0
  457. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.d.ts +0 -0
  458. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.js +0 -0
  459. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.d.ts +0 -0
  460. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.js +0 -0
  461. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.d.ts +0 -0
  462. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.js +0 -0
  463. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.d.ts +0 -0
  464. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.js +0 -0
  465. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.d.ts +0 -0
  466. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.js +0 -0
  467. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.d.ts +0 -0
  468. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.js +0 -0
  469. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.d.ts +0 -0
  470. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.js +0 -0
  471. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.d.ts +0 -0
  472. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.js +0 -0
  473. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.d.ts +0 -0
  474. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.js +0 -0
  475. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.d.ts +0 -0
  476. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.js +0 -0
  477. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.d.ts +0 -0
  478. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.js +0 -0
  479. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.d.ts +0 -0
  480. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.d.ts +0 -0
  481. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.js +0 -0
  482. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.d.ts +0 -0
  483. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.js +0 -0
  484. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.d.ts +0 -0
  485. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.js +0 -0
  486. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  487. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  488. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.d.ts +0 -0
  489. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.js +0 -0
  490. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.d.ts +0 -0
  491. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.js +0 -0
  492. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.d.ts +0 -0
  493. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.js +0 -0
  494. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.d.ts +0 -0
  495. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.js +0 -0
  496. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.d.ts +0 -0
  497. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.js +0 -0
  498. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.d.ts +0 -0
  499. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.js +0 -0
  500. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.d.ts +0 -0
  501. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.js +0 -0
  502. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  503. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.js +0 -0
  504. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.d.ts +0 -0
  505. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.js +0 -0
  506. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.d.ts +0 -0
  507. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.js +0 -0
  508. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.d.ts +0 -0
  509. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.js +0 -0
  510. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  511. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.js +0 -0
  512. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.d.ts +0 -0
  513. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.js +0 -0
  514. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.d.ts +0 -0
  515. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.js +0 -0
  516. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.d.ts +0 -0
  517. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.js +0 -0
  518. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.d.ts +0 -0
  519. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.js +0 -0
  520. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.d.ts +0 -0
  521. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.js +0 -0
  522. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.d.ts +0 -0
  523. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.js +0 -0
  524. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.d.ts +0 -0
  525. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.js +0 -0
  526. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.d.ts +0 -0
  527. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.js +0 -0
  528. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.d.ts +0 -0
  529. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.js +0 -0
  530. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.d.ts +0 -0
  531. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.js +0 -0
  532. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.d.ts +0 -0
  533. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.js +0 -0
  534. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.d.ts +0 -0
  535. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.js +0 -0
  536. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.d.ts +0 -0
  537. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.js +0 -0
  538. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.d.ts +0 -0
  539. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.js +0 -0
  540. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.d.ts +0 -0
  541. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.js +0 -0
  542. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.d.ts +0 -0
  543. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.js +0 -0
  544. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.d.ts +0 -0
  545. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.js +0 -0
  546. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.d.ts +0 -0
  547. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.js +0 -0
  548. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.d.ts +0 -0
  549. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.js +0 -0
  550. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.d.ts +0 -0
  551. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.js +0 -0
  552. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.d.ts +0 -0
  553. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.js +0 -0
  554. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.d.ts +0 -0
  555. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.js +0 -0
  556. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.d.ts +0 -0
  557. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.js +0 -0
  558. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.d.ts +0 -0
  559. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.js +0 -0
  560. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.d.ts +0 -0
  561. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.js +0 -0
  562. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.d.ts +0 -0
  563. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.js +0 -0
  564. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join_globs.d.ts +0 -0
  565. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.d.ts +0 -0
  566. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.js +0 -0
  567. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize_glob.d.ts +0 -0
  568. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.d.ts +0 -0
  569. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.js +0 -0
  570. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.d.ts +0 -0
  571. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.js +0 -0
  572. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.d.ts +0 -0
  573. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.js +0 -0
  574. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.d.ts +0 -0
  575. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.js +0 -0
  576. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.d.ts +0 -0
  577. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.js +0 -0
  578. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.d.ts +0 -0
  579. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.js +0 -0
  580. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.d.ts +0 -0
  581. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.js +0 -0
  582. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.d.ts +0 -0
  583. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.js +0 -0
  584. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.d.ts +0 -0
  585. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.js +0 -0
  586. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.d.ts +0 -0
  587. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.js +0 -0
  588. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.d.ts +0 -0
  589. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.js +0 -0
  590. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.d.ts +0 -0
  591. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.js +0 -0
  592. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.d.ts +0 -0
  593. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.js +0 -0
  594. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.d.ts +0 -0
  595. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.js +0 -0
  596. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.d.ts +0 -0
  597. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.js +0 -0
  598. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.d.ts +0 -0
  599. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.js +0 -0
  600. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.d.ts +0 -0
  601. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.js +0 -0
  602. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.d.ts +0 -0
  603. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.js +0 -0
  604. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.d.ts +0 -0
  605. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.js +0 -0
  606. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join_globs.d.ts +0 -0
  607. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.d.ts +0 -0
  608. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.js +0 -0
  609. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize_glob.d.ts +0 -0
  610. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.d.ts +0 -0
  611. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.js +0 -0
  612. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.d.ts +0 -0
  613. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.js +0 -0
  614. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.d.ts +0 -0
  615. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.js +0 -0
  616. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.d.ts +0 -0
  617. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.js +0 -0
  618. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.d.ts +0 -0
  619. /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.js +0 -0
  620. /package/script/types/{0_labeled_price.js → 0_message_reference.js} +0 -0
  621. /package/script/types/{0_message_identifier.js → 0_price_tag.js} +0 -0
@@ -1,6 +1,55 @@
1
1
  import { MaybePromise } from "../1_utilities.js";
2
- import { enums, TLObject, types } from "../2_tl.js";
2
+ import { AnyEntity, enums, TLObject, types } from "../2_tl.js";
3
3
  import { DC } from "../3_transport.js";
4
+ export declare const K: {
5
+ session: {
6
+ P: (string: string) => string;
7
+ serverSalt: () => string[];
8
+ };
9
+ auth: {
10
+ P: (string: string) => string;
11
+ dc: () => string[];
12
+ key: () => string[];
13
+ accountType: () => string[];
14
+ };
15
+ updates: {
16
+ P: (string: string) => string;
17
+ state: () => string[];
18
+ all: () => string[];
19
+ updates: (boxId: bigint) => (string | bigint)[];
20
+ update: (boxId: bigint, id: bigint) => (string | bigint)[];
21
+ channelPts: (channelId: bigint) => (string | bigint)[];
22
+ };
23
+ cache: {
24
+ P: (string: string) => string;
25
+ usernames: () => string[];
26
+ username: (v: string) => string[];
27
+ peers: () => string[];
28
+ peer: (id: number) => (string | number)[];
29
+ stickerSetNames: () => string[];
30
+ stickerSetName: (id: bigint, accessHash: bigint) => (string | bigint)[];
31
+ files: () => string[];
32
+ file: (fileId: bigint) => (string | bigint)[];
33
+ fileParts: () => string[];
34
+ filePart: (fileId: bigint, n: number) => (string | number | bigint)[];
35
+ customEmojiDocuments: () => string[];
36
+ customEmojiDocument: (id: bigint) => (string | bigint)[];
37
+ };
38
+ messages: {
39
+ P: (string: string) => string;
40
+ messages: (chatId: number) => (string | number)[];
41
+ message: (chatId: number, messageId: number) => (string | number)[];
42
+ allMessageRefs: () => string[];
43
+ messageRef: (messageId: number) => (string | number)[];
44
+ };
45
+ chatlists: {
46
+ P: (string: string) => string;
47
+ hasAllChats: (listId: number) => (string | number)[];
48
+ chats: (listId: number) => (string | number)[];
49
+ chat: (listId: number, chatId: number) => (string | number)[];
50
+ pinnedChats: (listId: number) => (string | number)[];
51
+ };
52
+ };
4
53
  export type StorageKeyPart = string | number | bigint;
5
54
  export type GetManyFilter = {
6
55
  prefix: readonly StorageKeyPart[];
@@ -25,10 +74,10 @@ export declare abstract class Storage {
25
74
  getAuthKey(): Promise<Uint8Array | null>;
26
75
  setAuthKey(authKey: Uint8Array | null): Promise<void>;
27
76
  get authKeyId(): bigint | null;
28
- getChannelAccessHash(id: bigint): Promise<bigint | null>;
29
- getUserAccessHash(id: bigint): Promise<bigint | null>;
30
- updateUsernames(type: "user" | "channel", id: bigint, usernames: string[]): Promise<void>;
31
- getUsername(username: string): Promise<["channel" | "user", bigint, Date] | null>;
77
+ getChannelAccessHash(id: number): Promise<bigint | null>;
78
+ getUserAccessHash(id: number): Promise<bigint | null>;
79
+ updateUsernames(id: number, usernames: string[]): Promise<void>;
80
+ getUsername(username: string): Promise<[number, Date] | null>;
32
81
  setTlObject(key: readonly StorageKeyPart[], value: TLObject | null): Promise<void>;
33
82
  getTlObject(keyOrBuffer: Uint8Array | readonly StorageKeyPart[]): Promise<import("../2_tl.js").ReadObject | null>;
34
83
  setState(state: enums.updates.State): Promise<void>;
@@ -40,13 +89,10 @@ export declare abstract class Storage {
40
89
  getLastMessage(chatId: number): Promise<enums.Message | null>;
41
90
  setChannelPts(channelId: bigint, pts: number): Promise<void>;
42
91
  getChannelPts(channelId: bigint): MaybePromise<number | null>;
43
- setEntity(entity: types.User | types.Channel | types.ChannelForbidden | types.Chat | types.ChatForbidden): Promise<void>;
44
- getEntity(type: "channel", id: bigint): Promise<types.Channel | types.ChannelForbidden | null>;
45
- getEntity(type: "chat", id: bigint): Promise<types.Chat | types.ChatForbidden | null>;
46
- getEntity(type: "user", id: bigint): Promise<types.User | null>;
47
- getEntity(type: "channel" | "chat" | "user", id: bigint): Promise<types.Channel | types.ChannelForbidden | types.Chat | types.ChatForbidden | types.User | null>;
92
+ setEntity(entity: AnyEntity): Promise<void>;
93
+ getEntity(key: number): Promise<AnyEntity | null>;
48
94
  setAccountType(type: "user" | "bot"): Promise<void>;
49
- getAccountType(): MaybePromise<"bot" | "user" | null>;
95
+ getAccountType(): Promise<"bot" | "user" | null>;
50
96
  updateStickerSetName(id: bigint, accessHash: bigint, name: string): Promise<void>;
51
97
  getStickerSetName(id: bigint, accessHash: bigint): MaybePromise<[string, Date] | null>;
52
98
  setServerSalt(serverSalt: bigint): Promise<void>;
@@ -75,4 +121,10 @@ export declare abstract class Storage {
75
121
  getFirstUpdate(boxId: bigint): Promise<readonly [readonly StorageKeyPart[], import("../tl/2_types.js").UpdateNewMessage_ | import("../tl/2_types.js").UpdateMessageID_ | import("../tl/2_types.js").UpdateDeleteMessages_ | import("../tl/2_types.js").UpdateUserTyping_ | import("../tl/2_types.js").UpdateChatUserTyping_ | import("../tl/2_types.js").UpdateChatParticipants_ | import("../tl/2_types.js").UpdateUserStatus_ | import("../tl/2_types.js").UpdateUserName_ | import("../tl/2_types.js").UpdateNewAuthorization_ | import("../tl/2_types.js").UpdateNewEncryptedMessage_ | import("../tl/2_types.js").UpdateEncryptedChatTyping_ | import("../tl/2_types.js").UpdateEncryption_ | import("../tl/2_types.js").UpdateEncryptedMessagesRead_ | import("../tl/2_types.js").UpdateChatParticipantAdd_ | import("../tl/2_types.js").UpdateChatParticipantDelete_ | import("../tl/2_types.js").UpdateDcOptions_ | import("../tl/2_types.js").UpdateNotifySettings_ | import("../tl/2_types.js").UpdateServiceNotification_ | import("../tl/2_types.js").UpdatePrivacy_ | import("../tl/2_types.js").UpdateUserPhone_ | import("../tl/2_types.js").UpdateReadHistoryInbox_ | import("../tl/2_types.js").UpdateReadHistoryOutbox_ | import("../tl/2_types.js").UpdateWebPage_ | import("../tl/2_types.js").UpdateReadMessagesContents_ | import("../tl/2_types.js").UpdateChannelTooLong_ | import("../tl/2_types.js").UpdateChannel_ | import("../tl/2_types.js").UpdateNewChannelMessage_ | import("../tl/2_types.js").UpdateReadChannelInbox_ | import("../tl/2_types.js").UpdateDeleteChannelMessages_ | import("../tl/2_types.js").UpdateChannelMessageViews_ | import("../tl/2_types.js").UpdateChatParticipantAdmin_ | import("../tl/2_types.js").UpdateNewStickerSet_ | import("../tl/2_types.js").UpdateStickerSetsOrder_ | import("../tl/2_types.js").UpdateStickerSets_ | import("../tl/2_types.js").UpdateSavedGifs_ | import("../tl/2_types.js").UpdateBotInlineQuery_ | import("../tl/2_types.js").UpdateBotInlineSend_ | import("../tl/2_types.js").UpdateEditChannelMessage_ | import("../tl/2_types.js").UpdateBotCallbackQuery_ | import("../tl/2_types.js").UpdateEditMessage_ | import("../tl/2_types.js").UpdateInlineBotCallbackQuery_ | import("../tl/2_types.js").UpdateReadChannelOutbox_ | import("../tl/2_types.js").UpdateDraftMessage_ | import("../tl/2_types.js").UpdateReadFeaturedStickers_ | import("../tl/2_types.js").UpdateRecentStickers_ | import("../tl/2_types.js").UpdateConfig_ | import("../tl/2_types.js").UpdatePtsChanged_ | import("../tl/2_types.js").UpdateChannelWebPage_ | import("../tl/2_types.js").UpdateDialogPinned_ | import("../tl/2_types.js").UpdatePinnedDialogs_ | import("../tl/2_types.js").UpdateBotWebhookJSON_ | import("../tl/2_types.js").UpdateBotWebhookJSONQuery_ | import("../tl/2_types.js").UpdateBotShippingQuery_ | import("../tl/2_types.js").UpdateBotPrecheckoutQuery_ | import("../tl/2_types.js").UpdatePhoneCall_ | import("../tl/2_types.js").UpdateLangPackTooLong_ | import("../tl/2_types.js").UpdateLangPack_ | import("../tl/2_types.js").UpdateFavedStickers_ | import("../tl/2_types.js").UpdateChannelReadMessagesContents_ | import("../tl/2_types.js").UpdateContactsReset_ | import("../tl/2_types.js").UpdateChannelAvailableMessages_ | import("../tl/2_types.js").UpdateDialogUnreadMark_ | import("../tl/2_types.js").UpdateMessagePoll_ | import("../tl/2_types.js").UpdateChatDefaultBannedRights_ | import("../tl/2_types.js").UpdateFolderPeers_ | import("../tl/2_types.js").UpdatePeerSettings_ | import("../tl/2_types.js").UpdatePeerLocated_ | import("../tl/2_types.js").UpdateNewScheduledMessage_ | import("../tl/2_types.js").UpdateDeleteScheduledMessages_ | import("../tl/2_types.js").UpdateTheme_ | import("../tl/2_types.js").UpdateGeoLiveViewed_ | import("../tl/2_types.js").UpdateLoginToken_ | import("../tl/2_types.js").UpdateMessagePollVote_ | import("../tl/2_types.js").UpdateDialogFilter_ | import("../tl/2_types.js").UpdateDialogFilterOrder_ | import("../tl/2_types.js").UpdateDialogFilters_ | import("../tl/2_types.js").UpdatePhoneCallSignalingData_ | import("../tl/2_types.js").UpdateChannelMessageForwards_ | import("../tl/2_types.js").UpdateReadChannelDiscussionInbox_ | import("../tl/2_types.js").UpdateReadChannelDiscussionOutbox_ | import("../tl/2_types.js").UpdatePeerBlocked_ | import("../tl/2_types.js").UpdateChannelUserTyping_ | import("../tl/2_types.js").UpdatePinnedMessages_ | import("../tl/2_types.js").UpdatePinnedChannelMessages_ | import("../tl/2_types.js").UpdateChat_ | import("../tl/2_types.js").UpdateGroupCallParticipants_ | import("../tl/2_types.js").UpdateGroupCall_ | import("../tl/2_types.js").UpdatePeerHistoryTTL_ | import("../tl/2_types.js").UpdateChatParticipant_ | import("../tl/2_types.js").UpdateChannelParticipant_ | import("../tl/2_types.js").UpdateBotStopped_ | import("../tl/2_types.js").UpdateGroupCallConnection_ | import("../tl/2_types.js").UpdateBotCommands_ | import("../tl/2_types.js").UpdatePendingJoinRequests_ | import("../tl/2_types.js").UpdateBotChatInviteRequester_ | import("../tl/2_types.js").UpdateMessageReactions_ | import("../tl/2_types.js").UpdateAttachMenuBots_ | import("../tl/2_types.js").UpdateWebViewResultSent_ | import("../tl/2_types.js").UpdateBotMenuButton_ | import("../tl/2_types.js").UpdateSavedRingtones_ | import("../tl/2_types.js").UpdateTranscribedAudio_ | import("../tl/2_types.js").UpdateReadFeaturedEmojiStickers_ | import("../tl/2_types.js").UpdateUserEmojiStatus_ | import("../tl/2_types.js").UpdateRecentEmojiStatuses_ | import("../tl/2_types.js").UpdateRecentReactions_ | import("../tl/2_types.js").UpdateMoveStickerSetToTop_ | import("../tl/2_types.js").UpdateMessageExtendedMedia_ | import("../tl/2_types.js").UpdateChannelPinnedTopic_ | import("../tl/2_types.js").UpdateChannelPinnedTopics_ | import("../tl/2_types.js").UpdateUser_ | import("../tl/2_types.js").UpdateAutoSaveSettings_ | import("../tl/2_types.js").UpdateGroupInvitePrivacyForbidden_ | import("../tl/2_types.js").UpdateStory_ | import("../tl/2_types.js").UpdateReadStories_ | import("../tl/2_types.js").UpdateStoryID_ | import("../tl/2_types.js").UpdateStoriesStealthMode_ | import("../tl/2_types.js").UpdateSentStoryReaction_ | import("../tl/2_types.js").UpdateBotChatBoost_ | import("../tl/2_types.js").UpdateChannelViewForumAsMessages_ | import("../tl/2_types.js").UpdatePeerWallpaper_ | import("../tl/2_types.js").UpdateBotMessageReaction_ | import("../tl/2_types.js").UpdateBotMessageReactions_ | import("../tl/2_types.js").UpdateSavedDialogPinned_ | import("../tl/2_types.js").UpdatePinnedSavedDialogs_ | import("../tl/2_types.js").UpdateSavedReactionTags_] | null>;
76
122
  assertUser(source: string): Promise<void>;
77
123
  assertBot(source: string): Promise<void>;
124
+ deleteFiles(): Promise<void>;
125
+ deleteCustomEmojiDocuments(): Promise<void>;
126
+ deleteStickerSetNames(): Promise<void>;
127
+ deletePeers(): Promise<void>;
128
+ deleteUsernames(): Promise<void>;
129
+ clear(): Promise<void>;
78
130
  }
@@ -10,60 +10,91 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
11
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
12
  };
13
- var _Storage_instances, _Storage_authKeyId, _Storage_resetAuthKeyId, _Storage_getEntityType, _Storage_getUpdateId;
13
+ var _Storage_instances, _Storage_authKeyId, _Storage_resetAuthKeyId, _Storage_accountType, _Storage_getUpdateId;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.Storage = void 0;
15
+ exports.Storage = exports.K = void 0;
16
16
  const _1_utilities_js_1 = require("../1_utilities.js");
17
17
  const _2_tl_js_1 = require("../2_tl.js");
18
- const KPARTS__DC = ["dc"];
19
- const KPARTS__AUTH_KEY = ["authKey"];
20
- const KPARTS__USERNAME = (v) => ["username", v];
21
- const KPARTS__STATE = ["state"];
22
- const KPARTS__CHANNEL_PTS = (v) => ["channelPts", v];
23
- const KPARTS__PEER = (type, id) => ["peer", type, id];
24
- const KPARTS__ACCOUNT_TYPE = ["accountType"];
25
- const KPARTS__STICKER_SET_NAME = (id, accessHash) => ["stickerSetName", id, accessHash];
26
- const KPARTS_MESSAGE = (chatId, messageId) => ["messages", chatId, messageId];
27
- const KPARTS_MESSAGES = (chatId) => ["messages", chatId];
28
- const KPARTS_ALL_MESSAGE_REFS = ["messageRefs"];
29
- const KPARTS_MESSAGE_REF = (messageId) => ["messageRefs", messageId];
30
- const KPARTS_HAS_ALL_CHATS = (listId) => ["hasAllChats", listId];
31
- const KPARTS_CHATS = (listId) => ["chats", listId];
32
- const KPARTS_CHAT = (listId, chatId) => ["chats", listId, chatId];
33
- const KPARTS_PINNED_CHATS = (listId) => ["pinnedChats", listId];
34
- const KPARTS_SERVER_SALT = ["serverSalt"];
35
- const KPARTS_FILE = (fileId) => ["files", fileId];
36
- const KPARTS_FILE_PART = (fileId, n) => ["fileParts", fileId, n];
37
- const KPARTS_CEMOJI = (id) => ["customEmojiDocuments", id];
38
- const KPARTS_ALL_UPDATES = ["updates"];
39
- const KPARTS_UPDATES = (boxId) => ["updates", boxId];
40
- const KPARTS_UPDATE = (boxId, id) => ["updates", boxId, id];
18
+ // key parts
19
+ exports.K = {
20
+ session: {
21
+ P: (string) => `session.${string}`,
22
+ serverSalt: () => [exports.K.session.P("serverSalt")],
23
+ },
24
+ auth: {
25
+ P: (string) => `auth.${string}`,
26
+ dc: () => [exports.K.auth.P("dc")],
27
+ key: () => [exports.K.auth.P("key")],
28
+ accountType: () => [exports.K.auth.P("accountType")],
29
+ },
30
+ updates: {
31
+ P: (string) => `updates.${string}`,
32
+ state: () => [exports.K.updates.P("state")],
33
+ all: () => [exports.K.updates.P("updates")],
34
+ updates: (boxId) => [...exports.K.updates.all(), boxId],
35
+ update: (boxId, id) => [...exports.K.updates.updates(boxId), id],
36
+ channelPts: (channelId) => [exports.K.updates.P("channelPts"), channelId],
37
+ },
38
+ cache: {
39
+ P: (string) => `cache.${string}`,
40
+ usernames: () => [exports.K.cache.P("username")],
41
+ username: (v) => [...exports.K.cache.usernames(), v],
42
+ peers: () => [exports.K.cache.P("peer")],
43
+ peer: (id) => [...exports.K.cache.peers(), id],
44
+ stickerSetNames: () => [exports.K.cache.P("stickerSetNames")],
45
+ stickerSetName: (id, accessHash) => [...exports.K.cache.stickerSetNames(), id, accessHash],
46
+ files: () => [exports.K.cache.P("files")],
47
+ file: (fileId) => [...exports.K.cache.files(), fileId],
48
+ fileParts: () => [exports.K.cache.P("fileParts")],
49
+ filePart: (fileId, n) => [...exports.K.cache.fileParts(), fileId, n],
50
+ customEmojiDocuments: () => [exports.K.cache.P("customEmojiDocuments")],
51
+ customEmojiDocument: (id) => [...exports.K.cache.customEmojiDocuments(), id],
52
+ },
53
+ messages: {
54
+ P: (string) => `messages.${string}`,
55
+ messages: (chatId) => [exports.K.messages.P("messages"), chatId],
56
+ message: (chatId, messageId) => [...exports.K.messages.messages(chatId), messageId],
57
+ allMessageRefs: () => [exports.K.messages.P("messageRefs")],
58
+ messageRef: (messageId) => [...exports.K.messages.allMessageRefs(), messageId],
59
+ },
60
+ chatlists: {
61
+ P: (string) => `chatlists.${string}`,
62
+ hasAllChats: (listId) => [exports.K.chatlists.P("hasAllChats"), listId],
63
+ chats: (listId) => [exports.K.chatlists.P("chats"), listId],
64
+ chat: (listId, chatId) => [...exports.K.chatlists.chats(listId), chatId],
65
+ pinnedChats: (listId) => [exports.K.chatlists.P("pinnedChats"), listId],
66
+ },
67
+ };
41
68
  class Storage {
42
69
  constructor() {
43
70
  _Storage_instances.add(this);
44
71
  _Storage_authKeyId.set(this, null);
72
+ _Storage_accountType.set(this, null);
45
73
  }
46
74
  setDc(dc) {
47
- return this.set(KPARTS__DC, dc);
75
+ return this.set(exports.K.auth.dc(), dc);
48
76
  }
49
77
  getDc() {
50
- return this.get(KPARTS__DC);
78
+ return this.get(exports.K.auth.dc());
51
79
  }
52
80
  async getAuthKey() {
53
- const authKey = await this.get(KPARTS__AUTH_KEY);
81
+ const authKey = await this.get(exports.K.auth.key());
54
82
  await __classPrivateFieldGet(this, _Storage_instances, "m", _Storage_resetAuthKeyId).call(this, authKey);
55
83
  return authKey;
56
84
  }
57
85
  async setAuthKey(authKey) {
58
- await this.set(KPARTS__AUTH_KEY, authKey);
86
+ await this.set(exports.K.auth.key(), authKey);
59
87
  await __classPrivateFieldGet(this, _Storage_instances, "m", _Storage_resetAuthKeyId).call(this, authKey);
60
88
  }
61
89
  get authKeyId() {
62
90
  return __classPrivateFieldGet(this, _Storage_authKeyId, "f");
63
91
  }
64
92
  async getChannelAccessHash(id) {
65
- const channel = await this.getEntity("channel", id);
93
+ const channel = await this.getEntity(id);
66
94
  if (channel) {
95
+ if (!(channel instanceof _2_tl_js_1.types.Channel) && !(channel instanceof _2_tl_js_1.types.ChannelForbidden)) {
96
+ (0, _1_utilities_js_1.UNREACHABLE)();
97
+ }
67
98
  return typeof channel.access_hash === "bigint" ? channel.access_hash : null;
68
99
  }
69
100
  else {
@@ -71,23 +102,26 @@ class Storage {
71
102
  }
72
103
  }
73
104
  async getUserAccessHash(id) {
74
- const user = await this.getEntity("user", id);
105
+ const user = await this.getEntity(id);
75
106
  if (user) {
107
+ if (!(user instanceof _2_tl_js_1.types.User)) {
108
+ (0, _1_utilities_js_1.UNREACHABLE)();
109
+ }
76
110
  return typeof user.access_hash === "bigint" ? user.access_hash : null;
77
111
  }
78
112
  else {
79
113
  return null;
80
114
  }
81
115
  }
82
- async updateUsernames(type, id, usernames) {
116
+ async updateUsernames(id, usernames) {
83
117
  for (let username of usernames) {
84
118
  username = username.toLowerCase();
85
- await this.set(KPARTS__USERNAME(username), [type, id, new Date()]);
119
+ await this.set(exports.K.cache.username(username), [id, new Date()]);
86
120
  }
87
121
  }
88
122
  async getUsername(username) {
89
123
  username = username.toLowerCase();
90
- return await this.get(KPARTS__USERNAME(username));
124
+ return await this.get(exports.K.cache.username(username));
91
125
  }
92
126
  async setTlObject(key, value) {
93
127
  if (value == null) {
@@ -107,50 +141,51 @@ class Storage {
107
141
  }
108
142
  }
109
143
  async setState(state) {
110
- await this.setTlObject(KPARTS__STATE, state);
144
+ await this.setTlObject(exports.K.updates.state(), state);
111
145
  }
112
146
  async getState() {
113
- return await this.getTlObject(KPARTS__STATE);
147
+ return await this.getTlObject(exports.K.updates.state());
114
148
  }
115
149
  async setMessage(chatId, messageId, message) {
116
150
  if (chatId > _1_utilities_js_1.ZERO_CHANNEL_ID) {
117
- await this.set(KPARTS_MESSAGE_REF(messageId), message == null ? null : chatId);
151
+ await this.set(exports.K.messages.messageRef(messageId), message == null ? null : chatId);
118
152
  }
119
- await this.setTlObject(KPARTS_MESSAGE(chatId, messageId), message);
153
+ await this.setTlObject(exports.K.messages.message(chatId, messageId), message);
120
154
  }
121
155
  async deleteMessages() {
122
156
  const maybePromises = new Array();
123
- for await (const [k, o] of await this.getMany({ prefix: KPARTS_ALL_MESSAGE_REFS })) {
124
- maybePromises.push(Promise.all([this.set(k, null), o == null ? Promise.resolve() : this.set(KPARTS_MESSAGE(o, k[1]), null)]).then(() => { }));
157
+ for await (const [k, o] of await this.getMany({ prefix: exports.K.messages.allMessageRefs() })) {
158
+ maybePromises.push(Promise.all([this.set(k, null), o == null ? Promise.resolve() : this.set(exports.K.messages.message(o, k[1]), null)]).then(() => { }));
125
159
  }
126
160
  await Promise.all(maybePromises.filter((v) => v instanceof Promise));
127
161
  }
128
162
  getMessageChat(messageId) {
129
- return this.get(KPARTS_MESSAGE_REF(messageId));
163
+ return this.get(exports.K.messages.messageRef(messageId));
130
164
  }
131
165
  async getMessage(chatId, messageId) {
132
- return await this.getTlObject(KPARTS_MESSAGE(chatId, messageId));
166
+ return await this.getTlObject(exports.K.messages.message(chatId, messageId));
133
167
  }
134
168
  async getLastMessage(chatId) {
135
- for await (const [_, buffer] of await this.getMany({ prefix: KPARTS_MESSAGES(chatId) }, { limit: 1, reverse: true })) {
169
+ for await (const [_, buffer] of await this.getMany({ prefix: exports.K.messages.messages(chatId) }, { limit: 1, reverse: true })) {
136
170
  return await this.getTlObject(buffer);
137
171
  }
138
172
  return null;
139
173
  }
140
174
  async setChannelPts(channelId, pts) {
141
- await this.set(KPARTS__CHANNEL_PTS(channelId), pts);
175
+ await this.set(exports.K.updates.channelPts(channelId), pts);
142
176
  }
143
177
  getChannelPts(channelId) {
144
- return this.get(KPARTS__CHANNEL_PTS(channelId));
178
+ return this.get(exports.K.updates.channelPts(channelId));
145
179
  }
146
180
  async setEntity(entity) {
147
- const type = __classPrivateFieldGet(this, _Storage_instances, "m", _Storage_getEntityType).call(this, entity);
148
- await this.set(KPARTS__PEER(type, entity.id), (0, _1_utilities_js_1.rleEncode)(entity[_2_tl_js_1.serialize]()));
181
+ await this.set(exports.K.cache.peer((0, _2_tl_js_1.peerToChatId)(entity)), [(0, _1_utilities_js_1.rleEncode)(entity[_2_tl_js_1.serialize]()), new Date()]);
149
182
  }
150
- async getEntity(type, id) {
151
- const peer_ = await this.get(KPARTS__PEER(type, id));
183
+ async getEntity(key) {
184
+ const peer_ = await this.get(exports.K.cache.peer(key));
152
185
  if (peer_ != null) {
153
- return new _2_tl_js_1.TLReader((0, _1_utilities_js_1.rleDecode)(peer_)).readObject();
186
+ const [obj_] = peer_;
187
+ const entity = new _2_tl_js_1.TLReader((0, _1_utilities_js_1.rleDecode)(obj_)).readObject();
188
+ return entity;
154
189
  }
155
190
  else {
156
191
  return null;
@@ -166,31 +201,36 @@ class Storage {
166
201
  throw err;
167
202
  }
168
203
  else {
169
- await this.set(KPARTS__ACCOUNT_TYPE, type);
204
+ await this.set(exports.K.auth.accountType(), type);
170
205
  }
171
206
  }
172
207
  }
173
- getAccountType() {
174
- return this.get(KPARTS__ACCOUNT_TYPE);
208
+ async getAccountType() {
209
+ if (__classPrivateFieldGet(this, _Storage_accountType, "f") != null) {
210
+ return __classPrivateFieldGet(this, _Storage_accountType, "f");
211
+ }
212
+ else {
213
+ return __classPrivateFieldSet(this, _Storage_accountType, await this.get(exports.K.auth.accountType()), "f");
214
+ }
175
215
  }
176
216
  async updateStickerSetName(id, accessHash, name) {
177
- await this.set(KPARTS__STICKER_SET_NAME(id, accessHash), [name, new Date()]);
217
+ await this.set(exports.K.cache.stickerSetName(id, accessHash), [name, new Date()]);
178
218
  }
179
219
  getStickerSetName(id, accessHash) {
180
- return this.get(KPARTS__STICKER_SET_NAME(id, accessHash));
220
+ return this.get(exports.K.cache.stickerSetName(id, accessHash));
181
221
  }
182
222
  async setServerSalt(serverSalt) {
183
- await this.set(KPARTS_SERVER_SALT, serverSalt);
223
+ await this.set(exports.K.session.serverSalt(), serverSalt);
184
224
  }
185
225
  getServerSalt() {
186
- return this.get(KPARTS_SERVER_SALT);
226
+ return this.get(exports.K.session.serverSalt());
187
227
  }
188
228
  async setChat(listId, chatId, pinned, topMessageId, topMessageDate) {
189
- await this.set(KPARTS_CHAT(listId, chatId), [pinned, topMessageId, topMessageDate]);
229
+ await this.set(exports.K.chatlists.chat(listId, chatId), [pinned, topMessageId, topMessageDate]);
190
230
  }
191
231
  async getChats(listId) {
192
232
  const chats = new Array();
193
- for await (const [key, value] of await this.getMany({ prefix: KPARTS_CHATS(listId) })) {
233
+ for await (const [key, value] of await this.getMany({ prefix: exports.K.chatlists.chats(listId) })) {
194
234
  if (key.length != 3 || typeof key[2] !== "number") {
195
235
  continue;
196
236
  }
@@ -199,24 +239,24 @@ class Storage {
199
239
  return chats;
200
240
  }
201
241
  async removeChats(listId) {
202
- for await (const [key] of await this.getMany({ prefix: KPARTS_CHATS(listId) })) {
242
+ for await (const [key] of await this.getMany({ prefix: exports.K.chatlists.chats(listId) })) {
203
243
  await this.set(key, null);
204
244
  }
205
245
  await this.setHasAllChats(listId, false);
206
246
  await this.setPinnedChats(listId, null);
207
247
  }
208
248
  async setHasAllChats(listId, hasAllChats) {
209
- await this.set(KPARTS_HAS_ALL_CHATS(listId), hasAllChats);
249
+ await this.set(exports.K.chatlists.hasAllChats(listId), hasAllChats);
210
250
  }
211
251
  async hasAllChats(listId) {
212
- const v = await this.get(KPARTS_HAS_ALL_CHATS(listId));
252
+ const v = await this.get(exports.K.chatlists.hasAllChats(listId));
213
253
  return v == true;
214
254
  }
215
255
  async setPinnedChats(listId, chatIds) {
216
- await this.set(KPARTS_PINNED_CHATS(listId), chatIds);
256
+ await this.set(exports.K.chatlists.pinnedChats(listId), chatIds);
217
257
  }
218
258
  async getPinnedChats(listId) {
219
- return await this.get(KPARTS_PINNED_CHATS(listId));
259
+ return await this.get(exports.K.chatlists.pinnedChats(listId));
220
260
  }
221
261
  async getHistory(chatId, offsetId, limit) {
222
262
  if (offsetId == 0) {
@@ -224,7 +264,7 @@ class Storage {
224
264
  }
225
265
  ++limit;
226
266
  const messages = new Array();
227
- for await (const [_, buffer] of await this.getMany({ start: KPARTS_MESSAGE(chatId, 0), end: KPARTS_MESSAGE(chatId, offsetId) }, { limit, reverse: true })) {
267
+ for await (const [_, buffer] of await this.getMany({ start: exports.K.messages.message(chatId, 0), end: exports.K.messages.message(chatId, offsetId) }, { limit, reverse: true })) {
228
268
  const message = await this.getTlObject(buffer);
229
269
  if ("id" in message && message.id == offsetId) {
230
270
  continue;
@@ -237,14 +277,14 @@ class Storage {
237
277
  if (!this.supportsFiles) {
238
278
  return null;
239
279
  }
240
- return await this.get(KPARTS_FILE(id));
280
+ return await this.get(exports.K.cache.file(id));
241
281
  }
242
282
  async *iterFileParts(id, partCount, offset) {
243
283
  if (!this.supportsFiles) {
244
284
  return;
245
285
  }
246
286
  for (let i = offset; i < partCount; i++) {
247
- const part = await this.get(KPARTS_FILE_PART(id, i));
287
+ const part = await this.get(exports.K.cache.filePart(id, i));
248
288
  if (part == null) {
249
289
  continue;
250
290
  }
@@ -255,19 +295,19 @@ class Storage {
255
295
  if (!this.supportsFiles) {
256
296
  return;
257
297
  }
258
- await this.set(KPARTS_FILE_PART(id, index), bytes);
298
+ await this.set(exports.K.cache.filePart(id, index), bytes);
259
299
  }
260
300
  async setFilePartCount(id, partCount, chunkSize) {
261
301
  if (!this.supportsFiles) {
262
302
  return;
263
303
  }
264
- await this.set(KPARTS_FILE(id), [partCount, chunkSize]);
304
+ await this.set(exports.K.cache.file(id), [partCount, chunkSize]);
265
305
  }
266
306
  async setCustomEmojiDocument(id, document) {
267
- await this.set(KPARTS_CEMOJI(id), [(0, _1_utilities_js_1.rleEncode)(document[_2_tl_js_1.serialize]()), new Date()]);
307
+ await this.set(exports.K.cache.customEmojiDocument(id), [(0, _1_utilities_js_1.rleEncode)(document[_2_tl_js_1.serialize]()), new Date()]);
268
308
  }
269
309
  async getCustomEmojiDocument(id) {
270
- const v = await this.get(KPARTS_CEMOJI(id));
310
+ const v = await this.get(exports.K.cache.customEmojiDocument(id));
271
311
  if (v != null) {
272
312
  return [await this.getTlObject([0]), v[1]];
273
313
  }
@@ -276,17 +316,17 @@ class Storage {
276
316
  }
277
317
  }
278
318
  async setUpdate(boxId, update) {
279
- await this.setTlObject(KPARTS_UPDATE(boxId, __classPrivateFieldGet(this, _Storage_instances, "m", _Storage_getUpdateId).call(this, update)), update);
319
+ await this.setTlObject(exports.K.updates.update(boxId, __classPrivateFieldGet(this, _Storage_instances, "m", _Storage_getUpdateId).call(this, update)), update);
280
320
  }
281
321
  async deleteUpdates() {
282
322
  const maybePromises = new Array();
283
- for await (const [k] of await this.getMany({ prefix: KPARTS_ALL_UPDATES })) {
323
+ for await (const [k] of await this.getMany({ prefix: exports.K.updates.all() })) {
284
324
  maybePromises.push(this.set(k, null));
285
325
  }
286
326
  await Promise.all(maybePromises.filter((v) => v instanceof Promise));
287
327
  }
288
328
  async getFirstUpdate(boxId) {
289
- for await (const [key, update] of await this.getMany({ prefix: KPARTS_UPDATES(boxId) }, { limit: 1 })) {
329
+ for await (const [key, update] of await this.getMany({ prefix: exports.K.updates.updates(boxId) }, { limit: 1 })) {
290
330
  return [key, await this.getTlObject(update).then((v) => v)];
291
331
  }
292
332
  return null;
@@ -301,28 +341,59 @@ class Storage {
301
341
  throw new Error(`${source}: not a bot client`);
302
342
  }
303
343
  }
344
+ async deleteFiles() {
345
+ if (!this.supportsFiles) {
346
+ return;
347
+ }
348
+ for await (const [key] of await this.getMany({ prefix: exports.K.cache.fileParts() })) {
349
+ await this.set(key, null);
350
+ }
351
+ for await (const [key] of await this.getMany({ prefix: exports.K.cache.files() })) {
352
+ await this.set(key, null);
353
+ }
354
+ }
355
+ async deleteCustomEmojiDocuments() {
356
+ for await (const [key] of await this.getMany({ prefix: exports.K.cache.customEmojiDocuments() })) {
357
+ await this.set(key, null);
358
+ }
359
+ }
360
+ async deleteStickerSetNames() {
361
+ for await (const [key] of await this.getMany({ prefix: exports.K.cache.stickerSetNames() })) {
362
+ await this.set(key, null);
363
+ }
364
+ }
365
+ async deletePeers() {
366
+ for await (const [key] of await this.getMany({ prefix: exports.K.cache.peers() })) {
367
+ await this.set(key, null);
368
+ }
369
+ }
370
+ async deleteUsernames() {
371
+ for await (const [key] of await this.getMany({ prefix: exports.K.cache.usernames() })) {
372
+ await this.set(key, null);
373
+ }
374
+ }
375
+ async clear() {
376
+ await Promise.all([
377
+ this.deleteMessages(),
378
+ this.removeChats(0),
379
+ this.removeChats(1),
380
+ this.deleteUpdates(),
381
+ this.deleteFiles(),
382
+ this.deleteCustomEmojiDocuments(),
383
+ this.deleteStickerSetNames(),
384
+ this.deletePeers(),
385
+ this.deleteUsernames(),
386
+ ]);
387
+ }
304
388
  }
305
389
  exports.Storage = Storage;
306
- _Storage_authKeyId = new WeakMap(), _Storage_instances = new WeakSet(), _Storage_resetAuthKeyId = async function _Storage_resetAuthKeyId(authKey) {
390
+ _Storage_authKeyId = new WeakMap(), _Storage_accountType = new WeakMap(), _Storage_instances = new WeakSet(), _Storage_resetAuthKeyId = async function _Storage_resetAuthKeyId(authKey) {
307
391
  if (authKey != null) {
308
392
  __classPrivateFieldSet(this, _Storage_authKeyId, await (0, _1_utilities_js_1.sha1)(authKey).then((hash) => (0, _1_utilities_js_1.bigIntFromBuffer)(hash.subarray(-8), true, false)), "f");
309
393
  }
310
394
  else {
311
395
  __classPrivateFieldSet(this, _Storage_authKeyId, null, "f");
312
396
  }
313
- }, _Storage_getEntityType = function _Storage_getEntityType(entity) {
314
- if (entity instanceof _2_tl_js_1.types.Channel || entity instanceof _2_tl_js_1.types.ChannelForbidden) {
315
- return "channel";
316
- }
317
- else if (entity instanceof _2_tl_js_1.types.Chat || entity instanceof _2_tl_js_1.types.ChatForbidden) {
318
- return "chat";
319
- }
320
- else if (entity instanceof _2_tl_js_1.types.User) {
321
- return "user";
322
- }
323
- else {
324
- (0, _1_utilities_js_1.UNREACHABLE)();
325
- }
326
397
  }, _Storage_getUpdateId = function _Storage_getUpdateId(update) {
327
398
  let id = BigInt(Date.now()) << 32n;
328
399
  if ("pts" in update && update.pts) {
@@ -1,9 +1,12 @@
1
- import { MaybePromise } from "../1_utilities.js";
1
+ import { CacheMap, MaybePromise } from "../1_utilities.js";
2
2
  import { GetManyFilter, Storage, StorageKeyPart } from "./0_storage.js";
3
3
  export declare class StorageMemory extends Storage implements Storage {
4
4
  #private;
5
5
  protected map: Map<string, unknown>;
6
+ protected messageMap: CacheMap<string, unknown>;
6
7
  initialize(): void;
8
+ getMap(key: readonly StorageKeyPart[]): Map<string, unknown>;
9
+ getMaps(): Map<string, unknown>[];
7
10
  branch(id: string): Storage;
8
11
  get supportsFiles(): boolean;
9
12
  get<T>(key: readonly StorageKeyPart[]): NonNullable<T> | null;