/**
 * Generated by orval v8.19.0 🍺
 * Do not edit manually.
 * Webitel API
 * OpenAPI spec version: 24.04.0
 */
import type { WebitelImApiGatewayV1Document } from './webitelImApiGatewayV1Document';
import type { WebitelImApiGatewayV1HistoryMessageMetadata } from './webitelImApiGatewayV1HistoryMessageMetadata';
import type { WebitelImApiGatewayV1Image } from './webitelImApiGatewayV1Image';
import type { WebitelImApiGatewayV1Interactive } from './webitelImApiGatewayV1Interactive';
import type { WebitelImApiGatewayV1InteractiveCallback } from './webitelImApiGatewayV1InteractiveCallback';
import type { WebitelImApiGatewayV1MessageContact } from './webitelImApiGatewayV1MessageContact';
import type { WebitelImApiGatewayV1MessageLocation } from './webitelImApiGatewayV1MessageLocation';
import type { WebitelImApiGatewayV1System } from './webitelImApiGatewayV1System';
import type { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
/**
 * HistoryMessage represents a single message
 * in thread history.
 */
export interface WebitelImApiGatewayV1HistoryMessage {
    /** Message body content. */
    body?: string;
    contact?: WebitelImApiGatewayV1MessageContact;
    /** Message creation timestamp (Unix time, milliseconds). */
    createdAt?: string;
    /** List of document attachments. */
    documents?: WebitelImApiGatewayV1Document[];
    /** Message last update timestamp (Unix time, milliseconds). */
    editedAt?: string;
    /** Unique message identifier. */
    id?: string;
    /** List of image attachments. */
    images?: WebitelImApiGatewayV1Image[];
    interactive?: WebitelImApiGatewayV1Interactive;
    location?: WebitelImApiGatewayV1MessageLocation;
    /**
     * Arbitrary message metadata.
     * Can contain structured data depending on message type.
     */
    metadata?: WebitelImApiGatewayV1HistoryMessageMetadata;
    /** Metadata for button reaction for interactive message. */
    reactedMetadata?: WebitelImApiGatewayV1InteractiveCallback;
    /** Sender user aggregated information. */
    sender?: WebitelImApiGatewayV1ThreadMember;
    /** System message content. */
    system?: WebitelImApiGatewayV1System;
    /** Identifier of the thread the message belongs to. */
    threadId?: string;
    /** Message type identifier. */
    type?: number;
}
