@eyepop.ai/eyepop 1.8.1 → 1.8.2

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.
@@ -11266,18 +11266,20 @@ var DataEndpoint = class extends Endpoint {
11266
11266
  }
11267
11267
  });
11268
11268
  }
11269
- async listAssets(dataset_uuid, dataset_version, include_annotations = false) {
11269
+ async listAssets(dataset_uuid, dataset_version, include_annotations = false, top_k) {
11270
11270
  const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
11271
11271
  const annotationsQuery = include_annotations ? "&include_annotations=true" : "";
11272
- return this.request(`/assets?dataset_uuid=${dataset_uuid}${versionQuery}${annotationsQuery}`, {
11272
+ const topKQuery = top_k ? `&top_k=${top_k}` : "";
11273
+ return this.request(`/assets?dataset_uuid=${dataset_uuid}${versionQuery}${annotationsQuery}${topKQuery}`, {
11273
11274
  method: "GET"
11274
11275
  });
11275
11276
  }
11276
- async getAsset(asset_uuid, dataset_uuid, dataset_version, include_annotations = false) {
11277
+ async getAsset(asset_uuid, dataset_uuid, dataset_version, include_annotations = false, top_k) {
11277
11278
  const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
11278
11279
  const annotationsQuery = include_annotations ? "&include_annotations=true" : "";
11279
11280
  const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
11280
- return this.request(`/assets/${asset_uuid}?${datasetQuery}${versionQuery}${annotationsQuery}`, {
11281
+ const topKQuery = top_k ? `&top_k=${top_k}` : "";
11282
+ return this.request(`/assets/${asset_uuid}?${datasetQuery}${versionQuery}${annotationsQuery}${topKQuery}`, {
11281
11283
  method: "GET"
11282
11284
  });
11283
11285
  }