@harnessio/react-ssca-manager-client 0.84.28 → 0.84.29
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/useGetAiBomComponentsQuery.d.ts +39 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiBomComponentsQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiBomSummaryQuery.d.ts +21 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiBomSummaryQuery.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +5 -0
- package/dist/ssca-manager/src/services/index.js +2 -0
- package/dist/ssca-manager/src/services/schemas/AiBomComponentViewRequestBody.d.ts +3 -4
- package/dist/ssca-manager/src/services/schemas/AiBomComponentViewRequestBody.js +0 -3
- package/dist/ssca-manager/src/services/schemas/AiBomStringFilter.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/AiBomStringFilter.js +1 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepositoryOverview.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AiBomComponentViewResponse } from '../schemas/AiBomComponentViewResponse';
|
|
3
|
+
import type { AiBomComponentViewRequestBody } from '../schemas/AiBomComponentViewRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetAiBomComponentsQueryPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
artifact: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetAiBomComponentsQueryQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* @default 30
|
|
14
|
+
*/
|
|
15
|
+
limit?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @default "ASC"
|
|
18
|
+
*/
|
|
19
|
+
order?: 'ASC' | 'DESC';
|
|
20
|
+
/**
|
|
21
|
+
* @default 0
|
|
22
|
+
*/
|
|
23
|
+
page?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface GetAiBomComponentsQueryHeaderParams {
|
|
26
|
+
'Harness-Account': string;
|
|
27
|
+
}
|
|
28
|
+
export type GetAiBomComponentsRequestBody = AiBomComponentViewRequestBody;
|
|
29
|
+
export type GetAiBomComponentsOkResponse = ResponseWithPagination<AiBomComponentViewResponse[]>;
|
|
30
|
+
export type GetAiBomComponentsErrorResponse = unknown;
|
|
31
|
+
export interface GetAiBomComponentsProps extends GetAiBomComponentsQueryPathParams, Omit<FetcherOptions<GetAiBomComponentsQueryQueryParams, GetAiBomComponentsRequestBody, GetAiBomComponentsQueryHeaderParams>, 'url'> {
|
|
32
|
+
queryParams: GetAiBomComponentsQueryQueryParams;
|
|
33
|
+
body: GetAiBomComponentsRequestBody;
|
|
34
|
+
}
|
|
35
|
+
export declare function getAiBomComponents(props: GetAiBomComponentsProps): Promise<GetAiBomComponentsOkResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Get AI-BOM components for an artifact
|
|
38
|
+
*/
|
|
39
|
+
export declare function useGetAiBomComponentsQuery(props: GetAiBomComponentsProps, options?: Omit<UseQueryOptions<GetAiBomComponentsOkResponse, GetAiBomComponentsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiBomComponentsOkResponse, 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 getAiBomComponents(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/ai-bom/components`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get AI-BOM components for an artifact
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAiBomComponentsQuery(props, options) {
|
|
13
|
+
return useQuery(['getAiBomComponents', props.org, props.project, props.artifact, props.queryParams, props.body], ({ signal }) => getAiBomComponents(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AiBomSummaryResponse } from '../schemas/AiBomSummaryResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetAiBomSummaryQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
artifact: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetAiBomSummaryQueryHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
12
|
+
}
|
|
13
|
+
export type GetAiBomSummaryOkResponse = ResponseWithPagination<AiBomSummaryResponse>;
|
|
14
|
+
export type GetAiBomSummaryErrorResponse = unknown;
|
|
15
|
+
export interface GetAiBomSummaryProps extends GetAiBomSummaryQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetAiBomSummaryQueryHeaderParams>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function getAiBomSummary(props: GetAiBomSummaryProps): Promise<GetAiBomSummaryOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get AI-BOM summary with component type counts for an artifact
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetAiBomSummaryQuery(props: GetAiBomSummaryProps, options?: Omit<UseQueryOptions<GetAiBomSummaryOkResponse, GetAiBomSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiBomSummaryOkResponse, 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 getAiBomSummary(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/ai-bom/summary`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get AI-BOM summary with component type counts for an artifact
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAiBomSummaryQuery(props, options) {
|
|
13
|
+
return useQuery(['getAiBomSummary', props.org, props.project, props.artifact], ({ signal }) => getAiBomSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -45,6 +45,10 @@ export type { FetchReposInIntegrationErrorResponse, FetchReposInIntegrationOkRes
|
|
|
45
45
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
46
46
|
export type { GetAccountAiWorkflowConfigErrorResponse, GetAccountAiWorkflowConfigOkResponse, GetAccountAiWorkflowConfigProps, GetAccountAiWorkflowConfigQueryQueryParams, } from './hooks/useGetAccountAiWorkflowConfigQuery';
|
|
47
47
|
export { getAccountAiWorkflowConfig, useGetAccountAiWorkflowConfigQuery, } from './hooks/useGetAccountAiWorkflowConfigQuery';
|
|
48
|
+
export type { GetAiBomComponentsErrorResponse, GetAiBomComponentsOkResponse, GetAiBomComponentsProps, GetAiBomComponentsQueryPathParams, GetAiBomComponentsQueryQueryParams, GetAiBomComponentsRequestBody, } from './hooks/useGetAiBomComponentsQuery';
|
|
49
|
+
export { getAiBomComponents, useGetAiBomComponentsQuery } from './hooks/useGetAiBomComponentsQuery';
|
|
50
|
+
export type { GetAiBomSummaryErrorResponse, GetAiBomSummaryOkResponse, GetAiBomSummaryProps, GetAiBomSummaryQueryPathParams, } from './hooks/useGetAiBomSummaryQuery';
|
|
51
|
+
export { getAiBomSummary, useGetAiBomSummaryQuery } from './hooks/useGetAiBomSummaryQuery';
|
|
48
52
|
export type { GetAiWorkflowExecutionAffectedTargetsErrorResponse, GetAiWorkflowExecutionAffectedTargetsOkResponse, GetAiWorkflowExecutionAffectedTargetsProps, GetAiWorkflowExecutionAffectedTargetsQueryPathParams, GetAiWorkflowExecutionAffectedTargetsQueryQueryParams, } from './hooks/useGetAiWorkflowExecutionAffectedTargetsQuery';
|
|
49
53
|
export { getAiWorkflowExecutionAffectedTargets, useGetAiWorkflowExecutionAffectedTargetsQuery, } from './hooks/useGetAiWorkflowExecutionAffectedTargetsQuery';
|
|
50
54
|
export type { GetAiWorkflowExecutionDetailErrorResponse, GetAiWorkflowExecutionDetailOkResponse, GetAiWorkflowExecutionDetailProps, GetAiWorkflowExecutionDetailQueryPathParams, GetAiWorkflowExecutionDetailQueryQueryParams, } from './hooks/useGetAiWorkflowExecutionDetailQuery';
|
|
@@ -347,6 +351,7 @@ export type { AiBomExternalReference } from './schemas/AiBomExternalReference';
|
|
|
347
351
|
export type { AiBomModelCard } from './schemas/AiBomModelCard';
|
|
348
352
|
export type { AiBomModelPipeline } from './schemas/AiBomModelPipeline';
|
|
349
353
|
export type { AiBomOccurrence } from './schemas/AiBomOccurrence';
|
|
354
|
+
export type { AiBomStringFilter } from './schemas/AiBomStringFilter';
|
|
350
355
|
export type { AiBomSummaryResponse } from './schemas/AiBomSummaryResponse';
|
|
351
356
|
export type { AiWorkflowAlertConfig } from './schemas/AiWorkflowAlertConfig';
|
|
352
357
|
export type { AiWorkflowConfigRequest } from './schemas/AiWorkflowConfigRequest';
|
|
@@ -21,6 +21,8 @@ export { fetchComplianceResultsGroupById, useFetchComplianceResultsGroupByIdMuta
|
|
|
21
21
|
export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
|
|
22
22
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
23
23
|
export { getAccountAiWorkflowConfig, useGetAccountAiWorkflowConfigQuery, } from './hooks/useGetAccountAiWorkflowConfigQuery';
|
|
24
|
+
export { getAiBomComponents, useGetAiBomComponentsQuery } from './hooks/useGetAiBomComponentsQuery';
|
|
25
|
+
export { getAiBomSummary, useGetAiBomSummaryQuery } from './hooks/useGetAiBomSummaryQuery';
|
|
24
26
|
export { getAiWorkflowExecutionAffectedTargets, useGetAiWorkflowExecutionAffectedTargetsQuery, } from './hooks/useGetAiWorkflowExecutionAffectedTargetsQuery';
|
|
25
27
|
export { getAiWorkflowExecutionDetail, useGetAiWorkflowExecutionDetailQuery, } from './hooks/useGetAiWorkflowExecutionDetailQuery';
|
|
26
28
|
export { getAiWorkflowExecutionStepsAccountScope, useGetAiWorkflowExecutionStepsAccountScopeQuery, } from './hooks/useGetAiWorkflowExecutionStepsAccountScopeQuery';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AiBomStringFilter } from '../schemas/AiBomStringFilter';
|
|
1
2
|
/**
|
|
2
3
|
* Filter and search criteria for AI-BOM components
|
|
3
4
|
*/
|
|
@@ -6,8 +7,6 @@ export interface AiBomComponentViewRequestBody {
|
|
|
6
7
|
* Filter by component type (e.g. model, pkg, agent, framework)
|
|
7
8
|
*/
|
|
8
9
|
ai_component_type?: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
search?: string;
|
|
10
|
+
name_filter?: AiBomStringFilter;
|
|
11
|
+
provider_filter?: AiBomStringFilter;
|
|
13
12
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AiBomSummaryResponse } from '../schemas/AiBomSummaryResponse';
|
|
1
2
|
import type { ComplianceEvaluationSummary } from '../schemas/ComplianceEvaluationSummary';
|
|
2
3
|
import type { DriftDetailsDto } from '../schemas/DriftDetailsDto';
|
|
3
4
|
import type { RepositoryPlatform } from '../schemas/RepositoryPlatform';
|
|
@@ -7,6 +8,7 @@ import type { ArtifactVariant } from '../schemas/ArtifactVariant';
|
|
|
7
8
|
import type { Violations } from '../schemas/Violations';
|
|
8
9
|
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
9
10
|
export interface CodeRepositoryOverview {
|
|
11
|
+
aibom_details?: AiBomSummaryResponse;
|
|
10
12
|
compliance_summary?: ComplianceEvaluationSummary;
|
|
11
13
|
drift_summary?: DriftDetailsDto;
|
|
12
14
|
last_commit?: string;
|