@pwngh/economy-lab
    Preparing search index...

    Interface EconomyEvent

    The fixed shape of every event the system emits. An audience: 'client' event is pushed out to connected clients over the WebSocket.

    interface EconomyEvent {
        audience: "internal" | "client";
        data: Record<string, unknown>;
        id: string;
        occurredAt: number;
        subject: string;
        type: string;
        version: number;
    }
    Index
    audience: "internal" | "client"
    data: Record<string, unknown>
    id: string
    occurredAt: number
    subject: string

    What the event is about: a user id (usr_...) or transaction id (txn_...).

    type: string

    The event name, e.g. 'economy.sale.completed'.

    version: number

    Schema version of this event's shape, currently 1.