@volorio/core 0.2.0
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 +3 -0
- package/dist/src/index.d.ts +33 -0
- package/dist/src/index.js +40 -0
- package/dist/src/index.js.map +1 -0
- package/package.json +24 -0
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type VolorioProductUnit = "minute" | "participant_minute" | "message" | "monthly_active_user" | "month" | "game_session";
|
|
2
|
+
export interface VolorioProductPrice {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
category: "core" | "media_service" | "ai_extension" | "addon" | "apaas" | "games";
|
|
6
|
+
unit: VolorioProductUnit;
|
|
7
|
+
unitPriceMicros: number;
|
|
8
|
+
freeAllowance?: {
|
|
9
|
+
quantity: number;
|
|
10
|
+
period: "month" | "one_time";
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export type VolorioProductId = "conversational_ai_platform" | "rtc_voice" | "rtc_video_hd" | "rtc_video_fullhd" | "rtc_video_2k" | "rtc_video_4k" | "live_streaming" | "screen_share" | "signaling" | "chat_mau" | "chat_e2ee" | "speech_to_text" | "real_time_translation" | "recording" | "media_gateway" | "cloud_transcoding" | "media_push" | "media_pull" | "ai_noise_suppression" | "virtual_background" | "beauty_effect" | "video_super_clarity" | "video_watermark" | "vad" | "video_compositor" | "spatial_audio_3d" | "interactive_whiteboard" | "analytics" | "flexible_classroom" | "games_catalog" | "games_session" | "games_minute" | "games_premium" | "games_leaderboard";
|
|
14
|
+
export type VolorioMediaQuality = "voice" | "hd" | "fullhd" | "2k" | "4k";
|
|
15
|
+
export interface VolorioEntitlement {
|
|
16
|
+
productId: VolorioProductId;
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface VolorioWalletBalance {
|
|
20
|
+
projectId: string;
|
|
21
|
+
currency: "USD";
|
|
22
|
+
availableBalanceMicros: number;
|
|
23
|
+
reservedBalanceMicros?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface VolorioSessionDescriptor {
|
|
26
|
+
sessionId: string;
|
|
27
|
+
projectId: string;
|
|
28
|
+
roomId: string;
|
|
29
|
+
identity: string;
|
|
30
|
+
quality: VolorioMediaQuality;
|
|
31
|
+
products: VolorioProductId[];
|
|
32
|
+
}
|
|
33
|
+
export declare const volorioPricingCatalog: readonly VolorioProductPrice[];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.volorioPricingCatalog = void 0;
|
|
4
|
+
exports.volorioPricingCatalog = [
|
|
5
|
+
{ id: "conversational_ai_platform", name: "Conversational AI Platform", category: "core", unit: "minute", unitPriceMicros: 100_000, freeAllowance: { quantity: 300, period: "one_time" } },
|
|
6
|
+
{ id: "rtc_voice", name: "RTC Voice", category: "core", unit: "participant_minute", unitPriceMicros: 590, freeAllowance: { quantity: 15_000, period: "month" } },
|
|
7
|
+
{ id: "rtc_video_hd", name: "RTC Video HD", category: "core", unit: "participant_minute", unitPriceMicros: 590, freeAllowance: { quantity: 15_000, period: "month" } },
|
|
8
|
+
{ id: "rtc_video_fullhd", name: "RTC Video FullHD", category: "core", unit: "participant_minute", unitPriceMicros: 890 },
|
|
9
|
+
{ id: "rtc_video_2k", name: "RTC Video 2K", category: "core", unit: "participant_minute", unitPriceMicros: 1_490 },
|
|
10
|
+
{ id: "rtc_video_4k", name: "RTC Video 4K", category: "core", unit: "participant_minute", unitPriceMicros: 2_490 },
|
|
11
|
+
{ id: "live_streaming", name: "Live Streaming", category: "core", unit: "participant_minute", unitPriceMicros: 590 },
|
|
12
|
+
{ id: "screen_share", name: "Screen Share", category: "core", unit: "participant_minute", unitPriceMicros: 590 },
|
|
13
|
+
{ id: "signaling", name: "Signaling", category: "core", unit: "message", unitPriceMicros: 1_500, freeAllowance: { quantity: 1_000_000, period: "month" } },
|
|
14
|
+
{ id: "chat_mau", name: "Chat MAU", category: "core", unit: "monthly_active_user", unitPriceMicros: 50_000, freeAllowance: { quantity: 500, period: "month" } },
|
|
15
|
+
{ id: "chat_e2ee", name: "Chat End-to-End Encryption", category: "addon", unit: "monthly_active_user", unitPriceMicros: 20_000 },
|
|
16
|
+
{ id: "speech_to_text", name: "Real-Time Speech to Text", category: "media_service", unit: "minute", unitPriceMicros: 16_990, freeAllowance: { quantity: 300, period: "one_time" } },
|
|
17
|
+
{ id: "real_time_translation", name: "Real-Time Translation", category: "media_service", unit: "minute", unitPriceMicros: 8_990, freeAllowance: { quantity: 300, period: "one_time" } },
|
|
18
|
+
{ id: "recording", name: "Recording", category: "media_service", unit: "minute", unitPriceMicros: 990, freeAllowance: { quantity: 10_000, period: "month" } },
|
|
19
|
+
{ id: "media_gateway", name: "Media Gateway", category: "media_service", unit: "minute", unitPriceMicros: 990 },
|
|
20
|
+
{ id: "cloud_transcoding", name: "Cloud Transcoding", category: "media_service", unit: "minute", unitPriceMicros: 1_990 },
|
|
21
|
+
{ id: "media_push", name: "Media Push", category: "media_service", unit: "minute", unitPriceMicros: 1_990 },
|
|
22
|
+
{ id: "media_pull", name: "Media Pull", category: "media_service", unit: "minute", unitPriceMicros: 1_150 },
|
|
23
|
+
{ id: "ai_noise_suppression", name: "AI Noise Suppression", category: "ai_extension", unit: "minute", unitPriceMicros: 590, freeAllowance: { quantity: 10_000, period: "month" } },
|
|
24
|
+
{ id: "virtual_background", name: "Virtual Background", category: "ai_extension", unit: "minute", unitPriceMicros: 590, freeAllowance: { quantity: 10_000, period: "month" } },
|
|
25
|
+
{ id: "beauty_effect", name: "Beauty Effect", category: "ai_extension", unit: "minute", unitPriceMicros: 590 },
|
|
26
|
+
{ id: "video_super_clarity", name: "Video Super Clarity", category: "ai_extension", unit: "minute", unitPriceMicros: 990 },
|
|
27
|
+
{ id: "video_watermark", name: "Video Watermark", category: "addon", unit: "minute", unitPriceMicros: 390 },
|
|
28
|
+
{ id: "vad", name: "Voice Activity Detection", category: "ai_extension", unit: "minute", unitPriceMicros: 290 },
|
|
29
|
+
{ id: "video_compositor", name: "Video Compositor", category: "addon", unit: "minute", unitPriceMicros: 1_490 },
|
|
30
|
+
{ id: "spatial_audio_3d", name: "3D Spatial Audio", category: "ai_extension", unit: "minute", unitPriceMicros: 990, freeAllowance: { quantity: 10_000, period: "month" } },
|
|
31
|
+
{ id: "interactive_whiteboard", name: "Interactive Whiteboard", category: "addon", unit: "minute", unitPriceMicros: 1_400, freeAllowance: { quantity: 10_000, period: "month" } },
|
|
32
|
+
{ id: "analytics", name: "Analytics", category: "addon", unit: "month", unitPriceMicros: 449_000_000 },
|
|
33
|
+
{ id: "flexible_classroom", name: "Flexible Classroom", category: "apaas", unit: "minute", unitPriceMicros: 2_190, freeAllowance: { quantity: 10_000, period: "month" } },
|
|
34
|
+
{ id: "games_catalog", name: "Games Catalog", category: "games", unit: "month", unitPriceMicros: 0 },
|
|
35
|
+
{ id: "games_session", name: "Games Session", category: "games", unit: "game_session", unitPriceMicros: 1_000, freeAllowance: { quantity: 1_000, period: "month" } },
|
|
36
|
+
{ id: "games_minute", name: "Games Runtime Minute", category: "games", unit: "minute", unitPriceMicros: 250, freeAllowance: { quantity: 15_000, period: "month" } },
|
|
37
|
+
{ id: "games_premium", name: "Premium Games", category: "games", unit: "game_session", unitPriceMicros: 5_000 },
|
|
38
|
+
{ id: "games_leaderboard", name: "Games Leaderboard", category: "games", unit: "month", unitPriceMicros: 49_000_000 },
|
|
39
|
+
];
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AA+Ea,QAAA,qBAAqB,GAAmC;IACnE,EAAE,EAAE,EAAE,4BAA4B,EAAE,IAAI,EAAE,4BAA4B,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAE,aAAa,EAAE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E,CAAC,EAAE;IACpG,EAAE,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;IACpK,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;IACnK,EAAE,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE;IAC/G,EAAE,EAAE,EAAE,mBAAmB,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE;CACtH,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@volorio/core",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Shared Volorio product, pricing, session, entitlement, and wallet types.",
|
|
6
|
+
"main": "dist/src/index.js",
|
|
7
|
+
"types": "dist/src/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/src/index.d.ts",
|
|
11
|
+
"default": "./dist/src/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": ["dist/src", "README.md"],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public",
|
|
17
|
+
"registry": "https://registry.npmjs.org/"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc -p tsconfig.build.json",
|
|
21
|
+
"test": "pnpm build",
|
|
22
|
+
"pack:local": "pnpm build && npm pack --pack-destination dist"
|
|
23
|
+
}
|
|
24
|
+
}
|