@sw-tsdk/plugin-connector 2.11.2-alpha.39 → 2.11.2-next.101

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.
Files changed (40) hide show
  1. package/README.md +223 -33
  2. package/lib/commands/component/create.d.ts +34 -0
  3. package/lib/commands/component/create.js +168 -0
  4. package/lib/commands/component/create.js.map +1 -0
  5. package/lib/commands/component/logo.d.ts +12 -0
  6. package/lib/commands/component/logo.js +63 -0
  7. package/lib/commands/component/logo.js.map +1 -0
  8. package/lib/commands/component/ssp.d.ts +12 -0
  9. package/lib/commands/component/ssp.js +64 -0
  10. package/lib/commands/component/ssp.js.map +1 -0
  11. package/lib/commands/component/update.d.ts +13 -0
  12. package/lib/commands/component/update.js +68 -0
  13. package/lib/commands/component/update.js.map +1 -0
  14. package/lib/commands/connector/build.js +1 -1
  15. package/lib/commands/connector/build.js.map +1 -1
  16. package/lib/commands/connector/create/openapi.js +12 -4
  17. package/lib/commands/connector/create/openapi.js.map +1 -1
  18. package/lib/commands/connector/create.d.ts +1 -0
  19. package/lib/commands/connector/create.js +39 -9
  20. package/lib/commands/connector/create.js.map +1 -1
  21. package/lib/commands/connector/logo.js +10 -1
  22. package/lib/commands/connector/logo.js.map +1 -1
  23. package/lib/commands/description/action.d.ts +12 -0
  24. package/lib/commands/description/action.js +87 -0
  25. package/lib/commands/description/action.js.map +1 -0
  26. package/lib/commands/description/actions.d.ts +11 -0
  27. package/lib/commands/description/actions.js +81 -0
  28. package/lib/commands/description/actions.js.map +1 -0
  29. package/lib/commands/description/component.d.ts +15 -0
  30. package/lib/commands/description/component.js +132 -0
  31. package/lib/commands/description/component.js.map +1 -0
  32. package/lib/commands/description/connector.d.ts +11 -0
  33. package/lib/commands/description/connector.js +81 -0
  34. package/lib/commands/description/connector.js.map +1 -0
  35. package/lib/common.d.ts +5 -0
  36. package/lib/common.js +85 -10
  37. package/lib/common.js.map +1 -1
  38. package/lib/types/connector-types.d.ts +25 -0
  39. package/oclif.manifest.json +448 -1
  40. package/package.json +14 -8
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.11.2-alpha.39+5a332d5",
2
+ "version": "2.11.2-next.101+56f97ca",
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.",
@@ -102,6 +341,7 @@
102
341
  "node_18",
103
342
  "node_20",
104
343
  "python_39_definition",
344
+ "python_39_turbine",
105
345
  "python_310_definition",
106
346
  "python_311_definition"
107
347
  ]
@@ -288,6 +528,12 @@
288
528
  "char": "h",
289
529
  "description": "Show CLI help.",
290
530
  "allowNo": false
531
+ },
532
+ "aspirationalConnector": {
533
+ "name": "aspirationalConnector",
534
+ "type": "option",
535
+ "description": "Is it an aspirational connector? (e.g. false)",
536
+ "multiple": false
291
537
  }
292
538
  },
293
539
  "args": {}
@@ -511,6 +757,207 @@
511
757
  },
512
758
  "args": {}
513
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:component": {
850
+ "id": "description:component",
851
+ "description": "Use to generate component 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
+ "componentName": {
888
+ "name": "componentName",
889
+ "type": "option",
890
+ "char": "c",
891
+ "description": "component name",
892
+ "multiple": false
893
+ },
894
+ "componentType": {
895
+ "name": "componentType",
896
+ "type": "option",
897
+ "char": "t",
898
+ "description": "ingestion | enrichment | remediation",
899
+ "multiple": false,
900
+ "default": "ingestion"
901
+ },
902
+ "componentVariety": {
903
+ "name": "componentVariety",
904
+ "type": "option",
905
+ "char": "v",
906
+ "description": "classic | canvas",
907
+ "multiple": false,
908
+ "default": "classic"
909
+ },
910
+ "connectorLocalPath": {
911
+ "name": "connectorLocalPath",
912
+ "type": "option",
913
+ "char": "p",
914
+ "description": "local path to connector",
915
+ "multiple": false
916
+ }
917
+ },
918
+ "args": {}
919
+ },
920
+ "description:connector": {
921
+ "id": "description:connector",
922
+ "description": "Use to generate connector descriptions",
923
+ "strict": true,
924
+ "pluginName": "@sw-tsdk/plugin-connector",
925
+ "pluginAlias": "@sw-tsdk/plugin-connector",
926
+ "pluginType": "core",
927
+ "aliases": [],
928
+ "flags": {
929
+ "help": {
930
+ "name": "help",
931
+ "type": "boolean",
932
+ "char": "h",
933
+ "description": "Show CLI help.",
934
+ "allowNo": false
935
+ },
936
+ "image": {
937
+ "name": "image",
938
+ "type": "option",
939
+ "char": "i",
940
+ "description": "image to use",
941
+ "multiple": false
942
+ },
943
+ "skip-pull": {
944
+ "name": "skip-pull",
945
+ "type": "boolean",
946
+ "char": "s",
947
+ "description": "skips pulling the image",
948
+ "allowNo": false
949
+ },
950
+ "directory": {
951
+ "name": "directory",
952
+ "type": "option",
953
+ "char": "d",
954
+ "description": "current directory to mount",
955
+ "multiple": false,
956
+ "default": "./"
957
+ }
958
+ },
959
+ "args": {}
960
+ },
514
961
  "action:generate:data": {
515
962
  "id": "action:generate:data",
516
963
  "description": "Use to test a task in an integration",
package/package.json CHANGED
@@ -6,13 +6,13 @@
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.11.2-alpha.39+5a332d5",
10
- "@sw-tsdk/connector": "^2.11.2-alpha.39+5a332d5",
11
- "@sw-tsdk/core": "^2.11.2-alpha.39+5a332d5",
12
- "@sw-tsdk/docker": "^2.11.2-alpha.39+5a332d5",
13
- "@swimlane/connector-interfaces": "1.8.5-rc7",
9
+ "@sw-tsdk/common": "^2.11.2-next.101+56f97ca",
10
+ "@sw-tsdk/connector": "^2.11.2-next.101+56f97ca",
11
+ "@sw-tsdk/core": "^2.11.2-next.101+56f97ca",
12
+ "@sw-tsdk/docker": "^2.11.2-next.101+56f97ca",
13
+ "@swimlane/connector-interfaces": "1.11.0",
14
14
  "@swimlane/cosign": "1.4.1",
15
- "@swimlane/docker-reference": "2.0.0",
15
+ "@swimlane/docker-reference": "2.0.1",
16
16
  "fs-extra": "11.1.1",
17
17
  "handlebars": "4.7.7",
18
18
  "inquirer": "8.2.2",
@@ -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.11.2-alpha.39+5a332d5",
93
- "gitHead": "5a332d5310606d97823c6df362849eee1d21d29f"
98
+ "version": "2.11.2-next.101+56f97ca",
99
+ "gitHead": "56f97ca53c71a7bbb44d04f907aa2b8f17415adf"
94
100
  }