{"version":3,"file":"index.cjs","sources":["../src/repositories/AIdolRepository.ts","../src/repositories/ChatroomRepository.ts","../src/constants/companion.ts","../src/repositories/CompanionRelationshipRepository.ts","../src/repositories/CompanionRepository.ts","../src/repositories/HighlightRepository.ts","../src/repositories/LeadsRepository.ts","../src/constants/activity.ts","../src/lib/activity.ts","../src/i18n/translations.ts"],"sourcesContent":["import { BaseCrudRepository } from \"@aioia/core\";\n\nimport type {\n  AIdol,\n  AIdolCreate,\n  AIdolCreateResponse,\n  ImageGenerationRequest,\n  ImageGenerationResponse,\n} from \"../schemas\";\nimport {\n  aidolCreateResponseSchema,\n  aidolSchema,\n  imageGenerationResponseSchema,\n} from \"../schemas\";\n\nexport class AIdolRepository extends BaseCrudRepository<AIdol> {\n  readonly resource = \"aidols\";\n\n  protected getDataSchema() {\n    return aidolSchema;\n  }\n\n  async createAIdol(variables: AIdolCreate): Promise<AIdolCreateResponse> {\n    const url = this.apiService.buildUrl(this.resource);\n    const raw = (await this.apiService.request(url, {\n      method: \"POST\",\n      headers: { \"Content-Type\": \"application/json\" },\n      body: JSON.stringify(variables),\n    })) as { data: unknown };\n    return aidolCreateResponseSchema.parse(raw.data);\n  }\n\n  async getMy(fetchOptions?: RequestInit): Promise<{ data: AIdol[] }> {\n    const url = this.apiService.buildUrl(`me/${this.resource}`);\n    const raw = (await this.apiService.request(url, fetchOptions)) as {\n      data: unknown[];\n      total: number;\n    };\n    return { data: aidolSchema.array().parse(raw.data) };\n  }\n\n  async generateImage(\n    request: ImageGenerationRequest,\n    fetchOptions?: RequestInit,\n  ): Promise<ImageGenerationResponse> {\n    const url = this.apiService.buildUrl(`${this.resource}/images`);\n    const rawResponse = await this.apiService.request(url, {\n      ...fetchOptions,\n      method: \"POST\",\n      headers: {\n        \"Content-Type\": \"application/json\",\n      },\n      body: JSON.stringify(request),\n    });\n\n    return this.validateResponse(rawResponse, imageGenerationResponseSchema);\n  }\n}\n","import { BaseCrudRepository } from \"@aioia/core\";\nimport { z } from \"zod\";\n\nimport {\n  chatroomSchema,\n  messageSchema,\n  type Chatroom,\n  type Message,\n} from \"../schemas\";\n\n/**\n * Schema for \"my chatrooms\" list item (GET /me/chatrooms response)\n */\nconst lastMessageSchema = z.object({\n  content: z.string(),\n  createdAt: z.string(),\n});\n\nconst myChatroomItemSchema = z.object({\n  id: z.string(),\n  companionId: z.string(),\n  lastMessage: lastMessageSchema.nullable(),\n});\n\nexport interface MyChatroomLastMessage {\n  content: string;\n  createdAt: string;\n}\n\nexport interface MyChatroomItem {\n  id: string;\n  companionId: string;\n  lastMessage: MyChatroomLastMessage | null;\n}\n\n/**\n * Response schema for generate AI response endpoint\n */\nconst generateResponseSchema = z.object({\n  messageId: z.string(),\n  content: z.string(),\n});\n\nexport interface GenerateResponse {\n  messageId: string;\n  content: string;\n}\n\n/**\n * Repository for Chatroom entities\n * Handles chatroom CRUD and message operations\n */\nexport class ChatroomRepository extends BaseCrudRepository<Chatroom> {\n  readonly resource = \"chatrooms\";\n\n  protected getDataSchema() {\n    return chatroomSchema;\n  }\n\n  /**\n   * Get messages from a chatroom\n   * GET /chatrooms/{id}/messages\n   */\n  async getMessages(\n    chatroomId: string,\n    options?: { limit?: number; offset?: number },\n    fetchOptions?: RequestInit,\n  ): Promise<Message[]> {\n    const params = new URLSearchParams();\n    if (options?.limit !== undefined) {\n      params.set(\"limit\", options.limit.toString());\n    }\n    if (options?.offset !== undefined) {\n      params.set(\"offset\", options.offset.toString());\n    }\n\n    const queryString = params.toString();\n    const url = this.apiService.buildUrl(\n      `${this.resource}/${chatroomId}/messages${queryString ? `?${queryString}` : \"\"}`,\n    );\n\n    const rawResponse = await this.apiService.request(url, fetchOptions);\n    return this.validateResponse(rawResponse, z.array(messageSchema));\n  }\n\n  /**\n   * Send a message to a chatroom\n   * POST /chatrooms/{id}/messages\n   *\n   * Anonymous ID is automatically sent via httpOnly cookie.\n   *\n   * @param chatroomId - The chatroom ID\n   * @param content - The message content\n   * @param fetchOptions - Optional fetch options\n   */\n  async sendMessage(\n    chatroomId: string,\n    content: string,\n    fetchOptions?: RequestInit,\n  ): Promise<Message> {\n    const url = this.apiService.buildUrl(\n      `${this.resource}/${chatroomId}/messages`,\n    );\n\n    const rawResponse = await this.apiService.request(url, {\n      ...fetchOptions,\n      method: \"POST\",\n      headers: { \"Content-Type\": \"application/json\" },\n      body: JSON.stringify({ content, senderType: \"USER\" }),\n    });\n\n    return this.validateResponse(rawResponse, messageSchema);\n  }\n\n  /**\n   * Generate AI response for a chatroom with a specific companion\n   * POST /chatrooms/{id}/companions/{companionId}/response\n   */\n  async generateResponse(\n    chatroomId: string,\n    companionId: string,\n    fetchOptions?: RequestInit,\n  ): Promise<GenerateResponse> {\n    const url = this.apiService.buildUrl(\n      `${this.resource}/${chatroomId}/companions/${companionId}/response`,\n    );\n\n    const rawResponse = await this.apiService.request(url, {\n      ...fetchOptions,\n      method: \"POST\",\n      headers: { \"Content-Type\": \"application/json\" },\n    });\n\n    return this.validateResponse(rawResponse, generateResponseSchema);\n  }\n\n  /**\n   * Generate initial AI response for an empty chatroom\n   * POST /chatrooms/{id}/companions/{companionId}/initial-response\n   *\n   * Only works for chatrooms with no messages.\n   * Returns 409 Conflict if the chatroom already has messages.\n   */\n  async generateInitialResponse(\n    chatroomId: string,\n    companionId: string,\n    fetchOptions?: RequestInit,\n  ): Promise<GenerateResponse> {\n    const url = this.apiService.buildUrl(\n      `${this.resource}/${chatroomId}/companions/${companionId}/initial-response`,\n    );\n\n    const rawResponse = await this.apiService.request(url, {\n      ...fetchOptions,\n      method: \"POST\",\n      headers: { \"Content-Type\": \"application/json\" },\n    });\n\n    return this.validateResponse(rawResponse, generateResponseSchema);\n  }\n\n  /**\n   * Get the current user's chatroom list\n   * GET /me/chatrooms\n   */\n  async getMyChatrooms(fetchOptions?: RequestInit): Promise<MyChatroomItem[]> {\n    const url = this.apiService.buildUrl(`me/${this.resource}`);\n    const raw = (await this.apiService.request(url, fetchOptions)) as {\n      data: unknown[];\n    };\n    return myChatroomItemSchema.array().parse(raw.data);\n  }\n}\n","/** Maximum number of members per aidol group */\nexport const MAX_MEMBERS = 25;\n","import { BaseCrudRepository } from \"@aioia/core\";\n\nimport { MAX_MEMBERS } from \"../constants/companion\";\nimport type { CompanionRelationship } from \"../schemas\";\nimport { companionRelationshipSchema } from \"../schemas\";\n\nexport class CompanionRelationshipRepository extends BaseCrudRepository<CompanionRelationship> {\n  readonly resource = \"companion-relationships\";\n\n  protected getDataSchema() {\n    return companionRelationshipSchema;\n  }\n\n  async getByFromCompanionId(fromCompanionId: string) {\n    return this.getList({\n      pagination: { pageSize: MAX_MEMBERS },\n      filters: [\n        { field: \"fromCompanionId\", operator: \"eq\", value: fromCompanionId },\n      ],\n    });\n  }\n\n  async deleteOne(params: {\n    id: string | number;\n  }): Promise<{ data: CompanionRelationship }> {\n    const url = `${this.apiService.buildUrl(this.resource)}/${params.id}`;\n    await this.apiService.request(url, { method: \"DELETE\" });\n    return { data: {} as CompanionRelationship };\n  }\n}\n","import { BaseCrudRepository } from \"@aioia/core\";\n\nimport { MAX_MEMBERS } from \"../constants/companion\";\nimport type {\n  Companion,\n  ImageGenerationRequest,\n  ImageGenerationResponse,\n} from \"../schemas\";\nimport { companionSchema, imageGenerationResponseSchema } from \"../schemas\";\n\n/** CRUD operations use BaseCrudRepository (wrapped { data: T } responses) */\nexport class CompanionRepository extends BaseCrudRepository<Companion> {\n  readonly resource = \"companions\";\n\n  protected getDataSchema() {\n    return companionSchema;\n  }\n\n  /** PUBLISHED 상태의 멤버만 최대 MAX_MEMBERS명까지 조회 */\n  async getByAidolId(aidolId: string) {\n    return this.getList({\n      pagination: { pageSize: MAX_MEMBERS },\n      filters: [\n        { field: \"aidolId\", operator: \"eq\", value: aidolId },\n        { field: \"status\", operator: \"eq\", value: \"PUBLISHED\" },\n      ],\n    });\n  }\n\n  async generateImage(\n    request: ImageGenerationRequest,\n    fetchOptions?: RequestInit,\n  ): Promise<ImageGenerationResponse> {\n    const trimmed = request.prompt.trim();\n    if (!trimmed) {\n      throw new Error(\"promptEmpty\");\n    }\n    if (trimmed.length > 200) {\n      throw new Error(\"promptTooLong\");\n    }\n\n    const url = this.apiService.buildUrl(`${this.resource}/images`);\n    const rawResponse = await this.apiService.request(url, {\n      ...fetchOptions,\n      method: \"POST\",\n      headers: {\n        \"Content-Type\": \"application/json\",\n      },\n      body: JSON.stringify(request),\n    });\n\n    return this.validateResponse(rawResponse, imageGenerationResponseSchema);\n  }\n}\n","import { BaseCrudRepository } from \"@aioia/core\";\n\nimport type { AIdolHighlight, HighlightMessage } from \"../schemas\";\nimport { aidolHighlightSchema, highlightMessageSchema } from \"../schemas\";\n\nexport class HighlightRepository extends BaseCrudRepository<AIdolHighlight> {\n  readonly resource = \"aidol-highlights\";\n\n  protected getDataSchema() {\n    return aidolHighlightSchema;\n  }\n\n  async getByAidolId(aidolId: string) {\n    return this.getList({\n      filters: [{ field: \"aidolId\", operator: \"eq\", value: aidolId }],\n    });\n  }\n\n  async getMessages(\n    highlightId: string,\n    fetchOptions?: RequestInit,\n  ): Promise<{ data: HighlightMessage[] }> {\n    const url = this.apiService.buildUrl(\n      `${this.resource}/${highlightId}/messages`,\n    );\n    const raw = await this.apiService.request(url, fetchOptions);\n    return { data: highlightMessageSchema.array().parse(raw) };\n  }\n}\n","import { z } from \"zod\";\n\nimport type { LeadRequest, LeadResponse } from \"@/schemas\";\nimport { leadResponseSchema } from \"@/schemas\";\nimport type { ApiService } from \"@/services/ApiService\";\n\nexport class LeadsRepository {\n  private readonly resource = \"leads\";\n\n  constructor(private readonly apiService: ApiService) {}\n\n  async create(request: LeadRequest): Promise<LeadResponse> {\n    const url = this.apiService.buildUrl(this.resource);\n    const response = await this.apiService.request(url, {\n      method: \"POST\",\n      headers: { \"Content-Type\": \"application/json\" },\n      body: JSON.stringify(request),\n    });\n\n    const wrapped = z.object({ data: leadResponseSchema }).parse(response);\n    return wrapped.data;\n  }\n}\n","/**\n * Companion daily activity schedule\n * Matches group schedule for inbox activity status display\n */\n\nexport const ACTIVITIES = [\n  \"RESTING\",\n  \"PRACTICING\",\n  \"SHORT_BREAK\",\n  \"RESTING_AT_HOME\",\n] as const;\n\nexport type Activity = (typeof ACTIVITIES)[number];\n\ninterface ScheduleSlot {\n  startHour: number;\n  endHour: number;\n  activity: Activity;\n}\n\nexport const DAILY_SCHEDULE: ScheduleSlot[] = [\n  { startHour: 6, endHour: 12, activity: \"RESTING\" },\n  { startHour: 12, endHour: 17, activity: \"PRACTICING\" },\n  { startHour: 17, endHour: 19, activity: \"SHORT_BREAK\" },\n  { startHour: 19, endHour: 6, activity: \"RESTING_AT_HOME\" },\n];\n","import { type Activity, DAILY_SCHEDULE } from \"@/constants/activity\";\n\nexport type { Activity };\n\n/**\n * Returns the current activity based on the time of day.\n * Handles midnight-crossing slots (e.g., 19:00-06:00).\n */\nexport const getCurrentActivity = (now: Date = new Date()): Activity => {\n  const hour = Number(\n    new Intl.DateTimeFormat(\"en-US\", {\n      timeZone: \"Asia/Seoul\",\n      hour: \"numeric\",\n      hour12: false,\n    }).format(now),\n  );\n\n  for (const slot of DAILY_SCHEDULE) {\n    if (slot.startHour < slot.endHour) {\n      if (hour >= slot.startHour && hour < slot.endHour) {\n        return slot.activity;\n      }\n    } else {\n      // Midnight-crossing slot (e.g., 19:00 - 06:00)\n      if (hour >= slot.startHour || hour < slot.endHour) {\n        return slot.activity;\n      }\n    }\n  }\n\n  throw new Error(\n    \"Could not determine activity for the current time. The schedule may be incomplete.\",\n  );\n};\n","/**\n * Server-safe exports for aidol translations.\n *\n * This module exports only JSON resources and constants,\n * avoiding React-specific code that would break SSR.\n */\n\nimport en from \"./locales/en/aidol.json\";\nimport es from \"./locales/es/aidol.json\";\nimport id from \"./locales/id/aidol.json\";\nimport ja from \"./locales/ja/aidol.json\";\nimport ko from \"./locales/ko/aidol.json\";\nimport th from \"./locales/th/aidol.json\";\nimport tl from \"./locales/tl/aidol.json\";\nimport vi from \"./locales/vi/aidol.json\";\nimport zh from \"./locales/zh/aidol.json\";\n\n/** AIdol namespace */\nexport const AIDOL_NS = \"aidol\";\n\n/**\n * Translation resources for the aidol namespace.\n * Use with i18next.addResourceBundle(lang, 'aidol', translations)\n *\n * @example\n * import { aidolTranslations, AIDOL_NS } from 'aidol/locale';\n *\n * // Add to existing i18n instance\n * Object.entries(aidolTranslations).forEach(([lang, resources]) => {\n *   i18n.addResourceBundle(lang, AIDOL_NS, resources);\n * });\n */\nexport const aidolTranslations = {\n  en,\n  es,\n  id,\n  ja,\n  ko,\n  th,\n  tl,\n  vi,\n  zh,\n};\n"],"names":["AIdolRepository","BaseCrudRepository","aidolSchema","variables","url","raw","aidolCreateResponseSchema","fetchOptions","request","rawResponse","imageGenerationResponseSchema","lastMessageSchema","z","myChatroomItemSchema","generateResponseSchema","ChatroomRepository","chatroomSchema","chatroomId","options","params","queryString","messageSchema","content","companionId","MAX_MEMBERS","CompanionRelationshipRepository","companionRelationshipSchema","fromCompanionId","CompanionRepository","companionSchema","aidolId","trimmed","HighlightRepository","aidolHighlightSchema","highlightId","highlightMessageSchema","LeadsRepository","apiService","response","leadResponseSchema","DAILY_SCHEDULE","getCurrentActivity","now","hour","slot","AIDOL_NS","aidolTranslations","en","es","id","ja","ko","th","tl","vi","zh"],"mappings":"gKAeO,MAAMA,UAAwBC,EAAAA,kBAA0B,CAAxD,aAAA,CAAA,MAAA,GAAA,SAAA,EACL,KAAS,SAAW,QAAA,CAEV,eAAgB,CACxB,OAAOC,EAAAA,WACT,CAEA,MAAM,YAAYC,EAAsD,CACtE,MAAMC,EAAM,KAAK,WAAW,SAAS,KAAK,QAAQ,EAC5CC,EAAO,MAAM,KAAK,WAAW,QAAQD,EAAK,CAC9C,OAAQ,OACR,QAAS,CAAE,eAAgB,kBAAA,EAC3B,KAAM,KAAK,UAAUD,CAAS,CAAA,CAC/B,EACD,OAAOG,4BAA0B,MAAMD,EAAI,IAAI,CACjD,CAEA,MAAM,MAAME,EAAwD,CAClE,MAAMH,EAAM,KAAK,WAAW,SAAS,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