@eyepop.ai/eyepop 1.15.3 → 1.16.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/dist/eyepop.index.d.mts +38 -1
- package/dist/eyepop.index.d.ts +38 -1
- package/dist/eyepop.index.js +31 -0
- package/dist/eyepop.index.js.map +1 -1
- package/dist/eyepop.index.mjs +30 -0
- 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
|
@@ -750,6 +750,40 @@ interface ChangeEvent {
|
|
|
750
750
|
mdl_uuid?: string;
|
|
751
751
|
}
|
|
752
752
|
type OnChangeEvent = (event: ChangeEvent) => Promise<void>;
|
|
753
|
+
interface CreateWorkflowConfig {
|
|
754
|
+
dataset_uuid?: string;
|
|
755
|
+
dataset_version?: number;
|
|
756
|
+
model_uuid?: string;
|
|
757
|
+
config?: Map<string, any>;
|
|
758
|
+
}
|
|
759
|
+
interface CreateWorkflow {
|
|
760
|
+
parameters?: CreateWorkflowConfig;
|
|
761
|
+
}
|
|
762
|
+
interface Workflow {
|
|
763
|
+
workflow_id: string;
|
|
764
|
+
}
|
|
765
|
+
interface ListWorkflowItemMetadataLabels {
|
|
766
|
+
account_uuid: string;
|
|
767
|
+
dataset_uuid?: string;
|
|
768
|
+
model_uuid?: string;
|
|
769
|
+
phase: WorkflowPhase;
|
|
770
|
+
}
|
|
771
|
+
interface ListWorkFlowItemMetadata {
|
|
772
|
+
workflow_id: string;
|
|
773
|
+
created_at: Date;
|
|
774
|
+
labels: ListWorkflowItemMetadataLabels;
|
|
775
|
+
}
|
|
776
|
+
interface ListWorkFlowItem {
|
|
777
|
+
metadata: ListWorkFlowItemMetadata;
|
|
778
|
+
}
|
|
779
|
+
declare enum WorkflowPhase {
|
|
780
|
+
unknown = "Unknown",
|
|
781
|
+
pending = "Pending",
|
|
782
|
+
running = "Running",
|
|
783
|
+
succeeded = "Succeeded",
|
|
784
|
+
failed = "Failed",
|
|
785
|
+
error = "Error"
|
|
786
|
+
}
|
|
753
787
|
|
|
754
788
|
declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
755
789
|
private _baseUrl;
|
|
@@ -803,6 +837,9 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
803
837
|
addDatasetEventHandler(dataset_uuid: string, eventHandler: OnChangeEvent): void;
|
|
804
838
|
removeDatasetEventHandler(dataset_uuid: string, eventHandler: OnChangeEvent): void;
|
|
805
839
|
removeAllDatasetEventHandlers(dataset_uuid: string): void;
|
|
840
|
+
startWorkflow(account_uuid: string, template_name: string, workflow: CreateWorkflow): Promise<Workflow>;
|
|
841
|
+
getWorkflow(workflow_id: string, account_uuid: string): Promise<ListWorkFlowItem>;
|
|
842
|
+
listWorkflows(account_uuid: string, dataset_uuids?: string[], model_uuids?: string[], phases?: WorkflowPhase[]): Promise<ListWorkFlowItem[]>;
|
|
806
843
|
private dispatchChangeEvent;
|
|
807
844
|
}
|
|
808
845
|
|
|
@@ -945,4 +982,4 @@ declare namespace EyePop {
|
|
|
945
982
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
946
983
|
}
|
|
947
984
|
|
|
948
|
-
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 HttpClient, 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 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 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 };
|
|
985
|
+
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, 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 IngressEvent, type ListWorkFlowItem, type ListWorkFlowItemMetadata, type ListWorkflowItemMetadataLabels, 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 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 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, type Workflow, WorkflowPhase, EyePop as default, readableStreamFromString };
|
package/dist/eyepop.index.d.ts
CHANGED
|
@@ -750,6 +750,40 @@ interface ChangeEvent {
|
|
|
750
750
|
mdl_uuid?: string;
|
|
751
751
|
}
|
|
752
752
|
type OnChangeEvent = (event: ChangeEvent) => Promise<void>;
|
|
753
|
+
interface CreateWorkflowConfig {
|
|
754
|
+
dataset_uuid?: string;
|
|
755
|
+
dataset_version?: number;
|
|
756
|
+
model_uuid?: string;
|
|
757
|
+
config?: Map<string, any>;
|
|
758
|
+
}
|
|
759
|
+
interface CreateWorkflow {
|
|
760
|
+
parameters?: CreateWorkflowConfig;
|
|
761
|
+
}
|
|
762
|
+
interface Workflow {
|
|
763
|
+
workflow_id: string;
|
|
764
|
+
}
|
|
765
|
+
interface ListWorkflowItemMetadataLabels {
|
|
766
|
+
account_uuid: string;
|
|
767
|
+
dataset_uuid?: string;
|
|
768
|
+
model_uuid?: string;
|
|
769
|
+
phase: WorkflowPhase;
|
|
770
|
+
}
|
|
771
|
+
interface ListWorkFlowItemMetadata {
|
|
772
|
+
workflow_id: string;
|
|
773
|
+
created_at: Date;
|
|
774
|
+
labels: ListWorkflowItemMetadataLabels;
|
|
775
|
+
}
|
|
776
|
+
interface ListWorkFlowItem {
|
|
777
|
+
metadata: ListWorkFlowItemMetadata;
|
|
778
|
+
}
|
|
779
|
+
declare enum WorkflowPhase {
|
|
780
|
+
unknown = "Unknown",
|
|
781
|
+
pending = "Pending",
|
|
782
|
+
running = "Running",
|
|
783
|
+
succeeded = "Succeeded",
|
|
784
|
+
failed = "Failed",
|
|
785
|
+
error = "Error"
|
|
786
|
+
}
|
|
753
787
|
|
|
754
788
|
declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
755
789
|
private _baseUrl;
|
|
@@ -803,6 +837,9 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
|
|
|
803
837
|
addDatasetEventHandler(dataset_uuid: string, eventHandler: OnChangeEvent): void;
|
|
804
838
|
removeDatasetEventHandler(dataset_uuid: string, eventHandler: OnChangeEvent): void;
|
|
805
839
|
removeAllDatasetEventHandlers(dataset_uuid: string): void;
|
|
840
|
+
startWorkflow(account_uuid: string, template_name: string, workflow: CreateWorkflow): Promise<Workflow>;
|
|
841
|
+
getWorkflow(workflow_id: string, account_uuid: string): Promise<ListWorkFlowItem>;
|
|
842
|
+
listWorkflows(account_uuid: string, dataset_uuids?: string[], model_uuids?: string[], phases?: WorkflowPhase[]): Promise<ListWorkFlowItem[]>;
|
|
806
843
|
private dispatchChangeEvent;
|
|
807
844
|
}
|
|
808
845
|
|
|
@@ -945,4 +982,4 @@ declare namespace EyePop {
|
|
|
945
982
|
function dataEndpoint(opts?: DataOptions): DataEndpoint;
|
|
946
983
|
}
|
|
947
984
|
|
|
948
|
-
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 HttpClient, 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 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 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 };
|
|
985
|
+
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, 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 IngressEvent, type ListWorkFlowItem, type ListWorkFlowItemMetadata, type ListWorkflowItemMetadataLabels, 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 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 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, type Workflow, WorkflowPhase, EyePop as default, readableStreamFromString };
|
package/dist/eyepop.index.js
CHANGED
|
@@ -8692,6 +8692,7 @@ __export(index_exports, {
|
|
|
8692
8692
|
WebrtcWhep: () => WebrtcWhep,
|
|
8693
8693
|
WebrtcWhip: () => WebrtcWhip,
|
|
8694
8694
|
WorkerEndpoint: () => WorkerEndpoint,
|
|
8695
|
+
WorkflowPhase: () => WorkflowPhase,
|
|
8695
8696
|
default: () => index_default,
|
|
8696
8697
|
readableStreamFromString: () => readableStreamFromString
|
|
8697
8698
|
});
|
|
@@ -11104,6 +11105,15 @@ var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
|
|
|
11104
11105
|
ChangeType2["events_lost"] = "events_lost";
|
|
11105
11106
|
return ChangeType2;
|
|
11106
11107
|
})(ChangeType || {});
|
|
11108
|
+
var WorkflowPhase = /* @__PURE__ */ ((WorkflowPhase3) => {
|
|
11109
|
+
WorkflowPhase3["unknown"] = "Unknown";
|
|
11110
|
+
WorkflowPhase3["pending"] = "Pending";
|
|
11111
|
+
WorkflowPhase3["running"] = "Running";
|
|
11112
|
+
WorkflowPhase3["succeeded"] = "Succeeded";
|
|
11113
|
+
WorkflowPhase3["failed"] = "Failed";
|
|
11114
|
+
WorkflowPhase3["error"] = "Error";
|
|
11115
|
+
return WorkflowPhase3;
|
|
11116
|
+
})(WorkflowPhase || {});
|
|
11107
11117
|
|
|
11108
11118
|
// data/data_endpoint.ts
|
|
11109
11119
|
var WS_INITIAL_RECONNECT_DELAY = 1e3;
|
|
@@ -11596,6 +11606,26 @@ var DataEndpoint = class extends Endpoint {
|
|
|
11596
11606
|
}
|
|
11597
11607
|
this._dataset_uuid_to_event_handlers.delete(dataset_uuid);
|
|
11598
11608
|
}
|
|
11609
|
+
async startWorkflow(account_uuid, template_name, workflow) {
|
|
11610
|
+
return this.request(`/workflows?account_uuid=${account_uuid}&template_name=${template_name}`, {
|
|
11611
|
+
method: "POST",
|
|
11612
|
+
body: JSON.stringify(workflow)
|
|
11613
|
+
});
|
|
11614
|
+
}
|
|
11615
|
+
async getWorkflow(workflow_id, account_uuid) {
|
|
11616
|
+
return this.request(`/workflows/${workflow_id}?account_uuid=${account_uuid}`, {
|
|
11617
|
+
method: "GET"
|
|
11618
|
+
});
|
|
11619
|
+
}
|
|
11620
|
+
async listWorkflows(account_uuid, dataset_uuids, model_uuids, phases) {
|
|
11621
|
+
const datasetQuery = dataset_uuids?.map((uuid) => `dataset_uuid=${uuid}`).join("&") || "";
|
|
11622
|
+
const modelQuery = model_uuids?.map((uuid) => `model_uuid=${uuid}`).join("&") || "";
|
|
11623
|
+
const phaseQuery = phases?.map((p) => `phase=${p}`).join("&") || "";
|
|
11624
|
+
const queryParams = [datasetQuery, modelQuery, phaseQuery].filter((q) => q).join("&");
|
|
11625
|
+
return this.request(`/workflows?account_uuid=${account_uuid}${queryParams ? `&${queryParams}` : ""}`, {
|
|
11626
|
+
method: "GET"
|
|
11627
|
+
});
|
|
11628
|
+
}
|
|
11599
11629
|
async dispatchChangeEvent(change_event) {
|
|
11600
11630
|
switch (change_event.change_type) {
|
|
11601
11631
|
case "dataset_added" /* dataset_added */:
|
|
@@ -11779,6 +11809,7 @@ var index_default = EyePop;
|
|
|
11779
11809
|
WebrtcWhep,
|
|
11780
11810
|
WebrtcWhip,
|
|
11781
11811
|
WorkerEndpoint,
|
|
11812
|
+
WorkflowPhase,
|
|
11782
11813
|
readableStreamFromString
|
|
11783
11814
|
});
|
|
11784
11815
|
/*! Bundled license information:
|