@eraserlabs/eraser-mcp 0.3.2-next.1 → 0.3.3-next.1
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/descriptions/tools.d.ts +10 -1
- package/dist/descriptions/tools.d.ts.map +1 -1
- package/dist/descriptions/tools.js +11 -2
- package/dist/schemas/diagrams.d.ts +60 -0
- package/dist/schemas/diagrams.d.ts.map +1 -0
- package/dist/schemas/diagrams.js +26 -0
- package/dist/schemas/files.d.ts +95 -0
- package/dist/schemas/files.d.ts.map +1 -0
- package/dist/schemas/files.js +41 -0
- package/dist/schemas/renderElements.d.ts +9 -9
- package/dist/schemas/renderPrompt.d.ts +9 -9
- package/dist/schemas/shared.d.ts +14 -14
- package/dist/schemas/shared.d.ts.map +1 -1
- package/dist/schemas/shared.js +2 -0
- package/dist/schemas/singleDiagram.d.ts +9 -9
- package/dist/tools.d.ts +7 -2
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +79 -5
- package/package.json +1 -1
- package/dist/schemas/createFile.d.ts +0 -39
- package/dist/schemas/createFile.d.ts.map +0 -1
- package/dist/schemas/createFile.js +0 -21
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
export declare const CREATE_FILE_DESCRIPTION = "Create a new Eraser file with
|
|
1
|
+
export declare const CREATE_FILE_DESCRIPTION = "Create a new Eraser file with a document and/or diagram elements. The document field accepts markdown content and supports embedded diagram code blocks (e.g., ```flowchart-diagram) which are automatically converted to interactive canvas diagrams. Additionally supports standalone diagram elements via the elements array.";
|
|
2
2
|
export declare const RENDER_PROMPT_DESCRIPTION = "Generate a diagram using AI from a natural language prompt, existing code, infrastructure configuration, or other diagram languages. Best for when you want AI to create the diagram code for you.";
|
|
3
3
|
export declare const RENDER_ELEMENTS_DESCRIPTION = "Render multiple diagram elements. Advanced use case for rendering multiple diagrams at once.";
|
|
4
|
+
export declare const LIST_FILES_DESCRIPTION = "List files in the workspace with pagination, sorting, and filtering. Returns file metadata (not content). Use getFile to retrieve file content.";
|
|
5
|
+
export declare const GET_FILE_DESCRIPTION = "Get a single file. Includes metadata, markdown content, and diagram elements. Use this to read the current state of a file before making updates.";
|
|
6
|
+
export declare const UPDATE_FILE_DESCRIPTION = "Update an existing file's metadata and / or document content";
|
|
7
|
+
export declare const ARCHIVE_FILE_DESCRIPTION = "Archive (soft-delete) a file. The file can be restored from the trash in the Eraser UI. This does not permanently delete the file.";
|
|
8
|
+
export declare const LIST_DIAGRAMS_DESCRIPTION = "List all diagrams in a file. Returns diagram metadata including type and code for each diagram element on the canvas.";
|
|
9
|
+
export declare const CREATE_DIAGRAM_DESCRIPTION = "Create a new diagram in an existing file. The diagram is added to the file's canvas. Specify the diagram type and optionally provide initial code.";
|
|
10
|
+
export declare const GET_DIAGRAM_DESCRIPTION = "Get a specific diagram from a file, including its type and code.";
|
|
11
|
+
export declare const UPDATE_DIAGRAM_DESCRIPTION = "Update the code of an existing diagram in a file. Replaces the diagram's code with the new value.";
|
|
12
|
+
export declare const DELETE_DIAGRAM_DESCRIPTION = "Permanently delete a diagram from a file. This removes the diagram element from the canvas. This action cannot be undone.";
|
|
4
13
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/descriptions/tools.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/descriptions/tools.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,qUACgS,CAAC;AAErU,eAAO,MAAM,yBAAyB,uMACgK,CAAC;AAEvM,eAAO,MAAM,2BAA2B,iGACwD,CAAC;AAEjG,eAAO,MAAM,sBAAsB,oJACgH,CAAC;AAEpJ,eAAO,MAAM,oBAAoB,sJACoH,CAAC;AAEtJ,eAAO,MAAM,uBAAuB,iEAAiE,CAAC;AAEtG,eAAO,MAAM,wBAAwB,uIACiG,CAAC;AAEvI,eAAO,MAAM,yBAAyB,0HACmF,CAAC;AAE1H,eAAO,MAAM,0BAA0B,uJAC+G,CAAC;AAEvJ,eAAO,MAAM,uBAAuB,qEACgC,CAAC;AAErE,eAAO,MAAM,0BAA0B,sGAC8D,CAAC;AAEtG,eAAO,MAAM,0BAA0B,8HACsF,CAAC"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RENDER_ELEMENTS_DESCRIPTION = exports.RENDER_PROMPT_DESCRIPTION = exports.CREATE_FILE_DESCRIPTION = void 0;
|
|
4
|
-
exports.CREATE_FILE_DESCRIPTION = 'Create a new Eraser file with
|
|
3
|
+
exports.DELETE_DIAGRAM_DESCRIPTION = exports.UPDATE_DIAGRAM_DESCRIPTION = exports.GET_DIAGRAM_DESCRIPTION = exports.CREATE_DIAGRAM_DESCRIPTION = exports.LIST_DIAGRAMS_DESCRIPTION = exports.ARCHIVE_FILE_DESCRIPTION = exports.UPDATE_FILE_DESCRIPTION = exports.GET_FILE_DESCRIPTION = exports.LIST_FILES_DESCRIPTION = exports.RENDER_ELEMENTS_DESCRIPTION = exports.RENDER_PROMPT_DESCRIPTION = exports.CREATE_FILE_DESCRIPTION = void 0;
|
|
4
|
+
exports.CREATE_FILE_DESCRIPTION = 'Create a new Eraser file with a document and/or diagram elements. The document field accepts markdown content and supports embedded diagram code blocks (e.g., ```flowchart-diagram) which are automatically converted to interactive canvas diagrams. Additionally supports standalone diagram elements via the elements array.';
|
|
5
5
|
exports.RENDER_PROMPT_DESCRIPTION = 'Generate a diagram using AI from a natural language prompt, existing code, infrastructure configuration, or other diagram languages. Best for when you want AI to create the diagram code for you.';
|
|
6
6
|
exports.RENDER_ELEMENTS_DESCRIPTION = 'Render multiple diagram elements. Advanced use case for rendering multiple diagrams at once.';
|
|
7
|
+
exports.LIST_FILES_DESCRIPTION = 'List files in the workspace with pagination, sorting, and filtering. Returns file metadata (not content). Use getFile to retrieve file content.';
|
|
8
|
+
exports.GET_FILE_DESCRIPTION = 'Get a single file. Includes metadata, markdown content, and diagram elements. Use this to read the current state of a file before making updates.';
|
|
9
|
+
exports.UPDATE_FILE_DESCRIPTION = `Update an existing file's metadata and / or document content`;
|
|
10
|
+
exports.ARCHIVE_FILE_DESCRIPTION = 'Archive (soft-delete) a file. The file can be restored from the trash in the Eraser UI. This does not permanently delete the file.';
|
|
11
|
+
exports.LIST_DIAGRAMS_DESCRIPTION = 'List all diagrams in a file. Returns diagram metadata including type and code for each diagram element on the canvas.';
|
|
12
|
+
exports.CREATE_DIAGRAM_DESCRIPTION = "Create a new diagram in an existing file. The diagram is added to the file's canvas. Specify the diagram type and optionally provide initial code.";
|
|
13
|
+
exports.GET_DIAGRAM_DESCRIPTION = 'Get a specific diagram from a file, including its type and code.';
|
|
14
|
+
exports.UPDATE_DIAGRAM_DESCRIPTION = "Update the code of an existing diagram in a file. Replaces the diagram's code with the new value.";
|
|
15
|
+
exports.DELETE_DIAGRAM_DESCRIPTION = 'Permanently delete a diagram from a file. This removes the diagram element from the canvas. This action cannot be undone.';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const listDiagramsSchema: z.ZodObject<{
|
|
3
|
+
fileId: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
fileId: string;
|
|
6
|
+
}, {
|
|
7
|
+
fileId: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const getDiagramSchema: z.ZodObject<{
|
|
10
|
+
fileId: z.ZodString;
|
|
11
|
+
diagramId: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
fileId: string;
|
|
14
|
+
diagramId: string;
|
|
15
|
+
}, {
|
|
16
|
+
fileId: string;
|
|
17
|
+
diagramId: string;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const createDiagramSchema: z.ZodObject<{
|
|
20
|
+
fileId: z.ZodString;
|
|
21
|
+
diagramType: z.ZodNativeEnum<typeof import("./shared").DiagramTypes>;
|
|
22
|
+
code: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
diagramType: import("./shared").DiagramTypes;
|
|
25
|
+
fileId: string;
|
|
26
|
+
code?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
diagramType: import("./shared").DiagramTypes;
|
|
29
|
+
fileId: string;
|
|
30
|
+
code?: string | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
export declare const updateDiagramSchema: z.ZodObject<{
|
|
33
|
+
fileId: z.ZodString;
|
|
34
|
+
diagramId: z.ZodString;
|
|
35
|
+
code: z.ZodString;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
code: string;
|
|
38
|
+
fileId: string;
|
|
39
|
+
diagramId: string;
|
|
40
|
+
}, {
|
|
41
|
+
code: string;
|
|
42
|
+
fileId: string;
|
|
43
|
+
diagramId: string;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const deleteDiagramSchema: z.ZodObject<{
|
|
46
|
+
fileId: z.ZodString;
|
|
47
|
+
diagramId: z.ZodString;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
fileId: string;
|
|
50
|
+
diagramId: string;
|
|
51
|
+
}, {
|
|
52
|
+
fileId: string;
|
|
53
|
+
diagramId: string;
|
|
54
|
+
}>;
|
|
55
|
+
export type ListDiagramsInput = z.infer<typeof listDiagramsSchema>;
|
|
56
|
+
export type GetDiagramInput = z.infer<typeof getDiagramSchema>;
|
|
57
|
+
export type CreateDiagramInput = z.infer<typeof createDiagramSchema>;
|
|
58
|
+
export type UpdateDiagramInput = z.infer<typeof updateDiagramSchema>;
|
|
59
|
+
export type DeleteDiagramInput = z.infer<typeof deleteDiagramSchema>;
|
|
60
|
+
//# sourceMappingURL=diagrams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagrams.d.ts","sourceRoot":"","sources":["../../src/schemas/diagrams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACnE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteDiagramSchema = exports.updateDiagramSchema = exports.createDiagramSchema = exports.getDiagramSchema = exports.listDiagramsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("./shared");
|
|
6
|
+
exports.listDiagramsSchema = zod_1.z.object({
|
|
7
|
+
fileId: zod_1.z.string().describe('The ID of the file containing the diagrams.'),
|
|
8
|
+
});
|
|
9
|
+
exports.getDiagramSchema = zod_1.z.object({
|
|
10
|
+
fileId: zod_1.z.string().describe('The ID of the file containing the diagram.'),
|
|
11
|
+
diagramId: zod_1.z.string().describe('The ID of the diagram to retrieve.'),
|
|
12
|
+
});
|
|
13
|
+
exports.createDiagramSchema = zod_1.z.object({
|
|
14
|
+
fileId: zod_1.z.string().describe('The ID of the file to add the diagram to.'),
|
|
15
|
+
diagramType: shared_1.DiagramTypesEnum.describe('The type of diagram to create.'),
|
|
16
|
+
code: zod_1.z.string().optional().describe('The diagram code in Eraser syntax. If omitted, creates an empty diagram.'),
|
|
17
|
+
});
|
|
18
|
+
exports.updateDiagramSchema = zod_1.z.object({
|
|
19
|
+
fileId: zod_1.z.string().describe('The ID of the file containing the diagram.'),
|
|
20
|
+
diagramId: zod_1.z.string().describe('The ID of the diagram to update.'),
|
|
21
|
+
code: zod_1.z.string().describe('The new diagram code in Eraser syntax.'),
|
|
22
|
+
});
|
|
23
|
+
exports.deleteDiagramSchema = zod_1.z.object({
|
|
24
|
+
fileId: zod_1.z.string().describe('The ID of the file containing the diagram.'),
|
|
25
|
+
diagramId: zod_1.z.string().describe('The ID of the diagram to delete.'),
|
|
26
|
+
});
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const createFileSchema: z.ZodObject<{
|
|
3
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4
|
+
document: z.ZodOptional<z.ZodString>;
|
|
5
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
type: z.ZodLiteral<"diagram">;
|
|
7
|
+
diagramType: z.ZodNativeEnum<typeof import("./shared").DiagramTypes>;
|
|
8
|
+
code: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
type: "diagram";
|
|
11
|
+
code: string;
|
|
12
|
+
diagramType: import("./shared").DiagramTypes;
|
|
13
|
+
}, {
|
|
14
|
+
type: "diagram";
|
|
15
|
+
code: string;
|
|
16
|
+
diagramType: import("./shared").DiagramTypes;
|
|
17
|
+
}>, "many">>;
|
|
18
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
21
|
+
title?: string | undefined;
|
|
22
|
+
document?: string | undefined;
|
|
23
|
+
elements?: {
|
|
24
|
+
type: "diagram";
|
|
25
|
+
code: string;
|
|
26
|
+
diagramType: import("./shared").DiagramTypes;
|
|
27
|
+
}[] | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
30
|
+
title?: string | undefined;
|
|
31
|
+
document?: string | undefined;
|
|
32
|
+
elements?: {
|
|
33
|
+
type: "diagram";
|
|
34
|
+
code: string;
|
|
35
|
+
diagramType: import("./shared").DiagramTypes;
|
|
36
|
+
}[] | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export declare const listFilesSchema: z.ZodObject<{
|
|
39
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
41
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
42
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
43
|
+
author: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
sort?: string | undefined;
|
|
46
|
+
limit?: number | undefined;
|
|
47
|
+
cursor?: string | undefined;
|
|
48
|
+
folderId?: string | undefined;
|
|
49
|
+
author?: string | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
sort?: string | undefined;
|
|
52
|
+
limit?: number | undefined;
|
|
53
|
+
cursor?: string | undefined;
|
|
54
|
+
folderId?: string | undefined;
|
|
55
|
+
author?: string | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
export declare const getFileSchema: z.ZodObject<{
|
|
58
|
+
fileId: z.ZodString;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
fileId: string;
|
|
61
|
+
}, {
|
|
62
|
+
fileId: string;
|
|
63
|
+
}>;
|
|
64
|
+
export declare const updateFileSchema: z.ZodObject<{
|
|
65
|
+
fileId: z.ZodString;
|
|
66
|
+
title: z.ZodOptional<z.ZodString>;
|
|
67
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
68
|
+
document: z.ZodOptional<z.ZodString>;
|
|
69
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
fileId: string;
|
|
72
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
73
|
+
title?: string | undefined;
|
|
74
|
+
document?: string | undefined;
|
|
75
|
+
folderId?: string | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
fileId: string;
|
|
78
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
79
|
+
title?: string | undefined;
|
|
80
|
+
document?: string | undefined;
|
|
81
|
+
folderId?: string | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
export declare const archiveFileSchema: z.ZodObject<{
|
|
84
|
+
fileId: z.ZodString;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
fileId: string;
|
|
87
|
+
}, {
|
|
88
|
+
fileId: string;
|
|
89
|
+
}>;
|
|
90
|
+
export type CreateFileInput = z.infer<typeof createFileSchema>;
|
|
91
|
+
export type ListFilesInput = z.infer<typeof listFilesSchema>;
|
|
92
|
+
export type GetFileInput = z.infer<typeof getFileSchema>;
|
|
93
|
+
export type UpdateFileInput = z.infer<typeof updateFileSchema>;
|
|
94
|
+
export type ArchiveFileInput = z.infer<typeof archiveFileSchema>;
|
|
95
|
+
//# sourceMappingURL=files.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB3B,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"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.archiveFileSchema = exports.updateFileSchema = exports.getFileSchema = exports.listFilesSchema = exports.createFileSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("./shared");
|
|
6
|
+
exports.createFileSchema = zod_1.z.object({
|
|
7
|
+
title: zod_1.z.string().optional().describe('Title for the file.'),
|
|
8
|
+
document: zod_1.z
|
|
9
|
+
.string()
|
|
10
|
+
.optional()
|
|
11
|
+
.describe('Markdown content for the document. Supports diagram code blocks (e.g., ```flowchart-diagram) which are converted to embedded diagrams.'),
|
|
12
|
+
elements: zod_1.z
|
|
13
|
+
.array(zod_1.z.object({
|
|
14
|
+
type: zod_1.z.literal('diagram'),
|
|
15
|
+
diagramType: shared_1.DiagramTypesEnum,
|
|
16
|
+
code: zod_1.z.string(),
|
|
17
|
+
}))
|
|
18
|
+
.optional()
|
|
19
|
+
.describe('Standalone diagram elements using diagram DSL syntax. Will be added to canvas.'),
|
|
20
|
+
linkAccess: shared_1.LinkAccessEnum.optional().describe('Optional link sharing access level. Defaults to using team config.'),
|
|
21
|
+
});
|
|
22
|
+
exports.listFilesSchema = zod_1.z.object({
|
|
23
|
+
limit: zod_1.z.number().optional().describe('Maximum number of files to return (1-500). Defaults to 100.'),
|
|
24
|
+
cursor: zod_1.z.string().optional().describe('Cursor for pagination. Use nextCursor from a previous response.'),
|
|
25
|
+
folderId: zod_1.z.string().optional().describe('Filter files by folder ID.'),
|
|
26
|
+
sort: zod_1.z.string().optional().describe('Sort field with optional "-" prefix for descending. Examples: "-updatedAt" (default), "createdAt". Valid fields: createdAt, updatedAt.'),
|
|
27
|
+
author: zod_1.z.string().optional().describe('Filter by author (user ID or email address).'),
|
|
28
|
+
});
|
|
29
|
+
exports.getFileSchema = zod_1.z.object({
|
|
30
|
+
fileId: zod_1.z.string().describe('The ID of the file to retrieve.'),
|
|
31
|
+
});
|
|
32
|
+
exports.updateFileSchema = zod_1.z.object({
|
|
33
|
+
fileId: zod_1.z.string().describe('The ID of the file to update.'),
|
|
34
|
+
title: zod_1.z.string().optional().describe('New title for the file.'),
|
|
35
|
+
folderId: zod_1.z.string().optional().describe('Folder ID to move the file into.'),
|
|
36
|
+
document: zod_1.z.string().optional().describe('Markdown content for the document. Replaces existing document content. Supports diagram code blocks (e.g., ```flowchart-diagram). To edit existing diagram embeds, use the updateDiagram tool.'),
|
|
37
|
+
linkAccess: shared_1.LinkAccessEnum.optional().describe('Optional link sharing access level.'),
|
|
38
|
+
});
|
|
39
|
+
exports.archiveFileSchema = zod_1.z.object({
|
|
40
|
+
fileId: zod_1.z.string().describe('The ID of the file to archive.'),
|
|
41
|
+
});
|
|
@@ -11,13 +11,13 @@ export declare const renderElementsSchema: z.ZodObject<{
|
|
|
11
11
|
returnImageAsFile: z.ZodOptional<z.ZodBoolean>;
|
|
12
12
|
fileOptions: z.ZodOptional<z.ZodObject<{
|
|
13
13
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>>;
|
|
14
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
create?: boolean | undefined;
|
|
17
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
17
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
create?: boolean | undefined;
|
|
20
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
20
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
21
21
|
}>>;
|
|
22
22
|
} & {
|
|
23
23
|
elements: z.ZodArray<z.ZodObject<{
|
|
@@ -51,13 +51,13 @@ export declare const renderElementsSchema: z.ZodObject<{
|
|
|
51
51
|
returnImageAsFile: z.ZodOptional<z.ZodBoolean>;
|
|
52
52
|
fileOptions: z.ZodOptional<z.ZodObject<{
|
|
53
53
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
-
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>>;
|
|
54
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
56
|
create?: boolean | undefined;
|
|
57
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
57
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
58
58
|
}, {
|
|
59
59
|
create?: boolean | undefined;
|
|
60
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
60
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
61
61
|
}>>;
|
|
62
62
|
} & {
|
|
63
63
|
elements: z.ZodArray<z.ZodObject<{
|
|
@@ -91,13 +91,13 @@ export declare const renderElementsSchema: z.ZodObject<{
|
|
|
91
91
|
returnImageAsFile: z.ZodOptional<z.ZodBoolean>;
|
|
92
92
|
fileOptions: z.ZodOptional<z.ZodObject<{
|
|
93
93
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
-
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>>;
|
|
94
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
96
|
create?: boolean | undefined;
|
|
97
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
97
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
98
98
|
}, {
|
|
99
99
|
create?: boolean | undefined;
|
|
100
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
100
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
101
101
|
}>>;
|
|
102
102
|
} & {
|
|
103
103
|
elements: z.ZodArray<z.ZodObject<{
|
|
@@ -11,13 +11,13 @@ export declare const renderPromptSchema: z.ZodObject<{
|
|
|
11
11
|
returnImageAsFile: z.ZodOptional<z.ZodBoolean>;
|
|
12
12
|
fileOptions: z.ZodOptional<z.ZodObject<{
|
|
13
13
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>>;
|
|
14
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
create?: boolean | undefined;
|
|
17
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
17
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
create?: boolean | undefined;
|
|
20
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
20
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
21
21
|
}>>;
|
|
22
22
|
} & {
|
|
23
23
|
text: z.ZodString;
|
|
@@ -48,13 +48,13 @@ export declare const renderPromptSchema: z.ZodObject<{
|
|
|
48
48
|
returnImageAsFile: z.ZodOptional<z.ZodBoolean>;
|
|
49
49
|
fileOptions: z.ZodOptional<z.ZodObject<{
|
|
50
50
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
-
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>>;
|
|
51
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
53
|
create?: boolean | undefined;
|
|
54
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
54
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
create?: boolean | undefined;
|
|
57
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
57
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
58
58
|
}>>;
|
|
59
59
|
} & {
|
|
60
60
|
text: z.ZodString;
|
|
@@ -85,13 +85,13 @@ export declare const renderPromptSchema: z.ZodObject<{
|
|
|
85
85
|
returnImageAsFile: z.ZodOptional<z.ZodBoolean>;
|
|
86
86
|
fileOptions: z.ZodOptional<z.ZodObject<{
|
|
87
87
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
-
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>>;
|
|
88
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
89
89
|
}, "strip", z.ZodTypeAny, {
|
|
90
90
|
create?: boolean | undefined;
|
|
91
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
91
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
92
92
|
}, {
|
|
93
93
|
create?: boolean | undefined;
|
|
94
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
94
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
95
95
|
}>>;
|
|
96
96
|
} & {
|
|
97
97
|
text: z.ZodString;
|
package/dist/schemas/shared.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const colorModeSettings: readonly ["pastel", "bold", "outline"];
|
|
|
7
7
|
export declare const styleModeSettings: readonly ["plain", "shadow", "watercolor"];
|
|
8
8
|
export declare const typefaceSettings: readonly ["rough", "clean", "mono"];
|
|
9
9
|
export declare const directionSettings: readonly ["up", "down", "left", "right"];
|
|
10
|
-
export declare const linkAccessSettings: readonly ["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"];
|
|
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
12
|
/**
|
|
13
13
|
* The diagram types supported by the MCP tools.
|
|
@@ -21,7 +21,7 @@ export declare enum DiagramTypes {
|
|
|
21
21
|
BPMN = "bpmn-diagram"
|
|
22
22
|
}
|
|
23
23
|
export declare const DiagramTypesEnum: z.ZodNativeEnum<typeof DiagramTypes>;
|
|
24
|
-
export declare const LinkAccessEnum: z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>;
|
|
24
|
+
export declare const LinkAccessEnum: z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>;
|
|
25
25
|
export declare const diagramElementSchema: z.ZodObject<{
|
|
26
26
|
type: z.ZodLiteral<"diagram">;
|
|
27
27
|
diagramType: z.ZodNativeEnum<typeof DiagramTypes>;
|
|
@@ -53,13 +53,13 @@ export declare const gitRepoSchema: z.ZodObject<{
|
|
|
53
53
|
}>;
|
|
54
54
|
export declare const fileOptionsSchema: z.ZodObject<{
|
|
55
55
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
-
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>>;
|
|
56
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
create?: boolean | undefined;
|
|
59
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
59
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
60
60
|
}, {
|
|
61
61
|
create?: boolean | undefined;
|
|
62
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
62
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
63
63
|
}>;
|
|
64
64
|
export declare const imageQualitySchema: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
65
65
|
export declare const renderOptionsSchema: z.ZodObject<{
|
|
@@ -74,13 +74,13 @@ export declare const renderOptionsSchema: z.ZodObject<{
|
|
|
74
74
|
returnImageAsFile: z.ZodOptional<z.ZodBoolean>;
|
|
75
75
|
fileOptions: z.ZodOptional<z.ZodObject<{
|
|
76
76
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
-
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>>;
|
|
77
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
78
78
|
}, "strip", z.ZodTypeAny, {
|
|
79
79
|
create?: boolean | undefined;
|
|
80
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
80
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
81
81
|
}, {
|
|
82
82
|
create?: boolean | undefined;
|
|
83
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
83
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
84
84
|
}>>;
|
|
85
85
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
86
86
|
imageQuality: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
@@ -94,13 +94,13 @@ export declare const renderOptionsSchema: z.ZodObject<{
|
|
|
94
94
|
returnImageAsFile: z.ZodOptional<z.ZodBoolean>;
|
|
95
95
|
fileOptions: z.ZodOptional<z.ZodObject<{
|
|
96
96
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
-
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>>;
|
|
97
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
98
98
|
}, "strip", z.ZodTypeAny, {
|
|
99
99
|
create?: boolean | undefined;
|
|
100
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
100
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
101
101
|
}, {
|
|
102
102
|
create?: boolean | undefined;
|
|
103
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
103
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
104
104
|
}>>;
|
|
105
105
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
106
106
|
imageQuality: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
@@ -114,13 +114,13 @@ export declare const renderOptionsSchema: z.ZodObject<{
|
|
|
114
114
|
returnImageAsFile: z.ZodOptional<z.ZodBoolean>;
|
|
115
115
|
fileOptions: z.ZodOptional<z.ZodObject<{
|
|
116
116
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
-
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>>;
|
|
117
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
118
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
119
|
create?: boolean | undefined;
|
|
120
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
120
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
121
121
|
}, {
|
|
122
122
|
create?: boolean | undefined;
|
|
123
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
123
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
124
124
|
}>>;
|
|
125
125
|
}, z.ZodTypeAny, "passthrough">>;
|
|
126
126
|
export declare function toJsonSchema(schema: z.ZodType): Record<string, unknown>;
|
|
@@ -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,eAAO,MAAM,kBAAkB,
|
|
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,eAAO,MAAM,kBAAkB,oIAOrB,CAAC;AACX,eAAO,MAAM,cAAc,kCAAmC,CAAC;AAE/D;;;GAGG;AACH,oBAAY,YAAY;IACtB,EAAE,qBAAqB;IACvB,GAAG,gCAAgC;IACnC,GAAG,+BAA+B;IAClC,IAAI,sBAAsB;IAC1B,IAAI,iBAAiB;CACtB;AAED,eAAO,MAAM,gBAAgB,sCAA6B,CAAC;AAC3D,eAAO,MAAM,cAAc,sIAA6B,CAAC;AAEzD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;EAGxB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;EAG5B,CAAC;AAEH,eAAO,MAAM,kBAAkB,iEAAsD,CAAC;AAEtF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAahB,CAAC;AAEjB,wBAAgB,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEvE;AAGD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/schemas/shared.js
CHANGED
|
@@ -11,13 +11,13 @@ export declare const singleDiagramSchema: z.ZodObject<{
|
|
|
11
11
|
returnImageAsFile: z.ZodOptional<z.ZodBoolean>;
|
|
12
12
|
fileOptions: z.ZodOptional<z.ZodObject<{
|
|
13
13
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>>;
|
|
14
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
create?: boolean | undefined;
|
|
17
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
17
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
create?: boolean | undefined;
|
|
20
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
20
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
21
21
|
}>>;
|
|
22
22
|
} & {
|
|
23
23
|
code: z.ZodString;
|
|
@@ -33,13 +33,13 @@ export declare const singleDiagramSchema: z.ZodObject<{
|
|
|
33
33
|
returnImageAsFile: z.ZodOptional<z.ZodBoolean>;
|
|
34
34
|
fileOptions: z.ZodOptional<z.ZodObject<{
|
|
35
35
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
-
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>>;
|
|
36
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
create?: boolean | undefined;
|
|
39
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
39
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
40
40
|
}, {
|
|
41
41
|
create?: boolean | undefined;
|
|
42
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
42
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
43
43
|
}>>;
|
|
44
44
|
} & {
|
|
45
45
|
code: z.ZodString;
|
|
@@ -55,13 +55,13 @@ export declare const singleDiagramSchema: z.ZodObject<{
|
|
|
55
55
|
returnImageAsFile: z.ZodOptional<z.ZodBoolean>;
|
|
56
56
|
fileOptions: z.ZodOptional<z.ZodObject<{
|
|
57
57
|
create: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
-
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>>;
|
|
58
|
+
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable", "sso-readable", "sso-editable"]>>;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
create?: boolean | undefined;
|
|
61
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
61
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
create?: boolean | undefined;
|
|
64
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
64
|
+
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | "sso-readable" | "sso-editable" | undefined;
|
|
65
65
|
}>>;
|
|
66
66
|
} & {
|
|
67
67
|
code: z.ZodString;
|
package/dist/tools.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { DiagramTypes, DiagramElementInput } from './schemas/shared';
|
|
3
|
-
import { CreateFileInput } from './schemas/
|
|
3
|
+
import { CreateFileInput } from './schemas/files';
|
|
4
|
+
import { ListFilesInput } from './schemas/files';
|
|
5
|
+
import { GetFileInput } from './schemas/files';
|
|
6
|
+
import { UpdateFileInput } from './schemas/files';
|
|
7
|
+
import { ArchiveFileInput } from './schemas/files';
|
|
4
8
|
import { RenderPromptInput } from './schemas/renderPrompt';
|
|
5
9
|
import { RenderElementsInput } from './schemas/renderElements';
|
|
6
10
|
import { SingleDiagramInput } from './schemas/singleDiagram';
|
|
11
|
+
import { ListDiagramsInput, GetDiagramInput, CreateDiagramInput, UpdateDiagramInput, DeleteDiagramInput } from './schemas/diagrams';
|
|
7
12
|
export type McpToolDefinition<TInput> = {
|
|
8
13
|
name: string;
|
|
9
14
|
description: string;
|
|
@@ -19,6 +24,6 @@ export declare function isSingleDiagramTool(name: string): name is keyof typeof
|
|
|
19
24
|
export declare const freeMcpTools: ReadonlyArray<McpToolDefinition<any>>;
|
|
20
25
|
export declare const freeMcpToolMap: Map<string, McpToolDefinition<any>>;
|
|
21
26
|
export declare function isFreeMcpToolName(name: unknown): name is string;
|
|
22
|
-
export type { RenderPromptInput, DiagramElementInput, RenderElementsInput, SingleDiagramInput, CreateFileInput, };
|
|
27
|
+
export type { RenderPromptInput, DiagramElementInput, RenderElementsInput, SingleDiagramInput, CreateFileInput, ListFilesInput, GetFileInput, UpdateFileInput, ArchiveFileInput, ListDiagramsInput, GetDiagramInput, CreateDiagramInput, UpdateDiagramInput, DeleteDiagramInput, };
|
|
23
28
|
export { DiagramTypes };
|
|
24
29
|
//# sourceMappingURL=tools.d.ts.map
|
package/dist/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EACL,YAAY,EAEZ,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAoB,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EACL,YAAY,EAEZ,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAoB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAmB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAiB,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAoB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAqB,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAsB,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAwB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAuB,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EACe,iBAAiB,EACnB,eAAe,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EACxC,MAAM,oBAAoB,CAAC;AAuB5B,MAAM,MAAM,iBAAiB,CAAC,MAAM,IAAI;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,aAAa,CAAC,iBAAiB,CAAC,GAAG,CAAC,CA0G1D,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,WAAW,CAEhE;AAED,eAAO,MAAM,UAAU,qCAAqD,CAAC;AAG7E,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAM3D,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,MAAM,OAAO,kBAAkB,CAEzF;AAoBD,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAO1D,CAAC;AAEN,eAAO,MAAM,cAAc,qCAAyD,CAAC;AAErF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,MAAM,CAE/D;AAGD,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,GACnB,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/tools.js
CHANGED
|
@@ -4,10 +4,15 @@ exports.DiagramTypes = exports.isFreeMcpToolName = exports.freeMcpToolMap = expo
|
|
|
4
4
|
// Schemas
|
|
5
5
|
const shared_1 = require("./schemas/shared");
|
|
6
6
|
Object.defineProperty(exports, "DiagramTypes", { enumerable: true, get: function () { return shared_1.DiagramTypes; } });
|
|
7
|
-
const
|
|
7
|
+
const files_1 = require("./schemas/files");
|
|
8
|
+
const files_2 = require("./schemas/files");
|
|
9
|
+
const files_3 = require("./schemas/files");
|
|
10
|
+
const files_4 = require("./schemas/files");
|
|
11
|
+
const files_5 = require("./schemas/files");
|
|
8
12
|
const renderPrompt_1 = require("./schemas/renderPrompt");
|
|
9
13
|
const renderElements_1 = require("./schemas/renderElements");
|
|
10
14
|
const singleDiagram_1 = require("./schemas/singleDiagram");
|
|
15
|
+
const diagrams_1 = require("./schemas/diagrams");
|
|
11
16
|
// Descriptions
|
|
12
17
|
const tools_1 = require("./descriptions/tools");
|
|
13
18
|
const sequenceDiagram_1 = require("./descriptions/sequenceDiagram");
|
|
@@ -16,12 +21,69 @@ const cloudArchitecture_1 = require("./descriptions/cloudArchitecture");
|
|
|
16
21
|
const flowchart_1 = require("./descriptions/flowchart");
|
|
17
22
|
const bpmn_1 = require("./descriptions/bpmn");
|
|
18
23
|
exports.mcpTools = [
|
|
24
|
+
// File CRUD
|
|
19
25
|
{
|
|
20
26
|
name: 'createFile',
|
|
21
27
|
description: tools_1.CREATE_FILE_DESCRIPTION,
|
|
22
|
-
schema:
|
|
23
|
-
jsonSchema: (0, shared_1.toJsonSchema)(
|
|
28
|
+
schema: files_1.createFileSchema,
|
|
29
|
+
jsonSchema: (0, shared_1.toJsonSchema)(files_1.createFileSchema),
|
|
24
30
|
},
|
|
31
|
+
{
|
|
32
|
+
name: 'listFiles',
|
|
33
|
+
description: tools_1.LIST_FILES_DESCRIPTION,
|
|
34
|
+
schema: files_2.listFilesSchema,
|
|
35
|
+
jsonSchema: (0, shared_1.toJsonSchema)(files_2.listFilesSchema),
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'getFile',
|
|
39
|
+
description: tools_1.GET_FILE_DESCRIPTION,
|
|
40
|
+
schema: files_3.getFileSchema,
|
|
41
|
+
jsonSchema: (0, shared_1.toJsonSchema)(files_3.getFileSchema),
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'updateFile',
|
|
45
|
+
description: tools_1.UPDATE_FILE_DESCRIPTION,
|
|
46
|
+
schema: files_4.updateFileSchema,
|
|
47
|
+
jsonSchema: (0, shared_1.toJsonSchema)(files_4.updateFileSchema),
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'archiveFile',
|
|
51
|
+
description: tools_1.ARCHIVE_FILE_DESCRIPTION,
|
|
52
|
+
schema: files_5.archiveFileSchema,
|
|
53
|
+
jsonSchema: (0, shared_1.toJsonSchema)(files_5.archiveFileSchema),
|
|
54
|
+
},
|
|
55
|
+
// Diagram CRUD
|
|
56
|
+
{
|
|
57
|
+
name: 'listDiagrams',
|
|
58
|
+
description: tools_1.LIST_DIAGRAMS_DESCRIPTION,
|
|
59
|
+
schema: diagrams_1.listDiagramsSchema,
|
|
60
|
+
jsonSchema: (0, shared_1.toJsonSchema)(diagrams_1.listDiagramsSchema),
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'createDiagram',
|
|
64
|
+
description: tools_1.CREATE_DIAGRAM_DESCRIPTION,
|
|
65
|
+
schema: diagrams_1.createDiagramSchema,
|
|
66
|
+
jsonSchema: (0, shared_1.toJsonSchema)(diagrams_1.createDiagramSchema),
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'getDiagram',
|
|
70
|
+
description: tools_1.GET_DIAGRAM_DESCRIPTION,
|
|
71
|
+
schema: diagrams_1.getDiagramSchema,
|
|
72
|
+
jsonSchema: (0, shared_1.toJsonSchema)(diagrams_1.getDiagramSchema),
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'updateDiagram',
|
|
76
|
+
description: tools_1.UPDATE_DIAGRAM_DESCRIPTION,
|
|
77
|
+
schema: diagrams_1.updateDiagramSchema,
|
|
78
|
+
jsonSchema: (0, shared_1.toJsonSchema)(diagrams_1.updateDiagramSchema),
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'deleteDiagram',
|
|
82
|
+
description: tools_1.DELETE_DIAGRAM_DESCRIPTION,
|
|
83
|
+
schema: diagrams_1.deleteDiagramSchema,
|
|
84
|
+
jsonSchema: (0, shared_1.toJsonSchema)(diagrams_1.deleteDiagramSchema),
|
|
85
|
+
},
|
|
86
|
+
// Render tools
|
|
25
87
|
{
|
|
26
88
|
name: 'renderPrompt',
|
|
27
89
|
description: tools_1.RENDER_PROMPT_DESCRIPTION,
|
|
@@ -82,8 +144,20 @@ function isSingleDiagramTool(name) {
|
|
|
82
144
|
return name in exports.singleDiagramTools;
|
|
83
145
|
}
|
|
84
146
|
exports.isSingleDiagramTool = isSingleDiagramTool;
|
|
85
|
-
//
|
|
86
|
-
const PAID_TOOL_NAMES = new Set([
|
|
147
|
+
// Paid tier tools (require auth)
|
|
148
|
+
const PAID_TOOL_NAMES = new Set([
|
|
149
|
+
'createFile',
|
|
150
|
+
'listFiles',
|
|
151
|
+
'getFile',
|
|
152
|
+
'updateFile',
|
|
153
|
+
'archiveFile',
|
|
154
|
+
'listDiagrams',
|
|
155
|
+
'createDiagram',
|
|
156
|
+
'getDiagram',
|
|
157
|
+
'updateDiagram',
|
|
158
|
+
'deleteDiagram',
|
|
159
|
+
'renderPrompt',
|
|
160
|
+
]);
|
|
87
161
|
const PREFERRED_TOOL_NOTE = '\n\nNote: For rendering multiple diagrams at once, prefer the `renderElements` tool.';
|
|
88
162
|
exports.freeMcpTools = exports.mcpTools
|
|
89
163
|
.filter((tool) => !PAID_TOOL_NAMES.has(tool.name))
|
package/package.json
CHANGED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const createFileSchema: z.ZodObject<{
|
|
3
|
-
title: z.ZodOptional<z.ZodString>;
|
|
4
|
-
markdown: z.ZodOptional<z.ZodString>;
|
|
5
|
-
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
-
type: z.ZodLiteral<"diagram">;
|
|
7
|
-
diagramType: z.ZodNativeEnum<typeof import("./shared").DiagramTypes>;
|
|
8
|
-
code: z.ZodString;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
type: "diagram";
|
|
11
|
-
code: string;
|
|
12
|
-
diagramType: import("./shared").DiagramTypes;
|
|
13
|
-
}, {
|
|
14
|
-
type: "diagram";
|
|
15
|
-
code: string;
|
|
16
|
-
diagramType: import("./shared").DiagramTypes;
|
|
17
|
-
}>, "many">>;
|
|
18
|
-
linkAccess: z.ZodOptional<z.ZodEnum<["no-link-access", "anyone-with-link-can-edit", "publicly-viewable", "publicly-editable"]>>;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
21
|
-
title?: string | undefined;
|
|
22
|
-
markdown?: string | undefined;
|
|
23
|
-
elements?: {
|
|
24
|
-
type: "diagram";
|
|
25
|
-
code: string;
|
|
26
|
-
diagramType: import("./shared").DiagramTypes;
|
|
27
|
-
}[] | undefined;
|
|
28
|
-
}, {
|
|
29
|
-
linkAccess?: "no-link-access" | "anyone-with-link-can-edit" | "publicly-viewable" | "publicly-editable" | undefined;
|
|
30
|
-
title?: string | undefined;
|
|
31
|
-
markdown?: string | undefined;
|
|
32
|
-
elements?: {
|
|
33
|
-
type: "diagram";
|
|
34
|
-
code: string;
|
|
35
|
-
diagramType: import("./shared").DiagramTypes;
|
|
36
|
-
}[] | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
export type CreateFileInput = z.infer<typeof createFileSchema>;
|
|
39
|
-
//# sourceMappingURL=createFile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createFile.d.ts","sourceRoot":"","sources":["../../src/schemas/createFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB3B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createFileSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const shared_1 = require("./shared");
|
|
6
|
-
exports.createFileSchema = zod_1.z.object({
|
|
7
|
-
title: zod_1.z.string().optional().describe('Title for the file.'),
|
|
8
|
-
markdown: zod_1.z
|
|
9
|
-
.string()
|
|
10
|
-
.optional()
|
|
11
|
-
.describe('Markdown content for notes. Supports diagram code blocks (e.g., ```flowchart-diagram) which are converted to embedded diagrams.'),
|
|
12
|
-
elements: zod_1.z
|
|
13
|
-
.array(zod_1.z.object({
|
|
14
|
-
type: zod_1.z.literal('diagram'),
|
|
15
|
-
diagramType: shared_1.DiagramTypesEnum,
|
|
16
|
-
code: zod_1.z.string(),
|
|
17
|
-
}))
|
|
18
|
-
.optional()
|
|
19
|
-
.describe('Standalone diagram elements using diagram DSL syntax. Will be added to canvas.'),
|
|
20
|
-
linkAccess: shared_1.LinkAccessEnum.optional().describe('Optional link sharing access level. Defaults to using team config.'),
|
|
21
|
-
});
|