@harnessio/react-ssca-manager-client 0.76.0 → 0.79.0

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 (25) hide show
  1. package/dist/ssca-manager/src/services/hooks/useConfigureReposMutation.d.ts +2 -1
  2. package/dist/ssca-manager/src/services/index.d.ts +6 -0
  3. package/dist/ssca-manager/src/services/requestBodies/PipelineInfraConfigRequestBodyRequestBody.d.ts +2 -0
  4. package/dist/ssca-manager/src/services/requestBodies/PipelineInfraConfigRequestBodyRequestBody.js +1 -0
  5. package/dist/ssca-manager/src/services/responses/UpdateIntegrationResponseBodyResponse.d.ts +2 -0
  6. package/dist/ssca-manager/src/services/responses/UpdateIntegrationResponseBodyResponse.js +1 -0
  7. package/dist/ssca-manager/src/services/schemas/ArtifactListingPipelineRequestBody.d.ts +1 -1
  8. package/dist/ssca-manager/src/services/schemas/ArtifactListingRequestBody.d.ts +4 -0
  9. package/dist/ssca-manager/src/services/schemas/ArtifactModelPipeline.d.ts +5 -1
  10. package/dist/ssca-manager/src/services/schemas/ArtifactSourcesListingResponse.d.ts +2 -0
  11. package/dist/ssca-manager/src/services/schemas/ArtifactType.d.ts +1 -0
  12. package/dist/ssca-manager/src/services/schemas/ArtifactType.js +4 -0
  13. package/dist/ssca-manager/src/services/schemas/ArtifactTypeData.d.ts +5 -0
  14. package/dist/ssca-manager/src/services/schemas/ArtifactTypeData.js +1 -0
  15. package/dist/ssca-manager/src/services/schemas/ArtifactV2ListingResponse.d.ts +2 -0
  16. package/dist/ssca-manager/src/services/schemas/ArtifactV2Overview.d.ts +2 -0
  17. package/dist/ssca-manager/src/services/schemas/DownloadSignatureResponseBody.d.ts +1 -0
  18. package/dist/ssca-manager/src/services/schemas/IntegrityVerification.d.ts +1 -0
  19. package/dist/ssca-manager/src/services/schemas/PipelineInfraConfigRequestBody.d.ts +9 -0
  20. package/dist/ssca-manager/src/services/schemas/PipelineInfraConfigRequestBody.js +4 -0
  21. package/dist/ssca-manager/src/services/schemas/RepoDetailsDto.d.ts +1 -1
  22. package/dist/ssca-manager/src/services/schemas/SscaSummary.d.ts +1 -0
  23. package/dist/ssca-manager/src/services/schemas/UpdateIntegration.d.ts +11 -0
  24. package/dist/ssca-manager/src/services/schemas/UpdateIntegration.js +4 -0
  25. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { UpdateIntegrationResponseBodyResponse } from '../responses/UpdateIntegrationResponseBodyResponse';
2
3
  import type { ConfigureReposRequestRequestBody } from '../requestBodies/ConfigureReposRequestRequestBody';
3
4
  import type { ResponseWithPagination } from '../helpers';
4
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -11,7 +12,7 @@ export interface ConfigureReposMutationHeaderParams {
11
12
  'Harness-Account': string;
12
13
  }
13
14
  export type ConfigureReposRequestBody = ConfigureReposRequestRequestBody;
14
- export type ConfigureReposOkResponse = ResponseWithPagination<unknown>;
15
+ export type ConfigureReposOkResponse = ResponseWithPagination<UpdateIntegrationResponseBodyResponse>;
15
16
  export type ConfigureReposErrorResponse = unknown;
16
17
  export interface ConfigureReposProps extends ConfigureReposMutationPathParams, Omit<FetcherOptions<unknown, ConfigureReposRequestBody, ConfigureReposMutationHeaderParams>, 'url'> {
17
18
  body: ConfigureReposRequestBody;
@@ -161,6 +161,7 @@ export type { FetchComplianeResultChecksStatsRequestBodyRequestBody } from './re
161
161
  export type { NormalisedSbomComponentRequestBodyRequestBody } from './requestBodies/NormalisedSbomComponentRequestBodyRequestBody';
162
162
  export type { OrchestrationStepDriftRequestBodyRequestBody } from './requestBodies/OrchestrationStepDriftRequestBodyRequestBody';
163
163
  export type { PipelineConfigUpdateRequestBodyRequestBody } from './requestBodies/PipelineConfigUpdateRequestBodyRequestBody';
164
+ export type { PipelineInfraConfigRequestBodyRequestBody } from './requestBodies/PipelineInfraConfigRequestBodyRequestBody';
164
165
  export type { PolicyViolationRequestBodyRequestBody } from './requestBodies/PolicyViolationRequestBodyRequestBody';
165
166
  export type { ProvenanceRequestBodyRequestBody } from './requestBodies/ProvenanceRequestBodyRequestBody';
166
167
  export type { ProvenanceRequestBodyV2RequestBody } from './requestBodies/ProvenanceRequestBodyV2RequestBody';
@@ -241,6 +242,7 @@ export type { SaveResponseResponse } from './responses/SaveResponseResponse';
241
242
  export type { SbomProcessResponseBodyResponse } from './responses/SbomProcessResponseBodyResponse';
242
243
  export type { SbomScorecardResponseBodyResponse } from './responses/SbomScorecardResponseBodyResponse';
243
244
  export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueResponseBodyResponse';
245
+ export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIntegrationResponseBodyResponse';
244
246
  export type { VersionResponseBodyResponse } from './responses/VersionResponseBodyResponse';
245
247
  export type { ActivityDetails } from './schemas/ActivityDetails';
246
248
  export type { Artifact } from './schemas/Artifact';
@@ -266,6 +268,8 @@ export type { ArtifactSbomDriftResponse } from './schemas/ArtifactSbomDriftRespo
266
268
  export type { ArtifactSbomResponseBody } from './schemas/ArtifactSbomResponseBody';
267
269
  export type { ArtifactSourcesListingResponse } from './schemas/ArtifactSourcesListingResponse';
268
270
  export type { ArtifactSpec } from './schemas/ArtifactSpec';
271
+ export type { ArtifactType } from './schemas/ArtifactType';
272
+ export type { ArtifactTypeData } from './schemas/ArtifactTypeData';
269
273
  export type { ArtifactV2Details } from './schemas/ArtifactV2Details';
270
274
  export type { ArtifactV2ListingResponse } from './schemas/ArtifactV2ListingResponse';
271
275
  export type { ArtifactV2Overview } from './schemas/ArtifactV2Overview';
@@ -398,6 +402,7 @@ export type { OrchestrationSummaryResponse } from './schemas/OrchestrationSummar
398
402
  export type { PipelineConfigUpdateRequest } from './schemas/PipelineConfigUpdateRequest';
399
403
  export type { PipelineDetails } from './schemas/PipelineDetails';
400
404
  export type { PipelineInfo } from './schemas/PipelineInfo';
405
+ export type { PipelineInfraConfigRequestBody } from './schemas/PipelineInfraConfigRequestBody';
401
406
  export type { PluginDto } from './schemas/PluginDto';
402
407
  export type { PluginResponseBody } from './schemas/PluginResponseBody';
403
408
  export type { PolicyViolation } from './schemas/PolicyViolation';
@@ -461,6 +466,7 @@ export type { StoIssueCount } from './schemas/StoIssueCount';
461
466
  export type { TicketInfo } from './schemas/TicketInfo';
462
467
  export type { TokenIssueResponseBody } from './schemas/TokenIssueResponseBody';
463
468
  export type { TokenIssueTokenResponseBody } from './schemas/TokenIssueTokenResponseBody';
469
+ export type { UpdateIntegration } from './schemas/UpdateIntegration';
464
470
  export type { VerificationActivity } from './schemas/VerificationActivity';
465
471
  export type { VerificationStatus } from './schemas/VerificationStatus';
466
472
  export type { VersionInfo } from './schemas/VersionInfo';
@@ -0,0 +1,2 @@
1
+ import type { PipelineInfraConfigRequestBody } from '../schemas/PipelineInfraConfigRequestBody';
2
+ export type PipelineInfraConfigRequestBodyRequestBody = PipelineInfraConfigRequestBody;
@@ -0,0 +1,2 @@
1
+ import type { UpdateIntegration } from '../schemas/UpdateIntegration';
2
+ export type UpdateIntegrationResponseBodyResponse = UpdateIntegration;
@@ -2,7 +2,7 @@ export interface ArtifactListingPipelineRequestBody {
2
2
  /**
3
3
  * Filter Artifacts By type
4
4
  */
5
- artifact_type?: 'image' | 'repository';
5
+ artifact_type?: 'image' | 'non_container' | 'repository';
6
6
  /**
7
7
  * Search Artifact By name
8
8
  */
@@ -1,9 +1,13 @@
1
+ import type { ArtifactType } from '../schemas/ArtifactType';
1
2
  import type { ComponentFilter } from '../schemas/ComponentFilter';
2
3
  import type { LicenseFilter } from '../schemas/LicenseFilter';
4
+ import type { VerificationStatus } from '../schemas/VerificationStatus';
3
5
  export interface ArtifactListingRequestBody {
6
+ artifact_type?: ArtifactType[];
4
7
  component_filter?: ComponentFilter[];
5
8
  environment_type?: 'All' | 'NonProd' | 'None' | 'Prod';
6
9
  license_filter?: LicenseFilter;
7
10
  policy_violation?: 'ALLOW' | 'ANY' | 'DENY' | 'NONE';
8
11
  search_term?: string;
12
+ verification_status?: VerificationStatus;
9
13
  }
@@ -1,5 +1,6 @@
1
1
  import type { ArtifactVariant } from '../schemas/ArtifactVariant';
2
2
  export interface ArtifactModelPipeline {
3
+ artifact_name?: string;
3
4
  digest?: string;
4
5
  id?: string;
5
6
  metadata?: {
@@ -7,7 +8,10 @@ export interface ArtifactModelPipeline {
7
8
  };
8
9
  name?: string;
9
10
  registry_url?: string;
11
+ source_id?: string;
10
12
  tag?: string;
11
- type?: 'image' | 'repository';
13
+ type?: 'image' | 'non_container' | 'repository';
12
14
  variant?: ArtifactVariant;
15
+ version?: string;
16
+ workspace?: string;
13
17
  }
@@ -1,6 +1,8 @@
1
+ import type { ArtifactTypeData } from '../schemas/ArtifactTypeData';
1
2
  import type { Deployments } from '../schemas/Deployments';
2
3
  import type { StoIssueCount } from '../schemas/StoIssueCount';
3
4
  export interface ArtifactSourcesListingResponse {
5
+ artifact_type?: ArtifactTypeData;
4
6
  /**
5
7
  * Count of artifacts with the given url and name.
6
8
  */
@@ -0,0 +1 @@
1
+ export type ArtifactType = 'CONTAINER_IMAGE' | 'HELM' | 'JAR' | 'MANIFEST' | 'WAR';
@@ -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,5 @@
1
+ import type { ArtifactType } from '../schemas/ArtifactType';
2
+ export interface ArtifactTypeData {
3
+ sub_type?: ArtifactType;
4
+ type?: 'CONTAINER' | 'NON_CONTAINER';
5
+ }
@@ -1,6 +1,8 @@
1
+ import type { ArtifactTypeData } from '../schemas/ArtifactTypeData';
1
2
  import type { IntegrityVerification } from '../schemas/IntegrityVerification';
2
3
  import type { StoIssueCount } from '../schemas/StoIssueCount';
3
4
  export interface ArtifactV2ListingResponse {
5
+ artifact_type?: ArtifactTypeData;
4
6
  /**
5
7
  * Number of components of the artifact
6
8
  */
@@ -1,3 +1,4 @@
1
+ import type { ArtifactTypeData } from '../schemas/ArtifactTypeData';
1
2
  import type { Deployments } from '../schemas/Deployments';
2
3
  import type { PipelineDetails } from '../schemas/PipelineDetails';
3
4
  import type { SbomInfo } from '../schemas/SbomInfo';
@@ -7,6 +8,7 @@ import type { SlsaDetails } from '../schemas/SlsaDetails';
7
8
  import type { StoIssueCount } from '../schemas/StoIssueCount';
8
9
  import type { Violations } from '../schemas/Violations';
9
10
  export interface ArtifactV2Overview {
11
+ artifact_type?: ArtifactTypeData;
10
12
  deployments?: Deployments;
11
13
  /**
12
14
  * digest of the artifact
@@ -1,5 +1,6 @@
1
1
  import type { RekorLog } from '../schemas/RekorLog';
2
2
  export interface DownloadSignatureResponseBody {
3
+ artifact_name?: string;
3
4
  payload?: string;
4
5
  rekor?: RekorLog;
5
6
  signature?: string;
@@ -6,4 +6,5 @@ export interface IntegrityVerification {
6
6
  pipeline_id?: string;
7
7
  rekor?: RekorLog;
8
8
  status?: VerificationStatus;
9
+ version?: string;
9
10
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Infra Config Details of Pipeline
3
+ */
4
+ export interface PipelineInfraConfigRequestBody {
5
+ allow_override?: boolean;
6
+ org?: string;
7
+ project?: string;
8
+ spec: string;
9
+ }
@@ -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 {};
@@ -1,7 +1,7 @@
1
1
  export interface RepoDetailsDto {
2
2
  branch?: string;
3
3
  id?: string;
4
- name?: string;
4
+ name: string;
5
5
  owner?: string;
6
6
  url?: string;
7
7
  visibility?: 'INTERNAL' | 'PRIVATE' | 'PUBLIC';
@@ -4,6 +4,7 @@
4
4
  export interface SscaSummary {
5
5
  artifacts?: {
6
6
  containers?: number;
7
+ non_containers?: number;
7
8
  repositories?: number;
8
9
  };
9
10
  drifts?: {
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Example response
3
+ */
4
+ export interface UpdateIntegration {
5
+ all_repos_configured?: boolean;
6
+ missing_repos?: {
7
+ count?: number;
8
+ names?: string[];
9
+ reason?: string;
10
+ };
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.76.0",
3
+ "version": "0.79.0",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",