@rodrigobeber/patoai-dtos 3.27.2 → 3.27.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.
@@ -1,5 +1,16 @@
1
1
  import { MediaInfoDto } from "./media-info.dto";
2
2
  export interface MediaDto {
3
- base64: string;
3
+ /**
4
+ * Base64 encoded media content.
5
+ * @deprecated Prefer using storagePath for memory efficiency.
6
+ * Only use base64 when storagePath is not available.
7
+ */
8
+ base64?: string;
9
+ /**
10
+ * Path where media is stored in MinIO (e.g., "folder/threadId/mediaId.ext").
11
+ * When present, consumer should read from MinIO instead of using base64.
12
+ * This avoids loading large files into memory.
13
+ */
14
+ storagePath?: string;
4
15
  info: MediaInfoDto;
5
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "3.27.2",
3
+ "version": "3.27.3",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",