@agent-earth/shared 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/index.d.ts +10 -0
  2. package/dist/index.js +1 -0
  3. package/dist/schemas/agent-system.schema.d.ts +11661 -0
  4. package/dist/schemas/agent-system.schema.js +1 -0
  5. package/dist/schemas/agent.schema.d.ts +901 -0
  6. package/dist/schemas/agent.schema.js +1 -0
  7. package/dist/schemas/cesium.schema.d.ts +517 -0
  8. package/dist/schemas/cesium.schema.js +1 -0
  9. package/dist/schemas/index.d.ts +10 -0
  10. package/dist/schemas/index.js +1 -0
  11. package/dist/schemas/mcp.schema.d.ts +1791 -0
  12. package/dist/schemas/mcp.schema.js +1 -0
  13. package/dist/schemas/service-config.schema.d.ts +1302 -0
  14. package/dist/schemas/service-config.schema.js +1 -0
  15. package/dist/schemas/skill.schema.d.ts +392 -0
  16. package/dist/schemas/skill.schema.js +1 -0
  17. package/dist/schemas/store.schema.d.ts +1242 -0
  18. package/dist/schemas/store.schema.js +1 -0
  19. package/dist/schemas/user.schema.d.ts +541 -0
  20. package/dist/schemas/user.schema.js +1 -0
  21. package/dist/schemas/websocket.schema.d.ts +1186 -0
  22. package/dist/schemas/websocket.schema.js +1 -0
  23. package/dist/schemas/wiki.schema.d.ts +865 -0
  24. package/dist/schemas/wiki.schema.js +1 -0
  25. package/dist/types/agent.d.ts +45 -0
  26. package/dist/types/agent.js +1 -0
  27. package/dist/types/at-file.d.ts +42 -0
  28. package/dist/types/at-file.js +1 -0
  29. package/dist/types/cesium.d.ts +116 -0
  30. package/dist/types/cesium.js +1 -0
  31. package/dist/types/hermes.d.ts +95 -0
  32. package/dist/types/hermes.js +1 -0
  33. package/dist/types/mcp.d.ts +202 -0
  34. package/dist/types/mcp.js +1 -0
  35. package/dist/types/skill.d.ts +29 -0
  36. package/dist/types/skill.js +1 -0
  37. package/dist/types/slash-command.d.ts +26 -0
  38. package/dist/types/slash-command.js +1 -0
  39. package/dist/types/websocket.d.ts +301 -0
  40. package/dist/types/websocket.js +1 -0
  41. package/dist/types/wiki.d.ts +66 -0
  42. package/dist/types/wiki.js +1 -0
  43. package/package.json +33 -0
@@ -0,0 +1,865 @@
1
+ import { z } from 'zod';
2
+ export declare const WikiLinkSchema: z.ZodObject<{
3
+ targetPageId: z.ZodString;
4
+ relation: z.ZodEnum<["reference", "parent", "child", "related"]>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ targetPageId: string;
7
+ relation: "reference" | "parent" | "child" | "related";
8
+ }, {
9
+ targetPageId: string;
10
+ relation: "reference" | "parent" | "child" | "related";
11
+ }>;
12
+ export declare const WikiPageSchema: z.ZodObject<{
13
+ id: z.ZodString;
14
+ title: z.ZodString;
15
+ path: z.ZodString;
16
+ type: z.ZodEnum<["entity", "concept", "general"]>;
17
+ content: z.ZodString;
18
+ tags: z.ZodArray<z.ZodString, "many">;
19
+ links: z.ZodArray<z.ZodObject<{
20
+ targetPageId: z.ZodString;
21
+ relation: z.ZodEnum<["reference", "parent", "child", "related"]>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ targetPageId: string;
24
+ relation: "reference" | "parent" | "child" | "related";
25
+ }, {
26
+ targetPageId: string;
27
+ relation: "reference" | "parent" | "child" | "related";
28
+ }>, "many">;
29
+ lastModified: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ path: string;
32
+ id: string;
33
+ type: "entity" | "concept" | "general";
34
+ tags: string[];
35
+ title: string;
36
+ content: string;
37
+ links: {
38
+ targetPageId: string;
39
+ relation: "reference" | "parent" | "child" | "related";
40
+ }[];
41
+ lastModified: string;
42
+ }, {
43
+ path: string;
44
+ id: string;
45
+ type: "entity" | "concept" | "general";
46
+ tags: string[];
47
+ title: string;
48
+ content: string;
49
+ links: {
50
+ targetPageId: string;
51
+ relation: "reference" | "parent" | "child" | "related";
52
+ }[];
53
+ lastModified: string;
54
+ }>;
55
+ export declare const WikiEntityRelationSchema: z.ZodObject<{
56
+ targetEntityId: z.ZodString;
57
+ relationType: z.ZodString;
58
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ targetEntityId: string;
61
+ relationType: string;
62
+ properties?: Record<string, any> | undefined;
63
+ }, {
64
+ targetEntityId: string;
65
+ relationType: string;
66
+ properties?: Record<string, any> | undefined;
67
+ }>;
68
+ export declare const WikiEntitySchema: z.ZodObject<{
69
+ id: z.ZodString;
70
+ name: z.ZodString;
71
+ type: z.ZodString;
72
+ properties: z.ZodRecord<z.ZodString, z.ZodAny>;
73
+ relations: z.ZodArray<z.ZodObject<{
74
+ targetEntityId: z.ZodString;
75
+ relationType: z.ZodString;
76
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ targetEntityId: string;
79
+ relationType: string;
80
+ properties?: Record<string, any> | undefined;
81
+ }, {
82
+ targetEntityId: string;
83
+ relationType: string;
84
+ properties?: Record<string, any> | undefined;
85
+ }>, "many">;
86
+ }, "strip", z.ZodTypeAny, {
87
+ id: string;
88
+ type: string;
89
+ name: string;
90
+ properties: Record<string, any>;
91
+ relations: {
92
+ targetEntityId: string;
93
+ relationType: string;
94
+ properties?: Record<string, any> | undefined;
95
+ }[];
96
+ }, {
97
+ id: string;
98
+ type: string;
99
+ name: string;
100
+ properties: Record<string, any>;
101
+ relations: {
102
+ targetEntityId: string;
103
+ relationType: string;
104
+ properties?: Record<string, any> | undefined;
105
+ }[];
106
+ }>;
107
+ export declare const WikiConceptSchema: z.ZodObject<{
108
+ id: z.ZodString;
109
+ name: z.ZodString;
110
+ definition: z.ZodString;
111
+ examples: z.ZodArray<z.ZodString, "many">;
112
+ relatedEntities: z.ZodArray<z.ZodString, "many">;
113
+ relatedConcepts: z.ZodArray<z.ZodString, "many">;
114
+ }, "strip", z.ZodTypeAny, {
115
+ id: string;
116
+ name: string;
117
+ definition: string;
118
+ examples: string[];
119
+ relatedEntities: string[];
120
+ relatedConcepts: string[];
121
+ }, {
122
+ id: string;
123
+ name: string;
124
+ definition: string;
125
+ examples: string[];
126
+ relatedEntities: string[];
127
+ relatedConcepts: string[];
128
+ }>;
129
+ export declare const WikiConfigSchema: z.ZodObject<{
130
+ id: z.ZodString;
131
+ name: z.ZodString;
132
+ description: z.ZodString;
133
+ type: z.ZodEnum<["industry", "domain", "project"]>;
134
+ schemaPath: z.ZodString;
135
+ pages: z.ZodArray<z.ZodObject<{
136
+ id: z.ZodString;
137
+ title: z.ZodString;
138
+ path: z.ZodString;
139
+ type: z.ZodEnum<["entity", "concept", "general"]>;
140
+ content: z.ZodString;
141
+ tags: z.ZodArray<z.ZodString, "many">;
142
+ links: z.ZodArray<z.ZodObject<{
143
+ targetPageId: z.ZodString;
144
+ relation: z.ZodEnum<["reference", "parent", "child", "related"]>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ targetPageId: string;
147
+ relation: "reference" | "parent" | "child" | "related";
148
+ }, {
149
+ targetPageId: string;
150
+ relation: "reference" | "parent" | "child" | "related";
151
+ }>, "many">;
152
+ lastModified: z.ZodString;
153
+ }, "strip", z.ZodTypeAny, {
154
+ path: string;
155
+ id: string;
156
+ type: "entity" | "concept" | "general";
157
+ tags: string[];
158
+ title: string;
159
+ content: string;
160
+ links: {
161
+ targetPageId: string;
162
+ relation: "reference" | "parent" | "child" | "related";
163
+ }[];
164
+ lastModified: string;
165
+ }, {
166
+ path: string;
167
+ id: string;
168
+ type: "entity" | "concept" | "general";
169
+ tags: string[];
170
+ title: string;
171
+ content: string;
172
+ links: {
173
+ targetPageId: string;
174
+ relation: "reference" | "parent" | "child" | "related";
175
+ }[];
176
+ lastModified: string;
177
+ }>, "many">;
178
+ entities: z.ZodArray<z.ZodObject<{
179
+ id: z.ZodString;
180
+ name: z.ZodString;
181
+ type: z.ZodString;
182
+ properties: z.ZodRecord<z.ZodString, z.ZodAny>;
183
+ relations: z.ZodArray<z.ZodObject<{
184
+ targetEntityId: z.ZodString;
185
+ relationType: z.ZodString;
186
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ targetEntityId: string;
189
+ relationType: string;
190
+ properties?: Record<string, any> | undefined;
191
+ }, {
192
+ targetEntityId: string;
193
+ relationType: string;
194
+ properties?: Record<string, any> | undefined;
195
+ }>, "many">;
196
+ }, "strip", z.ZodTypeAny, {
197
+ id: string;
198
+ type: string;
199
+ name: string;
200
+ properties: Record<string, any>;
201
+ relations: {
202
+ targetEntityId: string;
203
+ relationType: string;
204
+ properties?: Record<string, any> | undefined;
205
+ }[];
206
+ }, {
207
+ id: string;
208
+ type: string;
209
+ name: string;
210
+ properties: Record<string, any>;
211
+ relations: {
212
+ targetEntityId: string;
213
+ relationType: string;
214
+ properties?: Record<string, any> | undefined;
215
+ }[];
216
+ }>, "many">;
217
+ concepts: z.ZodArray<z.ZodObject<{
218
+ id: z.ZodString;
219
+ name: z.ZodString;
220
+ definition: z.ZodString;
221
+ examples: z.ZodArray<z.ZodString, "many">;
222
+ relatedEntities: z.ZodArray<z.ZodString, "many">;
223
+ relatedConcepts: z.ZodArray<z.ZodString, "many">;
224
+ }, "strip", z.ZodTypeAny, {
225
+ id: string;
226
+ name: string;
227
+ definition: string;
228
+ examples: string[];
229
+ relatedEntities: string[];
230
+ relatedConcepts: string[];
231
+ }, {
232
+ id: string;
233
+ name: string;
234
+ definition: string;
235
+ examples: string[];
236
+ relatedEntities: string[];
237
+ relatedConcepts: string[];
238
+ }>, "many">;
239
+ }, "strip", z.ZodTypeAny, {
240
+ id: string;
241
+ type: "industry" | "domain" | "project";
242
+ name: string;
243
+ description: string;
244
+ schemaPath: string;
245
+ pages: {
246
+ path: string;
247
+ id: string;
248
+ type: "entity" | "concept" | "general";
249
+ tags: string[];
250
+ title: string;
251
+ content: string;
252
+ links: {
253
+ targetPageId: string;
254
+ relation: "reference" | "parent" | "child" | "related";
255
+ }[];
256
+ lastModified: string;
257
+ }[];
258
+ entities: {
259
+ id: string;
260
+ type: string;
261
+ name: string;
262
+ properties: Record<string, any>;
263
+ relations: {
264
+ targetEntityId: string;
265
+ relationType: string;
266
+ properties?: Record<string, any> | undefined;
267
+ }[];
268
+ }[];
269
+ concepts: {
270
+ id: string;
271
+ name: string;
272
+ definition: string;
273
+ examples: string[];
274
+ relatedEntities: string[];
275
+ relatedConcepts: string[];
276
+ }[];
277
+ }, {
278
+ id: string;
279
+ type: "industry" | "domain" | "project";
280
+ name: string;
281
+ description: string;
282
+ schemaPath: string;
283
+ pages: {
284
+ path: string;
285
+ id: string;
286
+ type: "entity" | "concept" | "general";
287
+ tags: string[];
288
+ title: string;
289
+ content: string;
290
+ links: {
291
+ targetPageId: string;
292
+ relation: "reference" | "parent" | "child" | "related";
293
+ }[];
294
+ lastModified: string;
295
+ }[];
296
+ entities: {
297
+ id: string;
298
+ type: string;
299
+ name: string;
300
+ properties: Record<string, any>;
301
+ relations: {
302
+ targetEntityId: string;
303
+ relationType: string;
304
+ properties?: Record<string, any> | undefined;
305
+ }[];
306
+ }[];
307
+ concepts: {
308
+ id: string;
309
+ name: string;
310
+ definition: string;
311
+ examples: string[];
312
+ relatedEntities: string[];
313
+ relatedConcepts: string[];
314
+ }[];
315
+ }>;
316
+ export declare const WikiImportConfigSchema: z.ZodObject<{
317
+ source: z.ZodEnum<["file", "url"]>;
318
+ format: z.ZodEnum<["pdf", "word", "markdown", "json"]>;
319
+ path: z.ZodString;
320
+ autoParse: z.ZodBoolean;
321
+ targetWikiId: z.ZodString;
322
+ }, "strip", z.ZodTypeAny, {
323
+ source: "file" | "url";
324
+ path: string;
325
+ format: "json" | "pdf" | "word" | "markdown";
326
+ autoParse: boolean;
327
+ targetWikiId: string;
328
+ }, {
329
+ source: "file" | "url";
330
+ path: string;
331
+ format: "json" | "pdf" | "word" | "markdown";
332
+ autoParse: boolean;
333
+ targetWikiId: string;
334
+ }>;
335
+ export declare const WikiExportConfigSchema: z.ZodObject<{
336
+ format: z.ZodEnum<["markdown", "json", "html"]>;
337
+ includeSchema: z.ZodBoolean;
338
+ includeLinks: z.ZodBoolean;
339
+ outputPath: z.ZodString;
340
+ }, "strip", z.ZodTypeAny, {
341
+ format: "json" | "markdown" | "html";
342
+ includeSchema: boolean;
343
+ includeLinks: boolean;
344
+ outputPath: string;
345
+ }, {
346
+ format: "json" | "markdown" | "html";
347
+ includeSchema: boolean;
348
+ includeLinks: boolean;
349
+ outputPath: string;
350
+ }>;
351
+ export declare const WikiIndexEntrySchema: z.ZodObject<{
352
+ pageId: z.ZodString;
353
+ pageTitle: z.ZodString;
354
+ pageType: z.ZodEnum<["entity", "concept", "general"]>;
355
+ keywords: z.ZodArray<z.ZodString, "many">;
356
+ entities: z.ZodArray<z.ZodString, "many">;
357
+ concepts: z.ZodArray<z.ZodString, "many">;
358
+ lastIndexed: z.ZodString;
359
+ contentHash: z.ZodString;
360
+ embeddingVector: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
361
+ relevanceScore: z.ZodOptional<z.ZodNumber>;
362
+ }, "strip", z.ZodTypeAny, {
363
+ entities: string[];
364
+ concepts: string[];
365
+ pageId: string;
366
+ pageTitle: string;
367
+ pageType: "entity" | "concept" | "general";
368
+ keywords: string[];
369
+ lastIndexed: string;
370
+ contentHash: string;
371
+ embeddingVector?: number[] | undefined;
372
+ relevanceScore?: number | undefined;
373
+ }, {
374
+ entities: string[];
375
+ concepts: string[];
376
+ pageId: string;
377
+ pageTitle: string;
378
+ pageType: "entity" | "concept" | "general";
379
+ keywords: string[];
380
+ lastIndexed: string;
381
+ contentHash: string;
382
+ embeddingVector?: number[] | undefined;
383
+ relevanceScore?: number | undefined;
384
+ }>;
385
+ export declare const WikiIndexConfigSchema: z.ZodObject<{
386
+ wikiId: z.ZodString;
387
+ indexType: z.ZodEnum<["keyword", "vector", "hybrid"]>;
388
+ entries: z.ZodArray<z.ZodObject<{
389
+ pageId: z.ZodString;
390
+ pageTitle: z.ZodString;
391
+ pageType: z.ZodEnum<["entity", "concept", "general"]>;
392
+ keywords: z.ZodArray<z.ZodString, "many">;
393
+ entities: z.ZodArray<z.ZodString, "many">;
394
+ concepts: z.ZodArray<z.ZodString, "many">;
395
+ lastIndexed: z.ZodString;
396
+ contentHash: z.ZodString;
397
+ embeddingVector: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
398
+ relevanceScore: z.ZodOptional<z.ZodNumber>;
399
+ }, "strip", z.ZodTypeAny, {
400
+ entities: string[];
401
+ concepts: string[];
402
+ pageId: string;
403
+ pageTitle: string;
404
+ pageType: "entity" | "concept" | "general";
405
+ keywords: string[];
406
+ lastIndexed: string;
407
+ contentHash: string;
408
+ embeddingVector?: number[] | undefined;
409
+ relevanceScore?: number | undefined;
410
+ }, {
411
+ entities: string[];
412
+ concepts: string[];
413
+ pageId: string;
414
+ pageTitle: string;
415
+ pageType: "entity" | "concept" | "general";
416
+ keywords: string[];
417
+ lastIndexed: string;
418
+ contentHash: string;
419
+ embeddingVector?: number[] | undefined;
420
+ relevanceScore?: number | undefined;
421
+ }>, "many">;
422
+ totalEntries: z.ZodNumber;
423
+ lastFullIndex: z.ZodString;
424
+ indexVersion: z.ZodString;
425
+ embeddingModel: z.ZodOptional<z.ZodString>;
426
+ embeddingDimension: z.ZodOptional<z.ZodNumber>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ entries: {
429
+ entities: string[];
430
+ concepts: string[];
431
+ pageId: string;
432
+ pageTitle: string;
433
+ pageType: "entity" | "concept" | "general";
434
+ keywords: string[];
435
+ lastIndexed: string;
436
+ contentHash: string;
437
+ embeddingVector?: number[] | undefined;
438
+ relevanceScore?: number | undefined;
439
+ }[];
440
+ wikiId: string;
441
+ indexType: "keyword" | "hybrid" | "vector";
442
+ totalEntries: number;
443
+ lastFullIndex: string;
444
+ indexVersion: string;
445
+ embeddingModel?: string | undefined;
446
+ embeddingDimension?: number | undefined;
447
+ }, {
448
+ entries: {
449
+ entities: string[];
450
+ concepts: string[];
451
+ pageId: string;
452
+ pageTitle: string;
453
+ pageType: "entity" | "concept" | "general";
454
+ keywords: string[];
455
+ lastIndexed: string;
456
+ contentHash: string;
457
+ embeddingVector?: number[] | undefined;
458
+ relevanceScore?: number | undefined;
459
+ }[];
460
+ wikiId: string;
461
+ indexType: "keyword" | "hybrid" | "vector";
462
+ totalEntries: number;
463
+ lastFullIndex: string;
464
+ indexVersion: string;
465
+ embeddingModel?: string | undefined;
466
+ embeddingDimension?: number | undefined;
467
+ }>;
468
+ export declare const KnowledgeGraphNodeSchema: z.ZodObject<{
469
+ id: z.ZodString;
470
+ type: z.ZodEnum<["entity", "concept", "page", "external"]>;
471
+ name: z.ZodString;
472
+ label: z.ZodString;
473
+ properties: z.ZodRecord<z.ZodString, z.ZodAny>;
474
+ pageId: z.ZodOptional<z.ZodString>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ id: string;
477
+ type: "entity" | "concept" | "page" | "external";
478
+ name: string;
479
+ properties: Record<string, any>;
480
+ label: string;
481
+ pageId?: string | undefined;
482
+ }, {
483
+ id: string;
484
+ type: "entity" | "concept" | "page" | "external";
485
+ name: string;
486
+ properties: Record<string, any>;
487
+ label: string;
488
+ pageId?: string | undefined;
489
+ }>;
490
+ export declare const KnowledgeGraphEdgeSchema: z.ZodObject<{
491
+ id: z.ZodString;
492
+ sourceNodeId: z.ZodString;
493
+ targetNodeId: z.ZodString;
494
+ relationType: z.ZodString;
495
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
496
+ weight: z.ZodDefault<z.ZodNumber>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ id: string;
499
+ relationType: string;
500
+ sourceNodeId: string;
501
+ targetNodeId: string;
502
+ weight: number;
503
+ properties?: Record<string, any> | undefined;
504
+ }, {
505
+ id: string;
506
+ relationType: string;
507
+ sourceNodeId: string;
508
+ targetNodeId: string;
509
+ properties?: Record<string, any> | undefined;
510
+ weight?: number | undefined;
511
+ }>;
512
+ export declare const KnowledgeGraphSchema: z.ZodObject<{
513
+ wikiId: z.ZodString;
514
+ nodes: z.ZodArray<z.ZodObject<{
515
+ id: z.ZodString;
516
+ type: z.ZodEnum<["entity", "concept", "page", "external"]>;
517
+ name: z.ZodString;
518
+ label: z.ZodString;
519
+ properties: z.ZodRecord<z.ZodString, z.ZodAny>;
520
+ pageId: z.ZodOptional<z.ZodString>;
521
+ }, "strip", z.ZodTypeAny, {
522
+ id: string;
523
+ type: "entity" | "concept" | "page" | "external";
524
+ name: string;
525
+ properties: Record<string, any>;
526
+ label: string;
527
+ pageId?: string | undefined;
528
+ }, {
529
+ id: string;
530
+ type: "entity" | "concept" | "page" | "external";
531
+ name: string;
532
+ properties: Record<string, any>;
533
+ label: string;
534
+ pageId?: string | undefined;
535
+ }>, "many">;
536
+ edges: z.ZodArray<z.ZodObject<{
537
+ id: z.ZodString;
538
+ sourceNodeId: z.ZodString;
539
+ targetNodeId: z.ZodString;
540
+ relationType: z.ZodString;
541
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
542
+ weight: z.ZodDefault<z.ZodNumber>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ id: string;
545
+ relationType: string;
546
+ sourceNodeId: string;
547
+ targetNodeId: string;
548
+ weight: number;
549
+ properties?: Record<string, any> | undefined;
550
+ }, {
551
+ id: string;
552
+ relationType: string;
553
+ sourceNodeId: string;
554
+ targetNodeId: string;
555
+ properties?: Record<string, any> | undefined;
556
+ weight?: number | undefined;
557
+ }>, "many">;
558
+ nodeTypes: z.ZodArray<z.ZodString, "many">;
559
+ relationTypes: z.ZodArray<z.ZodString, "many">;
560
+ lastUpdated: z.ZodString;
561
+ statistics: z.ZodObject<{
562
+ totalNodes: z.ZodNumber;
563
+ totalEdges: z.ZodNumber;
564
+ nodesByType: z.ZodRecord<z.ZodString, z.ZodNumber>;
565
+ edgesByRelation: z.ZodRecord<z.ZodString, z.ZodNumber>;
566
+ avgConnectionsPerNode: z.ZodNumber;
567
+ }, "strip", z.ZodTypeAny, {
568
+ totalNodes: number;
569
+ totalEdges: number;
570
+ nodesByType: Record<string, number>;
571
+ edgesByRelation: Record<string, number>;
572
+ avgConnectionsPerNode: number;
573
+ }, {
574
+ totalNodes: number;
575
+ totalEdges: number;
576
+ nodesByType: Record<string, number>;
577
+ edgesByRelation: Record<string, number>;
578
+ avgConnectionsPerNode: number;
579
+ }>;
580
+ }, "strip", z.ZodTypeAny, {
581
+ wikiId: string;
582
+ nodes: {
583
+ id: string;
584
+ type: "entity" | "concept" | "page" | "external";
585
+ name: string;
586
+ properties: Record<string, any>;
587
+ label: string;
588
+ pageId?: string | undefined;
589
+ }[];
590
+ edges: {
591
+ id: string;
592
+ relationType: string;
593
+ sourceNodeId: string;
594
+ targetNodeId: string;
595
+ weight: number;
596
+ properties?: Record<string, any> | undefined;
597
+ }[];
598
+ nodeTypes: string[];
599
+ relationTypes: string[];
600
+ lastUpdated: string;
601
+ statistics: {
602
+ totalNodes: number;
603
+ totalEdges: number;
604
+ nodesByType: Record<string, number>;
605
+ edgesByRelation: Record<string, number>;
606
+ avgConnectionsPerNode: number;
607
+ };
608
+ }, {
609
+ wikiId: string;
610
+ nodes: {
611
+ id: string;
612
+ type: "entity" | "concept" | "page" | "external";
613
+ name: string;
614
+ properties: Record<string, any>;
615
+ label: string;
616
+ pageId?: string | undefined;
617
+ }[];
618
+ edges: {
619
+ id: string;
620
+ relationType: string;
621
+ sourceNodeId: string;
622
+ targetNodeId: string;
623
+ properties?: Record<string, any> | undefined;
624
+ weight?: number | undefined;
625
+ }[];
626
+ nodeTypes: string[];
627
+ relationTypes: string[];
628
+ lastUpdated: string;
629
+ statistics: {
630
+ totalNodes: number;
631
+ totalEdges: number;
632
+ nodesByType: Record<string, number>;
633
+ edgesByRelation: Record<string, number>;
634
+ avgConnectionsPerNode: number;
635
+ };
636
+ }>;
637
+ export declare const WikiQueryRequestSchema: z.ZodObject<{
638
+ wikiId: z.ZodString;
639
+ queryType: z.ZodEnum<["entity", "concept", "full_text", "semantic", "hybrid", "overview"]>;
640
+ query: z.ZodString;
641
+ filters: z.ZodOptional<z.ZodObject<{
642
+ pageType: z.ZodOptional<z.ZodEnum<["entity", "concept", "general"]>>;
643
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
644
+ dateRange: z.ZodOptional<z.ZodObject<{
645
+ start: z.ZodOptional<z.ZodString>;
646
+ end: z.ZodOptional<z.ZodString>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ start?: string | undefined;
649
+ end?: string | undefined;
650
+ }, {
651
+ start?: string | undefined;
652
+ end?: string | undefined;
653
+ }>>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ tags?: string[] | undefined;
656
+ pageType?: "entity" | "concept" | "general" | undefined;
657
+ dateRange?: {
658
+ start?: string | undefined;
659
+ end?: string | undefined;
660
+ } | undefined;
661
+ }, {
662
+ tags?: string[] | undefined;
663
+ pageType?: "entity" | "concept" | "general" | undefined;
664
+ dateRange?: {
665
+ start?: string | undefined;
666
+ end?: string | undefined;
667
+ } | undefined;
668
+ }>>;
669
+ limit: z.ZodDefault<z.ZodNumber>;
670
+ offset: z.ZodDefault<z.ZodNumber>;
671
+ includeContent: z.ZodDefault<z.ZodBoolean>;
672
+ includeRelated: z.ZodDefault<z.ZodBoolean>;
673
+ }, "strip", z.ZodTypeAny, {
674
+ query: string;
675
+ wikiId: string;
676
+ queryType: "entity" | "concept" | "semantic" | "hybrid" | "overview" | "full_text";
677
+ limit: number;
678
+ offset: number;
679
+ includeContent: boolean;
680
+ includeRelated: boolean;
681
+ filters?: {
682
+ tags?: string[] | undefined;
683
+ pageType?: "entity" | "concept" | "general" | undefined;
684
+ dateRange?: {
685
+ start?: string | undefined;
686
+ end?: string | undefined;
687
+ } | undefined;
688
+ } | undefined;
689
+ }, {
690
+ query: string;
691
+ wikiId: string;
692
+ queryType: "entity" | "concept" | "semantic" | "hybrid" | "overview" | "full_text";
693
+ filters?: {
694
+ tags?: string[] | undefined;
695
+ pageType?: "entity" | "concept" | "general" | undefined;
696
+ dateRange?: {
697
+ start?: string | undefined;
698
+ end?: string | undefined;
699
+ } | undefined;
700
+ } | undefined;
701
+ limit?: number | undefined;
702
+ offset?: number | undefined;
703
+ includeContent?: boolean | undefined;
704
+ includeRelated?: boolean | undefined;
705
+ }>;
706
+ export declare const WikiQueryResultSchema: z.ZodObject<{
707
+ wikiId: z.ZodString;
708
+ queryType: z.ZodString;
709
+ query: z.ZodString;
710
+ results: z.ZodArray<z.ZodObject<{
711
+ pageId: z.ZodString;
712
+ pageTitle: z.ZodString;
713
+ pageType: z.ZodEnum<["entity", "concept", "general"]>;
714
+ content: z.ZodOptional<z.ZodString>;
715
+ relevanceScore: z.ZodNumber;
716
+ relatedPages: z.ZodOptional<z.ZodArray<z.ZodObject<{
717
+ pageId: z.ZodString;
718
+ relationType: z.ZodString;
719
+ }, "strip", z.ZodTypeAny, {
720
+ relationType: string;
721
+ pageId: string;
722
+ }, {
723
+ relationType: string;
724
+ pageId: string;
725
+ }>, "many">>;
726
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
727
+ }, "strip", z.ZodTypeAny, {
728
+ pageId: string;
729
+ pageTitle: string;
730
+ pageType: "entity" | "concept" | "general";
731
+ relevanceScore: number;
732
+ content?: string | undefined;
733
+ relatedPages?: {
734
+ relationType: string;
735
+ pageId: string;
736
+ }[] | undefined;
737
+ metadata?: Record<string, any> | undefined;
738
+ }, {
739
+ pageId: string;
740
+ pageTitle: string;
741
+ pageType: "entity" | "concept" | "general";
742
+ relevanceScore: number;
743
+ content?: string | undefined;
744
+ relatedPages?: {
745
+ relationType: string;
746
+ pageId: string;
747
+ }[] | undefined;
748
+ metadata?: Record<string, any> | undefined;
749
+ }>, "many">;
750
+ total: z.ZodNumber;
751
+ queryTime: z.ZodNumber;
752
+ }, "strip", z.ZodTypeAny, {
753
+ query: string;
754
+ wikiId: string;
755
+ queryType: string;
756
+ results: {
757
+ pageId: string;
758
+ pageTitle: string;
759
+ pageType: "entity" | "concept" | "general";
760
+ relevanceScore: number;
761
+ content?: string | undefined;
762
+ relatedPages?: {
763
+ relationType: string;
764
+ pageId: string;
765
+ }[] | undefined;
766
+ metadata?: Record<string, any> | undefined;
767
+ }[];
768
+ total: number;
769
+ queryTime: number;
770
+ }, {
771
+ query: string;
772
+ wikiId: string;
773
+ queryType: string;
774
+ results: {
775
+ pageId: string;
776
+ pageTitle: string;
777
+ pageType: "entity" | "concept" | "general";
778
+ relevanceScore: number;
779
+ content?: string | undefined;
780
+ relatedPages?: {
781
+ relationType: string;
782
+ pageId: string;
783
+ }[] | undefined;
784
+ metadata?: Record<string, any> | undefined;
785
+ }[];
786
+ total: number;
787
+ queryTime: number;
788
+ }>;
789
+ export declare const WikiMetadataSchema: z.ZodObject<{
790
+ id: z.ZodString;
791
+ name: z.ZodString;
792
+ displayName: z.ZodString;
793
+ description: z.ZodString;
794
+ category: z.ZodEnum<["industry", "domain", "project"]>;
795
+ wikiType: z.ZodEnum<["general", "air_traffic", "weather", "radar", "drone"]>;
796
+ tags: z.ZodArray<z.ZodString, "many">;
797
+ author: z.ZodString;
798
+ version: z.ZodString;
799
+ createdAt: z.ZodString;
800
+ updatedAt: z.ZodString;
801
+ status: z.ZodEnum<["draft", "published", "deprecated"]>;
802
+ pagesCount: z.ZodNumber;
803
+ entitiesCount: z.ZodNumber;
804
+ conceptsCount: z.ZodNumber;
805
+ indexEnabled: z.ZodDefault<z.ZodBoolean>;
806
+ indexType: z.ZodOptional<z.ZodEnum<["keyword", "vector", "hybrid"]>>;
807
+ }, "strip", z.ZodTypeAny, {
808
+ status: "draft" | "published" | "deprecated";
809
+ id: string;
810
+ name: string;
811
+ description: string;
812
+ displayName: string;
813
+ category: "industry" | "domain" | "project";
814
+ tags: string[];
815
+ author: string;
816
+ version: string;
817
+ createdAt: string;
818
+ updatedAt: string;
819
+ wikiType: "general" | "radar" | "weather" | "drone" | "air_traffic";
820
+ pagesCount: number;
821
+ entitiesCount: number;
822
+ conceptsCount: number;
823
+ indexEnabled: boolean;
824
+ indexType?: "keyword" | "hybrid" | "vector" | undefined;
825
+ }, {
826
+ status: "draft" | "published" | "deprecated";
827
+ id: string;
828
+ name: string;
829
+ description: string;
830
+ displayName: string;
831
+ category: "industry" | "domain" | "project";
832
+ tags: string[];
833
+ author: string;
834
+ version: string;
835
+ createdAt: string;
836
+ updatedAt: string;
837
+ wikiType: "general" | "radar" | "weather" | "drone" | "air_traffic";
838
+ pagesCount: number;
839
+ entitiesCount: number;
840
+ conceptsCount: number;
841
+ indexType?: "keyword" | "hybrid" | "vector" | undefined;
842
+ indexEnabled?: boolean | undefined;
843
+ }>;
844
+ export declare const WikiSearchResultSchema: z.ZodObject<{
845
+ pageId: z.ZodString;
846
+ pageTitle: z.ZodString;
847
+ pageType: z.ZodString;
848
+ snippet: z.ZodString;
849
+ content: z.ZodString;
850
+ relevanceScore: z.ZodNumber;
851
+ }, "strip", z.ZodTypeAny, {
852
+ content: string;
853
+ pageId: string;
854
+ pageTitle: string;
855
+ pageType: string;
856
+ relevanceScore: number;
857
+ snippet: string;
858
+ }, {
859
+ content: string;
860
+ pageId: string;
861
+ pageTitle: string;
862
+ pageType: string;
863
+ relevanceScore: number;
864
+ snippet: string;
865
+ }>;