@harnessio/react-ssca-manager-client 0.83.7 → 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.
Files changed (33) hide show
  1. package/dist/fetcher/index.js +1 -1
  2. package/dist/ssca-manager/src/services/index.d.ts +14 -0
  3. package/dist/ssca-manager/src/services/requestBodies/AttestationQueryRequestBodyRequestBody.d.ts +2 -0
  4. package/dist/ssca-manager/src/services/requestBodies/AttestationQueryRequestBodyRequestBody.js +1 -0
  5. package/dist/ssca-manager/src/services/requestBodies/AttestationUploadRequestBodyRequestBody.d.ts +2 -0
  6. package/dist/ssca-manager/src/services/requestBodies/AttestationUploadRequestBodyRequestBody.js +1 -0
  7. package/dist/ssca-manager/src/services/responses/AttestationDownloadResponseResponse.d.ts +2 -0
  8. package/dist/ssca-manager/src/services/responses/AttestationDownloadResponseResponse.js +1 -0
  9. package/dist/ssca-manager/src/services/responses/AttestationQueryResponseResponse.d.ts +2 -0
  10. package/dist/ssca-manager/src/services/responses/AttestationQueryResponseResponse.js +1 -0
  11. package/dist/ssca-manager/src/services/responses/AttestationUploadResponseResponse.d.ts +2 -0
  12. package/dist/ssca-manager/src/services/responses/AttestationUploadResponseResponse.js +1 -0
  13. package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewRequestBody.d.ts +2 -0
  14. package/dist/ssca-manager/src/services/schemas/AttestationLinks.d.ts +12 -0
  15. package/dist/ssca-manager/src/services/schemas/AttestationLinks.js +4 -0
  16. package/dist/ssca-manager/src/services/schemas/AttestationUploadRequest.d.ts +8 -0
  17. package/dist/ssca-manager/src/services/schemas/AttestationUploadRequest.js +1 -0
  18. package/dist/ssca-manager/src/services/schemas/AttestationUploadResponseBody.d.ts +31 -0
  19. package/dist/ssca-manager/src/services/schemas/AttestationUploadResponseBody.js +1 -0
  20. package/dist/ssca-manager/src/services/schemas/DependencyType.d.ts +1 -0
  21. package/dist/ssca-manager/src/services/schemas/DependencyType.js +4 -0
  22. package/dist/ssca-manager/src/services/schemas/DsseEnvelope.d.ts +20 -0
  23. package/dist/ssca-manager/src/services/schemas/DsseEnvelope.js +1 -0
  24. package/dist/ssca-manager/src/services/schemas/DsseSignature.d.ts +12 -0
  25. package/dist/ssca-manager/src/services/schemas/DsseSignature.js +4 -0
  26. package/dist/ssca-manager/src/services/schemas/GraphQlError.d.ts +11 -0
  27. package/dist/ssca-manager/src/services/schemas/GraphQlError.js +4 -0
  28. package/dist/ssca-manager/src/services/schemas/GraphQlRequest.d.ts +13 -0
  29. package/dist/ssca-manager/src/services/schemas/GraphQlRequest.js +4 -0
  30. package/dist/ssca-manager/src/services/schemas/GraphQlResponse.d.ts +13 -0
  31. package/dist/ssca-manager/src/services/schemas/GraphQlResponse.js +1 -0
  32. package/dist/ssca-manager/src/services/schemas/SbomComponentRequestDto.d.ts +3 -0
  33. package/package.json +1 -1
@@ -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
  }
@@ -125,6 +125,8 @@ export type { ArtifactComponentsRequestBodyRequestBody } from './requestBodies/A
125
125
  export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
126
126
  export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
127
127
  export type { ArtifactSbomDriftRequestBodyRequestBody } from './requestBodies/ArtifactSbomDriftRequestBodyRequestBody';
128
+ export type { AttestationQueryRequestBodyRequestBody } from './requestBodies/AttestationQueryRequestBodyRequestBody';
129
+ export type { AttestationUploadRequestBodyRequestBody } from './requestBodies/AttestationUploadRequestBodyRequestBody';
128
130
  export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
129
131
  export type { BaselineV2RequestBodyRequestBody } from './requestBodies/BaselineV2RequestBodyRequestBody';
130
132
  export type { CodeRepositoryListingRequestBodyRequestBody } from './requestBodies/CodeRepositoryListingRequestBodyRequestBody';
@@ -178,6 +180,9 @@ export type { ArtifactSbomDriftResponseBodyResponse } from './responses/Artifact
178
180
  export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomResponseBodyResponse';
179
181
  export type { ArtifactSourcesListingResponseResponse } from './responses/ArtifactSourcesListingResponseResponse';
180
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';
181
186
  export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
182
187
  export type { CicdHarnessPipelineResponseBodyResponse } from './responses/CicdHarnessPipelineResponseBodyResponse';
183
188
  export type { CicdOverviewResponseBodyResponse } from './responses/CicdOverviewResponseBodyResponse';
@@ -268,6 +273,9 @@ export type { ArtifactV2ListingResponse } from './schemas/ArtifactV2ListingRespo
268
273
  export type { ArtifactV2Overview } from './schemas/ArtifactV2Overview';
269
274
  export type { ArtifactVariant } from './schemas/ArtifactVariant';
270
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';
271
279
  export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
272
280
  export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
273
281
  export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
@@ -328,12 +336,15 @@ export type { CreateTicketResponse } from './schemas/CreateTicketResponse';
328
336
  export type { CveVulnerability } from './schemas/CveVulnerability';
329
337
  export type { DefaultVulnerability } from './schemas/DefaultVulnerability';
330
338
  export type { DeleteRepositoriesRequestBody } from './schemas/DeleteRepositoriesRequestBody';
339
+ export type { DependencyType } from './schemas/DependencyType';
331
340
  export type { DeploymentActivity } from './schemas/DeploymentActivity';
332
341
  export type { Deployments } from './schemas/Deployments';
333
342
  export type { DeploymentsCount } from './schemas/DeploymentsCount';
334
343
  export type { DownloadSbomRequest } from './schemas/DownloadSbomRequest';
335
344
  export type { DownloadSignatureResponseBody } from './schemas/DownloadSignatureResponseBody';
336
345
  export type { DriftDetailsDto } from './schemas/DriftDetailsDto';
346
+ export type { DsseEnvelope } from './schemas/DsseEnvelope';
347
+ export type { DsseSignature } from './schemas/DsseSignature';
337
348
  export type { EnforceSbomRequestBody } from './schemas/EnforceSbomRequestBody';
338
349
  export type { EnforceSbomRequestBodyV2 } from './schemas/EnforceSbomRequestBodyV2';
339
350
  export type { EnforceSbomResponseBody } from './schemas/EnforceSbomResponseBody';
@@ -359,6 +370,9 @@ 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';
@@ -0,0 +1,2 @@
1
+ import type { GraphQlRequest } from '../schemas/GraphQlRequest';
2
+ export type AttestationQueryRequestBodyRequestBody = GraphQlRequest;
@@ -0,0 +1,2 @@
1
+ import type { AttestationUploadRequest } from '../schemas/AttestationUploadRequest';
2
+ export type AttestationUploadRequestBodyRequestBody = AttestationUploadRequest;
@@ -0,0 +1,2 @@
1
+ import type { DsseEnvelope } from '../schemas/DsseEnvelope';
2
+ export type AttestationDownloadResponseResponse = DsseEnvelope;
@@ -0,0 +1,2 @@
1
+ import type { GraphQlResponse } from '../schemas/GraphQlResponse';
2
+ export type AttestationQueryResponseResponse = GraphQlResponse;
@@ -0,0 +1,2 @@
1
+ import type { AttestationUploadResponseBody } from '../schemas/AttestationUploadResponseBody';
2
+ export type AttestationUploadResponseResponse = AttestationUploadResponseBody;
@@ -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,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -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,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 type DependencyType = 'DIRECT' | 'TRANSITIVE' | 'UNKNOWN';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -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,12 @@
1
+ export interface DsseSignature {
2
+ /**
3
+ * Identifier of the signing key
4
+ * @example "harness-ci-signer"
5
+ */
6
+ keyid?: string;
7
+ /**
8
+ * Base64-encoded signature
9
+ * @example "MEUCIQ..."
10
+ */
11
+ sig?: string;
12
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,11 @@
1
+ export interface GraphQlError {
2
+ locations?: Array<{
3
+ column?: number;
4
+ line?: number;
5
+ }>;
6
+ /**
7
+ * Error message
8
+ */
9
+ message?: string;
10
+ path?: string[];
11
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,13 @@
1
+ export interface GraphQlRequest {
2
+ /**
3
+ * GraphQL query string
4
+ * @example "{ dsses(first:10) { edges { node { gitoidSha256 } } } }"
5
+ */
6
+ query: string;
7
+ /**
8
+ * Optional GraphQL variables
9
+ */
10
+ variables?: {
11
+ [key: string]: any;
12
+ };
13
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { GraphQlError } from '../schemas/GraphQlError';
2
+ export interface GraphQlResponse {
3
+ /**
4
+ * GraphQL response data
5
+ */
6
+ data?: {
7
+ [key: string]: any;
8
+ };
9
+ /**
10
+ * GraphQL errors if any
11
+ */
12
+ errors?: GraphQlError[];
13
+ }
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.83.7",
3
+ "version": "0.83.8",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",