@rongcloud/engine 5.1.0-enterprise-alpha.1 → 5.2.0-alpha.1
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/dist/index.d.ts +279 -16
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCEngine - v5.
|
|
3
|
-
* CommitId -
|
|
4
|
-
* Tue Jan
|
|
2
|
+
* RCEngine - v5.2.0-alpha.1
|
|
3
|
+
* CommitId - 68fc235a96486a3750698a56d22643a1093aa1c5
|
|
4
|
+
* Tue Jan 18 2022 19:55:05 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
@@ -44,6 +44,10 @@ declare enum ConversationType {
|
|
|
44
44
|
* 需手动关注的公众号会话类型(MP)
|
|
45
45
|
*/
|
|
46
46
|
PUBLIC_SERVICE = 8,
|
|
47
|
+
/**
|
|
48
|
+
* 超级群
|
|
49
|
+
*/
|
|
50
|
+
ULTRA_GROUP = 10,
|
|
47
51
|
/**
|
|
48
52
|
* RTCLib 特有的会话类型
|
|
49
53
|
*/
|
|
@@ -360,6 +364,13 @@ declare class QueryWriter extends RetryableWriter {
|
|
|
360
364
|
writeMessage(stream: RongStreamWriter): void;
|
|
361
365
|
}
|
|
362
366
|
|
|
367
|
+
/**
|
|
368
|
+
* 聊天室 kv 存储操作类型. 对方操作, 己方收到消息(RC:chrmKVNotiMsg)中会带入此值. 根据此值判断是删除还是更新
|
|
369
|
+
*/
|
|
370
|
+
declare enum OperateStatus {
|
|
371
|
+
typing = 0
|
|
372
|
+
}
|
|
373
|
+
|
|
363
374
|
interface IConversationOption {
|
|
364
375
|
conversationType: ConversationType;
|
|
365
376
|
targetId: string;
|
|
@@ -726,6 +737,10 @@ interface IReceivedMessage {
|
|
|
726
737
|
* 推送扩展
|
|
727
738
|
*/
|
|
728
739
|
pushConfig?: IPushConfig;
|
|
740
|
+
/**
|
|
741
|
+
* 超级群专有字段,是否断档,服务端收到大量消息可能会断档,所以消息存在此标志位,断档需要客户手动拉取历史消息
|
|
742
|
+
*/
|
|
743
|
+
isInterrupt?: boolean;
|
|
729
744
|
}
|
|
730
745
|
interface IUserProfile {
|
|
731
746
|
/**
|
|
@@ -750,6 +765,26 @@ interface IUserProfile {
|
|
|
750
765
|
*/
|
|
751
766
|
portrait?: string;
|
|
752
767
|
}
|
|
768
|
+
interface IOperateInfo {
|
|
769
|
+
targetId: string;
|
|
770
|
+
channelId?: string;
|
|
771
|
+
userId: string;
|
|
772
|
+
operationType: OperateStatus;
|
|
773
|
+
operationTime?: number;
|
|
774
|
+
}
|
|
775
|
+
interface IOperateSummary {
|
|
776
|
+
targetId: string;
|
|
777
|
+
channelId?: string;
|
|
778
|
+
count: number;
|
|
779
|
+
operationType: OperateStatus;
|
|
780
|
+
}
|
|
781
|
+
interface IOperateStatusNotify {
|
|
782
|
+
conversationType: ConversationType;
|
|
783
|
+
hasInfo: boolean;
|
|
784
|
+
hasSummary: boolean;
|
|
785
|
+
info: IOperateInfo[];
|
|
786
|
+
summary: IOperateSummary[];
|
|
787
|
+
}
|
|
753
788
|
interface IRecallMsgOptions {
|
|
754
789
|
/**
|
|
755
790
|
* 会话组织机构标识
|
|
@@ -885,6 +920,10 @@ interface ISendMsgOptions {
|
|
|
885
920
|
* 客户端的消息标识
|
|
886
921
|
*/
|
|
887
922
|
messageId?: string;
|
|
923
|
+
/**
|
|
924
|
+
* 超级群专有字段,是否断档,若断档需要客户判断是否拉取
|
|
925
|
+
*/
|
|
926
|
+
isInterrupt?: boolean;
|
|
888
927
|
}
|
|
889
928
|
interface IInsertMsgOptions {
|
|
890
929
|
senderUserId: string;
|
|
@@ -935,6 +974,63 @@ interface ISendExMsgOptions {
|
|
|
935
974
|
[key: string]: string;
|
|
936
975
|
} | null;
|
|
937
976
|
}
|
|
977
|
+
interface IUltraExMsgOptions {
|
|
978
|
+
canIncludeExpansion: boolean;
|
|
979
|
+
channelId: string;
|
|
980
|
+
conversationType: ConversationType;
|
|
981
|
+
targetId: string;
|
|
982
|
+
messageUId: string;
|
|
983
|
+
sendTime: number;
|
|
984
|
+
/**
|
|
985
|
+
* 删除的 keys
|
|
986
|
+
*/
|
|
987
|
+
keys?: string[];
|
|
988
|
+
/**
|
|
989
|
+
* 扩展对象
|
|
990
|
+
*/
|
|
991
|
+
expansion?: {
|
|
992
|
+
[key: string]: string;
|
|
993
|
+
};
|
|
994
|
+
/**
|
|
995
|
+
* 是否删除所有扩展
|
|
996
|
+
*/
|
|
997
|
+
removeAll?: boolean;
|
|
998
|
+
}
|
|
999
|
+
interface IUltraModifyMsgOptions {
|
|
1000
|
+
canIncludeExpansion?: boolean;
|
|
1001
|
+
channelId: string;
|
|
1002
|
+
conversationType: ConversationType;
|
|
1003
|
+
targetId: string;
|
|
1004
|
+
messageUId: string;
|
|
1005
|
+
sendTime: number;
|
|
1006
|
+
/**
|
|
1007
|
+
* 消息内容
|
|
1008
|
+
*/
|
|
1009
|
+
content: {
|
|
1010
|
+
/**
|
|
1011
|
+
* 消息内容 key-value,最终会进行 JSON 序列化后发送
|
|
1012
|
+
*/
|
|
1013
|
+
[key: string]: any;
|
|
1014
|
+
/**
|
|
1015
|
+
* 消息可携带的用户数据
|
|
1016
|
+
*/
|
|
1017
|
+
user?: IUserProfile;
|
|
1018
|
+
/**
|
|
1019
|
+
* 其他拓展信息
|
|
1020
|
+
*/
|
|
1021
|
+
extra?: string;
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
1024
|
+
interface IUltraMsgQueryInfo {
|
|
1025
|
+
sendTime: number;
|
|
1026
|
+
messageUId: string;
|
|
1027
|
+
channelId?: string;
|
|
1028
|
+
}
|
|
1029
|
+
interface IUltraMsgQueryOptions {
|
|
1030
|
+
conversationType: ConversationType;
|
|
1031
|
+
targetId: string;
|
|
1032
|
+
messages: IUltraMsgQueryInfo[];
|
|
1033
|
+
}
|
|
938
1034
|
/**
|
|
939
1035
|
* 被拦截的消息信息
|
|
940
1036
|
*/
|
|
@@ -980,6 +1076,10 @@ declare enum ErrorCode {
|
|
|
980
1076
|
EXTRA_METHOD_UNDEFINED = -4,
|
|
981
1077
|
/** 主进程内方法错误 */
|
|
982
1078
|
MAIN_PROCESS_ERROR = -5,
|
|
1079
|
+
/**
|
|
1080
|
+
* 参数变更
|
|
1081
|
+
*/
|
|
1082
|
+
PARAMETER_CHANGED = -6,
|
|
983
1083
|
/**
|
|
984
1084
|
* 成功
|
|
985
1085
|
*/
|
|
@@ -1320,6 +1420,18 @@ declare enum ErrorCode {
|
|
|
1320
1420
|
* 开启`禁止把已在线客户端踢下线`开关后,该错误码标识已有同类型端在线,禁止链接
|
|
1321
1421
|
*/
|
|
1322
1422
|
HAS_OHTER_SAME_CLIENT_ON_LINE = 35010,
|
|
1423
|
+
/**
|
|
1424
|
+
* IM 在初次连接成功后,需立即同步消息,标记上线,然后获取全量超级群会话列表,列表同步完成前,所有超级群相关功能接口应不可用
|
|
1425
|
+
*/
|
|
1426
|
+
METHOD_NOT_AVAILABLE = 35011,
|
|
1427
|
+
/**
|
|
1428
|
+
* 该功能不支持超级群
|
|
1429
|
+
*/
|
|
1430
|
+
METHOD_NOT_SUPPORT = 35012,
|
|
1431
|
+
/**
|
|
1432
|
+
* 消息数量没在范围内
|
|
1433
|
+
*/
|
|
1434
|
+
MSG_LIMIT_ERROR = 35013,
|
|
1323
1435
|
/**
|
|
1324
1436
|
* 上传文件失败
|
|
1325
1437
|
*/
|
|
@@ -1622,8 +1734,9 @@ interface IReceivedConversation {
|
|
|
1622
1734
|
*/
|
|
1623
1735
|
matchCount?: number;
|
|
1624
1736
|
/**
|
|
1625
|
-
*
|
|
1737
|
+
* 会话项变更时间戳
|
|
1626
1738
|
*/
|
|
1739
|
+
versionTime?: number;
|
|
1627
1740
|
unreadMentionedCount?: number;
|
|
1628
1741
|
}
|
|
1629
1742
|
interface IReceivedConversationByTag extends IReceivedConversation {
|
|
@@ -1669,6 +1782,7 @@ interface IUpdatedConversation {
|
|
|
1669
1782
|
*/
|
|
1670
1783
|
channelId?: string;
|
|
1671
1784
|
tags?: IUpdatedConversation[];
|
|
1785
|
+
versionTime?: number;
|
|
1672
1786
|
/**
|
|
1673
1787
|
* @ 消息未读数
|
|
1674
1788
|
*/
|
|
@@ -1789,6 +1903,10 @@ interface INaviInfo {
|
|
|
1789
1903
|
* @todo 需确认公有云与私有云区别
|
|
1790
1904
|
*/
|
|
1791
1905
|
openUS: 0 | 1;
|
|
1906
|
+
/**
|
|
1907
|
+
* 超级群功能开关,1表示开
|
|
1908
|
+
*/
|
|
1909
|
+
ugMsg?: 0 | 1;
|
|
1792
1910
|
/**
|
|
1793
1911
|
* 群离线消息最大下发条数,`0` 为关闭
|
|
1794
1912
|
* @description 公有云独有配合
|
|
@@ -3494,6 +3612,18 @@ declare class DataCodec {
|
|
|
3494
3612
|
* 格式化历史消息
|
|
3495
3613
|
*/
|
|
3496
3614
|
private _formatHistoryMessages;
|
|
3615
|
+
/**
|
|
3616
|
+
* 格式化超级群消息变更列表
|
|
3617
|
+
*/
|
|
3618
|
+
private _formatUltraMsgChangeList;
|
|
3619
|
+
/**
|
|
3620
|
+
* 格式化超级群消息变更列表
|
|
3621
|
+
*/
|
|
3622
|
+
private _formatUltraOperateStatusNotifyList;
|
|
3623
|
+
/**
|
|
3624
|
+
* 格式化超级群变更后消息列表
|
|
3625
|
+
*/
|
|
3626
|
+
private _formatUltraMsgList;
|
|
3497
3627
|
/**
|
|
3498
3628
|
* 格式化会话列表
|
|
3499
3629
|
*/
|
|
@@ -3575,9 +3705,13 @@ declare class DataCodec {
|
|
|
3575
3705
|
*/
|
|
3576
3706
|
encodeChrmSyncMsg(time: number, count: number): any[];
|
|
3577
3707
|
/**
|
|
3578
|
-
*
|
|
3708
|
+
* 序列化历史消息所需参数
|
|
3579
3709
|
*/
|
|
3580
3710
|
encodeGetHistoryMsg(targetId: string, option: IGetMsgOption): any[];
|
|
3711
|
+
/**
|
|
3712
|
+
* 序列化同步超级群所需参数
|
|
3713
|
+
*/
|
|
3714
|
+
encodeSuperSyncMsg(syncTime: number): any[];
|
|
3581
3715
|
/**
|
|
3582
3716
|
* 序列化会话列表
|
|
3583
3717
|
*/
|
|
@@ -3605,11 +3739,31 @@ declare class DataCodec {
|
|
|
3605
3739
|
/**
|
|
3606
3740
|
* 批量删除消息通过时间
|
|
3607
3741
|
*/
|
|
3608
|
-
encodeClearMessages(targetId: string, timestamp: number, channelId: string): any[];
|
|
3742
|
+
encodeClearMessages(targetId: string, timestamp: number, channelId: string, conversationType?: ConversationType): any[];
|
|
3609
3743
|
/**
|
|
3610
3744
|
* 未读数清除
|
|
3611
3745
|
*/
|
|
3612
3746
|
encodeClearUnreadCount(conversation: IConversationOption, option: IClearMsgOption): any[];
|
|
3747
|
+
/**
|
|
3748
|
+
* 对已有的超级群消息扩展
|
|
3749
|
+
*/
|
|
3750
|
+
encodeExpandUltraMessage(option: IUltraExMsgOptions, userId: string): any[];
|
|
3751
|
+
/**
|
|
3752
|
+
* 对已有的超级群消息扩展
|
|
3753
|
+
*/
|
|
3754
|
+
encodemodifyMessage(option: IUltraModifyMsgOptions, userId: string): any[];
|
|
3755
|
+
/**
|
|
3756
|
+
* 超级群消息变更通知
|
|
3757
|
+
*/
|
|
3758
|
+
encodeQueryMsgChange(time: number): any[];
|
|
3759
|
+
/**
|
|
3760
|
+
* 超级群消息变更通知
|
|
3761
|
+
*/
|
|
3762
|
+
encodeMsgQuery(option: IUltraMsgQueryOptions): any[];
|
|
3763
|
+
/**
|
|
3764
|
+
* 正在输入中
|
|
3765
|
+
*/
|
|
3766
|
+
encodeOperateStatus(targetId: string, conversationType: ConversationType, channelId: string, operationType: OperateStatus): any[];
|
|
3613
3767
|
/**
|
|
3614
3768
|
* 加入退出聊天室
|
|
3615
3769
|
*/
|
|
@@ -3677,6 +3831,10 @@ declare class DataCodec {
|
|
|
3677
3831
|
* 序列号上报SDK信息
|
|
3678
3832
|
*/
|
|
3679
3833
|
encodeReportSDKInfo(info: string): any;
|
|
3834
|
+
/**
|
|
3835
|
+
* 序列号超级群获取会话参数
|
|
3836
|
+
*/
|
|
3837
|
+
encodeUltraGroup(syncTime: number, isEraseMsgContent: boolean): any;
|
|
3680
3838
|
/**
|
|
3681
3839
|
* ============ 以下为 RTC 相关 ============
|
|
3682
3840
|
*/
|
|
@@ -3974,14 +4132,17 @@ interface IWatcher {
|
|
|
3974
4132
|
onDisconnect?: () => void;
|
|
3975
4133
|
onSuspend?: () => void;
|
|
3976
4134
|
readReceiptReceived?: (conversation: IConversationOption, messageUId: string, sentTime: number) => void;
|
|
3977
|
-
messageReceiptRequest?: (conversation: IConversationOption, messageUId: string) => void;
|
|
3978
|
-
messageReceiptResponse?: (conversation: IConversationOption,
|
|
3979
|
-
[responseUserIdList: string]: number;
|
|
3980
|
-
}) => void;
|
|
4135
|
+
messageReceiptRequest?: (conversation: IConversationOption, messageUId: string, senderUserId: string) => void;
|
|
4136
|
+
messageReceiptResponse?: (conversation: IConversationOption, receivedUserId: string, messageUIdList: string[]) => void;
|
|
3981
4137
|
/**
|
|
3982
4138
|
* 敏感词被拦截监听
|
|
3983
4139
|
*/
|
|
3984
4140
|
messageBlocked?: IMessageBlockedListener;
|
|
4141
|
+
ultraGroupEnable?: (conversations: IReceivedConversation[]) => void;
|
|
4142
|
+
operateStatus?: (status: IOperateStatusNotify) => void;
|
|
4143
|
+
ultraGroupMessageExpansionUpdated?: (list: IReceivedMessage[]) => void;
|
|
4144
|
+
ultraGroupMessageModified?: (list: IReceivedMessage[]) => void;
|
|
4145
|
+
ultraGroupMessageRecalled?: (list: IReceivedMessage[]) => void;
|
|
3985
4146
|
}
|
|
3986
4147
|
interface IAPIContextOption {
|
|
3987
4148
|
/**
|
|
@@ -4118,6 +4279,11 @@ declare class APIContext {
|
|
|
4118
4279
|
private _typingStatusListener;
|
|
4119
4280
|
private _pullFinishedListener;
|
|
4120
4281
|
private _MessageBlockedListener;
|
|
4282
|
+
private _ultraGroupEnableListener;
|
|
4283
|
+
private _operateStatusListener;
|
|
4284
|
+
private _ultraGroupMessageExpansionUpdatedListener;
|
|
4285
|
+
private _ultraGroupMessageModifiedListener;
|
|
4286
|
+
private _ultraGroupMessageRecalledListener;
|
|
4121
4287
|
/**
|
|
4122
4288
|
* rtc 数据变更通知 pluginContext
|
|
4123
4289
|
*/
|
|
@@ -4238,6 +4404,18 @@ declare class APIContext {
|
|
|
4238
4404
|
* 删除会话
|
|
4239
4405
|
*/
|
|
4240
4406
|
removeConversation(conversationType: ConversationType, targetId: string, channelId?: string): Promise<ErrorCode>;
|
|
4407
|
+
/**
|
|
4408
|
+
* 获取超级群会话列表
|
|
4409
|
+
*/
|
|
4410
|
+
getUltraGroupList(): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
4411
|
+
/**
|
|
4412
|
+
* 获取超级群免打扰列表
|
|
4413
|
+
*/
|
|
4414
|
+
getBlockUltraGroupList(): Promise<IAsyncRes<IBaseConversationInfo[]>>;
|
|
4415
|
+
/**
|
|
4416
|
+
* 获取超级群置顶列表
|
|
4417
|
+
*/
|
|
4418
|
+
getTopUltraGroupList(): Promise<IAsyncRes<IBaseConversationInfo[]>>;
|
|
4241
4419
|
/**
|
|
4242
4420
|
* 清除会话消息未读数
|
|
4243
4421
|
*/
|
|
@@ -4485,14 +4663,37 @@ declare class APIContext {
|
|
|
4485
4663
|
* 获取所有本地置顶列表
|
|
4486
4664
|
*/
|
|
4487
4665
|
getTopConversationList(): Promise<IAsyncRes<IBaseConversationInfo[]>>;
|
|
4488
|
-
/**
|
|
4489
|
-
* 获取单个群聊会话 @ 消息未读数
|
|
4490
|
-
*/
|
|
4491
4666
|
getUnreadMentionedCount(conversation: IConversationOption): Promise<IAsyncRes<number>>;
|
|
4492
4667
|
/**
|
|
4493
|
-
|
|
4494
|
-
|
|
4668
|
+
* 获取所有群聊会话 @ 消息未读数
|
|
4669
|
+
*/
|
|
4495
4670
|
getAllUnreadMentionedCount(): Promise<IAsyncRes<number>>;
|
|
4671
|
+
/**
|
|
4672
|
+
* 超级群正在输入中
|
|
4673
|
+
* @param options
|
|
4674
|
+
*/
|
|
4675
|
+
sendUltraGroupTypingStatus(options: IConversationOption): Promise<IAsyncRes>;
|
|
4676
|
+
/**
|
|
4677
|
+
* 根据消息 ID 查询消息列表
|
|
4678
|
+
* @param options
|
|
4679
|
+
*/
|
|
4680
|
+
getUltraGroupMessageListByMessageUId(options: IUltraMsgQueryOptions): Promise<IAsyncRes>;
|
|
4681
|
+
/**
|
|
4682
|
+
* 扩展已有的超级群消息
|
|
4683
|
+
* @param options 设置的扩展
|
|
4684
|
+
*/
|
|
4685
|
+
expandUltraMessage(options: IUltraExMsgOptions): Promise<IAsyncRes<ErrorCode>>;
|
|
4686
|
+
/**
|
|
4687
|
+
* 修改已有的超级群消息
|
|
4688
|
+
* @param options 设置的扩展
|
|
4689
|
+
*/
|
|
4690
|
+
modifyMessage(options: IUltraModifyMsgOptions): Promise<IAsyncRes<ErrorCode>>;
|
|
4691
|
+
/**
|
|
4692
|
+
* 根据会话 ID 获取所有子频道 @ 消息未读数
|
|
4693
|
+
* @todo
|
|
4694
|
+
* @param targetId
|
|
4695
|
+
*/
|
|
4696
|
+
getUltraGroupUnreadMentionedCountByTargetId(targetId: string): Promise<IAsyncRes<number>>;
|
|
4496
4697
|
/**
|
|
4497
4698
|
* 调用非标准方法。所谓非标准方法,是为某些特定需求或产品添加,暂未作为标准接口添加至 API 层。
|
|
4498
4699
|
* 对于未实现的方法,接口响应 Unsupport 错误码
|
|
@@ -4890,6 +5091,11 @@ interface IEngineWatcher {
|
|
|
4890
5091
|
expansion: (event: IExpansionListenerData) => void;
|
|
4891
5092
|
tag: () => void;
|
|
4892
5093
|
conversationTag: () => void;
|
|
5094
|
+
ultraGroupEnable: (conversations: IReceivedConversation[]) => void;
|
|
5095
|
+
operateStatus: (status: IOperateStatusNotify) => void;
|
|
5096
|
+
ultraGroupMessageExpansionUpdated: (list: IReceivedMessage[]) => void;
|
|
5097
|
+
ultraGroupMessageModified: (list: IReceivedMessage[]) => void;
|
|
5098
|
+
ultraGroupMessageRecalled: (list: IReceivedMessage[]) => void;
|
|
4893
5099
|
/**
|
|
4894
5100
|
* RTC 数据变更
|
|
4895
5101
|
*/
|
|
@@ -5282,6 +5488,62 @@ declare abstract class AEngine implements IEngine {
|
|
|
5282
5488
|
* 获取当前 userId
|
|
5283
5489
|
*/
|
|
5284
5490
|
abstract getCurrentUserId(): string;
|
|
5491
|
+
/**
|
|
5492
|
+
* 获取所有超级群会话列表
|
|
5493
|
+
*/
|
|
5494
|
+
abstract getUltraGroupList(): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
5495
|
+
/**
|
|
5496
|
+
* 获取超级群免打扰列表
|
|
5497
|
+
*/
|
|
5498
|
+
abstract getBlockUltraGroupList(): Promise<IAsyncRes<IBaseConversationInfo[]>>;
|
|
5499
|
+
/**
|
|
5500
|
+
* 获取超级群置顶列表
|
|
5501
|
+
*/
|
|
5502
|
+
abstract getTopUltraGroupList(): Promise<IAsyncRes<IBaseConversationInfo[]>>;
|
|
5503
|
+
/**
|
|
5504
|
+
* 上报超级群会话已读时间
|
|
5505
|
+
* @param targetId
|
|
5506
|
+
* @param channelId
|
|
5507
|
+
*/
|
|
5508
|
+
abstract clearUltraUnreadcount(targetId: string, channelId: string): Promise<ErrorCode>;
|
|
5509
|
+
/**
|
|
5510
|
+
* 根据会话 ID 获取所有子频道 @ 消息未读数
|
|
5511
|
+
* @todo
|
|
5512
|
+
* @param targetId
|
|
5513
|
+
*/
|
|
5514
|
+
abstract getUltraGroupUnreadMentionedCountByTargetId(targetId: string): Promise<IAsyncRes<number>>;
|
|
5515
|
+
/**
|
|
5516
|
+
* 超级群消息发送
|
|
5517
|
+
* @param targetId
|
|
5518
|
+
* @param options
|
|
5519
|
+
*/
|
|
5520
|
+
abstract sendUltraMessage(targetId: string, options: ISendMsgOptions): Promise<IAsyncRes>;
|
|
5521
|
+
/**
|
|
5522
|
+
* 超级群消息正在输入中
|
|
5523
|
+
* @param options
|
|
5524
|
+
*/
|
|
5525
|
+
abstract sendUltraGroupTypingStatus(options: IConversationOption, operationType?: OperateStatus): Promise<IAsyncRes>;
|
|
5526
|
+
/**
|
|
5527
|
+
* 拉取超级群变更后的消息列表
|
|
5528
|
+
* @param time
|
|
5529
|
+
*/
|
|
5530
|
+
abstract getUltraGroupMessageListByMessageUId(options: IUltraMsgQueryOptions): Promise<IAsyncRes<Object>>;
|
|
5531
|
+
/**
|
|
5532
|
+
* 对已有的消息进行扩展
|
|
5533
|
+
* @param options
|
|
5534
|
+
*/
|
|
5535
|
+
abstract expandUltraMessage(options: IUltraExMsgOptions): Promise<IAsyncRes>;
|
|
5536
|
+
/**
|
|
5537
|
+
* 对已有的消息进行修改
|
|
5538
|
+
* @param options
|
|
5539
|
+
*/
|
|
5540
|
+
abstract modifyMessage(options: IUltraModifyMsgOptions): Promise<IAsyncRes>;
|
|
5541
|
+
/**
|
|
5542
|
+
* 超级群获取历史消息
|
|
5543
|
+
* @param targetId
|
|
5544
|
+
* @param options
|
|
5545
|
+
*/
|
|
5546
|
+
abstract getUltraHistoryMsg(targetId: string, options: IGetMsgOption): Promise<IAsyncRes>;
|
|
5285
5547
|
abstract getConversationListWithAllChannel(): IPromiseResult<IReceivedConversation[]>;
|
|
5286
5548
|
abstract getConversationListWithAllChannelByPage(index: number, limit: number): IPromiseResult<IReceivedConversation[]>;
|
|
5287
5549
|
/**
|
|
@@ -5828,6 +6090,7 @@ declare const getBrowser: (runtime: IRuntime) => {
|
|
|
5828
6090
|
* @param code 连接响应码
|
|
5829
6091
|
*/
|
|
5830
6092
|
declare const formatConnectResponseCode: (code: number) => ErrorCode;
|
|
6093
|
+
declare const clone: (target: any) => any;
|
|
5831
6094
|
|
|
5832
6095
|
/**
|
|
5833
6096
|
* Navi 缓存数据有效时长,单位毫秒
|
|
@@ -5918,4 +6181,4 @@ declare enum CONNECTION_TYPE {
|
|
|
5918
6181
|
*/
|
|
5919
6182
|
declare const version: string;
|
|
5920
6183
|
|
|
5921
|
-
export { AEngine, ANavi, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType as ChatroomMemberChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IReqRoomPKOptions, IRequest, IResRoomPKOptions, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NotificationStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, cloneByJSON, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidFileType, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, usingCppEngine, validate, version };
|
|
6184
|
+
export { AEngine, ANavi, APIContext, AppStorage, AssertRules, CONNECTION_TYPE, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomUserChangeType as ChatroomMemberChangeType, CometChannel, ConnectResultCode, ConnectionStatus, ConversationType, DelayTimer, ErrorCode, EventEmitter, FileType, HttpMethod, IAPIContextOption, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, ICancelRoomPKOptions, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomInfo, IChatroomListener, IChatroomListenerData, IChrmKVEntries, IChrmKVEntry, IConnectResult, IConnectionStatusListener, IConversationOption, IConversationStateListener, IConversationTag, IConversationTagListener, IDataChannelWatcher, IDeletedExpansion, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IInsertMsgOptions, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, IM_COMET_PULLMSG_TIMEOUT, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageListnenr, IMessageReader, IMessageReaderResponse, IMetionedData, INaviInfo, IPluginGenerator, IPromiseResult, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IReqRoomPKOptions, IRequest, IResRoomPKOptions, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStorage, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUltraExMsgOptions, IUltraModifyMsgOptions, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserProfile, IWatcher, IWebSocket, ItypingStateListener, KVString, LiveRole, LiveType, LogLevel, LogType, Logger, MAX_MESSAGE_CONTENT_BYTES, MINI_COMET_CONNECT_URIS, MINI_SOCKET_CONNECT_URIS, MentionedType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NotificationStatus, PING_REQ_TIMEOUT, PUBLIC_CLOUD_NAVI_URIS, PluginContext, RCAssertError, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATUS_MESSAGE, STORAGE_ROOT_KEY, TagChangeType, UploadMethod, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketChannel, appendUrl, assert, clone, cloneByJSON, forEach, formatConnectResponseCode, getBrowser, getMimeKey, getUploadFileName, indexOf, isArray, isArrayBuffer, isBoolean, isFunction, isHttpUrl, isInObject, isInclude, isNull, isNumber, isObject, isString, isUndefined, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversationType, isValidFileType, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, todo, usingCppEngine, validate, version };
|