qovery-ws-typescript-axios 0.1.238 → 0.1.239

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/api.ts CHANGED
@@ -436,6 +436,20 @@ export interface DatabaseStatusDto {
436
436
  }
437
437
 
438
438
 
439
+ /**
440
+ *
441
+ * @export
442
+ * @enum {string}
443
+ */
444
+
445
+ export const DebugFlavor = {
446
+ REGULAR_PRIVILEGE: 'REGULAR_PRIVILEGE',
447
+ FULL_PRIVILEGE: 'FULL_PRIVILEGE'
448
+ } as const;
449
+
450
+ export type DebugFlavor = typeof DebugFlavor[keyof typeof DebugFlavor];
451
+
452
+
439
453
  /**
440
454
  *
441
455
  * @export
@@ -1740,6 +1754,143 @@ export class LogsApi extends BaseAPI {
1740
1754
 
1741
1755
 
1742
1756
 
1757
+ /**
1758
+ * RemoteDebugApi - axios parameter creator
1759
+ * @export
1760
+ */
1761
+ export const RemoteDebugApiAxiosParamCreator = function (configuration?: Configuration) {
1762
+ return {
1763
+ /**
1764
+ *
1765
+ * @param {string} organization
1766
+ * @param {string} cluster
1767
+ * @param {DebugFlavor} flavor
1768
+ * @param {number} ttyWidth
1769
+ * @param {number} ttyHeight
1770
+ * @param {string | null} nodeSelector
1771
+ * @param {*} [options] Override http request option.
1772
+ * @throws {RequiredError}
1773
+ */
1774
+ handleShellRemoteDebug: async (organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1775
+ // verify required parameter 'organization' is not null or undefined
1776
+ assertParamExists('handleShellRemoteDebug', 'organization', organization)
1777
+ // verify required parameter 'cluster' is not null or undefined
1778
+ assertParamExists('handleShellRemoteDebug', 'cluster', cluster)
1779
+ // verify required parameter 'flavor' is not null or undefined
1780
+ assertParamExists('handleShellRemoteDebug', 'flavor', flavor)
1781
+ // verify required parameter 'ttyWidth' is not null or undefined
1782
+ assertParamExists('handleShellRemoteDebug', 'ttyWidth', ttyWidth)
1783
+ // verify required parameter 'ttyHeight' is not null or undefined
1784
+ assertParamExists('handleShellRemoteDebug', 'ttyHeight', ttyHeight)
1785
+ // verify required parameter 'nodeSelector' is not null or undefined
1786
+ assertParamExists('handleShellRemoteDebug', 'nodeSelector', nodeSelector)
1787
+ const localVarPath = `/shell/debug`
1788
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
1789
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
1790
+ .replace(`{${"flavor"}}`, encodeURIComponent(String(flavor)))
1791
+ .replace(`{${"tty_width"}}`, encodeURIComponent(String(ttyWidth)))
1792
+ .replace(`{${"tty_height"}}`, encodeURIComponent(String(ttyHeight)))
1793
+ .replace(`{${"node_selector"}}`, encodeURIComponent(String(nodeSelector)));
1794
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1795
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1796
+ let baseOptions;
1797
+ if (configuration) {
1798
+ baseOptions = configuration.baseOptions;
1799
+ }
1800
+
1801
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1802
+ const localVarHeaderParameter = {} as any;
1803
+ const localVarQueryParameter = {} as any;
1804
+
1805
+
1806
+
1807
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1808
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1809
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1810
+
1811
+ return {
1812
+ url: toPathString(localVarUrlObj),
1813
+ options: localVarRequestOptions,
1814
+ };
1815
+ },
1816
+ }
1817
+ };
1818
+
1819
+ /**
1820
+ * RemoteDebugApi - functional programming interface
1821
+ * @export
1822
+ */
1823
+ export const RemoteDebugApiFp = function(configuration?: Configuration) {
1824
+ const localVarAxiosParamCreator = RemoteDebugApiAxiosParamCreator(configuration)
1825
+ return {
1826
+ /**
1827
+ *
1828
+ * @param {string} organization
1829
+ * @param {string} cluster
1830
+ * @param {DebugFlavor} flavor
1831
+ * @param {number} ttyWidth
1832
+ * @param {number} ttyHeight
1833
+ * @param {string | null} nodeSelector
1834
+ * @param {*} [options] Override http request option.
1835
+ * @throws {RequiredError}
1836
+ */
1837
+ async handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
1838
+ const localVarAxiosArgs = await localVarAxiosParamCreator.handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options);
1839
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1840
+ },
1841
+ }
1842
+ };
1843
+
1844
+ /**
1845
+ * RemoteDebugApi - factory interface
1846
+ * @export
1847
+ */
1848
+ export const RemoteDebugApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1849
+ const localVarFp = RemoteDebugApiFp(configuration)
1850
+ return {
1851
+ /**
1852
+ *
1853
+ * @param {string} organization
1854
+ * @param {string} cluster
1855
+ * @param {DebugFlavor} flavor
1856
+ * @param {number} ttyWidth
1857
+ * @param {number} ttyHeight
1858
+ * @param {string | null} nodeSelector
1859
+ * @param {*} [options] Override http request option.
1860
+ * @throws {RequiredError}
1861
+ */
1862
+ handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?: any): AxiosPromise<string> {
1863
+ return localVarFp.handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options).then((request) => request(axios, basePath));
1864
+ },
1865
+ };
1866
+ };
1867
+
1868
+ /**
1869
+ * RemoteDebugApi - object-oriented interface
1870
+ * @export
1871
+ * @class RemoteDebugApi
1872
+ * @extends {BaseAPI}
1873
+ */
1874
+ export class RemoteDebugApi extends BaseAPI {
1875
+ /**
1876
+ *
1877
+ * @param {string} organization
1878
+ * @param {string} cluster
1879
+ * @param {DebugFlavor} flavor
1880
+ * @param {number} ttyWidth
1881
+ * @param {number} ttyHeight
1882
+ * @param {string | null} nodeSelector
1883
+ * @param {*} [options] Override http request option.
1884
+ * @throws {RequiredError}
1885
+ * @memberof RemoteDebugApi
1886
+ */
1887
+ public handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?: AxiosRequestConfig) {
1888
+ return RemoteDebugApiFp(this.configuration).handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options).then((request) => request(this.axios, this.basePath));
1889
+ }
1890
+ }
1891
+
1892
+
1893
+
1743
1894
  /**
1744
1895
  * ServiceListPodsApi - axios parameter creator
1745
1896
  * @export
package/dist/api.d.ts CHANGED
@@ -418,6 +418,16 @@ export interface DatabaseStatusDto {
418
418
  */
419
419
  'state': ServiceStateDto;
420
420
  }
421
+ /**
422
+ *
423
+ * @export
424
+ * @enum {string}
425
+ */
426
+ export declare const DebugFlavor: {
427
+ readonly REGULAR_PRIVILEGE: "REGULAR_PRIVILEGE";
428
+ readonly FULL_PRIVILEGE: "FULL_PRIVILEGE";
429
+ };
430
+ export type DebugFlavor = typeof DebugFlavor[keyof typeof DebugFlavor];
421
431
  /**
422
432
  *
423
433
  * @export
@@ -1379,6 +1389,81 @@ export declare class LogsApi extends BaseAPI {
1379
1389
  */
1380
1390
  handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ServiceLogResponseDto, any>>;
1381
1391
  }
1392
+ /**
1393
+ * RemoteDebugApi - axios parameter creator
1394
+ * @export
1395
+ */
1396
+ export declare const RemoteDebugApiAxiosParamCreator: (configuration?: Configuration) => {
1397
+ /**
1398
+ *
1399
+ * @param {string} organization
1400
+ * @param {string} cluster
1401
+ * @param {DebugFlavor} flavor
1402
+ * @param {number} ttyWidth
1403
+ * @param {number} ttyHeight
1404
+ * @param {string | null} nodeSelector
1405
+ * @param {*} [options] Override http request option.
1406
+ * @throws {RequiredError}
1407
+ */
1408
+ handleShellRemoteDebug: (organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1409
+ };
1410
+ /**
1411
+ * RemoteDebugApi - functional programming interface
1412
+ * @export
1413
+ */
1414
+ export declare const RemoteDebugApiFp: (configuration?: Configuration) => {
1415
+ /**
1416
+ *
1417
+ * @param {string} organization
1418
+ * @param {string} cluster
1419
+ * @param {DebugFlavor} flavor
1420
+ * @param {number} ttyWidth
1421
+ * @param {number} ttyHeight
1422
+ * @param {string | null} nodeSelector
1423
+ * @param {*} [options] Override http request option.
1424
+ * @throws {RequiredError}
1425
+ */
1426
+ handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
1427
+ };
1428
+ /**
1429
+ * RemoteDebugApi - factory interface
1430
+ * @export
1431
+ */
1432
+ export declare const RemoteDebugApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1433
+ /**
1434
+ *
1435
+ * @param {string} organization
1436
+ * @param {string} cluster
1437
+ * @param {DebugFlavor} flavor
1438
+ * @param {number} ttyWidth
1439
+ * @param {number} ttyHeight
1440
+ * @param {string | null} nodeSelector
1441
+ * @param {*} [options] Override http request option.
1442
+ * @throws {RequiredError}
1443
+ */
1444
+ handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?: any): AxiosPromise<string>;
1445
+ };
1446
+ /**
1447
+ * RemoteDebugApi - object-oriented interface
1448
+ * @export
1449
+ * @class RemoteDebugApi
1450
+ * @extends {BaseAPI}
1451
+ */
1452
+ export declare class RemoteDebugApi extends BaseAPI {
1453
+ /**
1454
+ *
1455
+ * @param {string} organization
1456
+ * @param {string} cluster
1457
+ * @param {DebugFlavor} flavor
1458
+ * @param {number} ttyWidth
1459
+ * @param {number} ttyHeight
1460
+ * @param {string | null} nodeSelector
1461
+ * @param {*} [options] Override http request option.
1462
+ * @throws {RequiredError}
1463
+ * @memberof RemoteDebugApi
1464
+ */
1465
+ handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
1466
+ }
1382
1467
  /**
1383
1468
  * ServiceListPodsApi - axios parameter creator
1384
1469
  * @export
package/dist/api.js CHANGED
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ShellApi = exports.ShellApiFactory = exports.ShellApiFp = exports.ShellApiAxiosParamCreator = exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ServiceMetricsApi = exports.ServiceMetricsApiFactory = exports.ServiceMetricsApiFp = exports.ServiceMetricsApiAxiosParamCreator = exports.ServiceListPodsApi = exports.ServiceListPodsApiFactory = exports.ServiceListPodsApiFp = exports.ServiceListPodsApiAxiosParamCreator = exports.LogsApi = exports.LogsApiFactory = exports.LogsApiFp = exports.LogsApiAxiosParamCreator = exports.DeploymentApi = exports.DeploymentApiFactory = exports.DeploymentApiFp = exports.DeploymentApiAxiosParamCreator = exports.ClusterStatusApi = exports.ClusterStatusApiFactory = exports.ClusterStatusApiFp = exports.ClusterStatusApiAxiosParamCreator = exports.ClusterListNodesApi = exports.ClusterListNodesApiFactory = exports.ClusterListNodesApiFp = exports.ClusterListNodesApiAxiosParamCreator = exports.UnitDto = exports.ServiceType = exports.ServiceStateDto = exports.ResourceStatusDto = exports.QoveryComponentContainerStatusLevel = exports.ClusterStatusGlobalStatus = void 0;
25
+ exports.ShellApi = exports.ShellApiFactory = exports.ShellApiFp = exports.ShellApiAxiosParamCreator = exports.ServiceStatusApi = exports.ServiceStatusApiFactory = exports.ServiceStatusApiFp = exports.ServiceStatusApiAxiosParamCreator = exports.ServiceMetricsApi = exports.ServiceMetricsApiFactory = exports.ServiceMetricsApiFp = exports.ServiceMetricsApiAxiosParamCreator = exports.ServiceListPodsApi = exports.ServiceListPodsApiFactory = exports.ServiceListPodsApiFp = exports.ServiceListPodsApiAxiosParamCreator = exports.RemoteDebugApi = exports.RemoteDebugApiFactory = exports.RemoteDebugApiFp = exports.RemoteDebugApiAxiosParamCreator = exports.LogsApi = exports.LogsApiFactory = exports.LogsApiFp = exports.LogsApiAxiosParamCreator = exports.DeploymentApi = exports.DeploymentApiFactory = exports.DeploymentApiFp = exports.DeploymentApiAxiosParamCreator = exports.ClusterStatusApi = exports.ClusterStatusApiFactory = exports.ClusterStatusApiFp = exports.ClusterStatusApiAxiosParamCreator = exports.ClusterListNodesApi = exports.ClusterListNodesApiFactory = exports.ClusterListNodesApiFp = exports.ClusterListNodesApiAxiosParamCreator = exports.UnitDto = exports.ServiceType = exports.ServiceStateDto = exports.ResourceStatusDto = exports.QoveryComponentContainerStatusLevel = exports.DebugFlavor = exports.ClusterStatusGlobalStatus = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -39,6 +39,15 @@ exports.ClusterStatusGlobalStatus = {
39
39
  WARNING: 'WARNING',
40
40
  ERROR: 'ERROR'
41
41
  };
42
+ /**
43
+ *
44
+ * @export
45
+ * @enum {string}
46
+ */
47
+ exports.DebugFlavor = {
48
+ REGULAR_PRIVILEGE: 'REGULAR_PRIVILEGE',
49
+ FULL_PRIVILEGE: 'FULL_PRIVILEGE'
50
+ };
42
51
  /**
43
52
  *
44
53
  * @export
@@ -740,6 +749,138 @@ class LogsApi extends base_1.BaseAPI {
740
749
  }
741
750
  }
742
751
  exports.LogsApi = LogsApi;
752
+ /**
753
+ * RemoteDebugApi - axios parameter creator
754
+ * @export
755
+ */
756
+ const RemoteDebugApiAxiosParamCreator = function (configuration) {
757
+ return {
758
+ /**
759
+ *
760
+ * @param {string} organization
761
+ * @param {string} cluster
762
+ * @param {DebugFlavor} flavor
763
+ * @param {number} ttyWidth
764
+ * @param {number} ttyHeight
765
+ * @param {string | null} nodeSelector
766
+ * @param {*} [options] Override http request option.
767
+ * @throws {RequiredError}
768
+ */
769
+ handleShellRemoteDebug: (organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options = {}) => __awaiter(this, void 0, void 0, function* () {
770
+ // verify required parameter 'organization' is not null or undefined
771
+ (0, common_1.assertParamExists)('handleShellRemoteDebug', 'organization', organization);
772
+ // verify required parameter 'cluster' is not null or undefined
773
+ (0, common_1.assertParamExists)('handleShellRemoteDebug', 'cluster', cluster);
774
+ // verify required parameter 'flavor' is not null or undefined
775
+ (0, common_1.assertParamExists)('handleShellRemoteDebug', 'flavor', flavor);
776
+ // verify required parameter 'ttyWidth' is not null or undefined
777
+ (0, common_1.assertParamExists)('handleShellRemoteDebug', 'ttyWidth', ttyWidth);
778
+ // verify required parameter 'ttyHeight' is not null or undefined
779
+ (0, common_1.assertParamExists)('handleShellRemoteDebug', 'ttyHeight', ttyHeight);
780
+ // verify required parameter 'nodeSelector' is not null or undefined
781
+ (0, common_1.assertParamExists)('handleShellRemoteDebug', 'nodeSelector', nodeSelector);
782
+ const localVarPath = `/shell/debug`
783
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
784
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
785
+ .replace(`{${"flavor"}}`, encodeURIComponent(String(flavor)))
786
+ .replace(`{${"tty_width"}}`, encodeURIComponent(String(ttyWidth)))
787
+ .replace(`{${"tty_height"}}`, encodeURIComponent(String(ttyHeight)))
788
+ .replace(`{${"node_selector"}}`, encodeURIComponent(String(nodeSelector)));
789
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
790
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
791
+ let baseOptions;
792
+ if (configuration) {
793
+ baseOptions = configuration.baseOptions;
794
+ }
795
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
796
+ const localVarHeaderParameter = {};
797
+ const localVarQueryParameter = {};
798
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
799
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
800
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
801
+ return {
802
+ url: (0, common_1.toPathString)(localVarUrlObj),
803
+ options: localVarRequestOptions,
804
+ };
805
+ }),
806
+ };
807
+ };
808
+ exports.RemoteDebugApiAxiosParamCreator = RemoteDebugApiAxiosParamCreator;
809
+ /**
810
+ * RemoteDebugApi - functional programming interface
811
+ * @export
812
+ */
813
+ const RemoteDebugApiFp = function (configuration) {
814
+ const localVarAxiosParamCreator = (0, exports.RemoteDebugApiAxiosParamCreator)(configuration);
815
+ return {
816
+ /**
817
+ *
818
+ * @param {string} organization
819
+ * @param {string} cluster
820
+ * @param {DebugFlavor} flavor
821
+ * @param {number} ttyWidth
822
+ * @param {number} ttyHeight
823
+ * @param {string | null} nodeSelector
824
+ * @param {*} [options] Override http request option.
825
+ * @throws {RequiredError}
826
+ */
827
+ handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options) {
828
+ return __awaiter(this, void 0, void 0, function* () {
829
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options);
830
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
831
+ });
832
+ },
833
+ };
834
+ };
835
+ exports.RemoteDebugApiFp = RemoteDebugApiFp;
836
+ /**
837
+ * RemoteDebugApi - factory interface
838
+ * @export
839
+ */
840
+ const RemoteDebugApiFactory = function (configuration, basePath, axios) {
841
+ const localVarFp = (0, exports.RemoteDebugApiFp)(configuration);
842
+ return {
843
+ /**
844
+ *
845
+ * @param {string} organization
846
+ * @param {string} cluster
847
+ * @param {DebugFlavor} flavor
848
+ * @param {number} ttyWidth
849
+ * @param {number} ttyHeight
850
+ * @param {string | null} nodeSelector
851
+ * @param {*} [options] Override http request option.
852
+ * @throws {RequiredError}
853
+ */
854
+ handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options) {
855
+ return localVarFp.handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options).then((request) => request(axios, basePath));
856
+ },
857
+ };
858
+ };
859
+ exports.RemoteDebugApiFactory = RemoteDebugApiFactory;
860
+ /**
861
+ * RemoteDebugApi - object-oriented interface
862
+ * @export
863
+ * @class RemoteDebugApi
864
+ * @extends {BaseAPI}
865
+ */
866
+ class RemoteDebugApi extends base_1.BaseAPI {
867
+ /**
868
+ *
869
+ * @param {string} organization
870
+ * @param {string} cluster
871
+ * @param {DebugFlavor} flavor
872
+ * @param {number} ttyWidth
873
+ * @param {number} ttyHeight
874
+ * @param {string | null} nodeSelector
875
+ * @param {*} [options] Override http request option.
876
+ * @throws {RequiredError}
877
+ * @memberof RemoteDebugApi
878
+ */
879
+ handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options) {
880
+ return (0, exports.RemoteDebugApiFp)(this.configuration).handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options).then((request) => request(this.axios, this.basePath));
881
+ }
882
+ }
883
+ exports.RemoteDebugApi = RemoteDebugApi;
743
884
  /**
744
885
  * ServiceListPodsApi - axios parameter creator
745
886
  * @export
package/dist/esm/api.d.ts CHANGED
@@ -418,6 +418,16 @@ export interface DatabaseStatusDto {
418
418
  */
419
419
  'state': ServiceStateDto;
420
420
  }
421
+ /**
422
+ *
423
+ * @export
424
+ * @enum {string}
425
+ */
426
+ export declare const DebugFlavor: {
427
+ readonly REGULAR_PRIVILEGE: "REGULAR_PRIVILEGE";
428
+ readonly FULL_PRIVILEGE: "FULL_PRIVILEGE";
429
+ };
430
+ export type DebugFlavor = typeof DebugFlavor[keyof typeof DebugFlavor];
421
431
  /**
422
432
  *
423
433
  * @export
@@ -1379,6 +1389,81 @@ export declare class LogsApi extends BaseAPI {
1379
1389
  */
1380
1390
  handleServiceLogsRequest(organization: string, cluster: string, project: string, environment: string, service: string, podName: string | null, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ServiceLogResponseDto, any>>;
1381
1391
  }
1392
+ /**
1393
+ * RemoteDebugApi - axios parameter creator
1394
+ * @export
1395
+ */
1396
+ export declare const RemoteDebugApiAxiosParamCreator: (configuration?: Configuration) => {
1397
+ /**
1398
+ *
1399
+ * @param {string} organization
1400
+ * @param {string} cluster
1401
+ * @param {DebugFlavor} flavor
1402
+ * @param {number} ttyWidth
1403
+ * @param {number} ttyHeight
1404
+ * @param {string | null} nodeSelector
1405
+ * @param {*} [options] Override http request option.
1406
+ * @throws {RequiredError}
1407
+ */
1408
+ handleShellRemoteDebug: (organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1409
+ };
1410
+ /**
1411
+ * RemoteDebugApi - functional programming interface
1412
+ * @export
1413
+ */
1414
+ export declare const RemoteDebugApiFp: (configuration?: Configuration) => {
1415
+ /**
1416
+ *
1417
+ * @param {string} organization
1418
+ * @param {string} cluster
1419
+ * @param {DebugFlavor} flavor
1420
+ * @param {number} ttyWidth
1421
+ * @param {number} ttyHeight
1422
+ * @param {string | null} nodeSelector
1423
+ * @param {*} [options] Override http request option.
1424
+ * @throws {RequiredError}
1425
+ */
1426
+ handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
1427
+ };
1428
+ /**
1429
+ * RemoteDebugApi - factory interface
1430
+ * @export
1431
+ */
1432
+ export declare const RemoteDebugApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1433
+ /**
1434
+ *
1435
+ * @param {string} organization
1436
+ * @param {string} cluster
1437
+ * @param {DebugFlavor} flavor
1438
+ * @param {number} ttyWidth
1439
+ * @param {number} ttyHeight
1440
+ * @param {string | null} nodeSelector
1441
+ * @param {*} [options] Override http request option.
1442
+ * @throws {RequiredError}
1443
+ */
1444
+ handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?: any): AxiosPromise<string>;
1445
+ };
1446
+ /**
1447
+ * RemoteDebugApi - object-oriented interface
1448
+ * @export
1449
+ * @class RemoteDebugApi
1450
+ * @extends {BaseAPI}
1451
+ */
1452
+ export declare class RemoteDebugApi extends BaseAPI {
1453
+ /**
1454
+ *
1455
+ * @param {string} organization
1456
+ * @param {string} cluster
1457
+ * @param {DebugFlavor} flavor
1458
+ * @param {number} ttyWidth
1459
+ * @param {number} ttyHeight
1460
+ * @param {string | null} nodeSelector
1461
+ * @param {*} [options] Override http request option.
1462
+ * @throws {RequiredError}
1463
+ * @memberof RemoteDebugApi
1464
+ */
1465
+ handleShellRemoteDebug(organization: string, cluster: string, flavor: DebugFlavor, ttyWidth: number, ttyHeight: number, nodeSelector: string | null, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
1466
+ }
1382
1467
  /**
1383
1468
  * ServiceListPodsApi - axios parameter creator
1384
1469
  * @export
package/dist/esm/api.js CHANGED
@@ -36,6 +36,15 @@ export const ClusterStatusGlobalStatus = {
36
36
  WARNING: 'WARNING',
37
37
  ERROR: 'ERROR'
38
38
  };
39
+ /**
40
+ *
41
+ * @export
42
+ * @enum {string}
43
+ */
44
+ export const DebugFlavor = {
45
+ REGULAR_PRIVILEGE: 'REGULAR_PRIVILEGE',
46
+ FULL_PRIVILEGE: 'FULL_PRIVILEGE'
47
+ };
39
48
  /**
40
49
  *
41
50
  * @export
@@ -721,6 +730,134 @@ export class LogsApi extends BaseAPI {
721
730
  return LogsApiFp(this.configuration).handleServiceLogsRequest(organization, cluster, project, environment, service, podName, options).then((request) => request(this.axios, this.basePath));
722
731
  }
723
732
  }
733
+ /**
734
+ * RemoteDebugApi - axios parameter creator
735
+ * @export
736
+ */
737
+ export const RemoteDebugApiAxiosParamCreator = function (configuration) {
738
+ return {
739
+ /**
740
+ *
741
+ * @param {string} organization
742
+ * @param {string} cluster
743
+ * @param {DebugFlavor} flavor
744
+ * @param {number} ttyWidth
745
+ * @param {number} ttyHeight
746
+ * @param {string | null} nodeSelector
747
+ * @param {*} [options] Override http request option.
748
+ * @throws {RequiredError}
749
+ */
750
+ handleShellRemoteDebug: (organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options = {}) => __awaiter(this, void 0, void 0, function* () {
751
+ // verify required parameter 'organization' is not null or undefined
752
+ assertParamExists('handleShellRemoteDebug', 'organization', organization);
753
+ // verify required parameter 'cluster' is not null or undefined
754
+ assertParamExists('handleShellRemoteDebug', 'cluster', cluster);
755
+ // verify required parameter 'flavor' is not null or undefined
756
+ assertParamExists('handleShellRemoteDebug', 'flavor', flavor);
757
+ // verify required parameter 'ttyWidth' is not null or undefined
758
+ assertParamExists('handleShellRemoteDebug', 'ttyWidth', ttyWidth);
759
+ // verify required parameter 'ttyHeight' is not null or undefined
760
+ assertParamExists('handleShellRemoteDebug', 'ttyHeight', ttyHeight);
761
+ // verify required parameter 'nodeSelector' is not null or undefined
762
+ assertParamExists('handleShellRemoteDebug', 'nodeSelector', nodeSelector);
763
+ const localVarPath = `/shell/debug`
764
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
765
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
766
+ .replace(`{${"flavor"}}`, encodeURIComponent(String(flavor)))
767
+ .replace(`{${"tty_width"}}`, encodeURIComponent(String(ttyWidth)))
768
+ .replace(`{${"tty_height"}}`, encodeURIComponent(String(ttyHeight)))
769
+ .replace(`{${"node_selector"}}`, encodeURIComponent(String(nodeSelector)));
770
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
771
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
772
+ let baseOptions;
773
+ if (configuration) {
774
+ baseOptions = configuration.baseOptions;
775
+ }
776
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
777
+ const localVarHeaderParameter = {};
778
+ const localVarQueryParameter = {};
779
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
780
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
781
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
782
+ return {
783
+ url: toPathString(localVarUrlObj),
784
+ options: localVarRequestOptions,
785
+ };
786
+ }),
787
+ };
788
+ };
789
+ /**
790
+ * RemoteDebugApi - functional programming interface
791
+ * @export
792
+ */
793
+ export const RemoteDebugApiFp = function (configuration) {
794
+ const localVarAxiosParamCreator = RemoteDebugApiAxiosParamCreator(configuration);
795
+ return {
796
+ /**
797
+ *
798
+ * @param {string} organization
799
+ * @param {string} cluster
800
+ * @param {DebugFlavor} flavor
801
+ * @param {number} ttyWidth
802
+ * @param {number} ttyHeight
803
+ * @param {string | null} nodeSelector
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options) {
808
+ return __awaiter(this, void 0, void 0, function* () {
809
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options);
810
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
811
+ });
812
+ },
813
+ };
814
+ };
815
+ /**
816
+ * RemoteDebugApi - factory interface
817
+ * @export
818
+ */
819
+ export const RemoteDebugApiFactory = function (configuration, basePath, axios) {
820
+ const localVarFp = RemoteDebugApiFp(configuration);
821
+ return {
822
+ /**
823
+ *
824
+ * @param {string} organization
825
+ * @param {string} cluster
826
+ * @param {DebugFlavor} flavor
827
+ * @param {number} ttyWidth
828
+ * @param {number} ttyHeight
829
+ * @param {string | null} nodeSelector
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ */
833
+ handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options) {
834
+ return localVarFp.handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options).then((request) => request(axios, basePath));
835
+ },
836
+ };
837
+ };
838
+ /**
839
+ * RemoteDebugApi - object-oriented interface
840
+ * @export
841
+ * @class RemoteDebugApi
842
+ * @extends {BaseAPI}
843
+ */
844
+ export class RemoteDebugApi extends BaseAPI {
845
+ /**
846
+ *
847
+ * @param {string} organization
848
+ * @param {string} cluster
849
+ * @param {DebugFlavor} flavor
850
+ * @param {number} ttyWidth
851
+ * @param {number} ttyHeight
852
+ * @param {string | null} nodeSelector
853
+ * @param {*} [options] Override http request option.
854
+ * @throws {RequiredError}
855
+ * @memberof RemoteDebugApi
856
+ */
857
+ handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options) {
858
+ return RemoteDebugApiFp(this.configuration).handleShellRemoteDebug(organization, cluster, flavor, ttyWidth, ttyHeight, nodeSelector, options).then((request) => request(this.axios, this.basePath));
859
+ }
860
+ }
724
861
  /**
725
862
  * ServiceListPodsApi - axios parameter creator
726
863
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-ws-typescript-axios",
3
- "version": "v0.1.238",
3
+ "version": "v0.1.239",
4
4
  "description": "OpenAPI client for qovery-ws-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {