@harnessio/react-ssca-manager-client 0.84.5 → 0.84.6

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 (27) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetAutoPrConfigQuery.d.ts +5 -4
  2. package/dist/ssca-manager/src/services/hooks/useGetAutoPrConfigQuery.js +2 -2
  3. package/dist/ssca-manager/src/services/hooks/useGetComponentDetailsByPurlQuery.d.ts +24 -0
  4. package/dist/ssca-manager/src/services/hooks/useGetComponentDetailsByPurlQuery.js +14 -0
  5. package/dist/ssca-manager/src/services/hooks/useGetComponentVulnerabilitiesByPurlQuery.d.ts +38 -0
  6. package/dist/ssca-manager/src/services/hooks/useGetComponentVulnerabilitiesByPurlQuery.js +14 -0
  7. package/dist/ssca-manager/src/services/hooks/useSaveAutoPrConfigMutation.d.ts +1 -5
  8. package/dist/ssca-manager/src/services/hooks/useSaveAutoPrConfigMutation.js +1 -1
  9. package/dist/ssca-manager/src/services/index.d.ts +7 -8
  10. package/dist/ssca-manager/src/services/index.js +2 -0
  11. package/dist/ssca-manager/src/services/schemas/AutoPrConfigRequestBody.d.ts +8 -0
  12. package/dist/ssca-manager/src/services/schemas/ChunkingMode.d.ts +9 -0
  13. package/dist/ssca-manager/src/services/schemas/PluginResponseBody.d.ts +30 -3
  14. package/dist/ssca-manager/src/services/schemas/SaveOrchestrationRequestV2.d.ts +22 -3
  15. package/package.json +1 -1
  16. package/dist/ssca-manager/src/services/schemas/ChunkErrorCode.d.ts +0 -4
  17. package/dist/ssca-manager/src/services/schemas/ChunkErrorResponse.d.ts +0 -12
  18. package/dist/ssca-manager/src/services/schemas/ChunkErrorResponse.js +0 -1
  19. package/dist/ssca-manager/src/services/schemas/CompleteProcessingRequest.d.ts +0 -14
  20. package/dist/ssca-manager/src/services/schemas/CompleteProcessingRequest.js +0 -1
  21. package/dist/ssca-manager/src/services/schemas/CompleteProcessingResult.d.ts +0 -30
  22. package/dist/ssca-manager/src/services/schemas/CompleteProcessingResult.js +0 -4
  23. package/dist/ssca-manager/src/services/schemas/ProcessChunkRequest.d.ts +0 -16
  24. package/dist/ssca-manager/src/services/schemas/ProcessChunkRequest.js +0 -1
  25. package/dist/ssca-manager/src/services/schemas/ProcessChunkResult.d.ts +0 -31
  26. package/dist/ssca-manager/src/services/schemas/ProcessChunkResult.js +0 -4
  27. /package/dist/ssca-manager/src/services/schemas/{ChunkErrorCode.js → ChunkingMode.js} +0 -0
@@ -2,16 +2,17 @@ import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { AutoPrConfigResponseBodyResponse } from '../responses/AutoPrConfigResponseBodyResponse';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface GetAutoPrConfigQueryPathParams {
6
- org: string;
7
- project: string;
5
+ export interface GetAutoPrConfigQueryQueryParams {
6
+ orgId?: string;
7
+ projectId?: string;
8
8
  }
9
9
  export interface GetAutoPrConfigQueryHeaderParams {
10
10
  'Harness-Account': string;
11
11
  }
12
12
  export type GetAutoPrConfigOkResponse = ResponseWithPagination<AutoPrConfigResponseBodyResponse>;
13
13
  export type GetAutoPrConfigErrorResponse = unknown;
14
- export interface GetAutoPrConfigProps extends GetAutoPrConfigQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetAutoPrConfigQueryHeaderParams>, 'url'> {
14
+ export interface GetAutoPrConfigProps extends Omit<FetcherOptions<GetAutoPrConfigQueryQueryParams, unknown, GetAutoPrConfigQueryHeaderParams>, 'url'> {
15
+ queryParams: GetAutoPrConfigQueryQueryParams;
15
16
  }
16
17
  export declare function getAutoPrConfig(props: GetAutoPrConfigProps): Promise<GetAutoPrConfigOkResponse>;
17
18
  /**
@@ -4,11 +4,11 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getAutoPrConfig(props) {
7
- return fetcher(Object.assign({ url: `/v1/org/${props.org}/project/${props.project}/ssca-config/auto-pr-config`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/ssca-config/auto-pr-config`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get Auto PR Config for the project
11
11
  */
12
12
  export function useGetAutoPrConfigQuery(props, options) {
13
- return useQuery(['getAutoPrConfig', props.org, props.project], ({ signal }) => getAutoPrConfig(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['getAutoPrConfig', props.queryParams], ({ signal }) => getAutoPrConfig(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactComponentOverviewResponseBodyResponse } from '../responses/ArtifactComponentOverviewResponseBodyResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetComponentDetailsByPurlQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ }
9
+ export interface GetComponentDetailsByPurlQueryQueryParams {
10
+ purl: string;
11
+ }
12
+ export interface GetComponentDetailsByPurlQueryHeaderParams {
13
+ 'Harness-Account': string;
14
+ }
15
+ export type GetComponentDetailsByPurlOkResponse = ResponseWithPagination<ArtifactComponentOverviewResponseBodyResponse>;
16
+ export type GetComponentDetailsByPurlErrorResponse = unknown;
17
+ export interface GetComponentDetailsByPurlProps extends GetComponentDetailsByPurlQueryPathParams, Omit<FetcherOptions<GetComponentDetailsByPurlQueryQueryParams, unknown, GetComponentDetailsByPurlQueryHeaderParams>, 'url'> {
18
+ queryParams: GetComponentDetailsByPurlQueryQueryParams;
19
+ }
20
+ export declare function getComponentDetailsByPurl(props: GetComponentDetailsByPurlProps): Promise<GetComponentDetailsByPurlOkResponse>;
21
+ /**
22
+ * Get component details by PURL
23
+ */
24
+ export declare function useGetComponentDetailsByPurlQuery(props: GetComponentDetailsByPurlProps, options?: Omit<UseQueryOptions<GetComponentDetailsByPurlOkResponse, GetComponentDetailsByPurlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetComponentDetailsByPurlOkResponse, 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 getComponentDetailsByPurl(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/components/details`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get component details by PURL
11
+ */
12
+ export function useGetComponentDetailsByPurlQuery(props, options) {
13
+ return useQuery(['getComponentDetailsByPurl', props.org, props.project, props.queryParams], ({ signal }) => getComponentDetailsByPurl(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,38 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ComponentVulnerabilityListResponseBodyResponse } from '../responses/ComponentVulnerabilityListResponseBodyResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetComponentVulnerabilitiesByPurlQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ }
9
+ export interface GetComponentVulnerabilitiesByPurlQueryQueryParams {
10
+ purl: string;
11
+ /**
12
+ * @default 30
13
+ */
14
+ limit?: number;
15
+ /**
16
+ * @default 0
17
+ */
18
+ page?: number;
19
+ search_term_vulnerabilities?: string;
20
+ sort?: 'severity';
21
+ /**
22
+ * @default "DESC"
23
+ */
24
+ order?: 'ASC' | 'DESC';
25
+ }
26
+ export interface GetComponentVulnerabilitiesByPurlQueryHeaderParams {
27
+ 'Harness-Account': string;
28
+ }
29
+ export type GetComponentVulnerabilitiesByPurlOkResponse = ResponseWithPagination<ComponentVulnerabilityListResponseBodyResponse>;
30
+ export type GetComponentVulnerabilitiesByPurlErrorResponse = unknown;
31
+ export interface GetComponentVulnerabilitiesByPurlProps extends GetComponentVulnerabilitiesByPurlQueryPathParams, Omit<FetcherOptions<GetComponentVulnerabilitiesByPurlQueryQueryParams, unknown, GetComponentVulnerabilitiesByPurlQueryHeaderParams>, 'url'> {
32
+ queryParams: GetComponentVulnerabilitiesByPurlQueryQueryParams;
33
+ }
34
+ export declare function getComponentVulnerabilitiesByPurl(props: GetComponentVulnerabilitiesByPurlProps): Promise<GetComponentVulnerabilitiesByPurlOkResponse>;
35
+ /**
36
+ * Get component vulnerabilities by PURL
37
+ */
38
+ export declare function useGetComponentVulnerabilitiesByPurlQuery(props: GetComponentVulnerabilitiesByPurlProps, options?: Omit<UseQueryOptions<GetComponentVulnerabilitiesByPurlOkResponse, GetComponentVulnerabilitiesByPurlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetComponentVulnerabilitiesByPurlOkResponse, 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 getComponentVulnerabilitiesByPurl(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/components/vulnerabilities`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get component vulnerabilities by PURL
11
+ */
12
+ export function useGetComponentVulnerabilitiesByPurlQuery(props, options) {
13
+ return useQuery(['getComponentVulnerabilitiesByPurl', props.org, props.project, props.queryParams], ({ signal }) => getComponentVulnerabilitiesByPurl(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -3,17 +3,13 @@ import type { AutoPrConfigResponseBodyResponse } from '../responses/AutoPrConfig
3
3
  import type { AutoPrConfigRequestBodyRequestBody } from '../requestBodies/AutoPrConfigRequestBodyRequestBody';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface SaveAutoPrConfigMutationPathParams {
7
- org: string;
8
- project: string;
9
- }
10
6
  export interface SaveAutoPrConfigMutationHeaderParams {
11
7
  'Harness-Account': string;
12
8
  }
13
9
  export type SaveAutoPrConfigRequestBody = AutoPrConfigRequestBodyRequestBody;
14
10
  export type SaveAutoPrConfigOkResponse = ResponseWithPagination<AutoPrConfigResponseBodyResponse>;
15
11
  export type SaveAutoPrConfigErrorResponse = unknown;
16
- export interface SaveAutoPrConfigProps extends SaveAutoPrConfigMutationPathParams, Omit<FetcherOptions<unknown, SaveAutoPrConfigRequestBody, SaveAutoPrConfigMutationHeaderParams>, 'url'> {
12
+ export interface SaveAutoPrConfigProps extends Omit<FetcherOptions<unknown, SaveAutoPrConfigRequestBody, SaveAutoPrConfigMutationHeaderParams>, 'url'> {
17
13
  body: SaveAutoPrConfigRequestBody;
18
14
  }
19
15
  export declare function saveAutoPrConfig(props: SaveAutoPrConfigProps): Promise<SaveAutoPrConfigOkResponse>;
@@ -4,7 +4,7 @@
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function saveAutoPrConfig(props) {
7
- return fetcher(Object.assign({ url: `/v1/org/${props.org}/project/${props.project}/ssca-config/auto-pr-config`, method: 'PUT' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/ssca-config/auto-pr-config`, method: 'PUT' }, props));
8
8
  }
9
9
  /**
10
10
  * Create or update Auto PR Config for the project
@@ -61,7 +61,7 @@ export type { GetArtifactV2DetailDeploymentViewErrorResponse, GetArtifactV2Detai
61
61
  export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
62
62
  export type { GetArtifactV2OverviewErrorResponse, GetArtifactV2OverviewOkResponse, GetArtifactV2OverviewProps, GetArtifactV2OverviewQueryPathParams, } from './hooks/useGetArtifactV2OverviewQuery';
63
63
  export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
64
- export type { GetAutoPrConfigErrorResponse, GetAutoPrConfigOkResponse, GetAutoPrConfigProps, GetAutoPrConfigQueryPathParams, } from './hooks/useGetAutoPrConfigQuery';
64
+ export type { GetAutoPrConfigErrorResponse, GetAutoPrConfigOkResponse, GetAutoPrConfigProps, GetAutoPrConfigQueryQueryParams, } from './hooks/useGetAutoPrConfigQuery';
65
65
  export { getAutoPrConfig, useGetAutoPrConfigQuery } from './hooks/useGetAutoPrConfigQuery';
66
66
  export type { GetBaselineForArtifactErrorResponse, GetBaselineForArtifactOkResponse, GetBaselineForArtifactProps, GetBaselineForArtifactQueryPathParams, } from './hooks/useGetBaselineForArtifactQuery';
67
67
  export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
@@ -85,10 +85,14 @@ export type { GetComplianceStandardsFiltersErrorResponse, GetComplianceStandards
85
85
  export { getComplianceStandardsFilters, useGetComplianceStandardsFiltersQuery, } from './hooks/useGetComplianceStandardsFiltersQuery';
86
86
  export type { GetComplianceStandardsErrorResponse, GetComplianceStandardsMutationPathParams, GetComplianceStandardsMutationQueryParams, GetComplianceStandardsOkResponse, GetComplianceStandardsProps, GetComplianceStandardsRequestBody, } from './hooks/useGetComplianceStandardsMutation';
87
87
  export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
88
+ export type { GetComponentDetailsByPurlErrorResponse, GetComponentDetailsByPurlOkResponse, GetComponentDetailsByPurlProps, GetComponentDetailsByPurlQueryPathParams, GetComponentDetailsByPurlQueryQueryParams, } from './hooks/useGetComponentDetailsByPurlQuery';
89
+ export { getComponentDetailsByPurl, useGetComponentDetailsByPurlQuery, } from './hooks/useGetComponentDetailsByPurlQuery';
88
90
  export type { GetComponentDriftErrorResponse, GetComponentDriftOkResponse, GetComponentDriftProps, GetComponentDriftQueryPathParams, GetComponentDriftQueryQueryParams, } from './hooks/useGetComponentDriftQuery';
89
91
  export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
90
92
  export type { GetComponentTicketErrorResponse, GetComponentTicketOkResponse, GetComponentTicketProps, GetComponentTicketQueryPathParams, GetComponentTicketQueryQueryParams, } from './hooks/useGetComponentTicketQuery';
91
93
  export { getComponentTicket, useGetComponentTicketQuery } from './hooks/useGetComponentTicketQuery';
94
+ export type { GetComponentVulnerabilitiesByPurlErrorResponse, GetComponentVulnerabilitiesByPurlOkResponse, GetComponentVulnerabilitiesByPurlProps, GetComponentVulnerabilitiesByPurlQueryPathParams, GetComponentVulnerabilitiesByPurlQueryQueryParams, } from './hooks/useGetComponentVulnerabilitiesByPurlQuery';
95
+ export { getComponentVulnerabilitiesByPurl, useGetComponentVulnerabilitiesByPurlQuery, } from './hooks/useGetComponentVulnerabilitiesByPurlQuery';
92
96
  export type { GetComponentsErrorResponse, GetComponentsOkResponse, GetComponentsProps, GetComponentsQueryPathParams, GetComponentsQueryQueryParams, } from './hooks/useGetComponentsQuery';
93
97
  export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
94
98
  export type { GetConnectorConfigErrorResponse, GetConnectorConfigOkResponse, GetConnectorConfigProps, GetConnectorConfigQueryQueryParams, } from './hooks/useGetConnectorConfigQuery';
@@ -131,7 +135,7 @@ export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorRespo
131
135
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
132
136
  export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResultStatsOverviewMutationPathParams, PostComplianceResultStatsOverviewMutationQueryParams, PostComplianceResultStatsOverviewOkResponse, PostComplianceResultStatsOverviewProps, PostComplianceResultStatsOverviewRequestBody, } from './hooks/usePostComplianceResultStatsOverviewMutation';
133
137
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
134
- export type { SaveAutoPrConfigErrorResponse, SaveAutoPrConfigMutationPathParams, SaveAutoPrConfigOkResponse, SaveAutoPrConfigProps, SaveAutoPrConfigRequestBody, } from './hooks/useSaveAutoPrConfigMutation';
138
+ export type { SaveAutoPrConfigErrorResponse, SaveAutoPrConfigOkResponse, SaveAutoPrConfigProps, SaveAutoPrConfigRequestBody, } from './hooks/useSaveAutoPrConfigMutation';
135
139
  export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
136
140
  export type { SaveConnectorConfigErrorResponse, SaveConnectorConfigOkResponse, SaveConnectorConfigProps, SaveConnectorConfigRequestBody, } from './hooks/useSaveConnectorConfigMutation';
137
141
  export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
@@ -327,9 +331,8 @@ export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
327
331
  export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
328
332
  export type { CategoryScorecard } from './schemas/CategoryScorecard';
329
333
  export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
330
- export type { ChunkErrorCode } from './schemas/ChunkErrorCode';
331
- export type { ChunkErrorResponse } from './schemas/ChunkErrorResponse';
332
334
  export type { ChunkMetadata } from './schemas/ChunkMetadata';
335
+ export type { ChunkingMode } from './schemas/ChunkingMode';
333
336
  export type { CicdHarnessPipelineYamlResponseBody } from './schemas/CicdHarnessPipelineYamlResponseBody';
334
337
  export type { CicdOverviewResponseBody } from './schemas/CicdOverviewResponseBody';
335
338
  export type { CicdRulesEvaluation } from './schemas/CicdRulesEvaluation';
@@ -341,8 +344,6 @@ export type { CodeRepoRulesEvaluation } from './schemas/CodeRepoRulesEvaluation'
341
344
  export type { CodeRepositoryListingRequest } from './schemas/CodeRepositoryListingRequest';
342
345
  export type { CodeRepositoryListingResponse } from './schemas/CodeRepositoryListingResponse';
343
346
  export type { CodeRepositoryOverview } from './schemas/CodeRepositoryOverview';
344
- export type { CompleteProcessingRequest } from './schemas/CompleteProcessingRequest';
345
- export type { CompleteProcessingResult } from './schemas/CompleteProcessingResult';
346
347
  export type { ComplianceArtifactType } from './schemas/ComplianceArtifactType';
347
348
  export type { ComplianceArtifactWithExecution } from './schemas/ComplianceArtifactWithExecution';
348
349
  export type { ComplianceCheck } from './schemas/ComplianceCheck';
@@ -476,8 +477,6 @@ export type { PluginDto } from './schemas/PluginDto';
476
477
  export type { PluginResponseBody } from './schemas/PluginResponseBody';
477
478
  export type { PolicyViolation } from './schemas/PolicyViolation';
478
479
  export type { PolicyViolationRequestBody } from './schemas/PolicyViolationRequestBody';
479
- export type { ProcessChunkRequest } from './schemas/ProcessChunkRequest';
480
- export type { ProcessChunkResult } from './schemas/ProcessChunkResult';
481
480
  export type { ProvenanceActivity } from './schemas/ProvenanceActivity';
482
481
  export type { ProvenanceRequestBody } from './schemas/ProvenanceRequestBody';
483
482
  export type { ProvenanceRequestBodyV2 } from './schemas/ProvenanceRequestBodyV2';
@@ -41,8 +41,10 @@ export { getComplianceEvaluationTrends, useGetComplianceEvaluationTrendsQuery, }
41
41
  export { getComplianceResultStatsByComplianceChecks, useGetComplianceResultStatsByComplianceChecksMutation, } from './hooks/useGetComplianceResultStatsByComplianceChecksMutation';
42
42
  export { getComplianceStandardsFilters, useGetComplianceStandardsFiltersQuery, } from './hooks/useGetComplianceStandardsFiltersQuery';
43
43
  export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
44
+ export { getComponentDetailsByPurl, useGetComponentDetailsByPurlQuery, } from './hooks/useGetComponentDetailsByPurlQuery';
44
45
  export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
45
46
  export { getComponentTicket, useGetComponentTicketQuery } from './hooks/useGetComponentTicketQuery';
47
+ export { getComponentVulnerabilitiesByPurl, useGetComponentVulnerabilitiesByPurlQuery, } from './hooks/useGetComponentVulnerabilitiesByPurlQuery';
46
48
  export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
47
49
  export { getConnectorConfig, useGetConnectorConfigQuery } from './hooks/useGetConnectorConfigQuery';
48
50
  export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
@@ -1,6 +1,14 @@
1
1
  import type { AutoPrPreset } from '../schemas/AutoPrPreset';
2
2
  import type { AutoPrConfigUpdates } from '../schemas/AutoPrConfigUpdates';
3
3
  export interface AutoPrConfigRequestBody {
4
+ /**
5
+ * Organization identifier
6
+ */
7
+ org_id?: string;
4
8
  preset: AutoPrPreset;
9
+ /**
10
+ * Project identifier
11
+ */
12
+ project_id?: string;
5
13
  updates?: AutoPrConfigUpdates;
6
14
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Mode selector for SBOM orchestration requests:
3
+ * - single: Traditional single request with all components (default)
4
+ * - chunk: This request contains a chunk of components
5
+ * - complete: Finalize the chunked session
6
+ *
7
+ * @default "single"
8
+ */
9
+ export type ChunkingMode = 'chunk' | 'complete' | 'single';
@@ -1,9 +1,36 @@
1
+ /**
2
+ * Response fields vary based on the request mode:
3
+ * - For single/complete mode: source_id, artifact, response_url are populated
4
+ * - For chunk mode: session_status, total_components_received, chunk_id are populated
5
+ *
6
+ */
1
7
  export interface PluginResponseBody {
2
- artifact: {
8
+ /**
9
+ * Artifact details (populated for single/complete mode)
10
+ */
11
+ artifact?: {
3
12
  id?: string;
4
13
  name?: string;
5
14
  url?: string;
6
15
  };
7
- response_url: string;
8
- source_id: string;
16
+ /**
17
+ * The ID of the processed chunk (populated for chunk mode)
18
+ */
19
+ chunk_id?: string;
20
+ /**
21
+ * Response URL (populated for single/complete mode)
22
+ */
23
+ response_url?: string;
24
+ /**
25
+ * Session status (populated for chunk mode)
26
+ */
27
+ session_status?: 'COMPLETED' | 'RECEIVING';
28
+ /**
29
+ * Source identifier (populated for single/complete mode)
30
+ */
31
+ source_id?: string;
32
+ /**
33
+ * Total components received so far (populated for chunk mode)
34
+ */
35
+ total_components_received?: number;
9
36
  }
@@ -1,12 +1,31 @@
1
1
  import type { Artifact } from '../schemas/Artifact';
2
2
  import type { Attestation } from '../schemas/Attestation';
3
+ import type { ChunkMetadata } from '../schemas/ChunkMetadata';
4
+ import type { ChunkingMode } from '../schemas/ChunkingMode';
3
5
  import type { SbomComponentRequestDto } from '../schemas/SbomComponentRequestDto';
4
6
  import type { ExecutionDetail } from '../schemas/ExecutionDetail';
5
7
  import type { SbomMetadataV2 } from '../schemas/SbomMetadataV2';
8
+ /**
9
+ * Request body for SBOM orchestration. Fields required depend on chunking_mode:
10
+ * - single: artifact, sbom_metadata, attestation, components required
11
+ * - chunk (index 0): artifact, sbom_metadata, attestation, execution_context, components, chunk_metadata required
12
+ * - chunk (index > 0): components, chunk_metadata required
13
+ * - complete: only expected_component_count (optional)
14
+ *
15
+ */
6
16
  export interface SaveOrchestrationRequestV2 {
7
- artifact: Artifact;
8
- attestation: Attestation;
17
+ artifact?: Artifact;
18
+ attestation?: Attestation;
19
+ /**
20
+ * Required when chunking_mode is "chunk"
21
+ */
22
+ chunk_metadata?: ChunkMetadata;
23
+ chunking_mode?: ChunkingMode;
9
24
  components?: SbomComponentRequestDto[];
10
25
  execution_context?: ExecutionDetail;
11
- sbom_metadata: SbomMetadataV2;
26
+ /**
27
+ * Optional validation count for "complete" mode
28
+ */
29
+ expected_component_count?: number;
30
+ sbom_metadata?: SbomMetadataV2;
12
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.84.5",
3
+ "version": "0.84.6",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,4 +0,0 @@
1
- /**
2
- * Error codes for chunked processing operations
3
- */
4
- export type ChunkErrorCode = 'ARTIFACT_MISMATCH' | 'COMPONENT_COUNT_MISMATCH' | 'SESSION_ALREADY_COMPLETED' | 'SESSION_NOT_FOUND' | 'SESSION_NOT_RECEIVING';
@@ -1,12 +0,0 @@
1
- import type { ChunkErrorCode } from '../schemas/ChunkErrorCode';
2
- /**
3
- * Error response for chunked processing operations
4
- */
5
- export interface ChunkErrorResponse {
6
- code: ChunkErrorCode;
7
- /**
8
- * Human-readable error message
9
- * @example "Session is in COMPLETING state, cannot accept more chunks"
10
- */
11
- message: string;
12
- }
@@ -1,14 +0,0 @@
1
- import type { Attestation } from '../schemas/Attestation';
2
- import type { ExecutionDetail } from '../schemas/ExecutionDetail';
3
- /**
4
- * Request body for completing the chunked SBOM processing session
5
- */
6
- export interface CompleteProcessingRequest {
7
- attestation?: Attestation;
8
- execution_context?: ExecutionDetail;
9
- /**
10
- * Expected total number of components (for validation)
11
- * @example 1500
12
- */
13
- expected_component_count?: number;
14
- }
@@ -1,30 +0,0 @@
1
- /**
2
- * Response body after successfully completing the processing session
3
- */
4
- export interface CompleteProcessingResult {
5
- /**
6
- * The created artifact identifier
7
- * @example "art_xyz789"
8
- */
9
- artifact_id?: string;
10
- /**
11
- * The orchestration session identifier
12
- * @example "orch_abc123"
13
- */
14
- orchestration_id?: string;
15
- /**
16
- * The source identifier
17
- * @example "src_def456"
18
- */
19
- source_id?: string;
20
- /**
21
- * Final status of the processing session
22
- * @example "COMPLETED"
23
- */
24
- status?: 'COMPLETED';
25
- /**
26
- * Total number of components processed
27
- * @example 1500
28
- */
29
- total_components?: number;
30
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};
@@ -1,16 +0,0 @@
1
- import type { Artifact } from '../schemas/Artifact';
2
- import type { ChunkMetadata } from '../schemas/ChunkMetadata';
3
- import type { SbomComponentRequestDto } from '../schemas/SbomComponentRequestDto';
4
- import type { SbomMetadataV2 } from '../schemas/SbomMetadataV2';
5
- /**
6
- * Request body for uploading a chunk of SBOM components
7
- */
8
- export interface ProcessChunkRequest {
9
- artifact: Artifact;
10
- chunk_metadata?: ChunkMetadata;
11
- /**
12
- * Array of SBOM components in this chunk
13
- */
14
- components: SbomComponentRequestDto[];
15
- sbom_metadata: SbomMetadataV2;
16
- }
@@ -1,31 +0,0 @@
1
- /**
2
- * Response body after successfully processing a chunk
3
- */
4
- export interface ProcessChunkResult {
5
- /**
6
- * The ID of the processed chunk
7
- * @example "1706284800000-0"
8
- */
9
- chunk_id?: string;
10
- /**
11
- * The orchestration session identifier
12
- * @example "orch_abc123"
13
- */
14
- orchestration_id?: string;
15
- /**
16
- * When the session will expire if not completed
17
- * @format date-time
18
- * @example "2024-01-26T12:00:00Z"
19
- */
20
- session_expires_at?: string;
21
- /**
22
- * Current status of the processing session
23
- * @example "RECEIVING"
24
- */
25
- status?: 'RECEIVING';
26
- /**
27
- * Total number of components received so far in this session
28
- * @example 500
29
- */
30
- total_components_received?: number;
31
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};