@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
@@ -45,7 +45,7 @@ await videoAudioTrack.capture();
45
45
  XYClient.publish(videoAudioTrack);
46
46
  ```
47
47
 
48
- 详细集成流程参考[详细 API 文档](https://openapi.xylink.com/common/meeting/api/description_v4?platform=web)完成音视频通话。
48
+ 详细集成流程参考[详细 API 文档](https://openapi.xylink.com/common/meeting/api/description?platform=web)完成音视频通话。
49
49
 
50
50
  ## 开源示例项目
51
51
 
@@ -0,0 +1,151 @@
1
+ import { AbilityAPIKey, AbilityUrlInfo } from './index.type';
2
+
3
+ declare class AbilityAPIManager {
4
+ /**
5
+ * 获取云会议室信息
6
+ */
7
+ static callUri: {
8
+ use_sec_api: {
9
+ useParams: (params: any) => any;
10
+ useResponse: (data: unknown) => unknown;
11
+ url: string;
12
+ method: import('axios').Method;
13
+ };
14
+ default: {
15
+ useParams: (params: any) => any;
16
+ useResponse: (data: unknown) => unknown;
17
+ url: string;
18
+ method: import('axios').Method;
19
+ };
20
+ };
21
+ /**
22
+ * 校验会议室密码
23
+ */
24
+ static verifyPassword: {
25
+ use_sec_api: {
26
+ useParams: ({ securityKey }: any) => {
27
+ securityKey: any;
28
+ deviceType: number;
29
+ };
30
+ useData: ({ confNumber, password }: any) => {
31
+ number: any;
32
+ passwd: any;
33
+ validationType: string;
34
+ };
35
+ useResponse: (data: unknown) => unknown;
36
+ url: string;
37
+ method: import('axios').Method;
38
+ };
39
+ default: {
40
+ useParams: ({ securityKey }: any) => {
41
+ securityKey: any;
42
+ };
43
+ useData: ({ confNumber, password }: any) => {
44
+ number: any;
45
+ passwd: any;
46
+ };
47
+ useResponse: (data: unknown) => unknown;
48
+ url: string;
49
+ method: import('axios').Method;
50
+ };
51
+ };
52
+ /**
53
+ * 获取水印内容
54
+ */
55
+ static watermarkContent: {
56
+ use_sec_api: {
57
+ useParams: () => void;
58
+ useResponse: (data: unknown) => unknown;
59
+ url: string;
60
+ method: import('axios').Method;
61
+ };
62
+ default: {
63
+ useParams: () => void;
64
+ useResponse: (data: unknown) => unknown;
65
+ url: string;
66
+ method: import('axios').Method;
67
+ };
68
+ };
69
+ /**
70
+ * 获取会议邀请信息
71
+ */
72
+ static meetingInviteInfo: {
73
+ meeting_share_new_page_api: {
74
+ useParams: () => void;
75
+ useResponse: (data: unknown) => unknown;
76
+ url: string;
77
+ method: import('axios').Method;
78
+ };
79
+ default: {
80
+ useParams: () => void;
81
+ useResponse: (data: unknown) => unknown;
82
+ url: string;
83
+ method: import('axios').Method;
84
+ };
85
+ };
86
+ /**
87
+ * 获取个人云会议室信息,包含入会密码和个人云会议室号
88
+ */
89
+ static cloudMeetingRooms: {
90
+ use_sec_api: {
91
+ useParams: () => void;
92
+ useResponse: (data: unknown) => unknown;
93
+ url: string;
94
+ method: import('axios').Method;
95
+ };
96
+ default: {
97
+ useParams: () => void;
98
+ useResponse: (data: unknown) => unknown;
99
+ url: string;
100
+ method: import('axios').Method;
101
+ };
102
+ };
103
+ /**
104
+ * 获取参会者头像
105
+ */
106
+ static inComingCallUrlInfo: {
107
+ use_sec_api: {
108
+ useParams: ({ securityKey, callUrl }: any) => {
109
+ securityKey: any;
110
+ deviceType: number;
111
+ callUrl: any;
112
+ };
113
+ useResponse: (data: unknown) => unknown;
114
+ url: string;
115
+ method: import('axios').Method;
116
+ };
117
+ default: {
118
+ useParams: ({ securityKey, callUrl }: any) => {
119
+ securityKey: any;
120
+ callUrl: any;
121
+ };
122
+ useResponse: (data: unknown) => unknown;
123
+ url: string;
124
+ method: import('axios').Method;
125
+ };
126
+ };
127
+ /**
128
+ * 终端录制时查询存储空间
129
+ */
130
+ static recordStorage: {
131
+ use_sec_api: {
132
+ useParams: () => void;
133
+ useResponse: (data: unknown) => unknown;
134
+ url: string;
135
+ method: import('axios').Method;
136
+ };
137
+ default: {
138
+ useParams: () => void;
139
+ useResponse: (data: unknown) => unknown;
140
+ url: string;
141
+ method: import('axios').Method;
142
+ };
143
+ };
144
+ /**
145
+ * 获取 Ability URL 信息
146
+ *
147
+ * @param { AbilityAPIKey } key - api key
148
+ */
149
+ static getAbilityUrlInfo(key: AbilityAPIKey): AbilityUrlInfo;
150
+ }
151
+ export default AbilityAPIManager;
@@ -0,0 +1,252 @@
1
+ import { APIUrlInfo } from './index.type';
2
+
3
+ declare class XYApi {
4
+ /**
5
+ * 不加密登录
6
+ *
7
+ * PUT更换成POST,server版本要求:20240802
8
+ */
9
+ static uneEncryptedLogin: APIUrlInfo;
10
+ /**
11
+ * 加密登录
12
+ */
13
+ static encryptLogin: APIUrlInfo;
14
+ /**
15
+ * 授权码登录(建行)
16
+ */
17
+ static loginWithAuthCode: APIUrlInfo;
18
+ /**
19
+ * 三方用户统一认证登录
20
+ */
21
+ static loginWithUnified: APIUrlInfo;
22
+ /**
23
+ * 单点登录(农商行)
24
+ */
25
+ static loginThirdAuthToken: APIUrlInfo;
26
+ /**
27
+ * 手机验证码登录
28
+ */
29
+ static loginXYLinkByVerifyCode: APIUrlInfo;
30
+ /**
31
+ * 获取图片验证码
32
+ */
33
+ static captchaImage: APIUrlInfo;
34
+ /**
35
+ * 获取图片验证码
36
+ */
37
+ static checkCaptchaImage: APIUrlInfo;
38
+ /**
39
+ * 根据图形验证码获取短信验证码
40
+ */
41
+ static verificationCode: APIUrlInfo;
42
+ /**
43
+ * 新用户注册并登录
44
+ */
45
+ static registerAndLogin: APIUrlInfo;
46
+ /**
47
+ * 获取公钥,加密登录需使用此公钥
48
+ */
49
+ static publicKey: APIUrlInfo;
50
+ /**
51
+ * 定制(RSA直接加密)登录接口(适配SHA512加密老用户)
52
+ */
53
+ static customLogin: APIUrlInfo;
54
+ /**
55
+ * 获取匿名账号
56
+ */
57
+ static sdkUserInfo: APIUrlInfo;
58
+ /**
59
+ * 根据Token获取用户信息
60
+ */
61
+ static userInfoByToken: APIUrlInfo;
62
+ /**
63
+ * 获取云会议室信息
64
+ *
65
+ * 3.10_20240214 根据能力集更换成新的接口; 原接口:/api/rest/uss/v4/callUrlInfoV2;
66
+ */
67
+ static callUriSec: APIUrlInfo;
68
+ /**
69
+ * 获取云会议室信息(uss旧接口)
70
+ */
71
+ static callUri: APIUrlInfo;
72
+ /**
73
+ * 校验会议室密码
74
+ *
75
+ * 3.10_20240214 更换成新的接口; 原接口:/api/rest/uss/v4/en/cloudmeeting/validation
76
+ */
77
+ static verifyPasswordSec: APIUrlInfo;
78
+ /**
79
+ * 校验会议室密码(uss旧接口)
80
+ */
81
+ static verifyPassword: APIUrlInfo;
82
+ /**
83
+ * 举手发言
84
+ */
85
+ static handup: APIUrlInfo;
86
+ /**
87
+ * 取消举手
88
+ */
89
+ static handdown: APIUrlInfo;
90
+ /**
91
+ * 结束发言
92
+ */
93
+ static mute: APIUrlInfo;
94
+ /**
95
+ * 批量获取serverConfig; 获取错误码/i18n等json链接
96
+ */
97
+ static serverConfig: APIUrlInfo;
98
+ /**
99
+ * 获取随机云会议室号(目前仅用户巡课)
100
+ */
101
+ static conference: APIUrlInfo;
102
+ /**
103
+ * 功能操作上报记录
104
+ */
105
+ static deviceStates: APIUrlInfo;
106
+ /**
107
+ * 监课模式不需要入会密码
108
+ */
109
+ static ignoreMeetingMonitor: APIUrlInfo;
110
+ /**
111
+ * 信令多活:获取信令服务信息
112
+ */
113
+ static allocation: APIUrlInfo;
114
+ /**
115
+ * 获取会议室水印
116
+ *
117
+ * 3.10_20240214 根据能力集更换成新的接口; 原接口:/api/rest/v1/meetingroom/conferenceNumber/watermarkContent/{conferenceNumber}
118
+ */
119
+ static watermarkContentSec: APIUrlInfo;
120
+ /**
121
+ * 获取云会议室水印
122
+ */
123
+ static watermarkContent: APIUrlInfo;
124
+ /**
125
+ * 根据外部企业ID获取内部企业ID
126
+ */
127
+ static innerEnterpriseId: APIUrlInfo;
128
+ /**
129
+ * WebRTC 内外网探测
130
+ */
131
+ static locator: APIUrlInfo;
132
+ /**
133
+ * 监会操作
134
+ */
135
+ static monitorOperation: APIUrlInfo;
136
+ /**
137
+ * 检查会议室录制权限
138
+ */
139
+ static recordAuthorization: APIUrlInfo;
140
+ /**
141
+ * 录制存储空间检查
142
+ */
143
+ static recordStorage: APIUrlInfo;
144
+ /**
145
+ * 录制存储空间检查
146
+ *
147
+ * 分区云1018 根据能力集更换成新的接口; 原接口:api/rest/v3/en/charge/storage
148
+ */
149
+ static recordStorageSec: APIUrlInfo;
150
+ /**
151
+ * 获取企业的相关配置(private),包含带宽配置、请流能力等
152
+ */
153
+ static enterpriseConfig: APIUrlInfo;
154
+ /**
155
+ * 终端配置聚合接口
156
+ *
157
+ * configType = 'enterpriseConfig' 获取企业相关配置(buffet); 包含头像配置、禁用语音转写英文翻译
158
+ * configType = 'uicustomization' 管理平台角色相关配置,比如录制权限
159
+ */
160
+ static clientConfig: APIUrlInfo;
161
+ /**
162
+ * 获取参会者组织架构和职务信息
163
+ */
164
+ static depAndTitle: APIUrlInfo;
165
+ /**
166
+ * 刷新Token
167
+ */
168
+ static refreshToken: APIUrlInfo;
169
+ /**
170
+ * 获取会议邀请链接信息
171
+ *
172
+ * 3.10_20240214 更换接口; 原接口:/page/client/shareConference/infomation
173
+ */
174
+ static meetingInviteInfoNew: APIUrlInfo;
175
+ /**
176
+ * 获取会议邀请链接信息
177
+ */
178
+ static meetingInviteInfo: APIUrlInfo;
179
+ /**
180
+ * 获取个人云会议室信息,包含入会密码和个人云会议室号
181
+ *
182
+ * 3.10_20240214 更换接口; 原接口:/api/rest/v3/en/user/${userId}/cloudMeetingRooms
183
+ */
184
+ static cloudMeetingRoomsSec: APIUrlInfo;
185
+ /**
186
+ * 获取个人云会议室信息,包含入会密码和个人云会议室号
187
+ */
188
+ static cloudMeetingRooms: APIUrlInfo;
189
+ /**
190
+ * 获取参会者头像
191
+ *
192
+ * 3.10_20240214 更换接口; 原接口:/api/rest/v4/en/incomingcallUrlInfo
193
+ */
194
+ static inComingCallUrlInfoSec: APIUrlInfo;
195
+ /**
196
+ * 获取参会者头像(旧接口)
197
+ */
198
+ static inComingCallUrlInfo: APIUrlInfo;
199
+ /**
200
+ * 通知会控打开/关闭摄像头结果
201
+ */
202
+ static videoControlResult: APIUrlInfo;
203
+ /**
204
+ * 签到
205
+ *
206
+ * v2: 无越权校验
207
+ * v3: 有越权校验
208
+ */
209
+ static signIn: APIUrlInfo;
210
+ /**
211
+ * 校验会控主持密码
212
+ */
213
+ static verifyControlPassword: APIUrlInfo;
214
+ /**
215
+ * 终端获取签到答题等文案
216
+ */
217
+ static signInText: APIUrlInfo;
218
+ /**
219
+ * 会控设置焦点画面
220
+ */
221
+ static focusLayout: APIUrlInfo;
222
+ /**
223
+ * 通过会控修改名称
224
+ */
225
+ static rename: APIUrlInfo;
226
+ /**
227
+ * 获取会控侧边栏会议信息,包含是否是主持人、是否需要会控密码等
228
+ */
229
+ static meetingControlInfo: APIUrlInfo;
230
+ /**
231
+ * 获取能力集
232
+ */
233
+ static ability: APIUrlInfo;
234
+ /**
235
+ * 结束全体会议
236
+ */
237
+ static endAllMeeting: APIUrlInfo;
238
+ /**
239
+ * 日志上传
240
+ */
241
+ static uploadLog: APIUrlInfo;
242
+ /**
243
+ * 校验入会名称敏感词
244
+ * 注意:仅支持公有云
245
+ */
246
+ static sensitiveWord: APIUrlInfo;
247
+ /**
248
+ * 获取企业信息,包含企业信息配置title/icon、企业名称
249
+ */
250
+ static enterpriseInfo: APIUrlInfo;
251
+ }
252
+ export default XYApi;
@@ -0,0 +1,134 @@
1
+ import { CheckCaptchaImageParams, LoginOtherParams } from '../main/auth/index.type';
2
+ import { default as BaseAction } from './base';
3
+ import { default as Action } from '.';
4
+ import { ILoginExtAccount, ILoginWidthAuthCode, ISdkUserInfo, LoginParams, LoginThirdAuthTokenParams, LoginType, LoginVerifyCodeParams, RegisterAndLoginParams } from '../type/auth';
5
+
6
+ declare class AuthAction extends BaseAction {
7
+ constructor(action: Action);
8
+ /**
9
+ * 根据Token获取用户信息
10
+ *
11
+ * @param { string } token - token信息
12
+ * @returns { Object } - 用户信息
13
+ */
14
+ getUserInfo(token: string): Promise<any>;
15
+ /**
16
+ * 获取匿名账号
17
+ *
18
+ * @param { ILoginExtAccount } params - 三方登录用户信息
19
+ */
20
+ getSdkUserInfo(params: ILoginExtAccount): Promise<any>;
21
+ /**
22
+ * 加密登录
23
+ *
24
+ * @param { ISdkUserInfo } sdkUserInfo 小鱼账号
25
+ */
26
+ encryptLogin(sdkUserInfo: ISdkUserInfo, params?: LoginOtherParams): Promise<any>;
27
+ /**
28
+ * 授权码登录(建行)
29
+ *
30
+ * @param { ILoginWidthAuthCode } params 参数
31
+ * @returns
32
+ */
33
+ loginWithAuthCode({ extId, extUserId, displayName, oauthCode, isTempUser, channelId }: ILoginWidthAuthCode): Promise<any>;
34
+ /**
35
+ * 三方用户统一认证登录
36
+ *
37
+ * @param { LoginType } loginType 登录方式
38
+ * @param { LoginParams } data body信息
39
+ * @returns
40
+ */
41
+ loginWithUnified(loginType: LoginType, data: LoginParams): Promise<any>;
42
+ /**
43
+ * 三方账号统一认证登录-单点登录
44
+ * @since 3.9.11
45
+ *
46
+ * @param { LoginThirdAuthTokenParams } params - 单点登录配置参数
47
+ * @property { string } params.token - 单点登录Token信息
48
+ * @property { string } params.thirdPlatform - 单点登录平台名
49
+ * @property { string } params.path - 单点登录接口地址
50
+ */
51
+ loginThirdAuthToken(params: LoginThirdAuthTokenParams): Promise<any>;
52
+ /**
53
+ * 手机验证码登录
54
+ *
55
+ * @param { LoginVerifyCodeParams } params - 登录参数
56
+ * @property { string } params.account - 账号
57
+ * @property { string } params.verificationCode - 短信验证码
58
+ * @returns
59
+ */
60
+ loginXYLinkByVerifyCode(params: LoginVerifyCodeParams): Promise<any>;
61
+ /**
62
+ * 新用户注册并登录
63
+ *
64
+ * @param { RegisterAndLoginParams } params - 登录参数
65
+ * @property { string } params.loginIdentifier - 手机号
66
+ * @property { string } params.verificationCode - 验证码
67
+ * @property { string } params.deviceDisplayName - 用户名
68
+ *
69
+ */
70
+ registerAndLogin(params: RegisterAndLoginParams): Promise<any>;
71
+ /**
72
+ * 获取图片验证码
73
+ *
74
+ * @returns
75
+ */
76
+ getCaptchaImage(): Promise<any>;
77
+ /**
78
+ * 校验图片验证码
79
+ *
80
+ * @param { CheckCaptchaImageParams } params - 参数
81
+ * @returns
82
+ */
83
+ checkCaptchaImage(data: CheckCaptchaImageParams): Promise<any>;
84
+ /**
85
+ * 根据图形验证获取验证码
86
+ *
87
+ * @param { string } phone - 手机号
88
+ * @returns
89
+ */
90
+ getVerificationCode: (phone: string) => Promise<any>;
91
+ /**
92
+ * 获取公钥,加密登录需使用此公钥
93
+ *
94
+ * @param { string } account 小鱼账号
95
+ * @returns
96
+ */
97
+ private getPublicKey;
98
+ /**
99
+ * 不加密登录
100
+ *
101
+ * 调用加密接口登录,如果加密接口不存在,则采用不加密接口登录
102
+ * 调用的接口未在api网关进行配置,则会返回没有权限错误码
103
+ *
104
+ * @param sdkUserInfo
105
+ */
106
+ login(sdkUserInfo: ISdkUserInfo): Promise<any>;
107
+ /**
108
+ * 定制(RSA直接加密)登录接口(适配SHA512加密老用户)
109
+ *
110
+ * @param data
111
+ * @returns
112
+ */
113
+ private customLogin;
114
+ /**
115
+ * 加密密码
116
+ */
117
+ private encryptPassword;
118
+ /**
119
+ * 获取加密密码, 如何base64后不是128的倍数
120
+ *
121
+ * @param { string } pubKey - 秘钥
122
+ * @param { string } password - 待加密的密码
123
+ * @param { string } isSha512 - 是否经过sha512处理
124
+ */
125
+ private getEncryptPwd;
126
+ /**
127
+ * 刷新Token
128
+ *
129
+ * @param { string } refresh_token 待刷新的token
130
+ * @returns
131
+ */
132
+ refreshToken(refresh_token?: string): Promise<any>;
133
+ }
134
+ export default AuthAction;
@@ -0,0 +1,13 @@
1
+ import { default as Logger } from '../tools/log/logger';
2
+ import { default as Action, ICommonParams } from '.';
3
+ import { default as HttpClient } from './http';
4
+
5
+ declare class BaseAction {
6
+ action: Action;
7
+ http: HttpClient;
8
+ logger: Logger | null;
9
+ randomDeviceSN: string;
10
+ commonParams: ICommonParams;
11
+ constructor(action: Action);
12
+ }
13
+ export default BaseAction;
@@ -0,0 +1,63 @@
1
+ import { IStateParams } from '../type/client';
2
+ import { default as BaseAction } from './base';
3
+ import { default as Action } from '.';
4
+
5
+ declare class ConfigAction extends BaseAction {
6
+ private seqId;
7
+ private statesTime;
8
+ constructor(action: Action);
9
+ /**
10
+ * 批量获取serverConfig, 获取错误码/i18n等json链接、会控地址、im地址
11
+ *
12
+ * @param {string[]} includeConfigNameList 需要的配置key值
13
+ * @returns
14
+ */
15
+ getServerConfig(includeConfigNameList?: string[]): Promise<any>;
16
+ /**
17
+ * 获取json文件内容
18
+ *
19
+ * @param { string } url
20
+ * @returns
21
+ */
22
+ getCodeByJson(url: string): Promise<any>;
23
+ /**
24
+ * 功能操作上报记录
25
+ *
26
+ * @private
27
+ * @param { IStateParams | IStateParams[] } state
28
+ * @property { TCategory } category - 事件类别
29
+ * @property { TEventName } eventName - 事件名称
30
+ * @property { Objet } params - 事件详细数据
31
+ */
32
+ setStates(state: IStateParams | IStateParams[]): Promise<void>;
33
+ /**
34
+ * 信令多活:获取信令服务信息
35
+ *
36
+ * @param { number } userId - 用户ID
37
+ * @param { string } server - 服务端地址
38
+ * @param { string } enterpriseId - 企业ID
39
+ * @since 4.0.2
40
+ * @param { boolean } isStart - 强制分配 不读缓存
41
+ * @returns
42
+ */
43
+ getAllocation(userId: number, server: string, enterpriseId: string): Promise<any>;
44
+ /**
45
+ * WebRTC 内外网探测
46
+ *
47
+ * @param { Object } params
48
+ * @param { string } params.extId 企业ID
49
+ * @param { string } params.clientId
50
+ * @param { string } params.clientSecret
51
+ * @param { string } params.httpServer 服务器地址
52
+ * @returns
53
+ */
54
+ locator(enterpriseId: string): Promise<any>;
55
+ /**
56
+ * 获取能力集
57
+ *
58
+ * @param { number[] } localAbilities - 终端能力集
59
+ * @returns { number[] } abilityList - 服务端能力集
60
+ */
61
+ getAbility(localAbilities?: number[]): Promise<any>;
62
+ }
63
+ export default ConfigAction;