@harnessio/react-ssca-manager-client 0.84.24 → 0.84.25

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 (82) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowConfigQuery.d.ts +25 -0
  2. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowConfigQuery.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsQuery.d.ts +0 -2
  4. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsQuery.js +2 -2
  5. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.d.ts +3 -7
  6. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.js +2 -2
  7. package/dist/ssca-manager/src/services/hooks/useSaveAiWorkflowConfigMutation.d.ts +28 -0
  8. package/dist/ssca-manager/src/services/hooks/useSaveAiWorkflowConfigMutation.js +14 -0
  9. package/dist/ssca-manager/src/services/index.d.ts +33 -2
  10. package/dist/ssca-manager/src/services/index.js +2 -0
  11. package/dist/ssca-manager/src/services/schemas/AiBomComponentViewRequestBody.d.ts +13 -0
  12. package/dist/ssca-manager/src/services/schemas/AiBomComponentViewRequestBody.js +4 -0
  13. package/dist/ssca-manager/src/services/schemas/AiBomComponentViewResponse.d.ts +63 -0
  14. package/dist/ssca-manager/src/services/schemas/AiBomExternalReference.d.ts +13 -0
  15. package/dist/ssca-manager/src/services/schemas/AiBomExternalReference.js +4 -0
  16. package/dist/ssca-manager/src/services/schemas/AiBomModelCard.d.ts +11 -0
  17. package/dist/ssca-manager/src/services/schemas/AiBomModelCard.js +4 -0
  18. package/dist/ssca-manager/src/services/schemas/AiBomModelPipeline.d.ts +36 -0
  19. package/dist/ssca-manager/src/services/schemas/AiBomModelPipeline.js +4 -0
  20. package/dist/ssca-manager/src/services/schemas/AiBomOccurrence.d.ts +21 -0
  21. package/dist/ssca-manager/src/services/schemas/AiBomOccurrence.js +4 -0
  22. package/dist/ssca-manager/src/services/schemas/AiBomSummaryResponse.d.ts +43 -0
  23. package/dist/ssca-manager/src/services/schemas/AiBomSummaryResponse.js +4 -0
  24. package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigRequest.d.ts +6 -0
  25. package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigResponse.d.ts +14 -0
  26. package/dist/ssca-manager/src/services/schemas/AiWorkflowExcludedScope.d.ts +10 -0
  27. package/dist/ssca-manager/src/services/schemas/AiWorkflowExcludedScope.js +4 -0
  28. package/dist/ssca-manager/src/services/schemas/AiWorkflowExclusionScope.d.ts +13 -0
  29. package/dist/ssca-manager/src/services/schemas/AiWorkflowExclusionScope.js +0 -3
  30. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionDetailResponse.d.ts +67 -13
  31. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionSummary.d.ts +40 -9
  32. package/dist/ssca-manager/src/services/schemas/AiWorkflowInfrastructureConfig.d.ts +23 -0
  33. package/dist/ssca-manager/src/services/schemas/AiWorkflowInfrastructureConfig.js +4 -0
  34. package/dist/ssca-manager/src/services/schemas/AppendAiWorkflowStepExecutionResponse.d.ts +8 -0
  35. package/dist/ssca-manager/src/services/schemas/AppendAiWorkflowStepExecutionResponse.js +4 -0
  36. package/dist/ssca-manager/src/services/schemas/ArtifactListingPipelineResponse.d.ts +2 -0
  37. package/dist/ssca-manager/src/services/schemas/BatchAccountResult.d.ts +11 -0
  38. package/dist/ssca-manager/src/services/schemas/BatchAccountResult.js +4 -0
  39. package/dist/ssca-manager/src/services/schemas/BatchTriggerRequest.d.ts +10 -0
  40. package/dist/ssca-manager/src/services/schemas/BatchTriggerRequest.js +4 -0
  41. package/dist/ssca-manager/src/services/schemas/BatchTriggerResponse.d.ts +5 -0
  42. package/dist/ssca-manager/src/services/schemas/BatchTriggerResponse.js +4 -0
  43. package/dist/ssca-manager/src/services/schemas/ExecutionContextV2.d.ts +1 -1
  44. package/dist/ssca-manager/src/services/schemas/ExecutionDetail.d.ts +2 -0
  45. package/dist/ssca-manager/src/services/schemas/ExecutionType.d.ts +1 -1
  46. package/dist/ssca-manager/src/services/schemas/GitlabExecutionContext.d.ts +16 -0
  47. package/dist/ssca-manager/src/services/schemas/GitlabExecutionContext.js +1 -0
  48. package/dist/ssca-manager/src/services/schemas/GitlabExecutionDetail.d.ts +15 -0
  49. package/dist/ssca-manager/src/services/schemas/GitlabExecutionDetail.js +1 -0
  50. package/dist/ssca-manager/src/services/schemas/GitlabRunner.d.ts +4 -0
  51. package/dist/ssca-manager/src/services/schemas/GitlabRunner.js +4 -0
  52. package/dist/ssca-manager/src/services/schemas/GitlabRunnerDetail.d.ts +9 -0
  53. package/dist/ssca-manager/src/services/schemas/GitlabRunnerDetail.js +1 -0
  54. package/dist/ssca-manager/src/services/schemas/InternalAffectedArtifact.d.ts +15 -0
  55. package/dist/ssca-manager/src/services/schemas/InternalAffectedArtifact.js +4 -0
  56. package/dist/ssca-manager/src/services/schemas/InternalAlertContext.d.ts +16 -0
  57. package/dist/ssca-manager/src/services/schemas/InternalAlertContext.js +4 -0
  58. package/dist/ssca-manager/src/services/schemas/InternalIdentificationResult.d.ts +9 -0
  59. package/dist/ssca-manager/src/services/schemas/InternalIdentificationResult.js +1 -0
  60. package/dist/ssca-manager/src/services/schemas/InternalRecommendedVersion.d.ts +24 -0
  61. package/dist/ssca-manager/src/services/schemas/InternalRecommendedVersion.js +4 -0
  62. package/dist/ssca-manager/src/services/schemas/InternalStepExecution.d.ts +5 -0
  63. package/dist/ssca-manager/src/services/schemas/InternalStepExecution.js +4 -0
  64. package/dist/ssca-manager/src/services/schemas/InternalStoreIdentificationResultRequest.d.ts +9 -0
  65. package/dist/ssca-manager/src/services/schemas/InternalStoreIdentificationResultRequest.js +1 -0
  66. package/dist/ssca-manager/src/services/schemas/RemediationBatchDetail.d.ts +20 -0
  67. package/dist/ssca-manager/src/services/schemas/RemediationBatchDetail.js +1 -0
  68. package/dist/ssca-manager/src/services/schemas/RunnerDetail.d.ts +1 -1
  69. package/dist/ssca-manager/src/services/schemas/SaveOrchestrationRequestV2.d.ts +4 -0
  70. package/dist/ssca-manager/src/services/schemas/SbomComponentRequestDto.d.ts +33 -0
  71. package/dist/ssca-manager/src/services/schemas/SscaSummary.d.ts +25 -0
  72. package/dist/ssca-manager/src/services/schemas/StoreAiWorkflowExecutionResultRequest.d.ts +14 -0
  73. package/dist/ssca-manager/src/services/schemas/StoreAiWorkflowExecutionResultRequest.js +4 -0
  74. package/dist/ssca-manager/src/services/schemas/StoreAiWorkflowExecutionResultResponse.d.ts +11 -0
  75. package/dist/ssca-manager/src/services/schemas/StoreAiWorkflowExecutionResultResponse.js +4 -0
  76. package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusRequest.d.ts +10 -0
  77. package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusRequest.js +4 -0
  78. package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusResponse.d.ts +4 -0
  79. package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusResponse.js +4 -0
  80. package/package.json +1 -1
  81. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionListResponse.d.ts +0 -24
  82. /package/dist/ssca-manager/src/services/schemas/{AiWorkflowExecutionListResponse.js → AiBomComponentViewResponse.js} +0 -0
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AiWorkflowConfigResponse } from '../schemas/AiWorkflowConfigResponse';
3
+ import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetAiWorkflowConfigQueryPathParams {
7
+ org: string;
8
+ project: string;
9
+ }
10
+ export interface GetAiWorkflowConfigQueryQueryParams {
11
+ workflow_type?: AiWorkflowTypeEnum;
12
+ }
13
+ export interface GetAiWorkflowConfigQueryHeaderParams {
14
+ 'Harness-Account': string;
15
+ }
16
+ export type GetAiWorkflowConfigOkResponse = ResponseWithPagination<AiWorkflowConfigResponse>;
17
+ export type GetAiWorkflowConfigErrorResponse = unknown;
18
+ export interface GetAiWorkflowConfigProps extends GetAiWorkflowConfigQueryPathParams, Omit<FetcherOptions<GetAiWorkflowConfigQueryQueryParams, unknown, GetAiWorkflowConfigQueryHeaderParams>, 'url'> {
19
+ queryParams: GetAiWorkflowConfigQueryQueryParams;
20
+ }
21
+ export declare function getAiWorkflowConfig(props: GetAiWorkflowConfigProps): Promise<GetAiWorkflowConfigOkResponse>;
22
+ /**
23
+ * Get AI workflow configuration for the project. Falls back to account-level configuration when no project-scoped config exists.
24
+ */
25
+ export declare function useGetAiWorkflowConfigQuery(props: GetAiWorkflowConfigProps, options?: Omit<UseQueryOptions<GetAiWorkflowConfigOkResponse, GetAiWorkflowConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiWorkflowConfigOkResponse, 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 getAiWorkflowConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-config`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get AI workflow configuration for the project. Falls back to account-level configuration when no project-scoped config exists.
11
+ */
12
+ export function useGetAiWorkflowConfigQuery(props, options) {
13
+ return useQuery(['getAIWorkflowConfig', props.org, props.project, props.queryParams], ({ signal }) => getAiWorkflowConfig(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -3,8 +3,6 @@ import type { AiWorkflowExecutionStepsResponse } from '../schemas/AiWorkflowExec
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface GetAiWorkflowExecutionStepsQueryPathParams {
6
- org: string;
7
- project: string;
8
6
  executionId: string;
9
7
  }
10
8
  export interface GetAiWorkflowExecutionStepsQueryQueryParams {
@@ -4,11 +4,11 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
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));
7
+ return fetcher(Object.assign({ url: `/v1/ai-workflow-executions/${props.executionId}/steps`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get step details for a specific AI workflow execution.
11
11
  */
12
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);
13
+ return useQuery(['getAIWorkflowExecutionSteps', props.executionId, props.queryParams], ({ signal }) => getAiWorkflowExecutionSteps(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -1,12 +1,8 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { AiWorkflowExecutionListResponse } from '../schemas/AiWorkflowExecutionListResponse';
2
+ import type { AiWorkflowExecutionSummary } from '../schemas/AiWorkflowExecutionSummary';
3
3
  import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface GetAiWorkflowExecutionsQueryPathParams {
7
- org: string;
8
- project: string;
9
- }
10
6
  export interface GetAiWorkflowExecutionsQueryQueryParams {
11
7
  ai_workflow_type?: string;
12
8
  status?: AiWorkflowExecutionStatusEnum;
@@ -31,9 +27,9 @@ export interface GetAiWorkflowExecutionsQueryQueryParams {
31
27
  export interface GetAiWorkflowExecutionsQueryHeaderParams {
32
28
  'Harness-Account': string;
33
29
  }
34
- export type GetAiWorkflowExecutionsOkResponse = ResponseWithPagination<AiWorkflowExecutionListResponse>;
30
+ export type GetAiWorkflowExecutionsOkResponse = ResponseWithPagination<AiWorkflowExecutionSummary[]>;
35
31
  export type GetAiWorkflowExecutionsErrorResponse = unknown;
36
- export interface GetAiWorkflowExecutionsProps extends GetAiWorkflowExecutionsQueryPathParams, Omit<FetcherOptions<GetAiWorkflowExecutionsQueryQueryParams, unknown, GetAiWorkflowExecutionsQueryHeaderParams>, 'url'> {
32
+ export interface GetAiWorkflowExecutionsProps extends Omit<FetcherOptions<GetAiWorkflowExecutionsQueryQueryParams, unknown, GetAiWorkflowExecutionsQueryHeaderParams>, 'url'> {
37
33
  queryParams: GetAiWorkflowExecutionsQueryQueryParams;
38
34
  }
39
35
  export declare function getAiWorkflowExecutions(props: GetAiWorkflowExecutionsProps): Promise<GetAiWorkflowExecutionsOkResponse>;
@@ -4,11 +4,11 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getAiWorkflowExecutions(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-executions`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/ai-workflow-executions`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
10
  * Get AI workflow executions with optional filters for status, date range, batch ID, and workflow type
11
11
  */
12
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);
13
+ return useQuery(['getAIWorkflowExecutions', props.queryParams], ({ signal }) => getAiWorkflowExecutions(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { AiWorkflowConfigResponse } from '../schemas/AiWorkflowConfigResponse';
3
+ import type { AiWorkflowConfigRequest } from '../schemas/AiWorkflowConfigRequest';
4
+ import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface SaveAiWorkflowConfigMutationPathParams {
8
+ org: string;
9
+ project: string;
10
+ }
11
+ export interface SaveAiWorkflowConfigMutationQueryParams {
12
+ workflow_type?: AiWorkflowTypeEnum;
13
+ }
14
+ export interface SaveAiWorkflowConfigMutationHeaderParams {
15
+ 'Harness-Account': string;
16
+ }
17
+ export type SaveAiWorkflowConfigRequestBody = AiWorkflowConfigRequest;
18
+ export type SaveAiWorkflowConfigOkResponse = ResponseWithPagination<AiWorkflowConfigResponse>;
19
+ export type SaveAiWorkflowConfigErrorResponse = unknown;
20
+ export interface SaveAiWorkflowConfigProps extends SaveAiWorkflowConfigMutationPathParams, Omit<FetcherOptions<SaveAiWorkflowConfigMutationQueryParams, SaveAiWorkflowConfigRequestBody, SaveAiWorkflowConfigMutationHeaderParams>, 'url'> {
21
+ queryParams: SaveAiWorkflowConfigMutationQueryParams;
22
+ body: SaveAiWorkflowConfigRequestBody;
23
+ }
24
+ export declare function saveAiWorkflowConfig(props: SaveAiWorkflowConfigProps): Promise<SaveAiWorkflowConfigOkResponse>;
25
+ /**
26
+ * Create or update AI workflow configuration for the project. The org and project path parameters scope the configuration.
27
+ */
28
+ export declare function useSaveAiWorkflowConfigMutation(options?: Omit<UseMutationOptions<SaveAiWorkflowConfigOkResponse, SaveAiWorkflowConfigErrorResponse, SaveAiWorkflowConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveAiWorkflowConfigOkResponse, unknown, SaveAiWorkflowConfigProps, 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 saveAiWorkflowConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-config`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Create or update AI workflow configuration for the project. The org and project path parameters scope the configuration.
11
+ */
12
+ export function useSaveAiWorkflowConfigMutation(options) {
13
+ return useMutation((mutateProps) => saveAiWorkflowConfig(mutateProps), options);
14
+ }
@@ -43,9 +43,11 @@ export type { FetchPluginsForWorkflowErrorResponse, FetchPluginsForWorkflowOkRes
43
43
  export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
44
44
  export type { FetchReposInIntegrationErrorResponse, FetchReposInIntegrationOkResponse, FetchReposInIntegrationProps, FetchReposInIntegrationQueryPathParams, FetchReposInIntegrationQueryQueryParams, } from './hooks/useFetchReposInIntegrationQuery';
45
45
  export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
46
+ export type { GetAiWorkflowConfigErrorResponse, GetAiWorkflowConfigOkResponse, GetAiWorkflowConfigProps, GetAiWorkflowConfigQueryPathParams, GetAiWorkflowConfigQueryQueryParams, } from './hooks/useGetAiWorkflowConfigQuery';
47
+ export { getAiWorkflowConfig, useGetAiWorkflowConfigQuery, } from './hooks/useGetAiWorkflowConfigQuery';
46
48
  export type { GetAiWorkflowExecutionStepsErrorResponse, GetAiWorkflowExecutionStepsOkResponse, GetAiWorkflowExecutionStepsProps, GetAiWorkflowExecutionStepsQueryPathParams, GetAiWorkflowExecutionStepsQueryQueryParams, } from './hooks/useGetAiWorkflowExecutionStepsQuery';
47
49
  export { getAiWorkflowExecutionSteps, useGetAiWorkflowExecutionStepsQuery, } from './hooks/useGetAiWorkflowExecutionStepsQuery';
48
- export type { GetAiWorkflowExecutionsErrorResponse, GetAiWorkflowExecutionsOkResponse, GetAiWorkflowExecutionsProps, GetAiWorkflowExecutionsQueryPathParams, GetAiWorkflowExecutionsQueryQueryParams, } from './hooks/useGetAiWorkflowExecutionsQuery';
50
+ export type { GetAiWorkflowExecutionsErrorResponse, GetAiWorkflowExecutionsOkResponse, GetAiWorkflowExecutionsProps, GetAiWorkflowExecutionsQueryQueryParams, } from './hooks/useGetAiWorkflowExecutionsQuery';
49
51
  export { getAiWorkflowExecutions, useGetAiWorkflowExecutionsQuery, } from './hooks/useGetAiWorkflowExecutionsQuery';
50
52
  export type { GetAllRepositoriesSummaryErrorResponse, GetAllRepositoriesSummaryOkResponse, GetAllRepositoriesSummaryProps, GetAllRepositoriesSummaryQueryPathParams, } from './hooks/useGetAllRepositoriesSummaryQuery';
51
53
  export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
@@ -167,6 +169,8 @@ export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResu
167
169
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
168
170
  export type { ResetLicenseFamilyConfigErrorResponse, ResetLicenseFamilyConfigMutationPathParams, ResetLicenseFamilyConfigMutationQueryParams, ResetLicenseFamilyConfigOkResponse, ResetLicenseFamilyConfigProps, } from './hooks/useResetLicenseFamilyConfigMutation';
169
171
  export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from './hooks/useResetLicenseFamilyConfigMutation';
172
+ export type { SaveAiWorkflowConfigErrorResponse, SaveAiWorkflowConfigMutationPathParams, SaveAiWorkflowConfigMutationQueryParams, SaveAiWorkflowConfigOkResponse, SaveAiWorkflowConfigProps, SaveAiWorkflowConfigRequestBody, } from './hooks/useSaveAiWorkflowConfigMutation';
173
+ export { saveAiWorkflowConfig, useSaveAiWorkflowConfigMutation, } from './hooks/useSaveAiWorkflowConfigMutation';
170
174
  export type { SaveAutoPrConfigErrorResponse, SaveAutoPrConfigOkResponse, SaveAutoPrConfigProps, SaveAutoPrConfigRequestBody, } from './hooks/useSaveAutoPrConfigMutation';
171
175
  export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
172
176
  export type { SaveConnectorConfigErrorResponse, SaveConnectorConfigOkResponse, SaveConnectorConfigProps, SaveConnectorConfigRequestBody, } from './hooks/useSaveConnectorConfigMutation';
@@ -326,16 +330,24 @@ export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIn
326
330
  export type { VersionResponseBodyResponse } from './responses/VersionResponseBodyResponse';
327
331
  export type { ActivityDetails } from './schemas/ActivityDetails';
328
332
  export type { AffectedArtifactInfo } from './schemas/AffectedArtifactInfo';
333
+ export type { AiBomComponentViewRequestBody } from './schemas/AiBomComponentViewRequestBody';
334
+ export type { AiBomComponentViewResponse } from './schemas/AiBomComponentViewResponse';
335
+ export type { AiBomExternalReference } from './schemas/AiBomExternalReference';
336
+ export type { AiBomModelCard } from './schemas/AiBomModelCard';
337
+ export type { AiBomModelPipeline } from './schemas/AiBomModelPipeline';
338
+ export type { AiBomOccurrence } from './schemas/AiBomOccurrence';
339
+ export type { AiBomSummaryResponse } from './schemas/AiBomSummaryResponse';
329
340
  export type { AiWorkflowAlertConfig } from './schemas/AiWorkflowAlertConfig';
330
341
  export type { AiWorkflowConfigRequest } from './schemas/AiWorkflowConfigRequest';
331
342
  export type { AiWorkflowConfigResponse } from './schemas/AiWorkflowConfigResponse';
343
+ export type { AiWorkflowExcludedScope } from './schemas/AiWorkflowExcludedScope';
332
344
  export type { AiWorkflowExclusionScope } from './schemas/AiWorkflowExclusionScope';
333
345
  export type { AiWorkflowExecutionDetailResponse } from './schemas/AiWorkflowExecutionDetailResponse';
334
- export type { AiWorkflowExecutionListResponse } from './schemas/AiWorkflowExecutionListResponse';
335
346
  export type { AiWorkflowExecutionRequest } from './schemas/AiWorkflowExecutionRequest';
336
347
  export type { AiWorkflowExecutionStatusEnum } from './schemas/AiWorkflowExecutionStatusEnum';
337
348
  export type { AiWorkflowExecutionStepsResponse } from './schemas/AiWorkflowExecutionStepsResponse';
338
349
  export type { AiWorkflowExecutionSummary } from './schemas/AiWorkflowExecutionSummary';
350
+ export type { AiWorkflowInfrastructureConfig } from './schemas/AiWorkflowInfrastructureConfig';
339
351
  export type { AiWorkflowResults } from './schemas/AiWorkflowResults';
340
352
  export type { AiWorkflowStepExecution } from './schemas/AiWorkflowStepExecution';
341
353
  export type { AiWorkflowTriggerConfig } from './schemas/AiWorkflowTriggerConfig';
@@ -343,6 +355,7 @@ export type { AiWorkflowTriggerRequest } from './schemas/AiWorkflowTriggerReques
343
355
  export type { AiWorkflowTriggerResponse } from './schemas/AiWorkflowTriggerResponse';
344
356
  export type { AiWorkflowTypeEnum } from './schemas/AiWorkflowTypeEnum';
345
357
  export type { AlertContext } from './schemas/AlertContext';
358
+ export type { AppendAiWorkflowStepExecutionResponse } from './schemas/AppendAiWorkflowStepExecutionResponse';
346
359
  export type { Artifact } from './schemas/Artifact';
347
360
  export type { ArtifactAndDeploymentsResponseBody } from './schemas/ArtifactAndDeploymentsResponseBody';
348
361
  export type { ArtifactChainOfCustody } from './schemas/ArtifactChainOfCustody';
@@ -412,9 +425,12 @@ export type { AutoPrVersioningRule } from './schemas/AutoPrVersioningRule';
412
425
  export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
413
426
  export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
414
427
  export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
428
+ export type { BatchAccountResult } from './schemas/BatchAccountResult';
415
429
  export type { BatchComponentRemediationItem } from './schemas/BatchComponentRemediationItem';
416
430
  export type { BatchComponentRemediationRequest } from './schemas/BatchComponentRemediationRequest';
417
431
  export type { BatchComponentRemediationResponse } from './schemas/BatchComponentRemediationResponse';
432
+ export type { BatchTriggerRequest } from './schemas/BatchTriggerRequest';
433
+ export type { BatchTriggerResponse } from './schemas/BatchTriggerResponse';
418
434
  export type { BulkDownloadJobResponse } from './schemas/BulkDownloadJobResponse';
419
435
  export type { CategoryScorecard } from './schemas/CategoryScorecard';
420
436
  export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
@@ -531,6 +547,10 @@ export type { GithubExecutionContext } from './schemas/GithubExecutionContext';
531
547
  export type { GithubExecutionDetail } from './schemas/GithubExecutionDetail';
532
548
  export type { GithubRunner } from './schemas/GithubRunner';
533
549
  export type { GithubRunnerDetail } from './schemas/GithubRunnerDetail';
550
+ export type { GitlabExecutionContext } from './schemas/GitlabExecutionContext';
551
+ export type { GitlabExecutionDetail } from './schemas/GitlabExecutionDetail';
552
+ export type { GitlabRunner } from './schemas/GitlabRunner';
553
+ export type { GitlabRunnerDetail } from './schemas/GitlabRunnerDetail';
534
554
  export type { GraphQlError } from './schemas/GraphQlError';
535
555
  export type { GraphQlRequest } from './schemas/GraphQlRequest';
536
556
  export type { GraphQlResponse } from './schemas/GraphQlResponse';
@@ -551,6 +571,12 @@ export type { IntegrationType } from './schemas/IntegrationType';
551
571
  export type { IntegrityVerification } from './schemas/IntegrityVerification';
552
572
  export type { IntegrityVerificationActivity } from './schemas/IntegrityVerificationActivity';
553
573
  export type { IntegrityVerificationModelPipeline } from './schemas/IntegrityVerificationModelPipeline';
574
+ export type { InternalAffectedArtifact } from './schemas/InternalAffectedArtifact';
575
+ export type { InternalAlertContext } from './schemas/InternalAlertContext';
576
+ export type { InternalIdentificationResult } from './schemas/InternalIdentificationResult';
577
+ export type { InternalRecommendedVersion } from './schemas/InternalRecommendedVersion';
578
+ export type { InternalStepExecution } from './schemas/InternalStepExecution';
579
+ export type { InternalStoreIdentificationResultRequest } from './schemas/InternalStoreIdentificationResultRequest';
554
580
  export type { LayerType } from './schemas/LayerType';
555
581
  export type { LicenseDrift } from './schemas/LicenseDrift';
556
582
  export type { LicenseDriftSummary } from './schemas/LicenseDriftSummary';
@@ -599,6 +625,7 @@ export type { RemediationArtifactDeploymentsListingResponse } from './schemas/Re
599
625
  export type { RemediationArtifactDetailsResponse } from './schemas/RemediationArtifactDetailsResponse';
600
626
  export type { RemediationArtifactListingRequestBody } from './schemas/RemediationArtifactListingRequestBody';
601
627
  export type { RemediationArtifactListingResponse } from './schemas/RemediationArtifactListingResponse';
628
+ export type { RemediationBatchDetail } from './schemas/RemediationBatchDetail';
602
629
  export type { RemediationCodePreview } from './schemas/RemediationCodePreview';
603
630
  export type { RemediationCondition } from './schemas/RemediationCondition';
604
631
  export type { RemediationCount } from './schemas/RemediationCount';
@@ -659,12 +686,16 @@ export type { SlsaVerificationRequestBody } from './schemas/SlsaVerificationRequ
659
686
  export type { SlsaVerificationRequestBodyV2 } from './schemas/SlsaVerificationRequestBodyV2';
660
687
  export type { SscaSummary } from './schemas/SscaSummary';
661
688
  export type { StoIssueCount } from './schemas/StoIssueCount';
689
+ export type { StoreAiWorkflowExecutionResultRequest } from './schemas/StoreAiWorkflowExecutionResultRequest';
690
+ export type { StoreAiWorkflowExecutionResultResponse } from './schemas/StoreAiWorkflowExecutionResultResponse';
662
691
  export type { SubjectFilter } from './schemas/SubjectFilter';
663
692
  export type { TargetVersionVulnerability } from './schemas/TargetVersionVulnerability';
664
693
  export type { TicketInfo } from './schemas/TicketInfo';
665
694
  export type { TokenIssueResponseBody } from './schemas/TokenIssueResponseBody';
666
695
  export type { TokenIssueTokenResponseBody } from './schemas/TokenIssueTokenResponseBody';
667
696
  export type { TriggerType } from './schemas/TriggerType';
697
+ export type { UpdateAiWorkflowExecutionStatusRequest } from './schemas/UpdateAiWorkflowExecutionStatusRequest';
698
+ export type { UpdateAiWorkflowExecutionStatusResponse } from './schemas/UpdateAiWorkflowExecutionStatusResponse';
668
699
  export type { UpdateIntegration } from './schemas/UpdateIntegration';
669
700
  export type { VerificationActivity } from './schemas/VerificationActivity';
670
701
  export type { VerificationStatus } from './schemas/VerificationStatus';
@@ -20,6 +20,7 @@ export { fetchComplianceResultsByComplianceId, useFetchComplianceResultsByCompli
20
20
  export { fetchComplianceResultsGroupById, useFetchComplianceResultsGroupByIdMutation, } from './hooks/useFetchComplianceResultsGroupByIdMutation';
21
21
  export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
22
22
  export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
23
+ export { getAiWorkflowConfig, useGetAiWorkflowConfigQuery, } from './hooks/useGetAiWorkflowConfigQuery';
23
24
  export { getAiWorkflowExecutionSteps, useGetAiWorkflowExecutionStepsQuery, } from './hooks/useGetAiWorkflowExecutionStepsQuery';
24
25
  export { getAiWorkflowExecutions, useGetAiWorkflowExecutionsQuery, } from './hooks/useGetAiWorkflowExecutionsQuery';
25
26
  export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
@@ -82,6 +83,7 @@ export { listRemediations, useListRemediationsQuery } from './hooks/useListRemed
82
83
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
83
84
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
84
85
  export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from './hooks/useResetLicenseFamilyConfigMutation';
86
+ export { saveAiWorkflowConfig, useSaveAiWorkflowConfigMutation, } from './hooks/useSaveAiWorkflowConfigMutation';
85
87
  export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
86
88
  export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
87
89
  export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Filter and search criteria for AI-BOM components
3
+ */
4
+ export interface AiBomComponentViewRequestBody {
5
+ /**
6
+ * Filter by component type (e.g. model, pkg, agent, framework)
7
+ */
8
+ ai_component_type?: string;
9
+ /**
10
+ * Search by component name
11
+ */
12
+ search?: string;
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,63 @@
1
+ import type { AiBomExternalReference } from '../schemas/AiBomExternalReference';
2
+ import type { AiBomModelCard } from '../schemas/AiBomModelCard';
3
+ import type { AiBomOccurrence } from '../schemas/AiBomOccurrence';
4
+ /**
5
+ * AI-BOM component details for the AI Bill of Materials view
6
+ */
7
+ export interface AiBomComponentViewResponse {
8
+ /**
9
+ * AI component classification derived from bom-ref prefix (e.g. model, pkg, agent)
10
+ */
11
+ ai_component_type?: string;
12
+ /**
13
+ * Detection confidence score (0.0 to 1.0)
14
+ * @format float
15
+ */
16
+ ai_detection_confidence?: number;
17
+ /**
18
+ * Detection technique used (e.g. source-code-analysis)
19
+ */
20
+ ai_detection_technique?: string;
21
+ /**
22
+ * External references such as model card URLs
23
+ */
24
+ ai_external_references?: AiBomExternalReference[];
25
+ ai_model_card?: AiBomModelCard;
26
+ /**
27
+ * Canonical model name (e.g. gpt-4o, claude-3-5-sonnet-20240620)
28
+ */
29
+ ai_model_name?: string;
30
+ /**
31
+ * All source code locations where this component was detected
32
+ */
33
+ ai_occurrences?: AiBomOccurrence[];
34
+ /**
35
+ * AI/ML provider name (e.g. OpenAI, Anthropic, HuggingFace)
36
+ */
37
+ ai_provider?: string;
38
+ /**
39
+ * Programming language (e.g. python)
40
+ */
41
+ language?: string;
42
+ /**
43
+ * Total number of source code occurrences
44
+ */
45
+ occurrence_count?: number;
46
+ /**
47
+ * Unique component identifier (bom-ref)
48
+ */
49
+ package_id?: string;
50
+ /**
51
+ * Component name (e.g. gpt-4, langchain_openai)
52
+ */
53
+ package_name?: string;
54
+ /**
55
+ * Source file where the component was first detected
56
+ */
57
+ package_source_info?: string;
58
+ /**
59
+ * CycloneDX component type (e.g. machine-learning-model, library, framework)
60
+ */
61
+ package_type?: string;
62
+ package_version?: string;
63
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * External reference for an AI/ML component
3
+ */
4
+ export interface AiBomExternalReference {
5
+ /**
6
+ * Reference type (e.g. model-card)
7
+ */
8
+ type?: string;
9
+ /**
10
+ * URL of the external reference
11
+ */
12
+ url?: string;
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,11 @@
1
+ /**
2
+ * Model card metadata for ML models
3
+ */
4
+ export interface AiBomModelCard {
5
+ /**
6
+ * Model parameters and configuration
7
+ */
8
+ model_parameters?: {
9
+ [key: string]: any;
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 {};
@@ -0,0 +1,36 @@
1
+ /**
2
+ * AI-BOM details for an artifact in the pipeline view
3
+ */
4
+ export interface AiBomModelPipeline {
5
+ /**
6
+ * @format int64
7
+ */
8
+ agents?: number;
9
+ /**
10
+ * Total number of AI assets
11
+ * @format int64
12
+ */
13
+ ai_assets?: number;
14
+ /**
15
+ * @format int64
16
+ */
17
+ datasets?: number;
18
+ /**
19
+ * @format int64
20
+ */
21
+ libraries?: number;
22
+ /**
23
+ * @format int64
24
+ */
25
+ mcp?: number;
26
+ /**
27
+ * @format int64
28
+ */
29
+ models?: number;
30
+ stage_execution_identifier?: string;
31
+ stage_identifier?: string;
32
+ stage_name?: string;
33
+ step_execution_identifier?: string;
34
+ step_identifier?: string;
35
+ step_name?: string;
36
+ }
@@ -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,21 @@
1
+ /**
2
+ * Source location where an AI/ML component was detected
3
+ */
4
+ export interface AiBomOccurrence {
5
+ /**
6
+ * Additional context about the detection (e.g. matched text)
7
+ */
8
+ additional_context?: string;
9
+ /**
10
+ * Line number in the file
11
+ */
12
+ line?: number;
13
+ /**
14
+ * File path or source identifier
15
+ */
16
+ location?: string;
17
+ /**
18
+ * Character offset within the line
19
+ */
20
+ offset?: number;
21
+ }
@@ -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,43 @@
1
+ /**
2
+ * AI-BOM summary with per-type component counts
3
+ */
4
+ export interface AiBomSummaryResponse {
5
+ /**
6
+ * Number of agent components
7
+ * @format int64
8
+ */
9
+ agent_count?: number;
10
+ /**
11
+ * Total number of AI-BOM components
12
+ * @format int64
13
+ */
14
+ component_count?: number;
15
+ /**
16
+ * Number of training dataset components
17
+ * @format int64
18
+ */
19
+ dataset_count?: number;
20
+ /**
21
+ * Number of framework components
22
+ * @format int64
23
+ */
24
+ framework_count?: number;
25
+ /**
26
+ * Number of library/package components
27
+ * @format int64
28
+ */
29
+ library_count?: number;
30
+ /**
31
+ * Number of ML model components
32
+ * @format int64
33
+ */
34
+ model_count?: number;
35
+ /**
36
+ * Name of the AI-BOM tool used
37
+ */
38
+ tool_name?: string;
39
+ /**
40
+ * Version of the AI-BOM tool
41
+ */
42
+ tool_version?: string;
43
+ }
@@ -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,5 +1,6 @@
1
1
  import type { AiWorkflowAlertConfig } from '../schemas/AiWorkflowAlertConfig';
2
2
  import type { AiWorkflowExclusionScope } from '../schemas/AiWorkflowExclusionScope';
3
+ import type { AiWorkflowInfrastructureConfig } from '../schemas/AiWorkflowInfrastructureConfig';
3
4
  import type { AiWorkflowTriggerConfig } from '../schemas/AiWorkflowTriggerConfig';
4
5
  import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
5
6
  export interface AiWorkflowConfigRequest {
@@ -13,10 +14,15 @@ export interface AiWorkflowConfigRequest {
13
14
  */
14
15
  enabled: boolean;
15
16
  exclusion_scope?: AiWorkflowExclusionScope;
17
+ infrastructure?: AiWorkflowInfrastructureConfig;
16
18
  /**
17
19
  * Risk categories to monitor (e.g. Remote Code Execution, SQL Injection). Stored in v3; enforcement deferred to v4.
18
20
  */
19
21
  risk_categories?: string[];
22
+ /**
23
+ * FP Triage "Scan Types to Triage" filter. Allowed tokens: SCA, SAST, CONTAINER, SECRET, IAC, DAST. Subset of scan types whose findings the agent triages; empty/absent means all supported types. Forwarded to the pre-plugin and applied at the sto-core occurrences-in-scope query.
24
+ */
25
+ scan_types?: string[];
20
26
  trigger_config?: AiWorkflowTriggerConfig;
21
27
  workflow_type?: AiWorkflowTypeEnum;
22
28
  }
@@ -1,5 +1,6 @@
1
1
  import type { AiWorkflowAlertConfig } from '../schemas/AiWorkflowAlertConfig';
2
2
  import type { AiWorkflowExclusionScope } from '../schemas/AiWorkflowExclusionScope';
3
+ import type { AiWorkflowInfrastructureConfig } from '../schemas/AiWorkflowInfrastructureConfig';
3
4
  import type { AiWorkflowTriggerConfig } from '../schemas/AiWorkflowTriggerConfig';
4
5
  import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
5
6
  export interface AiWorkflowConfigResponse {
@@ -19,7 +20,20 @@ export interface AiWorkflowConfigResponse {
19
20
  */
20
21
  enabled?: boolean;
21
22
  exclusion_scope?: AiWorkflowExclusionScope;
23
+ infrastructure?: AiWorkflowInfrastructureConfig;
24
+ /**
25
+ * Organization identifier (null for account-global configs)
26
+ */
27
+ org_identifier?: string;
28
+ /**
29
+ * Project identifier (null for account-global configs)
30
+ */
31
+ project_identifier?: string;
22
32
  risk_categories?: string[];
33
+ /**
34
+ * FP Triage "Scan Types to Triage" filter. Allowed tokens: SCA, SAST, CONTAINER, SECRET, IAC, DAST. Empty/absent means all supported types.
35
+ */
36
+ scan_types?: string[];
23
37
  trigger_config?: AiWorkflowTriggerConfig;
24
38
  /**
25
39
  * Last updated timestamp in milliseconds
@@ -0,0 +1,10 @@
1
+ export interface AiWorkflowExcludedScope {
2
+ /**
3
+ * Organization identifier to exclude
4
+ */
5
+ org_identifier?: string;
6
+ /**
7
+ * Project identifier to exclude (within the given org)
8
+ */
9
+ project_identifier?: string;
10
+ }
@@ -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,4 +1,13 @@
1
+ import type { AiWorkflowExcludedScope } from '../schemas/AiWorkflowExcludedScope';
1
2
  export interface AiWorkflowExclusionScope {
3
+ /**
4
+ * Artifact name glob patterns to exclude from identification (e.g. "org/frontend-app", "!*-SNAPSHOT")
5
+ */
6
+ exclude_artifact_patterns?: string[];
7
+ /**
8
+ * Repository name glob patterns to exclude from identification (e.g. "*-test", "dev-*")
9
+ */
10
+ exclude_repo_patterns?: string[];
2
11
  /**
3
12
  * Organization identifiers to exclude from identification scans
4
13
  */
@@ -7,4 +16,8 @@ export interface AiWorkflowExclusionScope {
7
16
  * Project identifiers to exclude from identification scans
8
17
  */
9
18
  excluded_project_ids?: string[];
19
+ /**
20
+ * FP Triage account-level exclusion: (org, project) pairs whose scan-completion events are skipped before any agent run. Evaluated against the originating scan scope.
21
+ */
22
+ excluded_scopes?: AiWorkflowExcludedScope[];
10
23
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};