@eyepop.ai/eyepop 3.12.3 → 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 +24 -4
- package/dist/eyepop.index.d.ts +24 -4
- package/dist/eyepop.index.js +33 -2
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +33 -2
- 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
|
@@ -10947,6 +10947,7 @@ var EvaluationStatus = /* @__PURE__ */ ((EvaluationStatus2) => {
|
|
|
10947
10947
|
return EvaluationStatus2;
|
|
10948
10948
|
})(EvaluationStatus || {});
|
|
10949
10949
|
var VlmAbilityStatus = /* @__PURE__ */ ((VlmAbilityStatus2) => {
|
|
10950
|
+
VlmAbilityStatus2["in_progress"] = "in_progress";
|
|
10950
10951
|
VlmAbilityStatus2["draft"] = "draft";
|
|
10951
10952
|
VlmAbilityStatus2["published"] = "published";
|
|
10952
10953
|
return VlmAbilityStatus2;
|
|
@@ -11100,6 +11101,12 @@ var EvaluateDatasetJob = class {
|
|
|
11100
11101
|
// data/data_endpoint.ts
|
|
11101
11102
|
var WS_INITIAL_RECONNECT_DELAY = 1e3;
|
|
11102
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
|
+
}
|
|
11103
11110
|
var DataEndpoint = class extends Endpoint {
|
|
11104
11111
|
constructor(options) {
|
|
11105
11112
|
super(options);
|
|
@@ -11798,7 +11805,7 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11798
11805
|
async createVlmAbilityGroup(create) {
|
|
11799
11806
|
return this.request(`/vlm_ability_groups?account_uuid=${this._accountId}`, {
|
|
11800
11807
|
method: "POST",
|
|
11801
|
-
body: JSON.stringify(create),
|
|
11808
|
+
body: JSON.stringify(create, omit_nulls),
|
|
11802
11809
|
headers: { "Content-Type": "application/json" }
|
|
11803
11810
|
});
|
|
11804
11811
|
}
|
|
@@ -11828,7 +11835,7 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11828
11835
|
const groupQuery = vlm_ability_group_uuid ? `&vlm_ability_group_uuid=${vlm_ability_group_uuid}` : "";
|
|
11829
11836
|
return this.request(`/vlm_abilities?account_uuid=${this._accountId}${groupQuery}`, {
|
|
11830
11837
|
method: "POST",
|
|
11831
|
-
body: JSON.stringify(create),
|
|
11838
|
+
body: JSON.stringify(create, omit_nulls),
|
|
11832
11839
|
headers: { "Content-Type": "application/json" }
|
|
11833
11840
|
});
|
|
11834
11841
|
}
|
|
@@ -11849,6 +11856,30 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11849
11856
|
headers: { "Content-Type": "application/json" }
|
|
11850
11857
|
});
|
|
11851
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
|
+
}
|
|
11852
11883
|
async publishVlmAbility(vlm_ability_uuid, alias_name, tag_name) {
|
|
11853
11884
|
const alias_name_query = alias_name ? `alias_name=${encodeURIComponent(alias_name)}&` : "";
|
|
11854
11885
|
const tag_name_query = tag_name ? `tag_name=${encodeURIComponent(tag_name)}&` : "";
|