@riverbankcms/sdk 0.161.0 → 0.163.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 (193) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/_dts/{BlocksIslandsHydrator-Bx4kLiTA.d.ts → BlocksIslandsHydrator-DYPGA_qh.d.ts} +1 -1
  3. package/dist/_dts/{Page-Dm7_P13o.d.ts → Page-zwnvFBPu.d.ts} +8 -8
  4. package/dist/_dts/{SdkPreviewMode-D7HdWWwF.d.ts → SdkPreviewMode-DukuJzGr.d.ts} +58 -91
  5. package/dist/_dts/{client-Ep0jI9eE.d.ts → client-Chh3bnXC.d.ts} +11 -3
  6. package/dist/_dts/{content-types-BgAzCrBc.d.ts → content-types-Bbzqw9J2.d.ts} +2 -2
  7. package/dist/_dts/{contracts-DUiOnj9e.d.ts → contracts-GJ1kGBsi.d.ts} +13 -4
  8. package/dist/_dts/{footerPageOutline-B-uXamTG.d.ts → footerPageOutline-BNMKhyvo.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-BDkZYEcS.d.ts → generatePageMetadata-Ce0m1P3B.d.ts} +2 -2
  10. package/dist/_dts/{index-DvKQA6AZ.d.ts → index-C3mJvn27.d.ts} +4 -4
  11. package/dist/_dts/{schema-BHu0PYWl.d.ts → index-CaL0nKkl.d.ts} +4166 -3355
  12. package/dist/_dts/{index-KPrWM0KF.d.ts → index-CdSNXLOx.d.ts} +1 -1
  13. package/dist/_dts/{types-BR1Yboa9.d.ts → index-CyQhZuhM.d.ts} +3347 -1692
  14. package/dist/_dts/{index-BVkP8f70.d.ts → index-D2y4Iy-d.d.ts} +13 -2
  15. package/dist/_dts/{index-CSsfq6KG.d.ts → index-DRxgeK8L.d.ts} +11 -6
  16. package/dist/_dts/{index-CF6Cjs7b.d.ts → index-FstkyqQB.d.ts} +2 -2
  17. package/dist/_dts/{index-D_8uz4OP.d.ts → index-G2p-HOrK.d.ts} +3 -3
  18. package/dist/_dts/{index-ylivB7Jj.d.ts → index-rhMSu0oY.d.ts} +2 -2
  19. package/dist/_dts/{loadContent-DTjKOO-T.d.ts → loadContent-DiLZoInK.d.ts} +10 -7
  20. package/dist/_dts/{resolvePageContent-C1vA5c5w.d.ts → resolvePageContent-CWUnipv8.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/index.d.ts +8 -8
  28. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  29. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  30. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  31. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  32. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  33. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  35. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  36. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  37. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  39. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  40. package/dist/_dts/sdk/src/rendering/index.d.ts +13 -7
  41. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  43. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  44. package/dist/_dts/sdk/src/server.d.ts +5 -5
  45. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  46. package/dist/_dts/{types-D02ngcUH.d.ts → types-BmtrA45p.d.ts} +2 -2
  47. package/dist/_dts/{types-ZGUiHpDE.d.ts → types-CalL7aKP.d.ts} +7 -7
  48. package/dist/_dts/{types-CJXTCF_F.d.ts → types-DFOqkClJ.d.ts} +3 -3
  49. package/dist/_dts/{validation-BaV565gb.d.ts → validation-G8MRoIhq.d.ts} +4 -4
  50. package/dist/client/{BlocksIslandsHydrator-DTExCJsb.mjs → BlocksIslandsHydrator-DLCXwe30.mjs} +20 -19
  51. package/dist/client/{BookingMailingListNote-BDpxmn1p.mjs → BookingMailingListNote-BV5-50F0.mjs} +1 -1
  52. package/dist/client/{CalendarNavigationChevron-PeCiL82X.mjs → CalendarNavigationChevron-CVLAHdZG.mjs} +6 -6
  53. package/dist/client/{CheckboxChoice-DWexRLf6.mjs → CheckboxChoice-Dtgp3OU8.mjs} +1 -1
  54. package/dist/client/{DemoBookingPortalAccess-3zmIqakW.mjs → DemoBookingPortalAccess-B3caCnTT.mjs} +26 -10
  55. package/dist/client/{DemoPortalSignInLink-GHi-8BW5.mjs → DemoPortalSignInLink-Ct8JMKW0.mjs} +1 -1
  56. package/dist/client/{EventCalendar.client-BxQLY5cX.mjs → EventCalendar.client-ffa6920T.mjs} +16 -17
  57. package/dist/client/{EventCombined.client-B5bmQ03b.mjs → EventCombined.client-zm0W2G79.mjs} +8 -8
  58. package/dist/client/{EventEmbeddedCheckoutStep-CgMZ9TeU.mjs → EventEmbeddedCheckoutStep-CPPE2rWS.mjs} +1 -1
  59. package/dist/client/{EventItem-BEx-qiDE.mjs → EventItem-CND3mfra.mjs} +91 -15
  60. package/dist/client/{EventListWeekNavigation-CyH5tA6Y.mjs → EventListWeekNavigation-D8QdxL_f.mjs} +1 -1
  61. package/dist/client/{EventListing.client-D3uySdGP.mjs → EventListing.client-CaoRZUI9.mjs} +3 -3
  62. package/dist/client/{EventListing.view-9RFrBejr.mjs → EventListing.view-BfnOmxYD.mjs} +14 -70
  63. package/dist/client/{EventRegistrationPayment-CG2tQx8K.mjs → EventRegistrationPayment-Dfu3RSL2.mjs} +10 -10
  64. package/dist/client/LocationMapActions-wlyxASdT.mjs +62 -0
  65. package/dist/client/{LocationMapActions-Wsr83Q7q.mjs → MapDrawingSvg-B9oKSitp.mjs} +2 -70
  66. package/dist/client/{Page-Bf2nPACI.mjs → Page-BEF9HrAy.mjs} +2333 -492
  67. package/dist/client/{StepIndicator-CZweb1vs.mjs → StepIndicator-Bjx4faaw.mjs} +2 -2
  68. package/dist/client/{TabBarFragment-Bkgz67gt.mjs → TabBarFragment-Cu7k_VSl.mjs} +1 -1
  69. package/dist/client/{ThemedButton-CnyL3s1A.mjs → ThemedButton-DclwabI7.mjs} +1 -1
  70. package/dist/client/{accordion-TcimLLRQ.mjs → accordion-lzM2nSZB.mjs} +1 -1
  71. package/dist/client/{booking-form.client-q-RpJ4aF.mjs → booking-form.client-Bll4QwBi.mjs} +137 -60
  72. package/dist/client/{bookingForm-DjGfk3Wj.mjs → bookingForm-Cq5fQ-vo.mjs} +4 -4
  73. package/dist/client/bookings.mjs +5 -5
  74. package/dist/client/{carousel-CGAk6j0m.mjs → carousel-CxerQwIx.mjs} +2 -2
  75. package/dist/client/{carousel.client-ArlGmYWV.mjs → carousel.client-CVUXq8Mb.mjs} +1 -1
  76. package/dist/client/{cart-D_h3rAZ2.mjs → cart-X-m0isoI.mjs} +3 -3
  77. package/dist/client/{cart.client-DHOxZbJ7.mjs → cart.client-CJbzWIl0.mjs} +1 -1
  78. package/dist/client/{checkout-tC-3CzuM.mjs → checkout-Gd0O_fGH.mjs} +3 -3
  79. package/dist/client/{checkout.client-DsBb2Pkm.mjs → checkout.client-Baee6Jsm.mjs} +1 -1
  80. package/dist/client/client.mjs +34 -69
  81. package/dist/client/{context-9ZfMb6GA.mjs → context-Bg0SFWcM.mjs} +28 -1
  82. package/dist/client/{cta-D-ZqL7-e.mjs → cta-HffyM4MA.mjs} +1 -1
  83. package/dist/client/{dateFormatting-BCwLqYpW.mjs → dateFormatting-CV45BH5M.mjs} +39 -2
  84. package/dist/client/{demoPortalMagicLink-BxkSS9fx.mjs → demoPortalMagicLink-CDWheSjI.mjs} +1 -1
  85. package/dist/client/{enhanceHeaderSection-xg6to91E.mjs → enhanceHeaderSection-BqVDXL0D.mjs} +3 -3
  86. package/dist/client/{event-details.client-C670TgRd.mjs → event-details.client-SFtS9OkF.mjs} +2 -1
  87. package/dist/client/{event-registration.client-C6GApWTB.mjs → event-registration.client-CguNVIFY.mjs} +13 -13
  88. package/dist/client/{eventCalendar-CWc0dg9i.mjs → eventCalendar-DSGG35jd.mjs} +4 -4
  89. package/dist/client/{eventCombined-D4DbOrvQ.mjs → eventCombined-Oe-PiChx.mjs} +4 -4
  90. package/dist/client/{eventDetails-C2DfmbC0.mjs → eventDetails-BhcTT6P3.mjs} +2 -2
  91. package/dist/client/{eventListing-C_yXmHyz.mjs → eventListing-BS0kBEgI.mjs} +4 -4
  92. package/dist/client/{eventRegistration-DJuaCB-O.mjs → eventRegistration-B82SHv7j.mjs} +4 -4
  93. package/dist/client/{form-QZhtdFHA.mjs → form-DAIUrVXb.mjs} +3 -3
  94. package/dist/client/{form.client-CgvPACwG.mjs → form.client-BoAkhoh_.mjs} +4 -4
  95. package/dist/client/{form.parts-2uI0-5N-.mjs → form.parts-1VnasOK8.mjs} +3 -3
  96. package/dist/client/{formatDate-Danr0Nk4.mjs → formatDate-BKil_Psb.mjs} +1 -1
  97. package/dist/client/gifting/client.mjs +3 -3
  98. package/dist/client/{headerSection-DJdlLdvZ.mjs → headerSection-CyuHk8Ei.mjs} +2 -2
  99. package/dist/client/mediaAssets-CGJE1Omu.mjs +43 -0
  100. package/dist/client/mediaContext-DIkX2S-X.mjs +136 -0
  101. package/dist/client/{newsletter-form.client-Cbepz2KU.mjs → newsletter-form.client-CCdyHx0B.mjs} +5 -5
  102. package/dist/client/{newsletter-form.parts-DN8oMCQ0.mjs → newsletter-form.parts-Dl8AjsXW.mjs} +2 -2
  103. package/dist/client/{newsletterForm-wjLtW-wq.mjs → newsletterForm-qFWLZJui.mjs} +3 -3
  104. package/dist/client/{noop-B7H6gCbj.mjs → noop-4XFGzJpT.mjs} +19 -3
  105. package/dist/client/portal/client.mjs +1116 -85
  106. package/dist/client/{product-detail.client-CYTR165c.mjs → product-detail.client-Tq4S99ce.mjs} +1 -1
  107. package/dist/client/{product-list.client-B4vTvag8.mjs → product-list.client-CuL5jB1w.mjs} +1 -1
  108. package/dist/client/{productDetail-k8LEMSWn.mjs → productDetail-BRqgcotZ.mjs} +3 -3
  109. package/dist/client/{productList-DEo8Bqoe.mjs → productList-EK9Um-oh.mjs} +3 -3
  110. package/dist/client/{propsDecoder-G0j0HXBO.mjs → propsDecoder-VD4arFq1.mjs} +4 -3
  111. package/dist/client/{registry.server-BTmSXE3D.mjs → registry.server-qYbsatxH.mjs} +272 -68
  112. package/dist/client/rendering/client.mjs +26 -26
  113. package/dist/client/rendering/islands.mjs +1 -1
  114. package/dist/client/rendering.mjs +22 -19
  115. package/dist/client/{richText-coerce-B19taoH6.mjs → richText-coerce-CW8CFk8v.mjs} +1 -1
  116. package/dist/client/{routeIslandApiConfig-Chu5BHra.mjs → routeIslandApiConfig-CnZ_1ol2.mjs} +1 -1
  117. package/dist/client/{schema-C-m8XHuW.mjs → schema-BFwQDvJL.mjs} +4561 -3948
  118. package/dist/client/{shop-RGWa43H7.mjs → shop-CTUaT57E.mjs} +3 -3
  119. package/dist/client/{shop-commerce-TJYCBO_H.mjs → shop-commerce-BWwbsm_-.mjs} +11 -11
  120. package/dist/client/{shop-commerce-store-CjCcUB_o.mjs → shop-commerce-store-15UII0y3.mjs} +1 -1
  121. package/dist/client/{shop.client-tsKfZw1W.mjs → shop.client-UWgdmJBm.mjs} +12 -12
  122. package/dist/client/{shop.interactive-CVqLAU53.mjs → shop.interactive-Cf_kASpd.mjs} +76 -51
  123. package/dist/client/{shopShared-C3lHMz_R.mjs → shopShared-Bi8d584P.mjs} +2 -2
  124. package/dist/{server/effectiveNavLinkStyle-CGvGr3yD.mjs → client/site-styles-dy54AUdz.mjs} +2781 -331
  125. package/dist/client/{timetableModel-V2ifvGGy.mjs → timetableModel-Bi8ruFgB.mjs} +10 -9
  126. package/dist/client/{useAvailableSlots-D1X69-pN.mjs → useAvailableSlots-DiLbDqM3.mjs} +8 -11
  127. package/dist/client/{useBookingNowIso-Ch30jino.mjs → useBookingNowIso-CWIiqPd0.mjs} +1 -1
  128. package/dist/client/{useDiscountApply-Bwzr1RjV.mjs → useDiscountApply-ChtszhF9.mjs} +2 -2
  129. package/dist/client/{useDiscountCodeUi-BimJbFC7.mjs → useDiscountCodeUi-B0Z7n2tZ.mjs} +1 -1
  130. package/dist/client/{useEventPagination-CLAS0upd.mjs → useEventPagination-DRrATQHQ.mjs} +6 -6
  131. package/dist/client/{view-Dj_FZHmg.mjs → view-OvsxzgxP.mjs} +64 -55
  132. package/dist/client/{view-BUh4LnLS.mjs → view-yUIfWX3S.mjs} +4 -4
  133. package/dist/client/{wizardSteps-BkZc-hKH.mjs → wizardSteps-kbONzKUv.mjs} +59 -53
  134. package/dist/preview-next/before-render.mjs +3 -3
  135. package/dist/preview-next/chrome.css +1 -1
  136. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CwerMfzn.mjs → EventEmbeddedCheckoutStep-DzoFjIqB.mjs} +1 -1
  137. package/dist/preview-next/client/{PreviewEditorSidebar-Dvq-RW9-.mjs → PreviewEditorSidebar-BhgPyyUW.mjs} +170 -1046
  138. package/dist/preview-next/client/{PreviewEditorUI-BdFjS39R.mjs → PreviewEditorUI-lndKKBtB.mjs} +157 -313
  139. package/dist/preview-next/client/{SdkPreviewModeRuntime-BEfHln1E.mjs → SdkPreviewModeRuntime-Bk7On_EM.mjs} +351 -1386
  140. package/dist/preview-next/client/{SdkPreviewModeRuntime-CjkGh1IG.mjs → SdkPreviewModeRuntime-DCDDXDlt.mjs} +1 -1
  141. package/dist/preview-next/client/{ThemedButton-b14Bv03E.mjs → ThemedButton-nUnE3iMv.mjs} +1010 -398
  142. package/dist/preview-next/client/{SiteChromeCustomizeContext-CDbxk_qZ.mjs → previewAuthStore-DHtSQIBE.mjs} +159416 -162308
  143. package/dist/preview-next/client/{previewChromeSurface-Dd1_mNIg.mjs → previewChromeSurface-CxQ6dZ8D.mjs} +1 -1
  144. package/dist/preview-next/client/runtime.mjs +3 -3
  145. package/dist/preview-next/client/{sdk-runtime-B-CXyGVb.mjs → sdk-runtime-DSZv7Vfm.mjs} +1 -1
  146. package/dist/preview-next/client/siteStyleAccess-Chq5KKKh.mjs +14162 -0
  147. package/dist/preview-next/client/{spinner-CGxS8Ns-.mjs → spinner-CjxE3uws.mjs} +1 -1
  148. package/dist/preview-next/edit-map.css +37 -0
  149. package/dist/preview-next/keepAlive.mjs +2 -2
  150. package/dist/preview-next/maplibre-gl.css +1 -0
  151. package/dist/preview-next/middleware.mjs +1 -1
  152. package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
  153. package/dist/preview-next/{route-contract-hLg-yjQN.mjs → route-contract-CxCstfkP.mjs} +403 -200
  154. package/dist/preview-next/upload-structure.css +18 -0
  155. package/dist/server/{Block.shared-CeTd2saO.mjs → Block.shared-Dz9k8vCX.mjs} +16 -16
  156. package/dist/server/{bindings-C5YpKuKt.mjs → bindings-S-gCHhj5.mjs} +2 -2
  157. package/dist/server/{client-Cv26lZQ4.mjs → client-C2Q56xqV.mjs} +34 -69
  158. package/dist/server/config-validation.mjs +1 -1
  159. package/dist/server/config.mjs +2 -2
  160. package/dist/{client/mediaContext-jPeJ2PmJ.mjs → server/effectiveNavLinkStyle-DLzJPcDL.mjs} +1977 -1210
  161. package/dist/server/index.mjs +3 -3
  162. package/dist/server/{loadContent-C8a0b-cC.mjs → loadContent-D7ItMsEl.mjs} +7 -4
  163. package/dist/server/loadPage-D2qvYV5g.mjs +2 -0
  164. package/dist/server/{loadPage-BW7dklu3.mjs → loadPage-DaPiPYUL.mjs} +2 -2
  165. package/dist/server/next.mjs +9 -9
  166. package/dist/server/{overrideResolution-tIuqmJB3.mjs → overrideResolution-anoB3Kbn.mjs} +1 -1
  167. package/dist/server/{overrides-D1fiPOKF.mjs → overrides-W1Cc6srh.mjs} +434 -241
  168. package/dist/server/page-converter.mjs +1 -1
  169. package/dist/server/{prebuild--fO0E2tr.mjs → prebuild-BF9yNfCS.mjs} +1 -1
  170. package/dist/server/prebuild.mjs +1 -1
  171. package/dist/server/{prefetchBlockData-CqJnokWJ.mjs → prefetchBlockData-Cn9k3DW6.mjs} +36 -11
  172. package/dist/server/{publicProducts-CvvZ4JIe.mjs → publicProducts-BVcJ6TG7.mjs} +656 -166
  173. package/dist/server/{registry-BVfCqaCq.mjs → registry-4ZF3bUuJ.mjs} +401 -74
  174. package/dist/server/rendering/server.mjs +4 -4
  175. package/dist/server/rendering.mjs +8 -8
  176. package/dist/server/{resolveBlockData-DPNvhXEz.mjs → resolveBlockData-BKQ1Fc0M.mjs} +1 -1
  177. package/dist/server/routing.mjs +1 -1
  178. package/dist/server/{schema-CD4peO7m.mjs → schema-DgrigZq9.mjs} +7748 -7135
  179. package/dist/server/server.mjs +3 -3
  180. package/dist/server/{site-styles-H-EvTJiW.mjs → site-styles-CxE9F3hj.mjs} +99 -117
  181. package/dist/server/{siteChromeOverlayClearance-DNC2k1U0.mjs → siteChromeOverlayClearance-OhS6f830.mjs} +161 -105
  182. package/dist/server/{src-ILxc6pid.mjs → src-C44_fMy5.mjs} +1190 -147
  183. package/dist/server/theme-bridge.mjs +1 -1
  184. package/dist/server/theme.mjs +1 -1
  185. package/dist/server/{themeAdmission-BNHIXiUj.mjs → themeAdmission-CVc04B9m.mjs} +36 -29
  186. package/dist/server/{validation-B1ieVemg.mjs → validation-BrbY0nxR.mjs} +2 -2
  187. package/dist/server/{version-BQK44wFg.mjs → version-BBSk8uM6.mjs} +1 -1
  188. package/dist/styles/index.css +1034 -113
  189. package/package.json +1 -1
  190. package/dist/_dts/index-BQDBQvdu.d.ts +0 -13
  191. package/dist/client/mediaAssets-BvjcAZpS.mjs +0 -16
  192. package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +0 -5812
  193. package/dist/server/loadPage--DXBwI8V.mjs +0 -2
@@ -1,5 +1,5 @@
1
- import { ln as parseSurfaceTree } from "./schema-CD4peO7m.mjs";
2
- import "./site-styles-H-EvTJiW.mjs";
1
+ import { On as parseSurfaceTree, gn as parseSiteId } from "./schema-DgrigZq9.mjs";
2
+ import "./site-styles-CxE9F3hj.mjs";
3
3
  import { z } from "zod";
4
4
  const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
5
5
  function availability(transport) {
@@ -55,6 +55,14 @@ function publicReadFreshnessSeconds(endpoint) {
55
55
  return getPublicReadCachePolicy(endpoint).freshness === "availability" ? 60 : PUBLIC_CONTENT_FRESHNESS_SECONDS;
56
56
  }
57
57
  //#endregion
58
+ //#region ../core/src/committed-write-proof.ts
59
+ /** Positive atomic storage evidence survives a failed response projection. */
60
+ const committedWriteProofSchema = z.object({
61
+ operationId: z.string().uuid(),
62
+ committedAt: z.string(),
63
+ resultingRevision: z.number().int().nonnegative()
64
+ });
65
+ //#endregion
58
66
  //#region ../blocks/src/system/data/loaderEndpoints.ts
59
67
  const SUPPORTED_LOADER_ENDPOINTS = [
60
68
  "listPublishedEntries",
@@ -83,6 +91,7 @@ const PAGE_JOURNAL_ENDPOINT_DEFINITIONS = {
83
91
  method: "POST",
84
92
  auth: "user",
85
93
  responseKind: "json",
94
+ editLease: "unleased-editor",
86
95
  errors: [
87
96
  "validation:invalid_input",
88
97
  "auth:forbidden",
@@ -313,6 +322,22 @@ const PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
313
322
  //#endregion
314
323
  //#region ../api/src/cache-tags.ts
315
324
  /**
325
+ * Canonical cache tag catalog for Riverbank.
326
+ *
327
+ * Goal: eliminate ad-hoc tag strings and drift across apps/packages.
328
+ *
329
+ * Tag scheme: `riverbank:*`
330
+ * - `riverbank` is the global tag (invalidate everything)
331
+ * - Use `riverbank:<namespace>:...` for domain/resource tags
332
+ *
333
+ * Notes:
334
+ * - This module is intentionally Next.js-independent.
335
+ * - Apps can use these tags with Next's `revalidateTag()` and `unstable_cache`.
336
+ * - Endpoint definitions in `packages/api/src/endpoints.ts` may use the template
337
+ * strings (with `{param}` placeholders) for fetch cache tagging.
338
+ */
339
+ const RIVERBANK_GLOBAL_TAG = "riverbank";
340
+ /**
316
341
  * Tag templates for endpoint definitions (support `{param}` placeholders).
317
342
  */
318
343
  const TAG_TEMPLATES = {
@@ -351,6 +376,186 @@ const TAG_TEMPLATES = {
351
376
  navigationItemById: "riverbank:navigation-item:{itemId}",
352
377
  siteTheme: "riverbank:site:{siteId}:theme"
353
378
  };
379
+ function normalizeRevalidateTags(input) {
380
+ return Array.from(new Set(input.map((t) => t.trim()).filter(Boolean)));
381
+ }
382
+ /**
383
+ * Tag builders for runtime invalidation and caching.
384
+ */
385
+ const tags = {
386
+ global() {
387
+ return RIVERBANK_GLOBAL_TAG;
388
+ },
389
+ siteCollection() {
390
+ return TAG_TEMPLATES.siteCollection;
391
+ },
392
+ site(siteId) {
393
+ return `riverbank:site:${siteId}`;
394
+ },
395
+ siteById(siteId) {
396
+ return `riverbank:site:id:${siteId}`;
397
+ },
398
+ siteBySlug(slug) {
399
+ return `riverbank:site:slug:${slug}`;
400
+ },
401
+ siteByDomain(domain) {
402
+ return `riverbank:site:domain:${domain}`;
403
+ },
404
+ siteSettings(siteId) {
405
+ return `riverbank:site:${siteId}:settings`;
406
+ },
407
+ siteEmailSettings(siteId) {
408
+ return `riverbank:site:${siteId}:email-settings`;
409
+ },
410
+ siteBookingSettings(siteId) {
411
+ return `riverbank:site:${siteId}:booking-settings`;
412
+ },
413
+ siteNewsletter(siteId) {
414
+ return `riverbank:site:${siteId}:newsletter`;
415
+ },
416
+ siteRoutableContent(siteId) {
417
+ return `riverbank:site:${siteId}:routable-content`;
418
+ },
419
+ siteRedirects(siteId) {
420
+ return `riverbank:site:${siteId}:redirects`;
421
+ },
422
+ siteRouteOutcomes(siteId) {
423
+ return `riverbank:site:${siteId}:route-outcomes`;
424
+ },
425
+ route(routeId) {
426
+ return `riverbank:route:${routeId}`;
427
+ },
428
+ page(pageId) {
429
+ return `riverbank:page:${pageId}`;
430
+ },
431
+ pageSurface(pageSurfaceId) {
432
+ return `riverbank:page-surface:${pageSurfaceId}`;
433
+ },
434
+ surfaceSlot(surfaceSlotId) {
435
+ return `riverbank:surface-slot:${surfaceSlotId}`;
436
+ },
437
+ workflowRun(runId) {
438
+ return `riverbank:workflow-run:${runId}`;
439
+ },
440
+ siteForms(siteId) {
441
+ return `riverbank:site:${siteId}:forms`;
442
+ },
443
+ form(formId) {
444
+ return `riverbank:form:${formId}`;
445
+ },
446
+ entry(entryId) {
447
+ return `riverbank:entry:${entryId}`;
448
+ },
449
+ formSubmissionsBySlug(slug) {
450
+ return `riverbank:form-submissions:${slug}`;
451
+ },
452
+ publicEvents(siteId) {
453
+ return `riverbank:site:${siteId}:public-events`;
454
+ },
455
+ publicEventFilters(siteId) {
456
+ return `riverbank:site:${siteId}:public-event-filters`;
457
+ },
458
+ publicTeamMembers(siteId) {
459
+ return `riverbank:site:${siteId}:public-team-members`;
460
+ },
461
+ publicProducts(siteId) {
462
+ return `riverbank:site:${siteId}:public-products`;
463
+ },
464
+ publicPasses(siteId) {
465
+ return `riverbank:site:${siteId}:public-passes`;
466
+ },
467
+ publicMemberships(siteId) {
468
+ return `riverbank:site:${siteId}:public-memberships`;
469
+ },
470
+ publicGifting(siteId) {
471
+ return `riverbank:site:${siteId}:public-gifting`;
472
+ },
473
+ publicShop(siteId) {
474
+ return `riverbank:site:${siteId}:public-shop`;
475
+ },
476
+ publicCheckout(siteId) {
477
+ return `riverbank:site:${siteId}:public-checkout`;
478
+ },
479
+ publicBookingServices(siteId) {
480
+ return `riverbank:site:${siteId}:public-booking-services`;
481
+ },
482
+ /**
483
+ * Slot-level appointment availability for a site (dates, slots, weekly grid).
484
+ * Separate from `publicBookingServices` because every appointment booked or
485
+ * cancelled changes availability, while the service catalogue rarely moves.
486
+ */
487
+ publicBookingAvailability(siteId) {
488
+ return `riverbank:site:${siteId}:public-booking-availability`;
489
+ },
490
+ siteNavigation(siteId) {
491
+ return `riverbank:site:${siteId}:navigation`;
492
+ },
493
+ navigationMenu(menuId) {
494
+ return `riverbank:navigation-menu:${menuId}`;
495
+ },
496
+ navigationItem(itemId) {
497
+ return `riverbank:navigation-item:${itemId}`;
498
+ },
499
+ siteTheme(siteId) {
500
+ return `riverbank:site:${siteId}:theme`;
501
+ }
502
+ };
503
+ /** Lookup tags work before a host/slug read knows the resolved site ID. */
504
+ function optionalLookupTag(value, build) {
505
+ return typeof value === "string" && value.trim() ? [build(value.trim())] : [];
506
+ }
507
+ function buildSiteReadTags(params) {
508
+ return normalizeRevalidateTags([
509
+ ...optionalLookupTag(params.siteId, (id) => tags.site(normalizeSiteCacheId(id))),
510
+ ...optionalLookupTag(params.id, (id) => tags.siteById(normalizeSiteCacheId(id))),
511
+ ...optionalLookupTag(params.slug, tags.siteBySlug),
512
+ ...optionalLookupTag(params.domain, (domain) => tags.siteByDomain(normalizeSiteCacheDomain(domain)))
513
+ ]);
514
+ }
515
+ /** Resolve endpoint templates once; every read with a siteId shares its root tag. */
516
+ function buildCacheReadTags(templates, input = {}) {
517
+ const params = siteIdentifierTagParams(input);
518
+ return normalizeRevalidateTags([...templates.flatMap((template) => {
519
+ if ([
520
+ TAG_TEMPLATES.siteById,
521
+ TAG_TEMPLATES.siteBySlug,
522
+ TAG_TEMPLATES.siteByDomain
523
+ ].some((lookup) => lookup === template)) return [];
524
+ const tag = template.replace(/\{([^}]+)\}/gu, (placeholder, key) => {
525
+ const value = params[key];
526
+ return typeof value === "string" || typeof value === "number" || typeof value === "boolean" ? String(value) : placeholder;
527
+ });
528
+ return /\{[^}]+\}/u.test(tag) || tag === tags.siteCollection() || tag === "riverbank" ? [] : [tag];
529
+ }), ...buildSiteReadTags({
530
+ siteId: params.siteId,
531
+ ...templates.includes(TAG_TEMPLATES.siteById) ? { id: params.id } : {},
532
+ ...templates.includes(TAG_TEMPLATES.siteBySlug) ? { slug: params.slug } : {},
533
+ ...templates.includes(TAG_TEMPLATES.siteByDomain) ? { domain: params.domain } : {}
534
+ })]);
535
+ }
536
+ function normalizeSiteCacheDomain(domain) {
537
+ try {
538
+ return new URL(`https://${domain.trim()}`).hostname.toLowerCase().replace(/\.$/u, "");
539
+ } catch {
540
+ return domain.trim().toLowerCase();
541
+ }
542
+ }
543
+ function siteIdentifierTagParams(params) {
544
+ if (typeof params.site !== "string") return params;
545
+ const siteId = parseSiteId(params.site);
546
+ return siteId.ok ? {
547
+ ...params,
548
+ id: siteId.value,
549
+ siteId: siteId.value
550
+ } : {
551
+ ...params,
552
+ slug: params.site
553
+ };
554
+ }
555
+ function normalizeSiteCacheId(id) {
556
+ const parsed = parseSiteId(id);
557
+ return parsed.ok ? parsed.value : id;
558
+ }
354
559
  //#endregion
355
560
  //#region ../api/src/sdkEntryReadEndpoints.ts
356
561
  const SDK_ENTRY_READ_ENDPOINTS = {
@@ -400,18 +605,6 @@ const GUARDED_CONTENT_REPLAY_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
400
605
  "resource:conflict"
401
606
  ]
402
607
  },
403
- restoreLiveTemplate: {
404
- path: "/sites/{siteId}/content/types/{type}/template/restore",
405
- method: "POST",
406
- tags: ["site-{siteId}", "content-template-{siteId}-{type}"],
407
- auth: "user",
408
- responseKind: "json",
409
- errors: [
410
- "validation:invalid_input",
411
- "resource:not_found",
412
- "resource:conflict"
413
- ]
414
- },
415
608
  restoreEntrySlotStructure: {
416
609
  editLease: "managed",
417
610
  path: "/sites/{siteId}/content/{type}/{entryId}/slots/{slotKey}/blocks/restore",
@@ -784,6 +977,18 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
784
977
  "server:internal_error"
785
978
  ]
786
979
  },
980
+ draftTeamMemberProfileBio: {
981
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/bio-draft",
982
+ method: "POST",
983
+ auth: "user",
984
+ responseKind: "json",
985
+ errors: [
986
+ "auth:forbidden",
987
+ "resource:not_found",
988
+ "server:internal_error"
989
+ ],
990
+ demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN
991
+ },
787
992
  scheduleTeamMemberProfile: {
788
993
  path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/{entryId}/schedule",
789
994
  method: "POST",
@@ -822,7 +1027,7 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
822
1027
  path: "/sites/{siteId}/bookings/resources/{resourceId}/profile/routes/{routeId}/metadata",
823
1028
  method: "PATCH",
824
1029
  tags: [
825
- TAG_TEMPLATES.siteCollection,
1030
+ TAG_TEMPLATES.site,
826
1031
  TAG_TEMPLATES.siteRoutableContent,
827
1032
  TAG_TEMPLATES.routeById
828
1033
  ],
@@ -1215,6 +1420,43 @@ const ACCOUNT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1215
1420
  //#endregion
1216
1421
  //#region ../api/src/eventSeriesRegistrationEndpointDefinitions.ts
1217
1422
  const EVENT_SERIES_REGISTRATION_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1423
+ getBookingDetail: {
1424
+ path: "/sites/{siteId}/bookings/booking/{kind}/{bookingId}",
1425
+ method: "GET",
1426
+ auth: "user",
1427
+ responseKind: "json",
1428
+ errors: [
1429
+ "auth:forbidden",
1430
+ "resource:not_found",
1431
+ "server:internal_error"
1432
+ ]
1433
+ },
1434
+ saveEventAttendeeAnswers: {
1435
+ path: "/sites/{siteId}/bookings/attendees/{attendeeId}/answers",
1436
+ method: "PUT",
1437
+ auth: "user",
1438
+ responseKind: "json",
1439
+ errors: [
1440
+ "validation:invalid_input",
1441
+ "auth:forbidden",
1442
+ "resource:not_found",
1443
+ "resource:conflict",
1444
+ "server:internal_error"
1445
+ ]
1446
+ },
1447
+ correctBookingCheckIn: {
1448
+ path: "/sites/{siteId}/bookings/attendees/{attendeeId}/check-in",
1449
+ method: "PATCH",
1450
+ auth: "user",
1451
+ responseKind: "json",
1452
+ errors: [
1453
+ "validation:invalid_input",
1454
+ "auth:forbidden",
1455
+ "resource:not_found",
1456
+ "resource:conflict",
1457
+ "server:internal_error"
1458
+ ]
1459
+ },
1218
1460
  deleteEventOffering: {
1219
1461
  path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}",
1220
1462
  method: "DELETE",
@@ -2297,6 +2539,7 @@ const EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
2297
2539
  * event itself, so its address is written here rather than through a run.
2298
2540
  */
2299
2541
  updateEventAddress: {
2542
+ editLease: "managed",
2300
2543
  path: "/sites/{siteId}/bookings/events/{eventId}/address",
2301
2544
  method: "PATCH",
2302
2545
  tags: [
@@ -2664,6 +2907,64 @@ const SDK_MEDIA_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
2664
2907
  * derive freshness reviewable beside its route and tags.
2665
2908
  */
2666
2909
  const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
2910
+ checkRedirect: {
2911
+ path: "/public/content/redirect",
2912
+ method: "GET",
2913
+ revalidate: 86400,
2914
+ tags: [
2915
+ TAG_TEMPLATES.siteById,
2916
+ TAG_TEMPLATES.siteBySlug,
2917
+ TAG_TEMPLATES.siteRedirects
2918
+ ],
2919
+ errors: [],
2920
+ auth: "public",
2921
+ responseKind: "json"
2922
+ },
2923
+ getSite: {
2924
+ path: "/sites",
2925
+ method: "GET",
2926
+ errors: [],
2927
+ revalidate: 900,
2928
+ tags: [
2929
+ TAG_TEMPLATES.siteById,
2930
+ TAG_TEMPLATES.siteBySlug,
2931
+ TAG_TEMPLATES.siteByDomain
2932
+ ],
2933
+ auth: "public",
2934
+ responseKind: "json"
2935
+ },
2936
+ getRoutableContent: {
2937
+ path: "/sites/{siteId}/routable-content",
2938
+ method: "GET",
2939
+ revalidate: 60,
2940
+ errors: [],
2941
+ tags: [TAG_TEMPLATES.siteRoutableContent],
2942
+ auth: "user",
2943
+ responseKind: "json"
2944
+ },
2945
+ getPublicRoutableContent: {
2946
+ path: "/public/sites/{siteId}/routable-content",
2947
+ method: "GET",
2948
+ revalidate: 60,
2949
+ errors: [],
2950
+ tags: [TAG_TEMPLATES.siteRoutableContent],
2951
+ auth: "public",
2952
+ responseKind: "json"
2953
+ },
2954
+ getPublicSitemapRoutes: {
2955
+ path: "/public/sites/{siteId}/sitemap",
2956
+ method: "GET",
2957
+ revalidate: 60,
2958
+ errors: [],
2959
+ tags: [
2960
+ TAG_TEMPLATES.siteRoutableContent,
2961
+ TAG_TEMPLATES.siteSettings,
2962
+ TAG_TEMPLATES.publicEvents,
2963
+ TAG_TEMPLATES.publicBookingServices
2964
+ ],
2965
+ auth: "public",
2966
+ responseKind: "json"
2967
+ },
2667
2968
  getPublishedEntryPreview: {
2668
2969
  path: "/public/content/{siteId}/{type}/{slug}/preview",
2669
2970
  method: "GET",
@@ -2741,6 +3042,27 @@ const PUBLIC_READ_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
2741
3042
  * kept together so that stays obvious.
2742
3043
  */
2743
3044
  const PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
3045
+ mintOnboardingPagePreviewToken: {
3046
+ path: "/public/onboarding/attempts/{attemptToken}/page-preview-token",
3047
+ method: "POST",
3048
+ auth: "public",
3049
+ errors: [],
3050
+ responseKind: "json"
3051
+ },
3052
+ suggestPublicOnboardingLooks: {
3053
+ path: "/public/onboarding/attempts/{attemptToken}/look-suggestion",
3054
+ method: "POST",
3055
+ auth: "public",
3056
+ errors: [],
3057
+ responseKind: "json"
3058
+ },
3059
+ getOnboardingPagePreview: {
3060
+ path: "/public/onboarding/page-preview/{attemptId}",
3061
+ method: "GET",
3062
+ auth: "public",
3063
+ errors: [],
3064
+ responseKind: "json"
3065
+ },
2744
3066
  createPublicOnboardingAttempt: {
2745
3067
  path: "/public/onboarding/attempts",
2746
3068
  method: "POST",
@@ -2815,6 +3137,15 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
2815
3137
  auth: "user",
2816
3138
  responseKind: "json"
2817
3139
  },
3140
+ /** Prepare or reconcile the card page; only the attempt's owner. */
3141
+ prepareOnboardingPlanCheckout: {
3142
+ path: "/onboarding/attempts/{attemptToken}/plan",
3143
+ method: "POST",
3144
+ tags: ["billing"],
3145
+ auth: "user",
3146
+ errors: [],
3147
+ responseKind: "json"
3148
+ },
2818
3149
  /** Continue on Free from the onboarding card page; only the attempt's owner. */
2819
3150
  continueOnboardingOnFree: {
2820
3151
  path: "/onboarding/attempts/{attemptToken}/plan/free",
@@ -2824,12 +3155,72 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
2824
3155
  errors: [],
2825
3156
  responseKind: "json"
2826
3157
  },
2827
- createBillingPortalSession: {
2828
- path: "/billing/portal/session",
3158
+ getAccountInvoiceRecovery: {
3159
+ path: "/billing/recovery",
3160
+ method: "GET",
3161
+ tags: ["billing"],
3162
+ auth: "user",
3163
+ responseKind: "json",
3164
+ errors: [
3165
+ "validation:invalid_input",
3166
+ "auth:unauthenticated",
3167
+ "external:service_error",
3168
+ "server:internal_error"
3169
+ ]
3170
+ },
3171
+ getAccountBillingDetails: {
3172
+ path: "/billing/details",
3173
+ method: "GET",
3174
+ tags: ["billing"],
3175
+ auth: "user",
3176
+ responseKind: "json",
3177
+ errors: [
3178
+ "auth:unauthenticated",
3179
+ "external:service_error",
3180
+ "server:internal_error"
3181
+ ]
3182
+ },
3183
+ getAccountBillingInvoices: {
3184
+ path: "/billing/invoices",
3185
+ method: "GET",
3186
+ tags: ["billing"],
3187
+ auth: "user",
3188
+ responseKind: "json",
3189
+ errors: [
3190
+ "validation:invalid_input",
3191
+ "auth:unauthenticated",
3192
+ "resource:conflict",
3193
+ "external:service_error",
3194
+ "server:internal_error"
3195
+ ]
3196
+ },
3197
+ startAccountPaymentMethodSetup: {
3198
+ path: "/billing/payment-method/setup",
2829
3199
  method: "POST",
2830
3200
  tags: ["billing"],
2831
3201
  auth: "user",
2832
- responseKind: "json"
3202
+ responseKind: "json",
3203
+ errors: [
3204
+ "validation:invalid_input",
3205
+ "auth:unauthenticated",
3206
+ "resource:conflict",
3207
+ "external:service_error",
3208
+ "server:internal_error"
3209
+ ]
3210
+ },
3211
+ finishAccountPaymentMethodSetup: {
3212
+ path: "/billing/payment-method/finish",
3213
+ method: "POST",
3214
+ tags: ["billing"],
3215
+ auth: "user",
3216
+ responseKind: "json",
3217
+ errors: [
3218
+ "validation:invalid_input",
3219
+ "auth:unauthenticated",
3220
+ "resource:conflict",
3221
+ "external:service_error",
3222
+ "server:internal_error"
3223
+ ]
2833
3224
  },
2834
3225
  stripeConnectSetupStart: {
2835
3226
  path: "/sites/{siteId}/billing/connect/setup",
@@ -2985,7 +3376,7 @@ const EDIT_LEASE_ENDPOINT_DEFINITIONS = {
2985
3376
  acquireEditLease: {
2986
3377
  path,
2987
3378
  method: "POST",
2988
- editLease: "lifecycle",
3379
+ editLease: "unleased-editor",
2989
3380
  errors: lifecycleErrors,
2990
3381
  auth: "user",
2991
3382
  responseKind: "json"
@@ -2993,7 +3384,7 @@ const EDIT_LEASE_ENDPOINT_DEFINITIONS = {
2993
3384
  takeOverEditLease: {
2994
3385
  path,
2995
3386
  method: "PUT",
2996
- editLease: "lifecycle",
3387
+ editLease: "unleased-editor",
2997
3388
  errors: lifecycleErrors,
2998
3389
  auth: "user",
2999
3390
  responseKind: "json"
@@ -3001,7 +3392,7 @@ const EDIT_LEASE_ENDPOINT_DEFINITIONS = {
3001
3392
  heartbeatEditLease: {
3002
3393
  path,
3003
3394
  method: "PATCH",
3004
- editLease: "lifecycle",
3395
+ editLease: "unleased-editor",
3005
3396
  errors: [...lifecycleErrors, "auth:lease_lost"],
3006
3397
  auth: "user",
3007
3398
  responseKind: "json"
@@ -3017,7 +3408,7 @@ const EDIT_LEASE_ENDPOINT_DEFINITIONS = {
3017
3408
  };
3018
3409
  //#endregion
3019
3410
  //#region ../api/src/pageSurfaceEditorEndpoints.ts
3020
- const surfaceTags = [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById];
3411
+ const surfaceTags = [TAG_TEMPLATES.site, TAG_TEMPLATES.pageSurfaceById];
3021
3412
  const PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS = {
3022
3413
  getPageSurfaceEditorDocument: {
3023
3414
  path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content",
@@ -3072,7 +3463,7 @@ const PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS = {
3072
3463
  "server:internal_error"
3073
3464
  ],
3074
3465
  tags: [
3075
- TAG_TEMPLATES.siteCollection,
3466
+ TAG_TEMPLATES.site,
3076
3467
  TAG_TEMPLATES.siteRoutableContent,
3077
3468
  TAG_TEMPLATES.pageSurfaceById
3078
3469
  ],
@@ -3091,7 +3482,7 @@ const PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS = {
3091
3482
  "server:internal_error"
3092
3483
  ],
3093
3484
  tags: [
3094
- TAG_TEMPLATES.siteCollection,
3485
+ TAG_TEMPLATES.site,
3095
3486
  TAG_TEMPLATES.siteRoutableContent,
3096
3487
  TAG_TEMPLATES.pageSurfaceById
3097
3488
  ],
@@ -3110,7 +3501,7 @@ const PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS = {
3110
3501
  "server:internal_error"
3111
3502
  ],
3112
3503
  tags: [
3113
- TAG_TEMPLATES.siteCollection,
3504
+ TAG_TEMPLATES.site,
3114
3505
  TAG_TEMPLATES.siteRoutableContent,
3115
3506
  TAG_TEMPLATES.pageSurfaceById
3116
3507
  ],
@@ -3236,6 +3627,7 @@ const API_ENDPOINTS = {
3236
3627
  ...PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS,
3237
3628
  ...SITE_MANAGEMENT_ENDPOINT_DEFINITIONS,
3238
3629
  applySeoChanges: {
3630
+ editLease: "unleased-editor",
3239
3631
  path: "/seo/apply",
3240
3632
  method: "POST",
3241
3633
  auth: "user",
@@ -3353,6 +3745,14 @@ const API_ENDPOINTS = {
3353
3745
  errors: [],
3354
3746
  responseKind: "json"
3355
3747
  },
3748
+ markBookingHomeSeen: {
3749
+ path: "/sites/{siteId}/home/seen",
3750
+ method: "POST",
3751
+ auth: "user",
3752
+ errors: [],
3753
+ responseKind: "json",
3754
+ demoMutation: DEMO_MUTATION_ALLOWED
3755
+ },
3356
3756
  resendOnboardingPreviewConfirmation: {
3357
3757
  path: "/public/sites/{siteId}/onboarding/resend-confirmation",
3358
3758
  method: "POST",
@@ -3396,15 +3796,6 @@ const API_ENDPOINTS = {
3396
3796
  errors: [],
3397
3797
  responseKind: "text"
3398
3798
  },
3399
- checkRedirect: {
3400
- path: "/public/content/redirect",
3401
- method: "GET",
3402
- revalidate: 86400,
3403
- tags: ["redirect"],
3404
- errors: [],
3405
- auth: "public",
3406
- responseKind: "json"
3407
- },
3408
3799
  listRedirectRules: {
3409
3800
  path: "/sites/{siteId}/redirects",
3410
3801
  method: "GET",
@@ -3647,6 +4038,19 @@ const API_ENDPOINTS = {
3647
4038
  auth: "user",
3648
4039
  responseKind: "json"
3649
4040
  },
4041
+ updateEmailSendSetting: {
4042
+ path: "/sites/{siteId}/settings/emails/{emailKey}/send-setting",
4043
+ method: "PUT",
4044
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteBookingSettings],
4045
+ auth: "user",
4046
+ responseKind: "json",
4047
+ errors: [
4048
+ "validation:invalid_input",
4049
+ "auth:forbidden",
4050
+ "resource:conflict",
4051
+ "server:internal_error"
4052
+ ]
4053
+ },
3650
4054
  sendTestEmail: {
3651
4055
  path: "/sites/{siteId}/settings/emails/test",
3652
4056
  method: "POST",
@@ -3665,37 +4069,12 @@ const API_ENDPOINTS = {
3665
4069
  ...NEWSLETTER_ENDPOINT_DEFINITIONS,
3666
4070
  ...APPOINTMENT_ENDPOINT_DEFINITIONS,
3667
4071
  ...EVENT_SERIES_REGISTRATION_ENDPOINT_DEFINITIONS,
3668
- getSite: {
3669
- path: "/sites",
3670
- method: "GET",
3671
- revalidate: 900,
3672
- tags: [
3673
- TAG_TEMPLATES.siteCollection,
3674
- TAG_TEMPLATES.siteById,
3675
- TAG_TEMPLATES.siteBySlug,
3676
- TAG_TEMPLATES.siteByDomain
3677
- ],
3678
- auth: "public",
3679
- responseKind: "json"
3680
- },
3681
- getSiteIdOnly: {
3682
- path: "/sites",
3683
- method: "GET",
3684
- revalidate: 900,
3685
- tags: [
3686
- TAG_TEMPLATES.siteCollection,
3687
- TAG_TEMPLATES.siteById,
3688
- TAG_TEMPLATES.siteBySlug,
3689
- TAG_TEMPLATES.siteByDomain
3690
- ],
3691
- auth: "public",
3692
- responseKind: "json"
3693
- },
4072
+ getSiteIdOnly: PUBLIC_READ_ENDPOINT_DEFINITIONS.getSite,
3694
4073
  getSiteBySlug: {
3695
4074
  path: "/sites/by-slug/{slug}",
3696
4075
  method: "GET",
3697
4076
  revalidate: 900,
3698
- tags: ["site", "site-{slug}"],
4077
+ tags: [TAG_TEMPLATES.siteBySlug],
3699
4078
  auth: "user",
3700
4079
  responseKind: "json"
3701
4080
  },
@@ -3703,7 +4082,7 @@ const API_ENDPOINTS = {
3703
4082
  path: "/sites/by-domain/{domain}",
3704
4083
  method: "GET",
3705
4084
  revalidate: 900,
3706
- tags: ["site", "site-domain-{domain}"],
4085
+ tags: [TAG_TEMPLATES.siteByDomain],
3707
4086
  auth: "user",
3708
4087
  responseKind: "json"
3709
4088
  },
@@ -3911,6 +4290,7 @@ const API_ENDPOINTS = {
3911
4290
  responseKind: "json"
3912
4291
  },
3913
4292
  updateContentTemplateBlock: {
4293
+ editLease: "unleased-editor",
3914
4294
  path: "/sites/{siteId}/content/types/{type}/template/blocks/{blockId}",
3915
4295
  method: "PATCH",
3916
4296
  tags: [
@@ -3922,6 +4302,7 @@ const API_ENDPOINTS = {
3922
4302
  responseKind: "json"
3923
4303
  },
3924
4304
  applyContentTemplateAddon: {
4305
+ editLease: "unleased-editor",
3925
4306
  path: "/sites/{siteId}/content/types/{type}/template/addons",
3926
4307
  method: "POST",
3927
4308
  tags: ["site-{siteId}", "content-template-{siteId}-{type}"],
@@ -3929,6 +4310,7 @@ const API_ENDPOINTS = {
3929
4310
  responseKind: "json"
3930
4311
  },
3931
4312
  updateContentTemplateBlockBindings: {
4313
+ editLease: "unleased-editor",
3932
4314
  path: "/sites/{siteId}/content/types/{type}/template/blocks/{blockId}/bindings",
3933
4315
  method: "PATCH",
3934
4316
  tags: [
@@ -3940,6 +4322,7 @@ const API_ENDPOINTS = {
3940
4322
  responseKind: "json"
3941
4323
  },
3942
4324
  createTemplateBlock: {
4325
+ editLease: "unleased-editor",
3943
4326
  path: "/sites/{siteId}/content/types/{type}/template/blocks",
3944
4327
  method: "POST",
3945
4328
  tags: ["site-{siteId}", "content-template-{siteId}-{type}"],
@@ -3947,6 +4330,7 @@ const API_ENDPOINTS = {
3947
4330
  responseKind: "json"
3948
4331
  },
3949
4332
  deleteTemplateBlock: {
4333
+ editLease: "unleased-editor",
3950
4334
  path: "/sites/{siteId}/content/types/{type}/template/blocks/{blockId}",
3951
4335
  method: "DELETE",
3952
4336
  tags: [
@@ -3958,6 +4342,7 @@ const API_ENDPOINTS = {
3958
4342
  responseKind: "json"
3959
4343
  },
3960
4344
  reorderTemplateBlocks: {
4345
+ editLease: "unleased-editor",
3961
4346
  path: "/sites/{siteId}/content/types/{type}/template/blocks/reorder",
3962
4347
  method: "POST",
3963
4348
  tags: ["site-{siteId}", "content-template-{siteId}-{type}"],
@@ -4110,7 +4495,7 @@ const API_ENDPOINTS = {
4110
4495
  path: "/sites/{siteId}/routes/{routeId}/metadata",
4111
4496
  method: "PATCH",
4112
4497
  tags: [
4113
- TAG_TEMPLATES.siteCollection,
4498
+ TAG_TEMPLATES.site,
4114
4499
  TAG_TEMPLATES.siteRoutableContent,
4115
4500
  TAG_TEMPLATES.routeById
4116
4501
  ],
@@ -4261,6 +4646,7 @@ const API_ENDPOINTS = {
4261
4646
  path: "/sites/{siteId}/content/{type}/bulk-publish",
4262
4647
  method: "POST",
4263
4648
  tags: ["site-{siteId}", "content-{siteId}-{type}"],
4649
+ editLease: "unleased-editor",
4264
4650
  auth: "user",
4265
4651
  responseKind: "json"
4266
4652
  },
@@ -4268,6 +4654,7 @@ const API_ENDPOINTS = {
4268
4654
  path: "/sites/{siteId}/content/{type}/bulk-unpublish",
4269
4655
  method: "POST",
4270
4656
  tags: ["site-{siteId}", "content-{siteId}-{type}"],
4657
+ editLease: "unleased-editor",
4271
4658
  auth: "user",
4272
4659
  responseKind: "json"
4273
4660
  },
@@ -4275,6 +4662,7 @@ const API_ENDPOINTS = {
4275
4662
  path: "/sites/{siteId}/content/{type}/bulk-delete",
4276
4663
  method: "POST",
4277
4664
  tags: ["site-{siteId}", "content-{siteId}-{type}"],
4665
+ editLease: "unleased-editor",
4278
4666
  auth: "user",
4279
4667
  responseKind: "json",
4280
4668
  errors: [
@@ -4295,11 +4683,7 @@ const API_ENDPOINTS = {
4295
4683
  getSiteFooterBlocks: {
4296
4684
  path: "/sites/{siteId}/content/footer-blocks",
4297
4685
  method: "GET",
4298
- tags: [
4299
- TAG_TEMPLATES.siteCollection,
4300
- TAG_TEMPLATES.site,
4301
- TAG_TEMPLATES.siteSettings
4302
- ],
4686
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
4303
4687
  auth: "user",
4304
4688
  responseKind: "json",
4305
4689
  errors: [
@@ -4309,13 +4693,10 @@ const API_ENDPOINTS = {
4309
4693
  ]
4310
4694
  },
4311
4695
  updateSiteFooterBlocks: {
4696
+ editLease: "unleased-editor",
4312
4697
  path: "/sites/{siteId}/content/footer-blocks",
4313
4698
  method: "PUT",
4314
- tags: [
4315
- TAG_TEMPLATES.siteCollection,
4316
- TAG_TEMPLATES.site,
4317
- TAG_TEMPLATES.siteSettings
4318
- ],
4699
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
4319
4700
  auth: "user",
4320
4701
  responseKind: "json",
4321
4702
  errors: [
@@ -4328,7 +4709,7 @@ const API_ENDPOINTS = {
4328
4709
  updateSiteDeploymentMode: {
4329
4710
  path: "/sites/{siteId}/settings/deployment-mode",
4330
4711
  method: "POST",
4331
- tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.site],
4712
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.site],
4332
4713
  auth: "user",
4333
4714
  responseKind: "json"
4334
4715
  },
@@ -4493,6 +4874,7 @@ const API_ENDPOINTS = {
4493
4874
  responseKind: "json"
4494
4875
  },
4495
4876
  updateFooterComposition: {
4877
+ editLease: "unleased-editor",
4496
4878
  path: "/sites/{siteId}/settings/footer-composition",
4497
4879
  method: "POST",
4498
4880
  tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
@@ -4515,6 +4897,7 @@ const API_ENDPOINTS = {
4515
4897
  responseKind: "json"
4516
4898
  },
4517
4899
  updatePublicProfile: {
4900
+ editLease: "unleased-editor",
4518
4901
  path: "/sites/{siteId}/settings/public-profile",
4519
4902
  method: "POST",
4520
4903
  tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
@@ -4551,6 +4934,7 @@ const API_ENDPOINTS = {
4551
4934
  responseKind: "json"
4552
4935
  },
4553
4936
  setHomepage: {
4937
+ editLease: "unleased-editor",
4554
4938
  path: "/sites/{siteId}/settings/homepage",
4555
4939
  method: "POST",
4556
4940
  tags: ["site-{siteId}", "site-homepage"],
@@ -5043,7 +5427,7 @@ const API_ENDPOINTS = {
5043
5427
  getNavigationMenus: {
5044
5428
  path: "/sites/{siteId}/navigation/menus",
5045
5429
  method: "GET",
5046
- tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteNavigation],
5430
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNavigation],
5047
5431
  auth: "user",
5048
5432
  responseKind: "json"
5049
5433
  },
@@ -5051,7 +5435,7 @@ const API_ENDPOINTS = {
5051
5435
  path: "/sites/{siteId}/navigation/menus/{menuId}",
5052
5436
  method: "GET",
5053
5437
  tags: [
5054
- TAG_TEMPLATES.siteCollection,
5438
+ TAG_TEMPLATES.site,
5055
5439
  TAG_TEMPLATES.siteNavigation,
5056
5440
  TAG_TEMPLATES.navigationMenuById
5057
5441
  ],
@@ -5062,7 +5446,7 @@ const API_ENDPOINTS = {
5062
5446
  path: "/sites/{siteId}/navigation/menus/{menuId}/items",
5063
5447
  method: "POST",
5064
5448
  tags: [
5065
- TAG_TEMPLATES.siteCollection,
5449
+ TAG_TEMPLATES.site,
5066
5450
  TAG_TEMPLATES.siteNavigation,
5067
5451
  TAG_TEMPLATES.navigationMenuById
5068
5452
  ],
@@ -5073,7 +5457,7 @@ const API_ENDPOINTS = {
5073
5457
  path: "/sites/{siteId}/navigation/menus/{menuId}/items/{itemId}",
5074
5458
  method: "PATCH",
5075
5459
  tags: [
5076
- TAG_TEMPLATES.siteCollection,
5460
+ TAG_TEMPLATES.site,
5077
5461
  TAG_TEMPLATES.siteNavigation,
5078
5462
  TAG_TEMPLATES.navigationMenuById,
5079
5463
  TAG_TEMPLATES.navigationItemById
@@ -5085,7 +5469,7 @@ const API_ENDPOINTS = {
5085
5469
  path: "/sites/{siteId}/navigation/menus/{menuId}/items/{itemId}",
5086
5470
  method: "DELETE",
5087
5471
  tags: [
5088
- TAG_TEMPLATES.siteCollection,
5472
+ TAG_TEMPLATES.site,
5089
5473
  TAG_TEMPLATES.siteNavigation,
5090
5474
  TAG_TEMPLATES.navigationMenuById,
5091
5475
  TAG_TEMPLATES.navigationItemById
@@ -5097,42 +5481,13 @@ const API_ENDPOINTS = {
5097
5481
  path: "/sites/{siteId}/navigation/menus/{menuId}/items/reorder",
5098
5482
  method: "POST",
5099
5483
  tags: [
5100
- TAG_TEMPLATES.siteCollection,
5484
+ TAG_TEMPLATES.site,
5101
5485
  TAG_TEMPLATES.siteNavigation,
5102
5486
  TAG_TEMPLATES.navigationMenuById
5103
5487
  ],
5104
5488
  auth: "user",
5105
5489
  responseKind: "json"
5106
5490
  },
5107
- getRoutableContent: {
5108
- path: "/sites/{siteId}/routable-content",
5109
- method: "GET",
5110
- revalidate: 60,
5111
- tags: [TAG_TEMPLATES.siteRoutableContent],
5112
- auth: "user",
5113
- responseKind: "json"
5114
- },
5115
- getPublicRoutableContent: {
5116
- path: "/public/sites/{siteId}/routable-content",
5117
- method: "GET",
5118
- revalidate: 60,
5119
- tags: [TAG_TEMPLATES.siteRoutableContent],
5120
- auth: "public",
5121
- responseKind: "json"
5122
- },
5123
- getPublicSitemapRoutes: {
5124
- path: "/public/sites/{siteId}/sitemap",
5125
- method: "GET",
5126
- revalidate: 60,
5127
- tags: [
5128
- TAG_TEMPLATES.siteRoutableContent,
5129
- TAG_TEMPLATES.siteSettings,
5130
- TAG_TEMPLATES.publicEvents,
5131
- TAG_TEMPLATES.publicBookingServices
5132
- ],
5133
- auth: "public",
5134
- responseKind: "json"
5135
- },
5136
5491
  getPublishedPostPreview: {
5137
5492
  path: "/public/posts/{siteId}/{slug}/preview",
5138
5493
  method: "GET",
@@ -5149,16 +5504,30 @@ const API_ENDPOINTS = {
5149
5504
  responseKind: "json"
5150
5505
  },
5151
5506
  saveSiteTheme: {
5507
+ editLease: "unleased-editor",
5152
5508
  path: "/sites/{siteId}/theme/save",
5153
5509
  method: "POST",
5154
- tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
5510
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteTheme],
5155
5511
  auth: "user",
5156
5512
  responseKind: "json"
5157
5513
  },
5514
+ previewSiteStyleSelection: {
5515
+ path: "/public/sites/{siteId}/theme/style-selection/preview",
5516
+ method: "POST",
5517
+ auth: "public",
5518
+ errors: [
5519
+ "validation:invalid_input",
5520
+ "auth:forbidden",
5521
+ "resource:not_found",
5522
+ "server:internal_error"
5523
+ ],
5524
+ responseKind: "json"
5525
+ },
5158
5526
  applySiteStyleSelection: {
5527
+ editLease: "unleased-editor",
5159
5528
  path: "/sites/{siteId}/theme/style-selection/apply",
5160
5529
  method: "POST",
5161
- tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
5530
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteTheme],
5162
5531
  auth: "user",
5163
5532
  errors: [
5164
5533
  "validation:invalid_input",
@@ -5170,9 +5539,10 @@ const API_ENDPOINTS = {
5170
5539
  responseKind: "json"
5171
5540
  },
5172
5541
  saveSiteChromeSelection: {
5542
+ editLease: "unleased-editor",
5173
5543
  path: "/sites/{siteId}/theme/site-chrome-selection",
5174
5544
  method: "POST",
5175
- tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
5545
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteTheme],
5176
5546
  auth: "user",
5177
5547
  errors: [],
5178
5548
  responseKind: "json"
@@ -5542,7 +5912,7 @@ const API_ENDPOINTS = {
5542
5912
  path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots",
5543
5913
  method: "GET",
5544
5914
  tags: [
5545
- TAG_TEMPLATES.siteCollection,
5915
+ TAG_TEMPLATES.site,
5546
5916
  TAG_TEMPLATES.pageSurfaceById,
5547
5917
  "surface-slots",
5548
5918
  "blocks"
@@ -5560,7 +5930,7 @@ const API_ENDPOINTS = {
5560
5930
  path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks",
5561
5931
  method: "POST",
5562
5932
  tags: [
5563
- TAG_TEMPLATES.siteCollection,
5933
+ TAG_TEMPLATES.site,
5564
5934
  TAG_TEMPLATES.pageSurfaceById,
5565
5935
  "surface-slot-{slotKey}",
5566
5936
  "blocks"
@@ -5579,7 +5949,7 @@ const API_ENDPOINTS = {
5579
5949
  path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks/reorder",
5580
5950
  method: "POST",
5581
5951
  tags: [
5582
- TAG_TEMPLATES.siteCollection,
5952
+ TAG_TEMPLATES.site,
5583
5953
  TAG_TEMPLATES.pageSurfaceById,
5584
5954
  "surface-slot-{slotKey}",
5585
5955
  "blocks"
@@ -5598,7 +5968,7 @@ const API_ENDPOINTS = {
5598
5968
  path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks/{blockId}",
5599
5969
  method: "DELETE",
5600
5970
  tags: [
5601
- TAG_TEMPLATES.siteCollection,
5971
+ TAG_TEMPLATES.site,
5602
5972
  TAG_TEMPLATES.pageSurfaceById,
5603
5973
  "surface-slot-{slotKey}",
5604
5974
  "blocks"
@@ -6330,20 +6700,6 @@ const API_ENDPOINTS = {
6330
6700
  errors: [],
6331
6701
  responseKind: "json"
6332
6702
  },
6333
- importSiteBackup: {
6334
- path: "/sites/{siteId}/backup/import",
6335
- method: "POST",
6336
- tags: ["site-{siteId}", "backup"],
6337
- auth: "user",
6338
- responseKind: "json",
6339
- errors: [
6340
- "validation:invalid_input",
6341
- "validation:payload_too_large",
6342
- "auth:forbidden",
6343
- "resource:not_found",
6344
- "server:internal_error"
6345
- ]
6346
- },
6347
6703
  createBackupUploadUrl: {
6348
6704
  path: "/backup/upload-url",
6349
6705
  method: "POST",
@@ -6675,32 +7031,59 @@ const API_ENDPOINTS = {
6675
7031
  responseKind: "json",
6676
7032
  errors: []
6677
7033
  },
6678
- transferEventAttendee: {
6679
- path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/transfer",
7034
+ listEventBookingMoveClasses: {
7035
+ errors: [],
7036
+ path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/move-classes",
7037
+ method: "GET",
7038
+ auth: "user",
7039
+ responseKind: "json"
7040
+ },
7041
+ listEventBookingMoveTargets: {
7042
+ errors: [],
7043
+ path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/move-targets",
7044
+ method: "GET",
7045
+ auth: "user",
7046
+ responseKind: "json"
7047
+ },
7048
+ moveEventBooking: {
7049
+ errors: [],
7050
+ path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/move",
6680
7051
  method: "POST",
7052
+ auth: "user",
7053
+ responseKind: "json",
6681
7054
  tags: [
6682
7055
  "site-{siteId}",
6683
7056
  "event-attendee-{attendeeId}",
6684
7057
  "bookings"
6685
- ],
7058
+ ]
7059
+ },
7060
+ restoreEventBooking: {
7061
+ errors: [],
7062
+ path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/restore",
7063
+ method: "POST",
6686
7064
  auth: "user",
6687
7065
  responseKind: "json",
6688
- errors: [
6689
- "validation:invalid_input",
6690
- "resource:not_found",
6691
- "server:internal_error"
7066
+ tags: [
7067
+ "site-{siteId}",
7068
+ "event-attendee-{attendeeId}",
7069
+ "bookings"
6692
7070
  ]
6693
7071
  },
6694
- listEventAttendeeTransfers: {
6695
- path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/transfers",
6696
- method: "GET",
7072
+ transferEventAttendee: {
7073
+ path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/transfer",
7074
+ method: "POST",
6697
7075
  tags: [
6698
7076
  "site-{siteId}",
6699
7077
  "event-attendee-{attendeeId}",
6700
7078
  "bookings"
6701
7079
  ],
6702
7080
  auth: "user",
6703
- responseKind: "json"
7081
+ responseKind: "json",
7082
+ errors: [
7083
+ "validation:invalid_input",
7084
+ "resource:not_found",
7085
+ "server:internal_error"
7086
+ ]
6704
7087
  },
6705
7088
  listEventSeriesOccurrences: {
6706
7089
  path: "/sites/{siteId}/bookings/event-series/{seriesId}/occurrences",
@@ -6853,12 +7236,18 @@ const API_ENDPOINTS = {
6853
7236
  responseKind: "json"
6854
7237
  },
6855
7238
  geocodeLocation: {
6856
- errors: ["resource:not_found"],
6857
7239
  path: "/sites/{siteId}/location/geocode",
6858
7240
  method: "POST",
6859
7241
  tags: ["site-{siteId}"],
6860
7242
  auth: "user",
6861
- responseKind: "json"
7243
+ responseKind: "json",
7244
+ errors: [
7245
+ "validation:invalid_input",
7246
+ "resource:not_found",
7247
+ "rate_limit:exceeded",
7248
+ "external:service_error",
7249
+ "server:internal_error"
7250
+ ]
6862
7251
  },
6863
7252
  listBookingPasses: {
6864
7253
  path: "/sites/{siteId}/bookings/passes",
@@ -7434,11 +7823,20 @@ const API_ENDPOINTS = {
7434
7823
  auth: "user",
7435
7824
  responseKind: "json"
7436
7825
  },
7437
- listSiteEmailEventLogs: {
7438
- path: "/sites/{siteId}/logs/emails/{emailId}/events",
7826
+ getSentEmail: {
7827
+ path: "/sites/{siteId}/logs/emails/{emailId}",
7439
7828
  method: "GET",
7440
7829
  auth: "user",
7441
- responseKind: "json"
7830
+ responseKind: "json",
7831
+ errors: []
7832
+ },
7833
+ resendSentEmail: {
7834
+ path: "/sites/{siteId}/logs/emails/{emailId}/resend",
7835
+ method: "POST",
7836
+ auth: "user",
7837
+ responseKind: "json",
7838
+ errors: [],
7839
+ demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN
7442
7840
  },
7443
7841
  listSitePublicErrorLogs: {
7444
7842
  path: "/sites/{siteId}/logs/errors",
@@ -7447,6 +7845,7 @@ const API_ENDPOINTS = {
7447
7845
  responseKind: "json"
7448
7846
  },
7449
7847
  aiPlaygroundApply: {
7848
+ editLease: "unleased-editor",
7450
7849
  path: "/sites/{siteId}/ai/playground/apply",
7451
7850
  method: "POST",
7452
7851
  tags: ["site-{siteId}"],
@@ -7701,12 +8100,6 @@ const API_ENDPOINTS = {
7701
8100
  responseKind: "json"
7702
8101
  },
7703
8102
  ...SDK_MEDIA_ENDPOINT_DEFINITIONS,
7704
- sdkIdentifiersBackfill: {
7705
- path: "/sdk/{siteId}/identifiers/backfill",
7706
- method: "POST",
7707
- auth: "service",
7708
- responseKind: "json"
7709
- },
7710
8103
  sdkUpdateWorkflowRunStatus: {
7711
8104
  path: "/sdk/{siteId}/workflows/runs/{runId}/status",
7712
8105
  method: "POST",
@@ -8279,6 +8672,20 @@ const API_ENDPOINTS = {
8279
8672
  auth: "public",
8280
8673
  responseKind: "json"
8281
8674
  },
8675
+ portalListEventRescheduleDates: {
8676
+ errors: [],
8677
+ path: "/portal/events/{registrationId}/reschedule-dates",
8678
+ method: "GET",
8679
+ auth: "public",
8680
+ responseKind: "json"
8681
+ },
8682
+ portalRescheduleEventRegistration: {
8683
+ errors: [],
8684
+ path: "/portal/events/{registrationId}/reschedule",
8685
+ method: "POST",
8686
+ auth: "public",
8687
+ responseKind: "json"
8688
+ },
8282
8689
  portalTransferEventRegistration: {
8283
8690
  path: "/portal/events/{registrationId}/transfer",
8284
8691
  method: "POST",
@@ -8460,6 +8867,18 @@ const API_ENDPOINTS = {
8460
8867
  ]
8461
8868
  }
8462
8869
  };
8870
+ //#endregion
8871
+ //#region ../api/src/common/capacityOverride.ts
8872
+ const capacityOverrideRefusalSchema = z.object({
8873
+ booked: z.number().int().nonnegative(),
8874
+ held: z.number().int().nonnegative(),
8875
+ capacity: z.number().int().nonnegative(),
8876
+ name: z.string(),
8877
+ retryPersonId: z.string().optional()
8878
+ });
8879
+ function isCapacityOverrideRefusal(value) {
8880
+ return capacityOverrideRefusalSchema.safeParse(value).success;
8881
+ }
8463
8882
  const API_ERROR_CODE_SET = /* @__PURE__ */ new Set([
8464
8883
  "auth:unauthenticated",
8465
8884
  "auth:token_expired",
@@ -8471,6 +8890,7 @@ const API_ERROR_CODE_SET = /* @__PURE__ */ new Set([
8471
8890
  "auth:impersonation_restricted",
8472
8891
  "auth:lease_required",
8473
8892
  "auth:lease_lost",
8893
+ "client:editing_held",
8474
8894
  "site_terms_changed",
8475
8895
  "site_terms_agreement_missing",
8476
8896
  "validation:invalid_input",
@@ -8506,7 +8926,7 @@ function isRecord$1(value) {
8506
8926
  return typeof value === "object" && value !== null && !Array.isArray(value);
8507
8927
  }
8508
8928
  function isFieldError(value) {
8509
- return isRecord$1(value) && typeof value.field === "string" && typeof value.code === "string" && typeof value.message === "string";
8929
+ return isRecord$1(value) && typeof value.field === "string" && typeof value.code === "string" && typeof value.message === "string" && (value.capacityOverride === void 0 || isCapacityOverrideRefusal(value.capacityOverride));
8510
8930
  }
8511
8931
  function fieldErrorsFromUnknown(value) {
8512
8932
  if (!Array.isArray(value)) return null;
@@ -8629,7 +9049,7 @@ function deriveSurfaceOwnedSiteSlugs() {
8629
9049
  ...siteRootHosts,
8630
9050
  ...SURFACE_IDS.map((surfaceId) => new URL(resolveSurfaceMarketingCanonicalOrigin(surfaceId)).hostname)
8631
9051
  ].flatMap((host) => siteRootHosts.flatMap((root) => siteSlugLabelUnderRoot(host, root)));
8632
- return [...new Set(labels)].sort();
9052
+ return [.../* @__PURE__ */ new Set([...labels, "draft-preview"])].sort();
8633
9053
  }
8634
9054
  deriveSurfaceOwnedSiteSlugs();
8635
9055
  const HOST_CANDIDATES = [...SURFACE_IDS.flatMap((surfaceId) => SURFACE_TIERS.flatMap((tier) => [
@@ -8757,6 +9177,74 @@ function resolveApiBaseUrl() {
8757
9177
  return getCmsApiUrl();
8758
9178
  }
8759
9179
  //#endregion
9180
+ //#region ../api/src/common/operationId.ts
9181
+ const OPERATION_ID_HEADER = "X-Riverbank-Operation-Id";
9182
+ z.uuid();
9183
+ /** One client command owns this id; network retries retain the same header. */
9184
+ function commandHeaders(endpoint, headers, operationId) {
9185
+ const result = new Headers(headers);
9186
+ if (API_ENDPOINTS[endpoint].method !== "GET" && !result.has("X-Riverbank-Operation-Id")) result.set(OPERATION_ID_HEADER, operationId);
9187
+ return result;
9188
+ }
9189
+ //#endregion
9190
+ //#region ../api/src/common/pageCommit.ts
9191
+ const pageCommitConfirmationSchema = committedWriteProofSchema.extend({ kind: z.literal("committed-reconciliation-required") });
9192
+ /** Positive storage evidence with no usable projection: refresh, never repeat an unconfirmed write. */
9193
+ var ApiCommittedWriteNotice = class extends Error {
9194
+ constructor(confirmation) {
9195
+ super("Your change was saved. Refresh the page to continue editing.");
9196
+ this.confirmation = confirmation;
9197
+ this.name = "ApiCommittedWriteNotice";
9198
+ }
9199
+ };
9200
+ const pageCommitConfirmationEnvelopeSchema = z.object({
9201
+ success: z.literal(true),
9202
+ data: pageCommitConfirmationSchema
9203
+ });
9204
+ z.enum([
9205
+ "paused",
9206
+ "lease-lost",
9207
+ "session-stale",
9208
+ "authority-denied",
9209
+ "stale-preimage",
9210
+ "stale-revision",
9211
+ "obsolete-schedule",
9212
+ "invalid-plan",
9213
+ "provider-scope-changed",
9214
+ "missing-document",
9215
+ "invalid-content",
9216
+ "unpublishable-content",
9217
+ "unavailable-design",
9218
+ "invalid-metadata",
9219
+ "invalid-anchor",
9220
+ "invalid-intent",
9221
+ "boundary-not-adjacent",
9222
+ "invalid-aggregate",
9223
+ "missing-block",
9224
+ "identity-in-use",
9225
+ "identifier-in-use",
9226
+ "content-reference-in-use",
9227
+ "missing-history",
9228
+ "invalid-external-change",
9229
+ "invalid-construction-inventory",
9230
+ "invalid-target",
9231
+ "invalid-revision",
9232
+ "invalid-document",
9233
+ "invalid-history",
9234
+ "path-unavailable",
9235
+ "invalid-page-version",
9236
+ "invalid-block-reference",
9237
+ "invalid-content-reference",
9238
+ "duplicate-storage-identity",
9239
+ "invalid-schedule",
9240
+ "invalid-provider",
9241
+ "invalid-site-style",
9242
+ "invalid-manifest",
9243
+ "invalid-preimage-reference",
9244
+ "outcome-unknown",
9245
+ "committed-follow-up-failed"
9246
+ ]);
9247
+ //#endregion
8760
9248
  //#region ../api/src/request.ts
8761
9249
  let revalidateTag = null;
8762
9250
  let revalidateTagResolved = false;
@@ -8801,6 +9289,7 @@ var ApiRequestError = class extends Error {
8801
9289
  this.body = options.body;
8802
9290
  this.cause = options.cause;
8803
9291
  this.errorCode = options.errorCode;
9292
+ this.tag = options.tag;
8804
9293
  this.retryAfterMs = options.retryAfterMs;
8805
9294
  }
8806
9295
  };
@@ -8964,6 +9453,7 @@ async function parseSuccessResponse(endpoint, response, config) {
8964
9453
  cause
8965
9454
  });
8966
9455
  }
9456
+ requireUsableCommitProjection(response, parsed);
8967
9457
  if (parsed && typeof parsed === "object" && "success" in parsed && typeof parsed.success === "boolean") return parsed;
8968
9458
  return buildSuccessEnvelope(parsed, requestId);
8969
9459
  }
@@ -8984,7 +9474,10 @@ function createRawCMSClient(getHeaders = () => ({}), baseUrl) {
8984
9474
  endpoint,
8985
9475
  body,
8986
9476
  params,
8987
- options,
9477
+ options: {
9478
+ ...options,
9479
+ headers: commandHeaders(endpoint, options.headers, generateRequestId())
9480
+ },
8988
9481
  headers: getHeaders(),
8989
9482
  baseUrl: normalizeCmsApiBaseUrl(baseUrl ?? resolveApiBaseUrl()),
8990
9483
  sdkVersion
@@ -9040,16 +9533,7 @@ function buildApiRequestPlan(input) {
9040
9533
  const nextOptions = { ...options?.next ?? {} };
9041
9534
  if (options?.cache === "no-store") delete nextOptions.revalidate;
9042
9535
  else if (isGetOrHead && nextOptions.revalidate === void 0 && "revalidate" in endpointConfig && typeof endpointConfig.revalidate === "number") nextOptions.revalidate = endpointConfig.revalidate;
9043
- if ("tags" in endpointConfig && Array.isArray(endpointConfig.tags)) {
9044
- const processedTags = endpointConfig.tags.map((tag) => {
9045
- let processedTag = tag;
9046
- if (params) Object.entries(params).forEach(([key, value]) => {
9047
- processedTag = processedTag.replace(`{${key}}`, String(value));
9048
- });
9049
- return /\{[^}]+\}/.test(processedTag) ? null : processedTag;
9050
- }).filter((tag) => tag !== null);
9051
- nextOptions.tags = Array.from(/* @__PURE__ */ new Set([...nextOptions.tags ?? [], ...processedTags]));
9052
- }
9536
+ if ("tags" in endpointConfig && Array.isArray(endpointConfig.tags)) nextOptions.tags = buildCacheReadTags([...nextOptions.tags ?? [], ...endpointConfig.tags], params);
9053
9537
  const init = {
9054
9538
  method,
9055
9539
  ...options,
@@ -9082,6 +9566,7 @@ async function createApiRequestError(response, endpoint, fallbackMessage) {
9082
9566
  requestId: response.headers.get("x-request-id") ?? void 0,
9083
9567
  body,
9084
9568
  errorCode: details.code ?? void 0,
9569
+ tag: details.tag ?? void 0,
9085
9570
  retryAfterMs: parseRetryAfterHeader(response.headers.get("retry-after"))
9086
9571
  });
9087
9572
  }
@@ -9103,6 +9588,11 @@ function createInternalAPIClient(baseUrl) {
9103
9588
  function createBearerAPIClient(token, baseUrl) {
9104
9589
  return createParsedClient(createRawCMSClient(() => ({ Authorization: `Bearer ${typeof token === "function" ? token() : token}` }), baseUrl));
9105
9590
  }
9591
+ /** Positive receipt evidence is kept distinct from an HTTP or request failure. */
9592
+ function requireUsableCommitProjection(response, parsed) {
9593
+ if (response.headers.get("x-rb-page-commit") !== "confirmed-refresh") return;
9594
+ throw new ApiCommittedWriteNotice(pageCommitConfirmationEnvelopeSchema.parse(parsed).data);
9595
+ }
9106
9596
  //#endregion
9107
9597
  //#region ../api/src/utils/isRecord.ts
9108
9598
  function isRecord(value) {
@@ -9159,4 +9649,4 @@ function parsePublicProductCategorySelector(value) {
9159
9649
  };
9160
9650
  }
9161
9651
  //#endregion
9162
- export { createBearerAPIClient as a, ApiEnvelopeError as c, SUPPORTED_LOADER_ENDPOINTS as d, isSupportedLoaderEndpoint as f, publicReadFreshnessSeconds as h, ApiRequestError as i, isApiError as l, isPublicReadEndpoint as m, parsePublicProductCategorySelector as n, createInternalAPIClient as o, getPublicReadCachePolicy as p, isRecord as r, setSdkVersion as s, encodePublicProductCategorySelector as t, unwrapResponse as u };
9652
+ export { publicReadFreshnessSeconds as _, createBearerAPIClient as a, ApiEnvelopeError as c, PUBLIC_READ_ENDPOINT_DEFINITIONS as d, TAG_TEMPLATES as f, isPublicReadEndpoint as g, getPublicReadCachePolicy as h, ApiRequestError as i, isApiError as l, isSupportedLoaderEndpoint as m, parsePublicProductCategorySelector as n, createInternalAPIClient as o, SUPPORTED_LOADER_ENDPOINTS as p, isRecord as r, setSdkVersion as s, encodePublicProductCategorySelector as t, unwrapResponse as u };