@harnessio/react-ssca-manager-client 0.83.6 → 0.83.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fetcher/index.js +1 -1
- package/dist/ssca-manager/src/services/index.d.ts +17 -2
- package/dist/ssca-manager/src/services/index.js +0 -1
- package/dist/ssca-manager/src/services/requestBodies/AttestationQueryRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/AttestationQueryRequestBodyRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/requestBodies/AttestationUploadRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/AttestationUploadRequestBodyRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/responses/AttestationDownloadResponseResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/AttestationDownloadResponseResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/AttestationQueryResponseResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/AttestationQueryResponseResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/AttestationUploadResponseResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/AttestationUploadResponseResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/GetIntegrationSummaryResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/GetIntegrationSummaryResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/AttestationLinks.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/AttestationLinks.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AttestationUploadRequest.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/AttestationUploadRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AttestationUploadResponseBody.d.ts +31 -0
- package/dist/ssca-manager/src/services/schemas/AttestationUploadResponseBody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/DependencyType.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/DependencyType.js +4 -0
- package/dist/ssca-manager/src/services/schemas/DownloadSignatureResponseBody.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/DsseEnvelope.d.ts +20 -0
- package/dist/ssca-manager/src/services/schemas/DsseEnvelope.js +1 -0
- package/dist/ssca-manager/src/services/schemas/DsseSignature.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/DsseSignature.js +4 -0
- package/dist/ssca-manager/src/services/schemas/GetIntegrationSummaryResponse.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/GetIntegrationSummaryResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/GraphQlError.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/GraphQlError.js +4 -0
- package/dist/ssca-manager/src/services/schemas/GraphQlRequest.d.ts +13 -0
- package/dist/ssca-manager/src/services/schemas/GraphQlRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/GraphQlResponse.d.ts +13 -0
- package/dist/ssca-manager/src/services/schemas/GraphQlResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/OrchestrationOssRisksSummary.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/OrchestrationOssRisksSummary.js +4 -0
- package/dist/ssca-manager/src/services/schemas/OrchestrationSummaryResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/SbomComponentRequestDto.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/StoIssueCount.d.ts +4 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/hooks/useCalculateDriftForArtifactMutation.d.ts +0 -24
- package/dist/ssca-manager/src/services/hooks/useCalculateDriftForArtifactMutation.js +0 -14
package/dist/fetcher/index.js
CHANGED
|
@@ -30,7 +30,7 @@ export function fetcher(options) {
|
|
|
30
30
|
if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) {
|
|
31
31
|
finalUrl = (_a = fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) === null || _a === void 0 ? void 0 : _a.call(fetcherCallbacks, finalUrl);
|
|
32
32
|
}
|
|
33
|
-
let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign({ Authorization: `Bearer ${token}` }, headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
|
|
33
|
+
let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign(Object.assign({}, (token ? { Authorization: `Bearer ${token}` } : {})), headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
|
|
34
34
|
if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.requestInterceptor) {
|
|
35
35
|
request = fetcherCallbacks.requestInterceptor(request.clone());
|
|
36
36
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
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 { CalculateDriftForArtifactErrorResponse, CalculateDriftForArtifactMutationPathParams, CalculateDriftForArtifactOkResponse, CalculateDriftForArtifactProps, CalculateDriftForArtifactRequestBody, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
5
|
-
export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
6
4
|
export type { CheckArtifactAndDeploymentsErrorResponse, CheckArtifactAndDeploymentsMutationPathParams, CheckArtifactAndDeploymentsOkResponse, CheckArtifactAndDeploymentsProps, CheckArtifactAndDeploymentsRequestBody, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
7
5
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
8
6
|
export type { CloseRemediationTrackerErrorResponse, CloseRemediationTrackerMutationPathParams, CloseRemediationTrackerOkResponse, CloseRemediationTrackerProps, } from './hooks/useCloseRemediationTrackerMutation';
|
|
@@ -127,6 +125,8 @@ export type { ArtifactComponentsRequestBodyRequestBody } from './requestBodies/A
|
|
|
127
125
|
export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
|
|
128
126
|
export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
129
127
|
export type { ArtifactSbomDriftRequestBodyRequestBody } from './requestBodies/ArtifactSbomDriftRequestBodyRequestBody';
|
|
128
|
+
export type { AttestationQueryRequestBodyRequestBody } from './requestBodies/AttestationQueryRequestBodyRequestBody';
|
|
129
|
+
export type { AttestationUploadRequestBodyRequestBody } from './requestBodies/AttestationUploadRequestBodyRequestBody';
|
|
130
130
|
export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
|
|
131
131
|
export type { BaselineV2RequestBodyRequestBody } from './requestBodies/BaselineV2RequestBodyRequestBody';
|
|
132
132
|
export type { CodeRepositoryListingRequestBodyRequestBody } from './requestBodies/CodeRepositoryListingRequestBodyRequestBody';
|
|
@@ -180,6 +180,9 @@ export type { ArtifactSbomDriftResponseBodyResponse } from './responses/Artifact
|
|
|
180
180
|
export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomResponseBodyResponse';
|
|
181
181
|
export type { ArtifactSourcesListingResponseResponse } from './responses/ArtifactSourcesListingResponseResponse';
|
|
182
182
|
export type { ArtifactV2ListingResponseBodyResponse } from './responses/ArtifactV2ListingResponseBodyResponse';
|
|
183
|
+
export type { AttestationDownloadResponseResponse } from './responses/AttestationDownloadResponseResponse';
|
|
184
|
+
export type { AttestationQueryResponseResponse } from './responses/AttestationQueryResponseResponse';
|
|
185
|
+
export type { AttestationUploadResponseResponse } from './responses/AttestationUploadResponseResponse';
|
|
183
186
|
export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
|
|
184
187
|
export type { CicdHarnessPipelineResponseBodyResponse } from './responses/CicdHarnessPipelineResponseBodyResponse';
|
|
185
188
|
export type { CicdOverviewResponseBodyResponse } from './responses/CicdOverviewResponseBodyResponse';
|
|
@@ -208,6 +211,7 @@ export type { FetchArtifactsByComplianceIdResponseBodyResponse } from './respons
|
|
|
208
211
|
export type { FetchComplianceResultByArtifactResponseResponse } from './responses/FetchComplianceResultByArtifactResponseResponse';
|
|
209
212
|
export type { FetchComplianceResultResponseBodyResponse } from './responses/FetchComplianceResultResponseBodyResponse';
|
|
210
213
|
export type { FetchIntegrationReposResponseBodyResponse } from './responses/FetchIntegrationReposResponseBodyResponse';
|
|
214
|
+
export type { GetIntegrationSummaryResponseBodyResponse } from './responses/GetIntegrationSummaryResponseBodyResponse';
|
|
211
215
|
export type { HarnessPipelineIntegrationResponseBodyResponse } from './responses/HarnessPipelineIntegrationResponseBodyResponse';
|
|
212
216
|
export type { IntegrationListingResponseBodyResponse } from './responses/IntegrationListingResponseBodyResponse';
|
|
213
217
|
export type { IntegrationStepConfigResponseBodyResponse } from './responses/IntegrationStepConfigResponseBodyResponse';
|
|
@@ -269,6 +273,9 @@ export type { ArtifactV2ListingResponse } from './schemas/ArtifactV2ListingRespo
|
|
|
269
273
|
export type { ArtifactV2Overview } from './schemas/ArtifactV2Overview';
|
|
270
274
|
export type { ArtifactVariant } from './schemas/ArtifactVariant';
|
|
271
275
|
export type { Attestation } from './schemas/Attestation';
|
|
276
|
+
export type { AttestationLinks } from './schemas/AttestationLinks';
|
|
277
|
+
export type { AttestationUploadRequest } from './schemas/AttestationUploadRequest';
|
|
278
|
+
export type { AttestationUploadResponseBody } from './schemas/AttestationUploadResponseBody';
|
|
272
279
|
export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
|
|
273
280
|
export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
|
|
274
281
|
export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
|
|
@@ -329,12 +336,15 @@ export type { CreateTicketResponse } from './schemas/CreateTicketResponse';
|
|
|
329
336
|
export type { CveVulnerability } from './schemas/CveVulnerability';
|
|
330
337
|
export type { DefaultVulnerability } from './schemas/DefaultVulnerability';
|
|
331
338
|
export type { DeleteRepositoriesRequestBody } from './schemas/DeleteRepositoriesRequestBody';
|
|
339
|
+
export type { DependencyType } from './schemas/DependencyType';
|
|
332
340
|
export type { DeploymentActivity } from './schemas/DeploymentActivity';
|
|
333
341
|
export type { Deployments } from './schemas/Deployments';
|
|
334
342
|
export type { DeploymentsCount } from './schemas/DeploymentsCount';
|
|
335
343
|
export type { DownloadSbomRequest } from './schemas/DownloadSbomRequest';
|
|
336
344
|
export type { DownloadSignatureResponseBody } from './schemas/DownloadSignatureResponseBody';
|
|
337
345
|
export type { DriftDetailsDto } from './schemas/DriftDetailsDto';
|
|
346
|
+
export type { DsseEnvelope } from './schemas/DsseEnvelope';
|
|
347
|
+
export type { DsseSignature } from './schemas/DsseSignature';
|
|
338
348
|
export type { EnforceSbomRequestBody } from './schemas/EnforceSbomRequestBody';
|
|
339
349
|
export type { EnforceSbomRequestBodyV2 } from './schemas/EnforceSbomRequestBodyV2';
|
|
340
350
|
export type { EnforceSbomResponseBody } from './schemas/EnforceSbomResponseBody';
|
|
@@ -355,10 +365,14 @@ export type { ExecutionLimitRequestBody } from './schemas/ExecutionLimitRequestB
|
|
|
355
365
|
export type { ExecutionLimitResponseBody } from './schemas/ExecutionLimitResponseBody';
|
|
356
366
|
export type { ExecutionType } from './schemas/ExecutionType';
|
|
357
367
|
export type { FetchComplianceResultByArtifactResponseBody } from './schemas/FetchComplianceResultByArtifactResponseBody';
|
|
368
|
+
export type { GetIntegrationSummaryResponse } from './schemas/GetIntegrationSummaryResponse';
|
|
358
369
|
export type { GithubExecutionContext } from './schemas/GithubExecutionContext';
|
|
359
370
|
export type { GithubExecutionDetail } from './schemas/GithubExecutionDetail';
|
|
360
371
|
export type { GithubRunner } from './schemas/GithubRunner';
|
|
361
372
|
export type { GithubRunnerDetail } from './schemas/GithubRunnerDetail';
|
|
373
|
+
export type { GraphQlError } from './schemas/GraphQlError';
|
|
374
|
+
export type { GraphQlRequest } from './schemas/GraphQlRequest';
|
|
375
|
+
export type { GraphQlResponse } from './schemas/GraphQlResponse';
|
|
362
376
|
export type { HarnessExecutionContext } from './schemas/HarnessExecutionContext';
|
|
363
377
|
export type { HarnessExecutionDetail } from './schemas/HarnessExecutionDetail';
|
|
364
378
|
export type { HarnessPipelineIntegrationResponse } from './schemas/HarnessPipelineIntegrationResponse';
|
|
@@ -389,6 +403,7 @@ export type { Operator } from './schemas/Operator';
|
|
|
389
403
|
export type { OrchestrationActivity } from './schemas/OrchestrationActivity';
|
|
390
404
|
export type { OrchestrationDriftSummary } from './schemas/OrchestrationDriftSummary';
|
|
391
405
|
export type { OrchestrationModelPipeline } from './schemas/OrchestrationModelPipeline';
|
|
406
|
+
export type { OrchestrationOssRisksSummary } from './schemas/OrchestrationOssRisksSummary';
|
|
392
407
|
export type { OrchestrationScorecardSummary } from './schemas/OrchestrationScorecardSummary';
|
|
393
408
|
export type { OrchestrationStepDriftRequestBody } from './schemas/OrchestrationStepDriftRequestBody';
|
|
394
409
|
export type { OrchestrationSummaryResponse } from './schemas/OrchestrationSummaryResponse';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { artifactListV2, useArtifactListV2Query } from './hooks/useArtifactListV2Query';
|
|
2
|
-
export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
3
2
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
4
3
|
export { closeRemediationTracker, useCloseRemediationTrackerMutation, } from './hooks/useCloseRemediationTrackerMutation';
|
|
5
4
|
export { codeRepositoriesList, useCodeRepositoriesListQuery, } from './hooks/useCodeRepositoriesListQuery';
|
package/dist/ssca-manager/src/services/requestBodies/AttestationQueryRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ssca-manager/src/services/requestBodies/AttestationUploadRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { ComponentFilter } from '../schemas/ComponentFilter';
|
|
2
|
+
import type { DependencyType } from '../schemas/DependencyType';
|
|
2
3
|
import type { LayerType } from '../schemas/LayerType';
|
|
3
4
|
import type { LicenseFilter } from '../schemas/LicenseFilter';
|
|
4
5
|
import type { OwaspFilter } from '../schemas/OwaspFilter';
|
|
5
6
|
export interface ArtifactComponentViewRequestBody {
|
|
6
7
|
component_filter?: ComponentFilter[];
|
|
8
|
+
dependency_type_filter?: DependencyType[];
|
|
7
9
|
image_layer?: LayerType;
|
|
8
10
|
license_filter?: LicenseFilter;
|
|
9
11
|
owasp_filter?: OwaspFilter[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface AttestationLinks {
|
|
2
|
+
/**
|
|
3
|
+
* Download URL for this attestation
|
|
4
|
+
* @example "/orgs/SSCA/projects/SSCA_Sanity/attestations/300cd77..."
|
|
5
|
+
*/
|
|
6
|
+
download?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Graph query URL for related attestations
|
|
9
|
+
* @example "/orgs/SSCA/projects/SSCA_Sanity/attestations/graph?artifactId=68f09..."
|
|
10
|
+
*/
|
|
11
|
+
graph?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Artifact } from '../schemas/Artifact';
|
|
2
|
+
import type { DsseEnvelope } from '../schemas/DsseEnvelope';
|
|
3
|
+
import type { ExecutionDetail } from '../schemas/ExecutionDetail';
|
|
4
|
+
export interface AttestationUploadRequest {
|
|
5
|
+
artifact: Artifact;
|
|
6
|
+
envelope: DsseEnvelope;
|
|
7
|
+
executionContext?: ExecutionDetail;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { AttestationLinks } from '../schemas/AttestationLinks';
|
|
2
|
+
export interface AttestationUploadResponseBody {
|
|
3
|
+
/**
|
|
4
|
+
* Associated artifact identifier
|
|
5
|
+
*/
|
|
6
|
+
artifactId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* GitOID SHA256 digest of the attestation
|
|
9
|
+
* @example "300cd77db87c312b00b2e712d82a7581b20972e6a49e0ed11f4cdd1e2be942a0"
|
|
10
|
+
*/
|
|
11
|
+
gitoidSha256?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether the attestation has been indexed
|
|
14
|
+
*/
|
|
15
|
+
indexed?: boolean;
|
|
16
|
+
links?: AttestationLinks;
|
|
17
|
+
/**
|
|
18
|
+
* Orchestration identifier for this attestation
|
|
19
|
+
*/
|
|
20
|
+
orchestrationId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Ingestion status
|
|
23
|
+
* @example "ingested"
|
|
24
|
+
*/
|
|
25
|
+
status?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the signature was verified
|
|
28
|
+
* @example true
|
|
29
|
+
*/
|
|
30
|
+
verified?: boolean;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DependencyType = 'DIRECT' | 'TRANSITIVE' | 'UNKNOWN';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DsseSignature } from '../schemas/DsseSignature';
|
|
2
|
+
export interface DsseEnvelope {
|
|
3
|
+
/**
|
|
4
|
+
* optional metadata such as source / ingestedBy / timestamp
|
|
5
|
+
*/
|
|
6
|
+
metadata?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* base64-encoded JSON payload (in-toto Statement)
|
|
11
|
+
* @example "eyJfdHlwZSI6ICJod..."
|
|
12
|
+
*/
|
|
13
|
+
payload: string;
|
|
14
|
+
/**
|
|
15
|
+
* MIME type of the payload
|
|
16
|
+
* @example "application/vnd.in-toto+json"
|
|
17
|
+
*/
|
|
18
|
+
payloadType: string;
|
|
19
|
+
signatures?: DsseSignature[];
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface OrchestrationOssRisksSummary {
|
|
2
|
+
close_to_eol_component_count?: number;
|
|
3
|
+
definite_eol_component_count?: number;
|
|
4
|
+
derived_eol_component_count?: number;
|
|
5
|
+
outdated_component_count?: number;
|
|
6
|
+
total_eol_component_count?: number;
|
|
7
|
+
unmaintained_component_count?: number;
|
|
8
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { Artifact } from '../schemas/Artifact';
|
|
2
2
|
import type { OrchestrationDriftSummary } from '../schemas/OrchestrationDriftSummary';
|
|
3
|
+
import type { OrchestrationOssRisksSummary } from '../schemas/OrchestrationOssRisksSummary';
|
|
3
4
|
import type { SbomDetails } from '../schemas/SbomDetails';
|
|
4
5
|
import type { OrchestrationScorecardSummary } from '../schemas/OrchestrationScorecardSummary';
|
|
5
6
|
export interface OrchestrationSummaryResponse {
|
|
6
7
|
artifact?: Artifact;
|
|
7
8
|
drift_summary?: OrchestrationDriftSummary;
|
|
8
9
|
is_attested?: boolean;
|
|
10
|
+
oss_risks_summary?: OrchestrationOssRisksSummary;
|
|
9
11
|
sbom?: SbomDetails;
|
|
10
12
|
scorecard_summary?: OrchestrationScorecardSummary;
|
|
11
13
|
step_execution_id?: string;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import type { DependencyType } from '../schemas/DependencyType';
|
|
1
2
|
import type { LayerType } from '../schemas/LayerType';
|
|
2
3
|
/**
|
|
3
4
|
* Normalized SBOM Component Details
|
|
4
5
|
*/
|
|
5
6
|
export interface SbomComponentRequestDto {
|
|
7
|
+
dependency_type?: DependencyType;
|
|
8
|
+
file_path?: string;
|
|
6
9
|
filter_tags?: LayerType[];
|
|
7
10
|
language?: string;
|
|
8
11
|
major_version?: number;
|
|
@@ -23,6 +23,10 @@ export interface StoIssueCount {
|
|
|
23
23
|
* The number of Informational Issues
|
|
24
24
|
*/
|
|
25
25
|
info?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Identifier used in sto module to identify an issue.
|
|
28
|
+
*/
|
|
29
|
+
issue_id?: string;
|
|
26
30
|
/**
|
|
27
31
|
* Timestamp at which the target variant was last scanned
|
|
28
32
|
*/
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ArtifactSbomDriftResponseBodyResponse } from '../responses/ArtifactSbomDriftResponseBodyResponse';
|
|
3
|
-
import type { ArtifactSbomDriftRequestBody } from '../schemas/ArtifactSbomDriftRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface CalculateDriftForArtifactMutationPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
artifact: string;
|
|
10
|
-
}
|
|
11
|
-
export interface CalculateDriftForArtifactMutationHeaderParams {
|
|
12
|
-
'Harness-Account': string;
|
|
13
|
-
}
|
|
14
|
-
export type CalculateDriftForArtifactRequestBody = ArtifactSbomDriftRequestBody;
|
|
15
|
-
export type CalculateDriftForArtifactOkResponse = ResponseWithPagination<ArtifactSbomDriftResponseBodyResponse>;
|
|
16
|
-
export type CalculateDriftForArtifactErrorResponse = unknown;
|
|
17
|
-
export interface CalculateDriftForArtifactProps extends CalculateDriftForArtifactMutationPathParams, Omit<FetcherOptions<unknown, CalculateDriftForArtifactRequestBody, CalculateDriftForArtifactMutationHeaderParams>, 'url'> {
|
|
18
|
-
body: CalculateDriftForArtifactRequestBody;
|
|
19
|
-
}
|
|
20
|
-
export declare function calculateDriftForArtifact(props: CalculateDriftForArtifactProps): Promise<CalculateDriftForArtifactOkResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* This API calculates and stores drift between 2 versions of an artifact with TTL of 1 hour.
|
|
23
|
-
*/
|
|
24
|
-
export declare function useCalculateDriftForArtifactMutation(options?: Omit<UseMutationOptions<CalculateDriftForArtifactOkResponse, CalculateDriftForArtifactErrorResponse, CalculateDriftForArtifactProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CalculateDriftForArtifactOkResponse, unknown, CalculateDriftForArtifactProps, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
-
// Please do not modify this code directly.
|
|
4
|
-
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function calculateDriftForArtifact(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact/${props.artifact}/sbom-drift`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* This API calculates and stores drift between 2 versions of an artifact with TTL of 1 hour.
|
|
11
|
-
*/
|
|
12
|
-
export function useCalculateDriftForArtifactMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => calculateDriftForArtifact(mutateProps), options);
|
|
14
|
-
}
|