/**
 * AI 创作相关类型定义
 */

/** STS 临时凭证 */
export interface StsTokenData {
  region: string;
  accessKeyId: string;
  accessKeySecret: string;
  securityToken: string;
  bucket: string;
  endpoint: string;
  uploadPrefix: string;
  cdnDomain?: string;
  expiration: string;
}

/** 角色提取结果 */
export interface CharacterItem {
  charId: string;
  name: string;
  imageUrl: string;
}

/** 作品详情 */
export interface WorkDetail {
  workId: string;
  orgId: string;
  phone: string;
  status: number;
  title: string;
  author: string;
  coverUrl: string;
  pages: WorkPage[];
  style?: string;
}

/** 作品分页 */
export interface WorkPage {
  pageNo: number;
  imageUrl: string;
  text: string;
  audioUrl?: string;
}

/** 创建故事请求参数 */
export interface CreateStoryParams {
  imageUrl: string;
  storyHint: string;
  style: string;
  heroName: string;
  title?: string;
  author?: string;
  heroCharId?: string;
  extractId?: string;
  refAdaptMode?: string;
}
