Interface Conversation

interface Conversation {
    autoTranslation: null | [string, string];
    botId: string;
    channel: {
        type: string;
        userKey: string;
    };
    conversationData: null | object;
    direction: null | "inbound" | "outbound";
    id: string;
    isWatched: boolean;
    lastSeenAt: null | string;
    lastUserMessage: null | string;
    lastUserMessageDate: null | string;
    locale: string;
    operator: null | StudioUser;
    operatorJoined: boolean;
    organisationId: string;
    tags: string[];
    unread: null | {
        lastSeenAt: null | string;
        newMessageCount: number;
    };
    user: {
        firstName: string;
        id: string;
        lastName: string;
        locale: string;
        presence?: {
            status: "away" | "online" | "offline";
        };
        profilePicture: string;
        tags: string[];
        timezone: string;
        userData: null | object;
    };
}

Properties

autoTranslation: null | [string, string]
botId: string
channel: {
    type: string;
    userKey: string;
}

Type declaration

  • type: string
  • userKey: string
conversationData: null | object
direction: null | "inbound" | "outbound"
id: string
isWatched: boolean
lastSeenAt: null | string
lastUserMessage: null | string
lastUserMessageDate: null | string
locale: string
operator: null | StudioUser
operatorJoined: boolean
organisationId: string
tags: string[]
unread: null | {
    lastSeenAt: null | string;
    newMessageCount: number;
}

Type declaration

  • lastSeenAt: null | string
  • newMessageCount: number
user: {
    firstName: string;
    id: string;
    lastName: string;
    locale: string;
    presence?: {
        status: "away" | "online" | "offline";
    };
    profilePicture: string;
    tags: string[];
    timezone: string;
    userData: null | object;
}

Type declaration

  • firstName: string
  • id: string
  • lastName: string
  • locale: string
  • Optional presence?: {
        status: "away" | "online" | "offline";
    }
    • status: "away" | "online" | "offline"
  • profilePicture: string
  • tags: string[]
  • timezone: string
  • userData: null | object

Generated using TypeDoc