@happyvertical/smrt-messages 0.40.13 → 0.40.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.
package/README.md CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  } from '@happyvertical/smrt-messages';
22
22
 
23
23
  // Create an email account with encrypted credentials
24
- const accounts = new EmailAccountCollection(db);
24
+ const accounts = await EmailAccountCollection.create({ db });
25
25
  const account = await accounts.create({
26
26
  name: 'Support',
27
27
  providerType: 'smtp',
@@ -33,7 +33,7 @@ await account.setCredentials({
33
33
  });
34
34
 
35
35
  // Send an email through the send lifecycle
36
- const emails = new EmailCollection(db);
36
+ const emails = await EmailCollection.create({ db });
37
37
  const email = await emails.create({
38
38
  accountId: account.id,
39
39
  subject: 'Welcome',
@@ -49,7 +49,7 @@ if (!result.success) {
49
49
  }
50
50
 
51
51
  // Query messages across all channels via base collection
52
- const messages = new MessageCollection(db);
52
+ const messages = await MessageCollection.create({ db });
53
53
  const recent = await messages.list({ orderBy: 'createdAt DESC', limit: 20 });
54
54
  ```
55
55
 
@@ -153,3 +153,8 @@ Account credentials are stored via `credentialSecretId` pointing to smrt-secrets
153
153
  - `@happyvertical/smrt-types` -- shared type definitions
154
154
  - `@happyvertical/email` -- SMTP/IMAP email client
155
155
  - Peer: `@happyvertical/smrt-svelte` (optional)
156
+
157
+ ## Contributor guide
158
+
159
+ See [`AGENTS.md`](./AGENTS.md) for package architecture, invariants, validation,
160
+ and contributor guidance.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "timestamp": 1784369972430,
3
+ "timestamp": 1784492275171,
4
4
  "packageName": "@happyvertical/smrt-messages",
5
- "packageVersion": "0.40.13",
5
+ "packageVersion": "0.40.15",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-messages:AccountCollection": {
8
8
  "name": "accountcollection",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-07-18T10:19:37.779Z",
3
+ "generatedAt": "2026-07-19T20:18:00.738Z",
4
4
  "packageName": "@happyvertical/smrt-messages",
5
- "packageVersion": "0.40.13",
5
+ "packageVersion": "0.40.15",
6
6
  "sourceManifestPath": "dist/manifest.json",
7
7
  "agentDocPath": "AGENTS.md",
8
8
  "sourceHashes": {
9
- "manifest": "9124dc3f0a038d2cf302732f82e3e2496bb441e8c32f233b57432fd2725d8ba4",
10
- "packageJson": "69d6e70fe82fbc3b629c0c49f8a7dcbd00904be41ce7ec3983f8de01957254c2",
9
+ "manifest": "f007eae71218b0753571bec889d6aa1d932c456cf05375ea9e38a019f1f76fb8",
10
+ "packageJson": "36f4b2af726b65b8fee752ee57ac51572cd88c6a7a5d7283877ec5cd912857f8",
11
11
  "agents": "712dcc2f244d01db8b49d764b8c076e94cb9274fa4b458d7c902434a0473f127"
12
12
  },
13
13
  "exports": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-messages",
3
- "version": "0.40.13",
3
+ "version": "0.40.15",
4
4
  "description": "Unified multi-channel messaging with STI-based hierarchies",
5
5
  "type": "module",
6
6
  "smrtRawPrimitives": "strict",
@@ -62,12 +62,12 @@
62
62
  "@happyvertical/messages": "^0.80.2",
63
63
  "@happyvertical/sql": "^0.80.2",
64
64
  "@happyvertical/utils": "^0.80.2",
65
- "@happyvertical/smrt-core": "0.40.13",
66
- "@happyvertical/smrt-types": "0.40.13",
67
- "@happyvertical/smrt-secrets": "0.40.13",
68
- "@happyvertical/smrt-tenancy": "0.40.13",
69
- "@happyvertical/smrt-users": "0.40.13",
70
- "@happyvertical/smrt-ui": "0.40.13"
65
+ "@happyvertical/smrt-core": "0.40.15",
66
+ "@happyvertical/smrt-types": "0.40.15",
67
+ "@happyvertical/smrt-secrets": "0.40.15",
68
+ "@happyvertical/smrt-tenancy": "0.40.15",
69
+ "@happyvertical/smrt-ui": "0.40.15",
70
+ "@happyvertical/smrt-users": "0.40.15"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@happyvertical/encryption": "*",
@@ -90,7 +90,7 @@
90
90
  "typescript": "5.9.3",
91
91
  "vite": "8.1.4",
92
92
  "vitest": "4.1.10",
93
- "@happyvertical/smrt-vitest": "0.40.13"
93
+ "@happyvertical/smrt-vitest": "0.40.15"
94
94
  },
95
95
  "keywords": [
96
96
  "email",