Caravan Documentation
    Preparing search index...

    Type Alias Message

    Represents a message returned by an interaction.

    Message objects may have additional properties.

    type Message = {
        action?: string;
        code?: string;
        image?: MessageImage;
        level?: string;
        messages?: Message[];
        postProcessingTime?: number;
        preProcessingTime?: number;
        state?: typeof STATES extends readonly (infer ElementType)[]
            ? ElementType
            : never;
        text?: string;
        version?: string;
    }
    Index

    Properties

    action?: string
    code?: string
    image?: MessageImage
    level?: string
    messages?: Message[]
    postProcessingTime?: number
    preProcessingTime?: number
    state?: typeof STATES extends readonly (infer ElementType)[]
        ? ElementType
        : never
    text?: string
    version?: string