/** Stable board document kind, question cards, and message admission event. */ import { defineEvent } from "@earendil-works/sausage-events" export const MessagesDoc = {kind: "board"} export type Via = {conversation: number; entry?: number} export type Question = { text: string kind: 'choice' | 'multi' | 'confirm' | 'text' | 'scale' ref?: string options?: { label: string detail?: string recommended?: boolean key?: string preview?: string }[] scale?: { min: number; max: number; low?: string; high?: string } placeholder?: string } export const MessageSent = defineEvent<{ message: number from: number | 'user' to: number | 'user' reply: boolean steer: boolean }>('board.sent')