ecapi-sdk 3.4.4__tar.gz → 3.4.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.4.4 → ecapi_sdk-3.4.6}/PKG-INFO +1 -1
- {ecapi_sdk-3.4.4 → ecapi_sdk-3.4.6}/pyproject.toml +1 -1
- {ecapi_sdk-3.4.4 → ecapi_sdk-3.4.6}/src/ecapi_sdk/client.py +16 -0
- {ecapi_sdk-3.4.4 → ecapi_sdk-3.4.6}/src/ecapi_sdk/client.pyi +24 -0
- {ecapi_sdk-3.4.4 → ecapi_sdk-3.4.6}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.4.4 → ecapi_sdk-3.4.6}/README.md +0 -0
- {ecapi_sdk-3.4.4 → ecapi_sdk-3.4.6}/setup.cfg +0 -0
- {ecapi_sdk-3.4.4 → ecapi_sdk-3.4.6}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.4.4 → ecapi_sdk-3.4.6}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.4.4 → ecapi_sdk-3.4.6}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.4.4 → ecapi_sdk-3.4.6}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.4.4 → ecapi_sdk-3.4.6}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -541,6 +541,10 @@ class AdminPermissionAPI(_BaseApi):
|
|
|
541
541
|
"""删除玩家权益"""
|
|
542
542
|
return self._delete(f"/admin/players/{quote(str(ecid), safe='')}/entitlements/{quote(str(entitlementKey), safe='')}", None, **kwargs)
|
|
543
543
|
|
|
544
|
+
def set_anticheat_permission(self, ecid: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
545
|
+
"""设置玩家反作弊权限"""
|
|
546
|
+
return self._put(f"/admin/players/{quote(str(ecid), safe='')}/anticheat-permission", payload, **kwargs)
|
|
547
|
+
|
|
544
548
|
def upsert_entitlement(self, ecid: str, entitlementKey: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
545
549
|
"""创建或更新玩家权益"""
|
|
546
550
|
return self._put(f"/admin/players/{quote(str(ecid), safe='')}/entitlements/{quote(str(entitlementKey), safe='')}", payload, **kwargs)
|
|
@@ -859,6 +863,10 @@ class PlayerAPI(_BaseApi):
|
|
|
859
863
|
"""获取玩家皮肤几何数据"""
|
|
860
864
|
return self._get(f"/players/{quote(str(ecid), safe='')}/skin/geometry", None, **kwargs)
|
|
861
865
|
|
|
866
|
+
def get_social_profile(self, ecid: str, **kwargs: Any) -> Any:
|
|
867
|
+
"""查询玩家社交关系概览"""
|
|
868
|
+
return self._get(f"/players/{quote(str(ecid), safe='')}/social-profile", None, **kwargs)
|
|
869
|
+
|
|
862
870
|
def get_stage_record(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
863
871
|
"""分页查询玩家关卡记录"""
|
|
864
872
|
return self._get(f"/players/{quote(str(ecid), safe='')}/stage-records", query, **kwargs)
|
|
@@ -871,6 +879,14 @@ class PlayerAPI(_BaseApi):
|
|
|
871
879
|
"""分页查询玩家钱包批次"""
|
|
872
880
|
return self._get(f"/players/{quote(str(ecid), safe='')}/wallet/lots", query, **kwargs)
|
|
873
881
|
|
|
882
|
+
def list_friend_relations(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
883
|
+
"""分页查询玩家好友关系"""
|
|
884
|
+
return self._get(f"/players/{quote(str(ecid), safe='')}/friend-relations", query, **kwargs)
|
|
885
|
+
|
|
886
|
+
def list_referrals(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
887
|
+
"""分页查询玩家邀请记录"""
|
|
888
|
+
return self._get(f"/players/{quote(str(ecid), safe='')}/referrals", query, **kwargs)
|
|
889
|
+
|
|
874
890
|
def search(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
875
891
|
"""查询玩家搜索命中列表"""
|
|
876
892
|
return self._get(f"/players", query, **kwargs)
|
|
@@ -302,6 +302,12 @@ class AdminOverwatchCaseAPIUpsertByRecordBody(TypedDict, total=False):
|
|
|
302
302
|
reviewType: str
|
|
303
303
|
reviewStatus: str
|
|
304
304
|
|
|
305
|
+
class AdminPermissionAPISetAnticheatPermissionBodyRequired(TypedDict):
|
|
306
|
+
enabled: bool
|
|
307
|
+
|
|
308
|
+
class AdminPermissionAPISetAnticheatPermissionBody(AdminPermissionAPISetAnticheatPermissionBodyRequired, total=False):
|
|
309
|
+
expiry: str
|
|
310
|
+
|
|
305
311
|
class AdminPermissionAPIUpsertEntitlementBody(TypedDict, total=False):
|
|
306
312
|
level: int
|
|
307
313
|
expiry: str
|
|
@@ -722,6 +728,14 @@ class PlayerAPIGetFarmOverviewQuery(TypedDict, total=False):
|
|
|
722
728
|
class PlayerAPIGetFarmSummaryQuery(TypedDict, total=False):
|
|
723
729
|
recentSpendLimit: QueryValue
|
|
724
730
|
|
|
731
|
+
class PlayerAPIListFriendRelationsQuery(TypedDict, total=False):
|
|
732
|
+
state: QueryValue
|
|
733
|
+
search: QueryValue
|
|
734
|
+
integrity: QueryValue
|
|
735
|
+
includePresence: QueryValue
|
|
736
|
+
current: QueryValue
|
|
737
|
+
pageSize: QueryValue
|
|
738
|
+
|
|
725
739
|
class PlayerAPIGetFriendsQuery(TypedDict, total=False):
|
|
726
740
|
state: QueryValue
|
|
727
741
|
includePresence: QueryValue
|
|
@@ -734,6 +748,12 @@ class PlayerAPIGetHeadIconQuery(TypedDict, total=False):
|
|
|
734
748
|
class PlayerAPIGetLastPlayedQuery(TypedDict, total=False):
|
|
735
749
|
count: QueryValue
|
|
736
750
|
|
|
751
|
+
class PlayerAPIListReferralsQuery(TypedDict, total=False):
|
|
752
|
+
verification: QueryValue
|
|
753
|
+
search: QueryValue
|
|
754
|
+
current: QueryValue
|
|
755
|
+
pageSize: QueryValue
|
|
756
|
+
|
|
737
757
|
class PlayerAPIGetStageRecordQueryRequired(TypedDict):
|
|
738
758
|
startTime: QueryValue
|
|
739
759
|
endTime: QueryValue
|
|
@@ -1211,6 +1231,7 @@ class AdminOverwatchCaseAPI:
|
|
|
1211
1231
|
|
|
1212
1232
|
class AdminPermissionAPI:
|
|
1213
1233
|
def delete_entitlement(self, ecid: str, entitlementKey: str, **kwargs: Any) -> Any: ...
|
|
1234
|
+
def set_anticheat_permission(self, ecid: str, payload: AdminPermissionAPISetAnticheatPermissionBody, **kwargs: Any) -> Any: ...
|
|
1214
1235
|
def upsert_entitlement(self, ecid: str, entitlementKey: str, payload: AdminPermissionAPIUpsertEntitlementBody, **kwargs: Any) -> Any: ...
|
|
1215
1236
|
|
|
1216
1237
|
class AdminPlayerDataAPI:
|
|
@@ -1322,9 +1343,12 @@ class PlayerAPI:
|
|
|
1322
1343
|
def get_last_played(self, ecid: str, query: Optional[PlayerAPIGetLastPlayedQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1323
1344
|
def get_skin(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1324
1345
|
def get_skin_geometry_data(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1346
|
+
def get_social_profile(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1325
1347
|
def get_stage_record(self, ecid: str, query: PlayerAPIGetStageRecordQuery, **kwargs: Any) -> Any: ...
|
|
1326
1348
|
def get_wallet(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1327
1349
|
def get_wallet_lots(self, ecid: str, query: Optional[PlayerAPIGetWalletLotsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1350
|
+
def list_friend_relations(self, ecid: str, query: Optional[PlayerAPIListFriendRelationsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1351
|
+
def list_referrals(self, ecid: str, query: Optional[PlayerAPIListReferralsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1328
1352
|
def search(self, query: PlayerAPISearchQuery, **kwargs: Any) -> Any: ...
|
|
1329
1353
|
|
|
1330
1354
|
class PlayerEntitlementAPI:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|