ecapi-sdk 3.2.1__tar.gz → 3.2.2__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.1 → ecapi_sdk-3.2.2}/PKG-INFO +1 -1
- {ecapi_sdk-3.2.1 → ecapi_sdk-3.2.2}/pyproject.toml +1 -1
- {ecapi_sdk-3.2.1 → ecapi_sdk-3.2.2}/src/ecapi_sdk/client.py +21 -0
- {ecapi_sdk-3.2.1 → ecapi_sdk-3.2.2}/src/ecapi_sdk/client.pyi +19 -0
- {ecapi_sdk-3.2.1 → ecapi_sdk-3.2.2}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.2.1 → ecapi_sdk-3.2.2}/README.md +0 -0
- {ecapi_sdk-3.2.1 → ecapi_sdk-3.2.2}/setup.cfg +0 -0
- {ecapi_sdk-3.2.1 → ecapi_sdk-3.2.2}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.2.1 → ecapi_sdk-3.2.2}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.2.1 → ecapi_sdk-3.2.2}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.2.1 → ecapi_sdk-3.2.2}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.2.1 → ecapi_sdk-3.2.2}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -281,6 +281,23 @@ class _BaseApi:
|
|
|
281
281
|
request_kwargs, query_kwargs = _extract_request_kwargs(kwargs)
|
|
282
282
|
return self._http.request("DELETE", path, query=query, **request_kwargs, **query_kwargs)
|
|
283
283
|
|
|
284
|
+
class ReplayAPI(_BaseApi):
|
|
285
|
+
def create_visualization_data_job(self, recordId: Union[int, float], payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
286
|
+
"""创建回放结构化数据解析任务"""
|
|
287
|
+
return self._post(f"/replays/{quote(str(recordId), safe='')}/visualization-data-jobs", payload, **kwargs)
|
|
288
|
+
|
|
289
|
+
def get_replay_record(self, recordId: Union[int, float], **kwargs: Any) -> Any:
|
|
290
|
+
"""获取回放记录"""
|
|
291
|
+
return self._get(f"/replays/{quote(str(recordId), safe='')}", None, **kwargs)
|
|
292
|
+
|
|
293
|
+
def get_visualization_data(self, jobId: str, **kwargs: Any) -> Any:
|
|
294
|
+
"""获取回放结构化数据"""
|
|
295
|
+
return self._get(f"/replay-visualization-data-jobs/{quote(str(jobId), safe='')}/data", None, **kwargs)
|
|
296
|
+
|
|
297
|
+
def get_visualization_data_job(self, jobId: str, **kwargs: Any) -> Any:
|
|
298
|
+
"""查询回放结构化数据任务"""
|
|
299
|
+
return self._get(f"/replay-visualization-data-jobs/{quote(str(jobId), safe='')}", None, **kwargs)
|
|
300
|
+
|
|
284
301
|
class AdminAPI(_BaseApi):
|
|
285
302
|
def __init__(self, http: _HttpClient) -> None:
|
|
286
303
|
super().__init__(http)
|
|
@@ -1011,6 +1028,10 @@ class SystemAPI(_BaseApi):
|
|
|
1011
1028
|
"""获取服务基础资料"""
|
|
1012
1029
|
return self._get(f"/", None, **kwargs)
|
|
1013
1030
|
|
|
1031
|
+
def probe_database_indexes(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
1032
|
+
"""诊断线上数据库表索引"""
|
|
1033
|
+
return self._get(f"/health/diagnostics/database-indexes", query, **kwargs)
|
|
1034
|
+
|
|
1014
1035
|
class UserAPI(_BaseApi):
|
|
1015
1036
|
def get_by_id(self, id: str, **kwargs: Any) -> Any:
|
|
1016
1037
|
"""获取玩家账号详情"""
|
|
@@ -10,6 +10,12 @@ Headers = Dict[str, str]
|
|
|
10
10
|
AuthCredentials = Dict[str, str]
|
|
11
11
|
AuthProvider = Callable[[], Union[Optional[AuthCredentials], Awaitable[Optional[AuthCredentials]]]]
|
|
12
12
|
|
|
13
|
+
class ReplayAPICreateVisualizationDataJobBody(TypedDict, total=False):
|
|
14
|
+
includeBlocks: bool
|
|
15
|
+
includeLandmarks: bool
|
|
16
|
+
sampleRate: int
|
|
17
|
+
maxDurationSeconds: int
|
|
18
|
+
|
|
13
19
|
class AdminAccountAPIUpdatePasswordBodyRequired(TypedDict):
|
|
14
20
|
passwordHash: str
|
|
15
21
|
|
|
@@ -798,6 +804,12 @@ class ServerSpamDetectorAPISetStateBodyRequired(TypedDict):
|
|
|
798
804
|
class ServerSpamDetectorAPISetStateBody(ServerSpamDetectorAPISetStateBodyRequired, total=False):
|
|
799
805
|
pass
|
|
800
806
|
|
|
807
|
+
class SystemAPIProbeDatabaseIndexesQueryRequired(TypedDict):
|
|
808
|
+
tables: QueryValue
|
|
809
|
+
|
|
810
|
+
class SystemAPIProbeDatabaseIndexesQuery(SystemAPIProbeDatabaseIndexesQueryRequired, total=False):
|
|
811
|
+
requiredColumns: QueryValue
|
|
812
|
+
|
|
801
813
|
class ECAPIError(Exception):
|
|
802
814
|
status: int
|
|
803
815
|
payload: Any
|
|
@@ -808,6 +820,12 @@ class ECAPIError(Exception):
|
|
|
808
820
|
field: Optional[str]
|
|
809
821
|
def __init__(self, message: str, status: int, payload: Any, url: str) -> None: ...
|
|
810
822
|
|
|
823
|
+
class ReplayAPI:
|
|
824
|
+
def create_visualization_data_job(self, recordId: Union[int, float], payload: ReplayAPICreateVisualizationDataJobBody, **kwargs: Any) -> Any: ...
|
|
825
|
+
def get_replay_record(self, recordId: Union[int, float], **kwargs: Any) -> Any: ...
|
|
826
|
+
def get_visualization_data(self, jobId: str, **kwargs: Any) -> Any: ...
|
|
827
|
+
def get_visualization_data_job(self, jobId: str, **kwargs: Any) -> Any: ...
|
|
828
|
+
|
|
811
829
|
class AdminAPI:
|
|
812
830
|
account: AdminAccountAPI
|
|
813
831
|
leaderboard: AdminLeaderboardAPI
|
|
@@ -1088,6 +1106,7 @@ class SystemAPI:
|
|
|
1088
1106
|
def get_liveness(self, **kwargs: Any) -> Any: ...
|
|
1089
1107
|
def get_readiness(self, **kwargs: Any) -> Any: ...
|
|
1090
1108
|
def get_root(self, **kwargs: Any) -> Any: ...
|
|
1109
|
+
def probe_database_indexes(self, query: SystemAPIProbeDatabaseIndexesQuery, **kwargs: Any) -> Any: ...
|
|
1091
1110
|
|
|
1092
1111
|
class UserAPI:
|
|
1093
1112
|
def get_by_id(self, id: str, **kwargs: Any) -> Any: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|