Gets Copilot quota usage for the authenticated user or supplied GitHub token.\n\nArgs:\n params: Optional GitHub token used to look up quota for a specific user instead of the global auth context.\n\nReturns:\n Quota usage snapshots for the resolved user, keyed by quota type.
(self, params: AccountGetQuotaRequest, *, timeout: float | None = None)
| 25111 | self._client = client |
| 25112 | |
| 25113 | async def get_quota(self, params: AccountGetQuotaRequest, *, timeout: float | None = None) -> AccountGetQuotaResult: |
| 25114 | "Gets Copilot quota usage for the authenticated user or supplied GitHub token.\n\nArgs:\n params: Optional GitHub token used to look up quota for a specific user instead of the global auth context.\n\nReturns:\n Quota usage snapshots for the resolved user, keyed by quota type." |
| 25115 | params_dict = {k: v for k, v in params.to_dict().items() if v is not None} |
| 25116 | return AccountGetQuotaResult.from_dict(await self._client.request("account.getQuota", params_dict, **_timeout_kwargs(timeout))) |
| 25117 | |
| 25118 | async def get_current_auth(self, *, timeout: float | None = None) -> AccountGetCurrentAuthResult: |
| 25119 | "Gets the currently active authentication credentials from the global auth manager.\n\nReturns:\n Current authentication state" |