@mtkruto/node 0.1.151 → 0.1.153

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 (597) hide show
  1. package/esm/0_deps.d.ts +4 -4
  2. package/esm/0_deps.js +5 -5
  3. package/esm/3_types.d.ts +11 -0
  4. package/esm/3_types.js +11 -0
  5. package/esm/4_constants.d.ts +1 -1
  6. package/esm/4_constants.js +1 -1
  7. package/esm/client/0_params.d.ts +20 -5
  8. package/esm/client/0_types.d.ts +3 -2
  9. package/esm/client/1_account_manager.d.ts +11 -0
  10. package/esm/client/1_account_manager.js +76 -0
  11. package/esm/client/1_update_manager.js +65 -29
  12. package/esm/client/2_message_manager.d.ts +43 -3
  13. package/esm/client/2_message_manager.js +130 -40
  14. package/esm/client/3_story_manager.d.ts +28 -0
  15. package/esm/client/3_story_manager.js +152 -0
  16. package/esm/client/4_client.d.ts +194 -60
  17. package/esm/client/4_client.js +245 -59
  18. package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/fmt/colors.d.ts +3 -0
  19. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/fmt/colors.js +3 -0
  20. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/glob_to_regexp.d.ts +1 -0
  21. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join_globs.d.ts +1 -0
  22. package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/mod.d.ts +0 -9
  23. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/mod.js +0 -10
  24. package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/normalize_glob.d.ts +1 -0
  25. package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/posix/join_globs.d.ts +1 -0
  26. package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/posix/mod.d.ts +0 -9
  27. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/mod.js +0 -9
  28. package/{script/deps/deno.land/std@0.214.0 → esm/deps/deno.land/std@0.216.0}/path/posix/normalize_glob.d.ts +1 -0
  29. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join_globs.d.ts +1 -0
  30. package/esm/deps/deno.land/{std@0.214.0/path/posix → std@0.216.0/path/windows}/mod.d.ts +0 -9
  31. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/mod.js +0 -9
  32. package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize_glob.d.ts +1 -0
  33. package/esm/tl/3_utilities.d.ts +7 -1
  34. package/esm/tl/3_utilities.js +3 -3
  35. package/esm/types/0_id.d.ts +2 -2
  36. package/esm/types/0_link_preview.d.ts +15 -0
  37. package/esm/types/0_link_preview.js +9 -0
  38. package/esm/types/0_message_search_filter.d.ts +2 -0
  39. package/esm/types/0_message_search_filter.js +36 -0
  40. package/esm/types/0_story_reference.d.ts +5 -0
  41. package/esm/types/0_story_reference.js +1 -0
  42. package/esm/types/0_venue.d.ts +1 -1
  43. package/esm/types/1__getters.d.ts +2 -2
  44. package/esm/types/1_input_message_content.d.ts +6 -1
  45. package/esm/types/1_input_story_content.d.ts +15 -0
  46. package/esm/types/1_input_story_content.js +1 -0
  47. package/esm/types/1_story_interactive_area.d.ts +41 -0
  48. package/esm/types/1_story_interactive_area.js +98 -0
  49. package/esm/types/1_story_privacy.d.ts +22 -0
  50. package/esm/types/1_story_privacy.js +57 -0
  51. package/esm/types/1_story_reaction.d.ts +12 -0
  52. package/esm/types/1_story_reaction.js +7 -0
  53. package/esm/types/2_inactive_chat.d.ts +7 -0
  54. package/esm/types/2_inactive_chat.js +13 -0
  55. package/esm/types/2_message_interactions.d.ts +1 -1
  56. package/esm/types/2_story_content.d.ts +18 -0
  57. package/esm/types/2_story_content.js +35 -0
  58. package/esm/types/2_story_interactions.d.ts +10 -0
  59. package/esm/types/2_story_interactions.js +8 -0
  60. package/esm/types/3_story.d.ts +24 -0
  61. package/esm/types/3_story.js +37 -0
  62. package/esm/types/4_inline_query_result.js +25 -6
  63. package/esm/types/4_message.d.ts +74 -2
  64. package/esm/types/4_message.js +15 -6
  65. package/esm/types/6_update.d.ts +20 -2
  66. package/package.json +1 -1
  67. package/script/0_deps.d.ts +4 -4
  68. package/script/0_deps.js +5 -5
  69. package/script/3_types.d.ts +11 -0
  70. package/script/3_types.js +11 -0
  71. package/script/4_constants.d.ts +1 -1
  72. package/script/4_constants.js +1 -1
  73. package/script/client/0_params.d.ts +20 -5
  74. package/script/client/0_types.d.ts +3 -2
  75. package/script/client/1_account_manager.d.ts +11 -0
  76. package/script/client/1_account_manager.js +80 -0
  77. package/script/client/1_update_manager.js +65 -29
  78. package/script/client/2_message_manager.d.ts +43 -3
  79. package/script/client/2_message_manager.js +130 -40
  80. package/script/client/3_story_manager.d.ts +28 -0
  81. package/script/client/3_story_manager.js +156 -0
  82. package/script/client/4_client.d.ts +194 -60
  83. package/script/client/4_client.js +245 -59
  84. package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/fmt/colors.d.ts +3 -0
  85. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/fmt/colors.js +3 -0
  86. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/glob_to_regexp.d.ts +1 -0
  87. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join_globs.d.ts +1 -0
  88. package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/mod.d.ts +0 -9
  89. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/mod.js +1 -11
  90. package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/normalize_glob.d.ts +1 -0
  91. package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/posix/join_globs.d.ts +1 -0
  92. package/script/deps/deno.land/{std@0.214.0/path/windows → std@0.216.0/path/posix}/mod.d.ts +0 -9
  93. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/mod.js +0 -10
  94. package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/posix/normalize_glob.d.ts +1 -0
  95. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join_globs.d.ts +1 -0
  96. package/{esm/deps/deno.land/std@0.214.0 → script/deps/deno.land/std@0.216.0}/path/windows/mod.d.ts +0 -9
  97. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/mod.js +0 -10
  98. package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize_glob.d.ts +1 -0
  99. package/script/tl/3_utilities.d.ts +7 -1
  100. package/script/tl/3_utilities.js +3 -3
  101. package/script/types/0_id.d.ts +2 -2
  102. package/script/types/0_link_preview.d.ts +15 -0
  103. package/script/types/0_link_preview.js +13 -0
  104. package/script/types/0_message_search_filter.d.ts +2 -0
  105. package/script/types/0_message_search_filter.js +40 -0
  106. package/script/types/0_story_reference.d.ts +5 -0
  107. package/script/types/0_story_reference.js +2 -0
  108. package/script/types/0_venue.d.ts +1 -1
  109. package/script/types/1__getters.d.ts +2 -2
  110. package/script/types/1_input_message_content.d.ts +6 -1
  111. package/script/types/1_input_story_content.d.ts +15 -0
  112. package/script/types/1_input_story_content.js +2 -0
  113. package/script/types/1_story_interactive_area.d.ts +41 -0
  114. package/script/types/1_story_interactive_area.js +103 -0
  115. package/script/types/1_story_privacy.d.ts +22 -0
  116. package/script/types/1_story_privacy.js +62 -0
  117. package/script/types/1_story_reaction.d.ts +12 -0
  118. package/script/types/1_story_reaction.js +11 -0
  119. package/script/types/2_inactive_chat.d.ts +7 -0
  120. package/script/types/2_inactive_chat.js +17 -0
  121. package/script/types/2_message_interactions.d.ts +1 -1
  122. package/script/types/2_story_content.d.ts +18 -0
  123. package/script/types/2_story_content.js +39 -0
  124. package/script/types/2_story_interactions.d.ts +10 -0
  125. package/script/types/2_story_interactions.js +12 -0
  126. package/script/types/3_story.d.ts +24 -0
  127. package/script/types/3_story.js +41 -0
  128. package/script/types/4_inline_query_result.js +25 -6
  129. package/script/types/4_message.d.ts +74 -2
  130. package/script/types/4_message.js +15 -6
  131. package/script/types/6_update.d.ts +20 -2
  132. package/esm/deps/deno.land/std@0.214.0/path/posix/separator.d.ts +0 -8
  133. package/esm/deps/deno.land/std@0.214.0/path/posix/separator.js +0 -10
  134. package/esm/deps/deno.land/std@0.214.0/path/separator.d.ts +0 -8
  135. package/esm/deps/deno.land/std@0.214.0/path/separator.js +0 -11
  136. package/esm/deps/deno.land/std@0.214.0/path/windows/separator.d.ts +0 -8
  137. package/esm/deps/deno.land/std@0.214.0/path/windows/separator.js +0 -10
  138. package/script/deps/deno.land/std@0.214.0/path/posix/separator.d.ts +0 -8
  139. package/script/deps/deno.land/std@0.214.0/path/posix/separator.js +0 -13
  140. package/script/deps/deno.land/std@0.214.0/path/separator.d.ts +0 -8
  141. package/script/deps/deno.land/std@0.214.0/path/separator.js +0 -14
  142. package/script/deps/deno.land/std@0.214.0/path/windows/separator.d.ts +0 -8
  143. package/script/deps/deno.land/std@0.214.0/path/windows/separator.js +0 -13
  144. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_constants.d.ts +0 -0
  145. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_constants.js +0 -0
  146. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_diff.d.ts +0 -0
  147. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_diff.js +0 -0
  148. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_format.d.ts +0 -0
  149. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_format.js +0 -0
  150. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert.d.ts +0 -0
  151. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert.js +0 -0
  152. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_almost_equals.d.ts +0 -0
  153. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_almost_equals.js +0 -0
  154. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_array_includes.d.ts +0 -0
  155. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_array_includes.js +0 -0
  156. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_equals.d.ts +0 -0
  157. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_equals.js +0 -0
  158. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_exists.d.ts +0 -0
  159. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_exists.js +0 -0
  160. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_false.d.ts +0 -0
  161. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_false.js +0 -0
  162. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater.d.ts +0 -0
  163. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater.js +0 -0
  164. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater_or_equal.d.ts +0 -0
  165. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater_or_equal.js +0 -0
  166. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_instance_of.d.ts +0 -0
  167. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_instance_of.js +0 -0
  168. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_is_error.d.ts +0 -0
  169. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_is_error.js +0 -0
  170. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less.d.ts +0 -0
  171. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less.js +0 -0
  172. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less_or_equal.d.ts +0 -0
  173. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less_or_equal.js +0 -0
  174. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_match.d.ts +0 -0
  175. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_match.js +0 -0
  176. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_equals.d.ts +0 -0
  177. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_equals.js +0 -0
  178. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_instance_of.d.ts +0 -0
  179. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_instance_of.js +0 -0
  180. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_match.d.ts +0 -0
  181. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_match.js +0 -0
  182. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_strict_equals.d.ts +0 -0
  183. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_strict_equals.js +0 -0
  184. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_object_match.d.ts +0 -0
  185. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_object_match.js +0 -0
  186. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_rejects.d.ts +0 -0
  187. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_rejects.js +0 -0
  188. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_strict_equals.d.ts +0 -0
  189. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_strict_equals.js +0 -0
  190. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_string_includes.d.ts +0 -0
  191. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_string_includes.js +0 -0
  192. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_throws.d.ts +0 -0
  193. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_throws.js +0 -0
  194. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assertion_error.d.ts +0 -0
  195. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assertion_error.js +0 -0
  196. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/equal.d.ts +0 -0
  197. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/equal.js +0 -0
  198. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/fail.d.ts +0 -0
  199. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/fail.js +0 -0
  200. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/mod.d.ts +0 -0
  201. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/mod.js +0 -0
  202. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unimplemented.d.ts +0 -0
  203. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unimplemented.js +0 -0
  204. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unreachable.d.ts +0 -0
  205. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unreachable.js +0 -0
  206. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/_util.d.ts +0 -0
  207. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/_util.js +0 -0
  208. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/base64.d.ts +0 -0
  209. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/base64.js +0 -0
  210. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_db.d.ts +0 -0
  211. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_db.js +0 -0
  212. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_util.d.ts +0 -0
  213. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_util.js +0 -0
  214. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/content_type.d.ts +0 -0
  215. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/content_type.js +0 -0
  216. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extension.d.ts +0 -0
  217. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extension.js +0 -0
  218. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extensions_by_type.d.ts +0 -0
  219. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extensions_by_type.js +0 -0
  220. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/format_media_type.d.ts +0 -0
  221. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/format_media_type.js +0 -0
  222. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/get_charset.d.ts +0 -0
  223. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/get_charset.js +0 -0
  224. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/parse_media_type.d.ts +0 -0
  225. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/parse_media_type.js +0 -0
  226. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/type_by_extension.d.ts +0 -0
  227. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/type_by_extension.js +0 -0
  228. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  229. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  230. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/assert_path.d.ts +0 -0
  231. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/assert_path.js +0 -0
  232. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/basename.d.ts +0 -0
  233. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/basename.js +0 -0
  234. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/common.d.ts +0 -0
  235. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/common.js +0 -0
  236. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/constants.d.ts +0 -0
  237. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/constants.js +0 -0
  238. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/dirname.d.ts +0 -0
  239. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/dirname.js +0 -0
  240. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/format.d.ts +0 -0
  241. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/format.js +0 -0
  242. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/from_file_url.d.ts +0 -0
  243. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/from_file_url.js +0 -0
  244. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  245. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/glob_to_reg_exp.js +0 -0
  246. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize.d.ts +0 -0
  247. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize.js +0 -0
  248. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize_string.d.ts +0 -0
  249. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize_string.js +0 -0
  250. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/relative.d.ts +0 -0
  251. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/relative.js +0 -0
  252. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  253. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/strip_trailing_separators.js +0 -0
  254. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/to_file_url.d.ts +0 -0
  255. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/to_file_url.js +0 -0
  256. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_interface.d.ts +0 -0
  257. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_interface.js +0 -0
  258. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_os.d.ts +0 -0
  259. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_os.js +0 -0
  260. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/basename.d.ts +0 -0
  261. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/basename.js +0 -0
  262. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/common.d.ts +0 -0
  263. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/common.js +0 -0
  264. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/constants.d.ts +0 -0
  265. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/constants.js +0 -0
  266. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/dirname.d.ts +0 -0
  267. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/dirname.js +0 -0
  268. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/extname.d.ts +0 -0
  269. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/extname.js +0 -0
  270. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/format.d.ts +0 -0
  271. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/format.js +0 -0
  272. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/from_file_url.d.ts +0 -0
  273. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/from_file_url.js +0 -0
  274. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/glob_to_regexp.js +0 -0
  275. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_absolute.d.ts +0 -0
  276. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_absolute.js +0 -0
  277. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_glob.d.ts +0 -0
  278. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_glob.js +0 -0
  279. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join.d.ts +0 -0
  280. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join.js +0 -0
  281. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join_globs.js +0 -0
  282. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize.d.ts +0 -0
  283. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize.js +0 -0
  284. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize_glob.js +0 -0
  285. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/parse.d.ts +0 -0
  286. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/parse.js +0 -0
  287. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/_util.d.ts +0 -0
  288. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/_util.js +0 -0
  289. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/basename.d.ts +0 -0
  290. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/basename.js +0 -0
  291. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/common.d.ts +0 -0
  292. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/common.js +0 -0
  293. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/constants.d.ts +0 -0
  294. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/constants.js +0 -0
  295. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/dirname.d.ts +0 -0
  296. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/dirname.js +0 -0
  297. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/extname.d.ts +0 -0
  298. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/extname.js +0 -0
  299. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/format.d.ts +0 -0
  300. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/format.js +0 -0
  301. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/from_file_url.d.ts +0 -0
  302. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/from_file_url.js +0 -0
  303. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/glob_to_regexp.d.ts +0 -0
  304. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/glob_to_regexp.js +0 -0
  305. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_absolute.d.ts +0 -0
  306. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_absolute.js +0 -0
  307. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_glob.d.ts +0 -0
  308. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_glob.js +0 -0
  309. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join.d.ts +0 -0
  310. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join.js +0 -0
  311. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join_globs.js +0 -0
  312. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize.d.ts +0 -0
  313. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize.js +0 -0
  314. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize_glob.js +0 -0
  315. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/parse.d.ts +0 -0
  316. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/parse.js +0 -0
  317. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/relative.d.ts +0 -0
  318. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/relative.js +0 -0
  319. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/resolve.d.ts +0 -0
  320. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/resolve.js +0 -0
  321. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_file_url.d.ts +0 -0
  322. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_file_url.js +0 -0
  323. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_namespaced_path.d.ts +0 -0
  324. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_namespaced_path.js +0 -0
  325. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/relative.d.ts +0 -0
  326. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/relative.js +0 -0
  327. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/resolve.d.ts +0 -0
  328. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/resolve.js +0 -0
  329. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_file_url.d.ts +0 -0
  330. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_file_url.js +0 -0
  331. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_namespaced_path.d.ts +0 -0
  332. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_namespaced_path.js +0 -0
  333. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/_util.d.ts +0 -0
  334. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/_util.js +0 -0
  335. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/basename.d.ts +0 -0
  336. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/basename.js +0 -0
  337. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/common.d.ts +0 -0
  338. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/common.js +0 -0
  339. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/constants.d.ts +0 -0
  340. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/constants.js +0 -0
  341. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/dirname.d.ts +0 -0
  342. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/dirname.js +0 -0
  343. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/extname.d.ts +0 -0
  344. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/extname.js +0 -0
  345. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/format.d.ts +0 -0
  346. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/format.js +0 -0
  347. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/from_file_url.d.ts +0 -0
  348. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/from_file_url.js +0 -0
  349. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/glob_to_regexp.d.ts +0 -0
  350. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/glob_to_regexp.js +0 -0
  351. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_absolute.d.ts +0 -0
  352. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_absolute.js +0 -0
  353. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_glob.d.ts +0 -0
  354. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_glob.js +0 -0
  355. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join.d.ts +0 -0
  356. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join.js +0 -0
  357. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join_globs.js +0 -0
  358. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize.d.ts +0 -0
  359. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize.js +0 -0
  360. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize_glob.js +0 -0
  361. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/parse.d.ts +0 -0
  362. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/parse.js +0 -0
  363. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/relative.d.ts +0 -0
  364. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/relative.js +0 -0
  365. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/resolve.d.ts +0 -0
  366. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/resolve.js +0 -0
  367. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_file_url.d.ts +0 -0
  368. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_file_url.js +0 -0
  369. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_namespaced_path.d.ts +0 -0
  370. /package/esm/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_namespaced_path.js +0 -0
  371. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_constants.d.ts +0 -0
  372. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_constants.js +0 -0
  373. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_diff.d.ts +0 -0
  374. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_diff.js +0 -0
  375. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_format.d.ts +0 -0
  376. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/_format.js +0 -0
  377. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert.d.ts +0 -0
  378. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert.js +0 -0
  379. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_almost_equals.d.ts +0 -0
  380. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_almost_equals.js +0 -0
  381. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_array_includes.d.ts +0 -0
  382. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_array_includes.js +0 -0
  383. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_equals.d.ts +0 -0
  384. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_equals.js +0 -0
  385. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_exists.d.ts +0 -0
  386. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_exists.js +0 -0
  387. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_false.d.ts +0 -0
  388. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_false.js +0 -0
  389. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater.d.ts +0 -0
  390. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater.js +0 -0
  391. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater_or_equal.d.ts +0 -0
  392. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_greater_or_equal.js +0 -0
  393. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_instance_of.d.ts +0 -0
  394. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_instance_of.js +0 -0
  395. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_is_error.d.ts +0 -0
  396. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_is_error.js +0 -0
  397. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less.d.ts +0 -0
  398. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less.js +0 -0
  399. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less_or_equal.d.ts +0 -0
  400. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_less_or_equal.js +0 -0
  401. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_match.d.ts +0 -0
  402. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_match.js +0 -0
  403. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_equals.d.ts +0 -0
  404. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_equals.js +0 -0
  405. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_instance_of.d.ts +0 -0
  406. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_instance_of.js +0 -0
  407. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_match.d.ts +0 -0
  408. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_match.js +0 -0
  409. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_strict_equals.d.ts +0 -0
  410. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_not_strict_equals.js +0 -0
  411. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_object_match.d.ts +0 -0
  412. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_object_match.js +0 -0
  413. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_rejects.d.ts +0 -0
  414. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_rejects.js +0 -0
  415. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_strict_equals.d.ts +0 -0
  416. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_strict_equals.js +0 -0
  417. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_string_includes.d.ts +0 -0
  418. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_string_includes.js +0 -0
  419. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_throws.d.ts +0 -0
  420. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assert_throws.js +0 -0
  421. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assertion_error.d.ts +0 -0
  422. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/assertion_error.js +0 -0
  423. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/equal.d.ts +0 -0
  424. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/equal.js +0 -0
  425. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/fail.d.ts +0 -0
  426. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/fail.js +0 -0
  427. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/mod.d.ts +0 -0
  428. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/mod.js +0 -0
  429. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unimplemented.d.ts +0 -0
  430. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unimplemented.js +0 -0
  431. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unreachable.d.ts +0 -0
  432. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/assert/unreachable.js +0 -0
  433. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/_util.d.ts +0 -0
  434. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/_util.js +0 -0
  435. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/base64.d.ts +0 -0
  436. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/encoding/base64.js +0 -0
  437. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_db.d.ts +0 -0
  438. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_db.js +0 -0
  439. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_util.d.ts +0 -0
  440. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/_util.js +0 -0
  441. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/content_type.d.ts +0 -0
  442. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/content_type.js +0 -0
  443. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extension.d.ts +0 -0
  444. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extension.js +0 -0
  445. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extensions_by_type.d.ts +0 -0
  446. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/extensions_by_type.js +0 -0
  447. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/format_media_type.d.ts +0 -0
  448. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/format_media_type.js +0 -0
  449. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/get_charset.d.ts +0 -0
  450. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/get_charset.js +0 -0
  451. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/parse_media_type.d.ts +0 -0
  452. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/parse_media_type.js +0 -0
  453. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/type_by_extension.d.ts +0 -0
  454. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/type_by_extension.js +0 -0
  455. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  456. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  457. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/assert_path.d.ts +0 -0
  458. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/assert_path.js +0 -0
  459. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/basename.d.ts +0 -0
  460. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/basename.js +0 -0
  461. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/common.d.ts +0 -0
  462. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/common.js +0 -0
  463. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/constants.d.ts +0 -0
  464. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/constants.js +0 -0
  465. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/dirname.d.ts +0 -0
  466. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/dirname.js +0 -0
  467. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/format.d.ts +0 -0
  468. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/format.js +0 -0
  469. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/from_file_url.d.ts +0 -0
  470. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/from_file_url.js +0 -0
  471. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
  472. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/glob_to_reg_exp.js +0 -0
  473. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize.d.ts +0 -0
  474. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize.js +0 -0
  475. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize_string.d.ts +0 -0
  476. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/normalize_string.js +0 -0
  477. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/relative.d.ts +0 -0
  478. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/relative.js +0 -0
  479. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  480. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/strip_trailing_separators.js +0 -0
  481. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/to_file_url.d.ts +0 -0
  482. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_common/to_file_url.js +0 -0
  483. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_interface.d.ts +0 -0
  484. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_interface.js +0 -0
  485. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_os.d.ts +0 -0
  486. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/_os.js +0 -0
  487. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/basename.d.ts +0 -0
  488. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/basename.js +0 -0
  489. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/common.d.ts +0 -0
  490. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/common.js +0 -0
  491. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/constants.d.ts +0 -0
  492. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/constants.js +0 -0
  493. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/dirname.d.ts +0 -0
  494. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/dirname.js +0 -0
  495. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/extname.d.ts +0 -0
  496. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/extname.js +0 -0
  497. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/format.d.ts +0 -0
  498. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/format.js +0 -0
  499. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/from_file_url.d.ts +0 -0
  500. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/from_file_url.js +0 -0
  501. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/glob_to_regexp.js +0 -0
  502. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_absolute.d.ts +0 -0
  503. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_absolute.js +0 -0
  504. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_glob.d.ts +0 -0
  505. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/is_glob.js +0 -0
  506. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join.d.ts +0 -0
  507. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join.js +0 -0
  508. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/join_globs.js +0 -0
  509. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize.d.ts +0 -0
  510. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize.js +0 -0
  511. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/normalize_glob.js +0 -0
  512. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/parse.d.ts +0 -0
  513. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/parse.js +0 -0
  514. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/_util.d.ts +0 -0
  515. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/_util.js +0 -0
  516. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/basename.d.ts +0 -0
  517. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/basename.js +0 -0
  518. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/common.d.ts +0 -0
  519. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/common.js +0 -0
  520. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/constants.d.ts +0 -0
  521. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/constants.js +0 -0
  522. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/dirname.d.ts +0 -0
  523. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/dirname.js +0 -0
  524. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/extname.d.ts +0 -0
  525. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/extname.js +0 -0
  526. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/format.d.ts +0 -0
  527. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/format.js +0 -0
  528. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/from_file_url.d.ts +0 -0
  529. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/from_file_url.js +0 -0
  530. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/glob_to_regexp.d.ts +0 -0
  531. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/glob_to_regexp.js +0 -0
  532. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_absolute.d.ts +0 -0
  533. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_absolute.js +0 -0
  534. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_glob.d.ts +0 -0
  535. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/is_glob.js +0 -0
  536. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join.d.ts +0 -0
  537. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join.js +0 -0
  538. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/join_globs.js +0 -0
  539. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize.d.ts +0 -0
  540. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize.js +0 -0
  541. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/normalize_glob.js +0 -0
  542. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/parse.d.ts +0 -0
  543. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/parse.js +0 -0
  544. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/relative.d.ts +0 -0
  545. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/relative.js +0 -0
  546. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/resolve.d.ts +0 -0
  547. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/resolve.js +0 -0
  548. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_file_url.d.ts +0 -0
  549. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_file_url.js +0 -0
  550. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_namespaced_path.d.ts +0 -0
  551. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/posix/to_namespaced_path.js +0 -0
  552. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/relative.d.ts +0 -0
  553. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/relative.js +0 -0
  554. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/resolve.d.ts +0 -0
  555. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/resolve.js +0 -0
  556. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_file_url.d.ts +0 -0
  557. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_file_url.js +0 -0
  558. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_namespaced_path.d.ts +0 -0
  559. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/to_namespaced_path.js +0 -0
  560. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/_util.d.ts +0 -0
  561. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/_util.js +0 -0
  562. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/basename.d.ts +0 -0
  563. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/basename.js +0 -0
  564. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/common.d.ts +0 -0
  565. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/common.js +0 -0
  566. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/constants.d.ts +0 -0
  567. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/constants.js +0 -0
  568. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/dirname.d.ts +0 -0
  569. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/dirname.js +0 -0
  570. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/extname.d.ts +0 -0
  571. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/extname.js +0 -0
  572. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/format.d.ts +0 -0
  573. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/format.js +0 -0
  574. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/from_file_url.d.ts +0 -0
  575. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/from_file_url.js +0 -0
  576. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/glob_to_regexp.d.ts +0 -0
  577. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/glob_to_regexp.js +0 -0
  578. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_absolute.d.ts +0 -0
  579. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_absolute.js +0 -0
  580. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_glob.d.ts +0 -0
  581. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/is_glob.js +0 -0
  582. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join.d.ts +0 -0
  583. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join.js +0 -0
  584. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/join_globs.js +0 -0
  585. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize.d.ts +0 -0
  586. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize.js +0 -0
  587. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/normalize_glob.js +0 -0
  588. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/parse.d.ts +0 -0
  589. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/parse.js +0 -0
  590. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/relative.d.ts +0 -0
  591. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/relative.js +0 -0
  592. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/resolve.d.ts +0 -0
  593. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/resolve.js +0 -0
  594. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_file_url.d.ts +0 -0
  595. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_file_url.js +0 -0
  596. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_namespaced_path.d.ts +0 -0
  597. /package/script/deps/deno.land/{std@0.214.0 → std@0.216.0}/path/windows/to_namespaced_path.js +0 -0
@@ -9,13 +9,14 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
9
9
  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");
10
10
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
11
  };
12
- var _MessageManager_instances, _MessageManager_c, _MessageManager_updatesToMessages, _MessageManager_constructReplyMarkup, _MessageManager_resolveSendAs, _MessageManager_constructReplyTo, _MessageManager_sendDocumentInner, _MessageManager_sendMedia, _MessageManager_resolveFileId, _MessageManager_sendReaction;
12
+ var _MessageManager_instances, _MessageManager_c, _MessageManager_updatesToMessages, _MessageManager_constructReplyMarkup, _MessageManager_resolveSendAs, _MessageManager_constructReplyTo, _MessageManager_sendDocumentInner, _MessageManager_sendMedia, _MessageManager_sendReaction, _MessageManager_toggleJoinRequests;
13
13
  import { contentType, debug } from "../0_deps.js";
14
14
  import { getRandomId, toUnixTimestamp, UNREACHABLE } from "../1_utilities.js";
15
15
  import { as, getChannelChatId, peerToChatId, types } from "../2_tl.js";
16
16
  import { constructChatMemberUpdated } from "../3_types.js";
17
17
  import { assertMessageType, chatMemberRightsToTlObject, constructChatMember, constructMessage as constructMessage_, deserializeInlineMessageId, FileID, FileType, messageEntityToTlObject, reactionEqual, reactionToTlObject, replyMarkupToTlObject } from "../3_types.js";
18
18
  import { STICKER_SET_NAME_TTL } from "../4_constants.js";
19
+ import { messageSearchFilterToTlObject } from "../types/0_message_search_filter.js";
19
20
  import { parseHtml } from "./0_html.js";
20
21
  import { getFileContents, isHttpUrl } from "./0_utilities.js";
21
22
  const d = debug("MessageManager");
@@ -135,6 +136,7 @@ export class MessageManager {
135
136
  return await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, to, result);
136
137
  }
137
138
  async getHistory(chatId, params) {
139
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertUser("getHistory");
138
140
  let limit = params?.limit ?? 100;
139
141
  if (limit <= 0) {
140
142
  limit = 1;
@@ -175,22 +177,47 @@ export class MessageManager {
175
177
  const replyMarkup = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params);
176
178
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
177
179
  const randomId = getRandomId();
178
- const noWebpage = params?.disableWebPagePreview ? true : undefined;
180
+ const noWebpage = params?.linkPreview?.disable ? true : undefined;
181
+ const invertMedia = params?.linkPreview?.aboveText ? true : undefined;
179
182
  const silent = params?.disableNotification ? true : undefined;
180
183
  const noforwards = params?.protectContent ? true : undefined;
181
184
  const sendAs = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveSendAs).call(this, params);
182
- const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendMessage({
183
- peer,
184
- random_id: randomId,
185
- message,
186
- no_webpage: noWebpage,
187
- silent,
188
- noforwards,
189
- reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
190
- send_as: sendAs,
191
- entities,
192
- reply_markup: replyMarkup,
193
- });
185
+ let result;
186
+ if (!noWebpage && params?.linkPreview?.url) {
187
+ result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendMedia({
188
+ peer,
189
+ random_id: randomId,
190
+ media: new types.InputMediaWebPage({
191
+ url: params.linkPreview.url,
192
+ force_large_media: params.linkPreview.largeMedia ? true : undefined,
193
+ force_small_media: params.linkPreview.smallMedia ? true : undefined,
194
+ optional: message.length ? undefined : true,
195
+ }),
196
+ message,
197
+ invert_media: invertMedia,
198
+ silent,
199
+ noforwards,
200
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
201
+ send_as: sendAs,
202
+ entities,
203
+ reply_markup: replyMarkup,
204
+ });
205
+ }
206
+ else {
207
+ result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendMessage({
208
+ peer,
209
+ random_id: randomId,
210
+ message,
211
+ no_webpage: noWebpage,
212
+ invert_media: invertMedia,
213
+ silent,
214
+ noforwards,
215
+ reply_to: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyTo).call(this, params),
216
+ send_as: sendAs,
217
+ entities,
218
+ reply_markup: replyMarkup,
219
+ });
220
+ }
194
221
  const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
195
222
  return assertMessageType(message_, "text");
196
223
  }
@@ -373,7 +400,7 @@ export class MessageManager {
373
400
  let media = null;
374
401
  const spoiler = params?.hasSpoiler ? true : undefined;
375
402
  if (typeof photo === "string") {
376
- const fileId = __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveFileId).call(this, photo, FileType.Photo);
403
+ const fileId = this.resolveFileId(photo, FileType.Photo);
377
404
  if (fileId != null) {
378
405
  media = new types.InputMediaPhoto({
379
406
  id: new types.InputPhoto(fileId),
@@ -394,6 +421,29 @@ export class MessageManager {
394
421
  const message = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_sendMedia).call(this, chatId, media, params);
395
422
  return assertMessageType(message, "photo");
396
423
  }
424
+ resolveFileId(maybeFileId, expectedFileType) {
425
+ let fileId = null;
426
+ try {
427
+ fileId = FileID.decode(maybeFileId);
428
+ }
429
+ catch (err) {
430
+ d("fileId: %o", err);
431
+ }
432
+ if (fileId != null) {
433
+ if (fileId.fileType != expectedFileType) {
434
+ UNREACHABLE();
435
+ }
436
+ if (fileId.params.mediaId == undefined || fileId.params.accessHash == undefined || fileId.params.fileReference == undefined) {
437
+ UNREACHABLE();
438
+ }
439
+ return {
440
+ id: fileId.params.mediaId,
441
+ access_hash: fileId.params.accessHash,
442
+ file_reference: fileId.params.fileReference,
443
+ };
444
+ }
445
+ return null;
446
+ }
397
447
  async sendPoll(chatId, question, options, params) {
398
448
  const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
399
449
  const randomId = getRandomId();
@@ -455,12 +505,25 @@ export class MessageManager {
455
505
  }
456
506
  async editMessageText(chatId, messageId, text, params) {
457
507
  const [message, entities] = await this.parseText(text, params);
508
+ const noWebpage = params?.linkPreview?.disable ? true : undefined;
509
+ const invertMedia = params?.linkPreview?.aboveText ? true : undefined;
510
+ let media = undefined;
511
+ if (!noWebpage && params?.linkPreview?.url) {
512
+ media = new types.InputMediaWebPage({
513
+ url: params.linkPreview.url,
514
+ force_large_media: params.linkPreview.largeMedia ? true : undefined,
515
+ force_small_media: params.linkPreview.smallMedia ? true : undefined,
516
+ optional: message.length ? undefined : true,
517
+ });
518
+ }
458
519
  const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editMessage({
459
520
  id: messageId,
460
521
  peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
461
522
  entities,
462
523
  message,
463
- no_webpage: params?.disableWebPagePreview ? true : undefined,
524
+ media,
525
+ no_webpage: noWebpage,
526
+ invert_media: invertMedia,
464
527
  reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
465
528
  });
466
529
  const message_ = await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
@@ -469,11 +532,24 @@ export class MessageManager {
469
532
  async editInlineMessageText(inlineMessageId, text, params) {
470
533
  const [message, entities] = await this.parseText(text, params);
471
534
  const id = deserializeInlineMessageId(inlineMessageId);
535
+ const noWebpage = params?.linkPreview?.disable ? true : undefined;
536
+ const invertMedia = params?.linkPreview?.aboveText ? true : undefined;
537
+ let media = undefined;
538
+ if (!noWebpage && params?.linkPreview?.url) {
539
+ media = new types.InputMediaWebPage({
540
+ url: params.linkPreview.url,
541
+ force_large_media: params.linkPreview.largeMedia ? true : undefined,
542
+ force_small_media: params.linkPreview.smallMedia ? true : undefined,
543
+ optional: message.length ? undefined : true,
544
+ });
545
+ }
472
546
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.editInlineBotMessage({
473
547
  id,
474
548
  entities,
475
549
  message,
476
- no_webpage: params?.disableWebPagePreview ? true : undefined,
550
+ media,
551
+ no_webpage: noWebpage,
552
+ invert_media: invertMedia,
477
553
  reply_markup: await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_constructReplyMarkup).call(this, params),
478
554
  });
479
555
  }
@@ -784,6 +860,39 @@ export class MessageManager {
784
860
  UNREACHABLE();
785
861
  }
786
862
  }
863
+ async enableJoinRequests(chatId) {
864
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertUser("enableJoinRequests");
865
+ await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_toggleJoinRequests).call(this, chatId, true);
866
+ }
867
+ async disableJoinRequests(chatId) {
868
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").storage.assertUser("disableJoinRequests");
869
+ await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_toggleJoinRequests).call(this, chatId, false);
870
+ }
871
+ async searchMessages(chatId, query, params) {
872
+ const result = await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.search({
873
+ peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
874
+ q: query,
875
+ add_offset: 0,
876
+ filter: messageSearchFilterToTlObject(params?.filter ?? "empty"),
877
+ hash: 0n,
878
+ limit: params?.limit ?? 100,
879
+ max_date: 0,
880
+ max_id: 0,
881
+ min_date: 0,
882
+ min_id: 0,
883
+ offset_id: params?.after ? params.after : 0,
884
+ from_id: params?.from ? await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(params.from) : undefined,
885
+ });
886
+ if (!("messages" in result)) {
887
+ UNREACHABLE();
888
+ }
889
+ const messages = new Array();
890
+ for (const message_ of result.messages) {
891
+ const message = await this.constructMessage(message_, false);
892
+ messages.push(message);
893
+ }
894
+ return messages;
895
+ }
787
896
  }
788
897
  _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _MessageManager_updatesToMessages = async function _MessageManager_updatesToMessages(chatId, updates) {
789
898
  const messages = new Array();
@@ -826,7 +935,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
826
935
  let media = null;
827
936
  const spoiler = params?.hasSpoiler ? true : undefined;
828
937
  if (typeof document === "string") {
829
- const fileId = __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_resolveFileId).call(this, document, fileType);
938
+ const fileId = this.resolveFileId(document, fileType);
830
939
  if (fileId != null) {
831
940
  media = new types.InputMediaDocument({
832
941
  id: new types.InputDocument(fileId),
@@ -886,28 +995,6 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
886
995
  entities: captionEntities,
887
996
  });
888
997
  return await __classPrivateFieldGet(this, _MessageManager_instances, "m", _MessageManager_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
889
- }, _MessageManager_resolveFileId = function _MessageManager_resolveFileId(maybeFileId, expectedFileType) {
890
- let fileId = null;
891
- try {
892
- fileId = FileID.decode(maybeFileId);
893
- }
894
- catch (err) {
895
- d("fileId: %o", err);
896
- }
897
- if (fileId != null) {
898
- if (fileId.fileType != expectedFileType) {
899
- UNREACHABLE();
900
- }
901
- if (fileId.params.mediaId == undefined || fileId.params.accessHash == undefined || fileId.params.fileReference == undefined) {
902
- UNREACHABLE();
903
- }
904
- return {
905
- id: fileId.params.mediaId,
906
- access_hash: fileId.params.accessHash,
907
- file_reference: fileId.params.fileReference,
908
- };
909
- }
910
- return null;
911
998
  }, _MessageManager_sendReaction = async function _MessageManager_sendReaction(chatId, messageId, reactions, params) {
912
999
  await __classPrivateFieldGet(this, _MessageManager_c, "f").api.messages.sendReaction({
913
1000
  peer: await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId),
@@ -916,4 +1003,7 @@ _MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _M
916
1003
  big: params?.big ? true : undefined,
917
1004
  add_to_recent: params?.addToRecents ? true : undefined,
918
1005
  });
1006
+ }, _MessageManager_toggleJoinRequests = async function _MessageManager_toggleJoinRequests(chatId, enabled) {
1007
+ const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
1008
+ await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.toggleJoinRequest({ channel, enabled });
919
1009
  };
@@ -0,0 +1,28 @@
1
+ import { enums, types } from "../2_tl.js";
2
+ import { ID, Story, Update } from "../3_types.js";
3
+ import { InputStoryContent } from "../types/1_input_story_content.js";
4
+ import { CreateStoryParams } from "./0_params.js";
5
+ import { C as C_ } from "./0_types.js";
6
+ import { FileManager } from "./1_file_manager.js";
7
+ import { MessageManager } from "./2_message_manager.js";
8
+ type C = C_ & {
9
+ fileManager: FileManager;
10
+ messageManager: MessageManager;
11
+ };
12
+ type StoryManagerUpdate = types.UpdateStory;
13
+ export declare class StoryManager {
14
+ #private;
15
+ constructor(c: C);
16
+ createStory(chatId: ID, content: InputStoryContent, params?: CreateStoryParams): Promise<Story>;
17
+ getStories(chatId: ID, storyIds: number[]): Promise<Story[]>;
18
+ getStory(chatId: ID, storyId: number): Promise<Story>;
19
+ deleteStories(chatId: ID, storyIds: number[]): Promise<void>;
20
+ deleteStory(chatId: ID, storyId: number): Promise<void>;
21
+ addStoriesToHighlights(chatId: ID, storyIds: number[]): Promise<void>;
22
+ addStoryToHighlights(chatId: ID, storyId: number): Promise<void>;
23
+ removeStoriesFromHighlights(chatId: ID, storyIds: number[]): Promise<void>;
24
+ removeStoryFromHighlights(chatId: ID, storyId: number): Promise<void>;
25
+ static canHandleUpdate(update: enums.Update): update is StoryManagerUpdate;
26
+ handleUpdate(update: StoryManagerUpdate): Promise<Update | null>;
27
+ }
28
+ export {};
@@ -0,0 +1,152 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m") throw new TypeError("Private method is not writable");
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6
+ };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ 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");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
12
+ var _StoryManager_instances, _StoryManager_c, _StoryManager_updatesToStory, _StoryManager_togglePinned;
13
+ import { contentType } from "../0_deps.js";
14
+ import { getRandomId, UNREACHABLE } from "../1_utilities.js";
15
+ import { as, inputPeerToPeer, peerToChatId, types } from "../2_tl.js";
16
+ import { constructStory, FileType, storyInteractiveAreaToTlObject, storyPrivacyToTlObject } from "../3_types.js";
17
+ import { getFileContents, isHttpUrl } from "./0_utilities.js";
18
+ export class StoryManager {
19
+ constructor(c) {
20
+ _StoryManager_instances.add(this);
21
+ _StoryManager_c.set(this, void 0);
22
+ __classPrivateFieldSet(this, _StoryManager_c, c, "f");
23
+ }
24
+ async createStory(chatId, content, params) {
25
+ await __classPrivateFieldGet(this, _StoryManager_c, "f").storage.assertUser("createStory");
26
+ let media = null;
27
+ const source = "video" in content ? content.video : "photo" in content ? content.photo : UNREACHABLE();
28
+ if (typeof source === "string") {
29
+ const fileId = __classPrivateFieldGet(this, _StoryManager_c, "f").messageManager.resolveFileId(source, FileType.Photo);
30
+ if (fileId != null) {
31
+ media = new types.InputMediaPhoto({
32
+ id: new types.InputPhoto(fileId),
33
+ });
34
+ }
35
+ }
36
+ if (media == null) {
37
+ if (typeof source === "string" && isHttpUrl(source)) {
38
+ throw new Error("URL not supported");
39
+ }
40
+ else {
41
+ const [contents, fileName_] = await getFileContents(source);
42
+ const fileName = params?.fileName ?? fileName_;
43
+ const mimeType = contentType(fileName.split(".").slice(-1)[0]) ?? "application/octet-stream";
44
+ const file = await __classPrivateFieldGet(this, _StoryManager_c, "f").fileManager.upload(contents, { fileName, chunkSize: params?.chunkSize, signal: params?.signal });
45
+ if ("video" in content) {
46
+ media = new types.InputMediaUploadedDocument({
47
+ file,
48
+ attributes: [new types.DocumentAttributeFilename({ file_name: fileName }), new types.DocumentAttributeVideo({ w: 720, h: 1280, duration: content.duration })],
49
+ mime_type: mimeType,
50
+ });
51
+ }
52
+ else {
53
+ media = new types.InputMediaUploadedPhoto({ file });
54
+ }
55
+ }
56
+ }
57
+ const caption_ = params?.caption;
58
+ const parseResult = caption_ !== undefined ? await __classPrivateFieldGet(this, _StoryManager_c, "f").messageManager.parseText(caption_, { parseMode: params?.parseMode, entities: params?.captionEntities }) : undefined;
59
+ const caption = parseResult === undefined ? undefined : parseResult[0];
60
+ const entities = parseResult === undefined ? undefined : parseResult[1];
61
+ const peer = await __classPrivateFieldGet(this, _StoryManager_c, "f").getInputPeer(chatId);
62
+ const randomId = getRandomId();
63
+ const privacyRules = await storyPrivacyToTlObject(params?.privacy ?? { everyoneExcept: [] }, __classPrivateFieldGet(this, _StoryManager_c, "f").getEntity);
64
+ const mediaAreas = new Array();
65
+ if (params?.interactiveAreas?.length) {
66
+ for (const area of params.interactiveAreas) {
67
+ mediaAreas.push(await storyInteractiveAreaToTlObject(area, __classPrivateFieldGet(this, _StoryManager_c, "f").getEntity));
68
+ }
69
+ }
70
+ const updates = await __classPrivateFieldGet(this, _StoryManager_c, "f").api.stories.sendStory({
71
+ peer,
72
+ random_id: randomId,
73
+ media,
74
+ privacy_rules: privacyRules,
75
+ caption,
76
+ entities,
77
+ noforwards: params?.protectContent ? true : undefined,
78
+ period: params?.activeFor,
79
+ pinned: params?.highlight ? true : undefined,
80
+ media_areas: mediaAreas,
81
+ });
82
+ return await __classPrivateFieldGet(this, _StoryManager_instances, "m", _StoryManager_updatesToStory).call(this, updates);
83
+ }
84
+ async getStories(chatId, storyIds) {
85
+ await __classPrivateFieldGet(this, _StoryManager_c, "f").storage.assertUser("getStories");
86
+ const peer = await __classPrivateFieldGet(this, _StoryManager_c, "f").getInputPeer(chatId);
87
+ const stories_ = await __classPrivateFieldGet(this, _StoryManager_c, "f").api.stories.getStoriesByID({ peer, id: storyIds });
88
+ const stories = new Array();
89
+ for (const story of stories_.stories) {
90
+ stories.push(await constructStory(story[as](types.StoryItem), inputPeerToPeer(peer), __classPrivateFieldGet(this, _StoryManager_c, "f").getEntity));
91
+ }
92
+ return stories;
93
+ }
94
+ async getStory(chatId, storyId) {
95
+ await __classPrivateFieldGet(this, _StoryManager_c, "f").storage.assertUser("getStory");
96
+ return await this.getStories(chatId, [storyId]).then((v) => v[0] ?? null);
97
+ }
98
+ async deleteStories(chatId, storyIds) {
99
+ await __classPrivateFieldGet(this, _StoryManager_c, "f").storage.assertUser("deleteStories");
100
+ const peer = await __classPrivateFieldGet(this, _StoryManager_c, "f").getInputPeer(chatId);
101
+ await __classPrivateFieldGet(this, _StoryManager_c, "f").api.stories.deleteStories({ peer, id: storyIds });
102
+ }
103
+ async deleteStory(chatId, storyId) {
104
+ await __classPrivateFieldGet(this, _StoryManager_c, "f").storage.assertUser("deleteStory");
105
+ await this.deleteStories(chatId, [storyId]);
106
+ }
107
+ async addStoriesToHighlights(chatId, storyIds) {
108
+ await __classPrivateFieldGet(this, _StoryManager_c, "f").storage.assertUser("addStoriesToHighlights");
109
+ await __classPrivateFieldGet(this, _StoryManager_instances, "m", _StoryManager_togglePinned).call(this, chatId, storyIds, true);
110
+ }
111
+ async addStoryToHighlights(chatId, storyId) {
112
+ await __classPrivateFieldGet(this, _StoryManager_c, "f").storage.assertUser("addStoryToHighlights");
113
+ await this.addStoriesToHighlights(chatId, [storyId]);
114
+ }
115
+ async removeStoriesFromHighlights(chatId, storyIds) {
116
+ await __classPrivateFieldGet(this, _StoryManager_c, "f").storage.assertUser("removeStoriesFromHighlights");
117
+ await __classPrivateFieldGet(this, _StoryManager_instances, "m", _StoryManager_togglePinned).call(this, chatId, storyIds, false);
118
+ }
119
+ async removeStoryFromHighlights(chatId, storyId) {
120
+ await __classPrivateFieldGet(this, _StoryManager_c, "f").storage.assertUser("removeStoryFromHighlights");
121
+ await this.removeStoriesFromHighlights(chatId, [storyId]);
122
+ }
123
+ static canHandleUpdate(update) {
124
+ return update instanceof types.UpdateStory;
125
+ }
126
+ async handleUpdate(update) {
127
+ if (update.story instanceof types.StoryItemDeleted) {
128
+ const chatId = peerToChatId(update.peer);
129
+ const storyId = update.story.id;
130
+ return { deletedStory: { chatId, storyId } };
131
+ }
132
+ else if (update.story instanceof types.StoryItem) {
133
+ const story = await constructStory(update.story, update.peer, __classPrivateFieldGet(this, _StoryManager_c, "f").getEntity);
134
+ return { story };
135
+ }
136
+ else {
137
+ return null;
138
+ }
139
+ }
140
+ }
141
+ _StoryManager_c = new WeakMap(), _StoryManager_instances = new WeakSet(), _StoryManager_updatesToStory = async function _StoryManager_updatesToStory(updates) {
142
+ if (updates instanceof types.Updates) {
143
+ const updateStory = updates.updates.find((v) => v instanceof types.UpdateStory);
144
+ if (updateStory && updateStory.story instanceof types.StoryItem) {
145
+ return await constructStory(updateStory.story, updateStory.peer, __classPrivateFieldGet(this, _StoryManager_c, "f").getEntity);
146
+ }
147
+ }
148
+ UNREACHABLE();
149
+ }, _StoryManager_togglePinned = async function _StoryManager_togglePinned(chatId, storyIds, pinned) {
150
+ const peer = await __classPrivateFieldGet(this, _StoryManager_c, "f").getInputPeer(chatId);
151
+ await __classPrivateFieldGet(this, _StoryManager_c, "f").api.stories.togglePinned({ peer, id: storyIds, pinned });
152
+ };