@majikah/majik-message 0.1.21 → 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.
- package/dist/core/types.d.ts +2 -0
- package/dist/majik-message.js +2 -1
- package/package.json +2 -2
package/dist/core/types.d.ts
CHANGED
|
@@ -135,6 +135,8 @@ export interface EncryptFileOptions {
|
|
|
135
135
|
chatMessageId?: string;
|
|
136
136
|
/** Foreign-key association with a thread message. */
|
|
137
137
|
threadMessageId?: string;
|
|
138
|
+
/** Foreign-key association with a thread. */
|
|
139
|
+
threadId?: string;
|
|
138
140
|
}
|
|
139
141
|
/**
|
|
140
142
|
* Returned by MajikMessage.encryptFile().
|
package/dist/majik-message.js
CHANGED
|
@@ -659,7 +659,7 @@ export class MajikMessage {
|
|
|
659
659
|
* ```
|
|
660
660
|
*/
|
|
661
661
|
async encryptFile(options) {
|
|
662
|
-
const { data, context, originalName, mimeType, recipients = [], conversationId, isTemporary = false, expiresAt, bypassSizeLimit = false, chatMessageId, threadMessageId, userId, } = options;
|
|
662
|
+
const { data, context, originalName, mimeType, recipients = [], conversationId, isTemporary = false, expiresAt, bypassSizeLimit = false, chatMessageId, threadMessageId, threadId, userId, } = options;
|
|
663
663
|
// ── 1. Resolve sender identity ──────────────────────────────────────────
|
|
664
664
|
// Builds MajikFileIdentity with both public + secret keys from keystore.
|
|
665
665
|
const identity = await this._resolveFileIdentity();
|
|
@@ -686,6 +686,7 @@ export class MajikMessage {
|
|
|
686
686
|
chatMessageId,
|
|
687
687
|
threadMessageId,
|
|
688
688
|
userId: finalUserID,
|
|
689
|
+
threadId: threadId,
|
|
689
690
|
});
|
|
690
691
|
// ── 4. Package the result ───────────────────────────────────────────────
|
|
691
692
|
return {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@majikah/majik-message",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Post-quantum end-to-end encryption with ML-KEM-768. Seed phrase–based accounts. Auto-expiring messages. Offline-ready. Exportable encrypted messages. Tamper-proof threads with blockchain-like integrity. Quantum-resistant messaging.",
|
|
5
|
-
"version": "0.1
|
|
5
|
+
"version": "0.2.1",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "Zelijah",
|
|
8
8
|
"main": "./dist/index.js",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@bokuweb/zstd-wasm": "^0.0.27",
|
|
83
83
|
"@majikah/majik-envelope": "^0.0.1",
|
|
84
84
|
"@majikah/majik-file": "^0.0.13",
|
|
85
|
-
"@majikah/majik-key": "^0.1.
|
|
85
|
+
"@majikah/majik-key": "^0.1.10",
|
|
86
86
|
"@noble/hashes": "^2.0.1",
|
|
87
87
|
"@noble/post-quantum": "^0.5.4",
|
|
88
88
|
"@scure/bip39": "^1.6.0",
|