@harnessio/react-ssca-manager-client 0.84.16 → 0.84.17
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.
- package/dist/ssca-manager/src/services/hooks/useDownloadAttestationQuery.d.ts +5 -1
- package/dist/ssca-manager/src/services/hooks/useDownloadAttestationQuery.js +1 -1
- package/dist/ssca-manager/src/services/hooks/useDownloadSbomQuery.d.ts +5 -1
- package/dist/ssca-manager/src/services/hooks/useDownloadSbomQuery.js +1 -1
- package/dist/ssca-manager/src/services/hooks/useGetArtifactSourcesListQuery.d.ts +28 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactSourcesListQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useUpsertEolAutoTicketConfigMutation.d.ts +23 -0
- package/dist/ssca-manager/src/services/hooks/useUpsertEolAutoTicketConfigMutation.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +9 -6
- package/dist/ssca-manager/src/services/index.js +2 -1
- package/dist/ssca-manager/src/services/schemas/ArtifactSbomResponseBody.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactSourceListItem.d.ts +21 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactSourcesListResponse.d.ts +9 -0
- package/dist/ssca-manager/src/services/schemas/AttestationListingRequest.d.ts +2 -2
- package/dist/ssca-manager/src/services/schemas/SubjectFilter.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/SubjectFilter.js +1 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/hooks/useCreateEolAutoTicketConfigMutation.d.ts +0 -23
- package/dist/ssca-manager/src/services/hooks/useCreateEolAutoTicketConfigMutation.js +0 -14
- package/dist/ssca-manager/src/services/schemas/EolAutoTicketConfigUpdateRequest.d.ts +0 -4
- package/dist/ssca-manager/src/services/schemas/SubjectNameFilter.d.ts +0 -8
- /package/dist/ssca-manager/src/services/schemas/{EolAutoTicketConfigUpdateRequest.js → ArtifactSourceListItem.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{SubjectNameFilter.js → ArtifactSourcesListResponse.js} +0 -0
|
@@ -7,12 +7,16 @@ export interface DownloadAttestationQueryPathParams {
|
|
|
7
7
|
project: string;
|
|
8
8
|
digest: string;
|
|
9
9
|
}
|
|
10
|
+
export interface DownloadAttestationQueryQueryParams {
|
|
11
|
+
decode?: boolean;
|
|
12
|
+
}
|
|
10
13
|
export interface DownloadAttestationQueryHeaderParams {
|
|
11
14
|
'Harness-Account': string;
|
|
12
15
|
}
|
|
13
16
|
export type DownloadAttestationOkResponse = ResponseWithPagination<AttestationDownloadResponseResponse>;
|
|
14
17
|
export type DownloadAttestationErrorResponse = unknown;
|
|
15
|
-
export interface DownloadAttestationProps extends DownloadAttestationQueryPathParams, Omit<FetcherOptions<
|
|
18
|
+
export interface DownloadAttestationProps extends DownloadAttestationQueryPathParams, Omit<FetcherOptions<DownloadAttestationQueryQueryParams, unknown, DownloadAttestationQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: DownloadAttestationQueryQueryParams;
|
|
16
20
|
}
|
|
17
21
|
export declare function downloadAttestation(props: DownloadAttestationProps): Promise<DownloadAttestationOkResponse>;
|
|
18
22
|
/**
|
|
@@ -10,5 +10,5 @@ export function downloadAttestation(props) {
|
|
|
10
10
|
* Download DSSE attestation envelope by digest
|
|
11
11
|
*/
|
|
12
12
|
export function useDownloadAttestationQuery(props, options) {
|
|
13
|
-
return useQuery(['downloadAttestation', props.org, props.project, props.digest], ({ signal }) => downloadAttestation(Object.assign(Object.assign({}, props), { signal })), options);
|
|
13
|
+
return useQuery(['downloadAttestation', props.org, props.project, props.digest, props.queryParams], ({ signal }) => downloadAttestation(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -7,12 +7,16 @@ export interface DownloadSbomQueryPathParams {
|
|
|
7
7
|
project: string;
|
|
8
8
|
'orchestration-id': string;
|
|
9
9
|
}
|
|
10
|
+
export interface DownloadSbomQueryQueryParams {
|
|
11
|
+
enriched?: boolean;
|
|
12
|
+
}
|
|
10
13
|
export interface DownloadSbomQueryHeaderParams {
|
|
11
14
|
'Harness-Account': string;
|
|
12
15
|
}
|
|
13
16
|
export type DownloadSbomOkResponse = ResponseWithPagination<ArtifactSbomResponseBodyResponse>;
|
|
14
17
|
export type DownloadSbomErrorResponse = unknown;
|
|
15
|
-
export interface DownloadSbomProps extends DownloadSbomQueryPathParams, Omit<FetcherOptions<
|
|
18
|
+
export interface DownloadSbomProps extends DownloadSbomQueryPathParams, Omit<FetcherOptions<DownloadSbomQueryQueryParams, unknown, DownloadSbomQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: DownloadSbomQueryQueryParams;
|
|
16
20
|
}
|
|
17
21
|
export declare function downloadSbom(props: DownloadSbomProps): Promise<DownloadSbomOkResponse>;
|
|
18
22
|
/**
|
|
@@ -10,5 +10,5 @@ export function downloadSbom(props) {
|
|
|
10
10
|
* Download SBOM for an artifact
|
|
11
11
|
*/
|
|
12
12
|
export function useDownloadSbomQuery(props, options) {
|
|
13
|
-
return useQuery(['downloadSbom', props.org, props.project, props['orchestration-id']], ({ signal }) => downloadSbom(Object.assign(Object.assign({}, props), { signal })), options);
|
|
13
|
+
return useQuery(['downloadSbom', props.org, props.project, props['orchestration-id'], props.queryParams], ({ signal }) => downloadSbom(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactSourcesListResponse } from '../schemas/ArtifactSourcesListResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetArtifactSourcesListQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetArtifactSourcesListQueryQueryParams {
|
|
10
|
+
search?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @default 100
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface GetArtifactSourcesListQueryHeaderParams {
|
|
17
|
+
'Harness-Account': string;
|
|
18
|
+
}
|
|
19
|
+
export type GetArtifactSourcesListOkResponse = ResponseWithPagination<ArtifactSourcesListResponse>;
|
|
20
|
+
export type GetArtifactSourcesListErrorResponse = unknown;
|
|
21
|
+
export interface GetArtifactSourcesListProps extends GetArtifactSourcesListQueryPathParams, Omit<FetcherOptions<GetArtifactSourcesListQueryQueryParams, unknown, GetArtifactSourcesListQueryHeaderParams>, 'url'> {
|
|
22
|
+
queryParams: GetArtifactSourcesListQueryQueryParams;
|
|
23
|
+
}
|
|
24
|
+
export declare function getArtifactSourcesList(props: GetArtifactSourcesListProps): Promise<GetArtifactSourcesListOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Returns a lightweight project-scoped list of artifact sources (id, name, type, subtype) for UI selection. Optional search filters by name. Default limit is 100; maximum is 2000.
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetArtifactSourcesListQuery(props: GetArtifactSourcesListProps, options?: Omit<UseQueryOptions<GetArtifactSourcesListOkResponse, GetArtifactSourcesListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactSourcesListOkResponse, 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 getArtifactSourcesList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact-sources/list`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns a lightweight project-scoped list of artifact sources (id, name, type, subtype) for UI selection. Optional search filters by name. Default limit is 100; maximum is 2000.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactSourcesListQuery(props, options) {
|
|
13
|
+
return useQuery(['getArtifactSourcesList', props.org, props.project, props.queryParams], ({ signal }) => getArtifactSourcesList(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EolAutoTicketConfigResponse } from '../schemas/EolAutoTicketConfigResponse';
|
|
3
|
+
import type { EolAutoTicketConfigRequest } from '../schemas/EolAutoTicketConfigRequest';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface UpsertEolAutoTicketConfigMutationPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UpsertEolAutoTicketConfigMutationHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
12
|
+
}
|
|
13
|
+
export type UpsertEolAutoTicketConfigRequestBody = EolAutoTicketConfigRequest;
|
|
14
|
+
export type UpsertEolAutoTicketConfigOkResponse = ResponseWithPagination<EolAutoTicketConfigResponse>;
|
|
15
|
+
export type UpsertEolAutoTicketConfigErrorResponse = unknown;
|
|
16
|
+
export interface UpsertEolAutoTicketConfigProps extends UpsertEolAutoTicketConfigMutationPathParams, Omit<FetcherOptions<unknown, UpsertEolAutoTicketConfigRequestBody, UpsertEolAutoTicketConfigMutationHeaderParams>, 'url'> {
|
|
17
|
+
body: UpsertEolAutoTicketConfigRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function upsertEolAutoTicketConfig(props: UpsertEolAutoTicketConfigProps): Promise<UpsertEolAutoTicketConfigOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Creates the project-scoped EOL auto ticket configuration if it does not exist, or updates it if it already exists. Use this instead of separate create and update calls.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useUpsertEolAutoTicketConfigMutation(options?: Omit<UseMutationOptions<UpsertEolAutoTicketConfigOkResponse, UpsertEolAutoTicketConfigErrorResponse, UpsertEolAutoTicketConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpsertEolAutoTicketConfigOkResponse, unknown, UpsertEolAutoTicketConfigProps, 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 upsertEolAutoTicketConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/eol-auto-ticket/config`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates the project-scoped EOL auto ticket configuration if it does not exist, or updates it if it already exists. Use this instead of separate create and update calls.
|
|
11
|
+
*/
|
|
12
|
+
export function useUpsertEolAutoTicketConfigMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => upsertEolAutoTicketConfig(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -15,8 +15,6 @@ export type { CreateComplianceStandardsErrorResponse, CreateComplianceStandardsM
|
|
|
15
15
|
export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
|
|
16
16
|
export type { CreateComponentTicketErrorResponse, CreateComponentTicketMutationPathParams, CreateComponentTicketMutationQueryParams, CreateComponentTicketOkResponse, CreateComponentTicketProps, CreateComponentTicketRequestBody, } from './hooks/useCreateComponentTicketMutation';
|
|
17
17
|
export { createComponentTicket, useCreateComponentTicketMutation, } from './hooks/useCreateComponentTicketMutation';
|
|
18
|
-
export type { CreateEolAutoTicketConfigErrorResponse, CreateEolAutoTicketConfigMutationPathParams, CreateEolAutoTicketConfigOkResponse, CreateEolAutoTicketConfigProps, CreateEolAutoTicketConfigRequestBody, } from './hooks/useCreateEolAutoTicketConfigMutation';
|
|
19
|
-
export { createEolAutoTicketConfig, useCreateEolAutoTicketConfigMutation, } from './hooks/useCreateEolAutoTicketConfigMutation';
|
|
20
18
|
export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParams, CreateIntegrationOkResponse, CreateIntegrationProps, CreateIntegrationRequestBody, } from './hooks/useCreateIntegrationMutation';
|
|
21
19
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
22
20
|
export type { CreateRemediationPullRequestErrorResponse, CreateRemediationPullRequestMutationPathParams, CreateRemediationPullRequestOkResponse, CreateRemediationPullRequestProps, CreateRemediationPullRequestRequestBody, } from './hooks/useCreateRemediationPullRequestMutation';
|
|
@@ -27,9 +25,9 @@ export type { CreateTicketErrorResponse, CreateTicketMutationPathParams, CreateT
|
|
|
27
25
|
export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
|
|
28
26
|
export type { DeleteIntegrationErrorResponse, DeleteIntegrationMutationPathParams, DeleteIntegrationOkResponse, DeleteIntegrationProps, } from './hooks/useDeleteIntegrationMutation';
|
|
29
27
|
export { deleteIntegration, useDeleteIntegrationMutation, } from './hooks/useDeleteIntegrationMutation';
|
|
30
|
-
export type { DownloadAttestationErrorResponse, DownloadAttestationOkResponse, DownloadAttestationProps, DownloadAttestationQueryPathParams, } from './hooks/useDownloadAttestationQuery';
|
|
28
|
+
export type { DownloadAttestationErrorResponse, DownloadAttestationOkResponse, DownloadAttestationProps, DownloadAttestationQueryPathParams, DownloadAttestationQueryQueryParams, } from './hooks/useDownloadAttestationQuery';
|
|
31
29
|
export { downloadAttestation, useDownloadAttestationQuery, } from './hooks/useDownloadAttestationQuery';
|
|
32
|
-
export type { DownloadSbomErrorResponse, DownloadSbomOkResponse, DownloadSbomProps, DownloadSbomQueryPathParams, } from './hooks/useDownloadSbomQuery';
|
|
30
|
+
export type { DownloadSbomErrorResponse, DownloadSbomOkResponse, DownloadSbomProps, DownloadSbomQueryPathParams, DownloadSbomQueryQueryParams, } from './hooks/useDownloadSbomQuery';
|
|
33
31
|
export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
|
|
34
32
|
export type { ExcludeArtifactErrorResponse, ExcludeArtifactMutationPathParams, ExcludeArtifactOkResponse, ExcludeArtifactProps, ExcludeArtifactRequestBody, } from './hooks/useExcludeArtifactMutation';
|
|
35
33
|
export { excludeArtifact, useExcludeArtifactMutation } from './hooks/useExcludeArtifactMutation';
|
|
@@ -61,6 +59,8 @@ export type { GetArtifactInRemediationDetailsErrorResponse, GetArtifactInRemedia
|
|
|
61
59
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
62
60
|
export type { GetArtifactListForRemediationErrorResponse, GetArtifactListForRemediationOkResponse, GetArtifactListForRemediationProps, GetArtifactListForRemediationQueryPathParams, GetArtifactListForRemediationQueryQueryParams, GetArtifactListForRemediationRequestBody, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
63
61
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
62
|
+
export type { GetArtifactSourcesListErrorResponse, GetArtifactSourcesListOkResponse, GetArtifactSourcesListProps, GetArtifactSourcesListQueryPathParams, GetArtifactSourcesListQueryQueryParams, } from './hooks/useGetArtifactSourcesListQuery';
|
|
63
|
+
export { getArtifactSourcesList, useGetArtifactSourcesListQuery, } from './hooks/useGetArtifactSourcesListQuery';
|
|
64
64
|
export type { GetArtifactV2ComponentVulnerabilityListByPurlErrorResponse, GetArtifactV2ComponentVulnerabilityListByPurlOkResponse, GetArtifactV2ComponentVulnerabilityListByPurlProps, GetArtifactV2ComponentVulnerabilityListByPurlQueryPathParams, GetArtifactV2ComponentVulnerabilityListByPurlQueryQueryParams, } from './hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery';
|
|
65
65
|
export { getArtifactV2ComponentVulnerabilityListByPurl, useGetArtifactV2ComponentVulnerabilityListByPurlQuery, } from './hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery';
|
|
66
66
|
export type { GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewProps, GetArtifactV2DetailComponentViewQueryPathParams, GetArtifactV2DetailComponentViewQueryQueryParams, GetArtifactV2DetailComponentViewRequestBody, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
@@ -171,6 +171,8 @@ export type { SscaLicenseUsageErrorResponse, SscaLicenseUsageOkResponse, SscaLic
|
|
|
171
171
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
172
172
|
export type { UpdateRemediationTrackerErrorResponse, UpdateRemediationTrackerMutationPathParams, UpdateRemediationTrackerOkResponse, UpdateRemediationTrackerProps, UpdateRemediationTrackerRequestBody, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
173
173
|
export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
174
|
+
export type { UpsertEolAutoTicketConfigErrorResponse, UpsertEolAutoTicketConfigMutationPathParams, UpsertEolAutoTicketConfigOkResponse, UpsertEolAutoTicketConfigProps, UpsertEolAutoTicketConfigRequestBody, } from './hooks/useUpsertEolAutoTicketConfigMutation';
|
|
175
|
+
export { upsertEolAutoTicketConfig, useUpsertEolAutoTicketConfigMutation, } from './hooks/useUpsertEolAutoTicketConfigMutation';
|
|
174
176
|
export type { AiWorkflowExecutionRequestBodyRequestBody } from './requestBodies/AiWorkflowExecutionRequestBodyRequestBody';
|
|
175
177
|
export type { ArtifactComponentsRequestBodyRequestBody } from './requestBodies/ArtifactComponentsRequestBodyRequestBody';
|
|
176
178
|
export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
|
|
@@ -346,6 +348,8 @@ export type { ArtifactOssRisksSummary } from './schemas/ArtifactOssRisksSummary'
|
|
|
346
348
|
export type { ArtifactSbomDriftRequestBody } from './schemas/ArtifactSbomDriftRequestBody';
|
|
347
349
|
export type { ArtifactSbomDriftResponse } from './schemas/ArtifactSbomDriftResponse';
|
|
348
350
|
export type { ArtifactSbomResponseBody } from './schemas/ArtifactSbomResponseBody';
|
|
351
|
+
export type { ArtifactSourceListItem } from './schemas/ArtifactSourceListItem';
|
|
352
|
+
export type { ArtifactSourcesListResponse } from './schemas/ArtifactSourcesListResponse';
|
|
349
353
|
export type { ArtifactSourcesListingResponse } from './schemas/ArtifactSourcesListingResponse';
|
|
350
354
|
export type { ArtifactSpec } from './schemas/ArtifactSpec';
|
|
351
355
|
export type { ArtifactType } from './schemas/ArtifactType';
|
|
@@ -494,7 +498,6 @@ export type { EnvironmentType } from './schemas/EnvironmentType';
|
|
|
494
498
|
export type { EnvironmentTypeFilter } from './schemas/EnvironmentTypeFilter';
|
|
495
499
|
export type { EolAutoTicketConfigRequest } from './schemas/EolAutoTicketConfigRequest';
|
|
496
500
|
export type { EolAutoTicketConfigResponse } from './schemas/EolAutoTicketConfigResponse';
|
|
497
|
-
export type { EolAutoTicketConfigUpdateRequest } from './schemas/EolAutoTicketConfigUpdateRequest';
|
|
498
501
|
export type { EolStatus } from './schemas/EolStatus';
|
|
499
502
|
export type { Error } from './schemas/Error';
|
|
500
503
|
export type { ExcludeArtifactRequest } from './schemas/ExcludeArtifactRequest';
|
|
@@ -638,7 +641,7 @@ export type { SlsaVerificationRequestBody } from './schemas/SlsaVerificationRequ
|
|
|
638
641
|
export type { SlsaVerificationRequestBodyV2 } from './schemas/SlsaVerificationRequestBodyV2';
|
|
639
642
|
export type { SscaSummary } from './schemas/SscaSummary';
|
|
640
643
|
export type { StoIssueCount } from './schemas/StoIssueCount';
|
|
641
|
-
export type {
|
|
644
|
+
export type { SubjectFilter } from './schemas/SubjectFilter';
|
|
642
645
|
export type { TargetVersionVulnerability } from './schemas/TargetVersionVulnerability';
|
|
643
646
|
export type { TicketInfo } from './schemas/TicketInfo';
|
|
644
647
|
export type { TokenIssueResponseBody } from './schemas/TokenIssueResponseBody';
|
|
@@ -6,7 +6,6 @@ export { codeRepositoriesList, useCodeRepositoriesListQuery, } from './hooks/use
|
|
|
6
6
|
export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
|
|
7
7
|
export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
|
|
8
8
|
export { createComponentTicket, useCreateComponentTicketMutation, } from './hooks/useCreateComponentTicketMutation';
|
|
9
|
-
export { createEolAutoTicketConfig, useCreateEolAutoTicketConfigMutation, } from './hooks/useCreateEolAutoTicketConfigMutation';
|
|
10
9
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
11
10
|
export { createRemediationPullRequest, useCreateRemediationPullRequestMutation, } from './hooks/useCreateRemediationPullRequestMutation';
|
|
12
11
|
export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
|
|
@@ -29,6 +28,7 @@ export { getArtifactComponentOverviewByPurl, useGetArtifactComponentOverviewByPu
|
|
|
29
28
|
export { getArtifactComponentRemediationByPurl, useGetArtifactComponentRemediationByPurlQuery, } from './hooks/useGetArtifactComponentRemediationByPurlQuery';
|
|
30
29
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
31
30
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
31
|
+
export { getArtifactSourcesList, useGetArtifactSourcesListQuery, } from './hooks/useGetArtifactSourcesListQuery';
|
|
32
32
|
export { getArtifactV2ComponentVulnerabilityListByPurl, useGetArtifactV2ComponentVulnerabilityListByPurlQuery, } from './hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery';
|
|
33
33
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
34
34
|
export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
@@ -84,3 +84,4 @@ export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/us
|
|
|
84
84
|
export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
|
|
85
85
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
86
86
|
export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
87
|
+
export { upsertEolAutoTicketConfig, useUpsertEolAutoTicketConfigMutation, } from './hooks/useUpsertEolAutoTicketConfigMutation';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lightweight artifact source row for selection UIs
|
|
3
|
+
*/
|
|
4
|
+
export interface ArtifactSourceListItem {
|
|
5
|
+
/**
|
|
6
|
+
* Artifact source unique identifier (UUID)
|
|
7
|
+
*/
|
|
8
|
+
id?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Display name of the artifact source
|
|
11
|
+
*/
|
|
12
|
+
name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Artifact source subtype when applicable
|
|
15
|
+
*/
|
|
16
|
+
subtype?: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Artifact source type
|
|
19
|
+
*/
|
|
20
|
+
type?: 'CONTAINER' | 'NON_CONTAINER' | 'REPOSITORY';
|
|
21
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ArtifactSourceListItem } from '../schemas/ArtifactSourceListItem';
|
|
2
|
+
export interface ArtifactSourcesListResponse {
|
|
3
|
+
sources?: ArtifactSourceListItem[];
|
|
4
|
+
/**
|
|
5
|
+
* Total number of artifact sources matching the filter (before limit)
|
|
6
|
+
* @format int64
|
|
7
|
+
*/
|
|
8
|
+
total_count?: number;
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AttestationSource } from '../schemas/AttestationSource';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SubjectFilter } from '../schemas/SubjectFilter';
|
|
3
3
|
import type { AttestationType } from '../schemas/AttestationType';
|
|
4
4
|
/**
|
|
5
5
|
* List filters (arrays are OR matches). Filters creation time when start/end set. Optional subject_filter matches subject name via operator.
|
|
@@ -19,7 +19,7 @@ export interface AttestationListingRequest {
|
|
|
19
19
|
* @format int64
|
|
20
20
|
*/
|
|
21
21
|
start_time?: number;
|
|
22
|
-
subject_filter?:
|
|
22
|
+
subject_filter?: SubjectFilter[];
|
|
23
23
|
/**
|
|
24
24
|
* Filter by attestation types (any match).
|
|
25
25
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { EolAutoTicketConfigResponse } from '../schemas/EolAutoTicketConfigResponse';
|
|
3
|
-
import type { EolAutoTicketConfigRequest } from '../schemas/EolAutoTicketConfigRequest';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface CreateEolAutoTicketConfigMutationPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
}
|
|
10
|
-
export interface CreateEolAutoTicketConfigMutationHeaderParams {
|
|
11
|
-
'Harness-Account': string;
|
|
12
|
-
}
|
|
13
|
-
export type CreateEolAutoTicketConfigRequestBody = EolAutoTicketConfigRequest;
|
|
14
|
-
export type CreateEolAutoTicketConfigOkResponse = ResponseWithPagination<EolAutoTicketConfigResponse>;
|
|
15
|
-
export type CreateEolAutoTicketConfigErrorResponse = unknown;
|
|
16
|
-
export interface CreateEolAutoTicketConfigProps extends CreateEolAutoTicketConfigMutationPathParams, Omit<FetcherOptions<unknown, CreateEolAutoTicketConfigRequestBody, CreateEolAutoTicketConfigMutationHeaderParams>, 'url'> {
|
|
17
|
-
body: CreateEolAutoTicketConfigRequestBody;
|
|
18
|
-
}
|
|
19
|
-
export declare function createEolAutoTicketConfig(props: CreateEolAutoTicketConfigProps): Promise<CreateEolAutoTicketConfigOkResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Creates a project-scoped EOL auto ticket configuration.
|
|
22
|
-
*/
|
|
23
|
-
export declare function useCreateEolAutoTicketConfigMutation(options?: Omit<UseMutationOptions<CreateEolAutoTicketConfigOkResponse, CreateEolAutoTicketConfigErrorResponse, CreateEolAutoTicketConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateEolAutoTicketConfigOkResponse, unknown, CreateEolAutoTicketConfigProps, 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 { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function createEolAutoTicketConfig(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/eol-auto-ticket/config`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Creates a project-scoped EOL auto ticket configuration.
|
|
11
|
-
*/
|
|
12
|
-
export function useCreateEolAutoTicketConfigMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => createEolAutoTicketConfig(mutateProps), options);
|
|
14
|
-
}
|
|
File without changes
|
|
File without changes
|