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,26 @@
{
"ElevenLabs": "ElevenLabs",
"AI Voice Generator & Text to Speech": "AI Voice Generator & Text to Speech",
"\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n": "\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n",
"Text to Speech": "Text to Speech",
"Custom API Call": "Custom API Call",
"Convert text to speech using Elevenlabs": "Convert text to speech using Elevenlabs",
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
"Voice": "Voice",
"Text": "Text",
"Method": "Method",
"Headers": "Headers",
"Query Parameters": "Query Parameters",
"Body": "Body",
"No Error on Failure": "No Error on Failure",
"Timeout (in seconds)": "Timeout (in seconds)",
"Select the voice for the text to speech": "Select the voice for the text to speech",
"The text to convert to speech": "The text to convert to speech",
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
"GET": "GET",
"POST": "POST",
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "DELETE",
"HEAD": "HEAD"
}

View File

@@ -0,0 +1,34 @@
{
"AI Voice Generator & Text to Speech": "AI Voice Generator & Text to Speech",
"Region": "Region",
"API Key": "API-Schlüssel",
"Use according URL in Custom API Call pieces": "Verwende entsprechend URL in benutzerdefinierten API-Aufruf-Stücken",
"default - https://api.elevenlabs.io": "Standard - https://api.elevenlabs.io",
"US - https://api.us.elevenlabs.io": "US - https://api.us.elevenlabs.io",
"EU - https://api.eu.residency.elevenlabs.io": "EU - https://api.eu.residency.elevenlabs.io",
"\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n": "\nFolgen Sie diesen Anweisungen, um Ihren API-Schlüssel zu erhalten:\n1. Besuchen Sie Ihr Elevenlabs-Dashboard.\n2. Klicken Sie auf Ihr Konto in der linken unteren Ecke.\n3. Drücke Profil + API-Schlüssel.\n4. Kopiere den API-Schlüssel.\n",
"Text to Speech": "Text-zu-Sprache",
"Custom API Call": "Eigener API-Aufruf",
"Convert text to speech using Elevenlabs": "Text in Sprache mit Elevenlabs konvertieren",
"\nCheck [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\nfor the list of available endpoints.\n": "\nÜberprüfe [Elevenlabs API Referenz](https://elevenlabs.io/docs/api-reference/introduction)\nauf die Liste der verfügbaren Endpunkte.\n",
"Model": "Modell",
"Voice": "Stimme",
"Text": "Text",
"Method": "Methode",
"Headers": "Kopfzeilen",
"Query Parameters": "Abfrageparameter",
"Body": "Körper",
"Response is Binary ?": "Antwort ist binär?",
"No Error on Failure": "Kein Fehler bei Fehler",
"Timeout (in seconds)": "Timeout (in Sekunden)",
"Select the voice for the text to speech": "Wählen Sie die Stimme für den Text zur Sprache",
"The text to convert to speech": "Der zu konvertierende Text in Sprache",
"Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
"Enable for files like PDFs, images, etc..": "Aktivieren für Dateien wie PDFs, Bilder, etc..",
"GET": "ERHALTEN",
"POST": "POST",
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "LÖSCHEN",
"HEAD": "HEAD"
}

View File

@@ -0,0 +1,34 @@
{
"AI Voice Generator & Text to Speech": "Generador de voz y texto a voz AI",
"Region": "Región",
"API Key": "Clave API",
"Use according URL in Custom API Call pieces": "Usar la URL correspondiente en las piezas de llamadas API personalizadas",
"default - https://api.elevenlabs.io": "por defecto - https://api.elevenlabs.io",
"US - https://api.us.elevenlabs.io": "EEUU - https://api.us.elevenlabs.io",
"EU - https://api.eu.residency.elevenlabs.io": "UE - https://api.eu.residency.elevenlabs.io",
"\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n": "\nSigue estas instrucciones para obtener tu clave API:\n1. Visita tu panel de control.\n2. Una vez allí, haz clic en tu cuenta en la esquina inferior izquierda.\n3. Presiona Perfil + Clave API.\n4. Copia la Clave API.\n",
"Text to Speech": "Texto a voz",
"Custom API Call": "Llamada API personalizada",
"Convert text to speech using Elevenlabs": "Convierte texto a voz utilizando laboratorios",
"\nCheck [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\nfor the list of available endpoints.\n": "\nCompruebe [Referencia API del laboratorio](https://elevenlabs.io/docs/api-reference/introduction)\npara ver la lista de puntos finales disponibles.\n",
"Model": "Modelo",
"Voice": "Voz",
"Text": "Texto",
"Method": "Método",
"Headers": "Encabezados",
"Query Parameters": "Parámetros de consulta",
"Body": "Cuerpo",
"Response is Binary ?": "¿Respuesta es binaria?",
"No Error on Failure": "No hay ningún error en fallo",
"Timeout (in seconds)": "Tiempo de espera (en segundos)",
"Select the voice for the text to speech": "Seleccione la voz del texto a voz",
"The text to convert to speech": "El texto a convertir en voz",
"Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
"Enable for files like PDFs, images, etc..": "Activar para archivos como PDFs, imágenes, etc.",
"GET": "RECOGER",
"POST": "POST",
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "BORRAR",
"HEAD": "LIMPIO"
}

View File

@@ -0,0 +1,34 @@
{
"AI Voice Generator & Text to Speech": "Générateur de voix AI & Texte à voix vocale",
"Region": "Région",
"API Key": "Clé API",
"Use according URL in Custom API Call pieces": "Utiliser l'URL dans les pièces d'appel d'API personnalisée",
"default - https://api.elevenlabs.io": "par défaut - https://api.elevenlabs.io",
"US - https://api.us.elevenlabs.io": "US - https://api.us.elevenlabs.io",
"EU - https://api.eu.residency.elevenlabs.io": "UE - https://api.eu.residency.elevenlabs.io",
"\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n": "\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n",
"Text to Speech": "Discours vocaux",
"Custom API Call": "Appel API personnalisé",
"Convert text to speech using Elevenlabs": "Convertir le texte en voix en utilisant Elevenlabs",
"\nCheck [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\nfor the list of available endpoints.\n": "\nVérifiez [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\npour la liste des points de terminaison disponibles.\n",
"Model": "Modélisation",
"Voice": "Voix",
"Text": "Texte du texte",
"Method": "Méthode",
"Headers": "En-têtes",
"Query Parameters": "Paramètres de requête",
"Body": "Corps",
"Response is Binary ?": "La réponse est Binaire ?",
"No Error on Failure": "Aucune erreur en cas d'échec",
"Timeout (in seconds)": "Délai d'attente (en secondes)",
"Select the voice for the text to speech": "Sélectionnez la voix pour le texte à prononcer",
"The text to convert to speech": "Le texte à convertir en voix",
"Authorization headers are injected automatically from your connection.": "Les en-têtes d'autorisation sont injectés automatiquement à partir de votre connexion.",
"Enable for files like PDFs, images, etc..": "Activer pour les fichiers comme les PDFs, les images, etc.",
"GET": "OBTENIR",
"POST": "POSTER",
"PATCH": "PATCH",
"PUT": "EFFACER",
"DELETE": "SUPPRIMER",
"HEAD": "TÊTE"
}

View File

@@ -0,0 +1,26 @@
{
"ElevenLabs": "ElevenLabs",
"AI Voice Generator & Text to Speech": "AI Voice Generator & Text to Speech",
"\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n": "\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n",
"Text to Speech": "Text to Speech",
"Custom API Call": "Custom API Call",
"Convert text to speech using Elevenlabs": "Convert text to speech using Elevenlabs",
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
"Voice": "Voice",
"Text": "Text",
"Method": "Method",
"Headers": "Headers",
"Query Parameters": "Query Parameters",
"Body": "Body",
"No Error on Failure": "No Error on Failure",
"Timeout (in seconds)": "Timeout (in seconds)",
"Select the voice for the text to speech": "Select the voice for the text to speech",
"The text to convert to speech": "The text to convert to speech",
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
"GET": "GET",
"POST": "POST",
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "DELETE",
"HEAD": "HEAD"
}

View File

@@ -0,0 +1,26 @@
{
"ElevenLabs": "ElevenLabs",
"AI Voice Generator & Text to Speech": "AI Voice Generator & Text to Speech",
"\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n": "\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n",
"Text to Speech": "Text to Speech",
"Custom API Call": "Custom API Call",
"Convert text to speech using Elevenlabs": "Convert text to speech using Elevenlabs",
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
"Voice": "Voice",
"Text": "Text",
"Method": "Method",
"Headers": "Headers",
"Query Parameters": "Query Parameters",
"Body": "Body",
"No Error on Failure": "No Error on Failure",
"Timeout (in seconds)": "Timeout (in seconds)",
"Select the voice for the text to speech": "Select the voice for the text to speech",
"The text to convert to speech": "The text to convert to speech",
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
"GET": "GET",
"POST": "POST",
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "DELETE",
"HEAD": "HEAD"
}

View File

@@ -0,0 +1,34 @@
{
"AI Voice Generator & Text to Speech": "AI音声ジェネレーターとスピーチテキスト",
"Region": "地域",
"API Key": "API キー",
"Use according URL in Custom API Call pieces": "カスタムAPIコールピースでURLに従って使用",
"default - https://api.elevenlabs.io": "デフォルト - https://api.elevenlabs.io",
"US - https://api.us.elevenlabs.io": "米国 - https://api.us.elevenlabs.io",
"EU - https://api.eu.residency.elevenlabs.io": "EU - https://api.eu.residency.elevenlabs.io",
"\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n": "\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n",
"Text to Speech": "テキスト読み上げ",
"Custom API Call": "カスタムAPI通話",
"Convert text to speech using Elevenlabs": "Elevenlabsを使用してテキストを音声に変換",
"\nCheck [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\nfor the list of available endpoints.\n": "\n利用可能なエンドポイントの一覧については、[ElevenlabsのAPI参照](https://elevenlabs.io/docs/api-reference/introduction)\nを確認してください。\n",
"Model": "モデル",
"Voice": "音声",
"Text": "テキスト",
"Method": "方法",
"Headers": "ヘッダー",
"Query Parameters": "クエリパラメータ",
"Body": "本文",
"Response is Binary ?": "応答はバイナリですか?",
"No Error on Failure": "失敗時にエラーはありません",
"Timeout (in seconds)": "タイムアウト(秒)",
"Select the voice for the text to speech": "テキストの音声を選択してください",
"The text to convert to speech": "音声に変換するテキスト",
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
"Enable for files like PDFs, images, etc..": "PDF、画像などのファイルを有効にします。",
"GET": "取得",
"POST": "POST",
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "削除",
"HEAD": "頭"
}

View File

@@ -0,0 +1,34 @@
{
"AI Voice Generator & Text to Speech": "AI spraakgenerator & tekst naar spraak",
"Region": "Regio",
"API Key": "API Sleutel",
"Use according URL in Custom API Call pieces": "Gebruik de URL in Aangepaste API Call stukken",
"default - https://api.elevenlabs.io": "standaard - https://api.elevenlabs.io",
"US - https://api.us.elevenlabs.io": "US - https://api.us.elevenlabs.io",
"EU - https://api.eu.residency.elevenlabs.io": "EU - https://api.eu.residency.elevenlabs.io",
"\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n": "\nVolg deze instructies om uw API-sleutel te krijgen:\n1. Bezoek uw Elevenlabs dashboard.\n2. Eenmaal daar, klik op je account in de linkerbenedenhoek.\n3. Druk op Profiel + API-sleutel.\n4. Kopieer de API-sleutel.\n",
"Text to Speech": "Tekst naar spraak",
"Custom API Call": "Custom API Call",
"Convert text to speech using Elevenlabs": "Converteer tekst naar spraak met behulp van Elevenlabs",
"\nCheck [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\nfor the list of available endpoints.\n": "\nBekijk [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\nvoor de lijst van beschikbare eindpunten.\n",
"Model": "Model",
"Voice": "Stem",
"Text": "Tekstveld",
"Method": "Methode",
"Headers": "Kopteksten",
"Query Parameters": "Query parameters",
"Body": "Lichaam",
"Response is Binary ?": "Antwoord is binair?",
"No Error on Failure": "Geen fout bij fout",
"Timeout (in seconds)": "Time-out (in seconden)",
"Select the voice for the text to speech": "Selecteer de stem voor de tekst om te spreken",
"The text to convert to speech": "De tekst om te converteren naar spraak",
"Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
"Enable for files like PDFs, images, etc..": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc..",
"GET": "KRIJG",
"POST": "POSTE",
"PATCH": "BEKIJK",
"PUT": "PUT",
"DELETE": "VERWIJDEREN",
"HEAD": "HOOFD"
}

View File

@@ -0,0 +1,34 @@
{
"AI Voice Generator & Text to Speech": "AI Voice Generator & Text to Speech",
"Region": "Região",
"API Key": "Chave de API",
"Use according URL in Custom API Call pieces": "Utilizar de acordo com a URL em Peças de Chamada de API Personalizada",
"default - https://api.elevenlabs.io": "padrão - https://api.elevenlabs.io",
"US - https://api.us.elevenlabs.io": "EUA - https://api.us.elevenlabs.io",
"EU - https://api.eu.residency.elevenlabs.io": "UE - https://api.eu.residency.elevenlabs.io",
"\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n": "U\nSiga estas instruções para obter a sua chave de API:\n1. Visite o seu painel de controle dos Onzes.\n2. Uma vez lá, clique na sua conta no canto inferior esquerdo.\n3. Press Profile + chave de API.\n4. Copie a chave de API.\n",
"Text to Speech": "Texto para fala",
"Custom API Call": "Chamada de API personalizada",
"Convert text to speech using Elevenlabs": "Converter texto em fala usando onze salas",
"\nCheck [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\nfor the list of available endpoints.\n": "\nVerifique [Onze API de referência](https://elevenlabs.io/docs/api-reference/introduction)\npara a lista de endpoints disponíveis.\n",
"Model": "Modelo",
"Voice": "Voz",
"Text": "texto",
"Method": "Método",
"Headers": "Cabeçalhos",
"Query Parameters": "Parâmetros da consulta",
"Body": "Conteúdo",
"Response is Binary ?": "A resposta é binária ?",
"No Error on Failure": "Nenhum erro no Failure",
"Timeout (in seconds)": "Tempo limite (em segundos)",
"Select the voice for the text to speech": "Selecione a voz para o texto para fala",
"The text to convert to speech": "O texto para converter em fala",
"Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
"Enable for files like PDFs, images, etc..": "Habilitar para arquivos como PDFs, imagens, etc..",
"GET": "OBTER",
"POST": "POSTAR",
"PATCH": "COMPRAR",
"PUT": "COLOCAR",
"DELETE": "EXCLUIR",
"HEAD": "CABEÇA"
}

View File

@@ -0,0 +1,33 @@
{
"ElevenLabs": "ElevenLabs",
"AI Voice Generator & Text to Speech": "Генератор голоса и текст в речь",
"Region": "Регион",
"API Key": "Ключ API",
"Use according URL in Custom API Call pieces": "Использовать в URL части пользовательских вызовов API",
"default - https://api.elevenlabs.io": "по умолчанию - https://api.elevenlabs.io",
"US - https://api.us.elevenlabs.io": "США - https://api.us.elevenlabs.io",
"EU - https://api.eu.residency.elevenlabs.io": "ЕС - https://api.eu.residency.elevenlabs.io",
"\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n": "\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n",
"Text to Speech": "Текст в речь",
"Custom API Call": "Пользовательский вызов API",
"Convert text to speech using Elevenlabs": "Преобразовать текст в речь с помощью Elevenlabs",
"\nCheck [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\nfor the list of available endpoints.\n": "\nПроверить [Elevenlabs API ссылки](https://elevenlabs.io/docs/api-reference/introduction)\nдля списка доступных конечных точек.\n",
"Model": "Модель",
"Voice": "Голос",
"Text": "Текст",
"Method": "Метод",
"Headers": "Заголовки",
"Query Parameters": "Параметры запроса",
"Body": "Тело",
"No Error on Failure": "Нет ошибок при ошибке",
"Timeout (in seconds)": "Таймаут (в секундах)",
"Select the voice for the text to speech": "Выберите голос для речи",
"The text to convert to speech": "Текст для преобразования в речь",
"Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
"GET": "ПОЛУЧИТЬ",
"POST": "ПОСТ",
"PATCH": "ПАТЧ",
"PUT": "ПОКУПИТЬ",
"DELETE": "УДАЛИТЬ",
"HEAD": "HEAD"
}

View File

@@ -0,0 +1,34 @@
{
"AI Voice Generator & Text to Speech": "AI Voice Generator & Text to Speech",
"Region": "Region",
"API Key": "API Key",
"Use according URL in Custom API Call pieces": "Use according URL in Custom API Call pieces",
"default - https://api.elevenlabs.io": "default - https://api.elevenlabs.io",
"US - https://api.us.elevenlabs.io": "US - https://api.us.elevenlabs.io",
"EU - https://api.eu.residency.elevenlabs.io": "EU - https://api.eu.residency.elevenlabs.io",
"\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n": "\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n",
"Text to Speech": "Text to Speech",
"Custom API Call": "Custom API Call",
"Convert text to speech using Elevenlabs": "Convert text to speech using Elevenlabs",
"\nCheck [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\nfor the list of available endpoints.\n": "\nCheck [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\nfor the list of available endpoints.\n",
"Model": "Model",
"Voice": "Voice",
"Text": "Text",
"Method": "Method",
"Headers": "Headers",
"Query Parameters": "Query Parameters",
"Body": "Body",
"Response is Binary ?": "Response is Binary ?",
"No Error on Failure": "No Error on Failure",
"Timeout (in seconds)": "Timeout (in seconds)",
"Select the voice for the text to speech": "Select the voice for the text to speech",
"The text to convert to speech": "The text to convert to speech",
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
"GET": "GET",
"POST": "POST",
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "DELETE",
"HEAD": "HEAD"
}

View File

@@ -0,0 +1,33 @@
{
"ElevenLabs": "ElevenLabs",
"AI Voice Generator & Text to Speech": "AI Voice Generator & Text to Speech",
"Region": "Region",
"API Key": "API Key",
"Use according URL in Custom API Call pieces": "Use according URL in Custom API Call pieces",
"default - https://api.elevenlabs.io": "default - https://api.elevenlabs.io",
"US - https://api.us.elevenlabs.io": "US - https://api.us.elevenlabs.io",
"EU - https://api.eu.residency.elevenlabs.io": "EU - https://api.eu.residency.elevenlabs.io",
"\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n": "\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n",
"Text to Speech": "Text to Speech",
"Custom API Call": "Custom API Call",
"Convert text to speech using Elevenlabs": "Convert text to speech using Elevenlabs",
"\nCheck [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\nfor the list of available endpoints.\n": "\nCheck [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\nfor the list of available endpoints.\n",
"Model": "Model",
"Voice": "Voice",
"Text": "Text",
"Method": "Method",
"Headers": "Headers",
"Query Parameters": "Query Parameters",
"Body": "Body",
"No Error on Failure": "No Error on Failure",
"Timeout (in seconds)": "Timeout (in seconds)",
"Select the voice for the text to speech": "Select the voice for the text to speech",
"The text to convert to speech": "The text to convert to speech",
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
"GET": "GET",
"POST": "POST",
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "DELETE",
"HEAD": "HEAD"
}

View File

@@ -0,0 +1,34 @@
{
"AI Voice Generator & Text to Speech": "AI Voice Generator & Text to Speech",
"Region": "Region",
"API Key": "API 密钥",
"Use according URL in Custom API Call pieces": "Use according URL in Custom API Call pieces",
"default - https://api.elevenlabs.io": "default - https://api.elevenlabs.io",
"US - https://api.us.elevenlabs.io": "US - https://api.us.elevenlabs.io",
"EU - https://api.eu.residency.elevenlabs.io": "EU - https://api.eu.residency.elevenlabs.io",
"\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n": "\nFollow these instructions to get your API Key:\n1. Visit your Elevenlabs dashboard.\n2. Once there, click on your account in the bottom left corner.\n3. Press Profile + API Key.\n4. Copy the API Key.\n",
"Text to Speech": "Text to Speech",
"Custom API Call": "自定义 API 呼叫",
"Convert text to speech using Elevenlabs": "Convert text to speech using Elevenlabs",
"\nCheck [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\nfor the list of available endpoints.\n": "\nCheck [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)\nfor the list of available endpoints.\n",
"Model": "Model",
"Voice": "Voice",
"Text": "文本",
"Method": "方法",
"Headers": "信头",
"Query Parameters": "查询参数",
"Body": "正文内容",
"Response is Binary ?": "Response is Binary ?",
"No Error on Failure": "失败时没有错误",
"Timeout (in seconds)": "超时(秒)",
"Select the voice for the text to speech": "Select the voice for the text to speech",
"The text to convert to speech": "The text to convert to speech",
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
"GET": "获取",
"POST": "帖子",
"PATCH": "PATCH",
"PUT": "弹出",
"DELETE": "删除",
"HEAD": "黑色"
}

View File

@@ -0,0 +1,96 @@
import { createPiece, PieceAuth, Property } from '@activepieces/pieces-framework';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { AppConnectionType, PieceCategory } from '@activepieces/shared';
import { textToSpeech } from './lib/actions/text-to-speech-action';
import {
createClient,
ELEVEN_RESIDENCY,
ElevenResidency,
getApiKey,
getRegionApiUrl
} from './lib/common';
const markdownDescription = `
Follow these instructions to get your API Key:
1. Visit your Elevenlabs dashboard.
2. Once there, click on your account in the bottom left corner.
3. Press Profile + API Key.
4. Copy the API Key.
`;
const customApiCallDescription = `
Check [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)
for the list of available endpoints.
`
export const elevenlabsAuth = PieceAuth.CustomAuth({
required: true,
description: markdownDescription,
props: {
region: Property.StaticDropdown<ElevenResidency>({
displayName: 'Region',
description: 'Use according URL in Custom API Call pieces',
required: true,
options: {
placeholder: 'Please select your account region...',
options: [
{ label: `default - ${ELEVEN_RESIDENCY['default'].base}`, value: 'default' },
{ label: `US - ${ELEVEN_RESIDENCY['us'].base}`, value: 'us' },
{ label: `EU - ${ELEVEN_RESIDENCY['eu'].base}`, value: 'eu' },
],
},
}),
apiKey: PieceAuth.SecretText({
displayName: 'API Key',
required: true,
}),
},
validate: async ({ auth }) => {
try {
const elevenlabs = createClient({
type: AppConnectionType.CUSTOM_AUTH,
props: auth,
});
await elevenlabs.user.get();
return {
valid: true,
};
} catch (error) {
return {
valid: false,
error: 'Invalid API Key or Region.',
};
}
},
});
export const elevenlabs = createPiece({
displayName: 'ElevenLabs',
auth: elevenlabsAuth,
minimumSupportedRelease: '0.30.0',
logoUrl: 'https://cdn.activepieces.com/pieces/elevenlabs.png',
authors: ['pfernandez98'],
categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE],
description: 'AI Voice Generator & Text to Speech',
actions: [
textToSpeech,
createCustomApiCallAction({
// it would be more useful to have hint for URL
description: customApiCallDescription,
// missing propsValue to not override url when credentials are changed
// @see packages/pieces/community/common/src/lib/helpers/index.ts:65
baseUrl: (auth) => {
return getRegionApiUrl(auth?.props.region)
},
auth: elevenlabsAuth,
authMapping: async (auth) => {
return ({
// keep old plain value for bc
'xi-api-key': `${getApiKey(auth.props.apiKey)}`,
})
},
}),
],
triggers: [],
});

View File

@@ -0,0 +1,120 @@
import { Property, createAction } from '@activepieces/pieces-framework';
import { createClient, ExtendedReadableStream } from '../common';
import { elevenlabsAuth } from '../..';
export const textToSpeech = createAction({
description: 'Convert text to speech using Elevenlabs',
displayName: 'Text to Speech',
name: 'elevenlabs-text-to-speech',
auth: elevenlabsAuth,
props: {
model: Property.Dropdown({
auth: elevenlabsAuth,
displayName: 'Model',
required: false,
refreshers: [],
refreshOnSearch: false,
options: async ({ auth }) => {
const apiAuth = auth
if (!apiAuth) {
return {
disabled: true,
placeholder: 'Enter your API key first',
options: [],
};
}
try {
const elevenlabs = createClient(apiAuth);
const models = await elevenlabs.models.list()
return {
disabled: false,
placeholder: 'Default model',
options: models.map((template) => {
return {
// there are models with the same name
label: `${template.name} (${template.modelId})`,
value: template.modelId,
};
}),
};
} catch (error) {
return {
disabled: true,
options: [],
placeholder: "Couldn't load models, check your API key.",
};
}
},
}),
voice: Property.Dropdown({
auth: elevenlabsAuth,
displayName: 'Voice',
required: true,
description: 'Select the voice for the text to speech',
refreshers: [],
refreshOnSearch: false,
options: async ({ auth }) => {
const apiAuth = auth
if (!apiAuth) {
return {
disabled: true,
placeholder: 'Enter your API key first',
options: [],
};
}
try {
const elevenlabs = createClient(apiAuth);
const response = await elevenlabs.voices.getAll()
return {
disabled: false,
options: response.voices.map((template) => {
return {
label: `${template.name}`,
value: template.voiceId,
};
}),
};
} catch (error) {
return {
disabled: true,
options: [],
placeholder: "Couldn't load voices, check your API key.",
};
}
},
}),
text: Property.LongText({
displayName: 'Text',
required: true,
description: 'The text to convert to speech',
}),
},
async run({ auth, propsValue, files }) {
const elevenlabs = createClient(auth);
const audioStream = await elevenlabs.textToSpeech.stream(
propsValue.voice,
{
modelId: propsValue.model || undefined,
text: propsValue.text,
}
// node implementation of ReadableStream<Uint8Array> has asyncInterator
) as ExtendedReadableStream<Buffer>;
const chunks: Buffer[] = [];
for await (const chunk of audioStream) {
chunks.push(chunk);
}
return files.write({
fileName: 'audio.mp3',
data: Buffer.concat(chunks),
});
},
});

View File

@@ -0,0 +1,39 @@
import { ElevenLabsClient } from '@elevenlabs/elevenlabs-js';
import { ElevenLabsEnvironment } from '@elevenlabs/elevenlabs-js/environments';
import { AppConnectionValueForAuthProperty } from '@activepieces/pieces-framework';
import { elevenlabsAuth } from '..';
export type ElevenResidency = 'default' | 'us' | 'eu';
export interface ExtendedReadableStream<R> extends ReadableStream {
[Symbol.asyncIterator](): AsyncIterableIterator<R>;
}
export const ELEVEN_RESIDENCY: Record<ElevenResidency, ElevenLabsEnvironment> = {
default: ElevenLabsEnvironment.Production,
us: ElevenLabsEnvironment.ProductionUs,
eu: ElevenLabsEnvironment.ProductionEu,
};
// get API key with backward compatibility:
// new format is object { apiKey: '', region: '' }
// old format is a secret that is deserealised as an object
export const getApiKey = (auth: AppConnectionValueForAuthProperty<typeof elevenlabsAuth> | string): string => {
if (typeof auth === 'string') {
return auth;
}
return auth?.props.apiKey ?? Object.values(auth.props).join('');
}
export const getRegionApiUrl = (region?: ElevenResidency) => {
return ELEVEN_RESIDENCY[region ?? 'default'].base;
}
export const createClient = (auth: AppConnectionValueForAuthProperty<typeof elevenlabsAuth>) => {
return new ElevenLabsClient({
apiKey: `${getApiKey(auth)}`,
environment: ELEVEN_RESIDENCY[auth.props.region ?? 'default'],
});
}