@@ -300,7 +300,7 @@ export class CometChat {
300300 } ;
301301 SESSION_ID_REQUIRED : {
302302 code : string ;
303- /** @internal */ name : string ;
303+ name : string ;
304304 message : string ;
305305 details : { } ;
306306 } ;
@@ -493,6 +493,7 @@ export class CometChat {
493493 CORE_CONVERSATIONS_UPDATE_ON_GROUP_ACTIONS : string ;
494494 CORE_CONVERSATIONS_UPDATE_ON_CUSTOM_MESSAGES : string ;
495495 CORE_CONVERSATIONS_UPDATE_ON_REPLIES : string ;
496+ FLAG_REASONS : string ;
496497 } ;
497498 } ;
498499 static GroupConstants : {
@@ -2072,6 +2073,26 @@ export class CometChat {
20722073 * @return A ConversationUpdateSettings object that holds the settings for updating the conversation.
20732074 */
20742075 static getConversationUpdateSettings ( ) : Promise < ConversationUpdateSettings > ;
2076+ /**
2077+ * Fetches the list of flag reasons configured in the CometChat Dashboard.
2078+ * @returns {Promise<FlagReason[]> }
2079+ * @memberof CometChat
2080+ */
2081+ static getFlagReasons ( ) : Promise < FlagReason [ ] > ;
2082+ /**
2083+ * Allows users to flag a message with a specific reason and an optional remark.
2084+ * @param {string } messageId
2085+ * @param {{ reasonId?: string; remark?: string } } payload
2086+ * @returns {Promise<{ success: boolean; message: string }> }
2087+ * @memberof CometChat
2088+ */
2089+ static flagMessage ( messageId : string , payload : {
2090+ reasonId : string ;
2091+ remark ?: string ;
2092+ } ) : Promise < {
2093+ success : boolean ;
2094+ message : string ;
2095+ } > ;
20752096}
20762097
20772098export class CometChatNotifications {
@@ -3894,6 +3915,7 @@ export const APP_SETTINGS: {
38943915 CORE_CONVERSATIONS_UPDATE_ON_GROUP_ACTIONS : string ;
38953916 CORE_CONVERSATIONS_UPDATE_ON_CUSTOM_MESSAGES : string ;
38963917 CORE_CONVERSATIONS_UPDATE_ON_REPLIES : string ;
3918+ FLAG_REASONS : string ;
38973919 } ;
38983920} ;
38993921export const COMMON_UTILITY_CONSTANTS : {
@@ -4002,6 +4024,14 @@ export const AI_ASSISTANT_EVENTS: {
40024024 TOOL_CALL_RESULT : string ;
40034025 TOOL_CALL_ARGUMENT : string ;
40044026} ;
4027+ export interface FlagReason {
4028+ id : string ;
4029+ name : string ;
4030+ description : string ;
4031+ default ?: boolean ;
4032+ createdAt : number ;
4033+ updatedAt : number ;
4034+ }
40054035
40064036/**
40074037 *
@@ -4523,12 +4553,6 @@ export class Call extends BaseMessage implements Message {
45234553 MEDIA : string ;
45244554 IMAGE : string ;
45254555 VIDEO : string ;
4526- AUDIO : string ;
4527- FILE : string ;
4528- CUSTOM : string ;
4529- ASSISTANT : string ;
4530- TOOL_RESULT : string ;
4531- TOOL_ARGUMENTS : string ;
45324556 } ;
45334557 static readonly RECEIVER_TYPE : {
45344558 USER : string ;
@@ -4540,7 +4564,6 @@ export class Call extends BaseMessage implements Message {
45404564 CALL : string ;
45414565 CUSTOM : string ;
45424566 INTERACTIVE : string ;
4543- AGENTIC : string ;
45444567 } ;
45454568 static readonly ACTION_TYPE : {
45464569 TYPE_MEMBER_JOINED : string ;
0 commit comments