From b2c469d46fdb644d20de3f69657e39d74021391c Mon Sep 17 00:00:00 2001 From: "sachin.cometchat" Date: Fri, 12 Sep 2025 16:39:30 +0530 Subject: [PATCH 1/4] Added the OAS for quotedMessage --- chat-apis.json | 32 ++++++++++++++++++++++++++++++++ data-import-apis.json | 8 ++++++++ 2 files changed, 40 insertions(+) diff --git a/chat-apis.json b/chat-apis.json index a0905001..4ad84f57 100644 --- a/chat-apis.json +++ b/chat-apis.json @@ -2457,6 +2457,14 @@ "schema": { "type": "integer" } + }, + { + "name": "hideQuotedMessages", + "in": "query", + "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the primary messages without any quoted message objects.", + "schema": { + "type": "boolean" + } } ], "responses": { @@ -8001,6 +8009,14 @@ "type": "string" } } + }, + { + "name": "hideQuotedMessages", + "in": "query", + "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the primary messages without any quoted message objects.", + "schema": { + "type": "boolean" + } } ], "responses": { @@ -8471,6 +8487,14 @@ "type": "string" } } + }, + { + "name": "hideQuotedMessages", + "in": "query", + "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the primary messages without any quoted message objects.", + "schema": { + "type": "boolean" + } } ], "responses": { @@ -17116,6 +17140,14 @@ "message" ] }, + "quotedMessageId": { + "description": "ID of the message being quoted.\nIf provided, the send message response will include a `quotedMessage` node\nin the response containing the referenced message object.", + "type": "string", + "default": "message", + "enum": [ + "message" + ] + }, "type": { "description": "Type of the message. The available values are text, image, file, audio, video.", "type": "string", diff --git a/data-import-apis.json b/data-import-apis.json index 0287fd86..c0b1a75f 100644 --- a/data-import-apis.json +++ b/data-import-apis.json @@ -3798,6 +3798,14 @@ "message" ] }, + "quotedMessageId": { + "description": "ID of the message being quoted.\nIf provided, the send message response will include a `quotedMessage` node\nin the response containing the referenced message object.", + "type": "string", + "default": "message", + "enum": [ + "message" + ] + }, "type": { "description": "Type of the message. The available values are text, image, file, audio, video.", "type": "string", From 9a0427fc0494c66438944eb3600841a607d7e43c Mon Sep 17 00:00:00 2001 From: "sachin.cometchat" Date: Fri, 12 Sep 2025 17:03:07 +0530 Subject: [PATCH 2/4] Added the OAS for quotedMessage --- chat-apis.json | 52 +++++++++---------------------------------- data-import-apis.json | 8 +++++++ 2 files changed, 18 insertions(+), 42 deletions(-) diff --git a/chat-apis.json b/chat-apis.json index 4ad84f57..58e9c34b 100644 --- a/chat-apis.json +++ b/chat-apis.json @@ -9162,21 +9162,13 @@ "notifyForUnreadOnly": true, "intervalInSeconds": 7200, "maxPerDay": 20, - "maxPerDayPerConversation": 2, - "includeMessageObjectSetting": false, - "includeSenderMetadataSetting": true, - "includeReceiverMetadataSetting": true, - "includeMessageMetadataSetting": true + "maxPerDayPerConversation": 2 }, "sms": { "notifyForUnreadOnly": true, "intervalInSeconds": 7200, "maxPerDay": 20, - "maxPerDayPerConversation": 2, - "includeMessageObjectSetting": false, - "includeSenderMetadataSetting": true, - "includeReceiverMetadataSetting": true, - "includeMessageMetadataSetting": true + "maxPerDayPerConversation": 2 }, "push": { "includeMessageObjectSetting": false, @@ -16121,6 +16113,14 @@ "custom" ] }, + "quotedMessageId": { + "description": "ID of the message being quoted.\nIf provided, the send message response will include a `quotedMessage` node\nin the response containing the referenced message object.", + "type": "string", + "default": "message", + "enum": [ + "message" + ] + }, "type": { "description": "Type of the message.", "type": "string" @@ -16218,22 +16218,6 @@ }, "maxPerDayPerConversation": { "type": "integer" - }, - "includeMessageObjectSetting": { - "description": "Includes the message object in the email payload", - "type": "boolean" - }, - "includeSenderMetadataSetting": { - "description": "Includes sender metadata in the message object", - "type": "boolean" - }, - "includeReceiverMetadataSetting": { - "description": "Includes receiver metadata in the message object", - "type": "boolean" - }, - "includeMessageMetadataSetting": { - "description": "Includes message metadata in the message object", - "type": "boolean" } }, "type": "object" @@ -18060,22 +18044,6 @@ }, "maxPerDayPerConversation": { "type": "integer" - }, - "includeMessageObjectSetting": { - "description": "Includes the message object in the SMS payload", - "type": "boolean" - }, - "includeSenderMetadataSetting": { - "description": "Includes sender metadata in the message object", - "type": "boolean" - }, - "includeReceiverMetadataSetting": { - "description": "Includes receiver metadata in the message object", - "type": "boolean" - }, - "includeMessageMetadataSetting": { - "description": "Includes message metadata in the message object", - "type": "boolean" } }, "type": "object" diff --git a/data-import-apis.json b/data-import-apis.json index c0b1a75f..00617fcf 100644 --- a/data-import-apis.json +++ b/data-import-apis.json @@ -2795,6 +2795,14 @@ "custom" ] }, + "quotedMessageId": { + "description": "ID of the message being quoted.\nIf provided, the send message response will include a `quotedMessage` node\nin the response containing the referenced message object.", + "type": "string", + "default": "message", + "enum": [ + "message" + ] + }, "type": { "description": "Type of the message.", "type": "string" From c06e84775328f70a23955d1b4f2d0826ee4bdc78 Mon Sep 17 00:00:00 2001 From: "sachin.cometchat" Date: Mon, 15 Sep 2025 13:03:21 +0530 Subject: [PATCH 3/4] Fixed documentation changes --- chat-apis.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chat-apis.json b/chat-apis.json index 58e9c34b..94768949 100644 --- a/chat-apis.json +++ b/chat-apis.json @@ -2461,7 +2461,7 @@ { "name": "hideQuotedMessages", "in": "query", - "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the primary messages without any quoted message objects.", + "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the messages without any quoted message objects.", "schema": { "type": "boolean" } @@ -8013,7 +8013,7 @@ { "name": "hideQuotedMessages", "in": "query", - "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the primary messages without any quoted message objects.", + "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the messages without any quoted message objects.", "schema": { "type": "boolean" } @@ -8491,7 +8491,7 @@ { "name": "hideQuotedMessages", "in": "query", - "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the primary messages without any quoted message objects.", + "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the referenced messages without any quoted message objects.", "schema": { "type": "boolean" } From 8eccc3e628d665f209e904c9a8594b09a4d90487 Mon Sep 17 00:00:00 2001 From: "sachin.cometchat" Date: Tue, 16 Sep 2025 14:43:26 +0530 Subject: [PATCH 4/4] Fixed the description for messages listing --- chat-apis.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chat-apis.json b/chat-apis.json index 94768949..759c8cdc 100644 --- a/chat-apis.json +++ b/chat-apis.json @@ -2461,7 +2461,7 @@ { "name": "hideQuotedMessages", "in": "query", - "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the messages without any quoted message objects.", + "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the messages without any quoted messages.", "schema": { "type": "boolean" } @@ -8013,7 +8013,7 @@ { "name": "hideQuotedMessages", "in": "query", - "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the messages without any quoted message objects.", + "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the messages without any quoted messages.", "schema": { "type": "boolean" } @@ -8491,7 +8491,7 @@ { "name": "hideQuotedMessages", "in": "query", - "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the referenced messages without any quoted message objects.", + "description": "If set to true, the API response will exclude all quotedMessage nodes from the returned messages. This allows clients to fetch only the referenced messages without any quoted messages.", "schema": { "type": "boolean" }