@eyepop.ai/eyepop 3.25.0 → 3.25.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.
@@ -67,7 +67,7 @@ interface Prediction extends StreamTime {
67
67
  objects?: Array<PredictedObject>;
68
68
  classes?: Array<PredictedClass>;
69
69
  texts?: Array<PredictedText>;
70
- meshs?: Array<PredictedMesh>;
70
+ meshes?: Array<PredictedMesh>;
71
71
  keyPoints?: Array<PredictedKeyPoints>;
72
72
  embeddings?: Array<PredictedEmbedding>;
73
73
  details?: Array<Record<string, any>>;
@@ -171,7 +171,7 @@ interface PredictedObject extends PredictedClass {
171
171
  objects?: Array<PredictedObject>;
172
172
  classes?: Array<PredictedClass>;
173
173
  texts?: Array<PredictedText>;
174
- meshs?: Array<PredictedMesh>;
174
+ meshes?: Array<PredictedMesh>;
175
175
  keyPoints?: Array<PredictedKeyPoints>;
176
176
  details?: Array<Record<string, any>>;
177
177
  }
@@ -1930,6 +1930,8 @@ declare function readableStreamFromString(s: string): ReadableStream<Uint8Array>
1930
1930
  type MultipartContent = ReadableStream<Uint8Array> | Blob | BufferSource | string;
1931
1931
  interface MultipartPart {
1932
1932
  name: string;
1933
+ /** Marks the part as a file; servers such as Go's `ReadForm` treat a part without one as a text field. */
1934
+ filename?: string;
1933
1935
  contentType?: string | null;
1934
1936
  content: MultipartContent;
1935
1937
  }
@@ -67,7 +67,7 @@ interface Prediction extends StreamTime {
67
67
  objects?: Array<PredictedObject>;
68
68
  classes?: Array<PredictedClass>;
69
69
  texts?: Array<PredictedText>;
70
- meshs?: Array<PredictedMesh>;
70
+ meshes?: Array<PredictedMesh>;
71
71
  keyPoints?: Array<PredictedKeyPoints>;
72
72
  embeddings?: Array<PredictedEmbedding>;
73
73
  details?: Array<Record<string, any>>;
@@ -171,7 +171,7 @@ interface PredictedObject extends PredictedClass {
171
171
  objects?: Array<PredictedObject>;
172
172
  classes?: Array<PredictedClass>;
173
173
  texts?: Array<PredictedText>;
174
- meshs?: Array<PredictedMesh>;
174
+ meshes?: Array<PredictedMesh>;
175
175
  keyPoints?: Array<PredictedKeyPoints>;
176
176
  details?: Array<Record<string, any>>;
177
177
  }
@@ -1930,6 +1930,8 @@ declare function readableStreamFromString(s: string): ReadableStream<Uint8Array>
1930
1930
  type MultipartContent = ReadableStream<Uint8Array> | Blob | BufferSource | string;
1931
1931
  interface MultipartPart {
1932
1932
  name: string;
1933
+ /** Marks the part as a file; servers such as Go's `ReadForm` treat a part without one as a text field. */
1934
+ filename?: string;
1933
1935
  contentType?: string | null;
1934
1936
  content: MultipartContent;
1935
1937
  }
@@ -9943,6 +9943,9 @@ function readableStreamFromString(s) {
9943
9943
  function randomMultipartBoundary() {
9944
9944
  return `----formdata-boundary-${(0, import_uuid.v4)()}`;
9945
9945
  }
9946
+ function escapeDispositionValue(value) {
9947
+ return value.replace(/"/g, "%22").replace(/\r/g, "%0D").replace(/\n/g, "%0A");
9948
+ }
9946
9949
  function toPartStream(content) {
9947
9950
  if (content instanceof ReadableStream) {
9948
9951
  return content;
@@ -9987,8 +9990,11 @@ function encodeMultipartFormData(parts, boundary) {
9987
9990
  }
9988
9991
  const part = parts[partIndex];
9989
9992
  let header = `--${boundary}\r
9990
- Content-Disposition: form-data; name="${part.name}"\r
9991
- `;
9993
+ Content-Disposition: form-data; name="${escapeDispositionValue(part.name)}"`;
9994
+ if (part.filename !== void 0) {
9995
+ header += `; filename="${escapeDispositionValue(part.filename)}"`;
9996
+ }
9997
+ header += "\r\n";
9992
9998
  if (part.contentType) {
9993
9999
  header += `Content-Type: ${part.contentType}\r
9994
10000
  `;
@@ -10741,7 +10747,7 @@ var UploadGroupJob = class extends AbstractJob {
10741
10747
  parts.push({ name: "camera", contentType: "application/json", content: JSON.stringify(this._params.camera) });
10742
10748
  }
10743
10749
  for (const source of this._sources) {
10744
- parts.push({ name: "file", contentType: source.mimeType, content: source.stream });
10750
+ parts.push({ name: "file", filename: "blob", contentType: source.mimeType, content: source.stream });
10745
10751
  }
10746
10752
  const boundary = randomMultipartBoundary();
10747
10753
  const headers = {