@xylink/xy-rtc-sdk 3.8.0-beta.1 → 3.8.0-beta.2
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/lib/action/index.d.ts +20 -3
- package/lib/enum/contraints.d.ts +5 -0
- package/lib/main/client.d.ts +92 -17
- package/lib/main/layoutManager.d.ts +1 -1
- package/lib/main/meeting.d.ts +80 -0
- package/lib/tools/config.d.ts +4 -2
- package/lib/tools/utils.d.ts +1 -0
- package/lib/type/action.d.ts +6 -0
- package/lib/type/client.d.ts +70 -17
- package/lib/type/index.d.ts +2 -0
- package/lib/type/meeting.d.ts +41 -0
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +1 -1
- package/scripts/webpack.common.js +1 -1
package/lib/action/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ILoginExtAccount, ISdkUserInfo, TEventName, IMeetingInfo, TCategory, IToken, IGetConferenceParams } from '../type';
|
|
1
|
+
import { ILoginExtAccount, ISdkUserInfo, TEventName, IMeetingInfo, TCategory, IToken, IGetConferenceParams, IMeetingInviteParams } from '../type';
|
|
2
2
|
import Logger from '../tools/logger';
|
|
3
3
|
export interface ICommonParams {
|
|
4
4
|
securityKey: string;
|
|
@@ -11,9 +11,11 @@ declare class Action {
|
|
|
11
11
|
private statesTime;
|
|
12
12
|
commonParams: ICommonParams;
|
|
13
13
|
randomDeviceSN: string;
|
|
14
|
+
private httpDefaultBaseUrl;
|
|
15
|
+
private logHttpDefaultBaseUrl;
|
|
14
16
|
constructor();
|
|
15
|
-
setBaseUrl(baseUrl
|
|
16
|
-
setLogBaseUrl(logUrl
|
|
17
|
+
setBaseUrl(baseUrl?: string, logUrl?: string): void;
|
|
18
|
+
setLogBaseUrl(logUrl?: string): void;
|
|
17
19
|
setClientInfo({ clientId, clientSecret }: {
|
|
18
20
|
clientId: string;
|
|
19
21
|
clientSecret: string;
|
|
@@ -109,6 +111,13 @@ declare class Action {
|
|
|
109
111
|
* @returns
|
|
110
112
|
*/
|
|
111
113
|
getDefaultServerConfig(): Promise<any>;
|
|
114
|
+
/**
|
|
115
|
+
* 批量获取serverConfig
|
|
116
|
+
*
|
|
117
|
+
* @param {string[]} includeConfigNameList 需要的配置key值
|
|
118
|
+
* @returns
|
|
119
|
+
*/
|
|
120
|
+
getServerConfig(includeConfigNameList?: string[]): Promise<any>;
|
|
112
121
|
/**
|
|
113
122
|
* 获取json文件内容
|
|
114
123
|
*
|
|
@@ -232,6 +241,14 @@ declare class Action {
|
|
|
232
241
|
* @returns
|
|
233
242
|
*/
|
|
234
243
|
refreshToken(refresh_token: string): Promise<any>;
|
|
244
|
+
/**
|
|
245
|
+
* 获取会议邀请链接信息
|
|
246
|
+
*/
|
|
247
|
+
getMeetingInviteInfo(params: IMeetingInviteParams): Promise<any>;
|
|
248
|
+
/**
|
|
249
|
+
* 获取个人云会议室信息,包含入会密码和个人云会议室号
|
|
250
|
+
*/
|
|
251
|
+
getCloudMeetingRooms(userId: number): Promise<any>;
|
|
235
252
|
}
|
|
236
253
|
declare const _default: Action;
|
|
237
254
|
export default _default;
|
package/lib/enum/contraints.d.ts
CHANGED
|
@@ -114,3 +114,8 @@ export declare const CONTENT_CONTRAINTS: {
|
|
|
114
114
|
export declare const PEOPLE_CONTRAINTS: any;
|
|
115
115
|
export declare const RESOLUTION_MAP: Record<string, number>;
|
|
116
116
|
export declare const MIN_BANDWIDTH_MAP: Record<string, number>;
|
|
117
|
+
export declare const MEETING_CONTROL_PLATFORM: {
|
|
118
|
+
PC: string;
|
|
119
|
+
MOBILE: string;
|
|
120
|
+
SIDE: string;
|
|
121
|
+
};
|
package/lib/main/client.d.ts
CHANGED
|
@@ -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, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo,
|
|
7
|
+
import { IClientConfig, ICall, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, ILoginExtAccount, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternels, IVideoAudioType, IShareContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, IConferenceInfo, IContentMode, IToken, AutoMute, Key, IRecordPermission, TLocalLanguage, IFeatureConfig, IConfMgmtUrl } from '../type';
|
|
8
8
|
import Emmitter from '../tools/emmitter';
|
|
9
9
|
import Socket from '../tools/socket';
|
|
10
10
|
import Stream from './stream';
|
|
@@ -41,7 +41,6 @@ export default class Client extends Emmitter {
|
|
|
41
41
|
private autoMode;
|
|
42
42
|
private token;
|
|
43
43
|
private peer;
|
|
44
|
-
private servers;
|
|
45
44
|
private callInfo;
|
|
46
45
|
private stream;
|
|
47
46
|
private videoTrackList;
|
|
@@ -68,16 +67,16 @@ export default class Client extends Emmitter {
|
|
|
68
67
|
private contentMode;
|
|
69
68
|
private contentOnholdInfo;
|
|
70
69
|
private isSubscribeBulkRoster;
|
|
71
|
-
private recordPermission;
|
|
72
70
|
private recordState;
|
|
73
71
|
private qualityManager;
|
|
74
72
|
private isShareContent;
|
|
75
73
|
private isSubscribeTranslation;
|
|
76
74
|
private featureConfig;
|
|
75
|
+
private meeting;
|
|
77
76
|
private onDocumentChange;
|
|
78
|
-
constructor(config: IClientConfig,
|
|
77
|
+
constructor(config: IClientConfig, logger: Logger);
|
|
79
78
|
static instance: Client;
|
|
80
|
-
static getClientInstance(config: IClientConfig,
|
|
79
|
+
static getClientInstance(config: IClientConfig, logger: Logger): Client;
|
|
81
80
|
static getCustomLayoutItem(item: ILayout, resolution: number, quality: number): {
|
|
82
81
|
pid: number;
|
|
83
82
|
resolution: number;
|
|
@@ -92,6 +91,9 @@ export default class Client extends Emmitter {
|
|
|
92
91
|
* @returns { string } hideId
|
|
93
92
|
*/
|
|
94
93
|
static getHideId(config: IClientConfig): string;
|
|
94
|
+
getLoginInfo(): import("../type").ILoginInfo;
|
|
95
|
+
getFeatureConfig(): IFeatureConfig;
|
|
96
|
+
getCallInfo(): ICall;
|
|
95
97
|
getClientConfig(): IClientConfig;
|
|
96
98
|
getVideoManagers(): import("../type").IVideoRenders | undefined;
|
|
97
99
|
getPreviewStreams(): import("../type").IGetMediaStreams | {
|
|
@@ -156,15 +158,21 @@ export default class Client extends Emmitter {
|
|
|
156
158
|
* @param { IFeatureConfig } config 功能配置项
|
|
157
159
|
* @param { boolean } config.meetingShout 是否启用会控喊话场景,会控喊话场景需要指定mediaGroupId分组通道信息才可以正常接收远端声音;
|
|
158
160
|
* @param { boolean } config.v2states 是否启用小鱼数据上报功能,默认不启用,设置为false;
|
|
159
|
-
* @
|
|
161
|
+
* @property { boolean } config.checkRecordPermission 是否启用录制权限查询功能,默认不启用,设置为false;
|
|
160
162
|
* @property { boolean } config.bandwidthSetting 是否启用管理平台带宽控制(双向),默认不启用,设置为false;
|
|
161
|
-
* @
|
|
163
|
+
* @property { boolean } config.meetingInvite 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false;
|
|
164
|
+
* @property { boolean } config.meetingOwner 是否启用查询会议Owner信息,默认不启用,设置为false;
|
|
165
|
+
* @returns { boolean }
|
|
162
166
|
*/
|
|
163
167
|
setFeatureConfig(config: IFeatureConfig): {
|
|
164
168
|
code: string;
|
|
165
169
|
msg: string;
|
|
166
170
|
detail: any;
|
|
167
171
|
} | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* 获取会控地址
|
|
174
|
+
*/
|
|
175
|
+
getConfMgmtUrl(): Promise<IConfMgmtUrl | null>;
|
|
168
176
|
/**
|
|
169
177
|
* 切换显示/隐藏 Local 画面
|
|
170
178
|
*
|
|
@@ -222,6 +230,10 @@ export default class Client extends Emmitter {
|
|
|
222
230
|
* @param { boolean } status 是否自动切换设备
|
|
223
231
|
*/
|
|
224
232
|
switchAutoDevice(status?: boolean): Promise<boolean>;
|
|
233
|
+
/**
|
|
234
|
+
* 设置action信息
|
|
235
|
+
*/
|
|
236
|
+
private setActionInfo;
|
|
225
237
|
/**
|
|
226
238
|
* 功能操作上报记录
|
|
227
239
|
*
|
|
@@ -246,23 +258,20 @@ export default class Client extends Emmitter {
|
|
|
246
258
|
*/
|
|
247
259
|
setPageInfo(currentPage?: number): Promise<never> | undefined;
|
|
248
260
|
/**
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
* @private
|
|
252
|
-
*/
|
|
253
|
-
private handleConferenceInfo;
|
|
254
|
-
/**
|
|
255
|
-
* 检查会议室录制权限
|
|
261
|
+
* 检查并获取会议室录制权限
|
|
256
262
|
*
|
|
257
263
|
* @public
|
|
264
|
+
* @return { IRecordPermission } 录制权限
|
|
258
265
|
*/
|
|
259
266
|
checkPermissionWithMeetingNumber(): Promise<IRecordPermission>;
|
|
260
267
|
/**
|
|
261
268
|
* 录制存储空间检查
|
|
269
|
+
* 默认情况下业务层不需要主动调用,信令层面会下发可用空间,通过监听:recording-state-changed 获取
|
|
262
270
|
*
|
|
263
271
|
* @param { string } recordingUrl
|
|
272
|
+
* @return { IRecordPermission } 录制权限
|
|
264
273
|
*/
|
|
265
|
-
checkStorageSpaceWithRecordingUrl(recordingUrl: string): Promise<
|
|
274
|
+
checkStorageSpaceWithRecordingUrl(recordingUrl: string): Promise<IRecordPermission>;
|
|
266
275
|
/**
|
|
267
276
|
* 处理wss返回的数据
|
|
268
277
|
*
|
|
@@ -271,13 +280,73 @@ export default class Client extends Emmitter {
|
|
|
271
280
|
* @param { any } resolve
|
|
272
281
|
*/
|
|
273
282
|
handleSocketMessage(data: any, resolve: any): void;
|
|
283
|
+
/**
|
|
284
|
+
* 处理录制状态上报
|
|
285
|
+
*
|
|
286
|
+
* @private
|
|
287
|
+
* @param { Object } data 远端数据
|
|
288
|
+
*/
|
|
289
|
+
private onRecordStatusNotfiMessage;
|
|
290
|
+
/**
|
|
291
|
+
* 处理录制结果上报Message
|
|
292
|
+
*
|
|
293
|
+
* @private
|
|
294
|
+
* @param { Object } data 远端数据
|
|
295
|
+
*/
|
|
296
|
+
private onRecordingStateChangedMessage;
|
|
297
|
+
/**
|
|
298
|
+
* 处理Content状态控制消息
|
|
299
|
+
*
|
|
300
|
+
* @private
|
|
301
|
+
* @param { Object } data 远端数据
|
|
302
|
+
*/
|
|
303
|
+
private onDualStreamMessage;
|
|
304
|
+
/**
|
|
305
|
+
* 处理呼叫异常消息
|
|
306
|
+
*
|
|
307
|
+
* @private
|
|
308
|
+
* @param { Object } data 远端数据
|
|
309
|
+
*/
|
|
310
|
+
private onCallExceptionMessage;
|
|
311
|
+
/**
|
|
312
|
+
* 处理服务通知退会消息
|
|
313
|
+
*
|
|
314
|
+
* @private
|
|
315
|
+
* @param { Object } data 远端数据
|
|
316
|
+
*/
|
|
317
|
+
private onDisConnectedMessage;
|
|
318
|
+
/**
|
|
319
|
+
* 处理媒体迁会消息
|
|
320
|
+
*
|
|
321
|
+
* @private
|
|
322
|
+
*/
|
|
323
|
+
private onMediaChangedMessage;
|
|
324
|
+
/**
|
|
325
|
+
* 处理CallIndex消息
|
|
326
|
+
*
|
|
327
|
+
* @private
|
|
328
|
+
* @param { Object } data 远端数据
|
|
329
|
+
*/
|
|
330
|
+
private onCallIndexMessage;
|
|
331
|
+
/**
|
|
332
|
+
* 处理Connected消息,入会成功消息
|
|
333
|
+
*
|
|
334
|
+
* @param { Object } data 远端数据
|
|
335
|
+
*/
|
|
336
|
+
private onConnectedMessage;
|
|
337
|
+
/**
|
|
338
|
+
* 更新本地Roster数据
|
|
339
|
+
*
|
|
340
|
+
* @private
|
|
341
|
+
*/
|
|
342
|
+
private setLocalRosterStatus;
|
|
274
343
|
/**
|
|
275
344
|
* 处理调度状态消息,解析错误码并返回
|
|
276
345
|
*
|
|
277
346
|
* @private
|
|
278
347
|
* @param { IMonitorReportMessage } data 媒体调度消息
|
|
279
348
|
*/
|
|
280
|
-
private
|
|
349
|
+
private onMonitorReportMessage;
|
|
281
350
|
/**
|
|
282
351
|
* 发起会议呼叫,如果返回 true ,代表是否可以继续呼叫;
|
|
283
352
|
*
|
|
@@ -577,7 +646,7 @@ export default class Client extends Emmitter {
|
|
|
577
646
|
*/
|
|
578
647
|
applyVideoOrAudio(kind: 'video' | 'audio', isFirst?: boolean): void;
|
|
579
648
|
/**
|
|
580
|
-
*
|
|
649
|
+
* 推送本地Audio状态
|
|
581
650
|
*
|
|
582
651
|
* @param { boolean | string } status
|
|
583
652
|
*/
|
|
@@ -867,6 +936,12 @@ export default class Client extends Emmitter {
|
|
|
867
936
|
* @private
|
|
868
937
|
*/
|
|
869
938
|
private initDeviceManagerEvent;
|
|
939
|
+
/**
|
|
940
|
+
* 获取wssUrl
|
|
941
|
+
*
|
|
942
|
+
* @returns { string } wssUrl
|
|
943
|
+
*/
|
|
944
|
+
private getWssUrl;
|
|
870
945
|
/**
|
|
871
946
|
* init websocket connection
|
|
872
947
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @email luojinghui424@gmail.com
|
|
7
7
|
*
|
|
8
8
|
* Created at : 2021-01-05 17:24:07
|
|
9
|
-
* Last modified : 2022-
|
|
9
|
+
* Last modified : 2022-10-27 19:25:09
|
|
10
10
|
*/
|
|
11
11
|
import Logger from '../tools/logger';
|
|
12
12
|
import { ILayout, IVideoRenders, IRoster, ITemplateObj, IScreenInfo, IMode, IOutputCustomLayout, ILayoutRoster, IResolutionType, IConfInfo, IPageInfo, IReqInfo, IQualityType } from '../type/index';
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Meeting Info Control
|
|
3
|
+
*
|
|
4
|
+
* Created at : 2022-10-27 13:58:22
|
|
5
|
+
* Last modified : 2022-10-27 19:25:16
|
|
6
|
+
*/
|
|
7
|
+
import { IConferenceInfo, IRecordPermission, IConfMgmtUrl } from '../type';
|
|
8
|
+
import Client from './client';
|
|
9
|
+
import Logger from '../tools/logger';
|
|
10
|
+
declare class Meeting {
|
|
11
|
+
private client;
|
|
12
|
+
logger: Logger;
|
|
13
|
+
conferenceInfo: IConferenceInfo;
|
|
14
|
+
private recordPermission;
|
|
15
|
+
private cloudRooomInfo;
|
|
16
|
+
private confMgmtUrl;
|
|
17
|
+
constructor(client: Client, logger: Logger);
|
|
18
|
+
getRecordPermission(): IRecordPermission;
|
|
19
|
+
/**
|
|
20
|
+
* 登录用户信息和个人云会议室信息
|
|
21
|
+
*/
|
|
22
|
+
handleUserInfo(): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* 会议室信息,如号码、名称、类型、配置信息(是否有水印等)
|
|
25
|
+
* TODO:思考问题,如何将此处转为链式调用
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
handleConferenceInfo(): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* 获取会控相关地址
|
|
32
|
+
*
|
|
33
|
+
* @returns Promise<IConfMgmtUrl | null>
|
|
34
|
+
*/
|
|
35
|
+
getConfMgmtUrl(): Promise<IConfMgmtUrl | null>;
|
|
36
|
+
/**
|
|
37
|
+
* 获取详细的会控地址
|
|
38
|
+
*
|
|
39
|
+
* @param { string } url server下发的会控地址
|
|
40
|
+
* @param { string } platform 平台
|
|
41
|
+
* @returns IConfMgmtUrl
|
|
42
|
+
*/
|
|
43
|
+
private getMeetingControlUrl;
|
|
44
|
+
/**
|
|
45
|
+
* 获取vcnumber真实的会议室信息
|
|
46
|
+
*
|
|
47
|
+
* @param { string } vcNumber 终端对应的会议室号码
|
|
48
|
+
*/
|
|
49
|
+
private getVCConfInfo;
|
|
50
|
+
/**
|
|
51
|
+
* 获取Content水印内容
|
|
52
|
+
*/
|
|
53
|
+
private getWatermarkContent;
|
|
54
|
+
/**
|
|
55
|
+
* 获取会议分享详情信息
|
|
56
|
+
*
|
|
57
|
+
* TODO: 2022-10-27,携带meetingId的Info接口调用失败,原因是dcs(大数据当前服务)接口在入会后存在15s延迟,导致info返回403错误;
|
|
58
|
+
* TODO:2022-10-27,此处使用inviteUrl地址,暂时不使用微信邀请链接地址,原因是会议号获取的微信邀请链接页面访问失效,需要提供MeetingId字段才行;
|
|
59
|
+
*/
|
|
60
|
+
private getMeetingInviteInfo;
|
|
61
|
+
/**
|
|
62
|
+
* 录制权限获取
|
|
63
|
+
*
|
|
64
|
+
* @public
|
|
65
|
+
* @return { IRecordPermission } 录制权限
|
|
66
|
+
*/
|
|
67
|
+
checkPermissionWithMeetingNumber(): Promise<IRecordPermission>;
|
|
68
|
+
/**
|
|
69
|
+
* 录制存储空间检查
|
|
70
|
+
*
|
|
71
|
+
* @param { string } recordingUrl
|
|
72
|
+
* @return { IRecordPermission } 录制权限
|
|
73
|
+
*/
|
|
74
|
+
checkStorageSpaceWithRecordingUrl(recordingUrl: string): Promise<IRecordPermission>;
|
|
75
|
+
/**
|
|
76
|
+
* 获取个人云会议室信息,包含入会密码和个人云会议室号
|
|
77
|
+
*/
|
|
78
|
+
getCloudMeetingRooms(): Promise<void>;
|
|
79
|
+
}
|
|
80
|
+
export default Meeting;
|
package/lib/tools/config.d.ts
CHANGED
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
* @date 2019-10-24 14:06:05
|
|
6
6
|
*/
|
|
7
7
|
export declare const version: any;
|
|
8
|
+
export declare const serverProtocolMap: Record<string, string>;
|
|
8
9
|
export declare const proxy: {
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
wssProtocol: string;
|
|
11
|
+
protocol: string;
|
|
12
|
+
host: string;
|
|
11
13
|
logHost: string;
|
|
12
14
|
};
|
package/lib/tools/utils.d.ts
CHANGED
package/lib/type/client.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { IToken } from './base';
|
|
|
2
2
|
import VideoManager from '../main/videoManager';
|
|
3
3
|
import { IInternels } from './stream';
|
|
4
4
|
import { SupportLocalLanguages } from '../enum';
|
|
5
|
+
import { ICloudRoomConfig } from './meeting';
|
|
5
6
|
/**
|
|
6
7
|
* 向Client推送流类型
|
|
7
8
|
*
|
|
@@ -210,9 +211,10 @@ export declare enum RecordStatus {
|
|
|
210
211
|
* client配置参数
|
|
211
212
|
*
|
|
212
213
|
* @property { string } clientId 必填 | "" | 网关校验id(clientId),需要从对接人处获取
|
|
213
|
-
* @property { string }
|
|
214
|
-
* @property { string }
|
|
215
|
-
* @property { string }
|
|
214
|
+
* @property { string } server 非必填 服务地址, IP/域名 + 端口,如: cloudapi.xylink.com
|
|
215
|
+
* @property { string } wssServer 非必填 websocket服务地址,默认不需要配置, 待废弃
|
|
216
|
+
* @property { string } httpServer 非必填 resetApi服务地址,默认不需要配置, 待废弃
|
|
217
|
+
* @property { string } logServer 非必填 logServer服务地址,默认不需要配置, 待废弃
|
|
216
218
|
* @property { IClientLayout } layout 非必填 | AUTO | 布局模式,可选:AUTO | CUSTOM
|
|
217
219
|
* @property { boolean } debug 非必填 | false | 是否接收所有参会者音视频状态数据,默认不发送
|
|
218
220
|
* @property { boolean } muteAudio 非必填 | false | 是否开启/关闭麦克风入会,默认是false,开启麦克风
|
|
@@ -228,11 +230,13 @@ export declare enum RecordStatus {
|
|
|
228
230
|
* @property { boolean } isThird 埋点
|
|
229
231
|
* @property { boolean } isSupportHybridCloud 是否是混合云,默认公有云。 如果有探测到内网地址,则此值为true,将不进行鉴权。
|
|
230
232
|
* @property { boolean } isVerifyMeetingId 是否校验会议号,默认校验
|
|
233
|
+
* @property { boolean? } checkSSL 是否启用必须使用Https协议访问页面,默认启用,设置为true,建议开启,Http页面下无法访问WebRTC API,音视频互通存在问题;
|
|
231
234
|
*
|
|
232
235
|
*/
|
|
233
236
|
export interface IClientConfig {
|
|
234
237
|
clientId: string;
|
|
235
238
|
clientSecret?: string;
|
|
239
|
+
server?: string;
|
|
236
240
|
wssServer?: string;
|
|
237
241
|
httpServer?: string;
|
|
238
242
|
logServer?: string;
|
|
@@ -252,6 +256,7 @@ export interface IClientConfig {
|
|
|
252
256
|
isThird?: boolean;
|
|
253
257
|
isSupportHybridCloud?: boolean;
|
|
254
258
|
isVerifyMeetingId?: boolean;
|
|
259
|
+
checkSSL?: boolean;
|
|
255
260
|
}
|
|
256
261
|
export interface ILayoutParams {
|
|
257
262
|
rosters: IRoster[];
|
|
@@ -320,17 +325,20 @@ export interface IDefault {
|
|
|
320
325
|
};
|
|
321
326
|
};
|
|
322
327
|
CONF_INFO: IConfInfo;
|
|
328
|
+
CLOUD_ROOOM_INFO: ICloudRoomConfig;
|
|
329
|
+
CONFERENCE_INFO: IConferenceInfo;
|
|
323
330
|
}
|
|
324
331
|
/**
|
|
325
|
-
* SDK
|
|
332
|
+
* SDK登录用户信息
|
|
326
333
|
*
|
|
327
|
-
* @property { string? } callUri
|
|
334
|
+
* @property { string? } callUri 用户类型ID
|
|
328
335
|
* @property { string } securityKey 安全码
|
|
329
|
-
* @property { string } access_token
|
|
330
|
-
* @property { string } refresh_token 刷新
|
|
331
|
-
* @property { number } id
|
|
336
|
+
* @property { string } access_token Token
|
|
337
|
+
* @property { string } refresh_token 刷新Token
|
|
338
|
+
* @property { number } id 用户ID
|
|
332
339
|
* @property { string } displayName 登录用户名
|
|
333
|
-
* @property { string } cellPhone
|
|
340
|
+
* @property { string } cellPhone 呼叫号码
|
|
341
|
+
* @property { string } extUserId 第三方用户ID
|
|
334
342
|
*/
|
|
335
343
|
export interface ILoginInfo {
|
|
336
344
|
callUri?: string;
|
|
@@ -470,11 +478,6 @@ export interface ISdkUserInfo {
|
|
|
470
478
|
password: string;
|
|
471
479
|
extId?: string;
|
|
472
480
|
}
|
|
473
|
-
export interface IServers {
|
|
474
|
-
wssServer: string;
|
|
475
|
-
httpServer: string;
|
|
476
|
-
logServer: string;
|
|
477
|
-
}
|
|
478
481
|
export interface IHttpConfig {
|
|
479
482
|
baseUrl: string;
|
|
480
483
|
}
|
|
@@ -509,7 +512,7 @@ export interface IConfAuxProperties {
|
|
|
509
512
|
* @property { string } avatar 头像
|
|
510
513
|
*/
|
|
511
514
|
export interface IConferenceInfo {
|
|
512
|
-
callNumber
|
|
515
|
+
callNumber?: string;
|
|
513
516
|
callUrl?: string;
|
|
514
517
|
deviceId?: string;
|
|
515
518
|
deviceType?: string;
|
|
@@ -518,6 +521,48 @@ export interface IConferenceInfo {
|
|
|
518
521
|
numberType?: string;
|
|
519
522
|
confAuxProperties?: IConfAuxProperties;
|
|
520
523
|
avatar?: string;
|
|
524
|
+
inviteInfo?: InviteInfo;
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* 会议分享信息
|
|
528
|
+
*
|
|
529
|
+
* @property { string } displayName - 会议室名称
|
|
530
|
+
* @property { boolean } inEnterprise - 所属会议号是否在企业中
|
|
531
|
+
* @property { string } inviteAppUrl - 微信邀请链接
|
|
532
|
+
* @property { string } inviteUrl - 云会议室邀请链接
|
|
533
|
+
* @property { string } invokSchema - 小鱼客户端Scheme获取地址
|
|
534
|
+
* @property { string } linkNumber - 电话入会号码
|
|
535
|
+
* @property { string } mobileWebrtcVisibleSetting - 移动端是否显示WebRTC入会
|
|
536
|
+
* @property { string } number - 会议号
|
|
537
|
+
* @property { string } password - 入会密码
|
|
538
|
+
* @property { string } pstnNumber - 电话呼叫号码
|
|
539
|
+
* @property { string } shareUrl - 邀请链接详情页地址
|
|
540
|
+
* @property { string } userAvatar - 管理员头像
|
|
541
|
+
* @property { string } userName - 管理员名称
|
|
542
|
+
* @property { string } userProfileId - 用户ID
|
|
543
|
+
* @property { string } voiceNumber - 电话呼叫时的会议号
|
|
544
|
+
* @property { string } webrtcSetting - PC端是否显示WebRTC入会
|
|
545
|
+
* @property { string } webrtcUrl - WebRTC入会地址
|
|
546
|
+
*
|
|
547
|
+
*/
|
|
548
|
+
export interface InviteInfo {
|
|
549
|
+
displayName: string;
|
|
550
|
+
inEnterprise: boolean;
|
|
551
|
+
inviteAppUrl: string;
|
|
552
|
+
inviteUrl: string;
|
|
553
|
+
invokSchema: string;
|
|
554
|
+
linkNumber: string;
|
|
555
|
+
mobileWebrtcVisibleSetting: boolean;
|
|
556
|
+
number: string;
|
|
557
|
+
password: string;
|
|
558
|
+
pstnNumber: string;
|
|
559
|
+
shareUrl: string;
|
|
560
|
+
userAvatar: string;
|
|
561
|
+
userName: string;
|
|
562
|
+
userProfileId: string;
|
|
563
|
+
voiceNumber: string;
|
|
564
|
+
webrtcSetting: boolean;
|
|
565
|
+
webrtcUrl: string;
|
|
521
566
|
}
|
|
522
567
|
/**
|
|
523
568
|
* 呼叫参数
|
|
@@ -1109,13 +1154,21 @@ export interface ITranslationContent {
|
|
|
1109
1154
|
* @property { boolean } v2states 是否启用小鱼数据上报功能,默认启用,设置为true;
|
|
1110
1155
|
* @property { boolean } checkRecordPermission 是否启用录制权限查询功能,默认不启用,设置为false;
|
|
1111
1156
|
* @property { boolean } bandwidthSetting 是否启用管理平台带宽控制(双向),默认不启用,设置为false;
|
|
1112
|
-
* @property { boolean }
|
|
1157
|
+
* @property { boolean } meetingInvite 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false;
|
|
1158
|
+
* @property { boolean } meetingOwner 是否启用查询会议Owner信息,默认不启用,设置为false;
|
|
1113
1159
|
*/
|
|
1114
1160
|
export interface IFeatureConfig {
|
|
1115
1161
|
meetingShout?: boolean;
|
|
1116
1162
|
v2states?: boolean;
|
|
1117
1163
|
checkRecordPermission?: boolean;
|
|
1118
1164
|
bandwidthSetting?: boolean;
|
|
1119
|
-
|
|
1165
|
+
meetingInvite?: boolean;
|
|
1166
|
+
meetingOwner?: boolean;
|
|
1167
|
+
}
|
|
1168
|
+
export interface IConfMgmtUrl {
|
|
1169
|
+
pc: string;
|
|
1170
|
+
member: string;
|
|
1171
|
+
side: string;
|
|
1172
|
+
mobile?: string;
|
|
1120
1173
|
}
|
|
1121
1174
|
export {};
|
package/lib/type/index.d.ts
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Meeting Lib Type Defined
|
|
3
|
+
*
|
|
4
|
+
* Created at : 2022-10-27 18:13:24
|
|
5
|
+
* Last modified : 2022-10-27 19:25:49
|
|
6
|
+
*/
|
|
7
|
+
import { ILoginInfo } from './client';
|
|
8
|
+
/**
|
|
9
|
+
* 呼叫号码的云会议室属性配置
|
|
10
|
+
*/
|
|
11
|
+
export interface IConfAuxPro {
|
|
12
|
+
watermark: string;
|
|
13
|
+
displayConfNo: string;
|
|
14
|
+
inoutReminder: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Calluriv2接口返回的部分对外数据信息
|
|
18
|
+
*/
|
|
19
|
+
export interface IConfCallInfo {
|
|
20
|
+
displayName: string;
|
|
21
|
+
numberType: string;
|
|
22
|
+
callUrl: string;
|
|
23
|
+
avatar: string;
|
|
24
|
+
deviceType: string;
|
|
25
|
+
deviceId: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 个人云会议室信息
|
|
29
|
+
* 默认只保存了部分信息
|
|
30
|
+
*/
|
|
31
|
+
export interface ICloudRoomConfig {
|
|
32
|
+
meetingControlPassword: string;
|
|
33
|
+
meetingNumber: string;
|
|
34
|
+
password: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 用户和对应个人云会议室信息数据
|
|
38
|
+
*/
|
|
39
|
+
export interface IExportUserInfo extends ILoginInfo {
|
|
40
|
+
cloudRoomInfo: ICloudRoomConfig;
|
|
41
|
+
}
|