@majikah/majik-message 0.2.14 → 0.2.15

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.
@@ -8,7 +8,7 @@ import { MajikMessageChat } from "./core/database/chat/majik-message-chat";
8
8
  import { MajikMessageIdentity } from "./core/database/system/identity";
9
9
  import { MajikKey } from "@majikah/majik-key";
10
10
  import { MajikFile, MajikFileJSON } from "@majikah/majik-file";
11
- import { EnvelopeInfo, MajikSignature, SealInfo, SealVerificationResult, type MajikSignatureJSON, type MajikSignerPublicKeys, type VerificationResult } from "@majikah/majik-signature";
11
+ import { EnvelopeInfo, ExpectedSigner, MajikSignature, SealInfo, SealVerificationResult, type MajikSignatureJSON, type MajikSignerPublicKeys, type VerificationResult } from "@majikah/majik-signature";
12
12
  type MajikMessageEvents = "message" | "envelope" | "untrusted" | "error" | "new-account" | "new-contact" | "removed-account" | "removed-contact" | "active-account-change";
13
13
  interface MajikMessageStatic<T extends MajikMessage> {
14
14
  new (config: MajikMessageConfig, id?: string): T;
@@ -595,6 +595,7 @@ export declare class MajikMessage {
595
595
  timestamp?: string;
596
596
  mimeType?: string;
597
597
  accountId?: string;
598
+ expectedSigners?: ExpectedSigner[];
598
599
  }): Promise<{
599
600
  blob: Blob;
600
601
  signature: MajikSignature;
@@ -1416,6 +1416,7 @@ export class MajikMessage {
1416
1416
  contentType: options?.contentType,
1417
1417
  timestamp: options?.timestamp,
1418
1418
  mimeType: options?.mimeType,
1419
+ expectedSigners: options?.expectedSigners,
1419
1420
  });
1420
1421
  }
1421
1422
  catch (err) {
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.2.14",
5
+ "version": "0.2.15",
6
6
  "license": "Apache-2.0",
7
7
  "author": "Zelijah",
8
8
  "main": "./dist/index.js",