call-control-sdk 6.2.7 β 6.2.9
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/LICENSE-ACHALA +92 -0
- package/README.md +7 -42
- package/package.json +93 -90
package/LICENSE-ACHALA
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
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 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
|
+
By using this Software, you acknowledge that you have read this agreement,
|
|
90
|
+
understand it, and agree to be bound by its terms and conditions.
|
|
91
|
+
|
|
92
|
+
ACHALA LICENSE VERSION 1.0 - Effective Date: October 1, 2025
|
package/README.md
CHANGED
|
@@ -5,16 +5,13 @@
|
|
|
5
5
|
[](https://www.npmjs.com/package/call-control-sdk)
|
|
6
6
|
[](https://www.npmjs.com/package/call-control-sdk)
|
|
7
7
|
[](https://bundlephobia.com/package/call-control-sdk)
|
|
8
|
-
[](https://github.com/your-org/call-control-sdk/blob/main/LICENSE)
|
|
9
8
|
|
|
10
9
|
**A powerful, lightweight SDK for real-time call management**
|
|
10
|
+
**πAUTHORIZED ACCESS REQUIRED - API Key & Tenant IDπ**
|
|
11
11
|
|
|
12
|
-
</div>
|
|
13
|
-
<div align="center">
|
|
14
|
-
π **AUTHORIZED ACCESS REQUIRED** - API Key & Tenant ID
|
|
15
12
|
</div>
|
|
16
13
|
|
|
17
|
-
###
|
|
14
|
+
### β **License Features**
|
|
18
15
|
|
|
19
16
|
- **API Key Authentication** - Secure access through authorized API keys
|
|
20
17
|
- **Tenant ID Management** - Multi-tenant support with isolated access
|
|
@@ -22,15 +19,6 @@
|
|
|
22
19
|
- **Usage Monitoring** - Real-time tracking and compliance monitoring
|
|
23
20
|
- **Flexible Deployment** - Deploy on authorized platforms with proper credentials
|
|
24
21
|
|
|
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
22
|
### π« **Prohibited Activities**
|
|
35
23
|
|
|
36
24
|
- **No Unauthorized Access** - Cannot use without valid credentials
|
|
@@ -39,8 +27,6 @@ To use this SDK, you must have:
|
|
|
39
27
|
- **No Platform Violations** - Must use only on authorized platforms
|
|
40
28
|
- **No Usage Abuse** - Cannot exceed subscription limits
|
|
41
29
|
|
|
42
|
-
## **Unauthorized access or misuse may result in immediate termination and legal action.**
|
|
43
|
-
|
|
44
30
|
## π Table of Contents
|
|
45
31
|
|
|
46
32
|
- [β¨ Key Features](#-key-features)
|
|
@@ -69,49 +55,28 @@ To use this SDK, you must have:
|
|
|
69
55
|
- Agent status management
|
|
70
56
|
- End call with disposition
|
|
71
57
|
|
|
72
|
-
### π±οΈ **Intuitive Interface**
|
|
73
|
-
|
|
74
|
-
- Draggable control panel
|
|
75
|
-
- Persistent position memory
|
|
76
|
-
- Touch-friendly design
|
|
77
|
-
- Responsive layout
|
|
78
|
-
|
|
79
58
|
### πΎ **Smart State Management**
|
|
80
59
|
|
|
81
60
|
- Real-time call timer
|
|
82
61
|
- Persistent state storage
|
|
83
62
|
- Singleton state pattern
|
|
84
63
|
- Cross-component sync
|
|
85
|
-
|
|
86
|
-
### π¨ **Modern Design**
|
|
87
|
-
|
|
88
|
-
- Material-UI components
|
|
89
64
|
- TypeScript support
|
|
90
|
-
- Accessible UI patterns
|
|
91
|
-
- Customizable styling
|
|
92
65
|
|
|
93
66
|
## π¦ Installation
|
|
94
67
|
|
|
95
|
-
<div align="center">
|
|
96
|
-
|
|
97
68
|
```bash
|
|
98
69
|
npm install call-control-sdk
|
|
99
70
|
```
|
|
100
71
|
|
|
101
|
-
</div>
|
|
102
|
-
|
|
103
72
|
### π Required Dependencies
|
|
104
73
|
|
|
105
74
|
Make sure you have these peer dependencies installed:
|
|
106
75
|
|
|
107
|
-
<div align="center">
|
|
108
|
-
|
|
109
76
|
```bash
|
|
110
77
|
npm install react react-dom axios @mui/material @mui/icons-material @emotion/react @emotion/styled
|
|
111
78
|
```
|
|
112
79
|
|
|
113
|
-
</div>
|
|
114
|
-
|
|
115
80
|
---
|
|
116
81
|
|
|
117
82
|
## π Quick Start
|
|
@@ -303,7 +268,6 @@ Draggable control panel component for call management.
|
|
|
303
268
|
```tsx
|
|
304
269
|
<CallControlPanel
|
|
305
270
|
onDataChange={(data) => {
|
|
306
|
-
// data: { mobileNumber, callReferenceId, agentLoginId }
|
|
307
271
|
console.log("Call data updated:", data);
|
|
308
272
|
}}
|
|
309
273
|
/>
|
|
@@ -318,6 +282,9 @@ Hook for agent logout functionality.
|
|
|
318
282
|
```tsx
|
|
319
283
|
const { logout, isLoading, isSuccess, isError, error } = useLogout();
|
|
320
284
|
|
|
285
|
+
// Usage:
|
|
286
|
+
logout();
|
|
287
|
+
|
|
321
288
|
// Returns:
|
|
322
289
|
// - logout: () => void - Function to trigger logout
|
|
323
290
|
// - isLoading: boolean - Loading state
|
|
@@ -423,9 +390,7 @@ interface EndCallPayload {
|
|
|
423
390
|
|
|
424
391
|
<div align="center">
|
|
425
392
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-

|
|
429
|
-

|
|
393
|
+
[](LICENSE-ACHALA)
|
|
394
|
+
[](LICENSE)
|
|
430
395
|
|
|
431
396
|
</div>
|
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.
|
|
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
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"call-control
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"softphone
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"@
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"@
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"@emotion/
|
|
61
|
-
"optional": true
|
|
62
|
-
},
|
|
63
|
-
"@
|
|
64
|
-
"optional": true
|
|
65
|
-
},
|
|
66
|
-
"@mui/material": {
|
|
67
|
-
"optional": true
|
|
68
|
-
},
|
|
69
|
-
"
|
|
70
|
-
"optional": true
|
|
71
|
-
},
|
|
72
|
-
"
|
|
73
|
-
"optional":
|
|
74
|
-
},
|
|
75
|
-
"react
|
|
76
|
-
"optional": false
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"react": "^
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "call-control-sdk",
|
|
3
|
+
"description": "Call Control SDK for Web RTC",
|
|
4
|
+
"version": "6.2.9",
|
|
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
|
+
}
|