@hautechai/sdk 2.1.1 → 2.2.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.
package/dist/index.d.mts CHANGED
@@ -7303,6 +7303,7 @@ interface SDKOptions {
7303
7303
  authToken: () => string | Promise<string>;
7304
7304
  baseUrl?: string;
7305
7305
  baseWsUrl?: string;
7306
+ wsConfig?: SocketOptions;
7306
7307
  }
7307
7308
  type ApiDefinitionTree<T> = {
7308
7309
  [K in keyof T]: T[K] extends (...args: any[]) => any ? T[K] : T[K] extends object ? ApiDefinitionTree<T[K]> : never;
package/dist/index.d.ts CHANGED
@@ -7303,6 +7303,7 @@ interface SDKOptions {
7303
7303
  authToken: () => string | Promise<string>;
7304
7304
  baseUrl?: string;
7305
7305
  baseWsUrl?: string;
7306
+ wsConfig?: SocketOptions;
7306
7307
  }
7307
7308
  type ApiDefinitionTree<T> = {
7308
7309
  [K in keyof T]: T[K] extends (...args: any[]) => any ? T[K] : T[K] extends object ? ApiDefinitionTree<T[K]> : never;
package/dist/index.js CHANGED
@@ -10473,9 +10473,9 @@ var import_jose = require("jose");
10473
10473
 
10474
10474
  // src/config.ts
10475
10475
  var getConfig = (options) => ({
10476
+ ...options,
10476
10477
  baseUrl: options.baseUrl ?? "https://api.hautech.ai",
10477
- baseWsUrl: options.baseWsUrl ?? options.baseUrl ?? "https://api.hautech.ai",
10478
- authToken: options.authToken
10478
+ baseWsUrl: options.baseWsUrl ?? options.baseUrl ?? "https://api.hautech.ai"
10479
10479
  });
10480
10480
 
10481
10481
  // src/api-utils.ts