@eyepop.ai/eyepop 3.12.2 → 3.14.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/eyepop.index.d.mts +38 -5
- package/dist/eyepop.index.d.ts +38 -5
- package/dist/eyepop.index.js +63 -7
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +61 -7
- 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
|
@@ -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";
|
|
@@ -10933,6 +10947,7 @@ var EvaluationStatus = /* @__PURE__ */ ((EvaluationStatus2) => {
|
|
|
10933
10947
|
return EvaluationStatus2;
|
|
10934
10948
|
})(EvaluationStatus || {});
|
|
10935
10949
|
var VlmAbilityStatus = /* @__PURE__ */ ((VlmAbilityStatus2) => {
|
|
10950
|
+
VlmAbilityStatus2["in_progress"] = "in_progress";
|
|
10936
10951
|
VlmAbilityStatus2["draft"] = "draft";
|
|
10937
10952
|
VlmAbilityStatus2["published"] = "published";
|
|
10938
10953
|
return VlmAbilityStatus2;
|
|
@@ -11086,6 +11101,12 @@ var EvaluateDatasetJob = class {
|
|
|
11086
11101
|
// data/data_endpoint.ts
|
|
11087
11102
|
var WS_INITIAL_RECONNECT_DELAY = 1e3;
|
|
11088
11103
|
var WS_MAX_RECONNECT_DELAY = 6e4;
|
|
11104
|
+
function omit_nulls(_, value) {
|
|
11105
|
+
if (value === null) {
|
|
11106
|
+
return void 0;
|
|
11107
|
+
}
|
|
11108
|
+
return value;
|
|
11109
|
+
}
|
|
11089
11110
|
var DataEndpoint = class extends Endpoint {
|
|
11090
11111
|
constructor(options) {
|
|
11091
11112
|
super(options);
|
|
@@ -11415,11 +11436,18 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11415
11436
|
}
|
|
11416
11437
|
});
|
|
11417
11438
|
}
|
|
11418
|
-
async listAssets(dataset_uuid, dataset_version, include_annotations = false, top_k) {
|
|
11419
|
-
const
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
|
|
11439
|
+
async listAssets(dataset_uuid, dataset_version, include_annotations = false, top_k, inclusion_mode, annotation_inclusion_mode, include_partitions, include_auto_annotates, include_sources) {
|
|
11440
|
+
const params = new URLSearchParams();
|
|
11441
|
+
params.set("dataset_uuid", dataset_uuid);
|
|
11442
|
+
if (dataset_version != null) params.set("dataset_version", String(dataset_version));
|
|
11443
|
+
if (include_annotations) params.set("include_annotations", "true");
|
|
11444
|
+
if (inclusion_mode != null) params.set("inclusion_mode", inclusion_mode);
|
|
11445
|
+
if (annotation_inclusion_mode != null) params.set("annotation_inclusion_mode", annotation_inclusion_mode);
|
|
11446
|
+
for (const p of include_partitions ?? []) params.append("include_partition", p);
|
|
11447
|
+
for (const a of include_auto_annotates ?? []) params.append("include_auto_annotate", a);
|
|
11448
|
+
for (const s of include_sources ?? []) params.append("include_source", s);
|
|
11449
|
+
if (top_k != null) params.set("top_k", String(top_k));
|
|
11450
|
+
return this.request(`/assets?${params.toString()}`, {
|
|
11423
11451
|
method: "GET"
|
|
11424
11452
|
});
|
|
11425
11453
|
}
|
|
@@ -11777,7 +11805,7 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11777
11805
|
async createVlmAbilityGroup(create) {
|
|
11778
11806
|
return this.request(`/vlm_ability_groups?account_uuid=${this._accountId}`, {
|
|
11779
11807
|
method: "POST",
|
|
11780
|
-
body: JSON.stringify(create),
|
|
11808
|
+
body: JSON.stringify(create, omit_nulls),
|
|
11781
11809
|
headers: { "Content-Type": "application/json" }
|
|
11782
11810
|
});
|
|
11783
11811
|
}
|
|
@@ -11807,7 +11835,7 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11807
11835
|
const groupQuery = vlm_ability_group_uuid ? `&vlm_ability_group_uuid=${vlm_ability_group_uuid}` : "";
|
|
11808
11836
|
return this.request(`/vlm_abilities?account_uuid=${this._accountId}${groupQuery}`, {
|
|
11809
11837
|
method: "POST",
|
|
11810
|
-
body: JSON.stringify(create),
|
|
11838
|
+
body: JSON.stringify(create, omit_nulls),
|
|
11811
11839
|
headers: { "Content-Type": "application/json" }
|
|
11812
11840
|
});
|
|
11813
11841
|
}
|
|
@@ -11828,6 +11856,30 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11828
11856
|
headers: { "Content-Type": "application/json" }
|
|
11829
11857
|
});
|
|
11830
11858
|
}
|
|
11859
|
+
async refineVlmAbility(vlm_ability_uuid, auto_prompt) {
|
|
11860
|
+
return this.request(`/vlm_abilities/${vlm_ability_uuid}/refine`, {
|
|
11861
|
+
method: "POST",
|
|
11862
|
+
body: JSON.stringify(auto_prompt, omit_nulls),
|
|
11863
|
+
headers: { "Content-Type": "application/json" }
|
|
11864
|
+
});
|
|
11865
|
+
}
|
|
11866
|
+
async cloneVlmAbility(vlm_ability_uuid, account_uuid, name, default_alias_name) {
|
|
11867
|
+
const params = new URLSearchParams();
|
|
11868
|
+
if (account_uuid) {
|
|
11869
|
+
params.set("account_uuid", account_uuid);
|
|
11870
|
+
} else if (this._accountId) {
|
|
11871
|
+
params.set("account_uuid", this._accountId);
|
|
11872
|
+
}
|
|
11873
|
+
if (name) {
|
|
11874
|
+
params.set("name", name);
|
|
11875
|
+
}
|
|
11876
|
+
if (default_alias_name) {
|
|
11877
|
+
params.set("default_alias_name", default_alias_name);
|
|
11878
|
+
}
|
|
11879
|
+
return this.request(`/vlm_abilities/${vlm_ability_uuid}/clone?${params.toString()}`, {
|
|
11880
|
+
method: "POST"
|
|
11881
|
+
});
|
|
11882
|
+
}
|
|
11831
11883
|
async publishVlmAbility(vlm_ability_uuid, alias_name, tag_name) {
|
|
11832
11884
|
const alias_name_query = alias_name ? `alias_name=${encodeURIComponent(alias_name)}&` : "";
|
|
11833
11885
|
const tag_name_query = tag_name ? `tag_name=${encodeURIComponent(tag_name)}&` : "";
|
|
@@ -12067,9 +12119,11 @@ var EyePop;
|
|
|
12067
12119
|
var index_default = EyePop;
|
|
12068
12120
|
export {
|
|
12069
12121
|
AbstractJob,
|
|
12122
|
+
AnnotationInclusionMode,
|
|
12070
12123
|
AnnotationType,
|
|
12071
12124
|
AreaType,
|
|
12072
12125
|
ArtifactType,
|
|
12126
|
+
AssetInclusionMode,
|
|
12073
12127
|
AssetStatus,
|
|
12074
12128
|
AssetUrlType,
|
|
12075
12129
|
AutoAnnotateStatus,
|