mirror of
https://github.com/cline/cline.git
synced 2025-06-03 03:59:07 +00:00

* migrate authCallback * changeset --------- Co-authored-by: Elephant Lumps <celestial_vault@Elephants-MacBook-Pro.local>
23 lines
786 B
Protocol Buffer
23 lines
786 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package cline;
|
|
option java_package = "bot.cline.proto";
|
|
option java_multiple_files = true;
|
|
|
|
import "common.proto";
|
|
|
|
// Service for account-related operations
|
|
service AccountService {
|
|
// Handles the user clicking the login link in the UI.
|
|
// Generates a secure nonce for state validation, stores it in secrets,
|
|
// and opens the authentication URL in the external browser.
|
|
rpc accountLoginClicked(EmptyRequest) returns (String);
|
|
|
|
// Handles the user clicking the logout button in the UI.
|
|
// Clears API keys and user state.
|
|
rpc accountLogoutClicked(EmptyRequest) returns (Empty);
|
|
|
|
// Subscribe to auth callback events (when authentication tokens are received)
|
|
rpc subscribeToAuthCallback(EmptyRequest) returns (stream String);
|
|
}
|