@eyepop.ai/eyepop 1.11.7 → 1.12.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
CHANGED
|
@@ -146,6 +146,7 @@ interface Options {
|
|
|
146
146
|
interface HttpClient {
|
|
147
147
|
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
148
148
|
close(): Promise<void>;
|
|
149
|
+
isFullDuplex(): boolean;
|
|
149
150
|
}
|
|
150
151
|
|
|
151
152
|
/** Semaphores are initialized with a number of permits that get aquired and released
|
|
@@ -287,7 +288,7 @@ interface FileSource {
|
|
|
287
288
|
readonly file: File;
|
|
288
289
|
}
|
|
289
290
|
interface StreamSource {
|
|
290
|
-
readonly stream: ReadableStream<Uint8Array
|
|
291
|
+
readonly stream: ReadableStream<Uint8Array> | Blob | BufferSource;
|
|
291
292
|
readonly mimeType: string;
|
|
292
293
|
}
|
|
293
294
|
interface PathSource {
|
|
@@ -506,6 +507,10 @@ interface DatasetVersion {
|
|
|
506
507
|
asset_stats?: DatasetVersionAssetStats;
|
|
507
508
|
default_source_model_uuid?: string;
|
|
508
509
|
}
|
|
510
|
+
interface DatasetParent {
|
|
511
|
+
dataset_uuid: string;
|
|
512
|
+
dataset_version: number;
|
|
513
|
+
}
|
|
509
514
|
interface Dataset {
|
|
510
515
|
uuid: string;
|
|
511
516
|
name: string;
|
|
@@ -518,6 +523,7 @@ interface Dataset {
|
|
|
518
523
|
updated_at: Date;
|
|
519
524
|
modifiable_version?: number;
|
|
520
525
|
versions: DatasetVersion[];
|
|
526
|
+
parent?: DatasetParent;
|
|
521
527
|
}
|
|
522
528
|
interface DatasetCreate {
|
|
523
529
|
name: string;
|
|
@@ -825,7 +831,7 @@ declare class UploadJob extends AbstractJob {
|
|
|
825
831
|
private readonly _mimeType;
|
|
826
832
|
private readonly _needsFullDuplex;
|
|
827
833
|
get [Symbol.toStringTag](): string;
|
|
828
|
-
constructor(stream: ReadableStream<Uint8Array
|
|
834
|
+
constructor(stream: ReadableStream<Uint8Array> | Blob | BufferSource, mimeType: string, params: SourceParams | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
|
|
829
835
|
protected onEvent(event: StreamEvent): Promise<void>;
|
|
830
836
|
protected startJob(): Promise<Response>;
|
|
831
837
|
}
|
|
@@ -905,4 +911,4 @@ declare namespace EyePop {
|
|
|
905
911
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
906
912
|
}
|
|
907
913
|
|
|
908
|
-
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 };
|
|
914
|
+
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 DatasetParent, 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
|
@@ -146,6 +146,7 @@ interface Options {
|
|
|
146
146
|
interface HttpClient {
|
|
147
147
|
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
148
148
|
close(): Promise<void>;
|
|
149
|
+
isFullDuplex(): boolean;
|
|
149
150
|
}
|
|
150
151
|
|
|
151
152
|
/** Semaphores are initialized with a number of permits that get aquired and released
|
|
@@ -287,7 +288,7 @@ interface FileSource {
|
|
|
287
288
|
readonly file: File;
|
|
288
289
|
}
|
|
289
290
|
interface StreamSource {
|
|
290
|
-
readonly stream: ReadableStream<Uint8Array
|
|
291
|
+
readonly stream: ReadableStream<Uint8Array> | Blob | BufferSource;
|
|
291
292
|
readonly mimeType: string;
|
|
292
293
|
}
|
|
293
294
|
interface PathSource {
|
|
@@ -506,6 +507,10 @@ interface DatasetVersion {
|
|
|
506
507
|
asset_stats?: DatasetVersionAssetStats;
|
|
507
508
|
default_source_model_uuid?: string;
|
|
508
509
|
}
|
|
510
|
+
interface DatasetParent {
|
|
511
|
+
dataset_uuid: string;
|
|
512
|
+
dataset_version: number;
|
|
513
|
+
}
|
|
509
514
|
interface Dataset {
|
|
510
515
|
uuid: string;
|
|
511
516
|
name: string;
|
|
@@ -518,6 +523,7 @@ interface Dataset {
|
|
|
518
523
|
updated_at: Date;
|
|
519
524
|
modifiable_version?: number;
|
|
520
525
|
versions: DatasetVersion[];
|
|
526
|
+
parent?: DatasetParent;
|
|
521
527
|
}
|
|
522
528
|
interface DatasetCreate {
|
|
523
529
|
name: string;
|
|
@@ -825,7 +831,7 @@ declare class UploadJob extends AbstractJob {
|
|
|
825
831
|
private readonly _mimeType;
|
|
826
832
|
private readonly _needsFullDuplex;
|
|
827
833
|
get [Symbol.toStringTag](): string;
|
|
828
|
-
constructor(stream: ReadableStream<Uint8Array
|
|
834
|
+
constructor(stream: ReadableStream<Uint8Array> | Blob | BufferSource, mimeType: string, params: SourceParams | undefined, getSession: () => Promise<WorkerSession>, client: HttpClient, requestLogger: Logger);
|
|
829
835
|
protected onEvent(event: StreamEvent): Promise<void>;
|
|
830
836
|
protected startJob(): Promise<Response>;
|
|
831
837
|
}
|
|
@@ -905,4 +911,4 @@ declare namespace EyePop {
|
|
|
905
911
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
906
912
|
}
|
|
907
913
|
|
|
908
|
-
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 };
|
|
914
|
+
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 DatasetParent, 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
|
@@ -8969,7 +8969,7 @@ var UploadJob = class extends AbstractJob {
|
|
|
8969
8969
|
super(params, getSession, client, requestLogger);
|
|
8970
8970
|
this._uploadStream = stream;
|
|
8971
8971
|
this._mimeType = mimeType;
|
|
8972
|
-
this._needsFullDuplex = mimeType.startsWith("video/");
|
|
8972
|
+
this._needsFullDuplex = !client.isFullDuplex() && mimeType.startsWith("video/");
|
|
8973
8973
|
}
|
|
8974
8974
|
async onEvent(event) {
|
|
8975
8975
|
if (event.type == "prepared") {
|
|
@@ -9042,7 +9042,7 @@ var UploadJob = class extends AbstractJob {
|
|
|
9042
9042
|
...session.authenticationHeaders(),
|
|
9043
9043
|
Accept: "application/jsonl"
|
|
9044
9044
|
};
|
|
9045
|
-
this._requestLogger.debug("before POST
|
|
9045
|
+
this._requestLogger.debug("before POST {} to prepare full duplex upload", prepareUrl);
|
|
9046
9046
|
response = await this._client.fetch(prepareUrl, {
|
|
9047
9047
|
headers,
|
|
9048
9048
|
method: "POST",
|
|
@@ -9050,11 +9050,11 @@ var UploadJob = class extends AbstractJob {
|
|
|
9050
9050
|
// @ts-ignore
|
|
9051
9051
|
duplex: "half"
|
|
9052
9052
|
});
|
|
9053
|
-
this._requestLogger.debug("after POST
|
|
9053
|
+
this._requestLogger.debug("after POST {} to prepare full duplex upload {} {}", prepareUrl, response.status, response.statusText);
|
|
9054
9054
|
} else {
|
|
9055
9055
|
const postUrl = `${session.baseUrl.replace(/\/+$/, "")}/pipelines/${session.pipelineId}/source?mode=queue&processing=sync`;
|
|
9056
9056
|
if (this._params) {
|
|
9057
|
-
this._requestLogger.debug("before POST
|
|
9057
|
+
this._requestLogger.debug("before POST {} with multipart body because of params", postUrl);
|
|
9058
9058
|
const params = JSON.stringify(this._params);
|
|
9059
9059
|
const paramBlob = new Blob([params], { type: "application/json" });
|
|
9060
9060
|
const formData = new FormData();
|
|
@@ -9640,6 +9640,9 @@ if ("document" in globalThis && "implementation" in globalThis.document) {
|
|
|
9640
9640
|
}
|
|
9641
9641
|
async close() {
|
|
9642
9642
|
}
|
|
9643
|
+
isFullDuplex() {
|
|
9644
|
+
return false;
|
|
9645
|
+
}
|
|
9643
9646
|
}
|
|
9644
9647
|
createHttpClient = async () => {
|
|
9645
9648
|
return new BrowserHttpClient();
|
|
@@ -9655,6 +9658,9 @@ if ("document" in globalThis && "implementation" in globalThis.document) {
|
|
|
9655
9658
|
}
|
|
9656
9659
|
async close() {
|
|
9657
9660
|
}
|
|
9661
|
+
isFullDuplex() {
|
|
9662
|
+
return true;
|
|
9663
|
+
}
|
|
9658
9664
|
}
|
|
9659
9665
|
createHttpClient = async () => {
|
|
9660
9666
|
return new ReactNativeHttpClient();
|
|
@@ -9672,6 +9678,9 @@ if ("document" in globalThis && "implementation" in globalThis.document) {
|
|
|
9672
9678
|
async close() {
|
|
9673
9679
|
return this.agent.close();
|
|
9674
9680
|
}
|
|
9681
|
+
isFullDuplex() {
|
|
9682
|
+
return false;
|
|
9683
|
+
}
|
|
9675
9684
|
}
|
|
9676
9685
|
createHttpClient = async () => {
|
|
9677
9686
|
const undici = require("undici");
|