@progress/kendo-angular-conversational-ui
Version:
Kendo UI for Angular Conversational UI components
106 lines (105 loc) • 2.58 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
/**
* Defines the model fields that will be used for creating `Message` instances.
*/
export interface ConversationalUIModelFields {
/**
* Field name for message ID.
*
* @default "id"
*/
idField?: string;
/**
* Field name for message text content.
*
* @default "text"
*/
textField?: string;
/**
* Field name for message author ID.
*
* @default "authorId"
*/
authorIdField?: string;
/**
* Field name for message author name (when flattened in data source).
*
* @default "authorName"
*/
authorNameField?: string;
/**
* Field name for message author avatar URL (when flattened in data source).
*
* @default "authorImageUrl"
*/
authorImageUrlField?: string;
/**
* Field name for alt text of the author's avatar (when flattened in data source).
*
* @default "authorImageAltText"
*/
authorImageAltTextField?: string;
/**
* Field name for message timestamp.
*
* @default "timestamp"
*/
timestampField?: string;
/**
* Field name for message status.
*
* @default "status"
*/
statusField?: string;
/**
* Field name for file attachments.
*
* @default "files"
*/
filesField?: string;
/**
* Field name for message attachments.
*
* @default "attachments"
*/
attachmentsField?: string;
/**
* Field name for message attachment layout.
*
* @default "attachmentLayout"
*/
attachmentLayoutField?: string;
/**
* Field name for suggested actions.
*
* @default "suggestedActions"
*/
suggestedActionsField?: string;
/**
* Field name for message pinned status.
*
* @default "isPinned"
*/
isPinnedField?: string;
/**
* Field name for reply-to message ID.
*
* @default "replyToId"
*/
replyToIdField?: string;
/**
* Field name for message deletion status.
*
* @default "isDeleted"
*/
isDeletedField?: string;
/**
* Field name for the typing indicator.
*
* @default "typing"
*/
typingField?: string;
}