@xylink/xy-rtc-sdk 4.0.0 → 4.0.2-beta.3

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.
Files changed (168) hide show
  1. package/{README.MD → README.md} +1 -1
  2. package/action/ability.d.ts +151 -0
  3. package/action/api.d.ts +252 -0
  4. package/action/auth.d.ts +134 -0
  5. package/action/base.d.ts +13 -0
  6. package/action/config.d.ts +63 -0
  7. package/action/control.d.ts +101 -0
  8. package/action/enterprise.d.ts +66 -0
  9. package/{lib/tools/httpClient.d.ts → action/http.d.ts} +19 -11
  10. package/action/index.d.ts +92 -0
  11. package/action/index.type.d.ts +30 -0
  12. package/action/log.d.ts +17 -0
  13. package/action/meeting.d.ts +107 -0
  14. package/{lib/enum → enum}/client.d.ts +1 -6
  15. package/{lib/enum → enum}/constraints.d.ts +1 -6
  16. package/{lib/enum → enum}/device.d.ts +6 -0
  17. package/{lib/enum/errorCode.d.ts → enum/errorCode/common.d.ts} +1 -22
  18. package/enum/errorCode/index.d.ts +6 -0
  19. package/enum/errorCode/server.d.ts +10 -0
  20. package/enum/errorCode/signal.d.ts +15 -0
  21. package/{lib/enum → enum}/index.d.ts +11 -8
  22. package/enum/meeting.d.ts +15 -0
  23. package/{lib/enum → enum}/polling.d.ts +1 -0
  24. package/feature/artboard/index.d.ts +139 -0
  25. package/feature/artboard/index.type.d.ts +264 -0
  26. package/{lib/feature → feature}/customMessage/index.d.ts +3 -8
  27. package/{lib/feature → feature}/edu/index.d.ts +2 -1
  28. package/{lib/feature → feature}/edu/index.type.d.ts +1 -0
  29. package/feature/im/index.d.ts +89 -0
  30. package/feature/im/index.type.d.ts +30 -0
  31. package/feature/index.d.ts +29 -0
  32. package/feature/query/index.d.ts +36 -0
  33. package/feature/query/index.type.d.ts +61 -0
  34. package/{lib/feature → feature}/speaker/index.d.ts +5 -10
  35. package/{lib/feature → feature}/speaker/index.type.d.ts +1 -0
  36. package/{lib/index.d.ts → index.d.ts} +19 -21
  37. package/{lib/interface → interface}/clientInterface.type.d.ts +24 -11
  38. package/{lib/interface → interface}/contentTrackInterface.type.d.ts +1 -6
  39. package/{lib/interface → interface}/event.type.d.ts +60 -1
  40. package/{lib/interface → interface}/videoAudioTrackInterface.type.d.ts +2 -7
  41. package/{lib/main → main}/ability/const.d.ts +1 -0
  42. package/{lib/main → main}/ability/index.d.ts +5 -10
  43. package/main/auth/index.d.ts +160 -0
  44. package/main/auth/index.type.d.ts +63 -0
  45. package/main/client/clientBase.d.ts +60 -0
  46. package/main/client/clientState.d.ts +36 -0
  47. package/{lib/main/client.d.ts → main/client/index.d.ts} +253 -79
  48. package/main/client/index.type.d.ts +42 -0
  49. package/{lib/main → main}/device/index.d.ts +5 -15
  50. package/{lib/tools → main/helper}/i18n.d.ts +2 -1
  51. package/{lib/main → main}/helper/index.d.ts +9 -7
  52. package/{lib/main → main}/layout/index.d.ts +7 -16
  53. package/{lib/main → main}/layout/index.type.d.ts +10 -9
  54. package/{lib/main → main}/layout/polling.d.ts +3 -11
  55. package/{lib/main → main}/layout/state.d.ts +4 -10
  56. package/{lib/tools → main/layout}/template/index.d.ts +25 -7
  57. package/{lib/main/layout/template.d.ts → main/layout/template/manager.d.ts} +2 -1
  58. package/main/layout/template/mobile.d.ts +4 -0
  59. package/main/layout/template/polling.d.ts +3 -0
  60. package/{lib/main → main}/media/index.d.ts +13 -11
  61. package/{lib/main → main}/media/index.type.d.ts +1 -0
  62. package/{lib/main → main}/meeting/control.d.ts +20 -1
  63. package/{lib/main → main}/meeting/control.type.d.ts +1 -0
  64. package/{lib/main → main}/meeting/index.d.ts +39 -32
  65. package/main/meeting/index.type.d.ts +43 -0
  66. package/{lib/main → main}/meeting/verify.d.ts +2 -7
  67. package/{lib/main/peer.d.ts → main/peer/index.d.ts} +30 -25
  68. package/main/peer/index.type.d.ts +10 -0
  69. package/{lib/main → main}/plugin/index.d.ts +2 -7
  70. package/{lib/main → main}/quality/index.d.ts +1 -6
  71. package/{lib/main → main}/quality/quality.worker.d.ts +1 -4
  72. package/{lib/main → main}/quality/report.d.ts +2 -1
  73. package/{lib/main → main}/render/index.d.ts +4 -9
  74. package/{lib/main → main}/render/index.type.d.ts +2 -7
  75. package/{lib/main → main}/render/videoManager.d.ts +2 -7
  76. package/{lib/main → main}/roster/index.d.ts +9 -9
  77. package/{lib/main → main}/server/index.d.ts +73 -4
  78. package/main/server/index.type.d.ts +53 -0
  79. package/{lib/main → main}/signal/index.d.ts +2 -1
  80. package/{lib/main → main}/socket/index.d.ts +6 -12
  81. package/{lib/main → main}/stream/index.d.ts +17 -21
  82. package/{lib/main → main}/track/baseTrack.d.ts +6 -14
  83. package/{lib/main → main}/track/contentTrack.d.ts +4 -12
  84. package/main/track/customContentTrack.d.ts +10 -0
  85. package/main/track/customVideoAudioTrack.d.ts +10 -0
  86. package/{lib/main → main}/track/helper.d.ts +13 -1
  87. package/{lib/main → main}/track/videoAudioCapture.d.ts +2 -10
  88. package/{lib/main → main}/track/videoAudioTrack.d.ts +13 -15
  89. package/{lib/main → main}/vom/index.d.ts +2 -7
  90. package/package.json +26 -111
  91. package/{lib/tools/analyser.d.ts → tools/analyser/index.d.ts} +2 -9
  92. package/{lib/tools/analyserManager.d.ts → tools/analyser/manager.d.ts} +4 -13
  93. package/{lib/tools → tools}/config.d.ts +3 -10
  94. package/tools/data/list.d.ts +87 -0
  95. package/tools/data/map.d.ts +17 -0
  96. package/{lib/tools/detectBrowser/index.d.ts → tools/detector/browser.d.ts} +3 -3
  97. package/{lib/tools/detectTool → tools/detector}/index.d.ts +3 -7
  98. package/{lib/tools/detectStream/index.d.ts → tools/detector/stream.d.ts} +2 -9
  99. package/{lib/tools → tools}/emitter.d.ts +9 -3
  100. package/tools/frame/index.d.ts +36 -0
  101. package/tools/frame/index.type.d.ts +1 -0
  102. package/tools/index.d.ts +72 -0
  103. package/{lib/tools/dbManager.d.ts → tools/log/db.d.ts} +8 -14
  104. package/{lib/tools → tools}/log/logger.d.ts +6 -9
  105. package/tools/log/logger.worker.d.ts +10 -0
  106. package/{lib/tools → tools}/log/loggerManager.d.ts +3 -3
  107. package/tools/log/utils.d.ts +6 -0
  108. package/{lib/tools → tools}/pressure/index.d.ts +2 -9
  109. package/{lib/tools/promiseQueue.d.ts → tools/queue/async.d.ts} +3 -9
  110. package/tools/queue/queue.type.d.ts +10 -0
  111. package/{lib/tools/queue.d.ts → tools/queue/sync.d.ts} +3 -9
  112. package/{lib/tools → tools}/resize.d.ts +3 -4
  113. package/{lib/tools/snapshot.d.ts → tools/snapshot/index.d.ts} +3 -11
  114. package/tools/snapshot/index.type.d.ts +38 -0
  115. package/{lib/tools → tools/socket}/socket.d.ts +6 -10
  116. package/tools/socket/socketManager.d.ts +32 -0
  117. package/tools/store.d.ts +47 -0
  118. package/tools/utils.d.ts +162 -0
  119. package/{lib/tools → tools}/verify.d.ts +1 -1
  120. package/tools/window.d.ts +31 -0
  121. package/{lib/type → type}/ability.d.ts +3 -1
  122. package/{lib/type → type}/analyser.d.ts +1 -8
  123. package/{lib/type → type}/auth.d.ts +34 -0
  124. package/{lib/type → type}/base.d.ts +43 -11
  125. package/{lib/type → type}/capture.d.ts +1 -0
  126. package/{lib/type → type}/client.d.ts +65 -70
  127. package/{lib/type → type}/index.d.ts +5 -3
  128. package/{lib/type → type}/layout.d.ts +15 -1
  129. package/{lib/type → type}/logger.d.ts +1 -6
  130. package/{lib/type → type}/meeting.d.ts +105 -15
  131. package/{lib/type → type}/quality.d.ts +2 -7
  132. package/{lib/type → type}/stream.d.ts +4 -5
  133. package/{lib/type → type}/track.d.ts +1 -9
  134. package/xyrtc.js +23212 -0
  135. package/lib/action/index.d.ts +0 -415
  136. package/lib/enum/meeting.d.ts +0 -4
  137. package/lib/feature/index.d.ts +0 -3
  138. package/lib/main/auth/index.d.ts +0 -101
  139. package/lib/main/clientBase.d.ts +0 -40
  140. package/lib/main/clientState.d.ts +0 -56
  141. package/lib/main/server/index.type.d.ts +0 -21
  142. package/lib/main/track/customContentTrack.d.ts +0 -18
  143. package/lib/main/track/customVideoAudioTrack.d.ts +0 -18
  144. package/lib/tools/enum.d.ts +0 -6
  145. package/lib/tools/index.d.ts +0 -8
  146. package/lib/tools/log/logger.worker.d.ts +0 -13
  147. package/lib/tools/regex.d.ts +0 -4
  148. package/lib/tools/store.d.ts +0 -15
  149. package/lib/tools/template/mobile.d.ts +0 -9
  150. package/lib/tools/template/polling.d.ts +0 -8
  151. package/lib/tools/utils.d.ts +0 -97
  152. package/lib/xyrtc.cjs.js +0 -1
  153. package/lib/xyrtc.umd.js +0 -1
  154. /package/{lib/enum → enum}/analyser.d.ts +0 -0
  155. /package/{lib/enum → enum}/i18n.d.ts +0 -0
  156. /package/{lib/interface → interface}/baseModule.type.d.ts +0 -0
  157. /package/{lib/main → main}/device/index.type.d.ts +0 -0
  158. /package/{lib/main → main}/helper/index.type.d.ts +0 -0
  159. /package/{lib/main → main}/meeting/verify.type.d.ts +0 -0
  160. /package/{lib/main → main}/render/videoManager.type.d.ts +0 -0
  161. /package/{lib/main → main}/vom/index.type.d.ts +0 -0
  162. /package/{lib/tools/detectTool → tools/detector}/index.type.d.ts +0 -0
  163. /package/{lib/tools/detectStream/index.type.d.ts → tools/detector/stream.type.d.ts} +0 -0
  164. /package/{lib/tools → tools}/pressure/index.type.d.ts +0 -0
  165. /package/{lib/type → type}/action.d.ts +0 -0
  166. /package/{lib/type → type}/peer.d.ts +0 -0
  167. /package/{lib/type → type}/polling.d.ts +0 -0
  168. /package/{lib/type → type}/socket.d.ts +0 -0
@@ -1,415 +0,0 @@
1
- import { ILoginExtAccount, ISdkUserInfo, IMeetingInfo, IToken, IMeetingInviteParams, IMediaConfigParam, LoginType, LoginParams, SignInTextParams, FocusViewAction, IStateParams, ILoginWidthAuthCode, AutoMute } from '../type/index';
2
- import Logger from '../tools/log/logger';
3
- export interface ICommonParams {
4
- securityKey: string;
5
- callUri?: string;
6
- }
7
- declare class Action {
8
- private logger;
9
- private commonParams;
10
- private randomDeviceSN;
11
- private http;
12
- private logHttp;
13
- private meetingInfo;
14
- private seqId;
15
- private statesTime;
16
- private httpDefaultBaseUrl;
17
- private logHttpDefaultBaseUrl;
18
- constructor(logger?: Logger);
19
- getTokenInfo(): IToken;
20
- /**
21
- * 设置服务器地址
22
- *
23
- * @param { object } options - 包含基本URL和日志URL的对象。
24
- * @property { string } options.baseUrl - 服务器的基本URL。
25
- * @property { string } options.logUrl - 日志服务器的URL。
26
- */
27
- setBaseUrl({ baseUrl, logUrl }: {
28
- baseUrl?: string;
29
- logUrl?: string;
30
- }): void;
31
- /**
32
- * 设置API网关校验信息
33
- *
34
- * @param { object } options - API网关校验信息
35
- * @property { string } options.clientId - 网关校验
36
- * @property { string } options.clientSecret - 网关密钥
37
- */
38
- setClientInfo({ clientId, clientSecret }: {
39
- clientId: string;
40
- clientSecret: string;
41
- }): void;
42
- /**
43
- * 设置会议相关会议,用于后续请求
44
- *
45
- * @param { IMeetingInfo } info - 会议相关信息
46
- */
47
- setMeetingInfo(info: IMeetingInfo): void;
48
- /**
49
- * 设置token相关信息
50
- *
51
- * @param { IToken | null } tokenInfo - token信息
52
- */
53
- setTokenInfo(tokenInfo: IToken | null): void;
54
- /**
55
- * 日志上传
56
- *
57
- * @param data
58
- * @returns
59
- */
60
- uploadLog(data: any): Promise<any>;
61
- /**
62
- * 不加密登录
63
- *
64
- * @param sdkUserInfo
65
- */
66
- login(sdkUserInfo: ISdkUserInfo): Promise<any>;
67
- /**
68
- * 加密登录
69
- *
70
- * @param { ISdkUserInfo } sdkUserInfo 小鱼账号
71
- */
72
- encryptLogin(sdkUserInfo: ISdkUserInfo): Promise<any>;
73
- /**
74
- * 获取匿名账号
75
- *
76
- * @param params
77
- */
78
- getSdkUserInfo(params: ILoginExtAccount): Promise<any>;
79
- /**
80
- * 根据Token获取用户信息
81
- *
82
- * @param { string } token - token信息
83
- * @returns { Object } - 用户信息
84
- */
85
- getUserInfo(token: string): Promise<any>;
86
- /**
87
- * 获取云会议室信息
88
- *
89
- * 3.10_20240214 根据能力集更换成新的接口, 原接口:/api/rest/uss/v4/callUrlInfoV2,
90
- *
91
- * @param { Object } params
92
- * @param { string } number 会议号
93
- * @param { string } country 国际化
94
- * @returns
95
- */
96
- getCallUri(params: {
97
- number: string;
98
- country?: string;
99
- }): Promise<any>;
100
- /**
101
- * 校验会议室密码
102
- *
103
- * 3.10_20240214 更换成新的接口, 原接口:/api/rest/uss/v4/en/cloudmeeting/validation
104
- *
105
- * @param { string } confNumber 会议号
106
- * @param { string } password 密码
107
- * @returns
108
- */
109
- verifyPassword(confNumber: string, password: string): Promise<any>;
110
- /**
111
- * 举手发言
112
- *
113
- * @param { 'handup' | 'handdown' | 'mute' } type 操作类型
114
- * @param { string } meetingId 会议ID
115
- * @param { string } di callerUri
116
- * @param { string } conferenceNo 会议号
117
- * @returns
118
- */
119
- hand(type: 'handup' | 'handdown' | 'mute'): Promise<any>;
120
- /**
121
- * 获取i18n/errorcode等链接
122
- *
123
- * @deprecated
124
- * @returns
125
- */
126
- getDefaultServerConfig(): Promise<any>;
127
- /**
128
- * 批量获取serverConfig, 获取错误码/i18n等json链接
129
- *
130
- * @param {string[]} includeConfigNameList 需要的配置key值
131
- * @returns
132
- */
133
- getServerConfig(includeConfigNameList?: string[]): Promise<any>;
134
- /**
135
- * 获取json文件内容
136
- *
137
- * @param { string } url
138
- * @returns
139
- */
140
- getCodeByJson(url: string): Promise<any>;
141
- /**
142
- * 获取随机云会议室号(目前仅用户巡课)
143
- *
144
- * @param { number } userProfileId 用户ID
145
- * @param { string } securityKey
146
- * @param { IGetConferenceParams } params
147
- * @returns
148
- */
149
- getConference(userProfileId: number, securityKey: string, params: {
150
- autoMute: AutoMute;
151
- }): Promise<any>;
152
- /**
153
- * 功能操作上报记录
154
- *
155
- * @private
156
- * @param { IStateParams | IStateParams[] } state
157
- * @property { TCategory } category - 事件类别
158
- * @property { TEventName } eventName - 事件名称
159
- * @property { Objet } params - 事件详细数据
160
- */
161
- setStates(state: IStateParams | IStateParams[]): Promise<void>;
162
- /**
163
- * 监课模式不需要入会密码
164
- *
165
- * @param { string } confNumber
166
- * @returns
167
- */
168
- ignoreMeetingMonitor(confNumber: string): Promise<any>;
169
- /**
170
- * 信令多活:获取信令服务信息
171
- *
172
- * @param { number } userId 用户ID
173
- * @param { string } server 服务端地址
174
- * @param { string } enterpriseId 企业ID
175
- * @param { boolean } sign 是否签名
176
- * @returns
177
- */
178
- getAllocation(userId: number, server: string, enterpriseId: string, sign?: boolean): Promise<any>;
179
- /**
180
- * 获取会议室水印
181
- *
182
- * 3.10_20240214 根据能力集更换成新的接口, 原接口:/api/rest/v1/meetingroom/conferenceNumber/watermarkContent/{conferenceNumber}
183
- *
184
- * @param { string } conferenceNumber 会议号
185
- * @returns
186
- */
187
- getWatermarkContent(conferenceNumber: string): Promise<any>;
188
- /**
189
- * 根据外部企业ID获取内部企业ID
190
- *
191
- * @param { Object } params
192
- * @param { string } params.extId 企业ID
193
- * @param { string } params.clientId
194
- * @param { string } params.clientSecret
195
- * @param { string } params.httpServer 服务器地址
196
- * @returns
197
- */
198
- getEnterpriseId(extId: string): Promise<any>;
199
- /**
200
- * WebRTC 内外网探测
201
- *
202
- * @param { Object } params
203
- * @param { string } params.extId 企业ID
204
- * @param { string } params.clientId
205
- * @param { string } params.clientSecret
206
- * @param { string } params.httpServer 服务器地址
207
- * @returns
208
- */
209
- locator(enterpriseId: string): Promise<any>;
210
- /**
211
- * 监会操作
212
- *
213
- * @param params meetingId: 会议号;action: 操作类型;operations: 操作信息
214
- * @returns [hasError, dada]
215
- */
216
- monitorOperation(params: {
217
- meetingId: string;
218
- action: string;
219
- operations: Array<{
220
- callUri: string;
221
- params: string;
222
- }>;
223
- }): Promise<[boolean, any]>;
224
- /**
225
- * 监会 updateWebViewProp 操作
226
- *
227
- * @param meetingId 会议号
228
- * @param operations 操作信息
229
- */
230
- updateWebViewProp(meetingId: string, operations?: Array<{
231
- callUri: string;
232
- params: string;
233
- }>): Promise<[boolean, any]>;
234
- /**
235
- * 检查会议室录制权限
236
- *
237
- * @param { string } confNumber 云会议室号
238
- * @param { string } meetingId 会议室ID
239
- * @returns
240
- */
241
- checkPermissionWithMeetingNumber(confNumber: string, meetingId: string): Promise<any>;
242
- /**
243
- * 录制存储空间检查
244
- *
245
- * @param { string } recordingUrl
246
- * @returns
247
- */
248
- checkStorageSpaceWithRecordingUrl(recordingUrl: string): Promise<any>;
249
- /**
250
- * 获取企业的相关配置(private),包含带宽配置、请流能力等
251
- *
252
- * @param { number } userId 用户ID
253
- * @returns
254
- */
255
- getEnterpriseMediaConfig(userId: number, config: IMediaConfigParam[]): Promise<any>;
256
- /**
257
- * 获取企业相关配置(buffet), 包含头像配置、禁用语音转写英文翻译
258
- *
259
- * 内部企业ID的话,uaa-api会在转发请求时,放在请求头带给后端服务。
260
- * 服务端需要兼容下取参数的位置,如果他们之前的位置取不到内部企业ID,就从header头上的特定字段去取。
261
- *
262
- * @param { number } userId 用户ID
263
- * @returns
264
- */
265
- getEnterpriseConfig(userId: number, enterpriseId: string): Promise<any>;
266
- /**
267
- * 刷新Token
268
- *
269
- * @param { string } refresh_token 待刷新的token
270
- * @returns
271
- */
272
- refreshToken(refresh_token?: string): Promise<any>;
273
- /**
274
- * 获取会议邀请链接信息
275
- *
276
- * 3.10_20240214 更换接口, 原接口:/page/client/shareConference/infomation
277
- *
278
- * @param { IMeetingInviteParams } params 邀请链接请求参数
279
- * @returns
280
- */
281
- getMeetingInviteInfo(params: IMeetingInviteParams): Promise<any>;
282
- /**
283
- * 获取个人云会议室信息,包含入会密码和个人云会议室号
284
- *
285
- * 3.10_20240214 更换接口, 原接口:/api/rest/v3/en/user/${userId}/cloudMeetingRooms
286
- *
287
- * @param { number } userId 用户ID
288
- * @returns
289
- */
290
- getCloudMeetingRooms(userId: number): Promise<any>;
291
- /**
292
- * 获取参会者头像
293
- *
294
- * 3.10_20240214 更换接口, 原接口:/api/rest/v4/en/incomingcallUrlInfo
295
- *
296
- * @param { string } callUrl 待获取头像的参会者callUri
297
- * @returns
298
- */
299
- getInComingCallUrlInfo(callUrl: string): Promise<{
300
- avatar: string;
301
- }>;
302
- /**
303
- * 通知会控打开/关闭摄像头结果
304
- *
305
- * @param { 'muteVideo' | 'unMuteVideo' } type 操作类型
306
- * @param { string } value 操作详细数据
307
- * @returns
308
- */
309
- sendVideoControlResult(type: 'muteVideo' | 'unMuteVideo', value: string): Promise<any>;
310
- /**
311
- * 签到
312
- *
313
- * @param { Object } params - 参数
314
- * @param { string } params.deviceId - 用户ID
315
- * @param { string } params.questionnaireId - 签到ID
316
- * @returns
317
- */
318
- signIn({ deviceId, questionnaireId }: {
319
- deviceId: string;
320
- questionnaireId: string;
321
- }): Promise<any>;
322
- /**
323
- * 校验会控主持密码
324
- *
325
- * @param { string } pwd - 参数
326
- * @returns
327
- */
328
- verifyControlPassword(pwd: string): Promise<any>;
329
- /**
330
- * 终端获取签到答题等文案
331
- *
332
- * @param { Object } params - 参数
333
- * @param { EVENT_TYPE } type - 业务状态
334
- * @param { number } businessType - 业务类型
335
- * @param { string } environment - 语言,中文:zh-cn 、英文:en、台湾:zh-tw、香港:zh-hk
336
- * @returns
337
- */
338
- getSignInText({ type, environment, businessType }: SignInTextParams): Promise<any>;
339
- /**
340
- * 授权码登录(建行)
341
- *
342
- * @param { ILoginWidthAuthCode } params 参数
343
- * @returns
344
- */
345
- loginWithAuthCode({ extId, extUserId, displayName, oauthCode, isTempUser, channelId }: ILoginWidthAuthCode): Promise<any>;
346
- /**
347
- * 三方用户统一认证登录
348
- *
349
- * @param { LoginType } loginType 登录方式
350
- * @param { LoginParams } data body信息
351
- * @returns
352
- */
353
- loginWithUnified(loginType: LoginType, data: LoginParams): Promise<any>;
354
- /**
355
- * 会控设置焦点画面
356
- *
357
- * @param { string } deviceUri - 焦点画面终端callUri
358
- * @param { FocusViewAction} action - 设置焦点画面/取消焦点画面
359
- * @returns
360
- */
361
- setMeetingFocusView(deviceUri: string, action: FocusViewAction): Promise<any>;
362
- /**
363
- * 通过会控修改名称
364
- *
365
- * @param { string } newName - 新名称
366
- * @returns
367
- */
368
- rename(newName: string): Promise<any>;
369
- /**
370
- * 获取会控侧边栏会议信息,包含是否是主持人、是否需要会控密码等
371
- */
372
- fetchMeetingControlInfo(): Promise<any>;
373
- /**
374
- * 获取能力集
375
- *
376
- * @param { number[] } localAbilities - 终端能力集
377
- * @returns { number[] } abilityList - 服务端能力集
378
- */
379
- getAbility(localAbilities?: number[]): Promise<any>;
380
- endAllMeeting(): Promise<any>;
381
- /**
382
- * 设置默认参数,如securityKey
383
- *
384
- * @param { number[] } localAbilities - 终端能力集
385
- * @returns { number[] } abilityList - 服务端能力集
386
- */
387
- setCommonParams(data: Record<string, any>): void;
388
- /**
389
- * 获取公钥,加密登录需使用此公钥
390
- *
391
- * @param { string } account 小鱼账号
392
- * @returns
393
- */
394
- private getPublicKey;
395
- /**
396
- * 定制(RSA直接加密)登录接口(适配SHA512加密老用户)
397
- *
398
- * @param data
399
- * @returns
400
- */
401
- private customLogin;
402
- /**
403
- * 加密密码
404
- */
405
- private encryptPassword;
406
- /**
407
- * 获取加密密码, 如何base64后不是128的倍数
408
- *
409
- * @param { string } pubKey - 秘钥
410
- * @param { string } password - 待加密的密码
411
- * @param { string } isSha512 - 是否经过sha512处理
412
- */
413
- private getEncryptPwd;
414
- }
415
- export default Action;
@@ -1,4 +0,0 @@
1
- /**
2
- * 签到文案匹配
3
- */
4
- export declare const COPY_WRITING: Record<number, string>;
@@ -1,3 +0,0 @@
1
- export * from './speaker/index';
2
- export * from './customMessage/index';
3
- export * from './edu/index';
@@ -1,101 +0,0 @@
1
- /**
2
- * 登录模块
3
- */
4
- import { ILoginExtAccount, ISdkUserInfo, ILoginInfo, ILoginWidthAuthCode, LoginXYAccountParams, LoginExtTokenParams, LoginTokenInfo, IReturnResult } from '../../type/index';
5
- import Client from '../client';
6
- declare class Auth {
7
- private logger;
8
- private action;
9
- private loginInfo;
10
- private extId;
11
- private isLoggedIn;
12
- constructor(client: Client);
13
- getIsLoggedIn(): boolean;
14
- getLoginInfo(): ILoginInfo;
15
- setLoginInfo(loginInfo: ILoginInfo): void;
16
- destroy(): void;
17
- private preLoginTasks;
18
- /**
19
- * 第三方账号登录 - 旧方法
20
- *
21
- * @public
22
- * @param { ILoginExtAccount } params 参数
23
- * @param { string } params.displayName - 必填,用户名称
24
- * @param { string } params.extId - 必填,企业id
25
- * @param { string? } params.extUserId - 可选,三方用户ID
26
- * @param { boolean? } params.tempUser - 可选,是否是临时账号 v3.9.2新增
27
- * @return
28
- */
29
- loginExternalAccount(params: ILoginExtAccount): Promise<IReturnResult>;
30
- /**
31
- * 授权码登录
32
- *
33
- * @param { ILoginWidthAuthCode } params 参数
34
- * @param {string} params.extID 企业id
35
- * @param {string} params.extUserId 用户id
36
- * @param {string} params.displayName 用户名称
37
- * @param {string} params.oauthCode 授权码
38
- * @param {boolean} params.isTempUser 是否临时账户
39
- * @param {string} params.channelId 渠道id
40
- * @return
41
- */
42
- loginWithAuthCode(params: ILoginWidthAuthCode): Promise<IReturnResult>;
43
- /**
44
- * 登录
45
- *
46
- * @param { ISdkUserInfo } sdkUserInfo
47
- * @param { ILoginExtAccount } params
48
- * @return
49
- */
50
- login(sdkUserInfo: ISdkUserInfo, params?: ILoginExtAccount): Promise<IReturnResult>;
51
- /**
52
- * 三方用户统一认证-小鱼账号登录
53
- *
54
- * @param { LoginXYAccountParams } params 参数
55
- * @return
56
- */
57
- loginXYAccount(params: LoginXYAccountParams): Promise<IReturnResult>;
58
- /**
59
- * 三方用户统一认证-三方id登录
60
- *
61
- * @param { ILoginExtAccount } params 参数
62
- * @return
63
- */
64
- loginExtUserId(params: ILoginExtAccount): Promise<IReturnResult>;
65
- /**
66
- * 三方用户统一认证-token登录
67
- *
68
- * @param { LoginExtTokenParams } params 参数
69
- * @return
70
- */
71
- loginExtToken(params: LoginExtTokenParams): Promise<IReturnResult>;
72
- /**
73
- * 无登录模式调用,需要在调用makeCall前配置,用于网关签名计算和接口安全校验
74
- *
75
- * @param { LoginTokenInfo } info - 登录token、clientId等相关信息
76
- */
77
- setLoginTokenInfo(info: LoginTokenInfo): Promise<IReturnResult>;
78
- /**
79
- * 根据Token获取用户信息
80
- *
81
- * @param { string } token - token信息
82
- * @returns { Promise<IReturnResult> } - 结果
83
- */
84
- getUserInfo(token: string): Promise<IReturnResult>;
85
- /**
86
- * 统一处理登录后的信息
87
- *
88
- * @param { any } result 接口返回值
89
- * @param { ILoginExtAccount } params
90
- * @returns
91
- */
92
- private handleLoginResult;
93
- /**
94
- * 校验三方用户ID
95
- *
96
- * @param { string } extUserId 三方用户ID
97
- * @returns
98
- */
99
- private verifyExtUserId;
100
- }
101
- export default Auth;
@@ -1,40 +0,0 @@
1
- /**
2
- * XYLink WebRTC Client Base Lib
3
- *
4
- * @summary SDK IMPLEMENTS LIB
5
- * @author JingHui Luo <luojinghui424@gmail.com>
6
- *
7
- * Created at : 2024-04-22 15:20:15
8
- * Last modified : 2024-07-08 19:53:07
9
- */
10
- import Emitter from '../tools/emitter';
11
- import Logger from '../tools/log/logger';
12
- import { IClientConfig, XYClientEventKey } from '../type/index';
13
- export declare class XYRTCClientBase extends Emitter<XYClientEventKey | string> {
14
- protected config: IClientConfig;
15
- protected logger: Logger;
16
- constructor(config: IClientConfig, logger: Logger);
17
- /**
18
- * 客户端推送Event消息
19
- *
20
- * @param { XYClientEventKey } key - 事件的Key
21
- * @param { T[] } args - 需要推送的数据内容
22
- */
23
- emitMessage<T>(key: XYClientEventKey, ...args: T[]): void;
24
- /**
25
- * 注册客户端监听事件
26
- * 调用时机:初始化SDK后,登录之前注册
27
- * 关联内容:XYRTCClient事件
28
- *
29
- * @param { XYClientEventKey | string } key - 事件的Key
30
- * @param { Function } listener - 事件回调函数
31
- * @param { number? } total - 可选,回调函数触发次数,默认是-1,表示无限制
32
- */
33
- on(key: XYClientEventKey | string, listener: Function, total?: number): void;
34
- /**
35
- * 取消监听事件
36
- *
37
- * @param { XYDeviceEventKey | XYTrackEventKey } key - 监听器key
38
- */
39
- off(key: XYClientEventKey): void;
40
- }
@@ -1,56 +0,0 @@
1
- /**
2
- * XYLink WebRTC Client State Lib
3
- *
4
- * Created at : 2024-04-22 15:45:36
5
- * Last modified : 2024-05-17 19:06:08
6
- */
7
- import { ICodeList, XYBaseModule } from '../type/index';
8
- import Action from '../action/index';
9
- export default class XYClientState implements XYBaseModule {
10
- private errorcode;
11
- private i18nCode;
12
- destroy(): void;
13
- getErrorCode(): ICodeList;
14
- getI18nCode(): ICodeList;
15
- /**
16
- * 设置国际化i8n列表
17
- *
18
- * @param { ICodeList } code - 国际化列表
19
- */
20
- setI18nCode(code: ICodeList): void;
21
- /**
22
- * 获取指定Key的国际化消息
23
- *
24
- * @param { string } key - 消息Key
25
- * @returns { string } - 返回国际化消息
26
- */
27
- getI18nMessage(key: string): string;
28
- /**
29
- * 获取指定Key的错误消息
30
- *
31
- * @param { string } key - 消息Key
32
- * @returns { string } - 返回错误码消息
33
- */
34
- getErrorCodeMessage(key: string): string;
35
- /**
36
- * 设置错误码列表
37
- *
38
- * @param { ICodeList } code - 错误码列表
39
- */
40
- setErrorCode(code: ICodeList): void;
41
- /**
42
- * 获取链接内容
43
- *
44
- * @param { string } configName - 'errorcode' | 'i18n'
45
- * @param { object } data - 数据
46
- * @param { object } oldData - 历史数据
47
- * @param { Action } action - Action实例
48
- */
49
- getCodeByJson(configName: string, data: {
50
- version: string;
51
- link: string;
52
- }, oldData: {
53
- version: string;
54
- link: string;
55
- }, action: Action): Promise<void>;
56
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * 服务器地址
3
- * 格式:IP/域名 + 端口(可选),如: cloudapi.xylink.com
4
- *
5
- * @property { string } httpServer - 可选,WebRTC网关服务器地址
6
- * @property { string } wssServer - 可选,WebRTC网关WebSocket服务器地址
7
- * @property { string } logServer - 可选,日志服务器地址
8
- */
9
- export interface XYServerInfo {
10
- httpServer?: string;
11
- wssServer?: string;
12
- logServer?: string;
13
- }
14
- /**
15
- * 服务器地址, 包含协议
16
- */
17
- export interface XYServerUrlInfo {
18
- httpServerUrl?: string;
19
- wssServerUrl?: string;
20
- logServerUrl?: string;
21
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * Custom Content Share Track
3
- *
4
- * @summary 自定义共享视频流
5
- * @author JingHui Luo <luojinghui424@gmail.com>
6
- *
7
- * Created at : 2023-11-23 09:37:01
8
- * Last modified : 2024-04-26 16:16:25
9
- */
10
- import { TrackLibType } from '../../type/index';
11
- import Stream from '../stream';
12
- import BaseTrack from './baseTrack';
13
- declare class CustomContentTrack extends BaseTrack {
14
- private trackType;
15
- constructor(streamInstance: Stream);
16
- getTrackType(): TrackLibType;
17
- }
18
- export default CustomContentTrack;
@@ -1,18 +0,0 @@
1
- /**
2
- * Custom Video Audio Track
3
- *
4
- * @summary short description for the file
5
- * @author JingHui Luo <luojinghui424@gmail.com>
6
- *
7
- * Created at : 2023-11-23 09:37:01
8
- * Last modified : 2024-04-26 16:16:38
9
- */
10
- import { TrackLibType } from '../../type/index';
11
- import Stream from '../stream';
12
- import BaseTrack from './baseTrack';
13
- declare class CustomVideoAudioTrack extends BaseTrack {
14
- private trackType;
15
- constructor(streamInstance: Stream);
16
- getTrackType(): TrackLibType;
17
- }
18
- export default CustomVideoAudioTrack;
@@ -1,6 +0,0 @@
1
- import { TLocale } from '../type/index';
2
- export declare const FailEnumMap: {
3
- [key in TLocale]: {
4
- [key: string]: string;
5
- };
6
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * 转换HideId隐身入会字段
3
- *
4
- * @param { string } hideId - HiedId隐藏入会配置
5
- * @returns { string } hideId
6
- */
7
- declare const getHideId: (hideId: string | number) => string;
8
- export { getHideId };