@cometchat/chat-uikit-react
Version:
Ready-to-use Chat UI Components for React(Javascript/Web)
178 lines (177 loc) • 6.18 kB
TypeScript
export declare class CometChatUIKitConstants {
static MessageCategory: Readonly<{
message: string;
custom: string;
action: string;
call: string;
interactive: string;
agentic: import("@cometchat/chat-sdk-javascript").MessageCategory.AGENTIC;
}>;
static moderationStatus: Readonly<{
pending: import("@cometchat/chat-sdk-javascript").ModerationStatus.PENDING;
approved: import("@cometchat/chat-sdk-javascript").ModerationStatus.APPROVED;
disapproved: import("@cometchat/chat-sdk-javascript").ModerationStatus.DISAPPROVED;
unmoderated: import("@cometchat/chat-sdk-javascript").ModerationStatus.UNMODERATED;
}>;
static MessageTypes: Readonly<{
text: string;
file: string;
image: string;
audio: string;
video: string;
delete: "delete";
edited: "edited";
groupMember: "groupMember";
form: "form";
card: "card";
customInteractive: "customInteractive";
scheduler: "scheduler";
assistant: string;
toolArguments: string;
toolResults: string;
}>;
static groupMemberAction: Readonly<{
ROLE: "role";
BLOCK: "block";
REMOVE: "remove";
JOINED: string;
LEFT: string;
ADDED: string;
BANNED: string;
UNBANNED: string;
KICKED: string;
INVITED: string;
SCOPE_CHANGE: string;
}>;
static MessageReceiverType: Readonly<{
user: string;
group: string;
}>;
static userStatusType: Readonly<{
online: string;
offline: string;
}>;
static MessageOption: Readonly<{
editMessage: "edit";
deleteMessage: "delete";
replyMessage: "reply";
replyInThread: "replyInThread";
translateMessage: "translate";
reactToMessage: "react";
messageInformation: "messageInformation";
flagMessage: "flagMessage";
copyMessage: "copy";
shareMessage: "share";
forwardMessage: "forward";
sendMessagePrivately: "sendMessagePrivately";
replyMessagePrivately: "replyMessagePrivately";
}>;
static GroupOptions: Readonly<{
leave: "leave";
delete: "delete";
viewMembers: "viewMembers";
addMembers: "addMembers";
bannedMembers: "bannedMembers";
}>;
static GroupMemberOptions: Readonly<{
kick: "kick";
ban: "ban";
unban: "unban";
changeScope: "changeScope";
}>;
static groupMemberScope: Readonly<{
owner: "owner";
admin: string;
participant: string;
moderator: string;
}>;
static UserOptions: Readonly<{
block: "block";
unblock: "unblock";
viewProfile: "viewProfile";
}>;
static ConversationOptions: Readonly<{
delete: "delete";
}>;
static GroupTypes: Readonly<{
private: string;
password: string;
public: string;
}>;
static liveReaction: Readonly<{
timeout: 1500;
}>;
static messages: Readonly<{
MESSAGE_DELIVERED: "onMessagesDelivered";
MESSAGE_READ: "onMessagesRead";
MESSAGE_DELETED: "onMessageDeleted";
MESSAGE_EDITED: "onMessageEdited";
MESSAGE_SENT: "messageSent";
TEXT_MESSAGE_RECEIVED: "onTextMessageReceived";
MEDIA_MESSAGE_RECEIVED: "onMediaMessageReceived";
CUSTOM_MESSAGE_RECEIVED: "onCustomMessageReceived";
TRANSIENT_MESSAGE_RECEIVED: "onTransientMessageReceived";
INTERACTIVE_MESSAGE_RECEIVED: "onInteractiveMessageReceived";
DELIVERY: "delivery";
READ: "read";
APP_SYSTEM: "app_system";
MESSAGE_REACTION_ADDED: "onMessageReactionAdded";
MESSAGE_REACTION_REMOVED: "onMessageReactionRemoved";
}>;
static details: Readonly<{
primary: "primary";
secondary: "secondary";
}>;
static calls: Readonly<{
meeting: "meeting";
ongoing: string;
ended: string;
initiated: string;
cancelled: string;
rejected: string;
unanswered: string;
busy: string;
activecall: "cometchat:activecall";
default: string;
grid: string;
single: string;
spotlight: string;
tile: string;
}>;
static goalType: Readonly<{
allOf: import("@cometchat/chat-sdk-javascript").GoalType.ALL_OF;
anyOf: import("@cometchat/chat-sdk-javascript").GoalType.ANY_OF;
anyAction: import("@cometchat/chat-sdk-javascript").GoalType.ANY_ACTION;
none: import("@cometchat/chat-sdk-javascript").GoalType.NONE;
}>;
static requestBuilderLimits: Readonly<{
reactionListLimit: 10;
reactionInfoLimit: 10;
messageListLimit: 30;
usersLimit: 30;
groupsLimit: 30;
}>;
static radioNames: Readonly<{
conversations: "conversations";
users: "users";
groups: "groups";
changeScope: "changeScope";
groupMembers: "groupMembers";
}>;
static mimeTypes: Readonly<{
audio: "audio/*, .aac, .aif, .aiff, .caf, .mp3, .mp4, .wav, .m4a, .wma, .flac, .alac, .oga, .ra, .ram, .mid, .midi, .mka, .opus, .ac3, .amr, .ape, .dts, .wv, .tta, .pcm, .snd, .au, .cda, .vox, .m4b, .m3u, .pls, .ogg";
video: "video/*, .mov, .mp4, .m4v, .avi, .mpg, .mpeg, .m2ts, .mts, .3gp, .3g2, .flv, .wmv, .vob, .ts, .webm, .f4v, .f4a, .f4b, .swf, .rm, .rmvb, .divx, .xvid, .mxf, .asf, .amv, .smv, .avchd, .qt";
image: "image/*, .heic, .heif, .jpg, .jpeg, .png, .gif, .bmp, .tiff, .tif, .psd, .svg, .ico, .raw, .dng, .eps, .webp, .jfif, .jp2, .jpf, .jpx, .jpm, .mj2, .hdr, .exr, .pbm, .pgm, .ppm, .pnm, .tga, .dds, .svgz, .djvu, .ai, .cdr";
}>;
static streamMessageTypes: Readonly<{
run_started: string;
text_message_start: string;
text_message_content: string;
text_message_end: string;
run_finished: string;
tool_call_start: string;
tool_call_end: string;
tool_call_args: string;
tool_call_result: string;
}>;
}