@harnessio/react-ssca-manager-client 0.86.5 → 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.
Files changed (58) 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 +37 -0
  7. package/dist/ssca-manager/src/services/hooks/useGetPipelineArtifactListV2Query.js +23 -0
  8. package/dist/ssca-manager/src/services/hooks/useGetPolicyViolationsQuery.d.ts +1 -0
  9. package/dist/ssca-manager/src/services/hooks/useGetScannerConfigurationQuery.d.ts +21 -0
  10. package/dist/ssca-manager/src/services/hooks/useGetScannerConfigurationQuery.js +14 -0
  11. package/dist/ssca-manager/src/services/hooks/useListIntegrationsQuery.d.ts +2 -0
  12. package/dist/ssca-manager/src/services/hooks/useListRspmScannersQuery.d.ts +27 -0
  13. package/dist/ssca-manager/src/services/hooks/useListRspmScannersQuery.js +14 -0
  14. package/dist/ssca-manager/src/services/hooks/useListScannerConfigurationsQuery.d.ts +13 -3
  15. package/dist/ssca-manager/src/services/index.d.ts +22 -1
  16. package/dist/ssca-manager/src/services/index.js +5 -0
  17. package/dist/ssca-manager/src/services/responses/ArtifactListingResponsePipelinePaginatedBodyResponse.d.ts +2 -0
  18. package/dist/ssca-manager/src/services/responses/ScannerConfigurationListingResponseBodyResponse.d.ts +2 -0
  19. package/dist/ssca-manager/src/services/responses/ScannerConfigurationListingResponseBodyResponse.js +1 -0
  20. package/dist/ssca-manager/src/services/schemas/CreateIntegrationRequest.d.ts +6 -0
  21. package/dist/ssca-manager/src/services/schemas/CreateScannerConfigurationRequest.d.ts +2 -1
  22. package/dist/ssca-manager/src/services/schemas/CreateScannerConfigurationRequest.js +0 -3
  23. package/dist/ssca-manager/src/services/schemas/EnforceSbomResponseBody.d.ts +5 -0
  24. package/dist/ssca-manager/src/services/schemas/ExecutionContextV2.d.ts +1 -1
  25. package/dist/ssca-manager/src/services/schemas/ExecutionDetail.d.ts +2 -0
  26. package/dist/ssca-manager/src/services/schemas/ExecutionType.d.ts +1 -1
  27. package/dist/ssca-manager/src/services/schemas/ExemptionCreateRequestBody.d.ts +4 -0
  28. package/dist/ssca-manager/src/services/schemas/ExemptionResponse.d.ts +4 -0
  29. package/dist/ssca-manager/src/services/schemas/Integration.d.ts +6 -0
  30. package/dist/ssca-manager/src/services/schemas/IntegrationCountsResponse.d.ts +14 -0
  31. package/dist/ssca-manager/src/services/schemas/IntegrationCountsResponse.js +4 -0
  32. package/dist/ssca-manager/src/services/schemas/IntegrationType.d.ts +3 -0
  33. package/dist/ssca-manager/src/services/schemas/JenkinsExecutionContext.d.ts +17 -0
  34. package/dist/ssca-manager/src/services/schemas/JenkinsExecutionContext.js +1 -0
  35. package/dist/ssca-manager/src/services/schemas/JenkinsExecutionDetail.d.ts +16 -0
  36. package/dist/ssca-manager/src/services/schemas/JenkinsExecutionDetail.js +1 -0
  37. package/dist/ssca-manager/src/services/schemas/JenkinsRunner.d.ts +6 -0
  38. package/dist/ssca-manager/src/services/schemas/JenkinsRunner.js +4 -0
  39. package/dist/ssca-manager/src/services/schemas/JenkinsRunnerDetail.d.ts +11 -0
  40. package/dist/ssca-manager/src/services/schemas/JenkinsRunnerDetail.js +1 -0
  41. package/dist/ssca-manager/src/services/schemas/JenkinsScmRepo.d.ts +5 -0
  42. package/dist/ssca-manager/src/services/schemas/JenkinsScmRepo.js +4 -0
  43. package/dist/ssca-manager/src/services/schemas/OidcIdTokenRequest.d.ts +5 -0
  44. package/dist/ssca-manager/src/services/schemas/PolicyFailure.d.ts +4 -0
  45. package/dist/ssca-manager/src/services/schemas/PolicyFailure.js +4 -0
  46. package/dist/ssca-manager/src/services/schemas/RspmScannerId.d.ts +4 -0
  47. package/dist/ssca-manager/src/services/schemas/RspmScannerId.js +4 -0
  48. package/dist/ssca-manager/src/services/schemas/RspmScannerInfo.d.ts +8 -0
  49. package/dist/ssca-manager/src/services/schemas/RspmScannerInfo.js +1 -0
  50. package/dist/ssca-manager/src/services/schemas/RspmScannerType.d.ts +4 -0
  51. package/dist/ssca-manager/src/services/schemas/RspmScannerType.js +4 -0
  52. package/dist/ssca-manager/src/services/schemas/RunnerDetail.d.ts +1 -1
  53. package/dist/ssca-manager/src/services/schemas/ScannerConfiguration.d.ts +2 -1
  54. package/dist/ssca-manager/src/services/schemas/ScannerConfiguration.js +0 -3
  55. package/dist/ssca-manager/src/services/schemas/UpdateIntegrationRspmRequest.d.ts +6 -0
  56. package/package.json +1 -1
  57. package/dist/ssca-manager/src/services/schemas/ScannerConfigurationListResponse.d.ts +0 -4
  58. /package/dist/ssca-manager/src/services/{schemas/ScannerConfigurationListResponse.js → responses/ArtifactListingResponsePipelinePaginatedBodyResponse.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,37 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactListingResponsePipelinePaginatedBodyResponse } from '../responses/ArtifactListingResponsePipelinePaginatedBodyResponse';
3
+ import type { ArtifactListingPipelineRequestBodyRequestBody } from '../requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetPipelineArtifactListV2QueryPathParams {
7
+ org: string;
8
+ project: string;
9
+ pipeline: string;
10
+ execution: string;
11
+ }
12
+ export interface GetPipelineArtifactListV2QueryQueryParams {
13
+ /**
14
+ * @default 30
15
+ */
16
+ limit?: number;
17
+ /**
18
+ * @default 0
19
+ */
20
+ page?: number;
21
+ }
22
+ export interface GetPipelineArtifactListV2QueryHeaderParams {
23
+ 'Harness-Account': string;
24
+ }
25
+ export type GetPipelineArtifactListV2RequestBody = ArtifactListingPipelineRequestBodyRequestBody;
26
+ export type GetPipelineArtifactListV2OkResponse = ResponseWithPagination<ArtifactListingResponsePipelinePaginatedBodyResponse>;
27
+ export type GetPipelineArtifactListV2ErrorResponse = unknown;
28
+ export interface GetPipelineArtifactListV2Props extends GetPipelineArtifactListV2QueryPathParams, Omit<FetcherOptions<GetPipelineArtifactListV2QueryQueryParams, GetPipelineArtifactListV2RequestBody, GetPipelineArtifactListV2QueryHeaderParams>, 'url'> {
29
+ queryParams: GetPipelineArtifactListV2QueryQueryParams;
30
+ body: GetPipelineArtifactListV2RequestBody;
31
+ }
32
+ export declare function getPipelineArtifactListV2(props: GetPipelineArtifactListV2Props): Promise<GetPipelineArtifactListV2OkResponse>;
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.
35
+ *
36
+ */
37
+ export declare function useGetPipelineArtifactListV2Query(props: GetPipelineArtifactListV2Props, options?: Omit<UseQueryOptions<GetPipelineArtifactListV2OkResponse, GetPipelineArtifactListV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPipelineArtifactListV2OkResponse, unknown>;
@@ -0,0 +1,23 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getPipelineArtifactListV2(props) {
7
+ return fetcher(Object.assign({ url: `/v2/orgs/${props.org}/projects/${props.project}/pipelines/${props.pipeline}/executions/${props.execution}/artifacts`, method: 'POST' }, props));
8
+ }
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.
11
+ *
12
+ */
13
+ export function useGetPipelineArtifactListV2Query(props, options) {
14
+ return useQuery([
15
+ 'getPipelineArtifactListV2',
16
+ props.org,
17
+ props.project,
18
+ props.pipeline,
19
+ props.execution,
20
+ props.queryParams,
21
+ props.body,
22
+ ], ({ signal }) => getPipelineArtifactListV2(Object.assign(Object.assign({}, props), { signal })), options);
23
+ }
@@ -23,6 +23,7 @@ export interface GetPolicyViolationsQueryQueryParams {
23
23
  sort?: {};
24
24
  search_text?: string;
25
25
  image_layer?: 'APP' | 'BASE' | 'DISTRO';
26
+ exclude_exempted?: boolean;
26
27
  }
27
28
  export interface GetPolicyViolationsQueryHeaderParams {
28
29
  'Harness-Account': string;
@@ -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';
@@ -161,6 +165,8 @@ export type { GetOverallSummaryErrorResponse, GetOverallSummaryOkResponse, GetOv
161
165
  export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
162
166
  export type { GetPipelineArtifactListErrorResponse, GetPipelineArtifactListOkResponse, GetPipelineArtifactListProps, GetPipelineArtifactListQueryPathParams, GetPipelineArtifactListRequestBody, } from './hooks/useGetPipelineArtifactListQuery';
163
167
  export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
168
+ export type { GetPipelineArtifactListV2ErrorResponse, GetPipelineArtifactListV2OkResponse, GetPipelineArtifactListV2Props, GetPipelineArtifactListV2QueryPathParams, GetPipelineArtifactListV2QueryQueryParams, GetPipelineArtifactListV2RequestBody, } from './hooks/useGetPipelineArtifactListV2Query';
169
+ export { getPipelineArtifactListV2, useGetPipelineArtifactListV2Query, } from './hooks/useGetPipelineArtifactListV2Query';
164
170
  export type { GetPolicyViolationsErrorResponse, GetPolicyViolationsOkResponse, GetPolicyViolationsProps, GetPolicyViolationsQueryPathParams, GetPolicyViolationsQueryQueryParams, } from './hooks/useGetPolicyViolationsQuery';
165
171
  export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
166
172
  export type { GetProjectAiWorkflowConfigErrorResponse, GetProjectAiWorkflowConfigOkResponse, GetProjectAiWorkflowConfigProps, GetProjectAiWorkflowConfigQueryPathParams, GetProjectAiWorkflowConfigQueryQueryParams, } from './hooks/useGetProjectAiWorkflowConfigQuery';
@@ -175,6 +181,8 @@ export type { GetSbomScoreDetailV2ErrorResponse, GetSbomScoreDetailV2OkResponse,
175
181
  export { getSbomScoreDetailV2, useGetSbomScoreDetailV2Query, } from './hooks/useGetSbomScoreDetailV2Query';
176
182
  export type { GetSbomScorecardErrorResponse, GetSbomScorecardOkResponse, GetSbomScorecardProps, GetSbomScorecardQueryPathParams, } from './hooks/useGetSbomScorecardQuery';
177
183
  export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
184
+ export type { GetScannerConfigurationErrorResponse, GetScannerConfigurationOkResponse, GetScannerConfigurationProps, GetScannerConfigurationQueryPathParams, } from './hooks/useGetScannerConfigurationQuery';
185
+ export { getScannerConfiguration, useGetScannerConfigurationQuery, } from './hooks/useGetScannerConfigurationQuery';
178
186
  export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSummaryProps, GetSscaSummaryQueryPathParams, } from './hooks/useGetSscaSummaryQuery';
179
187
  export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
180
188
  export type { ImportLicenseFamilyConfigErrorResponse, ImportLicenseFamilyConfigMutationPathParams, ImportLicenseFamilyConfigOkResponse, ImportLicenseFamilyConfigProps, ImportLicenseFamilyConfigRequestBody, } from './hooks/useImportLicenseFamilyConfigMutation';
@@ -191,6 +199,8 @@ export type { ListIntegrationsErrorResponse, ListIntegrationsOkResponse, ListInt
191
199
  export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
192
200
  export type { ListRemediationsErrorResponse, ListRemediationsOkResponse, ListRemediationsProps, ListRemediationsQueryPathParams, ListRemediationsQueryQueryParams, ListRemediationsRequestBody, } from './hooks/useListRemediationsQuery';
193
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';
194
204
  export type { ListScannerConfigurationsErrorResponse, ListScannerConfigurationsOkResponse, ListScannerConfigurationsProps, ListScannerConfigurationsQueryPathParams, ListScannerConfigurationsQueryQueryParams, } from './hooks/useListScannerConfigurationsQuery';
195
205
  export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
196
206
  export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationPathParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationQueryParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeOkResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeProps, PostComplianceResultStatsEvaluationBreakdownArtifactTypeRequestBody, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
@@ -302,6 +312,7 @@ export type { ArtifactDetailResponseBodyResponse } from './responses/ArtifactDet
302
312
  export type { ArtifactListingResponseBodyResponse } from './responses/ArtifactListingResponseBodyResponse';
303
313
  export type { ArtifactListingResponseBodyV2Response } from './responses/ArtifactListingResponseBodyV2Response';
304
314
  export type { ArtifactListingResponsePipelineBodyResponse } from './responses/ArtifactListingResponsePipelineBodyResponse';
315
+ export type { ArtifactListingResponsePipelinePaginatedBodyResponse } from './responses/ArtifactListingResponsePipelinePaginatedBodyResponse';
305
316
  export type { ArtifactSbomDriftResponseBodyResponse } from './responses/ArtifactSbomDriftResponseBodyResponse';
306
317
  export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomResponseBodyResponse';
307
318
  export type { ArtifactSourcesListingResponseResponse } from './responses/ArtifactSourcesListingResponseResponse';
@@ -381,6 +392,7 @@ export type { SaveResponseResponse } from './responses/SaveResponseResponse';
381
392
  export type { SbomProcessResponseBodyResponse } from './responses/SbomProcessResponseBodyResponse';
382
393
  export type { SbomScoreDetailV2ResponseBodyResponse } from './responses/SbomScoreDetailV2ResponseBodyResponse';
383
394
  export type { SbomScorecardResponseBodyResponse } from './responses/SbomScorecardResponseBodyResponse';
395
+ export type { ScannerConfigurationListingResponseBodyResponse } from './responses/ScannerConfigurationListingResponseBodyResponse';
384
396
  export type { TicketResponseBodyResponse } from './responses/TicketResponseBodyResponse';
385
397
  export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueResponseBodyResponse';
386
398
  export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIntegrationResponseBodyResponse';
@@ -653,6 +665,7 @@ export type { InfraLayout } from './schemas/InfraLayout';
653
665
  export type { Integration } from './schemas/Integration';
654
666
  export type { IntegrationConfig } from './schemas/IntegrationConfig';
655
667
  export type { IntegrationConfigRequestBody } from './schemas/IntegrationConfigRequestBody';
668
+ export type { IntegrationCountsResponse } from './schemas/IntegrationCountsResponse';
656
669
  export type { IntegrationStepConfig } from './schemas/IntegrationStepConfig';
657
670
  export type { IntegrationStepConfigRequestBody } from './schemas/IntegrationStepConfigRequestBody';
658
671
  export type { IntegrationType } from './schemas/IntegrationType';
@@ -665,6 +678,11 @@ export type { InternalIdentificationResult } from './schemas/InternalIdentificat
665
678
  export type { InternalRecommendedVersion } from './schemas/InternalRecommendedVersion';
666
679
  export type { InternalStepExecution } from './schemas/InternalStepExecution';
667
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';
668
686
  export type { LayerType } from './schemas/LayerType';
669
687
  export type { LicenseDrift } from './schemas/LicenseDrift';
670
688
  export type { LicenseDriftSummary } from './schemas/LicenseDriftSummary';
@@ -704,6 +722,7 @@ export type { PipelineInfraConfigRequestBody } from './schemas/PipelineInfraConf
704
722
  export type { PipelineStoreConfigRequestBody } from './schemas/PipelineStoreConfigRequestBody';
705
723
  export type { PluginDto } from './schemas/PluginDto';
706
724
  export type { PluginResponseBody } from './schemas/PluginResponseBody';
725
+ export type { PolicyFailure } from './schemas/PolicyFailure';
707
726
  export type { PolicyViolation } from './schemas/PolicyViolation';
708
727
  export type { PolicyViolationRequestBody } from './schemas/PolicyViolationRequestBody';
709
728
  export type { PresignedDownloadResponse } from './schemas/PresignedDownloadResponse';
@@ -744,6 +763,9 @@ export type { RepositoryArtifactMetadata } from './schemas/RepositoryArtifactMet
744
763
  export type { RepositoryPlatform } from './schemas/RepositoryPlatform';
745
764
  export type { RepositorySpec } from './schemas/RepositorySpec';
746
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';
747
769
  export type { RunnerDetail } from './schemas/RunnerDetail';
748
770
  export type { SaveIntegrityVerificationRequestBody } from './schemas/SaveIntegrityVerificationRequestBody';
749
771
  export type { SaveOrchestrationRequest } from './schemas/SaveOrchestrationRequest';
@@ -768,7 +790,6 @@ export type { SbomScoreSubScores } from './schemas/SbomScoreSubScores';
768
790
  export type { SbomScorecardRequestBody } from './schemas/SbomScorecardRequestBody';
769
791
  export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
770
792
  export type { ScannerConfiguration } from './schemas/ScannerConfiguration';
771
- export type { ScannerConfigurationListResponse } from './schemas/ScannerConfigurationListResponse';
772
793
  export type { Scorecard } from './schemas/Scorecard';
773
794
  export type { ScorecardInfo } from './schemas/ScorecardInfo';
774
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';
@@ -79,6 +81,7 @@ export { getLicenseFamilyConfig, useGetLicenseFamilyConfigQuery, } from './hooks
79
81
  export { getOssScoringCapConfig, useGetOssScoringCapConfigQuery, } from './hooks/useGetOssScoringCapConfigQuery';
80
82
  export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
81
83
  export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
84
+ export { getPipelineArtifactListV2, useGetPipelineArtifactListV2Query, } from './hooks/useGetPipelineArtifactListV2Query';
82
85
  export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
83
86
  export { getProjectAiWorkflowConfig, useGetProjectAiWorkflowConfigQuery, } from './hooks/useGetProjectAiWorkflowConfigQuery';
84
87
  export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
@@ -86,6 +89,7 @@ export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/u
86
89
  export { getRepoRulesEvaluationTrend, useGetRepoRulesEvaluationTrendQuery, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
87
90
  export { getSbomScoreDetailV2, useGetSbomScoreDetailV2Query, } from './hooks/useGetSbomScoreDetailV2Query';
88
91
  export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
92
+ export { getScannerConfiguration, useGetScannerConfigurationQuery, } from './hooks/useGetScannerConfigurationQuery';
89
93
  export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
90
94
  export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
91
95
  export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAgentStatusesQuery';
@@ -94,6 +98,7 @@ export { listAttestations, useListAttestationsMutation } from './hooks/useListAt
94
98
  export { listExemptions, useListExemptionsQuery } from './hooks/useListExemptionsQuery';
95
99
  export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
96
100
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
101
+ export { listRspmScanners, useListRspmScannersQuery } from './hooks/useListRspmScannersQuery';
97
102
  export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
98
103
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
99
104
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
@@ -0,0 +1,2 @@
1
+ import type { ArtifactListingPipelineResponse } from '../schemas/ArtifactListingPipelineResponse';
2
+ export type ArtifactListingResponsePipelinePaginatedBodyResponse = ArtifactListingPipelineResponse[];
@@ -0,0 +1,2 @@
1
+ import type { ScannerConfiguration } from '../schemas/ScannerConfiguration';
2
+ export type ScannerConfigurationListingResponseBodyResponse = ScannerConfiguration[];
@@ -16,6 +16,12 @@ export interface CreateIntegrationRequest {
16
16
  enabled_scanners?: string[];
17
17
  infra_config?: InfraConfigDto;
18
18
  installation_id?: string;
19
+ /**
20
+ * Map of scanner identifier to scanner configuration catalog id
21
+ */
22
+ scanner_config_refs?: {
23
+ [key: string]: string;
24
+ };
19
25
  /**
20
26
  * Map of scanner identifier to credential secret refs
21
27
  */
@@ -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 {};
@@ -1,9 +1,14 @@
1
+ import type { PolicyFailure } from '../schemas/PolicyFailure';
1
2
  import type { PluginResponseBody } from '../schemas/PluginResponseBody';
2
3
  export interface EnforceSbomResponseBody {
3
4
  /**
4
5
  * ID of the enforcement of the SBOM
5
6
  */
6
7
  enforcement_id?: string;
8
+ /**
9
+ * Deduplicated policy set and policy identifiers that produced active violations.
10
+ */
11
+ policy_failures?: PolicyFailure[];
7
12
  response?: PluginResponseBody;
8
13
  /**
9
14
  * Status of the enforcement
@@ -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';
@@ -27,6 +27,10 @@ export interface ExemptionCreateRequestBody {
27
27
  * Requested duration in days (e.g. 7, 30, 90). null / absent = "All time" (never expires).
28
28
  */
29
29
  duration_days?: number | null;
30
+ /**
31
+ * Package manager / purl type (e.g. "npm", "maven", "pypi"). Omit / null when the exemption applies to any package manager. Prefer the SBOM `package_manager` form when tightening match.
32
+ */
33
+ package_manager?: string | null;
30
34
  reason: ExemptionReasonDto;
31
35
  /**
32
36
  * Link to a Jira / RFC or other supporting reference.
@@ -45,6 +45,10 @@ export interface ExemptionResponse {
45
45
  last_modified_at?: number;
46
46
  org_id?: string | null;
47
47
  org_name?: string | null;
48
+ /**
49
+ * Package manager / purl type (e.g. "npm", "maven", "pypi"). null when the exemption applies to any package manager.
50
+ */
51
+ package_manager?: string | null;
48
52
  project_id?: string | null;
49
53
  project_name?: string | null;
50
54
  reason?: ExemptionReasonDto;
@@ -20,6 +20,12 @@ export interface Integration {
20
20
  */
21
21
  last_scan_at?: number;
22
22
  org?: string;
23
+ /**
24
+ * Map of scanner identifier to scanner configuration catalog id
25
+ */
26
+ scanner_config_refs?: {
27
+ [key: string]: string;
28
+ };
23
29
  /**
24
30
  * Map of scanner identifier to credential secret refs
25
31
  */
@@ -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 {};
@@ -42,6 +42,11 @@ export interface OidcIdTokenRequest {
42
42
  * Environment type
43
43
  */
44
44
  environment_type?: string;
45
+ /**
46
+ * Keyless OIDC token source. When set to non-harness, SSCA Manager resolves the account KEYLESS_SIGNING_CONNECTOR_CONFIG and returns an OIDC ID token minted for that AWS/GCP/Azure OIDC connector. When omitted or harness, mints a custom Harness OIDC ID token from the request attributes.
47
+ *
48
+ */
49
+ keyless_type?: 'harness' | 'non-harness';
45
50
  /**
46
51
  * Organization identifier
47
52
  */
@@ -0,0 +1,4 @@
1
+ export interface PolicyFailure {
2
+ policy_identifier?: string;
3
+ policy_set_identifier?: string;
4
+ }
@@ -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 {};
@@ -16,6 +16,12 @@ export interface UpdateIntegrationRspmRequest {
16
16
  */
17
17
  enabled_scanners?: string[];
18
18
  infra_config?: InfraConfigDto;
19
+ /**
20
+ * Map of scanner identifier to scanner configuration catalog id
21
+ */
22
+ scanner_config_refs?: {
23
+ [key: string]: string;
24
+ };
19
25
  /**
20
26
  * Map of scanner identifier to credential secret refs
21
27
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.86.5",
3
+ "version": "0.86.7",
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
- }