@mtkruto/node 0.74.0 → 0.75.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/0_deps.d.ts +13 -13
- package/esm/0_deps.js +13 -13
- package/esm/3_types.d.ts +1 -1
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +1 -1
- package/esm/client/2_client_encrypted.d.ts.map +1 -1
- package/esm/client/2_client_encrypted.js +1 -0
- package/esm/client/2_update_manager.js +3 -3
- package/esm/client/4_chat_list_manager.d.ts.map +1 -1
- package/esm/client/4_chat_list_manager.js +30 -6
- package/esm/client/4_chat_manager.js +1 -1
- package/esm/client/5_client.d.ts +3 -3
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +48 -40
- package/{script/deps/jsr.io/@std/assert/1.0.14 → esm/deps/jsr.io/@std/assert/1.0.16}/assert.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.16/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.js +5 -2
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.js +2 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/_util.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/abortable.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/deadline.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/debounce.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/delay.d.ts +1 -0
- package/esm/deps/jsr.io/@std/async/1.0.15/delay.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/delay.js +4 -6
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mod.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mux_async_iterator.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/pool.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/retry.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/tee.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/_serialize_arg_list.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/cache/0.2.0 → esm/deps/jsr.io/@std/cache/0.2.1}/lru_cache.d.ts +44 -1
- package/esm/deps/jsr.io/@std/cache/0.2.1/lru_cache.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/lru_cache.js +50 -1
- package/esm/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/memoize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/assert_path.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/basename.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/constants.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/from_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize_string.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/strip_trailing_separators.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/to_file_url.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/basename.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/extname.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/is_absolute.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/join.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/_util.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/posix/basename.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/posix/extname.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/from_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/is_absolute.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/posix/join.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/posix/normalize.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/posix/to_file_url.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/to_file_url.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/_util.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/basename.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/extname.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/from_file_url.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/is_absolute.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/join.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/normalize.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.2 → esm/deps/jsr.io/@std/path/1.1.3}/windows/to_file_url.d.ts.map +1 -1
- package/esm/session/2_session_encrypted.d.ts.map +1 -1
- package/esm/session/2_session_encrypted.js +23 -12
- package/{script/types/3_chat_member.d.ts → esm/types/2_chat_member.d.ts} +4 -5
- package/esm/types/2_chat_member.d.ts.map +1 -0
- package/esm/types/{3_chat_member.js → 2_chat_member.js} +10 -12
- package/esm/types/4_chat_member_updated.d.ts +1 -1
- package/esm/types/4_chat_member_updated.d.ts.map +1 -1
- package/esm/types/4_chat_member_updated.js +7 -7
- package/package.json +1 -1
- package/script/0_deps.d.ts +13 -13
- package/script/0_deps.js +13 -13
- package/script/3_types.d.ts +1 -1
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +1 -1
- package/script/client/2_client_encrypted.d.ts.map +1 -1
- package/script/client/2_client_encrypted.js +1 -0
- package/script/client/2_update_manager.js +3 -3
- package/script/client/4_chat_list_manager.d.ts.map +1 -1
- package/script/client/4_chat_list_manager.js +30 -6
- package/script/client/4_chat_manager.js +1 -1
- package/script/client/5_client.d.ts +3 -3
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +48 -40
- package/{esm/deps/jsr.io/@std/assert/1.0.14 → script/deps/jsr.io/@std/assert/1.0.16}/assert.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.16/equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.js +5 -2
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.js +2 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/_util.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/abortable.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/deadline.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/debounce.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/delay.d.ts +1 -0
- package/script/deps/jsr.io/@std/async/1.0.15/delay.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/delay.js +4 -39
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mod.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mux_async_iterator.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/pool.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/retry.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/tee.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/_serialize_arg_list.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/cache/0.2.0 → script/deps/jsr.io/@std/cache/0.2.1}/lru_cache.d.ts +44 -1
- package/script/deps/jsr.io/@std/cache/0.2.1/lru_cache.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/lru_cache.js +50 -1
- package/script/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/memoize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/assert_path.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/basename.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/constants.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/from_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize_string.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/strip_trailing_separators.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/to_file_url.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/basename.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/extname.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/is_absolute.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/join.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/_util.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/posix/basename.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/posix/extname.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/from_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/is_absolute.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/posix/join.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/posix/normalize.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/posix/to_file_url.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/to_file_url.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/_util.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/basename.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/extname.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/from_file_url.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/is_absolute.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/join.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/normalize.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.2 → script/deps/jsr.io/@std/path/1.1.3}/windows/to_file_url.d.ts.map +1 -1
- package/script/session/2_session_encrypted.d.ts.map +1 -1
- package/script/session/2_session_encrypted.js +23 -12
- package/{esm/types/3_chat_member.d.ts → script/types/2_chat_member.d.ts} +4 -5
- package/script/types/2_chat_member.d.ts.map +1 -0
- package/script/types/{3_chat_member.js → 2_chat_member.js} +10 -12
- package/script/types/4_chat_member_updated.d.ts +1 -1
- package/script/types/4_chat_member_updated.d.ts.map +1 -1
- package/script/types/4_chat_member_updated.js +7 -7
- package/esm/deps/jsr.io/@std/assert/1.0.14/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.14/delay.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts.map +0 -1
- package/esm/types/3_chat_member.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.14/equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.14/delay.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts.map +0 -1
- package/script/types/3_chat_member.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/abortable.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/abortable.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/deadline.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/deadline.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/debounce.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/debounce.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mod.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mux_async_iterator.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mux_async_iterator.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/pool.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/pool.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/retry.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/retry.js +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/tee.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/tee.js +0 -0
- /package/esm/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/_serialize_arg_list.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/_serialize_arg_list.js +0 -0
- /package/esm/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/memoize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/memoize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/assert_path.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/assert_path.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/basename.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/constants.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize_string.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/basename.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/extname.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/extname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/join.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/basename.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/extname.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/extname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/join.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/to_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/_util.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/basename.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/basename.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/extname.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/extname.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/from_file_url.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/is_absolute.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/join.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/normalize.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/_util.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/abortable.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/abortable.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/deadline.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/deadline.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/debounce.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/debounce.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mod.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mod.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mux_async_iterator.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/mux_async_iterator.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/pool.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/pool.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/retry.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/retry.js +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/tee.d.ts +0 -0
- /package/script/deps/jsr.io/@std/async/{1.0.14 → 1.0.15}/tee.js +0 -0
- /package/script/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/_serialize_arg_list.d.ts +0 -0
- /package/script/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/_serialize_arg_list.js +0 -0
- /package/script/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/memoize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/cache/{0.2.0 → 0.2.1}/memoize.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/assert_path.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/assert_path.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/basename.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/basename.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/constants.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/from_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize_string.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/normalize_string.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/basename.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/basename.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/extname.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/extname.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/is_absolute.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/join.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/_util.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/basename.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/basename.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/extname.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/extname.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/from_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/is_absolute.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/join.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/normalize.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/posix/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/to_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/_util.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/basename.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/basename.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/extname.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/extname.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/from_file_url.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/is_absolute.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/is_absolute.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/join.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/normalize.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/to_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/windows/to_file_url.js +0 -0
|
@@ -25,22 +25,20 @@ const _1_utilities_js_1 = require("../1_utilities.js");
|
|
|
25
25
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
26
26
|
const _0_chat_administrator_rights_js_1 = require("./0_chat_administrator_rights.js");
|
|
27
27
|
const _0_chat_member_rights_js_1 = require("./0_chat_member_rights.js");
|
|
28
|
-
|
|
29
|
-
function constructChatMember(participant, getPeer) {
|
|
28
|
+
function constructChatMember(member, participant, getPeer) {
|
|
30
29
|
const peer = "user_id" in participant ? getPeer({ ...participant, _: "peerUser" }) : "peer" in participant ? Array.isArray(participant.peer) ? participant.peer : _2_tl_js_1.Api.is("peerUser", participant.peer) ? getPeer(participant.peer) : (0, _0_deps_js_1.unreachable)() : (0, _0_deps_js_1.unreachable)(); // TODO: support other peer types
|
|
31
30
|
if (peer === null || peer[0].type !== "private")
|
|
32
31
|
(0, _0_deps_js_1.unreachable)();
|
|
33
|
-
const user = (0, _2_user_js_1.constructUser2)(peer[0]);
|
|
34
32
|
if (_2_tl_js_1.Api.is("channelParticipant", participant) || _2_tl_js_1.Api.is("chatParticipant", participant)) {
|
|
35
33
|
return {
|
|
36
34
|
status: "member",
|
|
37
|
-
|
|
35
|
+
member,
|
|
38
36
|
};
|
|
39
37
|
}
|
|
40
38
|
else if (_2_tl_js_1.Api.is("channelParticipantCreator", participant)) {
|
|
41
39
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
42
40
|
status: "creator",
|
|
43
|
-
|
|
41
|
+
member,
|
|
44
42
|
isAnonymous: participant.admin_rights.anonymous ? true : false,
|
|
45
43
|
title: participant.rank,
|
|
46
44
|
});
|
|
@@ -48,7 +46,7 @@ function constructChatMember(participant, getPeer) {
|
|
|
48
46
|
else if (_2_tl_js_1.Api.is("channelParticipantAdmin", participant)) {
|
|
49
47
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
50
48
|
status: "administrator",
|
|
51
|
-
|
|
49
|
+
member,
|
|
52
50
|
rights: (0, _0_chat_administrator_rights_js_1.constructChatAdministratorRights)(participant.admin_rights),
|
|
53
51
|
title: participant.rank,
|
|
54
52
|
});
|
|
@@ -59,7 +57,7 @@ function constructChatMember(participant, getPeer) {
|
|
|
59
57
|
participant.peer;
|
|
60
58
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
61
59
|
status: "banned",
|
|
62
|
-
|
|
60
|
+
member,
|
|
63
61
|
until,
|
|
64
62
|
});
|
|
65
63
|
}
|
|
@@ -67,7 +65,7 @@ function constructChatMember(participant, getPeer) {
|
|
|
67
65
|
const rights = (0, _0_chat_member_rights_js_1.constructChatMemberRights)(participant.banned_rights);
|
|
68
66
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
69
67
|
status: "restricted",
|
|
70
|
-
|
|
68
|
+
member,
|
|
71
69
|
isMember,
|
|
72
70
|
rights,
|
|
73
71
|
until,
|
|
@@ -77,17 +75,17 @@ function constructChatMember(participant, getPeer) {
|
|
|
77
75
|
const until = participant.subscription_until_date ? participant.subscription_until_date : undefined;
|
|
78
76
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
79
77
|
status: "member",
|
|
80
|
-
|
|
78
|
+
member,
|
|
81
79
|
until,
|
|
82
80
|
});
|
|
83
81
|
}
|
|
84
82
|
else if (_2_tl_js_1.Api.is("channelParticipantLeft", participant)) {
|
|
85
|
-
return { status: "left",
|
|
83
|
+
return { status: "left", member };
|
|
86
84
|
}
|
|
87
85
|
else if (_2_tl_js_1.Api.is("chatParticipantAdmin", participant)) {
|
|
88
86
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
89
87
|
status: "administrator",
|
|
90
|
-
|
|
88
|
+
member,
|
|
91
89
|
rights: {
|
|
92
90
|
isAnonymous: false,
|
|
93
91
|
canManageChat: true,
|
|
@@ -111,7 +109,7 @@ function constructChatMember(participant, getPeer) {
|
|
|
111
109
|
else if (_2_tl_js_1.Api.is("chatParticipantCreator", participant)) {
|
|
112
110
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
113
111
|
status: "creator",
|
|
114
|
-
|
|
112
|
+
member,
|
|
115
113
|
isAnonymous: false,
|
|
116
114
|
});
|
|
117
115
|
}
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import { Api } from "../2_tl.js";
|
|
21
21
|
import type { ChatP, PeerGetter } from "./1_chat_p.js";
|
|
22
|
+
import { type ChatMember } from "./2_chat_member.js";
|
|
22
23
|
import { type User } from "./2_user.js";
|
|
23
|
-
import { type ChatMember } from "./3_chat_member.js";
|
|
24
24
|
import { type InviteLink } from "./3_invite_link.js";
|
|
25
25
|
/** Changes made to a chat member. */
|
|
26
26
|
export interface ChatMemberUpdated {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4_chat_member_updated.d.ts","sourceRoot":"","sources":["../../src/types/4_chat_member_updated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"4_chat_member_updated.d.ts","sourceRoot":"","sources":["../../src/types/4_chat_member_updated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,KAAK,UAAU,EAAuB,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE1E,qCAAqC;AACrC,MAAM,WAAW,iBAAiB;IAChC,6CAA6C;IAC7C,IAAI,EAAE,KAAK,CAAC;IACZ,mCAAmC;IACnC,IAAI,EAAE,IAAI,CAAC;IACX,uEAAuE;IACvE,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,aAAa,EAAE,UAAU,CAAC;IAC1B,yCAAyC;IACzC,aAAa,EAAE,UAAU,CAAC;IAC1B,oCAAoC;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,oDAAoD;IACpD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,GAAG,CAAC,wBAAwB,GAAG,GAAG,CAAC,qBAAqB,EAAE,OAAO,EAAE,UAAU,GAAG,iBAAiB,CA0BnJ"}
|
|
@@ -23,24 +23,24 @@ exports.constructChatMemberUpdated = constructChatMemberUpdated;
|
|
|
23
23
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
24
24
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
25
25
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
26
|
+
const _2_chat_member_js_1 = require("./2_chat_member.js");
|
|
26
27
|
const _2_user_js_1 = require("./2_user.js");
|
|
27
|
-
const _3_chat_member_js_1 = require("./3_chat_member.js");
|
|
28
28
|
const _3_invite_link_js_1 = require("./3_invite_link.js");
|
|
29
29
|
function constructChatMemberUpdated(update, getPeer) {
|
|
30
30
|
if (!update.prev_participant && !update.new_participant) {
|
|
31
31
|
(0, _0_deps_js_1.unreachable)();
|
|
32
32
|
}
|
|
33
33
|
const peer = getPeer("channel_id" in update ? { channel_id: update.channel_id, _: "peerChannel" } : { chat_id: update.chat_id, _: "peerChat" });
|
|
34
|
-
const
|
|
35
|
-
|
|
34
|
+
const actorPeer = getPeer({ _: "peerUser", user_id: update.actor_id });
|
|
35
|
+
const memberPeer = getPeer(update.new_participant && "peer" in update.new_participant ? update.new_participant.peer : update.prev_participant && "peer" in update.prev_participant ? update.prev_participant.peer : { _: "peerUser", user_id: update.user_id });
|
|
36
|
+
if (!peer || !memberPeer || !actorPeer) {
|
|
36
37
|
(0, _0_deps_js_1.unreachable)();
|
|
37
38
|
}
|
|
38
39
|
const chat = peer[0];
|
|
39
|
-
const from = (0, _2_user_js_1.constructUser2)(
|
|
40
|
+
const from = (0, _2_user_js_1.constructUser2)(actorPeer[0]);
|
|
40
41
|
const date = update.date;
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
const newChatMember = (0, _3_chat_member_js_1.constructChatMember)(update.new_participant ?? ({ _: "channelParticipantLeft", peer: userPeer }), getPeer);
|
|
42
|
+
const oldChatMember = (0, _2_chat_member_js_1.constructChatMember)(memberPeer[0], update.prev_participant ?? ({ _: "channelParticipantLeft", peer: memberPeer }), getPeer);
|
|
43
|
+
const newChatMember = (0, _2_chat_member_js_1.constructChatMember)(memberPeer[0], update.new_participant ?? ({ _: "channelParticipantLeft", peer: memberPeer }), getPeer);
|
|
44
44
|
const viaSharedFolder = "via_chatlist" in update ? update.via_chatlist ? true : update.invite ? false : undefined : undefined;
|
|
45
45
|
const inviteLink = (update.invite && _2_tl_js_1.Api.is("chatInviteExported", update.invite)) ? (0, _3_invite_link_js_1.constructInviteLink)(update.invite, getPeer) : undefined;
|
|
46
46
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.14/equal.ts"],"names":[],"mappings":"AA2FA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAuGrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.14/delay.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B3E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lru_cache.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io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EAAE,MAAM,CAAC,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;CAAE,CAAC,EAAE,OAAO,EAAE,UAAU,GAAG,UAAU,CAmF9M"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.14/equal.ts"],"names":[],"mappings":"AA2FA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAuGrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.14/delay.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B3E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lru_cache.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/cache/0.2.0/lru_cache.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,qBAAa,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,GAAG,CAAC,CAAC,EAAE,CAAC,CAC1C,YAAW,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC;;IACj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Ae;IAC9D,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,uBAAuB,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,gBAAgB;AAChB,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,MAAM,EAAE,QAAQ,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,gBAAgB;AAChB,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,gBAAgB;AAChB,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,gBAAgB;AAChB,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,MAAM,EAAE,QAAQ,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAqB;AACrB,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,uBAAuB,GAAG,gBAAgB,GAAG,oBAAoB,GAAG,cAAc,GAAG,gBAAgB,CAAC;AAEnJ,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,GAAG,CAAC,kBAAkB,GAAG,GAAG,CAAC,eAAe,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE,MAAM,CAAC,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;CAAE,CAAC,EAAE,OAAO,EAAE,UAAU,GAAG,UAAU,CAmF9M"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/script/deps/jsr.io/@std/path/{1.1.2 → 1.1.3}/_common/strip_trailing_separators.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|