ecapi-sdk 3.7.4__tar.gz → 3.7.6__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.7.4 → ecapi_sdk-3.7.6}/PKG-INFO +1 -1
- {ecapi_sdk-3.7.4 → ecapi_sdk-3.7.6}/pyproject.toml +1 -1
- {ecapi_sdk-3.7.4 → ecapi_sdk-3.7.6}/src/ecapi_sdk/client.py +28 -0
- {ecapi_sdk-3.7.4 → ecapi_sdk-3.7.6}/src/ecapi_sdk/client.pyi +33 -0
- {ecapi_sdk-3.7.4 → ecapi_sdk-3.7.6}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.7.4 → ecapi_sdk-3.7.6}/README.md +0 -0
- {ecapi_sdk-3.7.4 → ecapi_sdk-3.7.6}/setup.cfg +0 -0
- {ecapi_sdk-3.7.4 → ecapi_sdk-3.7.6}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.7.4 → ecapi_sdk-3.7.6}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.7.4 → ecapi_sdk-3.7.6}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.7.4 → ecapi_sdk-3.7.6}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.7.4 → ecapi_sdk-3.7.6}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -1401,6 +1401,10 @@ class PlayerAPI(_BaseApi):
|
|
|
1401
1401
|
"""查询 EC 农场总览(S1 与 S2 核心状态)"""
|
|
1402
1402
|
return self._get(f"/players/{quote(str(ecid), safe='')}/farm/overview", query, **kwargs)
|
|
1403
1403
|
|
|
1404
|
+
def get_farm_sale_state(self, ecid: str, **kwargs: Any) -> Any:
|
|
1405
|
+
"""读取农场出售额度与可售库存"""
|
|
1406
|
+
return self._get(f"/players/{quote(str(ecid), safe='')}/farm/sale-state", None, **kwargs)
|
|
1407
|
+
|
|
1404
1408
|
def get_farm_summary(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
1405
1409
|
"""查询 EC 农场摘要"""
|
|
1406
1410
|
return self._get(f"/players/{quote(str(ecid), safe='')}/farm/summary", query, **kwargs)
|
|
@@ -1461,6 +1465,10 @@ class PlayerAPI(_BaseApi):
|
|
|
1461
1465
|
"""查询玩家搜索命中列表"""
|
|
1462
1466
|
return self._get(f"/players", query, **kwargs)
|
|
1463
1467
|
|
|
1468
|
+
def simulate_farm_sale(self, ecid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
1469
|
+
"""只读模拟农场组合出售"""
|
|
1470
|
+
return self._post(f"/players/{quote(str(ecid), safe='')}/farm/sale-simulate", payload, **kwargs)
|
|
1471
|
+
|
|
1464
1472
|
class PlayerEntitlementAPI(_BaseApi):
|
|
1465
1473
|
def list(self, ecid: str, **kwargs: Any) -> Any:
|
|
1466
1474
|
"""获取玩家权益"""
|
|
@@ -1553,7 +1561,9 @@ class ServerAPI(_BaseApi):
|
|
|
1553
1561
|
self.leaderboard = ServerLeaderboardAPI(http)
|
|
1554
1562
|
self.lobby = ServerLobbyAPI(http)
|
|
1555
1563
|
self.map_deploy = MapDeployAPI(http)
|
|
1564
|
+
self.nya_ac_auto_probe = ServerNyaAcAutoProbeAPI(http)
|
|
1556
1565
|
self.nya_ac_stage_mode = ServerNyaAcStageModeAPI(http)
|
|
1566
|
+
self.nya_ac_switches = ServerNyaAcSwitchesAPI(http)
|
|
1557
1567
|
self.player_count = ServerPlayerCountAPI(http)
|
|
1558
1568
|
self.room = ServerRoomAPI(http)
|
|
1559
1569
|
self.room_log = ServerRoomLogAPI(http)
|
|
@@ -1745,6 +1755,15 @@ class MapDeployAPI(_BaseApi):
|
|
|
1745
1755
|
"""提交地图部署"""
|
|
1746
1756
|
return self._post(f"/map-deployments", payload, **kwargs)
|
|
1747
1757
|
|
|
1758
|
+
class ServerNyaAcAutoProbeAPI(_BaseApi):
|
|
1759
|
+
def get_config(self, **kwargs: Any) -> Any:
|
|
1760
|
+
"""获取 NyaAC 自动现场捕获配置"""
|
|
1761
|
+
return self._get(f"/nyaac-auto-probe", None, **kwargs)
|
|
1762
|
+
|
|
1763
|
+
def update_config(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
1764
|
+
"""更新 NyaAC 自动现场捕获配置"""
|
|
1765
|
+
return self._put(f"/nyaac-auto-probe", payload, **kwargs)
|
|
1766
|
+
|
|
1748
1767
|
class ServerNyaAcStageModeAPI(_BaseApi):
|
|
1749
1768
|
def get_config(self, **kwargs: Any) -> Any:
|
|
1750
1769
|
"""获取 NyaAC Stage Mode 配置"""
|
|
@@ -1758,6 +1777,15 @@ class ServerNyaAcStageModeAPI(_BaseApi):
|
|
|
1758
1777
|
"""更新 NyaAC Stage Mode 配置"""
|
|
1759
1778
|
return self._put(f"/nyaac-stage-mode", payload, **kwargs)
|
|
1760
1779
|
|
|
1780
|
+
class ServerNyaAcSwitchesAPI(_BaseApi):
|
|
1781
|
+
def get_config(self, **kwargs: Any) -> Any:
|
|
1782
|
+
"""获取 NyaAC 版本开关与灰度配置"""
|
|
1783
|
+
return self._get(f"/nyaac-switches", None, **kwargs)
|
|
1784
|
+
|
|
1785
|
+
def update_config(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
1786
|
+
"""更新 NyaAC 版本开关与灰度配置"""
|
|
1787
|
+
return self._put(f"/nyaac-switches", payload, **kwargs)
|
|
1788
|
+
|
|
1761
1789
|
class ServerPlayerCountAPI(_BaseApi):
|
|
1762
1790
|
def get_history(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
1763
1791
|
"""查询历史玩家数"""
|
|
@@ -392,6 +392,7 @@ class AdminPlayerMerchandiseAPIListQuery(TypedDict, total=False):
|
|
|
392
392
|
data: QueryValue
|
|
393
393
|
current: QueryValue
|
|
394
394
|
pageSize: QueryValue
|
|
395
|
+
includeCatalog: QueryValue
|
|
395
396
|
|
|
396
397
|
class AdminPlayerMerchandiseAPICreateBodyRequired(TypedDict):
|
|
397
398
|
category: str
|
|
@@ -1280,6 +1281,13 @@ class PlayerAPIGetFarmFreshnessBatchesQuery(TypedDict, total=False):
|
|
|
1280
1281
|
class PlayerAPIGetFarmOverviewQuery(TypedDict, total=False):
|
|
1281
1282
|
recentLimit: QueryValue
|
|
1282
1283
|
|
|
1284
|
+
class PlayerAPISimulateFarmSaleBodyRequired(TypedDict):
|
|
1285
|
+
items: Sequence[Any]
|
|
1286
|
+
compareNextReplenish: bool
|
|
1287
|
+
|
|
1288
|
+
class PlayerAPISimulateFarmSaleBody(PlayerAPISimulateFarmSaleBodyRequired, total=False):
|
|
1289
|
+
snapshotId: str
|
|
1290
|
+
|
|
1283
1291
|
class PlayerAPIGetFarmSummaryQuery(TypedDict, total=False):
|
|
1284
1292
|
recentSpendLimit: QueryValue
|
|
1285
1293
|
|
|
@@ -1607,6 +1615,12 @@ class MapDeployAPISubmitDeployBody(MapDeployAPISubmitDeployBodyRequired, total=F
|
|
|
1607
1615
|
note: str
|
|
1608
1616
|
requestedBy: str
|
|
1609
1617
|
|
|
1618
|
+
class ServerNyaAcAutoProbeAPIUpdateConfigBodyRequired(TypedDict):
|
|
1619
|
+
enabled: bool
|
|
1620
|
+
|
|
1621
|
+
class ServerNyaAcAutoProbeAPIUpdateConfigBody(ServerNyaAcAutoProbeAPIUpdateConfigBodyRequired, total=False):
|
|
1622
|
+
pass
|
|
1623
|
+
|
|
1610
1624
|
class ServerNyaAcStageModeAPIUpdateConfigBodyRequired(TypedDict):
|
|
1611
1625
|
config: Sequence[Any]
|
|
1612
1626
|
correct: Sequence[Any]
|
|
@@ -1615,6 +1629,13 @@ class ServerNyaAcStageModeAPIUpdateConfigBodyRequired(TypedDict):
|
|
|
1615
1629
|
class ServerNyaAcStageModeAPIUpdateConfigBody(ServerNyaAcStageModeAPIUpdateConfigBodyRequired, total=False):
|
|
1616
1630
|
pass
|
|
1617
1631
|
|
|
1632
|
+
class ServerNyaAcSwitchesAPIUpdateConfigBodyRequired(TypedDict):
|
|
1633
|
+
bedrock: Mapping[str, Any]
|
|
1634
|
+
java: Mapping[str, Any]
|
|
1635
|
+
|
|
1636
|
+
class ServerNyaAcSwitchesAPIUpdateConfigBody(ServerNyaAcSwitchesAPIUpdateConfigBodyRequired, total=False):
|
|
1637
|
+
pass
|
|
1638
|
+
|
|
1618
1639
|
class ServerPlayerCountAPIGetHistoryQueryRequired(TypedDict):
|
|
1619
1640
|
startTime: QueryValue
|
|
1620
1641
|
endTime: QueryValue
|
|
@@ -2059,6 +2080,7 @@ class PlayerAPI:
|
|
|
2059
2080
|
def get_farm_archive(self, ecid: str, query: Optional[PlayerAPIGetFarmArchiveQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2060
2081
|
def get_farm_freshness_batches(self, ecid: str, query: Optional[PlayerAPIGetFarmFreshnessBatchesQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2061
2082
|
def get_farm_overview(self, ecid: str, query: Optional[PlayerAPIGetFarmOverviewQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2083
|
+
def get_farm_sale_state(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
2062
2084
|
def get_farm_summary(self, ecid: str, query: Optional[PlayerAPIGetFarmSummaryQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2063
2085
|
def get_friends(self, ecid: str, query: Optional[PlayerAPIGetFriendsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2064
2086
|
def get_head_icon(self, ecid: str, query: Optional[PlayerAPIGetHeadIconQuery] = ..., **kwargs: Any) -> Any: ...
|
|
@@ -2074,6 +2096,7 @@ class PlayerAPI:
|
|
|
2074
2096
|
def list_referrals(self, ecid: str, query: Optional[PlayerAPIListReferralsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
2075
2097
|
def resolve(self, nickid: str, **kwargs: Any) -> Any: ...
|
|
2076
2098
|
def search(self, query: PlayerAPISearchQuery, **kwargs: Any) -> Any: ...
|
|
2099
|
+
def simulate_farm_sale(self, ecid: str, payload: PlayerAPISimulateFarmSaleBody, **kwargs: Any) -> Any: ...
|
|
2077
2100
|
|
|
2078
2101
|
class PlayerEntitlementAPI:
|
|
2079
2102
|
def list(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
@@ -2118,7 +2141,9 @@ class ServerAPI:
|
|
|
2118
2141
|
leaderboard: ServerLeaderboardAPI
|
|
2119
2142
|
lobby: ServerLobbyAPI
|
|
2120
2143
|
map_deploy: MapDeployAPI
|
|
2144
|
+
nya_ac_auto_probe: ServerNyaAcAutoProbeAPI
|
|
2121
2145
|
nya_ac_stage_mode: ServerNyaAcStageModeAPI
|
|
2146
|
+
nya_ac_switches: ServerNyaAcSwitchesAPI
|
|
2122
2147
|
player_count: ServerPlayerCountAPI
|
|
2123
2148
|
room: ServerRoomAPI
|
|
2124
2149
|
room_log: ServerRoomLogAPI
|
|
@@ -2188,11 +2213,19 @@ class MapDeployAPI:
|
|
|
2188
2213
|
def list_maps(self, **kwargs: Any) -> Any: ...
|
|
2189
2214
|
def submit_deploy(self, payload: MapDeployAPISubmitDeployBody, **kwargs: Any) -> Any: ...
|
|
2190
2215
|
|
|
2216
|
+
class ServerNyaAcAutoProbeAPI:
|
|
2217
|
+
def get_config(self, **kwargs: Any) -> Any: ...
|
|
2218
|
+
def update_config(self, payload: ServerNyaAcAutoProbeAPIUpdateConfigBody, **kwargs: Any) -> Any: ...
|
|
2219
|
+
|
|
2191
2220
|
class ServerNyaAcStageModeAPI:
|
|
2192
2221
|
def get_config(self, **kwargs: Any) -> Any: ...
|
|
2193
2222
|
def get_stage_type_suggestions(self, **kwargs: Any) -> Any: ...
|
|
2194
2223
|
def update_config(self, payload: ServerNyaAcStageModeAPIUpdateConfigBody, **kwargs: Any) -> Any: ...
|
|
2195
2224
|
|
|
2225
|
+
class ServerNyaAcSwitchesAPI:
|
|
2226
|
+
def get_config(self, **kwargs: Any) -> Any: ...
|
|
2227
|
+
def update_config(self, payload: ServerNyaAcSwitchesAPIUpdateConfigBody, **kwargs: Any) -> Any: ...
|
|
2228
|
+
|
|
2196
2229
|
class ServerPlayerCountAPI:
|
|
2197
2230
|
def get_history(self, query: ServerPlayerCountAPIGetHistoryQuery, **kwargs: Any) -> Any: ...
|
|
2198
2231
|
def get_latest(self, query: Optional[ServerPlayerCountAPIGetLatestQuery] = ..., **kwargs: Any) -> Any: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|