Class ServerAccountApi
java.lang.Object
com.github.copilot.generated.rpc.ServerAccountApi
API methods for the
account namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionGets all authenticated users available for account switching.Gets the currently active authentication credentials from the global auth manager.getQuota()Gets Copilot quota usage for the current or opaquely selected authenticated user.getQuota(AccountGetQuotaParams params) Gets Copilot quota usage for the current or opaquely selected authenticated user.login(AccountLoginParams params) Validates and stores authentication credentials.logout(AccountLogoutParams params) Removes user authentication from keychain and persisted state.
-
Method Details
-
getQuota
Gets Copilot quota usage for the current or opaquely selected authenticated user.Invokes the method with no params, applying the runtime defaults.
- Since:
- 1.0.0
-
getQuota
@CopilotExperimental public CompletableFuture<AccountGetQuotaResult> getQuota(AccountGetQuotaParams params) Gets Copilot quota usage for the current or opaquely selected authenticated user.- Since:
- 1.0.0
-
getCurrentAuth
Gets the currently active authentication credentials from the global auth manager.- Since:
- 1.0.0
-
getAllUsers
Gets all authenticated users available for account switching.- Since:
- 1.0.0
-
login
Validates and stores authentication credentials. When login is omitted, resolves the authenticated user from the token before persistence.- Since:
- 1.0.0
-
logout
@CopilotExperimental public CompletableFuture<AccountLogoutResult> logout(AccountLogoutParams params) Removes user authentication from keychain and persisted state.- Since:
- 1.0.0
-