2022-08-17 08:50:24 -07:00
|
|
|
import { IDataObject } from 'n8n-workflow';
|
2020-12-02 02:54:10 -08:00
|
|
|
export enum AlertStatus {
|
|
|
|
NEW = 'New',
|
|
|
|
UPDATED = 'Updated',
|
|
|
|
IGNORED = 'Ignored',
|
|
|
|
IMPORTED = 'Imported',
|
2020-12-02 02:24:25 -08:00
|
|
|
}
|
2020-12-02 02:54:10 -08:00
|
|
|
export enum TLP {
|
|
|
|
white,
|
|
|
|
green,
|
|
|
|
amber,
|
|
|
|
red,
|
2020-12-02 02:24:25 -08:00
|
|
|
}
|
|
|
|
|
2020-12-02 02:54:10 -08:00
|
|
|
export interface IAlert {
|
|
|
|
// Required attributes
|
|
|
|
id?: string;
|
|
|
|
title?: string;
|
|
|
|
description?: string;
|
|
|
|
severity?: number;
|
|
|
|
date?: Date;
|
|
|
|
tags?: string[];
|
|
|
|
tlp?: TLP;
|
|
|
|
status?: AlertStatus;
|
|
|
|
type?: string;
|
|
|
|
source?: string;
|
|
|
|
sourceRef?: string;
|
|
|
|
artifacts?: IDataObject[];
|
|
|
|
follow?: boolean;
|
2020-12-02 02:24:25 -08:00
|
|
|
|
2020-12-02 02:54:10 -08:00
|
|
|
// Optional attributes
|
|
|
|
caseTemplate?: string;
|
2020-12-02 02:24:25 -08:00
|
|
|
|
2020-12-02 02:54:10 -08:00
|
|
|
// Backend generated attributes
|
|
|
|
lastSyncDate?: Date;
|
|
|
|
case?: string;
|
2020-12-02 02:24:25 -08:00
|
|
|
|
2020-12-02 02:54:10 -08:00
|
|
|
createdBy?: string;
|
|
|
|
createdAt?: Date;
|
|
|
|
updatedBy?: string;
|
|
|
|
upadtedAt?: Date;
|
2020-12-02 02:24:25 -08:00
|
|
|
}
|