@riverbankcms/sdk 0.67.0 → 0.70.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 (450) hide show
  1. package/README.md +21 -11
  2. package/dist/_dts/api/src/accessAdmin.d.ts +3 -3
  3. package/dist/_dts/api/src/admin/types.d.ts +1 -1
  4. package/dist/_dts/api/src/aiPlayground.d.ts +13 -39
  5. package/dist/_dts/api/src/appointmentSetup.d.ts +4 -0
  6. package/dist/_dts/api/src/billing.d.ts +7 -40
  7. package/dist/_dts/api/src/bookingConfig.d.ts +2 -2
  8. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +4 -1
  9. package/dist/_dts/api/src/bookingOperations.d.ts +32 -1
  10. package/dist/_dts/api/src/bookingRecords.d.ts +1 -1
  11. package/dist/_dts/api/src/bookings.d.ts +1 -1
  12. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +1 -1
  13. package/dist/_dts/api/src/communications.d.ts +1 -1
  14. package/dist/_dts/api/src/contentRuntime.d.ts +2 -2
  15. package/dist/_dts/api/src/contentTypes.d.ts +1 -1
  16. package/dist/_dts/api/src/endpoints.d.ts +7 -0
  17. package/dist/_dts/api/src/navigation/contracts.d.ts +9 -9
  18. package/dist/_dts/api/src/navigation/linkValue.d.ts +1 -1
  19. package/dist/_dts/api/src/navigation/types.d.ts +1 -1
  20. package/dist/_dts/api/src/public/index.d.ts +2 -2
  21. package/dist/_dts/api/src/public/types.d.ts +3 -3
  22. package/dist/_dts/api/src/sdkConfig/contracts.d.ts +1 -2
  23. package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
  24. package/dist/_dts/api/src/siteBanner.d.ts +9 -9
  25. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +2 -2
  26. package/dist/_dts/api/src/siteOnboarding.d.ts +1 -1
  27. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +1 -1
  28. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +5 -5
  29. package/dist/_dts/api/src/siteSettings.d.ts +3 -3
  30. package/dist/_dts/api/src/teamMembers.d.ts +1 -1
  31. package/dist/_dts/api/src/types.d.ts +1 -1
  32. package/dist/_dts/api/src/url.d.ts +1 -1
  33. package/dist/_dts/billing/src/components/index.d.ts +484 -0
  34. package/dist/_dts/block-form/src/backend/store-backend.d.ts +1 -1
  35. package/dist/_dts/block-form/src/backend/types.d.ts +2 -2
  36. package/dist/_dts/block-form/src/blockDraftSaveability.d.ts +2 -2
  37. package/dist/_dts/block-form/src/context/ImageResolveContext.d.ts +1 -1
  38. package/dist/_dts/block-form/src/fields/types.d.ts +1 -1
  39. package/dist/_dts/block-form/src/manifest/ManifestForm.d.ts +1 -1
  40. package/dist/_dts/block-form/src/manifest/canonicalValidation.d.ts +1 -1
  41. package/dist/_dts/block-form/src/manifest/manifestFormAdapter.d.ts +1 -1
  42. package/dist/_dts/block-form/src/manifest/mergeManifestWithSdkOptions.d.ts +1 -1
  43. package/dist/_dts/block-form/src/sdk-config/SdkConfigContext.d.ts +1 -1
  44. package/dist/_dts/block-form/src/shared/disclosure.d.ts +1 -1
  45. package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +1 -1
  46. package/dist/_dts/block-form/src/widgets/DateField/datePickerPopover.d.ts +1 -1
  47. package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterLayoutGrid.d.ts +1 -1
  48. package/dist/_dts/block-form/src/widgets/RepeaterField/components/layoutGridDomain.d.ts +1 -1
  49. package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useRepeaterPointerDragCapability.d.ts +1 -1
  50. package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterDndDomain.d.ts +1 -1
  51. package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterPresentation.d.ts +1 -1
  52. package/dist/_dts/block-form/src/widgets/RepeaterField/utils/resolveThumbnail.d.ts +1 -1
  53. package/dist/_dts/block-form/src/widgets/RichTextField/richTextFieldSchema.d.ts +4 -4
  54. package/dist/_dts/block-form/src/widgets/constants.d.ts +1 -1
  55. package/dist/_dts/blocks/src/PageRenderer.d.ts +5 -1
  56. package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
  57. package/dist/_dts/blocks/src/client.d.ts +11 -3
  58. package/dist/_dts/blocks/src/index.d.ts +28 -27
  59. package/dist/_dts/blocks/src/portal/types.d.ts +1 -1
  60. package/dist/_dts/blocks/src/primitives/content/components/Button.d.ts +1 -1
  61. package/dist/_dts/blocks/src/rendering/server.d.ts +1 -1
  62. package/dist/_dts/blocks/src/server.d.ts +1 -1
  63. package/dist/_dts/blocks/src/structure/schema.d.ts +1 -1
  64. package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +1665 -1665
  65. package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +1666 -1666
  66. package/dist/_dts/blocks/src/system/blocks/blog-post.d.ts +1 -1
  67. package/dist/_dts/blocks/src/system/blocks/cart.d.ts +1665 -1665
  68. package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +1665 -1665
  69. package/dist/_dts/blocks/src/system/blocks/collection.d.ts +1666 -1666
  70. package/dist/_dts/blocks/src/system/blocks/columns.d.ts +1 -1
  71. package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +3 -2
  72. package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +42 -42
  73. package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +1761 -1761
  74. package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +2 -2
  75. package/dist/_dts/blocks/src/system/blocks/events/event-spotlight.d.ts +1764 -1764
  76. package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +1 -1
  77. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +44 -44
  78. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -1
  79. package/dist/_dts/blocks/src/system/blocks/faq.d.ts +1665 -1665
  80. package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +1 -1
  81. package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +1665 -1665
  82. package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +1 -1
  83. package/dist/_dts/blocks/src/system/blocks/index.d.ts +1 -1
  84. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +9 -9
  85. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +139 -139
  86. package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +1665 -1665
  87. package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +1665 -1665
  88. package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +19 -19
  89. package/dist/_dts/blocks/src/system/blocks/shop.d.ts +1665 -1665
  90. package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -3
  91. package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +1 -1
  92. package/dist/_dts/blocks/src/system/blocks/video-grid.d.ts +1 -1
  93. package/dist/_dts/blocks/src/system/componentFactory.d.ts +1 -1
  94. package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
  95. package/dist/_dts/blocks/src/system/customize/facets.d.ts +5 -5
  96. package/dist/_dts/blocks/src/system/designCapabilities.d.ts +1 -1
  97. package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +1 -1
  98. package/dist/_dts/blocks/src/system/fragments/library/card.d.ts +1761 -1761
  99. package/dist/_dts/blocks/src/system/fragments/library/ctaRow.d.ts +1761 -1761
  100. package/dist/_dts/blocks/src/system/fragments/library/feedbackCallout.d.ts +1761 -1761
  101. package/dist/_dts/blocks/src/system/fragments/library/heroCtaRow.d.ts +1761 -1761
  102. package/dist/_dts/blocks/src/system/fragments/library/sectionState.d.ts +1761 -1761
  103. package/dist/_dts/blocks/src/system/frame/frameStyles.d.ts +3 -3
  104. package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +2 -2
  105. package/dist/_dts/blocks/src/system/manifest/augmentManifest.d.ts +1 -1
  106. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +201 -201
  107. package/dist/_dts/blocks/src/system/media/constrainedVideoMedia.d.ts +1 -1
  108. package/dist/_dts/blocks/src/system/media/slotContracts.d.ts +1 -1
  109. package/dist/_dts/blocks/src/system/node/fragments/ctaButton.d.ts +1 -1
  110. package/dist/_dts/blocks/src/system/node/fragments/typography.d.ts +1 -1
  111. package/dist/_dts/blocks/src/system/node/schema.d.ts +5 -5
  112. package/dist/_dts/blocks/src/system/registry.d.ts +2 -2
  113. package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +1 -1
  114. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
  115. package/dist/_dts/blocks/src/system/runtime/header/shared.d.ts +1 -1
  116. package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableDates.d.ts +1 -0
  117. package/dist/_dts/blocks/src/system/runtime/hooks/useAvailableSlots.d.ts +3 -1
  118. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +140 -0
  119. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.state.d.ts +2 -0
  120. package/dist/_dts/blocks/src/system/runtime/hooks/useVisibleTabPolling.d.ts +10 -0
  121. package/dist/_dts/blocks/src/system/runtime/nodes/accordion.d.ts +1 -1
  122. package/dist/_dts/blocks/src/system/runtime/nodes/accordion.server.d.ts +1 -1
  123. package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +1 -1
  124. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.default-ui.d.ts +8 -0
  125. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +500 -0
  126. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.reserved-fields.d.ts +27 -0
  127. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +15 -8
  128. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/timetableModel.d.ts +1 -1
  129. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +3 -3
  130. package/dist/_dts/blocks/src/system/runtime/nodes/location-map.shared.d.ts +1 -1
  131. package/dist/_dts/blocks/src/system/runtime/nodes/media.d.ts +1 -1
  132. package/dist/_dts/blocks/src/system/runtime/nodes/shared/LeafletStaticMap.d.ts +1 -1
  133. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +6 -6
  134. package/dist/_dts/blocks/src/system/runtime/shared/bookingPaymentOptionCopy.d.ts +1 -1
  135. package/dist/_dts/blocks/src/system/theme/index.d.ts +1 -1
  136. package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +1 -1
  137. package/dist/_dts/blocks/src/system/transforms/registry/ui.d.ts +1 -1
  138. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +3 -3
  139. package/dist/_dts/blocks/src/system/types/link.d.ts +3 -3
  140. package/dist/_dts/content-editor/src/components/ContentFieldsForm.d.ts +3 -3
  141. package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +3 -3
  142. package/dist/_dts/content-editor/src/controller/buildBlockPublishedBaselines.d.ts +2 -2
  143. package/dist/_dts/content-editor/src/controller/buildPublishSuccessTransition.d.ts +2 -2
  144. package/dist/_dts/content-editor/src/controller/deriveRecoveryConflict.d.ts +1 -1
  145. package/dist/_dts/content-editor/src/controller/invalidBlockRecovery.d.ts +1 -1
  146. package/dist/_dts/content-editor/src/controller/seedDraftBaselinesFromBlocks.d.ts +1 -1
  147. package/dist/_dts/content-editor/src/controller/useBlocksList.d.ts +1 -1
  148. package/dist/_dts/content-editor/src/controller/useEntrySyncHelpers.d.ts +3 -3
  149. package/dist/_dts/content-editor/src/controller/useInvalidBlockRecovery.d.ts +1 -1
  150. package/dist/_dts/content-editor/src/hooks/blockedPublishPlan.d.ts +1 -1
  151. package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +1 -1
  152. package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +2 -2
  153. package/dist/_dts/content-editor/src/hooks/useStoreAutosave.d.ts +1 -1
  154. package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +1 -1
  155. package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +1 -1
  156. package/dist/_dts/content-editor/src/primitives/PreviewTextEditor.d.ts +1 -1
  157. package/dist/_dts/content-editor/src/registry.d.ts +1 -1
  158. package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +2 -2
  159. package/dist/_dts/content-editor/src/types.d.ts +2 -2
  160. package/dist/_dts/content-editor/src/ui/blockValidationView.d.ts +3 -3
  161. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +1 -1
  162. package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -1
  163. package/dist/_dts/content-editor/src/ui/stores/utils.d.ts +1 -1
  164. package/dist/_dts/content-model/src/content-types/schema.d.ts +8 -8
  165. package/dist/_dts/core/src/branded.d.ts +2 -0
  166. package/dist/_dts/core/src/index.d.ts +2 -0
  167. package/dist/_dts/core/src/planner.d.ts +64 -0
  168. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +17 -18
  169. package/dist/_dts/db/src/schemas/forms.d.ts +62 -62
  170. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +5 -5
  171. package/dist/_dts/editor-blocks/src/BlockForm.d.ts +5 -5
  172. package/dist/_dts/editor-blocks/src/FormProvider.d.ts +2 -2
  173. package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +6 -6
  174. package/dist/_dts/editor-blocks/src/block-editor/BlockCardBody.d.ts +3 -3
  175. package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +2 -2
  176. package/dist/_dts/editor-blocks/src/block-editor/BlockListContext.d.ts +2 -2
  177. package/dist/_dts/editor-blocks/src/block-editor/BlockPickerDialog.d.ts +1 -1
  178. package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +2 -2
  179. package/dist/_dts/editor-blocks/src/block-editor/BlockThumbnail.d.ts +1 -1
  180. package/dist/_dts/editor-blocks/src/block-editor/BlockTile.d.ts +1 -1
  181. package/dist/_dts/editor-blocks/src/block-editor/EnhancedBlockPickerDialog.d.ts +1 -1
  182. package/dist/_dts/editor-blocks/src/block-editor/SortableBlockItem.d.ts +3 -3
  183. package/dist/_dts/editor-blocks/src/block-editor/blockDiscovery.d.ts +1 -1
  184. package/dist/_dts/editor-blocks/src/block-editor/hooks/buildInsertBlockHistoryCommand.d.ts +1 -1
  185. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockBaselineSync.d.ts +1 -1
  186. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +3 -3
  187. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +2 -2
  188. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockReorder.d.ts +2 -2
  189. package/dist/_dts/editor-blocks/src/block-editor/hooks/useDraftContent.d.ts +1 -1
  190. package/dist/_dts/editor-blocks/src/block-editor/preparedManifest.d.ts +2 -2
  191. package/dist/_dts/editor-blocks/src/block-editor/sdkBlockMerger.d.ts +3 -3
  192. package/dist/_dts/editor-blocks/src/block-editor/settingsIntent.d.ts +1 -1
  193. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -1
  194. package/dist/_dts/editor-blocks/src/block-form/debug.d.ts +1 -1
  195. package/dist/_dts/editor-blocks/src/blockPayload.d.ts +2 -2
  196. package/dist/_dts/editor-blocks/src/index.d.ts +2 -2
  197. package/dist/_dts/editor-blocks/src/media/MediaField.d.ts +6 -6
  198. package/dist/_dts/editor-blocks/src/widgets/button/ButtonField.d.ts +1 -1
  199. package/dist/_dts/editor-blocks/src/widgets/button/ButtonVariantField.d.ts +1 -1
  200. package/dist/_dts/editor-blocks/src/widgets/button/context.d.ts +1 -1
  201. package/dist/_dts/editor-blocks/src/widgets/button/index.d.ts +1 -1
  202. package/dist/_dts/editor-blocks/src/widgets/content-type-select/ContentTypeSelectField.d.ts +1 -1
  203. package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerField.d.ts +1 -1
  204. package/dist/_dts/editor-blocks/src/widgets/entry-picker/EntryPickerWidgetProvider.d.ts +1 -1
  205. package/dist/_dts/editor-blocks/src/widgets/entry-picker/index.d.ts +1 -1
  206. package/dist/_dts/editor-blocks/src/widgets/entry-picker/loaders.d.ts +2 -2
  207. package/dist/_dts/editor-blocks/src/widgets/entry-picker/types.d.ts +2 -2
  208. package/dist/_dts/editor-blocks/src/widgets/icon-picker/IconPickerField.d.ts +1 -1
  209. package/dist/_dts/editor-blocks/src/widgets/link/LinkField.d.ts +2 -2
  210. package/dist/_dts/editor-blocks/src/widgets/link/LinkPicker.d.ts +3 -3
  211. package/dist/_dts/editor-blocks/src/widgets/link/LinkPickerDialog.d.ts +1 -1
  212. package/dist/_dts/editor-blocks/src/widgets/link/LinkSummary.d.ts +1 -1
  213. package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +3 -3
  214. package/dist/_dts/editor-blocks/src/widgets/link/LinkWidgetContext.d.ts +2 -2
  215. package/dist/_dts/editor-blocks/src/widgets/link/loaders.d.ts +3 -3
  216. package/dist/_dts/editor-blocks/src/widgets/link/types.d.ts +2 -2
  217. package/dist/_dts/editor-blocks/src/widgets/link/utils.d.ts +2 -2
  218. package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceField.d.ts +2 -2
  219. package/dist/_dts/editor-blocks/src/widgets/reference/ReferenceWidgetProvider.d.ts +1 -1
  220. package/dist/_dts/editor-blocks/src/widgets/reference/dynamicAdapters.d.ts +1 -1
  221. package/dist/_dts/editor-blocks/src/widgets/reference/loaders.d.ts +3 -3
  222. package/dist/_dts/editor-blocks/src/widgets/reference/types.d.ts +3 -3
  223. package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextField.d.ts +2 -2
  224. package/dist/_dts/editor-blocks/src/widgets/rich-text/RichTextWidgetProvider.d.ts +1 -1
  225. package/dist/_dts/editor-blocks/src/widgets/rich-text/ensureRichTextImageAssetIdentifier.d.ts +1 -1
  226. package/dist/_dts/editor-blocks/src/widgets/rich-text/richTextImageHydration.d.ts +1 -1
  227. package/dist/_dts/editor-blocks/src/widgets/shared/Combobox.d.ts +1 -1
  228. package/dist/_dts/media-core/src/fileAssetCompatibility.d.ts +1 -1
  229. package/dist/_dts/media-core/src/fileAssetDeletion.d.ts +1 -1
  230. package/dist/_dts/media-core/src/fileDomain.d.ts +1 -1
  231. package/dist/_dts/media-core/src/fileDownloadResolution.d.ts +1 -1
  232. package/dist/_dts/media-core/src/filePersistence.d.ts +1 -1
  233. package/dist/_dts/media-core/src/fileStorage.d.ts +1 -1
  234. package/dist/_dts/media-core/src/fileUploadAssetBuilder.d.ts +1 -1
  235. package/dist/_dts/media-core/src/fileUploadCleanup.d.ts +1 -1
  236. package/dist/_dts/media-core/src/fileUploadCompletion.d.ts +1 -1
  237. package/dist/_dts/media-core/src/fileUploadDurableFinalization.d.ts +1 -1
  238. package/dist/_dts/media-core/src/fileUploadFinalization.d.ts +1 -1
  239. package/dist/_dts/media-core/src/fileUploadSessionCreation.d.ts +1 -1
  240. package/dist/_dts/media-core/src/types.d.ts +2 -2
  241. package/dist/_dts/media-core/src/url.d.ts +1 -1
  242. package/dist/_dts/media-core/src/videoPrep.d.ts +1 -1
  243. package/dist/_dts/media-editor/src/CropDialog.d.ts +1 -1
  244. package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -2
  245. package/dist/_dts/media-editor/src/MediaPickerDialog.d.ts +1 -1
  246. package/dist/_dts/media-editor/src/context.d.ts +3 -3
  247. package/dist/_dts/media-editor/src/createMediaEditorProvider.d.ts +1 -1
  248. package/dist/_dts/media-editor/src/cropEditorSource.d.ts +1 -1
  249. package/dist/_dts/media-editor/src/debug.d.ts +1 -1
  250. package/dist/_dts/media-editor/src/provider.d.ts +3 -3
  251. package/dist/_dts/media-editor/src/runtimeMediaAssetState.d.ts +1 -1
  252. package/dist/_dts/media-editor/src/transformModel.d.ts +1 -1
  253. package/dist/_dts/media-editor/src/types.d.ts +2 -2
  254. package/dist/_dts/media-editor/src/utils.d.ts +1 -1
  255. package/dist/_dts/media-react/src/components/ImageCropper.d.ts +1 -1
  256. package/dist/_dts/media-react/src/components/cropDraftModel.d.ts +1 -1
  257. package/dist/_dts/media-react/src/components/cropGeometry.d.ts +1 -1
  258. package/dist/_dts/media-react/src/components/cropSessionState.d.ts +1 -1
  259. package/dist/_dts/media-react/src/components/useImageCropperController.d.ts +1 -1
  260. package/dist/_dts/media-react/src/ffmpegLoader.d.ts +1 -1
  261. package/dist/_dts/media-react/src/hooks/internal/classification.d.ts +1 -1
  262. package/dist/_dts/media-react/src/hooks/mediaAssetResponseMapper.d.ts +1 -1
  263. package/dist/_dts/media-react/src/hooks/useApiMediaUploader.d.ts +4 -4
  264. package/dist/_dts/media-react/src/utils/rotation.d.ts +1 -1
  265. package/dist/_dts/media-react/src/videoFrameExtraction.d.ts +1 -1
  266. package/dist/_dts/media-react/src/videoPrepBrowser.d.ts +2 -2
  267. package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +1 -1
  268. package/dist/_dts/preview-next/src/client/blocks/EditablePageRenderer.d.ts +1 -1
  269. package/dist/_dts/preview-next/src/client/blocks/composer/composePageFromBlocks.d.ts +1 -1
  270. package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +2 -2
  271. package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +3 -3
  272. package/dist/_dts/preview-next/src/client/blocks/customizeFacetControls.d.ts +2 -2
  273. package/dist/_dts/preview-next/src/client/blocks/editorRegistry.d.ts +1 -1
  274. package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +2 -2
  275. package/dist/_dts/preview-next/src/client/blocks/previewCustomizeActions.d.ts +2 -2
  276. package/dist/_dts/preview-next/src/client/blocks/previewProjection/aiProposalProjection.d.ts +2 -2
  277. package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +2 -2
  278. package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
  279. package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +3 -3
  280. package/dist/_dts/preview-next/src/client/preview/EntryEditorPanel.d.ts +5 -5
  281. package/dist/_dts/preview-next/src/client/preview/OnboardingThemeSwitcher.d.ts +2 -2
  282. package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +5 -5
  283. package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +1 -1
  284. package/dist/_dts/preview-next/src/client/preview/PreviewAuthBanner.d.ts +1 -1
  285. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +9 -9
  286. package/dist/_dts/preview-next/src/client/preview/PreviewEditorUI.d.ts +2 -2
  287. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +2 -2
  288. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +8 -8
  289. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +8 -8
  290. package/dist/_dts/preview-next/src/client/preview/PreviewViewportControls.d.ts +1 -1
  291. package/dist/_dts/preview-next/src/client/preview/PreviewZoomControls.d.ts +1 -1
  292. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +5 -5
  293. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +5 -5
  294. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +4 -4
  295. package/dist/_dts/preview-next/src/client/preview/pageSchema.d.ts +1 -1
  296. package/dist/_dts/preview-next/src/client/preview/previewChromeSurface.d.ts +1 -1
  297. package/dist/_dts/preview-next/src/client/preview/previewChromeSurfacePolicy.d.ts +1 -1
  298. package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +3 -3
  299. package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +2 -2
  300. package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +1 -1
  301. package/dist/_dts/preview-next/src/client/preview/previewSurface.d.ts +1 -1
  302. package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +1 -1
  303. package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +2 -2
  304. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +4 -4
  305. package/dist/_dts/preview-next/src/client/preview/subrouteNotice.d.ts +1 -1
  306. package/dist/_dts/preview-next/src/client/preview/themeOverlay.d.ts +1 -1
  307. package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +2 -2
  308. package/dist/_dts/preview-next/src/client/widgets/PreviewMediaField.d.ts +2 -2
  309. package/dist/_dts/preview-next/src/client/widgets/widgetAdapters.d.ts +3 -3
  310. package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +3 -3
  311. package/dist/_dts/sdk/src/bookings/index.d.ts +6 -2
  312. package/dist/_dts/sdk/src/bookings/types.d.ts +16 -8
  313. package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +32 -0
  314. package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +5 -1
  315. package/dist/_dts/sdk/src/cli/content/reader.d.ts +1 -1
  316. package/dist/_dts/sdk/src/cli/env.d.ts +1 -1
  317. package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +1 -1
  318. package/dist/_dts/sdk/src/cli/push-config.d.ts +1 -1
  319. package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +1 -1
  320. package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +43 -13
  321. package/dist/_dts/sdk/src/cli/site-commands/commandRuntimeCompat.d.ts +21 -0
  322. package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +27 -0
  323. package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +56 -0
  324. package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +5 -3
  325. package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +9 -3
  326. package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +6 -10
  327. package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +1 -0
  328. package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +6 -10
  329. package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +6 -10
  330. package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +14 -68
  331. package/dist/_dts/sdk/src/cli/site-commands/pushExecutionPlan.d.ts +8 -0
  332. package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +97 -0
  333. package/dist/_dts/sdk/src/cli/site-commands/residualSettingsTrimming.d.ts +15 -0
  334. package/dist/_dts/sdk/src/cli/sync/index.d.ts +1 -0
  335. package/dist/_dts/sdk/src/cli/sync/syncResultAggregation.d.ts +4 -0
  336. package/dist/_dts/sdk/src/config/validation.d.ts +37 -43
  337. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -1
  338. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +19 -19
  339. package/dist/_dts/sdk/src/portal/config.d.ts +1 -1
  340. package/dist/_dts/sdk/src/portal/index.d.ts +1 -1
  341. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +1 -1
  342. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  343. package/dist/_dts/sdk/src/preview-next/constants.d.ts +1 -1
  344. package/dist/_dts/sdk/src/preview-next/cookies.d.ts +1 -1
  345. package/dist/_dts/sdk/src/preview-next/index.d.ts +2 -2
  346. package/dist/_dts/sdk/src/preview-next/middleware.d.ts +1 -1
  347. package/dist/_dts/sdk/src/preview-next/session.d.ts +1 -1
  348. package/dist/_dts/sdk/src/public-api/contracts.d.ts +18 -4
  349. package/dist/_dts/sdk/src/rendering/islands/blocksContracts.d.ts +1 -1
  350. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +3 -3
  351. package/dist/_dts/sdk/src/rendering/overrides.d.ts +2 -0
  352. package/dist/_dts/sdk/src/spam-protection/index.d.ts +3 -3
  353. package/dist/_dts/sdk/src/theme-bridge/ThemeBridgeProvider.d.ts +6 -6
  354. package/dist/_dts/sdk/src/theme-bridge/generateCssVars.d.ts +4 -12
  355. package/dist/_dts/sdk/src/theme-bridge/index.d.ts +1 -1
  356. package/dist/_dts/sdk/src/theme-bridge/types.d.ts +17 -9
  357. package/dist/_dts/sdk/src/version.d.ts +1 -1
  358. package/dist/_dts/site-commands/src/adapter.d.ts +1 -1
  359. package/dist/_dts/site-commands/src/commands.d.ts +292 -34
  360. package/dist/_dts/site-commands/src/domain.d.ts +3 -3
  361. package/dist/_dts/site-commands/src/exposure.d.ts +3 -3
  362. package/dist/_dts/site-commands/src/index.d.ts +1 -0
  363. package/dist/_dts/site-commands/src/metadata.d.ts +79 -1
  364. package/dist/_dts/site-commands/src/planner.d.ts +1 -1
  365. package/dist/_dts/site-commands/src/refContributions.d.ts +1 -0
  366. package/dist/_dts/site-commands/src/refs.d.ts +8 -2
  367. package/dist/_dts/{sdk/src/cli/merge-remote → site-commands/src}/stableJson.d.ts +2 -0
  368. package/dist/_dts/theme-core/src/accordions/types.d.ts +9 -9
  369. package/dist/_dts/theme-core/src/blocks/index.d.ts +2 -2
  370. package/dist/_dts/theme-core/src/blocks/types.d.ts +3 -2
  371. package/dist/_dts/theme-core/src/buttons/personalities/brushed-wash.d.ts +5 -5
  372. package/dist/_dts/theme-core/src/buttons/personalities/confident-chip.d.ts +5 -5
  373. package/dist/_dts/theme-core/src/buttons/personalities/editorial-link.d.ts +5 -5
  374. package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +35 -35
  375. package/dist/_dts/theme-core/src/buttons/personalities/ink-stamp.d.ts +5 -5
  376. package/dist/_dts/theme-core/src/buttons/personalities/pebble.d.ts +5 -5
  377. package/dist/_dts/theme-core/src/buttons/personalities/showtime-pill.d.ts +5 -5
  378. package/dist/_dts/theme-core/src/buttons/personalities/soft-pill.d.ts +5 -5
  379. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +7 -7
  380. package/dist/_dts/theme-core/src/buttons/types.d.ts +18 -18
  381. package/dist/_dts/theme-core/src/cards/types.d.ts +17 -17
  382. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  383. package/dist/_dts/theme-core/src/index.d.ts +1 -1
  384. package/dist/_dts/theme-core/src/inputs/types.d.ts +13 -13
  385. package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
  386. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +351 -351
  387. package/dist/_dts/theme-core/src/navigation/types.d.ts +15 -15
  388. package/dist/_dts/theme-core/src/palette/recipes/allRecipes.d.ts +1 -1
  389. package/dist/_dts/theme-core/src/palette/variants/brand-led.d.ts +24 -24
  390. package/dist/_dts/theme-core/src/palette/variants/high-contrast.d.ts +18 -18
  391. package/dist/_dts/theme-core/src/palette/variants/index.d.ts +65 -65
  392. package/dist/_dts/theme-core/src/palette/variants/soft-natural.d.ts +18 -18
  393. package/dist/_dts/theme-core/src/palette/variants/types.d.ts +7 -7
  394. package/dist/_dts/theme-core/src/palette/variants/warm-neutral.d.ts +18 -18
  395. package/dist/_dts/theme-core/src/progress/generateProgressCss.d.ts +2 -1
  396. package/dist/_dts/theme-core/src/recommend/generateThemes.d.ts +1 -1
  397. package/dist/_dts/theme-core/src/runtime/buildThemeRuntimeFromBridge.d.ts +32 -21
  398. package/dist/_dts/theme-core/src/schema.d.ts +568 -568
  399. package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +2 -2
  400. package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +1 -1
  401. package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +1 -1
  402. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +34 -34
  403. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +4 -4
  404. package/dist/_dts/theme-core/src/site-styles/pageDesignAuthority.d.ts +1 -1
  405. package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +1 -1
  406. package/dist/_dts/theme-core/src/site-styles/sourceCatalogs.d.ts +14 -14
  407. package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +1 -1
  408. package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +4 -4
  409. package/dist/_dts/theme-core/src/status/generateStatusCss.d.ts +2 -1
  410. package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +5 -5
  411. package/dist/_dts/ui/src/badge.d.ts +1 -1
  412. package/dist/_dts/ui/src/button.d.ts +2 -2
  413. package/dist/_dts/ui/src/card.d.ts +1 -1
  414. package/dist/_dts/ui/src/color-picker.d.ts +1 -1
  415. package/dist/_dts/ui/src/surface.d.ts +2 -2
  416. package/dist/_dts/ui/src/toggle.d.ts +4 -4
  417. package/dist/cli/index.mjs +5910 -4824
  418. package/dist/client/bookings.mjs +5149 -3320
  419. package/dist/client/client.mjs +11643 -11031
  420. package/dist/client/hooks.mjs +5764 -3868
  421. package/dist/client/rendering/client.mjs +4317 -3724
  422. package/dist/client/rendering/islands.mjs +4087 -3494
  423. package/dist/client/rendering.mjs +4499 -3885
  424. package/dist/preview-next/before-render.mjs +14 -0
  425. package/dist/preview-next/client/runtime.mjs +2927 -2292
  426. package/dist/preview-next/middleware.mjs +14 -0
  427. package/dist/server/components.mjs +536 -368
  428. package/dist/server/config-validation.mjs +6886 -4910
  429. package/dist/server/config.mjs +6876 -4909
  430. package/dist/server/data.mjs +5764 -3868
  431. package/dist/server/index.mjs +174 -1762
  432. package/dist/server/next.mjs +6393 -5024
  433. package/dist/server/prebuild.mjs +1 -1
  434. package/dist/server/rendering/server.mjs +540 -370
  435. package/dist/server/rendering.mjs +540 -370
  436. package/dist/server/routing.mjs +10389 -6835
  437. package/dist/server/server.mjs +5701 -3805
  438. package/dist/server/theme-bridge.mjs +1558 -4902
  439. package/dist/styles/index.css +38 -38
  440. package/package.json +1 -3
  441. package/dist/_dts/blocks/src/system/runtime/components/booking/DateTimeSelectionStep.d.ts +0 -18
  442. package/dist/_dts/blocks/src/system/runtime/components/booking/PaymentOptionSelectionStep.d.ts +0 -9
  443. package/dist/_dts/blocks/src/system/runtime/components/booking/ServiceResourceSelector.d.ts +0 -44
  444. package/dist/_dts/blocks/src/system/runtime/components/booking/ServiceResourceSelector.state.d.ts +0 -23
  445. package/dist/_dts/blocks/src/system/runtime/components/booking/ServiceSelectionStep.d.ts +0 -18
  446. package/dist/_dts/blocks/src/system/runtime/components/booking/slotDisplay.d.ts +0 -2
  447. package/dist/_dts/blocks/src/system/runtime/components/multi-step/MultiStepForm.d.ts +0 -21
  448. package/dist/_dts/blocks/src/system/runtime/components/multi-step/useMultiStep.d.ts +0 -15
  449. package/dist/_dts/blocks/src/system/runtime/components/multi-step/useMultiStep.state.d.ts +0 -51
  450. package/dist/_dts/blocks/src/system/runtime/hooks/useBookingSteps.d.ts +0 -22
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import type { TipTapNode } from '@riverbankcms/blocks';
2
+ import type { TipTapNode } from '../../blocks/src/index';
3
3
  import type { LinkPayload } from './navigation/types';
4
4
  export type SiteBannerScope = 'homepage' | 'all-pages';
5
5
  export type SiteBannerTone = 'announcement' | 'promotion' | 'notice' | 'warning';
@@ -76,10 +76,10 @@ export declare const siteBannerSettingsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
76
76
  "all-pages": "all-pages";
77
77
  }>;
78
78
  tone: z.ZodEnum<{
79
+ warning: "warning";
80
+ notice: "notice";
79
81
  announcement: "announcement";
80
82
  promotion: "promotion";
81
- notice: "notice";
82
- warning: "warning";
83
83
  }>;
84
84
  body: z.ZodPipe<z.ZodUnknown, z.ZodTransform<TipTapNode, unknown>>;
85
85
  cta: z.ZodNullable<z.ZodObject<{
@@ -89,8 +89,8 @@ export declare const siteBannerSettingsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
89
89
  routeId: z.ZodString;
90
90
  entityId: z.ZodString;
91
91
  entityType: z.ZodEnum<{
92
- content: "content";
93
92
  page: "page";
93
+ content: "content";
94
94
  }>;
95
95
  href: z.ZodString;
96
96
  title: z.ZodString;
@@ -121,8 +121,8 @@ export declare const siteBannerSettingsSchema: z.ZodDiscriminatedUnion<[z.ZodObj
121
121
  }, z.core.$strip>, z.ZodObject<{
122
122
  kind: z.ZodLiteral<"cart">;
123
123
  badge: z.ZodEnum<{
124
- "show-count": "show-count";
125
124
  hidden: "hidden";
125
+ "show-count": "show-count";
126
126
  }>;
127
127
  label: z.ZodDiscriminatedUnion<[z.ZodObject<{
128
128
  kind: z.ZodLiteral<"icon-only">;
@@ -142,10 +142,10 @@ export declare const siteBannerSettingsInputSchema: z.ZodDiscriminatedUnion<[z.Z
142
142
  "all-pages": "all-pages";
143
143
  }>;
144
144
  tone: z.ZodEnum<{
145
+ warning: "warning";
146
+ notice: "notice";
145
147
  announcement: "announcement";
146
148
  promotion: "promotion";
147
- notice: "notice";
148
- warning: "warning";
149
149
  }>;
150
150
  body: z.ZodPipe<z.ZodUnknown, z.ZodTransform<TipTapNode, unknown>>;
151
151
  cta: z.ZodNullable<z.ZodObject<{
@@ -155,8 +155,8 @@ export declare const siteBannerSettingsInputSchema: z.ZodDiscriminatedUnion<[z.Z
155
155
  routeId: z.ZodString;
156
156
  entityId: z.ZodString;
157
157
  entityType: z.ZodEnum<{
158
- content: "content";
159
158
  page: "page";
159
+ content: "content";
160
160
  }>;
161
161
  href: z.ZodString;
162
162
  title: z.ZodString;
@@ -187,8 +187,8 @@ export declare const siteBannerSettingsInputSchema: z.ZodDiscriminatedUnion<[z.Z
187
187
  }, z.core.$strip>, z.ZodObject<{
188
188
  kind: z.ZodLiteral<"cart">;
189
189
  badge: z.ZodEnum<{
190
- "show-count": "show-count";
191
190
  hidden: "hidden";
191
+ "show-count": "show-count";
192
192
  }>;
193
193
  label: z.ZodDiscriminatedUnion<[z.ZodObject<{
194
194
  kind: z.ZodLiteral<"icon-only">;
@@ -1,5 +1,5 @@
1
- import type { RectificationHistoryPropagationPlan, RectificationIdentityBoundary, RectificationIssueUrl, RectificationSurface } from "@riverbankcms/core";
2
- import type { CamelizeKeys, DbRow, DbJson } from "@riverbankcms/db";
1
+ import type { RectificationHistoryPropagationPlan, RectificationIdentityBoundary, RectificationIssueUrl, RectificationSurface } from "../../core/src/index";
2
+ import type { CamelizeKeys, DbRow, DbJson } from "../../db/src/index";
3
3
  import type { APIEndpoint } from "./apiEndpointTypes";
4
4
  import type { AcceptAdminInviteRequest, AcceptAdminInviteResponse, AcceptSiteInvitationRequest, AcceptSiteInvitationResponse, AddCustomDomainRequest, AddCustomDomainResponse, AdminChangePlanRequest, AdminChangePlanResponse, AdminDeleteUserResponse, AuthInviteContinueRequest, AuthInviteContinueResponse, AuthInviteRegisterRequest, AuthInviteRegisterResponse, AuthResetCompleteRequest, AuthResetCompleteResponse, AuthSubmissionResult, BulkOperationResult, ChangePlanRequest, ChangePlanResponse, CreateAdminInviteRequest, CreateAdminInviteResponse, CreateAdminUserRequest, CreateAdminUserResponse, CreateAllowedDomainRequest, CreateAllowedDomainResponse, DeleteAllowedDomainResponse, DomainConfigResult, DomainSearchResultResponse, CurrentUserPractitionerLinkResponse, InviteSiteMemberRequest, InviteSiteMemberResponse, LinkCurrentUserPractitionerRequest, ListAdminInvitesResponse, ListAllowedDomainsResponse, ListSiteMembersResponse, LookupSiteDomainRequest, LookupSiteDomainResponse, MfaBackupCodesOverviewResponse, MfaBackupCodesRotateResponse, MfaOverviewResponse, MfaPhoneChallengeRequest, MfaPhoneChallengeResponse, MfaPhoneEnrollRequest, MfaPhoneEnrollResponse, MfaPhoneVerifyRequest, MfaTotpActivateRequest, MfaTotpEnrollResponse, MfaTotpVerifyRequest, MfaTotpVerifyResponse, ReauthSubmissionResult, RegisterDomainRequestPayload, RegisterDomainResponse, RegistrarBooleanMutationRequest, RegistrarLifecycleResponse, RegistrarRenewalPostureResponse, RegisterSiteDomainRequest, RegisterSiteDomainResponse, RemoveSiteMemberResponse, RevokeAdminInviteResponse, RevokeSiteInvitationResponse, SetHomepageRequest, SetHomepageResponse, SiteDomainContactPayload, SiteDomainRecord, TransferSiteOwnershipRequest, TransferSiteOwnershipResponse, UpdateSiteMemberRoleRequest, UpdateSiteMemberRoleResponse } from "./accessAdmin";
5
5
  import type { AdminRoleMutationResponse, RevokeAdminRoleRequest, StartImpersonationRequest, StartImpersonationResponse, StopImpersonationRequest, StopImpersonationResponse, UpsertAdminRoleRequest } from "./admin/types";
@@ -1,4 +1,4 @@
1
- import type { Theme } from "@riverbankcms/blocks";
1
+ import type { Theme } from "../../blocks/src/index";
2
2
  import { z } from "zod";
3
3
  import type { AiGenerateSiteEntityType, AiGenerateSitePrimaryCta, AiGenerateSiteRequest } from "./siteGeneration";
4
4
  import type { BookingVerticalConfig } from "./bookingConfig";
@@ -1,4 +1,4 @@
1
- import type { Theme } from "@riverbankcms/blocks";
1
+ import type { Theme } from "../../blocks/src/index";
2
2
  import type { APIEndpoint } from "./apiEndpointTypes";
3
3
  import type { AdminCreateSiteRequest, AdminCreateSiteResponse, AdminDeletePriceOverrideRequest, AdminDeletePriceOverrideResponse, AdminDeleteSiteResponse, AdminGetPriceOverrideQuery, AdminGetPriceOverrideResponse, AdminUpsertPriceOverrideRequest, AdminUpsertPriceOverrideResponse } from "./accessAdmin";
4
4
  import type { MutableCourseStatus } from "./courses";
@@ -1,9 +1,9 @@
1
- import type { SystemCustomizeFacetSelection, Theme } from '@riverbankcms/blocks';
1
+ import type { SystemCustomizeFacetSelection, Theme } from '../../blocks/src/index';
2
2
  import type { ListMediaAssetsResult, MediaAssetWithLabels } from '@riverbankcms/media-storage-supabase';
3
- import type { DbJson } from '@riverbankcms/db';
4
- import type { PageDesignEditorReadModel, PageDesignIntent, AppearancePresetId, BoundaryOptionId, DesignBlockId, FooterLookId, HeaderLookId, LayoutVariantKey } from '@riverbankcms/theme-core/site-styles';
5
- import type { ButtonPersonalityId } from '@riverbankcms/theme-core/buttons';
6
- import type { PaletteOverrides, PaletteVariantId } from '@riverbankcms/theme-core/palette';
3
+ import type { DbJson } from '../../db/src/index';
4
+ import type { PageDesignEditorReadModel, PageDesignIntent, AppearancePresetId, BoundaryOptionId, DesignBlockId, FooterLookId, HeaderLookId, LayoutVariantKey } from '../../theme-core/src/site-styles/index';
5
+ import type { ButtonPersonalityId } from '../../theme-core/src/buttons/index';
6
+ import type { PaletteOverrides, PaletteVariantId } from '../../theme-core/src/palette/index';
7
7
  import type { APIEndpoint } from './apiEndpointTypes';
8
8
  import type { AnalyticsReportFilters, AnalyticsReportResponse } from './analytics';
9
9
  import type { CreateMediaAssetBody, MediaAssetResponse, MediaAssetFileFilterContract, MediaBulkDeleteResponse, MediaClassifyJobResponse, MediaJobSummaryResponse, MediaLabelSummary, MediaSettingsResponse } from './media';
@@ -1,6 +1,6 @@
1
- import type { SiteFooterContent, SiteHeaderContent } from "@riverbankcms/blocks";
2
- import type { BusinessAddress } from "@riverbankcms/core";
3
- import type { FooterMode } from "@riverbankcms/theme-core";
1
+ import type { SiteFooterContent, SiteHeaderContent } from "../../blocks/src/index";
2
+ import type { BusinessAddress } from "../../core/src/index";
3
+ import type { FooterMode } from "../../theme-core/src/index";
4
4
  import type { SiteBannerSettingsPayload } from "./siteBanner";
5
5
  export type SiteDeploymentMode = "managed" | "headless_cms" | "headless_full";
6
6
  export type SiteGeneralSettingsPayload = {
@@ -1,4 +1,4 @@
1
- import type { ImageMedia } from "@riverbankcms/blocks";
1
+ import type { ImageMedia } from "../../blocks/src/index";
2
2
  /**
3
3
  * Team member public contracts
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CamelizeKeys, DbDatabase, DbRow } from "@riverbankcms/db";
1
+ import type { CamelizeKeys, DbDatabase, DbRow } from "../../db/src/index";
2
2
  export type { AccessPolicyContract, AccessPolicyTag, CreateMediaAssetBody, EntitledCustomerAccessScopeContract, FileKindContract, FileKindTag, FileUseContract, FileUseTag, ImageFileFormat, MediaAssetResponse, MediaAssetFileFilterContract, MediaBulkDeleteAssetFailure, MediaBulkDeleteResponse, MediaClassifyJobResponse, MediaJobSummaryResponse, MediaLabelSummary, MediaSettingsResponse, RenderableFileKindTag, StorageClass, UploadIntentContract, UploadIntentTag, } from "./media";
3
3
  export type { AnalyticsPreset, AnalyticsReferrer, AnalyticsReportFilters, AnalyticsReportQuery, AnalyticsReportResponse, AnalyticsSeriesPoint, AnalyticsTopPage, AnalyticsTotals, } from "./analytics";
4
4
  export type { AIChatMessage, AiBriefTurn, JsonPrimitive, JsonValue, MediaUsageCheckItem, MediaUsageCheckResponse, MediaUsageLocation, } from "./shared-contracts";
@@ -4,7 +4,7 @@
4
4
  * These functions ensure consistent URL construction across the codebase
5
5
  * and derive the API URL from the dashboard URL to avoid duplicate env vars.
6
6
  */
7
- import { type SurfaceId } from '@riverbankcms/surfaces';
7
+ import { type SurfaceId } from '../../surfaces/src/index';
8
8
  /**
9
9
  * Get the public, user-facing dashboard origin from environment.
10
10
  *
@@ -0,0 +1,484 @@
1
+ import { type PlannerNoChange } from '../../../core/src/index';
2
+ import { type BillingPlanId } from '../plans/types';
3
+ export type BillingComponentInterval = 'month' | 'year';
4
+ export type BillingComponentCurrencyCode = string;
5
+ export type BillingComponentId = string;
6
+ export type BillingComponentSiteId = string;
7
+ export type BillingComponentSiteDomainId = string;
8
+ export type BillingComponentKind = 'plan_base' | 'custom_site_price' | 'extra_site' | 'managed_domain_overage';
9
+ export type BillingComponentPersistenceStatus = 'pending_acceptance' | 'accepted' | 'sync_failed' | 'registrar_failed' | 'registrar_succeeded_persist_failed' | 'active' | 'ending' | 'ended' | 'failed';
10
+ export type EndableBillingComponentStatus = Extract<BillingComponentPersistenceStatus, 'active' | 'ending'>;
11
+ export type EndableBillingComponentKind = Extract<BillingComponentKind, 'extra_site' | 'managed_domain_overage'>;
12
+ export type BillingComponentProposalPlan = Readonly<{
13
+ idempotencyKey: string;
14
+ pendingSourceKey: string;
15
+ userId: string;
16
+ siteId: string | null;
17
+ kind: 'extra_site' | 'managed_domain_overage';
18
+ amountCents: number;
19
+ currency: string;
20
+ interval: BillingComponentInterval;
21
+ sourceEntity: BillingComponentSourceEntityPlan;
22
+ snapshotHash: string;
23
+ pricingSnapshot: unknown;
24
+ }>;
25
+ export type BillingComponentSourceEntityPlan = Readonly<{
26
+ type: 'site';
27
+ id: string;
28
+ }> | Readonly<{
29
+ type: 'site_domain';
30
+ id: string | null;
31
+ }>;
32
+ export type BillingComponentOrigin = 'computed' | 'planned' | 'persisted';
33
+ export type BillingComponentPlanSource = Readonly<{
34
+ kind: 'plan';
35
+ planId: string;
36
+ }>;
37
+ export type BillingComponentSiteSource = Readonly<{
38
+ kind: 'site';
39
+ siteId: BillingComponentSiteId;
40
+ }>;
41
+ export type BillingComponentSiteDomainSource = Readonly<{
42
+ kind: 'site_domain';
43
+ siteId: BillingComponentSiteId;
44
+ siteDomainId: BillingComponentSiteDomainId;
45
+ }>;
46
+ export type BillingComponentSource = BillingComponentPlanSource | BillingComponentSiteSource | BillingComponentSiteDomainSource;
47
+ export type BillingComponentSourceForKind<TKind extends BillingComponentKind> = TKind extends 'plan_base' ? BillingComponentPlanSource : TKind extends 'custom_site_price' | 'extra_site' ? BillingComponentSiteSource : TKind extends 'managed_domain_overage' ? BillingComponentSiteDomainSource : never;
48
+ export type BillingComponentBase<TKind extends BillingComponentKind, TOrigin extends BillingComponentOrigin> = Readonly<{
49
+ origin: TOrigin;
50
+ kind: TKind;
51
+ source: BillingComponentSourceForKind<TKind>;
52
+ amountCents: number;
53
+ currency: BillingComponentCurrencyCode;
54
+ interval: BillingComponentInterval;
55
+ }>;
56
+ export type MacadamiaExtraSiteBillingComponentProposalPlan = BillingComponentProposalPlan & Readonly<{
57
+ kind: 'extra_site';
58
+ siteId: string;
59
+ sourceEntity: Readonly<{
60
+ type: 'site';
61
+ id: string;
62
+ }>;
63
+ pricingSnapshot: MacadamiaExtraSitePricingSnapshot;
64
+ }>;
65
+ export type ManagedDomainOverageBillingComponentProposalPlan<TPricingSnapshot = unknown> = BillingComponentProposalPlan & Readonly<{
66
+ kind: 'managed_domain_overage';
67
+ siteId: string;
68
+ sourceEntity: Readonly<{
69
+ type: 'site_domain';
70
+ id: string | null;
71
+ }>;
72
+ pricingSnapshot: TPricingSnapshot;
73
+ }>;
74
+ export type ComputedBillingComponent = (BillingComponentBase<'plan_base', 'computed'> & Readonly<{
75
+ label: string;
76
+ }>) | (BillingComponentBase<'custom_site_price', 'computed'> & Readonly<{
77
+ label: string;
78
+ }>);
79
+ export type PlannedPersistedBillingComponent = (BillingComponentBase<'extra_site', 'planned'> & Readonly<{
80
+ label: string;
81
+ }>) | (BillingComponentBase<'managed_domain_overage', 'planned'> & Readonly<{
82
+ label: string;
83
+ }>);
84
+ export type PersistedBillingComponent = BillingComponentBase<'extra_site', 'persisted'> | BillingComponentBase<'managed_domain_overage', 'persisted'>;
85
+ export type BillingComponent = ComputedBillingComponent | PlannedPersistedBillingComponent | PersistedBillingComponent;
86
+ export type BillingModelDecision = Readonly<{
87
+ kind: 'macadamia_user_plan';
88
+ reason: 'no_custom_site_prices';
89
+ }> | Readonly<{
90
+ kind: 'custom_site_billing';
91
+ reason: 'active_custom_site_prices';
92
+ }>;
93
+ export type BillingComponentResolution = Readonly<{
94
+ model: BillingModelDecision;
95
+ components: readonly BillingComponent[];
96
+ basePlanCents: number;
97
+ customSitePricesCents: number;
98
+ extraSiteCents: number;
99
+ recurringAddOnsCents: number;
100
+ totalCents: number;
101
+ }>;
102
+ export type BillingSiteCostBreakdown = Readonly<{
103
+ siteId: BillingComponentSiteId;
104
+ siteName: string;
105
+ costCents: number;
106
+ billingStartsAt: string | null;
107
+ }>;
108
+ export type BillingBasePricePlan = Readonly<{
109
+ amountCents: number;
110
+ currency: BillingComponentCurrencyCode;
111
+ isCustomPrice: boolean;
112
+ source: 'override' | 'base';
113
+ }>;
114
+ export type BillingTotalPricePlan = BillingBasePricePlan & Readonly<{
115
+ billingModel: BillingModelDecision;
116
+ basePlanCents: number;
117
+ customSitePricesCents: number;
118
+ extraSiteCents: number;
119
+ recurringAddOnsCents: number;
120
+ totalCents: number;
121
+ siteBreakdown: readonly BillingSiteCostBreakdown[];
122
+ componentBreakdown: readonly BillingComponent[];
123
+ }>;
124
+ export type BillingComponentCompatibilityMismatch = Readonly<{
125
+ tag: 'component_interval_currency_mismatch';
126
+ componentInterval: BillingComponentInterval;
127
+ requestedInterval: BillingComponentInterval;
128
+ componentCurrency: BillingComponentCurrencyCode;
129
+ requestedCurrency: BillingComponentCurrencyCode;
130
+ }>;
131
+ export type BillingTotalPricePlanError = Readonly<{
132
+ tag: 'base_price_required';
133
+ }> | Readonly<{
134
+ tag: 'hybrid_billing_forbidden';
135
+ customSiteIds: readonly string[];
136
+ extraSiteIds: readonly string[];
137
+ }>;
138
+ export type BillingTotalPricePlanResult = Readonly<{
139
+ success: true;
140
+ data: BillingTotalPricePlan;
141
+ }> | Readonly<{
142
+ success: false;
143
+ error: BillingTotalPricePlanError;
144
+ }>;
145
+ export type BillingComponentSummaryBase<TKind extends BillingComponentKind> = Readonly<{
146
+ kind: TKind;
147
+ label: string;
148
+ amountCents: number;
149
+ formatted: string;
150
+ interval: BillingComponentInterval;
151
+ }>;
152
+ export type BillingComponentSummaryBasePlanComponent = BillingComponentSummaryBase<'plan_base'> & Readonly<{
153
+ source: BillingComponentPlanSource;
154
+ }>;
155
+ export type BillingComponentSummarySiteComponent = BillingComponentSummaryBase<'custom_site_price'> & Readonly<{
156
+ source: BillingComponentSiteSource;
157
+ }>;
158
+ export type BillingComponentSummaryAddOnComponent = (BillingComponentSummaryBase<'extra_site'> & Readonly<{
159
+ source: BillingComponentSiteSource;
160
+ }>) | (BillingComponentSummaryBase<'managed_domain_overage'> & Readonly<{
161
+ source: BillingComponentSiteDomainSource;
162
+ }>);
163
+ export type BillingComponentSummaryComponent = BillingComponentSummaryBasePlanComponent | BillingComponentSummarySiteComponent | BillingComponentSummaryAddOnComponent;
164
+ export type BillingComponentSummary = Readonly<{
165
+ basePlan: BillingComponentSummaryBasePlanComponent | null;
166
+ sites: BillingComponentSummarySiteComponent[];
167
+ addOns: BillingComponentSummaryAddOnComponent[];
168
+ total: Readonly<{
169
+ amountCents: number;
170
+ formatted: string;
171
+ }>;
172
+ isCustomPrice: boolean;
173
+ }>;
174
+ export type BillingComponentSummaryError = Readonly<{
175
+ tag: 'missing_component_label';
176
+ componentKind: PersistedBillingComponent['kind'];
177
+ sourceId: string;
178
+ }>;
179
+ export type BillingComponentSummaryResult = Readonly<{
180
+ success: true;
181
+ data: BillingComponentSummary;
182
+ }> | Readonly<{
183
+ success: false;
184
+ error: BillingComponentSummaryError;
185
+ }>;
186
+ export type BillingComponentSummaryFormatter = (amountCents: number, currency: BillingComponentCurrencyCode) => string;
187
+ export type BillingComponentSummaryLabelRequirements = Readonly<{
188
+ extraSiteIds: readonly BillingComponentSiteId[];
189
+ siteDomainIds: readonly BillingComponentSiteDomainId[];
190
+ }>;
191
+ export type BillableSiteState = Readonly<{
192
+ tag: 'draft';
193
+ }> | Readonly<{
194
+ tag: 'billable_live';
195
+ launchedAt: string;
196
+ }> | Readonly<{
197
+ tag: 'not_billable';
198
+ reason: 'archived' | 'deleted';
199
+ }>;
200
+ export type BillableMacadamiaSite = Readonly<{
201
+ siteId: BillingComponentSiteId;
202
+ siteName: string;
203
+ state: BillableSiteState;
204
+ grandfathered?: boolean;
205
+ }>;
206
+ export type MacadamiaExtraSitePricingSnapshot = Readonly<{
207
+ formulaVersion: 'macadamia-extra-site-v1';
208
+ planId: BillingPlanId;
209
+ amountCents: number;
210
+ currency: BillingComponentCurrencyCode;
211
+ interval: BillingComponentInterval;
212
+ }>;
213
+ export type ExtraSitePricingPolicy = Readonly<{
214
+ includedSiteCount: number;
215
+ currency: BillingComponentCurrencyCode;
216
+ extraSite: Readonly<{
217
+ tag: 'not_supported';
218
+ }> | Readonly<{
219
+ tag: 'priced';
220
+ monthlyAmountCents: number;
221
+ }>;
222
+ }>;
223
+ export type ConfiguredExtraSitePricingPolicy = ExtraSitePricingPolicy & Readonly<{
224
+ extraSite: Readonly<{
225
+ tag: 'priced';
226
+ monthlyAmountCents: number;
227
+ }>;
228
+ }>;
229
+ export type MacadamiaSiteAllowancePricingInput = Readonly<{
230
+ includedLiveSiteCount: number;
231
+ extraSite: Readonly<{
232
+ tag: 'not_supported';
233
+ }> | Readonly<{
234
+ tag: 'priced';
235
+ monthlyPricePence: number;
236
+ }>;
237
+ }>;
238
+ export type ActiveExtraSiteComponentForReconciliation = Readonly<{
239
+ componentId: BillingComponentId;
240
+ siteId: BillingComponentSiteId;
241
+ amountCents: number;
242
+ currency: BillingComponentCurrencyCode;
243
+ interval: BillingComponentInterval;
244
+ }>;
245
+ export type MacadamiaExtraSiteReconciliationAction = Readonly<{
246
+ tag: 'requires_acceptance';
247
+ site: BillableMacadamiaSite;
248
+ amountCents: number;
249
+ currency: BillingComponentCurrencyCode;
250
+ interval: BillingComponentInterval;
251
+ }> | Readonly<{
252
+ tag: 'create_missing';
253
+ site: BillableMacadamiaSite;
254
+ amountCents: number;
255
+ currency: BillingComponentCurrencyCode;
256
+ interval: BillingComponentInterval;
257
+ }> | Readonly<{
258
+ tag: 'end_at_period_end';
259
+ component: ActiveExtraSiteComponentForReconciliation;
260
+ reason: 'site_no_longer_billable' | 'site_within_allowance' | 'site_grandfathered';
261
+ }> | Readonly<{
262
+ tag: 'invalid_state';
263
+ reason: 'duplicate_active_component';
264
+ siteId?: BillingComponentSiteId;
265
+ }> | Readonly<{
266
+ tag: 'requires_plan_upgrade';
267
+ site: BillableMacadamiaSite;
268
+ minimumPlanId: 'solo';
269
+ }>;
270
+ export type MacadamiaExtraSiteReconciliationPlan = PlannerNoChange | Readonly<{
271
+ tag: 'changes_required';
272
+ actions: readonly MacadamiaExtraSiteReconciliationAction[];
273
+ }>;
274
+ export type MacadamiaExtraSiteLaunchDecision = Readonly<{
275
+ tag: 'allowed';
276
+ reason: 'within_included_allowance';
277
+ }> | Readonly<{
278
+ tag: 'allowed';
279
+ reason: 'accepted_extra_site_component';
280
+ componentId?: BillingComponentId;
281
+ }> | Readonly<{
282
+ tag: 'requires_plan_upgrade';
283
+ currentPlanId: BillingPlanId;
284
+ minimumPlanId: 'solo';
285
+ }> | Readonly<{
286
+ tag: 'requires_acceptance';
287
+ currentPlanId: BillingPlanId;
288
+ amountCents: number;
289
+ currency: BillingComponentCurrencyCode;
290
+ interval: BillingComponentInterval;
291
+ }>;
292
+ export type MacadamiaSiteCreationBillingNotice = Readonly<{
293
+ tag: 'none';
294
+ reason: 'within_included_allowance' | 'accepted_extra_site_component';
295
+ }> | Readonly<{
296
+ tag: 'unknown';
297
+ reason: 'billing_lookup_failed';
298
+ }> | Readonly<{
299
+ tag: 'upgrade_required_on_launch';
300
+ currentPlanId: BillingPlanId;
301
+ minimumPlanId: 'solo';
302
+ }> | Readonly<{
303
+ tag: 'extra_site_charge_on_launch';
304
+ currentPlanId: BillingPlanId;
305
+ amountCents: number;
306
+ currency: BillingComponentCurrencyCode;
307
+ interval: BillingComponentInterval;
308
+ }>;
309
+ export type MacadamiaExtraSiteProposalDecisionPlan = Extract<MacadamiaExtraSiteLaunchDecision, {
310
+ tag: 'requires_acceptance';
311
+ }>;
312
+ export type BillingComponentPeriodEndPlan = Readonly<{
313
+ tag: 'schedule';
314
+ endsAt: string;
315
+ }> | Readonly<{
316
+ tag: 'period_end_unavailable';
317
+ currentPeriodEnd: string | null;
318
+ }>;
319
+ export type BillingComponentTimestampEndPlan = Readonly<{
320
+ tag: 'schedule';
321
+ endsAt: string;
322
+ }> | Readonly<{
323
+ tag: 'end_now';
324
+ endsAt: string;
325
+ }> | Readonly<{
326
+ tag: 'invalid_end_at';
327
+ endsAt: string | null;
328
+ }>;
329
+ export declare function isEndableBillingComponentStatus(status: BillingComponentPersistenceStatus): status is EndableBillingComponentStatus;
330
+ export declare function isEndableBillingAddOnComponent(component: Readonly<{
331
+ kind: BillingComponentKind;
332
+ status: BillingComponentPersistenceStatus;
333
+ }>): component is Readonly<{
334
+ kind: EndableBillingComponentKind;
335
+ status: EndableBillingComponentStatus;
336
+ }>;
337
+ export declare function isActiveOrEndingManagedDomainOverageComponent(component: Readonly<{
338
+ kind: BillingComponentKind;
339
+ status: BillingComponentPersistenceStatus;
340
+ }>): component is Readonly<{
341
+ kind: 'managed_domain_overage';
342
+ status: EndableBillingComponentStatus;
343
+ }>;
344
+ export declare function isFutureTimestamp(timestamp: string, now: Date): boolean;
345
+ export declare function isBillingComponentCurrentlyChargeable(component: Readonly<{
346
+ status: BillingComponentPersistenceStatus;
347
+ endsAt: string | null;
348
+ }>, now: Date): boolean;
349
+ export declare function planBillingComponentEndAtCurrentPeriodEnd(input: Readonly<{
350
+ currentPeriodEnd: string | null;
351
+ now: Date;
352
+ }>): BillingComponentPeriodEndPlan;
353
+ export declare function planBillingComponentEndAtTimestamp(input: Readonly<{
354
+ endsAt: string | null;
355
+ now: Date;
356
+ }>): BillingComponentTimestampEndPlan;
357
+ export declare function gbpPenceToAmountCents(amountPence: number, currency: BillingComponentCurrencyCode): number;
358
+ export declare function buildMacadamiaExtraSitePricingPolicy(allowance: MacadamiaSiteAllowancePricingInput): ExtraSitePricingPolicy;
359
+ export declare function resolveBillableSiteState(input: Readonly<{
360
+ launchedAt: string | null;
361
+ archivedAt?: string | null;
362
+ deletedAt?: string | null;
363
+ }>): BillableSiteState;
364
+ export declare function classifyBillingModel(input: Readonly<{
365
+ customSitePrices: readonly BillingComponent[];
366
+ }>): BillingModelDecision;
367
+ export declare function planExtraSiteComponents(input: Readonly<{
368
+ sites: readonly BillableMacadamiaSite[];
369
+ policy: ConfiguredExtraSitePricingPolicy;
370
+ interval?: BillingComponentInterval;
371
+ }>): readonly BillingComponent[];
372
+ export declare function planMacadamiaExtraSiteReconciliation(input: Readonly<{
373
+ sites: readonly BillableMacadamiaSite[];
374
+ activeExtraSiteComponents: readonly ActiveExtraSiteComponentForReconciliation[];
375
+ acceptedSiteIds?: readonly BillingComponentSiteId[];
376
+ policy: ExtraSitePricingPolicy;
377
+ interval?: BillingComponentInterval;
378
+ }>): MacadamiaExtraSiteReconciliationPlan;
379
+ export declare function evaluateMacadamiaExtraSiteLaunchDecision(input: Readonly<{
380
+ siteId: BillingComponentSiteId;
381
+ currentPlanId: BillingPlanId;
382
+ currentLiveSiteCount: number;
383
+ acceptedExtraSiteComponents?: readonly Readonly<{
384
+ siteId: BillingComponentSiteId;
385
+ componentId?: BillingComponentId;
386
+ }>[];
387
+ policy: ExtraSitePricingPolicy;
388
+ interval?: BillingComponentInterval;
389
+ }>): MacadamiaExtraSiteLaunchDecision;
390
+ export declare function macadamiaExtraSiteLaunchDecisionToCreationBillingNotice(decision: MacadamiaExtraSiteLaunchDecision): MacadamiaSiteCreationBillingNotice;
391
+ export declare function evaluateMacadamiaSiteCreationBillingNotice(input: Readonly<{
392
+ currentPlanId: BillingPlanId;
393
+ currentLiveSiteCount: number;
394
+ policy: ExtraSitePricingPolicy;
395
+ interval?: BillingComponentInterval;
396
+ }>): MacadamiaSiteCreationBillingNotice;
397
+ export declare function resolveBillingComponents(input: Readonly<{
398
+ basePlan: BillingComponent;
399
+ customSitePrices: readonly BillingComponent[];
400
+ extraSites?: readonly BillingComponent[];
401
+ recurringAddOns?: readonly BillingComponent[];
402
+ }>): BillingComponentResolution;
403
+ export declare function partitionPersistedBillingComponents(components: readonly PersistedBillingComponent[]): Readonly<{
404
+ extraSites: readonly PersistedBillingComponent[];
405
+ recurringAddOns: readonly PersistedBillingComponent[];
406
+ }>;
407
+ export declare function toBillingSiteCostBreakdown(input: Readonly<{
408
+ siteId: string;
409
+ siteName: string;
410
+ monthlyCostCents: number;
411
+ billingStartsAt: string | null;
412
+ }>): BillingSiteCostBreakdown;
413
+ export declare function planCustomSitePriceComponents(input: Readonly<{
414
+ siteBreakdown: readonly BillingSiteCostBreakdown[];
415
+ currency: BillingComponentCurrencyCode;
416
+ interval: BillingComponentInterval;
417
+ }>): readonly BillingComponent[];
418
+ export declare function validateBillingComponentCompatibility(input: Readonly<{
419
+ component: BillingComponent;
420
+ requestedInterval: BillingComponentInterval;
421
+ requestedCurrency: BillingComponentCurrencyCode;
422
+ }>): BillingComponentCompatibilityMismatch | null;
423
+ export declare function planBillingTotalPrice(input: Readonly<{
424
+ planId: string;
425
+ interval: BillingComponentInterval;
426
+ currency: BillingComponentCurrencyCode;
427
+ siteBreakdown: readonly BillingSiteCostBreakdown[];
428
+ persistedComponents: readonly PersistedBillingComponent[];
429
+ basePrice?: BillingBasePricePlan;
430
+ }>): BillingTotalPricePlanResult;
431
+ export declare function getBillingComponentSummaryLabelRequirements(components: readonly BillingComponent[]): BillingComponentSummaryLabelRequirements;
432
+ export declare function buildBillingComponentSummary(input: Readonly<{
433
+ components: readonly BillingComponent[];
434
+ totalCents: number;
435
+ totalCurrency: BillingComponentCurrencyCode;
436
+ isCustomPrice: boolean;
437
+ persistedLabels: ReadonlyMap<string, string>;
438
+ formatAmount: BillingComponentSummaryFormatter;
439
+ }>): BillingComponentSummaryResult;
440
+ export declare function toBillingComponentSummaryComponent(component: BillingComponent, persistedLabels: ReadonlyMap<string, string>, formatAmount: BillingComponentSummaryFormatter): Readonly<{
441
+ success: true;
442
+ data: BillingComponentSummaryComponent;
443
+ } | {
444
+ success: false;
445
+ error: BillingComponentSummaryError;
446
+ }>;
447
+ export declare function isBillingComponentSummaryBasePlanComponent(component: BillingComponentSummaryComponent): component is BillingComponentSummaryBasePlanComponent;
448
+ export declare function isBillingComponentSummarySiteComponent(component: BillingComponentSummaryComponent): component is BillingComponentSummarySiteComponent;
449
+ export declare function isBillingComponentSummaryAddOnComponent(component: BillingComponentSummaryComponent): component is BillingComponentSummaryAddOnComponent;
450
+ export declare function persistedBillingComponentLabelKey(component: PersistedBillingComponent): string;
451
+ export declare function persistedBillingComponentLabelKey(kind: PersistedBillingComponent['kind'], sourceId: string): string;
452
+ export declare function parseMacadamiaExtraSitePricingSnapshot(value: unknown): MacadamiaExtraSitePricingSnapshot | null;
453
+ export declare function buildMacadamiaExtraSitePricingSnapshot(decision: MacadamiaExtraSiteProposalDecisionPlan): MacadamiaExtraSitePricingSnapshot;
454
+ export declare function buildMacadamiaExtraSiteProposalPlan(input: Readonly<{
455
+ billingUserId: string;
456
+ siteId: string;
457
+ decision: MacadamiaExtraSiteProposalDecisionPlan;
458
+ }>): MacadamiaExtraSiteBillingComponentProposalPlan;
459
+ export type BillingComponentProposalPlanBranding<TIdempotencyKey, TPendingSourceKey, TUserId, TSiteId, TSnapshotHash, TPricingSnapshot> = Readonly<{
460
+ idempotencyKey: (value: string) => TIdempotencyKey;
461
+ pendingSourceKey: (value: string) => TPendingSourceKey;
462
+ userId: (value: string) => TUserId;
463
+ siteId: (value: string) => TSiteId;
464
+ snapshotHash: (value: string) => TSnapshotHash;
465
+ pricingSnapshot: (value: unknown) => TPricingSnapshot;
466
+ }>;
467
+ export type BillingComponentProposalPricingSnapshotParser<TPricingSnapshot> = (value: unknown) => TPricingSnapshot | null;
468
+ export type BrandedBillingComponentProposalPlan<TIdempotencyKey, TPendingSourceKey, TUserId, TSiteId, TSnapshotHash, TPricingSnapshot> = Omit<BillingComponentProposalPlan, 'idempotencyKey' | 'pendingSourceKey' | 'userId' | 'siteId' | 'snapshotHash' | 'pricingSnapshot'> & Readonly<{
469
+ idempotencyKey: TIdempotencyKey;
470
+ pendingSourceKey: TPendingSourceKey;
471
+ userId: TUserId;
472
+ siteId: TSiteId | null;
473
+ snapshotHash: TSnapshotHash;
474
+ pricingSnapshot: TPricingSnapshot;
475
+ }>;
476
+ export declare function asBillingComponentProposalPlan<TIdempotencyKey, TPendingSourceKey, TUserId, TSiteId, TSnapshotHash, TPricingSnapshot>(plan: BillingComponentProposalPlan, brand: BillingComponentProposalPlanBranding<TIdempotencyKey, TPendingSourceKey, TUserId, TSiteId, TSnapshotHash, TPricingSnapshot>): BrandedBillingComponentProposalPlan<TIdempotencyKey, TPendingSourceKey, TUserId, TSiteId, TSnapshotHash, TPricingSnapshot>;
477
+ /**
478
+ * Fail-fast guard for static proposal brand adapters. The parser boundary should
479
+ * be wired during service construction, so returning a Result would only move a
480
+ * programming/configuration error into every runtime caller.
481
+ */
482
+ export declare function asBillingComponentProposalPricingSnapshot<TPricingSnapshot>(value: unknown, parse: BillingComponentProposalPricingSnapshotParser<TPricingSnapshot>, description?: string): TPricingSnapshot;
483
+ export declare function hashBillingComponentSnapshot(snapshot: unknown): string;
484
+ export declare function stableJson(value: unknown): string;
@@ -4,7 +4,7 @@
4
4
  * Integrates with EditorUiStore for autosave-enabled form management.
5
5
  * Supports three scopes: blocks (per-block data), metadata (page/entry metadata), and content (content entry data).
6
6
  */
7
- import type { EditorBlockId, EditorSyncState } from '@riverbankcms/core';
7
+ import type { EditorBlockId, EditorSyncState } from '../../../core/src/index';
8
8
  import type { FormBackend, StoreBackendOptions } from './types';
9
9
  type StoreSnapshot = {
10
10
  current: Record<string, unknown> | null;
@@ -12,7 +12,7 @@
12
12
  */
13
13
  import type { ZodIssue } from 'zod';
14
14
  import type { FieldValues, UseFormReturn } from 'react-hook-form';
15
- import type { EditorBlockId } from '@riverbankcms/core';
15
+ import type { EditorBlockId } from '../../../core/src/index';
16
16
  /**
17
17
  * Zustand-like store interface for store backend.
18
18
  * We use a minimal contract here to avoid circular dependencies with content-editor.
@@ -131,7 +131,7 @@ export declare function isStoreBackend(backend: FormBackend): backend is FormBac
131
131
  scope: 'blocks' | 'metadata' | 'content';
132
132
  blockId?: EditorBlockId;
133
133
  };
134
- export type { FieldDefinition } from '@riverbankcms/blocks';
134
+ export type { FieldDefinition } from '../../../blocks/src/index';
135
135
  export { createRHFBackend } from './rhf-backend';
136
136
  export { createStoreBackend } from './store-backend';
137
137
  export { useBackendWatch } from './useBackendWatch';