@riverbankcms/sdk 0.107.0 → 0.109.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 (256) hide show
  1. package/README.md +21 -1
  2. package/dist/{PreviewEditorSidebar-DpAbAl08.mjs → PreviewEditorSidebar-DWqwfy3_.mjs} +48 -28
  3. package/dist/{PreviewEditorUI-O7cn6Xxv.mjs → PreviewEditorUI-B7OL4sfR.mjs} +10 -9
  4. package/dist/{PreviewQueryProvider-D0tnKl0t.mjs → PreviewQueryProvider-D0y2l8JN.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-CVB7urtl.mjs → SdkPreviewModeRuntime-D8Gt9Gbe.mjs} +633 -220
  6. package/dist/{SiteChromeCustomizeContext-C_sizso-.mjs → SiteChromeCustomizeContext-DUpalEdL.mjs} +5764 -1556
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +15383 -11388
  8. package/dist/_dts/api/src/blocks.d.ts +41 -7
  9. package/dist/_dts/api/src/bookingAdjustments.d.ts +5 -0
  10. package/dist/_dts/api/src/bookingOperations.d.ts +4 -0
  11. package/dist/_dts/api/src/bookingRecords.d.ts +177 -127
  12. package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +6 -6
  13. package/dist/_dts/api/src/cache-tags.d.ts +3 -0
  14. package/dist/_dts/api/src/common/envelope.d.ts +7 -0
  15. package/dist/_dts/api/src/contentRuntime.d.ts +19 -1
  16. package/dist/_dts/api/src/courses.d.ts +1 -0
  17. package/dist/_dts/api/src/customerMembershipOutcomes.d.ts +5 -5
  18. package/dist/_dts/api/src/endpoints.d.ts +134 -0
  19. package/dist/_dts/api/src/footer-settings.d.ts +1 -0
  20. package/dist/_dts/api/src/footerSettings.d.ts +8 -0
  21. package/dist/_dts/api/src/index.d.ts +7 -4
  22. package/dist/_dts/api/src/navigation/contracts.d.ts +3 -3
  23. package/dist/_dts/api/src/participantMessaging.d.ts +18 -12
  24. package/dist/_dts/api/src/previewContentContract.d.ts +4 -0
  25. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +1 -0
  26. package/dist/_dts/api/src/sdkContracts.d.ts +309 -1
  27. package/dist/_dts/api/src/siteBanner.d.ts +2 -2
  28. package/dist/_dts/api/src/siteInfrastructure.d.ts +13 -0
  29. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +144 -60
  30. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +35 -1
  31. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +74 -28
  32. package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientField.d.ts +9 -0
  33. package/dist/_dts/block-form/src/widgets/BackgroundGradientWidget/BackgroundGradientWidget.d.ts +3 -4
  34. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -4
  35. package/dist/_dts/blocks/src/index.d.ts +1 -1
  36. package/dist/_dts/blocks/src/primitives/layout/Section.d.ts +0 -1
  37. package/dist/_dts/blocks/src/rendering/server.d.ts +1 -0
  38. package/dist/_dts/blocks/src/system/blocks/audio-player.d.ts +3 -0
  39. package/dist/_dts/blocks/src/system/blocks/body-text.d.ts +3 -0
  40. package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +3 -0
  41. package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +1 -22
  42. package/dist/_dts/blocks/src/system/blocks/cta-full.d.ts +3 -0
  43. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +1 -22
  44. package/dist/_dts/blocks/src/system/blocks/file-download.d.ts +3 -0
  45. package/dist/_dts/blocks/src/system/blocks/form.d.ts +3 -0
  46. package/dist/_dts/blocks/src/system/blocks/image-gallery.d.ts +3 -0
  47. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +3 -0
  48. package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +3 -0
  49. package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +50 -0
  50. package/dist/_dts/blocks/src/system/blocks/site-footer.d.ts +9 -48
  51. package/dist/_dts/blocks/src/system/blocks/site-header.d.ts +3 -0
  52. package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +3 -0
  53. package/dist/_dts/blocks/src/system/blocks/testimonials.d.ts +3 -0
  54. package/dist/_dts/blocks/src/system/blocks/video-grid.d.ts +3 -0
  55. package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
  56. package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +16 -6
  57. package/dist/_dts/blocks/src/system/defineBlock.d.ts +9 -1
  58. package/dist/_dts/blocks/src/system/fields/ctas.d.ts +8 -0
  59. package/dist/_dts/blocks/src/system/icons/registry.d.ts +2 -1
  60. package/dist/_dts/blocks/src/system/icons/social.d.ts +5 -0
  61. package/dist/_dts/blocks/src/system/icons/svg.d.ts +1 -0
  62. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +33 -2
  63. package/dist/_dts/blocks/src/system/node/fragments/backgroundLayer.d.ts +13 -0
  64. package/dist/_dts/blocks/src/system/node/fragments/footerNav.d.ts +2 -0
  65. package/dist/_dts/blocks/src/system/node/fragments/styledContainer.d.ts +4 -4
  66. package/dist/_dts/blocks/src/system/node/fragments/styledSection.d.ts +3 -12
  67. package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
  68. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +6 -6
  69. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -3
  70. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +2 -2
  71. package/dist/_dts/blocks/src/system/types/link.d.ts +3 -3
  72. package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +14 -0
  73. package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +27 -8
  74. package/dist/_dts/content-editor/src/footerComposer.d.ts +56 -0
  75. package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +1 -1
  76. package/dist/_dts/content-editor/src/hooks/useEntryMutations.d.ts +5 -5
  77. package/dist/_dts/content-editor/src/index.d.ts +2 -0
  78. package/dist/_dts/content-editor/src/primitives/PreviewRichTextEditor.d.ts +3 -1
  79. package/dist/_dts/content-editor/src/services/contentEntryServices.d.ts +20 -36
  80. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +5 -1
  81. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +11 -0
  82. package/dist/_dts/content-model/src/content-types/entryValidation.d.ts +31 -0
  83. package/dist/_dts/content-model/src/content-types/scaffold.d.ts +58 -0
  84. package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
  85. package/dist/_dts/content-model/src/content-types/sentinels.d.ts +36 -0
  86. package/dist/_dts/content-model/src/definitions/shared.d.ts +3 -0
  87. package/dist/_dts/content-model/src/index.d.ts +3 -0
  88. package/dist/_dts/core/src/booking-date-time.d.ts +8 -0
  89. package/dist/_dts/core/src/branded.d.ts +3 -0
  90. package/dist/_dts/core/src/editor-state.d.ts +4 -0
  91. package/dist/_dts/core/src/footer-composition.d.ts +143 -0
  92. package/dist/_dts/core/src/index.d.ts +2 -0
  93. package/dist/_dts/core/src/public-profile.d.ts +73 -0
  94. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +221 -205
  95. package/dist/_dts/db/src/schemas/forms.d.ts +10 -10
  96. package/dist/_dts/editor/src/primitives/rich-text/RichTextEditorSurface.d.ts +5 -0
  97. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +1 -0
  98. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockCreation.d.ts +2 -1
  99. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockDuplication.d.ts +2 -1
  100. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockReorder.d.ts +2 -1
  101. package/dist/_dts/editor-blocks/src/block-editor/owner.d.ts +10 -0
  102. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +1 -0
  103. package/dist/_dts/media-core/src/fileMimeDetection.d.ts +16 -0
  104. package/dist/_dts/media-core/src/fileStorage.d.ts +8 -0
  105. package/dist/_dts/media-core/src/storagePathDomain.d.ts +2 -0
  106. package/dist/_dts/media-core/src/uploadVerificationContract.d.ts +3 -0
  107. package/dist/_dts/path-utils/src/index.d.ts +5 -0
  108. package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +2 -0
  109. package/dist/_dts/preview-next/src/client/preview/PreviewChromeLayer.d.ts +5 -0
  110. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -1
  111. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -0
  112. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -1
  113. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +2 -1
  114. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +1 -0
  115. package/dist/_dts/preview-next/src/client/preview/previewErrorMessages.d.ts +4 -0
  116. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -1
  117. package/dist/_dts/sdk/src/cli/commands/audit.d.ts +1 -1
  118. package/dist/_dts/sdk/src/cli/commands/compare.d.ts +1 -1
  119. package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +1 -1
  120. package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +18 -0
  121. package/dist/_dts/sdk/src/cli/commands/entry.d.ts +15 -0
  122. package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +2 -2
  123. package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +1 -1
  124. package/dist/_dts/sdk/src/cli/commands/pull.d.ts +1 -0
  125. package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +1 -1
  126. package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +3 -0
  127. package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +12 -1
  128. package/dist/_dts/sdk/src/cli/commands/setup.d.ts +1 -0
  129. package/dist/_dts/sdk/src/cli/commands/verify.d.ts +1 -0
  130. package/dist/_dts/sdk/src/cli/content/reader.d.ts +1 -0
  131. package/dist/_dts/sdk/src/cli/helpers.d.ts +22 -1
  132. package/dist/_dts/sdk/src/cli/index.d.ts +4 -0
  133. package/dist/_dts/sdk/src/cli/output.d.ts +88 -0
  134. package/dist/_dts/sdk/src/cli/program.d.ts +29 -0
  135. package/dist/_dts/sdk/src/cli/push-config.d.ts +1 -1
  136. package/dist/_dts/sdk/src/client/management/blocks.d.ts +14 -1
  137. package/dist/_dts/sdk/src/client/management/catalog.d.ts +10 -0
  138. package/dist/_dts/sdk/src/client/management/http.d.ts +7 -1
  139. package/dist/_dts/sdk/src/client/management/index.d.ts +2 -1
  140. package/dist/_dts/sdk/src/client/management/types.d.ts +58 -20
  141. package/dist/_dts/sdk/src/config/content-types.d.ts +2 -0
  142. package/dist/_dts/sdk/src/config/content-validation.d.ts +4 -0
  143. package/dist/_dts/sdk/src/date-time/index.d.ts +68 -0
  144. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -0
  145. package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -2
  146. package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +2 -1
  147. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +1 -1
  148. package/dist/_dts/sdk/src/version.d.ts +1 -1
  149. package/dist/_dts/site-commands/src/commands.d.ts +900 -827
  150. package/dist/_dts/theme-core/src/accordions/types.d.ts +2 -2
  151. package/dist/_dts/theme-core/src/buttons/core.d.ts +15 -46
  152. package/dist/_dts/theme-core/src/buttons/effectClassification.d.ts +147 -0
  153. package/dist/_dts/theme-core/src/buttons/effects/types.d.ts +2 -3
  154. package/dist/_dts/theme-core/src/buttons/generateDefaultButtonSystem.d.ts +1 -1
  155. package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
  156. package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +11 -0
  157. package/dist/_dts/theme-core/src/buttons/personalities/two-tone-pill.d.ts +17 -0
  158. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +45 -33
  159. package/dist/_dts/theme-core/src/buttons/presets.d.ts +4 -25
  160. package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +100 -0
  161. package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +16 -0
  162. package/dist/_dts/theme-core/src/buttons/types.d.ts +104 -86
  163. package/dist/_dts/theme-core/src/cards/types.d.ts +16 -16
  164. package/dist/_dts/theme-core/src/footer/mode.d.ts +15 -0
  165. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  166. package/dist/_dts/theme-core/src/gradients/presets.d.ts +200 -8
  167. package/dist/_dts/theme-core/src/gradients/utils.d.ts +6 -2
  168. package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
  169. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +117 -150
  170. package/dist/_dts/theme-core/src/mock-themes/modern-minimal.d.ts +1 -1
  171. package/dist/_dts/theme-core/src/navigation/types.d.ts +3 -3
  172. package/dist/_dts/theme-core/src/palette/curated/index.d.ts +2 -2
  173. package/dist/_dts/theme-core/src/palette/curated/types.d.ts +5 -8
  174. package/dist/_dts/theme-core/src/palette/index.d.ts +0 -1
  175. package/dist/_dts/theme-core/src/schema.d.ts +1264 -138
  176. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  177. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +10 -10
  178. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +12 -1
  179. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +3 -2
  180. package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +13 -6
  181. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +29 -8
  182. package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +15 -0
  183. package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +2 -2
  184. package/dist/cli/index.mjs +68552 -66955
  185. package/dist/cli/init-docs/content/cli-reference.md +50 -7
  186. package/dist/cli/init-docs/content/content-management.md +7 -4
  187. package/dist/cli/init-docs/content/workflow-publish.md +5 -1
  188. package/dist/client/{DiscountCodeDisclosure-BwGkvmVH.mjs → DiscountCodeDisclosure-DU1ygxU2.mjs} +1 -1
  189. package/dist/client/{EventCombined.client-JnWE6Hzc.mjs → EventCombined.client-DB5zagCo.mjs} +3 -3
  190. package/dist/client/{EventListing.client-DQewc_kg.mjs → EventListing.client-CTX9JHBL.mjs} +2 -2
  191. package/dist/client/{LeafletStaticMap-DPAU3SFt.mjs → LeafletStaticMap-BYImhgiB.mjs} +1 -1
  192. package/dist/client/{MagicLinkForm-D4kpWCbW.mjs → MagicLinkForm-CRkw_M3l.mjs} +2 -2
  193. package/dist/client/{StepIndicator-CBlkb4rA.mjs → StepIndicator-BnmVBJJh.mjs} +2 -2
  194. package/dist/client/{accordion-DAIBVpTS.mjs → accordion-CeGreumd.mjs} +1 -1
  195. package/dist/client/{bookingForm-DZ-4l5_1.mjs → bookingForm-CSzFNrpN.mjs} +6 -6
  196. package/dist/client/bookings.mjs +637 -328
  197. package/dist/client/{buttons-DJgynGHQ.mjs → buttons-DoFV7KDL.mjs} +618 -306
  198. package/dist/client/{carousel-D-SLfX8r.mjs → carousel-B2jDtogf.mjs} +1 -1
  199. package/dist/client/{cart-CEgbgJhX.mjs → cart-D-jZ-vaY.mjs} +3 -3
  200. package/dist/client/{checkout-CXWrCRAA.mjs → checkout-Dza-LA7N.mjs} +3 -3
  201. package/dist/client/client.mjs +2497 -1216
  202. package/dist/client/{colorStyles-jZS6KfkP.mjs → colorStyles-CrgzoXsm.mjs} +1 -30
  203. package/dist/client/{courseRegistration-DVmLrRVz.mjs → courseRegistration-TYkNychb.mjs} +7 -7
  204. package/dist/client/{eventCalendar-DCuyPY_c.mjs → eventCalendar-BI_90SsT.mjs} +5 -5
  205. package/dist/client/{eventCombined-kP2CA2D4.mjs → eventCombined-mNrpryE9.mjs} +2 -2
  206. package/dist/client/{eventDetails-DU0LeF5e.mjs → eventDetails-D4GVlCIY.mjs} +3 -3
  207. package/dist/client/{eventListing-CcHF87BI.mjs → eventListing-YhKN018y.mjs} +2 -2
  208. package/dist/client/{eventRegistration-DJnR0yFH.mjs → eventRegistration-CdHGtilr.mjs} +7 -7
  209. package/dist/client/foregroundContract-xICPq59x.mjs +31 -0
  210. package/dist/client/{form-CH1lCusH.mjs → form-AcAL45rA.mjs} +2 -2
  211. package/dist/client/{headerSection-CBPFZoku.mjs → headerSection-uEC52ueD.mjs} +3 -3
  212. package/dist/client/hooks.mjs +1249 -841
  213. package/dist/client/{locationMap-Cx1hBg5n.mjs → locationMap-_wJDSUYe.mjs} +3 -3
  214. package/dist/client/{media-DHtSxS5V.mjs → media-BK0O3b-U.mjs} +3 -2
  215. package/dist/client/{newsletterForm-1ZL_ti9u.mjs → newsletterForm-DrArsb2B.mjs} +2 -2
  216. package/dist/client/{pricing-BIbzmV0G.mjs → pricing-BSYVghwo.mjs} +1 -1
  217. package/dist/client/{productDetail-BTh5gHBV.mjs → productDetail-Dyk90sMs.mjs} +3 -3
  218. package/dist/client/{productList-Cc7OMrqN.mjs → productList-BCKThwAI.mjs} +3 -3
  219. package/dist/client/{propsDecoder-oR-M-ISN.mjs → propsDecoder-CkXxkdSR.mjs} +96 -33
  220. package/dist/client/rendering/client.mjs +1278 -523
  221. package/dist/client/rendering/islands.mjs +19 -19
  222. package/dist/client/rendering.mjs +2308 -1028
  223. package/dist/client/{shop-CQ_YbCnn.mjs → shop-DeltVH10.mjs} +6 -6
  224. package/dist/client/{shop-commerce-BM-AoD3M.mjs → shop-commerce-BD9Jsm2Z.mjs} +6 -6
  225. package/dist/client/{shop-commerce-store-DFMQhU5p.mjs → shop-commerce-store-CmXD6FDS.mjs} +1 -1
  226. package/dist/client/{shopShared-D0SKO2Cu.mjs → shopShared-B8v-lH_F.mjs} +2 -2
  227. package/dist/client/{useDiscountCodeUi-CrG4_ARt.mjs → useDiscountCodeUi-DbWJN8ld.mjs} +1 -1
  228. package/dist/client/{useEventFilters-CxK8Fekl.mjs → useEventFilters-EJIMUnqT.mjs} +46 -69
  229. package/dist/client/{usePolling-jcVryNgZ.mjs → usePolling-Cmh14fc7.mjs} +2 -2
  230. package/dist/preview-next/before-render.mjs +213 -0
  231. package/dist/preview-next/client/runtime.mjs +4 -4
  232. package/dist/preview-next/middleware.mjs +213 -0
  233. package/dist/{previewAuthStore-BPcJPzdz.mjs → previewAuthStore-CTO7CRPk.mjs} +213 -0
  234. package/dist/{sdk-runtime-C39Rsk-x.mjs → sdk-runtime-Dou0GAav.mjs} +2 -2
  235. package/dist/{separator-BoMSQnsP.mjs → separator-CI5wZNXT.mjs} +1 -1
  236. package/dist/server/components.mjs +2370 -1132
  237. package/dist/server/config-validation.mjs +1256 -842
  238. package/dist/server/config.mjs +1256 -843
  239. package/dist/server/data.mjs +1249 -841
  240. package/dist/server/date-time.mjs +386 -0
  241. package/dist/server/index.mjs +214 -1
  242. package/dist/server/navigation.mjs +9 -3
  243. package/dist/server/next.mjs +3421 -1949
  244. package/dist/server/page-converter.mjs +1236 -659
  245. package/dist/server/prebuild.mjs +1 -1
  246. package/dist/server/rendering/server.mjs +2074 -1060
  247. package/dist/server/rendering.mjs +2370 -1132
  248. package/dist/server/routing.mjs +1543 -1062
  249. package/dist/server/server.mjs +1464 -843
  250. package/dist/server/theme-bridge.mjs +1581 -474
  251. package/dist/server/theme.mjs +614 -305
  252. package/dist/styles/index.css +12 -1
  253. package/package.json +7 -1
  254. package/dist/_dts/theme-core/src/buttons/presets/types.d.ts +0 -88
  255. package/dist/_dts/theme-core/src/buttons/utils/contrast.d.ts +0 -38
  256. package/dist/_dts/theme-core/src/palette/themePaletteCompatibility.d.ts +0 -57
@@ -1,5 +1,7 @@
1
- import type { FieldDefinition, FieldDefinitionInput, SdkCustomBlock, SdkCustomBlockInput, SiteFooterContent, Theme } from '../../blocks/src/index';
1
+ import type { BlockContentSource, BlockContentSourceKind, FieldDefinition, FieldDefinitionInput, SdkCustomBlock, SdkCustomBlockInput, SiteFooterContent, Theme } from '../../blocks/src/index';
2
+ import type { ContentTypeSchema } from '../../content-model/src/index';
2
3
  import type { LinkPayload } from './navigation/types';
4
+ import type { JsonValue } from './shared-contracts';
3
5
  import type { SdkEventPricing, SdkEventPricingInput } from './sdk-event-pricing';
4
6
  import type { SdkEventPaymentTerms, SdkEventPaymentTermsInput } from './sdk-event-payment-terms';
5
7
  /**
@@ -368,6 +370,89 @@ export interface SdkGetPageBlock {
368
370
  export interface SdkGetPageBlockResponse {
369
371
  block: SdkGetPageBlock;
370
372
  }
373
+ /**
374
+ * A single PATCH operation against a block's draft content.
375
+ *
376
+ * Discriminated on `op`. Only `set` exists today; additional operations
377
+ * (e.g. `unset`) extend this union without breaking existing callers.
378
+ *
379
+ * `path` must resolve to a manifest-defined field of the block (dot/bracket
380
+ * syntax, e.g. `title`, `items[0].label`, `cta.label`). Paths that do not
381
+ * resolve to a manifest field — including prototype-chain segments such as
382
+ * `__proto__` — are rejected with a 400 naming the offending operation index.
383
+ *
384
+ * Numeric repeater indices must address an EXISTING item (strictly below the
385
+ * current array length). To append or resize, `set` the whole repeater field.
386
+ */
387
+ export type SdkPatchPageBlockOperation = Readonly<{
388
+ op: 'set';
389
+ path: string;
390
+ value: JsonValue;
391
+ }>;
392
+ /**
393
+ * Body for `PATCH pages/{identifier}/blocks/{blockIdentifier}`.
394
+ *
395
+ * Operations apply atomically to an in-memory copy of the block's draft
396
+ * data; the result is validated once against the block manifest, then
397
+ * persisted in a single guarded draft write (published rows are untouched —
398
+ * publish remains page-boundary). Any invalid operation aborts the whole
399
+ * request.
400
+ *
401
+ * `baseContentHash` is required and must equal the `contentHash` returned by
402
+ * the block GET. On mismatch (including a concurrent write landing between
403
+ * read and write) the endpoint returns 409 carrying
404
+ * `SdkPatchPageBlockStaleContentFieldError` in `fieldErrors`.
405
+ */
406
+ export interface SdkPatchPageBlockBody {
407
+ operations: readonly SdkPatchPageBlockOperation[];
408
+ baseContentHash: string;
409
+ /**
410
+ * Optional catalog-coherence precondition: the `activeTheme.selectionVersion`
411
+ * from `catalog/blocks`. When provided and the site's current style-selection
412
+ * version differs (the theme changed since the catalog was read), the write is
413
+ * rejected with 409 and error tag `STALE_CATALOG` instead of risking a
414
+ * confusing validation failure on a variant the stale catalog advertised.
415
+ */
416
+ baseSelectionVersion?: number;
417
+ }
418
+ export declare const SDK_PATCH_STALE_CONTENT_FIELD = "baseContentHash";
419
+ export declare const SDK_PATCH_STALE_CONTENT_CODE = "STALE_CONTENT";
420
+ /**
421
+ * Typed stale-conflict detail for block PATCH 409 responses, transported in
422
+ * the standard envelope's `fieldErrors`. `message` is EXACTLY the current
423
+ * draft content hash (no prose) — echo it back as `baseContentHash` to
424
+ * retry. The SDK client surfaces this as a discriminated
425
+ * `BlockPatchStaleContentError` so callers never string-sniff.
426
+ */
427
+ export interface SdkPatchPageBlockStaleContentFieldError {
428
+ field: typeof SDK_PATCH_STALE_CONTENT_FIELD;
429
+ code: typeof SDK_PATCH_STALE_CONTENT_CODE;
430
+ /** Exactly the current draft content hash. */
431
+ message: string;
432
+ }
433
+ /**
434
+ * Non-blocking warning emitted on a block write. Currently used for button-variant
435
+ * values that ARE valid manifest options but the ACTIVE theme does not implement:
436
+ * the write is accepted (themes can change under content), but the variant will not
437
+ * render until a personality that provides it is selected.
438
+ */
439
+ export interface SdkBlockContentWarning {
440
+ /** Data path of the value (e.g. `ctas[0].variant`). */
441
+ field: string;
442
+ code: 'theme-unavailable-variant';
443
+ message: string;
444
+ /** The offending value. */
445
+ value: string;
446
+ }
447
+ /**
448
+ * Success response mirrors the block GET shape; `block.contentHash` is the
449
+ * NEW draft content hash (use it as `baseContentHash` for the next patch).
450
+ */
451
+ export interface SdkPatchPageBlockResponse {
452
+ block: SdkGetPageBlock;
453
+ /** Non-blocking content warnings (e.g. theme-unavailable button variants). */
454
+ warnings?: SdkBlockContentWarning[];
455
+ }
371
456
  export interface SdkPullNavigationItem {
372
457
  id: string;
373
458
  menuId: string;
@@ -387,6 +472,7 @@ export interface SdkPullNavigationMenu {
387
472
  name: string;
388
473
  isPrimary: boolean;
389
474
  isFooter: boolean;
475
+ footerRole: 'main' | 'legal-policy' | null;
390
476
  items: SdkPullNavigationItem[];
391
477
  createdAt: string;
392
478
  updatedAt: string;
@@ -396,6 +482,8 @@ export interface SdkPullNavigationResponse {
396
482
  meta: SdkPullMeta;
397
483
  }
398
484
  export interface SdkPullSettings {
485
+ /** Site title (stored on `sites.title`). Present on pull; writable via PATCH. */
486
+ siteTitle?: string;
399
487
  homepageId: string | null;
400
488
  seoDefaults: {
401
489
  title?: string;
@@ -463,6 +551,223 @@ export interface SdkPullThemeResponse {
463
551
  selectionVersion: number;
464
552
  meta: SdkPullThemeMeta;
465
553
  }
554
+ /** One curated-style recommendation choice; the catalog lists them in preference order. */
555
+ export interface SdkCatalogChoice {
556
+ id: string;
557
+ note?: string;
558
+ }
559
+ export interface SdkCatalogHeaderLayoutStyleChoice {
560
+ layoutId: string;
561
+ styleId: string;
562
+ }
563
+ export interface SdkCatalogSiteStyle {
564
+ id: string;
565
+ name: string;
566
+ description: string;
567
+ /** Button personality recommendations in preference order (first = default). */
568
+ buttonPersonalityChoices: SdkCatalogChoice[];
569
+ defaultButtonPersonalityId: string;
570
+ /** Curated palette recommendations (value-keys) in preference order (first = default). */
571
+ paletteRecommendations: SdkCatalogChoice[];
572
+ defaultPaletteValueKey: string;
573
+ /**
574
+ * Concrete typography the style applies. NOTE: current theme-core carries a resolved
575
+ * `typography` object per style, not a preset-choice list (see deviation notes).
576
+ */
577
+ typography: Theme['typography'];
578
+ /** Canonical header layout+style pair (replaces the older single `defaultHeaderSelection` look id). */
579
+ defaultHeaderSelection: SdkCatalogHeaderLayoutStyleChoice;
580
+ recommendedHeaderLookIds: string[];
581
+ recommendedFooterLookIds: string[];
582
+ }
583
+ export interface SdkCatalogButtonPersonality {
584
+ id: string;
585
+ name: string;
586
+ description: string;
587
+ /** Enabled variant ids this personality provides. */
588
+ variantIds: string[];
589
+ }
590
+ export interface SdkCatalogPalette {
591
+ /** Human-readable source alias. */
592
+ authoringKey: string;
593
+ /** Canonical persistence/runtime identity (colors+mode hash). */
594
+ valueKey: string;
595
+ name: string;
596
+ description: string;
597
+ mode: string;
598
+ }
599
+ export interface SdkCatalogTypographyPreset {
600
+ /** Recipe id: `serif-editorial` | `clean-sans` | `classic-serif` | `friendly-sans`. */
601
+ id: string;
602
+ /** Concrete typography this preset resolves to. */
603
+ typography: Theme['typography'];
604
+ }
605
+ /**
606
+ * The site's current resolved selection, so one catalog read primes an apply.
607
+ * Carries everything the apply endpoint requires — including `siteStyleId`
608
+ * (read from the active compiled theme). This is the single wire shape;
609
+ * services map to it explicitly (no structural pass-through of domain rows).
610
+ */
611
+ export interface SdkCatalogCurrentSelection {
612
+ /** Pass as `baseSelectionVersion` on apply; 0 when no selection exists. */
613
+ selectionVersion: number;
614
+ /** The curated site style the active theme was compiled from (null when unknown). */
615
+ siteStyleId: string | null;
616
+ buttonPersonalityId: string | null;
617
+ paletteValueKey: string | null;
618
+ headerLayoutId: string | null;
619
+ headerStyleId: string | null;
620
+ headerLookId: string | null;
621
+ footerLookId: string | null;
622
+ typographyPresetId: string | null;
623
+ }
624
+ export interface SdkCatalogThemeResponse {
625
+ siteStyles: SdkCatalogSiteStyle[];
626
+ buttonPersonalities: SdkCatalogButtonPersonality[];
627
+ palettes: SdkCatalogPalette[];
628
+ typographyPresets: SdkCatalogTypographyPreset[];
629
+ headerLookIds: string[];
630
+ footerLookIds: string[];
631
+ headerLayoutIds: string[];
632
+ headerStyleIds: string[];
633
+ currentSelection: SdkCatalogCurrentSelection;
634
+ meta: SdkPullMeta;
635
+ }
636
+ /**
637
+ * Content-source classification, derived DIRECTLY from the blocks package's
638
+ * authoring type (`BlockContentSource` / `blockContentSourceKinds`) so the wire
639
+ * union can never drift from what block definitions declare.
640
+ */
641
+ export type SdkCatalogContentSourceKind = BlockContentSourceKind;
642
+ export type SdkCatalogContentSource = BlockContentSource;
643
+ export interface SdkCatalogSelectOption {
644
+ value: string;
645
+ label: string;
646
+ }
647
+ export interface SdkCatalogField {
648
+ id: string;
649
+ type: string;
650
+ label?: string;
651
+ required: boolean;
652
+ /** Present for `select` fields. */
653
+ options?: SdkCatalogSelectOption[];
654
+ /** Present for container fields (group/repeater/tabGroup/modal). */
655
+ fields?: SdkCatalogField[];
656
+ }
657
+ /** Machine-readable reason a manifest variant option is not currently renderable. */
658
+ export type SdkCatalogVariantUnavailableReason = 'not-implemented-by-personality';
659
+ /** Where a resolved variant value originates. */
660
+ export type SdkCatalogVariantSource = 'manifest' | 'theme' | 'both';
661
+ /**
662
+ * One button-variant option, discriminated on `availability`:
663
+ * - `available` — the active theme implements it (never carries a reason).
664
+ * - `unavailable` — a manifest option the active theme does NOT implement;
665
+ * always carries a machine-readable `reason`. Writes accept it
666
+ * with a warning.
667
+ * - `unknown` — the site has no active theme/button system, so availability
668
+ * cannot be determined; only manifest options appear.
669
+ */
670
+ export type SdkCatalogVariantOption = Readonly<{
671
+ value: string;
672
+ availability: 'available';
673
+ source: SdkCatalogVariantSource;
674
+ }> | Readonly<{
675
+ value: string;
676
+ availability: 'unavailable';
677
+ source: 'manifest';
678
+ reason: SdkCatalogVariantUnavailableReason;
679
+ }> | Readonly<{
680
+ value: string;
681
+ availability: 'unknown';
682
+ source: 'manifest';
683
+ }>;
684
+ export interface SdkCatalogVariantAvailability {
685
+ /** Structural field-id path of the button-variant field (e.g. `ctas.variant`). */
686
+ fieldPath: string;
687
+ variants: SdkCatalogVariantOption[];
688
+ }
689
+ export interface SdkCatalogBlock {
690
+ identifier: string;
691
+ title: string;
692
+ category?: string;
693
+ contentSource: SdkCatalogContentSource;
694
+ fields: SdkCatalogField[];
695
+ /** Button-variant availability against the active theme (shared resolver). */
696
+ variantAvailability: SdkCatalogVariantAvailability[];
697
+ }
698
+ /**
699
+ * The active-theme context the blocks catalog was computed against. `selectionVersion`
700
+ * doubles as an optional write precondition: pass it as `baseSelectionVersion` on block
701
+ * upsert/PATCH to fail loudly (409, tag `STALE_CATALOG`) if the theme changed since
702
+ * the catalog was read — a catalog-advertised theme-only variant may otherwise be
703
+ * rejected after a mid-air theme change.
704
+ */
705
+ export type SdkCatalogActiveTheme = Readonly<{
706
+ state: 'active';
707
+ selectionVersion: number;
708
+ }> | Readonly<{
709
+ state: 'none';
710
+ }>;
711
+ export interface SdkCatalogBlocksResponse {
712
+ blocks: SdkCatalogBlock[];
713
+ /** Theme context the variant availability was computed against. */
714
+ activeTheme: SdkCatalogActiveTheme;
715
+ meta: SdkPullMeta;
716
+ }
717
+ export interface SdkCatalogContentType {
718
+ key: string;
719
+ name: string;
720
+ hasPages: boolean;
721
+ routePattern: string | null;
722
+ isSingleton: boolean;
723
+ /** Normalized stored field DSL (NOT generated JSON Schema). */
724
+ schema: ContentTypeSchema;
725
+ }
726
+ export interface SdkCatalogContentTypesResponse {
727
+ contentTypes: SdkCatalogContentType[];
728
+ meta: SdkPullMeta;
729
+ }
730
+ export interface SdkCapabilityCatalogLink {
731
+ /** Relative path under `/api/sdk/{siteId}`. */
732
+ path: string;
733
+ /** Stable content hash of the catalog body, for caching + drift detection. */
734
+ contentHash: string;
735
+ }
736
+ export interface SdkCapabilitiesResponse {
737
+ apiVersion: string;
738
+ catalogs: {
739
+ theme: SdkCapabilityCatalogLink;
740
+ blocks: SdkCapabilityCatalogLink;
741
+ contentTypes: SdkCapabilityCatalogLink;
742
+ };
743
+ meta: SdkPullMeta;
744
+ }
745
+ /** One provenance ledger row: a resource a demo recipe run created/linked on this site. */
746
+ export interface SdkDemoSeedProvenanceEntry {
747
+ id: string;
748
+ /** The recipe run that created/linked the resource. */
749
+ runId: string;
750
+ /** The command ref within the run (e.g. `content:testimonial-ava`). */
751
+ commandKey: string;
752
+ /** The command type (e.g. `upsertContentEntry`). */
753
+ commandType: string;
754
+ /** Closed resource kind (e.g. `content`, `customer`, `page`, `staff`). */
755
+ resourceKind: string;
756
+ /** The recipe resource ref (e.g. `content:testimonial-ava`). */
757
+ resourceRef: string;
758
+ /** The concrete resource id. */
759
+ resourceId: string;
760
+ /**
761
+ * `created` — the run authored this resource (a cleanup candidate);
762
+ * `existing` — the run only linked/configured a pre-existing resource.
763
+ */
764
+ disposition: 'created' | 'existing';
765
+ createdAt: string;
766
+ }
767
+ export interface SdkDemoContentResponse {
768
+ items: SdkDemoSeedProvenanceEntry[];
769
+ meta: SdkPullMeta;
770
+ }
466
771
  export interface SdkPullFooterMeta extends SdkPullMeta {
467
772
  updatedAt: string | null;
468
773
  }
@@ -763,6 +1068,8 @@ export interface SdkPullDraftsResponse {
763
1068
  }
764
1069
  export interface SdkUpsertBlockResponse {
765
1070
  block: SdkManagementBlock;
1071
+ /** Non-blocking content warnings (e.g. theme-unavailable button variants). */
1072
+ warnings?: SdkBlockContentWarning[];
766
1073
  }
767
1074
  export interface SdkDeleteResponse {
768
1075
  deleted: true;
@@ -882,6 +1189,7 @@ export interface SdkUpsertNavigationMenuResponse {
882
1189
  name: string;
883
1190
  isPrimary: boolean;
884
1191
  isFooter: boolean;
1192
+ footerRole: 'main' | 'legal-policy' | null;
885
1193
  items: SdkPullNavigationItem[];
886
1194
  createdAt: string;
887
1195
  updatedAt: string;
@@ -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
- page: "page";
93
92
  content: "content";
93
+ page: "page";
94
94
  }>;
95
95
  href: z.ZodString;
96
96
  title: z.ZodString;
@@ -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
- page: "page";
159
158
  content: "content";
159
+ page: "page";
160
160
  }>;
161
161
  href: z.ZodString;
162
162
  title: z.ZodString;
@@ -250,11 +250,16 @@ export type CreateSitePreviewKeyResponse = {
250
250
  keyId: string;
251
251
  message: string;
252
252
  };
253
+ /** Access mode for a management API key: read-only or full write access. */
254
+ export type ManagementKeyAccessMode = 'read' | 'write';
253
255
  export type ManagementKeyRecord = {
254
256
  id: string;
255
257
  name: string | null;
256
258
  keyPrefix: string;
257
259
  keyHint: string | null;
260
+ accessMode: ManagementKeyAccessMode;
261
+ /** ISO timestamp when the key expires, or null if it never expires. */
262
+ expiresAt: string | null;
258
263
  createdAt: string;
259
264
  lastUsedAt: string | null;
260
265
  };
@@ -263,10 +268,18 @@ export type ListManagementKeysResponse = {
263
268
  };
264
269
  export type CreateManagementKeyRequest = {
265
270
  name?: string;
271
+ /** Defaults to 'write' when omitted (preserves prior all-access behavior). */
272
+ accessMode?: ManagementKeyAccessMode;
273
+ /** Optional ISO timestamp; must be in the future. Null/omitted = never expires. */
274
+ expiresAt?: string | null;
266
275
  };
267
276
  export type CreateManagementKeyResponse = {
268
277
  key: string;
269
278
  keyId: string;
279
+ /** Normalized access mode the key was issued with. */
280
+ accessMode: ManagementKeyAccessMode;
281
+ /** Normalized expiry (ISO) or null when the key never expires. */
282
+ expiresAt: string | null;
270
283
  message: string;
271
284
  };
272
285
  export type RevokeManagementKeyRequest = {