@harnessio/react-ssca-manager-client 0.84.42 → 0.84.43
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/useListAttestationsMutation.d.ts +1 -1
- package/dist/ssca-manager/src/services/hooks/useListAttestationsMutation.js +1 -1
- package/dist/ssca-manager/src/services/schemas/ArtifactV2ListingResponse.d.ts +4 -1
- package/dist/ssca-manager/src/services/schemas/ArtifactV2Overview.d.ts +4 -1
- package/dist/ssca-manager/src/services/schemas/AttestationAiSummaryRequest.d.ts +2 -2
- package/package.json +1 -1
|
@@ -37,6 +37,6 @@ export interface ListAttestationsProps extends Omit<FetcherOptions<ListAttestati
|
|
|
37
37
|
}
|
|
38
38
|
export declare function listAttestations(props: ListAttestationsProps): Promise<ListAttestationsOkResponse>;
|
|
39
39
|
/**
|
|
40
|
-
* List attestations at account, org, or project scope
|
|
40
|
+
* List attestations at account, org, or project scope. Scope is determined by the optional org and project query parameters.
|
|
41
41
|
*/
|
|
42
42
|
export declare function useListAttestationsMutation(options?: Omit<UseMutationOptions<ListAttestationsOkResponse, ListAttestationsErrorResponse, ListAttestationsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ListAttestationsOkResponse, unknown, ListAttestationsProps, unknown>;
|
|
@@ -7,7 +7,7 @@ export function listAttestations(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v2/attestations`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* List attestations at account, org, or project scope
|
|
10
|
+
* List attestations at account, org, or project scope. Scope is determined by the optional org and project query parameters.
|
|
11
11
|
*/
|
|
12
12
|
export function useListAttestationsMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => listAttestations(mutateProps), options);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { ArtifactTypeData } from '../schemas/ArtifactTypeData';
|
|
2
|
+
import type { ExecutionContextV2 } from '../schemas/ExecutionContextV2';
|
|
2
3
|
import type { ScorecardV2 } from '../schemas/ScorecardV2';
|
|
3
4
|
import type { IntegrityVerification } from '../schemas/IntegrityVerification';
|
|
4
5
|
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
5
|
-
export interface ArtifactV2ListingResponse {
|
|
6
|
+
export interface ArtifactV2ListingResponse<T0 extends ExecutionContextV2 = ExecutionContextV2, T1 extends ExecutionContextV2 = ExecutionContextV2> {
|
|
6
7
|
artifact_type?: ArtifactTypeData;
|
|
7
8
|
/**
|
|
8
9
|
* Number of components of the artifact
|
|
@@ -61,6 +62,7 @@ export interface ArtifactV2ListingResponse {
|
|
|
61
62
|
*/
|
|
62
63
|
id?: string;
|
|
63
64
|
};
|
|
65
|
+
sbom_orchestration_execution_context?: T0;
|
|
64
66
|
scorecard?: {
|
|
65
67
|
/**
|
|
66
68
|
* Average score of the artifact SBOM
|
|
@@ -73,6 +75,7 @@ export interface ArtifactV2ListingResponse {
|
|
|
73
75
|
};
|
|
74
76
|
scorecard_v2?: ScorecardV2;
|
|
75
77
|
signing?: IntegrityVerification;
|
|
78
|
+
signing_execution_context?: T1;
|
|
76
79
|
sto_issue_count?: StoIssueCount;
|
|
77
80
|
tags?: string[];
|
|
78
81
|
/**
|
|
@@ -2,13 +2,14 @@ import type { ArtifactTypeData } from '../schemas/ArtifactTypeData';
|
|
|
2
2
|
import type { Deployments } from '../schemas/Deployments';
|
|
3
3
|
import type { PipelineDetails } from '../schemas/PipelineDetails';
|
|
4
4
|
import type { SbomInfo } from '../schemas/SbomInfo';
|
|
5
|
+
import type { ExecutionContextV2 } from '../schemas/ExecutionContextV2';
|
|
5
6
|
import type { Scorecard } from '../schemas/Scorecard';
|
|
6
7
|
import type { ScorecardV2 } from '../schemas/ScorecardV2';
|
|
7
8
|
import type { IntegrityVerification } from '../schemas/IntegrityVerification';
|
|
8
9
|
import type { SlsaDetails } from '../schemas/SlsaDetails';
|
|
9
10
|
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
10
11
|
import type { Violations } from '../schemas/Violations';
|
|
11
|
-
export interface ArtifactV2Overview {
|
|
12
|
+
export interface ArtifactV2Overview<T0 extends ExecutionContextV2 = ExecutionContextV2, T1 extends ExecutionContextV2 = ExecutionContextV2> {
|
|
12
13
|
artifact_type?: ArtifactTypeData;
|
|
13
14
|
deployments?: Deployments;
|
|
14
15
|
/**
|
|
@@ -28,9 +29,11 @@ export interface ArtifactV2Overview {
|
|
|
28
29
|
name: string;
|
|
29
30
|
pipeline_details?: PipelineDetails;
|
|
30
31
|
sbom_details?: SbomInfo;
|
|
32
|
+
sbom_orchestration_execution_context?: T0;
|
|
31
33
|
scorecard?: Scorecard;
|
|
32
34
|
scorecard_v2?: ScorecardV2;
|
|
33
35
|
signing?: IntegrityVerification;
|
|
36
|
+
signing_execution_context?: T1;
|
|
34
37
|
slsa_details?: SlsaDetails;
|
|
35
38
|
source_id?: string;
|
|
36
39
|
sto_issue_count?: StoIssueCount;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AttestationDetailsResponse } from '../schemas/AttestationDetailsResponse';
|
|
2
2
|
/**
|
|
3
3
|
* Request body for generating an AI summary of an attestation.
|
|
4
4
|
*/
|
|
5
5
|
export interface AttestationAiSummaryRequest {
|
|
6
|
-
attestation:
|
|
6
|
+
attestation: AttestationDetailsResponse;
|
|
7
7
|
}
|