@blaxel/core 0.2.49-dev.214 → 0.2.49-dev1
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/dist/agents/index.d.ts +15 -0
- package/dist/agents/index.js +109 -0
- package/dist/authentication/apikey.d.ts +10 -0
- package/dist/authentication/apikey.js +24 -0
- package/dist/authentication/clientcredentials.d.ts +17 -0
- package/dist/authentication/clientcredentials.js +85 -0
- package/dist/authentication/credentials.d.ts +6 -0
- package/dist/authentication/credentials.js +17 -0
- package/dist/authentication/deviceMode.d.ts +15 -0
- package/dist/authentication/deviceMode.js +70 -0
- package/dist/authentication/index.d.ts +3 -0
- package/dist/authentication/index.js +62 -0
- package/dist/authentication/types.d.ts +9 -0
- package/dist/authentication/types.js +2 -0
- package/dist/cache/index.d.ts +1 -0
- package/dist/cache/index.js +26 -0
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/agents/index.js +2 -2
- package/dist/cjs/authentication/clientcredentials.js +1 -4
- package/dist/cjs/client/responseInterceptor.js +53 -0
- package/dist/cjs/client/sdk.gen.js +143 -3
- package/dist/cjs/common/autoload.js +7 -0
- package/dist/cjs/common/env.js +3 -0
- package/dist/cjs/common/internal.js +0 -40
- package/dist/cjs/common/settings.js +2 -5
- package/dist/cjs/common/version.js +6 -0
- package/dist/cjs/common/webhook.js +101 -0
- package/dist/cjs/jobs/executions.js +119 -0
- package/dist/cjs/jobs/jobs.js +2 -2
- package/dist/cjs/jobs/start.js +1 -32
- package/dist/cjs/sandbox/action.js +2 -1
- package/dist/cjs/sandbox/index.js +1 -0
- package/dist/cjs/sandbox/interpreter.js +400 -0
- package/dist/cjs/sandbox/sandbox.js +10 -67
- package/dist/cjs/tools/mcpTool.js +2 -6
- package/dist/cjs/types/client/responseInterceptor.d.ts +12 -0
- package/dist/cjs/types/client/sdk.gen.d.ts +41 -1
- package/dist/cjs/types/client/types.gen.d.ts +599 -16
- package/dist/cjs/types/common/internal.d.ts +0 -2
- package/dist/cjs/types/common/settings.d.ts +0 -1
- package/dist/cjs/types/common/version.d.ts +2 -0
- package/dist/cjs/types/common/webhook.d.ts +89 -0
- package/dist/cjs/types/jobs/executions.d.ts +42 -0
- package/dist/cjs/types/sandbox/client/sdk.gen.d.ts +1 -1
- package/dist/cjs/types/sandbox/index.d.ts +1 -0
- package/dist/cjs/types/sandbox/interpreter.d.ts +71 -0
- package/dist/cjs/types/sandbox/sandbox.d.ts +6 -12
- package/dist/cjs/types/sandbox/types.d.ts +0 -3
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/agents/index.js +2 -2
- package/dist/cjs-browser/authentication/clientcredentials.js +1 -4
- package/dist/cjs-browser/client/responseInterceptor.js +53 -0
- package/dist/cjs-browser/client/sdk.gen.js +143 -3
- package/dist/cjs-browser/common/autoload.js +7 -0
- package/dist/cjs-browser/common/env.js +3 -0
- package/dist/cjs-browser/common/internal.js +0 -40
- package/dist/cjs-browser/common/settings.js +2 -5
- package/dist/cjs-browser/common/version.js +6 -0
- package/dist/cjs-browser/common/webhook.js +101 -0
- package/dist/cjs-browser/jobs/executions.js +119 -0
- package/dist/cjs-browser/jobs/jobs.js +2 -2
- package/dist/cjs-browser/jobs/start.js +1 -32
- package/dist/cjs-browser/sandbox/action.js +2 -1
- package/dist/cjs-browser/sandbox/index.js +1 -0
- package/dist/cjs-browser/sandbox/interpreter.js +400 -0
- package/dist/cjs-browser/sandbox/sandbox.js +10 -67
- package/dist/cjs-browser/tools/mcpTool.js +2 -6
- package/dist/cjs-browser/types/client/responseInterceptor.d.ts +12 -0
- package/dist/cjs-browser/types/client/sdk.gen.d.ts +41 -1
- package/dist/cjs-browser/types/client/types.gen.d.ts +599 -16
- package/dist/cjs-browser/types/common/internal.d.ts +0 -2
- package/dist/cjs-browser/types/common/settings.d.ts +0 -1
- package/dist/cjs-browser/types/common/version.d.ts +2 -0
- package/dist/cjs-browser/types/common/webhook.d.ts +89 -0
- package/dist/cjs-browser/types/jobs/executions.d.ts +42 -0
- package/dist/cjs-browser/types/sandbox/client/sdk.gen.d.ts +1 -1
- package/dist/cjs-browser/types/sandbox/index.d.ts +1 -0
- package/dist/cjs-browser/types/sandbox/interpreter.d.ts +71 -0
- package/dist/cjs-browser/types/sandbox/sandbox.d.ts +6 -12
- package/dist/cjs-browser/types/sandbox/types.d.ts +0 -3
- package/dist/client/authentication.d.ts +25 -0
- package/dist/client/authentication.js +15 -0
- package/dist/client/client.d.ts +2 -0
- package/dist/client/client.gen.d.ts +12 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/{cjs/sandbox/websocket/index.js → client/client.js} +1 -1
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +19 -0
- package/dist/client/interceptors.d.ts +3 -0
- package/dist/client/interceptors.js +17 -0
- package/dist/client/sdk.gen.d.ts +499 -0
- package/dist/client/sdk.gen.js +1751 -0
- package/dist/client/types.gen.d.ts +4546 -0
- package/dist/client/types.gen.js +4 -0
- package/dist/common/autoload.d.ts +3 -0
- package/dist/common/autoload.js +27 -0
- package/dist/common/env.d.ts +5 -0
- package/dist/common/env.js +42 -0
- package/dist/common/errors.d.ts +1 -0
- package/dist/common/errors.js +17 -0
- package/dist/common/internal.d.ts +4 -0
- package/dist/common/internal.js +188 -0
- package/dist/common/internal.test.d.ts +1 -0
- package/dist/common/internal.test.js +39 -0
- package/dist/common/logger.d.ts +25 -0
- package/dist/common/logger.js +69 -0
- package/dist/common/node.d.ts +5 -0
- package/dist/common/node.js +26 -0
- package/dist/common/settings.d.ts +31 -0
- package/dist/common/settings.js +170 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/agents/index.js +3 -3
- package/dist/esm/authentication/clientcredentials.js +1 -4
- package/dist/esm/client/responseInterceptor.js +49 -0
- package/dist/esm/client/sdk.gen.js +132 -0
- package/dist/esm/common/autoload.js +7 -0
- package/dist/esm/common/env.js +3 -0
- package/dist/esm/common/internal.js +0 -38
- package/dist/esm/common/settings.js +2 -5
- package/dist/esm/common/version.js +3 -0
- package/dist/esm/common/webhook.js +97 -0
- package/dist/esm/jobs/executions.js +114 -0
- package/dist/esm/jobs/jobs.js +3 -3
- package/dist/esm/jobs/start.js +1 -32
- package/dist/esm/sandbox/action.js +3 -2
- package/dist/esm/sandbox/index.js +1 -0
- package/dist/esm/sandbox/interpreter.js +396 -0
- package/dist/esm/sandbox/sandbox.js +10 -67
- package/dist/esm/tools/mcpTool.js +3 -7
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/agents/index.js +3 -3
- package/dist/esm-browser/authentication/clientcredentials.js +1 -4
- package/dist/esm-browser/client/responseInterceptor.js +49 -0
- package/dist/esm-browser/client/sdk.gen.js +132 -0
- package/dist/esm-browser/common/autoload.js +7 -0
- package/dist/esm-browser/common/env.js +3 -0
- package/dist/esm-browser/common/internal.js +0 -38
- package/dist/esm-browser/common/settings.js +2 -5
- package/dist/esm-browser/common/version.js +3 -0
- package/dist/esm-browser/common/webhook.js +97 -0
- package/dist/esm-browser/jobs/executions.js +114 -0
- package/dist/esm-browser/jobs/jobs.js +3 -3
- package/dist/esm-browser/jobs/start.js +1 -32
- package/dist/esm-browser/sandbox/action.js +3 -2
- package/dist/esm-browser/sandbox/index.js +1 -0
- package/dist/esm-browser/sandbox/interpreter.js +396 -0
- package/dist/esm-browser/sandbox/sandbox.js +10 -67
- package/dist/esm-browser/tools/mcpTool.js +3 -7
- package/dist/index.browser.test.d.ts +1 -0
- package/dist/index.browser.test.js +45 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +33 -0
- package/dist/jobs/index.d.ts +3 -0
- package/dist/jobs/index.js +19 -0
- package/dist/jobs/jobs.d.ts +13 -0
- package/dist/jobs/jobs.js +90 -0
- package/dist/jobs/start.d.ts +1 -0
- package/dist/jobs/start.js +66 -0
- package/dist/jobs/types.d.ts +3 -0
- package/dist/jobs/types.js +2 -0
- package/dist/mcp/client.d.ts +28 -0
- package/dist/mcp/client.js +247 -0
- package/dist/{cjs-browser/types/sandbox/websocket → mcp}/index.d.ts +1 -0
- package/dist/{cjs-browser/sandbox/websocket → mcp}/index.js +1 -0
- package/dist/mcp/server.d.ts +24 -0
- package/dist/mcp/server.js +213 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +31 -0
- package/dist/sandbox/action.d.ts +19 -0
- package/dist/sandbox/action.js +84 -0
- package/dist/sandbox/client/client.gen.d.ts +12 -0
- package/dist/sandbox/client/client.gen.js +6 -0
- package/dist/sandbox/client/index.d.ts +2 -0
- package/dist/sandbox/client/index.js +19 -0
- package/dist/sandbox/client/sdk.gen.d.ts +101 -0
- package/dist/sandbox/client/sdk.gen.js +289 -0
- package/dist/sandbox/client/types.gen.d.ts +578 -0
- package/dist/sandbox/client/types.gen.js +3 -0
- package/dist/{cjs/types/sandbox/filesystem/filesystem-ws.d.ts → sandbox/filesystem/filesystem.d.ts} +6 -18
- package/dist/sandbox/filesystem/filesystem.js +276 -0
- package/dist/sandbox/filesystem/index.d.ts +2 -0
- package/dist/sandbox/filesystem/index.js +18 -0
- package/dist/sandbox/filesystem/types.d.ts +15 -0
- package/dist/sandbox/filesystem/types.js +2 -0
- package/dist/sandbox/index.d.ts +4 -0
- package/dist/sandbox/index.js +36 -0
- package/dist/sandbox/network/index.d.ts +1 -0
- package/dist/sandbox/network/index.js +17 -0
- package/dist/sandbox/network/network.d.ts +5 -0
- package/dist/sandbox/network/network.js +10 -0
- package/dist/sandbox/preview.d.ts +37 -0
- package/dist/sandbox/preview.js +148 -0
- package/dist/sandbox/process/index.d.ts +1 -0
- package/dist/sandbox/process/index.js +17 -0
- package/dist/sandbox/process/process.d.ts +24 -0
- package/dist/sandbox/process/process.js +189 -0
- package/dist/sandbox/sandbox.d.ts +33 -0
- package/dist/sandbox/sandbox.js +178 -0
- package/dist/sandbox/session.d.ts +27 -0
- package/dist/sandbox/session.js +123 -0
- package/dist/sandbox/types.d.ts +51 -0
- package/dist/sandbox/types.js +81 -0
- package/dist/telemetry/telemetry.d.ts +62 -0
- package/dist/telemetry/telemetry.js +80 -0
- package/dist/tools/index.d.ts +11 -0
- package/dist/tools/index.js +52 -0
- package/dist/tools/mcpTool.d.ts +28 -0
- package/dist/tools/mcpTool.js +218 -0
- package/dist/tools/types.d.ts +8 -0
- package/dist/tools/types.js +2 -0
- package/dist/tools/zodSchema.d.ts +9 -0
- package/dist/tools/zodSchema.js +50 -0
- package/dist/volume/index.d.ts +23 -0
- package/dist/volume/index.js +113 -0
- package/package.json +2 -2
- package/dist/cjs/sandbox/codegen/codegen-ws.js +0 -30
- package/dist/cjs/sandbox/filesystem/filesystem-ws.js +0 -106
- package/dist/cjs/sandbox/network/network-ws.js +0 -12
- package/dist/cjs/sandbox/process/process-ws.js +0 -139
- package/dist/cjs/sandbox/websocket/client.js +0 -269
- package/dist/cjs/types/sandbox/codegen/codegen-ws.d.ts +0 -10
- package/dist/cjs/types/sandbox/network/network-ws.d.ts +0 -7
- package/dist/cjs/types/sandbox/process/process-ws.d.ts +0 -27
- package/dist/cjs/types/sandbox/websocket/client.d.ts +0 -48
- package/dist/cjs/types/sandbox/websocket/index.d.ts +0 -1
- package/dist/cjs-browser/sandbox/codegen/codegen-ws.js +0 -30
- package/dist/cjs-browser/sandbox/filesystem/filesystem-ws.js +0 -106
- package/dist/cjs-browser/sandbox/network/network-ws.js +0 -12
- package/dist/cjs-browser/sandbox/process/process-ws.js +0 -139
- package/dist/cjs-browser/sandbox/websocket/client.js +0 -269
- package/dist/cjs-browser/types/sandbox/codegen/codegen-ws.d.ts +0 -10
- package/dist/cjs-browser/types/sandbox/filesystem/filesystem-ws.d.ts +0 -35
- package/dist/cjs-browser/types/sandbox/network/network-ws.d.ts +0 -7
- package/dist/cjs-browser/types/sandbox/process/process-ws.d.ts +0 -27
- package/dist/cjs-browser/types/sandbox/websocket/client.d.ts +0 -48
- package/dist/esm/sandbox/codegen/codegen-ws.js +0 -26
- package/dist/esm/sandbox/filesystem/filesystem-ws.js +0 -102
- package/dist/esm/sandbox/network/network-ws.js +0 -8
- package/dist/esm/sandbox/process/process-ws.js +0 -135
- package/dist/esm/sandbox/websocket/client.js +0 -265
- package/dist/esm/sandbox/websocket/index.js +0 -1
- package/dist/esm-browser/sandbox/codegen/codegen-ws.js +0 -26
- package/dist/esm-browser/sandbox/filesystem/filesystem-ws.js +0 -102
- package/dist/esm-browser/sandbox/network/network-ws.js +0 -8
- package/dist/esm-browser/sandbox/process/process-ws.js +0 -135
- package/dist/esm-browser/sandbox/websocket/client.js +0 -265
- package/dist/esm-browser/sandbox/websocket/index.js +0 -1
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getWsWatchFilesystemByPath = exports.getWsProcessByIdentifierLogsStream = exports.getWatchFilesystemByPath = exports.getProcessByIdentifierLogsStream = exports.getProcessByIdentifierLogs = exports.deleteProcessByIdentifierKill = exports.getProcessByIdentifier = exports.deleteProcessByIdentifier = exports.postProcess = exports.getProcess = exports.getNetworkProcessByPidPorts = exports.postNetworkProcessByPidMonitor = exports.deleteNetworkProcessByPidMonitor = exports.putFilesystemByPath = exports.getFilesystemByPath = exports.deleteFilesystemByPath = void 0;
|
|
5
|
+
const client_gen_1 = require("./client.gen");
|
|
6
|
+
/**
|
|
7
|
+
* Delete file or directory
|
|
8
|
+
* Delete a file or directory
|
|
9
|
+
*/
|
|
10
|
+
const deleteFilesystemByPath = (options) => {
|
|
11
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
12
|
+
security: [
|
|
13
|
+
{
|
|
14
|
+
scheme: 'bearer',
|
|
15
|
+
type: 'http'
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
url: '/filesystem/{path}',
|
|
19
|
+
...options
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
exports.deleteFilesystemByPath = deleteFilesystemByPath;
|
|
23
|
+
/**
|
|
24
|
+
* Get file or directory information
|
|
25
|
+
* Get content of a file or listing of a directory
|
|
26
|
+
*/
|
|
27
|
+
const getFilesystemByPath = (options) => {
|
|
28
|
+
return (options.client ?? client_gen_1.client).get({
|
|
29
|
+
security: [
|
|
30
|
+
{
|
|
31
|
+
scheme: 'bearer',
|
|
32
|
+
type: 'http'
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
url: '/filesystem/{path}',
|
|
36
|
+
...options
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
exports.getFilesystemByPath = getFilesystemByPath;
|
|
40
|
+
/**
|
|
41
|
+
* Create or update a file or directory
|
|
42
|
+
* Create or update a file or directory
|
|
43
|
+
*/
|
|
44
|
+
const putFilesystemByPath = (options) => {
|
|
45
|
+
return (options.client ?? client_gen_1.client).put({
|
|
46
|
+
security: [
|
|
47
|
+
{
|
|
48
|
+
scheme: 'bearer',
|
|
49
|
+
type: 'http'
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
url: '/filesystem/{path}',
|
|
53
|
+
...options,
|
|
54
|
+
headers: {
|
|
55
|
+
'Content-Type': 'application/json',
|
|
56
|
+
...options?.headers
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
exports.putFilesystemByPath = putFilesystemByPath;
|
|
61
|
+
/**
|
|
62
|
+
* Stop monitoring ports for a process
|
|
63
|
+
* Stop monitoring for new ports opened by a process
|
|
64
|
+
*/
|
|
65
|
+
const deleteNetworkProcessByPidMonitor = (options) => {
|
|
66
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
67
|
+
security: [
|
|
68
|
+
{
|
|
69
|
+
scheme: 'bearer',
|
|
70
|
+
type: 'http'
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
url: '/network/process/{pid}/monitor',
|
|
74
|
+
...options
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
exports.deleteNetworkProcessByPidMonitor = deleteNetworkProcessByPidMonitor;
|
|
78
|
+
/**
|
|
79
|
+
* Start monitoring ports for a process
|
|
80
|
+
* Start monitoring for new ports opened by a process
|
|
81
|
+
*/
|
|
82
|
+
const postNetworkProcessByPidMonitor = (options) => {
|
|
83
|
+
return (options.client ?? client_gen_1.client).post({
|
|
84
|
+
security: [
|
|
85
|
+
{
|
|
86
|
+
scheme: 'bearer',
|
|
87
|
+
type: 'http'
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
url: '/network/process/{pid}/monitor',
|
|
91
|
+
...options,
|
|
92
|
+
headers: {
|
|
93
|
+
'Content-Type': 'application/json',
|
|
94
|
+
...options?.headers
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
exports.postNetworkProcessByPidMonitor = postNetworkProcessByPidMonitor;
|
|
99
|
+
/**
|
|
100
|
+
* Get open ports for a process
|
|
101
|
+
* Get a list of all open ports for a process
|
|
102
|
+
*/
|
|
103
|
+
const getNetworkProcessByPidPorts = (options) => {
|
|
104
|
+
return (options.client ?? client_gen_1.client).get({
|
|
105
|
+
security: [
|
|
106
|
+
{
|
|
107
|
+
scheme: 'bearer',
|
|
108
|
+
type: 'http'
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
url: '/network/process/{pid}/ports',
|
|
112
|
+
...options
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
exports.getNetworkProcessByPidPorts = getNetworkProcessByPidPorts;
|
|
116
|
+
/**
|
|
117
|
+
* List all processes
|
|
118
|
+
* Get a list of all running and completed processes
|
|
119
|
+
*/
|
|
120
|
+
const getProcess = (options) => {
|
|
121
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
122
|
+
security: [
|
|
123
|
+
{
|
|
124
|
+
scheme: 'bearer',
|
|
125
|
+
type: 'http'
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
url: '/process',
|
|
129
|
+
...options
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
exports.getProcess = getProcess;
|
|
133
|
+
/**
|
|
134
|
+
* Execute a command
|
|
135
|
+
* Execute a command and return process information
|
|
136
|
+
*/
|
|
137
|
+
const postProcess = (options) => {
|
|
138
|
+
return (options.client ?? client_gen_1.client).post({
|
|
139
|
+
security: [
|
|
140
|
+
{
|
|
141
|
+
scheme: 'bearer',
|
|
142
|
+
type: 'http'
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
url: '/process',
|
|
146
|
+
...options,
|
|
147
|
+
headers: {
|
|
148
|
+
'Content-Type': 'application/json',
|
|
149
|
+
...options?.headers
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
exports.postProcess = postProcess;
|
|
154
|
+
/**
|
|
155
|
+
* Stop a process
|
|
156
|
+
* Gracefully stop a running process
|
|
157
|
+
*/
|
|
158
|
+
const deleteProcessByIdentifier = (options) => {
|
|
159
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
160
|
+
security: [
|
|
161
|
+
{
|
|
162
|
+
scheme: 'bearer',
|
|
163
|
+
type: 'http'
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
url: '/process/{identifier}',
|
|
167
|
+
...options
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
exports.deleteProcessByIdentifier = deleteProcessByIdentifier;
|
|
171
|
+
/**
|
|
172
|
+
* Get process by identifier
|
|
173
|
+
* Get information about a process by its PID or name
|
|
174
|
+
*/
|
|
175
|
+
const getProcessByIdentifier = (options) => {
|
|
176
|
+
return (options.client ?? client_gen_1.client).get({
|
|
177
|
+
security: [
|
|
178
|
+
{
|
|
179
|
+
scheme: 'bearer',
|
|
180
|
+
type: 'http'
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
url: '/process/{identifier}',
|
|
184
|
+
...options
|
|
185
|
+
});
|
|
186
|
+
};
|
|
187
|
+
exports.getProcessByIdentifier = getProcessByIdentifier;
|
|
188
|
+
/**
|
|
189
|
+
* Kill a process
|
|
190
|
+
* Forcefully kill a running process
|
|
191
|
+
*/
|
|
192
|
+
const deleteProcessByIdentifierKill = (options) => {
|
|
193
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
194
|
+
security: [
|
|
195
|
+
{
|
|
196
|
+
scheme: 'bearer',
|
|
197
|
+
type: 'http'
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
url: '/process/{identifier}/kill',
|
|
201
|
+
...options
|
|
202
|
+
});
|
|
203
|
+
};
|
|
204
|
+
exports.deleteProcessByIdentifierKill = deleteProcessByIdentifierKill;
|
|
205
|
+
/**
|
|
206
|
+
* Get process logs
|
|
207
|
+
* Get the stdout and stderr output of a process
|
|
208
|
+
*/
|
|
209
|
+
const getProcessByIdentifierLogs = (options) => {
|
|
210
|
+
return (options.client ?? client_gen_1.client).get({
|
|
211
|
+
security: [
|
|
212
|
+
{
|
|
213
|
+
scheme: 'bearer',
|
|
214
|
+
type: 'http'
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
url: '/process/{identifier}/logs',
|
|
218
|
+
...options
|
|
219
|
+
});
|
|
220
|
+
};
|
|
221
|
+
exports.getProcessByIdentifierLogs = getProcessByIdentifierLogs;
|
|
222
|
+
/**
|
|
223
|
+
* Stream process logs in real time
|
|
224
|
+
* Streams the stdout and stderr output of a process in real time, one line per log, prefixed with 'stdout:' or 'stderr:'. Closes when the process exits or the client disconnects.
|
|
225
|
+
*/
|
|
226
|
+
const getProcessByIdentifierLogsStream = (options) => {
|
|
227
|
+
return (options.client ?? client_gen_1.client).get({
|
|
228
|
+
security: [
|
|
229
|
+
{
|
|
230
|
+
scheme: 'bearer',
|
|
231
|
+
type: 'http'
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
url: '/process/{identifier}/logs/stream',
|
|
235
|
+
...options
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
exports.getProcessByIdentifierLogsStream = getProcessByIdentifierLogsStream;
|
|
239
|
+
/**
|
|
240
|
+
* Stream file modification events in a directory
|
|
241
|
+
* Streams the path of modified files (one per line) in the given directory. Closes when the client disconnects.
|
|
242
|
+
*/
|
|
243
|
+
const getWatchFilesystemByPath = (options) => {
|
|
244
|
+
return (options.client ?? client_gen_1.client).get({
|
|
245
|
+
security: [
|
|
246
|
+
{
|
|
247
|
+
scheme: 'bearer',
|
|
248
|
+
type: 'http'
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
url: '/watch/filesystem/{path}',
|
|
252
|
+
...options
|
|
253
|
+
});
|
|
254
|
+
};
|
|
255
|
+
exports.getWatchFilesystemByPath = getWatchFilesystemByPath;
|
|
256
|
+
/**
|
|
257
|
+
* Stream process logs in real time via WebSocket
|
|
258
|
+
* Streams the stdout and stderr output of a process in real time as JSON messages.
|
|
259
|
+
*/
|
|
260
|
+
const getWsProcessByIdentifierLogsStream = (options) => {
|
|
261
|
+
return (options.client ?? client_gen_1.client).get({
|
|
262
|
+
security: [
|
|
263
|
+
{
|
|
264
|
+
scheme: 'bearer',
|
|
265
|
+
type: 'http'
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
url: '/ws/process/{identifier}/logs/stream',
|
|
269
|
+
...options
|
|
270
|
+
});
|
|
271
|
+
};
|
|
272
|
+
exports.getWsProcessByIdentifierLogsStream = getWsProcessByIdentifierLogsStream;
|
|
273
|
+
/**
|
|
274
|
+
* Stream file modification events in a directory via WebSocket
|
|
275
|
+
* Streams JSON events of modified files in the given directory. Closes when the client disconnects.
|
|
276
|
+
*/
|
|
277
|
+
const getWsWatchFilesystemByPath = (options) => {
|
|
278
|
+
return (options.client ?? client_gen_1.client).get({
|
|
279
|
+
security: [
|
|
280
|
+
{
|
|
281
|
+
scheme: 'bearer',
|
|
282
|
+
type: 'http'
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
url: '/ws/watch/filesystem/{path}',
|
|
286
|
+
...options
|
|
287
|
+
});
|
|
288
|
+
};
|
|
289
|
+
exports.getWsWatchFilesystemByPath = getWsWatchFilesystemByPath;
|