@happyvertical/smrt-messages 0.57.1 → 0.57.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/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__-BwI39rTN.js";
2
+ import "./chunks/__smrt-register__-CbenrerM.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-DUxzUSEF.js";
5
- import { t as Message } from "./chunks/Message-BfI-Ji0L.js";
6
- import { t as MessageCollection } from "./chunks/MessageCollection-DVQW56sM.js";
7
- import { t as Email } from "./chunks/Email-DQT5Yk7s.js";
8
- import { t as EmailFolder } from "./chunks/EmailFolder-CnPdWv1H.js";
4
+ import { r as Account, t as AccountCollection } from "./chunks/AccountCollection-DbXDsGJu.js";
5
+ import { t as Message } from "./chunks/Message-CWFVs4dV.js";
6
+ import { t as MessageCollection } from "./chunks/MessageCollection-DNVc7d6a.js";
7
+ import { t as Email } from "./chunks/Email-DYjyuZUk.js";
8
+ import { t as EmailFolder } from "./chunks/EmailFolder-B7kuiqAN.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-DVQW56sM.js").then((n) => n.n);
110
+ const { MessageCollection } = await import("./chunks/MessageCollection-DNVc7d6a.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-CnPdWv1H.js").then((n) => n.n);
691
+ const { EmailFolder } = await import("./chunks/EmailFolder-B7kuiqAN.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-DQT5Yk7s.js").then((n) => n.n);
716
+ const { Email } = await import("./chunks/Email-DYjyuZUk.js").then((n) => n.n);
717
717
  let email = existingEmail;
718
718
  if (!email) {
719
719
  email = new Email({
@@ -1713,7 +1713,8 @@ SlackMessage = __decorateClass$4([smrt({
1713
1713
  "create"
1714
1714
  ] },
1715
1715
  mcp: { include: ["list", "get"] },
1716
- cli: { skipApiCheck: true }
1716
+ cli: { skipApiCheck: true },
1717
+ widenParentExposure: { api: ["create"] }
1717
1718
  })], SlackMessage);
1718
1719
  //#endregion
1719
1720
  //#region src/models/TelegramAccount.ts
@@ -1834,7 +1835,8 @@ Tweet = __decorateClass$2([smrt({
1834
1835
  "create"
1835
1836
  ] },
1836
1837
  mcp: { include: ["list", "get"] },
1837
- cli: { skipApiCheck: true }
1838
+ cli: { skipApiCheck: true },
1839
+ widenParentExposure: { api: ["create"] }
1838
1840
  })], Tweet);
1839
1841
  //#endregion
1840
1842
  //#region src/models/TwitterAccount.ts