aboutsummaryrefslogtreecommitdiffstats
path: root/packages/open-api/lib/pagination.ts
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-04-16 19:04:25 +0000
committerMohamed Bassem <me@mbassem.com>2025-04-16 23:50:17 +0000
commitba89a864bb4548623ca1bfcfc9ab6eb7fe782603 (patch)
treee3b8ddf9d418255f95c18bee76350d441fdd3081 /packages/open-api/lib/pagination.ts
parent5e0f4de1625957c6ce057ae272aa301fc459d31b (diff)
downloadkarakeep-ba89a864bb4548623ca1bfcfc9ab6eb7fe782603.tar.zst
fix: Add includeContent to search endpoint and document it in the docs
Diffstat (limited to 'packages/open-api/lib/pagination.ts')
-rw-r--r--packages/open-api/lib/pagination.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/open-api/lib/pagination.ts b/packages/open-api/lib/pagination.ts
index dfe835e2..382f00ef 100644
--- a/packages/open-api/lib/pagination.ts
+++ b/packages/open-api/lib/pagination.ts
@@ -22,3 +22,12 @@ export const PaginationSchema = z
cursor: CursorSchema.optional(),
})
.openapi("Pagination");
+
+export const IncludeContentSearchParamSchema = z.object({
+ includeContent: z
+ .boolean()
+ .default(true)
+ .describe(
+ "If set to true, bookmark's content will be included in the response. Note, this content can be large for some bookmarks.",
+ ),
+});