@eyepop.ai/eyepop 1.17.5 → 1.18.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/dist/eyepop.index.d.mts +16 -24
- package/dist/eyepop.index.d.ts +16 -24
- package/dist/eyepop.index.js +722 -734
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +721 -734
- package/dist/eyepop.index.mjs.map +1 -1
- package/dist/eyepop.min.js +1 -1
- package/package.json +1 -1
package/dist/eyepop.index.d.mts
CHANGED
|
@@ -99,19 +99,10 @@ interface WorkerSession extends Session {
|
|
|
99
99
|
readonly sandboxId: string | undefined;
|
|
100
100
|
authenticationHeaders(): any;
|
|
101
101
|
}
|
|
102
|
-
interface LiveMedia {
|
|
103
|
-
ingressId(): string;
|
|
104
|
-
stream(): Promise<MediaStream>;
|
|
105
|
-
close(): Promise<void>;
|
|
106
|
-
}
|
|
107
102
|
declare enum VideoMode {
|
|
108
103
|
STREAM = "stream",
|
|
109
104
|
BUFFER = "buffer"
|
|
110
105
|
}
|
|
111
|
-
interface IngressEvent {
|
|
112
|
-
readonly ingressId: string;
|
|
113
|
-
readonly event: 'stream-ready' | 'stream-not-ready';
|
|
114
|
-
}
|
|
115
106
|
interface FileSource {
|
|
116
107
|
readonly file: File;
|
|
117
108
|
readonly videoMode?: VideoMode | undefined;
|
|
@@ -127,8 +118,8 @@ interface PathSource {
|
|
|
127
118
|
readonly mimeType?: string | undefined;
|
|
128
119
|
readonly videoMode?: VideoMode | undefined;
|
|
129
120
|
}
|
|
130
|
-
interface
|
|
131
|
-
readonly
|
|
121
|
+
interface MediaStreamSource {
|
|
122
|
+
readonly mediaStream: MediaStream;
|
|
132
123
|
}
|
|
133
124
|
interface UrlSource {
|
|
134
125
|
readonly url: string;
|
|
@@ -136,7 +127,7 @@ interface UrlSource {
|
|
|
136
127
|
interface AssetUuidSource {
|
|
137
128
|
readonly assetUuid: string;
|
|
138
129
|
}
|
|
139
|
-
type Source = FileSource | StreamSource | PathSource |
|
|
130
|
+
type Source = FileSource | StreamSource | PathSource | UrlSource | AssetUuidSource | MediaStreamSource;
|
|
140
131
|
interface ResultStream extends AsyncIterable<Prediction> {
|
|
141
132
|
cancel(): void;
|
|
142
133
|
}
|
|
@@ -449,8 +440,6 @@ declare class WorkerEndpoint extends Endpoint<WorkerEndpoint> {
|
|
|
449
440
|
private _sandboxId;
|
|
450
441
|
private _popName;
|
|
451
442
|
private _pipeline;
|
|
452
|
-
private _ingressEventHandler;
|
|
453
|
-
private _ingressEventWs;
|
|
454
443
|
constructor(options: WorkerOptions);
|
|
455
444
|
private options;
|
|
456
445
|
disconnect(wait?: boolean): Promise<void>;
|
|
@@ -477,17 +466,13 @@ declare class WorkerEndpoint extends Endpoint<WorkerEndpoint> {
|
|
|
477
466
|
*/
|
|
478
467
|
changePostTransform(postTransform: string | null): Promise<void>;
|
|
479
468
|
popId(): string | null;
|
|
480
|
-
onIngressEvent(handler: (event: IngressEvent) => void): WorkerEndpoint;
|
|
481
|
-
liveIngress(stream: MediaStream): Promise<LiveMedia>;
|
|
482
|
-
liveEgress(ingressId: string): Promise<LiveMedia>;
|
|
483
469
|
process(source: Source, params?: ComponentParams[]): Promise<ResultStream>;
|
|
484
|
-
private startIngressWs;
|
|
485
470
|
private uploadFile;
|
|
486
471
|
private uploadStream;
|
|
487
472
|
private uploadPath;
|
|
488
473
|
private loadFrom;
|
|
489
474
|
private loadFromAssetUuid;
|
|
490
|
-
private
|
|
475
|
+
private loadMediaStream;
|
|
491
476
|
private jobDone;
|
|
492
477
|
private jobStatus;
|
|
493
478
|
protected reconnect(): Promise<WorkerEndpoint>;
|
|
@@ -936,6 +921,12 @@ declare class LoadLiveIngressJob extends AbstractJob {
|
|
|
936
921
|
get [Symbol.toStringTag](): string;
|
|
937
922
|
protected startJob(): Promise<Response>;
|
|
938
923
|
}
|
|
924
|
+
declare class LoadMediaStreamJob extends AbstractJob {
|
|
925
|
+
private readonly _mediaStream;
|
|
926
|
+
constructor(mediaStream: MediaStream, params: ComponentParams[] | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
|
|
927
|
+
get [Symbol.toStringTag](): string;
|
|
928
|
+
protected startJob(): Promise<Response>;
|
|
929
|
+
}
|
|
939
930
|
|
|
940
931
|
interface OfferData {
|
|
941
932
|
iceUfrag: string;
|
|
@@ -947,13 +938,14 @@ declare abstract class WebrtcBase {
|
|
|
947
938
|
protected readonly _client: HttpClient;
|
|
948
939
|
protected readonly _requestLogger: Logger;
|
|
949
940
|
protected readonly _urlPath: string;
|
|
941
|
+
protected readonly _is_pipeline_direct: boolean;
|
|
950
942
|
private readonly _ingressId;
|
|
951
943
|
private _location;
|
|
952
944
|
protected _pc: RTCPeerConnection | null;
|
|
953
945
|
protected _eTag: string;
|
|
954
946
|
protected _queuedCandidates: RTCIceCandidate[];
|
|
955
947
|
protected _offerData: OfferData | null;
|
|
956
|
-
protected constructor(getSession: () => Promise<WorkerSession>, client: HttpClient, ingressId: string, urlBasePath: string, requestLogger: Logger);
|
|
948
|
+
protected constructor(getSession: () => Promise<WorkerSession>, client: HttpClient, ingressId: string, urlBasePath: string, is_pipeline_direct: boolean, requestLogger: Logger);
|
|
957
949
|
close(): Promise<void>;
|
|
958
950
|
ingressId(): string;
|
|
959
951
|
protected gresUrl(session: WorkerSession, location?: string | null): URL;
|
|
@@ -971,7 +963,7 @@ declare abstract class WebrtcBase {
|
|
|
971
963
|
static unquoteCredential(v: string | undefined): string;
|
|
972
964
|
}
|
|
973
965
|
|
|
974
|
-
declare class WebrtcWhep extends WebrtcBase
|
|
966
|
+
declare class WebrtcWhep extends WebrtcBase {
|
|
975
967
|
private _stream;
|
|
976
968
|
constructor(ingressId: string, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
|
|
977
969
|
close(): Promise<void>;
|
|
@@ -981,9 +973,9 @@ declare class WebrtcWhep extends WebrtcBase implements LiveMedia {
|
|
|
981
973
|
private onIceServers;
|
|
982
974
|
}
|
|
983
975
|
|
|
984
|
-
declare class WebrtcWhip extends WebrtcBase
|
|
976
|
+
declare class WebrtcWhip extends WebrtcBase {
|
|
985
977
|
private _stream;
|
|
986
|
-
constructor(stream: MediaStream, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
|
|
978
|
+
constructor(stream: MediaStream, getSession: () => Promise<WorkerSession>, client: HttpClient, is_pipeline_direct: boolean, requestLogger: Logger);
|
|
987
979
|
start(): Promise<WebrtcWhip>;
|
|
988
980
|
stream(): Promise<MediaStream>;
|
|
989
981
|
protected onRemoteAnswer(answer: RTCSessionDescription): Promise<WebrtcBase>;
|
|
@@ -1000,4 +992,4 @@ declare namespace EyePop {
|
|
|
1000
992
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
1001
993
|
}
|
|
1002
994
|
|
|
1003
|
-
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferenceComponent, InferenceType, type
|
|
995
|
+
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferenceComponent, InferenceType, type ListWorkFlowItem, type ListWorkFlowItemMetadata, type ListWorkflowItemMetadataLabels, LoadFromAssetUuidJob, LoadFromJob, LoadLiveIngressJob, LoadMediaStreamJob, type LocalAuth, type Mask, type MediaStreamSource, 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 PlatformSupport, 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 SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourcesEntry, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, readableStreamFromString };
|
package/dist/eyepop.index.d.ts
CHANGED
|
@@ -99,19 +99,10 @@ interface WorkerSession extends Session {
|
|
|
99
99
|
readonly sandboxId: string | undefined;
|
|
100
100
|
authenticationHeaders(): any;
|
|
101
101
|
}
|
|
102
|
-
interface LiveMedia {
|
|
103
|
-
ingressId(): string;
|
|
104
|
-
stream(): Promise<MediaStream>;
|
|
105
|
-
close(): Promise<void>;
|
|
106
|
-
}
|
|
107
102
|
declare enum VideoMode {
|
|
108
103
|
STREAM = "stream",
|
|
109
104
|
BUFFER = "buffer"
|
|
110
105
|
}
|
|
111
|
-
interface IngressEvent {
|
|
112
|
-
readonly ingressId: string;
|
|
113
|
-
readonly event: 'stream-ready' | 'stream-not-ready';
|
|
114
|
-
}
|
|
115
106
|
interface FileSource {
|
|
116
107
|
readonly file: File;
|
|
117
108
|
readonly videoMode?: VideoMode | undefined;
|
|
@@ -127,8 +118,8 @@ interface PathSource {
|
|
|
127
118
|
readonly mimeType?: string | undefined;
|
|
128
119
|
readonly videoMode?: VideoMode | undefined;
|
|
129
120
|
}
|
|
130
|
-
interface
|
|
131
|
-
readonly
|
|
121
|
+
interface MediaStreamSource {
|
|
122
|
+
readonly mediaStream: MediaStream;
|
|
132
123
|
}
|
|
133
124
|
interface UrlSource {
|
|
134
125
|
readonly url: string;
|
|
@@ -136,7 +127,7 @@ interface UrlSource {
|
|
|
136
127
|
interface AssetUuidSource {
|
|
137
128
|
readonly assetUuid: string;
|
|
138
129
|
}
|
|
139
|
-
type Source = FileSource | StreamSource | PathSource |
|
|
130
|
+
type Source = FileSource | StreamSource | PathSource | UrlSource | AssetUuidSource | MediaStreamSource;
|
|
140
131
|
interface ResultStream extends AsyncIterable<Prediction> {
|
|
141
132
|
cancel(): void;
|
|
142
133
|
}
|
|
@@ -449,8 +440,6 @@ declare class WorkerEndpoint extends Endpoint<WorkerEndpoint> {
|
|
|
449
440
|
private _sandboxId;
|
|
450
441
|
private _popName;
|
|
451
442
|
private _pipeline;
|
|
452
|
-
private _ingressEventHandler;
|
|
453
|
-
private _ingressEventWs;
|
|
454
443
|
constructor(options: WorkerOptions);
|
|
455
444
|
private options;
|
|
456
445
|
disconnect(wait?: boolean): Promise<void>;
|
|
@@ -477,17 +466,13 @@ declare class WorkerEndpoint extends Endpoint<WorkerEndpoint> {
|
|
|
477
466
|
*/
|
|
478
467
|
changePostTransform(postTransform: string | null): Promise<void>;
|
|
479
468
|
popId(): string | null;
|
|
480
|
-
onIngressEvent(handler: (event: IngressEvent) => void): WorkerEndpoint;
|
|
481
|
-
liveIngress(stream: MediaStream): Promise<LiveMedia>;
|
|
482
|
-
liveEgress(ingressId: string): Promise<LiveMedia>;
|
|
483
469
|
process(source: Source, params?: ComponentParams[]): Promise<ResultStream>;
|
|
484
|
-
private startIngressWs;
|
|
485
470
|
private uploadFile;
|
|
486
471
|
private uploadStream;
|
|
487
472
|
private uploadPath;
|
|
488
473
|
private loadFrom;
|
|
489
474
|
private loadFromAssetUuid;
|
|
490
|
-
private
|
|
475
|
+
private loadMediaStream;
|
|
491
476
|
private jobDone;
|
|
492
477
|
private jobStatus;
|
|
493
478
|
protected reconnect(): Promise<WorkerEndpoint>;
|
|
@@ -936,6 +921,12 @@ declare class LoadLiveIngressJob extends AbstractJob {
|
|
|
936
921
|
get [Symbol.toStringTag](): string;
|
|
937
922
|
protected startJob(): Promise<Response>;
|
|
938
923
|
}
|
|
924
|
+
declare class LoadMediaStreamJob extends AbstractJob {
|
|
925
|
+
private readonly _mediaStream;
|
|
926
|
+
constructor(mediaStream: MediaStream, params: ComponentParams[] | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
|
|
927
|
+
get [Symbol.toStringTag](): string;
|
|
928
|
+
protected startJob(): Promise<Response>;
|
|
929
|
+
}
|
|
939
930
|
|
|
940
931
|
interface OfferData {
|
|
941
932
|
iceUfrag: string;
|
|
@@ -947,13 +938,14 @@ declare abstract class WebrtcBase {
|
|
|
947
938
|
protected readonly _client: HttpClient;
|
|
948
939
|
protected readonly _requestLogger: Logger;
|
|
949
940
|
protected readonly _urlPath: string;
|
|
941
|
+
protected readonly _is_pipeline_direct: boolean;
|
|
950
942
|
private readonly _ingressId;
|
|
951
943
|
private _location;
|
|
952
944
|
protected _pc: RTCPeerConnection | null;
|
|
953
945
|
protected _eTag: string;
|
|
954
946
|
protected _queuedCandidates: RTCIceCandidate[];
|
|
955
947
|
protected _offerData: OfferData | null;
|
|
956
|
-
protected constructor(getSession: () => Promise<WorkerSession>, client: HttpClient, ingressId: string, urlBasePath: string, requestLogger: Logger);
|
|
948
|
+
protected constructor(getSession: () => Promise<WorkerSession>, client: HttpClient, ingressId: string, urlBasePath: string, is_pipeline_direct: boolean, requestLogger: Logger);
|
|
957
949
|
close(): Promise<void>;
|
|
958
950
|
ingressId(): string;
|
|
959
951
|
protected gresUrl(session: WorkerSession, location?: string | null): URL;
|
|
@@ -971,7 +963,7 @@ declare abstract class WebrtcBase {
|
|
|
971
963
|
static unquoteCredential(v: string | undefined): string;
|
|
972
964
|
}
|
|
973
965
|
|
|
974
|
-
declare class WebrtcWhep extends WebrtcBase
|
|
966
|
+
declare class WebrtcWhep extends WebrtcBase {
|
|
975
967
|
private _stream;
|
|
976
968
|
constructor(ingressId: string, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
|
|
977
969
|
close(): Promise<void>;
|
|
@@ -981,9 +973,9 @@ declare class WebrtcWhep extends WebrtcBase implements LiveMedia {
|
|
|
981
973
|
private onIceServers;
|
|
982
974
|
}
|
|
983
975
|
|
|
984
|
-
declare class WebrtcWhip extends WebrtcBase
|
|
976
|
+
declare class WebrtcWhip extends WebrtcBase {
|
|
985
977
|
private _stream;
|
|
986
|
-
constructor(stream: MediaStream, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
|
|
978
|
+
constructor(stream: MediaStream, getSession: () => Promise<WorkerSession>, client: HttpClient, is_pipeline_direct: boolean, requestLogger: Logger);
|
|
987
979
|
start(): Promise<WebrtcWhip>;
|
|
988
980
|
stream(): Promise<MediaStream>;
|
|
989
981
|
protected onRemoteAnswer(answer: RTCSessionDescription): Promise<WebrtcBase>;
|
|
@@ -1000,4 +992,4 @@ declare namespace EyePop {
|
|
|
1000
992
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
1001
993
|
}
|
|
1002
994
|
|
|
1003
|
-
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferenceComponent, InferenceType, type
|
|
995
|
+
export { AbstractJob, type Annotation, AnnotationType, ArtifactType, type Asset, type AssetImport, AssetStatus, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateTask, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, Endpoint, EndpointState, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferenceComponent, InferenceType, type ListWorkFlowItem, type ListWorkFlowItemMetadata, type ListWorkflowItemMetadataLabels, LoadFromAssetUuidJob, LoadFromJob, LoadLiveIngressJob, LoadMediaStreamJob, type LocalAuth, type Mask, type MediaStreamSource, 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 PlatformSupport, 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 SecretKeyAuth, Semaphore, type Session, type SessionAuth, type Source, type SourcesEntry, Stream, type StreamEvent, type StreamSource, type StreamTime, type TracingComponent, TranscodeMode, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, readableStreamFromString };
|