Get current authentication status. Returns: A GetAuthStatusResponse object containing authentication state. Raises: RuntimeError: If the client is not connected. Example: >>> auth = await client.get_auth_status() >>>
(self)
| 2907 | return GetStatusResponse.from_dict(result) |
| 2908 | |
| 2909 | async def get_auth_status(self) -> GetAuthStatusResponse: |
| 2910 | """ |
| 2911 | Get current authentication status. |
| 2912 | |
| 2913 | Returns: |
| 2914 | A GetAuthStatusResponse object containing authentication state. |
| 2915 | |
| 2916 | Raises: |
| 2917 | RuntimeError: If the client is not connected. |
| 2918 | |
| 2919 | Example: |
| 2920 | >>> auth = await client.get_auth_status() |
| 2921 | >>> if auth.isAuthenticated: |
| 2922 | ... print(f"Logged in as {auth.login}") |
| 2923 | """ |
| 2924 | if not self._client: |
| 2925 | raise RuntimeError("Client not connected") |
| 2926 | |
| 2927 | result = await self._client.request("auth.getStatus", {}) |
| 2928 | return GetAuthStatusResponse.from_dict(result) |
| 2929 | |
| 2930 | async def list_models(self) -> list[ModelInfo]: |
| 2931 | """ |