@daytonaio/api-client 0.9.8 → 0.12.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.
Files changed (65) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/api/docker-registry-api.ts +12 -76
  4. package/api/images-api.ts +380 -0
  5. package/api/toolbox-api.ts +169 -0
  6. package/api.ts +1 -0
  7. package/dist/api/docker-registry-api.d.ts +16 -44
  8. package/dist/api/docker-registry-api.js +0 -62
  9. package/dist/api/images-api.d.ts +184 -0
  10. package/dist/api/images-api.js +361 -0
  11. package/dist/api/toolbox-api.d.ts +79 -0
  12. package/dist/api/toolbox-api.js +159 -0
  13. package/dist/api.d.ts +1 -0
  14. package/dist/api.js +1 -0
  15. package/dist/esm/api/docker-registry-api.d.ts +16 -44
  16. package/dist/esm/api/docker-registry-api.js +0 -62
  17. package/dist/esm/api/images-api.d.ts +184 -0
  18. package/dist/esm/api/images-api.js +354 -0
  19. package/dist/esm/api/toolbox-api.d.ts +79 -0
  20. package/dist/esm/api/toolbox-api.js +159 -0
  21. package/dist/esm/api.d.ts +1 -0
  22. package/dist/esm/api.js +1 -0
  23. package/dist/esm/models/command.d.ts +2 -8
  24. package/dist/esm/models/create-docker-registry.d.ts +0 -6
  25. package/dist/esm/models/create-image.d.ts +30 -0
  26. package/dist/esm/models/create-image.js +14 -0
  27. package/dist/esm/models/docker-registry.d.ts +60 -0
  28. package/dist/esm/models/docker-registry.js +14 -0
  29. package/dist/esm/models/image-dto.d.ts +93 -0
  30. package/dist/esm/models/image-dto.js +21 -0
  31. package/dist/esm/models/index.d.ts +5 -0
  32. package/dist/esm/models/index.js +5 -0
  33. package/dist/esm/models/paginated-images-dto.d.ts +43 -0
  34. package/dist/esm/models/paginated-images-dto.js +14 -0
  35. package/dist/esm/models/toggle-state.d.ts +24 -0
  36. package/dist/esm/models/toggle-state.js +14 -0
  37. package/dist/esm/models/update-docker-registry.d.ts +2 -20
  38. package/dist/esm/models/usage-overview.d.ts +24 -0
  39. package/dist/models/command.d.ts +2 -8
  40. package/dist/models/create-docker-registry.d.ts +0 -6
  41. package/dist/models/create-image.d.ts +30 -0
  42. package/dist/models/create-image.js +15 -0
  43. package/dist/models/docker-registry.d.ts +60 -0
  44. package/dist/models/docker-registry.js +15 -0
  45. package/dist/models/image-dto.d.ts +93 -0
  46. package/dist/models/image-dto.js +24 -0
  47. package/dist/models/index.d.ts +5 -0
  48. package/dist/models/index.js +5 -0
  49. package/dist/models/paginated-images-dto.d.ts +43 -0
  50. package/dist/models/paginated-images-dto.js +15 -0
  51. package/dist/models/toggle-state.d.ts +24 -0
  52. package/dist/models/toggle-state.js +15 -0
  53. package/dist/models/update-docker-registry.d.ts +2 -20
  54. package/dist/models/usage-overview.d.ts +24 -0
  55. package/models/command.ts +2 -8
  56. package/models/create-docker-registry.ts +0 -6
  57. package/models/create-image.ts +36 -0
  58. package/models/docker-registry.ts +66 -0
  59. package/models/image-dto.ts +102 -0
  60. package/models/index.ts +5 -0
  61. package/models/paginated-images-dto.ts +51 -0
  62. package/models/toggle-state.ts +30 -0
  63. package/models/update-docker-registry.ts +2 -20
  64. package/models/usage-overview.ts +24 -0
  65. package/package.json +1 -1
@@ -0,0 +1,354 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Daytona Workspaces
5
+ * Daytona Workspaces API Docs
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * ImagesApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const ImagesApiAxiosParamCreator = function (configuration) {
34
+ return {
35
+ /**
36
+ *
37
+ * @summary Create a new image
38
+ * @param {CreateImage} createImage
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ createImage: (createImage_1, ...args_1) => __awaiter(this, [createImage_1, ...args_1], void 0, function* (createImage, options = {}) {
43
+ // verify required parameter 'createImage' is not null or undefined
44
+ assertParamExists('createImage', 'createImage', createImage);
45
+ const localVarPath = `/images`;
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication oauth2 required
56
+ // oauth required
57
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
58
+ localVarHeaderParameter['Content-Type'] = 'application/json';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ localVarRequestOptions.data = serializeDataIfNeeded(createImage, localVarRequestOptions, configuration);
63
+ return {
64
+ url: toPathString(localVarUrlObj),
65
+ options: localVarRequestOptions,
66
+ };
67
+ }),
68
+ /**
69
+ *
70
+ * @summary List all images
71
+ * @param {number} [limit] Number of items per page
72
+ * @param {number} [page] Page number
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ getAllImages: (limit_1, page_1, ...args_1) => __awaiter(this, [limit_1, page_1, ...args_1], void 0, function* (limit, page, options = {}) {
77
+ const localVarPath = `/images`;
78
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
79
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
80
+ let baseOptions;
81
+ if (configuration) {
82
+ baseOptions = configuration.baseOptions;
83
+ }
84
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
85
+ const localVarHeaderParameter = {};
86
+ const localVarQueryParameter = {};
87
+ // authentication oauth2 required
88
+ // oauth required
89
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
90
+ if (limit !== undefined) {
91
+ localVarQueryParameter['limit'] = limit;
92
+ }
93
+ if (page !== undefined) {
94
+ localVarQueryParameter['page'] = page;
95
+ }
96
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
97
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
98
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
99
+ return {
100
+ url: toPathString(localVarUrlObj),
101
+ options: localVarRequestOptions,
102
+ };
103
+ }),
104
+ /**
105
+ *
106
+ * @summary Delete image
107
+ * @param {string} id Image ID
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ removeImage: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
112
+ // verify required parameter 'id' is not null or undefined
113
+ assertParamExists('removeImage', 'id', id);
114
+ const localVarPath = `/images/{id}`
115
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
116
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
117
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
118
+ let baseOptions;
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ }
122
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
123
+ const localVarHeaderParameter = {};
124
+ const localVarQueryParameter = {};
125
+ // authentication oauth2 required
126
+ // oauth required
127
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
131
+ return {
132
+ url: toPathString(localVarUrlObj),
133
+ options: localVarRequestOptions,
134
+ };
135
+ }),
136
+ /**
137
+ *
138
+ * @summary Toggle image state
139
+ * @param {string} id Image ID
140
+ * @param {ToggleState} toggleState
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ toggleImageState: (id_1, toggleState_1, ...args_1) => __awaiter(this, [id_1, toggleState_1, ...args_1], void 0, function* (id, toggleState, options = {}) {
145
+ // verify required parameter 'id' is not null or undefined
146
+ assertParamExists('toggleImageState', 'id', id);
147
+ // verify required parameter 'toggleState' is not null or undefined
148
+ assertParamExists('toggleImageState', 'toggleState', toggleState);
149
+ const localVarPath = `/images/{id}/toggle`
150
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153
+ let baseOptions;
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ }
157
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
158
+ const localVarHeaderParameter = {};
159
+ const localVarQueryParameter = {};
160
+ // authentication oauth2 required
161
+ // oauth required
162
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
163
+ localVarHeaderParameter['Content-Type'] = 'application/json';
164
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
165
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
166
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
167
+ localVarRequestOptions.data = serializeDataIfNeeded(toggleState, localVarRequestOptions, configuration);
168
+ return {
169
+ url: toPathString(localVarUrlObj),
170
+ options: localVarRequestOptions,
171
+ };
172
+ }),
173
+ };
174
+ };
175
+ /**
176
+ * ImagesApi - functional programming interface
177
+ * @export
178
+ */
179
+ export const ImagesApiFp = function (configuration) {
180
+ const localVarAxiosParamCreator = ImagesApiAxiosParamCreator(configuration);
181
+ return {
182
+ /**
183
+ *
184
+ * @summary Create a new image
185
+ * @param {CreateImage} createImage
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ */
189
+ createImage(createImage, options) {
190
+ return __awaiter(this, void 0, void 0, function* () {
191
+ var _a, _b, _c;
192
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createImage(createImage, options);
193
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
194
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ImagesApi.createImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
195
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
196
+ });
197
+ },
198
+ /**
199
+ *
200
+ * @summary List all images
201
+ * @param {number} [limit] Number of items per page
202
+ * @param {number} [page] Page number
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ getAllImages(limit, page, options) {
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ var _a, _b, _c;
209
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllImages(limit, page, options);
210
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
211
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ImagesApi.getAllImages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
212
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
213
+ });
214
+ },
215
+ /**
216
+ *
217
+ * @summary Delete image
218
+ * @param {string} id Image ID
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ removeImage(id, options) {
223
+ return __awaiter(this, void 0, void 0, function* () {
224
+ var _a, _b, _c;
225
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeImage(id, options);
226
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
227
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ImagesApi.removeImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
228
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
229
+ });
230
+ },
231
+ /**
232
+ *
233
+ * @summary Toggle image state
234
+ * @param {string} id Image ID
235
+ * @param {ToggleState} toggleState
236
+ * @param {*} [options] Override http request option.
237
+ * @throws {RequiredError}
238
+ */
239
+ toggleImageState(id, toggleState, options) {
240
+ return __awaiter(this, void 0, void 0, function* () {
241
+ var _a, _b, _c;
242
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleImageState(id, toggleState, options);
243
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
244
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ImagesApi.toggleImageState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
245
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
246
+ });
247
+ },
248
+ };
249
+ };
250
+ /**
251
+ * ImagesApi - factory interface
252
+ * @export
253
+ */
254
+ export const ImagesApiFactory = function (configuration, basePath, axios) {
255
+ const localVarFp = ImagesApiFp(configuration);
256
+ return {
257
+ /**
258
+ *
259
+ * @summary Create a new image
260
+ * @param {CreateImage} createImage
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ createImage(createImage, options) {
265
+ return localVarFp.createImage(createImage, options).then((request) => request(axios, basePath));
266
+ },
267
+ /**
268
+ *
269
+ * @summary List all images
270
+ * @param {number} [limit] Number of items per page
271
+ * @param {number} [page] Page number
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ getAllImages(limit, page, options) {
276
+ return localVarFp.getAllImages(limit, page, options).then((request) => request(axios, basePath));
277
+ },
278
+ /**
279
+ *
280
+ * @summary Delete image
281
+ * @param {string} id Image ID
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ removeImage(id, options) {
286
+ return localVarFp.removeImage(id, options).then((request) => request(axios, basePath));
287
+ },
288
+ /**
289
+ *
290
+ * @summary Toggle image state
291
+ * @param {string} id Image ID
292
+ * @param {ToggleState} toggleState
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ toggleImageState(id, toggleState, options) {
297
+ return localVarFp.toggleImageState(id, toggleState, options).then((request) => request(axios, basePath));
298
+ },
299
+ };
300
+ };
301
+ /**
302
+ * ImagesApi - object-oriented interface
303
+ * @export
304
+ * @class ImagesApi
305
+ * @extends {BaseAPI}
306
+ */
307
+ export class ImagesApi extends BaseAPI {
308
+ /**
309
+ *
310
+ * @summary Create a new image
311
+ * @param {CreateImage} createImage
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ * @memberof ImagesApi
315
+ */
316
+ createImage(createImage, options) {
317
+ return ImagesApiFp(this.configuration).createImage(createImage, options).then((request) => request(this.axios, this.basePath));
318
+ }
319
+ /**
320
+ *
321
+ * @summary List all images
322
+ * @param {number} [limit] Number of items per page
323
+ * @param {number} [page] Page number
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ * @memberof ImagesApi
327
+ */
328
+ getAllImages(limit, page, options) {
329
+ return ImagesApiFp(this.configuration).getAllImages(limit, page, options).then((request) => request(this.axios, this.basePath));
330
+ }
331
+ /**
332
+ *
333
+ * @summary Delete image
334
+ * @param {string} id Image ID
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ * @memberof ImagesApi
338
+ */
339
+ removeImage(id, options) {
340
+ return ImagesApiFp(this.configuration).removeImage(id, options).then((request) => request(this.axios, this.basePath));
341
+ }
342
+ /**
343
+ *
344
+ * @summary Toggle image state
345
+ * @param {string} id Image ID
346
+ * @param {ToggleState} toggleState
347
+ * @param {*} [options] Override http request option.
348
+ * @throws {RequiredError}
349
+ * @memberof ImagesApi
350
+ */
351
+ toggleImageState(id, toggleState, options) {
352
+ return ImagesApiFp(this.configuration).toggleImageState(id, toggleState, options).then((request) => request(this.axios, this.basePath));
353
+ }
354
+ }
@@ -12,6 +12,7 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { Command } from '../models';
15
16
  import type { CompletionList } from '../models';
16
17
  import type { CreateSessionRequest } from '../models';
17
18
  import type { ExecuteRequest } from '../models';
@@ -135,6 +136,25 @@ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration
135
136
  * @throws {RequiredError}
136
137
  */
137
138
  getProjectDir: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
139
+ /**
140
+ * Get session by ID
141
+ * @summary Get session
142
+ * @param {string} workspaceId
143
+ * @param {string} sessionId
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ getSession: (workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
148
+ /**
149
+ * Get session command by ID
150
+ * @summary Get session command
151
+ * @param {string} workspaceId
152
+ * @param {string} sessionId
153
+ * @param {string} commandId
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ getSessionCommand: (workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
138
158
  /**
139
159
  * Get logs for a specific command in a session
140
160
  * @summary Get command logs
@@ -459,6 +479,25 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
459
479
  * @throws {RequiredError}
460
480
  */
461
481
  getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectDirResponse>>;
482
+ /**
483
+ * Get session by ID
484
+ * @summary Get session
485
+ * @param {string} workspaceId
486
+ * @param {string} sessionId
487
+ * @param {*} [options] Override http request option.
488
+ * @throws {RequiredError}
489
+ */
490
+ getSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Session>>;
491
+ /**
492
+ * Get session command by ID
493
+ * @summary Get session command
494
+ * @param {string} workspaceId
495
+ * @param {string} sessionId
496
+ * @param {string} commandId
497
+ * @param {*} [options] Override http request option.
498
+ * @throws {RequiredError}
499
+ */
500
+ getSessionCommand(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Command>>;
462
501
  /**
463
502
  * Get logs for a specific command in a session
464
503
  * @summary Get command logs
@@ -783,6 +822,25 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
783
822
  * @throws {RequiredError}
784
823
  */
785
824
  getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProjectDirResponse>;
825
+ /**
826
+ * Get session by ID
827
+ * @summary Get session
828
+ * @param {string} workspaceId
829
+ * @param {string} sessionId
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ */
833
+ getSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<Session>;
834
+ /**
835
+ * Get session command by ID
836
+ * @summary Get session command
837
+ * @param {string} workspaceId
838
+ * @param {string} sessionId
839
+ * @param {string} commandId
840
+ * @param {*} [options] Override http request option.
841
+ * @throws {RequiredError}
842
+ */
843
+ getSessionCommand(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): AxiosPromise<Command>;
786
844
  /**
787
845
  * Get logs for a specific command in a session
788
846
  * @summary Get command logs
@@ -1119,6 +1177,27 @@ export declare class ToolboxApi extends BaseAPI {
1119
1177
  * @memberof ToolboxApi
1120
1178
  */
1121
1179
  getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectDirResponse, any>>;
1180
+ /**
1181
+ * Get session by ID
1182
+ * @summary Get session
1183
+ * @param {string} workspaceId
1184
+ * @param {string} sessionId
1185
+ * @param {*} [options] Override http request option.
1186
+ * @throws {RequiredError}
1187
+ * @memberof ToolboxApi
1188
+ */
1189
+ getSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Session, any>>;
1190
+ /**
1191
+ * Get session command by ID
1192
+ * @summary Get session command
1193
+ * @param {string} workspaceId
1194
+ * @param {string} sessionId
1195
+ * @param {string} commandId
1196
+ * @param {*} [options] Override http request option.
1197
+ * @throws {RequiredError}
1198
+ * @memberof ToolboxApi
1199
+ */
1200
+ getSessionCommand(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Command, any>>;
1122
1201
  /**
1123
1202
  * Get logs for a specific command in a session
1124
1203
  * @summary Get command logs
@@ -417,6 +417,82 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
417
417
  options: localVarRequestOptions,
418
418
  };
419
419
  }),
420
+ /**
421
+ * Get session by ID
422
+ * @summary Get session
423
+ * @param {string} workspaceId
424
+ * @param {string} sessionId
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ */
428
+ getSession: (workspaceId_1, sessionId_1, ...args_1) => __awaiter(this, [workspaceId_1, sessionId_1, ...args_1], void 0, function* (workspaceId, sessionId, options = {}) {
429
+ // verify required parameter 'workspaceId' is not null or undefined
430
+ assertParamExists('getSession', 'workspaceId', workspaceId);
431
+ // verify required parameter 'sessionId' is not null or undefined
432
+ assertParamExists('getSession', 'sessionId', sessionId);
433
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}`
434
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
435
+ .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
436
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
437
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
438
+ let baseOptions;
439
+ if (configuration) {
440
+ baseOptions = configuration.baseOptions;
441
+ }
442
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
443
+ const localVarHeaderParameter = {};
444
+ const localVarQueryParameter = {};
445
+ // authentication oauth2 required
446
+ // oauth required
447
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
448
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
449
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
450
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
451
+ return {
452
+ url: toPathString(localVarUrlObj),
453
+ options: localVarRequestOptions,
454
+ };
455
+ }),
456
+ /**
457
+ * Get session command by ID
458
+ * @summary Get session command
459
+ * @param {string} workspaceId
460
+ * @param {string} sessionId
461
+ * @param {string} commandId
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ getSessionCommand: (workspaceId_1, sessionId_1, commandId_1, ...args_1) => __awaiter(this, [workspaceId_1, sessionId_1, commandId_1, ...args_1], void 0, function* (workspaceId, sessionId, commandId, options = {}) {
466
+ // verify required parameter 'workspaceId' is not null or undefined
467
+ assertParamExists('getSessionCommand', 'workspaceId', workspaceId);
468
+ // verify required parameter 'sessionId' is not null or undefined
469
+ assertParamExists('getSessionCommand', 'sessionId', sessionId);
470
+ // verify required parameter 'commandId' is not null or undefined
471
+ assertParamExists('getSessionCommand', 'commandId', commandId);
472
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}/command/{commandId}`
473
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
474
+ .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
475
+ .replace(`{${"commandId"}}`, encodeURIComponent(String(commandId)));
476
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
477
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
478
+ let baseOptions;
479
+ if (configuration) {
480
+ baseOptions = configuration.baseOptions;
481
+ }
482
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
483
+ const localVarHeaderParameter = {};
484
+ const localVarQueryParameter = {};
485
+ // authentication oauth2 required
486
+ // oauth required
487
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
488
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
489
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
490
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
491
+ return {
492
+ url: toPathString(localVarUrlObj),
493
+ options: localVarRequestOptions,
494
+ };
495
+ }),
420
496
  /**
421
497
  * Get logs for a specific command in a session
422
498
  * @summary Get command logs
@@ -1547,6 +1623,41 @@ export const ToolboxApiFp = function (configuration) {
1547
1623
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1548
1624
  });
1549
1625
  },
1626
+ /**
1627
+ * Get session by ID
1628
+ * @summary Get session
1629
+ * @param {string} workspaceId
1630
+ * @param {string} sessionId
1631
+ * @param {*} [options] Override http request option.
1632
+ * @throws {RequiredError}
1633
+ */
1634
+ getSession(workspaceId, sessionId, options) {
1635
+ return __awaiter(this, void 0, void 0, function* () {
1636
+ var _a, _b, _c;
1637
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSession(workspaceId, sessionId, options);
1638
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1639
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.getSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1640
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1641
+ });
1642
+ },
1643
+ /**
1644
+ * Get session command by ID
1645
+ * @summary Get session command
1646
+ * @param {string} workspaceId
1647
+ * @param {string} sessionId
1648
+ * @param {string} commandId
1649
+ * @param {*} [options] Override http request option.
1650
+ * @throws {RequiredError}
1651
+ */
1652
+ getSessionCommand(workspaceId, sessionId, commandId, options) {
1653
+ return __awaiter(this, void 0, void 0, function* () {
1654
+ var _a, _b, _c;
1655
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSessionCommand(workspaceId, sessionId, commandId, options);
1656
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1657
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.getSessionCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1658
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1659
+ });
1660
+ },
1550
1661
  /**
1551
1662
  * Get logs for a specific command in a session
1552
1663
  * @summary Get command logs
@@ -2086,6 +2197,29 @@ export const ToolboxApiFactory = function (configuration, basePath, axios) {
2086
2197
  getProjectDir(workspaceId, options) {
2087
2198
  return localVarFp.getProjectDir(workspaceId, options).then((request) => request(axios, basePath));
2088
2199
  },
2200
+ /**
2201
+ * Get session by ID
2202
+ * @summary Get session
2203
+ * @param {string} workspaceId
2204
+ * @param {string} sessionId
2205
+ * @param {*} [options] Override http request option.
2206
+ * @throws {RequiredError}
2207
+ */
2208
+ getSession(workspaceId, sessionId, options) {
2209
+ return localVarFp.getSession(workspaceId, sessionId, options).then((request) => request(axios, basePath));
2210
+ },
2211
+ /**
2212
+ * Get session command by ID
2213
+ * @summary Get session command
2214
+ * @param {string} workspaceId
2215
+ * @param {string} sessionId
2216
+ * @param {string} commandId
2217
+ * @param {*} [options] Override http request option.
2218
+ * @throws {RequiredError}
2219
+ */
2220
+ getSessionCommand(workspaceId, sessionId, commandId, options) {
2221
+ return localVarFp.getSessionCommand(workspaceId, sessionId, commandId, options).then((request) => request(axios, basePath));
2222
+ },
2089
2223
  /**
2090
2224
  * Get logs for a specific command in a session
2091
2225
  * @summary Get command logs
@@ -2491,6 +2625,31 @@ export class ToolboxApi extends BaseAPI {
2491
2625
  getProjectDir(workspaceId, options) {
2492
2626
  return ToolboxApiFp(this.configuration).getProjectDir(workspaceId, options).then((request) => request(this.axios, this.basePath));
2493
2627
  }
2628
+ /**
2629
+ * Get session by ID
2630
+ * @summary Get session
2631
+ * @param {string} workspaceId
2632
+ * @param {string} sessionId
2633
+ * @param {*} [options] Override http request option.
2634
+ * @throws {RequiredError}
2635
+ * @memberof ToolboxApi
2636
+ */
2637
+ getSession(workspaceId, sessionId, options) {
2638
+ return ToolboxApiFp(this.configuration).getSession(workspaceId, sessionId, options).then((request) => request(this.axios, this.basePath));
2639
+ }
2640
+ /**
2641
+ * Get session command by ID
2642
+ * @summary Get session command
2643
+ * @param {string} workspaceId
2644
+ * @param {string} sessionId
2645
+ * @param {string} commandId
2646
+ * @param {*} [options] Override http request option.
2647
+ * @throws {RequiredError}
2648
+ * @memberof ToolboxApi
2649
+ */
2650
+ getSessionCommand(workspaceId, sessionId, commandId, options) {
2651
+ return ToolboxApiFp(this.configuration).getSessionCommand(workspaceId, sessionId, commandId, options).then((request) => request(this.axios, this.basePath));
2652
+ }
2494
2653
  /**
2495
2654
  * Get logs for a specific command in a session
2496
2655
  * @summary Get command logs
package/dist/esm/api.d.ts CHANGED
@@ -11,6 +11,7 @@
11
11
  */
12
12
  export * from './api/api-keys-api';
13
13
  export * from './api/docker-registry-api';
14
+ export * from './api/images-api';
14
15
  export * from './api/nodes-api';
15
16
  export * from './api/toolbox-api';
16
17
  export * from './api/users-api';
package/dist/esm/api.js CHANGED
@@ -13,6 +13,7 @@
13
13
  */
14
14
  export * from './api/api-keys-api';
15
15
  export * from './api/docker-registry-api';
16
+ export * from './api/images-api';
16
17
  export * from './api/nodes-api';
17
18
  export * from './api/toolbox-api';
18
19
  export * from './api/users-api';