@majikah/majik-message 0.1.4 → 0.1.5

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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  **Majik Message** is a secure messaging platform built on cryptographic identity. Your account *is* your encryption keys—no phone numbers, no passwords, just your 12-word seed phrase and complete privacy.
7
7
 
8
- ![npm](https://img.shields.io/npm/v/@majikah/majik-message) ![npm downloads](https://img.shields.io/npm/dm/@majikah/majik-message) ![npm bundle size](https://img.shields.io/bundlephobia/min/%40thezelijah%2Fmajik-message) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue)
8
+ ![npm](https://img.shields.io/npm/v/@majikah/majik-message) ![npm downloads](https://img.shields.io/npm/dm/@majikah/majik-message) ![npm bundle size](https://img.shields.io/bundlephobia/min/%40majikah%2Fmajik-message) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue)
9
9
 
10
10
 
11
11
 
@@ -534,7 +534,7 @@ All Majikah products share the same core principles: cryptographic identity, zer
534
534
  ### [Majik Key](https://majikah.solutions/sdk/majik-key)
535
535
  **Majik Key** is a seed phrase account library for creating, managing, and parsing mnemonic-based cryptographic accounts (Majik Keys). Generate deterministic key pairs from BIP39 seed phrases with simple, developer-friendly APIs.
536
536
 
537
- ![npm](https://img.shields.io/npm/v/@majikah/majik-key) ![npm downloads](https://img.shields.io/npm/dm/@majikah/majik-key) ![npm bundle size](https://img.shields.io/bundlephobia/min/%40thezelijah%2Fmajik-key) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue)
537
+ ![npm](https://img.shields.io/npm/v/@majikah/majik-key) ![npm downloads](https://img.shields.io/npm/dm/@majikah/majik-key) ![npm bundle size](https://img.shields.io/bundlephobia/min/%40majikah%2Fmajik-key) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue)
538
538
 
539
539
  [Read Docs](https://majikah.solutions/sdk/majik-key/docs)
540
540
  [Official Repository](https://github.com/Majikah/majik-key)
@@ -56,6 +56,7 @@ export declare class MajikMessageMail {
56
56
  get account(): MajikMessageAccountID;
57
57
  get sender(): MajikMessagePublicKey;
58
58
  get recipients(): readonly MajikMessagePublicKey[];
59
+ get participants(): readonly MajikMessagePublicKey[];
59
60
  get timestamp(): Date;
60
61
  get metadata(): Readonly<MailMetadata>;
61
62
  get hash(): string;
@@ -77,6 +77,9 @@ export class MajikMessageMail {
77
77
  get recipients() {
78
78
  return [...this._recipients];
79
79
  }
80
+ get participants() {
81
+ return [...this._recipients, this._sender];
82
+ }
80
83
  get timestamp() {
81
84
  return new Date(this._timestamp);
82
85
  }
@@ -49,6 +49,7 @@ export interface MajikMessageThreadSummary {
49
49
  unread_count: number;
50
50
  has_unread: boolean;
51
51
  starred: boolean;
52
+ subject?: string;
52
53
  }
53
54
  export interface MajikMessageThreadJSON {
54
55
  id: MajikMessageThreadID;
@@ -137,7 +138,7 @@ export declare class MajikMessageThread {
137
138
  missingApprovals: string[];
138
139
  duplicateApprovals: string[];
139
140
  };
140
- updateMetadata(metadata: Partial<ThreadMetadata>): void;
141
+ updateMetadata(metadata: Partial<ThreadMetadata>): this;
141
142
  toJSON(): MajikMessageThreadJSON;
142
143
  static fromJSON(json: MajikMessageThreadJSON | string): MajikMessageThread;
143
144
  isOwner(publicKey: string): boolean;
@@ -451,6 +451,7 @@ export class MajikMessageThread {
451
451
  ...metadata,
452
452
  lastActivity: new Date().toISOString(),
453
453
  };
454
+ return this;
454
455
  }
455
456
  catch (error) {
456
457
  if (error instanceof MajikThreadError) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@majikah/majik-message",
3
3
  "type": "module",
4
4
  "description": "Encrypt and decrypt messages on any website or platform. Secure chats with keypairs and seed-based accounts. Open source.",
5
- "version": "0.1.4",
5
+ "version": "0.1.5",
6
6
  "license": "Apache-2.0",
7
7
  "author": "Zelijah",
8
8
  "main": "./dist/index.js",