@streamoji/aitwin 0.2.0 → 0.2.2

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.d.ts CHANGED
@@ -2,6 +2,8 @@ import { CSSProperties } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { RefAttributes } from 'react';
4
4
 
5
+ export declare const AI_TWIN_THUMBNAIL_FILENAME = "thumbnail.webp";
6
+
5
7
  export declare const AiTwin: ForwardRefExoticComponent<AiTwinProps & RefAttributes<AiTwinHandle>>;
6
8
 
7
9
  export declare type AiTwinHandle = {
@@ -130,6 +132,9 @@ export declare function fetchAiTwin(id: string, baseUrl?: string): Promise<AiTwi
130
132
  /** Bearer token for /avatar_ttsWithPoses and /api/session-value. */
131
133
  export declare function fetchDevAuthToken(): Promise<string>;
132
134
 
135
+ /** Public CDN thumbnail for custom-faces/{faceId}/ (same id as pipeline avatarId). */
136
+ export declare function getAiTwinThumbnailUrl(faceId: string, cdnBase?: string): string;
137
+
133
138
  export declare const MIC_SAMPLE_RATE = 16000;
134
139
 
135
140
  /** Google TTS streams Oculus viseme symbols; normalize casing and unknown ids. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamoji/aitwin",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Embeddable React AI twin face with TTS lipsync",
5
5
  "type": "module",
6
6
  "main": "./dist/aitwin.cjs",