opensips-js-vue 0.1.6 → 0.1.8
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/library/index.d.ts +13 -9
- package/library/super.mjs +538 -544
- package/library/super.mjs.map +1 -1
- package/library/super.umd.js +28 -28
- package/library/super.umd.js.map +1 -1
- package/package.json +1 -1
package/library/index.d.ts
CHANGED
|
@@ -96,14 +96,6 @@ 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
|
-
|
|
107
99
|
export declare interface CustomLoggerType {
|
|
108
100
|
log: CommonLogMethodType
|
|
109
101
|
warn: CommonLogMethodType
|
|
@@ -247,10 +239,19 @@ export declare type MSRPSessionListener = IncomingMSRPSessionListener | Outgoing
|
|
|
247
239
|
|
|
248
240
|
export declare type OnTransportCallback = (parsed: object, message: string) => void
|
|
249
241
|
|
|
242
|
+
export declare interface OpensipsConnectOptions {
|
|
243
|
+
domain: string
|
|
244
|
+
username: string
|
|
245
|
+
modules: Array<'audio' | 'video'>
|
|
246
|
+
password?: string
|
|
247
|
+
authorization_jwt?: string
|
|
248
|
+
}
|
|
249
|
+
|
|
250
250
|
export declare interface OpenSIPSEventMap extends UAEventMap {
|
|
251
251
|
ready: readyListener
|
|
252
252
|
connection: connectionListener
|
|
253
253
|
reconnecting: reconnectionListener
|
|
254
|
+
reconnectionAttemptsLimitReached: reconnectionAttemptsLimitListener
|
|
254
255
|
// JSSIP
|
|
255
256
|
changeActiveCalls: changeActiveCallsListener
|
|
256
257
|
changeActiveMessages: changeActiveMessagesListener
|
|
@@ -297,6 +298,8 @@ declare interface PNExtraHeaders {
|
|
|
297
298
|
|
|
298
299
|
export declare type readyListener = (value: boolean) => void
|
|
299
300
|
|
|
301
|
+
export declare type reconnectionAttemptsLimitListener = () => void
|
|
302
|
+
|
|
300
303
|
export declare type reconnectionListener = (value: boolean) => void
|
|
301
304
|
|
|
302
305
|
export declare interface RemoteIdentityCallType {
|
|
@@ -388,6 +391,7 @@ export declare interface TriggerListenerOptions {
|
|
|
388
391
|
}
|
|
389
392
|
|
|
390
393
|
export declare type UAConfigurationExtended = UAConfiguration & {
|
|
394
|
+
reconnectionAttemptsLimit?: number
|
|
391
395
|
overrideUserAgent?: (userAgent: string) => string
|
|
392
396
|
onTransportCallback?: OnTransportCallback
|
|
393
397
|
}
|
|
@@ -408,7 +412,7 @@ export declare interface VsipAPI {
|
|
|
408
412
|
export declare const vsipAPI: VsipAPI;
|
|
409
413
|
|
|
410
414
|
declare interface VsipAPIActions {
|
|
411
|
-
init(credentials:
|
|
415
|
+
init(credentials: OpensipsConnectOptions, pnExtraHeaders?: PNExtraHeaders, opensipsConfiguration?: Partial<InitOpensipsConfiguration>): Promise<unknown>
|
|
412
416
|
unregister: () => void
|
|
413
417
|
register: () => void
|
|
414
418
|
disconnect: () => void
|