@daytona/toolbox-api-client 0.161.0-alpha.2
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/package.json +25 -0
- package/src/api/computer-use-api.d.ts +1013 -0
- package/src/api/computer-use-api.js +1890 -0
- package/src/api/computer-use-api.js.map +1 -0
- package/src/api/file-system-api.d.ts +519 -0
- package/src/api/file-system-api.js +969 -0
- package/src/api/file-system-api.js.map +1 -0
- package/src/api/git-api.d.ts +414 -0
- package/src/api/git-api.js +768 -0
- package/src/api/git-api.js.map +1 -0
- package/src/api/info-api.d.ts +135 -0
- package/src/api/info-api.js +229 -0
- package/src/api/info-api.js.map +1 -0
- package/src/api/interpreter-api.d.ts +173 -0
- package/src/api/interpreter-api.js +300 -0
- package/src/api/interpreter-api.js.map +1 -0
- package/src/api/lsp-api.d.ts +292 -0
- package/src/api/lsp-api.js +547 -0
- package/src/api/lsp-api.js.map +1 -0
- package/src/api/port-api.d.ts +104 -0
- package/src/api/port-api.js +180 -0
- package/src/api/port-api.js.map +1 -0
- package/src/api/process-api.d.ts +636 -0
- package/src/api/process-api.js +1166 -0
- package/src/api/process-api.js.map +1 -0
- package/src/api/server-api.d.ts +80 -0
- package/src/api/server-api.js +125 -0
- package/src/api/server-api.js.map +1 -0
- package/src/api.d.ts +20 -0
- package/src/api.js +39 -0
- package/src/api.js.map +1 -0
- package/src/base.d.ts +66 -0
- package/src/base.js +69 -0
- package/src/base.js.map +1 -0
- package/src/common.d.ts +65 -0
- package/src/common.js +146 -0
- package/src/common.js.map +1 -0
- package/src/configuration.d.ts +91 -0
- package/src/configuration.js +107 -0
- package/src/configuration.js.map +1 -0
- package/src/index.d.ts +14 -0
- package/src/index.js +33 -0
- package/src/index.js.map +1 -0
- package/src/models/command.d.ts +36 -0
- package/src/models/command.js +16 -0
- package/src/models/command.js.map +1 -0
- package/src/models/completion-context.d.ts +30 -0
- package/src/models/completion-context.js +16 -0
- package/src/models/completion-context.js.map +1 -0
- package/src/models/completion-item.d.ts +60 -0
- package/src/models/completion-item.js +16 -0
- package/src/models/completion-item.js.map +1 -0
- package/src/models/completion-list.d.ts +31 -0
- package/src/models/completion-list.js +16 -0
- package/src/models/completion-list.js.map +1 -0
- package/src/models/computer-use-start-response.d.ts +33 -0
- package/src/models/computer-use-start-response.js +16 -0
- package/src/models/computer-use-start-response.js.map +1 -0
- package/src/models/computer-use-status-response.d.ts +24 -0
- package/src/models/computer-use-status-response.js +16 -0
- package/src/models/computer-use-status-response.js.map +1 -0
- package/src/models/computer-use-stop-response.d.ts +33 -0
- package/src/models/computer-use-stop-response.js +16 -0
- package/src/models/computer-use-stop-response.js.map +1 -0
- package/src/models/create-context-request.d.ts +30 -0
- package/src/models/create-context-request.js +16 -0
- package/src/models/create-context-request.js.map +1 -0
- package/src/models/create-session-request.d.ts +24 -0
- package/src/models/create-session-request.js +16 -0
- package/src/models/create-session-request.js.map +1 -0
- package/src/models/display-info-response.d.ts +25 -0
- package/src/models/display-info-response.js +16 -0
- package/src/models/display-info-response.js.map +1 -0
- package/src/models/display-info.d.ts +54 -0
- package/src/models/display-info.js +16 -0
- package/src/models/display-info.js.map +1 -0
- package/src/models/execute-request.d.ts +36 -0
- package/src/models/execute-request.js +16 -0
- package/src/models/execute-request.js.map +1 -0
- package/src/models/execute-response.d.ts +30 -0
- package/src/models/execute-response.js +16 -0
- package/src/models/execute-response.js.map +1 -0
- package/src/models/file-info.d.ts +66 -0
- package/src/models/file-info.js +16 -0
- package/src/models/file-info.js.map +1 -0
- package/src/models/file-status.d.ts +43 -0
- package/src/models/file-status.js +16 -0
- package/src/models/file-status.js.map +1 -0
- package/src/models/files-download-request.d.ts +24 -0
- package/src/models/files-download-request.js +16 -0
- package/src/models/files-download-request.js.map +1 -0
- package/src/models/git-add-request.d.ts +30 -0
- package/src/models/git-add-request.js +16 -0
- package/src/models/git-add-request.js.map +1 -0
- package/src/models/git-branch-request.d.ts +30 -0
- package/src/models/git-branch-request.js +16 -0
- package/src/models/git-branch-request.js.map +1 -0
- package/src/models/git-checkout-request.d.ts +30 -0
- package/src/models/git-checkout-request.js +16 -0
- package/src/models/git-checkout-request.js.map +1 -0
- package/src/models/git-clone-request.d.ts +54 -0
- package/src/models/git-clone-request.js +16 -0
- package/src/models/git-clone-request.js.map +1 -0
- package/src/models/git-commit-info.d.ts +48 -0
- package/src/models/git-commit-info.js +16 -0
- package/src/models/git-commit-info.js.map +1 -0
- package/src/models/git-commit-request.d.ts +48 -0
- package/src/models/git-commit-request.js +16 -0
- package/src/models/git-commit-request.js.map +1 -0
- package/src/models/git-commit-response.d.ts +24 -0
- package/src/models/git-commit-response.js +16 -0
- package/src/models/git-commit-response.js.map +1 -0
- package/src/models/git-git-delete-branch-request.d.ts +30 -0
- package/src/models/git-git-delete-branch-request.js +16 -0
- package/src/models/git-git-delete-branch-request.js.map +1 -0
- package/src/models/git-repo-request.d.ts +36 -0
- package/src/models/git-repo-request.js +16 -0
- package/src/models/git-repo-request.js.map +1 -0
- package/src/models/git-status.d.ts +49 -0
- package/src/models/git-status.js +16 -0
- package/src/models/git-status.js.map +1 -0
- package/src/models/index.d.ts +79 -0
- package/src/models/index.js +96 -0
- package/src/models/index.js.map +1 -0
- package/src/models/initialize-request.d.ts +24 -0
- package/src/models/initialize-request.js +16 -0
- package/src/models/initialize-request.js.map +1 -0
- package/src/models/interpreter-context.d.ts +48 -0
- package/src/models/interpreter-context.js +16 -0
- package/src/models/interpreter-context.js.map +1 -0
- package/src/models/is-port-in-use-response.d.ts +24 -0
- package/src/models/is-port-in-use-response.js +16 -0
- package/src/models/is-port-in-use-response.js.map +1 -0
- package/src/models/keyboard-hotkey-request.d.ts +24 -0
- package/src/models/keyboard-hotkey-request.js +16 -0
- package/src/models/keyboard-hotkey-request.js.map +1 -0
- package/src/models/keyboard-press-request.d.ts +30 -0
- package/src/models/keyboard-press-request.js +16 -0
- package/src/models/keyboard-press-request.js.map +1 -0
- package/src/models/keyboard-type-request.d.ts +30 -0
- package/src/models/keyboard-type-request.js +16 -0
- package/src/models/keyboard-type-request.js.map +1 -0
- package/src/models/list-branch-response.d.ts +24 -0
- package/src/models/list-branch-response.js +16 -0
- package/src/models/list-branch-response.js.map +1 -0
- package/src/models/list-contexts-response.d.ts +25 -0
- package/src/models/list-contexts-response.js +16 -0
- package/src/models/list-contexts-response.js.map +1 -0
- package/src/models/list-recordings-response.d.ts +25 -0
- package/src/models/list-recordings-response.js +16 -0
- package/src/models/list-recordings-response.js.map +1 -0
- package/src/models/lsp-completion-params.d.ts +50 -0
- package/src/models/lsp-completion-params.js +16 -0
- package/src/models/lsp-completion-params.js.map +1 -0
- package/src/models/lsp-document-request.d.ts +36 -0
- package/src/models/lsp-document-request.js +16 -0
- package/src/models/lsp-document-request.js.map +1 -0
- package/src/models/lsp-location.d.ts +31 -0
- package/src/models/lsp-location.js +16 -0
- package/src/models/lsp-location.js.map +1 -0
- package/src/models/lsp-position.d.ts +30 -0
- package/src/models/lsp-position.js +16 -0
- package/src/models/lsp-position.js.map +1 -0
- package/src/models/lsp-range.d.ts +31 -0
- package/src/models/lsp-range.js +16 -0
- package/src/models/lsp-range.js.map +1 -0
- package/src/models/lsp-server-request.d.ts +30 -0
- package/src/models/lsp-server-request.js +16 -0
- package/src/models/lsp-server-request.js.map +1 -0
- package/src/models/lsp-symbol.d.ts +37 -0
- package/src/models/lsp-symbol.js +16 -0
- package/src/models/lsp-symbol.js.map +1 -0
- package/src/models/match.d.ts +36 -0
- package/src/models/match.js +16 -0
- package/src/models/match.js.map +1 -0
- package/src/models/mouse-click-request.d.ts +42 -0
- package/src/models/mouse-click-request.js +16 -0
- package/src/models/mouse-click-request.js.map +1 -0
- package/src/models/mouse-click-response.d.ts +30 -0
- package/src/models/mouse-click-response.js +16 -0
- package/src/models/mouse-click-response.js.map +1 -0
- package/src/models/mouse-drag-request.d.ts +48 -0
- package/src/models/mouse-drag-request.js +16 -0
- package/src/models/mouse-drag-request.js.map +1 -0
- package/src/models/mouse-drag-response.d.ts +30 -0
- package/src/models/mouse-drag-response.js +16 -0
- package/src/models/mouse-drag-response.js.map +1 -0
- package/src/models/mouse-move-request.d.ts +30 -0
- package/src/models/mouse-move-request.js +16 -0
- package/src/models/mouse-move-request.js.map +1 -0
- package/src/models/mouse-position-response.d.ts +30 -0
- package/src/models/mouse-position-response.js +16 -0
- package/src/models/mouse-position-response.js.map +1 -0
- package/src/models/mouse-scroll-request.d.ts +42 -0
- package/src/models/mouse-scroll-request.js +16 -0
- package/src/models/mouse-scroll-request.js.map +1 -0
- package/src/models/port-list.d.ts +24 -0
- package/src/models/port-list.js +16 -0
- package/src/models/port-list.js.map +1 -0
- package/src/models/position.d.ts +30 -0
- package/src/models/position.js +16 -0
- package/src/models/position.js.map +1 -0
- package/src/models/process-errors-response.d.ts +30 -0
- package/src/models/process-errors-response.js +16 -0
- package/src/models/process-errors-response.js.map +1 -0
- package/src/models/process-logs-response.d.ts +30 -0
- package/src/models/process-logs-response.js +16 -0
- package/src/models/process-logs-response.js.map +1 -0
- package/src/models/process-restart-response.d.ts +30 -0
- package/src/models/process-restart-response.js +16 -0
- package/src/models/process-restart-response.js.map +1 -0
- package/src/models/process-status-response.d.ts +30 -0
- package/src/models/process-status-response.js +16 -0
- package/src/models/process-status-response.js.map +1 -0
- package/src/models/process-status.d.ts +42 -0
- package/src/models/process-status.js +16 -0
- package/src/models/process-status.js.map +1 -0
- package/src/models/pty-create-request.d.ts +56 -0
- package/src/models/pty-create-request.js +16 -0
- package/src/models/pty-create-request.js.map +1 -0
- package/src/models/pty-create-response.d.ts +24 -0
- package/src/models/pty-create-response.js +16 -0
- package/src/models/pty-create-response.js.map +1 -0
- package/src/models/pty-list-response.d.ts +25 -0
- package/src/models/pty-list-response.js +16 -0
- package/src/models/pty-list-response.js.map +1 -0
- package/src/models/pty-resize-request.d.ts +30 -0
- package/src/models/pty-resize-request.js +16 -0
- package/src/models/pty-resize-request.js.map +1 -0
- package/src/models/pty-session-info.d.ts +68 -0
- package/src/models/pty-session-info.js +16 -0
- package/src/models/pty-session-info.js.map +1 -0
- package/src/models/recording.d.ts +66 -0
- package/src/models/recording.js +16 -0
- package/src/models/recording.js.map +1 -0
- package/src/models/replace-request.d.ts +36 -0
- package/src/models/replace-request.js +16 -0
- package/src/models/replace-request.js.map +1 -0
- package/src/models/replace-result.d.ts +36 -0
- package/src/models/replace-result.js +16 -0
- package/src/models/replace-result.js.map +1 -0
- package/src/models/screenshot-response.d.ts +37 -0
- package/src/models/screenshot-response.js +16 -0
- package/src/models/screenshot-response.js.map +1 -0
- package/src/models/scroll-response.d.ts +24 -0
- package/src/models/scroll-response.js +16 -0
- package/src/models/scroll-response.js.map +1 -0
- package/src/models/search-files-response.d.ts +24 -0
- package/src/models/search-files-response.js +16 -0
- package/src/models/search-files-response.js.map +1 -0
- package/src/models/session-execute-request.d.ts +42 -0
- package/src/models/session-execute-request.js +16 -0
- package/src/models/session-execute-request.js.map +1 -0
- package/src/models/session-execute-response.d.ts +48 -0
- package/src/models/session-execute-response.js +16 -0
- package/src/models/session-execute-response.js.map +1 -0
- package/src/models/session-send-input-request.d.ts +24 -0
- package/src/models/session-send-input-request.js +16 -0
- package/src/models/session-send-input-request.js.map +1 -0
- package/src/models/session.d.ts +31 -0
- package/src/models/session.js +16 -0
- package/src/models/session.js.map +1 -0
- package/src/models/start-recording-request.d.ts +24 -0
- package/src/models/start-recording-request.js +16 -0
- package/src/models/start-recording-request.js.map +1 -0
- package/src/models/status.d.ts +27 -0
- package/src/models/status.js +32 -0
- package/src/models/status.js.map +1 -0
- package/src/models/stop-recording-request.d.ts +24 -0
- package/src/models/stop-recording-request.js +16 -0
- package/src/models/stop-recording-request.js.map +1 -0
- package/src/models/user-home-dir-response.d.ts +24 -0
- package/src/models/user-home-dir-response.js +16 -0
- package/src/models/user-home-dir-response.js.map +1 -0
- package/src/models/window-info.d.ts +60 -0
- package/src/models/window-info.js +16 -0
- package/src/models/window-info.js.map +1 -0
- package/src/models/windows-response.d.ts +25 -0
- package/src/models/windows-response.js +16 -0
- package/src/models/windows-response.js.map +1 -0
- package/src/models/work-dir-response.d.ts +24 -0
- package/src/models/work-dir-response.js +16 -0
- package/src/models/work-dir-response.js.map +1 -0
|
@@ -0,0 +1,1166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Daytona Toolbox API
|
|
6
|
+
* Daytona Toolbox API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0.0.0-dev
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProcessApi = exports.ProcessApiFactory = exports.ProcessApiFp = exports.ProcessApiAxiosParamCreator = void 0;
|
|
17
|
+
const axios_1 = require("axios");
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
const common_1 = require("../common");
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
const base_1 = require("../base");
|
|
23
|
+
/**
|
|
24
|
+
* ProcessApi - axios parameter creator
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
const ProcessApiAxiosParamCreator = function (configuration) {
|
|
28
|
+
return {
|
|
29
|
+
/**
|
|
30
|
+
* Establish a WebSocket connection to interact with a pseudo-terminal session
|
|
31
|
+
* @summary Connect to PTY session via WebSocket
|
|
32
|
+
* @param {string} sessionId PTY session ID
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
connectPtySession: async (sessionId, options = {}) => {
|
|
37
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
38
|
+
(0, common_1.assertParamExists)('connectPtySession', 'sessionId', sessionId);
|
|
39
|
+
const localVarPath = `/process/pty/{sessionId}/connect`
|
|
40
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
41
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
43
|
+
let baseOptions;
|
|
44
|
+
if (configuration) {
|
|
45
|
+
baseOptions = configuration.baseOptions;
|
|
46
|
+
}
|
|
47
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
48
|
+
const localVarHeaderParameter = {};
|
|
49
|
+
const localVarQueryParameter = {};
|
|
50
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
51
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
52
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
53
|
+
return {
|
|
54
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
55
|
+
options: localVarRequestOptions,
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* Create a new pseudo-terminal session with specified configuration
|
|
60
|
+
* @summary Create a new PTY session
|
|
61
|
+
* @param {PtyCreateRequest} request PTY session creation request
|
|
62
|
+
* @param {*} [options] Override http request option.
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
*/
|
|
65
|
+
createPtySession: async (request, options = {}) => {
|
|
66
|
+
// verify required parameter 'request' is not null or undefined
|
|
67
|
+
(0, common_1.assertParamExists)('createPtySession', 'request', request);
|
|
68
|
+
const localVarPath = `/process/pty`;
|
|
69
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
70
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
71
|
+
let baseOptions;
|
|
72
|
+
if (configuration) {
|
|
73
|
+
baseOptions = configuration.baseOptions;
|
|
74
|
+
}
|
|
75
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
76
|
+
const localVarHeaderParameter = {};
|
|
77
|
+
const localVarQueryParameter = {};
|
|
78
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
79
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
80
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
81
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
82
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
|
|
83
|
+
return {
|
|
84
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
85
|
+
options: localVarRequestOptions,
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
* Create a new shell session for command execution
|
|
90
|
+
* @summary Create a new session
|
|
91
|
+
* @param {CreateSessionRequest} request Session creation request
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
*/
|
|
95
|
+
createSession: async (request, options = {}) => {
|
|
96
|
+
// verify required parameter 'request' is not null or undefined
|
|
97
|
+
(0, common_1.assertParamExists)('createSession', 'request', request);
|
|
98
|
+
const localVarPath = `/process/session`;
|
|
99
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
100
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
101
|
+
let baseOptions;
|
|
102
|
+
if (configuration) {
|
|
103
|
+
baseOptions = configuration.baseOptions;
|
|
104
|
+
}
|
|
105
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
106
|
+
const localVarHeaderParameter = {};
|
|
107
|
+
const localVarQueryParameter = {};
|
|
108
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
109
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
110
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
111
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
112
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
|
|
113
|
+
return {
|
|
114
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
115
|
+
options: localVarRequestOptions,
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
/**
|
|
119
|
+
* Delete a pseudo-terminal session and terminate its process
|
|
120
|
+
* @summary Delete a PTY session
|
|
121
|
+
* @param {string} sessionId PTY session ID
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
deletePtySession: async (sessionId, options = {}) => {
|
|
126
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
127
|
+
(0, common_1.assertParamExists)('deletePtySession', 'sessionId', sessionId);
|
|
128
|
+
const localVarPath = `/process/pty/{sessionId}`
|
|
129
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
130
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
131
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
132
|
+
let baseOptions;
|
|
133
|
+
if (configuration) {
|
|
134
|
+
baseOptions = configuration.baseOptions;
|
|
135
|
+
}
|
|
136
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
137
|
+
const localVarHeaderParameter = {};
|
|
138
|
+
const localVarQueryParameter = {};
|
|
139
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
140
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
142
|
+
return {
|
|
143
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
144
|
+
options: localVarRequestOptions,
|
|
145
|
+
};
|
|
146
|
+
},
|
|
147
|
+
/**
|
|
148
|
+
* Delete an existing shell session
|
|
149
|
+
* @summary Delete a session
|
|
150
|
+
* @param {string} sessionId Session ID
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
deleteSession: async (sessionId, options = {}) => {
|
|
155
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
156
|
+
(0, common_1.assertParamExists)('deleteSession', 'sessionId', sessionId);
|
|
157
|
+
const localVarPath = `/process/session/{sessionId}`
|
|
158
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
159
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
160
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
161
|
+
let baseOptions;
|
|
162
|
+
if (configuration) {
|
|
163
|
+
baseOptions = configuration.baseOptions;
|
|
164
|
+
}
|
|
165
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
166
|
+
const localVarHeaderParameter = {};
|
|
167
|
+
const localVarQueryParameter = {};
|
|
168
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
169
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
170
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
171
|
+
return {
|
|
172
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
173
|
+
options: localVarRequestOptions,
|
|
174
|
+
};
|
|
175
|
+
},
|
|
176
|
+
/**
|
|
177
|
+
* Execute a shell command and return the output and exit code
|
|
178
|
+
* @summary Execute a command
|
|
179
|
+
* @param {ExecuteRequest} request Command execution request
|
|
180
|
+
* @param {*} [options] Override http request option.
|
|
181
|
+
* @throws {RequiredError}
|
|
182
|
+
*/
|
|
183
|
+
executeCommand: async (request, options = {}) => {
|
|
184
|
+
// verify required parameter 'request' is not null or undefined
|
|
185
|
+
(0, common_1.assertParamExists)('executeCommand', 'request', request);
|
|
186
|
+
const localVarPath = `/process/execute`;
|
|
187
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
188
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
189
|
+
let baseOptions;
|
|
190
|
+
if (configuration) {
|
|
191
|
+
baseOptions = configuration.baseOptions;
|
|
192
|
+
}
|
|
193
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
194
|
+
const localVarHeaderParameter = {};
|
|
195
|
+
const localVarQueryParameter = {};
|
|
196
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
197
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
200
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
|
|
201
|
+
return {
|
|
202
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
203
|
+
options: localVarRequestOptions,
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
/**
|
|
207
|
+
* Get logs for a sandbox entrypoint session. Supports both HTTP and WebSocket streaming.
|
|
208
|
+
* @summary Get entrypoint logs
|
|
209
|
+
* @param {boolean} [follow] Follow logs in real-time (WebSocket only)
|
|
210
|
+
* @param {*} [options] Override http request option.
|
|
211
|
+
* @throws {RequiredError}
|
|
212
|
+
*/
|
|
213
|
+
getEntrypointLogs: async (follow, options = {}) => {
|
|
214
|
+
const localVarPath = `/process/session/entrypoint/logs`;
|
|
215
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
216
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
217
|
+
let baseOptions;
|
|
218
|
+
if (configuration) {
|
|
219
|
+
baseOptions = configuration.baseOptions;
|
|
220
|
+
}
|
|
221
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
222
|
+
const localVarHeaderParameter = {};
|
|
223
|
+
const localVarQueryParameter = {};
|
|
224
|
+
if (follow !== undefined) {
|
|
225
|
+
localVarQueryParameter['follow'] = follow;
|
|
226
|
+
}
|
|
227
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
230
|
+
return {
|
|
231
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
232
|
+
options: localVarRequestOptions,
|
|
233
|
+
};
|
|
234
|
+
},
|
|
235
|
+
/**
|
|
236
|
+
* Get details of an entrypoint session including its commands
|
|
237
|
+
* @summary Get entrypoint session details
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
*/
|
|
241
|
+
getEntrypointSession: async (options = {}) => {
|
|
242
|
+
const localVarPath = `/process/session/entrypoint`;
|
|
243
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
244
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
245
|
+
let baseOptions;
|
|
246
|
+
if (configuration) {
|
|
247
|
+
baseOptions = configuration.baseOptions;
|
|
248
|
+
}
|
|
249
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
250
|
+
const localVarHeaderParameter = {};
|
|
251
|
+
const localVarQueryParameter = {};
|
|
252
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
253
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
254
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
255
|
+
return {
|
|
256
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
257
|
+
options: localVarRequestOptions,
|
|
258
|
+
};
|
|
259
|
+
},
|
|
260
|
+
/**
|
|
261
|
+
* Get detailed information about a specific pseudo-terminal session
|
|
262
|
+
* @summary Get PTY session information
|
|
263
|
+
* @param {string} sessionId PTY session ID
|
|
264
|
+
* @param {*} [options] Override http request option.
|
|
265
|
+
* @throws {RequiredError}
|
|
266
|
+
*/
|
|
267
|
+
getPtySession: async (sessionId, options = {}) => {
|
|
268
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
269
|
+
(0, common_1.assertParamExists)('getPtySession', 'sessionId', sessionId);
|
|
270
|
+
const localVarPath = `/process/pty/{sessionId}`
|
|
271
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
272
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
273
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
274
|
+
let baseOptions;
|
|
275
|
+
if (configuration) {
|
|
276
|
+
baseOptions = configuration.baseOptions;
|
|
277
|
+
}
|
|
278
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
279
|
+
const localVarHeaderParameter = {};
|
|
280
|
+
const localVarQueryParameter = {};
|
|
281
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
282
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
283
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
284
|
+
return {
|
|
285
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
286
|
+
options: localVarRequestOptions,
|
|
287
|
+
};
|
|
288
|
+
},
|
|
289
|
+
/**
|
|
290
|
+
* Get details of a specific session including its commands
|
|
291
|
+
* @summary Get session details
|
|
292
|
+
* @param {string} sessionId Session ID
|
|
293
|
+
* @param {*} [options] Override http request option.
|
|
294
|
+
* @throws {RequiredError}
|
|
295
|
+
*/
|
|
296
|
+
getSession: async (sessionId, options = {}) => {
|
|
297
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
298
|
+
(0, common_1.assertParamExists)('getSession', 'sessionId', sessionId);
|
|
299
|
+
const localVarPath = `/process/session/{sessionId}`
|
|
300
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
301
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
302
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
303
|
+
let baseOptions;
|
|
304
|
+
if (configuration) {
|
|
305
|
+
baseOptions = configuration.baseOptions;
|
|
306
|
+
}
|
|
307
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
308
|
+
const localVarHeaderParameter = {};
|
|
309
|
+
const localVarQueryParameter = {};
|
|
310
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
311
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
313
|
+
return {
|
|
314
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
315
|
+
options: localVarRequestOptions,
|
|
316
|
+
};
|
|
317
|
+
},
|
|
318
|
+
/**
|
|
319
|
+
* Get details of a specific command within a session
|
|
320
|
+
* @summary Get session command details
|
|
321
|
+
* @param {string} sessionId Session ID
|
|
322
|
+
* @param {string} commandId Command ID
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
getSessionCommand: async (sessionId, commandId, options = {}) => {
|
|
327
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
328
|
+
(0, common_1.assertParamExists)('getSessionCommand', 'sessionId', sessionId);
|
|
329
|
+
// verify required parameter 'commandId' is not null or undefined
|
|
330
|
+
(0, common_1.assertParamExists)('getSessionCommand', 'commandId', commandId);
|
|
331
|
+
const localVarPath = `/process/session/{sessionId}/command/{commandId}`
|
|
332
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
333
|
+
.replace(`{${"commandId"}}`, encodeURIComponent(String(commandId)));
|
|
334
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
335
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
336
|
+
let baseOptions;
|
|
337
|
+
if (configuration) {
|
|
338
|
+
baseOptions = configuration.baseOptions;
|
|
339
|
+
}
|
|
340
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
341
|
+
const localVarHeaderParameter = {};
|
|
342
|
+
const localVarQueryParameter = {};
|
|
343
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
344
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
345
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
346
|
+
return {
|
|
347
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
348
|
+
options: localVarRequestOptions,
|
|
349
|
+
};
|
|
350
|
+
},
|
|
351
|
+
/**
|
|
352
|
+
* Get logs for a specific command within a session. Supports both HTTP and WebSocket streaming.
|
|
353
|
+
* @summary Get session command logs
|
|
354
|
+
* @param {string} sessionId Session ID
|
|
355
|
+
* @param {string} commandId Command ID
|
|
356
|
+
* @param {boolean} [follow] Follow logs in real-time (WebSocket only)
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
*/
|
|
360
|
+
getSessionCommandLogs: async (sessionId, commandId, follow, options = {}) => {
|
|
361
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
362
|
+
(0, common_1.assertParamExists)('getSessionCommandLogs', 'sessionId', sessionId);
|
|
363
|
+
// verify required parameter 'commandId' is not null or undefined
|
|
364
|
+
(0, common_1.assertParamExists)('getSessionCommandLogs', 'commandId', commandId);
|
|
365
|
+
const localVarPath = `/process/session/{sessionId}/command/{commandId}/logs`
|
|
366
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
367
|
+
.replace(`{${"commandId"}}`, encodeURIComponent(String(commandId)));
|
|
368
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
369
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
370
|
+
let baseOptions;
|
|
371
|
+
if (configuration) {
|
|
372
|
+
baseOptions = configuration.baseOptions;
|
|
373
|
+
}
|
|
374
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
375
|
+
const localVarHeaderParameter = {};
|
|
376
|
+
const localVarQueryParameter = {};
|
|
377
|
+
if (follow !== undefined) {
|
|
378
|
+
localVarQueryParameter['follow'] = follow;
|
|
379
|
+
}
|
|
380
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
381
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
382
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
383
|
+
return {
|
|
384
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
385
|
+
options: localVarRequestOptions,
|
|
386
|
+
};
|
|
387
|
+
},
|
|
388
|
+
/**
|
|
389
|
+
* Get a list of all active pseudo-terminal sessions
|
|
390
|
+
* @summary List all PTY sessions
|
|
391
|
+
* @param {*} [options] Override http request option.
|
|
392
|
+
* @throws {RequiredError}
|
|
393
|
+
*/
|
|
394
|
+
listPtySessions: async (options = {}) => {
|
|
395
|
+
const localVarPath = `/process/pty`;
|
|
396
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
397
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
398
|
+
let baseOptions;
|
|
399
|
+
if (configuration) {
|
|
400
|
+
baseOptions = configuration.baseOptions;
|
|
401
|
+
}
|
|
402
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
403
|
+
const localVarHeaderParameter = {};
|
|
404
|
+
const localVarQueryParameter = {};
|
|
405
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
406
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
407
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
408
|
+
return {
|
|
409
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
410
|
+
options: localVarRequestOptions,
|
|
411
|
+
};
|
|
412
|
+
},
|
|
413
|
+
/**
|
|
414
|
+
* Get a list of all active shell sessions
|
|
415
|
+
* @summary List all sessions
|
|
416
|
+
* @param {*} [options] Override http request option.
|
|
417
|
+
* @throws {RequiredError}
|
|
418
|
+
*/
|
|
419
|
+
listSessions: async (options = {}) => {
|
|
420
|
+
const localVarPath = `/process/session`;
|
|
421
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
422
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
423
|
+
let baseOptions;
|
|
424
|
+
if (configuration) {
|
|
425
|
+
baseOptions = configuration.baseOptions;
|
|
426
|
+
}
|
|
427
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
428
|
+
const localVarHeaderParameter = {};
|
|
429
|
+
const localVarQueryParameter = {};
|
|
430
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
431
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
432
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
433
|
+
return {
|
|
434
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
435
|
+
options: localVarRequestOptions,
|
|
436
|
+
};
|
|
437
|
+
},
|
|
438
|
+
/**
|
|
439
|
+
* Resize the terminal dimensions of a pseudo-terminal session
|
|
440
|
+
* @summary Resize a PTY session
|
|
441
|
+
* @param {string} sessionId PTY session ID
|
|
442
|
+
* @param {PtyResizeRequest} request Resize request with new dimensions
|
|
443
|
+
* @param {*} [options] Override http request option.
|
|
444
|
+
* @throws {RequiredError}
|
|
445
|
+
*/
|
|
446
|
+
resizePtySession: async (sessionId, request, options = {}) => {
|
|
447
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
448
|
+
(0, common_1.assertParamExists)('resizePtySession', 'sessionId', sessionId);
|
|
449
|
+
// verify required parameter 'request' is not null or undefined
|
|
450
|
+
(0, common_1.assertParamExists)('resizePtySession', 'request', request);
|
|
451
|
+
const localVarPath = `/process/pty/{sessionId}/resize`
|
|
452
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
453
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
454
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
455
|
+
let baseOptions;
|
|
456
|
+
if (configuration) {
|
|
457
|
+
baseOptions = configuration.baseOptions;
|
|
458
|
+
}
|
|
459
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
460
|
+
const localVarHeaderParameter = {};
|
|
461
|
+
const localVarQueryParameter = {};
|
|
462
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
463
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
464
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
465
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
466
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
|
|
467
|
+
return {
|
|
468
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
469
|
+
options: localVarRequestOptions,
|
|
470
|
+
};
|
|
471
|
+
},
|
|
472
|
+
/**
|
|
473
|
+
* Send input data to a running command in a session for interactive execution
|
|
474
|
+
* @summary Send input to command
|
|
475
|
+
* @param {string} sessionId Session ID
|
|
476
|
+
* @param {string} commandId Command ID
|
|
477
|
+
* @param {SessionSendInputRequest} request Input send request
|
|
478
|
+
* @param {*} [options] Override http request option.
|
|
479
|
+
* @throws {RequiredError}
|
|
480
|
+
*/
|
|
481
|
+
sendInput: async (sessionId, commandId, request, options = {}) => {
|
|
482
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
483
|
+
(0, common_1.assertParamExists)('sendInput', 'sessionId', sessionId);
|
|
484
|
+
// verify required parameter 'commandId' is not null or undefined
|
|
485
|
+
(0, common_1.assertParamExists)('sendInput', 'commandId', commandId);
|
|
486
|
+
// verify required parameter 'request' is not null or undefined
|
|
487
|
+
(0, common_1.assertParamExists)('sendInput', 'request', request);
|
|
488
|
+
const localVarPath = `/process/session/{sessionId}/command/{commandId}/input`
|
|
489
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
490
|
+
.replace(`{${"commandId"}}`, encodeURIComponent(String(commandId)));
|
|
491
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
492
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
493
|
+
let baseOptions;
|
|
494
|
+
if (configuration) {
|
|
495
|
+
baseOptions = configuration.baseOptions;
|
|
496
|
+
}
|
|
497
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
498
|
+
const localVarHeaderParameter = {};
|
|
499
|
+
const localVarQueryParameter = {};
|
|
500
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
501
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
502
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
503
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
504
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
|
|
505
|
+
return {
|
|
506
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
507
|
+
options: localVarRequestOptions,
|
|
508
|
+
};
|
|
509
|
+
},
|
|
510
|
+
/**
|
|
511
|
+
* Execute a command within an existing shell session
|
|
512
|
+
* @summary Execute command in session
|
|
513
|
+
* @param {string} sessionId Session ID
|
|
514
|
+
* @param {SessionExecuteRequest} request Command execution request
|
|
515
|
+
* @param {*} [options] Override http request option.
|
|
516
|
+
* @throws {RequiredError}
|
|
517
|
+
*/
|
|
518
|
+
sessionExecuteCommand: async (sessionId, request, options = {}) => {
|
|
519
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
520
|
+
(0, common_1.assertParamExists)('sessionExecuteCommand', 'sessionId', sessionId);
|
|
521
|
+
// verify required parameter 'request' is not null or undefined
|
|
522
|
+
(0, common_1.assertParamExists)('sessionExecuteCommand', 'request', request);
|
|
523
|
+
const localVarPath = `/process/session/{sessionId}/exec`
|
|
524
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
525
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
526
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
527
|
+
let baseOptions;
|
|
528
|
+
if (configuration) {
|
|
529
|
+
baseOptions = configuration.baseOptions;
|
|
530
|
+
}
|
|
531
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
532
|
+
const localVarHeaderParameter = {};
|
|
533
|
+
const localVarQueryParameter = {};
|
|
534
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
535
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
536
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
537
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
538
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(request, localVarRequestOptions, configuration);
|
|
539
|
+
return {
|
|
540
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
541
|
+
options: localVarRequestOptions,
|
|
542
|
+
};
|
|
543
|
+
},
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
exports.ProcessApiAxiosParamCreator = ProcessApiAxiosParamCreator;
|
|
547
|
+
/**
|
|
548
|
+
* ProcessApi - functional programming interface
|
|
549
|
+
* @export
|
|
550
|
+
*/
|
|
551
|
+
const ProcessApiFp = function (configuration) {
|
|
552
|
+
const localVarAxiosParamCreator = (0, exports.ProcessApiAxiosParamCreator)(configuration);
|
|
553
|
+
return {
|
|
554
|
+
/**
|
|
555
|
+
* Establish a WebSocket connection to interact with a pseudo-terminal session
|
|
556
|
+
* @summary Connect to PTY session via WebSocket
|
|
557
|
+
* @param {string} sessionId PTY session ID
|
|
558
|
+
* @param {*} [options] Override http request option.
|
|
559
|
+
* @throws {RequiredError}
|
|
560
|
+
*/
|
|
561
|
+
async connectPtySession(sessionId, options) {
|
|
562
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.connectPtySession(sessionId, options);
|
|
563
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
564
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.connectPtySession']?.[localVarOperationServerIndex]?.url;
|
|
565
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
566
|
+
},
|
|
567
|
+
/**
|
|
568
|
+
* Create a new pseudo-terminal session with specified configuration
|
|
569
|
+
* @summary Create a new PTY session
|
|
570
|
+
* @param {PtyCreateRequest} request PTY session creation request
|
|
571
|
+
* @param {*} [options] Override http request option.
|
|
572
|
+
* @throws {RequiredError}
|
|
573
|
+
*/
|
|
574
|
+
async createPtySession(request, options) {
|
|
575
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPtySession(request, options);
|
|
576
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
577
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.createPtySession']?.[localVarOperationServerIndex]?.url;
|
|
578
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
579
|
+
},
|
|
580
|
+
/**
|
|
581
|
+
* Create a new shell session for command execution
|
|
582
|
+
* @summary Create a new session
|
|
583
|
+
* @param {CreateSessionRequest} request Session creation request
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
*/
|
|
587
|
+
async createSession(request, options) {
|
|
588
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSession(request, options);
|
|
589
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
590
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.createSession']?.[localVarOperationServerIndex]?.url;
|
|
591
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
592
|
+
},
|
|
593
|
+
/**
|
|
594
|
+
* Delete a pseudo-terminal session and terminate its process
|
|
595
|
+
* @summary Delete a PTY session
|
|
596
|
+
* @param {string} sessionId PTY session ID
|
|
597
|
+
* @param {*} [options] Override http request option.
|
|
598
|
+
* @throws {RequiredError}
|
|
599
|
+
*/
|
|
600
|
+
async deletePtySession(sessionId, options) {
|
|
601
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePtySession(sessionId, options);
|
|
602
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
603
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.deletePtySession']?.[localVarOperationServerIndex]?.url;
|
|
604
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
605
|
+
},
|
|
606
|
+
/**
|
|
607
|
+
* Delete an existing shell session
|
|
608
|
+
* @summary Delete a session
|
|
609
|
+
* @param {string} sessionId Session ID
|
|
610
|
+
* @param {*} [options] Override http request option.
|
|
611
|
+
* @throws {RequiredError}
|
|
612
|
+
*/
|
|
613
|
+
async deleteSession(sessionId, options) {
|
|
614
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSession(sessionId, options);
|
|
615
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
616
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.deleteSession']?.[localVarOperationServerIndex]?.url;
|
|
617
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
618
|
+
},
|
|
619
|
+
/**
|
|
620
|
+
* Execute a shell command and return the output and exit code
|
|
621
|
+
* @summary Execute a command
|
|
622
|
+
* @param {ExecuteRequest} request Command execution request
|
|
623
|
+
* @param {*} [options] Override http request option.
|
|
624
|
+
* @throws {RequiredError}
|
|
625
|
+
*/
|
|
626
|
+
async executeCommand(request, options) {
|
|
627
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.executeCommand(request, options);
|
|
628
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
629
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.executeCommand']?.[localVarOperationServerIndex]?.url;
|
|
630
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
631
|
+
},
|
|
632
|
+
/**
|
|
633
|
+
* Get logs for a sandbox entrypoint session. Supports both HTTP and WebSocket streaming.
|
|
634
|
+
* @summary Get entrypoint logs
|
|
635
|
+
* @param {boolean} [follow] Follow logs in real-time (WebSocket only)
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @throws {RequiredError}
|
|
638
|
+
*/
|
|
639
|
+
async getEntrypointLogs(follow, options) {
|
|
640
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEntrypointLogs(follow, options);
|
|
641
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
642
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.getEntrypointLogs']?.[localVarOperationServerIndex]?.url;
|
|
643
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
644
|
+
},
|
|
645
|
+
/**
|
|
646
|
+
* Get details of an entrypoint session including its commands
|
|
647
|
+
* @summary Get entrypoint session details
|
|
648
|
+
* @param {*} [options] Override http request option.
|
|
649
|
+
* @throws {RequiredError}
|
|
650
|
+
*/
|
|
651
|
+
async getEntrypointSession(options) {
|
|
652
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEntrypointSession(options);
|
|
653
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
654
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.getEntrypointSession']?.[localVarOperationServerIndex]?.url;
|
|
655
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
656
|
+
},
|
|
657
|
+
/**
|
|
658
|
+
* Get detailed information about a specific pseudo-terminal session
|
|
659
|
+
* @summary Get PTY session information
|
|
660
|
+
* @param {string} sessionId PTY session ID
|
|
661
|
+
* @param {*} [options] Override http request option.
|
|
662
|
+
* @throws {RequiredError}
|
|
663
|
+
*/
|
|
664
|
+
async getPtySession(sessionId, options) {
|
|
665
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPtySession(sessionId, options);
|
|
666
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
667
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.getPtySession']?.[localVarOperationServerIndex]?.url;
|
|
668
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
669
|
+
},
|
|
670
|
+
/**
|
|
671
|
+
* Get details of a specific session including its commands
|
|
672
|
+
* @summary Get session details
|
|
673
|
+
* @param {string} sessionId Session ID
|
|
674
|
+
* @param {*} [options] Override http request option.
|
|
675
|
+
* @throws {RequiredError}
|
|
676
|
+
*/
|
|
677
|
+
async getSession(sessionId, options) {
|
|
678
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSession(sessionId, options);
|
|
679
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
680
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.getSession']?.[localVarOperationServerIndex]?.url;
|
|
681
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
682
|
+
},
|
|
683
|
+
/**
|
|
684
|
+
* Get details of a specific command within a session
|
|
685
|
+
* @summary Get session command details
|
|
686
|
+
* @param {string} sessionId Session ID
|
|
687
|
+
* @param {string} commandId Command ID
|
|
688
|
+
* @param {*} [options] Override http request option.
|
|
689
|
+
* @throws {RequiredError}
|
|
690
|
+
*/
|
|
691
|
+
async getSessionCommand(sessionId, commandId, options) {
|
|
692
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionCommand(sessionId, commandId, options);
|
|
693
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
694
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.getSessionCommand']?.[localVarOperationServerIndex]?.url;
|
|
695
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
696
|
+
},
|
|
697
|
+
/**
|
|
698
|
+
* Get logs for a specific command within a session. Supports both HTTP and WebSocket streaming.
|
|
699
|
+
* @summary Get session command logs
|
|
700
|
+
* @param {string} sessionId Session ID
|
|
701
|
+
* @param {string} commandId Command ID
|
|
702
|
+
* @param {boolean} [follow] Follow logs in real-time (WebSocket only)
|
|
703
|
+
* @param {*} [options] Override http request option.
|
|
704
|
+
* @throws {RequiredError}
|
|
705
|
+
*/
|
|
706
|
+
async getSessionCommandLogs(sessionId, commandId, follow, options) {
|
|
707
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionCommandLogs(sessionId, commandId, follow, options);
|
|
708
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
709
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.getSessionCommandLogs']?.[localVarOperationServerIndex]?.url;
|
|
710
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
711
|
+
},
|
|
712
|
+
/**
|
|
713
|
+
* Get a list of all active pseudo-terminal sessions
|
|
714
|
+
* @summary List all PTY sessions
|
|
715
|
+
* @param {*} [options] Override http request option.
|
|
716
|
+
* @throws {RequiredError}
|
|
717
|
+
*/
|
|
718
|
+
async listPtySessions(options) {
|
|
719
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPtySessions(options);
|
|
720
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
721
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.listPtySessions']?.[localVarOperationServerIndex]?.url;
|
|
722
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
723
|
+
},
|
|
724
|
+
/**
|
|
725
|
+
* Get a list of all active shell sessions
|
|
726
|
+
* @summary List all sessions
|
|
727
|
+
* @param {*} [options] Override http request option.
|
|
728
|
+
* @throws {RequiredError}
|
|
729
|
+
*/
|
|
730
|
+
async listSessions(options) {
|
|
731
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSessions(options);
|
|
732
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
733
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.listSessions']?.[localVarOperationServerIndex]?.url;
|
|
734
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
735
|
+
},
|
|
736
|
+
/**
|
|
737
|
+
* Resize the terminal dimensions of a pseudo-terminal session
|
|
738
|
+
* @summary Resize a PTY session
|
|
739
|
+
* @param {string} sessionId PTY session ID
|
|
740
|
+
* @param {PtyResizeRequest} request Resize request with new dimensions
|
|
741
|
+
* @param {*} [options] Override http request option.
|
|
742
|
+
* @throws {RequiredError}
|
|
743
|
+
*/
|
|
744
|
+
async resizePtySession(sessionId, request, options) {
|
|
745
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resizePtySession(sessionId, request, options);
|
|
746
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
747
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.resizePtySession']?.[localVarOperationServerIndex]?.url;
|
|
748
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
749
|
+
},
|
|
750
|
+
/**
|
|
751
|
+
* Send input data to a running command in a session for interactive execution
|
|
752
|
+
* @summary Send input to command
|
|
753
|
+
* @param {string} sessionId Session ID
|
|
754
|
+
* @param {string} commandId Command ID
|
|
755
|
+
* @param {SessionSendInputRequest} request Input send request
|
|
756
|
+
* @param {*} [options] Override http request option.
|
|
757
|
+
* @throws {RequiredError}
|
|
758
|
+
*/
|
|
759
|
+
async sendInput(sessionId, commandId, request, options) {
|
|
760
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendInput(sessionId, commandId, request, options);
|
|
761
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
762
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.sendInput']?.[localVarOperationServerIndex]?.url;
|
|
763
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
764
|
+
},
|
|
765
|
+
/**
|
|
766
|
+
* Execute a command within an existing shell session
|
|
767
|
+
* @summary Execute command in session
|
|
768
|
+
* @param {string} sessionId Session ID
|
|
769
|
+
* @param {SessionExecuteRequest} request Command execution request
|
|
770
|
+
* @param {*} [options] Override http request option.
|
|
771
|
+
* @throws {RequiredError}
|
|
772
|
+
*/
|
|
773
|
+
async sessionExecuteCommand(sessionId, request, options) {
|
|
774
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sessionExecuteCommand(sessionId, request, options);
|
|
775
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
776
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ProcessApi.sessionExecuteCommand']?.[localVarOperationServerIndex]?.url;
|
|
777
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
778
|
+
},
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
exports.ProcessApiFp = ProcessApiFp;
|
|
782
|
+
/**
|
|
783
|
+
* ProcessApi - factory interface
|
|
784
|
+
* @export
|
|
785
|
+
*/
|
|
786
|
+
const ProcessApiFactory = function (configuration, basePath, axios) {
|
|
787
|
+
const localVarFp = (0, exports.ProcessApiFp)(configuration);
|
|
788
|
+
return {
|
|
789
|
+
/**
|
|
790
|
+
* Establish a WebSocket connection to interact with a pseudo-terminal session
|
|
791
|
+
* @summary Connect to PTY session via WebSocket
|
|
792
|
+
* @param {string} sessionId PTY session ID
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
connectPtySession(sessionId, options) {
|
|
797
|
+
return localVarFp.connectPtySession(sessionId, options).then((request) => request(axios, basePath));
|
|
798
|
+
},
|
|
799
|
+
/**
|
|
800
|
+
* Create a new pseudo-terminal session with specified configuration
|
|
801
|
+
* @summary Create a new PTY session
|
|
802
|
+
* @param {PtyCreateRequest} request PTY session creation request
|
|
803
|
+
* @param {*} [options] Override http request option.
|
|
804
|
+
* @throws {RequiredError}
|
|
805
|
+
*/
|
|
806
|
+
createPtySession(request, options) {
|
|
807
|
+
return localVarFp.createPtySession(request, options).then((request) => request(axios, basePath));
|
|
808
|
+
},
|
|
809
|
+
/**
|
|
810
|
+
* Create a new shell session for command execution
|
|
811
|
+
* @summary Create a new session
|
|
812
|
+
* @param {CreateSessionRequest} request Session creation request
|
|
813
|
+
* @param {*} [options] Override http request option.
|
|
814
|
+
* @throws {RequiredError}
|
|
815
|
+
*/
|
|
816
|
+
createSession(request, options) {
|
|
817
|
+
return localVarFp.createSession(request, options).then((request) => request(axios, basePath));
|
|
818
|
+
},
|
|
819
|
+
/**
|
|
820
|
+
* Delete a pseudo-terminal session and terminate its process
|
|
821
|
+
* @summary Delete a PTY session
|
|
822
|
+
* @param {string} sessionId PTY session ID
|
|
823
|
+
* @param {*} [options] Override http request option.
|
|
824
|
+
* @throws {RequiredError}
|
|
825
|
+
*/
|
|
826
|
+
deletePtySession(sessionId, options) {
|
|
827
|
+
return localVarFp.deletePtySession(sessionId, options).then((request) => request(axios, basePath));
|
|
828
|
+
},
|
|
829
|
+
/**
|
|
830
|
+
* Delete an existing shell session
|
|
831
|
+
* @summary Delete a session
|
|
832
|
+
* @param {string} sessionId Session ID
|
|
833
|
+
* @param {*} [options] Override http request option.
|
|
834
|
+
* @throws {RequiredError}
|
|
835
|
+
*/
|
|
836
|
+
deleteSession(sessionId, options) {
|
|
837
|
+
return localVarFp.deleteSession(sessionId, options).then((request) => request(axios, basePath));
|
|
838
|
+
},
|
|
839
|
+
/**
|
|
840
|
+
* Execute a shell command and return the output and exit code
|
|
841
|
+
* @summary Execute a command
|
|
842
|
+
* @param {ExecuteRequest} request Command execution request
|
|
843
|
+
* @param {*} [options] Override http request option.
|
|
844
|
+
* @throws {RequiredError}
|
|
845
|
+
*/
|
|
846
|
+
executeCommand(request, options) {
|
|
847
|
+
return localVarFp.executeCommand(request, options).then((request) => request(axios, basePath));
|
|
848
|
+
},
|
|
849
|
+
/**
|
|
850
|
+
* Get logs for a sandbox entrypoint session. Supports both HTTP and WebSocket streaming.
|
|
851
|
+
* @summary Get entrypoint logs
|
|
852
|
+
* @param {boolean} [follow] Follow logs in real-time (WebSocket only)
|
|
853
|
+
* @param {*} [options] Override http request option.
|
|
854
|
+
* @throws {RequiredError}
|
|
855
|
+
*/
|
|
856
|
+
getEntrypointLogs(follow, options) {
|
|
857
|
+
return localVarFp.getEntrypointLogs(follow, options).then((request) => request(axios, basePath));
|
|
858
|
+
},
|
|
859
|
+
/**
|
|
860
|
+
* Get details of an entrypoint session including its commands
|
|
861
|
+
* @summary Get entrypoint session details
|
|
862
|
+
* @param {*} [options] Override http request option.
|
|
863
|
+
* @throws {RequiredError}
|
|
864
|
+
*/
|
|
865
|
+
getEntrypointSession(options) {
|
|
866
|
+
return localVarFp.getEntrypointSession(options).then((request) => request(axios, basePath));
|
|
867
|
+
},
|
|
868
|
+
/**
|
|
869
|
+
* Get detailed information about a specific pseudo-terminal session
|
|
870
|
+
* @summary Get PTY session information
|
|
871
|
+
* @param {string} sessionId PTY session ID
|
|
872
|
+
* @param {*} [options] Override http request option.
|
|
873
|
+
* @throws {RequiredError}
|
|
874
|
+
*/
|
|
875
|
+
getPtySession(sessionId, options) {
|
|
876
|
+
return localVarFp.getPtySession(sessionId, options).then((request) => request(axios, basePath));
|
|
877
|
+
},
|
|
878
|
+
/**
|
|
879
|
+
* Get details of a specific session including its commands
|
|
880
|
+
* @summary Get session details
|
|
881
|
+
* @param {string} sessionId Session ID
|
|
882
|
+
* @param {*} [options] Override http request option.
|
|
883
|
+
* @throws {RequiredError}
|
|
884
|
+
*/
|
|
885
|
+
getSession(sessionId, options) {
|
|
886
|
+
return localVarFp.getSession(sessionId, options).then((request) => request(axios, basePath));
|
|
887
|
+
},
|
|
888
|
+
/**
|
|
889
|
+
* Get details of a specific command within a session
|
|
890
|
+
* @summary Get session command details
|
|
891
|
+
* @param {string} sessionId Session ID
|
|
892
|
+
* @param {string} commandId Command ID
|
|
893
|
+
* @param {*} [options] Override http request option.
|
|
894
|
+
* @throws {RequiredError}
|
|
895
|
+
*/
|
|
896
|
+
getSessionCommand(sessionId, commandId, options) {
|
|
897
|
+
return localVarFp.getSessionCommand(sessionId, commandId, options).then((request) => request(axios, basePath));
|
|
898
|
+
},
|
|
899
|
+
/**
|
|
900
|
+
* Get logs for a specific command within a session. Supports both HTTP and WebSocket streaming.
|
|
901
|
+
* @summary Get session command logs
|
|
902
|
+
* @param {string} sessionId Session ID
|
|
903
|
+
* @param {string} commandId Command ID
|
|
904
|
+
* @param {boolean} [follow] Follow logs in real-time (WebSocket only)
|
|
905
|
+
* @param {*} [options] Override http request option.
|
|
906
|
+
* @throws {RequiredError}
|
|
907
|
+
*/
|
|
908
|
+
getSessionCommandLogs(sessionId, commandId, follow, options) {
|
|
909
|
+
return localVarFp.getSessionCommandLogs(sessionId, commandId, follow, options).then((request) => request(axios, basePath));
|
|
910
|
+
},
|
|
911
|
+
/**
|
|
912
|
+
* Get a list of all active pseudo-terminal sessions
|
|
913
|
+
* @summary List all PTY sessions
|
|
914
|
+
* @param {*} [options] Override http request option.
|
|
915
|
+
* @throws {RequiredError}
|
|
916
|
+
*/
|
|
917
|
+
listPtySessions(options) {
|
|
918
|
+
return localVarFp.listPtySessions(options).then((request) => request(axios, basePath));
|
|
919
|
+
},
|
|
920
|
+
/**
|
|
921
|
+
* Get a list of all active shell sessions
|
|
922
|
+
* @summary List all sessions
|
|
923
|
+
* @param {*} [options] Override http request option.
|
|
924
|
+
* @throws {RequiredError}
|
|
925
|
+
*/
|
|
926
|
+
listSessions(options) {
|
|
927
|
+
return localVarFp.listSessions(options).then((request) => request(axios, basePath));
|
|
928
|
+
},
|
|
929
|
+
/**
|
|
930
|
+
* Resize the terminal dimensions of a pseudo-terminal session
|
|
931
|
+
* @summary Resize a PTY session
|
|
932
|
+
* @param {string} sessionId PTY session ID
|
|
933
|
+
* @param {PtyResizeRequest} request Resize request with new dimensions
|
|
934
|
+
* @param {*} [options] Override http request option.
|
|
935
|
+
* @throws {RequiredError}
|
|
936
|
+
*/
|
|
937
|
+
resizePtySession(sessionId, request, options) {
|
|
938
|
+
return localVarFp.resizePtySession(sessionId, request, options).then((request) => request(axios, basePath));
|
|
939
|
+
},
|
|
940
|
+
/**
|
|
941
|
+
* Send input data to a running command in a session for interactive execution
|
|
942
|
+
* @summary Send input to command
|
|
943
|
+
* @param {string} sessionId Session ID
|
|
944
|
+
* @param {string} commandId Command ID
|
|
945
|
+
* @param {SessionSendInputRequest} request Input send request
|
|
946
|
+
* @param {*} [options] Override http request option.
|
|
947
|
+
* @throws {RequiredError}
|
|
948
|
+
*/
|
|
949
|
+
sendInput(sessionId, commandId, request, options) {
|
|
950
|
+
return localVarFp.sendInput(sessionId, commandId, request, options).then((request) => request(axios, basePath));
|
|
951
|
+
},
|
|
952
|
+
/**
|
|
953
|
+
* Execute a command within an existing shell session
|
|
954
|
+
* @summary Execute command in session
|
|
955
|
+
* @param {string} sessionId Session ID
|
|
956
|
+
* @param {SessionExecuteRequest} request Command execution request
|
|
957
|
+
* @param {*} [options] Override http request option.
|
|
958
|
+
* @throws {RequiredError}
|
|
959
|
+
*/
|
|
960
|
+
sessionExecuteCommand(sessionId, request, options) {
|
|
961
|
+
return localVarFp.sessionExecuteCommand(sessionId, request, options).then((request) => request(axios, basePath));
|
|
962
|
+
},
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
exports.ProcessApiFactory = ProcessApiFactory;
|
|
966
|
+
/**
|
|
967
|
+
* ProcessApi - object-oriented interface
|
|
968
|
+
* @export
|
|
969
|
+
* @class ProcessApi
|
|
970
|
+
* @extends {BaseAPI}
|
|
971
|
+
*/
|
|
972
|
+
class ProcessApi extends base_1.BaseAPI {
|
|
973
|
+
/**
|
|
974
|
+
* Establish a WebSocket connection to interact with a pseudo-terminal session
|
|
975
|
+
* @summary Connect to PTY session via WebSocket
|
|
976
|
+
* @param {string} sessionId PTY session ID
|
|
977
|
+
* @param {*} [options] Override http request option.
|
|
978
|
+
* @throws {RequiredError}
|
|
979
|
+
* @memberof ProcessApi
|
|
980
|
+
*/
|
|
981
|
+
connectPtySession(sessionId, options) {
|
|
982
|
+
return (0, exports.ProcessApiFp)(this.configuration).connectPtySession(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* Create a new pseudo-terminal session with specified configuration
|
|
986
|
+
* @summary Create a new PTY session
|
|
987
|
+
* @param {PtyCreateRequest} request PTY session creation request
|
|
988
|
+
* @param {*} [options] Override http request option.
|
|
989
|
+
* @throws {RequiredError}
|
|
990
|
+
* @memberof ProcessApi
|
|
991
|
+
*/
|
|
992
|
+
createPtySession(request, options) {
|
|
993
|
+
return (0, exports.ProcessApiFp)(this.configuration).createPtySession(request, options).then((request) => request(this.axios, this.basePath));
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* Create a new shell session for command execution
|
|
997
|
+
* @summary Create a new session
|
|
998
|
+
* @param {CreateSessionRequest} request Session creation request
|
|
999
|
+
* @param {*} [options] Override http request option.
|
|
1000
|
+
* @throws {RequiredError}
|
|
1001
|
+
* @memberof ProcessApi
|
|
1002
|
+
*/
|
|
1003
|
+
createSession(request, options) {
|
|
1004
|
+
return (0, exports.ProcessApiFp)(this.configuration).createSession(request, options).then((request) => request(this.axios, this.basePath));
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* Delete a pseudo-terminal session and terminate its process
|
|
1008
|
+
* @summary Delete a PTY session
|
|
1009
|
+
* @param {string} sessionId PTY session ID
|
|
1010
|
+
* @param {*} [options] Override http request option.
|
|
1011
|
+
* @throws {RequiredError}
|
|
1012
|
+
* @memberof ProcessApi
|
|
1013
|
+
*/
|
|
1014
|
+
deletePtySession(sessionId, options) {
|
|
1015
|
+
return (0, exports.ProcessApiFp)(this.configuration).deletePtySession(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* Delete an existing shell session
|
|
1019
|
+
* @summary Delete a session
|
|
1020
|
+
* @param {string} sessionId Session ID
|
|
1021
|
+
* @param {*} [options] Override http request option.
|
|
1022
|
+
* @throws {RequiredError}
|
|
1023
|
+
* @memberof ProcessApi
|
|
1024
|
+
*/
|
|
1025
|
+
deleteSession(sessionId, options) {
|
|
1026
|
+
return (0, exports.ProcessApiFp)(this.configuration).deleteSession(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* Execute a shell command and return the output and exit code
|
|
1030
|
+
* @summary Execute a command
|
|
1031
|
+
* @param {ExecuteRequest} request Command execution request
|
|
1032
|
+
* @param {*} [options] Override http request option.
|
|
1033
|
+
* @throws {RequiredError}
|
|
1034
|
+
* @memberof ProcessApi
|
|
1035
|
+
*/
|
|
1036
|
+
executeCommand(request, options) {
|
|
1037
|
+
return (0, exports.ProcessApiFp)(this.configuration).executeCommand(request, options).then((request) => request(this.axios, this.basePath));
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
* Get logs for a sandbox entrypoint session. Supports both HTTP and WebSocket streaming.
|
|
1041
|
+
* @summary Get entrypoint logs
|
|
1042
|
+
* @param {boolean} [follow] Follow logs in real-time (WebSocket only)
|
|
1043
|
+
* @param {*} [options] Override http request option.
|
|
1044
|
+
* @throws {RequiredError}
|
|
1045
|
+
* @memberof ProcessApi
|
|
1046
|
+
*/
|
|
1047
|
+
getEntrypointLogs(follow, options) {
|
|
1048
|
+
return (0, exports.ProcessApiFp)(this.configuration).getEntrypointLogs(follow, options).then((request) => request(this.axios, this.basePath));
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* Get details of an entrypoint session including its commands
|
|
1052
|
+
* @summary Get entrypoint session details
|
|
1053
|
+
* @param {*} [options] Override http request option.
|
|
1054
|
+
* @throws {RequiredError}
|
|
1055
|
+
* @memberof ProcessApi
|
|
1056
|
+
*/
|
|
1057
|
+
getEntrypointSession(options) {
|
|
1058
|
+
return (0, exports.ProcessApiFp)(this.configuration).getEntrypointSession(options).then((request) => request(this.axios, this.basePath));
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* Get detailed information about a specific pseudo-terminal session
|
|
1062
|
+
* @summary Get PTY session information
|
|
1063
|
+
* @param {string} sessionId PTY session ID
|
|
1064
|
+
* @param {*} [options] Override http request option.
|
|
1065
|
+
* @throws {RequiredError}
|
|
1066
|
+
* @memberof ProcessApi
|
|
1067
|
+
*/
|
|
1068
|
+
getPtySession(sessionId, options) {
|
|
1069
|
+
return (0, exports.ProcessApiFp)(this.configuration).getPtySession(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* Get details of a specific session including its commands
|
|
1073
|
+
* @summary Get session details
|
|
1074
|
+
* @param {string} sessionId Session ID
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
* @memberof ProcessApi
|
|
1078
|
+
*/
|
|
1079
|
+
getSession(sessionId, options) {
|
|
1080
|
+
return (0, exports.ProcessApiFp)(this.configuration).getSession(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* Get details of a specific command within a session
|
|
1084
|
+
* @summary Get session command details
|
|
1085
|
+
* @param {string} sessionId Session ID
|
|
1086
|
+
* @param {string} commandId Command ID
|
|
1087
|
+
* @param {*} [options] Override http request option.
|
|
1088
|
+
* @throws {RequiredError}
|
|
1089
|
+
* @memberof ProcessApi
|
|
1090
|
+
*/
|
|
1091
|
+
getSessionCommand(sessionId, commandId, options) {
|
|
1092
|
+
return (0, exports.ProcessApiFp)(this.configuration).getSessionCommand(sessionId, commandId, options).then((request) => request(this.axios, this.basePath));
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Get logs for a specific command within a session. Supports both HTTP and WebSocket streaming.
|
|
1096
|
+
* @summary Get session command logs
|
|
1097
|
+
* @param {string} sessionId Session ID
|
|
1098
|
+
* @param {string} commandId Command ID
|
|
1099
|
+
* @param {boolean} [follow] Follow logs in real-time (WebSocket only)
|
|
1100
|
+
* @param {*} [options] Override http request option.
|
|
1101
|
+
* @throws {RequiredError}
|
|
1102
|
+
* @memberof ProcessApi
|
|
1103
|
+
*/
|
|
1104
|
+
getSessionCommandLogs(sessionId, commandId, follow, options) {
|
|
1105
|
+
return (0, exports.ProcessApiFp)(this.configuration).getSessionCommandLogs(sessionId, commandId, follow, options).then((request) => request(this.axios, this.basePath));
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* Get a list of all active pseudo-terminal sessions
|
|
1109
|
+
* @summary List all PTY sessions
|
|
1110
|
+
* @param {*} [options] Override http request option.
|
|
1111
|
+
* @throws {RequiredError}
|
|
1112
|
+
* @memberof ProcessApi
|
|
1113
|
+
*/
|
|
1114
|
+
listPtySessions(options) {
|
|
1115
|
+
return (0, exports.ProcessApiFp)(this.configuration).listPtySessions(options).then((request) => request(this.axios, this.basePath));
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* Get a list of all active shell sessions
|
|
1119
|
+
* @summary List all sessions
|
|
1120
|
+
* @param {*} [options] Override http request option.
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
* @memberof ProcessApi
|
|
1123
|
+
*/
|
|
1124
|
+
listSessions(options) {
|
|
1125
|
+
return (0, exports.ProcessApiFp)(this.configuration).listSessions(options).then((request) => request(this.axios, this.basePath));
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Resize the terminal dimensions of a pseudo-terminal session
|
|
1129
|
+
* @summary Resize a PTY session
|
|
1130
|
+
* @param {string} sessionId PTY session ID
|
|
1131
|
+
* @param {PtyResizeRequest} request Resize request with new dimensions
|
|
1132
|
+
* @param {*} [options] Override http request option.
|
|
1133
|
+
* @throws {RequiredError}
|
|
1134
|
+
* @memberof ProcessApi
|
|
1135
|
+
*/
|
|
1136
|
+
resizePtySession(sessionId, request, options) {
|
|
1137
|
+
return (0, exports.ProcessApiFp)(this.configuration).resizePtySession(sessionId, request, options).then((request) => request(this.axios, this.basePath));
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* Send input data to a running command in a session for interactive execution
|
|
1141
|
+
* @summary Send input to command
|
|
1142
|
+
* @param {string} sessionId Session ID
|
|
1143
|
+
* @param {string} commandId Command ID
|
|
1144
|
+
* @param {SessionSendInputRequest} request Input send request
|
|
1145
|
+
* @param {*} [options] Override http request option.
|
|
1146
|
+
* @throws {RequiredError}
|
|
1147
|
+
* @memberof ProcessApi
|
|
1148
|
+
*/
|
|
1149
|
+
sendInput(sessionId, commandId, request, options) {
|
|
1150
|
+
return (0, exports.ProcessApiFp)(this.configuration).sendInput(sessionId, commandId, request, options).then((request) => request(this.axios, this.basePath));
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* Execute a command within an existing shell session
|
|
1154
|
+
* @summary Execute command in session
|
|
1155
|
+
* @param {string} sessionId Session ID
|
|
1156
|
+
* @param {SessionExecuteRequest} request Command execution request
|
|
1157
|
+
* @param {*} [options] Override http request option.
|
|
1158
|
+
* @throws {RequiredError}
|
|
1159
|
+
* @memberof ProcessApi
|
|
1160
|
+
*/
|
|
1161
|
+
sessionExecuteCommand(sessionId, request, options) {
|
|
1162
|
+
return (0, exports.ProcessApiFp)(this.configuration).sessionExecuteCommand(sessionId, request, options).then((request) => request(this.axios, this.basePath));
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
exports.ProcessApi = ProcessApi;
|
|
1166
|
+
//# sourceMappingURL=process-api.js.map
|