/** * aicu.cc API */ export declare namespace Aicu { /** * Root API response * * @example * { * code: 0, * data: { ... }, * message: "", * ttl: 1 * } * @link https://api.aicu.cc/api/v3/search/getlivedm?uid=32210417&pn=1&ps=100&keyword= */ export interface LiveDm { /** Status code, 0 indicates success */ code: number /** Main payload */ data: { /** * List of room + danmu records * * @example * [ * { * roominfo: { ... }, * danmu: [ ... ] * } * ] */ list: { /** * Room metadata * * @example * { * upname: "五条悟跳舞", * upuid: "32210417", * roomid: "2156755", * roomname: "让俺移动端看看怎么个事儿" * } */ roominfo: { /** Streamer display name */ upname: string /** Streamer UID (stringified number) */ upuid: string /** Room ID (stringified number) */ roomid: string /** Room title */ roomname: string } /** * Danmu (chat messages) sent in this room * * @example * [ * { uname: "五条悟跳舞", text: "666", ts: 1766410063 } * ] */ danmu: { /** Username of the sender */ uname: string /** * Message content * Can be plain text or emoticon codes like "[Icomochi_萌萌]" */ text: string /** * Unix timestamp (seconds) * * @example * 1767347950 */ ts: number }[] }[] /** * Pagination cursor info * * @example * { * is_end: false, * all_count: 180 * } */ cursor: { /** * Whether this is the last page * * @example false */ is_end: boolean /** * Total available records * * @example 180 */ all_count: number } } /** Optional message, usually empty on success */ message: string /** Cache TTL in seconds */ ttl: number } }