@rongcloud/engine 5.14.0-c-test-alpha-2 → 5.14.1-c-rtc-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/index.cjs +16 -0
- package/index.cjs.js +16 -0
- package/index.d.ts +76 -45
- package/index.esm.js +1 -1
- package/index.mjs +15 -0
- package/package.json +13 -4
- package/index.js +0 -16
package/index.d.ts
CHANGED
|
@@ -605,10 +605,6 @@ declare enum ChrmMemOperateType {
|
|
|
605
605
|
|
|
606
606
|
/**
|
|
607
607
|
* 融云 IM 错误码
|
|
608
|
-
*
|
|
609
|
-
* 本文件由 ErrorCodeGenerator 自动生成
|
|
610
|
-
* 请勿擅自修改
|
|
611
|
-
*
|
|
612
608
|
* @category Enum
|
|
613
609
|
*/
|
|
614
610
|
declare enum ErrorCode {
|
|
@@ -3738,6 +3734,10 @@ interface IUploadAuth {
|
|
|
3738
3734
|
* 下载鉴权信息
|
|
3739
3735
|
*/
|
|
3740
3736
|
downloadAuthInfo?: IDownloadAuth;
|
|
3737
|
+
/**
|
|
3738
|
+
* oss 存储配置,优先级高于导航 ossConfig 配置;值为 Json 字符串
|
|
3739
|
+
*/
|
|
3740
|
+
ossConfig?: string;
|
|
3741
3741
|
}
|
|
3742
3742
|
/**
|
|
3743
3743
|
* 下载鉴权信息
|
|
@@ -5908,12 +5908,9 @@ declare class RCResult<T = void> {
|
|
|
5908
5908
|
/** @internal */
|
|
5909
5909
|
static ok<T>(data?: T, desc?: string): RCResult<T>;
|
|
5910
5910
|
/** @internal */
|
|
5911
|
-
static unknown<T>(code: number, data?: T, desc?: string): RCResult<T>;
|
|
5912
|
-
/** @internal */
|
|
5913
5911
|
static fail<T>(code: number, desc?: string, data?: T): RCResult<T>;
|
|
5914
5912
|
}
|
|
5915
5913
|
declare const ok: typeof RCResult.ok;
|
|
5916
|
-
declare const unknown: typeof RCResult.unknown;
|
|
5917
5914
|
declare const fail: typeof RCResult.fail;
|
|
5918
5915
|
|
|
5919
5916
|
declare class Validator {
|
|
@@ -6114,7 +6111,7 @@ interface INaviInfo {
|
|
|
6114
6111
|
*/
|
|
6115
6112
|
chatroomMsg: boolean;
|
|
6116
6113
|
/**
|
|
6117
|
-
*
|
|
6114
|
+
* 文件服务器地址,优先级低于 ossConfig 配置
|
|
6118
6115
|
* @description
|
|
6119
6116
|
* 1. 公有云下,该地址为七牛云服务器地址
|
|
6120
6117
|
* 2. 私有云下,该地址为私有云自研文件服务器地址
|
|
@@ -6340,6 +6337,10 @@ interface INaviInfo {
|
|
|
6340
6337
|
* 第一位:0:未开通实时会话,1: 开通实时会话
|
|
6341
6338
|
*/
|
|
6342
6339
|
sessionMode?: number;
|
|
6340
|
+
/**
|
|
6341
|
+
* 0 未 ipv4 域名,1 为双栈域名,默认 0
|
|
6342
|
+
*/
|
|
6343
|
+
ipType?: number;
|
|
6343
6344
|
}
|
|
6344
6345
|
|
|
6345
6346
|
/**
|
|
@@ -7116,9 +7117,10 @@ interface IGroupFollowsChangedSync {
|
|
|
7116
7117
|
*/
|
|
7117
7118
|
userIds: string[];
|
|
7118
7119
|
}
|
|
7119
|
-
|
|
7120
|
+
declare type IProcessCode = {
|
|
7120
7121
|
processCode: ErrorCode;
|
|
7121
|
-
}
|
|
7122
|
+
};
|
|
7123
|
+
declare type ICreateGroupFail = IProcessCode & IErrorKeys;
|
|
7122
7124
|
interface IServerGroupBaseInfo {
|
|
7123
7125
|
name?: string;
|
|
7124
7126
|
portraitUrl?: string;
|
|
@@ -7745,9 +7747,7 @@ interface IEngine {
|
|
|
7745
7747
|
* 获取指定用户的在线状态
|
|
7746
7748
|
*/
|
|
7747
7749
|
getSubscribeUserStatus(subscribeType: SubscribeType, userIds: string[]): Promise<IAsyncRes<ISubscribeUserStatusInfo[]>>;
|
|
7748
|
-
updateMyUserProfile(profile: IUserProfileInfo): Promise<IAsyncRes<
|
|
7749
|
-
errorKey: string;
|
|
7750
|
-
}>>;
|
|
7750
|
+
updateMyUserProfile(profile: IUserProfileInfo): Promise<IAsyncRes<IUpdateMyProfileFail>>;
|
|
7751
7751
|
getUserProfiles(userIds: string[]): Promise<IAsyncRes<IUserProfileInfo[]>>;
|
|
7752
7752
|
getMyUserProfile(): Promise<IAsyncRes<IUserProfileInfo>>;
|
|
7753
7753
|
updateMyUserProfileVisibility(visibility: UserProfileVisibility): Promise<IAsyncRes>;
|
|
@@ -7755,10 +7755,10 @@ interface IEngine {
|
|
|
7755
7755
|
searchUserProfileByUniqueId(uniqueId: string): Promise<IAsyncRes<IUserProfileInfo>>;
|
|
7756
7756
|
createGroup(groupId: string, baseInfo: IServerGroupBaseInfo, extProfile: {
|
|
7757
7757
|
[key: string]: string;
|
|
7758
|
-
} | undefined, inviteeUserIds: string[]): Promise<IAsyncRes<
|
|
7758
|
+
} | undefined, inviteeUserIds: string[]): Promise<IAsyncRes<ICreateGroupFail>>;
|
|
7759
7759
|
updateGroupInfo(groupId: string, baseInfo: IServerGroupBaseInfo, extProfile: {
|
|
7760
7760
|
[key: string]: string;
|
|
7761
|
-
} | undefined): Promise<IAsyncRes<
|
|
7761
|
+
} | undefined): Promise<IAsyncRes<IErrorKeys>>;
|
|
7762
7762
|
getGroupsInfo(groupIds: string[]): Promise<IAsyncRes<IGroupInfo[]>>;
|
|
7763
7763
|
kickGroupMembers(groupId: string, userIds: string[], config: IQuitGroupConfig): Promise<IAsyncRes<void>>;
|
|
7764
7764
|
quitGroup(groupId: string, config: IQuitGroupConfig): Promise<IAsyncRes<void>>;
|
|
@@ -7767,7 +7767,7 @@ interface IEngine {
|
|
|
7767
7767
|
setGroupManagers(type: GroupOperationType, groupId: string, userIds: string[]): Promise<IAsyncRes<void>>;
|
|
7768
7768
|
getGroupMembersByRole(groupId: string, role: GroupMemberRole, option: IPagingQueryOption): Promise<IAsyncRes<IPagingQueryResult<IGroupMemberInfo>>>;
|
|
7769
7769
|
getGroupMembers(groupId: string, userIds: string[]): Promise<IAsyncRes<IGroupMemberInfo[]>>;
|
|
7770
|
-
setGroupMemberInfo(groupId: string, userId: string, nickname: string, extra?: string): Promise<IAsyncRes<
|
|
7770
|
+
setGroupMemberInfo(groupId: string, userId: string, nickname: string, extra?: string): Promise<IAsyncRes<IErrorKeys>>;
|
|
7771
7771
|
searchGroupMembers(groupId: string, nickName: string, option: IPagingQueryOption): Promise<IAsyncRes<IPagingQueryResult<IGroupMemberInfo>>>;
|
|
7772
7772
|
joinGroup(groupId: string): Promise<IAsyncRes<IProcessCode>>;
|
|
7773
7773
|
inviteUsersToGroup(groupId: string, userIds: string[]): Promise<IAsyncRes<IProcessCode>>;
|
|
@@ -7792,7 +7792,7 @@ interface IEngine {
|
|
|
7792
7792
|
refuseFriendApplication(userId: string, reason?: string): Promise<IAsyncRes<void>>;
|
|
7793
7793
|
setFriendInfo(userId: string, remark: string, extProfile: {
|
|
7794
7794
|
[key: string]: string;
|
|
7795
|
-
}): Promise<IAsyncRes<
|
|
7795
|
+
}): Promise<IAsyncRes<IErrorKeys>>;
|
|
7796
7796
|
checkFriends(userIds: string[], directionType: DirectionType): Promise<IAsyncRes<IFriendRelationInfo[]>>;
|
|
7797
7797
|
getFriends(directionType: QueryFriendsDirectionType, option: IPagingQueryOption | undefined): Promise<IAsyncRes<IPagingQueryResult<IFriendInfo>>>;
|
|
7798
7798
|
getFriendApplications(option: IPagingQueryOption, type?: FriendApplicationType[], status?: FriendApplicationStatus[]): Promise<IAsyncRes<IPagingQueryResult<IFriendApplicationInfo>>>;
|
|
@@ -8024,12 +8024,32 @@ interface IEngineWatcher extends IConnectionListener {
|
|
|
8024
8024
|
databaseUpgradeDidComplete: (code: ErrorCode) => void;
|
|
8025
8025
|
}
|
|
8026
8026
|
|
|
8027
|
+
declare type IErrorKeys = {
|
|
8028
|
+
/**
|
|
8029
|
+
* 更新错误的 key 数组
|
|
8030
|
+
* @since - 5.16.0
|
|
8031
|
+
*/
|
|
8032
|
+
errorKeys?: string[];
|
|
8033
|
+
};
|
|
8034
|
+
declare type IUpdateMyProfileFail = IErrorKeys & {
|
|
8035
|
+
/**
|
|
8036
|
+
* 更新错误的 key;自 5.16.0 版本开始,该值废弃;请优先使用 errorKeys
|
|
8037
|
+
* @deprecated - @since 5.16.0;
|
|
8038
|
+
*/
|
|
8039
|
+
errorKey: string;
|
|
8040
|
+
};
|
|
8041
|
+
|
|
8027
8042
|
/**
|
|
8028
8043
|
* 检查参数是否为字符串
|
|
8029
8044
|
* 只做类型检查,不做长度检查,故当字符串长度为 0,结果依然为 true
|
|
8030
8045
|
* @param value
|
|
8031
8046
|
*/
|
|
8032
8047
|
declare const isString: (value: unknown) => boolean;
|
|
8048
|
+
/**
|
|
8049
|
+
* 检测参数是否为布尔值
|
|
8050
|
+
* @param value
|
|
8051
|
+
*/
|
|
8052
|
+
declare const isBoolean: (value: unknown) => boolean;
|
|
8033
8053
|
/**
|
|
8034
8054
|
* 检查参数是否为 number 数据
|
|
8035
8055
|
* @param value
|
|
@@ -8065,21 +8085,40 @@ declare const isLimitedString: (option: {
|
|
|
8065
8085
|
* @param str
|
|
8066
8086
|
*/
|
|
8067
8087
|
declare const notEmptyString: (str: unknown) => boolean;
|
|
8088
|
+
/**
|
|
8089
|
+
* 检查参数是否为长度非 0 的数组
|
|
8090
|
+
* @param str
|
|
8091
|
+
*/
|
|
8092
|
+
declare const notEmptyArray: (arr: any[]) => boolean;
|
|
8068
8093
|
/**
|
|
8069
8094
|
* 检查参数是否为对象
|
|
8070
8095
|
* @param val
|
|
8071
8096
|
*/
|
|
8072
8097
|
declare const isObject: (val: any) => boolean;
|
|
8098
|
+
/**
|
|
8099
|
+
* 检查参数是否为函数
|
|
8100
|
+
* @param val
|
|
8101
|
+
*/
|
|
8102
|
+
declare const isFunction: (val: any) => boolean;
|
|
8073
8103
|
/**
|
|
8074
8104
|
* 检查参数是否为undefined
|
|
8075
8105
|
* @param val
|
|
8076
8106
|
*/
|
|
8077
8107
|
declare const isUndefined: (val: any) => boolean;
|
|
8108
|
+
/**
|
|
8109
|
+
* 检查参数是否为 null
|
|
8110
|
+
*/
|
|
8111
|
+
declare const isNull: (val: any) => boolean;
|
|
8078
8112
|
/**
|
|
8079
8113
|
* 检查参数是否为有效 http(s) 协议 url
|
|
8080
8114
|
* @param value
|
|
8081
8115
|
*/
|
|
8082
8116
|
declare const isHttpUrl: (value: any) => boolean;
|
|
8117
|
+
/**
|
|
8118
|
+
* 检查对象不为空
|
|
8119
|
+
* @param val
|
|
8120
|
+
*/
|
|
8121
|
+
declare const notEmptyObject: (val: Object) => boolean;
|
|
8083
8122
|
declare const isValidConversationType: (conversation: number) => boolean;
|
|
8084
8123
|
declare const isValidNotificationLevel: (level: number) => boolean;
|
|
8085
8124
|
declare const isValidEnum: (param: {
|
|
@@ -8401,6 +8440,7 @@ declare type PBModule = {
|
|
|
8401
8440
|
[key: string]: Function;
|
|
8402
8441
|
};
|
|
8403
8442
|
declare class Codec$1<T> {
|
|
8443
|
+
#private;
|
|
8404
8444
|
/**
|
|
8405
8445
|
* 嵌套结构声明
|
|
8406
8446
|
* key: pbname
|
|
@@ -8432,11 +8472,6 @@ declare class Codec$1<T> {
|
|
|
8432
8472
|
* @param data 待解码数据
|
|
8433
8473
|
*/
|
|
8434
8474
|
decode<K extends keyof T>(pbname: K, uint8array: Uint8Array): T[K];
|
|
8435
|
-
/**
|
|
8436
|
-
* protobuf 结构中,int64 类型数据无法直接转为 JS 的 number 数据,需计算获取
|
|
8437
|
-
* @param data
|
|
8438
|
-
*/
|
|
8439
|
-
private fixInt64Values;
|
|
8440
8475
|
/**
|
|
8441
8476
|
* @deprecated
|
|
8442
8477
|
*/
|
|
@@ -8766,6 +8801,11 @@ declare class Codec<T> {
|
|
|
8766
8801
|
*/
|
|
8767
8802
|
private fixInt64Values;
|
|
8768
8803
|
}
|
|
8804
|
+
/**
|
|
8805
|
+
* 请使用 `Codec` 替代 `AbsCodec`
|
|
8806
|
+
* @deprecated
|
|
8807
|
+
*/
|
|
8808
|
+
declare type AbsCodec<T> = Codec<T>;
|
|
8769
8809
|
|
|
8770
8810
|
declare const RTCPBMap: CodecPBMaps;
|
|
8771
8811
|
/**
|
|
@@ -9648,22 +9688,17 @@ declare class APIContext {
|
|
|
9648
9688
|
* @returns
|
|
9649
9689
|
*/
|
|
9650
9690
|
getFileToken(fileType: FileType, fileName?: string, httpMethod?: 'POST' | 'PUT', queryString?: string, url?: string, size?: number): Promise<IUploadAuth & {
|
|
9651
|
-
bos: string;
|
|
9652
9691
|
qiniu: string;
|
|
9653
9692
|
ossConfig: string;
|
|
9654
9693
|
}>;
|
|
9655
9694
|
/**
|
|
9656
|
-
* 获取
|
|
9695
|
+
* 获取 七牛、阿里云上传后的可下载 URL
|
|
9657
9696
|
* @param fileType 文件类型
|
|
9658
9697
|
* @param fileName 文件名
|
|
9659
9698
|
* @param saveName 下载后的存储文件名
|
|
9660
|
-
* @param uploadRes 插件上传返回的结果。降级百度上传后,用户传入返回结果,再把结果里的下载地址返回给用户,保证兼容之前结果获取
|
|
9661
9699
|
* @param serverType 使用的存储服务标识
|
|
9662
9700
|
*/
|
|
9663
|
-
getFileUrl(fileType: FileType, fileName
|
|
9664
|
-
isBosRes: boolean;
|
|
9665
|
-
downloadUrl: string;
|
|
9666
|
-
}, serverType?: UploadMethod): Promise<{
|
|
9701
|
+
getFileUrl(fileType: FileType, fileName: string, serverType: UploadMethod, saveName?: string): Promise<{
|
|
9667
9702
|
downloadUrl: string;
|
|
9668
9703
|
}>;
|
|
9669
9704
|
/**
|
|
@@ -9849,9 +9884,7 @@ declare class APIContext {
|
|
|
9849
9884
|
* 获取指定用户的在线状态
|
|
9850
9885
|
*/
|
|
9851
9886
|
getSubscribeUserStatus(subscribeType: SubscribeType, userIds: string[]): Promise<IAsyncRes<ISubscribeUserStatusInfo[]>>;
|
|
9852
|
-
updateMyUserProfile(profile: IUserProfileInfo): Promise<IAsyncRes<
|
|
9853
|
-
errorKey: string;
|
|
9854
|
-
}>>;
|
|
9887
|
+
updateMyUserProfile(profile: IUserProfileInfo): Promise<IAsyncRes<IUpdateMyProfileFail>>;
|
|
9855
9888
|
getUserProfiles(userIds: string[]): Promise<IAsyncRes<IUserProfileInfo[]>>;
|
|
9856
9889
|
getMyUserProfile(): Promise<IAsyncRes<IUserProfileInfo>>;
|
|
9857
9890
|
updateMyUserProfileVisibility(visibility: UserProfileVisibility): Promise<IAsyncRes>;
|
|
@@ -10035,10 +10068,10 @@ declare class APIContext {
|
|
|
10035
10068
|
testProxy(proxy: IProxy, testHost: string): Promise<IResponse>;
|
|
10036
10069
|
createGroup(groupId: string, baseInfo: IServerGroupBaseInfo, extProfile: {
|
|
10037
10070
|
[key: string]: string;
|
|
10038
|
-
} | undefined, inviteeUserIds?: string[]): Promise<IAsyncRes<
|
|
10071
|
+
} | undefined, inviteeUserIds?: string[]): Promise<IAsyncRes<ICreateGroupFail>>;
|
|
10039
10072
|
updateGroupInfo(groupId: string, baseInfo: IServerGroupBaseInfo, extProfile: {
|
|
10040
10073
|
[key: string]: string;
|
|
10041
|
-
} | undefined): Promise<IAsyncRes<
|
|
10074
|
+
} | undefined): Promise<IAsyncRes<IErrorKeys>>;
|
|
10042
10075
|
getGroupsInfo(groupIds: string[]): Promise<IAsyncRes<IGroupInfo[]>>;
|
|
10043
10076
|
kickGroupMembers(groupId: string, userIds: string[], config: IQuitGroupConfig): Promise<IAsyncRes<void>>;
|
|
10044
10077
|
quitGroup(groupId: string, config: IQuitGroupConfig): Promise<IAsyncRes<void>>;
|
|
@@ -10047,7 +10080,7 @@ declare class APIContext {
|
|
|
10047
10080
|
setGroupManagers(type: GroupOperationType, groupId: string, userIds: string[]): Promise<IAsyncRes<void>>;
|
|
10048
10081
|
getGroupMembersByRole(groupId: string, role: GroupMemberRole, option: IPagingQueryOption): Promise<IAsyncRes<IPagingQueryResult<IGroupMemberInfo>>>;
|
|
10049
10082
|
getGroupMembers(groupId: string, userIds: string[]): Promise<IAsyncRes<IGroupMemberInfo[]>>;
|
|
10050
|
-
setGroupMemberInfo(groupId: string, userId: string, nickname: string, extra?: string): Promise<IAsyncRes<
|
|
10083
|
+
setGroupMemberInfo(groupId: string, userId: string, nickname: string, extra?: string): Promise<IAsyncRes<IErrorKeys>>;
|
|
10051
10084
|
searchGroupMembers(groupId: string, nickName: string, option: IPagingQueryOption): Promise<IAsyncRes<IPagingQueryResult<IGroupMemberInfo>>>;
|
|
10052
10085
|
joinGroup(groupId: string): Promise<IAsyncRes<IProcessCode>>;
|
|
10053
10086
|
inviteUsersToGroup(groupId: string, userIds: string[]): Promise<IAsyncRes<IProcessCode>>;
|
|
@@ -10069,7 +10102,7 @@ declare class APIContext {
|
|
|
10069
10102
|
refuseFriendApplication(userId: string, reason: string): Promise<IAsyncRes<void>>;
|
|
10070
10103
|
setFriendInfo(userId: string, remark: string, extProfile: {
|
|
10071
10104
|
[key: string]: string;
|
|
10072
|
-
}): Promise<IAsyncRes<
|
|
10105
|
+
}): Promise<IAsyncRes<IErrorKeys>>;
|
|
10073
10106
|
checkFriends(userIds: string[], directionType: DirectionType): Promise<IAsyncRes<IFriendRelationInfo[]>>;
|
|
10074
10107
|
getFriends(directionType: QueryFriendsDirectionType, option: IPagingQueryOption | undefined): Promise<IAsyncRes<IPagingQueryResult<IFriendInfo>>>;
|
|
10075
10108
|
getFriendApplications(option: IPagingQueryOption, type?: FriendApplicationType[], status?: FriendApplicationStatus[]): Promise<IAsyncRes<IPagingQueryResult<IFriendApplicationInfo>>>;
|
|
@@ -10708,7 +10741,7 @@ declare abstract class AEngine {
|
|
|
10708
10741
|
* @param saveName 下载后的存储文件名
|
|
10709
10742
|
* @returns
|
|
10710
10743
|
*/
|
|
10711
|
-
abstract getFileUrl(fileType: FileType, serverType: UploadMethod, fileName
|
|
10744
|
+
abstract getFileUrl(fileType: FileType, serverType: UploadMethod, fileName: string, saveName?: string): IPromiseResult<{
|
|
10712
10745
|
downloadUrl: string;
|
|
10713
10746
|
}>;
|
|
10714
10747
|
/**
|
|
@@ -11156,9 +11189,7 @@ declare abstract class AEngine {
|
|
|
11156
11189
|
* 获取指定用户的在线状态
|
|
11157
11190
|
*/
|
|
11158
11191
|
abstract getSubscribeUserStatus(subscribeType: SubscribeType, userIds: string[]): Promise<IAsyncRes<ISubscribeUserStatusInfo[]>>;
|
|
11159
|
-
abstract updateMyUserProfile(profile: IUserProfileInfo): Promise<IAsyncRes<
|
|
11160
|
-
errorKey: string;
|
|
11161
|
-
}>>;
|
|
11192
|
+
abstract updateMyUserProfile(profile: IUserProfileInfo): Promise<IAsyncRes<IUpdateMyProfileFail>>;
|
|
11162
11193
|
abstract getUserProfiles(userIds: string[]): Promise<IAsyncRes<IUserProfileInfo[]>>;
|
|
11163
11194
|
abstract getMyUserProfile(): Promise<IAsyncRes<IUserProfileInfo>>;
|
|
11164
11195
|
abstract updateMyUserProfileVisibility(visibility: UserProfileVisibility): Promise<IAsyncRes>;
|
|
@@ -11175,10 +11206,10 @@ declare abstract class AEngine {
|
|
|
11175
11206
|
abstract getConversations(conversations: IConversationOption[]): Promise<IAsyncRes<IReceivedConversation[]>>;
|
|
11176
11207
|
abstract createGroup(groupId: string, baseInfo: IServerGroupBaseInfo, extProfile: {
|
|
11177
11208
|
[key: string]: string;
|
|
11178
|
-
} | undefined, inviteeUserIds: string[]): Promise<IAsyncRes<
|
|
11209
|
+
} | undefined, inviteeUserIds: string[]): Promise<IAsyncRes<ICreateGroupFail>>;
|
|
11179
11210
|
abstract updateGroupInfo(groupId: string, baseInfo: IServerGroupBaseInfo, extProfile: {
|
|
11180
11211
|
[key: string]: string;
|
|
11181
|
-
} | undefined): Promise<IAsyncRes<
|
|
11212
|
+
} | undefined): Promise<IAsyncRes<IErrorKeys>>;
|
|
11182
11213
|
abstract getGroupsInfo(groupIds: string[]): Promise<IAsyncRes<IGroupInfo[]>>;
|
|
11183
11214
|
abstract kickGroupMembers(groupId: string, userIds: string[], config: IQuitGroupConfig): Promise<IAsyncRes<void>>;
|
|
11184
11215
|
abstract quitGroup(groupId: string, config: IQuitGroupConfig): Promise<IAsyncRes<void>>;
|
|
@@ -11187,7 +11218,7 @@ declare abstract class AEngine {
|
|
|
11187
11218
|
abstract setGroupManagers(type: GroupOperationType, groupId: string, userIds: string[]): Promise<IAsyncRes<void>>;
|
|
11188
11219
|
abstract getGroupMembersByRole(groupId: string, role: GroupMemberRole, option: IPagingQueryOption): Promise<IAsyncRes<IPagingQueryResult<IGroupMemberInfo>>>;
|
|
11189
11220
|
abstract getGroupMembers(groupId: string, userIds: string[]): Promise<IAsyncRes<IGroupMemberInfo[]>>;
|
|
11190
|
-
abstract setGroupMemberInfo(groupId: string, userId: string, nickname: string, extra?: string): Promise<IAsyncRes<
|
|
11221
|
+
abstract setGroupMemberInfo(groupId: string, userId: string, nickname: string, extra?: string): Promise<IAsyncRes<IErrorKeys>>;
|
|
11191
11222
|
abstract searchGroupMembers(groupId: string, nickName: string, option: IPagingQueryOption): Promise<IAsyncRes<IPagingQueryResult<IGroupMemberInfo>>>;
|
|
11192
11223
|
abstract joinGroup(groupId: string): Promise<IAsyncRes<IProcessCode>>;
|
|
11193
11224
|
abstract inviteUsersToGroup(groupId: string, userIds: string[]): Promise<IAsyncRes<IProcessCode>>;
|
|
@@ -11212,7 +11243,7 @@ declare abstract class AEngine {
|
|
|
11212
11243
|
abstract refuseFriendApplication(userId: string, reason: string): Promise<IAsyncRes<void>>;
|
|
11213
11244
|
abstract setFriendInfo(userId: string, remark: string, extProfile: {
|
|
11214
11245
|
[key: string]: string;
|
|
11215
|
-
}): Promise<IAsyncRes<
|
|
11246
|
+
}): Promise<IAsyncRes<IErrorKeys>>;
|
|
11216
11247
|
abstract checkFriends(userIds: string[], directionType: DirectionType): Promise<IAsyncRes<IFriendRelationInfo[]>>;
|
|
11217
11248
|
abstract getFriends(directionType: QueryFriendsDirectionType, option: IPagingQueryOption | undefined): Promise<IAsyncRes<IPagingQueryResult<IFriendInfo>>>;
|
|
11218
11249
|
abstract getFriendApplications(option: IPagingQueryOption, type?: FriendApplicationType[], status?: FriendApplicationStatus[]): Promise<IAsyncRes<IPagingQueryResult<IFriendApplicationInfo>>>;
|
|
@@ -11521,4 +11552,4 @@ declare class AppStorage {
|
|
|
11521
11552
|
}): void;
|
|
11522
11553
|
}
|
|
11523
11554
|
|
|
11524
|
-
export { AEngine, APIContext, AppStorage, AreaCode, AssertRules, BasicLogger, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectionStatus, ConversationType, DirectionType, EnableLogL, ErrorCode, EventEmitter, FileType, FriendAddPermission, FriendApplicationStatus, FriendApplicationType, FriendRelationType, GroupApplicationDirection, GroupApplicationStatus, GroupApplicationType, GroupInviteHandlePermission, GroupJoinPermission, GroupMemberInfoEditPermission, GroupMemberRole, GroupOperation, GroupOperationPermission, GroupOperationRole, GroupOperationStatus, GroupOperationType, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomModule, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IClearMessageOption, ICombineV2MessageContent, ICombinedMessage, IConnectionStatusListener, IConversationIdentifier, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IConversationUnreadCount, IDeletedExpansion, IDeliveredUser, IDownloadAuth, IEngine, IEngineWatcher, IEventListener, IExpansionListener, IExpansionListenerData, IExtraMethod, IFirstUnreadMessageInfo, IFollowsInfo, IFriendAdd, IFriendApplicationInfo, IFriendApplicationStatusChange, IFriendDelete, IFriendInfo, IFriendInfoChangedSync, IFriendRelationInfo, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupApplicationInfo, IGroupFollowsChangedSync, IGroupFollowsList, IGroupFollowsUserInfo, IGroupInfo, IGroupInfoChanged, IGroupInfoOption, IGroupMemberInfo, IGroupMemberInfoChanged, IGroupMembers, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IGroupOperationInfo, IGroupReadReceiptData, IGroupRemarkChangedSync, IHarmonyOSPushConfig, IInsertMessage, IInsertMsgOptions, ILocalTagStatus, ILogData, ILogger, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, INaviInfo, INetwork, INotificationQuietHoursSetting, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPagingQueryOption, IPagingQueryResult, IPluginGenerator, IPrivateReadReceiptData, IProcessCache, IProcessCode, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IQuitGroupConfig, IRTCInnerListener, IRTCRoomBindOption, IReadReceiptData, IReadReceiptInfo, IReadReceiptResponseInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IReceivedStatusInfo, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IRequest, IResponse, IRuntime, ISendMsgOptions, IServerConversationStatus, IServerGroupBaseInfo, IServerUserSetting, ISetConversationStatusOptions, ISubscribeRelationInfo, ISubscribeStatusDetail, ISubscribeUserStatusInfo, ISyncReadStatusData, ITagInfo, ITagListener, ITagParam, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadMsg, IUpdateItem, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IUserProfileInfo, IWatcher, IiOSPushConfig, InnerRTCKeyMaps, InterruptionLevel, ItypingStateListener, LogL, LogLevel, LogSource, LogTagId, LogType, MAX_MESSAGE_CONTENT_BYTES, MAX_UPLOAD_FILE_SIZE, MentionedInfoBody, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageType, NotificationLevel, NotificationStatus, OnlineStatus, OperateStatus, Codec$1 as PBCodec, PlatformInfo, PluginContext, PushImportanceHonor, PushNotificationQuietHoursLevel, QueryFriendsDirectionType, RCConnectionStatus, RCResult, RTCApiType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, SentStatus, SubscribeOperationType, SubscribeType, SuspendablePromise, UPLOAD_FILE_CHUNK_SIZE, UUId, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod, UserProfileVisibility, Validator, ValidatorManage, VersionManage, assert, fail, fixUrlProtocol, forEach, getUUID, getUUID22, httpRequest, isArray, isHttpUrl, isInteger, isLimitedArray, isLimitedString, isNumber, isObject, isString, isUndefined, isValidConversation, isValidConversationType, isValidEnum, isValidFileType, isValidGroupId, isValidNotificationLevel, isValidTargetId, logger, map, notEmptyString, ok, runtime, transformReceivedStatusFlag, transformReceivedStatusInfo,
|
|
11555
|
+
export { AEngine, APIContext, AbsCodec, AppStorage, AreaCode, AssertRules, BasicLogger, ChatroomEntryType, ChatroomSyncStatusReason, ChatroomUserChangeType, ChrmMemBanType, ChrmMemOperateType, ChrmSyncStatus, Codec, CodecPBMaps, ConnectionStatus, ConversationType, DirectionType, EnableLogL, ErrorCode, EventEmitter, FileType, FriendAddPermission, FriendApplicationStatus, FriendApplicationType, FriendRelationType, GroupApplicationDirection, GroupApplicationStatus, GroupApplicationType, GroupInviteHandlePermission, GroupJoinPermission, GroupMemberInfoEditPermission, GroupMemberRole, GroupOperation, GroupOperationPermission, GroupOperationRole, GroupOperationStatus, GroupOperationType, HttpMethod, IAPIContextOption, IAndroidPushConfig, IAsyncRes, IBaseConversationInfo, IBlockedMessageInfo, IChannelAndUserGroupChangeData, IChatRoomEntries, IChatRoomEntry, IChatroomEntries, IChatroomEntry, IChatroomEntryListenerData, IChatroomInfo, IChatroomJoinResponse, IChatroomListener, IChatroomListenerData, IChatroomModule, IChatroomNotifyBan, IChatroomNotifyBlock, IChatroomNotifyMultiLoginSync, IChatroomRejoinedFailed, IChatroomRejoinedInfo, IChatroomRejoinedSuccessed, IChatroomUser, IChatroomUserChangeInfo, IChrmKVEntries, IChrmKVEntry, IClearMessageOption, ICombineV2MessageContent, ICombinedMessage, IConnectionStatusListener, IConversationIdentifier, IConversationOption, IConversationState, IConversationStateListener, IConversationTag, IConversationTagListener, IConversationUnreadCount, ICreateGroupFail, IDeletedExpansion, IDeliveredUser, IDownloadAuth, IEngine, IEngineWatcher, IErrorKeys, IEventListener, IExpansionListener, IExpansionListenerData, IExtraMethod, IFirstUnreadMessageInfo, IFollowsInfo, IFriendAdd, IFriendApplicationInfo, IFriendApplicationStatusChange, IFriendDelete, IFriendInfo, IFriendInfoChangedSync, IFriendRelationInfo, IGetMsgOption, IGetUltraGroupListOption, IGooglePushConfig, IGroupApplicationInfo, IGroupFollowsChangedSync, IGroupFollowsList, IGroupFollowsUserInfo, IGroupInfo, IGroupInfoChanged, IGroupInfoOption, IGroupMemberInfo, IGroupMemberInfoChanged, IGroupMembers, IGroupMessageDeliverInfo, IGroupMessageDeliverStatus, IGroupMessageDeliveredStatusInfo, IGroupOperationInfo, IGroupReadReceiptData, IGroupRemarkChangedSync, IHarmonyOSPushConfig, IInsertMessage, IInsertMsgOptions, ILocalTagStatus, ILogData, ILogger, IMessageDeliver, IMessageDeliveredListener, IMessageListnenr, IMessageReadReceiptV4Response, IMessageReader, IMessageReaderResponse, INaviInfo, INetwork, INotificationQuietHoursSetting, IOSInfo, IOperateInfo, IOperateStatusNotify, IOperateSummary, IPagingQueryOption, IPagingQueryResult, IPluginGenerator, IPrivateReadReceiptData, IProcessCache, IProcessCode, IProcessInfo, IPromiseResult, IProxy, IPushConfig, IQuitGroupConfig, IRTCInnerListener, IRTCJoinedInfo, IRTCRoomBindOption, IRTCUsers, IReadReceiptData, IReadReceiptInfo, IReadReceiptResponseInfo, IRecallMsgOptions, IReceivedConversation, IReceivedConversationByTag, IReceivedMessage, IReceivedStatusInfo, IRemoveChatRoomEntries, IRemoveChatRoomEntry, IRemoveChatroomEntries, IRemoveChatroomEntry, IRequest, IResponse, IRuntime, ISendMsgOptions, IServerConversationStatus, IServerGroupBaseInfo, IServerUserSetting, ISetConversationStatusOptions, IStorage, ISubscribeRelationInfo, ISubscribeStatusDetail, ISubscribeUserStatusInfo, ISyncReadStatusData, ITagInfo, ITagListener, ITagParam, ITypingMessage, ITypingUser, IUltraChannelChangeInfo, IUltraChannelDeleteInfo, IUltraChannelUserKickedInfo, IUltraExMsgOptions, IUltraGroupConversation, IUltraGroupOption, IUltraGroupUnreadInfo, IUltraGroupUnreadMentionedOption, IUltraModifyMsgOptions, IUltraMsgQueryOptions, IUltraUnreadMsg, IUpdateItem, IUpdateMyProfileFail, IUpdatedConversation, IUpdatedExpansion, IUploadAuth, IUserGroupChangeData, IUserGroupStatusInfo, IUserProfile, IUserProfileInfo, IWatcher, IiOSPushConfig, InnerRTCKeyMaps, InterruptionLevel, ItypingStateListener, KVString, LogL, LogLevel, LogSource, LogTagId, LogType, MAX_MESSAGE_CONTENT_BYTES, MAX_UPLOAD_FILE_SIZE, MentionedInfoBody, MentionedType, MessageBlockSourceType, MessageBlockType, MessageDirection, MessageType, NotificationLevel, NotificationStatus, OnlineStatus, OperateStatus, Codec$1 as PBCodec, PlatformInfo, PluginContext, PushImportanceHonor, PushNotificationQuietHoursLevel, QueryFriendsDirectionType, RCConnectionStatus, RCResult, RTCApiType, RTCJoinType, RTCMode, RTCPluginContext, ReceivedStatus, SEND_MESSAGE_TYPE_OPTION, SentStatus, SubscribeOperationType, SubscribeType, SuspendablePromise, UPLOAD_FILE_CHUNK_SIZE, UUId, UltraGroupChannelChangeType, UltraGroupChannelType, UploadMethod, UserProfileVisibility, Validator, ValidatorManage, VersionManage, assert, fail, fixUrlProtocol, forEach, getUUID, getUUID22, httpRequest, isArray, isBoolean, isFunction, isHttpUrl, isInteger, isLimitedArray, isLimitedString, isNull, isNumber, isObject, isString, isUndefined, isValidConversation, isValidConversationType, isValidEnum, isValidFileType, isValidGroupId, isValidNotificationLevel, isValidTargetId, logger, map, notEmptyArray, notEmptyObject, notEmptyString, ok, runtime, transformReceivedStatusFlag, transformReceivedStatusInfo, usingCppEngine, validate };
|