@activepieces/piece-cometapi 0.0.2 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -14
- package/src/i18n/de.json +8 -2
- package/src/i18n/es.json +8 -2
- package/src/i18n/fr.json +8 -2
- package/src/i18n/ja.json +8 -2
- package/src/i18n/nl.json +8 -2
- package/src/i18n/pt.json +8 -2
- package/src/i18n/translation.json +8 -2
- package/src/i18n/zh.json +8 -2
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/lib/actions/ask-cometapi.d.ts +1 -1
- package/src/lib/actions/ask-cometapi.js +1 -1
- package/src/lib/actions/ask-cometapi.js.map +1 -1
- package/src/lib/common/auth.js.map +1 -1
- package/src/lib/common/props.d.ts +1 -1
- package/src/lib/common/props.js +3 -1
- package/src/lib/common/props.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-cometapi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@sinclair/typebox": "0.34.11",
|
|
9
|
-
"
|
|
9
|
+
"ai": "^6.0.0",
|
|
10
|
+
"axios": "1.13.1",
|
|
10
11
|
"axios-retry": "4.4.1",
|
|
11
12
|
"deepmerge-ts": "7.1.0",
|
|
13
|
+
"form-data": "4.0.4",
|
|
14
|
+
"i18next": "23.13.0",
|
|
12
15
|
"mime-types": "2.1.35",
|
|
13
16
|
"nanoid": "3.3.8",
|
|
14
17
|
"semver": "7.6.0",
|
|
18
|
+
"socket.io-client": "4.8.1",
|
|
15
19
|
"tslib": "^2.3.0",
|
|
16
|
-
"zod": "
|
|
17
|
-
"@activepieces/pieces-common": "0.
|
|
18
|
-
"@activepieces/pieces-framework": "0.
|
|
19
|
-
"@activepieces/shared": "0.
|
|
20
|
-
},
|
|
21
|
-
"overrides": {
|
|
22
|
-
"@tryfabric/martian": {
|
|
23
|
-
"@notionhq/client": "$@notionhq/client"
|
|
24
|
-
},
|
|
25
|
-
"vite": {
|
|
26
|
-
"rollup": "npm:@rollup/wasm-node"
|
|
27
|
-
}
|
|
20
|
+
"zod": "4.1.13",
|
|
21
|
+
"@activepieces/pieces-common": "0.11.2",
|
|
22
|
+
"@activepieces/pieces-framework": "0.24.0",
|
|
23
|
+
"@activepieces/shared": "0.32.0"
|
|
28
24
|
},
|
|
29
25
|
"resolutions": {
|
|
30
26
|
"rollup": "npm:@rollup/wasm-node"
|
package/src/i18n/de.json
CHANGED
|
@@ -14,21 +14,27 @@
|
|
|
14
14
|
"Method": "Methode",
|
|
15
15
|
"Headers": "Kopfzeilen",
|
|
16
16
|
"Query Parameters": "Abfrageparameter",
|
|
17
|
+
"Body Type": "Körpertyp",
|
|
17
18
|
"Body": "Körper",
|
|
18
19
|
"Response is Binary ?": "Antwort ist binär?",
|
|
19
20
|
"No Error on Failure": "Kein Fehler bei Fehler",
|
|
20
21
|
"Timeout (in seconds)": "Timeout (in Sekunden)",
|
|
22
|
+
"Follow redirects": "Weiterleitungen folgen",
|
|
21
23
|
"The prompt to send to the AI model.": "Die Eingabeaufforderung, die an das AI-Modell gesendet werden soll.",
|
|
22
24
|
"Optional system message to set the behavior of the AI.": "Optionale Systemmeldung, um das Verhalten der KI festzulegen.",
|
|
23
25
|
"Controls randomness (0-2). Lower values make output more focused.": "Steuert die Zufallsregelung (0-2). Niedrigere Werte machen die Ausgabe fokussierter.",
|
|
24
26
|
"Maximum number of tokens to generate.": "Maximale Anzahl zu generierender Token.",
|
|
25
27
|
"Controls diversity via nucleus sampling (0-1).": "Kontrolliert die Vielfalt durch Nucleus Sampling (0-1).",
|
|
26
28
|
"Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
|
|
27
|
-
"Enable for files like PDFs, images, etc
|
|
29
|
+
"Enable for files like PDFs, images, etc.": "Aktivieren für Dateien wie PDFs, Bilder usw.",
|
|
28
30
|
"GET": "ERHALTEN",
|
|
29
31
|
"POST": "POST",
|
|
30
32
|
"PATCH": "PATCH",
|
|
31
33
|
"PUT": "PUT",
|
|
32
34
|
"DELETE": "LÖSCHEN",
|
|
33
|
-
"HEAD": "HEAD"
|
|
35
|
+
"HEAD": "HEAD",
|
|
36
|
+
"None": "Keine",
|
|
37
|
+
"JSON": "JSON",
|
|
38
|
+
"Form Data": "Formulardaten",
|
|
39
|
+
"Raw": "Rohe"
|
|
34
40
|
}
|
package/src/i18n/es.json
CHANGED
|
@@ -14,21 +14,27 @@
|
|
|
14
14
|
"Method": "Método",
|
|
15
15
|
"Headers": "Encabezados",
|
|
16
16
|
"Query Parameters": "Parámetros de consulta",
|
|
17
|
+
"Body Type": "Tipo de cuerpo",
|
|
17
18
|
"Body": "Cuerpo",
|
|
18
19
|
"Response is Binary ?": "¿Respuesta es binaria?",
|
|
19
20
|
"No Error on Failure": "No hay ningún error en fallo",
|
|
20
21
|
"Timeout (in seconds)": "Tiempo de espera (en segundos)",
|
|
22
|
+
"Follow redirects": "Seguir redirecciones",
|
|
21
23
|
"The prompt to send to the AI model.": "El aviso para enviar al modelo de IA.",
|
|
22
24
|
"Optional system message to set the behavior of the AI.": "Mensaje opcional del sistema para establecer el comportamiento de la IA.",
|
|
23
25
|
"Controls randomness (0-2). Lower values make output more focused.": "Controla la aleatoria (0-2). Valores más bajos hacen que la salida esté más enfocada.",
|
|
24
26
|
"Maximum number of tokens to generate.": "Número máximo de tokens a generar.",
|
|
25
27
|
"Controls diversity via nucleus sampling (0-1).": "Controla la diversidad mediante muestreo de núcleos (0-1).",
|
|
26
28
|
"Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
|
|
27
|
-
"Enable for files like PDFs, images, etc
|
|
29
|
+
"Enable for files like PDFs, images, etc.": "Activar para archivos como PDFs, imágenes, etc.",
|
|
28
30
|
"GET": "RECOGER",
|
|
29
31
|
"POST": "POST",
|
|
30
32
|
"PATCH": "PATCH",
|
|
31
33
|
"PUT": "PUT",
|
|
32
34
|
"DELETE": "BORRAR",
|
|
33
|
-
"HEAD": "LIMPIO"
|
|
35
|
+
"HEAD": "LIMPIO",
|
|
36
|
+
"None": "Ninguna",
|
|
37
|
+
"JSON": "JSON",
|
|
38
|
+
"Form Data": "Datos de Formulario",
|
|
39
|
+
"Raw": "Rápido"
|
|
34
40
|
}
|
package/src/i18n/fr.json
CHANGED
|
@@ -14,21 +14,27 @@
|
|
|
14
14
|
"Method": "Méthode",
|
|
15
15
|
"Headers": "Headers",
|
|
16
16
|
"Query Parameters": "Paramètres de requête",
|
|
17
|
+
"Body Type": "Body Type",
|
|
17
18
|
"Body": "Body",
|
|
18
19
|
"Response is Binary ?": "La réponse est Binaire ?",
|
|
19
20
|
"No Error on Failure": "Aucune erreur en cas d'échec",
|
|
20
21
|
"Timeout (in seconds)": "Délai d'expiration (en secondes)",
|
|
22
|
+
"Follow redirects": "Suivre les redirections",
|
|
21
23
|
"The prompt to send to the AI model.": "L'invite à envoyer au modèle IA.",
|
|
22
24
|
"Optional system message to set the behavior of the AI.": "Message système optionnel pour définir le comportement de l'IA.",
|
|
23
25
|
"Controls randomness (0-2). Lower values make output more focused.": "Contrôle aléatoirement (0-2). Les valeurs inférieures rendent la sortie plus ciblée.",
|
|
24
26
|
"Maximum number of tokens to generate.": "Nombre maximum de jetons à générer.",
|
|
25
27
|
"Controls diversity via nucleus sampling (0-1).": "Contrôle la diversité via l'échantillonnage du noyau (0-1).",
|
|
26
28
|
"Authorization headers are injected automatically from your connection.": "Les Headers d'autorisation sont injectés automatiquement à partir de votre connexion.",
|
|
27
|
-
"Enable for files like PDFs, images, etc
|
|
29
|
+
"Enable for files like PDFs, images, etc.": "Activer pour les fichiers comme les PDFs, les images, etc.",
|
|
28
30
|
"GET": "GET",
|
|
29
31
|
"POST": "POST",
|
|
30
32
|
"PATCH": "PATCH",
|
|
31
33
|
"PUT": "PUT",
|
|
32
34
|
"DELETE": "DELETE",
|
|
33
|
-
"HEAD": "HEAD"
|
|
35
|
+
"HEAD": "HEAD",
|
|
36
|
+
"None": "Aucun",
|
|
37
|
+
"JSON": "JSON",
|
|
38
|
+
"Form Data": "Données du formulaire",
|
|
39
|
+
"Raw": "Brut"
|
|
34
40
|
}
|
package/src/i18n/ja.json
CHANGED
|
@@ -14,21 +14,27 @@
|
|
|
14
14
|
"Method": "方法",
|
|
15
15
|
"Headers": "ヘッダー",
|
|
16
16
|
"Query Parameters": "クエリパラメータ",
|
|
17
|
+
"Body Type": "ボディタイプ",
|
|
17
18
|
"Body": "本文",
|
|
18
19
|
"Response is Binary ?": "応答はバイナリですか?",
|
|
19
20
|
"No Error on Failure": "失敗時にエラーはありません",
|
|
20
21
|
"Timeout (in seconds)": "タイムアウト(秒)",
|
|
22
|
+
"Follow redirects": "リダイレクトをフォローする",
|
|
21
23
|
"The prompt to send to the AI model.": "AIモデルに送信するプロンプト。",
|
|
22
24
|
"Optional system message to set the behavior of the AI.": "AIの動作を設定するオプションのシステムメッセージ。",
|
|
23
25
|
"Controls randomness (0-2). Lower values make output more focused.": "ランダム性(0-2)をコントロールします。低い値により出力がフォーカスされます。",
|
|
24
26
|
"Maximum number of tokens to generate.": "生成するトークンの最大数。",
|
|
25
27
|
"Controls diversity via nucleus sampling (0-1).": "核サンプリング(0-1)による多様性を制御します。",
|
|
26
28
|
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
|
|
27
|
-
"Enable for files like PDFs, images, etc
|
|
29
|
+
"Enable for files like PDFs, images, etc.": "PDF、画像などのファイルを有効にする",
|
|
28
30
|
"GET": "取得",
|
|
29
31
|
"POST": "POST",
|
|
30
32
|
"PATCH": "PATCH",
|
|
31
33
|
"PUT": "PUT",
|
|
32
34
|
"DELETE": "削除",
|
|
33
|
-
"HEAD": "頭"
|
|
35
|
+
"HEAD": "頭",
|
|
36
|
+
"None": "なし",
|
|
37
|
+
"JSON": "JSON",
|
|
38
|
+
"Form Data": "フォームデータ",
|
|
39
|
+
"Raw": "Raw"
|
|
34
40
|
}
|
package/src/i18n/nl.json
CHANGED
|
@@ -14,21 +14,27 @@
|
|
|
14
14
|
"Method": "Methode",
|
|
15
15
|
"Headers": "Kopteksten",
|
|
16
16
|
"Query Parameters": "Query parameters",
|
|
17
|
+
"Body Type": "Type lichaam",
|
|
17
18
|
"Body": "Lichaam",
|
|
18
19
|
"Response is Binary ?": "Antwoord is binair?",
|
|
19
20
|
"No Error on Failure": "Geen fout bij fout",
|
|
20
21
|
"Timeout (in seconds)": "Time-out (in seconden)",
|
|
22
|
+
"Follow redirects": "Volg omleidingen",
|
|
21
23
|
"The prompt to send to the AI model.": "De prompt om naar het AI-model te sturen.",
|
|
22
24
|
"Optional system message to set the behavior of the AI.": "Optioneel systeembericht om het gedrag van de AI in te stellen.",
|
|
23
25
|
"Controls randomness (0-2). Lower values make output more focused.": "Bepaalt willekeurigheid (0-2). Lagere waarden maken de uitvoer meer gefocust.",
|
|
24
26
|
"Maximum number of tokens to generate.": "Maximum aantal tokens om te genereren.",
|
|
25
27
|
"Controls diversity via nucleus sampling (0-1).": "Controleert de diversiteit via nucleus sampling (0-1).",
|
|
26
28
|
"Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
|
|
27
|
-
"Enable for files like PDFs, images, etc
|
|
29
|
+
"Enable for files like PDFs, images, etc.": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc.",
|
|
28
30
|
"GET": "KRIJG",
|
|
29
31
|
"POST": "POSTE",
|
|
30
32
|
"PATCH": "BEKIJK",
|
|
31
33
|
"PUT": "PUT",
|
|
32
34
|
"DELETE": "VERWIJDEREN",
|
|
33
|
-
"HEAD": "HOOFD"
|
|
35
|
+
"HEAD": "HOOFD",
|
|
36
|
+
"None": "geen",
|
|
37
|
+
"JSON": "JSON",
|
|
38
|
+
"Form Data": "Formulieren gegevens",
|
|
39
|
+
"Raw": "Onbewerkte"
|
|
34
40
|
}
|
package/src/i18n/pt.json
CHANGED
|
@@ -14,21 +14,27 @@
|
|
|
14
14
|
"Method": "Método",
|
|
15
15
|
"Headers": "Cabeçalhos",
|
|
16
16
|
"Query Parameters": "Parâmetros da consulta",
|
|
17
|
+
"Body Type": "Tipo de Corpo",
|
|
17
18
|
"Body": "Conteúdo",
|
|
18
19
|
"Response is Binary ?": "A resposta é binária ?",
|
|
19
20
|
"No Error on Failure": "Nenhum erro no Failure",
|
|
20
21
|
"Timeout (in seconds)": "Tempo limite (em segundos)",
|
|
22
|
+
"Follow redirects": "Seguir redirecionamentos",
|
|
21
23
|
"The prompt to send to the AI model.": "O prompt para enviar ao modelo de IA",
|
|
22
24
|
"Optional system message to set the behavior of the AI.": "Mensagem opcional do sistema para definir o comportamento da IA.",
|
|
23
25
|
"Controls randomness (0-2). Lower values make output more focused.": "Controla a aleatoriedade (0-2). Valores mais baixos tornam a saída mais focada.",
|
|
24
26
|
"Maximum number of tokens to generate.": "Número máximo de tokens a serem gerados.",
|
|
25
27
|
"Controls diversity via nucleus sampling (0-1).": "Controla a diversidade através de amostragem nuclear (0-1).",
|
|
26
28
|
"Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
|
|
27
|
-
"Enable for files like PDFs, images, etc
|
|
29
|
+
"Enable for files like PDFs, images, etc.": "Habilitar para arquivos como PDFs, imagens, etc.",
|
|
28
30
|
"GET": "OBTER",
|
|
29
31
|
"POST": "POSTAR",
|
|
30
32
|
"PATCH": "COMPRAR",
|
|
31
33
|
"PUT": "COLOCAR",
|
|
32
34
|
"DELETE": "EXCLUIR",
|
|
33
|
-
"HEAD": "CABEÇA"
|
|
35
|
+
"HEAD": "CABEÇA",
|
|
36
|
+
"None": "Nenhuma",
|
|
37
|
+
"JSON": "JSON",
|
|
38
|
+
"Form Data": "Dados de Formulário",
|
|
39
|
+
"Raw": "RAW"
|
|
34
40
|
}
|
|
@@ -14,21 +14,27 @@
|
|
|
14
14
|
"Method": "Method",
|
|
15
15
|
"Headers": "Headers",
|
|
16
16
|
"Query Parameters": "Query Parameters",
|
|
17
|
+
"Body Type": "Body Type",
|
|
17
18
|
"Body": "Body",
|
|
18
19
|
"Response is Binary ?": "Response is Binary ?",
|
|
19
20
|
"No Error on Failure": "No Error on Failure",
|
|
20
21
|
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
22
|
+
"Follow redirects": "Follow redirects",
|
|
21
23
|
"The prompt to send to the AI model.": "The prompt to send to the AI model.",
|
|
22
24
|
"Optional system message to set the behavior of the AI.": "Optional system message to set the behavior of the AI.",
|
|
23
25
|
"Controls randomness (0-2). Lower values make output more focused.": "Controls randomness (0-2). Lower values make output more focused.",
|
|
24
26
|
"Maximum number of tokens to generate.": "Maximum number of tokens to generate.",
|
|
25
27
|
"Controls diversity via nucleus sampling (0-1).": "Controls diversity via nucleus sampling (0-1).",
|
|
26
28
|
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
27
|
-
"Enable for files like PDFs, images, etc
|
|
29
|
+
"Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
|
|
28
30
|
"GET": "GET",
|
|
29
31
|
"POST": "POST",
|
|
30
32
|
"PATCH": "PATCH",
|
|
31
33
|
"PUT": "PUT",
|
|
32
34
|
"DELETE": "DELETE",
|
|
33
|
-
"HEAD": "HEAD"
|
|
35
|
+
"HEAD": "HEAD",
|
|
36
|
+
"None": "None",
|
|
37
|
+
"JSON": "JSON",
|
|
38
|
+
"Form Data": "Form Data",
|
|
39
|
+
"Raw": "Raw"
|
|
34
40
|
}
|
package/src/i18n/zh.json
CHANGED
|
@@ -14,21 +14,27 @@
|
|
|
14
14
|
"Method": "方法",
|
|
15
15
|
"Headers": "信头",
|
|
16
16
|
"Query Parameters": "查询参数",
|
|
17
|
+
"Body Type": "Body Type",
|
|
17
18
|
"Body": "正文内容",
|
|
18
19
|
"Response is Binary ?": "Response is Binary ?",
|
|
19
20
|
"No Error on Failure": "失败时没有错误",
|
|
20
21
|
"Timeout (in seconds)": "超时(秒)",
|
|
22
|
+
"Follow redirects": "Follow redirects",
|
|
21
23
|
"The prompt to send to the AI model.": "The prompt to send to the AI model.",
|
|
22
24
|
"Optional system message to set the behavior of the AI.": "Optional system message to set the behavior of the AI.",
|
|
23
25
|
"Controls randomness (0-2). Lower values make output more focused.": "Controls randomness (0-2). Lower values make output more focused.",
|
|
24
26
|
"Maximum number of tokens to generate.": "Maximum number of tokens to generate.",
|
|
25
27
|
"Controls diversity via nucleus sampling (0-1).": "Controls diversity via nucleus sampling (0-1).",
|
|
26
28
|
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
|
|
27
|
-
"Enable for files like PDFs, images, etc
|
|
29
|
+
"Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
|
|
28
30
|
"GET": "获取",
|
|
29
31
|
"POST": "帖子",
|
|
30
32
|
"PATCH": "PATCH",
|
|
31
33
|
"PUT": "弹出",
|
|
32
34
|
"DELETE": "删除",
|
|
33
|
-
"HEAD": "黑色"
|
|
35
|
+
"HEAD": "黑色",
|
|
36
|
+
"None": "无",
|
|
37
|
+
"JSON": "JSON",
|
|
38
|
+
"Form Data": "表单数据",
|
|
39
|
+
"Raw": "原始文件"
|
|
34
40
|
}
|
package/src/index.js
CHANGED
|
@@ -22,7 +22,7 @@ exports.cometapi = (0, pieces_framework_1.createPiece)({
|
|
|
22
22
|
auth: auth_1.cometApiAuth,
|
|
23
23
|
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
24
24
|
return {
|
|
25
|
-
Authorization: `Bearer ${auth}`,
|
|
25
|
+
Authorization: `Bearer ${auth.secret_text}`,
|
|
26
26
|
};
|
|
27
27
|
}),
|
|
28
28
|
}),
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/cometapi/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA6D;AAC7D,iDAAqD;AACrD,+DAAwE;AACxE,4CAA2D;AAC3D,6DAA+D;AAElD,QAAA,QAAQ,GAAG,IAAA,8BAAW,EAAC;IAClC,WAAW,EAAE,UAAU;IACvB,WAAW,EACT,mGAAmG;IACrG,IAAI,EAAE,mBAAY;IAClB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,kDAAkD;IAC3D,UAAU,EAAE,CAAC,sBAAa,CAAC,uBAAuB,CAAC;IACnD,OAAO,EAAE,CAAC,YAAY,CAAC;IACvB,OAAO,EAAE;QACP,gCAAiB;QACjB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,eAAQ;YACvB,IAAI,EAAE,mBAAY;YAClB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,OAAO;oBACL,aAAa,EAAE,UAAU,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/cometapi/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA6D;AAC7D,iDAAqD;AACrD,+DAAwE;AACxE,4CAA2D;AAC3D,6DAA+D;AAElD,QAAA,QAAQ,GAAG,IAAA,8BAAW,EAAC;IAClC,WAAW,EAAE,UAAU;IACvB,WAAW,EACT,mGAAmG;IACrG,IAAI,EAAE,mBAAY;IAClB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,kDAAkD;IAC3D,UAAU,EAAE,CAAC,sBAAa,CAAC,uBAAuB,CAAC;IACnD,OAAO,EAAE,CAAC,YAAY,CAAC;IACvB,OAAO,EAAE;QACP,gCAAiB;QACjB,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,eAAQ;YACvB,IAAI,EAAE,mBAAY;YAClB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,OAAO;oBACL,aAAa,EAAE,UAAU,IAAI,CAAC,WAAW,EAAE;iBAC5C,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const askCometApiAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
model: import("@activepieces/pieces-framework").DropdownProperty<string, true
|
|
2
|
+
model: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
3
|
prompt: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
4
4
|
systemMessage: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
5
5
|
temperature: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
@@ -84,7 +84,7 @@ exports.askCometApiAction = (0, pieces_framework_1.createAction)({
|
|
|
84
84
|
body: requestBody,
|
|
85
85
|
authentication: {
|
|
86
86
|
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
87
|
-
token: context.auth,
|
|
87
|
+
token: context.auth.secret_text,
|
|
88
88
|
},
|
|
89
89
|
headers: {
|
|
90
90
|
'Content-Type': 'application/json',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ask-cometapi.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/cometapi/src/lib/actions/ask-cometapi.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAMqC;AACrC,yCAA8C;AAC9C,6BAAwB;AACxB,2CAAkD;AA2BrC,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,uDAAuD;IACpE,IAAI,EAAE,mBAAY;IAClB,KAAK,EAAE;QACL,KAAK,EAAE,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AAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,GAClE,OAAO,CAAC,UAAU,CAAC;YAErB,uBAAuB;YACvB,MAAM,QAAQ,GAAkB,EAAE,CAAC;YAEnC,IAAI,aAAa,EAAE,CAAC;gBAClB,QAAQ,CAAC,IAAI,CAAC;oBACZ,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,aAAa;iBACvB,CAAC,CAAC;YACL,CAAC;YAED,QAAQ,CAAC,IAAI,CAAC;gBACZ,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,MAAM;aAChB,CAAC,CAAC;YAEH,qBAAqB;YACrB,MAAM,WAAW,GAA4B;gBAC3C,KAAK,EAAE,KAAK;gBACZ,QAAQ,EAAE,QAAQ;aACnB,CAAC;YAEF,0BAA0B;YAC1B,IAAI,WAAW,KAAK,SAAS;gBAAE,WAAW,CAAC,aAAa,CAAC,GAAG,WAAW,CAAC;YACxE,IAAI,SAAS,KAAK,SAAS;gBAAE,WAAW,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;YACnE,IAAI,IAAI,KAAK,SAAS;gBAAE,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;YAEpD,gBAAgB;YAChB,MAAM,OAAO,GAAgB;gBAC3B,GAAG,EAAE,8CAA8C;gBACnD,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,WAAW;gBACjB,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI;
|
|
1
|
+
{"version":3,"file":"ask-cometapi.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/cometapi/src/lib/actions/ask-cometapi.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAMqC;AACrC,yCAA8C;AAC9C,6BAAwB;AACxB,2CAAkD;AA2BrC,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,cAA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AE,CAAC,CAAC;gBAC/C,CAAC;gBAED,IAAI,CAAA,MAAA,QAAQ,CAAC,QAAQ,0CAAE,MAAM,KAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,IAAI,GAAG,EAAE,CAAC;oBACjE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;gBAC3D,CAAC;gBAED,MAAM,IAAI,KAAK,CAAC,mBAAmB,QAAQ,CAAC,OAAO,IAAI,eAAe,EAAE,CAAC,CAAC;YAC5E,CAAC;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/cometapi/src/lib/common/auth.ts"],"names":[],"mappings":";;;;AAAA,+DAIqC;AACrC,qEAA2D;AAE3D,MAAM,mBAAmB,GAAG;;;;;;CAM3B,CAAC;AAEW,QAAA,QAAQ,GAAG,6BAA6B,CAAC;AAEzC,QAAA,YAAY,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC/C,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;QACvB,IAAI,CAAC;YACH,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC3B,GAAG,EAAE,gBAAQ,GAAG,SAAS;gBACzB,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/cometapi/src/lib/common/auth.ts"],"names":[],"mappings":";;;;AAAA,+DAIqC;AACrC,qEAA2D;AAE3D,MAAM,mBAAmB,GAAG;;;;;;CAM3B,CAAC;AAEW,QAAA,QAAQ,GAAG,6BAA6B,CAAC;AAEzC,QAAA,YAAY,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC/C,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;QACvB,IAAI,CAAC;YACH,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC3B,GAAG,EAAE,gBAAQ,GAAG,SAAS;gBACzB,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,IAAI;iBACZ;gBACD,MAAM,EAAE,0BAAU,CAAC,GAAG;aACvB,CAAC,CAAC;YAEH,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;QACzB,CAAC;QAAC,WAAM,CAAC;YACP,OAAO;gBACL,KAAK,EAAE,KAAK;gBACZ,KAAK,EAAE,kBAAkB;aAC1B,CAAC;QACJ,CAAC;IACH,CAAC,CAAA;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const modelIdDropdown: import("@activepieces/pieces-framework").DropdownProperty<string, true
|
|
1
|
+
export declare const modelIdDropdown: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
package/src/lib/common/props.js
CHANGED
|
@@ -5,8 +5,10 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
6
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
7
|
const auth_1 = require("./auth");
|
|
8
|
+
const auth_2 = require("./auth");
|
|
8
9
|
exports.modelIdDropdown = pieces_framework_1.Property.Dropdown({
|
|
9
10
|
displayName: 'Model',
|
|
11
|
+
auth: auth_2.cometApiAuth,
|
|
10
12
|
refreshers: [],
|
|
11
13
|
required: true,
|
|
12
14
|
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
@@ -21,7 +23,7 @@ exports.modelIdDropdown = pieces_framework_1.Property.Dropdown({
|
|
|
21
23
|
url: auth_1.BASE_URL + '/models',
|
|
22
24
|
authentication: {
|
|
23
25
|
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
24
|
-
token: auth,
|
|
26
|
+
token: auth.secret_text,
|
|
25
27
|
},
|
|
26
28
|
method: pieces_common_1.HttpMethod.GET,
|
|
27
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/cometapi/src/lib/common/props.ts"],"names":[],"mappings":";;;;AAAA,+DAIqC;AACrC,qEAA0D;AAC1D,iCAAkC;
|
|
1
|
+
{"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/cometapi/src/lib/common/props.ts"],"names":[],"mappings":";;;;AAAA,+DAIqC;AACrC,qEAA0D;AAC1D,iCAAkC;AAClC,iCAAsC;AAEzB,QAAA,eAAe,GAAG,2BAAQ,CAAC,QAAQ,CAAC;IAC/C,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,mBAAY;IAClB,UAAU,EAAE,EAAE;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;QACtB,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO;gBACL,WAAW,EAAE,oCAAoC;gBACjD,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACZ,CAAC;QACJ,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAE1C;YACD,GAAG,EAAE,eAAQ,GAAG,SAAS;YACzB,cAAc,EAAE;gBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;gBACrC,KAAK,EAAE,IAAI,CAAC,WAAW;aACxB;YACD,MAAM,EAAE,0BAAU,CAAC,GAAG;SACvB,CAAC,CAAC;QAEH,OAAO;YACL,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;gBAC1C,KAAK,EAAE,GAAG,KAAK,CAAC,EAAE,KAAK,KAAK,CAAC,QAAQ,GAAG;gBACxC,KAAK,EAAE,KAAK,CAAC,EAAE;aAChB,CAAC,CAAC;SACJ,CAAC;IACJ,CAAC,CAAA;CACF,CAAC,CAAC"}
|