@plumbus/voice-livekit 0.1.3 → 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/CHANGELOG.md +6 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/pricing.d.ts.map +1 -1
- package/dist/pricing.js +5 -1
- package/dist/pricing.js.map +1 -1
- package/package.json +2 -2
package/dist/pricing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing.d.ts","sourceRoot":"","sources":["../src/pricing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,eAAO,MAAM,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"pricing.d.ts","sourceRoot":"","sources":["../src/pricing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,eAAO,MAAM,qBAAqB,EAAE,iBASnC,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,IAAI,EAAE;IACjD,WAAW,EAAE,IAAI,CAAC;IAClB,cAAc,EAAE,IAAI,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,GAAG,MAAM,CAWT"}
|
package/dist/pricing.js
CHANGED
|
@@ -2,7 +2,11 @@ export const LIVEKIT_VOICE_PRICING = {
|
|
|
2
2
|
model: 'livekit-cloud',
|
|
3
3
|
operation: 'transport',
|
|
4
4
|
unit: 'participantMinutes',
|
|
5
|
-
|
|
5
|
+
// LiveKit Cloud WebRTC participant-minute overage rate, Ship tier ($0.0005;
|
|
6
|
+
// Scale is $0.0004). Below each plan's included monthly allotment (5k–1.5M
|
|
7
|
+
// minutes) the marginal cost is $0 — this records the overage rate. A
|
|
8
|
+
// self-hosted agent joining the room bills as an ordinary participant.
|
|
9
|
+
usdPerUnit: 0.0005,
|
|
6
10
|
};
|
|
7
11
|
export function calculateLiveKitTransportUsd(args) {
|
|
8
12
|
const wallClockMinutes = Math.max(0, (args.disconnectedAt.getTime() - args.connectedAt.getTime()) / 60_000);
|
package/dist/pricing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing.js","sourceRoot":"","sources":["../src/pricing.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAsB;IACtD,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,oBAAoB;IAC1B,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"pricing.js","sourceRoot":"","sources":["../src/pricing.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAsB;IACtD,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,oBAAoB;IAC1B,4EAA4E;IAC5E,2EAA2E;IAC3E,sEAAsE;IACtE,uEAAuE;IACvE,UAAU,EAAE,MAAM;CACnB,CAAC;AAEF,MAAM,UAAU,4BAA4B,CAAC,IAI5C;IACC,MAAM,gBAAgB,GAAG,IAAI,CAAC,GAAG,CAC/B,CAAC,EACD,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,GAAG,MAAM,CACtE,CAAC;IACF,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,IAAI,CAAC,CAAC;IAChD,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,YAAY,CAAC;IAC3D,IAAI,kBAAkB,IAAI,CAAC,EAAE,CAAC;QAC5B,OAAO,CAAC,CAAC;IACX,CAAC;IACD,OAAO,QAAQ,CAAC,kBAAkB,GAAG,qBAAqB,CAAC,UAAU,CAAC,CAAC;AACzE,CAAC;AAED,SAAS,QAAQ,CAAC,KAAa;IAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,SAAS,CAAC,GAAG,SAAS,CAAC;AACnD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumbus/voice-livekit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "LiveKit transport, agent worker, and browser session helpers for @plumbus/voice.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"tsx": "^4.21.0",
|
|
70
70
|
"vitest": "^3.2.4",
|
|
71
71
|
"@plumbus/core": "0.6.17",
|
|
72
|
-
"@plumbus/voice": "0.4.
|
|
72
|
+
"@plumbus/voice": "0.4.5"
|
|
73
73
|
},
|
|
74
74
|
"license": "MIT",
|
|
75
75
|
"scripts": {
|