@harnessio/react-ssca-manager-client 0.84.17 → 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.
@@ -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
+ }
@@ -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';
@@ -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';
@@ -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).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.84.17",
3
+ "version": "0.84.18",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",