@eyepop.ai/eyepop 3.14.2 → 3.14.6
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 +23 -7
- package/dist/eyepop.index.d.ts +23 -7
- package/dist/eyepop.index.js +33 -6
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +32 -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
|
@@ -9375,6 +9375,10 @@ var UploadJob = class extends AbstractJob {
|
|
|
9375
9375
|
const blob = new Blob([JSON.stringify(this._params.roi)], { type: "application/json" });
|
|
9376
9376
|
formData.append("roi", blob);
|
|
9377
9377
|
}
|
|
9378
|
+
if (this._params.fps) {
|
|
9379
|
+
const blob = new Blob([JSON.stringify(this._params.fps)], { type: "application/json" });
|
|
9380
|
+
formData.append("fps", blob);
|
|
9381
|
+
}
|
|
9378
9382
|
const fileBlob = await new Response(this._uploadStream).blob();
|
|
9379
9383
|
formData.append("file", fileBlob);
|
|
9380
9384
|
const headers = {
|
|
@@ -9466,6 +9470,10 @@ var UploadJob = class extends AbstractJob {
|
|
|
9466
9470
|
const blob = new Blob([JSON.stringify(this._params.roi)], { type: "application/json" });
|
|
9467
9471
|
formData.append("roi", blob);
|
|
9468
9472
|
}
|
|
9473
|
+
if (this._params.fps) {
|
|
9474
|
+
const blob = new Blob([JSON.stringify(this._params.fps)], { type: "application/json" });
|
|
9475
|
+
formData.append("fps", blob);
|
|
9476
|
+
}
|
|
9469
9477
|
const fileBlob = await new Response(this._uploadStream).blob();
|
|
9470
9478
|
formData.append("file", fileBlob);
|
|
9471
9479
|
const headers = {
|
|
@@ -9521,6 +9529,7 @@ var LoadFromJob = class extends AbstractJob {
|
|
|
9521
9529
|
url: this._location,
|
|
9522
9530
|
params: this._params.componentParams,
|
|
9523
9531
|
roi: this._params.roi,
|
|
9532
|
+
fps: this._params.fps,
|
|
9524
9533
|
version: this._version
|
|
9525
9534
|
};
|
|
9526
9535
|
if (this._params.motionDetect) {
|
|
@@ -9560,6 +9569,7 @@ var LoadFromAssetUuidJob = class extends AbstractJob {
|
|
|
9560
9569
|
assetUuid: this._assetUuid,
|
|
9561
9570
|
params: this._params.componentParams,
|
|
9562
9571
|
roi: this._params.roi,
|
|
9572
|
+
fps: this._params.fps,
|
|
9563
9573
|
version: this._version
|
|
9564
9574
|
};
|
|
9565
9575
|
if (this._params.motionDetect) {
|
|
@@ -9613,6 +9623,7 @@ var LoadMediaStreamJob = class extends AbstractJob {
|
|
|
9613
9623
|
whipIngressId: whip.ingressId(),
|
|
9614
9624
|
params: this._params.componentParams,
|
|
9615
9625
|
roi: this._params.roi,
|
|
9626
|
+
fps: this._params.fps,
|
|
9616
9627
|
version: this._version
|
|
9617
9628
|
};
|
|
9618
9629
|
if (this._params.motionDetect) {
|
|
@@ -10982,6 +10993,10 @@ var EvaluationStatus = /* @__PURE__ */ ((EvaluationStatus2) => {
|
|
|
10982
10993
|
EvaluationStatus2["failed"] = "failed";
|
|
10983
10994
|
return EvaluationStatus2;
|
|
10984
10995
|
})(EvaluationStatus || {});
|
|
10996
|
+
var TaskType = /* @__PURE__ */ ((TaskType2) => {
|
|
10997
|
+
TaskType2["classification"] = "classification";
|
|
10998
|
+
return TaskType2;
|
|
10999
|
+
})(TaskType || {});
|
|
10985
11000
|
var VlmAbilityStatus = /* @__PURE__ */ ((VlmAbilityStatus2) => {
|
|
10986
11001
|
VlmAbilityStatus2["in_progress"] = "in_progress";
|
|
10987
11002
|
VlmAbilityStatus2["draft"] = "draft";
|
|
@@ -11892,12 +11907,22 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11892
11907
|
headers: { "Content-Type": "application/json" }
|
|
11893
11908
|
});
|
|
11894
11909
|
}
|
|
11895
|
-
async refineVlmAbility(vlm_ability_uuid, auto_prompt) {
|
|
11896
|
-
|
|
11897
|
-
|
|
11898
|
-
|
|
11899
|
-
|
|
11900
|
-
|
|
11910
|
+
async refineVlmAbility(vlm_ability_uuid, auto_prompt, auto_task) {
|
|
11911
|
+
if (auto_prompt !== void 0) {
|
|
11912
|
+
return this.request(`/vlm_abilities/${vlm_ability_uuid}/refine`, {
|
|
11913
|
+
method: "POST",
|
|
11914
|
+
body: JSON.stringify(auto_prompt, omit_nulls),
|
|
11915
|
+
headers: { "Content-Type": "application/json" }
|
|
11916
|
+
});
|
|
11917
|
+
} else if (auto_task !== void 0) {
|
|
11918
|
+
return this.request(`/vlm_abilities/${vlm_ability_uuid}/refine_task`, {
|
|
11919
|
+
method: "POST",
|
|
11920
|
+
body: JSON.stringify(auto_task, omit_nulls),
|
|
11921
|
+
headers: { "Content-Type": "application/json" }
|
|
11922
|
+
});
|
|
11923
|
+
} else {
|
|
11924
|
+
return Promise.reject("refine vlm ability requires auto_prompt or auto_config parameter");
|
|
11925
|
+
}
|
|
11901
11926
|
}
|
|
11902
11927
|
async cloneVlmAbility(vlm_ability_uuid, account_uuid, name, default_alias_name) {
|
|
11903
11928
|
const params = new URLSearchParams();
|
|
@@ -12202,6 +12227,7 @@ export {
|
|
|
12202
12227
|
Semaphore,
|
|
12203
12228
|
SessionStatus,
|
|
12204
12229
|
Stream,
|
|
12230
|
+
TaskType,
|
|
12205
12231
|
TranscodeMode,
|
|
12206
12232
|
TransientPopId,
|
|
12207
12233
|
UploadJob,
|