@zivego/n8n-nodes-dfir-iris 3.0.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.md +19 -0
- package/README.md +75 -0
- package/dist/credentials/DfirIrisApi.credentials.js +90 -0
- package/dist/credentials/icons/iris.svg +6 -0
- package/dist/nodes/DfirIris/DfirIris.node.js +25 -0
- package/dist/nodes/DfirIris/DfirIris.node.json +18 -0
- package/dist/nodes/DfirIris/iris.svg +6 -0
- package/dist/nodes/DfirIris/v1/DfirIrisV1.node.js +22 -0
- package/dist/nodes/DfirIris/v1/actions/alert/Alert.resource.js +78 -0
- package/dist/nodes/DfirIris/v1/actions/alert/batchDelete.operation.js +82 -0
- package/dist/nodes/DfirIris/v1/actions/alert/batchUpdate.operation.js +129 -0
- package/dist/nodes/DfirIris/v1/actions/alert/commonDescription.js +537 -0
- package/dist/nodes/DfirIris/v1/actions/alert/countAlerts.operation.js +139 -0
- package/dist/nodes/DfirIris/v1/actions/alert/create.operation.js +160 -0
- package/dist/nodes/DfirIris/v1/actions/alert/deleteAlert.operation.js +72 -0
- package/dist/nodes/DfirIris/v1/actions/alert/escalate.operation.js +150 -0
- package/dist/nodes/DfirIris/v1/actions/alert/filterAlerts.operation.js +171 -0
- package/dist/nodes/DfirIris/v1/actions/alert/get.operation.js +107 -0
- package/dist/nodes/DfirIris/v1/actions/alert/getRelations.operation.js +118 -0
- package/dist/nodes/DfirIris/v1/actions/alert/merge.operation.js +141 -0
- package/dist/nodes/DfirIris/v1/actions/alert/unmerge.operation.js +100 -0
- package/dist/nodes/DfirIris/v1/actions/alert/update.operation.js +212 -0
- package/dist/nodes/DfirIris/v1/actions/apiRequest/ApiRequest.resource.js +313 -0
- package/dist/nodes/DfirIris/v1/actions/asset/Asset.resource.js +57 -0
- package/dist/nodes/DfirIris/v1/actions/asset/commonDescription.js +101 -0
- package/dist/nodes/DfirIris/v1/actions/asset/create.operation.js +130 -0
- package/dist/nodes/DfirIris/v1/actions/asset/deleteAsset.operation.js +79 -0
- package/dist/nodes/DfirIris/v1/actions/asset/get.operation.js +83 -0
- package/dist/nodes/DfirIris/v1/actions/asset/getAll.operation.js +72 -0
- package/dist/nodes/DfirIris/v1/actions/asset/update.operation.js +107 -0
- package/dist/nodes/DfirIris/v1/actions/case/Case.resource.js +69 -0
- package/dist/nodes/DfirIris/v1/actions/case/addTaskLog.operation.js +60 -0
- package/dist/nodes/DfirIris/v1/actions/case/commonDescription.js +314 -0
- package/dist/nodes/DfirIris/v1/actions/case/countCases.operation.js +145 -0
- package/dist/nodes/DfirIris/v1/actions/case/create.operation.js +125 -0
- package/dist/nodes/DfirIris/v1/actions/case/deleteCase.operation.js +76 -0
- package/dist/nodes/DfirIris/v1/actions/case/exportCase.operation.js +56 -0
- package/dist/nodes/DfirIris/v1/actions/case/filterCases.operation.js +187 -0
- package/dist/nodes/DfirIris/v1/actions/case/getSummary.operation.js +81 -0
- package/dist/nodes/DfirIris/v1/actions/case/update.operation.js +123 -0
- package/dist/nodes/DfirIris/v1/actions/case/updateSummary.operation.js +79 -0
- package/dist/nodes/DfirIris/v1/actions/comment/Comment.resource.js +53 -0
- package/dist/nodes/DfirIris/v1/actions/comment/commonDescription.js +42 -0
- package/dist/nodes/DfirIris/v1/actions/comment/create.operation.js +89 -0
- package/dist/nodes/DfirIris/v1/actions/comment/deleteComment.operation.js +77 -0
- package/dist/nodes/DfirIris/v1/actions/comment/getAll.operation.js +86 -0
- package/dist/nodes/DfirIris/v1/actions/comment/update.operation.js +91 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/DatastoreFile.resource.js +60 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/commonDescription.js +11 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/deleteFile.operation.js +75 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/downloadFile.operation.js +108 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/getFileInfo.operation.js +74 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/moveFile.operation.js +87 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/updateFileInfo.operation.js +162 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/uploadFile.operation.js +126 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFolder/DatastoreFolder.resource.js +57 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFolder/addFolder.operation.js +61 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFolder/commonDescription.js +11 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFolder/deleteFolder.operation.js +51 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFolder/getTree.operation.js +69 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFolder/moveFolder.operation.js +73 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFolder/renameFolder.operation.js +44 -0
- package/dist/nodes/DfirIris/v1/actions/evidence/Evidence.resource.js +57 -0
- package/dist/nodes/DfirIris/v1/actions/evidence/commonDescription.js +65 -0
- package/dist/nodes/DfirIris/v1/actions/evidence/createEvidence.operation.js +148 -0
- package/dist/nodes/DfirIris/v1/actions/evidence/deleteEvidence.operation.js +73 -0
- package/dist/nodes/DfirIris/v1/actions/evidence/getEvidence.operation.js +75 -0
- package/dist/nodes/DfirIris/v1/actions/evidence/listEvidences.operation.js +42 -0
- package/dist/nodes/DfirIris/v1/actions/evidence/updateEvidence.operation.js +149 -0
- package/dist/nodes/DfirIris/v1/actions/ioc/IOC.resource.js +57 -0
- package/dist/nodes/DfirIris/v1/actions/ioc/commonDescription.js +54 -0
- package/dist/nodes/DfirIris/v1/actions/ioc/create.operation.js +120 -0
- package/dist/nodes/DfirIris/v1/actions/ioc/deleteIOC.operation.js +79 -0
- package/dist/nodes/DfirIris/v1/actions/ioc/get.operation.js +83 -0
- package/dist/nodes/DfirIris/v1/actions/ioc/getAll.operation.js +52 -0
- package/dist/nodes/DfirIris/v1/actions/ioc/update.operation.js +100 -0
- package/dist/nodes/DfirIris/v1/actions/manage/Manage.resource.js +71 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getAssetTypes.operation.js +48 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getCaseClassifications.operation.js +46 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getCaseCustomers.operation.js +47 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getCaseStates.operation.js +45 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getCaseTemplates.operation.js +51 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getEvidenceTypes.operation.js +45 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getIOCTypes.operation.js +47 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getSeverities.operation.js +44 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getTaskStatuses.operation.js +45 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getUsers.operation.js +48 -0
- package/dist/nodes/DfirIris/v1/actions/module/Module.resource.js +50 -0
- package/dist/nodes/DfirIris/v1/actions/module/callModule.operation.js +73 -0
- package/dist/nodes/DfirIris/v1/actions/module/commonDescription.js +117 -0
- package/dist/nodes/DfirIris/v1/actions/module/listHooks.operation.js +75 -0
- package/dist/nodes/DfirIris/v1/actions/module/listTasks.operation.js +44 -0
- package/dist/nodes/DfirIris/v1/actions/node.type.js +3 -0
- package/dist/nodes/DfirIris/v1/actions/note/Note.resource.js +57 -0
- package/dist/nodes/DfirIris/v1/actions/note/create.operation.js +86 -0
- package/dist/nodes/DfirIris/v1/actions/note/deleteNote.operation.js +49 -0
- package/dist/nodes/DfirIris/v1/actions/note/get.operation.js +65 -0
- package/dist/nodes/DfirIris/v1/actions/note/search.operation.js +48 -0
- package/dist/nodes/DfirIris/v1/actions/note/update.operation.js +110 -0
- package/dist/nodes/DfirIris/v1/actions/noteDirectory/NoteDirectory.resource.js +54 -0
- package/dist/nodes/DfirIris/v1/actions/noteDirectory/create.operation.js +69 -0
- package/dist/nodes/DfirIris/v1/actions/noteDirectory/deleteNoteDirectory.operation.js +49 -0
- package/dist/nodes/DfirIris/v1/actions/noteDirectory/getAll.operation.js +39 -0
- package/dist/nodes/DfirIris/v1/actions/noteDirectory/update.operation.js +79 -0
- package/dist/nodes/DfirIris/v1/actions/router.js +138 -0
- package/dist/nodes/DfirIris/v1/actions/task/Task.resource.js +57 -0
- package/dist/nodes/DfirIris/v1/actions/task/create.operation.js +148 -0
- package/dist/nodes/DfirIris/v1/actions/task/deleteTask.operation.js +56 -0
- package/dist/nodes/DfirIris/v1/actions/task/get.operation.js +78 -0
- package/dist/nodes/DfirIris/v1/actions/task/getAll.operation.js +70 -0
- package/dist/nodes/DfirIris/v1/actions/task/update.operation.js +161 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/Timeline.resource.js +63 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/addEvent.operation.js +122 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/commonDescription.js +211 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/deleteEvent.operation.js +59 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/fetchEvent.operation.js +103 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/flagEvent.operation.js +103 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/getTimelineState.operation.js +38 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/queryTimeline.operation.js +187 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/updateEvent.operation.js +123 -0
- package/dist/nodes/DfirIris/v1/actions/versionDescription.js +93 -0
- package/dist/nodes/DfirIris/v1/compatibility/compatibility.manifest.json +198 -0
- package/dist/nodes/DfirIris/v1/compatibility/index.js +143 -0
- package/dist/nodes/DfirIris/v1/helpers/index.js +39 -0
- package/dist/nodes/DfirIris/v1/helpers/types.js +271 -0
- package/dist/nodes/DfirIris/v1/helpers/utils.js +251 -0
- package/dist/nodes/DfirIris/v1/methods/index.js +38 -0
- package/dist/nodes/DfirIris/v1/methods/loadOptions.js +544 -0
- package/dist/nodes/DfirIris/v1/transport/index.js +251 -0
- package/dist/package.json +74 -0
- package/package.json +74 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright 2022 n8n
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# @zivego/n8n-nodes-dfir-iris
|
|
2
|
+
|
|
3
|
+
Community node for [n8n](https://n8n.io/) that integrates with DFIR IRIS.
|
|
4
|
+
|
|
5
|
+
This fork keeps the same runtime identifiers as upstream:
|
|
6
|
+
|
|
7
|
+
- node type: `dfirIris`
|
|
8
|
+
- credential type: `dfirIrisApi`
|
|
9
|
+
|
|
10
|
+
That means existing workflows can keep working after you replace the original package with this fork.
|
|
11
|
+
|
|
12
|
+
## Install From npm
|
|
13
|
+
|
|
14
|
+
After this package is published to npm:
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
cd ~/.n8n/nodes
|
|
18
|
+
npm install @zivego/n8n-nodes-dfir-iris@3.0.0
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Restart `n8n` after installation.
|
|
22
|
+
|
|
23
|
+
## Install Before npm Publish
|
|
24
|
+
|
|
25
|
+
If you want to test a local build before publishing:
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
pnpm install
|
|
29
|
+
pnpm run pack:tarball
|
|
30
|
+
cd ~/.n8n/nodes
|
|
31
|
+
npm install /path/to/zivego-n8n-nodes-dfir-iris-3.0.0.tgz
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Restart `n8n` after installation.
|
|
35
|
+
|
|
36
|
+
## Replace the upstream package
|
|
37
|
+
|
|
38
|
+
Do not keep the upstream package and this fork installed at the same time.
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
cd ~/.n8n/nodes
|
|
42
|
+
npm uninstall n8n-nodes-dfir-iris
|
|
43
|
+
rm -rf ~/.n8n/nodes/node_modules/n8n-nodes-dfir-iris
|
|
44
|
+
npm install @zivego/n8n-nodes-dfir-iris@3.0.0
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Restart `n8n` after the replacement.
|
|
48
|
+
|
|
49
|
+
## Update
|
|
50
|
+
|
|
51
|
+
After a newer version is published to npm:
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
cd ~/.n8n/nodes
|
|
55
|
+
npm update @zivego/n8n-nodes-dfir-iris
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Or install a specific version:
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
cd ~/.n8n/nodes
|
|
62
|
+
npm install @zivego/n8n-nodes-dfir-iris@3.0.1
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Publish
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
pnpm install
|
|
69
|
+
pnpm run build
|
|
70
|
+
npm publish --access public
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## License
|
|
74
|
+
|
|
75
|
+
[MIT](LICENSE.md)
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DfirIrisApi = void 0;
|
|
4
|
+
const compatibility_1 = require("../nodes/DfirIris/v1/compatibility");
|
|
5
|
+
class DfirIrisApi {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.name = 'dfirIrisApi';
|
|
8
|
+
this.displayName = 'DFIR IRIS API';
|
|
9
|
+
this.documentationUrl = 'https://docs.dfir-iris.org/latest/_static/iris_api_reference_v2.0.4.html';
|
|
10
|
+
this.icon = { light: "file:icons/iris.svg", dark: "file:icons/iris.svg" };
|
|
11
|
+
this.properties = [
|
|
12
|
+
{
|
|
13
|
+
displayName: 'API Mode',
|
|
14
|
+
name: 'apiMode',
|
|
15
|
+
type: 'options',
|
|
16
|
+
default: 'stable',
|
|
17
|
+
description: `Stable uses ${(0, compatibility_1.getStableDocsUrl)()} and Next uses ${(0, compatibility_1.getNextDocsUrl)()}.`,
|
|
18
|
+
options: [
|
|
19
|
+
{
|
|
20
|
+
name: 'Stable / Legacy (API v2.0.4)',
|
|
21
|
+
value: 'stable',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'Next / Dev (API v2.1.x)',
|
|
25
|
+
value: 'next',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
displayName: 'Token',
|
|
31
|
+
name: 'accessToken',
|
|
32
|
+
type: 'string',
|
|
33
|
+
typeOptions: { password: true },
|
|
34
|
+
default: '',
|
|
35
|
+
description: 'get it from the Web console',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
displayName: 'Use HTTP',
|
|
39
|
+
name: 'isHttp',
|
|
40
|
+
type: 'boolean',
|
|
41
|
+
default: false,
|
|
42
|
+
description: 'Whether to use HTTP instead of HTTPS',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: 'Host',
|
|
46
|
+
name: 'host',
|
|
47
|
+
type: 'string',
|
|
48
|
+
placeholder: 'iris.contoso.com',
|
|
49
|
+
default: '',
|
|
50
|
+
description: 'The FQDN, not the URL',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Ignore SSL Issues',
|
|
54
|
+
name: 'allowUnauthorizedCerts',
|
|
55
|
+
type: 'boolean',
|
|
56
|
+
description: 'Whether to connect even if SSL certificate validation is not possible',
|
|
57
|
+
default: false,
|
|
58
|
+
displayOptions: {
|
|
59
|
+
show: {
|
|
60
|
+
isHttp: [false],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Enable Debug',
|
|
66
|
+
name: 'enableDebug',
|
|
67
|
+
type: 'boolean',
|
|
68
|
+
description: 'Whether to write debug logs in the console',
|
|
69
|
+
default: false,
|
|
70
|
+
},
|
|
71
|
+
];
|
|
72
|
+
this.authenticate = {
|
|
73
|
+
type: 'generic',
|
|
74
|
+
properties: {
|
|
75
|
+
headers: {
|
|
76
|
+
Authorization: '={{"Bearer " + $credentials.accessToken}}',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
this.test = {
|
|
81
|
+
request: {
|
|
82
|
+
baseURL: '={{$credentials?.isHttp ? "http://" : "https://" }}{{$credentials?.host}}',
|
|
83
|
+
url: '/api/ping',
|
|
84
|
+
skipSslCertificateValidation: '={{$credentials?.isHttp ? true : $credentials?.allowUnauthorizedCerts}}',
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.DfirIrisApi = DfirIrisApi;
|
|
90
|
+
//# sourceMappingURL=DfirIrisApi.credentials.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="280" height="280">
|
|
3
|
+
<path d="M0 0 C3.88738552 0.12167932 7.74977866 0.08247572 11.63818359 0.02392578 C30.55304744 0.07835341 30.55304744 0.07835341 35.01147461 4.55493164 C37.13331131 7.96208942 38.43414961 11.21381634 39.75927734 14.99658203 C41.01104824 17.24677374 42.30716621 19.47285705 43.64599609 21.67236328 C44.91488269 23.88347952 46.18181276 26.0957197 47.44677734 28.30908203 C48.72010429 30.53515108 49.99481201 32.76043097 51.27099609 34.98486328 C51.86187012 36.0220752 52.45274414 37.05928711 53.06152344 38.12792969 C54.56124359 40.66196935 56.16669246 43.05778301 57.84130859 45.47705078 C59.81938838 48.63869872 59.81938838 48.63869872 59.33740234 51.50830078 C58.81662109 52.32943359 58.29583984 53.15056641 57.75927734 53.99658203 C57.12428591 55.18805561 56.49460035 56.38236393 55.86865234 57.57861328 C55.08605 58.99091315 54.2993136 60.40092718 53.50927734 61.80908203 C53.08324219 62.5722876 52.65720703 63.33549316 52.21826172 64.12182617 C37.37337413 90.57543685 37.37337413 90.57543685 31.75927734 98.99658203 C29.47113037 99.41790771 29.47113037 99.41790771 26.57861328 99.47998047 C24.95617706 99.52321442 24.95617706 99.52321442 23.30096436 99.56732178 C22.12705139 99.58007141 20.95313843 99.59282104 19.74365234 99.60595703 C18.53992981 99.62305725 17.33620728 99.64015747 16.0960083 99.65777588 C13.54390398 99.68615876 10.99168916 99.70574093 8.43945312 99.71728516 C4.53758994 99.74637098 0.6404924 99.83936301 -3.26025391 99.93408203 C-5.73809028 99.95367585 -8.21596064 99.96942582 -10.69384766 99.98095703 C-11.8596637 100.01799744 -13.02547974 100.05503784 -14.22662354 100.09320068 C-22.13783964 100.02810757 -22.13783964 100.02810757 -25.22315979 97.14241028 C-26.79278144 94.82764896 -28.03866954 92.51924665 -29.24072266 89.99658203 C-29.88323975 88.93463623 -30.52575684 87.87269043 -31.18774414 86.77856445 C-31.74018799 85.81281494 -32.29263184 84.84706543 -32.86181641 83.85205078 C-33.48765625 82.76214844 -34.11349609 81.67224609 -34.75830078 80.54931641 C-35.391875 79.43878906 -36.02544922 78.32826172 -36.67822266 77.18408203 C-37.94746761 74.9690742 -39.21699758 72.75422967 -40.48681641 70.53955078 C-41.10153809 69.45722168 -41.71625977 68.37489258 -42.34960938 67.25976562 C-43.63371994 65.04398693 -44.95464185 62.84921792 -46.30761719 60.67480469 C-46.95714355 59.62212402 -47.60666992 58.56944336 -48.27587891 57.48486328 C-48.86892822 56.54811768 -49.46197754 55.61137207 -50.07299805 54.64624023 C-51.48838806 51.43460992 -51.39171191 50.27902116 -50.24072266 46.99658203 C-49.22771827 44.9556327 -48.13638859 42.9527676 -46.99462891 40.98095703 C-46.66462387 40.40686096 -46.33461884 39.83276489 -45.99461365 39.24127197 C-44.93734773 37.40584483 -43.87044042 35.57623664 -42.80322266 33.74658203 C-41.77725694 31.96924945 -40.75323002 30.19086216 -39.73254395 28.41049194 C-39.02566511 27.19612667 -38.30402478 25.99024757 -37.56872559 24.7928772 C-35.49702687 21.38584354 -33.84861942 18.09379214 -32.46337891 14.34960938 C-26.23221356 -1.02969614 -15.268564 -0.52529908 0 0 Z " fill="#1471E7" transform="translate(93.24072265625,145.00341796875)"/>
|
|
4
|
+
<path d="M0 0 C3.90469868 0.03826225 7.75867252 -0.14137505 11.65771484 -0.33862305 C29.11052826 -0.66207406 29.11052826 -0.66207406 35.16342163 4.89959717 C39.56458178 10.59063859 42.49776746 16.83453522 45.26176453 23.44247437 C47.57292778 28.65691979 50.53718683 33.47076319 53.47412109 38.35083008 C54.46296938 40.05211581 55.44921087 41.75492357 56.43115234 43.46020508 C56.83954346 44.16628906 57.24793457 44.87237305 57.66870117 45.59985352 C59.46750296 49.2248792 59.46750296 49.2248792 59.66162109 51.60083008 C58.48095703 54.32373047 58.48095703 54.32373047 56.64599609 57.44848633 C56.15030121 58.30463783 56.15030121 58.30463783 55.64459229 59.17808533 C54.57838963 61.01347082 53.4955256 62.83835425 52.41162109 64.66333008 C51.3820076 66.42485809 50.35592501 68.18832858 49.33345032 69.95401001 C48.6161979 71.17388198 47.88344867 72.38475517 47.13664246 73.58676147 C44.9145702 77.20638787 43.17043897 80.73797128 41.6550293 84.71069336 C39.44782345 90.04673709 37.26898376 94.93989568 32.66162109 98.60083008 C24.86748249 101.46421237 16.40653853 100.91447072 8.2355957 100.52856445 C4.33750569 100.35029889 0.45988924 100.3235106 -3.44189453 100.31958008 C-5.92450423 100.27110533 -8.40696532 100.21410905 -10.88916016 100.14770508 C-12.04861649 100.13455261 -13.20807281 100.12140015 -14.40266418 100.10784912 C-22.23117765 99.67035467 -22.23117765 99.67035467 -25.3409729 96.66638184 C-26.89329728 94.37446122 -28.1458583 92.09607802 -29.33837891 89.60083008 C-29.87430664 88.7165332 -30.41023438 87.83223633 -30.96240234 86.92114258 C-31.37006836 86.19668945 -31.77773437 85.47223633 -32.19775391 84.72583008 C-32.66938965 83.8938208 -33.14102539 83.06181152 -33.62695312 82.20458984 C-34.10922363 81.34534912 -34.59149414 80.4861084 -35.08837891 79.60083008 C-38.10652852 74.23050976 -41.12687818 68.88195502 -44.40869141 63.66723633 C-44.88209961 62.90475586 -45.35550781 62.14227539 -45.84326172 61.35668945 C-46.73479514 59.92947345 -47.64229649 58.51206805 -48.56787109 57.10668945 C-49.76806641 55.16723633 -49.76806641 55.16723633 -51.33837891 51.60083008 C-50.28061879 47.30692345 -48.43281358 43.72744367 -46.21337891 39.92504883 C-45.58818359 38.84803711 -44.96298828 37.77102539 -44.31884766 36.66137695 C-43.66529297 35.54827148 -43.01173828 34.43516602 -42.33837891 33.28833008 C-41.71576172 32.21776367 -41.09314453 31.14719727 -40.45166016 30.04418945 C-39.13912419 27.79051462 -37.7962023 25.55432846 -36.42724609 23.33447266 C-34.82905321 20.64624129 -33.68468194 17.97655674 -32.60107422 15.04492188 C-26.37553541 -0.29611174 -15.31304595 -0.25717595 0 0 Z " fill="#1471E7" transform="translate(189.33837890625,91.399169921875)"/>
|
|
5
|
+
<path d="M0 0 C1.25280762 0.0724292 2.50561523 0.1448584 3.79638672 0.21948242 C7.65076197 0.4328505 11.46854343 0.44516908 15.328125 0.4296875 C33.9253742 0.70957275 33.9253742 0.70957275 38.48852539 5.33325195 C40.60771895 8.72926028 41.91931219 11.97615691 43.25390625 15.74414062 C44.50665885 17.99378593 45.80277532 20.2198193 47.140625 22.41992188 C48.4095116 24.63103811 49.67644167 26.84327829 50.94140625 29.05664062 C52.2147332 31.28270967 53.48944092 33.50798956 54.765625 35.73242188 C55.35649902 36.76963379 55.94737305 37.8068457 56.55615234 38.87548828 C58.0558725 41.40952794 59.66132137 43.8053416 61.3359375 46.22460938 C63.31401729 49.38625732 63.31401729 49.38625732 62.83203125 52.25585938 C62.31125 53.07699219 61.79046875 53.898125 61.25390625 54.74414062 C60.61891481 55.93561421 59.98922925 57.12992252 59.36328125 58.32617188 C58.58062128 59.73843981 57.79389008 61.14845637 57.00390625 62.55664062 C56.36594116 63.70036133 56.36594116 63.70036133 55.71508789 64.8671875 C50.11222286 74.85693022 44.29875708 84.72637723 38.49389648 94.59960938 C37.70783223 95.95908731 36.95619925 97.33955463 36.25390625 98.74414062 C29.0501082 99.25773342 21.85032613 99.64648531 14.63183308 99.88400841 C11.27467358 99.99824447 7.93955119 100.16399017 4.58764648 100.40380859 C-16.96441385 101.90622622 -16.96441385 101.90622622 -23.16174316 96.72427368 C-27.39490872 91.50436141 -30.06621147 85.63904095 -32.59646606 79.45178223 C-34.11589377 75.87317523 -36.01507387 72.79253082 -38.11328125 69.52148438 C-38.70753906 68.53212891 -39.30179688 67.54277344 -39.9140625 66.5234375 C-41.09591452 64.55593786 -42.2894322 62.59541623 -43.4921875 60.640625 C-44.06839844 59.67318359 -44.64460938 58.70574219 -45.23828125 57.70898438 C-45.7472998 56.86972412 -46.25631836 56.03046387 -46.78076172 55.16577148 C-47.97594709 52.16753079 -47.73306862 50.78708613 -46.74609375 47.74414062 C-45.75317383 45.62963867 -45.75317383 45.62963867 -44.515625 43.50585938 C-44.06896988 42.7356546 -43.62231476 41.96544983 -43.16212463 41.17190552 C-42.11402357 39.38081152 -41.05322391 37.59707235 -39.978302 35.82194519 C-36.96632169 30.79821624 -34.28568951 25.83762543 -32.01586914 20.43408203 C-24.74335615 4.14622271 -17.85657967 -0.46004345 0 0 Z " fill="#1471E7" transform="translate(89.74609375,36.255859375)"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DfirIris = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const DfirIrisV1_node_1 = require("./v1/DfirIrisV1.node");
|
|
6
|
+
class DfirIris extends n8n_workflow_1.VersionedNodeType {
|
|
7
|
+
constructor() {
|
|
8
|
+
const baseDescription = {
|
|
9
|
+
displayName: 'DFIR IRIS',
|
|
10
|
+
name: 'dfirIris',
|
|
11
|
+
icon: { light: "file:iris.svg", dark: "file:iris.svg" },
|
|
12
|
+
group: ['input'],
|
|
13
|
+
subtitle: '={{ $parameter["resource"] + ": " + $parameter["operation"] }}',
|
|
14
|
+
description: 'works with DFIR IRIS IRP',
|
|
15
|
+
defaultVersion: 2,
|
|
16
|
+
};
|
|
17
|
+
const nodeVersions = {
|
|
18
|
+
1: new DfirIrisV1_node_1.DfirIrisV1(baseDescription),
|
|
19
|
+
2: new DfirIrisV1_node_1.DfirIrisV1(baseDescription),
|
|
20
|
+
};
|
|
21
|
+
super(nodeVersions, baseDescription);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.DfirIris = DfirIris;
|
|
25
|
+
//# sourceMappingURL=DfirIris.node.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "@zivego/n8n-nodes-dfir-iris",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Communication"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://docs.dfir-iris.org/latest/_static/iris_api_reference_v2.0.4.html"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://docs.dfir-iris.org/"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="280" height="280">
|
|
3
|
+
<path d="M0 0 C3.88738552 0.12167932 7.74977866 0.08247572 11.63818359 0.02392578 C30.55304744 0.07835341 30.55304744 0.07835341 35.01147461 4.55493164 C37.13331131 7.96208942 38.43414961 11.21381634 39.75927734 14.99658203 C41.01104824 17.24677374 42.30716621 19.47285705 43.64599609 21.67236328 C44.91488269 23.88347952 46.18181276 26.0957197 47.44677734 28.30908203 C48.72010429 30.53515108 49.99481201 32.76043097 51.27099609 34.98486328 C51.86187012 36.0220752 52.45274414 37.05928711 53.06152344 38.12792969 C54.56124359 40.66196935 56.16669246 43.05778301 57.84130859 45.47705078 C59.81938838 48.63869872 59.81938838 48.63869872 59.33740234 51.50830078 C58.81662109 52.32943359 58.29583984 53.15056641 57.75927734 53.99658203 C57.12428591 55.18805561 56.49460035 56.38236393 55.86865234 57.57861328 C55.08605 58.99091315 54.2993136 60.40092718 53.50927734 61.80908203 C53.08324219 62.5722876 52.65720703 63.33549316 52.21826172 64.12182617 C37.37337413 90.57543685 37.37337413 90.57543685 31.75927734 98.99658203 C29.47113037 99.41790771 29.47113037 99.41790771 26.57861328 99.47998047 C24.95617706 99.52321442 24.95617706 99.52321442 23.30096436 99.56732178 C22.12705139 99.58007141 20.95313843 99.59282104 19.74365234 99.60595703 C18.53992981 99.62305725 17.33620728 99.64015747 16.0960083 99.65777588 C13.54390398 99.68615876 10.99168916 99.70574093 8.43945312 99.71728516 C4.53758994 99.74637098 0.6404924 99.83936301 -3.26025391 99.93408203 C-5.73809028 99.95367585 -8.21596064 99.96942582 -10.69384766 99.98095703 C-11.8596637 100.01799744 -13.02547974 100.05503784 -14.22662354 100.09320068 C-22.13783964 100.02810757 -22.13783964 100.02810757 -25.22315979 97.14241028 C-26.79278144 94.82764896 -28.03866954 92.51924665 -29.24072266 89.99658203 C-29.88323975 88.93463623 -30.52575684 87.87269043 -31.18774414 86.77856445 C-31.74018799 85.81281494 -32.29263184 84.84706543 -32.86181641 83.85205078 C-33.48765625 82.76214844 -34.11349609 81.67224609 -34.75830078 80.54931641 C-35.391875 79.43878906 -36.02544922 78.32826172 -36.67822266 77.18408203 C-37.94746761 74.9690742 -39.21699758 72.75422967 -40.48681641 70.53955078 C-41.10153809 69.45722168 -41.71625977 68.37489258 -42.34960938 67.25976562 C-43.63371994 65.04398693 -44.95464185 62.84921792 -46.30761719 60.67480469 C-46.95714355 59.62212402 -47.60666992 58.56944336 -48.27587891 57.48486328 C-48.86892822 56.54811768 -49.46197754 55.61137207 -50.07299805 54.64624023 C-51.48838806 51.43460992 -51.39171191 50.27902116 -50.24072266 46.99658203 C-49.22771827 44.9556327 -48.13638859 42.9527676 -46.99462891 40.98095703 C-46.66462387 40.40686096 -46.33461884 39.83276489 -45.99461365 39.24127197 C-44.93734773 37.40584483 -43.87044042 35.57623664 -42.80322266 33.74658203 C-41.77725694 31.96924945 -40.75323002 30.19086216 -39.73254395 28.41049194 C-39.02566511 27.19612667 -38.30402478 25.99024757 -37.56872559 24.7928772 C-35.49702687 21.38584354 -33.84861942 18.09379214 -32.46337891 14.34960938 C-26.23221356 -1.02969614 -15.268564 -0.52529908 0 0 Z " fill="#1471E7" transform="translate(93.24072265625,145.00341796875)"/>
|
|
4
|
+
<path d="M0 0 C3.90469868 0.03826225 7.75867252 -0.14137505 11.65771484 -0.33862305 C29.11052826 -0.66207406 29.11052826 -0.66207406 35.16342163 4.89959717 C39.56458178 10.59063859 42.49776746 16.83453522 45.26176453 23.44247437 C47.57292778 28.65691979 50.53718683 33.47076319 53.47412109 38.35083008 C54.46296938 40.05211581 55.44921087 41.75492357 56.43115234 43.46020508 C56.83954346 44.16628906 57.24793457 44.87237305 57.66870117 45.59985352 C59.46750296 49.2248792 59.46750296 49.2248792 59.66162109 51.60083008 C58.48095703 54.32373047 58.48095703 54.32373047 56.64599609 57.44848633 C56.15030121 58.30463783 56.15030121 58.30463783 55.64459229 59.17808533 C54.57838963 61.01347082 53.4955256 62.83835425 52.41162109 64.66333008 C51.3820076 66.42485809 50.35592501 68.18832858 49.33345032 69.95401001 C48.6161979 71.17388198 47.88344867 72.38475517 47.13664246 73.58676147 C44.9145702 77.20638787 43.17043897 80.73797128 41.6550293 84.71069336 C39.44782345 90.04673709 37.26898376 94.93989568 32.66162109 98.60083008 C24.86748249 101.46421237 16.40653853 100.91447072 8.2355957 100.52856445 C4.33750569 100.35029889 0.45988924 100.3235106 -3.44189453 100.31958008 C-5.92450423 100.27110533 -8.40696532 100.21410905 -10.88916016 100.14770508 C-12.04861649 100.13455261 -13.20807281 100.12140015 -14.40266418 100.10784912 C-22.23117765 99.67035467 -22.23117765 99.67035467 -25.3409729 96.66638184 C-26.89329728 94.37446122 -28.1458583 92.09607802 -29.33837891 89.60083008 C-29.87430664 88.7165332 -30.41023438 87.83223633 -30.96240234 86.92114258 C-31.37006836 86.19668945 -31.77773437 85.47223633 -32.19775391 84.72583008 C-32.66938965 83.8938208 -33.14102539 83.06181152 -33.62695312 82.20458984 C-34.10922363 81.34534912 -34.59149414 80.4861084 -35.08837891 79.60083008 C-38.10652852 74.23050976 -41.12687818 68.88195502 -44.40869141 63.66723633 C-44.88209961 62.90475586 -45.35550781 62.14227539 -45.84326172 61.35668945 C-46.73479514 59.92947345 -47.64229649 58.51206805 -48.56787109 57.10668945 C-49.76806641 55.16723633 -49.76806641 55.16723633 -51.33837891 51.60083008 C-50.28061879 47.30692345 -48.43281358 43.72744367 -46.21337891 39.92504883 C-45.58818359 38.84803711 -44.96298828 37.77102539 -44.31884766 36.66137695 C-43.66529297 35.54827148 -43.01173828 34.43516602 -42.33837891 33.28833008 C-41.71576172 32.21776367 -41.09314453 31.14719727 -40.45166016 30.04418945 C-39.13912419 27.79051462 -37.7962023 25.55432846 -36.42724609 23.33447266 C-34.82905321 20.64624129 -33.68468194 17.97655674 -32.60107422 15.04492188 C-26.37553541 -0.29611174 -15.31304595 -0.25717595 0 0 Z " fill="#1471E7" transform="translate(189.33837890625,91.399169921875)"/>
|
|
5
|
+
<path d="M0 0 C1.25280762 0.0724292 2.50561523 0.1448584 3.79638672 0.21948242 C7.65076197 0.4328505 11.46854343 0.44516908 15.328125 0.4296875 C33.9253742 0.70957275 33.9253742 0.70957275 38.48852539 5.33325195 C40.60771895 8.72926028 41.91931219 11.97615691 43.25390625 15.74414062 C44.50665885 17.99378593 45.80277532 20.2198193 47.140625 22.41992188 C48.4095116 24.63103811 49.67644167 26.84327829 50.94140625 29.05664062 C52.2147332 31.28270967 53.48944092 33.50798956 54.765625 35.73242188 C55.35649902 36.76963379 55.94737305 37.8068457 56.55615234 38.87548828 C58.0558725 41.40952794 59.66132137 43.8053416 61.3359375 46.22460938 C63.31401729 49.38625732 63.31401729 49.38625732 62.83203125 52.25585938 C62.31125 53.07699219 61.79046875 53.898125 61.25390625 54.74414062 C60.61891481 55.93561421 59.98922925 57.12992252 59.36328125 58.32617188 C58.58062128 59.73843981 57.79389008 61.14845637 57.00390625 62.55664062 C56.36594116 63.70036133 56.36594116 63.70036133 55.71508789 64.8671875 C50.11222286 74.85693022 44.29875708 84.72637723 38.49389648 94.59960938 C37.70783223 95.95908731 36.95619925 97.33955463 36.25390625 98.74414062 C29.0501082 99.25773342 21.85032613 99.64648531 14.63183308 99.88400841 C11.27467358 99.99824447 7.93955119 100.16399017 4.58764648 100.40380859 C-16.96441385 101.90622622 -16.96441385 101.90622622 -23.16174316 96.72427368 C-27.39490872 91.50436141 -30.06621147 85.63904095 -32.59646606 79.45178223 C-34.11589377 75.87317523 -36.01507387 72.79253082 -38.11328125 69.52148438 C-38.70753906 68.53212891 -39.30179688 67.54277344 -39.9140625 66.5234375 C-41.09591452 64.55593786 -42.2894322 62.59541623 -43.4921875 60.640625 C-44.06839844 59.67318359 -44.64460938 58.70574219 -45.23828125 57.70898438 C-45.7472998 56.86972412 -46.25631836 56.03046387 -46.78076172 55.16577148 C-47.97594709 52.16753079 -47.73306862 50.78708613 -46.74609375 47.74414062 C-45.75317383 45.62963867 -45.75317383 45.62963867 -44.515625 43.50585938 C-44.06896988 42.7356546 -43.62231476 41.96544983 -43.16212463 41.17190552 C-42.11402357 39.38081152 -41.05322391 37.59707235 -39.978302 35.82194519 C-36.96632169 30.79821624 -34.28568951 25.83762543 -32.01586914 20.43408203 C-24.74335615 4.14622271 -17.85657967 -0.46004345 0 0 Z " fill="#1471E7" transform="translate(89.74609375,36.255859375)"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DfirIrisV1 = void 0;
|
|
4
|
+
const router_1 = require("./actions/router");
|
|
5
|
+
const versionDescription_1 = require("./actions/versionDescription");
|
|
6
|
+
const methods_1 = require("./methods");
|
|
7
|
+
class DfirIrisV1 {
|
|
8
|
+
constructor(baseDescription) {
|
|
9
|
+
this.methods = {
|
|
10
|
+
loadOptions: methods_1.loadOptions,
|
|
11
|
+
};
|
|
12
|
+
this.description = {
|
|
13
|
+
...baseDescription,
|
|
14
|
+
...versionDescription_1.versionDescription,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
async execute() {
|
|
18
|
+
return await router_1.router.call(this);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.DfirIrisV1 = DfirIrisV1;
|
|
22
|
+
//# sourceMappingURL=DfirIrisV1.node.js.map
|
|
@@ -0,0 +1,78 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.resource = exports.endpoint = exports.unmerge = exports.merge = exports.escalate = exports.batchDelete = exports.batchUpdate = exports.countAlerts = exports.update = exports.filterAlerts = exports.getRelations = exports.get = exports.deleteAlert = exports.create = void 0;
|
|
37
|
+
const compatibility_1 = require("../../compatibility");
|
|
38
|
+
const create = __importStar(require("./create.operation"));
|
|
39
|
+
exports.create = create;
|
|
40
|
+
const deleteAlert = __importStar(require("./deleteAlert.operation"));
|
|
41
|
+
exports.deleteAlert = deleteAlert;
|
|
42
|
+
const get = __importStar(require("./get.operation"));
|
|
43
|
+
exports.get = get;
|
|
44
|
+
const getRelations = __importStar(require("./getRelations.operation"));
|
|
45
|
+
exports.getRelations = getRelations;
|
|
46
|
+
const filterAlerts = __importStar(require("./filterAlerts.operation"));
|
|
47
|
+
exports.filterAlerts = filterAlerts;
|
|
48
|
+
const update = __importStar(require("./update.operation"));
|
|
49
|
+
exports.update = update;
|
|
50
|
+
const countAlerts = __importStar(require("./countAlerts.operation"));
|
|
51
|
+
exports.countAlerts = countAlerts;
|
|
52
|
+
const batchUpdate = __importStar(require("./batchUpdate.operation"));
|
|
53
|
+
exports.batchUpdate = batchUpdate;
|
|
54
|
+
const batchDelete = __importStar(require("./batchDelete.operation"));
|
|
55
|
+
exports.batchDelete = batchDelete;
|
|
56
|
+
const escalate = __importStar(require("./escalate.operation"));
|
|
57
|
+
exports.escalate = escalate;
|
|
58
|
+
const merge = __importStar(require("./merge.operation"));
|
|
59
|
+
exports.merge = merge;
|
|
60
|
+
const unmerge = __importStar(require("./unmerge.operation"));
|
|
61
|
+
exports.unmerge = unmerge;
|
|
62
|
+
exports.endpoint = 'alerts';
|
|
63
|
+
exports.resource = [
|
|
64
|
+
(0, compatibility_1.buildOperationProperty)('alert', 'countAlerts'),
|
|
65
|
+
...create.description,
|
|
66
|
+
...deleteAlert.description,
|
|
67
|
+
...get.description,
|
|
68
|
+
...getRelations.description,
|
|
69
|
+
...update.description,
|
|
70
|
+
...filterAlerts.description,
|
|
71
|
+
...countAlerts.description,
|
|
72
|
+
...batchUpdate.description,
|
|
73
|
+
...batchDelete.description,
|
|
74
|
+
...escalate.description,
|
|
75
|
+
...merge.description,
|
|
76
|
+
...unmerge.description,
|
|
77
|
+
];
|
|
78
|
+
//# sourceMappingURL=Alert.resource.js.map
|
|
@@ -0,0 +1,82 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.description = void 0;
|
|
37
|
+
exports.execute = execute;
|
|
38
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
39
|
+
const Alert_resource_1 = require("./Alert.resource");
|
|
40
|
+
const transport_1 = require("../../transport");
|
|
41
|
+
const helpers_1 = require("../../helpers");
|
|
42
|
+
const local = __importStar(require("./commonDescription"));
|
|
43
|
+
const properties = [
|
|
44
|
+
local.rAlertIds,
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Options',
|
|
47
|
+
name: 'options',
|
|
48
|
+
type: 'collection',
|
|
49
|
+
placeholder: 'Add Option',
|
|
50
|
+
default: {},
|
|
51
|
+
options: [...helpers_1.types.returnRaw],
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
const displayOptions = {
|
|
55
|
+
show: {
|
|
56
|
+
resource: ['alert'],
|
|
57
|
+
operation: ['batchDelete'],
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
|
|
61
|
+
async function execute(i) {
|
|
62
|
+
const query = { cid: this.getNodeParameter('cid', i, 0) };
|
|
63
|
+
const body = {};
|
|
64
|
+
let response;
|
|
65
|
+
try {
|
|
66
|
+
body.alert_ids = helpers_1.utils.parseCommaSeparatedIntegers(this.getNodeParameter('alert_ids', i), this.getNode(), i, 'List of IDs');
|
|
67
|
+
}
|
|
68
|
+
catch (error) {
|
|
69
|
+
if (error instanceof n8n_workflow_1.NodeOperationError) {
|
|
70
|
+
throw error;
|
|
71
|
+
}
|
|
72
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'List of IDs is not valid. It should be a comma-separated list of Alert IDs', { itemIndex: i });
|
|
73
|
+
}
|
|
74
|
+
response = await transport_1.apiRequest.call(this, 'POST', `${Alert_resource_1.endpoint}/batch/delete`, body, query);
|
|
75
|
+
const options = this.getNodeParameter('options', i, {});
|
|
76
|
+
const isRaw = options.isRaw || false;
|
|
77
|
+
if (!isRaw)
|
|
78
|
+
response = [{ status: 'success' }];
|
|
79
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
80
|
+
return executionData;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=batchDelete.operation.js.map
|
|
@@ -0,0 +1,129 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.description = void 0;
|
|
37
|
+
exports.execute = execute;
|
|
38
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
39
|
+
const Alert_resource_1 = require("./Alert.resource");
|
|
40
|
+
const transport_1 = require("../../transport");
|
|
41
|
+
const helpers_1 = require("../../helpers");
|
|
42
|
+
const local = __importStar(require("./commonDescription"));
|
|
43
|
+
const properties = [
|
|
44
|
+
local.rAlertIds,
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Additional Fields',
|
|
47
|
+
name: 'additionalFields',
|
|
48
|
+
type: 'collection',
|
|
49
|
+
placeholder: 'Add Field',
|
|
50
|
+
default: {},
|
|
51
|
+
options: [
|
|
52
|
+
...local.alertAssetProps,
|
|
53
|
+
...local.alertIocProps,
|
|
54
|
+
local.alertClassification,
|
|
55
|
+
...local.alertContextProps,
|
|
56
|
+
local.alertCustomer,
|
|
57
|
+
local.alertDescription,
|
|
58
|
+
local.alertResolutionStatus,
|
|
59
|
+
local.alertNote,
|
|
60
|
+
local.alertSeverity,
|
|
61
|
+
...local.alertSourceProps,
|
|
62
|
+
local.alertStatus,
|
|
63
|
+
local.alertTags,
|
|
64
|
+
local.alertTitle,
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Options',
|
|
69
|
+
name: 'options',
|
|
70
|
+
type: 'collection',
|
|
71
|
+
placeholder: 'Add Option',
|
|
72
|
+
default: {},
|
|
73
|
+
options: [...helpers_1.types.returnRaw],
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
const displayOptions = {
|
|
77
|
+
show: {
|
|
78
|
+
resource: ['alert'],
|
|
79
|
+
operation: ['batchUpdate'],
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
|
|
83
|
+
async function execute(i) {
|
|
84
|
+
const query = { cid: this.getNodeParameter('cid', i, 0) };
|
|
85
|
+
let response;
|
|
86
|
+
let body = {};
|
|
87
|
+
helpers_1.utils.addAdditionalFields.call(this, body, i);
|
|
88
|
+
const _b = Object.entries(body);
|
|
89
|
+
const newBody = Object.fromEntries(_b);
|
|
90
|
+
const kvUI = this.getNodeParameter('__alertContextKV.parameters', i, null);
|
|
91
|
+
const jsUI = this.getNodeParameter('__alertContextJSON', i, null);
|
|
92
|
+
if (kvUI !== null && kvUI.length > 0) {
|
|
93
|
+
newBody.alert_context = Object.fromEntries(kvUI.map((p) => [p.name, p.value]));
|
|
94
|
+
}
|
|
95
|
+
else if (jsUI !== null) {
|
|
96
|
+
try {
|
|
97
|
+
newBody.alert_context = JSON.parse(jsUI);
|
|
98
|
+
}
|
|
99
|
+
catch {
|
|
100
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'JSON parameter need to be an valid JSON', {
|
|
101
|
+
itemIndex: i,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
const options = this.getNodeParameter('options', i, {});
|
|
106
|
+
let iocs = this.getNodeParameter('additionalFields.__iocsCollection.iocData', i, null);
|
|
107
|
+
let assets = this.getNodeParameter('additionalFields.__assetsCollection.assetData', i, null);
|
|
108
|
+
const iocsJSON = this.getNodeParameter('additionalFields.__iocsCollectionJSON', i, null);
|
|
109
|
+
const assetsJSON = this.getNodeParameter('additionalFields.__assetsCollectionJSON', i, null);
|
|
110
|
+
if (iocsJSON !== null)
|
|
111
|
+
iocs = iocsJSON;
|
|
112
|
+
if (assetsJSON !== null)
|
|
113
|
+
assets = assetsJSON;
|
|
114
|
+
if (iocs !== null)
|
|
115
|
+
newBody.alert_iocs = iocs;
|
|
116
|
+
if (assets !== null)
|
|
117
|
+
newBody.alert_assets = assets;
|
|
118
|
+
body = {
|
|
119
|
+
alert_ids: helpers_1.utils.parseCommaSeparatedIntegers(this.getNodeParameter('alert_ids', i), this.getNode(), i, 'Alert IDs'),
|
|
120
|
+
updates: newBody,
|
|
121
|
+
};
|
|
122
|
+
response = await transport_1.apiRequest.call(this, 'POST', `${Alert_resource_1.endpoint}/batch/update`, body, query);
|
|
123
|
+
const isRaw = options.isRaw || false;
|
|
124
|
+
if (!isRaw)
|
|
125
|
+
response = { status: 'success' };
|
|
126
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
127
|
+
return executionData;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=batchUpdate.operation.js.map
|