ecapi-sdk 3.3.10__tar.gz → 3.3.11__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.10 → ecapi_sdk-3.3.11}/PKG-INFO +1 -1
- {ecapi_sdk-3.3.10 → ecapi_sdk-3.3.11}/pyproject.toml +1 -1
- {ecapi_sdk-3.3.10 → ecapi_sdk-3.3.11}/src/ecapi_sdk/client.py +4 -0
- {ecapi_sdk-3.3.10 → ecapi_sdk-3.3.11}/src/ecapi_sdk/client.pyi +17 -2
- {ecapi_sdk-3.3.10 → ecapi_sdk-3.3.11}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.3.10 → ecapi_sdk-3.3.11}/README.md +0 -0
- {ecapi_sdk-3.3.10 → ecapi_sdk-3.3.11}/setup.cfg +0 -0
- {ecapi_sdk-3.3.10 → ecapi_sdk-3.3.11}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.3.10 → ecapi_sdk-3.3.11}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.3.10 → ecapi_sdk-3.3.11}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.3.10 → ecapi_sdk-3.3.11}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.3.10 → ecapi_sdk-3.3.11}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -357,6 +357,10 @@ class PIT2API(_BaseApi):
|
|
|
357
357
|
"""分页查询全服 PIT2 已完成交易"""
|
|
358
358
|
return self._get(f"/pit2/trades", query, **kwargs)
|
|
359
359
|
|
|
360
|
+
def restore_containers(self, xuid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
361
|
+
"""同步恢复 PIT2 背包与末影箱备份"""
|
|
362
|
+
return self._post(f"/pit2/players/{quote(str(xuid), safe='')}/container-restorations", payload, **kwargs)
|
|
363
|
+
|
|
360
364
|
def restore_ender_chest(self, xuid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
361
365
|
"""恢复 PIT2 末影箱备份"""
|
|
362
366
|
return self._post(f"/pit2/players/{quote(str(xuid), safe='')}/ender-chest-restorations", payload, **kwargs)
|
|
@@ -64,6 +64,16 @@ class PIT2APIUpdatePlayerBodyRequired(TypedDict):
|
|
|
64
64
|
class PIT2APIUpdatePlayerBody(PIT2APIUpdatePlayerBodyRequired, total=False):
|
|
65
65
|
pass
|
|
66
66
|
|
|
67
|
+
class PIT2APIRestoreContainersBodyRequired(TypedDict):
|
|
68
|
+
backupUuid: str
|
|
69
|
+
expectedInventoryRevision: str
|
|
70
|
+
expectedEnderChestRevision: str
|
|
71
|
+
|
|
72
|
+
class PIT2APIRestoreContainersBody(PIT2APIRestoreContainersBodyRequired, total=False):
|
|
73
|
+
skipItemUuids: Sequence[Any]
|
|
74
|
+
skipSlots: Sequence[Any]
|
|
75
|
+
force: bool
|
|
76
|
+
|
|
67
77
|
class PIT2APIGetEnderChestQuery(TypedDict, total=False):
|
|
68
78
|
current: QueryValue
|
|
69
79
|
pageSize: QueryValue
|
|
@@ -82,7 +92,9 @@ class PIT2APIRestoreEnderChestBodyRequired(TypedDict):
|
|
|
82
92
|
expectedRevision: str
|
|
83
93
|
|
|
84
94
|
class PIT2APIRestoreEnderChestBody(PIT2APIRestoreEnderChestBodyRequired, total=False):
|
|
85
|
-
|
|
95
|
+
skipItemUuids: Sequence[Any]
|
|
96
|
+
skipSlots: Sequence[Any]
|
|
97
|
+
force: bool
|
|
86
98
|
|
|
87
99
|
class PIT2APIGetInventoryQuery(TypedDict, total=False):
|
|
88
100
|
current: QueryValue
|
|
@@ -102,7 +114,9 @@ class PIT2APIRestoreInventoryBodyRequired(TypedDict):
|
|
|
102
114
|
expectedRevision: str
|
|
103
115
|
|
|
104
116
|
class PIT2APIRestoreInventoryBody(PIT2APIRestoreInventoryBodyRequired, total=False):
|
|
105
|
-
|
|
117
|
+
skipItemUuids: Sequence[Any]
|
|
118
|
+
skipSlots: Sequence[Any]
|
|
119
|
+
force: bool
|
|
106
120
|
|
|
107
121
|
class PIT2APISearchPlayerItemLocationsQuery(TypedDict, total=False):
|
|
108
122
|
current: QueryValue
|
|
@@ -1041,6 +1055,7 @@ class PIT2API:
|
|
|
1041
1055
|
def get_season_exchanges(self, query: Optional[PIT2APIGetSeasonExchangesQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1042
1056
|
def get_trade_detail(self, tradeUuid: str, **kwargs: Any) -> Any: ...
|
|
1043
1057
|
def get_trades(self, query: Optional[PIT2APIGetTradesQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1058
|
+
def restore_containers(self, xuid: str, payload: PIT2APIRestoreContainersBody, **kwargs: Any) -> Any: ...
|
|
1044
1059
|
def restore_ender_chest(self, xuid: str, payload: PIT2APIRestoreEnderChestBody, **kwargs: Any) -> Any: ...
|
|
1045
1060
|
def restore_inventory(self, xuid: str, payload: PIT2APIRestoreInventoryBody, **kwargs: Any) -> Any: ...
|
|
1046
1061
|
def search_player_item_locations(self, xuid: str, payload: PIT2APISearchPlayerItemLocationsBody, query: Optional[PIT2APISearchPlayerItemLocationsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|