@nestr/mcp 0.1.8

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,1049 @@
1
+ /**
2
+ * MCP Tools for Nestr
3
+ * Defines all available tools and their handlers
4
+ */
5
+ import { z } from "zod";
6
+ import type { NestrClient } from "../api/client.js";
7
+ export declare const schemas: {
8
+ listWorkspaces: z.ZodObject<{
9
+ search: z.ZodOptional<z.ZodString>;
10
+ limit: z.ZodOptional<z.ZodNumber>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ search?: string | undefined;
13
+ limit?: number | undefined;
14
+ }, {
15
+ search?: string | undefined;
16
+ limit?: number | undefined;
17
+ }>;
18
+ getWorkspace: z.ZodObject<{
19
+ workspaceId: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ workspaceId: string;
22
+ }, {
23
+ workspaceId: string;
24
+ }>;
25
+ search: z.ZodObject<{
26
+ workspaceId: z.ZodString;
27
+ query: z.ZodString;
28
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ limit: number;
31
+ workspaceId: string;
32
+ query: string;
33
+ }, {
34
+ workspaceId: string;
35
+ query: string;
36
+ limit?: number | undefined;
37
+ }>;
38
+ getNest: z.ZodObject<{
39
+ nestId: z.ZodString;
40
+ }, "strip", z.ZodTypeAny, {
41
+ nestId: string;
42
+ }, {
43
+ nestId: string;
44
+ }>;
45
+ getNestChildren: z.ZodObject<{
46
+ nestId: z.ZodString;
47
+ }, "strip", z.ZodTypeAny, {
48
+ nestId: string;
49
+ }, {
50
+ nestId: string;
51
+ }>;
52
+ createNest: z.ZodObject<{
53
+ parentId: z.ZodString;
54
+ title: z.ZodString;
55
+ purpose: z.ZodOptional<z.ZodString>;
56
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
57
+ users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ title: string;
60
+ parentId: string;
61
+ purpose?: string | undefined;
62
+ labels?: string[] | undefined;
63
+ users?: string[] | undefined;
64
+ }, {
65
+ title: string;
66
+ parentId: string;
67
+ purpose?: string | undefined;
68
+ labels?: string[] | undefined;
69
+ users?: string[] | undefined;
70
+ }>;
71
+ updateNest: z.ZodObject<{
72
+ nestId: z.ZodString;
73
+ title: z.ZodOptional<z.ZodString>;
74
+ purpose: z.ZodOptional<z.ZodString>;
75
+ parentId: z.ZodOptional<z.ZodString>;
76
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
77
+ users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
78
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ nestId: string;
81
+ title?: string | undefined;
82
+ purpose?: string | undefined;
83
+ data?: Record<string, unknown> | undefined;
84
+ parentId?: string | undefined;
85
+ users?: string[] | undefined;
86
+ fields?: Record<string, unknown> | undefined;
87
+ }, {
88
+ nestId: string;
89
+ title?: string | undefined;
90
+ purpose?: string | undefined;
91
+ data?: Record<string, unknown> | undefined;
92
+ parentId?: string | undefined;
93
+ users?: string[] | undefined;
94
+ fields?: Record<string, unknown> | undefined;
95
+ }>;
96
+ deleteNest: z.ZodObject<{
97
+ nestId: z.ZodString;
98
+ }, "strip", z.ZodTypeAny, {
99
+ nestId: string;
100
+ }, {
101
+ nestId: string;
102
+ }>;
103
+ addComment: z.ZodObject<{
104
+ nestId: z.ZodString;
105
+ body: z.ZodString;
106
+ }, "strip", z.ZodTypeAny, {
107
+ nestId: string;
108
+ body: string;
109
+ }, {
110
+ nestId: string;
111
+ body: string;
112
+ }>;
113
+ listCircles: z.ZodObject<{
114
+ workspaceId: z.ZodString;
115
+ limit: z.ZodOptional<z.ZodNumber>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ workspaceId: string;
118
+ limit?: number | undefined;
119
+ }, {
120
+ workspaceId: string;
121
+ limit?: number | undefined;
122
+ }>;
123
+ getCircleRoles: z.ZodObject<{
124
+ workspaceId: z.ZodString;
125
+ circleId: z.ZodString;
126
+ }, "strip", z.ZodTypeAny, {
127
+ workspaceId: string;
128
+ circleId: string;
129
+ }, {
130
+ workspaceId: string;
131
+ circleId: string;
132
+ }>;
133
+ listRoles: z.ZodObject<{
134
+ workspaceId: z.ZodString;
135
+ limit: z.ZodOptional<z.ZodNumber>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ workspaceId: string;
138
+ limit?: number | undefined;
139
+ }, {
140
+ workspaceId: string;
141
+ limit?: number | undefined;
142
+ }>;
143
+ getInsights: z.ZodObject<{
144
+ workspaceId: z.ZodString;
145
+ includeSubCircles: z.ZodOptional<z.ZodBoolean>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ workspaceId: string;
148
+ includeSubCircles?: boolean | undefined;
149
+ }, {
150
+ workspaceId: string;
151
+ includeSubCircles?: boolean | undefined;
152
+ }>;
153
+ listUsers: z.ZodObject<{
154
+ workspaceId: z.ZodString;
155
+ search: z.ZodOptional<z.ZodString>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ workspaceId: string;
158
+ search?: string | undefined;
159
+ }, {
160
+ workspaceId: string;
161
+ search?: string | undefined;
162
+ }>;
163
+ listLabels: z.ZodObject<{
164
+ workspaceId: z.ZodString;
165
+ search: z.ZodOptional<z.ZodString>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ workspaceId: string;
168
+ search?: string | undefined;
169
+ }, {
170
+ workspaceId: string;
171
+ search?: string | undefined;
172
+ }>;
173
+ getProjects: z.ZodObject<{
174
+ workspaceId: z.ZodString;
175
+ limit: z.ZodOptional<z.ZodNumber>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ workspaceId: string;
178
+ limit?: number | undefined;
179
+ }, {
180
+ workspaceId: string;
181
+ limit?: number | undefined;
182
+ }>;
183
+ getComments: z.ZodObject<{
184
+ nestId: z.ZodString;
185
+ depth: z.ZodOptional<z.ZodNumber>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ nestId: string;
188
+ depth?: number | undefined;
189
+ }, {
190
+ nestId: string;
191
+ depth?: number | undefined;
192
+ }>;
193
+ getCircle: z.ZodObject<{
194
+ workspaceId: z.ZodString;
195
+ circleId: z.ZodString;
196
+ }, "strip", z.ZodTypeAny, {
197
+ workspaceId: string;
198
+ circleId: string;
199
+ }, {
200
+ workspaceId: string;
201
+ circleId: string;
202
+ }>;
203
+ getUser: z.ZodObject<{
204
+ workspaceId: z.ZodString;
205
+ userId: z.ZodString;
206
+ }, "strip", z.ZodTypeAny, {
207
+ userId: string;
208
+ workspaceId: string;
209
+ }, {
210
+ userId: string;
211
+ workspaceId: string;
212
+ }>;
213
+ getLabel: z.ZodObject<{
214
+ workspaceId: z.ZodString;
215
+ labelId: z.ZodString;
216
+ }, "strip", z.ZodTypeAny, {
217
+ workspaceId: string;
218
+ labelId: string;
219
+ }, {
220
+ workspaceId: string;
221
+ labelId: string;
222
+ }>;
223
+ getInsightHistory: z.ZodObject<{
224
+ workspaceId: z.ZodString;
225
+ metricId: z.ZodString;
226
+ from: z.ZodOptional<z.ZodString>;
227
+ to: z.ZodOptional<z.ZodString>;
228
+ limit: z.ZodOptional<z.ZodNumber>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ workspaceId: string;
231
+ metricId: string;
232
+ limit?: number | undefined;
233
+ from?: string | undefined;
234
+ to?: string | undefined;
235
+ }, {
236
+ workspaceId: string;
237
+ metricId: string;
238
+ limit?: number | undefined;
239
+ from?: string | undefined;
240
+ to?: string | undefined;
241
+ }>;
242
+ getWorkspaceApps: z.ZodObject<{
243
+ workspaceId: z.ZodString;
244
+ }, "strip", z.ZodTypeAny, {
245
+ workspaceId: string;
246
+ }, {
247
+ workspaceId: string;
248
+ }>;
249
+ listInbox: z.ZodObject<{
250
+ completedAfter: z.ZodOptional<z.ZodString>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ completedAfter?: string | undefined;
253
+ }, {
254
+ completedAfter?: string | undefined;
255
+ }>;
256
+ createInboxItem: z.ZodObject<{
257
+ title: z.ZodString;
258
+ description: z.ZodOptional<z.ZodString>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ title: string;
261
+ description?: string | undefined;
262
+ }, {
263
+ title: string;
264
+ description?: string | undefined;
265
+ }>;
266
+ getInboxItem: z.ZodObject<{
267
+ nestId: z.ZodString;
268
+ }, "strip", z.ZodTypeAny, {
269
+ nestId: string;
270
+ }, {
271
+ nestId: string;
272
+ }>;
273
+ updateInboxItem: z.ZodObject<{
274
+ nestId: z.ZodString;
275
+ title: z.ZodOptional<z.ZodString>;
276
+ description: z.ZodOptional<z.ZodString>;
277
+ completed: z.ZodOptional<z.ZodBoolean>;
278
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ nestId: string;
281
+ title?: string | undefined;
282
+ data?: Record<string, unknown> | undefined;
283
+ description?: string | undefined;
284
+ completed?: boolean | undefined;
285
+ }, {
286
+ nestId: string;
287
+ title?: string | undefined;
288
+ data?: Record<string, unknown> | undefined;
289
+ description?: string | undefined;
290
+ completed?: boolean | undefined;
291
+ }>;
292
+ };
293
+ export declare const toolDefinitions: ({
294
+ name: string;
295
+ description: string;
296
+ inputSchema: {
297
+ type: "object";
298
+ properties: {
299
+ search: {
300
+ type: string;
301
+ description: string;
302
+ };
303
+ limit: {
304
+ type: string;
305
+ description: string;
306
+ };
307
+ workspaceId?: undefined;
308
+ query?: undefined;
309
+ nestId?: undefined;
310
+ parentId?: undefined;
311
+ title?: undefined;
312
+ purpose?: undefined;
313
+ labels?: undefined;
314
+ users?: undefined;
315
+ fields?: undefined;
316
+ data?: undefined;
317
+ body?: undefined;
318
+ circleId?: undefined;
319
+ includeSubCircles?: undefined;
320
+ depth?: undefined;
321
+ userId?: undefined;
322
+ labelId?: undefined;
323
+ metricId?: undefined;
324
+ from?: undefined;
325
+ to?: undefined;
326
+ completedAfter?: undefined;
327
+ description?: undefined;
328
+ completed?: undefined;
329
+ };
330
+ required?: undefined;
331
+ };
332
+ } | {
333
+ name: string;
334
+ description: string;
335
+ inputSchema: {
336
+ type: "object";
337
+ properties: {
338
+ workspaceId: {
339
+ type: string;
340
+ description: string;
341
+ };
342
+ search?: undefined;
343
+ limit?: undefined;
344
+ query?: undefined;
345
+ nestId?: undefined;
346
+ parentId?: undefined;
347
+ title?: undefined;
348
+ purpose?: undefined;
349
+ labels?: undefined;
350
+ users?: undefined;
351
+ fields?: undefined;
352
+ data?: undefined;
353
+ body?: undefined;
354
+ circleId?: undefined;
355
+ includeSubCircles?: undefined;
356
+ depth?: undefined;
357
+ userId?: undefined;
358
+ labelId?: undefined;
359
+ metricId?: undefined;
360
+ from?: undefined;
361
+ to?: undefined;
362
+ completedAfter?: undefined;
363
+ description?: undefined;
364
+ completed?: undefined;
365
+ };
366
+ required: string[];
367
+ };
368
+ } | {
369
+ name: string;
370
+ description: string;
371
+ inputSchema: {
372
+ type: "object";
373
+ properties: {
374
+ workspaceId: {
375
+ type: string;
376
+ description: string;
377
+ };
378
+ query: {
379
+ type: string;
380
+ description: string;
381
+ };
382
+ limit: {
383
+ type: string;
384
+ description: string;
385
+ };
386
+ search?: undefined;
387
+ nestId?: undefined;
388
+ parentId?: undefined;
389
+ title?: undefined;
390
+ purpose?: undefined;
391
+ labels?: undefined;
392
+ users?: undefined;
393
+ fields?: undefined;
394
+ data?: undefined;
395
+ body?: undefined;
396
+ circleId?: undefined;
397
+ includeSubCircles?: undefined;
398
+ depth?: undefined;
399
+ userId?: undefined;
400
+ labelId?: undefined;
401
+ metricId?: undefined;
402
+ from?: undefined;
403
+ to?: undefined;
404
+ completedAfter?: undefined;
405
+ description?: undefined;
406
+ completed?: undefined;
407
+ };
408
+ required: string[];
409
+ };
410
+ } | {
411
+ name: string;
412
+ description: string;
413
+ inputSchema: {
414
+ type: "object";
415
+ properties: {
416
+ nestId: {
417
+ type: string;
418
+ description: string;
419
+ };
420
+ search?: undefined;
421
+ limit?: undefined;
422
+ workspaceId?: undefined;
423
+ query?: undefined;
424
+ parentId?: undefined;
425
+ title?: undefined;
426
+ purpose?: undefined;
427
+ labels?: undefined;
428
+ users?: undefined;
429
+ fields?: undefined;
430
+ data?: undefined;
431
+ body?: undefined;
432
+ circleId?: undefined;
433
+ includeSubCircles?: undefined;
434
+ depth?: undefined;
435
+ userId?: undefined;
436
+ labelId?: undefined;
437
+ metricId?: undefined;
438
+ from?: undefined;
439
+ to?: undefined;
440
+ completedAfter?: undefined;
441
+ description?: undefined;
442
+ completed?: undefined;
443
+ };
444
+ required: string[];
445
+ };
446
+ } | {
447
+ name: string;
448
+ description: string;
449
+ inputSchema: {
450
+ type: "object";
451
+ properties: {
452
+ parentId: {
453
+ type: string;
454
+ description: string;
455
+ };
456
+ title: {
457
+ type: string;
458
+ description: string;
459
+ };
460
+ purpose: {
461
+ type: string;
462
+ description: string;
463
+ };
464
+ labels: {
465
+ type: string;
466
+ items: {
467
+ type: string;
468
+ };
469
+ description: string;
470
+ };
471
+ users: {
472
+ type: string;
473
+ items: {
474
+ type: string;
475
+ };
476
+ description: string;
477
+ };
478
+ search?: undefined;
479
+ limit?: undefined;
480
+ workspaceId?: undefined;
481
+ query?: undefined;
482
+ nestId?: undefined;
483
+ fields?: undefined;
484
+ data?: undefined;
485
+ body?: undefined;
486
+ circleId?: undefined;
487
+ includeSubCircles?: undefined;
488
+ depth?: undefined;
489
+ userId?: undefined;
490
+ labelId?: undefined;
491
+ metricId?: undefined;
492
+ from?: undefined;
493
+ to?: undefined;
494
+ completedAfter?: undefined;
495
+ description?: undefined;
496
+ completed?: undefined;
497
+ };
498
+ required: string[];
499
+ };
500
+ } | {
501
+ name: string;
502
+ description: string;
503
+ inputSchema: {
504
+ type: "object";
505
+ properties: {
506
+ nestId: {
507
+ type: string;
508
+ description: string;
509
+ };
510
+ title: {
511
+ type: string;
512
+ description: string;
513
+ };
514
+ purpose: {
515
+ type: string;
516
+ description: string;
517
+ };
518
+ parentId: {
519
+ type: string;
520
+ description: string;
521
+ };
522
+ fields: {
523
+ type: string;
524
+ description: string;
525
+ };
526
+ users: {
527
+ type: string;
528
+ items: {
529
+ type: string;
530
+ };
531
+ description: string;
532
+ };
533
+ data: {
534
+ type: string;
535
+ description: string;
536
+ };
537
+ search?: undefined;
538
+ limit?: undefined;
539
+ workspaceId?: undefined;
540
+ query?: undefined;
541
+ labels?: undefined;
542
+ body?: undefined;
543
+ circleId?: undefined;
544
+ includeSubCircles?: undefined;
545
+ depth?: undefined;
546
+ userId?: undefined;
547
+ labelId?: undefined;
548
+ metricId?: undefined;
549
+ from?: undefined;
550
+ to?: undefined;
551
+ completedAfter?: undefined;
552
+ description?: undefined;
553
+ completed?: undefined;
554
+ };
555
+ required: string[];
556
+ };
557
+ } | {
558
+ name: string;
559
+ description: string;
560
+ inputSchema: {
561
+ type: "object";
562
+ properties: {
563
+ nestId: {
564
+ type: string;
565
+ description: string;
566
+ };
567
+ body: {
568
+ type: string;
569
+ description: string;
570
+ };
571
+ search?: undefined;
572
+ limit?: undefined;
573
+ workspaceId?: undefined;
574
+ query?: undefined;
575
+ parentId?: undefined;
576
+ title?: undefined;
577
+ purpose?: undefined;
578
+ labels?: undefined;
579
+ users?: undefined;
580
+ fields?: undefined;
581
+ data?: undefined;
582
+ circleId?: undefined;
583
+ includeSubCircles?: undefined;
584
+ depth?: undefined;
585
+ userId?: undefined;
586
+ labelId?: undefined;
587
+ metricId?: undefined;
588
+ from?: undefined;
589
+ to?: undefined;
590
+ completedAfter?: undefined;
591
+ description?: undefined;
592
+ completed?: undefined;
593
+ };
594
+ required: string[];
595
+ };
596
+ } | {
597
+ name: string;
598
+ description: string;
599
+ inputSchema: {
600
+ type: "object";
601
+ properties: {
602
+ workspaceId: {
603
+ type: string;
604
+ description: string;
605
+ };
606
+ limit: {
607
+ type: string;
608
+ description: string;
609
+ };
610
+ search?: undefined;
611
+ query?: undefined;
612
+ nestId?: undefined;
613
+ parentId?: undefined;
614
+ title?: undefined;
615
+ purpose?: undefined;
616
+ labels?: undefined;
617
+ users?: undefined;
618
+ fields?: undefined;
619
+ data?: undefined;
620
+ body?: undefined;
621
+ circleId?: undefined;
622
+ includeSubCircles?: undefined;
623
+ depth?: undefined;
624
+ userId?: undefined;
625
+ labelId?: undefined;
626
+ metricId?: undefined;
627
+ from?: undefined;
628
+ to?: undefined;
629
+ completedAfter?: undefined;
630
+ description?: undefined;
631
+ completed?: undefined;
632
+ };
633
+ required: string[];
634
+ };
635
+ } | {
636
+ name: string;
637
+ description: string;
638
+ inputSchema: {
639
+ type: "object";
640
+ properties: {
641
+ workspaceId: {
642
+ type: string;
643
+ description: string;
644
+ };
645
+ circleId: {
646
+ type: string;
647
+ description: string;
648
+ };
649
+ search?: undefined;
650
+ limit?: undefined;
651
+ query?: undefined;
652
+ nestId?: undefined;
653
+ parentId?: undefined;
654
+ title?: undefined;
655
+ purpose?: undefined;
656
+ labels?: undefined;
657
+ users?: undefined;
658
+ fields?: undefined;
659
+ data?: undefined;
660
+ body?: undefined;
661
+ includeSubCircles?: undefined;
662
+ depth?: undefined;
663
+ userId?: undefined;
664
+ labelId?: undefined;
665
+ metricId?: undefined;
666
+ from?: undefined;
667
+ to?: undefined;
668
+ completedAfter?: undefined;
669
+ description?: undefined;
670
+ completed?: undefined;
671
+ };
672
+ required: string[];
673
+ };
674
+ } | {
675
+ name: string;
676
+ description: string;
677
+ inputSchema: {
678
+ type: "object";
679
+ properties: {
680
+ workspaceId: {
681
+ type: string;
682
+ description: string;
683
+ };
684
+ includeSubCircles: {
685
+ type: string;
686
+ description: string;
687
+ };
688
+ search?: undefined;
689
+ limit?: undefined;
690
+ query?: undefined;
691
+ nestId?: undefined;
692
+ parentId?: undefined;
693
+ title?: undefined;
694
+ purpose?: undefined;
695
+ labels?: undefined;
696
+ users?: undefined;
697
+ fields?: undefined;
698
+ data?: undefined;
699
+ body?: undefined;
700
+ circleId?: undefined;
701
+ depth?: undefined;
702
+ userId?: undefined;
703
+ labelId?: undefined;
704
+ metricId?: undefined;
705
+ from?: undefined;
706
+ to?: undefined;
707
+ completedAfter?: undefined;
708
+ description?: undefined;
709
+ completed?: undefined;
710
+ };
711
+ required: string[];
712
+ };
713
+ } | {
714
+ name: string;
715
+ description: string;
716
+ inputSchema: {
717
+ type: "object";
718
+ properties: {
719
+ workspaceId: {
720
+ type: string;
721
+ description: string;
722
+ };
723
+ search: {
724
+ type: string;
725
+ description: string;
726
+ };
727
+ limit?: undefined;
728
+ query?: undefined;
729
+ nestId?: undefined;
730
+ parentId?: undefined;
731
+ title?: undefined;
732
+ purpose?: undefined;
733
+ labels?: undefined;
734
+ users?: undefined;
735
+ fields?: undefined;
736
+ data?: undefined;
737
+ body?: undefined;
738
+ circleId?: undefined;
739
+ includeSubCircles?: undefined;
740
+ depth?: undefined;
741
+ userId?: undefined;
742
+ labelId?: undefined;
743
+ metricId?: undefined;
744
+ from?: undefined;
745
+ to?: undefined;
746
+ completedAfter?: undefined;
747
+ description?: undefined;
748
+ completed?: undefined;
749
+ };
750
+ required: string[];
751
+ };
752
+ } | {
753
+ name: string;
754
+ description: string;
755
+ inputSchema: {
756
+ type: "object";
757
+ properties: {
758
+ nestId: {
759
+ type: string;
760
+ description: string;
761
+ };
762
+ depth: {
763
+ type: string;
764
+ description: string;
765
+ };
766
+ search?: undefined;
767
+ limit?: undefined;
768
+ workspaceId?: undefined;
769
+ query?: undefined;
770
+ parentId?: undefined;
771
+ title?: undefined;
772
+ purpose?: undefined;
773
+ labels?: undefined;
774
+ users?: undefined;
775
+ fields?: undefined;
776
+ data?: undefined;
777
+ body?: undefined;
778
+ circleId?: undefined;
779
+ includeSubCircles?: undefined;
780
+ userId?: undefined;
781
+ labelId?: undefined;
782
+ metricId?: undefined;
783
+ from?: undefined;
784
+ to?: undefined;
785
+ completedAfter?: undefined;
786
+ description?: undefined;
787
+ completed?: undefined;
788
+ };
789
+ required: string[];
790
+ };
791
+ } | {
792
+ name: string;
793
+ description: string;
794
+ inputSchema: {
795
+ type: "object";
796
+ properties: {
797
+ workspaceId: {
798
+ type: string;
799
+ description: string;
800
+ };
801
+ userId: {
802
+ type: string;
803
+ description: string;
804
+ };
805
+ search?: undefined;
806
+ limit?: undefined;
807
+ query?: undefined;
808
+ nestId?: undefined;
809
+ parentId?: undefined;
810
+ title?: undefined;
811
+ purpose?: undefined;
812
+ labels?: undefined;
813
+ users?: undefined;
814
+ fields?: undefined;
815
+ data?: undefined;
816
+ body?: undefined;
817
+ circleId?: undefined;
818
+ includeSubCircles?: undefined;
819
+ depth?: undefined;
820
+ labelId?: undefined;
821
+ metricId?: undefined;
822
+ from?: undefined;
823
+ to?: undefined;
824
+ completedAfter?: undefined;
825
+ description?: undefined;
826
+ completed?: undefined;
827
+ };
828
+ required: string[];
829
+ };
830
+ } | {
831
+ name: string;
832
+ description: string;
833
+ inputSchema: {
834
+ type: "object";
835
+ properties: {
836
+ workspaceId: {
837
+ type: string;
838
+ description: string;
839
+ };
840
+ labelId: {
841
+ type: string;
842
+ description: string;
843
+ };
844
+ search?: undefined;
845
+ limit?: undefined;
846
+ query?: undefined;
847
+ nestId?: undefined;
848
+ parentId?: undefined;
849
+ title?: undefined;
850
+ purpose?: undefined;
851
+ labels?: undefined;
852
+ users?: undefined;
853
+ fields?: undefined;
854
+ data?: undefined;
855
+ body?: undefined;
856
+ circleId?: undefined;
857
+ includeSubCircles?: undefined;
858
+ depth?: undefined;
859
+ userId?: undefined;
860
+ metricId?: undefined;
861
+ from?: undefined;
862
+ to?: undefined;
863
+ completedAfter?: undefined;
864
+ description?: undefined;
865
+ completed?: undefined;
866
+ };
867
+ required: string[];
868
+ };
869
+ } | {
870
+ name: string;
871
+ description: string;
872
+ inputSchema: {
873
+ type: "object";
874
+ properties: {
875
+ workspaceId: {
876
+ type: string;
877
+ description: string;
878
+ };
879
+ metricId: {
880
+ type: string;
881
+ description: string;
882
+ };
883
+ from: {
884
+ type: string;
885
+ description: string;
886
+ };
887
+ to: {
888
+ type: string;
889
+ description: string;
890
+ };
891
+ limit: {
892
+ type: string;
893
+ description: string;
894
+ };
895
+ search?: undefined;
896
+ query?: undefined;
897
+ nestId?: undefined;
898
+ parentId?: undefined;
899
+ title?: undefined;
900
+ purpose?: undefined;
901
+ labels?: undefined;
902
+ users?: undefined;
903
+ fields?: undefined;
904
+ data?: undefined;
905
+ body?: undefined;
906
+ circleId?: undefined;
907
+ includeSubCircles?: undefined;
908
+ depth?: undefined;
909
+ userId?: undefined;
910
+ labelId?: undefined;
911
+ completedAfter?: undefined;
912
+ description?: undefined;
913
+ completed?: undefined;
914
+ };
915
+ required: string[];
916
+ };
917
+ } | {
918
+ name: string;
919
+ description: string;
920
+ inputSchema: {
921
+ type: "object";
922
+ properties: {
923
+ completedAfter: {
924
+ type: string;
925
+ description: string;
926
+ };
927
+ search?: undefined;
928
+ limit?: undefined;
929
+ workspaceId?: undefined;
930
+ query?: undefined;
931
+ nestId?: undefined;
932
+ parentId?: undefined;
933
+ title?: undefined;
934
+ purpose?: undefined;
935
+ labels?: undefined;
936
+ users?: undefined;
937
+ fields?: undefined;
938
+ data?: undefined;
939
+ body?: undefined;
940
+ circleId?: undefined;
941
+ includeSubCircles?: undefined;
942
+ depth?: undefined;
943
+ userId?: undefined;
944
+ labelId?: undefined;
945
+ metricId?: undefined;
946
+ from?: undefined;
947
+ to?: undefined;
948
+ description?: undefined;
949
+ completed?: undefined;
950
+ };
951
+ required?: undefined;
952
+ };
953
+ } | {
954
+ name: string;
955
+ description: string;
956
+ inputSchema: {
957
+ type: "object";
958
+ properties: {
959
+ title: {
960
+ type: string;
961
+ description: string;
962
+ };
963
+ description: {
964
+ type: string;
965
+ description: string;
966
+ };
967
+ search?: undefined;
968
+ limit?: undefined;
969
+ workspaceId?: undefined;
970
+ query?: undefined;
971
+ nestId?: undefined;
972
+ parentId?: undefined;
973
+ purpose?: undefined;
974
+ labels?: undefined;
975
+ users?: undefined;
976
+ fields?: undefined;
977
+ data?: undefined;
978
+ body?: undefined;
979
+ circleId?: undefined;
980
+ includeSubCircles?: undefined;
981
+ depth?: undefined;
982
+ userId?: undefined;
983
+ labelId?: undefined;
984
+ metricId?: undefined;
985
+ from?: undefined;
986
+ to?: undefined;
987
+ completedAfter?: undefined;
988
+ completed?: undefined;
989
+ };
990
+ required: string[];
991
+ };
992
+ } | {
993
+ name: string;
994
+ description: string;
995
+ inputSchema: {
996
+ type: "object";
997
+ properties: {
998
+ nestId: {
999
+ type: string;
1000
+ description: string;
1001
+ };
1002
+ title: {
1003
+ type: string;
1004
+ description: string;
1005
+ };
1006
+ description: {
1007
+ type: string;
1008
+ description: string;
1009
+ };
1010
+ completed: {
1011
+ type: string;
1012
+ description: string;
1013
+ };
1014
+ data: {
1015
+ type: string;
1016
+ description: string;
1017
+ };
1018
+ search?: undefined;
1019
+ limit?: undefined;
1020
+ workspaceId?: undefined;
1021
+ query?: undefined;
1022
+ parentId?: undefined;
1023
+ purpose?: undefined;
1024
+ labels?: undefined;
1025
+ users?: undefined;
1026
+ fields?: undefined;
1027
+ body?: undefined;
1028
+ circleId?: undefined;
1029
+ includeSubCircles?: undefined;
1030
+ depth?: undefined;
1031
+ userId?: undefined;
1032
+ labelId?: undefined;
1033
+ metricId?: undefined;
1034
+ from?: undefined;
1035
+ to?: undefined;
1036
+ completedAfter?: undefined;
1037
+ };
1038
+ required: string[];
1039
+ };
1040
+ })[];
1041
+ export type ToolResult = {
1042
+ content: Array<{
1043
+ type: "text";
1044
+ text: string;
1045
+ }>;
1046
+ isError?: boolean;
1047
+ };
1048
+ export declare function handleToolCall(client: NestrClient, name: string, args: Record<string, unknown>): Promise<ToolResult>;
1049
+ //# sourceMappingURL=index.d.ts.map