@harnessio/react-ssca-manager-client 0.84.21 → 0.84.22

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.
@@ -1,5 +1,5 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { AiWorkflowExecutionSummary } from '../schemas/AiWorkflowExecutionSummary';
2
+ import type { AiWorkflowExecutionListResponse } from '../schemas/AiWorkflowExecutionListResponse';
3
3
  import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -31,7 +31,7 @@ export interface GetAiWorkflowExecutionsQueryQueryParams {
31
31
  export interface GetAiWorkflowExecutionsQueryHeaderParams {
32
32
  'Harness-Account': string;
33
33
  }
34
- export type GetAiWorkflowExecutionsOkResponse = ResponseWithPagination<AiWorkflowExecutionSummary[]>;
34
+ export type GetAiWorkflowExecutionsOkResponse = ResponseWithPagination<AiWorkflowExecutionListResponse>;
35
35
  export type GetAiWorkflowExecutionsErrorResponse = unknown;
36
36
  export interface GetAiWorkflowExecutionsProps extends GetAiWorkflowExecutionsQueryPathParams, Omit<FetcherOptions<GetAiWorkflowExecutionsQueryQueryParams, unknown, GetAiWorkflowExecutionsQueryHeaderParams>, 'url'> {
37
37
  queryParams: GetAiWorkflowExecutionsQueryQueryParams;
@@ -331,6 +331,7 @@ export type { AiWorkflowConfigRequest } from './schemas/AiWorkflowConfigRequest'
331
331
  export type { AiWorkflowConfigResponse } from './schemas/AiWorkflowConfigResponse';
332
332
  export type { AiWorkflowExclusionScope } from './schemas/AiWorkflowExclusionScope';
333
333
  export type { AiWorkflowExecutionDetailResponse } from './schemas/AiWorkflowExecutionDetailResponse';
334
+ export type { AiWorkflowExecutionListResponse } from './schemas/AiWorkflowExecutionListResponse';
334
335
  export type { AiWorkflowExecutionRequest } from './schemas/AiWorkflowExecutionRequest';
335
336
  export type { AiWorkflowExecutionStatusEnum } from './schemas/AiWorkflowExecutionStatusEnum';
336
337
  export type { AiWorkflowExecutionStepsResponse } from './schemas/AiWorkflowExecutionStepsResponse';
@@ -0,0 +1,24 @@
1
+ import type { AiWorkflowExecutionSummary } from '../schemas/AiWorkflowExecutionSummary';
2
+ export interface AiWorkflowExecutionListResponse {
3
+ /**
4
+ * List of AI workflow executions
5
+ */
6
+ executions?: AiWorkflowExecutionSummary[];
7
+ /**
8
+ * Current page number (zero-indexed)
9
+ */
10
+ page?: number;
11
+ /**
12
+ * Number of items per page
13
+ */
14
+ page_size?: number;
15
+ /**
16
+ * Total number of executions matching the current filters
17
+ * @format int64
18
+ */
19
+ total_items?: number;
20
+ /**
21
+ * Total number of pages
22
+ */
23
+ total_pages?: number;
24
+ }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Status of an AI workflow execution
3
3
  */
4
- export type AiWorkflowExecutionStatusEnum = 'APPROVED' | 'COMPLETED' | 'EXPIRED' | 'FAILED' | 'PENDING_APPROVAL' | 'PENDING_IDENTIFICATION' | 'REJECTED' | 'RUNNING' | 'SKIPPED_ZERO_AFFECTED';
4
+ export type AiWorkflowExecutionStatusEnum = 'COMPLETED' | 'FAILED' | 'PENDING' | 'RUNNING' | 'SKIPPED';
@@ -38,7 +38,7 @@ export interface AiWorkflowTriggerResponse {
38
38
  selected_purl?: string;
39
39
  /**
40
40
  * Initial status
41
- * @example "PENDING_IDENTIFICATION"
41
+ * @example "PENDING"
42
42
  */
43
43
  status?: string;
44
44
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Type of AI workflow
3
- * @example "Vulnerability"
3
+ * @example "vulnerability"
4
4
  */
5
- export type AiWorkflowTypeEnum = 'Vulnerability' | 'zeroDay';
5
+ export type AiWorkflowTypeEnum = 'vulnerability' | 'zero_day';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.84.21",
3
+ "version": "0.84.22",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",