import {EComponentType} from '@/consts/enum'
export type TAgent = {
  address?: string|null
  agentId: string
  avatarUrl?: string|null
  avatarLogo?: string|null
  email?: string|null
  enabledChatBg?: boolean
  entName?: string|null
  isDefault: boolean
  isEnt: boolean
  entId?: number|string|null
  isNewEnt: boolean
  mobile?: string|null
  name: string
  position?: string|null
  qrCodeUrl?: string
}

export type TAgentShared = {
  address?: string,
  avatarUrl?: string,
  email?: string,
  entName?: string,
  isEnt?: boolean,
  mobile?: string,
  name?: string,
  position?: string,
  qrCodeUrl?: string,
  shareKey?: string
}


export type TComponentItem = {
  data: {
    id: string,
    index: number, // index 虽然维护着，但暂时没用到
    [property: string]: any;
  },
  enabled: boolean,
  type: EComponentType
}
export type TAgentDetail = {
  address?: string,
  agentId?: string,
  avatarUrl?: string,
  avatarLogo?: string,
  components?: TComponentItem[],
  email?: string,
  enabledChatBg?: boolean,
  enabledPersonalKb?: boolean,
  entId?: string,
  entName?: string,
  greeting?: string,
  isDefault?: boolean,
  isEnt?: boolean,
  isNewEnt?: boolean,
  isSystemVoice?: boolean,
  mobile?: string,
  name?: string,
  personality?: string,
  position?: string,
  qrCodeUrl?: string,
  questionGuides?: string[],
  voiceId?: string
  isMineAgent: boolean
}

export type TAgentContactCard = {
  address?: string,
  email?: string,
  entName?: string,
  mobile?: string,
  name?: string,
  position?: string,
  qrCodeUrl?: string
}

export type TEditAgentCharacter = {
  enabledPersonalKb: boolean,
  greeting: string,
  personality: string,
  questionGuides: string[],
  voiceId: string
}