@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.
- package/README.md +51 -266
- package/dist/{PreviewEditorSidebar-B43CJ0g_.mjs → PreviewEditorSidebar-DiEpbOdw.mjs} +313 -239
- package/dist/{PreviewEditorUI-DHirVkeM.mjs → PreviewEditorUI-C6MvxnIa.mjs} +3 -3
- package/dist/{PreviewQueryProvider-B1kbhaJD.mjs → PreviewQueryProvider-C2rnoPz6.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-BJumZy1B.mjs → SdkPreviewModeRuntime-DRXA_m5L.mjs} +208 -211
- package/dist/{SiteChromeCustomizeContext-D9SlpwEj.mjs → SiteChromeCustomizeContext-BTHdv5_-.mjs} +6222 -6190
- package/dist/_dts/ai/src/contracts/commandExposure.d.ts +1 -1
- package/dist/_dts/ai/src/contracts/proposalPrimitives.d.ts +52 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +9438 -33588
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +32572 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +21 -9
- package/dist/_dts/api/src/bookingConfig.d.ts +4 -46
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +13 -11
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -0
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -5
- package/dist/_dts/api/src/endpoints.d.ts +14 -21
- package/dist/_dts/api/src/eventManagementContracts.d.ts +76 -0
- package/dist/_dts/api/src/index.d.ts +5 -3
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +22 -47
- package/dist/_dts/api/src/sdk-event-management.d.ts +53 -0
- package/dist/_dts/api/src/sdk-event-schedule.d.ts +8 -6
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +112 -20
- package/dist/_dts/api/src/sdkContracts.d.ts +74 -115
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +35 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +4517 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +18 -29
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +23 -37
- package/dist/_dts/blocks/src/contracts/index.d.ts +2 -0
- package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +6 -8
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +36 -14
- package/dist/_dts/blocks/src/index.d.ts +5 -3
- package/dist/_dts/blocks/src/lib/media.d.ts +9 -539
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -2
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +135 -90
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shop.shared.d.ts +37 -4
- package/dist/_dts/blocks/src/system/blocks/site-footer-nav-groups-layout.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +3 -0
- package/dist/_dts/blocks/src/system/componentFactory.d.ts +5 -5
- package/dist/_dts/blocks/src/system/customize/backgrounds.d.ts +8 -6
- package/dist/_dts/blocks/src/system/customize/serializeBackgroundOverride.d.ts +3 -0
- package/dist/_dts/blocks/src/system/fields/background.d.ts +2 -20
- package/dist/_dts/blocks/src/system/fields/backgroundContent.d.ts +17 -0
- package/dist/_dts/blocks/src/system/fields/backgroundContentAudit.d.ts +20 -0
- package/dist/_dts/blocks/src/system/fields/boxStyles.d.ts +5 -33
- package/dist/_dts/blocks/src/system/fragments/builder.d.ts +1 -0
- package/dist/_dts/blocks/src/system/fragments/types.d.ts +1 -0
- package/dist/_dts/blocks/src/system/helpers/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/helpers/resolveBackground.d.ts +10 -45
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +7 -4
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/writeCanonicalization.d.ts +4 -0
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +123 -55
- package/dist/_dts/blocks/src/system/registry.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +2 -37
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +61 -24
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +30 -12
- package/dist/_dts/blocks/src/system/runtime/header/enhanceHeaderSection.d.ts +3 -5
- package/dist/_dts/blocks/src/system/runtime/header/headerScrollRuntime.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/header/runtimeContract.d.ts +22 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/display.d.ts +9 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/commerce/shared/view.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.client.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.frame.d.ts +21 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/header-section.server.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +41 -12
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.pass-contract.d.ts +3 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.state.d.ts +3 -3
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/surfaceForegroundStyles.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/registry/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/boxStyles.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/registry/core.d.ts +4 -1
- package/dist/_dts/blocks/src/system/transforms/registry/headerRuntime.d.ts +3 -0
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +0 -3
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +41 -43
- package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +4 -2
- package/dist/_dts/content-editor/src/FooterComposerPanel.d.ts +2 -17
- package/dist/_dts/content-editor/src/FooterNavigationLayoutControl.d.ts +5 -0
- package/dist/_dts/content-editor/src/footerComposer.d.ts +2 -1
- package/dist/_dts/content-editor/src/footerComposerPanelTypes.d.ts +21 -0
- package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +2 -1
- package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +11 -1
- package/dist/_dts/content-editor/src/useFooterNavigationLayout.d.ts +26 -0
- package/dist/_dts/content-model/src/templates/defaults.d.ts +7 -0
- package/dist/_dts/core/src/booking-date-time.d.ts +2 -2
- package/dist/_dts/core/src/booking-time-zone.d.ts +6 -0
- package/dist/_dts/core/src/footer-composition-types.d.ts +4 -4
- package/dist/_dts/core/src/footer-navigation-layout.d.ts +4 -0
- package/dist/_dts/core/src/index.d.ts +1 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +38 -18
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/FooterSidebarDisclosure.d.ts +8 -0
- package/dist/_dts/preview-next/src/client/preview/PageBlockEditorPanel.d.ts +5 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +15 -17
- package/dist/_dts/preview-next/src/client/preview/PreviewFooterEditorPanel.d.ts +20 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -5
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +6 -7
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +7 -7
- package/dist/_dts/preview-next/src/client/preview/siteChromeCustomizeTypes.d.ts +4 -4
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +12 -11
- package/dist/_dts/preview-next/src/client/preview/siteChromeSelectionRows.d.ts +53 -0
- package/dist/_dts/preview-next/src/client/preview/siteStyleAccess.d.ts +1 -6
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +6 -15
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +4 -6
- package/dist/_dts/sdk/src/config/types.d.ts +5 -4
- package/dist/_dts/sdk/src/config/validation.d.ts +2 -0
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +4 -41
- package/dist/_dts/sdk/src/next/catch-all-theme-admission.d.ts +23 -0
- package/dist/_dts/sdk/src/next/index.d.ts +8 -6
- package/dist/_dts/sdk/src/next/resolveTheme.d.ts +1 -2
- package/dist/_dts/sdk/src/next/types.d.ts +10 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -16
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +5 -3
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +4 -2
- package/dist/_dts/sdk/src/rendering/index.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +11 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/blockOverrides.d.ts +1 -1
- package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +184 -0
- package/dist/_dts/theme-core/src/buttons/buttonColourContract.d.ts +96 -0
- package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +78 -0
- package/dist/_dts/theme-core/src/buttons/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/buttons/parseThemeForPersistence.d.ts +2 -2
- package/dist/_dts/theme-core/src/buttons/resolveButtonColourStates.d.ts +9 -57
- package/dist/_dts/theme-core/src/buttons/resolvedButtonCss.d.ts +6 -3
- package/dist/_dts/theme-core/src/buttons/styles/domain.d.ts +8 -7
- package/dist/_dts/theme-core/src/buttons/styles/recipes/quietArrow.d.ts +1 -0
- package/dist/_dts/theme-core/src/buttons/styles/recipes/staticRecipes.d.ts +11 -0
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +12 -0
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +5 -0
- package/dist/_dts/theme-core/src/buttons/types.d.ts +51 -4
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/lib/media.d.ts +583 -10
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +5117 -1433
- package/dist/_dts/theme-core/src/palette/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/schema.d.ts +5079 -2005
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +6 -14
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +29 -102
- package/dist/_dts/theme-core/src/site-styles/customizableSurfaces.d.ts +3 -76
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -7
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipelineHelpers.d.ts +17 -0
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +281 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutResolution.d.ts +13 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutStyles.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutTypes.d.ts +142 -0
- package/dist/_dts/theme-core/src/site-styles/headerNavStyles.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +7 -4
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/imageSurfaceBackground.d.ts +14 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +14 -41
- package/dist/_dts/theme-core/src/site-styles/runtimeBackgroundResolution.d.ts +23 -0
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +8 -6
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +1 -1
- package/dist/client/{CourseRegistrationWizard-xRmA7REV.mjs → CourseRegistrationWizard-Bvtz9G9g.mjs} +5 -5
- package/dist/client/{DiscountCodeDisclosure-B9vriL5C.mjs → DiscountCodeDisclosure-Ur-Xx1U_.mjs} +1 -1
- package/dist/client/{EventCombined.client-BgVnVTlz.mjs → EventCombined.client-EhscD4U6.mjs} +2 -2
- package/dist/client/{EventListing.client-CqdsO7jO.mjs → EventListing.client-Bn26cFTY.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-CKPxot9M.mjs → LeafletStaticMap-BUw9Ntzr.mjs} +1 -1
- package/dist/client/{StepIndicator-DGCYuBJ1.mjs → StepIndicator-BfbdiVQI.mjs} +2 -2
- package/dist/client/{accordion-BfN5Eqd-.mjs → accordion-CjIeof73.mjs} +1 -1
- package/dist/client/{bookingForm-DOvCpBFP.mjs → bookingForm-DwEeovf_.mjs} +5 -5
- package/dist/client/bookings.mjs +1028 -1038
- package/dist/client/{carousel-DPNmiH0f.mjs → carousel-BMrfgOba.mjs} +1 -1
- package/dist/client/{cart--egVXlrR.mjs → cart-rXEdxTdb.mjs} +3 -3
- package/dist/client/{checkout-DywWtMcq.mjs → checkout-D3JlSzh3.mjs} +3 -3
- package/dist/client/client.mjs +18324 -18224
- package/dist/client/{courseRegistration-Dk9qFVwt.mjs → courseRegistration-DO5XvMAA.mjs} +2 -2
- package/dist/client/{eventCalendar-Bkz2HjlS.mjs → eventCalendar-DO6rTqCn.mjs} +4 -4
- package/dist/client/{eventCombined-D4kipYWg.mjs → eventCombined-bJ3i_ovU.mjs} +2 -2
- package/dist/client/{eventDetails-Dz_5ix2Q.mjs → eventDetails-CCbrXE7o.mjs} +3 -3
- package/dist/client/{eventListing-D0vm-zST.mjs → eventListing-Bdlt9YTm.mjs} +2 -2
- package/dist/client/{eventRegistration-Cw1E4Q4p.mjs → eventRegistration-B02lt6iY.mjs} +6 -6
- package/dist/client/{form-C2Zf1n3K.mjs → form-DrUBAAox.mjs} +1 -1
- package/dist/client/{headerSection-CP05gzdc.mjs → headerSection-MzqvHL6T.mjs} +151 -104
- package/dist/client/hooks.mjs +4550 -4211
- package/dist/client/{locationMap-Cl3x9PYJ.mjs → locationMap-DG8BxTBm.mjs} +2 -2
- package/dist/client/{newsletterForm-DyEJoClm.mjs → newsletterForm-BzO-Td3p.mjs} +1 -1
- package/dist/client/{pricing-DGuNR1W4.mjs → pricing-NgK7ozkg.mjs} +1 -1
- package/dist/client/{productDetail-Cq-HrGew.mjs → productDetail-CfQ7rhVK.mjs} +3 -3
- package/dist/client/{productList-DbB3jwqd.mjs → productList-C23rOLUi.mjs} +3 -3
- package/dist/client/{propsDecoder-CiTuhUwY.mjs → propsDecoder-CAZdhwjs.mjs} +2166 -2157
- package/dist/client/rendering/client.mjs +3606 -4078
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +15969 -15843
- package/dist/client/{scrollToBlock-CShkRqab.mjs → scrollToBlock-DSSqVQr1.mjs} +1 -1
- package/dist/client/{shop-Cu4Ib-ZA.mjs → shop-BMToKLK7.mjs} +34 -23
- package/dist/client/{shop-commerce-BzpsOdh7.mjs → shop-commerce-DB4JRKmp.mjs} +4 -4
- package/dist/client/{shop-commerce-store-DaE7Fhj8.mjs → shop-commerce-store-BOqSIOuc.mjs} +1 -1
- package/dist/client/{shopShared-cF0c20vB.mjs → shopShared-B6SK9DZv.mjs} +9 -3
- package/dist/client/{useEventFilters-QZ3HMgaJ.mjs → useEventFilters-CULOa4nB.mjs} +2 -2
- package/dist/client/{usePolling-BKf0GcE-.mjs → usePolling-BGG_8-jl.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +16 -27
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +16 -27
- package/dist/{previewAuthStore-BesgU5Xu.mjs → previewAuthStore-_GXFRg2W.mjs} +16 -27
- package/dist/{sdk-runtime-CfZd5pAm.mjs → sdk-runtime-hhSOMShR.mjs} +2 -2
- package/dist/{separator-DkTe68HE.mjs → separator-flRaFc14.mjs} +1 -1
- package/dist/server/components.mjs +17802 -17875
- package/dist/server/config-validation.mjs +4729 -4416
- package/dist/server/config.mjs +4733 -4420
- package/dist/server/data.mjs +4533 -4211
- package/dist/server/date-time.mjs +22 -13
- package/dist/server/index.mjs +17 -28
- package/dist/server/manifest.mjs +4966 -0
- package/dist/server/next.mjs +17635 -17676
- package/dist/server/page-converter.mjs +3759 -4386
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +18960 -19049
- package/dist/server/rendering.mjs +17848 -17902
- package/dist/server/routing.mjs +4776 -4323
- package/dist/server/server.mjs +4609 -4264
- package/dist/server/theme-bridge.mjs +1361 -1850
- package/dist/server/theme.mjs +736 -605
- package/dist/styles/index.css +22 -3
- package/package.json +9 -12
- package/dist/_dts/api/src/event-presentation.d.ts +0 -14
- package/dist/_dts/blocks/src/definitions.d.ts +0 -14
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +0 -66
- package/dist/_dts/sdk/src/cli/canonical-entry-policy.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/commands/audit.d.ts +0 -101
- package/dist/_dts/sdk/src/cli/commands/block.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/commands/compare.d.ts +0 -62
- package/dist/_dts/sdk/src/cli/commands/content-type.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/content.d.ts +0 -56
- package/dist/_dts/sdk/src/cli/commands/delete.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +0 -43
- package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/commands/entry.d.ts +0 -55
- package/dist/_dts/sdk/src/cli/commands/env.d.ts +0 -31
- package/dist/_dts/sdk/src/cli/commands/event.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/commands/identifiers.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/commands/manifest.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/media-validation.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/migrate.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/commands/navigation.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/commands/page.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +0 -50
- package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +0 -70
- package/dist/_dts/sdk/src/cli/commands/pull-scope-diff.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +0 -43
- package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +0 -19
- package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +0 -42
- package/dist/_dts/sdk/src/cli/commands/push/execute/localMediaReporting.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/commands/push/execute/media.d.ts +0 -22
- package/dist/_dts/sdk/src/cli/commands/push/execute/metadata.d.ts +0 -1
- package/dist/_dts/sdk/src/cli/commands/push/execute/reporting.d.ts +0 -7
- package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +0 -63
- package/dist/_dts/sdk/src/cli/commands/push/filter.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/commands/push/metadata.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/commands/push/normalizeLocalContent.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/commands/push/publishGuidance.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -25
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +0 -83
- package/dist/_dts/sdk/src/cli/commands/push/scopes/eventCategories.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/scopes/events.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/scopes/mediaPrep.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/push/scopes/pushScopeGeneric.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +0 -87
- package/dist/_dts/sdk/src/cli/commands/push/scopes/venues.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/stale-resolution.d.ts +0 -48
- package/dist/_dts/sdk/src/cli/commands/push/stale.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +0 -56
- package/dist/_dts/sdk/src/cli/commands/push/workflowPlan.d.ts +0 -34
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +0 -54
- package/dist/_dts/sdk/src/cli/commands/push.d.ts +0 -40
- package/dist/_dts/sdk/src/cli/commands/setup.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +0 -60
- package/dist/_dts/sdk/src/cli/commands/verify.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +0 -44
- package/dist/_dts/sdk/src/cli/config-loader.d.ts +0 -47
- package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/content/edit/format.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/content/edit/path.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/content/edit/planner.d.ts +0 -46
- package/dist/_dts/sdk/src/cli/content/entryPaths.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/content/footerFile.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/content/fs-utils.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +0 -5
- package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/content/media-manifest.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +0 -25
- package/dist/_dts/sdk/src/cli/content/metadataStore.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -488
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +0 -142
- package/dist/_dts/sdk/src/cli/env-scope.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/env.d.ts +0 -71
- package/dist/_dts/sdk/src/cli/errors.d.ts +0 -62
- package/dist/_dts/sdk/src/cli/helpers/ai-runtime.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/helpers.d.ts +0 -399
- package/dist/_dts/sdk/src/cli/index.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/init-docs/constants.d.ts +0 -16
- package/dist/_dts/sdk/src/cli/init-docs/index.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/init-docs/templates.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/init-docs/zod-to-markdown.d.ts +0 -28
- package/dist/_dts/sdk/src/cli/load-config.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/media/identifiers.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/media/local-media.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/media/local-sync.d.ts +0 -91
- package/dist/_dts/sdk/src/cli/media/portable.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/media/rich-text.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/media/value-utils.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/media/write-guard.d.ts +0 -52
- package/dist/_dts/sdk/src/cli/merge-remote/entryLocal.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/merge-remote/entryMerge.d.ts +0 -78
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePlan.d.ts +0 -45
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergeReport.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/merge-remote/entryRemote.d.ts +0 -9
- package/dist/_dts/sdk/src/cli/merge-remote/entrySnapshots.d.ts +0 -48
- package/dist/_dts/sdk/src/cli/merge-remote/mergeFieldChanges.d.ts +0 -22
- package/dist/_dts/sdk/src/cli/merge-remote/pageLocal.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/merge-remote/pageMerge.d.ts +0 -78
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePlan.d.ts +0 -36
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +0 -46
- package/dist/_dts/sdk/src/cli/merge-remote/sharedBaseSnapshots.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergePlan.d.ts +0 -27
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergeReport.d.ts +0 -63
- package/dist/_dts/sdk/src/cli/migrations/entries.d.ts +0 -28
- package/dist/_dts/sdk/src/cli/migrations/events.d.ts +0 -73
- package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/output.d.ts +0 -133
- package/dist/_dts/sdk/src/cli/program.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/push-config.d.ts +0 -49
- package/dist/_dts/sdk/src/cli/setup/setupPlan.d.ts +0 -51
- package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +0 -170
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntimeCompat.d.ts +0 -21
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +0 -65
- package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +0 -68
- package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/site-commands/localBlockManifestResolver.d.ts +0 -31
- package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +0 -57
- package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +0 -82
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +0 -84
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionPlan.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +0 -97
- package/dist/_dts/sdk/src/cli/site-commands/residualSettingsTrimming.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/sync/diff.d.ts +0 -222
- package/dist/_dts/sdk/src/cli/sync/executor.d.ts +0 -84
- package/dist/_dts/sdk/src/cli/sync/field-diff.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/sync/mapper.d.ts +0 -41
- package/dist/_dts/sdk/src/cli/sync/media-sync.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/sync/media.d.ts +0 -158
- package/dist/_dts/sdk/src/cli/sync/syncResultAggregation.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/sync/validation.d.ts +0 -68
- package/dist/_dts/sdk/src/cli/utils/checksum.d.ts +0 -1
- package/dist/_dts/sdk/src/client/management/blocks.d.ts +0 -19
- package/dist/_dts/sdk/src/client/management/catalog.d.ts +0 -10
- package/dist/_dts/sdk/src/client/management/entries.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/eventCategories.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/events.d.ts +0 -7
- package/dist/_dts/sdk/src/client/management/footer.d.ts +0 -9
- package/dist/_dts/sdk/src/client/management/forms.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/http.d.ts +0 -79
- package/dist/_dts/sdk/src/client/management/identifiers.d.ts +0 -11
- package/dist/_dts/sdk/src/client/management/index.d.ts +0 -41
- package/dist/_dts/sdk/src/client/management/media.d.ts +0 -72
- package/dist/_dts/sdk/src/client/management/navigation.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/pages.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/pull.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/settings-branding.d.ts +0 -32
- package/dist/_dts/sdk/src/client/management/settings.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/theme.d.ts +0 -8
- package/dist/_dts/sdk/src/client/management/types.d.ts +0 -1069
- package/dist/_dts/sdk/src/client/management/venues.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/webhooks.d.ts +0 -3
- package/dist/_dts/sdk/src/test/env.d.ts +0 -4
- package/dist/_dts/site-commands/src/adapter.d.ts +0 -23
- package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +0 -100
- package/dist/_dts/site-commands/src/capabilityGaps.d.ts +0 -8
- package/dist/_dts/site-commands/src/commandContract.d.ts +0 -1277
- package/dist/_dts/site-commands/src/commandDomain.d.ts +0 -20
- package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +0 -7
- package/dist/_dts/site-commands/src/commandValidation.d.ts +0 -10
- package/dist/_dts/site-commands/src/commands.d.ts +0 -1983
- package/dist/_dts/site-commands/src/domain.d.ts +0 -104
- package/dist/_dts/site-commands/src/eventCommandContent.d.ts +0 -11
- package/dist/_dts/site-commands/src/exposure.d.ts +0 -41
- package/dist/_dts/site-commands/src/guards.d.ts +0 -1
- package/dist/_dts/site-commands/src/index.d.ts +0 -18
- package/dist/_dts/site-commands/src/metadata.d.ts +0 -555
- package/dist/_dts/site-commands/src/pagePaths.d.ts +0 -6
- package/dist/_dts/site-commands/src/planner.d.ts +0 -58
- package/dist/_dts/site-commands/src/refContributions.d.ts +0 -11
- package/dist/_dts/site-commands/src/refs.d.ts +0 -90
- package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +0 -405
- package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +0 -46
- package/dist/_dts/site-commands/src/stableJson.d.ts +0 -5
- package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +0 -10
- package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +0 -21
- package/dist/_dts/theme-core/src/data.d.ts +0 -12
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +0 -841
- package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +0 -4
- package/dist/cli/index.mjs +0 -162988
- package/dist/cli/init-docs/content/agents-section.md +0 -67
- package/dist/cli/init-docs/content/cli-reference.md +0 -1238
- package/dist/cli/init-docs/content/content-management.md +0 -792
- package/dist/cli/init-docs/content/context-brand.md +0 -125
- package/dist/cli/init-docs/content/context-brief.md +0 -77
- package/dist/cli/init-docs/content/context-knowledge.md +0 -111
- package/dist/cli/init-docs/content/getting-started.md +0 -171
- package/dist/cli/init-docs/content/site-workflows-readme.md +0 -96
- package/dist/cli/init-docs/content/workflow-add-block.md +0 -299
- package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +0 -83
- package/dist/cli/init-docs/content/workflow-block-extensions.md +0 -370
- package/dist/cli/init-docs/content/workflow-cmsify-page.md +0 -357
- package/dist/cli/init-docs/content/workflow-content-types.md +0 -330
- package/dist/cli/init-docs/content/workflow-create-page.md +0 -212
- package/dist/cli/init-docs/content/workflow-custom-block.md +0 -470
- package/dist/cli/init-docs/content/workflow-editor-workflows.md +0 -130
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +0 -158
- package/dist/cli/init-docs/content/workflow-preview-mode.md +0 -252
- package/dist/cli/init-docs/content/workflow-publish.md +0 -285
- package/dist/cli/init-docs/content/workflow-remote-setup.md +0 -51
- package/dist/cli/init-docs/content/workflow-templates.md +0 -381
- /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,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>;
|