@4players/odin-common 3.0.0-beta.1 → 3.0.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.
@@ -3,7 +3,7 @@ export declare namespace Backend {
3
3
  type UID = string;
4
4
  type OnStatusChanged = (status: 'started' | 'stopped') => void;
5
5
  type OnEvent = (method: string, properties: unknown) => void;
6
- type Version = '4';
6
+ type Version = '5';
7
7
  enum Transport {
8
8
  H3 = "h3",
9
9
  WebRTC = "webrtc"
@@ -25,6 +25,7 @@ export declare namespace Backend {
25
25
  interface Device {
26
26
  readonly type: 'AudioPlayback' | 'AudioCapture';
27
27
  readonly name: string;
28
+ readonly id: string;
28
29
  readonly isDefault: boolean;
29
30
  }
30
31
  interface DeviceParameters {
@@ -113,7 +114,7 @@ export declare namespace Backend {
113
114
  readonly mediaStream?: MediaStream;
114
115
  readonly uid: UID;
115
116
  }
116
- type Volume = number | 'muted';
117
+ type Volume = 'muted' | [number, number];
117
118
  interface VadConfig {
118
119
  voiceActivity?: SensitivityRange;
119
120
  volumeGate?: SensitivityRange;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4players/odin-common",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0",
4
4
  "description": "A collection of commonly used type definitions and utility functions across ODIN web projects",
5
5
  "author": "Josho Bleicker <josho.bleicker@4players.io> (https://www.4players.io)",
6
6
  "homepage": "https://www.4players.io",
@@ -44,4 +44,4 @@
44
44
  "typescript": "~5.6.0",
45
45
  "typescript-eslint": "~8.24.0"
46
46
  }
47
- }
47
+ }