ecapi-sdk 3.1.2__tar.gz → 3.1.4__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.1.2 → ecapi_sdk-3.1.4}/PKG-INFO +2 -2
- {ecapi_sdk-3.1.2 → ecapi_sdk-3.1.4}/README.md +1 -1
- {ecapi_sdk-3.1.2 → ecapi_sdk-3.1.4}/pyproject.toml +1 -1
- {ecapi_sdk-3.1.2 → ecapi_sdk-3.1.4}/src/ecapi_sdk/client.py +4 -12
- {ecapi_sdk-3.1.2 → ecapi_sdk-3.1.4}/src/ecapi_sdk/client.pyi +16 -20
- {ecapi_sdk-3.1.2 → ecapi_sdk-3.1.4}/src/ecapi_sdk.egg-info/PKG-INFO +2 -2
- {ecapi_sdk-3.1.2 → ecapi_sdk-3.1.4}/setup.cfg +0 -0
- {ecapi_sdk-3.1.2 → ecapi_sdk-3.1.4}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.1.2 → ecapi_sdk-3.1.4}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.1.2 → ecapi_sdk-3.1.4}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.1.2 → ecapi_sdk-3.1.4}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.1.2 → ecapi_sdk-3.1.4}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ecapi-sdk
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.4
|
|
4
4
|
Summary: ECAPI SDK for Python
|
|
5
5
|
Author: EaseCation
|
|
6
6
|
License: MIT
|
|
@@ -56,7 +56,7 @@ except ECAPIError as error:
|
|
|
56
56
|
|
|
57
57
|
```python
|
|
58
58
|
client.set_api_key("ec_xxx")
|
|
59
|
-
client.set_bearer_token("
|
|
59
|
+
client.set_bearer_token("iam-jwt-token")
|
|
60
60
|
client.set_app_session_token("app-session-token")
|
|
61
61
|
client.clear_auth()
|
|
62
62
|
```
|
|
@@ -339,6 +339,10 @@ class AuditAPI(_BaseApi):
|
|
|
339
339
|
"""查询处罚操作日志"""
|
|
340
340
|
return self._get(f"/audits/punishment", query, **kwargs)
|
|
341
341
|
|
|
342
|
+
def query_account_logs(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
343
|
+
"""查询账号敏感变更日志"""
|
|
344
|
+
return self._get(f"/audits/account", query, **kwargs)
|
|
345
|
+
|
|
342
346
|
class AuthAPI(_BaseApi):
|
|
343
347
|
def get_open_id(self, **kwargs: Any) -> Any:
|
|
344
348
|
"""获取用户 OpenId"""
|
|
@@ -348,10 +352,6 @@ class AuthAPI(_BaseApi):
|
|
|
348
352
|
"""创建 OAuth2 登录会话"""
|
|
349
353
|
return self._post(f"/auth/oauth2", payload, **kwargs)
|
|
350
354
|
|
|
351
|
-
def login_by_password(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
352
|
-
"""创建密码登录会话"""
|
|
353
|
-
return self._post(f"/auth/login", payload, **kwargs)
|
|
354
|
-
|
|
355
355
|
def refresh_token(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
356
356
|
"""刷新 Token"""
|
|
357
357
|
return self._post(f"/auth/refresh", payload, **kwargs)
|
|
@@ -962,14 +962,6 @@ class UserAPI(_BaseApi):
|
|
|
962
962
|
"""获取当前用户资料"""
|
|
963
963
|
return self._get(f"/users/me", None, **kwargs)
|
|
964
964
|
|
|
965
|
-
def list_all(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
966
|
-
"""分页查询用户"""
|
|
967
|
-
return self._get(f"/users", query, **kwargs)
|
|
968
|
-
|
|
969
|
-
def update_permissions(self, username: str, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
970
|
-
"""更新用户访问权限"""
|
|
971
|
-
return self._put(f"/users/{quote(str(username), safe='')}/accesses", payload, **kwargs)
|
|
972
|
-
|
|
973
965
|
@dataclass
|
|
974
966
|
class ClientOptions:
|
|
975
967
|
base_url: str = DEFAULT_BASE_URL
|
|
@@ -69,6 +69,21 @@ class AdminAPIGetPrismDeviceBanLogQuery(TypedDict, total=False):
|
|
|
69
69
|
current: QueryValue
|
|
70
70
|
pageSize: QueryValue
|
|
71
71
|
|
|
72
|
+
class AuditAPIQueryAccountLogsQuery(TypedDict, total=False):
|
|
73
|
+
current: QueryValue
|
|
74
|
+
pageSize: QueryValue
|
|
75
|
+
startTime: QueryValue
|
|
76
|
+
endTime: QueryValue
|
|
77
|
+
sortOrder: QueryValue
|
|
78
|
+
operatorId: QueryValue
|
|
79
|
+
operationStatus: QueryValue
|
|
80
|
+
targetEcid: QueryValue
|
|
81
|
+
action: QueryValue
|
|
82
|
+
httpMethod: QueryValue
|
|
83
|
+
xuid: QueryValue
|
|
84
|
+
oldEcid: QueryValue
|
|
85
|
+
newEcid: QueryValue
|
|
86
|
+
|
|
72
87
|
class AuditAPIGetAdminLogsQuery(TypedDict, total=False):
|
|
73
88
|
current: QueryValue
|
|
74
89
|
pageSize: QueryValue
|
|
@@ -139,13 +154,6 @@ class AuditAPIGetPunishmentLogsQuery(TypedDict, total=False):
|
|
|
139
154
|
banType: QueryValue
|
|
140
155
|
durationRange: QueryValue
|
|
141
156
|
|
|
142
|
-
class AuthAPILoginByPasswordBodyRequired(TypedDict):
|
|
143
|
-
username: str
|
|
144
|
-
password: str
|
|
145
|
-
|
|
146
|
-
class AuthAPILoginByPasswordBody(AuthAPILoginByPasswordBodyRequired, total=False):
|
|
147
|
-
pass
|
|
148
|
-
|
|
149
157
|
class AuthAPILoginByOauth2BodyRequired(TypedDict):
|
|
150
158
|
code: str
|
|
151
159
|
|
|
@@ -848,16 +856,6 @@ class StageLogAPIListQuery(TypedDict, total=False):
|
|
|
848
856
|
current: QueryValue
|
|
849
857
|
pageSize: QueryValue
|
|
850
858
|
|
|
851
|
-
class UserAPIListAllQuery(TypedDict, total=False):
|
|
852
|
-
current: QueryValue
|
|
853
|
-
pageSize: QueryValue
|
|
854
|
-
|
|
855
|
-
class UserAPIUpdatePermissionsBodyRequired(TypedDict):
|
|
856
|
-
accesses: Sequence[Any]
|
|
857
|
-
|
|
858
|
-
class UserAPIUpdatePermissionsBody(UserAPIUpdatePermissionsBodyRequired, total=False):
|
|
859
|
-
password: str
|
|
860
|
-
|
|
861
859
|
class ECAPIError(Exception):
|
|
862
860
|
status: int
|
|
863
861
|
payload: Any
|
|
@@ -885,11 +883,11 @@ class AuditAPI:
|
|
|
885
883
|
def get_permission_logs(self, query: Optional[AuditAPIGetPermissionLogsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
886
884
|
def get_player_logs(self, query: Optional[AuditAPIGetPlayerLogsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
887
885
|
def get_punishment_logs(self, query: Optional[AuditAPIGetPunishmentLogsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
886
|
+
def query_account_logs(self, query: Optional[AuditAPIQueryAccountLogsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
888
887
|
|
|
889
888
|
class AuthAPI:
|
|
890
889
|
def get_open_id(self, **kwargs: Any) -> Any: ...
|
|
891
890
|
def login_by_oauth2(self, payload: AuthAPILoginByOauth2Body, **kwargs: Any) -> Any: ...
|
|
892
|
-
def login_by_password(self, payload: AuthAPILoginByPasswordBody, **kwargs: Any) -> Any: ...
|
|
893
891
|
def refresh_token(self, payload: AuthAPIRefreshTokenBody, **kwargs: Any) -> Any: ...
|
|
894
892
|
|
|
895
893
|
class BroadcastAPI:
|
|
@@ -1096,8 +1094,6 @@ class SystemAPI:
|
|
|
1096
1094
|
class UserAPI:
|
|
1097
1095
|
def get_by_id(self, id: str, **kwargs: Any) -> Any: ...
|
|
1098
1096
|
def get_me(self, **kwargs: Any) -> Any: ...
|
|
1099
|
-
def list_all(self, query: Optional[UserAPIListAllQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1100
|
-
def update_permissions(self, username: str, payload: UserAPIUpdatePermissionsBody, **kwargs: Any) -> Any: ...
|
|
1101
1097
|
|
|
1102
1098
|
@dataclass
|
|
1103
1099
|
class ClientOptions:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ecapi-sdk
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.4
|
|
4
4
|
Summary: ECAPI SDK for Python
|
|
5
5
|
Author: EaseCation
|
|
6
6
|
License: MIT
|
|
@@ -56,7 +56,7 @@ except ECAPIError as error:
|
|
|
56
56
|
|
|
57
57
|
```python
|
|
58
58
|
client.set_api_key("ec_xxx")
|
|
59
|
-
client.set_bearer_token("
|
|
59
|
+
client.set_bearer_token("iam-jwt-token")
|
|
60
60
|
client.set_app_session_token("app-session-token")
|
|
61
61
|
client.clear_auth()
|
|
62
62
|
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|