@lightdash/common 2.416.0 → 2.417.0
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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts +244 -288
- package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.js +19 -24
- package/dist/cjs/ee/AiAgent/schemas/tools/mcpDocumentContent.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +238 -274
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js +3 -3
- package/dist/cjs/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/cjs/ee/AiAgent/schemas/tools/toolReadContentArgs.js +1 -1
- package/dist/cjs/ee/externalConnections/types.d.ts +2 -2
- package/dist/cjs/ee/externalConnections/types.d.ts.map +1 -1
- package/dist/cjs/types/document.d.ts +8 -21
- package/dist/cjs/types/document.d.ts.map +1 -1
- package/dist/cjs/utils/document.d.ts +5 -1
- package/dist/cjs/utils/document.d.ts.map +1 -1
- package/dist/cjs/utils/document.js +56 -77
- package/dist/cjs/utils/document.js.map +1 -1
- package/dist/cjs/utils/documentMarkdown.d.ts +1 -1
- package/dist/cjs/utils/documentMarkdown.d.ts.map +1 -1
- package/dist/cjs/utils/documentMarkdown.js.map +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts +244 -288
- package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.js +18 -23
- package/dist/esm/ee/AiAgent/schemas/tools/mcpDocumentContent.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +238 -274
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js +3 -3
- package/dist/esm/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/esm/ee/AiAgent/schemas/tools/toolReadContentArgs.js +1 -1
- package/dist/esm/ee/externalConnections/types.d.ts +2 -2
- package/dist/esm/ee/externalConnections/types.d.ts.map +1 -1
- package/dist/esm/types/document.d.ts +8 -21
- package/dist/esm/types/document.d.ts.map +1 -1
- package/dist/esm/utils/document.d.ts +5 -1
- package/dist/esm/utils/document.d.ts.map +1 -1
- package/dist/esm/utils/document.js +56 -77
- package/dist/esm/utils/document.js.map +1 -1
- package/dist/esm/utils/documentMarkdown.d.ts +1 -1
- package/dist/esm/utils/documentMarkdown.d.ts.map +1 -1
- package/dist/esm/utils/documentMarkdown.js.map +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts +244 -288
- package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.js +18 -23
- package/dist/types/ee/AiAgent/schemas/tools/mcpDocumentContent.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts +238 -274
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.d.ts.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js +3 -3
- package/dist/types/ee/AiAgent/schemas/tools/toolDefinitions.js.map +1 -1
- package/dist/types/ee/AiAgent/schemas/tools/toolReadContentArgs.js +1 -1
- package/dist/types/ee/externalConnections/types.d.ts +2 -2
- package/dist/types/ee/externalConnections/types.d.ts.map +1 -1
- package/dist/types/types/document.d.ts +8 -21
- package/dist/types/types/document.d.ts.map +1 -1
- package/dist/types/utils/document.d.ts +5 -1
- package/dist/types/utils/document.d.ts.map +1 -1
- package/dist/types/utils/document.js +56 -77
- package/dist/types/utils/document.js.map +1 -1
- package/dist/types/utils/documentMarkdown.d.ts +1 -1
- package/dist/types/utils/documentMarkdown.d.ts.map +1 -1
- package/dist/types/utils/documentMarkdown.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,71 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export declare const mcpDocumentChartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
source: z.ZodLiteral<"semantic">;
|
|
4
|
+
chart: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7
|
+
tableName: z.ZodString;
|
|
8
|
+
metricQuery: z.ZodObject<{
|
|
9
|
+
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
10
|
+
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
11
|
+
metrics: z.ZodArray<z.ZodUnknown>;
|
|
12
|
+
filters: z.ZodOptional<z.ZodUnknown>;
|
|
13
|
+
sorts: z.ZodArray<z.ZodUnknown>;
|
|
14
|
+
limit: z.ZodOptional<z.ZodUnknown>;
|
|
15
|
+
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
16
|
+
}, z.core.$loose>;
|
|
17
|
+
chartConfig: z.ZodUnknown;
|
|
18
|
+
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
19
|
+
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
20
|
+
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
6
21
|
}, z.core.$strict>;
|
|
7
22
|
}, z.core.$strict>, z.ZodObject<{
|
|
8
|
-
|
|
9
|
-
|
|
23
|
+
source: z.ZodLiteral<"merge">;
|
|
24
|
+
chart: z.ZodObject<{
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
description: z.ZodOptional<z.ZodString>;
|
|
27
|
+
tableName: z.ZodString;
|
|
28
|
+
metricQuery: z.ZodObject<{
|
|
29
|
+
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
30
|
+
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
31
|
+
metrics: z.ZodArray<z.ZodUnknown>;
|
|
32
|
+
filters: z.ZodOptional<z.ZodUnknown>;
|
|
33
|
+
sorts: z.ZodArray<z.ZodUnknown>;
|
|
34
|
+
limit: z.ZodOptional<z.ZodUnknown>;
|
|
35
|
+
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
36
|
+
}, z.core.$loose>;
|
|
37
|
+
chartConfig: z.ZodUnknown;
|
|
38
|
+
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
39
|
+
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
40
|
+
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
41
|
+
merge: z.ZodObject<{
|
|
42
|
+
primarySourceId: z.ZodString;
|
|
43
|
+
sources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
kind: z.ZodLiteral<"chart">;
|
|
46
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
kind: z.ZodLiteral<"query">;
|
|
49
|
+
metricQuery: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
50
|
+
}, z.core.$strict>], "kind">>;
|
|
51
|
+
joinKey: z.ZodArray<z.ZodUnknown>;
|
|
52
|
+
joinType: z.ZodEnum<{
|
|
53
|
+
full: "full";
|
|
54
|
+
inner: "inner";
|
|
55
|
+
left: "left";
|
|
56
|
+
}>;
|
|
57
|
+
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
}, z.core.$strict>;
|
|
60
|
+
}, z.core.$strict>], "source">;
|
|
61
|
+
export declare const documentAsCodeSchema: z.ZodObject<{
|
|
62
|
+
name: z.ZodString;
|
|
63
|
+
slug: z.ZodString;
|
|
64
|
+
description: z.ZodString;
|
|
65
|
+
spaceSlug: z.ZodString;
|
|
66
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
67
|
+
markdown: z.ZodString;
|
|
68
|
+
charts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
69
|
source: z.ZodLiteral<"semantic">;
|
|
11
70
|
chart: z.ZodObject<{
|
|
12
71
|
name: z.ZodString;
|
|
@@ -64,156 +123,71 @@ export declare const mcpDocumentCellSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
64
123
|
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
65
124
|
}, z.core.$strict>;
|
|
66
125
|
}, z.core.$strict>;
|
|
67
|
-
}, z.core.$strict>], "source"
|
|
68
|
-
}, z.core.$strict>], "type">;
|
|
69
|
-
export declare const documentAsCodeSchema: z.ZodObject<{
|
|
70
|
-
name: z.ZodString;
|
|
71
|
-
slug: z.ZodString;
|
|
72
|
-
description: z.ZodString;
|
|
73
|
-
spaceSlug: z.ZodString;
|
|
74
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
75
|
-
content: z.ZodObject<{
|
|
76
|
-
cells: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
77
|
-
type: z.ZodLiteral<"markdown">;
|
|
78
|
-
content: z.ZodObject<{
|
|
79
|
-
markdown: z.ZodString;
|
|
80
|
-
}, z.core.$strict>;
|
|
81
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
82
|
-
type: z.ZodLiteral<"chart">;
|
|
83
|
-
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
84
|
-
source: z.ZodLiteral<"semantic">;
|
|
85
|
-
chart: z.ZodObject<{
|
|
86
|
-
name: z.ZodString;
|
|
87
|
-
description: z.ZodOptional<z.ZodString>;
|
|
88
|
-
tableName: z.ZodString;
|
|
89
|
-
metricQuery: z.ZodObject<{
|
|
90
|
-
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
91
|
-
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
92
|
-
metrics: z.ZodArray<z.ZodUnknown>;
|
|
93
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
94
|
-
sorts: z.ZodArray<z.ZodUnknown>;
|
|
95
|
-
limit: z.ZodOptional<z.ZodUnknown>;
|
|
96
|
-
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
97
|
-
}, z.core.$loose>;
|
|
98
|
-
chartConfig: z.ZodUnknown;
|
|
99
|
-
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
100
|
-
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
101
|
-
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
102
|
-
}, z.core.$strict>;
|
|
103
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
104
|
-
source: z.ZodLiteral<"merge">;
|
|
105
|
-
chart: z.ZodObject<{
|
|
106
|
-
name: z.ZodString;
|
|
107
|
-
description: z.ZodOptional<z.ZodString>;
|
|
108
|
-
tableName: z.ZodString;
|
|
109
|
-
metricQuery: z.ZodObject<{
|
|
110
|
-
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
111
|
-
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
112
|
-
metrics: z.ZodArray<z.ZodUnknown>;
|
|
113
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
114
|
-
sorts: z.ZodArray<z.ZodUnknown>;
|
|
115
|
-
limit: z.ZodOptional<z.ZodUnknown>;
|
|
116
|
-
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
117
|
-
}, z.core.$loose>;
|
|
118
|
-
chartConfig: z.ZodUnknown;
|
|
119
|
-
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
120
|
-
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
121
|
-
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
122
|
-
merge: z.ZodObject<{
|
|
123
|
-
primarySourceId: z.ZodString;
|
|
124
|
-
sources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
125
|
-
id: z.ZodString;
|
|
126
|
-
kind: z.ZodLiteral<"chart">;
|
|
127
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
128
|
-
id: z.ZodString;
|
|
129
|
-
kind: z.ZodLiteral<"query">;
|
|
130
|
-
metricQuery: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
131
|
-
}, z.core.$strict>], "kind">>;
|
|
132
|
-
joinKey: z.ZodArray<z.ZodUnknown>;
|
|
133
|
-
joinType: z.ZodEnum<{
|
|
134
|
-
full: "full";
|
|
135
|
-
inner: "inner";
|
|
136
|
-
left: "left";
|
|
137
|
-
}>;
|
|
138
|
-
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
139
|
-
}, z.core.$strict>;
|
|
140
|
-
}, z.core.$strict>;
|
|
141
|
-
}, z.core.$strict>], "source">;
|
|
142
|
-
}, z.core.$strict>], "type">>;
|
|
143
|
-
}, z.core.$strict>;
|
|
126
|
+
}, z.core.$strict>], "source">>;
|
|
144
127
|
}, z.core.$strict>;
|
|
145
128
|
export declare const mcpDocumentEditSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
146
129
|
type: z.ZodLiteral<"content">;
|
|
147
130
|
baseVersionUuid: z.ZodString;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
131
|
+
markdown: z.ZodString;
|
|
132
|
+
charts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
133
|
+
source: z.ZodLiteral<"semantic">;
|
|
134
|
+
chart: z.ZodObject<{
|
|
135
|
+
name: z.ZodString;
|
|
136
|
+
description: z.ZodOptional<z.ZodString>;
|
|
137
|
+
tableName: z.ZodString;
|
|
138
|
+
metricQuery: z.ZodObject<{
|
|
139
|
+
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
140
|
+
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
141
|
+
metrics: z.ZodArray<z.ZodUnknown>;
|
|
142
|
+
filters: z.ZodOptional<z.ZodUnknown>;
|
|
143
|
+
sorts: z.ZodArray<z.ZodUnknown>;
|
|
144
|
+
limit: z.ZodOptional<z.ZodUnknown>;
|
|
145
|
+
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
146
|
+
}, z.core.$loose>;
|
|
147
|
+
chartConfig: z.ZodUnknown;
|
|
148
|
+
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
149
|
+
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
150
|
+
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
151
|
+
}, z.core.$strict>;
|
|
152
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
153
|
+
source: z.ZodLiteral<"merge">;
|
|
154
|
+
chart: z.ZodObject<{
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
description: z.ZodOptional<z.ZodString>;
|
|
157
|
+
tableName: z.ZodString;
|
|
158
|
+
metricQuery: z.ZodObject<{
|
|
159
|
+
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
160
|
+
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
161
|
+
metrics: z.ZodArray<z.ZodUnknown>;
|
|
162
|
+
filters: z.ZodOptional<z.ZodUnknown>;
|
|
163
|
+
sorts: z.ZodArray<z.ZodUnknown>;
|
|
164
|
+
limit: z.ZodOptional<z.ZodUnknown>;
|
|
165
|
+
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
166
|
+
}, z.core.$loose>;
|
|
167
|
+
chartConfig: z.ZodUnknown;
|
|
168
|
+
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
169
|
+
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
170
|
+
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
171
|
+
merge: z.ZodObject<{
|
|
172
|
+
primarySourceId: z.ZodString;
|
|
173
|
+
sources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
174
|
+
id: z.ZodString;
|
|
175
|
+
kind: z.ZodLiteral<"chart">;
|
|
176
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
177
|
+
id: z.ZodString;
|
|
178
|
+
kind: z.ZodLiteral<"query">;
|
|
179
|
+
metricQuery: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
180
|
+
}, z.core.$strict>], "kind">>;
|
|
181
|
+
joinKey: z.ZodArray<z.ZodUnknown>;
|
|
182
|
+
joinType: z.ZodEnum<{
|
|
183
|
+
full: "full";
|
|
184
|
+
inner: "inner";
|
|
185
|
+
left: "left";
|
|
186
|
+
}>;
|
|
187
|
+
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
153
188
|
}, z.core.$strict>;
|
|
154
|
-
}, z.core.$strict
|
|
155
|
-
|
|
156
|
-
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
157
|
-
source: z.ZodLiteral<"semantic">;
|
|
158
|
-
chart: z.ZodObject<{
|
|
159
|
-
name: z.ZodString;
|
|
160
|
-
description: z.ZodOptional<z.ZodString>;
|
|
161
|
-
tableName: z.ZodString;
|
|
162
|
-
metricQuery: z.ZodObject<{
|
|
163
|
-
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
164
|
-
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
165
|
-
metrics: z.ZodArray<z.ZodUnknown>;
|
|
166
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
167
|
-
sorts: z.ZodArray<z.ZodUnknown>;
|
|
168
|
-
limit: z.ZodOptional<z.ZodUnknown>;
|
|
169
|
-
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
170
|
-
}, z.core.$loose>;
|
|
171
|
-
chartConfig: z.ZodUnknown;
|
|
172
|
-
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
173
|
-
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
174
|
-
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
175
|
-
}, z.core.$strict>;
|
|
176
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
177
|
-
source: z.ZodLiteral<"merge">;
|
|
178
|
-
chart: z.ZodObject<{
|
|
179
|
-
name: z.ZodString;
|
|
180
|
-
description: z.ZodOptional<z.ZodString>;
|
|
181
|
-
tableName: z.ZodString;
|
|
182
|
-
metricQuery: z.ZodObject<{
|
|
183
|
-
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
184
|
-
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
185
|
-
metrics: z.ZodArray<z.ZodUnknown>;
|
|
186
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
187
|
-
sorts: z.ZodArray<z.ZodUnknown>;
|
|
188
|
-
limit: z.ZodOptional<z.ZodUnknown>;
|
|
189
|
-
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
190
|
-
}, z.core.$loose>;
|
|
191
|
-
chartConfig: z.ZodUnknown;
|
|
192
|
-
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
193
|
-
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
194
|
-
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
195
|
-
merge: z.ZodObject<{
|
|
196
|
-
primarySourceId: z.ZodString;
|
|
197
|
-
sources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
198
|
-
id: z.ZodString;
|
|
199
|
-
kind: z.ZodLiteral<"chart">;
|
|
200
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
201
|
-
id: z.ZodString;
|
|
202
|
-
kind: z.ZodLiteral<"query">;
|
|
203
|
-
metricQuery: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
204
|
-
}, z.core.$strict>], "kind">>;
|
|
205
|
-
joinKey: z.ZodArray<z.ZodUnknown>;
|
|
206
|
-
joinType: z.ZodEnum<{
|
|
207
|
-
full: "full";
|
|
208
|
-
inner: "inner";
|
|
209
|
-
left: "left";
|
|
210
|
-
}>;
|
|
211
|
-
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
212
|
-
}, z.core.$strict>;
|
|
213
|
-
}, z.core.$strict>;
|
|
214
|
-
}, z.core.$strict>], "source">;
|
|
215
|
-
}, z.core.$strict>], "type">>;
|
|
216
|
-
}, z.core.$strict>;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
}, z.core.$strict>], "source">>;
|
|
217
191
|
}, z.core.$strict>, z.ZodObject<{
|
|
218
192
|
type: z.ZodLiteral<"metadata">;
|
|
219
193
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -231,76 +205,67 @@ export declare const mcpCreateContentArgsSchema: z.ZodObject<{
|
|
|
231
205
|
slug: z.ZodString;
|
|
232
206
|
description: z.ZodString;
|
|
233
207
|
spaceSlug: z.ZodString;
|
|
234
|
-
schemaVersion: z.ZodLiteral<
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
208
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
209
|
+
markdown: z.ZodString;
|
|
210
|
+
charts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
211
|
+
source: z.ZodLiteral<"semantic">;
|
|
212
|
+
chart: z.ZodObject<{
|
|
213
|
+
name: z.ZodString;
|
|
214
|
+
description: z.ZodOptional<z.ZodString>;
|
|
215
|
+
tableName: z.ZodString;
|
|
216
|
+
metricQuery: z.ZodObject<{
|
|
217
|
+
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
218
|
+
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
219
|
+
metrics: z.ZodArray<z.ZodUnknown>;
|
|
220
|
+
filters: z.ZodOptional<z.ZodUnknown>;
|
|
221
|
+
sorts: z.ZodArray<z.ZodUnknown>;
|
|
222
|
+
limit: z.ZodOptional<z.ZodUnknown>;
|
|
223
|
+
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
224
|
+
}, z.core.$loose>;
|
|
225
|
+
chartConfig: z.ZodUnknown;
|
|
226
|
+
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
227
|
+
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
228
|
+
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
229
|
+
}, z.core.$strict>;
|
|
230
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
231
|
+
source: z.ZodLiteral<"merge">;
|
|
232
|
+
chart: z.ZodObject<{
|
|
233
|
+
name: z.ZodString;
|
|
234
|
+
description: z.ZodOptional<z.ZodString>;
|
|
235
|
+
tableName: z.ZodString;
|
|
236
|
+
metricQuery: z.ZodObject<{
|
|
237
|
+
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
238
|
+
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
239
|
+
metrics: z.ZodArray<z.ZodUnknown>;
|
|
240
|
+
filters: z.ZodOptional<z.ZodUnknown>;
|
|
241
|
+
sorts: z.ZodArray<z.ZodUnknown>;
|
|
242
|
+
limit: z.ZodOptional<z.ZodUnknown>;
|
|
243
|
+
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
244
|
+
}, z.core.$loose>;
|
|
245
|
+
chartConfig: z.ZodUnknown;
|
|
246
|
+
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
247
|
+
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
248
|
+
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
249
|
+
merge: z.ZodObject<{
|
|
250
|
+
primarySourceId: z.ZodString;
|
|
251
|
+
sources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
252
|
+
id: z.ZodString;
|
|
253
|
+
kind: z.ZodLiteral<"chart">;
|
|
254
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
255
|
+
id: z.ZodString;
|
|
256
|
+
kind: z.ZodLiteral<"query">;
|
|
257
|
+
metricQuery: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
258
|
+
}, z.core.$strict>], "kind">>;
|
|
259
|
+
joinKey: z.ZodArray<z.ZodUnknown>;
|
|
260
|
+
joinType: z.ZodEnum<{
|
|
261
|
+
full: "full";
|
|
262
|
+
inner: "inner";
|
|
263
|
+
left: "left";
|
|
264
|
+
}>;
|
|
265
|
+
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
240
266
|
}, z.core.$strict>;
|
|
241
|
-
}, z.core.$strict
|
|
242
|
-
|
|
243
|
-
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
244
|
-
source: z.ZodLiteral<"semantic">;
|
|
245
|
-
chart: z.ZodObject<{
|
|
246
|
-
name: z.ZodString;
|
|
247
|
-
description: z.ZodOptional<z.ZodString>;
|
|
248
|
-
tableName: z.ZodString;
|
|
249
|
-
metricQuery: z.ZodObject<{
|
|
250
|
-
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
251
|
-
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
252
|
-
metrics: z.ZodArray<z.ZodUnknown>;
|
|
253
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
254
|
-
sorts: z.ZodArray<z.ZodUnknown>;
|
|
255
|
-
limit: z.ZodOptional<z.ZodUnknown>;
|
|
256
|
-
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
257
|
-
}, z.core.$loose>;
|
|
258
|
-
chartConfig: z.ZodUnknown;
|
|
259
|
-
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
260
|
-
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
261
|
-
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
262
|
-
}, z.core.$strict>;
|
|
263
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
264
|
-
source: z.ZodLiteral<"merge">;
|
|
265
|
-
chart: z.ZodObject<{
|
|
266
|
-
name: z.ZodString;
|
|
267
|
-
description: z.ZodOptional<z.ZodString>;
|
|
268
|
-
tableName: z.ZodString;
|
|
269
|
-
metricQuery: z.ZodObject<{
|
|
270
|
-
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
271
|
-
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
272
|
-
metrics: z.ZodArray<z.ZodUnknown>;
|
|
273
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
274
|
-
sorts: z.ZodArray<z.ZodUnknown>;
|
|
275
|
-
limit: z.ZodOptional<z.ZodUnknown>;
|
|
276
|
-
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
277
|
-
}, z.core.$loose>;
|
|
278
|
-
chartConfig: z.ZodUnknown;
|
|
279
|
-
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
280
|
-
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
281
|
-
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
282
|
-
merge: z.ZodObject<{
|
|
283
|
-
primarySourceId: z.ZodString;
|
|
284
|
-
sources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
285
|
-
id: z.ZodString;
|
|
286
|
-
kind: z.ZodLiteral<"chart">;
|
|
287
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
288
|
-
id: z.ZodString;
|
|
289
|
-
kind: z.ZodLiteral<"query">;
|
|
290
|
-
metricQuery: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
291
|
-
}, z.core.$strict>], "kind">>;
|
|
292
|
-
joinKey: z.ZodArray<z.ZodUnknown>;
|
|
293
|
-
joinType: z.ZodEnum<{
|
|
294
|
-
full: "full";
|
|
295
|
-
inner: "inner";
|
|
296
|
-
left: "left";
|
|
297
|
-
}>;
|
|
298
|
-
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
299
|
-
}, z.core.$strict>;
|
|
300
|
-
}, z.core.$strict>;
|
|
301
|
-
}, z.core.$strict>], "source">;
|
|
302
|
-
}, z.core.$strict>], "type">>;
|
|
303
|
-
}, z.core.$strict>;
|
|
267
|
+
}, z.core.$strict>;
|
|
268
|
+
}, z.core.$strict>], "source">>;
|
|
304
269
|
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
|
|
305
270
|
slug: z.ZodString;
|
|
306
271
|
name: z.ZodString;
|
|
@@ -366,75 +331,66 @@ export declare const mcpEditContentArgsSchema: z.ZodObject<{
|
|
|
366
331
|
documentEdit: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
367
332
|
type: z.ZodLiteral<"content">;
|
|
368
333
|
baseVersionUuid: z.ZodString;
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
334
|
+
markdown: z.ZodString;
|
|
335
|
+
charts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
336
|
+
source: z.ZodLiteral<"semantic">;
|
|
337
|
+
chart: z.ZodObject<{
|
|
338
|
+
name: z.ZodString;
|
|
339
|
+
description: z.ZodOptional<z.ZodString>;
|
|
340
|
+
tableName: z.ZodString;
|
|
341
|
+
metricQuery: z.ZodObject<{
|
|
342
|
+
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
343
|
+
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
344
|
+
metrics: z.ZodArray<z.ZodUnknown>;
|
|
345
|
+
filters: z.ZodOptional<z.ZodUnknown>;
|
|
346
|
+
sorts: z.ZodArray<z.ZodUnknown>;
|
|
347
|
+
limit: z.ZodOptional<z.ZodUnknown>;
|
|
348
|
+
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
349
|
+
}, z.core.$loose>;
|
|
350
|
+
chartConfig: z.ZodUnknown;
|
|
351
|
+
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
352
|
+
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
353
|
+
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
354
|
+
}, z.core.$strict>;
|
|
355
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
356
|
+
source: z.ZodLiteral<"merge">;
|
|
357
|
+
chart: z.ZodObject<{
|
|
358
|
+
name: z.ZodString;
|
|
359
|
+
description: z.ZodOptional<z.ZodString>;
|
|
360
|
+
tableName: z.ZodString;
|
|
361
|
+
metricQuery: z.ZodObject<{
|
|
362
|
+
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
363
|
+
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
364
|
+
metrics: z.ZodArray<z.ZodUnknown>;
|
|
365
|
+
filters: z.ZodOptional<z.ZodUnknown>;
|
|
366
|
+
sorts: z.ZodArray<z.ZodUnknown>;
|
|
367
|
+
limit: z.ZodOptional<z.ZodUnknown>;
|
|
368
|
+
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
369
|
+
}, z.core.$loose>;
|
|
370
|
+
chartConfig: z.ZodUnknown;
|
|
371
|
+
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
372
|
+
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
373
|
+
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
374
|
+
merge: z.ZodObject<{
|
|
375
|
+
primarySourceId: z.ZodString;
|
|
376
|
+
sources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
377
|
+
id: z.ZodString;
|
|
378
|
+
kind: z.ZodLiteral<"chart">;
|
|
379
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
380
|
+
id: z.ZodString;
|
|
381
|
+
kind: z.ZodLiteral<"query">;
|
|
382
|
+
metricQuery: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
383
|
+
}, z.core.$strict>], "kind">>;
|
|
384
|
+
joinKey: z.ZodArray<z.ZodUnknown>;
|
|
385
|
+
joinType: z.ZodEnum<{
|
|
386
|
+
full: "full";
|
|
387
|
+
inner: "inner";
|
|
388
|
+
left: "left";
|
|
389
|
+
}>;
|
|
390
|
+
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
374
391
|
}, z.core.$strict>;
|
|
375
|
-
}, z.core.$strict
|
|
376
|
-
|
|
377
|
-
content: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
378
|
-
source: z.ZodLiteral<"semantic">;
|
|
379
|
-
chart: z.ZodObject<{
|
|
380
|
-
name: z.ZodString;
|
|
381
|
-
description: z.ZodOptional<z.ZodString>;
|
|
382
|
-
tableName: z.ZodString;
|
|
383
|
-
metricQuery: z.ZodObject<{
|
|
384
|
-
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
385
|
-
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
386
|
-
metrics: z.ZodArray<z.ZodUnknown>;
|
|
387
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
388
|
-
sorts: z.ZodArray<z.ZodUnknown>;
|
|
389
|
-
limit: z.ZodOptional<z.ZodUnknown>;
|
|
390
|
-
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
391
|
-
}, z.core.$loose>;
|
|
392
|
-
chartConfig: z.ZodUnknown;
|
|
393
|
-
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
394
|
-
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
395
|
-
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
396
|
-
}, z.core.$strict>;
|
|
397
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
398
|
-
source: z.ZodLiteral<"merge">;
|
|
399
|
-
chart: z.ZodObject<{
|
|
400
|
-
name: z.ZodString;
|
|
401
|
-
description: z.ZodOptional<z.ZodString>;
|
|
402
|
-
tableName: z.ZodString;
|
|
403
|
-
metricQuery: z.ZodObject<{
|
|
404
|
-
exploreName: z.ZodOptional<z.ZodUnknown>;
|
|
405
|
-
dimensions: z.ZodArray<z.ZodUnknown>;
|
|
406
|
-
metrics: z.ZodArray<z.ZodUnknown>;
|
|
407
|
-
filters: z.ZodOptional<z.ZodUnknown>;
|
|
408
|
-
sorts: z.ZodArray<z.ZodUnknown>;
|
|
409
|
-
limit: z.ZodOptional<z.ZodUnknown>;
|
|
410
|
-
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
411
|
-
}, z.core.$loose>;
|
|
412
|
-
chartConfig: z.ZodUnknown;
|
|
413
|
-
tableConfig: z.ZodOptional<z.ZodUnknown>;
|
|
414
|
-
pivotConfig: z.ZodOptional<z.ZodUnknown>;
|
|
415
|
-
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
416
|
-
merge: z.ZodObject<{
|
|
417
|
-
primarySourceId: z.ZodString;
|
|
418
|
-
sources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
419
|
-
id: z.ZodString;
|
|
420
|
-
kind: z.ZodLiteral<"chart">;
|
|
421
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
422
|
-
id: z.ZodString;
|
|
423
|
-
kind: z.ZodLiteral<"query">;
|
|
424
|
-
metricQuery: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
425
|
-
}, z.core.$strict>], "kind">>;
|
|
426
|
-
joinKey: z.ZodArray<z.ZodUnknown>;
|
|
427
|
-
joinType: z.ZodEnum<{
|
|
428
|
-
full: "full";
|
|
429
|
-
inner: "inner";
|
|
430
|
-
left: "left";
|
|
431
|
-
}>;
|
|
432
|
-
tableCalculations: z.ZodArray<z.ZodUnknown>;
|
|
433
|
-
}, z.core.$strict>;
|
|
434
|
-
}, z.core.$strict>;
|
|
435
|
-
}, z.core.$strict>], "source">;
|
|
436
|
-
}, z.core.$strict>], "type">>;
|
|
437
|
-
}, z.core.$strict>;
|
|
392
|
+
}, z.core.$strict>;
|
|
393
|
+
}, z.core.$strict>], "source">>;
|
|
438
394
|
}, z.core.$strict>, z.ZodObject<{
|
|
439
395
|
type: z.ZodLiteral<"metadata">;
|
|
440
396
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpDocumentContent.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/mcpDocumentContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiDxB,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"mcpDocumentContent.d.ts","sourceRoot":"","sources":["../../../../../../src/ee/AiAgent/schemas/tools/mcpDocumentContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiDxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAajC,CAAC;AAWH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAa5B,CAAC;AAEN,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA0BhC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMrC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;iBAgBnC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYnC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mcpEditContentArgsSchema = exports.mcpReadContentArgsSchema = exports.mcpCreateContentArgsSchema = exports.mcpDocumentEditSchema = exports.documentAsCodeSchema = exports.
|
|
3
|
+
exports.mcpEditContentArgsSchema = exports.mcpReadContentArgsSchema = exports.mcpCreateContentArgsSchema = exports.mcpDocumentEditSchema = exports.documentAsCodeSchema = exports.mcpDocumentChartSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const toolCreateContentArgs_1 = require("./toolCreateContentArgs");
|
|
6
6
|
const toolEditContentArgs_1 = require("./toolEditContentArgs");
|
|
@@ -38,44 +38,36 @@ const mergeSchema = zod_1.z
|
|
|
38
38
|
})
|
|
39
39
|
.strict()
|
|
40
40
|
.describe('Durable SavedMergeQuery. Query sources contain full metric queries, never query UUIDs or result rows.');
|
|
41
|
-
exports.
|
|
41
|
+
exports.mcpDocumentChartSchema = zod_1.z.discriminatedUnion('source', [
|
|
42
42
|
zod_1.z
|
|
43
43
|
.object({
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
source: zod_1.z.literal('semantic'),
|
|
45
|
+
chart: chartSchema,
|
|
46
46
|
})
|
|
47
47
|
.strict(),
|
|
48
48
|
zod_1.z
|
|
49
49
|
.object({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
zod_1.z
|
|
53
|
-
.object({
|
|
54
|
-
source: zod_1.z.literal('semantic'),
|
|
55
|
-
chart: chartSchema,
|
|
56
|
-
})
|
|
57
|
-
.strict(),
|
|
58
|
-
zod_1.z
|
|
59
|
-
.object({
|
|
60
|
-
source: zod_1.z.literal('merge'),
|
|
61
|
-
chart: chartSchema.extend({ merge: mergeSchema }),
|
|
62
|
-
})
|
|
63
|
-
.strict(),
|
|
64
|
-
]),
|
|
50
|
+
source: zod_1.z.literal('merge'),
|
|
51
|
+
chart: chartSchema.extend({ merge: mergeSchema }),
|
|
65
52
|
})
|
|
66
53
|
.strict(),
|
|
67
54
|
]);
|
|
55
|
+
const DOCUMENT_MARKDOWN_DESCRIPTION = 'Document body in Markdown. Place each chart as its own block: a line with only <document-chart id="KEY">, separated from text by blank lines. KEY is a key of `charts`: an existing chart id (c1, c2, …) or a new key. Charts not placed are removed.';
|
|
56
|
+
const documentChartsSchema = zod_1.z
|
|
57
|
+
.record(zod_1.z.string(), exports.mcpDocumentChartSchema)
|
|
58
|
+
.describe('Full chart definitions for every placed chart, by key. Keep existing charts under their id (c1, c2, …); use a new key (e.g. "revenue") for a new chart and the server assigns it the next cN id. Use {} when there are none.');
|
|
68
59
|
exports.documentAsCodeSchema = zod_1.z
|
|
69
60
|
.object({
|
|
70
61
|
name: zod_1.z.string().min(1),
|
|
71
62
|
slug: zod_1.z.string().min(1),
|
|
72
63
|
description: zod_1.z.string(),
|
|
73
64
|
spaceSlug: zod_1.z.string().min(1),
|
|
74
|
-
schemaVersion: zod_1.z.literal(
|
|
75
|
-
|
|
65
|
+
schemaVersion: zod_1.z.literal(2),
|
|
66
|
+
markdown: zod_1.z.string().describe(DOCUMENT_MARKDOWN_DESCRIPTION),
|
|
67
|
+
charts: documentChartsSchema,
|
|
76
68
|
})
|
|
77
69
|
.strict()
|
|
78
|
-
.describe('Document schema version
|
|
70
|
+
.describe('Document schema version 2: Markdown with chart tags, plus the charts they reference. Headings come from Markdown.');
|
|
79
71
|
exports.mcpDocumentEditSchema = zod_1.z.discriminatedUnion('type', [
|
|
80
72
|
zod_1.z
|
|
81
73
|
.object({
|
|
@@ -84,7 +76,10 @@ exports.mcpDocumentEditSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
84
76
|
.string()
|
|
85
77
|
.uuid()
|
|
86
78
|
.describe('Version UUID from read_content. Stale edits fail; reload and retry.'),
|
|
87
|
-
|
|
79
|
+
markdown: zod_1.z
|
|
80
|
+
.string()
|
|
81
|
+
.describe(`Complete replacement Markdown. ${DOCUMENT_MARKDOWN_DESCRIPTION}`),
|
|
82
|
+
charts: documentChartsSchema,
|
|
88
83
|
})
|
|
89
84
|
.strict(),
|
|
90
85
|
zod_1.z
|
|
@@ -125,6 +120,6 @@ exports.mcpEditContentArgsSchema = toolEditContentArgs_1.toolEditContentArgsSche
|
|
|
125
120
|
patch: toolEditContentArgs_1.toolEditContentArgsSchema.shape.patch.optional(),
|
|
126
121
|
documentEdit: exports.mcpDocumentEditSchema
|
|
127
122
|
.optional()
|
|
128
|
-
.describe('Required for Documents instead of patch. Replace
|
|
123
|
+
.describe('Required for Documents instead of patch. Replace the Markdown and charts with baseVersionUuid, or update metadata separately.'),
|
|
129
124
|
});
|
|
130
125
|
//# sourceMappingURL=mcpDocumentContent.js.map
|