UNPKG

@adventurelabs/scout-core

Version:

Core utilities and helpers for Adventure Labs Scout applications

13 lines (12 loc) 576 B
import { IWebResponseCompatible } from "../types/requests"; import { TablesInsert } from "../types/supabase"; export type ChatMessageInsert = TablesInsert<"chat">; export declare function server_insert_chat_message(message: string, herd_id: number, sender?: string): Promise<IWebResponseCompatible<{ id: number; }>>; export declare function server_get_chat_messages(limit: number | undefined, offset: number | undefined, herd_id: number): Promise<IWebResponseCompatible<Array<{ id: number; message: string; sender: string | null; created_at: string; }>>>;