@harnessio/react-ssca-manager-client 0.83.1 → 0.83.2
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/index.d.ts +1 -8
- package/dist/ssca-manager/src/services/index.js +0 -2
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewResponse.d.ts +18 -0
- package/dist/ssca-manager/src/services/schemas/OwaspFilter.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/hooks/useFetchRuntimeSecurityAlertsByArtifactQuery.d.ts +0 -40
- package/dist/ssca-manager/src/services/hooks/useFetchRuntimeSecurityAlertsByArtifactQuery.js +0 -21
- package/dist/ssca-manager/src/services/hooks/useGetPipelineAlertListQuery.d.ts +0 -25
- package/dist/ssca-manager/src/services/hooks/useGetPipelineAlertListQuery.js +0 -14
- package/dist/ssca-manager/src/services/requestBodies/EbpfRequestBodyRequestBody.d.ts +0 -2
- package/dist/ssca-manager/src/services/requestBodies/EbpfRequestBodyRequestBody.js +0 -1
- package/dist/ssca-manager/src/services/schemas/AlertListingPipelineRequestBody.d.ts +0 -3
- package/dist/ssca-manager/src/services/schemas/AlertListingPipelineResponse.d.ts +0 -10
- package/dist/ssca-manager/src/services/schemas/AlertListingPipelineResponse.js +0 -4
- package/dist/ssca-manager/src/services/schemas/EbpfRequestBody.d.ts +0 -1
- package/dist/ssca-manager/src/services/schemas/EbpfRequestBody.js +0 -4
- /package/dist/ssca-manager/src/services/schemas/{AlertListingPipelineRequestBody.js → OwaspFilter.js} +0 -0
|
@@ -35,8 +35,6 @@ export type { FetchPluginsForWorkflowErrorResponse, FetchPluginsForWorkflowOkRes
|
|
|
35
35
|
export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
|
|
36
36
|
export type { FetchReposInIntegrationErrorResponse, FetchReposInIntegrationOkResponse, FetchReposInIntegrationProps, FetchReposInIntegrationQueryPathParams, FetchReposInIntegrationQueryQueryParams, } from './hooks/useFetchReposInIntegrationQuery';
|
|
37
37
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
38
|
-
export type { FetchRuntimeSecurityAlertsByArtifactErrorResponse, FetchRuntimeSecurityAlertsByArtifactOkResponse, FetchRuntimeSecurityAlertsByArtifactProps, FetchRuntimeSecurityAlertsByArtifactQueryPathParams, FetchRuntimeSecurityAlertsByArtifactQueryQueryParams, FetchRuntimeSecurityAlertsByArtifactRequestBody, } from './hooks/useFetchRuntimeSecurityAlertsByArtifactQuery';
|
|
39
|
-
export { fetchRuntimeSecurityAlertsByArtifact, useFetchRuntimeSecurityAlertsByArtifactQuery, } from './hooks/useFetchRuntimeSecurityAlertsByArtifactQuery';
|
|
40
38
|
export type { GetAllRepositoriesSummaryErrorResponse, GetAllRepositoriesSummaryOkResponse, GetAllRepositoriesSummaryProps, GetAllRepositoriesSummaryQueryPathParams, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
41
39
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
42
40
|
export type { GetArtifactChainOfCustodyV2ErrorResponse, GetArtifactChainOfCustodyV2OkResponse, GetArtifactChainOfCustodyV2Props, GetArtifactChainOfCustodyV2QueryPathParams, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
@@ -93,8 +91,6 @@ export type { GetLicenseDriftErrorResponse, GetLicenseDriftOkResponse, GetLicens
|
|
|
93
91
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
94
92
|
export type { GetOverallSummaryErrorResponse, GetOverallSummaryOkResponse, GetOverallSummaryProps, GetOverallSummaryQueryPathParams, } from './hooks/useGetOverallSummaryQuery';
|
|
95
93
|
export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
|
|
96
|
-
export type { GetPipelineAlertListErrorResponse, GetPipelineAlertListOkResponse, GetPipelineAlertListProps, GetPipelineAlertListQueryPathParams, GetPipelineAlertListRequestBody, } from './hooks/useGetPipelineAlertListQuery';
|
|
97
|
-
export { getPipelineAlertList, useGetPipelineAlertListQuery, } from './hooks/useGetPipelineAlertListQuery';
|
|
98
94
|
export type { GetPipelineArtifactListErrorResponse, GetPipelineArtifactListOkResponse, GetPipelineArtifactListProps, GetPipelineArtifactListQueryPathParams, GetPipelineArtifactListRequestBody, } from './hooks/useGetPipelineArtifactListQuery';
|
|
99
95
|
export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
|
|
100
96
|
export type { GetPolicyViolationsErrorResponse, GetPolicyViolationsOkResponse, GetPolicyViolationsProps, GetPolicyViolationsQueryPathParams, GetPolicyViolationsQueryQueryParams, } from './hooks/useGetPolicyViolationsQuery';
|
|
@@ -143,7 +139,6 @@ export type { CreateComplianceStandardRequestBodyRequestBody } from './requestBo
|
|
|
143
139
|
export type { CreateIntegrationRequestBodyRequestBody } from './requestBodies/CreateIntegrationRequestBodyRequestBody';
|
|
144
140
|
export type { CreateTicketRequestBodyRequestBody } from './requestBodies/CreateTicketRequestBodyRequestBody';
|
|
145
141
|
export type { DownloadSbomRequestBodyRequestBody } from './requestBodies/DownloadSbomRequestBodyRequestBody';
|
|
146
|
-
export type { EbpfRequestBodyRequestBody } from './requestBodies/EbpfRequestBodyRequestBody';
|
|
147
142
|
export type { EnforceSbomRequestBodyRequestBody } from './requestBodies/EnforceSbomRequestBodyRequestBody';
|
|
148
143
|
export type { EnforceSbomRequestBodyV2RequestBody } from './requestBodies/EnforceSbomRequestBodyV2RequestBody';
|
|
149
144
|
export type { ExcludeArtifactRequestBodyRequestBody } from './requestBodies/ExcludeArtifactRequestBodyRequestBody';
|
|
@@ -240,8 +235,6 @@ export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueRespo
|
|
|
240
235
|
export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIntegrationResponseBodyResponse';
|
|
241
236
|
export type { VersionResponseBodyResponse } from './responses/VersionResponseBodyResponse';
|
|
242
237
|
export type { ActivityDetails } from './schemas/ActivityDetails';
|
|
243
|
-
export type { AlertListingPipelineRequestBody } from './schemas/AlertListingPipelineRequestBody';
|
|
244
|
-
export type { AlertListingPipelineResponse } from './schemas/AlertListingPipelineResponse';
|
|
245
238
|
export type { Artifact } from './schemas/Artifact';
|
|
246
239
|
export type { ArtifactAndDeploymentsResponseBody } from './schemas/ArtifactAndDeploymentsResponseBody';
|
|
247
240
|
export type { ArtifactChainOfCustody } from './schemas/ArtifactChainOfCustody';
|
|
@@ -338,7 +331,6 @@ export type { DeploymentsCount } from './schemas/DeploymentsCount';
|
|
|
338
331
|
export type { DownloadSbomRequest } from './schemas/DownloadSbomRequest';
|
|
339
332
|
export type { DownloadSignatureResponseBody } from './schemas/DownloadSignatureResponseBody';
|
|
340
333
|
export type { DriftDetailsDto } from './schemas/DriftDetailsDto';
|
|
341
|
-
export type { EbpfRequestBody } from './schemas/EbpfRequestBody';
|
|
342
334
|
export type { EnforceSbomRequestBody } from './schemas/EnforceSbomRequestBody';
|
|
343
335
|
export type { EnforceSbomRequestBodyV2 } from './schemas/EnforceSbomRequestBodyV2';
|
|
344
336
|
export type { EnforceSbomResponseBody } from './schemas/EnforceSbomResponseBody';
|
|
@@ -396,6 +388,7 @@ export type { OrchestrationModelPipeline } from './schemas/OrchestrationModelPip
|
|
|
396
388
|
export type { OrchestrationScorecardSummary } from './schemas/OrchestrationScorecardSummary';
|
|
397
389
|
export type { OrchestrationStepDriftRequestBody } from './schemas/OrchestrationStepDriftRequestBody';
|
|
398
390
|
export type { OrchestrationSummaryResponse } from './schemas/OrchestrationSummaryResponse';
|
|
391
|
+
export type { OwaspFilter } from './schemas/OwaspFilter';
|
|
399
392
|
export type { PipelineConfigUpdateRequest } from './schemas/PipelineConfigUpdateRequest';
|
|
400
393
|
export type { PipelineDetails } from './schemas/PipelineDetails';
|
|
401
394
|
export type { PipelineInfo } from './schemas/PipelineInfo';
|
|
@@ -16,7 +16,6 @@ export { fetchComplianceResultsByComplianceId, useFetchComplianceResultsByCompli
|
|
|
16
16
|
export { fetchComplianceResultsGroupById, useFetchComplianceResultsGroupByIdMutation, } from './hooks/useFetchComplianceResultsGroupByIdMutation';
|
|
17
17
|
export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
|
|
18
18
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
19
|
-
export { fetchRuntimeSecurityAlertsByArtifact, useFetchRuntimeSecurityAlertsByArtifactQuery, } from './hooks/useFetchRuntimeSecurityAlertsByArtifactQuery';
|
|
20
19
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
21
20
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
22
21
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
@@ -45,7 +44,6 @@ export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGe
|
|
|
45
44
|
export { getIntegrationsConfig, useGetIntegrationsConfigQuery, } from './hooks/useGetIntegrationsConfigQuery';
|
|
46
45
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
47
46
|
export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
|
|
48
|
-
export { getPipelineAlertList, useGetPipelineAlertListQuery, } from './hooks/useGetPipelineAlertListQuery';
|
|
49
47
|
export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
|
|
50
48
|
export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
|
|
51
49
|
export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { ComponentFilter } from '../schemas/ComponentFilter';
|
|
2
2
|
import type { LayerType } from '../schemas/LayerType';
|
|
3
3
|
import type { LicenseFilter } from '../schemas/LicenseFilter';
|
|
4
|
+
import type { OwaspFilter } from '../schemas/OwaspFilter';
|
|
4
5
|
export interface ArtifactComponentViewRequestBody {
|
|
5
6
|
component_filter?: ComponentFilter[];
|
|
6
7
|
image_layer?: LayerType;
|
|
7
8
|
license_filter?: LicenseFilter;
|
|
9
|
+
owasp_filter?: OwaspFilter;
|
|
8
10
|
package_manager?: string;
|
|
9
11
|
package_supplier?: string;
|
|
10
12
|
}
|
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
import type { LayerType } from '../schemas/LayerType';
|
|
2
2
|
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
3
|
+
import type { TicketInfo } from '../schemas/TicketInfo';
|
|
3
4
|
export interface ArtifactComponentViewResponse {
|
|
5
|
+
/**
|
|
6
|
+
* details of the component
|
|
7
|
+
*/
|
|
8
|
+
description?: string;
|
|
4
9
|
exemption_status?: 'FULLY_EXEMPTED' | 'NOT_EXEMPTED' | 'PARTIALLY_EXEMPTED';
|
|
5
10
|
filter_tags?: LayerType[];
|
|
11
|
+
/**
|
|
12
|
+
* boolean field to indicate whether a particular component is outdated or not.
|
|
13
|
+
*/
|
|
14
|
+
is_outdated?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* boolean field to indicate whether a component is deprecated or not.
|
|
17
|
+
*/
|
|
18
|
+
is_unmaintained?: boolean;
|
|
6
19
|
issue_count?: StoIssueCount;
|
|
20
|
+
/**
|
|
21
|
+
* latest version available of a component
|
|
22
|
+
*/
|
|
23
|
+
latest_version?: string;
|
|
7
24
|
package_license?: string;
|
|
8
25
|
package_manager?: string;
|
|
9
26
|
package_name?: string;
|
|
10
27
|
package_supplier?: string;
|
|
11
28
|
package_version?: string;
|
|
12
29
|
purl?: string;
|
|
30
|
+
ticket?: TicketInfo;
|
|
13
31
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type OwaspFilter = 'OUTDATED_COMPONENT' | 'UNMAINTAINED_COMPONENT' | 'VULNERABLE_COMPONENT';
|
package/package.json
CHANGED
package/dist/ssca-manager/src/services/hooks/useFetchRuntimeSecurityAlertsByArtifactQuery.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { AlertListingPipelineResponse } from '../schemas/AlertListingPipelineResponse';
|
|
3
|
-
import type { AlertListingPipelineRequestBody } from '../schemas/AlertListingPipelineRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface FetchRuntimeSecurityAlertsByArtifactQueryPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
artifact: string;
|
|
10
|
-
}
|
|
11
|
-
export interface FetchRuntimeSecurityAlertsByArtifactQueryQueryParams {
|
|
12
|
-
/**
|
|
13
|
-
* @default 0
|
|
14
|
-
*/
|
|
15
|
-
page?: number;
|
|
16
|
-
/**
|
|
17
|
-
* @default 30
|
|
18
|
-
*/
|
|
19
|
-
limit?: number;
|
|
20
|
-
/**
|
|
21
|
-
* @default "ASC"
|
|
22
|
-
*/
|
|
23
|
-
order?: 'ASC' | 'DESC';
|
|
24
|
-
sort?: 'severity' | 'title';
|
|
25
|
-
}
|
|
26
|
-
export interface FetchRuntimeSecurityAlertsByArtifactQueryHeaderParams {
|
|
27
|
-
'Harness-Account': string;
|
|
28
|
-
}
|
|
29
|
-
export type FetchRuntimeSecurityAlertsByArtifactRequestBody = AlertListingPipelineRequestBody;
|
|
30
|
-
export type FetchRuntimeSecurityAlertsByArtifactOkResponse = ResponseWithPagination<AlertListingPipelineResponse[]>;
|
|
31
|
-
export type FetchRuntimeSecurityAlertsByArtifactErrorResponse = unknown;
|
|
32
|
-
export interface FetchRuntimeSecurityAlertsByArtifactProps extends FetchRuntimeSecurityAlertsByArtifactQueryPathParams, Omit<FetcherOptions<FetchRuntimeSecurityAlertsByArtifactQueryQueryParams, FetchRuntimeSecurityAlertsByArtifactRequestBody, FetchRuntimeSecurityAlertsByArtifactQueryHeaderParams>, 'url'> {
|
|
33
|
-
queryParams: FetchRuntimeSecurityAlertsByArtifactQueryQueryParams;
|
|
34
|
-
body: FetchRuntimeSecurityAlertsByArtifactRequestBody;
|
|
35
|
-
}
|
|
36
|
-
export declare function fetchRuntimeSecurityAlertsByArtifact(props: FetchRuntimeSecurityAlertsByArtifactProps): Promise<FetchRuntimeSecurityAlertsByArtifactOkResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* Fetch Runtime Security Alerts by artifact
|
|
39
|
-
*/
|
|
40
|
-
export declare function useFetchRuntimeSecurityAlertsByArtifactQuery(props: FetchRuntimeSecurityAlertsByArtifactProps, options?: Omit<UseQueryOptions<FetchRuntimeSecurityAlertsByArtifactOkResponse, FetchRuntimeSecurityAlertsByArtifactErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<FetchRuntimeSecurityAlertsByArtifactOkResponse, unknown>;
|
package/dist/ssca-manager/src/services/hooks/useFetchRuntimeSecurityAlertsByArtifactQuery.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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 fetchRuntimeSecurityAlertsByArtifact(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact/${props.artifact}/runtime-security-alerts/list`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Fetch Runtime Security Alerts by artifact
|
|
11
|
-
*/
|
|
12
|
-
export function useFetchRuntimeSecurityAlertsByArtifactQuery(props, options) {
|
|
13
|
-
return useQuery([
|
|
14
|
-
'fetchRuntimeSecurityAlertsByArtifact',
|
|
15
|
-
props.org,
|
|
16
|
-
props.project,
|
|
17
|
-
props.artifact,
|
|
18
|
-
props.queryParams,
|
|
19
|
-
props.body,
|
|
20
|
-
], ({ signal }) => fetchRuntimeSecurityAlertsByArtifact(Object.assign(Object.assign({}, props), { signal })), options);
|
|
21
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { AlertListingPipelineResponse } from '../schemas/AlertListingPipelineResponse';
|
|
3
|
-
import type { AlertListingPipelineRequestBody } from '../schemas/AlertListingPipelineRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface GetPipelineAlertListQueryPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
pipeline: string;
|
|
10
|
-
execution: string;
|
|
11
|
-
}
|
|
12
|
-
export interface GetPipelineAlertListQueryHeaderParams {
|
|
13
|
-
'Harness-Account': string;
|
|
14
|
-
}
|
|
15
|
-
export type GetPipelineAlertListRequestBody = AlertListingPipelineRequestBody;
|
|
16
|
-
export type GetPipelineAlertListOkResponse = ResponseWithPagination<AlertListingPipelineResponse[]>;
|
|
17
|
-
export type GetPipelineAlertListErrorResponse = unknown;
|
|
18
|
-
export interface GetPipelineAlertListProps extends GetPipelineAlertListQueryPathParams, Omit<FetcherOptions<unknown, GetPipelineAlertListRequestBody, GetPipelineAlertListQueryHeaderParams>, 'url'> {
|
|
19
|
-
body: GetPipelineAlertListRequestBody;
|
|
20
|
-
}
|
|
21
|
-
export declare function getPipelineAlertList(props: GetPipelineAlertListProps): Promise<GetPipelineAlertListOkResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Get Alert List for Pipeline View
|
|
24
|
-
*/
|
|
25
|
-
export declare function useGetPipelineAlertListQuery(props: GetPipelineAlertListProps, options?: Omit<UseQueryOptions<GetPipelineAlertListOkResponse, GetPipelineAlertListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPipelineAlertListOkResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 getPipelineAlertList(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/pipelines/${props.pipeline}/executions/${props.execution}/alerts`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get Alert List for Pipeline View
|
|
11
|
-
*/
|
|
12
|
-
export function useGetPipelineAlertListQuery(props, options) {
|
|
13
|
-
return useQuery(['getPipelineAlertList', props.org, props.project, props.pipeline, props.execution, props.body], ({ signal }) => getPipelineAlertList(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type EbpfRequestBody = string;
|
|
File without changes
|