@rongcloud/engine 5.9.9 → 5.10.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/README.md +1 -0
- package/index.d.ts +1022 -127
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -57,9 +57,21 @@ declare enum ConversationType {
|
|
|
57
57
|
* @category Interface
|
|
58
58
|
*/
|
|
59
59
|
interface IConversationTag {
|
|
60
|
+
/**
|
|
61
|
+
* 标签 ID
|
|
62
|
+
*/
|
|
60
63
|
tagId: string;
|
|
64
|
+
/**
|
|
65
|
+
* 标签名称
|
|
66
|
+
*/
|
|
61
67
|
tagName?: string;
|
|
68
|
+
/**
|
|
69
|
+
* 创建时间
|
|
70
|
+
*/
|
|
62
71
|
createdTime?: number;
|
|
72
|
+
/**
|
|
73
|
+
* 是否置顶
|
|
74
|
+
*/
|
|
63
75
|
isTop?: boolean;
|
|
64
76
|
}
|
|
65
77
|
/**
|
|
@@ -67,7 +79,13 @@ interface IConversationTag {
|
|
|
67
79
|
* @category Interface
|
|
68
80
|
*/
|
|
69
81
|
interface ITagParam {
|
|
82
|
+
/**
|
|
83
|
+
* 标签 ID
|
|
84
|
+
*/
|
|
70
85
|
tagId: string;
|
|
86
|
+
/**
|
|
87
|
+
* 标签名称
|
|
88
|
+
*/
|
|
71
89
|
tagName: string;
|
|
72
90
|
}
|
|
73
91
|
/**
|
|
@@ -88,9 +106,21 @@ interface ILocalTagStatus {
|
|
|
88
106
|
* @category Interface
|
|
89
107
|
*/
|
|
90
108
|
interface ITagInfo {
|
|
109
|
+
/**
|
|
110
|
+
* 标签 ID
|
|
111
|
+
*/
|
|
91
112
|
tagId: string;
|
|
113
|
+
/**
|
|
114
|
+
* 标签名称
|
|
115
|
+
*/
|
|
92
116
|
tagName: string;
|
|
117
|
+
/**
|
|
118
|
+
* 会话数量
|
|
119
|
+
*/
|
|
93
120
|
conversationCount: number;
|
|
121
|
+
/**
|
|
122
|
+
* 创建时间
|
|
123
|
+
*/
|
|
94
124
|
createdTime?: number;
|
|
95
125
|
}
|
|
96
126
|
/**
|
|
@@ -107,7 +137,13 @@ declare enum TagChangeType {
|
|
|
107
137
|
* @category Enum
|
|
108
138
|
*/
|
|
109
139
|
declare enum ChatroomEntryType {
|
|
140
|
+
/**
|
|
141
|
+
* 更新
|
|
142
|
+
*/
|
|
110
143
|
UPDATE = 1,
|
|
144
|
+
/**
|
|
145
|
+
* 删除
|
|
146
|
+
*/
|
|
111
147
|
DELETE = 2
|
|
112
148
|
}
|
|
113
149
|
|
|
@@ -364,6 +400,10 @@ interface IChatroomNotifyBan {
|
|
|
364
400
|
*/
|
|
365
401
|
extra: string;
|
|
366
402
|
}
|
|
403
|
+
/**
|
|
404
|
+
* 聊天室重新加入信息
|
|
405
|
+
* @category Type
|
|
406
|
+
*/
|
|
367
407
|
declare type IChatroomRejoinedInfo = IChatroomRejoinedFailed | IChatroomRejoinedSuccessed;
|
|
368
408
|
/**
|
|
369
409
|
* 聊天室信息
|
|
@@ -518,6 +558,7 @@ interface IChatroomEntries {
|
|
|
518
558
|
/**
|
|
519
559
|
* 聊天室加入成功返回值
|
|
520
560
|
* @5.8.3
|
|
561
|
+
* @category Interface
|
|
521
562
|
*/
|
|
522
563
|
interface IChatroomJoinResponse {
|
|
523
564
|
/**
|
|
@@ -547,7 +588,8 @@ interface IChatroomJoinResponse {
|
|
|
547
588
|
}
|
|
548
589
|
|
|
549
590
|
/**
|
|
550
|
-
*
|
|
591
|
+
* 日志打印等级定义
|
|
592
|
+
* @category Enum
|
|
551
593
|
*/
|
|
552
594
|
declare enum LogL {
|
|
553
595
|
/**
|
|
@@ -556,9 +598,6 @@ declare enum LogL {
|
|
|
556
598
|
STATISTICS = -2,
|
|
557
599
|
/**
|
|
558
600
|
* 未明确使用场景,暂未使用,控制台不打印
|
|
559
|
-
* TODO:
|
|
560
|
-
* 暂未明确使用场景,实时日志系统上报?
|
|
561
|
-
* 需要明确下为什么会有 -1,以及与 -2 的区别,并在注释中补充
|
|
562
601
|
*/
|
|
563
602
|
RECORD = -1,
|
|
564
603
|
/**
|
|
@@ -584,6 +623,7 @@ declare enum LogL {
|
|
|
584
623
|
}
|
|
585
624
|
/**
|
|
586
625
|
* 有效的日志等级声明
|
|
626
|
+
* @category Type
|
|
587
627
|
*/
|
|
588
628
|
declare type EnableLogL = LogL.DEBUG | LogL.INFO | LogL.WARN | LogL.ERROR;
|
|
589
629
|
|
|
@@ -664,7 +704,6 @@ declare abstract class BasicLogger implements ILogger {
|
|
|
664
704
|
setOutputLevel(level?: EnableLogL): void;
|
|
665
705
|
/**
|
|
666
706
|
* 由子类继承实现日志入库
|
|
667
|
-
* @override
|
|
668
707
|
*/
|
|
669
708
|
protected abstract flush(data: ILogData): void;
|
|
670
709
|
private _log;
|
|
@@ -741,6 +780,7 @@ declare enum MessageBlockType {
|
|
|
741
780
|
}
|
|
742
781
|
/**
|
|
743
782
|
* 消息被拦截源触发类型
|
|
783
|
+
* @category Enum
|
|
744
784
|
*/
|
|
745
785
|
declare enum MessageBlockSourceType {
|
|
746
786
|
/** 原始消息 */
|
|
@@ -768,6 +808,7 @@ declare enum MessageDirection {
|
|
|
768
808
|
|
|
769
809
|
/**
|
|
770
810
|
* 输入状态类型
|
|
811
|
+
* @category Enum
|
|
771
812
|
*/
|
|
772
813
|
declare enum OperateStatus {
|
|
773
814
|
typing = 0
|
|
@@ -1027,6 +1068,66 @@ declare enum ErrorCode {
|
|
|
1027
1068
|
* @deprecated
|
|
1028
1069
|
*/
|
|
1029
1070
|
INTERNALERRROR = 24015,
|
|
1071
|
+
/**
|
|
1072
|
+
* 24360
|
|
1073
|
+
* 没有设置该用户托管属性的权限
|
|
1074
|
+
* @since 5.9.10
|
|
1075
|
+
*/
|
|
1076
|
+
RC_USER_PROFILE_KEY_NOT_ALLOW_SDK_SET = 24360,
|
|
1077
|
+
/**
|
|
1078
|
+
* 24361
|
|
1079
|
+
* 用户托管基本属性的key列表中没有此key
|
|
1080
|
+
* @since 5.9.10
|
|
1081
|
+
*/
|
|
1082
|
+
RC_USER_PROFILE_KEY_NOT_EXIST = 24361,
|
|
1083
|
+
/**
|
|
1084
|
+
* 24362
|
|
1085
|
+
* 用户托管扩展属性的 key 列表中没有此 key
|
|
1086
|
+
* @since 5.9.10
|
|
1087
|
+
*/
|
|
1088
|
+
RC_USER_PROFILE_EXT_KEY_NOT_EXIST = 24362,
|
|
1089
|
+
/**
|
|
1090
|
+
* 24363
|
|
1091
|
+
* 超过了可以设置的用户托管扩展属性的最大上限
|
|
1092
|
+
* @since 5.9.10
|
|
1093
|
+
*/
|
|
1094
|
+
RC_USER_PROFILE_EXT_KV_COUNT_EXCEED_LIMIT = 24363,
|
|
1095
|
+
/**
|
|
1096
|
+
* 24364
|
|
1097
|
+
* 用户托管基本属性或扩展属性的Value,字符超过最大上限
|
|
1098
|
+
* @since 5.9.10
|
|
1099
|
+
*/
|
|
1100
|
+
RC_USER_PROFILE_VALUE_LENGTH_EXCEED_LIMIT = 24364,
|
|
1101
|
+
/**
|
|
1102
|
+
* 24365
|
|
1103
|
+
* 批量查询用户托管资料的数量超过了可以查询的上限 100 个
|
|
1104
|
+
* @since 5.9.10
|
|
1105
|
+
*/
|
|
1106
|
+
RC_USER_PROFILE_QUERY_COUNT_EXCEED_LIMIT = 24365,
|
|
1107
|
+
/**
|
|
1108
|
+
* 24366
|
|
1109
|
+
* 没有此用户
|
|
1110
|
+
* @since 5.9.10
|
|
1111
|
+
*/
|
|
1112
|
+
RC_USER_PROFILE_USER_NOT_EXIST = 24366,
|
|
1113
|
+
/**
|
|
1114
|
+
* 24367
|
|
1115
|
+
* 用户托管此属性Value只能是数字
|
|
1116
|
+
* @since 5.9.10
|
|
1117
|
+
*/
|
|
1118
|
+
RC_USER_PROFILE_VALUE_CAN_ONLY_BE_NUMBERS = 24367,
|
|
1119
|
+
/**
|
|
1120
|
+
* 24368
|
|
1121
|
+
* 用户托管此属性 Value 值超过设置取值范围
|
|
1122
|
+
* @since 5.9.10
|
|
1123
|
+
*/
|
|
1124
|
+
RC_USER_PROFILE_VALUE_EXCEED_RANGE = 24368,
|
|
1125
|
+
/**
|
|
1126
|
+
* 24369
|
|
1127
|
+
* 未开启用户信息托管功能
|
|
1128
|
+
* @since 5.9.10
|
|
1129
|
+
*/
|
|
1130
|
+
RC_USER_PROFILE_SERVICE_UNAVAILABLE = 24369,
|
|
1030
1131
|
/**
|
|
1031
1132
|
* 24401
|
|
1032
1133
|
* 超级群功能未开通
|
|
@@ -1751,6 +1852,12 @@ declare enum ErrorCode {
|
|
|
1751
1852
|
* 开发者调用接口传入的 mediaUrl 地址为空
|
|
1752
1853
|
*/
|
|
1753
1854
|
INVALID_PARAMETER_MEDIA_URL = 34235,
|
|
1855
|
+
/**
|
|
1856
|
+
* 34236
|
|
1857
|
+
* 开发者调用接口传入的 uniqueId 为空或者""
|
|
1858
|
+
* @since 5.9.10
|
|
1859
|
+
*/
|
|
1860
|
+
INVALID_PARAMETER_UNIQUE_ID = 34236,
|
|
1754
1861
|
/**
|
|
1755
1862
|
* 34238
|
|
1756
1863
|
* 非法的代理配置,RongIMProxy 为空或者非法
|
|
@@ -1983,6 +2090,18 @@ declare enum ErrorCode {
|
|
|
1983
2090
|
* @since 5.9.8
|
|
1984
2091
|
*/
|
|
1985
2092
|
ADDON_NOT_EXIST = 34311,
|
|
2093
|
+
/**
|
|
2094
|
+
* 34312
|
|
2095
|
+
* 参数 userProfile 非法
|
|
2096
|
+
* @since 5.9.10
|
|
2097
|
+
*/
|
|
2098
|
+
INVALID_PARAMETER_USER_PROFILE = 34312,
|
|
2099
|
+
/**
|
|
2100
|
+
* 34313
|
|
2101
|
+
* 参数 userProfileVisibility 非法
|
|
2102
|
+
* @since 5.9.10
|
|
2103
|
+
*/
|
|
2104
|
+
INVALID_PARAMETER_USER_PROFILE_VISIBILITY = 34313,
|
|
1986
2105
|
/**
|
|
1987
2106
|
* 35001
|
|
1988
2107
|
* 群组信息异常
|
|
@@ -2252,7 +2371,8 @@ declare enum ErrorCode {
|
|
|
2252
2371
|
|
|
2253
2372
|
/**
|
|
2254
2373
|
* 连接状态
|
|
2255
|
-
* @deprecated
|
|
2374
|
+
* @deprecated 已废弃,请使用 {@link RCConnectionStatus} 替代此枚举声明
|
|
2375
|
+
* @category Enum
|
|
2256
2376
|
*/
|
|
2257
2377
|
declare enum ConnectionStatus {
|
|
2258
2378
|
/**
|
|
@@ -2511,7 +2631,7 @@ declare enum MessageType {
|
|
|
2511
2631
|
}
|
|
2512
2632
|
|
|
2513
2633
|
/**
|
|
2514
|
-
* @deprecated 已废弃,请使用 NotificationLevel
|
|
2634
|
+
* @deprecated 已废弃,请使用 {@link NotificationLevel}
|
|
2515
2635
|
* @category Enum
|
|
2516
2636
|
*/
|
|
2517
2637
|
declare enum NotificationStatus {
|
|
@@ -2584,6 +2704,7 @@ interface IMetionedData {
|
|
|
2584
2704
|
/**
|
|
2585
2705
|
* 上传方法
|
|
2586
2706
|
* @category Enum
|
|
2707
|
+
* @hidden
|
|
2587
2708
|
*/
|
|
2588
2709
|
declare enum UploadMethod {
|
|
2589
2710
|
/**
|
|
@@ -2610,7 +2731,7 @@ declare enum UploadMethod {
|
|
|
2610
2731
|
|
|
2611
2732
|
/**
|
|
2612
2733
|
* @deprecated
|
|
2613
|
-
*
|
|
2734
|
+
* 日志级别,已废弃
|
|
2614
2735
|
* @category Enum
|
|
2615
2736
|
*/
|
|
2616
2737
|
declare enum LogLevel {
|
|
@@ -2806,6 +2927,13 @@ declare enum LogTagId {
|
|
|
2806
2927
|
L_PULL_SUBSCRIBED_USER_RELATION_R = "L-pull_subscribed_user_relation-R",
|
|
2807
2928
|
L_PULL_SUBSCRIBED_USER_STATUS_T = "L-pull_subscribed_user_status-T",
|
|
2808
2929
|
L_PULL_SUBSCRIBED_USER_STATUS_R = "L-pull_subscribed_user_status-R",
|
|
2930
|
+
L_OWN_USER_PROFILE_CHANGED_S = "L-own_user_profile_changed-S",
|
|
2931
|
+
L_QUERY_SUBSCRIBE_DATA_T = "L-query_subscribe_data-T",
|
|
2932
|
+
L_QUERY_SUBSCRIBE_DATA_R = "L-query_subscribe_data-R",
|
|
2933
|
+
L_PULL_USER_PROFILE_T = "L-pull_user_profile-T",
|
|
2934
|
+
L_PULL_USER_PROFILE_R = "L-pull_user_profile-R",
|
|
2935
|
+
L_PULL_OWN_PROFILE_T = "L-pull_own_profile-T",
|
|
2936
|
+
L_PULL_OWN_PROFILE_R = "L-pull_own_profile-R",
|
|
2809
2937
|
L_PARSE_JSON_E = "L-parse_json-E"
|
|
2810
2938
|
}
|
|
2811
2939
|
|
|
@@ -2873,6 +3001,11 @@ declare enum EConnectProtocol {
|
|
|
2873
3001
|
HTTPS = 12
|
|
2874
3002
|
}
|
|
2875
3003
|
|
|
3004
|
+
/**
|
|
3005
|
+
* iOS 时效性通知等级
|
|
3006
|
+
* @since 5.9.0 版本开始支持
|
|
3007
|
+
* @category Enum
|
|
3008
|
+
*/
|
|
2876
3009
|
declare enum InterruptionLevel {
|
|
2877
3010
|
PASSIVE = "passive",
|
|
2878
3011
|
ACTIVE = "active",
|
|
@@ -2887,7 +3020,13 @@ declare enum InterruptionLevel {
|
|
|
2887
3020
|
* @category Enum
|
|
2888
3021
|
*/
|
|
2889
3022
|
declare enum PushImportanceHonor {
|
|
3023
|
+
/**
|
|
3024
|
+
* 服务与通讯类消息
|
|
3025
|
+
*/
|
|
2890
3026
|
NORMAL = "NORMAL",
|
|
3027
|
+
/**
|
|
3028
|
+
* 资讯营销类消息
|
|
3029
|
+
*/
|
|
2891
3030
|
LOW = "LOW"
|
|
2892
3031
|
}
|
|
2893
3032
|
|
|
@@ -2902,13 +3041,36 @@ declare enum StoreKeys {
|
|
|
2902
3041
|
REALTIME_LOG_TIMESTAMP = "rc-realtime-log-timestamp"
|
|
2903
3042
|
}
|
|
2904
3043
|
|
|
3044
|
+
/**
|
|
3045
|
+
* 超级群频道类型
|
|
3046
|
+
* @category Enum
|
|
3047
|
+
*/
|
|
2905
3048
|
declare enum UltraGroupChannelType {
|
|
3049
|
+
/**
|
|
3050
|
+
* 超级群公有频道
|
|
3051
|
+
*/
|
|
2906
3052
|
PUBLIC = 0,
|
|
3053
|
+
/**
|
|
3054
|
+
* 超级群私有频道
|
|
3055
|
+
*/
|
|
2907
3056
|
PRIVATE = 1
|
|
2908
3057
|
}
|
|
3058
|
+
/**
|
|
3059
|
+
* 超级群频道类型变更通知
|
|
3060
|
+
* @category Enum
|
|
3061
|
+
*/
|
|
2909
3062
|
declare enum UltraGroupChannelChangeType {
|
|
3063
|
+
/**
|
|
3064
|
+
* 超级群公有频道变成了私有频道
|
|
3065
|
+
*/
|
|
2910
3066
|
PUBLIC_TO_PRIVATE = 2,
|
|
3067
|
+
/**
|
|
3068
|
+
* 超级群私有频道变成了公有频道
|
|
3069
|
+
*/
|
|
2911
3070
|
PRIVATE_TO_PUBLIC = 3,
|
|
3071
|
+
/**
|
|
3072
|
+
* 超级群频道变成了私有频道,但是当前用户不再该私有频道中
|
|
3073
|
+
*/
|
|
2912
3074
|
PUBLIC_TO_PRIVATE_USER_NOT_IN = 6
|
|
2913
3075
|
}
|
|
2914
3076
|
/** PB 结构 MsgChange 属性 changeType 对应枚举值 */
|
|
@@ -2988,6 +3150,7 @@ declare enum ConnectReason {
|
|
|
2988
3150
|
/**
|
|
2989
3151
|
* 用户在线状态
|
|
2990
3152
|
* @since 5.9.8
|
|
3153
|
+
* @category Enum
|
|
2991
3154
|
*/
|
|
2992
3155
|
declare enum OnlineStatus {
|
|
2993
3156
|
/**
|
|
@@ -3004,6 +3167,7 @@ declare enum OnlineStatus {
|
|
|
3004
3167
|
/**
|
|
3005
3168
|
* 平台信息
|
|
3006
3169
|
* @since 5.9.8
|
|
3170
|
+
* @category Enum
|
|
3007
3171
|
*/
|
|
3008
3172
|
declare enum PlatformInfo {
|
|
3009
3173
|
/**
|
|
@@ -3034,16 +3198,23 @@ declare enum PlatformInfo {
|
|
|
3034
3198
|
/**
|
|
3035
3199
|
* 订阅类型
|
|
3036
3200
|
* @since 5.9.8
|
|
3201
|
+
* @category Enum
|
|
3037
3202
|
*/
|
|
3038
3203
|
declare enum SubscribeType {
|
|
3039
3204
|
/**
|
|
3040
3205
|
* 在线状态订阅
|
|
3041
3206
|
*/
|
|
3042
|
-
ONLINE_STATUS = 1
|
|
3207
|
+
ONLINE_STATUS = 1,
|
|
3208
|
+
/**
|
|
3209
|
+
* 用户信息订阅
|
|
3210
|
+
* @since 5.10.1
|
|
3211
|
+
*/
|
|
3212
|
+
USER_PROFILE = 2
|
|
3043
3213
|
}
|
|
3044
3214
|
/**
|
|
3045
3215
|
* 订阅操作类型
|
|
3046
3216
|
* @since 5.9.8
|
|
3217
|
+
* @category Enum
|
|
3047
3218
|
*/
|
|
3048
3219
|
declare enum SubscribeOperationType {
|
|
3049
3220
|
/**
|
|
@@ -3055,6 +3226,15 @@ declare enum SubscribeOperationType {
|
|
|
3055
3226
|
*/
|
|
3056
3227
|
UNSUBSCRIBE = 1
|
|
3057
3228
|
}
|
|
3229
|
+
/**
|
|
3230
|
+
* 用户权限
|
|
3231
|
+
* @since 5.10.1
|
|
3232
|
+
* */
|
|
3233
|
+
declare enum UserProfileVisibility {
|
|
3234
|
+
NOT_SET = 0,
|
|
3235
|
+
INVISIBLE = 1,
|
|
3236
|
+
EVERYONE = 2
|
|
3237
|
+
}
|
|
3058
3238
|
|
|
3059
3239
|
/**
|
|
3060
3240
|
* 音视频模式
|
|
@@ -3159,7 +3339,7 @@ interface IGooglePushConfig {
|
|
|
3159
3339
|
*/
|
|
3160
3340
|
collapseKey?: string;
|
|
3161
3341
|
/**
|
|
3162
|
-
*
|
|
3342
|
+
* 图片 URL
|
|
3163
3343
|
*/
|
|
3164
3344
|
imageUrl?: string;
|
|
3165
3345
|
/**
|
|
@@ -3337,9 +3517,20 @@ interface IReadReceiptResponseInfo {
|
|
|
3337
3517
|
* @category Interface
|
|
3338
3518
|
*/
|
|
3339
3519
|
interface IMessageReader {
|
|
3520
|
+
/**
|
|
3521
|
+
* 已读时间
|
|
3522
|
+
*/
|
|
3340
3523
|
readTime: number;
|
|
3524
|
+
/**
|
|
3525
|
+
* 用户 ID
|
|
3526
|
+
*/
|
|
3341
3527
|
userId: string;
|
|
3342
3528
|
}
|
|
3529
|
+
/**
|
|
3530
|
+
* 已读回执响应数据结构V4
|
|
3531
|
+
* @category Interface
|
|
3532
|
+
* @hidden
|
|
3533
|
+
*/
|
|
3343
3534
|
interface IMessageReadReceiptV4Response {
|
|
3344
3535
|
list: IMessageReader[];
|
|
3345
3536
|
readCount: number;
|
|
@@ -3453,6 +3644,7 @@ interface ISyncReadStatusData extends IConversationOption {
|
|
|
3453
3644
|
* 消息的接收状态详情
|
|
3454
3645
|
* 该字段只适用 Electron 平台,只有 isRetrieved 只对 web 平台有效
|
|
3455
3646
|
* @since 5.9.3
|
|
3647
|
+
* @category Interface
|
|
3456
3648
|
*/
|
|
3457
3649
|
interface IReceivedStatusInfo {
|
|
3458
3650
|
/**
|
|
@@ -3533,12 +3725,12 @@ interface IReceivedMessage {
|
|
|
3533
3725
|
receivedTime: number;
|
|
3534
3726
|
/**
|
|
3535
3727
|
* 是否存储
|
|
3536
|
-
* @
|
|
3728
|
+
* @defaultValue true
|
|
3537
3729
|
*/
|
|
3538
3730
|
isPersited: boolean;
|
|
3539
3731
|
/**
|
|
3540
3732
|
* 是否计数
|
|
3541
|
-
* @
|
|
3733
|
+
* @defaultValue true
|
|
3542
3734
|
*/
|
|
3543
3735
|
isCounted: boolean;
|
|
3544
3736
|
/**
|
|
@@ -3618,7 +3810,13 @@ interface IReceivedMessage {
|
|
|
3618
3810
|
* @category Interface
|
|
3619
3811
|
*/
|
|
3620
3812
|
interface IFirstUnreadMessageInfo {
|
|
3813
|
+
/**
|
|
3814
|
+
* 消息 UID
|
|
3815
|
+
*/
|
|
3621
3816
|
messageUId: string;
|
|
3817
|
+
/**
|
|
3818
|
+
* 消息发送时间
|
|
3819
|
+
*/
|
|
3622
3820
|
sentTime: number;
|
|
3623
3821
|
}
|
|
3624
3822
|
/**
|
|
@@ -3647,24 +3845,78 @@ interface IUserProfile {
|
|
|
3647
3845
|
*/
|
|
3648
3846
|
portrait?: string;
|
|
3649
3847
|
}
|
|
3848
|
+
/**
|
|
3849
|
+
* 操作明细信息
|
|
3850
|
+
* @category Interface
|
|
3851
|
+
*/
|
|
3650
3852
|
interface IOperateInfo {
|
|
3853
|
+
/**
|
|
3854
|
+
* 操作目标 ID
|
|
3855
|
+
*/
|
|
3651
3856
|
targetId: string;
|
|
3857
|
+
/**
|
|
3858
|
+
* 频道 ID
|
|
3859
|
+
*/
|
|
3652
3860
|
channelId?: string;
|
|
3861
|
+
/**
|
|
3862
|
+
* 用户 ID
|
|
3863
|
+
*/
|
|
3653
3864
|
userId: string;
|
|
3865
|
+
/**
|
|
3866
|
+
* 操作类型
|
|
3867
|
+
*/
|
|
3654
3868
|
operationType: OperateStatus;
|
|
3869
|
+
/**
|
|
3870
|
+
* 服务端收到用户操作的上行时间
|
|
3871
|
+
*/
|
|
3655
3872
|
operationTime?: number;
|
|
3656
3873
|
}
|
|
3874
|
+
/**
|
|
3875
|
+
* 操作汇总
|
|
3876
|
+
* @category Interface
|
|
3877
|
+
*/
|
|
3657
3878
|
interface IOperateSummary {
|
|
3879
|
+
/**
|
|
3880
|
+
* 操作目标 ID
|
|
3881
|
+
*/
|
|
3658
3882
|
targetId: string;
|
|
3883
|
+
/**
|
|
3884
|
+
* 频道 ID
|
|
3885
|
+
*/
|
|
3659
3886
|
channelId?: string;
|
|
3887
|
+
/**
|
|
3888
|
+
* 数量
|
|
3889
|
+
*/
|
|
3660
3890
|
count: number;
|
|
3891
|
+
/**
|
|
3892
|
+
* 操作类型
|
|
3893
|
+
*/
|
|
3661
3894
|
operationType: OperateStatus;
|
|
3662
3895
|
}
|
|
3896
|
+
/**
|
|
3897
|
+
* 操作状态通知
|
|
3898
|
+
* @category Interface
|
|
3899
|
+
*/
|
|
3663
3900
|
interface IOperateStatusNotify {
|
|
3901
|
+
/**
|
|
3902
|
+
* 会话类型
|
|
3903
|
+
*/
|
|
3664
3904
|
conversationType: ConversationType;
|
|
3905
|
+
/**
|
|
3906
|
+
* 存在明细
|
|
3907
|
+
*/
|
|
3665
3908
|
hasInfo: boolean;
|
|
3909
|
+
/**
|
|
3910
|
+
* 存在汇总
|
|
3911
|
+
*/
|
|
3666
3912
|
hasSummary: boolean;
|
|
3913
|
+
/**
|
|
3914
|
+
* 明细
|
|
3915
|
+
*/
|
|
3667
3916
|
info: IOperateInfo[];
|
|
3917
|
+
/**
|
|
3918
|
+
* 汇总
|
|
3919
|
+
*/
|
|
3668
3920
|
summary: IOperateSummary[];
|
|
3669
3921
|
}
|
|
3670
3922
|
interface IRecallMsgOptions {
|
|
@@ -3865,24 +4117,76 @@ interface IInsertMsgOptions {
|
|
|
3865
4117
|
channelId: string;
|
|
3866
4118
|
directedUserIds?: string[];
|
|
3867
4119
|
}
|
|
4120
|
+
/**
|
|
4121
|
+
* 插入消息结构
|
|
4122
|
+
* @category Interface
|
|
4123
|
+
*/
|
|
3868
4124
|
interface IInsertMessage {
|
|
4125
|
+
/**
|
|
4126
|
+
* 会话类型
|
|
4127
|
+
*/
|
|
3869
4128
|
conversationType: number;
|
|
4129
|
+
/**
|
|
4130
|
+
* 会话 ID
|
|
4131
|
+
*/
|
|
3870
4132
|
targetId: string;
|
|
4133
|
+
/**
|
|
4134
|
+
* 频道 ID
|
|
4135
|
+
*/
|
|
3871
4136
|
channelId: string;
|
|
4137
|
+
/**
|
|
4138
|
+
* 消息方向
|
|
4139
|
+
*/
|
|
3872
4140
|
messageDirection: number;
|
|
4141
|
+
/**
|
|
4142
|
+
* 消息类型
|
|
4143
|
+
*/
|
|
3873
4144
|
messageType: string;
|
|
4145
|
+
/**
|
|
4146
|
+
* 消息内容
|
|
4147
|
+
*/
|
|
3874
4148
|
content: any;
|
|
4149
|
+
/**
|
|
4150
|
+
* 消息 ID
|
|
4151
|
+
*/
|
|
3875
4152
|
messageUId: string;
|
|
4153
|
+
/**
|
|
4154
|
+
* 发送者 ID
|
|
4155
|
+
*/
|
|
3876
4156
|
senderUserId: string;
|
|
4157
|
+
/**
|
|
4158
|
+
* 发送状态
|
|
4159
|
+
*/
|
|
3877
4160
|
sentStatus?: number;
|
|
4161
|
+
/**
|
|
4162
|
+
* 发送时间
|
|
4163
|
+
*/
|
|
3878
4164
|
sentTime?: number;
|
|
4165
|
+
/**
|
|
4166
|
+
* 是否存储
|
|
4167
|
+
*/
|
|
3879
4168
|
disableNotification?: boolean;
|
|
4169
|
+
/**
|
|
4170
|
+
* 是否计数
|
|
4171
|
+
*/
|
|
3880
4172
|
canIncludeExpansion?: boolean;
|
|
4173
|
+
/**
|
|
4174
|
+
* 消息扩展
|
|
4175
|
+
*/
|
|
3881
4176
|
expansion?: {
|
|
3882
4177
|
[key: string]: any;
|
|
3883
4178
|
} | null;
|
|
4179
|
+
/**
|
|
4180
|
+
* 接收状态
|
|
4181
|
+
*/
|
|
3884
4182
|
receivedStatus?: number;
|
|
4183
|
+
/**
|
|
4184
|
+
* 接收状态详情
|
|
4185
|
+
*/
|
|
3885
4186
|
receivedStatusInfo?: IReceivedStatusInfo;
|
|
4187
|
+
/**
|
|
4188
|
+
* 定向用户列表
|
|
4189
|
+
*/
|
|
3886
4190
|
directedUserIds?: string[];
|
|
3887
4191
|
/**
|
|
3888
4192
|
* 插入消息是否计入未读数: true 计数 false 不计数, 默认不计数
|
|
@@ -3896,6 +4200,9 @@ interface IInsertMessage {
|
|
|
3896
4200
|
* 来源
|
|
3897
4201
|
*/
|
|
3898
4202
|
source?: string;
|
|
4203
|
+
/**
|
|
4204
|
+
* 是否 @ 消息
|
|
4205
|
+
*/
|
|
3899
4206
|
isMentioned?: boolean;
|
|
3900
4207
|
}
|
|
3901
4208
|
interface ISendExMsgOptions {
|
|
@@ -3993,19 +4300,44 @@ interface IUltraMsgQueryOptions {
|
|
|
3993
4300
|
* @category Interface
|
|
3994
4301
|
*/
|
|
3995
4302
|
interface IBlockedMessageInfo {
|
|
4303
|
+
/**
|
|
4304
|
+
* 拦截消息 UID
|
|
4305
|
+
*/
|
|
3996
4306
|
blockedMessageUId: string;
|
|
4307
|
+
/**
|
|
4308
|
+
* 会话类型
|
|
4309
|
+
*/
|
|
3997
4310
|
conversationType: number;
|
|
4311
|
+
/**
|
|
4312
|
+
* 目标 ID
|
|
4313
|
+
*/
|
|
3998
4314
|
targetId: string;
|
|
4315
|
+
/**
|
|
4316
|
+
* 频道 ID
|
|
4317
|
+
*/
|
|
3999
4318
|
channelId: string;
|
|
4319
|
+
/**
|
|
4320
|
+
* 消息被拦截类型
|
|
4321
|
+
*/
|
|
4000
4322
|
blockType: MessageBlockType;
|
|
4323
|
+
/**
|
|
4324
|
+
* 应用服务器发送敏感词拦截消息中 content 里的 extra 字段,类型由用户定义
|
|
4325
|
+
*/
|
|
4001
4326
|
extra: any;
|
|
4327
|
+
/**
|
|
4328
|
+
* 消息被拦截源触发类型
|
|
4329
|
+
*/
|
|
4002
4330
|
sourceType?: MessageBlockSourceType;
|
|
4331
|
+
/**
|
|
4332
|
+
* 原消息内容
|
|
4333
|
+
*/
|
|
4003
4334
|
sourceContent?: {
|
|
4004
4335
|
[key: string]: any;
|
|
4005
4336
|
};
|
|
4006
4337
|
}
|
|
4007
4338
|
/**
|
|
4008
4339
|
* 超级群获取指定会话未读 @ 消息列表参数
|
|
4340
|
+
* @category Interface
|
|
4009
4341
|
*/
|
|
4010
4342
|
interface IUltraGroupUnreadMentionedOption {
|
|
4011
4343
|
/**
|
|
@@ -4027,6 +4359,7 @@ interface IUltraGroupUnreadMentionedOption {
|
|
|
4027
4359
|
}
|
|
4028
4360
|
/**
|
|
4029
4361
|
* 超级群获取指定会话 @ 未读消息列表结果
|
|
4362
|
+
* @category Interface
|
|
4030
4363
|
*/
|
|
4031
4364
|
interface IUltraUnreadMsg {
|
|
4032
4365
|
/**
|
|
@@ -4046,16 +4379,27 @@ interface IUltraUnreadMsg {
|
|
|
4046
4379
|
*/
|
|
4047
4380
|
messageType: string;
|
|
4048
4381
|
}
|
|
4382
|
+
/**
|
|
4383
|
+
* 被 @ 的用户信息
|
|
4384
|
+
* @category Interface
|
|
4385
|
+
*/
|
|
4049
4386
|
interface MentionedInfoBody {
|
|
4387
|
+
/**
|
|
4388
|
+
* @ 类型
|
|
4389
|
+
*/
|
|
4050
4390
|
type: MentionedType;
|
|
4051
4391
|
/**
|
|
4052
4392
|
* 被 @ 的用户 Id 列表,仅在 `type` 为 `2` 时有效
|
|
4053
4393
|
*/
|
|
4054
4394
|
userIdList?: string[];
|
|
4395
|
+
/**
|
|
4396
|
+
* 携带扩展信息,例如 `有人@你`
|
|
4397
|
+
*/
|
|
4055
4398
|
mentionedContent?: string;
|
|
4056
4399
|
}
|
|
4057
4400
|
/**
|
|
4058
4401
|
* 被合并的消息数据结构
|
|
4402
|
+
* @category Interface
|
|
4059
4403
|
*/
|
|
4060
4404
|
interface ICombinedMessage {
|
|
4061
4405
|
/**
|
|
@@ -4081,6 +4425,8 @@ interface ICombinedMessage {
|
|
|
4081
4425
|
}
|
|
4082
4426
|
/**
|
|
4083
4427
|
* v2 版本合并转发消息 content 结构
|
|
4428
|
+
* @category Interface
|
|
4429
|
+
* @hidden
|
|
4084
4430
|
*/
|
|
4085
4431
|
interface ICombineV2MessageContent {
|
|
4086
4432
|
/**
|
|
@@ -4116,41 +4462,81 @@ interface ICombineV2MessageContent {
|
|
|
4116
4462
|
* @category Interface
|
|
4117
4463
|
*/
|
|
4118
4464
|
interface IClearMessageOption {
|
|
4465
|
+
/**
|
|
4466
|
+
* 目标 ID
|
|
4467
|
+
*/
|
|
4119
4468
|
targetId: string;
|
|
4469
|
+
/**
|
|
4470
|
+
* 会话类型
|
|
4471
|
+
*/
|
|
4120
4472
|
conversationType: ConversationType;
|
|
4473
|
+
/**
|
|
4474
|
+
* 频道 ID
|
|
4475
|
+
*/
|
|
4121
4476
|
channelId?: string;
|
|
4477
|
+
/**
|
|
4478
|
+
* 时间
|
|
4479
|
+
*/
|
|
4122
4480
|
timestamp?: number;
|
|
4123
4481
|
}
|
|
4124
4482
|
|
|
4483
|
+
/**
|
|
4484
|
+
* 会话变更更新项
|
|
4485
|
+
* @category Interface
|
|
4486
|
+
*/
|
|
4125
4487
|
interface IUpdateItem {
|
|
4488
|
+
/**
|
|
4489
|
+
* 置顶变更
|
|
4490
|
+
*/
|
|
4126
4491
|
isTop?: {
|
|
4127
4492
|
time: number;
|
|
4128
4493
|
val: boolean;
|
|
4129
4494
|
};
|
|
4495
|
+
/**
|
|
4496
|
+
* 免打扰状态变更(低版本)
|
|
4497
|
+
*/
|
|
4130
4498
|
notificationStatus?: {
|
|
4131
4499
|
time: number;
|
|
4132
4500
|
val: NotificationStatus;
|
|
4133
4501
|
};
|
|
4502
|
+
/**
|
|
4503
|
+
* 免打扰状态变更
|
|
4504
|
+
*/
|
|
4134
4505
|
notificationLevel?: {
|
|
4135
4506
|
time: number;
|
|
4136
4507
|
val: NotificationLevel;
|
|
4137
4508
|
};
|
|
4509
|
+
/**
|
|
4510
|
+
* 存在 @ 信息
|
|
4511
|
+
*/
|
|
4138
4512
|
hasMentioned?: {
|
|
4139
4513
|
time: number;
|
|
4140
4514
|
val: boolean;
|
|
4141
4515
|
};
|
|
4516
|
+
/**
|
|
4517
|
+
* @ 信息
|
|
4518
|
+
*/
|
|
4142
4519
|
mentionedInfo?: {
|
|
4143
4520
|
time: number;
|
|
4144
4521
|
val: MentionedInfoBody;
|
|
4145
4522
|
};
|
|
4523
|
+
/**
|
|
4524
|
+
* 未读数变更
|
|
4525
|
+
*/
|
|
4146
4526
|
unreadMessageCount?: {
|
|
4147
4527
|
time: number;
|
|
4148
4528
|
val: number;
|
|
4149
4529
|
};
|
|
4530
|
+
/**
|
|
4531
|
+
* 标签变更
|
|
4532
|
+
*/
|
|
4150
4533
|
tags?: {
|
|
4151
4534
|
time: number;
|
|
4152
4535
|
val: IConversationTag;
|
|
4153
4536
|
};
|
|
4537
|
+
/**
|
|
4538
|
+
* 会话最后一条消息变更
|
|
4539
|
+
*/
|
|
4154
4540
|
latestMessage?: {
|
|
4155
4541
|
time: number;
|
|
4156
4542
|
val: IReceivedMessage;
|
|
@@ -4199,6 +4585,9 @@ interface IReceivedConversation {
|
|
|
4199
4585
|
* 2. 未开启免打扰
|
|
4200
4586
|
*/
|
|
4201
4587
|
notificationStatus: NotificationStatus;
|
|
4588
|
+
/**
|
|
4589
|
+
* 会话免打扰状态
|
|
4590
|
+
*/
|
|
4202
4591
|
notificationLevel?: NotificationLevel;
|
|
4203
4592
|
/**
|
|
4204
4593
|
* 会话是否已置顶
|
|
@@ -4238,7 +4627,14 @@ interface IReceivedConversation {
|
|
|
4238
4627
|
interface IReceivedConversationByTag extends IReceivedConversation {
|
|
4239
4628
|
isTopInTag: boolean;
|
|
4240
4629
|
}
|
|
4241
|
-
|
|
4630
|
+
/**
|
|
4631
|
+
* 超级群会话数据结构
|
|
4632
|
+
* @category Interface
|
|
4633
|
+
*/
|
|
4634
|
+
interface IUltraGroupConversation extends IReceivedConversation {
|
|
4635
|
+
/**
|
|
4636
|
+
* 超级群频道类型,只有 ConversationType 为超级群时该字段有效
|
|
4637
|
+
*/
|
|
4242
4638
|
channelType?: UltraGroupChannelType;
|
|
4243
4639
|
/**
|
|
4244
4640
|
* 第一条未读消息
|
|
@@ -4257,18 +4653,43 @@ interface ISetConversationStatusOptions {
|
|
|
4257
4653
|
channelId?: string;
|
|
4258
4654
|
isUpdateTime?: boolean;
|
|
4259
4655
|
}
|
|
4656
|
+
/**
|
|
4657
|
+
* 会话更新信息
|
|
4658
|
+
* @category Interface
|
|
4659
|
+
*/
|
|
4260
4660
|
interface IUpdatedConversation {
|
|
4661
|
+
/**
|
|
4662
|
+
* 更新项
|
|
4663
|
+
*/
|
|
4261
4664
|
updatedItems: {
|
|
4262
4665
|
[key: string]: {
|
|
4263
4666
|
time: number;
|
|
4264
4667
|
val: any;
|
|
4265
4668
|
};
|
|
4266
4669
|
};
|
|
4670
|
+
/**
|
|
4671
|
+
* 会话类型
|
|
4672
|
+
*/
|
|
4267
4673
|
conversationType: number;
|
|
4674
|
+
/**
|
|
4675
|
+
* 目标 ID
|
|
4676
|
+
*/
|
|
4268
4677
|
targetId: string;
|
|
4678
|
+
/**
|
|
4679
|
+
* 会话最后一条消息
|
|
4680
|
+
*/
|
|
4269
4681
|
latestMessage?: IReceivedMessage;
|
|
4682
|
+
/**
|
|
4683
|
+
* 会话未读数
|
|
4684
|
+
*/
|
|
4270
4685
|
unreadMessageCount?: number;
|
|
4686
|
+
/**
|
|
4687
|
+
* 是否有 @ 消息
|
|
4688
|
+
*/
|
|
4271
4689
|
hasMentioned?: boolean;
|
|
4690
|
+
/**
|
|
4691
|
+
* @ 信息详情
|
|
4692
|
+
*/
|
|
4272
4693
|
mentionedInfo?: {
|
|
4273
4694
|
/**
|
|
4274
4695
|
* `@ 类型,其中 1 为 @ 所有人,2 为 @ 部分人`
|
|
@@ -4279,14 +4700,29 @@ interface IUpdatedConversation {
|
|
|
4279
4700
|
*/
|
|
4280
4701
|
userIdList: string[];
|
|
4281
4702
|
};
|
|
4703
|
+
/**
|
|
4704
|
+
* 未读消息时间
|
|
4705
|
+
*/
|
|
4282
4706
|
lastUnreadTime?: number;
|
|
4707
|
+
/**
|
|
4708
|
+
* 免打扰状态
|
|
4709
|
+
*/
|
|
4283
4710
|
notificationStatus?: number;
|
|
4711
|
+
/**
|
|
4712
|
+
* 免打扰状态
|
|
4713
|
+
*/
|
|
4284
4714
|
notificationLevel?: number;
|
|
4715
|
+
/**
|
|
4716
|
+
* 是否置顶
|
|
4717
|
+
*/
|
|
4285
4718
|
isTop?: boolean;
|
|
4286
4719
|
/**
|
|
4287
|
-
*
|
|
4720
|
+
* 频道 ID
|
|
4288
4721
|
*/
|
|
4289
4722
|
channelId?: string;
|
|
4723
|
+
/**
|
|
4724
|
+
* 会话标签
|
|
4725
|
+
*/
|
|
4290
4726
|
tags?: IUpdatedConversation[];
|
|
4291
4727
|
versionTime?: number;
|
|
4292
4728
|
/**
|
|
@@ -4301,18 +4737,35 @@ interface IUpdatedConversation {
|
|
|
4301
4737
|
unreadMentionedMeCount?: number;
|
|
4302
4738
|
}
|
|
4303
4739
|
/**
|
|
4740
|
+
* 会话基础信息
|
|
4304
4741
|
* @category Interface
|
|
4305
4742
|
*/
|
|
4306
4743
|
interface IBaseConversationInfo {
|
|
4744
|
+
/**
|
|
4745
|
+
* 会话类型
|
|
4746
|
+
*/
|
|
4307
4747
|
conversationType: ConversationType;
|
|
4748
|
+
/**
|
|
4749
|
+
* 目标 ID
|
|
4750
|
+
*/
|
|
4308
4751
|
targetId: string;
|
|
4752
|
+
/**
|
|
4753
|
+
* 频道 ID
|
|
4754
|
+
*/
|
|
4309
4755
|
channelId: string;
|
|
4310
4756
|
}
|
|
4311
4757
|
/**
|
|
4758
|
+
* 会话标签变更通知内容
|
|
4312
4759
|
* @category Interface
|
|
4313
4760
|
*/
|
|
4314
4761
|
interface IConversationState extends IBaseConversationInfo {
|
|
4762
|
+
/**
|
|
4763
|
+
* 消息未读数
|
|
4764
|
+
*/
|
|
4315
4765
|
unreadCount: number;
|
|
4766
|
+
/**
|
|
4767
|
+
* @ 消息未读数
|
|
4768
|
+
*/
|
|
4316
4769
|
unreadMentionedCount: number;
|
|
4317
4770
|
}
|
|
4318
4771
|
/**
|
|
@@ -4320,57 +4773,141 @@ interface IConversationState extends IBaseConversationInfo {
|
|
|
4320
4773
|
* @category Interface
|
|
4321
4774
|
*/
|
|
4322
4775
|
interface IUltraGroupOption {
|
|
4776
|
+
/**
|
|
4777
|
+
* 目标 ID
|
|
4778
|
+
*/
|
|
4323
4779
|
targetId: string;
|
|
4780
|
+
/**
|
|
4781
|
+
* 频道 ID
|
|
4782
|
+
*/
|
|
4324
4783
|
channelId?: string;
|
|
4325
4784
|
}
|
|
4326
4785
|
/**
|
|
4786
|
+
* 获取超级群列表传参
|
|
4327
4787
|
* @category Interface
|
|
4328
4788
|
*/
|
|
4329
4789
|
interface IGetUltraGroupListOption {
|
|
4790
|
+
/**
|
|
4791
|
+
* 目标 ID
|
|
4792
|
+
*/
|
|
4330
4793
|
targetId?: string;
|
|
4794
|
+
/**
|
|
4795
|
+
* 超级群频道类型
|
|
4796
|
+
*/
|
|
4331
4797
|
channelType?: UltraGroupChannelType;
|
|
4332
4798
|
}
|
|
4333
4799
|
/**
|
|
4334
4800
|
* 超级群频道变更通知内容
|
|
4801
|
+
* @category Interface
|
|
4335
4802
|
*/
|
|
4336
4803
|
interface IUltraChannelChangeInfo {
|
|
4804
|
+
/**
|
|
4805
|
+
* 目标 ID
|
|
4806
|
+
*/
|
|
4337
4807
|
targetId: string;
|
|
4808
|
+
/**
|
|
4809
|
+
* 频道 ID
|
|
4810
|
+
*/
|
|
4338
4811
|
channelId: string;
|
|
4812
|
+
/**
|
|
4813
|
+
* 超级群频道类型
|
|
4814
|
+
*/
|
|
4339
4815
|
channelType: UltraGroupChannelType;
|
|
4816
|
+
/**
|
|
4817
|
+
* 超级群频道类型变更通知
|
|
4818
|
+
*/
|
|
4340
4819
|
changeType: UltraGroupChannelChangeType;
|
|
4341
4820
|
}
|
|
4342
4821
|
/**
|
|
4343
4822
|
* 超级群私有频道用户被踢出白名单通知内容
|
|
4823
|
+
* @category Interface
|
|
4344
4824
|
*/
|
|
4345
4825
|
interface IUltraChannelUserKickedInfo {
|
|
4826
|
+
/**
|
|
4827
|
+
* 目标 ID
|
|
4828
|
+
*/
|
|
4346
4829
|
targetId: string;
|
|
4830
|
+
/**
|
|
4831
|
+
* 频道 ID
|
|
4832
|
+
*/
|
|
4347
4833
|
channelId: string;
|
|
4834
|
+
/**
|
|
4835
|
+
* 超级群频道类型
|
|
4836
|
+
*/
|
|
4348
4837
|
channelType: UltraGroupChannelType;
|
|
4838
|
+
/**
|
|
4839
|
+
* 用户 ID
|
|
4840
|
+
*/
|
|
4349
4841
|
userId: string;
|
|
4350
4842
|
}
|
|
4351
4843
|
/**
|
|
4352
4844
|
* 超级群频道被删除通知内容
|
|
4845
|
+
* @category Interface
|
|
4353
4846
|
*/
|
|
4354
4847
|
interface IUltraChannelDeleteInfo {
|
|
4848
|
+
/**
|
|
4849
|
+
* 目标 ID
|
|
4850
|
+
*/
|
|
4355
4851
|
targetId: string;
|
|
4852
|
+
/**
|
|
4853
|
+
* 频道 ID
|
|
4854
|
+
*/
|
|
4356
4855
|
channelId: string;
|
|
4856
|
+
/**
|
|
4857
|
+
* 超级群频道类型
|
|
4858
|
+
*/
|
|
4357
4859
|
channelType: UltraGroupChannelType;
|
|
4860
|
+
/**
|
|
4861
|
+
* 删除时间
|
|
4862
|
+
*/
|
|
4358
4863
|
deleteTime: number;
|
|
4359
4864
|
}
|
|
4360
4865
|
/**
|
|
4361
4866
|
* 获取超级群获取指定会话未读 @ 消息列表
|
|
4867
|
+
* @category Interface
|
|
4362
4868
|
*/
|
|
4363
4869
|
interface IUltraUnreadConversation {
|
|
4870
|
+
/**
|
|
4871
|
+
* 目标 ID
|
|
4872
|
+
*/
|
|
4364
4873
|
targetId: string;
|
|
4874
|
+
/**
|
|
4875
|
+
* 频道 ID
|
|
4876
|
+
*/
|
|
4365
4877
|
channelId?: string;
|
|
4366
4878
|
}
|
|
4879
|
+
/**
|
|
4880
|
+
* 超级群频道变更通知内容
|
|
4881
|
+
* @category Interface
|
|
4882
|
+
*/
|
|
4367
4883
|
interface IUltraGroupUnreadInfo {
|
|
4884
|
+
/**
|
|
4885
|
+
* 会话类型
|
|
4886
|
+
*/
|
|
4368
4887
|
type: ConversationType;
|
|
4888
|
+
/**
|
|
4889
|
+
* 目标 ID
|
|
4890
|
+
*/
|
|
4369
4891
|
targetId: string;
|
|
4892
|
+
/**
|
|
4893
|
+
* 频道 ID
|
|
4894
|
+
*/
|
|
4370
4895
|
channelId: string;
|
|
4896
|
+
/**
|
|
4897
|
+
* 未读消息数
|
|
4898
|
+
*/
|
|
4371
4899
|
unreadMessageCount: number;
|
|
4900
|
+
/**
|
|
4901
|
+
* @ 消息数
|
|
4902
|
+
*/
|
|
4372
4903
|
mentionedCount: number;
|
|
4904
|
+
/**
|
|
4905
|
+
* @ 我的消息数
|
|
4906
|
+
*/
|
|
4373
4907
|
mentionedMeCount: number;
|
|
4908
|
+
/**
|
|
4909
|
+
* 免打扰级别
|
|
4910
|
+
*/
|
|
4374
4911
|
notificationLevel: NotificationLevel;
|
|
4375
4912
|
}
|
|
4376
4913
|
|
|
@@ -4481,6 +5018,8 @@ interface IUploadAuth {
|
|
|
4481
5018
|
}
|
|
4482
5019
|
/**
|
|
4483
5020
|
* 下载鉴权信息
|
|
5021
|
+
* @category Interface
|
|
5022
|
+
* @hidden
|
|
4484
5023
|
*/
|
|
4485
5024
|
interface IDownloadAuth {
|
|
4486
5025
|
/**
|
|
@@ -4536,6 +5075,7 @@ interface IRTCUserData {
|
|
|
4536
5075
|
}
|
|
4537
5076
|
|
|
4538
5077
|
/**
|
|
5078
|
+
* 异步任务结果结构
|
|
4539
5079
|
* @category Interface
|
|
4540
5080
|
*/
|
|
4541
5081
|
interface IAsyncRes<T = void> {
|
|
@@ -4556,6 +5096,7 @@ interface IAsyncRes<T = void> {
|
|
|
4556
5096
|
* 异步任务结果定义
|
|
4557
5097
|
* @description
|
|
4558
5098
|
* 通过 `Promise.resolve` 来处理预期内的异常,进而通过 Uncatch Promise Error 暴露预期外的异常
|
|
5099
|
+
* @category Type
|
|
4559
5100
|
*/
|
|
4560
5101
|
declare type IPromiseResult<T = void> = Promise<IAsyncRes<T>>;
|
|
4561
5102
|
interface IConnectResult {
|
|
@@ -4571,6 +5112,7 @@ interface IConnectResult {
|
|
|
4571
5112
|
|
|
4572
5113
|
/**
|
|
4573
5114
|
* 代理信息
|
|
5115
|
+
* @hidden
|
|
4574
5116
|
*/
|
|
4575
5117
|
interface IProxy {
|
|
4576
5118
|
socksHost: string;
|
|
@@ -4587,7 +5129,7 @@ declare enum HttpMethod {
|
|
|
4587
5129
|
interface IRequest {
|
|
4588
5130
|
url: string;
|
|
4589
5131
|
/**
|
|
4590
|
-
* @
|
|
5132
|
+
* @defaultValue `HttpMethod.GET`
|
|
4591
5133
|
*/
|
|
4592
5134
|
method?: HttpMethod | 'GET' | 'POST' | 'PUT';
|
|
4593
5135
|
/**
|
|
@@ -4630,6 +5172,10 @@ interface IStorage {
|
|
|
4630
5172
|
removeItem(key: string): void;
|
|
4631
5173
|
clear(): void;
|
|
4632
5174
|
}
|
|
5175
|
+
/**
|
|
5176
|
+
* http 请求返回数据结构
|
|
5177
|
+
* @category Interface
|
|
5178
|
+
*/
|
|
4633
5179
|
interface IResponse {
|
|
4634
5180
|
status: number;
|
|
4635
5181
|
data?: string;
|
|
@@ -5054,9 +5600,15 @@ interface INaviInfo {
|
|
|
5054
5600
|
/**
|
|
5055
5601
|
* #用户订阅驱动配置,位标记!!:
|
|
5056
5602
|
* 第一位:是否开启在线状态订阅功能
|
|
5057
|
-
*
|
|
5603
|
+
* 第二位:是否开启用户信息托管订阅功能
|
|
5058
5604
|
*/
|
|
5059
5605
|
subDriven?: number;
|
|
5606
|
+
/**
|
|
5607
|
+
* 用户托管功能开关
|
|
5608
|
+
* 0: 关闭(默认)
|
|
5609
|
+
# 1: 开启
|
|
5610
|
+
*/
|
|
5611
|
+
userProfile?: number;
|
|
5060
5612
|
}
|
|
5061
5613
|
|
|
5062
5614
|
declare type Content = string | number | boolean | null;
|
|
@@ -5186,7 +5738,6 @@ declare abstract class BasicStatistic {
|
|
|
5186
5738
|
constructor(_appkey: string, _id: string, _type: Type);
|
|
5187
5739
|
/**
|
|
5188
5740
|
* 由子类继承实现日志入库
|
|
5189
|
-
* @override
|
|
5190
5741
|
*/
|
|
5191
5742
|
protected abstract flush(data: IStatisticData): void;
|
|
5192
5743
|
private _writer;
|
|
@@ -5276,7 +5827,7 @@ declare abstract class BasicStatisticReporter {
|
|
|
5276
5827
|
private _sendLogs2Realtime;
|
|
5277
5828
|
/**
|
|
5278
5829
|
* 实时日志上报
|
|
5279
|
-
*
|
|
5830
|
+
* IndexDBReporter 重载此方法,增加同设备多页面多端时进程竞争检测
|
|
5280
5831
|
*/
|
|
5281
5832
|
protected realtimeReport(uri: string, level: StatisticL, itv: number): Promise<void>;
|
|
5282
5833
|
protected abstract compressStatistics(logs: IStatisticData[]): Promise<{
|
|
@@ -5321,7 +5872,7 @@ declare class IndexDBStatisticReporter extends BasicStatisticReporter {
|
|
|
5321
5872
|
statisticLog: BasicStatistic);
|
|
5322
5873
|
protected send(req: IRequest): Promise<IResponse>;
|
|
5323
5874
|
/**
|
|
5324
|
-
*
|
|
5875
|
+
* 实时日志上报启动
|
|
5325
5876
|
*/
|
|
5326
5877
|
checkStart(navi: INaviInfo): Promise<void>;
|
|
5327
5878
|
protected compressStatistics(logs: IStatisticData[]): Promise<{
|
|
@@ -5346,6 +5897,10 @@ declare class IndexDBStatisticReporter extends BasicStatisticReporter {
|
|
|
5346
5897
|
protected realtimeReport(url: string, level: StatisticL, itv: number): Promise<void>;
|
|
5347
5898
|
}
|
|
5348
5899
|
|
|
5900
|
+
/**
|
|
5901
|
+
* 区域码枚举
|
|
5902
|
+
* @category Enum
|
|
5903
|
+
*/
|
|
5349
5904
|
declare enum AreaCode {
|
|
5350
5905
|
/**
|
|
5351
5906
|
* 默认值,北京数据中心
|
|
@@ -5626,6 +6181,7 @@ interface IProcessInfo {
|
|
|
5626
6181
|
|
|
5627
6182
|
/**
|
|
5628
6183
|
* 连接状态定义枚举值
|
|
6184
|
+
* @category Enum
|
|
5629
6185
|
*/
|
|
5630
6186
|
declare enum RCConnectionStatus {
|
|
5631
6187
|
/**
|
|
@@ -5806,55 +6362,288 @@ declare abstract class AConnectionMgr {
|
|
|
5806
6362
|
*/
|
|
5807
6363
|
private _failedCount;
|
|
5808
6364
|
/**
|
|
5809
|
-
* 允许连续 PING 超时次数,超出指定次数后会主动关闭 socket 并重新连接
|
|
6365
|
+
* 允许连续 PING 超时次数,超出指定次数后会主动关闭 socket 并重新连接
|
|
6366
|
+
*/
|
|
6367
|
+
private readonly ALLOW_FAILED_TIMES;
|
|
6368
|
+
/**
|
|
6369
|
+
* 启动心跳计时器
|
|
6370
|
+
*/
|
|
6371
|
+
private checkAlive;
|
|
6372
|
+
/**
|
|
6373
|
+
* 关闭连接
|
|
6374
|
+
* @param inReconnect
|
|
6375
|
+
*/
|
|
6376
|
+
protected abstract close(inReconnect: boolean, closeDB?: boolean): void;
|
|
6377
|
+
/**
|
|
6378
|
+
* 完成一次 ping 过程,并返回响应状态码
|
|
6379
|
+
* @param timeout 超时时间
|
|
6380
|
+
*/
|
|
6381
|
+
protected abstract sendPing(timeout: number): Promise<ErrorCode>;
|
|
6382
|
+
/**
|
|
6383
|
+
* 业务层主动断开连接时调用
|
|
6384
|
+
*/
|
|
6385
|
+
disconnect(closeDB?: boolean): Promise<void>;
|
|
6386
|
+
/**
|
|
6387
|
+
* 清理重连计时器
|
|
6388
|
+
*/
|
|
6389
|
+
private stopReconnectTimer;
|
|
6390
|
+
private _getProtocol;
|
|
6391
|
+
/**
|
|
6392
|
+
* 获取 CMP 列表
|
|
6393
|
+
*/
|
|
6394
|
+
protected getCmpList(navi: INaviInfo, isTcp?: boolean): IServerAddressData[];
|
|
6395
|
+
/**
|
|
6396
|
+
* 修改 CMP 权重
|
|
6397
|
+
*/
|
|
6398
|
+
protected updateCmpWeight(cmpUrl: string, isRise: boolean, isQuick?: boolean): void;
|
|
6399
|
+
private clearCmpWeightCache;
|
|
6400
|
+
}
|
|
6401
|
+
|
|
6402
|
+
/**
|
|
6403
|
+
* 查询错误码是否为服务下发的 disconnect 通知 status 所转换
|
|
6404
|
+
* @param code
|
|
6405
|
+
* @description 排除重定向 31006,因 disconnect 和 connAck 都包含元素可被转换为 31006
|
|
6406
|
+
*/
|
|
6407
|
+
declare const isDisconnectCode: (code: ErrorCode) => boolean;
|
|
6408
|
+
/**
|
|
6409
|
+
* 查询错误码是否为服务下发的 connAck status 所转换
|
|
6410
|
+
* @param code
|
|
6411
|
+
* @description 排除重定向 31006,因 disconnect 和 connAck 都包含元素可被转换为 31006
|
|
6412
|
+
*/
|
|
6413
|
+
declare const isConnnectAckCode: (code: ErrorCode) => boolean;
|
|
6414
|
+
|
|
6415
|
+
/**
|
|
6416
|
+
* 用户信息
|
|
6417
|
+
* @since 5.10.1
|
|
6418
|
+
* */
|
|
6419
|
+
interface IUserProfileInfo {
|
|
6420
|
+
/**
|
|
6421
|
+
* 用户Id
|
|
6422
|
+
* @description 不可修改
|
|
6423
|
+
*/
|
|
6424
|
+
userId?: string;
|
|
6425
|
+
/**
|
|
6426
|
+
* 昵称
|
|
6427
|
+
*/
|
|
6428
|
+
name?: string;
|
|
6429
|
+
/**
|
|
6430
|
+
* 头像地址
|
|
6431
|
+
*/
|
|
6432
|
+
portraitUri?: string;
|
|
6433
|
+
/**
|
|
6434
|
+
* 用户应用号
|
|
6435
|
+
* @description 不可修改
|
|
6436
|
+
*/
|
|
6437
|
+
uniqueId?: string;
|
|
6438
|
+
/**
|
|
6439
|
+
* Email
|
|
6440
|
+
*/
|
|
6441
|
+
email?: string;
|
|
6442
|
+
/**
|
|
6443
|
+
* 生日
|
|
6444
|
+
*/
|
|
6445
|
+
birthday?: string;
|
|
6446
|
+
/**
|
|
6447
|
+
* 性别
|
|
6448
|
+
*/
|
|
6449
|
+
gender?: number;
|
|
6450
|
+
/**
|
|
6451
|
+
* 所在地
|
|
6452
|
+
*/
|
|
6453
|
+
location?: string;
|
|
6454
|
+
/**
|
|
6455
|
+
* 角色
|
|
6456
|
+
*/
|
|
6457
|
+
role?: number;
|
|
6458
|
+
/**
|
|
6459
|
+
* 级别
|
|
6460
|
+
*/
|
|
6461
|
+
level?: number;
|
|
6462
|
+
/**
|
|
6463
|
+
* 用户扩展信息
|
|
6464
|
+
*/
|
|
6465
|
+
extraProfile?: {
|
|
6466
|
+
[key: string]: string;
|
|
6467
|
+
};
|
|
6468
|
+
}
|
|
6469
|
+
interface IServerProfileInfo {
|
|
6470
|
+
key: string;
|
|
6471
|
+
value: string;
|
|
6472
|
+
}
|
|
6473
|
+
interface IUserProfileServerData {
|
|
6474
|
+
version: number;
|
|
6475
|
+
userId: string;
|
|
6476
|
+
userProfile: IServerProfileInfo[];
|
|
6477
|
+
userExtProfile: IServerProfileInfo[];
|
|
6478
|
+
}
|
|
6479
|
+
|
|
6480
|
+
/**
|
|
6481
|
+
* 订阅关系信息
|
|
6482
|
+
* @since 5.9.8
|
|
6483
|
+
* @category Interface
|
|
6484
|
+
*/
|
|
6485
|
+
interface ISubscribeRelationInfo {
|
|
6486
|
+
/**
|
|
6487
|
+
* 用户 ID
|
|
6488
|
+
*/
|
|
6489
|
+
userId: string;
|
|
6490
|
+
/**
|
|
6491
|
+
* 订阅类型
|
|
6492
|
+
*/
|
|
6493
|
+
subscribeType: SubscribeType;
|
|
6494
|
+
/**
|
|
6495
|
+
* 订阅时间
|
|
6496
|
+
*/
|
|
6497
|
+
subscribeTime: number;
|
|
6498
|
+
/**
|
|
6499
|
+
* 订阅有效期,单位为秒
|
|
6500
|
+
*/
|
|
6501
|
+
expiry: number;
|
|
6502
|
+
/**
|
|
6503
|
+
* 订阅状态
|
|
6504
|
+
*/
|
|
6505
|
+
operationType: SubscribeOperationType;
|
|
6506
|
+
}
|
|
6507
|
+
/**
|
|
6508
|
+
* 订阅用户状态信息
|
|
6509
|
+
* @category Interface
|
|
6510
|
+
* @since 5.9.8
|
|
6511
|
+
*/
|
|
6512
|
+
interface ISubscribeUserStatusInfo {
|
|
6513
|
+
/**
|
|
6514
|
+
* 用户 ID
|
|
6515
|
+
*/
|
|
6516
|
+
userId: string;
|
|
6517
|
+
/**
|
|
6518
|
+
* 订阅类型
|
|
6519
|
+
*/
|
|
6520
|
+
subscribeType: SubscribeType;
|
|
6521
|
+
/**
|
|
6522
|
+
* 订阅时间
|
|
6523
|
+
*/
|
|
6524
|
+
subscribeTime: number;
|
|
6525
|
+
/**
|
|
6526
|
+
* 订阅有效期,单位为秒
|
|
6527
|
+
*/
|
|
6528
|
+
expiry: number;
|
|
6529
|
+
/**
|
|
6530
|
+
* 订阅在线状态详情
|
|
6531
|
+
*/
|
|
6532
|
+
details?: ISubscribeStatusDetail[];
|
|
6533
|
+
/**
|
|
6534
|
+
* 用户信息
|
|
6535
|
+
* @since 5.10.1
|
|
6536
|
+
*/
|
|
6537
|
+
userProfile?: IUserProfileInfo;
|
|
6538
|
+
}
|
|
6539
|
+
/**
|
|
6540
|
+
* 在线状态信息
|
|
6541
|
+
* @category Interface
|
|
6542
|
+
* @since 5.9.8
|
|
6543
|
+
*/
|
|
6544
|
+
interface ISubscribeStatusDetail {
|
|
6545
|
+
/**
|
|
6546
|
+
* 状态变更时间
|
|
5810
6547
|
*/
|
|
5811
|
-
|
|
6548
|
+
changeTime: number;
|
|
5812
6549
|
/**
|
|
5813
|
-
*
|
|
6550
|
+
* 状态值
|
|
5814
6551
|
*/
|
|
5815
|
-
|
|
6552
|
+
eventValue: number;
|
|
5816
6553
|
/**
|
|
5817
|
-
*
|
|
5818
|
-
* @param inReconnect
|
|
6554
|
+
* 平台
|
|
5819
6555
|
*/
|
|
5820
|
-
|
|
6556
|
+
platform: PlatformInfo;
|
|
6557
|
+
}
|
|
6558
|
+
/**
|
|
6559
|
+
* 订阅关系服务端数据
|
|
6560
|
+
*/
|
|
6561
|
+
interface ISubscribeRelationServerData {
|
|
6562
|
+
subUsers: {
|
|
6563
|
+
subUserId: string;
|
|
6564
|
+
}[];
|
|
6565
|
+
subType: SubscribeType;
|
|
6566
|
+
subTime: number;
|
|
6567
|
+
expiry: number;
|
|
6568
|
+
opType: SubscribeOperationType;
|
|
6569
|
+
}
|
|
6570
|
+
/**
|
|
6571
|
+
* 订阅用户状态服务端数据
|
|
6572
|
+
*/
|
|
6573
|
+
interface ISubscribeUserStatusServerData {
|
|
5821
6574
|
/**
|
|
5822
|
-
*
|
|
5823
|
-
* @param timeout 超时时间
|
|
6575
|
+
* 服务端废弃字段
|
|
5824
6576
|
*/
|
|
5825
|
-
|
|
6577
|
+
statusStr: string;
|
|
6578
|
+
subUserId: string;
|
|
6579
|
+
data: ISubData[];
|
|
6580
|
+
subType: SubscribeType;
|
|
6581
|
+
}
|
|
6582
|
+
interface ISubData {
|
|
6583
|
+
platformInfo: PlatformInfo;
|
|
6584
|
+
value: OnlineStatus;
|
|
6585
|
+
versionTime: number;
|
|
6586
|
+
}
|
|
6587
|
+
declare type SubscribeDataType = {
|
|
6588
|
+
[SubscribeType.ONLINE_STATUS]: ISubscribeUserLocalOnlineData;
|
|
6589
|
+
[SubscribeType.USER_PROFILE]: ISubscribeUserLocalProfileData;
|
|
6590
|
+
};
|
|
6591
|
+
interface ISubscribeLocalStore {
|
|
6592
|
+
[SubscribeType.ONLINE_STATUS]: {
|
|
6593
|
+
[userId: string]: SubscribeDataType[SubscribeType.ONLINE_STATUS];
|
|
6594
|
+
};
|
|
6595
|
+
[SubscribeType.USER_PROFILE]: {
|
|
6596
|
+
[userId: string]: SubscribeDataType[SubscribeType.USER_PROFILE];
|
|
6597
|
+
};
|
|
6598
|
+
}
|
|
6599
|
+
interface ISubscribeUserLocalBaseData {
|
|
5826
6600
|
/**
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
6601
|
+
* 订阅时间
|
|
6602
|
+
*/
|
|
6603
|
+
subscribeTime: number;
|
|
5830
6604
|
/**
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
private _getProtocol;
|
|
6605
|
+
* 订阅有效期,单位为秒
|
|
6606
|
+
*/
|
|
6607
|
+
expiry: number;
|
|
5835
6608
|
/**
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
6609
|
+
* 用户 ID
|
|
6610
|
+
*/
|
|
6611
|
+
userId: string;
|
|
5839
6612
|
/**
|
|
5840
|
-
*
|
|
6613
|
+
* 订阅类型
|
|
5841
6614
|
*/
|
|
5842
|
-
|
|
5843
|
-
private clearCmpWeightCache;
|
|
6615
|
+
subscribeType: SubscribeType;
|
|
5844
6616
|
}
|
|
5845
|
-
|
|
5846
6617
|
/**
|
|
5847
|
-
*
|
|
5848
|
-
* @param code
|
|
5849
|
-
* @description 排除重定向 31006,因 disconnect 和 connAck 都包含元素可被转换为 31006
|
|
6618
|
+
* 本地缓存的在线状态数据结构
|
|
5850
6619
|
*/
|
|
5851
|
-
|
|
6620
|
+
interface ISubscribeUserLocalOnlineData extends ISubscribeUserLocalBaseData {
|
|
6621
|
+
/**
|
|
6622
|
+
* 订阅在线状态
|
|
6623
|
+
*/
|
|
6624
|
+
statusMap: {
|
|
6625
|
+
-readonly [key in PlatformInfo]?: {
|
|
6626
|
+
changeTime: number;
|
|
6627
|
+
eventValue: number;
|
|
6628
|
+
};
|
|
6629
|
+
};
|
|
6630
|
+
}
|
|
5852
6631
|
/**
|
|
5853
|
-
*
|
|
5854
|
-
* @param code
|
|
5855
|
-
* @description 排除重定向 31006,因 disconnect 和 connAck 都包含元素可被转换为 31006
|
|
6632
|
+
* 本地缓存的用户信息数据结构
|
|
5856
6633
|
*/
|
|
5857
|
-
|
|
6634
|
+
interface ISubscribeUserLocalProfileData extends ISubscribeUserLocalBaseData {
|
|
6635
|
+
/**
|
|
6636
|
+
* 订阅用户信息
|
|
6637
|
+
*/
|
|
6638
|
+
profile?: {
|
|
6639
|
+
info: IUserProfileInfo;
|
|
6640
|
+
version: number;
|
|
6641
|
+
};
|
|
6642
|
+
/**
|
|
6643
|
+
* 是否已订阅(加此字段的原因是要缓存未订阅的数据)
|
|
6644
|
+
*/
|
|
6645
|
+
isSubscribed: boolean;
|
|
6646
|
+
}
|
|
5858
6647
|
|
|
5859
6648
|
/**
|
|
5860
6649
|
* 进程内缓存数据
|
|
@@ -6418,6 +7207,30 @@ interface IEngine {
|
|
|
6418
7207
|
* 测试代理
|
|
6419
7208
|
*/
|
|
6420
7209
|
testProxy(proxy: IProxy, testHost: string): Promise<IResponse>;
|
|
7210
|
+
/**
|
|
7211
|
+
* 订阅用户状态事件
|
|
7212
|
+
*/
|
|
7213
|
+
subscribeUser(userIds: string[], subscribeType: SubscribeType, expiry: number): Promise<IAsyncRes<string[]>>;
|
|
7214
|
+
/**
|
|
7215
|
+
* 取消订阅用户状态事件
|
|
7216
|
+
*/
|
|
7217
|
+
unSubscribeUser(userIds: string[], subscribeType: SubscribeType): Promise<IAsyncRes<void>>;
|
|
7218
|
+
/**
|
|
7219
|
+
* 获取已订阅列表
|
|
7220
|
+
*/
|
|
7221
|
+
getSubscribeUserList(subscribeType: SubscribeType, count: number, offset: number): Promise<IAsyncRes<ISubscribeUserStatusInfo[]>>;
|
|
7222
|
+
/**
|
|
7223
|
+
* 获取指定用户的在线状态
|
|
7224
|
+
*/
|
|
7225
|
+
getSubscribeUserStatus(subscribeType: SubscribeType, userIds: string[]): Promise<IAsyncRes<ISubscribeUserStatusInfo[]>>;
|
|
7226
|
+
updateMyUserProfile(profile: IUserProfileInfo): Promise<IAsyncRes<{
|
|
7227
|
+
errorKey: string;
|
|
7228
|
+
}>>;
|
|
7229
|
+
getUserProfiles(userIds: string[]): Promise<IAsyncRes<IUserProfileInfo[]>>;
|
|
7230
|
+
getMyUserProfile(): Promise<IAsyncRes<IUserProfileInfo>>;
|
|
7231
|
+
updateMyUserProfileVisibility(visibility: UserProfileVisibility): Promise<IAsyncRes>;
|
|
7232
|
+
getMyUserProfileVisibility(): Promise<IAsyncRes<UserProfileVisibility>>;
|
|
7233
|
+
searchUserProfileByUniqueId(uniqueId: string): Promise<IAsyncRes<IUserProfileInfo>>;
|
|
6421
7234
|
rtcPing(roomId: string, mode: number, broadcastType?: number): Promise<IAsyncRes<any>>;
|
|
6422
7235
|
rtcSignaling(roomId: string, method: string, isQuery: boolean, sourceData: any): Promise<{
|
|
6423
7236
|
code: ErrorCode;
|
|
@@ -6496,10 +7309,25 @@ interface IUpdatedExpansion {
|
|
|
6496
7309
|
* @category Interface
|
|
6497
7310
|
*/
|
|
6498
7311
|
interface IDeletedExpansion {
|
|
7312
|
+
/**
|
|
7313
|
+
* 删除扩展 key 列表
|
|
7314
|
+
*/
|
|
6499
7315
|
deletedKeys: string[];
|
|
7316
|
+
/**
|
|
7317
|
+
* 消息 UID
|
|
7318
|
+
*/
|
|
6500
7319
|
messageUId: string;
|
|
7320
|
+
/**
|
|
7321
|
+
* 会话类型
|
|
7322
|
+
*/
|
|
6501
7323
|
conversationType: ConversationType;
|
|
7324
|
+
/**
|
|
7325
|
+
* 目标 ID
|
|
7326
|
+
*/
|
|
6502
7327
|
targetId: string;
|
|
7328
|
+
/**
|
|
7329
|
+
* 频道 ID
|
|
7330
|
+
*/
|
|
6503
7331
|
channelId: string;
|
|
6504
7332
|
}
|
|
6505
7333
|
/**
|
|
@@ -6507,7 +7335,13 @@ interface IDeletedExpansion {
|
|
|
6507
7335
|
* @category Interface
|
|
6508
7336
|
*/
|
|
6509
7337
|
interface IExpansionListenerData {
|
|
7338
|
+
/**
|
|
7339
|
+
* 更新扩展
|
|
7340
|
+
*/
|
|
6510
7341
|
updatedExpansion?: IUpdatedExpansion;
|
|
7342
|
+
/**
|
|
7343
|
+
* 删除扩展
|
|
7344
|
+
*/
|
|
6511
7345
|
deletedExpansion?: IDeletedExpansion;
|
|
6512
7346
|
}
|
|
6513
7347
|
/**
|
|
@@ -6525,10 +7359,20 @@ interface IIsValidExpansion {
|
|
|
6525
7359
|
|
|
6526
7360
|
/**
|
|
6527
7361
|
* typing信息
|
|
7362
|
+
* @category Interface
|
|
6528
7363
|
*/
|
|
6529
7364
|
interface ITypingUser {
|
|
7365
|
+
/**
|
|
7366
|
+
* 用户 ID
|
|
7367
|
+
*/
|
|
6530
7368
|
userId: string;
|
|
7369
|
+
/**
|
|
7370
|
+
* 时间戳
|
|
7371
|
+
*/
|
|
6531
7372
|
timestamp: number;
|
|
7373
|
+
/**
|
|
7374
|
+
* 消息类型
|
|
7375
|
+
*/
|
|
6532
7376
|
messageType: string;
|
|
6533
7377
|
}
|
|
6534
7378
|
/**
|
|
@@ -6539,11 +7383,24 @@ interface ITypingInfo {
|
|
|
6539
7383
|
}
|
|
6540
7384
|
/**
|
|
6541
7385
|
* typing通知消息接口
|
|
7386
|
+
* @category Interface
|
|
6542
7387
|
*/
|
|
6543
7388
|
interface ITypingMessage {
|
|
7389
|
+
/**
|
|
7390
|
+
* 目标 ID
|
|
7391
|
+
*/
|
|
6544
7392
|
targetId: string;
|
|
7393
|
+
/**
|
|
7394
|
+
* 会话类型
|
|
7395
|
+
*/
|
|
6545
7396
|
conversationType: ConversationType;
|
|
7397
|
+
/**
|
|
7398
|
+
* 频道 ID
|
|
7399
|
+
*/
|
|
6546
7400
|
channelId?: string;
|
|
7401
|
+
/**
|
|
7402
|
+
* typing信息列表
|
|
7403
|
+
*/
|
|
6547
7404
|
list: Array<ITypingUser>;
|
|
6548
7405
|
}
|
|
6549
7406
|
|
|
@@ -6697,24 +7554,60 @@ interface IGroupMessageDeliverStatus {
|
|
|
6697
7554
|
|
|
6698
7555
|
/**
|
|
6699
7556
|
* 用户组变更数据
|
|
7557
|
+
* @category Interface
|
|
6700
7558
|
*/
|
|
6701
7559
|
interface IUserGroupChangeData {
|
|
7560
|
+
/**
|
|
7561
|
+
* 会话标识
|
|
7562
|
+
*/
|
|
6702
7563
|
conversation: IConversationIdentifier;
|
|
7564
|
+
/**
|
|
7565
|
+
* 用户组 ID 列表
|
|
7566
|
+
*/
|
|
6703
7567
|
userGroupIds: string[];
|
|
6704
7568
|
}
|
|
6705
7569
|
/**
|
|
6706
7570
|
* 频道和用户组关系变更数据
|
|
7571
|
+
* @category Interface
|
|
6707
7572
|
*/
|
|
6708
7573
|
interface IChannelAndUserGroupChangeData {
|
|
7574
|
+
/**
|
|
7575
|
+
* 会话信息
|
|
7576
|
+
*/
|
|
6709
7577
|
conversation: IConversationOption;
|
|
7578
|
+
/**
|
|
7579
|
+
* 超级群频道类型
|
|
7580
|
+
*/
|
|
6710
7581
|
channelType: UltraGroupChannelType;
|
|
7582
|
+
/**
|
|
7583
|
+
* ID 列表
|
|
7584
|
+
*/
|
|
6711
7585
|
userGroupIds: string[];
|
|
6712
7586
|
}
|
|
7587
|
+
/**
|
|
7588
|
+
* 超级群用户组状态数据
|
|
7589
|
+
* @category Interface
|
|
7590
|
+
*/
|
|
6713
7591
|
interface IUserGroupStatusInfo {
|
|
7592
|
+
/**
|
|
7593
|
+
* 用户组解散
|
|
7594
|
+
*/
|
|
6714
7595
|
userGroupDisband?: IUserGroupChangeData[];
|
|
7596
|
+
/**
|
|
7597
|
+
* 用户被加入用户组
|
|
7598
|
+
*/
|
|
6715
7599
|
userAdded?: IUserGroupChangeData[];
|
|
7600
|
+
/**
|
|
7601
|
+
* 用户被从用户组中移除
|
|
7602
|
+
*/
|
|
6716
7603
|
userRemoved?: IUserGroupChangeData[];
|
|
7604
|
+
/**
|
|
7605
|
+
* 用户组绑定频道
|
|
7606
|
+
*/
|
|
6717
7607
|
userGroupBindChannel?: IChannelAndUserGroupChangeData[];
|
|
7608
|
+
/**
|
|
7609
|
+
* 用户组解绑频道
|
|
7610
|
+
*/
|
|
6718
7611
|
userGroupUnBindChannel?: IChannelAndUserGroupChangeData[];
|
|
6719
7612
|
}
|
|
6720
7613
|
|
|
@@ -6805,94 +7698,27 @@ interface INaviContextInfo {
|
|
|
6805
7698
|
reason: ConnectReason;
|
|
6806
7699
|
}
|
|
6807
7700
|
|
|
6808
|
-
/**
|
|
6809
|
-
* 订阅关系信息
|
|
6810
|
-
* @since 5.9.8
|
|
6811
|
-
*/
|
|
6812
|
-
interface ISubscribeRelationInfo {
|
|
6813
|
-
/**
|
|
6814
|
-
* 用户 ID
|
|
6815
|
-
*/
|
|
6816
|
-
userId: string;
|
|
6817
|
-
/**
|
|
6818
|
-
* 订阅类型
|
|
6819
|
-
*/
|
|
6820
|
-
subscribeType: SubscribeType;
|
|
6821
|
-
/**
|
|
6822
|
-
* 订阅时间
|
|
6823
|
-
*/
|
|
6824
|
-
subscribeTime: number;
|
|
6825
|
-
/**
|
|
6826
|
-
* 订阅有效期,单位为秒
|
|
6827
|
-
*/
|
|
6828
|
-
expiry: number;
|
|
6829
|
-
/**
|
|
6830
|
-
* 订阅状态
|
|
6831
|
-
*/
|
|
6832
|
-
operationType: SubscribeOperationType;
|
|
6833
|
-
}
|
|
6834
|
-
/**
|
|
6835
|
-
* 订阅用户状态信息
|
|
6836
|
-
* @since 5.9.8
|
|
6837
|
-
*/
|
|
6838
|
-
interface ISubscribeUserStatusInfo {
|
|
6839
|
-
/**
|
|
6840
|
-
* 用户 ID
|
|
6841
|
-
*/
|
|
6842
|
-
userId: string;
|
|
6843
|
-
/**
|
|
6844
|
-
* 订阅类型
|
|
6845
|
-
*/
|
|
6846
|
-
subscribeType: SubscribeType;
|
|
6847
|
-
/**
|
|
6848
|
-
* 订阅时间
|
|
6849
|
-
*/
|
|
6850
|
-
subscribeTime: number;
|
|
6851
|
-
/**
|
|
6852
|
-
* 订阅有效期,单位为秒
|
|
6853
|
-
*/
|
|
6854
|
-
expiry: number;
|
|
6855
|
-
/**
|
|
6856
|
-
* 订阅状态详情
|
|
6857
|
-
*/
|
|
6858
|
-
details?: ISubscribeStatusDetail[];
|
|
6859
|
-
}
|
|
6860
|
-
/**
|
|
6861
|
-
* 在线状态信息
|
|
6862
|
-
* @since 5.9.8
|
|
6863
|
-
*/
|
|
6864
|
-
interface ISubscribeStatusDetail {
|
|
6865
|
-
/**
|
|
6866
|
-
* 状态变更时间
|
|
6867
|
-
*/
|
|
6868
|
-
changeTime: number;
|
|
6869
|
-
/**
|
|
6870
|
-
* 状态值
|
|
6871
|
-
*/
|
|
6872
|
-
eventValue: number;
|
|
6873
|
-
/**
|
|
6874
|
-
* 平台
|
|
6875
|
-
*/
|
|
6876
|
-
platform: PlatformInfo;
|
|
6877
|
-
}
|
|
6878
|
-
|
|
6879
7701
|
/**
|
|
6880
7702
|
* 定义已废弃,请使用 `IRemoveChatroomEntries` 替换
|
|
6881
7703
|
* @deprecated
|
|
7704
|
+
* @category Type
|
|
6882
7705
|
*/
|
|
6883
7706
|
declare type IRemoveChatRoomEntries = IRemoveChatroomEntries;
|
|
6884
7707
|
/**
|
|
6885
7708
|
* 定义已废弃,请使用 `IChatroomEntry` 替换
|
|
7709
|
+
* @category Type
|
|
6886
7710
|
* @deprecated
|
|
6887
7711
|
*/
|
|
6888
7712
|
declare type IChatRoomEntry = IChatroomEntry;
|
|
6889
7713
|
/**
|
|
6890
7714
|
* 定义已废弃,请使用 `IChatroomEntries` 替换
|
|
7715
|
+
* @category Type
|
|
6891
7716
|
* @deprecated
|
|
6892
7717
|
*/
|
|
6893
7718
|
declare type IChatRoomEntries = IChatroomEntries;
|
|
6894
7719
|
/**
|
|
6895
7720
|
* 定义已废弃,请使用 `IRemoveChatroomEntry` 替换
|
|
7721
|
+
* @category Type
|
|
6896
7722
|
* @deprecated
|
|
6897
7723
|
*/
|
|
6898
7724
|
declare type IRemoveChatRoomEntry = IRemoveChatroomEntry;
|
|
@@ -6960,7 +7786,7 @@ declare abstract class BasicReporter {
|
|
|
6960
7786
|
private _sendLogs2Realtime;
|
|
6961
7787
|
/**
|
|
6962
7788
|
* 实时日志上报
|
|
6963
|
-
*
|
|
7789
|
+
* IndexDBReporter 重载此方法,增加同设备多页面多端时进程竞争检测
|
|
6964
7790
|
*/
|
|
6965
7791
|
protected realtimeReport(uri: string, level: LogL, itv: number): Promise<void>;
|
|
6966
7792
|
protected abstract compressLogs(logs: ILogData[]): Promise<{
|
|
@@ -7002,7 +7828,7 @@ declare class IndexDBReporter extends BasicReporter {
|
|
|
7002
7828
|
clientReportLevel?: EnableLogL | undefined);
|
|
7003
7829
|
protected send(req: IRequest): Promise<IResponse>;
|
|
7004
7830
|
/**
|
|
7005
|
-
*
|
|
7831
|
+
* 实时日志上报启动
|
|
7006
7832
|
*/
|
|
7007
7833
|
checkStart(navi: INaviInfo): Promise<void>;
|
|
7008
7834
|
protected compressLogs(logs: ILogData[]): Promise<{
|
|
@@ -7052,7 +7878,13 @@ declare const transcsv: (log: ILogData) => string;
|
|
|
7052
7878
|
* @category Interface
|
|
7053
7879
|
*/
|
|
7054
7880
|
interface IConversationIdentifier {
|
|
7881
|
+
/**
|
|
7882
|
+
* 会话类型
|
|
7883
|
+
*/
|
|
7055
7884
|
conversationType: ConversationType;
|
|
7885
|
+
/**
|
|
7886
|
+
* 会话 Id
|
|
7887
|
+
*/
|
|
7056
7888
|
targetId: string;
|
|
7057
7889
|
}
|
|
7058
7890
|
/**
|
|
@@ -7060,8 +7892,17 @@ interface IConversationIdentifier {
|
|
|
7060
7892
|
* @category Interface
|
|
7061
7893
|
*/
|
|
7062
7894
|
interface IConversationOption {
|
|
7895
|
+
/**
|
|
7896
|
+
* 会话类型
|
|
7897
|
+
*/
|
|
7063
7898
|
conversationType: ConversationType;
|
|
7899
|
+
/**
|
|
7900
|
+
* 会话 Id
|
|
7901
|
+
*/
|
|
7064
7902
|
targetId: string;
|
|
7903
|
+
/**
|
|
7904
|
+
* 频道 Id 字符串类型,不能包含 _ , 长度不能超过 20
|
|
7905
|
+
*/
|
|
7065
7906
|
channelId?: string;
|
|
7066
7907
|
}
|
|
7067
7908
|
interface IServerRTCRoomEntry {
|
|
@@ -7226,7 +8067,8 @@ interface IWatcher {
|
|
|
7226
8067
|
syncReadStatus?: (data: ISyncReadStatusData) => void;
|
|
7227
8068
|
subscribedUserStatusChange?: (data: ISubscribeUserStatusInfo[]) => void;
|
|
7228
8069
|
subscribedRelationChange?: (data: ISubscribeRelationInfo[]) => void;
|
|
7229
|
-
syncSubscribedUserStatusFinished?: () => void;
|
|
8070
|
+
syncSubscribedUserStatusFinished?: (subscribeType: SubscribeType) => void;
|
|
8071
|
+
ownUserProfileChanged?: (userProfile: IUserProfileInfo) => void;
|
|
7230
8072
|
}
|
|
7231
8073
|
interface IAPIContextOption {
|
|
7232
8074
|
/**
|
|
@@ -7541,6 +8383,7 @@ declare class APIContext {
|
|
|
7541
8383
|
private _subscribedUserStatusChange;
|
|
7542
8384
|
private _subscribedRelationChange;
|
|
7543
8385
|
private _syncSubscribedUserStatusFinished;
|
|
8386
|
+
private _ownUserProfileChanged;
|
|
7544
8387
|
/**
|
|
7545
8388
|
* rtc 数据变更通知 pluginContext
|
|
7546
8389
|
*/
|
|
@@ -7653,6 +8496,10 @@ declare class APIContext {
|
|
|
7653
8496
|
sendReadReceiptMessage(targetId: string, messageUIds: string[], channelId?: string): Promise<IAsyncRes>;
|
|
7654
8497
|
/**
|
|
7655
8498
|
* 获取群组消息已读列表
|
|
8499
|
+
* 已读回执目前 3 个版本 有 naviInfo.grpRRVer字段区分。
|
|
8500
|
+
* 0:为目前有公有先支持版本,调用 sendReadReceiptResponseV2
|
|
8501
|
+
* 1. 为 v2 版本,仅供 beem 使用目前公有云已废弃
|
|
8502
|
+
* 3. 为 v4 版本,目前仅海外 IMkit 使用
|
|
7656
8503
|
* @param targetId
|
|
7657
8504
|
* @param messageUIds
|
|
7658
8505
|
*/
|
|
@@ -8135,6 +8982,15 @@ declare class APIContext {
|
|
|
8135
8982
|
* 获取指定用户的在线状态
|
|
8136
8983
|
*/
|
|
8137
8984
|
getSubscribeUserStatus(subscribeType: SubscribeType, userIds: string[]): Promise<IAsyncRes<ISubscribeUserStatusInfo[]>>;
|
|
8985
|
+
private _isEnableUserProfile;
|
|
8986
|
+
updateMyUserProfile(profile: IUserProfileInfo): Promise<IAsyncRes<{
|
|
8987
|
+
errorKey: string;
|
|
8988
|
+
}>>;
|
|
8989
|
+
getUserProfiles(userIds: string[]): Promise<IAsyncRes<IUserProfileInfo[]>>;
|
|
8990
|
+
getMyUserProfile(): Promise<IAsyncRes<IUserProfileInfo>>;
|
|
8991
|
+
updateMyUserProfileVisibility(visibility: UserProfileVisibility): Promise<IAsyncRes>;
|
|
8992
|
+
getMyUserProfileVisibility(): Promise<IAsyncRes<UserProfileVisibility>>;
|
|
8993
|
+
searchUserProfileByUniqueId(uniqueId: string): Promise<IAsyncRes<IUserProfileInfo>>;
|
|
8138
8994
|
/**
|
|
8139
8995
|
* 删除所有会话
|
|
8140
8996
|
*/
|
|
@@ -8236,6 +9092,7 @@ declare class APIContext {
|
|
|
8236
9092
|
}>>;
|
|
8237
9093
|
searchMessageByContentAndMessageType(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, messageTypes: string[], channelId?: string): IPromiseResult<{
|
|
8238
9094
|
messages: IReceivedMessage[];
|
|
9095
|
+
count: number;
|
|
8239
9096
|
}>;
|
|
8240
9097
|
searchMessagesByUser(conversationType: ConversationType, targetId: string, userId: string, timestamp: number, count?: number, channelId?: string): Promise<IAsyncRes<{
|
|
8241
9098
|
messages: IReceivedMessage[];
|
|
@@ -8664,7 +9521,8 @@ interface IEngineWatcher extends IConnectionListener {
|
|
|
8664
9521
|
syncReadStatus: (data: ISyncReadStatusData) => void;
|
|
8665
9522
|
subscribedUserStatusChange?: (data: ISubscribeUserStatusInfo[]) => void;
|
|
8666
9523
|
subscribedRelationChange?: (data: ISubscribeRelationInfo[]) => void;
|
|
8667
|
-
syncSubscribedUserStatusFinished?: () => void;
|
|
9524
|
+
syncSubscribedUserStatusFinished?: (subscribeType: SubscribeType) => void;
|
|
9525
|
+
ownUserProfileChanged?: (data: IUserProfileInfo) => void;
|
|
8668
9526
|
}
|
|
8669
9527
|
/**
|
|
8670
9528
|
* 引擎定义
|
|
@@ -9330,6 +10188,7 @@ declare abstract class AEngine {
|
|
|
9330
10188
|
}>;
|
|
9331
10189
|
abstract searchMessageByContentAndMessageType(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, messageTypes: string[], channelId?: string): IPromiseResult<{
|
|
9332
10190
|
messages: IReceivedMessage[];
|
|
10191
|
+
count: number;
|
|
9333
10192
|
}>;
|
|
9334
10193
|
/**
|
|
9335
10194
|
* 按用户ID搜索会话内的消息
|
|
@@ -9522,6 +10381,14 @@ declare abstract class AEngine {
|
|
|
9522
10381
|
* 获取指定用户的在线状态
|
|
9523
10382
|
*/
|
|
9524
10383
|
abstract getSubscribeUserStatus(subscribeType: SubscribeType, userIds: string[]): Promise<IAsyncRes<ISubscribeUserStatusInfo[]>>;
|
|
10384
|
+
abstract updateMyUserProfile(profile: IUserProfileInfo): Promise<IAsyncRes<{
|
|
10385
|
+
errorKey: string;
|
|
10386
|
+
}>>;
|
|
10387
|
+
abstract getUserProfiles(userIds: string[]): Promise<IAsyncRes<IUserProfileInfo[]>>;
|
|
10388
|
+
abstract getMyUserProfile(): Promise<IAsyncRes<IUserProfileInfo>>;
|
|
10389
|
+
abstract updateMyUserProfileVisibility(visibility: UserProfileVisibility): Promise<IAsyncRes>;
|
|
10390
|
+
abstract getMyUserProfileVisibility(): Promise<IAsyncRes<UserProfileVisibility>>;
|
|
10391
|
+
abstract searchUserProfileByUniqueId(uniqueId: string): Promise<IAsyncRes<IUserProfileInfo>>;
|
|
9525
10392
|
/**
|
|
9526
10393
|
* 获取本地指定时间戳前后 N 条消息方法
|
|
9527
10394
|
* @param conversation
|
|
@@ -9671,6 +10538,9 @@ interface IErrorCodeKey {
|
|
|
9671
10538
|
afterCount: number;
|
|
9672
10539
|
conversationList: number;
|
|
9673
10540
|
conversationTypeNotSupport: number;
|
|
10541
|
+
profile: number;
|
|
10542
|
+
userProfileVisibility: number;
|
|
10543
|
+
uniqueId: number;
|
|
9674
10544
|
}
|
|
9675
10545
|
|
|
9676
10546
|
declare const ErrorCodeMap: IErrorCodeKey;
|
|
@@ -9837,6 +10707,10 @@ declare const appendUrl: (url: string, query?: {
|
|
|
9837
10707
|
[key: string]: string | number | null;
|
|
9838
10708
|
} | undefined) => string;
|
|
9839
10709
|
|
|
10710
|
+
/**
|
|
10711
|
+
* 事件监听器
|
|
10712
|
+
* @category Type
|
|
10713
|
+
*/
|
|
9840
10714
|
declare type IEventListener = (...args: any[]) => void;
|
|
9841
10715
|
declare class EventEmitter {
|
|
9842
10716
|
private readonly _map;
|
|
@@ -10126,6 +11000,11 @@ declare function fixUrlProtocol(url: string, protocol?: EConnectProtocol): strin
|
|
|
10126
11000
|
*/
|
|
10127
11001
|
declare function getMessageUIdHash(messageUId?: string): number;
|
|
10128
11002
|
declare const getMinionURL: (naviInfo: INaviInfo, logger: BasicLogger) => string;
|
|
11003
|
+
declare function updateMentionedInfo(content: any, mentionedUserIdList: string[] | undefined, mentionedType: 1 | 2 | undefined): {
|
|
11004
|
+
userIdList: any;
|
|
11005
|
+
type: any;
|
|
11006
|
+
mentionedContent: any;
|
|
11007
|
+
};
|
|
10129
11008
|
|
|
10130
11009
|
declare function httpRequest(options: IRequest): SuspendablePromise<IResponse>;
|
|
10131
11010
|
|
|
@@ -10176,6 +11055,10 @@ declare const transformReceivedStatusFlag: (receivedStatusInfo: IReceivedStatusI
|
|
|
10176
11055
|
* 补齐订阅平台状态
|
|
10177
11056
|
*/
|
|
10178
11057
|
declare const completeSubscriptionPlatformStatus: (status: ISubscribeStatusDetail[]) => ISubscribeStatusDetail[];
|
|
11058
|
+
/**
|
|
11059
|
+
* 将收到的用户信息转换为本地数据结构
|
|
11060
|
+
*/
|
|
11061
|
+
declare const transformUserProfiles: (userId: string, userProfiles: IServerProfileInfo[], userExtProfiles: IServerProfileInfo[]) => IUserProfileInfo;
|
|
10179
11062
|
|
|
10180
11063
|
/**
|
|
10181
11064
|
* Navi 缓存数据有效时长,单位毫秒
|
|
@@ -10227,6 +11110,10 @@ declare const MAX_MESSAGE_EXPANSION_KEY_LENGTH = 32;
|
|
|
10227
11110
|
declare const MAX_MESSAGE_EXPANSION_VAL_LENGTH: number;
|
|
10228
11111
|
declare const STATIC_CONFIG_KEY = "cd4936151214ce45dc1d12673a59d94c";
|
|
10229
11112
|
declare const STATIC_CONFIG_IV = "51ad078e5eb17a91";
|
|
11113
|
+
/**
|
|
11114
|
+
* RC:chrmKVNotiMsg 消息中携带的附加信息
|
|
11115
|
+
*/
|
|
11116
|
+
declare const MAX_CHATROOM_NOTIFICATION_EXTRA_LENGTH: number;
|
|
10230
11117
|
declare const SEND_MESSAGE_TYPE_OPTION: {
|
|
10231
11118
|
[key: string]: {
|
|
10232
11119
|
isCounted: boolean;
|
|
@@ -10266,6 +11153,14 @@ declare const RC_DEFAULT_USER = "rongcloudsystem";
|
|
|
10266
11153
|
* 已读回执缓存时间
|
|
10267
11154
|
*/
|
|
10268
11155
|
declare const READ_RECEIPT_CATCH_TIME: number;
|
|
11156
|
+
/**
|
|
11157
|
+
* 订阅用户资料的有效时间
|
|
11158
|
+
*/
|
|
11159
|
+
declare const SUBSCRIBE_USER_PROFILE_VALID_TIME: number;
|
|
11160
|
+
/**
|
|
11161
|
+
* 非订阅用户资料的有效时间
|
|
11162
|
+
*/
|
|
11163
|
+
declare const NON_SUBSCRIBE_USER_PROFILE_VALID_TIME: number;
|
|
10269
11164
|
/**
|
|
10270
11165
|
* localStorage 中的 key 值
|
|
10271
11166
|
*/
|
|
@@ -10519,4 +11414,4 @@ declare type AbsCodec<T> = Codec<T>;
|
|
|
10519
11414
|
*/
|
|
10520
11415
|
declare const version: string;
|
|
10521
11416
|
|
|
10522
|
-
export { AConnectionMgr, AEngine, APIContext, AbsCodec, AppStorage, AreaCode, AssertRules, BaseCloudController, BasicLogger, BasicNavi, BasicReporter, BasicStaticConfigManager, BasicStatistic, BasicStatisticReporter, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectReason, ConnectType, ConnectionStatus, Content, ConversationType, DB_LOG_FLUSH_FREQUENCY, DB_LOG_MAX_SIZE, DelayTimer, EConnectProtocol, EnableLogL, EnterpriseType, ErrorCode, ErrorCodeMap, EventEmitter, FORMATED_VERSION, FileType, HTTP_TIMEOUT, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBaseStatisticsData, IBlockedMessageInfo, ICancelRoomPKOptions, IChannelAndUserGroupChangeData, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IClearMessageOption, ICloudController, ICombineV2MessageContent, ICombinedMessage, IConnectResult, IConnectionListener, IConnectionStatusListener, IConversationIdentifier, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDeletedExpansion, IDeliveredUser, IDownloadAuth, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IFirstUnreadMessageInfo, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IGroupReadReceiptData, IInsertMessage, IInsertMsgOptions, IIsValidExpansion, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, ILogDB, ILogData, ILogger, IMRTRConfig, IM_CHATROOM_PULL_INTERVAL_TIME, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, IMetionedData, INaviCache, INaviContextInfo, INaviInfo, INetwork, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPluginGenerator, IPrivateReadReceiptData, IProcessCache, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCRoomInfo, IRTCUserData, IRTCUsers, IReadReceiptData, IReadReceiptInfo, IReadReceiptResponseInfo, IRecallMsgContent, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IReceivedStatusInfo, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IReqRoomPKOptions, IRequest, IResRoomPKOptions, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerAddressData, IServerConversationStatus, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStaticConfig, IStatistic, IStatisticDB, IStatisticData, IStatisticsCMPData, IStatisticsCSData, IStatisticsDurData, IStatisticsNaviData, IStatisticsNetworkData, IStatisticsRMTPData, IStatisticsWebsocketData, IStorage, ISubscribeRelationInfo, ISubscribeStatusDetail, ISubscribeUserStatusInfo, ISyncReadStatusData, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadConversation, IUltraUnreadMsg, IUpdateItem, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUploadTask, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IWatcher, IWebSocket, IiOSPushConfig, IndexDBLogger, IndexDBReporter, IndexDBStatistic, IndexDBStatisticReporter, RTCKeyMaps as InnerRTCKeyMaps, InterruptionLevel, InvokerType, ItypingStateListener, KVString, LOCAL_STORAGE_KEYS, LiveRole, LiveType, LogContent, LogL, LogLevel, LogSource, LogTagId, LogType, MAX_MESSAGE_CONTENT_BYTES, MAX_MESSAGE_EXPANSION_KEY_LENGTH, MAX_MESSAGE_EXPANSION_VAL_LENGTH, MAX_UPLOAD_FILE_SIZE, MentionedInfoBody, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NaviCacheType, NetworkType, NotificationLevel, NotificationStatus, ONE_LOG_SIZE_MAX, OnlineStatus, OperateStatus, PlatformInfo, PluginContext, ProtocalType, PushImportanceHonor, RCAssertError, RCConnectionStatus, RC_DEFAULT_USER, READ_RECEIPT_CATCH_TIME, REAT_TIME_LOG_SIZE, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATIC_CONFIG_CACHE_TIME, STATIC_CONFIG_IV, STATIC_CONFIG_KEY, STATUS_MESSAGE, SentStatus, StatisticL, StatisticsTag, StatisticsVersion, StoreKeys, SubscribeOperationType, SubscribeType, SuspendablePromise, TagChangeType, Type, UPLOAD_FILE_CHUNK_SIZE, UltraGroupChannelChangeType, UltraGroupChannelType, UltraMentionedType, UltraMsgChangeType, UltraMsgSubChangeType, UploadMethod, UserGroupChangeType, VERSION, ValidatorManage, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketNavi, appendUrl, assert, clone, cloneByJSON, completeSubscriptionPlatformStatus, deInitLogDB, decryptCBC, fixUrlProtocol, forEach, getBrowser, getClientMessageId, getDeviceId, getMessageUIdHash, getMimeKey, getMinionURL, getUUID, getUUID22, getUploadFileName, getbundleId, httpRequest, indexOf, initLogDB, initStatisticDB, isArray, isArrayBuffer, isBoolean, isConnnectAckCode as isConnnectAck, isDisconnectCode as isDisconnectedByServer, isFunction, isHttpUrl, isInObject, isInclude, isInteger, isLimitedArray, isLimitedString, isNull, isNumber, isObject, isStartCloudController, isString, isTypeInConversationList, isUndefined, isValidChannelId, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversation, isValidConversationType, isValidExpansion, isValidFileType, isValidNotificationLevel, isValidTargetId, base as logger, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, statisticTranscsv, todo, transcsv, transformReceivedStatusFlag, transformReceivedStatusInfo, unInitStatisticDB, urlCenter, usingCppEngine, validate, validators, version };
|
|
11417
|
+
export { AConnectionMgr, AEngine, APIContext, AbsCodec, AppStorage, AreaCode, AssertRules, BaseCloudController, BasicLogger, BasicNavi, BasicReporter, BasicStaticConfigManager, BasicStatistic, BasicStatisticReporter, CPP_PROTOCAL_MSGTYPE_OPTION, CallLibMsgType, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectReason, ConnectType, ConnectionStatus, Content, ConversationType, DB_LOG_FLUSH_FREQUENCY, DB_LOG_MAX_SIZE, DelayTimer, EConnectProtocol, EnableLogL, EnterpriseType, ErrorCode, ErrorCodeMap, EventEmitter, FORMATED_VERSION, FileType, HTTP_TIMEOUT, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBaseStatisticsData, IBlockedMessageInfo, ICancelRoomPKOptions, IChannelAndUserGroupChangeData, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IClearMessageOption, ICloudController, ICombineV2MessageContent, ICombinedMessage, IConnectResult, IConnectionListener, IConnectionStatusListener, IConversationIdentifier, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IDeletedExpansion, IDeliveredUser, IDownloadAuth, IEndRoomPKOptions, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExpansionMsgContent, IExtraMethod, IFirstUnreadMessageInfo, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IGroupReadReceiptData, IInsertMessage, IInsertMsgOptions, IIsValidExpansion, IJoinRTCRoomData, ILocalReadReceiptInfo, ILocalTagStatus, ILogDB, ILogData, ILogger, IMRTRConfig, IM_CHATROOM_PULL_INTERVAL_TIME, IM_PING_INTERVAL_TIME, IM_PING_MIN_TIMEOUT, IM_PING_TIMEOUT, IM_SIGNAL_TIMEOUT, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, IMetionedData, INaviCache, INaviContextInfo, INaviInfo, INetwork, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPluginGenerator, IPrivateReadReceiptData, IProcessCache, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCRoomInfo, IRTCUserData, IRTCUsers, IReadReceiptData, IReadReceiptInfo, IReadReceiptResponseInfo, IRecallMsgContent, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IReceivedStatusInfo, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IReqRoomPKOptions, IRequest, IResRoomPKOptions, IResponse, IRtcTokenData, IRuntime, ISendExMsgOptions, ISendMsgOptions, IServerAddressData, IServerConversationStatus, IServerProfileInfo, IServerRTCRoomEntry, IServerUserSetting, ISetConversationStatusOptions, IStaticConfig, IStatistic, IStatisticDB, IStatisticData, IStatisticsCMPData, IStatisticsCSData, IStatisticsDurData, IStatisticsNaviData, IStatisticsNetworkData, IStatisticsRMTPData, IStatisticsWebsocketData, IStorage, ISubData, ISubscribeLocalStore, ISubscribeRelationInfo, ISubscribeRelationServerData, ISubscribeStatusDetail, ISubscribeUserLocalBaseData, ISubscribeUserLocalOnlineData, ISubscribeUserLocalProfileData, ISubscribeUserStatusInfo, ISubscribeUserStatusServerData, ISyncReadStatusData, ITagInfo, ITagListener, ITagParam, ITagStatus, ITypingInfo, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadConversation, IUltraUnreadMsg, IUpdateItem, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUploadTask, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IUserProfileInfo, IUserProfileServerData, IWatcher, IWebSocket, IiOSPushConfig, IndexDBLogger, IndexDBReporter, IndexDBStatistic, IndexDBStatisticReporter, RTCKeyMaps as InnerRTCKeyMaps, InterruptionLevel, InvokerType, ItypingStateListener, KVString, LOCAL_STORAGE_KEYS, LiveRole, LiveType, LogContent, LogL, LogLevel, LogSource, LogTagId, LogType, MAX_CHATROOM_NOTIFICATION_EXTRA_LENGTH, MAX_MESSAGE_CONTENT_BYTES, MAX_MESSAGE_EXPANSION_KEY_LENGTH, MAX_MESSAGE_EXPANSION_VAL_LENGTH, MAX_UPLOAD_FILE_SIZE, MentionedInfoBody, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageType, NAVI_CACHE_DURATION, NAVI_REQ_TIMEOUT, NON_SUBSCRIBE_USER_PROFILE_VALID_TIME, NaviCacheType, NetworkType, NotificationLevel, NotificationStatus, ONE_LOG_SIZE_MAX, OnlineStatus, OperateStatus, PlatformInfo, PluginContext, ProtocalType, PushImportanceHonor, RCAssertError, RCConnectionStatus, RC_DEFAULT_USER, READ_RECEIPT_CATCH_TIME, REAT_TIME_LOG_SIZE, RTCApiType, RTCIdentityChangeType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, STATIC_CONFIG_CACHE_TIME, STATIC_CONFIG_IV, STATIC_CONFIG_KEY, STATUS_MESSAGE, SUBSCRIBE_USER_PROFILE_VALID_TIME, SentStatus, StatisticL, StatisticsTag, StatisticsVersion, StoreKeys, SubscribeDataType, SubscribeOperationType, SubscribeType, SuspendablePromise, TagChangeType, Type, UPLOAD_FILE_CHUNK_SIZE, UltraGroupChannelChangeType, UltraGroupChannelType, UltraMentionedType, UltraMsgChangeType, UltraMsgSubChangeType, UploadMethod, UserGroupChangeType, UserProfileVisibility, VERSION, ValidatorManage, VersionManage, WEB_SOCKET_TIMEOUT, WebSocketNavi, appendUrl, assert, clone, cloneByJSON, completeSubscriptionPlatformStatus, deInitLogDB, decryptCBC, fixUrlProtocol, forEach, getBrowser, getClientMessageId, getDeviceId, getMessageUIdHash, getMimeKey, getMinionURL, getUUID, getUUID22, getUploadFileName, getbundleId, httpRequest, indexOf, initLogDB, initStatisticDB, isArray, isArrayBuffer, isBoolean, isConnnectAckCode as isConnnectAck, isDisconnectCode as isDisconnectedByServer, isFunction, isHttpUrl, isInObject, isInclude, isInteger, isLimitedArray, isLimitedString, isNull, isNumber, isObject, isStartCloudController, isString, isTypeInConversationList, isUndefined, isValidChannelId, isValidChrmEntryKey, isValidChrmEntryValue, isValidConversation, isValidConversationType, isValidExpansion, isValidFileType, isValidNotificationLevel, isValidTargetId, base as logger, map, notEmptyArray, notEmptyObject, notEmptyString, pushConfigsToJSON, pushJSONToConfigs, statisticTranscsv, todo, transcsv, transformReceivedStatusFlag, transformReceivedStatusInfo, transformUserProfiles, unInitStatisticDB, updateMentionedInfo, urlCenter, usingCppEngine, validate, validators, version };
|