@mtkruto/node 0.1.125 → 0.1.126

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 (589) hide show
  1. package/esm/0_deps.d.ts +4 -4
  2. package/esm/0_deps.js +4 -4
  3. package/esm/3_types.d.ts +2 -1
  4. package/esm/3_types.js +2 -1
  5. package/esm/4_constants.d.ts +1 -1
  6. package/esm/4_constants.js +1 -1
  7. package/esm/client/3_types.d.ts +23 -2
  8. package/esm/client/3_types.js +11 -1
  9. package/esm/client/5_client.d.ts +15 -2
  10. package/esm/client/5_client.js +323 -20
  11. package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/_diff.d.ts +6 -5
  12. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.js +5 -6
  13. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.js +2 -0
  14. package/esm/deps/deno.land/std@0.209.0/assert/assert.d.ts +12 -0
  15. package/esm/deps/deno.land/std@0.209.0/assert/assert.js +18 -0
  16. package/esm/deps/deno.land/std@0.209.0/assert/assert_almost_equals.d.ts +17 -0
  17. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_almost_equals.js +9 -10
  18. package/esm/deps/deno.land/std@0.209.0/assert/assert_array_includes.d.ts +18 -0
  19. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_array_includes.js +6 -4
  20. package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_equals.d.ts +4 -5
  21. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_equals.js +4 -5
  22. package/esm/deps/deno.land/std@0.209.0/assert/assert_exists.d.ts +13 -0
  23. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_exists.js +8 -0
  24. package/esm/deps/deno.land/std@0.209.0/assert/assert_false.d.ts +14 -0
  25. package/esm/deps/deno.land/std@0.209.0/assert/assert_false.js +18 -0
  26. package/esm/deps/deno.land/std@0.209.0/assert/assert_greater.d.ts +14 -0
  27. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater.js +9 -0
  28. package/esm/deps/deno.land/std@0.209.0/assert/assert_greater_or_equal.d.ts +14 -0
  29. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater_or_equal.js +9 -0
  30. package/esm/deps/deno.land/std@0.209.0/assert/assert_instance_of.d.ts +17 -0
  31. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_instance_of.js +8 -0
  32. package/esm/deps/deno.land/std@0.209.0/assert/assert_is_error.d.ts +18 -0
  33. package/esm/deps/deno.land/std@0.209.0/assert/assert_is_error.js +48 -0
  34. package/esm/deps/deno.land/std@0.209.0/assert/assert_less.d.ts +13 -0
  35. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less.js +8 -0
  36. package/esm/deps/deno.land/std@0.209.0/assert/assert_less_or_equal.d.ts +14 -0
  37. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less_or_equal.js +9 -0
  38. package/esm/deps/deno.land/std@0.209.0/assert/assert_match.d.ts +13 -0
  39. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_match.js +8 -0
  40. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.d.ts +2 -1
  41. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.js +2 -1
  42. package/esm/deps/deno.land/std@0.209.0/assert/assert_not_instance_of.d.ts +13 -0
  43. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_instance_of.js +8 -0
  44. package/esm/deps/deno.land/std@0.209.0/assert/assert_not_match.d.ts +13 -0
  45. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_match.js +8 -0
  46. package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_not_strict_equals.d.ts +3 -1
  47. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_strict_equals.js +3 -1
  48. package/esm/deps/deno.land/std@0.209.0/assert/assert_object_match.d.ts +13 -0
  49. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_object_match.js +10 -2
  50. package/esm/deps/deno.land/std@0.209.0/assert/assert_rejects.d.ts +26 -0
  51. package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_strict_equals.d.ts +6 -11
  52. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_strict_equals.js +6 -11
  53. package/esm/deps/deno.land/std@0.209.0/assert/assert_string_includes.d.ts +13 -0
  54. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_string_includes.js +8 -0
  55. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.d.ts +4 -31
  56. package/esm/deps/deno.land/std@0.209.0/assert/assertion_error.d.ts +14 -0
  57. package/esm/deps/deno.land/std@0.209.0/assert/assertion_error.js +18 -0
  58. package/esm/deps/deno.land/std@0.209.0/assert/equal.d.ts +14 -0
  59. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/equal.js +8 -0
  60. package/esm/deps/deno.land/std@0.209.0/assert/fail.d.ts +11 -0
  61. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/fail.js +8 -1
  62. package/esm/deps/deno.land/std@0.209.0/assert/unimplemented.d.ts +11 -0
  63. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unimplemented.js +10 -1
  64. package/esm/deps/deno.land/std@0.209.0/assert/unreachable.d.ts +11 -0
  65. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unreachable.js +10 -1
  66. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.d.ts +24 -8
  67. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.js +27 -27
  68. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.js +1 -6
  69. package/esm/deps/deno.land/std@0.209.0/media_types/type_by_extension.d.ts +17 -0
  70. package/esm/deps/deno.land/std@0.209.0/media_types/type_by_extension.js +24 -0
  71. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
  72. package/esm/storage/0_storage.d.ts +25 -2
  73. package/esm/storage/0_storage.js +60 -5
  74. package/esm/storage/0_utilities.d.ts +2 -0
  75. package/esm/storage/0_utilities.js +33 -0
  76. package/esm/storage/1_storage_indexed_db.d.ts +5 -2
  77. package/esm/storage/1_storage_indexed_db.js +26 -4
  78. package/esm/storage/1_storage_local_storage.d.ts +5 -2
  79. package/esm/storage/1_storage_local_storage.js +20 -6
  80. package/esm/storage/1_storage_memory.d.ts +6 -2
  81. package/esm/storage/1_storage_memory.js +34 -6
  82. package/esm/storage/1_storage_session_storage.d.ts +5 -2
  83. package/esm/storage/1_storage_session_storage.js +20 -6
  84. package/esm/tl/0_tl_raw_writer.d.ts +1 -0
  85. package/esm/tl/0_tl_raw_writer.js +6 -0
  86. package/esm/tl/1_tl_object.js +6 -1
  87. package/esm/tl/3_deserialize.js +1 -1
  88. package/esm/types/{1_chat.d.ts → 1_chat_p.d.ts} +5 -5
  89. package/esm/types/{1_chat.js → 1_chat_p.js} +1 -1
  90. package/esm/types/3_message.d.ts +8 -7
  91. package/esm/types/3_message.js +14 -9
  92. package/esm/types/4_chat.d.ts +33 -0
  93. package/esm/types/4_chat.js +117 -0
  94. package/package.json +1 -1
  95. package/script/0_deps.d.ts +4 -4
  96. package/script/0_deps.js +4 -4
  97. package/script/3_types.d.ts +2 -1
  98. package/script/3_types.js +2 -1
  99. package/script/4_constants.d.ts +1 -1
  100. package/script/4_constants.js +1 -1
  101. package/script/client/3_types.d.ts +23 -2
  102. package/script/client/3_types.js +13 -0
  103. package/script/client/5_client.d.ts +15 -2
  104. package/script/client/5_client.js +322 -19
  105. package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/_diff.d.ts +6 -5
  106. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.js +23 -24
  107. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.js +2 -0
  108. package/script/deps/deno.land/std@0.209.0/assert/assert.d.ts +12 -0
  109. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert.js +11 -1
  110. package/script/deps/deno.land/std@0.209.0/assert/assert_almost_equals.d.ts +17 -0
  111. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_almost_equals.js +9 -10
  112. package/script/deps/deno.land/std@0.209.0/assert/assert_array_includes.d.ts +18 -0
  113. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_array_includes.js +6 -4
  114. package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_equals.d.ts +4 -5
  115. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_equals.js +4 -5
  116. package/script/deps/deno.land/std@0.209.0/assert/assert_exists.d.ts +13 -0
  117. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_exists.js +8 -0
  118. package/script/deps/deno.land/std@0.209.0/assert/assert_false.d.ts +14 -0
  119. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_false.js +11 -1
  120. package/script/deps/deno.land/std@0.209.0/assert/assert_greater.d.ts +14 -0
  121. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater.js +9 -0
  122. package/script/deps/deno.land/std@0.209.0/assert/assert_greater_or_equal.d.ts +14 -0
  123. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater_or_equal.js +9 -0
  124. package/script/deps/deno.land/std@0.209.0/assert/assert_instance_of.d.ts +17 -0
  125. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_instance_of.js +8 -0
  126. package/script/deps/deno.land/std@0.209.0/assert/assert_is_error.d.ts +18 -0
  127. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_is_error.js +24 -5
  128. package/script/deps/deno.land/std@0.209.0/assert/assert_less.d.ts +13 -0
  129. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less.js +8 -0
  130. package/script/deps/deno.land/std@0.209.0/assert/assert_less_or_equal.d.ts +14 -0
  131. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less_or_equal.js +9 -0
  132. package/script/deps/deno.land/std@0.209.0/assert/assert_match.d.ts +13 -0
  133. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_match.js +8 -0
  134. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.d.ts +2 -1
  135. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.js +2 -1
  136. package/script/deps/deno.land/std@0.209.0/assert/assert_not_instance_of.d.ts +13 -0
  137. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_instance_of.js +8 -0
  138. package/script/deps/deno.land/std@0.209.0/assert/assert_not_match.d.ts +13 -0
  139. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_match.js +8 -0
  140. package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_not_strict_equals.d.ts +3 -1
  141. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_strict_equals.js +3 -1
  142. package/script/deps/deno.land/std@0.209.0/assert/assert_object_match.d.ts +13 -0
  143. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_object_match.js +10 -2
  144. package/script/deps/deno.land/std@0.209.0/assert/assert_rejects.d.ts +26 -0
  145. package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_strict_equals.d.ts +6 -11
  146. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_strict_equals.js +6 -11
  147. package/script/deps/deno.land/std@0.209.0/assert/assert_string_includes.d.ts +13 -0
  148. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_string_includes.js +8 -0
  149. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.d.ts +4 -31
  150. package/script/deps/deno.land/std@0.209.0/assert/assertion_error.d.ts +14 -0
  151. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assertion_error.js +13 -7
  152. package/script/deps/deno.land/std@0.209.0/assert/equal.d.ts +14 -0
  153. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/equal.js +8 -0
  154. package/script/deps/deno.land/std@0.209.0/assert/fail.d.ts +11 -0
  155. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/fail.js +8 -1
  156. package/script/deps/deno.land/std@0.209.0/assert/unimplemented.d.ts +11 -0
  157. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unimplemented.js +10 -1
  158. package/script/deps/deno.land/std@0.209.0/assert/unreachable.d.ts +11 -0
  159. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unreachable.js +10 -1
  160. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.d.ts +24 -8
  161. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.js +27 -27
  162. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.js +2 -7
  163. package/script/deps/deno.land/std@0.209.0/media_types/type_by_extension.d.ts +17 -0
  164. package/script/deps/deno.land/std@0.209.0/media_types/type_by_extension.js +28 -0
  165. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
  166. package/script/storage/0_storage.d.ts +25 -2
  167. package/script/storage/0_storage.js +60 -5
  168. package/script/storage/0_utilities.d.ts +2 -0
  169. package/script/storage/0_utilities.js +36 -1
  170. package/script/storage/1_storage_indexed_db.d.ts +5 -2
  171. package/script/storage/1_storage_indexed_db.js +25 -3
  172. package/script/storage/1_storage_local_storage.d.ts +5 -2
  173. package/script/storage/1_storage_local_storage.js +19 -5
  174. package/script/storage/1_storage_memory.d.ts +6 -2
  175. package/script/storage/1_storage_memory.js +33 -5
  176. package/script/storage/1_storage_session_storage.d.ts +5 -2
  177. package/script/storage/1_storage_session_storage.js +19 -5
  178. package/script/tl/0_tl_raw_writer.d.ts +1 -0
  179. package/script/tl/0_tl_raw_writer.js +6 -0
  180. package/script/tl/1_tl_object.js +6 -1
  181. package/script/tl/3_deserialize.js +1 -1
  182. package/script/types/{1_chat.d.ts → 1_chat_p.d.ts} +5 -5
  183. package/script/types/{1_chat.js → 1_chat_p.js} +3 -3
  184. package/script/types/3_message.d.ts +8 -7
  185. package/script/types/3_message.js +14 -9
  186. package/script/types/4_chat.d.ts +33 -0
  187. package/script/types/4_chat.js +124 -0
  188. package/esm/deps/deno.land/std@0.208.0/assert/assert.d.ts +0 -2
  189. package/esm/deps/deno.land/std@0.208.0/assert/assert.js +0 -8
  190. package/esm/deps/deno.land/std@0.208.0/assert/assert_almost_equals.d.ts +0 -18
  191. package/esm/deps/deno.land/std@0.208.0/assert/assert_array_includes.d.ts +0 -14
  192. package/esm/deps/deno.land/std@0.208.0/assert/assert_exists.d.ts +0 -5
  193. package/esm/deps/deno.land/std@0.208.0/assert/assert_false.d.ts +0 -4
  194. package/esm/deps/deno.land/std@0.208.0/assert/assert_false.js +0 -8
  195. package/esm/deps/deno.land/std@0.208.0/assert/assert_greater.d.ts +0 -5
  196. package/esm/deps/deno.land/std@0.208.0/assert/assert_greater_or_equal.d.ts +0 -5
  197. package/esm/deps/deno.land/std@0.208.0/assert/assert_instance_of.d.ts +0 -8
  198. package/esm/deps/deno.land/std@0.208.0/assert/assert_is_error.d.ts +0 -7
  199. package/esm/deps/deno.land/std@0.208.0/assert/assert_is_error.js +0 -29
  200. package/esm/deps/deno.land/std@0.208.0/assert/assert_less.d.ts +0 -5
  201. package/esm/deps/deno.land/std@0.208.0/assert/assert_less_or_equal.d.ts +0 -5
  202. package/esm/deps/deno.land/std@0.208.0/assert/assert_match.d.ts +0 -5
  203. package/esm/deps/deno.land/std@0.208.0/assert/assert_not_instance_of.d.ts +0 -5
  204. package/esm/deps/deno.land/std@0.208.0/assert/assert_not_match.d.ts +0 -5
  205. package/esm/deps/deno.land/std@0.208.0/assert/assert_object_match.d.ts +0 -5
  206. package/esm/deps/deno.land/std@0.208.0/assert/assert_rejects.d.ts +0 -64
  207. package/esm/deps/deno.land/std@0.208.0/assert/assert_string_includes.d.ts +0 -5
  208. package/esm/deps/deno.land/std@0.208.0/assert/assertion_error.d.ts +0 -4
  209. package/esm/deps/deno.land/std@0.208.0/assert/assertion_error.js +0 -12
  210. package/esm/deps/deno.land/std@0.208.0/assert/equal.d.ts +0 -6
  211. package/esm/deps/deno.land/std@0.208.0/assert/fail.d.ts +0 -4
  212. package/esm/deps/deno.land/std@0.208.0/assert/unimplemented.d.ts +0 -2
  213. package/esm/deps/deno.land/std@0.208.0/assert/unreachable.d.ts +0 -2
  214. package/script/deps/deno.land/std@0.208.0/assert/assert.d.ts +0 -2
  215. package/script/deps/deno.land/std@0.208.0/assert/assert_almost_equals.d.ts +0 -18
  216. package/script/deps/deno.land/std@0.208.0/assert/assert_array_includes.d.ts +0 -14
  217. package/script/deps/deno.land/std@0.208.0/assert/assert_exists.d.ts +0 -5
  218. package/script/deps/deno.land/std@0.208.0/assert/assert_false.d.ts +0 -4
  219. package/script/deps/deno.land/std@0.208.0/assert/assert_greater.d.ts +0 -5
  220. package/script/deps/deno.land/std@0.208.0/assert/assert_greater_or_equal.d.ts +0 -5
  221. package/script/deps/deno.land/std@0.208.0/assert/assert_instance_of.d.ts +0 -8
  222. package/script/deps/deno.land/std@0.208.0/assert/assert_is_error.d.ts +0 -7
  223. package/script/deps/deno.land/std@0.208.0/assert/assert_less.d.ts +0 -5
  224. package/script/deps/deno.land/std@0.208.0/assert/assert_less_or_equal.d.ts +0 -5
  225. package/script/deps/deno.land/std@0.208.0/assert/assert_match.d.ts +0 -5
  226. package/script/deps/deno.land/std@0.208.0/assert/assert_not_instance_of.d.ts +0 -5
  227. package/script/deps/deno.land/std@0.208.0/assert/assert_not_match.d.ts +0 -5
  228. package/script/deps/deno.land/std@0.208.0/assert/assert_object_match.d.ts +0 -5
  229. package/script/deps/deno.land/std@0.208.0/assert/assert_rejects.d.ts +0 -64
  230. package/script/deps/deno.land/std@0.208.0/assert/assert_string_includes.d.ts +0 -5
  231. package/script/deps/deno.land/std@0.208.0/assert/assertion_error.d.ts +0 -4
  232. package/script/deps/deno.land/std@0.208.0/assert/equal.d.ts +0 -6
  233. package/script/deps/deno.land/std@0.208.0/assert/fail.d.ts +0 -4
  234. package/script/deps/deno.land/std@0.208.0/assert/unimplemented.d.ts +0 -2
  235. package/script/deps/deno.land/std@0.208.0/assert/unreachable.d.ts +0 -2
  236. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.d.ts +0 -0
  237. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.js +0 -0
  238. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.d.ts +0 -0
  239. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_rejects.js +0 -0
  240. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.js +0 -0
  241. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.d.ts +0 -0
  242. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.js +0 -0
  243. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.d.ts +0 -0
  244. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.js +0 -0
  245. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.d.ts +0 -0
  246. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.js +0 -0
  247. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.d.ts +0 -0
  248. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.js +0 -0
  249. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.d.ts +0 -0
  250. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.js +0 -0
  251. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.d.ts +0 -0
  252. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.d.ts +0 -0
  253. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.js +0 -0
  254. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.d.ts +0 -0
  255. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.js +0 -0
  256. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.d.ts +0 -0
  257. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.js +0 -0
  258. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  259. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  260. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.d.ts +0 -0
  261. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.js +0 -0
  262. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.d.ts +0 -0
  263. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.js +0 -0
  264. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.d.ts +0 -0
  265. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.js +0 -0
  266. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.d.ts +0 -0
  267. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.js +0 -0
  268. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.d.ts +0 -0
  269. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.js +0 -0
  270. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.d.ts +0 -0
  271. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.js +0 -0
  272. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.d.ts +0 -0
  273. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.js +0 -0
  274. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.js +0 -0
  275. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.d.ts +0 -0
  276. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.js +0 -0
  277. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.d.ts +0 -0
  278. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.js +0 -0
  279. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.d.ts +0 -0
  280. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.js +0 -0
  281. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  282. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.js +0 -0
  283. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.d.ts +0 -0
  284. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.js +0 -0
  285. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.d.ts +0 -0
  286. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.js +0 -0
  287. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.d.ts +0 -0
  288. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.js +0 -0
  289. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.d.ts +0 -0
  290. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.js +0 -0
  291. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.d.ts +0 -0
  292. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.js +0 -0
  293. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.d.ts +0 -0
  294. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.js +0 -0
  295. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.d.ts +0 -0
  296. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.js +0 -0
  297. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.d.ts +0 -0
  298. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.js +0 -0
  299. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.d.ts +0 -0
  300. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.js +0 -0
  301. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.d.ts +0 -0
  302. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.js +0 -0
  303. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.d.ts +0 -0
  304. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.js +0 -0
  305. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.d.ts +0 -0
  306. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.js +0 -0
  307. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.d.ts +0 -0
  308. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.js +0 -0
  309. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.d.ts +0 -0
  310. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.js +0 -0
  311. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.d.ts +0 -0
  312. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.js +0 -0
  313. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.d.ts +0 -0
  314. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.js +0 -0
  315. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.d.ts +0 -0
  316. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.js +0 -0
  317. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.d.ts +0 -0
  318. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.js +0 -0
  319. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.d.ts +0 -0
  320. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.js +0 -0
  321. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.d.ts +0 -0
  322. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.js +0 -0
  323. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.d.ts +0 -0
  324. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.js +0 -0
  325. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.d.ts +0 -0
  326. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.js +0 -0
  327. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.d.ts +0 -0
  328. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.js +0 -0
  329. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.d.ts +0 -0
  330. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.js +0 -0
  331. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.d.ts +0 -0
  332. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.js +0 -0
  333. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.d.ts +0 -0
  334. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.js +0 -0
  335. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.d.ts +0 -0
  336. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.js +0 -0
  337. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.d.ts +0 -0
  338. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.js +0 -0
  339. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.d.ts +0 -0
  340. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.js +0 -0
  341. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.d.ts +0 -0
  342. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.js +0 -0
  343. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.d.ts +0 -0
  344. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.js +0 -0
  345. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.d.ts +0 -0
  346. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.js +0 -0
  347. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.d.ts +0 -0
  348. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.js +0 -0
  349. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.d.ts +0 -0
  350. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.js +0 -0
  351. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.d.ts +0 -0
  352. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.js +0 -0
  353. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.d.ts +0 -0
  354. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.js +0 -0
  355. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.d.ts +0 -0
  356. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.js +0 -0
  357. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.d.ts +0 -0
  358. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.js +0 -0
  359. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.d.ts +0 -0
  360. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.js +0 -0
  361. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.d.ts +0 -0
  362. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.js +0 -0
  363. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.d.ts +0 -0
  364. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.js +0 -0
  365. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.d.ts +0 -0
  366. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.js +0 -0
  367. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.d.ts +0 -0
  368. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.js +0 -0
  369. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.d.ts +0 -0
  370. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.js +0 -0
  371. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.d.ts +0 -0
  372. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.js +0 -0
  373. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.d.ts +0 -0
  374. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.js +0 -0
  375. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.d.ts +0 -0
  376. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.js +0 -0
  377. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.d.ts +0 -0
  378. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.js +0 -0
  379. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.d.ts +0 -0
  380. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.js +0 -0
  381. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.d.ts +0 -0
  382. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.js +0 -0
  383. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.d.ts +0 -0
  384. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.js +0 -0
  385. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.d.ts +0 -0
  386. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.js +0 -0
  387. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.d.ts +0 -0
  388. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.js +0 -0
  389. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.d.ts +0 -0
  390. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.js +0 -0
  391. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.d.ts +0 -0
  392. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.js +0 -0
  393. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.d.ts +0 -0
  394. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.js +0 -0
  395. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.d.ts +0 -0
  396. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.js +0 -0
  397. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.d.ts +0 -0
  398. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.js +0 -0
  399. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.d.ts +0 -0
  400. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.js +0 -0
  401. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.d.ts +0 -0
  402. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.js +0 -0
  403. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.d.ts +0 -0
  404. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.js +0 -0
  405. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.d.ts +0 -0
  406. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.js +0 -0
  407. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.d.ts +0 -0
  408. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.js +0 -0
  409. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.d.ts +0 -0
  410. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.js +0 -0
  411. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.d.ts +0 -0
  412. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.js +0 -0
  413. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.d.ts +0 -0
  414. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.js +0 -0
  415. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.d.ts +0 -0
  416. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_rejects.js +0 -0
  417. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.js +0 -0
  418. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.d.ts +0 -0
  419. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.js +0 -0
  420. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.d.ts +0 -0
  421. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.js +0 -0
  422. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.d.ts +0 -0
  423. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.js +0 -0
  424. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.d.ts +0 -0
  425. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.js +0 -0
  426. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.d.ts +0 -0
  427. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.js +0 -0
  428. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.d.ts +0 -0
  429. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.d.ts +0 -0
  430. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.js +0 -0
  431. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.d.ts +0 -0
  432. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.js +0 -0
  433. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.d.ts +0 -0
  434. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.js +0 -0
  435. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  436. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  437. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.d.ts +0 -0
  438. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.js +0 -0
  439. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.d.ts +0 -0
  440. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.js +0 -0
  441. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.d.ts +0 -0
  442. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.js +0 -0
  443. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.d.ts +0 -0
  444. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.js +0 -0
  445. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.d.ts +0 -0
  446. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.js +0 -0
  447. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.d.ts +0 -0
  448. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.js +0 -0
  449. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.d.ts +0 -0
  450. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.js +0 -0
  451. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.js +0 -0
  452. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.d.ts +0 -0
  453. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.js +0 -0
  454. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.d.ts +0 -0
  455. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.js +0 -0
  456. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.d.ts +0 -0
  457. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.js +0 -0
  458. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  459. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.js +0 -0
  460. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.d.ts +0 -0
  461. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.js +0 -0
  462. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.d.ts +0 -0
  463. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.js +0 -0
  464. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.d.ts +0 -0
  465. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.js +0 -0
  466. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.d.ts +0 -0
  467. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.js +0 -0
  468. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.d.ts +0 -0
  469. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.js +0 -0
  470. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.d.ts +0 -0
  471. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.js +0 -0
  472. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.d.ts +0 -0
  473. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.js +0 -0
  474. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.d.ts +0 -0
  475. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.js +0 -0
  476. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.d.ts +0 -0
  477. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.js +0 -0
  478. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.d.ts +0 -0
  479. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.js +0 -0
  480. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.d.ts +0 -0
  481. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.js +0 -0
  482. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.d.ts +0 -0
  483. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.js +0 -0
  484. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.d.ts +0 -0
  485. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.js +0 -0
  486. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.d.ts +0 -0
  487. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.js +0 -0
  488. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.d.ts +0 -0
  489. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.js +0 -0
  490. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.d.ts +0 -0
  491. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.js +0 -0
  492. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.d.ts +0 -0
  493. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.js +0 -0
  494. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.d.ts +0 -0
  495. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.js +0 -0
  496. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.d.ts +0 -0
  497. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.js +0 -0
  498. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.d.ts +0 -0
  499. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.js +0 -0
  500. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.d.ts +0 -0
  501. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.js +0 -0
  502. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.d.ts +0 -0
  503. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.js +0 -0
  504. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.d.ts +0 -0
  505. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.js +0 -0
  506. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.d.ts +0 -0
  507. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.js +0 -0
  508. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.d.ts +0 -0
  509. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.js +0 -0
  510. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.d.ts +0 -0
  511. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.js +0 -0
  512. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.d.ts +0 -0
  513. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.js +0 -0
  514. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.d.ts +0 -0
  515. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.js +0 -0
  516. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.d.ts +0 -0
  517. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.js +0 -0
  518. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.d.ts +0 -0
  519. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.js +0 -0
  520. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.d.ts +0 -0
  521. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.js +0 -0
  522. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.d.ts +0 -0
  523. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.js +0 -0
  524. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.d.ts +0 -0
  525. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.js +0 -0
  526. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.d.ts +0 -0
  527. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.js +0 -0
  528. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.d.ts +0 -0
  529. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.js +0 -0
  530. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.d.ts +0 -0
  531. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.js +0 -0
  532. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.d.ts +0 -0
  533. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.js +0 -0
  534. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.d.ts +0 -0
  535. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.js +0 -0
  536. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.d.ts +0 -0
  537. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.js +0 -0
  538. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.d.ts +0 -0
  539. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.js +0 -0
  540. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.d.ts +0 -0
  541. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.js +0 -0
  542. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.d.ts +0 -0
  543. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.js +0 -0
  544. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.d.ts +0 -0
  545. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.js +0 -0
  546. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.d.ts +0 -0
  547. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.js +0 -0
  548. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.d.ts +0 -0
  549. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.js +0 -0
  550. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.d.ts +0 -0
  551. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.js +0 -0
  552. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.d.ts +0 -0
  553. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.js +0 -0
  554. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.d.ts +0 -0
  555. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.js +0 -0
  556. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.d.ts +0 -0
  557. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.js +0 -0
  558. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.d.ts +0 -0
  559. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.js +0 -0
  560. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.d.ts +0 -0
  561. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.js +0 -0
  562. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.d.ts +0 -0
  563. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.js +0 -0
  564. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.d.ts +0 -0
  565. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.js +0 -0
  566. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.d.ts +0 -0
  567. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.js +0 -0
  568. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.d.ts +0 -0
  569. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.js +0 -0
  570. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.d.ts +0 -0
  571. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.js +0 -0
  572. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.d.ts +0 -0
  573. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.js +0 -0
  574. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.d.ts +0 -0
  575. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.js +0 -0
  576. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.d.ts +0 -0
  577. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.js +0 -0
  578. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.d.ts +0 -0
  579. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.js +0 -0
  580. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.d.ts +0 -0
  581. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.js +0 -0
  582. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.d.ts +0 -0
  583. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.js +0 -0
  584. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.d.ts +0 -0
  585. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.js +0 -0
  586. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.d.ts +0 -0
  587. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.js +0 -0
  588. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.d.ts +0 -0
  589. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.js +0 -0
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Returns the media type associated with the file extension. Values are
3
+ * normalized to lower case and matched irrespective of a leading `.`.
4
+ *
5
+ * When `extension` has no associated type, the function returns `undefined`.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { typeByExtension } from "https://deno.land/std@$STD_VERSION/media_types/type_by_extension.ts";
10
+ *
11
+ * typeByExtension("js"); // `application/json`
12
+ * typeByExtension(".HTML"); // `text/html`
13
+ * typeByExtension("foo"); // undefined
14
+ * typeByExtension("file.json"); // undefined
15
+ * ```
16
+ */
17
+ export declare function typeByExtension(extension: string): string | undefined;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.typeByExtension = void 0;
6
+ const _db_js_1 = require("./_db.js");
7
+ /**
8
+ * Returns the media type associated with the file extension. Values are
9
+ * normalized to lower case and matched irrespective of a leading `.`.
10
+ *
11
+ * When `extension` has no associated type, the function returns `undefined`.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * import { typeByExtension } from "https://deno.land/std@$STD_VERSION/media_types/type_by_extension.ts";
16
+ *
17
+ * typeByExtension("js"); // `application/json`
18
+ * typeByExtension(".HTML"); // `text/html`
19
+ * typeByExtension("foo"); // undefined
20
+ * typeByExtension("file.json"); // undefined
21
+ * ```
22
+ */
23
+ function typeByExtension(extension) {
24
+ extension = extension.startsWith(".") ? extension.slice(1) : extension;
25
+ // @ts-ignore workaround around denoland/dnt#148
26
+ return _db_js_1.types.get(extension.toLowerCase());
27
+ }
28
+ exports.typeByExtension = typeByExtension;
@@ -1,3 +1,4 @@
1
+ /** Options for {@linkcode globToRegExp}. */
1
2
  export interface GlobOptions {
2
3
  /** Extended glob syntax.
3
4
  * See https://www.linuxjournal.com/content/bash-extended-globbing.
@@ -2,13 +2,22 @@ import { MaybePromise } from "../1_utilities.js";
2
2
  import { enums, TLObject, types } from "../2_tl.js";
3
3
  import { DC } from "../3_transport.js";
4
4
  export type StorageKeyPart = string | number | bigint;
5
+ export type GetManyFilter = {
6
+ prefix: readonly StorageKeyPart[];
7
+ } | {
8
+ start: readonly StorageKeyPart[];
9
+ end: readonly StorageKeyPart[];
10
+ };
5
11
  export declare abstract class Storage {
6
12
  #private;
7
13
  abstract init(): MaybePromise<void>;
8
14
  abstract set(key: readonly StorageKeyPart[], value: unknown): MaybePromise<void>;
9
15
  abstract incr(key: readonly StorageKeyPart[], by: number): MaybePromise<void>;
10
16
  abstract get<T>(key: readonly StorageKeyPart[]): MaybePromise<T | null>;
11
- abstract getMany<T>(prefix: readonly StorageKeyPart[]): MaybePromise<Generator<[readonly StorageKeyPart[], T]> | AsyncGenerator<[readonly StorageKeyPart[], T]>>;
17
+ abstract getMany<T>(prefix: GetManyFilter, params?: {
18
+ limit?: number;
19
+ reverse?: boolean;
20
+ }): MaybePromise<Generator<[readonly StorageKeyPart[], T]> | AsyncGenerator<[readonly StorageKeyPart[], T]>>;
12
21
  setDc(dc: DC | null): MaybePromise<void>;
13
22
  getDc(): MaybePromise<DC | null>;
14
23
  getAuthKey(): Promise<Uint8Array | null>;
@@ -21,13 +30,14 @@ export declare abstract class Storage {
21
30
  updateUsernames(type: "user" | "channel", id: bigint, usernames: string[]): Promise<void>;
22
31
  getUsername(username: string): Promise<["channel" | "user", bigint, Date] | null>;
23
32
  setTlObject(key: readonly StorageKeyPart[], value: TLObject | null): Promise<void>;
24
- getTLObject(key: readonly StorageKeyPart[]): Promise<import("../2_tl.js").ReadObject | null>;
33
+ getTLObject(keyOrBuffer: Uint8Array | readonly StorageKeyPart[]): Promise<import("../2_tl.js").ReadObject | null>;
25
34
  setState(state: enums.updates.State): Promise<void>;
26
35
  getState(): Promise<import("../tl/2_types.js").updates_State_ | null>;
27
36
  setMessage(chatId: number, messageId: number, message: enums.Message | null): Promise<void>;
28
37
  deleteMessages(): Promise<void>;
29
38
  getMessageChat(messageId: number): MaybePromise<number | null>;
30
39
  getMessage(chatId: number, messageId: number): Promise<enums.Message | null>;
40
+ getLastMessage(chatId: number): Promise<enums.Message | null>;
31
41
  setChannelPts(channelId: bigint, pts: number): Promise<void>;
32
42
  getChannelPts(channelId: bigint): MaybePromise<number | null>;
33
43
  setEntity(peer: types.Channel): Promise<void>;
@@ -43,4 +53,17 @@ export declare abstract class Storage {
43
53
  getStickerSetName(id: bigint, accessHash: bigint): MaybePromise<[string, Date] | null>;
44
54
  setServerSalt(serverSalt: bigint): Promise<void>;
45
55
  getServerSalt(): MaybePromise<bigint | null>;
56
+ setChat(listId: number, chatId: number, pinned: number, topMessageId: number, topMessageDate: Date): Promise<void>;
57
+ getChats(listId: number): Promise<{
58
+ chatId: number;
59
+ pinned: number;
60
+ topMessageId: number;
61
+ topMessageDate: Date;
62
+ }[]>;
63
+ removeChats(listId: number): Promise<void>;
64
+ setHasAllChats(listId: number, hasAllChats: boolean): Promise<void>;
65
+ hasAllChats(listId: number): Promise<boolean>;
66
+ setPinnedChats(listId: number, chatIds: number[] | null): Promise<void>;
67
+ getPinnedChats(listId: number): Promise<number[] | null>;
68
+ getHistory(chatId: number, offsetId: number, limit: number): Promise<enums.Message[]>;
46
69
  }
@@ -26,7 +26,13 @@ const KPARTS__PEER = (type, id) => ["peer", type, id];
26
26
  const KPARTS__ACCOUNT_TYPE = ["accountType"];
27
27
  const KPARTS__STICKER_SET_NAME = (id, accessHash) => ["stickerSetName", id, accessHash];
28
28
  const KPARTS_MESSAGE = (chatId, messageId) => ["messages", chatId, messageId];
29
+ const KPARTS_MESSAGES = (chatId) => ["messages", chatId];
29
30
  const KPARTS_MESSAGE_REF = (messageId) => ["messageRefs", messageId];
31
+ const KPARTS_HAS_ALL_CHATS = (listId) => ["hasAllChats", listId];
32
+ const KPARTS_CHATS = (listId) => ["chats", listId];
33
+ const KPARTS_CHAT = (listId, chatId) => ["chats", listId, chatId];
34
+ const KPARTS_PINNED_CHATS = (listId) => ["pinnedChats", listId];
35
+ const KPARTS_SERVER_SALT = ["serverSalt"];
30
36
  class Storage {
31
37
  constructor() {
32
38
  _Storage_instances.add(this);
@@ -80,8 +86,8 @@ class Storage {
80
86
  await this.set(key, (0, _1_utilities_js_1.rleEncode)(value[_2_tl_js_1.serialize]()));
81
87
  }
82
88
  }
83
- async getTLObject(key) {
84
- const buffer = await this.get(key);
89
+ async getTLObject(keyOrBuffer) {
90
+ const buffer = keyOrBuffer instanceof Uint8Array ? keyOrBuffer : await this.get(keyOrBuffer);
85
91
  if (buffer != null) {
86
92
  return new _2_tl_js_1.TLReader((0, _1_utilities_js_1.rleDecode)(buffer)).readObject();
87
93
  }
@@ -103,7 +109,7 @@ class Storage {
103
109
  }
104
110
  async deleteMessages() {
105
111
  const maybePromises = new Array();
106
- for await (const [k, o] of await this.getMany(["messageRefs"])) {
112
+ for await (const [k, o] of await this.getMany({ prefix: ["messageRefs"] })) {
107
113
  maybePromises.push(Promise.all([this.set(k, null), o == null ? Promise.resolve() : this.set(KPARTS_MESSAGE(o, k[1]), null)]).then(() => { }));
108
114
  }
109
115
  await Promise.all(maybePromises.filter((v) => v instanceof Promise));
@@ -114,6 +120,12 @@ class Storage {
114
120
  async getMessage(chatId, messageId) {
115
121
  return await this.getTLObject(KPARTS_MESSAGE(chatId, messageId));
116
122
  }
123
+ async getLastMessage(chatId) {
124
+ for await (const [_, buffer] of await this.getMany({ prefix: KPARTS_MESSAGES(chatId) }, { limit: 1, reverse: true })) {
125
+ return await this.getTLObject(buffer);
126
+ }
127
+ return null;
128
+ }
117
129
  async setChannelPts(channelId, pts) {
118
130
  await this.set(KPARTS__CHANNEL_PTS(channelId), pts);
119
131
  }
@@ -157,10 +169,53 @@ class Storage {
157
169
  return this.get(KPARTS__STICKER_SET_NAME(id, accessHash));
158
170
  }
159
171
  async setServerSalt(serverSalt) {
160
- await this.set(["serverSalt"], serverSalt);
172
+ await this.set(KPARTS_SERVER_SALT, serverSalt);
161
173
  }
162
174
  getServerSalt() {
163
- return this.get(["serverSalt"]);
175
+ return this.get(KPARTS_SERVER_SALT);
176
+ }
177
+ async setChat(listId, chatId, pinned, topMessageId, topMessageDate) {
178
+ await this.set(KPARTS_CHAT(listId, chatId), [pinned, topMessageId, topMessageDate]);
179
+ }
180
+ async getChats(listId) {
181
+ const chats = new Array();
182
+ for await (const [key, value] of await this.getMany({ prefix: KPARTS_CHATS(listId) })) {
183
+ if (key.length != 3 || typeof key[2] !== "number") {
184
+ continue;
185
+ }
186
+ chats.push({ chatId: key[2], pinned: value[0], topMessageId: value[1], topMessageDate: value[2] });
187
+ }
188
+ return chats;
189
+ }
190
+ async removeChats(listId) {
191
+ for await (const [key] of await this.getMany({ prefix: KPARTS_CHATS(listId) })) {
192
+ await this.set(key, null);
193
+ }
194
+ await this.setHasAllChats(listId, false);
195
+ await this.setPinnedChats(listId, null);
196
+ }
197
+ async setHasAllChats(listId, hasAllChats) {
198
+ await this.set(KPARTS_HAS_ALL_CHATS(listId), hasAllChats);
199
+ }
200
+ async hasAllChats(listId) {
201
+ const v = await this.get(KPARTS_HAS_ALL_CHATS(listId));
202
+ return v == true;
203
+ }
204
+ async setPinnedChats(listId, chatIds) {
205
+ await this.set(KPARTS_PINNED_CHATS(listId), chatIds);
206
+ }
207
+ async getPinnedChats(listId) {
208
+ return await this.get(KPARTS_PINNED_CHATS(listId));
209
+ }
210
+ async getHistory(chatId, offsetId, limit) {
211
+ if (offsetId == 0) {
212
+ offsetId = Infinity;
213
+ }
214
+ const messages = new Array();
215
+ for await (const [_, buffer] of await this.getMany({ start: KPARTS_MESSAGE(chatId, 0), end: KPARTS_MESSAGE(chatId, offsetId) }, { limit, reverse: true })) {
216
+ messages.push(await this.getTLObject(buffer));
217
+ }
218
+ return messages;
164
219
  }
165
220
  }
166
221
  exports.Storage = Storage;
@@ -11,4 +11,6 @@ export declare enum ValueType {
11
11
  export declare function toString(value: unknown): string;
12
12
  export declare function fromString<T>(string: string): T;
13
13
  export declare function fixKey(key: readonly StorageKeyPart[]): (string | number)[];
14
+ export declare function restoreKey(key: readonly StorageKeyPart[]): (string | number | bigint)[];
14
15
  export declare function getPrefixKeyRange(prefix: any): IDBKeyRange;
16
+ export declare function isInRange(key: StorageKeyPart[], start: readonly StorageKeyPart[], end: readonly StorageKeyPart[]): boolean;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPrefixKeyRange = exports.fixKey = exports.fromString = exports.toString = exports.ValueType = void 0;
3
+ exports.isInRange = exports.getPrefixKeyRange = exports.restoreKey = exports.fixKey = exports.fromString = exports.toString = exports.ValueType = void 0;
4
4
  const _0_deps_js_1 = require("../0_deps.js");
5
5
  const _1_utilities_js_1 = require("../1_utilities.js");
6
6
  var ValueType;
@@ -96,6 +96,26 @@ function fixKey(key) {
96
96
  return key.map((v) => typeof v === "bigint" ? String(ValueType.BigInt) + String(v) : typeof v === "string" ? String(ValueType.String) + v : v);
97
97
  }
98
98
  exports.fixKey = fixKey;
99
+ function restoreKey(key) {
100
+ return key.map((v) => {
101
+ if (typeof v === "string") {
102
+ const t = Number(v[0]);
103
+ if (t == ValueType.BigInt) {
104
+ return BigInt(v.slice(1));
105
+ }
106
+ else if (t == ValueType.String) {
107
+ return v.slice(1);
108
+ }
109
+ else {
110
+ return v;
111
+ }
112
+ }
113
+ else {
114
+ return v;
115
+ }
116
+ });
117
+ }
118
+ exports.restoreKey = restoreKey;
99
119
  // Source: https://gist.github.com/inexorabletash/5462871
100
120
  // deno-lint-ignore no-explicit-any
101
121
  function getPrefixKeyRange(prefix) {
@@ -160,3 +180,18 @@ function successor(key) {
160
180
  }
161
181
  throw new TypeError();
162
182
  }
183
+ function isInRange(key, start, end) {
184
+ for (const [i, part] of key.entries()) {
185
+ const left = start[i];
186
+ const right = end[i];
187
+ if (left === undefined || right === undefined) {
188
+ return false;
189
+ }
190
+ if (part >= left && part <= right) {
191
+ continue;
192
+ }
193
+ return false;
194
+ }
195
+ return true;
196
+ }
197
+ exports.isInRange = isInRange;
@@ -1,4 +1,4 @@
1
- import { Storage, StorageKeyPart } from "./0_storage.js";
1
+ import { GetManyFilter, Storage, StorageKeyPart } from "./0_storage.js";
2
2
  export declare class StorageIndexedDB extends Storage {
3
3
  readonly name: string;
4
4
  database: IDBDatabase | null;
@@ -6,6 +6,9 @@ export declare class StorageIndexedDB extends Storage {
6
6
  init(): Promise<void>;
7
7
  set(k: readonly StorageKeyPart[], v: unknown, tx_?: IDBTransaction): Promise<void>;
8
8
  get<T>(k: readonly StorageKeyPart[], tx_?: IDBTransaction): Promise<T | null>;
9
- getMany<T>(prefix: readonly StorageKeyPart[], tx_?: IDBTransaction): AsyncGenerator<[readonly StorageKeyPart[], T], void, unknown>;
9
+ getMany<T>(filter: GetManyFilter, params?: {
10
+ limit?: number;
11
+ reverse?: boolean;
12
+ }, tx_?: IDBTransaction): AsyncGenerator<[readonly StorageKeyPart[], T], void, unknown>;
10
13
  incr(key: readonly StorageKeyPart[], by: number): Promise<void>;
11
14
  }
@@ -75,17 +75,39 @@ class StorageIndexedDB extends _0_storage_js_1.Storage {
75
75
  };
76
76
  });
77
77
  }
78
- async *getMany(prefix, tx_) {
78
+ async *getMany(filter, params, tx_) {
79
79
  if (!this.database) {
80
80
  throw new Error("Not initialized");
81
81
  }
82
+ if (params?.limit !== undefined && params.limit <= 0) {
83
+ params.limit = 1;
84
+ }
85
+ let keyRange;
86
+ if ("prefix" in filter) {
87
+ keyRange = (0, _0_utilities_js_1.getPrefixKeyRange)((0, _0_utilities_js_1.fixKey)(filter.prefix));
88
+ }
89
+ else {
90
+ keyRange = IDBKeyRange.bound((0, _0_utilities_js_1.fixKey)(filter.start), (0, _0_utilities_js_1.fixKey)(filter.end), true, true);
91
+ }
82
92
  const keys = await new Promise((res, rej) => {
93
+ const items = new Array();
83
94
  const tx = (tx_ ?? this.database.transaction(KV_OBJECT_STORE, "readonly"))
84
95
  .objectStore(KV_OBJECT_STORE)
85
- .getAllKeys((0, _0_utilities_js_1.getPrefixKeyRange)(prefix));
96
+ .openKeyCursor(keyRange, params?.reverse ? "prev" : undefined);
86
97
  tx.onerror = rej;
87
98
  tx.onsuccess = () => {
88
- res(tx.result);
99
+ const cursor = tx.result;
100
+ if (!cursor) {
101
+ res(items);
102
+ return;
103
+ }
104
+ items.push((0, _0_utilities_js_1.restoreKey)(cursor.key));
105
+ if (params?.limit !== undefined && items.length >= params.limit) {
106
+ res(items);
107
+ }
108
+ else {
109
+ cursor.continue();
110
+ }
89
111
  };
90
112
  });
91
113
  for (const key of keys) {
@@ -1,10 +1,13 @@
1
- import { Storage, StorageKeyPart } from "./0_storage.js";
1
+ import { GetManyFilter, Storage, StorageKeyPart } from "./0_storage.js";
2
2
  export declare class StorageLocalStorage extends Storage implements Storage {
3
3
  private readonly prefix;
4
4
  constructor(prefix: string);
5
5
  init(): void;
6
6
  get<T>(key_: readonly StorageKeyPart[]): T | null;
7
- getMany<T>(prefix: readonly StorageKeyPart[]): Generator<[readonly StorageKeyPart[], T], void, unknown>;
7
+ getMany<T>(filter: GetManyFilter, params?: {
8
+ limit?: number;
9
+ reverse?: boolean;
10
+ }): Generator<[readonly StorageKeyPart[], T], void, unknown>;
8
11
  set(key_: readonly StorageKeyPart[], value: unknown): void;
9
12
  incr(key: readonly StorageKeyPart[], by: number): void;
10
13
  }
@@ -34,19 +34,33 @@ class StorageLocalStorage extends _0_storage_js_1.Storage {
34
34
  return null;
35
35
  }
36
36
  }
37
- *getMany(prefix) {
38
- for (let [key, value] of Object.entries(localStorage)) {
37
+ *getMany(filter, params) {
38
+ let entries = Object.entries(localStorage).sort(([a], [b]) => a.localeCompare(b));
39
+ if (params?.reverse) {
40
+ entries.reverse();
41
+ }
42
+ if (params?.limit !== undefined) {
43
+ entries = entries.slice(0, params.limit <= 0 ? 1 : params.limit);
44
+ }
45
+ for (let [key, value] of entries) {
39
46
  if (key.startsWith(this.prefix)) {
40
47
  key = key.slice(this.prefix.length);
41
48
  }
42
49
  const parts = (0, _0_utilities_js_1.fromString)(key);
43
50
  if (Array.isArray(parts)) {
44
- for (const [i, p] of prefix.entries()) {
45
- if ((0, _0_utilities_js_1.toString)(p) != (0, _0_utilities_js_1.toString)(parts[i])) {
51
+ if ("prefix" in filter) {
52
+ for (const [i, p] of filter.prefix.entries()) {
53
+ if ((0, _0_utilities_js_1.toString)(p) != (0, _0_utilities_js_1.toString)(parts[i])) {
54
+ continue;
55
+ }
56
+ }
57
+ }
58
+ else {
59
+ if (!(0, _0_utilities_js_1.isInRange)(parts, filter.start, filter.end)) {
46
60
  continue;
47
61
  }
48
- yield [parts, (0, _0_utilities_js_1.fromString)(value)];
49
62
  }
63
+ yield [parts, (0, _0_utilities_js_1.fromString)(value)];
50
64
  }
51
65
  }
52
66
  }
@@ -1,10 +1,14 @@
1
1
  import { MaybePromise } from "../1_utilities.js";
2
- import { Storage, StorageKeyPart } from "./0_storage.js";
2
+ import { GetManyFilter, Storage, StorageKeyPart } from "./0_storage.js";
3
3
  export declare class StorageMemory extends Storage implements Storage {
4
+ #private;
4
5
  protected map: Map<string, unknown>;
5
6
  init(): void;
6
7
  get<T>(key: readonly StorageKeyPart[]): NonNullable<T> | null;
7
- getMany<T>(prefix: readonly StorageKeyPart[]): Generator<[readonly StorageKeyPart[], T], void, unknown>;
8
+ getMany<T>(filter: GetManyFilter, params?: {
9
+ limit?: number;
10
+ reverse?: boolean;
11
+ }): Generator<[readonly StorageKeyPart[], T], void, unknown>;
8
12
  set(key_: readonly StorageKeyPart[], value: unknown): MaybePromise<void>;
9
13
  incr(key: readonly StorageKeyPart[], by: number): void;
10
14
  }
@@ -1,4 +1,10 @@
1
1
  "use strict";
2
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4
+ 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");
5
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
+ };
7
+ var _StorageMemory_instances, _StorageMemory_getEntries;
2
8
  Object.defineProperty(exports, "__esModule", { value: true });
3
9
  exports.StorageMemory = void 0;
4
10
  const _0_storage_js_1 = require("./0_storage.js");
@@ -6,6 +12,7 @@ const _0_utilities_js_1 = require("./0_utilities.js");
6
12
  class StorageMemory extends _0_storage_js_1.Storage {
7
13
  constructor() {
8
14
  super(...arguments);
15
+ _StorageMemory_instances.add(this);
9
16
  Object.defineProperty(this, "map", {
10
17
  enumerable: true,
11
18
  configurable: true,
@@ -18,16 +25,30 @@ class StorageMemory extends _0_storage_js_1.Storage {
18
25
  get(key) {
19
26
  return this.map.get((0, _0_utilities_js_1.toString)(key)) ?? null;
20
27
  }
21
- *getMany(prefix) {
22
- for (const [key, value] of this.map.entries()) {
28
+ *getMany(filter, params) {
29
+ let entries = __classPrivateFieldGet(this, _StorageMemory_instances, "m", _StorageMemory_getEntries).call(this);
30
+ if (params?.reverse) {
31
+ entries.reverse();
32
+ }
33
+ if (params?.limit !== undefined) {
34
+ entries = entries.slice(0, params.limit <= 0 ? 1 : params.limit);
35
+ }
36
+ for (const [key, value] of entries) {
23
37
  const parts = (0, _0_utilities_js_1.fromString)(key);
24
38
  if (Array.isArray(parts)) {
25
- for (const [i, p] of prefix.entries()) {
26
- if ((0, _0_utilities_js_1.toString)(p) != (0, _0_utilities_js_1.toString)(parts[i])) {
39
+ if ("prefix" in filter) {
40
+ for (const [i, p] of filter.prefix.entries()) {
41
+ if ((0, _0_utilities_js_1.toString)(p) != (0, _0_utilities_js_1.toString)(parts[i])) {
42
+ continue;
43
+ }
44
+ }
45
+ }
46
+ else {
47
+ if (!(0, _0_utilities_js_1.isInRange)(parts, filter.start, filter.end)) {
27
48
  continue;
28
49
  }
29
- yield [parts, value];
30
50
  }
51
+ yield [parts, value];
31
52
  }
32
53
  }
33
54
  }
@@ -45,3 +66,10 @@ class StorageMemory extends _0_storage_js_1.Storage {
45
66
  }
46
67
  }
47
68
  exports.StorageMemory = StorageMemory;
69
+ _StorageMemory_instances = new WeakSet(), _StorageMemory_getEntries = function _StorageMemory_getEntries() {
70
+ const entries = new Array();
71
+ for (const entry of this.map.entries()) {
72
+ entries.push(entry);
73
+ }
74
+ return entries;
75
+ };
@@ -1,11 +1,14 @@
1
1
  import { MaybePromise } from "../1_utilities.js";
2
- import { Storage, StorageKeyPart } from "./0_storage.js";
2
+ import { GetManyFilter, Storage, StorageKeyPart } from "./0_storage.js";
3
3
  export declare class StorageSessionStorage extends Storage implements Storage {
4
4
  private readonly prefix;
5
5
  constructor(prefix: string);
6
6
  init(): void;
7
7
  get<T>(key_: readonly StorageKeyPart[]): T | null;
8
- getMany<T>(prefix: readonly StorageKeyPart[]): Generator<[readonly StorageKeyPart[], T], void, unknown>;
8
+ getMany<T>(filter: GetManyFilter, params?: {
9
+ limit?: number;
10
+ reverse?: boolean;
11
+ }): Generator<[readonly StorageKeyPart[], T], void, unknown>;
9
12
  set(key_: readonly StorageKeyPart[], value: unknown): MaybePromise<void>;
10
13
  incr(key: readonly StorageKeyPart[], by: number): void;
11
14
  }
@@ -34,19 +34,33 @@ class StorageSessionStorage extends _0_storage_js_1.Storage {
34
34
  return null;
35
35
  }
36
36
  }
37
- *getMany(prefix) {
38
- for (let [key, value] of Object.entries(localStorage)) {
37
+ *getMany(filter, params) {
38
+ let entries = Object.entries(sessionStorage).sort(([a], [b]) => a.localeCompare(b));
39
+ if (params?.reverse) {
40
+ entries.reverse();
41
+ }
42
+ if (params?.limit !== undefined) {
43
+ entries = entries.slice(0, params.limit <= 0 ? 1 : params.limit);
44
+ }
45
+ for (let [key, value] of entries) {
39
46
  if (key.startsWith(this.prefix)) {
40
47
  key = key.slice(this.prefix.length);
41
48
  }
42
49
  const parts = (0, _0_utilities_js_1.fromString)(key);
43
50
  if (Array.isArray(parts)) {
44
- for (const [i, p] of prefix.entries()) {
45
- if ((0, _0_utilities_js_1.toString)(p) != (0, _0_utilities_js_1.toString)(parts[i])) {
51
+ if ("prefix" in filter) {
52
+ for (const [i, p] of filter.prefix.entries()) {
53
+ if ((0, _0_utilities_js_1.toString)(p) != (0, _0_utilities_js_1.toString)(parts[i])) {
54
+ continue;
55
+ }
56
+ }
57
+ }
58
+ else {
59
+ if (!(0, _0_utilities_js_1.isInRange)(parts, filter.start, filter.end)) {
46
60
  continue;
47
61
  }
48
- yield [parts, (0, _0_utilities_js_1.fromString)(value)];
49
62
  }
63
+ yield [parts, (0, _0_utilities_js_1.fromString)(value)];
50
64
  }
51
65
  }
52
66
  }
@@ -6,6 +6,7 @@ export declare class TLRawWriter {
6
6
  writeInt24(int: number, signed?: boolean): this;
7
7
  writeInt32(int: number, signed?: boolean): this;
8
8
  writeInt64(int: bigint, signed?: boolean): this;
9
+ writeDouble(double: number): this;
9
10
  writeInt128(int: bigint, signed?: boolean): this;
10
11
  writeInt256(int: bigint, signed?: boolean): this;
11
12
  writeBytes(bytes: Uint8Array): this;
@@ -30,6 +30,12 @@ class TLRawWriter {
30
30
  this.write((0, _1_utilities_js_1.bufferFromBigInt)(int, 64 / 8, true, signed));
31
31
  return this;
32
32
  }
33
+ writeDouble(double) {
34
+ const buf = new Uint8Array(8);
35
+ new DataView(buf.buffer).setFloat64(0, double, true);
36
+ this.write(buf);
37
+ return this;
38
+ }
33
39
  writeInt128(int, signed = true) {
34
40
  this.write((0, _1_utilities_js_1.bufferFromBigInt)(int, 128 / 8, true, signed));
35
41
  return this;
@@ -83,7 +83,12 @@ function serializeSingleParam(writer, value, type, ntype, debugInfo) {
83
83
  }
84
84
  //
85
85
  if (typeof value === "number") {
86
- writer.writeInt32(value);
86
+ if (ntype == "double") {
87
+ writer.writeDouble(value);
88
+ }
89
+ else {
90
+ writer.writeInt32(value);
91
+ }
87
92
  }
88
93
  else {
89
94
  throw new TypeError(`Expected number but received ${valueRepr} ${debugInfo}`);
@@ -9,7 +9,7 @@ function deserializeSingleParam(reader, type, ntype) {
9
9
  const cid = reader.readInt32(false);
10
10
  const constructor = _2_types_js_1.map.get(cid);
11
11
  if (!constructor) {
12
- throw new Error(`Constructor with ID ${cid} not found`);
12
+ throw new Error(`Constructor with ID ${cid.toString(16)} not found`);
13
13
  }
14
14
  return deserialize(reader, constructor[_1_tl_object_js_1.paramDesc], constructor);
15
15
  }
@@ -1,7 +1,7 @@
1
1
  import { types } from "../2_tl.js";
2
2
  import { RestrictionReason } from "./0_restriction_reason.js";
3
3
  export type ChatType = "private" | "group" | "supergroup" | "channel";
4
- export declare namespace Chat {
4
+ export declare namespace ChatP {
5
5
  interface Base {
6
6
  /** The identifier of the chat. */
7
7
  id: number;
@@ -66,7 +66,7 @@ export declare namespace Chat {
66
66
  }
67
67
  }
68
68
  /** This object represents a chat. */
69
- export type Chat = Chat.Private | Chat.Group | Chat.Supergroup | Chat.Channel;
70
- export declare function constructChat(chat: types.User): Chat.Private;
71
- export declare function constructChat(chat: types.Chat): Chat.Group;
72
- export declare function constructChat(chat: types.Channel): Chat.Supergroup | Chat.Channel;
69
+ export type ChatP = ChatP.Private | ChatP.Group | ChatP.Supergroup | ChatP.Channel;
70
+ export declare function constructChatP(chat: types.User): ChatP.Private;
71
+ export declare function constructChatP(chat: types.Chat): ChatP.Group;
72
+ export declare function constructChatP(chat: types.Channel): ChatP.Supergroup | ChatP.Channel;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.constructChat = void 0;
3
+ exports.constructChatP = void 0;
4
4
  const _1_utilities_js_1 = require("../1_utilities.js");
5
5
  const _2_tl_js_1 = require("../2_tl.js");
6
6
  const _0_restriction_reason_js_1 = require("./0_restriction_reason.js");
7
- function constructChat(chat) {
7
+ function constructChatP(chat) {
8
8
  if (chat instanceof _2_tl_js_1.types.User) {
9
9
  const id = Number(chat.id);
10
10
  const chat_ = {
@@ -76,4 +76,4 @@ function constructChat(chat) {
76
76
  (0, _1_utilities_js_1.UNREACHABLE)();
77
77
  }
78
78
  }
79
- exports.constructChat = constructChat;
79
+ exports.constructChatP = constructChatP;