@karakeep/sdk 0.23.2

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,1484 @@
1
+ import { Client } from 'openapi-fetch';
2
+ import { ClientOptions } from 'openapi-fetch';
3
+
4
+ declare interface components {
5
+ schemas: {
6
+ /** @example ieidlxygmwj87oxz5hxttoc8 */
7
+ AssetId: string;
8
+ /** @example ieidlxygmwj87oxz5hxttoc8 */
9
+ BookmarkId: string;
10
+ /** @example ieidlxygmwj87oxz5hxttoc8 */
11
+ ListId: string;
12
+ /** @example ieidlxygmwj87oxz5hxttoc8 */
13
+ TagId: string;
14
+ /** @example ieidlxygmwj87oxz5hxttoc8 */
15
+ HighlightId: string;
16
+ Bookmark: {
17
+ id: string;
18
+ createdAt: string;
19
+ modifiedAt: string | null;
20
+ title?: string | null;
21
+ archived: boolean;
22
+ favourited: boolean;
23
+ /** @enum {string|null} */
24
+ taggingStatus: "success" | "failure" | "pending" | null;
25
+ note?: string | null;
26
+ summary?: string | null;
27
+ tags: {
28
+ id: string;
29
+ name: string;
30
+ /** @enum {string} */
31
+ attachedBy: "ai" | "human";
32
+ }[];
33
+ content:
34
+ | {
35
+ /** @enum {string} */
36
+ type: "link";
37
+ url: string;
38
+ title?: string | null;
39
+ description?: string | null;
40
+ imageUrl?: string | null;
41
+ imageAssetId?: string | null;
42
+ screenshotAssetId?: string | null;
43
+ fullPageArchiveAssetId?: string | null;
44
+ precrawledArchiveAssetId?: string | null;
45
+ videoAssetId?: string | null;
46
+ favicon?: string | null;
47
+ htmlContent?: string | null;
48
+ crawledAt?: string | null;
49
+ author?: string | null;
50
+ publisher?: string | null;
51
+ datePublished?: string | null;
52
+ dateModified?: string | null;
53
+ }
54
+ | {
55
+ /** @enum {string} */
56
+ type: "text";
57
+ text: string;
58
+ sourceUrl?: string | null;
59
+ }
60
+ | {
61
+ /** @enum {string} */
62
+ type: "asset";
63
+ /** @enum {string} */
64
+ assetType: "image" | "pdf";
65
+ assetId: string;
66
+ fileName?: string | null;
67
+ sourceUrl?: string | null;
68
+ size?: number | null;
69
+ }
70
+ | {
71
+ /** @enum {string} */
72
+ type: "unknown";
73
+ };
74
+ assets: {
75
+ id: string;
76
+ /** @enum {string} */
77
+ assetType:
78
+ | "screenshot"
79
+ | "assetScreenshot"
80
+ | "bannerImage"
81
+ | "fullPageArchive"
82
+ | "video"
83
+ | "bookmarkAsset"
84
+ | "precrawledArchive"
85
+ | "unknown";
86
+ }[];
87
+ };
88
+ PaginatedBookmarks: {
89
+ bookmarks: components["schemas"]["Bookmark"][];
90
+ nextCursor: string | null;
91
+ };
92
+ Cursor: string;
93
+ Highlight: {
94
+ bookmarkId: string;
95
+ startOffset: number;
96
+ endOffset: number;
97
+ /**
98
+ * @default yellow
99
+ * @enum {string}
100
+ */
101
+ color: "yellow" | "red" | "green" | "blue";
102
+ text: string | null;
103
+ note: string | null;
104
+ id: string;
105
+ userId: string;
106
+ createdAt: string;
107
+ };
108
+ List: {
109
+ id: string;
110
+ name: string;
111
+ icon: string;
112
+ parentId: string | null;
113
+ /**
114
+ * @default manual
115
+ * @enum {string}
116
+ */
117
+ type: "manual" | "smart";
118
+ query?: string | null;
119
+ };
120
+ Tag: {
121
+ id: string;
122
+ name: string;
123
+ numBookmarks: number;
124
+ numBookmarksByAttachedType: {
125
+ ai?: number;
126
+ human?: number;
127
+ };
128
+ };
129
+ PaginatedHighlights: {
130
+ highlights: components["schemas"]["Highlight"][];
131
+ nextCursor: string | null;
132
+ };
133
+ };
134
+ responses: never;
135
+ parameters: {
136
+ AssetId: components["schemas"]["AssetId"];
137
+ BookmarkId: components["schemas"]["BookmarkId"];
138
+ ListId: components["schemas"]["ListId"];
139
+ TagId: components["schemas"]["TagId"];
140
+ HighlightId: components["schemas"]["HighlightId"];
141
+ };
142
+ requestBodies: never;
143
+ headers: never;
144
+ pathItems: never;
145
+ }
146
+
147
+ export declare const createHoarderClient: (clientOptions?: ClientOptions) => Client<paths, `${string}/${string}`>;
148
+
149
+ /**
150
+ * This file was auto-generated by openapi-typescript.
151
+ * Do not make direct changes to the file.
152
+ */
153
+
154
+ declare interface paths {
155
+ "/bookmarks": {
156
+ parameters: {
157
+ query?: never;
158
+ header?: never;
159
+ path?: never;
160
+ cookie?: never;
161
+ };
162
+ /**
163
+ * Get all bookmarks
164
+ * @description Get all bookmarks
165
+ */
166
+ get: {
167
+ parameters: {
168
+ query?: {
169
+ archived?: boolean;
170
+ favourited?: boolean;
171
+ limit?: number;
172
+ cursor?: components["schemas"]["Cursor"];
173
+ };
174
+ header?: never;
175
+ path?: never;
176
+ cookie?: never;
177
+ };
178
+ requestBody?: never;
179
+ responses: {
180
+ /** @description Object with all bookmarks data. */
181
+ 200: {
182
+ headers: {
183
+ [name: string]: unknown;
184
+ };
185
+ content: {
186
+ "application/json": components["schemas"]["PaginatedBookmarks"];
187
+ };
188
+ };
189
+ };
190
+ };
191
+ put?: never;
192
+ /**
193
+ * Create a new bookmark
194
+ * @description Create a new bookmark
195
+ */
196
+ post: {
197
+ parameters: {
198
+ query?: never;
199
+ header?: never;
200
+ path?: never;
201
+ cookie?: never;
202
+ };
203
+ /** @description The bookmark to create */
204
+ requestBody?: {
205
+ content: {
206
+ "application/json": {
207
+ title?: string | null;
208
+ archived?: boolean;
209
+ favourited?: boolean;
210
+ note?: string;
211
+ summary?: string;
212
+ createdAt?: string | null;
213
+ } & (
214
+ | {
215
+ /** @enum {string} */
216
+ type: "link";
217
+ /** Format: uri */
218
+ url: string;
219
+ precrawledArchiveId?: string;
220
+ }
221
+ | {
222
+ /** @enum {string} */
223
+ type: "text";
224
+ text: string;
225
+ sourceUrl?: string;
226
+ }
227
+ | {
228
+ /** @enum {string} */
229
+ type: "asset";
230
+ /** @enum {string} */
231
+ assetType: "image" | "pdf";
232
+ assetId: string;
233
+ fileName?: string;
234
+ sourceUrl?: string;
235
+ }
236
+ );
237
+ };
238
+ };
239
+ responses: {
240
+ /** @description The created bookmark */
241
+ 201: {
242
+ headers: {
243
+ [name: string]: unknown;
244
+ };
245
+ content: {
246
+ "application/json": components["schemas"]["Bookmark"];
247
+ };
248
+ };
249
+ };
250
+ };
251
+ delete?: never;
252
+ options?: never;
253
+ head?: never;
254
+ patch?: never;
255
+ trace?: never;
256
+ };
257
+ "/bookmarks/search": {
258
+ parameters: {
259
+ query?: never;
260
+ header?: never;
261
+ path?: never;
262
+ cookie?: never;
263
+ };
264
+ /**
265
+ * Search bookmarks
266
+ * @description Search bookmarks
267
+ */
268
+ get: {
269
+ parameters: {
270
+ query: {
271
+ q: string;
272
+ limit?: number;
273
+ cursor?: components["schemas"]["Cursor"];
274
+ };
275
+ header?: never;
276
+ path?: never;
277
+ cookie?: never;
278
+ };
279
+ requestBody?: never;
280
+ responses: {
281
+ /** @description Object with the search results. */
282
+ 200: {
283
+ headers: {
284
+ [name: string]: unknown;
285
+ };
286
+ content: {
287
+ "application/json": components["schemas"]["PaginatedBookmarks"];
288
+ };
289
+ };
290
+ };
291
+ };
292
+ put?: never;
293
+ post?: never;
294
+ delete?: never;
295
+ options?: never;
296
+ head?: never;
297
+ patch?: never;
298
+ trace?: never;
299
+ };
300
+ "/bookmarks/{bookmarkId}": {
301
+ parameters: {
302
+ query?: never;
303
+ header?: never;
304
+ path?: never;
305
+ cookie?: never;
306
+ };
307
+ /**
308
+ * Get a single bookmark
309
+ * @description Get bookmark by its id
310
+ */
311
+ get: {
312
+ parameters: {
313
+ query?: never;
314
+ header?: never;
315
+ path: {
316
+ bookmarkId: components["parameters"]["BookmarkId"];
317
+ };
318
+ cookie?: never;
319
+ };
320
+ requestBody?: never;
321
+ responses: {
322
+ /** @description Object with bookmark data. */
323
+ 200: {
324
+ headers: {
325
+ [name: string]: unknown;
326
+ };
327
+ content: {
328
+ "application/json": components["schemas"]["Bookmark"];
329
+ };
330
+ };
331
+ };
332
+ };
333
+ put?: never;
334
+ post?: never;
335
+ /**
336
+ * Delete a bookmark
337
+ * @description Delete bookmark by its id
338
+ */
339
+ delete: {
340
+ parameters: {
341
+ query?: never;
342
+ header?: never;
343
+ path: {
344
+ bookmarkId: components["parameters"]["BookmarkId"];
345
+ };
346
+ cookie?: never;
347
+ };
348
+ requestBody?: never;
349
+ responses: {
350
+ /** @description No content - the bookmark was deleted */
351
+ 204: {
352
+ headers: {
353
+ [name: string]: unknown;
354
+ };
355
+ content?: never;
356
+ };
357
+ };
358
+ };
359
+ options?: never;
360
+ head?: never;
361
+ /**
362
+ * Update a bookmark
363
+ * @description Update bookmark by its id
364
+ */
365
+ patch: {
366
+ parameters: {
367
+ query?: never;
368
+ header?: never;
369
+ path: {
370
+ bookmarkId: components["parameters"]["BookmarkId"];
371
+ };
372
+ cookie?: never;
373
+ };
374
+ /** @description The data to update. Only the fields you want to update need to be provided. */
375
+ requestBody?: {
376
+ content: {
377
+ "application/json": {
378
+ archived?: boolean;
379
+ favourited?: boolean;
380
+ summary?: string | null;
381
+ note?: string;
382
+ title?: string | null;
383
+ createdAt?: string | null;
384
+ /** Format: uri */
385
+ url?: string;
386
+ description?: string | null;
387
+ author?: string | null;
388
+ publisher?: string | null;
389
+ datePublished?: string | null;
390
+ dateModified?: string | null;
391
+ text?: string | null;
392
+ };
393
+ };
394
+ };
395
+ responses: {
396
+ /** @description The updated bookmark */
397
+ 200: {
398
+ headers: {
399
+ [name: string]: unknown;
400
+ };
401
+ content: {
402
+ "application/json": {
403
+ id: string;
404
+ createdAt: string;
405
+ modifiedAt: string | null;
406
+ title?: string | null;
407
+ archived: boolean;
408
+ favourited: boolean;
409
+ /** @enum {string|null} */
410
+ taggingStatus: "success" | "failure" | "pending" | null;
411
+ note?: string | null;
412
+ summary?: string | null;
413
+ };
414
+ };
415
+ };
416
+ };
417
+ };
418
+ trace?: never;
419
+ };
420
+ "/bookmarks/{bookmarkId}/summarize": {
421
+ parameters: {
422
+ query?: never;
423
+ header?: never;
424
+ path?: never;
425
+ cookie?: never;
426
+ };
427
+ get?: never;
428
+ put?: never;
429
+ /**
430
+ * Summarize a bookmark
431
+ * @description Attaches a summary to the bookmark and returns the updated record.
432
+ */
433
+ post: {
434
+ parameters: {
435
+ query?: never;
436
+ header?: never;
437
+ path: {
438
+ bookmarkId: components["parameters"]["BookmarkId"];
439
+ };
440
+ cookie?: never;
441
+ };
442
+ requestBody?: never;
443
+ responses: {
444
+ /** @description The updated bookmark with summary */
445
+ 200: {
446
+ headers: {
447
+ [name: string]: unknown;
448
+ };
449
+ content: {
450
+ "application/json": {
451
+ id: string;
452
+ createdAt: string;
453
+ modifiedAt: string | null;
454
+ title?: string | null;
455
+ archived: boolean;
456
+ favourited: boolean;
457
+ /** @enum {string|null} */
458
+ taggingStatus: "success" | "failure" | "pending" | null;
459
+ note?: string | null;
460
+ summary?: string | null;
461
+ };
462
+ };
463
+ };
464
+ };
465
+ };
466
+ delete?: never;
467
+ options?: never;
468
+ head?: never;
469
+ patch?: never;
470
+ trace?: never;
471
+ };
472
+ "/bookmarks/{bookmarkId}/tags": {
473
+ parameters: {
474
+ query?: never;
475
+ header?: never;
476
+ path?: never;
477
+ cookie?: never;
478
+ };
479
+ get?: never;
480
+ put?: never;
481
+ /**
482
+ * Attach tags to a bookmark
483
+ * @description Attach tags to a bookmark
484
+ */
485
+ post: {
486
+ parameters: {
487
+ query?: never;
488
+ header?: never;
489
+ path: {
490
+ bookmarkId: components["parameters"]["BookmarkId"];
491
+ };
492
+ cookie?: never;
493
+ };
494
+ /** @description The tags to attach. */
495
+ requestBody?: {
496
+ content: {
497
+ "application/json": {
498
+ tags: {
499
+ tagId?: string;
500
+ tagName?: string;
501
+ }[];
502
+ };
503
+ };
504
+ };
505
+ responses: {
506
+ /** @description The list of attached tag ids */
507
+ 200: {
508
+ headers: {
509
+ [name: string]: unknown;
510
+ };
511
+ content: {
512
+ "application/json": {
513
+ attached: components["schemas"]["TagId"][];
514
+ };
515
+ };
516
+ };
517
+ };
518
+ };
519
+ /**
520
+ * Detach tags from a bookmark
521
+ * @description Detach tags from a bookmark
522
+ */
523
+ delete: {
524
+ parameters: {
525
+ query?: never;
526
+ header?: never;
527
+ path: {
528
+ bookmarkId: components["parameters"]["BookmarkId"];
529
+ };
530
+ cookie?: never;
531
+ };
532
+ /** @description The tags to detach. */
533
+ requestBody?: {
534
+ content: {
535
+ "application/json": {
536
+ tags: {
537
+ tagId?: string;
538
+ tagName?: string;
539
+ }[];
540
+ };
541
+ };
542
+ };
543
+ responses: {
544
+ /** @description The list of detached tag ids */
545
+ 200: {
546
+ headers: {
547
+ [name: string]: unknown;
548
+ };
549
+ content: {
550
+ "application/json": {
551
+ detached: components["schemas"]["TagId"][];
552
+ };
553
+ };
554
+ };
555
+ };
556
+ };
557
+ options?: never;
558
+ head?: never;
559
+ patch?: never;
560
+ trace?: never;
561
+ };
562
+ "/bookmarks/{bookmarkId}/highlights": {
563
+ parameters: {
564
+ query?: never;
565
+ header?: never;
566
+ path?: never;
567
+ cookie?: never;
568
+ };
569
+ /**
570
+ * Get highlights of a bookmark
571
+ * @description Get highlights of a bookmark
572
+ */
573
+ get: {
574
+ parameters: {
575
+ query?: never;
576
+ header?: never;
577
+ path: {
578
+ bookmarkId: components["parameters"]["BookmarkId"];
579
+ };
580
+ cookie?: never;
581
+ };
582
+ requestBody?: never;
583
+ responses: {
584
+ /** @description The list of highlights */
585
+ 200: {
586
+ headers: {
587
+ [name: string]: unknown;
588
+ };
589
+ content: {
590
+ "application/json": {
591
+ highlights: components["schemas"]["Highlight"][];
592
+ };
593
+ };
594
+ };
595
+ };
596
+ };
597
+ put?: never;
598
+ post?: never;
599
+ delete?: never;
600
+ options?: never;
601
+ head?: never;
602
+ patch?: never;
603
+ trace?: never;
604
+ };
605
+ "/bookmarks/{bookmarkId}/assets": {
606
+ parameters: {
607
+ query?: never;
608
+ header?: never;
609
+ path?: never;
610
+ cookie?: never;
611
+ };
612
+ get?: never;
613
+ put?: never;
614
+ /**
615
+ * Attach asset
616
+ * @description Attach a new asset to a bookmark
617
+ */
618
+ post: {
619
+ parameters: {
620
+ query?: never;
621
+ header?: never;
622
+ path: {
623
+ bookmarkId: components["parameters"]["BookmarkId"];
624
+ };
625
+ cookie?: never;
626
+ };
627
+ /** @description The asset to attach */
628
+ requestBody?: {
629
+ content: {
630
+ "application/json": {
631
+ id: string;
632
+ /** @enum {string} */
633
+ assetType:
634
+ | "screenshot"
635
+ | "assetScreenshot"
636
+ | "bannerImage"
637
+ | "fullPageArchive"
638
+ | "video"
639
+ | "bookmarkAsset"
640
+ | "precrawledArchive"
641
+ | "unknown";
642
+ };
643
+ };
644
+ };
645
+ responses: {
646
+ /** @description The attached asset */
647
+ 201: {
648
+ headers: {
649
+ [name: string]: unknown;
650
+ };
651
+ content: {
652
+ "application/json": {
653
+ id: string;
654
+ /** @enum {string} */
655
+ assetType:
656
+ | "screenshot"
657
+ | "assetScreenshot"
658
+ | "bannerImage"
659
+ | "fullPageArchive"
660
+ | "video"
661
+ | "bookmarkAsset"
662
+ | "precrawledArchive"
663
+ | "unknown";
664
+ };
665
+ };
666
+ };
667
+ };
668
+ };
669
+ delete?: never;
670
+ options?: never;
671
+ head?: never;
672
+ patch?: never;
673
+ trace?: never;
674
+ };
675
+ "/bookmarks/{bookmarkId}/assets/{assetId}": {
676
+ parameters: {
677
+ query?: never;
678
+ header?: never;
679
+ path?: never;
680
+ cookie?: never;
681
+ };
682
+ get?: never;
683
+ /**
684
+ * Replace asset
685
+ * @description Replace an existing asset with a new one
686
+ */
687
+ put: {
688
+ parameters: {
689
+ query?: never;
690
+ header?: never;
691
+ path: {
692
+ bookmarkId: components["parameters"]["BookmarkId"];
693
+ assetId: components["parameters"]["AssetId"];
694
+ };
695
+ cookie?: never;
696
+ };
697
+ /** @description The new asset to replace with */
698
+ requestBody?: {
699
+ content: {
700
+ "application/json": {
701
+ assetId: string;
702
+ };
703
+ };
704
+ };
705
+ responses: {
706
+ /** @description No content - asset was replaced successfully */
707
+ 204: {
708
+ headers: {
709
+ [name: string]: unknown;
710
+ };
711
+ content?: never;
712
+ };
713
+ };
714
+ };
715
+ post?: never;
716
+ /**
717
+ * Detach asset
718
+ * @description Detach an asset from a bookmark
719
+ */
720
+ delete: {
721
+ parameters: {
722
+ query?: never;
723
+ header?: never;
724
+ path: {
725
+ bookmarkId: components["parameters"]["BookmarkId"];
726
+ assetId: components["parameters"]["AssetId"];
727
+ };
728
+ cookie?: never;
729
+ };
730
+ requestBody?: never;
731
+ responses: {
732
+ /** @description No content - asset was detached successfully */
733
+ 204: {
734
+ headers: {
735
+ [name: string]: unknown;
736
+ };
737
+ content?: never;
738
+ };
739
+ };
740
+ };
741
+ options?: never;
742
+ head?: never;
743
+ patch?: never;
744
+ trace?: never;
745
+ };
746
+ "/lists": {
747
+ parameters: {
748
+ query?: never;
749
+ header?: never;
750
+ path?: never;
751
+ cookie?: never;
752
+ };
753
+ /**
754
+ * Get all lists
755
+ * @description Get all lists
756
+ */
757
+ get: {
758
+ parameters: {
759
+ query?: never;
760
+ header?: never;
761
+ path?: never;
762
+ cookie?: never;
763
+ };
764
+ requestBody?: never;
765
+ responses: {
766
+ /** @description Object with all lists data. */
767
+ 200: {
768
+ headers: {
769
+ [name: string]: unknown;
770
+ };
771
+ content: {
772
+ "application/json": {
773
+ lists: components["schemas"]["List"][];
774
+ };
775
+ };
776
+ };
777
+ };
778
+ };
779
+ put?: never;
780
+ /**
781
+ * Create a new list
782
+ * @description Create a new list
783
+ */
784
+ post: {
785
+ parameters: {
786
+ query?: never;
787
+ header?: never;
788
+ path?: never;
789
+ cookie?: never;
790
+ };
791
+ /** @description The list to create */
792
+ requestBody?: {
793
+ content: {
794
+ "application/json": {
795
+ name: string;
796
+ icon: string;
797
+ /**
798
+ * @default manual
799
+ * @enum {string}
800
+ */
801
+ type?: "manual" | "smart";
802
+ query?: string;
803
+ parentId?: string | null;
804
+ };
805
+ };
806
+ };
807
+ responses: {
808
+ /** @description The created list */
809
+ 201: {
810
+ headers: {
811
+ [name: string]: unknown;
812
+ };
813
+ content: {
814
+ "application/json": components["schemas"]["List"];
815
+ };
816
+ };
817
+ };
818
+ };
819
+ delete?: never;
820
+ options?: never;
821
+ head?: never;
822
+ patch?: never;
823
+ trace?: never;
824
+ };
825
+ "/lists/{listId}": {
826
+ parameters: {
827
+ query?: never;
828
+ header?: never;
829
+ path?: never;
830
+ cookie?: never;
831
+ };
832
+ /**
833
+ * Get a single list
834
+ * @description Get list by its id
835
+ */
836
+ get: {
837
+ parameters: {
838
+ query?: never;
839
+ header?: never;
840
+ path: {
841
+ listId: components["parameters"]["ListId"];
842
+ };
843
+ cookie?: never;
844
+ };
845
+ requestBody?: never;
846
+ responses: {
847
+ /** @description Object with list data. */
848
+ 200: {
849
+ headers: {
850
+ [name: string]: unknown;
851
+ };
852
+ content: {
853
+ "application/json": components["schemas"]["List"];
854
+ };
855
+ };
856
+ };
857
+ };
858
+ put?: never;
859
+ post?: never;
860
+ /**
861
+ * Delete a list
862
+ * @description Delete list by its id
863
+ */
864
+ delete: {
865
+ parameters: {
866
+ query?: never;
867
+ header?: never;
868
+ path: {
869
+ listId: components["parameters"]["ListId"];
870
+ };
871
+ cookie?: never;
872
+ };
873
+ requestBody?: never;
874
+ responses: {
875
+ /** @description No content - the bookmark was deleted */
876
+ 204: {
877
+ headers: {
878
+ [name: string]: unknown;
879
+ };
880
+ content?: never;
881
+ };
882
+ };
883
+ };
884
+ options?: never;
885
+ head?: never;
886
+ /**
887
+ * Update a list
888
+ * @description Update list by its id
889
+ */
890
+ patch: {
891
+ parameters: {
892
+ query?: never;
893
+ header?: never;
894
+ path: {
895
+ listId: components["parameters"]["ListId"];
896
+ };
897
+ cookie?: never;
898
+ };
899
+ /** @description The data to update. Only the fields you want to update need to be provided. */
900
+ requestBody?: {
901
+ content: {
902
+ "application/json": {
903
+ name?: string;
904
+ icon?: string;
905
+ parentId?: string | null;
906
+ query?: string;
907
+ };
908
+ };
909
+ };
910
+ responses: {
911
+ /** @description The updated list */
912
+ 200: {
913
+ headers: {
914
+ [name: string]: unknown;
915
+ };
916
+ content: {
917
+ "application/json": components["schemas"]["List"];
918
+ };
919
+ };
920
+ };
921
+ };
922
+ trace?: never;
923
+ };
924
+ "/lists/{listId}/bookmarks": {
925
+ parameters: {
926
+ query?: never;
927
+ header?: never;
928
+ path?: never;
929
+ cookie?: never;
930
+ };
931
+ /**
932
+ * Get a bookmarks in a list
933
+ * @description Get the bookmarks in a list
934
+ */
935
+ get: {
936
+ parameters: {
937
+ query?: {
938
+ limit?: number;
939
+ cursor?: components["schemas"]["Cursor"];
940
+ };
941
+ header?: never;
942
+ path: {
943
+ listId: components["parameters"]["ListId"];
944
+ };
945
+ cookie?: never;
946
+ };
947
+ requestBody?: never;
948
+ responses: {
949
+ /** @description Object with list data. */
950
+ 200: {
951
+ headers: {
952
+ [name: string]: unknown;
953
+ };
954
+ content: {
955
+ "application/json": components["schemas"]["PaginatedBookmarks"];
956
+ };
957
+ };
958
+ };
959
+ };
960
+ put?: never;
961
+ post?: never;
962
+ delete?: never;
963
+ options?: never;
964
+ head?: never;
965
+ patch?: never;
966
+ trace?: never;
967
+ };
968
+ "/lists/{listId}/bookmarks/{bookmarkId}": {
969
+ parameters: {
970
+ query?: never;
971
+ header?: never;
972
+ path?: never;
973
+ cookie?: never;
974
+ };
975
+ get?: never;
976
+ /**
977
+ * Add a bookmark to a list
978
+ * @description Add the bookmarks to a list
979
+ */
980
+ put: {
981
+ parameters: {
982
+ query?: never;
983
+ header?: never;
984
+ path: {
985
+ listId: components["parameters"]["ListId"];
986
+ bookmarkId: components["parameters"]["BookmarkId"];
987
+ };
988
+ cookie?: never;
989
+ };
990
+ requestBody?: never;
991
+ responses: {
992
+ /** @description No content - the bookmark was added */
993
+ 204: {
994
+ headers: {
995
+ [name: string]: unknown;
996
+ };
997
+ content?: never;
998
+ };
999
+ };
1000
+ };
1001
+ post?: never;
1002
+ /**
1003
+ * Remove a bookmark from a list
1004
+ * @description Remove the bookmarks from a list
1005
+ */
1006
+ delete: {
1007
+ parameters: {
1008
+ query?: never;
1009
+ header?: never;
1010
+ path: {
1011
+ listId: components["parameters"]["ListId"];
1012
+ bookmarkId: components["parameters"]["BookmarkId"];
1013
+ };
1014
+ cookie?: never;
1015
+ };
1016
+ requestBody?: never;
1017
+ responses: {
1018
+ /** @description No content - the bookmark was added */
1019
+ 204: {
1020
+ headers: {
1021
+ [name: string]: unknown;
1022
+ };
1023
+ content?: never;
1024
+ };
1025
+ };
1026
+ };
1027
+ options?: never;
1028
+ head?: never;
1029
+ patch?: never;
1030
+ trace?: never;
1031
+ };
1032
+ "/tags": {
1033
+ parameters: {
1034
+ query?: never;
1035
+ header?: never;
1036
+ path?: never;
1037
+ cookie?: never;
1038
+ };
1039
+ /**
1040
+ * Get all tags
1041
+ * @description Get all tags
1042
+ */
1043
+ get: {
1044
+ parameters: {
1045
+ query?: never;
1046
+ header?: never;
1047
+ path?: never;
1048
+ cookie?: never;
1049
+ };
1050
+ requestBody?: never;
1051
+ responses: {
1052
+ /** @description Object with all tags data. */
1053
+ 200: {
1054
+ headers: {
1055
+ [name: string]: unknown;
1056
+ };
1057
+ content: {
1058
+ "application/json": {
1059
+ tags: components["schemas"]["Tag"][];
1060
+ };
1061
+ };
1062
+ };
1063
+ };
1064
+ };
1065
+ put?: never;
1066
+ post?: never;
1067
+ delete?: never;
1068
+ options?: never;
1069
+ head?: never;
1070
+ patch?: never;
1071
+ trace?: never;
1072
+ };
1073
+ "/tags/{tagId}": {
1074
+ parameters: {
1075
+ query?: never;
1076
+ header?: never;
1077
+ path?: never;
1078
+ cookie?: never;
1079
+ };
1080
+ /**
1081
+ * Get a single tag
1082
+ * @description Get tag by its id
1083
+ */
1084
+ get: {
1085
+ parameters: {
1086
+ query?: never;
1087
+ header?: never;
1088
+ path: {
1089
+ tagId: components["parameters"]["TagId"];
1090
+ };
1091
+ cookie?: never;
1092
+ };
1093
+ requestBody?: never;
1094
+ responses: {
1095
+ /** @description Object with list data. */
1096
+ 200: {
1097
+ headers: {
1098
+ [name: string]: unknown;
1099
+ };
1100
+ content: {
1101
+ "application/json": components["schemas"]["Tag"];
1102
+ };
1103
+ };
1104
+ };
1105
+ };
1106
+ put?: never;
1107
+ post?: never;
1108
+ /**
1109
+ * Delete a tag
1110
+ * @description Delete tag by its id
1111
+ */
1112
+ delete: {
1113
+ parameters: {
1114
+ query?: never;
1115
+ header?: never;
1116
+ path: {
1117
+ tagId: components["parameters"]["TagId"];
1118
+ };
1119
+ cookie?: never;
1120
+ };
1121
+ requestBody?: never;
1122
+ responses: {
1123
+ /** @description No content - the bookmark was deleted */
1124
+ 204: {
1125
+ headers: {
1126
+ [name: string]: unknown;
1127
+ };
1128
+ content?: never;
1129
+ };
1130
+ };
1131
+ };
1132
+ options?: never;
1133
+ head?: never;
1134
+ /**
1135
+ * Update a tag
1136
+ * @description Update tag by its id
1137
+ */
1138
+ patch: {
1139
+ parameters: {
1140
+ query?: never;
1141
+ header?: never;
1142
+ path: {
1143
+ tagId: components["parameters"]["TagId"];
1144
+ };
1145
+ cookie?: never;
1146
+ };
1147
+ /** @description The data to update. Only the fields you want to update need to be provided. */
1148
+ requestBody?: {
1149
+ content: {
1150
+ "application/json": {
1151
+ name?: string;
1152
+ };
1153
+ };
1154
+ };
1155
+ responses: {
1156
+ /** @description The updated tag */
1157
+ 200: {
1158
+ headers: {
1159
+ [name: string]: unknown;
1160
+ };
1161
+ content: {
1162
+ "application/json": components["schemas"]["Tag"];
1163
+ };
1164
+ };
1165
+ };
1166
+ };
1167
+ trace?: never;
1168
+ };
1169
+ "/tags/{tagId}/bookmarks": {
1170
+ parameters: {
1171
+ query?: never;
1172
+ header?: never;
1173
+ path?: never;
1174
+ cookie?: never;
1175
+ };
1176
+ /**
1177
+ * Get a bookmarks with the tag
1178
+ * @description Get the bookmarks with the tag
1179
+ */
1180
+ get: {
1181
+ parameters: {
1182
+ query?: {
1183
+ limit?: number;
1184
+ cursor?: components["schemas"]["Cursor"];
1185
+ };
1186
+ header?: never;
1187
+ path: {
1188
+ tagId: components["parameters"]["TagId"];
1189
+ };
1190
+ cookie?: never;
1191
+ };
1192
+ requestBody?: never;
1193
+ responses: {
1194
+ /** @description Object with list data. */
1195
+ 200: {
1196
+ headers: {
1197
+ [name: string]: unknown;
1198
+ };
1199
+ content: {
1200
+ "application/json": components["schemas"]["PaginatedBookmarks"];
1201
+ };
1202
+ };
1203
+ };
1204
+ };
1205
+ put?: never;
1206
+ post?: never;
1207
+ delete?: never;
1208
+ options?: never;
1209
+ head?: never;
1210
+ patch?: never;
1211
+ trace?: never;
1212
+ };
1213
+ "/highlights": {
1214
+ parameters: {
1215
+ query?: never;
1216
+ header?: never;
1217
+ path?: never;
1218
+ cookie?: never;
1219
+ };
1220
+ /**
1221
+ * Get all highlights
1222
+ * @description Get all highlights
1223
+ */
1224
+ get: {
1225
+ parameters: {
1226
+ query?: {
1227
+ limit?: number;
1228
+ cursor?: components["schemas"]["Cursor"];
1229
+ };
1230
+ header?: never;
1231
+ path?: never;
1232
+ cookie?: never;
1233
+ };
1234
+ requestBody?: never;
1235
+ responses: {
1236
+ /** @description Object with all highlights data. */
1237
+ 200: {
1238
+ headers: {
1239
+ [name: string]: unknown;
1240
+ };
1241
+ content: {
1242
+ "application/json": components["schemas"]["PaginatedHighlights"];
1243
+ };
1244
+ };
1245
+ };
1246
+ };
1247
+ put?: never;
1248
+ /**
1249
+ * Create a new highlight
1250
+ * @description Create a new highlight
1251
+ */
1252
+ post: {
1253
+ parameters: {
1254
+ query?: never;
1255
+ header?: never;
1256
+ path?: never;
1257
+ cookie?: never;
1258
+ };
1259
+ /** @description The highlight to create */
1260
+ requestBody?: {
1261
+ content: {
1262
+ "application/json": {
1263
+ bookmarkId: string;
1264
+ startOffset: number;
1265
+ endOffset: number;
1266
+ /**
1267
+ * @default yellow
1268
+ * @enum {string}
1269
+ */
1270
+ color?: "yellow" | "red" | "green" | "blue";
1271
+ text: string | null;
1272
+ note: string | null;
1273
+ };
1274
+ };
1275
+ };
1276
+ responses: {
1277
+ /** @description The created highlight */
1278
+ 201: {
1279
+ headers: {
1280
+ [name: string]: unknown;
1281
+ };
1282
+ content: {
1283
+ "application/json": components["schemas"]["Highlight"];
1284
+ };
1285
+ };
1286
+ };
1287
+ };
1288
+ delete?: never;
1289
+ options?: never;
1290
+ head?: never;
1291
+ patch?: never;
1292
+ trace?: never;
1293
+ };
1294
+ "/highlights/{highlightId}": {
1295
+ parameters: {
1296
+ query?: never;
1297
+ header?: never;
1298
+ path?: never;
1299
+ cookie?: never;
1300
+ };
1301
+ /**
1302
+ * Get a single highlight
1303
+ * @description Get highlight by its id
1304
+ */
1305
+ get: {
1306
+ parameters: {
1307
+ query?: never;
1308
+ header?: never;
1309
+ path: {
1310
+ highlightId: components["parameters"]["HighlightId"];
1311
+ };
1312
+ cookie?: never;
1313
+ };
1314
+ requestBody?: never;
1315
+ responses: {
1316
+ /** @description Object with highlight data. */
1317
+ 200: {
1318
+ headers: {
1319
+ [name: string]: unknown;
1320
+ };
1321
+ content: {
1322
+ "application/json": components["schemas"]["Highlight"];
1323
+ };
1324
+ };
1325
+ };
1326
+ };
1327
+ put?: never;
1328
+ post?: never;
1329
+ /**
1330
+ * Delete a highlight
1331
+ * @description Delete highlight by its id
1332
+ */
1333
+ delete: {
1334
+ parameters: {
1335
+ query?: never;
1336
+ header?: never;
1337
+ path: {
1338
+ highlightId: components["parameters"]["HighlightId"];
1339
+ };
1340
+ cookie?: never;
1341
+ };
1342
+ requestBody?: never;
1343
+ responses: {
1344
+ /** @description The deleted highlight */
1345
+ 200: {
1346
+ headers: {
1347
+ [name: string]: unknown;
1348
+ };
1349
+ content: {
1350
+ "application/json": components["schemas"]["Highlight"];
1351
+ };
1352
+ };
1353
+ };
1354
+ };
1355
+ options?: never;
1356
+ head?: never;
1357
+ /**
1358
+ * Update a highlight
1359
+ * @description Update highlight by its id
1360
+ */
1361
+ patch: {
1362
+ parameters: {
1363
+ query?: never;
1364
+ header?: never;
1365
+ path: {
1366
+ highlightId: components["parameters"]["HighlightId"];
1367
+ };
1368
+ cookie?: never;
1369
+ };
1370
+ /** @description The data to update. Only the fields you want to update need to be provided. */
1371
+ requestBody?: {
1372
+ content: {
1373
+ "application/json": {
1374
+ /** @enum {string} */
1375
+ color?: "yellow" | "red" | "green" | "blue";
1376
+ };
1377
+ };
1378
+ };
1379
+ responses: {
1380
+ /** @description The updated highlight */
1381
+ 200: {
1382
+ headers: {
1383
+ [name: string]: unknown;
1384
+ };
1385
+ content: {
1386
+ "application/json": components["schemas"]["Highlight"];
1387
+ };
1388
+ };
1389
+ };
1390
+ };
1391
+ trace?: never;
1392
+ };
1393
+ "/users/me": {
1394
+ parameters: {
1395
+ query?: never;
1396
+ header?: never;
1397
+ path?: never;
1398
+ cookie?: never;
1399
+ };
1400
+ /**
1401
+ * Get current user info
1402
+ * @description Returns info about the current user
1403
+ */
1404
+ get: {
1405
+ parameters: {
1406
+ query?: never;
1407
+ header?: never;
1408
+ path?: never;
1409
+ cookie?: never;
1410
+ };
1411
+ requestBody?: never;
1412
+ responses: {
1413
+ /** @description Object with user data. */
1414
+ 200: {
1415
+ headers: {
1416
+ [name: string]: unknown;
1417
+ };
1418
+ content: {
1419
+ "application/json": {
1420
+ id: string;
1421
+ name?: string | null;
1422
+ email?: string | null;
1423
+ };
1424
+ };
1425
+ };
1426
+ };
1427
+ };
1428
+ put?: never;
1429
+ post?: never;
1430
+ delete?: never;
1431
+ options?: never;
1432
+ head?: never;
1433
+ patch?: never;
1434
+ trace?: never;
1435
+ };
1436
+ "/users/me/stats": {
1437
+ parameters: {
1438
+ query?: never;
1439
+ header?: never;
1440
+ path?: never;
1441
+ cookie?: never;
1442
+ };
1443
+ /**
1444
+ * Get current user stats
1445
+ * @description Returns stats about the current user
1446
+ */
1447
+ get: {
1448
+ parameters: {
1449
+ query?: never;
1450
+ header?: never;
1451
+ path?: never;
1452
+ cookie?: never;
1453
+ };
1454
+ requestBody?: never;
1455
+ responses: {
1456
+ /** @description Object with user stats. */
1457
+ 200: {
1458
+ headers: {
1459
+ [name: string]: unknown;
1460
+ };
1461
+ content: {
1462
+ "application/json": {
1463
+ numBookmarks: number;
1464
+ numFavorites: number;
1465
+ numArchived: number;
1466
+ numTags: number;
1467
+ numLists: number;
1468
+ numHighlights: number;
1469
+ };
1470
+ };
1471
+ };
1472
+ };
1473
+ };
1474
+ put?: never;
1475
+ post?: never;
1476
+ delete?: never;
1477
+ options?: never;
1478
+ head?: never;
1479
+ patch?: never;
1480
+ trace?: never;
1481
+ };
1482
+ }
1483
+
1484
+ export { }