@eyepop.ai/eyepop 0.18.3 → 0.18.5

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.
@@ -66,7 +66,7 @@ interface Prediction extends StreamTime {
66
66
  source_id: string;
67
67
  objects: Array<PredictedObject>;
68
68
  classes: Array<PredictedClass>;
69
- labels: Array<string>;
69
+ labels: Array<PredictedLabel>;
70
70
  meshs: Array<PredictedMesh>;
71
71
  keyPoints: Array<PredictedKeyPoints>;
72
72
  }
@@ -76,6 +76,12 @@ interface PredictedClass {
76
76
  classLabel: string;
77
77
  category: string;
78
78
  }
79
+ interface PredictedLabel {
80
+ id: number;
81
+ confidence: number;
82
+ label: string;
83
+ category: string;
84
+ }
79
85
  interface Contour {
80
86
  points: Array<Point2d>;
81
87
  cutouts: Array<Array<Point2d>>;
@@ -66,7 +66,7 @@ interface Prediction extends StreamTime {
66
66
  source_id: string;
67
67
  objects: Array<PredictedObject>;
68
68
  classes: Array<PredictedClass>;
69
- labels: Array<string>;
69
+ labels: Array<PredictedLabel>;
70
70
  meshs: Array<PredictedMesh>;
71
71
  keyPoints: Array<PredictedKeyPoints>;
72
72
  }
@@ -76,6 +76,12 @@ interface PredictedClass {
76
76
  classLabel: string;
77
77
  category: string;
78
78
  }
79
+ interface PredictedLabel {
80
+ id: number;
81
+ confidence: number;
82
+ label: string;
83
+ category: string;
84
+ }
79
85
  interface Contour {
80
86
  points: Array<Point2d>;
81
87
  cutouts: Array<Array<Point2d>>;
@@ -9933,7 +9933,7 @@ var Endpoint = class {
9933
9933
  let response = await this.fetchWithRetry(async () => {
9934
9934
  const session = await this.session();
9935
9935
  const headers = {
9936
- "Authorization": session.accessToken,
9936
+ "Authorization": `Bearer ${session.accessToken}`,
9937
9937
  "Content-Type": "application/json"
9938
9938
  };
9939
9939
  const stop_url = `${session.baseUrl}/pipelines/${session.pipelineId}/source?mode=preempt&processing=sync`;