@harnessio/react-ng-manager-swagger-service-client 1.48.0 → 1.49.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,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseListLlmModelOptionDto } from '../schemas/ResponseListLlmModelOptionDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { LlmModelDiscoveryRequestDto } from '../schemas/LlmModelDiscoveryRequestDto';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface ListLlmModelsMutationQueryParams {
9
+ accountIdentifier?: string;
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ }
13
+ export type ListLlmModelsRequestBody = LlmModelDiscoveryRequestDto;
14
+ export type ListLlmModelsOkResponse = ResponseWithPagination<ResponseListLlmModelOptionDto>;
15
+ export type ListLlmModelsErrorResponse = Failure | Error;
16
+ export interface ListLlmModelsProps extends Omit<FetcherOptions<ListLlmModelsMutationQueryParams, ListLlmModelsRequestBody>, 'url'> {
17
+ queryParams: ListLlmModelsMutationQueryParams;
18
+ body: ListLlmModelsRequestBody;
19
+ }
20
+ export declare function listLlmModels(props: ListLlmModelsProps): Promise<ListLlmModelsOkResponse>;
21
+ /**
22
+ *
23
+ */
24
+ export declare function useListLlmModelsMutation(options?: Omit<UseMutationOptions<ListLlmModelsOkResponse, ListLlmModelsErrorResponse, ListLlmModelsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ListLlmModelsOkResponse, ListLlmModelsErrorResponse, ListLlmModelsProps, 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 listLlmModels(props) {
7
+ return fetcher(Object.assign({ url: `/llm-connector/models`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useListLlmModelsMutation(options) {
13
+ return useMutation((mutateProps) => listLlmModels(mutateProps), options);
14
+ }
@@ -357,6 +357,8 @@ export type { ListFeedsForAzureArtifactsErrorResponse, ListFeedsForAzureArtifact
357
357
  export { listFeedsForAzureArtifacts, useListFeedsForAzureArtifactsQuery, } from './hooks/useListFeedsForAzureArtifactsQuery';
358
358
  export type { ListFeedsForAzureArtifactsWithServiceV2ErrorResponse, ListFeedsForAzureArtifactsWithServiceV2MutationQueryParams, ListFeedsForAzureArtifactsWithServiceV2OkResponse, ListFeedsForAzureArtifactsWithServiceV2Props, ListFeedsForAzureArtifactsWithServiceV2RequestBody, } from './hooks/useListFeedsForAzureArtifactsWithServiceV2Mutation';
359
359
  export { listFeedsForAzureArtifactsWithServiceV2, useListFeedsForAzureArtifactsWithServiceV2Mutation, } from './hooks/useListFeedsForAzureArtifactsWithServiceV2Mutation';
360
+ export type { ListLlmModelsErrorResponse, ListLlmModelsMutationQueryParams, ListLlmModelsOkResponse, ListLlmModelsProps, ListLlmModelsRequestBody, } from './hooks/useListLlmModelsMutation';
361
+ export { listLlmModels, useListLlmModelsMutation } from './hooks/useListLlmModelsMutation';
360
362
  export type { ListManageableServiceAccountsErrorResponse, ListManageableServiceAccountsOkResponse, ListManageableServiceAccountsProps, ListManageableServiceAccountsQueryQueryParams, } from './hooks/useListManageableServiceAccountsQuery';
361
363
  export { listManageableServiceAccounts, useListManageableServiceAccountsQuery, } from './hooks/useListManageableServiceAccountsQuery';
362
364
  export type { ListMcpToolsErrorResponse, ListMcpToolsOkResponse, ListMcpToolsProps, ListMcpToolsQueryQueryParams, } from './hooks/useListMcpToolsQuery';
@@ -646,6 +648,8 @@ export type { LdapSettingsDto } from './schemas/LdapSettingsDto';
646
648
  export type { LdapTestResponse } from './schemas/LdapTestResponse';
647
649
  export type { LdapUserResponse } from './schemas/LdapUserResponse';
648
650
  export type { LdapUserSettings } from './schemas/LdapUserSettings';
651
+ export type { LlmModelDiscoveryRequestDto } from './schemas/LlmModelDiscoveryRequestDto';
652
+ export type { LlmModelOptionDto } from './schemas/LlmModelOptionDto';
649
653
  export type { LoginSettingsDto } from './schemas/LoginSettingsDto';
650
654
  export type { ManifestAttributes } from './schemas/ManifestAttributes';
651
655
  export type { ManifestConfig } from './schemas/ManifestConfig';
@@ -774,6 +778,7 @@ export type { ResponseListJiraIssueTransitionNg } from './schemas/ResponseListJi
774
778
  export type { ResponseListJiraProjectBasicNg } from './schemas/ResponseListJiraProjectBasicNg';
775
779
  export type { ResponseListJiraStatusNg } from './schemas/ResponseListJiraStatusNg';
776
780
  export type { ResponseListJiraUserData } from './schemas/ResponseListJiraUserData';
781
+ export type { ResponseListLlmModelOptionDto } from './schemas/ResponseListLlmModelOptionDto';
777
782
  export type { ResponseListMcpToolInfo } from './schemas/ResponseListMcpToolInfo';
778
783
  export type { ResponseListNameValuePair } from './schemas/ResponseListNameValuePair';
779
784
  export type { ResponseListNexusRepositories } from './schemas/ResponseListNexusRepositories';
@@ -177,6 +177,7 @@ export { listAwsRegions, useListAwsRegionsQuery } from './hooks/useListAwsRegion
177
177
  export { listBucketsWithServiceV2, useListBucketsWithServiceV2Mutation, } from './hooks/useListBucketsWithServiceV2Mutation';
178
178
  export { listFeedsForAzureArtifacts, useListFeedsForAzureArtifactsQuery, } from './hooks/useListFeedsForAzureArtifactsQuery';
179
179
  export { listFeedsForAzureArtifactsWithServiceV2, useListFeedsForAzureArtifactsWithServiceV2Mutation, } from './hooks/useListFeedsForAzureArtifactsWithServiceV2Mutation';
180
+ export { listLlmModels, useListLlmModelsMutation } from './hooks/useListLlmModelsMutation';
180
181
  export { listManageableServiceAccounts, useListManageableServiceAccountsQuery, } from './hooks/useListManageableServiceAccountsQuery';
181
182
  export { listMcpTools, useListMcpToolsQuery } from './hooks/useListMcpToolsQuery';
182
183
  export { listPackagesForAzureArtifacts, useListPackagesForAzureArtifactsQuery, } from './hooks/useListPackagesForAzureArtifactsQuery';
@@ -1,8 +1,7 @@
1
1
  import type { LdapConnectionSettings } from '../schemas/LdapConnectionSettings';
2
2
  import type { LdapGroupSettings } from '../schemas/LdapGroupSettings';
3
3
  import type { LdapUserSettings } from '../schemas/LdapUserSettings';
4
- import type { NgAuthSettings } from '../schemas/NgAuthSettings';
5
- export interface LdapSettings extends NgAuthSettings {
4
+ export interface LdapSettings {
6
5
  connectionSettings: LdapConnectionSettings;
7
6
  cronExpression?: string;
8
7
  disabled?: boolean;
@@ -10,5 +9,6 @@ export interface LdapSettings extends NgAuthSettings {
10
9
  groupSettingsList?: LdapGroupSettings[];
11
10
  identifier: string;
12
11
  nextIterations?: number[];
12
+ settingsType?: 'LDAP' | 'OAUTH' | 'OIDC' | 'SAML' | 'USER_PASSWORD';
13
13
  userSettingsList?: LdapUserSettings[];
14
14
  }
@@ -0,0 +1,8 @@
1
+ export interface LlmModelDiscoveryRequestDto {
2
+ authentication: {
3
+ [key: string]: any;
4
+ };
5
+ provider: 'ANTHROPIC' | 'GITHUB_COPILOT' | 'OPENAI';
6
+ region?: string;
7
+ url?: string;
8
+ }
@@ -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,4 @@
1
+ export interface LlmModelOptionDto {
2
+ displayName?: string;
3
+ value?: 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 { LlmModelOptionDto } from '../schemas/LlmModelOptionDto';
2
+ export interface ResponseListLlmModelOptionDto {
3
+ correlationId?: string;
4
+ data?: LlmModelOptionDto[];
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.48.0",
3
+ "version": "1.49.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",