Add MISP node (#2126)

*  Create MISP node

*  Improvements

*  Refactor tags type

*  Refactor tag into eventTag

*  Add required params to feed:create

*  Change endpoint for tag:getAll

*  Add description to role ID

*  Small improvements

*  Improvements

* 🔥 Remove empty file

*  Add sharing group ID param

* 🔥 Remove param with no effect

* 🔨 Refactor sharing group to remove duplication

* 🔥 Remove param with no effect

*  Validate URL in feed resource

* ✏️ Rename Inviter param

* ✏️ Reword dynamic list param descriptions

*  Clean up error handling

* 👕 Nodelinter pass

* 🔥 Remove unused import

* 🔨 Change param to color type

*  Improvements

*  Fix color

Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
Iván Ovejero
2021-09-18 22:45:57 +02:00
committed by GitHub
parent 5ea4dc03b8
commit 45e2830555
17 changed files with 3462 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import {
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class MispApi implements ICredentialType {
name = 'mispApi';
displayName = 'MISP API';
documentationUrl = 'misp';
properties: INodeProperties[] = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
default: '',
},
{
displayName: 'Base URL',
name: 'baseUrl',
type: 'string',
default: '',
},
{
displayName: 'Allow Unauthorized Certificates',
name: 'allowUnauthorizedCerts',
type: 'boolean',
default: false,
},
];
}