@singlestore/elegance-sdk
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "@singlestore/elegance-sdk", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -242,8 +242,9 @@ import * as _OpenAI from 'openai'; | ||
type EleganceServerClient<T extends ConnectionTypes> = ReturnType<typeof createEleganceServerClient<T>>; | ||
type EleganceServerClientConfig<T extends ConnectionTypes> = { | ||
connection: ConnectionConfigsMap[T]; | ||
openai?: ClientOptions; | ||
}; | ||
declare function createRouteHandler<T extends Record<string, any>>(controllers: T): <K extends keyof T>(route: K, ...args: Parameters<T[K]["execute"]>) => ReturnType<T[K]["execute"]>; | ||
declare function createEleganceServerClient<T extends ConnectionTypes>(type: T, config: { | ||
connection: ConnectionConfigsMap[T]; | ||
openai?: ClientOptions; | ||
}): { | ||
declare function createEleganceServerClient<T extends ConnectionTypes, C extends EleganceServerClientConfig<T> = EleganceServerClientConfig<T>>(type: T, config: C): { | ||
connection: Connection<T>; | ||
@@ -458,2 +459,2 @@ controllers: { | ||
export { EleganceServerClient, Routes, createEleganceServerClient, createRouteHandler }; | ||
export { EleganceServerClient, EleganceServerClientConfig, Routes, createEleganceServerClient, createRouteHandler }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
117847
2700