@harnessio/react-ssca-manager-client 0.86.6 → 0.86.8

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 (51) hide show
  1. package/dist/ssca-manager/src/services/hooks/useDeleteScannerConfigurationMutation.d.ts +20 -0
  2. package/dist/ssca-manager/src/services/hooks/useDeleteScannerConfigurationMutation.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/useFetchReposInIntegrationQuery.d.ts +4 -0
  4. package/dist/ssca-manager/src/services/hooks/useGetIntegrationCountsQuery.d.ts +20 -0
  5. package/dist/ssca-manager/src/services/hooks/useGetIntegrationCountsQuery.js +14 -0
  6. package/dist/ssca-manager/src/services/hooks/useGetPipelineArtifactListV2Query.d.ts +1 -1
  7. package/dist/ssca-manager/src/services/hooks/useGetPipelineArtifactListV2Query.js +1 -1
  8. package/dist/ssca-manager/src/services/hooks/useGetScannerConfigurationQuery.d.ts +21 -0
  9. package/dist/ssca-manager/src/services/hooks/useGetScannerConfigurationQuery.js +14 -0
  10. package/dist/ssca-manager/src/services/hooks/useListIntegrationsQuery.d.ts +2 -0
  11. package/dist/ssca-manager/src/services/hooks/useListRspmScannersQuery.d.ts +27 -0
  12. package/dist/ssca-manager/src/services/hooks/useListRspmScannersQuery.js +14 -0
  13. package/dist/ssca-manager/src/services/hooks/useListScannerConfigurationsQuery.d.ts +13 -3
  14. package/dist/ssca-manager/src/services/index.d.ts +20 -1
  15. package/dist/ssca-manager/src/services/index.js +4 -0
  16. package/dist/ssca-manager/src/services/responses/ArtifactListingResponsePipelinePaginatedBodyResponse.d.ts +2 -2
  17. package/dist/ssca-manager/src/services/responses/ScannerConfigurationListingResponseBodyResponse.d.ts +2 -0
  18. package/dist/ssca-manager/src/services/schemas/ArtifactListingPipelineResponseV2.d.ts +9 -0
  19. package/dist/ssca-manager/src/services/schemas/ArtifactListingPipelineResponseV2.js +1 -0
  20. package/dist/ssca-manager/src/services/schemas/CreateScannerConfigurationRequest.d.ts +2 -1
  21. package/dist/ssca-manager/src/services/schemas/CreateScannerConfigurationRequest.js +0 -3
  22. package/dist/ssca-manager/src/services/schemas/ExecutionContextV2.d.ts +1 -1
  23. package/dist/ssca-manager/src/services/schemas/ExecutionDetail.d.ts +2 -0
  24. package/dist/ssca-manager/src/services/schemas/ExecutionType.d.ts +1 -1
  25. package/dist/ssca-manager/src/services/schemas/FetchReposType.d.ts +5 -0
  26. package/dist/ssca-manager/src/services/schemas/FetchReposType.js +4 -0
  27. package/dist/ssca-manager/src/services/schemas/IntegrationCountsResponse.d.ts +14 -0
  28. package/dist/ssca-manager/src/services/schemas/IntegrationCountsResponse.js +4 -0
  29. package/dist/ssca-manager/src/services/schemas/IntegrationType.d.ts +3 -0
  30. package/dist/ssca-manager/src/services/schemas/JenkinsExecutionContext.d.ts +17 -0
  31. package/dist/ssca-manager/src/services/schemas/JenkinsExecutionContext.js +1 -0
  32. package/dist/ssca-manager/src/services/schemas/JenkinsExecutionDetail.d.ts +16 -0
  33. package/dist/ssca-manager/src/services/schemas/JenkinsExecutionDetail.js +1 -0
  34. package/dist/ssca-manager/src/services/schemas/JenkinsRunner.d.ts +6 -0
  35. package/dist/ssca-manager/src/services/schemas/JenkinsRunner.js +4 -0
  36. package/dist/ssca-manager/src/services/schemas/JenkinsRunnerDetail.d.ts +11 -0
  37. package/dist/ssca-manager/src/services/schemas/JenkinsRunnerDetail.js +1 -0
  38. package/dist/ssca-manager/src/services/schemas/JenkinsScmRepo.d.ts +5 -0
  39. package/dist/ssca-manager/src/services/schemas/JenkinsScmRepo.js +4 -0
  40. package/dist/ssca-manager/src/services/schemas/RspmScannerId.d.ts +4 -0
  41. package/dist/ssca-manager/src/services/schemas/RspmScannerId.js +4 -0
  42. package/dist/ssca-manager/src/services/schemas/RspmScannerInfo.d.ts +8 -0
  43. package/dist/ssca-manager/src/services/schemas/RspmScannerInfo.js +1 -0
  44. package/dist/ssca-manager/src/services/schemas/RspmScannerType.d.ts +4 -0
  45. package/dist/ssca-manager/src/services/schemas/RspmScannerType.js +4 -0
  46. package/dist/ssca-manager/src/services/schemas/RunnerDetail.d.ts +1 -1
  47. package/dist/ssca-manager/src/services/schemas/ScannerConfiguration.d.ts +2 -1
  48. package/dist/ssca-manager/src/services/schemas/ScannerConfiguration.js +0 -3
  49. package/package.json +1 -1
  50. package/dist/ssca-manager/src/services/schemas/ScannerConfigurationListResponse.d.ts +0 -4
  51. /package/dist/ssca-manager/src/services/{schemas/ScannerConfigurationListResponse.js → responses/ScannerConfigurationListingResponseBodyResponse.js} +0 -0
@@ -0,0 +1,20 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteScannerConfigurationMutationPathParams {
5
+ org: string;
6
+ project: string;
7
+ configId: string;
8
+ }
9
+ export interface DeleteScannerConfigurationMutationHeaderParams {
10
+ 'Harness-Account': string;
11
+ }
12
+ export type DeleteScannerConfigurationOkResponse = ResponseWithPagination<unknown>;
13
+ export type DeleteScannerConfigurationErrorResponse = unknown;
14
+ export interface DeleteScannerConfigurationProps extends DeleteScannerConfigurationMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteScannerConfigurationMutationHeaderParams>, 'url'> {
15
+ }
16
+ export declare function deleteScannerConfiguration(props: DeleteScannerConfigurationProps): Promise<DeleteScannerConfigurationOkResponse>;
17
+ /**
18
+ * Delete a scanner configuration
19
+ */
20
+ export declare function useDeleteScannerConfigurationMutation(options?: Omit<UseMutationOptions<DeleteScannerConfigurationOkResponse, DeleteScannerConfigurationErrorResponse, DeleteScannerConfigurationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteScannerConfigurationOkResponse, unknown, DeleteScannerConfigurationProps, 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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function deleteScannerConfiguration(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/scanner-configurations/${props.configId}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete a scanner configuration
11
+ */
12
+ export function useDeleteScannerConfigurationMutation(options) {
13
+ return useMutation((mutateProps) => deleteScannerConfiguration(mutateProps), options);
14
+ }
@@ -17,6 +17,10 @@ export interface FetchReposInIntegrationQueryQueryParams {
17
17
  */
18
18
  page?: number;
19
19
  search_term?: string;
20
+ /**
21
+ * @default "PROJECT"
22
+ */
23
+ scope?: 'ACCOUNT' | 'ORGANIZATION' | 'PROJECT';
20
24
  }
21
25
  export interface FetchReposInIntegrationQueryHeaderParams {
22
26
  'Harness-Account': string;
@@ -0,0 +1,20 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { IntegrationCountsResponse } from '../schemas/IntegrationCountsResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetIntegrationCountsQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ }
9
+ export interface GetIntegrationCountsQueryHeaderParams {
10
+ 'Harness-Account': string;
11
+ }
12
+ export type GetIntegrationCountsOkResponse = ResponseWithPagination<IntegrationCountsResponse>;
13
+ export type GetIntegrationCountsErrorResponse = unknown;
14
+ export interface GetIntegrationCountsProps extends GetIntegrationCountsQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetIntegrationCountsQueryHeaderParams>, 'url'> {
15
+ }
16
+ export declare function getIntegrationCounts(props: GetIntegrationCountsProps): Promise<GetIntegrationCountsOkResponse>;
17
+ /**
18
+ * RSPM dashboard counts at project scope
19
+ */
20
+ export declare function useGetIntegrationCountsQuery(props: GetIntegrationCountsProps, options?: Omit<UseQueryOptions<GetIntegrationCountsOkResponse, GetIntegrationCountsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetIntegrationCountsOkResponse, 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 getIntegrationCounts(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/integration/counts`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * RSPM dashboard counts at project scope
11
+ */
12
+ export function useGetIntegrationCountsQuery(props, options) {
13
+ return useQuery(['getIntegrationCounts', props.org, props.project], ({ signal }) => getIntegrationCounts(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -31,7 +31,7 @@ export interface GetPipelineArtifactListV2Props extends GetPipelineArtifactListV
31
31
  }
32
32
  export declare function getPipelineArtifactListV2(props: GetPipelineArtifactListV2Props): Promise<GetPipelineArtifactListV2OkResponse>;
33
33
  /**
34
- * V2 paginated variant of getPipelineArtifactList. Returns the same artifact listing payload with pagination metadata in response headers. Does not change the behavior of the existing v1 /artifacts endpoint.
34
+ * V2 paginated variant of getPipelineArtifactList. Returns the v1 artifact listing payload plus execution-scoped sto_issue_count, with pagination metadata in response headers. Does not change the behavior of the existing v1 /artifacts endpoint.
35
35
  *
36
36
  */
37
37
  export declare function useGetPipelineArtifactListV2Query(props: GetPipelineArtifactListV2Props, options?: Omit<UseQueryOptions<GetPipelineArtifactListV2OkResponse, GetPipelineArtifactListV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPipelineArtifactListV2OkResponse, unknown>;
@@ -7,7 +7,7 @@ export function getPipelineArtifactListV2(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/orgs/${props.org}/projects/${props.project}/pipelines/${props.pipeline}/executions/${props.execution}/artifacts`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * V2 paginated variant of getPipelineArtifactList. Returns the same artifact listing payload with pagination metadata in response headers. Does not change the behavior of the existing v1 /artifacts endpoint.
10
+ * V2 paginated variant of getPipelineArtifactList. Returns the v1 artifact listing payload plus execution-scoped sto_issue_count, with pagination metadata in response headers. Does not change the behavior of the existing v1 /artifacts endpoint.
11
11
  *
12
12
  */
13
13
  export function useGetPipelineArtifactListV2Query(props, options) {
@@ -0,0 +1,21 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ScannerConfiguration } from '../schemas/ScannerConfiguration';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetScannerConfigurationQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ configId: string;
9
+ }
10
+ export interface GetScannerConfigurationQueryHeaderParams {
11
+ 'Harness-Account': string;
12
+ }
13
+ export type GetScannerConfigurationOkResponse = ResponseWithPagination<ScannerConfiguration>;
14
+ export type GetScannerConfigurationErrorResponse = unknown;
15
+ export interface GetScannerConfigurationProps extends GetScannerConfigurationQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetScannerConfigurationQueryHeaderParams>, 'url'> {
16
+ }
17
+ export declare function getScannerConfiguration(props: GetScannerConfigurationProps): Promise<GetScannerConfigurationOkResponse>;
18
+ /**
19
+ * Get a scanner configuration
20
+ */
21
+ export declare function useGetScannerConfigurationQuery(props: GetScannerConfigurationProps, options?: Omit<UseQueryOptions<GetScannerConfigurationOkResponse, GetScannerConfigurationErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetScannerConfigurationOkResponse, 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 getScannerConfiguration(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/scanner-configurations/${props.configId}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get a scanner configuration
11
+ */
12
+ export function useGetScannerConfigurationQuery(props, options) {
13
+ return useQuery(['getScannerConfiguration', props.org, props.project, props.configId], ({ signal }) => getScannerConfiguration(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { IntegrationListingResponseBodyResponse } from '../responses/IntegrationListingResponseBodyResponse';
3
+ import type { IntegrationType } from '../schemas/IntegrationType';
3
4
  import type { ResponseWithPagination } from '../helpers';
4
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
6
  export interface ListIntegrationsQueryPathParams {
@@ -20,6 +21,7 @@ export interface ListIntegrationsQueryQueryParams {
20
21
  */
21
22
  page?: number;
22
23
  status?: 'ACTIVE' | 'INACTIVE';
24
+ type?: IntegrationType[];
23
25
  search_term?: string;
24
26
  /**
25
27
  * @default "last_scan"
@@ -0,0 +1,27 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { RspmScannerInfo } from '../schemas/RspmScannerInfo';
3
+ import type { RspmScannerId } from '../schemas/RspmScannerId';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListRspmScannersQueryPathParams {
7
+ org: string;
8
+ project: string;
9
+ }
10
+ export interface ListRspmScannersQueryQueryParams {
11
+ scanner_id?: RspmScannerId;
12
+ search_term?: string;
13
+ scanner_types?: string;
14
+ }
15
+ export interface ListRspmScannersQueryHeaderParams {
16
+ 'Harness-Account': string;
17
+ }
18
+ export type ListRspmScannersOkResponse = ResponseWithPagination<RspmScannerInfo[]>;
19
+ export type ListRspmScannersErrorResponse = unknown;
20
+ export interface ListRspmScannersProps extends ListRspmScannersQueryPathParams, Omit<FetcherOptions<ListRspmScannersQueryQueryParams, unknown, ListRspmScannersQueryHeaderParams>, 'url'> {
21
+ queryParams: ListRspmScannersQueryQueryParams;
22
+ }
23
+ export declare function listRspmScanners(props: ListRspmScannersProps): Promise<ListRspmScannersOkResponse>;
24
+ /**
25
+ * List supported RSPM scanners
26
+ */
27
+ export declare function useListRspmScannersQuery(props: ListRspmScannersProps, options?: Omit<UseQueryOptions<ListRspmScannersOkResponse, ListRspmScannersErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRspmScannersOkResponse, 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 listRspmScanners(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/rspm-scanners`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List supported RSPM scanners
11
+ */
12
+ export function useListRspmScannersQuery(props, options) {
13
+ return useQuery(['listRspmScanners', props.org, props.project, props.queryParams], ({ signal }) => listRspmScanners(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ScannerConfigurationListResponse } from '../schemas/ScannerConfigurationListResponse';
2
+ import type { ScannerConfigurationListingResponseBodyResponse } from '../responses/ScannerConfigurationListingResponseBodyResponse';
3
+ import type { RspmScannerId } from '../schemas/RspmScannerId';
3
4
  import type { ResponseWithPagination } from '../helpers';
4
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
6
  export interface ListScannerConfigurationsQueryPathParams {
@@ -7,12 +8,21 @@ export interface ListScannerConfigurationsQueryPathParams {
7
8
  project: string;
8
9
  }
9
10
  export interface ListScannerConfigurationsQueryQueryParams {
10
- scanner_id?: string;
11
+ /**
12
+ * @default 30
13
+ */
14
+ limit?: number;
15
+ /**
16
+ * @default 0
17
+ */
18
+ page?: number;
19
+ scanner_id?: RspmScannerId;
20
+ search_term?: string;
11
21
  }
12
22
  export interface ListScannerConfigurationsQueryHeaderParams {
13
23
  'Harness-Account': string;
14
24
  }
15
- export type ListScannerConfigurationsOkResponse = ResponseWithPagination<ScannerConfigurationListResponse>;
25
+ export type ListScannerConfigurationsOkResponse = ResponseWithPagination<ScannerConfigurationListingResponseBodyResponse>;
16
26
  export type ListScannerConfigurationsErrorResponse = unknown;
17
27
  export interface ListScannerConfigurationsProps extends ListScannerConfigurationsQueryPathParams, Omit<FetcherOptions<ListScannerConfigurationsQueryQueryParams, unknown, ListScannerConfigurationsQueryHeaderParams>, 'url'> {
18
28
  queryParams: ListScannerConfigurationsQueryQueryParams;
@@ -33,6 +33,8 @@ export type { CreateTicketErrorResponse, CreateTicketMutationPathParams, CreateT
33
33
  export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
34
34
  export type { DeleteIntegrationErrorResponse, DeleteIntegrationMutationPathParams, DeleteIntegrationOkResponse, DeleteIntegrationProps, } from './hooks/useDeleteIntegrationMutation';
35
35
  export { deleteIntegration, useDeleteIntegrationMutation, } from './hooks/useDeleteIntegrationMutation';
36
+ export type { DeleteScannerConfigurationErrorResponse, DeleteScannerConfigurationMutationPathParams, DeleteScannerConfigurationOkResponse, DeleteScannerConfigurationProps, } from './hooks/useDeleteScannerConfigurationMutation';
37
+ export { deleteScannerConfiguration, useDeleteScannerConfigurationMutation, } from './hooks/useDeleteScannerConfigurationMutation';
36
38
  export type { DownloadAttestationErrorResponse, DownloadAttestationOkResponse, DownloadAttestationProps, DownloadAttestationQueryPathParams, DownloadAttestationQueryQueryParams, } from './hooks/useDownloadAttestationQuery';
37
39
  export { downloadAttestation, useDownloadAttestationQuery, } from './hooks/useDownloadAttestationQuery';
38
40
  export type { DownloadSbomErrorResponse, DownloadSbomOkResponse, DownloadSbomProps, DownloadSbomQueryPathParams, DownloadSbomQueryQueryParams, } from './hooks/useDownloadSbomQuery';
@@ -147,6 +149,8 @@ export type { GetExemptionErrorResponse, GetExemptionOkResponse, GetExemptionPro
147
149
  export { getExemption, useGetExemptionQuery } from './hooks/useGetExemptionQuery';
148
150
  export type { GetHarnessPipelineIntegrationErrorResponse, GetHarnessPipelineIntegrationOkResponse, GetHarnessPipelineIntegrationProps, GetHarnessPipelineIntegrationQueryPathParams, } from './hooks/useGetHarnessPipelineIntegrationQuery';
149
151
  export { getHarnessPipelineIntegration, useGetHarnessPipelineIntegrationQuery, } from './hooks/useGetHarnessPipelineIntegrationQuery';
152
+ export type { GetIntegrationCountsErrorResponse, GetIntegrationCountsOkResponse, GetIntegrationCountsProps, GetIntegrationCountsQueryPathParams, } from './hooks/useGetIntegrationCountsQuery';
153
+ export { getIntegrationCounts, useGetIntegrationCountsQuery, } from './hooks/useGetIntegrationCountsQuery';
150
154
  export type { GetIntegrationReposErrorResponse, GetIntegrationReposOkResponse, GetIntegrationReposProps, GetIntegrationReposQueryPathParams, } from './hooks/useGetIntegrationReposQuery';
151
155
  export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
152
156
  export type { GetIntegrationsConfigErrorResponse, GetIntegrationsConfigOkResponse, GetIntegrationsConfigProps, GetIntegrationsConfigQueryQueryParams, } from './hooks/useGetIntegrationsConfigQuery';
@@ -177,6 +181,8 @@ export type { GetSbomScoreDetailV2ErrorResponse, GetSbomScoreDetailV2OkResponse,
177
181
  export { getSbomScoreDetailV2, useGetSbomScoreDetailV2Query, } from './hooks/useGetSbomScoreDetailV2Query';
178
182
  export type { GetSbomScorecardErrorResponse, GetSbomScorecardOkResponse, GetSbomScorecardProps, GetSbomScorecardQueryPathParams, } from './hooks/useGetSbomScorecardQuery';
179
183
  export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
184
+ export type { GetScannerConfigurationErrorResponse, GetScannerConfigurationOkResponse, GetScannerConfigurationProps, GetScannerConfigurationQueryPathParams, } from './hooks/useGetScannerConfigurationQuery';
185
+ export { getScannerConfiguration, useGetScannerConfigurationQuery, } from './hooks/useGetScannerConfigurationQuery';
180
186
  export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSummaryProps, GetSscaSummaryQueryPathParams, } from './hooks/useGetSscaSummaryQuery';
181
187
  export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
182
188
  export type { ImportLicenseFamilyConfigErrorResponse, ImportLicenseFamilyConfigMutationPathParams, ImportLicenseFamilyConfigOkResponse, ImportLicenseFamilyConfigProps, ImportLicenseFamilyConfigRequestBody, } from './hooks/useImportLicenseFamilyConfigMutation';
@@ -193,6 +199,8 @@ export type { ListIntegrationsErrorResponse, ListIntegrationsOkResponse, ListInt
193
199
  export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
194
200
  export type { ListRemediationsErrorResponse, ListRemediationsOkResponse, ListRemediationsProps, ListRemediationsQueryPathParams, ListRemediationsQueryQueryParams, ListRemediationsRequestBody, } from './hooks/useListRemediationsQuery';
195
201
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
202
+ export type { ListRspmScannersErrorResponse, ListRspmScannersOkResponse, ListRspmScannersProps, ListRspmScannersQueryPathParams, ListRspmScannersQueryQueryParams, } from './hooks/useListRspmScannersQuery';
203
+ export { listRspmScanners, useListRspmScannersQuery } from './hooks/useListRspmScannersQuery';
196
204
  export type { ListScannerConfigurationsErrorResponse, ListScannerConfigurationsOkResponse, ListScannerConfigurationsProps, ListScannerConfigurationsQueryPathParams, ListScannerConfigurationsQueryQueryParams, } from './hooks/useListScannerConfigurationsQuery';
197
205
  export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
198
206
  export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationPathParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationQueryParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeOkResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeProps, PostComplianceResultStatsEvaluationBreakdownArtifactTypeRequestBody, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
@@ -384,6 +392,7 @@ export type { SaveResponseResponse } from './responses/SaveResponseResponse';
384
392
  export type { SbomProcessResponseBodyResponse } from './responses/SbomProcessResponseBodyResponse';
385
393
  export type { SbomScoreDetailV2ResponseBodyResponse } from './responses/SbomScoreDetailV2ResponseBodyResponse';
386
394
  export type { SbomScorecardResponseBodyResponse } from './responses/SbomScorecardResponseBodyResponse';
395
+ export type { ScannerConfigurationListingResponseBodyResponse } from './responses/ScannerConfigurationListingResponseBodyResponse';
387
396
  export type { TicketResponseBodyResponse } from './responses/TicketResponseBodyResponse';
388
397
  export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueResponseBodyResponse';
389
398
  export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIntegrationResponseBodyResponse';
@@ -439,6 +448,7 @@ export type { ArtifactDeploymentViewResponse } from './schemas/ArtifactDeploymen
439
448
  export type { ArtifactDetailResponse } from './schemas/ArtifactDetailResponse';
440
449
  export type { ArtifactListingPipelineRequestBody } from './schemas/ArtifactListingPipelineRequestBody';
441
450
  export type { ArtifactListingPipelineResponse } from './schemas/ArtifactListingPipelineResponse';
451
+ export type { ArtifactListingPipelineResponseV2 } from './schemas/ArtifactListingPipelineResponseV2';
442
452
  export type { ArtifactListingRequestBody } from './schemas/ArtifactListingRequestBody';
443
453
  export type { ArtifactListingResponse } from './schemas/ArtifactListingResponse';
444
454
  export type { ArtifactListingResponseV2 } from './schemas/ArtifactListingResponseV2';
@@ -632,6 +642,7 @@ export type { ExemptionStatusCounts } from './schemas/ExemptionStatusCounts';
632
642
  export type { ExemptionStatusDto } from './schemas/ExemptionStatusDto';
633
643
  export type { ExemptionVersionFilter } from './schemas/ExemptionVersionFilter';
634
644
  export type { FetchComplianceResultByArtifactResponseBody } from './schemas/FetchComplianceResultByArtifactResponseBody';
645
+ export type { FetchReposType } from './schemas/FetchReposType';
635
646
  export type { GetIntegrationSummaryResponse } from './schemas/GetIntegrationSummaryResponse';
636
647
  export type { GithubExecutionContext } from './schemas/GithubExecutionContext';
637
648
  export type { GithubExecutionDetail } from './schemas/GithubExecutionDetail';
@@ -656,6 +667,7 @@ export type { InfraLayout } from './schemas/InfraLayout';
656
667
  export type { Integration } from './schemas/Integration';
657
668
  export type { IntegrationConfig } from './schemas/IntegrationConfig';
658
669
  export type { IntegrationConfigRequestBody } from './schemas/IntegrationConfigRequestBody';
670
+ export type { IntegrationCountsResponse } from './schemas/IntegrationCountsResponse';
659
671
  export type { IntegrationStepConfig } from './schemas/IntegrationStepConfig';
660
672
  export type { IntegrationStepConfigRequestBody } from './schemas/IntegrationStepConfigRequestBody';
661
673
  export type { IntegrationType } from './schemas/IntegrationType';
@@ -668,6 +680,11 @@ export type { InternalIdentificationResult } from './schemas/InternalIdentificat
668
680
  export type { InternalRecommendedVersion } from './schemas/InternalRecommendedVersion';
669
681
  export type { InternalStepExecution } from './schemas/InternalStepExecution';
670
682
  export type { InternalStoreIdentificationResultRequest } from './schemas/InternalStoreIdentificationResultRequest';
683
+ export type { JenkinsExecutionContext } from './schemas/JenkinsExecutionContext';
684
+ export type { JenkinsExecutionDetail } from './schemas/JenkinsExecutionDetail';
685
+ export type { JenkinsRunner } from './schemas/JenkinsRunner';
686
+ export type { JenkinsRunnerDetail } from './schemas/JenkinsRunnerDetail';
687
+ export type { JenkinsScmRepo } from './schemas/JenkinsScmRepo';
671
688
  export type { LayerType } from './schemas/LayerType';
672
689
  export type { LicenseDrift } from './schemas/LicenseDrift';
673
690
  export type { LicenseDriftSummary } from './schemas/LicenseDriftSummary';
@@ -748,6 +765,9 @@ export type { RepositoryArtifactMetadata } from './schemas/RepositoryArtifactMet
748
765
  export type { RepositoryPlatform } from './schemas/RepositoryPlatform';
749
766
  export type { RepositorySpec } from './schemas/RepositorySpec';
750
767
  export type { RiskAndCompliance } from './schemas/RiskAndCompliance';
768
+ export type { RspmScannerId } from './schemas/RspmScannerId';
769
+ export type { RspmScannerInfo } from './schemas/RspmScannerInfo';
770
+ export type { RspmScannerType } from './schemas/RspmScannerType';
751
771
  export type { RunnerDetail } from './schemas/RunnerDetail';
752
772
  export type { SaveIntegrityVerificationRequestBody } from './schemas/SaveIntegrityVerificationRequestBody';
753
773
  export type { SaveOrchestrationRequest } from './schemas/SaveOrchestrationRequest';
@@ -772,7 +792,6 @@ export type { SbomScoreSubScores } from './schemas/SbomScoreSubScores';
772
792
  export type { SbomScorecardRequestBody } from './schemas/SbomScorecardRequestBody';
773
793
  export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
774
794
  export type { ScannerConfiguration } from './schemas/ScannerConfiguration';
775
- export type { ScannerConfigurationListResponse } from './schemas/ScannerConfigurationListResponse';
776
795
  export type { Scorecard } from './schemas/Scorecard';
777
796
  export type { ScorecardInfo } from './schemas/ScorecardInfo';
778
797
  export type { ScorecardV2 } from './schemas/ScorecardV2';
@@ -15,6 +15,7 @@ export { createRemediationTracker, useCreateRemediationTrackerMutation, } from '
15
15
  export { createScannerConfiguration, useCreateScannerConfigurationMutation, } from './hooks/useCreateScannerConfigurationMutation';
16
16
  export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
17
17
  export { deleteIntegration, useDeleteIntegrationMutation, } from './hooks/useDeleteIntegrationMutation';
18
+ export { deleteScannerConfiguration, useDeleteScannerConfigurationMutation, } from './hooks/useDeleteScannerConfigurationMutation';
18
19
  export { downloadAttestation, useDownloadAttestationQuery, } from './hooks/useDownloadAttestationQuery';
19
20
  export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
20
21
  export { excludeArtifact, useExcludeArtifactMutation } from './hooks/useExcludeArtifactMutation';
@@ -72,6 +73,7 @@ export { getEolArtifactSourceComponentTicket, useGetEolArtifactSourceComponentTi
72
73
  export { getEolAutoTicketConfig, useGetEolAutoTicketConfigQuery, } from './hooks/useGetEolAutoTicketConfigQuery';
73
74
  export { getExemption, useGetExemptionQuery } from './hooks/useGetExemptionQuery';
74
75
  export { getHarnessPipelineIntegration, useGetHarnessPipelineIntegrationQuery, } from './hooks/useGetHarnessPipelineIntegrationQuery';
76
+ export { getIntegrationCounts, useGetIntegrationCountsQuery, } from './hooks/useGetIntegrationCountsQuery';
75
77
  export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
76
78
  export { getIntegrationsConfig, useGetIntegrationsConfigQuery, } from './hooks/useGetIntegrationsConfigQuery';
77
79
  export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
@@ -87,6 +89,7 @@ export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/u
87
89
  export { getRepoRulesEvaluationTrend, useGetRepoRulesEvaluationTrendQuery, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
88
90
  export { getSbomScoreDetailV2, useGetSbomScoreDetailV2Query, } from './hooks/useGetSbomScoreDetailV2Query';
89
91
  export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
92
+ export { getScannerConfiguration, useGetScannerConfigurationQuery, } from './hooks/useGetScannerConfigurationQuery';
90
93
  export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
91
94
  export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
92
95
  export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAgentStatusesQuery';
@@ -95,6 +98,7 @@ export { listAttestations, useListAttestationsMutation } from './hooks/useListAt
95
98
  export { listExemptions, useListExemptionsQuery } from './hooks/useListExemptionsQuery';
96
99
  export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
97
100
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
101
+ export { listRspmScanners, useListRspmScannersQuery } from './hooks/useListRspmScannersQuery';
98
102
  export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
99
103
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
100
104
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
@@ -1,2 +1,2 @@
1
- import type { ArtifactListingPipelineResponse } from '../schemas/ArtifactListingPipelineResponse';
2
- export type ArtifactListingResponsePipelinePaginatedBodyResponse = ArtifactListingPipelineResponse[];
1
+ import type { ArtifactListingPipelineResponseV2 } from '../schemas/ArtifactListingPipelineResponseV2';
2
+ export type ArtifactListingResponsePipelinePaginatedBodyResponse = ArtifactListingPipelineResponseV2[];
@@ -0,0 +1,2 @@
1
+ import type { ScannerConfiguration } from '../schemas/ScannerConfiguration';
2
+ export type ScannerConfigurationListingResponseBodyResponse = ScannerConfiguration[];
@@ -0,0 +1,9 @@
1
+ import type { StoIssueCount } from '../schemas/StoIssueCount';
2
+ import type { ArtifactListingPipelineResponse } from '../schemas/ArtifactListingPipelineResponse';
3
+ export interface ArtifactListingPipelineResponseV2 extends ArtifactListingPipelineResponse {
4
+ /**
5
+ * Vulnerability counts for this artifact in this pipeline execution. STO source uses the VULNERABILITY_SCAN activity for this execution. INTERNAL source is computed from this execution's SBOM orchestration.
6
+ *
7
+ */
8
+ sto_issue_count?: StoIssueCount;
9
+ }
@@ -1,7 +1,8 @@
1
+ import type { RspmScannerId } from '../schemas/RspmScannerId';
1
2
  export interface CreateScannerConfigurationRequest {
2
3
  config?: {
3
4
  [key: string]: string;
4
5
  };
5
6
  name: string;
6
- scanner_id: string;
7
+ scanner_id: RspmScannerId;
7
8
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -2,5 +2,5 @@
2
2
  * Details of the Execution Context
3
3
  */
4
4
  export interface ExecutionContextV2 {
5
- type: 'github' | 'gitlab' | 'harness';
5
+ type: 'github' | 'gitlab' | 'harness' | 'jenkins';
6
6
  }
@@ -1,10 +1,12 @@
1
1
  import type { GithubExecutionDetail } from '../schemas/GithubExecutionDetail';
2
2
  import type { GitlabExecutionDetail } from '../schemas/GitlabExecutionDetail';
3
3
  import type { HarnessExecutionDetail } from '../schemas/HarnessExecutionDetail';
4
+ import type { JenkinsExecutionDetail } from '../schemas/JenkinsExecutionDetail';
4
5
  import type { ExecutionType } from '../schemas/ExecutionType';
5
6
  export interface ExecutionDetail {
6
7
  github?: GithubExecutionDetail;
7
8
  gitlab?: GitlabExecutionDetail;
8
9
  harness?: HarnessExecutionDetail;
10
+ jenkins?: JenkinsExecutionDetail;
9
11
  type: ExecutionType;
10
12
  }
@@ -1 +1 @@
1
- export type ExecutionType = 'github' | 'gitlab' | 'harness';
1
+ export type ExecutionType = 'github' | 'gitlab' | 'harness' | 'jenkins';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * SCM source type for connector-/installation-based fetch-repos
3
+ */
4
+ export interface FetchReposType {
5
+ }
@@ -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,14 @@
1
+ export interface IntegrationCountsResponse {
2
+ /**
3
+ * Counts grouped by integration type (keys match stored type values)
4
+ */
5
+ integrations_by_type: {
6
+ [key: string]: number;
7
+ };
8
+ /**
9
+ * Counts grouped by scanner_id (keys match stored scanner_id values)
10
+ */
11
+ scanner_configs_by_scanner_id: {
12
+ [key: string]: number;
13
+ };
14
+ }
@@ -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 {};
@@ -1,2 +1,5 @@
1
+ /**
2
+ * Supported SCM integration types. Add new providers here when they ship; GitLab is planned for RSPM and is not a valid value yet.
3
+ */
1
4
  export interface IntegrationType {
2
5
  }
@@ -0,0 +1,17 @@
1
+ import type { RunnerDetail } from '../schemas/RunnerDetail';
2
+ import type { JenkinsScmRepo } from '../schemas/JenkinsScmRepo';
3
+ import type { ExecutionContextV2 } from '../schemas/ExecutionContextV2';
4
+ export interface JenkinsExecutionContext<T0 extends RunnerDetail = RunnerDetail> extends ExecutionContextV2 {
5
+ build_id?: string;
6
+ build_number?: string;
7
+ build_url?: string;
8
+ jenkins_url?: string;
9
+ job_name?: string;
10
+ runner_detail?: T0;
11
+ scm_repo?: JenkinsScmRepo;
12
+ /**
13
+ * This specifies the type of context
14
+ */
15
+ type: 'jenkins';
16
+ workspace?: string;
17
+ }
@@ -0,0 +1,16 @@
1
+ import type { JenkinsRunner } from '../schemas/JenkinsRunner';
2
+ import type { JenkinsScmRepo } from '../schemas/JenkinsScmRepo';
3
+ /**
4
+ * Jenkins Pipeline Execution Details
5
+ */
6
+ export interface JenkinsExecutionDetail {
7
+ build_id: string;
8
+ build_number?: string;
9
+ build_url?: string;
10
+ jenkins_url: string;
11
+ job_name: string;
12
+ runner_detail?: JenkinsRunner;
13
+ scm_repo?: JenkinsScmRepo;
14
+ type: 'jenkins';
15
+ workspace?: string;
16
+ }
@@ -0,0 +1,6 @@
1
+ export interface JenkinsRunner {
2
+ node_name?: string;
3
+ trigger_type?: string;
4
+ triggered_by?: string;
5
+ triggered_by_id?: string;
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,11 @@
1
+ import type { RunnerDetail } from '../schemas/RunnerDetail';
2
+ export interface JenkinsRunnerDetail extends RunnerDetail {
3
+ node_name?: string;
4
+ trigger_type?: string;
5
+ triggered_by?: string;
6
+ triggered_by_id?: string;
7
+ /**
8
+ * This specifies the type of Runner
9
+ */
10
+ type?: 'jenkins';
11
+ }
@@ -0,0 +1,5 @@
1
+ export interface JenkinsScmRepo {
2
+ branch?: string;
3
+ commit_sha?: string;
4
+ url?: string;
5
+ }
@@ -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,4 @@
1
+ /**
2
+ * Supported STO RSPM sequential scanner identifiers
3
+ */
4
+ export type RspmScannerId = 'CHECKMARX_ONE' | 'CHECKOV' | 'SNYK' | 'WIZ';
@@ -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,8 @@
1
+ import type { RspmScannerId } from '../schemas/RspmScannerId';
2
+ import type { RspmScannerType } from '../schemas/RspmScannerType';
3
+ export interface RspmScannerInfo {
4
+ required_config_keys: string[];
5
+ scanner_id: RspmScannerId;
6
+ scanner_types?: RspmScannerType[];
7
+ supported_config_keys: string[];
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Scan types supported by an RSPM scanner (derived from STO step categories, excluding DAST and Container)
3
+ */
4
+ export type RspmScannerType = 'IAC' | 'SAST' | 'SCA' | 'SECRET';
@@ -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 {};
@@ -1,3 +1,3 @@
1
1
  export interface RunnerDetail {
2
- type?: 'github' | 'gitlab' | 'harness';
2
+ type?: 'github' | 'gitlab' | 'harness' | 'jenkins';
3
3
  }
@@ -1,3 +1,4 @@
1
+ import type { RspmScannerId } from '../schemas/RspmScannerId';
1
2
  export interface ScannerConfiguration {
2
3
  config?: {
3
4
  [key: string]: string;
@@ -9,5 +10,5 @@ export interface ScannerConfiguration {
9
10
  */
10
11
  last_used_at?: number | null;
11
12
  name?: string;
12
- scanner_id?: string;
13
+ scanner_id?: RspmScannerId;
13
14
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.86.6",
3
+ "version": "0.86.8",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,4 +0,0 @@
1
- import type { ScannerConfiguration } from '../schemas/ScannerConfiguration';
2
- export interface ScannerConfigurationListResponse {
3
- items: ScannerConfiguration[];
4
- }