export type SocialAccountStatus = 0 | 1 | 2

export interface SocialAccountInfo {
  id: number
  provider: string
  nickname: string
  avatar: string
  status: SocialAccountStatus
  created_at: string
}

export interface SocialBindingStartRequest {
  provider: string
  return_to?: string
  current_password?: string
  totp_code?: string
}

export interface SocialBindingStartResponse {
  auth_url: string
  state: string
}

export interface SocialAccountUnbindRequest {
  current_password?: string
  totp_code?: string
}
