@eyepop.ai/eyepop 3.12.2 → 3.12.3

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.
@@ -524,6 +524,7 @@ declare enum DataApiType {
524
524
  dataset = "dataset",
525
525
  vlm = "vlm"
526
526
  }
527
+ type AutoAnnotate = string;
527
528
  interface DataSession extends Session {
528
529
  readonly accountId: string;
529
530
  readonly datasetApiUrl: string | undefined;
@@ -644,6 +645,18 @@ declare enum UserReview {
644
645
  rejected = "rejected",
645
646
  unknown = "unknown"
646
647
  }
648
+ declare enum AssetInclusionMode {
649
+ all_assets = "all_assets",
650
+ annotated_only = "annotated_only",
651
+ manual_annotated_only = "manual_annotated_only",
652
+ auto_annotated_only = "auto_annotated_only"
653
+ }
654
+ declare enum AnnotationInclusionMode {
655
+ all = "all",
656
+ user_reviewed = "user_reviewed",
657
+ user_approved = "user_approved",
658
+ ground_truth = "ground_truth"
659
+ }
647
660
  interface AutoAnnotatePrompt {
648
661
  prompt: string;
649
662
  label: string;
@@ -1107,7 +1120,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
1107
1120
  listDatasetAutoAnnotates(dataset_uuid: string, auto_annotate?: string, source?: string, dataset_version?: number): Promise<DatasetAutoAnnotate[]>;
1108
1121
  uploadAsset(dataset_uuid: string, dataset_version: number | undefined, blob: Blob, external_id?: string | undefined): Promise<Asset>;
1109
1122
  importAsset(dataset_uuid: string, dataset_version: number | undefined, asset_import: AssetImport, external_id?: string | undefined): Promise<Asset>;
1110
- listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset[]>;
1123
+ listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean, top_k?: number, inclusion_mode?: AssetInclusionMode, annotation_inclusion_mode?: AnnotationInclusionMode, include_partitions?: string[], include_auto_annotates?: AutoAnnotate[], include_sources?: string[]): Promise<Asset[]>;
1111
1124
  getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
1112
1125
  deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
1113
1126
  resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
@@ -1314,4 +1327,4 @@ declare namespace EyePop {
1314
1327
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
1315
1328
  }
1316
1329
 
1317
- export { type AbilityAliasEntry, AbstractJob, type Annotation, AnnotationType, type ApiKeyAuth, type Area, AreaType, ArtifactType, type Asset, type AssetImport, AssetStatus, AssetUrlType, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateStatus, AutoAnnotateTask, type BaseArea, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourArea, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DEFAULT_PREDICTION_VERSION, DataApiType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetAutoAnnotate, type DatasetAutoAnnotateCreate, type DatasetAutoAnnotateUpdate, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, type DownloadResponse, Endpoint, EndpointState, type EvaluateFilter, type EvaluateRequest, type EvaluateResponse, type EvaluateRunInfo, EvaluationStatus, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferRequest, type InferRunInfo, type InferRuntimeConfig, 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 ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, ModelTask, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, MotionModel, 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, PredictionVersion, type QcAiHubExportParams, type RectangleArea, type ResultStream, type Roi, Semaphore, type Session, type SessionAuth, SessionStatus, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TimeSpan, type TrackingComponent, TranscodeMode, type TransformInto, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, type VlmAbility, type VlmAbilityCreate, type VlmAbilityGroup, type VlmAbilityGroupCreate, type VlmAbilityGroupUpdate, VlmAbilityStatus, type VlmAbilityUpdate, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, getBaseUrl, readableStreamFromString };
1330
+ export { type AbilityAliasEntry, AbstractJob, type Annotation, AnnotationInclusionMode, AnnotationType, type ApiKeyAuth, type Area, AreaType, ArtifactType, type Asset, type AssetImport, AssetInclusionMode, AssetStatus, AssetUrlType, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotate, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateStatus, AutoAnnotateTask, type BaseArea, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourArea, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DEFAULT_PREDICTION_VERSION, DataApiType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetAutoAnnotate, type DatasetAutoAnnotateCreate, type DatasetAutoAnnotateUpdate, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, type DownloadResponse, Endpoint, EndpointState, type EvaluateFilter, type EvaluateRequest, type EvaluateResponse, type EvaluateRunInfo, EvaluationStatus, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferRequest, type InferRunInfo, type InferRuntimeConfig, 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 ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, ModelTask, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, MotionModel, 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, PredictionVersion, type QcAiHubExportParams, type RectangleArea, type ResultStream, type Roi, Semaphore, type Session, type SessionAuth, SessionStatus, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TimeSpan, type TrackingComponent, TranscodeMode, type TransformInto, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, type VlmAbility, type VlmAbilityCreate, type VlmAbilityGroup, type VlmAbilityGroupCreate, type VlmAbilityGroupUpdate, VlmAbilityStatus, type VlmAbilityUpdate, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, getBaseUrl, readableStreamFromString };
@@ -524,6 +524,7 @@ declare enum DataApiType {
524
524
  dataset = "dataset",
525
525
  vlm = "vlm"
526
526
  }
527
+ type AutoAnnotate = string;
527
528
  interface DataSession extends Session {
528
529
  readonly accountId: string;
529
530
  readonly datasetApiUrl: string | undefined;
@@ -644,6 +645,18 @@ declare enum UserReview {
644
645
  rejected = "rejected",
645
646
  unknown = "unknown"
646
647
  }
648
+ declare enum AssetInclusionMode {
649
+ all_assets = "all_assets",
650
+ annotated_only = "annotated_only",
651
+ manual_annotated_only = "manual_annotated_only",
652
+ auto_annotated_only = "auto_annotated_only"
653
+ }
654
+ declare enum AnnotationInclusionMode {
655
+ all = "all",
656
+ user_reviewed = "user_reviewed",
657
+ user_approved = "user_approved",
658
+ ground_truth = "ground_truth"
659
+ }
647
660
  interface AutoAnnotatePrompt {
648
661
  prompt: string;
649
662
  label: string;
@@ -1107,7 +1120,7 @@ declare class DataEndpoint extends Endpoint<DataEndpoint> {
1107
1120
  listDatasetAutoAnnotates(dataset_uuid: string, auto_annotate?: string, source?: string, dataset_version?: number): Promise<DatasetAutoAnnotate[]>;
1108
1121
  uploadAsset(dataset_uuid: string, dataset_version: number | undefined, blob: Blob, external_id?: string | undefined): Promise<Asset>;
1109
1122
  importAsset(dataset_uuid: string, dataset_version: number | undefined, asset_import: AssetImport, external_id?: string | undefined): Promise<Asset>;
1110
- listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset[]>;
1123
+ listAssets(dataset_uuid: string, dataset_version?: number, include_annotations?: boolean, top_k?: number, inclusion_mode?: AssetInclusionMode, annotation_inclusion_mode?: AnnotationInclusionMode, include_partitions?: string[], include_auto_annotates?: AutoAnnotate[], include_sources?: string[]): Promise<Asset[]>;
1111
1124
  getAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number, include_annotations?: boolean, top_k?: number): Promise<Asset>;
1112
1125
  deleteAsset(asset_uuid: string, dataset_uuid?: string, dataset_version?: number): Promise<void>;
1113
1126
  resurrectAsset(asset_uuid: string, dataset_uuid: string, from_dataset_version: number, into_dataset_version?: number): Promise<void>;
@@ -1314,4 +1327,4 @@ declare namespace EyePop {
1314
1327
  function dataEndpoint(opts?: DataOptions): DataEndpoint;
1315
1328
  }
1316
1329
 
1317
- export { type AbilityAliasEntry, AbstractJob, type Annotation, AnnotationType, type ApiKeyAuth, type Area, AreaType, ArtifactType, type Asset, type AssetImport, AssetStatus, AssetUrlType, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateStatus, AutoAnnotateTask, type BaseArea, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourArea, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DEFAULT_PREDICTION_VERSION, DataApiType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetAutoAnnotate, type DatasetAutoAnnotateCreate, type DatasetAutoAnnotateUpdate, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, type DownloadResponse, Endpoint, EndpointState, type EvaluateFilter, type EvaluateRequest, type EvaluateResponse, type EvaluateRunInfo, EvaluationStatus, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferRequest, type InferRunInfo, type InferRuntimeConfig, 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 ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, ModelTask, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, MotionModel, 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, PredictionVersion, type QcAiHubExportParams, type RectangleArea, type ResultStream, type Roi, Semaphore, type Session, type SessionAuth, SessionStatus, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TimeSpan, type TrackingComponent, TranscodeMode, type TransformInto, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, type VlmAbility, type VlmAbilityCreate, type VlmAbilityGroup, type VlmAbilityGroupCreate, type VlmAbilityGroupUpdate, VlmAbilityStatus, type VlmAbilityUpdate, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, getBaseUrl, readableStreamFromString };
1330
+ export { type AbilityAliasEntry, AbstractJob, type Annotation, AnnotationInclusionMode, AnnotationType, type ApiKeyAuth, type Area, AreaType, ArtifactType, type Asset, type AssetImport, AssetInclusionMode, AssetStatus, AssetUrlType, type AssetUuidSource, type Auth0Options, type Authentication, type AutoAnnotate, type AutoAnnotateParams, type AutoAnnotatePrompt, AutoAnnotateStatus, AutoAnnotateTask, type BaseArea, type BaseComponent, type Box, type ChangeEvent, ChangeType, type ComponentFinderComponent, type ComponentParams, type Contour, type ContourArea, type ContourFinderComponent, ContourType, type CreateWorkflow, type CreateWorkflowConfig, DEFAULT_PREDICTION_VERSION, DataApiType, DataEndpoint, type DataOptions, type DataSession, type Dataset, type DatasetAutoAnnotate, type DatasetAutoAnnotateCreate, type DatasetAutoAnnotateUpdate, type DatasetCreate, type DatasetHeroAssetUpdate, type DatasetParent, type DatasetUpdate, type DatasetVersion, type DatasetVersionAssetStats, type DownloadResponse, Endpoint, EndpointState, type EvaluateFilter, type EvaluateRequest, type EvaluateResponse, type EvaluateRunInfo, EvaluationStatus, ExportedBy, EyePop, EyepopLineDecoder, type FileSource, type ForwardComponent, ForwardOperatorType, type HttpClient, type InferRequest, type InferRunInfo, type InferRuntimeConfig, 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 ModelMetrics, ModelPrecisionType, type ModelSample, ModelStatus, ModelTask, type ModelTrainingProgress, ModelTrainingStage, ModelType, type ModelUpdate, MotionModel, 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, PredictionVersion, type QcAiHubExportParams, type RectangleArea, type ResultStream, type Roi, Semaphore, type Session, type SessionAuth, SessionStatus, type Source, Stream, type StreamEvent, type StreamSource, type StreamTime, type TimeSpan, type TrackingComponent, TranscodeMode, type TransformInto, TransientPopId, UploadJob, type UrlSource, UserReview, VideoMode, type VlmAbility, type VlmAbilityCreate, type VlmAbilityGroup, type VlmAbilityGroupCreate, type VlmAbilityGroupUpdate, VlmAbilityStatus, type VlmAbilityUpdate, WebrtcBase, WebrtcWhep, WebrtcWhip, WorkerEndpoint, type WorkerOptions, type WorkerSession, type Workflow, WorkflowPhase, EyePop as default, getBaseUrl, readableStreamFromString };
@@ -8657,9 +8657,11 @@ var require_mime_types = __commonJS({
8657
8657
  var index_exports = {};
8658
8658
  __export(index_exports, {
8659
8659
  AbstractJob: () => AbstractJob,
8660
+ AnnotationInclusionMode: () => AnnotationInclusionMode,
8660
8661
  AnnotationType: () => AnnotationType,
8661
8662
  AreaType: () => AreaType,
8662
8663
  ArtifactType: () => ArtifactType,
8664
+ AssetInclusionMode: () => AssetInclusionMode,
8663
8665
  AssetStatus: () => AssetStatus,
8664
8666
  AssetUrlType: () => AssetUrlType,
8665
8667
  AutoAnnotateStatus: () => AutoAnnotateStatus,
@@ -10882,6 +10884,20 @@ var UserReview = /* @__PURE__ */ ((UserReview2) => {
10882
10884
  UserReview2["unknown"] = "unknown";
10883
10885
  return UserReview2;
10884
10886
  })(UserReview || {});
10887
+ var AssetInclusionMode = /* @__PURE__ */ ((AssetInclusionMode3) => {
10888
+ AssetInclusionMode3["all_assets"] = "all_assets";
10889
+ AssetInclusionMode3["annotated_only"] = "annotated_only";
10890
+ AssetInclusionMode3["manual_annotated_only"] = "manual_annotated_only";
10891
+ AssetInclusionMode3["auto_annotated_only"] = "auto_annotated_only";
10892
+ return AssetInclusionMode3;
10893
+ })(AssetInclusionMode || {});
10894
+ var AnnotationInclusionMode = /* @__PURE__ */ ((AnnotationInclusionMode3) => {
10895
+ AnnotationInclusionMode3["all"] = "all";
10896
+ AnnotationInclusionMode3["user_reviewed"] = "user_reviewed";
10897
+ AnnotationInclusionMode3["user_approved"] = "user_approved";
10898
+ AnnotationInclusionMode3["ground_truth"] = "ground_truth";
10899
+ return AnnotationInclusionMode3;
10900
+ })(AnnotationInclusionMode || {});
10885
10901
  var AutoAnnotateTask = /* @__PURE__ */ ((AutoAnnotateTask2) => {
10886
10902
  AutoAnnotateTask2["object_detection"] = "object_detection";
10887
10903
  AutoAnnotateTask2["image_classification"] = "image_classification";
@@ -11494,11 +11510,18 @@ var DataEndpoint = class extends Endpoint {
11494
11510
  }
11495
11511
  });
11496
11512
  }
11497
- async listAssets(dataset_uuid, dataset_version, include_annotations = false, top_k) {
11498
- const versionQuery = dataset_version ? `&dataset_version=${dataset_version}` : "";
11499
- const annotationsQuery = include_annotations ? "&include_annotations=true" : "";
11500
- const topKQuery = top_k ? `&top_k=${top_k}` : "";
11501
- return this.request(`/assets?dataset_uuid=${dataset_uuid}${versionQuery}${annotationsQuery}${topKQuery}`, {
11513
+ async listAssets(dataset_uuid, dataset_version, include_annotations = false, top_k, inclusion_mode, annotation_inclusion_mode, include_partitions, include_auto_annotates, include_sources) {
11514
+ const params = new URLSearchParams();
11515
+ params.set("dataset_uuid", dataset_uuid);
11516
+ if (dataset_version != null) params.set("dataset_version", String(dataset_version));
11517
+ if (include_annotations) params.set("include_annotations", "true");
11518
+ if (inclusion_mode != null) params.set("inclusion_mode", inclusion_mode);
11519
+ if (annotation_inclusion_mode != null) params.set("annotation_inclusion_mode", annotation_inclusion_mode);
11520
+ for (const p of include_partitions ?? []) params.append("include_partition", p);
11521
+ for (const a of include_auto_annotates ?? []) params.append("include_auto_annotate", a);
11522
+ for (const s of include_sources ?? []) params.append("include_source", s);
11523
+ if (top_k != null) params.set("top_k", String(top_k));
11524
+ return this.request(`/assets?${params.toString()}`, {
11502
11525
  method: "GET"
11503
11526
  });
11504
11527
  }
@@ -12147,9 +12170,11 @@ var index_default = EyePop;
12147
12170
  // Annotate the CommonJS export names for ESM import in node:
12148
12171
  0 && (module.exports = {
12149
12172
  AbstractJob,
12173
+ AnnotationInclusionMode,
12150
12174
  AnnotationType,
12151
12175
  AreaType,
12152
12176
  ArtifactType,
12177
+ AssetInclusionMode,
12153
12178
  AssetStatus,
12154
12179
  AssetUrlType,
12155
12180
  AutoAnnotateStatus,