@gpt-platform/admin 0.1.5 → 0.2.1

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.mjs CHANGED
@@ -813,13 +813,8 @@ var createClient = (config = {}) => {
813
813
  };
814
814
  };
815
815
 
816
- // src/_internal/client.gen.ts
817
- var client = createClient(
818
- createConfig({ baseUrl: "http://localhost:33333" })
819
- );
820
-
821
816
  // src/version.ts
822
- var SDK_VERSION = "0.1.4";
817
+ var SDK_VERSION = "0.2.0";
823
818
  var DEFAULT_API_VERSION = "2026-02-25";
824
819
 
825
820
  // src/base-client.ts
@@ -836,8 +831,6 @@ function isSecureUrl(url) {
836
831
  }
837
832
  var BaseClient = class {
838
833
  constructor(config = {}) {
839
- /** The underlying HTTP client instance, exposed for namespace factories */
840
- this.clientInstance = client;
841
834
  this.config = config;
842
835
  this.apiVersion = config.apiVersion ?? DEFAULT_API_VERSION;
843
836
  if (config.baseUrl && !isSecureUrl(config.baseUrl)) {
@@ -845,10 +838,10 @@ var BaseClient = class {
845
838
  "[GPT Core SDK] Warning: Using non-HTTPS URL. Credentials may be transmitted insecurely. Use HTTPS in production environments."
846
839
  );
847
840
  }
848
- if (config.baseUrl) {
849
- client.setConfig({ baseUrl: config.baseUrl });
850
- }
851
- client.interceptors.request.use((req) => {
841
+ const clientConfig = {};
842
+ if (config.baseUrl) clientConfig["baseUrl"] = config.baseUrl;
843
+ this.clientInstance = createClient(createConfig(clientConfig));
844
+ this.clientInstance.interceptors.request.use((req) => {
852
845
  const requestUrl = req.url || config.baseUrl || "";
853
846
  if ((config.apiKey || config.token) && !isSecureUrl(requestUrl)) {
854
847
  console.warn(
@@ -1330,6 +1323,11 @@ var RequestBuilder = class {
1330
1323
  }
1331
1324
  };
1332
1325
 
1326
+ // src/_internal/client.gen.ts
1327
+ var client = createClient(
1328
+ createConfig({ baseUrl: "http://localhost:33333" })
1329
+ );
1330
+
1333
1331
  // src/_internal/sdk.gen.ts
1334
1332
  var patchAdminAccountsByIdCredit = (options) => (options.client ?? client).patch({
1335
1333
  security: [{ scheme: "bearer", type: "http" }],