@mtkruto/node 0.1.124 → 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.
- package/esm/0_deps.d.ts +4 -3
- package/esm/0_deps.js +4 -3
- package/esm/1_utilities.d.ts +1 -1
- package/esm/1_utilities.js +1 -1
- package/esm/3_types.d.ts +2 -1
- package/esm/3_types.js +2 -1
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/1_client_abstract.d.ts +1 -1
- package/esm/client/3_types.d.ts +79 -2
- package/esm/client/3_types.js +11 -1
- package/esm/client/5_client.d.ts +31 -2
- package/esm/client/5_client.js +473 -67
- package/esm/connection/0_connection.d.ts +4 -0
- package/esm/connection/0_connection.js +6 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.d.ts +6 -5
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.js +5 -6
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.js +2 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert.d.ts +12 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert.js +18 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_almost_equals.d.ts +17 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_almost_equals.js +9 -10
- package/esm/deps/deno.land/std@0.209.0/assert/assert_array_includes.d.ts +18 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_array_includes.js +6 -4
- package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_equals.d.ts +4 -5
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_equals.js +4 -5
- package/esm/deps/deno.land/std@0.209.0/assert/assert_exists.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_exists.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_false.d.ts +14 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_false.js +18 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_greater.d.ts +14 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater.js +9 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_greater_or_equal.d.ts +14 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater_or_equal.js +9 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_instance_of.d.ts +17 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_instance_of.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_is_error.d.ts +18 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_is_error.js +48 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_less.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_less_or_equal.d.ts +14 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less_or_equal.js +9 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_match.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_match.js +8 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.d.ts +2 -1
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.js +2 -1
- package/esm/deps/deno.land/std@0.209.0/assert/assert_not_instance_of.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_instance_of.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_not_match.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_match.js +8 -0
- 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
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_strict_equals.js +3 -1
- package/esm/deps/deno.land/std@0.209.0/assert/assert_object_match.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_object_match.js +10 -2
- package/esm/deps/deno.land/std@0.209.0/assert/assert_rejects.d.ts +26 -0
- 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
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_strict_equals.js +6 -11
- package/esm/deps/deno.land/std@0.209.0/assert/assert_string_includes.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_string_includes.js +8 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.d.ts +4 -31
- package/esm/deps/deno.land/std@0.209.0/assert/assertion_error.d.ts +14 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assertion_error.js +18 -0
- package/esm/deps/deno.land/std@0.209.0/assert/equal.d.ts +14 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/equal.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/fail.d.ts +11 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/fail.js +8 -1
- package/esm/deps/deno.land/std@0.209.0/assert/unimplemented.d.ts +11 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unimplemented.js +10 -1
- package/esm/deps/deno.land/std@0.209.0/assert/unreachable.d.ts +11 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unreachable.js +10 -1
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.d.ts +24 -8
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.js +27 -27
- package/esm/deps/deno.land/std@0.209.0/media_types/_db.d.ts +5 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/_db.js +33 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/_util.d.ts +21 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/_util.js +122 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/content_type.d.ts +38 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/content_type.js +55 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/format_media_type.d.ts +16 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/format_media_type.js +61 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/get_charset.d.ts +15 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/get_charset.js +37 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/parse_media_type.d.ts +37 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/parse_media_type.js +122 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/type_by_extension.d.ts +17 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/type_by_extension.js +24 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/vendor/mime-db.v1.52.0.d.ts +8518 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/vendor/mime-db.v1.52.0.js +8555 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
- package/esm/storage/0_storage.d.ts +26 -2
- package/esm/storage/0_storage.js +60 -5
- package/esm/storage/0_utilities.d.ts +2 -0
- package/esm/storage/0_utilities.js +33 -0
- package/esm/storage/1_storage_indexed_db.d.ts +8 -4
- package/esm/storage/1_storage_indexed_db.js +42 -11
- package/esm/storage/1_storage_local_storage.d.ts +7 -4
- package/esm/storage/1_storage_local_storage.js +23 -6
- package/esm/storage/1_storage_memory.d.ts +7 -2
- package/esm/storage/1_storage_memory.js +37 -6
- package/esm/storage/1_storage_session_storage.d.ts +6 -2
- package/esm/storage/1_storage_session_storage.js +23 -6
- package/esm/tl/0_tl_raw_writer.d.ts +1 -0
- package/esm/tl/0_tl_raw_writer.js +6 -0
- package/esm/tl/1_tl_object.js +6 -1
- package/esm/tl/3_deserialize.js +1 -1
- package/esm/transport/0_transport.d.ts +1 -1
- package/esm/transport/0_transport.js +0 -6
- package/esm/transport/1_transport_abridged.d.ts +1 -0
- package/esm/transport/1_transport_abridged.js +9 -5
- package/esm/transport/1_transport_intermediate.d.ts +1 -0
- package/esm/transport/1_transport_intermediate.js +8 -4
- package/esm/types/{1_chat.d.ts → 1_chat_p.d.ts} +7 -20
- package/esm/types/{1_chat.js → 1_chat_p.js} +4 -15
- package/esm/types/1_user.js +4 -2
- package/esm/types/3_message.d.ts +9 -8
- package/esm/types/3_message.js +20 -15
- package/esm/types/4_chat.d.ts +33 -0
- package/esm/types/4_chat.js +117 -0
- package/esm/utilities/{0_base64.js → 1_base64.js} +2 -1
- package/package.json +1 -1
- package/script/0_deps.d.ts +4 -3
- package/script/0_deps.js +6 -4
- package/script/1_utilities.d.ts +1 -1
- package/script/1_utilities.js +1 -1
- package/script/3_types.d.ts +2 -1
- package/script/3_types.js +2 -1
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/1_client_abstract.d.ts +1 -1
- package/script/client/3_types.d.ts +79 -2
- package/script/client/3_types.js +13 -0
- package/script/client/5_client.d.ts +31 -2
- package/script/client/5_client.js +471 -65
- package/script/connection/0_connection.d.ts +4 -0
- package/script/connection/0_connection.js +6 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.d.ts +6 -5
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.js +23 -24
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.js +2 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert.d.ts +12 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert.js +11 -1
- package/script/deps/deno.land/std@0.209.0/assert/assert_almost_equals.d.ts +17 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_almost_equals.js +9 -10
- package/script/deps/deno.land/std@0.209.0/assert/assert_array_includes.d.ts +18 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_array_includes.js +6 -4
- package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_equals.d.ts +4 -5
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_equals.js +4 -5
- package/script/deps/deno.land/std@0.209.0/assert/assert_exists.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_exists.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_false.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_false.js +11 -1
- package/script/deps/deno.land/std@0.209.0/assert/assert_greater.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater.js +9 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_greater_or_equal.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater_or_equal.js +9 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_instance_of.d.ts +17 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_instance_of.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_is_error.d.ts +18 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_is_error.js +24 -5
- package/script/deps/deno.land/std@0.209.0/assert/assert_less.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_less_or_equal.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less_or_equal.js +9 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_match.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_match.js +8 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.d.ts +2 -1
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.js +2 -1
- package/script/deps/deno.land/std@0.209.0/assert/assert_not_instance_of.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_instance_of.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_not_match.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_match.js +8 -0
- 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
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_strict_equals.js +3 -1
- package/script/deps/deno.land/std@0.209.0/assert/assert_object_match.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_object_match.js +10 -2
- package/script/deps/deno.land/std@0.209.0/assert/assert_rejects.d.ts +26 -0
- 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
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_strict_equals.js +6 -11
- package/script/deps/deno.land/std@0.209.0/assert/assert_string_includes.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_string_includes.js +8 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.d.ts +4 -31
- package/script/deps/deno.land/std@0.209.0/assert/assertion_error.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assertion_error.js +13 -7
- package/script/deps/deno.land/std@0.209.0/assert/equal.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/equal.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/fail.d.ts +11 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/fail.js +8 -1
- package/script/deps/deno.land/std@0.209.0/assert/unimplemented.d.ts +11 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unimplemented.js +10 -1
- package/script/deps/deno.land/std@0.209.0/assert/unreachable.d.ts +11 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unreachable.js +10 -1
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.d.ts +24 -8
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.js +27 -27
- package/script/deps/deno.land/std@0.209.0/media_types/_db.d.ts +5 -0
- package/script/deps/deno.land/std@0.209.0/media_types/_db.js +39 -0
- package/script/deps/deno.land/std@0.209.0/media_types/_util.d.ts +21 -0
- package/script/deps/deno.land/std@0.209.0/media_types/_util.js +132 -0
- package/script/deps/deno.land/std@0.209.0/media_types/content_type.d.ts +38 -0
- package/script/deps/deno.land/std@0.209.0/media_types/content_type.js +59 -0
- package/script/deps/deno.land/std@0.209.0/media_types/format_media_type.d.ts +16 -0
- package/script/deps/deno.land/std@0.209.0/media_types/format_media_type.js +65 -0
- package/script/deps/deno.land/std@0.209.0/media_types/get_charset.d.ts +15 -0
- package/script/deps/deno.land/std@0.209.0/media_types/get_charset.js +41 -0
- package/script/deps/deno.land/std@0.209.0/media_types/parse_media_type.d.ts +37 -0
- package/script/deps/deno.land/std@0.209.0/media_types/parse_media_type.js +126 -0
- package/script/deps/deno.land/std@0.209.0/media_types/type_by_extension.d.ts +17 -0
- package/script/deps/deno.land/std@0.209.0/media_types/type_by_extension.js +28 -0
- package/script/deps/deno.land/std@0.209.0/media_types/vendor/mime-db.v1.52.0.d.ts +8518 -0
- package/script/deps/deno.land/std@0.209.0/media_types/vendor/mime-db.v1.52.0.js +8557 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
- package/script/storage/0_storage.d.ts +26 -2
- package/script/storage/0_storage.js +60 -5
- package/script/storage/0_utilities.d.ts +2 -0
- package/script/storage/0_utilities.js +36 -1
- package/script/storage/1_storage_indexed_db.d.ts +8 -4
- package/script/storage/1_storage_indexed_db.js +41 -10
- package/script/storage/1_storage_local_storage.d.ts +7 -4
- package/script/storage/1_storage_local_storage.js +22 -5
- package/script/storage/1_storage_memory.d.ts +7 -2
- package/script/storage/1_storage_memory.js +36 -5
- package/script/storage/1_storage_session_storage.d.ts +6 -2
- package/script/storage/1_storage_session_storage.js +22 -5
- package/script/tl/0_tl_raw_writer.d.ts +1 -0
- package/script/tl/0_tl_raw_writer.js +6 -0
- package/script/tl/1_tl_object.js +6 -1
- package/script/tl/3_deserialize.js +1 -1
- package/script/transport/0_transport.d.ts +1 -1
- package/script/transport/0_transport.js +0 -6
- package/script/transport/1_transport_abridged.d.ts +1 -0
- package/script/transport/1_transport_abridged.js +9 -5
- package/script/transport/1_transport_intermediate.d.ts +1 -0
- package/script/transport/1_transport_intermediate.js +8 -4
- package/script/types/{1_chat.d.ts → 1_chat_p.d.ts} +7 -20
- package/script/types/{1_chat.js → 1_chat_p.js} +6 -17
- package/script/types/1_user.js +4 -2
- package/script/types/3_message.d.ts +9 -8
- package/script/types/3_message.js +20 -15
- package/script/types/4_chat.d.ts +33 -0
- package/script/types/4_chat.js +124 -0
- package/script/utilities/{0_base64.js → 1_base64.js} +2 -1
- package/esm/deps/deno.land/std@0.208.0/assert/assert.d.ts +0 -2
- package/esm/deps/deno.land/std@0.208.0/assert/assert.js +0 -8
- package/esm/deps/deno.land/std@0.208.0/assert/assert_almost_equals.d.ts +0 -18
- package/esm/deps/deno.land/std@0.208.0/assert/assert_array_includes.d.ts +0 -14
- package/esm/deps/deno.land/std@0.208.0/assert/assert_exists.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_false.d.ts +0 -4
- package/esm/deps/deno.land/std@0.208.0/assert/assert_false.js +0 -8
- package/esm/deps/deno.land/std@0.208.0/assert/assert_greater.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_greater_or_equal.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_instance_of.d.ts +0 -8
- package/esm/deps/deno.land/std@0.208.0/assert/assert_is_error.d.ts +0 -7
- package/esm/deps/deno.land/std@0.208.0/assert/assert_is_error.js +0 -29
- package/esm/deps/deno.land/std@0.208.0/assert/assert_less.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_less_or_equal.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_match.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_not_instance_of.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_not_match.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_object_match.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_rejects.d.ts +0 -64
- package/esm/deps/deno.land/std@0.208.0/assert/assert_string_includes.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assertion_error.d.ts +0 -4
- package/esm/deps/deno.land/std@0.208.0/assert/assertion_error.js +0 -12
- package/esm/deps/deno.land/std@0.208.0/assert/equal.d.ts +0 -6
- package/esm/deps/deno.land/std@0.208.0/assert/fail.d.ts +0 -4
- package/esm/deps/deno.land/std@0.208.0/assert/unimplemented.d.ts +0 -2
- package/esm/deps/deno.land/std@0.208.0/assert/unreachable.d.ts +0 -2
- package/script/deps/deno.land/std@0.208.0/assert/assert.d.ts +0 -2
- package/script/deps/deno.land/std@0.208.0/assert/assert_almost_equals.d.ts +0 -18
- package/script/deps/deno.land/std@0.208.0/assert/assert_array_includes.d.ts +0 -14
- package/script/deps/deno.land/std@0.208.0/assert/assert_exists.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_false.d.ts +0 -4
- package/script/deps/deno.land/std@0.208.0/assert/assert_greater.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_greater_or_equal.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_instance_of.d.ts +0 -8
- package/script/deps/deno.land/std@0.208.0/assert/assert_is_error.d.ts +0 -7
- package/script/deps/deno.land/std@0.208.0/assert/assert_less.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_less_or_equal.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_match.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_not_instance_of.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_not_match.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_object_match.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_rejects.d.ts +0 -64
- package/script/deps/deno.land/std@0.208.0/assert/assert_string_includes.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assertion_error.d.ts +0 -4
- package/script/deps/deno.land/std@0.208.0/assert/equal.d.ts +0 -6
- package/script/deps/deno.land/std@0.208.0/assert/fail.d.ts +0 -4
- package/script/deps/deno.land/std@0.208.0/assert/unimplemented.d.ts +0 -2
- package/script/deps/deno.land/std@0.208.0/assert/unreachable.d.ts +0 -2
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.js +0 -0
- /package/esm/utilities/{0_base64.d.ts → 1_base64.d.ts} +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.js +0 -0
- /package/script/utilities/{0_base64.d.ts → 1_base64.d.ts} +0 -0
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _TransportAbridged_connection, _TransportAbridged_obfuscated;
|
|
13
|
+
var _TransportAbridged_initialized, _TransportAbridged_connection, _TransportAbridged_obfuscated;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.TransportAbridged = void 0;
|
|
16
16
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
@@ -19,20 +19,21 @@ const _0_transport_js_1 = require("./0_transport.js");
|
|
|
19
19
|
class TransportAbridged extends _0_transport_js_1.Transport {
|
|
20
20
|
constructor(connection, obfuscated = false) {
|
|
21
21
|
super();
|
|
22
|
+
_TransportAbridged_initialized.set(this, false);
|
|
22
23
|
_TransportAbridged_connection.set(this, void 0);
|
|
23
24
|
_TransportAbridged_obfuscated.set(this, void 0);
|
|
24
25
|
__classPrivateFieldSet(this, _TransportAbridged_connection, connection, "f");
|
|
25
26
|
__classPrivateFieldSet(this, _TransportAbridged_obfuscated, obfuscated, "f");
|
|
26
27
|
}
|
|
27
28
|
async initialize() {
|
|
28
|
-
if (!this
|
|
29
|
+
if (!__classPrivateFieldGet(this, _TransportAbridged_initialized, "f")) {
|
|
29
30
|
if (__classPrivateFieldGet(this, _TransportAbridged_obfuscated, "f")) {
|
|
30
31
|
this.obfuscationParameters = await (0, _0_obfuscation_js_1.getObfuscationParameters)(0xEFEFEFEF, __classPrivateFieldGet(this, _TransportAbridged_connection, "f"));
|
|
31
32
|
}
|
|
32
33
|
else {
|
|
33
34
|
await __classPrivateFieldGet(this, _TransportAbridged_connection, "f").write(new Uint8Array([0xEF]));
|
|
34
35
|
}
|
|
35
|
-
this
|
|
36
|
+
__classPrivateFieldSet(this, _TransportAbridged_initialized, true, "f");
|
|
36
37
|
}
|
|
37
38
|
else {
|
|
38
39
|
throw new Error("Transport already initialized");
|
|
@@ -73,8 +74,11 @@ class TransportAbridged extends _0_transport_js_1.Transport {
|
|
|
73
74
|
await __classPrivateFieldGet(this, _TransportAbridged_connection, "f").write(data);
|
|
74
75
|
}
|
|
75
76
|
deinitialize() {
|
|
76
|
-
this
|
|
77
|
+
__classPrivateFieldSet(this, _TransportAbridged_initialized, false, "f");
|
|
78
|
+
}
|
|
79
|
+
get initialized() {
|
|
80
|
+
return __classPrivateFieldGet(this, _TransportAbridged_initialized, "f");
|
|
77
81
|
}
|
|
78
82
|
}
|
|
79
83
|
exports.TransportAbridged = TransportAbridged;
|
|
80
|
-
_TransportAbridged_connection = new WeakMap(), _TransportAbridged_obfuscated = new WeakMap();
|
|
84
|
+
_TransportAbridged_initialized = new WeakMap(), _TransportAbridged_connection = new WeakMap(), _TransportAbridged_obfuscated = new WeakMap();
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _TransportIntermediate_connection, _TransportIntermediate_obfuscated;
|
|
13
|
+
var _TransportIntermediate_connection, _TransportIntermediate_initialized, _TransportIntermediate_obfuscated;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.TransportIntermediate = void 0;
|
|
16
16
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
@@ -20,6 +20,7 @@ class TransportIntermediate extends _0_transport_js_1.Transport {
|
|
|
20
20
|
constructor(connection, obfuscated = false) {
|
|
21
21
|
super();
|
|
22
22
|
_TransportIntermediate_connection.set(this, void 0);
|
|
23
|
+
_TransportIntermediate_initialized.set(this, false);
|
|
23
24
|
_TransportIntermediate_obfuscated.set(this, void 0);
|
|
24
25
|
__classPrivateFieldSet(this, _TransportIntermediate_connection, connection, "f");
|
|
25
26
|
__classPrivateFieldSet(this, _TransportIntermediate_obfuscated, obfuscated, "f");
|
|
@@ -32,7 +33,7 @@ class TransportIntermediate extends _0_transport_js_1.Transport {
|
|
|
32
33
|
else {
|
|
33
34
|
await __classPrivateFieldGet(this, _TransportIntermediate_connection, "f").write(new Uint8Array([0xEE, 0xEE, 0xEE, 0xEE]));
|
|
34
35
|
}
|
|
35
|
-
this
|
|
36
|
+
__classPrivateFieldSet(this, _TransportIntermediate_initialized, true, "f");
|
|
36
37
|
}
|
|
37
38
|
else {
|
|
38
39
|
throw new Error("Transport already initialized");
|
|
@@ -62,8 +63,11 @@ class TransportIntermediate extends _0_transport_js_1.Transport {
|
|
|
62
63
|
await __classPrivateFieldGet(this, _TransportIntermediate_connection, "f").write(data);
|
|
63
64
|
}
|
|
64
65
|
deinitialize() {
|
|
65
|
-
this
|
|
66
|
+
__classPrivateFieldSet(this, _TransportIntermediate_initialized, false, "f");
|
|
67
|
+
}
|
|
68
|
+
get initialized() {
|
|
69
|
+
return __classPrivateFieldGet(this, _TransportIntermediate_initialized, "f");
|
|
66
70
|
}
|
|
67
71
|
}
|
|
68
72
|
exports.TransportIntermediate = TransportIntermediate;
|
|
69
|
-
_TransportIntermediate_connection = new WeakMap(), _TransportIntermediate_obfuscated = new WeakMap();
|
|
73
|
+
_TransportIntermediate_connection = new WeakMap(), _TransportIntermediate_initialized = new WeakMap(), _TransportIntermediate_obfuscated = new WeakMap();
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { types } from "../2_tl.js";
|
|
2
|
-
import { ChatPhoto } from "./0_chat_photo.js";
|
|
3
2
|
import { RestrictionReason } from "./0_restriction_reason.js";
|
|
4
3
|
export type ChatType = "private" | "group" | "supergroup" | "channel";
|
|
5
|
-
export declare namespace
|
|
4
|
+
export declare namespace ChatP {
|
|
6
5
|
interface Base {
|
|
7
|
-
/** The type of the chat. */
|
|
8
|
-
type: ChatType;
|
|
9
6
|
/** The identifier of the chat. */
|
|
10
7
|
id: number;
|
|
8
|
+
/** The type of the chat. */
|
|
9
|
+
type: ChatType;
|
|
11
10
|
/** Identifier of a color that can be displayed instead of the chat's photo. */
|
|
12
11
|
color: number;
|
|
13
|
-
/** The chat's photo. */
|
|
14
|
-
photo?: ChatPhoto;
|
|
15
12
|
}
|
|
16
13
|
interface Private extends Base {
|
|
17
14
|
type: "private";
|
|
@@ -23,10 +20,6 @@ export declare namespace Chat {
|
|
|
23
20
|
lastName?: string;
|
|
24
21
|
/** The user's main username. */
|
|
25
22
|
username?: string;
|
|
26
|
-
/** The user's other usernames. */
|
|
27
|
-
also?: string[];
|
|
28
|
-
/** The user's profile photo. */
|
|
29
|
-
photo?: ChatPhoto.User;
|
|
30
23
|
/** Whether the user has been identified as scam. */
|
|
31
24
|
isScam: boolean;
|
|
32
25
|
/** Whether the user has been identified as an impersonator. */
|
|
@@ -44,8 +37,6 @@ export declare namespace Chat {
|
|
|
44
37
|
type: "group";
|
|
45
38
|
/** The title of the chat. */
|
|
46
39
|
title: string;
|
|
47
|
-
/** The chat's photo. */
|
|
48
|
-
photo?: ChatPhoto.Chat;
|
|
49
40
|
/** Whether the current user is the owner of the chat. */
|
|
50
41
|
isCreator: boolean;
|
|
51
42
|
}
|
|
@@ -54,10 +45,6 @@ export declare namespace Chat {
|
|
|
54
45
|
title: string;
|
|
55
46
|
/** The main username of the chat or channel. */
|
|
56
47
|
username?: string;
|
|
57
|
-
/** The other usernames of the chat or channel. */
|
|
58
|
-
also?: string[];
|
|
59
|
-
/** The chat or channel's photo. */
|
|
60
|
-
photo?: ChatPhoto.Chat;
|
|
61
48
|
/** Whether the chat or channel has been identified as scam. */
|
|
62
49
|
isScam: boolean;
|
|
63
50
|
/** Whether the chat or channel has been identified as an impersonator. */
|
|
@@ -79,7 +66,7 @@ export declare namespace Chat {
|
|
|
79
66
|
}
|
|
80
67
|
}
|
|
81
68
|
/** This object represents a chat. */
|
|
82
|
-
export type
|
|
83
|
-
export declare function
|
|
84
|
-
export declare function
|
|
85
|
-
export declare function
|
|
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,17 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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
|
-
const _0_chat_photo_js_1 = require("./0_chat_photo.js");
|
|
7
6
|
const _0_restriction_reason_js_1 = require("./0_restriction_reason.js");
|
|
8
|
-
function
|
|
7
|
+
function constructChatP(chat) {
|
|
9
8
|
if (chat instanceof _2_tl_js_1.types.User) {
|
|
10
9
|
const id = Number(chat.id);
|
|
11
10
|
const chat_ = {
|
|
11
|
+
id,
|
|
12
12
|
type: "private",
|
|
13
13
|
isBot: chat.bot || false,
|
|
14
|
-
id,
|
|
15
14
|
color: chat.color?.color !== undefined ? chat.color.color : (0, _1_utilities_js_1.getColorFromPeerId)(id),
|
|
16
15
|
firstName: chat.first_name || "",
|
|
17
16
|
lastName: chat.last_name,
|
|
@@ -24,23 +23,17 @@ function constructChat(chat) {
|
|
|
24
23
|
chat_.isRestricted = chat.restricted || false;
|
|
25
24
|
chat_.restrictionReason = chat.restriction_reason;
|
|
26
25
|
}
|
|
27
|
-
if (chat.photo instanceof _2_tl_js_1.types.UserProfilePhoto) {
|
|
28
|
-
chat_.photo = (0, _0_chat_photo_js_1.constructChatPhoto)(chat.photo, chat_.id, chat.access_hash ?? 0n);
|
|
29
|
-
}
|
|
30
26
|
return (0, _1_utilities_js_1.cleanObject)(chat_);
|
|
31
27
|
}
|
|
32
28
|
else if (chat instanceof _2_tl_js_1.types.Chat) {
|
|
33
29
|
const id = Number(-chat.id);
|
|
34
30
|
const chat_ = {
|
|
35
|
-
type: "group",
|
|
36
31
|
id,
|
|
32
|
+
type: "group",
|
|
37
33
|
color: (0, _1_utilities_js_1.getColorFromPeerId)(id),
|
|
38
34
|
title: chat.title,
|
|
39
35
|
isCreator: chat.creator || false,
|
|
40
36
|
};
|
|
41
|
-
if (chat.photo instanceof _2_tl_js_1.types.ChatPhoto) {
|
|
42
|
-
chat_.photo = (0, _0_chat_photo_js_1.constructChatPhoto)(chat.photo, chat_.id, 0n);
|
|
43
|
-
}
|
|
44
37
|
return (0, _1_utilities_js_1.cleanObject)(chat_);
|
|
45
38
|
}
|
|
46
39
|
else if (chat instanceof _2_tl_js_1.types.Channel) {
|
|
@@ -73,18 +66,14 @@ function constructChat(chat) {
|
|
|
73
66
|
isRestricted,
|
|
74
67
|
};
|
|
75
68
|
}
|
|
76
|
-
chat_.username = chat.username;
|
|
77
|
-
chat_.also = chat.usernames?.map((v) => v.username);
|
|
69
|
+
chat_.username = chat.username ?? chat.usernames?.[0].username;
|
|
78
70
|
if (chat_.isRestricted) {
|
|
79
71
|
chat_.restrictionReason = (chat.restriction_reason ?? []).map(_0_restriction_reason_js_1.constructRestrictionReason);
|
|
80
72
|
}
|
|
81
|
-
if (chat.photo instanceof _2_tl_js_1.types.ChatPhoto) {
|
|
82
|
-
chat_.photo = (0, _0_chat_photo_js_1.constructChatPhoto)(chat.photo, chat_.id, chat.access_hash ?? 0n);
|
|
83
|
-
}
|
|
84
73
|
return (0, _1_utilities_js_1.cleanObject)(chat_);
|
|
85
74
|
}
|
|
86
75
|
else {
|
|
87
76
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
88
77
|
}
|
|
89
78
|
}
|
|
90
|
-
exports.
|
|
79
|
+
exports.constructChatP = constructChatP;
|
package/script/types/1_user.js
CHANGED
|
@@ -6,14 +6,16 @@ const _2_tl_js_1 = require("../2_tl.js");
|
|
|
6
6
|
const _0_chat_photo_js_1 = require("./0_chat_photo.js");
|
|
7
7
|
function constructUser(user_) {
|
|
8
8
|
const id = Number(user_.id);
|
|
9
|
+
const usernames = user_.usernames?.map((v) => v.username);
|
|
10
|
+
const username = user_.username ?? usernames?.shift();
|
|
9
11
|
const user = {
|
|
10
12
|
id,
|
|
11
13
|
color: user_.color?.color !== undefined ? user_.color.color : (0, _1_utilities_js_1.getColorFromPeerId)(id),
|
|
12
14
|
isBot: user_.bot || false,
|
|
13
15
|
firstName: user_.first_name || "",
|
|
14
16
|
lastName: user_.last_name,
|
|
15
|
-
username:
|
|
16
|
-
also:
|
|
17
|
+
username: username,
|
|
18
|
+
also: usernames?.filter((v) => v != username),
|
|
17
19
|
languageCode: user_.lang_code,
|
|
18
20
|
isScam: user_.scam || false,
|
|
19
21
|
isFake: user_.fake || false,
|
|
@@ -11,7 +11,7 @@ import { Venue } from "./0_venue.js";
|
|
|
11
11
|
import { Voice } from "./0_voice.js";
|
|
12
12
|
import { EntityGetter } from "./1__getters.js";
|
|
13
13
|
import { Animation } from "./1_animation.js";
|
|
14
|
-
import {
|
|
14
|
+
import { ChatP } from "./1_chat_p.js";
|
|
15
15
|
import { Document } from "./1_document.js";
|
|
16
16
|
import { Photo } from "./1_photo.js";
|
|
17
17
|
import { Poll } from "./1_poll.js";
|
|
@@ -33,17 +33,17 @@ export interface Message {
|
|
|
33
33
|
/** Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat. */
|
|
34
34
|
from?: User;
|
|
35
35
|
/** Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat. */
|
|
36
|
-
senderChat?:
|
|
36
|
+
senderChat?: ChatP;
|
|
37
37
|
/** Date the message was sent in Unix time */
|
|
38
|
-
date
|
|
38
|
+
date: Date;
|
|
39
39
|
/** Conversation the message belongs to */
|
|
40
|
-
chat:
|
|
40
|
+
chat: ChatP;
|
|
41
41
|
/** A link to the message */
|
|
42
42
|
link?: string;
|
|
43
43
|
/** For forwarded messages, sender of the original message */
|
|
44
44
|
forwardFrom?: User;
|
|
45
45
|
/** For messages forwarded from channels or from anonymous administrators, information about the original sender chat */
|
|
46
|
-
forwardFromChat?:
|
|
46
|
+
forwardFromChat?: ChatP;
|
|
47
47
|
/** For messages forwarded from channels, identifier of the original message in the channel */
|
|
48
48
|
forwardId?: number;
|
|
49
49
|
/** For forwarded messages that were originally sent in channels or by an anonymous chat administrator, signature of the message sender if present */
|
|
@@ -57,7 +57,8 @@ export interface Message {
|
|
|
57
57
|
/** True, if the message is a channel post that was automatically forwarded to the connected discussion group */
|
|
58
58
|
isAutomaticForward?: boolean;
|
|
59
59
|
/** For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply. */
|
|
60
|
-
replyToMessage?: Omit<Message, "
|
|
60
|
+
replyToMessage?: Omit<Message, "replyToMessage">;
|
|
61
|
+
replyToMessageId?: number;
|
|
61
62
|
/** Bot through which the message was sent */
|
|
62
63
|
viaBot?: User;
|
|
63
64
|
/** Date the message was last edited in Unix time */
|
|
@@ -172,8 +173,8 @@ export interface Message {
|
|
|
172
173
|
};
|
|
173
174
|
}
|
|
174
175
|
export interface MessageGetter<O extends keyof Message | null = null> {
|
|
175
|
-
(chatId: number, messageId: number): MaybePromise<(O extends
|
|
176
|
+
(chatId: number, messageId: number): MaybePromise<(O extends keyof Message ? Omit<Message, O> : Message) | null>;
|
|
176
177
|
}
|
|
177
178
|
type Message_MessageGetter = MessageGetter<"replyToMessage"> | null;
|
|
178
|
-
export declare function constructMessage(message_: enums.Message, getEntity: EntityGetter, getMessage: Message_MessageGetter, getStickerSetName: StickerSetNameGetter): Promise<Message>;
|
|
179
|
+
export declare function constructMessage(message_: enums.Message, getEntity: EntityGetter, getMessage: Message_MessageGetter, getStickerSetName: StickerSetNameGetter, getReply_?: boolean): Promise<Message>;
|
|
179
180
|
export {};
|
|
@@ -15,7 +15,7 @@ const _0_reply_keyboard_remove_js_1 = require("./0_reply_keyboard_remove.js");
|
|
|
15
15
|
const _0_venue_js_1 = require("./0_venue.js");
|
|
16
16
|
const _0_voice_js_1 = require("./0_voice.js");
|
|
17
17
|
const _1_animation_js_1 = require("./1_animation.js");
|
|
18
|
-
const
|
|
18
|
+
const _1_chat_p_js_1 = require("./1_chat_p.js");
|
|
19
19
|
const _1_document_js_1 = require("./1_document.js");
|
|
20
20
|
const _1_photo_js_1 = require("./1_photo.js");
|
|
21
21
|
const _1_poll_js_1 = require("./1_poll.js");
|
|
@@ -40,7 +40,7 @@ async function getSender(message_, getEntity) {
|
|
|
40
40
|
else if (message_.from_id instanceof _2_tl_js_1.types.PeerChannel) {
|
|
41
41
|
const entity = await getEntity(message_.from_id);
|
|
42
42
|
if (entity) {
|
|
43
|
-
return { senderChat: (0,
|
|
43
|
+
return { senderChat: (0, _1_chat_p_js_1.constructChatP)(entity) };
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
@@ -53,15 +53,15 @@ async function getReply(message_, chat, getMessage) {
|
|
|
53
53
|
if (message_.reply_to.forum_topic) {
|
|
54
54
|
isTopicMessage = true;
|
|
55
55
|
}
|
|
56
|
-
const
|
|
57
|
-
if (
|
|
58
|
-
return {
|
|
56
|
+
const replyToMessage = await getMessage(chat.id, message_.reply_to.reply_to_msg_id);
|
|
57
|
+
if (replyToMessage) {
|
|
58
|
+
return { replyToMessage, threadId: message_.reply_to.reply_to_top_id, isTopicMessage };
|
|
59
59
|
}
|
|
60
60
|
else {
|
|
61
61
|
d("couldn't get replied message");
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
return {
|
|
64
|
+
return { replyToMessage: undefined, threadId: undefined, isTopicMessage: undefined };
|
|
65
65
|
}
|
|
66
66
|
async function constructServiceMessage(message_, chat, getEntity, getMessage) {
|
|
67
67
|
const message = {
|
|
@@ -136,8 +136,8 @@ async function constructServiceMessage(message_, chat, getEntity, getMessage) {
|
|
|
136
136
|
message.chatMigratedFrom = Number(-message_.action.chat_id);
|
|
137
137
|
}
|
|
138
138
|
else if (message_.action instanceof _2_tl_js_1.types.MessageActionPinMessage) {
|
|
139
|
-
const {
|
|
140
|
-
message.pinnedMessage =
|
|
139
|
+
const { replyToMessage } = await getReply(message_, chat, getMessage);
|
|
140
|
+
message.pinnedMessage = replyToMessage;
|
|
141
141
|
}
|
|
142
142
|
else if (message_.action instanceof _2_tl_js_1.types.MessageActionRequestedPeer) {
|
|
143
143
|
const user = message_.action.peer[_2_tl_js_1.as](_2_tl_js_1.types.PeerUser);
|
|
@@ -184,7 +184,7 @@ async function constructServiceMessage(message_, chat, getEntity, getMessage) {
|
|
|
184
184
|
}
|
|
185
185
|
return (0, _1_utilities_js_1.cleanObject)(message);
|
|
186
186
|
}
|
|
187
|
-
async function constructMessage(message_, getEntity, getMessage, getStickerSetName) {
|
|
187
|
+
async function constructMessage(message_, getEntity, getMessage, getStickerSetName, getReply_ = true) {
|
|
188
188
|
if (!(message_ instanceof _2_tl_js_1.types.Message) && !(message_ instanceof _2_tl_js_1.types.MessageService)) {
|
|
189
189
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
190
190
|
}
|
|
@@ -193,7 +193,7 @@ async function constructMessage(message_, getEntity, getMessage, getStickerSetNa
|
|
|
193
193
|
if (message_.peer_id instanceof _2_tl_js_1.types.PeerUser) {
|
|
194
194
|
const entity = await getEntity(message_.peer_id);
|
|
195
195
|
if (entity) {
|
|
196
|
-
chat_ = (0,
|
|
196
|
+
chat_ = (0, _1_chat_p_js_1.constructChatP)(entity);
|
|
197
197
|
}
|
|
198
198
|
else {
|
|
199
199
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
@@ -202,7 +202,7 @@ async function constructMessage(message_, getEntity, getMessage, getStickerSetNa
|
|
|
202
202
|
else if (message_.peer_id instanceof _2_tl_js_1.types.PeerChat) {
|
|
203
203
|
const entity = await getEntity(message_.peer_id);
|
|
204
204
|
if (entity) {
|
|
205
|
-
chat_ = (0,
|
|
205
|
+
chat_ = (0, _1_chat_p_js_1.constructChatP)(entity);
|
|
206
206
|
}
|
|
207
207
|
else {
|
|
208
208
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
@@ -212,7 +212,7 @@ async function constructMessage(message_, getEntity, getMessage, getStickerSetNa
|
|
|
212
212
|
link = `https://t.me/c/${message_.peer_id.channel_id}/${message_.id}`;
|
|
213
213
|
const entity = await getEntity(message_.peer_id);
|
|
214
214
|
if (entity) {
|
|
215
|
-
chat_ = (0,
|
|
215
|
+
chat_ = (0, _1_chat_p_js_1.constructChatP)(entity);
|
|
216
216
|
}
|
|
217
217
|
else {
|
|
218
218
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
@@ -234,7 +234,12 @@ async function constructMessage(message_, getEntity, getMessage, getStickerSetNa
|
|
|
234
234
|
isTopicMessage: false,
|
|
235
235
|
hasProtectedContent: message_.noforwards || false,
|
|
236
236
|
};
|
|
237
|
-
|
|
237
|
+
if (message_.reply_to instanceof _2_tl_js_1.types.MessageReplyHeader && message_.reply_to.reply_to_msg_id) {
|
|
238
|
+
message.replyToMessageId = message_.reply_to.reply_to_msg_id;
|
|
239
|
+
}
|
|
240
|
+
if (getReply_) {
|
|
241
|
+
Object.assign(message, await getReply(message_, chat_, getMessage));
|
|
242
|
+
}
|
|
238
243
|
Object.assign(message, await getSender(message_, getEntity));
|
|
239
244
|
if (message_.media instanceof _2_tl_js_1.types.MessageMediaPhoto || message_.media instanceof _2_tl_js_1.types.MessageMediaDocument) {
|
|
240
245
|
message.hasMediaSpoiler = message_.media.spoiler || false;
|
|
@@ -308,7 +313,7 @@ async function constructMessage(message_, getEntity, getMessage, getStickerSetNa
|
|
|
308
313
|
else if (message_.fwd_from.from_id instanceof _2_tl_js_1.types.PeerChat) {
|
|
309
314
|
const entity = await getEntity(message_.fwd_from.from_id);
|
|
310
315
|
if (entity) {
|
|
311
|
-
message.forwardFromChat = (0,
|
|
316
|
+
message.forwardFromChat = (0, _1_chat_p_js_1.constructChatP)(entity);
|
|
312
317
|
}
|
|
313
318
|
else {
|
|
314
319
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
@@ -317,7 +322,7 @@ async function constructMessage(message_, getEntity, getMessage, getStickerSetNa
|
|
|
317
322
|
else if (message_.fwd_from.from_id instanceof _2_tl_js_1.types.PeerChannel) {
|
|
318
323
|
const entity = await getEntity(message_.fwd_from.from_id);
|
|
319
324
|
if (entity) {
|
|
320
|
-
message.forwardFromChat = (0,
|
|
325
|
+
message.forwardFromChat = (0, _1_chat_p_js_1.constructChatP)(entity);
|
|
321
326
|
}
|
|
322
327
|
else {
|
|
323
328
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { enums, types } from "../2_tl.js";
|
|
2
|
+
import { ChatP } from "./1_chat_p.js";
|
|
3
|
+
import { ChatPhoto } from "./0_chat_photo.js";
|
|
4
|
+
import { Message, MessageGetter } from "./3_message.js";
|
|
5
|
+
import { StickerSetNameGetter } from "./1_sticker.js";
|
|
6
|
+
import { EntityGetter } from "./1__getters.js";
|
|
7
|
+
export declare namespace Chat {
|
|
8
|
+
interface Base {
|
|
9
|
+
order: string;
|
|
10
|
+
lastMessage?: Message;
|
|
11
|
+
pinned: number;
|
|
12
|
+
}
|
|
13
|
+
interface Channel extends Base, ChatP.Channel {
|
|
14
|
+
also?: string[];
|
|
15
|
+
photo?: ChatPhoto.Chat;
|
|
16
|
+
}
|
|
17
|
+
interface Supergroup extends Base, ChatP.Supergroup {
|
|
18
|
+
also?: string[];
|
|
19
|
+
photo?: ChatPhoto.Chat;
|
|
20
|
+
}
|
|
21
|
+
interface Group extends Base, ChatP.Group {
|
|
22
|
+
photo?: ChatPhoto.Chat;
|
|
23
|
+
}
|
|
24
|
+
interface Private extends Base, ChatP.Private {
|
|
25
|
+
also?: string[];
|
|
26
|
+
photo?: ChatPhoto.User;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export type Chat = Chat.Channel | Chat.Supergroup | Chat.Group | Chat.Private;
|
|
30
|
+
export declare function getChatOrder(lastMessage: Message | undefined, pinned: number): string;
|
|
31
|
+
export declare function constructChat(dialog: enums.Dialog, dialogs: types.messages.Dialogs | types.messages.DialogsSlice, pinnedChats: number[], getEntity: EntityGetter, getMessage: MessageGetter<"replyToMessage">, getStickerSetName: StickerSetNameGetter): Promise<Chat>;
|
|
32
|
+
export declare function constructChat2(chatId: number, pinned: number, lastMessage: Message | undefined, getEntity: EntityGetter): Promise<Chat | null>;
|
|
33
|
+
export declare function constructChat3(chatId: number, pinned: number, lastMessageId: number, getEntity: EntityGetter, getMessage: MessageGetter<"replyToMessage">): Promise<Chat | null>;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.constructChat3 = exports.constructChat2 = exports.constructChat = exports.getChatOrder = void 0;
|
|
4
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
5
|
+
const _2_tl_js_1 = require("../2_tl.js");
|
|
6
|
+
const _1_chat_p_js_1 = require("./1_chat_p.js");
|
|
7
|
+
const _0_chat_photo_js_1 = require("./0_chat_photo.js");
|
|
8
|
+
const _3_message_js_1 = require("./3_message.js");
|
|
9
|
+
function getChatPAlsoPhoto(entity) {
|
|
10
|
+
let chatP;
|
|
11
|
+
let also = undefined;
|
|
12
|
+
if (entity instanceof _2_tl_js_1.types.User) {
|
|
13
|
+
chatP = (0, _1_chat_p_js_1.constructChatP)(entity);
|
|
14
|
+
also = "usernames" in entity ? entity.usernames?.map((v) => v.username).filter((v) => v != ("username" in chatP ? chatP.username : "")) : undefined;
|
|
15
|
+
}
|
|
16
|
+
else if (entity instanceof _2_tl_js_1.types.Chat) {
|
|
17
|
+
chatP = (0, _1_chat_p_js_1.constructChatP)(entity);
|
|
18
|
+
}
|
|
19
|
+
else if (entity instanceof _2_tl_js_1.types.Channel) {
|
|
20
|
+
chatP = (0, _1_chat_p_js_1.constructChatP)(entity);
|
|
21
|
+
also = "usernames" in entity ? entity.usernames?.map((v) => v.username).filter((v) => v != ("username" in chatP ? chatP.username : "")) : undefined;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
25
|
+
}
|
|
26
|
+
let photo = undefined;
|
|
27
|
+
if (entity.photo instanceof _2_tl_js_1.types.UserProfilePhoto) {
|
|
28
|
+
photo = (0, _0_chat_photo_js_1.constructChatPhoto)(entity.photo, chatP.id, "access_hash" in entity ? entity.access_hash ?? 0n : 0n);
|
|
29
|
+
}
|
|
30
|
+
else if (entity.photo instanceof _2_tl_js_1.types.ChatPhoto) {
|
|
31
|
+
photo = (0, _0_chat_photo_js_1.constructChatPhoto)(entity.photo, chatP.id, "access_hash" in entity ? entity.access_hash ?? 0n : 0n);
|
|
32
|
+
}
|
|
33
|
+
return { chatP, also, photo };
|
|
34
|
+
}
|
|
35
|
+
function getChatOrder(lastMessage, pinned) {
|
|
36
|
+
const p = pinned == -1 ? "" : `P${100 - pinned}`;
|
|
37
|
+
if (!lastMessage) {
|
|
38
|
+
return p + "0";
|
|
39
|
+
}
|
|
40
|
+
return p + String((BigInt(Math.floor(lastMessage.date.getTime())) << 32n) + BigInt(lastMessage.id));
|
|
41
|
+
}
|
|
42
|
+
exports.getChatOrder = getChatOrder;
|
|
43
|
+
async function constructChat(dialog, dialogs, pinnedChats, getEntity, getMessage, getStickerSetName) {
|
|
44
|
+
const topMessage_ = dialogs.messages.find((v) => "id" in v && v.id == dialog.top_message);
|
|
45
|
+
if (!topMessage_) {
|
|
46
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
47
|
+
}
|
|
48
|
+
const pinned = pinnedChats.indexOf((0, _2_tl_js_1.peerToChatId)(dialog.peer));
|
|
49
|
+
const lastMessage = await (0, _3_message_js_1.constructMessage)(topMessage_, getEntity, getMessage, getStickerSetName, false);
|
|
50
|
+
const order = getChatOrder(lastMessage, pinned);
|
|
51
|
+
const userId = "user_id" in dialog.peer ? dialog.peer.user_id : null;
|
|
52
|
+
const chatId = "chat_id" in dialog.peer ? dialog.peer.chat_id : null;
|
|
53
|
+
const channelId = "channel_id" in dialog.peer ? dialog.peer.channel_id : null;
|
|
54
|
+
const chat__ = chatId != null ? dialogs.chats.find((v) => v instanceof _2_tl_js_1.types.Chat && v.id == chatId) : channelId != null ? dialogs.chats.find((v) => v instanceof _2_tl_js_1.types.Channel && v.id == channelId) : userId != null ? dialogs.users.find((v) => v instanceof _2_tl_js_1.types.User && v.id == userId) : (0, _1_utilities_js_1.UNREACHABLE)();
|
|
55
|
+
if (!chat__) {
|
|
56
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
57
|
+
}
|
|
58
|
+
const chat_ = chat__;
|
|
59
|
+
const { chatP, also, photo } = getChatPAlsoPhoto(chat_);
|
|
60
|
+
if (chatP.type == "group") {
|
|
61
|
+
return (0, _1_utilities_js_1.cleanObject)({ ...chatP, order, lastMessage, photo, pinned });
|
|
62
|
+
}
|
|
63
|
+
else if (chatP.type == "supergroup") {
|
|
64
|
+
return (0, _1_utilities_js_1.cleanObject)({ ...chatP, order, lastMessage, also, photo, pinned });
|
|
65
|
+
}
|
|
66
|
+
else if (chatP.type == "channel") {
|
|
67
|
+
return (0, _1_utilities_js_1.cleanObject)({ ...chatP, order, lastMessage, also, photo, pinned });
|
|
68
|
+
}
|
|
69
|
+
else if (chatP.type == "private") {
|
|
70
|
+
return (0, _1_utilities_js_1.cleanObject)({ ...chatP, order, lastMessage, also, photo: photo, pinned });
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.constructChat = constructChat;
|
|
77
|
+
async function constructChat2(chatId, pinned, lastMessage, getEntity) {
|
|
78
|
+
let chatPAlsoPhoto = null;
|
|
79
|
+
if (chatId < _1_utilities_js_1.ZERO_CHANNEL_ID) {
|
|
80
|
+
const entity = await getEntity(new _2_tl_js_1.types.PeerChannel({ channel_id: BigInt(Math.abs(chatId - _1_utilities_js_1.ZERO_CHANNEL_ID)) }));
|
|
81
|
+
if (entity != null) {
|
|
82
|
+
chatPAlsoPhoto = getChatPAlsoPhoto(entity);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
else if (chatId < 0) {
|
|
86
|
+
const entity = await getEntity(new _2_tl_js_1.types.PeerChat({ chat_id: BigInt(Math.abs(chatId)) }));
|
|
87
|
+
if (entity != null) {
|
|
88
|
+
chatPAlsoPhoto = getChatPAlsoPhoto(entity);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
const entity = await getEntity(new _2_tl_js_1.types.PeerUser({ user_id: BigInt(chatId) }));
|
|
93
|
+
if (entity != null) {
|
|
94
|
+
chatPAlsoPhoto = getChatPAlsoPhoto(entity);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
if (chatPAlsoPhoto == null) {
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
const order = getChatOrder(lastMessage, pinned);
|
|
101
|
+
const { also, photo, chatP } = chatPAlsoPhoto;
|
|
102
|
+
if (chatP.type == "group") {
|
|
103
|
+
return (0, _1_utilities_js_1.cleanObject)({ ...chatP, order, lastMessage, photo, pinned });
|
|
104
|
+
}
|
|
105
|
+
else if (chatP.type == "supergroup") {
|
|
106
|
+
return (0, _1_utilities_js_1.cleanObject)({ ...chatP, order, lastMessage, also, photo, pinned });
|
|
107
|
+
}
|
|
108
|
+
else if (chatP.type == "channel") {
|
|
109
|
+
return (0, _1_utilities_js_1.cleanObject)({ ...chatP, order, lastMessage, also, photo, pinned });
|
|
110
|
+
}
|
|
111
|
+
else if (chatP.type == "private") {
|
|
112
|
+
return (0, _1_utilities_js_1.cleanObject)({ ...chatP, order, lastMessage, also, photo: photo, pinned });
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.constructChat2 = constructChat2;
|
|
119
|
+
async function constructChat3(chatId, pinned, lastMessageId, getEntity, getMessage) {
|
|
120
|
+
const lastMessage_ = lastMessageId > 0 ? await getMessage(chatId, lastMessageId) : null;
|
|
121
|
+
const lastMessage = lastMessage_ == null ? undefined : lastMessage_;
|
|
122
|
+
return await constructChat2(chatId, pinned, lastMessage, getEntity);
|
|
123
|
+
}
|
|
124
|
+
exports.constructChat3 = constructChat3;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.base64DecodeUrlSafe = exports.base64EncodeUrlSafe = void 0;
|
|
4
4
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
5
|
+
const _0_bigint_js_1 = require("./0_bigint.js");
|
|
5
6
|
function base64EncodeUrlSafe(data) {
|
|
6
7
|
return (0, _0_deps_js_1.encodeBase64)(data).replace(/=*$/, "").replaceAll("+", "-").replaceAll("/", "_");
|
|
7
8
|
}
|
|
@@ -9,7 +10,7 @@ exports.base64EncodeUrlSafe = base64EncodeUrlSafe;
|
|
|
9
10
|
function base64DecodeUrlSafe(data) {
|
|
10
11
|
data = data.replaceAll("_", "/").replaceAll("-", "+");
|
|
11
12
|
if (data.length != 4) {
|
|
12
|
-
data += "=".repeat(
|
|
13
|
+
data += "=".repeat((0, _0_bigint_js_1.mod)(-data.length, 4));
|
|
13
14
|
}
|
|
14
15
|
return (0, _0_deps_js_1.decodeBase64)(data);
|
|
15
16
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
2
|
-
import { AssertionError } from "./assertion_error.js";
|
|
3
|
-
/** Make an assertion, error will be thrown if `expr` does not have truthy value. */
|
|
4
|
-
export function assert(expr, msg = "") {
|
|
5
|
-
if (!expr) {
|
|
6
|
-
throw new AssertionError(msg);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Make an assertion that `actual` and `expected` are almost equal numbers through
|
|
3
|
-
* a given tolerance. It can be used to take into account IEEE-754 double-precision
|
|
4
|
-
* floating-point representation limitations.
|
|
5
|
-
* If the values are not almost equal then throw.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* import { assertAlmostEquals, assertThrows } from "https://deno.land/std@$STD_VERSION/assert/mod.ts";
|
|
10
|
-
*
|
|
11
|
-
* assertAlmostEquals(0.1, 0.2);
|
|
12
|
-
*
|
|
13
|
-
* // Using a custom tolerance value
|
|
14
|
-
* assertAlmostEquals(0.1 + 0.2, 0.3, 1e-16);
|
|
15
|
-
* assertThrows(() => assertAlmostEquals(0.1 + 0.2, 0.3, 1e-17));
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export declare function assertAlmostEquals(actual: number, expected: number, tolerance?: number, msg?: string): void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Make an assertion that `actual` includes the `expected` values.
|
|
3
|
-
* If not then an error will be thrown.
|
|
4
|
-
*
|
|
5
|
-
* Type parameter can be specified to ensure values under comparison have the same type.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* import { assertArrayIncludes } from "https://deno.land/std@$STD_VERSION/assert/assert_array_includes.ts";
|
|
10
|
-
*
|
|
11
|
-
* assertArrayIncludes<number>([1, 2], [2])
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
export declare function assertArrayIncludes<T>(actual: ArrayLike<T>, expected: ArrayLike<T>, msg?: string): void;
|