@harnessio/react-ssca-manager-client 0.84.16 → 0.84.18
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/useGetEolArtifactSourceComponentTicketQuery.d.ts +25 -0
- package/dist/ssca-manager/src/services/hooks/useGetEolArtifactSourceComponentTicketQuery.js +20 -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 +11 -6
- package/dist/ssca-manager/src/services/index.js +3 -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/AttestationDetailsResponse.d.ts +3 -17
- package/dist/ssca-manager/src/services/schemas/AttestationListingRequest.d.ts +2 -2
- package/dist/ssca-manager/src/services/schemas/AttestationListingResponse.d.ts +3 -9
- 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,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TicketResponseBodyResponse } from '../responses/TicketResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetEolArtifactSourceComponentTicketQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
artifactSource: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetEolArtifactSourceComponentTicketQueryQueryParams {
|
|
11
|
+
purl: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetEolArtifactSourceComponentTicketQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetEolArtifactSourceComponentTicketOkResponse = ResponseWithPagination<TicketResponseBodyResponse>;
|
|
17
|
+
export type GetEolArtifactSourceComponentTicketErrorResponse = unknown;
|
|
18
|
+
export interface GetEolArtifactSourceComponentTicketProps extends GetEolArtifactSourceComponentTicketQueryPathParams, Omit<FetcherOptions<GetEolArtifactSourceComponentTicketQueryQueryParams, unknown, GetEolArtifactSourceComponentTicketQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetEolArtifactSourceComponentTicketQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getEolArtifactSourceComponentTicket(props: GetEolArtifactSourceComponentTicketProps): Promise<GetEolArtifactSourceComponentTicketOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Returns the ticket stored for an EOL auto-ticket mapping for the given artifact source and component purl (from eolComponentTickets). Use this for auto-created tickets; manual artifact component tickets use the artifact-scoped ticket API instead.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetEolArtifactSourceComponentTicketQuery(props: GetEolArtifactSourceComponentTicketProps, options?: Omit<UseQueryOptions<GetEolArtifactSourceComponentTicketOkResponse, GetEolArtifactSourceComponentTicketErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEolArtifactSourceComponentTicketOkResponse, unknown>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 getEolArtifactSourceComponentTicket(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact-source/${props.artifactSource}/ticket`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the ticket stored for an EOL auto-ticket mapping for the given artifact source and component purl (from eolComponentTickets). Use this for auto-created tickets; manual artifact component tickets use the artifact-scoped ticket API instead.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEolArtifactSourceComponentTicketQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getEolArtifactSourceComponentTicket',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.artifactSource,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
], ({ signal }) => getEolArtifactSourceComponentTicket(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
|
+
}
|
|
@@ -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';
|
|
@@ -117,6 +117,8 @@ export type { GetDeploymentsListForArtifactInRemediationErrorResponse, GetDeploy
|
|
|
117
117
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
118
118
|
export type { GetEnvironmentListForRemediationErrorResponse, GetEnvironmentListForRemediationOkResponse, GetEnvironmentListForRemediationProps, GetEnvironmentListForRemediationQueryPathParams, GetEnvironmentListForRemediationQueryQueryParams, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
119
119
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
120
|
+
export type { GetEolArtifactSourceComponentTicketErrorResponse, GetEolArtifactSourceComponentTicketOkResponse, GetEolArtifactSourceComponentTicketProps, GetEolArtifactSourceComponentTicketQueryPathParams, GetEolArtifactSourceComponentTicketQueryQueryParams, } from './hooks/useGetEolArtifactSourceComponentTicketQuery';
|
|
121
|
+
export { getEolArtifactSourceComponentTicket, useGetEolArtifactSourceComponentTicketQuery, } from './hooks/useGetEolArtifactSourceComponentTicketQuery';
|
|
120
122
|
export type { GetEolAutoTicketConfigErrorResponse, GetEolAutoTicketConfigOkResponse, GetEolAutoTicketConfigProps, GetEolAutoTicketConfigQueryPathParams, } from './hooks/useGetEolAutoTicketConfigQuery';
|
|
121
123
|
export { getEolAutoTicketConfig, useGetEolAutoTicketConfigQuery, } from './hooks/useGetEolAutoTicketConfigQuery';
|
|
122
124
|
export type { GetHarnessPipelineIntegrationErrorResponse, GetHarnessPipelineIntegrationOkResponse, GetHarnessPipelineIntegrationProps, GetHarnessPipelineIntegrationQueryPathParams, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
@@ -171,6 +173,8 @@ export type { SscaLicenseUsageErrorResponse, SscaLicenseUsageOkResponse, SscaLic
|
|
|
171
173
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
172
174
|
export type { UpdateRemediationTrackerErrorResponse, UpdateRemediationTrackerMutationPathParams, UpdateRemediationTrackerOkResponse, UpdateRemediationTrackerProps, UpdateRemediationTrackerRequestBody, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
173
175
|
export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
176
|
+
export type { UpsertEolAutoTicketConfigErrorResponse, UpsertEolAutoTicketConfigMutationPathParams, UpsertEolAutoTicketConfigOkResponse, UpsertEolAutoTicketConfigProps, UpsertEolAutoTicketConfigRequestBody, } from './hooks/useUpsertEolAutoTicketConfigMutation';
|
|
177
|
+
export { upsertEolAutoTicketConfig, useUpsertEolAutoTicketConfigMutation, } from './hooks/useUpsertEolAutoTicketConfigMutation';
|
|
174
178
|
export type { AiWorkflowExecutionRequestBodyRequestBody } from './requestBodies/AiWorkflowExecutionRequestBodyRequestBody';
|
|
175
179
|
export type { ArtifactComponentsRequestBodyRequestBody } from './requestBodies/ArtifactComponentsRequestBodyRequestBody';
|
|
176
180
|
export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
|
|
@@ -346,6 +350,8 @@ export type { ArtifactOssRisksSummary } from './schemas/ArtifactOssRisksSummary'
|
|
|
346
350
|
export type { ArtifactSbomDriftRequestBody } from './schemas/ArtifactSbomDriftRequestBody';
|
|
347
351
|
export type { ArtifactSbomDriftResponse } from './schemas/ArtifactSbomDriftResponse';
|
|
348
352
|
export type { ArtifactSbomResponseBody } from './schemas/ArtifactSbomResponseBody';
|
|
353
|
+
export type { ArtifactSourceListItem } from './schemas/ArtifactSourceListItem';
|
|
354
|
+
export type { ArtifactSourcesListResponse } from './schemas/ArtifactSourcesListResponse';
|
|
349
355
|
export type { ArtifactSourcesListingResponse } from './schemas/ArtifactSourcesListingResponse';
|
|
350
356
|
export type { ArtifactSpec } from './schemas/ArtifactSpec';
|
|
351
357
|
export type { ArtifactType } from './schemas/ArtifactType';
|
|
@@ -494,7 +500,6 @@ export type { EnvironmentType } from './schemas/EnvironmentType';
|
|
|
494
500
|
export type { EnvironmentTypeFilter } from './schemas/EnvironmentTypeFilter';
|
|
495
501
|
export type { EolAutoTicketConfigRequest } from './schemas/EolAutoTicketConfigRequest';
|
|
496
502
|
export type { EolAutoTicketConfigResponse } from './schemas/EolAutoTicketConfigResponse';
|
|
497
|
-
export type { EolAutoTicketConfigUpdateRequest } from './schemas/EolAutoTicketConfigUpdateRequest';
|
|
498
503
|
export type { EolStatus } from './schemas/EolStatus';
|
|
499
504
|
export type { Error } from './schemas/Error';
|
|
500
505
|
export type { ExcludeArtifactRequest } from './schemas/ExcludeArtifactRequest';
|
|
@@ -638,7 +643,7 @@ export type { SlsaVerificationRequestBody } from './schemas/SlsaVerificationRequ
|
|
|
638
643
|
export type { SlsaVerificationRequestBodyV2 } from './schemas/SlsaVerificationRequestBodyV2';
|
|
639
644
|
export type { SscaSummary } from './schemas/SscaSummary';
|
|
640
645
|
export type { StoIssueCount } from './schemas/StoIssueCount';
|
|
641
|
-
export type {
|
|
646
|
+
export type { SubjectFilter } from './schemas/SubjectFilter';
|
|
642
647
|
export type { TargetVersionVulnerability } from './schemas/TargetVersionVulnerability';
|
|
643
648
|
export type { TicketInfo } from './schemas/TicketInfo';
|
|
644
649
|
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';
|
|
@@ -57,6 +57,7 @@ export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQu
|
|
|
57
57
|
export { getConnectorConfig, useGetConnectorConfigQuery } from './hooks/useGetConnectorConfigQuery';
|
|
58
58
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
59
59
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
60
|
+
export { getEolArtifactSourceComponentTicket, useGetEolArtifactSourceComponentTicketQuery, } from './hooks/useGetEolArtifactSourceComponentTicketQuery';
|
|
60
61
|
export { getEolAutoTicketConfig, useGetEolAutoTicketConfigQuery, } from './hooks/useGetEolAutoTicketConfigQuery';
|
|
61
62
|
export { getHarnessPipelineIntegration, useGetHarnessPipelineIntegrationQuery, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
62
63
|
export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
|
|
@@ -84,3 +85,4 @@ export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/us
|
|
|
84
85
|
export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
|
|
85
86
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
86
87
|
export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
88
|
+
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,7 +1,8 @@
|
|
|
1
|
+
import type { ExecutionContextV2 } from '../schemas/ExecutionContextV2';
|
|
1
2
|
import type { AttestationSource } from '../schemas/AttestationSource';
|
|
2
3
|
import type { AttestationSubjectSummary } from '../schemas/AttestationSubjectSummary';
|
|
3
4
|
import type { AttestationType } from '../schemas/AttestationType';
|
|
4
|
-
export interface AttestationDetailsResponse {
|
|
5
|
+
export interface AttestationDetailsResponse<T0 extends ExecutionContextV2 = ExecutionContextV2> {
|
|
5
6
|
/**
|
|
6
7
|
* Associated artifact identifier for tracing.
|
|
7
8
|
*/
|
|
@@ -11,6 +12,7 @@ export interface AttestationDetailsResponse {
|
|
|
11
12
|
* @format int64
|
|
12
13
|
*/
|
|
13
14
|
created_at?: number;
|
|
15
|
+
execution_context?: T0;
|
|
14
16
|
/**
|
|
15
17
|
* GitOID SHA-256 digest in Archivista.
|
|
16
18
|
*/
|
|
@@ -19,27 +21,11 @@ export interface AttestationDetailsResponse {
|
|
|
19
21
|
* MIME type of the DSSE payload (e.g. application/vnd.in-toto+json).
|
|
20
22
|
*/
|
|
21
23
|
payload_type?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Pipeline execution id when present.
|
|
24
|
-
*/
|
|
25
|
-
pipeline_execution_id?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Pipeline id when present.
|
|
28
|
-
*/
|
|
29
|
-
pipeline_id?: string;
|
|
30
24
|
/**
|
|
31
25
|
* S3 path for attestation storage.
|
|
32
26
|
*/
|
|
33
27
|
s3_path?: string;
|
|
34
28
|
source: AttestationSource;
|
|
35
|
-
/**
|
|
36
|
-
* Stage execution id when present.
|
|
37
|
-
*/
|
|
38
|
-
stage_execution_id?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Step execution id when present.
|
|
41
|
-
*/
|
|
42
|
-
step_execution_id?: string;
|
|
43
29
|
/**
|
|
44
30
|
* All attestation subjects.
|
|
45
31
|
*/
|
|
@@ -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
|
*/
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { ExecutionContextV2 } from '../schemas/ExecutionContextV2';
|
|
1
2
|
import type { AttestationSource } from '../schemas/AttestationSource';
|
|
2
3
|
import type { AttestationSubjectSummary } from '../schemas/AttestationSubjectSummary';
|
|
3
4
|
import type { AttestationType } from '../schemas/AttestationType';
|
|
4
|
-
export interface AttestationListingResponse {
|
|
5
|
+
export interface AttestationListingResponse<T0 extends ExecutionContextV2 = ExecutionContextV2> {
|
|
5
6
|
/**
|
|
6
7
|
* Extra subjects after the first (for "+N more").
|
|
7
8
|
*/
|
|
@@ -11,6 +12,7 @@ export interface AttestationListingResponse {
|
|
|
11
12
|
* @format int64
|
|
12
13
|
*/
|
|
13
14
|
created_at: number;
|
|
15
|
+
execution_context?: T0;
|
|
14
16
|
/**
|
|
15
17
|
* GitOID SHA-256 digest.
|
|
16
18
|
*/
|
|
@@ -19,14 +21,6 @@ export interface AttestationListingResponse {
|
|
|
19
21
|
* Document id (MongoDB uuid).
|
|
20
22
|
*/
|
|
21
23
|
id: string;
|
|
22
|
-
/**
|
|
23
|
-
* Pipeline execution id when present.
|
|
24
|
-
*/
|
|
25
|
-
pipeline_execution_id?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Pipeline id when present.
|
|
28
|
-
*/
|
|
29
|
-
pipeline_id?: string;
|
|
30
24
|
source: AttestationSource;
|
|
31
25
|
/**
|
|
32
26
|
* Ingestion status (e.g. PENDING, INDEXED).
|
|
@@ -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
|