@riverbankcms/sdk 0.128.0 → 0.129.1

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 (290) hide show
  1. package/README.md +52 -256
  2. package/dist/{PreviewEditorSidebar-Dbvb7GIr.mjs → PreviewEditorSidebar-DceRseRV.mjs} +3 -3
  3. package/dist/{PreviewEditorUI-e9O9l20X.mjs → PreviewEditorUI-BNunq3kk.mjs} +2 -2
  4. package/dist/{SdkPreviewModeRuntime-BZHt6e9w.mjs → SdkPreviewModeRuntime-Bt87-62u.mjs} +495 -292
  5. package/dist/{SiteChromeCustomizeContext-CvuGbHJX.mjs → SiteChromeCustomizeContext-BLl-OlL4.mjs} +600 -533
  6. package/dist/_dts/ai/src/contracts/commandExposure.d.ts +1 -1
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +4897 -4897
  8. package/dist/_dts/api/src/index.d.ts +2 -1
  9. package/dist/_dts/api/src/sdk-event-management.d.ts +53 -0
  10. package/dist/_dts/api/src/sdk-event-schedule.d.ts +3 -6
  11. package/dist/_dts/api/src/sdkContracts.d.ts +37 -50
  12. package/dist/_dts/api/src/sdkThemeWire.d.ts +2595 -0
  13. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +13 -29
  14. package/dist/_dts/blocks/src/PageRenderer.d.ts +20 -10
  15. package/dist/_dts/blocks/src/index.d.ts +2 -1
  16. package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +30 -0
  17. package/dist/_dts/blocks/src/pageRenderingMode.d.ts +37 -0
  18. package/dist/_dts/blocks/src/server.d.ts +1 -1
  19. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +14 -0
  20. package/dist/_dts/media-core/src/index.d.ts +1 -0
  21. package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +2 -0
  22. package/dist/_dts/preview-next/src/client/index.d.ts +47 -47
  23. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +18 -6
  24. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +30 -21
  25. package/dist/_dts/preview-next/src/client/preview/PreviewThemedSiteDocument.d.ts +18 -5
  26. package/dist/_dts/preview-next/src/client/preview/themeRuntime.d.ts +9 -0
  27. package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +21 -6
  28. package/dist/_dts/preview-next/src/client/sdk-runtime.d.ts +8 -8
  29. package/dist/_dts/sdk/src/config/types.d.ts +4 -4
  30. package/dist/_dts/sdk/src/next/catch-all.d.ts +6 -0
  31. package/dist/_dts/sdk/src/next/index.d.ts +2 -1
  32. package/dist/_dts/sdk/src/next/renderSdkContent.d.ts +33 -0
  33. package/dist/_dts/sdk/src/next/types.d.ts +23 -9
  34. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +4 -6
  35. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  37. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +25 -3
  38. package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +13 -2
  39. package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +31 -18
  40. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +20 -9
  41. package/dist/_dts/sdk/src/rendering/index.d.ts +4 -2
  42. package/dist/_dts/sdk/src/rendering/renderingMode.d.ts +23 -0
  43. package/dist/_dts/sdk/src/rendering/server.d.ts +5 -3
  44. package/dist/_dts/sdk/src/rendering/themeRuntime.d.ts +6 -0
  45. package/dist/_dts/sdk/src/version.d.ts +1 -1
  46. package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
  47. package/dist/_dts/theme-core/src/palette/index.d.ts +1 -0
  48. package/dist/_dts/theme-core/src/site-styles/headerLayoutStyleCatalog.d.ts +254 -0
  49. package/dist/_dts/theme-core/src/site-styles/headerLegacyLooks.d.ts +372 -0
  50. package/dist/_dts/theme-core/src/site-styles/headerLookBranding.d.ts +106 -0
  51. package/dist/_dts/theme-core/src/site-styles/headerLookSelection.d.ts +2 -0
  52. package/dist/_dts/theme-core/src/site-styles/headerLookTypes.d.ts +212 -0
  53. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +7 -841
  54. package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +3 -0
  55. package/dist/_dts/theme-core/src/site-styles/headerStyleCompilerPrimitives.d.ts +23 -0
  56. package/dist/client/client.mjs +911 -762
  57. package/dist/client/hooks.mjs +59 -36
  58. package/dist/client/rendering/client.mjs +593 -547
  59. package/dist/client/rendering.mjs +994 -783
  60. package/dist/preview-next/before-render.mjs +10 -3
  61. package/dist/preview-next/client/runtime.mjs +3 -3
  62. package/dist/{sdk-runtime-Cn_QSCOg.mjs → sdk-runtime-C20CVWbb.mjs} +1 -1
  63. package/dist/{separator-CEoGABRc.mjs → separator-BE3NCquy.mjs} +1 -1
  64. package/dist/server/components.mjs +549 -399
  65. package/dist/server/config-validation.mjs +59 -36
  66. package/dist/server/config.mjs +59 -36
  67. package/dist/server/data.mjs +59 -36
  68. package/dist/server/index.mjs +1 -1
  69. package/dist/server/manifest.mjs +4966 -0
  70. package/dist/server/next.mjs +700 -537
  71. package/dist/server/page-converter.mjs +40 -36
  72. package/dist/server/prebuild.mjs +1 -1
  73. package/dist/server/rendering/server.mjs +571 -404
  74. package/dist/server/rendering.mjs +571 -404
  75. package/dist/server/routing.mjs +472 -402
  76. package/dist/server/server.mjs +60 -37
  77. package/dist/server/theme-bridge.mjs +70 -66
  78. package/package.json +9 -12
  79. package/dist/_dts/api/src/event-presentation.d.ts +0 -14
  80. package/dist/_dts/blocks/src/definitions.d.ts +0 -14
  81. package/dist/_dts/sdk/src/cli/canonical-entry-policy.d.ts +0 -53
  82. package/dist/_dts/sdk/src/cli/commands/audit.d.ts +0 -101
  83. package/dist/_dts/sdk/src/cli/commands/block.d.ts +0 -24
  84. package/dist/_dts/sdk/src/cli/commands/compare.d.ts +0 -62
  85. package/dist/_dts/sdk/src/cli/commands/content-type.d.ts +0 -10
  86. package/dist/_dts/sdk/src/cli/commands/content.d.ts +0 -56
  87. package/dist/_dts/sdk/src/cli/commands/delete.d.ts +0 -14
  88. package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +0 -43
  89. package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +0 -18
  90. package/dist/_dts/sdk/src/cli/commands/entry.d.ts +0 -55
  91. package/dist/_dts/sdk/src/cli/commands/env.d.ts +0 -31
  92. package/dist/_dts/sdk/src/cli/commands/event.d.ts +0 -23
  93. package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +0 -12
  94. package/dist/_dts/sdk/src/cli/commands/identifiers.d.ts +0 -10
  95. package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +0 -13
  96. package/dist/_dts/sdk/src/cli/commands/manifest.d.ts +0 -10
  97. package/dist/_dts/sdk/src/cli/commands/media-validation.d.ts +0 -3
  98. package/dist/_dts/sdk/src/cli/commands/migrate.d.ts +0 -11
  99. package/dist/_dts/sdk/src/cli/commands/navigation.d.ts +0 -12
  100. package/dist/_dts/sdk/src/cli/commands/page.d.ts +0 -14
  101. package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +0 -50
  102. package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +0 -10
  103. package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +0 -70
  104. package/dist/_dts/sdk/src/cli/commands/pull-scope-diff.d.ts +0 -8
  105. package/dist/_dts/sdk/src/cli/commands/pull.d.ts +0 -43
  106. package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +0 -3
  107. package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +0 -19
  108. package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +0 -42
  109. package/dist/_dts/sdk/src/cli/commands/push/execute/localMediaReporting.d.ts +0 -23
  110. package/dist/_dts/sdk/src/cli/commands/push/execute/media.d.ts +0 -22
  111. package/dist/_dts/sdk/src/cli/commands/push/execute/metadata.d.ts +0 -1
  112. package/dist/_dts/sdk/src/cli/commands/push/execute/reporting.d.ts +0 -7
  113. package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +0 -63
  114. package/dist/_dts/sdk/src/cli/commands/push/filter.d.ts +0 -15
  115. package/dist/_dts/sdk/src/cli/commands/push/metadata.d.ts +0 -29
  116. package/dist/_dts/sdk/src/cli/commands/push/normalizeLocalContent.d.ts +0 -2
  117. package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +0 -32
  118. package/dist/_dts/sdk/src/cli/commands/push/publishGuidance.d.ts +0 -15
  119. package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -25
  120. package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +0 -83
  121. package/dist/_dts/sdk/src/cli/commands/push/scopes/eventCategories.d.ts +0 -4
  122. package/dist/_dts/sdk/src/cli/commands/push/scopes/events.d.ts +0 -4
  123. package/dist/_dts/sdk/src/cli/commands/push/scopes/mediaPrep.d.ts +0 -14
  124. package/dist/_dts/sdk/src/cli/commands/push/scopes/pushScopeGeneric.d.ts +0 -6
  125. package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +0 -87
  126. package/dist/_dts/sdk/src/cli/commands/push/scopes/venues.d.ts +0 -4
  127. package/dist/_dts/sdk/src/cli/commands/push/stale-resolution.d.ts +0 -48
  128. package/dist/_dts/sdk/src/cli/commands/push/stale.d.ts +0 -17
  129. package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +0 -56
  130. package/dist/_dts/sdk/src/cli/commands/push/workflowPlan.d.ts +0 -34
  131. package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +0 -54
  132. package/dist/_dts/sdk/src/cli/commands/push.d.ts +0 -40
  133. package/dist/_dts/sdk/src/cli/commands/setup.d.ts +0 -3
  134. package/dist/_dts/sdk/src/cli/commands/style.d.ts +0 -60
  135. package/dist/_dts/sdk/src/cli/commands/verify.d.ts +0 -11
  136. package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +0 -44
  137. package/dist/_dts/sdk/src/cli/config-loader.d.ts +0 -47
  138. package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +0 -23
  139. package/dist/_dts/sdk/src/cli/content/edit/format.d.ts +0 -2
  140. package/dist/_dts/sdk/src/cli/content/edit/path.d.ts +0 -14
  141. package/dist/_dts/sdk/src/cli/content/edit/planner.d.ts +0 -46
  142. package/dist/_dts/sdk/src/cli/content/entryPaths.d.ts +0 -6
  143. package/dist/_dts/sdk/src/cli/content/footerFile.d.ts +0 -10
  144. package/dist/_dts/sdk/src/cli/content/fs-utils.d.ts +0 -39
  145. package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +0 -5
  146. package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +0 -17
  147. package/dist/_dts/sdk/src/cli/content/media-manifest.d.ts +0 -13
  148. package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +0 -25
  149. package/dist/_dts/sdk/src/cli/content/metadataStore.d.ts +0 -29
  150. package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -488
  151. package/dist/_dts/sdk/src/cli/content/writer.d.ts +0 -142
  152. package/dist/_dts/sdk/src/cli/env-scope.d.ts +0 -2
  153. package/dist/_dts/sdk/src/cli/env.d.ts +0 -71
  154. package/dist/_dts/sdk/src/cli/errors.d.ts +0 -62
  155. package/dist/_dts/sdk/src/cli/helpers/ai-runtime.d.ts +0 -2
  156. package/dist/_dts/sdk/src/cli/helpers.d.ts +0 -399
  157. package/dist/_dts/sdk/src/cli/index.d.ts +0 -11
  158. package/dist/_dts/sdk/src/cli/init-docs/constants.d.ts +0 -16
  159. package/dist/_dts/sdk/src/cli/init-docs/index.d.ts +0 -12
  160. package/dist/_dts/sdk/src/cli/init-docs/templates.d.ts +0 -18
  161. package/dist/_dts/sdk/src/cli/init-docs/zod-to-markdown.d.ts +0 -28
  162. package/dist/_dts/sdk/src/cli/load-config.d.ts +0 -14
  163. package/dist/_dts/sdk/src/cli/media/identifiers.d.ts +0 -18
  164. package/dist/_dts/sdk/src/cli/media/local-media.d.ts +0 -14
  165. package/dist/_dts/sdk/src/cli/media/local-sync.d.ts +0 -91
  166. package/dist/_dts/sdk/src/cli/media/portable.d.ts +0 -11
  167. package/dist/_dts/sdk/src/cli/media/rich-text.d.ts +0 -12
  168. package/dist/_dts/sdk/src/cli/media/value-utils.d.ts +0 -15
  169. package/dist/_dts/sdk/src/cli/media/write-guard.d.ts +0 -52
  170. package/dist/_dts/sdk/src/cli/merge-remote/entryLocal.d.ts +0 -3
  171. package/dist/_dts/sdk/src/cli/merge-remote/entryMerge.d.ts +0 -78
  172. package/dist/_dts/sdk/src/cli/merge-remote/entryMergePlan.d.ts +0 -45
  173. package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +0 -24
  174. package/dist/_dts/sdk/src/cli/merge-remote/entryMergeReport.d.ts +0 -18
  175. package/dist/_dts/sdk/src/cli/merge-remote/entryRemote.d.ts +0 -9
  176. package/dist/_dts/sdk/src/cli/merge-remote/entrySnapshots.d.ts +0 -48
  177. package/dist/_dts/sdk/src/cli/merge-remote/mergeFieldChanges.d.ts +0 -22
  178. package/dist/_dts/sdk/src/cli/merge-remote/pageLocal.d.ts +0 -3
  179. package/dist/_dts/sdk/src/cli/merge-remote/pageMerge.d.ts +0 -78
  180. package/dist/_dts/sdk/src/cli/merge-remote/pageMergePlan.d.ts +0 -36
  181. package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +0 -23
  182. package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +0 -17
  183. package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +0 -46
  184. package/dist/_dts/sdk/src/cli/merge-remote/sharedBaseSnapshots.d.ts +0 -32
  185. package/dist/_dts/sdk/src/cli/merge-remote/sharedMergePlan.d.ts +0 -27
  186. package/dist/_dts/sdk/src/cli/merge-remote/sharedMergeReport.d.ts +0 -63
  187. package/dist/_dts/sdk/src/cli/migrations/entries.d.ts +0 -28
  188. package/dist/_dts/sdk/src/cli/migrations/events.d.ts +0 -73
  189. package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +0 -11
  190. package/dist/_dts/sdk/src/cli/output.d.ts +0 -133
  191. package/dist/_dts/sdk/src/cli/program.d.ts +0 -29
  192. package/dist/_dts/sdk/src/cli/push-config.d.ts +0 -49
  193. package/dist/_dts/sdk/src/cli/setup/setupPlan.d.ts +0 -51
  194. package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +0 -13
  195. package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +0 -170
  196. package/dist/_dts/sdk/src/cli/site-commands/commandRuntimeCompat.d.ts +0 -21
  197. package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +0 -32
  198. package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +0 -53
  199. package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +0 -65
  200. package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +0 -24
  201. package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +0 -68
  202. package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +0 -53
  203. package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +0 -8
  204. package/dist/_dts/sdk/src/cli/site-commands/localBlockManifestResolver.d.ts +0 -31
  205. package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +0 -57
  206. package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +0 -82
  207. package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +0 -84
  208. package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +0 -39
  209. package/dist/_dts/sdk/src/cli/site-commands/pushExecutionPlan.d.ts +0 -8
  210. package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +0 -97
  211. package/dist/_dts/sdk/src/cli/site-commands/residualSettingsTrimming.d.ts +0 -15
  212. package/dist/_dts/sdk/src/cli/sync/diff.d.ts +0 -222
  213. package/dist/_dts/sdk/src/cli/sync/executor.d.ts +0 -84
  214. package/dist/_dts/sdk/src/cli/sync/field-diff.d.ts +0 -39
  215. package/dist/_dts/sdk/src/cli/sync/index.d.ts +0 -10
  216. package/dist/_dts/sdk/src/cli/sync/mapper.d.ts +0 -41
  217. package/dist/_dts/sdk/src/cli/sync/media-sync.d.ts +0 -15
  218. package/dist/_dts/sdk/src/cli/sync/media.d.ts +0 -158
  219. package/dist/_dts/sdk/src/cli/sync/syncResultAggregation.d.ts +0 -4
  220. package/dist/_dts/sdk/src/cli/sync/validation.d.ts +0 -68
  221. package/dist/_dts/sdk/src/cli/utils/checksum.d.ts +0 -1
  222. package/dist/_dts/sdk/src/client/management/blocks.d.ts +0 -19
  223. package/dist/_dts/sdk/src/client/management/catalog.d.ts +0 -10
  224. package/dist/_dts/sdk/src/client/management/entries.d.ts +0 -6
  225. package/dist/_dts/sdk/src/client/management/eventCategories.d.ts +0 -6
  226. package/dist/_dts/sdk/src/client/management/events.d.ts +0 -7
  227. package/dist/_dts/sdk/src/client/management/footer.d.ts +0 -9
  228. package/dist/_dts/sdk/src/client/management/forms.d.ts +0 -6
  229. package/dist/_dts/sdk/src/client/management/http.d.ts +0 -79
  230. package/dist/_dts/sdk/src/client/management/identifiers.d.ts +0 -11
  231. package/dist/_dts/sdk/src/client/management/index.d.ts +0 -41
  232. package/dist/_dts/sdk/src/client/management/media.d.ts +0 -72
  233. package/dist/_dts/sdk/src/client/management/navigation.d.ts +0 -6
  234. package/dist/_dts/sdk/src/client/management/pages.d.ts +0 -6
  235. package/dist/_dts/sdk/src/client/management/pull.d.ts +0 -6
  236. package/dist/_dts/sdk/src/client/management/settings-branding.d.ts +0 -32
  237. package/dist/_dts/sdk/src/client/management/settings.d.ts +0 -6
  238. package/dist/_dts/sdk/src/client/management/theme.d.ts +0 -8
  239. package/dist/_dts/sdk/src/client/management/types.d.ts +0 -1069
  240. package/dist/_dts/sdk/src/client/management/venues.d.ts +0 -6
  241. package/dist/_dts/sdk/src/client/management/webhooks.d.ts +0 -3
  242. package/dist/_dts/sdk/src/test/env.d.ts +0 -4
  243. package/dist/_dts/site-commands/src/adapter.d.ts +0 -23
  244. package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +0 -100
  245. package/dist/_dts/site-commands/src/capabilityGaps.d.ts +0 -8
  246. package/dist/_dts/site-commands/src/commandContract.d.ts +0 -1277
  247. package/dist/_dts/site-commands/src/commandDomain.d.ts +0 -20
  248. package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +0 -7
  249. package/dist/_dts/site-commands/src/commandValidation.d.ts +0 -10
  250. package/dist/_dts/site-commands/src/commands.d.ts +0 -1983
  251. package/dist/_dts/site-commands/src/domain.d.ts +0 -104
  252. package/dist/_dts/site-commands/src/eventCommandContent.d.ts +0 -11
  253. package/dist/_dts/site-commands/src/exposure.d.ts +0 -41
  254. package/dist/_dts/site-commands/src/guards.d.ts +0 -1
  255. package/dist/_dts/site-commands/src/index.d.ts +0 -18
  256. package/dist/_dts/site-commands/src/metadata.d.ts +0 -555
  257. package/dist/_dts/site-commands/src/pagePaths.d.ts +0 -6
  258. package/dist/_dts/site-commands/src/planner.d.ts +0 -58
  259. package/dist/_dts/site-commands/src/refContributions.d.ts +0 -11
  260. package/dist/_dts/site-commands/src/refs.d.ts +0 -90
  261. package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +0 -405
  262. package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +0 -46
  263. package/dist/_dts/site-commands/src/stableJson.d.ts +0 -5
  264. package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +0 -10
  265. package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +0 -21
  266. package/dist/_dts/theme-core/src/data.d.ts +0 -12
  267. package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +0 -4
  268. package/dist/cli/index.mjs +0 -162962
  269. package/dist/cli/init-docs/content/agents-section.md +0 -67
  270. package/dist/cli/init-docs/content/cli-reference.md +0 -1238
  271. package/dist/cli/init-docs/content/content-management.md +0 -792
  272. package/dist/cli/init-docs/content/context-brand.md +0 -125
  273. package/dist/cli/init-docs/content/context-brief.md +0 -77
  274. package/dist/cli/init-docs/content/context-knowledge.md +0 -111
  275. package/dist/cli/init-docs/content/getting-started.md +0 -171
  276. package/dist/cli/init-docs/content/site-workflows-readme.md +0 -96
  277. package/dist/cli/init-docs/content/workflow-add-block.md +0 -299
  278. package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +0 -83
  279. package/dist/cli/init-docs/content/workflow-block-extensions.md +0 -370
  280. package/dist/cli/init-docs/content/workflow-cmsify-page.md +0 -357
  281. package/dist/cli/init-docs/content/workflow-content-types.md +0 -330
  282. package/dist/cli/init-docs/content/workflow-create-page.md +0 -212
  283. package/dist/cli/init-docs/content/workflow-custom-block.md +0 -470
  284. package/dist/cli/init-docs/content/workflow-editor-workflows.md +0 -130
  285. package/dist/cli/init-docs/content/workflow-isr-revalidation.md +0 -158
  286. package/dist/cli/init-docs/content/workflow-preview-mode.md +0 -239
  287. package/dist/cli/init-docs/content/workflow-publish.md +0 -285
  288. package/dist/cli/init-docs/content/workflow-remote-setup.md +0 -51
  289. package/dist/cli/init-docs/content/workflow-templates.md +0 -381
  290. /package/dist/_dts/{sdk/src/cli/utils/mime.d.ts → media-core/src/mimeType.d.ts} +0 -0
@@ -1,62 +0,0 @@
1
- /**
2
- * CLI Error Handling
3
- *
4
- * Provides enhanced error formatting for CLI commands.
5
- */
6
- /**
7
- * SDK CLI error codes
8
- */
9
- export declare const ErrorCodes: {
10
- readonly MISSING_ENV: "sdk:missing-env";
11
- readonly INVALID_CONFIG: "sdk:invalid-config";
12
- readonly NETWORK_ERROR: "sdk:network-error";
13
- readonly TIMEOUT: "sdk:timeout";
14
- readonly UNAUTHORIZED: "sdk:unauthorized";
15
- readonly FORBIDDEN: "sdk:forbidden";
16
- readonly VALIDATION_ERROR: "sdk:validation-error";
17
- readonly MISSING_CONTENT_TYPE: "sdk:missing-content-type";
18
- readonly UNKNOWN_BLOCK_KIND: "sdk:unknown-block-kind";
19
- readonly FILE_NOT_FOUND: "sdk:file-not-found";
20
- readonly FILE_WRITE_ERROR: "sdk:file-write-error";
21
- readonly UNKNOWN: "sdk:unknown";
22
- };
23
- export type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];
24
- /**
25
- * Format error for CLI display
26
- */
27
- export interface FormattedError {
28
- code: string;
29
- message: string;
30
- details?: unknown;
31
- suggestion?: string;
32
- }
33
- export type CliEnvironmentTarget = 'local' | 'remote';
34
- export interface CliErrorContext {
35
- target: CliEnvironmentTarget;
36
- dashboardUrl?: string;
37
- siteId?: string;
38
- }
39
- /**
40
- * Format an error for CLI display
41
- */
42
- export declare function formatError(error: unknown, ctx?: CliErrorContext): FormattedError;
43
- /**
44
- * Format validation errors for display
45
- */
46
- export declare function formatValidationErrors(errors: Array<{
47
- path: string;
48
- message: string;
49
- }>): string;
50
- /**
51
- * Format push operation diff for display
52
- */
53
- export interface DiffItem {
54
- type: 'add' | 'update' | 'delete';
55
- identifier: string;
56
- contentType?: string;
57
- }
58
- export declare function formatDiff(items: DiffItem[]): string;
59
- /**
60
- * Get actionable message for SDK error
61
- */
62
- export declare function getActionableMessage(code: string): string | undefined;
@@ -1,2 +0,0 @@
1
- import type { AiRuntime } from '../../ai/runtime';
2
- export declare function loadAiRuntime(moduleId?: string): Promise<AiRuntime>;
@@ -1,399 +0,0 @@
1
- /**
2
- * Shared CLI Helpers
3
- *
4
- * Common utilities and types shared across CLI commands.
5
- * Reduces duplication and ensures consistent behavior.
6
- */
7
- import { Command } from 'commander';
8
- import type { SiteId } from '../../../core/src/index';
9
- import type { ManagementClient } from '../client/management/types';
10
- import { InvocationEnvelope, type OutputContext } from './output';
11
- import { type CliErrorContext } from './errors';
12
- /**
13
- * Run `fn` within a fresh invocation envelope. Returns the envelope so `runCli`
14
- * can flush it and derive the exit code after the run completes (or fails).
15
- */
16
- export declare function runWithInvocation<T>(fn: (envelope: InvocationEnvelope) => Promise<T>): {
17
- envelope: InvocationEnvelope;
18
- done: Promise<T>;
19
- };
20
- /** The current invocation's envelope, if output is running inside `runCli`. */
21
- export declare function currentInvocationEnvelope(): InvocationEnvelope | undefined;
22
- /**
23
- * Build the space-separated command path for the envelope's `command` field,
24
- * excluding the root program name (e.g. `entry upsert`, `drafts`).
25
- */
26
- export declare function resolveCommandPath(command: Command): string;
27
- /**
28
- * Create an OutputContext bound to a command. In JSON mode it resolves the
29
- * current invocation's envelope from the async context, so all output funnels
30
- * into one document.
31
- */
32
- export declare function createOutputForCommand(command: Command): OutputContext;
33
- /**
34
- * Environment target for CLI operations.
35
- */
36
- export type EnvTarget = 'local' | 'remote';
37
- /**
38
- * Result of an operation on a specific environment.
39
- */
40
- export interface EnvResult<T> {
41
- success: boolean;
42
- result?: T;
43
- error?: Error;
44
- }
45
- /**
46
- * Global options available on all commands via --json, --quiet, --env flags.
47
- */
48
- export interface GlobalOptions {
49
- json?: boolean;
50
- quiet?: boolean;
51
- /** @deprecated Use --env=remote instead */
52
- remote?: boolean;
53
- /** Target environment: local, remote, or both */
54
- env?: string;
55
- }
56
- /**
57
- * Options for commands that accept JSON data via --data or --file.
58
- */
59
- export interface DataInputOptions {
60
- data?: string;
61
- file?: string;
62
- }
63
- /**
64
- * Options for commands that require confirmation.
65
- */
66
- export interface ConfirmOptions {
67
- yes?: boolean;
68
- }
69
- /**
70
- * Context object provided to command handlers.
71
- */
72
- export interface CommandContext {
73
- output: OutputContext;
74
- client: ManagementClient;
75
- isRemote: boolean;
76
- isJsonOutput: boolean;
77
- targetEnv: EnvTarget;
78
- siteId: SiteId;
79
- /** Environment targets for this operation */
80
- envTargets: EnvTarget[];
81
- }
82
- /**
83
- * Pagination options for list commands.
84
- */
85
- export interface PaginationOptions {
86
- limit?: string;
87
- page?: string;
88
- }
89
- /**
90
- * Parsed pagination values.
91
- */
92
- export interface ParsedPagination {
93
- limit: number;
94
- page: number;
95
- }
96
- /**
97
- * Type for row formatter functions used in table display.
98
- * Each formatter takes an entity and returns an array of string values.
99
- *
100
- * @example
101
- * const formatEntryRow: RowFormatter<ManagementEntry> = (entry) => [
102
- * entry.identifier,
103
- * entry.status,
104
- * formatDateShort(entry.updatedAt),
105
- * ];
106
- */
107
- export type RowFormatter<T> = (item: T) => string[];
108
- /**
109
- * Entry format written to content/entries/*.json.
110
- * Operational fields such as manual ordering and unpublished state live in
111
- * metadata so entry files remain authoring-focused.
112
- */
113
- export interface EntryContentFileOutput {
114
- identifier: string;
115
- data: Record<string, unknown>;
116
- status: 'draft' | 'published';
117
- /** Slug for URL routing - only present for routable content types */
118
- slug?: string;
119
- blocks?: Record<string, Array<{
120
- identifier: string | null;
121
- kind: string;
122
- content: Record<string, unknown>;
123
- }>>;
124
- }
125
- /**
126
- * Map an entry from API response to pull output format.
127
- * Conditionally includes slug only for routable content (when slug is defined).
128
- */
129
- export interface EntryForOutput {
130
- identifier: string;
131
- data: Record<string, unknown>;
132
- status: 'draft' | 'published';
133
- hasUnpublishedChanges: boolean;
134
- slug?: string;
135
- title?: string;
136
- manualOrder?: number;
137
- blocks?: EntryContentFileOutput['blocks'];
138
- }
139
- export declare function mapEntryForOutput<T extends EntryForOutput>(entry: T): EntryContentFileOutput;
140
- /**
141
- * Parse pagination options from command flags.
142
- *
143
- * @param options - Object containing optional limit and page strings
144
- * @returns Parsed pagination values with defaults
145
- *
146
- * @example
147
- * const { limit, page } = parsePaginationOptions({ limit: '10', page: '2' });
148
- */
149
- export declare function parsePaginationOptions(options: PaginationOptions): ParsedPagination;
150
- /**
151
- * Format an ISO date string to a short date (YYYY-MM-DD).
152
- *
153
- * @param isoDate - ISO date string (e.g., "2024-01-15T10:30:00Z")
154
- * @returns Short date string (e.g., "2024-01-15")
155
- *
156
- * @example
157
- * formatDateShort("2024-01-15T10:30:00Z") // "2024-01-15"
158
- */
159
- export declare function formatDateShort(isoDate: string): string;
160
- /**
161
- * Parse JSON data from --data flag or --file flag.
162
- *
163
- * @param options - Object containing optional data string or file path
164
- * @returns Parsed JSON object
165
- * @throws Error if neither data nor file is provided
166
- * @throws SyntaxError if JSON is invalid
167
- *
168
- * @example
169
- * const data = await parseJsonData({ data: '{"title": "Hello"}' });
170
- * const data = await parseJsonData({ file: './content.json' });
171
- */
172
- export declare function parseJsonData(options: DataInputOptions): Promise<Record<string, unknown>>;
173
- /**
174
- * Parse JSON array from --data flag or --file flag.
175
- * Handles both direct array format and { items: [...] } wrapper format.
176
- *
177
- * @param options - Object containing optional data string or file path
178
- * @returns Parsed JSON array
179
- *
180
- * @example
181
- * const items = await parseJsonArray({ file: './items.json' });
182
- */
183
- export declare function parseJsonArray<T>(options: DataInputOptions): Promise<T[]>;
184
- /**
185
- * Prompt for confirmation unless --yes is provided.
186
- * Remote operations always require --yes for safety.
187
- *
188
- * @param message - Confirmation message to display
189
- * @param options - Object containing optional yes flag
190
- * @param isRemote - Whether this is a remote operation
191
- * @returns True if confirmed, false otherwise
192
- *
193
- * @example
194
- * const confirmed = await confirmAction('Delete entry "post-1"?', { yes: false }, true);
195
- * if (!confirmed) return;
196
- */
197
- export declare function confirmAction(message: string, options: ConfirmOptions, isRemote: boolean): Promise<boolean>;
198
- /**
199
- * Parse the --env flag value into an array of environment targets.
200
- *
201
- * @param env - The --env flag value (local, remote, or both)
202
- * @returns Array of environment targets
203
- * @throws Error if invalid value
204
- *
205
- * @example
206
- * parseEnvTargets('local') // ['local']
207
- * parseEnvTargets('remote') // ['remote']
208
- * parseEnvTargets('both') // ['local', 'remote']
209
- */
210
- export declare function parseEnvTargets(env: string): EnvTarget[];
211
- /**
212
- * Run an operation for multiple environment targets in parallel.
213
- * Continues execution even if one environment fails.
214
- *
215
- * @param targets - Environment targets to run the operation for
216
- * @param operation - Async operation to run for each target
217
- * @param output - Output context for logging
218
- * @returns Map of results for each environment
219
- *
220
- * @example
221
- * const results = await runForEnvironments(
222
- * ['local', 'remote'],
223
- * async (target) => {
224
- * const client = createClientForEnv(target);
225
- * return client.push(content);
226
- * },
227
- * output
228
- * );
229
- */
230
- export declare function runForEnvironments<T>(targets: EnvTarget[], operation: (target: EnvTarget) => Promise<T>, output: OutputContext, options?: {
231
- /**
232
- * Optional predicate to determine logical success for fulfilled operations.
233
- * If omitted, any fulfilled operation is treated as success.
234
- */
235
- isResultSuccess?: (result: T) => boolean;
236
- /**
237
- * Optional formatter for logical-failure errors in results by environment output.
238
- */
239
- formatFailure?: (result: T) => string;
240
- }): Promise<Map<EnvTarget, EnvResult<T>>>;
241
- /**
242
- * Check if all environments succeeded.
243
- */
244
- export declare function allEnvSucceeded<T>(results: Map<EnvTarget, EnvResult<T>>): boolean;
245
- /**
246
- * Create a management client for a specific environment target.
247
- *
248
- * @param target - Environment target (local or remote)
249
- * @returns Management client configured for that environment
250
- */
251
- export declare function createClientForEnv(target: EnvTarget): ManagementClient;
252
- /**
253
- * Create command context with output, client, and environment info.
254
- *
255
- * @param command - Commander command instance
256
- * @returns Context object with output, client, environment targets, and flags
257
- *
258
- * @example
259
- * const ctx = createCommandContext(command);
260
- * ctx.output.info('Starting...');
261
- * await ctx.client.entries.get('post', 'my-post');
262
- */
263
- export declare function createCommandContext(command: Command): CommandContext;
264
- /**
265
- * Get global options and output context without creating a client.
266
- * Useful when you need to check conditions before creating the client.
267
- *
268
- * @param command - Commander command instance
269
- * @returns Object with output, environment info, and globalOpts
270
- */
271
- export declare function getOutputContext(command: Command): {
272
- output: OutputContext;
273
- isRemote: boolean;
274
- envTargets: EnvTarget[];
275
- globalOpts: GlobalOptions;
276
- };
277
- /**
278
- * Handle errors in a consistent way across all commands.
279
- *
280
- * @param error - The error that occurred
281
- * @param output - Output context for displaying errors
282
- *
283
- * @example
284
- * try {
285
- * await doSomething();
286
- * } catch (error) {
287
- * handleCommandError(error, output);
288
- * }
289
- */
290
- export declare function handleCommandError(error: unknown, output: OutputContext, ctx?: CliErrorContext): void;
291
- /**
292
- * Wrap an async command action with standard error handling.
293
- *
294
- * @param action - The async action to wrap
295
- * @returns Wrapped action that handles errors
296
- *
297
- * @example
298
- * .action(withErrorHandling(async (args, options, command) => {
299
- * const ctx = createCommandContext(command);
300
- * // ... command logic
301
- * }))
302
- */
303
- export declare function withErrorHandling<TArgs extends unknown[]>(action: (...args: [...TArgs, Command]) => Promise<void>): (...args: [...TArgs, Command]) => Promise<void>;
304
- /**
305
- * Wrap a command action so handlers receive a resolved command context instead
306
- * of the raw Commander instance.
307
- */
308
- export declare function withCommandContext<TArgs extends unknown[], TOptions = unknown>(action: (ctx: CommandContext, ...args: [...TArgs, TOptions]) => Promise<void>): (...args: [...TArgs, TOptions, Command]) => Promise<void>;
309
- /**
310
- * Wrap a destructive command action with confirmation prompt and error handling.
311
- *
312
- * @param getMessage - Function that builds the confirmation message from command args
313
- * @param action - The async action to perform after confirmation
314
- * @returns Wrapped action that confirms, then executes with error handling
315
- *
316
- * @example
317
- * .action(withConfirmation(
318
- * (type, identifier) => `Delete entry "${type}/${identifier}"?`,
319
- * async (ctx, type, identifier) => {
320
- * ctx.output.info(`Deleting entry: ${type}/${identifier}`);
321
- * await ctx.client.entries.delete(type, identifier);
322
- * ctx.output.success(`Entry deleted: ${identifier}`);
323
- * }
324
- * ))
325
- */
326
- export declare function withConfirmation<TArgs extends unknown[]>(getMessage: (...args: TArgs) => string, action: (ctx: CommandContext, ...args: TArgs) => Promise<void>): (...args: [...TArgs, ConfirmOptions, Command]) => Promise<void>;
327
- /**
328
- * Configuration for get command factory.
329
- */
330
- export interface GetCommandConfig<T> {
331
- /** Resource name for display (e.g., 'entry', 'page') */
332
- resourceName: string;
333
- /** Argument names (e.g., ['type', 'identifier'] or ['identifier']) */
334
- args: readonly string[];
335
- /** Function to fetch the resource */
336
- get: (client: ManagementClient, ...args: string[]) => Promise<T | null>;
337
- /** Function to format the resource for non-JSON output */
338
- formatOutput: (item: T) => Record<string, unknown>;
339
- }
340
- /**
341
- * Create a get command for a resource.
342
- *
343
- * @example
344
- * const getCommand = createGetCommand({
345
- * resourceName: 'entry',
346
- * args: ['type', 'identifier'],
347
- * get: (client, type, id) => client.entries.get(type, id),
348
- * formatOutput: (entry) => ({
349
- * id: entry.id,
350
- * status: entry.status,
351
- * }),
352
- * });
353
- */
354
- export declare function createGetCommand<T>(config: GetCommandConfig<T>): Command;
355
- /**
356
- * Result type for list operations.
357
- */
358
- export interface ListResult<T> {
359
- items: T[];
360
- pagination?: {
361
- page: number;
362
- limit: number;
363
- total: number;
364
- };
365
- }
366
- /**
367
- * Configuration for list command factory.
368
- */
369
- export interface ListCommandConfig<T> {
370
- /** Resource name for display (e.g., 'entry', 'page') */
371
- resourceName: string;
372
- /** Plural resource name (e.g., 'entries', 'pages') */
373
- resourceNamePlural: string;
374
- /** Argument names (e.g., ['type'] for entries, [] for pages) */
375
- args: readonly string[];
376
- /** Whether this list supports pagination options */
377
- hasPagination: boolean;
378
- /** Function to fetch the list - receives args as array plus optional pagination */
379
- list: (client: ManagementClient, args: string[], pagination?: ParsedPagination) => Promise<ListResult<T>>;
380
- /** Table column headers */
381
- tableHeaders: string[];
382
- /** Row formatter for table display */
383
- formatRow: RowFormatter<T>;
384
- }
385
- /**
386
- * Create a list command for a resource.
387
- *
388
- * @example
389
- * const listCommand = createListCommand({
390
- * resourceName: 'entry',
391
- * resourceNamePlural: 'entries',
392
- * args: ['type'],
393
- * hasPagination: true,
394
- * list: (client, [type], pagination) => client.entries.list(type, pagination),
395
- * tableHeaders: ['Identifier', 'Status', 'Updated'],
396
- * formatRow: (entry) => [entry.identifier, entry.status, entry.updatedAt],
397
- * });
398
- */
399
- export declare function createListCommand<T>(config: ListCommandConfig<T>): Command;
@@ -1,11 +0,0 @@
1
- /**
2
- * Riverbank CMS SDK CLI
3
- *
4
- * CLI tools for SDK site developers.
5
- * Supports bidirectional content management: pull content from CMS and push content back.
6
- *
7
- * This module is the bin entry point: it loads env files, then runs the CLI via
8
- * `runCli`, which owns the process exit code and guarantees exactly one JSON
9
- * envelope per invocation under `--json`. The command tree lives in `program.ts`.
10
- */
11
- export {};
@@ -1,16 +0,0 @@
1
- /**
2
- * Shared constants for init-docs functionality.
3
- */
4
- /**
5
- * Deprecated theme fields to omit from documentation.
6
- * Empty since legacy fields (customCss, blockCustomCss) have been removed from the schema.
7
- */
8
- export declare const DEPRECATED_THEME_FIELDS: string[];
9
- /**
10
- * Category mapping for theme schema fields.
11
- * Maps field names to their documentation category.
12
- *
13
- * When adding new top-level fields to themeSchema, add them here
14
- * to ensure proper categorization in generated docs.
15
- */
16
- export declare const THEME_FIELD_CATEGORY_MAP: Record<string, string[]>;
@@ -1,12 +0,0 @@
1
- type InitDocsOptions = {
2
- rootDir: string;
3
- configPath?: string;
4
- agentsPath: string;
5
- output?: {
6
- info(message: string, data?: unknown): void;
7
- warn(message: string, data?: unknown): void;
8
- success(message: string, data?: unknown): void;
9
- };
10
- };
11
- export declare function initDocs(options: InitDocsOptions): Promise<void>;
12
- export {};
@@ -1,18 +0,0 @@
1
- import type { RiverbankSiteConfig } from '../../config/types';
2
- type SectionState = {
3
- config?: RiverbankSiteConfig;
4
- errorMessage?: string;
5
- };
6
- export declare function getGeneratedMarkers(): {
7
- start: string;
8
- end: string;
9
- };
10
- export declare function buildSchemaTemplate(state: SectionState): string;
11
- export declare function buildBlockTypesTemplate(): string;
12
- export declare function buildSiteBlockTypesTemplate(state: SectionState): string;
13
- export declare function buildSchemaGeneratedSection(state: SectionState): string;
14
- export declare function buildBlockTypesGeneratedSection(): string;
15
- export declare function buildSiteBlockTypesGeneratedSection(state: SectionState): string;
16
- export declare function buildThemeSchemaTemplate(): string;
17
- export declare function buildThemeSchemaGeneratedSection(): string;
18
- export {};
@@ -1,28 +0,0 @@
1
- /**
2
- * Zod Schema Introspection Utility
3
- *
4
- * Walks Zod schemas and generates markdown documentation.
5
- * Uses Zod's internal _def property for introspection.
6
- */
7
- import type { ZodTypeAny } from 'zod';
8
- export type SchemaFieldInfo = {
9
- name: string;
10
- type: string;
11
- optional: boolean;
12
- nullable: boolean;
13
- description?: string;
14
- enumValues?: string[];
15
- literalValue?: string;
16
- children?: SchemaFieldInfo[];
17
- arrayElementType?: string;
18
- recordValueType?: string;
19
- defaultValue?: unknown;
20
- };
21
- /**
22
- * Extract information from a schema recursively
23
- */
24
- export declare function extractSchemaInfo(schema: ZodTypeAny, skipFields?: string[]): SchemaFieldInfo[];
25
- /**
26
- * Group fields by category for documentation organization
27
- */
28
- export declare function groupFieldsByCategory(fields: SchemaFieldInfo[]): Map<string, SchemaFieldInfo[]>;
@@ -1,14 +0,0 @@
1
- /**
2
- * Config file loader for riverbank.config.ts
3
- *
4
- * Uses jiti to load TypeScript config files at runtime without
5
- * requiring a build step.
6
- */
7
- /**
8
- * Load builder config from a TypeScript file.
9
- *
10
- * @param configPath - Path to config file, or directory containing riverbank.config.ts
11
- * @returns The loaded config object
12
- * @throws Error if config file not found or invalid
13
- */
14
- export declare function loadConfigFile(configPath?: string): Promise<unknown>;
@@ -1,18 +0,0 @@
1
- import type { PulledContent } from '../../client/management/types';
2
- import type { LocalContent } from '../content/reader';
3
- export type MediaValue = {
4
- type: 'image' | 'video' | 'audio' | 'document' | 'spreadsheet' | 'archive';
5
- identifier?: string | null;
6
- assetId?: string;
7
- storagePath?: string;
8
- storageBucket?: string;
9
- src?: string;
10
- mimeType?: string;
11
- width?: number;
12
- height?: number;
13
- [key: string]: unknown;
14
- };
15
- type MediaValueHandler = (value: MediaValue, location: string) => void;
16
- export declare const walkLocalContentMedia: (content: LocalContent, handler: MediaValueHandler) => void;
17
- export declare const walkPulledContentMedia: (content: PulledContent, handler: MediaValueHandler) => void;
18
- export {};
@@ -1,14 +0,0 @@
1
- import type { LocalMediaManifest } from '../content/media-manifest';
2
- export type LocalMediaFile = {
3
- identifier: string;
4
- filename: string;
5
- filePath: string;
6
- mimeType: string;
7
- checksum: string;
8
- data: Buffer;
9
- };
10
- export declare const MEDIA_DIR_NAME = "media";
11
- export declare function loadLocalMediaFile(contentDir: string, identifier: string, manifest: LocalMediaManifest): Promise<LocalMediaFile | null>;
12
- export declare function writeLocalMediaFile(contentDir: string, filename: string, data: Buffer): Promise<string>;
13
- export declare function readLocalMediaChecksum(filePath: string): Promise<string>;
14
- export declare function localMediaFileExists(filePath: string): Promise<boolean>;