@harnessio/react-ssca-manager-client 0.86.6 → 0.86.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ssca-manager/src/services/hooks/useDeleteScannerConfigurationMutation.d.ts +20 -0
- package/dist/ssca-manager/src/services/hooks/useDeleteScannerConfigurationMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useFetchReposInIntegrationQuery.d.ts +4 -0
- package/dist/ssca-manager/src/services/hooks/useGetIntegrationCountsQuery.d.ts +20 -0
- package/dist/ssca-manager/src/services/hooks/useGetIntegrationCountsQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetScannerConfigurationQuery.d.ts +21 -0
- package/dist/ssca-manager/src/services/hooks/useGetScannerConfigurationQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useListIntegrationsQuery.d.ts +2 -0
- package/dist/ssca-manager/src/services/hooks/useListRspmScannersQuery.d.ts +27 -0
- package/dist/ssca-manager/src/services/hooks/useListRspmScannersQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useListScannerConfigurationsQuery.d.ts +13 -3
- package/dist/ssca-manager/src/services/index.d.ts +18 -1
- package/dist/ssca-manager/src/services/index.js +4 -0
- package/dist/ssca-manager/src/services/responses/ScannerConfigurationListingResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/CreateScannerConfigurationRequest.d.ts +2 -1
- package/dist/ssca-manager/src/services/schemas/CreateScannerConfigurationRequest.js +0 -3
- package/dist/ssca-manager/src/services/schemas/ExecutionContextV2.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/ExecutionDetail.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ExecutionType.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/IntegrationCountsResponse.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationCountsResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationType.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/JenkinsExecutionContext.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/JenkinsExecutionContext.js +1 -0
- package/dist/ssca-manager/src/services/schemas/JenkinsExecutionDetail.d.ts +16 -0
- package/dist/ssca-manager/src/services/schemas/JenkinsExecutionDetail.js +1 -0
- package/dist/ssca-manager/src/services/schemas/JenkinsRunner.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/JenkinsRunner.js +4 -0
- package/dist/ssca-manager/src/services/schemas/JenkinsRunnerDetail.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/JenkinsRunnerDetail.js +1 -0
- package/dist/ssca-manager/src/services/schemas/JenkinsScmRepo.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/JenkinsScmRepo.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RspmScannerId.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/RspmScannerId.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RspmScannerInfo.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/RspmScannerInfo.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RspmScannerType.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/RspmScannerType.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RunnerDetail.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/ScannerConfiguration.d.ts +2 -1
- package/dist/ssca-manager/src/services/schemas/ScannerConfiguration.js +0 -3
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/schemas/ScannerConfigurationListResponse.d.ts +0 -4
- /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
|
+
}
|
|
@@ -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 {
|
|
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
|
-
|
|
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<
|
|
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';
|
|
@@ -656,6 +665,7 @@ export type { InfraLayout } from './schemas/InfraLayout';
|
|
|
656
665
|
export type { Integration } from './schemas/Integration';
|
|
657
666
|
export type { IntegrationConfig } from './schemas/IntegrationConfig';
|
|
658
667
|
export type { IntegrationConfigRequestBody } from './schemas/IntegrationConfigRequestBody';
|
|
668
|
+
export type { IntegrationCountsResponse } from './schemas/IntegrationCountsResponse';
|
|
659
669
|
export type { IntegrationStepConfig } from './schemas/IntegrationStepConfig';
|
|
660
670
|
export type { IntegrationStepConfigRequestBody } from './schemas/IntegrationStepConfigRequestBody';
|
|
661
671
|
export type { IntegrationType } from './schemas/IntegrationType';
|
|
@@ -668,6 +678,11 @@ export type { InternalIdentificationResult } from './schemas/InternalIdentificat
|
|
|
668
678
|
export type { InternalRecommendedVersion } from './schemas/InternalRecommendedVersion';
|
|
669
679
|
export type { InternalStepExecution } from './schemas/InternalStepExecution';
|
|
670
680
|
export type { InternalStoreIdentificationResultRequest } from './schemas/InternalStoreIdentificationResultRequest';
|
|
681
|
+
export type { JenkinsExecutionContext } from './schemas/JenkinsExecutionContext';
|
|
682
|
+
export type { JenkinsExecutionDetail } from './schemas/JenkinsExecutionDetail';
|
|
683
|
+
export type { JenkinsRunner } from './schemas/JenkinsRunner';
|
|
684
|
+
export type { JenkinsRunnerDetail } from './schemas/JenkinsRunnerDetail';
|
|
685
|
+
export type { JenkinsScmRepo } from './schemas/JenkinsScmRepo';
|
|
671
686
|
export type { LayerType } from './schemas/LayerType';
|
|
672
687
|
export type { LicenseDrift } from './schemas/LicenseDrift';
|
|
673
688
|
export type { LicenseDriftSummary } from './schemas/LicenseDriftSummary';
|
|
@@ -748,6 +763,9 @@ export type { RepositoryArtifactMetadata } from './schemas/RepositoryArtifactMet
|
|
|
748
763
|
export type { RepositoryPlatform } from './schemas/RepositoryPlatform';
|
|
749
764
|
export type { RepositorySpec } from './schemas/RepositorySpec';
|
|
750
765
|
export type { RiskAndCompliance } from './schemas/RiskAndCompliance';
|
|
766
|
+
export type { RspmScannerId } from './schemas/RspmScannerId';
|
|
767
|
+
export type { RspmScannerInfo } from './schemas/RspmScannerInfo';
|
|
768
|
+
export type { RspmScannerType } from './schemas/RspmScannerType';
|
|
751
769
|
export type { RunnerDetail } from './schemas/RunnerDetail';
|
|
752
770
|
export type { SaveIntegrityVerificationRequestBody } from './schemas/SaveIntegrityVerificationRequestBody';
|
|
753
771
|
export type { SaveOrchestrationRequest } from './schemas/SaveOrchestrationRequest';
|
|
@@ -772,7 +790,6 @@ export type { SbomScoreSubScores } from './schemas/SbomScoreSubScores';
|
|
|
772
790
|
export type { SbomScorecardRequestBody } from './schemas/SbomScorecardRequestBody';
|
|
773
791
|
export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
|
|
774
792
|
export type { ScannerConfiguration } from './schemas/ScannerConfiguration';
|
|
775
|
-
export type { ScannerConfigurationListResponse } from './schemas/ScannerConfigurationListResponse';
|
|
776
793
|
export type { Scorecard } from './schemas/Scorecard';
|
|
777
794
|
export type { ScorecardInfo } from './schemas/ScorecardInfo';
|
|
778
795
|
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,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,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,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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
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 @@
|
|
|
1
|
+
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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?:
|
|
13
|
+
scanner_id?: RspmScannerId;
|
|
13
14
|
}
|
package/package.json
CHANGED