@streamoji/aitwin 0.1.2 → 0.1.4

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
@@ -30,10 +30,6 @@ export declare type AiTwinProps = {
30
30
  * When omitted, a dev token is fetched via getAuthToken.
31
31
  */
32
32
  authToken?: string;
33
- /** Streamoji API base (default: https://ai.streamoji.com). */
34
- apiBase?: string;
35
- /** R2 CDN base for custom face bundles (default: pub R2 custom-faces). */
36
- facesCdnBase?: string;
37
33
  /** TTS engine when using `assets` (default: Google engine id). */
38
34
  ttsEngineId?: TtsEngineId;
39
35
  /** TTS voice id override (engine-specific). */
@@ -99,10 +95,6 @@ export declare type AvatarTtsSpeakOptions = {
99
95
 
100
96
  export declare function createAvatarTtsLipsyncController(onStatus: (status: AvatarTtsLipsyncStatus) => void, apiBase?: string): AvatarTtsLipsyncController;
101
97
 
102
- export declare const DEFAULT_API_BASE = "https://ai.streamoji.com";
103
-
104
- export declare const DEFAULT_FACES_CDN_BASE = "https://pub-607ad1fc22e2400eb57d17240aab857c.r2.dev/custom-faces";
105
-
106
98
  export declare const DEFAULT_TTS_ENGINE_ID: TtsEngineId;
107
99
 
108
100
  export declare function fetchAiTwin(id: string, baseUrl?: string): Promise<AiTwinRecord>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamoji/aitwin",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Embeddable React AI twin face with TTS lipsync",
5
5
  "type": "module",
6
6
  "main": "./dist/aitwin.cjs",
@@ -23,7 +23,10 @@
23
23
  "scripts": {
24
24
  "build": "vite build",
25
25
  "typecheck": "tsc -p tsconfig.json --noEmit",
26
- "prepublishOnly": "npm run build"
26
+ "test": "vitest run",
27
+ "upload:worker": "node scripts/upload-worker-to-r2.mjs",
28
+ "configure:cors": "node scripts/configure-r2-cors.mjs",
29
+ "prepublishOnly": "npm run build && npm run upload:worker"
27
30
  },
28
31
  "publishConfig": {
29
32
  "access": "public"
@@ -33,6 +36,7 @@
33
36
  "react-dom": "^18.0.0 || ^19.0.0"
34
37
  },
35
38
  "devDependencies": {
39
+ "@aws-sdk/client-s3": "^3.750.0",
36
40
  "@types/react": "^19.2.5",
37
41
  "@types/react-dom": "^19.2.3",
38
42
  "@vitejs/plugin-react": "^5.1.1",
@@ -40,6 +44,7 @@
40
44
  "react-dom": "^19.2.0",
41
45
  "typescript": "^5.9.3",
42
46
  "vite": "^7.2.4",
43
- "vite-plugin-dts": "^4.5.4"
47
+ "vite-plugin-dts": "^4.5.4",
48
+ "vitest": "^4.1.8"
44
49
  }
45
50
  }