n8n-nodes-cala 0.3.1 → 0.3.2
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.
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
1
|
+
import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
2
|
export declare class CalaApi implements ICredentialType {
|
|
3
3
|
name: string;
|
|
4
4
|
displayName: string;
|
|
5
5
|
documentationUrl: string;
|
|
6
6
|
properties: INodeProperties[];
|
|
7
|
+
authenticate: IAuthenticateGeneric;
|
|
8
|
+
test: ICredentialTestRequest;
|
|
7
9
|
}
|
|
@@ -19,6 +19,24 @@ class CalaApi {
|
|
|
19
19
|
description: 'Your Cala API key',
|
|
20
20
|
},
|
|
21
21
|
];
|
|
22
|
+
this.authenticate = {
|
|
23
|
+
type: 'generic',
|
|
24
|
+
properties: {
|
|
25
|
+
headers: {
|
|
26
|
+
'X-API-KEY': '={{$credentials.apiKey}}',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
this.test = {
|
|
31
|
+
request: {
|
|
32
|
+
baseURL: 'https://api.cala.ai',
|
|
33
|
+
url: '/v1/knowledge/search',
|
|
34
|
+
method: 'POST',
|
|
35
|
+
body: {
|
|
36
|
+
input: 'test',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
};
|
|
22
40
|
}
|
|
23
41
|
}
|
|
24
42
|
exports.CalaApi = CalaApi;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-cala",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "n8n nodes for Cala AI knowledge search",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -58,6 +58,9 @@
|
|
|
58
58
|
"volta": {
|
|
59
59
|
"node": "22.13.1"
|
|
60
60
|
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"n8n-nodes-cala": "^0.3.1"
|
|
63
|
+
},
|
|
61
64
|
"scripts": {
|
|
62
65
|
"build": "tsc && gulp build:icons",
|
|
63
66
|
"dev": "tsc --watch",
|