import { request } from "#lib/api/client.js"; import type { Annotation } from "#lib/api/types.js"; export interface Note extends Annotation { chat_has_avatar: boolean; chat_title: string | null; message_date: string | null; message_deleted: boolean; message_has_media: boolean; message_text: string | null; } export interface NoteTag { count: number; tag: string; } export function listNotes( tag: string | null, offset: number, limit: number ): Promise { return request("/annotations/notes", { account: true, query: { limit, offset, tag }, }); } export function listNoteTags(): Promise { return request("/annotations/tags", { account: true }); }