/** * Event kind definitions and mappings * * Matches crate admission/src/mapping.rs - public event_kind strings and their * translation to internal RawEventKind and EventSource. */ import type { EventSource } from "./source"; /** * Event kind strings (event_kind in CreateEventApiRequest). * Accepted by server; maps to RawEventKind via mapping.rs. */ export type EventKind = "fact" | "knowledge" | "observation" | "learned" | "constraint" | "rule" | "constraint_violation" | "feedback" | "action" | "task" | "operation" | "execution" | "completed" | "decision" | "choice" | "selection" | "determination" | "routine" | "heartbeat" | "status" | "noise" | "debug" | "log" | string; /** * Internal event kinds (matches RawEventKind) */ export type RawEventKind = "knowledge_recorded" | "constraint" | "rule" | "constraint_violation" | "action_completed" | "decision_made" | "routine_operation" | "noise"; export type { EventSource } from "./source"; /** * Event kind to raw kind mapping (matches mapping.rs kind_map) */ export declare const EVENT_KIND_MAP: Record; /** * Event kind to source mapping (matches mapping.rs source_map) */ export declare const EVENT_SOURCE_MAP: Record; /** * Get raw event kind for a given event kind string */ export declare function getRawEventKind(eventKind: string): RawEventKind; /** * Get event source for a given event kind string */ export declare function getEventSource(eventKind: string): EventSource;