MCPcopy Index your code
hub / github.com/github/copilot-sdk / AccountGetCurrentAuthResult

Class AccountGetCurrentAuthResult

python/copilot/generated/rpc.py:195–217  ·  view source on GitHub ↗

Current authentication state

Source from the content-addressed store, hash-verified

193# Experimental: this type is part of an experimental API and may change or be removed.
194@dataclass
195class AccountGetCurrentAuthResult:
196 """Current authentication state"""
197
198 auth_errors: list[str] | None = None
199 """Authentication errors from the last auth attempt, if any"""
200
201 auth_info: AuthInfo | None = None
202 """Current authentication information, if authenticated"""
203
204 @staticmethod
205 def from_dict(obj: Any) -> 'AccountGetCurrentAuthResult':
206 assert isinstance(obj, dict)
207 auth_errors = from_union([lambda x: from_list(from_str, x), from_none], obj.get("authErrors"))
208 auth_info = from_union([_load_AuthInfo, from_none], obj.get("authInfo"))
209 return AccountGetCurrentAuthResult(auth_errors, auth_info)
210
211 def to_dict(self) -> dict:
212 result: dict = {}
213 if self.auth_errors is not None:
214 result["authErrors"] = from_union([lambda x: from_list(from_str, x), from_none], self.auth_errors)
215 if self.auth_info is not None:
216 result["authInfo"] = from_union([lambda x: (x).to_dict(), from_none], self.auth_info)
217 return result
218
219# Experimental: this type is part of an experimental API and may change or be removed.
220@dataclass

Callers 1

from_dictMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…