2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2021-09-18 13:45:57 -07:00
|
|
|
|
|
|
|
export class MispApi implements ICredentialType {
|
|
|
|
name = 'mispApi';
|
|
|
|
displayName = 'MISP API';
|
|
|
|
documentationUrl = 'misp';
|
|
|
|
properties: INodeProperties[] = [
|
|
|
|
{
|
|
|
|
displayName: 'API Key',
|
|
|
|
name: 'apiKey',
|
|
|
|
type: 'string',
|
2022-11-01 09:41:45 -07:00
|
|
|
typeOptions: { password: true },
|
2021-09-18 13:45:57 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Base URL',
|
|
|
|
name: 'baseUrl',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Allow Unauthorized Certificates',
|
|
|
|
name: 'allowUnauthorizedCerts',
|
|
|
|
type: 'boolean',
|
2022-06-20 07:54:01 -07:00
|
|
|
description: 'Whether to connect even if SSL certificate validation is not possible',
|
2021-09-18 13:45:57 -07:00
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|