@zi2/relay-sdk 1.0.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,22 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0 (2026-03-25)
4
+
5
+ ### Initial Release
6
+
7
+ - Core SDK with `createRelay()` factory
8
+ - Database adapter pattern (PrismaAdapter, MemoryAdapter, custom interface)
9
+ - E2E encryption (X25519 + AES-256-GCM)
10
+ - WebSocket relay handler with auth, heartbeat, rate limiting
11
+ - Message queue with send/ack/delivery receipt
12
+ - Provider abstraction with FallbackProvider
13
+ - Fastify plugin with full route set
14
+ - Client subpath export for Android relay app
15
+ - 10-locale i18n (en, fr, es, de, ja, ar, zh, pt, ko, it)
16
+ - PCI DSS v4 compliance (Req 3.4.1, 3.5.1, 4.2.1, 6.2.4, 8.3.4, 10)
17
+ - SOC 2 compliance (CC6.1, CC7.2)
18
+ - Auto-redacting logger
19
+ - Audit trail adapter
20
+ - IP-based auth rate limiter
21
+ - Health service with message expiry and degradation detection
22
+ - White-label Android build support
package/LICENSE ADDED
@@ -0,0 +1,64 @@
1
+ ZI² Relay SDK — Proprietary Software License
2
+
3
+ Copyright (c) 2025-2026 Zenith Intelligence Technologies / ZI2 Systems.
4
+ All rights reserved.
5
+
6
+ This software and associated documentation files (the "Software") are the
7
+ proprietary property of Zenith Intelligence Technologies ("Licensor").
8
+
9
+ GRANT OF LICENSE
10
+
11
+ Subject to the terms of a valid subscription or license agreement between
12
+ you ("Licensee") and the Licensor, you are granted a non-exclusive,
13
+ non-transferable, revocable license to:
14
+
15
+ 1. Install and use the Software in your applications.
16
+ 2. Deploy the Software in production environments.
17
+ 3. Create derivative integrations using the Software's public API.
18
+
19
+ RESTRICTIONS
20
+
21
+ You may NOT:
22
+
23
+ 1. Redistribute, sublicense, sell, or resell the Software or any
24
+ derivative works to third parties without prior written consent.
25
+ 2. Reverse engineer, decompile, or disassemble the Software beyond
26
+ what is permitted by applicable law.
27
+ 3. Remove or alter any proprietary notices, labels, or marks.
28
+ 4. Use the Software to build a competing product or service.
29
+ 5. Share API credentials, encryption keys, or authentication tokens
30
+ obtained through the Software with unauthorized parties.
31
+
32
+ SECURITY & COMPLIANCE
33
+
34
+ The Software includes security features designed for PCI DSS v4 and SOC 2
35
+ compliance. The Licensee is responsible for:
36
+
37
+ 1. Properly configuring encryption keys and audit logging.
38
+ 2. Implementing access controls and authentication for API endpoints.
39
+ 3. Maintaining TLS/SSL certificates for production deployments.
40
+ 4. Retaining audit logs for the required compliance period.
41
+
42
+ The Licensor provides the tools for compliance but does not guarantee
43
+ compliance of the Licensee's deployment.
44
+
45
+ WARRANTY DISCLAIMER
46
+
47
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
51
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
52
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
53
+ DEALINGS IN THE SOFTWARE.
54
+
55
+ TERMINATION
56
+
57
+ This license terminates automatically if you breach any of its terms. Upon
58
+ termination, you must destroy all copies of the Software in your possession.
59
+
60
+ CONTACT
61
+
62
+ Zenith Intelligence Technologies
63
+ Email: dev@zisquare.app
64
+ Web: https://zisquare.app