@sw-tsdk/plugin-connector 2.17.4 → 2.19.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/README.md +177 -15
- package/lib/commands/component/create.d.ts +34 -0
- package/lib/commands/component/create.js +168 -0
- package/lib/commands/component/create.js.map +1 -0
- package/lib/commands/component/logo.d.ts +12 -0
- package/lib/commands/component/logo.js +63 -0
- package/lib/commands/component/logo.js.map +1 -0
- package/lib/commands/component/ssp.d.ts +12 -0
- package/lib/commands/component/ssp.js +64 -0
- package/lib/commands/component/ssp.js.map +1 -0
- package/lib/commands/component/update.d.ts +13 -0
- package/lib/commands/component/update.js +68 -0
- package/lib/commands/component/update.js.map +1 -0
- package/lib/commands/description/action.d.ts +12 -0
- package/lib/commands/description/action.js +87 -0
- package/lib/commands/description/action.js.map +1 -0
- package/lib/commands/description/actions.d.ts +11 -0
- package/lib/commands/description/actions.js +81 -0
- package/lib/commands/description/actions.js.map +1 -0
- package/lib/commands/description/connector.d.ts +11 -0
- package/lib/commands/description/connector.js +81 -0
- package/lib/commands/description/connector.js.map +1 -0
- package/lib/common.d.ts +3 -0
- package/lib/common.js +59 -2
- package/lib/common.js.map +1 -1
- package/lib/types/connector-types.d.ts +20 -0
- package/oclif.manifest.json +370 -1
- package/package.json +12 -6
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.
|
|
2
|
+
"version": "2.19.0",
|
|
3
3
|
"commands": {
|
|
4
4
|
"action:add": {
|
|
5
5
|
"id": "action:add",
|
|
@@ -82,6 +82,245 @@
|
|
|
82
82
|
},
|
|
83
83
|
"args": {}
|
|
84
84
|
},
|
|
85
|
+
"component:create": {
|
|
86
|
+
"id": "component:create",
|
|
87
|
+
"description": "Scaffold a new Component",
|
|
88
|
+
"strict": true,
|
|
89
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
90
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
91
|
+
"pluginType": "core",
|
|
92
|
+
"aliases": [],
|
|
93
|
+
"flags": {
|
|
94
|
+
"directory": {
|
|
95
|
+
"name": "directory",
|
|
96
|
+
"type": "option",
|
|
97
|
+
"char": "d",
|
|
98
|
+
"description": "root directory for where to store Component.",
|
|
99
|
+
"multiple": false,
|
|
100
|
+
"default": "./"
|
|
101
|
+
},
|
|
102
|
+
"componentType": {
|
|
103
|
+
"name": "componentType",
|
|
104
|
+
"type": "option",
|
|
105
|
+
"description": "Component Type (e.g. classic)",
|
|
106
|
+
"multiple": false
|
|
107
|
+
},
|
|
108
|
+
"vendor": {
|
|
109
|
+
"name": "vendor",
|
|
110
|
+
"type": "option",
|
|
111
|
+
"description": "Vendor (e.g. CrowdStrike)",
|
|
112
|
+
"multiple": false
|
|
113
|
+
},
|
|
114
|
+
"componentName": {
|
|
115
|
+
"name": "componentName",
|
|
116
|
+
"type": "option",
|
|
117
|
+
"description": "Component Name (e.g. Alert Ingestion)",
|
|
118
|
+
"multiple": false
|
|
119
|
+
},
|
|
120
|
+
"keywords": {
|
|
121
|
+
"name": "keywords",
|
|
122
|
+
"type": "option",
|
|
123
|
+
"description": "Enter keywords",
|
|
124
|
+
"multiple": false
|
|
125
|
+
},
|
|
126
|
+
"description": {
|
|
127
|
+
"name": "description",
|
|
128
|
+
"type": "option",
|
|
129
|
+
"description": "Description (e.g. CrowdStrike Alert Ingestion Component)",
|
|
130
|
+
"multiple": false
|
|
131
|
+
},
|
|
132
|
+
"logoPath": {
|
|
133
|
+
"name": "logoPath",
|
|
134
|
+
"type": "option",
|
|
135
|
+
"description": "URL or absolute path to logo file",
|
|
136
|
+
"multiple": false
|
|
137
|
+
},
|
|
138
|
+
"sspPath": {
|
|
139
|
+
"name": "sspPath",
|
|
140
|
+
"type": "option",
|
|
141
|
+
"description": "absolute path to .ssp file",
|
|
142
|
+
"multiple": false
|
|
143
|
+
},
|
|
144
|
+
"author": {
|
|
145
|
+
"name": "author",
|
|
146
|
+
"type": "option",
|
|
147
|
+
"description": "Component Author",
|
|
148
|
+
"multiple": false
|
|
149
|
+
},
|
|
150
|
+
"authorEmail": {
|
|
151
|
+
"name": "authorEmail",
|
|
152
|
+
"type": "option",
|
|
153
|
+
"description": "Component Author Email",
|
|
154
|
+
"multiple": false
|
|
155
|
+
},
|
|
156
|
+
"homepage": {
|
|
157
|
+
"name": "homepage",
|
|
158
|
+
"type": "option",
|
|
159
|
+
"description": "Component Author Support URL",
|
|
160
|
+
"multiple": false
|
|
161
|
+
},
|
|
162
|
+
"help": {
|
|
163
|
+
"name": "help",
|
|
164
|
+
"type": "boolean",
|
|
165
|
+
"char": "h",
|
|
166
|
+
"description": "Show CLI help.",
|
|
167
|
+
"allowNo": false
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"args": {}
|
|
171
|
+
},
|
|
172
|
+
"component:logo": {
|
|
173
|
+
"id": "component:logo",
|
|
174
|
+
"description": "Update a Component logo.",
|
|
175
|
+
"strict": true,
|
|
176
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
177
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
178
|
+
"pluginType": "core",
|
|
179
|
+
"aliases": [],
|
|
180
|
+
"flags": {
|
|
181
|
+
"directory": {
|
|
182
|
+
"name": "directory",
|
|
183
|
+
"type": "option",
|
|
184
|
+
"char": "d",
|
|
185
|
+
"description": "root directory of the component folder.",
|
|
186
|
+
"multiple": false,
|
|
187
|
+
"default": "./"
|
|
188
|
+
},
|
|
189
|
+
"componentType": {
|
|
190
|
+
"name": "componentType",
|
|
191
|
+
"type": "option",
|
|
192
|
+
"char": "t",
|
|
193
|
+
"description": "Component Type (e.g. classic)",
|
|
194
|
+
"multiple": false
|
|
195
|
+
},
|
|
196
|
+
"componentName": {
|
|
197
|
+
"name": "componentName",
|
|
198
|
+
"type": "option",
|
|
199
|
+
"char": "n",
|
|
200
|
+
"description": "Component Name (e.g. google_alert_ingestion)",
|
|
201
|
+
"multiple": false
|
|
202
|
+
},
|
|
203
|
+
"logoPath": {
|
|
204
|
+
"name": "logoPath",
|
|
205
|
+
"type": "option",
|
|
206
|
+
"char": "p",
|
|
207
|
+
"description": "path or URL to product logo in PNG format.",
|
|
208
|
+
"multiple": false
|
|
209
|
+
},
|
|
210
|
+
"help": {
|
|
211
|
+
"name": "help",
|
|
212
|
+
"type": "boolean",
|
|
213
|
+
"char": "h",
|
|
214
|
+
"description": "Show CLI help.",
|
|
215
|
+
"allowNo": false
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"args": {}
|
|
219
|
+
},
|
|
220
|
+
"component:ssp": {
|
|
221
|
+
"id": "component:ssp",
|
|
222
|
+
"description": "Update an SSP.",
|
|
223
|
+
"strict": true,
|
|
224
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
225
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
226
|
+
"pluginType": "core",
|
|
227
|
+
"aliases": [],
|
|
228
|
+
"flags": {
|
|
229
|
+
"directory": {
|
|
230
|
+
"name": "directory",
|
|
231
|
+
"type": "option",
|
|
232
|
+
"char": "d",
|
|
233
|
+
"description": "root directory of the component folder.",
|
|
234
|
+
"multiple": false,
|
|
235
|
+
"default": "./"
|
|
236
|
+
},
|
|
237
|
+
"componentType": {
|
|
238
|
+
"name": "componentType",
|
|
239
|
+
"type": "option",
|
|
240
|
+
"char": "t",
|
|
241
|
+
"description": "Component Type (e.g. classic)",
|
|
242
|
+
"multiple": false
|
|
243
|
+
},
|
|
244
|
+
"componentName": {
|
|
245
|
+
"name": "componentName",
|
|
246
|
+
"type": "option",
|
|
247
|
+
"char": "n",
|
|
248
|
+
"description": "Component Name (e.g. google_alert_ingestion)",
|
|
249
|
+
"multiple": false
|
|
250
|
+
},
|
|
251
|
+
"sspPath": {
|
|
252
|
+
"name": "sspPath",
|
|
253
|
+
"type": "option",
|
|
254
|
+
"char": "p",
|
|
255
|
+
"description": "Absolute path to .SSP file",
|
|
256
|
+
"multiple": false
|
|
257
|
+
},
|
|
258
|
+
"help": {
|
|
259
|
+
"name": "help",
|
|
260
|
+
"type": "boolean",
|
|
261
|
+
"char": "h",
|
|
262
|
+
"description": "Show CLI help.",
|
|
263
|
+
"allowNo": false
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"args": {}
|
|
267
|
+
},
|
|
268
|
+
"component:update": {
|
|
269
|
+
"id": "component:update",
|
|
270
|
+
"description": "Update Component Version.",
|
|
271
|
+
"strict": true,
|
|
272
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
273
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
274
|
+
"pluginType": "core",
|
|
275
|
+
"aliases": [],
|
|
276
|
+
"flags": {
|
|
277
|
+
"directory": {
|
|
278
|
+
"name": "directory",
|
|
279
|
+
"type": "option",
|
|
280
|
+
"char": "d",
|
|
281
|
+
"description": "root directory of the all Components",
|
|
282
|
+
"multiple": false,
|
|
283
|
+
"default": "."
|
|
284
|
+
},
|
|
285
|
+
"version": {
|
|
286
|
+
"name": "version",
|
|
287
|
+
"type": "option",
|
|
288
|
+
"char": "v",
|
|
289
|
+
"description": "new version of the component.",
|
|
290
|
+
"multiple": false
|
|
291
|
+
},
|
|
292
|
+
"componentType": {
|
|
293
|
+
"name": "componentType",
|
|
294
|
+
"type": "option",
|
|
295
|
+
"char": "t",
|
|
296
|
+
"description": "Component Type (e.g. classic)",
|
|
297
|
+
"multiple": false
|
|
298
|
+
},
|
|
299
|
+
"componentName": {
|
|
300
|
+
"name": "componentName",
|
|
301
|
+
"type": "option",
|
|
302
|
+
"char": "n",
|
|
303
|
+
"description": "Component Name (e.g. google_alert_ingestion)",
|
|
304
|
+
"multiple": false
|
|
305
|
+
},
|
|
306
|
+
"manifestPath": {
|
|
307
|
+
"name": "manifestPath",
|
|
308
|
+
"type": "option",
|
|
309
|
+
"char": "f",
|
|
310
|
+
"description": "Component manifest path relative to directory.",
|
|
311
|
+
"multiple": false,
|
|
312
|
+
"default": "manifest.yml"
|
|
313
|
+
},
|
|
314
|
+
"help": {
|
|
315
|
+
"name": "help",
|
|
316
|
+
"type": "boolean",
|
|
317
|
+
"char": "h",
|
|
318
|
+
"description": "Show CLI help.",
|
|
319
|
+
"allowNo": false
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"args": {}
|
|
323
|
+
},
|
|
85
324
|
"connector:build": {
|
|
86
325
|
"id": "connector:build",
|
|
87
326
|
"description": "Builds a local docker image of the connector.",
|
|
@@ -518,6 +757,136 @@
|
|
|
518
757
|
},
|
|
519
758
|
"args": {}
|
|
520
759
|
},
|
|
760
|
+
"description:action": {
|
|
761
|
+
"id": "description:action",
|
|
762
|
+
"description": "Use to generate action description",
|
|
763
|
+
"strict": true,
|
|
764
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
765
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
766
|
+
"pluginType": "core",
|
|
767
|
+
"aliases": [],
|
|
768
|
+
"flags": {
|
|
769
|
+
"help": {
|
|
770
|
+
"name": "help",
|
|
771
|
+
"type": "boolean",
|
|
772
|
+
"char": "h",
|
|
773
|
+
"description": "Show CLI help.",
|
|
774
|
+
"allowNo": false
|
|
775
|
+
},
|
|
776
|
+
"image": {
|
|
777
|
+
"name": "image",
|
|
778
|
+
"type": "option",
|
|
779
|
+
"char": "i",
|
|
780
|
+
"description": "image to use",
|
|
781
|
+
"multiple": false
|
|
782
|
+
},
|
|
783
|
+
"skip-pull": {
|
|
784
|
+
"name": "skip-pull",
|
|
785
|
+
"type": "boolean",
|
|
786
|
+
"char": "s",
|
|
787
|
+
"description": "skips pulling the image",
|
|
788
|
+
"allowNo": false
|
|
789
|
+
},
|
|
790
|
+
"directory": {
|
|
791
|
+
"name": "directory",
|
|
792
|
+
"type": "option",
|
|
793
|
+
"char": "d",
|
|
794
|
+
"description": "current directory to mount",
|
|
795
|
+
"multiple": false,
|
|
796
|
+
"default": "./"
|
|
797
|
+
},
|
|
798
|
+
"action": {
|
|
799
|
+
"name": "action",
|
|
800
|
+
"type": "option",
|
|
801
|
+
"char": "a",
|
|
802
|
+
"description": "Generate description for specific action",
|
|
803
|
+
"multiple": false
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
"args": {}
|
|
807
|
+
},
|
|
808
|
+
"description:actions": {
|
|
809
|
+
"id": "description:actions",
|
|
810
|
+
"description": "Use to generate description for all actions",
|
|
811
|
+
"strict": true,
|
|
812
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
813
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
814
|
+
"pluginType": "core",
|
|
815
|
+
"aliases": [],
|
|
816
|
+
"flags": {
|
|
817
|
+
"help": {
|
|
818
|
+
"name": "help",
|
|
819
|
+
"type": "boolean",
|
|
820
|
+
"char": "h",
|
|
821
|
+
"description": "Show CLI help.",
|
|
822
|
+
"allowNo": false
|
|
823
|
+
},
|
|
824
|
+
"image": {
|
|
825
|
+
"name": "image",
|
|
826
|
+
"type": "option",
|
|
827
|
+
"char": "i",
|
|
828
|
+
"description": "image to use",
|
|
829
|
+
"multiple": false
|
|
830
|
+
},
|
|
831
|
+
"skip-pull": {
|
|
832
|
+
"name": "skip-pull",
|
|
833
|
+
"type": "boolean",
|
|
834
|
+
"char": "s",
|
|
835
|
+
"description": "skips pulling the image",
|
|
836
|
+
"allowNo": false
|
|
837
|
+
},
|
|
838
|
+
"directory": {
|
|
839
|
+
"name": "directory",
|
|
840
|
+
"type": "option",
|
|
841
|
+
"char": "d",
|
|
842
|
+
"description": "current directory to mount",
|
|
843
|
+
"multiple": false,
|
|
844
|
+
"default": "./"
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
"args": {}
|
|
848
|
+
},
|
|
849
|
+
"description:connector": {
|
|
850
|
+
"id": "description:connector",
|
|
851
|
+
"description": "Use to generate connector descriptions",
|
|
852
|
+
"strict": true,
|
|
853
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
854
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
855
|
+
"pluginType": "core",
|
|
856
|
+
"aliases": [],
|
|
857
|
+
"flags": {
|
|
858
|
+
"help": {
|
|
859
|
+
"name": "help",
|
|
860
|
+
"type": "boolean",
|
|
861
|
+
"char": "h",
|
|
862
|
+
"description": "Show CLI help.",
|
|
863
|
+
"allowNo": false
|
|
864
|
+
},
|
|
865
|
+
"image": {
|
|
866
|
+
"name": "image",
|
|
867
|
+
"type": "option",
|
|
868
|
+
"char": "i",
|
|
869
|
+
"description": "image to use",
|
|
870
|
+
"multiple": false
|
|
871
|
+
},
|
|
872
|
+
"skip-pull": {
|
|
873
|
+
"name": "skip-pull",
|
|
874
|
+
"type": "boolean",
|
|
875
|
+
"char": "s",
|
|
876
|
+
"description": "skips pulling the image",
|
|
877
|
+
"allowNo": false
|
|
878
|
+
},
|
|
879
|
+
"directory": {
|
|
880
|
+
"name": "directory",
|
|
881
|
+
"type": "option",
|
|
882
|
+
"char": "d",
|
|
883
|
+
"description": "current directory to mount",
|
|
884
|
+
"multiple": false,
|
|
885
|
+
"default": "./"
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
"args": {}
|
|
889
|
+
},
|
|
521
890
|
"action:generate:data": {
|
|
522
891
|
"id": "action:generate:data",
|
|
523
892
|
"description": "Use to test a task in an integration",
|
package/package.json
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@apidevtools/json-schema-ref-parser": "10.1.0",
|
|
8
8
|
"@oclif/core": "2.8.5",
|
|
9
|
-
"@sw-tsdk/common": "^2.
|
|
10
|
-
"@sw-tsdk/connector": "^2.
|
|
11
|
-
"@sw-tsdk/core": "^2.
|
|
12
|
-
"@sw-tsdk/docker": "^2.
|
|
9
|
+
"@sw-tsdk/common": "^2.19.0",
|
|
10
|
+
"@sw-tsdk/connector": "^2.19.0",
|
|
11
|
+
"@sw-tsdk/core": "^2.19.0",
|
|
12
|
+
"@sw-tsdk/docker": "^2.19.0",
|
|
13
13
|
"@swimlane/connector-interfaces": "1.11.0",
|
|
14
14
|
"@swimlane/cosign": "1.4.1",
|
|
15
15
|
"@swimlane/docker-reference": "2.0.1",
|
|
@@ -67,6 +67,12 @@
|
|
|
67
67
|
},
|
|
68
68
|
"connectors": {
|
|
69
69
|
"description": "Local connectors commands"
|
|
70
|
+
},
|
|
71
|
+
"component": {
|
|
72
|
+
"description": "Local component commands"
|
|
73
|
+
},
|
|
74
|
+
"description": {
|
|
75
|
+
"description": "Local description commands"
|
|
70
76
|
}
|
|
71
77
|
}
|
|
72
78
|
},
|
|
@@ -89,6 +95,6 @@
|
|
|
89
95
|
"posttest": "yarn lint",
|
|
90
96
|
"dev:setup": "npm link"
|
|
91
97
|
},
|
|
92
|
-
"version": "2.
|
|
93
|
-
"gitHead": "
|
|
98
|
+
"version": "2.19.0",
|
|
99
|
+
"gitHead": "bc3713cc4df54c48dff7e8bf2444cc0cfb1cb7e7"
|
|
94
100
|
}
|