fix: restore the deprecated issue_token aliases
Published 2.0.2 exposed ElydoraClient.issue_token(), AsyncElydoraClient.issue_token(), and the IssueTokenResponse type alias. The audit removed them, which breaks 2.0.x callers on a minor upgrade. Restore all three, now raising DeprecationWarning. Claude-Session: https://claude.ai/code/session_01Agoc9bRVE9KL7mmWtey9Vq
This commit is contained in:
1 parent
b438ead6ae
commit
7b3ea2922c
4 files changed
+24
No files matched your search
@@ -195,6 +195,15 @@ class AsyncElydoraClient:
|
||||
"POST", "/v1/auth/token", json_body=api_token_body(ttl_seconds)
|
||||
)
|
||||
|
||||
async def issue_token(self, ttl_seconds: Optional[int] = None) -> IssueApiTokenResponse:
|
||||
"""Deprecated alias for issue_api_token()."""
|
||||
warnings.warn(
|
||||
"AsyncElydoraClient.issue_token() is deprecated. Use issue_api_token().",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
return await self.issue_api_token(ttl_seconds=ttl_seconds)
|
||||
|
||||
async def rotate_api_token(self) -> RotateApiTokenResponse:
|
||||
return await self._request("POST", "/v1/auth/rotate", json_body={})
|
||||
|
||||
|
||||
Reference in new issue
Block a user