@harnessio/react-ssca-manager-client 0.84.17 → 0.84.19
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/useCreateEolArtifactSourceComponentTicketMutation.d.ts +30 -0
- package/dist/ssca-manager/src/services/hooks/useCreateEolArtifactSourceComponentTicketMutation.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/index.d.ts +4 -0
- package/dist/ssca-manager/src/services/index.js +2 -0
- package/dist/ssca-manager/src/services/schemas/AttestationDetailsResponse.d.ts +3 -17
- package/dist/ssca-manager/src/services/schemas/AttestationListingResponse.d.ts +3 -9
- package/package.json +1 -1
package/dist/ssca-manager/src/services/hooks/useCreateEolArtifactSourceComponentTicketMutation.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CreateTicketResponseBodyResponse } from '../responses/CreateTicketResponseBodyResponse';
|
|
3
|
+
import type { CreateTicketRequest } from '../schemas/CreateTicketRequest';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface CreateEolArtifactSourceComponentTicketMutationPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
artifactSource: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateEolArtifactSourceComponentTicketMutationQueryParams {
|
|
12
|
+
purl: string;
|
|
13
|
+
artifactId: string;
|
|
14
|
+
orchestrationId?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CreateEolArtifactSourceComponentTicketMutationHeaderParams {
|
|
17
|
+
'Harness-Account': string;
|
|
18
|
+
}
|
|
19
|
+
export type CreateEolArtifactSourceComponentTicketRequestBody = CreateTicketRequest;
|
|
20
|
+
export type CreateEolArtifactSourceComponentTicketOkResponse = ResponseWithPagination<CreateTicketResponseBodyResponse>;
|
|
21
|
+
export type CreateEolArtifactSourceComponentTicketErrorResponse = unknown;
|
|
22
|
+
export interface CreateEolArtifactSourceComponentTicketProps extends CreateEolArtifactSourceComponentTicketMutationPathParams, Omit<FetcherOptions<CreateEolArtifactSourceComponentTicketMutationQueryParams, CreateEolArtifactSourceComponentTicketRequestBody, CreateEolArtifactSourceComponentTicketMutationHeaderParams>, 'url'> {
|
|
23
|
+
queryParams: CreateEolArtifactSourceComponentTicketMutationQueryParams;
|
|
24
|
+
body: CreateEolArtifactSourceComponentTicketRequestBody;
|
|
25
|
+
}
|
|
26
|
+
export declare function createEolArtifactSourceComponentTicket(props: CreateEolArtifactSourceComponentTicketProps): Promise<CreateEolArtifactSourceComponentTicketOkResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Creates a ticket for an EOL component identified by artifact source and purl. Stores the ticket mapping in eolComponentTickets for future reference. Requires artifactId to lookup component enrichment data from componentEnrichment collection.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useCreateEolArtifactSourceComponentTicketMutation(options?: Omit<UseMutationOptions<CreateEolArtifactSourceComponentTicketOkResponse, CreateEolArtifactSourceComponentTicketErrorResponse, CreateEolArtifactSourceComponentTicketProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateEolArtifactSourceComponentTicketOkResponse, unknown, CreateEolArtifactSourceComponentTicketProps, unknown>;
|
package/dist/ssca-manager/src/services/hooks/useCreateEolArtifactSourceComponentTicketMutation.js
ADDED
|
@@ -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 createEolArtifactSourceComponentTicket(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact-source/${props.artifactSource}/ticket`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates a ticket for an EOL component identified by artifact source and purl. Stores the ticket mapping in eolComponentTickets for future reference. Requires artifactId to lookup component enrichment data from componentEnrichment collection.
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateEolArtifactSourceComponentTicketMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createEolArtifactSourceComponentTicket(mutateProps), 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
|
+
}
|
|
@@ -15,6 +15,8 @@ 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 { CreateEolArtifactSourceComponentTicketErrorResponse, CreateEolArtifactSourceComponentTicketMutationPathParams, CreateEolArtifactSourceComponentTicketMutationQueryParams, CreateEolArtifactSourceComponentTicketOkResponse, CreateEolArtifactSourceComponentTicketProps, CreateEolArtifactSourceComponentTicketRequestBody, } from './hooks/useCreateEolArtifactSourceComponentTicketMutation';
|
|
19
|
+
export { createEolArtifactSourceComponentTicket, useCreateEolArtifactSourceComponentTicketMutation, } from './hooks/useCreateEolArtifactSourceComponentTicketMutation';
|
|
18
20
|
export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParams, CreateIntegrationOkResponse, CreateIntegrationProps, CreateIntegrationRequestBody, } from './hooks/useCreateIntegrationMutation';
|
|
19
21
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
20
22
|
export type { CreateRemediationPullRequestErrorResponse, CreateRemediationPullRequestMutationPathParams, CreateRemediationPullRequestOkResponse, CreateRemediationPullRequestProps, CreateRemediationPullRequestRequestBody, } from './hooks/useCreateRemediationPullRequestMutation';
|
|
@@ -117,6 +119,8 @@ export type { GetDeploymentsListForArtifactInRemediationErrorResponse, GetDeploy
|
|
|
117
119
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
118
120
|
export type { GetEnvironmentListForRemediationErrorResponse, GetEnvironmentListForRemediationOkResponse, GetEnvironmentListForRemediationProps, GetEnvironmentListForRemediationQueryPathParams, GetEnvironmentListForRemediationQueryQueryParams, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
119
121
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
122
|
+
export type { GetEolArtifactSourceComponentTicketErrorResponse, GetEolArtifactSourceComponentTicketOkResponse, GetEolArtifactSourceComponentTicketProps, GetEolArtifactSourceComponentTicketQueryPathParams, GetEolArtifactSourceComponentTicketQueryQueryParams, } from './hooks/useGetEolArtifactSourceComponentTicketQuery';
|
|
123
|
+
export { getEolArtifactSourceComponentTicket, useGetEolArtifactSourceComponentTicketQuery, } from './hooks/useGetEolArtifactSourceComponentTicketQuery';
|
|
120
124
|
export type { GetEolAutoTicketConfigErrorResponse, GetEolAutoTicketConfigOkResponse, GetEolAutoTicketConfigProps, GetEolAutoTicketConfigQueryPathParams, } from './hooks/useGetEolAutoTicketConfigQuery';
|
|
121
125
|
export { getEolAutoTicketConfig, useGetEolAutoTicketConfigQuery, } from './hooks/useGetEolAutoTicketConfigQuery';
|
|
122
126
|
export type { GetHarnessPipelineIntegrationErrorResponse, GetHarnessPipelineIntegrationOkResponse, GetHarnessPipelineIntegrationProps, GetHarnessPipelineIntegrationQueryPathParams, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
@@ -6,6 +6,7 @@ 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 { createEolArtifactSourceComponentTicket, useCreateEolArtifactSourceComponentTicketMutation, } from './hooks/useCreateEolArtifactSourceComponentTicketMutation';
|
|
9
10
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
10
11
|
export { createRemediationPullRequest, useCreateRemediationPullRequestMutation, } from './hooks/useCreateRemediationPullRequestMutation';
|
|
11
12
|
export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
|
|
@@ -57,6 +58,7 @@ export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQu
|
|
|
57
58
|
export { getConnectorConfig, useGetConnectorConfigQuery } from './hooks/useGetConnectorConfigQuery';
|
|
58
59
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
59
60
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
61
|
+
export { getEolArtifactSourceComponentTicket, useGetEolArtifactSourceComponentTicketQuery, } from './hooks/useGetEolArtifactSourceComponentTicketQuery';
|
|
60
62
|
export { getEolAutoTicketConfig, useGetEolAutoTicketConfigQuery, } from './hooks/useGetEolAutoTicketConfigQuery';
|
|
61
63
|
export { getHarnessPipelineIntegration, useGetHarnessPipelineIntegrationQuery, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
62
64
|
export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
|
|
@@ -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,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).
|