@harnessio/react-ssca-manager-client 0.84.39 → 0.84.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ssca-manager/src/services/hooks/useBulkDownloadAttestationsMutation.d.ts +6 -5
- package/dist/ssca-manager/src/services/hooks/useBulkDownloadAttestationsMutation.js +2 -2
- package/dist/ssca-manager/src/services/hooks/useGetAttestationSummaryBySourceMutation.d.ts +6 -5
- package/dist/ssca-manager/src/services/hooks/useGetAttestationSummaryBySourceMutation.js +2 -2
- package/dist/ssca-manager/src/services/hooks/useGetAttestationSummaryByTypeMutation.d.ts +6 -5
- package/dist/ssca-manager/src/services/hooks/useGetAttestationSummaryByTypeMutation.js +2 -2
- package/dist/ssca-manager/src/services/hooks/useGetBulkDownloadStatusQuery.d.ts +6 -3
- package/dist/ssca-manager/src/services/hooks/useGetBulkDownloadStatusQuery.js +2 -2
- package/dist/ssca-manager/src/services/hooks/useListAttestationsMutation.d.ts +4 -6
- package/dist/ssca-manager/src/services/hooks/useListAttestationsMutation.js +2 -2
- package/dist/ssca-manager/src/services/index.d.ts +24 -5
- package/dist/ssca-manager/src/services/requestBodies/AttestationAiSummaryRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/AttestationAiSummaryRequestBodyRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/requestBodies/AttestationEnforcementRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/AttestationEnforcementRequestBodyRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/requestBodies/AttestationsByArtifactRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/AttestationsByArtifactRequestBodyRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/responses/AttestationAiSummaryResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/AttestationAiSummaryResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/AttestationEnforcementResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/AttestationEnforcementResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/AttestationsByArtifactResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/AttestationsByArtifactResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/SbomScoreDetailV2ResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/SbomScoreDetailV2ResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AffectedArtifactInfo.d.ts +2 -2
- package/dist/ssca-manager/src/services/schemas/AffectedTargetRemediationResponse.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/AiWorkflowAlertConfig.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactV2ListingResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactV2Overview.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/AttestationAiSummaryRequest.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/AttestationAiSummaryRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AttestationAiSummaryResponse.d.ts +9 -0
- package/dist/ssca-manager/src/services/schemas/AttestationAiSummaryResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AttestationDetailsResponse.d.ts +4 -4
- package/dist/ssca-manager/src/services/schemas/AttestationEnforcementRequest.d.ts +16 -0
- package/dist/ssca-manager/src/services/schemas/AttestationEnforcementRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AttestationEnforcementResponse.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/AttestationEnforcementResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AttestationListingRequest.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/AttestationListingResponse.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/AttestationType.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/AttestationsByArtifactRequest.d.ts +9 -0
- package/dist/ssca-manager/src/services/schemas/AttestationsByArtifactRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AttestationsByArtifactResponse.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/AttestationsByArtifactResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepositoryListingResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepositoryOverview.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ComponentScore.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/ComponentScore.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentSubScores.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/ComponentSubScores.js +4 -0
- package/dist/ssca-manager/src/services/schemas/OrchestrationModelPipeline.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/OssScoringCapRule.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/SbomScoreAppliedCapRule.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/SbomScoreAppliedCapRule.js +4 -0
- package/dist/ssca-manager/src/services/schemas/SbomScoreDetailV2Response.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/SbomScoreDetailV2Response.js +1 -0
- package/dist/ssca-manager/src/services/schemas/SbomScoreSubScores.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/SbomScoreSubScores.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ScorecardV2.d.ts +16 -0
- package/dist/ssca-manager/src/services/schemas/ScorecardV2.js +4 -0
- package/package.json +1 -1
|
@@ -3,9 +3,9 @@ import type { AttestationBulkDownloadResponseBodyResponse } from '../responses/A
|
|
|
3
3
|
import type { AttestationBulkDownloadRequestBodyRequestBody } from '../requestBodies/AttestationBulkDownloadRequestBodyRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface
|
|
7
|
-
org
|
|
8
|
-
project
|
|
6
|
+
export interface BulkDownloadAttestationsMutationQueryParams {
|
|
7
|
+
org?: string;
|
|
8
|
+
project?: string;
|
|
9
9
|
}
|
|
10
10
|
export interface BulkDownloadAttestationsMutationHeaderParams {
|
|
11
11
|
'Harness-Account': string;
|
|
@@ -13,11 +13,12 @@ export interface BulkDownloadAttestationsMutationHeaderParams {
|
|
|
13
13
|
export type BulkDownloadAttestationsRequestBody = AttestationBulkDownloadRequestBodyRequestBody;
|
|
14
14
|
export type BulkDownloadAttestationsOkResponse = ResponseWithPagination<AttestationBulkDownloadResponseBodyResponse>;
|
|
15
15
|
export type BulkDownloadAttestationsErrorResponse = unknown;
|
|
16
|
-
export interface BulkDownloadAttestationsProps extends
|
|
16
|
+
export interface BulkDownloadAttestationsProps extends Omit<FetcherOptions<BulkDownloadAttestationsMutationQueryParams, BulkDownloadAttestationsRequestBody, BulkDownloadAttestationsMutationHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: BulkDownloadAttestationsMutationQueryParams;
|
|
17
18
|
body: BulkDownloadAttestationsRequestBody;
|
|
18
19
|
}
|
|
19
20
|
export declare function bulkDownloadAttestations(props: BulkDownloadAttestationsProps): Promise<BulkDownloadAttestationsOkResponse>;
|
|
20
21
|
/**
|
|
21
|
-
*
|
|
22
|
+
* Initiates a bulk download job at account, org, or project scope.
|
|
22
23
|
*/
|
|
23
24
|
export declare function useBulkDownloadAttestationsMutation(options?: Omit<UseMutationOptions<BulkDownloadAttestationsOkResponse, BulkDownloadAttestationsErrorResponse, BulkDownloadAttestationsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<BulkDownloadAttestationsOkResponse, unknown, BulkDownloadAttestationsProps, unknown>;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function bulkDownloadAttestations(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/attestations/bulk-download`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Initiates a bulk download job at account, org, or project scope.
|
|
11
11
|
*/
|
|
12
12
|
export function useBulkDownloadAttestationsMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => bulkDownloadAttestations(mutateProps), options);
|
|
@@ -3,9 +3,9 @@ import type { AttestationSummaryBySourceResponseBodyResponse } from '../response
|
|
|
3
3
|
import type { AttestationSummaryBySourceRequestBodyRequestBody } from '../requestBodies/AttestationSummaryBySourceRequestBodyRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface
|
|
7
|
-
org
|
|
8
|
-
project
|
|
6
|
+
export interface GetAttestationSummaryBySourceMutationQueryParams {
|
|
7
|
+
org?: string;
|
|
8
|
+
project?: string;
|
|
9
9
|
}
|
|
10
10
|
export interface GetAttestationSummaryBySourceMutationHeaderParams {
|
|
11
11
|
'Harness-Account': string;
|
|
@@ -13,11 +13,12 @@ export interface GetAttestationSummaryBySourceMutationHeaderParams {
|
|
|
13
13
|
export type GetAttestationSummaryBySourceRequestBody = AttestationSummaryBySourceRequestBodyRequestBody;
|
|
14
14
|
export type GetAttestationSummaryBySourceOkResponse = ResponseWithPagination<AttestationSummaryBySourceResponseBodyResponse>;
|
|
15
15
|
export type GetAttestationSummaryBySourceErrorResponse = unknown;
|
|
16
|
-
export interface GetAttestationSummaryBySourceProps extends
|
|
16
|
+
export interface GetAttestationSummaryBySourceProps extends Omit<FetcherOptions<GetAttestationSummaryBySourceMutationQueryParams, GetAttestationSummaryBySourceRequestBody, GetAttestationSummaryBySourceMutationHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: GetAttestationSummaryBySourceMutationQueryParams;
|
|
17
18
|
body: GetAttestationSummaryBySourceRequestBody;
|
|
18
19
|
}
|
|
19
20
|
export declare function getAttestationSummaryBySource(props: GetAttestationSummaryBySourceProps): Promise<GetAttestationSummaryBySourceOkResponse>;
|
|
20
21
|
/**
|
|
21
|
-
*
|
|
22
|
+
* Returns attestation counts grouped by source at account, org, or project scope.
|
|
22
23
|
*/
|
|
23
24
|
export declare function useGetAttestationSummaryBySourceMutation(options?: Omit<UseMutationOptions<GetAttestationSummaryBySourceOkResponse, GetAttestationSummaryBySourceErrorResponse, GetAttestationSummaryBySourceProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetAttestationSummaryBySourceOkResponse, unknown, GetAttestationSummaryBySourceProps, unknown>;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getAttestationSummaryBySource(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/attestations/summary-by-source`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Returns attestation counts grouped by source at account, org, or project scope.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetAttestationSummaryBySourceMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => getAttestationSummaryBySource(mutateProps), options);
|
|
@@ -3,9 +3,9 @@ import type { AttestationSummaryByTypeResponseBodyResponse } from '../responses/
|
|
|
3
3
|
import type { AttestationSummaryByTypeRequestBodyRequestBody } from '../requestBodies/AttestationSummaryByTypeRequestBodyRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface
|
|
7
|
-
org
|
|
8
|
-
project
|
|
6
|
+
export interface GetAttestationSummaryByTypeMutationQueryParams {
|
|
7
|
+
org?: string;
|
|
8
|
+
project?: string;
|
|
9
9
|
}
|
|
10
10
|
export interface GetAttestationSummaryByTypeMutationHeaderParams {
|
|
11
11
|
'Harness-Account': string;
|
|
@@ -13,11 +13,12 @@ export interface GetAttestationSummaryByTypeMutationHeaderParams {
|
|
|
13
13
|
export type GetAttestationSummaryByTypeRequestBody = AttestationSummaryByTypeRequestBodyRequestBody;
|
|
14
14
|
export type GetAttestationSummaryByTypeOkResponse = ResponseWithPagination<AttestationSummaryByTypeResponseBodyResponse>;
|
|
15
15
|
export type GetAttestationSummaryByTypeErrorResponse = unknown;
|
|
16
|
-
export interface GetAttestationSummaryByTypeProps extends
|
|
16
|
+
export interface GetAttestationSummaryByTypeProps extends Omit<FetcherOptions<GetAttestationSummaryByTypeMutationQueryParams, GetAttestationSummaryByTypeRequestBody, GetAttestationSummaryByTypeMutationHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: GetAttestationSummaryByTypeMutationQueryParams;
|
|
17
18
|
body: GetAttestationSummaryByTypeRequestBody;
|
|
18
19
|
}
|
|
19
20
|
export declare function getAttestationSummaryByType(props: GetAttestationSummaryByTypeProps): Promise<GetAttestationSummaryByTypeOkResponse>;
|
|
20
21
|
/**
|
|
21
|
-
*
|
|
22
|
+
* Returns attestation counts grouped by type at account, org, or project scope.
|
|
22
23
|
*/
|
|
23
24
|
export declare function useGetAttestationSummaryByTypeMutation(options?: Omit<UseMutationOptions<GetAttestationSummaryByTypeOkResponse, GetAttestationSummaryByTypeErrorResponse, GetAttestationSummaryByTypeProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetAttestationSummaryByTypeOkResponse, unknown, GetAttestationSummaryByTypeProps, unknown>;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getAttestationSummaryByType(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/attestations/summary-by-type`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Returns attestation counts grouped by type at account, org, or project scope.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetAttestationSummaryByTypeMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => getAttestationSummaryByType(mutateProps), options);
|
|
@@ -3,16 +3,19 @@ import type { BulkDownloadJobResponse } from '../schemas/BulkDownloadJobResponse
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetBulkDownloadStatusQueryPathParams {
|
|
6
|
-
org: string;
|
|
7
|
-
project: string;
|
|
8
6
|
jobId: string;
|
|
9
7
|
}
|
|
8
|
+
export interface GetBulkDownloadStatusQueryQueryParams {
|
|
9
|
+
org?: string;
|
|
10
|
+
project?: string;
|
|
11
|
+
}
|
|
10
12
|
export interface GetBulkDownloadStatusQueryHeaderParams {
|
|
11
13
|
'Harness-Account': string;
|
|
12
14
|
}
|
|
13
15
|
export type GetBulkDownloadStatusOkResponse = ResponseWithPagination<BulkDownloadJobResponse>;
|
|
14
16
|
export type GetBulkDownloadStatusErrorResponse = unknown;
|
|
15
|
-
export interface GetBulkDownloadStatusProps extends GetBulkDownloadStatusQueryPathParams, Omit<FetcherOptions<
|
|
17
|
+
export interface GetBulkDownloadStatusProps extends GetBulkDownloadStatusQueryPathParams, Omit<FetcherOptions<GetBulkDownloadStatusQueryQueryParams, unknown, GetBulkDownloadStatusQueryHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: GetBulkDownloadStatusQueryQueryParams;
|
|
16
19
|
}
|
|
17
20
|
export declare function getBulkDownloadStatus(props: GetBulkDownloadStatusProps): Promise<GetBulkDownloadStatusOkResponse>;
|
|
18
21
|
/**
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getBulkDownloadStatus(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/attestations/bulk-download/${props.jobId}/status`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Poll this endpoint to check whether the ZIP is ready. When status is COMPLETED, the response includes a time-limited pre-signed download URL.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetBulkDownloadStatusQuery(props, options) {
|
|
13
|
-
return useQuery(['getBulkDownloadStatus', props.
|
|
13
|
+
return useQuery(['getBulkDownloadStatus', props.jobId, props.queryParams], ({ signal }) => getBulkDownloadStatus(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -3,11 +3,9 @@ import type { AttestationListingResponseBodyResponse } from '../responses/Attest
|
|
|
3
3
|
import type { AttestationListingRequestBodyRequestBody } from '../requestBodies/AttestationListingRequestBodyRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface ListAttestationsMutationPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
}
|
|
10
6
|
export interface ListAttestationsMutationQueryParams {
|
|
7
|
+
org?: string;
|
|
8
|
+
project?: string;
|
|
11
9
|
/**
|
|
12
10
|
* @default 30
|
|
13
11
|
*/
|
|
@@ -33,12 +31,12 @@ export interface ListAttestationsMutationHeaderParams {
|
|
|
33
31
|
export type ListAttestationsRequestBody = AttestationListingRequestBodyRequestBody;
|
|
34
32
|
export type ListAttestationsOkResponse = ResponseWithPagination<AttestationListingResponseBodyResponse>;
|
|
35
33
|
export type ListAttestationsErrorResponse = unknown;
|
|
36
|
-
export interface ListAttestationsProps extends
|
|
34
|
+
export interface ListAttestationsProps extends Omit<FetcherOptions<ListAttestationsMutationQueryParams, ListAttestationsRequestBody, ListAttestationsMutationHeaderParams>, 'url'> {
|
|
37
35
|
queryParams: ListAttestationsMutationQueryParams;
|
|
38
36
|
body: ListAttestationsRequestBody;
|
|
39
37
|
}
|
|
40
38
|
export declare function listAttestations(props: ListAttestationsProps): Promise<ListAttestationsOkResponse>;
|
|
41
39
|
/**
|
|
42
|
-
* List attestations
|
|
40
|
+
* List attestations at account, org, or project scope depending on which query params are provided.
|
|
43
41
|
*/
|
|
44
42
|
export declare function useListAttestationsMutation(options?: Omit<UseMutationOptions<ListAttestationsOkResponse, ListAttestationsErrorResponse, ListAttestationsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ListAttestationsOkResponse, unknown, ListAttestationsProps, unknown>;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function listAttestations(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/attestations`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* List attestations
|
|
10
|
+
* List attestations at account, org, or project scope depending on which query params are provided.
|
|
11
11
|
*/
|
|
12
12
|
export function useListAttestationsMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => listAttestations(mutateProps), options);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
2
|
export type { ArtifactListV2ErrorResponse, ArtifactListV2OkResponse, ArtifactListV2Props, ArtifactListV2QueryPathParams, ArtifactListV2QueryQueryParams, ArtifactListV2RequestBody, } from './hooks/useArtifactListV2Query';
|
|
3
3
|
export { artifactListV2, useArtifactListV2Query } from './hooks/useArtifactListV2Query';
|
|
4
|
-
export type { BulkDownloadAttestationsErrorResponse,
|
|
4
|
+
export type { BulkDownloadAttestationsErrorResponse, BulkDownloadAttestationsMutationQueryParams, BulkDownloadAttestationsOkResponse, BulkDownloadAttestationsProps, BulkDownloadAttestationsRequestBody, } from './hooks/useBulkDownloadAttestationsMutation';
|
|
5
5
|
export { bulkDownloadAttestations, useBulkDownloadAttestationsMutation, } from './hooks/useBulkDownloadAttestationsMutation';
|
|
6
6
|
export type { CheckArtifactAndDeploymentsErrorResponse, CheckArtifactAndDeploymentsMutationPathParams, CheckArtifactAndDeploymentsOkResponse, CheckArtifactAndDeploymentsProps, CheckArtifactAndDeploymentsRequestBody, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
7
7
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
@@ -83,9 +83,9 @@ export type { GetArtifactV2OverviewErrorResponse, GetArtifactV2OverviewOkRespons
|
|
|
83
83
|
export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
|
|
84
84
|
export type { GetAttestationDetailsErrorResponse, GetAttestationDetailsOkResponse, GetAttestationDetailsProps, GetAttestationDetailsQueryPathParams, } from './hooks/useGetAttestationDetailsQuery';
|
|
85
85
|
export { getAttestationDetails, useGetAttestationDetailsQuery, } from './hooks/useGetAttestationDetailsQuery';
|
|
86
|
-
export type { GetAttestationSummaryBySourceErrorResponse,
|
|
86
|
+
export type { GetAttestationSummaryBySourceErrorResponse, GetAttestationSummaryBySourceMutationQueryParams, GetAttestationSummaryBySourceOkResponse, GetAttestationSummaryBySourceProps, GetAttestationSummaryBySourceRequestBody, } from './hooks/useGetAttestationSummaryBySourceMutation';
|
|
87
87
|
export { getAttestationSummaryBySource, useGetAttestationSummaryBySourceMutation, } from './hooks/useGetAttestationSummaryBySourceMutation';
|
|
88
|
-
export type { GetAttestationSummaryByTypeErrorResponse,
|
|
88
|
+
export type { GetAttestationSummaryByTypeErrorResponse, GetAttestationSummaryByTypeMutationQueryParams, GetAttestationSummaryByTypeOkResponse, GetAttestationSummaryByTypeProps, GetAttestationSummaryByTypeRequestBody, } from './hooks/useGetAttestationSummaryByTypeMutation';
|
|
89
89
|
export { getAttestationSummaryByType, useGetAttestationSummaryByTypeMutation, } from './hooks/useGetAttestationSummaryByTypeMutation';
|
|
90
90
|
export type { GetAutoPrConfigErrorResponse, GetAutoPrConfigOkResponse, GetAutoPrConfigProps, GetAutoPrConfigQueryQueryParams, } from './hooks/useGetAutoPrConfigQuery';
|
|
91
91
|
export { getAutoPrConfig, useGetAutoPrConfigQuery } from './hooks/useGetAutoPrConfigQuery';
|
|
@@ -93,7 +93,7 @@ export type { GetAutoPrPresetsErrorResponse, GetAutoPrPresetsOkResponse, GetAuto
|
|
|
93
93
|
export { getAutoPrPresets, useGetAutoPrPresetsQuery } from './hooks/useGetAutoPrPresetsQuery';
|
|
94
94
|
export type { GetBaselineForArtifactErrorResponse, GetBaselineForArtifactOkResponse, GetBaselineForArtifactProps, GetBaselineForArtifactQueryPathParams, } from './hooks/useGetBaselineForArtifactQuery';
|
|
95
95
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
96
|
-
export type { GetBulkDownloadStatusErrorResponse, GetBulkDownloadStatusOkResponse, GetBulkDownloadStatusProps, GetBulkDownloadStatusQueryPathParams, } from './hooks/useGetBulkDownloadStatusQuery';
|
|
96
|
+
export type { GetBulkDownloadStatusErrorResponse, GetBulkDownloadStatusOkResponse, GetBulkDownloadStatusProps, GetBulkDownloadStatusQueryPathParams, GetBulkDownloadStatusQueryQueryParams, } from './hooks/useGetBulkDownloadStatusQuery';
|
|
97
97
|
export { getBulkDownloadStatus, useGetBulkDownloadStatusQuery, } from './hooks/useGetBulkDownloadStatusQuery';
|
|
98
98
|
export type { GetCicdOverviewErrorResponse, GetCicdOverviewOkResponse, GetCicdOverviewProps, GetCicdOverviewQueryPathParams, } from './hooks/useGetCicdOverviewQuery';
|
|
99
99
|
export { getCicdOverview, useGetCicdOverviewQuery } from './hooks/useGetCicdOverviewQuery';
|
|
@@ -167,7 +167,7 @@ export type { ListAgentStatusesErrorResponse, ListAgentStatusesOkResponse, ListA
|
|
|
167
167
|
export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAgentStatusesQuery';
|
|
168
168
|
export type { ListArtifactSourcesErrorResponse, ListArtifactSourcesOkResponse, ListArtifactSourcesProps, ListArtifactSourcesQueryPathParams, ListArtifactSourcesQueryQueryParams, ListArtifactSourcesRequestBody, } from './hooks/useListArtifactSourcesQuery';
|
|
169
169
|
export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
|
|
170
|
-
export type { ListAttestationsErrorResponse,
|
|
170
|
+
export type { ListAttestationsErrorResponse, ListAttestationsMutationQueryParams, ListAttestationsOkResponse, ListAttestationsProps, ListAttestationsRequestBody, } from './hooks/useListAttestationsMutation';
|
|
171
171
|
export { listAttestations, useListAttestationsMutation } from './hooks/useListAttestationsMutation';
|
|
172
172
|
export type { ListIntegrationsErrorResponse, ListIntegrationsOkResponse, ListIntegrationsProps, ListIntegrationsQueryPathParams, ListIntegrationsQueryQueryParams, } from './hooks/useListIntegrationsQuery';
|
|
173
173
|
export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
|
|
@@ -202,12 +202,15 @@ export type { ArtifactComponentsRequestBodyRequestBody } from './requestBodies/A
|
|
|
202
202
|
export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
|
|
203
203
|
export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
204
204
|
export type { ArtifactSbomDriftRequestBodyRequestBody } from './requestBodies/ArtifactSbomDriftRequestBodyRequestBody';
|
|
205
|
+
export type { AttestationAiSummaryRequestBodyRequestBody } from './requestBodies/AttestationAiSummaryRequestBodyRequestBody';
|
|
205
206
|
export type { AttestationBulkDownloadRequestBodyRequestBody } from './requestBodies/AttestationBulkDownloadRequestBodyRequestBody';
|
|
207
|
+
export type { AttestationEnforcementRequestBodyRequestBody } from './requestBodies/AttestationEnforcementRequestBodyRequestBody';
|
|
206
208
|
export type { AttestationListingRequestBodyRequestBody } from './requestBodies/AttestationListingRequestBodyRequestBody';
|
|
207
209
|
export type { AttestationQueryRequestBodyRequestBody } from './requestBodies/AttestationQueryRequestBodyRequestBody';
|
|
208
210
|
export type { AttestationSummaryBySourceRequestBodyRequestBody } from './requestBodies/AttestationSummaryBySourceRequestBodyRequestBody';
|
|
209
211
|
export type { AttestationSummaryByTypeRequestBodyRequestBody } from './requestBodies/AttestationSummaryByTypeRequestBodyRequestBody';
|
|
210
212
|
export type { AttestationUploadRequestBodyRequestBody } from './requestBodies/AttestationUploadRequestBodyRequestBody';
|
|
213
|
+
export type { AttestationsByArtifactRequestBodyRequestBody } from './requestBodies/AttestationsByArtifactRequestBodyRequestBody';
|
|
211
214
|
export type { AutoPrConfigRequestBodyRequestBody } from './requestBodies/AutoPrConfigRequestBodyRequestBody';
|
|
212
215
|
export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
|
|
213
216
|
export type { BaselineV2RequestBodyRequestBody } from './requestBodies/BaselineV2RequestBodyRequestBody';
|
|
@@ -271,14 +274,17 @@ export type { ArtifactSbomDriftResponseBodyResponse } from './responses/Artifact
|
|
|
271
274
|
export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomResponseBodyResponse';
|
|
272
275
|
export type { ArtifactSourcesListingResponseResponse } from './responses/ArtifactSourcesListingResponseResponse';
|
|
273
276
|
export type { ArtifactV2ListingResponseBodyResponse } from './responses/ArtifactV2ListingResponseBodyResponse';
|
|
277
|
+
export type { AttestationAiSummaryResponseBodyResponse } from './responses/AttestationAiSummaryResponseBodyResponse';
|
|
274
278
|
export type { AttestationBulkDownloadResponseBodyResponse } from './responses/AttestationBulkDownloadResponseBodyResponse';
|
|
275
279
|
export type { AttestationDetailsResponseBodyResponse } from './responses/AttestationDetailsResponseBodyResponse';
|
|
276
280
|
export type { AttestationDownloadResponseResponse } from './responses/AttestationDownloadResponseResponse';
|
|
281
|
+
export type { AttestationEnforcementResponseBodyResponse } from './responses/AttestationEnforcementResponseBodyResponse';
|
|
277
282
|
export type { AttestationListingResponseBodyResponse } from './responses/AttestationListingResponseBodyResponse';
|
|
278
283
|
export type { AttestationQueryResponseResponse } from './responses/AttestationQueryResponseResponse';
|
|
279
284
|
export type { AttestationSummaryBySourceResponseBodyResponse } from './responses/AttestationSummaryBySourceResponseBodyResponse';
|
|
280
285
|
export type { AttestationSummaryByTypeResponseBodyResponse } from './responses/AttestationSummaryByTypeResponseBodyResponse';
|
|
281
286
|
export type { AttestationUploadResponseResponse } from './responses/AttestationUploadResponseResponse';
|
|
287
|
+
export type { AttestationsByArtifactResponseBodyResponse } from './responses/AttestationsByArtifactResponseBodyResponse';
|
|
282
288
|
export type { AutoPrConfigResponseBodyResponse } from './responses/AutoPrConfigResponseBodyResponse';
|
|
283
289
|
export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
|
|
284
290
|
export type { CicdHarnessPipelineResponseBodyResponse } from './responses/CicdHarnessPipelineResponseBodyResponse';
|
|
@@ -340,6 +346,7 @@ export type { RepoDetailsDtoResponse } from './responses/RepoDetailsDtoResponse'
|
|
|
340
346
|
export type { SaveOrchestrationResponseBodyResponse } from './responses/SaveOrchestrationResponseBodyResponse';
|
|
341
347
|
export type { SaveResponseResponse } from './responses/SaveResponseResponse';
|
|
342
348
|
export type { SbomProcessResponseBodyResponse } from './responses/SbomProcessResponseBodyResponse';
|
|
349
|
+
export type { SbomScoreDetailV2ResponseBodyResponse } from './responses/SbomScoreDetailV2ResponseBodyResponse';
|
|
343
350
|
export type { SbomScorecardResponseBodyResponse } from './responses/SbomScorecardResponseBodyResponse';
|
|
344
351
|
export type { TicketResponseBodyResponse } from './responses/TicketResponseBodyResponse';
|
|
345
352
|
export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueResponseBodyResponse';
|
|
@@ -413,8 +420,12 @@ export type { ArtifactV2Overview } from './schemas/ArtifactV2Overview';
|
|
|
413
420
|
export type { ArtifactVariant } from './schemas/ArtifactVariant';
|
|
414
421
|
export type { Attestation } from './schemas/Attestation';
|
|
415
422
|
export type { AttestationActivity } from './schemas/AttestationActivity';
|
|
423
|
+
export type { AttestationAiSummaryRequest } from './schemas/AttestationAiSummaryRequest';
|
|
424
|
+
export type { AttestationAiSummaryResponse } from './schemas/AttestationAiSummaryResponse';
|
|
416
425
|
export type { AttestationBulkDownloadRequest } from './schemas/AttestationBulkDownloadRequest';
|
|
417
426
|
export type { AttestationDetailsResponse } from './schemas/AttestationDetailsResponse';
|
|
427
|
+
export type { AttestationEnforcementRequest } from './schemas/AttestationEnforcementRequest';
|
|
428
|
+
export type { AttestationEnforcementResponse } from './schemas/AttestationEnforcementResponse';
|
|
418
429
|
export type { AttestationLinks } from './schemas/AttestationLinks';
|
|
419
430
|
export type { AttestationListingRequest } from './schemas/AttestationListingRequest';
|
|
420
431
|
export type { AttestationListingResponse } from './schemas/AttestationListingResponse';
|
|
@@ -430,6 +441,8 @@ export type { AttestationSummaryByTypeResponse } from './schemas/AttestationSumm
|
|
|
430
441
|
export type { AttestationType } from './schemas/AttestationType';
|
|
431
442
|
export type { AttestationUploadRequest } from './schemas/AttestationUploadRequest';
|
|
432
443
|
export type { AttestationUploadResponseBody } from './schemas/AttestationUploadResponseBody';
|
|
444
|
+
export type { AttestationsByArtifactRequest } from './schemas/AttestationsByArtifactRequest';
|
|
445
|
+
export type { AttestationsByArtifactResponse } from './schemas/AttestationsByArtifactResponse';
|
|
433
446
|
export type { AutoPrAdvancedRule } from './schemas/AutoPrAdvancedRule';
|
|
434
447
|
export type { AutoPrCheckInterval } from './schemas/AutoPrCheckInterval';
|
|
435
448
|
export type { AutoPrComplianceRule } from './schemas/AutoPrComplianceRule';
|
|
@@ -501,7 +514,9 @@ export type { ComponentDto } from './schemas/ComponentDto';
|
|
|
501
514
|
export type { ComponentFilter } from './schemas/ComponentFilter';
|
|
502
515
|
export type { ComponentParent } from './schemas/ComponentParent';
|
|
503
516
|
export type { ComponentRemediationResponse } from './schemas/ComponentRemediationResponse';
|
|
517
|
+
export type { ComponentScore } from './schemas/ComponentScore';
|
|
504
518
|
export type { ComponentSearchResult } from './schemas/ComponentSearchResult';
|
|
519
|
+
export type { ComponentSubScores } from './schemas/ComponentSubScores';
|
|
505
520
|
export type { ComponentSummary } from './schemas/ComponentSummary';
|
|
506
521
|
export type { ComponentVulnerabilityResponse } from './schemas/ComponentVulnerabilityResponse';
|
|
507
522
|
export type { ConfigInfo } from './schemas/ConfigInfo';
|
|
@@ -691,11 +706,15 @@ export type { SbomMetadataV2 } from './schemas/SbomMetadataV2';
|
|
|
691
706
|
export type { SbomProcess } from './schemas/SbomProcess';
|
|
692
707
|
export type { SbomProcessRequestBody } from './schemas/SbomProcessRequestBody';
|
|
693
708
|
export type { SbomProcessResponseBody } from './schemas/SbomProcessResponseBody';
|
|
709
|
+
export type { SbomScoreAppliedCapRule } from './schemas/SbomScoreAppliedCapRule';
|
|
710
|
+
export type { SbomScoreDetailV2Response } from './schemas/SbomScoreDetailV2Response';
|
|
694
711
|
export type { SbomScoreRequest } from './schemas/SbomScoreRequest';
|
|
712
|
+
export type { SbomScoreSubScores } from './schemas/SbomScoreSubScores';
|
|
695
713
|
export type { SbomScorecardRequestBody } from './schemas/SbomScorecardRequestBody';
|
|
696
714
|
export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
|
|
697
715
|
export type { Scorecard } from './schemas/Scorecard';
|
|
698
716
|
export type { ScorecardInfo } from './schemas/ScorecardInfo';
|
|
717
|
+
export type { ScorecardV2 } from './schemas/ScorecardV2';
|
|
699
718
|
export type { SecurityOverviewArtifactCount } from './schemas/SecurityOverviewArtifactCount';
|
|
700
719
|
export type { SecurityOverviewComplianceSummary } from './schemas/SecurityOverviewComplianceSummary';
|
|
701
720
|
export type { SecurityOverviewDeploymentSummary } from './schemas/SecurityOverviewDeploymentSummary';
|
package/dist/ssca-manager/src/services/requestBodies/AttestationAiSummaryRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ssca-manager/src/services/requestBodies/AttestationEnforcementRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ssca-manager/src/services/requestBodies/AttestationsByArtifactRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ssca-manager/src/services/responses/AttestationEnforcementResponseBodyResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ssca-manager/src/services/responses/AttestationsByArtifactResponseBodyResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -47,7 +47,7 @@ export interface AffectedArtifactInfo {
|
|
|
47
47
|
*/
|
|
48
48
|
remediation_error_message?: string;
|
|
49
49
|
/**
|
|
50
|
-
* URL of the created remediation pull request (present when status is PR_CREATED)
|
|
50
|
+
* URL of the created remediation pull request (present when status is PR_CREATED or REMEDIATED)
|
|
51
51
|
*/
|
|
52
52
|
remediation_pr_url?: string;
|
|
53
53
|
/**
|
|
@@ -61,7 +61,7 @@ export interface AffectedArtifactInfo {
|
|
|
61
61
|
*/
|
|
62
62
|
source_id?: string;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Vulnerable package version(s) present in this target (one entry per row for now)
|
|
65
65
|
*/
|
|
66
66
|
target_versions?: string[];
|
|
67
67
|
}
|
|
@@ -22,7 +22,7 @@ export interface AffectedTargetRemediationResponse {
|
|
|
22
22
|
/**
|
|
23
23
|
* Current remediation status for this affected target
|
|
24
24
|
*/
|
|
25
|
-
remediation_status?: 'FAILED' | 'NOT_STARTED' | 'PR_CREATED';
|
|
25
|
+
remediation_status?: 'FAILED' | 'NOT_STARTED' | 'PR_CREATED' | 'REMEDIATED';
|
|
26
26
|
/**
|
|
27
27
|
* Name of the repository
|
|
28
28
|
*/
|
|
@@ -27,6 +27,12 @@ export interface AiWorkflowAlertConfig {
|
|
|
27
27
|
* Harness PagerDuty connector identifier. Stored in v3; delivery wired in v4.
|
|
28
28
|
*/
|
|
29
29
|
pagerduty_connector_ref?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Map of Slack connector ref -> Slack channel IDs (e.g. "C0123ABC") to post to via chat.postMessage. Required for bot-token connectors.
|
|
32
|
+
*/
|
|
33
|
+
slack_connector_channels?: {
|
|
34
|
+
[key: string]: string[];
|
|
35
|
+
};
|
|
30
36
|
/**
|
|
31
37
|
* Harness Slack connector identifiers. Resolved at send-time via ConnectorResourceClient.
|
|
32
38
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentScore } from '../schemas/ComponentScore';
|
|
1
2
|
import type { DependencyType } from '../schemas/DependencyType';
|
|
2
3
|
import type { LayerType } from '../schemas/LayerType';
|
|
3
4
|
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
@@ -5,6 +6,7 @@ import type { MaliciousDetail } from '../schemas/MaliciousDetail';
|
|
|
5
6
|
import type { ComponentParent } from '../schemas/ComponentParent';
|
|
6
7
|
import type { VulnerabilitySource } from '../schemas/VulnerabilitySource';
|
|
7
8
|
export interface ArtifactComponentViewResponse {
|
|
9
|
+
component_score?: ComponentScore;
|
|
8
10
|
dependency_types?: DependencyType[];
|
|
9
11
|
/**
|
|
10
12
|
* details of the component
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ArtifactTypeData } from '../schemas/ArtifactTypeData';
|
|
2
|
+
import type { ScorecardV2 } from '../schemas/ScorecardV2';
|
|
2
3
|
import type { IntegrityVerification } from '../schemas/IntegrityVerification';
|
|
3
4
|
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
4
5
|
export interface ArtifactV2ListingResponse {
|
|
@@ -70,6 +71,7 @@ export interface ArtifactV2ListingResponse {
|
|
|
70
71
|
*/
|
|
71
72
|
max_score?: string;
|
|
72
73
|
};
|
|
74
|
+
scorecard_v2?: ScorecardV2;
|
|
73
75
|
signing?: IntegrityVerification;
|
|
74
76
|
sto_issue_count?: StoIssueCount;
|
|
75
77
|
tags?: string[];
|
|
@@ -3,6 +3,7 @@ import type { Deployments } from '../schemas/Deployments';
|
|
|
3
3
|
import type { PipelineDetails } from '../schemas/PipelineDetails';
|
|
4
4
|
import type { SbomInfo } from '../schemas/SbomInfo';
|
|
5
5
|
import type { Scorecard } from '../schemas/Scorecard';
|
|
6
|
+
import type { ScorecardV2 } from '../schemas/ScorecardV2';
|
|
6
7
|
import type { IntegrityVerification } from '../schemas/IntegrityVerification';
|
|
7
8
|
import type { SlsaDetails } from '../schemas/SlsaDetails';
|
|
8
9
|
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
@@ -28,6 +29,7 @@ export interface ArtifactV2Overview {
|
|
|
28
29
|
pipeline_details?: PipelineDetails;
|
|
29
30
|
sbom_details?: SbomInfo;
|
|
30
31
|
scorecard?: Scorecard;
|
|
32
|
+
scorecard_v2?: ScorecardV2;
|
|
31
33
|
signing?: IntegrityVerification;
|
|
32
34
|
slsa_details?: SlsaDetails;
|
|
33
35
|
source_id?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -12,6 +12,10 @@ export interface AttestationDetailsResponse<T0 extends ExecutionContextV2 = Exec
|
|
|
12
12
|
* @format int64
|
|
13
13
|
*/
|
|
14
14
|
created_at?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Static one-line attestation description derived from attestor type.
|
|
17
|
+
*/
|
|
18
|
+
description?: string;
|
|
15
19
|
execution_context?: T0;
|
|
16
20
|
/**
|
|
17
21
|
* GitOID SHA-256 digest in Archivista.
|
|
@@ -21,10 +25,6 @@ export interface AttestationDetailsResponse<T0 extends ExecutionContextV2 = Exec
|
|
|
21
25
|
* MIME type of the DSSE payload (e.g. application/vnd.in-toto+json).
|
|
22
26
|
*/
|
|
23
27
|
payload_type?: string;
|
|
24
|
-
/**
|
|
25
|
-
* S3 path for attestation storage.
|
|
26
|
-
*/
|
|
27
|
-
s3_path?: string;
|
|
28
28
|
source: AttestationSource;
|
|
29
29
|
/**
|
|
30
30
|
* All attestation subjects.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ExecutionDetail } from '../schemas/ExecutionDetail';
|
|
2
|
+
export interface AttestationEnforcementRequest {
|
|
3
|
+
/**
|
|
4
|
+
* Internal artifact identifier to link evaluation and activity.
|
|
5
|
+
*/
|
|
6
|
+
artifact_id: string;
|
|
7
|
+
execution_context: ExecutionDetail;
|
|
8
|
+
/**
|
|
9
|
+
* OPA policy set references to evaluate.
|
|
10
|
+
*/
|
|
11
|
+
policy_set_ref: string[];
|
|
12
|
+
/**
|
|
13
|
+
* Collated attestation subject names to be evaluated.
|
|
14
|
+
*/
|
|
15
|
+
subjects: string[];
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface AttestationEnforcementResponse {
|
|
2
|
+
/**
|
|
3
|
+
* Artifact identifier used for policy evaluation.
|
|
4
|
+
*/
|
|
5
|
+
artifact_id: string;
|
|
6
|
+
/**
|
|
7
|
+
* Final attestation enforcement status.
|
|
8
|
+
*/
|
|
9
|
+
status: string;
|
|
10
|
+
/**
|
|
11
|
+
* Violations derived from OPA deny messages.
|
|
12
|
+
*/
|
|
13
|
+
violations: string[];
|
|
14
|
+
}
|
|
@@ -10,6 +10,12 @@ export interface AttestationListingRequest {
|
|
|
10
10
|
* @format int64
|
|
11
11
|
*/
|
|
12
12
|
end_time?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Scope filter to narrow results within the current view. Keys are org identifiers, values are arrays of project identifiers. An empty array means all projects under that org. Only valid at account or org scope; ignored at project scope.
|
|
15
|
+
*/
|
|
16
|
+
scopes?: {
|
|
17
|
+
[key: string]: string[];
|
|
18
|
+
};
|
|
13
19
|
/**
|
|
14
20
|
* Filter by record sources (any match).
|
|
15
21
|
*/
|
|
@@ -12,6 +12,10 @@ export interface AttestationListingResponse<T0 extends ExecutionContextV2 = Exec
|
|
|
12
12
|
* @format int64
|
|
13
13
|
*/
|
|
14
14
|
created_at: number;
|
|
15
|
+
/**
|
|
16
|
+
* Static one-line attestation description derived from attestor type.
|
|
17
|
+
*/
|
|
18
|
+
description?: string;
|
|
15
19
|
execution_context?: T0;
|
|
16
20
|
/**
|
|
17
21
|
* GitOID SHA-256 digest.
|
|
@@ -21,6 +25,14 @@ export interface AttestationListingResponse<T0 extends ExecutionContextV2 = Exec
|
|
|
21
25
|
* Document id (MongoDB uuid).
|
|
22
26
|
*/
|
|
23
27
|
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Organization identifier the attestation belongs to.
|
|
30
|
+
*/
|
|
31
|
+
org?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Project identifier the attestation belongs to.
|
|
34
|
+
*/
|
|
35
|
+
project?: string;
|
|
24
36
|
source: AttestationSource;
|
|
25
37
|
/**
|
|
26
38
|
* Ingestion status (e.g. PENDING, INDEXED).
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Type/category of the attestation
|
|
3
3
|
* @default "Custom"
|
|
4
4
|
*/
|
|
5
|
-
export type AttestationType = 'Build' | 'Code' | 'Custom' | 'Deploy' | 'Security' | 'SecurityScan' | 'Test';
|
|
5
|
+
export type AttestationType = 'AIAgent' | 'Build' | 'Code' | 'Custom' | 'Deploy' | 'Security' | 'SecurityScan' | 'Test';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Artifact } from '../schemas/Artifact';
|
|
2
|
+
import type { AttestationType } from '../schemas/AttestationType';
|
|
3
|
+
export interface AttestationsByArtifactRequest {
|
|
4
|
+
artifact: Artifact;
|
|
5
|
+
/**
|
|
6
|
+
* Filter by attestation types. Code and Test types trigger commithash-based resolution from the Build attestation.
|
|
7
|
+
*/
|
|
8
|
+
types?: AttestationType[];
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AttestationListingResponse } from '../schemas/AttestationListingResponse';
|
|
2
|
+
export interface AttestationsByArtifactResponse {
|
|
3
|
+
/**
|
|
4
|
+
* The resolved internal artifact identifier used to fetch attestations.
|
|
5
|
+
*/
|
|
6
|
+
artifact_id: string;
|
|
7
|
+
/**
|
|
8
|
+
* All attestations resolved for the requested artifact and lineage.
|
|
9
|
+
*/
|
|
10
|
+
attestations: AttestationListingResponse[];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,6 +2,7 @@ import type { PipelineDetails } from '../schemas/PipelineDetails';
|
|
|
2
2
|
import type { RepositoryPlatform } from '../schemas/RepositoryPlatform';
|
|
3
3
|
import type { RiskAndCompliance } from '../schemas/RiskAndCompliance';
|
|
4
4
|
import type { Scorecard } from '../schemas/Scorecard';
|
|
5
|
+
import type { ScorecardV2 } from '../schemas/ScorecardV2';
|
|
5
6
|
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
6
7
|
import type { ArtifactVariant } from '../schemas/ArtifactVariant';
|
|
7
8
|
export interface CodeRepositoryListingResponse {
|
|
@@ -23,6 +24,7 @@ export interface CodeRepositoryListingResponse {
|
|
|
23
24
|
repository_platform?: RepositoryPlatform;
|
|
24
25
|
risk_and_compliance?: RiskAndCompliance;
|
|
25
26
|
scorecard?: Scorecard;
|
|
27
|
+
scorecard_v2?: ScorecardV2;
|
|
26
28
|
sto_issue_count?: StoIssueCount;
|
|
27
29
|
/**
|
|
28
30
|
* Code Repository URL
|
|
@@ -4,6 +4,7 @@ import type { DriftDetailsDto } from '../schemas/DriftDetailsDto';
|
|
|
4
4
|
import type { RepositoryPlatform } from '../schemas/RepositoryPlatform';
|
|
5
5
|
import type { SbomInfo } from '../schemas/SbomInfo';
|
|
6
6
|
import type { Scorecard } from '../schemas/Scorecard';
|
|
7
|
+
import type { ScorecardV2 } from '../schemas/ScorecardV2';
|
|
7
8
|
import type { ArtifactVariant } from '../schemas/ArtifactVariant';
|
|
8
9
|
import type { Violations } from '../schemas/Violations';
|
|
9
10
|
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
@@ -21,6 +22,7 @@ export interface CodeRepositoryOverview {
|
|
|
21
22
|
repository_platform?: RepositoryPlatform;
|
|
22
23
|
sbom_details?: SbomInfo;
|
|
23
24
|
scorecard?: Scorecard;
|
|
25
|
+
scorecard_v2?: ScorecardV2;
|
|
24
26
|
url: string;
|
|
25
27
|
variant?: ArtifactVariant;
|
|
26
28
|
violations?: Violations;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentSubScores } from '../schemas/ComponentSubScores';
|
|
2
|
+
export interface ComponentScore {
|
|
3
|
+
/**
|
|
4
|
+
* Composite component quality score, 0-100, higher is better
|
|
5
|
+
*/
|
|
6
|
+
composite_score?: number;
|
|
7
|
+
score_version?: string;
|
|
8
|
+
status?: 'COMPLETE' | 'PARTIAL';
|
|
9
|
+
sub_scores?: ComponentSubScores;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ArtifactSbomDriftResponse } from '../schemas/ArtifactSbomDriftResponse';
|
|
2
|
+
import type { ScorecardV2 } from '../schemas/ScorecardV2';
|
|
2
3
|
export interface OrchestrationModelPipeline {
|
|
3
4
|
drift?: ArtifactSbomDriftResponse;
|
|
4
5
|
orchestration_id?: string;
|
|
@@ -6,6 +7,7 @@ export interface OrchestrationModelPipeline {
|
|
|
6
7
|
avg_score?: string;
|
|
7
8
|
max_score?: string;
|
|
8
9
|
};
|
|
10
|
+
scorecard_v2?: ScorecardV2;
|
|
9
11
|
stage_execution_identifier?: string;
|
|
10
12
|
stage_identifier?: string;
|
|
11
13
|
stage_name?: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SbomScoreAppliedCapRule } from '../schemas/SbomScoreAppliedCapRule';
|
|
2
|
+
import type { SbomScoreSubScores } from '../schemas/SbomScoreSubScores';
|
|
3
|
+
export interface SbomScoreDetailV2Response {
|
|
4
|
+
applied_score_cap_rules?: SbomScoreAppliedCapRule[];
|
|
5
|
+
sbom_aggregated_score?: number;
|
|
6
|
+
sbom_final_score?: number;
|
|
7
|
+
sbom_score_coverage_pct?: number;
|
|
8
|
+
/**
|
|
9
|
+
* @format int64
|
|
10
|
+
*/
|
|
11
|
+
sbom_score_last_calculated_at?: number;
|
|
12
|
+
sbom_score_status?: 'COMPLETE' | 'FAILED' | 'IN_PROGRESS' | 'PARTIAL' | 'PENDING' | 'QUEUED';
|
|
13
|
+
sub_scores?: SbomScoreSubScores;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ScorecardV2 {
|
|
2
|
+
/**
|
|
3
|
+
* Weighted aggregate before caps, 0-100
|
|
4
|
+
*/
|
|
5
|
+
sbom_aggregated_score?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Final SBOM score after cap rules, 0-100
|
|
8
|
+
*/
|
|
9
|
+
sbom_final_score?: number;
|
|
10
|
+
sbom_score_coverage_pct?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
sbom_score_last_calculated_at?: number;
|
|
15
|
+
sbom_score_status?: 'COMPLETE' | 'FAILED' | 'IN_PROGRESS' | 'PARTIAL' | 'PENDING' | 'QUEUED';
|
|
16
|
+
}
|