@eyepop.ai/eyepop 1.14.1 → 1.14.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
CHANGED
|
@@ -837,6 +837,7 @@ declare class EyepopLineDecoder {
|
|
|
837
837
|
decodeText(bytes: Bytes): string;
|
|
838
838
|
flush(): string[];
|
|
839
839
|
}
|
|
840
|
+
declare function readableStreamFromString(s: string): ReadableStream<Uint8Array>;
|
|
840
841
|
|
|
841
842
|
declare class AbstractJob implements ResultStream {
|
|
842
843
|
protected _getSession: () => Promise<WorkerSession>;
|
|
@@ -940,4 +941,4 @@ declare namespace EyePop {
|
|
|
940
941
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
941
942
|
}
|
|
942
943
|
|
|
943
|
-
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, EyepopLineDecoder, 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, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
|
944
|
+
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, EyepopLineDecoder, 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, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default, readableStreamFromString };
|
package/dist/eyepop.index.d.ts
CHANGED
|
@@ -837,6 +837,7 @@ declare class EyepopLineDecoder {
|
|
|
837
837
|
decodeText(bytes: Bytes): string;
|
|
838
838
|
flush(): string[];
|
|
839
839
|
}
|
|
840
|
+
declare function readableStreamFromString(s: string): ReadableStream<Uint8Array>;
|
|
840
841
|
|
|
841
842
|
declare class AbstractJob implements ResultStream {
|
|
842
843
|
protected _getSession: () => Promise<WorkerSession>;
|
|
@@ -940,4 +941,4 @@ declare namespace EyePop {
|
|
|
940
941
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
941
942
|
}
|
|
942
943
|
|
|
943
|
-
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, EyepopLineDecoder, 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, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default };
|
|
944
|
+
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, EyepopLineDecoder, 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, VideoMode, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, EyePop as default, readableStreamFromString };
|
package/dist/eyepop.index.js
CHANGED
|
@@ -8692,7 +8692,8 @@ __export(index_exports, {
|
|
|
8692
8692
|
WebrtcWhep: () => WebrtcWhep,
|
|
8693
8693
|
WebrtcWhip: () => WebrtcWhip,
|
|
8694
8694
|
WorkerEndpoint: () => WorkerEndpoint,
|
|
8695
|
-
default: () => index_default
|
|
8695
|
+
default: () => index_default,
|
|
8696
|
+
readableStreamFromString: () => readableStreamFromString
|
|
8696
8697
|
});
|
|
8697
8698
|
module.exports = __toCommonJS(index_exports);
|
|
8698
8699
|
|
|
@@ -8881,6 +8882,14 @@ function readableStreamAsyncIterable(stream) {
|
|
|
8881
8882
|
}
|
|
8882
8883
|
};
|
|
8883
8884
|
}
|
|
8885
|
+
function readableStreamFromString(s) {
|
|
8886
|
+
return new ReadableStream({
|
|
8887
|
+
start(controller) {
|
|
8888
|
+
controller.enqueue(Buffer.from(s));
|
|
8889
|
+
controller.close();
|
|
8890
|
+
}
|
|
8891
|
+
});
|
|
8892
|
+
}
|
|
8884
8893
|
|
|
8885
8894
|
// worker/worker_types.ts
|
|
8886
8895
|
var VideoMode = /* @__PURE__ */ ((VideoMode2) => {
|
|
@@ -8991,12 +9000,18 @@ var AbstractJob = class {
|
|
|
8991
9000
|
} else if (response.status != 200) {
|
|
8992
9001
|
reject(`upload error ${response.status}: ${await response.text()}`);
|
|
8993
9002
|
break;
|
|
8994
|
-
} else if (
|
|
8995
|
-
reject("response body is empty");
|
|
8996
|
-
break;
|
|
8997
|
-
} else {
|
|
9003
|
+
} else if (response.body) {
|
|
8998
9004
|
resolve(response.body);
|
|
8999
9005
|
break;
|
|
9006
|
+
} else {
|
|
9007
|
+
const text = await response.text();
|
|
9008
|
+
if (text) {
|
|
9009
|
+
resolve(readableStreamFromString(text));
|
|
9010
|
+
break;
|
|
9011
|
+
} else {
|
|
9012
|
+
reject("response body is empty");
|
|
9013
|
+
break;
|
|
9014
|
+
}
|
|
9000
9015
|
}
|
|
9001
9016
|
} catch (error) {
|
|
9002
9017
|
if (retries--) {
|
|
@@ -10259,7 +10274,7 @@ if ("document" in globalThis && "implementation" in globalThis.document) {
|
|
|
10259
10274
|
this.logger
|
|
10260
10275
|
);
|
|
10261
10276
|
} else {
|
|
10262
|
-
this.logger.warn(`[${TcpSockets}] Could not load '${TcpSocketsName}' (reason
|
|
10277
|
+
this.logger.warn(`[${TcpSockets}] Could not load '${TcpSocketsName}' (reason: ${TcpSocketsError}), include this package in your application to enable streamed uploads; without this package local files have to be loaded into memory uploading and this will cause Out-Of-Memory errors for large files.`);
|
|
10263
10278
|
try {
|
|
10264
10279
|
const chunks = [];
|
|
10265
10280
|
const reader = streamBody.getReader();
|
|
@@ -12358,7 +12373,8 @@ var index_default = EyePop;
|
|
|
12358
12373
|
WebrtcBase,
|
|
12359
12374
|
WebrtcWhep,
|
|
12360
12375
|
WebrtcWhip,
|
|
12361
|
-
WorkerEndpoint
|
|
12376
|
+
WorkerEndpoint,
|
|
12377
|
+
readableStreamFromString
|
|
12362
12378
|
});
|
|
12363
12379
|
/*! Bundled license information:
|
|
12364
12380
|
|