@mestra-dev/contract 0.0.222 → 0.0.224

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +8 -9
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1834,21 +1834,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
1834
1834
  };
1835
1835
  readonly FileContentType: {
1836
1836
  readonly type: "string";
1837
- readonly enum: readonly [
1838
- "image/jpeg",
1839
- "image/png",
1840
- "image/webp",
1841
- "application/pdf"
1842
- ];
1843
- readonly description: "Allowed MIME type for general and comment file uploads.";
1837
+ readonly minLength: 1;
1838
+ readonly maxLength: 200;
1839
+ readonly pattern: "^[a-zA-Z0-9][a-zA-Z0-9!#$&^_.+-]{0,127}/[a-zA-Z0-9][a-zA-Z0-9!#$&^_.+-]{0,127}$";
1840
+ readonly description: "Declared MIME type for any file. The stored object keeps a previewable type for images, PDF, video, and audio. HTML, SVG, scripts, and other files are stored as a download so the browser does not render them.";
1841
+ readonly example: "application/pdf";
1844
1842
  };
1845
1843
  readonly ProfileImageContentType: {
1846
1844
  readonly type: "string";
1847
1845
  readonly enum: readonly [
1848
1846
  "image/jpeg",
1849
- "image/png"
1847
+ "image/png",
1848
+ "image/webp"
1850
1849
  ];
1851
- readonly description: "Allowed MIME type declared for temporary profile or workspace picture uploads.";
1850
+ readonly description: "Photo MIME type for profile or workspace picture uploads. Other file types are rejected.";
1852
1851
  };
1853
1852
  readonly UploadFileRequest: {
1854
1853
  readonly type: "object";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.222",
3
+ "version": "0.0.224",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,