@daytonaio/api-client 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @daytonaio/api-client@0.3.1
1
+ ## @daytonaio/api-client@0.4.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @daytonaio/api-client@0.3.1 --save
39
+ npm install @daytonaio/api-client@0.4.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -1739,6 +1739,48 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
1739
1739
 
1740
1740
 
1741
1741
 
1742
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1743
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1744
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1745
+
1746
+ return {
1747
+ url: toPathString(localVarUrlObj),
1748
+ options: localVarRequestOptions,
1749
+ };
1750
+ },
1751
+ /**
1752
+ * Change public preview status of a workspace
1753
+ * @summary Change public preview status
1754
+ * @param {string} workspaceId ID of the workspace
1755
+ * @param {boolean} isPublic Public status to set
1756
+ * @param {*} [options] Override http request option.
1757
+ * @throws {RequiredError}
1758
+ */
1759
+ workspaceControllerUpdatePublicStatus: async (workspaceId: string, isPublic: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1760
+ // verify required parameter 'workspaceId' is not null or undefined
1761
+ assertParamExists('workspaceControllerUpdatePublicStatus', 'workspaceId', workspaceId)
1762
+ // verify required parameter 'isPublic' is not null or undefined
1763
+ assertParamExists('workspaceControllerUpdatePublicStatus', 'isPublic', isPublic)
1764
+ const localVarPath = `/workspace/{workspaceId}/public/{isPublic}`
1765
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
1766
+ .replace(`{${"isPublic"}}`, encodeURIComponent(String(isPublic)));
1767
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1768
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1769
+ let baseOptions;
1770
+ if (configuration) {
1771
+ baseOptions = configuration.baseOptions;
1772
+ }
1773
+
1774
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1775
+ const localVarHeaderParameter = {} as any;
1776
+ const localVarQueryParameter = {} as any;
1777
+
1778
+ // authentication oauth2 required
1779
+ // oauth required
1780
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1781
+
1782
+
1783
+
1742
1784
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1743
1785
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1744
1786
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -2345,6 +2387,20 @@ export const DefaultApiFp = function(configuration?: Configuration) {
2345
2387
  const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerStopWorkspace']?.[localVarOperationServerIndex]?.url;
2346
2388
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2347
2389
  },
2390
+ /**
2391
+ * Change public preview status of a workspace
2392
+ * @summary Change public preview status
2393
+ * @param {string} workspaceId ID of the workspace
2394
+ * @param {boolean} isPublic Public status to set
2395
+ * @param {*} [options] Override http request option.
2396
+ * @throws {RequiredError}
2397
+ */
2398
+ async workspaceControllerUpdatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2399
+ const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options);
2400
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2401
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerUpdatePublicStatus']?.[localVarOperationServerIndex]?.url;
2402
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2403
+ },
2348
2404
  /**
2349
2405
  * Upload file inside workspace
2350
2406
  * @summary Upload file
@@ -2783,6 +2839,17 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
2783
2839
  workspaceControllerStopWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2784
2840
  return localVarFp.workspaceControllerStopWorkspace(workspaceId, options).then((request) => request(axios, basePath));
2785
2841
  },
2842
+ /**
2843
+ * Change public preview status of a workspace
2844
+ * @summary Change public preview status
2845
+ * @param {string} workspaceId ID of the workspace
2846
+ * @param {boolean} isPublic Public status to set
2847
+ * @param {*} [options] Override http request option.
2848
+ * @throws {RequiredError}
2849
+ */
2850
+ workspaceControllerUpdatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2851
+ return localVarFp.workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options).then((request) => request(axios, basePath));
2852
+ },
2786
2853
  /**
2787
2854
  * Upload file inside workspace
2788
2855
  * @summary Upload file
@@ -3298,6 +3365,19 @@ export class DefaultApi extends BaseAPI {
3298
3365
  return DefaultApiFp(this.configuration).workspaceControllerStopWorkspace(workspaceId, options).then((request) => request(this.axios, this.basePath));
3299
3366
  }
3300
3367
 
3368
+ /**
3369
+ * Change public preview status of a workspace
3370
+ * @summary Change public preview status
3371
+ * @param {string} workspaceId ID of the workspace
3372
+ * @param {boolean} isPublic Public status to set
3373
+ * @param {*} [options] Override http request option.
3374
+ * @throws {RequiredError}
3375
+ * @memberof DefaultApi
3376
+ */
3377
+ public workspaceControllerUpdatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig) {
3378
+ return DefaultApiFp(this.configuration).workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options).then((request) => request(this.axios, this.basePath));
3379
+ }
3380
+
3301
3381
  /**
3302
3382
  * Upload file inside workspace
3303
3383
  * @summary Upload file
@@ -364,6 +364,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
364
364
  * @throws {RequiredError}
365
365
  */
366
366
  workspaceControllerStopWorkspace: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
367
+ /**
368
+ * Change public preview status of a workspace
369
+ * @summary Change public preview status
370
+ * @param {string} workspaceId ID of the workspace
371
+ * @param {boolean} isPublic Public status to set
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ */
375
+ workspaceControllerUpdatePublicStatus: (workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
367
376
  /**
368
377
  * Upload file inside workspace
369
378
  * @summary Upload file
@@ -713,6 +722,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
713
722
  * @throws {RequiredError}
714
723
  */
715
724
  workspaceControllerStopWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
725
+ /**
726
+ * Change public preview status of a workspace
727
+ * @summary Change public preview status
728
+ * @param {string} workspaceId ID of the workspace
729
+ * @param {boolean} isPublic Public status to set
730
+ * @param {*} [options] Override http request option.
731
+ * @throws {RequiredError}
732
+ */
733
+ workspaceControllerUpdatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
716
734
  /**
717
735
  * Upload file inside workspace
718
736
  * @summary Upload file
@@ -1062,6 +1080,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1062
1080
  * @throws {RequiredError}
1063
1081
  */
1064
1082
  workspaceControllerStopWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1083
+ /**
1084
+ * Change public preview status of a workspace
1085
+ * @summary Change public preview status
1086
+ * @param {string} workspaceId ID of the workspace
1087
+ * @param {boolean} isPublic Public status to set
1088
+ * @param {*} [options] Override http request option.
1089
+ * @throws {RequiredError}
1090
+ */
1091
+ workspaceControllerUpdatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1065
1092
  /**
1066
1093
  * Upload file inside workspace
1067
1094
  * @summary Upload file
@@ -1453,6 +1480,16 @@ export declare class DefaultApi extends BaseAPI {
1453
1480
  * @memberof DefaultApi
1454
1481
  */
1455
1482
  workspaceControllerStopWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1483
+ /**
1484
+ * Change public preview status of a workspace
1485
+ * @summary Change public preview status
1486
+ * @param {string} workspaceId ID of the workspace
1487
+ * @param {boolean} isPublic Public status to set
1488
+ * @param {*} [options] Override http request option.
1489
+ * @throws {RequiredError}
1490
+ * @memberof DefaultApi
1491
+ */
1492
+ workspaceControllerUpdatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1456
1493
  /**
1457
1494
  * Upload file inside workspace
1458
1495
  * @summary Upload file
@@ -1454,6 +1454,42 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1454
1454
  options: localVarRequestOptions,
1455
1455
  };
1456
1456
  }),
1457
+ /**
1458
+ * Change public preview status of a workspace
1459
+ * @summary Change public preview status
1460
+ * @param {string} workspaceId ID of the workspace
1461
+ * @param {boolean} isPublic Public status to set
1462
+ * @param {*} [options] Override http request option.
1463
+ * @throws {RequiredError}
1464
+ */
1465
+ workspaceControllerUpdatePublicStatus: (workspaceId_28, isPublic_1, ...args_41) => __awaiter(this, [workspaceId_28, isPublic_1, ...args_41], void 0, function* (workspaceId, isPublic, options = {}) {
1466
+ // verify required parameter 'workspaceId' is not null or undefined
1467
+ (0, common_1.assertParamExists)('workspaceControllerUpdatePublicStatus', 'workspaceId', workspaceId);
1468
+ // verify required parameter 'isPublic' is not null or undefined
1469
+ (0, common_1.assertParamExists)('workspaceControllerUpdatePublicStatus', 'isPublic', isPublic);
1470
+ const localVarPath = `/workspace/{workspaceId}/public/{isPublic}`
1471
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
1472
+ .replace(`{${"isPublic"}}`, encodeURIComponent(String(isPublic)));
1473
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1474
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1475
+ let baseOptions;
1476
+ if (configuration) {
1477
+ baseOptions = configuration.baseOptions;
1478
+ }
1479
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1480
+ const localVarHeaderParameter = {};
1481
+ const localVarQueryParameter = {};
1482
+ // authentication oauth2 required
1483
+ // oauth required
1484
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1485
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1486
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1487
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1488
+ return {
1489
+ url: (0, common_1.toPathString)(localVarUrlObj),
1490
+ options: localVarRequestOptions,
1491
+ };
1492
+ }),
1457
1493
  /**
1458
1494
  * Upload file inside workspace
1459
1495
  * @summary Upload file
@@ -1463,7 +1499,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1463
1499
  * @param {*} [options] Override http request option.
1464
1500
  * @throws {RequiredError}
1465
1501
  */
1466
- workspaceControllerUploadFile: (workspaceId_28, path_12, file_1, ...args_41) => __awaiter(this, [workspaceId_28, path_12, file_1, ...args_41], void 0, function* (workspaceId, path, file, options = {}) {
1502
+ workspaceControllerUploadFile: (workspaceId_29, path_12, file_1, ...args_42) => __awaiter(this, [workspaceId_29, path_12, file_1, ...args_42], void 0, function* (workspaceId, path, file, options = {}) {
1467
1503
  // verify required parameter 'workspaceId' is not null or undefined
1468
1504
  (0, common_1.assertParamExists)('workspaceControllerUploadFile', 'workspaceId', workspaceId);
1469
1505
  // verify required parameter 'path' is not null or undefined
@@ -2162,6 +2198,23 @@ const DefaultApiFp = function (configuration) {
2162
2198
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2163
2199
  });
2164
2200
  },
2201
+ /**
2202
+ * Change public preview status of a workspace
2203
+ * @summary Change public preview status
2204
+ * @param {string} workspaceId ID of the workspace
2205
+ * @param {boolean} isPublic Public status to set
2206
+ * @param {*} [options] Override http request option.
2207
+ * @throws {RequiredError}
2208
+ */
2209
+ workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options) {
2210
+ return __awaiter(this, void 0, void 0, function* () {
2211
+ var _a, _b, _c;
2212
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options);
2213
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2214
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.workspaceControllerUpdatePublicStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2215
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2216
+ });
2217
+ },
2165
2218
  /**
2166
2219
  * Upload file inside workspace
2167
2220
  * @summary Upload file
@@ -2603,6 +2656,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2603
2656
  workspaceControllerStopWorkspace(workspaceId, options) {
2604
2657
  return localVarFp.workspaceControllerStopWorkspace(workspaceId, options).then((request) => request(axios, basePath));
2605
2658
  },
2659
+ /**
2660
+ * Change public preview status of a workspace
2661
+ * @summary Change public preview status
2662
+ * @param {string} workspaceId ID of the workspace
2663
+ * @param {boolean} isPublic Public status to set
2664
+ * @param {*} [options] Override http request option.
2665
+ * @throws {RequiredError}
2666
+ */
2667
+ workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options) {
2668
+ return localVarFp.workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options).then((request) => request(axios, basePath));
2669
+ },
2606
2670
  /**
2607
2671
  * Upload file inside workspace
2608
2672
  * @summary Upload file
@@ -3078,6 +3142,18 @@ class DefaultApi extends base_1.BaseAPI {
3078
3142
  workspaceControllerStopWorkspace(workspaceId, options) {
3079
3143
  return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerStopWorkspace(workspaceId, options).then((request) => request(this.axios, this.basePath));
3080
3144
  }
3145
+ /**
3146
+ * Change public preview status of a workspace
3147
+ * @summary Change public preview status
3148
+ * @param {string} workspaceId ID of the workspace
3149
+ * @param {boolean} isPublic Public status to set
3150
+ * @param {*} [options] Override http request option.
3151
+ * @throws {RequiredError}
3152
+ * @memberof DefaultApi
3153
+ */
3154
+ workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options) {
3155
+ return (0, exports.DefaultApiFp)(this.configuration).workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options).then((request) => request(this.axios, this.basePath));
3156
+ }
3081
3157
  /**
3082
3158
  * Upload file inside workspace
3083
3159
  * @summary Upload file
@@ -364,6 +364,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
364
364
  * @throws {RequiredError}
365
365
  */
366
366
  workspaceControllerStopWorkspace: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
367
+ /**
368
+ * Change public preview status of a workspace
369
+ * @summary Change public preview status
370
+ * @param {string} workspaceId ID of the workspace
371
+ * @param {boolean} isPublic Public status to set
372
+ * @param {*} [options] Override http request option.
373
+ * @throws {RequiredError}
374
+ */
375
+ workspaceControllerUpdatePublicStatus: (workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
367
376
  /**
368
377
  * Upload file inside workspace
369
378
  * @summary Upload file
@@ -713,6 +722,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
713
722
  * @throws {RequiredError}
714
723
  */
715
724
  workspaceControllerStopWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
725
+ /**
726
+ * Change public preview status of a workspace
727
+ * @summary Change public preview status
728
+ * @param {string} workspaceId ID of the workspace
729
+ * @param {boolean} isPublic Public status to set
730
+ * @param {*} [options] Override http request option.
731
+ * @throws {RequiredError}
732
+ */
733
+ workspaceControllerUpdatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
716
734
  /**
717
735
  * Upload file inside workspace
718
736
  * @summary Upload file
@@ -1062,6 +1080,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1062
1080
  * @throws {RequiredError}
1063
1081
  */
1064
1082
  workspaceControllerStopWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1083
+ /**
1084
+ * Change public preview status of a workspace
1085
+ * @summary Change public preview status
1086
+ * @param {string} workspaceId ID of the workspace
1087
+ * @param {boolean} isPublic Public status to set
1088
+ * @param {*} [options] Override http request option.
1089
+ * @throws {RequiredError}
1090
+ */
1091
+ workspaceControllerUpdatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1065
1092
  /**
1066
1093
  * Upload file inside workspace
1067
1094
  * @summary Upload file
@@ -1453,6 +1480,16 @@ export declare class DefaultApi extends BaseAPI {
1453
1480
  * @memberof DefaultApi
1454
1481
  */
1455
1482
  workspaceControllerStopWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1483
+ /**
1484
+ * Change public preview status of a workspace
1485
+ * @summary Change public preview status
1486
+ * @param {string} workspaceId ID of the workspace
1487
+ * @param {boolean} isPublic Public status to set
1488
+ * @param {*} [options] Override http request option.
1489
+ * @throws {RequiredError}
1490
+ * @memberof DefaultApi
1491
+ */
1492
+ workspaceControllerUpdatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1456
1493
  /**
1457
1494
  * Upload file inside workspace
1458
1495
  * @summary Upload file
@@ -1451,6 +1451,42 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
1451
1451
  options: localVarRequestOptions,
1452
1452
  };
1453
1453
  }),
1454
+ /**
1455
+ * Change public preview status of a workspace
1456
+ * @summary Change public preview status
1457
+ * @param {string} workspaceId ID of the workspace
1458
+ * @param {boolean} isPublic Public status to set
1459
+ * @param {*} [options] Override http request option.
1460
+ * @throws {RequiredError}
1461
+ */
1462
+ workspaceControllerUpdatePublicStatus: (workspaceId_28, isPublic_1, ...args_41) => __awaiter(this, [workspaceId_28, isPublic_1, ...args_41], void 0, function* (workspaceId, isPublic, options = {}) {
1463
+ // verify required parameter 'workspaceId' is not null or undefined
1464
+ assertParamExists('workspaceControllerUpdatePublicStatus', 'workspaceId', workspaceId);
1465
+ // verify required parameter 'isPublic' is not null or undefined
1466
+ assertParamExists('workspaceControllerUpdatePublicStatus', 'isPublic', isPublic);
1467
+ const localVarPath = `/workspace/{workspaceId}/public/{isPublic}`
1468
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
1469
+ .replace(`{${"isPublic"}}`, encodeURIComponent(String(isPublic)));
1470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1471
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1472
+ let baseOptions;
1473
+ if (configuration) {
1474
+ baseOptions = configuration.baseOptions;
1475
+ }
1476
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1477
+ const localVarHeaderParameter = {};
1478
+ const localVarQueryParameter = {};
1479
+ // authentication oauth2 required
1480
+ // oauth required
1481
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1482
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1483
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1484
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1485
+ return {
1486
+ url: toPathString(localVarUrlObj),
1487
+ options: localVarRequestOptions,
1488
+ };
1489
+ }),
1454
1490
  /**
1455
1491
  * Upload file inside workspace
1456
1492
  * @summary Upload file
@@ -1460,7 +1496,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
1460
1496
  * @param {*} [options] Override http request option.
1461
1497
  * @throws {RequiredError}
1462
1498
  */
1463
- workspaceControllerUploadFile: (workspaceId_28, path_12, file_1, ...args_41) => __awaiter(this, [workspaceId_28, path_12, file_1, ...args_41], void 0, function* (workspaceId, path, file, options = {}) {
1499
+ workspaceControllerUploadFile: (workspaceId_29, path_12, file_1, ...args_42) => __awaiter(this, [workspaceId_29, path_12, file_1, ...args_42], void 0, function* (workspaceId, path, file, options = {}) {
1464
1500
  // verify required parameter 'workspaceId' is not null or undefined
1465
1501
  assertParamExists('workspaceControllerUploadFile', 'workspaceId', workspaceId);
1466
1502
  // verify required parameter 'path' is not null or undefined
@@ -2158,6 +2194,23 @@ export const DefaultApiFp = function (configuration) {
2158
2194
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2159
2195
  });
2160
2196
  },
2197
+ /**
2198
+ * Change public preview status of a workspace
2199
+ * @summary Change public preview status
2200
+ * @param {string} workspaceId ID of the workspace
2201
+ * @param {boolean} isPublic Public status to set
2202
+ * @param {*} [options] Override http request option.
2203
+ * @throws {RequiredError}
2204
+ */
2205
+ workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options) {
2206
+ return __awaiter(this, void 0, void 0, function* () {
2207
+ var _a, _b, _c;
2208
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options);
2209
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2210
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.workspaceControllerUpdatePublicStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2211
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2212
+ });
2213
+ },
2161
2214
  /**
2162
2215
  * Upload file inside workspace
2163
2216
  * @summary Upload file
@@ -2598,6 +2651,17 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
2598
2651
  workspaceControllerStopWorkspace(workspaceId, options) {
2599
2652
  return localVarFp.workspaceControllerStopWorkspace(workspaceId, options).then((request) => request(axios, basePath));
2600
2653
  },
2654
+ /**
2655
+ * Change public preview status of a workspace
2656
+ * @summary Change public preview status
2657
+ * @param {string} workspaceId ID of the workspace
2658
+ * @param {boolean} isPublic Public status to set
2659
+ * @param {*} [options] Override http request option.
2660
+ * @throws {RequiredError}
2661
+ */
2662
+ workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options) {
2663
+ return localVarFp.workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options).then((request) => request(axios, basePath));
2664
+ },
2601
2665
  /**
2602
2666
  * Upload file inside workspace
2603
2667
  * @summary Upload file
@@ -3072,6 +3136,18 @@ export class DefaultApi extends BaseAPI {
3072
3136
  workspaceControllerStopWorkspace(workspaceId, options) {
3073
3137
  return DefaultApiFp(this.configuration).workspaceControllerStopWorkspace(workspaceId, options).then((request) => request(this.axios, this.basePath));
3074
3138
  }
3139
+ /**
3140
+ * Change public preview status of a workspace
3141
+ * @summary Change public preview status
3142
+ * @param {string} workspaceId ID of the workspace
3143
+ * @param {boolean} isPublic Public status to set
3144
+ * @param {*} [options] Override http request option.
3145
+ * @throws {RequiredError}
3146
+ * @memberof DefaultApi
3147
+ */
3148
+ workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options) {
3149
+ return DefaultApiFp(this.configuration).workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options).then((request) => request(this.axios, this.basePath));
3150
+ }
3075
3151
  /**
3076
3152
  * Upload file inside workspace
3077
3153
  * @summary Upload file
@@ -47,6 +47,20 @@ export interface CreateWorkspaceDto {
47
47
  'env'?: {
48
48
  [key: string]: string;
49
49
  };
50
+ /**
51
+ * Labels for the workspace
52
+ * @type {{ [key: string]: string; }}
53
+ * @memberof CreateWorkspaceDto
54
+ */
55
+ 'labels'?: {
56
+ [key: string]: string;
57
+ };
58
+ /**
59
+ * Whether the workspace port preview is publicly accessible
60
+ * @type {boolean}
61
+ * @memberof CreateWorkspaceDto
62
+ */
63
+ 'public'?: boolean;
50
64
  /**
51
65
  * The workspace class type
52
66
  * @type {string}
@@ -47,6 +47,20 @@ export interface CreateWorkspaceDto {
47
47
  'env'?: {
48
48
  [key: string]: string;
49
49
  };
50
+ /**
51
+ * Labels for the workspace
52
+ * @type {{ [key: string]: string; }}
53
+ * @memberof CreateWorkspaceDto
54
+ */
55
+ 'labels'?: {
56
+ [key: string]: string;
57
+ };
58
+ /**
59
+ * Whether the workspace port preview is publicly accessible
60
+ * @type {boolean}
61
+ * @memberof CreateWorkspaceDto
62
+ */
63
+ 'public'?: boolean;
50
64
  /**
51
65
  * The workspace class type
52
66
  * @type {string}
@@ -50,6 +50,18 @@ export interface CreateWorkspaceDto {
50
50
  * @memberof CreateWorkspaceDto
51
51
  */
52
52
  'env'?: { [key: string]: string; };
53
+ /**
54
+ * Labels for the workspace
55
+ * @type {{ [key: string]: string; }}
56
+ * @memberof CreateWorkspaceDto
57
+ */
58
+ 'labels'?: { [key: string]: string; };
59
+ /**
60
+ * Whether the workspace port preview is publicly accessible
61
+ * @type {boolean}
62
+ * @memberof CreateWorkspaceDto
63
+ */
64
+ 'public'?: boolean;
53
65
  /**
54
66
  * The workspace class type
55
67
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daytonaio/api-client",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "OpenAPI client for @daytonaio/api-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {