|
122 | 122 | ], |
123 | 123 | "properties": { |
124 | 124 | "url": { |
125 | | - "description": "Contains the URL of the attachment. The developer has to make sure that the URL is accessible while calling the data_import API. The API will be downloading the attachment from its current location and upload it to CometChat’s attachment storage.", |
| 125 | + "description": "Publicly accessible URL of the attachment.", |
126 | 126 | "type": "string" |
127 | 127 | }, |
128 | 128 | "name": { |
|
387 | 387 | } |
388 | 388 | }, |
389 | 389 | "type": "object" |
| 390 | + }, |
| 391 | + "mentionedUserDetails": { |
| 392 | + "description": "Optional field that provides user details when data.text includes a mention, formatted using CometChat’s mention template (<@uid:UID>).", |
| 393 | + "properties": { |
| 394 | + "<uid>": { |
| 395 | + "description": "A map where each key is a user’s unique identifier (UID) and the value is that user’s details. The <uid> will be replaced by the mentioned user’s primary key.", |
| 396 | + "properties": { |
| 397 | + "": { |
| 398 | + "required": [ |
| 399 | + "uid", |
| 400 | + "name" |
| 401 | + ], |
| 402 | + "properties": { |
| 403 | + "uid": { |
| 404 | + "description": "The primary-key/ unique identifier of the owner. The value should be the same as value of the placeholder <uid> which wraps the mentionedUserDetails object.", |
| 405 | + "type": "string" |
| 406 | + }, |
| 407 | + "name": { |
| 408 | + "description": "Name of the owner.", |
| 409 | + "type": "string" |
| 410 | + }, |
| 411 | + "avatar": { |
| 412 | + "description": "URL to the profile picture of the owner.", |
| 413 | + "type": "string" |
| 414 | + }, |
| 415 | + "link": { |
| 416 | + "description": "Profile page URL of the owner.", |
| 417 | + "type": "string" |
| 418 | + }, |
| 419 | + "role": { |
| 420 | + "description": "Role of the owner. Should be created already via the Create role API.", |
| 421 | + "type": "string" |
| 422 | + }, |
| 423 | + "createdAt": { |
| 424 | + "description": "A 10-digit timestamp at which the owner was created.", |
| 425 | + "type": "integer" |
| 426 | + }, |
| 427 | + "lastActiveAt": { |
| 428 | + "description": "A 10-digit UNIX timestamp at which the owner was most recently online.", |
| 429 | + "type": "integer" |
| 430 | + }, |
| 431 | + "metadata": { |
| 432 | + "description": "Additional details about the owner.", |
| 433 | + "type": "object" |
| 434 | + }, |
| 435 | + "tags": { |
| 436 | + "description": "A string array containing owner tags.", |
| 437 | + "type": "array", |
| 438 | + "items": { |
| 439 | + "type": "string" |
| 440 | + }, |
| 441 | + "default": [] |
| 442 | + }, |
| 443 | + "deactivatedAt": { |
| 444 | + "description": "A 10-digit UNIX timestamp at which the owner was deactivated/soft-deleted/blocked to use the chat services.", |
| 445 | + "type": "integer" |
| 446 | + } |
| 447 | + }, |
| 448 | + "type": "object" |
| 449 | + } |
| 450 | + }, |
| 451 | + "type": "object" |
| 452 | + } |
| 453 | + }, |
| 454 | + "type": "object" |
390 | 455 | } |
391 | 456 | }, |
392 | 457 | "type": "object" |
|
402 | 467 | "type": "text", |
403 | 468 | "category": "message", |
404 | 469 | "data": { |
405 | | - "text": "Hi there,", |
| 470 | + "text": "Hi there", |
406 | 471 | "attachments": [ |
407 | 472 | { |
408 | 473 | "name": "hi.png", |
|
446 | 511 | }, |
447 | 512 | "tags": [ |
448 | 513 | "tag1" |
449 | | - ] |
| 514 | + ], |
| 515 | + "mentionedUserDetails": { |
| 516 | + "example-uid-new": { |
| 517 | + "uid": "example-uid-new", |
| 518 | + "name": "example-uid" |
| 519 | + } |
| 520 | + } |
450 | 521 | } |
451 | 522 | } |
452 | 523 | } |
|
2795 | 2866 | "custom" |
2796 | 2867 | ] |
2797 | 2868 | }, |
| 2869 | + "quotedMessageId": { |
| 2870 | + "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.", |
| 2871 | + "type": "string", |
| 2872 | + "default": "message", |
| 2873 | + "enum": [ |
| 2874 | + "message" |
| 2875 | + ] |
| 2876 | + }, |
2798 | 2877 | "type": { |
2799 | 2878 | "description": "Type of the message.", |
2800 | 2879 | "type": "string" |
|
2892 | 2971 | }, |
2893 | 2972 | "maxPerDayPerConversation": { |
2894 | 2973 | "type": "integer" |
| 2974 | + }, |
| 2975 | + "includeMessageObjectSetting": { |
| 2976 | + "description": "Includes the message object in the email payload", |
| 2977 | + "type": "boolean" |
| 2978 | + }, |
| 2979 | + "includeSenderMetadataSetting": { |
| 2980 | + "description": "Includes sender metadata in the message object", |
| 2981 | + "type": "boolean" |
| 2982 | + }, |
| 2983 | + "includeReceiverMetadataSetting": { |
| 2984 | + "description": "Includes receiver metadata in the message object", |
| 2985 | + "type": "boolean" |
| 2986 | + }, |
| 2987 | + "includeMessageMetadataSetting": { |
| 2988 | + "description": "Includes message metadata in the message object", |
| 2989 | + "type": "boolean" |
2895 | 2990 | } |
2896 | 2991 | }, |
2897 | 2992 | "type": "object" |
|
3798 | 3893 | "message" |
3799 | 3894 | ] |
3800 | 3895 | }, |
| 3896 | + "quotedMessageId": { |
| 3897 | + "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.", |
| 3898 | + "type": "string", |
| 3899 | + "default": "message", |
| 3900 | + "enum": [ |
| 3901 | + "message" |
| 3902 | + ] |
| 3903 | + }, |
3801 | 3904 | "type": { |
3802 | 3905 | "description": "Type of the message. The available values are text, image, file, audio, video.", |
3803 | 3906 | "type": "string", |
|
4710 | 4813 | }, |
4711 | 4814 | "maxPerDayPerConversation": { |
4712 | 4815 | "type": "integer" |
| 4816 | + }, |
| 4817 | + "includeMessageObjectSetting": { |
| 4818 | + "description": "Includes the message object in the SMS payload", |
| 4819 | + "type": "boolean" |
| 4820 | + }, |
| 4821 | + "includeSenderMetadataSetting": { |
| 4822 | + "description": "Includes sender metadata in the message object", |
| 4823 | + "type": "boolean" |
| 4824 | + }, |
| 4825 | + "includeReceiverMetadataSetting": { |
| 4826 | + "description": "Includes receiver metadata in the message object", |
| 4827 | + "type": "boolean" |
| 4828 | + }, |
| 4829 | + "includeMessageMetadataSetting": { |
| 4830 | + "description": "Includes message metadata in the message object", |
| 4831 | + "type": "boolean" |
4713 | 4832 | } |
4714 | 4833 | }, |
4715 | 4834 | "type": "object" |
|
0 commit comments