n8n-nodes-openrouter-clean 1.0.0
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/dist/credentials/OpenRouterCleanApi.credentials.d.ts +10 -0
- package/dist/credentials/OpenRouterCleanApi.credentials.d.ts.map +1 -0
- package/dist/credentials/OpenRouterCleanApi.credentials.js +38 -0
- package/dist/credentials/OpenRouterCleanApi.credentials.js.map +1 -0
- package/dist/nodes/OpenRouter/OpenRouterChat.node.d.ts +11 -0
- package/dist/nodes/OpenRouter/OpenRouterChat.node.d.ts.map +1 -0
- package/dist/nodes/OpenRouter/OpenRouterChat.node.js +959 -0
- package/dist/nodes/OpenRouter/OpenRouterChat.node.js.map +1 -0
- package/dist/nodes/OpenRouter/OpenRouterModels.node.d.ts +6 -0
- package/dist/nodes/OpenRouter/OpenRouterModels.node.d.ts.map +1 -0
- package/dist/nodes/OpenRouter/OpenRouterModels.node.js +256 -0
- package/dist/nodes/OpenRouter/OpenRouterModels.node.js.map +1 -0
- package/dist/nodes/OpenRouter/OpenRouterStt.node.d.ts +11 -0
- package/dist/nodes/OpenRouter/OpenRouterStt.node.d.ts.map +1 -0
- package/dist/nodes/OpenRouter/OpenRouterStt.node.js +237 -0
- package/dist/nodes/OpenRouter/OpenRouterStt.node.js.map +1 -0
- package/dist/nodes/OpenRouter/OpenRouterTts.node.d.ts +11 -0
- package/dist/nodes/OpenRouter/OpenRouterTts.node.d.ts.map +1 -0
- package/dist/nodes/OpenRouter/OpenRouterTts.node.js +197 -0
- package/dist/nodes/OpenRouter/OpenRouterTts.node.js.map +1 -0
- package/dist/nodes/OpenRouter/openrouter.svg +9 -0
- package/package.json +50 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class OpenRouterCleanApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
properties: INodeProperties[];
|
|
7
|
+
authenticate: IAuthenticateGeneric;
|
|
8
|
+
test: ICredentialTestRequest;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=OpenRouterCleanApi.credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenRouterCleanApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/OpenRouterCleanApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,MAAM,cAAc,CAAC;AAEtB,qBAAa,kBAAmB,YAAW,eAAe;IACzD,IAAI,SAAwB;IAC5B,WAAW,SAAoB;IAC/B,gBAAgB,SAA8C;IAC9D,UAAU,EAAE,eAAe,EAAE,CAU3B;IAEF,YAAY,EAAE,oBAAoB,CAOhC;IAEF,IAAI,EAAE,sBAAsB,CAM1B;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenRouterCleanApi = void 0;
|
|
4
|
+
class OpenRouterCleanApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'openRouterCleanApi';
|
|
7
|
+
this.displayName = 'OpenRouter API';
|
|
8
|
+
this.documentationUrl = 'https://openrouter.ai/docs/api-reference';
|
|
9
|
+
this.properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'API Key',
|
|
12
|
+
name: 'apiKey',
|
|
13
|
+
type: 'string',
|
|
14
|
+
typeOptions: { password: true },
|
|
15
|
+
default: '',
|
|
16
|
+
required: true,
|
|
17
|
+
description: 'Your OpenRouter API key. Get it from openrouter.ai/keys',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
this.authenticate = {
|
|
21
|
+
type: 'generic',
|
|
22
|
+
properties: {
|
|
23
|
+
headers: {
|
|
24
|
+
Authorization: '=Bearer {{$credentials.apiKey}}',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
this.test = {
|
|
29
|
+
request: {
|
|
30
|
+
baseURL: 'https://openrouter.ai/api/v1',
|
|
31
|
+
url: '/models',
|
|
32
|
+
method: 'GET',
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.OpenRouterCleanApi = OpenRouterCleanApi;
|
|
38
|
+
//# sourceMappingURL=OpenRouterCleanApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenRouterCleanApi.credentials.js","sourceRoot":"","sources":["../../credentials/OpenRouterCleanApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,kBAAkB;IAA/B;QACC,SAAI,GAAG,oBAAoB,CAAC;QAC5B,gBAAW,GAAG,gBAAgB,CAAC;QAC/B,qBAAgB,GAAG,0CAA0C,CAAC;QAC9D,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,yDAAyD;aACtE;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,8BAA8B;gBACvC,GAAG,EAAE,SAAS;gBACd,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAhCD,gDAgCC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class OpenRouterChat implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
methods: {
|
|
5
|
+
loadOptions: {
|
|
6
|
+
getModels(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=OpenRouterChat.node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenRouterChat.node.d.ts","sourceRoot":"","sources":["../../../nodes/OpenRouter/OpenRouterChat.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,oBAAoB,EACpB,MAAM,cAAc,CAAC;AAEtB,qBAAa,cAAe,YAAW,SAAS;IAC/C,WAAW,EAAE,oBAAoB,CAwoB/B;IAEF,OAAO;;4BAEiB,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;;MAiC7E;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CA4SvE"}
|