@harnessio/react-ssca-manager-client 0.84.42 → 0.84.44
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/useGetOssScoringCapConfigQuery.d.ts +21 -0
- package/dist/ssca-manager/src/services/hooks/useGetOssScoringCapConfigQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetSbomScoreDetailV2Query.d.ts +21 -0
- package/dist/ssca-manager/src/services/hooks/useGetSbomScoreDetailV2Query.js +14 -0
- 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/hooks/useSaveOssScoringCapConfigQuery.d.ts +19 -0
- package/dist/ssca-manager/src/services/hooks/useSaveOssScoringCapConfigQuery.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +6 -0
- package/dist/ssca-manager/src/services/index.js +3 -0
- package/dist/ssca-manager/src/services/schemas/AffectedArtifactInfo.d.ts +8 -0
- 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/dist/ssca-manager/src/services/schemas/TriageFindingDetail.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/TriageFindingSummary.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OssScoringCapConfigResponseBodyResponse } from '../responses/OssScoringCapConfigResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetOssScoringCapConfigQueryQueryParams {
|
|
6
|
+
org?: string;
|
|
7
|
+
project?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetOssScoringCapConfigQueryHeaderParams {
|
|
10
|
+
'Harness-Account': string;
|
|
11
|
+
}
|
|
12
|
+
export type GetOssScoringCapConfigOkResponse = ResponseWithPagination<OssScoringCapConfigResponseBodyResponse>;
|
|
13
|
+
export type GetOssScoringCapConfigErrorResponse = unknown;
|
|
14
|
+
export interface GetOssScoringCapConfigProps extends Omit<FetcherOptions<GetOssScoringCapConfigQueryQueryParams, unknown, GetOssScoringCapConfigQueryHeaderParams>, 'url'> {
|
|
15
|
+
queryParams: GetOssScoringCapConfigQueryQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export declare function getOssScoringCapConfig(props: GetOssScoringCapConfigProps): Promise<GetOssScoringCapConfigOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get OSS Scoring Cap Config
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetOssScoringCapConfigQuery(props: GetOssScoringCapConfigProps, options?: Omit<UseQueryOptions<GetOssScoringCapConfigOkResponse, GetOssScoringCapConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOssScoringCapConfigOkResponse, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getOssScoringCapConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ssca-config/oss-scoring-cap/config`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get OSS Scoring Cap Config
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOssScoringCapConfigQuery(props, options) {
|
|
13
|
+
return useQuery(['getOssScoringCapConfig', props.queryParams], ({ signal }) => getOssScoringCapConfig(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SbomScoreDetailV2ResponseBodyResponse } from '../responses/SbomScoreDetailV2ResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetSbomScoreDetailV2QueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
orchestration: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetSbomScoreDetailV2QueryHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
12
|
+
}
|
|
13
|
+
export type GetSbomScoreDetailV2OkResponse = ResponseWithPagination<SbomScoreDetailV2ResponseBodyResponse>;
|
|
14
|
+
export type GetSbomScoreDetailV2ErrorResponse = unknown;
|
|
15
|
+
export interface GetSbomScoreDetailV2Props extends GetSbomScoreDetailV2QueryPathParams, Omit<FetcherOptions<unknown, unknown, GetSbomScoreDetailV2QueryHeaderParams>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function getSbomScoreDetailV2(props: GetSbomScoreDetailV2Props): Promise<GetSbomScoreDetailV2OkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Returns the detailed SBOM score v2 (sub-scores, weights, and applied cap rules) for the given orchestration, used by the SBOM sidecar.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetSbomScoreDetailV2Query(props: GetSbomScoreDetailV2Props, options?: Omit<UseQueryOptions<GetSbomScoreDetailV2OkResponse, GetSbomScoreDetailV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetSbomScoreDetailV2OkResponse, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getSbomScoreDetailV2(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/orchestration/${props.orchestration}/sbom-score-detail`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the detailed SBOM score v2 (sub-scores, weights, and applied cap rules) for the given orchestration, used by the SBOM sidecar.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetSbomScoreDetailV2Query(props, options) {
|
|
13
|
+
return useQuery(['getSbomScoreDetailV2', props.org, props.project, props.orchestration], ({ signal }) => getSbomScoreDetailV2(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -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);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OssScoringCapConfigResponseBodyResponse } from '../responses/OssScoringCapConfigResponseBodyResponse';
|
|
3
|
+
import type { OssScoringCapConfigRequestBodyRequestBody } from '../requestBodies/OssScoringCapConfigRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface SaveOssScoringCapConfigQueryHeaderParams {
|
|
7
|
+
'Harness-Account': string;
|
|
8
|
+
}
|
|
9
|
+
export type SaveOssScoringCapConfigRequestBody = OssScoringCapConfigRequestBodyRequestBody;
|
|
10
|
+
export type SaveOssScoringCapConfigOkResponse = ResponseWithPagination<OssScoringCapConfigResponseBodyResponse>;
|
|
11
|
+
export type SaveOssScoringCapConfigErrorResponse = unknown;
|
|
12
|
+
export interface SaveOssScoringCapConfigProps extends Omit<FetcherOptions<unknown, SaveOssScoringCapConfigRequestBody, SaveOssScoringCapConfigQueryHeaderParams>, 'url'> {
|
|
13
|
+
body: SaveOssScoringCapConfigRequestBody;
|
|
14
|
+
}
|
|
15
|
+
export declare function saveOssScoringCapConfig(props: SaveOssScoringCapConfigProps): Promise<SaveOssScoringCapConfigOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Save OSS Scoring Cap Config
|
|
18
|
+
*/
|
|
19
|
+
export declare function useSaveOssScoringCapConfigQuery(props: SaveOssScoringCapConfigProps, options?: Omit<UseQueryOptions<SaveOssScoringCapConfigOkResponse, SaveOssScoringCapConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SaveOssScoringCapConfigOkResponse, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function saveOssScoringCapConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ssca-config/oss-scoring-cap/config`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Save OSS Scoring Cap Config
|
|
11
|
+
*/
|
|
12
|
+
export function useSaveOssScoringCapConfigQuery(props, options) {
|
|
13
|
+
return useQuery(['saveOssScoringCapConfig', props.body], ({ signal }) => saveOssScoringCapConfig(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -147,6 +147,8 @@ export type { GetLicenseDriftErrorResponse, GetLicenseDriftOkResponse, GetLicens
|
|
|
147
147
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
148
148
|
export type { GetLicenseFamilyConfigErrorResponse, GetLicenseFamilyConfigOkResponse, GetLicenseFamilyConfigProps, GetLicenseFamilyConfigQueryPathParams, } from './hooks/useGetLicenseFamilyConfigQuery';
|
|
149
149
|
export { getLicenseFamilyConfig, useGetLicenseFamilyConfigQuery, } from './hooks/useGetLicenseFamilyConfigQuery';
|
|
150
|
+
export type { GetOssScoringCapConfigErrorResponse, GetOssScoringCapConfigOkResponse, GetOssScoringCapConfigProps, GetOssScoringCapConfigQueryQueryParams, } from './hooks/useGetOssScoringCapConfigQuery';
|
|
151
|
+
export { getOssScoringCapConfig, useGetOssScoringCapConfigQuery, } from './hooks/useGetOssScoringCapConfigQuery';
|
|
150
152
|
export type { GetOverallSummaryErrorResponse, GetOverallSummaryOkResponse, GetOverallSummaryProps, GetOverallSummaryQueryPathParams, } from './hooks/useGetOverallSummaryQuery';
|
|
151
153
|
export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
|
|
152
154
|
export type { GetPipelineArtifactListErrorResponse, GetPipelineArtifactListOkResponse, GetPipelineArtifactListProps, GetPipelineArtifactListQueryPathParams, GetPipelineArtifactListRequestBody, } from './hooks/useGetPipelineArtifactListQuery';
|
|
@@ -159,6 +161,8 @@ export type { GetRemediationDetailsErrorResponse, GetRemediationDetailsOkRespons
|
|
|
159
161
|
export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/useGetRemediationDetailsQuery';
|
|
160
162
|
export type { GetRepoRulesEvaluationTrendErrorResponse, GetRepoRulesEvaluationTrendOkResponse, GetRepoRulesEvaluationTrendProps, GetRepoRulesEvaluationTrendQueryPathParams, GetRepoRulesEvaluationTrendQueryQueryParams, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
|
|
161
163
|
export { getRepoRulesEvaluationTrend, useGetRepoRulesEvaluationTrendQuery, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
|
|
164
|
+
export type { GetSbomScoreDetailV2ErrorResponse, GetSbomScoreDetailV2OkResponse, GetSbomScoreDetailV2Props, GetSbomScoreDetailV2QueryPathParams, } from './hooks/useGetSbomScoreDetailV2Query';
|
|
165
|
+
export { getSbomScoreDetailV2, useGetSbomScoreDetailV2Query, } from './hooks/useGetSbomScoreDetailV2Query';
|
|
162
166
|
export type { GetSbomScorecardErrorResponse, GetSbomScorecardOkResponse, GetSbomScorecardProps, GetSbomScorecardQueryPathParams, } from './hooks/useGetSbomScorecardQuery';
|
|
163
167
|
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
164
168
|
export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSummaryProps, GetSscaSummaryQueryPathParams, } from './hooks/useGetSscaSummaryQuery';
|
|
@@ -189,6 +193,8 @@ export type { SaveAutoPrConfigErrorResponse, SaveAutoPrConfigOkResponse, SaveAut
|
|
|
189
193
|
export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
|
|
190
194
|
export type { SaveConnectorConfigErrorResponse, SaveConnectorConfigOkResponse, SaveConnectorConfigProps, SaveConnectorConfigRequestBody, } from './hooks/useSaveConnectorConfigMutation';
|
|
191
195
|
export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
|
|
196
|
+
export type { SaveOssScoringCapConfigErrorResponse, SaveOssScoringCapConfigOkResponse, SaveOssScoringCapConfigProps, SaveOssScoringCapConfigRequestBody, } from './hooks/useSaveOssScoringCapConfigQuery';
|
|
197
|
+
export { saveOssScoringCapConfig, useSaveOssScoringCapConfigQuery, } from './hooks/useSaveOssScoringCapConfigQuery';
|
|
192
198
|
export type { SetBaselineForArtifactV2ErrorResponse, SetBaselineForArtifactV2MutationPathParams, SetBaselineForArtifactV2OkResponse, SetBaselineForArtifactV2Props, SetBaselineForArtifactV2RequestBody, } from './hooks/useSetBaselineForArtifactV2Mutation';
|
|
193
199
|
export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
|
|
194
200
|
export type { SscaLicenseUsageErrorResponse, SscaLicenseUsageOkResponse, SscaLicenseUsageProps, SscaLicenseUsageQueryQueryParams, } from './hooks/useSscaLicenseUsageQuery';
|
|
@@ -72,12 +72,14 @@ export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGe
|
|
|
72
72
|
export { getIntegrationsConfig, useGetIntegrationsConfigQuery, } from './hooks/useGetIntegrationsConfigQuery';
|
|
73
73
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
74
74
|
export { getLicenseFamilyConfig, useGetLicenseFamilyConfigQuery, } from './hooks/useGetLicenseFamilyConfigQuery';
|
|
75
|
+
export { getOssScoringCapConfig, useGetOssScoringCapConfigQuery, } from './hooks/useGetOssScoringCapConfigQuery';
|
|
75
76
|
export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
|
|
76
77
|
export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
|
|
77
78
|
export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
|
|
78
79
|
export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
|
|
79
80
|
export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/useGetRemediationDetailsQuery';
|
|
80
81
|
export { getRepoRulesEvaluationTrend, useGetRepoRulesEvaluationTrendQuery, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
|
|
82
|
+
export { getSbomScoreDetailV2, useGetSbomScoreDetailV2Query, } from './hooks/useGetSbomScoreDetailV2Query';
|
|
81
83
|
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
82
84
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
83
85
|
export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
|
|
@@ -93,6 +95,7 @@ export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from '
|
|
|
93
95
|
export { saveAccountAiWorkflowConfig, useSaveAccountAiWorkflowConfigMutation, } from './hooks/useSaveAccountAiWorkflowConfigMutation';
|
|
94
96
|
export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
|
|
95
97
|
export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
|
|
98
|
+
export { saveOssScoringCapConfig, useSaveOssScoringCapConfigQuery, } from './hooks/useSaveOssScoringCapConfigQuery';
|
|
96
99
|
export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
|
|
97
100
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
98
101
|
export { toggleAgentStatus, useToggleAgentStatusMutation, } from './hooks/useToggleAgentStatusMutation';
|
|
@@ -42,10 +42,18 @@ export interface AffectedArtifactInfo {
|
|
|
42
42
|
* Package URL of the affected component (used in create-PR flow)
|
|
43
43
|
*/
|
|
44
44
|
purl?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Whether this target can be remediated (null = not yet checked)
|
|
47
|
+
*/
|
|
48
|
+
remediation_eligible?: boolean;
|
|
45
49
|
/**
|
|
46
50
|
* Error message when remediation failed
|
|
47
51
|
*/
|
|
48
52
|
remediation_error_message?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Reason why remediation is not possible (only set when eligible=false)
|
|
55
|
+
*/
|
|
56
|
+
remediation_ineligible_reason?: 'connector_invalid' | 'file_not_found' | 'no_file_path' | 'purl_invalid' | 'unknown_error' | 'unsupported_ecosystem';
|
|
49
57
|
/**
|
|
50
58
|
* URL of the created remediation pull request (present when status is PR_CREATED or REMEDIATED)
|
|
51
59
|
*/
|
|
@@ -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
|
}
|
|
@@ -16,6 +16,10 @@ export interface TriageFindingDetail {
|
|
|
16
16
|
*/
|
|
17
17
|
scan_tool?: string;
|
|
18
18
|
step_executions?: AiWorkflowStepExecution[];
|
|
19
|
+
/**
|
|
20
|
+
* Scan subproduct that produced the originating scan (pairs with scan_tool, e.g. iac, container)
|
|
21
|
+
*/
|
|
22
|
+
subproduct?: string;
|
|
19
23
|
target_id?: string;
|
|
20
24
|
target_name?: string;
|
|
21
25
|
triggering_pipeline_execution_id?: string;
|
|
@@ -11,6 +11,10 @@ export interface TriageFindingSummary {
|
|
|
11
11
|
* Scanner/product name that produced the originating scan (e.g. Bandit, Aqua Trivy)
|
|
12
12
|
*/
|
|
13
13
|
scan_tool?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Scan subproduct that produced the originating scan (pairs with scan_tool, e.g. iac, container)
|
|
16
|
+
*/
|
|
17
|
+
subproduct?: string;
|
|
14
18
|
target_id?: string;
|
|
15
19
|
target_name?: string;
|
|
16
20
|
triggering_pipeline_execution_id?: string;
|