@rannah-labs/react-voice-orb 1.1.3
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 +240 -0
- package/assets/orb-ss.png +0 -0
- package/assets/thing.png +0 -0
- package/dist/bun-server/src/types/index.d.ts +37 -0
- package/dist/bun-server/src/types/index.js +2 -0
- package/dist/src/app/Types/TranscriberStuff.d.ts +0 -0
- package/dist/src/app/Types/TranscriberStuff.js +1 -0
- package/dist/src/app/Types/apiModels.d.ts +31 -0
- package/dist/src/app/Types/apiModels.js +2 -0
- package/dist/src/app/Types/api_types.d.ts +34 -0
- package/dist/src/app/Types/api_types.js +2 -0
- package/dist/src/app/Types/better-trpc.d.ts +5 -0
- package/dist/src/app/Types/better-trpc.js +23 -0
- package/dist/src/app/Types/browser-only.d.ts +1 -0
- package/dist/src/app/Types/browser-only.js +12 -0
- package/dist/src/app/Types/builltInNodesTemplates.d.ts +1070 -0
- package/dist/src/app/Types/builltInNodesTemplates.js +1341 -0
- package/dist/src/app/Types/defaults.d.ts +7 -0
- package/dist/src/app/Types/defaults.js +210 -0
- package/dist/src/app/Types/demo_extension.d.ts +11 -0
- package/dist/src/app/Types/demo_extension.js +190 -0
- package/dist/src/app/Types/envObject.d.ts +97 -0
- package/dist/src/app/Types/envObject.js +5 -0
- package/dist/src/app/Types/firebase.d.ts +30413 -0
- package/dist/src/app/Types/firebase.js +6696 -0
- package/dist/src/app/Types/gen_openapi.d.ts +130 -0
- package/dist/src/app/Types/gen_openapi.js +2 -0
- package/dist/src/app/Types/global_types.d.ts +254 -0
- package/dist/src/app/Types/global_types.js +6 -0
- package/dist/src/app/Types/messages_types.d.ts +76 -0
- package/dist/src/app/Types/messages_types.js +1 -0
- package/dist/src/app/Types/vapi_types.d.ts +358 -0
- package/dist/src/app/Types/vapi_types.js +2 -0
- package/dist/src/app/Types/vf_types.d.ts +33 -0
- package/dist/src/app/Types/vf_types.js +2 -0
- package/dist/src/public_packages/react-voice-orb/src/animation-orb.d.ts +11 -0
- package/dist/src/public_packages/react-voice-orb/src/animation-orb.js +397 -0
- package/dist/src/public_packages/react-voice-orb/src/index.d.ts +5 -0
- package/dist/src/public_packages/react-voice-orb/src/index.js +16 -0
- package/dist/src/public_packages/react-voice-orb/src/providers/AIAudioProvider.d.ts +21 -0
- package/dist/src/public_packages/react-voice-orb/src/providers/AIAudioProvider.js +81 -0
- package/dist/src/public_packages/react-voice-orb/src/providers/ThemeProvider.d.ts +23 -0
- package/dist/src/public_packages/react-voice-orb/src/providers/ThemeProvider.js +202 -0
- package/dist/src/public_packages/react-voice-orb/src/scripts/same-script.d.ts +1 -0
- package/dist/src/public_packages/react-voice-orb/src/scripts/same-script.js +79 -0
- package/dist/src/public_packages/react-voice-orb/src/spinner.d.ts +3 -0
- package/dist/src/public_packages/react-voice-orb/src/spinner.js +17 -0
- package/dist/src/public_packages/react-voice-orb/tsconfig.tsbuildinfo +1 -0
- package/dist/vg-docker/src/+global_consts/client.d.ts +84 -0
- package/dist/vg-docker/src/+global_consts/client.js +105 -0
- package/package.json +46 -0
- package/scripts/post-tsc.ts +74 -0
- package/src/animation-orb.tsx +441 -0
- package/src/index.ts +5 -0
- package/src/providers/AIAudioProvider.tsx +100 -0
- package/src/providers/ThemeProvider.tsx +211 -0
- package/src/scripts/same-script.ts +73 -0
- package/src/spinner.tsx +19 -0
- package/tsconfig.json +34 -0
- package/webpack.config.js +141 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export declare const GLOBAL_ONPREM_CLIENT: {
|
|
2
|
+
BRAND_NAME: string;
|
|
3
|
+
DOMAIN_ROOT_URL: string;
|
|
4
|
+
DOCS_DOMAIN_ROOT_URL: string;
|
|
5
|
+
LOGO_512_512_URL: string;
|
|
6
|
+
LOGO_RECTANGLE_LIGHT_URL: string;
|
|
7
|
+
LOGO_RECTANGLE_DARK_URL: string;
|
|
8
|
+
BANNER_URL: string;
|
|
9
|
+
EMAIL_DOMAIN_ROOT: string;
|
|
10
|
+
BUNNY_CDN_URL: string;
|
|
11
|
+
BRANCH_NAME: string;
|
|
12
|
+
LEGAL: {
|
|
13
|
+
ADDRESS: string;
|
|
14
|
+
PHONE: string;
|
|
15
|
+
EMAIL: string;
|
|
16
|
+
};
|
|
17
|
+
SOCIAL: {
|
|
18
|
+
DISCORD: string;
|
|
19
|
+
};
|
|
20
|
+
FOUNDER: {
|
|
21
|
+
NAME: string;
|
|
22
|
+
ROLE: string;
|
|
23
|
+
IMAGE_URL: string;
|
|
24
|
+
LINKEDIN: string;
|
|
25
|
+
TWITTER: string;
|
|
26
|
+
};
|
|
27
|
+
EU: {
|
|
28
|
+
EDGE_ROOT: string;
|
|
29
|
+
NODE_JS_ROOT: string;
|
|
30
|
+
};
|
|
31
|
+
NA: {
|
|
32
|
+
EDGE_ROOT: string;
|
|
33
|
+
NODE_JS_ROOT: string;
|
|
34
|
+
};
|
|
35
|
+
options: {
|
|
36
|
+
showLandingPage: boolean;
|
|
37
|
+
};
|
|
38
|
+
firebaseClient: {
|
|
39
|
+
apiKey: string;
|
|
40
|
+
authDomain: string;
|
|
41
|
+
projectId: string;
|
|
42
|
+
storageBucket: string;
|
|
43
|
+
messagingSenderId: string;
|
|
44
|
+
appId: string;
|
|
45
|
+
measurementId: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare const ACTIVATE_NEW_ADDONS_PRICING = true;
|
|
49
|
+
export declare const GLOBAL_PRICING_CONFIG: {
|
|
50
|
+
DEF_TRIAL_DURATION_DAYS: number;
|
|
51
|
+
FREE: {
|
|
52
|
+
MAX_AGENTS: number;
|
|
53
|
+
MAX_CLIENTS: number;
|
|
54
|
+
};
|
|
55
|
+
DEFAULT_CREDIT_CONSUME: {
|
|
56
|
+
AGENT_INTERACTION: number;
|
|
57
|
+
};
|
|
58
|
+
DEFAULT_CREDIT_CHARGE_WORTH_USD: number;
|
|
59
|
+
DEFAULT_CREDIT_CHARGE_THRESHOLD: number;
|
|
60
|
+
COSTS_USD: {
|
|
61
|
+
TWILIO_NUMBER_FEE: number;
|
|
62
|
+
UNLIMITED_AGENTS_FEE_PER_MONTH: number;
|
|
63
|
+
ADDITIONAL_KB_MILLION_CHARACTERS: number;
|
|
64
|
+
ADDITIONAL_AGENT: number;
|
|
65
|
+
ADDITIONAL_CLIENT: number;
|
|
66
|
+
CREDIT: {
|
|
67
|
+
numFeatures: number;
|
|
68
|
+
creditsRange: number[];
|
|
69
|
+
price: number;
|
|
70
|
+
}[];
|
|
71
|
+
BASE_FEE_STRIPE_CONNECT: number;
|
|
72
|
+
};
|
|
73
|
+
COSTS_CREDITS: {
|
|
74
|
+
MINUTE_OF_CALL: number;
|
|
75
|
+
GEOANALYTICS: number;
|
|
76
|
+
VG_HOSTING: number;
|
|
77
|
+
INTERACTION: number;
|
|
78
|
+
FILE_UPLOADED_PER_MB: number;
|
|
79
|
+
PER_1024_KB_CHARS: number;
|
|
80
|
+
TOOL_USE_FEE: number;
|
|
81
|
+
UI_ENGINE_FEE: number;
|
|
82
|
+
CUSTOM_CHANNEL_FEE: number;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GLOBAL_PRICING_CONFIG = exports.ACTIVATE_NEW_ADDONS_PRICING = exports.GLOBAL_ONPREM_CLIENT = void 0;
|
|
4
|
+
exports.GLOBAL_ONPREM_CLIENT = {
|
|
5
|
+
BRAND_NAME: 'TIXAE Agents',
|
|
6
|
+
DOMAIN_ROOT_URL: 'https://tixaeagents.ai', // NO HTTPS AT START
|
|
7
|
+
DOCS_DOMAIN_ROOT_URL: 'https://docs.tixaeagents.com', // NO HTTPS AT START
|
|
8
|
+
LOGO_512_512_URL: 'https://tixae-agents.b-cdn.net/branding/ta-logo-512x512.png',
|
|
9
|
+
LOGO_RECTANGLE_LIGHT_URL: 'https://vg-bunny-cdn.b-cdn.net/ts/banner-light.png',
|
|
10
|
+
LOGO_RECTANGLE_DARK_URL: 'https://vg-bunny-cdn.b-cdn.net/ts/banner-dark.png',
|
|
11
|
+
BANNER_URL: 'https://tixae-agents.b-cdn.net/branding/tixaebanner.png',
|
|
12
|
+
EMAIL_DOMAIN_ROOT: 'tixaeagents.ai',
|
|
13
|
+
BUNNY_CDN_URL: 'https://vg-bunny-cdn.b-cdn.net',
|
|
14
|
+
BRANCH_NAME: 'main',
|
|
15
|
+
LEGAL: {
|
|
16
|
+
ADDRESS: '5220 S UNIVERSITY DR STE 102 DAVIE, FL 33328 UNITED STATES',
|
|
17
|
+
PHONE: '+1 954 222 1111',
|
|
18
|
+
EMAIL: 'admin@tixaeagents.ai',
|
|
19
|
+
},
|
|
20
|
+
SOCIAL: {
|
|
21
|
+
DISCORD: 'https://discord.com/invite/5zvdYwhZa7',
|
|
22
|
+
},
|
|
23
|
+
FOUNDER: {
|
|
24
|
+
NAME: 'Moe Ayman',
|
|
25
|
+
ROLE: 'Founder',
|
|
26
|
+
IMAGE_URL: 'https://pub-78d23252e3324567b5ee23d57acddddd.r2.dev/sq_moe.png',
|
|
27
|
+
LINKEDIN: 'https://www.linkedin.com/in/moe-ayman-0759a8288/',
|
|
28
|
+
TWITTER: 'https://x.com/moe_ayman03',
|
|
29
|
+
},
|
|
30
|
+
EU: {
|
|
31
|
+
EDGE_ROOT: 'eu-vg-edge.moeaymandev.workers.dev', // NO HTTPS AT START
|
|
32
|
+
NODE_JS_ROOT: 'eu-voiceglow-runtime-vbmbkqccuq-ey.a.run.app', // NO HTTPS AT START
|
|
33
|
+
},
|
|
34
|
+
NA: {
|
|
35
|
+
EDGE_ROOT: 'na-vg-edge.moeaymandev.workers.dev', // NO HTTPS AT START
|
|
36
|
+
NODE_JS_ROOT: 'na-runtime-2.vg-stuff.com', // NO HTTPS AT START
|
|
37
|
+
},
|
|
38
|
+
options: {
|
|
39
|
+
showLandingPage: true,
|
|
40
|
+
},
|
|
41
|
+
firebaseClient: {
|
|
42
|
+
apiKey: "AIzaSyDa4-xVrMX57smdpqvq3vU_cw_YJHdGK9g",
|
|
43
|
+
authDomain: "speakwiz-app.firebaseapp.com",
|
|
44
|
+
projectId: "speakwiz-app",
|
|
45
|
+
storageBucket: "speakwiz-app.appspot.com",
|
|
46
|
+
messagingSenderId: "264031558",
|
|
47
|
+
appId: "1:264031558:web:aaf1b2d3078125841da947",
|
|
48
|
+
measurementId: "G-WBEN55T42T",
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
exports.ACTIVATE_NEW_ADDONS_PRICING = process.env.NODE_ENV === 'development' ? true : true;
|
|
52
|
+
// export const GLOBAL_BRANDING_CONFIG = {
|
|
53
|
+
// DEFAULT_BY_THING: `Tixae`,
|
|
54
|
+
// DEFAULT_BRAND_NAME: 'Voiceglow',
|
|
55
|
+
// DEFAULT_DOMAIN_ROOT: process.env.NODE_ENV === 'development' ? 'http://localhost:3000' : 'https://voiceglow.org',
|
|
56
|
+
// DEFAULT_DOCS_DOMAIN_ROOT: process.env.NODE_ENV === 'development' ? 'http://localhost:3001' : 'https://docs.voiceglow.org',
|
|
57
|
+
// }
|
|
58
|
+
exports.GLOBAL_PRICING_CONFIG = {
|
|
59
|
+
DEF_TRIAL_DURATION_DAYS: 7,
|
|
60
|
+
FREE: {
|
|
61
|
+
MAX_AGENTS: 2,
|
|
62
|
+
MAX_CLIENTS: 5
|
|
63
|
+
},
|
|
64
|
+
DEFAULT_CREDIT_CONSUME: {
|
|
65
|
+
AGENT_INTERACTION: 1,
|
|
66
|
+
},
|
|
67
|
+
DEFAULT_CREDIT_CHARGE_WORTH_USD: 5,
|
|
68
|
+
DEFAULT_CREDIT_CHARGE_THRESHOLD: 500,
|
|
69
|
+
COSTS_USD: {
|
|
70
|
+
TWILIO_NUMBER_FEE: 3,
|
|
71
|
+
UNLIMITED_AGENTS_FEE_PER_MONTH: 50,
|
|
72
|
+
ADDITIONAL_KB_MILLION_CHARACTERS: 5,
|
|
73
|
+
ADDITIONAL_AGENT: 1,
|
|
74
|
+
ADDITIONAL_CLIENT: 5,
|
|
75
|
+
CREDIT: [
|
|
76
|
+
{
|
|
77
|
+
numFeatures: 0,
|
|
78
|
+
creditsRange: [0, 14999],
|
|
79
|
+
price: 0.004
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
numFeatures: 0,
|
|
83
|
+
creditsRange: [15_000, 49999],
|
|
84
|
+
price: 0.0033
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
numFeatures: 3,
|
|
88
|
+
creditsRange: [50000, 1_000_000_000_000],
|
|
89
|
+
price: 0.003
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
BASE_FEE_STRIPE_CONNECT: 0.05,
|
|
93
|
+
},
|
|
94
|
+
COSTS_CREDITS: {
|
|
95
|
+
MINUTE_OF_CALL: 10,
|
|
96
|
+
GEOANALYTICS: 0,
|
|
97
|
+
VG_HOSTING: 0.2,
|
|
98
|
+
INTERACTION: 1,
|
|
99
|
+
FILE_UPLOADED_PER_MB: 1,
|
|
100
|
+
PER_1024_KB_CHARS: 0,
|
|
101
|
+
TOOL_USE_FEE: 0.5,
|
|
102
|
+
UI_ENGINE_FEE: 0.5,
|
|
103
|
+
CUSTOM_CHANNEL_FEE: 1,
|
|
104
|
+
}
|
|
105
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rannah-labs/react-voice-orb",
|
|
3
|
+
"version": "1.1.3",
|
|
4
|
+
"main": "dist/src/public_packages/react-voice-orb/src/index.js",
|
|
5
|
+
"types": "dist/src/public_packages/react-voice-orb/src/index.d.ts",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/Moe03/ta-react-voice-orb.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/Moe03/ta-react-voice-orb/issues"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/Moe03/ta-react-voice-orb#readme",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"rannah",
|
|
16
|
+
"react animation orb",
|
|
17
|
+
"web call",
|
|
18
|
+
"voice call",
|
|
19
|
+
"voice ai",
|
|
20
|
+
"voice orb",
|
|
21
|
+
"voice animation orb"
|
|
22
|
+
],
|
|
23
|
+
"author": "Rannah",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"description": "React component for AI Voice calling Orb built with Rannah رنّة.",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@rannah-labs/web-sdk": "^1.3.10",
|
|
28
|
+
"@types/color-convert": "^2.0.4",
|
|
29
|
+
"@types/three": "^0.173.0",
|
|
30
|
+
"color-convert": "^2.0.1",
|
|
31
|
+
"framer-motion": "^12.0.11",
|
|
32
|
+
"react": "^19.0.0",
|
|
33
|
+
"react-dom": "^19.0.0",
|
|
34
|
+
"react-icons": "^5.4.0",
|
|
35
|
+
"react-loader-spinner": "^6.1.6",
|
|
36
|
+
"three": "^0.173.0"
|
|
37
|
+
},
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public",
|
|
40
|
+
"tag": "latest"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsc && bun run src/scripts/same-script.ts",
|
|
44
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as fs from "fs/promises";
|
|
2
|
+
import * as path from "path";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Deletes all files and folders inside `rootPath` except for those
|
|
6
|
+
* whose relative paths (from rootPath) appear in the `exceptions` array.
|
|
7
|
+
*
|
|
8
|
+
* @param rootPath - The directory to process.
|
|
9
|
+
* @param exceptions - An array of paths (relative to rootPath) to keep.
|
|
10
|
+
*/
|
|
11
|
+
async function deleteAllExcept(
|
|
12
|
+
rootPath: string,
|
|
13
|
+
exceptions: string[]
|
|
14
|
+
): Promise<void> {
|
|
15
|
+
// Normalize exception paths for consistent matching.
|
|
16
|
+
const exceptionsSet = new Set(exceptions.map((e) => path.normalize(e)));
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Recursively processes the directory at `currentPath`.
|
|
20
|
+
*
|
|
21
|
+
* @param currentPath - Absolute path of the current directory.
|
|
22
|
+
* @param relativePath - The path relative to the original rootPath.
|
|
23
|
+
*/
|
|
24
|
+
async function processDirectory(
|
|
25
|
+
currentPath: string,
|
|
26
|
+
relativePath: string
|
|
27
|
+
): Promise<void> {
|
|
28
|
+
// Read the directory entries.
|
|
29
|
+
const items = await fs.readdir(currentPath);
|
|
30
|
+
|
|
31
|
+
for (const item of items) {
|
|
32
|
+
// Build the relative path for the item.
|
|
33
|
+
const itemRelPath = relativePath ? path.join(relativePath, item) : item;
|
|
34
|
+
const fullItemPath = path.join(currentPath, item);
|
|
35
|
+
|
|
36
|
+
// If the item is in the exceptions list, skip processing it.
|
|
37
|
+
if (exceptionsSet.has(path.normalize(itemRelPath))) {
|
|
38
|
+
// Do not process inside an exception folder (or delete an exception file).
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const stats = await fs.lstat(fullItemPath);
|
|
43
|
+
if (stats.isDirectory()) {
|
|
44
|
+
// Process the contents of the directory.
|
|
45
|
+
await processDirectory(fullItemPath, itemRelPath);
|
|
46
|
+
// After processing, check if the directory is now empty.
|
|
47
|
+
const remaining = await fs.readdir(fullItemPath);
|
|
48
|
+
if (remaining.length === 0) {
|
|
49
|
+
await fs.rmdir(fullItemPath);
|
|
50
|
+
}
|
|
51
|
+
} else {
|
|
52
|
+
// Delete the file.
|
|
53
|
+
await fs.unlink(fullItemPath);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Process the root directory but never remove the root itself.
|
|
59
|
+
await processDirectory(rootPath, "");
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// --- Example usage ---
|
|
63
|
+
// This call will delete everything under './dist/vg-docker/src'
|
|
64
|
+
// except for the folder "+global_consts" and any file/folder whose
|
|
65
|
+
// relative path matches one of the entries in the exceptions array.
|
|
66
|
+
deleteAllExcept("./dist", [
|
|
67
|
+
"vg-docker/src/+global_consts/client.js",
|
|
68
|
+
"vg-docker/src/+global_consts/client.d.ts",
|
|
69
|
+
"src/app/Types",
|
|
70
|
+
"src/app/Types",
|
|
71
|
+
"bun-server",
|
|
72
|
+
"src/public_packages/web-call",
|
|
73
|
+
"src/public_packages/react-voice-orb",
|
|
74
|
+
]).catch(console.error);
|