@@ -25,7 +25,7 @@ import {
2525 ConnectToWCSOptions ,
2626 ConnectToWeaviateCloudOptions ,
2727} from './connection/helpers.js' ;
28- import { ProxiesParams , TimeoutParams } from './connection/http.js' ;
28+ import { ConnectionDetails , ProxiesParams , TimeoutParams } from './connection/http.js' ;
2929import { ConnectionGRPC } from './connection/index.js' ;
3030import MetaGetter from './misc/metaGetter.js' ;
3131import { Meta } from './openapi/types.js' ;
@@ -110,6 +110,7 @@ export interface WeaviateClient {
110110
111111 close : ( ) => Promise < void > ;
112112 getMeta : ( ) => Promise < Meta > ;
113+ getConnectionDetails : ( ) => Promise < ConnectionDetails > ;
113114 getOpenIDConfig ?: ( ) => Promise < any > ;
114115 getWeaviateVersion : ( ) => Promise < DbVersion > ;
115116 isLive : ( ) => Promise < boolean > ;
@@ -229,6 +230,7 @@ async function client(params: ClientParams): Promise<WeaviateClient> {
229230 users : users ( connection ) ,
230231 close : ( ) => Promise . resolve ( connection . close ( ) ) , // hedge against future changes to add I/O to .close()
231232 getMeta : ( ) => new MetaGetter ( connection ) . do ( ) ,
233+ getConnectionDetails : connection . getDetails ,
232234 getOpenIDConfig : ( ) => new OpenidConfigurationGetter ( connection . http ) . do ( ) ,
233235 getWeaviateVersion : ( ) => dbVersionSupport . getVersion ( ) ,
234236 isLive : ( ) => new LiveChecker ( connection , dbVersionProvider ) . do ( ) ,
0 commit comments