@harnessio/react-ssca-manager-client 0.84.2 → 0.84.4

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 (69) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsQuery.d.ts +25 -0
  2. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsQuery.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.d.ts +24 -0
  4. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.js +14 -0
  5. package/dist/ssca-manager/src/services/hooks/useGetAutoPrConfigQuery.d.ts +20 -0
  6. package/dist/ssca-manager/src/services/hooks/useGetAutoPrConfigQuery.js +14 -0
  7. package/dist/ssca-manager/src/services/hooks/useSaveAutoPrConfigMutation.d.ts +23 -0
  8. package/dist/ssca-manager/src/services/hooks/useSaveAutoPrConfigMutation.js +14 -0
  9. package/dist/ssca-manager/src/services/index.d.ts +37 -0
  10. package/dist/ssca-manager/src/services/index.js +4 -0
  11. package/dist/ssca-manager/src/services/requestBodies/AiWorkflowExecutionRequestBodyRequestBody.d.ts +2 -0
  12. package/dist/ssca-manager/src/services/requestBodies/AiWorkflowExecutionRequestBodyRequestBody.js +1 -0
  13. package/dist/ssca-manager/src/services/requestBodies/AutoPrConfigRequestBodyRequestBody.d.ts +2 -0
  14. package/dist/ssca-manager/src/services/requestBodies/AutoPrConfigRequestBodyRequestBody.js +1 -0
  15. package/dist/ssca-manager/src/services/responses/AutoPrConfigResponseBodyResponse.d.ts +2 -0
  16. package/dist/ssca-manager/src/services/responses/AutoPrConfigResponseBodyResponse.js +1 -0
  17. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionListResponse.d.ts +7 -0
  18. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionListResponse.js +1 -0
  19. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionRequest.d.ts +70 -0
  20. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionRequest.js +1 -0
  21. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionStepsResponse.d.ts +13 -0
  22. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionStepsResponse.js +1 -0
  23. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionSummary.d.ts +44 -0
  24. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionSummary.js +1 -0
  25. package/dist/ssca-manager/src/services/schemas/AiWorkflowResults.d.ts +22 -0
  26. package/dist/ssca-manager/src/services/schemas/AiWorkflowResults.js +4 -0
  27. package/dist/ssca-manager/src/services/schemas/AiWorkflowStepExecution.d.ts +17 -0
  28. package/dist/ssca-manager/src/services/schemas/AiWorkflowStepExecution.js +4 -0
  29. package/dist/ssca-manager/src/services/schemas/AiWorkflowTypeEnum.d.ts +5 -0
  30. package/dist/ssca-manager/src/services/schemas/AiWorkflowTypeEnum.js +4 -0
  31. package/dist/ssca-manager/src/services/schemas/AutoPrAdvancedRule.d.ts +12 -0
  32. package/dist/ssca-manager/src/services/schemas/AutoPrAdvancedRule.js +1 -0
  33. package/dist/ssca-manager/src/services/schemas/AutoPrCheckInterval.d.ts +4 -0
  34. package/dist/ssca-manager/src/services/schemas/AutoPrCheckInterval.js +4 -0
  35. package/dist/ssca-manager/src/services/schemas/AutoPrComplianceRule.d.ts +14 -0
  36. package/dist/ssca-manager/src/services/schemas/AutoPrComplianceRule.js +4 -0
  37. package/dist/ssca-manager/src/services/schemas/AutoPrConfigRequestBody.d.ts +6 -0
  38. package/dist/ssca-manager/src/services/schemas/AutoPrConfigRequestBody.js +1 -0
  39. package/dist/ssca-manager/src/services/schemas/AutoPrConfigResponseBody.d.ts +50 -0
  40. package/dist/ssca-manager/src/services/schemas/AutoPrConfigResponseBody.js +1 -0
  41. package/dist/ssca-manager/src/services/schemas/AutoPrConfigUpdates.d.ts +25 -0
  42. package/dist/ssca-manager/src/services/schemas/AutoPrConfigUpdates.js +1 -0
  43. package/dist/ssca-manager/src/services/schemas/AutoPrDependencySafetyRule.d.ts +6 -0
  44. package/dist/ssca-manager/src/services/schemas/AutoPrDependencySafetyRule.js +4 -0
  45. package/dist/ssca-manager/src/services/schemas/AutoPrPreset.d.ts +4 -0
  46. package/dist/ssca-manager/src/services/schemas/AutoPrPreset.js +4 -0
  47. package/dist/ssca-manager/src/services/schemas/AutoPrSchedule.d.ts +20 -0
  48. package/dist/ssca-manager/src/services/schemas/AutoPrSchedule.js +1 -0
  49. package/dist/ssca-manager/src/services/schemas/AutoPrScheduleType.d.ts +4 -0
  50. package/dist/ssca-manager/src/services/schemas/AutoPrScheduleType.js +4 -0
  51. package/dist/ssca-manager/src/services/schemas/AutoPrSecurityRule.d.ts +22 -0
  52. package/dist/ssca-manager/src/services/schemas/AutoPrSecurityRule.js +4 -0
  53. package/dist/ssca-manager/src/services/schemas/AutoPrVersioningRule.d.ts +18 -0
  54. package/dist/ssca-manager/src/services/schemas/AutoPrVersioningRule.js +4 -0
  55. package/dist/ssca-manager/src/services/schemas/ChunkErrorCode.d.ts +4 -0
  56. package/dist/ssca-manager/src/services/schemas/ChunkErrorCode.js +4 -0
  57. package/dist/ssca-manager/src/services/schemas/ChunkErrorResponse.d.ts +12 -0
  58. package/dist/ssca-manager/src/services/schemas/ChunkErrorResponse.js +1 -0
  59. package/dist/ssca-manager/src/services/schemas/ChunkMetadata.d.ts +15 -0
  60. package/dist/ssca-manager/src/services/schemas/ChunkMetadata.js +4 -0
  61. package/dist/ssca-manager/src/services/schemas/CompleteProcessingRequest.d.ts +14 -0
  62. package/dist/ssca-manager/src/services/schemas/CompleteProcessingRequest.js +1 -0
  63. package/dist/ssca-manager/src/services/schemas/CompleteProcessingResult.d.ts +30 -0
  64. package/dist/ssca-manager/src/services/schemas/CompleteProcessingResult.js +4 -0
  65. package/dist/ssca-manager/src/services/schemas/ProcessChunkRequest.d.ts +16 -0
  66. package/dist/ssca-manager/src/services/schemas/ProcessChunkRequest.js +1 -0
  67. package/dist/ssca-manager/src/services/schemas/ProcessChunkResult.d.ts +31 -0
  68. package/dist/ssca-manager/src/services/schemas/ProcessChunkResult.js +4 -0
  69. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AiWorkflowExecutionStepsResponse } from '../schemas/AiWorkflowExecutionStepsResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetAiWorkflowExecutionStepsQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ executionId: string;
9
+ }
10
+ export interface GetAiWorkflowExecutionStepsQueryQueryParams {
11
+ ai_workflow_type: string;
12
+ }
13
+ export interface GetAiWorkflowExecutionStepsQueryHeaderParams {
14
+ 'Harness-Account': string;
15
+ }
16
+ export type GetAiWorkflowExecutionStepsOkResponse = ResponseWithPagination<AiWorkflowExecutionStepsResponse>;
17
+ export type GetAiWorkflowExecutionStepsErrorResponse = unknown;
18
+ export interface GetAiWorkflowExecutionStepsProps extends GetAiWorkflowExecutionStepsQueryPathParams, Omit<FetcherOptions<GetAiWorkflowExecutionStepsQueryQueryParams, unknown, GetAiWorkflowExecutionStepsQueryHeaderParams>, 'url'> {
19
+ queryParams: GetAiWorkflowExecutionStepsQueryQueryParams;
20
+ }
21
+ export declare function getAiWorkflowExecutionSteps(props: GetAiWorkflowExecutionStepsProps): Promise<GetAiWorkflowExecutionStepsOkResponse>;
22
+ /**
23
+ * Get step details for a specific AI workflow execution
24
+ */
25
+ export declare function useGetAiWorkflowExecutionStepsQuery(props: GetAiWorkflowExecutionStepsProps, options?: Omit<UseQueryOptions<GetAiWorkflowExecutionStepsOkResponse, GetAiWorkflowExecutionStepsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiWorkflowExecutionStepsOkResponse, 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 getAiWorkflowExecutionSteps(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-executions/${props.executionId}/steps`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get step details for a specific AI workflow execution
11
+ */
12
+ export function useGetAiWorkflowExecutionStepsQuery(props, options) {
13
+ return useQuery(['getAIWorkflowExecutionSteps', props.org, props.project, props.executionId, props.queryParams], ({ signal }) => getAiWorkflowExecutionSteps(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AiWorkflowExecutionListResponse } from '../schemas/AiWorkflowExecutionListResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetAiWorkflowExecutionsQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ }
9
+ export interface GetAiWorkflowExecutionsQueryQueryParams {
10
+ ai_workflow_type: string;
11
+ }
12
+ export interface GetAiWorkflowExecutionsQueryHeaderParams {
13
+ 'Harness-Account': string;
14
+ }
15
+ export type GetAiWorkflowExecutionsOkResponse = ResponseWithPagination<AiWorkflowExecutionListResponse>;
16
+ export type GetAiWorkflowExecutionsErrorResponse = unknown;
17
+ export interface GetAiWorkflowExecutionsProps extends GetAiWorkflowExecutionsQueryPathParams, Omit<FetcherOptions<GetAiWorkflowExecutionsQueryQueryParams, unknown, GetAiWorkflowExecutionsQueryHeaderParams>, 'url'> {
18
+ queryParams: GetAiWorkflowExecutionsQueryQueryParams;
19
+ }
20
+ export declare function getAiWorkflowExecutions(props: GetAiWorkflowExecutionsProps): Promise<GetAiWorkflowExecutionsOkResponse>;
21
+ /**
22
+ * Get AI workflow executions filtered by workflow type
23
+ */
24
+ export declare function useGetAiWorkflowExecutionsQuery(props: GetAiWorkflowExecutionsProps, options?: Omit<UseQueryOptions<GetAiWorkflowExecutionsOkResponse, GetAiWorkflowExecutionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiWorkflowExecutionsOkResponse, 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 getAiWorkflowExecutions(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-executions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get AI workflow executions filtered by workflow type
11
+ */
12
+ export function useGetAiWorkflowExecutionsQuery(props, options) {
13
+ return useQuery(['getAIWorkflowExecutions', props.org, props.project, props.queryParams], ({ signal }) => getAiWorkflowExecutions(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,20 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AutoPrConfigResponseBodyResponse } from '../responses/AutoPrConfigResponseBodyResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetAutoPrConfigQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ }
9
+ export interface GetAutoPrConfigQueryHeaderParams {
10
+ 'Harness-Account': string;
11
+ }
12
+ export type GetAutoPrConfigOkResponse = ResponseWithPagination<AutoPrConfigResponseBodyResponse>;
13
+ export type GetAutoPrConfigErrorResponse = unknown;
14
+ export interface GetAutoPrConfigProps extends GetAutoPrConfigQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetAutoPrConfigQueryHeaderParams>, 'url'> {
15
+ }
16
+ export declare function getAutoPrConfig(props: GetAutoPrConfigProps): Promise<GetAutoPrConfigOkResponse>;
17
+ /**
18
+ * Get Auto PR Config for the project
19
+ */
20
+ export declare function useGetAutoPrConfigQuery(props: GetAutoPrConfigProps, options?: Omit<UseQueryOptions<GetAutoPrConfigOkResponse, GetAutoPrConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAutoPrConfigOkResponse, 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 getAutoPrConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/org/${props.org}/project/${props.project}/ssca-config/auto-pr-config`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Auto PR Config for the project
11
+ */
12
+ export function useGetAutoPrConfigQuery(props, options) {
13
+ return useQuery(['getAutoPrConfig', props.org, props.project], ({ signal }) => getAutoPrConfig(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { AutoPrConfigResponseBodyResponse } from '../responses/AutoPrConfigResponseBodyResponse';
3
+ import type { AutoPrConfigRequestBodyRequestBody } from '../requestBodies/AutoPrConfigRequestBodyRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface SaveAutoPrConfigMutationPathParams {
7
+ org: string;
8
+ project: string;
9
+ }
10
+ export interface SaveAutoPrConfigMutationHeaderParams {
11
+ 'Harness-Account': string;
12
+ }
13
+ export type SaveAutoPrConfigRequestBody = AutoPrConfigRequestBodyRequestBody;
14
+ export type SaveAutoPrConfigOkResponse = ResponseWithPagination<AutoPrConfigResponseBodyResponse>;
15
+ export type SaveAutoPrConfigErrorResponse = unknown;
16
+ export interface SaveAutoPrConfigProps extends SaveAutoPrConfigMutationPathParams, Omit<FetcherOptions<unknown, SaveAutoPrConfigRequestBody, SaveAutoPrConfigMutationHeaderParams>, 'url'> {
17
+ body: SaveAutoPrConfigRequestBody;
18
+ }
19
+ export declare function saveAutoPrConfig(props: SaveAutoPrConfigProps): Promise<SaveAutoPrConfigOkResponse>;
20
+ /**
21
+ * Create or update Auto PR Config for the project
22
+ */
23
+ export declare function useSaveAutoPrConfigMutation(options?: Omit<UseMutationOptions<SaveAutoPrConfigOkResponse, SaveAutoPrConfigErrorResponse, SaveAutoPrConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveAutoPrConfigOkResponse, unknown, SaveAutoPrConfigProps, 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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
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));
8
+ }
9
+ /**
10
+ * Create or update Auto PR Config for the project
11
+ */
12
+ export function useSaveAutoPrConfigMutation(options) {
13
+ return useMutation((mutateProps) => saveAutoPrConfig(mutateProps), options);
14
+ }
@@ -37,6 +37,10 @@ export type { FetchPluginsForWorkflowErrorResponse, FetchPluginsForWorkflowOkRes
37
37
  export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
38
38
  export type { FetchReposInIntegrationErrorResponse, FetchReposInIntegrationOkResponse, FetchReposInIntegrationProps, FetchReposInIntegrationQueryPathParams, FetchReposInIntegrationQueryQueryParams, } from './hooks/useFetchReposInIntegrationQuery';
39
39
  export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
40
+ export type { GetAiWorkflowExecutionStepsErrorResponse, GetAiWorkflowExecutionStepsOkResponse, GetAiWorkflowExecutionStepsProps, GetAiWorkflowExecutionStepsQueryPathParams, GetAiWorkflowExecutionStepsQueryQueryParams, } from './hooks/useGetAiWorkflowExecutionStepsQuery';
41
+ export { getAiWorkflowExecutionSteps, useGetAiWorkflowExecutionStepsQuery, } from './hooks/useGetAiWorkflowExecutionStepsQuery';
42
+ export type { GetAiWorkflowExecutionsErrorResponse, GetAiWorkflowExecutionsOkResponse, GetAiWorkflowExecutionsProps, GetAiWorkflowExecutionsQueryPathParams, GetAiWorkflowExecutionsQueryQueryParams, } from './hooks/useGetAiWorkflowExecutionsQuery';
43
+ export { getAiWorkflowExecutions, useGetAiWorkflowExecutionsQuery, } from './hooks/useGetAiWorkflowExecutionsQuery';
40
44
  export type { GetAllRepositoriesSummaryErrorResponse, GetAllRepositoriesSummaryOkResponse, GetAllRepositoriesSummaryProps, GetAllRepositoriesSummaryQueryPathParams, } from './hooks/useGetAllRepositoriesSummaryQuery';
41
45
  export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
42
46
  export type { GetArtifactChainOfCustodyV2ErrorResponse, GetArtifactChainOfCustodyV2OkResponse, GetArtifactChainOfCustodyV2Props, GetArtifactChainOfCustodyV2QueryPathParams, } from './hooks/useGetArtifactChainOfCustodyV2Query';
@@ -57,6 +61,8 @@ export type { GetArtifactV2DetailDeploymentViewErrorResponse, GetArtifactV2Detai
57
61
  export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
58
62
  export type { GetArtifactV2OverviewErrorResponse, GetArtifactV2OverviewOkResponse, GetArtifactV2OverviewProps, GetArtifactV2OverviewQueryPathParams, } from './hooks/useGetArtifactV2OverviewQuery';
59
63
  export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
64
+ export type { GetAutoPrConfigErrorResponse, GetAutoPrConfigOkResponse, GetAutoPrConfigProps, GetAutoPrConfigQueryPathParams, } from './hooks/useGetAutoPrConfigQuery';
65
+ export { getAutoPrConfig, useGetAutoPrConfigQuery } from './hooks/useGetAutoPrConfigQuery';
60
66
  export type { GetBaselineForArtifactErrorResponse, GetBaselineForArtifactOkResponse, GetBaselineForArtifactProps, GetBaselineForArtifactQueryPathParams, } from './hooks/useGetBaselineForArtifactQuery';
61
67
  export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
62
68
  export type { GetCicdOverviewErrorResponse, GetCicdOverviewOkResponse, GetCicdOverviewProps, GetCicdOverviewQueryPathParams, } from './hooks/useGetCicdOverviewQuery';
@@ -125,6 +131,8 @@ export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorRespo
125
131
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
126
132
  export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResultStatsOverviewMutationPathParams, PostComplianceResultStatsOverviewMutationQueryParams, PostComplianceResultStatsOverviewOkResponse, PostComplianceResultStatsOverviewProps, PostComplianceResultStatsOverviewRequestBody, } from './hooks/usePostComplianceResultStatsOverviewMutation';
127
133
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
134
+ export type { SaveAutoPrConfigErrorResponse, SaveAutoPrConfigMutationPathParams, SaveAutoPrConfigOkResponse, SaveAutoPrConfigProps, SaveAutoPrConfigRequestBody, } from './hooks/useSaveAutoPrConfigMutation';
135
+ export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
128
136
  export type { SaveConnectorConfigErrorResponse, SaveConnectorConfigOkResponse, SaveConnectorConfigProps, SaveConnectorConfigRequestBody, } from './hooks/useSaveConnectorConfigMutation';
129
137
  export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
130
138
  export type { SetBaselineForArtifactV2ErrorResponse, SetBaselineForArtifactV2MutationPathParams, SetBaselineForArtifactV2OkResponse, SetBaselineForArtifactV2Props, SetBaselineForArtifactV2RequestBody, } from './hooks/useSetBaselineForArtifactV2Mutation';
@@ -133,12 +141,14 @@ export type { SscaLicenseUsageErrorResponse, SscaLicenseUsageOkResponse, SscaLic
133
141
  export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
134
142
  export type { UpdateRemediationTrackerErrorResponse, UpdateRemediationTrackerMutationPathParams, UpdateRemediationTrackerOkResponse, UpdateRemediationTrackerProps, UpdateRemediationTrackerRequestBody, } from './hooks/useUpdateRemediationTrackerMutation';
135
143
  export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
144
+ export type { AiWorkflowExecutionRequestBodyRequestBody } from './requestBodies/AiWorkflowExecutionRequestBodyRequestBody';
136
145
  export type { ArtifactComponentsRequestBodyRequestBody } from './requestBodies/ArtifactComponentsRequestBodyRequestBody';
137
146
  export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
138
147
  export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
139
148
  export type { ArtifactSbomDriftRequestBodyRequestBody } from './requestBodies/ArtifactSbomDriftRequestBodyRequestBody';
140
149
  export type { AttestationQueryRequestBodyRequestBody } from './requestBodies/AttestationQueryRequestBodyRequestBody';
141
150
  export type { AttestationUploadRequestBodyRequestBody } from './requestBodies/AttestationUploadRequestBodyRequestBody';
151
+ export type { AutoPrConfigRequestBodyRequestBody } from './requestBodies/AutoPrConfigRequestBodyRequestBody';
142
152
  export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
143
153
  export type { BaselineV2RequestBodyRequestBody } from './requestBodies/BaselineV2RequestBodyRequestBody';
144
154
  export type { CodeRepositoryListingRequestBodyRequestBody } from './requestBodies/CodeRepositoryListingRequestBodyRequestBody';
@@ -198,6 +208,7 @@ export type { ArtifactV2ListingResponseBodyResponse } from './responses/Artifact
198
208
  export type { AttestationDownloadResponseResponse } from './responses/AttestationDownloadResponseResponse';
199
209
  export type { AttestationQueryResponseResponse } from './responses/AttestationQueryResponseResponse';
200
210
  export type { AttestationUploadResponseResponse } from './responses/AttestationUploadResponseResponse';
211
+ export type { AutoPrConfigResponseBodyResponse } from './responses/AutoPrConfigResponseBodyResponse';
201
212
  export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
202
213
  export type { CicdHarnessPipelineResponseBodyResponse } from './responses/CicdHarnessPipelineResponseBodyResponse';
203
214
  export type { CicdOverviewResponseBodyResponse } from './responses/CicdOverviewResponseBodyResponse';
@@ -259,6 +270,13 @@ export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueRespo
259
270
  export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIntegrationResponseBodyResponse';
260
271
  export type { VersionResponseBodyResponse } from './responses/VersionResponseBodyResponse';
261
272
  export type { ActivityDetails } from './schemas/ActivityDetails';
273
+ export type { AiWorkflowExecutionListResponse } from './schemas/AiWorkflowExecutionListResponse';
274
+ export type { AiWorkflowExecutionRequest } from './schemas/AiWorkflowExecutionRequest';
275
+ export type { AiWorkflowExecutionStepsResponse } from './schemas/AiWorkflowExecutionStepsResponse';
276
+ export type { AiWorkflowExecutionSummary } from './schemas/AiWorkflowExecutionSummary';
277
+ export type { AiWorkflowResults } from './schemas/AiWorkflowResults';
278
+ export type { AiWorkflowStepExecution } from './schemas/AiWorkflowStepExecution';
279
+ export type { AiWorkflowTypeEnum } from './schemas/AiWorkflowTypeEnum';
262
280
  export type { Artifact } from './schemas/Artifact';
263
281
  export type { ArtifactAndDeploymentsResponseBody } from './schemas/ArtifactAndDeploymentsResponseBody';
264
282
  export type { ArtifactChainOfCustody } from './schemas/ArtifactChainOfCustody';
@@ -292,11 +310,26 @@ export type { Attestation } from './schemas/Attestation';
292
310
  export type { AttestationLinks } from './schemas/AttestationLinks';
293
311
  export type { AttestationUploadRequest } from './schemas/AttestationUploadRequest';
294
312
  export type { AttestationUploadResponseBody } from './schemas/AttestationUploadResponseBody';
313
+ export type { AutoPrAdvancedRule } from './schemas/AutoPrAdvancedRule';
314
+ export type { AutoPrCheckInterval } from './schemas/AutoPrCheckInterval';
315
+ export type { AutoPrComplianceRule } from './schemas/AutoPrComplianceRule';
316
+ export type { AutoPrConfigRequestBody } from './schemas/AutoPrConfigRequestBody';
317
+ export type { AutoPrConfigResponseBody } from './schemas/AutoPrConfigResponseBody';
318
+ export type { AutoPrConfigUpdates } from './schemas/AutoPrConfigUpdates';
319
+ export type { AutoPrDependencySafetyRule } from './schemas/AutoPrDependencySafetyRule';
320
+ export type { AutoPrPreset } from './schemas/AutoPrPreset';
321
+ export type { AutoPrSchedule } from './schemas/AutoPrSchedule';
322
+ export type { AutoPrScheduleType } from './schemas/AutoPrScheduleType';
323
+ export type { AutoPrSecurityRule } from './schemas/AutoPrSecurityRule';
324
+ export type { AutoPrVersioningRule } from './schemas/AutoPrVersioningRule';
295
325
  export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
296
326
  export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
297
327
  export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
298
328
  export type { CategoryScorecard } from './schemas/CategoryScorecard';
299
329
  export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
330
+ export type { ChunkErrorCode } from './schemas/ChunkErrorCode';
331
+ export type { ChunkErrorResponse } from './schemas/ChunkErrorResponse';
332
+ export type { ChunkMetadata } from './schemas/ChunkMetadata';
300
333
  export type { CicdHarnessPipelineYamlResponseBody } from './schemas/CicdHarnessPipelineYamlResponseBody';
301
334
  export type { CicdOverviewResponseBody } from './schemas/CicdOverviewResponseBody';
302
335
  export type { CicdRulesEvaluation } from './schemas/CicdRulesEvaluation';
@@ -308,6 +341,8 @@ export type { CodeRepoRulesEvaluation } from './schemas/CodeRepoRulesEvaluation'
308
341
  export type { CodeRepositoryListingRequest } from './schemas/CodeRepositoryListingRequest';
309
342
  export type { CodeRepositoryListingResponse } from './schemas/CodeRepositoryListingResponse';
310
343
  export type { CodeRepositoryOverview } from './schemas/CodeRepositoryOverview';
344
+ export type { CompleteProcessingRequest } from './schemas/CompleteProcessingRequest';
345
+ export type { CompleteProcessingResult } from './schemas/CompleteProcessingResult';
311
346
  export type { ComplianceArtifactType } from './schemas/ComplianceArtifactType';
312
347
  export type { ComplianceArtifactWithExecution } from './schemas/ComplianceArtifactWithExecution';
313
348
  export type { ComplianceCheck } from './schemas/ComplianceCheck';
@@ -441,6 +476,8 @@ export type { PluginDto } from './schemas/PluginDto';
441
476
  export type { PluginResponseBody } from './schemas/PluginResponseBody';
442
477
  export type { PolicyViolation } from './schemas/PolicyViolation';
443
478
  export type { PolicyViolationRequestBody } from './schemas/PolicyViolationRequestBody';
479
+ export type { ProcessChunkRequest } from './schemas/ProcessChunkRequest';
480
+ export type { ProcessChunkResult } from './schemas/ProcessChunkResult';
444
481
  export type { ProvenanceActivity } from './schemas/ProvenanceActivity';
445
482
  export type { ProvenanceRequestBody } from './schemas/ProvenanceRequestBody';
446
483
  export type { ProvenanceRequestBodyV2 } from './schemas/ProvenanceRequestBodyV2';
@@ -17,6 +17,8 @@ export { fetchComplianceResultsByComplianceId, useFetchComplianceResultsByCompli
17
17
  export { fetchComplianceResultsGroupById, useFetchComplianceResultsGroupByIdMutation, } from './hooks/useFetchComplianceResultsGroupByIdMutation';
18
18
  export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
19
19
  export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
20
+ export { getAiWorkflowExecutionSteps, useGetAiWorkflowExecutionStepsQuery, } from './hooks/useGetAiWorkflowExecutionStepsQuery';
21
+ export { getAiWorkflowExecutions, useGetAiWorkflowExecutionsQuery, } from './hooks/useGetAiWorkflowExecutionsQuery';
20
22
  export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
21
23
  export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
22
24
  export { getArtifactComponentOverviewByPurl, useGetArtifactComponentOverviewByPurlQuery, } from './hooks/useGetArtifactComponentOverviewByPurlQuery';
@@ -27,6 +29,7 @@ export { getArtifactV2ComponentVulnerabilityListByPurl, useGetArtifactV2Componen
27
29
  export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
28
30
  export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
29
31
  export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
32
+ export { getAutoPrConfig, useGetAutoPrConfigQuery } from './hooks/useGetAutoPrConfigQuery';
30
33
  export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
31
34
  export { getCicdOverview, useGetCicdOverviewQuery } from './hooks/useGetCicdOverviewQuery';
32
35
  export { getCicdRulesEvaluationTrend, useGetCicdRulesEvaluationTrendQuery, } from './hooks/useGetCicdRulesEvaluationTrendQuery';
@@ -61,6 +64,7 @@ export { listIntegrations, useListIntegrationsQuery } from './hooks/useListInteg
61
64
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
62
65
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
63
66
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
67
+ export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
64
68
  export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
65
69
  export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
66
70
  export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
@@ -0,0 +1,2 @@
1
+ import type { AiWorkflowExecutionRequest } from '../schemas/AiWorkflowExecutionRequest';
2
+ export type AiWorkflowExecutionRequestBodyRequestBody = AiWorkflowExecutionRequest;
@@ -0,0 +1,2 @@
1
+ import type { AutoPrConfigRequestBody } from '../schemas/AutoPrConfigRequestBody';
2
+ export type AutoPrConfigRequestBodyRequestBody = AutoPrConfigRequestBody;
@@ -0,0 +1,2 @@
1
+ import type { AutoPrConfigResponseBody } from '../schemas/AutoPrConfigResponseBody';
2
+ export type AutoPrConfigResponseBodyResponse = AutoPrConfigResponseBody;
@@ -0,0 +1,7 @@
1
+ import type { AiWorkflowExecutionSummary } from '../schemas/AiWorkflowExecutionSummary';
2
+ export interface AiWorkflowExecutionListResponse {
3
+ /**
4
+ * List of AI workflow executions
5
+ */
6
+ executions?: AiWorkflowExecutionSummary[];
7
+ }
@@ -0,0 +1,70 @@
1
+ import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
2
+ import type { AiWorkflowResults } from '../schemas/AiWorkflowResults';
3
+ import type { AiWorkflowStepExecution } from '../schemas/AiWorkflowStepExecution';
4
+ export interface AiWorkflowExecutionRequest {
5
+ ai_workflow_type: AiWorkflowTypeEnum;
6
+ /**
7
+ * Name of the vulnerable component
8
+ * @example "qs"
9
+ */
10
+ component_name?: string;
11
+ /**
12
+ * Current/vulnerable version of the component
13
+ * @example "6.5.2"
14
+ */
15
+ component_version?: string;
16
+ /**
17
+ * Workflow duration in seconds
18
+ * @example 330
19
+ */
20
+ duration: number;
21
+ /**
22
+ * Unique execution identifier for this workflow run
23
+ * @example "exec-abc123-def456"
24
+ */
25
+ execution_id: string;
26
+ /**
27
+ * Target fixed version
28
+ * @example "6.5.3"
29
+ */
30
+ fixed_version?: string;
31
+ /**
32
+ * Orchestration or pipeline execution ID
33
+ * @example "pipeline-exec-abc123"
34
+ */
35
+ id: string;
36
+ results: AiWorkflowResults;
37
+ /**
38
+ * Output from each workflow step
39
+ */
40
+ step_executions: AiWorkflowStepExecution[];
41
+ /**
42
+ * Final workflow summary (formatted text)
43
+ */
44
+ summary?: string;
45
+ targets: {
46
+ /**
47
+ * Harness organization ID
48
+ */
49
+ org_id: string;
50
+ /**
51
+ * Harness project ID
52
+ */
53
+ project_id: string;
54
+ };
55
+ /**
56
+ * Workflow start time
57
+ * @format date-time
58
+ */
59
+ time: string;
60
+ /**
61
+ * Type of workflow execution
62
+ * @example "workflow"
63
+ */
64
+ type: string;
65
+ /**
66
+ * CVE ID or component information
67
+ * @example "CVE-2022-24999"
68
+ */
69
+ vulnerability_info?: string;
70
+ }
@@ -0,0 +1,13 @@
1
+ import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
2
+ import type { AiWorkflowStepExecution } from '../schemas/AiWorkflowStepExecution';
3
+ export interface AiWorkflowExecutionStepsResponse {
4
+ ai_workflow_type?: AiWorkflowTypeEnum;
5
+ /**
6
+ * Pipeline execution identifier
7
+ */
8
+ execution_id?: string;
9
+ /**
10
+ * List of workflow step executions
11
+ */
12
+ steps?: AiWorkflowStepExecution[];
13
+ }
@@ -0,0 +1,44 @@
1
+ import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
2
+ import type { AiWorkflowResults } from '../schemas/AiWorkflowResults';
3
+ export interface AiWorkflowExecutionSummary {
4
+ ai_workflow_type?: AiWorkflowTypeEnum;
5
+ /**
6
+ * Name of the vulnerable component
7
+ */
8
+ component_name?: string;
9
+ /**
10
+ * Current/vulnerable version of the component
11
+ */
12
+ component_version?: string;
13
+ /**
14
+ * Creation timestamp in milliseconds
15
+ * @format int64
16
+ */
17
+ created_at?: number;
18
+ /**
19
+ * Workflow duration in seconds
20
+ */
21
+ duration?: number;
22
+ /**
23
+ * Pipeline execution identifier
24
+ */
25
+ execution_id?: string;
26
+ /**
27
+ * Target fixed version
28
+ */
29
+ fixed_version?: string;
30
+ results?: AiWorkflowResults;
31
+ /**
32
+ * Workflow start time
33
+ * @format date-time
34
+ */
35
+ start_time?: string;
36
+ /**
37
+ * Final workflow summary
38
+ */
39
+ summary?: string;
40
+ /**
41
+ * CVE ID or component information
42
+ */
43
+ vulnerability_info?: string;
44
+ }
@@ -0,0 +1,22 @@
1
+ export interface AiWorkflowResults {
2
+ /**
3
+ * Number of failed remediations
4
+ * @example 0
5
+ */
6
+ failure_count: number;
7
+ /**
8
+ * Number of skipped repositories
9
+ * @example 1
10
+ */
11
+ skipped_count: number;
12
+ /**
13
+ * Number of successful remediations
14
+ * @example 4
15
+ */
16
+ success_count: number;
17
+ /**
18
+ * Total number of repositories processed
19
+ * @example 5
20
+ */
21
+ total_repositories: number;
22
+ }
@@ -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,17 @@
1
+ export interface AiWorkflowStepExecution {
2
+ /**
3
+ * Step banner text
4
+ * @example "🔍 STEP 1 Analyzing CVE-2022-24999"
5
+ */
6
+ banner: string;
7
+ /**
8
+ * Complete formatted output including boxes and tables
9
+ * @example "✅ CVE Analysis Complete\n\n ┌─ SEVERITY & SCORING ────┐\n │ CVSS: 7.5 HIGH │\n │ EPSS: 0.0% │\n └─────────────────────────┘\n"
10
+ */
11
+ details: string;
12
+ /**
13
+ * Key information and progress messages
14
+ * @example "Component: qs\nCVE ID: CVE-2022-24999\nQuerying LLM for vulnerability analysis...\n"
15
+ */
16
+ summary: string;
17
+ }
@@ -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
+ /**
2
+ * Type of AI workflow
3
+ * @example "Vulnerability"
4
+ */
5
+ export type AiWorkflowTypeEnum = 'Vulnerability' | 'zeroDay';
@@ -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,12 @@
1
+ import type { AutoPrCheckInterval } from '../schemas/AutoPrCheckInterval';
2
+ export interface AutoPrAdvancedRule {
3
+ /**
4
+ * List of components to exclude (PURL format)
5
+ */
6
+ exclude_components?: string[];
7
+ /**
8
+ * Maximum number of PRs to create
9
+ */
10
+ maximum_no_of_prs?: number;
11
+ pr_check_interval?: AutoPrCheckInterval;
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Interval for PR check
3
+ */
4
+ export type AutoPrCheckInterval = 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
@@ -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,14 @@
1
+ export interface AutoPrComplianceRule {
2
+ /**
3
+ * Create PR for end-of-life components
4
+ */
5
+ create_for_eol_components?: boolean;
6
+ /**
7
+ * Create PR for unmaintained components
8
+ */
9
+ create_for_unmaintained_components?: boolean;
10
+ /**
11
+ * Create PR when license changes
12
+ */
13
+ create_on_license_change?: boolean;
14
+ }
@@ -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,6 @@
1
+ import type { AutoPrPreset } from '../schemas/AutoPrPreset';
2
+ import type { AutoPrConfigUpdates } from '../schemas/AutoPrConfigUpdates';
3
+ export interface AutoPrConfigRequestBody {
4
+ preset: AutoPrPreset;
5
+ updates?: AutoPrConfigUpdates;
6
+ }
@@ -0,0 +1,50 @@
1
+ import type { AutoPrAdvancedRule } from '../schemas/AutoPrAdvancedRule';
2
+ import type { AutoPrSchedule } from '../schemas/AutoPrSchedule';
3
+ import type { AutoPrComplianceRule } from '../schemas/AutoPrComplianceRule';
4
+ import type { AutoPrDependencySafetyRule } from '../schemas/AutoPrDependencySafetyRule';
5
+ import type { AutoPrPreset } from '../schemas/AutoPrPreset';
6
+ import type { AutoPrSecurityRule } from '../schemas/AutoPrSecurityRule';
7
+ import type { AutoPrVersioningRule } from '../schemas/AutoPrVersioningRule';
8
+ export interface AutoPrConfigResponseBody {
9
+ /**
10
+ * Account identifier
11
+ */
12
+ account_id?: string;
13
+ advanced_rule?: AutoPrAdvancedRule;
14
+ /**
15
+ * Allow override of config at lower levels
16
+ */
17
+ allow_override?: boolean;
18
+ auto_pr_schedule?: AutoPrSchedule;
19
+ compliance_rule?: AutoPrComplianceRule;
20
+ /**
21
+ * Auto PR Config identifier
22
+ */
23
+ config_id?: string;
24
+ /**
25
+ * Creation timestamp
26
+ * @format int64
27
+ */
28
+ created_at?: number;
29
+ dependency_safety_rule?: AutoPrDependencySafetyRule;
30
+ /**
31
+ * Enable or disable Auto PR
32
+ */
33
+ enabled?: boolean;
34
+ /**
35
+ * Organization identifier
36
+ */
37
+ org_id?: string;
38
+ preset?: AutoPrPreset;
39
+ /**
40
+ * Project identifier
41
+ */
42
+ project_id?: string;
43
+ security_rule?: AutoPrSecurityRule;
44
+ /**
45
+ * Last update timestamp
46
+ * @format int64
47
+ */
48
+ updated_at?: number;
49
+ versioning_rule?: AutoPrVersioningRule;
50
+ }
@@ -0,0 +1,25 @@
1
+ import type { AutoPrAdvancedRule } from '../schemas/AutoPrAdvancedRule';
2
+ import type { AutoPrSchedule } from '../schemas/AutoPrSchedule';
3
+ import type { AutoPrComplianceRule } from '../schemas/AutoPrComplianceRule';
4
+ import type { AutoPrDependencySafetyRule } from '../schemas/AutoPrDependencySafetyRule';
5
+ import type { AutoPrSecurityRule } from '../schemas/AutoPrSecurityRule';
6
+ import type { AutoPrVersioningRule } from '../schemas/AutoPrVersioningRule';
7
+ /**
8
+ * Updates to apply to the Auto PR Config. If null, config is created with preset defaults.
9
+ */
10
+ export interface AutoPrConfigUpdates {
11
+ advanced_rule?: AutoPrAdvancedRule;
12
+ /**
13
+ * Allow override of config at lower levels
14
+ */
15
+ allow_override?: boolean;
16
+ auto_pr_schedule?: AutoPrSchedule;
17
+ compliance_rule?: AutoPrComplianceRule;
18
+ dependency_safety_rule?: AutoPrDependencySafetyRule;
19
+ /**
20
+ * Enable or disable Auto PR
21
+ */
22
+ enabled?: boolean;
23
+ security_rule?: AutoPrSecurityRule;
24
+ versioning_rule?: AutoPrVersioningRule;
25
+ }
@@ -0,0 +1,6 @@
1
+ export interface AutoPrDependencySafetyRule {
2
+ /**
3
+ * Create PR when there are no transitive dependency conflicts
4
+ */
5
+ create_on_no_transitive_conflict?: boolean;
6
+ }
@@ -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,4 @@
1
+ /**
2
+ * Auto PR Config preset type
3
+ */
4
+ export type AutoPrPreset = 'CUSTOM' | 'STRICT';
@@ -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 { AutoPrScheduleType } from '../schemas/AutoPrScheduleType';
2
+ export interface AutoPrSchedule {
3
+ /**
4
+ * Day of month for MONTHLY schedules (1-31)
5
+ */
6
+ day_of_month?: number;
7
+ /**
8
+ * Day of week for WEEKLY/BIWEEKLY schedules
9
+ */
10
+ day_of_week?: 'FRIDAY' | 'MONDAY' | 'SATURDAY' | 'SUNDAY' | 'THURSDAY' | 'TUESDAY' | 'WEDNESDAY';
11
+ /**
12
+ * Hour of day to run (0-23)
13
+ */
14
+ hour?: number;
15
+ /**
16
+ * Minute of hour to run (0-59)
17
+ */
18
+ minute?: number;
19
+ schedule_type?: AutoPrScheduleType;
20
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Schedule type for Auto PR
3
+ */
4
+ export type AutoPrScheduleType = 'BIWEEKLY' | 'DAILY' | 'MONTHLY' | 'WEEKLY';
@@ -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,22 @@
1
+ export interface AutoPrSecurityRule {
2
+ /**
3
+ * Create PR when critical vulnerabilities are fixed
4
+ */
5
+ create_on_critical_fixed?: boolean;
6
+ /**
7
+ * Create PR when high vulnerabilities are fixed
8
+ */
9
+ create_on_high_fixed?: boolean;
10
+ /**
11
+ * Create PR when low vulnerabilities are fixed
12
+ */
13
+ create_on_low_fixed?: boolean;
14
+ /**
15
+ * Create PR when medium vulnerabilities are fixed
16
+ */
17
+ create_on_medium_fixed?: boolean;
18
+ /**
19
+ * Create PR when no new vulnerabilities are introduced
20
+ */
21
+ create_on_no_new_vulnerabilities?: boolean;
22
+ }
@@ -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,18 @@
1
+ export interface AutoPrVersioningRule {
2
+ /**
3
+ * Allow major version upgrades
4
+ */
5
+ allow_major_version_upgrade?: boolean;
6
+ /**
7
+ * Allow minor version upgrades
8
+ */
9
+ allow_minor_version_upgrade?: boolean;
10
+ /**
11
+ * Allow patch version upgrades
12
+ */
13
+ allow_patch_version_upgrade?: boolean;
14
+ /**
15
+ * Allow pre-release version upgrades
16
+ */
17
+ allow_pre_release_version_upgrade?: boolean;
18
+ }
@@ -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,4 @@
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';
@@ -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,12 @@
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
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Metadata about the current chunk being processed
3
+ */
4
+ export interface ChunkMetadata {
5
+ /**
6
+ * Unique identifier for this chunk (for idempotency)
7
+ * @example "1706284800000-0"
8
+ */
9
+ chunk_id?: string;
10
+ /**
11
+ * 0-based index of the chunk
12
+ * @example 0
13
+ */
14
+ chunk_index?: number;
15
+ }
@@ -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,14 @@
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
+ }
@@ -0,0 +1,30 @@
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
+ }
@@ -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,16 @@
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
+ }
@@ -0,0 +1,31 @@
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
+ }
@@ -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.84.2",
3
+ "version": "0.84.4",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",