@sw-tsdk/plugin-connector 2.11.1 → 2.11.2-alpha.39
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 +25 -25
- package/lib/commands/action/add.d.ts +2 -2
- package/lib/commands/action/add.js +14 -8
- package/lib/commands/action/add.js.map +1 -1
- package/lib/commands/action/generate/data.d.ts +4 -4
- package/lib/commands/action/generate/data.js +23 -13
- package/lib/commands/action/generate/data.js.map +1 -1
- package/lib/commands/action/generate/input.d.ts +4 -4
- package/lib/commands/action/generate/input.js +19 -11
- package/lib/commands/action/generate/input.js.map +1 -1
- package/lib/commands/action/generate/output.d.ts +4 -4
- package/lib/commands/action/generate/output.js +19 -11
- package/lib/commands/action/generate/output.js.map +1 -1
- package/lib/commands/action/run/image.d.ts +9 -9
- package/lib/commands/action/run/image.js +39 -27
- package/lib/commands/action/run/image.js.map +1 -1
- package/lib/commands/action/run/local.d.ts +11 -11
- package/lib/commands/action/run/local.js +50 -34
- package/lib/commands/action/run/local.js.map +1 -1
- package/lib/commands/asset/add.d.ts +2 -2
- package/lib/commands/asset/add.js +12 -7
- package/lib/commands/asset/add.js.map +1 -1
- package/lib/commands/connector/build.d.ts +10 -10
- package/lib/commands/connector/build.js +37 -20
- package/lib/commands/connector/build.js.map +1 -1
- package/lib/commands/connector/create/openapi.d.ts +12 -11
- package/lib/commands/connector/create/openapi.js +117 -60
- package/lib/commands/connector/create/openapi.js.map +1 -1
- package/lib/commands/connector/create/source.d.ts +2 -2
- package/lib/commands/connector/create/source.js +12 -6
- package/lib/commands/connector/create/source.js.map +1 -1
- package/lib/commands/connector/create.d.ts +10 -10
- package/lib/commands/connector/create.js +24 -11
- package/lib/commands/connector/create.js.map +1 -1
- package/lib/commands/connector/logo.d.ts +2 -2
- package/lib/commands/connector/logo.js +10 -5
- package/lib/commands/connector/logo.js.map +1 -1
- package/lib/commands/connector/sign.d.ts +6 -6
- package/lib/commands/connector/sign.js +24 -13
- package/lib/commands/connector/sign.js.map +1 -1
- package/lib/commands/connector/update.d.ts +3 -3
- package/lib/commands/connector/update.js +14 -8
- package/lib/commands/connector/update.js.map +1 -1
- package/lib/commands/connector/validate.d.ts +4 -4
- package/lib/commands/connector/validate.js +22 -14
- package/lib/commands/connector/validate.js.map +1 -1
- package/lib/common.js +4 -0
- package/lib/common.js.map +1 -1
- package/lib/templates/assets/http_bearer.yaml +1 -2
- package/lib/types/connector-types.d.ts +2 -2
- package/oclif.manifest.json +1007 -1
- package/package.json +13 -13
package/oclif.manifest.json
CHANGED
|
@@ -1 +1,1007 @@
|
|
|
1
|
-
{"version":"2.11.1","commands":{"action:add":{"id":"action:add","description":"Update a connector action.","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","aliases":[],"flags":{"directory":{"name":"directory","type":"option","char":"d","description":"Root directory of the repository.","multiple":false,"default":"./"},"template":{"name":"template","type":"option","char":"t","description":"action template to scaffold","multiple":false,"options":["node_18","python_definition","python"],"default":"python_definition"},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"asset:add":{"id":"asset:add","description":"Update a connector action.","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","aliases":[],"flags":{"directory":{"name":"directory","type":"option","char":"d","description":"Root directory of the repository.","multiple":false,"default":"./"},"scheme":{"name":"scheme","type":"option","char":"s","description":"asset template to scaffold","multiple":false,"options":["custom","apikey","oauth2_client_credentials","http_basic","http_bearer"]},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"connector:build":{"id":"connector:build","description":"Builds a local docker image of the connector.","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","aliases":[],"flags":{"template":{"name":"template","type":"option","description":"connector language","required":false,"multiple":false,"options":["python_37_swimlane","node_18","python_39_definition","python_310_definition","python_311_definition"]},"compile-override":{"name":"compile-override","type":"option","hidden":true,"multiple":false,"default":"Compile.Dockerfile"},"runner-override":{"name":"runner-override","type":"option","hidden":true,"multiple":false,"default":"Runner.Dockerfile"},"runtime-override":{"name":"runtime-override","type":"option","hidden":true,"multiple":false},"directory":{"name":"directory","type":"option","char":"d","description":"root directory of the repository.","multiple":false,"default":"./"},"save":{"name":"save","type":"boolean","description":"saves a signed docker image as tar in local directory.","allowNo":false},"squash":{"name":"squash","type":"boolean","description":"squashes the docker layers.","hidden":true,"allowNo":false},"force-rebuild":{"name":"force-rebuild","type":"boolean","char":"f","description":"forces nocache on the image build","allowNo":false},"platform":{"name":"platform","type":"option","hidden":true,"multiple":false,"default":"linux/amd64"},"signing-password":{"name":"signing-password","type":"option","description":"password used for the private key (ENV: TURBINE_SIGNING_PASSWORD)","multiple":false,"default":""},"key-name":{"name":"key-name","type":"option","description":"name used for the key (default: username_yyyy-MM-dd)","multiple":false},"skip-upload":{"name":"skip-upload","type":"boolean","hidden":true,"allowNo":false},"registry":{"name":"registry","type":"option","description":"registry to use for signing","multiple":false,"default":"localhost:5000"},"output":{"name":"output","type":"option","char":"o","description":"output path to where to store the image.","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"connector:create":{"id":"connector:create","description":"Scaffold a new connector","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","aliases":[],"flags":{"directory":{"name":"directory","type":"option","char":"d","description":"root directory for where to store connectors, the connector directory will be generated.","multiple":false,"default":"./"},"template":{"name":"template","type":"option","char":"t","description":"connector template to scaffold","multiple":false,"options":["python_310_definition","python_311_definition","python_3"],"default":"python_311_definition"},"vendor":{"name":"vendor","type":"option","description":"Vendor (e.g. CrowdStrike)","multiple":false},"product":{"name":"product","type":"option","description":"Product (e.g. Falcon)","multiple":false},"keywords":{"name":"keywords","type":"option","description":"Enter keywords (Comma-Separated)","multiple":false},"description":{"name":"description","type":"option","description":"Description (e.g. CrowdStrike Host Query API)","multiple":false},"logoPath":{"name":"logoPath","type":"option","description":"URL or absolute path to logo file","multiple":false},"author":{"name":"author","type":"option","description":"Connector Author","multiple":false},"authorEmail":{"name":"authorEmail","type":"option","description":"Connector Author Email","multiple":false},"homepage":{"name":"homepage","type":"option","description":"Connector Author Support URL","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"connector:logo":{"id":"connector:logo","description":"Update a connector.","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","aliases":[],"flags":{"directory":{"name":"directory","type":"option","char":"d","description":"root directory of the connector folder.","multiple":false,"default":"."},"path":{"name":"path","type":"option","char":"p","description":"path or URL to product logo in PNG format.","required":true,"multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"connector:sign":{"id":"connector:sign","description":"Builds a local docker image of the connector.","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","aliases":[],"flags":{"directory":{"name":"directory","type":"option","char":"d","description":"root directory of the repository.","multiple":false,"default":"./"},"image":{"name":"image","type":"option","description":"image name to sign","required":true,"multiple":false},"signing-password":{"name":"signing-password","type":"option","description":"password used for the private key","multiple":false,"default":""},"save":{"name":"save","type":"boolean","description":"saves docker image as tar in local directory.","allowNo":false},"key-name":{"name":"key-name","type":"option","description":"name used for the key (default: username)","required":true,"multiple":false},"skip-upload":{"name":"skip-upload","type":"boolean","hidden":true,"allowNo":false},"registry":{"name":"registry","type":"option","description":"registry to use for signing","multiple":false,"default":"localhost:5000"},"output":{"name":"output","type":"option","char":"o","description":"output path to where to store the image.","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"connector:update":{"id":"connector:update","description":"Update a connector.","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","aliases":[],"flags":{"directory":{"name":"directory","type":"option","char":"d","description":"root directory of the connector folder.","multiple":false,"default":"."},"version":{"name":"version","type":"option","char":"v","description":"new version of the connector.","multiple":false},"manifest-path":{"name":"manifest-path","type":"option","char":"f","description":"connector manifest path relative to directory.","multiple":false,"default":"/connector/connector.yaml"},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"connector:validate":{"id":"connector:validate","description":"Use to validate an integration","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"image":{"name":"image","type":"option","char":"i","description":"image to use","multiple":false},"connector":{"name":"connector","type":"option","char":"c","description":"connector to validate (relative to directory)","required":true,"multiple":false,"default":"connector"},"signed":{"name":"signed","type":"boolean","description":"validates a signed connector","allowNo":false},"key":{"name":"key","type":"option","description":"public key for verification","multiple":false,"dependsOn":["signed"],"exclusive":["skip-verification"]},"skip-pull":{"name":"skip-pull","type":"boolean","char":"s","description":"skips pulling the image","allowNo":false},"directory":{"name":"directory","type":"option","char":"d","description":"current directory to mount","multiple":false,"default":"./"}},"args":[]},"action:generate:data":{"id":"action:generate:data","description":"Use to test a task in an integration","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"action":{"name":"action","type":"option","char":"a","description":"action to generate data","multiple":false},"asset":{"name":"asset","type":"option","description":"Filename for asset, defaults to the task name under the data folder. ie: data/asset_name.json","multiple":false},"inputs":{"name":"inputs","type":"option","description":"Filename for JSON inputs, defaults to the task name under the data folder. ie: data/my_task.json","multiple":false},"directory":{"name":"directory","type":"option","char":"d","description":"current directory to mount","multiple":false,"default":"./"},"include-optional":{"name":"include-optional","type":"boolean","description":"used to only generate required properties","allowNo":false},"force":{"name":"force","type":"boolean","description":"overwrites current files","allowNo":false}},"args":[]},"action:generate:input":{"id":"action:generate:input","description":"Update action input schema.","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","aliases":[],"flags":{"action":{"name":"action","type":"option","char":"a","description":"Action name to run","multiple":false},"directory":{"name":"directory","type":"option","char":"d","description":"Root directory of the repository.","multiple":false,"default":"./"},"amend":{"name":"amend","type":"boolean","description":"Merge with existing schema.","allowNo":false},"action-config-path":{"name":"action-config-path","type":"option","description":"Override path to action configuration file. Defaults to /connector/config/actions/<action>.yaml","multiple":false},"input-path":{"name":"input-path","type":"option","description":"Relative path to the output data JSON file, defaults to the task name under the data folder. ie: /data/<taskName>_output.json","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"action:generate:output":{"id":"action:generate:output","description":"Update a connector action.","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","aliases":[],"flags":{"action":{"name":"action","type":"option","char":"a","description":"Action name to run","multiple":false},"directory":{"name":"directory","type":"option","char":"d","description":"Root directory of the repository.","multiple":false,"default":"./"},"action-config-path":{"name":"action-config-path","type":"option","description":"Override path to action configuration file. Defaults to /connector/config/<action>.yaml","multiple":false},"amend":{"name":"amend","type":"boolean","description":"Merge with existing schema.","allowNo":false},"output-path":{"name":"output-path","type":"option","description":"Relative path to the output data JSON file, defaults to the task name under the data folder. ie: /data/<taskName>_output.json","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"action:run:image":{"id":"action:run:image","description":"Runs a connector action. (Defaults to current image version in local repository).","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","hidden":true,"aliases":[],"flags":{"action":{"name":"action","type":"option","char":"a","description":"Action name to run","required":true,"multiple":false},"directory":{"name":"directory","type":"option","char":"d","description":"Root directory of the repository.","multiple":false,"default":"./"},"input-path":{"name":"input-path","type":"option","description":"File to input data JSON file","required":true,"multiple":false},"output-path":{"name":"output-path","type":"option","description":"File to write the outputs to, defaults to /data/<action>_output.json","multiple":false},"error-path":{"name":"error-path","type":"option","description":"File to write the errors to, defaults to /data/<action>_error.json","multiple":false},"asset-path":{"name":"asset-path","type":"option","description":"File to asset data JSON file, defaults to /data/asset.json","multiple":false},"repository":{"name":"repository","type":"option","char":"r","description":"The connector image repository to run.","multiple":false},"version":{"name":"version","type":"option","description":"Use the latest release image from quay.","multiple":false,"default":"latest"},"stdin":{"name":"stdin","type":"boolean","description":"Send the inputs through stdin instead of an environment variable.","allowNo":false},"platform":{"name":"platform","type":"option","hidden":true,"multiple":false,"default":"linux/amd64"},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"action:run:local":{"id":"action:run:local","description":"Runs a connector action. (Defaults to current image version in local repository).","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","aliases":[],"flags":{"action":{"name":"action","type":"option","char":"a","description":"Action name to run","multiple":false},"directory":{"name":"directory","type":"option","char":"d","description":"Root directory of the repository.","multiple":false,"default":"./"},"input-path":{"name":"input-path","type":"option","description":"File to input data JSON file, defaults to /data/<action>.json","multiple":false},"output-path":{"name":"output-path","type":"option","description":"File to write the outputs to, defaults to /data/<action>_output.json","multiple":false},"error-path":{"name":"error-path","type":"option","description":"File to write the errors to, defaults to /data/<action>_error.json","multiple":false},"asset-path":{"name":"asset-path","type":"option","description":"File to asset data JSON file, defaults to /data/asset.json","multiple":false},"template":{"name":"template","type":"option","description":"connector template","required":false,"multiple":false,"options":["python_37_swimlane","node_18","python_39_definition","python_310_definition","python_311_definition"]},"compile-override":{"name":"compile-override","type":"option","hidden":true,"multiple":false,"default":"Compile.Dockerfile"},"runner-override":{"name":"runner-override","type":"option","hidden":true,"multiple":false,"default":"Runner.Dockerfile"},"runtime-override":{"name":"runtime-override","type":"option","hidden":true,"multiple":false},"force-rebuild":{"name":"force-rebuild","type":"boolean","char":"f","description":"forces nocache on the image build","allowNo":false},"platform":{"name":"platform","type":"option","hidden":true,"multiple":false,"default":"linux/amd64"},"debug":{"name":"debug","type":"boolean","description":"forces a breakpoint in run.py","hidden":true,"allowNo":false},"no-remove":{"name":"no-remove","type":"boolean","hidden":true,"allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"connector:create:openapi":{"id":"connector:create:openapi","description":"Scaffold a new connector","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","aliases":[],"flags":{"directory":{"name":"directory","type":"option","char":"d","description":"root directory for where to store connectors, the connector directory will be generated.","multiple":false,"default":"./"},"vendor":{"name":"vendor","type":"option","description":"Vendor (e.g. CrowdStrike)","multiple":false},"product":{"name":"product","type":"option","description":"Product (e.g. Falcon)","multiple":false},"keywords":{"name":"keywords","type":"option","char":"k","description":"Please enter keyword (Comma-Separated)","multiple":false},"description":{"name":"description","type":"option","description":"Description (e.g. CrowdStrike Host Query API)","multiple":false},"logoPath":{"name":"logoPath","type":"option","description":"URL or absolute path to logo file","multiple":false},"author":{"name":"author","type":"option","description":"Connector Author","multiple":false},"authorEmail":{"name":"authorEmail","type":"option","description":"Connector Author Email","multiple":false},"homepage":{"name":"homepage","type":"option","description":"Connector Author Support URL","multiple":false},"specs":{"name":"specs","type":"option","char":"o","description":"root directory for where to store connectors, the connector directory will be generated.","multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]},"connector:create:source":{"id":"connector:create:source","description":"Generates 11x source from 10x","strict":true,"pluginName":"@sw-tsdk/plugin-connector","pluginAlias":"@sw-tsdk/plugin-connector","pluginType":"core","aliases":[],"flags":{"directory":{"name":"directory","type":"option","char":"d","description":"root directory of the repository.","multiple":false,"default":"./"},"manifests-only":{"name":"manifests-only","type":"boolean","hidden":true,"allowNo":false},"archive":{"name":"archive","type":"option","hidden":true,"multiple":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false}},"args":[]}}}
|
|
1
|
+
{
|
|
2
|
+
"version": "2.11.2-alpha.39+5a332d5",
|
|
3
|
+
"commands": {
|
|
4
|
+
"action:add": {
|
|
5
|
+
"id": "action:add",
|
|
6
|
+
"description": "Update a connector action.",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
9
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
10
|
+
"pluginType": "core",
|
|
11
|
+
"aliases": [],
|
|
12
|
+
"flags": {
|
|
13
|
+
"directory": {
|
|
14
|
+
"name": "directory",
|
|
15
|
+
"type": "option",
|
|
16
|
+
"char": "d",
|
|
17
|
+
"description": "Root directory of the repository.",
|
|
18
|
+
"multiple": false,
|
|
19
|
+
"default": "./"
|
|
20
|
+
},
|
|
21
|
+
"template": {
|
|
22
|
+
"name": "template",
|
|
23
|
+
"type": "option",
|
|
24
|
+
"char": "t",
|
|
25
|
+
"description": "action template to scaffold",
|
|
26
|
+
"multiple": false,
|
|
27
|
+
"options": [
|
|
28
|
+
"node",
|
|
29
|
+
"python_definition",
|
|
30
|
+
"python"
|
|
31
|
+
],
|
|
32
|
+
"default": "python_definition"
|
|
33
|
+
},
|
|
34
|
+
"help": {
|
|
35
|
+
"name": "help",
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"char": "h",
|
|
38
|
+
"description": "Show CLI help.",
|
|
39
|
+
"allowNo": false
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"args": {}
|
|
43
|
+
},
|
|
44
|
+
"asset:add": {
|
|
45
|
+
"id": "asset:add",
|
|
46
|
+
"description": "Update a connector action.",
|
|
47
|
+
"strict": true,
|
|
48
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
49
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
50
|
+
"pluginType": "core",
|
|
51
|
+
"aliases": [],
|
|
52
|
+
"flags": {
|
|
53
|
+
"directory": {
|
|
54
|
+
"name": "directory",
|
|
55
|
+
"type": "option",
|
|
56
|
+
"char": "d",
|
|
57
|
+
"description": "Root directory of the repository.",
|
|
58
|
+
"multiple": false,
|
|
59
|
+
"default": "./"
|
|
60
|
+
},
|
|
61
|
+
"scheme": {
|
|
62
|
+
"name": "scheme",
|
|
63
|
+
"type": "option",
|
|
64
|
+
"char": "s",
|
|
65
|
+
"description": "asset template to scaffold",
|
|
66
|
+
"multiple": false,
|
|
67
|
+
"options": [
|
|
68
|
+
"custom",
|
|
69
|
+
"apikey",
|
|
70
|
+
"oauth2_client_credentials",
|
|
71
|
+
"http_basic",
|
|
72
|
+
"http_bearer"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"help": {
|
|
76
|
+
"name": "help",
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"char": "h",
|
|
79
|
+
"description": "Show CLI help.",
|
|
80
|
+
"allowNo": false
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"args": {}
|
|
84
|
+
},
|
|
85
|
+
"connector:build": {
|
|
86
|
+
"id": "connector:build",
|
|
87
|
+
"description": "Builds a local docker image of the connector.",
|
|
88
|
+
"strict": true,
|
|
89
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
90
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
91
|
+
"pluginType": "core",
|
|
92
|
+
"aliases": [],
|
|
93
|
+
"flags": {
|
|
94
|
+
"template": {
|
|
95
|
+
"name": "template",
|
|
96
|
+
"type": "option",
|
|
97
|
+
"description": "connector language",
|
|
98
|
+
"required": false,
|
|
99
|
+
"multiple": false,
|
|
100
|
+
"options": [
|
|
101
|
+
"python_37_swimlane",
|
|
102
|
+
"node_18",
|
|
103
|
+
"node_20",
|
|
104
|
+
"python_39_definition",
|
|
105
|
+
"python_310_definition",
|
|
106
|
+
"python_311_definition"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"compile-override": {
|
|
110
|
+
"name": "compile-override",
|
|
111
|
+
"type": "option",
|
|
112
|
+
"hidden": true,
|
|
113
|
+
"multiple": false,
|
|
114
|
+
"default": "Compile.Dockerfile"
|
|
115
|
+
},
|
|
116
|
+
"runner-override": {
|
|
117
|
+
"name": "runner-override",
|
|
118
|
+
"type": "option",
|
|
119
|
+
"hidden": true,
|
|
120
|
+
"multiple": false,
|
|
121
|
+
"default": "Runner.Dockerfile"
|
|
122
|
+
},
|
|
123
|
+
"runtime-override": {
|
|
124
|
+
"name": "runtime-override",
|
|
125
|
+
"type": "option",
|
|
126
|
+
"hidden": true,
|
|
127
|
+
"multiple": false
|
|
128
|
+
},
|
|
129
|
+
"directory": {
|
|
130
|
+
"name": "directory",
|
|
131
|
+
"type": "option",
|
|
132
|
+
"char": "d",
|
|
133
|
+
"description": "root directory of the repository.",
|
|
134
|
+
"multiple": false,
|
|
135
|
+
"default": "./"
|
|
136
|
+
},
|
|
137
|
+
"save": {
|
|
138
|
+
"name": "save",
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"description": "saves a signed docker image as tar in local directory.",
|
|
141
|
+
"allowNo": false
|
|
142
|
+
},
|
|
143
|
+
"squash": {
|
|
144
|
+
"name": "squash",
|
|
145
|
+
"type": "boolean",
|
|
146
|
+
"description": "squashes the docker layers.",
|
|
147
|
+
"hidden": true,
|
|
148
|
+
"allowNo": false
|
|
149
|
+
},
|
|
150
|
+
"force-rebuild": {
|
|
151
|
+
"name": "force-rebuild",
|
|
152
|
+
"type": "boolean",
|
|
153
|
+
"char": "f",
|
|
154
|
+
"description": "forces nocache on the image build",
|
|
155
|
+
"allowNo": false
|
|
156
|
+
},
|
|
157
|
+
"platform": {
|
|
158
|
+
"name": "platform",
|
|
159
|
+
"type": "option",
|
|
160
|
+
"hidden": true,
|
|
161
|
+
"multiple": false,
|
|
162
|
+
"default": "linux/amd64"
|
|
163
|
+
},
|
|
164
|
+
"signing-password": {
|
|
165
|
+
"name": "signing-password",
|
|
166
|
+
"type": "option",
|
|
167
|
+
"description": "password used for the private key (ENV: TURBINE_SIGNING_PASSWORD)",
|
|
168
|
+
"multiple": false,
|
|
169
|
+
"default": ""
|
|
170
|
+
},
|
|
171
|
+
"key-name": {
|
|
172
|
+
"name": "key-name",
|
|
173
|
+
"type": "option",
|
|
174
|
+
"description": "name used for the key (default: username_yyyy-MM-dd)",
|
|
175
|
+
"multiple": false
|
|
176
|
+
},
|
|
177
|
+
"skip-upload": {
|
|
178
|
+
"name": "skip-upload",
|
|
179
|
+
"type": "boolean",
|
|
180
|
+
"hidden": true,
|
|
181
|
+
"allowNo": false
|
|
182
|
+
},
|
|
183
|
+
"registry": {
|
|
184
|
+
"name": "registry",
|
|
185
|
+
"type": "option",
|
|
186
|
+
"description": "registry to use for signing",
|
|
187
|
+
"multiple": false,
|
|
188
|
+
"default": "localhost:5000"
|
|
189
|
+
},
|
|
190
|
+
"output": {
|
|
191
|
+
"name": "output",
|
|
192
|
+
"type": "option",
|
|
193
|
+
"char": "o",
|
|
194
|
+
"description": "output path to where to store the image.",
|
|
195
|
+
"multiple": false
|
|
196
|
+
},
|
|
197
|
+
"help": {
|
|
198
|
+
"name": "help",
|
|
199
|
+
"type": "boolean",
|
|
200
|
+
"char": "h",
|
|
201
|
+
"description": "Show CLI help.",
|
|
202
|
+
"allowNo": false
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"args": {}
|
|
206
|
+
},
|
|
207
|
+
"connector:create": {
|
|
208
|
+
"id": "connector:create",
|
|
209
|
+
"description": "Scaffold a new connector",
|
|
210
|
+
"strict": true,
|
|
211
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
212
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
213
|
+
"pluginType": "core",
|
|
214
|
+
"aliases": [],
|
|
215
|
+
"flags": {
|
|
216
|
+
"directory": {
|
|
217
|
+
"name": "directory",
|
|
218
|
+
"type": "option",
|
|
219
|
+
"char": "d",
|
|
220
|
+
"description": "root directory for where to store connectors, the connector directory will be generated.",
|
|
221
|
+
"multiple": false,
|
|
222
|
+
"default": "./"
|
|
223
|
+
},
|
|
224
|
+
"template": {
|
|
225
|
+
"name": "template",
|
|
226
|
+
"type": "option",
|
|
227
|
+
"char": "t",
|
|
228
|
+
"description": "connector template to scaffold",
|
|
229
|
+
"multiple": false,
|
|
230
|
+
"options": [
|
|
231
|
+
"python_310_definition",
|
|
232
|
+
"python_311_definition",
|
|
233
|
+
"python_3"
|
|
234
|
+
],
|
|
235
|
+
"default": "python_311_definition"
|
|
236
|
+
},
|
|
237
|
+
"vendor": {
|
|
238
|
+
"name": "vendor",
|
|
239
|
+
"type": "option",
|
|
240
|
+
"description": "Vendor (e.g. CrowdStrike)",
|
|
241
|
+
"multiple": false
|
|
242
|
+
},
|
|
243
|
+
"product": {
|
|
244
|
+
"name": "product",
|
|
245
|
+
"type": "option",
|
|
246
|
+
"description": "Product (e.g. Falcon)",
|
|
247
|
+
"multiple": false
|
|
248
|
+
},
|
|
249
|
+
"keywords": {
|
|
250
|
+
"name": "keywords",
|
|
251
|
+
"type": "option",
|
|
252
|
+
"description": "Enter keywords (Comma-Separated)",
|
|
253
|
+
"multiple": false
|
|
254
|
+
},
|
|
255
|
+
"description": {
|
|
256
|
+
"name": "description",
|
|
257
|
+
"type": "option",
|
|
258
|
+
"description": "Description (e.g. CrowdStrike Host Query API)",
|
|
259
|
+
"multiple": false
|
|
260
|
+
},
|
|
261
|
+
"logoPath": {
|
|
262
|
+
"name": "logoPath",
|
|
263
|
+
"type": "option",
|
|
264
|
+
"description": "URL or absolute path to logo file",
|
|
265
|
+
"multiple": false
|
|
266
|
+
},
|
|
267
|
+
"author": {
|
|
268
|
+
"name": "author",
|
|
269
|
+
"type": "option",
|
|
270
|
+
"description": "Connector Author",
|
|
271
|
+
"multiple": false
|
|
272
|
+
},
|
|
273
|
+
"authorEmail": {
|
|
274
|
+
"name": "authorEmail",
|
|
275
|
+
"type": "option",
|
|
276
|
+
"description": "Connector Author Email",
|
|
277
|
+
"multiple": false
|
|
278
|
+
},
|
|
279
|
+
"homepage": {
|
|
280
|
+
"name": "homepage",
|
|
281
|
+
"type": "option",
|
|
282
|
+
"description": "Connector Author Support URL",
|
|
283
|
+
"multiple": false
|
|
284
|
+
},
|
|
285
|
+
"help": {
|
|
286
|
+
"name": "help",
|
|
287
|
+
"type": "boolean",
|
|
288
|
+
"char": "h",
|
|
289
|
+
"description": "Show CLI help.",
|
|
290
|
+
"allowNo": false
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"args": {}
|
|
294
|
+
},
|
|
295
|
+
"connector:logo": {
|
|
296
|
+
"id": "connector:logo",
|
|
297
|
+
"description": "Update a connector.",
|
|
298
|
+
"strict": true,
|
|
299
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
300
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
301
|
+
"pluginType": "core",
|
|
302
|
+
"aliases": [],
|
|
303
|
+
"flags": {
|
|
304
|
+
"directory": {
|
|
305
|
+
"name": "directory",
|
|
306
|
+
"type": "option",
|
|
307
|
+
"char": "d",
|
|
308
|
+
"description": "root directory of the connector folder.",
|
|
309
|
+
"multiple": false,
|
|
310
|
+
"default": "."
|
|
311
|
+
},
|
|
312
|
+
"path": {
|
|
313
|
+
"name": "path",
|
|
314
|
+
"type": "option",
|
|
315
|
+
"char": "p",
|
|
316
|
+
"description": "path or URL to product logo in PNG format.",
|
|
317
|
+
"required": true,
|
|
318
|
+
"multiple": false
|
|
319
|
+
},
|
|
320
|
+
"help": {
|
|
321
|
+
"name": "help",
|
|
322
|
+
"type": "boolean",
|
|
323
|
+
"char": "h",
|
|
324
|
+
"description": "Show CLI help.",
|
|
325
|
+
"allowNo": false
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"args": {}
|
|
329
|
+
},
|
|
330
|
+
"connector:sign": {
|
|
331
|
+
"id": "connector:sign",
|
|
332
|
+
"description": "Builds a local docker image of the connector.",
|
|
333
|
+
"strict": true,
|
|
334
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
335
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
336
|
+
"pluginType": "core",
|
|
337
|
+
"aliases": [],
|
|
338
|
+
"flags": {
|
|
339
|
+
"directory": {
|
|
340
|
+
"name": "directory",
|
|
341
|
+
"type": "option",
|
|
342
|
+
"char": "d",
|
|
343
|
+
"description": "root directory of the repository.",
|
|
344
|
+
"multiple": false,
|
|
345
|
+
"default": "./"
|
|
346
|
+
},
|
|
347
|
+
"image": {
|
|
348
|
+
"name": "image",
|
|
349
|
+
"type": "option",
|
|
350
|
+
"description": "image name to sign",
|
|
351
|
+
"required": true,
|
|
352
|
+
"multiple": false
|
|
353
|
+
},
|
|
354
|
+
"signing-password": {
|
|
355
|
+
"name": "signing-password",
|
|
356
|
+
"type": "option",
|
|
357
|
+
"description": "password used for the private key",
|
|
358
|
+
"multiple": false,
|
|
359
|
+
"default": ""
|
|
360
|
+
},
|
|
361
|
+
"save": {
|
|
362
|
+
"name": "save",
|
|
363
|
+
"type": "boolean",
|
|
364
|
+
"description": "saves docker image as tar in local directory.",
|
|
365
|
+
"allowNo": false
|
|
366
|
+
},
|
|
367
|
+
"key-name": {
|
|
368
|
+
"name": "key-name",
|
|
369
|
+
"type": "option",
|
|
370
|
+
"description": "name used for the key (default: username)",
|
|
371
|
+
"required": true,
|
|
372
|
+
"multiple": false
|
|
373
|
+
},
|
|
374
|
+
"skip-upload": {
|
|
375
|
+
"name": "skip-upload",
|
|
376
|
+
"type": "boolean",
|
|
377
|
+
"hidden": true,
|
|
378
|
+
"allowNo": false
|
|
379
|
+
},
|
|
380
|
+
"registry": {
|
|
381
|
+
"name": "registry",
|
|
382
|
+
"type": "option",
|
|
383
|
+
"description": "registry to use for signing",
|
|
384
|
+
"multiple": false,
|
|
385
|
+
"default": "localhost:5000"
|
|
386
|
+
},
|
|
387
|
+
"output": {
|
|
388
|
+
"name": "output",
|
|
389
|
+
"type": "option",
|
|
390
|
+
"char": "o",
|
|
391
|
+
"description": "output path to where to store the image.",
|
|
392
|
+
"multiple": false
|
|
393
|
+
},
|
|
394
|
+
"help": {
|
|
395
|
+
"name": "help",
|
|
396
|
+
"type": "boolean",
|
|
397
|
+
"char": "h",
|
|
398
|
+
"description": "Show CLI help.",
|
|
399
|
+
"allowNo": false
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"args": {}
|
|
403
|
+
},
|
|
404
|
+
"connector:update": {
|
|
405
|
+
"id": "connector:update",
|
|
406
|
+
"description": "Update a connector.",
|
|
407
|
+
"strict": true,
|
|
408
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
409
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
410
|
+
"pluginType": "core",
|
|
411
|
+
"aliases": [],
|
|
412
|
+
"flags": {
|
|
413
|
+
"directory": {
|
|
414
|
+
"name": "directory",
|
|
415
|
+
"type": "option",
|
|
416
|
+
"char": "d",
|
|
417
|
+
"description": "root directory of the connector folder.",
|
|
418
|
+
"multiple": false,
|
|
419
|
+
"default": "."
|
|
420
|
+
},
|
|
421
|
+
"version": {
|
|
422
|
+
"name": "version",
|
|
423
|
+
"type": "option",
|
|
424
|
+
"char": "v",
|
|
425
|
+
"description": "new version of the connector.",
|
|
426
|
+
"multiple": false
|
|
427
|
+
},
|
|
428
|
+
"manifest-path": {
|
|
429
|
+
"name": "manifest-path",
|
|
430
|
+
"type": "option",
|
|
431
|
+
"char": "f",
|
|
432
|
+
"description": "connector manifest path relative to directory.",
|
|
433
|
+
"multiple": false,
|
|
434
|
+
"default": "/connector/connector.yaml"
|
|
435
|
+
},
|
|
436
|
+
"help": {
|
|
437
|
+
"name": "help",
|
|
438
|
+
"type": "boolean",
|
|
439
|
+
"char": "h",
|
|
440
|
+
"description": "Show CLI help.",
|
|
441
|
+
"allowNo": false
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
"args": {}
|
|
445
|
+
},
|
|
446
|
+
"connector:validate": {
|
|
447
|
+
"id": "connector:validate",
|
|
448
|
+
"description": "Use to validate an integration",
|
|
449
|
+
"strict": true,
|
|
450
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
451
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
452
|
+
"pluginType": "core",
|
|
453
|
+
"aliases": [],
|
|
454
|
+
"flags": {
|
|
455
|
+
"help": {
|
|
456
|
+
"name": "help",
|
|
457
|
+
"type": "boolean",
|
|
458
|
+
"char": "h",
|
|
459
|
+
"description": "Show CLI help.",
|
|
460
|
+
"allowNo": false
|
|
461
|
+
},
|
|
462
|
+
"image": {
|
|
463
|
+
"name": "image",
|
|
464
|
+
"type": "option",
|
|
465
|
+
"char": "i",
|
|
466
|
+
"description": "image to use",
|
|
467
|
+
"multiple": false
|
|
468
|
+
},
|
|
469
|
+
"connector": {
|
|
470
|
+
"name": "connector",
|
|
471
|
+
"type": "option",
|
|
472
|
+
"char": "c",
|
|
473
|
+
"description": "connector to validate (relative to directory)",
|
|
474
|
+
"required": true,
|
|
475
|
+
"multiple": false,
|
|
476
|
+
"default": "connector"
|
|
477
|
+
},
|
|
478
|
+
"signed": {
|
|
479
|
+
"name": "signed",
|
|
480
|
+
"type": "boolean",
|
|
481
|
+
"description": "validates a signed connector",
|
|
482
|
+
"allowNo": false
|
|
483
|
+
},
|
|
484
|
+
"key": {
|
|
485
|
+
"name": "key",
|
|
486
|
+
"type": "option",
|
|
487
|
+
"description": "public key for verification",
|
|
488
|
+
"multiple": false,
|
|
489
|
+
"dependsOn": [
|
|
490
|
+
"signed"
|
|
491
|
+
],
|
|
492
|
+
"exclusive": [
|
|
493
|
+
"skip-verification"
|
|
494
|
+
]
|
|
495
|
+
},
|
|
496
|
+
"skip-pull": {
|
|
497
|
+
"name": "skip-pull",
|
|
498
|
+
"type": "boolean",
|
|
499
|
+
"char": "s",
|
|
500
|
+
"description": "skips pulling the image",
|
|
501
|
+
"allowNo": false
|
|
502
|
+
},
|
|
503
|
+
"directory": {
|
|
504
|
+
"name": "directory",
|
|
505
|
+
"type": "option",
|
|
506
|
+
"char": "d",
|
|
507
|
+
"description": "current directory to mount",
|
|
508
|
+
"multiple": false,
|
|
509
|
+
"default": "./"
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
"args": {}
|
|
513
|
+
},
|
|
514
|
+
"action:generate:data": {
|
|
515
|
+
"id": "action:generate:data",
|
|
516
|
+
"description": "Use to test a task in an integration",
|
|
517
|
+
"strict": true,
|
|
518
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
519
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
520
|
+
"pluginType": "core",
|
|
521
|
+
"aliases": [],
|
|
522
|
+
"flags": {
|
|
523
|
+
"help": {
|
|
524
|
+
"name": "help",
|
|
525
|
+
"type": "boolean",
|
|
526
|
+
"char": "h",
|
|
527
|
+
"description": "Show CLI help.",
|
|
528
|
+
"allowNo": false
|
|
529
|
+
},
|
|
530
|
+
"action": {
|
|
531
|
+
"name": "action",
|
|
532
|
+
"type": "option",
|
|
533
|
+
"char": "a",
|
|
534
|
+
"description": "action to generate data",
|
|
535
|
+
"multiple": false
|
|
536
|
+
},
|
|
537
|
+
"asset": {
|
|
538
|
+
"name": "asset",
|
|
539
|
+
"type": "option",
|
|
540
|
+
"description": "Filename for asset, defaults to the task name under the data folder. ie: data/asset_name.json",
|
|
541
|
+
"multiple": false
|
|
542
|
+
},
|
|
543
|
+
"inputs": {
|
|
544
|
+
"name": "inputs",
|
|
545
|
+
"type": "option",
|
|
546
|
+
"description": "Filename for JSON inputs, defaults to the task name under the data folder. ie: data/my_task.json",
|
|
547
|
+
"multiple": false
|
|
548
|
+
},
|
|
549
|
+
"directory": {
|
|
550
|
+
"name": "directory",
|
|
551
|
+
"type": "option",
|
|
552
|
+
"char": "d",
|
|
553
|
+
"description": "current directory to mount",
|
|
554
|
+
"multiple": false,
|
|
555
|
+
"default": "./"
|
|
556
|
+
},
|
|
557
|
+
"include-optional": {
|
|
558
|
+
"name": "include-optional",
|
|
559
|
+
"type": "boolean",
|
|
560
|
+
"description": "used to only generate required properties",
|
|
561
|
+
"allowNo": false
|
|
562
|
+
},
|
|
563
|
+
"force": {
|
|
564
|
+
"name": "force",
|
|
565
|
+
"type": "boolean",
|
|
566
|
+
"description": "overwrites current files",
|
|
567
|
+
"allowNo": false
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
"args": {}
|
|
571
|
+
},
|
|
572
|
+
"action:generate:input": {
|
|
573
|
+
"id": "action:generate:input",
|
|
574
|
+
"description": "Update action input schema.",
|
|
575
|
+
"strict": true,
|
|
576
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
577
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
578
|
+
"pluginType": "core",
|
|
579
|
+
"aliases": [],
|
|
580
|
+
"flags": {
|
|
581
|
+
"action": {
|
|
582
|
+
"name": "action",
|
|
583
|
+
"type": "option",
|
|
584
|
+
"char": "a",
|
|
585
|
+
"description": "Action name to run",
|
|
586
|
+
"multiple": false
|
|
587
|
+
},
|
|
588
|
+
"directory": {
|
|
589
|
+
"name": "directory",
|
|
590
|
+
"type": "option",
|
|
591
|
+
"char": "d",
|
|
592
|
+
"description": "Root directory of the repository.",
|
|
593
|
+
"multiple": false,
|
|
594
|
+
"default": "./"
|
|
595
|
+
},
|
|
596
|
+
"amend": {
|
|
597
|
+
"name": "amend",
|
|
598
|
+
"type": "boolean",
|
|
599
|
+
"description": "Merge with existing schema.",
|
|
600
|
+
"allowNo": false
|
|
601
|
+
},
|
|
602
|
+
"action-config-path": {
|
|
603
|
+
"name": "action-config-path",
|
|
604
|
+
"type": "option",
|
|
605
|
+
"description": "Override path to action configuration file. Defaults to /connector/config/actions/<action>.yaml",
|
|
606
|
+
"multiple": false
|
|
607
|
+
},
|
|
608
|
+
"input-path": {
|
|
609
|
+
"name": "input-path",
|
|
610
|
+
"type": "option",
|
|
611
|
+
"description": "Relative path to the output data JSON file, defaults to the task name under the data folder. ie: /data/<taskName>_output.json",
|
|
612
|
+
"multiple": false
|
|
613
|
+
},
|
|
614
|
+
"help": {
|
|
615
|
+
"name": "help",
|
|
616
|
+
"type": "boolean",
|
|
617
|
+
"char": "h",
|
|
618
|
+
"description": "Show CLI help.",
|
|
619
|
+
"allowNo": false
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
"args": {}
|
|
623
|
+
},
|
|
624
|
+
"action:generate:output": {
|
|
625
|
+
"id": "action:generate:output",
|
|
626
|
+
"description": "Update a connector action.",
|
|
627
|
+
"strict": true,
|
|
628
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
629
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
630
|
+
"pluginType": "core",
|
|
631
|
+
"aliases": [],
|
|
632
|
+
"flags": {
|
|
633
|
+
"action": {
|
|
634
|
+
"name": "action",
|
|
635
|
+
"type": "option",
|
|
636
|
+
"char": "a",
|
|
637
|
+
"description": "Action name to run",
|
|
638
|
+
"multiple": false
|
|
639
|
+
},
|
|
640
|
+
"directory": {
|
|
641
|
+
"name": "directory",
|
|
642
|
+
"type": "option",
|
|
643
|
+
"char": "d",
|
|
644
|
+
"description": "Root directory of the repository.",
|
|
645
|
+
"multiple": false,
|
|
646
|
+
"default": "./"
|
|
647
|
+
},
|
|
648
|
+
"action-config-path": {
|
|
649
|
+
"name": "action-config-path",
|
|
650
|
+
"type": "option",
|
|
651
|
+
"description": "Override path to action configuration file. Defaults to /connector/config/<action>.yaml",
|
|
652
|
+
"multiple": false
|
|
653
|
+
},
|
|
654
|
+
"amend": {
|
|
655
|
+
"name": "amend",
|
|
656
|
+
"type": "boolean",
|
|
657
|
+
"description": "Merge with existing schema.",
|
|
658
|
+
"allowNo": false
|
|
659
|
+
},
|
|
660
|
+
"output-path": {
|
|
661
|
+
"name": "output-path",
|
|
662
|
+
"type": "option",
|
|
663
|
+
"description": "Relative path to the output data JSON file, defaults to the task name under the data folder. ie: /data/<taskName>_output.json",
|
|
664
|
+
"multiple": false
|
|
665
|
+
},
|
|
666
|
+
"help": {
|
|
667
|
+
"name": "help",
|
|
668
|
+
"type": "boolean",
|
|
669
|
+
"char": "h",
|
|
670
|
+
"description": "Show CLI help.",
|
|
671
|
+
"allowNo": false
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"args": {}
|
|
675
|
+
},
|
|
676
|
+
"action:run:image": {
|
|
677
|
+
"id": "action:run:image",
|
|
678
|
+
"description": "Runs a connector action. (Defaults to current image version in local repository).",
|
|
679
|
+
"strict": true,
|
|
680
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
681
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
682
|
+
"pluginType": "core",
|
|
683
|
+
"hidden": true,
|
|
684
|
+
"aliases": [],
|
|
685
|
+
"flags": {
|
|
686
|
+
"action": {
|
|
687
|
+
"name": "action",
|
|
688
|
+
"type": "option",
|
|
689
|
+
"char": "a",
|
|
690
|
+
"description": "Action name to run",
|
|
691
|
+
"required": true,
|
|
692
|
+
"multiple": false
|
|
693
|
+
},
|
|
694
|
+
"directory": {
|
|
695
|
+
"name": "directory",
|
|
696
|
+
"type": "option",
|
|
697
|
+
"char": "d",
|
|
698
|
+
"description": "Root directory of the repository.",
|
|
699
|
+
"multiple": false,
|
|
700
|
+
"default": "./"
|
|
701
|
+
},
|
|
702
|
+
"input-path": {
|
|
703
|
+
"name": "input-path",
|
|
704
|
+
"type": "option",
|
|
705
|
+
"description": "File to input data JSON file",
|
|
706
|
+
"required": true,
|
|
707
|
+
"multiple": false
|
|
708
|
+
},
|
|
709
|
+
"output-path": {
|
|
710
|
+
"name": "output-path",
|
|
711
|
+
"type": "option",
|
|
712
|
+
"description": "File to write the outputs to, defaults to /data/<action>_output.json",
|
|
713
|
+
"multiple": false
|
|
714
|
+
},
|
|
715
|
+
"error-path": {
|
|
716
|
+
"name": "error-path",
|
|
717
|
+
"type": "option",
|
|
718
|
+
"description": "File to write the errors to, defaults to /data/<action>_error.json",
|
|
719
|
+
"multiple": false
|
|
720
|
+
},
|
|
721
|
+
"asset-path": {
|
|
722
|
+
"name": "asset-path",
|
|
723
|
+
"type": "option",
|
|
724
|
+
"description": "File to asset data JSON file, defaults to /data/asset.json",
|
|
725
|
+
"multiple": false
|
|
726
|
+
},
|
|
727
|
+
"repository": {
|
|
728
|
+
"name": "repository",
|
|
729
|
+
"type": "option",
|
|
730
|
+
"char": "r",
|
|
731
|
+
"description": "The connector image repository to run.",
|
|
732
|
+
"multiple": false
|
|
733
|
+
},
|
|
734
|
+
"version": {
|
|
735
|
+
"name": "version",
|
|
736
|
+
"type": "option",
|
|
737
|
+
"description": "Use the latest release image from quay.",
|
|
738
|
+
"multiple": false,
|
|
739
|
+
"default": "latest"
|
|
740
|
+
},
|
|
741
|
+
"stdin": {
|
|
742
|
+
"name": "stdin",
|
|
743
|
+
"type": "boolean",
|
|
744
|
+
"description": "Send the inputs through stdin instead of an environment variable.",
|
|
745
|
+
"allowNo": false
|
|
746
|
+
},
|
|
747
|
+
"platform": {
|
|
748
|
+
"name": "platform",
|
|
749
|
+
"type": "option",
|
|
750
|
+
"hidden": true,
|
|
751
|
+
"multiple": false,
|
|
752
|
+
"default": "linux/amd64"
|
|
753
|
+
},
|
|
754
|
+
"help": {
|
|
755
|
+
"name": "help",
|
|
756
|
+
"type": "boolean",
|
|
757
|
+
"char": "h",
|
|
758
|
+
"description": "Show CLI help.",
|
|
759
|
+
"allowNo": false
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
"args": {}
|
|
763
|
+
},
|
|
764
|
+
"action:run:local": {
|
|
765
|
+
"id": "action:run:local",
|
|
766
|
+
"description": "Runs a connector action. (Defaults to current image version in local repository).",
|
|
767
|
+
"strict": true,
|
|
768
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
769
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
770
|
+
"pluginType": "core",
|
|
771
|
+
"aliases": [],
|
|
772
|
+
"flags": {
|
|
773
|
+
"action": {
|
|
774
|
+
"name": "action",
|
|
775
|
+
"type": "option",
|
|
776
|
+
"char": "a",
|
|
777
|
+
"description": "Action name to run",
|
|
778
|
+
"multiple": false
|
|
779
|
+
},
|
|
780
|
+
"directory": {
|
|
781
|
+
"name": "directory",
|
|
782
|
+
"type": "option",
|
|
783
|
+
"char": "d",
|
|
784
|
+
"description": "Root directory of the repository.",
|
|
785
|
+
"multiple": false,
|
|
786
|
+
"default": "./"
|
|
787
|
+
},
|
|
788
|
+
"input-path": {
|
|
789
|
+
"name": "input-path",
|
|
790
|
+
"type": "option",
|
|
791
|
+
"description": "File to input data JSON file, defaults to /data/<action>.json",
|
|
792
|
+
"multiple": false
|
|
793
|
+
},
|
|
794
|
+
"output-path": {
|
|
795
|
+
"name": "output-path",
|
|
796
|
+
"type": "option",
|
|
797
|
+
"description": "File to write the outputs to, defaults to /data/<action>_output.json",
|
|
798
|
+
"multiple": false
|
|
799
|
+
},
|
|
800
|
+
"error-path": {
|
|
801
|
+
"name": "error-path",
|
|
802
|
+
"type": "option",
|
|
803
|
+
"description": "File to write the errors to, defaults to /data/<action>_error.json",
|
|
804
|
+
"multiple": false
|
|
805
|
+
},
|
|
806
|
+
"asset-path": {
|
|
807
|
+
"name": "asset-path",
|
|
808
|
+
"type": "option",
|
|
809
|
+
"description": "File to asset data JSON file, defaults to /data/asset.json",
|
|
810
|
+
"multiple": false
|
|
811
|
+
},
|
|
812
|
+
"template": {
|
|
813
|
+
"name": "template",
|
|
814
|
+
"type": "option",
|
|
815
|
+
"description": "connector template",
|
|
816
|
+
"required": false,
|
|
817
|
+
"multiple": false,
|
|
818
|
+
"options": [
|
|
819
|
+
"python_37_swimlane",
|
|
820
|
+
"node_18",
|
|
821
|
+
"node_20",
|
|
822
|
+
"python_39_definition",
|
|
823
|
+
"python_310_definition",
|
|
824
|
+
"python_311_definition"
|
|
825
|
+
]
|
|
826
|
+
},
|
|
827
|
+
"compile-override": {
|
|
828
|
+
"name": "compile-override",
|
|
829
|
+
"type": "option",
|
|
830
|
+
"hidden": true,
|
|
831
|
+
"multiple": false,
|
|
832
|
+
"default": "Compile.Dockerfile"
|
|
833
|
+
},
|
|
834
|
+
"runner-override": {
|
|
835
|
+
"name": "runner-override",
|
|
836
|
+
"type": "option",
|
|
837
|
+
"hidden": true,
|
|
838
|
+
"multiple": false,
|
|
839
|
+
"default": "Runner.Dockerfile"
|
|
840
|
+
},
|
|
841
|
+
"runtime-override": {
|
|
842
|
+
"name": "runtime-override",
|
|
843
|
+
"type": "option",
|
|
844
|
+
"hidden": true,
|
|
845
|
+
"multiple": false
|
|
846
|
+
},
|
|
847
|
+
"force-rebuild": {
|
|
848
|
+
"name": "force-rebuild",
|
|
849
|
+
"type": "boolean",
|
|
850
|
+
"char": "f",
|
|
851
|
+
"description": "forces nocache on the image build",
|
|
852
|
+
"allowNo": false
|
|
853
|
+
},
|
|
854
|
+
"platform": {
|
|
855
|
+
"name": "platform",
|
|
856
|
+
"type": "option",
|
|
857
|
+
"hidden": true,
|
|
858
|
+
"multiple": false,
|
|
859
|
+
"default": "linux/amd64"
|
|
860
|
+
},
|
|
861
|
+
"debug": {
|
|
862
|
+
"name": "debug",
|
|
863
|
+
"type": "boolean",
|
|
864
|
+
"description": "forces a breakpoint in run.py",
|
|
865
|
+
"hidden": true,
|
|
866
|
+
"allowNo": false
|
|
867
|
+
},
|
|
868
|
+
"no-remove": {
|
|
869
|
+
"name": "no-remove",
|
|
870
|
+
"type": "boolean",
|
|
871
|
+
"hidden": true,
|
|
872
|
+
"allowNo": false
|
|
873
|
+
},
|
|
874
|
+
"help": {
|
|
875
|
+
"name": "help",
|
|
876
|
+
"type": "boolean",
|
|
877
|
+
"char": "h",
|
|
878
|
+
"description": "Show CLI help.",
|
|
879
|
+
"allowNo": false
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
"args": {}
|
|
883
|
+
},
|
|
884
|
+
"connector:create:openapi": {
|
|
885
|
+
"id": "connector:create:openapi",
|
|
886
|
+
"description": "Scaffold a new connector",
|
|
887
|
+
"strict": true,
|
|
888
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
889
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
890
|
+
"pluginType": "core",
|
|
891
|
+
"aliases": [],
|
|
892
|
+
"flags": {
|
|
893
|
+
"directory": {
|
|
894
|
+
"name": "directory",
|
|
895
|
+
"type": "option",
|
|
896
|
+
"char": "d",
|
|
897
|
+
"description": "root directory for where to store connectors, the connector directory will be generated.",
|
|
898
|
+
"multiple": false,
|
|
899
|
+
"default": "./"
|
|
900
|
+
},
|
|
901
|
+
"vendor": {
|
|
902
|
+
"name": "vendor",
|
|
903
|
+
"type": "option",
|
|
904
|
+
"description": "Vendor (e.g. CrowdStrike)",
|
|
905
|
+
"multiple": false
|
|
906
|
+
},
|
|
907
|
+
"product": {
|
|
908
|
+
"name": "product",
|
|
909
|
+
"type": "option",
|
|
910
|
+
"description": "Product (e.g. Falcon)",
|
|
911
|
+
"multiple": false
|
|
912
|
+
},
|
|
913
|
+
"keywords": {
|
|
914
|
+
"name": "keywords",
|
|
915
|
+
"type": "option",
|
|
916
|
+
"char": "k",
|
|
917
|
+
"description": "Please enter keyword (Comma-Separated)",
|
|
918
|
+
"multiple": false
|
|
919
|
+
},
|
|
920
|
+
"description": {
|
|
921
|
+
"name": "description",
|
|
922
|
+
"type": "option",
|
|
923
|
+
"description": "Description (e.g. CrowdStrike Host Query API)",
|
|
924
|
+
"multiple": false
|
|
925
|
+
},
|
|
926
|
+
"logoPath": {
|
|
927
|
+
"name": "logoPath",
|
|
928
|
+
"type": "option",
|
|
929
|
+
"description": "URL or absolute path to logo file",
|
|
930
|
+
"multiple": false
|
|
931
|
+
},
|
|
932
|
+
"author": {
|
|
933
|
+
"name": "author",
|
|
934
|
+
"type": "option",
|
|
935
|
+
"description": "Connector Author",
|
|
936
|
+
"multiple": false
|
|
937
|
+
},
|
|
938
|
+
"authorEmail": {
|
|
939
|
+
"name": "authorEmail",
|
|
940
|
+
"type": "option",
|
|
941
|
+
"description": "Connector Author Email",
|
|
942
|
+
"multiple": false
|
|
943
|
+
},
|
|
944
|
+
"homepage": {
|
|
945
|
+
"name": "homepage",
|
|
946
|
+
"type": "option",
|
|
947
|
+
"description": "Connector Author Support URL",
|
|
948
|
+
"multiple": false
|
|
949
|
+
},
|
|
950
|
+
"specs": {
|
|
951
|
+
"name": "specs",
|
|
952
|
+
"type": "option",
|
|
953
|
+
"char": "o",
|
|
954
|
+
"description": "path to the spec file",
|
|
955
|
+
"multiple": false
|
|
956
|
+
},
|
|
957
|
+
"help": {
|
|
958
|
+
"name": "help",
|
|
959
|
+
"type": "boolean",
|
|
960
|
+
"char": "h",
|
|
961
|
+
"description": "Show CLI help.",
|
|
962
|
+
"allowNo": false
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
"args": {}
|
|
966
|
+
},
|
|
967
|
+
"connector:create:source": {
|
|
968
|
+
"id": "connector:create:source",
|
|
969
|
+
"description": "Generates 11x source from 10x",
|
|
970
|
+
"strict": true,
|
|
971
|
+
"pluginName": "@sw-tsdk/plugin-connector",
|
|
972
|
+
"pluginAlias": "@sw-tsdk/plugin-connector",
|
|
973
|
+
"pluginType": "core",
|
|
974
|
+
"aliases": [],
|
|
975
|
+
"flags": {
|
|
976
|
+
"directory": {
|
|
977
|
+
"name": "directory",
|
|
978
|
+
"type": "option",
|
|
979
|
+
"char": "d",
|
|
980
|
+
"description": "root directory of the repository.",
|
|
981
|
+
"multiple": false,
|
|
982
|
+
"default": "./"
|
|
983
|
+
},
|
|
984
|
+
"manifests-only": {
|
|
985
|
+
"name": "manifests-only",
|
|
986
|
+
"type": "boolean",
|
|
987
|
+
"hidden": true,
|
|
988
|
+
"allowNo": false
|
|
989
|
+
},
|
|
990
|
+
"archive": {
|
|
991
|
+
"name": "archive",
|
|
992
|
+
"type": "option",
|
|
993
|
+
"hidden": true,
|
|
994
|
+
"multiple": false
|
|
995
|
+
},
|
|
996
|
+
"help": {
|
|
997
|
+
"name": "help",
|
|
998
|
+
"type": "boolean",
|
|
999
|
+
"char": "h",
|
|
1000
|
+
"description": "Show CLI help.",
|
|
1001
|
+
"allowNo": false
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
"args": {}
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|