@riverbankcms/sdk 0.3.0 → 0.4.1

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.
Files changed (142) hide show
  1. package/README.md +255 -1
  2. package/dist/cli/index.js +249 -40
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/client/bookings.js +15 -1
  5. package/dist/client/bookings.js.map +1 -1
  6. package/dist/client/bookings.mjs +15 -1
  7. package/dist/client/bookings.mjs.map +1 -1
  8. package/dist/client/client.d.mts +2 -2
  9. package/dist/client/client.d.ts +2 -2
  10. package/dist/client/client.js +33 -5
  11. package/dist/client/client.js.map +1 -1
  12. package/dist/client/client.mjs +33 -5
  13. package/dist/client/client.mjs.map +1 -1
  14. package/dist/client/hooks.d.mts +2 -2
  15. package/dist/client/hooks.d.ts +2 -2
  16. package/dist/client/rendering/client.js +31 -33
  17. package/dist/client/rendering/client.js.map +1 -1
  18. package/dist/client/rendering/client.mjs +31 -33
  19. package/dist/client/rendering/client.mjs.map +1 -1
  20. package/dist/client/usePage-BcjWPXvh.d.mts +6388 -0
  21. package/dist/client/usePage-C3ZKNwY7.d.mts +6393 -0
  22. package/dist/client/usePage-CyYpOJud.d.ts +6388 -0
  23. package/dist/client/usePage-gpVaeWDy.d.ts +6393 -0
  24. package/dist/server/{Layout-CsAQ-0Fv.d.mts → Layout-B_zUr9ci.d.mts} +1 -1
  25. package/dist/server/{Layout-BM_KmCxO.d.ts → Layout-CHG77dhK.d.ts} +1 -1
  26. package/dist/server/blockKinds-B6MWzNWp.d.mts +16 -0
  27. package/dist/server/blockKinds-B6MWzNWp.d.ts +16 -0
  28. package/dist/server/{chunk-GWBMJPLH.mjs → chunk-A2FZMRDW.mjs} +3 -2
  29. package/dist/server/chunk-A2FZMRDW.mjs.map +1 -0
  30. package/dist/server/chunk-BOHTTHY5.mjs +406 -0
  31. package/dist/server/chunk-BOHTTHY5.mjs.map +1 -0
  32. package/dist/server/{chunk-5R4NMVXA.js → chunk-BUCJWG6G.js} +5 -5
  33. package/dist/server/chunk-BUCJWG6G.js.map +1 -0
  34. package/dist/server/chunk-D2QLTPUJ.mjs +33 -0
  35. package/dist/server/chunk-D2QLTPUJ.mjs.map +1 -0
  36. package/dist/server/chunk-GERCMTPQ.js +33 -0
  37. package/dist/server/chunk-GERCMTPQ.js.map +1 -0
  38. package/dist/server/{chunk-SF63XAX7.js → chunk-IT5ICP43.js} +24 -4
  39. package/dist/server/chunk-IT5ICP43.js.map +1 -0
  40. package/dist/server/{chunk-QFFQTOY3.mjs → chunk-N3PX76AP.mjs} +11 -3
  41. package/dist/server/{chunk-QFFQTOY3.mjs.map → chunk-N3PX76AP.mjs.map} +1 -1
  42. package/dist/server/{chunk-O5DC7MYW.mjs → chunk-NKXS4TBK.mjs} +24 -4
  43. package/dist/server/chunk-NKXS4TBK.mjs.map +1 -0
  44. package/dist/server/{chunk-INWKF3IC.js → chunk-P6CDRJN3.js} +8 -8
  45. package/dist/server/{chunk-INWKF3IC.js.map → chunk-P6CDRJN3.js.map} +1 -1
  46. package/dist/server/{chunk-UFVCBGBY.js → chunk-R5B6IOFQ.js} +11 -3
  47. package/dist/server/chunk-R5B6IOFQ.js.map +1 -0
  48. package/dist/server/{chunk-FK64TZBT.mjs → chunk-SFQ7VF3G.mjs} +2 -2
  49. package/dist/server/{chunk-62ZJI564.js → chunk-SWPHIUVE.js} +7 -6
  50. package/dist/server/chunk-SWPHIUVE.js.map +1 -0
  51. package/dist/server/{chunk-PN3CHDVX.mjs → chunk-XK2YIISA.mjs} +2 -2
  52. package/dist/server/chunk-XK2YIISA.mjs.map +1 -0
  53. package/dist/server/{chunk-YXDDFG3N.js → chunk-Y7347JMZ.js} +3 -2
  54. package/dist/server/chunk-Y7347JMZ.js.map +1 -0
  55. package/dist/server/{chunk-JTAERCX2.mjs → chunk-ZEAJW6T3.mjs} +5 -4
  56. package/dist/server/chunk-ZEAJW6T3.mjs.map +1 -0
  57. package/dist/server/chunk-ZIM53VP6.js +406 -0
  58. package/dist/server/chunk-ZIM53VP6.js.map +1 -0
  59. package/dist/server/{components-CI3JiOYA.d.mts → components-Bo3LPpVb.d.mts} +3 -3
  60. package/dist/server/{components-DJBLu_yc.d.ts → components-ClFs4PUa.d.ts} +3 -3
  61. package/dist/server/components.d.mts +7 -6
  62. package/dist/server/components.d.ts +7 -6
  63. package/dist/server/components.js +3 -3
  64. package/dist/server/components.mjs +2 -2
  65. package/dist/server/config-validation.d.mts +5 -300
  66. package/dist/server/config-validation.d.ts +5 -300
  67. package/dist/server/config-validation.js +6 -3
  68. package/dist/server/config-validation.js.map +1 -1
  69. package/dist/server/config-validation.mjs +5 -2
  70. package/dist/server/config.d.mts +43 -4
  71. package/dist/server/config.d.ts +43 -4
  72. package/dist/server/config.js +27 -3
  73. package/dist/server/config.js.map +1 -1
  74. package/dist/server/config.mjs +26 -2
  75. package/dist/server/config.mjs.map +1 -1
  76. package/dist/server/data.d.mts +8 -5
  77. package/dist/server/data.d.ts +8 -5
  78. package/dist/server/data.js +2 -2
  79. package/dist/server/data.mjs +1 -1
  80. package/dist/server/{index-Dus2gkY6.d.ts → index-DbSfrRA0.d.ts} +1 -1
  81. package/dist/server/{index-DoX3ELQn.d.mts → index-Dj7VKH34.d.mts} +1 -1
  82. package/dist/server/index.d.mts +5 -4
  83. package/dist/server/index.d.ts +5 -4
  84. package/dist/server/index.js +6 -2
  85. package/dist/server/index.js.map +1 -1
  86. package/dist/server/index.mjs +5 -1
  87. package/dist/server/{loadContent-CdXDGsJM.d.ts → loadContent-C2SwqmXy.d.ts} +4 -4
  88. package/dist/server/{loadContent-v2n6pOlO.d.mts → loadContent-C_FipaAC.d.mts} +4 -4
  89. package/dist/server/loadPage-DUHBXDEW.js +11 -0
  90. package/dist/server/{loadPage-3ECPF426.js.map → loadPage-DUHBXDEW.js.map} +1 -1
  91. package/dist/server/{loadPage-LW273NYO.mjs → loadPage-LYVKY3WZ.mjs} +3 -3
  92. package/dist/server/{loadPage-en10WQrt.d.mts → loadPage-mavT3Jae.d.mts} +22 -3
  93. package/dist/server/{loadPage-bejlajm9.d.ts → loadPage-naVvoua8.d.ts} +22 -3
  94. package/dist/server/metadata.d.mts +5 -4
  95. package/dist/server/metadata.d.ts +5 -4
  96. package/dist/server/navigation.d.mts +2 -2
  97. package/dist/server/navigation.d.ts +2 -2
  98. package/dist/server/rendering/server.d.mts +8 -7
  99. package/dist/server/rendering/server.d.ts +8 -7
  100. package/dist/server/rendering/server.js +4 -4
  101. package/dist/server/rendering/server.mjs +3 -3
  102. package/dist/server/rendering.d.mts +9 -8
  103. package/dist/server/rendering.d.ts +9 -8
  104. package/dist/server/rendering.js +6 -6
  105. package/dist/server/rendering.mjs +5 -5
  106. package/dist/server/routing.d.mts +5 -4
  107. package/dist/server/routing.d.ts +5 -4
  108. package/dist/server/routing.js +1 -1
  109. package/dist/server/routing.mjs +1 -1
  110. package/dist/server/server.d.mts +7 -6
  111. package/dist/server/server.d.ts +7 -6
  112. package/dist/server/server.js +4 -4
  113. package/dist/server/server.mjs +3 -3
  114. package/dist/server/theme-bridge.js +7 -7
  115. package/dist/server/theme-bridge.mjs +1 -1
  116. package/dist/server/{types-Cc7lyPkN.d.ts → types-5XdVD2J1.d.ts} +2 -0
  117. package/dist/server/{types-nVerjjdv.d.mts → types-BA-J9K8r.d.mts} +2 -0
  118. package/dist/server/{types-CLusapsM.d.mts → types-BC9eB2KH.d.mts} +65 -17
  119. package/dist/server/{types-Ls6BkLKg.d.ts → types-CAnC529E.d.ts} +65 -17
  120. package/dist/server/{types-D-rqOU5I.d.ts → types-CMqVHYLG.d.ts} +264 -2
  121. package/dist/server/{types-Bq3520hK.d.mts → types-CYfHxUhe.d.mts} +264 -2
  122. package/dist/server/{types-_nDnPHpv.d.mts → types-CbagRQ_7.d.mts} +19 -1
  123. package/dist/server/{types-_nDnPHpv.d.ts → types-DuQCNVV0.d.ts} +19 -1
  124. package/dist/server/validation-C7W2Fe0i.d.ts +459 -0
  125. package/dist/server/validation-hg1sqhrt.d.mts +459 -0
  126. package/package.json +2 -1
  127. package/dist/server/chunk-5R4NMVXA.js.map +0 -1
  128. package/dist/server/chunk-62ZJI564.js.map +0 -1
  129. package/dist/server/chunk-BPKYRPCQ.mjs +0 -215
  130. package/dist/server/chunk-BPKYRPCQ.mjs.map +0 -1
  131. package/dist/server/chunk-GWBMJPLH.mjs.map +0 -1
  132. package/dist/server/chunk-JTAERCX2.mjs.map +0 -1
  133. package/dist/server/chunk-O5DC7MYW.mjs.map +0 -1
  134. package/dist/server/chunk-PN3CHDVX.mjs.map +0 -1
  135. package/dist/server/chunk-SF63XAX7.js.map +0 -1
  136. package/dist/server/chunk-UFVCBGBY.js.map +0 -1
  137. package/dist/server/chunk-XLVL5WPH.js +0 -215
  138. package/dist/server/chunk-XLVL5WPH.js.map +0 -1
  139. package/dist/server/chunk-YXDDFG3N.js.map +0 -1
  140. package/dist/server/loadPage-3ECPF426.js +0 -11
  141. /package/dist/server/{chunk-FK64TZBT.mjs.map → chunk-SFQ7VF3G.mjs.map} +0 -0
  142. /package/dist/server/{loadPage-LW273NYO.mjs.map → loadPage-LYVKY3WZ.mjs.map} +0 -0
@@ -1,14 +1,15 @@
1
- import { a as LoadPageResult } from './loadPage-bejlajm9.js';
2
- import { S as SiteResponse } from './types-Ls6BkLKg.js';
1
+ import { a as LoadPageResult } from './loadPage-naVvoua8.js';
2
+ import { S as SiteResponse } from './types-CAnC529E.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import './schema-Bpy9N5ZI.js';
6
6
  import 'zod';
7
- import './types-Cc7lyPkN.js';
7
+ import './types-5XdVD2J1.js';
8
8
  import '@riverbankcms/ai';
9
9
  import '@riverbankcms/media-storage-supabase';
10
10
  import '@riverbankcms/db';
11
- import './types-_nDnPHpv.js';
11
+ import './types-DuQCNVV0.js';
12
+ import './blockKinds-B6MWzNWp.js';
12
13
 
13
14
  /**
14
15
  * Metadata generation helper for Next.js pages
@@ -1,5 +1,5 @@
1
- import { N as NavigationMenuWithItems } from './types-nVerjjdv.mjs';
2
- export { L as LinkPayload, a as NavigationItemRecord } from './types-nVerjjdv.mjs';
1
+ import { N as NavigationMenuWithItems } from './types-BA-J9K8r.mjs';
2
+ export { L as LinkPayload, a as NavigationItemRecord } from './types-BA-J9K8r.mjs';
3
3
  import '@riverbankcms/ai';
4
4
  import './schema-Bpy9N5ZI.mjs';
5
5
  import 'zod';
@@ -1,5 +1,5 @@
1
- import { N as NavigationMenuWithItems } from './types-Cc7lyPkN.js';
2
- export { L as LinkPayload, a as NavigationItemRecord } from './types-Cc7lyPkN.js';
1
+ import { N as NavigationMenuWithItems } from './types-5XdVD2J1.js';
2
+ export { L as LinkPayload, a as NavigationItemRecord } from './types-5XdVD2J1.js';
3
3
  import '@riverbankcms/ai';
4
4
  import './schema-Bpy9N5ZI.js';
5
5
  import 'zod';
@@ -1,12 +1,13 @@
1
- export { b as Page, P as PageProps } from '../loadPage-en10WQrt.mjs';
2
- export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-CsAQ-0Fv.mjs';
1
+ export { b as Page, P as PageProps } from '../loadPage-mavT3Jae.mjs';
2
+ export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-B_zUr9ci.mjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as React from 'react';
5
- import { T as Theme } from '../types-nVerjjdv.mjs';
5
+ import { T as Theme } from '../types-BA-J9K8r.mjs';
6
6
  import '../schema-Bpy9N5ZI.mjs';
7
- import { R as RiverbankClient } from '../types-CLusapsM.mjs';
7
+ import { R as RiverbankClient } from '../types-BC9eB2KH.mjs';
8
+ import { B as BlockKind } from '../blockKinds-B6MWzNWp.mjs';
8
9
  import 'zod';
9
- import '../types-_nDnPHpv.mjs';
10
+ import '../types-CbagRQ_7.mjs';
10
11
  import '@riverbankcms/site-renderer';
11
12
  import '@riverbankcms/ai';
12
13
  import '@riverbankcms/media-storage-supabase';
@@ -22,10 +23,10 @@ type BlockOverrideComponent = React.ComponentType<{
22
23
  themeConfig?: Theme;
23
24
  data?: Record<string, unknown>;
24
25
  blockId?: string | null;
25
- blockKind?: string;
26
+ blockKind?: BlockKind;
26
27
  }>;
27
28
  type BlockProps = {
28
- blockKind: string;
29
+ blockKind: BlockKind;
29
30
  blockId?: string | null;
30
31
  content: Record<string, unknown>;
31
32
  theme: Theme;
@@ -1,12 +1,13 @@
1
- export { b as Page, P as PageProps } from '../loadPage-bejlajm9.js';
2
- export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-BM_KmCxO.js';
1
+ export { b as Page, P as PageProps } from '../loadPage-naVvoua8.js';
2
+ export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-CHG77dhK.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as React from 'react';
5
- import { T as Theme } from '../types-Cc7lyPkN.js';
5
+ import { T as Theme } from '../types-5XdVD2J1.js';
6
6
  import '../schema-Bpy9N5ZI.js';
7
- import { R as RiverbankClient } from '../types-Ls6BkLKg.js';
7
+ import { R as RiverbankClient } from '../types-CAnC529E.js';
8
+ import { B as BlockKind } from '../blockKinds-B6MWzNWp.js';
8
9
  import 'zod';
9
- import '../types-_nDnPHpv.js';
10
+ import '../types-DuQCNVV0.js';
10
11
  import '@riverbankcms/site-renderer';
11
12
  import '@riverbankcms/ai';
12
13
  import '@riverbankcms/media-storage-supabase';
@@ -22,10 +23,10 @@ type BlockOverrideComponent = React.ComponentType<{
22
23
  themeConfig?: Theme;
23
24
  data?: Record<string, unknown>;
24
25
  blockId?: string | null;
25
- blockKind?: string;
26
+ blockKind?: BlockKind;
26
27
  }>;
27
28
  type BlockProps = {
28
- blockKind: string;
29
+ blockKind: BlockKind;
29
30
  blockId?: string | null;
30
31
  content: Record<string, unknown>;
31
32
  theme: Theme;
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk5R4NMVXAjs = require('../chunk-5R4NMVXA.js');
3
+ var _chunkBUCJWG6Gjs = require('../chunk-BUCJWG6G.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkINWKF3ICjs = require('../chunk-INWKF3IC.js');
8
- require('../chunk-SF63XAX7.js');
7
+ var _chunkP6CDRJN3js = require('../chunk-P6CDRJN3.js');
8
+ require('../chunk-IT5ICP43.js');
9
9
  require('../chunk-HOY77YBF.js');
10
10
  require('../chunk-EGTDJ4PL.js');
11
11
  require('../chunk-DGUM43GV.js');
@@ -13,5 +13,5 @@ require('../chunk-DGUM43GV.js');
13
13
 
14
14
 
15
15
 
16
- exports.Block = _chunk5R4NMVXAjs.Block; exports.Layout = _chunkINWKF3ICjs.Layout; exports.Page = _chunkINWKF3ICjs.Page;
16
+ exports.Block = _chunkBUCJWG6Gjs.Block; exports.Layout = _chunkP6CDRJN3js.Layout; exports.Page = _chunkP6CDRJN3js.Page;
17
17
  //# sourceMappingURL=server.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  Block
3
- } from "../chunk-PN3CHDVX.mjs";
3
+ } from "../chunk-XK2YIISA.mjs";
4
4
  import {
5
5
  Layout,
6
6
  Page
7
- } from "../chunk-FK64TZBT.mjs";
8
- import "../chunk-O5DC7MYW.mjs";
7
+ } from "../chunk-SFQ7VF3G.mjs";
8
+ import "../chunk-NKXS4TBK.mjs";
9
9
  import "../chunk-7DS4Q3GA.mjs";
10
10
  import "../chunk-USQF2XTU.mjs";
11
11
  import "../chunk-BJTO5JO5.mjs";
@@ -1,16 +1,17 @@
1
- export { e as BlockOverrideComponent, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, d as RouteMap, S as SystemBlockComponentProps, T as ThemeTokens, l as loadPage } from './loadPage-en10WQrt.mjs';
2
- export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-CsAQ-0Fv.mjs';
1
+ export { e as BlockOverrideComponent, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, d as RouteMap, S as SystemBlockComponentProps, T as ThemeTokens, l as loadPage } from './loadPage-mavT3Jae.mjs';
2
+ export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-B_zUr9ci.mjs';
3
3
  export { Block, BlockProps } from './rendering/server.mjs';
4
- export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-v2n6pOlO.mjs';
5
- export { C as CustomLinkValue, E as ExternalLinkValue, I as InternalLinkValue, d as LinkValue, c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-nVerjjdv.mjs';
4
+ export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-C_FipaAC.mjs';
5
+ export { C as CustomLinkValue, E as ExternalLinkValue, I as InternalLinkValue, d as LinkValue, c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-BA-J9K8r.mjs';
6
6
  export { P as PageOutline } from './schema-Bpy9N5ZI.mjs';
7
- import { G as GradientConfig, M as Media } from './components-CI3JiOYA.mjs';
8
- export { e as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, f as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, S as SectionBackground, g as SectionBackgroundProps, T as TipTapNode, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-CI3JiOYA.mjs';
9
- import './types-CLusapsM.mjs';
7
+ import { G as GradientConfig, M as Media } from './components-Bo3LPpVb.mjs';
8
+ export { e as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, f as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, S as SectionBackground, g as SectionBackgroundProps, T as TipTapNode, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-Bo3LPpVb.mjs';
9
+ import './types-BC9eB2KH.mjs';
10
10
  import 'react/jsx-runtime';
11
11
  import 'react';
12
12
  import 'zod';
13
- import './types-_nDnPHpv.mjs';
13
+ import './types-CbagRQ_7.mjs';
14
+ import './blockKinds-B6MWzNWp.mjs';
14
15
  import '@riverbankcms/site-renderer';
15
16
  import '@riverbankcms/ai';
16
17
  import '@riverbankcms/media-storage-supabase';
@@ -1,16 +1,17 @@
1
- export { e as BlockOverrideComponent, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, d as RouteMap, S as SystemBlockComponentProps, T as ThemeTokens, l as loadPage } from './loadPage-bejlajm9.js';
2
- export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-BM_KmCxO.js';
1
+ export { e as BlockOverrideComponent, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, d as RouteMap, S as SystemBlockComponentProps, T as ThemeTokens, l as loadPage } from './loadPage-naVvoua8.js';
2
+ export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-CHG77dhK.js';
3
3
  export { Block, BlockProps } from './rendering/server.js';
4
- export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-CdXDGsJM.js';
5
- export { C as CustomLinkValue, E as ExternalLinkValue, I as InternalLinkValue, d as LinkValue, c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-Cc7lyPkN.js';
4
+ export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-C2SwqmXy.js';
5
+ export { C as CustomLinkValue, E as ExternalLinkValue, I as InternalLinkValue, d as LinkValue, c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-5XdVD2J1.js';
6
6
  export { P as PageOutline } from './schema-Bpy9N5ZI.js';
7
- import { G as GradientConfig, M as Media } from './components-DJBLu_yc.js';
8
- export { e as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, f as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, S as SectionBackground, g as SectionBackgroundProps, T as TipTapNode, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-DJBLu_yc.js';
9
- import './types-Ls6BkLKg.js';
7
+ import { G as GradientConfig, M as Media } from './components-ClFs4PUa.js';
8
+ export { e as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, f as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, S as SectionBackground, g as SectionBackgroundProps, T as TipTapNode, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-ClFs4PUa.js';
9
+ import './types-CAnC529E.js';
10
10
  import 'react/jsx-runtime';
11
11
  import 'react';
12
12
  import 'zod';
13
- import './types-_nDnPHpv.js';
13
+ import './types-DuQCNVV0.js';
14
+ import './blockKinds-B6MWzNWp.js';
14
15
  import '@riverbankcms/site-renderer';
15
16
  import '@riverbankcms/ai';
16
17
  import '@riverbankcms/media-storage-supabase';
@@ -5,14 +5,14 @@
5
5
  var _chunkTO7FD6TQjs = require('./chunk-TO7FD6TQ.js');
6
6
 
7
7
 
8
- var _chunk62ZJI564js = require('./chunk-62ZJI564.js');
8
+ var _chunkSWPHIUVEjs = require('./chunk-SWPHIUVE.js');
9
9
 
10
10
 
11
- var _chunk5R4NMVXAjs = require('./chunk-5R4NMVXA.js');
11
+ var _chunkBUCJWG6Gjs = require('./chunk-BUCJWG6G.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkINWKF3ICjs = require('./chunk-INWKF3IC.js');
15
+ var _chunkP6CDRJN3js = require('./chunk-P6CDRJN3.js');
16
16
 
17
17
 
18
18
 
@@ -20,8 +20,8 @@ var _chunkINWKF3ICjs = require('./chunk-INWKF3IC.js');
20
20
 
21
21
 
22
22
 
23
- var _chunkSF63XAX7js = require('./chunk-SF63XAX7.js');
24
- require('./chunk-YXDDFG3N.js');
23
+ var _chunkIT5ICP43js = require('./chunk-IT5ICP43.js');
24
+ require('./chunk-Y7347JMZ.js');
25
25
  require('./chunk-HOY77YBF.js');
26
26
  require('./chunk-EGTDJ4PL.js');
27
27
  require('./chunk-DGUM43GV.js');
@@ -39,5 +39,5 @@ require('./chunk-DGUM43GV.js');
39
39
 
40
40
 
41
41
 
42
- exports.Block = _chunk5R4NMVXAjs.Block; exports.Layout = _chunkINWKF3ICjs.Layout; exports.Page = _chunkINWKF3ICjs.Page; exports.PageRenderer = _chunkSF63XAX7js.PageRenderer; exports.RichText = _chunkSF63XAX7js.RichText; exports.SectionBackground = _chunkSF63XAX7js.SectionBackground; exports.buildThemeRuntime = _chunkSF63XAX7js.buildThemeRuntime; exports.isEntryContent = _chunkTO7FD6TQjs.isEntryContent; exports.isPageContent = _chunkTO7FD6TQjs.isPageContent; exports.loadContent = _chunkTO7FD6TQjs.loadContent; exports.loadPage = _chunk62ZJI564js.loadPage; exports.resolveBackground = _chunkSF63XAX7js.resolveBackground; exports.resolveImageUrl = _chunkSF63XAX7js.resolveImageUrl;
42
+ exports.Block = _chunkBUCJWG6Gjs.Block; exports.Layout = _chunkP6CDRJN3js.Layout; exports.Page = _chunkP6CDRJN3js.Page; exports.PageRenderer = _chunkIT5ICP43js.PageRenderer; exports.RichText = _chunkIT5ICP43js.RichText; exports.SectionBackground = _chunkIT5ICP43js.SectionBackground; exports.buildThemeRuntime = _chunkIT5ICP43js.buildThemeRuntime; exports.isEntryContent = _chunkTO7FD6TQjs.isEntryContent; exports.isPageContent = _chunkTO7FD6TQjs.isPageContent; exports.loadContent = _chunkTO7FD6TQjs.loadContent; exports.loadPage = _chunkSWPHIUVEjs.loadPage; exports.resolveBackground = _chunkIT5ICP43js.resolveBackground; exports.resolveImageUrl = _chunkIT5ICP43js.resolveImageUrl;
43
43
  //# sourceMappingURL=rendering.js.map
@@ -5,14 +5,14 @@ import {
5
5
  } from "./chunk-OP2GHK27.mjs";
6
6
  import {
7
7
  loadPage
8
- } from "./chunk-JTAERCX2.mjs";
8
+ } from "./chunk-ZEAJW6T3.mjs";
9
9
  import {
10
10
  Block
11
- } from "./chunk-PN3CHDVX.mjs";
11
+ } from "./chunk-XK2YIISA.mjs";
12
12
  import {
13
13
  Layout,
14
14
  Page
15
- } from "./chunk-FK64TZBT.mjs";
15
+ } from "./chunk-SFQ7VF3G.mjs";
16
16
  import {
17
17
  PageRenderer,
18
18
  RichText,
@@ -20,8 +20,8 @@ import {
20
20
  buildThemeRuntime,
21
21
  resolveBackground,
22
22
  resolveImageUrl
23
- } from "./chunk-O5DC7MYW.mjs";
24
- import "./chunk-GWBMJPLH.mjs";
23
+ } from "./chunk-NKXS4TBK.mjs";
24
+ import "./chunk-A2FZMRDW.mjs";
25
25
  import "./chunk-7DS4Q3GA.mjs";
26
26
  import "./chunk-USQF2XTU.mjs";
27
27
  import "./chunk-BJTO5JO5.mjs";
@@ -1,6 +1,6 @@
1
- import { R as RiverbankClient } from './types-CLusapsM.mjs';
2
- import { a as LoadPageResult } from './loadPage-en10WQrt.mjs';
3
- import './types-nVerjjdv.mjs';
1
+ import { R as RiverbankClient } from './types-BC9eB2KH.mjs';
2
+ import { a as LoadPageResult } from './loadPage-mavT3Jae.mjs';
3
+ import './types-BA-J9K8r.mjs';
4
4
  import '@riverbankcms/ai';
5
5
  import './schema-Bpy9N5ZI.mjs';
6
6
  import 'zod';
@@ -8,7 +8,8 @@ import '@riverbankcms/media-storage-supabase';
8
8
  import '@riverbankcms/db';
9
9
  import 'react/jsx-runtime';
10
10
  import 'react';
11
- import './types-_nDnPHpv.mjs';
11
+ import './types-CbagRQ_7.mjs';
12
+ import './blockKinds-B6MWzNWp.mjs';
12
13
 
13
14
  /**
14
15
  * Route resolution helper for dynamic page routing
@@ -1,6 +1,6 @@
1
- import { R as RiverbankClient } from './types-Ls6BkLKg.js';
2
- import { a as LoadPageResult } from './loadPage-bejlajm9.js';
3
- import './types-Cc7lyPkN.js';
1
+ import { R as RiverbankClient } from './types-CAnC529E.js';
2
+ import { a as LoadPageResult } from './loadPage-naVvoua8.js';
3
+ import './types-5XdVD2J1.js';
4
4
  import '@riverbankcms/ai';
5
5
  import './schema-Bpy9N5ZI.js';
6
6
  import 'zod';
@@ -8,7 +8,8 @@ import '@riverbankcms/media-storage-supabase';
8
8
  import '@riverbankcms/db';
9
9
  import 'react/jsx-runtime';
10
10
  import 'react';
11
- import './types-_nDnPHpv.js';
11
+ import './types-DuQCNVV0.js';
12
+ import './blockKinds-B6MWzNWp.js';
12
13
 
13
14
  /**
14
15
  * Route resolution helper for dynamic page routing
@@ -10,7 +10,7 @@ async function resolveRoute(params) {
10
10
  preview
11
11
  });
12
12
  if (pageResponse) {
13
- const { loadPage } = await Promise.resolve().then(() => _interopRequireWildcard(require("./loadPage-3ECPF426.js")));
13
+ const { loadPage } = await Promise.resolve().then(() => _interopRequireWildcard(require("./loadPage-DUHBXDEW.js")));
14
14
  const pageData = await loadPage({
15
15
  client,
16
16
  siteId,
@@ -10,7 +10,7 @@ async function resolveRoute(params) {
10
10
  preview
11
11
  });
12
12
  if (pageResponse) {
13
- const { loadPage } = await import("./loadPage-LW273NYO.mjs");
13
+ const { loadPage } = await import("./loadPage-LYVKY3WZ.mjs");
14
14
  const pageData = await loadPage({
15
15
  client,
16
16
  siteId,
@@ -1,8 +1,8 @@
1
- export { c as createRiverbankClient } from './index-DoX3ELQn.mjs';
2
- export { E as EntriesResponse, b as EntryResponse, P as PageResponse, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-CLusapsM.mjs';
3
- export { L as LoadPageParams, a as LoadPageResult, R as RuntimeSdkConfig, l as loadPage } from './loadPage-en10WQrt.mjs';
4
- export { C as ContentEntryData, E as EntryContentResult, L as LoadContentParams, b as LoadContentResult, P as PageContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-v2n6pOlO.mjs';
5
- import './types-nVerjjdv.mjs';
1
+ export { c as createRiverbankClient } from './index-Dj7VKH34.mjs';
2
+ export { E as EntriesResponse, b as EntryResponse, P as PageResponse, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-BC9eB2KH.mjs';
3
+ export { L as LoadPageParams, a as LoadPageResult, R as RuntimeSdkConfig, l as loadPage } from './loadPage-mavT3Jae.mjs';
4
+ export { C as ContentEntryData, E as EntryContentResult, L as LoadContentParams, b as LoadContentResult, P as PageContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-C_FipaAC.mjs';
5
+ import './types-BA-J9K8r.mjs';
6
6
  import '@riverbankcms/ai';
7
7
  import './schema-Bpy9N5ZI.mjs';
8
8
  import 'zod';
@@ -10,4 +10,5 @@ import '@riverbankcms/media-storage-supabase';
10
10
  import '@riverbankcms/db';
11
11
  import 'react/jsx-runtime';
12
12
  import 'react';
13
- import './types-_nDnPHpv.mjs';
13
+ import './types-CbagRQ_7.mjs';
14
+ import './blockKinds-B6MWzNWp.mjs';
@@ -1,8 +1,8 @@
1
- export { c as createRiverbankClient } from './index-Dus2gkY6.js';
2
- export { E as EntriesResponse, b as EntryResponse, P as PageResponse, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-Ls6BkLKg.js';
3
- export { L as LoadPageParams, a as LoadPageResult, R as RuntimeSdkConfig, l as loadPage } from './loadPage-bejlajm9.js';
4
- export { C as ContentEntryData, E as EntryContentResult, L as LoadContentParams, b as LoadContentResult, P as PageContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-CdXDGsJM.js';
5
- import './types-Cc7lyPkN.js';
1
+ export { c as createRiverbankClient } from './index-DbSfrRA0.js';
2
+ export { E as EntriesResponse, b as EntryResponse, P as PageResponse, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-CAnC529E.js';
3
+ export { L as LoadPageParams, a as LoadPageResult, R as RuntimeSdkConfig, l as loadPage } from './loadPage-naVvoua8.js';
4
+ export { C as ContentEntryData, E as EntryContentResult, L as LoadContentParams, b as LoadContentResult, P as PageContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-C2SwqmXy.js';
5
+ import './types-5XdVD2J1.js';
6
6
  import '@riverbankcms/ai';
7
7
  import './schema-Bpy9N5ZI.js';
8
8
  import 'zod';
@@ -10,4 +10,5 @@ import '@riverbankcms/media-storage-supabase';
10
10
  import '@riverbankcms/db';
11
11
  import 'react/jsx-runtime';
12
12
  import 'react';
13
- import './types-_nDnPHpv.js';
13
+ import './types-DuQCNVV0.js';
14
+ import './blockKinds-B6MWzNWp.js';
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUFVCBGBYjs = require('./chunk-UFVCBGBY.js');
3
+ var _chunkR5B6IOFQjs = require('./chunk-R5B6IOFQ.js');
4
4
 
5
5
 
6
6
 
@@ -8,8 +8,8 @@ var _chunkUFVCBGBYjs = require('./chunk-UFVCBGBY.js');
8
8
  var _chunkTO7FD6TQjs = require('./chunk-TO7FD6TQ.js');
9
9
 
10
10
 
11
- var _chunk62ZJI564js = require('./chunk-62ZJI564.js');
12
- require('./chunk-YXDDFG3N.js');
11
+ var _chunkSWPHIUVEjs = require('./chunk-SWPHIUVE.js');
12
+ require('./chunk-Y7347JMZ.js');
13
13
  require('./chunk-HOY77YBF.js');
14
14
  require('./chunk-EGTDJ4PL.js');
15
15
  require('./chunk-DGUM43GV.js');
@@ -19,5 +19,5 @@ require('./chunk-DGUM43GV.js');
19
19
 
20
20
 
21
21
 
22
- exports.createRiverbankClient = _chunkUFVCBGBYjs.createRiverbankClient; exports.isEntryContent = _chunkTO7FD6TQjs.isEntryContent; exports.isPageContent = _chunkTO7FD6TQjs.isPageContent; exports.loadContent = _chunkTO7FD6TQjs.loadContent; exports.loadPage = _chunk62ZJI564js.loadPage;
22
+ exports.createRiverbankClient = _chunkR5B6IOFQjs.createRiverbankClient; exports.isEntryContent = _chunkTO7FD6TQjs.isEntryContent; exports.isPageContent = _chunkTO7FD6TQjs.isPageContent; exports.loadContent = _chunkTO7FD6TQjs.loadContent; exports.loadPage = _chunkSWPHIUVEjs.loadPage;
23
23
  //# sourceMappingURL=server.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createRiverbankClient
3
- } from "./chunk-QFFQTOY3.mjs";
3
+ } from "./chunk-N3PX76AP.mjs";
4
4
  import {
5
5
  isEntryContent,
6
6
  isPageContent,
@@ -8,8 +8,8 @@ import {
8
8
  } from "./chunk-OP2GHK27.mjs";
9
9
  import {
10
10
  loadPage
11
- } from "./chunk-JTAERCX2.mjs";
12
- import "./chunk-GWBMJPLH.mjs";
11
+ } from "./chunk-ZEAJW6T3.mjs";
12
+ import "./chunk-A2FZMRDW.mjs";
13
13
  import "./chunk-7DS4Q3GA.mjs";
14
14
  import "./chunk-USQF2XTU.mjs";
15
15
  import "./chunk-BJTO5JO5.mjs";
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkSF63XAX7js = require('./chunk-SF63XAX7.js');
8
+ var _chunkIT5ICP43js = require('./chunk-IT5ICP43.js');
9
9
  require('./chunk-EGTDJ4PL.js');
10
10
  require('./chunk-DGUM43GV.js');
11
11
 
@@ -147,7 +147,7 @@ ${cssLines}
147
147
  }
148
148
  function generateButtonsCss(config, corners, shadows) {
149
149
  const buttonConfig = _optionalChain([config, 'access', _7 => _7.components, 'optionalAccess', _8 => _8.buttons]);
150
- let variants = _chunkSF63XAX7js.getDefaultButtonVariants.call(void 0, );
150
+ let variants = _chunkIT5ICP43js.getDefaultButtonVariants.call(void 0, );
151
151
  if (typeof buttonConfig === "object" && buttonConfig.variants) {
152
152
  const requestedIds = new Set(buttonConfig.variants);
153
153
  variants = variants.filter((v) => requestedIds.has(v.id));
@@ -159,11 +159,11 @@ function generateButtonsCss(config, corners, shadows) {
159
159
  fontWeight: 500,
160
160
  textTransform: "none"
161
161
  };
162
- return _chunkSF63XAX7js.generateButtonCoreCss.call(void 0, SCOPE_ID, variants, settings);
162
+ return _chunkIT5ICP43js.generateButtonCoreCss.call(void 0, SCOPE_ID, variants, settings);
163
163
  }
164
164
  function generateCardsCss(config, corners, shadows) {
165
165
  const cardConfig = _optionalChain([config, 'access', _9 => _9.components, 'optionalAccess', _10 => _10.cards]);
166
- let variants = _chunkSF63XAX7js.getDefaultCardVariants.call(void 0, );
166
+ let variants = _chunkIT5ICP43js.getDefaultCardVariants.call(void 0, );
167
167
  if (typeof cardConfig === "object" && cardConfig.variants) {
168
168
  const requestedIds = new Set(cardConfig.variants);
169
169
  variants = variants.filter((v) => requestedIds.has(v.id));
@@ -173,13 +173,13 @@ function generateCardsCss(config, corners, shadows) {
173
173
  shadow: shadows,
174
174
  borderWidth: "thin"
175
175
  };
176
- return _chunkSF63XAX7js.generateCardCoreCss.call(void 0, SCOPE_ID, variants, settings);
176
+ return _chunkIT5ICP43js.generateCardCoreCss.call(void 0, SCOPE_ID, variants, settings);
177
177
  }
178
178
  function generateInputsCss(config, corners, shadows) {
179
- const settings = _chunkSF63XAX7js.getDefaultInputSettings.call(void 0, );
179
+ const settings = _chunkIT5ICP43js.getDefaultInputSettings.call(void 0, );
180
180
  settings.corners = corners;
181
181
  settings.shadow = shadows === "none" ? "none" : "low";
182
- return _chunkSF63XAX7js.generateInputCoreCss.call(void 0, SCOPE_ID, settings);
182
+ return _chunkIT5ICP43js.generateInputCoreCss.call(void 0, SCOPE_ID, settings);
183
183
  }
184
184
  function generateOverrideCss(overrides) {
185
185
  const chunks = [];
@@ -5,7 +5,7 @@ import {
5
5
  getDefaultButtonVariants,
6
6
  getDefaultCardVariants,
7
7
  getDefaultInputSettings
8
- } from "./chunk-O5DC7MYW.mjs";
8
+ } from "./chunk-NKXS4TBK.mjs";
9
9
  import "./chunk-USQF2XTU.mjs";
10
10
  import "./chunk-BJTO5JO5.mjs";
11
11
 
@@ -3833,6 +3833,7 @@ type ApiKeyRecord = {
3833
3833
  id: string;
3834
3834
  name: string;
3835
3835
  keyPrefix: string;
3836
+ keyHint: string | null;
3836
3837
  keyType: ApiKeyType;
3837
3838
  createdAt: string;
3838
3839
  lastUsedAt: string | null;
@@ -3847,6 +3848,7 @@ type PreviewKeyRecord = {
3847
3848
  id: string;
3848
3849
  name: string;
3849
3850
  keyPrefix: string;
3851
+ keyHint: string | null;
3850
3852
  createdAt: string;
3851
3853
  lastUsedAt: string | null;
3852
3854
  };
@@ -3833,6 +3833,7 @@ type ApiKeyRecord = {
3833
3833
  id: string;
3834
3834
  name: string;
3835
3835
  keyPrefix: string;
3836
+ keyHint: string | null;
3836
3837
  keyType: ApiKeyType;
3837
3838
  createdAt: string;
3838
3839
  lastUsedAt: string | null;
@@ -3847,6 +3848,7 @@ type PreviewKeyRecord = {
3847
3848
  id: string;
3848
3849
  name: string;
3849
3850
  keyPrefix: string;
3851
+ keyHint: string | null;
3850
3852
  createdAt: string;
3851
3853
  lastUsedAt: string | null;
3852
3854
  };
@@ -1,4 +1,4 @@
1
- import { A as APIEndpoints } from './types-nVerjjdv.mjs';
1
+ import { A as APIEndpoints } from './types-BA-J9K8r.mjs';
2
2
 
3
3
  type SiteResponse = NonNullable<APIEndpoints['getSite']['response']>;
4
4
  type PageResponse = NonNullable<APIEndpoints['getContentByPath']['response']>;
@@ -7,6 +7,50 @@ type EntryResponse = NonNullable<APIEndpoints['getPublishedEntryPreview']['respo
7
7
  type PublicFormResponse = NonNullable<APIEndpoints['getPublicFormById']['response']>;
8
8
  type PublicBookingServicesResponse = NonNullable<APIEndpoints['getPublicBookingServices']['response']>;
9
9
  type PublicEventsResponse = NonNullable<APIEndpoints['listPublicEvents']['response']>;
10
+ /**
11
+ * Pagination metadata returned when `includeMeta: true`
12
+ */
13
+ interface PaginationMeta {
14
+ /** Total number of entries matching the query (estimated if hasMore is true) */
15
+ total: number;
16
+ /** Whether there are more entries after this page */
17
+ hasMore: boolean;
18
+ /** Number of entries per page */
19
+ limit: number;
20
+ /** Number of entries skipped (offset) */
21
+ offset: number;
22
+ /** Total number of pages (estimated if hasMore is true) */
23
+ totalPages: number;
24
+ /** Current page number (1-indexed) */
25
+ currentPage: number;
26
+ }
27
+ /**
28
+ * Response type when includeMeta is true - includes pagination metadata
29
+ */
30
+ type EntriesResponseWithMeta = {
31
+ entries: EntriesResponse['entries'];
32
+ } & PaginationMeta;
33
+ /**
34
+ * Base parameters for getEntries - shared across all overloads
35
+ */
36
+ interface GetEntriesBaseParams {
37
+ /** The site ID */
38
+ siteId: string;
39
+ /** The content type key (e.g., 'blog-post', 'product') */
40
+ contentType: string;
41
+ /** Maximum number of entries to return (default: 10, max: 50) */
42
+ limit?: number;
43
+ /** Number of entries to skip for pagination */
44
+ offset?: number;
45
+ /** Sort order for entries. 'order' uses custom ordering (default behavior). */
46
+ order?: 'newest' | 'oldest' | 'title' | 'order';
47
+ /** If true, includes draft entries (requires API key with site access) */
48
+ preview?: boolean;
49
+ /** Selection mode: 'query' for automatic, 'manual' for specific entry IDs */
50
+ mode?: 'query' | 'manual';
51
+ /** Entry IDs to fetch when mode is 'manual' */
52
+ entryIds?: string[];
53
+ }
10
54
  /**
11
55
  * Configuration for creating a Riverbank CMS client
12
56
  */
@@ -66,11 +110,13 @@ interface RiverbankClient {
66
110
  *
67
111
  * @param params.siteId - The site ID
68
112
  * @param params.contentType - The content type key (e.g., 'blog-post', 'product')
69
- * @param params.limit - Maximum number of entries to return
113
+ * @param params.limit - Maximum number of entries to return (default: 10, max: 50)
114
+ * @param params.offset - Number of entries to skip for pagination (default: 0)
70
115
  * @param params.order - Sort order: 'newest' (published_at desc) or 'oldest' (published_at asc)
71
116
  * @param params.preview - If true, includes draft entries (requires API key with site access)
72
117
  * @param params.mode - 'query' for automatic fetching, 'manual' for specific entry IDs
73
118
  * @param params.entryIds - Array of entry IDs to fetch (only used when mode is 'manual')
119
+ * @param params.includeMeta - If true, returns pagination metadata with the response
74
120
  *
75
121
  * @example
76
122
  * ```ts
@@ -82,12 +128,15 @@ interface RiverbankClient {
82
128
  * order: 'newest',
83
129
  * });
84
130
  *
85
- * // Fetch draft entries for preview
86
- * const drafts = await client.getEntries({
131
+ * // Fetch page 3 with pagination metadata
132
+ * const page3 = await client.getEntries({
87
133
  * siteId: 'site-id',
88
134
  * contentType: 'blog-post',
89
- * preview: true,
135
+ * limit: 10,
136
+ * offset: 20,
137
+ * includeMeta: true,
90
138
  * });
139
+ * // page3.entries, page3.total, page3.hasMore, page3.currentPage
91
140
  *
92
141
  * // Fetch specific entries by ID (manual mode)
93
142
  * const specific = await client.getEntries({
@@ -98,18 +147,17 @@ interface RiverbankClient {
98
147
  * });
99
148
  * ```
100
149
  */
101
- getEntries(params: {
102
- siteId: string;
103
- contentType: string;
104
- limit?: number;
105
- /** Sort order for entries. 'order' uses custom ordering (default behavior). */
106
- order?: 'newest' | 'oldest' | 'title' | 'order';
107
- preview?: boolean;
108
- /** Selection mode: 'query' for automatic, 'manual' for specific entry IDs */
109
- mode?: 'query' | 'manual';
110
- /** Entry IDs to fetch when mode is 'manual' */
111
- entryIds?: string[];
150
+ getEntries(params: GetEntriesBaseParams & {
151
+ /** If true, returns pagination metadata with the response */
152
+ includeMeta?: false;
112
153
  }): Promise<EntriesResponse>;
154
+ getEntries(params: GetEntriesBaseParams & {
155
+ /** If true, returns pagination metadata with the response */
156
+ includeMeta: true;
157
+ }): Promise<EntriesResponseWithMeta>;
158
+ getEntries(params: GetEntriesBaseParams & {
159
+ includeMeta?: boolean;
160
+ }): Promise<EntriesResponse | EntriesResponseWithMeta>;
113
161
  /**
114
162
  * Fetch a specific content entry by slug
115
163
  */
@@ -147,4 +195,4 @@ interface RiverbankClient {
147
195
  clearCache(): void;
148
196
  }
149
197
 
150
- export type { EntriesResponse as E, PageResponse as P, RiverbankClient as R, SiteResponse as S, RiverbankClientConfig as a, EntryResponse as b };
198
+ export type { EntriesResponse as E, PageResponse as P, RiverbankClient as R, SiteResponse as S, RiverbankClientConfig as a, EntryResponse as b, EntriesResponseWithMeta as c, PaginationMeta as d };