@spatius/avatarkit 1.0.0 → 1.1.0-beta.1
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 +21 -0
- package/README.md +25 -25
- package/dist/{StreamingAudioPlayer-Cq5jTVny.js → StreamingAudioPlayer-DrHXn-YA.js} +6 -6
- package/dist/core/AvatarController.d.ts +0 -2
- package/dist/core/AvatarSDK.d.ts +16 -1
- package/dist/core/AvatarView.d.ts +32 -2
- package/dist/core/avatarViewRegistry.d.ts +9 -0
- package/dist/{index-zTpDp_Pv.js → index-CVQn5uEB.js} +3444 -433
- package/dist/index.js +11 -9
- package/dist/types/character-settings.d.ts +0 -1
- package/dist/types/index.d.ts +14 -10
- package/package.json +7 -1
package/dist/index.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { k, b, c, o, f, d, n, g, C, m, i, D, E, j, L, h, R, p, T, q } from "./index-CVQn5uEB.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
k as AnimationType,
|
|
4
4
|
b as Avatar,
|
|
5
5
|
c as AvatarController,
|
|
6
|
-
|
|
6
|
+
o as AvatarError,
|
|
7
7
|
f as AvatarManager,
|
|
8
8
|
d as AvatarSDK,
|
|
9
|
-
|
|
9
|
+
n as AvatarState,
|
|
10
10
|
g as AvatarView,
|
|
11
11
|
C as ConnectionState,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
m as ConversationState,
|
|
13
|
+
i as DEFAULT_REGION,
|
|
14
14
|
D as DrivingServiceMode,
|
|
15
15
|
E as ErrorCode,
|
|
16
|
-
|
|
16
|
+
j as LoadProgress,
|
|
17
17
|
L as LogLevel,
|
|
18
|
-
|
|
18
|
+
h as RENDER_QUALITY_PARAMS,
|
|
19
|
+
R as RenderQuality,
|
|
20
|
+
p as ResourceType,
|
|
19
21
|
T as TransitionType,
|
|
20
|
-
|
|
22
|
+
q as extractResourceUrls
|
|
21
23
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare enum DrivingServiceMode {
|
|
5
5
|
/** Driven by SDK directly */
|
|
6
|
-
|
|
6
|
+
direct = "direct",
|
|
7
7
|
/** Driven by host application */
|
|
8
|
-
|
|
8
|
+
backend = "backend"
|
|
9
9
|
}
|
|
10
10
|
export declare enum LogLevel {
|
|
11
11
|
/** Disable all logs */
|
|
@@ -23,8 +23,15 @@ export interface AudioFormat {
|
|
|
23
23
|
/** Sample rate, supported: 8000, 16000, 22050, 24000, 32000, 44100, 48000, default: 16000 */
|
|
24
24
|
readonly sampleRate: number;
|
|
25
25
|
}
|
|
26
|
+
export declare enum RenderQuality {
|
|
27
|
+
standard = "standard",
|
|
28
|
+
high = "high",
|
|
29
|
+
ultra = "ultra"
|
|
30
|
+
}
|
|
26
31
|
export interface Configuration {
|
|
27
|
-
/**
|
|
32
|
+
/** Region used to compose endpoint URLs (default 'us-west'). Not part of the public quickstart. */
|
|
33
|
+
readonly region?: string;
|
|
34
|
+
/** Driving service mode, default is direct */
|
|
28
35
|
readonly drivingServiceMode?: DrivingServiceMode;
|
|
29
36
|
/** Log level, default is off */
|
|
30
37
|
readonly logLevel?: LogLevel;
|
|
@@ -32,6 +39,8 @@ export interface Configuration {
|
|
|
32
39
|
readonly audioFormat?: AudioFormat;
|
|
33
40
|
/** Custom endpoint overriding the region-derived host for both character API and driving WebSocket. */
|
|
34
41
|
readonly customEndpoint?: string;
|
|
42
|
+
/** Render quality tier, default is RenderQuality.ultra */
|
|
43
|
+
readonly renderQuality?: RenderQuality;
|
|
35
44
|
}
|
|
36
45
|
export declare enum LoadProgress {
|
|
37
46
|
downloading = "downloading",
|
|
@@ -81,6 +90,8 @@ export declare enum ErrorCode {
|
|
|
81
90
|
avatarIDUnrecognized = "avatarIDUnrecognized",
|
|
82
91
|
/** Failed to fetch avatar metadata */
|
|
83
92
|
failedToFetchAvatarMetadata = "failedToFetchAvatarMetadata",
|
|
93
|
+
/** Avatar metadata format invalid / failed to parse */
|
|
94
|
+
invalidAvatarMetadata = "invalidAvatarMetadata",
|
|
84
95
|
/** Failed to download avatar assets */
|
|
85
96
|
failedToDownloadAvatarAssets = "failedToDownloadAvatarAssets",
|
|
86
97
|
/** WebSocket connection error (handshake failure, network error) */
|
|
@@ -169,13 +180,6 @@ export interface PostProcessingConfig {
|
|
|
169
180
|
eyeBlink?: number;
|
|
170
181
|
/** Expression weight (0.0-2.0, 0=no expression, 1=normal, >1=enhanced) */
|
|
171
182
|
expressionWeight?: number;
|
|
172
|
-
/** Eye tracking complete configuration (real-time control of eye_focus, must provide complete configuration) */
|
|
173
|
-
eyefocus?: {
|
|
174
|
-
enabled: boolean;
|
|
175
|
-
auto_eyelid_adjustment?: boolean;
|
|
176
|
-
eyelid_threshold?: number;
|
|
177
|
-
targets?: number[];
|
|
178
|
-
};
|
|
179
183
|
}
|
|
180
184
|
export interface CharacterInfo {
|
|
181
185
|
pointCount: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spatius/avatarkit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.1.0-beta.1",
|
|
5
5
|
"packageManager": "pnpm@10.18.2",
|
|
6
6
|
"description": "AvatarKit SDK - 3D Gaussian Splatting Avatar Rendering SDK",
|
|
7
7
|
"author": "AvatarKit Team",
|
|
@@ -75,6 +75,12 @@
|
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@bufbuild/protobuf": "^2.10.0",
|
|
77
77
|
"@guiiai/logg": "^1.2.4",
|
|
78
|
+
"@opentelemetry/api": "^1.9.1",
|
|
79
|
+
"@opentelemetry/api-logs": "^0.218.0",
|
|
80
|
+
"@opentelemetry/exporter-logs-otlp-http": "^0.218.0",
|
|
81
|
+
"@opentelemetry/resources": "^2.7.1",
|
|
82
|
+
"@opentelemetry/sdk-logs": "^0.218.0",
|
|
83
|
+
"@opentelemetry/semantic-conventions": "^1.41.1",
|
|
78
84
|
"nanoid": "^5.1.6",
|
|
79
85
|
"posthog-js": "^1.310.1"
|
|
80
86
|
},
|