@harnessio/react-ng-manager-swagger-service-client 1.33.0 → 1.34.0

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,22 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseListMcpToolInfo } from '../schemas/ResponseListMcpToolInfo';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface ListMcpToolsQueryQueryParams {
8
+ accountIdentifier?: string;
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ connectorIdentifier?: string;
12
+ }
13
+ export type ListMcpToolsOkResponse = ResponseWithPagination<ResponseListMcpToolInfo>;
14
+ export type ListMcpToolsErrorResponse = Failure | Error;
15
+ export interface ListMcpToolsProps extends Omit<FetcherOptions<ListMcpToolsQueryQueryParams, unknown>, 'url'> {
16
+ queryParams: ListMcpToolsQueryQueryParams;
17
+ }
18
+ export declare function listMcpTools(props: ListMcpToolsProps): Promise<ListMcpToolsOkResponse>;
19
+ /**
20
+ *
21
+ */
22
+ export declare function useListMcpToolsQuery(props: ListMcpToolsProps, options?: Omit<UseQueryOptions<ListMcpToolsOkResponse, ListMcpToolsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListMcpToolsOkResponse, ListMcpToolsErrorResponse>;
@@ -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 listMcpTools(props) {
7
+ return fetcher(Object.assign({ url: `/mcp-connector/tools`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useListMcpToolsQuery(props, options) {
13
+ return useQuery(['listMCPTools', props.queryParams], ({ signal }) => listMcpTools(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -309,6 +309,8 @@ export type { ListFeedsForAzureArtifactsErrorResponse, ListFeedsForAzureArtifact
309
309
  export { listFeedsForAzureArtifacts, useListFeedsForAzureArtifactsQuery, } from './hooks/useListFeedsForAzureArtifactsQuery';
310
310
  export type { ListFeedsForAzureArtifactsWithServiceV2ErrorResponse, ListFeedsForAzureArtifactsWithServiceV2MutationQueryParams, ListFeedsForAzureArtifactsWithServiceV2OkResponse, ListFeedsForAzureArtifactsWithServiceV2Props, ListFeedsForAzureArtifactsWithServiceV2RequestBody, } from './hooks/useListFeedsForAzureArtifactsWithServiceV2Mutation';
311
311
  export { listFeedsForAzureArtifactsWithServiceV2, useListFeedsForAzureArtifactsWithServiceV2Mutation, } from './hooks/useListFeedsForAzureArtifactsWithServiceV2Mutation';
312
+ export type { ListMcpToolsErrorResponse, ListMcpToolsOkResponse, ListMcpToolsProps, ListMcpToolsQueryQueryParams, } from './hooks/useListMcpToolsQuery';
313
+ export { listMcpTools, useListMcpToolsQuery } from './hooks/useListMcpToolsQuery';
312
314
  export type { ListPackagesForAzureArtifactsErrorResponse, ListPackagesForAzureArtifactsOkResponse, ListPackagesForAzureArtifactsProps, ListPackagesForAzureArtifactsQueryQueryParams, } from './hooks/useListPackagesForAzureArtifactsQuery';
313
315
  export { listPackagesForAzureArtifacts, useListPackagesForAzureArtifactsQuery, } from './hooks/useListPackagesForAzureArtifactsQuery';
314
316
  export type { ListPackagesForAzureArtifactsWithServiceV2ErrorResponse, ListPackagesForAzureArtifactsWithServiceV2MutationQueryParams, ListPackagesForAzureArtifactsWithServiceV2OkResponse, ListPackagesForAzureArtifactsWithServiceV2Props, ListPackagesForAzureArtifactsWithServiceV2RequestBody, } from './hooks/useListPackagesForAzureArtifactsWithServiceV2Mutation';
@@ -538,6 +540,7 @@ export type { LdapTestResponse } from './schemas/LdapTestResponse';
538
540
  export type { LdapUserResponse } from './schemas/LdapUserResponse';
539
541
  export type { LdapUserSettings } from './schemas/LdapUserSettings';
540
542
  export type { LoginSettingsDto } from './schemas/LoginSettingsDto';
543
+ export type { McpToolInfo } from './schemas/McpToolInfo';
541
544
  export type { NameValuePair } from './schemas/NameValuePair';
542
545
  export type { NexusBuildDetailsDto } from './schemas/NexusBuildDetailsDto';
543
546
  export type { NexusRepositories } from './schemas/NexusRepositories';
@@ -640,6 +643,7 @@ export type { ResponseListJiraIssueTransitionNg } from './schemas/ResponseListJi
640
643
  export type { ResponseListJiraProjectBasicNg } from './schemas/ResponseListJiraProjectBasicNg';
641
644
  export type { ResponseListJiraStatusNg } from './schemas/ResponseListJiraStatusNg';
642
645
  export type { ResponseListJiraUserData } from './schemas/ResponseListJiraUserData';
646
+ export type { ResponseListMcpToolInfo } from './schemas/ResponseListMcpToolInfo';
643
647
  export type { ResponseListNameValuePair } from './schemas/ResponseListNameValuePair';
644
648
  export type { ResponseListNexusRepositories } from './schemas/ResponseListNexusRepositories';
645
649
  export type { ResponseListRegionGar } from './schemas/ResponseListRegionGar';
@@ -153,6 +153,7 @@ export { listAwsRegions, useListAwsRegionsQuery } from './hooks/useListAwsRegion
153
153
  export { listBucketsWithServiceV2, useListBucketsWithServiceV2Mutation, } from './hooks/useListBucketsWithServiceV2Mutation';
154
154
  export { listFeedsForAzureArtifacts, useListFeedsForAzureArtifactsQuery, } from './hooks/useListFeedsForAzureArtifactsQuery';
155
155
  export { listFeedsForAzureArtifactsWithServiceV2, useListFeedsForAzureArtifactsWithServiceV2Mutation, } from './hooks/useListFeedsForAzureArtifactsWithServiceV2Mutation';
156
+ export { listMcpTools, useListMcpToolsQuery } from './hooks/useListMcpToolsQuery';
156
157
  export { listPackagesForAzureArtifacts, useListPackagesForAzureArtifactsQuery, } from './hooks/useListPackagesForAzureArtifactsQuery';
157
158
  export { listPackagesForAzureArtifactsWithServiceV2, useListPackagesForAzureArtifactsWithServiceV2Mutation, } from './hooks/useListPackagesForAzureArtifactsWithServiceV2Mutation';
158
159
  export { listProjectsForAzureArtifacts, useListProjectsForAzureArtifactsQuery, } from './hooks/useListProjectsForAzureArtifactsQuery';
@@ -0,0 +1,4 @@
1
+ export interface McpToolInfo {
2
+ description?: string;
3
+ name?: string;
4
+ }
@@ -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,9 @@
1
+ import type { McpToolInfo } from '../schemas/McpToolInfo';
2
+ export interface ResponseListMcpToolInfo {
3
+ correlationId?: string;
4
+ data?: McpToolInfo[];
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ng-manager-swagger-service-client",
3
- "version": "1.33.0",
3
+ "version": "1.34.0",
4
4
  "description": "Harness React NG Manager Swagger service client - NG Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",