@eyepop.ai/eyepop 1.10.0 → 1.11.1
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/README.md +0 -1
- package/dist/eyepop.index.d.mts +25 -4
- package/dist/eyepop.index.d.ts +25 -4
- package/dist/eyepop.index.js +34 -47
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +32 -47
- package/dist/eyepop.index.mjs.map +1 -1
- package/dist/eyepop.min.js +1 -1
- package/dist/eyepop.min.js.LICENSE.txt +0 -9
- package/package.json +5 -7
package/README.md
CHANGED
|
@@ -86,7 +86,6 @@ server.listen(8080, '127.0.0.1')
|
|
|
86
86
|
|
|
87
87
|
```javascript
|
|
88
88
|
import { EyePop } from '@eyepop.ai/eyepop'
|
|
89
|
-
|
|
90
89
|
;(async () => {
|
|
91
90
|
const session = await (await fetch('http://127.0.0.1:8080')).json()
|
|
92
91
|
const endpoint = await EyePop.workerEndpoint({ auth: { session: session } }).connect()
|
package/dist/eyepop.index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Logger } from 'pino';
|
|
2
|
-
import { Prediction as Prediction$1 } from '@eyepop.ai/eyepop';
|
|
3
2
|
|
|
4
3
|
interface Session {
|
|
5
4
|
readonly eyepopUrl: string;
|
|
@@ -559,9 +558,21 @@ declare enum UserReview {
|
|
|
559
558
|
rejected = "rejected",
|
|
560
559
|
unknown = "unknown"
|
|
561
560
|
}
|
|
561
|
+
interface AutoAnnotatePrompt {
|
|
562
|
+
prompt: string;
|
|
563
|
+
label: string;
|
|
564
|
+
}
|
|
565
|
+
declare enum AutoAnnotateTask {
|
|
566
|
+
object_detection = "object_detection",
|
|
567
|
+
image_classification = "image_classification"
|
|
568
|
+
}
|
|
562
569
|
interface AutoAnnotateParams {
|
|
570
|
+
/**
|
|
571
|
+
* @deprecated use prompts instead
|
|
572
|
+
*/
|
|
563
573
|
candidate_labels?: string[];
|
|
564
|
-
|
|
574
|
+
prompts?: AutoAnnotatePrompt[];
|
|
575
|
+
task?: AutoAnnotateTask;
|
|
565
576
|
confidence_threshold?: number;
|
|
566
577
|
}
|
|
567
578
|
interface Annotation {
|
|
@@ -600,6 +611,10 @@ interface Asset {
|
|
|
600
611
|
declare enum ModelType {
|
|
601
612
|
epdet_b1 = "epdet_b1"
|
|
602
613
|
}
|
|
614
|
+
declare enum ModelTask {
|
|
615
|
+
object_detection = "object_detection",
|
|
616
|
+
image_classification = "image_classification"
|
|
617
|
+
}
|
|
603
618
|
declare enum ModelStatus {
|
|
604
619
|
error = "error",
|
|
605
620
|
draft = "draft",
|
|
@@ -641,6 +656,8 @@ interface Model {
|
|
|
641
656
|
external_id?: string;
|
|
642
657
|
pretrained_model_uuid?: string;
|
|
643
658
|
extra_params?: Map<string, any>;
|
|
659
|
+
task?: ModelTask;
|
|
660
|
+
classes?: string[];
|
|
644
661
|
type: ModelType;
|
|
645
662
|
status: ModelStatus;
|
|
646
663
|
status_message?: string;
|
|
@@ -658,11 +675,15 @@ interface ModelCreate {
|
|
|
658
675
|
external_id?: string;
|
|
659
676
|
pretrained_model_uuid?: string;
|
|
660
677
|
extra_params?: Map<string, any>;
|
|
678
|
+
task?: ModelTask;
|
|
679
|
+
classes?: string[];
|
|
661
680
|
}
|
|
662
681
|
interface ModelUpdate {
|
|
663
682
|
name: string;
|
|
664
683
|
description: string;
|
|
665
684
|
external_id?: string;
|
|
685
|
+
task?: ModelTask;
|
|
686
|
+
classes?: string[];
|
|
666
687
|
}
|
|
667
688
|
declare enum ModelTrainingStage {
|
|
668
689
|
waiting = "waiting",
|
|
@@ -742,7 +763,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
742
763
|
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
|
|
743
764
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
744
765
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
745
|
-
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction
|
|
766
|
+
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction): Promise<void>;
|
|
746
767
|
deleteAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
747
768
|
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview, approved_threshold?: number): Promise<void>;
|
|
748
769
|
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
|
@@ -894,4 +915,4 @@ declare namespace EyePop {
|
|
|
894
915
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
895
916
|
}
|
|
896
917
|
|
|
897
|
-
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type LocalAuth, type Mask, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type PredictedText, type Prediction, type QcAiHubExportParams, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
|
918
|
+
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type LocalAuth, type Mask, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, ModelTask, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type PredictedText, type Prediction, type QcAiHubExportParams, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
package/dist/eyepop.index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Logger } from 'pino';
|
|
2
|
-
import { Prediction as Prediction$1 } from '@eyepop.ai/eyepop';
|
|
3
2
|
|
|
4
3
|
interface Session {
|
|
5
4
|
readonly eyepopUrl: string;
|
|
@@ -559,9 +558,21 @@ declare enum UserReview {
|
|
|
559
558
|
rejected = "rejected",
|
|
560
559
|
unknown = "unknown"
|
|
561
560
|
}
|
|
561
|
+
interface AutoAnnotatePrompt {
|
|
562
|
+
prompt: string;
|
|
563
|
+
label: string;
|
|
564
|
+
}
|
|
565
|
+
declare enum AutoAnnotateTask {
|
|
566
|
+
object_detection = "object_detection",
|
|
567
|
+
image_classification = "image_classification"
|
|
568
|
+
}
|
|
562
569
|
interface AutoAnnotateParams {
|
|
570
|
+
/**
|
|
571
|
+
* @deprecated use prompts instead
|
|
572
|
+
*/
|
|
563
573
|
candidate_labels?: string[];
|
|
564
|
-
|
|
574
|
+
prompts?: AutoAnnotatePrompt[];
|
|
575
|
+
task?: AutoAnnotateTask;
|
|
565
576
|
confidence_threshold?: number;
|
|
566
577
|
}
|
|
567
578
|
interface Annotation {
|
|
@@ -600,6 +611,10 @@ interface Asset {
|
|
|
600
611
|
declare enum ModelType {
|
|
601
612
|
epdet_b1 = "epdet_b1"
|
|
602
613
|
}
|
|
614
|
+
declare enum ModelTask {
|
|
615
|
+
object_detection = "object_detection",
|
|
616
|
+
image_classification = "image_classification"
|
|
617
|
+
}
|
|
603
618
|
declare enum ModelStatus {
|
|
604
619
|
error = "error",
|
|
605
620
|
draft = "draft",
|
|
@@ -641,6 +656,8 @@ interface Model {
|
|
|
641
656
|
external_id?: string;
|
|
642
657
|
pretrained_model_uuid?: string;
|
|
643
658
|
extra_params?: Map<string, any>;
|
|
659
|
+
task?: ModelTask;
|
|
660
|
+
classes?: string[];
|
|
644
661
|
type: ModelType;
|
|
645
662
|
status: ModelStatus;
|
|
646
663
|
status_message?: string;
|
|
@@ -658,11 +675,15 @@ interface ModelCreate {
|
|
|
658
675
|
external_id?: string;
|
|
659
676
|
pretrained_model_uuid?: string;
|
|
660
677
|
extra_params?: Map<string, any>;
|
|
678
|
+
task?: ModelTask;
|
|
679
|
+
classes?: string[];
|
|
661
680
|
}
|
|
662
681
|
interface ModelUpdate {
|
|
663
682
|
name: string;
|
|
664
683
|
description: string;
|
|
665
684
|
external_id?: string;
|
|
685
|
+
task?: ModelTask;
|
|
686
|
+
classes?: string[];
|
|
666
687
|
}
|
|
667
688
|
declare enum ModelTrainingStage {
|
|
668
689
|
waiting = "waiting",
|
|
@@ -742,7 +763,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
742
763
|
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
|
|
743
764
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
744
765
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
745
|
-
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction
|
|
766
|
+
updateAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, prediction?: Prediction): Promise<void>;
|
|
746
767
|
deleteAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
747
768
|
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview, approved_threshold?: number): Promise<void>;
|
|
748
769
|
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
|
@@ -894,4 +915,4 @@ declare namespace EyePop {
|
|
|
894
915
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
895
916
|
}
|
|
896
917
|
|
|
897
|
-
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type LocalAuth, type Mask, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type PredictedText, type Prediction, type QcAiHubExportParams, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
|
918
|
+
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type Contour, type ContourFinderComponent, ContourType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, type FileSource, type ForwardComponent, ForwardOperatorType, type InferenceComponent, InferenceType, type IngressEvent, type LiveMedia, type LiveSource, LoadFromJob, LoadLiveIngressJob, type LocalAuth, type Mask, type Model, type ModelCreate, type ModelExport, ModelExportStatus, ModelFormat, type ModelInstanceDef, type ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, ModelTask, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, type OAuth2Auth, type OnChangeEvent, type Options, type PathSource, type Point2d, type Point3d, type Pop, type PopComponent, PopComponentType, type PopCrop, type PopForward, type PopForwardOperator, type PredictedClass, type PredictedKeyPoint, type PredictedKeyPoints, type PredictedMesh, type PredictedObject, type PredictedText, type Prediction, type QcAiHubExportParams, type ResultStream, type Roi, type SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourceParams, type SourcesEntry, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
package/dist/eyepop.index.js
CHANGED
|
@@ -8660,6 +8660,7 @@ __export(index_exports, {
|
|
|
8660
8660
|
AnnotationType: () => AnnotationType,
|
|
8661
8661
|
ArtifactType: () => ArtifactType,
|
|
8662
8662
|
AssetStatus: () => AssetStatus,
|
|
8663
|
+
AutoAnnotateTask: () => AutoAnnotateTask,
|
|
8663
8664
|
ChangeType: () => ChangeType,
|
|
8664
8665
|
ContourType: () => ContourType,
|
|
8665
8666
|
DataEndpoint: () => DataEndpoint,
|
|
@@ -8675,6 +8676,7 @@ __export(index_exports, {
|
|
|
8675
8676
|
ModelFormat: () => ModelFormat,
|
|
8676
8677
|
ModelPrecisionType: () => ModelPrecisionType,
|
|
8677
8678
|
ModelStatus: () => ModelStatus,
|
|
8679
|
+
ModelTask: () => ModelTask,
|
|
8678
8680
|
ModelTrainingStage: () => ModelTrainingStage,
|
|
8679
8681
|
ModelType: () => ModelType,
|
|
8680
8682
|
PopComponentType: () => PopComponentType,
|
|
@@ -9227,52 +9229,8 @@ var LoadLiveIngressJob = class extends AbstractJob {
|
|
|
9227
9229
|
}
|
|
9228
9230
|
};
|
|
9229
9231
|
|
|
9230
|
-
//
|
|
9231
|
-
var
|
|
9232
|
-
var rnds8Pool = new Uint8Array(256);
|
|
9233
|
-
var poolPtr = rnds8Pool.length;
|
|
9234
|
-
function rng() {
|
|
9235
|
-
if (poolPtr > rnds8Pool.length - 16) {
|
|
9236
|
-
import_crypto.default.randomFillSync(rnds8Pool);
|
|
9237
|
-
poolPtr = 0;
|
|
9238
|
-
}
|
|
9239
|
-
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
9240
|
-
}
|
|
9241
|
-
|
|
9242
|
-
// ../../node_modules/uuid/dist/esm-node/stringify.js
|
|
9243
|
-
var byteToHex = [];
|
|
9244
|
-
for (let i = 0; i < 256; ++i) {
|
|
9245
|
-
byteToHex.push((i + 256).toString(16).slice(1));
|
|
9246
|
-
}
|
|
9247
|
-
function unsafeStringify(arr, offset = 0) {
|
|
9248
|
-
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
9249
|
-
}
|
|
9250
|
-
|
|
9251
|
-
// ../../node_modules/uuid/dist/esm-node/native.js
|
|
9252
|
-
var import_crypto2 = __toESM(require("crypto"));
|
|
9253
|
-
var native_default = {
|
|
9254
|
-
randomUUID: import_crypto2.default.randomUUID
|
|
9255
|
-
};
|
|
9256
|
-
|
|
9257
|
-
// ../../node_modules/uuid/dist/esm-node/v4.js
|
|
9258
|
-
function v4(options, buf, offset) {
|
|
9259
|
-
if (native_default.randomUUID && !buf && !options) {
|
|
9260
|
-
return native_default.randomUUID();
|
|
9261
|
-
}
|
|
9262
|
-
options = options || {};
|
|
9263
|
-
const rnds = options.random || (options.rng || rng)();
|
|
9264
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
9265
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
9266
|
-
if (buf) {
|
|
9267
|
-
offset = offset || 0;
|
|
9268
|
-
for (let i = 0; i < 16; ++i) {
|
|
9269
|
-
buf[offset + i] = rnds[i];
|
|
9270
|
-
}
|
|
9271
|
-
return buf;
|
|
9272
|
-
}
|
|
9273
|
-
return unsafeStringify(rnds);
|
|
9274
|
-
}
|
|
9275
|
-
var v4_default = v4;
|
|
9232
|
+
// worker/webrtc_whip.ts
|
|
9233
|
+
var import_uuid = require("uuid");
|
|
9276
9234
|
|
|
9277
9235
|
// worker/webrtc_base.ts
|
|
9278
9236
|
var import_path = __toESM(require("path"));
|
|
@@ -9520,7 +9478,7 @@ var WebrtcBase = class _WebrtcBase {
|
|
|
9520
9478
|
// worker/webrtc_whip.ts
|
|
9521
9479
|
var WebrtcWhip = class extends WebrtcBase {
|
|
9522
9480
|
constructor(stream, getSession, client, requestLogger) {
|
|
9523
|
-
super(getSession, client,
|
|
9481
|
+
super(getSession, client, (0, import_uuid.v4)().toString(), "/liveIngress/whip", requestLogger);
|
|
9524
9482
|
this._stream = stream;
|
|
9525
9483
|
}
|
|
9526
9484
|
async start() {
|
|
@@ -9737,6 +9695,22 @@ if ("document" in globalThis && "implementation" in globalThis.document) {
|
|
|
9737
9695
|
}
|
|
9738
9696
|
}
|
|
9739
9697
|
createHttpClient = async () => {
|
|
9698
|
+
console.debug("EyePop: creating HttpClient in browser");
|
|
9699
|
+
return new HttpClient2();
|
|
9700
|
+
};
|
|
9701
|
+
}
|
|
9702
|
+
if (typeof navigator !== "undefined" && navigator.product === "ReactNative") {
|
|
9703
|
+
class HttpClient2 {
|
|
9704
|
+
constructor() {
|
|
9705
|
+
}
|
|
9706
|
+
async fetch(input, init) {
|
|
9707
|
+
return await fetch(input, init);
|
|
9708
|
+
}
|
|
9709
|
+
async close() {
|
|
9710
|
+
}
|
|
9711
|
+
}
|
|
9712
|
+
createHttpClient = async () => {
|
|
9713
|
+
console.debug("EyePop: creating HttpClient in ReactNative");
|
|
9740
9714
|
return new HttpClient2();
|
|
9741
9715
|
};
|
|
9742
9716
|
} else {
|
|
@@ -9754,6 +9728,7 @@ if ("document" in globalThis && "implementation" in globalThis.document) {
|
|
|
9754
9728
|
}
|
|
9755
9729
|
}
|
|
9756
9730
|
createHttpClient = async () => {
|
|
9731
|
+
console.debug("EyePop: creating HttpClient with undici agent in Node");
|
|
9757
9732
|
const undici = require("undici");
|
|
9758
9733
|
const agent = new undici.Agent({
|
|
9759
9734
|
keepAliveTimeout: 1e4,
|
|
@@ -11034,6 +11009,11 @@ var UserReview = /* @__PURE__ */ ((UserReview2) => {
|
|
|
11034
11009
|
UserReview2["unknown"] = "unknown";
|
|
11035
11010
|
return UserReview2;
|
|
11036
11011
|
})(UserReview || {});
|
|
11012
|
+
var AutoAnnotateTask = /* @__PURE__ */ ((AutoAnnotateTask2) => {
|
|
11013
|
+
AutoAnnotateTask2["object_detection"] = "object_detection";
|
|
11014
|
+
AutoAnnotateTask2["image_classification"] = "image_classification";
|
|
11015
|
+
return AutoAnnotateTask2;
|
|
11016
|
+
})(AutoAnnotateTask || {});
|
|
11037
11017
|
var TranscodeMode = /* @__PURE__ */ ((TranscodeMode2) => {
|
|
11038
11018
|
TranscodeMode2["original"] = "original";
|
|
11039
11019
|
TranscodeMode2["image_original_size"] = "image_original_size";
|
|
@@ -11049,6 +11029,11 @@ var ModelType = /* @__PURE__ */ ((ModelType2) => {
|
|
|
11049
11029
|
ModelType2["epdet_b1"] = "epdet_b1";
|
|
11050
11030
|
return ModelType2;
|
|
11051
11031
|
})(ModelType || {});
|
|
11032
|
+
var ModelTask = /* @__PURE__ */ ((ModelTask2) => {
|
|
11033
|
+
ModelTask2["object_detection"] = "object_detection";
|
|
11034
|
+
ModelTask2["image_classification"] = "image_classification";
|
|
11035
|
+
return ModelTask2;
|
|
11036
|
+
})(ModelTask || {});
|
|
11052
11037
|
var ModelStatus = /* @__PURE__ */ ((ModelStatus2) => {
|
|
11053
11038
|
ModelStatus2["error"] = "error";
|
|
11054
11039
|
ModelStatus2["draft"] = "draft";
|
|
@@ -11798,6 +11783,7 @@ var index_default = EyePop;
|
|
|
11798
11783
|
AnnotationType,
|
|
11799
11784
|
ArtifactType,
|
|
11800
11785
|
AssetStatus,
|
|
11786
|
+
AutoAnnotateTask,
|
|
11801
11787
|
ChangeType,
|
|
11802
11788
|
ContourType,
|
|
11803
11789
|
DataEndpoint,
|
|
@@ -11813,6 +11799,7 @@ var index_default = EyePop;
|
|
|
11813
11799
|
ModelFormat,
|
|
11814
11800
|
ModelPrecisionType,
|
|
11815
11801
|
ModelStatus,
|
|
11802
|
+
ModelTask,
|
|
11816
11803
|
ModelTrainingStage,
|
|
11817
11804
|
ModelType,
|
|
11818
11805
|
PopComponentType,
|