@harnessio/react-ssca-manager-client 0.86.24 → 0.86.26
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/dist/ssca-manager/src/services/hooks/useConfigureReposMutation.d.ts +5 -1
- package/dist/ssca-manager/src/services/hooks/useCreateIntegrationMutation.d.ts +5 -1
- package/dist/ssca-manager/src/services/hooks/useDeleteIntegrationMutation.d.ts +5 -1
- package/dist/ssca-manager/src/services/hooks/useGetAccountAiWorkflowConfigQuery.d.ts +4 -3
- package/dist/ssca-manager/src/services/hooks/useGetAccountAiWorkflowConfigQuery.js +4 -3
- package/dist/ssca-manager/src/services/hooks/useGetIntegrationCountsQuery.d.ts +12 -1
- package/dist/ssca-manager/src/services/hooks/useGetIntegrationCountsQuery.js +1 -1
- package/dist/ssca-manager/src/services/hooks/useGetProjectAiWorkflowConfigQuery.d.ts +1 -1
- package/dist/ssca-manager/src/services/hooks/useGetProjectAiWorkflowConfigQuery.js +1 -1
- package/dist/ssca-manager/src/services/hooks/useListIntegrationsQuery.d.ts +1 -0
- package/dist/ssca-manager/src/services/hooks/useSaveAccountAiWorkflowConfigMutation.d.ts +3 -3
- package/dist/ssca-manager/src/services/hooks/useSaveAccountAiWorkflowConfigMutation.js +3 -3
- package/dist/ssca-manager/src/services/hooks/useSaveProjectAiWorkflowConfigMutation.d.ts +1 -1
- package/dist/ssca-manager/src/services/hooks/useSaveProjectAiWorkflowConfigMutation.js +1 -1
- package/dist/ssca-manager/src/services/index.d.ts +17 -4
- package/dist/ssca-manager/src/services/schemas/AiWorkflowTypeEnum.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentConflict.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentConflict.js +4 -0
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentRequest.d.ts +18 -0
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentResponse.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/Integration.d.ts +2 -2
- package/dist/ssca-manager/src/services/schemas/IntegrationCountsIntegrationStatus.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationCountsIntegrationStatus.js +4 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationCountsResponse.d.ts +16 -4
- package/dist/ssca-manager/src/services/schemas/IntegrationCountsScannerCategory.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationCountsScannerCategory.js +4 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationCountsView.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationCountsView.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImage.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImage.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfile.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfile.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanExecution.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanExecution.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanRequest.d.ts +22 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanResult.d.ts +13 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanResult.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ResolveRemediationAgentRepoUrlRequest.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/ResolveRemediationAgentRepoUrlRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ResolveRemediationAgentRepoUrlResponse.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/ResolveRemediationAgentRepoUrlResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ScannerConfigCount.d.ts +11 -0
- package/package.json +1 -1
|
@@ -8,13 +8,17 @@ export interface ConfigureReposMutationPathParams {
|
|
|
8
8
|
project: string;
|
|
9
9
|
integration: string;
|
|
10
10
|
}
|
|
11
|
+
export interface ConfigureReposMutationQueryParams {
|
|
12
|
+
ast_onboarding?: boolean;
|
|
13
|
+
}
|
|
11
14
|
export interface ConfigureReposMutationHeaderParams {
|
|
12
15
|
'Harness-Account': string;
|
|
13
16
|
}
|
|
14
17
|
export type ConfigureReposRequestBody = ConfigureReposRequestRequestBody;
|
|
15
18
|
export type ConfigureReposOkResponse = ResponseWithPagination<UpdateIntegrationResponseBodyResponse>;
|
|
16
19
|
export type ConfigureReposErrorResponse = unknown;
|
|
17
|
-
export interface ConfigureReposProps extends ConfigureReposMutationPathParams, Omit<FetcherOptions<
|
|
20
|
+
export interface ConfigureReposProps extends ConfigureReposMutationPathParams, Omit<FetcherOptions<ConfigureReposMutationQueryParams, ConfigureReposRequestBody, ConfigureReposMutationHeaderParams>, 'url'> {
|
|
21
|
+
queryParams: ConfigureReposMutationQueryParams;
|
|
18
22
|
body: ConfigureReposRequestBody;
|
|
19
23
|
}
|
|
20
24
|
export declare function configureRepos(props: ConfigureReposProps): Promise<ConfigureReposOkResponse>;
|
|
@@ -8,13 +8,17 @@ export interface CreateIntegrationMutationPathParams {
|
|
|
8
8
|
org: string;
|
|
9
9
|
project: string;
|
|
10
10
|
}
|
|
11
|
+
export interface CreateIntegrationMutationQueryParams {
|
|
12
|
+
ast_onboarding?: boolean;
|
|
13
|
+
}
|
|
11
14
|
export interface CreateIntegrationMutationHeaderParams {
|
|
12
15
|
'Harness-Account': string;
|
|
13
16
|
}
|
|
14
17
|
export type CreateIntegrationRequestBody = CreateIntegrationRequestBodyRequestBody;
|
|
15
18
|
export type CreateIntegrationOkResponse = ResponseWithPagination<CreateIntegrationResponseBodyResponse>;
|
|
16
19
|
export type CreateIntegrationErrorResponse = unknown | Error;
|
|
17
|
-
export interface CreateIntegrationProps extends CreateIntegrationMutationPathParams, Omit<FetcherOptions<
|
|
20
|
+
export interface CreateIntegrationProps extends CreateIntegrationMutationPathParams, Omit<FetcherOptions<CreateIntegrationMutationQueryParams, CreateIntegrationRequestBody, CreateIntegrationMutationHeaderParams>, 'url'> {
|
|
21
|
+
queryParams: CreateIntegrationMutationQueryParams;
|
|
18
22
|
body: CreateIntegrationRequestBody;
|
|
19
23
|
}
|
|
20
24
|
export declare function createIntegration(props: CreateIntegrationProps): Promise<CreateIntegrationOkResponse>;
|
|
@@ -6,12 +6,16 @@ export interface DeleteIntegrationMutationPathParams {
|
|
|
6
6
|
project: string;
|
|
7
7
|
integration: string;
|
|
8
8
|
}
|
|
9
|
+
export interface DeleteIntegrationMutationQueryParams {
|
|
10
|
+
ast_onboarding?: boolean;
|
|
11
|
+
}
|
|
9
12
|
export interface DeleteIntegrationMutationHeaderParams {
|
|
10
13
|
'Harness-Account': string;
|
|
11
14
|
}
|
|
12
15
|
export type DeleteIntegrationOkResponse = ResponseWithPagination<unknown>;
|
|
13
16
|
export type DeleteIntegrationErrorResponse = unknown;
|
|
14
|
-
export interface DeleteIntegrationProps extends DeleteIntegrationMutationPathParams, Omit<FetcherOptions<
|
|
17
|
+
export interface DeleteIntegrationProps extends DeleteIntegrationMutationPathParams, Omit<FetcherOptions<DeleteIntegrationMutationQueryParams, unknown, DeleteIntegrationMutationHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: DeleteIntegrationMutationQueryParams;
|
|
15
19
|
}
|
|
16
20
|
export declare function deleteIntegration(props: DeleteIntegrationProps): Promise<DeleteIntegrationOkResponse>;
|
|
17
21
|
/**
|
|
@@ -18,9 +18,10 @@ export interface GetAccountAiWorkflowConfigProps extends Omit<FetcherOptions<Get
|
|
|
18
18
|
}
|
|
19
19
|
export declare function getAccountAiWorkflowConfig(props: GetAccountAiWorkflowConfigProps): Promise<GetAccountAiWorkflowConfigOkResponse>;
|
|
20
20
|
/**
|
|
21
|
-
* Get
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* Get AI workflow configuration at account, organization, or project scope.
|
|
22
|
+
* With org only, returns account defaults overlaid with organization overrides.
|
|
23
|
+
* With org and project, returns account + organization + project effective configuration.
|
|
24
|
+
* Validation pipelines are project-scoped only.
|
|
24
25
|
*
|
|
25
26
|
*/
|
|
26
27
|
export declare function useGetAccountAiWorkflowConfigQuery(props: GetAccountAiWorkflowConfigProps, options?: Omit<UseQueryOptions<GetAccountAiWorkflowConfigOkResponse, GetAccountAiWorkflowConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAccountAiWorkflowConfigOkResponse, unknown>;
|
|
@@ -7,9 +7,10 @@ export function getAccountAiWorkflowConfig(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/ai-workflow-config`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Get
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* Get AI workflow configuration at account, organization, or project scope.
|
|
11
|
+
* With org only, returns account defaults overlaid with organization overrides.
|
|
12
|
+
* With org and project, returns account + organization + project effective configuration.
|
|
13
|
+
* Validation pipelines are project-scoped only.
|
|
13
14
|
*
|
|
14
15
|
*/
|
|
15
16
|
export function useGetAccountAiWorkflowConfigQuery(props, options) {
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { IntegrationCountsResponse } from '../schemas/IntegrationCountsResponse';
|
|
3
|
+
import type { IntegrationCountsView } from '../schemas/IntegrationCountsView';
|
|
4
|
+
import type { IntegrationCountsScannerCategory } from '../schemas/IntegrationCountsScannerCategory';
|
|
5
|
+
import type { IntegrationCountsIntegrationStatus } from '../schemas/IntegrationCountsIntegrationStatus';
|
|
3
6
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
8
|
export interface GetIntegrationCountsQueryPathParams {
|
|
6
9
|
org: string;
|
|
7
10
|
project: string;
|
|
8
11
|
}
|
|
12
|
+
export interface GetIntegrationCountsQueryQueryParams {
|
|
13
|
+
view?: IntegrationCountsView;
|
|
14
|
+
types?: IntegrationCountsScannerCategory;
|
|
15
|
+
scanner_types?: string;
|
|
16
|
+
search_term?: string;
|
|
17
|
+
integration_status?: IntegrationCountsIntegrationStatus;
|
|
18
|
+
}
|
|
9
19
|
export interface GetIntegrationCountsQueryHeaderParams {
|
|
10
20
|
'Harness-Account': string;
|
|
11
21
|
}
|
|
12
22
|
export type GetIntegrationCountsOkResponse = ResponseWithPagination<IntegrationCountsResponse>;
|
|
13
23
|
export type GetIntegrationCountsErrorResponse = unknown;
|
|
14
|
-
export interface GetIntegrationCountsProps extends GetIntegrationCountsQueryPathParams, Omit<FetcherOptions<
|
|
24
|
+
export interface GetIntegrationCountsProps extends GetIntegrationCountsQueryPathParams, Omit<FetcherOptions<GetIntegrationCountsQueryQueryParams, unknown, GetIntegrationCountsQueryHeaderParams>, 'url'> {
|
|
25
|
+
queryParams: GetIntegrationCountsQueryQueryParams;
|
|
15
26
|
}
|
|
16
27
|
export declare function getIntegrationCounts(props: GetIntegrationCountsProps): Promise<GetIntegrationCountsOkResponse>;
|
|
17
28
|
/**
|
|
@@ -10,5 +10,5 @@ export function getIntegrationCounts(props) {
|
|
|
10
10
|
* RSPM dashboard counts at project scope
|
|
11
11
|
*/
|
|
12
12
|
export function useGetIntegrationCountsQuery(props, options) {
|
|
13
|
-
return useQuery(['getIntegrationCounts', props.org, props.project], ({ signal }) => getIntegrationCounts(Object.assign(Object.assign({}, props), { signal })), options);
|
|
13
|
+
return useQuery(['getIntegrationCounts', props.org, props.project, props.queryParams], ({ signal }) => getIntegrationCounts(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -21,7 +21,7 @@ export interface GetProjectAiWorkflowConfigProps extends GetProjectAiWorkflowCon
|
|
|
21
21
|
export declare function getProjectAiWorkflowConfig(props: GetProjectAiWorkflowConfigProps): Promise<GetProjectAiWorkflowConfigOkResponse>;
|
|
22
22
|
/**
|
|
23
23
|
* Get the effective AI workflow configuration for a project.
|
|
24
|
-
* Returns account defaults overlaid with
|
|
24
|
+
* Returns account defaults overlaid with organization and project overrides.
|
|
25
25
|
* For SAST remediation, validation pipelines (scan/build) are set on this project config.
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -8,7 +8,7 @@ export function getProjectAiWorkflowConfig(props) {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get the effective AI workflow configuration for a project.
|
|
11
|
-
* Returns account defaults overlaid with
|
|
11
|
+
* Returns account defaults overlaid with organization and project overrides.
|
|
12
12
|
* For SAST remediation, validation pipelines (scan/build) are set on this project config.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
@@ -21,9 +21,9 @@ export interface SaveAccountAiWorkflowConfigProps extends Omit<FetcherOptions<Sa
|
|
|
21
21
|
}
|
|
22
22
|
export declare function saveAccountAiWorkflowConfig(props: SaveAccountAiWorkflowConfigProps): Promise<SaveAccountAiWorkflowConfigOkResponse>;
|
|
23
23
|
/**
|
|
24
|
-
* Create or update account
|
|
25
|
-
*
|
|
26
|
-
*
|
|
24
|
+
* Create or update account, organization, or project AI workflow configuration.
|
|
25
|
+
* Set org without project for organization overrides. Set both for project overrides.
|
|
26
|
+
* Validation pipeline fields must be saved at project scope.
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
export declare function useSaveAccountAiWorkflowConfigMutation(options?: Omit<UseMutationOptions<SaveAccountAiWorkflowConfigOkResponse, SaveAccountAiWorkflowConfigErrorResponse, SaveAccountAiWorkflowConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveAccountAiWorkflowConfigOkResponse, unknown, SaveAccountAiWorkflowConfigProps, unknown>;
|
|
@@ -7,9 +7,9 @@ export function saveAccountAiWorkflowConfig(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/ai-workflow-config`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Create or update account
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* Create or update account, organization, or project AI workflow configuration.
|
|
11
|
+
* Set org without project for organization overrides. Set both for project overrides.
|
|
12
|
+
* Validation pipeline fields must be saved at project scope.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
15
|
export function useSaveAccountAiWorkflowConfigMutation(options) {
|
|
@@ -24,7 +24,7 @@ export interface SaveProjectAiWorkflowConfigProps extends SaveProjectAiWorkflowC
|
|
|
24
24
|
export declare function saveProjectAiWorkflowConfig(props: SaveProjectAiWorkflowConfigProps): Promise<SaveProjectAiWorkflowConfigOkResponse>;
|
|
25
25
|
/**
|
|
26
26
|
* Create or update project-scoped AI workflow configuration overrides.
|
|
27
|
-
* Unset fields inherit from
|
|
27
|
+
* Unset fields inherit from organization and account configs at trigger/read time.
|
|
28
28
|
* For SAST remediation, validation pipelines (scan/build) belong here.
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -8,7 +8,7 @@ export function saveProjectAiWorkflowConfig(props) {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Create or update project-scoped AI workflow configuration overrides.
|
|
11
|
-
* Unset fields inherit from
|
|
11
|
+
* Unset fields inherit from organization and account configs at trigger/read time.
|
|
12
12
|
* For SAST remediation, validation pipelines (scan/build) belong here.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
@@ -11,7 +11,7 @@ export type { CloseRemediationTrackerErrorResponse, CloseRemediationTrackerMutat
|
|
|
11
11
|
export { closeRemediationTracker, useCloseRemediationTrackerMutation, } from './hooks/useCloseRemediationTrackerMutation';
|
|
12
12
|
export type { CodeRepositoriesListErrorResponse, CodeRepositoriesListOkResponse, CodeRepositoriesListProps, CodeRepositoriesListQueryPathParams, CodeRepositoriesListQueryQueryParams, CodeRepositoriesListRequestBody, } from './hooks/useCodeRepositoriesListQuery';
|
|
13
13
|
export { codeRepositoriesList, useCodeRepositoriesListQuery, } from './hooks/useCodeRepositoriesListQuery';
|
|
14
|
-
export type { ConfigureReposErrorResponse, ConfigureReposMutationPathParams, ConfigureReposOkResponse, ConfigureReposProps, ConfigureReposRequestBody, } from './hooks/useConfigureReposMutation';
|
|
14
|
+
export type { ConfigureReposErrorResponse, ConfigureReposMutationPathParams, ConfigureReposMutationQueryParams, ConfigureReposOkResponse, ConfigureReposProps, ConfigureReposRequestBody, } from './hooks/useConfigureReposMutation';
|
|
15
15
|
export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
|
|
16
16
|
export type { CreateComplianceStandardsErrorResponse, CreateComplianceStandardsMutationPathParams, CreateComplianceStandardsOkResponse, CreateComplianceStandardsProps, CreateComplianceStandardsRequestBody, } from './hooks/useCreateComplianceStandardsMutation';
|
|
17
17
|
export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
|
|
@@ -21,7 +21,7 @@ export type { CreateEolArtifactSourceComponentTicketErrorResponse, CreateEolArti
|
|
|
21
21
|
export { createEolArtifactSourceComponentTicket, useCreateEolArtifactSourceComponentTicketMutation, } from './hooks/useCreateEolArtifactSourceComponentTicketMutation';
|
|
22
22
|
export type { CreateExemptionErrorResponse, CreateExemptionMutationQueryParams, CreateExemptionOkResponse, CreateExemptionProps, CreateExemptionRequestBody, } from './hooks/useCreateExemptionMutation';
|
|
23
23
|
export { createExemption, useCreateExemptionMutation } from './hooks/useCreateExemptionMutation';
|
|
24
|
-
export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParams, CreateIntegrationOkResponse, CreateIntegrationProps, CreateIntegrationRequestBody, } from './hooks/useCreateIntegrationMutation';
|
|
24
|
+
export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParams, CreateIntegrationMutationQueryParams, CreateIntegrationOkResponse, CreateIntegrationProps, CreateIntegrationRequestBody, } from './hooks/useCreateIntegrationMutation';
|
|
25
25
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
26
26
|
export type { CreateRemediationPullRequestErrorResponse, CreateRemediationPullRequestMutationPathParams, CreateRemediationPullRequestOkResponse, CreateRemediationPullRequestProps, CreateRemediationPullRequestRequestBody, } from './hooks/useCreateRemediationPullRequestMutation';
|
|
27
27
|
export { createRemediationPullRequest, useCreateRemediationPullRequestMutation, } from './hooks/useCreateRemediationPullRequestMutation';
|
|
@@ -31,7 +31,7 @@ export type { CreateScannerConfigurationErrorResponse, CreateScannerConfiguratio
|
|
|
31
31
|
export { createScannerConfiguration, useCreateScannerConfigurationMutation, } from './hooks/useCreateScannerConfigurationMutation';
|
|
32
32
|
export type { CreateTicketErrorResponse, CreateTicketMutationPathParams, CreateTicketOkResponse, CreateTicketProps, CreateTicketRequestBody, } from './hooks/useCreateTicketMutation';
|
|
33
33
|
export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
|
|
34
|
-
export type { DeleteIntegrationErrorResponse, DeleteIntegrationMutationPathParams, DeleteIntegrationOkResponse, DeleteIntegrationProps, } from './hooks/useDeleteIntegrationMutation';
|
|
34
|
+
export type { DeleteIntegrationErrorResponse, DeleteIntegrationMutationPathParams, DeleteIntegrationMutationQueryParams, DeleteIntegrationOkResponse, DeleteIntegrationProps, } from './hooks/useDeleteIntegrationMutation';
|
|
35
35
|
export { deleteIntegration, useDeleteIntegrationMutation, } from './hooks/useDeleteIntegrationMutation';
|
|
36
36
|
export type { DeleteScannerConfigurationErrorResponse, DeleteScannerConfigurationMutationPathParams, DeleteScannerConfigurationOkResponse, DeleteScannerConfigurationProps, } from './hooks/useDeleteScannerConfigurationMutation';
|
|
37
37
|
export { deleteScannerConfiguration, useDeleteScannerConfigurationMutation, } from './hooks/useDeleteScannerConfigurationMutation';
|
|
@@ -155,7 +155,7 @@ export type { GetExemptionErrorResponse, GetExemptionOkResponse, GetExemptionPro
|
|
|
155
155
|
export { getExemption, useGetExemptionQuery } from './hooks/useGetExemptionQuery';
|
|
156
156
|
export type { GetHarnessPipelineIntegrationErrorResponse, GetHarnessPipelineIntegrationOkResponse, GetHarnessPipelineIntegrationProps, GetHarnessPipelineIntegrationQueryPathParams, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
157
157
|
export { getHarnessPipelineIntegration, useGetHarnessPipelineIntegrationQuery, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
158
|
-
export type { GetIntegrationCountsErrorResponse, GetIntegrationCountsOkResponse, GetIntegrationCountsProps, GetIntegrationCountsQueryPathParams, } from './hooks/useGetIntegrationCountsQuery';
|
|
158
|
+
export type { GetIntegrationCountsErrorResponse, GetIntegrationCountsOkResponse, GetIntegrationCountsProps, GetIntegrationCountsQueryPathParams, GetIntegrationCountsQueryQueryParams, } from './hooks/useGetIntegrationCountsQuery';
|
|
159
159
|
export { getIntegrationCounts, useGetIntegrationCountsQuery, } from './hooks/useGetIntegrationCountsQuery';
|
|
160
160
|
export type { GetIntegrationReposErrorResponse, GetIntegrationReposOkResponse, GetIntegrationReposProps, GetIntegrationReposQueryPathParams, } from './hooks/useGetIntegrationReposQuery';
|
|
161
161
|
export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
|
|
@@ -695,10 +695,16 @@ export type { HarnessRunnerDetail } from './schemas/HarnessRunnerDetail';
|
|
|
695
695
|
export type { ImageSpec } from './schemas/ImageSpec';
|
|
696
696
|
export type { InfraConfigDto } from './schemas/InfraConfigDto';
|
|
697
697
|
export type { InfraLayout } from './schemas/InfraLayout';
|
|
698
|
+
export type { InitiateRemediationAgentConflict } from './schemas/InitiateRemediationAgentConflict';
|
|
699
|
+
export type { InitiateRemediationAgentRequest } from './schemas/InitiateRemediationAgentRequest';
|
|
700
|
+
export type { InitiateRemediationAgentResponse } from './schemas/InitiateRemediationAgentResponse';
|
|
698
701
|
export type { Integration } from './schemas/Integration';
|
|
699
702
|
export type { IntegrationConfig } from './schemas/IntegrationConfig';
|
|
700
703
|
export type { IntegrationConfigRequestBody } from './schemas/IntegrationConfigRequestBody';
|
|
704
|
+
export type { IntegrationCountsIntegrationStatus } from './schemas/IntegrationCountsIntegrationStatus';
|
|
701
705
|
export type { IntegrationCountsResponse } from './schemas/IntegrationCountsResponse';
|
|
706
|
+
export type { IntegrationCountsScannerCategory } from './schemas/IntegrationCountsScannerCategory';
|
|
707
|
+
export type { IntegrationCountsView } from './schemas/IntegrationCountsView';
|
|
702
708
|
export type { IntegrationRepoScanListItem } from './schemas/IntegrationRepoScanListItem';
|
|
703
709
|
export type { IntegrationRepoScanListRequest } from './schemas/IntegrationRepoScanListRequest';
|
|
704
710
|
export type { IntegrationStepConfig } from './schemas/IntegrationStepConfig';
|
|
@@ -771,6 +777,11 @@ export type { ProvenanceRequestBody } from './schemas/ProvenanceRequestBody';
|
|
|
771
777
|
export type { ProvenanceRequestBodyV2 } from './schemas/ProvenanceRequestBodyV2';
|
|
772
778
|
export type { ProvenanceResponseBody } from './schemas/ProvenanceResponseBody';
|
|
773
779
|
export type { RekorLog } from './schemas/RekorLog';
|
|
780
|
+
export type { RemediationAgentBaseImage } from './schemas/RemediationAgentBaseImage';
|
|
781
|
+
export type { RemediationAgentDockerfile } from './schemas/RemediationAgentDockerfile';
|
|
782
|
+
export type { RemediationAgentDockerfileScanExecution } from './schemas/RemediationAgentDockerfileScanExecution';
|
|
783
|
+
export type { RemediationAgentDockerfileScanRequest } from './schemas/RemediationAgentDockerfileScanRequest';
|
|
784
|
+
export type { RemediationAgentDockerfileScanResult } from './schemas/RemediationAgentDockerfileScanResult';
|
|
774
785
|
export type { RemediationArtifactDeploymentsListingRequestBody } from './schemas/RemediationArtifactDeploymentsListingRequestBody';
|
|
775
786
|
export type { RemediationArtifactDeploymentsListingResponse } from './schemas/RemediationArtifactDeploymentsListingResponse';
|
|
776
787
|
export type { RemediationArtifactDetailsResponse } from './schemas/RemediationArtifactDetailsResponse';
|
|
@@ -802,6 +813,8 @@ export type { RepositoriesSummary } from './schemas/RepositoriesSummary';
|
|
|
802
813
|
export type { RepositoryArtifactMetadata } from './schemas/RepositoryArtifactMetadata';
|
|
803
814
|
export type { RepositoryPlatform } from './schemas/RepositoryPlatform';
|
|
804
815
|
export type { RepositorySpec } from './schemas/RepositorySpec';
|
|
816
|
+
export type { ResolveRemediationAgentRepoUrlRequest } from './schemas/ResolveRemediationAgentRepoUrlRequest';
|
|
817
|
+
export type { ResolveRemediationAgentRepoUrlResponse } from './schemas/ResolveRemediationAgentRepoUrlResponse';
|
|
805
818
|
export type { RiskAndCompliance } from './schemas/RiskAndCompliance';
|
|
806
819
|
export type { RspmScannerId } from './schemas/RspmScannerId';
|
|
807
820
|
export type { RspmScannerInfo } from './schemas/RspmScannerInfo';
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Type of AI workflow
|
|
3
3
|
* @example "vulnerability"
|
|
4
4
|
*/
|
|
5
|
-
export type AiWorkflowTypeEnum = 'fp_triage' | 'remediation' | 'vulnerability' | 'zero_day';
|
|
5
|
+
export type AiWorkflowTypeEnum = 'dependency_remediation' | 'fp_triage' | 'remediation' | 'vulnerability' | 'zero_day';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface InitiateRemediationAgentRequest {
|
|
2
|
+
/**
|
|
3
|
+
* Caller's pipeline execution ID
|
|
4
|
+
*/
|
|
5
|
+
pipelineExecutionId?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Caller's pipeline ID
|
|
8
|
+
*/
|
|
9
|
+
pipelineId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* STO scan ID
|
|
12
|
+
*/
|
|
13
|
+
scanId: string;
|
|
14
|
+
/**
|
|
15
|
+
* Workflow type (e.g. DEPENDENCY_REMEDIATION)
|
|
16
|
+
*/
|
|
17
|
+
workflowType: string;
|
|
18
|
+
}
|
|
@@ -39,11 +39,11 @@ export interface Integration {
|
|
|
39
39
|
last_scan_at?: number;
|
|
40
40
|
org?: string;
|
|
41
41
|
/**
|
|
42
|
-
* Stored repository selection. Returned for repo-based integrations on GET /integration and GET scanner-configurations/{configId}/integrations. Omitted or empty when include_all_repos is true or the integration is not repo-based.
|
|
42
|
+
* Stored repository selection. Returned for repo-based integrations on GET /integration and GET scanner-configurations/{configId}/integrations. Omitted or empty when include_all_repos is true and no explicit repositories are retained, or the integration is not repo-based. Harness Code include_all_repos keeps repositories outside auto_discovery_scopes.
|
|
43
43
|
*/
|
|
44
44
|
repositories?: RepoDetailsDto[];
|
|
45
45
|
/**
|
|
46
|
-
* Number of repositories in the integration. Returned for repo-based integrations on GET /integration and GET scanner-configurations/{configId}/integrations. For explicit selections, the stored list size. Null when include_all_repos is true, the integration is not repo-based, or repository selection is unset.
|
|
46
|
+
* Number of repositories in the integration. Returned for repo-based integrations on GET /integration and GET scanner-configurations/{configId}/integrations. For explicit selections, the stored list size. Null when include_all_repos is true and no explicit repositories are retained, the integration is not repo-based, or repository selection is unset. Harness Code include_all_repos keeps repositories outside auto_discovery_scopes; this count is that retained list size.
|
|
47
47
|
* @format int64
|
|
48
48
|
*/
|
|
49
49
|
repository_count?: number | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IntegrationCountsIntegrationStatus = 'active' | 'inactive';
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
import type { ScannerConfigCount } from '../schemas/ScannerConfigCount';
|
|
2
2
|
export interface IntegrationCountsResponse {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Active integrations per repository type (integration_enabled not false)
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
integrations_active_by_type?: {
|
|
7
7
|
[key: string]: number;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Total integrations grouped by repository integration type (keys GITHUB, BITBUCKET, HARNESS_CODE)
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
integrations_by_type?: {
|
|
13
|
+
[key: string]: number;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Inactive integrations per repository type (integration_enabled false)
|
|
17
|
+
*/
|
|
18
|
+
integrations_inactive_by_type?: {
|
|
19
|
+
[key: string]: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Scanner rows keyed by scanner_id, with config and integration usage counts
|
|
23
|
+
*/
|
|
24
|
+
scanner_configs_by_scanner_id?: {
|
|
13
25
|
[key: string]: ScannerConfigCount;
|
|
14
26
|
};
|
|
15
27
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IntegrationCountsScannerCategory = 'all' | 'harness_security' | 'opensource' | 'supply_chain' | 'third_party';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IntegrationCountsView = 'both' | 'repositories' | 'scanners';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface RemediationAgentDockerfileScanRequest {
|
|
2
|
+
/**
|
|
3
|
+
* Git branch to clone. When omitted, the default branch is resolved from the GitHub connector.
|
|
4
|
+
*/
|
|
5
|
+
defaultBranch?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Optional repository-relative Dockerfile path. When omitted, the cloned workspace is walked for Dockerfiles.
|
|
8
|
+
*/
|
|
9
|
+
dockerfilePath?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Remediator AI workflow execution id from initiate. Used to store and reuse the Dockerfile-discovery pipelineExecutionId so retries do not start a second clone.
|
|
12
|
+
*/
|
|
13
|
+
executionId: string;
|
|
14
|
+
/**
|
|
15
|
+
* Git remote URL of the repository to scan for Dockerfiles
|
|
16
|
+
*/
|
|
17
|
+
repoUrl: string;
|
|
18
|
+
/**
|
|
19
|
+
* SCM connector used to clone the repository. Resolved from the DEPENDENCY_REMEDIATION AI workflow config when omitted.
|
|
20
|
+
*/
|
|
21
|
+
scmConnectorRef?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RemediationAgentDockerfile } from '../schemas/RemediationAgentDockerfile';
|
|
2
|
+
export interface RemediationAgentDockerfileScanResult {
|
|
3
|
+
dockerfiles: RemediationAgentDockerfile[];
|
|
4
|
+
/**
|
|
5
|
+
* Failure detail when status is FAILED
|
|
6
|
+
*/
|
|
7
|
+
message?: string;
|
|
8
|
+
pipelineExecutionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* One of RUNNING, SUCCEEDED or FAILED
|
|
11
|
+
*/
|
|
12
|
+
status: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import type { RspmScannerType } from '../schemas/RspmScannerType';
|
|
2
2
|
export interface ScannerConfigCount {
|
|
3
3
|
/**
|
|
4
|
+
* Saved scanner configuration documents in this scope
|
|
4
5
|
* @format int64
|
|
5
6
|
*/
|
|
6
7
|
count: number;
|
|
8
|
+
/**
|
|
9
|
+
* Integrations in scope with this scanner in enabled_scanners and integration_enabled not false
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
integrations_active?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Integrations in scope with this scanner in enabled_scanners and integration_enabled false
|
|
15
|
+
* @format int64
|
|
16
|
+
*/
|
|
17
|
+
integrations_inactive?: number;
|
|
7
18
|
/**
|
|
8
19
|
* Display name from STO product catalog or SCS constants
|
|
9
20
|
*/
|