@harnessio/react-ssca-manager-client 0.86.22 → 0.86.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/ssca-manager/src/services/hooks/useCreateIntegrationMutation.d.ts +2 -2
  2. package/dist/ssca-manager/src/services/hooks/useGetCodeRepoAiWorkflowConfigQuery.d.ts +35 -0
  3. package/dist/ssca-manager/src/services/hooks/useGetCodeRepoAiWorkflowConfigQuery.js +23 -0
  4. package/dist/ssca-manager/src/services/hooks/useListIntegrationRepoScansMutation.d.ts +36 -0
  5. package/dist/ssca-manager/src/services/hooks/useListIntegrationRepoScansMutation.js +15 -0
  6. package/dist/ssca-manager/src/services/hooks/useListScannerConfigurationIntegrationsQuery.d.ts +21 -0
  7. package/dist/ssca-manager/src/services/hooks/useListScannerConfigurationIntegrationsQuery.js +14 -0
  8. package/dist/ssca-manager/src/services/hooks/useSaveCodeRepoAiWorkflowConfigMutation.d.ts +34 -0
  9. package/dist/ssca-manager/src/services/hooks/useSaveCodeRepoAiWorkflowConfigMutation.js +19 -0
  10. package/dist/ssca-manager/src/services/index.d.ts +15 -0
  11. package/dist/ssca-manager/src/services/index.js +4 -0
  12. package/dist/ssca-manager/src/services/requestBodies/IntegrationRepoScanListRequestBodyRequestBody.d.ts +2 -0
  13. package/dist/ssca-manager/src/services/requestBodies/IntegrationRepoScanListRequestBodyRequestBody.js +1 -0
  14. package/dist/ssca-manager/src/services/responses/IntegrationRepoScanListingResponseBodyResponse.d.ts +2 -0
  15. package/dist/ssca-manager/src/services/responses/IntegrationRepoScanListingResponseBodyResponse.js +1 -0
  16. package/dist/ssca-manager/src/services/responses/ScannerConfigurationIntegrationsResponseBodyResponse.d.ts +2 -0
  17. package/dist/ssca-manager/src/services/responses/ScannerConfigurationIntegrationsResponseBodyResponse.js +1 -0
  18. package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigYamlResponse.d.ts +10 -0
  19. package/dist/ssca-manager/src/services/schemas/Integration.d.ts +23 -0
  20. package/dist/ssca-manager/src/services/schemas/IntegrationRepoScanListItem.d.ts +19 -0
  21. package/dist/ssca-manager/src/services/schemas/IntegrationRepoScanListItem.js +1 -0
  22. package/dist/ssca-manager/src/services/schemas/IntegrationRepoScanListRequest.d.ts +6 -0
  23. package/dist/ssca-manager/src/services/schemas/IntegrationRepoScanListRequest.js +4 -0
  24. package/dist/ssca-manager/src/services/schemas/RepoScanExecutionDto.d.ts +26 -0
  25. package/dist/ssca-manager/src/services/schemas/RepoScanExecutionDto.js +1 -0
  26. package/dist/ssca-manager/src/services/schemas/RepoScanExecutionStatus.d.ts +4 -0
  27. package/dist/ssca-manager/src/services/schemas/RepoScanExecutionStatus.js +4 -0
  28. package/dist/ssca-manager/src/services/schemas/UpdateIntegrationRspmRequest.d.ts +5 -1
  29. package/package.json +1 -1
@@ -13,7 +13,7 @@ export interface CreateIntegrationMutationHeaderParams {
13
13
  }
14
14
  export type CreateIntegrationRequestBody = CreateIntegrationRequestBodyRequestBody;
15
15
  export type CreateIntegrationOkResponse = ResponseWithPagination<CreateIntegrationResponseBodyResponse>;
16
- export type CreateIntegrationErrorResponse = Error;
16
+ export type CreateIntegrationErrorResponse = unknown | Error;
17
17
  export interface CreateIntegrationProps extends CreateIntegrationMutationPathParams, Omit<FetcherOptions<unknown, CreateIntegrationRequestBody, CreateIntegrationMutationHeaderParams>, 'url'> {
18
18
  body: CreateIntegrationRequestBody;
19
19
  }
@@ -21,4 +21,4 @@ export declare function createIntegration(props: CreateIntegrationProps): Promis
21
21
  /**
22
22
  * Create Integration
23
23
  */
24
- export declare function useCreateIntegrationMutation(options?: Omit<UseMutationOptions<CreateIntegrationOkResponse, CreateIntegrationErrorResponse, CreateIntegrationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationOkResponse, Error, CreateIntegrationProps, unknown>;
24
+ export declare function useCreateIntegrationMutation(options?: Omit<UseMutationOptions<CreateIntegrationOkResponse, CreateIntegrationErrorResponse, CreateIntegrationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationOkResponse, unknown, CreateIntegrationProps, unknown>;
@@ -0,0 +1,35 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AiWorkflowConfigYamlResponse } from '../schemas/AiWorkflowConfigYamlResponse';
3
+ import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetCodeRepoAiWorkflowConfigQueryPathParams {
7
+ org: string;
8
+ project: string;
9
+ targetId: string;
10
+ }
11
+ export interface GetCodeRepoAiWorkflowConfigQueryQueryParams {
12
+ ai_workflow_type?: AiWorkflowTypeEnum;
13
+ }
14
+ export interface GetCodeRepoAiWorkflowConfigQueryHeaderParams {
15
+ 'Harness-Account': string;
16
+ }
17
+ export type GetCodeRepoAiWorkflowConfigOkResponse = ResponseWithPagination<AiWorkflowConfigYamlResponse>;
18
+ export type GetCodeRepoAiWorkflowConfigErrorResponse = unknown;
19
+ export interface GetCodeRepoAiWorkflowConfigProps extends GetCodeRepoAiWorkflowConfigQueryPathParams, Omit<FetcherOptions<GetCodeRepoAiWorkflowConfigQueryQueryParams, unknown, GetCodeRepoAiWorkflowConfigQueryHeaderParams>, 'url'> {
20
+ queryParams: GetCodeRepoAiWorkflowConfigQueryQueryParams;
21
+ }
22
+ export declare function getCodeRepoAiWorkflowConfig(props: GetCodeRepoAiWorkflowConfigProps): Promise<GetCodeRepoAiWorkflowConfigOkResponse>;
23
+ /**
24
+ * Get the effective AI workflow configuration for a STO code-repo target.
25
+ * There is no per-repo enable toggle. `agent.targetIncluded` is true when the project
26
+ * `targetIncludeScope` covers this target (unset or ALL covers every target; SPECIFIC
27
+ * covers listed target ids). The UI uses that for the "enable at project level" hover.
28
+ * Account master toggle is `account_enabled`. Account project coverage is `include_scope_status`.
29
+ * fp_triage code-repo YAML does not carry branch or connector overrides.
30
+ * Remediation returns branch, scm, jira, and validation-pipeline overrides.
31
+ * Empty branches and blank branchRegex mean baseline-only triggering.
32
+ * Unchecking a target at project scope does not delete this code-repo document.
33
+ *
34
+ */
35
+ export declare function useGetCodeRepoAiWorkflowConfigQuery(props: GetCodeRepoAiWorkflowConfigProps, options?: Omit<UseQueryOptions<GetCodeRepoAiWorkflowConfigOkResponse, GetCodeRepoAiWorkflowConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCodeRepoAiWorkflowConfigOkResponse, unknown>;
@@ -0,0 +1,23 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getCodeRepoAiWorkflowConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-config/code-repos/${props.targetId}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get the effective AI workflow configuration for a STO code-repo target.
11
+ * There is no per-repo enable toggle. `agent.targetIncluded` is true when the project
12
+ * `targetIncludeScope` covers this target (unset or ALL covers every target; SPECIFIC
13
+ * covers listed target ids). The UI uses that for the "enable at project level" hover.
14
+ * Account master toggle is `account_enabled`. Account project coverage is `include_scope_status`.
15
+ * fp_triage code-repo YAML does not carry branch or connector overrides.
16
+ * Remediation returns branch, scm, jira, and validation-pipeline overrides.
17
+ * Empty branches and blank branchRegex mean baseline-only triggering.
18
+ * Unchecking a target at project scope does not delete this code-repo document.
19
+ *
20
+ */
21
+ export function useGetCodeRepoAiWorkflowConfigQuery(props, options) {
22
+ return useQuery(['getCodeRepoAIWorkflowConfig', props.org, props.project, props.targetId, props.queryParams], ({ signal }) => getCodeRepoAiWorkflowConfig(Object.assign(Object.assign({}, props), { signal })), options);
23
+ }
@@ -0,0 +1,36 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { IntegrationRepoScanListingResponseBodyResponse } from '../responses/IntegrationRepoScanListingResponseBodyResponse';
3
+ import type { IntegrationRepoScanListRequest } from '../schemas/IntegrationRepoScanListRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListIntegrationRepoScansMutationPathParams {
7
+ org: string;
8
+ project: string;
9
+ integration: string;
10
+ }
11
+ export interface ListIntegrationRepoScansMutationQueryParams {
12
+ /**
13
+ * @default 30
14
+ */
15
+ limit?: number;
16
+ /**
17
+ * @default 0
18
+ */
19
+ page?: number;
20
+ }
21
+ export interface ListIntegrationRepoScansMutationHeaderParams {
22
+ 'Harness-Account': string;
23
+ }
24
+ export type ListIntegrationRepoScansRequestBody = IntegrationRepoScanListRequest;
25
+ export type ListIntegrationRepoScansOkResponse = ResponseWithPagination<IntegrationRepoScanListingResponseBodyResponse>;
26
+ export type ListIntegrationRepoScansErrorResponse = unknown;
27
+ export interface ListIntegrationRepoScansProps extends ListIntegrationRepoScansMutationPathParams, Omit<FetcherOptions<ListIntegrationRepoScansMutationQueryParams, ListIntegrationRepoScansRequestBody, ListIntegrationRepoScansMutationHeaderParams>, 'url'> {
28
+ queryParams: ListIntegrationRepoScansMutationQueryParams;
29
+ body: ListIntegrationRepoScansRequestBody;
30
+ }
31
+ export declare function listIntegrationRepoScans(props: ListIntegrationRepoScansProps): Promise<ListIntegrationRepoScansOkResponse>;
32
+ /**
33
+ * Paginated list of repositories for an integration joined with the latest scanExecutions row per (repo_url, branch). Status is the scanExecutions enum with no mapping. Repos without a matching scan row are still returned with null last_scan fields.
34
+ *
35
+ */
36
+ export declare function useListIntegrationRepoScansMutation(options?: Omit<UseMutationOptions<ListIntegrationRepoScansOkResponse, ListIntegrationRepoScansErrorResponse, ListIntegrationRepoScansProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ListIntegrationRepoScansOkResponse, unknown, ListIntegrationRepoScansProps, unknown>;
@@ -0,0 +1,15 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function listIntegrationRepoScans(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/integration/${props.integration}/repos/scans`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Paginated list of repositories for an integration joined with the latest scanExecutions row per (repo_url, branch). Status is the scanExecutions enum with no mapping. Repos without a matching scan row are still returned with null last_scan fields.
11
+ *
12
+ */
13
+ export function useListIntegrationRepoScansMutation(options) {
14
+ return useMutation((mutateProps) => listIntegrationRepoScans(mutateProps), options);
15
+ }
@@ -0,0 +1,21 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ScannerConfigurationIntegrationsResponseBodyResponse } from '../responses/ScannerConfigurationIntegrationsResponseBodyResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface ListScannerConfigurationIntegrationsQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ configId: string;
9
+ }
10
+ export interface ListScannerConfigurationIntegrationsQueryHeaderParams {
11
+ 'Harness-Account': string;
12
+ }
13
+ export type ListScannerConfigurationIntegrationsOkResponse = ResponseWithPagination<ScannerConfigurationIntegrationsResponseBodyResponse>;
14
+ export type ListScannerConfigurationIntegrationsErrorResponse = unknown;
15
+ export interface ListScannerConfigurationIntegrationsProps extends ListScannerConfigurationIntegrationsQueryPathParams, Omit<FetcherOptions<unknown, unknown, ListScannerConfigurationIntegrationsQueryHeaderParams>, 'url'> {
16
+ }
17
+ export declare function listScannerConfigurationIntegrations(props: ListScannerConfigurationIntegrationsProps): Promise<ListScannerConfigurationIntegrationsOkResponse>;
18
+ /**
19
+ * Returns Integration DTOs for integrations in the project that reference the given scanner configuration in scanner_config_refs. Same shape as GET/list integration. Used before delete or edit to show dependent integrations. Which scanner slot uses this config is in scanner_config_refs.
20
+ */
21
+ export declare function useListScannerConfigurationIntegrationsQuery(props: ListScannerConfigurationIntegrationsProps, options?: Omit<UseQueryOptions<ListScannerConfigurationIntegrationsOkResponse, ListScannerConfigurationIntegrationsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListScannerConfigurationIntegrationsOkResponse, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function listScannerConfigurationIntegrations(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/scanner-configurations/${props.configId}/integrations`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns Integration DTOs for integrations in the project that reference the given scanner configuration in scanner_config_refs. Same shape as GET/list integration. Used before delete or edit to show dependent integrations. Which scanner slot uses this config is in scanner_config_refs.
11
+ */
12
+ export function useListScannerConfigurationIntegrationsQuery(props, options) {
13
+ return useQuery(['listScannerConfigurationIntegrations', props.org, props.project, props.configId], ({ signal }) => listScannerConfigurationIntegrations(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,34 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { AiWorkflowConfigYamlResponse } from '../schemas/AiWorkflowConfigYamlResponse';
3
+ import type { AiWorkflowConfigYamlRequest } from '../schemas/AiWorkflowConfigYamlRequest';
4
+ import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface SaveCodeRepoAiWorkflowConfigMutationPathParams {
8
+ org: string;
9
+ project: string;
10
+ targetId: string;
11
+ }
12
+ export interface SaveCodeRepoAiWorkflowConfigMutationQueryParams {
13
+ ai_workflow_type?: AiWorkflowTypeEnum;
14
+ }
15
+ export interface SaveCodeRepoAiWorkflowConfigMutationHeaderParams {
16
+ 'Harness-Account': string;
17
+ }
18
+ export type SaveCodeRepoAiWorkflowConfigRequestBody = AiWorkflowConfigYamlRequest;
19
+ export type SaveCodeRepoAiWorkflowConfigOkResponse = ResponseWithPagination<AiWorkflowConfigYamlResponse>;
20
+ export type SaveCodeRepoAiWorkflowConfigErrorResponse = unknown;
21
+ export interface SaveCodeRepoAiWorkflowConfigProps extends SaveCodeRepoAiWorkflowConfigMutationPathParams, Omit<FetcherOptions<SaveCodeRepoAiWorkflowConfigMutationQueryParams, SaveCodeRepoAiWorkflowConfigRequestBody, SaveCodeRepoAiWorkflowConfigMutationHeaderParams>, 'url'> {
22
+ queryParams: SaveCodeRepoAiWorkflowConfigMutationQueryParams;
23
+ body: SaveCodeRepoAiWorkflowConfigRequestBody;
24
+ }
25
+ export declare function saveCodeRepoAiWorkflowConfig(props: SaveCodeRepoAiWorkflowConfigProps): Promise<SaveCodeRepoAiWorkflowConfigOkResponse>;
26
+ /**
27
+ * Create or update STO target (code repo) config for an AI workflow agent.
28
+ * There is no per-repo enable toggle. `agent.enabled` in the body is ignored.
29
+ * Remediation accepts branches XOR branchRegex, scm, jiraEnabled, and
30
+ * scan/build validation pipelines. Slack/alertConfig/includeScope/triggerConfig are ignored.
31
+ * Saving here does not change project targetIncludeScope.
32
+ *
33
+ */
34
+ export declare function useSaveCodeRepoAiWorkflowConfigMutation(options?: Omit<UseMutationOptions<SaveCodeRepoAiWorkflowConfigOkResponse, SaveCodeRepoAiWorkflowConfigErrorResponse, SaveCodeRepoAiWorkflowConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveCodeRepoAiWorkflowConfigOkResponse, unknown, SaveCodeRepoAiWorkflowConfigProps, unknown>;
@@ -0,0 +1,19 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function saveCodeRepoAiWorkflowConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-config/code-repos/${props.targetId}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Create or update STO target (code repo) config for an AI workflow agent.
11
+ * There is no per-repo enable toggle. `agent.enabled` in the body is ignored.
12
+ * Remediation accepts branches XOR branchRegex, scm, jiraEnabled, and
13
+ * scan/build validation pipelines. Slack/alertConfig/includeScope/triggerConfig are ignored.
14
+ * Saving here does not change project targetIncludeScope.
15
+ *
16
+ */
17
+ export function useSaveCodeRepoAiWorkflowConfigMutation(options) {
18
+ return useMutation((mutateProps) => saveCodeRepoAiWorkflowConfig(mutateProps), options);
19
+ }
@@ -117,6 +117,8 @@ export type { GetCicdWorkflowsListErrorResponse, GetCicdWorkflowsListOkResponse,
117
117
  export { getCicdWorkflowsList, useGetCicdWorkflowsListQuery, } from './hooks/useGetCicdWorkflowsListQuery';
118
118
  export type { GetCicdWorkflowsSummaryErrorResponse, GetCicdWorkflowsSummaryOkResponse, GetCicdWorkflowsSummaryProps, GetCicdWorkflowsSummaryQueryPathParams, } from './hooks/useGetCicdWorkflowsSummaryQuery';
119
119
  export { getCicdWorkflowsSummary, useGetCicdWorkflowsSummaryQuery, } from './hooks/useGetCicdWorkflowsSummaryQuery';
120
+ export type { GetCodeRepoAiWorkflowConfigErrorResponse, GetCodeRepoAiWorkflowConfigOkResponse, GetCodeRepoAiWorkflowConfigProps, GetCodeRepoAiWorkflowConfigQueryPathParams, GetCodeRepoAiWorkflowConfigQueryQueryParams, } from './hooks/useGetCodeRepoAiWorkflowConfigQuery';
121
+ export { getCodeRepoAiWorkflowConfig, useGetCodeRepoAiWorkflowConfigQuery, } from './hooks/useGetCodeRepoAiWorkflowConfigQuery';
120
122
  export type { GetCodeRepositoryOverviewErrorResponse, GetCodeRepositoryOverviewOkResponse, GetCodeRepositoryOverviewProps, GetCodeRepositoryOverviewQueryPathParams, } from './hooks/useGetCodeRepositoryOverviewQuery';
121
123
  export { getCodeRepositoryOverview, useGetCodeRepositoryOverviewQuery, } from './hooks/useGetCodeRepositoryOverviewQuery';
122
124
  export type { GetCompliaceStandardByIdErrorResponse, GetCompliaceStandardByIdOkResponse, GetCompliaceStandardByIdProps, GetCompliaceStandardByIdQueryPathParams, } from './hooks/useGetCompliaceStandardByIdQuery';
@@ -203,12 +205,16 @@ export type { ListAttestationsErrorResponse, ListAttestationsMutationQueryParams
203
205
  export { listAttestations, useListAttestationsMutation } from './hooks/useListAttestationsMutation';
204
206
  export type { ListExemptionsErrorResponse, ListExemptionsOkResponse, ListExemptionsProps, ListExemptionsQueryQueryParams, ListExemptionsRequestBody, } from './hooks/useListExemptionsQuery';
205
207
  export { listExemptions, useListExemptionsQuery } from './hooks/useListExemptionsQuery';
208
+ export type { ListIntegrationRepoScansErrorResponse, ListIntegrationRepoScansMutationPathParams, ListIntegrationRepoScansMutationQueryParams, ListIntegrationRepoScansOkResponse, ListIntegrationRepoScansProps, ListIntegrationRepoScansRequestBody, } from './hooks/useListIntegrationRepoScansMutation';
209
+ export { listIntegrationRepoScans, useListIntegrationRepoScansMutation, } from './hooks/useListIntegrationRepoScansMutation';
206
210
  export type { ListIntegrationsErrorResponse, ListIntegrationsOkResponse, ListIntegrationsProps, ListIntegrationsQueryPathParams, ListIntegrationsQueryQueryParams, } from './hooks/useListIntegrationsQuery';
207
211
  export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
208
212
  export type { ListRemediationsErrorResponse, ListRemediationsOkResponse, ListRemediationsProps, ListRemediationsQueryPathParams, ListRemediationsQueryQueryParams, ListRemediationsRequestBody, } from './hooks/useListRemediationsQuery';
209
213
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
210
214
  export type { ListRspmScannersErrorResponse, ListRspmScannersOkResponse, ListRspmScannersProps, ListRspmScannersQueryPathParams, ListRspmScannersQueryQueryParams, } from './hooks/useListRspmScannersQuery';
211
215
  export { listRspmScanners, useListRspmScannersQuery } from './hooks/useListRspmScannersQuery';
216
+ export type { ListScannerConfigurationIntegrationsErrorResponse, ListScannerConfigurationIntegrationsOkResponse, ListScannerConfigurationIntegrationsProps, ListScannerConfigurationIntegrationsQueryPathParams, } from './hooks/useListScannerConfigurationIntegrationsQuery';
217
+ export { listScannerConfigurationIntegrations, useListScannerConfigurationIntegrationsQuery, } from './hooks/useListScannerConfigurationIntegrationsQuery';
212
218
  export type { ListScannerConfigurationsErrorResponse, ListScannerConfigurationsOkResponse, ListScannerConfigurationsProps, ListScannerConfigurationsQueryPathParams, ListScannerConfigurationsQueryQueryParams, } from './hooks/useListScannerConfigurationsQuery';
213
219
  export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
214
220
  export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationPathParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationQueryParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeOkResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeProps, PostComplianceResultStatsEvaluationBreakdownArtifactTypeRequestBody, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
@@ -227,6 +233,8 @@ export type { SaveAccountAiWorkflowConfigErrorResponse, SaveAccountAiWorkflowCon
227
233
  export { saveAccountAiWorkflowConfig, useSaveAccountAiWorkflowConfigMutation, } from './hooks/useSaveAccountAiWorkflowConfigMutation';
228
234
  export type { SaveAutoPrConfigErrorResponse, SaveAutoPrConfigOkResponse, SaveAutoPrConfigProps, SaveAutoPrConfigRequestBody, } from './hooks/useSaveAutoPrConfigMutation';
229
235
  export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
236
+ export type { SaveCodeRepoAiWorkflowConfigErrorResponse, SaveCodeRepoAiWorkflowConfigMutationPathParams, SaveCodeRepoAiWorkflowConfigMutationQueryParams, SaveCodeRepoAiWorkflowConfigOkResponse, SaveCodeRepoAiWorkflowConfigProps, SaveCodeRepoAiWorkflowConfigRequestBody, } from './hooks/useSaveCodeRepoAiWorkflowConfigMutation';
237
+ export { saveCodeRepoAiWorkflowConfig, useSaveCodeRepoAiWorkflowConfigMutation, } from './hooks/useSaveCodeRepoAiWorkflowConfigMutation';
230
238
  export type { SaveConnectorConfigErrorResponse, SaveConnectorConfigOkResponse, SaveConnectorConfigProps, SaveConnectorConfigRequestBody, } from './hooks/useSaveConnectorConfigMutation';
231
239
  export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
232
240
  export type { SaveOssScoringCapConfigErrorResponse, SaveOssScoringCapConfigOkResponse, SaveOssScoringCapConfigProps, SaveOssScoringCapConfigRequestBody, } from './hooks/useSaveOssScoringCapConfigQuery';
@@ -290,6 +298,7 @@ export type { ExecutionLimitRequestBodyRequestBody } from './requestBodies/Execu
290
298
  export type { FetchComplianceResultByArtifactRequestBodyRequestBody } from './requestBodies/FetchComplianceResultByArtifactRequestBodyRequestBody';
291
299
  export type { FetchComplianceResultRequestBodyRequestBody } from './requestBodies/FetchComplianceResultRequestBodyRequestBody';
292
300
  export type { FetchComplianeResultChecksStatsRequestBodyRequestBody } from './requestBodies/FetchComplianeResultChecksStatsRequestBodyRequestBody';
301
+ export type { IntegrationRepoScanListRequestBodyRequestBody } from './requestBodies/IntegrationRepoScanListRequestBodyRequestBody';
293
302
  export type { IntegrationStepConfigRequestBodyRequestBody } from './requestBodies/IntegrationStepConfigRequestBodyRequestBody';
294
303
  export type { ListSbomComponentsRequestBodyRequestBody } from './requestBodies/ListSbomComponentsRequestBodyRequestBody';
295
304
  export type { NormalisedSbomComponentRequestBodyRequestBody } from './requestBodies/NormalisedSbomComponentRequestBodyRequestBody';
@@ -378,6 +387,7 @@ export type { FetchIntegrationReposResponseBodyResponse } from './responses/Fetc
378
387
  export type { GetIntegrationSummaryResponseBodyResponse } from './responses/GetIntegrationSummaryResponseBodyResponse';
379
388
  export type { HarnessPipelineIntegrationResponseBodyResponse } from './responses/HarnessPipelineIntegrationResponseBodyResponse';
380
389
  export type { IntegrationListingResponseBodyResponse } from './responses/IntegrationListingResponseBodyResponse';
390
+ export type { IntegrationRepoScanListingResponseBodyResponse } from './responses/IntegrationRepoScanListingResponseBodyResponse';
381
391
  export type { IntegrationStepConfigResponseBodyResponse } from './responses/IntegrationStepConfigResponseBodyResponse';
382
392
  export type { LicenseDriftResponseBodyResponse } from './responses/LicenseDriftResponseBodyResponse';
383
393
  export type { ListConfigsResponseBodyResponse } from './responses/ListConfigsResponseBodyResponse';
@@ -406,6 +416,7 @@ export type { SaveResponseResponse } from './responses/SaveResponseResponse';
406
416
  export type { SbomProcessResponseBodyResponse } from './responses/SbomProcessResponseBodyResponse';
407
417
  export type { SbomScoreDetailV2ResponseBodyResponse } from './responses/SbomScoreDetailV2ResponseBodyResponse';
408
418
  export type { SbomScorecardResponseBodyResponse } from './responses/SbomScorecardResponseBodyResponse';
419
+ export type { ScannerConfigurationIntegrationsResponseBodyResponse } from './responses/ScannerConfigurationIntegrationsResponseBodyResponse';
409
420
  export type { ScannerConfigurationListingResponseBodyResponse } from './responses/ScannerConfigurationListingResponseBodyResponse';
410
421
  export type { TicketResponseBodyResponse } from './responses/TicketResponseBodyResponse';
411
422
  export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueResponseBodyResponse';
@@ -688,6 +699,8 @@ export type { Integration } from './schemas/Integration';
688
699
  export type { IntegrationConfig } from './schemas/IntegrationConfig';
689
700
  export type { IntegrationConfigRequestBody } from './schemas/IntegrationConfigRequestBody';
690
701
  export type { IntegrationCountsResponse } from './schemas/IntegrationCountsResponse';
702
+ export type { IntegrationRepoScanListItem } from './schemas/IntegrationRepoScanListItem';
703
+ export type { IntegrationRepoScanListRequest } from './schemas/IntegrationRepoScanListRequest';
691
704
  export type { IntegrationStepConfig } from './schemas/IntegrationStepConfig';
692
705
  export type { IntegrationStepConfigRequestBody } from './schemas/IntegrationStepConfigRequestBody';
693
706
  export type { IntegrationType } from './schemas/IntegrationType';
@@ -781,6 +794,8 @@ export type { RemediationTrackerUpdateResponseBody } from './schemas/Remediation
781
794
  export type { RemediationTrackersOverallSummaryResponseBody } from './schemas/RemediationTrackersOverallSummaryResponseBody';
782
795
  export type { RemediationWarning } from './schemas/RemediationWarning';
783
796
  export type { RepoDetailsDto } from './schemas/RepoDetailsDto';
797
+ export type { RepoScanExecutionDto } from './schemas/RepoScanExecutionDto';
798
+ export type { RepoScanExecutionStatus } from './schemas/RepoScanExecutionStatus';
784
799
  export type { ReportSbomAttestationVerificationRequestBody } from './schemas/ReportSbomAttestationVerificationRequestBody';
785
800
  export type { Repositories } from './schemas/Repositories';
786
801
  export type { RepositoriesSummary } from './schemas/RepositoriesSummary';
@@ -57,6 +57,7 @@ export { getCicdOverview, useGetCicdOverviewQuery } from './hooks/useGetCicdOver
57
57
  export { getCicdRulesEvaluationTrend, useGetCicdRulesEvaluationTrendQuery, } from './hooks/useGetCicdRulesEvaluationTrendQuery';
58
58
  export { getCicdWorkflowsList, useGetCicdWorkflowsListQuery, } from './hooks/useGetCicdWorkflowsListQuery';
59
59
  export { getCicdWorkflowsSummary, useGetCicdWorkflowsSummaryQuery, } from './hooks/useGetCicdWorkflowsSummaryQuery';
60
+ export { getCodeRepoAiWorkflowConfig, useGetCodeRepoAiWorkflowConfigQuery, } from './hooks/useGetCodeRepoAiWorkflowConfigQuery';
60
61
  export { getCodeRepositoryOverview, useGetCodeRepositoryOverviewQuery, } from './hooks/useGetCodeRepositoryOverviewQuery';
61
62
  export { getCompliaceStandardById, useGetCompliaceStandardByIdQuery, } from './hooks/useGetCompliaceStandardByIdQuery';
62
63
  export { getComplianceEvaluationTrends, useGetComplianceEvaluationTrendsQuery, } from './hooks/useGetComplianceEvaluationTrendsQuery';
@@ -100,9 +101,11 @@ export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAge
100
101
  export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
101
102
  export { listAttestations, useListAttestationsMutation } from './hooks/useListAttestationsMutation';
102
103
  export { listExemptions, useListExemptionsQuery } from './hooks/useListExemptionsQuery';
104
+ export { listIntegrationRepoScans, useListIntegrationRepoScansMutation, } from './hooks/useListIntegrationRepoScansMutation';
103
105
  export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
104
106
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
105
107
  export { listRspmScanners, useListRspmScannersQuery } from './hooks/useListRspmScannersQuery';
108
+ export { listScannerConfigurationIntegrations, useListScannerConfigurationIntegrationsQuery, } from './hooks/useListScannerConfigurationIntegrationsQuery';
106
109
  export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
107
110
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
108
111
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
@@ -112,6 +115,7 @@ export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from '
112
115
  export { reviewExemption, useReviewExemptionMutation } from './hooks/useReviewExemptionMutation';
113
116
  export { saveAccountAiWorkflowConfig, useSaveAccountAiWorkflowConfigMutation, } from './hooks/useSaveAccountAiWorkflowConfigMutation';
114
117
  export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
118
+ export { saveCodeRepoAiWorkflowConfig, useSaveCodeRepoAiWorkflowConfigMutation, } from './hooks/useSaveCodeRepoAiWorkflowConfigMutation';
115
119
  export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
116
120
  export { saveOssScoringCapConfig, useSaveOssScoringCapConfigQuery, } from './hooks/useSaveOssScoringCapConfigQuery';
117
121
  export { saveProjectAiWorkflowConfig, useSaveProjectAiWorkflowConfigMutation, } from './hooks/useSaveProjectAiWorkflowConfigMutation';
@@ -0,0 +1,2 @@
1
+ import type { IntegrationRepoScanListRequest } from '../schemas/IntegrationRepoScanListRequest';
2
+ export type IntegrationRepoScanListRequestBodyRequestBody = IntegrationRepoScanListRequest;
@@ -0,0 +1,2 @@
1
+ import type { IntegrationRepoScanListItem } from '../schemas/IntegrationRepoScanListItem';
2
+ export type IntegrationRepoScanListingResponseBodyResponse = IntegrationRepoScanListItem[];
@@ -0,0 +1,2 @@
1
+ import type { Integration } from '../schemas/Integration';
2
+ export type ScannerConfigurationIntegrationsResponseBodyResponse = Integration[];
@@ -1,6 +1,16 @@
1
1
  import type { AiWorkflowIncludeScopeStatus } from '../schemas/AiWorkflowIncludeScopeStatus';
2
2
  export interface AiWorkflowConfigYamlResponse {
3
+ /**
4
+ * Account-level master toggle for this workflow type (not the per-repo switch)
5
+ */
6
+ account_enabled?: boolean;
3
7
  include_scope_status?: AiWorkflowIncludeScopeStatus;
8
+ /**
9
+ * Removed. Target membership is project YAML `agent.targetIncludeScope` (`type` ALL or SPECIFIC, `targetIds`). Code-repo GET reports coverage as `agent.targetIncluded`. This field is no longer set.
10
+ *
11
+ * @deprecated
12
+ */
13
+ target_enablement?: boolean | null;
4
14
  /**
5
15
  * Stringified YAML of the agent configuration
6
16
  */
@@ -1,5 +1,11 @@
1
+ import type { AutoDiscoveryScope } from '../schemas/AutoDiscoveryScope';
1
2
  import type { InfraConfigDto } from '../schemas/InfraConfigDto';
3
+ import type { RepoDetailsDto } from '../schemas/RepoDetailsDto';
2
4
  export interface Integration {
5
+ /**
6
+ * Present when include_all_repos is true for Harness Code integrations. Returned on GET /integration and GET scanner-configurations/{configId}/integrations.
7
+ */
8
+ auto_discovery_scopes?: AutoDiscoveryScope[];
3
9
  /**
4
10
  * When true, STO scans fail on critical findings.
5
11
  */
@@ -14,7 +20,15 @@ export interface Integration {
14
20
  */
15
21
  enabled_scanners?: string[];
16
22
  id?: string;
23
+ /**
24
+ * True when the integration selects every repository from the SCM. Returned for repo-based integrations on GET /integration and GET scanner-configurations/{configId}/integrations.
25
+ */
26
+ include_all_repos?: boolean;
17
27
  infra_config?: InfraConfigDto;
28
+ /**
29
+ * Absent or true: iterator creates scan executions. False: iterator skips scan create. Not set at create; patch via UpdateIntegrationRspmRequest.
30
+ */
31
+ integration_enabled?: boolean | null;
18
32
  /**
19
33
  * STO integration name. Present only on named STO integrations.
20
34
  */
@@ -24,6 +38,15 @@ export interface Integration {
24
38
  */
25
39
  last_scan_at?: number;
26
40
  org?: string;
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.
43
+ */
44
+ repositories?: RepoDetailsDto[];
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.
47
+ * @format int64
48
+ */
49
+ repository_count?: number | null;
27
50
  /**
28
51
  * Map of scanner identifier to scanner configuration catalog id
29
52
  */
@@ -0,0 +1,19 @@
1
+ import type { RepoScanExecutionDto } from '../schemas/RepoScanExecutionDto';
2
+ import type { RepoScanExecutionStatus } from '../schemas/RepoScanExecutionStatus';
3
+ export interface IntegrationRepoScanListItem {
4
+ branch?: string;
5
+ /**
6
+ * Relative SSCA pipeline execution URL. Null when pipelineExecutionId is absent.
7
+ */
8
+ execution_link?: string | null;
9
+ last_scan?: RepoScanExecutionDto;
10
+ last_scan_status?: RepoScanExecutionStatus;
11
+ /**
12
+ * createdAt for PENDING/IN_PROGRESS, lastModifiedAt for terminal statuses.
13
+ * @format int64
14
+ */
15
+ last_scan_time?: number | null;
16
+ owner?: string;
17
+ repo_name?: string;
18
+ repo_url?: string;
19
+ }
@@ -0,0 +1,6 @@
1
+ export interface IntegrationRepoScanListRequest {
2
+ /**
3
+ * When false (P0), list configured repos. When true (P1), list distinct scanned repo+branch keys from Mongo.
4
+ */
5
+ include_all_repos?: boolean;
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,26 @@
1
+ import type { RepoScanExecutionStatus } from '../schemas/RepoScanExecutionStatus';
2
+ /**
3
+ * Public fields of the latest RepoScanExecutionsEntity. inputYaml is omitted.
4
+ */
5
+ export interface RepoScanExecutionDto {
6
+ branch?: string;
7
+ connector_id?: string;
8
+ /**
9
+ * @format int64
10
+ */
11
+ created_at?: number | null;
12
+ /**
13
+ * @format int64
14
+ */
15
+ last_modified_at?: number | null;
16
+ pipeline_execution_id?: string;
17
+ pipeline_id?: string;
18
+ priority?: 'NORMAL' | 'URGENT';
19
+ repo_size?: string;
20
+ repo_url?: string;
21
+ scan_execution_id?: string;
22
+ scan_org?: boolean;
23
+ status?: RepoScanExecutionStatus;
24
+ sto_rspm_flow?: boolean;
25
+ uuid?: string;
26
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Status stored on scanExecutions. Passthrough of ScanExecutionStatus with no mapping.
3
+ */
4
+ export type RepoScanExecutionStatus = 'CANCELLED' | 'FAILED' | 'IN_PROGRESS' | 'PENDING' | 'SUCCESS' | 'UNKNOWN';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -18,7 +18,11 @@ export interface UpdateIntegrationRspmRequest {
18
18
  enabled_scanners?: RspmScannerId[];
19
19
  infra_config?: InfraConfigDto;
20
20
  /**
21
- * Optional rename of a named STO integration. Non-blank and unique in the project among STO rows. Same name as current is a no-op. HTTP 400 when the integration is unnamed (useIntegrationName absent or false). Omit to leave unchanged. Cannot clear the name.
21
+ * When false, iterator skips scan execution create. True or omit on patch leaves iterator running. Omit to leave unchanged.
22
+ */
23
+ integration_enabled?: boolean | null;
24
+ /**
25
+ * Optional rename of a named STO integration. Non-blank and unique in the project among STO rows. Same name as current is a no-op. HTTP 400 when the integration is unnamed (useIntegrationName absent or false). HTTP 409 when another STO integration in the project already uses this name. Omit to leave unchanged. Cannot clear the name.
22
26
  */
23
27
  integration_name?: string;
24
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.86.22",
3
+ "version": "0.86.24",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",