@eraserlabs/eraser-mcp 0.3.3-next.6 → 0.3.3-next.8

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.
@@ -18,6 +18,8 @@ export declare const createFileSchema: z.ZodObject<{
18
18
  folderId: z.ZodOptional<z.ZodString>;
19
19
  }, z.core.$strip>;
20
20
  export declare const FILE_SORT_FIELDS: readonly ["createdAt", "updatedAt"];
21
+ export declare const FILE_SORT_INVERSE: readonly ["-createdAt", "-updatedAt"];
22
+ export declare const ALL_FILE_SORT_FIELDS: readonly ["createdAt", "updatedAt", "-createdAt", "-updatedAt"];
21
23
  export declare const listFilesSchema: z.ZodObject<{
22
24
  limit: z.ZodOptional<z.ZodNumber>;
23
25
  cursor: z.ZodOptional<z.ZodString>;
@@ -25,6 +27,8 @@ export declare const listFilesSchema: z.ZodObject<{
25
27
  sort: z.ZodOptional<z.ZodEnum<{
26
28
  createdAt: "createdAt";
27
29
  updatedAt: "updatedAt";
30
+ "-createdAt": "-createdAt";
31
+ "-updatedAt": "-updatedAt";
28
32
  }>>;
29
33
  author: z.ZodOptional<z.ZodString>;
30
34
  }, z.core.$strip>;
@@ -48,7 +52,7 @@ export declare const updateFileSchema: z.ZodObject<{
48
52
  export declare const archiveFileSchema: z.ZodObject<{
49
53
  fileId: z.ZodString;
50
54
  }, z.core.$strip>;
51
- export type FileSortFields = typeof FILE_SORT_FIELDS[number];
55
+ export type FileSortFields = typeof ALL_FILE_SORT_FIELDS[number];
52
56
  export type CreateFileInput = z.infer<typeof createFileSchema>;
53
57
  export type ListFilesInput = z.infer<typeof listFilesSchema>;
54
58
  export type GetFileInput = z.infer<typeof getFileSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/schemas/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;i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,GAAG,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC/D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC7D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACzD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC/D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.archiveFileSchema = exports.updateFileSchema = exports.getFileSchema = exports.listFilesSchema = exports.FILE_SORT_FIELDS = exports.createFileSchema = void 0;
3
+ exports.archiveFileSchema = exports.updateFileSchema = exports.getFileSchema = exports.listFilesSchema = exports.ALL_FILE_SORT_FIELDS = exports.FILE_SORT_INVERSE = exports.FILE_SORT_FIELDS = exports.createFileSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const shared_1 = require("./shared");
6
6
  exports.createFileSchema = zod_1.z.object({
@@ -21,11 +21,13 @@ exports.createFileSchema = zod_1.z.object({
21
21
  folderId: zod_1.z.string().optional().describe('Folder ID to create the file in.'),
22
22
  });
23
23
  exports.FILE_SORT_FIELDS = ['createdAt', 'updatedAt'];
24
+ exports.FILE_SORT_INVERSE = ['-createdAt', '-updatedAt'];
25
+ exports.ALL_FILE_SORT_FIELDS = [...exports.FILE_SORT_FIELDS, ...exports.FILE_SORT_INVERSE];
24
26
  exports.listFilesSchema = zod_1.z.object({
25
27
  limit: zod_1.z.number().optional().describe('Maximum number of files to return (1-500). Defaults to 100.'),
26
28
  cursor: zod_1.z.string().optional().describe('Cursor for pagination. Use nextCursor from a previous response.'),
27
29
  folderId: zod_1.z.string().optional().describe('Filter files by folder ID.'),
28
- sort: zod_1.z.enum(exports.FILE_SORT_FIELDS).optional().describe('Sort field with optional "-" prefix for descending. Examples: "-updatedAt" (default), "createdAt". Valid fields: createdAt, updatedAt.'),
30
+ sort: zod_1.z.enum(exports.ALL_FILE_SORT_FIELDS).optional().describe('Sort field with optional "-" prefix for descending. Examples: "-updatedAt" (default), "createdAt". Valid fields: createdAt, updatedAt.'),
29
31
  author: zod_1.z.string().optional().describe('Filter by author (user ID or email address).'),
30
32
  });
31
33
  exports.getFileSchema = zod_1.z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eraserlabs/eraser-mcp",
3
- "version": "0.3.3-next.6",
3
+ "version": "0.3.3-next.8",
4
4
  "description": "MCP server for generating diagrams with Eraser.io",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -37,6 +37,6 @@
37
37
  "typescript": "^5.9.3"
38
38
  },
39
39
  "engines": {
40
- "node": ">=22"
40
+ "node": ">=20"
41
41
  }
42
42
  }