ecapi-sdk 3.2.9__tar.gz → 3.3.0__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.2.9 → ecapi_sdk-3.3.0}/PKG-INFO +1 -1
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.0}/pyproject.toml +1 -1
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.0}/src/ecapi_sdk/client.py +32 -32
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.0}/src/ecapi_sdk/client.pyi +26 -26
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.0}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.0}/README.md +0 -0
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.0}/setup.cfg +0 -0
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.0}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.0}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.0}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.0}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.0}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -356,7 +356,6 @@ class AdminAPI(_BaseApi):
|
|
|
356
356
|
self.account = AdminAccountAPI(http)
|
|
357
357
|
self.leaderboard = AdminLeaderboardAPI(http)
|
|
358
358
|
self.mail = AdminMailAPI(http)
|
|
359
|
-
self.netease_binding = AdminNeteaseBindingAPI(http)
|
|
360
359
|
self.operation_log = AdminOperationLogAPI(http)
|
|
361
360
|
self.overwatch_case = AdminOverwatchCaseAPI(http)
|
|
362
361
|
self.permission = AdminPermissionAPI(http)
|
|
@@ -364,6 +363,7 @@ class AdminAPI(_BaseApi):
|
|
|
364
363
|
self.player_merchandise = AdminPlayerMerchandiseAPI(http)
|
|
365
364
|
self.player_task = AdminPlayerTaskAPI(http)
|
|
366
365
|
self.punishment = AdminPunishmentAPI(http)
|
|
366
|
+
self.source_account_binding = AdminSourceAccountBindingAPI(http)
|
|
367
367
|
self.vote_reward_mail = AdminVoteRewardMailAPI(http)
|
|
368
368
|
|
|
369
369
|
class AdminAccountAPI(_BaseApi):
|
|
@@ -389,23 +389,6 @@ class AdminMailAPI(_BaseApi):
|
|
|
389
389
|
"""发送邮件"""
|
|
390
390
|
return self._post(f"/admin/mails", payload, **kwargs)
|
|
391
391
|
|
|
392
|
-
class AdminNeteaseBindingAPI(_BaseApi):
|
|
393
|
-
def bind_account_player(self, xuid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
394
|
-
"""绑定或改绑网易账号到玩家"""
|
|
395
|
-
return self._put(f"/admin/netease-accounts/{quote(str(xuid), safe='')}/player", payload, **kwargs)
|
|
396
|
-
|
|
397
|
-
def reset_account_player(self, xuid: str, **kwargs: Any) -> Any:
|
|
398
|
-
"""解绑网易账号当前玩家"""
|
|
399
|
-
return self._delete(f"/admin/netease-accounts/{quote(str(xuid), safe='')}/player", None, **kwargs)
|
|
400
|
-
|
|
401
|
-
def reset_player_account(self, ecid: str, xuid: str, **kwargs: Any) -> Any:
|
|
402
|
-
"""解绑玩家名下单个网易账号"""
|
|
403
|
-
return self._delete(f"/admin/players/{quote(str(ecid), safe='')}/netease-accounts/{quote(str(xuid), safe='')}", None, **kwargs)
|
|
404
|
-
|
|
405
|
-
def reset_player_accounts(self, ecid: str, **kwargs: Any) -> Any:
|
|
406
|
-
"""解绑玩家名下全部网易账号"""
|
|
407
|
-
return self._delete(f"/admin/players/{quote(str(ecid), safe='')}/netease-accounts", None, **kwargs)
|
|
408
|
-
|
|
409
392
|
class AdminOperationLogAPI(_BaseApi):
|
|
410
393
|
def get_statistics(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
411
394
|
"""查询操作日志统计"""
|
|
@@ -505,6 +488,23 @@ class AdminPunishmentAPI(_BaseApi):
|
|
|
505
488
|
"""解除处罚"""
|
|
506
489
|
return self._delete(f"/admin/players/{quote(str(ecid), safe='')}/punishments/{quote(str(type), safe='')}", query, **kwargs)
|
|
507
490
|
|
|
491
|
+
class AdminSourceAccountBindingAPI(_BaseApi):
|
|
492
|
+
def bind_account_player(self, xuid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
493
|
+
"""绑定或改绑来源账号到玩家"""
|
|
494
|
+
return self._put(f"/admin/source-accounts/{quote(str(xuid), safe='')}/player", payload, **kwargs)
|
|
495
|
+
|
|
496
|
+
def reset_account_player(self, xuid: str, **kwargs: Any) -> Any:
|
|
497
|
+
"""解绑来源账号当前玩家"""
|
|
498
|
+
return self._delete(f"/admin/source-accounts/{quote(str(xuid), safe='')}/player", None, **kwargs)
|
|
499
|
+
|
|
500
|
+
def reset_player_account(self, ecid: str, xuid: str, **kwargs: Any) -> Any:
|
|
501
|
+
"""解绑玩家名下单个来源账号"""
|
|
502
|
+
return self._delete(f"/admin/players/{quote(str(ecid), safe='')}/source-accounts/{quote(str(xuid), safe='')}", None, **kwargs)
|
|
503
|
+
|
|
504
|
+
def reset_player_accounts(self, ecid: str, **kwargs: Any) -> Any:
|
|
505
|
+
"""解绑玩家名下全部来源账号"""
|
|
506
|
+
return self._delete(f"/admin/players/{quote(str(ecid), safe='')}/source-accounts", None, **kwargs)
|
|
507
|
+
|
|
508
508
|
class AdminVoteRewardMailAPI(_BaseApi):
|
|
509
509
|
def create(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
510
510
|
"""创建投票奖励邮件"""
|
|
@@ -668,9 +668,9 @@ class PlayerAPI(_BaseApi):
|
|
|
668
668
|
super().__init__(http)
|
|
669
669
|
self.entitlement = PlayerEntitlementAPI(http)
|
|
670
670
|
self.leaderboard = PlayerLeaderboardAPI(http)
|
|
671
|
-
self.netease = PlayerNeteaseAPI(http)
|
|
672
671
|
self.rank_score = PlayerRankScoreAPI(http)
|
|
673
672
|
self.score = PlayerScoreAPI(http)
|
|
673
|
+
self.source_account = PlayerSourceAccountAPI(http)
|
|
674
674
|
self.status = PlayerStatusAPI(http)
|
|
675
675
|
self.year_summary = PlayerYearSummaryAPI(http)
|
|
676
676
|
|
|
@@ -736,19 +736,6 @@ class PlayerLeaderboardAPI(_BaseApi):
|
|
|
736
736
|
"""批量查询排行榜数据"""
|
|
737
737
|
return self._get(f"/leaderboards/scores", query, **kwargs)
|
|
738
738
|
|
|
739
|
-
class PlayerNeteaseAPI(_BaseApi):
|
|
740
|
-
def create_nickname_query(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
741
|
-
"""批量获取玩家展示名"""
|
|
742
|
-
return self._post(f"/netease-nickname-queries", payload, **kwargs)
|
|
743
|
-
|
|
744
|
-
def get_account_player(self, xuid: str, **kwargs: Any) -> Any:
|
|
745
|
-
"""查询网易账号当前绑定的玩家"""
|
|
746
|
-
return self._get(f"/netease-accounts/{quote(str(xuid), safe='')}/player", None, **kwargs)
|
|
747
|
-
|
|
748
|
-
def list_bindings(self, ecid: str, **kwargs: Any) -> Any:
|
|
749
|
-
"""查询玩家绑定的网易账号"""
|
|
750
|
-
return self._get(f"/players/{quote(str(ecid), safe='')}/netease-accounts", None, **kwargs)
|
|
751
|
-
|
|
752
739
|
class PlayerRankScoreAPI(_BaseApi):
|
|
753
740
|
def get_history(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
754
741
|
"""查询玩家历史赛季段位数据"""
|
|
@@ -779,6 +766,19 @@ class PlayerScoreAPI(_BaseApi):
|
|
|
779
766
|
"""获取玩家胜率统计"""
|
|
780
767
|
return self._get(f"/players/{quote(str(ecid), safe='')}/scores/win-rate", query, **kwargs)
|
|
781
768
|
|
|
769
|
+
class PlayerSourceAccountAPI(_BaseApi):
|
|
770
|
+
def create_display_name_query(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
771
|
+
"""批量获取账号展示名"""
|
|
772
|
+
return self._post(f"/account-display-name-queries", payload, **kwargs)
|
|
773
|
+
|
|
774
|
+
def get_account_player(self, xuid: str, **kwargs: Any) -> Any:
|
|
775
|
+
"""查询来源账号当前绑定的玩家"""
|
|
776
|
+
return self._get(f"/source-accounts/{quote(str(xuid), safe='')}/player", None, **kwargs)
|
|
777
|
+
|
|
778
|
+
def list_bindings(self, ecid: str, **kwargs: Any) -> Any:
|
|
779
|
+
"""查询玩家绑定的来源账号"""
|
|
780
|
+
return self._get(f"/players/{quote(str(ecid), safe='')}/source-accounts", None, **kwargs)
|
|
781
|
+
|
|
782
782
|
class PlayerStatusAPI(_BaseApi):
|
|
783
783
|
def get(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
784
784
|
"""查询玩家服内状态"""
|
|
@@ -92,12 +92,6 @@ class AdminMailAPISendBodyRequired(TypedDict):
|
|
|
92
92
|
class AdminMailAPISendBody(AdminMailAPISendBodyRequired, total=False):
|
|
93
93
|
gift: Mapping[str, Any]
|
|
94
94
|
|
|
95
|
-
class AdminNeteaseBindingAPIBindAccountPlayerBodyRequired(TypedDict):
|
|
96
|
-
ecid: str
|
|
97
|
-
|
|
98
|
-
class AdminNeteaseBindingAPIBindAccountPlayerBody(AdminNeteaseBindingAPIBindAccountPlayerBodyRequired, total=False):
|
|
99
|
-
pass
|
|
100
|
-
|
|
101
95
|
class AdminOperationLogAPIListQuery(TypedDict, total=False):
|
|
102
96
|
startTime: QueryValue
|
|
103
97
|
endTime: QueryValue
|
|
@@ -229,11 +223,17 @@ class AdminPunishmentAPIListQuery(TypedDict, total=False):
|
|
|
229
223
|
current: QueryValue
|
|
230
224
|
pageSize: QueryValue
|
|
231
225
|
|
|
226
|
+
class AdminSourceAccountBindingAPIBindAccountPlayerBodyRequired(TypedDict):
|
|
227
|
+
ecid: str
|
|
228
|
+
|
|
229
|
+
class AdminSourceAccountBindingAPIBindAccountPlayerBody(AdminSourceAccountBindingAPIBindAccountPlayerBodyRequired, total=False):
|
|
230
|
+
pass
|
|
231
|
+
|
|
232
232
|
class AdminVoteRewardMailAPICreateBodyRequired(TypedDict):
|
|
233
233
|
players: Sequence[Any]
|
|
234
234
|
|
|
235
235
|
class AdminVoteRewardMailAPICreateBody(AdminVoteRewardMailAPICreateBodyRequired, total=False):
|
|
236
|
-
|
|
236
|
+
enableDisplayNameLookup: bool
|
|
237
237
|
|
|
238
238
|
class AuditAPIQueryAccessLogsQuery(TypedDict, total=False):
|
|
239
239
|
current: QueryValue
|
|
@@ -537,12 +537,6 @@ class PlayerLeaderboardAPIGetRankQueryRequired(TypedDict):
|
|
|
537
537
|
class PlayerLeaderboardAPIGetRankQuery(PlayerLeaderboardAPIGetRankQueryRequired, total=False):
|
|
538
538
|
sortOrder: QueryValue
|
|
539
539
|
|
|
540
|
-
class PlayerNeteaseAPICreateNicknameQueryBodyRequired(TypedDict):
|
|
541
|
-
ecids: Sequence[Any]
|
|
542
|
-
|
|
543
|
-
class PlayerNeteaseAPICreateNicknameQueryBody(PlayerNeteaseAPICreateNicknameQueryBodyRequired, total=False):
|
|
544
|
-
pass
|
|
545
|
-
|
|
546
540
|
class PlayerRankScoreAPIGetScoreQuery(TypedDict, total=False):
|
|
547
541
|
game: QueryValue
|
|
548
542
|
season: QueryValue
|
|
@@ -573,6 +567,12 @@ class PlayerScoreAPIGetWinRateQuery(TypedDict, total=False):
|
|
|
573
567
|
startTime: QueryValue
|
|
574
568
|
endTime: QueryValue
|
|
575
569
|
|
|
570
|
+
class PlayerSourceAccountAPICreateDisplayNameQueryBodyRequired(TypedDict):
|
|
571
|
+
ecids: Sequence[Any]
|
|
572
|
+
|
|
573
|
+
class PlayerSourceAccountAPICreateDisplayNameQueryBody(PlayerSourceAccountAPICreateDisplayNameQueryBodyRequired, total=False):
|
|
574
|
+
pass
|
|
575
|
+
|
|
576
576
|
class PlayerStatusAPIGetQueryRequired(TypedDict):
|
|
577
577
|
displayName: QueryValue
|
|
578
578
|
|
|
@@ -904,7 +904,6 @@ class AdminAPI:
|
|
|
904
904
|
account: AdminAccountAPI
|
|
905
905
|
leaderboard: AdminLeaderboardAPI
|
|
906
906
|
mail: AdminMailAPI
|
|
907
|
-
netease_binding: AdminNeteaseBindingAPI
|
|
908
907
|
operation_log: AdminOperationLogAPI
|
|
909
908
|
overwatch_case: AdminOverwatchCaseAPI
|
|
910
909
|
permission: AdminPermissionAPI
|
|
@@ -912,6 +911,7 @@ class AdminAPI:
|
|
|
912
911
|
player_merchandise: AdminPlayerMerchandiseAPI
|
|
913
912
|
player_task: AdminPlayerTaskAPI
|
|
914
913
|
punishment: AdminPunishmentAPI
|
|
914
|
+
source_account_binding: AdminSourceAccountBindingAPI
|
|
915
915
|
vote_reward_mail: AdminVoteRewardMailAPI
|
|
916
916
|
|
|
917
917
|
class AdminAccountAPI:
|
|
@@ -925,12 +925,6 @@ class AdminMailAPI:
|
|
|
925
925
|
def delete_one(self, mailId: Union[int, float], **kwargs: Any) -> Any: ...
|
|
926
926
|
def send(self, payload: AdminMailAPISendBody, **kwargs: Any) -> Any: ...
|
|
927
927
|
|
|
928
|
-
class AdminNeteaseBindingAPI:
|
|
929
|
-
def bind_account_player(self, xuid: str, payload: AdminNeteaseBindingAPIBindAccountPlayerBody, **kwargs: Any) -> Any: ...
|
|
930
|
-
def reset_account_player(self, xuid: str, **kwargs: Any) -> Any: ...
|
|
931
|
-
def reset_player_account(self, ecid: str, xuid: str, **kwargs: Any) -> Any: ...
|
|
932
|
-
def reset_player_accounts(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
933
|
-
|
|
934
928
|
class AdminOperationLogAPI:
|
|
935
929
|
def get_statistics(self, query: AdminOperationLogAPIGetStatisticsQuery, **kwargs: Any) -> Any: ...
|
|
936
930
|
def list(self, query: Optional[AdminOperationLogAPIListQuery] = ..., **kwargs: Any) -> Any: ...
|
|
@@ -968,6 +962,12 @@ class AdminPunishmentAPI:
|
|
|
968
962
|
def list_prism_device_ban_logs(self, query: Optional[AdminPunishmentAPIListPrismDeviceBanLogsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
969
963
|
def remove(self, ecid: str, type: str, query: Optional[AdminPunishmentAPIRemoveQuery] = ..., **kwargs: Any) -> Any: ...
|
|
970
964
|
|
|
965
|
+
class AdminSourceAccountBindingAPI:
|
|
966
|
+
def bind_account_player(self, xuid: str, payload: AdminSourceAccountBindingAPIBindAccountPlayerBody, **kwargs: Any) -> Any: ...
|
|
967
|
+
def reset_account_player(self, xuid: str, **kwargs: Any) -> Any: ...
|
|
968
|
+
def reset_player_account(self, ecid: str, xuid: str, **kwargs: Any) -> Any: ...
|
|
969
|
+
def reset_player_accounts(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
970
|
+
|
|
971
971
|
class AdminVoteRewardMailAPI:
|
|
972
972
|
def create(self, payload: AdminVoteRewardMailAPICreateBody, **kwargs: Any) -> Any: ...
|
|
973
973
|
|
|
@@ -1026,9 +1026,9 @@ class LogOrderExchangeAPI:
|
|
|
1026
1026
|
class PlayerAPI:
|
|
1027
1027
|
entitlement: PlayerEntitlementAPI
|
|
1028
1028
|
leaderboard: PlayerLeaderboardAPI
|
|
1029
|
-
netease: PlayerNeteaseAPI
|
|
1030
1029
|
rank_score: PlayerRankScoreAPI
|
|
1031
1030
|
score: PlayerScoreAPI
|
|
1031
|
+
source_account: PlayerSourceAccountAPI
|
|
1032
1032
|
status: PlayerStatusAPI
|
|
1033
1033
|
year_summary: PlayerYearSummaryAPI
|
|
1034
1034
|
def get_data(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
@@ -1051,11 +1051,6 @@ class PlayerLeaderboardAPI:
|
|
|
1051
1051
|
def get_rank(self, ecid: str, query: PlayerLeaderboardAPIGetRankQuery, **kwargs: Any) -> Any: ...
|
|
1052
1052
|
def get_scores(self, query: Optional[PlayerLeaderboardAPIGetScoresQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1053
1053
|
|
|
1054
|
-
class PlayerNeteaseAPI:
|
|
1055
|
-
def create_nickname_query(self, payload: PlayerNeteaseAPICreateNicknameQueryBody, **kwargs: Any) -> Any: ...
|
|
1056
|
-
def get_account_player(self, xuid: str, **kwargs: Any) -> Any: ...
|
|
1057
|
-
def list_bindings(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1058
|
-
|
|
1059
1054
|
class PlayerRankScoreAPI:
|
|
1060
1055
|
def get_history(self, ecid: str, query: Optional[PlayerRankScoreAPIGetHistoryQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1061
1056
|
def get_periods(self, ecid: str, query: Optional[PlayerRankScoreAPIGetPeriodsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
@@ -1067,6 +1062,11 @@ class PlayerScoreAPI:
|
|
|
1067
1062
|
def get_stages(self, ecid: str, query: Optional[PlayerScoreAPIGetStagesQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1068
1063
|
def get_win_rate(self, ecid: str, query: Optional[PlayerScoreAPIGetWinRateQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1069
1064
|
|
|
1065
|
+
class PlayerSourceAccountAPI:
|
|
1066
|
+
def create_display_name_query(self, payload: PlayerSourceAccountAPICreateDisplayNameQueryBody, **kwargs: Any) -> Any: ...
|
|
1067
|
+
def get_account_player(self, xuid: str, **kwargs: Any) -> Any: ...
|
|
1068
|
+
def list_bindings(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1069
|
+
|
|
1070
1070
|
class PlayerStatusAPI:
|
|
1071
1071
|
def get(self, query: PlayerStatusAPIGetQuery, **kwargs: Any) -> Any: ...
|
|
1072
1072
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|