@xylink/xy-rtc-sdk 2.0.8 → 2.0.9
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/index.es.js +1 -3
- package/lib/index.js +1 -3
- package/lib/src/action/index.d.ts +6 -2
- package/lib/src/enum/errorCode.d.ts +868 -0
- package/lib/src/main/client.d.ts +17 -4
- package/lib/src/tools/config.d.ts +1 -1
- package/lib/src/tools/httpClient.d.ts +10 -6
- package/lib/src/tools/utils.d.ts +8 -0
- package/lib/src/type/client.d.ts +25 -11
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @authors Luo-jinghui (luojinghui424@gmail.com)
|
|
5
5
|
* @date 2019-10-30 14:14:04
|
|
6
6
|
*/
|
|
7
|
-
import { ILoginExtAccount, ISdkUserInfo, TStateAction, TEventName, IMeetingInfo, TCategory, IToken } from '../type';
|
|
7
|
+
import { ILoginExtAccount, ISdkUserInfo, TStateAction, TEventName, IMeetingInfo, TCategory, IToken, ILoginWidthAuthCode } from '../type';
|
|
8
8
|
import Logger from '../tools/logger';
|
|
9
9
|
export interface ICommonParams {
|
|
10
10
|
securityKey: string;
|
|
@@ -19,7 +19,10 @@ declare class Action {
|
|
|
19
19
|
constructor();
|
|
20
20
|
setBaseUrl(baseUrl: string, logUrl: string): void;
|
|
21
21
|
setLogBaseUrl(logUrl: string): void;
|
|
22
|
-
|
|
22
|
+
setClientInfo({ clientId, clientSecret }: {
|
|
23
|
+
clientId: string;
|
|
24
|
+
clientSecret: string;
|
|
25
|
+
}): void;
|
|
23
26
|
setLogger(logger: Logger): void;
|
|
24
27
|
setMeetingInfo(info: IMeetingInfo): void;
|
|
25
28
|
setLoginInfo(loginInfo: IToken | null): void;
|
|
@@ -39,6 +42,7 @@ declare class Action {
|
|
|
39
42
|
*/
|
|
40
43
|
getSdkUserInfo(params: ILoginExtAccount): Promise<any>;
|
|
41
44
|
getUserInfo(token: string): Promise<any>;
|
|
45
|
+
loginWithAuthCode({ extId, extUserId, displayName, oauthCode, isTempUser, channelId }: ILoginWidthAuthCode): Promise<any>;
|
|
42
46
|
getCallUri(params: any): Promise<any>;
|
|
43
47
|
verifyPassword(confNumber: string, password: string): Promise<any>;
|
|
44
48
|
hand(type: string, meetingId: string, di: string, conferenceNo: string): Promise<any>;
|