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,18 @@
{
"extends": ["../../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}

View File

@@ -0,0 +1,7 @@
# pieces-llmrails
This library was generated with [Nx](https://nx.dev).
## Building
Run `nx build pieces-llmrails` to build the library.

View File

@@ -0,0 +1,4 @@
{
"name": "@activepieces/piece-llmrails",
"version": "0.0.15"
}

View File

@@ -0,0 +1,57 @@
{
"name": "pieces-llmrails",
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/pieces/community/llmrails/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/packages/pieces/community/llmrails",
"tsConfig": "packages/pieces/community/llmrails/tsconfig.lib.json",
"packageJson": "packages/pieces/community/llmrails/package.json",
"main": "packages/pieces/community/llmrails/src/index.ts",
"assets": [
"packages/pieces/community/llmrails/*.md",
{
"input": "packages/pieces/community/llmrails/src/i18n",
"output": "./src/i18n",
"glob": "**/!(i18n.json)"
}
],
"buildableProjectDepsInPackageJsonType": "dependencies",
"updateBuildableProjectDepsInPackageJson": true
},
"dependsOn": [
"^build",
"prebuild"
]
},
"publish": {
"command": "node tools/scripts/publish.mjs pieces-llmrails {args.ver} {args.tag}",
"dependsOn": [
"build"
]
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": [
"{options.outputFile}"
]
},
"prebuild": {
"executor": "nx:run-commands",
"options": {
"cwd": "packages/pieces/community/llmrails",
"command": "bun install --no-save --silent"
},
"dependsOn": [
"^build"
]
}
},
"tags": []
}

View File

@@ -0,0 +1,30 @@
{
"LLM Rails Platform": "LLM Schienen-Plattform",
"\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n": "\nFolgen Sie diesen Anweisungen, um Ihren LLMRails API-Schlüssel zu erhalten:\n\n1. Besuchen Sie die folgende Website: https://console.llmrails.com/api-keys.\n2. Sobald Sie auf der Webseite sind, klicken Sie auf einen Schlüssel erstellen.\n3. Sobald Sie einen Schlüssel erstellt haben, kopieren Sie ihn und verwenden Sie ihn für das Api-Schlüsselfeld auf der Seite.\n",
"Datastore search": "Datenspeichersuche",
"Custom API Call": "Eigener API-Aufruf",
"Search in datastore": "Im Datenspeicher suchen",
"Make a custom API call to a specific endpoint": "Einen benutzerdefinierten API-Aufruf an einen bestimmten Endpunkt machen",
"Datastore ID": "Datastore ID",
"Text": "Text",
"Hybrid search": "Hybrid-Suche",
"Summarize": "Summarize",
"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)",
"Search query": "Suchanfrage",
"Hybrid search is combining dense and sparse embeddings.": "Die Hybrid-Suche kombiniert dicke und sparsame Einbettungen.",
"Summarizes the datastore search results": "Zusammenfassung der Suchergebnisse",
"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,30 @@
{
"LLM Rails Platform": "Plataforma de vías LLM",
"\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n": "\nSigue estas instrucciones para obtener tu LLMRails API Key:\n\n1. Visita el siguiente sitio web: https://console.llmrails.com/api-keys.\n2. Una vez en el sitio web, haga clic en crear una clave.\n3. Una vez que hayas creado una clave, cópiala y úsalo para el campo de la clave Api en el sitio.\n",
"Datastore search": "Búsqueda de datos",
"Custom API Call": "Llamada API personalizada",
"Search in datastore": "Buscar en datastore",
"Make a custom API call to a specific endpoint": "Hacer una llamada API personalizada a un extremo específico",
"Datastore ID": "Datastore ID",
"Text": "Texto",
"Hybrid search": "Búsqueda hibrida",
"Summarize": "Summarize",
"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)",
"Search query": "Buscar consulta",
"Hybrid search is combining dense and sparse embeddings.": "Hybrid search is combining dense and sparse embeddings.",
"Summarizes the datastore search results": "Resume los resultados de búsqueda del datastore",
"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,30 @@
{
"LLM Rails Platform": "Plateforme Rails LLM",
"\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n": "\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n",
"Datastore search": "Recherche de datastore",
"Custom API Call": "Appel API personnalisé",
"Search in datastore": "Rechercher dans le datastore",
"Make a custom API call to a specific endpoint": "Passez un appel API personnalisé à un point de terminaison spécifique",
"Datastore ID": "Datastore ID",
"Text": "Texte du texte",
"Hybrid search": "Recherche hybride",
"Summarize": "Summarize",
"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)",
"Search query": "Requête de recherche",
"Hybrid search is combining dense and sparse embeddings.": "La recherche hybride combine des embeddings denses et maigres.",
"Summarizes the datastore search results": "Résume les résultats de la recherche du datastore",
"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,30 @@
{
"LLM Rails Platform": "LLM Rails Platform",
"\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n": "\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n",
"Datastore search": "データストア検索",
"Custom API Call": "カスタムAPI通話",
"Search in datastore": "データストアで検索",
"Make a custom API call to a specific endpoint": "特定のエンドポイントへのカスタム API コールを実行します。",
"Datastore ID": "Datastore ID",
"Text": "テキスト",
"Hybrid search": "ハイブリッド検索",
"Summarize": "Summarize",
"Method": "方法",
"Headers": "ヘッダー",
"Query Parameters": "クエリパラメータ",
"Body": "本文",
"Response is Binary ?": "応答はバイナリですか?",
"No Error on Failure": "失敗時にエラーはありません",
"Timeout (in seconds)": "タイムアウト(秒)",
"Search query": "検索クエリ",
"Hybrid search is combining dense and sparse embeddings.": "ハイブリッド検索は、緻密で疎な埋め込みを組み合わせたものです。",
"Summarizes the datastore search results": "データストア検索結果をまとめます",
"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,30 @@
{
"LLM Rails Platform": "LLM Rails Platform",
"\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n": "\nVolg deze instructies om uw LLMRails API-sleutel te verkrijgen:\n\n1. Bezoek de volgende website: https://console.llmrails.com/api-keys.\n2. Eenmaal op de website, klik op een sleutel maken.\n3. Zodra u een sleutel heeft gemaakt, kopieer deze en gebruik deze voor het veld Api sleutel op de site.\n",
"Datastore search": "Dastore zoeken",
"Custom API Call": "Custom API Call",
"Search in datastore": "Zoeken in datastore",
"Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
"Datastore ID": "Datastore ID",
"Text": "Tekstveld",
"Hybrid search": "Hybride zoekopdracht",
"Summarize": "Summarize",
"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)",
"Search query": "Zoek query",
"Hybrid search is combining dense and sparse embeddings.": "Hybride zoekopdracht combineert dikke en spaarzame embedden.",
"Summarizes the datastore search results": "Vat de datastore zoekresultaten samen",
"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,30 @@
{
"LLM Rails Platform": "Plataforma de trilhos LLM",
"\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n": "\nSiga estas instruções para obter sua chave de API LLMRails:\n\n1. Visite o seguinte site: https://console.llmrails.com/api-keys.\n2. Uma vez no site, clique em criar uma chave.\n3. Depois de criar uma chave, copie-a e use-a para o campo de chave Api no site.\n",
"Datastore search": "Pesquisa de dados",
"Custom API Call": "Chamada de API personalizada",
"Search in datastore": "Pesquisar no datastore",
"Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
"Datastore ID": "Datastore ID",
"Text": "texto",
"Hybrid search": "Pesquisa híbrida",
"Summarize": "Summarize",
"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)",
"Search query": "Consulta de pesquisa",
"Hybrid search is combining dense and sparse embeddings.": "A busca híbrida está combinando áreas densas e esparsas incorporadas.",
"Summarizes the datastore search results": "Resume os resultados da pesquisa de datastore",
"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,29 @@
{
"LLMRails": "LLMRails",
"LLM Rails Platform": "Платформа LLM Rails",
"\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n": "\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n",
"Datastore search": "Поиск хранилища",
"Custom API Call": "Пользовательский вызов API",
"Search in datastore": "Поиск в хранилище данных",
"Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
"Datastore ID": "Datastore ID",
"Text": "Текст",
"Hybrid search": "Поиск гибридных",
"Summarize": "Summarize",
"Method": "Метод",
"Headers": "Заголовки",
"Query Parameters": "Параметры запроса",
"Body": "Тело",
"No Error on Failure": "Нет ошибок при ошибке",
"Timeout (in seconds)": "Таймаут (в секундах)",
"Search query": "Поисковый запрос",
"Hybrid search is combining dense and sparse embeddings.": "Гибридный поиск сочетает плотные и резкие встраивания.",
"Summarizes the datastore search results": "Суммирует результаты поиска в хранилище данных",
"Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
"GET": "ПОЛУЧИТЬ",
"POST": "ПОСТ",
"PATCH": "ПАТЧ",
"PUT": "ПОКУПИТЬ",
"DELETE": "УДАЛИТЬ",
"HEAD": "HEAD"
}

View File

@@ -0,0 +1,30 @@
{
"LLM Rails Platform": "LLM Rails Platform",
"\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n": "\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n",
"Datastore search": "Datastore search",
"Custom API Call": "Custom API Call",
"Search in datastore": "Search in datastore",
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
"Datastore ID": "Datastore ID",
"Text": "Text",
"Hybrid search": "Hybrid search",
"Summarize": "Summarize",
"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)",
"Search query": "Search query",
"Hybrid search is combining dense and sparse embeddings.": "Hybrid search is combining dense and sparse embeddings.",
"Summarizes the datastore search results": "Summarizes the datastore search results",
"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,29 @@
{
"LLMRails": "LLMRails",
"LLM Rails Platform": "LLM Rails Platform",
"\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n": "\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n",
"Datastore search": "Datastore search",
"Custom API Call": "Custom API Call",
"Search in datastore": "Search in datastore",
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
"Datastore ID": "Datastore ID",
"Text": "Text",
"Hybrid search": "Hybrid search",
"Summarize": "Summarize",
"Method": "Method",
"Headers": "Headers",
"Query Parameters": "Query Parameters",
"Body": "Body",
"No Error on Failure": "No Error on Failure",
"Timeout (in seconds)": "Timeout (in seconds)",
"Search query": "Search query",
"Hybrid search is combining dense and sparse embeddings.": "Hybrid search is combining dense and sparse embeddings.",
"Summarizes the datastore search results": "Summarizes the datastore search results",
"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,30 @@
{
"LLM Rails Platform": "LLM Rails Platform",
"\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n": "\nFollow these instructions to get your LLMRails API Key:\n\n1. Visit the following website: https://console.llmrails.com/api-keys.\n2. Once on the website, click on create a key.\n3. Once you have created a key, copy it and use it for the Api key field on the site.\n",
"Datastore search": "Datastore search",
"Custom API Call": "自定义 API 呼叫",
"Search in datastore": "Search in datastore",
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
"Datastore ID": "Datastore ID",
"Text": "文本",
"Hybrid search": "Hybrid search",
"Summarize": "Summarize",
"Method": "方法",
"Headers": "信头",
"Query Parameters": "查询参数",
"Body": "正文内容",
"Response is Binary ?": "Response is Binary ?",
"No Error on Failure": "失败时没有错误",
"Timeout (in seconds)": "超时(秒)",
"Search query": "Search query",
"Hybrid search is combining dense and sparse embeddings.": "Hybrid search is combining dense and sparse embeddings.",
"Summarizes the datastore search results": "Summarizes the datastore search results",
"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,51 @@
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { PieceAuth, createPiece } from '@activepieces/pieces-framework';
import { PieceCategory } from '@activepieces/shared';
import { datastoreSearch } from './lib/actions/datastore-search';
const markdownDescription = `
Follow these instructions to get your LLMRails API Key:
1. Visit the following website: https://console.llmrails.com/api-keys.
2. Once on the website, click on create a key.
3. Once you have created a key, copy it and use it for the Api key field on the site.
`;
export const llmrailsAuth = PieceAuth.SecretText({
displayName: 'API Key',
description: markdownDescription,
required: true,
validate: async ({ auth }) => {
if (auth.startsWith('api_')) {
return {
valid: true,
};
}
return {
valid: false,
error: 'Invalid Api Key',
};
},
});
export const llmrails = createPiece({
displayName: 'LLMRails',
description: 'LLM Rails Platform',
minimumSupportedRelease: '0.30.0',
logoUrl: 'https://cdn.activepieces.com/pieces/llmrails.png',
categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE],
authors: ["w95","kishanprmr","MoShizzle","abuaboud"],
auth: llmrailsAuth,
actions: [
datastoreSearch,
createCustomApiCallAction({
baseUrl: () => 'https://api.llmrails.com/v1',
auth: llmrailsAuth,
authMapping: async (auth) => ({
'X-API-KEY': auth.secret_text,
}),
}),
],
triggers: [],
});

View File

@@ -0,0 +1,57 @@
import { createAction, Property } from '@activepieces/pieces-framework';
import {
httpClient,
HttpMethod,
HttpRequest,
} from '@activepieces/pieces-common';
import { llmrailsAuth } from '../..';
export const datastoreSearch = createAction({
auth: llmrailsAuth,
name: 'search',
displayName: 'Datastore search',
description: 'Search in datastore',
props: {
datastoreId: Property.ShortText({
displayName: 'Datastore ID',
required: true,
}),
text: Property.ShortText({
displayName: 'Text',
required: true,
description: 'Search query',
}),
hybrid: Property.Checkbox({
displayName: 'Hybrid search',
description: 'Hybrid search is combining dense and sparse embeddings.',
required: true,
defaultValue: true,
}),
summarize: Property.Checkbox({
displayName: 'Summarize',
description: 'Summarizes the datastore search results',
required: true,
defaultValue: true,
}),
},
async run(context) {
const datastoreId = context.propsValue.datastoreId;
const request: HttpRequest = {
url: `https://api.llmrails.com/v1/datastores/${datastoreId}/search`,
method: HttpMethod.POST,
body: {
text: context.propsValue.text,
summarize: context.propsValue.summarize,
hybrid: context.propsValue.hybrid,
},
headers: {
'X-API-KEY': context.auth.secret_text,
Accept: 'application/json',
},
};
const response = await httpClient.sendRequest(request);
return response.body;
},
});

View File

@@ -0,0 +1,19 @@
{
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "../../../../dist/out-tsc",
"declaration": true,
"types": ["node"]
},
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
}