@rongcloud/imlib-v2-adapter 5.7.2-beemrtc.1 → 5.7.2-enterprise.10

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IPushConfig, IUserProfile, ConversationType, MessageDirection, ReceivedStatus, IReadReceiptInfo, IConversationTag, LogLevel, EnableLogL, IRuntime, RCConnectionStatus, ErrorCode, ITypingMessage, IBlockedMessageInfo, IChatroomListenerData, IMessageDeliver, IGroupMessageDeliverStatus, ILogger, APIContext, AppStorage, IReceivedMessage, ISetConversationStatusOptions, IMessageReaderResponse, IInsertMessage, NotificationStatus, IGroupMessageDeliverInfo, IRemoveChatroomEntry, RTCMode, IPluginGenerator, INaviInfo, IChatroomEntry, IChatroomEntries, FileType, IUploadAuth, UploadMethod, ITagParam, ITagInfo, IExtraMethod, MentionedType as MentionedType$1 } from '@rongcloud/engine';
1
+ import { IPushConfig, IUserProfile, ConversationType, MessageDirection, ReceivedStatus, IReadReceiptInfo, IConversationTag, LogLevel, EnableLogL, IRuntime, RCConnectionStatus, ErrorCode, ITypingMessage, IBlockedMessageInfo, IChatroomListenerData, IMessageDeliver, IGroupMessageDeliverStatus, ILogger, APIContext, AppStorage, IMessageReaderResponse, IInsertMessage, NotificationStatus, IGroupMessageDeliverInfo, IRemoveChatroomEntry, RTCMode, IPluginGenerator, INaviInfo, IChatroomEntry, IChatroomEntries, FileType, IUploadAuth, UploadMethod, ITagParam, ITagInfo, IExtraMethod, IRTCUsers, IRTCRoomInfo, IJoinRTCRoomData, RTCApiType, KVString, IRtcTokenData, ConnectionStatus, MentionedType as MentionedType$1 } from '@rongcloud/engine';
2
2
  export { ChatroomEntryType, ChatroomUserChangeType, ConnectionStatus, ConversationType, EnableLogL, ErrorCode, FileType, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomListenerData, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IConversationTag, IDeletedExpansion, IEventListener, IExpansionListenerData, IGooglePushConfig, IInsertMessage, IJoinRTCRoomData, IMessageReader, IMessageReaderResponse, IPushConfig, IRTCRoomInfo, IRTCUsers, IReadReceiptInfo, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IRemoveChatroomEntry, IRtcTokenData, ITagInfo, ITagParam, ITypingMessage, ITypingUser, IUpdatedExpansion, IUploadAuth, IUserProfile, IiOSPushConfig, KVString, LogL, LogLevel, LogSource, LogTagId, MessageBlockType, MessageDirection, NotificationStatus, RCConnectionStatus, RTCApiType, RTCMode, ReceivedStatus, UploadMethod, logger } from '@rongcloud/engine';
3
3
 
4
4
  declare enum SentStatus {
@@ -84,10 +84,6 @@ interface ISendOptionsV2 {
84
84
  * 仅 electron 中有效。
85
85
  */
86
86
  resendMessageId?: number;
87
- /**
88
- * 标识该消息是否为重发消息,仅 electron 中有效。
89
- */
90
- isResend?: boolean;
91
87
  }
92
88
  interface IRecallOptionsV2 {
93
89
  /**
@@ -122,7 +118,6 @@ interface IReceivedMessageV2 {
122
118
  targetId: string;
123
119
  senderUserId: string;
124
120
  content: any;
125
- extraContent?: string;
126
121
  objectName: string;
127
122
  messageType: string;
128
123
  messageId: number;
@@ -705,14 +700,6 @@ declare class ChannelClient {
705
700
  * @returns
706
701
  */
707
702
  getFirstUnreadMessage(conversationType: ConversationType, targetId: string, callback: ICallback<IReceivedMessageV2 | null>): void;
708
- /**
709
- * 按msgUids批量获取会话内消息
710
- * @param targetId
711
- * @param conversationType
712
- * @param msgUids
713
- * @returns
714
- */
715
- getMessageByMsgUids(targetId: string, conversationType: ConversationType, msgUids: string[]): IReceivedMessage[];
716
703
  /**
717
704
  * 设置会话状态:是否置顶、是否免打扰
718
705
  * @param conversationType
@@ -721,8 +708,6 @@ declare class ChannelClient {
721
708
  * @param callback
722
709
  */
723
710
  setConversationStatus(conversationType: ConversationType, targetId: string, status: IConversationStatus, callback: ICallback): void;
724
- setConversationsMuteStatus(status: ISetConversationStatusOptions[]): void;
725
- setConversationsTopStatus(status: ISetConversationStatusOptions[]): void;
726
711
  /**
727
712
  * 发送消息
728
713
  * @param conversationType 会话类型
@@ -773,21 +758,6 @@ declare class ChannelClient {
773
758
  * @param callback
774
759
  */
775
760
  getMessageReader(messageUId: string, targetId: string, callback: ICallback<IMessageReaderResponse>): void;
776
- /**
777
- * 设置消息已读
778
- * @param targetId
779
- * @param beginMessageUId
780
- * @param endMessageUId
781
- * @param callback
782
- */
783
- setReadMessages(targetId: string, beginMessageUId: string, endMessageUId: string, callback: ICallback): void;
784
- /**
785
- * 获取群已读回执
786
- * @param messageUId
787
- * @param targetId
788
- * @param callback
789
- */
790
- getMessageReceiptInfo(messageUId: string, targetId: string, callback: ICallback<IMessageReaderResponse>): void;
791
761
  /**
792
762
  * 更新消息扩展
793
763
  * @param expansionDic 要更新的消息扩展信息键值对
@@ -1129,18 +1099,6 @@ declare class IMClient {
1129
1099
  * @param callback
1130
1100
  */
1131
1101
  setConversationStatus(conversationType: ConversationType, targetId: string, status: IConversationStatus, callback: ICallback): void;
1132
- /**
1133
- * 批量设置会话勿扰状态
1134
- * @param status
1135
- * @returns
1136
- */
1137
- setConversationsMuteStatus(status: ISetConversationStatusOptions[]): void;
1138
- /**
1139
- * 批量设置会话置顶状态
1140
- * @param status
1141
- * @returns
1142
- */
1143
- setConversationsTopStatus(status: ISetConversationStatusOptions[]): void;
1144
1102
  /**
1145
1103
  * 发送消息
1146
1104
  * @param conversationType 会话类型
@@ -1191,22 +1149,6 @@ declare class IMClient {
1191
1149
  * @param callback
1192
1150
  */
1193
1151
  getMessageReader(messageUId: string, targetId: string, callback: ICallback<IMessageReaderResponse>): void;
1194
- /**
1195
- * 获取群已读列表
1196
- * @param messageUId
1197
- * @param targetId
1198
- * @param callback
1199
- */
1200
- getMessageReceiptInfo(messageUId: string, targetId: string, callback: ICallback<IMessageReaderResponse>): void;
1201
- /**
1202
- * 设置消息已读
1203
- * @param targetId
1204
- * @param channelId
1205
- * @param beginMessageUId
1206
- * @param endMessageUId
1207
- * @param callback
1208
- */
1209
- setReadMessages(targetId: string, beginMessageUId: string, endMessageUId: string, callback: ICallback): void;
1210
1152
  /**
1211
1153
  * 更新消息扩展
1212
1154
  * @param expansionDic 要更新的消息扩展信息键值对
@@ -1566,12 +1508,6 @@ declare class IMClient {
1566
1508
  * @param messageId 本地消息 ID 或 messageUId
1567
1509
  */
1568
1510
  getMessage(messageId: number | string, callback: ICallback<IReceivedMessageV2>): void;
1569
- /**
1570
- * 设置消息附加信息
1571
- * @param messageId 本地消息 ID
1572
- * @param content 内容
1573
- */
1574
- setTextMessageExtra(messageId: number, value: string, callback: ICallback<boolean>): void;
1575
1511
  /**
1576
1512
  * 设置消息发送状态
1577
1513
  */
@@ -1660,14 +1596,6 @@ declare class IMClient {
1660
1596
  * @returns
1661
1597
  */
1662
1598
  getFirstUnreadMessage(conversationType: ConversationType, targetId: string, callback: ICallback<IReceivedMessageV2 | null>): void;
1663
- /**
1664
- * 按msgUids批量获取会话内消息
1665
- * @param targetId
1666
- * @param conversationType
1667
- * @param msgUids
1668
- * @returns
1669
- */
1670
- getMessageByMsgUids(targetId: string, conversationType: ConversationType, msgUids: string[]): IReceivedMessage[];
1671
1599
  /**
1672
1600
  * 获取会话免打扰状态
1673
1601
  * @param conversationType 会话类型
@@ -1692,6 +1620,59 @@ declare class IMClient {
1692
1620
  * @param callback
1693
1621
  */
1694
1622
  getPrivateMessageDeliverTime(messageUId: string, callback: ICallback<number>): void;
1623
+ getRTCUserInfoList(room: RTCRoomOption, callback: ICallback<{
1624
+ [userId: string]: {
1625
+ uris?: string;
1626
+ };
1627
+ }>): void;
1628
+ getRTCUserList(room: RTCRoomOption, callback: ICallback<IRTCUsers>): void;
1629
+ setRTCUserInfo(room: RTCRoomOption, info: {
1630
+ key: string;
1631
+ value: string;
1632
+ }, callback: ICallback<boolean>): void;
1633
+ removeRTCUserInfo(room: RTCRoomOption, info: {
1634
+ keys: string[];
1635
+ }, callback: ICallback<boolean>): void;
1636
+ getRTCRoomInfo(room: RTCRoomOption, callback: ICallback<IRTCRoomInfo>): void;
1637
+ setRTCRoomInfo(room: RTCRoomOption, info: any, callback: ICallback<boolean>): void;
1638
+ removeRTCRoomInfo(room: RTCRoomOption, info: any, callback: ICallback<boolean>): void;
1639
+ joinRTCRoom(room: RTCRoomOption, callback: ICallback<IJoinRTCRoomData>): void;
1640
+ quitRTCRoom(room: RTCRoomOption, callback: ICallback<boolean>): void;
1641
+ RTCPing(room: RTCRoomOption, callback: ICallback<boolean>): void;
1642
+ setRTCData(roomId: string, key: string, value: string, isInner: boolean, apiType: RTCApiType, callback: ICallback<boolean>, message?: {
1643
+ name: string;
1644
+ content: string;
1645
+ }): void;
1646
+ getRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType, callback: ICallback<KVString>): void;
1647
+ removeRTCData(roomId: string, keys: string[], isInner: boolean, apiType: RTCApiType, callback: ICallback<boolean>, message?: {
1648
+ name: string;
1649
+ content: string;
1650
+ }): void;
1651
+ setRTCUserData(roomId: string, key: string, value: string, isInner: boolean, callback: ICallback<boolean>, message?: {
1652
+ name: string;
1653
+ content: string;
1654
+ }): void;
1655
+ setRTCUserTotalRes(roomId: string, message: {
1656
+ name: string;
1657
+ content: string;
1658
+ }, valueInfo: string, objectName: string, callback: ICallback<boolean>): void;
1659
+ getRTCUserData(roomId: string, keys: string[], isInner: boolean, callback: ICallback<KVString>): void;
1660
+ removeRTCUserData(roomId: string, keys: string[], isInner: boolean, callback: ICallback<boolean>, message?: {
1661
+ name: string;
1662
+ content: string;
1663
+ }): void;
1664
+ setRTCRoomData(roomId: string, key: string, value: string, isInner: boolean, callback: ICallback<boolean>, message?: {
1665
+ name: string;
1666
+ content: string;
1667
+ }): void;
1668
+ getRTCRoomData(roomId: string, keys: string[], isInner: boolean, callback: ICallback<KVString>): void;
1669
+ removeRTCRoomData(roomId: string, keys: string[], isInner: boolean, callback: ICallback<boolean>, message?: any): void;
1670
+ setRTCOutData(roomId: string, data: any, type: number, callback: ICallback<boolean>, message?: any): void;
1671
+ getRTCOutData(roomId: string, userIds: string[], callback: ICallback): void;
1672
+ getRTCToken(room: RTCRoomOption, callback: ICallback<IRtcTokenData>): void;
1673
+ setRTCState(room: RTCRoomOption, content: {
1674
+ report: string;
1675
+ }, callback: ICallback<boolean>): void;
1695
1676
  }
1696
1677
 
1697
1678
  declare class MessageTag {
@@ -1714,6 +1695,8 @@ declare class MessageTag {
1714
1695
  isPersited: boolean);
1715
1696
  }
1716
1697
 
1698
+ declare type IRTCConnectionStatusListener = (status: ErrorCode | ConnectionStatus | RCConnectionStatus) => void;
1699
+ declare type IRTCMsgListener = (msg: IReceivedMessageV2) => void;
1717
1700
  declare type ICallLibReceivedMsgListener = {
1718
1701
  onReceived?: (msg: IReceivedMessageV2) => void;
1719
1702
  };
@@ -1823,6 +1806,74 @@ declare const _default$i: {
1823
1806
  * @param searchProps 消息属性名称列表
1824
1807
  */
1825
1808
  registerMessageType(messageType: string, objectName: string, mesasgeTag: MessageTag, searchProps: string[]): void;
1809
+ /**
1810
+ * RTC Lib 内部使用消息监听器
1811
+ */
1812
+ messageWatch(watcher: IRTCMsgListener): void;
1813
+ /**
1814
+ * 为兼容 RTCLib v3 与 CallLib v3,该函数予以保留,用于 RTC Lib 内部监听 IM 连接状态
1815
+ * @deprecated
1816
+ */
1817
+ statusWatch(watcher: IRTCConnectionStatusListener): void;
1818
+ /**
1819
+ * 兼容 RTC Lib
1820
+ */
1821
+ MessageType: {
1822
+ TextMessage: string;
1823
+ ImageMessage: string;
1824
+ ReferenceMessage: string;
1825
+ DiscussionNotificationMessage: string;
1826
+ VoiceMessage: string;
1827
+ RichContentMessage: string;
1828
+ HandshakeMessage: string;
1829
+ UnknownMessage: string;
1830
+ LocationMessage: string;
1831
+ InformationNotificationMessage: string;
1832
+ ContactNotificationMessage: string;
1833
+ ProfileNotificationMessage: string;
1834
+ CommandNotificationMessage: string;
1835
+ CommandMessage: string;
1836
+ TypingStatusMessage: string;
1837
+ ChangeModeResponseMessage: string;
1838
+ ChangeModeMessage: string;
1839
+ EvaluateMessage: string;
1840
+ HandShakeMessage: string;
1841
+ HandShakeResponseMessage: string;
1842
+ SuspendMessage: string;
1843
+ TerminateMessage: string;
1844
+ CustomerContact: string;
1845
+ CustomerStatusUpdateMessage: string;
1846
+ SyncReadStatusMessage: string;
1847
+ ReadReceiptRequestMessage: string;
1848
+ ReadReceiptResponseMessage: string;
1849
+ FileMessage: string;
1850
+ HQVoiceMessage: string;
1851
+ GIFMessage: string;
1852
+ SightMessage: string;
1853
+ AcceptMessage: string;
1854
+ RingingMessage: string;
1855
+ SummaryMessage: string;
1856
+ HungupMessage: string;
1857
+ InviteMessage: string;
1858
+ MediaModifyMessage: string;
1859
+ MemberModifyMessage: string;
1860
+ JrmfRedPacketMessage: string;
1861
+ JrmfRedPacketOpenedMessage: string;
1862
+ GroupNotificationMessage: string;
1863
+ PublicServiceRichContentMessage: string;
1864
+ PublicServiceMultiRichContentMessage: string;
1865
+ PublicServiceCommandMessage: string;
1866
+ RecallCommandMessage: string;
1867
+ ReadReceiptMessage: string;
1868
+ RCCombineMessage: string;
1869
+ ChrmKVNotificationMessage: string;
1870
+ LogCommandMessage: string;
1871
+ };
1872
+ /**
1873
+ * 兼容 CallLib v3.0 消息监听
1874
+ * @deprecated
1875
+ */
1876
+ _voipProvider: ICallLibReceivedMsgListener;
1826
1877
  };
1827
1878
 
1828
1879
  /**