@riverbankcms/sdk 0.145.0 → 0.147.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 (254) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/{PreviewEditorSidebar-O-V6Pl5a.mjs → PreviewEditorSidebar-DtpB3_sS.mjs} +51 -33
  3. package/dist/{PreviewEditorUI-1UlX_9cw.mjs → PreviewEditorUI-DxTLgaHo.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-BxGwdOCV.mjs → PreviewQueryProvider-Dd4dxOiU.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-DYbA_4iv.mjs → SdkPreviewModeRuntime-DMMNCngt.mjs} +311 -186
  6. package/dist/{SiteChromeCustomizeContext-CNTKQ9nx.mjs → SiteChromeCustomizeContext-DQXZXiqS.mjs} +3808 -2395
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +1122 -0
  8. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +102 -0
  9. package/dist/_dts/api/src/accountApi.d.ts +5 -5
  10. package/dist/_dts/api/src/bookingConfig.d.ts +24 -1
  11. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +11 -26
  12. package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +45 -1
  13. package/dist/_dts/api/src/bookingOperations.d.ts +2 -44
  14. package/dist/_dts/api/src/bookingPeople.d.ts +92 -0
  15. package/dist/_dts/api/src/bookingPeopleEndpointDefinitions.d.ts +38 -0
  16. package/dist/_dts/api/src/bookingRecords.d.ts +11 -49
  17. package/dist/_dts/api/src/bookingSettingsSections.d.ts +1 -1
  18. package/dist/_dts/api/src/bookings.d.ts +1 -0
  19. package/dist/_dts/api/src/clientErrorReporting.d.ts +50 -0
  20. package/dist/_dts/api/src/communications.d.ts +20 -4
  21. package/dist/_dts/api/src/contentRuntime.d.ts +3 -7
  22. package/dist/_dts/api/src/endpoints.d.ts +816 -655
  23. package/dist/_dts/api/src/event-visibility.d.ts +20 -0
  24. package/dist/_dts/api/src/eventManagementContracts.d.ts +72 -4
  25. package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +24 -0
  26. package/dist/_dts/api/src/eventPageWords.d.ts +19 -0
  27. package/dist/_dts/api/src/eventSeriesRegistrationEndpointDefinitions.d.ts +14 -0
  28. package/dist/_dts/api/src/index.d.ts +9 -2
  29. package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
  30. package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
  31. package/dist/_dts/api/src/launchReadiness.d.ts +19 -6
  32. package/dist/_dts/api/src/launchRequirementPriority.d.ts +3 -0
  33. package/dist/_dts/api/src/mailingListIntegration.d.ts +6 -0
  34. package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +1 -1
  35. package/dist/_dts/api/src/newsletterCampaignCommandEndpoints.d.ts +13 -0
  36. package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +57 -0
  37. package/dist/_dts/api/src/occurrenceScheduling.d.ts +29 -0
  38. package/dist/_dts/api/src/pageSurfaceEndpoints.d.ts +44 -0
  39. package/dist/_dts/api/src/participantMessaging.d.ts +11 -1
  40. package/dist/_dts/api/src/publicAppointmentBookingContracts.d.ts +48 -0
  41. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +7 -0
  42. package/dist/_dts/api/src/sdk-event-upsert.d.ts +55 -1
  43. package/dist/_dts/api/src/sdkContracts.d.ts +3 -42
  44. package/dist/_dts/api/src/sdkCourseBooking.d.ts +30 -0
  45. package/dist/_dts/api/src/sdkEventEndpointDefinitions.d.ts +76 -0
  46. package/dist/_dts/api/src/sdkEventLifecycle.d.ts +37 -0
  47. package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +18 -0
  48. package/dist/_dts/api/src/sdkPageDesign.d.ts +388 -0
  49. package/dist/_dts/api/src/sdkPageDesignEndpointDefinitions.d.ts +22 -0
  50. package/dist/_dts/api/src/sdkPullEventContracts.d.ts +46 -0
  51. package/dist/_dts/api/src/siteAddressEndpoints.d.ts +29 -0
  52. package/dist/_dts/api/src/siteLifecycleEndpoints.d.ts +61 -0
  53. package/dist/_dts/api/src/siteManagementEndpointDefinitions.d.ts +49 -0
  54. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +6 -49
  55. package/dist/_dts/api/src/siteOnboarding.d.ts +72 -18
  56. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +1 -1
  57. package/dist/_dts/api/src/types.d.ts +7 -1
  58. package/dist/_dts/api/src/wholeSeriesRuns.d.ts +14 -0
  59. package/dist/_dts/blocks/src/PageRenderer.d.ts +3 -4
  60. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +8 -0
  61. package/dist/_dts/blocks/src/index.d.ts +2 -0
  62. package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +29 -1
  63. package/dist/_dts/blocks/src/pageRendererContracts.d.ts +5 -1
  64. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +27 -5
  65. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +14 -1
  66. package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +4 -1
  67. package/dist/_dts/blocks/src/system/icons/social.d.ts +1 -1
  68. package/dist/_dts/blocks/src/system/registry.d.ts +1 -1
  69. package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +4 -0
  70. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +12 -0
  71. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +12 -0
  72. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +6 -0
  73. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +8 -0
  74. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +2 -0
  75. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.completion.d.ts +9 -0
  76. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +9 -0
  77. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +19 -0
  78. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-choice.d.ts +5 -0
  79. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-note.d.ts +3 -0
  80. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.mailing-list-state.d.ts +9 -0
  81. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.reserved-fields.d.ts +1 -1
  82. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +1 -1
  83. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +2 -0
  84. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-handler.d.ts +8 -0
  85. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.submit-success.d.ts +9 -0
  86. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +3 -0
  87. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/AttendeeDetailsStep.d.ts +3 -0
  88. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/SuccessStep.d.ts +3 -0
  89. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +3 -0
  90. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +1 -0
  91. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +2 -0
  92. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +6 -0
  93. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +3 -0
  94. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +8 -0
  95. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +9 -0
  96. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +20 -4
  97. package/dist/_dts/blocks/src/system/runtime/nodes/form.fields.d.ts +5 -0
  98. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.block-submission.d.ts +34 -0
  99. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.d.ts +1 -1
  100. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +6 -1
  101. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.parts.d.ts +46 -0
  102. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +2 -1
  103. package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +4 -1
  104. package/dist/_dts/blocks/src/system/runtime/shared/components/BookingMailingListNote.d.ts +6 -0
  105. package/dist/_dts/blocks/src/system/runtime/shared/components/CheckboxChoice.d.ts +18 -0
  106. package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +1 -0
  107. package/dist/_dts/blocks/src/system/runtime/shared/mailingListSignupCopy.d.ts +6 -0
  108. package/dist/_dts/blocks/src/system/runtime/shared/types.d.ts +1 -0
  109. package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -2
  110. package/dist/_dts/blocks/src/system/transforms/registry/core.d.ts +2 -0
  111. package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +1 -3
  112. package/dist/_dts/content-editor/src/index.d.ts +1 -0
  113. package/dist/_dts/content-editor/src/primitives/previewEditableOutline.d.ts +2 -0
  114. package/dist/_dts/content-editor/src/ui/editorBlockEquality.d.ts +3 -0
  115. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +3 -5
  116. package/dist/_dts/core/src/block-content-identity.d.ts +5 -0
  117. package/dist/_dts/core/src/editor-state.d.ts +2 -7
  118. package/dist/_dts/core/src/index.d.ts +2 -1
  119. package/dist/_dts/core/src/mailing-list-runtime.d.ts +15 -0
  120. package/dist/_dts/core/src/mailing-list-setup.d.ts +2 -0
  121. package/dist/_dts/core/src/mailing-list-submission.d.ts +9 -1
  122. package/dist/_dts/core/src/navigation-portal-labels.d.ts +9 -0
  123. package/dist/_dts/core/src/participants.d.ts +0 -38
  124. package/dist/_dts/core/src/public-event-booking-availability.d.ts +20 -1
  125. package/dist/_dts/core/src/public-profile.d.ts +3 -1
  126. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +151 -24
  127. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +3 -0
  128. package/dist/_dts/editor-blocks/src/block-editor/EmptyState.d.ts +13 -1
  129. package/dist/_dts/editor-blocks/src/block-editor/actionPresentation.d.ts +1 -0
  130. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +2 -8
  131. package/dist/_dts/editor-blocks/src/index.d.ts +1 -0
  132. package/dist/_dts/preview-next/src/client/blocks/EditablePageRenderer.d.ts +7 -1
  133. package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +5 -5
  134. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -2
  135. package/dist/_dts/sdk/src/next/renderSdkContent.d.ts +0 -1
  136. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +3 -2
  137. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -2
  138. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +6 -1
  139. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +5 -2
  140. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +6 -1
  141. package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +2 -0
  142. package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +5 -1
  143. package/dist/_dts/sdk/src/rendering/hooks/usePage.d.ts +5 -1
  144. package/dist/_dts/sdk/src/version.d.ts +1 -1
  145. package/dist/_dts/surfaces/src/index.d.ts +9 -0
  146. package/dist/_dts/theme-core/src/buttons/effects/types.d.ts +1 -1
  147. package/dist/_dts/theme-core/src/footer/effectiveNavLinkStyle.d.ts +13 -0
  148. package/dist/_dts/theme-core/src/footer/index.d.ts +1 -0
  149. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  150. package/dist/_dts/theme-core/src/header/effectiveNavLinkStyle.d.ts +17 -0
  151. package/dist/_dts/theme-core/src/header/generateHeaderLogoStyles.d.ts +15 -0
  152. package/dist/_dts/theme-core/src/header/generateHeaderNavLinkStyles.d.ts +4 -0
  153. package/dist/_dts/theme-core/src/header/index.d.ts +3 -0
  154. package/dist/_dts/theme-core/src/header/legacyNavLinkStyle.d.ts +1 -1
  155. package/dist/_dts/theme-core/src/header/openingForegroundProjection.d.ts +7 -0
  156. package/dist/_dts/theme-core/src/header/rootPaint.d.ts +4 -0
  157. package/dist/_dts/theme-core/src/inputs/checkable.d.ts +42 -0
  158. package/dist/_dts/theme-core/src/inputs/inputGroup.d.ts +19 -0
  159. package/dist/_dts/theme-core/src/navigation/effectPolicy.d.ts +38 -0
  160. package/dist/_dts/theme-core/src/navigation/generateNavLinkCSS.d.ts +4 -0
  161. package/dist/_dts/theme-core/src/navigation/types.d.ts +4 -0
  162. package/dist/_dts/theme-core/src/site-styles/accessibleSurfaces.d.ts +1 -1
  163. package/dist/_dts/theme-core/src/surfaces/foregroundContract.d.ts +7 -0
  164. package/dist/_dts/theme-core/src/surfaces/foregroundInteraction.d.ts +29 -22
  165. package/dist/_dts/theme-core/src/surfaces/foregroundRoles.d.ts +10 -2
  166. package/dist/_dts/theme-core/src/surfaces/resolveSurfaceForeground.d.ts +9 -0
  167. package/dist/_dts/theme-core/src/utils/cssDeclarations.d.ts +2 -0
  168. package/dist/_dts/ui/src/badge.d.ts +2 -1
  169. package/dist/_dts/ui/src/button.d.ts +1 -1
  170. package/dist/_dts/ui/src/combobox-keys.d.ts +23 -0
  171. package/dist/_dts/ui/src/combobox-rows.d.ts +34 -0
  172. package/dist/_dts/ui/src/combobox.d.ts +26 -1
  173. package/dist/_dts/ui/src/date-picker.d.ts +5 -8
  174. package/dist/_dts/ui/src/editor-item-card.d.ts +1 -0
  175. package/dist/_dts/ui/src/field-trigger.d.ts +39 -0
  176. package/dist/_dts/ui/src/fieldControl.d.ts +27 -0
  177. package/dist/_dts/ui/src/index.d.ts +4 -1
  178. package/dist/_dts/ui/src/native-select.d.ts +8 -0
  179. package/dist/_dts/ui/src/navigation-tabs.d.ts +2 -1
  180. package/dist/_dts/ui/src/popover.d.ts +7 -1
  181. package/dist/_dts/ui/src/segmented-control.d.ts +4 -0
  182. package/dist/_dts/ui/src/surface.d.ts +1 -1
  183. package/dist/client/{BookingConsentAgreement-DlVOmpW4.mjs → BookingMailingListNote-1n4Ch_u_.mjs} +15 -4
  184. package/dist/client/CheckboxChoice-B33MqoUo.mjs +24 -0
  185. package/dist/client/{DiscountCodeDisclosure-T9q623PQ.mjs → DiscountCodeDisclosure-CKJtz0mY.mjs} +1 -1
  186. package/dist/client/{EventCombined.client-DnsUeONl.mjs → EventCombined.client-C0pgma9y.mjs} +7 -7
  187. package/dist/client/{EventListing.client-CNBFqJS4.mjs → EventListing.client-4fhLOvHP.mjs} +2 -2
  188. package/dist/client/{LeafletStaticMap-C7higg52.mjs → LeafletStaticMap-DScC4F3w.mjs} +1 -1
  189. package/dist/client/{scrollToBlock-CWs8EIdo.mjs → TerminalPanel-B5ZUsYhe.mjs} +77 -77
  190. package/dist/client/{ThemedButton-LAJTNrS8.mjs → ThemedButton-DoVIV1Ao.mjs} +2 -2
  191. package/dist/client/{accordion-BcNF9TjX.mjs → accordion-CoT5g7zo.mjs} +1 -1
  192. package/dist/client/{bookingForm-BUaQ3S03.mjs → bookingForm-BWxB46xD.mjs} +251 -150
  193. package/dist/client/bookings.mjs +415 -234
  194. package/dist/client/{carousel-CTdF6e0V.mjs → carousel-DtNYWFd3.mjs} +2 -2
  195. package/dist/client/{carousel.client-jahpU9Vz.mjs → carousel.client-A2lG-9od.mjs} +1 -1
  196. package/dist/client/{cart-pGtyf_XU.mjs → cart-z4qZih1Y.mjs} +3 -3
  197. package/dist/client/{checkout-Da9WSn7Y.mjs → checkout-DpL7euFH.mjs} +3 -3
  198. package/dist/client/{checkoutUrls-CW3-78uu.mjs → checkoutUrls-BEfR7kVu.mjs} +1 -1
  199. package/dist/client/client.mjs +3721 -2220
  200. package/dist/client/{colorStyles-CuJBiS-1.mjs → colorStyles-j5U9v5JA.mjs} +5 -1
  201. package/dist/client/{context-BFeY_Wbm.mjs → context-C8TinPJc.mjs} +1 -1
  202. package/dist/client/{dates-BhwVSxDg.mjs → dates-vwwxTeB0.mjs} +2 -3
  203. package/dist/client/{eventCalendar-BAtdnR4s.mjs → eventCalendar-DIbHfJXO.mjs} +10 -10
  204. package/dist/client/{eventCombined-RksA3tRC.mjs → eventCombined-DoGMJ6cg.mjs} +4 -4
  205. package/dist/client/{eventDetails-BB9hB4wR.mjs → eventDetails-BjN9v6a1.mjs} +4 -4
  206. package/dist/client/{eventListing-BpJBkviM.mjs → eventListing-DajjWgOv.mjs} +4 -4
  207. package/dist/client/{eventRegistration-B18jFq_o.mjs → eventRegistration-DMq9gMA-.mjs} +121 -54
  208. package/dist/client/{form-Dodt8Y8t.mjs → form-Qf6qTbos.mjs} +136 -105
  209. package/dist/client/{headerSection-B0qj9ttg.mjs → headerSection-D7qJrqFX.mjs} +3 -3
  210. package/dist/client/hooks.mjs +1148 -179
  211. package/dist/client/{locationMap-gn-iMk7a.mjs → locationMap-CCF9-t_0.mjs} +4 -4
  212. package/dist/client/{FieldValidationMessage-AYanWFb-.mjs → mailingListSignupCopy-DZSHZrm6.mjs} +14 -1
  213. package/dist/client/{media-BtJ37tzS.mjs → media-CwBGetqC.mjs} +1 -1
  214. package/dist/client/{newsletterForm-oByLdFkr.mjs → newsletterForm-DzCLSP4S.mjs} +206 -104
  215. package/dist/client/{pricing-BOU0_Hai.mjs → pricing-Cgxv2KLC.mjs} +1 -1
  216. package/dist/client/{productDetail-D9v1zH2j.mjs → productDetail-ru9w5GHx.mjs} +3 -3
  217. package/dist/client/{productList-D-mItx1n.mjs → productList-zaapKSl-.mjs} +3 -3
  218. package/dist/client/{propsDecoder-C3TP_z4x.mjs → propsDecoder-CwvvNOHx.mjs} +91 -28
  219. package/dist/client/rendering/client.mjs +1441 -826
  220. package/dist/client/rendering/islands.mjs +19 -19
  221. package/dist/client/rendering.mjs +3652 -2005
  222. package/dist/client/{routeIslandApiConfig-DzN1W0sq.mjs → routeIslandApiConfig-BwVFo0Y4.mjs} +1 -1
  223. package/dist/client/{shop-commerce-gklw_hLF.mjs → shop-commerce-De7gEnkA.mjs} +8 -8
  224. package/dist/client/{shop-commerce-store-Sf1eyTaZ.mjs → shop-commerce-store-B3MCxIBW.mjs} +1 -1
  225. package/dist/client/{shop-Dufw7N7o.mjs → shop-mktkXvbV.mjs} +7 -7
  226. package/dist/client/{shopShared-B5nyA41S.mjs → shopShared-TqExh235.mjs} +5 -5
  227. package/dist/client/{useEventFilters-CLL829vy.mjs → useEventFilters-n_OjkIjX.mjs} +8 -8
  228. package/dist/preview-next/before-render.mjs +490 -153
  229. package/dist/preview-next/client/runtime.mjs +4 -4
  230. package/dist/preview-next/editor-base.css +64 -2
  231. package/dist/preview-next/editor-chrome.css +7 -4
  232. package/dist/preview-next/keepAlive.mjs +450 -153
  233. package/dist/preview-next/middleware.mjs +451 -153
  234. package/dist/{previewAuthStore-BxAFlu-j.mjs → previewAuthStore-C_EHQ5XA.mjs} +475 -153
  235. package/dist/{sdk-runtime-D0uZFev7.mjs → sdk-runtime-BIkJg5y1.mjs} +2 -2
  236. package/dist/{separator-EvdCAn4V.mjs → separator-C9qDP95Z.mjs} +1 -1
  237. package/dist/server/components.mjs +4957 -3509
  238. package/dist/server/config-validation.mjs +1115 -189
  239. package/dist/server/config.mjs +1115 -189
  240. package/dist/server/data.mjs +1113 -188
  241. package/dist/server/index.mjs +492 -154
  242. package/dist/server/navigation.mjs +13 -2
  243. package/dist/server/next.mjs +4798 -3462
  244. package/dist/server/page-converter.mjs +143 -89
  245. package/dist/server/prebuild.mjs +1 -1
  246. package/dist/server/rendering/server.mjs +3862 -2414
  247. package/dist/server/rendering.mjs +5648 -4154
  248. package/dist/server/routing.mjs +1223 -329
  249. package/dist/server/server.mjs +1172 -314
  250. package/dist/server/theme-bridge.mjs +533 -128
  251. package/dist/server/theme.mjs +5 -1
  252. package/dist/styles/index.css +218 -69
  253. package/package.json +1 -1
  254. package/dist/_dts/core/src/participant-identity.d.ts +0 -135
@@ -0,0 +1,388 @@
1
+ /**
2
+ * The portable page design document (issue 1497).
3
+ *
4
+ * A stored `PageDesignIntent` names blocks by their database ids, so it only
5
+ * makes sense on the page it came from. The portable document is the same
6
+ * intent with every block reference expressed as the block's management
7
+ * identifier (`hero-0`, `body-text-1`), which is what lets a design travel from
8
+ * one page to another page built from the same blocks.
9
+ *
10
+ * A boundary is carried as its identifier pair only. Its stored `boundaryId`
11
+ * is derived from the pair after mapping, so the two can never disagree.
12
+ *
13
+ * The document is parsed once, here, at the JSON boundary. Whether it fits a
14
+ * particular destination page is a separate, semantic decision made by the
15
+ * dashboard against that page's blocks and site style.
16
+ */
17
+ import { z } from 'zod';
18
+ import type { Brand } from '../../core/src/index';
19
+ import { pageDesignIntentSchemaVersion, type AppearancePresetId, type PageDesignUserPinnedChoice, type PageFlowPresetId, type SectionBoundaryTreatment, type SiteStyleId } from '../../theme-core/src/site-styles/index';
20
+ import type { APIEndpoint } from './apiEndpointTypes';
21
+ import type { PageDesignRevisionToken } from './siteRuntimeEndpoints';
22
+ /** A block's management identifier, as a page's blocks carry it. */
23
+ export type BlockIdentifier = Brand<string, 'BlockIdentifier'>;
24
+ export declare const unsafeAsBlockIdentifier: (value: string) => BlockIdentifier;
25
+ export type PortableBlockLookPin = Readonly<{
26
+ blockIdentifier: BlockIdentifier;
27
+ blockKind: string;
28
+ choice: PageDesignUserPinnedChoice<AppearancePresetId>;
29
+ }>;
30
+ export type PortableBoundaryPin = Readonly<{
31
+ previousBlockIdentifier: BlockIdentifier;
32
+ nextBlockIdentifier: BlockIdentifier;
33
+ choice: PageDesignUserPinnedChoice<SectionBoundaryTreatment>;
34
+ }>;
35
+ /** `PageDesignIntent`, keyed by block identifier instead of block id. */
36
+ export type PortablePageDesign = Readonly<{
37
+ schemaVersion: typeof pageDesignIntentSchemaVersion;
38
+ siteStyleId: SiteStyleId;
39
+ pageFlowPresetId: PageFlowPresetId;
40
+ blockLookPins: readonly PortableBlockLookPin[];
41
+ boundaryPins: readonly PortableBoundaryPin[];
42
+ }>;
43
+ /**
44
+ * A stored pin the portable document could not carry because it names a block
45
+ * that is no longer on the page. Such pins have no effect in the editor or on
46
+ * the rendered page; they are reported so nothing is dropped silently.
47
+ */
48
+ export type OmittedPagePin = Readonly<{
49
+ kind: 'look-on-missing-block';
50
+ blockId: string;
51
+ }> | Readonly<{
52
+ kind: 'boundary-on-missing-block';
53
+ previousBlockId: string;
54
+ nextBlockId: string;
55
+ }>;
56
+ /**
57
+ * Where a stored design was read from. A page with a draft design reads the
58
+ * draft; a page without one reads its latest published design (decision D9).
59
+ */
60
+ export type PageDesignStoredSource = 'draft' | 'published';
61
+ /**
62
+ * A page's stored design. `absent` means nothing was ever saved for the page;
63
+ * its site style's defaults are never exported as authored intent.
64
+ */
65
+ export type SdkGetPageDesignResponse = Readonly<{
66
+ kind: 'absent';
67
+ }> | Readonly<{
68
+ kind: 'stored';
69
+ source: PageDesignStoredSource;
70
+ design: PortablePageDesign;
71
+ revision: PageDesignRevisionToken;
72
+ omitted: readonly OmittedPagePin[];
73
+ }>;
74
+ export type SdkSavePageDesignBody = Readonly<{
75
+ design: PortablePageDesign;
76
+ expectedRevision: PageDesignRevisionToken;
77
+ }>;
78
+ export type SdkSavePageDesignResponse = Readonly<{
79
+ outcome: 'created' | 'updated';
80
+ revision: PageDesignRevisionToken;
81
+ }>;
82
+ export type SdkPageDesignAPIEndpoints = {
83
+ sdkGetPageDesign: APIEndpoint<never, {
84
+ siteId: string;
85
+ identifier: string;
86
+ }, SdkGetPageDesignResponse>;
87
+ sdkSavePageDesign: APIEndpoint<SdkSavePageDesignBody, {
88
+ siteId: string;
89
+ identifier: string;
90
+ }, SdkSavePageDesignResponse>;
91
+ };
92
+ export declare const portablePageDesignSchema: z.ZodObject<{
93
+ schemaVersion: z.ZodLiteral<2>;
94
+ siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleId, string>>;
95
+ pageFlowPresetId: z.ZodPipe<z.ZodString, z.ZodTransform<PageFlowPresetId, string>>;
96
+ blockLookPins: z.ZodArray<z.ZodObject<{
97
+ blockIdentifier: z.ZodPipe<z.ZodString, z.ZodTransform<BlockIdentifier, string>>;
98
+ blockKind: z.ZodString;
99
+ choice: z.ZodObject<{
100
+ kind: z.ZodLiteral<"user-pinned">;
101
+ value: z.ZodPipe<z.ZodString, z.ZodTransform<AppearancePresetId, string>>;
102
+ }, z.core.$strict>;
103
+ }, z.core.$strict>>;
104
+ boundaryPins: z.ZodArray<z.ZodObject<{
105
+ previousBlockIdentifier: z.ZodPipe<z.ZodString, z.ZodTransform<BlockIdentifier, string>>;
106
+ nextBlockIdentifier: z.ZodPipe<z.ZodString, z.ZodTransform<BlockIdentifier, string>>;
107
+ choice: z.ZodObject<{
108
+ kind: z.ZodLiteral<"user-pinned">;
109
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
110
+ kind: z.ZodLiteral<"none">;
111
+ }, z.core.$strict>, z.ZodObject<{
112
+ kind: z.ZodLiteral<"soft-fade">;
113
+ height: z.ZodEnum<{
114
+ medium: "medium";
115
+ compact: "compact";
116
+ large: "large";
117
+ expansive: "expansive";
118
+ }>;
119
+ curve: z.ZodEnum<{
120
+ soft: "soft";
121
+ spacious: "spacious";
122
+ expansive: "expansive";
123
+ }>;
124
+ }, z.core.$strict>, z.ZodObject<{
125
+ kind: z.ZodLiteral<"wave-edge">;
126
+ height: z.ZodEnum<{
127
+ medium: "medium";
128
+ compact: "compact";
129
+ large: "large";
130
+ }>;
131
+ amplitude: z.ZodEnum<{
132
+ bold: "bold";
133
+ subtle: "subtle";
134
+ balanced: "balanced";
135
+ }>;
136
+ rhythm: z.ZodEnum<{
137
+ single: "single";
138
+ double: "double";
139
+ }>;
140
+ symmetry: z.ZodEnum<{
141
+ drift: "drift";
142
+ symmetrical: "symmetrical";
143
+ asymmetrical: "asymmetrical";
144
+ }>;
145
+ }, z.core.$strict>, z.ZodObject<{
146
+ kind: z.ZodLiteral<"angle-edge">;
147
+ height: z.ZodEnum<{
148
+ medium: "medium";
149
+ compact: "compact";
150
+ large: "large";
151
+ }>;
152
+ slope: z.ZodEnum<{
153
+ subtle: "subtle";
154
+ balanced: "balanced";
155
+ steep: "steep";
156
+ }>;
157
+ direction: z.ZodEnum<{
158
+ reverse: "reverse";
159
+ forward: "forward";
160
+ }>;
161
+ }, z.core.$strict>, z.ZodObject<{
162
+ kind: z.ZodLiteral<"legacy-unsupported">;
163
+ boundaryOptionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../blocks/src/index").BoundaryOptionId, string>>;
164
+ }, z.core.$strict>], "kind">;
165
+ }, z.core.$strict>;
166
+ }, z.core.$strict>>;
167
+ }, z.core.$strict>;
168
+ export declare const pageDesignRevisionTokenSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
169
+ kind: z.ZodLiteral<"absent">;
170
+ }, z.core.$strict>, z.ZodObject<{
171
+ kind: z.ZodLiteral<"draft">;
172
+ contentVersionId: z.ZodString;
173
+ updatedAt: z.ZodString;
174
+ }, z.core.$strict>, z.ZodObject<{
175
+ kind: z.ZodLiteral<"published">;
176
+ contentVersionId: z.ZodString;
177
+ updatedAt: z.ZodString;
178
+ }, z.core.$strict>], "kind">;
179
+ export declare const sdkSavePageDesignBodySchema: z.ZodObject<{
180
+ design: z.ZodObject<{
181
+ schemaVersion: z.ZodLiteral<2>;
182
+ siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleId, string>>;
183
+ pageFlowPresetId: z.ZodPipe<z.ZodString, z.ZodTransform<PageFlowPresetId, string>>;
184
+ blockLookPins: z.ZodArray<z.ZodObject<{
185
+ blockIdentifier: z.ZodPipe<z.ZodString, z.ZodTransform<BlockIdentifier, string>>;
186
+ blockKind: z.ZodString;
187
+ choice: z.ZodObject<{
188
+ kind: z.ZodLiteral<"user-pinned">;
189
+ value: z.ZodPipe<z.ZodString, z.ZodTransform<AppearancePresetId, string>>;
190
+ }, z.core.$strict>;
191
+ }, z.core.$strict>>;
192
+ boundaryPins: z.ZodArray<z.ZodObject<{
193
+ previousBlockIdentifier: z.ZodPipe<z.ZodString, z.ZodTransform<BlockIdentifier, string>>;
194
+ nextBlockIdentifier: z.ZodPipe<z.ZodString, z.ZodTransform<BlockIdentifier, string>>;
195
+ choice: z.ZodObject<{
196
+ kind: z.ZodLiteral<"user-pinned">;
197
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
198
+ kind: z.ZodLiteral<"none">;
199
+ }, z.core.$strict>, z.ZodObject<{
200
+ kind: z.ZodLiteral<"soft-fade">;
201
+ height: z.ZodEnum<{
202
+ medium: "medium";
203
+ compact: "compact";
204
+ large: "large";
205
+ expansive: "expansive";
206
+ }>;
207
+ curve: z.ZodEnum<{
208
+ soft: "soft";
209
+ spacious: "spacious";
210
+ expansive: "expansive";
211
+ }>;
212
+ }, z.core.$strict>, z.ZodObject<{
213
+ kind: z.ZodLiteral<"wave-edge">;
214
+ height: z.ZodEnum<{
215
+ medium: "medium";
216
+ compact: "compact";
217
+ large: "large";
218
+ }>;
219
+ amplitude: z.ZodEnum<{
220
+ bold: "bold";
221
+ subtle: "subtle";
222
+ balanced: "balanced";
223
+ }>;
224
+ rhythm: z.ZodEnum<{
225
+ single: "single";
226
+ double: "double";
227
+ }>;
228
+ symmetry: z.ZodEnum<{
229
+ drift: "drift";
230
+ symmetrical: "symmetrical";
231
+ asymmetrical: "asymmetrical";
232
+ }>;
233
+ }, z.core.$strict>, z.ZodObject<{
234
+ kind: z.ZodLiteral<"angle-edge">;
235
+ height: z.ZodEnum<{
236
+ medium: "medium";
237
+ compact: "compact";
238
+ large: "large";
239
+ }>;
240
+ slope: z.ZodEnum<{
241
+ subtle: "subtle";
242
+ balanced: "balanced";
243
+ steep: "steep";
244
+ }>;
245
+ direction: z.ZodEnum<{
246
+ reverse: "reverse";
247
+ forward: "forward";
248
+ }>;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ kind: z.ZodLiteral<"legacy-unsupported">;
251
+ boundaryOptionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../blocks/src/index").BoundaryOptionId, string>>;
252
+ }, z.core.$strict>], "kind">;
253
+ }, z.core.$strict>;
254
+ }, z.core.$strict>>;
255
+ }, z.core.$strict>;
256
+ expectedRevision: z.ZodDiscriminatedUnion<[z.ZodObject<{
257
+ kind: z.ZodLiteral<"absent">;
258
+ }, z.core.$strict>, z.ZodObject<{
259
+ kind: z.ZodLiteral<"draft">;
260
+ contentVersionId: z.ZodString;
261
+ updatedAt: z.ZodString;
262
+ }, z.core.$strict>, z.ZodObject<{
263
+ kind: z.ZodLiteral<"published">;
264
+ contentVersionId: z.ZodString;
265
+ updatedAt: z.ZodString;
266
+ }, z.core.$strict>], "kind">;
267
+ }, z.core.$strict>;
268
+ export declare const sdkGetPageDesignResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
269
+ kind: z.ZodLiteral<"absent">;
270
+ }, z.core.$strip>, z.ZodObject<{
271
+ kind: z.ZodLiteral<"stored">;
272
+ source: z.ZodEnum<{
273
+ draft: "draft";
274
+ published: "published";
275
+ }>;
276
+ design: z.ZodObject<{
277
+ schemaVersion: z.ZodLiteral<2>;
278
+ siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleId, string>>;
279
+ pageFlowPresetId: z.ZodPipe<z.ZodString, z.ZodTransform<PageFlowPresetId, string>>;
280
+ blockLookPins: z.ZodArray<z.ZodObject<{
281
+ blockIdentifier: z.ZodPipe<z.ZodString, z.ZodTransform<BlockIdentifier, string>>;
282
+ blockKind: z.ZodString;
283
+ choice: z.ZodObject<{
284
+ kind: z.ZodLiteral<"user-pinned">;
285
+ value: z.ZodPipe<z.ZodString, z.ZodTransform<AppearancePresetId, string>>;
286
+ }, z.core.$strict>;
287
+ }, z.core.$strict>>;
288
+ boundaryPins: z.ZodArray<z.ZodObject<{
289
+ previousBlockIdentifier: z.ZodPipe<z.ZodString, z.ZodTransform<BlockIdentifier, string>>;
290
+ nextBlockIdentifier: z.ZodPipe<z.ZodString, z.ZodTransform<BlockIdentifier, string>>;
291
+ choice: z.ZodObject<{
292
+ kind: z.ZodLiteral<"user-pinned">;
293
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
294
+ kind: z.ZodLiteral<"none">;
295
+ }, z.core.$strict>, z.ZodObject<{
296
+ kind: z.ZodLiteral<"soft-fade">;
297
+ height: z.ZodEnum<{
298
+ medium: "medium";
299
+ compact: "compact";
300
+ large: "large";
301
+ expansive: "expansive";
302
+ }>;
303
+ curve: z.ZodEnum<{
304
+ soft: "soft";
305
+ spacious: "spacious";
306
+ expansive: "expansive";
307
+ }>;
308
+ }, z.core.$strict>, z.ZodObject<{
309
+ kind: z.ZodLiteral<"wave-edge">;
310
+ height: z.ZodEnum<{
311
+ medium: "medium";
312
+ compact: "compact";
313
+ large: "large";
314
+ }>;
315
+ amplitude: z.ZodEnum<{
316
+ bold: "bold";
317
+ subtle: "subtle";
318
+ balanced: "balanced";
319
+ }>;
320
+ rhythm: z.ZodEnum<{
321
+ single: "single";
322
+ double: "double";
323
+ }>;
324
+ symmetry: z.ZodEnum<{
325
+ drift: "drift";
326
+ symmetrical: "symmetrical";
327
+ asymmetrical: "asymmetrical";
328
+ }>;
329
+ }, z.core.$strict>, z.ZodObject<{
330
+ kind: z.ZodLiteral<"angle-edge">;
331
+ height: z.ZodEnum<{
332
+ medium: "medium";
333
+ compact: "compact";
334
+ large: "large";
335
+ }>;
336
+ slope: z.ZodEnum<{
337
+ subtle: "subtle";
338
+ balanced: "balanced";
339
+ steep: "steep";
340
+ }>;
341
+ direction: z.ZodEnum<{
342
+ reverse: "reverse";
343
+ forward: "forward";
344
+ }>;
345
+ }, z.core.$strict>, z.ZodObject<{
346
+ kind: z.ZodLiteral<"legacy-unsupported">;
347
+ boundaryOptionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../blocks/src/index").BoundaryOptionId, string>>;
348
+ }, z.core.$strict>], "kind">;
349
+ }, z.core.$strict>;
350
+ }, z.core.$strict>>;
351
+ }, z.core.$strict>;
352
+ revision: z.ZodDiscriminatedUnion<[z.ZodObject<{
353
+ kind: z.ZodLiteral<"absent">;
354
+ }, z.core.$strict>, z.ZodObject<{
355
+ kind: z.ZodLiteral<"draft">;
356
+ contentVersionId: z.ZodString;
357
+ updatedAt: z.ZodString;
358
+ }, z.core.$strict>, z.ZodObject<{
359
+ kind: z.ZodLiteral<"published">;
360
+ contentVersionId: z.ZodString;
361
+ updatedAt: z.ZodString;
362
+ }, z.core.$strict>], "kind">;
363
+ omitted: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
364
+ kind: z.ZodLiteral<"look-on-missing-block">;
365
+ blockId: z.ZodString;
366
+ }, z.core.$strip>, z.ZodObject<{
367
+ kind: z.ZodLiteral<"boundary-on-missing-block">;
368
+ previousBlockId: z.ZodString;
369
+ nextBlockId: z.ZodString;
370
+ }, z.core.$strip>], "kind">>;
371
+ }, z.core.$strip>], "kind">;
372
+ export declare const sdkSavePageDesignResponseSchema: z.ZodObject<{
373
+ outcome: z.ZodEnum<{
374
+ updated: "updated";
375
+ created: "created";
376
+ }>;
377
+ revision: z.ZodDiscriminatedUnion<[z.ZodObject<{
378
+ kind: z.ZodLiteral<"absent">;
379
+ }, z.core.$strict>, z.ZodObject<{
380
+ kind: z.ZodLiteral<"draft">;
381
+ contentVersionId: z.ZodString;
382
+ updatedAt: z.ZodString;
383
+ }, z.core.$strict>, z.ZodObject<{
384
+ kind: z.ZodLiteral<"published">;
385
+ contentVersionId: z.ZodString;
386
+ updatedAt: z.ZodString;
387
+ }, z.core.$strict>], "kind">;
388
+ }, z.core.$strip>;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * SDK management endpoints for a page's draft design (issue 1497), spread into
3
+ * `ENDPOINT_DEFINITIONS` like the other endpoint-definition modules. New
4
+ * entries here must declare `errors`, which the require-api-endpoint-errors
5
+ * lint enforces.
6
+ */
7
+ export declare const SDK_PAGE_DESIGN_ENDPOINT_DEFINITIONS: {
8
+ sdkGetPageDesign: {
9
+ path: "/sdk/{siteId}/pages/{identifier}/design";
10
+ method: "GET";
11
+ auth: "service";
12
+ responseKind: "json";
13
+ errors: ("validation:invalid_input" | "resource:not_found" | "server:internal_error")[];
14
+ };
15
+ sdkSavePageDesign: {
16
+ path: "/sdk/{siteId}/pages/{identifier}/design";
17
+ method: "POST";
18
+ auth: "service";
19
+ responseKind: "json";
20
+ errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "server:internal_error")[];
21
+ };
22
+ };
@@ -0,0 +1,46 @@
1
+ import type { EventPreset, RichTextDoc } from '../../core/src/index';
2
+ import type { SdkEventBookingOffer, SdkEntrySlotBlocks } from './sdkContracts';
3
+ import type { SdkPullEventOccurrence } from './sdk-event-schedule';
4
+ import type { SdkPulledCourseBooking } from './sdkCourseBooking';
5
+ /** A course also carries `courseBooking`; see `SdkPulledCourseBooking`. */
6
+ export interface SdkPullEvent extends SdkPulledCourseBooking {
7
+ identifier: string;
8
+ administrativeStatus: 'active' | 'archived';
9
+ title: string;
10
+ slug: string;
11
+ path: string | null;
12
+ preset: EventPreset;
13
+ runRefs: readonly [string, ...string[]];
14
+ content: {
15
+ summary?: string;
16
+ body?: RichTextDoc;
17
+ image?: Record<string, unknown> & {
18
+ identifier: string;
19
+ };
20
+ [key: string]: unknown;
21
+ };
22
+ updatedAt: string;
23
+ createdAt: string;
24
+ contentUpdatedAt: string | null;
25
+ blocks?: SdkEntrySlotBlocks;
26
+ }
27
+ export interface SdkPullEventRun {
28
+ identifier: string;
29
+ eventRef: string;
30
+ name: string | null;
31
+ status: 'draft' | 'active' | 'archived' | 'cancelled' | 'completed';
32
+ /** Absent on a run of a course: listing is the course's (`courseBooking`). */
33
+ visibility?: 'public' | 'unlisted';
34
+ bookingScope: 'single_occurrence' | 'whole_series';
35
+ occurrences: readonly SdkPullEventOccurrence[];
36
+ capacity: number | null;
37
+ bookingOffer: SdkEventBookingOffer;
38
+ venueRef: string | null;
39
+ categoryRef: string | null;
40
+ formRef: string | null;
41
+ settings: Record<string, unknown>;
42
+ presentation: Record<string, unknown> | null;
43
+ tags: string[];
44
+ updatedAt: string;
45
+ createdAt: string;
46
+ }
@@ -0,0 +1,29 @@
1
+ import type { APIEndpoint } from './apiEndpointTypes';
2
+ /**
3
+ * A site's managed address can change until it goes live. Refusals arrive as
4
+ * an error envelope whose `fieldErrors[0]` has `field: 'slug'` and one of
5
+ * these codes: 409 `address_taken` | `already_live`, 422 `reserved` |
6
+ * `invalid_format`.
7
+ */
8
+ export type SiteAddressChangeRefusalCode = 'address_taken' | 'already_live' | 'reserved' | 'invalid_format';
9
+ export type ChangeSiteAddressRequest = {
10
+ slug: string;
11
+ };
12
+ export type ChangeSiteAddressResponse = {
13
+ kind: 'changed' | 'unchanged';
14
+ slug: string;
15
+ };
16
+ /** `slug` is the checked value after trimming and lower-casing. */
17
+ export type SiteAddressAvailabilityResponse = {
18
+ kind: 'available' | 'taken' | 'reserved' | 'invalid_format';
19
+ slug: string;
20
+ };
21
+ export type SiteAddressAPIEndpoints = {
22
+ changeSiteAddress: APIEndpoint<ChangeSiteAddressRequest, {
23
+ siteId: string;
24
+ }, ChangeSiteAddressResponse>;
25
+ getSiteAddressAvailability: APIEndpoint<never, {
26
+ siteId: string;
27
+ slug: string;
28
+ }, SiteAddressAvailabilityResponse>;
29
+ };
@@ -0,0 +1,61 @@
1
+ import type { CamelizeKeys, DbRow } from '../../db/src/index';
2
+ import type { APIEndpoint } from './apiEndpointTypes';
3
+ import type { CreateManualSiteRequest, CreateManualSiteResponse } from './siteOperations';
4
+ type Site = CamelizeKeys<DbRow<'sites'>>;
5
+ export type SiteLifecycleAPIEndpoints = {
6
+ createSite: APIEndpoint<{
7
+ title: string;
8
+ }, never, {
9
+ id: string;
10
+ title: string;
11
+ }>;
12
+ createSiteManual: APIEndpoint<CreateManualSiteRequest, never, CreateManualSiteResponse>;
13
+ updateSite: APIEndpoint<Partial<Site>, never, Partial<Site>>;
14
+ deleteSite: APIEndpoint<never, {
15
+ siteId: string;
16
+ }, {
17
+ ok: boolean;
18
+ }>;
19
+ };
20
+ export declare const SITE_LIFECYCLE_ENDPOINT_DEFINITIONS: {
21
+ createSite: {
22
+ path: "/sites/manage";
23
+ method: "POST";
24
+ tags: "site"[];
25
+ auth: "user";
26
+ responseKind: "json";
27
+ errors: never[];
28
+ };
29
+ createSiteManual: {
30
+ path: "/sites/manual";
31
+ method: "POST";
32
+ tags: "site"[];
33
+ auth: "user";
34
+ responseKind: "json";
35
+ errors: never[];
36
+ };
37
+ updateSite: {
38
+ path: "/sites/manage";
39
+ method: "PUT";
40
+ tags: "site"[];
41
+ auth: "user";
42
+ responseKind: "json";
43
+ errors: never[];
44
+ };
45
+ deleteSite: {
46
+ path: "/sites/{siteId}";
47
+ method: "DELETE";
48
+ tags: ("site" | "site-{siteId}")[];
49
+ auth: "user";
50
+ responseKind: "json";
51
+ errors: never[];
52
+ demoMutation: {
53
+ classification: "allowed";
54
+ publicMessage: "";
55
+ } | {
56
+ classification: import("./apiEndpointTypes").ApiDemoMutationBlockingClassification;
57
+ publicMessage: string;
58
+ };
59
+ };
60
+ };
61
+ export {};
@@ -0,0 +1,49 @@
1
+ export declare const SITE_MANAGEMENT_ENDPOINT_DEFINITIONS: {
2
+ createSite: {
3
+ path: "/sites/manage";
4
+ method: "POST";
5
+ tags: "site"[];
6
+ auth: "user";
7
+ responseKind: "json";
8
+ };
9
+ updateSite: {
10
+ path: "/sites/manage";
11
+ method: "PUT";
12
+ tags: "site"[];
13
+ auth: "user";
14
+ responseKind: "json";
15
+ };
16
+ changeSiteAddress: {
17
+ path: "/sites/{siteId}/address";
18
+ method: "PUT";
19
+ auth: "user";
20
+ responseKind: "json";
21
+ demoMutation: {
22
+ classification: "allowed";
23
+ publicMessage: "";
24
+ } | {
25
+ classification: import("./apiEndpointTypes").ApiDemoMutationBlockingClassification;
26
+ publicMessage: string;
27
+ };
28
+ };
29
+ getSiteAddressAvailability: {
30
+ path: "/sites/{siteId}/address/availability";
31
+ method: "GET";
32
+ auth: "user";
33
+ responseKind: "json";
34
+ };
35
+ deleteSite: {
36
+ path: "/sites/{siteId}";
37
+ method: "DELETE";
38
+ tags: ("site" | "site-{siteId}")[];
39
+ auth: "user";
40
+ responseKind: "json";
41
+ demoMutation: {
42
+ classification: "allowed";
43
+ publicMessage: "";
44
+ } | {
45
+ classification: import("./apiEndpointTypes").ApiDemoMutationBlockingClassification;
46
+ publicMessage: string;
47
+ };
48
+ };
49
+ };