@noteplanco/noteplan-mcp 1.1.7 → 1.1.9

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 (79) hide show
  1. package/dist/noteplan/embeddings.d.ts +8 -0
  2. package/dist/noteplan/embeddings.d.ts.map +1 -1
  3. package/dist/noteplan/embeddings.js +3 -3
  4. package/dist/noteplan/embeddings.js.map +1 -1
  5. package/dist/noteplan/file-reader.d.ts +6 -0
  6. package/dist/noteplan/file-reader.d.ts.map +1 -1
  7. package/dist/noteplan/file-reader.js +15 -0
  8. package/dist/noteplan/file-reader.js.map +1 -1
  9. package/dist/noteplan/file-writer.d.ts.map +1 -1
  10. package/dist/noteplan/file-writer.js +13 -1
  11. package/dist/noteplan/file-writer.js.map +1 -1
  12. package/dist/noteplan/file-writer.test.js +4 -0
  13. package/dist/noteplan/file-writer.test.js.map +1 -1
  14. package/dist/noteplan/frontmatter-parser.d.ts +4 -4
  15. package/dist/noteplan/frontmatter-parser.d.ts.map +1 -1
  16. package/dist/noteplan/frontmatter-parser.js +11 -14
  17. package/dist/noteplan/frontmatter-parser.js.map +1 -1
  18. package/dist/noteplan/frontmatter-parser.test.js +92 -0
  19. package/dist/noteplan/frontmatter-parser.test.js.map +1 -1
  20. package/dist/noteplan/markdown-parser.d.ts.map +1 -1
  21. package/dist/noteplan/markdown-parser.js +4 -2
  22. package/dist/noteplan/markdown-parser.js.map +1 -1
  23. package/dist/noteplan/markdown-parser.test.js +129 -0
  24. package/dist/noteplan/markdown-parser.test.js.map +1 -1
  25. package/dist/noteplan/sqlite-loader.d.ts +11 -2
  26. package/dist/noteplan/sqlite-loader.d.ts.map +1 -1
  27. package/dist/noteplan/sqlite-loader.js +143 -15
  28. package/dist/noteplan/sqlite-loader.js.map +1 -1
  29. package/dist/noteplan/sqlite-writer.d.ts.map +1 -1
  30. package/dist/noteplan/sqlite-writer.js +3 -0
  31. package/dist/noteplan/sqlite-writer.js.map +1 -1
  32. package/dist/noteplan/template-docs.d.ts +35 -0
  33. package/dist/noteplan/template-docs.d.ts.map +1 -0
  34. package/dist/noteplan/template-docs.js +184 -0
  35. package/dist/noteplan/template-docs.js.map +1 -0
  36. package/dist/noteplan/unified-store.d.ts +2 -0
  37. package/dist/noteplan/unified-store.d.ts.map +1 -1
  38. package/dist/noteplan/unified-store.js +30 -7
  39. package/dist/noteplan/unified-store.js.map +1 -1
  40. package/dist/server.d.ts.map +1 -1
  41. package/dist/server.js +307 -65
  42. package/dist/server.js.map +1 -1
  43. package/dist/tools/calendar.d.ts +2 -2
  44. package/dist/tools/events.d.ts +16 -16
  45. package/dist/tools/events.d.ts.map +1 -1
  46. package/dist/tools/events.js +17 -2
  47. package/dist/tools/events.js.map +1 -1
  48. package/dist/tools/notes.d.ts +327 -45
  49. package/dist/tools/notes.d.ts.map +1 -1
  50. package/dist/tools/notes.js +391 -51
  51. package/dist/tools/notes.js.map +1 -1
  52. package/dist/tools/notes.test.js +959 -1
  53. package/dist/tools/notes.test.js.map +1 -1
  54. package/dist/tools/plugins.d.ts.map +1 -1
  55. package/dist/tools/plugins.js +1 -0
  56. package/dist/tools/plugins.js.map +1 -1
  57. package/dist/tools/search.d.ts +2 -2
  58. package/dist/tools/search.d.ts.map +1 -1
  59. package/dist/tools/search.js +32 -4
  60. package/dist/tools/search.js.map +1 -1
  61. package/dist/tools/tasks.d.ts +86 -10
  62. package/dist/tools/tasks.d.ts.map +1 -1
  63. package/dist/tools/tasks.js +84 -25
  64. package/dist/tools/tasks.js.map +1 -1
  65. package/dist/tools/templates.d.ts +64 -3
  66. package/dist/tools/templates.d.ts.map +1 -1
  67. package/dist/tools/templates.js +73 -1
  68. package/dist/tools/templates.js.map +1 -1
  69. package/dist/tools/ui-automation.d.ts +74 -0
  70. package/dist/tools/ui-automation.d.ts.map +1 -0
  71. package/dist/tools/ui-automation.js +209 -0
  72. package/dist/tools/ui-automation.js.map +1 -0
  73. package/dist/utils/version.d.ts +1 -0
  74. package/dist/utils/version.d.ts.map +1 -1
  75. package/dist/utils/version.js +89 -27
  76. package/dist/utils/version.js.map +1 -1
  77. package/docs/templates.db.gz +0 -0
  78. package/docs/x-callback-url.md +318 -0
  79. package/package.json +1 -1
@@ -1,4 +1,28 @@
1
1
  import { z } from 'zod';
2
+ import * as store from '../noteplan/unified-store.js';
3
+ import { NoteType } from '../noteplan/types.js';
4
+ export type WritableNoteReferenceInput = {
5
+ id?: string;
6
+ filename?: string;
7
+ title?: string;
8
+ date?: string;
9
+ query?: string;
10
+ space?: string;
11
+ };
12
+ export declare function resolveWritableNoteReference(input: WritableNoteReferenceInput): {
13
+ note: ReturnType<typeof store.getNote>;
14
+ error?: string;
15
+ candidates?: Array<{
16
+ id: string;
17
+ title: string;
18
+ filename: string;
19
+ score: number;
20
+ }>;
21
+ };
22
+ export declare function getWritableIdentifier(note: NonNullable<ReturnType<typeof store.getNote>>): {
23
+ identifier: string;
24
+ source: 'local' | 'space';
25
+ };
2
26
  type IndentationStyle = 'tabs' | 'preserve';
3
27
  export declare const getNoteSchema: z.ZodObject<{
4
28
  id: z.ZodOptional<z.ZodString>;
@@ -115,8 +139,12 @@ export declare const createNoteSchema: z.ZodObject<{
115
139
  noteType?: "note" | "template" | undefined;
116
140
  templateTypes?: ("empty-note" | "meeting-note" | "project-note" | "calendar-note")[] | undefined;
117
141
  }>;
118
- export declare const updateNoteSchema: z.ZodObject<{
119
- filename: z.ZodString;
142
+ export declare const updateNoteSchema: z.ZodEffects<z.ZodObject<{
143
+ id: z.ZodOptional<z.ZodString>;
144
+ filename: z.ZodOptional<z.ZodString>;
145
+ title: z.ZodOptional<z.ZodString>;
146
+ date: z.ZodOptional<z.ZodString>;
147
+ query: z.ZodOptional<z.ZodString>;
120
148
  space: z.ZodOptional<z.ZodString>;
121
149
  content: z.ZodString;
122
150
  fullReplace: z.ZodOptional<z.ZodBoolean>;
@@ -125,16 +153,48 @@ export declare const updateNoteSchema: z.ZodObject<{
125
153
  allowEmptyContent: z.ZodOptional<z.ZodBoolean>;
126
154
  }, "strip", z.ZodTypeAny, {
127
155
  content: string;
128
- filename: string;
129
156
  space?: string | undefined;
157
+ title?: string | undefined;
158
+ id?: string | undefined;
159
+ filename?: string | undefined;
160
+ date?: string | undefined;
161
+ query?: string | undefined;
130
162
  fullReplace?: boolean | undefined;
131
163
  dryRun?: boolean | undefined;
132
164
  confirmationToken?: string | undefined;
133
165
  allowEmptyContent?: boolean | undefined;
134
166
  }, {
135
167
  content: string;
136
- filename: string;
137
168
  space?: string | undefined;
169
+ title?: string | undefined;
170
+ id?: string | undefined;
171
+ filename?: string | undefined;
172
+ date?: string | undefined;
173
+ query?: string | undefined;
174
+ fullReplace?: boolean | undefined;
175
+ dryRun?: boolean | undefined;
176
+ confirmationToken?: string | undefined;
177
+ allowEmptyContent?: boolean | undefined;
178
+ }>, {
179
+ content: string;
180
+ space?: string | undefined;
181
+ title?: string | undefined;
182
+ id?: string | undefined;
183
+ filename?: string | undefined;
184
+ date?: string | undefined;
185
+ query?: string | undefined;
186
+ fullReplace?: boolean | undefined;
187
+ dryRun?: boolean | undefined;
188
+ confirmationToken?: string | undefined;
189
+ allowEmptyContent?: boolean | undefined;
190
+ }, {
191
+ content: string;
192
+ space?: string | undefined;
193
+ title?: string | undefined;
194
+ id?: string | undefined;
195
+ filename?: string | undefined;
196
+ date?: string | undefined;
197
+ query?: string | undefined;
138
198
  fullReplace?: boolean | undefined;
139
199
  dryRun?: boolean | undefined;
140
200
  confirmationToken?: string | undefined;
@@ -174,6 +234,9 @@ export declare const deleteNoteSchema: z.ZodEffects<z.ZodObject<{
174
234
  export declare const moveNoteSchema: z.ZodEffects<z.ZodObject<{
175
235
  id: z.ZodOptional<z.ZodString>;
176
236
  filename: z.ZodOptional<z.ZodString>;
237
+ title: z.ZodOptional<z.ZodString>;
238
+ date: z.ZodOptional<z.ZodString>;
239
+ query: z.ZodOptional<z.ZodString>;
177
240
  space: z.ZodOptional<z.ZodString>;
178
241
  destinationFolder: z.ZodString;
179
242
  dryRun: z.ZodOptional<z.ZodBoolean>;
@@ -181,29 +244,41 @@ export declare const moveNoteSchema: z.ZodEffects<z.ZodObject<{
181
244
  }, "strip", z.ZodTypeAny, {
182
245
  destinationFolder: string;
183
246
  space?: string | undefined;
247
+ title?: string | undefined;
184
248
  id?: string | undefined;
185
249
  filename?: string | undefined;
250
+ date?: string | undefined;
251
+ query?: string | undefined;
186
252
  dryRun?: boolean | undefined;
187
253
  confirmationToken?: string | undefined;
188
254
  }, {
189
255
  destinationFolder: string;
190
256
  space?: string | undefined;
257
+ title?: string | undefined;
191
258
  id?: string | undefined;
192
259
  filename?: string | undefined;
260
+ date?: string | undefined;
261
+ query?: string | undefined;
193
262
  dryRun?: boolean | undefined;
194
263
  confirmationToken?: string | undefined;
195
264
  }>, {
196
265
  destinationFolder: string;
197
266
  space?: string | undefined;
267
+ title?: string | undefined;
198
268
  id?: string | undefined;
199
269
  filename?: string | undefined;
270
+ date?: string | undefined;
271
+ query?: string | undefined;
200
272
  dryRun?: boolean | undefined;
201
273
  confirmationToken?: string | undefined;
202
274
  }, {
203
275
  destinationFolder: string;
204
276
  space?: string | undefined;
277
+ title?: string | undefined;
205
278
  id?: string | undefined;
206
279
  filename?: string | undefined;
280
+ date?: string | undefined;
281
+ query?: string | undefined;
207
282
  dryRun?: boolean | undefined;
208
283
  confirmationToken?: string | undefined;
209
284
  }>;
@@ -312,7 +387,7 @@ export declare function listNotes(params?: z.infer<typeof listNotesSchema>): {
312
387
  id: string;
313
388
  title: string;
314
389
  filename: string;
315
- type: import("../noteplan/types.js").NoteType;
390
+ type: NoteType;
316
391
  source: import("../noteplan/types.js").NoteSource;
317
392
  folder: string | undefined;
318
393
  spaceId: string | undefined;
@@ -322,10 +397,11 @@ export declare function listNotes(params?: z.infer<typeof listNotesSchema>): {
322
397
  export declare function resolveNote(params: z.infer<typeof resolveNoteSchema>): Record<string, unknown>;
323
398
  export declare function createNote(params: z.infer<typeof createNoteSchema>): {
324
399
  success: boolean;
400
+ tip: string;
325
401
  note: {
326
402
  title: string;
327
403
  filename: string;
328
- type: import("../noteplan/types.js").NoteType;
404
+ type: NoteType;
329
405
  source: import("../noteplan/types.js").NoteSource;
330
406
  folder: string | undefined;
331
407
  };
@@ -341,12 +417,24 @@ export declare function createNote(params: z.infer<typeof createNoteSchema>): {
341
417
  } | {
342
418
  success: boolean;
343
419
  error: string;
420
+ tip?: undefined;
344
421
  note?: undefined;
345
422
  folderResolution?: undefined;
346
423
  };
347
424
  export declare function updateNote(params: z.infer<typeof updateNoteSchema>): {
348
425
  success: boolean;
349
426
  error: string;
427
+ candidates?: undefined;
428
+ note?: undefined;
429
+ } | {
430
+ success: boolean;
431
+ error: string;
432
+ candidates: {
433
+ id: string;
434
+ title: string;
435
+ filename: string;
436
+ score: number;
437
+ }[] | undefined;
350
438
  note?: undefined;
351
439
  } | {
352
440
  confirmationToken: string;
@@ -358,7 +446,7 @@ export declare function updateNote(params: z.infer<typeof updateNoteSchema>): {
358
446
  id: string;
359
447
  title: string;
360
448
  filename: string;
361
- type: import("../noteplan/types.js").NoteType;
449
+ type: NoteType;
362
450
  source: import("../noteplan/types.js").NoteSource;
363
451
  folder: string | undefined;
364
452
  spaceId: string | undefined;
@@ -366,18 +454,20 @@ export declare function updateNote(params: z.infer<typeof updateNoteSchema>): {
366
454
  currentContentLength: number;
367
455
  newContentLength: number;
368
456
  error?: undefined;
457
+ candidates?: undefined;
369
458
  } | {
370
459
  success: boolean;
371
460
  note: {
372
461
  title: string;
373
462
  filename: string;
374
- type: import("../noteplan/types.js").NoteType;
463
+ type: NoteType;
375
464
  source: import("../noteplan/types.js").NoteSource;
376
465
  id?: undefined;
377
466
  folder?: undefined;
378
467
  spaceId?: undefined;
379
468
  };
380
469
  error?: undefined;
470
+ candidates?: undefined;
381
471
  };
382
472
  export declare function deleteNote(params: z.infer<typeof deleteNoteSchema>): {
383
473
  success: boolean;
@@ -396,7 +486,7 @@ export declare function deleteNote(params: z.infer<typeof deleteNoteSchema>): {
396
486
  id: string;
397
487
  title: string;
398
488
  filename: string;
399
- type: import("../noteplan/types.js").NoteType;
489
+ type: NoteType;
400
490
  source: import("../noteplan/types.js").NoteSource;
401
491
  folder: string | undefined;
402
492
  spaceId: string | undefined;
@@ -422,6 +512,12 @@ export declare function deleteNote(params: z.infer<typeof deleteNoteSchema>): {
422
512
  export declare function moveNote(params: z.infer<typeof moveNoteSchema>): {
423
513
  success: boolean;
424
514
  error: string;
515
+ candidates: {
516
+ id: string;
517
+ title: string;
518
+ filename: string;
519
+ score: number;
520
+ }[] | undefined;
425
521
  message?: undefined;
426
522
  fromFilename?: undefined;
427
523
  toFilename?: undefined;
@@ -441,13 +537,24 @@ export declare function moveNote(params: z.infer<typeof moveNoteSchema>): {
441
537
  id: string;
442
538
  title: string;
443
539
  filename: string;
444
- type: import("../noteplan/types.js").NoteType;
540
+ type: NoteType;
445
541
  source: import("../noteplan/types.js").NoteSource;
446
542
  folder: string | undefined;
447
543
  spaceId: string | undefined;
448
544
  };
449
545
  error?: undefined;
546
+ candidates?: undefined;
547
+ destinationParentId?: undefined;
548
+ } | {
549
+ success: boolean;
550
+ error: string;
551
+ candidates?: undefined;
552
+ message?: undefined;
553
+ fromFilename?: undefined;
554
+ toFilename?: undefined;
555
+ destinationFolder?: undefined;
450
556
  destinationParentId?: undefined;
557
+ note?: undefined;
451
558
  } | {
452
559
  success: boolean;
453
560
  message: string;
@@ -459,12 +566,13 @@ export declare function moveNote(params: z.infer<typeof moveNoteSchema>): {
459
566
  id: string;
460
567
  title: string;
461
568
  filename: string;
462
- type: import("../noteplan/types.js").NoteType;
569
+ type: NoteType;
463
570
  source: import("../noteplan/types.js").NoteSource;
464
571
  folder: string | undefined;
465
572
  spaceId?: undefined;
466
573
  };
467
574
  error?: undefined;
575
+ candidates?: undefined;
468
576
  };
469
577
  export declare function restoreNote(params: z.infer<typeof restoreNoteSchema>): {
470
578
  success: boolean;
@@ -487,7 +595,7 @@ export declare function restoreNote(params: z.infer<typeof restoreNoteSchema>):
487
595
  id: string;
488
596
  title: string;
489
597
  filename: string;
490
- type: import("../noteplan/types.js").NoteType;
598
+ type: NoteType;
491
599
  source: import("../noteplan/types.js").NoteSource;
492
600
  folder: string | undefined;
493
601
  spaceId: string | undefined;
@@ -503,7 +611,7 @@ export declare function restoreNote(params: z.infer<typeof restoreNoteSchema>):
503
611
  id: string;
504
612
  title: string;
505
613
  filename: string;
506
- type: import("../noteplan/types.js").NoteType;
614
+ type: NoteType;
507
615
  source: import("../noteplan/types.js").NoteSource;
508
616
  folder: string | undefined;
509
617
  spaceId?: undefined;
@@ -547,7 +655,7 @@ export declare function renameNoteFile(params: z.infer<typeof renameNoteFileSche
547
655
  id: string;
548
656
  title: string;
549
657
  filename: string;
550
- type: import("../noteplan/types.js").NoteType;
658
+ type: NoteType;
551
659
  source: "space";
552
660
  folder: string | undefined;
553
661
  spaceId: string | undefined;
@@ -565,7 +673,7 @@ export declare function renameNoteFile(params: z.infer<typeof renameNoteFileSche
565
673
  id: string;
566
674
  title: string;
567
675
  filename: string;
568
- type: import("../noteplan/types.js").NoteType;
676
+ type: NoteType;
569
677
  source: import("../noteplan/types.js").NoteSource;
570
678
  folder: string | undefined;
571
679
  spaceId: string | undefined;
@@ -586,7 +694,7 @@ export declare function renameNoteFile(params: z.infer<typeof renameNoteFileSche
586
694
  id: string;
587
695
  title: string;
588
696
  filename: string;
589
- type: import("../noteplan/types.js").NoteType;
697
+ type: NoteType;
590
698
  source: import("../noteplan/types.js").NoteSource;
591
699
  folder: string | undefined;
592
700
  spaceId: string | undefined;
@@ -604,7 +712,7 @@ export declare function renameNoteFile(params: z.infer<typeof renameNoteFileSche
604
712
  id: string;
605
713
  title: string;
606
714
  filename: string;
607
- type: import("../noteplan/types.js").NoteType;
715
+ type: NoteType;
608
716
  source: import("../noteplan/types.js").NoteSource;
609
717
  folder: string | undefined;
610
718
  spaceId?: undefined;
@@ -614,8 +722,12 @@ export declare function renameNoteFile(params: z.infer<typeof renameNoteFileSche
614
722
  fromTitle?: undefined;
615
723
  toTitle?: undefined;
616
724
  };
617
- export declare const getParagraphsSchema: z.ZodObject<{
618
- filename: z.ZodString;
725
+ export declare const getParagraphsSchema: z.ZodEffects<z.ZodObject<{
726
+ id: z.ZodOptional<z.ZodString>;
727
+ filename: z.ZodOptional<z.ZodString>;
728
+ title: z.ZodOptional<z.ZodString>;
729
+ date: z.ZodOptional<z.ZodString>;
730
+ query: z.ZodOptional<z.ZodString>;
619
731
  space: z.ZodOptional<z.ZodString>;
620
732
  startLine: z.ZodOptional<z.ZodNumber>;
621
733
  endLine: z.ZodOptional<z.ZodNumber>;
@@ -623,17 +735,49 @@ export declare const getParagraphsSchema: z.ZodObject<{
623
735
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
624
736
  cursor: z.ZodOptional<z.ZodString>;
625
737
  }, "strip", z.ZodTypeAny, {
626
- filename: string;
627
738
  limit: number;
628
739
  offset: number;
629
740
  space?: string | undefined;
741
+ title?: string | undefined;
742
+ id?: string | undefined;
743
+ filename?: string | undefined;
744
+ date?: string | undefined;
745
+ query?: string | undefined;
630
746
  cursor?: string | undefined;
631
747
  startLine?: number | undefined;
632
748
  endLine?: number | undefined;
633
749
  }, {
634
- filename: string;
635
750
  space?: string | undefined;
751
+ title?: string | undefined;
752
+ id?: string | undefined;
753
+ filename?: string | undefined;
754
+ date?: string | undefined;
636
755
  limit?: number | undefined;
756
+ query?: string | undefined;
757
+ offset?: number | undefined;
758
+ cursor?: string | undefined;
759
+ startLine?: number | undefined;
760
+ endLine?: number | undefined;
761
+ }>, {
762
+ limit: number;
763
+ offset: number;
764
+ space?: string | undefined;
765
+ title?: string | undefined;
766
+ id?: string | undefined;
767
+ filename?: string | undefined;
768
+ date?: string | undefined;
769
+ query?: string | undefined;
770
+ cursor?: string | undefined;
771
+ startLine?: number | undefined;
772
+ endLine?: number | undefined;
773
+ }, {
774
+ space?: string | undefined;
775
+ title?: string | undefined;
776
+ id?: string | undefined;
777
+ filename?: string | undefined;
778
+ date?: string | undefined;
779
+ limit?: number | undefined;
780
+ query?: string | undefined;
637
781
  offset?: number | undefined;
638
782
  cursor?: string | undefined;
639
783
  startLine?: number | undefined;
@@ -722,34 +866,92 @@ export declare const searchParagraphsSchema: z.ZodEffects<z.ZodObject<{
722
866
  }>;
723
867
  export declare function getParagraphs(params: z.infer<typeof getParagraphsSchema>): Record<string, unknown>;
724
868
  export declare function searchParagraphs(params: z.infer<typeof searchParagraphsSchema>): Record<string, unknown>;
725
- export declare const setPropertySchema: z.ZodObject<{
726
- filename: z.ZodString;
869
+ export declare const setPropertySchema: z.ZodEffects<z.ZodObject<{
870
+ id: z.ZodOptional<z.ZodString>;
871
+ filename: z.ZodOptional<z.ZodString>;
872
+ title: z.ZodOptional<z.ZodString>;
873
+ date: z.ZodOptional<z.ZodString>;
874
+ query: z.ZodOptional<z.ZodString>;
727
875
  space: z.ZodOptional<z.ZodString>;
728
876
  key: z.ZodString;
729
877
  value: z.ZodString;
730
878
  }, "strip", z.ZodTypeAny, {
731
879
  key: string;
732
880
  value: string;
733
- filename: string;
734
881
  space?: string | undefined;
882
+ title?: string | undefined;
883
+ id?: string | undefined;
884
+ filename?: string | undefined;
885
+ date?: string | undefined;
886
+ query?: string | undefined;
887
+ }, {
888
+ key: string;
889
+ value: string;
890
+ space?: string | undefined;
891
+ title?: string | undefined;
892
+ id?: string | undefined;
893
+ filename?: string | undefined;
894
+ date?: string | undefined;
895
+ query?: string | undefined;
896
+ }>, {
897
+ key: string;
898
+ value: string;
899
+ space?: string | undefined;
900
+ title?: string | undefined;
901
+ id?: string | undefined;
902
+ filename?: string | undefined;
903
+ date?: string | undefined;
904
+ query?: string | undefined;
735
905
  }, {
736
906
  key: string;
737
907
  value: string;
738
- filename: string;
739
908
  space?: string | undefined;
909
+ title?: string | undefined;
910
+ id?: string | undefined;
911
+ filename?: string | undefined;
912
+ date?: string | undefined;
913
+ query?: string | undefined;
740
914
  }>;
741
- export declare const removePropertySchema: z.ZodObject<{
742
- filename: z.ZodString;
915
+ export declare const removePropertySchema: z.ZodEffects<z.ZodObject<{
916
+ id: z.ZodOptional<z.ZodString>;
917
+ filename: z.ZodOptional<z.ZodString>;
918
+ title: z.ZodOptional<z.ZodString>;
919
+ date: z.ZodOptional<z.ZodString>;
920
+ query: z.ZodOptional<z.ZodString>;
743
921
  space: z.ZodOptional<z.ZodString>;
744
922
  key: z.ZodString;
745
923
  }, "strip", z.ZodTypeAny, {
746
924
  key: string;
747
- filename: string;
748
925
  space?: string | undefined;
926
+ title?: string | undefined;
927
+ id?: string | undefined;
928
+ filename?: string | undefined;
929
+ date?: string | undefined;
930
+ query?: string | undefined;
749
931
  }, {
750
932
  key: string;
751
- filename: string;
752
933
  space?: string | undefined;
934
+ title?: string | undefined;
935
+ id?: string | undefined;
936
+ filename?: string | undefined;
937
+ date?: string | undefined;
938
+ query?: string | undefined;
939
+ }>, {
940
+ key: string;
941
+ space?: string | undefined;
942
+ title?: string | undefined;
943
+ id?: string | undefined;
944
+ filename?: string | undefined;
945
+ date?: string | undefined;
946
+ query?: string | undefined;
947
+ }, {
948
+ key: string;
949
+ space?: string | undefined;
950
+ title?: string | undefined;
951
+ id?: string | undefined;
952
+ filename?: string | undefined;
953
+ date?: string | undefined;
954
+ query?: string | undefined;
753
955
  }>;
754
956
  export declare const insertContentSchema: z.ZodEffects<z.ZodObject<{
755
957
  id: z.ZodOptional<z.ZodString>;
@@ -1002,20 +1204,44 @@ export declare const replaceLinesSchema: z.ZodObject<{
1002
1204
  export declare function setProperty(params: z.infer<typeof setPropertySchema>): {
1003
1205
  success: boolean;
1004
1206
  error: string;
1207
+ candidates: {
1208
+ id: string;
1209
+ title: string;
1210
+ filename: string;
1211
+ score: number;
1212
+ }[] | undefined;
1005
1213
  message?: undefined;
1006
1214
  } | {
1007
1215
  success: boolean;
1008
1216
  message: string;
1009
1217
  error?: undefined;
1218
+ candidates?: undefined;
1219
+ } | {
1220
+ success: boolean;
1221
+ error: string;
1222
+ candidates?: undefined;
1223
+ message?: undefined;
1010
1224
  };
1011
1225
  export declare function removeProperty(params: z.infer<typeof removePropertySchema>): {
1012
1226
  success: boolean;
1013
1227
  error: string;
1228
+ candidates: {
1229
+ id: string;
1230
+ title: string;
1231
+ filename: string;
1232
+ score: number;
1233
+ }[] | undefined;
1014
1234
  message?: undefined;
1015
1235
  } | {
1016
1236
  success: boolean;
1017
1237
  message: string;
1018
1238
  error?: undefined;
1239
+ candidates?: undefined;
1240
+ } | {
1241
+ success: boolean;
1242
+ error: string;
1243
+ candidates?: undefined;
1244
+ message?: undefined;
1019
1245
  };
1020
1246
  export declare function insertContent(params: z.infer<typeof insertContentSchema>): {
1021
1247
  success: boolean;
@@ -1026,12 +1252,14 @@ export declare function insertContent(params: z.infer<typeof insertContentSchema
1026
1252
  filename: string;
1027
1253
  score: number;
1028
1254
  }[] | undefined;
1255
+ tip?: undefined;
1029
1256
  message?: undefined;
1030
1257
  note?: undefined;
1031
1258
  indentationStyle?: undefined;
1032
1259
  linesRetabbed?: undefined;
1033
1260
  } | {
1034
1261
  success: boolean;
1262
+ tip: string;
1035
1263
  message: string;
1036
1264
  note: {
1037
1265
  id: string;
@@ -1046,6 +1274,7 @@ export declare function insertContent(params: z.infer<typeof insertContentSchema
1046
1274
  success: boolean;
1047
1275
  error: string;
1048
1276
  candidates?: undefined;
1277
+ tip?: undefined;
1049
1278
  message?: undefined;
1050
1279
  note?: undefined;
1051
1280
  indentationStyle?: undefined;
@@ -1086,6 +1315,15 @@ export declare function appendContent(params: z.infer<typeof appendContentSchema
1086
1315
  linesRetabbed?: undefined;
1087
1316
  };
1088
1317
  export declare function deleteLines(params: z.infer<typeof deleteLinesSchema>): {
1318
+ success: boolean;
1319
+ error: string;
1320
+ candidates?: undefined;
1321
+ message?: undefined;
1322
+ lineCountToDelete?: undefined;
1323
+ removedAttachmentReferences?: undefined;
1324
+ removedAttachmentReferencesTruncated?: undefined;
1325
+ warnings?: undefined;
1326
+ } | {
1089
1327
  success: boolean;
1090
1328
  error: string;
1091
1329
  candidates: {
@@ -1116,15 +1354,6 @@ export declare function deleteLines(params: z.infer<typeof deleteLinesSchema>):
1116
1354
  warnings: string[] | undefined;
1117
1355
  error?: undefined;
1118
1356
  candidates?: undefined;
1119
- } | {
1120
- success: boolean;
1121
- error: string;
1122
- candidates?: undefined;
1123
- message?: undefined;
1124
- lineCountToDelete?: undefined;
1125
- removedAttachmentReferences?: undefined;
1126
- removedAttachmentReferencesTruncated?: undefined;
1127
- warnings?: undefined;
1128
1357
  } | {
1129
1358
  success: boolean;
1130
1359
  message: string;
@@ -1192,12 +1421,7 @@ export declare function editLine(params: z.infer<typeof editLineSchema>): {
1192
1421
  export declare function replaceLines(params: z.infer<typeof replaceLinesSchema>): {
1193
1422
  success: boolean;
1194
1423
  error: string;
1195
- candidates: {
1196
- id: string;
1197
- title: string;
1198
- filename: string;
1199
- score: number;
1200
- }[] | undefined;
1424
+ candidates?: undefined;
1201
1425
  message?: undefined;
1202
1426
  lineCountToReplace?: undefined;
1203
1427
  insertedLineCount?: undefined;
@@ -1212,7 +1436,12 @@ export declare function replaceLines(params: z.infer<typeof replaceLinesSchema>)
1212
1436
  } | {
1213
1437
  success: boolean;
1214
1438
  error: string;
1215
- candidates?: undefined;
1439
+ candidates: {
1440
+ id: string;
1441
+ title: string;
1442
+ filename: string;
1443
+ score: number;
1444
+ }[] | undefined;
1216
1445
  message?: undefined;
1217
1446
  lineCountToReplace?: undefined;
1218
1447
  insertedLineCount?: undefined;
@@ -1258,5 +1487,58 @@ export declare function replaceLines(params: z.infer<typeof replaceLinesSchema>)
1258
1487
  error?: undefined;
1259
1488
  candidates?: undefined;
1260
1489
  };
1490
+ export declare const searchParagraphsGlobalSchema: z.ZodObject<{
1491
+ query: z.ZodString;
1492
+ caseSensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1493
+ wholeWord: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1494
+ status: z.ZodOptional<z.ZodEnum<["open", "done", "cancelled", "scheduled"]>>;
1495
+ contextLines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1496
+ paragraphMaxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1497
+ folder: z.ZodOptional<z.ZodString>;
1498
+ space: z.ZodOptional<z.ZodString>;
1499
+ noteQuery: z.ZodOptional<z.ZodString>;
1500
+ noteTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["calendar", "note", "trash"]>, "many">>;
1501
+ preferCalendar: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1502
+ periodicOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1503
+ maxNotes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1504
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1505
+ offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1506
+ cursor: z.ZodOptional<z.ZodString>;
1507
+ }, "strip", z.ZodTypeAny, {
1508
+ limit: number;
1509
+ caseSensitive: boolean;
1510
+ contextLines: number;
1511
+ query: string;
1512
+ offset: number;
1513
+ wholeWord: boolean;
1514
+ paragraphMaxChars: number;
1515
+ preferCalendar: boolean;
1516
+ periodicOnly: boolean;
1517
+ maxNotes: number;
1518
+ space?: string | undefined;
1519
+ status?: "open" | "done" | "cancelled" | "scheduled" | undefined;
1520
+ folder?: string | undefined;
1521
+ cursor?: string | undefined;
1522
+ noteQuery?: string | undefined;
1523
+ noteTypes?: ("calendar" | "note" | "trash")[] | undefined;
1524
+ }, {
1525
+ query: string;
1526
+ space?: string | undefined;
1527
+ status?: "open" | "done" | "cancelled" | "scheduled" | undefined;
1528
+ folder?: string | undefined;
1529
+ limit?: number | undefined;
1530
+ caseSensitive?: boolean | undefined;
1531
+ contextLines?: number | undefined;
1532
+ offset?: number | undefined;
1533
+ cursor?: string | undefined;
1534
+ wholeWord?: boolean | undefined;
1535
+ paragraphMaxChars?: number | undefined;
1536
+ noteQuery?: string | undefined;
1537
+ noteTypes?: ("calendar" | "note" | "trash")[] | undefined;
1538
+ preferCalendar?: boolean | undefined;
1539
+ periodicOnly?: boolean | undefined;
1540
+ maxNotes?: number | undefined;
1541
+ }>;
1542
+ export declare function searchParagraphsGlobal(params: z.infer<typeof searchParagraphsGlobalSchema>): Record<string, unknown>;
1261
1543
  export {};
1262
1544
  //# sourceMappingURL=notes.d.ts.map