XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
UTF-8
from typing import Dict, Optional, Union

class ErrorDataDict(Dict):
    pass

class QwenCredentials(Dict):
    pass

class IQwenOAuth2Client:
    def setCredentials(self, credentials: QwenCredentials):
        raise NotImplementedError

    def getCredentials(self) -> QwenCredentials:
        raise NotImplementedError

    async def getAccessToken(self) -> Dict[str, Optional[str]]:
        raise NotImplementedError

    async def requestDeviceAuthorization(self, options: dict) -> Union[Dict, ErrorDataDict]:
        raise NotImplementedError

    async def pollDeviceToken(self, options: dict) -> Union[Dict, ErrorDataDict]:
        raise NotImplementedError

    async def refreshAccessToken(self) -> Union[Dict, ErrorDataDict]:
        raise NotImplementedError