qovery-typescript-axios 1.1.1035 → 1.1.1036
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 +187 -6
- package/dist/api.d.ts +90 -5
- package/dist/api.js +162 -6
- package/dist/esm/api.d.ts +90 -5
- package/dist/esm/api.js +162 -6
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -5791,28 +5791,26 @@ export type BuildAnalysisConfidence = typeof BuildAnalysisConfidence[keyof typeo
|
|
|
5791
5791
|
|
|
5792
5792
|
|
|
5793
5793
|
/**
|
|
5794
|
-
* Where the analysed Dockerfile came from. GIT is the repository at the build commit, INLINE the Dockerfile stored on the job
|
|
5794
|
+
* Where the analysed Dockerfile came from. GIT is the repository at the build commit, INLINE the Dockerfile stored on the job.
|
|
5795
5795
|
* @export
|
|
5796
5796
|
* @enum {string}
|
|
5797
5797
|
*/
|
|
5798
5798
|
|
|
5799
5799
|
export const BuildAnalysisDockerfileSource = {
|
|
5800
5800
|
GIT: 'GIT',
|
|
5801
|
-
INLINE: 'INLINE'
|
|
5802
|
-
PASTE: 'PASTE'
|
|
5801
|
+
INLINE: 'INLINE'
|
|
5803
5802
|
} as const;
|
|
5804
5803
|
|
|
5805
5804
|
export type BuildAnalysisDockerfileSource = typeof BuildAnalysisDockerfileSource[keyof typeof BuildAnalysisDockerfileSource];
|
|
5806
5805
|
|
|
5807
5806
|
|
|
5808
5807
|
/**
|
|
5809
|
-
*
|
|
5808
|
+
* MODEL_ERROR when the model call failed or returned an invalid result, TIMEOUT when the analysis took too long, INTERNAL_ERROR otherwise.
|
|
5810
5809
|
* @export
|
|
5811
5810
|
* @enum {string}
|
|
5812
5811
|
*/
|
|
5813
5812
|
|
|
5814
5813
|
export const BuildAnalysisFailureCode = {
|
|
5815
|
-
COPILOT_DISABLED: 'COPILOT_DISABLED',
|
|
5816
5814
|
MODEL_ERROR: 'MODEL_ERROR',
|
|
5817
5815
|
TIMEOUT: 'TIMEOUT',
|
|
5818
5816
|
INTERNAL_ERROR: 'INTERNAL_ERROR'
|
|
@@ -5947,6 +5945,19 @@ export interface BuildAnalysisResult {
|
|
|
5947
5945
|
}
|
|
5948
5946
|
|
|
5949
5947
|
|
|
5948
|
+
/**
|
|
5949
|
+
*
|
|
5950
|
+
* @export
|
|
5951
|
+
* @interface BuildAnalysisStartRequest
|
|
5952
|
+
*/
|
|
5953
|
+
export interface BuildAnalysisStartRequest {
|
|
5954
|
+
/**
|
|
5955
|
+
* Execution id of the build to analyse. It must be the latest build of the service, `latest_build_execution_id` in `BuildAnalysisState`.
|
|
5956
|
+
* @type {string}
|
|
5957
|
+
* @memberof BuildAnalysisStartRequest
|
|
5958
|
+
*/
|
|
5959
|
+
'execution_id': string;
|
|
5960
|
+
}
|
|
5950
5961
|
/**
|
|
5951
5962
|
*
|
|
5952
5963
|
* @export
|
|
@@ -5967,7 +5978,7 @@ export interface BuildAnalysisState {
|
|
|
5967
5978
|
'analysis': BuildAnalysisResponse | null;
|
|
5968
5979
|
}
|
|
5969
5980
|
/**
|
|
5970
|
-
* PENDING is queued, COLLECTING reads the build logs and the cache history, ANALYSING waits for the model, then DONE or FAILED.
|
|
5981
|
+
* PENDING is queued, COLLECTING reads the build logs and the cache history, ANALYSING waits for the model, then DONE or FAILED. The Dockerfile is resolved before the start answers 202.
|
|
5971
5982
|
* @export
|
|
5972
5983
|
* @enum {string}
|
|
5973
5984
|
*/
|
|
@@ -33159,6 +33170,53 @@ export const ApplicationBuildAnalysisApiAxiosParamCreator = function (configurat
|
|
|
33159
33170
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33160
33171
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33161
33172
|
|
|
33173
|
+
return {
|
|
33174
|
+
url: toPathString(localVarUrlObj),
|
|
33175
|
+
options: localVarRequestOptions,
|
|
33176
|
+
};
|
|
33177
|
+
},
|
|
33178
|
+
/**
|
|
33179
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
33180
|
+
* @summary Analyse the latest build of an application
|
|
33181
|
+
* @param {string} applicationId Application ID
|
|
33182
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
33183
|
+
* @param {*} [options] Override http request option.
|
|
33184
|
+
* @throws {RequiredError}
|
|
33185
|
+
*/
|
|
33186
|
+
startApplicationBuildAnalysis: async (applicationId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33187
|
+
// verify required parameter 'applicationId' is not null or undefined
|
|
33188
|
+
assertParamExists('startApplicationBuildAnalysis', 'applicationId', applicationId)
|
|
33189
|
+
// verify required parameter 'buildAnalysisStartRequest' is not null or undefined
|
|
33190
|
+
assertParamExists('startApplicationBuildAnalysis', 'buildAnalysisStartRequest', buildAnalysisStartRequest)
|
|
33191
|
+
const localVarPath = `/application/{applicationId}/buildAnalysis`
|
|
33192
|
+
.replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
|
|
33193
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33194
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33195
|
+
let baseOptions;
|
|
33196
|
+
if (configuration) {
|
|
33197
|
+
baseOptions = configuration.baseOptions;
|
|
33198
|
+
}
|
|
33199
|
+
|
|
33200
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
33201
|
+
const localVarHeaderParameter = {} as any;
|
|
33202
|
+
const localVarQueryParameter = {} as any;
|
|
33203
|
+
|
|
33204
|
+
// authentication ApiKeyAuth required
|
|
33205
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
33206
|
+
|
|
33207
|
+
// authentication bearerAuth required
|
|
33208
|
+
// http bearer authentication required
|
|
33209
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33210
|
+
|
|
33211
|
+
|
|
33212
|
+
|
|
33213
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
33214
|
+
|
|
33215
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33216
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33217
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33218
|
+
localVarRequestOptions.data = serializeDataIfNeeded(buildAnalysisStartRequest, localVarRequestOptions, configuration)
|
|
33219
|
+
|
|
33162
33220
|
return {
|
|
33163
33221
|
url: toPathString(localVarUrlObj),
|
|
33164
33222
|
options: localVarRequestOptions,
|
|
@@ -33187,6 +33245,20 @@ export const ApplicationBuildAnalysisApiFp = function(configuration?: Configurat
|
|
|
33187
33245
|
const localVarOperationServerBasePath = operationServerMap['ApplicationBuildAnalysisApi.getApplicationBuildAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
33188
33246
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33189
33247
|
},
|
|
33248
|
+
/**
|
|
33249
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
33250
|
+
* @summary Analyse the latest build of an application
|
|
33251
|
+
* @param {string} applicationId Application ID
|
|
33252
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
33253
|
+
* @param {*} [options] Override http request option.
|
|
33254
|
+
* @throws {RequiredError}
|
|
33255
|
+
*/
|
|
33256
|
+
async startApplicationBuildAnalysis(applicationId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisResponse>> {
|
|
33257
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options);
|
|
33258
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
33259
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationBuildAnalysisApi.startApplicationBuildAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
33260
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33261
|
+
},
|
|
33190
33262
|
}
|
|
33191
33263
|
};
|
|
33192
33264
|
|
|
@@ -33207,6 +33279,17 @@ export const ApplicationBuildAnalysisApiFactory = function (configuration?: Conf
|
|
|
33207
33279
|
getApplicationBuildAnalysis(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisState> {
|
|
33208
33280
|
return localVarFp.getApplicationBuildAnalysis(applicationId, options).then((request) => request(axios, basePath));
|
|
33209
33281
|
},
|
|
33282
|
+
/**
|
|
33283
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
33284
|
+
* @summary Analyse the latest build of an application
|
|
33285
|
+
* @param {string} applicationId Application ID
|
|
33286
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
33287
|
+
* @param {*} [options] Override http request option.
|
|
33288
|
+
* @throws {RequiredError}
|
|
33289
|
+
*/
|
|
33290
|
+
startApplicationBuildAnalysis(applicationId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisResponse> {
|
|
33291
|
+
return localVarFp.startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options).then((request) => request(axios, basePath));
|
|
33292
|
+
},
|
|
33210
33293
|
};
|
|
33211
33294
|
};
|
|
33212
33295
|
|
|
@@ -33228,6 +33311,19 @@ export class ApplicationBuildAnalysisApi extends BaseAPI {
|
|
|
33228
33311
|
public getApplicationBuildAnalysis(applicationId: string, options?: RawAxiosRequestConfig) {
|
|
33229
33312
|
return ApplicationBuildAnalysisApiFp(this.configuration).getApplicationBuildAnalysis(applicationId, options).then((request) => request(this.axios, this.basePath));
|
|
33230
33313
|
}
|
|
33314
|
+
|
|
33315
|
+
/**
|
|
33316
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
33317
|
+
* @summary Analyse the latest build of an application
|
|
33318
|
+
* @param {string} applicationId Application ID
|
|
33319
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
33320
|
+
* @param {*} [options] Override http request option.
|
|
33321
|
+
* @throws {RequiredError}
|
|
33322
|
+
* @memberof ApplicationBuildAnalysisApi
|
|
33323
|
+
*/
|
|
33324
|
+
public startApplicationBuildAnalysis(applicationId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig) {
|
|
33325
|
+
return ApplicationBuildAnalysisApiFp(this.configuration).startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options).then((request) => request(this.axios, this.basePath));
|
|
33326
|
+
}
|
|
33231
33327
|
}
|
|
33232
33328
|
|
|
33233
33329
|
|
|
@@ -63646,6 +63742,53 @@ export const JobBuildAnalysisApiAxiosParamCreator = function (configuration?: Co
|
|
|
63646
63742
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63647
63743
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
63648
63744
|
|
|
63745
|
+
return {
|
|
63746
|
+
url: toPathString(localVarUrlObj),
|
|
63747
|
+
options: localVarRequestOptions,
|
|
63748
|
+
};
|
|
63749
|
+
},
|
|
63750
|
+
/**
|
|
63751
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
63752
|
+
* @summary Analyse the latest build of a job
|
|
63753
|
+
* @param {string} jobId Job ID
|
|
63754
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
63755
|
+
* @param {*} [options] Override http request option.
|
|
63756
|
+
* @throws {RequiredError}
|
|
63757
|
+
*/
|
|
63758
|
+
startJobBuildAnalysis: async (jobId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
63759
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
63760
|
+
assertParamExists('startJobBuildAnalysis', 'jobId', jobId)
|
|
63761
|
+
// verify required parameter 'buildAnalysisStartRequest' is not null or undefined
|
|
63762
|
+
assertParamExists('startJobBuildAnalysis', 'buildAnalysisStartRequest', buildAnalysisStartRequest)
|
|
63763
|
+
const localVarPath = `/job/{jobId}/buildAnalysis`
|
|
63764
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
63765
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
63766
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
63767
|
+
let baseOptions;
|
|
63768
|
+
if (configuration) {
|
|
63769
|
+
baseOptions = configuration.baseOptions;
|
|
63770
|
+
}
|
|
63771
|
+
|
|
63772
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
63773
|
+
const localVarHeaderParameter = {} as any;
|
|
63774
|
+
const localVarQueryParameter = {} as any;
|
|
63775
|
+
|
|
63776
|
+
// authentication ApiKeyAuth required
|
|
63777
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
63778
|
+
|
|
63779
|
+
// authentication bearerAuth required
|
|
63780
|
+
// http bearer authentication required
|
|
63781
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
63782
|
+
|
|
63783
|
+
|
|
63784
|
+
|
|
63785
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
63786
|
+
|
|
63787
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
63788
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63789
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
63790
|
+
localVarRequestOptions.data = serializeDataIfNeeded(buildAnalysisStartRequest, localVarRequestOptions, configuration)
|
|
63791
|
+
|
|
63649
63792
|
return {
|
|
63650
63793
|
url: toPathString(localVarUrlObj),
|
|
63651
63794
|
options: localVarRequestOptions,
|
|
@@ -63674,6 +63817,20 @@ export const JobBuildAnalysisApiFp = function(configuration?: Configuration) {
|
|
|
63674
63817
|
const localVarOperationServerBasePath = operationServerMap['JobBuildAnalysisApi.getJobBuildAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
63675
63818
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
63676
63819
|
},
|
|
63820
|
+
/**
|
|
63821
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
63822
|
+
* @summary Analyse the latest build of a job
|
|
63823
|
+
* @param {string} jobId Job ID
|
|
63824
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
63825
|
+
* @param {*} [options] Override http request option.
|
|
63826
|
+
* @throws {RequiredError}
|
|
63827
|
+
*/
|
|
63828
|
+
async startJobBuildAnalysis(jobId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisResponse>> {
|
|
63829
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options);
|
|
63830
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
63831
|
+
const localVarOperationServerBasePath = operationServerMap['JobBuildAnalysisApi.startJobBuildAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
63832
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
63833
|
+
},
|
|
63677
63834
|
}
|
|
63678
63835
|
};
|
|
63679
63836
|
|
|
@@ -63694,6 +63851,17 @@ export const JobBuildAnalysisApiFactory = function (configuration?: Configuratio
|
|
|
63694
63851
|
getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisState> {
|
|
63695
63852
|
return localVarFp.getJobBuildAnalysis(jobId, options).then((request) => request(axios, basePath));
|
|
63696
63853
|
},
|
|
63854
|
+
/**
|
|
63855
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
63856
|
+
* @summary Analyse the latest build of a job
|
|
63857
|
+
* @param {string} jobId Job ID
|
|
63858
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
63859
|
+
* @param {*} [options] Override http request option.
|
|
63860
|
+
* @throws {RequiredError}
|
|
63861
|
+
*/
|
|
63862
|
+
startJobBuildAnalysis(jobId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisResponse> {
|
|
63863
|
+
return localVarFp.startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options).then((request) => request(axios, basePath));
|
|
63864
|
+
},
|
|
63697
63865
|
};
|
|
63698
63866
|
};
|
|
63699
63867
|
|
|
@@ -63715,6 +63883,19 @@ export class JobBuildAnalysisApi extends BaseAPI {
|
|
|
63715
63883
|
public getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig) {
|
|
63716
63884
|
return JobBuildAnalysisApiFp(this.configuration).getJobBuildAnalysis(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
63717
63885
|
}
|
|
63886
|
+
|
|
63887
|
+
/**
|
|
63888
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
63889
|
+
* @summary Analyse the latest build of a job
|
|
63890
|
+
* @param {string} jobId Job ID
|
|
63891
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
63892
|
+
* @param {*} [options] Override http request option.
|
|
63893
|
+
* @throws {RequiredError}
|
|
63894
|
+
* @memberof JobBuildAnalysisApi
|
|
63895
|
+
*/
|
|
63896
|
+
public startJobBuildAnalysis(jobId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig) {
|
|
63897
|
+
return JobBuildAnalysisApiFp(this.configuration).startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options).then((request) => request(this.axios, this.basePath));
|
|
63898
|
+
}
|
|
63718
63899
|
}
|
|
63719
63900
|
|
|
63720
63901
|
|
package/dist/api.d.ts
CHANGED
|
@@ -5611,23 +5611,21 @@ export declare const BuildAnalysisConfidence: {
|
|
|
5611
5611
|
};
|
|
5612
5612
|
export type BuildAnalysisConfidence = typeof BuildAnalysisConfidence[keyof typeof BuildAnalysisConfidence];
|
|
5613
5613
|
/**
|
|
5614
|
-
* Where the analysed Dockerfile came from. GIT is the repository at the build commit, INLINE the Dockerfile stored on the job
|
|
5614
|
+
* Where the analysed Dockerfile came from. GIT is the repository at the build commit, INLINE the Dockerfile stored on the job.
|
|
5615
5615
|
* @export
|
|
5616
5616
|
* @enum {string}
|
|
5617
5617
|
*/
|
|
5618
5618
|
export declare const BuildAnalysisDockerfileSource: {
|
|
5619
5619
|
readonly GIT: "GIT";
|
|
5620
5620
|
readonly INLINE: "INLINE";
|
|
5621
|
-
readonly PASTE: "PASTE";
|
|
5622
5621
|
};
|
|
5623
5622
|
export type BuildAnalysisDockerfileSource = typeof BuildAnalysisDockerfileSource[keyof typeof BuildAnalysisDockerfileSource];
|
|
5624
5623
|
/**
|
|
5625
|
-
*
|
|
5624
|
+
* MODEL_ERROR when the model call failed or returned an invalid result, TIMEOUT when the analysis took too long, INTERNAL_ERROR otherwise.
|
|
5626
5625
|
* @export
|
|
5627
5626
|
* @enum {string}
|
|
5628
5627
|
*/
|
|
5629
5628
|
export declare const BuildAnalysisFailureCode: {
|
|
5630
|
-
readonly COPILOT_DISABLED: "COPILOT_DISABLED";
|
|
5631
5629
|
readonly MODEL_ERROR: "MODEL_ERROR";
|
|
5632
5630
|
readonly TIMEOUT: "TIMEOUT";
|
|
5633
5631
|
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
@@ -5755,6 +5753,19 @@ export interface BuildAnalysisResult {
|
|
|
5755
5753
|
*/
|
|
5756
5754
|
'agent_prompt': string;
|
|
5757
5755
|
}
|
|
5756
|
+
/**
|
|
5757
|
+
*
|
|
5758
|
+
* @export
|
|
5759
|
+
* @interface BuildAnalysisStartRequest
|
|
5760
|
+
*/
|
|
5761
|
+
export interface BuildAnalysisStartRequest {
|
|
5762
|
+
/**
|
|
5763
|
+
* Execution id of the build to analyse. It must be the latest build of the service, `latest_build_execution_id` in `BuildAnalysisState`.
|
|
5764
|
+
* @type {string}
|
|
5765
|
+
* @memberof BuildAnalysisStartRequest
|
|
5766
|
+
*/
|
|
5767
|
+
'execution_id': string;
|
|
5768
|
+
}
|
|
5758
5769
|
/**
|
|
5759
5770
|
*
|
|
5760
5771
|
* @export
|
|
@@ -5775,7 +5786,7 @@ export interface BuildAnalysisState {
|
|
|
5775
5786
|
'analysis': BuildAnalysisResponse | null;
|
|
5776
5787
|
}
|
|
5777
5788
|
/**
|
|
5778
|
-
* PENDING is queued, COLLECTING reads the build logs and the cache history, ANALYSING waits for the model, then DONE or FAILED.
|
|
5789
|
+
* PENDING is queued, COLLECTING reads the build logs and the cache history, ANALYSING waits for the model, then DONE or FAILED. The Dockerfile is resolved before the start answers 202.
|
|
5779
5790
|
* @export
|
|
5780
5791
|
* @enum {string}
|
|
5781
5792
|
*/
|
|
@@ -30756,6 +30767,15 @@ export declare const ApplicationBuildAnalysisApiAxiosParamCreator: (configuratio
|
|
|
30756
30767
|
* @throws {RequiredError}
|
|
30757
30768
|
*/
|
|
30758
30769
|
getApplicationBuildAnalysis: (applicationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30770
|
+
/**
|
|
30771
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
30772
|
+
* @summary Analyse the latest build of an application
|
|
30773
|
+
* @param {string} applicationId Application ID
|
|
30774
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
30775
|
+
* @param {*} [options] Override http request option.
|
|
30776
|
+
* @throws {RequiredError}
|
|
30777
|
+
*/
|
|
30778
|
+
startApplicationBuildAnalysis: (applicationId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30759
30779
|
};
|
|
30760
30780
|
/**
|
|
30761
30781
|
* ApplicationBuildAnalysisApi - functional programming interface
|
|
@@ -30770,6 +30790,15 @@ export declare const ApplicationBuildAnalysisApiFp: (configuration?: Configurati
|
|
|
30770
30790
|
* @throws {RequiredError}
|
|
30771
30791
|
*/
|
|
30772
30792
|
getApplicationBuildAnalysis(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisState>>;
|
|
30793
|
+
/**
|
|
30794
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
30795
|
+
* @summary Analyse the latest build of an application
|
|
30796
|
+
* @param {string} applicationId Application ID
|
|
30797
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
30798
|
+
* @param {*} [options] Override http request option.
|
|
30799
|
+
* @throws {RequiredError}
|
|
30800
|
+
*/
|
|
30801
|
+
startApplicationBuildAnalysis(applicationId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisResponse>>;
|
|
30773
30802
|
};
|
|
30774
30803
|
/**
|
|
30775
30804
|
* ApplicationBuildAnalysisApi - factory interface
|
|
@@ -30784,6 +30813,15 @@ export declare const ApplicationBuildAnalysisApiFactory: (configuration?: Config
|
|
|
30784
30813
|
* @throws {RequiredError}
|
|
30785
30814
|
*/
|
|
30786
30815
|
getApplicationBuildAnalysis(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisState>;
|
|
30816
|
+
/**
|
|
30817
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
30818
|
+
* @summary Analyse the latest build of an application
|
|
30819
|
+
* @param {string} applicationId Application ID
|
|
30820
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
30821
|
+
* @param {*} [options] Override http request option.
|
|
30822
|
+
* @throws {RequiredError}
|
|
30823
|
+
*/
|
|
30824
|
+
startApplicationBuildAnalysis(applicationId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisResponse>;
|
|
30787
30825
|
};
|
|
30788
30826
|
/**
|
|
30789
30827
|
* ApplicationBuildAnalysisApi - object-oriented interface
|
|
@@ -30801,6 +30839,16 @@ export declare class ApplicationBuildAnalysisApi extends BaseAPI {
|
|
|
30801
30839
|
* @memberof ApplicationBuildAnalysisApi
|
|
30802
30840
|
*/
|
|
30803
30841
|
getApplicationBuildAnalysis(applicationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BuildAnalysisState, any, {}, any>>;
|
|
30842
|
+
/**
|
|
30843
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
30844
|
+
* @summary Analyse the latest build of an application
|
|
30845
|
+
* @param {string} applicationId Application ID
|
|
30846
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
30847
|
+
* @param {*} [options] Override http request option.
|
|
30848
|
+
* @throws {RequiredError}
|
|
30849
|
+
* @memberof ApplicationBuildAnalysisApi
|
|
30850
|
+
*/
|
|
30851
|
+
startApplicationBuildAnalysis(applicationId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BuildAnalysisResponse, any, {}, any>>;
|
|
30804
30852
|
}
|
|
30805
30853
|
/**
|
|
30806
30854
|
* ApplicationConfigurationApi - axios parameter creator
|
|
@@ -44734,6 +44782,15 @@ export declare const JobBuildAnalysisApiAxiosParamCreator: (configuration?: Conf
|
|
|
44734
44782
|
* @throws {RequiredError}
|
|
44735
44783
|
*/
|
|
44736
44784
|
getJobBuildAnalysis: (jobId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44785
|
+
/**
|
|
44786
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
44787
|
+
* @summary Analyse the latest build of a job
|
|
44788
|
+
* @param {string} jobId Job ID
|
|
44789
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
44790
|
+
* @param {*} [options] Override http request option.
|
|
44791
|
+
* @throws {RequiredError}
|
|
44792
|
+
*/
|
|
44793
|
+
startJobBuildAnalysis: (jobId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44737
44794
|
};
|
|
44738
44795
|
/**
|
|
44739
44796
|
* JobBuildAnalysisApi - functional programming interface
|
|
@@ -44748,6 +44805,15 @@ export declare const JobBuildAnalysisApiFp: (configuration?: Configuration) => {
|
|
|
44748
44805
|
* @throws {RequiredError}
|
|
44749
44806
|
*/
|
|
44750
44807
|
getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisState>>;
|
|
44808
|
+
/**
|
|
44809
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
44810
|
+
* @summary Analyse the latest build of a job
|
|
44811
|
+
* @param {string} jobId Job ID
|
|
44812
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
44813
|
+
* @param {*} [options] Override http request option.
|
|
44814
|
+
* @throws {RequiredError}
|
|
44815
|
+
*/
|
|
44816
|
+
startJobBuildAnalysis(jobId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisResponse>>;
|
|
44751
44817
|
};
|
|
44752
44818
|
/**
|
|
44753
44819
|
* JobBuildAnalysisApi - factory interface
|
|
@@ -44762,6 +44828,15 @@ export declare const JobBuildAnalysisApiFactory: (configuration?: Configuration,
|
|
|
44762
44828
|
* @throws {RequiredError}
|
|
44763
44829
|
*/
|
|
44764
44830
|
getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisState>;
|
|
44831
|
+
/**
|
|
44832
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
44833
|
+
* @summary Analyse the latest build of a job
|
|
44834
|
+
* @param {string} jobId Job ID
|
|
44835
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
44836
|
+
* @param {*} [options] Override http request option.
|
|
44837
|
+
* @throws {RequiredError}
|
|
44838
|
+
*/
|
|
44839
|
+
startJobBuildAnalysis(jobId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisResponse>;
|
|
44765
44840
|
};
|
|
44766
44841
|
/**
|
|
44767
44842
|
* JobBuildAnalysisApi - object-oriented interface
|
|
@@ -44779,6 +44854,16 @@ export declare class JobBuildAnalysisApi extends BaseAPI {
|
|
|
44779
44854
|
* @memberof JobBuildAnalysisApi
|
|
44780
44855
|
*/
|
|
44781
44856
|
getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BuildAnalysisState, any, {}, any>>;
|
|
44857
|
+
/**
|
|
44858
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
44859
|
+
* @summary Analyse the latest build of a job
|
|
44860
|
+
* @param {string} jobId Job ID
|
|
44861
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
44862
|
+
* @param {*} [options] Override http request option.
|
|
44863
|
+
* @throws {RequiredError}
|
|
44864
|
+
* @memberof JobBuildAnalysisApi
|
|
44865
|
+
*/
|
|
44866
|
+
startJobBuildAnalysis(jobId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BuildAnalysisResponse, any, {}, any>>;
|
|
44782
44867
|
}
|
|
44783
44868
|
/**
|
|
44784
44869
|
* JobConfigurationApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -375,28 +375,26 @@ exports.BuildAnalysisConfidence = {
|
|
|
375
375
|
LOW: 'LOW'
|
|
376
376
|
};
|
|
377
377
|
/**
|
|
378
|
-
* Where the analysed Dockerfile came from. GIT is the repository at the build commit, INLINE the Dockerfile stored on the job
|
|
378
|
+
* Where the analysed Dockerfile came from. GIT is the repository at the build commit, INLINE the Dockerfile stored on the job.
|
|
379
379
|
* @export
|
|
380
380
|
* @enum {string}
|
|
381
381
|
*/
|
|
382
382
|
exports.BuildAnalysisDockerfileSource = {
|
|
383
383
|
GIT: 'GIT',
|
|
384
|
-
INLINE: 'INLINE'
|
|
385
|
-
PASTE: 'PASTE'
|
|
384
|
+
INLINE: 'INLINE'
|
|
386
385
|
};
|
|
387
386
|
/**
|
|
388
|
-
*
|
|
387
|
+
* MODEL_ERROR when the model call failed or returned an invalid result, TIMEOUT when the analysis took too long, INTERNAL_ERROR otherwise.
|
|
389
388
|
* @export
|
|
390
389
|
* @enum {string}
|
|
391
390
|
*/
|
|
392
391
|
exports.BuildAnalysisFailureCode = {
|
|
393
|
-
COPILOT_DISABLED: 'COPILOT_DISABLED',
|
|
394
392
|
MODEL_ERROR: 'MODEL_ERROR',
|
|
395
393
|
TIMEOUT: 'TIMEOUT',
|
|
396
394
|
INTERNAL_ERROR: 'INTERNAL_ERROR'
|
|
397
395
|
};
|
|
398
396
|
/**
|
|
399
|
-
* PENDING is queued, COLLECTING reads the build logs and the cache history, ANALYSING waits for the model, then DONE or FAILED.
|
|
397
|
+
* PENDING is queued, COLLECTING reads the build logs and the cache history, ANALYSING waits for the model, then DONE or FAILED. The Dockerfile is resolved before the start answers 202.
|
|
400
398
|
* @export
|
|
401
399
|
* @enum {string}
|
|
402
400
|
*/
|
|
@@ -4442,6 +4440,45 @@ const ApplicationBuildAnalysisApiAxiosParamCreator = function (configuration) {
|
|
|
4442
4440
|
options: localVarRequestOptions,
|
|
4443
4441
|
};
|
|
4444
4442
|
}),
|
|
4443
|
+
/**
|
|
4444
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
4445
|
+
* @summary Analyse the latest build of an application
|
|
4446
|
+
* @param {string} applicationId Application ID
|
|
4447
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
4448
|
+
* @param {*} [options] Override http request option.
|
|
4449
|
+
* @throws {RequiredError}
|
|
4450
|
+
*/
|
|
4451
|
+
startApplicationBuildAnalysis: (applicationId_1, buildAnalysisStartRequest_1, ...args_1) => __awaiter(this, [applicationId_1, buildAnalysisStartRequest_1, ...args_1], void 0, function* (applicationId, buildAnalysisStartRequest, options = {}) {
|
|
4452
|
+
// verify required parameter 'applicationId' is not null or undefined
|
|
4453
|
+
(0, common_1.assertParamExists)('startApplicationBuildAnalysis', 'applicationId', applicationId);
|
|
4454
|
+
// verify required parameter 'buildAnalysisStartRequest' is not null or undefined
|
|
4455
|
+
(0, common_1.assertParamExists)('startApplicationBuildAnalysis', 'buildAnalysisStartRequest', buildAnalysisStartRequest);
|
|
4456
|
+
const localVarPath = `/application/{applicationId}/buildAnalysis`
|
|
4457
|
+
.replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
|
|
4458
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4459
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4460
|
+
let baseOptions;
|
|
4461
|
+
if (configuration) {
|
|
4462
|
+
baseOptions = configuration.baseOptions;
|
|
4463
|
+
}
|
|
4464
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4465
|
+
const localVarHeaderParameter = {};
|
|
4466
|
+
const localVarQueryParameter = {};
|
|
4467
|
+
// authentication ApiKeyAuth required
|
|
4468
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
4469
|
+
// authentication bearerAuth required
|
|
4470
|
+
// http bearer authentication required
|
|
4471
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4472
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4473
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4474
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4475
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4476
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(buildAnalysisStartRequest, localVarRequestOptions, configuration);
|
|
4477
|
+
return {
|
|
4478
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4479
|
+
options: localVarRequestOptions,
|
|
4480
|
+
};
|
|
4481
|
+
}),
|
|
4445
4482
|
};
|
|
4446
4483
|
};
|
|
4447
4484
|
exports.ApplicationBuildAnalysisApiAxiosParamCreator = ApplicationBuildAnalysisApiAxiosParamCreator;
|
|
@@ -4468,6 +4505,23 @@ const ApplicationBuildAnalysisApiFp = function (configuration) {
|
|
|
4468
4505
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4469
4506
|
});
|
|
4470
4507
|
},
|
|
4508
|
+
/**
|
|
4509
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
4510
|
+
* @summary Analyse the latest build of an application
|
|
4511
|
+
* @param {string} applicationId Application ID
|
|
4512
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
4513
|
+
* @param {*} [options] Override http request option.
|
|
4514
|
+
* @throws {RequiredError}
|
|
4515
|
+
*/
|
|
4516
|
+
startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options) {
|
|
4517
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4518
|
+
var _a, _b, _c;
|
|
4519
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options);
|
|
4520
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4521
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApplicationBuildAnalysisApi.startApplicationBuildAnalysis']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4522
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4523
|
+
});
|
|
4524
|
+
},
|
|
4471
4525
|
};
|
|
4472
4526
|
};
|
|
4473
4527
|
exports.ApplicationBuildAnalysisApiFp = ApplicationBuildAnalysisApiFp;
|
|
@@ -4488,6 +4542,17 @@ const ApplicationBuildAnalysisApiFactory = function (configuration, basePath, ax
|
|
|
4488
4542
|
getApplicationBuildAnalysis(applicationId, options) {
|
|
4489
4543
|
return localVarFp.getApplicationBuildAnalysis(applicationId, options).then((request) => request(axios, basePath));
|
|
4490
4544
|
},
|
|
4545
|
+
/**
|
|
4546
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
4547
|
+
* @summary Analyse the latest build of an application
|
|
4548
|
+
* @param {string} applicationId Application ID
|
|
4549
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
4550
|
+
* @param {*} [options] Override http request option.
|
|
4551
|
+
* @throws {RequiredError}
|
|
4552
|
+
*/
|
|
4553
|
+
startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options) {
|
|
4554
|
+
return localVarFp.startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options).then((request) => request(axios, basePath));
|
|
4555
|
+
},
|
|
4491
4556
|
};
|
|
4492
4557
|
};
|
|
4493
4558
|
exports.ApplicationBuildAnalysisApiFactory = ApplicationBuildAnalysisApiFactory;
|
|
@@ -4509,6 +4574,18 @@ class ApplicationBuildAnalysisApi extends base_1.BaseAPI {
|
|
|
4509
4574
|
getApplicationBuildAnalysis(applicationId, options) {
|
|
4510
4575
|
return (0, exports.ApplicationBuildAnalysisApiFp)(this.configuration).getApplicationBuildAnalysis(applicationId, options).then((request) => request(this.axios, this.basePath));
|
|
4511
4576
|
}
|
|
4577
|
+
/**
|
|
4578
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
4579
|
+
* @summary Analyse the latest build of an application
|
|
4580
|
+
* @param {string} applicationId Application ID
|
|
4581
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
4582
|
+
* @param {*} [options] Override http request option.
|
|
4583
|
+
* @throws {RequiredError}
|
|
4584
|
+
* @memberof ApplicationBuildAnalysisApi
|
|
4585
|
+
*/
|
|
4586
|
+
startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options) {
|
|
4587
|
+
return (0, exports.ApplicationBuildAnalysisApiFp)(this.configuration).startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4588
|
+
}
|
|
4512
4589
|
}
|
|
4513
4590
|
exports.ApplicationBuildAnalysisApi = ApplicationBuildAnalysisApi;
|
|
4514
4591
|
/**
|
|
@@ -32950,6 +33027,45 @@ const JobBuildAnalysisApiAxiosParamCreator = function (configuration) {
|
|
|
32950
33027
|
options: localVarRequestOptions,
|
|
32951
33028
|
};
|
|
32952
33029
|
}),
|
|
33030
|
+
/**
|
|
33031
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
33032
|
+
* @summary Analyse the latest build of a job
|
|
33033
|
+
* @param {string} jobId Job ID
|
|
33034
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
33035
|
+
* @param {*} [options] Override http request option.
|
|
33036
|
+
* @throws {RequiredError}
|
|
33037
|
+
*/
|
|
33038
|
+
startJobBuildAnalysis: (jobId_1, buildAnalysisStartRequest_1, ...args_1) => __awaiter(this, [jobId_1, buildAnalysisStartRequest_1, ...args_1], void 0, function* (jobId, buildAnalysisStartRequest, options = {}) {
|
|
33039
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
33040
|
+
(0, common_1.assertParamExists)('startJobBuildAnalysis', 'jobId', jobId);
|
|
33041
|
+
// verify required parameter 'buildAnalysisStartRequest' is not null or undefined
|
|
33042
|
+
(0, common_1.assertParamExists)('startJobBuildAnalysis', 'buildAnalysisStartRequest', buildAnalysisStartRequest);
|
|
33043
|
+
const localVarPath = `/job/{jobId}/buildAnalysis`
|
|
33044
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
33045
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33046
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33047
|
+
let baseOptions;
|
|
33048
|
+
if (configuration) {
|
|
33049
|
+
baseOptions = configuration.baseOptions;
|
|
33050
|
+
}
|
|
33051
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
33052
|
+
const localVarHeaderParameter = {};
|
|
33053
|
+
const localVarQueryParameter = {};
|
|
33054
|
+
// authentication ApiKeyAuth required
|
|
33055
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
33056
|
+
// authentication bearerAuth required
|
|
33057
|
+
// http bearer authentication required
|
|
33058
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
33059
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
33060
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
33061
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33062
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
33063
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(buildAnalysisStartRequest, localVarRequestOptions, configuration);
|
|
33064
|
+
return {
|
|
33065
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
33066
|
+
options: localVarRequestOptions,
|
|
33067
|
+
};
|
|
33068
|
+
}),
|
|
32953
33069
|
};
|
|
32954
33070
|
};
|
|
32955
33071
|
exports.JobBuildAnalysisApiAxiosParamCreator = JobBuildAnalysisApiAxiosParamCreator;
|
|
@@ -32976,6 +33092,23 @@ const JobBuildAnalysisApiFp = function (configuration) {
|
|
|
32976
33092
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32977
33093
|
});
|
|
32978
33094
|
},
|
|
33095
|
+
/**
|
|
33096
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
33097
|
+
* @summary Analyse the latest build of a job
|
|
33098
|
+
* @param {string} jobId Job ID
|
|
33099
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
33100
|
+
* @param {*} [options] Override http request option.
|
|
33101
|
+
* @throws {RequiredError}
|
|
33102
|
+
*/
|
|
33103
|
+
startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options) {
|
|
33104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33105
|
+
var _a, _b, _c;
|
|
33106
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options);
|
|
33107
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
33108
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['JobBuildAnalysisApi.startJobBuildAnalysis']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
33109
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33110
|
+
});
|
|
33111
|
+
},
|
|
32979
33112
|
};
|
|
32980
33113
|
};
|
|
32981
33114
|
exports.JobBuildAnalysisApiFp = JobBuildAnalysisApiFp;
|
|
@@ -32996,6 +33129,17 @@ const JobBuildAnalysisApiFactory = function (configuration, basePath, axios) {
|
|
|
32996
33129
|
getJobBuildAnalysis(jobId, options) {
|
|
32997
33130
|
return localVarFp.getJobBuildAnalysis(jobId, options).then((request) => request(axios, basePath));
|
|
32998
33131
|
},
|
|
33132
|
+
/**
|
|
33133
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
33134
|
+
* @summary Analyse the latest build of a job
|
|
33135
|
+
* @param {string} jobId Job ID
|
|
33136
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
33137
|
+
* @param {*} [options] Override http request option.
|
|
33138
|
+
* @throws {RequiredError}
|
|
33139
|
+
*/
|
|
33140
|
+
startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options) {
|
|
33141
|
+
return localVarFp.startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options).then((request) => request(axios, basePath));
|
|
33142
|
+
},
|
|
32999
33143
|
};
|
|
33000
33144
|
};
|
|
33001
33145
|
exports.JobBuildAnalysisApiFactory = JobBuildAnalysisApiFactory;
|
|
@@ -33017,6 +33161,18 @@ class JobBuildAnalysisApi extends base_1.BaseAPI {
|
|
|
33017
33161
|
getJobBuildAnalysis(jobId, options) {
|
|
33018
33162
|
return (0, exports.JobBuildAnalysisApiFp)(this.configuration).getJobBuildAnalysis(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
33019
33163
|
}
|
|
33164
|
+
/**
|
|
33165
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
33166
|
+
* @summary Analyse the latest build of a job
|
|
33167
|
+
* @param {string} jobId Job ID
|
|
33168
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
33169
|
+
* @param {*} [options] Override http request option.
|
|
33170
|
+
* @throws {RequiredError}
|
|
33171
|
+
* @memberof JobBuildAnalysisApi
|
|
33172
|
+
*/
|
|
33173
|
+
startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options) {
|
|
33174
|
+
return (0, exports.JobBuildAnalysisApiFp)(this.configuration).startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options).then((request) => request(this.axios, this.basePath));
|
|
33175
|
+
}
|
|
33020
33176
|
}
|
|
33021
33177
|
exports.JobBuildAnalysisApi = JobBuildAnalysisApi;
|
|
33022
33178
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -5611,23 +5611,21 @@ export declare const BuildAnalysisConfidence: {
|
|
|
5611
5611
|
};
|
|
5612
5612
|
export type BuildAnalysisConfidence = typeof BuildAnalysisConfidence[keyof typeof BuildAnalysisConfidence];
|
|
5613
5613
|
/**
|
|
5614
|
-
* Where the analysed Dockerfile came from. GIT is the repository at the build commit, INLINE the Dockerfile stored on the job
|
|
5614
|
+
* Where the analysed Dockerfile came from. GIT is the repository at the build commit, INLINE the Dockerfile stored on the job.
|
|
5615
5615
|
* @export
|
|
5616
5616
|
* @enum {string}
|
|
5617
5617
|
*/
|
|
5618
5618
|
export declare const BuildAnalysisDockerfileSource: {
|
|
5619
5619
|
readonly GIT: "GIT";
|
|
5620
5620
|
readonly INLINE: "INLINE";
|
|
5621
|
-
readonly PASTE: "PASTE";
|
|
5622
5621
|
};
|
|
5623
5622
|
export type BuildAnalysisDockerfileSource = typeof BuildAnalysisDockerfileSource[keyof typeof BuildAnalysisDockerfileSource];
|
|
5624
5623
|
/**
|
|
5625
|
-
*
|
|
5624
|
+
* MODEL_ERROR when the model call failed or returned an invalid result, TIMEOUT when the analysis took too long, INTERNAL_ERROR otherwise.
|
|
5626
5625
|
* @export
|
|
5627
5626
|
* @enum {string}
|
|
5628
5627
|
*/
|
|
5629
5628
|
export declare const BuildAnalysisFailureCode: {
|
|
5630
|
-
readonly COPILOT_DISABLED: "COPILOT_DISABLED";
|
|
5631
5629
|
readonly MODEL_ERROR: "MODEL_ERROR";
|
|
5632
5630
|
readonly TIMEOUT: "TIMEOUT";
|
|
5633
5631
|
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
@@ -5755,6 +5753,19 @@ export interface BuildAnalysisResult {
|
|
|
5755
5753
|
*/
|
|
5756
5754
|
'agent_prompt': string;
|
|
5757
5755
|
}
|
|
5756
|
+
/**
|
|
5757
|
+
*
|
|
5758
|
+
* @export
|
|
5759
|
+
* @interface BuildAnalysisStartRequest
|
|
5760
|
+
*/
|
|
5761
|
+
export interface BuildAnalysisStartRequest {
|
|
5762
|
+
/**
|
|
5763
|
+
* Execution id of the build to analyse. It must be the latest build of the service, `latest_build_execution_id` in `BuildAnalysisState`.
|
|
5764
|
+
* @type {string}
|
|
5765
|
+
* @memberof BuildAnalysisStartRequest
|
|
5766
|
+
*/
|
|
5767
|
+
'execution_id': string;
|
|
5768
|
+
}
|
|
5758
5769
|
/**
|
|
5759
5770
|
*
|
|
5760
5771
|
* @export
|
|
@@ -5775,7 +5786,7 @@ export interface BuildAnalysisState {
|
|
|
5775
5786
|
'analysis': BuildAnalysisResponse | null;
|
|
5776
5787
|
}
|
|
5777
5788
|
/**
|
|
5778
|
-
* PENDING is queued, COLLECTING reads the build logs and the cache history, ANALYSING waits for the model, then DONE or FAILED.
|
|
5789
|
+
* PENDING is queued, COLLECTING reads the build logs and the cache history, ANALYSING waits for the model, then DONE or FAILED. The Dockerfile is resolved before the start answers 202.
|
|
5779
5790
|
* @export
|
|
5780
5791
|
* @enum {string}
|
|
5781
5792
|
*/
|
|
@@ -30756,6 +30767,15 @@ export declare const ApplicationBuildAnalysisApiAxiosParamCreator: (configuratio
|
|
|
30756
30767
|
* @throws {RequiredError}
|
|
30757
30768
|
*/
|
|
30758
30769
|
getApplicationBuildAnalysis: (applicationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30770
|
+
/**
|
|
30771
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
30772
|
+
* @summary Analyse the latest build of an application
|
|
30773
|
+
* @param {string} applicationId Application ID
|
|
30774
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
30775
|
+
* @param {*} [options] Override http request option.
|
|
30776
|
+
* @throws {RequiredError}
|
|
30777
|
+
*/
|
|
30778
|
+
startApplicationBuildAnalysis: (applicationId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30759
30779
|
};
|
|
30760
30780
|
/**
|
|
30761
30781
|
* ApplicationBuildAnalysisApi - functional programming interface
|
|
@@ -30770,6 +30790,15 @@ export declare const ApplicationBuildAnalysisApiFp: (configuration?: Configurati
|
|
|
30770
30790
|
* @throws {RequiredError}
|
|
30771
30791
|
*/
|
|
30772
30792
|
getApplicationBuildAnalysis(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisState>>;
|
|
30793
|
+
/**
|
|
30794
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
30795
|
+
* @summary Analyse the latest build of an application
|
|
30796
|
+
* @param {string} applicationId Application ID
|
|
30797
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
30798
|
+
* @param {*} [options] Override http request option.
|
|
30799
|
+
* @throws {RequiredError}
|
|
30800
|
+
*/
|
|
30801
|
+
startApplicationBuildAnalysis(applicationId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisResponse>>;
|
|
30773
30802
|
};
|
|
30774
30803
|
/**
|
|
30775
30804
|
* ApplicationBuildAnalysisApi - factory interface
|
|
@@ -30784,6 +30813,15 @@ export declare const ApplicationBuildAnalysisApiFactory: (configuration?: Config
|
|
|
30784
30813
|
* @throws {RequiredError}
|
|
30785
30814
|
*/
|
|
30786
30815
|
getApplicationBuildAnalysis(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisState>;
|
|
30816
|
+
/**
|
|
30817
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
30818
|
+
* @summary Analyse the latest build of an application
|
|
30819
|
+
* @param {string} applicationId Application ID
|
|
30820
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
30821
|
+
* @param {*} [options] Override http request option.
|
|
30822
|
+
* @throws {RequiredError}
|
|
30823
|
+
*/
|
|
30824
|
+
startApplicationBuildAnalysis(applicationId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisResponse>;
|
|
30787
30825
|
};
|
|
30788
30826
|
/**
|
|
30789
30827
|
* ApplicationBuildAnalysisApi - object-oriented interface
|
|
@@ -30801,6 +30839,16 @@ export declare class ApplicationBuildAnalysisApi extends BaseAPI {
|
|
|
30801
30839
|
* @memberof ApplicationBuildAnalysisApi
|
|
30802
30840
|
*/
|
|
30803
30841
|
getApplicationBuildAnalysis(applicationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BuildAnalysisState, any, {}, any>>;
|
|
30842
|
+
/**
|
|
30843
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
30844
|
+
* @summary Analyse the latest build of an application
|
|
30845
|
+
* @param {string} applicationId Application ID
|
|
30846
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
30847
|
+
* @param {*} [options] Override http request option.
|
|
30848
|
+
* @throws {RequiredError}
|
|
30849
|
+
* @memberof ApplicationBuildAnalysisApi
|
|
30850
|
+
*/
|
|
30851
|
+
startApplicationBuildAnalysis(applicationId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BuildAnalysisResponse, any, {}, any>>;
|
|
30804
30852
|
}
|
|
30805
30853
|
/**
|
|
30806
30854
|
* ApplicationConfigurationApi - axios parameter creator
|
|
@@ -44734,6 +44782,15 @@ export declare const JobBuildAnalysisApiAxiosParamCreator: (configuration?: Conf
|
|
|
44734
44782
|
* @throws {RequiredError}
|
|
44735
44783
|
*/
|
|
44736
44784
|
getJobBuildAnalysis: (jobId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44785
|
+
/**
|
|
44786
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
44787
|
+
* @summary Analyse the latest build of a job
|
|
44788
|
+
* @param {string} jobId Job ID
|
|
44789
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
44790
|
+
* @param {*} [options] Override http request option.
|
|
44791
|
+
* @throws {RequiredError}
|
|
44792
|
+
*/
|
|
44793
|
+
startJobBuildAnalysis: (jobId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44737
44794
|
};
|
|
44738
44795
|
/**
|
|
44739
44796
|
* JobBuildAnalysisApi - functional programming interface
|
|
@@ -44748,6 +44805,15 @@ export declare const JobBuildAnalysisApiFp: (configuration?: Configuration) => {
|
|
|
44748
44805
|
* @throws {RequiredError}
|
|
44749
44806
|
*/
|
|
44750
44807
|
getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisState>>;
|
|
44808
|
+
/**
|
|
44809
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
44810
|
+
* @summary Analyse the latest build of a job
|
|
44811
|
+
* @param {string} jobId Job ID
|
|
44812
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
44813
|
+
* @param {*} [options] Override http request option.
|
|
44814
|
+
* @throws {RequiredError}
|
|
44815
|
+
*/
|
|
44816
|
+
startJobBuildAnalysis(jobId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildAnalysisResponse>>;
|
|
44751
44817
|
};
|
|
44752
44818
|
/**
|
|
44753
44819
|
* JobBuildAnalysisApi - factory interface
|
|
@@ -44762,6 +44828,15 @@ export declare const JobBuildAnalysisApiFactory: (configuration?: Configuration,
|
|
|
44762
44828
|
* @throws {RequiredError}
|
|
44763
44829
|
*/
|
|
44764
44830
|
getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisState>;
|
|
44831
|
+
/**
|
|
44832
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
44833
|
+
* @summary Analyse the latest build of a job
|
|
44834
|
+
* @param {string} jobId Job ID
|
|
44835
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
44836
|
+
* @param {*} [options] Override http request option.
|
|
44837
|
+
* @throws {RequiredError}
|
|
44838
|
+
*/
|
|
44839
|
+
startJobBuildAnalysis(jobId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): AxiosPromise<BuildAnalysisResponse>;
|
|
44765
44840
|
};
|
|
44766
44841
|
/**
|
|
44767
44842
|
* JobBuildAnalysisApi - object-oriented interface
|
|
@@ -44779,6 +44854,16 @@ export declare class JobBuildAnalysisApi extends BaseAPI {
|
|
|
44779
44854
|
* @memberof JobBuildAnalysisApi
|
|
44780
44855
|
*/
|
|
44781
44856
|
getJobBuildAnalysis(jobId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BuildAnalysisState, any, {}, any>>;
|
|
44857
|
+
/**
|
|
44858
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
44859
|
+
* @summary Analyse the latest build of a job
|
|
44860
|
+
* @param {string} jobId Job ID
|
|
44861
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
44862
|
+
* @param {*} [options] Override http request option.
|
|
44863
|
+
* @throws {RequiredError}
|
|
44864
|
+
* @memberof JobBuildAnalysisApi
|
|
44865
|
+
*/
|
|
44866
|
+
startJobBuildAnalysis(jobId: string, buildAnalysisStartRequest: BuildAnalysisStartRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BuildAnalysisResponse, any, {}, any>>;
|
|
44782
44867
|
}
|
|
44783
44868
|
/**
|
|
44784
44869
|
* JobConfigurationApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
|
@@ -360,28 +360,26 @@ export const BuildAnalysisConfidence = {
|
|
|
360
360
|
LOW: 'LOW'
|
|
361
361
|
};
|
|
362
362
|
/**
|
|
363
|
-
* Where the analysed Dockerfile came from. GIT is the repository at the build commit, INLINE the Dockerfile stored on the job
|
|
363
|
+
* Where the analysed Dockerfile came from. GIT is the repository at the build commit, INLINE the Dockerfile stored on the job.
|
|
364
364
|
* @export
|
|
365
365
|
* @enum {string}
|
|
366
366
|
*/
|
|
367
367
|
export const BuildAnalysisDockerfileSource = {
|
|
368
368
|
GIT: 'GIT',
|
|
369
|
-
INLINE: 'INLINE'
|
|
370
|
-
PASTE: 'PASTE'
|
|
369
|
+
INLINE: 'INLINE'
|
|
371
370
|
};
|
|
372
371
|
/**
|
|
373
|
-
*
|
|
372
|
+
* MODEL_ERROR when the model call failed or returned an invalid result, TIMEOUT when the analysis took too long, INTERNAL_ERROR otherwise.
|
|
374
373
|
* @export
|
|
375
374
|
* @enum {string}
|
|
376
375
|
*/
|
|
377
376
|
export const BuildAnalysisFailureCode = {
|
|
378
|
-
COPILOT_DISABLED: 'COPILOT_DISABLED',
|
|
379
377
|
MODEL_ERROR: 'MODEL_ERROR',
|
|
380
378
|
TIMEOUT: 'TIMEOUT',
|
|
381
379
|
INTERNAL_ERROR: 'INTERNAL_ERROR'
|
|
382
380
|
};
|
|
383
381
|
/**
|
|
384
|
-
* PENDING is queued, COLLECTING reads the build logs and the cache history, ANALYSING waits for the model, then DONE or FAILED.
|
|
382
|
+
* PENDING is queued, COLLECTING reads the build logs and the cache history, ANALYSING waits for the model, then DONE or FAILED. The Dockerfile is resolved before the start answers 202.
|
|
385
383
|
* @export
|
|
386
384
|
* @enum {string}
|
|
387
385
|
*/
|
|
@@ -4403,6 +4401,45 @@ export const ApplicationBuildAnalysisApiAxiosParamCreator = function (configurat
|
|
|
4403
4401
|
options: localVarRequestOptions,
|
|
4404
4402
|
};
|
|
4405
4403
|
}),
|
|
4404
|
+
/**
|
|
4405
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
4406
|
+
* @summary Analyse the latest build of an application
|
|
4407
|
+
* @param {string} applicationId Application ID
|
|
4408
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
4409
|
+
* @param {*} [options] Override http request option.
|
|
4410
|
+
* @throws {RequiredError}
|
|
4411
|
+
*/
|
|
4412
|
+
startApplicationBuildAnalysis: (applicationId_1, buildAnalysisStartRequest_1, ...args_1) => __awaiter(this, [applicationId_1, buildAnalysisStartRequest_1, ...args_1], void 0, function* (applicationId, buildAnalysisStartRequest, options = {}) {
|
|
4413
|
+
// verify required parameter 'applicationId' is not null or undefined
|
|
4414
|
+
assertParamExists('startApplicationBuildAnalysis', 'applicationId', applicationId);
|
|
4415
|
+
// verify required parameter 'buildAnalysisStartRequest' is not null or undefined
|
|
4416
|
+
assertParamExists('startApplicationBuildAnalysis', 'buildAnalysisStartRequest', buildAnalysisStartRequest);
|
|
4417
|
+
const localVarPath = `/application/{applicationId}/buildAnalysis`
|
|
4418
|
+
.replace(`{${"applicationId"}}`, encodeURIComponent(String(applicationId)));
|
|
4419
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4420
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4421
|
+
let baseOptions;
|
|
4422
|
+
if (configuration) {
|
|
4423
|
+
baseOptions = configuration.baseOptions;
|
|
4424
|
+
}
|
|
4425
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4426
|
+
const localVarHeaderParameter = {};
|
|
4427
|
+
const localVarQueryParameter = {};
|
|
4428
|
+
// authentication ApiKeyAuth required
|
|
4429
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
4430
|
+
// authentication bearerAuth required
|
|
4431
|
+
// http bearer authentication required
|
|
4432
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4433
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4434
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4435
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4436
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4437
|
+
localVarRequestOptions.data = serializeDataIfNeeded(buildAnalysisStartRequest, localVarRequestOptions, configuration);
|
|
4438
|
+
return {
|
|
4439
|
+
url: toPathString(localVarUrlObj),
|
|
4440
|
+
options: localVarRequestOptions,
|
|
4441
|
+
};
|
|
4442
|
+
}),
|
|
4406
4443
|
};
|
|
4407
4444
|
};
|
|
4408
4445
|
/**
|
|
@@ -4428,6 +4465,23 @@ export const ApplicationBuildAnalysisApiFp = function (configuration) {
|
|
|
4428
4465
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4429
4466
|
});
|
|
4430
4467
|
},
|
|
4468
|
+
/**
|
|
4469
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
4470
|
+
* @summary Analyse the latest build of an application
|
|
4471
|
+
* @param {string} applicationId Application ID
|
|
4472
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
4473
|
+
* @param {*} [options] Override http request option.
|
|
4474
|
+
* @throws {RequiredError}
|
|
4475
|
+
*/
|
|
4476
|
+
startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options) {
|
|
4477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4478
|
+
var _a, _b, _c;
|
|
4479
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options);
|
|
4480
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4481
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApplicationBuildAnalysisApi.startApplicationBuildAnalysis']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4482
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4483
|
+
});
|
|
4484
|
+
},
|
|
4431
4485
|
};
|
|
4432
4486
|
};
|
|
4433
4487
|
/**
|
|
@@ -4447,6 +4501,17 @@ export const ApplicationBuildAnalysisApiFactory = function (configuration, baseP
|
|
|
4447
4501
|
getApplicationBuildAnalysis(applicationId, options) {
|
|
4448
4502
|
return localVarFp.getApplicationBuildAnalysis(applicationId, options).then((request) => request(axios, basePath));
|
|
4449
4503
|
},
|
|
4504
|
+
/**
|
|
4505
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
4506
|
+
* @summary Analyse the latest build of an application
|
|
4507
|
+
* @param {string} applicationId Application ID
|
|
4508
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
4509
|
+
* @param {*} [options] Override http request option.
|
|
4510
|
+
* @throws {RequiredError}
|
|
4511
|
+
*/
|
|
4512
|
+
startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options) {
|
|
4513
|
+
return localVarFp.startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options).then((request) => request(axios, basePath));
|
|
4514
|
+
},
|
|
4450
4515
|
};
|
|
4451
4516
|
};
|
|
4452
4517
|
/**
|
|
@@ -4467,6 +4532,18 @@ export class ApplicationBuildAnalysisApi extends BaseAPI {
|
|
|
4467
4532
|
getApplicationBuildAnalysis(applicationId, options) {
|
|
4468
4533
|
return ApplicationBuildAnalysisApiFp(this.configuration).getApplicationBuildAnalysis(applicationId, options).then((request) => request(this.axios, this.basePath));
|
|
4469
4534
|
}
|
|
4535
|
+
/**
|
|
4536
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
4537
|
+
* @summary Analyse the latest build of an application
|
|
4538
|
+
* @param {string} applicationId Application ID
|
|
4539
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
4540
|
+
* @param {*} [options] Override http request option.
|
|
4541
|
+
* @throws {RequiredError}
|
|
4542
|
+
* @memberof ApplicationBuildAnalysisApi
|
|
4543
|
+
*/
|
|
4544
|
+
startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options) {
|
|
4545
|
+
return ApplicationBuildAnalysisApiFp(this.configuration).startApplicationBuildAnalysis(applicationId, buildAnalysisStartRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4546
|
+
}
|
|
4470
4547
|
}
|
|
4471
4548
|
/**
|
|
4472
4549
|
* ApplicationConfigurationApi - axios parameter creator
|
|
@@ -32687,6 +32764,45 @@ export const JobBuildAnalysisApiAxiosParamCreator = function (configuration) {
|
|
|
32687
32764
|
options: localVarRequestOptions,
|
|
32688
32765
|
};
|
|
32689
32766
|
}),
|
|
32767
|
+
/**
|
|
32768
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
32769
|
+
* @summary Analyse the latest build of a job
|
|
32770
|
+
* @param {string} jobId Job ID
|
|
32771
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
32772
|
+
* @param {*} [options] Override http request option.
|
|
32773
|
+
* @throws {RequiredError}
|
|
32774
|
+
*/
|
|
32775
|
+
startJobBuildAnalysis: (jobId_1, buildAnalysisStartRequest_1, ...args_1) => __awaiter(this, [jobId_1, buildAnalysisStartRequest_1, ...args_1], void 0, function* (jobId, buildAnalysisStartRequest, options = {}) {
|
|
32776
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
32777
|
+
assertParamExists('startJobBuildAnalysis', 'jobId', jobId);
|
|
32778
|
+
// verify required parameter 'buildAnalysisStartRequest' is not null or undefined
|
|
32779
|
+
assertParamExists('startJobBuildAnalysis', 'buildAnalysisStartRequest', buildAnalysisStartRequest);
|
|
32780
|
+
const localVarPath = `/job/{jobId}/buildAnalysis`
|
|
32781
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
32782
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32783
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32784
|
+
let baseOptions;
|
|
32785
|
+
if (configuration) {
|
|
32786
|
+
baseOptions = configuration.baseOptions;
|
|
32787
|
+
}
|
|
32788
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
32789
|
+
const localVarHeaderParameter = {};
|
|
32790
|
+
const localVarQueryParameter = {};
|
|
32791
|
+
// authentication ApiKeyAuth required
|
|
32792
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
32793
|
+
// authentication bearerAuth required
|
|
32794
|
+
// http bearer authentication required
|
|
32795
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
32796
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32797
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32798
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32799
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
32800
|
+
localVarRequestOptions.data = serializeDataIfNeeded(buildAnalysisStartRequest, localVarRequestOptions, configuration);
|
|
32801
|
+
return {
|
|
32802
|
+
url: toPathString(localVarUrlObj),
|
|
32803
|
+
options: localVarRequestOptions,
|
|
32804
|
+
};
|
|
32805
|
+
}),
|
|
32690
32806
|
};
|
|
32691
32807
|
};
|
|
32692
32808
|
/**
|
|
@@ -32712,6 +32828,23 @@ export const JobBuildAnalysisApiFp = function (configuration) {
|
|
|
32712
32828
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32713
32829
|
});
|
|
32714
32830
|
},
|
|
32831
|
+
/**
|
|
32832
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
32833
|
+
* @summary Analyse the latest build of a job
|
|
32834
|
+
* @param {string} jobId Job ID
|
|
32835
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
32836
|
+
* @param {*} [options] Override http request option.
|
|
32837
|
+
* @throws {RequiredError}
|
|
32838
|
+
*/
|
|
32839
|
+
startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options) {
|
|
32840
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32841
|
+
var _a, _b, _c;
|
|
32842
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options);
|
|
32843
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
32844
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobBuildAnalysisApi.startJobBuildAnalysis']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
32845
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32846
|
+
});
|
|
32847
|
+
},
|
|
32715
32848
|
};
|
|
32716
32849
|
};
|
|
32717
32850
|
/**
|
|
@@ -32731,6 +32864,17 @@ export const JobBuildAnalysisApiFactory = function (configuration, basePath, axi
|
|
|
32731
32864
|
getJobBuildAnalysis(jobId, options) {
|
|
32732
32865
|
return localVarFp.getJobBuildAnalysis(jobId, options).then((request) => request(axios, basePath));
|
|
32733
32866
|
},
|
|
32867
|
+
/**
|
|
32868
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
32869
|
+
* @summary Analyse the latest build of a job
|
|
32870
|
+
* @param {string} jobId Job ID
|
|
32871
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
32872
|
+
* @param {*} [options] Override http request option.
|
|
32873
|
+
* @throws {RequiredError}
|
|
32874
|
+
*/
|
|
32875
|
+
startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options) {
|
|
32876
|
+
return localVarFp.startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options).then((request) => request(axios, basePath));
|
|
32877
|
+
},
|
|
32734
32878
|
};
|
|
32735
32879
|
};
|
|
32736
32880
|
/**
|
|
@@ -32751,6 +32895,18 @@ export class JobBuildAnalysisApi extends BaseAPI {
|
|
|
32751
32895
|
getJobBuildAnalysis(jobId, options) {
|
|
32752
32896
|
return JobBuildAnalysisApiFp(this.configuration).getJobBuildAnalysis(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
32753
32897
|
}
|
|
32898
|
+
/**
|
|
32899
|
+
* Starts an AI analysis of the latest build of the service. It runs in the background and reports its progress on the websocket route `/build/analysis`. The result gives a confidence, the estimated time saved, what was reviewed, a summary, the improvements to make, a prompt for the customer\'s own AI agent, and a reworked Dockerfile when an improvement is a Dockerfile change. Starting an analysis replaces the previous one. It never changes the build or the image.
|
|
32900
|
+
* @summary Analyse the latest build of a job
|
|
32901
|
+
* @param {string} jobId Job ID
|
|
32902
|
+
* @param {BuildAnalysisStartRequest} buildAnalysisStartRequest
|
|
32903
|
+
* @param {*} [options] Override http request option.
|
|
32904
|
+
* @throws {RequiredError}
|
|
32905
|
+
* @memberof JobBuildAnalysisApi
|
|
32906
|
+
*/
|
|
32907
|
+
startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options) {
|
|
32908
|
+
return JobBuildAnalysisApiFp(this.configuration).startJobBuildAnalysis(jobId, buildAnalysisStartRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32909
|
+
}
|
|
32754
32910
|
}
|
|
32755
32911
|
/**
|
|
32756
32912
|
* JobConfigurationApi - axios parameter creator
|