opensips-js 0.1.25 → 0.1.26

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
@@ -78,7 +78,7 @@ declare class AudioModule {
78
78
  private MicVAD;
79
79
  managedAudioContext: ManagedAudioContext;
80
80
  constructor(context: OpenSIPSJS);
81
- setVADConfiguration(options: Partial<Omit<NoiseReductionOptions, 'vadModule'>>): void;
81
+ setVADConfiguration(options: Partial<NoiseReductionOptionsWithoutVadModule>): void;
82
82
  private setupVADInstance;
83
83
  private processVADConfiguration;
84
84
  get sipOptions(): {
@@ -789,6 +789,8 @@ declare interface NoiseReductionOptions {
789
789
  noiseCheckInterval?: number
790
790
  }
791
791
 
792
+ declare type NoiseReductionOptionsWithoutVadModule = Omit<NoiseReductionOptions, 'vadModule'>
793
+
792
794
  declare type NoiseReductionStateEventType = {
793
795
  sessionId: string
794
796
  enabled: boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opensips-js",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "description": "The JS package for opensips",
5
5
  "default": "src/index.ts",
6
6
  "jsdelivr": "dist/opensips-js.iife.js",
@@ -160,6 +160,8 @@ export interface NoiseReductionOptions {
160
160
  noiseCheckInterval?: number
161
161
  }
162
162
 
163
+ export type NoiseReductionOptionsWithoutVadModule = Omit<NoiseReductionOptions, 'vadModule'>
164
+
163
165
  export interface VADModule {
164
166
  MicVAD: any
165
167
  }