@spatius/avatarkit 1.3.8 → 1.3.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/CHANGELOG.md +35 -0
- package/dist/assets/{OpusDecoderWorker.worker-DVOREuTG.js → OpusDecoderWorker.worker-DWI3dYQC.js} +2640 -2585
- package/dist/assets/{OpusEncoderWorker.worker-fkLsXEK1.js → OpusEncoderWorker.worker-BlkaRHli.js} +2640 -2585
- package/dist/core/AvatarController.d.ts +13 -0
- package/dist/core/AvatarSDK.d.ts +12 -2
- package/dist/core/AvatarView.d.ts +30 -31
- package/dist/core/avatarViewRegistry.d.ts +2 -0
- package/dist/index.js +699 -282
- package/dist/internal-telemetry.d.ts +12 -23
- package/dist/internal-telemetry.js +16 -29
- package/dist/{otel-trace-CZJAGjGg.js → otel-trace-DqXSWBaw.js} +1101 -1006
- package/dist/types/character.d.ts +0 -13
- package/dist/types/index.d.ts +9 -6
- package/package.json +1 -1
- package/dist/rolldown-runtime-FDOR9p9I.js +0 -24
|
@@ -57,16 +57,3 @@ export type PreloadResources<T> = {
|
|
|
57
57
|
export type PreloadCameraSettings = PreloadResources<{
|
|
58
58
|
camera: CameraSettings;
|
|
59
59
|
}>;
|
|
60
|
-
/**
|
|
61
|
-
* Resource type enumeration
|
|
62
|
-
*/
|
|
63
|
-
export declare enum ResourceType {
|
|
64
|
-
CAMERA = "camera",
|
|
65
|
-
ANIMATION_IDLE = "frameIdle",
|
|
66
|
-
MODEL_SHAPE = "shape",
|
|
67
|
-
MODEL_GS = "gsStandard"
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Extract all resource URLs
|
|
71
|
-
*/
|
|
72
|
-
export declare function extractResourceUrls(meta: CharacterMeta): Record<ResourceType, string | null>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -168,8 +168,6 @@ export declare enum ConversationState {
|
|
|
168
168
|
paused = "paused"
|
|
169
169
|
}
|
|
170
170
|
export declare enum ErrorCode {
|
|
171
|
-
/** AppID not recognized (reserved, future appID validation logic) */
|
|
172
|
-
appIDUnrecognized = "appIDUnrecognized",
|
|
173
171
|
/** Session Token invalid (WebSocket close code 4010) */
|
|
174
172
|
sessionTokenInvalid = "sessionTokenInvalid",
|
|
175
173
|
/** Session Token expired (WebSocket close code 4010) */
|
|
@@ -188,10 +186,17 @@ export declare enum ErrorCode {
|
|
|
188
186
|
failedToDownloadAvatarAssets = "failedToDownloadAvatarAssets",
|
|
189
187
|
/** Avatar asset compatibility_flags not supported by this SDK version (upgrade SDK) */
|
|
190
188
|
unsupportedAvatarAsset = "unsupportedAvatarAsset",
|
|
189
|
+
/**
|
|
190
|
+
* Neither WebGL2 nor WebGPU is available, so the avatar cannot be drawn at all.
|
|
191
|
+
* Typically hardware acceleration is disabled in the browser, the GPU driver is
|
|
192
|
+
* blocklisted, or the page runs in a restricted iframe. Deterministic — no point
|
|
193
|
+
* retrying; tell the user to enable graphics acceleration.
|
|
194
|
+
*/
|
|
195
|
+
renderNotSupported = "renderNotSupported",
|
|
196
|
+
/** Render system failed to initialize for a reason other than missing WebGL2/WebGPU */
|
|
197
|
+
renderInitFailed = "renderInitFailed",
|
|
191
198
|
/** WebSocket connection error (handshake failure, network error) */
|
|
192
199
|
websocketError = "websocketError",
|
|
193
|
-
/** WebSocket connection closed abnormally (close code 1006) */
|
|
194
|
-
websocketClosedAbnormally = "websocketClosedAbnormally",
|
|
195
200
|
/** WebSocket closed with unexpected close code */
|
|
196
201
|
websocketClosedUnexpected = "websocketClosedUnexpected",
|
|
197
202
|
/** Session timeout (WebSocket close code 4002) */
|
|
@@ -204,8 +209,6 @@ export declare enum ErrorCode {
|
|
|
204
209
|
playbackStartFailed = "playbackStartFailed",
|
|
205
210
|
/** Playback initialization failed */
|
|
206
211
|
playbackInitFailed = "playbackInitFailed",
|
|
207
|
-
/** Audio-only playback initialization failed */
|
|
208
|
-
audioOnlyInitFailed = "audioOnlyInitFailed",
|
|
209
212
|
/** No audio data to play */
|
|
210
213
|
noAudio = "noAudio",
|
|
211
214
|
/**
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
|
-
get: ((k) => from[k]).bind(null, key),
|
|
14
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
20
|
-
value: mod,
|
|
21
|
-
enumerable: true
|
|
22
|
-
}) : target, mod));
|
|
23
|
-
//#endregion
|
|
24
|
-
export { __toESM as n, __commonJSMin as t };
|