@happyvertical/smrt-messages 0.40.14 → 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 +8 -3
- package/dist/manifest.json +2 -2
- package/dist/smrt-knowledge.json +4 -4
- package/package.json +8 -8
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 =
|
|
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 =
|
|
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 =
|
|
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.
|
package/dist/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"timestamp":
|
|
3
|
+
"timestamp": 1784492275171,
|
|
4
4
|
"packageName": "@happyvertical/smrt-messages",
|
|
5
|
-
"packageVersion": "0.40.
|
|
5
|
+
"packageVersion": "0.40.15",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-messages:AccountCollection": {
|
|
8
8
|
"name": "accountcollection",
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-07-
|
|
3
|
+
"generatedAt": "2026-07-19T20:18:00.738Z",
|
|
4
4
|
"packageName": "@happyvertical/smrt-messages",
|
|
5
|
-
"packageVersion": "0.40.
|
|
5
|
+
"packageVersion": "0.40.15",
|
|
6
6
|
"sourceManifestPath": "dist/manifest.json",
|
|
7
7
|
"agentDocPath": "AGENTS.md",
|
|
8
8
|
"sourceHashes": {
|
|
9
|
-
"manifest": "
|
|
10
|
-
"packageJson": "
|
|
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.
|
|
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-
|
|
66
|
-
"@happyvertical/smrt-
|
|
67
|
-
"@happyvertical/smrt-secrets": "0.40.
|
|
68
|
-
"@happyvertical/smrt-tenancy": "0.40.
|
|
69
|
-
"@happyvertical/smrt-ui": "0.40.
|
|
70
|
-
"@happyvertical/smrt-users": "0.40.
|
|
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.
|
|
93
|
+
"@happyvertical/smrt-vitest": "0.40.15"
|
|
94
94
|
},
|
|
95
95
|
"keywords": [
|
|
96
96
|
"email",
|