@harnessio/react-ssca-manager-client 0.86.23 → 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 (24) hide show
  1. package/dist/ssca-manager/src/services/hooks/useCreateIntegrationMutation.d.ts +2 -2
  2. package/dist/ssca-manager/src/services/hooks/useListIntegrationRepoScansMutation.d.ts +36 -0
  3. package/dist/ssca-manager/src/services/hooks/useListIntegrationRepoScansMutation.js +15 -0
  4. package/dist/ssca-manager/src/services/hooks/useListScannerConfigurationIntegrationsQuery.d.ts +21 -0
  5. package/dist/ssca-manager/src/services/hooks/useListScannerConfigurationIntegrationsQuery.js +14 -0
  6. package/dist/ssca-manager/src/services/index.d.ts +11 -0
  7. package/dist/ssca-manager/src/services/index.js +2 -0
  8. package/dist/ssca-manager/src/services/requestBodies/IntegrationRepoScanListRequestBodyRequestBody.d.ts +2 -0
  9. package/dist/ssca-manager/src/services/requestBodies/IntegrationRepoScanListRequestBodyRequestBody.js +1 -0
  10. package/dist/ssca-manager/src/services/responses/IntegrationRepoScanListingResponseBodyResponse.d.ts +2 -0
  11. package/dist/ssca-manager/src/services/responses/IntegrationRepoScanListingResponseBodyResponse.js +1 -0
  12. package/dist/ssca-manager/src/services/responses/ScannerConfigurationIntegrationsResponseBodyResponse.d.ts +2 -0
  13. package/dist/ssca-manager/src/services/responses/ScannerConfigurationIntegrationsResponseBodyResponse.js +1 -0
  14. package/dist/ssca-manager/src/services/schemas/Integration.d.ts +23 -0
  15. package/dist/ssca-manager/src/services/schemas/IntegrationRepoScanListItem.d.ts +19 -0
  16. package/dist/ssca-manager/src/services/schemas/IntegrationRepoScanListItem.js +1 -0
  17. package/dist/ssca-manager/src/services/schemas/IntegrationRepoScanListRequest.d.ts +6 -0
  18. package/dist/ssca-manager/src/services/schemas/IntegrationRepoScanListRequest.js +4 -0
  19. package/dist/ssca-manager/src/services/schemas/RepoScanExecutionDto.d.ts +26 -0
  20. package/dist/ssca-manager/src/services/schemas/RepoScanExecutionDto.js +1 -0
  21. package/dist/ssca-manager/src/services/schemas/RepoScanExecutionStatus.d.ts +4 -0
  22. package/dist/ssca-manager/src/services/schemas/RepoScanExecutionStatus.js +4 -0
  23. package/dist/ssca-manager/src/services/schemas/UpdateIntegrationRspmRequest.d.ts +5 -1
  24. 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,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
+ }
@@ -205,12 +205,16 @@ export type { ListAttestationsErrorResponse, ListAttestationsMutationQueryParams
205
205
  export { listAttestations, useListAttestationsMutation } from './hooks/useListAttestationsMutation';
206
206
  export type { ListExemptionsErrorResponse, ListExemptionsOkResponse, ListExemptionsProps, ListExemptionsQueryQueryParams, ListExemptionsRequestBody, } from './hooks/useListExemptionsQuery';
207
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';
208
210
  export type { ListIntegrationsErrorResponse, ListIntegrationsOkResponse, ListIntegrationsProps, ListIntegrationsQueryPathParams, ListIntegrationsQueryQueryParams, } from './hooks/useListIntegrationsQuery';
209
211
  export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
210
212
  export type { ListRemediationsErrorResponse, ListRemediationsOkResponse, ListRemediationsProps, ListRemediationsQueryPathParams, ListRemediationsQueryQueryParams, ListRemediationsRequestBody, } from './hooks/useListRemediationsQuery';
211
213
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
212
214
  export type { ListRspmScannersErrorResponse, ListRspmScannersOkResponse, ListRspmScannersProps, ListRspmScannersQueryPathParams, ListRspmScannersQueryQueryParams, } from './hooks/useListRspmScannersQuery';
213
215
  export { listRspmScanners, useListRspmScannersQuery } from './hooks/useListRspmScannersQuery';
216
+ export type { ListScannerConfigurationIntegrationsErrorResponse, ListScannerConfigurationIntegrationsOkResponse, ListScannerConfigurationIntegrationsProps, ListScannerConfigurationIntegrationsQueryPathParams, } from './hooks/useListScannerConfigurationIntegrationsQuery';
217
+ export { listScannerConfigurationIntegrations, useListScannerConfigurationIntegrationsQuery, } from './hooks/useListScannerConfigurationIntegrationsQuery';
214
218
  export type { ListScannerConfigurationsErrorResponse, ListScannerConfigurationsOkResponse, ListScannerConfigurationsProps, ListScannerConfigurationsQueryPathParams, ListScannerConfigurationsQueryQueryParams, } from './hooks/useListScannerConfigurationsQuery';
215
219
  export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
216
220
  export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationPathParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationQueryParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeOkResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeProps, PostComplianceResultStatsEvaluationBreakdownArtifactTypeRequestBody, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
@@ -294,6 +298,7 @@ export type { ExecutionLimitRequestBodyRequestBody } from './requestBodies/Execu
294
298
  export type { FetchComplianceResultByArtifactRequestBodyRequestBody } from './requestBodies/FetchComplianceResultByArtifactRequestBodyRequestBody';
295
299
  export type { FetchComplianceResultRequestBodyRequestBody } from './requestBodies/FetchComplianceResultRequestBodyRequestBody';
296
300
  export type { FetchComplianeResultChecksStatsRequestBodyRequestBody } from './requestBodies/FetchComplianeResultChecksStatsRequestBodyRequestBody';
301
+ export type { IntegrationRepoScanListRequestBodyRequestBody } from './requestBodies/IntegrationRepoScanListRequestBodyRequestBody';
297
302
  export type { IntegrationStepConfigRequestBodyRequestBody } from './requestBodies/IntegrationStepConfigRequestBodyRequestBody';
298
303
  export type { ListSbomComponentsRequestBodyRequestBody } from './requestBodies/ListSbomComponentsRequestBodyRequestBody';
299
304
  export type { NormalisedSbomComponentRequestBodyRequestBody } from './requestBodies/NormalisedSbomComponentRequestBodyRequestBody';
@@ -382,6 +387,7 @@ export type { FetchIntegrationReposResponseBodyResponse } from './responses/Fetc
382
387
  export type { GetIntegrationSummaryResponseBodyResponse } from './responses/GetIntegrationSummaryResponseBodyResponse';
383
388
  export type { HarnessPipelineIntegrationResponseBodyResponse } from './responses/HarnessPipelineIntegrationResponseBodyResponse';
384
389
  export type { IntegrationListingResponseBodyResponse } from './responses/IntegrationListingResponseBodyResponse';
390
+ export type { IntegrationRepoScanListingResponseBodyResponse } from './responses/IntegrationRepoScanListingResponseBodyResponse';
385
391
  export type { IntegrationStepConfigResponseBodyResponse } from './responses/IntegrationStepConfigResponseBodyResponse';
386
392
  export type { LicenseDriftResponseBodyResponse } from './responses/LicenseDriftResponseBodyResponse';
387
393
  export type { ListConfigsResponseBodyResponse } from './responses/ListConfigsResponseBodyResponse';
@@ -410,6 +416,7 @@ export type { SaveResponseResponse } from './responses/SaveResponseResponse';
410
416
  export type { SbomProcessResponseBodyResponse } from './responses/SbomProcessResponseBodyResponse';
411
417
  export type { SbomScoreDetailV2ResponseBodyResponse } from './responses/SbomScoreDetailV2ResponseBodyResponse';
412
418
  export type { SbomScorecardResponseBodyResponse } from './responses/SbomScorecardResponseBodyResponse';
419
+ export type { ScannerConfigurationIntegrationsResponseBodyResponse } from './responses/ScannerConfigurationIntegrationsResponseBodyResponse';
413
420
  export type { ScannerConfigurationListingResponseBodyResponse } from './responses/ScannerConfigurationListingResponseBodyResponse';
414
421
  export type { TicketResponseBodyResponse } from './responses/TicketResponseBodyResponse';
415
422
  export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueResponseBodyResponse';
@@ -692,6 +699,8 @@ export type { Integration } from './schemas/Integration';
692
699
  export type { IntegrationConfig } from './schemas/IntegrationConfig';
693
700
  export type { IntegrationConfigRequestBody } from './schemas/IntegrationConfigRequestBody';
694
701
  export type { IntegrationCountsResponse } from './schemas/IntegrationCountsResponse';
702
+ export type { IntegrationRepoScanListItem } from './schemas/IntegrationRepoScanListItem';
703
+ export type { IntegrationRepoScanListRequest } from './schemas/IntegrationRepoScanListRequest';
695
704
  export type { IntegrationStepConfig } from './schemas/IntegrationStepConfig';
696
705
  export type { IntegrationStepConfigRequestBody } from './schemas/IntegrationStepConfigRequestBody';
697
706
  export type { IntegrationType } from './schemas/IntegrationType';
@@ -785,6 +794,8 @@ export type { RemediationTrackerUpdateResponseBody } from './schemas/Remediation
785
794
  export type { RemediationTrackersOverallSummaryResponseBody } from './schemas/RemediationTrackersOverallSummaryResponseBody';
786
795
  export type { RemediationWarning } from './schemas/RemediationWarning';
787
796
  export type { RepoDetailsDto } from './schemas/RepoDetailsDto';
797
+ export type { RepoScanExecutionDto } from './schemas/RepoScanExecutionDto';
798
+ export type { RepoScanExecutionStatus } from './schemas/RepoScanExecutionStatus';
788
799
  export type { ReportSbomAttestationVerificationRequestBody } from './schemas/ReportSbomAttestationVerificationRequestBody';
789
800
  export type { Repositories } from './schemas/Repositories';
790
801
  export type { RepositoriesSummary } from './schemas/RepositoriesSummary';
@@ -101,9 +101,11 @@ export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAge
101
101
  export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
102
102
  export { listAttestations, useListAttestationsMutation } from './hooks/useListAttestationsMutation';
103
103
  export { listExemptions, useListExemptionsQuery } from './hooks/useListExemptionsQuery';
104
+ export { listIntegrationRepoScans, useListIntegrationRepoScansMutation, } from './hooks/useListIntegrationRepoScansMutation';
104
105
  export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
105
106
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
106
107
  export { listRspmScanners, useListRspmScannersQuery } from './hooks/useListRspmScannersQuery';
108
+ export { listScannerConfigurationIntegrations, useListScannerConfigurationIntegrationsQuery, } from './hooks/useListScannerConfigurationIntegrationsQuery';
107
109
  export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
108
110
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
109
111
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
@@ -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,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.23",
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",