@xylink/xy-rtc-sdk 4.0.1 → 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 +1 -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,13 +0,0 @@
1
- /**
2
- * XYLink WebRTC SDK Logger Webworker
3
- *
4
- * @authors Luo-jinghui (luojinghui424@gmail.com)
5
- *
6
- * Created at : 2023-04-24 14:16:27
7
- * Last modified : 2024-04-23 19:02:52
8
- */
9
- declare const _default: {
10
- new (scriptURL: string | URL, options?: WorkerOptions | undefined): Worker;
11
- prototype: Worker;
12
- } & (new () => Worker);
13
- export default _default;
@@ -1,4 +0,0 @@
1
- /**
2
- * 匹配除了大小写字母、数字、汉字以及空格、特定的标点符号((-_--.))和特殊字符之外的任何字符
3
- */
4
- export declare const specialCharactersRegex: RegExp;
@@ -1,15 +0,0 @@
1
- /**
2
- * Store LocalStorage
3
- * @authors Luo-jinghui (luojinghui424@gmail.com)
4
- * @date 2019-11-01 14:36:12
5
- */
6
- interface IStore {
7
- storage: Storage;
8
- set: (key: string, value: any) => void;
9
- get: (key: string) => any;
10
- remove: (key: string) => void;
11
- clear: () => void;
12
- removeList: (array: string[]) => void;
13
- }
14
- declare const store: IStore;
15
- export default store;
@@ -1,9 +0,0 @@
1
- /**
2
- * Meeting layout init template data
3
- *
4
- * @authors Luo-jinghui (luojinghui424@gmail.com)
5
- * @date 2019-10-24 20:41:38
6
- */
7
- import { ITemplate } from '../../type/index';
8
- export declare const COMMON_MOBILE_VERTICAL_TEMPLATE: ITemplate;
9
- export declare const COMMON_MOBILE_HORIZONTAL_TEMPLATE: ITemplate;
@@ -1,8 +0,0 @@
1
- /**
2
- * Polling layout template data
3
- *
4
- * @authors Luo-jinghui (luojinghui424@gmail.com)
5
- * @date 2024-02-26 16:41:38
6
- */
7
- import { Template } from '../../type/index';
8
- export declare const POLLING_TEMPLATE: Template;
@@ -1,97 +0,0 @@
1
- /**
2
- * Tools function
3
- * @authors Luo-jinghui (luojinghui424@gmail.com)
4
- * @date 2019-11-08 15:54:21
5
- */
6
- import { IReturnResult } from '../type/index';
7
- /**
8
- * 防抖函数
9
- *
10
- * @param fn 原始函数
11
- * @param delay 延迟触发时间
12
- */
13
- export declare const debounce: (fn: any, delay: number) => () => void;
14
- /**
15
- * 节流函数
16
- *
17
- * @param fn 原始函数
18
- * @param delay 最后一次延迟触发时间
19
- * @param atleast 触发最短间隔时间
20
- */
21
- export declare const throttle: (fn: any, delay: number, atleast: number) => () => void;
22
- /**
23
- * 获取当前时间
24
- *
25
- * Format:xxxx-xx-xx xx:xx
26
- */
27
- export declare const currentTime: () => string;
28
- /**
29
- * 获取当前时间
30
- *
31
- * Format:xxxx-xx-xx xx:xx:xx xx
32
- */
33
- export declare const getTime: () => string;
34
- /**
35
- * 获取当前时间
36
- *
37
- * Format:xx:xx:xx xx
38
- */
39
- export declare const getMillTime: () => string;
40
- /**
41
- * 计算两个时间戳相差的天数, 四舍五入保留一位小数
42
- *
43
- * @param { number } time1 - 时间戳1
44
- * @param { number } time2 - 时间戳2
45
- * @returns { number } day - 天数
46
- */
47
- export declare const diffTime: (time1: number, time2: number) => number;
48
- export declare function mapToObj<T>(data: Map<string, T>): {
49
- [key: string]: T;
50
- };
51
- export declare const getStatus: (code: string, detail?: any, msg?: string) => IReturnResult;
52
- /**
53
- * 隐藏关键信息
54
- *
55
- * @param { any } data - 需要隐藏的信息
56
- * @param { string | string[] } key - 需要隐藏的key
57
- * @returns - 隐藏后的信息
58
- */
59
- export declare const hideKeyInfo: (data: any, key: string | string[]) => any;
60
- /**
61
- * 判断值类型
62
- */
63
- export declare const TYPEOF: {
64
- isNumber(num: any): boolean;
65
- isObject(obj: any): boolean;
66
- isArray(arr: any): boolean;
67
- isString(str: any): boolean;
68
- isBoolean(str: any): boolean;
69
- isUndefined(str: any): boolean;
70
- isFunction(val: any): boolean;
71
- isLetter(val: any): boolean;
72
- isChinese(val: any): boolean;
73
- isNumberText(val: any): boolean;
74
- isSpecialChar(val: any): boolean;
75
- isWhiteSpace(val: any): boolean;
76
- };
77
- /**
78
- * JSON字符串转对象
79
- *
80
- * @param { any } jsonString
81
- * @returns { object}
82
- */
83
- export declare const jsonParse: (jsonString: any) => any;
84
- /**
85
- * 字符串转 JSON 字符串
86
- *
87
- * @param {string|object} value
88
- * @returns {string}
89
- */
90
- export declare const jsonStringify: (value: string | object) => string;
91
- /**
92
- * 清空中文/英文括号和括号内部的内容,返回一个新的字符串
93
- *
94
- * @param { string } str - 元数据字符串
95
- * @returns { string }
96
- */
97
- export declare const clearBrackets: (str: string) => string;