n8n-nodes-binalyze-air
Version:
Binalyze AIR nodes for automating DFIR with n8n workflows
32 lines (31 loc) • 1.16 kB
TypeScript
import { IExecuteFunctions, ILoadOptionsFunctions } from 'n8n-workflow';
import { AirCredentials } from '../../../../../credentials/AirApi.credentials';
export interface Note {
_id: string;
value: string;
writtenAt: string;
writtenBy: string;
}
export interface AddNoteResponse {
success: boolean;
result: Note;
statusCode: number;
errors: string[];
}
export interface UpdateNoteResponse {
success: boolean;
result: Note;
statusCode: number;
errors: string[];
}
export interface DeleteNoteResponse {
success: boolean;
result: null;
statusCode: number;
errors: string[];
}
export declare const api: {
addNote(context: IExecuteFunctions | ILoadOptionsFunctions, credentials: AirCredentials, caseId: string, noteValue: string): Promise<AddNoteResponse>;
updateNote(context: IExecuteFunctions | ILoadOptionsFunctions, credentials: AirCredentials, caseId: string, noteId: string, noteValue: string): Promise<UpdateNoteResponse>;
deleteNote(context: IExecuteFunctions | ILoadOptionsFunctions, credentials: AirCredentials, caseId: string, noteId: string): Promise<DeleteNoteResponse>;
};