@eyepop.ai/eyepop 0.18.5 → 0.18.6

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.
@@ -9796,6 +9796,14 @@ var Endpoint = class {
9796
9796
  this._stateChangeHandler = null;
9797
9797
  this._ingressEventHandler = null;
9798
9798
  this._ingressEventWs = null;
9799
+ this._sandboxId = null;
9800
+ const sessionAuth = options.auth;
9801
+ if (sessionAuth.session !== void 0) {
9802
+ const sessionPlus = sessionAuth.session;
9803
+ if (sessionPlus.sandboxId) {
9804
+ this._sandboxId = sessionPlus.sandboxId;
9805
+ }
9806
+ }
9799
9807
  this._limit = new Semaphore(this._options.jobQueueLength ?? 1024);
9800
9808
  let rootLogger;
9801
9809
  if (options.logger) {
@@ -9937,6 +9945,7 @@ var Endpoint = class {
9937
9945
  }
9938
9946
  this._baseUrl = null;
9939
9947
  this._pipelineId = null;
9948
+ this._sandboxId = null;
9940
9949
  }
9941
9950
  async session() {
9942
9951
  await this.currentAccessToken();
@@ -9955,7 +9964,8 @@ var Endpoint = class {
9955
9964
  accessToken: this._token,
9956
9965
  validUntil: this._expire_token_time * 1e3,
9957
9966
  baseUrl: this._baseUrl,
9958
- pipelineId: this._pipelineId
9967
+ pipelineId: this._pipelineId,
9968
+ sandboxId: this._sandboxId ?? void 0
9959
9969
  };
9960
9970
  }
9961
9971
  async liveIngress(stream) {
@@ -10340,7 +10350,12 @@ var Endpoint = class {
10340
10350
  "logging": ["out_meta"],
10341
10351
  "videoOutput": "no_output"
10342
10352
  };
10343
- const post_url = `${this._baseUrl.replace(/\/+$/, "")}/pipelines`;
10353
+ let post_url;
10354
+ if (this._sandboxId) {
10355
+ post_url = `${this._baseUrl.replace(/\/+$/, "")}/pipelines?sandboxId=${this._sandboxId}`;
10356
+ } else {
10357
+ post_url = `${this._baseUrl.replace(/\/+$/, "")}/pipelines`;
10358
+ }
10344
10359
  let headers = {
10345
10360
  "Content-Type": "application/json",
10346
10361
  "Authorization": await this.authorizationHeader()