n8n-nodes-mnexium 0.1.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/LICENSE +21 -0
- package/README.md +51 -0
- package/dist/credentials/MnexiumApi.credentials.d.ts +9 -0
- package/dist/credentials/MnexiumApi.credentials.js +68 -0
- package/dist/credentials/MnexiumApi.credentials.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/Mnexium/Mnexium.node.d.ts +5 -0
- package/dist/nodes/Mnexium/Mnexium.node.js +728 -0
- package/dist/nodes/Mnexium/Mnexium.node.js.map +1 -0
- package/dist/nodes/Mnexium/mnexium.helpers.d.ts +11 -0
- package/dist/nodes/Mnexium/mnexium.helpers.js +164 -0
- package/dist/nodes/Mnexium/mnexium.helpers.js.map +1 -0
- package/dist/nodes/Mnexium/mnexium.png +0 -0
- package/dist/nodes/Mnexium/mnexium.properties.d.ts +2 -0
- package/dist/nodes/Mnexium/mnexium.properties.js +1562 -0
- package/dist/nodes/Mnexium/mnexium.properties.js.map +1 -0
- package/package.json +62 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mnexium
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# n8n-nodes-mnexium
|
|
2
|
+
|
|
3
|
+
Official Mnexium community node for n8n.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Chat completions with Mnexium memory controls
|
|
8
|
+
- Chat history (list, read, delete)
|
|
9
|
+
- Memories (list, search, create, get, update, delete, restore, recalls, claims)
|
|
10
|
+
- Claims (create, get, retract, truth, slot, history, graph)
|
|
11
|
+
- Profiles (get, schema, update, delete field)
|
|
12
|
+
- State (get, set, delete)
|
|
13
|
+
- Record schemas and records
|
|
14
|
+
- System prompts and memory policies
|
|
15
|
+
- Audit request listing
|
|
16
|
+
- Custom API call (resource-level) for direct Mnexium endpoint access
|
|
17
|
+
|
|
18
|
+
## Credentials
|
|
19
|
+
|
|
20
|
+
Credential type: `Mnexium API + Model Keys`
|
|
21
|
+
|
|
22
|
+
- `Mnexium API Key` (optional for eligible trial/free-tier flows)
|
|
23
|
+
- `OpenAI API Key` (optional, sent as `x-openai-key`)
|
|
24
|
+
- `Anthropic API Key` (optional, sent as `x-anthropic-key`)
|
|
25
|
+
- `Google API Key` (optional, sent as `x-google-key`)
|
|
26
|
+
|
|
27
|
+
Docs: [https://www.mnexium.com/docs](https://www.mnexium.com/docs)
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
Install from npm in your n8n environment:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npm install n8n-nodes-mnexium
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Then restart n8n.
|
|
38
|
+
|
|
39
|
+
## Development
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm install
|
|
43
|
+
npm run build
|
|
44
|
+
npm run lint
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Notes
|
|
48
|
+
|
|
49
|
+
- The node can run without a Mnexium API key for supported trial flows.
|
|
50
|
+
- Provider model keys are still required when the selected model provider requires them.
|
|
51
|
+
- Custom API calls are restricted to HTTPS requests on `mnexium.com`.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialType, Icon, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class MnexiumApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
icon: Icon;
|
|
6
|
+
documentationUrl: string;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
authenticate: IAuthenticateGeneric;
|
|
9
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MnexiumApi = void 0;
|
|
4
|
+
class MnexiumApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'mnexiumApi';
|
|
7
|
+
this.displayName = 'Mnexium API + Model Keys';
|
|
8
|
+
this.icon = 'fa:shield-alt';
|
|
9
|
+
this.documentationUrl = 'https://www.mnexium.com/docs';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Mnexium API Key (Optional for Free Tier)',
|
|
13
|
+
name: 'apiKey',
|
|
14
|
+
type: 'string',
|
|
15
|
+
typeOptions: {
|
|
16
|
+
password: true,
|
|
17
|
+
},
|
|
18
|
+
default: '',
|
|
19
|
+
required: false,
|
|
20
|
+
placeholder: 'Leave blank for free tier, or paste key from mnexium.com',
|
|
21
|
+
description: 'Get a key at https://www.mnexium.com. Leave empty to use free-tier trial provisioning when available.',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
displayName: 'OpenAI API Key',
|
|
25
|
+
name: 'openAiKey',
|
|
26
|
+
type: 'string',
|
|
27
|
+
typeOptions: {
|
|
28
|
+
password: true,
|
|
29
|
+
},
|
|
30
|
+
default: '',
|
|
31
|
+
placeholder: 'sk-... (required for OpenAI models)',
|
|
32
|
+
description: 'Optional. Used as x-openai-key for chat models.',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Anthropic API Key',
|
|
36
|
+
name: 'anthropicKey',
|
|
37
|
+
type: 'string',
|
|
38
|
+
typeOptions: {
|
|
39
|
+
password: true,
|
|
40
|
+
},
|
|
41
|
+
default: '',
|
|
42
|
+
placeholder: 'sk-ant-... (required for Anthropic models)',
|
|
43
|
+
description: 'Optional. Used as x-anthropic-key for chat models.',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Google API Key',
|
|
47
|
+
name: 'googleKey',
|
|
48
|
+
type: 'string',
|
|
49
|
+
typeOptions: {
|
|
50
|
+
password: true,
|
|
51
|
+
},
|
|
52
|
+
default: '',
|
|
53
|
+
placeholder: 'AIza... (required for Google models)',
|
|
54
|
+
description: 'Optional. Used as x-google-key for chat models.',
|
|
55
|
+
},
|
|
56
|
+
];
|
|
57
|
+
this.authenticate = {
|
|
58
|
+
type: 'generic',
|
|
59
|
+
properties: {
|
|
60
|
+
headers: {
|
|
61
|
+
'x-mnexium-key': '={{$credentials.apiKey}}',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.MnexiumApi = MnexiumApi;
|
|
68
|
+
//# sourceMappingURL=MnexiumApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MnexiumApi.credentials.js","sourceRoot":"","sources":["../../credentials/MnexiumApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QACpB,gBAAW,GAAG,0BAA0B,CAAC;QACzC,SAAI,GAAS,eAAe,CAAC;QAC7B,qBAAgB,GAAG,8BAA8B,CAAC;QAElD,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,0CAA0C;gBACvD,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,0DAA0D;gBACvE,WAAW,EACV,uGAAuG;aACxG;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,qCAAqC;gBAClD,WAAW,EAAE,iDAAiD;aAC9D;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,4CAA4C;gBACzD,WAAW,EAAE,oDAAoD;aACjE;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sCAAsC;gBACnD,WAAW,EAAE,iDAAiD;aAC9D;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,eAAe,EAAE,0BAA0B;iBAC3C;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA/DD,gCA+DC"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./credentials/MnexiumApi.credentials"), exports);
|
|
18
|
+
__exportStar(require("./nodes/Mnexium/Mnexium.node"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAqD;AACrD,+DAA6C"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type IExecuteFunctions, type INodeExecutionData, type INodeType, type INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class Mnexium implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
+
}
|