@daytonaio/api-client 0.17.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.
Files changed (36) hide show
  1. package/.openapi-generator/FILES +0 -1
  2. package/api/workspace-api.ts +9 -13
  3. package/dist/api/api-keys-api.js +57 -40
  4. package/dist/api/docker-registry-api.js +93 -70
  5. package/dist/api/images-api.js +69 -50
  6. package/dist/api/nodes-api.js +45 -30
  7. package/dist/api/organizations-api.js +309 -250
  8. package/dist/api/preview-api.js +41 -26
  9. package/dist/api/toolbox-api.js +441 -360
  10. package/dist/api/users-api.js +53 -36
  11. package/dist/api/workspace-api.d.ts +8 -9
  12. package/dist/api/workspace-api.js +170 -137
  13. package/dist/common.js +34 -19
  14. package/dist/esm/api/api-keys-api.js +57 -40
  15. package/dist/esm/api/docker-registry-api.js +93 -70
  16. package/dist/esm/api/images-api.js +69 -50
  17. package/dist/esm/api/nodes-api.js +45 -30
  18. package/dist/esm/api/organizations-api.js +309 -250
  19. package/dist/esm/api/preview-api.js +41 -26
  20. package/dist/esm/api/toolbox-api.js +441 -360
  21. package/dist/esm/api/users-api.js +53 -36
  22. package/dist/esm/api/workspace-api.d.ts +8 -9
  23. package/dist/esm/api/workspace-api.js +170 -137
  24. package/dist/esm/common.js +34 -19
  25. package/dist/esm/models/index.d.ts +0 -1
  26. package/dist/esm/models/index.js +0 -1
  27. package/dist/models/index.d.ts +0 -1
  28. package/dist/models/index.js +0 -1
  29. package/models/index.ts +0 -1
  30. package/package.json +1 -1
  31. package/tsconfig.json +1 -1
  32. package/dist/esm/models/list-workspaces-labels-parameter.d.ts +0 -26
  33. package/dist/esm/models/list-workspaces-labels-parameter.js +0 -14
  34. package/dist/models/list-workspaces-labels-parameter.d.ts +0 -26
  35. package/dist/models/list-workspaces-labels-parameter.js +0 -15
  36. package/models/list-workspaces-labels-parameter.ts +0 -27
@@ -11,6 +11,15 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
14
23
  import globalAxios from 'axios';
15
24
  // Some imports not used depending on template conditions
16
25
  // @ts-ignore
@@ -31,7 +40,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
31
40
  * @param {*} [options] Override http request option.
32
41
  * @throws {RequiredError}
33
42
  */
34
- archiveWorkspace: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
43
+ archiveWorkspace: (workspaceId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, xDaytonaOrganizationID, options = {}) {
35
44
  // verify required parameter 'workspaceId' is not null or undefined
36
45
  assertParamExists('archiveWorkspace', 'workspaceId', workspaceId);
37
46
  const localVarPath = `/workspace/{workspaceId}/archive`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
@@ -46,10 +55,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
46
55
  const localVarQueryParameter = {};
47
56
  // authentication bearer required
48
57
  // http bearer authentication required
49
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
58
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
50
59
  // authentication oauth2 required
51
60
  // oauth required
52
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
61
+ yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
53
62
  if (xDaytonaOrganizationID != null) {
54
63
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
55
64
  }
@@ -60,7 +69,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
60
69
  url: toPathString(localVarUrlObj),
61
70
  options: localVarRequestOptions,
62
71
  };
63
- },
72
+ }),
64
73
  /**
65
74
  *
66
75
  * @summary Create workspace snapshot
@@ -69,7 +78,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
69
78
  * @param {*} [options] Override http request option.
70
79
  * @throws {RequiredError}
71
80
  */
72
- createSnapshot: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
81
+ createSnapshot: (workspaceId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, xDaytonaOrganizationID, options = {}) {
73
82
  // verify required parameter 'workspaceId' is not null or undefined
74
83
  assertParamExists('createSnapshot', 'workspaceId', workspaceId);
75
84
  const localVarPath = `/workspace/{workspaceId}/snapshot`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
@@ -84,10 +93,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
84
93
  const localVarQueryParameter = {};
85
94
  // authentication bearer required
86
95
  // http bearer authentication required
87
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
96
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
88
97
  // authentication oauth2 required
89
98
  // oauth required
90
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
99
+ yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
91
100
  if (xDaytonaOrganizationID != null) {
92
101
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
93
102
  }
@@ -98,7 +107,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
98
107
  url: toPathString(localVarUrlObj),
99
108
  options: localVarRequestOptions,
100
109
  };
101
- },
110
+ }),
102
111
  /**
103
112
  *
104
113
  * @summary Create a new workspace
@@ -107,7 +116,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
107
116
  * @param {*} [options] Override http request option.
108
117
  * @throws {RequiredError}
109
118
  */
110
- createWorkspace: async (createWorkspace, xDaytonaOrganizationID, options = {}) => {
119
+ createWorkspace: (createWorkspace_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [createWorkspace_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (createWorkspace, xDaytonaOrganizationID, options = {}) {
111
120
  // verify required parameter 'createWorkspace' is not null or undefined
112
121
  assertParamExists('createWorkspace', 'createWorkspace', createWorkspace);
113
122
  const localVarPath = `/workspace`;
@@ -122,10 +131,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
122
131
  const localVarQueryParameter = {};
123
132
  // authentication bearer required
124
133
  // http bearer authentication required
125
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
134
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
126
135
  // authentication oauth2 required
127
136
  // oauth required
128
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
137
+ yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
129
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
130
139
  if (xDaytonaOrganizationID != null) {
131
140
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
@@ -138,7 +147,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
138
147
  url: toPathString(localVarUrlObj),
139
148
  options: localVarRequestOptions,
140
149
  };
141
- },
150
+ }),
142
151
  /**
143
152
  *
144
153
  * @summary Delete workspace
@@ -148,7 +157,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
148
157
  * @param {*} [options] Override http request option.
149
158
  * @throws {RequiredError}
150
159
  */
151
- deleteWorkspace: async (workspaceId, force, xDaytonaOrganizationID, options = {}) => {
160
+ 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 = {}) {
152
161
  // verify required parameter 'workspaceId' is not null or undefined
153
162
  assertParamExists('deleteWorkspace', 'workspaceId', workspaceId);
154
163
  // verify required parameter 'force' is not null or undefined
@@ -165,10 +174,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
165
174
  const localVarQueryParameter = {};
166
175
  // authentication bearer required
167
176
  // http bearer authentication required
168
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
177
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
169
178
  // authentication oauth2 required
170
179
  // oauth required
171
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
180
+ yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
172
181
  if (force !== undefined) {
173
182
  localVarQueryParameter['force'] = force;
174
183
  }
@@ -182,7 +191,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
182
191
  url: toPathString(localVarUrlObj),
183
192
  options: localVarRequestOptions,
184
193
  };
185
- },
194
+ }),
186
195
  /**
187
196
  *
188
197
  * @summary Get preview URL for a workspace port
@@ -192,7 +201,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
192
201
  * @param {*} [options] Override http request option.
193
202
  * @throws {RequiredError}
194
203
  */
195
- getPortPreviewUrl: async (workspaceId, port, xDaytonaOrganizationID, options = {}) => {
204
+ 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 = {}) {
196
205
  // verify required parameter 'workspaceId' is not null or undefined
197
206
  assertParamExists('getPortPreviewUrl', 'workspaceId', workspaceId);
198
207
  // verify required parameter 'port' is not null or undefined
@@ -211,10 +220,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
211
220
  const localVarQueryParameter = {};
212
221
  // authentication bearer required
213
222
  // http bearer authentication required
214
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
223
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
215
224
  // authentication oauth2 required
216
225
  // oauth required
217
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
226
+ yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
218
227
  if (xDaytonaOrganizationID != null) {
219
228
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
220
229
  }
@@ -225,7 +234,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
225
234
  url: toPathString(localVarUrlObj),
226
235
  options: localVarRequestOptions,
227
236
  };
228
- },
237
+ }),
229
238
  /**
230
239
  *
231
240
  * @summary Get workspace details
@@ -235,7 +244,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
235
244
  * @param {*} [options] Override http request option.
236
245
  * @throws {RequiredError}
237
246
  */
238
- getWorkspace: async (workspaceId, xDaytonaOrganizationID, verbose, options = {}) => {
247
+ 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 = {}) {
239
248
  // verify required parameter 'workspaceId' is not null or undefined
240
249
  assertParamExists('getWorkspace', 'workspaceId', workspaceId);
241
250
  const localVarPath = `/workspace/{workspaceId}`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
@@ -250,10 +259,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
250
259
  const localVarQueryParameter = {};
251
260
  // authentication bearer required
252
261
  // http bearer authentication required
253
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
262
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
254
263
  // authentication oauth2 required
255
264
  // oauth required
256
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
265
+ yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
257
266
  if (verbose !== undefined) {
258
267
  localVarQueryParameter['verbose'] = verbose;
259
268
  }
@@ -267,17 +276,17 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
267
276
  url: toPathString(localVarUrlObj),
268
277
  options: localVarRequestOptions,
269
278
  };
270
- },
279
+ }),
271
280
  /**
272
281
  *
273
282
  * @summary List all workspaces
274
283
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
275
284
  * @param {boolean} [verbose] Include verbose output
276
- * @param {ListWorkspacesLabelsParameter} [labels] Filter workspaces by labels
285
+ * @param {string} [labels] JSON encoded labels to filter by
277
286
  * @param {*} [options] Override http request option.
278
287
  * @throws {RequiredError}
279
288
  */
280
- listWorkspaces: async (xDaytonaOrganizationID, verbose, labels, options = {}) => {
289
+ 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 = {}) {
281
290
  const localVarPath = `/workspace`;
282
291
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
283
292
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -290,17 +299,15 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
290
299
  const localVarQueryParameter = {};
291
300
  // authentication bearer required
292
301
  // http bearer authentication required
293
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
302
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
294
303
  // authentication oauth2 required
295
304
  // oauth required
296
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
305
+ yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
297
306
  if (verbose !== undefined) {
298
307
  localVarQueryParameter['verbose'] = verbose;
299
308
  }
300
309
  if (labels !== undefined) {
301
- for (const [key, value] of Object.entries(labels)) {
302
- localVarQueryParameter[key] = value;
303
- }
310
+ localVarQueryParameter['labels'] = labels;
304
311
  }
305
312
  if (xDaytonaOrganizationID != null) {
306
313
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
@@ -312,7 +319,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
312
319
  url: toPathString(localVarUrlObj),
313
320
  options: localVarRequestOptions,
314
321
  };
315
- },
322
+ }),
316
323
  /**
317
324
  *
318
325
  * @summary Replace workspace labels
@@ -322,7 +329,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
322
329
  * @param {*} [options] Override http request option.
323
330
  * @throws {RequiredError}
324
331
  */
325
- replaceLabels: async (workspaceId, workspaceLabels, xDaytonaOrganizationID, options = {}) => {
332
+ 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 = {}) {
326
333
  // verify required parameter 'workspaceId' is not null or undefined
327
334
  assertParamExists('replaceLabels', 'workspaceId', workspaceId);
328
335
  // verify required parameter 'workspaceLabels' is not null or undefined
@@ -339,10 +346,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
339
346
  const localVarQueryParameter = {};
340
347
  // authentication bearer required
341
348
  // http bearer authentication required
342
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
349
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
343
350
  // authentication oauth2 required
344
351
  // oauth required
345
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
352
+ yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
346
353
  localVarHeaderParameter['Content-Type'] = 'application/json';
347
354
  if (xDaytonaOrganizationID != null) {
348
355
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
@@ -355,7 +362,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
355
362
  url: toPathString(localVarUrlObj),
356
363
  options: localVarRequestOptions,
357
364
  };
358
- },
365
+ }),
359
366
  /**
360
367
  *
361
368
  * @summary Resize workspace
@@ -365,7 +372,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
365
372
  * @param {*} [options] Override http request option.
366
373
  * @throws {RequiredError}
367
374
  */
368
- resizeWorkspace: async (workspaceId, body, xDaytonaOrganizationID, options = {}) => {
375
+ 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 = {}) {
369
376
  // verify required parameter 'workspaceId' is not null or undefined
370
377
  assertParamExists('resizeWorkspace', 'workspaceId', workspaceId);
371
378
  // verify required parameter 'body' is not null or undefined
@@ -382,10 +389,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
382
389
  const localVarQueryParameter = {};
383
390
  // authentication bearer required
384
391
  // http bearer authentication required
385
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
392
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
386
393
  // authentication oauth2 required
387
394
  // oauth required
388
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
395
+ yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
389
396
  localVarHeaderParameter['Content-Type'] = 'application/json';
390
397
  if (xDaytonaOrganizationID != null) {
391
398
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
@@ -398,7 +405,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
398
405
  url: toPathString(localVarUrlObj),
399
406
  options: localVarRequestOptions,
400
407
  };
401
- },
408
+ }),
402
409
  /**
403
410
  *
404
411
  * @summary Set workspace auto-stop interval
@@ -408,7 +415,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
408
415
  * @param {*} [options] Override http request option.
409
416
  * @throws {RequiredError}
410
417
  */
411
- setAutostopInterval: async (workspaceId, interval, xDaytonaOrganizationID, options = {}) => {
418
+ 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 = {}) {
412
419
  // verify required parameter 'workspaceId' is not null or undefined
413
420
  assertParamExists('setAutostopInterval', 'workspaceId', workspaceId);
414
421
  // verify required parameter 'interval' is not null or undefined
@@ -427,10 +434,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
427
434
  const localVarQueryParameter = {};
428
435
  // authentication bearer required
429
436
  // http bearer authentication required
430
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
437
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
431
438
  // authentication oauth2 required
432
439
  // oauth required
433
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
440
+ yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
434
441
  if (xDaytonaOrganizationID != null) {
435
442
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
436
443
  }
@@ -441,7 +448,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
441
448
  url: toPathString(localVarUrlObj),
442
449
  options: localVarRequestOptions,
443
450
  };
444
- },
451
+ }),
445
452
  /**
446
453
  *
447
454
  * @summary Start workspace
@@ -450,7 +457,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
450
457
  * @param {*} [options] Override http request option.
451
458
  * @throws {RequiredError}
452
459
  */
453
- startWorkspace: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
460
+ startWorkspace: (workspaceId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, xDaytonaOrganizationID, options = {}) {
454
461
  // verify required parameter 'workspaceId' is not null or undefined
455
462
  assertParamExists('startWorkspace', 'workspaceId', workspaceId);
456
463
  const localVarPath = `/workspace/{workspaceId}/start`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
@@ -465,10 +472,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
465
472
  const localVarQueryParameter = {};
466
473
  // authentication bearer required
467
474
  // http bearer authentication required
468
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
475
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
469
476
  // authentication oauth2 required
470
477
  // oauth required
471
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
478
+ yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
472
479
  if (xDaytonaOrganizationID != null) {
473
480
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
474
481
  }
@@ -479,7 +486,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
479
486
  url: toPathString(localVarUrlObj),
480
487
  options: localVarRequestOptions,
481
488
  };
482
- },
489
+ }),
483
490
  /**
484
491
  *
485
492
  * @summary Stop workspace
@@ -488,7 +495,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
488
495
  * @param {*} [options] Override http request option.
489
496
  * @throws {RequiredError}
490
497
  */
491
- stopWorkspace: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
498
+ stopWorkspace: (workspaceId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, xDaytonaOrganizationID, options = {}) {
492
499
  // verify required parameter 'workspaceId' is not null or undefined
493
500
  assertParamExists('stopWorkspace', 'workspaceId', workspaceId);
494
501
  const localVarPath = `/workspace/{workspaceId}/stop`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
@@ -503,10 +510,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
503
510
  const localVarQueryParameter = {};
504
511
  // authentication bearer required
505
512
  // http bearer authentication required
506
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
513
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
507
514
  // authentication oauth2 required
508
515
  // oauth required
509
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
516
+ yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
510
517
  if (xDaytonaOrganizationID != null) {
511
518
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
512
519
  }
@@ -517,7 +524,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
517
524
  url: toPathString(localVarUrlObj),
518
525
  options: localVarRequestOptions,
519
526
  };
520
- },
527
+ }),
521
528
  /**
522
529
  *
523
530
  * @summary Update public status
@@ -527,7 +534,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
527
534
  * @param {*} [options] Override http request option.
528
535
  * @throws {RequiredError}
529
536
  */
530
- updatePublicStatus: async (workspaceId, isPublic, xDaytonaOrganizationID, options = {}) => {
537
+ 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 = {}) {
531
538
  // verify required parameter 'workspaceId' is not null or undefined
532
539
  assertParamExists('updatePublicStatus', 'workspaceId', workspaceId);
533
540
  // verify required parameter 'isPublic' is not null or undefined
@@ -546,10 +553,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
546
553
  const localVarQueryParameter = {};
547
554
  // authentication bearer required
548
555
  // http bearer authentication required
549
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
556
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
550
557
  // authentication oauth2 required
551
558
  // oauth required
552
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
559
+ yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
553
560
  if (xDaytonaOrganizationID != null) {
554
561
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
555
562
  }
@@ -560,7 +567,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
560
567
  url: toPathString(localVarUrlObj),
561
568
  options: localVarRequestOptions,
562
569
  };
563
- },
570
+ }),
564
571
  };
565
572
  };
566
573
  /**
@@ -578,12 +585,14 @@ export const WorkspaceApiFp = function (configuration) {
578
585
  * @param {*} [options] Override http request option.
579
586
  * @throws {RequiredError}
580
587
  */
581
- async archiveWorkspace(workspaceId, xDaytonaOrganizationID, options) {
582
- var _a, _b, _c;
583
- const localVarAxiosArgs = await localVarAxiosParamCreator.archiveWorkspace(workspaceId, xDaytonaOrganizationID, options);
584
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
585
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.archiveWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
586
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
588
+ archiveWorkspace(workspaceId, xDaytonaOrganizationID, options) {
589
+ return __awaiter(this, void 0, void 0, function* () {
590
+ var _a, _b, _c;
591
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveWorkspace(workspaceId, xDaytonaOrganizationID, options);
592
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
593
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.archiveWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
594
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
595
+ });
587
596
  },
588
597
  /**
589
598
  *
@@ -593,12 +602,14 @@ export const WorkspaceApiFp = function (configuration) {
593
602
  * @param {*} [options] Override http request option.
594
603
  * @throws {RequiredError}
595
604
  */
596
- async createSnapshot(workspaceId, xDaytonaOrganizationID, options) {
597
- var _a, _b, _c;
598
- const localVarAxiosArgs = await localVarAxiosParamCreator.createSnapshot(workspaceId, xDaytonaOrganizationID, options);
599
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
600
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.createSnapshot']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
601
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
605
+ createSnapshot(workspaceId, xDaytonaOrganizationID, options) {
606
+ return __awaiter(this, void 0, void 0, function* () {
607
+ var _a, _b, _c;
608
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSnapshot(workspaceId, xDaytonaOrganizationID, options);
609
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
610
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.createSnapshot']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
611
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
612
+ });
602
613
  },
603
614
  /**
604
615
  *
@@ -608,12 +619,14 @@ export const WorkspaceApiFp = function (configuration) {
608
619
  * @param {*} [options] Override http request option.
609
620
  * @throws {RequiredError}
610
621
  */
611
- async createWorkspace(createWorkspace, xDaytonaOrganizationID, options) {
612
- var _a, _b, _c;
613
- const localVarAxiosArgs = await localVarAxiosParamCreator.createWorkspace(createWorkspace, xDaytonaOrganizationID, options);
614
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
615
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.createWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
616
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
622
+ createWorkspace(createWorkspace, xDaytonaOrganizationID, options) {
623
+ return __awaiter(this, void 0, void 0, function* () {
624
+ var _a, _b, _c;
625
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createWorkspace(createWorkspace, xDaytonaOrganizationID, options);
626
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
627
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.createWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
628
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
629
+ });
617
630
  },
618
631
  /**
619
632
  *
@@ -624,12 +637,14 @@ export const WorkspaceApiFp = function (configuration) {
624
637
  * @param {*} [options] Override http request option.
625
638
  * @throws {RequiredError}
626
639
  */
627
- async deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options) {
628
- var _a, _b, _c;
629
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWorkspace(workspaceId, force, 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 = operationServerMap['WorkspaceApi.deleteWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
632
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
640
+ deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options) {
641
+ return __awaiter(this, void 0, void 0, function* () {
642
+ var _a, _b, _c;
643
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options);
644
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
645
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.deleteWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
646
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
647
+ });
633
648
  },
634
649
  /**
635
650
  *
@@ -640,12 +655,14 @@ export const WorkspaceApiFp = function (configuration) {
640
655
  * @param {*} [options] Override http request option.
641
656
  * @throws {RequiredError}
642
657
  */
643
- async getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options) {
644
- var _a, _b, _c;
645
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options);
646
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
647
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.getPortPreviewUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
648
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
658
+ getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options) {
659
+ return __awaiter(this, void 0, void 0, function* () {
660
+ var _a, _b, _c;
661
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options);
662
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
663
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.getPortPreviewUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
664
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
665
+ });
649
666
  },
650
667
  /**
651
668
  *
@@ -656,28 +673,32 @@ export const WorkspaceApiFp = function (configuration) {
656
673
  * @param {*} [options] Override http request option.
657
674
  * @throws {RequiredError}
658
675
  */
659
- async getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options) {
660
- var _a, _b, _c;
661
- const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options);
662
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
663
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.getWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
664
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
676
+ getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options) {
677
+ return __awaiter(this, void 0, void 0, function* () {
678
+ var _a, _b, _c;
679
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options);
680
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
681
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.getWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
682
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
683
+ });
665
684
  },
666
685
  /**
667
686
  *
668
687
  * @summary List all workspaces
669
688
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
670
689
  * @param {boolean} [verbose] Include verbose output
671
- * @param {ListWorkspacesLabelsParameter} [labels] Filter workspaces by labels
690
+ * @param {string} [labels] JSON encoded labels to filter by
672
691
  * @param {*} [options] Override http request option.
673
692
  * @throws {RequiredError}
674
693
  */
675
- async listWorkspaces(xDaytonaOrganizationID, verbose, labels, options) {
676
- var _a, _b, _c;
677
- const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(xDaytonaOrganizationID, verbose, labels, options);
678
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
679
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.listWorkspaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
680
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
694
+ listWorkspaces(xDaytonaOrganizationID, verbose, labels, options) {
695
+ return __awaiter(this, void 0, void 0, function* () {
696
+ var _a, _b, _c;
697
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkspaces(xDaytonaOrganizationID, verbose, labels, options);
698
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
699
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.listWorkspaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
700
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
701
+ });
681
702
  },
682
703
  /**
683
704
  *
@@ -688,12 +709,14 @@ export const WorkspaceApiFp = function (configuration) {
688
709
  * @param {*} [options] Override http request option.
689
710
  * @throws {RequiredError}
690
711
  */
691
- async replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options) {
692
- var _a, _b, _c;
693
- const localVarAxiosArgs = await localVarAxiosParamCreator.replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options);
694
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
695
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.replaceLabels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
696
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
712
+ replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options) {
713
+ return __awaiter(this, void 0, void 0, function* () {
714
+ var _a, _b, _c;
715
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options);
716
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
717
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.replaceLabels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
718
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
719
+ });
697
720
  },
698
721
  /**
699
722
  *
@@ -704,12 +727,14 @@ export const WorkspaceApiFp = function (configuration) {
704
727
  * @param {*} [options] Override http request option.
705
728
  * @throws {RequiredError}
706
729
  */
707
- async resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options) {
708
- var _a, _b, _c;
709
- const localVarAxiosArgs = await localVarAxiosParamCreator.resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options);
710
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
711
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.resizeWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
712
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
730
+ resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options) {
731
+ return __awaiter(this, void 0, void 0, function* () {
732
+ var _a, _b, _c;
733
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options);
734
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
735
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.resizeWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
736
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
737
+ });
713
738
  },
714
739
  /**
715
740
  *
@@ -720,12 +745,14 @@ export const WorkspaceApiFp = function (configuration) {
720
745
  * @param {*} [options] Override http request option.
721
746
  * @throws {RequiredError}
722
747
  */
723
- async setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options) {
724
- var _a, _b, _c;
725
- const localVarAxiosArgs = await localVarAxiosParamCreator.setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options);
726
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
727
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.setAutostopInterval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
728
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
748
+ setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options) {
749
+ return __awaiter(this, void 0, void 0, function* () {
750
+ var _a, _b, _c;
751
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options);
752
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
753
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.setAutostopInterval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
754
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
755
+ });
729
756
  },
730
757
  /**
731
758
  *
@@ -735,12 +762,14 @@ export const WorkspaceApiFp = function (configuration) {
735
762
  * @param {*} [options] Override http request option.
736
763
  * @throws {RequiredError}
737
764
  */
738
- async startWorkspace(workspaceId, xDaytonaOrganizationID, options) {
739
- var _a, _b, _c;
740
- const localVarAxiosArgs = await localVarAxiosParamCreator.startWorkspace(workspaceId, xDaytonaOrganizationID, options);
741
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
742
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.startWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
743
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
765
+ startWorkspace(workspaceId, xDaytonaOrganizationID, options) {
766
+ return __awaiter(this, void 0, void 0, function* () {
767
+ var _a, _b, _c;
768
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.startWorkspace(workspaceId, xDaytonaOrganizationID, options);
769
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
770
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.startWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
771
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
772
+ });
744
773
  },
745
774
  /**
746
775
  *
@@ -750,12 +779,14 @@ export const WorkspaceApiFp = function (configuration) {
750
779
  * @param {*} [options] Override http request option.
751
780
  * @throws {RequiredError}
752
781
  */
753
- async stopWorkspace(workspaceId, xDaytonaOrganizationID, options) {
754
- var _a, _b, _c;
755
- const localVarAxiosArgs = await localVarAxiosParamCreator.stopWorkspace(workspaceId, 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 = operationServerMap['WorkspaceApi.stopWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
758
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
782
+ stopWorkspace(workspaceId, xDaytonaOrganizationID, options) {
783
+ return __awaiter(this, void 0, void 0, function* () {
784
+ var _a, _b, _c;
785
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.stopWorkspace(workspaceId, xDaytonaOrganizationID, options);
786
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
787
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.stopWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
788
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
789
+ });
759
790
  },
760
791
  /**
761
792
  *
@@ -766,12 +797,14 @@ export const WorkspaceApiFp = function (configuration) {
766
797
  * @param {*} [options] Override http request option.
767
798
  * @throws {RequiredError}
768
799
  */
769
- async updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options) {
770
- var _a, _b, _c;
771
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options);
772
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
773
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.updatePublicStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
774
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
800
+ updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options) {
801
+ return __awaiter(this, void 0, void 0, function* () {
802
+ var _a, _b, _c;
803
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options);
804
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
805
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.updatePublicStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
806
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
807
+ });
775
808
  },
776
809
  };
777
810
  };
@@ -868,7 +901,7 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
868
901
  * @summary List all workspaces
869
902
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
870
903
  * @param {boolean} [verbose] Include verbose output
871
- * @param {ListWorkspacesLabelsParameter} [labels] Filter workspaces by labels
904
+ * @param {string} [labels] JSON encoded labels to filter by
872
905
  * @param {*} [options] Override http request option.
873
906
  * @throws {RequiredError}
874
907
  */
@@ -1060,7 +1093,7 @@ export class WorkspaceApi extends BaseAPI {
1060
1093
  * @summary List all workspaces
1061
1094
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1062
1095
  * @param {boolean} [verbose] Include verbose output
1063
- * @param {ListWorkspacesLabelsParameter} [labels] Filter workspaces by labels
1096
+ * @param {string} [labels] JSON encoded labels to filter by
1064
1097
  * @param {*} [options] Override http request option.
1065
1098
  * @throws {RequiredError}
1066
1099
  * @memberof WorkspaceApi