@riverbankcms/sdk 0.4.3 → 0.5.0

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 (176) hide show
  1. package/README.md +84 -0
  2. package/dist/cli/index.js +3104 -120
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/client/analytics.js +1 -1
  5. package/dist/client/analytics.js.map +1 -1
  6. package/dist/client/analytics.mjs +1 -1
  7. package/dist/client/analytics.mjs.map +1 -1
  8. package/dist/client/bookings.js +6 -6
  9. package/dist/client/bookings.js.map +1 -1
  10. package/dist/client/bookings.mjs +6 -6
  11. package/dist/client/bookings.mjs.map +1 -1
  12. package/dist/client/client.d.mts +2 -2
  13. package/dist/client/client.d.ts +2 -2
  14. package/dist/client/client.js +1357 -519
  15. package/dist/client/client.js.map +1 -1
  16. package/dist/client/client.mjs +1357 -519
  17. package/dist/client/client.mjs.map +1 -1
  18. package/dist/client/hooks.d.mts +2 -2
  19. package/dist/client/hooks.d.ts +2 -2
  20. package/dist/client/hooks.js +26 -11
  21. package/dist/client/hooks.js.map +1 -1
  22. package/dist/client/hooks.mjs +26 -11
  23. package/dist/client/hooks.mjs.map +1 -1
  24. package/dist/client/rendering/client.js +20 -14
  25. package/dist/client/rendering/client.js.map +1 -1
  26. package/dist/client/rendering/client.mjs +20 -14
  27. package/dist/client/rendering/client.mjs.map +1 -1
  28. package/dist/client/usePage-BTPnCuWC.d.mts +6511 -0
  29. package/dist/client/usePage-BafOS9UT.d.mts +6512 -0
  30. package/dist/client/usePage-Bnx-kA6x.d.mts +6670 -0
  31. package/dist/client/usePage-DoPI6b8V.d.ts +6511 -0
  32. package/dist/client/usePage-QNWArrVO.d.ts +6670 -0
  33. package/dist/client/usePage-fBgPB6Oq.d.ts +6512 -0
  34. package/dist/server/{Layout-CXI_VkhN.d.ts → Layout-B-q2Py4v.d.ts} +4 -4
  35. package/dist/server/{Layout-p6f3TLw9.d.mts → Layout-Cc5HUXAH.d.mts} +4 -4
  36. package/dist/server/{chunk-6JBKKV3G.js → chunk-2KCF2DNK.js} +30 -10
  37. package/dist/server/chunk-2KCF2DNK.js.map +1 -0
  38. package/dist/server/{chunk-N3PX76AP.mjs → chunk-4HIRA33Z.mjs} +247 -135
  39. package/dist/server/chunk-4HIRA33Z.mjs.map +1 -0
  40. package/dist/server/chunk-5STV4MWD.js +189 -0
  41. package/dist/server/chunk-5STV4MWD.js.map +1 -0
  42. package/dist/server/{chunk-R5B6IOFQ.js → chunk-6OSNCH4F.js} +247 -135
  43. package/dist/server/chunk-6OSNCH4F.js.map +1 -0
  44. package/dist/server/{chunk-VHDDXCK6.js → chunk-7UPVCT3K.js} +1206 -496
  45. package/dist/server/chunk-7UPVCT3K.js.map +1 -0
  46. package/dist/server/{chunk-7DS4Q3GA.mjs → chunk-AEFWG657.mjs} +3 -3
  47. package/dist/server/chunk-AEFWG657.mjs.map +1 -0
  48. package/dist/server/{chunk-USQF2XTU.mjs → chunk-BYBJA6SP.mjs} +26 -11
  49. package/dist/server/chunk-BYBJA6SP.mjs.map +1 -0
  50. package/dist/server/{chunk-ES6QDZUX.mjs → chunk-C6FIJC7T.mjs} +2 -2
  51. package/dist/server/{chunk-TO7FD6TQ.js → chunk-I2D7KOEA.js} +4 -4
  52. package/dist/server/{chunk-TO7FD6TQ.js.map → chunk-I2D7KOEA.js.map} +1 -1
  53. package/dist/server/chunk-KFLZGNPO.mjs +189 -0
  54. package/dist/server/chunk-KFLZGNPO.mjs.map +1 -0
  55. package/dist/server/chunk-L5EA4FXU.mjs +134 -0
  56. package/dist/server/chunk-L5EA4FXU.mjs.map +1 -0
  57. package/dist/server/{chunk-U2NI3TS3.mjs → chunk-LNOUXALA.mjs} +1135 -425
  58. package/dist/server/chunk-LNOUXALA.mjs.map +1 -0
  59. package/dist/server/{chunk-24F6FTCI.mjs → chunk-OSF34JTQ.mjs} +4 -4
  60. package/dist/server/{chunk-G35R7N7B.js → chunk-P3NNN73G.js} +3 -3
  61. package/dist/server/{chunk-G35R7N7B.js.map → chunk-P3NNN73G.js.map} +1 -1
  62. package/dist/server/{chunk-I6K5REFT.mjs → chunk-P4K63SBZ.mjs} +24 -4
  63. package/dist/server/chunk-P4K63SBZ.mjs.map +1 -0
  64. package/dist/server/{chunk-HOY77YBF.js → chunk-RVDS7VSP.js} +5 -5
  65. package/dist/server/chunk-RVDS7VSP.js.map +1 -0
  66. package/dist/server/{chunk-2SSEBAHC.js → chunk-TT5JWA4X.js} +9 -9
  67. package/dist/server/{chunk-2SSEBAHC.js.map → chunk-TT5JWA4X.js.map} +1 -1
  68. package/dist/server/chunk-VSFQRHYZ.js +134 -0
  69. package/dist/server/chunk-VSFQRHYZ.js.map +1 -0
  70. package/dist/server/{chunk-EGTDJ4PL.js → chunk-YYO3RIFO.js} +26 -11
  71. package/dist/server/chunk-YYO3RIFO.js.map +1 -0
  72. package/dist/server/{chunk-OP2GHK27.mjs → chunk-Z5ZA6Q4D.mjs} +2 -2
  73. package/dist/server/{components-Dhiemsjd.d.ts → components-CU46ZkAv.d.mts} +20 -75
  74. package/dist/server/{components-C75e4poV.d.mts → components-DvozDwRN.d.ts} +20 -75
  75. package/dist/server/components.d.mts +11 -8
  76. package/dist/server/components.d.ts +11 -8
  77. package/dist/server/components.js +5 -4
  78. package/dist/server/components.js.map +1 -1
  79. package/dist/server/components.mjs +4 -3
  80. package/dist/server/config-validation.d.mts +3 -3
  81. package/dist/server/config-validation.d.ts +3 -3
  82. package/dist/server/config-validation.js +9 -5
  83. package/dist/server/config-validation.js.map +1 -1
  84. package/dist/server/config-validation.mjs +8 -4
  85. package/dist/server/config.d.mts +243 -5
  86. package/dist/server/config.d.ts +243 -5
  87. package/dist/server/config.js +72 -5
  88. package/dist/server/config.js.map +1 -1
  89. package/dist/server/config.mjs +72 -5
  90. package/dist/server/config.mjs.map +1 -1
  91. package/dist/server/core-DsNWrl3o.d.mts +44 -0
  92. package/dist/server/core-DsNWrl3o.d.ts +44 -0
  93. package/dist/server/data.d.mts +4 -3
  94. package/dist/server/data.d.ts +4 -3
  95. package/dist/server/data.js +3 -3
  96. package/dist/server/data.mjs +2 -2
  97. package/dist/server/{index-C6o9LPvq.d.mts → index-CJfMXZQr.d.ts} +2 -1
  98. package/dist/server/{index-CAwBj3-A.d.ts → index-Q7RLMAQ6.d.mts} +2 -1
  99. package/dist/server/index.d.mts +63 -6
  100. package/dist/server/index.d.ts +63 -6
  101. package/dist/server/index.js +91 -2
  102. package/dist/server/index.js.map +1 -1
  103. package/dist/server/index.mjs +90 -1
  104. package/dist/server/index.mjs.map +1 -1
  105. package/dist/server/link-DjxLyC82.d.mts +23 -0
  106. package/dist/server/link-DjxLyC82.d.ts +23 -0
  107. package/dist/server/{loadContent-CdXfuCuE.d.mts → loadContent-DgpSKWqY.d.mts} +4 -4
  108. package/dist/server/{loadContent-CsvQRoxb.d.ts → loadContent-GPvUI1bN.d.ts} +4 -4
  109. package/dist/server/{loadPage-p3AWwwrd.d.mts → loadPage-DGnIK7s4.d.mts} +5 -46
  110. package/dist/server/loadPage-DNQTTRHL.mjs +11 -0
  111. package/dist/server/{loadPage-BA0HiT-6.d.ts → loadPage-DW9WB-u9.d.ts} +5 -46
  112. package/dist/server/loadPage-IDGVDFBB.js +11 -0
  113. package/dist/server/{loadPage-DLC7DJZP.js.map → loadPage-IDGVDFBB.js.map} +1 -1
  114. package/dist/server/metadata.d.mts +6 -4
  115. package/dist/server/metadata.d.ts +6 -4
  116. package/dist/server/navigation.d.mts +199 -29
  117. package/dist/server/navigation.d.ts +199 -29
  118. package/dist/server/navigation.js +27 -43
  119. package/dist/server/navigation.js.map +1 -1
  120. package/dist/server/navigation.mjs +20 -36
  121. package/dist/server/navigation.mjs.map +1 -1
  122. package/dist/server/rendering/server.d.mts +8 -6
  123. package/dist/server/rendering/server.d.ts +8 -6
  124. package/dist/server/rendering/server.js +7 -6
  125. package/dist/server/rendering/server.js.map +1 -1
  126. package/dist/server/rendering/server.mjs +6 -5
  127. package/dist/server/rendering.d.mts +14 -10
  128. package/dist/server/rendering.d.ts +14 -10
  129. package/dist/server/rendering.js +9 -8
  130. package/dist/server/rendering.js.map +1 -1
  131. package/dist/server/rendering.mjs +8 -7
  132. package/dist/server/richTextSchema-DURiozvD.d.mts +62 -0
  133. package/dist/server/richTextSchema-DURiozvD.d.ts +62 -0
  134. package/dist/server/routing.d.mts +178 -11
  135. package/dist/server/routing.d.ts +178 -11
  136. package/dist/server/routing.js +95 -2
  137. package/dist/server/routing.js.map +1 -1
  138. package/dist/server/routing.mjs +94 -1
  139. package/dist/server/routing.mjs.map +1 -1
  140. package/dist/server/{schema-Bpy9N5ZI.d.mts → schema-Z6-afHJG.d.mts} +1 -1
  141. package/dist/server/{schema-Bpy9N5ZI.d.ts → schema-Z6-afHJG.d.ts} +1 -1
  142. package/dist/server/server.d.mts +9 -7
  143. package/dist/server/server.d.ts +9 -7
  144. package/dist/server/server.js +6 -6
  145. package/dist/server/server.mjs +5 -5
  146. package/dist/server/theme-bridge.js +8 -8
  147. package/dist/server/theme-bridge.mjs +2 -2
  148. package/dist/server/{types-Dj8B3QRb.d.ts → types-0f4PIlgx.d.mts} +55 -2
  149. package/dist/server/{types-txWsSxN7.d.mts → types-BjgZt8xJ.d.mts} +63 -2
  150. package/dist/server/{types-BWQ-TohG.d.ts → types-C28kMfa1.d.ts} +254 -82
  151. package/dist/server/{types-CL916r6x.d.ts → types-DLBhEPSt.d.ts} +63 -2
  152. package/dist/server/{types-BLf-hE50.d.mts → types-DuzJZKJI.d.mts} +254 -82
  153. package/dist/server/{types-CdhKJrB0.d.mts → types-kOQyCFXO.d.ts} +55 -2
  154. package/dist/server/{validation-DzvDwwRo.d.mts → validation-BGuRo8P1.d.mts} +18 -5
  155. package/dist/server/{validation-CoU8uAiu.d.ts → validation-DU2YE7u5.d.ts} +18 -5
  156. package/package.json +3 -1
  157. package/dist/server/chunk-6JBKKV3G.js.map +0 -1
  158. package/dist/server/chunk-7DS4Q3GA.mjs.map +0 -1
  159. package/dist/server/chunk-EGTDJ4PL.js.map +0 -1
  160. package/dist/server/chunk-HOY77YBF.js.map +0 -1
  161. package/dist/server/chunk-I6K5REFT.mjs.map +0 -1
  162. package/dist/server/chunk-LCYGQDAB.mjs +0 -835
  163. package/dist/server/chunk-LCYGQDAB.mjs.map +0 -1
  164. package/dist/server/chunk-N3PX76AP.mjs.map +0 -1
  165. package/dist/server/chunk-R5B6IOFQ.js.map +0 -1
  166. package/dist/server/chunk-TNYU5EIO.js +0 -835
  167. package/dist/server/chunk-TNYU5EIO.js.map +0 -1
  168. package/dist/server/chunk-U2NI3TS3.mjs.map +0 -1
  169. package/dist/server/chunk-USQF2XTU.mjs.map +0 -1
  170. package/dist/server/chunk-VHDDXCK6.js.map +0 -1
  171. package/dist/server/loadPage-DLC7DJZP.js +0 -11
  172. package/dist/server/loadPage-GEGN4UAL.mjs +0 -11
  173. /package/dist/server/{chunk-ES6QDZUX.mjs.map → chunk-C6FIJC7T.mjs.map} +0 -0
  174. /package/dist/server/{chunk-24F6FTCI.mjs.map → chunk-OSF34JTQ.mjs.map} +0 -0
  175. /package/dist/server/{chunk-OP2GHK27.mjs.map → chunk-Z5ZA6Q4D.mjs.map} +0 -0
  176. /package/dist/server/{loadPage-GEGN4UAL.mjs.map → loadPage-DNQTTRHL.mjs.map} +0 -0
@@ -1,9 +1,18 @@
1
1
  import { AIChatMessage } from '@riverbankcms/ai';
2
- import { S as SdkCustomBlock } from './schema-Bpy9N5ZI.mjs';
2
+ import { S as SdkCustomBlock } from './schema-Z6-afHJG.mjs';
3
3
  import { z } from 'zod';
4
+ import { L as LinkValue } from './link-DjxLyC82.mjs';
4
5
  import { ListMediaAssetsResult, MediaAssetWithLabels } from '@riverbankcms/media-storage-supabase';
5
6
  import { ImpersonationScope, DbRow, CamelizeKeys, DbJson, DbDatabase } from '@riverbankcms/db';
6
7
 
8
+ /**
9
+ * Common types shared between public and internal API modules.
10
+ * These types form the foundation of the API type system.
11
+ */
12
+ type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';
13
+ type ApiResponseKind = 'json' | 'stream' | 'text' | 'void';
14
+ type ApiAuthRequirement = 'public' | 'user' | 'admin' | 'service';
15
+
7
16
  type BillingInterval = 'monthly' | 'annual';
8
17
  type FeatureKey = 'sites.multiple' | 'ai.workflows' | 'support.priority' | 'themes.advanced' | 'limits.highUsage' | 'collaboration.admin' | 'collaboration.editor';
9
18
 
@@ -143,153 +152,181 @@ declare const themeSchema: z.ZodObject<{
143
152
  normal: "normal";
144
153
  smallCaps: "smallCaps";
145
154
  }>>;
155
+ italic: z.ZodNullable<z.ZodBoolean>;
146
156
  }, z.core.$strip>;
147
157
  h1: z.ZodObject<{
148
- weight: z.ZodNullable<z.ZodEnum<{
158
+ weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
149
159
  bold: "bold";
150
160
  medium: "medium";
151
161
  light: "light";
152
162
  regular: "regular";
153
163
  semibold: "semibold";
154
- }>>;
155
- letterSpacing: z.ZodNullable<z.ZodEnum<{
164
+ }>>>;
165
+ letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
156
166
  normal: "normal";
157
167
  loose: "loose";
158
168
  tight: "tight";
159
- }>>;
160
- size: z.ZodNullable<z.ZodEnum<{
169
+ }>>>;
170
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
171
+ xs: "xs";
172
+ sm: "sm";
161
173
  md: "md";
162
174
  lg: "lg";
163
175
  xl: "xl";
164
- }>>;
165
- lineHeight: z.ZodNullable<z.ZodEnum<{
176
+ "2xl": "2xl";
177
+ }>>>;
178
+ lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
166
179
  normal: "normal";
167
180
  loose: "loose";
168
181
  relaxed: "relaxed";
169
- }>>;
182
+ }>>>;
183
+ italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
170
184
  }, z.core.$strip>;
171
185
  h2: z.ZodObject<{
172
- weight: z.ZodNullable<z.ZodEnum<{
186
+ weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
173
187
  bold: "bold";
174
188
  medium: "medium";
175
189
  light: "light";
176
190
  regular: "regular";
177
191
  semibold: "semibold";
178
- }>>;
179
- letterSpacing: z.ZodNullable<z.ZodEnum<{
192
+ }>>>;
193
+ letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
180
194
  normal: "normal";
181
195
  loose: "loose";
182
196
  tight: "tight";
183
- }>>;
184
- size: z.ZodNullable<z.ZodEnum<{
197
+ }>>>;
198
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
199
+ xs: "xs";
200
+ sm: "sm";
185
201
  md: "md";
186
202
  lg: "lg";
187
203
  xl: "xl";
188
- }>>;
189
- lineHeight: z.ZodNullable<z.ZodEnum<{
204
+ "2xl": "2xl";
205
+ }>>>;
206
+ lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
190
207
  normal: "normal";
191
208
  loose: "loose";
192
209
  relaxed: "relaxed";
193
- }>>;
210
+ }>>>;
211
+ italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
194
212
  }, z.core.$strip>;
195
213
  h3: z.ZodObject<{
196
- weight: z.ZodNullable<z.ZodEnum<{
214
+ weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
197
215
  bold: "bold";
198
216
  medium: "medium";
199
217
  light: "light";
200
218
  regular: "regular";
201
219
  semibold: "semibold";
202
- }>>;
203
- letterSpacing: z.ZodNullable<z.ZodEnum<{
220
+ }>>>;
221
+ letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
204
222
  normal: "normal";
205
223
  loose: "loose";
206
224
  tight: "tight";
207
- }>>;
208
- size: z.ZodNullable<z.ZodEnum<{
225
+ }>>>;
226
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
227
+ xs: "xs";
228
+ sm: "sm";
209
229
  md: "md";
210
230
  lg: "lg";
211
231
  xl: "xl";
212
- }>>;
213
- lineHeight: z.ZodNullable<z.ZodEnum<{
232
+ "2xl": "2xl";
233
+ }>>>;
234
+ lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
214
235
  normal: "normal";
215
236
  loose: "loose";
216
237
  relaxed: "relaxed";
217
- }>>;
238
+ }>>>;
239
+ italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
218
240
  }, z.core.$strip>;
219
241
  h4: z.ZodOptional<z.ZodObject<{
220
- weight: z.ZodNullable<z.ZodEnum<{
242
+ weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
221
243
  bold: "bold";
222
244
  medium: "medium";
223
245
  light: "light";
224
246
  regular: "regular";
225
247
  semibold: "semibold";
226
- }>>;
227
- letterSpacing: z.ZodNullable<z.ZodEnum<{
248
+ }>>>;
249
+ letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
228
250
  normal: "normal";
229
251
  loose: "loose";
230
252
  tight: "tight";
231
- }>>;
232
- size: z.ZodNullable<z.ZodEnum<{
253
+ }>>>;
254
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
255
+ xs: "xs";
256
+ sm: "sm";
233
257
  md: "md";
234
258
  lg: "lg";
235
259
  xl: "xl";
236
- }>>;
237
- lineHeight: z.ZodNullable<z.ZodEnum<{
260
+ "2xl": "2xl";
261
+ }>>>;
262
+ lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
238
263
  normal: "normal";
239
264
  loose: "loose";
240
265
  relaxed: "relaxed";
241
- }>>;
266
+ }>>>;
267
+ italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
242
268
  }, z.core.$strip>>;
243
269
  h5: z.ZodOptional<z.ZodObject<{
244
- weight: z.ZodNullable<z.ZodEnum<{
270
+ weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
245
271
  bold: "bold";
246
272
  medium: "medium";
247
273
  light: "light";
248
274
  regular: "regular";
249
275
  semibold: "semibold";
250
- }>>;
251
- letterSpacing: z.ZodNullable<z.ZodEnum<{
276
+ }>>>;
277
+ letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
252
278
  normal: "normal";
253
279
  loose: "loose";
254
280
  tight: "tight";
255
- }>>;
256
- size: z.ZodNullable<z.ZodEnum<{
281
+ }>>>;
282
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
283
+ xs: "xs";
284
+ sm: "sm";
257
285
  md: "md";
258
286
  lg: "lg";
259
287
  xl: "xl";
260
- }>>;
261
- lineHeight: z.ZodNullable<z.ZodEnum<{
288
+ "2xl": "2xl";
289
+ }>>>;
290
+ lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
262
291
  normal: "normal";
263
292
  loose: "loose";
264
293
  relaxed: "relaxed";
265
- }>>;
294
+ }>>>;
295
+ italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
266
296
  }, z.core.$strip>>;
267
297
  h6: z.ZodOptional<z.ZodObject<{
268
- weight: z.ZodNullable<z.ZodEnum<{
298
+ weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
269
299
  bold: "bold";
270
300
  medium: "medium";
271
301
  light: "light";
272
302
  regular: "regular";
273
303
  semibold: "semibold";
274
- }>>;
275
- letterSpacing: z.ZodNullable<z.ZodEnum<{
304
+ }>>>;
305
+ letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
276
306
  normal: "normal";
277
307
  loose: "loose";
278
308
  tight: "tight";
279
- }>>;
280
- size: z.ZodNullable<z.ZodEnum<{
309
+ }>>>;
310
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
311
+ xs: "xs";
312
+ sm: "sm";
281
313
  md: "md";
282
314
  lg: "lg";
283
315
  xl: "xl";
284
- }>>;
285
- lineHeight: z.ZodNullable<z.ZodEnum<{
316
+ "2xl": "2xl";
317
+ }>>>;
318
+ lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
286
319
  normal: "normal";
287
320
  loose: "loose";
288
321
  relaxed: "relaxed";
289
- }>>;
322
+ }>>>;
323
+ italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
290
324
  }, z.core.$strip>>;
291
325
  }, z.core.$strip>;
292
326
  scale: z.ZodEnum<{
327
+ compact: "compact";
328
+ spacious: "spacious";
329
+ balanced: "balanced";
293
330
  minorThird: "minorThird";
294
331
  majorThird: "majorThird";
295
332
  perfectFourth: "perfectFourth";
@@ -438,6 +475,7 @@ declare const themeSchema: z.ZodObject<{
438
475
  }, z.core.$strip>>>;
439
476
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
440
477
  }, z.core.$strip>>;
478
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
441
479
  navStyle: z.ZodEnum<{
442
480
  solid: "solid";
443
481
  underline: "underline";
@@ -522,6 +560,56 @@ declare const themeSchema: z.ZodObject<{
522
560
  tint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
523
561
  opacity: z.ZodDefault<z.ZodNumber>;
524
562
  }, z.core.$strip>>;
563
+ navLinkStyle: z.ZodOptional<z.ZodObject<{
564
+ colorToken: z.ZodDefault<z.ZodString>;
565
+ hoverColorToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
566
+ padding: z.ZodDefault<z.ZodEnum<{
567
+ default: "default";
568
+ none: "none";
569
+ compact: "compact";
570
+ }>>;
571
+ borderRadius: z.ZodDefault<z.ZodEnum<{
572
+ full: "full";
573
+ none: "none";
574
+ sm: "sm";
575
+ md: "md";
576
+ }>>;
577
+ effects: z.ZodOptional<z.ZodObject<{
578
+ base: z.ZodOptional<z.ZodArray<z.ZodObject<{
579
+ effectId: z.ZodString;
580
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
581
+ }, z.core.$strip>>>;
582
+ hover: z.ZodOptional<z.ZodArray<z.ZodObject<{
583
+ effectId: z.ZodString;
584
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
585
+ }, z.core.$strip>>>;
586
+ active: z.ZodOptional<z.ZodArray<z.ZodObject<{
587
+ effectId: z.ZodString;
588
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
589
+ }, z.core.$strip>>>;
590
+ focus: z.ZodOptional<z.ZodArray<z.ZodObject<{
591
+ effectId: z.ZodString;
592
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
593
+ }, z.core.$strip>>>;
594
+ }, z.core.$strip>>;
595
+ typography: z.ZodDefault<z.ZodEnum<{
596
+ heading: "heading";
597
+ body: "body";
598
+ }>>;
599
+ fontWeight: z.ZodDefault<z.ZodEnum<{
600
+ bold: "bold";
601
+ medium: "medium";
602
+ regular: "regular";
603
+ semibold: "semibold";
604
+ }>>;
605
+ textTransform: z.ZodDefault<z.ZodEnum<{
606
+ none: "none";
607
+ uppercase: "uppercase";
608
+ capitalize: "capitalize";
609
+ }>>;
610
+ italic: z.ZodDefault<z.ZodBoolean>;
611
+ name: z.ZodOptional<z.ZodString>;
612
+ }, z.core.$strip>>;
525
613
  }, z.core.$strip>;
526
614
  footer: z.ZodObject<{
527
615
  variant: z.ZodEnum<{
@@ -576,6 +664,72 @@ declare const themeSchema: z.ZodObject<{
576
664
  }, z.core.$strip>>>;
577
665
  textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
578
666
  }, z.core.$strip>>;
667
+ navStyle: z.ZodDefault<z.ZodEnum<{
668
+ solid: "solid";
669
+ underline: "underline";
670
+ scale: "scale";
671
+ minimal: "minimal";
672
+ "underline-grow": "underline-grow";
673
+ capsule: "capsule";
674
+ frosted: "frosted";
675
+ }>>;
676
+ navColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
677
+ navWeight: z.ZodDefault<z.ZodEnum<{
678
+ bold: "bold";
679
+ medium: "medium";
680
+ regular: "regular";
681
+ semibold: "semibold";
682
+ }>>;
683
+ navLinkStyle: z.ZodOptional<z.ZodObject<{
684
+ colorToken: z.ZodDefault<z.ZodString>;
685
+ hoverColorToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
686
+ padding: z.ZodDefault<z.ZodEnum<{
687
+ default: "default";
688
+ none: "none";
689
+ compact: "compact";
690
+ }>>;
691
+ borderRadius: z.ZodDefault<z.ZodEnum<{
692
+ full: "full";
693
+ none: "none";
694
+ sm: "sm";
695
+ md: "md";
696
+ }>>;
697
+ effects: z.ZodOptional<z.ZodObject<{
698
+ base: z.ZodOptional<z.ZodArray<z.ZodObject<{
699
+ effectId: z.ZodString;
700
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
701
+ }, z.core.$strip>>>;
702
+ hover: z.ZodOptional<z.ZodArray<z.ZodObject<{
703
+ effectId: z.ZodString;
704
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
705
+ }, z.core.$strip>>>;
706
+ active: z.ZodOptional<z.ZodArray<z.ZodObject<{
707
+ effectId: z.ZodString;
708
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
709
+ }, z.core.$strip>>>;
710
+ focus: z.ZodOptional<z.ZodArray<z.ZodObject<{
711
+ effectId: z.ZodString;
712
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
713
+ }, z.core.$strip>>>;
714
+ }, z.core.$strip>>;
715
+ typography: z.ZodDefault<z.ZodEnum<{
716
+ heading: "heading";
717
+ body: "body";
718
+ }>>;
719
+ fontWeight: z.ZodDefault<z.ZodEnum<{
720
+ bold: "bold";
721
+ medium: "medium";
722
+ regular: "regular";
723
+ semibold: "semibold";
724
+ }>>;
725
+ textTransform: z.ZodDefault<z.ZodEnum<{
726
+ none: "none";
727
+ uppercase: "uppercase";
728
+ capitalize: "capitalize";
729
+ }>>;
730
+ italic: z.ZodDefault<z.ZodBoolean>;
731
+ name: z.ZodOptional<z.ZodString>;
732
+ }, z.core.$strip>>;
579
733
  }, z.core.$strip>;
580
734
  buttons: z.ZodOptional<z.ZodObject<{
581
735
  global: z.ZodObject<{
@@ -599,6 +753,16 @@ declare const themeSchema: z.ZodObject<{
599
753
  }>;
600
754
  fontWeight: z.ZodUnion<readonly [z.ZodLiteral<500>, z.ZodLiteral<600>, z.ZodLiteral<700>]>;
601
755
  borderWidth: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
756
+ typography: z.ZodOptional<z.ZodEnum<{
757
+ heading: "heading";
758
+ body: "body";
759
+ }>>;
760
+ italic: z.ZodOptional<z.ZodBoolean>;
761
+ paddingPreset: z.ZodOptional<z.ZodEnum<{
762
+ default: "default";
763
+ compact: "compact";
764
+ spacious: "spacious";
765
+ }>>;
602
766
  hoverTransform: z.ZodEnum<{
603
767
  none: "none";
604
768
  scale: "scale";
@@ -607,10 +771,12 @@ declare const themeSchema: z.ZodObject<{
607
771
  }>;
608
772
  hoverColor: z.ZodEnum<{
609
773
  none: "none";
774
+ token: "token";
610
775
  darken: "darken";
611
776
  brighten: "brighten";
612
777
  saturate: "saturate";
613
778
  }>;
779
+ hoverColorToken: z.ZodOptional<z.ZodString>;
614
780
  gradientStyle: z.ZodOptional<z.ZodEnum<{
615
781
  linear: "linear";
616
782
  radial: "radial";
@@ -672,6 +838,7 @@ declare const themeSchema: z.ZodObject<{
672
838
  }, z.core.$strip>>;
673
839
  padding: z.ZodOptional<z.ZodString>;
674
840
  fontSize: z.ZodOptional<z.ZodString>;
841
+ hoverBackgroundToken: z.ZodOptional<z.ZodString>;
675
842
  effects: z.ZodOptional<z.ZodObject<{
676
843
  base: z.ZodOptional<z.ZodArray<z.ZodObject<{
677
844
  effectId: z.ZodString;
@@ -935,28 +1102,6 @@ type HydratedTheme = Omit<Theme, 'palette'> & {
935
1102
 
936
1103
  type SiteHeaderContent = Record<string, never>;
937
1104
 
938
- type InternalLinkValue = {
939
- kind: 'internal';
940
- routeId: string;
941
- entityId: string;
942
- entityType: 'page' | 'content';
943
- href: string;
944
- title: string;
945
- typeLabel: string;
946
- contentTypeKey?: string | null;
947
- contentTypeName?: string | null;
948
- updatedAt?: string | null;
949
- };
950
- type ExternalLinkValue = {
951
- kind: 'external';
952
- href: string;
953
- };
954
- type CustomLinkValue = {
955
- kind: 'url';
956
- href: string;
957
- };
958
- type LinkValue = InternalLinkValue | ExternalLinkValue | CustomLinkValue;
959
-
960
1105
  type SiteFooterLink = {
961
1106
  label: string;
962
1107
  link: LinkValue | null;
@@ -1105,9 +1250,6 @@ interface RiverbankSiteConfig {
1105
1250
  customBlocks?: SdkCustomBlock[];
1106
1251
  blockFieldOptions?: SdkBlockFieldOptionsMap;
1107
1252
  }
1108
- type HTTPMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD";
1109
- type ApiResponseKind = 'json' | 'stream' | 'text' | 'void';
1110
- type ApiAuthRequirement = 'public' | 'user' | 'admin' | 'service';
1111
1253
 
1112
1254
  type APIEndpoint<TBody = unknown, TQuery = unknown, TResponse = unknown> = {
1113
1255
  path: string;
@@ -2336,6 +2478,7 @@ type CreateManualSiteRequest = {
2336
2478
  scaffoldContact?: boolean;
2337
2479
  scaffoldBlog?: boolean;
2338
2480
  invitees?: SiteInvitee[];
2481
+ userId?: string;
2339
2482
  };
2340
2483
  type CreateManualSiteResponse = {
2341
2484
  siteId: string;
@@ -3288,6 +3431,21 @@ type APIEndpoints = {
3288
3431
  address: string | null;
3289
3432
  } | null;
3290
3433
  }>>;
3434
+ resolveEventOccurrence: APIEndpoint<never, {
3435
+ siteId: string;
3436
+ entryId: string;
3437
+ segment: string;
3438
+ }, {
3439
+ occurrence: {
3440
+ id: string;
3441
+ seriesId: string;
3442
+ startsAt: string;
3443
+ endsAt: string;
3444
+ status: string;
3445
+ capacityOverride: number | null;
3446
+ overridesJson: Record<string, unknown>;
3447
+ } | null;
3448
+ }>;
3291
3449
  registerForEvent: APIEndpoint<{
3292
3450
  occurrenceId: string;
3293
3451
  email: string;
@@ -3453,7 +3611,7 @@ type APIEndpoints = {
3453
3611
  }, DeleteBlackoutResponse>;
3454
3612
  getAvailableSlots: APIEndpoint<GetAvailableSlotsQuery, {
3455
3613
  siteId: string;
3456
- } & GetAvailableSlotsQuery, GetAvailableSlotsResponse>;
3614
+ }, GetAvailableSlotsResponse>;
3457
3615
  createAppointment: APIEndpoint<CreateAppointmentRequest, {
3458
3616
  siteId: string;
3459
3617
  }, CreateAppointmentResponse>;
@@ -3505,26 +3663,40 @@ type APIEndpoints = {
3505
3663
  previewBackup: APIEndpoint<FormData, never, BackupPreviewResponse>;
3506
3664
  importBackupAsNewSite: APIEndpoint<FormData, never, ImportBackupAsNewSiteResponse>;
3507
3665
  };
3666
+ type RequiredKeys<T> = {
3667
+ [K in keyof T]-?: {} extends Pick<T, K> ? never : K;
3668
+ }[keyof T];
3669
+ type HasRequiredKeys<T> = RequiredKeys<T> extends never ? false : true;
3670
+ type IsNonEmptyQuery<T> = [
3671
+ T
3672
+ ] extends [never] ? false : T extends undefined ? false : keyof T extends never ? false : true;
3673
+ type QueryToStringParams<T> = {
3674
+ [K in keyof T]: string;
3675
+ };
3676
+ type ParamsPart<E extends keyof APIEndpoints> = IsNonEmptyQuery<APIEndpoints[E]['query']> extends false ? {
3677
+ params?: Record<string, string>;
3678
+ } : HasRequiredKeys<APIEndpoints[E]['query']> extends true ? {
3679
+ params: QueryToStringParams<APIEndpoints[E]['query']>;
3680
+ } : {
3681
+ params?: QueryToStringParams<APIEndpoints[E]['query']>;
3682
+ };
3508
3683
  type APICallParams<E extends keyof APIEndpoints> = APIEndpoints[E] extends {
3509
3684
  method: 'GET';
3510
3685
  } ? {
3511
3686
  endpoint: E;
3512
3687
  body?: APIEndpoints[E]['body'];
3513
- params?: APIEndpoints[E]['query'] extends Record<string, any> ? Record<keyof APIEndpoints[E]['query'], string> : Record<string, string>;
3514
3688
  options?: RequestInit;
3515
- } : APIEndpoints[E] extends {
3689
+ } & ParamsPart<E> : APIEndpoints[E] extends {
3516
3690
  method: 'POST' | 'PUT' | 'PATCH';
3517
3691
  } ? {
3518
3692
  endpoint: E;
3519
3693
  body: APIEndpoints[E]['body'];
3520
- params?: APIEndpoints[E]['query'] extends Record<string, any> ? Record<keyof APIEndpoints[E]['query'], string> : Record<string, string>;
3521
3694
  options?: RequestInit;
3522
- } : {
3695
+ } & ParamsPart<E> : {
3523
3696
  endpoint: E;
3524
3697
  body?: APIEndpoints[E]['body'];
3525
- params?: APIEndpoints[E]['query'] extends Record<string, any> ? Record<keyof APIEndpoints[E]['query'], string> : Record<string, string>;
3526
3698
  options?: RequestInit;
3527
- };
3699
+ } & ParamsPart<E>;
3528
3700
  type AiPatchPageMetaOp = {
3529
3701
  type: 'pageMeta';
3530
3702
  set: {
@@ -4055,4 +4227,4 @@ type ImportBackupAsNewSiteResponse = {
4055
4227
  code?: string;
4056
4228
  };
4057
4229
 
4058
- export type { APIEndpoints as A, CustomLinkValue as C, ExternalLinkValue as E, HydratedTheme as H, InternalLinkValue as I, LinkPayload as L, NavigationMenuWithItems as N, SiteHeaderContent as S, Theme as T, NavigationItemRecord as a, APICallParams as b, SiteFooterContent as c, LinkValue as d, ExpandedPalette as e };
4230
+ export type { APIEndpoints as A, ExpandedPalette as E, HydratedTheme as H, LinkPayload as L, NavigationMenuWithItems as N, SiteHeaderContent as S, Theme as T, NavigationItemRecord as a, APICallParams as b, SiteFooterContent as c };
@@ -1,4 +1,5 @@
1
- import { A as APIEndpoints } from './types-BLf-hE50.mjs';
1
+ import { A as APIEndpoints } from './types-C28kMfa1.js';
2
+ import './schema-Z6-afHJG.js';
2
3
 
3
4
  type SiteResponse = NonNullable<APIEndpoints['getSite']['response']>;
4
5
  type PageResponse = NonNullable<APIEndpoints['getContentByPath']['response']>;
@@ -7,6 +8,8 @@ type EntryResponse = NonNullable<APIEndpoints['getPublishedEntryPreview']['respo
7
8
  type PublicFormResponse = NonNullable<APIEndpoints['getPublicFormById']['response']>;
8
9
  type PublicBookingServicesResponse = NonNullable<APIEndpoints['getPublicBookingServices']['response']>;
9
10
  type PublicEventsResponse = NonNullable<APIEndpoints['listPublicEvents']['response']>;
11
+ type ResolveEventOccurrenceResponse = NonNullable<APIEndpoints['resolveEventOccurrence']['response']>;
12
+ type CheckRedirectResponse = NonNullable<APIEndpoints['checkRedirect']['response']>;
10
13
  /**
11
14
  * Pagination metadata returned when `includeMeta: true`
12
15
  */
@@ -189,10 +192,60 @@ interface RiverbankClient {
189
192
  to?: string;
190
193
  stage?: string;
191
194
  }): Promise<PublicEventsResponse>;
195
+ /**
196
+ * Resolve an event occurrence by URL segment (date or UUID)
197
+ *
198
+ * @param params.siteId - The site ID
199
+ * @param params.entryId - The parent content entry ID
200
+ * @param params.segment - URL segment - either a date (YYYY-MM-DD) or UUID
201
+ *
202
+ * @example
203
+ * ```ts
204
+ * // Resolve occurrence by date
205
+ * const result = await client.resolveEventOccurrence({
206
+ * siteId: 'site-id',
207
+ * entryId: 'entry-id',
208
+ * segment: '2025-01-15',
209
+ * });
210
+ *
211
+ * // Resolve occurrence by UUID
212
+ * const result = await client.resolveEventOccurrence({
213
+ * siteId: 'site-id',
214
+ * entryId: 'entry-id',
215
+ * segment: 'abc123-...',
216
+ * });
217
+ * ```
218
+ */
219
+ resolveEventOccurrence(params: {
220
+ siteId: string;
221
+ entryId: string;
222
+ segment: string;
223
+ }): Promise<ResolveEventOccurrenceResponse>;
224
+ /**
225
+ * Check if a path has a configured redirect rule
226
+ *
227
+ * @param params.siteId - The site ID
228
+ * @param params.path - The URL path to check
229
+ *
230
+ * @example
231
+ * ```ts
232
+ * const redirect = await client.checkRedirect({
233
+ * siteId: 'site-id',
234
+ * path: '/old-page',
235
+ * });
236
+ * if (redirect.redirect) {
237
+ * // Handle redirect to redirect.redirect.destination
238
+ * }
239
+ * ```
240
+ */
241
+ checkRedirect(params: {
242
+ siteId: string;
243
+ path: string;
244
+ }): Promise<CheckRedirectResponse>;
192
245
  /**
193
246
  * Force clear the cache
194
247
  */
195
248
  clearCache(): void;
196
249
  }
197
250
 
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 };
251
+ 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, ResolveEventOccurrenceResponse as e };