@harnessio/react-ssca-manager-client 0.84.39 → 0.84.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ssca-manager/src/services/index.d.ts +19 -0
- 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 -0
- 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/AttestationListingResponse.d.ts +4 -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
|
@@ -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.
|
|
@@ -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
|
+
}
|
|
@@ -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.
|
|
@@ -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
|
+
}
|