@eyepop.ai/eyepop 3.12.1 → 3.12.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.
- package/dist/eyepop.index.d.mts +15 -2
- package/dist/eyepop.index.d.ts +15 -2
- package/dist/eyepop.index.js +31 -6
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +29 -6
- package/dist/eyepop.index.mjs.map +1 -1
- package/dist/eyepop.min.js +1 -1
- package/package.json +1 -1
package/dist/eyepop.index.mjs
CHANGED
|
@@ -10597,7 +10597,7 @@ var _WorkerEndpoint = class _WorkerEndpoint extends Endpoint {
|
|
|
10597
10597
|
}
|
|
10598
10598
|
if (!session) {
|
|
10599
10599
|
this._requestLogger.debug("creating a new session at: %s", sessionsUrl);
|
|
10600
|
-
response = await this._client.fetch(sessionsUrl
|
|
10600
|
+
response = await this._client.fetch(`${sessionsUrl}?wait=true`, {
|
|
10601
10601
|
headers,
|
|
10602
10602
|
method: "POST"
|
|
10603
10603
|
});
|
|
@@ -10803,6 +10803,20 @@ var UserReview = /* @__PURE__ */ ((UserReview2) => {
|
|
|
10803
10803
|
UserReview2["unknown"] = "unknown";
|
|
10804
10804
|
return UserReview2;
|
|
10805
10805
|
})(UserReview || {});
|
|
10806
|
+
var AssetInclusionMode = /* @__PURE__ */ ((AssetInclusionMode3) => {
|
|
10807
|
+
AssetInclusionMode3["all_assets"] = "all_assets";
|
|
10808
|
+
AssetInclusionMode3["annotated_only"] = "annotated_only";
|
|
10809
|
+
AssetInclusionMode3["manual_annotated_only"] = "manual_annotated_only";
|
|
10810
|
+
AssetInclusionMode3["auto_annotated_only"] = "auto_annotated_only";
|
|
10811
|
+
return AssetInclusionMode3;
|
|
10812
|
+
})(AssetInclusionMode || {});
|
|
10813
|
+
var AnnotationInclusionMode = /* @__PURE__ */ ((AnnotationInclusionMode3) => {
|
|
10814
|
+
AnnotationInclusionMode3["all"] = "all";
|
|
10815
|
+
AnnotationInclusionMode3["user_reviewed"] = "user_reviewed";
|
|
10816
|
+
AnnotationInclusionMode3["user_approved"] = "user_approved";
|
|
10817
|
+
AnnotationInclusionMode3["ground_truth"] = "ground_truth";
|
|
10818
|
+
return AnnotationInclusionMode3;
|
|
10819
|
+
})(AnnotationInclusionMode || {});
|
|
10806
10820
|
var AutoAnnotateTask = /* @__PURE__ */ ((AutoAnnotateTask2) => {
|
|
10807
10821
|
AutoAnnotateTask2["object_detection"] = "object_detection";
|
|
10808
10822
|
AutoAnnotateTask2["image_classification"] = "image_classification";
|
|
@@ -11415,11 +11429,18 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11415
11429
|
}
|
|
11416
11430
|
});
|
|
11417
11431
|
}
|
|
11418
|
-
async listAssets(dataset_uuid, dataset_version, include_annotations = false, top_k) {
|
|
11419
|
-
const
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
|
|
11432
|
+
async listAssets(dataset_uuid, dataset_version, include_annotations = false, top_k, inclusion_mode, annotation_inclusion_mode, include_partitions, include_auto_annotates, include_sources) {
|
|
11433
|
+
const params = new URLSearchParams();
|
|
11434
|
+
params.set("dataset_uuid", dataset_uuid);
|
|
11435
|
+
if (dataset_version != null) params.set("dataset_version", String(dataset_version));
|
|
11436
|
+
if (include_annotations) params.set("include_annotations", "true");
|
|
11437
|
+
if (inclusion_mode != null) params.set("inclusion_mode", inclusion_mode);
|
|
11438
|
+
if (annotation_inclusion_mode != null) params.set("annotation_inclusion_mode", annotation_inclusion_mode);
|
|
11439
|
+
for (const p of include_partitions ?? []) params.append("include_partition", p);
|
|
11440
|
+
for (const a of include_auto_annotates ?? []) params.append("include_auto_annotate", a);
|
|
11441
|
+
for (const s of include_sources ?? []) params.append("include_source", s);
|
|
11442
|
+
if (top_k != null) params.set("top_k", String(top_k));
|
|
11443
|
+
return this.request(`/assets?${params.toString()}`, {
|
|
11423
11444
|
method: "GET"
|
|
11424
11445
|
});
|
|
11425
11446
|
}
|
|
@@ -12067,9 +12088,11 @@ var EyePop;
|
|
|
12067
12088
|
var index_default = EyePop;
|
|
12068
12089
|
export {
|
|
12069
12090
|
AbstractJob,
|
|
12091
|
+
AnnotationInclusionMode,
|
|
12070
12092
|
AnnotationType,
|
|
12071
12093
|
AreaType,
|
|
12072
12094
|
ArtifactType,
|
|
12095
|
+
AssetInclusionMode,
|
|
12073
12096
|
AssetStatus,
|
|
12074
12097
|
AssetUrlType,
|
|
12075
12098
|
AutoAnnotateStatus,
|