@lanonasis/cli 2.0.7 → 3.0.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.
@@ -0,0 +1,740 @@
1
+ /**
2
+ * MCP Tool Schema Definitions
3
+ * Provides Zod-based validation for all MCP tools
4
+ */
5
+ import { z } from 'zod';
6
+ export declare const MemoryCreateSchema: z.ZodObject<{
7
+ title: z.ZodString;
8
+ content: z.ZodString;
9
+ memory_type: z.ZodDefault<z.ZodEnum<["context", "reference", "note"]>>;
10
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11
+ topic_id: z.ZodOptional<z.ZodString>;
12
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ title?: string;
15
+ content?: string;
16
+ tags?: string[];
17
+ topic_id?: string;
18
+ memory_type?: "context" | "reference" | "note";
19
+ metadata?: Record<string, any>;
20
+ }, {
21
+ title?: string;
22
+ content?: string;
23
+ tags?: string[];
24
+ topic_id?: string;
25
+ memory_type?: "context" | "reference" | "note";
26
+ metadata?: Record<string, any>;
27
+ }>;
28
+ export declare const MemorySearchSchema: z.ZodObject<{
29
+ query: z.ZodString;
30
+ limit: z.ZodDefault<z.ZodNumber>;
31
+ threshold: z.ZodDefault<z.ZodNumber>;
32
+ topic_id: z.ZodOptional<z.ZodString>;
33
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34
+ memory_type: z.ZodOptional<z.ZodEnum<["context", "reference", "note"]>>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ query?: string;
37
+ tags?: string[];
38
+ limit?: number;
39
+ topic_id?: string;
40
+ threshold?: number;
41
+ memory_type?: "context" | "reference" | "note";
42
+ }, {
43
+ query?: string;
44
+ tags?: string[];
45
+ limit?: number;
46
+ topic_id?: string;
47
+ threshold?: number;
48
+ memory_type?: "context" | "reference" | "note";
49
+ }>;
50
+ export declare const MemoryUpdateSchema: z.ZodObject<{
51
+ memory_id: z.ZodString;
52
+ title: z.ZodOptional<z.ZodString>;
53
+ content: z.ZodOptional<z.ZodString>;
54
+ memory_type: z.ZodOptional<z.ZodEnum<["context", "reference", "note"]>>;
55
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
56
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ title?: string;
59
+ content?: string;
60
+ tags?: string[];
61
+ memory_id?: string;
62
+ memory_type?: "context" | "reference" | "note";
63
+ metadata?: Record<string, any>;
64
+ }, {
65
+ title?: string;
66
+ content?: string;
67
+ tags?: string[];
68
+ memory_id?: string;
69
+ memory_type?: "context" | "reference" | "note";
70
+ metadata?: Record<string, any>;
71
+ }>;
72
+ export declare const MemoryDeleteSchema: z.ZodObject<{
73
+ memory_id: z.ZodString;
74
+ confirm: z.ZodDefault<z.ZodBoolean>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ confirm?: boolean;
77
+ memory_id?: string;
78
+ }, {
79
+ confirm?: boolean;
80
+ memory_id?: string;
81
+ }>;
82
+ export declare const MemoryListSchema: z.ZodObject<{
83
+ limit: z.ZodDefault<z.ZodNumber>;
84
+ offset: z.ZodDefault<z.ZodNumber>;
85
+ topic_id: z.ZodOptional<z.ZodString>;
86
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
87
+ memory_type: z.ZodOptional<z.ZodEnum<["context", "reference", "note"]>>;
88
+ sort_by: z.ZodDefault<z.ZodEnum<["created_at", "updated_at", "title"]>>;
89
+ order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ tags?: string[];
92
+ limit?: number;
93
+ topic_id?: string;
94
+ memory_type?: "context" | "reference" | "note";
95
+ offset?: number;
96
+ sort_by?: "title" | "created_at" | "updated_at";
97
+ order?: "desc" | "asc";
98
+ }, {
99
+ tags?: string[];
100
+ limit?: number;
101
+ topic_id?: string;
102
+ memory_type?: "context" | "reference" | "note";
103
+ offset?: number;
104
+ sort_by?: "title" | "created_at" | "updated_at";
105
+ order?: "desc" | "asc";
106
+ }>;
107
+ export declare const TopicCreateSchema: z.ZodObject<{
108
+ name: z.ZodString;
109
+ description: z.ZodOptional<z.ZodString>;
110
+ parent_id: z.ZodOptional<z.ZodString>;
111
+ color: z.ZodOptional<z.ZodString>;
112
+ icon: z.ZodOptional<z.ZodString>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ icon?: string;
115
+ name?: string;
116
+ color?: string;
117
+ description?: string;
118
+ parent_id?: string;
119
+ }, {
120
+ icon?: string;
121
+ name?: string;
122
+ color?: string;
123
+ description?: string;
124
+ parent_id?: string;
125
+ }>;
126
+ export declare const TopicUpdateSchema: z.ZodObject<{
127
+ topic_id: z.ZodString;
128
+ name: z.ZodOptional<z.ZodString>;
129
+ description: z.ZodOptional<z.ZodString>;
130
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
+ color: z.ZodOptional<z.ZodString>;
132
+ icon: z.ZodOptional<z.ZodString>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ icon?: string;
135
+ name?: string;
136
+ color?: string;
137
+ topic_id?: string;
138
+ description?: string;
139
+ parent_id?: string;
140
+ }, {
141
+ icon?: string;
142
+ name?: string;
143
+ color?: string;
144
+ topic_id?: string;
145
+ description?: string;
146
+ parent_id?: string;
147
+ }>;
148
+ export declare const TopicListSchema: z.ZodObject<{
149
+ limit: z.ZodDefault<z.ZodNumber>;
150
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
+ include_children: z.ZodDefault<z.ZodBoolean>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ limit?: number;
154
+ parent_id?: string;
155
+ include_children?: boolean;
156
+ }, {
157
+ limit?: number;
158
+ parent_id?: string;
159
+ include_children?: boolean;
160
+ }>;
161
+ export declare const ApiKeyCreateSchema: z.ZodObject<{
162
+ name: z.ZodString;
163
+ permissions: z.ZodDefault<z.ZodArray<z.ZodEnum<["read", "write", "delete", "admin"]>, "many">>;
164
+ expires_at: z.ZodOptional<z.ZodString>;
165
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
174
+ export declare const ApiKeyRevokeSchema: z.ZodObject<{
175
+ key_id: z.ZodString;
176
+ reason: z.ZodOptional<z.ZodString>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ key_id?: string;
179
+ reason?: string;
180
+ }, {
181
+ key_id?: string;
182
+ reason?: string;
183
+ }>;
184
+ export declare const SystemHealthSchema: z.ZodObject<{
185
+ verbose: z.ZodDefault<z.ZodBoolean>;
186
+ include_dependencies: z.ZodDefault<z.ZodBoolean>;
187
+ timeout: z.ZodDefault<z.ZodNumber>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ verbose?: boolean;
190
+ timeout?: number;
191
+ include_dependencies?: boolean;
192
+ }, {
193
+ verbose?: boolean;
194
+ timeout?: number;
195
+ include_dependencies?: boolean;
196
+ }>;
197
+ export declare const SystemConfigSchema: z.ZodObject<{
198
+ action: z.ZodEnum<["get", "set", "reset"]>;
199
+ key: z.ZodOptional<z.ZodString>;
200
+ value: z.ZodOptional<z.ZodAny>;
201
+ scope: z.ZodDefault<z.ZodEnum<["user", "global"]>>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ value?: any;
204
+ action?: "get" | "reset" | "set";
205
+ key?: string;
206
+ scope?: "user" | "global";
207
+ }, {
208
+ value?: any;
209
+ action?: "get" | "reset" | "set";
210
+ key?: string;
211
+ scope?: "user" | "global";
212
+ }>;
213
+ export declare const BulkOperationSchema: z.ZodObject<{
214
+ operation: z.ZodEnum<["create", "update", "delete"]>;
215
+ entity_type: z.ZodEnum<["memory", "topic", "apikey"]>;
216
+ items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
217
+ transaction: z.ZodDefault<z.ZodBoolean>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ operation?: "create" | "delete" | "update";
220
+ entity_type?: "topic" | "memory" | "apikey";
221
+ items?: Record<string, any>[];
222
+ transaction?: boolean;
223
+ }, {
224
+ operation?: "create" | "delete" | "update";
225
+ entity_type?: "topic" | "memory" | "apikey";
226
+ items?: Record<string, any>[];
227
+ transaction?: boolean;
228
+ }>;
229
+ export declare const ImportExportSchema: z.ZodObject<{
230
+ action: z.ZodEnum<["import", "export"]>;
231
+ format: z.ZodDefault<z.ZodEnum<["json", "csv", "markdown"]>>;
232
+ entity_type: z.ZodDefault<z.ZodEnum<["memory", "topic", "all"]>>;
233
+ file_path: z.ZodOptional<z.ZodString>;
234
+ filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
235
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
248
+ export declare const ToolExecutionSchema: z.ZodObject<{
249
+ tool_name: z.ZodString;
250
+ arguments: z.ZodRecord<z.ZodString, z.ZodAny>;
251
+ timeout: z.ZodDefault<z.ZodNumber>;
252
+ retry_on_failure: z.ZodDefault<z.ZodBoolean>;
253
+ max_retries: z.ZodDefault<z.ZodNumber>;
254
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
267
+ export declare const SuccessResponseSchema: z.ZodObject<{
268
+ success: z.ZodDefault<z.ZodBoolean>;
269
+ data: z.ZodAny;
270
+ message: z.ZodOptional<z.ZodString>;
271
+ metadata: z.ZodOptional<z.ZodObject<{
272
+ timestamp: z.ZodString;
273
+ duration_ms: z.ZodOptional<z.ZodNumber>;
274
+ request_id: z.ZodOptional<z.ZodString>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ timestamp?: string;
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
+ }>;
303
+ export declare const ErrorResponseSchema: z.ZodObject<{
304
+ success: z.ZodDefault<z.ZodBoolean>;
305
+ error: z.ZodObject<{
306
+ code: z.ZodString;
307
+ message: z.ZodString;
308
+ details: z.ZodOptional<z.ZodAny>;
309
+ stack: z.ZodOptional<z.ZodString>;
310
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
321
+ metadata: z.ZodOptional<z.ZodObject<{
322
+ timestamp: z.ZodString;
323
+ request_id: z.ZodOptional<z.ZodString>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ timestamp?: string;
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
+ }>;
356
+ export declare class SchemaValidator {
357
+ /**
358
+ * Validate data against a schema
359
+ */
360
+ static validate<T>(schema: z.ZodSchema<T>, data: unknown): T;
361
+ /**
362
+ * Validate data and return result with errors
363
+ */
364
+ static safeParse<T>(schema: z.ZodSchema<T>, data: unknown): {
365
+ success: true;
366
+ data: T;
367
+ } | {
368
+ success: false;
369
+ errors: string[];
370
+ };
371
+ /**
372
+ * Get schema as JSON Schema for documentation
373
+ */
374
+ static toJsonSchema(schema: z.ZodSchema<any>): any;
375
+ }
376
+ export declare const MCPSchemas: {
377
+ memory: {
378
+ create: z.ZodObject<{
379
+ title: z.ZodString;
380
+ content: z.ZodString;
381
+ memory_type: z.ZodDefault<z.ZodEnum<["context", "reference", "note"]>>;
382
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
383
+ topic_id: z.ZodOptional<z.ZodString>;
384
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ title?: string;
387
+ content?: string;
388
+ tags?: string[];
389
+ topic_id?: string;
390
+ memory_type?: "context" | "reference" | "note";
391
+ metadata?: Record<string, any>;
392
+ }, {
393
+ title?: string;
394
+ content?: string;
395
+ tags?: string[];
396
+ topic_id?: string;
397
+ memory_type?: "context" | "reference" | "note";
398
+ metadata?: Record<string, any>;
399
+ }>;
400
+ search: z.ZodObject<{
401
+ query: z.ZodString;
402
+ limit: z.ZodDefault<z.ZodNumber>;
403
+ threshold: z.ZodDefault<z.ZodNumber>;
404
+ topic_id: z.ZodOptional<z.ZodString>;
405
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
406
+ memory_type: z.ZodOptional<z.ZodEnum<["context", "reference", "note"]>>;
407
+ }, "strip", z.ZodTypeAny, {
408
+ query?: string;
409
+ tags?: string[];
410
+ limit?: number;
411
+ topic_id?: string;
412
+ threshold?: number;
413
+ memory_type?: "context" | "reference" | "note";
414
+ }, {
415
+ query?: string;
416
+ tags?: string[];
417
+ limit?: number;
418
+ topic_id?: string;
419
+ threshold?: number;
420
+ memory_type?: "context" | "reference" | "note";
421
+ }>;
422
+ update: z.ZodObject<{
423
+ memory_id: z.ZodString;
424
+ title: z.ZodOptional<z.ZodString>;
425
+ content: z.ZodOptional<z.ZodString>;
426
+ memory_type: z.ZodOptional<z.ZodEnum<["context", "reference", "note"]>>;
427
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
428
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ title?: string;
431
+ content?: string;
432
+ tags?: string[];
433
+ memory_id?: string;
434
+ memory_type?: "context" | "reference" | "note";
435
+ metadata?: Record<string, any>;
436
+ }, {
437
+ title?: string;
438
+ content?: string;
439
+ tags?: string[];
440
+ memory_id?: string;
441
+ memory_type?: "context" | "reference" | "note";
442
+ metadata?: Record<string, any>;
443
+ }>;
444
+ delete: z.ZodObject<{
445
+ memory_id: z.ZodString;
446
+ confirm: z.ZodDefault<z.ZodBoolean>;
447
+ }, "strip", z.ZodTypeAny, {
448
+ confirm?: boolean;
449
+ memory_id?: string;
450
+ }, {
451
+ confirm?: boolean;
452
+ memory_id?: string;
453
+ }>;
454
+ list: z.ZodObject<{
455
+ limit: z.ZodDefault<z.ZodNumber>;
456
+ offset: z.ZodDefault<z.ZodNumber>;
457
+ topic_id: z.ZodOptional<z.ZodString>;
458
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
459
+ memory_type: z.ZodOptional<z.ZodEnum<["context", "reference", "note"]>>;
460
+ sort_by: z.ZodDefault<z.ZodEnum<["created_at", "updated_at", "title"]>>;
461
+ order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
462
+ }, "strip", z.ZodTypeAny, {
463
+ tags?: string[];
464
+ limit?: number;
465
+ topic_id?: string;
466
+ memory_type?: "context" | "reference" | "note";
467
+ offset?: number;
468
+ sort_by?: "title" | "created_at" | "updated_at";
469
+ order?: "desc" | "asc";
470
+ }, {
471
+ tags?: string[];
472
+ limit?: number;
473
+ topic_id?: string;
474
+ memory_type?: "context" | "reference" | "note";
475
+ offset?: number;
476
+ sort_by?: "title" | "created_at" | "updated_at";
477
+ order?: "desc" | "asc";
478
+ }>;
479
+ };
480
+ topic: {
481
+ create: z.ZodObject<{
482
+ name: z.ZodString;
483
+ description: z.ZodOptional<z.ZodString>;
484
+ parent_id: z.ZodOptional<z.ZodString>;
485
+ color: z.ZodOptional<z.ZodString>;
486
+ icon: z.ZodOptional<z.ZodString>;
487
+ }, "strip", z.ZodTypeAny, {
488
+ icon?: string;
489
+ name?: string;
490
+ color?: string;
491
+ description?: string;
492
+ parent_id?: string;
493
+ }, {
494
+ icon?: string;
495
+ name?: string;
496
+ color?: string;
497
+ description?: string;
498
+ parent_id?: string;
499
+ }>;
500
+ update: z.ZodObject<{
501
+ topic_id: z.ZodString;
502
+ name: z.ZodOptional<z.ZodString>;
503
+ description: z.ZodOptional<z.ZodString>;
504
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
505
+ color: z.ZodOptional<z.ZodString>;
506
+ icon: z.ZodOptional<z.ZodString>;
507
+ }, "strip", z.ZodTypeAny, {
508
+ icon?: string;
509
+ name?: string;
510
+ color?: string;
511
+ topic_id?: string;
512
+ description?: string;
513
+ parent_id?: string;
514
+ }, {
515
+ icon?: string;
516
+ name?: string;
517
+ color?: string;
518
+ topic_id?: string;
519
+ description?: string;
520
+ parent_id?: string;
521
+ }>;
522
+ list: z.ZodObject<{
523
+ limit: z.ZodDefault<z.ZodNumber>;
524
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
525
+ include_children: z.ZodDefault<z.ZodBoolean>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ limit?: number;
528
+ parent_id?: string;
529
+ include_children?: boolean;
530
+ }, {
531
+ limit?: number;
532
+ parent_id?: string;
533
+ include_children?: boolean;
534
+ }>;
535
+ };
536
+ apikey: {
537
+ create: z.ZodObject<{
538
+ name: z.ZodString;
539
+ permissions: z.ZodDefault<z.ZodArray<z.ZodEnum<["read", "write", "delete", "admin"]>, "many">>;
540
+ expires_at: z.ZodOptional<z.ZodString>;
541
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
550
+ revoke: z.ZodObject<{
551
+ key_id: z.ZodString;
552
+ reason: z.ZodOptional<z.ZodString>;
553
+ }, "strip", z.ZodTypeAny, {
554
+ key_id?: string;
555
+ reason?: string;
556
+ }, {
557
+ key_id?: string;
558
+ reason?: string;
559
+ }>;
560
+ };
561
+ system: {
562
+ health: z.ZodObject<{
563
+ verbose: z.ZodDefault<z.ZodBoolean>;
564
+ include_dependencies: z.ZodDefault<z.ZodBoolean>;
565
+ timeout: z.ZodDefault<z.ZodNumber>;
566
+ }, "strip", z.ZodTypeAny, {
567
+ verbose?: boolean;
568
+ timeout?: number;
569
+ include_dependencies?: boolean;
570
+ }, {
571
+ verbose?: boolean;
572
+ timeout?: number;
573
+ include_dependencies?: boolean;
574
+ }>;
575
+ config: z.ZodObject<{
576
+ action: z.ZodEnum<["get", "set", "reset"]>;
577
+ key: z.ZodOptional<z.ZodString>;
578
+ value: z.ZodOptional<z.ZodAny>;
579
+ scope: z.ZodDefault<z.ZodEnum<["user", "global"]>>;
580
+ }, "strip", z.ZodTypeAny, {
581
+ value?: any;
582
+ action?: "get" | "reset" | "set";
583
+ key?: string;
584
+ scope?: "user" | "global";
585
+ }, {
586
+ value?: any;
587
+ action?: "get" | "reset" | "set";
588
+ key?: string;
589
+ scope?: "user" | "global";
590
+ }>;
591
+ };
592
+ operations: {
593
+ bulk: z.ZodObject<{
594
+ operation: z.ZodEnum<["create", "update", "delete"]>;
595
+ entity_type: z.ZodEnum<["memory", "topic", "apikey"]>;
596
+ items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
597
+ transaction: z.ZodDefault<z.ZodBoolean>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ operation?: "create" | "delete" | "update";
600
+ entity_type?: "topic" | "memory" | "apikey";
601
+ items?: Record<string, any>[];
602
+ transaction?: boolean;
603
+ }, {
604
+ operation?: "create" | "delete" | "update";
605
+ entity_type?: "topic" | "memory" | "apikey";
606
+ items?: Record<string, any>[];
607
+ transaction?: boolean;
608
+ }>;
609
+ importExport: z.ZodObject<{
610
+ action: z.ZodEnum<["import", "export"]>;
611
+ format: z.ZodDefault<z.ZodEnum<["json", "csv", "markdown"]>>;
612
+ entity_type: z.ZodDefault<z.ZodEnum<["memory", "topic", "all"]>>;
613
+ file_path: z.ZodOptional<z.ZodString>;
614
+ filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
615
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
628
+ toolExecution: z.ZodObject<{
629
+ tool_name: z.ZodString;
630
+ arguments: z.ZodRecord<z.ZodString, z.ZodAny>;
631
+ timeout: z.ZodDefault<z.ZodNumber>;
632
+ retry_on_failure: z.ZodDefault<z.ZodBoolean>;
633
+ max_retries: z.ZodDefault<z.ZodNumber>;
634
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
647
+ };
648
+ responses: {
649
+ success: z.ZodObject<{
650
+ success: z.ZodDefault<z.ZodBoolean>;
651
+ data: z.ZodAny;
652
+ message: z.ZodOptional<z.ZodString>;
653
+ metadata: z.ZodOptional<z.ZodObject<{
654
+ timestamp: z.ZodString;
655
+ duration_ms: z.ZodOptional<z.ZodNumber>;
656
+ request_id: z.ZodOptional<z.ZodString>;
657
+ }, "strip", z.ZodTypeAny, {
658
+ timestamp?: string;
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
+ }>;
685
+ error: z.ZodObject<{
686
+ success: z.ZodDefault<z.ZodBoolean>;
687
+ error: z.ZodObject<{
688
+ code: z.ZodString;
689
+ message: z.ZodString;
690
+ details: z.ZodOptional<z.ZodAny>;
691
+ stack: z.ZodOptional<z.ZodString>;
692
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
703
+ metadata: z.ZodOptional<z.ZodObject<{
704
+ timestamp: z.ZodString;
705
+ request_id: z.ZodOptional<z.ZodString>;
706
+ }, "strip", z.ZodTypeAny, {
707
+ timestamp?: string;
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
+ }>;
738
+ };
739
+ };
740
+ export default MCPSchemas;