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,12 @@
{
"YouTube Transcripts": "YouTube Transkripte",
"\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n": "\nUm deinen kostenlosen Supadata API-Schlüssel zu erhalten, melde dich bei [Supadata](https://supadata.ai) an und kopiere dann den Schlüssel in der [dashboard](https://dash.supadata.ai).\n",
"Get Transcript": "Get Transcript",
"Fetches transcript of a YouTube video.": "Ruft das Transkript eines YouTube-Videos ab.",
"YouTube URL": "YouTube-URL",
"Language Preference": "Spracheinstellung",
"Merge Text": "Text zusammenführen",
"The URL of a single YouTube video.": "Die URL eines einzelnen YouTube-Videos.",
"Preferred language of the transcript. If not available, the first available language will be returned.": "Bevorzugte Sprache des Transkripts. Falls nicht vorhanden, wird die erste verfügbare Sprache zurückgegeben.",
"If true, the transcript will be merged into a single text instead of timestamped chunks.": "Wenn aktiviert, wird das Transkript in einem einzigen Text zusammengeführt, anstatt in Zeitstempeln zusammengefasst."
}

View File

@@ -0,0 +1,12 @@
{
"YouTube Transcripts": "Transcripciones de YouTube",
"\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n": "\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n",
"Get Transcript": "Get Transcript",
"Fetches transcript of a YouTube video.": "Obtiene la transcripción de un vídeo de YouTube.",
"YouTube URL": "URL de YouTube",
"Language Preference": "Preferencia de idioma",
"Merge Text": "Unir texto",
"The URL of a single YouTube video.": "La URL de un único vídeo de YouTube.",
"Preferred language of the transcript. If not available, the first available language will be returned.": "Idioma preferido de la transcripción. Si no está disponible, se devolverá el primer idioma disponible.",
"If true, the transcript will be merged into a single text instead of timestamped chunks.": "Si es verdadero, la transcripción se fusionará en un solo texto en lugar de trozos con marca de tiempo."
}

View File

@@ -0,0 +1,12 @@
{
"YouTube Transcripts": "Transcriptions YouTube",
"\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n": "\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n",
"Get Transcript": "Get Transcript",
"Fetches transcript of a YouTube video.": "Récupère la transcription d'une vidéo YouTube.",
"YouTube URL": "URL YouTube",
"Language Preference": "Préférence de la langue",
"Merge Text": "Fusionner le texte",
"The URL of a single YouTube video.": "L'URL d'une seule vidéo YouTube.",
"Preferred language of the transcript. If not available, the first available language will be returned.": "Langue préférée de la transcription. Si elle n'est pas disponible, la première langue disponible sera retournée.",
"If true, the transcript will be merged into a single text instead of timestamped chunks.": "Si activé, la transcription sera fusionnée en un seul texte au lieu de chunks horodatés."
}

View File

@@ -0,0 +1,12 @@
{
"YouTube Transcripts": "YouTubeトランスクリプト",
"\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n": "\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n",
"Get Transcript": "Get Transcript",
"Fetches transcript of a YouTube video.": "YouTube動画の記録を取得します。",
"YouTube URL": "YouTube URL",
"Language Preference": "言語設定",
"Merge Text": "テキストを結合",
"The URL of a single YouTube video.": "単一のYouTube動画のURL。",
"Preferred language of the transcript. If not available, the first available language will be returned.": "優先言語のトランスクリプトです。利用できない場合は、最初に利用可能な言語が返されます。",
"If true, the transcript will be merged into a single text instead of timestamped chunks.": "true の場合、トランスクリプトはタイムスタンプされたチャンクの代わりに1つのテキストにマージされます。"
}

View File

@@ -0,0 +1,12 @@
{
"YouTube Transcripts": "YouTube transscripts",
"\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n": "\nOm uw gratis Supadata API-sleutel te verkrijgen, meld je aan bij [Supadata](https://supadata.ai) en kopieer vervolgens de sleutel die beschikbaar is in de [dashboard](https://dash.supadata.ai).\n",
"Get Transcript": "Get Transcript",
"Fetches transcript of a YouTube video.": "Haalt het transcript van een YouTube video.",
"YouTube URL": "YouTube URL",
"Language Preference": "Taal Voorkeur",
"Merge Text": "Tekst samenvoegen",
"The URL of a single YouTube video.": "De URL van één YouTube video.",
"Preferred language of the transcript. If not available, the first available language will be returned.": "Voorkeurstaal van de transcript. Indien niet beschikbaar, wordt de eerste beschikbare taal geretourneerd.",
"If true, the transcript will be merged into a single text instead of timestamped chunks.": "Als het waar is, zal het transcript worden samengevoegd tot één tekst in plaats van getimestreerde chunks."
}

View File

@@ -0,0 +1,12 @@
{
"YouTube Transcripts": "Transcrições do YouTube",
"\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n": "\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n",
"Get Transcript": "Get Transcript",
"Fetches transcript of a YouTube video.": "Obtém a transcrição de um vídeo do YouTube.",
"YouTube URL": "URL do YouTube",
"Language Preference": "Preferência de Idioma",
"Merge Text": "Mesclar Texto",
"The URL of a single YouTube video.": "A URL de um único vídeo do YouTube.",
"Preferred language of the transcript. If not available, the first available language will be returned.": "Idioma preferido da transcrição. Se não estiver disponível, o primeiro idioma disponível será devolvido.",
"If true, the transcript will be merged into a single text instead of timestamped chunks.": "Se verdadeiro, a transcrição será mesclada em um único texto ao invés de pedaços de tempo."
}

View File

@@ -0,0 +1,13 @@
{
"Supadata": "Supadata",
"YouTube Transcripts": "Транскрипты YouTube",
"\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n": "\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n",
"Get Transcript": "Get Transcript",
"Fetches transcript of a YouTube video.": "Извлекает субтитры видео YouTube.",
"YouTube URL": "YouTube URL",
"Language Preference": "Языковые предпочтения",
"Merge Text": "Объединить текст",
"The URL of a single YouTube video.": "URL одного видео YouTube.",
"Preferred language of the transcript. If not available, the first available language will be returned.": "Предпочтительный язык субтитров. Если недоступно, первый доступный язык будет возвращен.",
"If true, the transcript will be merged into a single text instead of timestamped chunks.": "Если установлено значение true, субтитры будут объединены в один текст вместо отмеченных времени чанков."
}

View File

@@ -0,0 +1,12 @@
{
"YouTube Transcripts": "YouTube Transcripts",
"\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n": "\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n",
"Get Transcript": "Get Transcript",
"Fetches transcript of a YouTube video.": "Fetches transcript of a YouTube video.",
"YouTube URL": "YouTube URL",
"Language Preference": "Language Preference",
"Merge Text": "Merge Text",
"The URL of a single YouTube video.": "The URL of a single YouTube video.",
"Preferred language of the transcript. If not available, the first available language will be returned.": "Preferred language of the transcript. If not available, the first available language will be returned.",
"If true, the transcript will be merged into a single text instead of timestamped chunks.": "If true, the transcript will be merged into a single text instead of timestamped chunks."
}

View File

@@ -0,0 +1,13 @@
{
"Supadata": "Supadata",
"YouTube Transcripts": "YouTube Transcripts",
"\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n": "\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n",
"Get Transcript": "Get Transcript",
"Fetches transcript of a YouTube video.": "Fetches transcript of a YouTube video.",
"YouTube URL": "YouTube URL",
"Language Preference": "Language Preference",
"Merge Text": "Merge Text",
"The URL of a single YouTube video.": "The URL of a single YouTube video.",
"Preferred language of the transcript. If not available, the first available language will be returned.": "Preferred language of the transcript. If not available, the first available language will be returned.",
"If true, the transcript will be merged into a single text instead of timestamped chunks.": "If true, the transcript will be merged into a single text instead of timestamped chunks."
}

View File

@@ -0,0 +1,12 @@
{
"YouTube Transcripts": "YouTube Transcripts",
"\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n": "\nTo obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).\n",
"Get Transcript": "Get Transcript",
"Fetches transcript of a YouTube video.": "Fetches transcript of a YouTube video.",
"YouTube URL": "YouTube URL",
"Language Preference": "Language Preference",
"Merge Text": "Merge Text",
"The URL of a single YouTube video.": "The URL of a single YouTube video.",
"Preferred language of the transcript. If not available, the first available language will be returned.": "Preferred language of the transcript. If not available, the first available language will be returned.",
"If true, the transcript will be merged into a single text instead of timestamped chunks.": "If true, the transcript will be merged into a single text instead of timestamped chunks."
}

View File

@@ -0,0 +1,46 @@
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
import { getTranscriptAction } from './lib/actions/get-transcript';
import { PieceCategory } from '@activepieces/shared';
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
import { supadataConfig } from './lib/config';
const markdownDescription = `
To obtain your free Supadata API Key, sign up at [Supadata](https://supadata.ai) and then copy the key available in the [dashboard](https://dash.supadata.ai).
`;
export const supadataAuth = PieceAuth.SecretText({
description: markdownDescription,
displayName: 'API Key',
required: true,
validate: async (auth) => {
try {
await httpClient.sendRequest({
method: HttpMethod.GET,
url: `${supadataConfig.baseUrl}/health`,
headers: {
[supadataConfig.accessTokenHeaderKey]: auth.auth,
},
});
return {
valid: true,
};
} catch (e) {
return {
valid: false,
error: 'Invalid API Key.',
};
}
},
});
export const supadata = createPiece({
displayName: 'Supadata',
auth: supadataAuth,
minimumSupportedRelease: '0.30.0',
logoUrl: 'https://cdn.activepieces.com/pieces/supadata.svg',
authors: ['rafalzawadzki'],
categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE, PieceCategory.DEVELOPER_TOOLS, PieceCategory.CONTENT_AND_FILES],
description: 'YouTube Transcripts',
actions: [getTranscriptAction],
triggers: [],
});

View File

@@ -0,0 +1,51 @@
import { createAction, Property } from '@activepieces/pieces-framework';
import { HttpMethod, QueryParams, httpClient } from '@activepieces/pieces-common';
import { supadataAuth } from '../..';
import { supadataConfig } from '../config';
export const getTranscriptAction = createAction({
name: 'get_transcript',
displayName: 'Get Transcript',
description: 'Fetches transcript of a YouTube video.',
auth: supadataAuth,
props: {
url: Property.ShortText({
displayName: 'YouTube URL',
description: 'The URL of a single YouTube video.',
required: true,
}),
lang: Property.ShortText({
displayName: 'Language Preference',
description: 'Preferred language of the transcript. If not available, the first available language will be returned.',
required: false,
}),
text: Property.Checkbox({
displayName: 'Merge Text',
description: 'If true, the transcript will be merged into a single text instead of timestamped chunks.',
required: false,
defaultValue: true,
})
},
async run(context) {
const { url, text, lang } = context.propsValue;
const qs:QueryParams = {
url,
text: text ? 'true' : 'false',
}
if (lang) {
qs['lang'] = lang;
}
const response = await httpClient.sendRequest({
method: HttpMethod.GET,
url: `${supadataConfig.baseUrl}/youtube/transcript`,
headers: {
[supadataConfig.accessTokenHeaderKey]: context.auth.secret_text,
},
queryParams: qs,
});
return response.body;
},
});

View File

@@ -0,0 +1,4 @@
export const supadataConfig = {
baseUrl: 'https://api.supadata.ai/v1',
accessTokenHeaderKey: 'x-api-key',
};