diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-03-09 21:44:48 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-03-09 21:44:48 +0000 |
| commit | 96c637826ccae1a5c6c983c0d4db353d5293f1f7 (patch) | |
| tree | efa9845b12d6ed3b5230e09ff253cc3784dc5dba /packages | |
| parent | 82ca8e3a55f26a8709251f161224e92b93fc5828 (diff) | |
| download | karakeep-96c637826ccae1a5c6c983c0d4db353d5293f1f7.tar.zst | |
fix: Resync the openapi spec
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/open-api/hoarder-openapi-spec.json | 13 | ||||
| -rw-r--r-- | packages/sdk/src/hoarder-api.d.ts | 56 |
2 files changed, 61 insertions, 8 deletions
diff --git a/packages/open-api/hoarder-openapi-spec.json b/packages/open-api/hoarder-openapi-spec.json index c33d0621..7e1911cb 100644 --- a/packages/open-api/hoarder-openapi-spec.json +++ b/packages/open-api/hoarder-openapi-spec.json @@ -60,8 +60,7 @@ }, "title": { "type": "string", - "nullable": true, - "maxLength": 250 + "nullable": true }, "archived": { "type": "boolean" @@ -579,7 +578,7 @@ "title": { "type": "string", "nullable": true, - "maxLength": 250 + "maxLength": 1000 }, "archived": { "type": "boolean" @@ -840,7 +839,7 @@ "title": { "type": "string", "nullable": true, - "maxLength": 250 + "maxLength": 1000 }, "createdAt": { "type": "string", @@ -871,8 +870,7 @@ }, "title": { "type": "string", - "nullable": true, - "maxLength": 250 + "nullable": true }, "archived": { "type": "boolean" @@ -950,8 +948,7 @@ }, "title": { "type": "string", - "nullable": true, - "maxLength": 250 + "nullable": true }, "archived": { "type": "boolean" diff --git a/packages/sdk/src/hoarder-api.d.ts b/packages/sdk/src/hoarder-api.d.ts index 10bd33f9..bc785995 100644 --- a/packages/sdk/src/hoarder-api.d.ts +++ b/packages/sdk/src/hoarder-api.d.ts @@ -261,6 +261,58 @@ export interface paths { }; trace?: never; }; + "/bookmarks/{bookmarkId}/summarize": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Summarize a bookmark + * @description Attaches a summary to the bookmark and returns the updated record. + */ + post: { + parameters: { + query?: never; + header?: never; + path: { + bookmarkId: components["parameters"]["BookmarkId"]; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description The updated bookmark with summary */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + id: string; + createdAt: string; + modifiedAt: string | null; + title?: string | null; + archived: boolean; + favourited: boolean; + /** @enum {string|null} */ + taggingStatus: "success" | "failure" | "pending" | null; + note?: string | null; + summary?: string | null; + }; + }; + }; + }; + }; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/bookmarks/{bookmarkId}/tags": { parameters: { query?: never; @@ -424,6 +476,7 @@ export interface paths { /** @enum {string} */ assetType: | "screenshot" + | "assetScreenshot" | "bannerImage" | "fullPageArchive" | "video" @@ -445,6 +498,7 @@ export interface paths { /** @enum {string} */ assetType: | "screenshot" + | "assetScreenshot" | "bannerImage" | "fullPageArchive" | "video" @@ -1242,6 +1296,7 @@ export interface components { assetId: string; fileName?: string | null; sourceUrl?: string | null; + size?: number | null; } | { /** @enum {string} */ @@ -1252,6 +1307,7 @@ export interface components { /** @enum {string} */ assetType: | "screenshot" + | "assetScreenshot" | "bannerImage" | "fullPageArchive" | "video" |
