ecapi-sdk 3.2.9__tar.gz → 3.3.1__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.1}/PKG-INFO +1 -1
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.1}/pyproject.toml +1 -1
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.1}/src/ecapi_sdk/client.py +32 -32
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.1}/src/ecapi_sdk/client.pyi +27 -26
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.1}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.1}/README.md +0 -0
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.1}/setup.cfg +0 -0
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.1}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.1}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.1}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.1}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.2.9 → ecapi_sdk-3.3.1}/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
|
|
@@ -508,6 +508,7 @@ class PlayerAPIGetFriendsQuery(TypedDict, total=False):
|
|
|
508
508
|
class PlayerAPIGetHeadIconQuery(TypedDict, total=False):
|
|
509
509
|
frame: QueryValue
|
|
510
510
|
size: QueryValue
|
|
511
|
+
render: QueryValue
|
|
511
512
|
|
|
512
513
|
class PlayerAPIGetLastPlayedQuery(TypedDict, total=False):
|
|
513
514
|
count: QueryValue
|
|
@@ -537,12 +538,6 @@ class PlayerLeaderboardAPIGetRankQueryRequired(TypedDict):
|
|
|
537
538
|
class PlayerLeaderboardAPIGetRankQuery(PlayerLeaderboardAPIGetRankQueryRequired, total=False):
|
|
538
539
|
sortOrder: QueryValue
|
|
539
540
|
|
|
540
|
-
class PlayerNeteaseAPICreateNicknameQueryBodyRequired(TypedDict):
|
|
541
|
-
ecids: Sequence[Any]
|
|
542
|
-
|
|
543
|
-
class PlayerNeteaseAPICreateNicknameQueryBody(PlayerNeteaseAPICreateNicknameQueryBodyRequired, total=False):
|
|
544
|
-
pass
|
|
545
|
-
|
|
546
541
|
class PlayerRankScoreAPIGetScoreQuery(TypedDict, total=False):
|
|
547
542
|
game: QueryValue
|
|
548
543
|
season: QueryValue
|
|
@@ -573,6 +568,12 @@ class PlayerScoreAPIGetWinRateQuery(TypedDict, total=False):
|
|
|
573
568
|
startTime: QueryValue
|
|
574
569
|
endTime: QueryValue
|
|
575
570
|
|
|
571
|
+
class PlayerSourceAccountAPICreateDisplayNameQueryBodyRequired(TypedDict):
|
|
572
|
+
ecids: Sequence[Any]
|
|
573
|
+
|
|
574
|
+
class PlayerSourceAccountAPICreateDisplayNameQueryBody(PlayerSourceAccountAPICreateDisplayNameQueryBodyRequired, total=False):
|
|
575
|
+
pass
|
|
576
|
+
|
|
576
577
|
class PlayerStatusAPIGetQueryRequired(TypedDict):
|
|
577
578
|
displayName: QueryValue
|
|
578
579
|
|
|
@@ -904,7 +905,6 @@ class AdminAPI:
|
|
|
904
905
|
account: AdminAccountAPI
|
|
905
906
|
leaderboard: AdminLeaderboardAPI
|
|
906
907
|
mail: AdminMailAPI
|
|
907
|
-
netease_binding: AdminNeteaseBindingAPI
|
|
908
908
|
operation_log: AdminOperationLogAPI
|
|
909
909
|
overwatch_case: AdminOverwatchCaseAPI
|
|
910
910
|
permission: AdminPermissionAPI
|
|
@@ -912,6 +912,7 @@ class AdminAPI:
|
|
|
912
912
|
player_merchandise: AdminPlayerMerchandiseAPI
|
|
913
913
|
player_task: AdminPlayerTaskAPI
|
|
914
914
|
punishment: AdminPunishmentAPI
|
|
915
|
+
source_account_binding: AdminSourceAccountBindingAPI
|
|
915
916
|
vote_reward_mail: AdminVoteRewardMailAPI
|
|
916
917
|
|
|
917
918
|
class AdminAccountAPI:
|
|
@@ -925,12 +926,6 @@ class AdminMailAPI:
|
|
|
925
926
|
def delete_one(self, mailId: Union[int, float], **kwargs: Any) -> Any: ...
|
|
926
927
|
def send(self, payload: AdminMailAPISendBody, **kwargs: Any) -> Any: ...
|
|
927
928
|
|
|
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
929
|
class AdminOperationLogAPI:
|
|
935
930
|
def get_statistics(self, query: AdminOperationLogAPIGetStatisticsQuery, **kwargs: Any) -> Any: ...
|
|
936
931
|
def list(self, query: Optional[AdminOperationLogAPIListQuery] = ..., **kwargs: Any) -> Any: ...
|
|
@@ -968,6 +963,12 @@ class AdminPunishmentAPI:
|
|
|
968
963
|
def list_prism_device_ban_logs(self, query: Optional[AdminPunishmentAPIListPrismDeviceBanLogsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
969
964
|
def remove(self, ecid: str, type: str, query: Optional[AdminPunishmentAPIRemoveQuery] = ..., **kwargs: Any) -> Any: ...
|
|
970
965
|
|
|
966
|
+
class AdminSourceAccountBindingAPI:
|
|
967
|
+
def bind_account_player(self, xuid: str, payload: AdminSourceAccountBindingAPIBindAccountPlayerBody, **kwargs: Any) -> Any: ...
|
|
968
|
+
def reset_account_player(self, xuid: str, **kwargs: Any) -> Any: ...
|
|
969
|
+
def reset_player_account(self, ecid: str, xuid: str, **kwargs: Any) -> Any: ...
|
|
970
|
+
def reset_player_accounts(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
971
|
+
|
|
971
972
|
class AdminVoteRewardMailAPI:
|
|
972
973
|
def create(self, payload: AdminVoteRewardMailAPICreateBody, **kwargs: Any) -> Any: ...
|
|
973
974
|
|
|
@@ -1026,9 +1027,9 @@ class LogOrderExchangeAPI:
|
|
|
1026
1027
|
class PlayerAPI:
|
|
1027
1028
|
entitlement: PlayerEntitlementAPI
|
|
1028
1029
|
leaderboard: PlayerLeaderboardAPI
|
|
1029
|
-
netease: PlayerNeteaseAPI
|
|
1030
1030
|
rank_score: PlayerRankScoreAPI
|
|
1031
1031
|
score: PlayerScoreAPI
|
|
1032
|
+
source_account: PlayerSourceAccountAPI
|
|
1032
1033
|
status: PlayerStatusAPI
|
|
1033
1034
|
year_summary: PlayerYearSummaryAPI
|
|
1034
1035
|
def get_data(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
@@ -1051,11 +1052,6 @@ class PlayerLeaderboardAPI:
|
|
|
1051
1052
|
def get_rank(self, ecid: str, query: PlayerLeaderboardAPIGetRankQuery, **kwargs: Any) -> Any: ...
|
|
1052
1053
|
def get_scores(self, query: Optional[PlayerLeaderboardAPIGetScoresQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1053
1054
|
|
|
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
1055
|
class PlayerRankScoreAPI:
|
|
1060
1056
|
def get_history(self, ecid: str, query: Optional[PlayerRankScoreAPIGetHistoryQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1061
1057
|
def get_periods(self, ecid: str, query: Optional[PlayerRankScoreAPIGetPeriodsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
@@ -1067,6 +1063,11 @@ class PlayerScoreAPI:
|
|
|
1067
1063
|
def get_stages(self, ecid: str, query: Optional[PlayerScoreAPIGetStagesQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1068
1064
|
def get_win_rate(self, ecid: str, query: Optional[PlayerScoreAPIGetWinRateQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1069
1065
|
|
|
1066
|
+
class PlayerSourceAccountAPI:
|
|
1067
|
+
def create_display_name_query(self, payload: PlayerSourceAccountAPICreateDisplayNameQueryBody, **kwargs: Any) -> Any: ...
|
|
1068
|
+
def get_account_player(self, xuid: str, **kwargs: Any) -> Any: ...
|
|
1069
|
+
def list_bindings(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1070
|
+
|
|
1070
1071
|
class PlayerStatusAPI:
|
|
1071
1072
|
def get(self, query: PlayerStatusAPIGetQuery, **kwargs: Any) -> Any: ...
|
|
1072
1073
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|