Class SessionAccountsApi
java.lang.Object
com.github.copilot.generated.rpc.SessionAccountsApi
API methods for the
accounts namespace.- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SessionAccountsLoginApiAPI methods for theaccounts.loginsub-namespace. -
Method Summary
Modifier and TypeMethodDescriptionEnumerate a typed accounts collection: the signed-in accounts, or the providers offered for interactive login.get(SessionAccountsGetParams params) Read one typed accounts datum: the active account, a neutral status summary, or the last authentication errors.set(SessionAccountsSetParams params) Apply one non-interactive accounts mutation: switch the active account, log an account out, or set credentials from a token.
-
Field Details
-
login
API methods for theaccounts.loginsub-namespace.
-
-
Method Details
-
enumerate
@CopilotExperimental public CompletableFuture<AuthEnumerateValue> enumerate(SessionAccountsEnumerateParams params) Enumerate a typed accounts collection: the signed-in accounts, or the providers offered for interactive login.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
get
Read one typed accounts datum: the active account, a neutral status summary, or the last authentication errors.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
set
@CopilotExperimental public CompletableFuture<SessionAccountsSetResult> set(SessionAccountsSetParams params) Apply one non-interactive accounts mutation: switch the active account, log an account out, or set credentials from a token.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-