@riverbankcms/sdk 0.161.0 → 0.162.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 (187) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-Bx4kLiTA.d.ts → BlocksIslandsHydrator-PZUoA872.d.ts} +1 -1
  2. package/dist/_dts/{Page-Dm7_P13o.d.ts → Page-CdQS6C7i.d.ts} +8 -8
  3. package/dist/_dts/{SdkPreviewMode-D7HdWWwF.d.ts → SdkPreviewMode-CNGO-5f1.d.ts} +58 -91
  4. package/dist/_dts/{client-Ep0jI9eE.d.ts → client-DGa53rjL.d.ts} +11 -3
  5. package/dist/_dts/{content-types-BgAzCrBc.d.ts → content-types-K9R7P-KF.d.ts} +2 -2
  6. package/dist/_dts/{contracts-DUiOnj9e.d.ts → contracts-CyBaPaIq.d.ts} +13 -4
  7. package/dist/_dts/{footerPageOutline-B-uXamTG.d.ts → footerPageOutline-B6jmKmon.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-BDkZYEcS.d.ts → generatePageMetadata-iemoR3AN.d.ts} +2 -2
  9. package/dist/_dts/{index-ylivB7Jj.d.ts → index-8CN0Nd-Z.d.ts} +2 -2
  10. package/dist/_dts/{index-CSsfq6KG.d.ts → index-BtnsA14K.d.ts} +9 -5
  11. package/dist/_dts/{index-BVkP8f70.d.ts → index-C39F9KaB.d.ts} +13 -2
  12. package/dist/_dts/{index-KPrWM0KF.d.ts → index-DEu85xBt.d.ts} +1 -1
  13. package/dist/_dts/{schema-BHu0PYWl.d.ts → index-DI2yaSPY.d.ts} +4099 -3343
  14. package/dist/_dts/{types-BR1Yboa9.d.ts → index-Dbd0Sn0G.d.ts} +3300 -1691
  15. package/dist/_dts/{index-CF6Cjs7b.d.ts → index-Du1IRglc.d.ts} +2 -2
  16. package/dist/_dts/{index-D_8uz4OP.d.ts → index-Jlcq6w69.d.ts} +3 -3
  17. package/dist/_dts/{index-DvKQA6AZ.d.ts → index-Wm62sXf2.d.ts} +4 -4
  18. package/dist/_dts/{loadContent-DTjKOO-T.d.ts → loadContent-BPfAAZDW.d.ts} +10 -7
  19. package/dist/_dts/{resolvePageContent-C1vA5c5w.d.ts → resolvePageContent-DWbrtKf8.d.ts} +2 -2
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +6 -6
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/index.d.ts +8 -8
  27. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  28. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  29. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  30. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  31. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  32. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  33. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  34. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  35. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  36. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  37. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  38. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  39. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  40. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  42. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  43. package/dist/_dts/sdk/src/server.d.ts +5 -5
  44. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  45. package/dist/_dts/{types-ZGUiHpDE.d.ts → types-CVv2H4AT.d.ts} +7 -7
  46. package/dist/_dts/{types-D02ngcUH.d.ts → types-CfNG5koF.d.ts} +2 -2
  47. package/dist/_dts/{types-CJXTCF_F.d.ts → types-ClZ-BQL_.d.ts} +3 -3
  48. package/dist/_dts/{validation-BaV565gb.d.ts → validation-BJ6Lf_Dr.d.ts} +4 -4
  49. package/dist/client/{BlocksIslandsHydrator-DTExCJsb.mjs → BlocksIslandsHydrator-COqlgWYU.mjs} +20 -19
  50. package/dist/client/{BookingMailingListNote-BDpxmn1p.mjs → BookingMailingListNote-CFYPDEHH.mjs} +1 -1
  51. package/dist/client/{CalendarNavigationChevron-PeCiL82X.mjs → CalendarNavigationChevron-COBVxgHb.mjs} +6 -6
  52. package/dist/client/{CheckboxChoice-DWexRLf6.mjs → CheckboxChoice-C7X9dJ8A.mjs} +1 -1
  53. package/dist/client/{DemoBookingPortalAccess-3zmIqakW.mjs → DemoBookingPortalAccess-CvT0E9AR.mjs} +26 -10
  54. package/dist/client/{DemoPortalSignInLink-GHi-8BW5.mjs → DemoPortalSignInLink-EBOBN5dT.mjs} +1 -1
  55. package/dist/client/{EventCalendar.client-BxQLY5cX.mjs → EventCalendar.client-U6pKcntV.mjs} +16 -17
  56. package/dist/client/{EventCombined.client-B5bmQ03b.mjs → EventCombined.client-CNzwEHws.mjs} +8 -8
  57. package/dist/client/{EventEmbeddedCheckoutStep-CgMZ9TeU.mjs → EventEmbeddedCheckoutStep-B9yAWV_k.mjs} +1 -1
  58. package/dist/client/{EventItem-BEx-qiDE.mjs → EventItem-M5rpaHxi.mjs} +4 -4
  59. package/dist/client/{EventListWeekNavigation-CyH5tA6Y.mjs → EventListWeekNavigation-D4ieBLDY.mjs} +1 -1
  60. package/dist/client/{EventListing.client-D3uySdGP.mjs → EventListing.client-B8F40Rmn.mjs} +3 -3
  61. package/dist/client/{EventListing.view-9RFrBejr.mjs → EventListing.view-k4lhuCn5.mjs} +14 -21
  62. package/dist/client/{EventRegistrationPayment-CG2tQx8K.mjs → EventRegistrationPayment-C3g8_Hqb.mjs} +10 -10
  63. package/dist/client/LocationMapActions-CAjt7qVo.mjs +62 -0
  64. package/dist/client/{LocationMapActions-Wsr83Q7q.mjs → MapDrawingSvg-_aIK2ojv.mjs} +2 -70
  65. package/dist/client/{Page-Bf2nPACI.mjs → Page-DJBIQBOw.mjs} +1762 -254
  66. package/dist/client/{StepIndicator-CZweb1vs.mjs → StepIndicator-CFacB1z6.mjs} +2 -2
  67. package/dist/client/{TabBarFragment-Bkgz67gt.mjs → TabBarFragment-BLsfQskO.mjs} +1 -1
  68. package/dist/client/{ThemedButton-CnyL3s1A.mjs → ThemedButton-BWsDgjMC.mjs} +1 -1
  69. package/dist/client/{accordion-TcimLLRQ.mjs → accordion-CtO2XF7M.mjs} +1 -1
  70. package/dist/client/{booking-form.client-q-RpJ4aF.mjs → booking-form.client-RICCQ0h2.mjs} +137 -60
  71. package/dist/client/{bookingForm-DjGfk3Wj.mjs → bookingForm-SvjLPx8i.mjs} +4 -4
  72. package/dist/client/bookings.mjs +5 -5
  73. package/dist/client/{carousel-CGAk6j0m.mjs → carousel-BR-zCD3O.mjs} +2 -2
  74. package/dist/client/{carousel.client-ArlGmYWV.mjs → carousel.client-CEWtoZd3.mjs} +1 -1
  75. package/dist/client/{cart-D_h3rAZ2.mjs → cart-C6YpKbZZ.mjs} +3 -3
  76. package/dist/client/{cart.client-DHOxZbJ7.mjs → cart.client-dC938WrX.mjs} +1 -1
  77. package/dist/client/{checkout-tC-3CzuM.mjs → checkout-Dy9RlREI.mjs} +3 -3
  78. package/dist/client/{checkout.client-DsBb2Pkm.mjs → checkout.client-CefG0d2F.mjs} +1 -1
  79. package/dist/client/client.mjs +34 -69
  80. package/dist/client/{context-9ZfMb6GA.mjs → context-BFwxgZpB.mjs} +28 -1
  81. package/dist/client/{cta-D-ZqL7-e.mjs → cta-DtA42Xio.mjs} +1 -1
  82. package/dist/client/{dateFormatting-BCwLqYpW.mjs → dateFormatting-yP1B7F0O.mjs} +39 -2
  83. package/dist/client/{demoPortalMagicLink-BxkSS9fx.mjs → demoPortalMagicLink-WOiT5Ryi.mjs} +1 -1
  84. package/dist/client/{enhanceHeaderSection-xg6to91E.mjs → enhanceHeaderSection-Dh8c_Lq-.mjs} +3 -3
  85. package/dist/client/{event-details.client-C670TgRd.mjs → event-details.client-BFgsLqTj.mjs} +2 -1
  86. package/dist/client/{event-registration.client-C6GApWTB.mjs → event-registration.client-BaXZ1-Ky.mjs} +13 -13
  87. package/dist/client/{eventCalendar-CWc0dg9i.mjs → eventCalendar-COLwF80U.mjs} +4 -4
  88. package/dist/client/{eventCombined-D4DbOrvQ.mjs → eventCombined-D3Ltwu03.mjs} +4 -4
  89. package/dist/client/{eventDetails-C2DfmbC0.mjs → eventDetails-CBrkimXu.mjs} +2 -2
  90. package/dist/client/{eventListing-C_yXmHyz.mjs → eventListing-CedKVA1S.mjs} +4 -4
  91. package/dist/client/{eventRegistration-DJuaCB-O.mjs → eventRegistration-DkQQfR1b.mjs} +4 -4
  92. package/dist/client/{form-QZhtdFHA.mjs → form-XFy9uXSJ.mjs} +3 -3
  93. package/dist/client/{form.client-CgvPACwG.mjs → form.client-B0iancFK.mjs} +4 -4
  94. package/dist/client/{form.parts-2uI0-5N-.mjs → form.parts-DMbolu9Y.mjs} +3 -3
  95. package/dist/client/{formatDate-Danr0Nk4.mjs → formatDate-Jm5MQOCA.mjs} +1 -1
  96. package/dist/client/gifting/client.mjs +3 -3
  97. package/dist/client/{headerSection-DJdlLdvZ.mjs → headerSection-WjlECjtV.mjs} +2 -2
  98. package/dist/client/{mediaAssets-BvjcAZpS.mjs → mediaAssets-BkoW_PEn.mjs} +1 -1
  99. package/dist/client/mediaContext-CNzWmoA4.mjs +136 -0
  100. package/dist/client/{newsletter-form.client-Cbepz2KU.mjs → newsletter-form.client-D-XwJTjN.mjs} +5 -5
  101. package/dist/client/{newsletter-form.parts-DN8oMCQ0.mjs → newsletter-form.parts-H92f30y0.mjs} +2 -2
  102. package/dist/client/{newsletterForm-wjLtW-wq.mjs → newsletterForm-DMuxzu6I.mjs} +3 -3
  103. package/dist/client/{noop-B7H6gCbj.mjs → noop-B3RNPVrt.mjs} +19 -3
  104. package/dist/client/portal/client.mjs +1116 -85
  105. package/dist/client/{product-detail.client-CYTR165c.mjs → product-detail.client-B3HuuykE.mjs} +1 -1
  106. package/dist/client/{product-list.client-B4vTvag8.mjs → product-list.client-CzsDrHQO.mjs} +1 -1
  107. package/dist/client/{productDetail-k8LEMSWn.mjs → productDetail-CbBUVWgd.mjs} +3 -3
  108. package/dist/client/{productList-DEo8Bqoe.mjs → productList-vqOKH2mh.mjs} +3 -3
  109. package/dist/client/{propsDecoder-G0j0HXBO.mjs → propsDecoder-CkSUep5a.mjs} +4 -3
  110. package/dist/client/{registry.server-BTmSXE3D.mjs → registry.server-cZ24QwtW.mjs} +272 -68
  111. package/dist/client/rendering/client.mjs +27 -26
  112. package/dist/client/rendering/islands.mjs +1 -1
  113. package/dist/client/rendering.mjs +10 -7
  114. package/dist/client/{richText-coerce-B19taoH6.mjs → richText-coerce-DDcCKvBJ.mjs} +1 -1
  115. package/dist/client/{routeIslandApiConfig-Chu5BHra.mjs → routeIslandApiConfig-DYBioANh.mjs} +1 -1
  116. package/dist/client/{schema-C-m8XHuW.mjs → schema-DNHLlze-.mjs} +4575 -4311
  117. package/dist/client/{shop-RGWa43H7.mjs → shop-CF0dhnfH.mjs} +3 -3
  118. package/dist/client/{shop-commerce-TJYCBO_H.mjs → shop-commerce-DQznNBEo.mjs} +11 -11
  119. package/dist/client/{shop-commerce-store-CjCcUB_o.mjs → shop-commerce-store-Ba8zPlIg.mjs} +1 -1
  120. package/dist/client/{shop.client-tsKfZw1W.mjs → shop.client-DqfYoqWH.mjs} +12 -12
  121. package/dist/client/{shop.interactive-CVqLAU53.mjs → shop.interactive-CreQ0I7i.mjs} +38 -31
  122. package/dist/client/{shopShared-C3lHMz_R.mjs → shopShared-D-yh-P7g.mjs} +2 -2
  123. package/dist/client/{mediaContext-jPeJ2PmJ.mjs → site-styles-B9HgmY07.mjs} +1329 -511
  124. package/dist/client/{timetableModel-V2ifvGGy.mjs → timetableModel-DCdVErTJ.mjs} +10 -9
  125. package/dist/client/{useAvailableSlots-D1X69-pN.mjs → useAvailableSlots-Cvgdp2DH.mjs} +8 -11
  126. package/dist/client/{useBookingNowIso-Ch30jino.mjs → useBookingNowIso-DrTnGNzD.mjs} +1 -1
  127. package/dist/client/{useDiscountApply-Bwzr1RjV.mjs → useDiscountApply-CULjnXGl.mjs} +2 -2
  128. package/dist/client/{useDiscountCodeUi-BimJbFC7.mjs → useDiscountCodeUi-Gn_m7e0o.mjs} +1 -1
  129. package/dist/client/{useEventPagination-CLAS0upd.mjs → useEventPagination-CsysCF22.mjs} +6 -6
  130. package/dist/client/{view-Dj_FZHmg.mjs → view-BpBjo9Te.mjs} +64 -55
  131. package/dist/client/{view-BUh4LnLS.mjs → view-DMyTchi7.mjs} +4 -4
  132. package/dist/client/{wizardSteps-BkZc-hKH.mjs → wizardSteps-BO2OmMO9.mjs} +59 -53
  133. package/dist/preview-next/before-render.mjs +3 -3
  134. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CwerMfzn.mjs → EventEmbeddedCheckoutStep-DLsSmZbO.mjs} +1 -1
  135. package/dist/preview-next/client/{PreviewEditorSidebar-Dvq-RW9-.mjs → PreviewEditorSidebar-ChrW9VEo.mjs} +164 -1042
  136. package/dist/preview-next/client/{PreviewEditorUI-BdFjS39R.mjs → PreviewEditorUI-VaHvYtrA.mjs} +9 -190
  137. package/dist/preview-next/client/{SdkPreviewModeRuntime-CjkGh1IG.mjs → SdkPreviewModeRuntime-Bz7jR6nl.mjs} +1 -1
  138. package/dist/preview-next/client/{SdkPreviewModeRuntime-BEfHln1E.mjs → SdkPreviewModeRuntime-DWwktlWs.mjs} +220 -130
  139. package/dist/preview-next/client/{ThemedButton-b14Bv03E.mjs → ThemedButton-CHKOWXxl.mjs} +608 -333
  140. package/dist/preview-next/client/{SiteChromeCustomizeContext-CDbxk_qZ.mjs → previewAuthStore-C0VUwEHz.mjs} +158752 -162808
  141. package/dist/preview-next/client/{previewChromeSurface-Dd1_mNIg.mjs → previewChromeSurface-Dhyx2YrS.mjs} +1 -1
  142. package/dist/preview-next/client/runtime.mjs +3 -3
  143. package/dist/preview-next/client/{sdk-runtime-B-CXyGVb.mjs → sdk-runtime-C2GWOCyj.mjs} +1 -1
  144. package/dist/preview-next/client/siteStyleAccess-DHyzUpv4.mjs +12833 -0
  145. package/dist/preview-next/client/{spinner-CGxS8Ns-.mjs → spinner-BeR2S8oG.mjs} +1 -1
  146. package/dist/preview-next/keepAlive.mjs +2 -2
  147. package/dist/preview-next/middleware.mjs +1 -1
  148. package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
  149. package/dist/preview-next/{route-contract-hLg-yjQN.mjs → route-contract-CkrFDMrl.mjs} +394 -200
  150. package/dist/server/{Block.shared-CeTd2saO.mjs → Block.shared-DxvNGDig.mjs} +4 -4
  151. package/dist/server/{bindings-C5YpKuKt.mjs → bindings-BuhKvYkE.mjs} +2 -2
  152. package/dist/server/{client-Cv26lZQ4.mjs → client-BobW6DOz.mjs} +34 -69
  153. package/dist/server/config-validation.mjs +1 -1
  154. package/dist/server/config.mjs +2 -2
  155. package/dist/server/{effectiveNavLinkStyle-CGvGr3yD.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs} +1127 -144
  156. package/dist/server/index.mjs +3 -3
  157. package/dist/server/{loadContent-C8a0b-cC.mjs → loadContent-CCG_3mbY.mjs} +7 -4
  158. package/dist/server/loadPage-Bk9HDh9K.mjs +2 -0
  159. package/dist/server/{loadPage-BW7dklu3.mjs → loadPage-jntGoMrf.mjs} +2 -2
  160. package/dist/server/next.mjs +9 -9
  161. package/dist/server/{overrideResolution-tIuqmJB3.mjs → overrideResolution-BBOlgn4Z.mjs} +1 -1
  162. package/dist/server/{overrides-D1fiPOKF.mjs → overrides-DByQwIyW.mjs} +264 -168
  163. package/dist/server/page-converter.mjs +1 -1
  164. package/dist/server/{prebuild--fO0E2tr.mjs → prebuild-DrwcTk2t.mjs} +1 -1
  165. package/dist/server/prebuild.mjs +1 -1
  166. package/dist/server/{prefetchBlockData-CqJnokWJ.mjs → prefetchBlockData-LfgxSJYE.mjs} +31 -10
  167. package/dist/server/{publicProducts-CvvZ4JIe.mjs → publicProducts-8A3T5v4M.mjs} +647 -166
  168. package/dist/server/{registry-BVfCqaCq.mjs → registry-Digv02oV.mjs} +308 -36
  169. package/dist/server/rendering/server.mjs +4 -4
  170. package/dist/server/rendering.mjs +8 -8
  171. package/dist/server/{resolveBlockData-DPNvhXEz.mjs → resolveBlockData-C23t8-77.mjs} +1 -1
  172. package/dist/server/routing.mjs +1 -1
  173. package/dist/server/{schema-CD4peO7m.mjs → schema-BiqpDRwB.mjs} +2813 -2549
  174. package/dist/server/server.mjs +3 -3
  175. package/dist/server/{site-styles-H-EvTJiW.mjs → site-styles-DrkprQPL.mjs} +81 -113
  176. package/dist/server/{siteChromeOverlayClearance-DNC2k1U0.mjs → siteChromeOverlayClearance-BmKKkkbh.mjs} +2 -2
  177. package/dist/server/{src-ILxc6pid.mjs → src-08GY1njw.mjs} +902 -44
  178. package/dist/server/theme-bridge.mjs +1 -1
  179. package/dist/server/theme.mjs +1 -1
  180. package/dist/server/{themeAdmission-BNHIXiUj.mjs → themeAdmission-CSd_Vusz.mjs} +36 -29
  181. package/dist/server/{validation-B1ieVemg.mjs → validation-DdUTkBOZ.mjs} +2 -2
  182. package/dist/server/{version-BQK44wFg.mjs → version-DdIOqIDe.mjs} +1 -1
  183. package/dist/styles/index.css +872 -41
  184. package/package.json +1 -1
  185. package/dist/_dts/index-BQDBQvdu.d.ts +0 -13
  186. package/dist/preview-next/client/siteStyleAccess-Kqk0j0dE.mjs +0 -5812
  187. 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 { br as parseSiteId, un as parseSurfaceTree } from "./schema-BiqpDRwB.mjs";
2
+ import "./site-styles-DrkprQPL.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",
@@ -2824,12 +3146,72 @@ const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
2824
3146
  errors: [],
2825
3147
  responseKind: "json"
2826
3148
  },
2827
- createBillingPortalSession: {
2828
- path: "/billing/portal/session",
3149
+ getAccountInvoiceRecovery: {
3150
+ path: "/billing/recovery",
3151
+ method: "GET",
3152
+ tags: ["billing"],
3153
+ auth: "user",
3154
+ responseKind: "json",
3155
+ errors: [
3156
+ "validation:invalid_input",
3157
+ "auth:unauthenticated",
3158
+ "external:service_error",
3159
+ "server:internal_error"
3160
+ ]
3161
+ },
3162
+ getAccountBillingDetails: {
3163
+ path: "/billing/details",
3164
+ method: "GET",
3165
+ tags: ["billing"],
3166
+ auth: "user",
3167
+ responseKind: "json",
3168
+ errors: [
3169
+ "auth:unauthenticated",
3170
+ "external:service_error",
3171
+ "server:internal_error"
3172
+ ]
3173
+ },
3174
+ getAccountBillingInvoices: {
3175
+ path: "/billing/invoices",
3176
+ method: "GET",
3177
+ tags: ["billing"],
3178
+ auth: "user",
3179
+ responseKind: "json",
3180
+ errors: [
3181
+ "validation:invalid_input",
3182
+ "auth:unauthenticated",
3183
+ "resource:conflict",
3184
+ "external:service_error",
3185
+ "server:internal_error"
3186
+ ]
3187
+ },
3188
+ startAccountPaymentMethodSetup: {
3189
+ path: "/billing/payment-method/setup",
2829
3190
  method: "POST",
2830
3191
  tags: ["billing"],
2831
3192
  auth: "user",
2832
- responseKind: "json"
3193
+ responseKind: "json",
3194
+ errors: [
3195
+ "validation:invalid_input",
3196
+ "auth:unauthenticated",
3197
+ "resource:conflict",
3198
+ "external:service_error",
3199
+ "server:internal_error"
3200
+ ]
3201
+ },
3202
+ finishAccountPaymentMethodSetup: {
3203
+ path: "/billing/payment-method/finish",
3204
+ method: "POST",
3205
+ tags: ["billing"],
3206
+ auth: "user",
3207
+ responseKind: "json",
3208
+ errors: [
3209
+ "validation:invalid_input",
3210
+ "auth:unauthenticated",
3211
+ "resource:conflict",
3212
+ "external:service_error",
3213
+ "server:internal_error"
3214
+ ]
2833
3215
  },
2834
3216
  stripeConnectSetupStart: {
2835
3217
  path: "/sites/{siteId}/billing/connect/setup",
@@ -2985,7 +3367,7 @@ const EDIT_LEASE_ENDPOINT_DEFINITIONS = {
2985
3367
  acquireEditLease: {
2986
3368
  path,
2987
3369
  method: "POST",
2988
- editLease: "lifecycle",
3370
+ editLease: "unleased-editor",
2989
3371
  errors: lifecycleErrors,
2990
3372
  auth: "user",
2991
3373
  responseKind: "json"
@@ -2993,7 +3375,7 @@ const EDIT_LEASE_ENDPOINT_DEFINITIONS = {
2993
3375
  takeOverEditLease: {
2994
3376
  path,
2995
3377
  method: "PUT",
2996
- editLease: "lifecycle",
3378
+ editLease: "unleased-editor",
2997
3379
  errors: lifecycleErrors,
2998
3380
  auth: "user",
2999
3381
  responseKind: "json"
@@ -3001,7 +3383,7 @@ const EDIT_LEASE_ENDPOINT_DEFINITIONS = {
3001
3383
  heartbeatEditLease: {
3002
3384
  path,
3003
3385
  method: "PATCH",
3004
- editLease: "lifecycle",
3386
+ editLease: "unleased-editor",
3005
3387
  errors: [...lifecycleErrors, "auth:lease_lost"],
3006
3388
  auth: "user",
3007
3389
  responseKind: "json"
@@ -3017,7 +3399,7 @@ const EDIT_LEASE_ENDPOINT_DEFINITIONS = {
3017
3399
  };
3018
3400
  //#endregion
3019
3401
  //#region ../api/src/pageSurfaceEditorEndpoints.ts
3020
- const surfaceTags = [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.pageSurfaceById];
3402
+ const surfaceTags = [TAG_TEMPLATES.site, TAG_TEMPLATES.pageSurfaceById];
3021
3403
  const PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS = {
3022
3404
  getPageSurfaceEditorDocument: {
3023
3405
  path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/content",
@@ -3072,7 +3454,7 @@ const PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS = {
3072
3454
  "server:internal_error"
3073
3455
  ],
3074
3456
  tags: [
3075
- TAG_TEMPLATES.siteCollection,
3457
+ TAG_TEMPLATES.site,
3076
3458
  TAG_TEMPLATES.siteRoutableContent,
3077
3459
  TAG_TEMPLATES.pageSurfaceById
3078
3460
  ],
@@ -3091,7 +3473,7 @@ const PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS = {
3091
3473
  "server:internal_error"
3092
3474
  ],
3093
3475
  tags: [
3094
- TAG_TEMPLATES.siteCollection,
3476
+ TAG_TEMPLATES.site,
3095
3477
  TAG_TEMPLATES.siteRoutableContent,
3096
3478
  TAG_TEMPLATES.pageSurfaceById
3097
3479
  ],
@@ -3110,7 +3492,7 @@ const PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS = {
3110
3492
  "server:internal_error"
3111
3493
  ],
3112
3494
  tags: [
3113
- TAG_TEMPLATES.siteCollection,
3495
+ TAG_TEMPLATES.site,
3114
3496
  TAG_TEMPLATES.siteRoutableContent,
3115
3497
  TAG_TEMPLATES.pageSurfaceById
3116
3498
  ],
@@ -3236,6 +3618,7 @@ const API_ENDPOINTS = {
3236
3618
  ...PAGE_SURFACE_EDITOR_ENDPOINT_DEFINITIONS,
3237
3619
  ...SITE_MANAGEMENT_ENDPOINT_DEFINITIONS,
3238
3620
  applySeoChanges: {
3621
+ editLease: "unleased-editor",
3239
3622
  path: "/seo/apply",
3240
3623
  method: "POST",
3241
3624
  auth: "user",
@@ -3353,6 +3736,14 @@ const API_ENDPOINTS = {
3353
3736
  errors: [],
3354
3737
  responseKind: "json"
3355
3738
  },
3739
+ markBookingHomeSeen: {
3740
+ path: "/sites/{siteId}/home/seen",
3741
+ method: "POST",
3742
+ auth: "user",
3743
+ errors: [],
3744
+ responseKind: "json",
3745
+ demoMutation: DEMO_MUTATION_ALLOWED
3746
+ },
3356
3747
  resendOnboardingPreviewConfirmation: {
3357
3748
  path: "/public/sites/{siteId}/onboarding/resend-confirmation",
3358
3749
  method: "POST",
@@ -3396,15 +3787,6 @@ const API_ENDPOINTS = {
3396
3787
  errors: [],
3397
3788
  responseKind: "text"
3398
3789
  },
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
3790
  listRedirectRules: {
3409
3791
  path: "/sites/{siteId}/redirects",
3410
3792
  method: "GET",
@@ -3647,6 +4029,19 @@ const API_ENDPOINTS = {
3647
4029
  auth: "user",
3648
4030
  responseKind: "json"
3649
4031
  },
4032
+ updateEmailSendSetting: {
4033
+ path: "/sites/{siteId}/settings/emails/{emailKey}/send-setting",
4034
+ method: "PUT",
4035
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteBookingSettings],
4036
+ auth: "user",
4037
+ responseKind: "json",
4038
+ errors: [
4039
+ "validation:invalid_input",
4040
+ "auth:forbidden",
4041
+ "resource:conflict",
4042
+ "server:internal_error"
4043
+ ]
4044
+ },
3650
4045
  sendTestEmail: {
3651
4046
  path: "/sites/{siteId}/settings/emails/test",
3652
4047
  method: "POST",
@@ -3665,37 +4060,12 @@ const API_ENDPOINTS = {
3665
4060
  ...NEWSLETTER_ENDPOINT_DEFINITIONS,
3666
4061
  ...APPOINTMENT_ENDPOINT_DEFINITIONS,
3667
4062
  ...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
- },
4063
+ getSiteIdOnly: PUBLIC_READ_ENDPOINT_DEFINITIONS.getSite,
3694
4064
  getSiteBySlug: {
3695
4065
  path: "/sites/by-slug/{slug}",
3696
4066
  method: "GET",
3697
4067
  revalidate: 900,
3698
- tags: ["site", "site-{slug}"],
4068
+ tags: [TAG_TEMPLATES.siteBySlug],
3699
4069
  auth: "user",
3700
4070
  responseKind: "json"
3701
4071
  },
@@ -3703,7 +4073,7 @@ const API_ENDPOINTS = {
3703
4073
  path: "/sites/by-domain/{domain}",
3704
4074
  method: "GET",
3705
4075
  revalidate: 900,
3706
- tags: ["site", "site-domain-{domain}"],
4076
+ tags: [TAG_TEMPLATES.siteByDomain],
3707
4077
  auth: "user",
3708
4078
  responseKind: "json"
3709
4079
  },
@@ -3911,6 +4281,7 @@ const API_ENDPOINTS = {
3911
4281
  responseKind: "json"
3912
4282
  },
3913
4283
  updateContentTemplateBlock: {
4284
+ editLease: "unleased-editor",
3914
4285
  path: "/sites/{siteId}/content/types/{type}/template/blocks/{blockId}",
3915
4286
  method: "PATCH",
3916
4287
  tags: [
@@ -3922,6 +4293,7 @@ const API_ENDPOINTS = {
3922
4293
  responseKind: "json"
3923
4294
  },
3924
4295
  applyContentTemplateAddon: {
4296
+ editLease: "unleased-editor",
3925
4297
  path: "/sites/{siteId}/content/types/{type}/template/addons",
3926
4298
  method: "POST",
3927
4299
  tags: ["site-{siteId}", "content-template-{siteId}-{type}"],
@@ -3929,6 +4301,7 @@ const API_ENDPOINTS = {
3929
4301
  responseKind: "json"
3930
4302
  },
3931
4303
  updateContentTemplateBlockBindings: {
4304
+ editLease: "unleased-editor",
3932
4305
  path: "/sites/{siteId}/content/types/{type}/template/blocks/{blockId}/bindings",
3933
4306
  method: "PATCH",
3934
4307
  tags: [
@@ -3940,6 +4313,7 @@ const API_ENDPOINTS = {
3940
4313
  responseKind: "json"
3941
4314
  },
3942
4315
  createTemplateBlock: {
4316
+ editLease: "unleased-editor",
3943
4317
  path: "/sites/{siteId}/content/types/{type}/template/blocks",
3944
4318
  method: "POST",
3945
4319
  tags: ["site-{siteId}", "content-template-{siteId}-{type}"],
@@ -3947,6 +4321,7 @@ const API_ENDPOINTS = {
3947
4321
  responseKind: "json"
3948
4322
  },
3949
4323
  deleteTemplateBlock: {
4324
+ editLease: "unleased-editor",
3950
4325
  path: "/sites/{siteId}/content/types/{type}/template/blocks/{blockId}",
3951
4326
  method: "DELETE",
3952
4327
  tags: [
@@ -3958,6 +4333,7 @@ const API_ENDPOINTS = {
3958
4333
  responseKind: "json"
3959
4334
  },
3960
4335
  reorderTemplateBlocks: {
4336
+ editLease: "unleased-editor",
3961
4337
  path: "/sites/{siteId}/content/types/{type}/template/blocks/reorder",
3962
4338
  method: "POST",
3963
4339
  tags: ["site-{siteId}", "content-template-{siteId}-{type}"],
@@ -4110,7 +4486,7 @@ const API_ENDPOINTS = {
4110
4486
  path: "/sites/{siteId}/routes/{routeId}/metadata",
4111
4487
  method: "PATCH",
4112
4488
  tags: [
4113
- TAG_TEMPLATES.siteCollection,
4489
+ TAG_TEMPLATES.site,
4114
4490
  TAG_TEMPLATES.siteRoutableContent,
4115
4491
  TAG_TEMPLATES.routeById
4116
4492
  ],
@@ -4261,6 +4637,7 @@ const API_ENDPOINTS = {
4261
4637
  path: "/sites/{siteId}/content/{type}/bulk-publish",
4262
4638
  method: "POST",
4263
4639
  tags: ["site-{siteId}", "content-{siteId}-{type}"],
4640
+ editLease: "unleased-editor",
4264
4641
  auth: "user",
4265
4642
  responseKind: "json"
4266
4643
  },
@@ -4268,6 +4645,7 @@ const API_ENDPOINTS = {
4268
4645
  path: "/sites/{siteId}/content/{type}/bulk-unpublish",
4269
4646
  method: "POST",
4270
4647
  tags: ["site-{siteId}", "content-{siteId}-{type}"],
4648
+ editLease: "unleased-editor",
4271
4649
  auth: "user",
4272
4650
  responseKind: "json"
4273
4651
  },
@@ -4275,6 +4653,7 @@ const API_ENDPOINTS = {
4275
4653
  path: "/sites/{siteId}/content/{type}/bulk-delete",
4276
4654
  method: "POST",
4277
4655
  tags: ["site-{siteId}", "content-{siteId}-{type}"],
4656
+ editLease: "unleased-editor",
4278
4657
  auth: "user",
4279
4658
  responseKind: "json",
4280
4659
  errors: [
@@ -4295,11 +4674,7 @@ const API_ENDPOINTS = {
4295
4674
  getSiteFooterBlocks: {
4296
4675
  path: "/sites/{siteId}/content/footer-blocks",
4297
4676
  method: "GET",
4298
- tags: [
4299
- TAG_TEMPLATES.siteCollection,
4300
- TAG_TEMPLATES.site,
4301
- TAG_TEMPLATES.siteSettings
4302
- ],
4677
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
4303
4678
  auth: "user",
4304
4679
  responseKind: "json",
4305
4680
  errors: [
@@ -4309,13 +4684,10 @@ const API_ENDPOINTS = {
4309
4684
  ]
4310
4685
  },
4311
4686
  updateSiteFooterBlocks: {
4687
+ editLease: "unleased-editor",
4312
4688
  path: "/sites/{siteId}/content/footer-blocks",
4313
4689
  method: "PUT",
4314
- tags: [
4315
- TAG_TEMPLATES.siteCollection,
4316
- TAG_TEMPLATES.site,
4317
- TAG_TEMPLATES.siteSettings
4318
- ],
4690
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
4319
4691
  auth: "user",
4320
4692
  responseKind: "json",
4321
4693
  errors: [
@@ -4328,7 +4700,7 @@ const API_ENDPOINTS = {
4328
4700
  updateSiteDeploymentMode: {
4329
4701
  path: "/sites/{siteId}/settings/deployment-mode",
4330
4702
  method: "POST",
4331
- tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.site],
4703
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.site],
4332
4704
  auth: "user",
4333
4705
  responseKind: "json"
4334
4706
  },
@@ -4493,6 +4865,7 @@ const API_ENDPOINTS = {
4493
4865
  responseKind: "json"
4494
4866
  },
4495
4867
  updateFooterComposition: {
4868
+ editLease: "unleased-editor",
4496
4869
  path: "/sites/{siteId}/settings/footer-composition",
4497
4870
  method: "POST",
4498
4871
  tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
@@ -4515,6 +4888,7 @@ const API_ENDPOINTS = {
4515
4888
  responseKind: "json"
4516
4889
  },
4517
4890
  updatePublicProfile: {
4891
+ editLease: "unleased-editor",
4518
4892
  path: "/sites/{siteId}/settings/public-profile",
4519
4893
  method: "POST",
4520
4894
  tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteSettings],
@@ -4551,6 +4925,7 @@ const API_ENDPOINTS = {
4551
4925
  responseKind: "json"
4552
4926
  },
4553
4927
  setHomepage: {
4928
+ editLease: "unleased-editor",
4554
4929
  path: "/sites/{siteId}/settings/homepage",
4555
4930
  method: "POST",
4556
4931
  tags: ["site-{siteId}", "site-homepage"],
@@ -5043,7 +5418,7 @@ const API_ENDPOINTS = {
5043
5418
  getNavigationMenus: {
5044
5419
  path: "/sites/{siteId}/navigation/menus",
5045
5420
  method: "GET",
5046
- tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteNavigation],
5421
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteNavigation],
5047
5422
  auth: "user",
5048
5423
  responseKind: "json"
5049
5424
  },
@@ -5051,7 +5426,7 @@ const API_ENDPOINTS = {
5051
5426
  path: "/sites/{siteId}/navigation/menus/{menuId}",
5052
5427
  method: "GET",
5053
5428
  tags: [
5054
- TAG_TEMPLATES.siteCollection,
5429
+ TAG_TEMPLATES.site,
5055
5430
  TAG_TEMPLATES.siteNavigation,
5056
5431
  TAG_TEMPLATES.navigationMenuById
5057
5432
  ],
@@ -5062,7 +5437,7 @@ const API_ENDPOINTS = {
5062
5437
  path: "/sites/{siteId}/navigation/menus/{menuId}/items",
5063
5438
  method: "POST",
5064
5439
  tags: [
5065
- TAG_TEMPLATES.siteCollection,
5440
+ TAG_TEMPLATES.site,
5066
5441
  TAG_TEMPLATES.siteNavigation,
5067
5442
  TAG_TEMPLATES.navigationMenuById
5068
5443
  ],
@@ -5073,7 +5448,7 @@ const API_ENDPOINTS = {
5073
5448
  path: "/sites/{siteId}/navigation/menus/{menuId}/items/{itemId}",
5074
5449
  method: "PATCH",
5075
5450
  tags: [
5076
- TAG_TEMPLATES.siteCollection,
5451
+ TAG_TEMPLATES.site,
5077
5452
  TAG_TEMPLATES.siteNavigation,
5078
5453
  TAG_TEMPLATES.navigationMenuById,
5079
5454
  TAG_TEMPLATES.navigationItemById
@@ -5085,7 +5460,7 @@ const API_ENDPOINTS = {
5085
5460
  path: "/sites/{siteId}/navigation/menus/{menuId}/items/{itemId}",
5086
5461
  method: "DELETE",
5087
5462
  tags: [
5088
- TAG_TEMPLATES.siteCollection,
5463
+ TAG_TEMPLATES.site,
5089
5464
  TAG_TEMPLATES.siteNavigation,
5090
5465
  TAG_TEMPLATES.navigationMenuById,
5091
5466
  TAG_TEMPLATES.navigationItemById
@@ -5097,42 +5472,13 @@ const API_ENDPOINTS = {
5097
5472
  path: "/sites/{siteId}/navigation/menus/{menuId}/items/reorder",
5098
5473
  method: "POST",
5099
5474
  tags: [
5100
- TAG_TEMPLATES.siteCollection,
5475
+ TAG_TEMPLATES.site,
5101
5476
  TAG_TEMPLATES.siteNavigation,
5102
5477
  TAG_TEMPLATES.navigationMenuById
5103
5478
  ],
5104
5479
  auth: "user",
5105
5480
  responseKind: "json"
5106
5481
  },
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
5482
  getPublishedPostPreview: {
5137
5483
  path: "/public/posts/{siteId}/{slug}/preview",
5138
5484
  method: "GET",
@@ -5149,16 +5495,30 @@ const API_ENDPOINTS = {
5149
5495
  responseKind: "json"
5150
5496
  },
5151
5497
  saveSiteTheme: {
5498
+ editLease: "unleased-editor",
5152
5499
  path: "/sites/{siteId}/theme/save",
5153
5500
  method: "POST",
5154
- tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
5501
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteTheme],
5155
5502
  auth: "user",
5156
5503
  responseKind: "json"
5157
5504
  },
5505
+ previewSiteStyleSelection: {
5506
+ path: "/public/sites/{siteId}/theme/style-selection/preview",
5507
+ method: "POST",
5508
+ auth: "public",
5509
+ errors: [
5510
+ "validation:invalid_input",
5511
+ "auth:forbidden",
5512
+ "resource:not_found",
5513
+ "server:internal_error"
5514
+ ],
5515
+ responseKind: "json"
5516
+ },
5158
5517
  applySiteStyleSelection: {
5518
+ editLease: "unleased-editor",
5159
5519
  path: "/sites/{siteId}/theme/style-selection/apply",
5160
5520
  method: "POST",
5161
- tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
5521
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteTheme],
5162
5522
  auth: "user",
5163
5523
  errors: [
5164
5524
  "validation:invalid_input",
@@ -5170,9 +5530,10 @@ const API_ENDPOINTS = {
5170
5530
  responseKind: "json"
5171
5531
  },
5172
5532
  saveSiteChromeSelection: {
5533
+ editLease: "unleased-editor",
5173
5534
  path: "/sites/{siteId}/theme/site-chrome-selection",
5174
5535
  method: "POST",
5175
- tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
5536
+ tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteTheme],
5176
5537
  auth: "user",
5177
5538
  errors: [],
5178
5539
  responseKind: "json"
@@ -5542,7 +5903,7 @@ const API_ENDPOINTS = {
5542
5903
  path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots",
5543
5904
  method: "GET",
5544
5905
  tags: [
5545
- TAG_TEMPLATES.siteCollection,
5906
+ TAG_TEMPLATES.site,
5546
5907
  TAG_TEMPLATES.pageSurfaceById,
5547
5908
  "surface-slots",
5548
5909
  "blocks"
@@ -5560,7 +5921,7 @@ const API_ENDPOINTS = {
5560
5921
  path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks",
5561
5922
  method: "POST",
5562
5923
  tags: [
5563
- TAG_TEMPLATES.siteCollection,
5924
+ TAG_TEMPLATES.site,
5564
5925
  TAG_TEMPLATES.pageSurfaceById,
5565
5926
  "surface-slot-{slotKey}",
5566
5927
  "blocks"
@@ -5579,7 +5940,7 @@ const API_ENDPOINTS = {
5579
5940
  path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks/reorder",
5580
5941
  method: "POST",
5581
5942
  tags: [
5582
- TAG_TEMPLATES.siteCollection,
5943
+ TAG_TEMPLATES.site,
5583
5944
  TAG_TEMPLATES.pageSurfaceById,
5584
5945
  "surface-slot-{slotKey}",
5585
5946
  "blocks"
@@ -5598,7 +5959,7 @@ const API_ENDPOINTS = {
5598
5959
  path: "/sites/{siteId}/page-surfaces/{pageSurfaceId}/slots/{slotKey}/blocks/{blockId}",
5599
5960
  method: "DELETE",
5600
5961
  tags: [
5601
- TAG_TEMPLATES.siteCollection,
5962
+ TAG_TEMPLATES.site,
5602
5963
  TAG_TEMPLATES.pageSurfaceById,
5603
5964
  "surface-slot-{slotKey}",
5604
5965
  "blocks"
@@ -6330,20 +6691,6 @@ const API_ENDPOINTS = {
6330
6691
  errors: [],
6331
6692
  responseKind: "json"
6332
6693
  },
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
6694
  createBackupUploadUrl: {
6348
6695
  path: "/backup/upload-url",
6349
6696
  method: "POST",
@@ -6675,32 +7022,59 @@ const API_ENDPOINTS = {
6675
7022
  responseKind: "json",
6676
7023
  errors: []
6677
7024
  },
6678
- transferEventAttendee: {
6679
- path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/transfer",
7025
+ listEventBookingMoveClasses: {
7026
+ errors: [],
7027
+ path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/move-classes",
7028
+ method: "GET",
7029
+ auth: "user",
7030
+ responseKind: "json"
7031
+ },
7032
+ listEventBookingMoveTargets: {
7033
+ errors: [],
7034
+ path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/move-targets",
7035
+ method: "GET",
7036
+ auth: "user",
7037
+ responseKind: "json"
7038
+ },
7039
+ moveEventBooking: {
7040
+ errors: [],
7041
+ path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/move",
6680
7042
  method: "POST",
7043
+ auth: "user",
7044
+ responseKind: "json",
6681
7045
  tags: [
6682
7046
  "site-{siteId}",
6683
7047
  "event-attendee-{attendeeId}",
6684
7048
  "bookings"
6685
- ],
7049
+ ]
7050
+ },
7051
+ restoreEventBooking: {
7052
+ errors: [],
7053
+ path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/restore",
7054
+ method: "POST",
6686
7055
  auth: "user",
6687
7056
  responseKind: "json",
6688
- errors: [
6689
- "validation:invalid_input",
6690
- "resource:not_found",
6691
- "server:internal_error"
7057
+ tags: [
7058
+ "site-{siteId}",
7059
+ "event-attendee-{attendeeId}",
7060
+ "bookings"
6692
7061
  ]
6693
7062
  },
6694
- listEventAttendeeTransfers: {
6695
- path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/transfers",
6696
- method: "GET",
7063
+ transferEventAttendee: {
7064
+ path: "/sites/{siteId}/bookings/event-attendees/{attendeeId}/transfer",
7065
+ method: "POST",
6697
7066
  tags: [
6698
7067
  "site-{siteId}",
6699
7068
  "event-attendee-{attendeeId}",
6700
7069
  "bookings"
6701
7070
  ],
6702
7071
  auth: "user",
6703
- responseKind: "json"
7072
+ responseKind: "json",
7073
+ errors: [
7074
+ "validation:invalid_input",
7075
+ "resource:not_found",
7076
+ "server:internal_error"
7077
+ ]
6704
7078
  },
6705
7079
  listEventSeriesOccurrences: {
6706
7080
  path: "/sites/{siteId}/bookings/event-series/{seriesId}/occurrences",
@@ -6853,12 +7227,18 @@ const API_ENDPOINTS = {
6853
7227
  responseKind: "json"
6854
7228
  },
6855
7229
  geocodeLocation: {
6856
- errors: ["resource:not_found"],
6857
7230
  path: "/sites/{siteId}/location/geocode",
6858
7231
  method: "POST",
6859
7232
  tags: ["site-{siteId}"],
6860
7233
  auth: "user",
6861
- responseKind: "json"
7234
+ responseKind: "json",
7235
+ errors: [
7236
+ "validation:invalid_input",
7237
+ "resource:not_found",
7238
+ "rate_limit:exceeded",
7239
+ "external:service_error",
7240
+ "server:internal_error"
7241
+ ]
6862
7242
  },
6863
7243
  listBookingPasses: {
6864
7244
  path: "/sites/{siteId}/bookings/passes",
@@ -7434,11 +7814,20 @@ const API_ENDPOINTS = {
7434
7814
  auth: "user",
7435
7815
  responseKind: "json"
7436
7816
  },
7437
- listSiteEmailEventLogs: {
7438
- path: "/sites/{siteId}/logs/emails/{emailId}/events",
7817
+ getSentEmail: {
7818
+ path: "/sites/{siteId}/logs/emails/{emailId}",
7439
7819
  method: "GET",
7440
7820
  auth: "user",
7441
- responseKind: "json"
7821
+ responseKind: "json",
7822
+ errors: []
7823
+ },
7824
+ resendSentEmail: {
7825
+ path: "/sites/{siteId}/logs/emails/{emailId}/resend",
7826
+ method: "POST",
7827
+ auth: "user",
7828
+ responseKind: "json",
7829
+ errors: [],
7830
+ demoMutation: DEMO_MUTATION_BLOCKED_HIDDEN
7442
7831
  },
7443
7832
  listSitePublicErrorLogs: {
7444
7833
  path: "/sites/{siteId}/logs/errors",
@@ -7447,6 +7836,7 @@ const API_ENDPOINTS = {
7447
7836
  responseKind: "json"
7448
7837
  },
7449
7838
  aiPlaygroundApply: {
7839
+ editLease: "unleased-editor",
7450
7840
  path: "/sites/{siteId}/ai/playground/apply",
7451
7841
  method: "POST",
7452
7842
  tags: ["site-{siteId}"],
@@ -7701,12 +8091,6 @@ const API_ENDPOINTS = {
7701
8091
  responseKind: "json"
7702
8092
  },
7703
8093
  ...SDK_MEDIA_ENDPOINT_DEFINITIONS,
7704
- sdkIdentifiersBackfill: {
7705
- path: "/sdk/{siteId}/identifiers/backfill",
7706
- method: "POST",
7707
- auth: "service",
7708
- responseKind: "json"
7709
- },
7710
8094
  sdkUpdateWorkflowRunStatus: {
7711
8095
  path: "/sdk/{siteId}/workflows/runs/{runId}/status",
7712
8096
  method: "POST",
@@ -8279,6 +8663,20 @@ const API_ENDPOINTS = {
8279
8663
  auth: "public",
8280
8664
  responseKind: "json"
8281
8665
  },
8666
+ portalListEventRescheduleDates: {
8667
+ errors: [],
8668
+ path: "/portal/events/{registrationId}/reschedule-dates",
8669
+ method: "GET",
8670
+ auth: "public",
8671
+ responseKind: "json"
8672
+ },
8673
+ portalRescheduleEventRegistration: {
8674
+ errors: [],
8675
+ path: "/portal/events/{registrationId}/reschedule",
8676
+ method: "POST",
8677
+ auth: "public",
8678
+ responseKind: "json"
8679
+ },
8282
8680
  portalTransferEventRegistration: {
8283
8681
  path: "/portal/events/{registrationId}/transfer",
8284
8682
  method: "POST",
@@ -8460,6 +8858,18 @@ const API_ENDPOINTS = {
8460
8858
  ]
8461
8859
  }
8462
8860
  };
8861
+ //#endregion
8862
+ //#region ../api/src/common/capacityOverride.ts
8863
+ const capacityOverrideRefusalSchema = z.object({
8864
+ booked: z.number().int().nonnegative(),
8865
+ held: z.number().int().nonnegative(),
8866
+ capacity: z.number().int().nonnegative(),
8867
+ name: z.string(),
8868
+ retryPersonId: z.string().optional()
8869
+ });
8870
+ function isCapacityOverrideRefusal(value) {
8871
+ return capacityOverrideRefusalSchema.safeParse(value).success;
8872
+ }
8463
8873
  const API_ERROR_CODE_SET = /* @__PURE__ */ new Set([
8464
8874
  "auth:unauthenticated",
8465
8875
  "auth:token_expired",
@@ -8471,6 +8881,7 @@ const API_ERROR_CODE_SET = /* @__PURE__ */ new Set([
8471
8881
  "auth:impersonation_restricted",
8472
8882
  "auth:lease_required",
8473
8883
  "auth:lease_lost",
8884
+ "client:editing_held",
8474
8885
  "site_terms_changed",
8475
8886
  "site_terms_agreement_missing",
8476
8887
  "validation:invalid_input",
@@ -8506,7 +8917,7 @@ function isRecord$1(value) {
8506
8917
  return typeof value === "object" && value !== null && !Array.isArray(value);
8507
8918
  }
8508
8919
  function isFieldError(value) {
8509
- return isRecord$1(value) && typeof value.field === "string" && typeof value.code === "string" && typeof value.message === "string";
8920
+ return isRecord$1(value) && typeof value.field === "string" && typeof value.code === "string" && typeof value.message === "string" && (value.capacityOverride === void 0 || isCapacityOverrideRefusal(value.capacityOverride));
8510
8921
  }
8511
8922
  function fieldErrorsFromUnknown(value) {
8512
8923
  if (!Array.isArray(value)) return null;
@@ -8629,7 +9040,7 @@ function deriveSurfaceOwnedSiteSlugs() {
8629
9040
  ...siteRootHosts,
8630
9041
  ...SURFACE_IDS.map((surfaceId) => new URL(resolveSurfaceMarketingCanonicalOrigin(surfaceId)).hostname)
8631
9042
  ].flatMap((host) => siteRootHosts.flatMap((root) => siteSlugLabelUnderRoot(host, root)));
8632
- return [...new Set(labels)].sort();
9043
+ return [.../* @__PURE__ */ new Set([...labels, "draft-preview"])].sort();
8633
9044
  }
8634
9045
  deriveSurfaceOwnedSiteSlugs();
8635
9046
  const HOST_CANDIDATES = [...SURFACE_IDS.flatMap((surfaceId) => SURFACE_TIERS.flatMap((tier) => [
@@ -8757,6 +9168,74 @@ function resolveApiBaseUrl() {
8757
9168
  return getCmsApiUrl();
8758
9169
  }
8759
9170
  //#endregion
9171
+ //#region ../api/src/common/operationId.ts
9172
+ const OPERATION_ID_HEADER = "X-Riverbank-Operation-Id";
9173
+ z.uuid();
9174
+ /** One client command owns this id; network retries retain the same header. */
9175
+ function commandHeaders(endpoint, headers, operationId) {
9176
+ const result = new Headers(headers);
9177
+ if (API_ENDPOINTS[endpoint].method !== "GET" && !result.has("X-Riverbank-Operation-Id")) result.set(OPERATION_ID_HEADER, operationId);
9178
+ return result;
9179
+ }
9180
+ //#endregion
9181
+ //#region ../api/src/common/pageCommit.ts
9182
+ const pageCommitConfirmationSchema = committedWriteProofSchema.extend({ kind: z.literal("committed-reconciliation-required") });
9183
+ /** Positive storage evidence with no usable projection: refresh, never repeat an unconfirmed write. */
9184
+ var ApiCommittedWriteNotice = class extends Error {
9185
+ constructor(confirmation) {
9186
+ super("Your change was saved. Refresh the page to continue editing.");
9187
+ this.confirmation = confirmation;
9188
+ this.name = "ApiCommittedWriteNotice";
9189
+ }
9190
+ };
9191
+ const pageCommitConfirmationEnvelopeSchema = z.object({
9192
+ success: z.literal(true),
9193
+ data: pageCommitConfirmationSchema
9194
+ });
9195
+ z.enum([
9196
+ "paused",
9197
+ "lease-lost",
9198
+ "session-stale",
9199
+ "authority-denied",
9200
+ "stale-preimage",
9201
+ "stale-revision",
9202
+ "obsolete-schedule",
9203
+ "invalid-plan",
9204
+ "provider-scope-changed",
9205
+ "missing-document",
9206
+ "invalid-content",
9207
+ "unpublishable-content",
9208
+ "unavailable-design",
9209
+ "invalid-metadata",
9210
+ "invalid-anchor",
9211
+ "invalid-intent",
9212
+ "boundary-not-adjacent",
9213
+ "invalid-aggregate",
9214
+ "missing-block",
9215
+ "identity-in-use",
9216
+ "identifier-in-use",
9217
+ "content-reference-in-use",
9218
+ "missing-history",
9219
+ "invalid-external-change",
9220
+ "invalid-construction-inventory",
9221
+ "invalid-target",
9222
+ "invalid-revision",
9223
+ "invalid-document",
9224
+ "invalid-history",
9225
+ "path-unavailable",
9226
+ "invalid-page-version",
9227
+ "invalid-block-reference",
9228
+ "invalid-content-reference",
9229
+ "duplicate-storage-identity",
9230
+ "invalid-schedule",
9231
+ "invalid-provider",
9232
+ "invalid-site-style",
9233
+ "invalid-manifest",
9234
+ "invalid-preimage-reference",
9235
+ "outcome-unknown",
9236
+ "committed-follow-up-failed"
9237
+ ]);
9238
+ //#endregion
8760
9239
  //#region ../api/src/request.ts
8761
9240
  let revalidateTag = null;
8762
9241
  let revalidateTagResolved = false;
@@ -8801,6 +9280,7 @@ var ApiRequestError = class extends Error {
8801
9280
  this.body = options.body;
8802
9281
  this.cause = options.cause;
8803
9282
  this.errorCode = options.errorCode;
9283
+ this.tag = options.tag;
8804
9284
  this.retryAfterMs = options.retryAfterMs;
8805
9285
  }
8806
9286
  };
@@ -8964,6 +9444,7 @@ async function parseSuccessResponse(endpoint, response, config) {
8964
9444
  cause
8965
9445
  });
8966
9446
  }
9447
+ requireUsableCommitProjection(response, parsed);
8967
9448
  if (parsed && typeof parsed === "object" && "success" in parsed && typeof parsed.success === "boolean") return parsed;
8968
9449
  return buildSuccessEnvelope(parsed, requestId);
8969
9450
  }
@@ -8984,7 +9465,10 @@ function createRawCMSClient(getHeaders = () => ({}), baseUrl) {
8984
9465
  endpoint,
8985
9466
  body,
8986
9467
  params,
8987
- options,
9468
+ options: {
9469
+ ...options,
9470
+ headers: commandHeaders(endpoint, options.headers, generateRequestId())
9471
+ },
8988
9472
  headers: getHeaders(),
8989
9473
  baseUrl: normalizeCmsApiBaseUrl(baseUrl ?? resolveApiBaseUrl()),
8990
9474
  sdkVersion
@@ -9040,16 +9524,7 @@ function buildApiRequestPlan(input) {
9040
9524
  const nextOptions = { ...options?.next ?? {} };
9041
9525
  if (options?.cache === "no-store") delete nextOptions.revalidate;
9042
9526
  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
- }
9527
+ if ("tags" in endpointConfig && Array.isArray(endpointConfig.tags)) nextOptions.tags = buildCacheReadTags([...nextOptions.tags ?? [], ...endpointConfig.tags], params);
9053
9528
  const init = {
9054
9529
  method,
9055
9530
  ...options,
@@ -9082,6 +9557,7 @@ async function createApiRequestError(response, endpoint, fallbackMessage) {
9082
9557
  requestId: response.headers.get("x-request-id") ?? void 0,
9083
9558
  body,
9084
9559
  errorCode: details.code ?? void 0,
9560
+ tag: details.tag ?? void 0,
9085
9561
  retryAfterMs: parseRetryAfterHeader(response.headers.get("retry-after"))
9086
9562
  });
9087
9563
  }
@@ -9103,6 +9579,11 @@ function createInternalAPIClient(baseUrl) {
9103
9579
  function createBearerAPIClient(token, baseUrl) {
9104
9580
  return createParsedClient(createRawCMSClient(() => ({ Authorization: `Bearer ${typeof token === "function" ? token() : token}` }), baseUrl));
9105
9581
  }
9582
+ /** Positive receipt evidence is kept distinct from an HTTP or request failure. */
9583
+ function requireUsableCommitProjection(response, parsed) {
9584
+ if (response.headers.get("x-rb-page-commit") !== "confirmed-refresh") return;
9585
+ throw new ApiCommittedWriteNotice(pageCommitConfirmationEnvelopeSchema.parse(parsed).data);
9586
+ }
9106
9587
  //#endregion
9107
9588
  //#region ../api/src/utils/isRecord.ts
9108
9589
  function isRecord(value) {
@@ -9159,4 +9640,4 @@ function parsePublicProductCategorySelector(value) {
9159
9640
  };
9160
9641
  }
9161
9642
  //#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 };
9643
+ 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 };