easemob-websdk 4.1.4-beta2 → 4.1.5-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/Easemob-chat.d.ts +162 -13
- package/Easemob-chat.js +1 -1
- package/contact/contact.d.ts +17 -4
- package/contact/contact.js +1 -1
- package/message/audio.d.ts +8 -2
- package/message/channel.d.ts +8 -2
- package/message/cmd.d.ts +8 -2
- package/message/custom.d.ts +8 -2
- package/message/delivery.d.ts +8 -2
- package/message/file.d.ts +8 -2
- package/message/img.d.ts +8 -2
- package/message/location.d.ts +8 -2
- package/message/read.d.ts +8 -2
- package/message/text.d.ts +8 -2
- package/message/video.d.ts +8 -2
- package/miniCore/miniCore.js +1 -1
- package/miniProgram/Easemob-chat.js +1 -1
- package/package.json +1 -1
- package/uniApp/Easemob-chat.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
# Changes to easemob chat
|
|
2
|
+
## 4.1.5 (April 13, 2023)
|
|
3
|
+
|
|
4
|
+
- Adds four parameters, `from`, `msgTypes`, `startTime`, and `endTime` in `searchOptions` in the `getHistoryMessage` method to allow you to retrieve historical messages from the server by message sender, message type, or period.
|
|
5
|
+
|
|
6
|
+
Adds The error code 511, MESSAGE_SIZE_LIMIT, to notify you when the size of the message body exceeds the upper limit.
|
|
2
7
|
## 4.1.4 (Mar 16, 2023)
|
|
3
8
|
|
|
4
9
|
- Add Group Member Attributes feature
|
package/Easemob-chat.d.ts
CHANGED
|
@@ -162,7 +162,7 @@ export declare namespace EasemobChat {
|
|
|
162
162
|
id: GroupId;
|
|
163
163
|
/** The name of the multi-device event. */
|
|
164
164
|
operation: 'memberAttributesUpdate';
|
|
165
|
-
/** The user ID of the group member whose custom attributes are set.
|
|
165
|
+
/** The user ID of the group member whose custom attributes are set. */
|
|
166
166
|
userId: UserId;
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -781,7 +781,6 @@ export declare namespace EasemobChat {
|
|
|
781
781
|
score: number;
|
|
782
782
|
};
|
|
783
783
|
}
|
|
784
|
-
|
|
785
784
|
interface SubscribePresence {
|
|
786
785
|
/** The expiration time of the presence subscription. */
|
|
787
786
|
expiry: number;
|
|
@@ -990,6 +989,7 @@ export declare namespace EasemobChat {
|
|
|
990
989
|
/** The conversation list. */
|
|
991
990
|
channel_infos: ConversationList[];
|
|
992
991
|
}
|
|
992
|
+
|
|
993
993
|
interface SilentModeConversationType {
|
|
994
994
|
/** Silent mode type. */
|
|
995
995
|
type: string;
|
|
@@ -1205,6 +1205,10 @@ export declare namespace EasemobChat {
|
|
|
1205
1205
|
MESSAGE_MODERATION_BLOCKED = 508,
|
|
1206
1206
|
/** Group chat ID current limiting. */
|
|
1207
1207
|
MESSAGE_CURRENT_LIMITING = 509,
|
|
1208
|
+
/** The network is disconnected, causing message sending failure. */
|
|
1209
|
+
MESSAGE_WEBSOCKET_DISCONNECTED = 510,
|
|
1210
|
+
/** You have exceeded the maximum allowed size of a message body.*/
|
|
1211
|
+
MESSAGE_SIZE_LIMIT = 511,
|
|
1208
1212
|
/** The group is not found. */
|
|
1209
1213
|
GROUP_NOT_EXIST = 605,
|
|
1210
1214
|
/** The user being operated is not in the group. */
|
|
@@ -3105,7 +3109,7 @@ export declare namespace EasemobChat {
|
|
|
3105
3109
|
this: Connection,
|
|
3106
3110
|
params: {
|
|
3107
3111
|
/** The ID of the group member to mute. */
|
|
3108
|
-
username: UserId;
|
|
3112
|
+
username: UserId | UserId[];
|
|
3109
3113
|
/** The mute duration in milliseconds. The value `-1` indicates that the member is muted permanently.*/
|
|
3110
3114
|
muteDuration: number;
|
|
3111
3115
|
/** The group ID. */
|
|
@@ -3126,7 +3130,7 @@ export declare namespace EasemobChat {
|
|
|
3126
3130
|
this: Connection,
|
|
3127
3131
|
params: {
|
|
3128
3132
|
/** The ID of the group member to mute. */
|
|
3129
|
-
username: UserId;
|
|
3133
|
+
username: UserId | UserId[];
|
|
3130
3134
|
/** The mute duration in milliseconds. The value `-1` indicates that the member is muted permanently.*/
|
|
3131
3135
|
muteDuration: number;
|
|
3132
3136
|
/** The group ID. */
|
|
@@ -3143,7 +3147,7 @@ export declare namespace EasemobChat {
|
|
|
3143
3147
|
/** The group ID. */
|
|
3144
3148
|
groupId: string;
|
|
3145
3149
|
/** The group member ID to unmute. */
|
|
3146
|
-
username: UserId;
|
|
3150
|
+
username: UserId | UserId[];
|
|
3147
3151
|
success?: (res: AsyncResult<UnmuteGroupMemberResult[]>) => void;
|
|
3148
3152
|
error?: (error: ErrorEvent) => void;
|
|
3149
3153
|
}
|
|
@@ -3162,7 +3166,7 @@ export declare namespace EasemobChat {
|
|
|
3162
3166
|
/** The group ID. */
|
|
3163
3167
|
groupId: string;
|
|
3164
3168
|
/** The group member ID to unmute. */
|
|
3165
|
-
username: UserId;
|
|
3169
|
+
username: UserId | UserId[];
|
|
3166
3170
|
success?: (res: AsyncResult<UnmuteGroupMemberResult[]>) => void;
|
|
3167
3171
|
error?: (error: ErrorEvent) => void;
|
|
3168
3172
|
}
|
|
@@ -4095,7 +4099,7 @@ export declare namespace EasemobChat {
|
|
|
4095
4099
|
* Gets the message history.
|
|
4096
4100
|
*
|
|
4097
4101
|
* ```typescript
|
|
4098
|
-
* connection.getHistoryMessages({targetId:'
|
|
4102
|
+
* connection.getHistoryMessages({targetId:'targetId',chatType:'groupChat', pageSize: 20})
|
|
4099
4103
|
* ```
|
|
4100
4104
|
*/
|
|
4101
4105
|
getHistoryMessages(
|
|
@@ -4110,16 +4114,28 @@ export declare namespace EasemobChat {
|
|
|
4110
4114
|
/** The chat type:
|
|
4111
4115
|
* - `singleChat`: one-to-one chat;
|
|
4112
4116
|
* - `groupChat`: group chat;
|
|
4113
|
-
* - `chatRoom`: chat room.
|
|
4114
4117
|
* - (Default)`singleChat`: No.
|
|
4115
4118
|
*/
|
|
4116
|
-
chatType?: 'singleChat' | 'groupChat'
|
|
4119
|
+
chatType?: 'singleChat' | 'groupChat';
|
|
4117
4120
|
/** Whether to select pull history messages in positive order(Pull message from the oldest to the latest).
|
|
4118
4121
|
* - `up`: means searching from the newer messages to the older messages.
|
|
4119
4122
|
* - `down`: means searching from the older messages to the newer messages.
|
|
4120
4123
|
* - (Default)`up`.
|
|
4121
4124
|
*/
|
|
4122
|
-
searchDirection?:
|
|
4125
|
+
searchDirection?: 'down' | 'up';
|
|
4126
|
+
/** Query conditions. */
|
|
4127
|
+
searchOptions?: {
|
|
4128
|
+
/** The user ID of the message sender. This parameter is used only for group chat. */
|
|
4129
|
+
from?: UserId;
|
|
4130
|
+
/** An array of message types for query. If no value is passed in, all message types will be queried. */
|
|
4131
|
+
msgTypes?: Array<
|
|
4132
|
+
Exclude<MessageType, 'read' | 'delivery' | 'channel'>
|
|
4133
|
+
>;
|
|
4134
|
+
/** The start timestamp for query. The unit is millisecond. */
|
|
4135
|
+
startTime?: number;
|
|
4136
|
+
/** The end timestamp for query. The unit is millisecond. */
|
|
4137
|
+
endTime?: number;
|
|
4138
|
+
};
|
|
4123
4139
|
success?: (res: MessageBody[]) => void;
|
|
4124
4140
|
fail?: (error: ErrorEvent) => void;
|
|
4125
4141
|
}
|
|
@@ -4946,7 +4962,7 @@ export declare namespace EasemobChat {
|
|
|
4946
4962
|
* (Default)`true`: Yes.
|
|
4947
4963
|
* `false`: No. */
|
|
4948
4964
|
autoDelete?: boolean;
|
|
4949
|
-
/** Whether to allow a member to overwrite
|
|
4965
|
+
/** Whether to allow a member to overwrite the chat room attribute set by another member.
|
|
4950
4966
|
* `true`: Yes.
|
|
4951
4967
|
* (Default)`false`: No. */
|
|
4952
4968
|
isForced?: boolean;
|
|
@@ -5002,9 +5018,9 @@ export declare namespace EasemobChat {
|
|
|
5002
5018
|
params: {
|
|
5003
5019
|
/** The chat room ID. */
|
|
5004
5020
|
chatRoomId: string;
|
|
5005
|
-
/** The
|
|
5021
|
+
/** The array of keys of attributes to remove. The array can contain a maximum number of 10 attribute keys. */
|
|
5006
5022
|
attributeKeys: Array<string>;
|
|
5007
|
-
/** Whether to allow chat room members to
|
|
5023
|
+
/** Whether to allow chat room members to overwrite the chat room attributes set by others.
|
|
5008
5024
|
* - `true`: Yes;
|
|
5009
5025
|
* - (Default)`false`: No.
|
|
5010
5026
|
*/
|
|
@@ -5071,6 +5087,8 @@ export declare namespace EasemobChat {
|
|
|
5071
5087
|
from: string;
|
|
5072
5088
|
/** Additional data for the operation event. */
|
|
5073
5089
|
data?: any;
|
|
5090
|
+
/** The modified group info. */
|
|
5091
|
+
detail?: GroupModifyInfo;
|
|
5074
5092
|
/** ChatRoom attributes. */
|
|
5075
5093
|
attributes?: {
|
|
5076
5094
|
[key: string]: string;
|
|
@@ -5592,6 +5610,13 @@ export declare namespace EasemobChat {
|
|
|
5592
5610
|
isChatThread?: boolean;
|
|
5593
5611
|
/** Message online state type. */
|
|
5594
5612
|
onlineState?: ONLINESTATETYPE;
|
|
5613
|
+
/** Message priority. */
|
|
5614
|
+
priority?: MessagePriority;
|
|
5615
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
5616
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
5617
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
5618
|
+
*/
|
|
5619
|
+
deliverOnlineOnly?: boolean;
|
|
5595
5620
|
}
|
|
5596
5621
|
interface ReadParameters {
|
|
5597
5622
|
/** The message type. */
|
|
@@ -5615,6 +5640,13 @@ export declare namespace EasemobChat {
|
|
|
5615
5640
|
ackContent?: string;
|
|
5616
5641
|
/** Whether the message is a thread message. */
|
|
5617
5642
|
isChatThread?: boolean;
|
|
5643
|
+
/** Message priority. */
|
|
5644
|
+
priority?: MessagePriority;
|
|
5645
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
5646
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
5647
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
5648
|
+
*/
|
|
5649
|
+
deliverOnlineOnly?: boolean;
|
|
5618
5650
|
}
|
|
5619
5651
|
|
|
5620
5652
|
interface DeliveryParameters {
|
|
@@ -5648,6 +5680,13 @@ export declare namespace EasemobChat {
|
|
|
5648
5680
|
isChatThread?: boolean;
|
|
5649
5681
|
/** Message online state type. */
|
|
5650
5682
|
onlineState?: ONLINESTATETYPE;
|
|
5683
|
+
/** Message priority. */
|
|
5684
|
+
priority?: MessagePriority;
|
|
5685
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
5686
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
5687
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
5688
|
+
*/
|
|
5689
|
+
deliverOnlineOnly?: boolean;
|
|
5651
5690
|
}
|
|
5652
5691
|
|
|
5653
5692
|
interface CreateDeliveryMsgParameters {
|
|
@@ -5661,6 +5700,13 @@ export declare namespace EasemobChat {
|
|
|
5661
5700
|
from?: string;
|
|
5662
5701
|
/** Whether the message is a thread message. */
|
|
5663
5702
|
isChatThread?: boolean;
|
|
5703
|
+
/** Message priority. */
|
|
5704
|
+
priority?: MessagePriority;
|
|
5705
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
5706
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
5707
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
5708
|
+
*/
|
|
5709
|
+
deliverOnlineOnly?: boolean;
|
|
5664
5710
|
}
|
|
5665
5711
|
|
|
5666
5712
|
interface ChannelMsgSetParameters {
|
|
@@ -5675,6 +5721,7 @@ export declare namespace EasemobChat {
|
|
|
5675
5721
|
interface ChannelMsgBody extends ChannelMsgSetParameters {
|
|
5676
5722
|
/** The message ID. */
|
|
5677
5723
|
id: string;
|
|
5724
|
+
mid?: string;
|
|
5678
5725
|
/** Whether it's group chat. */
|
|
5679
5726
|
group?: string;
|
|
5680
5727
|
/** The message type. */
|
|
@@ -5685,6 +5732,13 @@ export declare namespace EasemobChat {
|
|
|
5685
5732
|
isChatThread?: boolean;
|
|
5686
5733
|
/** Message online state type. */
|
|
5687
5734
|
onlineState?: ONLINESTATETYPE;
|
|
5735
|
+
/** Message priority. */
|
|
5736
|
+
priority?: MessagePriority;
|
|
5737
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
5738
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
5739
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
5740
|
+
*/
|
|
5741
|
+
deliverOnlineOnly?: boolean;
|
|
5688
5742
|
}
|
|
5689
5743
|
|
|
5690
5744
|
interface ChannelParameters {
|
|
@@ -5697,6 +5751,8 @@ export declare namespace EasemobChat {
|
|
|
5697
5751
|
interface CreateChannelMsgParameters {
|
|
5698
5752
|
/** The message type. */
|
|
5699
5753
|
type: 'channel';
|
|
5754
|
+
/** The ID of the read message. */
|
|
5755
|
+
id?: string;
|
|
5700
5756
|
/** The session type. */
|
|
5701
5757
|
chatType: ChatType;
|
|
5702
5758
|
/** The receipt. */
|
|
@@ -5705,6 +5761,13 @@ export declare namespace EasemobChat {
|
|
|
5705
5761
|
from?: string;
|
|
5706
5762
|
/** Whether the message is a thread message. */
|
|
5707
5763
|
isChatThread?: boolean;
|
|
5764
|
+
/** Message priority. */
|
|
5765
|
+
priority?: MessagePriority;
|
|
5766
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
5767
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
5768
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
5769
|
+
*/
|
|
5770
|
+
deliverOnlineOnly?: boolean;
|
|
5708
5771
|
}
|
|
5709
5772
|
|
|
5710
5773
|
interface TextParameters {
|
|
@@ -5776,6 +5839,11 @@ export declare namespace EasemobChat {
|
|
|
5776
5839
|
onlineState?: ONLINESTATETYPE;
|
|
5777
5840
|
/** Message priority. */
|
|
5778
5841
|
priority?: MessagePriority;
|
|
5842
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
5843
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
5844
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
5845
|
+
*/
|
|
5846
|
+
deliverOnlineOnly?: boolean;
|
|
5779
5847
|
}
|
|
5780
5848
|
|
|
5781
5849
|
interface CreateTextMsgParameters {
|
|
@@ -5797,6 +5865,11 @@ export declare namespace EasemobChat {
|
|
|
5797
5865
|
isChatThread?: boolean;
|
|
5798
5866
|
/** Message priority. */
|
|
5799
5867
|
priority?: MessagePriority;
|
|
5868
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
5869
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
5870
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
5871
|
+
*/
|
|
5872
|
+
deliverOnlineOnly?: boolean;
|
|
5800
5873
|
}
|
|
5801
5874
|
|
|
5802
5875
|
interface CmdParameters {
|
|
@@ -5863,6 +5936,11 @@ export declare namespace EasemobChat {
|
|
|
5863
5936
|
onlineState?: ONLINESTATETYPE;
|
|
5864
5937
|
/** Message priority. */
|
|
5865
5938
|
priority?: MessagePriority;
|
|
5939
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
5940
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
5941
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
5942
|
+
*/
|
|
5943
|
+
deliverOnlineOnly?: boolean;
|
|
5866
5944
|
}
|
|
5867
5945
|
|
|
5868
5946
|
interface CreateCmdMsgParameters {
|
|
@@ -5886,6 +5964,11 @@ export declare namespace EasemobChat {
|
|
|
5886
5964
|
isChatThread?: boolean;
|
|
5887
5965
|
/** Message priority. */
|
|
5888
5966
|
priority?: MessagePriority;
|
|
5967
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
5968
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
5969
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
5970
|
+
*/
|
|
5971
|
+
deliverOnlineOnly?: boolean;
|
|
5889
5972
|
}
|
|
5890
5973
|
|
|
5891
5974
|
interface CustomParameters {
|
|
@@ -5957,6 +6040,11 @@ export declare namespace EasemobChat {
|
|
|
5957
6040
|
onlineState?: ONLINESTATETYPE;
|
|
5958
6041
|
/** Message priority. */
|
|
5959
6042
|
priority?: MessagePriority;
|
|
6043
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
6044
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
6045
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
6046
|
+
*/
|
|
6047
|
+
deliverOnlineOnly?: boolean;
|
|
5960
6048
|
}
|
|
5961
6049
|
|
|
5962
6050
|
interface CreateCustomMsgParameters {
|
|
@@ -5980,6 +6068,11 @@ export declare namespace EasemobChat {
|
|
|
5980
6068
|
isChatThread?: boolean;
|
|
5981
6069
|
/** Message priority. */
|
|
5982
6070
|
priority?: MessagePriority;
|
|
6071
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
6072
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
6073
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
6074
|
+
*/
|
|
6075
|
+
deliverOnlineOnly?: boolean;
|
|
5983
6076
|
}
|
|
5984
6077
|
|
|
5985
6078
|
interface LocationParameters {
|
|
@@ -6059,6 +6152,11 @@ export declare namespace EasemobChat {
|
|
|
6059
6152
|
onlineState?: ONLINESTATETYPE;
|
|
6060
6153
|
/** Message priority. */
|
|
6061
6154
|
priority?: MessagePriority;
|
|
6155
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
6156
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
6157
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
6158
|
+
*/
|
|
6159
|
+
deliverOnlineOnly?: boolean;
|
|
6062
6160
|
}
|
|
6063
6161
|
|
|
6064
6162
|
interface CreateLocationMsgParameters {
|
|
@@ -6086,6 +6184,11 @@ export declare namespace EasemobChat {
|
|
|
6086
6184
|
isChatThread?: boolean;
|
|
6087
6185
|
/** Message priority. */
|
|
6088
6186
|
priority?: MessagePriority;
|
|
6187
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
6188
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
6189
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
6190
|
+
*/
|
|
6191
|
+
deliverOnlineOnly?: boolean;
|
|
6089
6192
|
}
|
|
6090
6193
|
|
|
6091
6194
|
interface FileParameters {
|
|
@@ -6118,6 +6221,8 @@ export declare namespace EasemobChat {
|
|
|
6118
6221
|
filename?: string;
|
|
6119
6222
|
/** The input ID of the file to be uploaded. */
|
|
6120
6223
|
fileInputId?: string;
|
|
6224
|
+
/** The size of the file. */
|
|
6225
|
+
file_length?: number;
|
|
6121
6226
|
/** The recipient. */
|
|
6122
6227
|
to: string;
|
|
6123
6228
|
/** The sender, which can only be the current user and can not be changed.*/
|
|
@@ -6185,6 +6290,11 @@ export declare namespace EasemobChat {
|
|
|
6185
6290
|
isChatThread?: boolean;
|
|
6186
6291
|
/** Message priority. */
|
|
6187
6292
|
priority?: MessagePriority;
|
|
6293
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
6294
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
6295
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
6296
|
+
*/
|
|
6297
|
+
deliverOnlineOnly?: boolean;
|
|
6188
6298
|
}
|
|
6189
6299
|
|
|
6190
6300
|
interface CreateFileMsgParameters {
|
|
@@ -6227,6 +6337,11 @@ export declare namespace EasemobChat {
|
|
|
6227
6337
|
isChatThread?: boolean;
|
|
6228
6338
|
/** Message priority. */
|
|
6229
6339
|
priority?: MessagePriority;
|
|
6340
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
6341
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
6342
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
6343
|
+
*/
|
|
6344
|
+
deliverOnlineOnly?: boolean;
|
|
6230
6345
|
}
|
|
6231
6346
|
|
|
6232
6347
|
interface ImgParameters {
|
|
@@ -6247,6 +6362,8 @@ export declare namespace EasemobChat {
|
|
|
6247
6362
|
width?: number;
|
|
6248
6363
|
/** The image height. */
|
|
6249
6364
|
height?: number;
|
|
6365
|
+
/** The image file length. */
|
|
6366
|
+
file_length?: number;
|
|
6250
6367
|
/** The input ID of the file to be uploaded. */
|
|
6251
6368
|
fileInputId?: string;
|
|
6252
6369
|
/** The sender, which can only be the current user and can not be changed.*/
|
|
@@ -6307,6 +6424,11 @@ export declare namespace EasemobChat {
|
|
|
6307
6424
|
onlineState?: ONLINESTATETYPE;
|
|
6308
6425
|
/** Message priority. */
|
|
6309
6426
|
priority?: MessagePriority;
|
|
6427
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
6428
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
6429
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
6430
|
+
*/
|
|
6431
|
+
deliverOnlineOnly?: boolean;
|
|
6310
6432
|
}
|
|
6311
6433
|
|
|
6312
6434
|
interface CreateImgMsgParameters {
|
|
@@ -6322,6 +6444,8 @@ export declare namespace EasemobChat {
|
|
|
6322
6444
|
width?: number;
|
|
6323
6445
|
/** The image height. */
|
|
6324
6446
|
height?: number;
|
|
6447
|
+
/** The image file length. */
|
|
6448
|
+
file_length?: number;
|
|
6325
6449
|
/** The recipient. */
|
|
6326
6450
|
to: string;
|
|
6327
6451
|
/** The sender, which can only be the current user and can not be changed.*/
|
|
@@ -6349,6 +6473,11 @@ export declare namespace EasemobChat {
|
|
|
6349
6473
|
isChatThread?: boolean;
|
|
6350
6474
|
/** Message priority. */
|
|
6351
6475
|
priority?: MessagePriority;
|
|
6476
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
6477
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
6478
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
6479
|
+
*/
|
|
6480
|
+
deliverOnlineOnly?: boolean;
|
|
6352
6481
|
}
|
|
6353
6482
|
|
|
6354
6483
|
interface AudioParameters {
|
|
@@ -6432,6 +6561,11 @@ export declare namespace EasemobChat {
|
|
|
6432
6561
|
onlineState?: ONLINESTATETYPE;
|
|
6433
6562
|
/** Message priority. */
|
|
6434
6563
|
priority?: MessagePriority;
|
|
6564
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
6565
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
6566
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
6567
|
+
*/
|
|
6568
|
+
deliverOnlineOnly?: boolean;
|
|
6435
6569
|
}
|
|
6436
6570
|
|
|
6437
6571
|
interface CreateAudioMsgParameters {
|
|
@@ -6476,6 +6610,11 @@ export declare namespace EasemobChat {
|
|
|
6476
6610
|
isChatThread?: boolean;
|
|
6477
6611
|
/** Message priority. */
|
|
6478
6612
|
priority?: MessagePriority;
|
|
6613
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
6614
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
6615
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
6616
|
+
*/
|
|
6617
|
+
deliverOnlineOnly?: boolean;
|
|
6479
6618
|
}
|
|
6480
6619
|
|
|
6481
6620
|
interface VideoParameters {
|
|
@@ -6559,6 +6698,11 @@ export declare namespace EasemobChat {
|
|
|
6559
6698
|
onlineState?: ONLINESTATETYPE;
|
|
6560
6699
|
/** Message priority. */
|
|
6561
6700
|
priority?: MessagePriority;
|
|
6701
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
6702
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
6703
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
6704
|
+
*/
|
|
6705
|
+
deliverOnlineOnly?: boolean;
|
|
6562
6706
|
}
|
|
6563
6707
|
|
|
6564
6708
|
interface CreateVideoMsgParameters {
|
|
@@ -6605,6 +6749,11 @@ export declare namespace EasemobChat {
|
|
|
6605
6749
|
isChatThread?: boolean;
|
|
6606
6750
|
/** Message priority. */
|
|
6607
6751
|
priority?: MessagePriority;
|
|
6752
|
+
/** Whether the message is delivered only when the recipient(s) is/are online:
|
|
6753
|
+
* - `true`: The message is delivered only when the recipient(s) is/are online. If the recipient is offline, the message is not delivered.
|
|
6754
|
+
* - (Default) `false`: The message is delivered to the recipients regardless of whether they are online or offline.
|
|
6755
|
+
*/
|
|
6756
|
+
deliverOnlineOnly?: boolean;
|
|
6608
6757
|
}
|
|
6609
6758
|
|
|
6610
6759
|
interface ReceivedMsgBody {
|