qovery-typescript-axios 1.1.905 → 1.1.907

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
@@ -14400,11 +14400,11 @@ export interface HelmRequest {
14400
14400
  */
14401
14401
  'icon_uri'?: string;
14402
14402
  /**
14403
- * The blueprint ID the service has been created from
14403
+ * The blueprint ID the service has been created from
14404
14404
  * @type {string}
14405
14405
  * @memberof HelmRequest
14406
14406
  */
14407
- 'blueprintId'?: string | null;
14407
+ 'blueprint_id'?: string | null;
14408
14408
  }
14409
14409
  /**
14410
14410
  * @type HelmRequestAllOfSource
@@ -14671,7 +14671,7 @@ export interface HelmResponse {
14671
14671
  * @type {string}
14672
14672
  * @memberof HelmResponse
14673
14673
  */
14674
- 'blueprintId'?: string | null;
14674
+ 'blueprint_id'?: string | null;
14675
14675
  }
14676
14676
 
14677
14677
 
@@ -23047,11 +23047,11 @@ export interface TerraformRequest {
23047
23047
  */
23048
23048
  'dockerfile_fragment'?: TerraformRequestDockerfileFragment | null;
23049
23049
  /**
23050
- * The blueprint ID the service has been created from
23050
+ * The blueprint ID the service has been created from
23051
23051
  * @type {string}
23052
23052
  * @memberof TerraformRequest
23053
23053
  */
23054
- 'blueprintId'?: string | null;
23054
+ 'blueprint_id'?: string | null;
23055
23055
  }
23056
23056
 
23057
23057
 
@@ -23344,7 +23344,7 @@ export interface TerraformResponse {
23344
23344
  * @type {string}
23345
23345
  * @memberof TerraformResponse
23346
23346
  */
23347
- 'blueprintId'?: string | null;
23347
+ 'blueprint_id'?: string | null;
23348
23348
  }
23349
23349
 
23350
23350
 
@@ -36554,10 +36554,11 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
36554
36554
  * @param {string} organizationId Organization ID
36555
36555
  * @param {string} clusterId Cluster ID
36556
36556
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
36557
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
36557
36558
  * @param {*} [options] Override http request option.
36558
36559
  * @throws {RequiredError}
36559
36560
  */
36560
- getClusterKubeconfig: async (organizationId: string, clusterId: string, withTokenFromCli?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
36561
+ getClusterKubeconfig: async (organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
36561
36562
  // verify required parameter 'organizationId' is not null or undefined
36562
36563
  assertParamExists('getClusterKubeconfig', 'organizationId', organizationId)
36563
36564
  // verify required parameter 'clusterId' is not null or undefined
@@ -36587,6 +36588,10 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
36587
36588
  localVarQueryParameter['with_token_from_cli'] = withTokenFromCli;
36588
36589
  }
36589
36590
 
36591
+ if (readOnly !== undefined) {
36592
+ localVarQueryParameter['read_only'] = readOnly;
36593
+ }
36594
+
36590
36595
 
36591
36596
 
36592
36597
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -37890,11 +37895,12 @@ export const ClustersApiFp = function(configuration?: Configuration) {
37890
37895
  * @param {string} organizationId Organization ID
37891
37896
  * @param {string} clusterId Cluster ID
37892
37897
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
37898
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
37893
37899
  * @param {*} [options] Override http request option.
37894
37900
  * @throws {RequiredError}
37895
37901
  */
37896
- async getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
37897
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options);
37902
+ async getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
37903
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options);
37898
37904
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
37899
37905
  const localVarOperationServerBasePath = operationServerMap['ClustersApi.getClusterKubeconfig']?.[localVarOperationServerIndex]?.url;
37900
37906
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -38362,11 +38368,12 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
38362
38368
  * @param {string} organizationId Organization ID
38363
38369
  * @param {string} clusterId Cluster ID
38364
38370
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
38371
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
38365
38372
  * @param {*} [options] Override http request option.
38366
38373
  * @throws {RequiredError}
38367
38374
  */
38368
- getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<string> {
38369
- return localVarFp.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options).then((request) => request(axios, basePath));
38375
+ getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<string> {
38376
+ return localVarFp.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options).then((request) => request(axios, basePath));
38370
38377
  },
38371
38378
  /**
38372
38379
  * List Cluster Kubernetes Events
@@ -38785,12 +38792,13 @@ export class ClustersApi extends BaseAPI {
38785
38792
  * @param {string} organizationId Organization ID
38786
38793
  * @param {string} clusterId Cluster ID
38787
38794
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
38795
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
38788
38796
  * @param {*} [options] Override http request option.
38789
38797
  * @throws {RequiredError}
38790
38798
  * @memberof ClustersApi
38791
38799
  */
38792
- public getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: RawAxiosRequestConfig) {
38793
- return ClustersApiFp(this.configuration).getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options).then((request) => request(this.axios, this.basePath));
38800
+ public getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options?: RawAxiosRequestConfig) {
38801
+ return ClustersApiFp(this.configuration).getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options).then((request) => request(this.axios, this.basePath));
38794
38802
  }
38795
38803
 
38796
38804
  /**
@@ -45527,10 +45535,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
45527
45535
  *
45528
45536
  * @summary Get cluster token by clusterId
45529
45537
  * @param {string} clusterId
45538
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
45530
45539
  * @param {*} [options] Override http request option.
45531
45540
  * @throws {RequiredError}
45532
45541
  */
45533
- getClusterTokenByClusterId: async (clusterId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
45542
+ getClusterTokenByClusterId: async (clusterId: string, readOnly?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
45534
45543
  // verify required parameter 'clusterId' is not null or undefined
45535
45544
  assertParamExists('getClusterTokenByClusterId', 'clusterId', clusterId)
45536
45545
  const localVarPath = `/cluster/{clusterId}/token`
@@ -45553,6 +45562,10 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
45553
45562
  // http bearer authentication required
45554
45563
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
45555
45564
 
45565
+ if (readOnly !== undefined) {
45566
+ localVarQueryParameter['read_only'] = readOnly;
45567
+ }
45568
+
45556
45569
 
45557
45570
 
45558
45571
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -45622,11 +45635,12 @@ export const DefaultApiFp = function(configuration?: Configuration) {
45622
45635
  *
45623
45636
  * @summary Get cluster token by clusterId
45624
45637
  * @param {string} clusterId
45638
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
45625
45639
  * @param {*} [options] Override http request option.
45626
45640
  * @throws {RequiredError}
45627
45641
  */
45628
- async getClusterTokenByClusterId(clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClusterTokenByClusterId200Response>> {
45629
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterTokenByClusterId(clusterId, options);
45642
+ async getClusterTokenByClusterId(clusterId: string, readOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClusterTokenByClusterId200Response>> {
45643
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterTokenByClusterId(clusterId, readOnly, options);
45630
45644
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
45631
45645
  const localVarOperationServerBasePath = operationServerMap['DefaultApi.getClusterTokenByClusterId']?.[localVarOperationServerIndex]?.url;
45632
45646
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -45658,11 +45672,12 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
45658
45672
  *
45659
45673
  * @summary Get cluster token by clusterId
45660
45674
  * @param {string} clusterId
45675
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
45661
45676
  * @param {*} [options] Override http request option.
45662
45677
  * @throws {RequiredError}
45663
45678
  */
45664
- getClusterTokenByClusterId(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetClusterTokenByClusterId200Response> {
45665
- return localVarFp.getClusterTokenByClusterId(clusterId, options).then((request) => request(axios, basePath));
45679
+ getClusterTokenByClusterId(clusterId: string, readOnly?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<GetClusterTokenByClusterId200Response> {
45680
+ return localVarFp.getClusterTokenByClusterId(clusterId, readOnly, options).then((request) => request(axios, basePath));
45666
45681
  },
45667
45682
  /**
45668
45683
  *
@@ -45688,12 +45703,13 @@ export class DefaultApi extends BaseAPI {
45688
45703
  *
45689
45704
  * @summary Get cluster token by clusterId
45690
45705
  * @param {string} clusterId
45706
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
45691
45707
  * @param {*} [options] Override http request option.
45692
45708
  * @throws {RequiredError}
45693
45709
  * @memberof DefaultApi
45694
45710
  */
45695
- public getClusterTokenByClusterId(clusterId: string, options?: RawAxiosRequestConfig) {
45696
- return DefaultApiFp(this.configuration).getClusterTokenByClusterId(clusterId, options).then((request) => request(this.axios, this.basePath));
45711
+ public getClusterTokenByClusterId(clusterId: string, readOnly?: boolean, options?: RawAxiosRequestConfig) {
45712
+ return DefaultApiFp(this.configuration).getClusterTokenByClusterId(clusterId, readOnly, options).then((request) => request(this.axios, this.basePath));
45697
45713
  }
45698
45714
 
45699
45715
  /**
package/dist/api.d.ts CHANGED
@@ -13949,7 +13949,7 @@ export interface HelmRequest {
13949
13949
  * @type {string}
13950
13950
  * @memberof HelmRequest
13951
13951
  */
13952
- 'blueprintId'?: string | null;
13952
+ 'blueprint_id'?: string | null;
13953
13953
  }
13954
13954
  /**
13955
13955
  * @type HelmRequestAllOfSource
@@ -14215,7 +14215,7 @@ export interface HelmResponse {
14215
14215
  * @type {string}
14216
14216
  * @memberof HelmResponse
14217
14217
  */
14218
- 'blueprintId'?: string | null;
14218
+ 'blueprint_id'?: string | null;
14219
14219
  }
14220
14220
  /**
14221
14221
  * @type HelmResponseAllOfPorts
@@ -22302,7 +22302,7 @@ export interface TerraformRequest {
22302
22302
  * @type {string}
22303
22303
  * @memberof TerraformRequest
22304
22304
  */
22305
- 'blueprintId'?: string | null;
22305
+ 'blueprint_id'?: string | null;
22306
22306
  }
22307
22307
  /**
22308
22308
  * @type TerraformRequestDockerfileFragment
@@ -22596,7 +22596,7 @@ export interface TerraformResponse {
22596
22596
  * @type {string}
22597
22597
  * @memberof TerraformResponse
22598
22598
  */
22599
- 'blueprintId'?: string | null;
22599
+ 'blueprint_id'?: string | null;
22600
22600
  }
22601
22601
  /**
22602
22602
  * @type TerraformResponseAllOfDockerfileFragment
@@ -29023,10 +29023,11 @@ export declare const ClustersApiAxiosParamCreator: (configuration?: Configuratio
29023
29023
  * @param {string} organizationId Organization ID
29024
29024
  * @param {string} clusterId Cluster ID
29025
29025
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
29026
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
29026
29027
  * @param {*} [options] Override http request option.
29027
29028
  * @throws {RequiredError}
29028
29029
  */
29029
- getClusterKubeconfig: (organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29030
+ getClusterKubeconfig: (organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29030
29031
  /**
29031
29032
  * List Cluster Kubernetes Events
29032
29033
  * @summary List Cluster Kubernetes Events
@@ -29356,10 +29357,11 @@ export declare const ClustersApiFp: (configuration?: Configuration) => {
29356
29357
  * @param {string} organizationId Organization ID
29357
29358
  * @param {string} clusterId Cluster ID
29358
29359
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
29360
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
29359
29361
  * @param {*} [options] Override http request option.
29360
29362
  * @throws {RequiredError}
29361
29363
  */
29362
- getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
29364
+ getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
29363
29365
  /**
29364
29366
  * List Cluster Kubernetes Events
29365
29367
  * @summary List Cluster Kubernetes Events
@@ -29689,10 +29691,11 @@ export declare const ClustersApiFactory: (configuration?: Configuration, basePat
29689
29691
  * @param {string} organizationId Organization ID
29690
29692
  * @param {string} clusterId Cluster ID
29691
29693
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
29694
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
29692
29695
  * @param {*} [options] Override http request option.
29693
29696
  * @throws {RequiredError}
29694
29697
  */
29695
- getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<string>;
29698
+ getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<string>;
29696
29699
  /**
29697
29700
  * List Cluster Kubernetes Events
29698
29701
  * @summary List Cluster Kubernetes Events
@@ -30034,11 +30037,12 @@ export declare class ClustersApi extends BaseAPI {
30034
30037
  * @param {string} organizationId Organization ID
30035
30038
  * @param {string} clusterId Cluster ID
30036
30039
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
30040
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
30037
30041
  * @param {*} [options] Override http request option.
30038
30042
  * @throws {RequiredError}
30039
30043
  * @memberof ClustersApi
30040
30044
  */
30041
- getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
30045
+ getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
30042
30046
  /**
30043
30047
  * List Cluster Kubernetes Events
30044
30048
  * @summary List Cluster Kubernetes Events
@@ -33255,10 +33259,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
33255
33259
  *
33256
33260
  * @summary Get cluster token by clusterId
33257
33261
  * @param {string} clusterId
33262
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
33258
33263
  * @param {*} [options] Override http request option.
33259
33264
  * @throws {RequiredError}
33260
33265
  */
33261
- getClusterTokenByClusterId: (clusterId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33266
+ getClusterTokenByClusterId: (clusterId: string, readOnly?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33262
33267
  /**
33263
33268
  *
33264
33269
  * @summary Get Deployment Status By DeploymentRequestId
@@ -33277,10 +33282,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
33277
33282
  *
33278
33283
  * @summary Get cluster token by clusterId
33279
33284
  * @param {string} clusterId
33285
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
33280
33286
  * @param {*} [options] Override http request option.
33281
33287
  * @throws {RequiredError}
33282
33288
  */
33283
- getClusterTokenByClusterId(clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClusterTokenByClusterId200Response>>;
33289
+ getClusterTokenByClusterId(clusterId: string, readOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClusterTokenByClusterId200Response>>;
33284
33290
  /**
33285
33291
  *
33286
33292
  * @summary Get Deployment Status By DeploymentRequestId
@@ -33299,10 +33305,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
33299
33305
  *
33300
33306
  * @summary Get cluster token by clusterId
33301
33307
  * @param {string} clusterId
33308
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
33302
33309
  * @param {*} [options] Override http request option.
33303
33310
  * @throws {RequiredError}
33304
33311
  */
33305
- getClusterTokenByClusterId(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetClusterTokenByClusterId200Response>;
33312
+ getClusterTokenByClusterId(clusterId: string, readOnly?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<GetClusterTokenByClusterId200Response>;
33306
33313
  /**
33307
33314
  *
33308
33315
  * @summary Get Deployment Status By DeploymentRequestId
@@ -33323,11 +33330,12 @@ export declare class DefaultApi extends BaseAPI {
33323
33330
  *
33324
33331
  * @summary Get cluster token by clusterId
33325
33332
  * @param {string} clusterId
33333
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
33326
33334
  * @param {*} [options] Override http request option.
33327
33335
  * @throws {RequiredError}
33328
33336
  * @memberof DefaultApi
33329
33337
  */
33330
- getClusterTokenByClusterId(clusterId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetClusterTokenByClusterId200Response, any, {}>>;
33338
+ getClusterTokenByClusterId(clusterId: string, readOnly?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetClusterTokenByClusterId200Response, any, {}>>;
33331
33339
  /**
33332
33340
  *
33333
33341
  * @summary Get Deployment Status By DeploymentRequestId
package/dist/api.js CHANGED
@@ -12837,10 +12837,11 @@ const ClustersApiAxiosParamCreator = function (configuration) {
12837
12837
  * @param {string} organizationId Organization ID
12838
12838
  * @param {string} clusterId Cluster ID
12839
12839
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
12840
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
12840
12841
  * @param {*} [options] Override http request option.
12841
12842
  * @throws {RequiredError}
12842
12843
  */
12843
- getClusterKubeconfig: (organizationId_1, clusterId_1, withTokenFromCli_1, ...args_1) => __awaiter(this, [organizationId_1, clusterId_1, withTokenFromCli_1, ...args_1], void 0, function* (organizationId, clusterId, withTokenFromCli, options = {}) {
12844
+ getClusterKubeconfig: (organizationId_1, clusterId_1, withTokenFromCli_1, readOnly_1, ...args_1) => __awaiter(this, [organizationId_1, clusterId_1, withTokenFromCli_1, readOnly_1, ...args_1], void 0, function* (organizationId, clusterId, withTokenFromCli, readOnly, options = {}) {
12844
12845
  // verify required parameter 'organizationId' is not null or undefined
12845
12846
  (0, common_1.assertParamExists)('getClusterKubeconfig', 'organizationId', organizationId);
12846
12847
  // verify required parameter 'clusterId' is not null or undefined
@@ -12865,6 +12866,9 @@ const ClustersApiAxiosParamCreator = function (configuration) {
12865
12866
  if (withTokenFromCli !== undefined) {
12866
12867
  localVarQueryParameter['with_token_from_cli'] = withTokenFromCli;
12867
12868
  }
12869
+ if (readOnly !== undefined) {
12870
+ localVarQueryParameter['read_only'] = readOnly;
12871
+ }
12868
12872
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12869
12873
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12870
12874
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -14006,13 +14010,14 @@ const ClustersApiFp = function (configuration) {
14006
14010
  * @param {string} organizationId Organization ID
14007
14011
  * @param {string} clusterId Cluster ID
14008
14012
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
14013
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
14009
14014
  * @param {*} [options] Override http request option.
14010
14015
  * @throws {RequiredError}
14011
14016
  */
14012
- getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options) {
14017
+ getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options) {
14013
14018
  return __awaiter(this, void 0, void 0, function* () {
14014
14019
  var _a, _b, _c;
14015
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options);
14020
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options);
14016
14021
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14017
14022
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClustersApi.getClusterKubeconfig']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14018
14023
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -14547,11 +14552,12 @@ const ClustersApiFactory = function (configuration, basePath, axios) {
14547
14552
  * @param {string} organizationId Organization ID
14548
14553
  * @param {string} clusterId Cluster ID
14549
14554
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
14555
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
14550
14556
  * @param {*} [options] Override http request option.
14551
14557
  * @throws {RequiredError}
14552
14558
  */
14553
- getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options) {
14554
- return localVarFp.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options).then((request) => request(axios, basePath));
14559
+ getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options) {
14560
+ return localVarFp.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options).then((request) => request(axios, basePath));
14555
14561
  },
14556
14562
  /**
14557
14563
  * List Cluster Kubernetes Events
@@ -14960,12 +14966,13 @@ class ClustersApi extends base_1.BaseAPI {
14960
14966
  * @param {string} organizationId Organization ID
14961
14967
  * @param {string} clusterId Cluster ID
14962
14968
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
14969
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
14963
14970
  * @param {*} [options] Override http request option.
14964
14971
  * @throws {RequiredError}
14965
14972
  * @memberof ClustersApi
14966
14973
  */
14967
- getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options) {
14968
- return (0, exports.ClustersApiFp)(this.configuration).getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options).then((request) => request(this.axios, this.basePath));
14974
+ getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options) {
14975
+ return (0, exports.ClustersApiFp)(this.configuration).getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options).then((request) => request(this.axios, this.basePath));
14969
14976
  }
14970
14977
  /**
14971
14978
  * List Cluster Kubernetes Events
@@ -21269,10 +21276,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
21269
21276
  *
21270
21277
  * @summary Get cluster token by clusterId
21271
21278
  * @param {string} clusterId
21279
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
21272
21280
  * @param {*} [options] Override http request option.
21273
21281
  * @throws {RequiredError}
21274
21282
  */
21275
- getClusterTokenByClusterId: (clusterId_1, ...args_1) => __awaiter(this, [clusterId_1, ...args_1], void 0, function* (clusterId, options = {}) {
21283
+ getClusterTokenByClusterId: (clusterId_1, readOnly_1, ...args_1) => __awaiter(this, [clusterId_1, readOnly_1, ...args_1], void 0, function* (clusterId, readOnly, options = {}) {
21276
21284
  // verify required parameter 'clusterId' is not null or undefined
21277
21285
  (0, common_1.assertParamExists)('getClusterTokenByClusterId', 'clusterId', clusterId);
21278
21286
  const localVarPath = `/cluster/{clusterId}/token`
@@ -21291,6 +21299,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
21291
21299
  // authentication bearerAuth required
21292
21300
  // http bearer authentication required
21293
21301
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
21302
+ if (readOnly !== undefined) {
21303
+ localVarQueryParameter['read_only'] = readOnly;
21304
+ }
21294
21305
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
21295
21306
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21296
21307
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -21349,13 +21360,14 @@ const DefaultApiFp = function (configuration) {
21349
21360
  *
21350
21361
  * @summary Get cluster token by clusterId
21351
21362
  * @param {string} clusterId
21363
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
21352
21364
  * @param {*} [options] Override http request option.
21353
21365
  * @throws {RequiredError}
21354
21366
  */
21355
- getClusterTokenByClusterId(clusterId, options) {
21367
+ getClusterTokenByClusterId(clusterId, readOnly, options) {
21356
21368
  return __awaiter(this, void 0, void 0, function* () {
21357
21369
  var _a, _b, _c;
21358
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClusterTokenByClusterId(clusterId, options);
21370
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClusterTokenByClusterId(clusterId, readOnly, options);
21359
21371
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
21360
21372
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.getClusterTokenByClusterId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
21361
21373
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -21391,11 +21403,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
21391
21403
  *
21392
21404
  * @summary Get cluster token by clusterId
21393
21405
  * @param {string} clusterId
21406
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
21394
21407
  * @param {*} [options] Override http request option.
21395
21408
  * @throws {RequiredError}
21396
21409
  */
21397
- getClusterTokenByClusterId(clusterId, options) {
21398
- return localVarFp.getClusterTokenByClusterId(clusterId, options).then((request) => request(axios, basePath));
21410
+ getClusterTokenByClusterId(clusterId, readOnly, options) {
21411
+ return localVarFp.getClusterTokenByClusterId(clusterId, readOnly, options).then((request) => request(axios, basePath));
21399
21412
  },
21400
21413
  /**
21401
21414
  *
@@ -21421,12 +21434,13 @@ class DefaultApi extends base_1.BaseAPI {
21421
21434
  *
21422
21435
  * @summary Get cluster token by clusterId
21423
21436
  * @param {string} clusterId
21437
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
21424
21438
  * @param {*} [options] Override http request option.
21425
21439
  * @throws {RequiredError}
21426
21440
  * @memberof DefaultApi
21427
21441
  */
21428
- getClusterTokenByClusterId(clusterId, options) {
21429
- return (0, exports.DefaultApiFp)(this.configuration).getClusterTokenByClusterId(clusterId, options).then((request) => request(this.axios, this.basePath));
21442
+ getClusterTokenByClusterId(clusterId, readOnly, options) {
21443
+ return (0, exports.DefaultApiFp)(this.configuration).getClusterTokenByClusterId(clusterId, readOnly, options).then((request) => request(this.axios, this.basePath));
21430
21444
  }
21431
21445
  /**
21432
21446
  *
package/dist/esm/api.d.ts CHANGED
@@ -13949,7 +13949,7 @@ export interface HelmRequest {
13949
13949
  * @type {string}
13950
13950
  * @memberof HelmRequest
13951
13951
  */
13952
- 'blueprintId'?: string | null;
13952
+ 'blueprint_id'?: string | null;
13953
13953
  }
13954
13954
  /**
13955
13955
  * @type HelmRequestAllOfSource
@@ -14215,7 +14215,7 @@ export interface HelmResponse {
14215
14215
  * @type {string}
14216
14216
  * @memberof HelmResponse
14217
14217
  */
14218
- 'blueprintId'?: string | null;
14218
+ 'blueprint_id'?: string | null;
14219
14219
  }
14220
14220
  /**
14221
14221
  * @type HelmResponseAllOfPorts
@@ -22302,7 +22302,7 @@ export interface TerraformRequest {
22302
22302
  * @type {string}
22303
22303
  * @memberof TerraformRequest
22304
22304
  */
22305
- 'blueprintId'?: string | null;
22305
+ 'blueprint_id'?: string | null;
22306
22306
  }
22307
22307
  /**
22308
22308
  * @type TerraformRequestDockerfileFragment
@@ -22596,7 +22596,7 @@ export interface TerraformResponse {
22596
22596
  * @type {string}
22597
22597
  * @memberof TerraformResponse
22598
22598
  */
22599
- 'blueprintId'?: string | null;
22599
+ 'blueprint_id'?: string | null;
22600
22600
  }
22601
22601
  /**
22602
22602
  * @type TerraformResponseAllOfDockerfileFragment
@@ -29023,10 +29023,11 @@ export declare const ClustersApiAxiosParamCreator: (configuration?: Configuratio
29023
29023
  * @param {string} organizationId Organization ID
29024
29024
  * @param {string} clusterId Cluster ID
29025
29025
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
29026
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
29026
29027
  * @param {*} [options] Override http request option.
29027
29028
  * @throws {RequiredError}
29028
29029
  */
29029
- getClusterKubeconfig: (organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29030
+ getClusterKubeconfig: (organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29030
29031
  /**
29031
29032
  * List Cluster Kubernetes Events
29032
29033
  * @summary List Cluster Kubernetes Events
@@ -29356,10 +29357,11 @@ export declare const ClustersApiFp: (configuration?: Configuration) => {
29356
29357
  * @param {string} organizationId Organization ID
29357
29358
  * @param {string} clusterId Cluster ID
29358
29359
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
29360
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
29359
29361
  * @param {*} [options] Override http request option.
29360
29362
  * @throws {RequiredError}
29361
29363
  */
29362
- getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
29364
+ getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
29363
29365
  /**
29364
29366
  * List Cluster Kubernetes Events
29365
29367
  * @summary List Cluster Kubernetes Events
@@ -29689,10 +29691,11 @@ export declare const ClustersApiFactory: (configuration?: Configuration, basePat
29689
29691
  * @param {string} organizationId Organization ID
29690
29692
  * @param {string} clusterId Cluster ID
29691
29693
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
29694
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
29692
29695
  * @param {*} [options] Override http request option.
29693
29696
  * @throws {RequiredError}
29694
29697
  */
29695
- getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<string>;
29698
+ getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<string>;
29696
29699
  /**
29697
29700
  * List Cluster Kubernetes Events
29698
29701
  * @summary List Cluster Kubernetes Events
@@ -30034,11 +30037,12 @@ export declare class ClustersApi extends BaseAPI {
30034
30037
  * @param {string} organizationId Organization ID
30035
30038
  * @param {string} clusterId Cluster ID
30036
30039
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
30040
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
30037
30041
  * @param {*} [options] Override http request option.
30038
30042
  * @throws {RequiredError}
30039
30043
  * @memberof ClustersApi
30040
30044
  */
30041
- getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
30045
+ getClusterKubeconfig(organizationId: string, clusterId: string, withTokenFromCli?: boolean, readOnly?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
30042
30046
  /**
30043
30047
  * List Cluster Kubernetes Events
30044
30048
  * @summary List Cluster Kubernetes Events
@@ -33255,10 +33259,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
33255
33259
  *
33256
33260
  * @summary Get cluster token by clusterId
33257
33261
  * @param {string} clusterId
33262
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
33258
33263
  * @param {*} [options] Override http request option.
33259
33264
  * @throws {RequiredError}
33260
33265
  */
33261
- getClusterTokenByClusterId: (clusterId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33266
+ getClusterTokenByClusterId: (clusterId: string, readOnly?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33262
33267
  /**
33263
33268
  *
33264
33269
  * @summary Get Deployment Status By DeploymentRequestId
@@ -33277,10 +33282,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
33277
33282
  *
33278
33283
  * @summary Get cluster token by clusterId
33279
33284
  * @param {string} clusterId
33285
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
33280
33286
  * @param {*} [options] Override http request option.
33281
33287
  * @throws {RequiredError}
33282
33288
  */
33283
- getClusterTokenByClusterId(clusterId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClusterTokenByClusterId200Response>>;
33289
+ getClusterTokenByClusterId(clusterId: string, readOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClusterTokenByClusterId200Response>>;
33284
33290
  /**
33285
33291
  *
33286
33292
  * @summary Get Deployment Status By DeploymentRequestId
@@ -33299,10 +33305,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
33299
33305
  *
33300
33306
  * @summary Get cluster token by clusterId
33301
33307
  * @param {string} clusterId
33308
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
33302
33309
  * @param {*} [options] Override http request option.
33303
33310
  * @throws {RequiredError}
33304
33311
  */
33305
- getClusterTokenByClusterId(clusterId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetClusterTokenByClusterId200Response>;
33312
+ getClusterTokenByClusterId(clusterId: string, readOnly?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<GetClusterTokenByClusterId200Response>;
33306
33313
  /**
33307
33314
  *
33308
33315
  * @summary Get Deployment Status By DeploymentRequestId
@@ -33323,11 +33330,12 @@ export declare class DefaultApi extends BaseAPI {
33323
33330
  *
33324
33331
  * @summary Get cluster token by clusterId
33325
33332
  * @param {string} clusterId
33333
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
33326
33334
  * @param {*} [options] Override http request option.
33327
33335
  * @throws {RequiredError}
33328
33336
  * @memberof DefaultApi
33329
33337
  */
33330
- getClusterTokenByClusterId(clusterId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetClusterTokenByClusterId200Response, any, {}>>;
33338
+ getClusterTokenByClusterId(clusterId: string, readOnly?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetClusterTokenByClusterId200Response, any, {}>>;
33331
33339
  /**
33332
33340
  *
33333
33341
  * @summary Get Deployment Status By DeploymentRequestId
package/dist/esm/api.js CHANGED
@@ -12743,10 +12743,11 @@ export const ClustersApiAxiosParamCreator = function (configuration) {
12743
12743
  * @param {string} organizationId Organization ID
12744
12744
  * @param {string} clusterId Cluster ID
12745
12745
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
12746
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
12746
12747
  * @param {*} [options] Override http request option.
12747
12748
  * @throws {RequiredError}
12748
12749
  */
12749
- getClusterKubeconfig: (organizationId_1, clusterId_1, withTokenFromCli_1, ...args_1) => __awaiter(this, [organizationId_1, clusterId_1, withTokenFromCli_1, ...args_1], void 0, function* (organizationId, clusterId, withTokenFromCli, options = {}) {
12750
+ getClusterKubeconfig: (organizationId_1, clusterId_1, withTokenFromCli_1, readOnly_1, ...args_1) => __awaiter(this, [organizationId_1, clusterId_1, withTokenFromCli_1, readOnly_1, ...args_1], void 0, function* (organizationId, clusterId, withTokenFromCli, readOnly, options = {}) {
12750
12751
  // verify required parameter 'organizationId' is not null or undefined
12751
12752
  assertParamExists('getClusterKubeconfig', 'organizationId', organizationId);
12752
12753
  // verify required parameter 'clusterId' is not null or undefined
@@ -12771,6 +12772,9 @@ export const ClustersApiAxiosParamCreator = function (configuration) {
12771
12772
  if (withTokenFromCli !== undefined) {
12772
12773
  localVarQueryParameter['with_token_from_cli'] = withTokenFromCli;
12773
12774
  }
12775
+ if (readOnly !== undefined) {
12776
+ localVarQueryParameter['read_only'] = readOnly;
12777
+ }
12774
12778
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12775
12779
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12776
12780
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -13911,13 +13915,14 @@ export const ClustersApiFp = function (configuration) {
13911
13915
  * @param {string} organizationId Organization ID
13912
13916
  * @param {string} clusterId Cluster ID
13913
13917
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
13918
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
13914
13919
  * @param {*} [options] Override http request option.
13915
13920
  * @throws {RequiredError}
13916
13921
  */
13917
- getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options) {
13922
+ getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options) {
13918
13923
  return __awaiter(this, void 0, void 0, function* () {
13919
13924
  var _a, _b, _c;
13920
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options);
13925
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options);
13921
13926
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13922
13927
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClustersApi.getClusterKubeconfig']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13923
13928
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -14451,11 +14456,12 @@ export const ClustersApiFactory = function (configuration, basePath, axios) {
14451
14456
  * @param {string} organizationId Organization ID
14452
14457
  * @param {string} clusterId Cluster ID
14453
14458
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
14459
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
14454
14460
  * @param {*} [options] Override http request option.
14455
14461
  * @throws {RequiredError}
14456
14462
  */
14457
- getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options) {
14458
- return localVarFp.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options).then((request) => request(axios, basePath));
14463
+ getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options) {
14464
+ return localVarFp.getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options).then((request) => request(axios, basePath));
14459
14465
  },
14460
14466
  /**
14461
14467
  * List Cluster Kubernetes Events
@@ -14863,12 +14869,13 @@ export class ClustersApi extends BaseAPI {
14863
14869
  * @param {string} organizationId Organization ID
14864
14870
  * @param {string} clusterId Cluster ID
14865
14871
  * @param {boolean} [withTokenFromCli] If true, the user auth part will have an exec command with qovery cli
14872
+ * @param {boolean} [readOnly] If true, the kubeconfig exec plugin will request a read-only token backed by a Kubernetes ServiceAccount with the view ClusterRole
14866
14873
  * @param {*} [options] Override http request option.
14867
14874
  * @throws {RequiredError}
14868
14875
  * @memberof ClustersApi
14869
14876
  */
14870
- getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options) {
14871
- return ClustersApiFp(this.configuration).getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, options).then((request) => request(this.axios, this.basePath));
14877
+ getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options) {
14878
+ return ClustersApiFp(this.configuration).getClusterKubeconfig(organizationId, clusterId, withTokenFromCli, readOnly, options).then((request) => request(this.axios, this.basePath));
14872
14879
  }
14873
14880
  /**
14874
14881
  * List Cluster Kubernetes Events
@@ -21111,10 +21118,11 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
21111
21118
  *
21112
21119
  * @summary Get cluster token by clusterId
21113
21120
  * @param {string} clusterId
21121
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
21114
21122
  * @param {*} [options] Override http request option.
21115
21123
  * @throws {RequiredError}
21116
21124
  */
21117
- getClusterTokenByClusterId: (clusterId_1, ...args_1) => __awaiter(this, [clusterId_1, ...args_1], void 0, function* (clusterId, options = {}) {
21125
+ getClusterTokenByClusterId: (clusterId_1, readOnly_1, ...args_1) => __awaiter(this, [clusterId_1, readOnly_1, ...args_1], void 0, function* (clusterId, readOnly, options = {}) {
21118
21126
  // verify required parameter 'clusterId' is not null or undefined
21119
21127
  assertParamExists('getClusterTokenByClusterId', 'clusterId', clusterId);
21120
21128
  const localVarPath = `/cluster/{clusterId}/token`
@@ -21133,6 +21141,9 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
21133
21141
  // authentication bearerAuth required
21134
21142
  // http bearer authentication required
21135
21143
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
21144
+ if (readOnly !== undefined) {
21145
+ localVarQueryParameter['read_only'] = readOnly;
21146
+ }
21136
21147
  setSearchParams(localVarUrlObj, localVarQueryParameter);
21137
21148
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21138
21149
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -21190,13 +21201,14 @@ export const DefaultApiFp = function (configuration) {
21190
21201
  *
21191
21202
  * @summary Get cluster token by clusterId
21192
21203
  * @param {string} clusterId
21204
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
21193
21205
  * @param {*} [options] Override http request option.
21194
21206
  * @throws {RequiredError}
21195
21207
  */
21196
- getClusterTokenByClusterId(clusterId, options) {
21208
+ getClusterTokenByClusterId(clusterId, readOnly, options) {
21197
21209
  return __awaiter(this, void 0, void 0, function* () {
21198
21210
  var _a, _b, _c;
21199
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClusterTokenByClusterId(clusterId, options);
21211
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClusterTokenByClusterId(clusterId, readOnly, options);
21200
21212
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
21201
21213
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.getClusterTokenByClusterId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
21202
21214
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -21231,11 +21243,12 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
21231
21243
  *
21232
21244
  * @summary Get cluster token by clusterId
21233
21245
  * @param {string} clusterId
21246
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
21234
21247
  * @param {*} [options] Override http request option.
21235
21248
  * @throws {RequiredError}
21236
21249
  */
21237
- getClusterTokenByClusterId(clusterId, options) {
21238
- return localVarFp.getClusterTokenByClusterId(clusterId, options).then((request) => request(axios, basePath));
21250
+ getClusterTokenByClusterId(clusterId, readOnly, options) {
21251
+ return localVarFp.getClusterTokenByClusterId(clusterId, readOnly, options).then((request) => request(axios, basePath));
21239
21252
  },
21240
21253
  /**
21241
21254
  *
@@ -21260,12 +21273,13 @@ export class DefaultApi extends BaseAPI {
21260
21273
  *
21261
21274
  * @summary Get cluster token by clusterId
21262
21275
  * @param {string} clusterId
21276
+ * @param {boolean} [readOnly] If true, returns a short-lived token for the qovery-readonly ServiceAccount (bound to view ClusterRole) generated by the cluster-agent
21263
21277
  * @param {*} [options] Override http request option.
21264
21278
  * @throws {RequiredError}
21265
21279
  * @memberof DefaultApi
21266
21280
  */
21267
- getClusterTokenByClusterId(clusterId, options) {
21268
- return DefaultApiFp(this.configuration).getClusterTokenByClusterId(clusterId, options).then((request) => request(this.axios, this.basePath));
21281
+ getClusterTokenByClusterId(clusterId, readOnly, options) {
21282
+ return DefaultApiFp(this.configuration).getClusterTokenByClusterId(clusterId, readOnly, options).then((request) => request(this.axios, this.basePath));
21269
21283
  }
21270
21284
  /**
21271
21285
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.905",
3
+ "version": "v1.1.907",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {