diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-10-11 18:16:06 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-10-11 18:16:06 +0000 |
| commit | 7f138b99d4cbb3495dd25d59df2fa767dacc1d35 (patch) | |
| tree | 84ef68cc2a044064b054b5af5d5fc1ebc5897496 /packages/sdk/src/karakeep-api.d.ts | |
| parent | 87053d2e76a362da9ee417110195ec02673080fd (diff) | |
| download | karakeep-7f138b99d4cbb3495dd25d59df2fa767dacc1d35.tar.zst | |
fix(api): Document the API for getting lists of a bookmark. fixes #2030
Diffstat (limited to '')
| -rw-r--r-- | packages/sdk/src/karakeep-api.d.ts | 84 |
1 files changed, 70 insertions, 14 deletions
diff --git a/packages/sdk/src/karakeep-api.d.ts b/packages/sdk/src/karakeep-api.d.ts index 1ac35e04..d376eb1b 100644 --- a/packages/sdk/src/karakeep-api.d.ts +++ b/packages/sdk/src/karakeep-api.d.ts @@ -67,6 +67,7 @@ export interface paths { createdAt?: string | null; /** @enum {string} */ crawlPriority?: "low" | "normal"; + importSessionId?: string; } & ( | { /** @enum {string} */ @@ -511,6 +512,61 @@ export interface paths { patch?: never; trace?: never; }; + "/bookmarks/{bookmarkId}/lists": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get lists of a bookmark + * @description Get lists of a bookmark + */ + get: { + parameters: { + query?: never; + header?: never; + path: { + bookmarkId: components["parameters"]["BookmarkId"]; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description The list of highlights */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + lists: components["schemas"]["List"][]; + }; + }; + }; + /** @description Bookmark not found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + code: string; + message: string; + }; + }; + }; + }; + }; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/bookmarks/{bookmarkId}/highlights": { parameters: { query?: never; @@ -2048,6 +2104,20 @@ export interface components { nextCursor: string | null; }; Cursor: string; + List: { + id: string; + name: string; + description?: string | null; + icon: string; + parentId: string | null; + /** + * @default manual + * @enum {string} + */ + type: "manual" | "smart"; + query?: string | null; + public: boolean; + }; Highlight: { bookmarkId: string; startOffset: number; @@ -2063,20 +2133,6 @@ export interface components { userId: string; createdAt: string; }; - List: { - id: string; - name: string; - description?: string | null; - icon: string; - parentId: string | null; - /** - * @default manual - * @enum {string} - */ - type: "manual" | "smart"; - query?: string | null; - public: boolean; - }; Tag: { id: string; name: string; |
