@riverbankcms/sdk 0.129.0 → 0.130.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 (441) hide show
  1. package/README.md +51 -266
  2. package/dist/{PreviewEditorSidebar-B43CJ0g_.mjs → PreviewEditorSidebar-DiEpbOdw.mjs} +313 -239
  3. package/dist/{PreviewEditorUI-DHirVkeM.mjs → PreviewEditorUI-C6MvxnIa.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-B1kbhaJD.mjs → PreviewQueryProvider-C2rnoPz6.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-BJumZy1B.mjs → SdkPreviewModeRuntime-DRXA_m5L.mjs} +208 -211
  6. package/dist/{SiteChromeCustomizeContext-D9SlpwEj.mjs → SiteChromeCustomizeContext-BTHdv5_-.mjs} +6222 -6190
  7. package/dist/_dts/ai/src/contracts/commandExposure.d.ts +1 -1
  8. package/dist/_dts/ai/src/contracts/proposalPrimitives.d.ts +52 -0
  9. package/dist/_dts/ai/src/contracts/proposals.d.ts +9438 -33588
  10. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +32572 -0
  11. package/dist/_dts/api/src/appointmentSetup.d.ts +21 -9
  12. package/dist/_dts/api/src/bookingConfig.d.ts +4 -46
  13. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +13 -11
  14. package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
  15. package/dist/_dts/api/src/contentRuntime.d.ts +3 -5
  16. package/dist/_dts/api/src/endpoints.d.ts +14 -21
  17. package/dist/_dts/api/src/eventManagementContracts.d.ts +76 -0
  18. package/dist/_dts/api/src/index.d.ts +5 -3
  19. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +22 -47
  20. package/dist/_dts/api/src/sdk-event-management.d.ts +53 -0
  21. package/dist/_dts/api/src/sdk-event-schedule.d.ts +8 -6
  22. package/dist/_dts/api/src/sdk-event-upsert.d.ts +112 -20
  23. package/dist/_dts/api/src/sdkContracts.d.ts +74 -115
  24. package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +35 -0
  25. package/dist/_dts/api/src/sdkThemeWire.d.ts +4517 -0
  26. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +18 -29
  27. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +23 -37
  28. package/dist/_dts/blocks/src/contracts/index.d.ts +2 -0
  29. package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +6 -8
  30. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +36 -14
  31. package/dist/_dts/blocks/src/index.d.ts +5 -3
  32. package/dist/_dts/blocks/src/lib/media.d.ts +9 -539
  33. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -2
  34. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +135 -90
  35. package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
  36. package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +37 -4
  37. package/dist/_dts/blocks/src/system/blocks/site-footer-nav-groups-layout.d.ts +1 -1
  38. package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +3 -0
  39. package/dist/_dts/blocks/src/system/componentFactory.d.ts +5 -5
  40. package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +8 -6
  41. package/dist/_dts/blocks/src/system/customize/serializeBackgroundOverride.d.ts +3 -0
  42. package/dist/_dts/blocks/src/system/fields/background.d.ts +2 -20
  43. package/dist/_dts/blocks/src/system/fields/backgroundContent.d.ts +17 -0
  44. package/dist/_dts/blocks/src/system/fields/backgroundContentAudit.d.ts +20 -0
  45. package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +5 -33
  46. package/dist/_dts/blocks/src/system/fragments/builder.d.ts +1 -0
  47. package/dist/_dts/blocks/src/system/fragments/types.d.ts +1 -0
  48. package/dist/_dts/blocks/src/system/helpers/index.d.ts +1 -1
  49. package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +10 -45
  50. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +7 -4
  51. package/dist/_dts/blocks/src/system/manifest/fieldValidation/writeCanonicalization.d.ts +4 -0
  52. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +123 -55
  53. package/dist/_dts/blocks/src/system/registry.d.ts +2 -0
  54. package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +2 -37
  55. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +61 -24
  56. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +30 -12
  57. package/dist/_dts/blocks/src/system/runtime/header/enhanceHeaderSection.d.ts +3 -5
  58. package/dist/_dts/blocks/src/system/runtime/header/headerScrollRuntime.d.ts +2 -0
  59. package/dist/_dts/blocks/src/system/runtime/header/runtimeContract.d.ts +22 -0
  60. package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
  61. package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/view.d.ts +3 -0
  62. package/dist/_dts/blocks/src/system/runtime/nodes/header-section.client.d.ts +2 -0
  63. package/dist/_dts/blocks/src/system/runtime/nodes/header-section.frame.d.ts +21 -0
  64. package/dist/_dts/blocks/src/system/runtime/nodes/header-section.server.d.ts +2 -0
  65. package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -12
  66. package/dist/_dts/blocks/src/system/runtime/nodes/shop.pass-contract.d.ts +3 -0
  67. package/dist/_dts/blocks/src/system/runtime/nodes/shop.state.d.ts +3 -3
  68. package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -1
  69. package/dist/_dts/blocks/src/system/transforms/registry/background.d.ts +1 -1
  70. package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +3 -1
  71. package/dist/_dts/blocks/src/system/transforms/registry/core.d.ts +4 -1
  72. package/dist/_dts/blocks/src/system/transforms/registry/headerRuntime.d.ts +3 -0
  73. package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
  74. package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +0 -3
  75. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +41 -43
  76. package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +4 -2
  77. package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +2 -17
  78. package/dist/_dts/content-editor/src/FooterNavigationLayoutControl.d.ts +5 -0
  79. package/dist/_dts/content-editor/src/footerComposer.d.ts +2 -1
  80. package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +21 -0
  81. package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +2 -1
  82. package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +11 -1
  83. package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +26 -0
  84. package/dist/_dts/content-model/src/templates/defaults.d.ts +7 -0
  85. package/dist/_dts/core/src/booking-date-time.d.ts +2 -2
  86. package/dist/_dts/core/src/booking-time-zone.d.ts +6 -0
  87. package/dist/_dts/core/src/footer-composition-types.d.ts +4 -4
  88. package/dist/_dts/core/src/footer-navigation-layout.d.ts +4 -0
  89. package/dist/_dts/core/src/index.d.ts +1 -0
  90. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +38 -18
  91. package/dist/_dts/media-core/src/index.d.ts +1 -0
  92. package/dist/_dts/preview-next/src/client/preview/FooterSidebarDisclosure.d.ts +8 -0
  93. package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +5 -5
  94. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +15 -17
  95. package/dist/_dts/preview-next/src/client/preview/PreviewFooterEditorPanel.d.ts +20 -0
  96. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -5
  97. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -5
  98. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +4 -4
  99. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -5
  100. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +6 -7
  101. package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +7 -7
  102. package/dist/_dts/preview-next/src/client/preview/siteChromeCustomizeTypes.d.ts +4 -4
  103. package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -2
  104. package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +12 -11
  105. package/dist/_dts/preview-next/src/client/preview/siteChromeSelectionRows.d.ts +53 -0
  106. package/dist/_dts/preview-next/src/client/preview/siteStyleAccess.d.ts +1 -6
  107. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +6 -15
  108. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +4 -6
  109. package/dist/_dts/sdk/src/config/types.d.ts +5 -4
  110. package/dist/_dts/sdk/src/config/validation.d.ts +2 -0
  111. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -41
  112. package/dist/_dts/sdk/src/next/catch-all-theme-admission.d.ts +23 -0
  113. package/dist/_dts/sdk/src/next/index.d.ts +8 -6
  114. package/dist/_dts/sdk/src/next/resolveTheme.d.ts +1 -2
  115. package/dist/_dts/sdk/src/next/types.d.ts +10 -0
  116. package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -16
  117. package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +3 -2
  118. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +5 -3
  119. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +1 -1
  120. package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +4 -2
  121. package/dist/_dts/sdk/src/rendering/index.d.ts +2 -0
  122. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -1
  123. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -0
  124. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +11 -0
  125. package/dist/_dts/sdk/src/version.d.ts +1 -1
  126. package/dist/_dts/theme-core/src/blockOverrides.d.ts +1 -1
  127. package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +184 -0
  128. package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +96 -0
  129. package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +78 -0
  130. package/dist/_dts/theme-core/src/buttons/index.d.ts +2 -0
  131. package/dist/_dts/theme-core/src/buttons/parseThemeForPersistence.d.ts +2 -2
  132. package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +9 -57
  133. package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +6 -3
  134. package/dist/_dts/theme-core/src/buttons/styles/domain.d.ts +8 -7
  135. package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +1 -0
  136. package/dist/_dts/theme-core/src/buttons/styles/recipes/staticRecipes.d.ts +11 -0
  137. package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +12 -0
  138. package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +5 -0
  139. package/dist/_dts/theme-core/src/buttons/types.d.ts +51 -4
  140. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  141. package/dist/_dts/theme-core/src/lib/media.d.ts +583 -10
  142. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +5117 -1433
  143. package/dist/_dts/theme-core/src/palette/index.d.ts +1 -0
  144. package/dist/_dts/theme-core/src/schema.d.ts +5079 -2005
  145. package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +6 -14
  146. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +29 -102
  147. package/dist/_dts/theme-core/src/site-styles/customizableSurfaces.d.ts +3 -76
  148. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +4 -4
  149. package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -7
  150. package/dist/_dts/theme-core/src/site-styles/generatedDesignPipelineHelpers.d.ts +17 -0
  151. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
  152. package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +281 -0
  153. package/dist/_dts/theme-core/src/site-styles/headerLayoutResolution.d.ts +13 -0
  154. package/dist/_dts/theme-core/src/site-styles/headerLayoutStyles.d.ts +6 -0
  155. package/dist/_dts/theme-core/src/site-styles/headerLayoutTypes.d.ts +142 -0
  156. package/dist/_dts/theme-core/src/site-styles/headerNavStyles.d.ts +6 -0
  157. package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +7 -4
  158. package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +2 -2
  159. package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +3 -0
  160. package/dist/_dts/theme-core/src/site-styles/imageSurfaceBackground.d.ts +14 -0
  161. package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -1
  162. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +14 -41
  163. package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +23 -0
  164. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +8 -6
  165. package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +1 -1
  166. package/dist/client/{CourseRegistrationWizard-xRmA7REV.mjs → CourseRegistrationWizard-Bvtz9G9g.mjs} +5 -5
  167. package/dist/client/{DiscountCodeDisclosure-B9vriL5C.mjs → DiscountCodeDisclosure-Ur-Xx1U_.mjs} +1 -1
  168. package/dist/client/{EventCombined.client-BgVnVTlz.mjs → EventCombined.client-EhscD4U6.mjs} +2 -2
  169. package/dist/client/{EventListing.client-CqdsO7jO.mjs → EventListing.client-Bn26cFTY.mjs} +2 -2
  170. package/dist/client/{LeafletStaticMap-CKPxot9M.mjs → LeafletStaticMap-BUw9Ntzr.mjs} +1 -1
  171. package/dist/client/{StepIndicator-DGCYuBJ1.mjs → StepIndicator-BfbdiVQI.mjs} +2 -2
  172. package/dist/client/{accordion-BfN5Eqd-.mjs → accordion-CjIeof73.mjs} +1 -1
  173. package/dist/client/{bookingForm-DOvCpBFP.mjs → bookingForm-DwEeovf_.mjs} +5 -5
  174. package/dist/client/bookings.mjs +1028 -1038
  175. package/dist/client/{carousel-DPNmiH0f.mjs → carousel-BMrfgOba.mjs} +1 -1
  176. package/dist/client/{cart--egVXlrR.mjs → cart-rXEdxTdb.mjs} +3 -3
  177. package/dist/client/{checkout-DywWtMcq.mjs → checkout-D3JlSzh3.mjs} +3 -3
  178. package/dist/client/client.mjs +18324 -18224
  179. package/dist/client/{courseRegistration-Dk9qFVwt.mjs → courseRegistration-DO5XvMAA.mjs} +2 -2
  180. package/dist/client/{eventCalendar-Bkz2HjlS.mjs → eventCalendar-DO6rTqCn.mjs} +4 -4
  181. package/dist/client/{eventCombined-D4kipYWg.mjs → eventCombined-bJ3i_ovU.mjs} +2 -2
  182. package/dist/client/{eventDetails-Dz_5ix2Q.mjs → eventDetails-CCbrXE7o.mjs} +3 -3
  183. package/dist/client/{eventListing-D0vm-zST.mjs → eventListing-Bdlt9YTm.mjs} +2 -2
  184. package/dist/client/{eventRegistration-Cw1E4Q4p.mjs → eventRegistration-B02lt6iY.mjs} +6 -6
  185. package/dist/client/{form-C2Zf1n3K.mjs → form-DrUBAAox.mjs} +1 -1
  186. package/dist/client/{headerSection-CP05gzdc.mjs → headerSection-MzqvHL6T.mjs} +151 -104
  187. package/dist/client/hooks.mjs +4550 -4211
  188. package/dist/client/{locationMap-Cl3x9PYJ.mjs → locationMap-DG8BxTBm.mjs} +2 -2
  189. package/dist/client/{newsletterForm-DyEJoClm.mjs → newsletterForm-BzO-Td3p.mjs} +1 -1
  190. package/dist/client/{pricing-DGuNR1W4.mjs → pricing-NgK7ozkg.mjs} +1 -1
  191. package/dist/client/{productDetail-Cq-HrGew.mjs → productDetail-CfQ7rhVK.mjs} +3 -3
  192. package/dist/client/{productList-DbB3jwqd.mjs → productList-C23rOLUi.mjs} +3 -3
  193. package/dist/client/{propsDecoder-CiTuhUwY.mjs → propsDecoder-CAZdhwjs.mjs} +2166 -2157
  194. package/dist/client/rendering/client.mjs +3606 -4078
  195. package/dist/client/rendering/islands.mjs +18 -18
  196. package/dist/client/rendering.mjs +15969 -15843
  197. package/dist/client/{scrollToBlock-CShkRqab.mjs → scrollToBlock-DSSqVQr1.mjs} +1 -1
  198. package/dist/client/{shop-Cu4Ib-ZA.mjs → shop-BMToKLK7.mjs} +34 -23
  199. package/dist/client/{shop-commerce-BzpsOdh7.mjs → shop-commerce-DB4JRKmp.mjs} +4 -4
  200. package/dist/client/{shop-commerce-store-DaE7Fhj8.mjs → shop-commerce-store-BOqSIOuc.mjs} +1 -1
  201. package/dist/client/{shopShared-cF0c20vB.mjs → shopShared-B6SK9DZv.mjs} +9 -3
  202. package/dist/client/{useEventFilters-QZ3HMgaJ.mjs → useEventFilters-CULOa4nB.mjs} +2 -2
  203. package/dist/client/{usePolling-BKf0GcE-.mjs → usePolling-BGG_8-jl.mjs} +2 -2
  204. package/dist/preview-next/before-render.mjs +16 -27
  205. package/dist/preview-next/client/runtime.mjs +4 -4
  206. package/dist/preview-next/middleware.mjs +16 -27
  207. package/dist/{previewAuthStore-BesgU5Xu.mjs → previewAuthStore-_GXFRg2W.mjs} +16 -27
  208. package/dist/{sdk-runtime-CfZd5pAm.mjs → sdk-runtime-hhSOMShR.mjs} +2 -2
  209. package/dist/{separator-DkTe68HE.mjs → separator-flRaFc14.mjs} +1 -1
  210. package/dist/server/components.mjs +17802 -17875
  211. package/dist/server/config-validation.mjs +4729 -4416
  212. package/dist/server/config.mjs +4733 -4420
  213. package/dist/server/data.mjs +4533 -4211
  214. package/dist/server/date-time.mjs +22 -13
  215. package/dist/server/index.mjs +17 -28
  216. package/dist/server/manifest.mjs +4966 -0
  217. package/dist/server/next.mjs +17635 -17676
  218. package/dist/server/page-converter.mjs +3759 -4386
  219. package/dist/server/prebuild.mjs +1 -1
  220. package/dist/server/rendering/server.mjs +18960 -19049
  221. package/dist/server/rendering.mjs +17848 -17902
  222. package/dist/server/routing.mjs +4776 -4323
  223. package/dist/server/server.mjs +4609 -4264
  224. package/dist/server/theme-bridge.mjs +1361 -1850
  225. package/dist/server/theme.mjs +736 -605
  226. package/dist/styles/index.css +22 -3
  227. package/package.json +9 -12
  228. package/dist/_dts/api/src/event-presentation.d.ts +0 -14
  229. package/dist/_dts/blocks/src/definitions.d.ts +0 -14
  230. package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +0 -66
  231. package/dist/_dts/sdk/src/cli/canonical-entry-policy.d.ts +0 -53
  232. package/dist/_dts/sdk/src/cli/commands/audit.d.ts +0 -101
  233. package/dist/_dts/sdk/src/cli/commands/block.d.ts +0 -24
  234. package/dist/_dts/sdk/src/cli/commands/compare.d.ts +0 -62
  235. package/dist/_dts/sdk/src/cli/commands/content-type.d.ts +0 -10
  236. package/dist/_dts/sdk/src/cli/commands/content.d.ts +0 -56
  237. package/dist/_dts/sdk/src/cli/commands/delete.d.ts +0 -14
  238. package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +0 -43
  239. package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +0 -18
  240. package/dist/_dts/sdk/src/cli/commands/entry.d.ts +0 -55
  241. package/dist/_dts/sdk/src/cli/commands/env.d.ts +0 -31
  242. package/dist/_dts/sdk/src/cli/commands/event.d.ts +0 -23
  243. package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +0 -12
  244. package/dist/_dts/sdk/src/cli/commands/identifiers.d.ts +0 -10
  245. package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +0 -13
  246. package/dist/_dts/sdk/src/cli/commands/manifest.d.ts +0 -10
  247. package/dist/_dts/sdk/src/cli/commands/media-validation.d.ts +0 -3
  248. package/dist/_dts/sdk/src/cli/commands/migrate.d.ts +0 -11
  249. package/dist/_dts/sdk/src/cli/commands/navigation.d.ts +0 -12
  250. package/dist/_dts/sdk/src/cli/commands/page.d.ts +0 -14
  251. package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +0 -50
  252. package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +0 -10
  253. package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +0 -70
  254. package/dist/_dts/sdk/src/cli/commands/pull-scope-diff.d.ts +0 -8
  255. package/dist/_dts/sdk/src/cli/commands/pull.d.ts +0 -43
  256. package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +0 -3
  257. package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +0 -19
  258. package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +0 -42
  259. package/dist/_dts/sdk/src/cli/commands/push/execute/localMediaReporting.d.ts +0 -23
  260. package/dist/_dts/sdk/src/cli/commands/push/execute/media.d.ts +0 -22
  261. package/dist/_dts/sdk/src/cli/commands/push/execute/metadata.d.ts +0 -1
  262. package/dist/_dts/sdk/src/cli/commands/push/execute/reporting.d.ts +0 -7
  263. package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +0 -63
  264. package/dist/_dts/sdk/src/cli/commands/push/filter.d.ts +0 -15
  265. package/dist/_dts/sdk/src/cli/commands/push/metadata.d.ts +0 -29
  266. package/dist/_dts/sdk/src/cli/commands/push/normalizeLocalContent.d.ts +0 -2
  267. package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +0 -32
  268. package/dist/_dts/sdk/src/cli/commands/push/publishGuidance.d.ts +0 -15
  269. package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -25
  270. package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +0 -83
  271. package/dist/_dts/sdk/src/cli/commands/push/scopes/eventCategories.d.ts +0 -4
  272. package/dist/_dts/sdk/src/cli/commands/push/scopes/events.d.ts +0 -4
  273. package/dist/_dts/sdk/src/cli/commands/push/scopes/mediaPrep.d.ts +0 -14
  274. package/dist/_dts/sdk/src/cli/commands/push/scopes/pushScopeGeneric.d.ts +0 -6
  275. package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +0 -87
  276. package/dist/_dts/sdk/src/cli/commands/push/scopes/venues.d.ts +0 -4
  277. package/dist/_dts/sdk/src/cli/commands/push/stale-resolution.d.ts +0 -48
  278. package/dist/_dts/sdk/src/cli/commands/push/stale.d.ts +0 -17
  279. package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +0 -56
  280. package/dist/_dts/sdk/src/cli/commands/push/workflowPlan.d.ts +0 -34
  281. package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +0 -54
  282. package/dist/_dts/sdk/src/cli/commands/push.d.ts +0 -40
  283. package/dist/_dts/sdk/src/cli/commands/setup.d.ts +0 -3
  284. package/dist/_dts/sdk/src/cli/commands/style.d.ts +0 -60
  285. package/dist/_dts/sdk/src/cli/commands/verify.d.ts +0 -11
  286. package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +0 -44
  287. package/dist/_dts/sdk/src/cli/config-loader.d.ts +0 -47
  288. package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +0 -23
  289. package/dist/_dts/sdk/src/cli/content/edit/format.d.ts +0 -2
  290. package/dist/_dts/sdk/src/cli/content/edit/path.d.ts +0 -14
  291. package/dist/_dts/sdk/src/cli/content/edit/planner.d.ts +0 -46
  292. package/dist/_dts/sdk/src/cli/content/entryPaths.d.ts +0 -6
  293. package/dist/_dts/sdk/src/cli/content/footerFile.d.ts +0 -10
  294. package/dist/_dts/sdk/src/cli/content/fs-utils.d.ts +0 -39
  295. package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +0 -5
  296. package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +0 -17
  297. package/dist/_dts/sdk/src/cli/content/media-manifest.d.ts +0 -13
  298. package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +0 -25
  299. package/dist/_dts/sdk/src/cli/content/metadataStore.d.ts +0 -29
  300. package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -488
  301. package/dist/_dts/sdk/src/cli/content/writer.d.ts +0 -142
  302. package/dist/_dts/sdk/src/cli/env-scope.d.ts +0 -2
  303. package/dist/_dts/sdk/src/cli/env.d.ts +0 -71
  304. package/dist/_dts/sdk/src/cli/errors.d.ts +0 -62
  305. package/dist/_dts/sdk/src/cli/helpers/ai-runtime.d.ts +0 -2
  306. package/dist/_dts/sdk/src/cli/helpers.d.ts +0 -399
  307. package/dist/_dts/sdk/src/cli/index.d.ts +0 -11
  308. package/dist/_dts/sdk/src/cli/init-docs/constants.d.ts +0 -16
  309. package/dist/_dts/sdk/src/cli/init-docs/index.d.ts +0 -12
  310. package/dist/_dts/sdk/src/cli/init-docs/templates.d.ts +0 -18
  311. package/dist/_dts/sdk/src/cli/init-docs/zod-to-markdown.d.ts +0 -28
  312. package/dist/_dts/sdk/src/cli/load-config.d.ts +0 -14
  313. package/dist/_dts/sdk/src/cli/media/identifiers.d.ts +0 -18
  314. package/dist/_dts/sdk/src/cli/media/local-media.d.ts +0 -14
  315. package/dist/_dts/sdk/src/cli/media/local-sync.d.ts +0 -91
  316. package/dist/_dts/sdk/src/cli/media/portable.d.ts +0 -11
  317. package/dist/_dts/sdk/src/cli/media/rich-text.d.ts +0 -12
  318. package/dist/_dts/sdk/src/cli/media/value-utils.d.ts +0 -15
  319. package/dist/_dts/sdk/src/cli/media/write-guard.d.ts +0 -52
  320. package/dist/_dts/sdk/src/cli/merge-remote/entryLocal.d.ts +0 -3
  321. package/dist/_dts/sdk/src/cli/merge-remote/entryMerge.d.ts +0 -78
  322. package/dist/_dts/sdk/src/cli/merge-remote/entryMergePlan.d.ts +0 -45
  323. package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +0 -24
  324. package/dist/_dts/sdk/src/cli/merge-remote/entryMergeReport.d.ts +0 -18
  325. package/dist/_dts/sdk/src/cli/merge-remote/entryRemote.d.ts +0 -9
  326. package/dist/_dts/sdk/src/cli/merge-remote/entrySnapshots.d.ts +0 -48
  327. package/dist/_dts/sdk/src/cli/merge-remote/mergeFieldChanges.d.ts +0 -22
  328. package/dist/_dts/sdk/src/cli/merge-remote/pageLocal.d.ts +0 -3
  329. package/dist/_dts/sdk/src/cli/merge-remote/pageMerge.d.ts +0 -78
  330. package/dist/_dts/sdk/src/cli/merge-remote/pageMergePlan.d.ts +0 -36
  331. package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +0 -23
  332. package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +0 -17
  333. package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +0 -46
  334. package/dist/_dts/sdk/src/cli/merge-remote/sharedBaseSnapshots.d.ts +0 -32
  335. package/dist/_dts/sdk/src/cli/merge-remote/sharedMergePlan.d.ts +0 -27
  336. package/dist/_dts/sdk/src/cli/merge-remote/sharedMergeReport.d.ts +0 -63
  337. package/dist/_dts/sdk/src/cli/migrations/entries.d.ts +0 -28
  338. package/dist/_dts/sdk/src/cli/migrations/events.d.ts +0 -73
  339. package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +0 -11
  340. package/dist/_dts/sdk/src/cli/output.d.ts +0 -133
  341. package/dist/_dts/sdk/src/cli/program.d.ts +0 -29
  342. package/dist/_dts/sdk/src/cli/push-config.d.ts +0 -49
  343. package/dist/_dts/sdk/src/cli/setup/setupPlan.d.ts +0 -51
  344. package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +0 -13
  345. package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +0 -170
  346. package/dist/_dts/sdk/src/cli/site-commands/commandRuntimeCompat.d.ts +0 -21
  347. package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +0 -32
  348. package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +0 -53
  349. package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +0 -65
  350. package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +0 -24
  351. package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +0 -68
  352. package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +0 -53
  353. package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +0 -8
  354. package/dist/_dts/sdk/src/cli/site-commands/localBlockManifestResolver.d.ts +0 -31
  355. package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +0 -57
  356. package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +0 -82
  357. package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +0 -84
  358. package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +0 -39
  359. package/dist/_dts/sdk/src/cli/site-commands/pushExecutionPlan.d.ts +0 -8
  360. package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +0 -97
  361. package/dist/_dts/sdk/src/cli/site-commands/residualSettingsTrimming.d.ts +0 -15
  362. package/dist/_dts/sdk/src/cli/sync/diff.d.ts +0 -222
  363. package/dist/_dts/sdk/src/cli/sync/executor.d.ts +0 -84
  364. package/dist/_dts/sdk/src/cli/sync/field-diff.d.ts +0 -39
  365. package/dist/_dts/sdk/src/cli/sync/index.d.ts +0 -10
  366. package/dist/_dts/sdk/src/cli/sync/mapper.d.ts +0 -41
  367. package/dist/_dts/sdk/src/cli/sync/media-sync.d.ts +0 -15
  368. package/dist/_dts/sdk/src/cli/sync/media.d.ts +0 -158
  369. package/dist/_dts/sdk/src/cli/sync/syncResultAggregation.d.ts +0 -4
  370. package/dist/_dts/sdk/src/cli/sync/validation.d.ts +0 -68
  371. package/dist/_dts/sdk/src/cli/utils/checksum.d.ts +0 -1
  372. package/dist/_dts/sdk/src/client/management/blocks.d.ts +0 -19
  373. package/dist/_dts/sdk/src/client/management/catalog.d.ts +0 -10
  374. package/dist/_dts/sdk/src/client/management/entries.d.ts +0 -6
  375. package/dist/_dts/sdk/src/client/management/eventCategories.d.ts +0 -6
  376. package/dist/_dts/sdk/src/client/management/events.d.ts +0 -7
  377. package/dist/_dts/sdk/src/client/management/footer.d.ts +0 -9
  378. package/dist/_dts/sdk/src/client/management/forms.d.ts +0 -6
  379. package/dist/_dts/sdk/src/client/management/http.d.ts +0 -79
  380. package/dist/_dts/sdk/src/client/management/identifiers.d.ts +0 -11
  381. package/dist/_dts/sdk/src/client/management/index.d.ts +0 -41
  382. package/dist/_dts/sdk/src/client/management/media.d.ts +0 -72
  383. package/dist/_dts/sdk/src/client/management/navigation.d.ts +0 -6
  384. package/dist/_dts/sdk/src/client/management/pages.d.ts +0 -6
  385. package/dist/_dts/sdk/src/client/management/pull.d.ts +0 -6
  386. package/dist/_dts/sdk/src/client/management/settings-branding.d.ts +0 -32
  387. package/dist/_dts/sdk/src/client/management/settings.d.ts +0 -6
  388. package/dist/_dts/sdk/src/client/management/theme.d.ts +0 -8
  389. package/dist/_dts/sdk/src/client/management/types.d.ts +0 -1069
  390. package/dist/_dts/sdk/src/client/management/venues.d.ts +0 -6
  391. package/dist/_dts/sdk/src/client/management/webhooks.d.ts +0 -3
  392. package/dist/_dts/sdk/src/test/env.d.ts +0 -4
  393. package/dist/_dts/site-commands/src/adapter.d.ts +0 -23
  394. package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +0 -100
  395. package/dist/_dts/site-commands/src/capabilityGaps.d.ts +0 -8
  396. package/dist/_dts/site-commands/src/commandContract.d.ts +0 -1277
  397. package/dist/_dts/site-commands/src/commandDomain.d.ts +0 -20
  398. package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +0 -7
  399. package/dist/_dts/site-commands/src/commandValidation.d.ts +0 -10
  400. package/dist/_dts/site-commands/src/commands.d.ts +0 -1983
  401. package/dist/_dts/site-commands/src/domain.d.ts +0 -104
  402. package/dist/_dts/site-commands/src/eventCommandContent.d.ts +0 -11
  403. package/dist/_dts/site-commands/src/exposure.d.ts +0 -41
  404. package/dist/_dts/site-commands/src/guards.d.ts +0 -1
  405. package/dist/_dts/site-commands/src/index.d.ts +0 -18
  406. package/dist/_dts/site-commands/src/metadata.d.ts +0 -555
  407. package/dist/_dts/site-commands/src/pagePaths.d.ts +0 -6
  408. package/dist/_dts/site-commands/src/planner.d.ts +0 -58
  409. package/dist/_dts/site-commands/src/refContributions.d.ts +0 -11
  410. package/dist/_dts/site-commands/src/refs.d.ts +0 -90
  411. package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +0 -405
  412. package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +0 -46
  413. package/dist/_dts/site-commands/src/stableJson.d.ts +0 -5
  414. package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +0 -10
  415. package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +0 -21
  416. package/dist/_dts/theme-core/src/data.d.ts +0 -12
  417. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +0 -841
  418. package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +0 -4
  419. package/dist/cli/index.mjs +0 -162988
  420. package/dist/cli/init-docs/content/agents-section.md +0 -67
  421. package/dist/cli/init-docs/content/cli-reference.md +0 -1238
  422. package/dist/cli/init-docs/content/content-management.md +0 -792
  423. package/dist/cli/init-docs/content/context-brand.md +0 -125
  424. package/dist/cli/init-docs/content/context-brief.md +0 -77
  425. package/dist/cli/init-docs/content/context-knowledge.md +0 -111
  426. package/dist/cli/init-docs/content/getting-started.md +0 -171
  427. package/dist/cli/init-docs/content/site-workflows-readme.md +0 -96
  428. package/dist/cli/init-docs/content/workflow-add-block.md +0 -299
  429. package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +0 -83
  430. package/dist/cli/init-docs/content/workflow-block-extensions.md +0 -370
  431. package/dist/cli/init-docs/content/workflow-cmsify-page.md +0 -357
  432. package/dist/cli/init-docs/content/workflow-content-types.md +0 -330
  433. package/dist/cli/init-docs/content/workflow-create-page.md +0 -212
  434. package/dist/cli/init-docs/content/workflow-custom-block.md +0 -470
  435. package/dist/cli/init-docs/content/workflow-editor-workflows.md +0 -130
  436. package/dist/cli/init-docs/content/workflow-isr-revalidation.md +0 -158
  437. package/dist/cli/init-docs/content/workflow-preview-mode.md +0 -252
  438. package/dist/cli/init-docs/content/workflow-publish.md +0 -285
  439. package/dist/cli/init-docs/content/workflow-remote-setup.md +0 -51
  440. package/dist/cli/init-docs/content/workflow-templates.md +0 -381
  441. /package/dist/_dts/{sdk/src/cli/utils/mime.d.ts → media-core/src/mimeType.d.ts} +0 -0
@@ -1,1069 +0,0 @@
1
- /**
2
- * Management Client Types
3
- *
4
- * Type definitions for the SDK management client used for write operations.
5
- */
6
- import type { LinkPayload, NavigationLinkInput } from '../../public-api/contracts';
7
- import type { APIEndpoints } from '../../../../api/src/index';
8
- import type { SiteCommandOf } from '../../../../site-commands/src/index';
9
- import type { SdkEventPricing, SdkEventPricingInput, SdkEventTicketTypeInput } from '../../../../api/src/sdk-event-pricing';
10
- import type { SdkEventPaymentTerms, SdkEventPaymentTermsInput } from '../../../../api/src/sdk-event-payment-terms';
11
- import type { SdkEventUpsertBody } from '../../../../api/src/sdk-event-upsert';
12
- import type { SdkAddEventOccurrenceRequest, SdkEventOccurrenceCapacityIntent, SdkEventOccurrenceScheduleInput, SdkManagementEventOccurrence, SdkManagementEventSeries, SdkFooterContent, SdkPullEventSeries } from '../../../../api/src/sdkContracts';
13
- import type { SdkPullTruncationMeta } from '../../../../api/src/sdkContracts';
14
- import type { SdkCapabilitiesResponse, SdkCatalogBlocksResponse, SdkCatalogContentTypesResponse, SdkCatalogThemeResponse, SdkDemoContentResponse } from '../../../../api/src/sdkContracts';
15
- import type { SdkEntryPublishErrorCode, SdkPagePublishErrorCode, SdkPublicationOutcome } from '../../../../api/src/sdkContracts';
16
- import type { ButtonStyleSelection } from '../../../../theme-core/src/buttons/index';
17
- import type { Theme } from '../../contracts';
18
- import type { RichTextDoc } from '../../../../core/src/index';
19
- export type SdkDeletePageResponse = NonNullable<APIEndpoints['sdkDeletePage']['response']>;
20
- export type SdkGetPageBlockResponse = NonNullable<APIEndpoints['sdkGetPageBlock']['response']>;
21
- export type SdkPatchPageBlockBody = NonNullable<APIEndpoints['sdkPatchPageBlock']['body']>;
22
- export type SdkPatchPageBlockResponse = NonNullable<APIEndpoints['sdkPatchPageBlock']['response']>;
23
- export type SdkPullEntriesAllResponse = NonNullable<APIEndpoints['sdkPullEntriesAll']['response']>;
24
- export type SdkUpsertEntryResponse = NonNullable<APIEndpoints['sdkUpsertEntry']['response']>;
25
- export type SdkUpsertPageResponse = NonNullable<APIEndpoints['sdkUpsertPage']['response']>;
26
- export interface ManagementClientConfig {
27
- /**
28
- * Dashboard URL (e.g., http://localhost:4000 or https://dashboard.riverbankcms.com)
29
- */
30
- dashboardUrl: string;
31
- /**
32
- * Management API key (format: bld_mgmt_sk_...)
33
- */
34
- managementApiKey: string;
35
- /**
36
- * Site ID to operate on
37
- */
38
- siteId: string;
39
- /**
40
- * Request timeout in milliseconds
41
- * @default 30000
42
- */
43
- timeout?: number;
44
- }
45
- export interface ManagementEntry {
46
- id: string;
47
- identifier: string;
48
- contentType: string;
49
- /** Slug for URL routing - only present for routable content types */
50
- slug?: string;
51
- title: string;
52
- data: Record<string, unknown>;
53
- publishedData: Record<string, unknown> | null;
54
- status: 'draft' | 'published';
55
- hasUnpublishedChanges: boolean;
56
- createdAt: string;
57
- updatedAt: string;
58
- publishedAt: string | null;
59
- manualOrder: number;
60
- blocks?: EntrySlotBlocks;
61
- }
62
- export interface EntrySlotBlock {
63
- identifier: string | null;
64
- kind: string;
65
- content: Record<string, unknown>;
66
- }
67
- export type EntrySlotBlocks = Record<string, EntrySlotBlock[]>;
68
- export interface EntrySlotBlockInput {
69
- identifier?: string | null;
70
- kind: string;
71
- content: Record<string, unknown>;
72
- }
73
- export type EntrySlotBlocksInput = Record<string, EntrySlotBlockInput[]>;
74
- export interface EntryUpsertInput {
75
- identifier: string;
76
- contentType: string;
77
- data: Record<string, unknown>;
78
- slug?: string;
79
- manualOrder?: number;
80
- blocks?: EntrySlotBlocksInput;
81
- /**
82
- * Publication intent. 'draft' (default) writes a draft only; 'publish' runs
83
- * the publish operation after a successful save. Save and publish are not
84
- * atomic — a publish that fails after a successful save is reported in-band on
85
- * the response, not as an error.
86
- */
87
- publication?: 'draft' | 'publish';
88
- }
89
- /**
90
- * The entry shape upsert responses carry — the wire envelope omits
91
- * `publishedData` (the caller just wrote the draft; fetch with `get` when the
92
- * published side is needed).
93
- */
94
- export type UpsertedManagementEntry = Omit<ManagementEntry, 'publishedData'>;
95
- /**
96
- * Result of an entry upsert with `publication: 'publish'`. The promise resolves
97
- * even when the publish stage failed — the save succeeded and the entry exists
98
- * as a draft; branch on `publication.published`.
99
- */
100
- export interface EntryPublishUpsertResult {
101
- entry: UpsertedManagementEntry;
102
- publication: SdkPublicationOutcome<SdkEntryPublishErrorCode>;
103
- }
104
- export interface ManagementPage {
105
- id: string;
106
- identifier: string | null;
107
- title: string;
108
- path: string;
109
- status: 'draft' | 'published';
110
- hasUnpublishedChanges: boolean;
111
- createdAt: string;
112
- updatedAt: string;
113
- publishedAt: string | null;
114
- }
115
- export interface PageUpsertInput {
116
- identifier: string;
117
- title: string;
118
- path: string;
119
- seoTitle?: string;
120
- seoDescription?: string;
121
- /**
122
- * Publication intent. 'draft' (default) writes a draft only; 'publish' runs
123
- * page publish after a successful save. Save and publish are non-atomic; a
124
- * publish failure after a successful save is reported in-band, not as an error.
125
- */
126
- publication?: 'draft' | 'publish';
127
- }
128
- /**
129
- * Result of a page upsert with `publication: 'publish'`. Resolves even when the
130
- * publish stage failed — the save succeeded; branch on `publication.published`.
131
- */
132
- export interface PagePublishUpsertResult {
133
- page: ManagementPage;
134
- publication: SdkPublicationOutcome<SdkPagePublishErrorCode>;
135
- }
136
- export interface ManagementBlock {
137
- id: string;
138
- identifier: string | null;
139
- kind: string;
140
- position: number;
141
- data: Record<string, unknown>;
142
- createdAt: string;
143
- updatedAt: string;
144
- }
145
- export interface BlockUpsertInput {
146
- identifier: string;
147
- kind: string;
148
- data: Record<string, unknown>;
149
- position?: number;
150
- }
151
- export interface ManagementNavigationMenu {
152
- id: string;
153
- identifier: string | null;
154
- name: string;
155
- isPrimary: boolean;
156
- isFooter: boolean;
157
- footerRole: 'main' | 'legal-policy' | null;
158
- items: ManagementNavigationItem[];
159
- createdAt: string;
160
- updatedAt: string;
161
- }
162
- export interface ManagementNavigationItem {
163
- id: string;
164
- label: string;
165
- link: LinkPayload | null;
166
- /** Whether this item should render as a CTA-style navigation action. */
167
- isCta?: boolean;
168
- position: number;
169
- children?: ManagementNavigationItem[];
170
- /** Resolved identifier for internal links (populated on pull) */
171
- resolvedIdentifier?: string | null;
172
- /** Resolved content type key for entry links (populated on pull) */
173
- resolvedContentType?: string | null;
174
- }
175
- export interface PulledNavigationItem {
176
- id: string;
177
- menuId: string;
178
- label: string;
179
- link: LinkPayload | null;
180
- /** Whether this item should render as a CTA-style navigation action. */
181
- isCta?: boolean;
182
- position: number;
183
- parentId: string | null;
184
- children?: PulledNavigationItem[];
185
- /** Resolved identifier for internal links (populated on pull) */
186
- resolvedIdentifier?: string | null;
187
- /** Resolved content type key for entry links (populated on pull) */
188
- resolvedContentType?: string | null;
189
- }
190
- export interface PulledNavigationMenu {
191
- id: string;
192
- siteId: string;
193
- identifier: string | null;
194
- name: string;
195
- isPrimary: boolean;
196
- isFooter: boolean;
197
- footerRole: 'main' | 'legal-policy' | null;
198
- items: PulledNavigationItem[];
199
- createdAt: string;
200
- updatedAt: string;
201
- }
202
- export interface NavigationMenuUpsertInput {
203
- identifier?: string;
204
- name: string;
205
- isPrimary?: boolean;
206
- isFooter?: boolean;
207
- footerRole?: 'main' | 'legal-policy' | null;
208
- items: NavigationItemInput[];
209
- }
210
- export interface NavigationItemInput {
211
- label: string;
212
- /** Link configuration. Required for non-dropdown items. */
213
- link?: NavigationLinkInput;
214
- /** Whether this item should render as a CTA-style navigation action. */
215
- isCta?: boolean;
216
- children?: NavigationItemInput[];
217
- }
218
- export interface ManagementSettings {
219
- homepageId: string | null;
220
- seoDefaults: {
221
- title?: string;
222
- description?: string;
223
- ogImage?: string;
224
- allowIndexingInProduction?: boolean;
225
- } | null;
226
- logoIdentifier?: string | null;
227
- faviconIdentifier?: string | null;
228
- }
229
- export interface SettingsUpdateInput {
230
- homepageId?: string | null;
231
- seoDefaults?: {
232
- title?: string;
233
- description?: string;
234
- ogImage?: string;
235
- allowIndexingInProduction?: boolean;
236
- } | null;
237
- logoIdentifier?: string | null;
238
- faviconIdentifier?: string | null;
239
- }
240
- export interface ManagementWebhookEndpoint {
241
- id: string;
242
- name: string;
243
- url: string;
244
- events: string[];
245
- enabled: boolean;
246
- hasSecret: boolean;
247
- createdAt: string;
248
- updatedAt: string;
249
- siteId: string;
250
- failureCount: number;
251
- lastFailureAt: string | null;
252
- lastSuccessAt: string | null;
253
- lastTriggeredAt: string | null;
254
- }
255
- export interface SetupRevalidationWebhookInput {
256
- url: string;
257
- name?: string;
258
- rotateSecret?: boolean;
259
- dryRun?: boolean;
260
- vercel?: boolean;
261
- }
262
- export interface RevalidationWebhookPlannedEndpoint {
263
- name: string;
264
- url: string;
265
- events: string[];
266
- enabled: boolean;
267
- rotateSecret: boolean;
268
- }
269
- export type SetupRevalidationWebhookResult = {
270
- dryRun: true;
271
- action: 'would_create' | 'would_update' | 'would_rotate' | 'would_leave_unchanged';
272
- endpoint: ManagementWebhookEndpoint | null;
273
- plannedEndpoint: RevalidationWebhookPlannedEndpoint;
274
- message: string;
275
- checklist: string[];
276
- } | {
277
- dryRun: false;
278
- action: 'created' | 'rotated';
279
- endpoint: ManagementWebhookEndpoint;
280
- plannedEndpoint: RevalidationWebhookPlannedEndpoint;
281
- secret: string;
282
- message: string;
283
- checklist: string[];
284
- } | {
285
- dryRun: false;
286
- action: 'updated' | 'unchanged';
287
- endpoint: ManagementWebhookEndpoint;
288
- plannedEndpoint: RevalidationWebhookPlannedEndpoint;
289
- message: string;
290
- checklist: string[];
291
- };
292
- /**
293
- * Form field definition.
294
- */
295
- export interface ManagementFormField {
296
- id: string;
297
- label: string;
298
- type: string;
299
- required?: boolean;
300
- placeholder?: string;
301
- helpText?: string;
302
- layout?: {
303
- width?: 'full' | 'half';
304
- };
305
- options?: Array<{
306
- value: string;
307
- label: string;
308
- }>;
309
- multiple?: boolean;
310
- minLength?: number;
311
- maxLength?: number;
312
- pattern?: string;
313
- min?: number;
314
- max?: number;
315
- }
316
- /**
317
- * Form schema structure containing field definitions.
318
- */
319
- export interface ManagementFormSchema {
320
- version?: string;
321
- fields: ManagementFormField[];
322
- }
323
- /**
324
- * Form settings - generic object to support all form types.
325
- */
326
- export type ManagementFormSettings = Record<string, unknown>;
327
- /**
328
- * Form entity for SDK management operations.
329
- */
330
- export interface ManagementForm {
331
- id: string;
332
- slug: string;
333
- name: string;
334
- schema: ManagementFormSchema;
335
- settings: ManagementFormSettings;
336
- createdAt: string;
337
- updatedAt: string;
338
- }
339
- /**
340
- * Input for creating or updating a form.
341
- */
342
- export interface FormUpsertInput {
343
- slug: string;
344
- name: string;
345
- schema: ManagementFormSchema;
346
- settings?: ManagementFormSettings;
347
- }
348
- /**
349
- * Venue address structure.
350
- */
351
- export interface VenueAddress {
352
- line1?: string;
353
- line2?: string;
354
- city?: string;
355
- region?: string;
356
- postcode?: string;
357
- country?: string;
358
- }
359
- /**
360
- * Venue location coordinates.
361
- */
362
- export interface VenueLocation {
363
- lat?: number;
364
- lng?: number;
365
- }
366
- /**
367
- * Venue entity for SDK management operations.
368
- */
369
- export interface ManagementVenue {
370
- id: string;
371
- slug: string;
372
- title: string;
373
- description: string | null;
374
- timezone: string | null;
375
- capacity: number | null;
376
- address: VenueAddress;
377
- location: VenueLocation | null;
378
- mapEmbed: string | null;
379
- createdAt: string;
380
- updatedAt: string;
381
- }
382
- /**
383
- * Input for creating or updating a venue.
384
- */
385
- export interface VenueUpsertInput {
386
- slug: string;
387
- title: string;
388
- description?: string | null;
389
- timezone?: string | null;
390
- capacity?: number | null;
391
- address?: VenueAddress;
392
- location?: VenueLocation | null;
393
- mapEmbed?: string | null;
394
- }
395
- /**
396
- * Event category entity for SDK management operations.
397
- */
398
- export interface ManagementEventCategory {
399
- id: string;
400
- identifier: string;
401
- name: string;
402
- description: string | null;
403
- color: string | null;
404
- sortOrder: number;
405
- createdAt: string;
406
- updatedAt: string;
407
- }
408
- /**
409
- * Input for creating or updating an event category.
410
- */
411
- export interface EventCategoryUpsertInput {
412
- identifier: string;
413
- name: string;
414
- description?: string | null;
415
- color?: string | null;
416
- sortOrder?: number;
417
- }
418
- /**
419
- * Schedule configuration for an event series.
420
- */
421
- export interface EventSchedule {
422
- recurrenceRule: string | null;
423
- /** Date used for the first occurrence; required for one-off SDK-managed events. */
424
- startDate?: string | null;
425
- defaultStartTime: string;
426
- durationMinutes: number;
427
- }
428
- export interface EventStartEndSchedule {
429
- /** Start/end schedules are currently supported for one-off SDK-managed events only. */
430
- recurrenceRule?: null;
431
- /** ISO datetime. Local datetime strings are treated as event-local wall time by the API. */
432
- startsAt: string;
433
- /** ISO datetime. Must be after startsAt and no more than the shared event duration maximum. */
434
- endsAt: string;
435
- durationMinutes?: never;
436
- }
437
- export interface EventStartDurationSchedule {
438
- /** Start/duration schedules are currently supported for one-off SDK-managed events only. */
439
- recurrenceRule?: null;
440
- /** ISO datetime. Local datetime strings are treated as event-local wall time by the API. */
441
- startsAt: string;
442
- /** Must be no more than the shared event duration maximum. */
443
- durationMinutes: number;
444
- endsAt?: never;
445
- }
446
- export type EventScheduleUpsertInput = EventSchedule | EventStartEndSchedule | EventStartDurationSchedule;
447
- export type EventTicketTypeInput = SdkEventTicketTypeInput;
448
- /**
449
- * Pricing configuration for an event series.
450
- */
451
- export type EventPricing = SdkEventPricing;
452
- export type EventPricingInput = SdkEventPricingInput;
453
- export type EventPaymentTerms = SdkEventPaymentTerms;
454
- export type EventPaymentTermsInput = SdkEventPaymentTermsInput;
455
- /**
456
- * Event content data (embedded from content_entry).
457
- */
458
- export interface EventContent {
459
- summary?: string;
460
- body?: string | RichTextDoc;
461
- image?: Record<string, unknown> & {
462
- identifier: string;
463
- };
464
- [key: string]: unknown;
465
- }
466
- export type ManagementEventSeries = SdkManagementEventSeries;
467
- export type ManagementEventOccurrence = SdkManagementEventOccurrence;
468
- export type EventOccurrenceScheduleInput = SdkEventOccurrenceScheduleInput;
469
- export type AddEventOccurrenceInput = SdkAddEventOccurrenceRequest;
470
- export type EventOccurrenceCapacityIntent = SdkEventOccurrenceCapacityIntent;
471
- export type EventSeriesUpsertInput = SdkEventUpsertBody;
472
- export interface ManagementMediaAsset {
473
- id: string;
474
- siteId: string;
475
- identifier: string | null;
476
- storageBucket: string;
477
- storagePath: string;
478
- filename: string;
479
- mimeType: string;
480
- width: number | null;
481
- height: number | null;
482
- bytes: number | null;
483
- checksumSha256: string | null;
484
- createdAt: string;
485
- updatedAt: string;
486
- }
487
- export interface MediaResolveResponse {
488
- assets: ManagementMediaAsset[];
489
- missingIdentifiers: string[];
490
- missingAssetIds: string[];
491
- }
492
- /**
493
- * Explicitly separates an existing-theme update from first-theme provisioning.
494
- * Initialization never accepts a separately authoritative Theme payload.
495
- */
496
- export type ThemeUpsertInput = NonNullable<APIEndpoints['sdkUpsertTheme']['body']>;
497
- /** Updates an existing theme selection with a caller-supplied theme. */
498
- export type ThemeUpsertUpdateInput = Extract<ThemeUpsertInput, {
499
- kind: 'update';
500
- }>;
501
- /** Creates the first theme by compiling this complete style-selection command. */
502
- export type ThemeUpsertInitializeInput = Extract<ThemeUpsertInput, {
503
- kind: 'initialize';
504
- }>;
505
- /**
506
- * Response from theme upsert operation.
507
- */
508
- export interface ThemeUpsertResult {
509
- themeId: string;
510
- selectionId: string;
511
- savedAt: string;
512
- }
513
- export type SiteStyleSelectionApplyCommand = SiteCommandOf<'applySiteStyleSelection'>;
514
- export type SiteStyleSelectionApplyCommandInput = SiteStyleSelectionApplyCommand['input'];
515
- /**
516
- * Public SDK delta contract. `siteStyleRef` is command orchestration identity;
517
- * semantic style changes live only in the `changes` batch.
518
- */
519
- export type ThemeStyleSelectionApplyInput = Omit<SiteStyleSelectionApplyCommandInput, 'changes'> & Readonly<{
520
- siteStyleRef: string;
521
- baseSelectionVersion: number;
522
- selectionId?: string | null;
523
- changes: readonly [
524
- SiteStyleSelectionApplyCommandInput['changes'][number],
525
- ...SiteStyleSelectionApplyCommandInput['changes'][number][]
526
- ];
527
- }>;
528
- export interface ThemeStyleSelectionApplyResult {
529
- success: boolean;
530
- themeId: string;
531
- selectionId: string;
532
- selectionVersion: number;
533
- selectionUpdatedAt: string | null;
534
- savedAt: string;
535
- theme: Theme;
536
- siteStyleId: string;
537
- buttonStyleSelection: ButtonStyleSelection;
538
- headerLookId: string | null;
539
- headerLayoutId: string | null;
540
- headerStyleId: string | null;
541
- footerLookId: string | null;
542
- }
543
- /**
544
- * Footer content for SDK management operations.
545
- * The footer sync boundary carries the complete composition and its optimistic
546
- * concurrency revision.
547
- */
548
- export type FooterContent = ManagementFooterContent;
549
- /**
550
- * Footer content as returned from CMS.
551
- */
552
- export type ManagementFooterContent = SdkFooterContent;
553
- /**
554
- * Input for upserting footer content.
555
- */
556
- export type FooterContentUpsertInput = NonNullable<APIEndpoints['sdkUpsertFooter']['body']>;
557
- export interface PulledFooter {
558
- footer: ManagementFooterContent | null;
559
- meta: {
560
- pulledAt: string;
561
- updatedAt: string | null;
562
- };
563
- }
564
- export interface PulledEntries {
565
- contentType: string;
566
- entries: Array<{
567
- identifier: string;
568
- data: Record<string, unknown>;
569
- status: 'draft' | 'published';
570
- hasUnpublishedChanges: boolean;
571
- /** Slug for URL routing - only present for routable content types */
572
- slug?: string;
573
- /**
574
- * Canonical entry title (route title for routable content types).
575
- */
576
- title: string;
577
- manualOrder?: number;
578
- blocks?: EntrySlotBlocks;
579
- }>;
580
- meta: {
581
- pulledAt: string;
582
- manualOrder?: string[];
583
- entries: Record<string, {
584
- createdAt: string;
585
- updatedAt: string;
586
- publishedAt: string | null;
587
- }>;
588
- truncation?: SdkPullTruncationMeta;
589
- };
590
- pagination: {
591
- page: number;
592
- limit: number;
593
- total: number;
594
- hasMore: boolean;
595
- };
596
- }
597
- export interface PulledPages {
598
- pages: Array<{
599
- id: string;
600
- identifier: string;
601
- title: string;
602
- path: string;
603
- status: 'draft' | 'published';
604
- hasUnpublishedChanges: boolean;
605
- updatedAt: string;
606
- createdAt: string;
607
- publishedAt: string | null;
608
- blocks: Array<{
609
- id: string;
610
- identifier: string;
611
- kind: string;
612
- position: number;
613
- data: Record<string, unknown>;
614
- createdAt: string;
615
- updatedAt: string;
616
- }>;
617
- }>;
618
- meta: {
619
- pulledAt: string;
620
- };
621
- }
622
- export interface PulledNavigation {
623
- menus: PulledNavigationMenu[];
624
- meta: {
625
- pulledAt: string;
626
- };
627
- }
628
- /**
629
- * Cross-type overview of everything with pending (unpublished) changes.
630
- * Mirrors `SdkPullDraftsResponse` in `@riverbankcms/api`; kept structurally in
631
- * sync by the API↔SDK typetest.
632
- */
633
- export interface PulledDrafts {
634
- pages: Array<{
635
- identifier: string;
636
- hasUnpublishedChanges: boolean;
637
- status: 'draft' | 'published';
638
- }>;
639
- entries: Array<{
640
- contentType: string;
641
- identifier: string;
642
- status: 'draft' | 'published';
643
- }>;
644
- summary: {
645
- pageCount: number;
646
- entryCount: number;
647
- };
648
- meta: {
649
- pulledAt: string;
650
- };
651
- }
652
- export interface PulledSettings {
653
- settings: ManagementSettings;
654
- warnings?: string[];
655
- meta: {
656
- pulledAt: string;
657
- updatedAt: string | null;
658
- };
659
- }
660
- export interface PulledForms {
661
- forms: Array<{
662
- slug: string;
663
- name: string;
664
- schema: ManagementFormSchema;
665
- settings: ManagementFormSettings;
666
- updatedAt: string;
667
- createdAt: string;
668
- }>;
669
- meta: {
670
- pulledAt: string;
671
- };
672
- }
673
- export interface PulledTheme {
674
- theme: Theme | null;
675
- themeId: string | null;
676
- selectionId: string | null;
677
- meta: {
678
- pulledAt: string;
679
- updatedAt: string | null;
680
- };
681
- }
682
- export interface PulledVenues {
683
- venues: Array<{
684
- slug: string;
685
- title: string;
686
- description: string | null;
687
- timezone: string | null;
688
- capacity: number | null;
689
- address: VenueAddress;
690
- location: VenueLocation | null;
691
- mapEmbed: string | null;
692
- updatedAt: string;
693
- createdAt: string;
694
- }>;
695
- meta: {
696
- pulledAt: string;
697
- };
698
- }
699
- export interface PulledEventCategories {
700
- eventCategories: Array<{
701
- identifier: string;
702
- name: string;
703
- description: string | null;
704
- color: string | null;
705
- sortOrder: number;
706
- updatedAt: string;
707
- createdAt: string;
708
- }>;
709
- meta: {
710
- pulledAt: string;
711
- };
712
- }
713
- export interface PulledEvents {
714
- events: SdkPullEventSeries[];
715
- meta: {
716
- pulledAt: string;
717
- };
718
- }
719
- /**
720
- * Site info returned by the siteInfo() method.
721
- * Contains configuration data from the CMS server.
722
- */
723
- export interface PulledSiteInfo {
724
- /** Supabase URL for direct storage access */
725
- supabaseUrl: string;
726
- meta: {
727
- fetchedAt: string;
728
- };
729
- }
730
- /**
731
- * Content type info returned by the pull.contentTypes() method.
732
- */
733
- export interface PulledContentType {
734
- key: string;
735
- name: string;
736
- hasPages: boolean;
737
- routePattern: string | null;
738
- isSingleton: boolean;
739
- }
740
- /**
741
- * Response from pulling content types.
742
- */
743
- export interface PulledContentTypes {
744
- contentTypes: PulledContentType[];
745
- meta: {
746
- pulledAt: string;
747
- };
748
- }
749
- export interface PulledContent {
750
- entries: Record<string, PulledEntries['entries']>;
751
- pages: PulledPages['pages'];
752
- navigation: PulledNavigationMenu[];
753
- settings: ManagementSettings;
754
- settingsWarnings?: string[];
755
- forms: PulledForms['forms'];
756
- venues?: PulledVenues['venues'];
757
- eventCategories?: PulledEventCategories['eventCategories'];
758
- events?: PulledEvents['events'];
759
- meta: {
760
- pulledAt: string;
761
- settingsUpdatedAt?: string | null;
762
- /** Whether the response was truncated due to size limits and what was returned. */
763
- truncation: SdkPullTruncationMeta;
764
- entries?: Record<string, {
765
- createdAt: string;
766
- updatedAt: string;
767
- publishedAt: string | null;
768
- }>;
769
- };
770
- }
771
- export interface PaginationOptions {
772
- page?: number;
773
- limit?: number;
774
- }
775
- export interface PaginatedResult<T> {
776
- items: T[];
777
- pagination: {
778
- page: number;
779
- limit: number;
780
- total: number;
781
- hasMore: boolean;
782
- };
783
- }
784
- export interface ApiSuccessResponse<T> {
785
- success: true;
786
- data: T;
787
- }
788
- export interface ApiErrorResponse {
789
- success: false;
790
- error: {
791
- code: string;
792
- message: string;
793
- details?: unknown;
794
- fieldErrors?: Array<{
795
- field: string;
796
- code: string;
797
- message: string;
798
- }>;
799
- /**
800
- * Precise failure tag from the originating server `DomainServiceError`
801
- * (e.g. `STALE_BASE`, `INVALID_STYLE_SELECTION`). Optional; the coarse `code`
802
- * collapses several tags into one HTTP status.
803
- */
804
- tag?: string;
805
- };
806
- }
807
- export type ApiResponse<T> = ApiSuccessResponse<T> | ApiErrorResponse;
808
- export interface EntryOperations {
809
- list(contentType: string, options?: PaginationOptions): Promise<PaginatedResult<ManagementEntry>>;
810
- get(contentType: string, identifier: string): Promise<ManagementEntry | null>;
811
- /**
812
- * Correlated overloads: a publish-intent upsert resolves to the entry plus
813
- * the publication outcome (which may report a failed publish); a draft upsert
814
- * resolves to the entry alone. Statically-unknown intent gets the honest
815
- * union.
816
- */
817
- upsert(input: EntryUpsertInput & {
818
- publication: 'publish';
819
- }): Promise<EntryPublishUpsertResult>;
820
- upsert(input: EntryUpsertInput & {
821
- publication?: 'draft';
822
- }): Promise<UpsertedManagementEntry>;
823
- upsert(input: EntryUpsertInput): Promise<UpsertedManagementEntry | EntryPublishUpsertResult>;
824
- publish(contentType: string, identifier: string): Promise<void>;
825
- unpublish(contentType: string, identifier: string): Promise<void>;
826
- delete(contentType: string, identifier: string): Promise<void>;
827
- }
828
- export interface PageOperations {
829
- list(options?: PaginationOptions): Promise<PaginatedResult<ManagementPage>>;
830
- get(identifier: string): Promise<ManagementPage | null>;
831
- /** Correlated overloads — see {@link EntryOperations.upsert}. */
832
- upsert(input: PageUpsertInput & {
833
- publication: 'publish';
834
- }): Promise<PagePublishUpsertResult>;
835
- upsert(input: PageUpsertInput & {
836
- publication?: 'draft';
837
- }): Promise<ManagementPage>;
838
- upsert(input: PageUpsertInput): Promise<ManagementPage | PagePublishUpsertResult>;
839
- publish(identifier: string): Promise<void>;
840
- unpublish(identifier: string): Promise<void>;
841
- delete(identifier: string): Promise<void>;
842
- }
843
- export type ManagementPageBlock = SdkGetPageBlockResponse['block'];
844
- /**
845
- * Input for `blocks.patch` — derived from the API contract.
846
- * `baseContentHash` must be the `contentHash` from a prior `blocks.get`;
847
- * a stale hash rejects with a 409 whose `fieldErrors[0].message` carries the
848
- * current hash (field `baseContentHash`, code `STALE_CONTENT`).
849
- */
850
- export type BlockPatchInput = SdkPatchPageBlockBody;
851
- export interface BlockOperations {
852
- list(pageIdentifier: string): Promise<ManagementBlock[]>;
853
- get(pageIdentifier: string, blockIdentifier: string): Promise<ManagementPageBlock | null>;
854
- upsert(pageIdentifier: string, input: BlockUpsertInput): Promise<ManagementBlock>;
855
- patch(pageIdentifier: string, blockIdentifier: string, input: BlockPatchInput): Promise<ManagementPageBlock>;
856
- reorder(pageIdentifier: string, blockIdentifiers: string[]): Promise<void>;
857
- delete(pageIdentifier: string, blockIdentifier: string): Promise<void>;
858
- }
859
- export interface NavigationOperations {
860
- list(): Promise<ManagementNavigationMenu[]>;
861
- get(name: string): Promise<ManagementNavigationMenu | null>;
862
- upsert(input: NavigationMenuUpsertInput): Promise<ManagementNavigationMenu>;
863
- delete(menuId: string): Promise<void>;
864
- }
865
- export interface SettingsOperations {
866
- get(): Promise<ManagementSettings>;
867
- update(input: SettingsUpdateInput): Promise<ManagementSettings>;
868
- }
869
- export interface WebhookOperations {
870
- setupRevalidation(input: SetupRevalidationWebhookInput): Promise<SetupRevalidationWebhookResult>;
871
- }
872
- export interface FormOperations {
873
- list(): Promise<ManagementForm[]>;
874
- get(slug: string): Promise<ManagementForm | null>;
875
- upsert(input: FormUpsertInput): Promise<ManagementForm>;
876
- delete(slug: string): Promise<void>;
877
- }
878
- export interface ThemeOperations {
879
- upsert(input: ThemeUpsertInput): Promise<ThemeUpsertResult>;
880
- applySelection(input: ThemeStyleSelectionApplyInput): Promise<ThemeStyleSelectionApplyResult>;
881
- }
882
- export interface FooterOperations {
883
- /** Get footer content */
884
- get(): Promise<ManagementFooterContent | null>;
885
- /** Upsert footer content */
886
- upsert(input: FooterContentUpsertInput): Promise<ManagementFooterContent | null>;
887
- }
888
- export interface VenueOperations {
889
- list(): Promise<ManagementVenue[]>;
890
- get(slug: string): Promise<ManagementVenue | null>;
891
- upsert(input: VenueUpsertInput): Promise<ManagementVenue>;
892
- delete(slug: string): Promise<void>;
893
- }
894
- export interface EventCategoryOperations {
895
- list(): Promise<ManagementEventCategory[]>;
896
- get(identifier: string): Promise<ManagementEventCategory | null>;
897
- upsert(input: EventCategoryUpsertInput): Promise<ManagementEventCategory>;
898
- delete(identifier: string): Promise<void>;
899
- }
900
- export interface EventOperations {
901
- list(): Promise<ManagementEventSeries[]>;
902
- get(identifier: string): Promise<ManagementEventSeries | null>;
903
- upsert(input: EventSeriesUpsertInput): Promise<ManagementEventSeries>;
904
- delete(identifier: string): Promise<void>;
905
- occurrences: EventOccurrenceOperations;
906
- }
907
- export interface EventOccurrenceOperations {
908
- list(identifier: string, options?: Readonly<{
909
- all?: boolean;
910
- status?: ManagementEventOccurrence['status'];
911
- cursor?: string;
912
- limit?: number;
913
- }>): Promise<Readonly<{
914
- occurrences: ManagementEventOccurrence[];
915
- nextCursor: string | null;
916
- }>>;
917
- add(identifier: string, input: AddEventOccurrenceInput): Promise<ManagementEventOccurrence>;
918
- update(identifier: string, occurrenceId: string, input: Readonly<{
919
- schedule?: EventOccurrenceScheduleInput;
920
- capacity?: EventOccurrenceCapacityIntent;
921
- }>): Promise<ManagementEventOccurrence>;
922
- cancel(identifier: string, occurrenceId: string): Promise<ManagementEventOccurrence>;
923
- delete(identifier: string, occurrenceId: string): Promise<void>;
924
- }
925
- export interface PullOperations {
926
- entries(contentType?: string, options?: PaginationOptions): Promise<PulledEntries>;
927
- pages(): Promise<PulledPages>;
928
- /**
929
- * Cross-type overview of pages and entries with pending (unpublished) changes.
930
- * Server-side filtered and fully enumerated.
931
- */
932
- drafts(): Promise<PulledDrafts>;
933
- navigation(): Promise<PulledNavigation>;
934
- settings(): Promise<PulledSettings>;
935
- forms(): Promise<PulledForms>;
936
- theme(): Promise<PulledTheme>;
937
- footer(): Promise<PulledFooter>;
938
- venues(): Promise<PulledVenues>;
939
- eventCategories(): Promise<PulledEventCategories>;
940
- events(): Promise<PulledEvents>;
941
- all(): Promise<PulledContent>;
942
- /**
943
- * Get site configuration info from the CMS server.
944
- * Used to get values like Supabase URL for media sync without
945
- * requiring additional env vars on SDK sites.
946
- */
947
- siteInfo(): Promise<PulledSiteInfo>;
948
- /**
949
- * Get all content types for the site.
950
- * Returns key, name, hasPages, routePattern, and isSingleton for each type.
951
- */
952
- contentTypes(): Promise<PulledContentTypes>;
953
- }
954
- export type PulledCatalogTheme = SdkCatalogThemeResponse;
955
- export type PulledCatalogBlocks = SdkCatalogBlocksResponse;
956
- export type PulledCatalogContentTypes = SdkCatalogContentTypesResponse;
957
- export type Capabilities = SdkCapabilitiesResponse;
958
- /** Demo-seed provenance listing (plan 8.2). */
959
- export type DemoContent = SdkDemoContentResponse;
960
- export interface CatalogOperations {
961
- /** Theme discovery catalog: styles, personalities, palettes, looks + current selection. */
962
- theme(): Promise<PulledCatalogTheme>;
963
- /** Block discovery catalog: manifest fields, content-source, theme-aware variant availability. */
964
- blocks(): Promise<PulledCatalogBlocks>;
965
- /** Content-type discovery catalog: normalized field DSL per content type. */
966
- contentTypes(): Promise<PulledCatalogContentTypes>;
967
- }
968
- export interface BackfillPageResult {
969
- pagesUpdated: number;
970
- identifiersAssigned: Record<string, string>;
971
- }
972
- export interface BackfillBlockResult {
973
- blocksUpdated: number;
974
- identifiersAssigned: Record<string, string>;
975
- }
976
- export interface BackfillEntryResult {
977
- entriesUpdated: number;
978
- identifiersAssigned: Record<string, string>;
979
- }
980
- export interface BackfillResult {
981
- pages: BackfillPageResult;
982
- blocks: {
983
- total: number;
984
- byPage: Record<string, BackfillBlockResult>;
985
- };
986
- entries: BackfillEntryResult;
987
- }
988
- export interface IdentifiersOperations {
989
- /**
990
- * Backfill identifiers for pages, blocks, and entries that don't have one.
991
- * This is useful for migrating content created before the SDK was available.
992
- * The operation is idempotent - running it multiple times won't overwrite existing identifiers.
993
- */
994
- backfill(): Promise<BackfillResult>;
995
- }
996
- export interface MediaUploadResult {
997
- storagePath: string;
998
- status: 'created' | 'exists';
999
- assetId?: string;
1000
- identifier?: string | null;
1001
- }
1002
- export interface MediaOperations {
1003
- /**
1004
- * Upload a media file to the target environment.
1005
- * If the file already exists, returns success without re-uploading.
1006
- */
1007
- upload(file: {
1008
- data: Buffer;
1009
- filename: string;
1010
- contentType: string;
1011
- storagePath?: string;
1012
- title?: string;
1013
- identifier?: string;
1014
- }): Promise<MediaUploadResult>;
1015
- /**
1016
- * Check if a media file exists at the given storage path.
1017
- */
1018
- exists(storagePath: string): Promise<boolean>;
1019
- /**
1020
- * Resolve media assets by identifiers or asset IDs.
1021
- */
1022
- resolve(input: {
1023
- identifiers?: string[];
1024
- assetIds?: string[];
1025
- }): Promise<MediaResolveResponse>;
1026
- /**
1027
- * Find media assets by checksum for dedupe.
1028
- */
1029
- findByChecksum(checksums: string[]): Promise<ManagementMediaAsset[]>;
1030
- /**
1031
- * Assign or update a media identifier.
1032
- */
1033
- assignIdentifier(input: {
1034
- assetId: string;
1035
- identifier: string | null;
1036
- force?: boolean;
1037
- }): Promise<ManagementMediaAsset>;
1038
- }
1039
- export interface ManagementClient {
1040
- entries: EntryOperations;
1041
- pages: PageOperations;
1042
- blocks: BlockOperations;
1043
- navigation: NavigationOperations;
1044
- settings: SettingsOperations;
1045
- webhooks: WebhookOperations;
1046
- forms: FormOperations;
1047
- theme: ThemeOperations;
1048
- footer: FooterOperations;
1049
- venues: VenueOperations;
1050
- eventCategories: EventCategoryOperations;
1051
- events: EventOperations;
1052
- pull: PullOperations;
1053
- /** Discovery catalogs (theme / blocks / content-types). */
1054
- catalog: CatalogOperations;
1055
- identifiers: IdentifiersOperations;
1056
- media: MediaOperations;
1057
- /**
1058
- * Thin capabilities index: API version, catalog links, and per-catalog content
1059
- * hashes so agents can cache catalogs and detect drift.
1060
- */
1061
- capabilities(): Promise<Capabilities>;
1062
- /**
1063
- * Demo-seed provenance ledger: created and existing resource observations
1064
- * from demo recipe runs (plan 8.2). Historical heuristic-era observations are
1065
- * not cleanup-authoritative, and destructive cleanup remains disabled pending
1066
- * an explicit trust cutoff or purge.
1067
- */
1068
- demoContent(): Promise<DemoContent>;
1069
- }