sip-connector 14.0.1-0 → 14.1.0-alpha.1
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/ApiManager/@ApiManager.d.ts +58 -0
- package/dist/ApiManager/constants.d.ts +71 -0
- package/dist/ApiManager/eventNames.d.ts +33 -0
- package/dist/ApiManager/index.d.ts +2 -0
- package/dist/ApiManager/types.d.ts +99 -0
- package/dist/CallManager/@CallManager.d.ts +26 -0
- package/dist/CallManager/AbstractCallStrategy.d.ts +47 -0
- package/dist/CallManager/MCUCallStrategy.d.ts +30 -0
- package/dist/CallManager/RemoteStreamsManager.d.ts +8 -0
- package/dist/CallManager/causes.d.ts +12 -0
- package/dist/CallManager/eventNames.d.ts +45 -0
- package/dist/CallManager/hasCanceledCallError.d.ts +2 -0
- package/dist/CallManager/index.d.ts +5 -0
- package/dist/CallManager/types.d.ts +59 -0
- package/dist/ConnectionManager/@ConnectionManager.d.ts +47 -0
- package/dist/ConnectionManager/ConfigurationManager.d.ts +60 -0
- package/dist/ConnectionManager/ConnectionFlow.d.ts +83 -0
- package/dist/ConnectionManager/ConnectionStateMachine.d.ts +61 -0
- package/dist/ConnectionManager/RegistrationManager.d.ts +17 -0
- package/dist/ConnectionManager/SipOperations.d.ts +32 -0
- package/dist/ConnectionManager/UAFactory.d.ts +50 -0
- package/dist/ConnectionManager/eventNames.d.ts +16 -0
- package/dist/ConnectionManager/index.d.ts +3 -0
- package/dist/IncomingCallManager/@IncomingCallManager.d.ts +36 -0
- package/dist/IncomingCallManager/eventNames.d.ts +13 -0
- package/dist/IncomingCallManager/index.d.ts +2 -0
- package/dist/PresentationManager/@PresentationManager.d.ts +47 -0
- package/dist/PresentationManager/constants.d.ts +1 -0
- package/dist/PresentationManager/eventNames.d.ts +11 -0
- package/dist/PresentationManager/index.d.ts +1 -0
- package/dist/PresentationManager/types.d.ts +2 -0
- package/dist/SipConnector-CK3GgjXE.js +2492 -0
- package/dist/SipConnector-CwI8aFEA.cjs +1 -0
- package/dist/SipConnector.d.ts +107 -0
- package/dist/{src/SipConnectorFacade → SipConnectorFacade}/SipConnectorFacade.d.ts +34 -25
- package/dist/{src/__fixtures__ → __fixtures__}/BaseSession.mock.d.ts +9 -9
- package/dist/{src/__fixtures__ → __fixtures__}/RTCSessionMock.d.ts +25 -20
- package/dist/{src/__fixtures__ → __fixtures__}/UA.mock.d.ts +23 -25
- package/dist/{src/__fixtures__ → __fixtures__}/index.d.ts +4 -4
- package/dist/{src/__fixtures__ → __fixtures__}/jssip.mock.d.ts +3 -3
- package/dist/doMock.cjs +1 -1
- package/dist/{src/doMock.d.ts → doMock.d.ts} +1 -0
- package/dist/doMock.js +248 -217
- package/dist/index.cjs +1 -1
- package/dist/{src/index.d.ts → index.d.ts} +3 -1
- package/dist/index.js +529 -436
- package/dist/{src/tools → tools}/__fixtures__/connectToServer.d.ts +2 -2
- package/dist/{src/tools → tools}/index.d.ts +2 -2
- package/dist/{src/tools/sendDTMFAccumulated.d.ts → tools/sendDtmfFAccumulated.d.ts} +2 -2
- package/package.json +27 -33
- package/dist/SipConnector-CJN8qKAC.js +0 -1316
- package/dist/SipConnector-DO0YvSq6.cjs +0 -1
- package/dist/src/SipConnector.d.ts +0 -301
- package/dist/{src/SipConnectorFacade → SipConnectorFacade}/index.d.ts +0 -0
- package/dist/{src/__fixtures__ → __fixtures__}/RTCPeerConnectionMock.d.ts +1 -1
- /package/dist/{src/__fixtures__ → __fixtures__}/RTCRtpSenderMock.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/Registrator.mock.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/Request.mock.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/WebSocketInterface.mock.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/accountNotify.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/channels.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/channelsNotify.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/conferenceParticipantTokenIssuedNotify.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/delayPromise.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/enterRoom.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/mediaState.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/participantMoveRequests.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/participantNotify.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/remoteCallerData.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/utils.d.ts +0 -0
- /package/dist/{src/__fixtures__ → __fixtures__}/webcastNotify.d.ts +0 -0
- /package/dist/{src/causes.d.ts → causes.d.ts} +0 -0
- /package/dist/{src/constants.d.ts → constants.d.ts} +0 -0
- /package/dist/{src/eventNames.d.ts → eventNames.d.ts} +0 -0
- /package/dist/{src/getExtraHeadersRemoteAddress.d.ts → getExtraHeadersRemoteAddress.d.ts} +0 -0
- /package/dist/{src/headers.d.ts → headers.d.ts} +0 -0
- /package/dist/{src/logger.d.ts → logger.d.ts} +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/configureDegradationPreference.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/configureEmptyEncodings.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/configureEncodings.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/configureMaxBitrate.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/configureScaleResolutionDownBy.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/hasChangedRTCRtpSendParameters.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/index.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/resolveHasNeedToUpdateItemEncoding.d.ts +0 -0
- /package/dist/{src/setParametersToSender → setParametersToSender}/setParametersToSender.d.ts +0 -0
- /package/dist/{src/tools → tools}/__fixtures__/call.d.ts +0 -0
- /package/dist/{src/tools → tools}/__fixtures__/hasValidUri.d.ts +0 -0
- /package/dist/{src/tools → tools}/__fixtures__/permissions.d.ts +0 -0
- /package/dist/{src/tools → tools}/__fixtures__/processRequest.d.ts +0 -0
- /package/dist/{src/tools → tools}/__tests-utils__/parseObject.d.ts +0 -0
- /package/dist/{src/tools → tools}/__tests-utils__/resolveParseArray.d.ts +0 -0
- /package/dist/{src/tools → tools}/error/getLinkError.d.ts +0 -0
- /package/dist/{src/tools → tools}/error/getTypeFromError.d.ts +0 -0
- /package/dist/{src/tools → tools}/error/getValuesFromError.d.ts +0 -0
- /package/dist/{src/tools → tools}/error/index.d.ts +0 -0
- /package/dist/{src/tools → tools}/error/stringifyMessage.d.ts +0 -0
- /package/dist/{src/tools → tools}/generateSimulcastEncodings.d.ts +0 -0
- /package/dist/{src/tools → tools}/getExtraHeaders.d.ts +0 -0
- /package/dist/{src/tools → tools}/getUserAgent.d.ts +0 -0
- /package/dist/{src/tools → tools}/hasPurgatory.d.ts +0 -0
- /package/dist/{src/tools → tools}/prepareMediaStream.d.ts +0 -0
- /package/dist/{src/tools → tools}/resolveUpdateTransceiver.d.ts +0 -0
- /package/dist/{src/tools → tools}/setVideoTrackContentHints.d.ts +0 -0
- /package/dist/{src/tools → tools}/syncMediaState/index.d.ts +0 -0
- /package/dist/{src/tools → tools}/syncMediaState/resolveOnStartMainCam.d.ts +0 -0
- /package/dist/{src/tools → tools}/syncMediaState/resolveOnStartMic.d.ts +0 -0
- /package/dist/{src/tools → tools}/syncMediaState/resolveOnStopMainCam.d.ts +0 -0
- /package/dist/{src/tools → tools}/syncMediaState/resolveOnStopMic.d.ts +0 -0
- /package/dist/{src/types.d.ts → types.d.ts} +0 -0
- /package/dist/{src/utils → utils}/errors.d.ts +0 -0
- /package/dist/{src/utils → utils}/findSenderByStream.d.ts +0 -0
- /package/dist/{src/utils → utils}/findVideoSender.d.ts +0 -0
- /package/dist/{src/utils → utils}/findVideoTrack.d.ts +0 -0
- /package/dist/{src/utils → utils}/getCodecFromSender.d.ts +0 -0
- /package/dist/{src/utils → utils}/replaceForbiddenSymbolsWithUnderscore.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/balance.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/getMaxBitrateByWidth.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/getMaxBitrateByWidthAndCodec.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/hasAv1Codec.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/hasIncludesString.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/index.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/processSender.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/scaleBitrate.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/scaleBitrateByCodec.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/scaleResolutionAndBitrate.d.ts +0 -0
- /package/dist/{src/videoSendingBalancer → videoSendingBalancer}/setEncodingsToSender.d.ts +0 -0
|
@@ -95,7 +95,7 @@ export declare const uaConfigurationWithAuthorization: {
|
|
|
95
95
|
session_timers: boolean;
|
|
96
96
|
sockets: import('../../__fixtures__/WebSocketInterface.mock').default[];
|
|
97
97
|
user_agent: string;
|
|
98
|
-
|
|
98
|
+
sdpSemantics: string;
|
|
99
99
|
register_expires: number;
|
|
100
100
|
connection_recovery_max_interval: number;
|
|
101
101
|
connection_recovery_min_interval: number;
|
|
@@ -108,7 +108,7 @@ export declare const uaConfigurationWithAuthorizationPasswordChanged: {
|
|
|
108
108
|
session_timers: boolean;
|
|
109
109
|
sockets: import('../../__fixtures__/WebSocketInterface.mock').default[];
|
|
110
110
|
user_agent: string;
|
|
111
|
-
|
|
111
|
+
sdpSemantics: string;
|
|
112
112
|
register_expires: number;
|
|
113
113
|
connection_recovery_max_interval: number;
|
|
114
114
|
connection_recovery_min_interval: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as error from './error';
|
|
2
2
|
export { default as getExtraHeaders } from './getExtraHeaders';
|
|
3
3
|
export { default as getUserAgent } from './getUserAgent';
|
|
4
|
-
export {
|
|
5
|
-
export { default as
|
|
4
|
+
export { default as hasPurgatory, PURGATORY_CONFERENCE_NUMBER } from './hasPurgatory';
|
|
5
|
+
export { default as sendDtmfAccumulated } from './sendDtmfFAccumulated';
|
|
6
6
|
export { default as createSyncMediaState } from './syncMediaState';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
type TSendKey = (values: string) => Promise<void>;
|
|
2
|
-
declare const
|
|
2
|
+
declare const sendDtmfAccumulated: ({ accumulatedKeys, sendKey, canRunTask, }: {
|
|
3
3
|
accumulatedKeys: string;
|
|
4
4
|
sendKey: TSendKey;
|
|
5
5
|
canRunTask?: () => boolean;
|
|
6
6
|
}) => Promise<{
|
|
7
7
|
isSuccessful: boolean;
|
|
8
8
|
}>;
|
|
9
|
-
export default
|
|
9
|
+
export default sendDtmfAccumulated;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sip-connector",
|
|
3
|
-
"version": "14.0.1
|
|
3
|
+
"version": "14.1.0-alpha.1",
|
|
4
4
|
"description": "Module for connect to Vinteo server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webrtc",
|
|
@@ -22,24 +22,16 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"import": "./dist/index.js",
|
|
25
27
|
"require": "./dist/index.cjs",
|
|
26
|
-
"
|
|
28
|
+
"default": "./dist/index.js"
|
|
27
29
|
},
|
|
28
30
|
"./doMock": {
|
|
31
|
+
"types": "./dist/doMock.d.ts",
|
|
32
|
+
"import": "./dist/doMock.js",
|
|
29
33
|
"require": "./dist/doMock.cjs",
|
|
30
|
-
"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"main": "./dist/index.cjs",
|
|
34
|
-
"types": "dist/index.d.ts",
|
|
35
|
-
"typesVersions": {
|
|
36
|
-
"*": {
|
|
37
|
-
"dist/index.d.ts": [
|
|
38
|
-
"dist/index.d.ts"
|
|
39
|
-
],
|
|
40
|
-
"*": [
|
|
41
|
-
"dist/*"
|
|
42
|
-
]
|
|
34
|
+
"default": "./dist/doMock.js"
|
|
43
35
|
}
|
|
44
36
|
},
|
|
45
37
|
"files": [
|
|
@@ -56,10 +48,11 @@
|
|
|
56
48
|
"release": "standard-version && npm run release:publish",
|
|
57
49
|
"release:major": "standard-version --release-as major && npm run release:publish",
|
|
58
50
|
"release:pre": "standard-version --prerelease && npm run release:publish",
|
|
51
|
+
"release:alpha": "standard-version --prerelease alpha && npm run release:publish",
|
|
59
52
|
"release:publish": "git push --follow-tags origin master && npm publish --access=public",
|
|
60
53
|
"test": "jest",
|
|
61
54
|
"test:ci": "cross-env CI=true jest",
|
|
62
|
-
"test:coverage": "yarn test:ci --
|
|
55
|
+
"test:coverage": "yarn test:ci --no-cache --coverage",
|
|
63
56
|
"test:watch": "jest --watch"
|
|
64
57
|
},
|
|
65
58
|
"dependencies": {
|
|
@@ -67,35 +60,36 @@
|
|
|
67
60
|
"@krivega/jssip": "^5.1.2",
|
|
68
61
|
"debug": "^4.4.1",
|
|
69
62
|
"events-constructor": "^1.3.0",
|
|
70
|
-
"repeated-calls": "^2.3.
|
|
63
|
+
"repeated-calls": "^2.3.4",
|
|
71
64
|
"sequent-promises": "^2.0.1",
|
|
72
65
|
"stack-promises": "^2.0.3",
|
|
73
66
|
"ts-debounce": "^4.0.0",
|
|
74
|
-
"webrtc-mock": "^1.1.7"
|
|
67
|
+
"webrtc-mock": "^1.1.7",
|
|
68
|
+
"xstate": "^5.20.1"
|
|
75
69
|
},
|
|
76
70
|
"devDependencies": {
|
|
77
71
|
"@babel/preset-typescript": "^7.27.1",
|
|
78
72
|
"@commitlint/cli": "^19.8.1",
|
|
79
73
|
"@commitlint/config-conventional": "^19.8.1",
|
|
80
74
|
"@eslint/compat": "^1.3.1",
|
|
81
|
-
"@nabla/vite-plugin-eslint": "^2.0.
|
|
82
|
-
"@stylistic/eslint-plugin": "^5.
|
|
75
|
+
"@nabla/vite-plugin-eslint": "^2.0.6",
|
|
76
|
+
"@stylistic/eslint-plugin": "^5.2.2",
|
|
83
77
|
"@types/debug": "^4.1.12",
|
|
84
78
|
"@types/dom-mediacapture-transform": "^0.1.11",
|
|
85
79
|
"@types/jest": "^30.0.0",
|
|
86
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
87
|
-
"@typescript-eslint/parser": "^8.
|
|
88
|
-
"cross-env": "^
|
|
89
|
-
"eslint": "^9.
|
|
80
|
+
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
81
|
+
"@typescript-eslint/parser": "^8.38.0",
|
|
82
|
+
"cross-env": "^10.0.0",
|
|
83
|
+
"eslint": "^9.32.0",
|
|
90
84
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
91
85
|
"eslint-plugin-flowtype": "^8.0.3",
|
|
92
86
|
"eslint-plugin-import": "^2.32.0",
|
|
93
87
|
"eslint-plugin-jest": "^29.0.1",
|
|
94
|
-
"eslint-plugin-prettier": "^5.5.
|
|
95
|
-
"eslint-plugin-unicorn": "^
|
|
88
|
+
"eslint-plugin-prettier": "^5.5.3",
|
|
89
|
+
"eslint-plugin-unicorn": "^60.0.0",
|
|
96
90
|
"husky": "^9.1.7",
|
|
97
|
-
"jest": "^30.0.
|
|
98
|
-
"jest-environment-jsdom": "^30.0.
|
|
91
|
+
"jest": "^30.0.5",
|
|
92
|
+
"jest-environment-jsdom": "^30.0.5",
|
|
99
93
|
"jest-extended": "^6.0.0",
|
|
100
94
|
"jest-junit": "^16.0.0",
|
|
101
95
|
"lint-staged": "^16.1.2",
|
|
@@ -105,7 +99,7 @@
|
|
|
105
99
|
"ts-node": "^10.9.2",
|
|
106
100
|
"tsc-files": "^1.1.4",
|
|
107
101
|
"typescript": "^5.8.3",
|
|
108
|
-
"vite": "^7.0.
|
|
102
|
+
"vite": "^7.0.6",
|
|
109
103
|
"vite-plugin-dts": "^4.5.4",
|
|
110
104
|
"vite-tsconfig-paths": "^5.1.4"
|
|
111
105
|
},
|
|
@@ -114,12 +108,12 @@
|
|
|
114
108
|
"@krivega/jssip": "^5.1.2",
|
|
115
109
|
"debug": "^4.4.1",
|
|
116
110
|
"events-constructor": "^1.3.0",
|
|
117
|
-
"repeated-calls": "^2.
|
|
111
|
+
"repeated-calls": "^2.3.3",
|
|
118
112
|
"sequent-promises": "^2.0.1",
|
|
119
113
|
"stack-promises": "^2.0.3",
|
|
120
114
|
"ts-debounce": "^4.0.0",
|
|
121
|
-
"webrtc-mock": "^1.1.7"
|
|
115
|
+
"webrtc-mock": "^1.1.7",
|
|
116
|
+
"xstate": "^5.20.1"
|
|
122
117
|
},
|
|
123
|
-
"packageManager": "yarn@1.22.22"
|
|
124
|
-
"main:src": "src/index.ts"
|
|
118
|
+
"packageManager": "yarn@1.22.22"
|
|
125
119
|
}
|