@harnessio/react-ssca-manager-client 0.84.18 → 0.84.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dist/ssca-manager/src/services/hooks/useCreateEolArtifactSourceComponentTicketMutation.d.ts +30 -0
  2. package/dist/ssca-manager/src/services/hooks/useCreateEolArtifactSourceComponentTicketMutation.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.d.ts +18 -2
  4. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.js +1 -1
  5. package/dist/ssca-manager/src/services/hooks/useGetBulkDownloadStatusQuery.d.ts +21 -0
  6. package/dist/ssca-manager/src/services/hooks/useGetBulkDownloadStatusQuery.js +14 -0
  7. package/dist/ssca-manager/src/services/index.d.ts +8 -0
  8. package/dist/ssca-manager/src/services/index.js +2 -0
  9. package/dist/ssca-manager/src/services/responses/AttestationBulkDownloadResponseBodyResponse.d.ts +2 -2
  10. package/dist/ssca-manager/src/services/schemas/AffectedArtifactInfo.d.ts +24 -0
  11. package/dist/ssca-manager/src/services/schemas/AffectedArtifactInfo.js +4 -0
  12. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionDetailResponse.d.ts +50 -0
  13. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionDetailResponse.js +1 -0
  14. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionListResponse.d.ts +12 -0
  15. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionStatusEnum.d.ts +4 -0
  16. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionStatusEnum.js +4 -0
  17. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionSummary.d.ts +18 -0
  18. package/dist/ssca-manager/src/services/schemas/AttestationBulkDownloadRequest.d.ts +12 -4
  19. package/dist/ssca-manager/src/services/schemas/AttestationListingResponse.d.ts +4 -0
  20. package/dist/ssca-manager/src/services/schemas/BulkDownloadJobResponse.d.ts +32 -0
  21. package/dist/ssca-manager/src/services/schemas/BulkDownloadJobResponse.js +4 -0
  22. package/dist/ssca-manager/src/services/schemas/HarnessRunner.d.ts +1 -0
  23. package/package.json +1 -1
@@ -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>;
@@ -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
+ }
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { AiWorkflowExecutionListResponse } from '../schemas/AiWorkflowExecutionListResponse';
3
+ import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
3
4
  import type { ResponseWithPagination } from '../helpers';
4
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
6
  export interface GetAiWorkflowExecutionsQueryPathParams {
@@ -7,7 +8,22 @@ export interface GetAiWorkflowExecutionsQueryPathParams {
7
8
  project: string;
8
9
  }
9
10
  export interface GetAiWorkflowExecutionsQueryQueryParams {
10
- ai_workflow_type: string;
11
+ ai_workflow_type?: string;
12
+ status?: AiWorkflowExecutionStatusEnum;
13
+ /**
14
+ * @format int64
15
+ */
16
+ from_timestamp?: number;
17
+ /**
18
+ * @format int64
19
+ */
20
+ to_timestamp?: number;
21
+ batch_id?: string;
22
+ cursor?: string;
23
+ /**
24
+ * @default 30
25
+ */
26
+ limit?: number;
11
27
  }
12
28
  export interface GetAiWorkflowExecutionsQueryHeaderParams {
13
29
  'Harness-Account': string;
@@ -19,6 +35,6 @@ export interface GetAiWorkflowExecutionsProps extends GetAiWorkflowExecutionsQue
19
35
  }
20
36
  export declare function getAiWorkflowExecutions(props: GetAiWorkflowExecutionsProps): Promise<GetAiWorkflowExecutionsOkResponse>;
21
37
  /**
22
- * Get AI workflow executions filtered by workflow type
38
+ * Get AI workflow executions with optional filters for status, date range, batch ID, and workflow type
23
39
  */
24
40
  export declare function useGetAiWorkflowExecutionsQuery(props: GetAiWorkflowExecutionsProps, options?: Omit<UseQueryOptions<GetAiWorkflowExecutionsOkResponse, GetAiWorkflowExecutionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiWorkflowExecutionsOkResponse, unknown>;
@@ -7,7 +7,7 @@ export function getAiWorkflowExecutions(props) {
7
7
  return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-executions`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Get AI workflow executions filtered by workflow type
10
+ * Get AI workflow executions with optional filters for status, date range, batch ID, and workflow type
11
11
  */
12
12
  export function useGetAiWorkflowExecutionsQuery(props, options) {
13
13
  return useQuery(['getAIWorkflowExecutions', props.org, props.project, props.queryParams], ({ signal }) => getAiWorkflowExecutions(Object.assign(Object.assign({}, props), { signal })), options);
@@ -0,0 +1,21 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { BulkDownloadJobResponse } from '../schemas/BulkDownloadJobResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetBulkDownloadStatusQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ jobId: string;
9
+ }
10
+ export interface GetBulkDownloadStatusQueryHeaderParams {
11
+ 'Harness-Account': string;
12
+ }
13
+ export type GetBulkDownloadStatusOkResponse = ResponseWithPagination<BulkDownloadJobResponse>;
14
+ export type GetBulkDownloadStatusErrorResponse = unknown;
15
+ export interface GetBulkDownloadStatusProps extends GetBulkDownloadStatusQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetBulkDownloadStatusQueryHeaderParams>, 'url'> {
16
+ }
17
+ export declare function getBulkDownloadStatus(props: GetBulkDownloadStatusProps): Promise<GetBulkDownloadStatusOkResponse>;
18
+ /**
19
+ * Poll this endpoint to check whether the ZIP is ready. When status is COMPLETED, the response includes a time-limited pre-signed download URL.
20
+ */
21
+ export declare function useGetBulkDownloadStatusQuery(props: GetBulkDownloadStatusProps, options?: Omit<UseQueryOptions<GetBulkDownloadStatusOkResponse, GetBulkDownloadStatusErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetBulkDownloadStatusOkResponse, 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 getBulkDownloadStatus(props) {
7
+ return fetcher(Object.assign({ url: `/v2/orgs/${props.org}/projects/${props.project}/attestations/bulk-download/${props.jobId}/status`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Poll this endpoint to check whether the ZIP is ready. When status is COMPLETED, the response includes a time-limited pre-signed download URL.
11
+ */
12
+ export function useGetBulkDownloadStatusQuery(props, options) {
13
+ return useQuery(['getBulkDownloadStatus', props.org, props.project, props.jobId], ({ signal }) => getBulkDownloadStatus(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -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';
@@ -81,6 +83,8 @@ export type { GetAutoPrPresetsErrorResponse, GetAutoPrPresetsOkResponse, GetAuto
81
83
  export { getAutoPrPresets, useGetAutoPrPresetsQuery } from './hooks/useGetAutoPrPresetsQuery';
82
84
  export type { GetBaselineForArtifactErrorResponse, GetBaselineForArtifactOkResponse, GetBaselineForArtifactProps, GetBaselineForArtifactQueryPathParams, } from './hooks/useGetBaselineForArtifactQuery';
83
85
  export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
86
+ export type { GetBulkDownloadStatusErrorResponse, GetBulkDownloadStatusOkResponse, GetBulkDownloadStatusProps, GetBulkDownloadStatusQueryPathParams, } from './hooks/useGetBulkDownloadStatusQuery';
87
+ export { getBulkDownloadStatus, useGetBulkDownloadStatusQuery, } from './hooks/useGetBulkDownloadStatusQuery';
84
88
  export type { GetCicdOverviewErrorResponse, GetCicdOverviewOkResponse, GetCicdOverviewProps, GetCicdOverviewQueryPathParams, } from './hooks/useGetCicdOverviewQuery';
85
89
  export { getCicdOverview, useGetCicdOverviewQuery } from './hooks/useGetCicdOverviewQuery';
86
90
  export type { GetCicdRulesEvaluationTrendErrorResponse, GetCicdRulesEvaluationTrendOkResponse, GetCicdRulesEvaluationTrendProps, GetCicdRulesEvaluationTrendQueryPathParams, GetCicdRulesEvaluationTrendQueryQueryParams, } from './hooks/useGetCicdRulesEvaluationTrendQuery';
@@ -321,8 +325,11 @@ export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueRespo
321
325
  export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIntegrationResponseBodyResponse';
322
326
  export type { VersionResponseBodyResponse } from './responses/VersionResponseBodyResponse';
323
327
  export type { ActivityDetails } from './schemas/ActivityDetails';
328
+ export type { AffectedArtifactInfo } from './schemas/AffectedArtifactInfo';
329
+ export type { AiWorkflowExecutionDetailResponse } from './schemas/AiWorkflowExecutionDetailResponse';
324
330
  export type { AiWorkflowExecutionListResponse } from './schemas/AiWorkflowExecutionListResponse';
325
331
  export type { AiWorkflowExecutionRequest } from './schemas/AiWorkflowExecutionRequest';
332
+ export type { AiWorkflowExecutionStatusEnum } from './schemas/AiWorkflowExecutionStatusEnum';
326
333
  export type { AiWorkflowExecutionStepsResponse } from './schemas/AiWorkflowExecutionStepsResponse';
327
334
  export type { AiWorkflowExecutionSummary } from './schemas/AiWorkflowExecutionSummary';
328
335
  export type { AiWorkflowResults } from './schemas/AiWorkflowResults';
@@ -400,6 +407,7 @@ export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
400
407
  export type { BatchComponentRemediationItem } from './schemas/BatchComponentRemediationItem';
401
408
  export type { BatchComponentRemediationRequest } from './schemas/BatchComponentRemediationRequest';
402
409
  export type { BatchComponentRemediationResponse } from './schemas/BatchComponentRemediationResponse';
410
+ export type { BulkDownloadJobResponse } from './schemas/BulkDownloadJobResponse';
403
411
  export type { CategoryScorecard } from './schemas/CategoryScorecard';
404
412
  export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
405
413
  export type { ChunkMetadata } from './schemas/ChunkMetadata';
@@ -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';
@@ -39,6 +40,7 @@ export { getAttestationSummaryByType, useGetAttestationSummaryByTypeMutation, }
39
40
  export { getAutoPrConfig, useGetAutoPrConfigQuery } from './hooks/useGetAutoPrConfigQuery';
40
41
  export { getAutoPrPresets, useGetAutoPrPresetsQuery } from './hooks/useGetAutoPrPresetsQuery';
41
42
  export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
43
+ export { getBulkDownloadStatus, useGetBulkDownloadStatusQuery, } from './hooks/useGetBulkDownloadStatusQuery';
42
44
  export { getCicdOverview, useGetCicdOverviewQuery } from './hooks/useGetCicdOverviewQuery';
43
45
  export { getCicdRulesEvaluationTrend, useGetCicdRulesEvaluationTrendQuery, } from './hooks/useGetCicdRulesEvaluationTrendQuery';
44
46
  export { getCicdWorkflowsList, useGetCicdWorkflowsListQuery, } from './hooks/useGetCicdWorkflowsListQuery';
@@ -1,2 +1,2 @@
1
- import type { DsseEnvelope } from '../schemas/DsseEnvelope';
2
- export type AttestationBulkDownloadResponseBodyResponse = DsseEnvelope[];
1
+ import type { BulkDownloadJobResponse } from '../schemas/BulkDownloadJobResponse';
2
+ export type AttestationBulkDownloadResponseBodyResponse = BulkDownloadJobResponse;
@@ -0,0 +1,24 @@
1
+ export interface AffectedArtifactInfo {
2
+ artifact_id?: string;
3
+ artifact_name?: string;
4
+ artifact_version?: string;
5
+ base_branch?: string;
6
+ /**
7
+ * Environment type (Production, NonProduction)
8
+ */
9
+ env_type?: string;
10
+ fix_version?: string;
11
+ /**
12
+ * Names of non-production environments
13
+ */
14
+ non_prod_env_names?: string[];
15
+ package_name?: string;
16
+ package_version?: string;
17
+ /**
18
+ * Names of production environments
19
+ */
20
+ prod_env_names?: string[];
21
+ purl?: string;
22
+ repo_name?: string;
23
+ repo_url?: string;
24
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,50 @@
1
+ import type { AffectedArtifactInfo } from '../schemas/AffectedArtifactInfo';
2
+ import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
3
+ import type { AiWorkflowResults } from '../schemas/AiWorkflowResults';
4
+ import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
5
+ export interface AiWorkflowExecutionDetailResponse {
6
+ /**
7
+ * List of artifacts affected by this execution
8
+ */
9
+ affected_artifacts?: AffectedArtifactInfo[];
10
+ ai_workflow_type?: AiWorkflowTypeEnum;
11
+ /**
12
+ * Remediation batch ID if batch-originated
13
+ */
14
+ batch_id?: string;
15
+ /**
16
+ * Name of the vulnerable component
17
+ */
18
+ component_name?: string;
19
+ /**
20
+ * Current/vulnerable version
21
+ */
22
+ component_version?: string;
23
+ /**
24
+ * @format int64
25
+ */
26
+ created_at?: number;
27
+ cve_id?: string;
28
+ duration?: number;
29
+ /**
30
+ * Pipeline execution identifier
31
+ */
32
+ execution_id?: string;
33
+ /**
34
+ * Target fixed version
35
+ */
36
+ fixed_version?: string;
37
+ results?: AiWorkflowResults;
38
+ severity?: string;
39
+ /**
40
+ * @format date-time
41
+ */
42
+ start_time?: string;
43
+ status?: AiWorkflowExecutionStatusEnum;
44
+ summary?: string;
45
+ /**
46
+ * Display name of the triggering user or Harness System for batch-originated executions
47
+ */
48
+ triggered_by_display_name?: string;
49
+ vulnerability_info?: string;
50
+ }
@@ -4,4 +4,16 @@ export interface AiWorkflowExecutionListResponse {
4
4
  * List of AI workflow executions
5
5
  */
6
6
  executions?: AiWorkflowExecutionSummary[];
7
+ /**
8
+ * True if there are more results after this page
9
+ */
10
+ has_next_page?: boolean;
11
+ /**
12
+ * Opaque cursor to pass in the next request. Null when there are no more pages.
13
+ */
14
+ next_cursor?: string;
15
+ /**
16
+ * Number of items per page
17
+ */
18
+ page_size?: number;
7
19
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Status of an AI workflow execution
3
+ */
4
+ export type AiWorkflowExecutionStatusEnum = 'APPROVED' | 'COMPLETED' | 'EXPIRED' | 'FAILED' | 'PENDING_APPROVAL' | 'PENDING_IDENTIFICATION' | 'REJECTED' | 'RUNNING' | 'SKIPPED_ZERO_AFFECTED';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,7 +1,12 @@
1
1
  import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
2
2
  import type { AiWorkflowResults } from '../schemas/AiWorkflowResults';
3
+ import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
3
4
  export interface AiWorkflowExecutionSummary {
4
5
  ai_workflow_type?: AiWorkflowTypeEnum;
6
+ /**
7
+ * Remediation batch ID if batch-originated
8
+ */
9
+ batch_id?: string;
5
10
  /**
6
11
  * Name of the vulnerable component
7
12
  */
@@ -15,6 +20,10 @@ export interface AiWorkflowExecutionSummary {
15
20
  * @format int64
16
21
  */
17
22
  created_at?: number;
23
+ /**
24
+ * CVE identifier
25
+ */
26
+ cve_id?: string;
18
27
  /**
19
28
  * Workflow duration in seconds
20
29
  */
@@ -28,15 +37,24 @@ export interface AiWorkflowExecutionSummary {
28
37
  */
29
38
  fixed_version?: string;
30
39
  results?: AiWorkflowResults;
40
+ /**
41
+ * Severity level of the vulnerability
42
+ */
43
+ severity?: string;
31
44
  /**
32
45
  * Workflow start time
33
46
  * @format date-time
34
47
  */
35
48
  start_time?: string;
49
+ status?: AiWorkflowExecutionStatusEnum;
36
50
  /**
37
51
  * Final workflow summary
38
52
  */
39
53
  summary?: string;
54
+ /**
55
+ * Display name of the triggering user or system
56
+ */
57
+ triggered_by_display_name?: string;
40
58
  /**
41
59
  * CVE ID or component information
42
60
  */
@@ -1,19 +1,27 @@
1
1
  /**
2
- * Download multiple attestations by inclusive creation-time range OR by digest list. Provide either both start_time and end_time, or attestation_ids (GitOID SHA-256), not both.
2
+ * Download multiple attestations as a ZIP. Provide attestation_ids for direct lookup, or use filters (time range, types, sources). At least one filter must be provided.
3
3
  */
4
4
  export interface AttestationBulkDownloadRequest {
5
5
  /**
6
- * GitOID SHA-256 digests to download. Omit when using start_time and end_time.
6
+ * GitOID SHA-256 digests to download. When provided, other filters are ignored.
7
7
  */
8
8
  attestation_ids?: string[];
9
9
  /**
10
- * Inclusive range end, epoch ms UTC (creation time). Use with start_time when not using attestation_ids.
10
+ * Inclusive range end, epoch ms UTC (creation time). Use with start_time.
11
11
  * @format int64
12
12
  */
13
13
  end_time?: number;
14
14
  /**
15
- * Inclusive range start, epoch ms UTC (creation time). Use with end_time when not using attestation_ids.
15
+ * Filter by attestation source (Harness, GithubActions, Jenkins, Others).
16
+ */
17
+ sources?: string[];
18
+ /**
19
+ * Inclusive range start, epoch ms UTC (creation time). Use with end_time.
16
20
  * @format int64
17
21
  */
18
22
  start_time?: number;
23
+ /**
24
+ * Filter by attestation type (Code, Build, Test, Security, Deploy, Custom).
25
+ */
26
+ types?: string[];
19
27
  }
@@ -30,6 +30,10 @@ export interface AttestationListingResponse<T0 extends ExecutionContextV2 = Exec
30
30
  * First subject summary; null if none.
31
31
  */
32
32
  subject?: AttestationSubjectSummary;
33
+ /**
34
+ * All attestation subjects for this record (may be empty).
35
+ */
36
+ subjects?: AttestationSubjectSummary[];
33
37
  type: AttestationType;
34
38
  /**
35
39
  * Updated at (epoch ms).
@@ -0,0 +1,32 @@
1
+ export interface BulkDownloadJobResponse {
2
+ /**
3
+ * Job creation time (epoch ms).
4
+ * @format int64
5
+ */
6
+ created_at: number;
7
+ /**
8
+ * Pre-signed URL for downloading the ZIP. Only present when status is COMPLETED.
9
+ */
10
+ download_url?: string;
11
+ /**
12
+ * Error message. Only present when status is FAILED.
13
+ */
14
+ error?: string;
15
+ /**
16
+ * Expiration time of the download URL (epoch ms). Only present when status is COMPLETED.
17
+ * @format int64
18
+ */
19
+ expires_at?: number;
20
+ /**
21
+ * Unique identifier for the bulk download job.
22
+ */
23
+ job_id: string;
24
+ /**
25
+ * Current status of the bulk download job.
26
+ */
27
+ status: 'COMPLETED' | 'FAILED' | 'PENDING';
28
+ /**
29
+ * Number of attestations to be downloaded.
30
+ */
31
+ total_attestations: number;
32
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,4 +1,5 @@
1
1
  export interface HarnessRunner {
2
+ trigger_by_email?: string;
2
3
  trigger_by_id?: string;
3
4
  trigger_by_name?: string;
4
5
  trigger_type?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.84.18",
3
+ "version": "0.84.20",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",