n8n-nodes-run-dat-sheesh 0.1.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 +33 -0
- package/dist/credentials/RunDatSeeshApi.credentials.js +38 -0
- package/dist/credentials/RunDatSeeshApi.credentials.js.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/RunDatSeesh/GenericFunctions.js +24 -0
- package/dist/nodes/RunDatSeesh/GenericFunctions.js.map +1 -0
- package/dist/nodes/RunDatSeesh/RunDatSeesh.node.js +489 -0
- package/dist/nodes/RunDatSeesh/RunDatSeesh.node.js.map +1 -0
- package/package.json +46 -0
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# n8n-nodes-run-dat-sheesh
|
|
2
|
+
|
|
3
|
+
n8n community nodes for the **run-dat-sheesh** Manager API.
|
|
4
|
+
|
|
5
|
+
## Included
|
|
6
|
+
|
|
7
|
+
- **Credential**: `Run Dat sheesh API` (Base URL + API Key header `x-api-key`)
|
|
8
|
+
- **Node**: `Run Dat sheesh` (marked `usableAsTool: true`)
|
|
9
|
+
|
|
10
|
+
## Supported Manager endpoints
|
|
11
|
+
|
|
12
|
+
- `GET /v1/images`
|
|
13
|
+
- `GET /v1/vms`
|
|
14
|
+
- `GET /v1/vms/:id`
|
|
15
|
+
- `POST /v1/vms`
|
|
16
|
+
- `POST /v1/vms/:id/start`
|
|
17
|
+
- `POST /v1/vms/:id/stop`
|
|
18
|
+
- `DELETE /v1/vms/:id`
|
|
19
|
+
- `POST /v1/vms/:id/exec`
|
|
20
|
+
- `POST /v1/vms/:id/run-ts`
|
|
21
|
+
- `POST /v1/vms/:id/files/upload?dest=...` (tar.gz binary)
|
|
22
|
+
- `GET /v1/vms/:id/files/download?path=...` (tar.gz binary)
|
|
23
|
+
- `GET /v1/snapshots`
|
|
24
|
+
- `POST /v1/vms/:id/snapshots`
|
|
25
|
+
|
|
26
|
+
## Build
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
cd n8n-nodes-run-dat-sheesh
|
|
30
|
+
npm install
|
|
31
|
+
npm run build
|
|
32
|
+
```
|
|
33
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RunDatsheeshApi = void 0;
|
|
4
|
+
class RunDatsheeshApi {
|
|
5
|
+
name = "runDatsheeshApi";
|
|
6
|
+
displayName = "Run Dat sheesh API";
|
|
7
|
+
documentationUrl = "https://github.com/your-org/run-dat-sheesh";
|
|
8
|
+
properties = [
|
|
9
|
+
{
|
|
10
|
+
displayName: "Base URL",
|
|
11
|
+
name: "baseUrl",
|
|
12
|
+
type: "string",
|
|
13
|
+
default: "http://localhost:3000",
|
|
14
|
+
placeholder: "http://localhost:3000",
|
|
15
|
+
description: "Manager API base URL (no trailing slash required).",
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: "API Key",
|
|
20
|
+
name: "apiKey",
|
|
21
|
+
type: "string",
|
|
22
|
+
default: "",
|
|
23
|
+
typeOptions: { password: true },
|
|
24
|
+
required: true,
|
|
25
|
+
description: "Value for the `x-api-key` header."
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
authenticate = {
|
|
29
|
+
type: "generic",
|
|
30
|
+
properties: {
|
|
31
|
+
headers: {
|
|
32
|
+
"x-api-key": "={{ $credentials.apiKey }}"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
exports.RunDatsheeshApi = RunDatsheeshApi;
|
|
38
|
+
//# sourceMappingURL=RunDatSeeshApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunDatSeeshApi.credentials.js","sourceRoot":"","sources":["../../credentials/RunDatSeeshApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAC1B,IAAI,GAAG,iBAAiB,CAAC;IACzB,WAAW,GAAG,oBAAoB,CAAC;IACnC,gBAAgB,GAAG,4CAA4C,CAAC;IAEhE,UAAU,GAAsB;QAC9B;YACE,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,uBAAuB;YAChC,WAAW,EAAE,uBAAuB;YACpC,WAAW,EAAE,oDAAoD;YACjE,QAAQ,EAAE,IAAI;SACf;QACD;YACE,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC/B,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,mCAAmC;SACjD;KACF,CAAC;IAEF,YAAY,GAAyB;QACnC,IAAI,EAAE,SAAS;QACf,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,WAAW,EAAE,4BAA4B;aAC1C;SACF;KACF,CAAC;CACH;AAlCD,0CAkCC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runDatsheeshApiRequest = runDatsheeshApiRequest;
|
|
4
|
+
function normalizeBaseUrl(baseUrl) {
|
|
5
|
+
return baseUrl.replace(/\/+$/, "");
|
|
6
|
+
}
|
|
7
|
+
async function runDatsheeshApiRequest(method, endpoint, { qs, body, headers, json = true, encoding, returnFullResponse } = {}) {
|
|
8
|
+
const credentials = (await this.getCredentials("runDatsheeshApi"));
|
|
9
|
+
const uri = `${normalizeBaseUrl(credentials.baseUrl)}${endpoint}`;
|
|
10
|
+
const options = {
|
|
11
|
+
method,
|
|
12
|
+
uri,
|
|
13
|
+
qs,
|
|
14
|
+
headers,
|
|
15
|
+
body,
|
|
16
|
+
json
|
|
17
|
+
};
|
|
18
|
+
if (encoding !== undefined)
|
|
19
|
+
options.encoding = encoding;
|
|
20
|
+
if (returnFullResponse !== undefined)
|
|
21
|
+
options.resolveWithFullResponse = returnFullResponse;
|
|
22
|
+
return await this.helpers.requestWithAuthentication.call(this, "runDatsheeshApi", options);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=GenericFunctions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/RunDatSeesh/GenericFunctions.ts"],"names":[],"mappings":";;AAUA,wDAoCC;AAxCD,SAAS,gBAAgB,CAAC,OAAe;IACvC,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AACrC,CAAC;AAEM,KAAK,UAAU,sBAAsB,CAE1C,MAAc,EACd,QAAgB,EAChB,EACE,EAAE,EACF,IAAI,EACJ,OAAO,EACP,IAAI,GAAG,IAAI,EACX,QAAQ,EACR,kBAAkB,KAQhB,EAAE;IAEN,MAAM,WAAW,GAAG,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAiC,CAAC;IACnG,MAAM,GAAG,GAAG,GAAG,gBAAgB,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,QAAQ,EAAE,CAAC;IAElE,MAAM,OAAO,GAAQ;QACnB,MAAM;QACN,GAAG;QACH,EAAE;QACF,OAAO;QACP,IAAI;QACJ,IAAI;KACL,CAAC;IAEF,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACxD,IAAI,kBAAkB,KAAK,SAAS;QAAE,OAAO,CAAC,uBAAuB,GAAG,kBAAkB,CAAC;IAE3F,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;AAC7F,CAAC"}
|
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RunDatsheesh = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const GenericFunctions_1 = require("./GenericFunctions");
|
|
6
|
+
class RunDatsheesh {
|
|
7
|
+
description = {
|
|
8
|
+
displayName: "Run Dat sheesh",
|
|
9
|
+
name: "runDatsheesh",
|
|
10
|
+
icon: "file:runDatsheesh.svg",
|
|
11
|
+
group: ["transform"],
|
|
12
|
+
version: 1,
|
|
13
|
+
subtitle: "={{$parameter.resource + ': ' + $parameter.operation}}",
|
|
14
|
+
description: "Interact with the run-dat-sheesh Manager API",
|
|
15
|
+
defaults: {
|
|
16
|
+
name: "Run Dat sheesh"
|
|
17
|
+
},
|
|
18
|
+
inputs: ["main"],
|
|
19
|
+
outputs: ["main"],
|
|
20
|
+
usableAsTool: true,
|
|
21
|
+
credentials: [
|
|
22
|
+
{
|
|
23
|
+
name: "runDatsheeshApi",
|
|
24
|
+
required: true
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
properties: [
|
|
28
|
+
{
|
|
29
|
+
displayName: "Resource",
|
|
30
|
+
name: "resource",
|
|
31
|
+
type: "options",
|
|
32
|
+
noDataExpression: true,
|
|
33
|
+
options: [
|
|
34
|
+
{ name: "Images", value: "images" },
|
|
35
|
+
{ name: "Files", value: "files" },
|
|
36
|
+
{ name: "Snapshots", value: "snapshots" },
|
|
37
|
+
{ name: "VMs", value: "vms" }
|
|
38
|
+
],
|
|
39
|
+
default: "vms"
|
|
40
|
+
},
|
|
41
|
+
// Images
|
|
42
|
+
{
|
|
43
|
+
displayName: "Operation",
|
|
44
|
+
name: "operationImages",
|
|
45
|
+
type: "options",
|
|
46
|
+
noDataExpression: true,
|
|
47
|
+
displayOptions: { show: { resource: ["images"] } },
|
|
48
|
+
options: [
|
|
49
|
+
{ name: "List Images", value: "list", action: "List images" }
|
|
50
|
+
],
|
|
51
|
+
default: "list"
|
|
52
|
+
},
|
|
53
|
+
// Snapshots
|
|
54
|
+
{
|
|
55
|
+
displayName: "Operation",
|
|
56
|
+
name: "operationSnapshots",
|
|
57
|
+
type: "options",
|
|
58
|
+
noDataExpression: true,
|
|
59
|
+
displayOptions: { show: { resource: ["snapshots"] } },
|
|
60
|
+
options: [
|
|
61
|
+
{
|
|
62
|
+
name: "List Snapshots",
|
|
63
|
+
value: "list",
|
|
64
|
+
action: "List snapshots"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "Create Snapshot From VM",
|
|
68
|
+
value: "createFromVm",
|
|
69
|
+
action: "Create snapshot from a VM"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
default: "list"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
displayName: "VM ID",
|
|
76
|
+
name: "vmIdSnapshot",
|
|
77
|
+
type: "string",
|
|
78
|
+
required: true,
|
|
79
|
+
default: "",
|
|
80
|
+
displayOptions: { show: { resource: ["snapshots"], operationSnapshots: ["createFromVm"] } }
|
|
81
|
+
},
|
|
82
|
+
// VMs
|
|
83
|
+
{
|
|
84
|
+
displayName: "Operation",
|
|
85
|
+
name: "operationVms",
|
|
86
|
+
type: "options",
|
|
87
|
+
noDataExpression: true,
|
|
88
|
+
displayOptions: { show: { resource: ["vms"] } },
|
|
89
|
+
options: [
|
|
90
|
+
{ name: "List VMs", value: "list", action: "List VMs" },
|
|
91
|
+
{ name: "Get VM", value: "get", action: "Get a VM" },
|
|
92
|
+
{ name: "Create VM", value: "create", action: "Create a VM" },
|
|
93
|
+
{ name: "Start VM", value: "start", action: "Start a VM" },
|
|
94
|
+
{ name: "Stop VM", value: "stop", action: "Stop a VM" },
|
|
95
|
+
{ name: "Destroy VM", value: "destroy", action: "Destroy a VM" },
|
|
96
|
+
{ name: "Execute Command", value: "exec", action: "Execute a command in a VM" },
|
|
97
|
+
{ name: "Run TypeScript (Deno)", value: "runTs", action: "Run TypeScript in a VM" }
|
|
98
|
+
],
|
|
99
|
+
default: "list"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
displayName: "VM ID",
|
|
103
|
+
name: "vmIdVms",
|
|
104
|
+
type: "string",
|
|
105
|
+
required: true,
|
|
106
|
+
default: "",
|
|
107
|
+
displayOptions: {
|
|
108
|
+
show: {
|
|
109
|
+
resource: ["vms"],
|
|
110
|
+
operationVms: ["get", "start", "stop", "destroy", "exec", "runTs"]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
displayName: "CPU",
|
|
116
|
+
name: "cpu",
|
|
117
|
+
type: "number",
|
|
118
|
+
required: true,
|
|
119
|
+
default: 1,
|
|
120
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["create"] } }
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
displayName: "Memory (MiB)",
|
|
124
|
+
name: "memMb",
|
|
125
|
+
type: "number",
|
|
126
|
+
required: true,
|
|
127
|
+
default: 256,
|
|
128
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["create"] } }
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
displayName: "Allowed IPs (CIDR)",
|
|
132
|
+
name: "allowIps",
|
|
133
|
+
type: "string",
|
|
134
|
+
required: true,
|
|
135
|
+
default: "",
|
|
136
|
+
placeholder: "172.16.0.1/32,10.0.0.0/8",
|
|
137
|
+
description: "Comma-separated IPv4/CIDR allowlist.",
|
|
138
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["create"] } }
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
displayName: "Outbound Internet",
|
|
142
|
+
name: "outboundInternet",
|
|
143
|
+
type: "boolean",
|
|
144
|
+
default: true,
|
|
145
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["create"] } }
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
displayName: "Snapshot ID",
|
|
149
|
+
name: "snapshotId",
|
|
150
|
+
type: "string",
|
|
151
|
+
default: "",
|
|
152
|
+
description: "Optional snapshot id to restore from.",
|
|
153
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["create"] } }
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
displayName: "Image ID",
|
|
157
|
+
name: "imageId",
|
|
158
|
+
type: "string",
|
|
159
|
+
default: "",
|
|
160
|
+
description: "Optional guest image id (defaults to the configured default image).",
|
|
161
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["create"] } }
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
displayName: "Disk Size (MiB)",
|
|
165
|
+
name: "diskSizeMb",
|
|
166
|
+
type: "number",
|
|
167
|
+
default: 0,
|
|
168
|
+
description: "Optional disk size in MiB. Must be >= base rootfs size. Set 0 to omit.",
|
|
169
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["create"] } }
|
|
170
|
+
},
|
|
171
|
+
// VM exec params
|
|
172
|
+
{
|
|
173
|
+
displayName: "Command",
|
|
174
|
+
name: "cmd",
|
|
175
|
+
type: "string",
|
|
176
|
+
required: true,
|
|
177
|
+
default: "echo hello",
|
|
178
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["exec"] } }
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
displayName: "Working Directory",
|
|
182
|
+
name: "cwd",
|
|
183
|
+
type: "string",
|
|
184
|
+
default: "",
|
|
185
|
+
placeholder: "/home/user",
|
|
186
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["exec"] } }
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
displayName: "Timeout (ms)",
|
|
190
|
+
name: "timeoutMs",
|
|
191
|
+
type: "number",
|
|
192
|
+
default: 0,
|
|
193
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["exec", "runTs"] } }
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
displayName: "Environment",
|
|
197
|
+
name: "env",
|
|
198
|
+
type: "fixedCollection",
|
|
199
|
+
default: {},
|
|
200
|
+
placeholder: "Add Variable",
|
|
201
|
+
typeOptions: { multipleValues: true },
|
|
202
|
+
options: [
|
|
203
|
+
{
|
|
204
|
+
name: "values",
|
|
205
|
+
displayName: "Variables",
|
|
206
|
+
values: [
|
|
207
|
+
{ displayName: "Name", name: "name", type: "string", default: "" },
|
|
208
|
+
{ displayName: "Value", name: "value", type: "string", default: "" }
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["exec"] } }
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
displayName: "TypeScript Code",
|
|
216
|
+
name: "code",
|
|
217
|
+
type: "string",
|
|
218
|
+
default: "",
|
|
219
|
+
typeOptions: { rows: 8 },
|
|
220
|
+
description: "Inline TypeScript code to run. Provide either Code or Path.",
|
|
221
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["runTs"] } }
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
displayName: "TypeScript File Path",
|
|
225
|
+
name: "tsPath",
|
|
226
|
+
type: "string",
|
|
227
|
+
default: "",
|
|
228
|
+
description: "Path to a .ts file inside the VM under /home/user. Provide either Code or Path.",
|
|
229
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["runTs"] } }
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
displayName: "Arguments",
|
|
233
|
+
name: "args",
|
|
234
|
+
type: "string",
|
|
235
|
+
default: "",
|
|
236
|
+
placeholder: "arg1,arg2",
|
|
237
|
+
description: "Comma-separated arguments passed to the program.",
|
|
238
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["runTs"] } }
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
displayName: "Deno Flags",
|
|
242
|
+
name: "denoFlags",
|
|
243
|
+
type: "string",
|
|
244
|
+
default: "",
|
|
245
|
+
placeholder: "--no-check,--quiet",
|
|
246
|
+
description: "Comma-separated extra Deno flags (advanced).",
|
|
247
|
+
displayOptions: { show: { resource: ["vms"], operationVms: ["runTs"] } }
|
|
248
|
+
},
|
|
249
|
+
// Files
|
|
250
|
+
{
|
|
251
|
+
displayName: "Operation",
|
|
252
|
+
name: "operationFiles",
|
|
253
|
+
type: "options",
|
|
254
|
+
noDataExpression: true,
|
|
255
|
+
displayOptions: { show: { resource: ["files"] } },
|
|
256
|
+
options: [
|
|
257
|
+
{ name: "Upload tar.gz", value: "upload", action: "Upload files to a VM" },
|
|
258
|
+
{ name: "Download tar.gz", value: "download", action: "Download files from a VM" }
|
|
259
|
+
],
|
|
260
|
+
default: "upload"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
displayName: "VM ID",
|
|
264
|
+
name: "vmIdFiles",
|
|
265
|
+
type: "string",
|
|
266
|
+
required: true,
|
|
267
|
+
default: "",
|
|
268
|
+
displayOptions: { show: { resource: ["files"], operationFiles: ["upload", "download"] } }
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
displayName: "Destination Directory",
|
|
272
|
+
name: "dest",
|
|
273
|
+
type: "string",
|
|
274
|
+
required: true,
|
|
275
|
+
default: "/home/user",
|
|
276
|
+
description: "Destination directory inside the VM (must be under /home/user).",
|
|
277
|
+
displayOptions: { show: { resource: ["files"], operationFiles: ["upload"] } }
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
displayName: "Binary Property",
|
|
281
|
+
name: "binaryPropertyName",
|
|
282
|
+
type: "string",
|
|
283
|
+
required: true,
|
|
284
|
+
default: "data",
|
|
285
|
+
description: "Binary property containing the tar.gz archive.",
|
|
286
|
+
displayOptions: { show: { resource: ["files"], operationFiles: ["upload"] } }
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
displayName: "Path",
|
|
290
|
+
name: "path",
|
|
291
|
+
type: "string",
|
|
292
|
+
required: true,
|
|
293
|
+
default: "/home/user",
|
|
294
|
+
description: "Path inside the VM to download (must be under /home/user).",
|
|
295
|
+
displayOptions: { show: { resource: ["files"], operationFiles: ["download"] } }
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
displayName: "Output Binary Property",
|
|
299
|
+
name: "outputBinaryPropertyName",
|
|
300
|
+
type: "string",
|
|
301
|
+
required: true,
|
|
302
|
+
default: "data",
|
|
303
|
+
description: "Binary property to write the tar.gz into.",
|
|
304
|
+
displayOptions: { show: { resource: ["files"], operationFiles: ["download"] } }
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
};
|
|
308
|
+
async execute() {
|
|
309
|
+
const items = this.getInputData();
|
|
310
|
+
const returnData = [];
|
|
311
|
+
for (let i = 0; i < items.length; i++) {
|
|
312
|
+
const resource = this.getNodeParameter("resource", i);
|
|
313
|
+
if (resource === "images") {
|
|
314
|
+
const operation = this.getNodeParameter("operationImages", i);
|
|
315
|
+
if (operation === "list") {
|
|
316
|
+
const data = await GenericFunctions_1.runDatsheeshApiRequest.call(this, "GET", "/v1/images");
|
|
317
|
+
returnData.push(...this.helpers.returnJsonArray(data));
|
|
318
|
+
continue;
|
|
319
|
+
}
|
|
320
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported images operation: ${operation}`, { itemIndex: i });
|
|
321
|
+
}
|
|
322
|
+
if (resource === "snapshots") {
|
|
323
|
+
const operation = this.getNodeParameter("operationSnapshots", i);
|
|
324
|
+
if (operation === "list") {
|
|
325
|
+
const data = await GenericFunctions_1.runDatsheeshApiRequest.call(this, "GET", "/v1/snapshots");
|
|
326
|
+
returnData.push(...this.helpers.returnJsonArray(data));
|
|
327
|
+
continue;
|
|
328
|
+
}
|
|
329
|
+
if (operation === "createFromVm") {
|
|
330
|
+
const vmId = this.getNodeParameter("vmIdSnapshot", i);
|
|
331
|
+
const data = await GenericFunctions_1.runDatsheeshApiRequest.call(this, "POST", `/v1/vms/${encodeURIComponent(vmId)}/snapshots`);
|
|
332
|
+
returnData.push({ json: data });
|
|
333
|
+
continue;
|
|
334
|
+
}
|
|
335
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported snapshots operation: ${operation}`, { itemIndex: i });
|
|
336
|
+
}
|
|
337
|
+
if (resource === "files") {
|
|
338
|
+
const operation = this.getNodeParameter("operationFiles", i);
|
|
339
|
+
const vmId = this.getNodeParameter("vmIdFiles", i);
|
|
340
|
+
if (operation === "upload") {
|
|
341
|
+
const dest = this.getNodeParameter("dest", i);
|
|
342
|
+
const binaryPropertyName = this.getNodeParameter("binaryPropertyName", i);
|
|
343
|
+
const buffer = await this.helpers.getBinaryDataBuffer(i, binaryPropertyName);
|
|
344
|
+
await GenericFunctions_1.runDatsheeshApiRequest.call(this, "POST", `/v1/vms/${encodeURIComponent(vmId)}/files/upload`, {
|
|
345
|
+
qs: { dest },
|
|
346
|
+
body: buffer,
|
|
347
|
+
headers: { "content-type": "application/gzip" },
|
|
348
|
+
json: false
|
|
349
|
+
});
|
|
350
|
+
returnData.push({ json: { success: true, vmId, dest } });
|
|
351
|
+
continue;
|
|
352
|
+
}
|
|
353
|
+
if (operation === "download") {
|
|
354
|
+
const path = this.getNodeParameter("path", i);
|
|
355
|
+
const outputBinaryPropertyName = this.getNodeParameter("outputBinaryPropertyName", i);
|
|
356
|
+
const data = await GenericFunctions_1.runDatsheeshApiRequest.call(this, "GET", `/v1/vms/${encodeURIComponent(vmId)}/files/download`, {
|
|
357
|
+
qs: { path },
|
|
358
|
+
json: false,
|
|
359
|
+
encoding: null
|
|
360
|
+
});
|
|
361
|
+
const binary = await this.helpers.prepareBinaryData(data, `vm-${vmId}.tar.gz`, "application/gzip");
|
|
362
|
+
returnData.push({
|
|
363
|
+
json: { vmId, path },
|
|
364
|
+
binary: { [outputBinaryPropertyName]: binary }
|
|
365
|
+
});
|
|
366
|
+
continue;
|
|
367
|
+
}
|
|
368
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported files operation: ${operation}`, { itemIndex: i });
|
|
369
|
+
}
|
|
370
|
+
// resource === "vms"
|
|
371
|
+
const operation = this.getNodeParameter("operationVms", i);
|
|
372
|
+
if (operation === "list") {
|
|
373
|
+
const data = await GenericFunctions_1.runDatsheeshApiRequest.call(this, "GET", "/v1/vms");
|
|
374
|
+
returnData.push(...this.helpers.returnJsonArray(data));
|
|
375
|
+
continue;
|
|
376
|
+
}
|
|
377
|
+
if (operation === "get") {
|
|
378
|
+
const vmId = this.getNodeParameter("vmIdVms", i);
|
|
379
|
+
const data = await GenericFunctions_1.runDatsheeshApiRequest.call(this, "GET", `/v1/vms/${encodeURIComponent(vmId)}`);
|
|
380
|
+
returnData.push({ json: data });
|
|
381
|
+
continue;
|
|
382
|
+
}
|
|
383
|
+
if (operation === "create") {
|
|
384
|
+
const cpu = this.getNodeParameter("cpu", i);
|
|
385
|
+
const memMb = this.getNodeParameter("memMb", i);
|
|
386
|
+
const allowIpsRaw = this.getNodeParameter("allowIps", i);
|
|
387
|
+
const outboundInternet = this.getNodeParameter("outboundInternet", i);
|
|
388
|
+
const snapshotId = this.getNodeParameter("snapshotId", i).trim();
|
|
389
|
+
const imageId = this.getNodeParameter("imageId", i).trim();
|
|
390
|
+
const diskSizeMbRaw = this.getNodeParameter("diskSizeMb", i);
|
|
391
|
+
const diskSizeMb = diskSizeMbRaw && diskSizeMbRaw > 0 ? diskSizeMbRaw : undefined;
|
|
392
|
+
const allowIps = allowIpsRaw
|
|
393
|
+
.split(",")
|
|
394
|
+
.map((s) => s.trim())
|
|
395
|
+
.filter(Boolean);
|
|
396
|
+
if (!allowIps.length) {
|
|
397
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), "Allowed IPs (CIDR) must contain at least one entry", {
|
|
398
|
+
itemIndex: i
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
const body = { cpu, memMb, allowIps, outboundInternet };
|
|
402
|
+
if (snapshotId)
|
|
403
|
+
body.snapshotId = snapshotId;
|
|
404
|
+
if (imageId)
|
|
405
|
+
body.imageId = imageId;
|
|
406
|
+
if (diskSizeMb !== undefined)
|
|
407
|
+
body.diskSizeMb = diskSizeMb;
|
|
408
|
+
const data = await GenericFunctions_1.runDatsheeshApiRequest.call(this, "POST", "/v1/vms", { body });
|
|
409
|
+
returnData.push({ json: data });
|
|
410
|
+
continue;
|
|
411
|
+
}
|
|
412
|
+
if (operation === "start") {
|
|
413
|
+
const vmId = this.getNodeParameter("vmIdVms", i);
|
|
414
|
+
await GenericFunctions_1.runDatsheeshApiRequest.call(this, "POST", `/v1/vms/${encodeURIComponent(vmId)}/start`, { json: false });
|
|
415
|
+
returnData.push({ json: { success: true, vmId } });
|
|
416
|
+
continue;
|
|
417
|
+
}
|
|
418
|
+
if (operation === "stop") {
|
|
419
|
+
const vmId = this.getNodeParameter("vmIdVms", i);
|
|
420
|
+
await GenericFunctions_1.runDatsheeshApiRequest.call(this, "POST", `/v1/vms/${encodeURIComponent(vmId)}/stop`, { json: false });
|
|
421
|
+
returnData.push({ json: { success: true, vmId } });
|
|
422
|
+
continue;
|
|
423
|
+
}
|
|
424
|
+
if (operation === "destroy") {
|
|
425
|
+
const vmId = this.getNodeParameter("vmIdVms", i);
|
|
426
|
+
await GenericFunctions_1.runDatsheeshApiRequest.call(this, "DELETE", `/v1/vms/${encodeURIComponent(vmId)}`, { json: false });
|
|
427
|
+
returnData.push({ json: { success: true, vmId } });
|
|
428
|
+
continue;
|
|
429
|
+
}
|
|
430
|
+
if (operation === "exec") {
|
|
431
|
+
const vmId = this.getNodeParameter("vmIdVms", i);
|
|
432
|
+
const timeoutMsRaw = this.getNodeParameter("timeoutMs", i);
|
|
433
|
+
const timeoutMs = timeoutMsRaw && timeoutMsRaw > 0 ? timeoutMsRaw : undefined;
|
|
434
|
+
const cmd = this.getNodeParameter("cmd", i);
|
|
435
|
+
const cwd = this.getNodeParameter("cwd", i);
|
|
436
|
+
const envFc = this.getNodeParameter("env", i, {});
|
|
437
|
+
const env = Array.isArray(envFc?.values)
|
|
438
|
+
? envFc.values.reduce((acc, v) => {
|
|
439
|
+
if (v?.name)
|
|
440
|
+
acc[String(v.name)] = String(v.value ?? "");
|
|
441
|
+
return acc;
|
|
442
|
+
}, {})
|
|
443
|
+
: undefined;
|
|
444
|
+
const body = { cmd };
|
|
445
|
+
if (cwd)
|
|
446
|
+
body.cwd = cwd;
|
|
447
|
+
if (env && Object.keys(env).length)
|
|
448
|
+
body.env = env;
|
|
449
|
+
if (timeoutMs !== undefined)
|
|
450
|
+
body.timeoutMs = timeoutMs;
|
|
451
|
+
const data = await GenericFunctions_1.runDatsheeshApiRequest.call(this, "POST", `/v1/vms/${encodeURIComponent(vmId)}/exec`, { body });
|
|
452
|
+
returnData.push({ json: data });
|
|
453
|
+
continue;
|
|
454
|
+
}
|
|
455
|
+
if (operation === "runTs") {
|
|
456
|
+
const vmId = this.getNodeParameter("vmIdVms", i);
|
|
457
|
+
const timeoutMsRaw = this.getNodeParameter("timeoutMs", i);
|
|
458
|
+
const timeoutMs = timeoutMsRaw && timeoutMsRaw > 0 ? timeoutMsRaw : undefined;
|
|
459
|
+
const code = this.getNodeParameter("code", i).trim();
|
|
460
|
+
const tsPath = this.getNodeParameter("tsPath", i).trim();
|
|
461
|
+
const argsRaw = this.getNodeParameter("args", i).trim();
|
|
462
|
+
const denoFlagsRaw = this.getNodeParameter("denoFlags", i).trim();
|
|
463
|
+
if (!code && !tsPath) {
|
|
464
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), "Provide either TypeScript Code or TypeScript File Path", {
|
|
465
|
+
itemIndex: i
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
const body = {};
|
|
469
|
+
if (code)
|
|
470
|
+
body.code = code;
|
|
471
|
+
if (tsPath)
|
|
472
|
+
body.path = tsPath;
|
|
473
|
+
if (argsRaw)
|
|
474
|
+
body.args = argsRaw.split(",").map((s) => s.trim()).filter(Boolean);
|
|
475
|
+
if (denoFlagsRaw)
|
|
476
|
+
body.denoFlags = denoFlagsRaw.split(",").map((s) => s.trim()).filter(Boolean);
|
|
477
|
+
if (timeoutMs !== undefined)
|
|
478
|
+
body.timeoutMs = timeoutMs;
|
|
479
|
+
const data = await GenericFunctions_1.runDatsheeshApiRequest.call(this, "POST", `/v1/vms/${encodeURIComponent(vmId)}/run-ts`, { body });
|
|
480
|
+
returnData.push({ json: data });
|
|
481
|
+
continue;
|
|
482
|
+
}
|
|
483
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported VMs operation: ${operation}`, { itemIndex: i });
|
|
484
|
+
}
|
|
485
|
+
return [returnData];
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
exports.RunDatsheesh = RunDatsheesh;
|
|
489
|
+
//# sourceMappingURL=RunDatSeesh.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunDatSeesh.node.js","sourceRoot":"","sources":["../../../nodes/RunDatSeesh/RunDatSeesh.node.ts"],"names":[],"mappings":";;;AACA,+CAAkD;AAClD,yDAA4D;AAE5D,MAAa,YAAY;IACvB,WAAW,GAAyB;QAClC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,uBAAuB;QAC7B,KAAK,EAAE,CAAC,WAAW,CAAC;QACpB,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,wDAAwD;QAClE,WAAW,EAAE,8CAA8C;QAC3D,QAAQ,EAAE;YACR,IAAI,EAAE,gBAAgB;SACvB;QACD,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,CAAC,MAAM,CAAC;QACjB,YAAY,EAAE,IAAI;QAClB,WAAW,EAAE;YACX;gBACE,IAAI,EAAE,iBAAiB;gBACvB,QAAQ,EAAE,IAAI;aACf;SACF;QACD,UAAU,EAAE;YACV;gBACE,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;gBACf,gBAAgB,EAAE,IAAI;gBACtB,OAAO,EA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|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-run-dat-sheesh",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "n8n community nodes for run-dat-sheesh manager API",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://github.com/your-org/run-dat-sheesh",
|
|
7
|
+
"author": "run-dat-sheesh",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"n8n-community-node-package",
|
|
10
|
+
"n8n",
|
|
11
|
+
"firecracker",
|
|
12
|
+
"sandbox"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/your-org/run-dat-sheesh.git"
|
|
17
|
+
},
|
|
18
|
+
"main": "dist/index.js",
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc -p tsconfig.json",
|
|
24
|
+
"prepare": "npm run build"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/node": "^20.11.30",
|
|
28
|
+
"n8n-core": "^1.0.0",
|
|
29
|
+
"n8n-workflow": "^1.0.0",
|
|
30
|
+
"typescript": "^5.5.4"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"n8n-core": "^1.0.0",
|
|
34
|
+
"n8n-workflow": "^1.0.0"
|
|
35
|
+
},
|
|
36
|
+
"n8n": {
|
|
37
|
+
"n8nNodesApiVersion": 1,
|
|
38
|
+
"credentials": [
|
|
39
|
+
"dist/credentials/RunDatsheeshApi.credentials.js"
|
|
40
|
+
],
|
|
41
|
+
"nodes": [
|
|
42
|
+
"dist/nodes/RunDatsheesh/RunDatsheesh.node.js"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|