qovery-typescript-axios 1.1.1032 → 1.1.1034
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 +581 -0
- package/dist/api.d.ts +399 -0
- package/dist/api.js +362 -13
- package/dist/esm/api.d.ts +399 -0
- package/dist/esm/api.js +341 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -5759,6 +5759,249 @@ export interface Budget {
|
|
|
5759
5759
|
*/
|
|
5760
5760
|
'currency_code'?: string;
|
|
5761
5761
|
}
|
|
5762
|
+
/**
|
|
5763
|
+
* What the analysis read. DOCKERFILE and BUILD_SETTINGS (build configuration and build argument names) are always read, DOCKERIGNORE when Qovery could check the repository for it, BUILD_LOGS when the build or earlier builds sharing its cache have logs.
|
|
5764
|
+
* @export
|
|
5765
|
+
* @enum {string}
|
|
5766
|
+
*/
|
|
5767
|
+
|
|
5768
|
+
export const BuildAnalysisAsset = {
|
|
5769
|
+
DOCKERFILE: 'DOCKERFILE',
|
|
5770
|
+
DOCKERIGNORE: 'DOCKERIGNORE',
|
|
5771
|
+
BUILD_LOGS: 'BUILD_LOGS',
|
|
5772
|
+
BUILD_SETTINGS: 'BUILD_SETTINGS'
|
|
5773
|
+
} as const;
|
|
5774
|
+
|
|
5775
|
+
export type BuildAnalysisAsset = typeof BuildAnalysisAsset[keyof typeof BuildAnalysisAsset];
|
|
5776
|
+
|
|
5777
|
+
|
|
5778
|
+
/**
|
|
5779
|
+
* How sure the analysis is that applying the improvements saves `estimated_time_saved`. HIGH when the build logs, the cache history or the build metrics show both the cause and the time it costs, MEDIUM when one of the two is inferred, LOW when only the Dockerfile suggests it or there is no time estimate. With no improvement, how sure the analysis is that the build has nothing left to gain.
|
|
5780
|
+
* @export
|
|
5781
|
+
* @enum {string}
|
|
5782
|
+
*/
|
|
5783
|
+
|
|
5784
|
+
export const BuildAnalysisConfidence = {
|
|
5785
|
+
HIGH: 'HIGH',
|
|
5786
|
+
MEDIUM: 'MEDIUM',
|
|
5787
|
+
LOW: 'LOW'
|
|
5788
|
+
} as const;
|
|
5789
|
+
|
|
5790
|
+
export type BuildAnalysisConfidence = typeof BuildAnalysisConfidence[keyof typeof BuildAnalysisConfidence];
|
|
5791
|
+
|
|
5792
|
+
|
|
5793
|
+
/**
|
|
5794
|
+
* Where the analysed Dockerfile came from. GIT is the repository at the build commit, INLINE the Dockerfile stored on the job, PASTE a Dockerfile pasted by the user.
|
|
5795
|
+
* @export
|
|
5796
|
+
* @enum {string}
|
|
5797
|
+
*/
|
|
5798
|
+
|
|
5799
|
+
export const BuildAnalysisDockerfileSource = {
|
|
5800
|
+
GIT: 'GIT',
|
|
5801
|
+
INLINE: 'INLINE',
|
|
5802
|
+
PASTE: 'PASTE'
|
|
5803
|
+
} as const;
|
|
5804
|
+
|
|
5805
|
+
export type BuildAnalysisDockerfileSource = typeof BuildAnalysisDockerfileSource[keyof typeof BuildAnalysisDockerfileSource];
|
|
5806
|
+
|
|
5807
|
+
|
|
5808
|
+
/**
|
|
5809
|
+
* COPILOT_DISABLED when the organization opted out of AI features, MODEL_ERROR when the model call failed or returned an invalid result, TIMEOUT when the analysis took too long, INTERNAL_ERROR otherwise.
|
|
5810
|
+
* @export
|
|
5811
|
+
* @enum {string}
|
|
5812
|
+
*/
|
|
5813
|
+
|
|
5814
|
+
export const BuildAnalysisFailureCode = {
|
|
5815
|
+
COPILOT_DISABLED: 'COPILOT_DISABLED',
|
|
5816
|
+
MODEL_ERROR: 'MODEL_ERROR',
|
|
5817
|
+
TIMEOUT: 'TIMEOUT',
|
|
5818
|
+
INTERNAL_ERROR: 'INTERNAL_ERROR'
|
|
5819
|
+
} as const;
|
|
5820
|
+
|
|
5821
|
+
export type BuildAnalysisFailureCode = typeof BuildAnalysisFailureCode[keyof typeof BuildAnalysisFailureCode];
|
|
5822
|
+
|
|
5823
|
+
|
|
5824
|
+
/**
|
|
5825
|
+
*
|
|
5826
|
+
* @export
|
|
5827
|
+
* @interface BuildAnalysisResponse
|
|
5828
|
+
*/
|
|
5829
|
+
export interface BuildAnalysisResponse {
|
|
5830
|
+
/**
|
|
5831
|
+
*
|
|
5832
|
+
* @type {string}
|
|
5833
|
+
* @memberof BuildAnalysisResponse
|
|
5834
|
+
*/
|
|
5835
|
+
'service_id': string;
|
|
5836
|
+
/**
|
|
5837
|
+
* Execution id of the analysed build.
|
|
5838
|
+
* @type {string}
|
|
5839
|
+
* @memberof BuildAnalysisResponse
|
|
5840
|
+
*/
|
|
5841
|
+
'execution_id': string;
|
|
5842
|
+
/**
|
|
5843
|
+
*
|
|
5844
|
+
* @type {BuildAnalysisStatus}
|
|
5845
|
+
* @memberof BuildAnalysisResponse
|
|
5846
|
+
*/
|
|
5847
|
+
'status': BuildAnalysisStatus;
|
|
5848
|
+
/**
|
|
5849
|
+
* True when the latest build of the service is not the analysed one. The analysis stays readable, but only the latest build can be analysed.
|
|
5850
|
+
* @type {boolean}
|
|
5851
|
+
* @memberof BuildAnalysisResponse
|
|
5852
|
+
*/
|
|
5853
|
+
'stale': boolean;
|
|
5854
|
+
/**
|
|
5855
|
+
*
|
|
5856
|
+
* @type {BuildAnalysisDockerfileSource}
|
|
5857
|
+
* @memberof BuildAnalysisResponse
|
|
5858
|
+
*/
|
|
5859
|
+
'dockerfile_source': BuildAnalysisDockerfileSource;
|
|
5860
|
+
/**
|
|
5861
|
+
* Why the analysis failed, when `status` is FAILED.
|
|
5862
|
+
* @type {BuildAnalysisFailureCode}
|
|
5863
|
+
* @memberof BuildAnalysisResponse
|
|
5864
|
+
*/
|
|
5865
|
+
'failure_code': BuildAnalysisFailureCode | null;
|
|
5866
|
+
/**
|
|
5867
|
+
* Human-readable detail of the failure, when `status` is FAILED.
|
|
5868
|
+
* @type {string}
|
|
5869
|
+
* @memberof BuildAnalysisResponse
|
|
5870
|
+
*/
|
|
5871
|
+
'failure_reason': string | null;
|
|
5872
|
+
/**
|
|
5873
|
+
* Set when `status` is DONE.
|
|
5874
|
+
* @type {BuildAnalysisResult}
|
|
5875
|
+
* @memberof BuildAnalysisResponse
|
|
5876
|
+
*/
|
|
5877
|
+
'result': BuildAnalysisResult | null;
|
|
5878
|
+
/**
|
|
5879
|
+
*
|
|
5880
|
+
* @type {string}
|
|
5881
|
+
* @memberof BuildAnalysisResponse
|
|
5882
|
+
*/
|
|
5883
|
+
'created_at': string;
|
|
5884
|
+
/**
|
|
5885
|
+
*
|
|
5886
|
+
* @type {string}
|
|
5887
|
+
* @memberof BuildAnalysisResponse
|
|
5888
|
+
*/
|
|
5889
|
+
'updated_at': string;
|
|
5890
|
+
}
|
|
5891
|
+
|
|
5892
|
+
|
|
5893
|
+
/**
|
|
5894
|
+
*
|
|
5895
|
+
* @export
|
|
5896
|
+
* @interface BuildAnalysisResult
|
|
5897
|
+
*/
|
|
5898
|
+
export interface BuildAnalysisResult {
|
|
5899
|
+
/**
|
|
5900
|
+
*
|
|
5901
|
+
* @type {BuildAnalysisConfidence}
|
|
5902
|
+
* @memberof BuildAnalysisResult
|
|
5903
|
+
*/
|
|
5904
|
+
'confidence': BuildAnalysisConfidence;
|
|
5905
|
+
/**
|
|
5906
|
+
* Build time saved on each build once every improvement is applied. Null when there is nothing to save or no timing to base it on. `confidence` applies to this range.
|
|
5907
|
+
* @type {BuildAnalysisTimeSaved}
|
|
5908
|
+
* @memberof BuildAnalysisResult
|
|
5909
|
+
*/
|
|
5910
|
+
'estimated_time_saved': BuildAnalysisTimeSaved | null;
|
|
5911
|
+
/**
|
|
5912
|
+
*
|
|
5913
|
+
* @type {Array<BuildAnalysisAsset>}
|
|
5914
|
+
* @memberof BuildAnalysisResult
|
|
5915
|
+
*/
|
|
5916
|
+
'assets_reviewed': Array<BuildAnalysisAsset>;
|
|
5917
|
+
/**
|
|
5918
|
+
* What slows the build and why, with the evidence from the build.
|
|
5919
|
+
* @type {string}
|
|
5920
|
+
* @memberof BuildAnalysisResult
|
|
5921
|
+
*/
|
|
5922
|
+
'summary': string;
|
|
5923
|
+
/**
|
|
5924
|
+
* Changes to make, one sentence each, ordered by impact on build time, highest first. Empty when the build is already efficient.
|
|
5925
|
+
* @type {Array<string>}
|
|
5926
|
+
* @memberof BuildAnalysisResult
|
|
5927
|
+
*/
|
|
5928
|
+
'improvements': Array<string>;
|
|
5929
|
+
/**
|
|
5930
|
+
* Reworked Dockerfile to copy. Null when no improvement is a Dockerfile change, for example a variable value. Values hidden from the analysis appear as `<redacted>` and must be put back before use.
|
|
5931
|
+
* @type {string}
|
|
5932
|
+
* @memberof BuildAnalysisResult
|
|
5933
|
+
*/
|
|
5934
|
+
'dockerfile': string | null;
|
|
5935
|
+
/**
|
|
5936
|
+
* Why the reworked Dockerfile is faster.
|
|
5937
|
+
* @type {string}
|
|
5938
|
+
* @memberof BuildAnalysisResult
|
|
5939
|
+
*/
|
|
5940
|
+
'dockerfile_rationale': string | null;
|
|
5941
|
+
/**
|
|
5942
|
+
* Prompt the customer pastes into their own AI agent to apply the improvements in their repository.
|
|
5943
|
+
* @type {string}
|
|
5944
|
+
* @memberof BuildAnalysisResult
|
|
5945
|
+
*/
|
|
5946
|
+
'agent_prompt': string;
|
|
5947
|
+
}
|
|
5948
|
+
|
|
5949
|
+
|
|
5950
|
+
/**
|
|
5951
|
+
*
|
|
5952
|
+
* @export
|
|
5953
|
+
* @interface BuildAnalysisState
|
|
5954
|
+
*/
|
|
5955
|
+
export interface BuildAnalysisState {
|
|
5956
|
+
/**
|
|
5957
|
+
* Execution id of the latest build of the service, the only build that can be analysed. Null when no deployment in the kept history ran a build.
|
|
5958
|
+
* @type {string}
|
|
5959
|
+
* @memberof BuildAnalysisState
|
|
5960
|
+
*/
|
|
5961
|
+
'latest_build_execution_id': string | null;
|
|
5962
|
+
/**
|
|
5963
|
+
* The latest analysis of the service. Null when none was run.
|
|
5964
|
+
* @type {BuildAnalysisResponse}
|
|
5965
|
+
* @memberof BuildAnalysisState
|
|
5966
|
+
*/
|
|
5967
|
+
'analysis': BuildAnalysisResponse | null;
|
|
5968
|
+
}
|
|
5969
|
+
/**
|
|
5970
|
+
* PENDING is queued, COLLECTING reads the build logs and the cache history, ANALYSING waits for the model, then DONE or FAILED.
|
|
5971
|
+
* @export
|
|
5972
|
+
* @enum {string}
|
|
5973
|
+
*/
|
|
5974
|
+
|
|
5975
|
+
export const BuildAnalysisStatus = {
|
|
5976
|
+
PENDING: 'PENDING',
|
|
5977
|
+
COLLECTING: 'COLLECTING',
|
|
5978
|
+
ANALYSING: 'ANALYSING',
|
|
5979
|
+
DONE: 'DONE',
|
|
5980
|
+
FAILED: 'FAILED'
|
|
5981
|
+
} as const;
|
|
5982
|
+
|
|
5983
|
+
export type BuildAnalysisStatus = typeof BuildAnalysisStatus[keyof typeof BuildAnalysisStatus];
|
|
5984
|
+
|
|
5985
|
+
|
|
5986
|
+
/**
|
|
5987
|
+
* Seconds saved on each build, as a range from min_seconds to max_seconds. When nothing is saved, the field holding it is null instead.
|
|
5988
|
+
* @export
|
|
5989
|
+
* @interface BuildAnalysisTimeSaved
|
|
5990
|
+
*/
|
|
5991
|
+
export interface BuildAnalysisTimeSaved {
|
|
5992
|
+
/**
|
|
5993
|
+
*
|
|
5994
|
+
* @type {number}
|
|
5995
|
+
* @memberof BuildAnalysisTimeSaved
|
|
5996
|
+
*/
|
|
5997
|
+
'min_seconds': number;
|
|
5998
|
+
/**
|
|
5999
|
+
*
|
|
6000
|
+
* @type {number}
|
|
6001
|
+
* @memberof BuildAnalysisTimeSaved
|
|
6002
|
+
*/
|
|
6003
|
+
'max_seconds': number;
|
|
6004
|
+
}
|
|
5762
6005
|
/**
|
|
5763
6006
|
* `DOCKER` requires `dockerfile_path`
|
|
5764
6007
|
* @export
|
|
@@ -21805,6 +22048,18 @@ export interface Organization {
|
|
|
21805
22048
|
* @memberof Organization
|
|
21806
22049
|
*/
|
|
21807
22050
|
'has_enterprise_connection'?: boolean;
|
|
22051
|
+
/**
|
|
22052
|
+
* Initial value of `ai_features_enabled`, fixed at creation.
|
|
22053
|
+
* @type {boolean}
|
|
22054
|
+
* @memberof Organization
|
|
22055
|
+
*/
|
|
22056
|
+
'ai_features_enabled_by_default'?: boolean;
|
|
22057
|
+
/**
|
|
22058
|
+
* Whether the organization opted in to AI features (DevOps Copilot, build analysis). Starts at `ai_features_enabled_by_default`.
|
|
22059
|
+
* @type {boolean}
|
|
22060
|
+
* @memberof Organization
|
|
22061
|
+
*/
|
|
22062
|
+
'ai_features_enabled'?: boolean;
|
|
21808
22063
|
/**
|
|
21809
22064
|
*
|
|
21810
22065
|
* @type {OrganizationAllOfOrganizationPlan}
|
|
@@ -21814,6 +22069,19 @@ export interface Organization {
|
|
|
21814
22069
|
}
|
|
21815
22070
|
|
|
21816
22071
|
|
|
22072
|
+
/**
|
|
22073
|
+
*
|
|
22074
|
+
* @export
|
|
22075
|
+
* @interface OrganizationAiFeaturesRequest
|
|
22076
|
+
*/
|
|
22077
|
+
export interface OrganizationAiFeaturesRequest {
|
|
22078
|
+
/**
|
|
22079
|
+
* Whether the organization opts in to AI features
|
|
22080
|
+
* @type {boolean}
|
|
22081
|
+
* @memberof OrganizationAiFeaturesRequest
|
|
22082
|
+
*/
|
|
22083
|
+
'enabled': boolean;
|
|
22084
|
+
}
|
|
21817
22085
|
/**
|
|
21818
22086
|
*
|
|
21819
22087
|
* @export
|
|
@@ -32849,6 +33117,121 @@ export class ApplicationActionsApi extends BaseAPI {
|
|
|
32849
33117
|
|
|
32850
33118
|
|
|
32851
33119
|
|
|
33120
|
+
/**
|
|
33121
|
+
* ApplicationBuildAnalysisApi - axios parameter creator
|
|
33122
|
+
* @export
|
|
33123
|
+
*/
|
|
33124
|
+
export const ApplicationBuildAnalysisApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33125
|
+
return {
|
|
33126
|
+
/**
|
|
33127
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
33128
|
+
* @summary Get the build analysis of an application
|
|
33129
|
+
* @param {string} applicationId Application ID
|
|
33130
|
+
* @param {*} [options] Override http request option.
|
|
33131
|
+
* @throws {RequiredError}
|
|
33132
|
+
*/
|
|
33133
|
+
getApplicationBuildAnalysis: async (applicationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33134
|
+
// verify required parameter 'applicationId' is not null or undefined
|
|
33135
|
+
assertParamExists('getApplicationBuildAnalysis', 'applicationId', applicationId)
|
|
33136
|
+
const localVarPath = `/application/{applicationId}/buildAnalysis`
|
|
33137
|
+
.replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
|
|
33138
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33139
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33140
|
+
let baseOptions;
|
|
33141
|
+
if (configuration) {
|
|
33142
|
+
baseOptions = configuration.baseOptions;
|
|
33143
|
+
}
|
|
33144
|
+
|
|
33145
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
33146
|
+
const localVarHeaderParameter = {} as any;
|
|
33147
|
+
const localVarQueryParameter = {} as any;
|
|
33148
|
+
|
|
33149
|
+
// authentication ApiKeyAuth required
|
|
33150
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
33151
|
+
|
|
33152
|
+
// authentication bearerAuth required
|
|
33153
|
+
// http bearer authentication required
|
|
33154
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33155
|
+
|
|
33156
|
+
|
|
33157
|
+
|
|
33158
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33159
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33160
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33161
|
+
|
|
33162
|
+
return {
|
|
33163
|
+
url: toPathString(localVarUrlObj),
|
|
33164
|
+
options: localVarRequestOptions,
|
|
33165
|
+
};
|
|
33166
|
+
},
|
|
33167
|
+
}
|
|
33168
|
+
};
|
|
33169
|
+
|
|
33170
|
+
/**
|
|
33171
|
+
* ApplicationBuildAnalysisApi - functional programming interface
|
|
33172
|
+
* @export
|
|
33173
|
+
*/
|
|
33174
|
+
export const ApplicationBuildAnalysisApiFp = function(configuration?: Configuration) {
|
|
33175
|
+
const localVarAxiosParamCreator = ApplicationBuildAnalysisApiAxiosParamCreator(configuration)
|
|
33176
|
+
return {
|
|
33177
|
+
/**
|
|
33178
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
33179
|
+
* @summary Get the build analysis of an application
|
|
33180
|
+
* @param {string} applicationId Application ID
|
|
33181
|
+
* @param {*} [options] Override http request option.
|
|
33182
|
+
* @throws {RequiredError}
|
|
33183
|
+
*/
|
|
33184
|
+
async getApplicationBuildAnalysis(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisState>> {
|
|
33185
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getApplicationBuildAnalysis(applicationId, options);
|
|
33186
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
33187
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationBuildAnalysisApi.getApplicationBuildAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
33188
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33189
|
+
},
|
|
33190
|
+
}
|
|
33191
|
+
};
|
|
33192
|
+
|
|
33193
|
+
/**
|
|
33194
|
+
* ApplicationBuildAnalysisApi - factory interface
|
|
33195
|
+
* @export
|
|
33196
|
+
*/
|
|
33197
|
+
export const ApplicationBuildAnalysisApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
33198
|
+
const localVarFp = ApplicationBuildAnalysisApiFp(configuration)
|
|
33199
|
+
return {
|
|
33200
|
+
/**
|
|
33201
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
33202
|
+
* @summary Get the build analysis of an application
|
|
33203
|
+
* @param {string} applicationId Application ID
|
|
33204
|
+
* @param {*} [options] Override http request option.
|
|
33205
|
+
* @throws {RequiredError}
|
|
33206
|
+
*/
|
|
33207
|
+
getApplicationBuildAnalysis(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisState> {
|
|
33208
|
+
return localVarFp.getApplicationBuildAnalysis(applicationId, options).then((request) => request(axios, basePath));
|
|
33209
|
+
},
|
|
33210
|
+
};
|
|
33211
|
+
};
|
|
33212
|
+
|
|
33213
|
+
/**
|
|
33214
|
+
* ApplicationBuildAnalysisApi - object-oriented interface
|
|
33215
|
+
* @export
|
|
33216
|
+
* @class ApplicationBuildAnalysisApi
|
|
33217
|
+
* @extends {BaseAPI}
|
|
33218
|
+
*/
|
|
33219
|
+
export class ApplicationBuildAnalysisApi extends BaseAPI {
|
|
33220
|
+
/**
|
|
33221
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
33222
|
+
* @summary Get the build analysis of an application
|
|
33223
|
+
* @param {string} applicationId Application ID
|
|
33224
|
+
* @param {*} [options] Override http request option.
|
|
33225
|
+
* @throws {RequiredError}
|
|
33226
|
+
* @memberof ApplicationBuildAnalysisApi
|
|
33227
|
+
*/
|
|
33228
|
+
public getApplicationBuildAnalysis(applicationId: string, options?: RawAxiosRequestConfig) {
|
|
33229
|
+
return ApplicationBuildAnalysisApiFp(this.configuration).getApplicationBuildAnalysis(applicationId, options).then((request) => request(this.axios, this.basePath));
|
|
33230
|
+
}
|
|
33231
|
+
}
|
|
33232
|
+
|
|
33233
|
+
|
|
33234
|
+
|
|
32852
33235
|
/**
|
|
32853
33236
|
* ApplicationConfigurationApi - axios parameter creator
|
|
32854
33237
|
* @export
|
|
@@ -63229,6 +63612,121 @@ export class JobActionsApi extends BaseAPI {
|
|
|
63229
63612
|
|
|
63230
63613
|
|
|
63231
63614
|
|
|
63615
|
+
/**
|
|
63616
|
+
* JobBuildAnalysisApi - axios parameter creator
|
|
63617
|
+
* @export
|
|
63618
|
+
*/
|
|
63619
|
+
export const JobBuildAnalysisApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
63620
|
+
return {
|
|
63621
|
+
/**
|
|
63622
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
63623
|
+
* @summary Get the build analysis of a job
|
|
63624
|
+
* @param {string} jobId Job ID
|
|
63625
|
+
* @param {*} [options] Override http request option.
|
|
63626
|
+
* @throws {RequiredError}
|
|
63627
|
+
*/
|
|
63628
|
+
getJobBuildAnalysis: async (jobId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
63629
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
63630
|
+
assertParamExists('getJobBuildAnalysis', 'jobId', jobId)
|
|
63631
|
+
const localVarPath = `/job/{jobId}/buildAnalysis`
|
|
63632
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
63633
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
63634
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
63635
|
+
let baseOptions;
|
|
63636
|
+
if (configuration) {
|
|
63637
|
+
baseOptions = configuration.baseOptions;
|
|
63638
|
+
}
|
|
63639
|
+
|
|
63640
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
63641
|
+
const localVarHeaderParameter = {} as any;
|
|
63642
|
+
const localVarQueryParameter = {} as any;
|
|
63643
|
+
|
|
63644
|
+
// authentication ApiKeyAuth required
|
|
63645
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
63646
|
+
|
|
63647
|
+
// authentication bearerAuth required
|
|
63648
|
+
// http bearer authentication required
|
|
63649
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
63650
|
+
|
|
63651
|
+
|
|
63652
|
+
|
|
63653
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
63654
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63655
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
63656
|
+
|
|
63657
|
+
return {
|
|
63658
|
+
url: toPathString(localVarUrlObj),
|
|
63659
|
+
options: localVarRequestOptions,
|
|
63660
|
+
};
|
|
63661
|
+
},
|
|
63662
|
+
}
|
|
63663
|
+
};
|
|
63664
|
+
|
|
63665
|
+
/**
|
|
63666
|
+
* JobBuildAnalysisApi - functional programming interface
|
|
63667
|
+
* @export
|
|
63668
|
+
*/
|
|
63669
|
+
export const JobBuildAnalysisApiFp = function(configuration?: Configuration) {
|
|
63670
|
+
const localVarAxiosParamCreator = JobBuildAnalysisApiAxiosParamCreator(configuration)
|
|
63671
|
+
return {
|
|
63672
|
+
/**
|
|
63673
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
63674
|
+
* @summary Get the build analysis of a job
|
|
63675
|
+
* @param {string} jobId Job ID
|
|
63676
|
+
* @param {*} [options] Override http request option.
|
|
63677
|
+
* @throws {RequiredError}
|
|
63678
|
+
*/
|
|
63679
|
+
async getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisState>> {
|
|
63680
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getJobBuildAnalysis(jobId, options);
|
|
63681
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
63682
|
+
const localVarOperationServerBasePath = operationServerMap['JobBuildAnalysisApi.getJobBuildAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
63683
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
63684
|
+
},
|
|
63685
|
+
}
|
|
63686
|
+
};
|
|
63687
|
+
|
|
63688
|
+
/**
|
|
63689
|
+
* JobBuildAnalysisApi - factory interface
|
|
63690
|
+
* @export
|
|
63691
|
+
*/
|
|
63692
|
+
export const JobBuildAnalysisApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
63693
|
+
const localVarFp = JobBuildAnalysisApiFp(configuration)
|
|
63694
|
+
return {
|
|
63695
|
+
/**
|
|
63696
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
63697
|
+
* @summary Get the build analysis of a job
|
|
63698
|
+
* @param {string} jobId Job ID
|
|
63699
|
+
* @param {*} [options] Override http request option.
|
|
63700
|
+
* @throws {RequiredError}
|
|
63701
|
+
*/
|
|
63702
|
+
getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisState> {
|
|
63703
|
+
return localVarFp.getJobBuildAnalysis(jobId, options).then((request) => request(axios, basePath));
|
|
63704
|
+
},
|
|
63705
|
+
};
|
|
63706
|
+
};
|
|
63707
|
+
|
|
63708
|
+
/**
|
|
63709
|
+
* JobBuildAnalysisApi - object-oriented interface
|
|
63710
|
+
* @export
|
|
63711
|
+
* @class JobBuildAnalysisApi
|
|
63712
|
+
* @extends {BaseAPI}
|
|
63713
|
+
*/
|
|
63714
|
+
export class JobBuildAnalysisApi extends BaseAPI {
|
|
63715
|
+
/**
|
|
63716
|
+
* Returns the latest build of the service that can be analysed and its latest analysis, if any. Only one analysis is kept per service.
|
|
63717
|
+
* @summary Get the build analysis of a job
|
|
63718
|
+
* @param {string} jobId Job ID
|
|
63719
|
+
* @param {*} [options] Override http request option.
|
|
63720
|
+
* @throws {RequiredError}
|
|
63721
|
+
* @memberof JobBuildAnalysisApi
|
|
63722
|
+
*/
|
|
63723
|
+
public getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig) {
|
|
63724
|
+
return JobBuildAnalysisApiFp(this.configuration).getJobBuildAnalysis(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
63725
|
+
}
|
|
63726
|
+
}
|
|
63727
|
+
|
|
63728
|
+
|
|
63729
|
+
|
|
63232
63730
|
/**
|
|
63233
63731
|
* JobConfigurationApi - axios parameter creator
|
|
63234
63732
|
* @export
|
|
@@ -72098,6 +72596,51 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
|
|
|
72098
72596
|
options: localVarRequestOptions,
|
|
72099
72597
|
};
|
|
72100
72598
|
},
|
|
72599
|
+
/**
|
|
72600
|
+
* To edit the AI features opt-in you must have the admin permission.
|
|
72601
|
+
* @summary Edit the organization\'s AI features opt-in
|
|
72602
|
+
* @param {string} organizationId Organization ID
|
|
72603
|
+
* @param {OrganizationAiFeaturesRequest} [organizationAiFeaturesRequest]
|
|
72604
|
+
* @param {*} [options] Override http request option.
|
|
72605
|
+
* @throws {RequiredError}
|
|
72606
|
+
*/
|
|
72607
|
+
editOrganizationAiFeatures: async (organizationId: string, organizationAiFeaturesRequest?: OrganizationAiFeaturesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
72608
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
72609
|
+
assertParamExists('editOrganizationAiFeatures', 'organizationId', organizationId)
|
|
72610
|
+
const localVarPath = `/organization/{organizationId}/aiFeatures`
|
|
72611
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
72612
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
72613
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
72614
|
+
let baseOptions;
|
|
72615
|
+
if (configuration) {
|
|
72616
|
+
baseOptions = configuration.baseOptions;
|
|
72617
|
+
}
|
|
72618
|
+
|
|
72619
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
72620
|
+
const localVarHeaderParameter = {} as any;
|
|
72621
|
+
const localVarQueryParameter = {} as any;
|
|
72622
|
+
|
|
72623
|
+
// authentication ApiKeyAuth required
|
|
72624
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
72625
|
+
|
|
72626
|
+
// authentication bearerAuth required
|
|
72627
|
+
// http bearer authentication required
|
|
72628
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
72629
|
+
|
|
72630
|
+
|
|
72631
|
+
|
|
72632
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
72633
|
+
|
|
72634
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
72635
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72636
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
72637
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationAiFeaturesRequest, localVarRequestOptions, configuration)
|
|
72638
|
+
|
|
72639
|
+
return {
|
|
72640
|
+
url: toPathString(localVarUrlObj),
|
|
72641
|
+
options: localVarRequestOptions,
|
|
72642
|
+
};
|
|
72643
|
+
},
|
|
72101
72644
|
/**
|
|
72102
72645
|
* Get organization container registry associated services
|
|
72103
72646
|
* @summary Get organization container registry associated services
|
|
@@ -72851,6 +73394,20 @@ export const OrganizationMainCallsApiFp = function(configuration?: Configuration
|
|
|
72851
73394
|
const localVarOperationServerBasePath = operationServerMap['OrganizationMainCallsApi.editOrganization']?.[localVarOperationServerIndex]?.url;
|
|
72852
73395
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
72853
73396
|
},
|
|
73397
|
+
/**
|
|
73398
|
+
* To edit the AI features opt-in you must have the admin permission.
|
|
73399
|
+
* @summary Edit the organization\'s AI features opt-in
|
|
73400
|
+
* @param {string} organizationId Organization ID
|
|
73401
|
+
* @param {OrganizationAiFeaturesRequest} [organizationAiFeaturesRequest]
|
|
73402
|
+
* @param {*} [options] Override http request option.
|
|
73403
|
+
* @throws {RequiredError}
|
|
73404
|
+
*/
|
|
73405
|
+
async editOrganizationAiFeatures(organizationId: string, organizationAiFeaturesRequest?: OrganizationAiFeaturesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organization>> {
|
|
73406
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.editOrganizationAiFeatures(organizationId, organizationAiFeaturesRequest, options);
|
|
73407
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
73408
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationMainCallsApi.editOrganizationAiFeatures']?.[localVarOperationServerIndex]?.url;
|
|
73409
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
73410
|
+
},
|
|
72854
73411
|
/**
|
|
72855
73412
|
* Get organization container registry associated services
|
|
72856
73413
|
* @summary Get organization container registry associated services
|
|
@@ -73130,6 +73687,17 @@ export const OrganizationMainCallsApiFactory = function (configuration?: Configu
|
|
|
73130
73687
|
editOrganization(organizationId: string, organizationEditRequest?: OrganizationEditRequest, options?: RawAxiosRequestConfig): AxiosPromise<Organization> {
|
|
73131
73688
|
return localVarFp.editOrganization(organizationId, organizationEditRequest, options).then((request) => request(axios, basePath));
|
|
73132
73689
|
},
|
|
73690
|
+
/**
|
|
73691
|
+
* To edit the AI features opt-in you must have the admin permission.
|
|
73692
|
+
* @summary Edit the organization\'s AI features opt-in
|
|
73693
|
+
* @param {string} organizationId Organization ID
|
|
73694
|
+
* @param {OrganizationAiFeaturesRequest} [organizationAiFeaturesRequest]
|
|
73695
|
+
* @param {*} [options] Override http request option.
|
|
73696
|
+
* @throws {RequiredError}
|
|
73697
|
+
*/
|
|
73698
|
+
editOrganizationAiFeatures(organizationId: string, organizationAiFeaturesRequest?: OrganizationAiFeaturesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Organization> {
|
|
73699
|
+
return localVarFp.editOrganizationAiFeatures(organizationId, organizationAiFeaturesRequest, options).then((request) => request(axios, basePath));
|
|
73700
|
+
},
|
|
73133
73701
|
/**
|
|
73134
73702
|
* Get organization container registry associated services
|
|
73135
73703
|
* @summary Get organization container registry associated services
|
|
@@ -73376,6 +73944,19 @@ export class OrganizationMainCallsApi extends BaseAPI {
|
|
|
73376
73944
|
return OrganizationMainCallsApiFp(this.configuration).editOrganization(organizationId, organizationEditRequest, options).then((request) => request(this.axios, this.basePath));
|
|
73377
73945
|
}
|
|
73378
73946
|
|
|
73947
|
+
/**
|
|
73948
|
+
* To edit the AI features opt-in you must have the admin permission.
|
|
73949
|
+
* @summary Edit the organization\'s AI features opt-in
|
|
73950
|
+
* @param {string} organizationId Organization ID
|
|
73951
|
+
* @param {OrganizationAiFeaturesRequest} [organizationAiFeaturesRequest]
|
|
73952
|
+
* @param {*} [options] Override http request option.
|
|
73953
|
+
* @throws {RequiredError}
|
|
73954
|
+
* @memberof OrganizationMainCallsApi
|
|
73955
|
+
*/
|
|
73956
|
+
public editOrganizationAiFeatures(organizationId: string, organizationAiFeaturesRequest?: OrganizationAiFeaturesRequest, options?: RawAxiosRequestConfig) {
|
|
73957
|
+
return OrganizationMainCallsApiFp(this.configuration).editOrganizationAiFeatures(organizationId, organizationAiFeaturesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
73958
|
+
}
|
|
73959
|
+
|
|
73379
73960
|
/**
|
|
73380
73961
|
* Get organization container registry associated services
|
|
73381
73962
|
* @summary Get organization container registry associated services
|