@harnessio/react-ssca-manager-client 0.86.21 → 0.86.22

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/useCreateIntegrationMutation.d.ts +2 -2
  2. package/dist/ssca-manager/src/services/index.d.ts +1 -11
  3. package/dist/ssca-manager/src/services/index.js +0 -2
  4. package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigYamlResponse.d.ts +2 -0
  5. package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigYamlResponse.js +0 -3
  6. package/dist/ssca-manager/src/services/schemas/AiWorkflowIncludeScopeStatus.d.ts +5 -0
  7. package/dist/ssca-manager/src/services/schemas/Integration.d.ts +0 -23
  8. package/dist/ssca-manager/src/services/schemas/UpdateIntegrationRspmRequest.d.ts +1 -5
  9. package/package.json +1 -1
  10. package/dist/ssca-manager/src/services/hooks/useListIntegrationRepoScansMutation.d.ts +0 -36
  11. package/dist/ssca-manager/src/services/hooks/useListIntegrationRepoScansMutation.js +0 -15
  12. package/dist/ssca-manager/src/services/hooks/useListScannerConfigurationIntegrationsQuery.d.ts +0 -21
  13. package/dist/ssca-manager/src/services/hooks/useListScannerConfigurationIntegrationsQuery.js +0 -14
  14. package/dist/ssca-manager/src/services/requestBodies/IntegrationRepoScanListRequestBodyRequestBody.d.ts +0 -2
  15. package/dist/ssca-manager/src/services/requestBodies/IntegrationRepoScanListRequestBodyRequestBody.js +0 -1
  16. package/dist/ssca-manager/src/services/responses/IntegrationRepoScanListingResponseBodyResponse.d.ts +0 -2
  17. package/dist/ssca-manager/src/services/responses/IntegrationRepoScanListingResponseBodyResponse.js +0 -1
  18. package/dist/ssca-manager/src/services/responses/ScannerConfigurationIntegrationsResponseBodyResponse.d.ts +0 -2
  19. package/dist/ssca-manager/src/services/responses/ScannerConfigurationIntegrationsResponseBodyResponse.js +0 -1
  20. package/dist/ssca-manager/src/services/schemas/IntegrationRepoScanListItem.d.ts +0 -19
  21. package/dist/ssca-manager/src/services/schemas/IntegrationRepoScanListItem.js +0 -1
  22. package/dist/ssca-manager/src/services/schemas/IntegrationRepoScanListRequest.d.ts +0 -6
  23. package/dist/ssca-manager/src/services/schemas/RepoScanExecutionDto.d.ts +0 -26
  24. package/dist/ssca-manager/src/services/schemas/RepoScanExecutionDto.js +0 -1
  25. package/dist/ssca-manager/src/services/schemas/RepoScanExecutionStatus.d.ts +0 -4
  26. package/dist/ssca-manager/src/services/schemas/RepoScanExecutionStatus.js +0 -4
  27. /package/dist/ssca-manager/src/services/schemas/{IntegrationRepoScanListRequest.js → AiWorkflowIncludeScopeStatus.js} +0 -0
@@ -13,7 +13,7 @@ export interface CreateIntegrationMutationHeaderParams {
13
13
  }
14
14
  export type CreateIntegrationRequestBody = CreateIntegrationRequestBodyRequestBody;
15
15
  export type CreateIntegrationOkResponse = ResponseWithPagination<CreateIntegrationResponseBodyResponse>;
16
- export type CreateIntegrationErrorResponse = unknown | Error;
16
+ export type CreateIntegrationErrorResponse = Error;
17
17
  export interface CreateIntegrationProps extends CreateIntegrationMutationPathParams, Omit<FetcherOptions<unknown, CreateIntegrationRequestBody, CreateIntegrationMutationHeaderParams>, 'url'> {
18
18
  body: CreateIntegrationRequestBody;
19
19
  }
@@ -21,4 +21,4 @@ export declare function createIntegration(props: CreateIntegrationProps): Promis
21
21
  /**
22
22
  * Create Integration
23
23
  */
24
- export declare function useCreateIntegrationMutation(options?: Omit<UseMutationOptions<CreateIntegrationOkResponse, CreateIntegrationErrorResponse, CreateIntegrationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationOkResponse, unknown, CreateIntegrationProps, unknown>;
24
+ export declare function useCreateIntegrationMutation(options?: Omit<UseMutationOptions<CreateIntegrationOkResponse, CreateIntegrationErrorResponse, CreateIntegrationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationOkResponse, Error, CreateIntegrationProps, unknown>;
@@ -203,16 +203,12 @@ export type { ListAttestationsErrorResponse, ListAttestationsMutationQueryParams
203
203
  export { listAttestations, useListAttestationsMutation } from './hooks/useListAttestationsMutation';
204
204
  export type { ListExemptionsErrorResponse, ListExemptionsOkResponse, ListExemptionsProps, ListExemptionsQueryQueryParams, ListExemptionsRequestBody, } from './hooks/useListExemptionsQuery';
205
205
  export { listExemptions, useListExemptionsQuery } from './hooks/useListExemptionsQuery';
206
- export type { ListIntegrationRepoScansErrorResponse, ListIntegrationRepoScansMutationPathParams, ListIntegrationRepoScansMutationQueryParams, ListIntegrationRepoScansOkResponse, ListIntegrationRepoScansProps, ListIntegrationRepoScansRequestBody, } from './hooks/useListIntegrationRepoScansMutation';
207
- export { listIntegrationRepoScans, useListIntegrationRepoScansMutation, } from './hooks/useListIntegrationRepoScansMutation';
208
206
  export type { ListIntegrationsErrorResponse, ListIntegrationsOkResponse, ListIntegrationsProps, ListIntegrationsQueryPathParams, ListIntegrationsQueryQueryParams, } from './hooks/useListIntegrationsQuery';
209
207
  export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
210
208
  export type { ListRemediationsErrorResponse, ListRemediationsOkResponse, ListRemediationsProps, ListRemediationsQueryPathParams, ListRemediationsQueryQueryParams, ListRemediationsRequestBody, } from './hooks/useListRemediationsQuery';
211
209
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
212
210
  export type { ListRspmScannersErrorResponse, ListRspmScannersOkResponse, ListRspmScannersProps, ListRspmScannersQueryPathParams, ListRspmScannersQueryQueryParams, } from './hooks/useListRspmScannersQuery';
213
211
  export { listRspmScanners, useListRspmScannersQuery } from './hooks/useListRspmScannersQuery';
214
- export type { ListScannerConfigurationIntegrationsErrorResponse, ListScannerConfigurationIntegrationsOkResponse, ListScannerConfigurationIntegrationsProps, ListScannerConfigurationIntegrationsQueryPathParams, } from './hooks/useListScannerConfigurationIntegrationsQuery';
215
- export { listScannerConfigurationIntegrations, useListScannerConfigurationIntegrationsQuery, } from './hooks/useListScannerConfigurationIntegrationsQuery';
216
212
  export type { ListScannerConfigurationsErrorResponse, ListScannerConfigurationsOkResponse, ListScannerConfigurationsProps, ListScannerConfigurationsQueryPathParams, ListScannerConfigurationsQueryQueryParams, } from './hooks/useListScannerConfigurationsQuery';
217
213
  export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
218
214
  export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationPathParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationQueryParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeOkResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeProps, PostComplianceResultStatsEvaluationBreakdownArtifactTypeRequestBody, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
@@ -294,7 +290,6 @@ export type { ExecutionLimitRequestBodyRequestBody } from './requestBodies/Execu
294
290
  export type { FetchComplianceResultByArtifactRequestBodyRequestBody } from './requestBodies/FetchComplianceResultByArtifactRequestBodyRequestBody';
295
291
  export type { FetchComplianceResultRequestBodyRequestBody } from './requestBodies/FetchComplianceResultRequestBodyRequestBody';
296
292
  export type { FetchComplianeResultChecksStatsRequestBodyRequestBody } from './requestBodies/FetchComplianeResultChecksStatsRequestBodyRequestBody';
297
- export type { IntegrationRepoScanListRequestBodyRequestBody } from './requestBodies/IntegrationRepoScanListRequestBodyRequestBody';
298
293
  export type { IntegrationStepConfigRequestBodyRequestBody } from './requestBodies/IntegrationStepConfigRequestBodyRequestBody';
299
294
  export type { ListSbomComponentsRequestBodyRequestBody } from './requestBodies/ListSbomComponentsRequestBodyRequestBody';
300
295
  export type { NormalisedSbomComponentRequestBodyRequestBody } from './requestBodies/NormalisedSbomComponentRequestBodyRequestBody';
@@ -383,7 +378,6 @@ export type { FetchIntegrationReposResponseBodyResponse } from './responses/Fetc
383
378
  export type { GetIntegrationSummaryResponseBodyResponse } from './responses/GetIntegrationSummaryResponseBodyResponse';
384
379
  export type { HarnessPipelineIntegrationResponseBodyResponse } from './responses/HarnessPipelineIntegrationResponseBodyResponse';
385
380
  export type { IntegrationListingResponseBodyResponse } from './responses/IntegrationListingResponseBodyResponse';
386
- export type { IntegrationRepoScanListingResponseBodyResponse } from './responses/IntegrationRepoScanListingResponseBodyResponse';
387
381
  export type { IntegrationStepConfigResponseBodyResponse } from './responses/IntegrationStepConfigResponseBodyResponse';
388
382
  export type { LicenseDriftResponseBodyResponse } from './responses/LicenseDriftResponseBodyResponse';
389
383
  export type { ListConfigsResponseBodyResponse } from './responses/ListConfigsResponseBodyResponse';
@@ -412,7 +406,6 @@ export type { SaveResponseResponse } from './responses/SaveResponseResponse';
412
406
  export type { SbomProcessResponseBodyResponse } from './responses/SbomProcessResponseBodyResponse';
413
407
  export type { SbomScoreDetailV2ResponseBodyResponse } from './responses/SbomScoreDetailV2ResponseBodyResponse';
414
408
  export type { SbomScorecardResponseBodyResponse } from './responses/SbomScorecardResponseBodyResponse';
415
- export type { ScannerConfigurationIntegrationsResponseBodyResponse } from './responses/ScannerConfigurationIntegrationsResponseBodyResponse';
416
409
  export type { ScannerConfigurationListingResponseBodyResponse } from './responses/ScannerConfigurationListingResponseBodyResponse';
417
410
  export type { TicketResponseBodyResponse } from './responses/TicketResponseBodyResponse';
418
411
  export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueResponseBodyResponse';
@@ -445,6 +438,7 @@ export type { AiWorkflowExecutionStatusEnum } from './schemas/AiWorkflowExecutio
445
438
  export type { AiWorkflowExecutionStepsResponse } from './schemas/AiWorkflowExecutionStepsResponse';
446
439
  export type { AiWorkflowExecutionSummary } from './schemas/AiWorkflowExecutionSummary';
447
440
  export type { AiWorkflowIncludeScope } from './schemas/AiWorkflowIncludeScope';
441
+ export type { AiWorkflowIncludeScopeStatus } from './schemas/AiWorkflowIncludeScopeStatus';
448
442
  export type { AiWorkflowInfoByScanIdsRequest } from './schemas/AiWorkflowInfoByScanIdsRequest';
449
443
  export type { AiWorkflowInfoByScanIdsResponse } from './schemas/AiWorkflowInfoByScanIdsResponse';
450
444
  export type { AiWorkflowInfrastructureConfig } from './schemas/AiWorkflowInfrastructureConfig';
@@ -694,8 +688,6 @@ export type { Integration } from './schemas/Integration';
694
688
  export type { IntegrationConfig } from './schemas/IntegrationConfig';
695
689
  export type { IntegrationConfigRequestBody } from './schemas/IntegrationConfigRequestBody';
696
690
  export type { IntegrationCountsResponse } from './schemas/IntegrationCountsResponse';
697
- export type { IntegrationRepoScanListItem } from './schemas/IntegrationRepoScanListItem';
698
- export type { IntegrationRepoScanListRequest } from './schemas/IntegrationRepoScanListRequest';
699
691
  export type { IntegrationStepConfig } from './schemas/IntegrationStepConfig';
700
692
  export type { IntegrationStepConfigRequestBody } from './schemas/IntegrationStepConfigRequestBody';
701
693
  export type { IntegrationType } from './schemas/IntegrationType';
@@ -789,8 +781,6 @@ export type { RemediationTrackerUpdateResponseBody } from './schemas/Remediation
789
781
  export type { RemediationTrackersOverallSummaryResponseBody } from './schemas/RemediationTrackersOverallSummaryResponseBody';
790
782
  export type { RemediationWarning } from './schemas/RemediationWarning';
791
783
  export type { RepoDetailsDto } from './schemas/RepoDetailsDto';
792
- export type { RepoScanExecutionDto } from './schemas/RepoScanExecutionDto';
793
- export type { RepoScanExecutionStatus } from './schemas/RepoScanExecutionStatus';
794
784
  export type { ReportSbomAttestationVerificationRequestBody } from './schemas/ReportSbomAttestationVerificationRequestBody';
795
785
  export type { Repositories } from './schemas/Repositories';
796
786
  export type { RepositoriesSummary } from './schemas/RepositoriesSummary';
@@ -100,11 +100,9 @@ export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAge
100
100
  export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
101
101
  export { listAttestations, useListAttestationsMutation } from './hooks/useListAttestationsMutation';
102
102
  export { listExemptions, useListExemptionsQuery } from './hooks/useListExemptionsQuery';
103
- export { listIntegrationRepoScans, useListIntegrationRepoScansMutation, } from './hooks/useListIntegrationRepoScansMutation';
104
103
  export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
105
104
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
106
105
  export { listRspmScanners, useListRspmScannersQuery } from './hooks/useListRspmScannersQuery';
107
- export { listScannerConfigurationIntegrations, useListScannerConfigurationIntegrationsQuery, } from './hooks/useListScannerConfigurationIntegrationsQuery';
108
106
  export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
109
107
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
110
108
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
@@ -1,4 +1,6 @@
1
+ import type { AiWorkflowIncludeScopeStatus } from '../schemas/AiWorkflowIncludeScopeStatus';
1
2
  export interface AiWorkflowConfigYamlResponse {
3
+ include_scope_status?: AiWorkflowIncludeScopeStatus;
2
4
  /**
3
5
  * Stringified YAML of the agent configuration
4
6
  */
@@ -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 {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Whether the requested org/project is covered by account includeScope. Omitted when the request has no org (account-level GET). ENABLED_FOR_THIS_PROJECT when the exact (org, project) pair is included (or includeScope type is explicitly ALL). ENABLED_FOR_ATLEAST_ONE_PROJECT when the org has at least one listed project but the requested project is absent or the request is org-scoped. NOT_ENABLED when the master toggle is off, includeScope is null / type is blank, or the org/project is not in includeScope.
3
+ *
4
+ */
5
+ export type AiWorkflowIncludeScopeStatus = 'ENABLED_FOR_ATLEAST_ONE_PROJECT' | 'ENABLED_FOR_THIS_PROJECT' | 'NOT_ENABLED';
@@ -1,11 +1,5 @@
1
- import type { AutoDiscoveryScope } from '../schemas/AutoDiscoveryScope';
2
1
  import type { InfraConfigDto } from '../schemas/InfraConfigDto';
3
- import type { RepoDetailsDto } from '../schemas/RepoDetailsDto';
4
2
  export interface Integration {
5
- /**
6
- * Present when include_all_repos is true for Harness Code integrations. Returned on GET /integration and GET scanner-configurations/{configId}/integrations.
7
- */
8
- auto_discovery_scopes?: AutoDiscoveryScope[];
9
3
  /**
10
4
  * When true, STO scans fail on critical findings.
11
5
  */
@@ -20,15 +14,7 @@ export interface Integration {
20
14
  */
21
15
  enabled_scanners?: string[];
22
16
  id?: string;
23
- /**
24
- * True when the integration selects every repository from the SCM. Returned for repo-based integrations on GET /integration and GET scanner-configurations/{configId}/integrations.
25
- */
26
- include_all_repos?: boolean;
27
17
  infra_config?: InfraConfigDto;
28
- /**
29
- * Absent or true: iterator creates scan executions. False: iterator skips scan create. Not set at create; patch via UpdateIntegrationRspmRequest.
30
- */
31
- integration_enabled?: boolean | null;
32
18
  /**
33
19
  * STO integration name. Present only on named STO integrations.
34
20
  */
@@ -38,15 +24,6 @@ export interface Integration {
38
24
  */
39
25
  last_scan_at?: number;
40
26
  org?: string;
41
- /**
42
- * Stored repository selection. Returned for repo-based integrations on GET /integration and GET scanner-configurations/{configId}/integrations. Omitted or empty when include_all_repos is true or the integration is not repo-based.
43
- */
44
- repositories?: RepoDetailsDto[];
45
- /**
46
- * Number of repositories in the integration. Returned for repo-based integrations on GET /integration and GET scanner-configurations/{configId}/integrations. For explicit selections, the stored list size. Null when include_all_repos is true, the integration is not repo-based, or repository selection is unset.
47
- * @format int64
48
- */
49
- repository_count?: number | null;
50
27
  /**
51
28
  * Map of scanner identifier to scanner configuration catalog id
52
29
  */
@@ -18,11 +18,7 @@ export interface UpdateIntegrationRspmRequest {
18
18
  enabled_scanners?: RspmScannerId[];
19
19
  infra_config?: InfraConfigDto;
20
20
  /**
21
- * When false, iterator skips scan execution create. True or omit on patch leaves iterator running. Omit to leave unchanged.
22
- */
23
- integration_enabled?: boolean | null;
24
- /**
25
- * Optional rename of a named STO integration. Non-blank and unique in the project among STO rows. Same name as current is a no-op. HTTP 400 when the integration is unnamed (useIntegrationName absent or false). HTTP 409 when another STO integration in the project already uses this name. Omit to leave unchanged. Cannot clear the name.
21
+ * Optional rename of a named STO integration. Non-blank and unique in the project among STO rows. Same name as current is a no-op. HTTP 400 when the integration is unnamed (useIntegrationName absent or false). Omit to leave unchanged. Cannot clear the name.
26
22
  */
27
23
  integration_name?: string;
28
24
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.86.21",
3
+ "version": "0.86.22",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,36 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { IntegrationRepoScanListingResponseBodyResponse } from '../responses/IntegrationRepoScanListingResponseBodyResponse';
3
- import type { IntegrationRepoScanListRequest } from '../schemas/IntegrationRepoScanListRequest';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface ListIntegrationRepoScansMutationPathParams {
7
- org: string;
8
- project: string;
9
- integration: string;
10
- }
11
- export interface ListIntegrationRepoScansMutationQueryParams {
12
- /**
13
- * @default 30
14
- */
15
- limit?: number;
16
- /**
17
- * @default 0
18
- */
19
- page?: number;
20
- }
21
- export interface ListIntegrationRepoScansMutationHeaderParams {
22
- 'Harness-Account': string;
23
- }
24
- export type ListIntegrationRepoScansRequestBody = IntegrationRepoScanListRequest;
25
- export type ListIntegrationRepoScansOkResponse = ResponseWithPagination<IntegrationRepoScanListingResponseBodyResponse>;
26
- export type ListIntegrationRepoScansErrorResponse = unknown;
27
- export interface ListIntegrationRepoScansProps extends ListIntegrationRepoScansMutationPathParams, Omit<FetcherOptions<ListIntegrationRepoScansMutationQueryParams, ListIntegrationRepoScansRequestBody, ListIntegrationRepoScansMutationHeaderParams>, 'url'> {
28
- queryParams: ListIntegrationRepoScansMutationQueryParams;
29
- body: ListIntegrationRepoScansRequestBody;
30
- }
31
- export declare function listIntegrationRepoScans(props: ListIntegrationRepoScansProps): Promise<ListIntegrationRepoScansOkResponse>;
32
- /**
33
- * Paginated list of repositories for an integration joined with the latest scanExecutions row per (repo_url, branch). Status is the scanExecutions enum with no mapping. Repos without a matching scan row are still returned with null last_scan fields.
34
- *
35
- */
36
- export declare function useListIntegrationRepoScansMutation(options?: Omit<UseMutationOptions<ListIntegrationRepoScansOkResponse, ListIntegrationRepoScansErrorResponse, ListIntegrationRepoScansProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ListIntegrationRepoScansOkResponse, unknown, ListIntegrationRepoScansProps, unknown>;
@@ -1,15 +0,0 @@
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 listIntegrationRepoScans(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/integration/${props.integration}/repo-scans/list`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Paginated list of repositories for an integration joined with the latest scanExecutions row per (repo_url, branch). Status is the scanExecutions enum with no mapping. Repos without a matching scan row are still returned with null last_scan fields.
11
- *
12
- */
13
- export function useListIntegrationRepoScansMutation(options) {
14
- return useMutation((mutateProps) => listIntegrationRepoScans(mutateProps), options);
15
- }
@@ -1,21 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ScannerConfigurationIntegrationsResponseBodyResponse } from '../responses/ScannerConfigurationIntegrationsResponseBodyResponse';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface ListScannerConfigurationIntegrationsQueryPathParams {
6
- org: string;
7
- project: string;
8
- configId: string;
9
- }
10
- export interface ListScannerConfigurationIntegrationsQueryHeaderParams {
11
- 'Harness-Account': string;
12
- }
13
- export type ListScannerConfigurationIntegrationsOkResponse = ResponseWithPagination<ScannerConfigurationIntegrationsResponseBodyResponse>;
14
- export type ListScannerConfigurationIntegrationsErrorResponse = unknown;
15
- export interface ListScannerConfigurationIntegrationsProps extends ListScannerConfigurationIntegrationsQueryPathParams, Omit<FetcherOptions<unknown, unknown, ListScannerConfigurationIntegrationsQueryHeaderParams>, 'url'> {
16
- }
17
- export declare function listScannerConfigurationIntegrations(props: ListScannerConfigurationIntegrationsProps): Promise<ListScannerConfigurationIntegrationsOkResponse>;
18
- /**
19
- * Returns Integration DTOs for integrations in the project that reference the given scanner configuration in scanner_config_refs. Same shape as GET/list integration. Used before delete or edit to show dependent integrations. Which scanner slot uses this config is in scanner_config_refs.
20
- */
21
- export declare function useListScannerConfigurationIntegrationsQuery(props: ListScannerConfigurationIntegrationsProps, options?: Omit<UseQueryOptions<ListScannerConfigurationIntegrationsOkResponse, ListScannerConfigurationIntegrationsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListScannerConfigurationIntegrationsOkResponse, unknown>;
@@ -1,14 +0,0 @@
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 listScannerConfigurationIntegrations(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/scanner-configurations/${props.configId}/integrations`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Returns Integration DTOs for integrations in the project that reference the given scanner configuration in scanner_config_refs. Same shape as GET/list integration. Used before delete or edit to show dependent integrations. Which scanner slot uses this config is in scanner_config_refs.
11
- */
12
- export function useListScannerConfigurationIntegrationsQuery(props, options) {
13
- return useQuery(['listScannerConfigurationIntegrations', props.org, props.project, props.configId], ({ signal }) => listScannerConfigurationIntegrations(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,2 +0,0 @@
1
- import type { IntegrationRepoScanListRequest } from '../schemas/IntegrationRepoScanListRequest';
2
- export type IntegrationRepoScanListRequestBodyRequestBody = IntegrationRepoScanListRequest;
@@ -1,2 +0,0 @@
1
- import type { IntegrationRepoScanListItem } from '../schemas/IntegrationRepoScanListItem';
2
- export type IntegrationRepoScanListingResponseBodyResponse = IntegrationRepoScanListItem[];
@@ -1,2 +0,0 @@
1
- import type { Integration } from '../schemas/Integration';
2
- export type ScannerConfigurationIntegrationsResponseBodyResponse = Integration[];
@@ -1,19 +0,0 @@
1
- import type { RepoScanExecutionDto } from '../schemas/RepoScanExecutionDto';
2
- import type { RepoScanExecutionStatus } from '../schemas/RepoScanExecutionStatus';
3
- export interface IntegrationRepoScanListItem {
4
- branch?: string;
5
- /**
6
- * Relative SSCA pipeline execution URL. Null when pipelineExecutionId is absent.
7
- */
8
- execution_link?: string | null;
9
- last_scan?: RepoScanExecutionDto;
10
- last_scan_status?: RepoScanExecutionStatus;
11
- /**
12
- * createdAt for PENDING/IN_PROGRESS, lastModifiedAt for terminal statuses.
13
- * @format int64
14
- */
15
- last_scan_time?: number | null;
16
- owner?: string;
17
- repo_name?: string;
18
- repo_url?: string;
19
- }
@@ -1,6 +0,0 @@
1
- export interface IntegrationRepoScanListRequest {
2
- /**
3
- * When false (P0), list configured repos. When true (P1), list distinct scanned repo+branch keys from Mongo.
4
- */
5
- include_all_repos?: boolean;
6
- }
@@ -1,26 +0,0 @@
1
- import type { RepoScanExecutionStatus } from '../schemas/RepoScanExecutionStatus';
2
- /**
3
- * Public fields of the latest RepoScanExecutionsEntity. inputYaml is omitted.
4
- */
5
- export interface RepoScanExecutionDto {
6
- branch?: string;
7
- connector_id?: string;
8
- /**
9
- * @format int64
10
- */
11
- created_at?: number | null;
12
- /**
13
- * @format int64
14
- */
15
- last_modified_at?: number | null;
16
- pipeline_execution_id?: string;
17
- pipeline_id?: string;
18
- priority?: 'NORMAL' | 'URGENT';
19
- repo_size?: string;
20
- repo_url?: string;
21
- scan_execution_id?: string;
22
- scan_org?: boolean;
23
- status?: RepoScanExecutionStatus;
24
- sto_rspm_flow?: boolean;
25
- uuid?: string;
26
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Status stored on scanExecutions. Passthrough of ScanExecutionStatus with no mapping.
3
- */
4
- export type RepoScanExecutionStatus = 'CANCELLED' | 'FAILED' | 'IN_PROGRESS' | 'PENDING' | 'SUCCESS' | 'UNKNOWN';
@@ -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 {};