@eraserlabs/eraser-mcp 0.3.3-next.4 → 0.3.3-next.5

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.
@@ -38,7 +38,7 @@ export declare const createFileSchema: z.ZodObject<{
38
38
  }[] | undefined;
39
39
  folderId?: string | undefined;
40
40
  }>;
41
- declare const sortFields: readonly ["createdAt", "updatedAt"];
41
+ export declare const FILE_SORT_FIELDS: readonly ["createdAt", "updatedAt"];
42
42
  export declare const listFilesSchema: z.ZodObject<{
43
43
  limit: z.ZodOptional<z.ZodNumber>;
44
44
  cursor: z.ZodOptional<z.ZodString>;
@@ -91,11 +91,10 @@ export declare const archiveFileSchema: z.ZodObject<{
91
91
  }, {
92
92
  fileId: string;
93
93
  }>;
94
- export type FileSortFields = typeof sortFields[number];
94
+ export type FileSortFields = typeof FILE_SORT_FIELDS[number];
95
95
  export type CreateFileInput = z.infer<typeof createFileSchema>;
96
96
  export type ListFilesInput = z.infer<typeof listFilesSchema>;
97
97
  export type GetFileInput = z.infer<typeof getFileSchema>;
98
98
  export type UpdateFileInput = z.infer<typeof updateFileSchema>;
99
99
  export type ArchiveFileInput = z.infer<typeof archiveFileSchema>;
100
- export {};
101
100
  //# sourceMappingURL=files.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB3B,CAAC;AAEH,QAAA,MAAM,UAAU,qCAAsC,CAAC;AAEvD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAM1B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;EAExB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;EAM3B,CAAC;AAEH,eAAO,MAAM,i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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.createFileSchema = void 0;
3
+ exports.archiveFileSchema = exports.updateFileSchema = exports.getFileSchema = exports.listFilesSchema = 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({
@@ -20,12 +20,12 @@ exports.createFileSchema = zod_1.z.object({
20
20
  linkAccess: shared_1.LinkAccessEnum.optional().describe('Optional link sharing access level. Defaults to using team config.'),
21
21
  folderId: zod_1.z.string().optional().describe('Folder ID to create the file in.'),
22
22
  });
23
- const sortFields = ['createdAt', 'updatedAt'];
23
+ exports.FILE_SORT_FIELDS = ['createdAt', 'updatedAt'];
24
24
  exports.listFilesSchema = zod_1.z.object({
25
25
  limit: zod_1.z.number().optional().describe('Maximum number of files to return (1-500). Defaults to 100.'),
26
26
  cursor: zod_1.z.string().optional().describe('Cursor for pagination. Use nextCursor from a previous response.'),
27
27
  folderId: zod_1.z.string().optional().describe('Filter files by folder ID.'),
28
- sort: zod_1.z.enum(sortFields).optional().describe('Sort field with optional "-" prefix for descending. Examples: "-updatedAt" (default), "createdAt". Valid fields: createdAt, updatedAt.'),
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.'),
29
29
  author: zod_1.z.string().optional().describe('Filter by author (user ID or email address).'),
30
30
  });
31
31
  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.4",
3
+ "version": "0.3.3-next.5",
4
4
  "description": "MCP server for generating diagrams with Eraser.io",
5
5
  "private": false,
6
6
  "main": "dist/index.js",