syntax = "proto3";

package auth;

option go_package = "github.com/echofi-ai/backend/types/auth";

import "google/protobuf/timestamp.proto";

// Account message represents an OAuth account (Auth.js compatible)
message Account {
  // Account ID
  string id = 1;
  
  // User ID
  string user_id = 2;
  
  // Account type (oauth, email, etc.)
  string type = 3;
  
  // OAuth provider (google, github, etc.)
  string provider = 4;
  
  // Provider account ID
  string provider_account_id = 5;
  
  // OAuth refresh token
  optional string refresh_token = 6;
  
  // OAuth access token
  optional string access_token = 7;
  
  // Token expiration timestamp
  optional int64 expires_at = 8;
  
  // Token type (Bearer, etc.)
  optional string token_type = 9;
  
  // OAuth scope
  optional string scope = 10;
  
  // OAuth ID token
  optional string id_token = 11;
  
  // OAuth session state
  optional string session_state = 12;
}
