@voicenter-team/opensips-js 1.0.124 → 1.0.125

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voicenter-team/opensips-js",
3
- "version": "1.0.124",
3
+ "version": "1.0.125",
4
4
  "description": "The JS package for opensips",
5
5
  "default": "src/index.ts",
6
6
  "jsdelivr": "dist/opensips-js.iife.js",
@@ -43,8 +43,8 @@
43
43
  "@typescript-eslint/eslint-plugin": "^5.53.0",
44
44
  "@typescript-eslint/parser": "^5.53.0",
45
45
  "@vitejs/plugin-vue": "^4.2.3",
46
- "@voicenter-team/eslint-config-ts": "^1.0.21",
47
46
  "@voicenter-team/aws-uploader": "^1.0.10",
47
+ "@voicenter-team/eslint-config-ts": "^1.0.21",
48
48
  "cross-env": "^7.0.3",
49
49
  "dotenv": "^16.0.3",
50
50
  "eslint": "^8.35.0",
@@ -59,12 +59,22 @@
59
59
  "vue": "3.2.25"
60
60
  },
61
61
  "dependencies": {
62
+ "@mediapipe/selfie_segmentation": "^0.1.1675465747",
63
+ "@tensorflow-models/body-segmentation": "^1.0.2",
64
+ "@tensorflow/tfjs": "^4.22.0",
65
+ "@tensorflow/tfjs-backend-wasm": "^4.22.0",
66
+ "@tensorflow/tfjs-backend-webgl": "^4.22.0",
67
+ "@tensorflow/tfjs-backend-webgpu": "^4.22.0",
68
+ "@tensorflow/tfjs-converter": "^4.22.0",
69
+ "@tensorflow/tfjs-core": "^4.22.0",
62
70
  "@types/mime": "^3.0.1",
63
71
  "generate-unique-id": "^2.0.1",
64
72
  "jssip": "3.10.0",
73
+ "konva": "^9.3.16",
65
74
  "loglevel": "^1.8.1",
66
75
  "mime": "^3.0.0",
67
76
  "p-iteration": "^1.1.8",
77
+ "scatter-gl": "^0.0.13",
68
78
  "sdp-transform": "2.14.1",
69
79
  "uuid": "^10.0.0"
70
80
  },
@@ -44,7 +44,12 @@ export type changeCallTimeListener = (event: { [key: string]: ITimeData }) => vo
44
44
  export type changeCallMetricsListener = (event: { [key: string]: any }) => void
45
45
  export type changeCallVolumeListener = (event: ChangeVolumeEventType) => void
46
46
  export type conferenceStartListener = () => void
47
+ export type conferenceEndListener = (sessionId) => void
47
48
  export type changeMainVideoStreamListener = (event: { name: string, event: MediaStream }) => void
49
+ export type startScreenShareListener = (event: MediaStream) => void
50
+ export type stopScreenShareListener = () => void
51
+ export type startBlurListener = () => void
52
+ export type stopBlurListener = () => void
48
53
  export type memberJoinListener = (event: object) => void
49
54
  export type memberHangupListener = (event: object) => void
50
55
  export type changeAudioStateListener = (state: boolean) => void
@@ -79,7 +84,11 @@ export interface OpenSIPSEventMap extends UAEventMap {
79
84
  newMSRPSession: MSRPSessionListener
80
85
  // JANUS
81
86
  conferenceStart: conferenceStartListener
82
- changeMainVideoStream: changeMainVideoStreamListener
87
+ conferenceEnd: conferenceEndListener
88
+ startScreenShare: startScreenShareListener
89
+ stopScreenShare: stopScreenShareListener
90
+ startBlur: startBlurListener
91
+ stopBlur: stopBlurListener
83
92
  memberJoin: memberJoinListener
84
93
  memberHangup: memberHangupListener
85
94
  changeAudioState: changeAudioStateListener
@@ -131,7 +131,11 @@ export type MSRPModuleName = typeof MODULES.MSRP
131
131
 
132
132
  export type Modules = AudioModuleName | VideoModuleName | MSRPModuleName
133
133
 
134
- export type IOpenSIPSConfiguration = Omit<UAConfiguration, 'sockets'>
134
+ type UAConfigurationExtended = UAConfiguration & {
135
+ overrideUserAgent: (userAgent: string) => string
136
+ }
137
+
138
+ export type IOpenSIPSConfiguration = Omit<UAConfigurationExtended, 'sockets'>
135
139
 
136
140
  export interface IOpenSIPSJSOptions {
137
141
  configuration: IOpenSIPSConfiguration