/**
 * How often a record was put in front of an agent, and how often one then
 * opened it in full.
 *
 * One shape for every record kind the retrieval surfaces can choose. Snippets
 * and notes are counted in `note_usage_events`; rules in `rule_usage_events`,
 * which is a separate table because a note id and a rule id are different
 * namespaces resolved through different maps at restore (milestone 333). The
 * TABLES are separate for that reason; the READOUT is the same question, so
 * the client type is one.
 *
 * A high `surfaced_count` with `pull_count: 0` is dead weight — it occupies a
 * slot in every future menu while never being used. What to DO about that
 * differs by kind, which is why the advice is a prop on the badge rather than
 * a property of this type: a snippet nobody opens should probably be deleted,
 * while a rule nobody opens may just be mis-triggered.
 */
export interface RecordUsage {
  surfaced_count: number;
  pull_count: number;
  last_surfaced_at: string | null;
  last_pulled_at: string | null;
}
