Add Activepieces integration for workflow automation

- Add Activepieces fork with SmoothSchedule custom piece
- Create integrations app with Activepieces service layer
- Add embed token endpoint for iframe integration
- Create Automations page with embedded workflow builder
- Add sidebar visibility fix for embed mode
- Add list inactive customers endpoint to Public API
- Include SmoothSchedule triggers: event created/updated/cancelled
- Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
poduck
2025-12-18 22:59:37 -05:00
parent 9848268d34
commit 3aa7199503
16292 changed files with 1284892 additions and 4708 deletions

View File

@@ -0,0 +1,16 @@
{
"Mailchain is a simple, secure, and decentralized communications protocol that enables blockchain-based email.": "Mailchain ist ein einfaches, sicheres und dezentralisiertes Kommunikationsprotokoll, das blockchain-basierte E-Mails ermöglicht.",
"The secret recovery phrase (25-word mnemonic phrase) to authenticate with the Mailchain Protocol. You can obtain this phrase when setting up your Mailchain account.": "Die geheime Wiederherstellungsphrase (25-Wort-mnemonische Phrase), die mit dem Mailchain-Protokoll authentifiziert werden soll. Sie können diese Phrase bei der Einrichtung Ihres Mailchain-Kontos erhalten.",
"Get Authenticated User": "Authentifizierten Benutzer holen",
"Send Email": "E-Mail senden",
"Get the authenticated user to the Mailchain Protocol": "Lade den authentifizierten Benutzer zum Mailchain-Protokoll",
"Send an email to blockchain or mailchain addresses": "Sende eine E-Mail an Blockchain oder Mailchain Adressen",
"Markdown": "Markdown",
"To": "An",
"Subject": "Betreff",
"Content": "Inhalt",
"**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain ": "**Erste Schritte mit Mailchain:**\n\nUm E-Mails mit dem Mailchain-Protokoll zu senden, musst du zuerst ein Konto bei [Mailchain](https://app.mailchain.com/). Sobald Ihr Konto eingerichtet ist, erhalten Sie eine Mailchain-Adresse. Sie können Ihre Brieftasche auch verbinden, um eine Blockchain Adresse mit Ihrem Mailchain Konto zu verknüpfen.\n\n**Empfänger:**\n\nBeim Senden einer E-Mail können Sie entweder eine Mailchain-Adresse oder eine Blockchain-Adresse als Empfänger verwenden. Bei Blockchain-Adressen können Sie unterstützte web3-Domain-Dienste nutzen, einschließlich ENS, Unstoppable Domains, Lens, Coinbase und viele andere.\n\n**Verwendung:**\n- **Mailchain Adresse:** 'yourname@mailchain. om'\n- **Blockchain-Adresse:** 'yourname.eth' (ENS), 'yourname.crypto' (Unstoppbare Domains), etc.\n\nUm deinen Posteingang zu verwalten und E-Mails zu senden, besuche [Mailchain's Web App](https://app.mailchain.com/).\n",
"The blockchain or mailchain addresses to send the email to": "Die Blockchain oder Mailchain-Adresse, an die die E-Mail gesendet werden soll",
"The subject of the email": "Der Betreff der E-Mail",
"The content of the email": "Der Inhalt der E-Mail"
}

View File

@@ -0,0 +1,16 @@
{
"Mailchain is a simple, secure, and decentralized communications protocol that enables blockchain-based email.": "Mailchain es un protocolo de comunicación simple, seguro y descentralizado que permite el correo electrónico basado en blockchain.",
"The secret recovery phrase (25-word mnemonic phrase) to authenticate with the Mailchain Protocol. You can obtain this phrase when setting up your Mailchain account.": "La frase secreta de recuperación (frase mnemónica de 25 palabras) para autenticarse con el Protocolo de Mailchain. Puede obtener esta frase al configurar su cuenta de Mailchain.",
"Get Authenticated User": "Obtener usuario autenticado",
"Send Email": "Enviar Email",
"Get the authenticated user to the Mailchain Protocol": "Conseguir al usuario autenticado en el Protocolo de Mailchain",
"Send an email to blockchain or mailchain addresses": "Enviar un correo electrónico a las direcciones de blockchain o de la cadena de correo",
"Markdown": "Markdown",
"To": "A",
"Subject": "Asunto",
"Content": "Contenido",
"**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain ": "**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain services, including ENS, Unstoppable Domains, Lens, Coinbase, and many more.\n\n**Example Usage:**\n- **Mailchain Address:** 'yourname@mailchain.com'\n- **Blockchain Address:** 'yourname.eth' (ENS), 'yourname.crypto' (Unstoppable Domains), etc.\n\nTo manage your inbox and send emails, visit [Mailchain's Web App](https://app.mailchain.com/).\n",
"The blockchain or mailchain addresses to send the email to": "Las direcciones de blockchain o de mailchain a las que enviar el correo electrónico",
"The subject of the email": "El asunto del correo electrónico",
"The content of the email": "El contenido del correo electrónico"
}

View File

@@ -0,0 +1,16 @@
{
"Mailchain is a simple, secure, and decentralized communications protocol that enables blockchain-based email.": "Mailchain est un protocole de communication simple, sécurisé et décentralisé qui permet l'email basé sur la blockchain.",
"The secret recovery phrase (25-word mnemonic phrase) to authenticate with the Mailchain Protocol. You can obtain this phrase when setting up your Mailchain account.": "La phrase de récupération secrète (expression mnémonique de 25 mots) pour s'authentifier avec le protocole Mailchain. Vous pouvez obtenir cette phrase lors de la configuration de votre compte Mailchain.",
"Get Authenticated User": "Obtenir un utilisateur authentifié",
"Send Email": "Envoyer un e-mail",
"Get the authenticated user to the Mailchain Protocol": "Obtenir l'utilisateur authentifié vers le protocole Mailchain",
"Send an email to blockchain or mailchain addresses": "Envoyer un email à une blockchain ou une mailchain",
"Markdown": "Markdown",
"To": "À",
"Subject": "Sujet",
"Content": "Contenus",
"**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain ": "**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain services, including ENS, Unstoppable Domains, Lens, Coinbase, and many more.\n\n**Example Usage:**\n- **Mailchain Address:** 'yourname@mailchain.com'\n- **Blockchain Address:** 'yourname.eth' (ENS), 'yourname.crypto' (Unstoppable Domains), etc.\n\nTo manage your inbox and send emails, visit [Mailchain's Web App](https://app.mailchain.com/).\n",
"The blockchain or mailchain addresses to send the email to": "Les adresses de la blockchain ou de la mailchain à envoyer à",
"The subject of the email": "Le sujet de l'e-mail",
"The content of the email": "Le contenu de l'e-mail"
}

View File

@@ -0,0 +1,16 @@
{
"Mailchain is a simple, secure, and decentralized communications protocol that enables blockchain-based email.": "Mailchainは、ブロックチェーンベースの電子メールを可能にするシンプルで安全で分散型の通信プロトコルです。",
"The secret recovery phrase (25-word mnemonic phrase) to authenticate with the Mailchain Protocol. You can obtain this phrase when setting up your Mailchain account.": "Mailchain Protocolで認証する秘密の復元フレーズ25語のニーモニックフレーズ。Mailchainアカウントを設定する際にこのフレーズを取得できます。",
"Get Authenticated User": "認証済みユーザーの取得",
"Send Email": "メール送信",
"Get the authenticated user to the Mailchain Protocol": "Mailchain Protocolに認証されたユーザーを取得します",
"Send an email to blockchain or mailchain addresses": "ブロックチェーンまたはメールチェーンアドレスにメールを送信する",
"Markdown": "Markdown",
"To": "終了日",
"Subject": "件名",
"Content": "コンテンツ",
"**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain ": "**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain services, including ENS, Unstoppable Domains, Lens, Coinbase, and many more.\n\n**Example Usage:**\n- **Mailchain Address:** 'yourname@mailchain.com'\n- **Blockchain Address:** 'yourname.eth' (ENS), 'yourname.crypto' (Unstoppable Domains), etc.\n\nTo manage your inbox and send emails, visit [Mailchain's Web App](https://app.mailchain.com/).\n",
"The blockchain or mailchain addresses to send the email to": "メールを送信するブロックチェーンまたはメールチェーンアドレス",
"The subject of the email": "Eメールの件名",
"The content of the email": "メールの内容"
}

View File

@@ -0,0 +1,16 @@
{
"Mailchain is a simple, secure, and decentralized communications protocol that enables blockchain-based email.": "Mailchain is een eenvoudig, veilig en gedecentraliseerd communicatieprotocol waarmee e-mails op blockchain-gebaseerde basis mogelijk zijn.",
"The secret recovery phrase (25-word mnemonic phrase) to authenticate with the Mailchain Protocol. You can obtain this phrase when setting up your Mailchain account.": "De geheime herstel zin (25-word mnemonic zin) om te verifiëren met het Mailchain Protocol. U kunt deze zin verkrijgen bij het instellen van uw Mailchain account.",
"Get Authenticated User": "Verkrijg authenticatie gebruiker",
"Send Email": "E-mail verzenden",
"Get the authenticated user to the Mailchain Protocol": "Krijg de geauthenticeerde gebruiker tot de Mailchain Protocol",
"Send an email to blockchain or mailchain addresses": "Stuur een e-mail naar blockchain of mailchain adressen",
"Markdown": "Markdown",
"To": "tot",
"Subject": "Onderwerp",
"Content": "Inhoud",
"**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain ": "**Aan de slag met Mailchain:**\n\nOm e-mails te verzenden via het Mailchain Protocol, moet u eerst een account aanmaken op [Mailchain](https://app.mailchain.com/). Zodra uw account is ingesteld, ontvangt u een mailchain adres. U kunt ook uw portemonnee verbinden om een blockchainadres te koppelen aan uw Mailchain account.\n\n**geadresseerden:**\n\nBij het verzenden van een e-mail kan je of een mailchain adres of een blockchain-adres gebruiken als ontvanger. Voor blockchainadressen, kunt u ondersteunde web3-domeindiensten gebruiken, waaronder ENS, Unstoppable Domains, Lens, Coinbase, en nog veel meer.\n\n**Voorbeeld Gebruik:**\n- **Mailchain Adres:** 'yourname@mailchain.\n- **Blockchain adres:** 'yourname.eth' (ENS), 'yourname.crypto' (niet te stoppen), etc.\n\nOm uw inbox te beheren en e-mails te versturen, bezoek [Mailchain's Web App](https://app.mailchain.com/).\n",
"The blockchain or mailchain addresses to send the email to": "De blockchain of mailchain adressen om de e-mail naar te sturen",
"The subject of the email": "Het onderwerp van de e-mail",
"The content of the email": "De inhoud van de e-mail"
}

View File

@@ -0,0 +1,16 @@
{
"Mailchain is a simple, secure, and decentralized communications protocol that enables blockchain-based email.": "Mailchain é um protocolo de comunicação simples, seguro e descentralizado que permite o e-mail baseado em blockchain.",
"The secret recovery phrase (25-word mnemonic phrase) to authenticate with the Mailchain Protocol. You can obtain this phrase when setting up your Mailchain account.": "A frase de recuperação secreta (frase mnemônica de 25 palavras) para autenticar com o Protocolo de Mailchain. Você pode obter essa frase ao configurar sua conta de Mailchain.",
"Get Authenticated User": "Obter usuário autenticado",
"Send Email": "Enviar e-mail",
"Get the authenticated user to the Mailchain Protocol": "Obter o usuário autenticado no Protocolo de Mailchain",
"Send an email to blockchain or mailchain addresses": "Enviar um e-mail à blockchain ou endereços da cadeia de correio",
"Markdown": "Markdown",
"To": "Para",
"Subject": "Cargo",
"Content": "Conteúdo",
"**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain ": "**Primeiros passos com Mailchain:**\n\nPara enviar e-mails usando o protocolo Mailchain, você precisa primeiro criar uma conta no [Mailchain](https://app.mailchain.com/). Assim que sua conta estiver configurada, você receberá um endereço de Mailchain. Você também pode conectar sua carteira para associar um endereço blockchain à sua conta de Mailchain.\n\n**destinatários:**\n\nQuando enviar um e-mail, você pode usar um endereço de correio eletrônico ou um endereço de blockchain como destinatário. Para endereços blockchain, você poderá alavancar serviços de domínio suportados pelo web3, incluindo ENS, Domínios Iparáveis, Lens, Coinbase e muito mais.\n\n**Exemplo de uso:**\n- **Mailchain Address:** 'yourname@mailchain. om'\n- **Endereço de Blockchain:** 'yourname.eth' (ENS), 'yourname.crypto' (Domínios Imparáveis), etc.\n\nPara gerenciar sua caixa de entrada e enviar e-mails, visite [Aplicativo Web do Mailchain](https://app.mailchain.com/).\n",
"The blockchain or mailchain addresses to send the email to": "A blockchain ou endereços da cadeia de correspondência para enviar o e-mail para",
"The subject of the email": "O assunto do e-mail",
"The content of the email": "O conteúdo do e-mail"
}

View File

@@ -0,0 +1,17 @@
{
"Mailchain": "Mailchain",
"Mailchain is a simple, secure, and decentralized communications protocol that enables blockchain-based email.": "Mailchain - это простой, безопасный и децентрализованный протокол коммуникаций, который позволяет использовать электронную почту в блокчейне.",
"The secret recovery phrase (25-word mnemonic phrase) to authenticate with the Mailchain Protocol. You can obtain this phrase when setting up your Mailchain account.": "Секретная фраза восстановления (mnemonic фраза) для аутентификации с помощью протокола Mailchain. Вы можете получить эту фразу при настройке вашего аккаунта Mailchain.",
"Get Authenticated User": "Получить пользователя с аутентификацией",
"Send Email": "Отправить письмо",
"Get the authenticated user to the Mailchain Protocol": "Получить пользователя с аутентификацией в Mailchain Protocol",
"Send an email to blockchain or mailchain addresses": "Отправить письмо блокчейну или почтовому ящику",
"Markdown": "Markdown",
"To": "Кому",
"Subject": "Тема",
"Content": "Содержание",
"**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain ": "**Начало работы с Mailchain:**\n\nДля отправки писем с помощью протокола Mailchain вам необходимо сначала создать учетную запись на [Mailchain](https://app.mailchain.com/). Как только ваш аккаунт будет создан, вы получите Mailchain адрес. Вы также можете подключить ваш кошелек, чтобы связать блокчейн адрес с вашим аккаунтом Mailchain.\n\n**Получатели:**\n\nПри отправке письма вы можете использовать либо адрес Mailchain или адрес блокчейна в качестве получателя. Для блокчейн адресов вы можете использовать поддерживаемые сервисы доменов Web3, включая ENS, Unstoppable Domains, Lens, Coinbase и многие другие.\n\n**Пример использования:**\n- **Mailchain Address:** 'yourname@mailchain. om'\n- **Blockchain Address:** 'yourname.eth' (ENS), 'yourname.crypto' (Неостановимые домены) и т.д.\n\nДля управления папкой \"Входящие\" и отправки электронных писем перейдите в [Веб-приложение Mailchain](https://app.mailchain.com/).\n",
"The blockchain or mailchain addresses to send the email to": "Адреса блокчейна или почтовой цепочки для отправки письма",
"The subject of the email": "Тема письма",
"The content of the email": "Содержание письма"
}

View File

@@ -0,0 +1,16 @@
{
"Mailchain is a simple, secure, and decentralized communications protocol that enables blockchain-based email.": "Mailchain is a simple, secure, and decentralized communications protocol that enables blockchain-based email.",
"The secret recovery phrase (25-word mnemonic phrase) to authenticate with the Mailchain Protocol. You can obtain this phrase when setting up your Mailchain account.": "The secret recovery phrase (25-word mnemonic phrase) to authenticate with the Mailchain Protocol. You can obtain this phrase when setting up your Mailchain account.",
"Get Authenticated User": "Get Authenticated User",
"Send Email": "Send Email",
"Get the authenticated user to the Mailchain Protocol": "Get the authenticated user to the Mailchain Protocol",
"Send an email to blockchain or mailchain addresses": "Send an email to blockchain or mailchain addresses",
"Markdown": "Markdown",
"To": "To",
"Subject": "Subject",
"Content": "Content",
"**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain ": "**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain services, including ENS, Unstoppable Domains, Lens, Coinbase, and many more.\n\n**Example Usage:**\n- **Mailchain Address:** 'yourname@mailchain.com'\n- **Blockchain Address:** 'yourname.eth' (ENS), 'yourname.crypto' (Unstoppable Domains), etc.\n\nTo manage your inbox and send emails, visit [Mailchain's Web App](https://app.mailchain.com/).\n",
"The blockchain or mailchain addresses to send the email to": "The blockchain or mailchain addresses to send the email to",
"The subject of the email": "The subject of the email",
"The content of the email": "The content of the email"
}

View File

@@ -0,0 +1,17 @@
{
"Mailchain": "Mailchain",
"Mailchain is a simple, secure, and decentralized communications protocol that enables blockchain-based email.": "Mailchain is a simple, secure, and decentralized communications protocol that enables blockchain-based email.",
"The secret recovery phrase (25-word mnemonic phrase) to authenticate with the Mailchain Protocol. You can obtain this phrase when setting up your Mailchain account.": "The secret recovery phrase (25-word mnemonic phrase) to authenticate with the Mailchain Protocol. You can obtain this phrase when setting up your Mailchain account.",
"Get Authenticated User": "Get Authenticated User",
"Send Email": "Send Email",
"Get the authenticated user to the Mailchain Protocol": "Get the authenticated user to the Mailchain Protocol",
"Send an email to blockchain or mailchain addresses": "Send an email to blockchain or mailchain addresses",
"Markdown": "Markdown",
"To": "To",
"Subject": "Subject",
"Content": "Content",
"**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain ": "**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain services, including ENS, Unstoppable Domains, Lens, Coinbase, and many more.\n\n**Example Usage:**\n- **Mailchain Address:** 'yourname@mailchain.com'\n- **Blockchain Address:** 'yourname.eth' (ENS), 'yourname.crypto' (Unstoppable Domains), etc.\n\nTo manage your inbox and send emails, visit [Mailchain's Web App](https://app.mailchain.com/).\n",
"The blockchain or mailchain addresses to send the email to": "The blockchain or mailchain addresses to send the email to",
"The subject of the email": "The subject of the email",
"The content of the email": "The content of the email"
}

View File

@@ -0,0 +1,16 @@
{
"Mailchain is a simple, secure, and decentralized communications protocol that enables blockchain-based email.": "Mailchain is a simple, secure, and decentralized communications protocol that enables blockchain-based email.",
"The secret recovery phrase (25-word mnemonic phrase) to authenticate with the Mailchain Protocol. You can obtain this phrase when setting up your Mailchain account.": "The secret recovery phrase (25-word mnemonic phrase) to authenticate with the Mailchain Protocol. You can obtain this phrase when setting up your Mailchain account.",
"Get Authenticated User": "Get Authenticated User",
"Send Email": "Send Email",
"Get the authenticated user to the Mailchain Protocol": "Get the authenticated user to the Mailchain Protocol",
"Send an email to blockchain or mailchain addresses": "Send an email to blockchain or mailchain addresses",
"Markdown": "Markdown",
"To": "To",
"Subject": "Subject",
"Content": "Content",
"**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain ": "**Getting Started with Mailchain:**\n\nTo send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.\n\n**Recipients:**\n\nWhen sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain services, including ENS, Unstoppable Domains, Lens, Coinbase, and many more.\n\n**Example Usage:**\n- **Mailchain Address:** 'yourname@mailchain.com'\n- **Blockchain Address:** 'yourname.eth' (ENS), 'yourname.crypto' (Unstoppable Domains), etc.\n\nTo manage your inbox and send emails, visit [Mailchain's Web App](https://app.mailchain.com/).\n",
"The blockchain or mailchain addresses to send the email to": "The blockchain or mailchain addresses to send the email to",
"The subject of the email": "The subject of the email",
"The content of the email": "The content of the email"
}

View File

@@ -0,0 +1,18 @@
import { createPiece } from '@activepieces/pieces-framework';
import { mailchainCommon } from './lib/common/common';
import { getAuthenticatedUser } from './lib/actions/get-authenticated-user';
import { sendEmail } from './lib/actions/send-email';
export const mailchain = createPiece({
displayName: 'Mailchain',
description:
'Mailchain is a simple, secure, and decentralized communications protocol that enables blockchain-based email.',
auth: mailchainCommon.auth,
minimumSupportedRelease: '0.20.0',
categories: [],
logoUrl:
'https://cdn.activepieces.com/pieces/mailchain.png',
authors: ['ahmad-swanblocks'],
actions: [getAuthenticatedUser, sendEmail],
triggers: [],
});

View File

@@ -0,0 +1,27 @@
import { createAction } from '@activepieces/pieces-framework';
// eslint-disable-next-line @nx/enforce-module-boundaries
import { Mailchain } from '@mailchain/sdk';
import { mailchainCommon } from '../common/common';
export const getAuthenticatedUser = createAction({
name: 'getAuthenticatedUser',
displayName: 'Get Authenticated User',
description: 'Get the authenticated user to the Mailchain Protocol',
auth: mailchainCommon.auth,
requireAuth: true,
props: {},
async run({ auth }) {
try {
const secretRecoveryPhrase = auth;
const mailchain =
Mailchain.fromSecretRecoveryPhrase(secretRecoveryPhrase.secret_text);
const user = await mailchain.user();
return user;
} catch (error) {
console.error('Error getting authenticated user (mailchain)', error);
throw error;
}
},
});

View File

@@ -0,0 +1,47 @@
import { createAction } from '@activepieces/pieces-framework';
// eslint-disable-next-line @nx/enforce-module-boundaries
import { Mailchain } from '@mailchain/sdk';
import { mailchainCommon } from '../common/common';
export const sendEmail = createAction({
name: 'sendEmail',
displayName: 'Send Email',
description: 'Send an email to blockchain or mailchain addresses',
auth: mailchainCommon.auth,
requireAuth: true,
props: {
markdown: mailchainCommon.markdown,
to: mailchainCommon.to,
subject: mailchainCommon.subject,
content: mailchainCommon.content,
},
async run({ auth, propsValue: { to, subject, content } }) {
try {
const secretRecoveryPhrase = auth;
const mailchain =
Mailchain.fromSecretRecoveryPhrase(secretRecoveryPhrase.secret_text);
const user = await mailchain.user();
console.log(`username: ${user.username}, address: ${user.address}`);
const { data, error } = await mailchain.sendMail({
from: user.address, // sender address
to: to as string[], // list of recipients (blockchain or mailchain addresses)
subject: subject,
content: {
text: content,
html: content,
},
});
if (error) {
console.error('Error sending email (mailchain)', error);
throw error;
}
return data;
} catch (error) {
console.error('Error sending email (mailchain)', error);
throw error;
}
},
});

View File

@@ -0,0 +1,43 @@
import { PieceAuth, Property } from '@activepieces/pieces-framework';
const message = `**Getting Started with Mailchain:**
To send emails using the Mailchain Protocol, you need to first create an account on [Mailchain](https://app.mailchain.com/). Once your account is set up, you will receive a Mailchain address. You can also connect your wallet to associate a blockchain address with your Mailchain account.
**Recipients:**
When sending an email, you can use either a Mailchain address or a blockchain address as the recipient. For blockchain addresses, you can leverage supported web3 domain services, including ENS, Unstoppable Domains, Lens, Coinbase, and many more.
**Example Usage:**
- **Mailchain Address:** 'yourname@mailchain.com'
- **Blockchain Address:** 'yourname.eth' (ENS), 'yourname.crypto' (Unstoppable Domains), etc.
To manage your inbox and send emails, visit [Mailchain's Web App](https://app.mailchain.com/).
`;
export const mailchainCommon = {
auth: PieceAuth.SecretText({
displayName: 'Secret Recovery Phrase',
description:
'The secret recovery phrase (25-word mnemonic phrase) to authenticate with the Mailchain Protocol. You can obtain this phrase when setting up your Mailchain account.',
required: true,
}),
markdown: Property.MarkDown({
value: message,
}),
to: Property.Array({
displayName: 'To',
description: 'The blockchain or mailchain addresses to send the email to',
required: true,
}),
subject: Property.ShortText({
displayName: 'Subject',
description: 'The subject of the email',
required: true,
}),
content: Property.LongText({
displayName: 'Content',
description: 'The content of the email',
required: true,
}),
};