call-control-sdk 6.2.7 β†’ 6.2.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.
Files changed (3) hide show
  1. package/LICENSE-ACHALA +96 -0
  2. package/README.md +6 -35
  3. package/package.json +93 -90
package/LICENSE-ACHALA ADDED
@@ -0,0 +1,96 @@
1
+ REDIX SOFTWARE LICENSE AGREEMENT
2
+
3
+ Copyright (c) 2025 CTI SDK Team. All rights reserved.
4
+
5
+ IMPORTANT: READ CAREFULLY BEFORE USING THIS SOFTWARE
6
+
7
+ This software and associated documentation files (the "Software") are proprietary
8
+ and confidential. The Software is licensed, not sold, to you by CTI SDK Team
9
+ ("Licensor") under the terms of this Redix-based license agreement.
10
+
11
+ 1. GRANT OF LICENSE
12
+ Subject to the terms and conditions of this agreement, Licensor hereby grants
13
+ you a limited, non-exclusive, non-transferable license to use the Software
14
+ solely through authorized API keys and tenant IDs across different platforms
15
+ as specified in your subscription agreement.
16
+
17
+ 2. AUTHORIZED ACCESS REQUIREMENTS
18
+ You may use the Software ONLY when:
19
+ - You possess a valid, authorized API key issued by Licensor
20
+ - You have a valid tenant ID registered with Licensor
21
+ - Your subscription is active and in good standing
22
+ - You are using the Software on authorized platforms only
23
+
24
+ 3. PLATFORM RESTRICTIONS
25
+ The Software may be used on the following authorized platforms:
26
+ - Web applications (browser-based)
27
+ - Mobile applications (iOS/Android)
28
+ - Desktop applications (Windows/macOS/Linux)
29
+ - Server-side applications (Node.js/Python/Java)
30
+ - Cloud platforms (AWS/Azure/GCP) - with prior written consent
31
+
32
+ 4. PROHIBITED ACTIVITIES
33
+ You may NOT:
34
+ - Use the Software without valid API key and tenant ID
35
+ - Share, transfer, or distribute your API key or tenant ID
36
+ - Reverse engineer, decompile, or disassemble the Software
37
+ - Create derivative works or modifications
38
+ - Use the Software on unauthorized platforms
39
+ - Exceed the usage limits defined in your subscription
40
+ - Attempt to circumvent API rate limits or security measures
41
+
42
+ 5. API KEY AND TENANT ID MANAGEMENT
43
+ - API keys and tenant IDs are confidential and must be protected
44
+ - You are responsible for maintaining the security of your credentials
45
+ - Report any suspected compromise immediately to Licensor
46
+ - Licensor reserves the right to revoke access at any time
47
+ - Unauthorized use of credentials may result in immediate termination
48
+
49
+ 6. USAGE MONITORING AND COMPLIANCE
50
+ - Licensor may monitor usage patterns and API calls
51
+ - You must comply with all usage limits and restrictions
52
+ - Excessive or suspicious usage may trigger security reviews
53
+ - Non-compliance may result in immediate license termination
54
+
55
+ 7. PLATFORM-SPECIFIC TERMS
56
+ - Each platform may have additional terms and conditions
57
+ - Platform-specific features may require separate authorization
58
+ - Cross-platform data sharing must comply with privacy regulations
59
+ - Third-party integrations require prior written approval
60
+
61
+ 8. OWNERSHIP AND INTELLECTUAL PROPERTY
62
+ The Software and all intellectual property rights remain the exclusive
63
+ property of Licensor. This license does not grant you any ownership rights.
64
+
65
+ 9. CONFIDENTIALITY
66
+ The Software contains confidential and proprietary information. You agree to:
67
+ - Maintain strict confidentiality of all Software components
68
+ - Not disclose API keys, tenant IDs, or Software details to third parties
69
+ - Use reasonable care to protect against unauthorized access
70
+ - Report any security breaches immediately
71
+
72
+ 10. TERMINATION
73
+ This license is effective until terminated. Licensor may terminate this
74
+ license immediately if you breach any terms. Upon termination, you must:
75
+ - Cease all use of the Software immediately
76
+ - Destroy all copies of the Software
77
+ - Return or destroy all API keys and credentials
78
+ - Provide certification of compliance upon request
79
+
80
+ 11. NO WARRANTY
81
+ THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
82
+ IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY,
83
+ FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT.
84
+
85
+ 12. LIMITATION OF LIABILITY
86
+ IN NO EVENT SHALL LICENSOR BE LIABLE FOR ANY DAMAGES WHATSOEVER ARISING
87
+ OUT OF THE USE OR INABILITY TO USE THE SOFTWARE.
88
+
89
+ 13. GOVERNING LAW
90
+ This agreement shall be governed by and construed in accordance with the
91
+ laws of [Your Jurisdiction].
92
+
93
+ By using this Software, you acknowledge that you have read this agreement,
94
+ understand it, and agree to be bound by its terms and conditions.
95
+
96
+ REDIX LICENSE VERSION 1.0 - Effective Date: January 1, 2025
package/README.md CHANGED
@@ -5,13 +5,14 @@
5
5
  [![npm version](https://img.shields.io/npm/v/call-control-sdk.svg?color=blue&style=for-the-badge)](https://www.npmjs.com/package/call-control-sdk)
6
6
  [![npm downloads](https://img.shields.io/npm/dm/call-control-sdk.svg?color=green&style=for-the-badge)](https://www.npmjs.com/package/call-control-sdk)
7
7
  [![bundle size](https://img.shields.io/bundlephobia/minzip/call-control-sdk?color=orange&style=for-the-badge)](https://bundlephobia.com/package/call-control-sdk)
8
- [![license](https://img.shields.io/npm/l/call-control-sdk.svg?style=for-the-badge)](https://github.com/your-org/call-control-sdk/blob/main/LICENSE)
9
8
 
10
9
  **A powerful, lightweight SDK for real-time call management**
11
10
 
12
11
  </div>
13
12
  <div align="center">
14
- πŸ”‘ **AUTHORIZED ACCESS REQUIRED** - API Key & Tenant ID
13
+
14
+ **πŸ”‘AUTHORIZED ACCESS REQUIRED - API Key & Tenant ID**
15
+
15
16
  </div>
16
17
 
17
18
  ### πŸ”‘ **License Features**
@@ -22,15 +23,6 @@
22
23
  - **Usage Monitoring** - Real-time tracking and compliance monitoring
23
24
  - **Flexible Deployment** - Deploy on authorized platforms with proper credentials
24
25
 
25
- ### πŸ”’ **Access Requirements**
26
-
27
- To use this SDK, you must have:
28
-
29
- - βœ… **Valid API Key** - Issued by CTI SDK Team
30
- - βœ… **Active Tenant ID** - Registered and in good standing
31
- - βœ… **Active Subscription** - Current and compliant
32
- - βœ… **Authorized Platform** - Using on approved platforms only
33
-
34
26
  ### 🚫 **Prohibited Activities**
35
27
 
36
28
  - **No Unauthorized Access** - Cannot use without valid credentials
@@ -69,49 +61,28 @@ To use this SDK, you must have:
69
61
  - Agent status management
70
62
  - End call with disposition
71
63
 
72
- ### πŸ–±οΈ **Intuitive Interface**
73
-
74
- - Draggable control panel
75
- - Persistent position memory
76
- - Touch-friendly design
77
- - Responsive layout
78
-
79
64
  ### πŸ’Ύ **Smart State Management**
80
65
 
81
66
  - Real-time call timer
82
67
  - Persistent state storage
83
68
  - Singleton state pattern
84
69
  - Cross-component sync
85
-
86
- ### 🎨 **Modern Design**
87
-
88
- - Material-UI components
89
70
  - TypeScript support
90
- - Accessible UI patterns
91
- - Customizable styling
92
71
 
93
72
  ## πŸ“¦ Installation
94
73
 
95
- <div align="center">
96
-
97
74
  ```bash
98
75
  npm install call-control-sdk
99
76
  ```
100
77
 
101
- </div>
102
-
103
78
  ### πŸ”‘ Required Dependencies
104
79
 
105
80
  Make sure you have these peer dependencies installed:
106
81
 
107
- <div align="center">
108
-
109
82
  ```bash
110
83
  npm install react react-dom axios @mui/material @mui/icons-material @emotion/react @emotion/styled
111
84
  ```
112
85
 
113
- </div>
114
-
115
86
  ---
116
87
 
117
88
  ## πŸš€ Quick Start
@@ -303,7 +274,6 @@ Draggable control panel component for call management.
303
274
  ```tsx
304
275
  <CallControlPanel
305
276
  onDataChange={(data) => {
306
- // data: { mobileNumber, callReferenceId, agentLoginId }
307
277
  console.log("Call data updated:", data);
308
278
  }}
309
279
  />
@@ -318,6 +288,9 @@ Hook for agent logout functionality.
318
288
  ```tsx
319
289
  const { logout, isLoading, isSuccess, isError, error } = useLogout();
320
290
 
291
+ // Usage:
292
+ logout();
293
+
321
294
  // Returns:
322
295
  // - logout: () => void - Function to trigger logout
323
296
  // - isLoading: boolean - Loading state
@@ -423,8 +396,6 @@ interface EndCallPayload {
423
396
 
424
397
  <div align="center">
425
398
 
426
- **ACHALA LICENSE** Β© 2025
427
-
428
399
  ![license](https://img.shields.io/badge/License-Achala-blue?style=for-the-badge)
429
400
  ![license](https://img.shields.io/badge/License-Proprietary-red?style=for-the-badge)
430
401
 
package/package.json CHANGED
@@ -1,90 +1,93 @@
1
- {
2
- "name": "call-control-sdk",
3
- "description": "Call Control SDK for Web RTC",
4
- "version": "6.2.7",
5
- "author": "CTI SDK Team",
6
- "license": "MIT",
7
- "main": "./dist/index.js",
8
- "module": "./dist/index.mjs",
9
- "types": "./dist/index.d.ts",
10
- "exports": {
11
- ".": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/index.mjs",
14
- "require": "./dist/index.js"
15
- }
16
- },
17
- "files": [
18
- "dist"
19
- ],
20
- "keywords": [
21
- "webRTC",
22
- "call-control",
23
- "webRTC-sdk",
24
- "javascript",
25
- "call-control-sdk",
26
- "call-control-sdk-for-webRTC",
27
- "softphone",
28
- "softphone-sdk",
29
- "softphone-sdk-for-webRTC",
30
- "softphone-sdk-for-web",
31
- "call-control-sdk-for-web",
32
- "call-control-sdk-for-webRTC"
33
- ],
34
- "scripts": {
35
- "build": "tsup call-control-sdk/index.ts --format esm,cjs --dts --sourcemap --minify --clean --tsconfig tsconfig.build.json",
36
- "lint": "eslint .",
37
- "format": "prettier --write .",
38
- "prepublishOnly": "npm run build"
39
- },
40
- "dependencies": {
41
- "@emotion/react": ">=11.0.0",
42
- "@emotion/styled": ">=11.0.0",
43
- "@mui/icons-material": ">=5.0.0",
44
- "@mui/material": ">=5.0.0",
45
- "axios": ">=1.0.0"
46
- },
47
- "peerDependencies": {
48
- "@emotion/react": ">=11.0.0",
49
- "@emotion/styled": ">=11.0.0",
50
- "@mui/icons-material": ">=5.0.0",
51
- "@mui/material": ">=5.0.0",
52
- "axios": ">=1.0.0",
53
- "react": ">=16.0.0",
54
- "react-dom": ">=16.0.0"
55
- },
56
- "peerDependenciesMeta": {
57
- "@emotion/react": {
58
- "optional": true
59
- },
60
- "@emotion/styled": {
61
- "optional": true
62
- },
63
- "@mui/icons-material": {
64
- "optional": true
65
- },
66
- "@mui/material": {
67
- "optional": true
68
- },
69
- "axios": {
70
- "optional": true
71
- },
72
- "react": {
73
- "optional": false
74
- },
75
- "react-dom": {
76
- "optional": false
77
- }
78
- },
79
- "devDependencies": {
80
- "@types/node": "^22.8.1",
81
- "@types/react": "^18.0.0",
82
- "@types/react-dom": "^18.0.0",
83
- "eslint": "^8.0.0",
84
- "prettier": "^3.0.0",
85
- "react": "^19.1.1",
86
- "react-dom": "^19.1.1",
87
- "tsup": "^8.5.0",
88
- "typescript": "^5.0.0"
89
- }
90
- }
1
+ {
2
+ "name": "call-control-sdk",
3
+ "description": "Call Control SDK for Web RTC",
4
+ "version": "6.2.8",
5
+ "author": "CTI SDK Team",
6
+ "license": "MIT",
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.mjs",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.mjs",
14
+ "require": "./dist/index.js"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "README.md",
20
+ "LICENSE",
21
+ "LICENSE-ACHALA"
22
+ ],
23
+ "keywords": [
24
+ "webRTC",
25
+ "call-control",
26
+ "webRTC-sdk",
27
+ "javascript",
28
+ "call-control-sdk",
29
+ "call-control-sdk-for-webRTC",
30
+ "softphone",
31
+ "softphone-sdk",
32
+ "softphone-sdk-for-webRTC",
33
+ "softphone-sdk-for-web",
34
+ "call-control-sdk-for-web",
35
+ "call-control-sdk-for-webRTC"
36
+ ],
37
+ "scripts": {
38
+ "build": "tsup call-control-sdk/index.ts --format esm,cjs --dts --sourcemap --minify --clean --tsconfig tsconfig.build.json",
39
+ "lint": "eslint .",
40
+ "format": "prettier --write .",
41
+ "prepublishOnly": "npm run build"
42
+ },
43
+ "dependencies": {
44
+ "@emotion/react": ">=11.0.0",
45
+ "@emotion/styled": ">=11.0.0",
46
+ "@mui/icons-material": ">=5.0.0",
47
+ "@mui/material": ">=5.0.0",
48
+ "axios": ">=1.0.0"
49
+ },
50
+ "peerDependencies": {
51
+ "@emotion/react": ">=11.0.0",
52
+ "@emotion/styled": ">=11.0.0",
53
+ "@mui/icons-material": ">=5.0.0",
54
+ "@mui/material": ">=5.0.0",
55
+ "axios": ">=1.0.0",
56
+ "react": ">=16.0.0",
57
+ "react-dom": ">=16.0.0"
58
+ },
59
+ "peerDependenciesMeta": {
60
+ "@emotion/react": {
61
+ "optional": true
62
+ },
63
+ "@emotion/styled": {
64
+ "optional": true
65
+ },
66
+ "@mui/icons-material": {
67
+ "optional": true
68
+ },
69
+ "@mui/material": {
70
+ "optional": true
71
+ },
72
+ "axios": {
73
+ "optional": true
74
+ },
75
+ "react": {
76
+ "optional": false
77
+ },
78
+ "react-dom": {
79
+ "optional": false
80
+ }
81
+ },
82
+ "devDependencies": {
83
+ "@types/node": "^22.8.1",
84
+ "@types/react": "^18.0.0",
85
+ "@types/react-dom": "^18.0.0",
86
+ "eslint": "^8.0.0",
87
+ "prettier": "^3.0.0",
88
+ "react": "^19.1.1",
89
+ "react-dom": "^19.1.1",
90
+ "tsup": "^8.5.0",
91
+ "typescript": "^5.0.0"
92
+ }
93
+ }