@asiyst/sdk 0.1.29 → 0.1.30
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/README.md +5 -2
- package/dist/index.cjs +574 -593
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +574 -593
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -218,6 +218,7 @@ interface AvatarAnimation {
|
|
|
218
218
|
loopMode?: string;
|
|
219
219
|
durationMs?: number;
|
|
220
220
|
assetUrl?: string | null;
|
|
221
|
+
integrity?: string;
|
|
221
222
|
}
|
|
222
223
|
interface AvatarBranding {
|
|
223
224
|
siteLogoUrl?: string | null;
|
|
@@ -229,6 +230,8 @@ interface ProjectConfig {
|
|
|
229
230
|
avatar: string;
|
|
230
231
|
avatarId?: string;
|
|
231
232
|
assetUrl?: string;
|
|
233
|
+
modelFormat?: "fbx" | "glb";
|
|
234
|
+
assetIntegrity?: string;
|
|
232
235
|
thumbnailUrl?: string | null;
|
|
233
236
|
publishedVersion?: string;
|
|
234
237
|
animations?: AvatarAnimation[];
|
|
@@ -248,6 +251,7 @@ interface ProjectConfig {
|
|
|
248
251
|
rules: AvatarRuntimeRule[];
|
|
249
252
|
dataSources: AvatarDataSource[];
|
|
250
253
|
elementSelectors: Record<string, string>;
|
|
254
|
+
maxMessageChars?: number;
|
|
251
255
|
}
|
|
252
256
|
interface Rect {
|
|
253
257
|
x: number;
|
|
@@ -496,13 +500,15 @@ interface LoadedFbxAsset {
|
|
|
496
500
|
}
|
|
497
501
|
type LoadedAvatarAsset = LoadedFbxAsset | LoadedGlbAsset | LoadedImageAsset | LoadedManifestAsset;
|
|
498
502
|
declare class AssetLoader {
|
|
499
|
-
private
|
|
503
|
+
private readonly inFlightControllers;
|
|
500
504
|
private readonly createdObjectUrls;
|
|
501
505
|
private readonly inFlightLoads;
|
|
502
506
|
private readonly cachedAssets;
|
|
503
507
|
load(assetUrl: string, options?: {
|
|
504
508
|
signal?: AbortSignal;
|
|
505
509
|
timeoutMs?: number;
|
|
510
|
+
integrity?: string;
|
|
511
|
+
expectedFormat?: "fbx" | "glb";
|
|
506
512
|
}): Promise<LoadedAvatarAsset>;
|
|
507
513
|
private performLoad;
|
|
508
514
|
isFbxBuffer(buffer: ArrayBuffer): boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -218,6 +218,7 @@ interface AvatarAnimation {
|
|
|
218
218
|
loopMode?: string;
|
|
219
219
|
durationMs?: number;
|
|
220
220
|
assetUrl?: string | null;
|
|
221
|
+
integrity?: string;
|
|
221
222
|
}
|
|
222
223
|
interface AvatarBranding {
|
|
223
224
|
siteLogoUrl?: string | null;
|
|
@@ -229,6 +230,8 @@ interface ProjectConfig {
|
|
|
229
230
|
avatar: string;
|
|
230
231
|
avatarId?: string;
|
|
231
232
|
assetUrl?: string;
|
|
233
|
+
modelFormat?: "fbx" | "glb";
|
|
234
|
+
assetIntegrity?: string;
|
|
232
235
|
thumbnailUrl?: string | null;
|
|
233
236
|
publishedVersion?: string;
|
|
234
237
|
animations?: AvatarAnimation[];
|
|
@@ -248,6 +251,7 @@ interface ProjectConfig {
|
|
|
248
251
|
rules: AvatarRuntimeRule[];
|
|
249
252
|
dataSources: AvatarDataSource[];
|
|
250
253
|
elementSelectors: Record<string, string>;
|
|
254
|
+
maxMessageChars?: number;
|
|
251
255
|
}
|
|
252
256
|
interface Rect {
|
|
253
257
|
x: number;
|
|
@@ -496,13 +500,15 @@ interface LoadedFbxAsset {
|
|
|
496
500
|
}
|
|
497
501
|
type LoadedAvatarAsset = LoadedFbxAsset | LoadedGlbAsset | LoadedImageAsset | LoadedManifestAsset;
|
|
498
502
|
declare class AssetLoader {
|
|
499
|
-
private
|
|
503
|
+
private readonly inFlightControllers;
|
|
500
504
|
private readonly createdObjectUrls;
|
|
501
505
|
private readonly inFlightLoads;
|
|
502
506
|
private readonly cachedAssets;
|
|
503
507
|
load(assetUrl: string, options?: {
|
|
504
508
|
signal?: AbortSignal;
|
|
505
509
|
timeoutMs?: number;
|
|
510
|
+
integrity?: string;
|
|
511
|
+
expectedFormat?: "fbx" | "glb";
|
|
506
512
|
}): Promise<LoadedAvatarAsset>;
|
|
507
513
|
private performLoad;
|
|
508
514
|
isFbxBuffer(buffer: ArrayBuffer): boolean;
|