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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.3.10
3
+ Version: 3.3.11
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ecapi-sdk"
7
- version = "3.3.10"
7
+ version = "3.3.11"
8
8
  description = "ECAPI SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -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
- pass
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
- pass
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: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecapi-sdk
3
- Version: 3.3.10
3
+ Version: 3.3.11
4
4
  Summary: ECAPI SDK for Python
5
5
  Author: EaseCation
6
6
  License: MIT
File without changes
File without changes