@volorio/chat-e2ee 0.2.0 → 0.2.1

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 +16 -0
  2. package/README.md +36 -11
  3. package/package.json +23 -3
package/LICENSE ADDED
@@ -0,0 +1,16 @@
1
+ Volorio SDK Commercial License
2
+
3
+ Copyright (c) 2026 Volorio. All rights reserved.
4
+
5
+ Permission to install and use this SDK is granted only to an authorized Volorio
6
+ customer or evaluator, solely to integrate an application with Volorio services,
7
+ and subject to the Volorio Terms at https://volor.io/terms.
8
+
9
+ Except where the Volorio Terms expressly allow it, you may not redistribute,
10
+ sublicense, sell, publish, reverse engineer, or create a competing service from
11
+ this SDK or its source code. No ownership rights are transferred.
12
+
13
+ Third-party dependencies remain subject to their respective licenses.
14
+
15
+ THE SDK IS PROVIDED WITHOUT WARRANTIES EXCEPT TO THE EXTENT EXPRESSLY STATED IN
16
+ THE VOLORIO TERMS.
package/README.md CHANGED
@@ -1,18 +1,43 @@
1
1
  # @volorio/chat-e2ee
2
2
 
3
- Volorio Chat end-to-end encryption add-on contracts.
3
+ Volorio Signal Protocol compatible end-to-end encryption add-on contracts for chat.
4
4
 
5
- This package exposes Volorio-branded Signal Protocol compatible envelope helpers for customer clients. It does not send plaintext to Volorio services. A real Signal Protocol engine must be provided by the application; otherwise `createEnvelope` fails with `volorio_signal_protocol_engine_required`.
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @volorio/chat-e2ee@0.2.1
9
+ ```
10
+
11
+ ## Runtime and security
12
+
13
+ - Runtime: Browser application
14
+ - Source version: `0.2.1`
15
+ - Registry status: published as 0.2.1
16
+ - API base URL for server calls: `https://api.volor.io`
17
+ - License: proprietary commercial SDK; see the included `LICENSE` and [Volorio Terms](https://volor.io/terms).
18
+ - Never expose a Volorio API key in browser, React Native, or Flutter code. Create short-lived sessions in your backend.
19
+ - Capability note: Requested products must be granted to the API key and accepted by the session endpoint.
20
+
21
+ ## Public API
22
+
23
+ - `VolorioSignalProtocolEncryptInput`
24
+ - `VolorioSignalProtocolEngine`
25
+ - `MissingSignalProtocolEngineError`
26
+ - `VolorioChatE2eeClient`
27
+ - `createVolorioChatE2eeClient`
6
28
 
7
29
  ```ts
8
- import { createVolorioChatE2eeClient } from "@volorio/chat-e2ee";
9
-
10
- const e2ee = createVolorioChatE2eeClient(signalEngine);
11
- const encryption = await e2ee.createEnvelope({
12
- plaintext: new TextEncoder().encode("secret"),
13
- senderDeviceId: "device_a",
14
- recipientDeviceIds: ["device_b"],
15
- });
30
+ import { VolorioChatE2eeClient } from "@volorio/chat-e2ee";
16
31
  ```
17
32
 
18
- Send the returned `encryption` object through `@volorio/chat`. The chat service stores only encrypted payload metadata and marks moderation status as `encrypted_unscanned`.
33
+
34
+ ## Dependencies
35
+
36
+ - `@privacyresearch/libsignal-protocol-typescript` `^0.0.16`
37
+ - `@volorio/chat` `^0.2.0`
38
+
39
+ ## Documentation
40
+
41
+ - [Volorio npm integration guide](https://volor.io/docs/packages/npm-overview)
42
+ - [REST and SDK documentation](https://volor.io/docs)
43
+ - [Volorio Console](https://app.volor.io)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volorio/chat-e2ee",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "private": false,
5
5
  "description": "Volorio Signal Protocol compatible end-to-end encryption add-on contracts for chat.",
6
6
  "main": "dist/src/index.js",
@@ -11,7 +11,11 @@
11
11
  "default": "./dist/src/index.js"
12
12
  }
13
13
  },
14
- "files": ["dist/src", "README.md"],
14
+ "files": [
15
+ "dist/src",
16
+ "README.md",
17
+ "LICENSE"
18
+ ],
15
19
  "publishConfig": {
16
20
  "access": "public",
17
21
  "registry": "https://registry.npmjs.org/"
@@ -24,5 +28,21 @@
24
28
  "dependencies": {
25
29
  "@privacyresearch/libsignal-protocol-typescript": "^0.0.16",
26
30
  "@volorio/chat": "^0.2.0"
27
- }
31
+ },
32
+ "homepage": "https://volor.io/docs/packages/npm-overview",
33
+ "license": "SEE LICENSE IN LICENSE",
34
+ "keywords": [
35
+ "volorio",
36
+ "realtime",
37
+ "rtc",
38
+ "sdk",
39
+ "chat-e2ee",
40
+ "signal",
41
+ "protocol",
42
+ "compatible",
43
+ "end-to-end",
44
+ "encryption",
45
+ "add-on",
46
+ "contracts"
47
+ ]
28
48
  }