opensips-js-vue 0.1.3 → 0.1.5

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.
@@ -96,6 +96,14 @@ export declare type conferenceStartListener = () => void
96
96
 
97
97
  export declare type connectionListener = (value: boolean) => void
98
98
 
99
+ declare interface ConnectOptions {
100
+ domain: string
101
+ username: string
102
+ modules: Array<'audio' | 'video'>
103
+ password?: string
104
+ authorization_jwt?: string
105
+ }
106
+
99
107
  export declare interface CustomLoggerType {
100
108
  log: CommonLogMethodType
101
109
  warn: CommonLogMethodType
@@ -400,7 +408,7 @@ export declare interface VsipAPI {
400
408
  export declare const vsipAPI: VsipAPI;
401
409
 
402
410
  declare interface VsipAPIActions {
403
- init(domain: string, username: string, password: string, pnExtraHeaders?: PNExtraHeaders, opensipsConfiguration?: Partial<InitOpensipsConfiguration>): Promise<unknown>
411
+ init(credentials: ConnectOptions, pnExtraHeaders?: PNExtraHeaders, opensipsConfiguration?: Partial<InitOpensipsConfiguration>): Promise<unknown>
404
412
  unregister: () => void
405
413
  register: () => void
406
414
  disconnect: () => void