@spatialwalk/avatarkit 1.0.0-beta.34 → 1.0.0-beta.36
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/CHANGELOG.md +13 -0
- package/README.md +53 -14
- package/dist/{StreamingAudioPlayer-D_anvcr1.js → StreamingAudioPlayer-GTu9p5GZ.js} +54 -7
- package/dist/animation/AnimationWebSocketClient.d.ts +3 -0
- package/dist/audio/StreamingAudioPlayer.d.ts +4 -0
- package/dist/core/AvatarController.d.ts +2 -0
- package/dist/core/AvatarView.d.ts +10 -1
- package/dist/generated/common/v1/models.d.ts +29 -0
- package/dist/generated/driveningress/v2/driveningress.d.ts +81 -0
- package/dist/{index-D8QhzqfR.js → index-B7llDHtO.js} +1370 -218
- package/dist/index.js +1 -1
- package/dist/types/index.d.ts +10 -1
- package/dist/utils/id-manager.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -18,10 +18,15 @@ export declare enum LogLevel {
|
|
|
18
18
|
|
|
19
19
|
all = "all"
|
|
20
20
|
}
|
|
21
|
+
export interface AudioFormat {
|
|
22
|
+
readonly channelCount: 1;
|
|
23
|
+
readonly sampleRate: number;
|
|
24
|
+
}
|
|
21
25
|
export interface Configuration {
|
|
22
26
|
readonly environment: Environment;
|
|
23
27
|
readonly drivingServiceMode?: DrivingServiceMode;
|
|
24
28
|
readonly logLevel?: LogLevel;
|
|
29
|
+
readonly audioFormat?: AudioFormat;
|
|
25
30
|
}
|
|
26
31
|
export interface SdkConfigResponse {
|
|
27
32
|
endpoints: {
|
|
@@ -50,12 +55,16 @@ export declare enum ConversationState {
|
|
|
50
55
|
|
|
51
56
|
idle = "idle",
|
|
52
57
|
|
|
53
|
-
playing = "playing"
|
|
58
|
+
playing = "playing",
|
|
59
|
+
|
|
60
|
+
pausing = "pausing"
|
|
54
61
|
}
|
|
55
62
|
export declare enum ErrorCode {
|
|
56
63
|
|
|
57
64
|
appIDUnrecognized = "appIDUnrecognized",
|
|
58
65
|
|
|
66
|
+
avatarIDUnrecognized = "avatarIDUnrecognized",
|
|
67
|
+
|
|
59
68
|
sessionTokenInvalid = "sessionTokenInvalid",
|
|
60
69
|
|
|
61
70
|
sessionTokenExpired = "sessionTokenExpired",
|
|
@@ -17,6 +17,7 @@ declare class IdManager {
|
|
|
17
17
|
setSessionToken(token: string | null): void;
|
|
18
18
|
getSessionToken(): string | null;
|
|
19
19
|
generateConnectionId(): string;
|
|
20
|
+
setConnectionId(connectionId: string | null): void;
|
|
20
21
|
getConnectionId(): string | null;
|
|
21
22
|
clearConnectionId(): void;
|
|
22
23
|
generateNewConversationId(): string;
|
package/package.json
CHANGED