@daytonaio/api-client 0.17.1 → 0.18.0-alpha.1

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 (111) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/api/images-api.ts +207 -0
  3. package/api/object-storage-api.ts +161 -0
  4. package/api/volumes-api.ts +584 -0
  5. package/api.ts +2 -0
  6. package/dist/api/images-api.d.ts +75 -0
  7. package/dist/api/images-api.js +164 -0
  8. package/dist/api/object-storage-api.d.ts +74 -0
  9. package/dist/api/object-storage-api.js +140 -0
  10. package/dist/api/volumes-api.d.ts +227 -0
  11. package/dist/api/volumes-api.js +465 -0
  12. package/dist/api.d.ts +2 -0
  13. package/dist/api.js +2 -0
  14. package/dist/esm/api/images-api.d.ts +75 -0
  15. package/dist/esm/api/images-api.js +164 -0
  16. package/dist/esm/api/object-storage-api.d.ts +74 -0
  17. package/dist/esm/api/object-storage-api.js +133 -0
  18. package/dist/esm/api/volumes-api.d.ts +227 -0
  19. package/dist/esm/api/volumes-api.js +458 -0
  20. package/dist/esm/api.d.ts +2 -0
  21. package/dist/esm/api.js +2 -0
  22. package/dist/esm/models/api-key-list.d.ts +3 -0
  23. package/dist/esm/models/api-key-list.js +3 -0
  24. package/dist/esm/models/api-key-response.d.ts +3 -0
  25. package/dist/esm/models/api-key-response.js +3 -0
  26. package/dist/esm/models/build-image.d.ts +31 -0
  27. package/dist/esm/models/build-image.js +14 -0
  28. package/dist/esm/models/create-api-key.d.ts +3 -0
  29. package/dist/esm/models/create-api-key.js +3 -0
  30. package/dist/esm/models/create-build-info.d.ts +30 -0
  31. package/dist/esm/models/create-build-info.js +14 -0
  32. package/dist/esm/models/create-organization-role.d.ts +3 -0
  33. package/dist/esm/models/create-organization-role.js +3 -0
  34. package/dist/esm/models/create-user.d.ts +6 -0
  35. package/dist/esm/models/create-volume.d.ts +24 -0
  36. package/dist/esm/models/create-volume.js +14 -0
  37. package/dist/esm/models/create-workspace.d.ts +14 -0
  38. package/dist/esm/models/image-state.d.ts +2 -0
  39. package/dist/esm/models/image-state.js +2 -0
  40. package/dist/esm/models/index.d.ts +6 -0
  41. package/dist/esm/models/index.js +6 -0
  42. package/dist/esm/models/organization-role.d.ts +3 -0
  43. package/dist/esm/models/organization-role.js +3 -0
  44. package/dist/esm/models/storage-access-dto.d.ts +54 -0
  45. package/dist/esm/models/storage-access-dto.js +14 -0
  46. package/dist/esm/models/update-organization-role.d.ts +3 -0
  47. package/dist/esm/models/update-organization-role.js +3 -0
  48. package/dist/esm/models/volume-dto.d.ts +70 -0
  49. package/dist/esm/models/volume-dto.js +22 -0
  50. package/dist/esm/models/volume-mount-dto.d.ts +30 -0
  51. package/dist/esm/models/volume-mount-dto.js +2 -0
  52. package/dist/esm/models/workspace-state.d.ts +2 -0
  53. package/dist/esm/models/workspace-state.js +2 -0
  54. package/dist/esm/models/workspace-volume.d.ts +30 -0
  55. package/dist/esm/models/workspace-volume.js +14 -0
  56. package/dist/esm/models/workspace.d.ts +8 -1
  57. package/dist/models/api-key-list.d.ts +3 -0
  58. package/dist/models/api-key-list.js +3 -0
  59. package/dist/models/api-key-response.d.ts +3 -0
  60. package/dist/models/api-key-response.js +3 -0
  61. package/dist/models/build-image.d.ts +31 -0
  62. package/dist/models/build-image.js +15 -0
  63. package/dist/models/create-api-key.d.ts +3 -0
  64. package/dist/models/create-api-key.js +3 -0
  65. package/dist/models/create-build-info.d.ts +30 -0
  66. package/dist/models/create-build-info.js +15 -0
  67. package/dist/models/create-organization-role.d.ts +3 -0
  68. package/dist/models/create-organization-role.js +3 -0
  69. package/dist/models/create-user.d.ts +6 -0
  70. package/dist/models/create-volume.d.ts +24 -0
  71. package/dist/models/create-volume.js +15 -0
  72. package/dist/models/create-workspace.d.ts +14 -0
  73. package/dist/models/image-state.d.ts +2 -0
  74. package/dist/models/image-state.js +2 -0
  75. package/dist/models/index.d.ts +6 -0
  76. package/dist/models/index.js +6 -0
  77. package/dist/models/organization-role.d.ts +3 -0
  78. package/dist/models/organization-role.js +3 -0
  79. package/dist/models/storage-access-dto.d.ts +54 -0
  80. package/dist/models/storage-access-dto.js +15 -0
  81. package/dist/models/update-organization-role.d.ts +3 -0
  82. package/dist/models/update-organization-role.js +3 -0
  83. package/dist/models/volume-dto.d.ts +70 -0
  84. package/dist/models/volume-dto.js +25 -0
  85. package/dist/models/volume-mount-dto.d.ts +30 -0
  86. package/dist/models/volume-mount-dto.js +3 -0
  87. package/dist/models/workspace-state.d.ts +2 -0
  88. package/dist/models/workspace-state.js +2 -0
  89. package/dist/models/workspace-volume.d.ts +30 -0
  90. package/dist/models/workspace-volume.js +15 -0
  91. package/dist/models/workspace.d.ts +8 -1
  92. package/models/api-key-list.ts +3 -0
  93. package/models/api-key-response.ts +3 -0
  94. package/models/build-image.ts +37 -0
  95. package/models/create-api-key.ts +3 -0
  96. package/models/create-build-info.ts +33 -0
  97. package/models/create-organization-role.ts +3 -0
  98. package/models/create-user.ts +6 -0
  99. package/models/create-volume.ts +27 -0
  100. package/models/create-workspace.ts +19 -0
  101. package/models/image-state.ts +2 -0
  102. package/models/index.ts +6 -0
  103. package/models/organization-role.ts +3 -0
  104. package/models/storage-access-dto.ts +57 -0
  105. package/models/update-organization-role.ts +3 -0
  106. package/models/volume-dto.ts +75 -0
  107. package/models/volume-mount-dto.ts +33 -0
  108. package/models/workspace-state.ts +2 -0
  109. package/models/workspace-volume.ts +33 -0
  110. package/models/workspace.ts +10 -1
  111. package/package.json +1 -1
@@ -0,0 +1,465 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona Workspaces
6
+ * Daytona Workspaces API Docs
7
+ *
8
+ * The version of the OpenAPI document: 1.0
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.VolumesApi = exports.VolumesApiFactory = exports.VolumesApiFp = exports.VolumesApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("../common");
30
+ // @ts-ignore
31
+ const base_1 = require("../base");
32
+ /**
33
+ * VolumesApi - axios parameter creator
34
+ * @export
35
+ */
36
+ const VolumesApiAxiosParamCreator = function (configuration) {
37
+ return {
38
+ /**
39
+ *
40
+ * @summary Create a new volume
41
+ * @param {CreateVolume} createVolume
42
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ createVolume: (createVolume_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [createVolume_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (createVolume, xDaytonaOrganizationID, options = {}) {
47
+ // verify required parameter 'createVolume' is not null or undefined
48
+ (0, common_1.assertParamExists)('createVolume', 'createVolume', createVolume);
49
+ const localVarPath = `/volumes`;
50
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
52
+ let baseOptions;
53
+ if (configuration) {
54
+ baseOptions = configuration.baseOptions;
55
+ }
56
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
57
+ const localVarHeaderParameter = {};
58
+ const localVarQueryParameter = {};
59
+ // authentication oauth2 required
60
+ // oauth required
61
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
62
+ localVarHeaderParameter['Content-Type'] = 'application/json';
63
+ if (xDaytonaOrganizationID != null) {
64
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
65
+ }
66
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
67
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
69
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVolume, localVarRequestOptions, configuration);
70
+ return {
71
+ url: (0, common_1.toPathString)(localVarUrlObj),
72
+ options: localVarRequestOptions,
73
+ };
74
+ }),
75
+ /**
76
+ *
77
+ * @summary Delete volume
78
+ * @param {string} volumeId ID of the volume
79
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ deleteVolume: (volumeId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [volumeId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (volumeId, xDaytonaOrganizationID, options = {}) {
84
+ // verify required parameter 'volumeId' is not null or undefined
85
+ (0, common_1.assertParamExists)('deleteVolume', 'volumeId', volumeId);
86
+ const localVarPath = `/volumes/{volumeId}`.replace(`{${'volumeId'}}`, encodeURIComponent(String(volumeId)));
87
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
88
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
89
+ let baseOptions;
90
+ if (configuration) {
91
+ baseOptions = configuration.baseOptions;
92
+ }
93
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
94
+ const localVarHeaderParameter = {};
95
+ const localVarQueryParameter = {};
96
+ // authentication oauth2 required
97
+ // oauth required
98
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
99
+ if (xDaytonaOrganizationID != null) {
100
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
101
+ }
102
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
103
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
104
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
105
+ return {
106
+ url: (0, common_1.toPathString)(localVarUrlObj),
107
+ options: localVarRequestOptions,
108
+ };
109
+ }),
110
+ /**
111
+ *
112
+ * @summary Get volume details
113
+ * @param {string} volumeId ID of the volume
114
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ getVolume: (volumeId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [volumeId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (volumeId, xDaytonaOrganizationID, options = {}) {
119
+ // verify required parameter 'volumeId' is not null or undefined
120
+ (0, common_1.assertParamExists)('getVolume', 'volumeId', volumeId);
121
+ const localVarPath = `/volumes/{volumeId}`.replace(`{${'volumeId'}}`, encodeURIComponent(String(volumeId)));
122
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
123
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
124
+ let baseOptions;
125
+ if (configuration) {
126
+ baseOptions = configuration.baseOptions;
127
+ }
128
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
129
+ const localVarHeaderParameter = {};
130
+ const localVarQueryParameter = {};
131
+ // authentication oauth2 required
132
+ // oauth required
133
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
134
+ if (xDaytonaOrganizationID != null) {
135
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
136
+ }
137
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
138
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
139
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
140
+ return {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ };
144
+ }),
145
+ /**
146
+ *
147
+ * @summary Get volume details by name
148
+ * @param {string} name Name of the volume
149
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ getVolumeByName: (name_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [name_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (name, xDaytonaOrganizationID, options = {}) {
154
+ // verify required parameter 'name' is not null or undefined
155
+ (0, common_1.assertParamExists)('getVolumeByName', 'name', name);
156
+ const localVarPath = `/volumes/by-name/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)));
157
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
158
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
159
+ let baseOptions;
160
+ if (configuration) {
161
+ baseOptions = configuration.baseOptions;
162
+ }
163
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
164
+ const localVarHeaderParameter = {};
165
+ const localVarQueryParameter = {};
166
+ // authentication oauth2 required
167
+ // oauth required
168
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
169
+ if (xDaytonaOrganizationID != null) {
170
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
171
+ }
172
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
173
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
175
+ return {
176
+ url: (0, common_1.toPathString)(localVarUrlObj),
177
+ options: localVarRequestOptions,
178
+ };
179
+ }),
180
+ /**
181
+ *
182
+ * @summary List all volumes
183
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
184
+ * @param {boolean} [includeDeleted] Include deleted volumes in the response
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ */
188
+ listVolumes: (xDaytonaOrganizationID_1, includeDeleted_1, ...args_1) => __awaiter(this, [xDaytonaOrganizationID_1, includeDeleted_1, ...args_1], void 0, function* (xDaytonaOrganizationID, includeDeleted, options = {}) {
189
+ const localVarPath = `/volumes`;
190
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
191
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
192
+ let baseOptions;
193
+ if (configuration) {
194
+ baseOptions = configuration.baseOptions;
195
+ }
196
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
197
+ const localVarHeaderParameter = {};
198
+ const localVarQueryParameter = {};
199
+ // authentication oauth2 required
200
+ // oauth required
201
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
202
+ if (includeDeleted !== undefined) {
203
+ localVarQueryParameter['includeDeleted'] = includeDeleted;
204
+ }
205
+ if (xDaytonaOrganizationID != null) {
206
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
207
+ }
208
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
209
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
210
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
211
+ return {
212
+ url: (0, common_1.toPathString)(localVarUrlObj),
213
+ options: localVarRequestOptions,
214
+ };
215
+ }),
216
+ };
217
+ };
218
+ exports.VolumesApiAxiosParamCreator = VolumesApiAxiosParamCreator;
219
+ /**
220
+ * VolumesApi - functional programming interface
221
+ * @export
222
+ */
223
+ const VolumesApiFp = function (configuration) {
224
+ const localVarAxiosParamCreator = (0, exports.VolumesApiAxiosParamCreator)(configuration);
225
+ return {
226
+ /**
227
+ *
228
+ * @summary Create a new volume
229
+ * @param {CreateVolume} createVolume
230
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ createVolume(createVolume, xDaytonaOrganizationID, options) {
235
+ return __awaiter(this, void 0, void 0, function* () {
236
+ var _a, _b, _c;
237
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createVolume(createVolume, xDaytonaOrganizationID, options);
238
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
239
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VolumesApi.createVolume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
240
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
241
+ });
242
+ },
243
+ /**
244
+ *
245
+ * @summary Delete volume
246
+ * @param {string} volumeId ID of the volume
247
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ deleteVolume(volumeId, xDaytonaOrganizationID, options) {
252
+ return __awaiter(this, void 0, void 0, function* () {
253
+ var _a, _b, _c;
254
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteVolume(volumeId, xDaytonaOrganizationID, options);
255
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
256
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VolumesApi.deleteVolume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
257
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
258
+ });
259
+ },
260
+ /**
261
+ *
262
+ * @summary Get volume details
263
+ * @param {string} volumeId ID of the volume
264
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ getVolume(volumeId, xDaytonaOrganizationID, options) {
269
+ return __awaiter(this, void 0, void 0, function* () {
270
+ var _a, _b, _c;
271
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getVolume(volumeId, xDaytonaOrganizationID, options);
272
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
273
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VolumesApi.getVolume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
274
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
275
+ });
276
+ },
277
+ /**
278
+ *
279
+ * @summary Get volume details by name
280
+ * @param {string} name Name of the volume
281
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ getVolumeByName(name, xDaytonaOrganizationID, options) {
286
+ return __awaiter(this, void 0, void 0, function* () {
287
+ var _a, _b, _c;
288
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getVolumeByName(name, xDaytonaOrganizationID, options);
289
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
290
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VolumesApi.getVolumeByName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
291
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
292
+ });
293
+ },
294
+ /**
295
+ *
296
+ * @summary List all volumes
297
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
298
+ * @param {boolean} [includeDeleted] Include deleted volumes in the response
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ listVolumes(xDaytonaOrganizationID, includeDeleted, options) {
303
+ return __awaiter(this, void 0, void 0, function* () {
304
+ var _a, _b, _c;
305
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listVolumes(xDaytonaOrganizationID, includeDeleted, options);
306
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
307
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VolumesApi.listVolumes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
308
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
309
+ });
310
+ },
311
+ };
312
+ };
313
+ exports.VolumesApiFp = VolumesApiFp;
314
+ /**
315
+ * VolumesApi - factory interface
316
+ * @export
317
+ */
318
+ const VolumesApiFactory = function (configuration, basePath, axios) {
319
+ const localVarFp = (0, exports.VolumesApiFp)(configuration);
320
+ return {
321
+ /**
322
+ *
323
+ * @summary Create a new volume
324
+ * @param {CreateVolume} createVolume
325
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ createVolume(createVolume, xDaytonaOrganizationID, options) {
330
+ return localVarFp
331
+ .createVolume(createVolume, xDaytonaOrganizationID, options)
332
+ .then((request) => request(axios, basePath));
333
+ },
334
+ /**
335
+ *
336
+ * @summary Delete volume
337
+ * @param {string} volumeId ID of the volume
338
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ */
342
+ deleteVolume(volumeId, xDaytonaOrganizationID, options) {
343
+ return localVarFp
344
+ .deleteVolume(volumeId, xDaytonaOrganizationID, options)
345
+ .then((request) => request(axios, basePath));
346
+ },
347
+ /**
348
+ *
349
+ * @summary Get volume details
350
+ * @param {string} volumeId ID of the volume
351
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ getVolume(volumeId, xDaytonaOrganizationID, options) {
356
+ return localVarFp.getVolume(volumeId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
357
+ },
358
+ /**
359
+ *
360
+ * @summary Get volume details by name
361
+ * @param {string} name Name of the volume
362
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
363
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
365
+ */
366
+ getVolumeByName(name, xDaytonaOrganizationID, options) {
367
+ return localVarFp
368
+ .getVolumeByName(name, xDaytonaOrganizationID, options)
369
+ .then((request) => request(axios, basePath));
370
+ },
371
+ /**
372
+ *
373
+ * @summary List all volumes
374
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
375
+ * @param {boolean} [includeDeleted] Include deleted volumes in the response
376
+ * @param {*} [options] Override http request option.
377
+ * @throws {RequiredError}
378
+ */
379
+ listVolumes(xDaytonaOrganizationID, includeDeleted, options) {
380
+ return localVarFp
381
+ .listVolumes(xDaytonaOrganizationID, includeDeleted, options)
382
+ .then((request) => request(axios, basePath));
383
+ },
384
+ };
385
+ };
386
+ exports.VolumesApiFactory = VolumesApiFactory;
387
+ /**
388
+ * VolumesApi - object-oriented interface
389
+ * @export
390
+ * @class VolumesApi
391
+ * @extends {BaseAPI}
392
+ */
393
+ class VolumesApi extends base_1.BaseAPI {
394
+ /**
395
+ *
396
+ * @summary Create a new volume
397
+ * @param {CreateVolume} createVolume
398
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ * @memberof VolumesApi
402
+ */
403
+ createVolume(createVolume, xDaytonaOrganizationID, options) {
404
+ return (0, exports.VolumesApiFp)(this.configuration)
405
+ .createVolume(createVolume, xDaytonaOrganizationID, options)
406
+ .then((request) => request(this.axios, this.basePath));
407
+ }
408
+ /**
409
+ *
410
+ * @summary Delete volume
411
+ * @param {string} volumeId ID of the volume
412
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
413
+ * @param {*} [options] Override http request option.
414
+ * @throws {RequiredError}
415
+ * @memberof VolumesApi
416
+ */
417
+ deleteVolume(volumeId, xDaytonaOrganizationID, options) {
418
+ return (0, exports.VolumesApiFp)(this.configuration)
419
+ .deleteVolume(volumeId, xDaytonaOrganizationID, options)
420
+ .then((request) => request(this.axios, this.basePath));
421
+ }
422
+ /**
423
+ *
424
+ * @summary Get volume details
425
+ * @param {string} volumeId ID of the volume
426
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
427
+ * @param {*} [options] Override http request option.
428
+ * @throws {RequiredError}
429
+ * @memberof VolumesApi
430
+ */
431
+ getVolume(volumeId, xDaytonaOrganizationID, options) {
432
+ return (0, exports.VolumesApiFp)(this.configuration)
433
+ .getVolume(volumeId, xDaytonaOrganizationID, options)
434
+ .then((request) => request(this.axios, this.basePath));
435
+ }
436
+ /**
437
+ *
438
+ * @summary Get volume details by name
439
+ * @param {string} name Name of the volume
440
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ * @memberof VolumesApi
444
+ */
445
+ getVolumeByName(name, xDaytonaOrganizationID, options) {
446
+ return (0, exports.VolumesApiFp)(this.configuration)
447
+ .getVolumeByName(name, xDaytonaOrganizationID, options)
448
+ .then((request) => request(this.axios, this.basePath));
449
+ }
450
+ /**
451
+ *
452
+ * @summary List all volumes
453
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
454
+ * @param {boolean} [includeDeleted] Include deleted volumes in the response
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ * @memberof VolumesApi
458
+ */
459
+ listVolumes(xDaytonaOrganizationID, includeDeleted, options) {
460
+ return (0, exports.VolumesApiFp)(this.configuration)
461
+ .listVolumes(xDaytonaOrganizationID, includeDeleted, options)
462
+ .then((request) => request(this.axios, this.basePath));
463
+ }
464
+ }
465
+ exports.VolumesApi = VolumesApi;
package/dist/api.d.ts CHANGED
@@ -13,8 +13,10 @@ export * from './api/api-keys-api';
13
13
  export * from './api/docker-registry-api';
14
14
  export * from './api/images-api';
15
15
  export * from './api/nodes-api';
16
+ export * from './api/object-storage-api';
16
17
  export * from './api/organizations-api';
17
18
  export * from './api/preview-api';
18
19
  export * from './api/toolbox-api';
19
20
  export * from './api/users-api';
21
+ export * from './api/volumes-api';
20
22
  export * from './api/workspace-api';
package/dist/api.js CHANGED
@@ -31,8 +31,10 @@ __exportStar(require("./api/api-keys-api"), exports);
31
31
  __exportStar(require("./api/docker-registry-api"), exports);
32
32
  __exportStar(require("./api/images-api"), exports);
33
33
  __exportStar(require("./api/nodes-api"), exports);
34
+ __exportStar(require("./api/object-storage-api"), exports);
34
35
  __exportStar(require("./api/organizations-api"), exports);
35
36
  __exportStar(require("./api/preview-api"), exports);
36
37
  __exportStar(require("./api/toolbox-api"), exports);
37
38
  __exportStar(require("./api/users-api"), exports);
39
+ __exportStar(require("./api/volumes-api"), exports);
38
40
  __exportStar(require("./api/workspace-api"), exports);
@@ -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 { BuildImage } from '../models';
15
16
  import type { CreateImage } from '../models';
16
17
  import type { ImageDto } from '../models';
17
18
  import type { PaginatedImagesDto } from '../models';
@@ -22,6 +23,15 @@ import type { ToggleState } from '../models';
22
23
  * @export
23
24
  */
24
25
  export declare const ImagesApiAxiosParamCreator: (configuration?: Configuration) => {
26
+ /**
27
+ *
28
+ * @summary Build a Docker image
29
+ * @param {BuildImage} buildImage
30
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ buildImage: (buildImage: BuildImage, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25
35
  /**
26
36
  *
27
37
  * @summary Create a new image
@@ -41,6 +51,15 @@ export declare const ImagesApiAxiosParamCreator: (configuration?: Configuration)
41
51
  * @throws {RequiredError}
42
52
  */
43
53
  getAllImages: (xDaytonaOrganizationID?: string, limit?: number, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
54
+ /**
55
+ *
56
+ * @summary Get image by ID
57
+ * @param {string} id Image ID
58
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ getImage: (id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
44
63
  /**
45
64
  *
46
65
  * @summary Delete image
@@ -76,6 +95,15 @@ export declare const ImagesApiAxiosParamCreator: (configuration?: Configuration)
76
95
  * @export
77
96
  */
78
97
  export declare const ImagesApiFp: (configuration?: Configuration) => {
98
+ /**
99
+ *
100
+ * @summary Build a Docker image
101
+ * @param {BuildImage} buildImage
102
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ buildImage(buildImage: BuildImage, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>>;
79
107
  /**
80
108
  *
81
109
  * @summary Create a new image
@@ -95,6 +123,15 @@ export declare const ImagesApiFp: (configuration?: Configuration) => {
95
123
  * @throws {RequiredError}
96
124
  */
97
125
  getAllImages(xDaytonaOrganizationID?: string, limit?: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedImagesDto>>;
126
+ /**
127
+ *
128
+ * @summary Get image by ID
129
+ * @param {string} id Image ID
130
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ getImage(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>>;
98
135
  /**
99
136
  *
100
137
  * @summary Delete image
@@ -130,6 +167,15 @@ export declare const ImagesApiFp: (configuration?: Configuration) => {
130
167
  * @export
131
168
  */
132
169
  export declare const ImagesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
170
+ /**
171
+ *
172
+ * @summary Build a Docker image
173
+ * @param {BuildImage} buildImage
174
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
175
+ * @param {*} [options] Override http request option.
176
+ * @throws {RequiredError}
177
+ */
178
+ buildImage(buildImage: BuildImage, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ImageDto>;
133
179
  /**
134
180
  *
135
181
  * @summary Create a new image
@@ -149,6 +195,15 @@ export declare const ImagesApiFactory: (configuration?: Configuration, basePath?
149
195
  * @throws {RequiredError}
150
196
  */
151
197
  getAllImages(xDaytonaOrganizationID?: string, limit?: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedImagesDto>;
198
+ /**
199
+ *
200
+ * @summary Get image by ID
201
+ * @param {string} id Image ID
202
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ getImage(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ImageDto>;
152
207
  /**
153
208
  *
154
209
  * @summary Delete image
@@ -186,6 +241,16 @@ export declare const ImagesApiFactory: (configuration?: Configuration, basePath?
186
241
  * @extends {BaseAPI}
187
242
  */
188
243
  export declare class ImagesApi extends BaseAPI {
244
+ /**
245
+ *
246
+ * @summary Build a Docker image
247
+ * @param {BuildImage} buildImage
248
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ * @memberof ImagesApi
252
+ */
253
+ buildImage(buildImage: BuildImage, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImageDto, any>>;
189
254
  /**
190
255
  *
191
256
  * @summary Create a new image
@@ -207,6 +272,16 @@ export declare class ImagesApi extends BaseAPI {
207
272
  * @memberof ImagesApi
208
273
  */
209
274
  getAllImages(xDaytonaOrganizationID?: string, limit?: number, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedImagesDto, any>>;
275
+ /**
276
+ *
277
+ * @summary Get image by ID
278
+ * @param {string} id Image ID
279
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ * @memberof ImagesApi
283
+ */
284
+ getImage(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImageDto, any>>;
210
285
  /**
211
286
  *
212
287
  * @summary Delete image