qovery-typescript-axios 1.1.166 → 1.1.168

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/api.ts +344 -51
  2. package/dist/api.d.ts +294 -54
  3. package/dist/api.js +111 -1
  4. package/package.json +1 -1
package/api.ts CHANGED
@@ -2352,10 +2352,10 @@ export interface ClusterCloudProviderInfo {
2352
2352
  'cloud_provider'?: CloudProviderEnum;
2353
2353
  /**
2354
2354
  *
2355
- * @type {InlineResponse200Targets}
2355
+ * @type {ClusterCloudProviderInfoCredentials}
2356
2356
  * @memberof ClusterCloudProviderInfo
2357
2357
  */
2358
- 'credentials'?: InlineResponse200Targets;
2358
+ 'credentials'?: ClusterCloudProviderInfoCredentials;
2359
2359
  /**
2360
2360
  *
2361
2361
  * @type {string}
@@ -2363,6 +2363,25 @@ export interface ClusterCloudProviderInfo {
2363
2363
  */
2364
2364
  'region'?: string;
2365
2365
  }
2366
+ /**
2367
+ *
2368
+ * @export
2369
+ * @interface ClusterCloudProviderInfoCredentials
2370
+ */
2371
+ export interface ClusterCloudProviderInfoCredentials {
2372
+ /**
2373
+ *
2374
+ * @type {string}
2375
+ * @memberof ClusterCloudProviderInfoCredentials
2376
+ */
2377
+ 'id'?: string;
2378
+ /**
2379
+ *
2380
+ * @type {string}
2381
+ * @memberof ClusterCloudProviderInfoCredentials
2382
+ */
2383
+ 'name'?: string;
2384
+ }
2366
2385
  /**
2367
2386
  *
2368
2387
  * @export
@@ -2377,10 +2396,10 @@ export interface ClusterCloudProviderInfoRequest {
2377
2396
  'cloud_provider'?: CloudProviderEnum;
2378
2397
  /**
2379
2398
  *
2380
- * @type {InlineResponse200Targets}
2399
+ * @type {ClusterCloudProviderInfoCredentials}
2381
2400
  * @memberof ClusterCloudProviderInfoRequest
2382
2401
  */
2383
- 'credentials'?: InlineResponse200Targets;
2402
+ 'credentials'?: ClusterCloudProviderInfoCredentials;
2384
2403
  /**
2385
2404
  *
2386
2405
  * @type {string}
@@ -8116,88 +8135,56 @@ export interface InlineObject {
8116
8135
  * @interface InlineResponse200
8117
8136
  */
8118
8137
  export interface InlineResponse200 {
8119
- /**
8120
- *
8121
- * @type {Array<InlineResponse200Targets>}
8122
- * @memberof InlineResponse200
8123
- */
8124
- 'targets'?: Array<InlineResponse200Targets>;
8125
- }
8126
- /**
8127
- *
8128
- * @export
8129
- * @interface InlineResponse2001
8130
- */
8131
- export interface InlineResponse2001 {
8132
8138
  /**
8133
8139
  *
8134
8140
  * @type {EnvironmentStatus}
8135
- * @memberof InlineResponse2001
8141
+ * @memberof InlineResponse200
8136
8142
  */
8137
8143
  'environment'?: EnvironmentStatus;
8138
8144
  /**
8139
8145
  *
8140
8146
  * @type {Array<Status>}
8141
- * @memberof InlineResponse2001
8147
+ * @memberof InlineResponse200
8142
8148
  */
8143
8149
  'applications'?: Array<Status>;
8144
8150
  /**
8145
8151
  *
8146
8152
  * @type {Array<Status>}
8147
- * @memberof InlineResponse2001
8153
+ * @memberof InlineResponse200
8148
8154
  */
8149
8155
  'containers'?: Array<Status>;
8150
8156
  /**
8151
8157
  *
8152
8158
  * @type {Array<Status>}
8153
- * @memberof InlineResponse2001
8159
+ * @memberof InlineResponse200
8154
8160
  */
8155
8161
  'jobs'?: Array<Status>;
8156
8162
  /**
8157
8163
  *
8158
8164
  * @type {Array<Status>}
8159
- * @memberof InlineResponse2001
8165
+ * @memberof InlineResponse200
8160
8166
  */
8161
8167
  'databases'?: Array<Status>;
8162
8168
  }
8163
8169
  /**
8164
8170
  *
8165
8171
  * @export
8166
- * @interface InlineResponse2002
8172
+ * @interface InlineResponse2001
8167
8173
  */
8168
- export interface InlineResponse2002 {
8174
+ export interface InlineResponse2001 {
8169
8175
  /**
8170
8176
  *
8171
8177
  * @type {EnvironmentStatus}
8172
- * @memberof InlineResponse2002
8178
+ * @memberof InlineResponse2001
8173
8179
  */
8174
8180
  'environment'?: EnvironmentStatus;
8175
8181
  /**
8176
8182
  *
8177
8183
  * @type {DeploymentStageWithServiceStatusesList}
8178
- * @memberof InlineResponse2002
8184
+ * @memberof InlineResponse2001
8179
8185
  */
8180
8186
  'stages'?: DeploymentStageWithServiceStatusesList;
8181
8187
  }
8182
- /**
8183
- *
8184
- * @export
8185
- * @interface InlineResponse200Targets
8186
- */
8187
- export interface InlineResponse200Targets {
8188
- /**
8189
- *
8190
- * @type {string}
8191
- * @memberof InlineResponse200Targets
8192
- */
8193
- 'id'?: string;
8194
- /**
8195
- *
8196
- * @type {string}
8197
- * @memberof InlineResponse200Targets
8198
- */
8199
- 'name'?: string;
8200
- }
8201
8188
  /**
8202
8189
  *
8203
8190
  * @export
@@ -10959,6 +10946,19 @@ export enum OrganizationEventSubTargetType {
10959
10946
  VARIABLE = 'VARIABLE'
10960
10947
  }
10961
10948
 
10949
+ /**
10950
+ *
10951
+ * @export
10952
+ * @interface OrganizationEventTargetResponseList
10953
+ */
10954
+ export interface OrganizationEventTargetResponseList {
10955
+ /**
10956
+ *
10957
+ * @type {Array<ClusterCloudProviderInfoCredentials>}
10958
+ * @memberof OrganizationEventTargetResponseList
10959
+ */
10960
+ 'targets'?: Array<ClusterCloudProviderInfoCredentials>;
10961
+ }
10962
10962
  /**
10963
10963
  * Type of the organization event
10964
10964
  * @export
@@ -13416,6 +13416,31 @@ export interface Value {
13416
13416
  */
13417
13417
  'value'?: string;
13418
13418
  }
13419
+ /**
13420
+ *
13421
+ * @export
13422
+ * @interface VariableAliasRequest
13423
+ */
13424
+ export interface VariableAliasRequest {
13425
+ /**
13426
+ *
13427
+ * @type {string}
13428
+ * @memberof VariableAliasRequest
13429
+ */
13430
+ 'key': string;
13431
+ /**
13432
+ *
13433
+ * @type {APIVariableScopeEnum}
13434
+ * @memberof VariableAliasRequest
13435
+ */
13436
+ 'aliasScope': APIVariableScopeEnum;
13437
+ /**
13438
+ *
13439
+ * @type {string}
13440
+ * @memberof VariableAliasRequest
13441
+ */
13442
+ 'aliasParentId': string;
13443
+ }
13419
13444
  /**
13420
13445
  *
13421
13446
  * @export
@@ -13516,6 +13541,158 @@ export interface VariableImportSuccessfulImportedVariables {
13516
13541
  */
13517
13542
  'is_secret': boolean;
13518
13543
  }
13544
+ /**
13545
+ *
13546
+ * @export
13547
+ * @interface VariableResponse
13548
+ */
13549
+ export interface VariableResponse {
13550
+ /**
13551
+ *
13552
+ * @type {string}
13553
+ * @memberof VariableResponse
13554
+ */
13555
+ 'id': string;
13556
+ /**
13557
+ *
13558
+ * @type {string}
13559
+ * @memberof VariableResponse
13560
+ */
13561
+ 'created_at': string;
13562
+ /**
13563
+ *
13564
+ * @type {string}
13565
+ * @memberof VariableResponse
13566
+ */
13567
+ 'updated_at'?: string;
13568
+ /**
13569
+ *
13570
+ * @type {EnvironmentVariableOverride}
13571
+ * @memberof VariableResponse
13572
+ */
13573
+ 'overridden_variable'?: EnvironmentVariableOverride;
13574
+ /**
13575
+ *
13576
+ * @type {EnvironmentVariableAlias}
13577
+ * @memberof VariableResponse
13578
+ */
13579
+ 'aliased_variable'?: EnvironmentVariableAlias;
13580
+ /**
13581
+ *
13582
+ * @type {SecretOverride}
13583
+ * @memberof VariableResponse
13584
+ */
13585
+ 'overridden_secret'?: SecretOverride;
13586
+ /**
13587
+ *
13588
+ * @type {SecretAlias}
13589
+ * @memberof VariableResponse
13590
+ */
13591
+ 'aliased_secret'?: SecretAlias;
13592
+ /**
13593
+ *
13594
+ * @type {APIVariableScopeEnum}
13595
+ * @memberof VariableResponse
13596
+ */
13597
+ 'scope': APIVariableScopeEnum;
13598
+ /**
13599
+ *
13600
+ * @type {APIVariableTypeEnum}
13601
+ * @memberof VariableResponse
13602
+ */
13603
+ 'variable_type'?: APIVariableTypeEnum;
13604
+ /**
13605
+ * present only for `BUILT_IN` variable
13606
+ * @type {string}
13607
+ * @memberof VariableResponse
13608
+ */
13609
+ 'service_id'?: string;
13610
+ /**
13611
+ * present only for `BUILT_IN` variable
13612
+ * @type {string}
13613
+ * @memberof VariableResponse
13614
+ */
13615
+ 'service_name'?: string;
13616
+ /**
13617
+ *
13618
+ * @type {LinkedServiceTypeEnum}
13619
+ * @memberof VariableResponse
13620
+ */
13621
+ 'service_type'?: LinkedServiceTypeEnum;
13622
+ /**
13623
+ * Entity that created/own the variable (i.e: Qovery, Doppler)
13624
+ * @type {string}
13625
+ * @memberof VariableResponse
13626
+ */
13627
+ 'owned_by'?: string;
13628
+ }
13629
+ /**
13630
+ *
13631
+ * @export
13632
+ * @interface VariableResponseAllOf
13633
+ */
13634
+ export interface VariableResponseAllOf {
13635
+ /**
13636
+ *
13637
+ * @type {EnvironmentVariableOverride}
13638
+ * @memberof VariableResponseAllOf
13639
+ */
13640
+ 'overridden_variable'?: EnvironmentVariableOverride;
13641
+ /**
13642
+ *
13643
+ * @type {EnvironmentVariableAlias}
13644
+ * @memberof VariableResponseAllOf
13645
+ */
13646
+ 'aliased_variable'?: EnvironmentVariableAlias;
13647
+ /**
13648
+ *
13649
+ * @type {SecretOverride}
13650
+ * @memberof VariableResponseAllOf
13651
+ */
13652
+ 'overridden_secret'?: SecretOverride;
13653
+ /**
13654
+ *
13655
+ * @type {SecretAlias}
13656
+ * @memberof VariableResponseAllOf
13657
+ */
13658
+ 'aliased_secret'?: SecretAlias;
13659
+ /**
13660
+ *
13661
+ * @type {APIVariableScopeEnum}
13662
+ * @memberof VariableResponseAllOf
13663
+ */
13664
+ 'scope': APIVariableScopeEnum;
13665
+ /**
13666
+ *
13667
+ * @type {APIVariableTypeEnum}
13668
+ * @memberof VariableResponseAllOf
13669
+ */
13670
+ 'variable_type'?: APIVariableTypeEnum;
13671
+ /**
13672
+ * present only for `BUILT_IN` variable
13673
+ * @type {string}
13674
+ * @memberof VariableResponseAllOf
13675
+ */
13676
+ 'service_id'?: string;
13677
+ /**
13678
+ * present only for `BUILT_IN` variable
13679
+ * @type {string}
13680
+ * @memberof VariableResponseAllOf
13681
+ */
13682
+ 'service_name'?: string;
13683
+ /**
13684
+ *
13685
+ * @type {LinkedServiceTypeEnum}
13686
+ * @memberof VariableResponseAllOf
13687
+ */
13688
+ 'service_type'?: LinkedServiceTypeEnum;
13689
+ /**
13690
+ * Entity that created/own the variable (i.e: Qovery, Doppler)
13691
+ * @type {string}
13692
+ * @memberof VariableResponseAllOf
13693
+ */
13694
+ 'owned_by'?: string;
13695
+ }
13519
13696
  /**
13520
13697
  *
13521
13698
  * @export
@@ -32917,7 +33094,7 @@ export const EnvironmentMainCallsApiFp = function(configuration?: Configuration)
32917
33094
  * @param {*} [options] Override http request option.
32918
33095
  * @throws {RequiredError}
32919
33096
  */
32920
- async getEnvironmentStatuses(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2001>> {
33097
+ async getEnvironmentStatuses(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
32921
33098
  const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentStatuses(environmentId, options);
32922
33099
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
32923
33100
  },
@@ -32928,7 +33105,7 @@ export const EnvironmentMainCallsApiFp = function(configuration?: Configuration)
32928
33105
  * @param {*} [options] Override http request option.
32929
33106
  * @throws {RequiredError}
32930
33107
  */
32931
- async getEnvironmentStatusesWithStages(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2002>> {
33108
+ async getEnvironmentStatusesWithStages(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2001>> {
32932
33109
  const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentStatusesWithStages(environmentId, options);
32933
33110
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
32934
33111
  },
@@ -32990,7 +33167,7 @@ export const EnvironmentMainCallsApiFactory = function (configuration?: Configur
32990
33167
  * @param {*} [options] Override http request option.
32991
33168
  * @throws {RequiredError}
32992
33169
  */
32993
- getEnvironmentStatuses(environmentId: string, options?: any): AxiosPromise<InlineResponse2001> {
33170
+ getEnvironmentStatuses(environmentId: string, options?: any): AxiosPromise<InlineResponse200> {
32994
33171
  return localVarFp.getEnvironmentStatuses(environmentId, options).then((request) => request(axios, basePath));
32995
33172
  },
32996
33173
  /**
@@ -33000,7 +33177,7 @@ export const EnvironmentMainCallsApiFactory = function (configuration?: Configur
33000
33177
  * @param {*} [options] Override http request option.
33001
33178
  * @throws {RequiredError}
33002
33179
  */
33003
- getEnvironmentStatusesWithStages(environmentId: string, options?: any): AxiosPromise<InlineResponse2002> {
33180
+ getEnvironmentStatusesWithStages(environmentId: string, options?: any): AxiosPromise<InlineResponse2001> {
33004
33181
  return localVarFp.getEnvironmentStatusesWithStages(environmentId, options).then((request) => request(axios, basePath));
33005
33182
  },
33006
33183
  };
@@ -40078,7 +40255,7 @@ export const OrganizationEventApiFp = function(configuration?: Configuration) {
40078
40255
  * @param {*} [options] Override http request option.
40079
40256
  * @throws {RequiredError}
40080
40257
  */
40081
- async getOrganizationEventTargets(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, triggeredBy?: string, origin?: OrganizationEventOrigin, projectId?: string, environmentId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
40258
+ async getOrganizationEventTargets(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, triggeredBy?: string, origin?: OrganizationEventOrigin, projectId?: string, environmentId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationEventTargetResponseList>> {
40082
40259
  const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationEventTargets(organizationId, fromTimestamp, toTimestamp, eventType, targetType, triggeredBy, origin, projectId, environmentId, options);
40083
40260
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40084
40261
  },
@@ -40129,7 +40306,7 @@ export const OrganizationEventApiFactory = function (configuration?: Configurati
40129
40306
  * @param {*} [options] Override http request option.
40130
40307
  * @throws {RequiredError}
40131
40308
  */
40132
- getOrganizationEventTargets(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, triggeredBy?: string, origin?: OrganizationEventOrigin, projectId?: string, environmentId?: string, options?: any): AxiosPromise<InlineResponse200> {
40309
+ getOrganizationEventTargets(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, triggeredBy?: string, origin?: OrganizationEventOrigin, projectId?: string, environmentId?: string, options?: any): AxiosPromise<OrganizationEventTargetResponseList> {
40133
40310
  return localVarFp.getOrganizationEventTargets(organizationId, fromTimestamp, toTimestamp, eventType, targetType, triggeredBy, origin, projectId, environmentId, options).then((request) => request(axios, basePath));
40134
40311
  },
40135
40312
  /**
@@ -43512,3 +43689,119 @@ export class UserSignUpApi extends BaseAPI {
43512
43689
  }
43513
43690
 
43514
43691
 
43692
+ /**
43693
+ * VariableMainCallsApi - axios parameter creator
43694
+ * @export
43695
+ */
43696
+ export const VariableMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
43697
+ return {
43698
+ /**
43699
+ * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
43700
+ * @summary Create a variable alias
43701
+ * @param {string} variableId Variable ID
43702
+ * @param {VariableAliasRequest} [variableAliasRequest]
43703
+ * @param {*} [options] Override http request option.
43704
+ * @throws {RequiredError}
43705
+ */
43706
+ createVariableAlias: async (variableId: string, variableAliasRequest?: VariableAliasRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43707
+ // verify required parameter 'variableId' is not null or undefined
43708
+ assertParamExists('createVariableAlias', 'variableId', variableId)
43709
+ const localVarPath = `/variable/{variableId}/alias`
43710
+ .replace(`{${"variableId"}}`, encodeURIComponent(String(variableId)));
43711
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43712
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43713
+ let baseOptions;
43714
+ if (configuration) {
43715
+ baseOptions = configuration.baseOptions;
43716
+ }
43717
+
43718
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
43719
+ const localVarHeaderParameter = {} as any;
43720
+ const localVarQueryParameter = {} as any;
43721
+
43722
+ // authentication bearerAuth required
43723
+ // http bearer authentication required
43724
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
43725
+
43726
+
43727
+
43728
+ localVarHeaderParameter['Content-Type'] = 'application/json';
43729
+
43730
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43731
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43732
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43733
+ localVarRequestOptions.data = serializeDataIfNeeded(variableAliasRequest, localVarRequestOptions, configuration)
43734
+
43735
+ return {
43736
+ url: toPathString(localVarUrlObj),
43737
+ options: localVarRequestOptions,
43738
+ };
43739
+ },
43740
+ }
43741
+ };
43742
+
43743
+ /**
43744
+ * VariableMainCallsApi - functional programming interface
43745
+ * @export
43746
+ */
43747
+ export const VariableMainCallsApiFp = function(configuration?: Configuration) {
43748
+ const localVarAxiosParamCreator = VariableMainCallsApiAxiosParamCreator(configuration)
43749
+ return {
43750
+ /**
43751
+ * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
43752
+ * @summary Create a variable alias
43753
+ * @param {string} variableId Variable ID
43754
+ * @param {VariableAliasRequest} [variableAliasRequest]
43755
+ * @param {*} [options] Override http request option.
43756
+ * @throws {RequiredError}
43757
+ */
43758
+ async createVariableAlias(variableId: string, variableAliasRequest?: VariableAliasRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>> {
43759
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createVariableAlias(variableId, variableAliasRequest, options);
43760
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43761
+ },
43762
+ }
43763
+ };
43764
+
43765
+ /**
43766
+ * VariableMainCallsApi - factory interface
43767
+ * @export
43768
+ */
43769
+ export const VariableMainCallsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
43770
+ const localVarFp = VariableMainCallsApiFp(configuration)
43771
+ return {
43772
+ /**
43773
+ * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
43774
+ * @summary Create a variable alias
43775
+ * @param {string} variableId Variable ID
43776
+ * @param {VariableAliasRequest} [variableAliasRequest]
43777
+ * @param {*} [options] Override http request option.
43778
+ * @throws {RequiredError}
43779
+ */
43780
+ createVariableAlias(variableId: string, variableAliasRequest?: VariableAliasRequest, options?: any): AxiosPromise<VariableResponse> {
43781
+ return localVarFp.createVariableAlias(variableId, variableAliasRequest, options).then((request) => request(axios, basePath));
43782
+ },
43783
+ };
43784
+ };
43785
+
43786
+ /**
43787
+ * VariableMainCallsApi - object-oriented interface
43788
+ * @export
43789
+ * @class VariableMainCallsApi
43790
+ * @extends {BaseAPI}
43791
+ */
43792
+ export class VariableMainCallsApi extends BaseAPI {
43793
+ /**
43794
+ * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
43795
+ * @summary Create a variable alias
43796
+ * @param {string} variableId Variable ID
43797
+ * @param {VariableAliasRequest} [variableAliasRequest]
43798
+ * @param {*} [options] Override http request option.
43799
+ * @throws {RequiredError}
43800
+ * @memberof VariableMainCallsApi
43801
+ */
43802
+ public createVariableAlias(variableId: string, variableAliasRequest?: VariableAliasRequest, options?: AxiosRequestConfig) {
43803
+ return VariableMainCallsApiFp(this.configuration).createVariableAlias(variableId, variableAliasRequest, options).then((request) => request(this.axios, this.basePath));
43804
+ }
43805
+ }
43806
+
43807
+
package/dist/api.d.ts CHANGED
@@ -2333,10 +2333,10 @@ export interface ClusterCloudProviderInfo {
2333
2333
  'cloud_provider'?: CloudProviderEnum;
2334
2334
  /**
2335
2335
  *
2336
- * @type {InlineResponse200Targets}
2336
+ * @type {ClusterCloudProviderInfoCredentials}
2337
2337
  * @memberof ClusterCloudProviderInfo
2338
2338
  */
2339
- 'credentials'?: InlineResponse200Targets;
2339
+ 'credentials'?: ClusterCloudProviderInfoCredentials;
2340
2340
  /**
2341
2341
  *
2342
2342
  * @type {string}
@@ -2344,6 +2344,25 @@ export interface ClusterCloudProviderInfo {
2344
2344
  */
2345
2345
  'region'?: string;
2346
2346
  }
2347
+ /**
2348
+ *
2349
+ * @export
2350
+ * @interface ClusterCloudProviderInfoCredentials
2351
+ */
2352
+ export interface ClusterCloudProviderInfoCredentials {
2353
+ /**
2354
+ *
2355
+ * @type {string}
2356
+ * @memberof ClusterCloudProviderInfoCredentials
2357
+ */
2358
+ 'id'?: string;
2359
+ /**
2360
+ *
2361
+ * @type {string}
2362
+ * @memberof ClusterCloudProviderInfoCredentials
2363
+ */
2364
+ 'name'?: string;
2365
+ }
2347
2366
  /**
2348
2367
  *
2349
2368
  * @export
@@ -2358,10 +2377,10 @@ export interface ClusterCloudProviderInfoRequest {
2358
2377
  'cloud_provider'?: CloudProviderEnum;
2359
2378
  /**
2360
2379
  *
2361
- * @type {InlineResponse200Targets}
2380
+ * @type {ClusterCloudProviderInfoCredentials}
2362
2381
  * @memberof ClusterCloudProviderInfoRequest
2363
2382
  */
2364
- 'credentials'?: InlineResponse200Targets;
2383
+ 'credentials'?: ClusterCloudProviderInfoCredentials;
2365
2384
  /**
2366
2385
  *
2367
2386
  * @type {string}
@@ -8065,88 +8084,56 @@ export interface InlineObject {
8065
8084
  * @interface InlineResponse200
8066
8085
  */
8067
8086
  export interface InlineResponse200 {
8068
- /**
8069
- *
8070
- * @type {Array<InlineResponse200Targets>}
8071
- * @memberof InlineResponse200
8072
- */
8073
- 'targets'?: Array<InlineResponse200Targets>;
8074
- }
8075
- /**
8076
- *
8077
- * @export
8078
- * @interface InlineResponse2001
8079
- */
8080
- export interface InlineResponse2001 {
8081
8087
  /**
8082
8088
  *
8083
8089
  * @type {EnvironmentStatus}
8084
- * @memberof InlineResponse2001
8090
+ * @memberof InlineResponse200
8085
8091
  */
8086
8092
  'environment'?: EnvironmentStatus;
8087
8093
  /**
8088
8094
  *
8089
8095
  * @type {Array<Status>}
8090
- * @memberof InlineResponse2001
8096
+ * @memberof InlineResponse200
8091
8097
  */
8092
8098
  'applications'?: Array<Status>;
8093
8099
  /**
8094
8100
  *
8095
8101
  * @type {Array<Status>}
8096
- * @memberof InlineResponse2001
8102
+ * @memberof InlineResponse200
8097
8103
  */
8098
8104
  'containers'?: Array<Status>;
8099
8105
  /**
8100
8106
  *
8101
8107
  * @type {Array<Status>}
8102
- * @memberof InlineResponse2001
8108
+ * @memberof InlineResponse200
8103
8109
  */
8104
8110
  'jobs'?: Array<Status>;
8105
8111
  /**
8106
8112
  *
8107
8113
  * @type {Array<Status>}
8108
- * @memberof InlineResponse2001
8114
+ * @memberof InlineResponse200
8109
8115
  */
8110
8116
  'databases'?: Array<Status>;
8111
8117
  }
8112
8118
  /**
8113
8119
  *
8114
8120
  * @export
8115
- * @interface InlineResponse2002
8121
+ * @interface InlineResponse2001
8116
8122
  */
8117
- export interface InlineResponse2002 {
8123
+ export interface InlineResponse2001 {
8118
8124
  /**
8119
8125
  *
8120
8126
  * @type {EnvironmentStatus}
8121
- * @memberof InlineResponse2002
8127
+ * @memberof InlineResponse2001
8122
8128
  */
8123
8129
  'environment'?: EnvironmentStatus;
8124
8130
  /**
8125
8131
  *
8126
8132
  * @type {DeploymentStageWithServiceStatusesList}
8127
- * @memberof InlineResponse2002
8133
+ * @memberof InlineResponse2001
8128
8134
  */
8129
8135
  'stages'?: DeploymentStageWithServiceStatusesList;
8130
8136
  }
8131
- /**
8132
- *
8133
- * @export
8134
- * @interface InlineResponse200Targets
8135
- */
8136
- export interface InlineResponse200Targets {
8137
- /**
8138
- *
8139
- * @type {string}
8140
- * @memberof InlineResponse200Targets
8141
- */
8142
- 'id'?: string;
8143
- /**
8144
- *
8145
- * @type {string}
8146
- * @memberof InlineResponse200Targets
8147
- */
8148
- 'name'?: string;
8149
- }
8150
8137
  /**
8151
8138
  *
8152
8139
  * @export
@@ -10882,6 +10869,19 @@ export declare enum OrganizationEventSubTargetType {
10882
10869
  TRANSFER_OWNERSHIP = "TRANSFER_OWNERSHIP",
10883
10870
  VARIABLE = "VARIABLE"
10884
10871
  }
10872
+ /**
10873
+ *
10874
+ * @export
10875
+ * @interface OrganizationEventTargetResponseList
10876
+ */
10877
+ export interface OrganizationEventTargetResponseList {
10878
+ /**
10879
+ *
10880
+ * @type {Array<ClusterCloudProviderInfoCredentials>}
10881
+ * @memberof OrganizationEventTargetResponseList
10882
+ */
10883
+ 'targets'?: Array<ClusterCloudProviderInfoCredentials>;
10884
+ }
10885
10885
  /**
10886
10886
  * Type of the organization event
10887
10887
  * @export
@@ -13311,6 +13311,31 @@ export interface Value {
13311
13311
  */
13312
13312
  'value'?: string;
13313
13313
  }
13314
+ /**
13315
+ *
13316
+ * @export
13317
+ * @interface VariableAliasRequest
13318
+ */
13319
+ export interface VariableAliasRequest {
13320
+ /**
13321
+ *
13322
+ * @type {string}
13323
+ * @memberof VariableAliasRequest
13324
+ */
13325
+ 'key': string;
13326
+ /**
13327
+ *
13328
+ * @type {APIVariableScopeEnum}
13329
+ * @memberof VariableAliasRequest
13330
+ */
13331
+ 'aliasScope': APIVariableScopeEnum;
13332
+ /**
13333
+ *
13334
+ * @type {string}
13335
+ * @memberof VariableAliasRequest
13336
+ */
13337
+ 'aliasParentId': string;
13338
+ }
13314
13339
  /**
13315
13340
  *
13316
13341
  * @export
@@ -13411,6 +13436,158 @@ export interface VariableImportSuccessfulImportedVariables {
13411
13436
  */
13412
13437
  'is_secret': boolean;
13413
13438
  }
13439
+ /**
13440
+ *
13441
+ * @export
13442
+ * @interface VariableResponse
13443
+ */
13444
+ export interface VariableResponse {
13445
+ /**
13446
+ *
13447
+ * @type {string}
13448
+ * @memberof VariableResponse
13449
+ */
13450
+ 'id': string;
13451
+ /**
13452
+ *
13453
+ * @type {string}
13454
+ * @memberof VariableResponse
13455
+ */
13456
+ 'created_at': string;
13457
+ /**
13458
+ *
13459
+ * @type {string}
13460
+ * @memberof VariableResponse
13461
+ */
13462
+ 'updated_at'?: string;
13463
+ /**
13464
+ *
13465
+ * @type {EnvironmentVariableOverride}
13466
+ * @memberof VariableResponse
13467
+ */
13468
+ 'overridden_variable'?: EnvironmentVariableOverride;
13469
+ /**
13470
+ *
13471
+ * @type {EnvironmentVariableAlias}
13472
+ * @memberof VariableResponse
13473
+ */
13474
+ 'aliased_variable'?: EnvironmentVariableAlias;
13475
+ /**
13476
+ *
13477
+ * @type {SecretOverride}
13478
+ * @memberof VariableResponse
13479
+ */
13480
+ 'overridden_secret'?: SecretOverride;
13481
+ /**
13482
+ *
13483
+ * @type {SecretAlias}
13484
+ * @memberof VariableResponse
13485
+ */
13486
+ 'aliased_secret'?: SecretAlias;
13487
+ /**
13488
+ *
13489
+ * @type {APIVariableScopeEnum}
13490
+ * @memberof VariableResponse
13491
+ */
13492
+ 'scope': APIVariableScopeEnum;
13493
+ /**
13494
+ *
13495
+ * @type {APIVariableTypeEnum}
13496
+ * @memberof VariableResponse
13497
+ */
13498
+ 'variable_type'?: APIVariableTypeEnum;
13499
+ /**
13500
+ * present only for `BUILT_IN` variable
13501
+ * @type {string}
13502
+ * @memberof VariableResponse
13503
+ */
13504
+ 'service_id'?: string;
13505
+ /**
13506
+ * present only for `BUILT_IN` variable
13507
+ * @type {string}
13508
+ * @memberof VariableResponse
13509
+ */
13510
+ 'service_name'?: string;
13511
+ /**
13512
+ *
13513
+ * @type {LinkedServiceTypeEnum}
13514
+ * @memberof VariableResponse
13515
+ */
13516
+ 'service_type'?: LinkedServiceTypeEnum;
13517
+ /**
13518
+ * Entity that created/own the variable (i.e: Qovery, Doppler)
13519
+ * @type {string}
13520
+ * @memberof VariableResponse
13521
+ */
13522
+ 'owned_by'?: string;
13523
+ }
13524
+ /**
13525
+ *
13526
+ * @export
13527
+ * @interface VariableResponseAllOf
13528
+ */
13529
+ export interface VariableResponseAllOf {
13530
+ /**
13531
+ *
13532
+ * @type {EnvironmentVariableOverride}
13533
+ * @memberof VariableResponseAllOf
13534
+ */
13535
+ 'overridden_variable'?: EnvironmentVariableOverride;
13536
+ /**
13537
+ *
13538
+ * @type {EnvironmentVariableAlias}
13539
+ * @memberof VariableResponseAllOf
13540
+ */
13541
+ 'aliased_variable'?: EnvironmentVariableAlias;
13542
+ /**
13543
+ *
13544
+ * @type {SecretOverride}
13545
+ * @memberof VariableResponseAllOf
13546
+ */
13547
+ 'overridden_secret'?: SecretOverride;
13548
+ /**
13549
+ *
13550
+ * @type {SecretAlias}
13551
+ * @memberof VariableResponseAllOf
13552
+ */
13553
+ 'aliased_secret'?: SecretAlias;
13554
+ /**
13555
+ *
13556
+ * @type {APIVariableScopeEnum}
13557
+ * @memberof VariableResponseAllOf
13558
+ */
13559
+ 'scope': APIVariableScopeEnum;
13560
+ /**
13561
+ *
13562
+ * @type {APIVariableTypeEnum}
13563
+ * @memberof VariableResponseAllOf
13564
+ */
13565
+ 'variable_type'?: APIVariableTypeEnum;
13566
+ /**
13567
+ * present only for `BUILT_IN` variable
13568
+ * @type {string}
13569
+ * @memberof VariableResponseAllOf
13570
+ */
13571
+ 'service_id'?: string;
13572
+ /**
13573
+ * present only for `BUILT_IN` variable
13574
+ * @type {string}
13575
+ * @memberof VariableResponseAllOf
13576
+ */
13577
+ 'service_name'?: string;
13578
+ /**
13579
+ *
13580
+ * @type {LinkedServiceTypeEnum}
13581
+ * @memberof VariableResponseAllOf
13582
+ */
13583
+ 'service_type'?: LinkedServiceTypeEnum;
13584
+ /**
13585
+ * Entity that created/own the variable (i.e: Qovery, Doppler)
13586
+ * @type {string}
13587
+ * @memberof VariableResponseAllOf
13588
+ */
13589
+ 'owned_by'?: string;
13590
+ }
13414
13591
  /**
13415
13592
  *
13416
13593
  * @export
@@ -22845,7 +23022,7 @@ export declare const EnvironmentMainCallsApiFp: (configuration?: Configuration)
22845
23022
  * @param {*} [options] Override http request option.
22846
23023
  * @throws {RequiredError}
22847
23024
  */
22848
- getEnvironmentStatuses(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2001>>;
23025
+ getEnvironmentStatuses(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
22849
23026
  /**
22850
23027
  *
22851
23028
  * @summary Get environment statuses with stages
@@ -22853,7 +23030,7 @@ export declare const EnvironmentMainCallsApiFp: (configuration?: Configuration)
22853
23030
  * @param {*} [options] Override http request option.
22854
23031
  * @throws {RequiredError}
22855
23032
  */
22856
- getEnvironmentStatusesWithStages(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2002>>;
23033
+ getEnvironmentStatusesWithStages(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2001>>;
22857
23034
  };
22858
23035
  /**
22859
23036
  * EnvironmentMainCallsApi - factory interface
@@ -22900,7 +23077,7 @@ export declare const EnvironmentMainCallsApiFactory: (configuration?: Configurat
22900
23077
  * @param {*} [options] Override http request option.
22901
23078
  * @throws {RequiredError}
22902
23079
  */
22903
- getEnvironmentStatuses(environmentId: string, options?: any): AxiosPromise<InlineResponse2001>;
23080
+ getEnvironmentStatuses(environmentId: string, options?: any): AxiosPromise<InlineResponse200>;
22904
23081
  /**
22905
23082
  *
22906
23083
  * @summary Get environment statuses with stages
@@ -22908,7 +23085,7 @@ export declare const EnvironmentMainCallsApiFactory: (configuration?: Configurat
22908
23085
  * @param {*} [options] Override http request option.
22909
23086
  * @throws {RequiredError}
22910
23087
  */
22911
- getEnvironmentStatusesWithStages(environmentId: string, options?: any): AxiosPromise<InlineResponse2002>;
23088
+ getEnvironmentStatusesWithStages(environmentId: string, options?: any): AxiosPromise<InlineResponse2001>;
22912
23089
  };
22913
23090
  /**
22914
23091
  * EnvironmentMainCallsApi - object-oriented interface
@@ -22962,7 +23139,7 @@ export declare class EnvironmentMainCallsApi extends BaseAPI {
22962
23139
  * @throws {RequiredError}
22963
23140
  * @memberof EnvironmentMainCallsApi
22964
23141
  */
22965
- getEnvironmentStatuses(environmentId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse2001>>;
23142
+ getEnvironmentStatuses(environmentId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200>>;
22966
23143
  /**
22967
23144
  *
22968
23145
  * @summary Get environment statuses with stages
@@ -22971,7 +23148,7 @@ export declare class EnvironmentMainCallsApi extends BaseAPI {
22971
23148
  * @throws {RequiredError}
22972
23149
  * @memberof EnvironmentMainCallsApi
22973
23150
  */
22974
- getEnvironmentStatusesWithStages(environmentId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse2002>>;
23151
+ getEnvironmentStatusesWithStages(environmentId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse2001>>;
22975
23152
  }
22976
23153
  /**
22977
23154
  * EnvironmentSecretApi - axios parameter creator
@@ -26380,7 +26557,7 @@ export declare const OrganizationEventApiFp: (configuration?: Configuration) =>
26380
26557
  * @param {*} [options] Override http request option.
26381
26558
  * @throws {RequiredError}
26382
26559
  */
26383
- getOrganizationEventTargets(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, triggeredBy?: string, origin?: OrganizationEventOrigin, projectId?: string, environmentId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
26560
+ getOrganizationEventTargets(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, triggeredBy?: string, origin?: OrganizationEventOrigin, projectId?: string, environmentId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationEventTargetResponseList>>;
26384
26561
  /**
26385
26562
  * Get all events inside the organization
26386
26563
  * @summary Get all events inside the organization
@@ -26421,7 +26598,7 @@ export declare const OrganizationEventApiFactory: (configuration?: Configuration
26421
26598
  * @param {*} [options] Override http request option.
26422
26599
  * @throws {RequiredError}
26423
26600
  */
26424
- getOrganizationEventTargets(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, triggeredBy?: string, origin?: OrganizationEventOrigin, projectId?: string, environmentId?: string, options?: any): AxiosPromise<InlineResponse200>;
26601
+ getOrganizationEventTargets(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, triggeredBy?: string, origin?: OrganizationEventOrigin, projectId?: string, environmentId?: string, options?: any): AxiosPromise<OrganizationEventTargetResponseList>;
26425
26602
  /**
26426
26603
  * Get all events inside the organization
26427
26604
  * @summary Get all events inside the organization
@@ -26465,7 +26642,7 @@ export declare class OrganizationEventApi extends BaseAPI {
26465
26642
  * @throws {RequiredError}
26466
26643
  * @memberof OrganizationEventApi
26467
26644
  */
26468
- getOrganizationEventTargets(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, triggeredBy?: string, origin?: OrganizationEventOrigin, projectId?: string, environmentId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200>>;
26645
+ getOrganizationEventTargets(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, triggeredBy?: string, origin?: OrganizationEventOrigin, projectId?: string, environmentId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrganizationEventTargetResponseList>>;
26469
26646
  /**
26470
26647
  * Get all events inside the organization
26471
26648
  * @summary Get all events inside the organization
@@ -28116,3 +28293,66 @@ export declare class UserSignUpApi extends BaseAPI {
28116
28293
  */
28117
28294
  getUserSignUp(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SignUp>>;
28118
28295
  }
28296
+ /**
28297
+ * VariableMainCallsApi - axios parameter creator
28298
+ * @export
28299
+ */
28300
+ export declare const VariableMainCallsApiAxiosParamCreator: (configuration?: Configuration) => {
28301
+ /**
28302
+ * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28303
+ * @summary Create a variable alias
28304
+ * @param {string} variableId Variable ID
28305
+ * @param {VariableAliasRequest} [variableAliasRequest]
28306
+ * @param {*} [options] Override http request option.
28307
+ * @throws {RequiredError}
28308
+ */
28309
+ createVariableAlias: (variableId: string, variableAliasRequest?: VariableAliasRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28310
+ };
28311
+ /**
28312
+ * VariableMainCallsApi - functional programming interface
28313
+ * @export
28314
+ */
28315
+ export declare const VariableMainCallsApiFp: (configuration?: Configuration) => {
28316
+ /**
28317
+ * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28318
+ * @summary Create a variable alias
28319
+ * @param {string} variableId Variable ID
28320
+ * @param {VariableAliasRequest} [variableAliasRequest]
28321
+ * @param {*} [options] Override http request option.
28322
+ * @throws {RequiredError}
28323
+ */
28324
+ createVariableAlias(variableId: string, variableAliasRequest?: VariableAliasRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>>;
28325
+ };
28326
+ /**
28327
+ * VariableMainCallsApi - factory interface
28328
+ * @export
28329
+ */
28330
+ export declare const VariableMainCallsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
28331
+ /**
28332
+ * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28333
+ * @summary Create a variable alias
28334
+ * @param {string} variableId Variable ID
28335
+ * @param {VariableAliasRequest} [variableAliasRequest]
28336
+ * @param {*} [options] Override http request option.
28337
+ * @throws {RequiredError}
28338
+ */
28339
+ createVariableAlias(variableId: string, variableAliasRequest?: VariableAliasRequest, options?: any): AxiosPromise<VariableResponse>;
28340
+ };
28341
+ /**
28342
+ * VariableMainCallsApi - object-oriented interface
28343
+ * @export
28344
+ * @class VariableMainCallsApi
28345
+ * @extends {BaseAPI}
28346
+ */
28347
+ export declare class VariableMainCallsApi extends BaseAPI {
28348
+ /**
28349
+ * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28350
+ * @summary Create a variable alias
28351
+ * @param {string} variableId Variable ID
28352
+ * @param {VariableAliasRequest} [variableAliasRequest]
28353
+ * @param {*} [options] Override http request option.
28354
+ * @throws {RequiredError}
28355
+ * @memberof VariableMainCallsApi
28356
+ */
28357
+ createVariableAlias(variableId: string, variableAliasRequest?: VariableAliasRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableResponse>>;
28358
+ }
package/dist/api.js CHANGED
@@ -28,7 +28,7 @@ exports.ContainerMainCallsApiFp = exports.ContainerMainCallsApiAxiosParamCreator
28
28
  exports.DatabasesApi = exports.DatabasesApiFactory = exports.DatabasesApiFp = exports.DatabasesApiAxiosParamCreator = exports.DatabaseMetricsApi = exports.DatabaseMetricsApiFactory = exports.DatabaseMetricsApiFp = exports.DatabaseMetricsApiAxiosParamCreator = exports.DatabaseMainCallsApi = exports.DatabaseMainCallsApiFactory = exports.DatabaseMainCallsApiFp = exports.DatabaseMainCallsApiAxiosParamCreator = exports.DatabaseEventApi = exports.DatabaseEventApiFactory = exports.DatabaseEventApiFp = exports.DatabaseEventApiAxiosParamCreator = exports.DatabaseDeploymentHistoryApi = exports.DatabaseDeploymentHistoryApiFactory = exports.DatabaseDeploymentHistoryApiFp = exports.DatabaseDeploymentHistoryApiAxiosParamCreator = exports.DatabaseApplicationApi = exports.DatabaseApplicationApiFactory = exports.DatabaseApplicationApiFp = exports.DatabaseApplicationApiAxiosParamCreator = exports.DatabaseActionsApi = exports.DatabaseActionsApiFactory = exports.DatabaseActionsApiFp = exports.DatabaseActionsApiAxiosParamCreator = exports.CustomDomainApi = exports.CustomDomainApiFactory = exports.CustomDomainApiFp = exports.CustomDomainApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ContainerSecretApi = exports.ContainerSecretApiFactory = exports.ContainerSecretApiFp = exports.ContainerSecretApiAxiosParamCreator = exports.ContainerRegistriesApi = exports.ContainerRegistriesApiFactory = exports.ContainerRegistriesApiFp = exports.ContainerRegistriesApiAxiosParamCreator = exports.ContainerMetricsApi = exports.ContainerMetricsApiFactory = exports.ContainerMetricsApiFp = exports.ContainerMetricsApiAxiosParamCreator = exports.ContainerMainCallsApi = exports.ContainerMainCallsApiFactory = void 0;
29
29
  exports.GithubAppApiFp = exports.GithubAppApiAxiosParamCreator = exports.GitRepositoriesApi = exports.GitRepositoriesApiFactory = exports.GitRepositoriesApiFp = exports.GitRepositoriesApiAxiosParamCreator = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.EnvironmentVariableApi = exports.EnvironmentVariableApiFactory = exports.EnvironmentVariableApiFp = exports.EnvironmentVariableApiAxiosParamCreator = exports.EnvironmentSecretApi = exports.EnvironmentSecretApiFactory = exports.EnvironmentSecretApiFp = exports.EnvironmentSecretApiAxiosParamCreator = exports.EnvironmentMainCallsApi = exports.EnvironmentMainCallsApiFactory = exports.EnvironmentMainCallsApiFp = exports.EnvironmentMainCallsApiAxiosParamCreator = exports.EnvironmentLogsApi = exports.EnvironmentLogsApiFactory = exports.EnvironmentLogsApiFp = exports.EnvironmentLogsApiAxiosParamCreator = exports.EnvironmentExportApi = exports.EnvironmentExportApiFactory = exports.EnvironmentExportApiFp = exports.EnvironmentExportApiAxiosParamCreator = exports.EnvironmentDeploymentRuleApi = exports.EnvironmentDeploymentRuleApiFactory = exports.EnvironmentDeploymentRuleApiFp = exports.EnvironmentDeploymentRuleApiAxiosParamCreator = exports.EnvironmentDeploymentHistoryApi = exports.EnvironmentDeploymentHistoryApiFactory = exports.EnvironmentDeploymentHistoryApiFp = exports.EnvironmentDeploymentHistoryApiAxiosParamCreator = exports.EnvironmentActionsApi = exports.EnvironmentActionsApiFactory = exports.EnvironmentActionsApiFp = exports.EnvironmentActionsApiAxiosParamCreator = exports.EnvironmentApi = exports.EnvironmentApiFactory = exports.EnvironmentApiFp = exports.EnvironmentApiAxiosParamCreator = exports.DeploymentStageMainCallsApi = exports.DeploymentStageMainCallsApiFactory = exports.DeploymentStageMainCallsApiFp = exports.DeploymentStageMainCallsApiAxiosParamCreator = void 0;
30
30
  exports.OrganizationCustomRoleApi = exports.OrganizationCustomRoleApiFactory = exports.OrganizationCustomRoleApiFp = exports.OrganizationCustomRoleApiAxiosParamCreator = exports.OrganizationApiTokenApi = exports.OrganizationApiTokenApiFactory = exports.OrganizationApiTokenApiFp = exports.OrganizationApiTokenApiAxiosParamCreator = exports.OrganizationAccountGitRepositoriesApi = exports.OrganizationAccountGitRepositoriesApiFactory = exports.OrganizationAccountGitRepositoriesApiFp = exports.OrganizationAccountGitRepositoriesApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.JobSecretApi = exports.JobSecretApiFactory = exports.JobSecretApiFp = exports.JobSecretApiAxiosParamCreator = exports.JobMetricsApi = exports.JobMetricsApiFactory = exports.JobMetricsApiFp = exports.JobMetricsApiAxiosParamCreator = exports.JobMainCallsApi = exports.JobMainCallsApiFactory = exports.JobMainCallsApiFp = exports.JobMainCallsApiAxiosParamCreator = exports.JobEnvironmentVariableApi = exports.JobEnvironmentVariableApiFactory = exports.JobEnvironmentVariableApiFp = exports.JobEnvironmentVariableApiAxiosParamCreator = exports.JobDeploymentHistoryApi = exports.JobDeploymentHistoryApiFactory = exports.JobDeploymentHistoryApiFp = exports.JobDeploymentHistoryApiAxiosParamCreator = exports.JobConfigurationApi = exports.JobConfigurationApiFactory = exports.JobConfigurationApiFp = exports.JobConfigurationApiAxiosParamCreator = exports.JobActionsApi = exports.JobActionsApiFactory = exports.JobActionsApiFp = exports.JobActionsApiAxiosParamCreator = exports.GithubAppApi = exports.GithubAppApiFactory = void 0;
31
- exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationEventApi = exports.OrganizationEventApiFactory = exports.OrganizationEventApiFp = exports.OrganizationEventApiAxiosParamCreator = void 0;
31
+ exports.VariableMainCallsApi = exports.VariableMainCallsApiFactory = exports.VariableMainCallsApiFp = exports.VariableMainCallsApiAxiosParamCreator = exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationEventApi = exports.OrganizationEventApiFactory = exports.OrganizationEventApiFp = exports.OrganizationEventApiAxiosParamCreator = void 0;
32
32
  const axios_1 = require("axios");
33
33
  // Some imports not used depending on template conditions
34
34
  // @ts-ignore
@@ -28717,3 +28717,113 @@ class UserSignUpApi extends base_1.BaseAPI {
28717
28717
  }
28718
28718
  }
28719
28719
  exports.UserSignUpApi = UserSignUpApi;
28720
+ /**
28721
+ * VariableMainCallsApi - axios parameter creator
28722
+ * @export
28723
+ */
28724
+ const VariableMainCallsApiAxiosParamCreator = function (configuration) {
28725
+ return {
28726
+ /**
28727
+ * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28728
+ * @summary Create a variable alias
28729
+ * @param {string} variableId Variable ID
28730
+ * @param {VariableAliasRequest} [variableAliasRequest]
28731
+ * @param {*} [options] Override http request option.
28732
+ * @throws {RequiredError}
28733
+ */
28734
+ createVariableAlias: (variableId, variableAliasRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
28735
+ // verify required parameter 'variableId' is not null or undefined
28736
+ (0, common_1.assertParamExists)('createVariableAlias', 'variableId', variableId);
28737
+ const localVarPath = `/variable/{variableId}/alias`
28738
+ .replace(`{${"variableId"}}`, encodeURIComponent(String(variableId)));
28739
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28740
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28741
+ let baseOptions;
28742
+ if (configuration) {
28743
+ baseOptions = configuration.baseOptions;
28744
+ }
28745
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
28746
+ const localVarHeaderParameter = {};
28747
+ const localVarQueryParameter = {};
28748
+ // authentication bearerAuth required
28749
+ // http bearer authentication required
28750
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
28751
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28752
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28753
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28754
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28755
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(variableAliasRequest, localVarRequestOptions, configuration);
28756
+ return {
28757
+ url: (0, common_1.toPathString)(localVarUrlObj),
28758
+ options: localVarRequestOptions,
28759
+ };
28760
+ }),
28761
+ };
28762
+ };
28763
+ exports.VariableMainCallsApiAxiosParamCreator = VariableMainCallsApiAxiosParamCreator;
28764
+ /**
28765
+ * VariableMainCallsApi - functional programming interface
28766
+ * @export
28767
+ */
28768
+ const VariableMainCallsApiFp = function (configuration) {
28769
+ const localVarAxiosParamCreator = (0, exports.VariableMainCallsApiAxiosParamCreator)(configuration);
28770
+ return {
28771
+ /**
28772
+ * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28773
+ * @summary Create a variable alias
28774
+ * @param {string} variableId Variable ID
28775
+ * @param {VariableAliasRequest} [variableAliasRequest]
28776
+ * @param {*} [options] Override http request option.
28777
+ * @throws {RequiredError}
28778
+ */
28779
+ createVariableAlias(variableId, variableAliasRequest, options) {
28780
+ return __awaiter(this, void 0, void 0, function* () {
28781
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createVariableAlias(variableId, variableAliasRequest, options);
28782
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
28783
+ });
28784
+ },
28785
+ };
28786
+ };
28787
+ exports.VariableMainCallsApiFp = VariableMainCallsApiFp;
28788
+ /**
28789
+ * VariableMainCallsApi - factory interface
28790
+ * @export
28791
+ */
28792
+ const VariableMainCallsApiFactory = function (configuration, basePath, axios) {
28793
+ const localVarFp = (0, exports.VariableMainCallsApiFp)(configuration);
28794
+ return {
28795
+ /**
28796
+ * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28797
+ * @summary Create a variable alias
28798
+ * @param {string} variableId Variable ID
28799
+ * @param {VariableAliasRequest} [variableAliasRequest]
28800
+ * @param {*} [options] Override http request option.
28801
+ * @throws {RequiredError}
28802
+ */
28803
+ createVariableAlias(variableId, variableAliasRequest, options) {
28804
+ return localVarFp.createVariableAlias(variableId, variableAliasRequest, options).then((request) => request(axios, basePath));
28805
+ },
28806
+ };
28807
+ };
28808
+ exports.VariableMainCallsApiFactory = VariableMainCallsApiFactory;
28809
+ /**
28810
+ * VariableMainCallsApi - object-oriented interface
28811
+ * @export
28812
+ * @class VariableMainCallsApi
28813
+ * @extends {BaseAPI}
28814
+ */
28815
+ class VariableMainCallsApi extends base_1.BaseAPI {
28816
+ /**
28817
+ * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28818
+ * @summary Create a variable alias
28819
+ * @param {string} variableId Variable ID
28820
+ * @param {VariableAliasRequest} [variableAliasRequest]
28821
+ * @param {*} [options] Override http request option.
28822
+ * @throws {RequiredError}
28823
+ * @memberof VariableMainCallsApi
28824
+ */
28825
+ createVariableAlias(variableId, variableAliasRequest, options) {
28826
+ return (0, exports.VariableMainCallsApiFp)(this.configuration).createVariableAlias(variableId, variableAliasRequest, options).then((request) => request(this.axios, this.basePath));
28827
+ }
28828
+ }
28829
+ exports.VariableMainCallsApi = VariableMainCallsApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.166",
3
+ "version": "v1.1.168",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [