@bettercms-ai/sdk 1.7.0 → 1.8.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.cjs CHANGED
@@ -781,15 +781,18 @@ var RETRY_DELAYS2 = [1e3, 2e3, 4e3];
781
781
  var BetterCMSManagementClient = class extends BetterCMSDeliveryClient {
782
782
  timeout;
783
783
  _apiKey;
784
+ _project;
784
785
  constructor(options) {
785
786
  super({ workspace: "", baseUrl: options.baseUrl ?? DEFAULT_BASE_URL2 });
786
787
  this._apiKey = options.apiKey;
788
+ this._project = options.project;
787
789
  this.timeout = options.timeout ?? DEFAULT_TIMEOUT2;
788
790
  }
789
791
  headers() {
790
792
  return {
791
793
  "Content-Type": "application/json",
792
- "X-API-Key": this._apiKey
794
+ "X-API-Key": this._apiKey,
795
+ ...this._project ? { "X-BCMS-Project": this._project } : {}
793
796
  };
794
797
  }
795
798
  /** Management API URL: baseUrl + path (path is workspace-scoped via the key). */