@noteplanco/noteplan-mcp 1.1.6 → 1.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.
Files changed (98) 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 +86 -17
  11. package/dist/noteplan/file-writer.js.map +1 -1
  12. package/dist/noteplan/file-writer.test.d.ts +2 -0
  13. package/dist/noteplan/file-writer.test.d.ts.map +1 -0
  14. package/dist/noteplan/file-writer.test.js +896 -0
  15. package/dist/noteplan/file-writer.test.js.map +1 -0
  16. package/dist/noteplan/filter-store.d.ts.map +1 -1
  17. package/dist/noteplan/filter-store.js +13 -1
  18. package/dist/noteplan/filter-store.js.map +1 -1
  19. package/dist/noteplan/frontmatter-parser.d.ts +10 -1
  20. package/dist/noteplan/frontmatter-parser.d.ts.map +1 -1
  21. package/dist/noteplan/frontmatter-parser.js +59 -6
  22. package/dist/noteplan/frontmatter-parser.js.map +1 -1
  23. package/dist/noteplan/frontmatter-parser.test.js +576 -1
  24. package/dist/noteplan/frontmatter-parser.test.js.map +1 -1
  25. package/dist/noteplan/markdown-parser.d.ts +6 -1
  26. package/dist/noteplan/markdown-parser.d.ts.map +1 -1
  27. package/dist/noteplan/markdown-parser.js +25 -46
  28. package/dist/noteplan/markdown-parser.js.map +1 -1
  29. package/dist/noteplan/markdown-parser.test.d.ts +2 -0
  30. package/dist/noteplan/markdown-parser.test.d.ts.map +1 -0
  31. package/dist/noteplan/markdown-parser.test.js +690 -0
  32. package/dist/noteplan/markdown-parser.test.js.map +1 -0
  33. package/dist/noteplan/template-docs.d.ts +35 -0
  34. package/dist/noteplan/template-docs.d.ts.map +1 -0
  35. package/dist/noteplan/template-docs.js +184 -0
  36. package/dist/noteplan/template-docs.js.map +1 -0
  37. package/dist/noteplan/unified-store.d.ts +2 -0
  38. package/dist/noteplan/unified-store.d.ts.map +1 -1
  39. package/dist/noteplan/unified-store.js +22 -6
  40. package/dist/noteplan/unified-store.js.map +1 -1
  41. package/dist/server.d.ts.map +1 -1
  42. package/dist/server.js +661 -241
  43. package/dist/server.js.map +1 -1
  44. package/dist/tools/attachments.d.ts +151 -0
  45. package/dist/tools/attachments.d.ts.map +1 -0
  46. package/dist/tools/attachments.js +421 -0
  47. package/dist/tools/attachments.js.map +1 -0
  48. package/dist/tools/attachments.test.d.ts +2 -0
  49. package/dist/tools/attachments.test.d.ts.map +1 -0
  50. package/dist/tools/attachments.test.js +561 -0
  51. package/dist/tools/attachments.test.js.map +1 -0
  52. package/dist/tools/calendar.d.ts +7 -7
  53. package/dist/tools/notes.d.ts +148 -48
  54. package/dist/tools/notes.d.ts.map +1 -1
  55. package/dist/tools/notes.js +366 -29
  56. package/dist/tools/notes.js.map +1 -1
  57. package/dist/tools/notes.test.d.ts +2 -0
  58. package/dist/tools/notes.test.d.ts.map +1 -0
  59. package/dist/tools/notes.test.js +800 -0
  60. package/dist/tools/notes.test.js.map +1 -0
  61. package/dist/tools/plugins.d.ts.map +1 -1
  62. package/dist/tools/plugins.js +1 -0
  63. package/dist/tools/plugins.js.map +1 -1
  64. package/dist/tools/reminders.d.ts +4 -4
  65. package/dist/tools/search.d.ts +2 -2
  66. package/dist/tools/search.d.ts.map +1 -1
  67. package/dist/tools/search.js +32 -4
  68. package/dist/tools/search.js.map +1 -1
  69. package/dist/tools/tasks.d.ts +10 -10
  70. package/dist/tools/tasks.d.ts.map +1 -1
  71. package/dist/tools/tasks.js +14 -27
  72. package/dist/tools/tasks.js.map +1 -1
  73. package/dist/tools/templates.d.ts +130 -0
  74. package/dist/tools/templates.d.ts.map +1 -0
  75. package/dist/tools/templates.js +217 -0
  76. package/dist/tools/templates.js.map +1 -0
  77. package/dist/tools/templates.test.d.ts +2 -0
  78. package/dist/tools/templates.test.d.ts.map +1 -0
  79. package/dist/tools/templates.test.js +48 -0
  80. package/dist/tools/templates.test.js.map +1 -0
  81. package/dist/tools/ui.d.ts +2 -0
  82. package/dist/tools/ui.d.ts.map +1 -1
  83. package/dist/tools/ui.js +24 -0
  84. package/dist/tools/ui.js.map +1 -1
  85. package/dist/utils/applescript.d.ts.map +1 -1
  86. package/dist/utils/applescript.js +21 -0
  87. package/dist/utils/applescript.js.map +1 -1
  88. package/dist/utils/confirmation-tokens.test.d.ts +2 -0
  89. package/dist/utils/confirmation-tokens.test.d.ts.map +1 -0
  90. package/dist/utils/confirmation-tokens.test.js +159 -0
  91. package/dist/utils/confirmation-tokens.test.js.map +1 -0
  92. package/dist/utils/version.d.ts +3 -0
  93. package/dist/utils/version.d.ts.map +1 -1
  94. package/dist/utils/version.js +71 -23
  95. package/dist/utils/version.js.map +1 -1
  96. package/docs/templates.db.gz +0 -0
  97. package/docs/x-callback-url.md +318 -0
  98. package/package.json +1 -1
@@ -11,8 +11,8 @@ export declare const addToTodaySchema: z.ZodObject<{
11
11
  position: z.ZodDefault<z.ZodOptional<z.ZodEnum<["start", "end"]>>>;
12
12
  space: z.ZodOptional<z.ZodString>;
13
13
  }, "strip", z.ZodTypeAny, {
14
- content: string;
15
14
  position: "start" | "end";
15
+ content: string;
16
16
  space?: string | undefined;
17
17
  }, {
18
18
  content: string;
@@ -137,17 +137,17 @@ export declare const getNotesInRangeSchema: z.ZodObject<{
137
137
  period: "today" | "yesterday" | "this-week" | "last-week" | "this-month" | "last-month" | "custom";
138
138
  maxDays: number;
139
139
  space?: string | undefined;
140
- includeContent?: boolean | undefined;
141
140
  cursor?: string | undefined;
141
+ includeContent?: boolean | undefined;
142
142
  startDate?: string | undefined;
143
143
  endDate?: string | undefined;
144
144
  }, {
145
145
  period: "today" | "yesterday" | "this-week" | "last-week" | "this-month" | "last-month" | "custom";
146
146
  space?: string | undefined;
147
147
  limit?: number | undefined;
148
- includeContent?: boolean | undefined;
149
148
  offset?: number | undefined;
150
149
  cursor?: string | undefined;
150
+ includeContent?: boolean | undefined;
151
151
  startDate?: string | undefined;
152
152
  endDate?: string | undefined;
153
153
  maxDays?: number | undefined;
@@ -162,8 +162,8 @@ export declare const getRecentPeriodicNotesSchema: z.ZodObject<{
162
162
  space: z.ZodOptional<z.ZodString>;
163
163
  }, "strip", z.ZodTypeAny, {
164
164
  type: "weekly" | "monthly" | "quarterly" | "yearly";
165
- includeContent: boolean;
166
165
  count: number;
166
+ includeContent: boolean;
167
167
  includeMissing: boolean;
168
168
  maxLookback: number;
169
169
  space?: string | undefined;
@@ -171,8 +171,8 @@ export declare const getRecentPeriodicNotesSchema: z.ZodObject<{
171
171
  }, {
172
172
  space?: string | undefined;
173
173
  type?: "weekly" | "monthly" | "quarterly" | "yearly" | undefined;
174
- includeContent?: boolean | undefined;
175
174
  count?: number | undefined;
175
+ includeContent?: boolean | undefined;
176
176
  fromDate?: string | undefined;
177
177
  includeMissing?: boolean | undefined;
178
178
  maxLookback?: number | undefined;
@@ -187,14 +187,14 @@ export declare const getNotesInFolderSchema: z.ZodObject<{
187
187
  folder: string;
188
188
  offset: number;
189
189
  limit?: number | undefined;
190
- includeContent?: boolean | undefined;
191
190
  cursor?: string | undefined;
191
+ includeContent?: boolean | undefined;
192
192
  }, {
193
193
  folder: string;
194
194
  limit?: number | undefined;
195
- includeContent?: boolean | undefined;
196
195
  offset?: number | undefined;
197
196
  cursor?: string | undefined;
197
+ includeContent?: boolean | undefined;
198
198
  }>;
199
199
  /**
200
200
  * Get a periodic note (weekly, monthly, quarterly, yearly)
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { NoteType } from '../noteplan/types.js';
2
3
  type IndentationStyle = 'tabs' | 'preserve';
3
4
  export declare const getNoteSchema: z.ZodObject<{
4
5
  id: z.ZodOptional<z.ZodString>;
@@ -22,10 +23,10 @@ export declare const getNoteSchema: z.ZodObject<{
22
23
  id?: string | undefined;
23
24
  filename?: string | undefined;
24
25
  date?: string | undefined;
26
+ cursor?: string | undefined;
25
27
  includeContent?: boolean | undefined;
26
28
  startLine?: number | undefined;
27
29
  endLine?: number | undefined;
28
- cursor?: string | undefined;
29
30
  }, {
30
31
  space?: string | undefined;
31
32
  title?: string | undefined;
@@ -33,11 +34,11 @@ export declare const getNoteSchema: z.ZodObject<{
33
34
  filename?: string | undefined;
34
35
  date?: string | undefined;
35
36
  limit?: number | undefined;
37
+ offset?: number | undefined;
38
+ cursor?: string | undefined;
36
39
  includeContent?: boolean | undefined;
37
40
  startLine?: number | undefined;
38
41
  endLine?: number | undefined;
39
- offset?: number | undefined;
40
- cursor?: string | undefined;
41
42
  previewChars?: number | undefined;
42
43
  }>;
43
44
  export declare const listNotesSchema: z.ZodObject<{
@@ -96,18 +97,24 @@ export declare const createNoteSchema: z.ZodObject<{
96
97
  folder: z.ZodOptional<z.ZodString>;
97
98
  create_new_folder: z.ZodOptional<z.ZodBoolean>;
98
99
  space: z.ZodOptional<z.ZodString>;
100
+ noteType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["note", "template"]>>>;
101
+ templateTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["empty-note", "meeting-note", "project-note", "calendar-note"]>, "many">>;
99
102
  }, "strip", z.ZodTypeAny, {
100
103
  title: string;
104
+ noteType: "note" | "template";
101
105
  space?: string | undefined;
102
106
  content?: string | undefined;
103
107
  folder?: string | undefined;
104
108
  create_new_folder?: boolean | undefined;
109
+ templateTypes?: ("empty-note" | "meeting-note" | "project-note" | "calendar-note")[] | undefined;
105
110
  }, {
106
111
  title: string;
107
112
  space?: string | undefined;
108
113
  content?: string | undefined;
109
114
  folder?: string | undefined;
110
115
  create_new_folder?: boolean | undefined;
116
+ noteType?: "note" | "template" | undefined;
117
+ templateTypes?: ("empty-note" | "meeting-note" | "project-note" | "calendar-note")[] | undefined;
111
118
  }>;
112
119
  export declare const updateNoteSchema: z.ZodObject<{
113
120
  filename: z.ZodString;
@@ -204,6 +211,8 @@ export declare const moveNoteSchema: z.ZodEffects<z.ZodObject<{
204
211
  export declare const renameNoteFileSchema: z.ZodEffects<z.ZodObject<{
205
212
  id: z.ZodOptional<z.ZodString>;
206
213
  filename: z.ZodOptional<z.ZodString>;
214
+ title: z.ZodOptional<z.ZodString>;
215
+ query: z.ZodOptional<z.ZodString>;
207
216
  space: z.ZodOptional<z.ZodString>;
208
217
  newFilename: z.ZodOptional<z.ZodString>;
209
218
  newTitle: z.ZodOptional<z.ZodString>;
@@ -213,16 +222,20 @@ export declare const renameNoteFileSchema: z.ZodEffects<z.ZodObject<{
213
222
  }, "strip", z.ZodTypeAny, {
214
223
  keepExtension: boolean;
215
224
  space?: string | undefined;
225
+ title?: string | undefined;
216
226
  id?: string | undefined;
217
227
  filename?: string | undefined;
228
+ query?: string | undefined;
218
229
  dryRun?: boolean | undefined;
219
230
  confirmationToken?: string | undefined;
220
231
  newFilename?: string | undefined;
221
232
  newTitle?: string | undefined;
222
233
  }, {
223
234
  space?: string | undefined;
235
+ title?: string | undefined;
224
236
  id?: string | undefined;
225
237
  filename?: string | undefined;
238
+ query?: string | undefined;
226
239
  dryRun?: boolean | undefined;
227
240
  confirmationToken?: string | undefined;
228
241
  newFilename?: string | undefined;
@@ -231,16 +244,20 @@ export declare const renameNoteFileSchema: z.ZodEffects<z.ZodObject<{
231
244
  }>, {
232
245
  keepExtension: boolean;
233
246
  space?: string | undefined;
247
+ title?: string | undefined;
234
248
  id?: string | undefined;
235
249
  filename?: string | undefined;
250
+ query?: string | undefined;
236
251
  dryRun?: boolean | undefined;
237
252
  confirmationToken?: string | undefined;
238
253
  newFilename?: string | undefined;
239
254
  newTitle?: string | undefined;
240
255
  }, {
241
256
  space?: string | undefined;
257
+ title?: string | undefined;
242
258
  id?: string | undefined;
243
259
  filename?: string | undefined;
260
+ query?: string | undefined;
244
261
  dryRun?: boolean | undefined;
245
262
  confirmationToken?: string | undefined;
246
263
  newFilename?: string | undefined;
@@ -296,7 +313,7 @@ export declare function listNotes(params?: z.infer<typeof listNotesSchema>): {
296
313
  id: string;
297
314
  title: string;
298
315
  filename: string;
299
- type: import("../noteplan/types.js").NoteType;
316
+ type: NoteType;
300
317
  source: import("../noteplan/types.js").NoteSource;
301
318
  folder: string | undefined;
302
319
  spaceId: string | undefined;
@@ -306,10 +323,11 @@ export declare function listNotes(params?: z.infer<typeof listNotesSchema>): {
306
323
  export declare function resolveNote(params: z.infer<typeof resolveNoteSchema>): Record<string, unknown>;
307
324
  export declare function createNote(params: z.infer<typeof createNoteSchema>): {
308
325
  success: boolean;
326
+ tip: string;
309
327
  note: {
310
328
  title: string;
311
329
  filename: string;
312
- type: import("../noteplan/types.js").NoteType;
330
+ type: NoteType;
313
331
  source: import("../noteplan/types.js").NoteSource;
314
332
  folder: string | undefined;
315
333
  };
@@ -325,6 +343,7 @@ export declare function createNote(params: z.infer<typeof createNoteSchema>): {
325
343
  } | {
326
344
  success: boolean;
327
345
  error: string;
346
+ tip?: undefined;
328
347
  note?: undefined;
329
348
  folderResolution?: undefined;
330
349
  };
@@ -342,7 +361,7 @@ export declare function updateNote(params: z.infer<typeof updateNoteSchema>): {
342
361
  id: string;
343
362
  title: string;
344
363
  filename: string;
345
- type: import("../noteplan/types.js").NoteType;
364
+ type: NoteType;
346
365
  source: import("../noteplan/types.js").NoteSource;
347
366
  folder: string | undefined;
348
367
  spaceId: string | undefined;
@@ -355,7 +374,7 @@ export declare function updateNote(params: z.infer<typeof updateNoteSchema>): {
355
374
  note: {
356
375
  title: string;
357
376
  filename: string;
358
- type: import("../noteplan/types.js").NoteType;
377
+ type: NoteType;
359
378
  source: import("../noteplan/types.js").NoteSource;
360
379
  id?: undefined;
361
380
  folder?: undefined;
@@ -380,7 +399,7 @@ export declare function deleteNote(params: z.infer<typeof deleteNoteSchema>): {
380
399
  id: string;
381
400
  title: string;
382
401
  filename: string;
383
- type: import("../noteplan/types.js").NoteType;
402
+ type: NoteType;
384
403
  source: import("../noteplan/types.js").NoteSource;
385
404
  folder: string | undefined;
386
405
  spaceId: string | undefined;
@@ -425,7 +444,7 @@ export declare function moveNote(params: z.infer<typeof moveNoteSchema>): {
425
444
  id: string;
426
445
  title: string;
427
446
  filename: string;
428
- type: import("../noteplan/types.js").NoteType;
447
+ type: NoteType;
429
448
  source: import("../noteplan/types.js").NoteSource;
430
449
  folder: string | undefined;
431
450
  spaceId: string | undefined;
@@ -443,7 +462,7 @@ export declare function moveNote(params: z.infer<typeof moveNoteSchema>): {
443
462
  id: string;
444
463
  title: string;
445
464
  filename: string;
446
- type: import("../noteplan/types.js").NoteType;
465
+ type: NoteType;
447
466
  source: import("../noteplan/types.js").NoteSource;
448
467
  folder: string | undefined;
449
468
  spaceId?: undefined;
@@ -471,7 +490,7 @@ export declare function restoreNote(params: z.infer<typeof restoreNoteSchema>):
471
490
  id: string;
472
491
  title: string;
473
492
  filename: string;
474
- type: import("../noteplan/types.js").NoteType;
493
+ type: NoteType;
475
494
  source: import("../noteplan/types.js").NoteSource;
476
495
  folder: string | undefined;
477
496
  spaceId: string | undefined;
@@ -487,7 +506,7 @@ export declare function restoreNote(params: z.infer<typeof restoreNoteSchema>):
487
506
  id: string;
488
507
  title: string;
489
508
  filename: string;
490
- type: import("../noteplan/types.js").NoteType;
509
+ type: NoteType;
491
510
  source: import("../noteplan/types.js").NoteSource;
492
511
  folder: string | undefined;
493
512
  spaceId?: undefined;
@@ -497,6 +516,22 @@ export declare function restoreNote(params: z.infer<typeof restoreNoteSchema>):
497
516
  export declare function renameNoteFile(params: z.infer<typeof renameNoteFileSchema>): {
498
517
  success: boolean;
499
518
  error: string;
519
+ candidates: {
520
+ id: string;
521
+ title: string;
522
+ filename: string;
523
+ score: number;
524
+ }[] | undefined;
525
+ message?: undefined;
526
+ fromTitle?: undefined;
527
+ toTitle?: undefined;
528
+ note?: undefined;
529
+ fromFilename?: undefined;
530
+ toFilename?: undefined;
531
+ } | {
532
+ success: boolean;
533
+ error: string;
534
+ candidates?: undefined;
500
535
  message?: undefined;
501
536
  fromTitle?: undefined;
502
537
  toTitle?: undefined;
@@ -515,12 +550,13 @@ export declare function renameNoteFile(params: z.infer<typeof renameNoteFileSche
515
550
  id: string;
516
551
  title: string;
517
552
  filename: string;
518
- type: import("../noteplan/types.js").NoteType;
553
+ type: NoteType;
519
554
  source: "space";
520
555
  folder: string | undefined;
521
556
  spaceId: string | undefined;
522
557
  };
523
558
  error?: undefined;
559
+ candidates?: undefined;
524
560
  fromFilename?: undefined;
525
561
  toFilename?: undefined;
526
562
  } | {
@@ -532,12 +568,13 @@ export declare function renameNoteFile(params: z.infer<typeof renameNoteFileSche
532
568
  id: string;
533
569
  title: string;
534
570
  filename: string;
535
- type: import("../noteplan/types.js").NoteType;
571
+ type: NoteType;
536
572
  source: import("../noteplan/types.js").NoteSource;
537
573
  folder: string | undefined;
538
574
  spaceId: string | undefined;
539
575
  };
540
576
  error?: undefined;
577
+ candidates?: undefined;
541
578
  fromFilename?: undefined;
542
579
  toFilename?: undefined;
543
580
  } | {
@@ -552,12 +589,13 @@ export declare function renameNoteFile(params: z.infer<typeof renameNoteFileSche
552
589
  id: string;
553
590
  title: string;
554
591
  filename: string;
555
- type: import("../noteplan/types.js").NoteType;
592
+ type: NoteType;
556
593
  source: import("../noteplan/types.js").NoteSource;
557
594
  folder: string | undefined;
558
595
  spaceId: string | undefined;
559
596
  };
560
597
  error?: undefined;
598
+ candidates?: undefined;
561
599
  fromTitle?: undefined;
562
600
  toTitle?: undefined;
563
601
  } | {
@@ -569,12 +607,13 @@ export declare function renameNoteFile(params: z.infer<typeof renameNoteFileSche
569
607
  id: string;
570
608
  title: string;
571
609
  filename: string;
572
- type: import("../noteplan/types.js").NoteType;
610
+ type: NoteType;
573
611
  source: import("../noteplan/types.js").NoteSource;
574
612
  folder: string | undefined;
575
613
  spaceId?: undefined;
576
614
  };
577
615
  error?: undefined;
616
+ candidates?: undefined;
578
617
  fromTitle?: undefined;
579
618
  toTitle?: undefined;
580
619
  };
@@ -591,17 +630,17 @@ export declare const getParagraphsSchema: z.ZodObject<{
591
630
  limit: number;
592
631
  offset: number;
593
632
  space?: string | undefined;
633
+ cursor?: string | undefined;
594
634
  startLine?: number | undefined;
595
635
  endLine?: number | undefined;
596
- cursor?: string | undefined;
597
636
  }, {
598
637
  filename: string;
599
638
  space?: string | undefined;
600
639
  limit?: number | undefined;
601
- startLine?: number | undefined;
602
- endLine?: number | undefined;
603
640
  offset?: number | undefined;
604
641
  cursor?: string | undefined;
642
+ startLine?: number | undefined;
643
+ endLine?: number | undefined;
605
644
  }>;
606
645
  export declare const searchParagraphsSchema: z.ZodEffects<z.ZodObject<{
607
646
  id: z.ZodOptional<z.ZodString>;
@@ -632,9 +671,9 @@ export declare const searchParagraphsSchema: z.ZodEffects<z.ZodObject<{
632
671
  id?: string | undefined;
633
672
  filename?: string | undefined;
634
673
  date?: string | undefined;
674
+ cursor?: string | undefined;
635
675
  startLine?: number | undefined;
636
676
  endLine?: number | undefined;
637
- cursor?: string | undefined;
638
677
  }, {
639
678
  query: string;
640
679
  space?: string | undefined;
@@ -645,10 +684,10 @@ export declare const searchParagraphsSchema: z.ZodEffects<z.ZodObject<{
645
684
  limit?: number | undefined;
646
685
  caseSensitive?: boolean | undefined;
647
686
  contextLines?: number | undefined;
648
- startLine?: number | undefined;
649
- endLine?: number | undefined;
650
687
  offset?: number | undefined;
651
688
  cursor?: string | undefined;
689
+ startLine?: number | undefined;
690
+ endLine?: number | undefined;
652
691
  wholeWord?: boolean | undefined;
653
692
  paragraphMaxChars?: number | undefined;
654
693
  }>, {
@@ -664,9 +703,9 @@ export declare const searchParagraphsSchema: z.ZodEffects<z.ZodObject<{
664
703
  id?: string | undefined;
665
704
  filename?: string | undefined;
666
705
  date?: string | undefined;
706
+ cursor?: string | undefined;
667
707
  startLine?: number | undefined;
668
708
  endLine?: number | undefined;
669
- cursor?: string | undefined;
670
709
  }, {
671
710
  query: string;
672
711
  space?: string | undefined;
@@ -677,10 +716,10 @@ export declare const searchParagraphsSchema: z.ZodEffects<z.ZodObject<{
677
716
  limit?: number | undefined;
678
717
  caseSensitive?: boolean | undefined;
679
718
  contextLines?: number | undefined;
680
- startLine?: number | undefined;
681
- endLine?: number | undefined;
682
719
  offset?: number | undefined;
683
720
  cursor?: string | undefined;
721
+ startLine?: number | undefined;
722
+ endLine?: number | undefined;
684
723
  wholeWord?: boolean | undefined;
685
724
  paragraphMaxChars?: number | undefined;
686
725
  }>;
@@ -692,14 +731,14 @@ export declare const setPropertySchema: z.ZodObject<{
692
731
  key: z.ZodString;
693
732
  value: z.ZodString;
694
733
  }, "strip", z.ZodTypeAny, {
695
- filename: string;
696
734
  key: string;
697
735
  value: string;
736
+ filename: string;
698
737
  space?: string | undefined;
699
738
  }, {
700
- filename: string;
701
739
  key: string;
702
740
  value: string;
741
+ filename: string;
703
742
  space?: string | undefined;
704
743
  }>;
705
744
  export declare const removePropertySchema: z.ZodObject<{
@@ -707,12 +746,12 @@ export declare const removePropertySchema: z.ZodObject<{
707
746
  space: z.ZodOptional<z.ZodString>;
708
747
  key: z.ZodString;
709
748
  }, "strip", z.ZodTypeAny, {
710
- filename: string;
711
749
  key: string;
750
+ filename: string;
712
751
  space?: string | undefined;
713
752
  }, {
714
- filename: string;
715
753
  key: string;
754
+ filename: string;
716
755
  space?: string | undefined;
717
756
  }>;
718
757
  export declare const insertContentSchema: z.ZodEffects<z.ZodObject<{
@@ -733,12 +772,13 @@ export declare const insertContentSchema: z.ZodEffects<z.ZodObject<{
733
772
  priority: z.ZodOptional<z.ZodNumber>;
734
773
  indentLevel: z.ZodOptional<z.ZodNumber>;
735
774
  }, "strip", z.ZodTypeAny, {
736
- content: string;
737
775
  position: "start" | "end" | "after-heading" | "at-line" | "in-section";
776
+ content: string;
738
777
  indentationStyle: "tabs" | "preserve";
739
778
  space?: string | undefined;
740
779
  title?: string | undefined;
741
780
  heading?: string | undefined;
781
+ line?: number | undefined;
742
782
  indentLevel?: number | undefined;
743
783
  priority?: number | undefined;
744
784
  type?: "title" | "heading" | "task" | "checklist" | "bullet" | "quote" | "separator" | "empty" | "text" | undefined;
@@ -747,14 +787,14 @@ export declare const insertContentSchema: z.ZodEffects<z.ZodObject<{
747
787
  id?: string | undefined;
748
788
  filename?: string | undefined;
749
789
  date?: string | undefined;
750
- line?: number | undefined;
751
790
  query?: string | undefined;
752
791
  }, {
753
- content: string;
754
792
  position: "start" | "end" | "after-heading" | "at-line" | "in-section";
793
+ content: string;
755
794
  space?: string | undefined;
756
795
  title?: string | undefined;
757
796
  heading?: string | undefined;
797
+ line?: number | undefined;
758
798
  indentLevel?: number | undefined;
759
799
  priority?: number | undefined;
760
800
  type?: "title" | "heading" | "task" | "checklist" | "bullet" | "quote" | "separator" | "empty" | "text" | undefined;
@@ -763,16 +803,16 @@ export declare const insertContentSchema: z.ZodEffects<z.ZodObject<{
763
803
  id?: string | undefined;
764
804
  filename?: string | undefined;
765
805
  date?: string | undefined;
766
- line?: number | undefined;
767
806
  query?: string | undefined;
768
807
  indentationStyle?: "tabs" | "preserve" | undefined;
769
808
  }>, {
770
- content: string;
771
809
  position: "start" | "end" | "after-heading" | "at-line" | "in-section";
810
+ content: string;
772
811
  indentationStyle: "tabs" | "preserve";
773
812
  space?: string | undefined;
774
813
  title?: string | undefined;
775
814
  heading?: string | undefined;
815
+ line?: number | undefined;
776
816
  indentLevel?: number | undefined;
777
817
  priority?: number | undefined;
778
818
  type?: "title" | "heading" | "task" | "checklist" | "bullet" | "quote" | "separator" | "empty" | "text" | undefined;
@@ -781,14 +821,14 @@ export declare const insertContentSchema: z.ZodEffects<z.ZodObject<{
781
821
  id?: string | undefined;
782
822
  filename?: string | undefined;
783
823
  date?: string | undefined;
784
- line?: number | undefined;
785
824
  query?: string | undefined;
786
825
  }, {
787
- content: string;
788
826
  position: "start" | "end" | "after-heading" | "at-line" | "in-section";
827
+ content: string;
789
828
  space?: string | undefined;
790
829
  title?: string | undefined;
791
830
  heading?: string | undefined;
831
+ line?: number | undefined;
792
832
  indentLevel?: number | undefined;
793
833
  priority?: number | undefined;
794
834
  type?: "title" | "heading" | "task" | "checklist" | "bullet" | "quote" | "separator" | "empty" | "text" | undefined;
@@ -797,7 +837,6 @@ export declare const insertContentSchema: z.ZodEffects<z.ZodObject<{
797
837
  id?: string | undefined;
798
838
  filename?: string | undefined;
799
839
  date?: string | undefined;
800
- line?: number | undefined;
801
840
  query?: string | undefined;
802
841
  indentationStyle?: "tabs" | "preserve" | undefined;
803
842
  }>;
@@ -809,12 +848,14 @@ export declare const appendContentSchema: z.ZodEffects<z.ZodObject<{
809
848
  query: z.ZodOptional<z.ZodString>;
810
849
  space: z.ZodOptional<z.ZodString>;
811
850
  content: z.ZodString;
851
+ heading: z.ZodOptional<z.ZodString>;
812
852
  indentationStyle: z.ZodDefault<z.ZodOptional<z.ZodEnum<["tabs", "preserve"]>>>;
813
853
  }, "strip", z.ZodTypeAny, {
814
854
  content: string;
815
855
  indentationStyle: "tabs" | "preserve";
816
856
  space?: string | undefined;
817
857
  title?: string | undefined;
858
+ heading?: string | undefined;
818
859
  id?: string | undefined;
819
860
  filename?: string | undefined;
820
861
  date?: string | undefined;
@@ -823,6 +864,7 @@ export declare const appendContentSchema: z.ZodEffects<z.ZodObject<{
823
864
  content: string;
824
865
  space?: string | undefined;
825
866
  title?: string | undefined;
867
+ heading?: string | undefined;
826
868
  id?: string | undefined;
827
869
  filename?: string | undefined;
828
870
  date?: string | undefined;
@@ -833,6 +875,7 @@ export declare const appendContentSchema: z.ZodEffects<z.ZodObject<{
833
875
  indentationStyle: "tabs" | "preserve";
834
876
  space?: string | undefined;
835
877
  title?: string | undefined;
878
+ heading?: string | undefined;
836
879
  id?: string | undefined;
837
880
  filename?: string | undefined;
838
881
  date?: string | undefined;
@@ -841,6 +884,7 @@ export declare const appendContentSchema: z.ZodEffects<z.ZodObject<{
841
884
  content: string;
842
885
  space?: string | undefined;
843
886
  title?: string | undefined;
887
+ heading?: string | undefined;
844
888
  id?: string | undefined;
845
889
  filename?: string | undefined;
846
890
  date?: string | undefined;
@@ -893,8 +937,8 @@ export declare const editLineSchema: z.ZodObject<{
893
937
  query: z.ZodOptional<z.ZodString>;
894
938
  space: z.ZodOptional<z.ZodString>;
895
939
  }, "strip", z.ZodTypeAny, {
896
- content: string;
897
940
  line: number;
941
+ content: string;
898
942
  indentationStyle: "tabs" | "preserve";
899
943
  space?: string | undefined;
900
944
  title?: string | undefined;
@@ -904,8 +948,8 @@ export declare const editLineSchema: z.ZodObject<{
904
948
  query?: string | undefined;
905
949
  allowEmptyContent?: boolean | undefined;
906
950
  }, {
907
- content: string;
908
951
  line: number;
952
+ content: string;
909
953
  space?: string | undefined;
910
954
  title?: string | undefined;
911
955
  id?: string | undefined;
@@ -985,12 +1029,14 @@ export declare function insertContent(params: z.infer<typeof insertContentSchema
985
1029
  filename: string;
986
1030
  score: number;
987
1031
  }[] | undefined;
1032
+ tip?: undefined;
988
1033
  message?: undefined;
989
1034
  note?: undefined;
990
1035
  indentationStyle?: undefined;
991
1036
  linesRetabbed?: undefined;
992
1037
  } | {
993
1038
  success: boolean;
1039
+ tip: string;
994
1040
  message: string;
995
1041
  note: {
996
1042
  id: string;
@@ -1005,6 +1051,7 @@ export declare function insertContent(params: z.infer<typeof insertContentSchema
1005
1051
  success: boolean;
1006
1052
  error: string;
1007
1053
  candidates?: undefined;
1054
+ tip?: undefined;
1008
1055
  message?: undefined;
1009
1056
  note?: undefined;
1010
1057
  indentationStyle?: undefined;
@@ -1058,6 +1105,15 @@ export declare function deleteLines(params: z.infer<typeof deleteLinesSchema>):
1058
1105
  removedAttachmentReferences?: undefined;
1059
1106
  removedAttachmentReferencesTruncated?: undefined;
1060
1107
  warnings?: undefined;
1108
+ } | {
1109
+ success: boolean;
1110
+ error: string;
1111
+ candidates?: undefined;
1112
+ message?: undefined;
1113
+ lineCountToDelete?: undefined;
1114
+ removedAttachmentReferences?: undefined;
1115
+ removedAttachmentReferencesTruncated?: undefined;
1116
+ warnings?: undefined;
1061
1117
  } | {
1062
1118
  confirmationToken: string;
1063
1119
  confirmationExpiresAt: string;
@@ -1075,15 +1131,6 @@ export declare function deleteLines(params: z.infer<typeof deleteLinesSchema>):
1075
1131
  warnings: string[] | undefined;
1076
1132
  error?: undefined;
1077
1133
  candidates?: undefined;
1078
- } | {
1079
- success: boolean;
1080
- error: string;
1081
- candidates?: undefined;
1082
- message?: undefined;
1083
- lineCountToDelete?: undefined;
1084
- removedAttachmentReferences?: undefined;
1085
- removedAttachmentReferencesTruncated?: undefined;
1086
- warnings?: undefined;
1087
1134
  } | {
1088
1135
  success: boolean;
1089
1136
  message: string;
@@ -1217,5 +1264,58 @@ export declare function replaceLines(params: z.infer<typeof replaceLinesSchema>)
1217
1264
  error?: undefined;
1218
1265
  candidates?: undefined;
1219
1266
  };
1267
+ export declare const searchParagraphsGlobalSchema: z.ZodObject<{
1268
+ query: z.ZodString;
1269
+ caseSensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1270
+ wholeWord: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1271
+ status: z.ZodOptional<z.ZodEnum<["open", "done", "cancelled", "scheduled"]>>;
1272
+ contextLines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1273
+ paragraphMaxChars: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1274
+ folder: z.ZodOptional<z.ZodString>;
1275
+ space: z.ZodOptional<z.ZodString>;
1276
+ noteQuery: z.ZodOptional<z.ZodString>;
1277
+ noteTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["calendar", "note", "trash"]>, "many">>;
1278
+ preferCalendar: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1279
+ periodicOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1280
+ maxNotes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1281
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1282
+ offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1283
+ cursor: z.ZodOptional<z.ZodString>;
1284
+ }, "strip", z.ZodTypeAny, {
1285
+ limit: number;
1286
+ caseSensitive: boolean;
1287
+ contextLines: number;
1288
+ query: string;
1289
+ offset: number;
1290
+ wholeWord: boolean;
1291
+ paragraphMaxChars: number;
1292
+ preferCalendar: boolean;
1293
+ periodicOnly: boolean;
1294
+ maxNotes: number;
1295
+ space?: string | undefined;
1296
+ status?: "open" | "done" | "cancelled" | "scheduled" | undefined;
1297
+ folder?: string | undefined;
1298
+ cursor?: string | undefined;
1299
+ noteQuery?: string | undefined;
1300
+ noteTypes?: ("calendar" | "note" | "trash")[] | undefined;
1301
+ }, {
1302
+ query: string;
1303
+ space?: string | undefined;
1304
+ status?: "open" | "done" | "cancelled" | "scheduled" | undefined;
1305
+ folder?: string | undefined;
1306
+ limit?: number | undefined;
1307
+ caseSensitive?: boolean | undefined;
1308
+ contextLines?: number | undefined;
1309
+ offset?: number | undefined;
1310
+ cursor?: string | undefined;
1311
+ wholeWord?: boolean | undefined;
1312
+ paragraphMaxChars?: number | undefined;
1313
+ noteQuery?: string | undefined;
1314
+ noteTypes?: ("calendar" | "note" | "trash")[] | undefined;
1315
+ preferCalendar?: boolean | undefined;
1316
+ periodicOnly?: boolean | undefined;
1317
+ maxNotes?: number | undefined;
1318
+ }>;
1319
+ export declare function searchParagraphsGlobal(params: z.infer<typeof searchParagraphsGlobalSchema>): Record<string, unknown>;
1220
1320
  export {};
1221
1321
  //# sourceMappingURL=notes.d.ts.map