@daytonaio/api-client 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +6 -1
- package/README.md +2 -2
- package/api/toolbox-api.ts +419 -0
- package/api/users-api.ts +68 -0
- package/api/workspace-api.ts +78 -0
- package/api.ts +0 -1
- package/dist/api/toolbox-api.d.ts +193 -0
- package/dist/api/toolbox-api.js +389 -0
- package/dist/api/users-api.d.ts +30 -0
- package/dist/api/users-api.js +62 -0
- package/dist/api/workspace-api.d.ts +33 -0
- package/dist/api/workspace-api.js +73 -0
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/esm/api/toolbox-api.d.ts +193 -0
- package/dist/esm/api/toolbox-api.js +389 -0
- package/dist/esm/api/users-api.d.ts +30 -0
- package/dist/esm/api/users-api.js +62 -0
- package/dist/esm/api/workspace-api.d.ts +33 -0
- package/dist/esm/api/workspace-api.js +73 -0
- package/dist/esm/api.d.ts +0 -1
- package/dist/esm/api.js +0 -1
- package/dist/esm/models/command.d.ts +42 -0
- package/dist/esm/models/command.js +14 -0
- package/dist/esm/models/create-session-request.d.ts +24 -0
- package/dist/esm/models/create-session-request.js +14 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/models/session-execute-request.d.ts +30 -0
- package/dist/esm/models/session-execute-request.js +14 -0
- package/dist/esm/models/session-execute-response.d.ts +36 -0
- package/dist/esm/models/session-execute-response.js +14 -0
- package/dist/esm/models/session.d.ts +31 -0
- package/dist/esm/models/session.js +14 -0
- package/dist/esm/models/usage-overview.d.ts +84 -0
- package/dist/esm/models/usage-overview.js +14 -0
- package/dist/models/command.d.ts +42 -0
- package/dist/models/command.js +15 -0
- package/dist/models/create-session-request.d.ts +24 -0
- package/dist/models/create-session-request.js +15 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/session-execute-request.d.ts +30 -0
- package/dist/models/session-execute-request.js +15 -0
- package/dist/models/session-execute-response.d.ts +36 -0
- package/dist/models/session-execute-response.js +15 -0
- package/dist/models/session.d.ts +31 -0
- package/dist/models/session.js +15 -0
- package/dist/models/usage-overview.d.ts +84 -0
- package/dist/models/usage-overview.js +15 -0
- package/models/command.ts +48 -0
- package/models/create-session-request.ts +30 -0
- package/models/index.ts +6 -0
- package/models/session-execute-request.ts +36 -0
- package/models/session-execute-response.ts +42 -0
- package/models/session.ts +39 -0
- package/models/usage-overview.ts +90 -0
- package/package.json +1 -1
- package/api/app-api.ts +0 -118
- package/dist/api/app-api.d.ts +0 -65
- package/dist/api/app-api.js +0 -124
- package/dist/esm/api/app-api.d.ts +0 -65
- package/dist/esm/api/app-api.js +0 -117
package/.openapi-generator/FILES
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
6
|
api/api-keys-api.ts
|
|
7
|
-
api/app-api.ts
|
|
8
7
|
api/docker-registry-api.ts
|
|
9
8
|
api/nodes-api.ts
|
|
10
9
|
api/toolbox-api.ts
|
|
@@ -17,9 +16,11 @@ git_push.sh
|
|
|
17
16
|
index.ts
|
|
18
17
|
models/api-key-list.ts
|
|
19
18
|
models/api-key-response.ts
|
|
19
|
+
models/command.ts
|
|
20
20
|
models/create-api-key.ts
|
|
21
21
|
models/create-docker-registry.ts
|
|
22
22
|
models/create-node.ts
|
|
23
|
+
models/create-session-request.ts
|
|
23
24
|
models/create-user.ts
|
|
24
25
|
models/create-workspace.ts
|
|
25
26
|
models/execute-request.ts
|
|
@@ -41,7 +42,11 @@ models/project-dir-response.ts
|
|
|
41
42
|
models/replace-request.ts
|
|
42
43
|
models/replace-result.ts
|
|
43
44
|
models/search-files-response.ts
|
|
45
|
+
models/session-execute-request.ts
|
|
46
|
+
models/session-execute-response.ts
|
|
47
|
+
models/session.ts
|
|
44
48
|
models/update-docker-registry.ts
|
|
49
|
+
models/usage-overview.ts
|
|
45
50
|
models/workspace-info.ts
|
|
46
51
|
models/workspace-labels.ts
|
|
47
52
|
models/workspace.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @daytonaio/api-client@0.
|
|
1
|
+
## @daytonaio/api-client@0.8.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @daytonaio/api-client@0.
|
|
39
|
+
npm install @daytonaio/api-client@0.8.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api/toolbox-api.ts
CHANGED
|
@@ -22,6 +22,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
25
|
+
import type { CreateSessionRequest } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
25
27
|
import type { ExecuteRequest } from '../models';
|
|
26
28
|
// @ts-ignore
|
|
27
29
|
import type { ExecuteResponse } from '../models';
|
|
@@ -55,6 +57,12 @@ import type { ReplaceRequest } from '../models';
|
|
|
55
57
|
import type { ReplaceResult } from '../models';
|
|
56
58
|
// @ts-ignore
|
|
57
59
|
import type { SearchFilesResponse } from '../models';
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
import type { Session } from '../models';
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
import type { SessionExecuteRequest } from '../models';
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
import type { SessionExecuteResponse } from '../models';
|
|
58
66
|
/**
|
|
59
67
|
* ToolboxApi - axios parameter creator
|
|
60
68
|
* @export
|
|
@@ -113,6 +121,50 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
113
121
|
options: localVarRequestOptions,
|
|
114
122
|
};
|
|
115
123
|
},
|
|
124
|
+
/**
|
|
125
|
+
* Create a new session in the workspace
|
|
126
|
+
* @summary Create session
|
|
127
|
+
* @param {string} workspaceId
|
|
128
|
+
* @param {CreateSessionRequest} createSessionRequest
|
|
129
|
+
* @param {*} [options] Override http request option.
|
|
130
|
+
* @throws {RequiredError}
|
|
131
|
+
*/
|
|
132
|
+
createSession: async (workspaceId: string, createSessionRequest: CreateSessionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
133
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
134
|
+
assertParamExists('createSession', 'workspaceId', workspaceId)
|
|
135
|
+
// verify required parameter 'createSessionRequest' is not null or undefined
|
|
136
|
+
assertParamExists('createSession', 'createSessionRequest', createSessionRequest)
|
|
137
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session`
|
|
138
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
139
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
140
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
141
|
+
let baseOptions;
|
|
142
|
+
if (configuration) {
|
|
143
|
+
baseOptions = configuration.baseOptions;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
147
|
+
const localVarHeaderParameter = {} as any;
|
|
148
|
+
const localVarQueryParameter = {} as any;
|
|
149
|
+
|
|
150
|
+
// authentication oauth2 required
|
|
151
|
+
// oauth required
|
|
152
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
157
|
+
|
|
158
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
159
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
160
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
161
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSessionRequest, localVarRequestOptions, configuration)
|
|
162
|
+
|
|
163
|
+
return {
|
|
164
|
+
url: toPathString(localVarUrlObj),
|
|
165
|
+
options: localVarRequestOptions,
|
|
166
|
+
};
|
|
167
|
+
},
|
|
116
168
|
/**
|
|
117
169
|
* Delete file inside workspace
|
|
118
170
|
* @summary Delete file
|
|
@@ -149,6 +201,48 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
149
201
|
|
|
150
202
|
|
|
151
203
|
|
|
204
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
205
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
206
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
207
|
+
|
|
208
|
+
return {
|
|
209
|
+
url: toPathString(localVarUrlObj),
|
|
210
|
+
options: localVarRequestOptions,
|
|
211
|
+
};
|
|
212
|
+
},
|
|
213
|
+
/**
|
|
214
|
+
* Delete a specific session
|
|
215
|
+
* @summary Delete session
|
|
216
|
+
* @param {string} workspaceId
|
|
217
|
+
* @param {string} sessionId
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
deleteSession: async (workspaceId: string, sessionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
222
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
223
|
+
assertParamExists('deleteSession', 'workspaceId', workspaceId)
|
|
224
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
225
|
+
assertParamExists('deleteSession', 'sessionId', sessionId)
|
|
226
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}`
|
|
227
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
228
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
229
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
230
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
231
|
+
let baseOptions;
|
|
232
|
+
if (configuration) {
|
|
233
|
+
baseOptions = configuration.baseOptions;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
237
|
+
const localVarHeaderParameter = {} as any;
|
|
238
|
+
const localVarQueryParameter = {} as any;
|
|
239
|
+
|
|
240
|
+
// authentication oauth2 required
|
|
241
|
+
// oauth required
|
|
242
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
152
246
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
153
247
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
154
248
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -247,6 +341,54 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
247
341
|
options: localVarRequestOptions,
|
|
248
342
|
};
|
|
249
343
|
},
|
|
344
|
+
/**
|
|
345
|
+
* Execute a command in a specific session
|
|
346
|
+
* @summary Execute command in session
|
|
347
|
+
* @param {string} workspaceId
|
|
348
|
+
* @param {string} sessionId
|
|
349
|
+
* @param {SessionExecuteRequest} sessionExecuteRequest
|
|
350
|
+
* @param {*} [options] Override http request option.
|
|
351
|
+
* @throws {RequiredError}
|
|
352
|
+
*/
|
|
353
|
+
executeSessionCommand: async (workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
354
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
355
|
+
assertParamExists('executeSessionCommand', 'workspaceId', workspaceId)
|
|
356
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
357
|
+
assertParamExists('executeSessionCommand', 'sessionId', sessionId)
|
|
358
|
+
// verify required parameter 'sessionExecuteRequest' is not null or undefined
|
|
359
|
+
assertParamExists('executeSessionCommand', 'sessionExecuteRequest', sessionExecuteRequest)
|
|
360
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}/exec`
|
|
361
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
362
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
363
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
364
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
365
|
+
let baseOptions;
|
|
366
|
+
if (configuration) {
|
|
367
|
+
baseOptions = configuration.baseOptions;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
371
|
+
const localVarHeaderParameter = {} as any;
|
|
372
|
+
const localVarQueryParameter = {} as any;
|
|
373
|
+
|
|
374
|
+
// authentication oauth2 required
|
|
375
|
+
// oauth required
|
|
376
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
381
|
+
|
|
382
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
383
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
384
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
385
|
+
localVarRequestOptions.data = serializeDataIfNeeded(sessionExecuteRequest, localVarRequestOptions, configuration)
|
|
386
|
+
|
|
387
|
+
return {
|
|
388
|
+
url: toPathString(localVarUrlObj),
|
|
389
|
+
options: localVarRequestOptions,
|
|
390
|
+
};
|
|
391
|
+
},
|
|
250
392
|
/**
|
|
251
393
|
* Search for text/pattern inside workspace files
|
|
252
394
|
* @summary Search for text/pattern in files
|
|
@@ -373,6 +515,52 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
373
515
|
|
|
374
516
|
|
|
375
517
|
|
|
518
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
519
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
520
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
521
|
+
|
|
522
|
+
return {
|
|
523
|
+
url: toPathString(localVarUrlObj),
|
|
524
|
+
options: localVarRequestOptions,
|
|
525
|
+
};
|
|
526
|
+
},
|
|
527
|
+
/**
|
|
528
|
+
* Get logs for a specific command in a session
|
|
529
|
+
* @summary Get command logs
|
|
530
|
+
* @param {string} workspaceId
|
|
531
|
+
* @param {string} sessionId
|
|
532
|
+
* @param {string} commandId
|
|
533
|
+
* @param {*} [options] Override http request option.
|
|
534
|
+
* @throws {RequiredError}
|
|
535
|
+
*/
|
|
536
|
+
getSessionCommandLogs: async (workspaceId: string, sessionId: string, commandId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
537
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
538
|
+
assertParamExists('getSessionCommandLogs', 'workspaceId', workspaceId)
|
|
539
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
540
|
+
assertParamExists('getSessionCommandLogs', 'sessionId', sessionId)
|
|
541
|
+
// verify required parameter 'commandId' is not null or undefined
|
|
542
|
+
assertParamExists('getSessionCommandLogs', 'commandId', commandId)
|
|
543
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}/command/{commandId}/logs`
|
|
544
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
545
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
546
|
+
.replace(`{${"commandId"}}`, encodeURIComponent(String(commandId)));
|
|
547
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
548
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
549
|
+
let baseOptions;
|
|
550
|
+
if (configuration) {
|
|
551
|
+
baseOptions = configuration.baseOptions;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
555
|
+
const localVarHeaderParameter = {} as any;
|
|
556
|
+
const localVarQueryParameter = {} as any;
|
|
557
|
+
|
|
558
|
+
// authentication oauth2 required
|
|
559
|
+
// oauth required
|
|
560
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
376
564
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
377
565
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
378
566
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -815,6 +1003,44 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
815
1003
|
|
|
816
1004
|
|
|
817
1005
|
|
|
1006
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1007
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1008
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1009
|
+
|
|
1010
|
+
return {
|
|
1011
|
+
url: toPathString(localVarUrlObj),
|
|
1012
|
+
options: localVarRequestOptions,
|
|
1013
|
+
};
|
|
1014
|
+
},
|
|
1015
|
+
/**
|
|
1016
|
+
* List all active sessions in the workspace
|
|
1017
|
+
* @summary List sessions
|
|
1018
|
+
* @param {string} workspaceId
|
|
1019
|
+
* @param {*} [options] Override http request option.
|
|
1020
|
+
* @throws {RequiredError}
|
|
1021
|
+
*/
|
|
1022
|
+
listSessions: async (workspaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1023
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
1024
|
+
assertParamExists('listSessions', 'workspaceId', workspaceId)
|
|
1025
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session`
|
|
1026
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1027
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1028
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1029
|
+
let baseOptions;
|
|
1030
|
+
if (configuration) {
|
|
1031
|
+
baseOptions = configuration.baseOptions;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1035
|
+
const localVarHeaderParameter = {} as any;
|
|
1036
|
+
const localVarQueryParameter = {} as any;
|
|
1037
|
+
|
|
1038
|
+
// authentication oauth2 required
|
|
1039
|
+
// oauth required
|
|
1040
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
|
|
818
1044
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
819
1045
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
820
1046
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1111,6 +1337,20 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1111
1337
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.createFolder']?.[localVarOperationServerIndex]?.url;
|
|
1112
1338
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1113
1339
|
},
|
|
1340
|
+
/**
|
|
1341
|
+
* Create a new session in the workspace
|
|
1342
|
+
* @summary Create session
|
|
1343
|
+
* @param {string} workspaceId
|
|
1344
|
+
* @param {CreateSessionRequest} createSessionRequest
|
|
1345
|
+
* @param {*} [options] Override http request option.
|
|
1346
|
+
* @throws {RequiredError}
|
|
1347
|
+
*/
|
|
1348
|
+
async createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Session>> {
|
|
1349
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSession(workspaceId, createSessionRequest, options);
|
|
1350
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1351
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.createSession']?.[localVarOperationServerIndex]?.url;
|
|
1352
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1353
|
+
},
|
|
1114
1354
|
/**
|
|
1115
1355
|
* Delete file inside workspace
|
|
1116
1356
|
* @summary Delete file
|
|
@@ -1125,6 +1365,20 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1125
1365
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.deleteFile']?.[localVarOperationServerIndex]?.url;
|
|
1126
1366
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1127
1367
|
},
|
|
1368
|
+
/**
|
|
1369
|
+
* Delete a specific session
|
|
1370
|
+
* @summary Delete session
|
|
1371
|
+
* @param {string} workspaceId
|
|
1372
|
+
* @param {string} sessionId
|
|
1373
|
+
* @param {*} [options] Override http request option.
|
|
1374
|
+
* @throws {RequiredError}
|
|
1375
|
+
*/
|
|
1376
|
+
async deleteSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1377
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSession(workspaceId, sessionId, options);
|
|
1378
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1379
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.deleteSession']?.[localVarOperationServerIndex]?.url;
|
|
1380
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1381
|
+
},
|
|
1128
1382
|
/**
|
|
1129
1383
|
* Download file from workspace
|
|
1130
1384
|
* @summary Download file
|
|
@@ -1153,6 +1407,21 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1153
1407
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.executeCommand']?.[localVarOperationServerIndex]?.url;
|
|
1154
1408
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1155
1409
|
},
|
|
1410
|
+
/**
|
|
1411
|
+
* Execute a command in a specific session
|
|
1412
|
+
* @summary Execute command in session
|
|
1413
|
+
* @param {string} workspaceId
|
|
1414
|
+
* @param {string} sessionId
|
|
1415
|
+
* @param {SessionExecuteRequest} sessionExecuteRequest
|
|
1416
|
+
* @param {*} [options] Override http request option.
|
|
1417
|
+
* @throws {RequiredError}
|
|
1418
|
+
*/
|
|
1419
|
+
async executeSessionCommand(workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SessionExecuteResponse>> {
|
|
1420
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options);
|
|
1421
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1422
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.executeSessionCommand']?.[localVarOperationServerIndex]?.url;
|
|
1423
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1424
|
+
},
|
|
1156
1425
|
/**
|
|
1157
1426
|
* Search for text/pattern inside workspace files
|
|
1158
1427
|
* @summary Search for text/pattern in files
|
|
@@ -1195,6 +1464,21 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1195
1464
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.getProjectDir']?.[localVarOperationServerIndex]?.url;
|
|
1196
1465
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1197
1466
|
},
|
|
1467
|
+
/**
|
|
1468
|
+
* Get logs for a specific command in a session
|
|
1469
|
+
* @summary Get command logs
|
|
1470
|
+
* @param {string} workspaceId
|
|
1471
|
+
* @param {string} sessionId
|
|
1472
|
+
* @param {string} commandId
|
|
1473
|
+
* @param {*} [options] Override http request option.
|
|
1474
|
+
* @throws {RequiredError}
|
|
1475
|
+
*/
|
|
1476
|
+
async getSessionCommandLogs(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
1477
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionCommandLogs(workspaceId, sessionId, commandId, options);
|
|
1478
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1479
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.getSessionCommandLogs']?.[localVarOperationServerIndex]?.url;
|
|
1480
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1481
|
+
},
|
|
1198
1482
|
/**
|
|
1199
1483
|
* Add files to git commit
|
|
1200
1484
|
* @summary Add files
|
|
@@ -1335,6 +1619,19 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1335
1619
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.listFiles']?.[localVarOperationServerIndex]?.url;
|
|
1336
1620
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1337
1621
|
},
|
|
1622
|
+
/**
|
|
1623
|
+
* List all active sessions in the workspace
|
|
1624
|
+
* @summary List sessions
|
|
1625
|
+
* @param {string} workspaceId
|
|
1626
|
+
* @param {*} [options] Override http request option.
|
|
1627
|
+
* @throws {RequiredError}
|
|
1628
|
+
*/
|
|
1629
|
+
async listSessions(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Session>>> {
|
|
1630
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSessions(workspaceId, options);
|
|
1631
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1632
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.listSessions']?.[localVarOperationServerIndex]?.url;
|
|
1633
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1634
|
+
},
|
|
1338
1635
|
/**
|
|
1339
1636
|
* Move file inside workspace
|
|
1340
1637
|
* @summary Move file
|
|
@@ -1433,6 +1730,17 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1433
1730
|
createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1434
1731
|
return localVarFp.createFolder(workspaceId, path, mode, options).then((request) => request(axios, basePath));
|
|
1435
1732
|
},
|
|
1733
|
+
/**
|
|
1734
|
+
* Create a new session in the workspace
|
|
1735
|
+
* @summary Create session
|
|
1736
|
+
* @param {string} workspaceId
|
|
1737
|
+
* @param {CreateSessionRequest} createSessionRequest
|
|
1738
|
+
* @param {*} [options] Override http request option.
|
|
1739
|
+
* @throws {RequiredError}
|
|
1740
|
+
*/
|
|
1741
|
+
createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<Session> {
|
|
1742
|
+
return localVarFp.createSession(workspaceId, createSessionRequest, options).then((request) => request(axios, basePath));
|
|
1743
|
+
},
|
|
1436
1744
|
/**
|
|
1437
1745
|
* Delete file inside workspace
|
|
1438
1746
|
* @summary Delete file
|
|
@@ -1444,6 +1752,17 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1444
1752
|
deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1445
1753
|
return localVarFp.deleteFile(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1446
1754
|
},
|
|
1755
|
+
/**
|
|
1756
|
+
* Delete a specific session
|
|
1757
|
+
* @summary Delete session
|
|
1758
|
+
* @param {string} workspaceId
|
|
1759
|
+
* @param {string} sessionId
|
|
1760
|
+
* @param {*} [options] Override http request option.
|
|
1761
|
+
* @throws {RequiredError}
|
|
1762
|
+
*/
|
|
1763
|
+
deleteSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1764
|
+
return localVarFp.deleteSession(workspaceId, sessionId, options).then((request) => request(axios, basePath));
|
|
1765
|
+
},
|
|
1447
1766
|
/**
|
|
1448
1767
|
* Download file from workspace
|
|
1449
1768
|
* @summary Download file
|
|
@@ -1466,6 +1785,18 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1466
1785
|
executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExecuteResponse> {
|
|
1467
1786
|
return localVarFp.executeCommand(workspaceId, executeRequest, options).then((request) => request(axios, basePath));
|
|
1468
1787
|
},
|
|
1788
|
+
/**
|
|
1789
|
+
* Execute a command in a specific session
|
|
1790
|
+
* @summary Execute command in session
|
|
1791
|
+
* @param {string} workspaceId
|
|
1792
|
+
* @param {string} sessionId
|
|
1793
|
+
* @param {SessionExecuteRequest} sessionExecuteRequest
|
|
1794
|
+
* @param {*} [options] Override http request option.
|
|
1795
|
+
* @throws {RequiredError}
|
|
1796
|
+
*/
|
|
1797
|
+
executeSessionCommand(workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options?: RawAxiosRequestConfig): AxiosPromise<SessionExecuteResponse> {
|
|
1798
|
+
return localVarFp.executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options).then((request) => request(axios, basePath));
|
|
1799
|
+
},
|
|
1469
1800
|
/**
|
|
1470
1801
|
* Search for text/pattern inside workspace files
|
|
1471
1802
|
* @summary Search for text/pattern in files
|
|
@@ -1499,6 +1830,18 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1499
1830
|
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProjectDirResponse> {
|
|
1500
1831
|
return localVarFp.getProjectDir(workspaceId, options).then((request) => request(axios, basePath));
|
|
1501
1832
|
},
|
|
1833
|
+
/**
|
|
1834
|
+
* Get logs for a specific command in a session
|
|
1835
|
+
* @summary Get command logs
|
|
1836
|
+
* @param {string} workspaceId
|
|
1837
|
+
* @param {string} sessionId
|
|
1838
|
+
* @param {string} commandId
|
|
1839
|
+
* @param {*} [options] Override http request option.
|
|
1840
|
+
* @throws {RequiredError}
|
|
1841
|
+
*/
|
|
1842
|
+
getSessionCommandLogs(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
1843
|
+
return localVarFp.getSessionCommandLogs(workspaceId, sessionId, commandId, options).then((request) => request(axios, basePath));
|
|
1844
|
+
},
|
|
1502
1845
|
/**
|
|
1503
1846
|
* Add files to git commit
|
|
1504
1847
|
* @summary Add files
|
|
@@ -1609,6 +1952,16 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1609
1952
|
listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<FileInfo>> {
|
|
1610
1953
|
return localVarFp.listFiles(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1611
1954
|
},
|
|
1955
|
+
/**
|
|
1956
|
+
* List all active sessions in the workspace
|
|
1957
|
+
* @summary List sessions
|
|
1958
|
+
* @param {string} workspaceId
|
|
1959
|
+
* @param {*} [options] Override http request option.
|
|
1960
|
+
* @throws {RequiredError}
|
|
1961
|
+
*/
|
|
1962
|
+
listSessions(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Session>> {
|
|
1963
|
+
return localVarFp.listSessions(workspaceId, options).then((request) => request(axios, basePath));
|
|
1964
|
+
},
|
|
1612
1965
|
/**
|
|
1613
1966
|
* Move file inside workspace
|
|
1614
1967
|
* @summary Move file
|
|
@@ -1694,6 +2047,19 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1694
2047
|
return ToolboxApiFp(this.configuration).createFolder(workspaceId, path, mode, options).then((request) => request(this.axios, this.basePath));
|
|
1695
2048
|
}
|
|
1696
2049
|
|
|
2050
|
+
/**
|
|
2051
|
+
* Create a new session in the workspace
|
|
2052
|
+
* @summary Create session
|
|
2053
|
+
* @param {string} workspaceId
|
|
2054
|
+
* @param {CreateSessionRequest} createSessionRequest
|
|
2055
|
+
* @param {*} [options] Override http request option.
|
|
2056
|
+
* @throws {RequiredError}
|
|
2057
|
+
* @memberof ToolboxApi
|
|
2058
|
+
*/
|
|
2059
|
+
public createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig) {
|
|
2060
|
+
return ToolboxApiFp(this.configuration).createSession(workspaceId, createSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2061
|
+
}
|
|
2062
|
+
|
|
1697
2063
|
/**
|
|
1698
2064
|
* Delete file inside workspace
|
|
1699
2065
|
* @summary Delete file
|
|
@@ -1707,6 +2073,19 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1707
2073
|
return ToolboxApiFp(this.configuration).deleteFile(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1708
2074
|
}
|
|
1709
2075
|
|
|
2076
|
+
/**
|
|
2077
|
+
* Delete a specific session
|
|
2078
|
+
* @summary Delete session
|
|
2079
|
+
* @param {string} workspaceId
|
|
2080
|
+
* @param {string} sessionId
|
|
2081
|
+
* @param {*} [options] Override http request option.
|
|
2082
|
+
* @throws {RequiredError}
|
|
2083
|
+
* @memberof ToolboxApi
|
|
2084
|
+
*/
|
|
2085
|
+
public deleteSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig) {
|
|
2086
|
+
return ToolboxApiFp(this.configuration).deleteSession(workspaceId, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2087
|
+
}
|
|
2088
|
+
|
|
1710
2089
|
/**
|
|
1711
2090
|
* Download file from workspace
|
|
1712
2091
|
* @summary Download file
|
|
@@ -1733,6 +2112,20 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1733
2112
|
return ToolboxApiFp(this.configuration).executeCommand(workspaceId, executeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1734
2113
|
}
|
|
1735
2114
|
|
|
2115
|
+
/**
|
|
2116
|
+
* Execute a command in a specific session
|
|
2117
|
+
* @summary Execute command in session
|
|
2118
|
+
* @param {string} workspaceId
|
|
2119
|
+
* @param {string} sessionId
|
|
2120
|
+
* @param {SessionExecuteRequest} sessionExecuteRequest
|
|
2121
|
+
* @param {*} [options] Override http request option.
|
|
2122
|
+
* @throws {RequiredError}
|
|
2123
|
+
* @memberof ToolboxApi
|
|
2124
|
+
*/
|
|
2125
|
+
public executeSessionCommand(workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options?: RawAxiosRequestConfig) {
|
|
2126
|
+
return ToolboxApiFp(this.configuration).executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2127
|
+
}
|
|
2128
|
+
|
|
1736
2129
|
/**
|
|
1737
2130
|
* Search for text/pattern inside workspace files
|
|
1738
2131
|
* @summary Search for text/pattern in files
|
|
@@ -1772,6 +2165,20 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1772
2165
|
return ToolboxApiFp(this.configuration).getProjectDir(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
1773
2166
|
}
|
|
1774
2167
|
|
|
2168
|
+
/**
|
|
2169
|
+
* Get logs for a specific command in a session
|
|
2170
|
+
* @summary Get command logs
|
|
2171
|
+
* @param {string} workspaceId
|
|
2172
|
+
* @param {string} sessionId
|
|
2173
|
+
* @param {string} commandId
|
|
2174
|
+
* @param {*} [options] Override http request option.
|
|
2175
|
+
* @throws {RequiredError}
|
|
2176
|
+
* @memberof ToolboxApi
|
|
2177
|
+
*/
|
|
2178
|
+
public getSessionCommandLogs(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig) {
|
|
2179
|
+
return ToolboxApiFp(this.configuration).getSessionCommandLogs(workspaceId, sessionId, commandId, options).then((request) => request(this.axios, this.basePath));
|
|
2180
|
+
}
|
|
2181
|
+
|
|
1775
2182
|
/**
|
|
1776
2183
|
* Add files to git commit
|
|
1777
2184
|
* @summary Add files
|
|
@@ -1902,6 +2309,18 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1902
2309
|
return ToolboxApiFp(this.configuration).listFiles(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1903
2310
|
}
|
|
1904
2311
|
|
|
2312
|
+
/**
|
|
2313
|
+
* List all active sessions in the workspace
|
|
2314
|
+
* @summary List sessions
|
|
2315
|
+
* @param {string} workspaceId
|
|
2316
|
+
* @param {*} [options] Override http request option.
|
|
2317
|
+
* @throws {RequiredError}
|
|
2318
|
+
* @memberof ToolboxApi
|
|
2319
|
+
*/
|
|
2320
|
+
public listSessions(workspaceId: string, options?: RawAxiosRequestConfig) {
|
|
2321
|
+
return ToolboxApiFp(this.configuration).listSessions(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
2322
|
+
}
|
|
2323
|
+
|
|
1905
2324
|
/**
|
|
1906
2325
|
* Move file inside workspace
|
|
1907
2326
|
* @summary Move file
|