@harnessio/react-ssca-manager-client 0.83.7 → 0.83.10
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/fetcher/index.js +1 -1
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery.d.ts +39 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery.js +21 -0
- package/dist/ssca-manager/src/services/index.d.ts +18 -0
- package/dist/ssca-manager/src/services/index.js +1 -0
- package/dist/ssca-manager/src/services/requestBodies/AttestationQueryRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/AttestationQueryRequestBodyRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/requestBodies/AttestationUploadRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/AttestationUploadRequestBodyRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/responses/AttestationDownloadResponseResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/AttestationDownloadResponseResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/AttestationQueryResponseResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/AttestationQueryResponseResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/AttestationUploadResponseResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/AttestationUploadResponseResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/ComponentVulnerabilityListResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ComponentVulnerabilityListResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/AttestationLinks.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/AttestationLinks.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AttestationUploadRequest.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/AttestationUploadRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AttestationUploadResponseBody.d.ts +31 -0
- package/dist/ssca-manager/src/services/schemas/AttestationUploadResponseBody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentVulnerabilityResponse.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/ComponentVulnerabilityResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/DependencyType.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/DependencyType.js +4 -0
- package/dist/ssca-manager/src/services/schemas/DsseEnvelope.d.ts +20 -0
- package/dist/ssca-manager/src/services/schemas/DsseEnvelope.js +1 -0
- package/dist/ssca-manager/src/services/schemas/DsseSignature.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/DsseSignature.js +4 -0
- package/dist/ssca-manager/src/services/schemas/GraphQlError.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/GraphQlError.js +4 -0
- package/dist/ssca-manager/src/services/schemas/GraphQlRequest.d.ts +13 -0
- package/dist/ssca-manager/src/services/schemas/GraphQlRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/GraphQlResponse.d.ts +13 -0
- package/dist/ssca-manager/src/services/schemas/GraphQlResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/SbomComponentRequestDto.d.ts +3 -0
- package/package.json +1 -1
package/dist/fetcher/index.js
CHANGED
|
@@ -30,7 +30,7 @@ export function fetcher(options) {
|
|
|
30
30
|
if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) {
|
|
31
31
|
finalUrl = (_a = fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) === null || _a === void 0 ? void 0 : _a.call(fetcherCallbacks, finalUrl);
|
|
32
32
|
}
|
|
33
|
-
let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign({ Authorization: `Bearer ${token}` }, headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
|
|
33
|
+
let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign(Object.assign({}, (token ? { Authorization: `Bearer ${token}` } : {})), headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
|
|
34
34
|
if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.requestInterceptor) {
|
|
35
35
|
request = fetcherCallbacks.requestInterceptor(request.clone());
|
|
36
36
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ComponentVulnerabilityListResponseBodyResponse } from '../responses/ComponentVulnerabilityListResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetArtifactV2ComponentVulnerabilityListByPurlQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
artifact: string;
|
|
9
|
+
purl: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetArtifactV2ComponentVulnerabilityListByPurlQueryQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* @default 30
|
|
14
|
+
*/
|
|
15
|
+
limit_vulnerabilities?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @default 0
|
|
18
|
+
*/
|
|
19
|
+
page_vulnerabilities?: number;
|
|
20
|
+
search_term_vulnerabilities?: string;
|
|
21
|
+
sort?: 'severity';
|
|
22
|
+
/**
|
|
23
|
+
* @default "DESC"
|
|
24
|
+
*/
|
|
25
|
+
order?: 'ASC' | 'DESC';
|
|
26
|
+
}
|
|
27
|
+
export interface GetArtifactV2ComponentVulnerabilityListByPurlQueryHeaderParams {
|
|
28
|
+
'Harness-Account': string;
|
|
29
|
+
}
|
|
30
|
+
export type GetArtifactV2ComponentVulnerabilityListByPurlOkResponse = ResponseWithPagination<ComponentVulnerabilityListResponseBodyResponse>;
|
|
31
|
+
export type GetArtifactV2ComponentVulnerabilityListByPurlErrorResponse = unknown;
|
|
32
|
+
export interface GetArtifactV2ComponentVulnerabilityListByPurlProps extends GetArtifactV2ComponentVulnerabilityListByPurlQueryPathParams, Omit<FetcherOptions<GetArtifactV2ComponentVulnerabilityListByPurlQueryQueryParams, unknown, GetArtifactV2ComponentVulnerabilityListByPurlQueryHeaderParams>, 'url'> {
|
|
33
|
+
queryParams: GetArtifactV2ComponentVulnerabilityListByPurlQueryQueryParams;
|
|
34
|
+
}
|
|
35
|
+
export declare function getArtifactV2ComponentVulnerabilityListByPurl(props: GetArtifactV2ComponentVulnerabilityListByPurlProps): Promise<GetArtifactV2ComponentVulnerabilityListByPurlOkResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Get artifactV2 detail component view
|
|
38
|
+
*/
|
|
39
|
+
export declare function useGetArtifactV2ComponentVulnerabilityListByPurlQuery(props: GetArtifactV2ComponentVulnerabilityListByPurlProps, options?: Omit<UseQueryOptions<GetArtifactV2ComponentVulnerabilityListByPurlOkResponse, GetArtifactV2ComponentVulnerabilityListByPurlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactV2ComponentVulnerabilityListByPurlOkResponse, unknown>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 getArtifactV2ComponentVulnerabilityListByPurl(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/components/${props.purl}/vulnerabilities`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get artifactV2 detail component view
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactV2ComponentVulnerabilityListByPurlQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getArtifactV2ComponentVulnerabilityListByPurl',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.artifact,
|
|
18
|
+
props.purl,
|
|
19
|
+
props.queryParams,
|
|
20
|
+
], ({ signal }) => getArtifactV2ComponentVulnerabilityListByPurl(Object.assign(Object.assign({}, props), { signal })), options);
|
|
21
|
+
}
|
|
@@ -43,6 +43,8 @@ export type { GetArtifactInRemediationDetailsErrorResponse, GetArtifactInRemedia
|
|
|
43
43
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
44
44
|
export type { GetArtifactListForRemediationErrorResponse, GetArtifactListForRemediationOkResponse, GetArtifactListForRemediationProps, GetArtifactListForRemediationQueryPathParams, GetArtifactListForRemediationQueryQueryParams, GetArtifactListForRemediationRequestBody, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
45
45
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
46
|
+
export type { GetArtifactV2ComponentVulnerabilityListByPurlErrorResponse, GetArtifactV2ComponentVulnerabilityListByPurlOkResponse, GetArtifactV2ComponentVulnerabilityListByPurlProps, GetArtifactV2ComponentVulnerabilityListByPurlQueryPathParams, GetArtifactV2ComponentVulnerabilityListByPurlQueryQueryParams, } from './hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery';
|
|
47
|
+
export { getArtifactV2ComponentVulnerabilityListByPurl, useGetArtifactV2ComponentVulnerabilityListByPurlQuery, } from './hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery';
|
|
46
48
|
export type { GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewProps, GetArtifactV2DetailComponentViewQueryPathParams, GetArtifactV2DetailComponentViewQueryQueryParams, GetArtifactV2DetailComponentViewRequestBody, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
47
49
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
48
50
|
export type { GetArtifactV2DetailDeploymentViewErrorResponse, GetArtifactV2DetailDeploymentViewOkResponse, GetArtifactV2DetailDeploymentViewProps, GetArtifactV2DetailDeploymentViewQueryPathParams, GetArtifactV2DetailDeploymentViewQueryQueryParams, GetArtifactV2DetailDeploymentViewRequestBody, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
@@ -125,6 +127,8 @@ export type { ArtifactComponentsRequestBodyRequestBody } from './requestBodies/A
|
|
|
125
127
|
export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
|
|
126
128
|
export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
127
129
|
export type { ArtifactSbomDriftRequestBodyRequestBody } from './requestBodies/ArtifactSbomDriftRequestBodyRequestBody';
|
|
130
|
+
export type { AttestationQueryRequestBodyRequestBody } from './requestBodies/AttestationQueryRequestBodyRequestBody';
|
|
131
|
+
export type { AttestationUploadRequestBodyRequestBody } from './requestBodies/AttestationUploadRequestBodyRequestBody';
|
|
128
132
|
export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
|
|
129
133
|
export type { BaselineV2RequestBodyRequestBody } from './requestBodies/BaselineV2RequestBodyRequestBody';
|
|
130
134
|
export type { CodeRepositoryListingRequestBodyRequestBody } from './requestBodies/CodeRepositoryListingRequestBodyRequestBody';
|
|
@@ -178,6 +182,9 @@ export type { ArtifactSbomDriftResponseBodyResponse } from './responses/Artifact
|
|
|
178
182
|
export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomResponseBodyResponse';
|
|
179
183
|
export type { ArtifactSourcesListingResponseResponse } from './responses/ArtifactSourcesListingResponseResponse';
|
|
180
184
|
export type { ArtifactV2ListingResponseBodyResponse } from './responses/ArtifactV2ListingResponseBodyResponse';
|
|
185
|
+
export type { AttestationDownloadResponseResponse } from './responses/AttestationDownloadResponseResponse';
|
|
186
|
+
export type { AttestationQueryResponseResponse } from './responses/AttestationQueryResponseResponse';
|
|
187
|
+
export type { AttestationUploadResponseResponse } from './responses/AttestationUploadResponseResponse';
|
|
181
188
|
export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
|
|
182
189
|
export type { CicdHarnessPipelineResponseBodyResponse } from './responses/CicdHarnessPipelineResponseBodyResponse';
|
|
183
190
|
export type { CicdOverviewResponseBodyResponse } from './responses/CicdOverviewResponseBodyResponse';
|
|
@@ -195,6 +202,7 @@ export type { ComplianceStandardByIdResponseBodyResponse } from './responses/Com
|
|
|
195
202
|
export type { ComplianceStandardsResponseBodyResponse } from './responses/ComplianceStandardsResponseBodyResponse';
|
|
196
203
|
export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDriftResponseBodyResponse';
|
|
197
204
|
export type { ComponentListResponseBodyResponse } from './responses/ComponentListResponseBodyResponse';
|
|
205
|
+
export type { ComponentVulnerabilityListResponseBodyResponse } from './responses/ComponentVulnerabilityListResponseBodyResponse';
|
|
198
206
|
export type { ConfigResponseBodyResponse } from './responses/ConfigResponseBodyResponse';
|
|
199
207
|
export type { CreateIntegrationResponseBodyResponse } from './responses/CreateIntegrationResponseBodyResponse';
|
|
200
208
|
export type { CreateTicketResponseBodyResponse } from './responses/CreateTicketResponseBodyResponse';
|
|
@@ -268,6 +276,9 @@ export type { ArtifactV2ListingResponse } from './schemas/ArtifactV2ListingRespo
|
|
|
268
276
|
export type { ArtifactV2Overview } from './schemas/ArtifactV2Overview';
|
|
269
277
|
export type { ArtifactVariant } from './schemas/ArtifactVariant';
|
|
270
278
|
export type { Attestation } from './schemas/Attestation';
|
|
279
|
+
export type { AttestationLinks } from './schemas/AttestationLinks';
|
|
280
|
+
export type { AttestationUploadRequest } from './schemas/AttestationUploadRequest';
|
|
281
|
+
export type { AttestationUploadResponseBody } from './schemas/AttestationUploadResponseBody';
|
|
271
282
|
export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
|
|
272
283
|
export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
|
|
273
284
|
export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
|
|
@@ -313,6 +324,7 @@ export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
|
|
|
313
324
|
export type { ComponentDto } from './schemas/ComponentDto';
|
|
314
325
|
export type { ComponentFilter } from './schemas/ComponentFilter';
|
|
315
326
|
export type { ComponentSummary } from './schemas/ComponentSummary';
|
|
327
|
+
export type { ComponentVulnerabilityResponse } from './schemas/ComponentVulnerabilityResponse';
|
|
316
328
|
export type { ConfigInfo } from './schemas/ConfigInfo';
|
|
317
329
|
export type { ConfigRequestBody } from './schemas/ConfigRequestBody';
|
|
318
330
|
export type { ConfigResponseBody } from './schemas/ConfigResponseBody';
|
|
@@ -328,12 +340,15 @@ export type { CreateTicketResponse } from './schemas/CreateTicketResponse';
|
|
|
328
340
|
export type { CveVulnerability } from './schemas/CveVulnerability';
|
|
329
341
|
export type { DefaultVulnerability } from './schemas/DefaultVulnerability';
|
|
330
342
|
export type { DeleteRepositoriesRequestBody } from './schemas/DeleteRepositoriesRequestBody';
|
|
343
|
+
export type { DependencyType } from './schemas/DependencyType';
|
|
331
344
|
export type { DeploymentActivity } from './schemas/DeploymentActivity';
|
|
332
345
|
export type { Deployments } from './schemas/Deployments';
|
|
333
346
|
export type { DeploymentsCount } from './schemas/DeploymentsCount';
|
|
334
347
|
export type { DownloadSbomRequest } from './schemas/DownloadSbomRequest';
|
|
335
348
|
export type { DownloadSignatureResponseBody } from './schemas/DownloadSignatureResponseBody';
|
|
336
349
|
export type { DriftDetailsDto } from './schemas/DriftDetailsDto';
|
|
350
|
+
export type { DsseEnvelope } from './schemas/DsseEnvelope';
|
|
351
|
+
export type { DsseSignature } from './schemas/DsseSignature';
|
|
337
352
|
export type { EnforceSbomRequestBody } from './schemas/EnforceSbomRequestBody';
|
|
338
353
|
export type { EnforceSbomRequestBodyV2 } from './schemas/EnforceSbomRequestBodyV2';
|
|
339
354
|
export type { EnforceSbomResponseBody } from './schemas/EnforceSbomResponseBody';
|
|
@@ -359,6 +374,9 @@ export type { GithubExecutionContext } from './schemas/GithubExecutionContext';
|
|
|
359
374
|
export type { GithubExecutionDetail } from './schemas/GithubExecutionDetail';
|
|
360
375
|
export type { GithubRunner } from './schemas/GithubRunner';
|
|
361
376
|
export type { GithubRunnerDetail } from './schemas/GithubRunnerDetail';
|
|
377
|
+
export type { GraphQlError } from './schemas/GraphQlError';
|
|
378
|
+
export type { GraphQlRequest } from './schemas/GraphQlRequest';
|
|
379
|
+
export type { GraphQlResponse } from './schemas/GraphQlResponse';
|
|
362
380
|
export type { HarnessExecutionContext } from './schemas/HarnessExecutionContext';
|
|
363
381
|
export type { HarnessExecutionDetail } from './schemas/HarnessExecutionDetail';
|
|
364
382
|
export type { HarnessPipelineIntegrationResponse } from './schemas/HarnessPipelineIntegrationResponse';
|
|
@@ -20,6 +20,7 @@ export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from '.
|
|
|
20
20
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
21
21
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
22
22
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
23
|
+
export { getArtifactV2ComponentVulnerabilityListByPurl, useGetArtifactV2ComponentVulnerabilityListByPurlQuery, } from './hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery';
|
|
23
24
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
24
25
|
export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
25
26
|
export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
|
package/dist/ssca-manager/src/services/requestBodies/AttestationQueryRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ssca-manager/src/services/requestBodies/AttestationUploadRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ssca-manager/src/services/responses/ComponentVulnerabilityListResponseBodyResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { ComponentFilter } from '../schemas/ComponentFilter';
|
|
2
|
+
import type { DependencyType } from '../schemas/DependencyType';
|
|
2
3
|
import type { LayerType } from '../schemas/LayerType';
|
|
3
4
|
import type { LicenseFilter } from '../schemas/LicenseFilter';
|
|
4
5
|
import type { OwaspFilter } from '../schemas/OwaspFilter';
|
|
5
6
|
export interface ArtifactComponentViewRequestBody {
|
|
6
7
|
component_filter?: ComponentFilter[];
|
|
8
|
+
dependency_type_filter?: DependencyType[];
|
|
7
9
|
image_layer?: LayerType;
|
|
8
10
|
license_filter?: LicenseFilter;
|
|
9
11
|
owasp_filter?: OwaspFilter[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface AttestationLinks {
|
|
2
|
+
/**
|
|
3
|
+
* Download URL for this attestation
|
|
4
|
+
* @example "/orgs/SSCA/projects/SSCA_Sanity/attestations/300cd77..."
|
|
5
|
+
*/
|
|
6
|
+
download?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Graph query URL for related attestations
|
|
9
|
+
* @example "/orgs/SSCA/projects/SSCA_Sanity/attestations/graph?artifactId=68f09..."
|
|
10
|
+
*/
|
|
11
|
+
graph?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Artifact } from '../schemas/Artifact';
|
|
2
|
+
import type { DsseEnvelope } from '../schemas/DsseEnvelope';
|
|
3
|
+
import type { ExecutionDetail } from '../schemas/ExecutionDetail';
|
|
4
|
+
export interface AttestationUploadRequest {
|
|
5
|
+
artifact: Artifact;
|
|
6
|
+
envelope: DsseEnvelope;
|
|
7
|
+
executionContext?: ExecutionDetail;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { AttestationLinks } from '../schemas/AttestationLinks';
|
|
2
|
+
export interface AttestationUploadResponseBody {
|
|
3
|
+
/**
|
|
4
|
+
* Associated artifact identifier
|
|
5
|
+
*/
|
|
6
|
+
artifactId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* GitOID SHA256 digest of the attestation
|
|
9
|
+
* @example "300cd77db87c312b00b2e712d82a7581b20972e6a49e0ed11f4cdd1e2be942a0"
|
|
10
|
+
*/
|
|
11
|
+
gitoidSha256?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether the attestation has been indexed
|
|
14
|
+
*/
|
|
15
|
+
indexed?: boolean;
|
|
16
|
+
links?: AttestationLinks;
|
|
17
|
+
/**
|
|
18
|
+
* Orchestration identifier for this attestation
|
|
19
|
+
*/
|
|
20
|
+
orchestrationId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Ingestion status
|
|
23
|
+
* @example "ingested"
|
|
24
|
+
*/
|
|
25
|
+
status?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the signature was verified
|
|
28
|
+
* @example true
|
|
29
|
+
*/
|
|
30
|
+
verified?: boolean;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VulnerabilitySeverity } from '../schemas/VulnerabilitySeverity';
|
|
2
|
+
export interface ComponentVulnerabilityResponse {
|
|
3
|
+
/**
|
|
4
|
+
* List of reference identifiers like CVE IDs, GHSA IDs
|
|
5
|
+
*/
|
|
6
|
+
reference_identifiers?: string[];
|
|
7
|
+
severity?: VulnerabilitySeverity;
|
|
8
|
+
/**
|
|
9
|
+
* Numeric severity score (e.g., CVSS score)
|
|
10
|
+
* @format float
|
|
11
|
+
*/
|
|
12
|
+
severity_score?: number;
|
|
13
|
+
/**
|
|
14
|
+
* List of versions to upgrade to for fixing the vulnerability
|
|
15
|
+
*/
|
|
16
|
+
upgrade_versions?: string[];
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DependencyType = 'DIRECT' | 'TRANSITIVE' | 'UNKNOWN';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DsseSignature } from '../schemas/DsseSignature';
|
|
2
|
+
export interface DsseEnvelope {
|
|
3
|
+
/**
|
|
4
|
+
* optional metadata such as source / ingestedBy / timestamp
|
|
5
|
+
*/
|
|
6
|
+
metadata?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* base64-encoded JSON payload (in-toto Statement)
|
|
11
|
+
* @example "eyJfdHlwZSI6ICJod..."
|
|
12
|
+
*/
|
|
13
|
+
payload: string;
|
|
14
|
+
/**
|
|
15
|
+
* MIME type of the payload
|
|
16
|
+
* @example "application/vnd.in-toto+json"
|
|
17
|
+
*/
|
|
18
|
+
payloadType: string;
|
|
19
|
+
signatures?: DsseSignature[];
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import type { DependencyType } from '../schemas/DependencyType';
|
|
1
2
|
import type { LayerType } from '../schemas/LayerType';
|
|
2
3
|
/**
|
|
3
4
|
* Normalized SBOM Component Details
|
|
4
5
|
*/
|
|
5
6
|
export interface SbomComponentRequestDto {
|
|
7
|
+
dependency_type?: DependencyType;
|
|
8
|
+
file_path?: string;
|
|
6
9
|
filter_tags?: LayerType[];
|
|
7
10
|
language?: string;
|
|
8
11
|
major_version?: number;
|