@daytonaio/api-client 0.16.0 → 0.17.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.
- package/.openapi-generator/FILES +1 -0
- package/api/api-keys-api.ts +16 -0
- package/api/docker-registry-api.ts +28 -0
- package/api/images-api.ts +20 -0
- package/api/nodes-api.ts +12 -0
- package/api/organizations-api.ts +301 -0
- package/api/preview-api.ts +4 -0
- package/api/toolbox-api.ts +144 -0
- package/api/workspace-api.ts +61 -11
- package/dist/api/api-keys-api.js +65 -36
- package/dist/api/docker-registry-api.js +107 -63
- package/dist/api/images-api.js +79 -45
- package/dist/api/nodes-api.js +51 -27
- package/dist/api/organizations-api.d.ts +71 -0
- package/dist/api/organizations-api.js +485 -207
- package/dist/api/preview-api.js +43 -25
- package/dist/api/toolbox-api.js +513 -324
- package/dist/api/users-api.js +53 -36
- package/dist/api/workspace-api.d.ts +8 -8
- package/dist/api/workspace-api.js +196 -124
- package/dist/common.js +34 -19
- package/dist/esm/api/api-keys-api.js +66 -37
- package/dist/esm/api/docker-registry-api.js +108 -64
- package/dist/esm/api/images-api.js +80 -46
- package/dist/esm/api/nodes-api.js +52 -28
- package/dist/esm/api/organizations-api.d.ts +71 -0
- package/dist/esm/api/organizations-api.js +486 -208
- package/dist/esm/api/preview-api.js +44 -26
- package/dist/esm/api/toolbox-api.js +514 -325
- package/dist/esm/api/users-api.js +53 -36
- package/dist/esm/api/workspace-api.d.ts +8 -8
- package/dist/esm/api/workspace-api.js +197 -125
- package/dist/esm/common.js +34 -19
- package/dist/esm/models/create-image.d.ts +2 -2
- package/dist/esm/models/create-organization.d.ts +0 -66
- package/dist/esm/models/create-workspace.d.ts +0 -12
- package/dist/esm/models/image-dto.d.ts +2 -2
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/organization-suspension.d.ts +30 -0
- package/dist/esm/models/organization-suspension.js +14 -0
- package/dist/esm/models/organization.d.ts +24 -0
- package/dist/esm/models/workspace-info.d.ts +2 -1
- package/dist/esm/models/workspace-state.d.ts +1 -1
- package/dist/esm/models/workspace-state.js +1 -1
- package/dist/esm/models/workspace.d.ts +7 -0
- package/dist/models/create-image.d.ts +2 -2
- package/dist/models/create-organization.d.ts +0 -66
- package/dist/models/create-workspace.d.ts +0 -12
- package/dist/models/image-dto.d.ts +2 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/organization-suspension.d.ts +30 -0
- package/dist/models/organization-suspension.js +15 -0
- package/dist/models/organization.d.ts +24 -0
- package/dist/models/workspace-info.d.ts +2 -1
- package/dist/models/workspace-state.d.ts +1 -1
- package/dist/models/workspace-state.js +1 -1
- package/dist/models/workspace.d.ts +7 -0
- package/models/create-image.ts +2 -2
- package/models/create-organization.ts +0 -66
- package/models/create-workspace.ts +0 -12
- package/models/image-dto.ts +2 -2
- package/models/index.ts +1 -0
- package/models/organization-suspension.ts +33 -0
- package/models/organization.ts +24 -0
- package/models/workspace-info.ts +2 -1
- package/models/workspace-state.ts +1 -1
- package/models/workspace.ts +7 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -1
|
@@ -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.WorkspaceApi = exports.WorkspaceApiFactory = exports.WorkspaceApiFp = exports.WorkspaceApiAxiosParamCreator = void 0;
|
|
17
26
|
const axios_1 = require("axios");
|
|
@@ -34,7 +43,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
34
43
|
* @param {*} [options] Override http request option.
|
|
35
44
|
* @throws {RequiredError}
|
|
36
45
|
*/
|
|
37
|
-
archiveWorkspace:
|
|
46
|
+
archiveWorkspace: (workspaceId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, xDaytonaOrganizationID, options = {}) {
|
|
38
47
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
39
48
|
(0, common_1.assertParamExists)('archiveWorkspace', 'workspaceId', workspaceId);
|
|
40
49
|
const localVarPath = `/workspace/{workspaceId}/archive`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -47,9 +56,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
47
56
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
48
57
|
const localVarHeaderParameter = {};
|
|
49
58
|
const localVarQueryParameter = {};
|
|
59
|
+
// authentication bearer required
|
|
60
|
+
// http bearer authentication required
|
|
61
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
50
62
|
// authentication oauth2 required
|
|
51
63
|
// oauth required
|
|
52
|
-
|
|
64
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
53
65
|
if (xDaytonaOrganizationID != null) {
|
|
54
66
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
55
67
|
}
|
|
@@ -60,7 +72,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
60
72
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
61
73
|
options: localVarRequestOptions,
|
|
62
74
|
};
|
|
63
|
-
},
|
|
75
|
+
}),
|
|
64
76
|
/**
|
|
65
77
|
*
|
|
66
78
|
* @summary Create workspace snapshot
|
|
@@ -69,7 +81,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
69
81
|
* @param {*} [options] Override http request option.
|
|
70
82
|
* @throws {RequiredError}
|
|
71
83
|
*/
|
|
72
|
-
createSnapshot:
|
|
84
|
+
createSnapshot: (workspaceId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, xDaytonaOrganizationID, options = {}) {
|
|
73
85
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
74
86
|
(0, common_1.assertParamExists)('createSnapshot', 'workspaceId', workspaceId);
|
|
75
87
|
const localVarPath = `/workspace/{workspaceId}/snapshot`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -82,9 +94,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
82
94
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
83
95
|
const localVarHeaderParameter = {};
|
|
84
96
|
const localVarQueryParameter = {};
|
|
97
|
+
// authentication bearer required
|
|
98
|
+
// http bearer authentication required
|
|
99
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
85
100
|
// authentication oauth2 required
|
|
86
101
|
// oauth required
|
|
87
|
-
|
|
102
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
88
103
|
if (xDaytonaOrganizationID != null) {
|
|
89
104
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
90
105
|
}
|
|
@@ -95,7 +110,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
95
110
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
96
111
|
options: localVarRequestOptions,
|
|
97
112
|
};
|
|
98
|
-
},
|
|
113
|
+
}),
|
|
99
114
|
/**
|
|
100
115
|
*
|
|
101
116
|
* @summary Create a new workspace
|
|
@@ -104,7 +119,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
104
119
|
* @param {*} [options] Override http request option.
|
|
105
120
|
* @throws {RequiredError}
|
|
106
121
|
*/
|
|
107
|
-
createWorkspace:
|
|
122
|
+
createWorkspace: (createWorkspace_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [createWorkspace_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (createWorkspace, xDaytonaOrganizationID, options = {}) {
|
|
108
123
|
// verify required parameter 'createWorkspace' is not null or undefined
|
|
109
124
|
(0, common_1.assertParamExists)('createWorkspace', 'createWorkspace', createWorkspace);
|
|
110
125
|
const localVarPath = `/workspace`;
|
|
@@ -117,9 +132,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
117
132
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
118
133
|
const localVarHeaderParameter = {};
|
|
119
134
|
const localVarQueryParameter = {};
|
|
135
|
+
// authentication bearer required
|
|
136
|
+
// http bearer authentication required
|
|
137
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
120
138
|
// authentication oauth2 required
|
|
121
139
|
// oauth required
|
|
122
|
-
|
|
140
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
123
141
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
124
142
|
if (xDaytonaOrganizationID != null) {
|
|
125
143
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
@@ -132,7 +150,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
132
150
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
133
151
|
options: localVarRequestOptions,
|
|
134
152
|
};
|
|
135
|
-
},
|
|
153
|
+
}),
|
|
136
154
|
/**
|
|
137
155
|
*
|
|
138
156
|
* @summary Delete workspace
|
|
@@ -142,7 +160,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
142
160
|
* @param {*} [options] Override http request option.
|
|
143
161
|
* @throws {RequiredError}
|
|
144
162
|
*/
|
|
145
|
-
deleteWorkspace:
|
|
163
|
+
deleteWorkspace: (workspaceId_1, force_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, force_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, force, xDaytonaOrganizationID, options = {}) {
|
|
146
164
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
147
165
|
(0, common_1.assertParamExists)('deleteWorkspace', 'workspaceId', workspaceId);
|
|
148
166
|
// verify required parameter 'force' is not null or undefined
|
|
@@ -157,9 +175,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
157
175
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
158
176
|
const localVarHeaderParameter = {};
|
|
159
177
|
const localVarQueryParameter = {};
|
|
178
|
+
// authentication bearer required
|
|
179
|
+
// http bearer authentication required
|
|
180
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
160
181
|
// authentication oauth2 required
|
|
161
182
|
// oauth required
|
|
162
|
-
|
|
183
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
163
184
|
if (force !== undefined) {
|
|
164
185
|
localVarQueryParameter['force'] = force;
|
|
165
186
|
}
|
|
@@ -173,7 +194,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
173
194
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
174
195
|
options: localVarRequestOptions,
|
|
175
196
|
};
|
|
176
|
-
},
|
|
197
|
+
}),
|
|
177
198
|
/**
|
|
178
199
|
*
|
|
179
200
|
* @summary Get preview URL for a workspace port
|
|
@@ -183,7 +204,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
183
204
|
* @param {*} [options] Override http request option.
|
|
184
205
|
* @throws {RequiredError}
|
|
185
206
|
*/
|
|
186
|
-
getPortPreviewUrl:
|
|
207
|
+
getPortPreviewUrl: (workspaceId_1, port_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, port_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, port, xDaytonaOrganizationID, options = {}) {
|
|
187
208
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
188
209
|
(0, common_1.assertParamExists)('getPortPreviewUrl', 'workspaceId', workspaceId);
|
|
189
210
|
// verify required parameter 'port' is not null or undefined
|
|
@@ -200,9 +221,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
200
221
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
201
222
|
const localVarHeaderParameter = {};
|
|
202
223
|
const localVarQueryParameter = {};
|
|
224
|
+
// authentication bearer required
|
|
225
|
+
// http bearer authentication required
|
|
226
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
203
227
|
// authentication oauth2 required
|
|
204
228
|
// oauth required
|
|
205
|
-
|
|
229
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
206
230
|
if (xDaytonaOrganizationID != null) {
|
|
207
231
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
208
232
|
}
|
|
@@ -213,7 +237,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
213
237
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
214
238
|
options: localVarRequestOptions,
|
|
215
239
|
};
|
|
216
|
-
},
|
|
240
|
+
}),
|
|
217
241
|
/**
|
|
218
242
|
*
|
|
219
243
|
* @summary Get workspace details
|
|
@@ -223,7 +247,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
223
247
|
* @param {*} [options] Override http request option.
|
|
224
248
|
* @throws {RequiredError}
|
|
225
249
|
*/
|
|
226
|
-
getWorkspace:
|
|
250
|
+
getWorkspace: (workspaceId_1, xDaytonaOrganizationID_1, verbose_1, ...args_1) => __awaiter(this, [workspaceId_1, xDaytonaOrganizationID_1, verbose_1, ...args_1], void 0, function* (workspaceId, xDaytonaOrganizationID, verbose, options = {}) {
|
|
227
251
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
228
252
|
(0, common_1.assertParamExists)('getWorkspace', 'workspaceId', workspaceId);
|
|
229
253
|
const localVarPath = `/workspace/{workspaceId}`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -236,9 +260,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
236
260
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
237
261
|
const localVarHeaderParameter = {};
|
|
238
262
|
const localVarQueryParameter = {};
|
|
263
|
+
// authentication bearer required
|
|
264
|
+
// http bearer authentication required
|
|
265
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
239
266
|
// authentication oauth2 required
|
|
240
267
|
// oauth required
|
|
241
|
-
|
|
268
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
242
269
|
if (verbose !== undefined) {
|
|
243
270
|
localVarQueryParameter['verbose'] = verbose;
|
|
244
271
|
}
|
|
@@ -252,17 +279,17 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
252
279
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
253
280
|
options: localVarRequestOptions,
|
|
254
281
|
};
|
|
255
|
-
},
|
|
282
|
+
}),
|
|
256
283
|
/**
|
|
257
284
|
*
|
|
258
285
|
* @summary List all workspaces
|
|
259
286
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
260
287
|
* @param {boolean} [verbose] Include verbose output
|
|
261
|
-
* @param {
|
|
288
|
+
* @param {string} [labels] JSON encoded labels to filter by
|
|
262
289
|
* @param {*} [options] Override http request option.
|
|
263
290
|
* @throws {RequiredError}
|
|
264
291
|
*/
|
|
265
|
-
listWorkspaces:
|
|
292
|
+
listWorkspaces: (xDaytonaOrganizationID_1, verbose_1, labels_1, ...args_1) => __awaiter(this, [xDaytonaOrganizationID_1, verbose_1, labels_1, ...args_1], void 0, function* (xDaytonaOrganizationID, verbose, labels, options = {}) {
|
|
266
293
|
const localVarPath = `/workspace`;
|
|
267
294
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
268
295
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -273,16 +300,17 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
273
300
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
274
301
|
const localVarHeaderParameter = {};
|
|
275
302
|
const localVarQueryParameter = {};
|
|
303
|
+
// authentication bearer required
|
|
304
|
+
// http bearer authentication required
|
|
305
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
276
306
|
// authentication oauth2 required
|
|
277
307
|
// oauth required
|
|
278
|
-
|
|
308
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
279
309
|
if (verbose !== undefined) {
|
|
280
310
|
localVarQueryParameter['verbose'] = verbose;
|
|
281
311
|
}
|
|
282
312
|
if (labels !== undefined) {
|
|
283
|
-
|
|
284
|
-
localVarQueryParameter[key] = value;
|
|
285
|
-
}
|
|
313
|
+
localVarQueryParameter['labels'] = labels;
|
|
286
314
|
}
|
|
287
315
|
if (xDaytonaOrganizationID != null) {
|
|
288
316
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
@@ -294,7 +322,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
294
322
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
295
323
|
options: localVarRequestOptions,
|
|
296
324
|
};
|
|
297
|
-
},
|
|
325
|
+
}),
|
|
298
326
|
/**
|
|
299
327
|
*
|
|
300
328
|
* @summary Replace workspace labels
|
|
@@ -304,7 +332,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
304
332
|
* @param {*} [options] Override http request option.
|
|
305
333
|
* @throws {RequiredError}
|
|
306
334
|
*/
|
|
307
|
-
replaceLabels:
|
|
335
|
+
replaceLabels: (workspaceId_1, workspaceLabels_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, workspaceLabels_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, workspaceLabels, xDaytonaOrganizationID, options = {}) {
|
|
308
336
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
309
337
|
(0, common_1.assertParamExists)('replaceLabels', 'workspaceId', workspaceId);
|
|
310
338
|
// verify required parameter 'workspaceLabels' is not null or undefined
|
|
@@ -319,9 +347,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
319
347
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
320
348
|
const localVarHeaderParameter = {};
|
|
321
349
|
const localVarQueryParameter = {};
|
|
350
|
+
// authentication bearer required
|
|
351
|
+
// http bearer authentication required
|
|
352
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
322
353
|
// authentication oauth2 required
|
|
323
354
|
// oauth required
|
|
324
|
-
|
|
355
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
325
356
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
326
357
|
if (xDaytonaOrganizationID != null) {
|
|
327
358
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
@@ -334,7 +365,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
334
365
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
335
366
|
options: localVarRequestOptions,
|
|
336
367
|
};
|
|
337
|
-
},
|
|
368
|
+
}),
|
|
338
369
|
/**
|
|
339
370
|
*
|
|
340
371
|
* @summary Resize workspace
|
|
@@ -344,7 +375,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
344
375
|
* @param {*} [options] Override http request option.
|
|
345
376
|
* @throws {RequiredError}
|
|
346
377
|
*/
|
|
347
|
-
resizeWorkspace:
|
|
378
|
+
resizeWorkspace: (workspaceId_1, body_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, body_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, body, xDaytonaOrganizationID, options = {}) {
|
|
348
379
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
349
380
|
(0, common_1.assertParamExists)('resizeWorkspace', 'workspaceId', workspaceId);
|
|
350
381
|
// verify required parameter 'body' is not null or undefined
|
|
@@ -359,9 +390,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
359
390
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
360
391
|
const localVarHeaderParameter = {};
|
|
361
392
|
const localVarQueryParameter = {};
|
|
393
|
+
// authentication bearer required
|
|
394
|
+
// http bearer authentication required
|
|
395
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
362
396
|
// authentication oauth2 required
|
|
363
397
|
// oauth required
|
|
364
|
-
|
|
398
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
365
399
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
366
400
|
if (xDaytonaOrganizationID != null) {
|
|
367
401
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
@@ -374,7 +408,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
374
408
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
375
409
|
options: localVarRequestOptions,
|
|
376
410
|
};
|
|
377
|
-
},
|
|
411
|
+
}),
|
|
378
412
|
/**
|
|
379
413
|
*
|
|
380
414
|
* @summary Set workspace auto-stop interval
|
|
@@ -384,7 +418,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
384
418
|
* @param {*} [options] Override http request option.
|
|
385
419
|
* @throws {RequiredError}
|
|
386
420
|
*/
|
|
387
|
-
setAutostopInterval:
|
|
421
|
+
setAutostopInterval: (workspaceId_1, interval_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, interval_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, interval, xDaytonaOrganizationID, options = {}) {
|
|
388
422
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
389
423
|
(0, common_1.assertParamExists)('setAutostopInterval', 'workspaceId', workspaceId);
|
|
390
424
|
// verify required parameter 'interval' is not null or undefined
|
|
@@ -401,9 +435,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
401
435
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
402
436
|
const localVarHeaderParameter = {};
|
|
403
437
|
const localVarQueryParameter = {};
|
|
438
|
+
// authentication bearer required
|
|
439
|
+
// http bearer authentication required
|
|
440
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
404
441
|
// authentication oauth2 required
|
|
405
442
|
// oauth required
|
|
406
|
-
|
|
443
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
407
444
|
if (xDaytonaOrganizationID != null) {
|
|
408
445
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
409
446
|
}
|
|
@@ -414,7 +451,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
414
451
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
415
452
|
options: localVarRequestOptions,
|
|
416
453
|
};
|
|
417
|
-
},
|
|
454
|
+
}),
|
|
418
455
|
/**
|
|
419
456
|
*
|
|
420
457
|
* @summary Start workspace
|
|
@@ -423,7 +460,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
423
460
|
* @param {*} [options] Override http request option.
|
|
424
461
|
* @throws {RequiredError}
|
|
425
462
|
*/
|
|
426
|
-
startWorkspace:
|
|
463
|
+
startWorkspace: (workspaceId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, xDaytonaOrganizationID, options = {}) {
|
|
427
464
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
428
465
|
(0, common_1.assertParamExists)('startWorkspace', 'workspaceId', workspaceId);
|
|
429
466
|
const localVarPath = `/workspace/{workspaceId}/start`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -436,9 +473,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
436
473
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
437
474
|
const localVarHeaderParameter = {};
|
|
438
475
|
const localVarQueryParameter = {};
|
|
476
|
+
// authentication bearer required
|
|
477
|
+
// http bearer authentication required
|
|
478
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
439
479
|
// authentication oauth2 required
|
|
440
480
|
// oauth required
|
|
441
|
-
|
|
481
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
442
482
|
if (xDaytonaOrganizationID != null) {
|
|
443
483
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
444
484
|
}
|
|
@@ -449,7 +489,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
449
489
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
450
490
|
options: localVarRequestOptions,
|
|
451
491
|
};
|
|
452
|
-
},
|
|
492
|
+
}),
|
|
453
493
|
/**
|
|
454
494
|
*
|
|
455
495
|
* @summary Stop workspace
|
|
@@ -458,7 +498,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
458
498
|
* @param {*} [options] Override http request option.
|
|
459
499
|
* @throws {RequiredError}
|
|
460
500
|
*/
|
|
461
|
-
stopWorkspace:
|
|
501
|
+
stopWorkspace: (workspaceId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, xDaytonaOrganizationID, options = {}) {
|
|
462
502
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
463
503
|
(0, common_1.assertParamExists)('stopWorkspace', 'workspaceId', workspaceId);
|
|
464
504
|
const localVarPath = `/workspace/{workspaceId}/stop`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -471,9 +511,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
471
511
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
472
512
|
const localVarHeaderParameter = {};
|
|
473
513
|
const localVarQueryParameter = {};
|
|
514
|
+
// authentication bearer required
|
|
515
|
+
// http bearer authentication required
|
|
516
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
474
517
|
// authentication oauth2 required
|
|
475
518
|
// oauth required
|
|
476
|
-
|
|
519
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
477
520
|
if (xDaytonaOrganizationID != null) {
|
|
478
521
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
479
522
|
}
|
|
@@ -484,7 +527,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
484
527
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
485
528
|
options: localVarRequestOptions,
|
|
486
529
|
};
|
|
487
|
-
},
|
|
530
|
+
}),
|
|
488
531
|
/**
|
|
489
532
|
*
|
|
490
533
|
* @summary Update public status
|
|
@@ -494,7 +537,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
494
537
|
* @param {*} [options] Override http request option.
|
|
495
538
|
* @throws {RequiredError}
|
|
496
539
|
*/
|
|
497
|
-
updatePublicStatus:
|
|
540
|
+
updatePublicStatus: (workspaceId_1, isPublic_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, isPublic_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, isPublic, xDaytonaOrganizationID, options = {}) {
|
|
498
541
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
499
542
|
(0, common_1.assertParamExists)('updatePublicStatus', 'workspaceId', workspaceId);
|
|
500
543
|
// verify required parameter 'isPublic' is not null or undefined
|
|
@@ -511,9 +554,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
511
554
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
512
555
|
const localVarHeaderParameter = {};
|
|
513
556
|
const localVarQueryParameter = {};
|
|
557
|
+
// authentication bearer required
|
|
558
|
+
// http bearer authentication required
|
|
559
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
514
560
|
// authentication oauth2 required
|
|
515
561
|
// oauth required
|
|
516
|
-
|
|
562
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
517
563
|
if (xDaytonaOrganizationID != null) {
|
|
518
564
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
519
565
|
}
|
|
@@ -524,7 +570,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
524
570
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
525
571
|
options: localVarRequestOptions,
|
|
526
572
|
};
|
|
527
|
-
},
|
|
573
|
+
}),
|
|
528
574
|
};
|
|
529
575
|
};
|
|
530
576
|
exports.WorkspaceApiAxiosParamCreator = WorkspaceApiAxiosParamCreator;
|
|
@@ -543,12 +589,14 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
543
589
|
* @param {*} [options] Override http request option.
|
|
544
590
|
* @throws {RequiredError}
|
|
545
591
|
*/
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
592
|
+
archiveWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
593
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
594
|
+
var _a, _b, _c;
|
|
595
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveWorkspace(workspaceId, xDaytonaOrganizationID, options);
|
|
596
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
597
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.archiveWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
598
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
599
|
+
});
|
|
552
600
|
},
|
|
553
601
|
/**
|
|
554
602
|
*
|
|
@@ -558,12 +606,14 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
558
606
|
* @param {*} [options] Override http request option.
|
|
559
607
|
* @throws {RequiredError}
|
|
560
608
|
*/
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
609
|
+
createSnapshot(workspaceId, xDaytonaOrganizationID, options) {
|
|
610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
611
|
+
var _a, _b, _c;
|
|
612
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSnapshot(workspaceId, xDaytonaOrganizationID, options);
|
|
613
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
614
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.createSnapshot']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
615
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
616
|
+
});
|
|
567
617
|
},
|
|
568
618
|
/**
|
|
569
619
|
*
|
|
@@ -573,12 +623,14 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
573
623
|
* @param {*} [options] Override http request option.
|
|
574
624
|
* @throws {RequiredError}
|
|
575
625
|
*/
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
626
|
+
createWorkspace(createWorkspace, xDaytonaOrganizationID, options) {
|
|
627
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
628
|
+
var _a, _b, _c;
|
|
629
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWorkspace(createWorkspace, xDaytonaOrganizationID, options);
|
|
630
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
631
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.createWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
632
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
633
|
+
});
|
|
582
634
|
},
|
|
583
635
|
/**
|
|
584
636
|
*
|
|
@@ -589,12 +641,14 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
589
641
|
* @param {*} [options] Override http request option.
|
|
590
642
|
* @throws {RequiredError}
|
|
591
643
|
*/
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
644
|
+
deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options) {
|
|
645
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
646
|
+
var _a, _b, _c;
|
|
647
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options);
|
|
648
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
649
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.deleteWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
650
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
651
|
+
});
|
|
598
652
|
},
|
|
599
653
|
/**
|
|
600
654
|
*
|
|
@@ -605,12 +659,14 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
605
659
|
* @param {*} [options] Override http request option.
|
|
606
660
|
* @throws {RequiredError}
|
|
607
661
|
*/
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
662
|
+
getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options) {
|
|
663
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
664
|
+
var _a, _b, _c;
|
|
665
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options);
|
|
666
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
667
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.getPortPreviewUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
668
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
669
|
+
});
|
|
614
670
|
},
|
|
615
671
|
/**
|
|
616
672
|
*
|
|
@@ -621,28 +677,32 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
621
677
|
* @param {*} [options] Override http request option.
|
|
622
678
|
* @throws {RequiredError}
|
|
623
679
|
*/
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
680
|
+
getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options) {
|
|
681
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
682
|
+
var _a, _b, _c;
|
|
683
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options);
|
|
684
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
685
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.getWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
686
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
687
|
+
});
|
|
630
688
|
},
|
|
631
689
|
/**
|
|
632
690
|
*
|
|
633
691
|
* @summary List all workspaces
|
|
634
692
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
635
693
|
* @param {boolean} [verbose] Include verbose output
|
|
636
|
-
* @param {
|
|
694
|
+
* @param {string} [labels] JSON encoded labels to filter by
|
|
637
695
|
* @param {*} [options] Override http request option.
|
|
638
696
|
* @throws {RequiredError}
|
|
639
697
|
*/
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
698
|
+
listWorkspaces(xDaytonaOrganizationID, verbose, labels, options) {
|
|
699
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
700
|
+
var _a, _b, _c;
|
|
701
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkspaces(xDaytonaOrganizationID, verbose, labels, options);
|
|
702
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
703
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.listWorkspaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
704
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
705
|
+
});
|
|
646
706
|
},
|
|
647
707
|
/**
|
|
648
708
|
*
|
|
@@ -653,12 +713,14 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
653
713
|
* @param {*} [options] Override http request option.
|
|
654
714
|
* @throws {RequiredError}
|
|
655
715
|
*/
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
716
|
+
replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options) {
|
|
717
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
718
|
+
var _a, _b, _c;
|
|
719
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options);
|
|
720
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
721
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.replaceLabels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
722
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
723
|
+
});
|
|
662
724
|
},
|
|
663
725
|
/**
|
|
664
726
|
*
|
|
@@ -669,12 +731,14 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
669
731
|
* @param {*} [options] Override http request option.
|
|
670
732
|
* @throws {RequiredError}
|
|
671
733
|
*/
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
734
|
+
resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options) {
|
|
735
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
736
|
+
var _a, _b, _c;
|
|
737
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options);
|
|
738
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
739
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.resizeWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
740
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
741
|
+
});
|
|
678
742
|
},
|
|
679
743
|
/**
|
|
680
744
|
*
|
|
@@ -685,12 +749,14 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
685
749
|
* @param {*} [options] Override http request option.
|
|
686
750
|
* @throws {RequiredError}
|
|
687
751
|
*/
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
752
|
+
setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options) {
|
|
753
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
754
|
+
var _a, _b, _c;
|
|
755
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options);
|
|
756
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
757
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.setAutostopInterval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
758
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
759
|
+
});
|
|
694
760
|
},
|
|
695
761
|
/**
|
|
696
762
|
*
|
|
@@ -700,12 +766,14 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
700
766
|
* @param {*} [options] Override http request option.
|
|
701
767
|
* @throws {RequiredError}
|
|
702
768
|
*/
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
769
|
+
startWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
770
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
771
|
+
var _a, _b, _c;
|
|
772
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.startWorkspace(workspaceId, xDaytonaOrganizationID, options);
|
|
773
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
774
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.startWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
775
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
776
|
+
});
|
|
709
777
|
},
|
|
710
778
|
/**
|
|
711
779
|
*
|
|
@@ -715,12 +783,14 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
715
783
|
* @param {*} [options] Override http request option.
|
|
716
784
|
* @throws {RequiredError}
|
|
717
785
|
*/
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
786
|
+
stopWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
787
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
788
|
+
var _a, _b, _c;
|
|
789
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.stopWorkspace(workspaceId, xDaytonaOrganizationID, options);
|
|
790
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
791
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.stopWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
792
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
793
|
+
});
|
|
724
794
|
},
|
|
725
795
|
/**
|
|
726
796
|
*
|
|
@@ -731,12 +801,14 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
731
801
|
* @param {*} [options] Override http request option.
|
|
732
802
|
* @throws {RequiredError}
|
|
733
803
|
*/
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
804
|
+
updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options) {
|
|
805
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
806
|
+
var _a, _b, _c;
|
|
807
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options);
|
|
808
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
809
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.updatePublicStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
810
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
811
|
+
});
|
|
740
812
|
},
|
|
741
813
|
};
|
|
742
814
|
};
|
|
@@ -834,7 +906,7 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
834
906
|
* @summary List all workspaces
|
|
835
907
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
836
908
|
* @param {boolean} [verbose] Include verbose output
|
|
837
|
-
* @param {
|
|
909
|
+
* @param {string} [labels] JSON encoded labels to filter by
|
|
838
910
|
* @param {*} [options] Override http request option.
|
|
839
911
|
* @throws {RequiredError}
|
|
840
912
|
*/
|
|
@@ -1027,7 +1099,7 @@ class WorkspaceApi extends base_1.BaseAPI {
|
|
|
1027
1099
|
* @summary List all workspaces
|
|
1028
1100
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1029
1101
|
* @param {boolean} [verbose] Include verbose output
|
|
1030
|
-
* @param {
|
|
1102
|
+
* @param {string} [labels] JSON encoded labels to filter by
|
|
1031
1103
|
* @param {*} [options] Override http request option.
|
|
1032
1104
|
* @throws {RequiredError}
|
|
1033
1105
|
* @memberof WorkspaceApi
|