@riverbankcms/sdk 0.138.0 → 0.140.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 (293) hide show
  1. package/README.md +12 -16
  2. package/dist/{PreviewEditorSidebar-BVPur_CU.mjs → PreviewEditorSidebar-CUyTzd5z.mjs} +4 -4
  3. package/dist/{PreviewEditorUI-DLhWX8oh.mjs → PreviewEditorUI-Agkw4v5i.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-BguJY1SW.mjs → PreviewQueryProvider-CN0ewic5.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-Tda6qw4z.mjs → SdkPreviewModeRuntime-DdbeAdS8.mjs} +62 -28
  6. package/dist/{SiteChromeCustomizeContext-BHFgMjde.mjs → SiteChromeCustomizeContext-CqGOz-Kv.mjs} +8467 -5616
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +264 -495
  8. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +221 -242
  9. package/dist/_dts/api/src/accessAdmin.d.ts +74 -104
  10. package/dist/_dts/api/src/aiEndpoints.d.ts +5 -1
  11. package/dist/_dts/api/src/authSubmission.d.ts +46 -0
  12. package/dist/_dts/api/src/billing.d.ts +18 -7
  13. package/dist/_dts/api/src/billingEndpointDefinitions.d.ts +23 -0
  14. package/dist/_dts/api/src/billingEndpointTypes.d.ts +26 -0
  15. package/dist/_dts/api/src/blocks.d.ts +2 -0
  16. package/dist/_dts/api/src/bookingRecords.d.ts +1 -2
  17. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +8 -1
  18. package/dist/_dts/api/src/communications.d.ts +0 -1
  19. package/dist/_dts/api/src/contentRuntime.d.ts +16 -4
  20. package/dist/_dts/api/src/endpoints.d.ts +275 -167
  21. package/dist/_dts/api/src/event-destination-policy.d.ts +2 -1
  22. package/dist/_dts/api/src/footerSettings.d.ts +10 -10
  23. package/dist/_dts/api/src/index.d.ts +11 -10
  24. package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
  25. package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
  26. package/dist/_dts/api/src/mailchimpIntegration.d.ts +2 -59
  27. package/dist/_dts/api/src/mailingListIntegration.d.ts +123 -0
  28. package/dist/_dts/api/src/navigation/dashboardSettingsNav.d.ts +1 -1
  29. package/dist/_dts/api/src/navigation/locations.d.ts +1 -0
  30. package/dist/_dts/api/src/navigation/types.d.ts +1 -1
  31. package/dist/_dts/api/src/navigation.d.ts +1 -26
  32. package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +109 -2
  33. package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +25 -0
  34. package/dist/_dts/api/src/onboarding/surfaceData.d.ts +185 -0
  35. package/dist/_dts/api/src/privacyPolicy.d.ts +74 -2
  36. package/dist/_dts/api/src/publicBookingAvailabilityEndpointDefinitions.d.ts +14 -6
  37. package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +1 -1
  38. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +1 -0
  39. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +11 -3
  40. package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +2 -4
  41. package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +9 -49
  42. package/dist/_dts/api/src/publicOnboardingAttemptEndpointDefinitions.d.ts +65 -0
  43. package/dist/_dts/api/src/publicReadEndpointDefinitions.d.ts +73 -0
  44. package/dist/_dts/api/src/saveOutcome.d.ts +20 -0
  45. package/dist/_dts/api/src/schemas/site-api-keys.d.ts +1 -1
  46. package/dist/_dts/api/src/sdkContracts.d.ts +5 -32
  47. package/dist/_dts/api/src/sdkPushContracts.d.ts +18 -0
  48. package/dist/_dts/api/src/sdkThemeWire.d.ts +46 -46
  49. package/dist/_dts/api/src/settings/permissions.d.ts +12 -0
  50. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +9 -34
  51. package/dist/_dts/api/src/siteOnboarding.d.ts +84 -228
  52. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +3 -13
  53. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +3 -1
  54. package/dist/_dts/api/src/siteSettings.d.ts +38 -6
  55. package/dist/_dts/api/src/types.d.ts +78 -77
  56. package/dist/_dts/api/src/wholeSeriesRuns.d.ts +2 -37
  57. package/dist/_dts/billing/src/membership/index.d.ts +17 -7
  58. package/dist/_dts/billing/src/plans/display.d.ts +15 -0
  59. package/dist/_dts/billing/src/plans/registry.d.ts +2 -0
  60. package/dist/_dts/billing/src/plans/standing.d.ts +19 -0
  61. package/dist/_dts/billing/src/plans/types.d.ts +4 -7
  62. package/dist/_dts/billing/src/site-arrangements.d.ts +14 -3
  63. package/dist/_dts/billing/src/subscriptions/evidence.d.ts +12 -0
  64. package/dist/_dts/billing/src/subscriptions/standingEvidence.d.ts +31 -0
  65. package/dist/_dts/billing/src/subscriptions/store.d.ts +23 -5
  66. package/dist/_dts/blocks/src/PageRenderer.d.ts +6 -15
  67. package/dist/_dts/blocks/src/client.d.ts +1 -1
  68. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +48 -20
  69. package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +2 -0
  70. package/dist/_dts/blocks/src/pageRendererContracts.d.ts +9 -0
  71. package/dist/_dts/blocks/src/pageRenderingMode.d.ts +12 -6
  72. package/dist/_dts/blocks/src/portal/types.d.ts +2 -4
  73. package/dist/_dts/blocks/src/portal/waitlist-types.d.ts +35 -0
  74. package/dist/_dts/blocks/src/system/blocks/appointment-services.d.ts +11 -0
  75. package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +39 -66
  76. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +2 -0
  77. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +42 -0
  78. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +4 -0
  79. package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +39 -114
  80. package/dist/_dts/blocks/src/system/blocks/offerings-preview/catalogue.d.ts +18 -0
  81. package/dist/_dts/blocks/src/system/blocks/offerings-preview/fields.d.ts +2 -0
  82. package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +4 -0
  83. package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +7 -13
  84. package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
  85. package/dist/_dts/blocks/src/system/data/index.d.ts +4 -4
  86. package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
  87. package/dist/_dts/blocks/src/system/data/prefetchBlockData.d.ts +2 -1
  88. package/dist/_dts/blocks/src/system/data/publicLoaderCachePolicy.d.ts +2 -74
  89. package/dist/_dts/blocks/src/system/data/types.d.ts +9 -0
  90. package/dist/_dts/blocks/src/system/fragments/library/newsletterForm.d.ts +33 -100
  91. package/dist/_dts/blocks/src/system/registry.d.ts +1 -0
  92. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +0 -28
  93. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
  94. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +7 -3
  95. package/dist/_dts/blocks/src/system/runtime/api/types/newsletter.d.ts +5 -15
  96. package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +1 -1
  97. package/dist/_dts/blocks/src/system/runtime/api/types/waitlist-claims.d.ts +7 -2
  98. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +78 -30
  99. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +39 -15
  100. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +3 -0
  101. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +1 -1
  102. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarToday.d.ts +22 -0
  103. package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +94 -0
  104. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +1 -2
  105. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/TicketSelectionStep.d.ts +2 -0
  106. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/checkoutRecovery.d.ts +14 -0
  107. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +56 -0
  108. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +6 -8
  109. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useCheckoutRecovery.d.ts +8 -0
  110. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +8 -7
  111. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +12 -2
  112. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventSourceRecovery.d.ts +18 -0
  113. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.client.d.ts +1 -1
  114. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +24 -7
  115. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +4 -2
  116. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +28 -0
  117. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/bookability.d.ts +9 -0
  118. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +14 -0
  119. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/duration.d.ts +2 -0
  120. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/index.d.ts +4 -0
  121. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/location.d.ts +2 -0
  122. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/quickDates.d.ts +16 -0
  123. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/AgendaEventCard.d.ts +9 -1
  124. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CalendarDayCell.d.ts +2 -0
  125. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CalendarDayHeaders.d.ts +4 -0
  126. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DayEventsModal.d.ts +2 -1
  127. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventCard.d.ts +5 -0
  128. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventModals.d.ts +2 -1
  129. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventQuickDates.d.ts +15 -0
  130. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +7 -3
  131. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.d.ts +1 -0
  132. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/index.d.ts +2 -0
  133. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/timetableModel.d.ts +1 -0
  134. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/useHydrationReady.d.ts +6 -0
  135. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.state.d.ts +3 -0
  136. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +62 -33
  137. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +3 -3
  138. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +14 -31
  139. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-catalogue.d.ts +14 -0
  140. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-content.d.ts +23 -0
  141. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +4 -2
  142. package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +1 -0
  143. package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -6
  144. package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
  145. package/dist/_dts/blocks/src/system/runtime/shared/useWaitlistClaim.d.ts +2 -0
  146. package/dist/_dts/blocks/src/system/transforms/registry/formatting.d.ts +5 -0
  147. package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +4 -0
  148. package/dist/_dts/commerce/src/purchase/index.d.ts +1 -0
  149. package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +32 -16
  150. package/dist/_dts/commerce/src/purchase/stripeCommissionMetadata.d.ts +34 -0
  151. package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +2 -1
  152. package/dist/_dts/content-editor/src/footerEngagementDraft.d.ts +6 -24
  153. package/dist/_dts/content-editor/src/hooks/useBlockAutosave.d.ts +3 -1
  154. package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +4 -2
  155. package/dist/_dts/core/src/branded.d.ts +0 -8
  156. package/dist/_dts/core/src/footer-engagement.d.ts +2 -6
  157. package/dist/_dts/core/src/index.d.ts +10 -1
  158. package/dist/_dts/core/src/mailing-list-identifiers.d.ts +21 -0
  159. package/dist/_dts/core/src/mailing-list-runtime.d.ts +42 -0
  160. package/dist/_dts/core/src/mailing-list-setup-parser.d.ts +14 -0
  161. package/dist/_dts/core/src/mailing-list-setup.d.ts +142 -0
  162. package/dist/_dts/core/src/mailing-list-submission.d.ts +224 -0
  163. package/dist/_dts/core/src/mailing-list-targeting-parser.d.ts +12 -0
  164. package/dist/_dts/core/src/mailing-list-targeting.d.ts +93 -0
  165. package/dist/_dts/core/src/navigation-locations.d.ts +28 -0
  166. package/dist/_dts/core/src/participants.d.ts +2 -29
  167. package/dist/_dts/core/src/public-experience.d.ts +4 -0
  168. package/dist/_dts/core/src/public-profile.d.ts +35 -1
  169. package/dist/_dts/core/src/public-read-cache-contract.d.ts +45 -0
  170. package/dist/_dts/core/src/site-route-target.d.ts +9 -2
  171. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +797 -954
  172. package/dist/_dts/editor-blocks/src/widgets/index.d.ts +1 -0
  173. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListGlobalSettingsSummary.d.ts +10 -0
  174. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListTargetingField.d.ts +12 -0
  175. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/context.d.ts +14 -0
  176. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/index.d.ts +3 -0
  177. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +7 -0
  178. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/targetingState.d.ts +19 -0
  179. package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +1 -0
  180. package/dist/_dts/sdk/src/client/publicAppointmentReadOperations.d.ts +12 -0
  181. package/dist/_dts/sdk/src/client/publicEventReadOperations.d.ts +2 -1
  182. package/dist/_dts/sdk/src/client/publicLoaderCacheAccess.d.ts +11 -4
  183. package/dist/_dts/sdk/src/config/content-types.d.ts +3 -13
  184. package/dist/_dts/sdk/src/config/content-validation.d.ts +5 -8
  185. package/dist/_dts/sdk/src/constants.d.ts +3 -3
  186. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  187. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +12 -31
  188. package/dist/_dts/sdk/src/navigation/index.d.ts +11 -29
  189. package/dist/_dts/sdk/src/next/index.d.ts +4 -4
  190. package/dist/_dts/sdk/src/prebuild/types.d.ts +1 -5
  191. package/dist/_dts/sdk/src/public-api/contracts.d.ts +44 -33
  192. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +5 -0
  193. package/dist/_dts/sdk/src/rendering/client.d.ts +3 -20
  194. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +5 -0
  195. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +4 -0
  196. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +8 -1
  197. package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +1 -0
  198. package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
  199. package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
  200. package/dist/_dts/sdk/src/version.d.ts +1 -1
  201. package/dist/_dts/theme-core/src/accordions/types.d.ts +3 -3
  202. package/dist/_dts/theme-core/src/cards/types.d.ts +21 -21
  203. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  204. package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +8 -2
  205. package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +2 -2
  206. package/dist/_dts/theme-core/src/hosted-booking-appearance.d.ts +41 -0
  207. package/dist/_dts/theme-core/src/index.d.ts +1 -0
  208. package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
  209. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +54 -54
  210. package/dist/_dts/theme-core/src/runtime/buildThemeRuntime.d.ts +0 -1
  211. package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +1 -4
  212. package/dist/_dts/theme-core/src/schema.d.ts +84 -84
  213. package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +1 -1
  214. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  215. package/dist/_dts/theme-core/src/surfaces/foregroundInteraction.d.ts +77 -0
  216. package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
  217. package/dist/_dts/theme-core/src/tokens/tokens.d.ts +7 -0
  218. package/dist/_dts/theme-core/src/typography/generateTypographyCss.d.ts +2 -2
  219. package/dist/_dts/ui/src/badge.d.ts +1 -1
  220. package/dist/_dts/ui/src/callout.d.ts +1 -1
  221. package/dist/_dts/ui/src/lib/use-delayed-flag.d.ts +9 -0
  222. package/dist/_dts/ui/src/pending-button.d.ts +10 -0
  223. package/dist/client/{BookingConsentAgreement-DQUik1Mx.mjs → BookingConsentAgreement-CuKa82V4.mjs} +4 -4
  224. package/dist/client/{DiscountCodeDisclosure-CU67Q4vH.mjs → DiscountCodeDisclosure-BbYieKWB.mjs} +1 -1
  225. package/dist/client/{EventCombined.client-a02TXUgg.mjs → EventCombined.client-LTfR1Aby.mjs} +444 -200
  226. package/dist/client/{EventListing.client-99qx7jFl.mjs → EventListing.client-DUHpYSuo.mjs} +2 -2
  227. package/dist/client/{LeafletStaticMap-CWzcq73L.mjs → LeafletStaticMap-CHRupL6m.mjs} +1 -1
  228. package/dist/client/{accordion-D1nb3-Oj.mjs → accordion-6HiIFxNL.mjs} +1 -1
  229. package/dist/client/{bookingForm-BGrmLhaO.mjs → bookingForm-Dlmid43H.mjs} +7 -7
  230. package/dist/client/bookings.mjs +368 -142
  231. package/dist/client/{carousel-DSmOx3ad.mjs → carousel-DmkZRRq_.mjs} +2 -2
  232. package/dist/client/{carousel.client-59G_WMr4.mjs → carousel.client-DQTjCVQT.mjs} +1 -1
  233. package/dist/client/{cart-COWeOIUk.mjs → cart-CIC24330.mjs} +3 -3
  234. package/dist/client/{checkout-CeysaIJK.mjs → checkout-D1Zw9imo.mjs} +3 -3
  235. package/dist/client/{checkoutUrls-BuseL0dw.mjs → checkoutUrls-FL6lRkrt.mjs} +1 -1
  236. package/dist/client/client.mjs +5017 -2258
  237. package/dist/client/{colorStyles-CrxJrPjJ.mjs → colorStyles-3013aRAY.mjs} +3 -1
  238. package/dist/client/{context-DBzX85Xc.mjs → context-Cy1OayHx.mjs} +9 -21
  239. package/dist/client/{dates-DCYhZBlW.mjs → dates-aDcfoLHr.mjs} +21 -3
  240. package/dist/client/{eventCalendar-BgsN73Ul.mjs → eventCalendar-FQxMPAjf.mjs} +81 -79
  241. package/dist/client/{eventCombined-DcZQAMQP.mjs → eventCombined-Dr3ac6Hb.mjs} +3 -3
  242. package/dist/client/{eventDetails-BWwGJ54l.mjs → eventDetails-D-AzUHFQ.mjs} +4 -4
  243. package/dist/client/{eventListing-DqYqV8vp.mjs → eventListing-B3XxBf3i.mjs} +3 -3
  244. package/dist/client/{eventRegistration-DQGDgu_e.mjs → eventRegistration-I6EaokFD.mjs} +543 -155
  245. package/dist/client/{form-ClfpasVT.mjs → form-BbWckVWY.mjs} +3 -3
  246. package/dist/client/{headerSection-BuOMe98N.mjs → headerSection-C9qU4Y7x.mjs} +2 -2
  247. package/dist/client/hooks.mjs +1685 -716
  248. package/dist/client/{locationMap-CEqu_sfa.mjs → locationMap-CLCShvlG.mjs} +3 -3
  249. package/dist/client/{media-BOHuueS5.mjs → media-DHpfFwd3.mjs} +1 -1
  250. package/dist/client/newsletterForm-Briukxzi.mjs +444 -0
  251. package/dist/client/{pricing-xj7MPZlK.mjs → pricing-Copadu-2.mjs} +1 -1
  252. package/dist/client/{productDetail-vxqTt5Xj.mjs → productDetail-oujlRd-r.mjs} +3 -3
  253. package/dist/client/{productList-OTdZu8sb.mjs → productList-BRiIRUcd.mjs} +3 -3
  254. package/dist/client/{propsDecoder-CY9gGEF7.mjs → propsDecoder-CB2KS_ko.mjs} +706 -160
  255. package/dist/client/rendering/client.mjs +3161 -1226
  256. package/dist/client/rendering/islands.mjs +19 -19
  257. package/dist/client/rendering.mjs +4864 -1914
  258. package/dist/client/{scrollToBlock--BFV6kl-.mjs → scrollToBlock-B1IS1_ua.mjs} +1 -1
  259. package/dist/client/{shop-CP4YbDL9.mjs → shop-Vn6yNFED.mjs} +6 -6
  260. package/dist/client/{shop-commerce-APs4XBXE.mjs → shop-commerce-BVTqipYp.mjs} +7 -7
  261. package/dist/client/{shop-commerce-store-CAVLxLFr.mjs → shop-commerce-store-BVnJVy7v.mjs} +1 -1
  262. package/dist/client/{shopShared-BnSRrwXI.mjs → shopShared-COIeK77T.mjs} +4 -4
  263. package/dist/client/{useEventFilters-1a1by4c8.mjs → useEventFilters-DzIUcS9n.mjs} +58 -11
  264. package/dist/preview-next/before-render.mjs +357 -175
  265. package/dist/preview-next/client/runtime.mjs +4 -4
  266. package/dist/preview-next/keepAlive.mjs +357 -175
  267. package/dist/preview-next/middleware.mjs +357 -175
  268. package/dist/{previewAuthStore-BkEgnYPP.mjs → previewAuthStore-Gjb6r6vz.mjs} +357 -175
  269. package/dist/{sdk-runtime-DwGfsT0S.mjs → sdk-runtime-CnCLvZRv.mjs} +2 -2
  270. package/dist/{separator-BeqDLneQ.mjs → separator-DKDRJ1oH.mjs} +1 -1
  271. package/dist/server/components.mjs +3389 -1251
  272. package/dist/server/config-validation.mjs +2737 -1784
  273. package/dist/server/config.mjs +2742 -1788
  274. package/dist/server/data.mjs +1586 -615
  275. package/dist/server/index.mjs +496 -352
  276. package/dist/server/navigation.mjs +16 -47
  277. package/dist/server/next.mjs +3978 -2007
  278. package/dist/server/page-converter.mjs +1109 -553
  279. package/dist/server/prebuild.mjs +2 -3
  280. package/dist/server/rendering/server.mjs +4101 -1951
  281. package/dist/server/rendering.mjs +3416 -1259
  282. package/dist/server/routing.mjs +1869 -786
  283. package/dist/server/server.mjs +3260 -2482
  284. package/dist/server/theme-bridge.mjs +725 -124
  285. package/dist/server/theme.mjs +8 -2
  286. package/dist/styles/index.css +526 -68
  287. package/package.json +1 -1
  288. package/dist/_dts/api/src/navigation/identity.d.ts +0 -59
  289. package/dist/_dts/blocks/src/system/blocks/newsletter-signup-destination.d.ts +0 -291
  290. package/dist/_dts/blocks/src/system/runtime/shared/components/BookingOptionCompactRow.d.ts +0 -29
  291. package/dist/_dts/blocks/src/system/runtime/shared/components/BookingOptionList.d.ts +0 -13
  292. package/dist/_dts/core/src/newsletter-signup-destination.d.ts +0 -38
  293. package/dist/client/newsletterForm-IbrHjMxy.mjs +0 -322
@@ -128,14 +128,121 @@ export declare const NEWSLETTER_ENDPOINT_DEFINITIONS: {
128
128
  responseKind: "json";
129
129
  errors: ("auth:forbidden" | "server:internal_error")[];
130
130
  };
131
- getMailchimpSignupSyncHealth: {
132
- path: "/sites/{siteId}/integrations/mailchimp/signup-sync-health";
131
+ getMailingListSetup: {
132
+ path: "/sites/{siteId}/mailing-list/setup";
133
+ method: "GET";
134
+ tags: ("riverbank:site:{siteId}" | "riverbank:site:{siteId}:newsletter")[];
135
+ auth: "user";
136
+ responseKind: "json";
137
+ errors: ("auth:forbidden" | "server:internal_error")[];
138
+ };
139
+ getMailingListAuthoringContext: {
140
+ path: "/sites/{siteId}/mailing-list/authoring-context";
141
+ method: "GET";
142
+ tags: ("riverbank:site:{siteId}" | "riverbank:site:{siteId}:newsletter")[];
143
+ auth: "user";
144
+ responseKind: "json";
145
+ errors: ("auth:forbidden" | "server:internal_error")[];
146
+ };
147
+ previewMailingListSetupChange: {
148
+ path: "/sites/{siteId}/mailing-list/setup/preview";
149
+ method: "POST";
150
+ tags: ("riverbank:site:{siteId}" | "riverbank:site:{siteId}:newsletter")[];
151
+ auth: "user";
152
+ responseKind: "json";
153
+ demoMutation: {
154
+ classification: "allowed";
155
+ publicMessage: "";
156
+ } | {
157
+ classification: import("./apiEndpointTypes").ApiDemoMutationBlockingClassification;
158
+ publicMessage: string;
159
+ };
160
+ errors: ("auth:forbidden" | "validation:invalid_input" | "server:internal_error")[];
161
+ };
162
+ applyMailingListSetupChange: {
163
+ path: "/sites/{siteId}/mailing-list/setup";
164
+ method: "PUT";
165
+ tags: ("riverbank:site:{siteId}" | "riverbank:site:{siteId}:newsletter")[];
166
+ auth: "user";
167
+ responseKind: "json";
168
+ demoMutation: {
169
+ classification: "allowed";
170
+ publicMessage: "";
171
+ } | {
172
+ classification: import("./apiEndpointTypes").ApiDemoMutationBlockingClassification;
173
+ publicMessage: string;
174
+ };
175
+ errors: ("auth:forbidden" | "validation:invalid_input" | "resource:conflict" | "server:internal_error")[];
176
+ };
177
+ getMailingListProviderCatalog: {
178
+ path: "/sites/{siteId}/mailing-list/providers/{provider}/catalog";
179
+ method: "GET";
180
+ tags: ("riverbank:site:{siteId}" | "riverbank:site:{siteId}:newsletter")[];
181
+ auth: "user";
182
+ responseKind: "json";
183
+ errors: ("auth:forbidden" | "validation:invalid_input" | "server:internal_error")[];
184
+ };
185
+ refreshMailingListProviderCatalog: {
186
+ path: "/sites/{siteId}/mailing-list/providers/{provider}/catalog/refresh";
187
+ method: "POST";
188
+ tags: ("riverbank:site:{siteId}" | "riverbank:site:{siteId}:newsletter")[];
189
+ auth: "user";
190
+ responseKind: "json";
191
+ demoMutation: {
192
+ classification: "allowed";
193
+ publicMessage: "";
194
+ } | {
195
+ classification: import("./apiEndpointTypes").ApiDemoMutationBlockingClassification;
196
+ publicMessage: string;
197
+ };
198
+ errors: ("auth:forbidden" | "validation:invalid_input" | "server:internal_error")[];
199
+ };
200
+ getMailingListProviderHealth: {
201
+ path: "/sites/{siteId}/mailing-list/health";
202
+ method: "GET";
203
+ tags: ("riverbank:site:{siteId}" | "riverbank:site:{siteId}:newsletter")[];
204
+ auth: "user";
205
+ responseKind: "json";
206
+ errors: ("auth:forbidden" | "server:internal_error")[];
207
+ };
208
+ getBrevoConnection: {
209
+ path: "/sites/{siteId}/integrations/brevo/connection";
133
210
  method: "GET";
134
211
  tags: "riverbank:site:{siteId}"[];
135
212
  auth: "user";
136
213
  responseKind: "json";
137
214
  errors: ("auth:forbidden" | "server:internal_error")[];
138
215
  };
216
+ connectBrevo: {
217
+ path: "/sites/{siteId}/integrations/brevo/connection";
218
+ method: "PUT";
219
+ tags: "riverbank:site:{siteId}"[];
220
+ auth: "user";
221
+ responseKind: "json";
222
+ demoMutation: {
223
+ classification: "allowed";
224
+ publicMessage: "";
225
+ } | {
226
+ classification: import("./apiEndpointTypes").ApiDemoMutationBlockingClassification;
227
+ publicMessage: string;
228
+ };
229
+ errors: ("auth:forbidden" | "validation:invalid_input" | "resource:conflict" | "server:internal_error")[];
230
+ };
231
+ disconnectBrevo: {
232
+ path: "/sites/{siteId}/integrations/brevo/disconnect";
233
+ method: "POST";
234
+ tags: "riverbank:site:{siteId}"[];
235
+ auth: "user";
236
+ responseKind: "json";
237
+ demoMutation: {
238
+ classification: "allowed";
239
+ publicMessage: "";
240
+ } | {
241
+ classification: import("./apiEndpointTypes").ApiDemoMutationBlockingClassification;
242
+ publicMessage: string;
243
+ };
244
+ errors: ("auth:forbidden" | "resource:conflict" | "server:internal_error")[];
245
+ };
139
246
  getMailchimpConnection: {
140
247
  path: "/sites/{siteId}/integrations/mailchimp/connection";
141
248
  method: "GET";
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Asking for the register confirmation email again.
3
+ *
4
+ * The request carries nothing but the attempt token in its path. The address
5
+ * is resolved server-side from the account that claimed the attempt, which
6
+ * registration does before the confirmation screen is ever shown.
7
+ *
8
+ * That is a security property, not a convenience: a caller-supplied address
9
+ * would be handed to Supabase's admin link generation, which creates a user
10
+ * when none exists. Anyone holding an attempt token could then mint accounts
11
+ * for addresses they do not own and have branded mail sent to them.
12
+ */
13
+ export type PublicOnboardingAttemptConfirmationResendRequest = Record<string, never>;
14
+ /**
15
+ * The answer is deliberately the same whether or not an email went out: a
16
+ * confirmed account, a missing user and a successful send all read as `sent`.
17
+ * This endpoint needs no credentials, so saying which is which would make it
18
+ * an oracle. `retryAfterSeconds` is the cool-down before another resend is
19
+ * worth asking for, returned on the happy path so the screen can hold the
20
+ * button without having to be refused first.
21
+ */
22
+ export type PublicOnboardingAttemptConfirmationResendResponse = {
23
+ result: 'sent';
24
+ retryAfterSeconds: number;
25
+ };
@@ -0,0 +1,185 @@
1
+ import type { LogoFacts } from '../../../theme-core/src/site-styles/index';
2
+ import type { BillingPlanId } from '../../../billing/src/plans/types';
3
+ import type { PublicExperience, SiteVerticalBookingConfig } from '../../../core/src/index';
4
+ /**
5
+ * Macadamia public-onboarding surface data.
6
+ *
7
+ * The wire shapes the onboarding wizard reads and writes: what the person is
8
+ * setting up, how they want it to look, and the one offering they may scaffold
9
+ * on the way through. `siteOnboarding` re-exports all of it, so importers keep
10
+ * reaching for these types through `@riverbankcms/api` as they always have.
11
+ *
12
+ * Note: Do NOT use these API types as validation schemas. They document wire
13
+ * contracts while the owning services validate and normalize inputs.
14
+ */
15
+ export type MacadamiaOnboardingSiteMode = 'single_page' | 'fuller_starter';
16
+ export type MacadamiaOnboardingMappedPalette = {
17
+ palette: Record<'primary' | 'secondary' | 'accent' | 'background' | 'surface' | 'text', string>;
18
+ mode: 'light' | 'dark';
19
+ };
20
+ export type MacadamiaOnboardingLogoPaletteRecommendation = {
21
+ title: string;
22
+ palette: MacadamiaOnboardingMappedPalette['palette'];
23
+ };
24
+ export type MacadamiaOnboardingLogoAnalysis = {
25
+ logoFacts: LogoFacts;
26
+ recommendedPalettes: MacadamiaOnboardingLogoPaletteRecommendation[];
27
+ ignoredColors: string[];
28
+ };
29
+ export type MacadamiaOnboardingVisualIdentity = {
30
+ logoPath: string | null;
31
+ logoUrl: string | null;
32
+ logoPalette: string[] | null;
33
+ logoMappedPalette: MacadamiaOnboardingMappedPalette | null;
34
+ logoAnalysis: MacadamiaOnboardingLogoAnalysis | null;
35
+ primaryColor: string | null;
36
+ secondaryColors: string[];
37
+ selectedPaletteKey: string | null;
38
+ inspirationUrls: string[];
39
+ };
40
+ export type PublicOnboardingSurfaceId = 'macadamia';
41
+ export type MacadamiaOnboardingTeamMode = 'solo' | 'team';
42
+ export type MacadamiaOnboardingOfferingKind = 'classes' | 'courses' | 'workshops' | 'retreats' | 'performances' | 'private_sessions';
43
+ export type MacadamiaOnboardingStyleMood = 'calm_grounding' | 'warm_welcoming' | 'modern_polished' | 'natural_earthy' | 'bright_uplifting' | 'luxury_retreat';
44
+ export type MacadamiaOnboardingFirstOfferingKind = 'class' | 'course' | 'workshop' | 'retreat' | 'performance' | 'private_session';
45
+ export type MacadamiaOnboardingFirstOfferingDeliveryMode = 'in_person' | 'online' | 'both';
46
+ export type MacadamiaOnboardingFirstOfferingScheduleMode = 'weekly' | 'one_off';
47
+ export type MacadamiaOnboardingWeekday = 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
48
+ export type MacadamiaOnboardingEventSession = {
49
+ clientId: string;
50
+ startDate: string;
51
+ startTime: string;
52
+ endDate: string;
53
+ endTime: string;
54
+ isMultiDay: boolean;
55
+ };
56
+ export type MacadamiaOnboardingFirstOffering = {
57
+ kind: 'class';
58
+ title: string;
59
+ description: string | null;
60
+ deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode;
61
+ location: string | null;
62
+ startDate: string;
63
+ recurrenceRule: string;
64
+ startTime: string;
65
+ durationMinutes: number;
66
+ priceType: 'free' | 'paid';
67
+ priceAmount: number | null;
68
+ capacity: number | null;
69
+ } | {
70
+ kind: 'course';
71
+ title: string;
72
+ description: string | null;
73
+ deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode;
74
+ location: string | null;
75
+ priceType: 'free' | 'paid';
76
+ priceAmount: number | null;
77
+ capacity: number | null;
78
+ sessions: MacadamiaOnboardingEventSession[];
79
+ } | {
80
+ kind: 'workshop' | 'retreat' | 'performance';
81
+ title: string;
82
+ description: string | null;
83
+ deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode;
84
+ location: string | null;
85
+ scheduleMode: MacadamiaOnboardingFirstOfferingScheduleMode;
86
+ startDate: string;
87
+ startTime: string;
88
+ durationMinutes: number;
89
+ priceType: 'free' | 'paid';
90
+ priceAmount: number | null;
91
+ capacity: number | null;
92
+ } | {
93
+ kind: 'private_session';
94
+ title: string;
95
+ description: string | null;
96
+ deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode;
97
+ location: string | null;
98
+ durationMinutes: number;
99
+ priceType: 'free' | 'paid';
100
+ priceAmount: number | null;
101
+ };
102
+ export type MacadamiaOnboardingDraftFirstOffering = {
103
+ kind: 'class';
104
+ title: string;
105
+ description: string | null;
106
+ deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode | null;
107
+ location: string | null;
108
+ startDate: string | null;
109
+ recurrenceRule: string | null;
110
+ startTime: string | null;
111
+ durationMinutes: number | null;
112
+ priceType: 'free' | 'paid' | null;
113
+ priceAmount: number | null;
114
+ capacity: number | null;
115
+ } | {
116
+ kind: 'course';
117
+ title: string;
118
+ description: string | null;
119
+ deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode | null;
120
+ location: string | null;
121
+ priceType: 'free' | 'paid' | null;
122
+ priceAmount: number | null;
123
+ capacity: number | null;
124
+ sessions: MacadamiaOnboardingEventSession[];
125
+ } | {
126
+ kind: 'workshop' | 'retreat' | 'performance';
127
+ title: string;
128
+ description: string | null;
129
+ deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode | null;
130
+ location: string | null;
131
+ scheduleMode: MacadamiaOnboardingFirstOfferingScheduleMode;
132
+ startDate: string | null;
133
+ startTime: string | null;
134
+ durationMinutes: number | null;
135
+ priceType: 'free' | 'paid' | null;
136
+ priceAmount: number | null;
137
+ capacity: number | null;
138
+ } | {
139
+ kind: 'private_session';
140
+ title: string;
141
+ description: string | null;
142
+ deliveryMode: MacadamiaOnboardingFirstOfferingDeliveryMode | null;
143
+ location: string | null;
144
+ durationMinutes: number | null;
145
+ priceType: 'free' | 'paid' | null;
146
+ priceAmount: number | null;
147
+ };
148
+ /**
149
+ * Which public experience the Macadamia onboarding attempt is setting up.
150
+ *
151
+ * Customer copy says "booking page"; the wire value is `hosted_booking`. This
152
+ * is the wizard's own preference, not a site authority: provisioning reads it
153
+ * into the site-level field once that exists.
154
+ *
155
+ * Tri-state on the wire: absent means an attempt written before the two-mode
156
+ * wizard (read as `website`), explicit `null` means the person has not chosen
157
+ * yet, and a value is the chosen mode.
158
+ */
159
+ export type MacadamiaOnboardingPublicExperience = PublicExperience;
160
+ /** Plan the person arrived with from pricing. Stored only; no billing action. */
161
+ export type MacadamiaOnboardingPlanPreference = BillingPlanId;
162
+ export type MacadamiaOnboardingSurfaceData = {
163
+ teamMode: MacadamiaOnboardingTeamMode;
164
+ ownerName: string | null;
165
+ offeringKinds: MacadamiaOnboardingOfferingKind[];
166
+ bookingVerticalConfig?: SiteVerticalBookingConfig | null;
167
+ /**
168
+ * Resolved by the payload schema before any reader sees it: an attempt
169
+ * written before the two-mode wizard parses as `website`, and an explicit
170
+ * null is someone who has not chosen a mode yet.
171
+ */
172
+ publicExperience: MacadamiaOnboardingPublicExperience | null;
173
+ planPreference?: MacadamiaOnboardingPlanPreference | null;
174
+ tagline?: string | null;
175
+ contactEmail?: string | null;
176
+ contactPhone?: string | null;
177
+ siteMode: MacadamiaOnboardingSiteMode;
178
+ styleMoods: MacadamiaOnboardingStyleMood[];
179
+ countryCode: string | null;
180
+ locationText: string | null;
181
+ timezone: string;
182
+ currency: string;
183
+ visualIdentity: MacadamiaOnboardingVisualIdentity;
184
+ firstOffering: MacadamiaOnboardingDraftFirstOffering | null;
185
+ };
@@ -1,9 +1,70 @@
1
1
  export type SiteLegalJurisdiction = 'UK' | 'US' | 'EU' | 'CA' | 'AU' | 'OTHER';
2
+ /**
3
+ * Where a privacy identity field gets its value.
4
+ *
5
+ * `public` reads the site's own public business name or contact email at
6
+ * request time, so changing the public value changes the policy. `custom`
7
+ * uses the value saved on the legal profile.
8
+ */
9
+ export type SiteLegalIdentitySource = 'public' | 'custom';
2
10
  export type SiteLegalProfilePayload = {
3
11
  legalEntityName: string | null;
4
12
  privacyContactEmail: string | null;
5
13
  jurisdiction: SiteLegalJurisdiction;
14
+ legalEntityNameSource: SiteLegalIdentitySource;
15
+ privacyContactEmailSource: SiteLegalIdentitySource;
16
+ /**
17
+ * Whether the site serves its privacy policy. Absent on every profile saved
18
+ * before this flag existed, and absent reads as false, so no site publishes
19
+ * a policy page until an administrator turns it on.
20
+ */
21
+ privacyPolicyPublished: boolean;
6
22
  };
23
+ /**
24
+ * A legal profile saved before the source flags existed carries values an
25
+ * administrator typed by hand, so a saved value is an override and only an
26
+ * empty one falls back to the public value.
27
+ */
28
+ export declare function resolveLegalIdentitySource(source: SiteLegalIdentitySource | null | undefined, savedValue: string | null): SiteLegalIdentitySource;
29
+ export type ResolvedSitePrivacyIdentity = {
30
+ entityName: string | null;
31
+ contactEmail: string | null;
32
+ jurisdiction: SiteLegalJurisdiction;
33
+ entityNameSource: SiteLegalIdentitySource;
34
+ contactEmailSource: SiteLegalIdentitySource;
35
+ };
36
+ /**
37
+ * Resolves the identity the privacy policy speaks in, reading the public
38
+ * business name and contact email wherever the profile defers to them.
39
+ *
40
+ * Nothing is copied between the two stores: a profile that defers resolves
41
+ * afresh on every read, so a site that renames itself does not have a stale
42
+ * name in its policy.
43
+ */
44
+ export declare function resolveSitePrivacyIdentity(input: {
45
+ legalProfile: SiteLegalProfilePayload;
46
+ publicBusinessName: string | null;
47
+ publicContactEmail: string | null;
48
+ }): ResolvedSitePrivacyIdentity;
49
+ /**
50
+ * A policy can only name a data controller once an entity name resolves.
51
+ * The contact email is not required: the policy has a standing fallback that
52
+ * points at the contact details published on the site.
53
+ */
54
+ export declare function isSitePrivacyIdentityReady(identity: ResolvedSitePrivacyIdentity): boolean;
55
+ /**
56
+ * EU member states, used both to place a site in the EU privacy jurisdiction
57
+ * and to seed the shop's default shipping countries.
58
+ */
59
+ export declare const EU_MEMBER_COUNTRIES: readonly ["AT", "BE", "BG", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "DE", "GR", "HU", "IE", "IT", "LV", "LT", "LU", "MT", "NL", "PL", "PT", "RO", "SK", "SI", "ES", "SE"];
60
+ /**
61
+ * Maps an ISO 3166-1 alpha-2 country code to a privacy jurisdiction.
62
+ *
63
+ * Onboarding collects alpha-2, so the United Kingdom arrives as `GB` rather
64
+ * than `UK`. An unrecognised or absent code is `OTHER`, which has its own
65
+ * policy wording rather than a wrong regulator.
66
+ */
67
+ export declare function mapCountryToLegalJurisdiction(countryCode: string | null | undefined): SiteLegalJurisdiction;
7
68
  export type SitePrivacyPolicyCapabilities = {
8
69
  usesNecessaryCookies: boolean;
9
70
  usesAnalyticsCookies: boolean;
@@ -42,8 +103,14 @@ export type SensitiveClientRecordsSettings = {
42
103
  acceptedConfirmationKeys: SensitiveClientRecordsConfirmationKey[];
43
104
  disableRequiresSupport: boolean;
44
105
  };
106
+ /**
107
+ * What a client may send for the legal profile. The source and publication
108
+ * flags are optional so a caller that has no control for them (and any client
109
+ * written before they existed) leaves them to be derived from the values.
110
+ */
111
+ export type SiteLegalProfileInput = Omit<SiteLegalProfilePayload, 'legalEntityNameSource' | 'privacyContactEmailSource' | 'privacyPolicyPublished'> & Partial<Pick<SiteLegalProfilePayload, 'legalEntityNameSource' | 'privacyContactEmailSource' | 'privacyPolicyPublished'>>;
45
112
  export type SitePrivacySettingsPayload = {
46
- legalProfile: SiteLegalProfilePayload;
113
+ legalProfile: SiteLegalProfileInput;
47
114
  sensitiveClientRecords?: SensitiveClientRecordsUpdatePayload;
48
115
  };
49
116
  export type SitePrivacySettings = {
@@ -52,9 +119,14 @@ export type SitePrivacySettings = {
52
119
  };
53
120
  export type SitePrivacySettingsResponse = {
54
121
  settings: SitePrivacySettings;
122
+ /** What the policy currently says its controller and contact are. */
123
+ resolvedIdentity: ResolvedSitePrivacyIdentity;
55
124
  preview: {
56
125
  policyPath: string;
126
+ /** An entity name resolves, so a policy can be built. */
57
127
  isReady: boolean;
128
+ /** The administrator has turned the policy on. */
129
+ isPublished: boolean;
58
130
  capabilities: SitePrivacyPolicyCapabilities;
59
131
  document: SitePrivacyPolicyDocument | null;
60
132
  };
@@ -70,7 +142,7 @@ export declare const MANAGED_PRIVACY_POLICY_PATH: "/privacy";
70
142
  export declare const DEFAULT_SITE_LEGAL_JURISDICTION: SiteLegalJurisdiction;
71
143
  export declare const JURISDICTION_LABELS: Record<SiteLegalJurisdiction, string>;
72
144
  export declare function buildManagedPrivacyPolicyDocument(input: {
73
- legalProfile: SiteLegalProfilePayload;
145
+ identity: ResolvedSitePrivacyIdentity;
74
146
  capabilities: SitePrivacyPolicyCapabilities;
75
147
  effectiveDate: string;
76
148
  }): SitePrivacyPolicyDocument;
@@ -13,7 +13,7 @@ export declare const PUBLIC_BOOKING_AVAILABILITY_ENDPOINT_DEFINITIONS: {
13
13
  getPublicBookingServices: {
14
14
  path: "/public/bookings/services";
15
15
  method: "GET";
16
- revalidate: 60;
16
+ revalidate: number;
17
17
  tags: "riverbank:site:{siteId}:public-booking-services"[];
18
18
  auth: "public";
19
19
  responseKind: "json";
@@ -21,7 +21,15 @@ export declare const PUBLIC_BOOKING_AVAILABILITY_ENDPOINT_DEFINITIONS: {
21
21
  getPublicBookingService: {
22
22
  path: "/public/bookings/services/{serviceId}";
23
23
  method: "GET";
24
- revalidate: 60;
24
+ revalidate: number;
25
+ tags: "riverbank:site:{siteId}:public-booking-services"[];
26
+ auth: "public";
27
+ responseKind: "json";
28
+ };
29
+ getPublicBookingServiceBySlug: {
30
+ path: "/public/bookings/services/by-slug/{slug}";
31
+ method: "GET";
32
+ revalidate: number;
25
33
  tags: "riverbank:site:{siteId}:public-booking-services"[];
26
34
  auth: "public";
27
35
  responseKind: "json";
@@ -29,7 +37,7 @@ export declare const PUBLIC_BOOKING_AVAILABILITY_ENDPOINT_DEFINITIONS: {
29
37
  getPublicBookingResourcesReference: {
30
38
  path: "/public/bookings/resources/reference";
31
39
  method: "GET";
32
- revalidate: 60;
40
+ revalidate: number;
33
41
  tags: "riverbank:site:{siteId}:public-booking-services"[];
34
42
  auth: "public";
35
43
  responseKind: "json";
@@ -37,7 +45,7 @@ export declare const PUBLIC_BOOKING_AVAILABILITY_ENDPOINT_DEFINITIONS: {
37
45
  getPublicBookingAvailableDates: {
38
46
  path: "/public/bookings/availability/dates";
39
47
  method: "GET";
40
- revalidate: 60;
48
+ revalidate: number;
41
49
  tags: ("riverbank:site:{siteId}:public-booking-services" | "riverbank:site:{siteId}:public-booking-availability")[];
42
50
  auth: "public";
43
51
  responseKind: "json";
@@ -45,7 +53,7 @@ export declare const PUBLIC_BOOKING_AVAILABILITY_ENDPOINT_DEFINITIONS: {
45
53
  getPublicBookingAvailableSlots: {
46
54
  path: "/public/bookings/availability/slots";
47
55
  method: "GET";
48
- revalidate: 60;
56
+ revalidate: number;
49
57
  tags: ("riverbank:site:{siteId}:public-booking-services" | "riverbank:site:{siteId}:public-booking-availability")[];
50
58
  auth: "public";
51
59
  responseKind: "json";
@@ -53,7 +61,7 @@ export declare const PUBLIC_BOOKING_AVAILABILITY_ENDPOINT_DEFINITIONS: {
53
61
  getPublicWeeklySlotAvailability: {
54
62
  path: "/public/bookings/weekly-slot-availability";
55
63
  method: "GET";
56
- revalidate: 60;
64
+ revalidate: number;
57
65
  tags: ("riverbank:site:{siteId}:public-booking-services" | "riverbank:site:{siteId}:public-booking-availability")[];
58
66
  auth: "public";
59
67
  responseKind: "json";
@@ -24,7 +24,7 @@ export declare const PUBLIC_EVENT_ENDPOINT_DEFINITIONS: {
24
24
  resolveEventSubroute: {
25
25
  path: "/public/sites/{siteId}/events/subroutes/resolve";
26
26
  method: "GET";
27
- revalidate: 60;
27
+ revalidate: number;
28
28
  tags: ("riverbank:site:{siteId}:public-events" | "event-subroute")[];
29
29
  auth: "public";
30
30
  responseKind: "json";
@@ -121,6 +121,7 @@ export type PublicCommerceAPIEndpoints = {
121
121
  customerId: string;
122
122
  amountCents: number;
123
123
  currency: string;
124
+ claimedByEmail: string;
124
125
  }>;
125
126
  createShopCheckout: APIEndpoint<{
126
127
  productType: 'pass' | 'membership';
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Merged into `PublicExperienceAPIEndpoints` by `../publicExperienceEndpoints`.
5
5
  */
6
- import type { APIEndpoint } from '../apiEndpointTypes';
7
6
  import type { EventRegistrationOptionsRequest, EventRegistrationOptionsResponse } from '../../../blocks/src/system/blocks/event-registration';
8
7
  import type { PublicWaitlistClaimResponse } from '../../../commerce/src/index';
8
+ import type { APIEndpoint } from '../apiEndpointTypes';
9
9
  import type { DirectCheckoutCollectionOptionKind, EventAttendanceMode } from '../bookingConfig';
10
10
  import type { EventTicketLineSummaryResponse, EventTicketSelectionRequest, PublicEventLoaderParams } from './sharedTypes';
11
11
  /**
@@ -15,9 +15,9 @@ import type { EventTicketLineSummaryResponse, EventTicketSelectionRequest, Publi
15
15
  * constituent shape) and surfaced here as the wire contract. Nothing restates
16
16
  * it: the dashboard projection and every block consumer import these names.
17
17
  */
18
- export type { PublicEvent, PublicEventBase, PublicWholeSeriesRun, PublicWholeSeriesRunLifecycle, PublicWholeSeriesRunVisibility, PublicRunSession, } from '../../../blocks/src/system/blocks/events/shared/types';
18
+ export type { PublicEvent, PublicEventBase, PublicRunSession, PublicWholeSeriesRun, PublicWholeSeriesRunLifecycle, PublicWholeSeriesRunVisibility, } from '../../../blocks/src/system/blocks/events/shared/types';
19
+ import type { CalendarWindowPage, CalendarWindowRequest } from '../../../blocks/src/contracts/index';
19
20
  import type { PublicEvent } from '../../../blocks/src/system/blocks/events/shared/types';
20
- import type { CalendarWindowRequest, CalendarWindowPage } from '../../../blocks/src/contracts/index';
21
21
  export type PublicEventAPIEndpoints = {
22
22
  listPublicEventCalendarWindow: APIEndpoint<never, {
23
23
  siteId: string;
@@ -118,6 +118,7 @@ export type PublicEventAPIEndpoints = {
118
118
  customerMembershipId?: string;
119
119
  bundleProductId?: string;
120
120
  claimToken?: string;
121
+ waitlistEntryId?: string;
121
122
  guests?: Array<{
122
123
  name: string;
123
124
  email?: string | null;
@@ -169,6 +170,7 @@ export type PublicEventAPIEndpoints = {
169
170
  kind: 'occurrence';
170
171
  attendeeId: string;
171
172
  };
173
+ registrationCommandId?: string;
172
174
  checkoutType?: 'event' | 'pass_bundle' | 'membership_bundle';
173
175
  productId?: string;
174
176
  discountCode?: string;
@@ -195,6 +197,7 @@ export type PublicEventAPIEndpoints = {
195
197
  phone?: string | null;
196
198
  }>;
197
199
  claimToken?: string;
200
+ waitlistEntryId?: string;
198
201
  discountCode?: string;
199
202
  collectionOptionKind: DirectCheckoutCollectionOptionKind;
200
203
  checkoutAttemptId: string;
@@ -211,6 +214,7 @@ export type PublicEventAPIEndpoints = {
211
214
  } | {
212
215
  scope: 'wholeSeries';
213
216
  registrationId: string;
217
+ checkoutAttemptId: string;
214
218
  checkoutUrl: string | null;
215
219
  sessionId: string | null;
216
220
  bypassed: boolean;
@@ -269,6 +273,10 @@ export type PublicEventAPIEndpoints = {
269
273
  }, string>;
270
274
  resolveWaitlistClaim: APIEndpoint<{
271
275
  claimToken: string;
276
+ waitlistEntryId?: never;
277
+ } | {
278
+ waitlistEntryId: string;
279
+ claimToken?: never;
272
280
  }, {
273
281
  siteId: string;
274
282
  }, PublicWaitlistClaimResponse>;
@@ -5,13 +5,11 @@
5
5
  */
6
6
  import type { APIEndpoint } from "../apiEndpointTypes";
7
7
  import type { NewsletterSubscribeBody } from "./sharedTypes";
8
+ import type { MailingListPublicSignupResponse } from '../../../core/src/index';
8
9
  export type PublicNewsletterAPIEndpoints = {
9
10
  subscribeNewsletter: APIEndpoint<NewsletterSubscribeBody, {
10
11
  siteId: string;
11
- }, {
12
- subscribed: true;
13
- requiresConfirmation?: boolean;
14
- }>;
12
+ }, MailingListPublicSignupResponse>;
15
13
  confirmNewsletter: APIEndpoint<never, {
16
14
  siteId: string;
17
15
  token: string;