@xylink/xy-rtc-sdk 3.9.0 → 3.9.1-beta.6

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.
@@ -1,9 +1,10 @@
1
- import { ILoginExtAccount, ISdkUserInfo, TEventName, IMeetingInfo, TCategory, IToken, IGetConferenceParams, IMeetingInviteParams, IMediaConfigParam } from '../type';
1
+ import { ILoginExtAccount, ISdkUserInfo, TEventName, IMeetingInfo, TCategory, IToken, IGetConferenceParams, IMeetingInviteParams, IMediaConfigParam, LoginType, LoginParams } from '../type';
2
2
  import Logger from '../tools/logger';
3
3
  export interface ICommonParams {
4
4
  securityKey: string;
5
5
  }
6
6
  declare class Action {
7
+ private logger;
7
8
  private commonParams;
8
9
  private randomDeviceSN;
9
10
  private http;
@@ -282,6 +283,14 @@ declare class Action {
282
283
  oauthCode: string;
283
284
  isTempUser: boolean;
284
285
  }): Promise<any>;
286
+ /**
287
+ * 三方用户统一认证登录
288
+ *
289
+ * @param { LoginType } loginType 登录方式
290
+ * @param { LoginParams } data body信息
291
+ * @returns
292
+ */
293
+ loginWithUnified(loginType: LoginType, data: LoginParams): Promise<any>;
285
294
  /**
286
295
  * 设置默认参数,如securityKey
287
296
  *
@@ -48,12 +48,3 @@ export declare const RESOLUTION_MAP: Record<string, number>;
48
48
  * 枚举分辨率对应的最小带宽值
49
49
  */
50
50
  export declare const MIN_BANDWIDTH_MAP: Record<string, number>;
51
- /**
52
- * 枚举会控平台
53
- */
54
- export declare const MEETING_CONTROL_PLATFORM: {
55
- PC: string;
56
- MOBILE: string;
57
- SIDE: string;
58
- PROFESSIONAL: string;
59
- };
@@ -186,3 +186,12 @@ export declare const ENTERPRISE_CONFIG: {
186
186
  configName: string;
187
187
  };
188
188
  };
189
+ /**
190
+ * 枚举会控平台
191
+ */
192
+ export declare const MEETING_CONTROL_PLATFORM: {
193
+ PC: string;
194
+ MOBILE: string;
195
+ SIDE: string;
196
+ PROFESSIONAL: string;
197
+ };
@@ -4,7 +4,7 @@
4
4
  * @authors Luo-jinghui (luojinghui424@gmail.com)
5
5
  * @date 2019-10-23 12:04:44
6
6
  */
7
- import { IClientConfig, ICall, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, ILoginExtAccount, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternals, IVideoAudioType, ShareContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, ContentMode, IToken, AutoMute, Key, IRecordPermission, TLocalLanguage, IFeatureConfig, IConfMgmtUrl, IVideoControlResult, ICustomMessageConfig, OperateType, PushType, FacingMode, IFacingMode, ILoginWidthAuthCode } from '../type';
7
+ import { IClientConfig, ICall, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, ILoginExtAccount, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternals, IVideoAudioType, ShareContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, ContentMode, IToken, AutoMute, Key, IRecordPermission, TLocalLanguage, IFeatureConfig, IConfMgmtUrl, IVideoControlResult, ICustomMessageConfig, OperateType, PushType, FacingMode, IFacingMode, ILoginWidthAuthCode, LoginXYAccountParams, LoginExtTokenParams, IReturnResult, InviteInfo } from '../type';
8
8
  import Emitter from '../tools/emitter';
9
9
  import Socket from '../tools/socket';
10
10
  import Stream from './stream';
@@ -157,34 +157,60 @@ export default class Client extends Emitter {
157
157
  /**
158
158
  * 小鱼账号初始登录,获取token方法
159
159
  *
160
+ * @deprecated 已废弃 但不影响老客户调用,建议使用新登录方式:loginXYAccount
160
161
  * @public
161
162
  * @param { string } userName 小鱼用户账号
162
163
  * @param { string } password 小鱼用户账号密码
163
- * @returns { Promise<Object> } { access_token }
164
+ * @returns { Promise<IReturnResult> } 登录结果
164
165
  */
165
- loginXYlinkAccount(userName: string, password: string): Promise<Object>;
166
+ loginXYlinkAccount(userName: string, password: string): Promise<IReturnResult>;
166
167
  /**
167
- * 第三方登录方法
168
+ * 第三方账号登录
168
169
  *
169
170
  * @public
170
171
  * @param { ILoginExtAccount } params 参数
171
- * @return { Promise<Object> } 登录结果
172
+ * @param { string } params.displayName 用户名称
173
+ * @param { string } params.extId 企业ID
174
+ * @param { string } params.extUserId 三方用户ID
175
+ * @param { string } params.authCode 授权码 v3.8.2新增
176
+ * @param { string } params.tempUser 是否是临时账号 v3.8.2新增
177
+ * @return { Promise<IReturnResult> } 登录结果
172
178
  */
173
- loginExternalAccount(params: ILoginExtAccount): Promise<Object>;
179
+ loginExternalAccount(params: ILoginExtAccount): Promise<IReturnResult>;
174
180
  /**
175
- * 授权码登录
181
+ * 三方账号统一认证登录 - 小鱼账号登录
182
+ *
183
+ * @param { LoginXYAccountParams } params 参数
184
+ * @param { string } params.account 用户账号
185
+ * @param { string } params.password 用户密码
186
+ * @param { string } params.countryCode 国家码:默认+86
187
+ * @param { string } params.extId 企业ID
188
+ * @return { Promise<IReturnResult> } 登录结果
189
+ */
190
+ loginXYAccount(params: LoginXYAccountParams): Promise<IReturnResult>;
191
+ /**
192
+ * 三方账号统一认证登录 - token登录
193
+ *
194
+ * @param { LoginExtTokenParams } params 参数
195
+ * @param { string } params.authCode 登录码
196
+ * @param { string? } params.extId 企业ID
197
+ * @return { Promise<IReturnResult> } 登录结果
198
+ */
199
+ loginExtToken(params: LoginExtTokenParams): Promise<IReturnResult>;
200
+ /**
201
+ * 建行授权码登录
176
202
  *
177
203
  * @public
178
204
  * @param { ILoginWidthAuthCode } params 参数
179
- * @param {string} params.extId 企业id
180
- * @param {string} params.extUserId 用户id
181
- * @param {string} params.displayName 用户名称
182
- * @param {string} params.oauthCode 授权码
183
- * @param {boolean} params.isTempUser 是否临时账户
184
- * @param {string} params.channelId 渠道id
185
- * @return { Promise<Object> } 登录结果
205
+ * @param { string } params.extId 企业id
206
+ * @param { string } params.extUserId 用户id
207
+ * @param { string } params.displayName 用户名称
208
+ * @param { string } params.oauthCode 授权码
209
+ * @param { boolean } params.isTempUser 是否临时账户
210
+ * @param { string } params.channelId 渠道id
211
+ * @return { Promise<IReturnResult> } 登录结果
186
212
  */
187
- loginWithAuthCode(params: ILoginWidthAuthCode): Promise<Object>;
213
+ loginWithAuthCode(params: ILoginWidthAuthCode): Promise<IReturnResult>;
188
214
  /**
189
215
  * 退会时 重置初始化参数
190
216
  *
@@ -210,7 +236,7 @@ export default class Client extends Emitter {
210
236
  * @property { boolean } config.enableWatermarkContent 是否启用获取content水印内容, 默认启用, 设置为true
211
237
  * @returns { IResult }
212
238
  */
213
- setFeatureConfig(config: IFeatureConfig): import("../type").IReturnResult | undefined;
239
+ setFeatureConfig(config: IFeatureConfig): IReturnResult | undefined;
214
240
  /**
215
241
  * 获取会控地址
216
242
  */
@@ -336,6 +362,12 @@ export default class Client extends Emitter {
336
362
  * @param { Object } data 远端数据
337
363
  */
338
364
  private onEPMessage;
365
+ /**
366
+ * 处理联席主持人消息
367
+ *
368
+ * @param data
369
+ */
370
+ private onNotification;
339
371
  /**
340
372
  * 通知会控打开/关闭摄像头结果
341
373
  *
@@ -343,26 +375,26 @@ export default class Client extends Emitter {
343
375
  * @param { IVideoControlResult } data - 数据详情
344
376
  * @returns { Promise<IReturnResult | null> }
345
377
  */
346
- sendVideoControlResult(type: 'muteVideo' | 'unMuteVideo', data: IVideoControlResult): Promise<import("../type").IReturnResult>;
378
+ sendVideoControlResult(type: 'muteVideo' | 'unMuteVideo', data: IVideoControlResult): Promise<IReturnResult>;
347
379
  /**
348
- * 处理录制状态上报
380
+ * 处理远端录制状态上报
349
381
  *
350
382
  * @private
351
- * @param { Object } data 远端数据
383
+ * @param { IRecordStatusNotification } data
352
384
  */
353
385
  private onRecordStatusNotfiMessage;
354
386
  /**
355
- * 处理录制结果上报Message
387
+ * 处理本地录制结果上报Message
356
388
  *
357
389
  * @private
358
- * @param { Object } data 远端数据
390
+ * @param { IRecordingStateChanged } data
359
391
  */
360
392
  private onRecordingStateChangedMessage;
361
393
  /**
362
394
  * 处理Content状态控制消息
363
395
  *
364
396
  * @private
365
- * @param { Object } data 远端数据
397
+ * @param { Object } data
366
398
  */
367
399
  private onDualStreamMessage;
368
400
  /**
@@ -512,11 +544,21 @@ export default class Client extends Emitter {
512
544
  * @returns
513
545
  */
514
546
  private getCodeByJson;
547
+ /**
548
+ * 添加音视频开启/关闭 同步任务
549
+ *
550
+ * @private
551
+ * @param { OperateType } type 操作类型
552
+ * @param { boolean } isSendWs 是否向信令发送对应消息,默认:发送(true); 信令下发的音频mute/unmute,不再向信令发送此消息
553
+ * @returns Promise
554
+ */
555
+ private addOperateVideoAudioTask;
515
556
  /**
516
557
  * 音视频开启/关闭操作
517
558
  *
518
559
  * @private
519
560
  * @param { OperateType } type 操作类型
561
+ * @param { boolean } isSendWs 是否向信令发送对应消息,默认:发送(true); 信令下发的音频mute/unmute,不再向信令发送此消息
520
562
  * @returns Promise<IVideoAudioType> 类型
521
563
  */
522
564
  private operateVideoAudio;
@@ -655,7 +697,7 @@ export default class Client extends Emitter {
655
697
  * @param { string } config.data - 消息内容,JSON字符串;因业务数据可能会传输图片,需要对二进制数据进行base64编码,消息长度限制最大:1030KB
656
698
  * @return { { code: string, message: string, data: null | object } } 返回结果
657
699
  */
658
- sendCustomMessage(config: ICustomMessageConfig): import("../type").IReturnResult;
700
+ sendCustomMessage(config: ICustomMessageConfig): IReturnResult;
659
701
  /**
660
702
  * 处理媒体消息
661
703
  *
@@ -983,7 +1025,7 @@ export default class Client extends Emitter {
983
1025
  * @param { number } mediagroupId 分组id,也称sessionId或者mediaGroupId,代表只向此分组通道发送音频数据
984
1026
  * @returns { boolean }
985
1027
  */
986
- bindTrackGroup(trackType: 'audio' | 'video', mediagroupId: number): true | import("../type").IReturnResult;
1028
+ bindTrackGroup(trackType: 'audio' | 'video', mediagroupId: number): true | IReturnResult;
987
1029
  /**
988
1030
  * 启用多分组通道,接收多分组通道数据
989
1031
  *
@@ -991,7 +1033,7 @@ export default class Client extends Emitter {
991
1033
  * @param { Key[] } mediagrpIds 多分组sessionId,可以配置多个或一个值
992
1034
  * @returns { boolean }
993
1035
  */
994
- startMonitorGroup(mediagrpIds: Key[]): true | import("../type").IReturnResult;
1036
+ startMonitorGroup(mediagrpIds: Key[]): true | IReturnResult;
995
1037
  /**
996
1038
  * 停止多分组通道,销毁资源
997
1039
  *
@@ -999,7 +1041,13 @@ export default class Client extends Emitter {
999
1041
  * @param { Key[] } mediagrpIds 多分组sessionId,可以配置多个或一个值
1000
1042
  * @returns { boolean }
1001
1043
  */
1002
- stopMonitorGroup(mediagrpIds: Key[]): true | import("../type").IReturnResult;
1044
+ stopMonitorGroup(mediagrpIds: Key[]): true | IReturnResult;
1045
+ /**
1046
+ * 获取会议分享详情信息
1047
+ *
1048
+ * @returns {Promise<InviteInfo>}
1049
+ */
1050
+ getMeetingInviteInfo(): Promise<InviteInfo>;
1003
1051
  /**
1004
1052
  * 设置多分组通道,通用方法
1005
1053
  *
@@ -2,29 +2,27 @@
2
2
  * 登录模块
3
3
  *
4
4
  */
5
- import { ILoginExtAccount, ISdkUserInfo, ILoginInfo, ILoginWidthAuthCode } from '../type';
5
+ import { ILoginExtAccount, ISdkUserInfo, ILoginInfo, ILoginWidthAuthCode, LoginXYAccountParams, LoginExtTokenParams, ExtInfo } from '../type';
6
6
  import Logger from '../tools/logger';
7
7
  declare class IAuth {
8
8
  private logger;
9
9
  private loginInfo;
10
- constructor(logger: Logger);
10
+ private extInfo;
11
+ constructor(logger: Logger, extInfo?: ExtInfo);
11
12
  getLoginInfo(): ILoginInfo;
12
13
  setLoginInfo(loginInfo: ILoginInfo): void;
14
+ setExtInfo(info: ExtInfo): void;
13
15
  /**
14
- * 第三方登录方法
16
+ * 第三方账号登录 - 旧方法
15
17
  *
16
18
  * @public
17
19
  * @param { ILoginExtAccount } params 参数
18
- * @return { Promise<Object> } 登录结果
20
+ * @param { string } params.displayName 用户名称
21
+ * @param { string } params.extId 企业id
22
+ * @param { string? } params.extUserId 三方用户ID
23
+ * @return
19
24
  */
20
- loginExternalAccount(params: ILoginExtAccount): Promise<Object>;
21
- /**
22
- * 登录
23
- *
24
- * @param { ISdkUserInfo } sdkUserInfo
25
- * @param { ILoginExtAccount } params
26
- */
27
- login(sdkUserInfo: ISdkUserInfo, params?: ILoginExtAccount): Promise<import("../type").IReturnResult>;
25
+ loginExternalAccount(params: ILoginExtAccount): Promise<import("../type").IReturnResult>;
28
26
  /**
29
27
  * 授权码登录
30
28
  *
@@ -35,8 +33,59 @@ declare class IAuth {
35
33
  * @param {string} params.oauthCode 授权码
36
34
  * @param {boolean} params.isTempUser 是否临时账户
37
35
  * @param {string} params.channelId 渠道id
38
- * @return {*}
36
+ * @return
39
37
  */
40
38
  loginWithAuthCode(params: ILoginWidthAuthCode): Promise<import("../type").IReturnResult>;
39
+ /**
40
+ * 登录
41
+ *
42
+ * @param { ISdkUserInfo } sdkUserInfo
43
+ * @param { ILoginExtAccount } params
44
+ * @return
45
+ */
46
+ login(sdkUserInfo: ISdkUserInfo, params?: ILoginExtAccount): Promise<import("../type").IReturnResult>;
47
+ /**
48
+ * 三方用户统一认证-小鱼账号登录
49
+ *
50
+ * @param { LoginXYAccountParams } params 参数
51
+ * @return
52
+ */
53
+ loginXYAccount(params: LoginXYAccountParams): Promise<import("../type").IReturnResult>;
54
+ /**
55
+ * 三方用户统一认证-三方id登录
56
+ *
57
+ * @param { ILoginExtAccount } params 参数
58
+ * @return
59
+ */
60
+ loginExtUserId(params: ILoginExtAccount): Promise<import("../type").IReturnResult>;
61
+ /**
62
+ * 三方用户统一认证-token登录
63
+ *
64
+ * @param { LoginExtTokenParams } params 参数
65
+ * @return
66
+ */
67
+ loginExtToken(params: LoginExtTokenParams): Promise<import("../type").IReturnResult>;
68
+ /**
69
+ * 统一处理登录后的信息
70
+ *
71
+ * @param { any } result 接口返回值
72
+ * @param { ILoginExtAccount } params
73
+ * @returns
74
+ */
75
+ private handleLoginResult;
76
+ /**
77
+ * 校验必填参数
78
+ *
79
+ * @param { Record<string, any> | any } requiredField 校验参数
80
+ * @returns
81
+ */
82
+ private verifyRequiredField;
83
+ /**
84
+ * 校验三方用户ID
85
+ *
86
+ * @param { string } extUserId 三方用户ID
87
+ * @returns
88
+ */
89
+ private verifyExtUserId;
41
90
  }
42
91
  export default IAuth;
@@ -2,9 +2,9 @@
2
2
  * Meeting Info Control
3
3
  *
4
4
  * Created at : 2022-10-27 13:58:22
5
- * Last modified : 2023-07-11 10:11:00
5
+ * Last modified : 2023-07-27 10:02:44
6
6
  */
7
- import { IRecordPermission, IConfMgmtUrl, ILayout, IMediaConfig, IReqInfo, LayoutAvatarType, TLayoutMap } from '../type';
7
+ import { IRecordPermission, IConfMgmtUrl, ILayout, IMediaConfig, IReqInfo, LayoutAvatarType, TLayoutMap, InviteInfo } from '../type';
8
8
  import Client from './client';
9
9
  import Logger from '../tools/logger';
10
10
  declare class Meeting {
@@ -119,8 +119,9 @@ declare class Meeting {
119
119
  *
120
120
  * TODO: 2022-10-27,携带meetingId的Info接口调用失败,原因是dcs(大数据当前服务)接口在入会后存在15s延迟,导致info返回403错误;
121
121
  * TODO:2022-10-27,此处使用inviteUrl地址,暂时不使用微信邀请链接地址,原因是会议号获取的微信邀请链接页面访问失效,需要提供MeetingId字段才行;
122
+ * 2023-8-3 鉴于安全考虑,此接口需提供MeetingId字段;
122
123
  */
123
- private getMeetingInviteInfo;
124
+ getMeetingInviteInfo(): Promise<InviteInfo>;
124
125
  /**
125
126
  * 企业配置信息
126
127
  *
@@ -4,7 +4,11 @@
4
4
  * @authors Luo-jinghui (luojinghui424@gmail.com)
5
5
  * @date 2019-10-24 14:06:05
6
6
  */
7
- export declare const version: any;
7
+ export declare const SDKVersion: {
8
+ version: any;
9
+ createTime: any;
10
+ };
11
+ export declare const version: string;
8
12
  export declare const serverProtocolMap: Record<string, string>;
9
13
  export declare const proxy: {
10
14
  wssProtocol: string;
@@ -6,7 +6,8 @@
6
6
  */
7
7
  import { AxiosRequestConfig, AxiosInstance } from 'axios';
8
8
  import Logger from './logger';
9
- import { IToken, ISignParams } from '../type';
9
+ import { IToken } from '../type';
10
+ import XyApiGatewaySDK from '@xylink/xy_api_gateway';
10
11
  export interface IResponseSuccess {
11
12
  code: number;
12
13
  data: any;
@@ -21,39 +22,30 @@ export interface IAxiosRequestConfig extends AxiosRequestConfig {
21
22
  clientId?: string;
22
23
  }
23
24
  declare class HttpClient {
24
- commonOption: AxiosRequestConfig;
25
+ commonOption: IAxiosRequestConfig;
25
26
  axios: AxiosInstance;
26
27
  tokenInfo: any;
27
28
  logger: Logger | null;
28
- private baseUrl;
29
29
  private clientId;
30
30
  private clientSecret;
31
31
  private retryCount;
32
+ xyApiGatewaySDK: XyApiGatewaySDK | null;
32
33
  constructor(commonOption: IAxiosRequestConfig);
33
- refreshToken({ baseURL, refresh_token }: {
34
- baseURL?: string | undefined;
35
- refresh_token?: string | undefined;
36
- }): Promise<any>;
34
+ getTokenInfo(): any;
35
+ setTokenInfo(tokenInfo: IToken | null): void;
37
36
  setLogger(logger: Logger): void;
38
37
  setBaseUrl(url: string): void;
39
38
  setClientInfo({ clientId, clientSecret }: {
40
39
  clientId: string;
41
40
  clientSecret: string;
42
41
  }): void;
43
- setHttpConfig(config: IAxiosRequestConfig): void;
44
- getApiHeader(params: ISignParams): {
45
- Authorization?: string | undefined;
46
- 'x-xy-clientid': string;
47
- 'x-xy-clienttype': string;
48
- 'x-xy-nonce': number;
49
- 'x-xy-timestamp': number;
50
- 'x-xy-signtype': string;
51
- 'x-xy-sign': string;
52
- 'x-xy-signatureversion': string;
53
- };
54
- setTokenInfo(tokenInfo: IToken | null): void;
55
- getTokenInfo(): any;
56
- assignOptions: (option?: AxiosRequestConfig) => AxiosRequestConfig & {
42
+ initXyApiGatewaySDK(): XyApiGatewaySDK;
43
+ setSignHeader(config: any): Promise<any>;
44
+ refreshToken({ baseURL, refresh_token }: {
45
+ baseURL?: string | undefined;
46
+ refresh_token?: string | undefined;
47
+ }): Promise<any>;
48
+ assignOptions: (option?: AxiosRequestConfig) => IAxiosRequestConfig & AxiosRequestConfig & {
57
49
  params: any;
58
50
  };
59
51
  get: (url: string, option?: IAxiosRequestConfig) => any;
@@ -1,6 +1,10 @@
1
1
  /**
2
2
  * 邀请链接请求参数
3
+ *
4
+ * @property { string | number } conferenceNumber - 云会议室号
5
+ * @property { string } meetingId - 会议ID
3
6
  */
4
7
  export interface IMeetingInviteParams {
5
8
  conferenceNumber: string | number;
9
+ meetingId?: string;
6
10
  }
@@ -215,10 +215,10 @@ export declare enum LayoutMode {
215
215
  /**
216
216
  * 录制状态
217
217
  *
218
- * @param RECORD_STATE_IDLE 停止成功
219
- * @param RECORD_STATE_STARTING 开启录制
220
- * @param RECORD_STATE_STARTED 开启成功
221
- * @param RECORD_STATE_STOPING 停止录制
218
+ * @param RECORD_STATE_IDLE - 停止录制成功
219
+ * @param RECORD_STATE_STARTING - 开启录制
220
+ * @param RECORD_STATE_STARTED - 开启录制成功
221
+ * @param RECORD_STATE_STOPING - 停止录制
222
222
  */
223
223
  export declare enum RecordingState {
224
224
  RECORD_STATE_IDLE = "RECORD_STATE_IDLE",
@@ -261,6 +261,8 @@ export type IFacingMode = keyof typeof FacingMode;
261
261
  * client配置参数
262
262
  *
263
263
  * @property { string } clientId 必填 | "" | 网关校验id(clientId),需要从对接人处获取
264
+ * @property { string } clientSecret 必填 | "" | 网关密钥,需要从对接人处获取
265
+ * @property { string } extId 非必填 企业ID
264
266
  * @property { string } server 非必填 服务地址, IP/域名 + 端口,如: cloudapi.xylink.com
265
267
  * @property { string } wssServer 非必填 websocket服务地址,默认不需要配置, 待废弃
266
268
  * @property { string } httpServer 非必填 resetApi服务地址,默认不需要配置, 待废弃
@@ -286,6 +288,7 @@ export type IFacingMode = keyof typeof FacingMode;
286
288
  export interface IClientConfig {
287
289
  clientId: string;
288
290
  clientSecret?: string;
291
+ extId?: string;
289
292
  server?: string;
290
293
  wssServer?: string;
291
294
  httpServer?: string;
@@ -537,47 +540,6 @@ export interface IMediaSupportedConstraints {
537
540
  export interface ICandidate extends RTCIceCandidateInit {
538
541
  type?: string;
539
542
  }
540
- /**
541
- * 第三方登录用户信息
542
- *
543
- * @property { string } displayName 用户名称
544
- * @property { string } extId 企业id
545
- */
546
- export interface ILoginExtAccount {
547
- displayName: string;
548
- extId: string;
549
- extUserId?: string;
550
- }
551
- /**
552
- * 第三方登录sdk用户信息,由sdk server创建
553
- *
554
- * @property { string } userName sdk用户名
555
- * @property { string } password sdk密码
556
- * @property { string? } extId sdk企业Id
557
- */
558
- export interface ISdkUserInfo {
559
- userName: string;
560
- password: string;
561
- extId?: string;
562
- }
563
- /**
564
- * 授权码登录
565
- *
566
- * @property { string } extId 企业id
567
- * @property { string } extUserId 用户id
568
- * @property { string } displayName 用户名
569
- * @property { string } oauthCode 授权码
570
- * @property { boolean } isTempUser 是否是临时账号
571
- * @property { string } channelId 渠道id
572
- */
573
- export interface ILoginWidthAuthCode {
574
- extId: string;
575
- extUserId: string;
576
- displayName: string;
577
- oauthCode: string;
578
- isTempUser: boolean;
579
- channelId: string;
580
- }
581
543
  export interface IHttpConfig {
582
544
  baseUrl: string;
583
545
  }
@@ -612,6 +574,7 @@ export interface IConfAuxProperties {
612
574
  * @property { string } avatar 头像
613
575
  * @property { InviteInfo } inviteInfo 会议分享信息,包含会议邀请链接、电话,WebRTC、终端等端的入会方式;
614
576
  * @property { string } meetingId 当前会议ID
577
+ * @property { string } displayNum 显示的会议号
615
578
  */
616
579
  export interface IConferenceInfo {
617
580
  callNumber?: string;
@@ -625,6 +588,7 @@ export interface IConferenceInfo {
625
588
  avatar?: string;
626
589
  inviteInfo?: InviteInfo;
627
590
  meetingId?: string;
591
+ displayNum?: string;
628
592
  }
629
593
  /**
630
594
  * 会议分享信息
@@ -1183,29 +1147,30 @@ export interface IGetConferenceParams {
1183
1147
  autoMute: AutoMute;
1184
1148
  }
1185
1149
  /**
1186
- * 录制结果上报
1150
+ * 本地录制结果上报
1187
1151
  *
1188
- * @property { string } reason stream id
1189
- * @property { string } state
1190
- * @property { boolean } isRecorded
1191
- * @property { string } controlUri
1152
+ * @property { string } reason - 成功STATE:200
1153
+ * @property { RecordingState } state - 录制状态
1154
+ * @property { boolean } isRecorded - ignore
1155
+ * @property { string } controlUri - ignore
1156
+ * @property { string } reasonText - ignore
1192
1157
  */
1193
1158
  export interface IRecordingStateChanged {
1194
1159
  reason: string;
1195
- state: string;
1160
+ state: RecordingState;
1196
1161
  isRecorded: boolean;
1197
1162
  controlUri: string;
1198
1163
  reasonText: string;
1199
1164
  }
1200
1165
  /**
1201
- * 录制状态上报
1166
+ * 远端录制状态上报
1202
1167
  *
1203
- * @property { boolean } isStart stream id
1204
- * @property { string } uri
1205
- * @property { string } callUri
1206
- * @property { string } callerUri
1207
- * @property { string } status
1208
- * @property { boolean } isLocal 是否是local开启的录制
1168
+ * @property { boolean } isStart - 是否已经存在录制 true:存在录制;false:不存在录制
1169
+ * @property { string } uri - 录制的displayName,即callUri的名称,当是" "时,取会议室名称
1170
+ * @property { string } callUri - 录制终端callUri
1171
+ * @property { string } callerUri - ignore
1172
+ * @property { string } status - 录制状态 RECORDING_STATE_PAUSED(录制暂停),RECORDING_STATE_ACTING(录制恢复)
1173
+ * @property { boolean } isLocal - 是否是local开启的录制
1209
1174
  */
1210
1175
  export interface IRecordStatusNotification {
1211
1176
  isStart: Boolean;
@@ -1464,4 +1429,28 @@ export interface IStreamCapability {
1464
1429
  streamId: string;
1465
1430
  resolution: StreamResolutionLevel;
1466
1431
  }
1432
+ /**
1433
+ * 是否是联席主持人
1434
+ *
1435
+ * @param ON - 是
1436
+ * @param OFF - 否
1437
+ */
1438
+ export declare enum CoChair {
1439
+ ON = "on",
1440
+ OFF = "off"
1441
+ }
1442
+ /**
1443
+ * 信令上报的消息
1444
+ *
1445
+ * @property { number } subType - 消息类型
1446
+ * @property { number } content - 消息详细内容
1447
+ * @property { CoChair } content.coChair - 是否是联席主持人
1448
+ */
1449
+ export interface Notification {
1450
+ subType: number;
1451
+ content: {
1452
+ coChair: CoChair;
1453
+ };
1454
+ requestId: string;
1455
+ }
1467
1456
  export {};