@mestra-dev/contract 0.0.25 → 0.0.26

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 +4 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1423,7 +1423,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
1423
1423
  "workspace",
1424
1424
  "comment"
1425
1425
  ];
1426
- readonly description: "Determines the S3 key prefix.";
1426
+ readonly description: "Determines the S3 key prefix. Profile and workspace contexts accept only JPEG, PNG, or WebP; storage and comment also accept PDF.";
1427
1427
  };
1428
1428
  readonly workspace: {
1429
1429
  readonly type: "string";
@@ -1463,7 +1463,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
1463
1463
  "workspace",
1464
1464
  "comment"
1465
1465
  ];
1466
- readonly description: "Must match the context used for `/files/upload`.";
1466
+ readonly description: "Must match the context used for `/files/upload`. Profile and workspace contexts must contain an image, not a PDF.";
1467
1467
  };
1468
1468
  readonly uploadId: {
1469
1469
  readonly type: "string";
@@ -1534,7 +1534,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
1534
1534
  };
1535
1535
  readonly maxSize: {
1536
1536
  readonly type: "integer";
1537
- readonly description: "Maximum allowed upload size in bytes (15 MB).";
1537
+ readonly description: "Maximum allowed upload size in bytes: 15 MB for storage/comment, 0.5 MB for profile/workspace.";
1538
1538
  readonly example: 15728640;
1539
1539
  };
1540
1540
  readonly fileKey: {
@@ -9795,7 +9795,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
9795
9795
  "Files"
9796
9796
  ];
9797
9797
  readonly summary: "Create presigned S3 upload";
9798
- readonly description: "Returns a presigned POST URL for a context-based temporary upload (max 15 MB, 5-minute expiry). The context may be `storage`, `profile`, `workspace`, or `comment`; related identifiers are required for each context. The response includes a server-generated `uploadId`, which must be sent to `/files/confirm` to prevent temporary-upload substitution. Workspace, comment, and workspace-profile contexts require the corresponding workspace permissions.";
9798
+ readonly description: "Returns a presigned POST URL for a context-based temporary upload (15 MB for `storage` and `comment`; 0.5 MB for `profile` and `workspace`, with a 5-minute expiry). The context may be `storage`, `profile`, `workspace`, or `comment`; related identifiers are required for each context. The response includes a server-generated `uploadId`, which must be sent to `/files/confirm` to prevent temporary-upload substitution. Workspace, comment, and workspace-profile contexts require the corresponding workspace permissions.";
9799
9799
  readonly security: readonly [
9800
9800
  never
9801
9801
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,