@voicenter-team/opensips-js 1.0.97 → 1.0.98

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,18 +1,23 @@
1
1
  {
2
2
  "name": "@voicenter-team/opensips-js",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "description": "The JS package for opensips",
5
5
  "default": "src/index.ts",
6
- "jsdelivr": "dist/opensips-js.umd.js",
6
+ "jsdelivr": "dist/opensips-js.iife.js",
7
7
  "main": "dist/opensips-js.cjs.js",
8
8
  "module": "dist/opensips-js.es.js",
9
- "unpkg": "dist/opensips-js.umd.js",
9
+ "unpkg": "dist/opensips-js.iife.js",
10
10
  "types": "dist/index.d.ts",
11
11
  "scripts": {
12
12
  "dev": "vite",
13
+ "postpublish": "yarn upload-cdn",
14
+ "upload-cdn": "yarn build && node scripts/upload-cdn.js",
13
15
  "build": "cross-env TARGET=lib vite build",
14
- "build-demo": "cross-env TARGET=demo vite build",
16
+ "demo-build": "cross-env TARGET=demo vite build",
17
+ "docs-dev": "cd docs && yarn && yarn run dev",
15
18
  "docs-build": "cd docs && yarn && yarn run build",
19
+ "docs-publish": "yarn docs-genereate && node scripts/upload-doc.js",
20
+ "docs-genereate": "yarn build && yarn demo-build && cd docs && yarn && yarn run generate && cd ..",
16
21
  "test": "echo \"Error: no test specified\" && exit 1",
17
22
  "ts-check": "tsc --noEmit",
18
23
  "lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts --fix --ignore-path .gitignore"
@@ -39,6 +44,7 @@
39
44
  "@typescript-eslint/parser": "^5.53.0",
40
45
  "@vitejs/plugin-vue": "^4.2.3",
41
46
  "@voicenter-team/eslint-config-ts": "^1.0.21",
47
+ "@voicenter-team/aws-uploader": "^1.0.10",
42
48
  "cross-env": "^7.0.3",
43
49
  "dotenv": "^16.0.3",
44
50
  "eslint": "^8.35.0",
@@ -53,12 +59,21 @@
53
59
  "vue": "3.2.25"
54
60
  },
55
61
  "dependencies": {
62
+ "@mediapipe/selfie_segmentation": "^0.1.1675465747",
63
+ "@tensorflow-models/body-segmentation": "^1.0.2",
64
+ "@tensorflow/tfjs-backend-wasm": "^4.22.0",
65
+ "@tensorflow/tfjs-backend-webgl": "^4.22.0",
66
+ "@tensorflow/tfjs-backend-webgpu": "^4.22.0",
67
+ "@tensorflow/tfjs-converter": "^4.22.0",
68
+ "@tensorflow/tfjs-core": "^4.22.0",
56
69
  "@types/mime": "^3.0.1",
57
70
  "generate-unique-id": "^2.0.1",
58
71
  "jssip": "3.10.0",
72
+ "konva": "^9.3.16",
59
73
  "loglevel": "^1.8.1",
60
74
  "mime": "^3.0.0",
61
75
  "p-iteration": "^1.1.8",
76
+ "scatter-gl": "^0.0.13",
62
77
  "sdp-transform": "2.14.1",
63
78
  "uuid": "^10.0.0"
64
79
  },
@@ -45,6 +45,10 @@ export type changeCallMetricsListener = (event: { [key: string]: any }) => void
45
45
  export type changeCallVolumeListener = (event: ChangeVolumeEventType) => void
46
46
  export type conferenceStartListener = () => void
47
47
  export type changeMainVideoStreamListener = (event: { name: string, event: MediaStream }) => void
48
+ export type startScreenShareListener = (event: MediaStream) => void
49
+ export type stopScreenShareListener = () => void
50
+ export type startBlurListener = () => void
51
+ export type stopBlurListener = () => void
48
52
  export type memberJoinListener = (event: object) => void
49
53
  export type memberHangupListener = (event: object) => void
50
54
  export type changeAudioStateListener = (state: boolean) => void
@@ -79,7 +83,10 @@ export interface OpenSIPSEventMap extends UAEventMap {
79
83
  newMSRPSession: MSRPSessionListener
80
84
  // JANUS
81
85
  conferenceStart: conferenceStartListener
82
- changeMainVideoStream: changeMainVideoStreamListener
86
+ startScreenShare: startScreenShareListener
87
+ stopScreenShare: stopScreenShareListener
88
+ startBlur: startBlurListener
89
+ stopBlur: stopBlurListener
83
90
  memberJoin: memberJoinListener
84
91
  memberHangup: memberHangupListener
85
92
  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