ecapi-sdk 3.3.3__tar.gz → 3.3.4__tar.gz
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.
- {ecapi_sdk-3.3.3 → ecapi_sdk-3.3.4}/PKG-INFO +1 -1
- {ecapi_sdk-3.3.3 → ecapi_sdk-3.3.4}/pyproject.toml +1 -1
- {ecapi_sdk-3.3.3 → ecapi_sdk-3.3.4}/src/ecapi_sdk/client.py +4 -0
- {ecapi_sdk-3.3.3 → ecapi_sdk-3.3.4}/src/ecapi_sdk/client.pyi +7 -0
- {ecapi_sdk-3.3.3 → ecapi_sdk-3.3.4}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.3.3 → ecapi_sdk-3.3.4}/README.md +0 -0
- {ecapi_sdk-3.3.3 → ecapi_sdk-3.3.4}/setup.cfg +0 -0
- {ecapi_sdk-3.3.3 → ecapi_sdk-3.3.4}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.3.3 → ecapi_sdk-3.3.4}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.3.3 → ecapi_sdk-3.3.4}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.3.3 → ecapi_sdk-3.3.4}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.3.3 → ecapi_sdk-3.3.4}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -334,6 +334,10 @@ class PIT2API(_BaseApi):
|
|
|
334
334
|
"""修改 PIT2 背包位置"""
|
|
335
335
|
return self._patch(f"/pit2/players/{quote(str(xuid), safe='')}/inventory", payload, **kwargs)
|
|
336
336
|
|
|
337
|
+
def update_player(self, xuid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
338
|
+
"""部分修改 PIT2 玩家资料"""
|
|
339
|
+
return self._patch(f"/pit2/players/{quote(str(xuid), safe='')}", payload, **kwargs)
|
|
340
|
+
|
|
337
341
|
class ReplayAPI(_BaseApi):
|
|
338
342
|
def cache_map_profiles(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
339
343
|
"""预热回放地图轮廓缓存"""
|
|
@@ -10,6 +10,12 @@ Headers = Dict[str, str]
|
|
|
10
10
|
AuthCredentials = Dict[str, str]
|
|
11
11
|
AuthProvider = Callable[[], Union[Optional[AuthCredentials], Awaitable[Optional[AuthCredentials]]]]
|
|
12
12
|
|
|
13
|
+
class PIT2APIUpdatePlayerBodyRequired(TypedDict):
|
|
14
|
+
updates: Sequence[Any]
|
|
15
|
+
|
|
16
|
+
class PIT2APIUpdatePlayerBody(PIT2APIUpdatePlayerBodyRequired, total=False):
|
|
17
|
+
pass
|
|
18
|
+
|
|
13
19
|
class PIT2APIGetEnderChestQuery(TypedDict, total=False):
|
|
14
20
|
current: QueryValue
|
|
15
21
|
pageSize: QueryValue
|
|
@@ -973,6 +979,7 @@ class PIT2API:
|
|
|
973
979
|
def send_mail(self, xuid: str, payload: PIT2APISendMailBody, **kwargs: Any) -> Any: ...
|
|
974
980
|
def update_ender_chest(self, xuid: str, payload: PIT2APIUpdateEnderChestBody, **kwargs: Any) -> Any: ...
|
|
975
981
|
def update_inventory(self, xuid: str, payload: PIT2APIUpdateInventoryBody, **kwargs: Any) -> Any: ...
|
|
982
|
+
def update_player(self, xuid: str, payload: PIT2APIUpdatePlayerBody, **kwargs: Any) -> Any: ...
|
|
976
983
|
|
|
977
984
|
class ReplayAPI:
|
|
978
985
|
def cache_map_profiles(self, payload: ReplayAPICacheMapProfilesBody, **kwargs: Any) -> Any: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|