@happyvertical/smrt-messages 0.56.0 → 0.56.2
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/chunks/{AccountCollection-CKFnMm09.js → AccountCollection-BF9GL7Bu.js} +2 -2
- package/dist/chunks/{AccountCollection-CKFnMm09.js.map → AccountCollection-BF9GL7Bu.js.map} +1 -1
- package/dist/chunks/{Email-BzC6YP5A.js → Email-Cbebvq3w.js} +3 -3
- package/dist/chunks/{Email-BzC6YP5A.js.map → Email-Cbebvq3w.js.map} +1 -1
- package/dist/chunks/{EmailFolder-qpm8IsRf.js → EmailFolder-osDQ4i7t.js} +2 -2
- package/dist/chunks/{EmailFolder-qpm8IsRf.js.map → EmailFolder-osDQ4i7t.js.map} +1 -1
- package/dist/chunks/{Message-gFKsYvmG.js → Message-BD94Hksc.js} +4 -4
- package/dist/chunks/{Message-gFKsYvmG.js.map → Message-BD94Hksc.js.map} +1 -1
- package/dist/chunks/{MessageCollection-Cz-_-Mrm.js → MessageCollection-irLi8oCx.js} +2 -2
- package/dist/chunks/{MessageCollection-Cz-_-Mrm.js.map → MessageCollection-irLi8oCx.js.map} +1 -1
- package/dist/chunks/__smrt-register__-DA_DaeyP.js +6 -0
- package/dist/chunks/__smrt-register__-DA_DaeyP.js.map +1 -0
- package/dist/index.js +9 -9
- package/dist/manifest.json +163 -11
- package/dist/smrt-knowledge.json +895 -3421
- package/package.json +15 -15
- package/dist/chunks/__smrt-register__-hyM0onbO.js +0 -6
- package/dist/chunks/__smrt-register__-hyM0onbO.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunks/rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import "./chunks/__smrt-register__-
|
|
2
|
+
import "./chunks/__smrt-register__-DA_DaeyP.js";
|
|
3
3
|
import { a as registerMessagingProvider, n as getMessagingProvider, o as ZulipSender, r as listMessagingProviders, s as TelegramSender, t as ensureBuiltinMessagingProvidersRegistered } from "./chunks/providers-4iLula-V.js";
|
|
4
|
-
import { r as Account, t as AccountCollection } from "./chunks/AccountCollection-
|
|
5
|
-
import { t as Message } from "./chunks/Message-
|
|
6
|
-
import { t as MessageCollection } from "./chunks/MessageCollection-
|
|
7
|
-
import { t as Email } from "./chunks/Email-
|
|
8
|
-
import { t as EmailFolder } from "./chunks/EmailFolder-
|
|
4
|
+
import { r as Account, t as AccountCollection } from "./chunks/AccountCollection-BF9GL7Bu.js";
|
|
5
|
+
import { t as Message } from "./chunks/Message-BD94Hksc.js";
|
|
6
|
+
import { t as MessageCollection } from "./chunks/MessageCollection-irLi8oCx.js";
|
|
7
|
+
import { t as Email } from "./chunks/Email-Cbebvq3w.js";
|
|
8
|
+
import { t as EmailFolder } from "./chunks/EmailFolder-osDQ4i7t.js";
|
|
9
9
|
import { t as SlackSender } from "./chunks/SlackSender-CjSvwY1K.js";
|
|
10
10
|
import { t as TweetSender } from "./chunks/TweetSender-CcLPNNi1.js";
|
|
11
11
|
import { SmrtCollection, SmrtObject, SmrtRecipe, crossPackageRef, field, foreignKey, importOptionalDependency, isUniqueViolationError, smrt } from "@happyvertical/smrt-core";
|
|
@@ -107,7 +107,7 @@ var Attachment = class extends SmrtObject {
|
|
|
107
107
|
*/
|
|
108
108
|
async getMessage() {
|
|
109
109
|
if (!this.messageId) return null;
|
|
110
|
-
const { MessageCollection } = await import("./chunks/MessageCollection-
|
|
110
|
+
const { MessageCollection } = await import("./chunks/MessageCollection-irLi8oCx.js").then((n) => n.n);
|
|
111
111
|
return await (await MessageCollection.create(this.options)).get({ id: this.messageId });
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
@@ -688,7 +688,7 @@ var EmailAccount = class extends Account {
|
|
|
688
688
|
for (const folderName of foldersToSync) try {
|
|
689
689
|
let folder = await folderCollection.getByPath(accountId, folderName);
|
|
690
690
|
if (!folder) {
|
|
691
|
-
const { EmailFolder } = await import("./chunks/EmailFolder-
|
|
691
|
+
const { EmailFolder } = await import("./chunks/EmailFolder-osDQ4i7t.js").then((n) => n.n);
|
|
692
692
|
folder = new EmailFolder({
|
|
693
693
|
...this.childOptions(),
|
|
694
694
|
accountId,
|
|
@@ -713,7 +713,7 @@ var EmailAccount = class extends Account {
|
|
|
713
713
|
result.messagesSkipped++;
|
|
714
714
|
continue;
|
|
715
715
|
}
|
|
716
|
-
const { Email } = await import("./chunks/Email-
|
|
716
|
+
const { Email } = await import("./chunks/Email-Cbebvq3w.js").then((n) => n.n);
|
|
717
717
|
let email = existingEmail;
|
|
718
718
|
if (!email) {
|
|
719
719
|
email = new Email({
|
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-messages",
|
|
5
|
-
"packageVersion": "0.56.
|
|
5
|
+
"packageVersion": "0.56.2",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-messages:AccountCollection": {
|
|
8
8
|
"name": "accountcollection",
|
|
@@ -121,7 +121,26 @@
|
|
|
121
121
|
"isPublic": true
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
|
-
"decoratorConfig": {
|
|
124
|
+
"decoratorConfig": {
|
|
125
|
+
"api": {
|
|
126
|
+
"include": [
|
|
127
|
+
"list",
|
|
128
|
+
"get"
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"mcp": {
|
|
132
|
+
"include": [
|
|
133
|
+
"list",
|
|
134
|
+
"get"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"cli": {
|
|
138
|
+
"include": [
|
|
139
|
+
"list",
|
|
140
|
+
"get"
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
},
|
|
125
144
|
"extends": "SmrtCollection",
|
|
126
145
|
"extendsTypeArg": "Account",
|
|
127
146
|
"exportName": "AccountCollection",
|
|
@@ -477,7 +496,22 @@
|
|
|
477
496
|
"isPublic": true
|
|
478
497
|
}
|
|
479
498
|
},
|
|
480
|
-
"decoratorConfig": {
|
|
499
|
+
"decoratorConfig": {
|
|
500
|
+
"api": {
|
|
501
|
+
"include": [
|
|
502
|
+
"list",
|
|
503
|
+
"get",
|
|
504
|
+
"create",
|
|
505
|
+
"delete"
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
"mcp": {
|
|
509
|
+
"include": [
|
|
510
|
+
"list",
|
|
511
|
+
"get"
|
|
512
|
+
]
|
|
513
|
+
}
|
|
514
|
+
},
|
|
481
515
|
"extends": "SmrtCollection",
|
|
482
516
|
"extendsTypeArg": "Attachment",
|
|
483
517
|
"exportName": "AttachmentCollection",
|
|
@@ -634,7 +668,17 @@
|
|
|
634
668
|
"isPublic": true
|
|
635
669
|
}
|
|
636
670
|
},
|
|
637
|
-
"decoratorConfig": {
|
|
671
|
+
"decoratorConfig": {
|
|
672
|
+
"api": {
|
|
673
|
+
"include": [
|
|
674
|
+
"list",
|
|
675
|
+
"get",
|
|
676
|
+
"create",
|
|
677
|
+
"update",
|
|
678
|
+
"delete"
|
|
679
|
+
]
|
|
680
|
+
}
|
|
681
|
+
},
|
|
638
682
|
"extends": "SmrtCollection",
|
|
639
683
|
"extendsTypeArg": "Blacklist",
|
|
640
684
|
"exportName": "BlacklistCollection",
|
|
@@ -930,7 +974,25 @@
|
|
|
930
974
|
}
|
|
931
975
|
},
|
|
932
976
|
"decoratorConfig": {
|
|
933
|
-
"tableName": "accounts"
|
|
977
|
+
"tableName": "accounts",
|
|
978
|
+
"api": {
|
|
979
|
+
"include": [
|
|
980
|
+
"list",
|
|
981
|
+
"get"
|
|
982
|
+
]
|
|
983
|
+
},
|
|
984
|
+
"mcp": {
|
|
985
|
+
"include": [
|
|
986
|
+
"list",
|
|
987
|
+
"get"
|
|
988
|
+
]
|
|
989
|
+
},
|
|
990
|
+
"cli": {
|
|
991
|
+
"include": [
|
|
992
|
+
"list",
|
|
993
|
+
"get"
|
|
994
|
+
]
|
|
995
|
+
}
|
|
934
996
|
},
|
|
935
997
|
"extends": "AccountCollection",
|
|
936
998
|
"exportName": "EmailAccountCollection",
|
|
@@ -1771,7 +1833,22 @@
|
|
|
1771
1833
|
}
|
|
1772
1834
|
},
|
|
1773
1835
|
"decoratorConfig": {
|
|
1774
|
-
"tableName": "messages"
|
|
1836
|
+
"tableName": "messages",
|
|
1837
|
+
"api": {
|
|
1838
|
+
"include": [
|
|
1839
|
+
"list",
|
|
1840
|
+
"get",
|
|
1841
|
+
"create",
|
|
1842
|
+
"update",
|
|
1843
|
+
"delete"
|
|
1844
|
+
]
|
|
1845
|
+
},
|
|
1846
|
+
"mcp": {
|
|
1847
|
+
"include": [
|
|
1848
|
+
"list",
|
|
1849
|
+
"get"
|
|
1850
|
+
]
|
|
1851
|
+
}
|
|
1775
1852
|
},
|
|
1776
1853
|
"extends": "MessageCollection",
|
|
1777
1854
|
"exportName": "EmailCollection",
|
|
@@ -2400,7 +2477,23 @@
|
|
|
2400
2477
|
"isPublic": true
|
|
2401
2478
|
}
|
|
2402
2479
|
},
|
|
2403
|
-
"decoratorConfig": {
|
|
2480
|
+
"decoratorConfig": {
|
|
2481
|
+
"api": {
|
|
2482
|
+
"include": [
|
|
2483
|
+
"list",
|
|
2484
|
+
"get",
|
|
2485
|
+
"create",
|
|
2486
|
+
"update",
|
|
2487
|
+
"delete"
|
|
2488
|
+
]
|
|
2489
|
+
},
|
|
2490
|
+
"mcp": {
|
|
2491
|
+
"include": [
|
|
2492
|
+
"list",
|
|
2493
|
+
"get"
|
|
2494
|
+
]
|
|
2495
|
+
}
|
|
2496
|
+
},
|
|
2404
2497
|
"extends": "SmrtCollection",
|
|
2405
2498
|
"extendsTypeArg": "EmailFolder",
|
|
2406
2499
|
"exportName": "EmailFolderCollection",
|
|
@@ -2772,7 +2865,20 @@
|
|
|
2772
2865
|
"isPublic": true
|
|
2773
2866
|
}
|
|
2774
2867
|
},
|
|
2775
|
-
"decoratorConfig": {
|
|
2868
|
+
"decoratorConfig": {
|
|
2869
|
+
"api": {
|
|
2870
|
+
"include": [
|
|
2871
|
+
"list",
|
|
2872
|
+
"get"
|
|
2873
|
+
]
|
|
2874
|
+
},
|
|
2875
|
+
"mcp": {
|
|
2876
|
+
"include": [
|
|
2877
|
+
"list",
|
|
2878
|
+
"get"
|
|
2879
|
+
]
|
|
2880
|
+
}
|
|
2881
|
+
},
|
|
2776
2882
|
"extends": "SmrtCollection",
|
|
2777
2883
|
"extendsTypeArg": "Message",
|
|
2778
2884
|
"exportName": "MessageCollection",
|
|
@@ -3145,7 +3251,25 @@
|
|
|
3145
3251
|
"fields": {},
|
|
3146
3252
|
"methods": {},
|
|
3147
3253
|
"decoratorConfig": {
|
|
3148
|
-
"tableName": "messaging_endpoints"
|
|
3254
|
+
"tableName": "messaging_endpoints",
|
|
3255
|
+
"api": {
|
|
3256
|
+
"include": [
|
|
3257
|
+
"list",
|
|
3258
|
+
"get"
|
|
3259
|
+
]
|
|
3260
|
+
},
|
|
3261
|
+
"mcp": {
|
|
3262
|
+
"include": [
|
|
3263
|
+
"list",
|
|
3264
|
+
"get"
|
|
3265
|
+
]
|
|
3266
|
+
},
|
|
3267
|
+
"cli": {
|
|
3268
|
+
"include": [
|
|
3269
|
+
"list",
|
|
3270
|
+
"get"
|
|
3271
|
+
]
|
|
3272
|
+
}
|
|
3149
3273
|
},
|
|
3150
3274
|
"extends": "SmrtCollection",
|
|
3151
3275
|
"extendsTypeArg": "MessagingEndpoint",
|
|
@@ -3280,7 +3404,25 @@
|
|
|
3280
3404
|
}
|
|
3281
3405
|
},
|
|
3282
3406
|
"decoratorConfig": {
|
|
3283
|
-
"tableName": "persona_message_routes"
|
|
3407
|
+
"tableName": "persona_message_routes",
|
|
3408
|
+
"api": {
|
|
3409
|
+
"include": [
|
|
3410
|
+
"list",
|
|
3411
|
+
"get"
|
|
3412
|
+
]
|
|
3413
|
+
},
|
|
3414
|
+
"mcp": {
|
|
3415
|
+
"include": [
|
|
3416
|
+
"list",
|
|
3417
|
+
"get"
|
|
3418
|
+
]
|
|
3419
|
+
},
|
|
3420
|
+
"cli": {
|
|
3421
|
+
"include": [
|
|
3422
|
+
"list",
|
|
3423
|
+
"get"
|
|
3424
|
+
]
|
|
3425
|
+
}
|
|
3284
3426
|
},
|
|
3285
3427
|
"extends": "SmrtCollection",
|
|
3286
3428
|
"extendsTypeArg": "PersonaMessageRoute",
|
|
@@ -3625,7 +3767,17 @@
|
|
|
3625
3767
|
"isPublic": true
|
|
3626
3768
|
}
|
|
3627
3769
|
},
|
|
3628
|
-
"decoratorConfig": {
|
|
3770
|
+
"decoratorConfig": {
|
|
3771
|
+
"api": {
|
|
3772
|
+
"include": [
|
|
3773
|
+
"list",
|
|
3774
|
+
"get",
|
|
3775
|
+
"create",
|
|
3776
|
+
"update",
|
|
3777
|
+
"delete"
|
|
3778
|
+
]
|
|
3779
|
+
}
|
|
3780
|
+
},
|
|
3629
3781
|
"extends": "SmrtCollection",
|
|
3630
3782
|
"extendsTypeArg": "Whitelist",
|
|
3631
3783
|
"exportName": "WhitelistCollection",
|