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); }