@eyepop.ai/eyepop 1.8.1 → 1.8.3

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.
@@ -11165,8 +11165,9 @@ var DataEndpoint = class extends Endpoint {
11165
11165
  this._requestLogger.debug("Response - " + response.status + " " + response.statusText);
11166
11166
  return response.json();
11167
11167
  }
11168
- async listDatasets(include_stats = true) {
11169
- return this.request(`/datasets?account_uuid=${this._accountId}&include_stats=${include_stats}`, {
11168
+ async listDatasets(include_stats = true, modifiable_version_only) {
11169
+ const modifiableVersionQuery = typeof modifiable_version_only !== "undefined" ? `&modifiable_version_only=${modifiable_version_only}` : "";
11170
+ return this.request(`/datasets?account_uuid=${this._accountId}&include_stats=${include_stats}${modifiableVersionQuery}`, {
11170
11171
  method: "GET"
11171
11172
  });
11172
11173
  }
@@ -11266,18 +11267,20 @@ var DataEndpoint = class extends Endpoint {
11266
11267
  }
11267
11268
  });
11268
11269
  }
11269
- async listAssets(dataset_uuid, dataset_version, include_annotations = false) {
11270
+ async listAssets(dataset_uuid, dataset_version, include_annotations = false, top_k) {
11270
11271
  const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
11271
11272
  const annotationsQuery = include_annotations ? "&include_annotations=true" : "";
11272
- return this.request(`/assets?dataset_uuid=${dataset_uuid}${versionQuery}${annotationsQuery}`, {
11273
+ const topKQuery = top_k ? `&top_k=${top_k}` : "";
11274
+ return this.request(`/assets?dataset_uuid=${dataset_uuid}${versionQuery}${annotationsQuery}${topKQuery}`, {
11273
11275
  method: "GET"
11274
11276
  });
11275
11277
  }
11276
- async getAsset(asset_uuid, dataset_uuid, dataset_version, include_annotations = false) {
11278
+ async getAsset(asset_uuid, dataset_uuid, dataset_version, include_annotations = false, top_k) {
11277
11279
  const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
11278
11280
  const annotationsQuery = include_annotations ? "&include_annotations=true" : "";
11279
11281
  const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
11280
- return this.request(`/assets/${asset_uuid}?${datasetQuery}${versionQuery}${annotationsQuery}`, {
11282
+ const topKQuery = top_k ? `&top_k=${top_k}` : "";
11283
+ return this.request(`/assets/${asset_uuid}?${datasetQuery}${versionQuery}${annotationsQuery}${topKQuery}`, {
11281
11284
  method: "GET"
11282
11285
  });
11283
11286
  }
@@ -11619,7 +11622,7 @@ var EyePop;
11619
11622
  }
11620
11623
  }
11621
11624
  })(EyePop || (EyePop = {}));
11622
- var eyepop_default = EyePop;
11625
+ var index_default = EyePop;
11623
11626
  export {
11624
11627
  AbstractJob,
11625
11628
  AnnotationType,
@@ -11652,7 +11655,7 @@ export {
11652
11655
  WebrtcWhep,
11653
11656
  WebrtcWhip,
11654
11657
  WorkerEndpoint,
11655
- eyepop_default as default
11658
+ index_default as default
11656
11659
  };
11657
11660
  /*! Bundled license information:
11658
11661