@eraserlabs/eraser-mcp 0.3.3-next.1 → 0.3.3-next.4
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
|
@@ -16,6 +16,7 @@ export declare const createFileSchema: z.ZodObject<{
|
|
|
16
16
|
diagramType: import("./shared").DiagramTypes;
|
|
17
17
|
}>, "many">>;
|
|
18
18
|
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
19
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
19
20
|
}, "strip", z.ZodTypeAny, {
|
|
20
21
|
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
21
22
|
title?: string | undefined;
|
|
@@ -25,6 +26,7 @@ export declare const createFileSchema: z.ZodObject<{
|
|
|
25
26
|
code: string;
|
|
26
27
|
diagramType: import("./shared").DiagramTypes;
|
|
27
28
|
}[] | undefined;
|
|
29
|
+
folderId?: string | undefined;
|
|
28
30
|
}, {
|
|
29
31
|
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
30
32
|
title?: string | undefined;
|
|
@@ -34,24 +36,26 @@ export declare const createFileSchema: z.ZodObject<{
|
|
|
34
36
|
code: string;
|
|
35
37
|
diagramType: import("./shared").DiagramTypes;
|
|
36
38
|
}[] | undefined;
|
|
39
|
+
folderId?: string | undefined;
|
|
37
40
|
}>;
|
|
41
|
+
declare const sortFields: readonly ["createdAt", "updatedAt"];
|
|
38
42
|
export declare const listFilesSchema: z.ZodObject<{
|
|
39
43
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
40
44
|
cursor: z.ZodOptional<z.ZodString>;
|
|
41
45
|
folderId: z.ZodOptional<z.ZodString>;
|
|
42
|
-
sort: z.ZodOptional<z.
|
|
46
|
+
sort: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt"]>>;
|
|
43
47
|
author: z.ZodOptional<z.ZodString>;
|
|
44
48
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
sort?:
|
|
49
|
+
sort?: "createdAt" | "updatedAt" | undefined;
|
|
50
|
+
folderId?: string | undefined;
|
|
46
51
|
limit?: number | undefined;
|
|
47
52
|
cursor?: string | undefined;
|
|
48
|
-
folderId?: string | undefined;
|
|
49
53
|
author?: string | undefined;
|
|
50
54
|
}, {
|
|
51
|
-
sort?:
|
|
55
|
+
sort?: "createdAt" | "updatedAt" | undefined;
|
|
56
|
+
folderId?: string | undefined;
|
|
52
57
|
limit?: number | undefined;
|
|
53
58
|
cursor?: string | undefined;
|
|
54
|
-
folderId?: string | undefined;
|
|
55
59
|
author?: string | undefined;
|
|
56
60
|
}>;
|
|
57
61
|
export declare const getFileSchema: z.ZodObject<{
|
|
@@ -87,9 +91,11 @@ export declare const archiveFileSchema: z.ZodObject<{
|
|
|
87
91
|
}, {
|
|
88
92
|
fileId: string;
|
|
89
93
|
}>;
|
|
94
|
+
export type FileSortFields = typeof sortFields[number];
|
|
90
95
|
export type CreateFileInput = z.infer<typeof createFileSchema>;
|
|
91
96
|
export type ListFilesInput = z.infer<typeof listFilesSchema>;
|
|
92
97
|
export type GetFileInput = z.infer<typeof getFileSchema>;
|
|
93
98
|
export type UpdateFileInput = z.infer<typeof updateFileSchema>;
|
|
94
99
|
export type ArchiveFileInput = z.infer<typeof archiveFileSchema>;
|
|
100
|
+
export {};
|
|
95
101
|
//# 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
|
|
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,iBAAiB;;;;;;EAE5B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;AACvD,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
|
@@ -18,12 +18,14 @@ exports.createFileSchema = zod_1.z.object({
|
|
|
18
18
|
.optional()
|
|
19
19
|
.describe('Standalone diagram elements using diagram DSL syntax. Will be added to canvas.'),
|
|
20
20
|
linkAccess: shared_1.LinkAccessEnum.optional().describe('Optional link sharing access level. Defaults to using team config.'),
|
|
21
|
+
folderId: zod_1.z.string().optional().describe('Folder ID to create the file in.'),
|
|
21
22
|
});
|
|
23
|
+
const sortFields = ['createdAt', 'updatedAt'];
|
|
22
24
|
exports.listFilesSchema = zod_1.z.object({
|
|
23
25
|
limit: zod_1.z.number().optional().describe('Maximum number of files to return (1-500). Defaults to 100.'),
|
|
24
26
|
cursor: zod_1.z.string().optional().describe('Cursor for pagination. Use nextCursor from a previous response.'),
|
|
25
27
|
folderId: zod_1.z.string().optional().describe('Filter files by folder ID.'),
|
|
26
|
-
sort: zod_1.z.
|
|
28
|
+
sort: zod_1.z.enum(sortFields).optional().describe('Sort field with optional "-" prefix for descending. Examples: "-updatedAt" (default), "createdAt". Valid fields: createdAt, updatedAt.'),
|
|
27
29
|
author: zod_1.z.string().optional().describe('Filter by author (user ID or email address).'),
|
|
28
30
|
});
|
|
29
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,0CA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CAAC,CAAC,KAAK,CAAC,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(),
|