@visgate_ai/client 0.4.3 → 0.4.5

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.cts CHANGED
@@ -461,6 +461,7 @@ declare class Providers {
461
461
  deleteKey(provider: string): Promise<Record<string, unknown>>;
462
462
  validateKey(provider: string, apiKey: string): Promise<ProviderValidationResult>;
463
463
  balances(): Promise<ProviderBalancesResponse>;
464
+ balance(provider: string): Promise<ProviderBalanceItem>;
464
465
  }
465
466
 
466
467
  /**
package/dist/index.d.ts CHANGED
@@ -461,6 +461,7 @@ declare class Providers {
461
461
  deleteKey(provider: string): Promise<Record<string, unknown>>;
462
462
  validateKey(provider: string, apiKey: string): Promise<ProviderValidationResult>;
463
463
  balances(): Promise<ProviderBalancesResponse>;
464
+ balance(provider: string): Promise<ProviderBalanceItem>;
464
465
  }
465
466
 
466
467
  /**
package/dist/index.js CHANGED
@@ -805,6 +805,13 @@ var Providers = class {
805
805
  const data = await this._client._request("GET", "/providers/balances");
806
806
  return providerBalancesResponseFromResponse(data);
807
807
  }
808
+ async balance(provider) {
809
+ const data = await this._client._request(
810
+ "GET",
811
+ `/providers/balances/${encodeURIComponent(provider)}`
812
+ );
813
+ return providerBalanceItemFromResponse(data);
814
+ }
808
815
  };
809
816
 
810
817
  // src/resources/requests.ts