@byteplus/avatar-web-sdk 1.0.1-beta.1 → 1.0.1-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/avatar-web-sdk.es.js +19248 -0
- package/core/AvatarError.d.ts +70 -0
- package/core/AvatarSDK.d.ts +28 -0
- package/core/AvatarSession.d.ts +89 -0
- package/index.d.ts +11 -0
- package/logging/LogManager.d.ts +39 -0
- package/package.json +12 -2
- package/protocol/Protocol.d.ts +30 -0
- package/services/Connection.d.ts +36 -0
- package/services/RTCService.d.ts +51 -0
- package/services/WebRecorder.d.ts +67 -0
- package/types/errors.d.ts +67 -0
- package/types/index.d.ts +109 -0
- package/types/internal.d.ts +25 -0
- package/utils/CryptoFallback.d.ts +7 -0
- package/utils/URLSigner.d.ts +24 -0
- package/version.d.ts +8 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AvatarSDKConfig } from "../types";
|
|
2
|
+
interface URLSignerResult {
|
|
3
|
+
url: string;
|
|
4
|
+
headers: Record<string, string>;
|
|
5
|
+
queries: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
export declare class URLSigner {
|
|
8
|
+
static signWithConfig(config: AvatarSDKConfig): Promise<URLSignerResult | null>;
|
|
9
|
+
static signWithConfigBase64(config: AvatarSDKConfig): Promise<string | null>;
|
|
10
|
+
private static _getServerInfo;
|
|
11
|
+
private static _signerResult;
|
|
12
|
+
private static _formatDate;
|
|
13
|
+
private static _hexStringFromSHA256;
|
|
14
|
+
private static _hexStringFromHMACSHA256;
|
|
15
|
+
private static _hashSHA256;
|
|
16
|
+
private static _hmacSHA256;
|
|
17
|
+
private static _getSignedKey;
|
|
18
|
+
private static _hexStringFromData;
|
|
19
|
+
private static _canonicalQueryString;
|
|
20
|
+
private static _urlEncode;
|
|
21
|
+
private static _sortObject;
|
|
22
|
+
private static _stringToUint8Array;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
package/version.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type RtcVariant = "byteplus" | "volcengine";
|
|
2
|
+
export interface BuildInfo {
|
|
3
|
+
buildTime: string;
|
|
4
|
+
gitHash: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const VERSION: string;
|
|
7
|
+
export declare const getRtcVariant: () => RtcVariant;
|
|
8
|
+
export declare const getBuildInfo: () => BuildInfo;
|