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

Class AccountAllUsers

python/copilot/generated/rpc.py:168–191  ·  view source on GitHub ↗

Schema for the `AccountAllUsers` type. List of all authenticated users

Source from the content-addressed store, hash-verified

166# Experimental: this type is part of an experimental API and may change or be removed.
167@dataclass
168class AccountAllUsers:
169 """Schema for the `AccountAllUsers` type.
170
171 List of all authenticated users
172 """
173 auth_info: AuthInfo
174 """Authentication information for this user"""
175
176 token: str | None = None
177 """Associated token, if available"""
178
179 @staticmethod
180 def from_dict(obj: Any) -> 'AccountAllUsers':
181 assert isinstance(obj, dict)
182 auth_info = _load_AuthInfo(obj.get("authInfo"))
183 token = from_union([from_str, from_none], obj.get("token"))
184 return AccountAllUsers(auth_info, token)
185
186 def to_dict(self) -> dict:
187 result: dict = {}
188 result["authInfo"] = (self.auth_info).to_dict()
189 if self.token is not None:
190 result["token"] = from_union([from_str, from_none], self.token)
191 return result
192
193# Experimental: this type is part of an experimental API and may change or be removed.
194@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…