@daytonaio/api-client 0.17.0 → 0.18.0-alpha.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.
Files changed (97) hide show
  1. package/.openapi-generator/FILES +4 -1
  2. package/api/volumes-api.ts +584 -0
  3. package/api/workspace-api.ts +9 -13
  4. package/api.ts +1 -0
  5. package/dist/api/api-keys-api.js +57 -40
  6. package/dist/api/docker-registry-api.js +93 -70
  7. package/dist/api/images-api.js +69 -50
  8. package/dist/api/nodes-api.js +45 -30
  9. package/dist/api/organizations-api.js +309 -250
  10. package/dist/api/preview-api.js +41 -26
  11. package/dist/api/toolbox-api.js +441 -360
  12. package/dist/api/users-api.js +53 -36
  13. package/dist/api/volumes-api.d.ts +227 -0
  14. package/dist/api/volumes-api.js +465 -0
  15. package/dist/api/workspace-api.d.ts +8 -9
  16. package/dist/api/workspace-api.js +170 -137
  17. package/dist/api.d.ts +1 -0
  18. package/dist/api.js +1 -0
  19. package/dist/common.js +34 -19
  20. package/dist/esm/api/api-keys-api.js +57 -40
  21. package/dist/esm/api/docker-registry-api.js +93 -70
  22. package/dist/esm/api/images-api.js +69 -50
  23. package/dist/esm/api/nodes-api.js +45 -30
  24. package/dist/esm/api/organizations-api.js +309 -250
  25. package/dist/esm/api/preview-api.js +41 -26
  26. package/dist/esm/api/toolbox-api.js +441 -360
  27. package/dist/esm/api/users-api.js +53 -36
  28. package/dist/esm/api/volumes-api.d.ts +227 -0
  29. package/dist/esm/api/volumes-api.js +458 -0
  30. package/dist/esm/api/workspace-api.d.ts +8 -9
  31. package/dist/esm/api/workspace-api.js +170 -137
  32. package/dist/esm/api.d.ts +1 -0
  33. package/dist/esm/api.js +1 -0
  34. package/dist/esm/common.js +34 -19
  35. package/dist/esm/models/api-key-list.d.ts +3 -0
  36. package/dist/esm/models/api-key-list.js +3 -0
  37. package/dist/esm/models/api-key-response.d.ts +3 -0
  38. package/dist/esm/models/api-key-response.js +3 -0
  39. package/dist/esm/models/create-api-key.d.ts +3 -0
  40. package/dist/esm/models/create-api-key.js +3 -0
  41. package/dist/esm/models/create-organization-role.d.ts +3 -0
  42. package/dist/esm/models/create-organization-role.js +3 -0
  43. package/dist/esm/models/{list-workspaces-labels-parameter.d.ts → create-volume.d.ts} +5 -7
  44. package/dist/esm/models/create-workspace.d.ts +7 -0
  45. package/dist/esm/models/index.d.ts +3 -1
  46. package/dist/esm/models/index.js +3 -1
  47. package/dist/esm/models/organization-role.d.ts +3 -0
  48. package/dist/esm/models/organization-role.js +3 -0
  49. package/dist/esm/models/update-organization-role.d.ts +3 -0
  50. package/dist/esm/models/update-organization-role.js +3 -0
  51. package/dist/esm/models/volume-dto.d.ts +70 -0
  52. package/dist/esm/models/volume-dto.js +22 -0
  53. package/dist/esm/models/volume-mount-dto.d.ts +30 -0
  54. package/dist/esm/models/volume-mount-dto.js +2 -0
  55. package/dist/esm/models/workspace-volume.d.ts +30 -0
  56. package/dist/esm/models/workspace-volume.js +14 -0
  57. package/dist/esm/models/workspace.d.ts +7 -0
  58. package/dist/models/api-key-list.d.ts +3 -0
  59. package/dist/models/api-key-list.js +3 -0
  60. package/dist/models/api-key-response.d.ts +3 -0
  61. package/dist/models/api-key-response.js +3 -0
  62. package/dist/models/create-api-key.d.ts +3 -0
  63. package/dist/models/create-api-key.js +3 -0
  64. package/dist/models/create-organization-role.d.ts +3 -0
  65. package/dist/models/create-organization-role.js +3 -0
  66. package/dist/models/{list-workspaces-labels-parameter.d.ts → create-volume.d.ts} +5 -7
  67. package/dist/models/create-workspace.d.ts +7 -0
  68. package/dist/models/index.d.ts +3 -1
  69. package/dist/models/index.js +3 -1
  70. package/dist/models/organization-role.d.ts +3 -0
  71. package/dist/models/organization-role.js +3 -0
  72. package/dist/models/update-organization-role.d.ts +3 -0
  73. package/dist/models/update-organization-role.js +3 -0
  74. package/dist/models/volume-dto.d.ts +70 -0
  75. package/dist/models/volume-dto.js +25 -0
  76. package/dist/models/volume-mount-dto.d.ts +30 -0
  77. package/dist/models/volume-mount-dto.js +3 -0
  78. package/dist/models/workspace-volume.d.ts +30 -0
  79. package/dist/models/workspace-volume.js +15 -0
  80. package/dist/models/workspace.d.ts +7 -0
  81. package/models/api-key-list.ts +3 -0
  82. package/models/api-key-response.ts +3 -0
  83. package/models/create-api-key.ts +3 -0
  84. package/models/create-organization-role.ts +3 -0
  85. package/models/{list-workspaces-labels-parameter.ts → create-volume.ts} +5 -5
  86. package/models/create-workspace.ts +10 -0
  87. package/models/index.ts +3 -1
  88. package/models/organization-role.ts +3 -0
  89. package/models/update-organization-role.ts +3 -0
  90. package/models/volume-dto.ts +75 -0
  91. package/models/volume-mount-dto.ts +33 -0
  92. package/models/workspace-volume.ts +33 -0
  93. package/models/workspace.ts +9 -0
  94. package/package.json +1 -1
  95. package/tsconfig.json +1 -1
  96. /package/dist/esm/models/{list-workspaces-labels-parameter.js → create-volume.js} +0 -0
  97. /package/dist/models/{list-workspaces-labels-parameter.js → create-volume.js} +0 -0
@@ -12,6 +12,15 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
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
+ };
15
24
  Object.defineProperty(exports, "__esModule", { value: true });
16
25
  exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = void 0;
17
26
  const axios_1 = require("axios");
@@ -33,7 +42,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
33
42
  * @param {*} [options] Override http request option.
34
43
  * @throws {RequiredError}
35
44
  */
36
- createUser: async (createUser, options = {}) => {
45
+ createUser: (createUser_1, ...args_1) => __awaiter(this, [createUser_1, ...args_1], void 0, function* (createUser, options = {}) {
37
46
  // verify required parameter 'createUser' is not null or undefined
38
47
  (0, common_1.assertParamExists)('createUser', 'createUser', createUser);
39
48
  const localVarPath = `/users`;
@@ -48,7 +57,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
48
57
  const localVarQueryParameter = {};
49
58
  // authentication oauth2 required
50
59
  // oauth required
51
- await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
60
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
52
61
  localVarHeaderParameter['Content-Type'] = 'application/json';
53
62
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
54
63
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -58,14 +67,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
58
67
  url: (0, common_1.toPathString)(localVarUrlObj),
59
68
  options: localVarRequestOptions,
60
69
  };
61
- },
70
+ }),
62
71
  /**
63
72
  *
64
73
  * @summary Get authenticated user
65
74
  * @param {*} [options] Override http request option.
66
75
  * @throws {RequiredError}
67
76
  */
68
- getAuthenticatedUser: async (options = {}) => {
77
+ getAuthenticatedUser: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
69
78
  const localVarPath = `/users/me`;
70
79
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
71
80
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -78,7 +87,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
78
87
  const localVarQueryParameter = {};
79
88
  // authentication oauth2 required
80
89
  // oauth required
81
- await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
90
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
82
91
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
83
92
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
93
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -86,14 +95,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
86
95
  url: (0, common_1.toPathString)(localVarUrlObj),
87
96
  options: localVarRequestOptions,
88
97
  };
89
- },
98
+ }),
90
99
  /**
91
100
  *
92
101
  * @summary List all users
93
102
  * @param {*} [options] Override http request option.
94
103
  * @throws {RequiredError}
95
104
  */
96
- listUsers: async (options = {}) => {
105
+ listUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
97
106
  const localVarPath = `/users`;
98
107
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
99
108
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -106,7 +115,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
106
115
  const localVarQueryParameter = {};
107
116
  // authentication oauth2 required
108
117
  // oauth required
109
- await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
118
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
110
119
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
111
120
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
112
121
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -114,7 +123,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
114
123
  url: (0, common_1.toPathString)(localVarUrlObj),
115
124
  options: localVarRequestOptions,
116
125
  };
117
- },
126
+ }),
118
127
  /**
119
128
  *
120
129
  * @summary Regenerate user key pair
@@ -122,7 +131,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
122
131
  * @param {*} [options] Override http request option.
123
132
  * @throws {RequiredError}
124
133
  */
125
- regenerateKeyPair: async (id, options = {}) => {
134
+ regenerateKeyPair: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
126
135
  // verify required parameter 'id' is not null or undefined
127
136
  (0, common_1.assertParamExists)('regenerateKeyPair', 'id', id);
128
137
  const localVarPath = `/users/{id}/regenerate-key-pair`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
@@ -137,7 +146,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
137
146
  const localVarQueryParameter = {};
138
147
  // authentication oauth2 required
139
148
  // oauth required
140
- await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
149
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
141
150
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
142
151
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
143
152
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -145,7 +154,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
145
154
  url: (0, common_1.toPathString)(localVarUrlObj),
146
155
  options: localVarRequestOptions,
147
156
  };
148
- },
157
+ }),
149
158
  };
150
159
  };
151
160
  exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
@@ -163,12 +172,14 @@ const UsersApiFp = function (configuration) {
163
172
  * @param {*} [options] Override http request option.
164
173
  * @throws {RequiredError}
165
174
  */
166
- async createUser(createUser, options) {
167
- var _a, _b, _c;
168
- const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUser, options);
169
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
170
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.createUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
171
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
175
+ createUser(createUser, options) {
176
+ return __awaiter(this, void 0, void 0, function* () {
177
+ var _a, _b, _c;
178
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createUser(createUser, options);
179
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
180
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.createUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
181
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
182
+ });
172
183
  },
173
184
  /**
174
185
  *
@@ -176,12 +187,14 @@ const UsersApiFp = function (configuration) {
176
187
  * @param {*} [options] Override http request option.
177
188
  * @throws {RequiredError}
178
189
  */
179
- async getAuthenticatedUser(options) {
180
- var _a, _b, _c;
181
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthenticatedUser(options);
182
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
183
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getAuthenticatedUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
184
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
190
+ getAuthenticatedUser(options) {
191
+ return __awaiter(this, void 0, void 0, function* () {
192
+ var _a, _b, _c;
193
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAuthenticatedUser(options);
194
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
195
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getAuthenticatedUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
196
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
197
+ });
185
198
  },
186
199
  /**
187
200
  *
@@ -189,12 +202,14 @@ const UsersApiFp = function (configuration) {
189
202
  * @param {*} [options] Override http request option.
190
203
  * @throws {RequiredError}
191
204
  */
192
- async listUsers(options) {
193
- var _a, _b, _c;
194
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(options);
195
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
196
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.listUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
197
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
205
+ listUsers(options) {
206
+ return __awaiter(this, void 0, void 0, function* () {
207
+ var _a, _b, _c;
208
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(options);
209
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
210
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.listUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
211
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
212
+ });
198
213
  },
199
214
  /**
200
215
  *
@@ -203,12 +218,14 @@ const UsersApiFp = function (configuration) {
203
218
  * @param {*} [options] Override http request option.
204
219
  * @throws {RequiredError}
205
220
  */
206
- async regenerateKeyPair(id, options) {
207
- var _a, _b, _c;
208
- const localVarAxiosArgs = await localVarAxiosParamCreator.regenerateKeyPair(id, options);
209
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
210
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.regenerateKeyPair']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
211
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
221
+ regenerateKeyPair(id, options) {
222
+ return __awaiter(this, void 0, void 0, function* () {
223
+ var _a, _b, _c;
224
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.regenerateKeyPair(id, options);
225
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
226
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.regenerateKeyPair']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
227
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
228
+ });
212
229
  },
213
230
  };
214
231
  };
@@ -0,0 +1,227 @@
1
+ /**
2
+ * Daytona Workspaces
3
+ * Daytona Workspaces API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { CreateVolume } from '../models';
16
+ import type { VolumeDto } from '../models';
17
+ /**
18
+ * VolumesApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const VolumesApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ *
24
+ * @summary Create a new volume
25
+ * @param {CreateVolume} createVolume
26
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ createVolume: (createVolume: CreateVolume, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ *
33
+ * @summary Delete volume
34
+ * @param {string} volumeId ID of the volume
35
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ deleteVolume: (volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
40
+ /**
41
+ *
42
+ * @summary Get volume details
43
+ * @param {string} volumeId ID of the volume
44
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ getVolume: (volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
49
+ /**
50
+ *
51
+ * @summary Get volume details by name
52
+ * @param {string} name Name of the volume
53
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ getVolumeByName: (name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
58
+ /**
59
+ *
60
+ * @summary List all volumes
61
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
62
+ * @param {boolean} [includeDeleted] Include deleted volumes in the response
63
+ * @param {*} [options] Override http request option.
64
+ * @throws {RequiredError}
65
+ */
66
+ listVolumes: (xDaytonaOrganizationID?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
67
+ };
68
+ /**
69
+ * VolumesApi - functional programming interface
70
+ * @export
71
+ */
72
+ export declare const VolumesApiFp: (configuration?: Configuration) => {
73
+ /**
74
+ *
75
+ * @summary Create a new volume
76
+ * @param {CreateVolume} createVolume
77
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ */
81
+ createVolume(createVolume: CreateVolume, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VolumeDto>>;
82
+ /**
83
+ *
84
+ * @summary Delete volume
85
+ * @param {string} volumeId ID of the volume
86
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ deleteVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
91
+ /**
92
+ *
93
+ * @summary Get volume details
94
+ * @param {string} volumeId ID of the volume
95
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ getVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VolumeDto>>;
100
+ /**
101
+ *
102
+ * @summary Get volume details by name
103
+ * @param {string} name Name of the volume
104
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ getVolumeByName(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VolumeDto>>;
109
+ /**
110
+ *
111
+ * @summary List all volumes
112
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
113
+ * @param {boolean} [includeDeleted] Include deleted volumes in the response
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ listVolumes(xDaytonaOrganizationID?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VolumeDto>>>;
118
+ };
119
+ /**
120
+ * VolumesApi - factory interface
121
+ * @export
122
+ */
123
+ export declare const VolumesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
124
+ /**
125
+ *
126
+ * @summary Create a new volume
127
+ * @param {CreateVolume} createVolume
128
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
129
+ * @param {*} [options] Override http request option.
130
+ * @throws {RequiredError}
131
+ */
132
+ createVolume(createVolume: CreateVolume, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<VolumeDto>;
133
+ /**
134
+ *
135
+ * @summary Delete volume
136
+ * @param {string} volumeId ID of the volume
137
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ deleteVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
142
+ /**
143
+ *
144
+ * @summary Get volume details
145
+ * @param {string} volumeId ID of the volume
146
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ getVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<VolumeDto>;
151
+ /**
152
+ *
153
+ * @summary Get volume details by name
154
+ * @param {string} name Name of the volume
155
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ getVolumeByName(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<VolumeDto>;
160
+ /**
161
+ *
162
+ * @summary List all volumes
163
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
164
+ * @param {boolean} [includeDeleted] Include deleted volumes in the response
165
+ * @param {*} [options] Override http request option.
166
+ * @throws {RequiredError}
167
+ */
168
+ listVolumes(xDaytonaOrganizationID?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<VolumeDto>>;
169
+ };
170
+ /**
171
+ * VolumesApi - object-oriented interface
172
+ * @export
173
+ * @class VolumesApi
174
+ * @extends {BaseAPI}
175
+ */
176
+ export declare class VolumesApi extends BaseAPI {
177
+ /**
178
+ *
179
+ * @summary Create a new volume
180
+ * @param {CreateVolume} createVolume
181
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
182
+ * @param {*} [options] Override http request option.
183
+ * @throws {RequiredError}
184
+ * @memberof VolumesApi
185
+ */
186
+ createVolume(createVolume: CreateVolume, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VolumeDto, any>>;
187
+ /**
188
+ *
189
+ * @summary Delete volume
190
+ * @param {string} volumeId ID of the volume
191
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ * @memberof VolumesApi
195
+ */
196
+ deleteVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
197
+ /**
198
+ *
199
+ * @summary Get volume details
200
+ * @param {string} volumeId ID of the volume
201
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ * @memberof VolumesApi
205
+ */
206
+ getVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VolumeDto, any>>;
207
+ /**
208
+ *
209
+ * @summary Get volume details by name
210
+ * @param {string} name Name of the volume
211
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
212
+ * @param {*} [options] Override http request option.
213
+ * @throws {RequiredError}
214
+ * @memberof VolumesApi
215
+ */
216
+ getVolumeByName(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VolumeDto, any>>;
217
+ /**
218
+ *
219
+ * @summary List all volumes
220
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
221
+ * @param {boolean} [includeDeleted] Include deleted volumes in the response
222
+ * @param {*} [options] Override http request option.
223
+ * @throws {RequiredError}
224
+ * @memberof VolumesApi
225
+ */
226
+ listVolumes(xDaytonaOrganizationID?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VolumeDto[], any>>;
227
+ }