@eyepop.ai/eyepop 1.9.2 → 1.11.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/README.md +152 -107
- package/dist/eyepop.index.d.mts +37 -6
- package/dist/eyepop.index.d.ts +37 -6
- package/dist/eyepop.index.js +288 -229
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +286 -229
- 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 +45 -43
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;
|
|
@@ -125,7 +124,13 @@ interface OAuth2Auth {
|
|
|
125
124
|
*/
|
|
126
125
|
oAuth2: true | Auth0Options;
|
|
127
126
|
}
|
|
128
|
-
|
|
127
|
+
interface LocalAuth {
|
|
128
|
+
/**
|
|
129
|
+
* Implicit auth w/o credentials to a local endpoint.
|
|
130
|
+
*/
|
|
131
|
+
isLocal: true;
|
|
132
|
+
}
|
|
133
|
+
type Authentication = undefined | SecretKeyAuth | SessionAuth | OAuth2Auth | LocalAuth;
|
|
129
134
|
interface Options {
|
|
130
135
|
auth?: Authentication | undefined;
|
|
131
136
|
/**
|
|
@@ -259,6 +264,7 @@ interface WorkerOptions extends Options {
|
|
|
259
264
|
isSandbox?: boolean;
|
|
260
265
|
autoStart?: boolean;
|
|
261
266
|
stopJobs?: boolean;
|
|
267
|
+
isLocalMode?: boolean;
|
|
262
268
|
}
|
|
263
269
|
|
|
264
270
|
interface WorkerSession extends Session {
|
|
@@ -266,6 +272,7 @@ interface WorkerSession extends Session {
|
|
|
266
272
|
readonly baseUrl: string | undefined;
|
|
267
273
|
readonly pipelineId: string | undefined;
|
|
268
274
|
readonly sandboxId: string | undefined;
|
|
275
|
+
authenticationHeaders(): any;
|
|
269
276
|
}
|
|
270
277
|
interface LiveMedia {
|
|
271
278
|
ingressId(): string;
|
|
@@ -274,7 +281,7 @@ interface LiveMedia {
|
|
|
274
281
|
}
|
|
275
282
|
interface IngressEvent {
|
|
276
283
|
readonly ingressId: string;
|
|
277
|
-
readonly event:
|
|
284
|
+
readonly event: 'stream-ready' | 'stream-ready';
|
|
278
285
|
}
|
|
279
286
|
interface FileSource {
|
|
280
287
|
readonly file: File;
|
|
@@ -393,6 +400,7 @@ declare enum ContourType {
|
|
|
393
400
|
}
|
|
394
401
|
interface ContourFinderComponent extends BaseComponent {
|
|
395
402
|
contourType: ContourType;
|
|
403
|
+
areaThreshold?: number;
|
|
396
404
|
}
|
|
397
405
|
interface ComponentFinderComponent extends BaseComponent {
|
|
398
406
|
dilate?: number;
|
|
@@ -426,6 +434,7 @@ declare class WorkerEndpoint extends Endpoint<WorkerEndpoint> {
|
|
|
426
434
|
popName(): string | null;
|
|
427
435
|
pop(): Pop | null;
|
|
428
436
|
changePop(pop: Pop): Promise<void>;
|
|
437
|
+
private _authenticationHeaders;
|
|
429
438
|
/**
|
|
430
439
|
* @deprecated use pop() instead
|
|
431
440
|
*/
|
|
@@ -549,9 +558,21 @@ declare enum UserReview {
|
|
|
549
558
|
rejected = "rejected",
|
|
550
559
|
unknown = "unknown"
|
|
551
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
|
+
}
|
|
552
569
|
interface AutoAnnotateParams {
|
|
570
|
+
/**
|
|
571
|
+
* @deprecated use prompts instead
|
|
572
|
+
*/
|
|
553
573
|
candidate_labels?: string[];
|
|
554
|
-
|
|
574
|
+
prompts?: AutoAnnotatePrompt[];
|
|
575
|
+
task?: AutoAnnotateTask;
|
|
555
576
|
confidence_threshold?: number;
|
|
556
577
|
}
|
|
557
578
|
interface Annotation {
|
|
@@ -590,6 +611,10 @@ interface Asset {
|
|
|
590
611
|
declare enum ModelType {
|
|
591
612
|
epdet_b1 = "epdet_b1"
|
|
592
613
|
}
|
|
614
|
+
declare enum ModelTask {
|
|
615
|
+
object_detection = "object_detection",
|
|
616
|
+
image_classification = "image_classification"
|
|
617
|
+
}
|
|
593
618
|
declare enum ModelStatus {
|
|
594
619
|
error = "error",
|
|
595
620
|
draft = "draft",
|
|
@@ -631,6 +656,8 @@ interface Model {
|
|
|
631
656
|
external_id?: string;
|
|
632
657
|
pretrained_model_uuid?: string;
|
|
633
658
|
extra_params?: Map<string, any>;
|
|
659
|
+
task?: ModelTask;
|
|
660
|
+
classes?: string[];
|
|
634
661
|
type: ModelType;
|
|
635
662
|
status: ModelStatus;
|
|
636
663
|
status_message?: string;
|
|
@@ -648,11 +675,15 @@ interface ModelCreate {
|
|
|
648
675
|
external_id?: string;
|
|
649
676
|
pretrained_model_uuid?: string;
|
|
650
677
|
extra_params?: Map<string, any>;
|
|
678
|
+
task?: ModelTask;
|
|
679
|
+
classes?: string[];
|
|
651
680
|
}
|
|
652
681
|
interface ModelUpdate {
|
|
653
682
|
name: string;
|
|
654
683
|
description: string;
|
|
655
684
|
external_id?: string;
|
|
685
|
+
task?: ModelTask;
|
|
686
|
+
classes?: string[];
|
|
656
687
|
}
|
|
657
688
|
declare enum ModelTrainingStage {
|
|
658
689
|
waiting = "waiting",
|
|
@@ -732,7 +763,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
732
763
|
getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
|
|
733
764
|
deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
734
765
|
resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
|
|
735
|
-
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>;
|
|
736
767
|
deleteAssetGroundTruth(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
|
|
737
768
|
updateAutoAnnotationStatus(asset_uuid: string, auto_annotate: string, user_review: UserReview, approved_threshold?: number): Promise<void>;
|
|
738
769
|
downloadAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, transcode_mode?: TranscodeMode): Promise<Blob>;
|
|
@@ -884,4 +915,4 @@ declare namespace EyePop {
|
|
|
884
915
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
885
916
|
}
|
|
886
917
|
|
|
887
|
-
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 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 };
|