@eyepop.ai/eyepop 3.6.1 → 3.7.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.
- package/dist/eyepop.index.d.mts +48 -6
- package/dist/eyepop.index.d.ts +48 -6
- package/dist/eyepop.index.js +20 -6
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +19 -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
|
@@ -10768,6 +10768,12 @@ var ModelPrecisionType = /* @__PURE__ */ ((ModelPrecisionType2) => {
|
|
|
10768
10768
|
ModelPrecisionType2["uint8"] = "uint8";
|
|
10769
10769
|
return ModelPrecisionType2;
|
|
10770
10770
|
})(ModelPrecisionType || {});
|
|
10771
|
+
var AssetUrlType = /* @__PURE__ */ ((AssetUrlType3) => {
|
|
10772
|
+
AssetUrlType3["gcs"] = "gcs";
|
|
10773
|
+
AssetUrlType3["s3"] = "s3";
|
|
10774
|
+
AssetUrlType3["https_signed"] = "https_signed";
|
|
10775
|
+
return AssetUrlType3;
|
|
10776
|
+
})(AssetUrlType || {});
|
|
10771
10777
|
|
|
10772
10778
|
// data/data_endpoint.ts
|
|
10773
10779
|
var WS_INITIAL_RECONNECT_DELAY = 1e3;
|
|
@@ -11099,12 +11105,12 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11099
11105
|
method: "POST"
|
|
11100
11106
|
});
|
|
11101
11107
|
}
|
|
11102
|
-
async updateAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version,
|
|
11108
|
+
async updateAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version, predictions) {
|
|
11103
11109
|
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11104
11110
|
const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
|
|
11105
11111
|
return this.request(`/assets/${asset_uuid}/ground_truth?${datasetQuery}${versionQuery}`, {
|
|
11106
11112
|
method: "PATCH",
|
|
11107
|
-
body: JSON.stringify(
|
|
11113
|
+
body: JSON.stringify(predictions)
|
|
11108
11114
|
});
|
|
11109
11115
|
}
|
|
11110
11116
|
async deleteAssetGroundTruth(asset_uuid, dataset_uuid, dataset_version) {
|
|
@@ -11124,12 +11130,18 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11124
11130
|
method: "PATCH"
|
|
11125
11131
|
});
|
|
11126
11132
|
}
|
|
11127
|
-
async downloadAsset(asset_uuid, dataset_uuid, dataset_version, transcode_mode = "original" /* original
|
|
11133
|
+
async downloadAsset(asset_uuid, dataset_uuid, dataset_version, transcode_mode = "original" /* original */, start_timestamp, end_timestamp, url_type) {
|
|
11128
11134
|
const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
|
|
11129
11135
|
const datasetQuery = dataset_uuid ? `&dataset_uuid=${dataset_uuid}` : "";
|
|
11130
|
-
|
|
11131
|
-
|
|
11132
|
-
}
|
|
11136
|
+
const startTimestampQuery = start_timestamp ? `&start_timestamp=${start_timestamp}` : "";
|
|
11137
|
+
const endTimestampQuery = end_timestamp ? `&end_timestamp=${end_timestamp}` : "";
|
|
11138
|
+
const urlTypeQuery = url_type ? `&url_type=${url_type}` : "";
|
|
11139
|
+
return this.request(
|
|
11140
|
+
`/assets/${asset_uuid}/download?transcode_mode=${transcode_mode}${datasetQuery}${versionQuery}${startTimestampQuery}${endTimestampQuery}${urlTypeQuery}`,
|
|
11141
|
+
{
|
|
11142
|
+
method: "GET"
|
|
11143
|
+
}
|
|
11144
|
+
);
|
|
11133
11145
|
}
|
|
11134
11146
|
async previewAutoAnnotateAsset(asset_uuid, auto_annotate, auto_annotate_params) {
|
|
11135
11147
|
return this.request(`/assets/${asset_uuid}/preview_auto_annotate?auto_annotate=${auto_annotate}`, {
|
|
@@ -11521,6 +11533,7 @@ export {
|
|
|
11521
11533
|
AnnotationType,
|
|
11522
11534
|
ArtifactType,
|
|
11523
11535
|
AssetStatus,
|
|
11536
|
+
AssetUrlType,
|
|
11524
11537
|
AutoAnnotateTask,
|
|
11525
11538
|
ChangeType,
|
|
11526
11539
|
ContourType,
|