feat(characters): support character-scoped conversations
This commit is contained in:
@@ -3,13 +3,14 @@ import {
|
||||
PrivateAlbumUnlockResponse,
|
||||
UnlockPrivateAlbumRequest,
|
||||
} from "@/data/dto/private-room";
|
||||
import { DEFAULT_CHARACTER_ID } from "@/data/constants/character";
|
||||
|
||||
import { ApiPath } from "./api_path";
|
||||
import { httpClient } from "./http_client";
|
||||
import { type ApiEnvelope, unwrap } from "./response_helper";
|
||||
|
||||
export interface GetPrivateAlbumsInput {
|
||||
character?: string;
|
||||
characterId?: string;
|
||||
limit?: number;
|
||||
}
|
||||
|
||||
@@ -21,7 +22,7 @@ export class PrivateRoomApi {
|
||||
ApiPath.privateRoomAlbums,
|
||||
{
|
||||
query: {
|
||||
character: input.character ?? "elio",
|
||||
characterId: input.characterId ?? DEFAULT_CHARACTER_ID,
|
||||
limit: input.limit ?? 20,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user