@spatialwalk/avatarkit 1.0.0-beta.93 → 1.0.0-beta.95

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/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b, c, m, f, d, j, g, C, i, D, E, k, h, L, R, n } from "./index-CDywZ8iv.js";
1
+ import { b, c, m, f, d, j, g, C, i, D, E, k, h, L, R, n } from "./index-B09oapvc.js";
2
2
  export {
3
3
  b as Avatar,
4
4
  c as AvatarController,
@@ -65,20 +65,50 @@ export declare enum ConversationState {
65
65
  export declare enum ErrorCode {
66
66
  /** AppID not recognized (reserved, future appID validation logic) */
67
67
  appIDUnrecognized = "appIDUnrecognized",
68
- /** AvatarID not recognized */
69
- avatarIDUnrecognized = "avatarIDUnrecognized",
70
- /** Session Token invalid */
68
+ /** Session Token invalid (WebSocket close code 4010) */
71
69
  sessionTokenInvalid = "sessionTokenInvalid",
72
- /** Session Token expired */
70
+ /** Session Token expired (WebSocket close code 4010) */
73
71
  sessionTokenExpired = "sessionTokenExpired",
72
+ /** Insufficient balance (WebSocket close code 4001) */
73
+ insufficientBalance = "insufficientBalance",
74
+ /** Concurrent connection limit exceeded (WebSocket close code 4003) */
75
+ concurrentLimitExceeded = "concurrentLimitExceeded",
76
+ /** AvatarID not recognized */
77
+ avatarIDUnrecognized = "avatarIDUnrecognized",
74
78
  /** Failed to fetch avatar metadata */
75
79
  failedToFetchAvatarMetadata = "failedToFetchAvatarMetadata",
76
80
  /** Failed to download avatar assets */
77
- failedToDownloadAvatarAssets = "failedToDownloadAvatarAssets"
81
+ failedToDownloadAvatarAssets = "failedToDownloadAvatarAssets",
82
+ /** WebSocket connection error (handshake failure, network error) */
83
+ websocketError = "websocketError",
84
+ /** WebSocket connection closed abnormally (close code 1006) */
85
+ websocketClosedAbnormally = "websocketClosedAbnormally",
86
+ /** WebSocket closed with unexpected close code */
87
+ websocketClosedUnexpected = "websocketClosedUnexpected",
88
+ /** Session timeout (WebSocket close code 4002) */
89
+ sessionTimeout = "sessionTimeout",
90
+ /** Connection already in progress */
91
+ connectionInProgress = "connectionInProgress",
92
+ /** Network layer not available (SDK mode required) */
93
+ networkLayerNotAvailable = "networkLayerNotAvailable",
94
+ /** Failed to start playback */
95
+ playbackStartFailed = "playbackStartFailed",
96
+ /** Playback initialization failed */
97
+ playbackInitFailed = "playbackInitFailed",
98
+ /** Audio-only playback initialization failed */
99
+ audioOnlyInitFailed = "audioOnlyInitFailed",
100
+ /** No audio data to play */
101
+ noAudio = "noAudio",
102
+ /** Audio context not initialized */
103
+ audioContextNotInitialized = "audioContextNotInitialized",
104
+ /** Animation player not initialized */
105
+ animationPlayerNotInitialized = "animationPlayerNotInitialized",
106
+ /** Server-side error */
107
+ serverError = "serverError"
78
108
  }
79
109
  export declare class AvatarError extends Error {
80
- code?: (string | ErrorCode) | undefined;
81
- constructor(message: string, code?: (string | ErrorCode) | undefined);
110
+ code: ErrorCode;
111
+ constructor(message: string, code: ErrorCode);
82
112
  }
83
113
  export interface CameraConfig {
84
114
  position: [number, number, number];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spatialwalk/avatarkit",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.93",
4
+ "version": "1.0.0-beta.95",
5
5
  "packageManager": "pnpm@10.18.2",
6
6
  "description": "AvatarKit SDK - 3D Gaussian Splatting Avatar Rendering SDK",
7
7
  "author": "AvatarKit Team",