@eraserlabs/eraser-mcp 0.3.3-next.3 → 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.
package/dist/schemas/files.d.ts
CHANGED
|
@@ -38,20 +38,21 @@ export declare const createFileSchema: z.ZodObject<{
|
|
|
38
38
|
}[] | undefined;
|
|
39
39
|
folderId?: string | undefined;
|
|
40
40
|
}>;
|
|
41
|
+
export declare const FILE_SORT_FIELDS: readonly ["createdAt", "updatedAt"];
|
|
41
42
|
export declare const listFilesSchema: z.ZodObject<{
|
|
42
43
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
43
44
|
cursor: z.ZodOptional<z.ZodString>;
|
|
44
45
|
folderId: z.ZodOptional<z.ZodString>;
|
|
45
|
-
sort: z.ZodOptional<z.
|
|
46
|
+
sort: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt"]>>;
|
|
46
47
|
author: z.ZodOptional<z.ZodString>;
|
|
47
48
|
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
sort?:
|
|
49
|
+
sort?: "createdAt" | "updatedAt" | undefined;
|
|
49
50
|
folderId?: string | undefined;
|
|
50
51
|
limit?: number | undefined;
|
|
51
52
|
cursor?: string | undefined;
|
|
52
53
|
author?: string | undefined;
|
|
53
54
|
}, {
|
|
54
|
-
sort?:
|
|
55
|
+
sort?: "createdAt" | "updatedAt" | undefined;
|
|
55
56
|
folderId?: string | undefined;
|
|
56
57
|
limit?: number | undefined;
|
|
57
58
|
cursor?: string | undefined;
|
|
@@ -90,6 +91,7 @@ export declare const archiveFileSchema: z.ZodObject<{
|
|
|
90
91
|
}, {
|
|
91
92
|
fileId: string;
|
|
92
93
|
}>;
|
|
94
|
+
export type FileSortFields = typeof FILE_SORT_FIELDS[number];
|
|
93
95
|
export type CreateFileInput = z.infer<typeof createFileSchema>;
|
|
94
96
|
export type ListFilesInput = z.infer<typeof listFilesSchema>;
|
|
95
97
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB3B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAM1B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;EAExB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;EAM3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;EAE5B,CAAC;AAEH,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
|
+
{"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,eAAO,MAAM,gBAAgB,qCAAsC,CAAC;AAEpE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAM1B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;EAExB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;EAM3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;EAE5B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7D,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"}
|
package/dist/schemas/files.js
CHANGED
|
@@ -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,11 +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
|
+
exports.FILE_SORT_FIELDS = ['createdAt', 'updatedAt'];
|
|
23
24
|
exports.listFilesSchema = zod_1.z.object({
|
|
24
25
|
limit: zod_1.z.number().optional().describe('Maximum number of files to return (1-500). Defaults to 100.'),
|
|
25
26
|
cursor: zod_1.z.string().optional().describe('Cursor for pagination. Use nextCursor from a previous response.'),
|
|
26
27
|
folderId: zod_1.z.string().optional().describe('Filter files by folder ID.'),
|
|
27
|
-
sort: zod_1.z.
|
|
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.'),
|
|
28
29
|
author: zod_1.z.string().optional().describe('Filter by author (user ID or email address).'),
|
|
29
30
|
});
|
|
30
31
|
exports.getFileSchema = zod_1.z.object({
|
package/dist/schemas/shared.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export declare const typefaceSettings: readonly ["rough", "clean", "mono"];
|
|
|
9
9
|
export declare const directionSettings: readonly ["up", "down", "left", "right"];
|
|
10
10
|
export declare const linkAccessSettings: readonly ["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"];
|
|
11
11
|
export declare const aiModeSettings: readonly ["standard", "premium"];
|
|
12
|
+
export declare const themeSettings: readonly ["light", "dark"];
|
|
13
|
+
export declare const fileFormatSettings: readonly ["png", "jpeg"];
|
|
12
14
|
/**
|
|
13
15
|
* The diagram types supported by the MCP tools.
|
|
14
16
|
* Duplicated from DiagramTypes enum, excluding 'custom-diagram'.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/schemas/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;GAGG;AACH,eAAO,MAAM,iBAAiB,wCAAyC,CAAC;AACxE,eAAO,MAAM,iBAAiB,4CAA6C,CAAC;AAC5E,eAAO,MAAM,gBAAgB,qCAAsC,CAAC;AACpE,eAAO,MAAM,iBAAiB,0CAA2C,CAAC;AAC1E,eA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AC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/schemas/shared.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toJsonSchema = exports.renderOptionsSchema = exports.imageQualitySchema = exports.fileOptionsSchema = exports.gitRepoSchema = exports.diagramElementSchema = exports.LinkAccessEnum = exports.DiagramTypesEnum = exports.DiagramTypes = exports.aiModeSettings = exports.linkAccessSettings = exports.directionSettings = exports.typefaceSettings = exports.styleModeSettings = exports.colorModeSettings = void 0;
|
|
3
|
+
exports.toJsonSchema = exports.renderOptionsSchema = exports.imageQualitySchema = exports.fileOptionsSchema = exports.gitRepoSchema = exports.diagramElementSchema = exports.LinkAccessEnum = exports.DiagramTypesEnum = exports.DiagramTypes = exports.fileFormatSettings = exports.themeSettings = exports.aiModeSettings = exports.linkAccessSettings = exports.directionSettings = exports.typefaceSettings = exports.styleModeSettings = exports.colorModeSettings = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_to_json_schema_1 = require("zod-to-json-schema");
|
|
6
6
|
/**
|
|
@@ -20,6 +20,8 @@ exports.linkAccessSettings = [
|
|
|
20
20
|
'sso-editable',
|
|
21
21
|
];
|
|
22
22
|
exports.aiModeSettings = ['standard', 'premium'];
|
|
23
|
+
exports.themeSettings = ['light', 'dark'];
|
|
24
|
+
exports.fileFormatSettings = ['png', 'jpeg'];
|
|
23
25
|
/**
|
|
24
26
|
* The diagram types supported by the MCP tools.
|
|
25
27
|
* Duplicated from DiagramTypes enum, excluding 'custom-diagram'.
|
|
@@ -54,8 +56,8 @@ exports.renderOptionsSchema = zod_1.z
|
|
|
54
56
|
.object({
|
|
55
57
|
imageQuality: exports.imageQualitySchema.optional().describe('Image resolution multiplier (1x, 2x, or 3x).'),
|
|
56
58
|
background: zod_1.z.boolean().optional().describe('Whether to include a solid background.'),
|
|
57
|
-
theme: zod_1.z.enum(
|
|
58
|
-
format: zod_1.z.enum(
|
|
59
|
+
theme: zod_1.z.enum(exports.themeSettings).optional(),
|
|
60
|
+
format: zod_1.z.enum(exports.fileFormatSettings).optional(),
|
|
59
61
|
typeface: zod_1.z.enum(exports.typefaceSettings).optional(),
|
|
60
62
|
colorMode: zod_1.z.enum(exports.colorModeSettings).optional(),
|
|
61
63
|
styleMode: zod_1.z.enum(exports.styleModeSettings).optional(),
|