aboutsummaryrefslogtreecommitdiffstats
path: root/packages/open-api/lib
diff options
context:
space:
mode:
Diffstat (limited to 'packages/open-api/lib')
-rw-r--r--packages/open-api/lib/bookmarks.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/open-api/lib/bookmarks.ts b/packages/open-api/lib/bookmarks.ts
index c7c05256..a1ab1353 100644
--- a/packages/open-api/lib/bookmarks.ts
+++ b/packages/open-api/lib/bookmarks.ts
@@ -199,6 +199,29 @@ registry.registerPath({
registry.registerPath({
method: "post",
+ path: "/bookmarks/{bookmarkId}/summarize",
+ description:
+ "Attaches a summary to the bookmark and returns the updated record.",
+ summary: "Summarize a bookmark",
+ tags: ["Bookmarks"],
+ security: [{ [BearerAuth.name]: [] }],
+ request: {
+ params: z.object({ bookmarkId: BookmarkIdSchema }),
+ },
+ responses: {
+ 200: {
+ description: "The updated bookmark with summary",
+ content: {
+ "application/json": {
+ schema: zBareBookmarkSchema,
+ },
+ },
+ },
+ },
+});
+
+registry.registerPath({
+ method: "post",
path: "/bookmarks/{bookmarkId}/tags",
description: "Attach tags to a bookmark",
summary: "Attach tags to a bookmark",