Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Item

import type { Item } from "https://aws-api.deno.dev/v0.4/services/connectparticipant.ts?docs=full";

An item - message or event - that has been sent.

interface Item {
AbsoluteTime?: string | null;
Attachments?: AttachmentItem[] | null;
ContactId?: string | null;
Content?: string | null;
ContentType?: string | null;
DisplayName?: string | null;
Id?: string | null;
MessageMetadata?: MessageMetadata | null;
ParticipantId?: string | null;
ParticipantRole?: ParticipantRole | null;
RelatedContactId?: string | null;
Type?: ChatItemType | null;
}

§Properties

§
AbsoluteTime?: string | null
[src]

The time when the message or event was sent.

It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

§
Attachments?: AttachmentItem[] | null
[src]

Provides information about the attachments.

§
ContactId?: string | null
[src]

The contactId on which the transcript item was originally sent. This field is populated only when the transcript item is from the current chat session.

§
Content?: string | null
[src]

The content of the message or event.

§
ContentType?: string | null
[src]

The type of content of the item.

§
DisplayName?: string | null
[src]

The chat display name of the sender.

§
Id?: string | null
[src]

The ID of the item.

§
MessageMetadata?: MessageMetadata | null
[src]

The metadata related to the message. Currently this supports only information related to message receipts.

§
ParticipantId?: string | null
[src]

The ID of the sender in the session.

§
ParticipantRole?: ParticipantRole | null
[src]

The role of the sender. For example, is it a customer, agent, or system.

§
RelatedContactId?: string | null
[src]

The contactId on which the transcript item was originally sent. This field is only populated for persistent chats when the transcript item is from the past chat session. For more information, see Enable persistent chat.

§
Type?: ChatItemType | null
[src]

Type of the item: message or event.