PG→Mongo Ingest CLI - v1.0.0
    Preparing search index...

    Interface Chat

    interface Chat {
        schemaVersion: 1;
        tenantId: string;
        chatId: string;
        version: number;
        state: "closed" | "virgin" | "active" | "inactive" | "archived";
        createdAt: string;
        lastActivityAt: string;
        participants: { userIds: string[]; agentIds: string[]; botIds: string[] };
        connections: {
            channel:
                | "whatsapp"
                | "telegram"
                | "instagram"
                | "twilio_sms"
                | "twilio_rcs"
                | "chatwoot"
                | "email"
                | "webhook"
                | "system"
                | "other";
            providerConversationId: string;
        }[];
        memory: Record<string, unknown>;
        cursor: {
            last_ts_seconds: null | number;
            last_message_id: null | string;
            updated_at: string;
            imported_count: number;
        };
        message_count: number;
        participant_count: number;
        first_ts: string;
        last_ts: string;
        top_senders: { contact_id: string; count: number }[];
    }
    Index

    Properties

    schemaVersion: 1
    tenantId: string
    chatId: string
    version: number
    state: "closed" | "virgin" | "active" | "inactive" | "archived"
    createdAt: string
    lastActivityAt: string
    participants: { userIds: string[]; agentIds: string[]; botIds: string[] }
    connections: {
        channel:
            | "whatsapp"
            | "telegram"
            | "instagram"
            | "twilio_sms"
            | "twilio_rcs"
            | "chatwoot"
            | "email"
            | "webhook"
            | "system"
            | "other";
        providerConversationId: string;
    }[]
    memory: Record<string, unknown>
    cursor: {
        last_ts_seconds: null | number;
        last_message_id: null | string;
        updated_at: string;
        imported_count: number;
    }
    message_count: number
    participant_count: number
    first_ts: string
    last_ts: string
    top_senders: { contact_id: string; count: number }[]