@lanonasis/cli 3.9.6 → 3.9.7
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/CHANGELOG.md +34 -0
- package/README.md +20 -4
- package/dist/core/welcome.js +4 -4
- package/dist/index.js +117 -12
- package/dist/mcp/schemas/tool-schemas.d.ts +186 -538
- package/dist/mcp/schemas/tool-schemas.js +7 -7
- package/dist/utils/api.d.ts +24 -0
- package/dist/utils/api.js +21 -0
- package/dist/utils/config.d.ts +10 -1
- package/dist/utils/config.js +53 -16
- package/package.json +22 -22
|
@@ -6,123 +6,70 @@ import { z } from 'zod';
|
|
|
6
6
|
export declare const MemoryCreateSchema: z.ZodObject<{
|
|
7
7
|
title: z.ZodString;
|
|
8
8
|
content: z.ZodString;
|
|
9
|
-
memory_type: z.ZodDefault<z.ZodEnum<
|
|
10
|
-
|
|
9
|
+
memory_type: z.ZodDefault<z.ZodEnum<{
|
|
10
|
+
context: "context";
|
|
11
|
+
reference: "reference";
|
|
12
|
+
note: "note";
|
|
13
|
+
}>>;
|
|
14
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
15
|
topic_id: z.ZodOptional<z.ZodString>;
|
|
12
16
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
13
|
-
},
|
|
14
|
-
title?: string;
|
|
15
|
-
content?: string;
|
|
16
|
-
tags?: string[];
|
|
17
|
-
memory_type?: "context" | "reference" | "note";
|
|
18
|
-
topic_id?: string;
|
|
19
|
-
metadata?: Record<string, any>;
|
|
20
|
-
}, {
|
|
21
|
-
title?: string;
|
|
22
|
-
content?: string;
|
|
23
|
-
tags?: string[];
|
|
24
|
-
memory_type?: "context" | "reference" | "note";
|
|
25
|
-
topic_id?: string;
|
|
26
|
-
metadata?: Record<string, any>;
|
|
27
|
-
}>;
|
|
17
|
+
}, z.core.$strip>;
|
|
28
18
|
export declare const MemorySearchSchema: z.ZodObject<{
|
|
29
19
|
query: z.ZodString;
|
|
30
20
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
31
21
|
threshold: z.ZodDefault<z.ZodNumber>;
|
|
32
22
|
topic_id: z.ZodOptional<z.ZodString>;
|
|
33
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
34
|
-
memory_type: z.ZodOptional<z.ZodEnum<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
topic_id?: string;
|
|
41
|
-
threshold?: number;
|
|
42
|
-
}, {
|
|
43
|
-
query?: string;
|
|
44
|
-
tags?: string[];
|
|
45
|
-
limit?: number;
|
|
46
|
-
memory_type?: "context" | "reference" | "note";
|
|
47
|
-
topic_id?: string;
|
|
48
|
-
threshold?: number;
|
|
49
|
-
}>;
|
|
23
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
memory_type: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
context: "context";
|
|
26
|
+
reference: "reference";
|
|
27
|
+
note: "note";
|
|
28
|
+
}>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
50
30
|
export declare const MemoryUpdateSchema: z.ZodObject<{
|
|
51
31
|
memory_id: z.ZodString;
|
|
52
32
|
title: z.ZodOptional<z.ZodString>;
|
|
53
33
|
content: z.ZodOptional<z.ZodString>;
|
|
54
|
-
memory_type: z.ZodOptional<z.ZodEnum<
|
|
55
|
-
|
|
34
|
+
memory_type: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
context: "context";
|
|
36
|
+
reference: "reference";
|
|
37
|
+
note: "note";
|
|
38
|
+
}>>;
|
|
39
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
56
40
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
57
|
-
},
|
|
58
|
-
title?: string;
|
|
59
|
-
content?: string;
|
|
60
|
-
tags?: string[];
|
|
61
|
-
memory_type?: "context" | "reference" | "note";
|
|
62
|
-
memory_id?: string;
|
|
63
|
-
metadata?: Record<string, any>;
|
|
64
|
-
}, {
|
|
65
|
-
title?: string;
|
|
66
|
-
content?: string;
|
|
67
|
-
tags?: string[];
|
|
68
|
-
memory_type?: "context" | "reference" | "note";
|
|
69
|
-
memory_id?: string;
|
|
70
|
-
metadata?: Record<string, any>;
|
|
71
|
-
}>;
|
|
41
|
+
}, z.core.$strip>;
|
|
72
42
|
export declare const MemoryDeleteSchema: z.ZodObject<{
|
|
73
43
|
memory_id: z.ZodString;
|
|
74
44
|
confirm: z.ZodDefault<z.ZodBoolean>;
|
|
75
|
-
},
|
|
76
|
-
confirm?: boolean;
|
|
77
|
-
memory_id?: string;
|
|
78
|
-
}, {
|
|
79
|
-
confirm?: boolean;
|
|
80
|
-
memory_id?: string;
|
|
81
|
-
}>;
|
|
45
|
+
}, z.core.$strip>;
|
|
82
46
|
export declare const MemoryListSchema: z.ZodObject<{
|
|
83
47
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
84
48
|
offset: z.ZodDefault<z.ZodNumber>;
|
|
85
49
|
topic_id: z.ZodOptional<z.ZodString>;
|
|
86
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
87
|
-
memory_type: z.ZodOptional<z.ZodEnum<
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
order
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
memory_type?: "context" | "reference" | "note";
|
|
103
|
-
topic_id?: string;
|
|
104
|
-
sort_by?: "title" | "created_at" | "updated_at";
|
|
105
|
-
order?: "desc" | "asc";
|
|
106
|
-
}>;
|
|
50
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
51
|
+
memory_type: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
context: "context";
|
|
53
|
+
reference: "reference";
|
|
54
|
+
note: "note";
|
|
55
|
+
}>>;
|
|
56
|
+
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
57
|
+
title: "title";
|
|
58
|
+
created_at: "created_at";
|
|
59
|
+
updated_at: "updated_at";
|
|
60
|
+
}>>;
|
|
61
|
+
order: z.ZodDefault<z.ZodEnum<{
|
|
62
|
+
desc: "desc";
|
|
63
|
+
asc: "asc";
|
|
64
|
+
}>>;
|
|
65
|
+
}, z.core.$strip>;
|
|
107
66
|
export declare const TopicCreateSchema: z.ZodObject<{
|
|
108
67
|
name: z.ZodString;
|
|
109
68
|
description: z.ZodOptional<z.ZodString>;
|
|
110
69
|
parent_id: z.ZodOptional<z.ZodString>;
|
|
111
70
|
color: z.ZodOptional<z.ZodString>;
|
|
112
71
|
icon: z.ZodOptional<z.ZodString>;
|
|
113
|
-
},
|
|
114
|
-
name?: string;
|
|
115
|
-
color?: string;
|
|
116
|
-
description?: string;
|
|
117
|
-
icon?: string;
|
|
118
|
-
parent_id?: string;
|
|
119
|
-
}, {
|
|
120
|
-
name?: string;
|
|
121
|
-
color?: string;
|
|
122
|
-
description?: string;
|
|
123
|
-
icon?: string;
|
|
124
|
-
parent_id?: string;
|
|
125
|
-
}>;
|
|
72
|
+
}, z.core.$strip>;
|
|
126
73
|
export declare const TopicUpdateSchema: z.ZodObject<{
|
|
127
74
|
topic_id: z.ZodString;
|
|
128
75
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -130,140 +77,83 @@ export declare const TopicUpdateSchema: z.ZodObject<{
|
|
|
130
77
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
78
|
color: z.ZodOptional<z.ZodString>;
|
|
132
79
|
icon: z.ZodOptional<z.ZodString>;
|
|
133
|
-
},
|
|
134
|
-
name?: string;
|
|
135
|
-
color?: string;
|
|
136
|
-
topic_id?: string;
|
|
137
|
-
description?: string;
|
|
138
|
-
icon?: string;
|
|
139
|
-
parent_id?: string;
|
|
140
|
-
}, {
|
|
141
|
-
name?: string;
|
|
142
|
-
color?: string;
|
|
143
|
-
topic_id?: string;
|
|
144
|
-
description?: string;
|
|
145
|
-
icon?: string;
|
|
146
|
-
parent_id?: string;
|
|
147
|
-
}>;
|
|
80
|
+
}, z.core.$strip>;
|
|
148
81
|
export declare const TopicListSchema: z.ZodObject<{
|
|
149
82
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
150
83
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
84
|
include_children: z.ZodDefault<z.ZodBoolean>;
|
|
152
|
-
},
|
|
153
|
-
limit?: number;
|
|
154
|
-
parent_id?: string;
|
|
155
|
-
include_children?: boolean;
|
|
156
|
-
}, {
|
|
157
|
-
limit?: number;
|
|
158
|
-
parent_id?: string;
|
|
159
|
-
include_children?: boolean;
|
|
160
|
-
}>;
|
|
85
|
+
}, z.core.$strip>;
|
|
161
86
|
export declare const ApiKeyCreateSchema: z.ZodObject<{
|
|
162
87
|
name: z.ZodString;
|
|
163
|
-
permissions: z.ZodDefault<z.ZodArray<z.ZodEnum<
|
|
88
|
+
permissions: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
89
|
+
delete: "delete";
|
|
90
|
+
admin: "admin";
|
|
91
|
+
read: "read";
|
|
92
|
+
write: "write";
|
|
93
|
+
}>>>;
|
|
164
94
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
165
|
-
},
|
|
166
|
-
name?: string;
|
|
167
|
-
permissions?: ("delete" | "admin" | "read" | "write")[];
|
|
168
|
-
expires_at?: string;
|
|
169
|
-
}, {
|
|
170
|
-
name?: string;
|
|
171
|
-
permissions?: ("delete" | "admin" | "read" | "write")[];
|
|
172
|
-
expires_at?: string;
|
|
173
|
-
}>;
|
|
95
|
+
}, z.core.$strip>;
|
|
174
96
|
export declare const ApiKeyRevokeSchema: z.ZodObject<{
|
|
175
97
|
key_id: z.ZodString;
|
|
176
98
|
reason: z.ZodOptional<z.ZodString>;
|
|
177
|
-
},
|
|
178
|
-
reason?: string;
|
|
179
|
-
key_id?: string;
|
|
180
|
-
}, {
|
|
181
|
-
reason?: string;
|
|
182
|
-
key_id?: string;
|
|
183
|
-
}>;
|
|
99
|
+
}, z.core.$strip>;
|
|
184
100
|
export declare const SystemHealthSchema: z.ZodObject<{
|
|
185
101
|
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
186
102
|
include_dependencies: z.ZodDefault<z.ZodBoolean>;
|
|
187
103
|
timeout: z.ZodDefault<z.ZodNumber>;
|
|
188
|
-
},
|
|
189
|
-
verbose?: boolean;
|
|
190
|
-
timeout?: number;
|
|
191
|
-
include_dependencies?: boolean;
|
|
192
|
-
}, {
|
|
193
|
-
verbose?: boolean;
|
|
194
|
-
timeout?: number;
|
|
195
|
-
include_dependencies?: boolean;
|
|
196
|
-
}>;
|
|
104
|
+
}, z.core.$strip>;
|
|
197
105
|
export declare const SystemConfigSchema: z.ZodObject<{
|
|
198
|
-
action: z.ZodEnum<
|
|
106
|
+
action: z.ZodEnum<{
|
|
107
|
+
get: "get";
|
|
108
|
+
set: "set";
|
|
109
|
+
reset: "reset";
|
|
110
|
+
}>;
|
|
199
111
|
key: z.ZodOptional<z.ZodString>;
|
|
200
112
|
value: z.ZodOptional<z.ZodAny>;
|
|
201
|
-
scope: z.ZodDefault<z.ZodEnum<
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
key?: string;
|
|
207
|
-
}, {
|
|
208
|
-
value?: any;
|
|
209
|
-
action?: "get" | "set" | "reset";
|
|
210
|
-
scope?: "user" | "global";
|
|
211
|
-
key?: string;
|
|
212
|
-
}>;
|
|
113
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
114
|
+
user: "user";
|
|
115
|
+
global: "global";
|
|
116
|
+
}>>;
|
|
117
|
+
}, z.core.$strip>;
|
|
213
118
|
export declare const BulkOperationSchema: z.ZodObject<{
|
|
214
|
-
operation: z.ZodEnum<
|
|
215
|
-
|
|
216
|
-
|
|
119
|
+
operation: z.ZodEnum<{
|
|
120
|
+
create: "create";
|
|
121
|
+
delete: "delete";
|
|
122
|
+
update: "update";
|
|
123
|
+
}>;
|
|
124
|
+
entity_type: z.ZodEnum<{
|
|
125
|
+
topic: "topic";
|
|
126
|
+
memory: "memory";
|
|
127
|
+
apikey: "apikey";
|
|
128
|
+
}>;
|
|
129
|
+
items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
217
130
|
transaction: z.ZodDefault<z.ZodBoolean>;
|
|
218
|
-
},
|
|
219
|
-
operation?: "create" | "delete" | "update";
|
|
220
|
-
items?: Record<string, any>[];
|
|
221
|
-
entity_type?: "topic" | "memory" | "apikey";
|
|
222
|
-
transaction?: boolean;
|
|
223
|
-
}, {
|
|
224
|
-
operation?: "create" | "delete" | "update";
|
|
225
|
-
items?: Record<string, any>[];
|
|
226
|
-
entity_type?: "topic" | "memory" | "apikey";
|
|
227
|
-
transaction?: boolean;
|
|
228
|
-
}>;
|
|
131
|
+
}, z.core.$strip>;
|
|
229
132
|
export declare const ImportExportSchema: z.ZodObject<{
|
|
230
|
-
action: z.ZodEnum<
|
|
231
|
-
|
|
232
|
-
|
|
133
|
+
action: z.ZodEnum<{
|
|
134
|
+
import: "import";
|
|
135
|
+
export: "export";
|
|
136
|
+
}>;
|
|
137
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
138
|
+
json: "json";
|
|
139
|
+
csv: "csv";
|
|
140
|
+
markdown: "markdown";
|
|
141
|
+
}>>;
|
|
142
|
+
entity_type: z.ZodDefault<z.ZodEnum<{
|
|
143
|
+
topic: "topic";
|
|
144
|
+
memory: "memory";
|
|
145
|
+
all: "all";
|
|
146
|
+
}>>;
|
|
233
147
|
file_path: z.ZodOptional<z.ZodString>;
|
|
234
148
|
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
235
|
-
},
|
|
236
|
-
action?: "import" | "export";
|
|
237
|
-
format?: "json" | "csv" | "markdown";
|
|
238
|
-
entity_type?: "topic" | "memory" | "all";
|
|
239
|
-
file_path?: string;
|
|
240
|
-
filters?: Record<string, any>;
|
|
241
|
-
}, {
|
|
242
|
-
action?: "import" | "export";
|
|
243
|
-
format?: "json" | "csv" | "markdown";
|
|
244
|
-
entity_type?: "topic" | "memory" | "all";
|
|
245
|
-
file_path?: string;
|
|
246
|
-
filters?: Record<string, any>;
|
|
247
|
-
}>;
|
|
149
|
+
}, z.core.$strip>;
|
|
248
150
|
export declare const ToolExecutionSchema: z.ZodObject<{
|
|
249
151
|
tool_name: z.ZodString;
|
|
250
152
|
arguments: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
251
153
|
timeout: z.ZodDefault<z.ZodNumber>;
|
|
252
154
|
retry_on_failure: z.ZodDefault<z.ZodBoolean>;
|
|
253
155
|
max_retries: z.ZodDefault<z.ZodNumber>;
|
|
254
|
-
},
|
|
255
|
-
timeout?: number;
|
|
256
|
-
arguments?: Record<string, any>;
|
|
257
|
-
tool_name?: string;
|
|
258
|
-
retry_on_failure?: boolean;
|
|
259
|
-
max_retries?: number;
|
|
260
|
-
}, {
|
|
261
|
-
timeout?: number;
|
|
262
|
-
arguments?: Record<string, any>;
|
|
263
|
-
tool_name?: string;
|
|
264
|
-
retry_on_failure?: boolean;
|
|
265
|
-
max_retries?: number;
|
|
266
|
-
}>;
|
|
156
|
+
}, z.core.$strip>;
|
|
267
157
|
export declare const SuccessResponseSchema: z.ZodObject<{
|
|
268
158
|
success: z.ZodDefault<z.ZodBoolean>;
|
|
269
159
|
data: z.ZodAny;
|
|
@@ -272,34 +162,8 @@ export declare const SuccessResponseSchema: z.ZodObject<{
|
|
|
272
162
|
timestamp: z.ZodString;
|
|
273
163
|
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
274
164
|
request_id: z.ZodOptional<z.ZodString>;
|
|
275
|
-
},
|
|
276
|
-
|
|
277
|
-
duration_ms?: number;
|
|
278
|
-
request_id?: string;
|
|
279
|
-
}, {
|
|
280
|
-
timestamp?: string;
|
|
281
|
-
duration_ms?: number;
|
|
282
|
-
request_id?: string;
|
|
283
|
-
}>>;
|
|
284
|
-
}, "strip", z.ZodTypeAny, {
|
|
285
|
-
success?: boolean;
|
|
286
|
-
message?: string;
|
|
287
|
-
data?: any;
|
|
288
|
-
metadata?: {
|
|
289
|
-
timestamp?: string;
|
|
290
|
-
duration_ms?: number;
|
|
291
|
-
request_id?: string;
|
|
292
|
-
};
|
|
293
|
-
}, {
|
|
294
|
-
success?: boolean;
|
|
295
|
-
message?: string;
|
|
296
|
-
data?: any;
|
|
297
|
-
metadata?: {
|
|
298
|
-
timestamp?: string;
|
|
299
|
-
duration_ms?: number;
|
|
300
|
-
request_id?: string;
|
|
301
|
-
};
|
|
302
|
-
}>;
|
|
165
|
+
}, z.core.$strip>>;
|
|
166
|
+
}, z.core.$strip>;
|
|
303
167
|
export declare const ErrorResponseSchema: z.ZodObject<{
|
|
304
168
|
success: z.ZodDefault<z.ZodBoolean>;
|
|
305
169
|
error: z.ZodObject<{
|
|
@@ -307,52 +171,12 @@ export declare const ErrorResponseSchema: z.ZodObject<{
|
|
|
307
171
|
message: z.ZodString;
|
|
308
172
|
details: z.ZodOptional<z.ZodAny>;
|
|
309
173
|
stack: z.ZodOptional<z.ZodString>;
|
|
310
|
-
},
|
|
311
|
-
message?: string;
|
|
312
|
-
code?: string;
|
|
313
|
-
details?: any;
|
|
314
|
-
stack?: string;
|
|
315
|
-
}, {
|
|
316
|
-
message?: string;
|
|
317
|
-
code?: string;
|
|
318
|
-
details?: any;
|
|
319
|
-
stack?: string;
|
|
320
|
-
}>;
|
|
174
|
+
}, z.core.$strip>;
|
|
321
175
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
322
176
|
timestamp: z.ZodString;
|
|
323
177
|
request_id: z.ZodOptional<z.ZodString>;
|
|
324
|
-
},
|
|
325
|
-
|
|
326
|
-
request_id?: string;
|
|
327
|
-
}, {
|
|
328
|
-
timestamp?: string;
|
|
329
|
-
request_id?: string;
|
|
330
|
-
}>>;
|
|
331
|
-
}, "strip", z.ZodTypeAny, {
|
|
332
|
-
success?: boolean;
|
|
333
|
-
error?: {
|
|
334
|
-
message?: string;
|
|
335
|
-
code?: string;
|
|
336
|
-
details?: any;
|
|
337
|
-
stack?: string;
|
|
338
|
-
};
|
|
339
|
-
metadata?: {
|
|
340
|
-
timestamp?: string;
|
|
341
|
-
request_id?: string;
|
|
342
|
-
};
|
|
343
|
-
}, {
|
|
344
|
-
success?: boolean;
|
|
345
|
-
error?: {
|
|
346
|
-
message?: string;
|
|
347
|
-
code?: string;
|
|
348
|
-
details?: any;
|
|
349
|
-
stack?: string;
|
|
350
|
-
};
|
|
351
|
-
metadata?: {
|
|
352
|
-
timestamp?: string;
|
|
353
|
-
request_id?: string;
|
|
354
|
-
};
|
|
355
|
-
}>;
|
|
178
|
+
}, z.core.$strip>>;
|
|
179
|
+
}, z.core.$strip>;
|
|
356
180
|
export declare class SchemaValidator {
|
|
357
181
|
/**
|
|
358
182
|
* Validate data against a schema
|
|
@@ -378,104 +202,63 @@ export declare const MCPSchemas: {
|
|
|
378
202
|
create: z.ZodObject<{
|
|
379
203
|
title: z.ZodString;
|
|
380
204
|
content: z.ZodString;
|
|
381
|
-
memory_type: z.ZodDefault<z.ZodEnum<
|
|
382
|
-
|
|
205
|
+
memory_type: z.ZodDefault<z.ZodEnum<{
|
|
206
|
+
context: "context";
|
|
207
|
+
reference: "reference";
|
|
208
|
+
note: "note";
|
|
209
|
+
}>>;
|
|
210
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
383
211
|
topic_id: z.ZodOptional<z.ZodString>;
|
|
384
212
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
385
|
-
},
|
|
386
|
-
title?: string;
|
|
387
|
-
content?: string;
|
|
388
|
-
tags?: string[];
|
|
389
|
-
memory_type?: "context" | "reference" | "note";
|
|
390
|
-
topic_id?: string;
|
|
391
|
-
metadata?: Record<string, any>;
|
|
392
|
-
}, {
|
|
393
|
-
title?: string;
|
|
394
|
-
content?: string;
|
|
395
|
-
tags?: string[];
|
|
396
|
-
memory_type?: "context" | "reference" | "note";
|
|
397
|
-
topic_id?: string;
|
|
398
|
-
metadata?: Record<string, any>;
|
|
399
|
-
}>;
|
|
213
|
+
}, z.core.$strip>;
|
|
400
214
|
search: z.ZodObject<{
|
|
401
215
|
query: z.ZodString;
|
|
402
216
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
403
217
|
threshold: z.ZodDefault<z.ZodNumber>;
|
|
404
218
|
topic_id: z.ZodOptional<z.ZodString>;
|
|
405
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
406
|
-
memory_type: z.ZodOptional<z.ZodEnum<
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
topic_id?: string;
|
|
413
|
-
threshold?: number;
|
|
414
|
-
}, {
|
|
415
|
-
query?: string;
|
|
416
|
-
tags?: string[];
|
|
417
|
-
limit?: number;
|
|
418
|
-
memory_type?: "context" | "reference" | "note";
|
|
419
|
-
topic_id?: string;
|
|
420
|
-
threshold?: number;
|
|
421
|
-
}>;
|
|
219
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
220
|
+
memory_type: z.ZodOptional<z.ZodEnum<{
|
|
221
|
+
context: "context";
|
|
222
|
+
reference: "reference";
|
|
223
|
+
note: "note";
|
|
224
|
+
}>>;
|
|
225
|
+
}, z.core.$strip>;
|
|
422
226
|
update: z.ZodObject<{
|
|
423
227
|
memory_id: z.ZodString;
|
|
424
228
|
title: z.ZodOptional<z.ZodString>;
|
|
425
229
|
content: z.ZodOptional<z.ZodString>;
|
|
426
|
-
memory_type: z.ZodOptional<z.ZodEnum<
|
|
427
|
-
|
|
230
|
+
memory_type: z.ZodOptional<z.ZodEnum<{
|
|
231
|
+
context: "context";
|
|
232
|
+
reference: "reference";
|
|
233
|
+
note: "note";
|
|
234
|
+
}>>;
|
|
235
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
428
236
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
429
|
-
},
|
|
430
|
-
title?: string;
|
|
431
|
-
content?: string;
|
|
432
|
-
tags?: string[];
|
|
433
|
-
memory_type?: "context" | "reference" | "note";
|
|
434
|
-
memory_id?: string;
|
|
435
|
-
metadata?: Record<string, any>;
|
|
436
|
-
}, {
|
|
437
|
-
title?: string;
|
|
438
|
-
content?: string;
|
|
439
|
-
tags?: string[];
|
|
440
|
-
memory_type?: "context" | "reference" | "note";
|
|
441
|
-
memory_id?: string;
|
|
442
|
-
metadata?: Record<string, any>;
|
|
443
|
-
}>;
|
|
237
|
+
}, z.core.$strip>;
|
|
444
238
|
delete: z.ZodObject<{
|
|
445
239
|
memory_id: z.ZodString;
|
|
446
240
|
confirm: z.ZodDefault<z.ZodBoolean>;
|
|
447
|
-
},
|
|
448
|
-
confirm?: boolean;
|
|
449
|
-
memory_id?: string;
|
|
450
|
-
}, {
|
|
451
|
-
confirm?: boolean;
|
|
452
|
-
memory_id?: string;
|
|
453
|
-
}>;
|
|
241
|
+
}, z.core.$strip>;
|
|
454
242
|
list: z.ZodObject<{
|
|
455
243
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
456
244
|
offset: z.ZodDefault<z.ZodNumber>;
|
|
457
245
|
topic_id: z.ZodOptional<z.ZodString>;
|
|
458
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
459
|
-
memory_type: z.ZodOptional<z.ZodEnum<
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
order
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
memory_type?: "context" | "reference" | "note";
|
|
475
|
-
topic_id?: string;
|
|
476
|
-
sort_by?: "title" | "created_at" | "updated_at";
|
|
477
|
-
order?: "desc" | "asc";
|
|
478
|
-
}>;
|
|
246
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
247
|
+
memory_type: z.ZodOptional<z.ZodEnum<{
|
|
248
|
+
context: "context";
|
|
249
|
+
reference: "reference";
|
|
250
|
+
note: "note";
|
|
251
|
+
}>>;
|
|
252
|
+
sort_by: z.ZodDefault<z.ZodEnum<{
|
|
253
|
+
title: "title";
|
|
254
|
+
created_at: "created_at";
|
|
255
|
+
updated_at: "updated_at";
|
|
256
|
+
}>>;
|
|
257
|
+
order: z.ZodDefault<z.ZodEnum<{
|
|
258
|
+
desc: "desc";
|
|
259
|
+
asc: "asc";
|
|
260
|
+
}>>;
|
|
261
|
+
}, z.core.$strip>;
|
|
479
262
|
};
|
|
480
263
|
topic: {
|
|
481
264
|
create: z.ZodObject<{
|
|
@@ -484,19 +267,7 @@ export declare const MCPSchemas: {
|
|
|
484
267
|
parent_id: z.ZodOptional<z.ZodString>;
|
|
485
268
|
color: z.ZodOptional<z.ZodString>;
|
|
486
269
|
icon: z.ZodOptional<z.ZodString>;
|
|
487
|
-
},
|
|
488
|
-
name?: string;
|
|
489
|
-
color?: string;
|
|
490
|
-
description?: string;
|
|
491
|
-
icon?: string;
|
|
492
|
-
parent_id?: string;
|
|
493
|
-
}, {
|
|
494
|
-
name?: string;
|
|
495
|
-
color?: string;
|
|
496
|
-
description?: string;
|
|
497
|
-
icon?: string;
|
|
498
|
-
parent_id?: string;
|
|
499
|
-
}>;
|
|
270
|
+
}, z.core.$strip>;
|
|
500
271
|
update: z.ZodObject<{
|
|
501
272
|
topic_id: z.ZodString;
|
|
502
273
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -504,146 +275,89 @@ export declare const MCPSchemas: {
|
|
|
504
275
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
505
276
|
color: z.ZodOptional<z.ZodString>;
|
|
506
277
|
icon: z.ZodOptional<z.ZodString>;
|
|
507
|
-
},
|
|
508
|
-
name?: string;
|
|
509
|
-
color?: string;
|
|
510
|
-
topic_id?: string;
|
|
511
|
-
description?: string;
|
|
512
|
-
icon?: string;
|
|
513
|
-
parent_id?: string;
|
|
514
|
-
}, {
|
|
515
|
-
name?: string;
|
|
516
|
-
color?: string;
|
|
517
|
-
topic_id?: string;
|
|
518
|
-
description?: string;
|
|
519
|
-
icon?: string;
|
|
520
|
-
parent_id?: string;
|
|
521
|
-
}>;
|
|
278
|
+
}, z.core.$strip>;
|
|
522
279
|
list: z.ZodObject<{
|
|
523
280
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
524
281
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
525
282
|
include_children: z.ZodDefault<z.ZodBoolean>;
|
|
526
|
-
},
|
|
527
|
-
limit?: number;
|
|
528
|
-
parent_id?: string;
|
|
529
|
-
include_children?: boolean;
|
|
530
|
-
}, {
|
|
531
|
-
limit?: number;
|
|
532
|
-
parent_id?: string;
|
|
533
|
-
include_children?: boolean;
|
|
534
|
-
}>;
|
|
283
|
+
}, z.core.$strip>;
|
|
535
284
|
};
|
|
536
285
|
apikey: {
|
|
537
286
|
create: z.ZodObject<{
|
|
538
287
|
name: z.ZodString;
|
|
539
|
-
permissions: z.ZodDefault<z.ZodArray<z.ZodEnum<
|
|
288
|
+
permissions: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
289
|
+
delete: "delete";
|
|
290
|
+
admin: "admin";
|
|
291
|
+
read: "read";
|
|
292
|
+
write: "write";
|
|
293
|
+
}>>>;
|
|
540
294
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
541
|
-
},
|
|
542
|
-
name?: string;
|
|
543
|
-
permissions?: ("delete" | "admin" | "read" | "write")[];
|
|
544
|
-
expires_at?: string;
|
|
545
|
-
}, {
|
|
546
|
-
name?: string;
|
|
547
|
-
permissions?: ("delete" | "admin" | "read" | "write")[];
|
|
548
|
-
expires_at?: string;
|
|
549
|
-
}>;
|
|
295
|
+
}, z.core.$strip>;
|
|
550
296
|
revoke: z.ZodObject<{
|
|
551
297
|
key_id: z.ZodString;
|
|
552
298
|
reason: z.ZodOptional<z.ZodString>;
|
|
553
|
-
},
|
|
554
|
-
reason?: string;
|
|
555
|
-
key_id?: string;
|
|
556
|
-
}, {
|
|
557
|
-
reason?: string;
|
|
558
|
-
key_id?: string;
|
|
559
|
-
}>;
|
|
299
|
+
}, z.core.$strip>;
|
|
560
300
|
};
|
|
561
301
|
system: {
|
|
562
302
|
health: z.ZodObject<{
|
|
563
303
|
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
564
304
|
include_dependencies: z.ZodDefault<z.ZodBoolean>;
|
|
565
305
|
timeout: z.ZodDefault<z.ZodNumber>;
|
|
566
|
-
},
|
|
567
|
-
verbose?: boolean;
|
|
568
|
-
timeout?: number;
|
|
569
|
-
include_dependencies?: boolean;
|
|
570
|
-
}, {
|
|
571
|
-
verbose?: boolean;
|
|
572
|
-
timeout?: number;
|
|
573
|
-
include_dependencies?: boolean;
|
|
574
|
-
}>;
|
|
306
|
+
}, z.core.$strip>;
|
|
575
307
|
config: z.ZodObject<{
|
|
576
|
-
action: z.ZodEnum<
|
|
308
|
+
action: z.ZodEnum<{
|
|
309
|
+
get: "get";
|
|
310
|
+
set: "set";
|
|
311
|
+
reset: "reset";
|
|
312
|
+
}>;
|
|
577
313
|
key: z.ZodOptional<z.ZodString>;
|
|
578
314
|
value: z.ZodOptional<z.ZodAny>;
|
|
579
|
-
scope: z.ZodDefault<z.ZodEnum<
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
key?: string;
|
|
585
|
-
}, {
|
|
586
|
-
value?: any;
|
|
587
|
-
action?: "get" | "set" | "reset";
|
|
588
|
-
scope?: "user" | "global";
|
|
589
|
-
key?: string;
|
|
590
|
-
}>;
|
|
315
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
316
|
+
user: "user";
|
|
317
|
+
global: "global";
|
|
318
|
+
}>>;
|
|
319
|
+
}, z.core.$strip>;
|
|
591
320
|
};
|
|
592
321
|
operations: {
|
|
593
322
|
bulk: z.ZodObject<{
|
|
594
|
-
operation: z.ZodEnum<
|
|
595
|
-
|
|
596
|
-
|
|
323
|
+
operation: z.ZodEnum<{
|
|
324
|
+
create: "create";
|
|
325
|
+
delete: "delete";
|
|
326
|
+
update: "update";
|
|
327
|
+
}>;
|
|
328
|
+
entity_type: z.ZodEnum<{
|
|
329
|
+
topic: "topic";
|
|
330
|
+
memory: "memory";
|
|
331
|
+
apikey: "apikey";
|
|
332
|
+
}>;
|
|
333
|
+
items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
597
334
|
transaction: z.ZodDefault<z.ZodBoolean>;
|
|
598
|
-
},
|
|
599
|
-
operation?: "create" | "delete" | "update";
|
|
600
|
-
items?: Record<string, any>[];
|
|
601
|
-
entity_type?: "topic" | "memory" | "apikey";
|
|
602
|
-
transaction?: boolean;
|
|
603
|
-
}, {
|
|
604
|
-
operation?: "create" | "delete" | "update";
|
|
605
|
-
items?: Record<string, any>[];
|
|
606
|
-
entity_type?: "topic" | "memory" | "apikey";
|
|
607
|
-
transaction?: boolean;
|
|
608
|
-
}>;
|
|
335
|
+
}, z.core.$strip>;
|
|
609
336
|
importExport: z.ZodObject<{
|
|
610
|
-
action: z.ZodEnum<
|
|
611
|
-
|
|
612
|
-
|
|
337
|
+
action: z.ZodEnum<{
|
|
338
|
+
import: "import";
|
|
339
|
+
export: "export";
|
|
340
|
+
}>;
|
|
341
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
342
|
+
json: "json";
|
|
343
|
+
csv: "csv";
|
|
344
|
+
markdown: "markdown";
|
|
345
|
+
}>>;
|
|
346
|
+
entity_type: z.ZodDefault<z.ZodEnum<{
|
|
347
|
+
topic: "topic";
|
|
348
|
+
memory: "memory";
|
|
349
|
+
all: "all";
|
|
350
|
+
}>>;
|
|
613
351
|
file_path: z.ZodOptional<z.ZodString>;
|
|
614
352
|
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
615
|
-
},
|
|
616
|
-
action?: "import" | "export";
|
|
617
|
-
format?: "json" | "csv" | "markdown";
|
|
618
|
-
entity_type?: "topic" | "memory" | "all";
|
|
619
|
-
file_path?: string;
|
|
620
|
-
filters?: Record<string, any>;
|
|
621
|
-
}, {
|
|
622
|
-
action?: "import" | "export";
|
|
623
|
-
format?: "json" | "csv" | "markdown";
|
|
624
|
-
entity_type?: "topic" | "memory" | "all";
|
|
625
|
-
file_path?: string;
|
|
626
|
-
filters?: Record<string, any>;
|
|
627
|
-
}>;
|
|
353
|
+
}, z.core.$strip>;
|
|
628
354
|
toolExecution: z.ZodObject<{
|
|
629
355
|
tool_name: z.ZodString;
|
|
630
356
|
arguments: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
631
357
|
timeout: z.ZodDefault<z.ZodNumber>;
|
|
632
358
|
retry_on_failure: z.ZodDefault<z.ZodBoolean>;
|
|
633
359
|
max_retries: z.ZodDefault<z.ZodNumber>;
|
|
634
|
-
},
|
|
635
|
-
timeout?: number;
|
|
636
|
-
arguments?: Record<string, any>;
|
|
637
|
-
tool_name?: string;
|
|
638
|
-
retry_on_failure?: boolean;
|
|
639
|
-
max_retries?: number;
|
|
640
|
-
}, {
|
|
641
|
-
timeout?: number;
|
|
642
|
-
arguments?: Record<string, any>;
|
|
643
|
-
tool_name?: string;
|
|
644
|
-
retry_on_failure?: boolean;
|
|
645
|
-
max_retries?: number;
|
|
646
|
-
}>;
|
|
360
|
+
}, z.core.$strip>;
|
|
647
361
|
};
|
|
648
362
|
responses: {
|
|
649
363
|
success: z.ZodObject<{
|
|
@@ -654,34 +368,8 @@ export declare const MCPSchemas: {
|
|
|
654
368
|
timestamp: z.ZodString;
|
|
655
369
|
duration_ms: z.ZodOptional<z.ZodNumber>;
|
|
656
370
|
request_id: z.ZodOptional<z.ZodString>;
|
|
657
|
-
},
|
|
658
|
-
|
|
659
|
-
duration_ms?: number;
|
|
660
|
-
request_id?: string;
|
|
661
|
-
}, {
|
|
662
|
-
timestamp?: string;
|
|
663
|
-
duration_ms?: number;
|
|
664
|
-
request_id?: string;
|
|
665
|
-
}>>;
|
|
666
|
-
}, "strip", z.ZodTypeAny, {
|
|
667
|
-
success?: boolean;
|
|
668
|
-
message?: string;
|
|
669
|
-
data?: any;
|
|
670
|
-
metadata?: {
|
|
671
|
-
timestamp?: string;
|
|
672
|
-
duration_ms?: number;
|
|
673
|
-
request_id?: string;
|
|
674
|
-
};
|
|
675
|
-
}, {
|
|
676
|
-
success?: boolean;
|
|
677
|
-
message?: string;
|
|
678
|
-
data?: any;
|
|
679
|
-
metadata?: {
|
|
680
|
-
timestamp?: string;
|
|
681
|
-
duration_ms?: number;
|
|
682
|
-
request_id?: string;
|
|
683
|
-
};
|
|
684
|
-
}>;
|
|
371
|
+
}, z.core.$strip>>;
|
|
372
|
+
}, z.core.$strip>;
|
|
685
373
|
error: z.ZodObject<{
|
|
686
374
|
success: z.ZodDefault<z.ZodBoolean>;
|
|
687
375
|
error: z.ZodObject<{
|
|
@@ -689,52 +377,12 @@ export declare const MCPSchemas: {
|
|
|
689
377
|
message: z.ZodString;
|
|
690
378
|
details: z.ZodOptional<z.ZodAny>;
|
|
691
379
|
stack: z.ZodOptional<z.ZodString>;
|
|
692
|
-
},
|
|
693
|
-
message?: string;
|
|
694
|
-
code?: string;
|
|
695
|
-
details?: any;
|
|
696
|
-
stack?: string;
|
|
697
|
-
}, {
|
|
698
|
-
message?: string;
|
|
699
|
-
code?: string;
|
|
700
|
-
details?: any;
|
|
701
|
-
stack?: string;
|
|
702
|
-
}>;
|
|
380
|
+
}, z.core.$strip>;
|
|
703
381
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
704
382
|
timestamp: z.ZodString;
|
|
705
383
|
request_id: z.ZodOptional<z.ZodString>;
|
|
706
|
-
},
|
|
707
|
-
|
|
708
|
-
request_id?: string;
|
|
709
|
-
}, {
|
|
710
|
-
timestamp?: string;
|
|
711
|
-
request_id?: string;
|
|
712
|
-
}>>;
|
|
713
|
-
}, "strip", z.ZodTypeAny, {
|
|
714
|
-
success?: boolean;
|
|
715
|
-
error?: {
|
|
716
|
-
message?: string;
|
|
717
|
-
code?: string;
|
|
718
|
-
details?: any;
|
|
719
|
-
stack?: string;
|
|
720
|
-
};
|
|
721
|
-
metadata?: {
|
|
722
|
-
timestamp?: string;
|
|
723
|
-
request_id?: string;
|
|
724
|
-
};
|
|
725
|
-
}, {
|
|
726
|
-
success?: boolean;
|
|
727
|
-
error?: {
|
|
728
|
-
message?: string;
|
|
729
|
-
code?: string;
|
|
730
|
-
details?: any;
|
|
731
|
-
stack?: string;
|
|
732
|
-
};
|
|
733
|
-
metadata?: {
|
|
734
|
-
timestamp?: string;
|
|
735
|
-
request_id?: string;
|
|
736
|
-
};
|
|
737
|
-
}>;
|
|
384
|
+
}, z.core.$strip>>;
|
|
385
|
+
}, z.core.$strip>;
|
|
738
386
|
};
|
|
739
387
|
};
|
|
740
388
|
export default MCPSchemas;
|