@riverbankcms/sdk 0.123.0 → 0.125.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/README.md +14 -9
  2. package/dist/{PreviewEditorSidebar-DvJFmC29.mjs → PreviewEditorSidebar-BezDOtQ7.mjs} +22 -39
  3. package/dist/{PreviewEditorUI-DVHP4bCo.mjs → PreviewEditorUI-CgSqmfo2.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-07EE4uWL.mjs → PreviewQueryProvider-BH-3-jSj.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-BE5eFayo.mjs → SdkPreviewModeRuntime-Co3AHfj0.mjs} +1031 -1237
  6. package/dist/{SiteChromeCustomizeContext-4hn4A0HX.mjs → SiteChromeCustomizeContext-BHF-KANn.mjs} +1949 -2004
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +1236 -4152
  8. package/dist/_dts/api/src/accessAdmin.d.ts +2 -14
  9. package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +435 -0
  10. package/dist/_dts/api/src/bookingClosures.d.ts +3 -3
  11. package/dist/_dts/api/src/bookingConfig.d.ts +72 -73
  12. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +26 -35
  13. package/dist/_dts/api/src/bookingRecords.d.ts +4 -15
  14. package/dist/_dts/api/src/bookingVerticalCatalog.d.ts +746 -0
  15. package/dist/_dts/api/src/bookingVerticalPreset.d.ts +38 -0
  16. package/dist/_dts/api/src/bookingVerticals.d.ts +11 -652
  17. package/dist/_dts/api/src/bookings.d.ts +11 -9
  18. package/dist/_dts/api/src/cache-tags.d.ts +2 -2
  19. package/dist/_dts/api/src/commercePortalEndpoints.d.ts +10 -10
  20. package/dist/_dts/api/src/common/envelope.d.ts +2 -0
  21. package/dist/_dts/api/src/contentRuntime.d.ts +0 -17
  22. package/dist/_dts/api/src/courseEndpointDefinitions.d.ts +99 -0
  23. package/dist/_dts/api/src/courses.d.ts +22 -33
  24. package/dist/_dts/api/src/defineEndpointDefinitions.d.ts +14 -0
  25. package/dist/_dts/api/src/demoMutationPolicies.d.ts +4 -0
  26. package/dist/_dts/api/src/endpoints.d.ts +3740 -3733
  27. package/dist/_dts/api/src/event-destination-policy.d.ts +1 -1
  28. package/dist/_dts/api/src/event-presentation.d.ts +4 -9
  29. package/dist/_dts/api/src/index.d.ts +9 -11
  30. package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +376 -0
  31. package/dist/_dts/api/src/participantMessaging.d.ts +2 -2
  32. package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
  33. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +272 -0
  34. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +274 -0
  35. package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +31 -0
  36. package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +152 -0
  37. package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +95 -0
  38. package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +154 -0
  39. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +10 -962
  40. package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +52 -0
  41. package/dist/_dts/api/src/sdkContracts.d.ts +0 -51
  42. package/dist/_dts/api/src/sdkEntryReadEndpoints.d.ts +23 -0
  43. package/dist/_dts/api/src/siteAccessAdmin.d.ts +23 -0
  44. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +1 -38
  45. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +3 -4
  46. package/dist/_dts/billing/src/plans/types.d.ts +24 -5
  47. package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -15
  48. package/dist/_dts/blocks/src/contracts/index.d.ts +1 -1
  49. package/dist/_dts/blocks/src/contracts/non-block-islands.d.ts +4 -16
  50. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +8 -222
  51. package/dist/_dts/blocks/src/portal/types.d.ts +3 -3
  52. package/dist/_dts/blocks/src/subroutes/fold.d.ts +1 -14
  53. package/dist/_dts/blocks/src/subroutes/index.d.ts +1 -1
  54. package/dist/_dts/blocks/src/subroutes/kinds.d.ts +3 -3
  55. package/dist/_dts/blocks/src/system/blocks/course-details.d.ts +0 -11
  56. package/dist/_dts/blocks/src/system/blocks/course-registration.d.ts +3 -4
  57. package/dist/_dts/blocks/src/system/blocks/courses/shared/pricing.d.ts +1 -1
  58. package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +401 -12
  59. package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +9 -10
  60. package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +14 -13
  61. package/dist/_dts/blocks/src/system/blocks/events/event-listing.d.ts +1 -2
  62. package/dist/_dts/blocks/src/system/blocks/events/shared/filtering.d.ts +1 -4
  63. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +19 -18
  64. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +9 -11
  65. package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +2 -2
  66. package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
  67. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +10 -10
  68. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +10 -10
  69. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
  70. package/dist/_dts/blocks/src/system/runtime/api/types/appointments.d.ts +162 -0
  71. package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +59 -0
  72. package/dist/_dts/blocks/src/system/runtime/api/types/courses.d.ts +134 -0
  73. package/dist/_dts/blocks/src/system/runtime/api/types/discounts.d.ts +85 -0
  74. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +241 -0
  75. package/dist/_dts/blocks/src/system/runtime/api/types/forms.d.ts +53 -0
  76. package/dist/_dts/blocks/src/system/runtime/api/types/newsletter.d.ts +32 -0
  77. package/dist/_dts/blocks/src/system/runtime/api/types/portal.d.ts +220 -0
  78. package/dist/_dts/blocks/src/system/runtime/api/types/shop.d.ts +176 -0
  79. package/dist/_dts/blocks/src/system/runtime/api/types.d.ts +12 -1121
  80. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +20 -583
  81. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +9 -276
  82. package/dist/_dts/blocks/src/system/runtime/hooks/useEventFilters.d.ts +1 -12
  83. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +0 -1
  84. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessWholeSeriesRegistrationFlow.d.ts +0 -1
  85. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +2 -3
  86. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/logic.d.ts +1 -18
  87. package/dist/_dts/blocks/src/system/runtime/nodes/course-details/runs.d.ts +0 -2
  88. package/dist/_dts/blocks/src/system/runtime/nodes/course-details.server.d.ts +1 -5
  89. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/courseRegistrationViewState.d.ts +21 -0
  90. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/index.d.ts +1 -1
  91. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/pricing.d.ts +14 -0
  92. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/types.d.ts +0 -25
  93. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseEligibility.d.ts +24 -0
  94. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCoursePaymentVerification.d.ts +9 -0
  95. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationActions.d.ts +35 -0
  96. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationPortal.d.ts +7 -0
  97. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationSelection.d.ts +31 -0
  98. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseRegistrationWizard.d.ts +80 -55
  99. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/useCourseWaitlistSelection.d.ts +14 -0
  100. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration/whole-series-registration.headless.contract.d.ts +4 -5
  101. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.interactive.d.ts +0 -38
  102. package/dist/_dts/blocks/src/system/runtime/nodes/course-registration.server.d.ts +1 -1
  103. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +2 -0
  104. package/dist/_dts/blocks/src/system/runtime/nodes/event-details.client.d.ts +4 -3
  105. package/dist/_dts/blocks/src/system/runtime/nodes/event-details.server.d.ts +2 -2
  106. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +12 -0
  107. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +0 -4
  108. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +0 -9
  109. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +0 -5
  110. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +0 -11
  111. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +13 -0
  112. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +0 -21
  113. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.server.d.ts +1 -1
  114. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +24 -433
  115. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +1 -2
  116. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +52 -266
  117. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -15
  118. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventFilters.d.ts +0 -8
  119. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +1573 -0
  120. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listOptions.d.ts +1 -3
  121. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +2 -3
  122. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +2 -2
  123. package/dist/_dts/content-model/src/content-types/builtin-schemas.d.ts +0 -5
  124. package/dist/_dts/content-model/src/content-types/builtins.d.ts +0 -5
  125. package/dist/_dts/content-model/src/templates/defaults.d.ts +6 -3
  126. package/dist/_dts/core/src/editor-state.d.ts +1 -13
  127. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +1646 -37
  128. package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +6 -6
  129. package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +6 -1
  130. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +27 -4
  131. package/dist/_dts/sdk/src/cli/commands/audit.d.ts +1 -2
  132. package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +1 -1
  133. package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +4 -6
  134. package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +1 -1
  135. package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +1 -1
  136. package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -1
  137. package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +1 -1
  138. package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +23 -0
  139. package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +25 -0
  140. package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -52
  141. package/dist/_dts/sdk/src/cli/content/writer.d.ts +3 -81
  142. package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +6 -9
  143. package/dist/_dts/sdk/src/client/contentReadOperations.d.ts +40 -0
  144. package/dist/_dts/sdk/src/client/management/index.d.ts +1 -3
  145. package/dist/_dts/sdk/src/client/management/types.d.ts +3 -91
  146. package/dist/_dts/sdk/src/client/runtimeCacheKeys.d.ts +72 -0
  147. package/dist/_dts/sdk/src/client/runtimeCachePolicy.d.ts +10 -75
  148. package/dist/_dts/sdk/src/client/types.d.ts +7 -33
  149. package/dist/_dts/sdk/src/components.d.ts +1 -1
  150. package/dist/_dts/sdk/src/config/types.d.ts +1 -1
  151. package/dist/_dts/sdk/src/config/validation.d.ts +3 -6
  152. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  153. package/dist/_dts/sdk/src/contracts/page.d.ts +0 -8
  154. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -34
  155. package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +4 -3
  156. package/dist/_dts/sdk/src/next/catch-all-utils.d.ts +0 -11
  157. package/dist/_dts/sdk/src/next/catch-all.d.ts +1 -76
  158. package/dist/_dts/sdk/src/next/types.d.ts +0 -19
  159. package/dist/_dts/sdk/src/public-api/contracts.d.ts +7 -207
  160. package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
  161. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +2 -1
  162. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -2
  163. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +0 -7
  164. package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +81 -0
  165. package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
  166. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +1 -51
  167. package/dist/_dts/sdk/src/rendering/overrides.d.ts +2 -1
  168. package/dist/_dts/sdk/src/routing/entrySubroutes.d.ts +6 -6
  169. package/dist/_dts/sdk/src/routing/index.d.ts +0 -2
  170. package/dist/_dts/sdk/src/routing/resolveOccurrence.d.ts +3 -3
  171. package/dist/_dts/sdk/src/routing/resolvePageContent.d.ts +10 -39
  172. package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
  173. package/dist/_dts/sdk/src/version.d.ts +1 -1
  174. package/dist/_dts/site-commands/src/adapter.d.ts +1 -1
  175. package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +100 -0
  176. package/dist/_dts/site-commands/src/capabilityGaps.d.ts +2 -2
  177. package/dist/_dts/site-commands/src/commandContract.d.ts +1242 -0
  178. package/dist/_dts/site-commands/src/commandDomain.d.ts +20 -0
  179. package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +7 -0
  180. package/dist/_dts/site-commands/src/commandValidation.d.ts +10 -0
  181. package/dist/_dts/site-commands/src/commands.d.ts +729 -2659
  182. package/dist/_dts/site-commands/src/domain.d.ts +1 -1
  183. package/dist/_dts/site-commands/src/eventCommandContent.d.ts +11 -0
  184. package/dist/_dts/site-commands/src/exposure.d.ts +1 -1
  185. package/dist/_dts/site-commands/src/index.d.ts +6 -0
  186. package/dist/_dts/site-commands/src/metadata.d.ts +1 -27
  187. package/dist/_dts/site-commands/src/planner.d.ts +1 -1
  188. package/dist/_dts/site-commands/src/refContributions.d.ts +1 -1
  189. package/dist/_dts/site-commands/src/refs.d.ts +1 -4
  190. package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +378 -0
  191. package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +46 -0
  192. package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +2 -2
  193. package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +21 -0
  194. package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +58 -0
  195. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +1 -0
  196. package/dist/_dts/theme-core/src/site-styles/index.d.ts +1 -0
  197. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +47 -24
  198. package/dist/cli/index.mjs +7267 -8479
  199. package/dist/cli/init-docs/content/cli-reference.md +5 -21
  200. package/dist/cli/init-docs/content/content-management.md +4 -5
  201. package/dist/client/{DiscountCodeDisclosure-DIWj-P9v.mjs → DiscountCodeDisclosure-CyPpekBp.mjs} +2 -2
  202. package/dist/client/{EventCombined.client-De8YWBSr.mjs → EventCombined.client-zywit-60.mjs} +5 -16
  203. package/dist/client/{EventListing.client-seHTjimY.mjs → EventListing.client-J2nLhkKT.mjs} +3 -10
  204. package/dist/client/{LeafletStaticMap-BmQxFcJW.mjs → LeafletStaticMap-CSubXWt6.mjs} +1 -1
  205. package/dist/client/{MagicLinkForm-OoJAIUIj.mjs → MagicLinkForm-DDLIfiq9.mjs} +2 -2
  206. package/dist/client/{StepIndicator-CiZ8kdPk.mjs → StepIndicator-DE8EvHIp.mjs} +2 -2
  207. package/dist/client/{accordion-6lnN__XJ.mjs → accordion-Ct5T5NiA.mjs} +1 -1
  208. package/dist/client/{bookingForm-5uyqhONU.mjs → bookingForm-DMxtLPxw.mjs} +6 -6
  209. package/dist/client/bookings.mjs +753 -818
  210. package/dist/client/{carousel-Dtnifil_.mjs → carousel--FMqgvob.mjs} +1 -1
  211. package/dist/client/{cart-5Tc5S7NV.mjs → cart-BKX1bWiU.mjs} +3 -3
  212. package/dist/client/{checkout-CYKKN5Hr.mjs → checkout-B_jxi4WW.mjs} +3 -3
  213. package/dist/client/client.mjs +6876 -7150
  214. package/dist/client/{context-BGZNlGXB.mjs → context-CJz1Vlsz.mjs} +40 -43
  215. package/dist/client/{courseRegistration-CxCBybB4.mjs → courseRegistration-DH4MlkRD.mjs} +606 -621
  216. package/dist/client/{eventCalendar-Xj2jZS9X.mjs → eventCalendar-BQILwAcL.mjs} +5 -13
  217. package/dist/client/{eventCombined-CgcMoOgM.mjs → eventCombined-DFFW_Vmo.mjs} +3 -3
  218. package/dist/client/{eventDetails-CEAH8Edc.mjs → eventDetails-B045CTSJ.mjs} +147 -118
  219. package/dist/client/{eventListing-qyPVQ0wP.mjs → eventListing-BDMYNVzS.mjs} +3 -3
  220. package/dist/client/{eventRegistration-DDu79CtL.mjs → eventRegistration-CQ2-BSnB.mjs} +165 -68
  221. package/dist/client/{form-Bc7JKI7I.mjs → form-DJKuyZgN.mjs} +2 -2
  222. package/dist/client/{headerSection-vTku_LEl.mjs → headerSection-DeTjfiDo.mjs} +2 -2
  223. package/dist/client/hooks.mjs +3454 -2363
  224. package/dist/client/{locationMap-Bg7X4Jna.mjs → locationMap-i2wDA8gB.mjs} +2 -2
  225. package/dist/client/{newsletterForm-lpylVdp5.mjs → newsletterForm-DKiueauk.mjs} +2 -2
  226. package/dist/client/{pricing-DE8fjJiT.mjs → pricing-C01J3Epx.mjs} +3 -19
  227. package/dist/client/{productDetail-D7Bo2RMH.mjs → productDetail-Dfc1sZaX.mjs} +3 -3
  228. package/dist/client/{productList-VjnZqiqN.mjs → productList-BXbvXWTF.mjs} +3 -3
  229. package/dist/client/{propsDecoder-DreFXjNP.mjs → propsDecoder-CIR5DQ1l.mjs} +213 -376
  230. package/dist/client/rendering/client.mjs +3036 -3292
  231. package/dist/client/rendering/islands.mjs +18 -18
  232. package/dist/client/rendering.mjs +5489 -4585
  233. package/dist/client/{shop-IRsHHbf7.mjs → shop-BbNwPKM-.mjs} +6 -6
  234. package/dist/client/{shop-commerce-gnI8PieZ.mjs → shop-commerce-XO-XMFEt.mjs} +5 -5
  235. package/dist/client/{shop-commerce-store-BTbrhObn.mjs → shop-commerce-store-Byh6OUGK.mjs} +1 -1
  236. package/dist/client/{shopShared-D6KS2_qk.mjs → shopShared-Bbq39mwr.mjs} +3 -3
  237. package/dist/client/{useDiscountCodeUi-DCccGCxV.mjs → useDiscountCodeUi-Bcyh4508.mjs} +2 -2
  238. package/dist/client/{useEventFilters-eGs3rPZQ.mjs → useEventFilters-C8OOJ3el.mjs} +59 -124
  239. package/dist/client/{usePolling-CvSU2sur.mjs → usePolling-CyJVo9kF.mjs} +2 -2
  240. package/dist/preview-next/before-render.mjs +1115 -1044
  241. package/dist/preview-next/client/runtime.mjs +4 -4
  242. package/dist/preview-next/middleware.mjs +1118 -1047
  243. package/dist/{previewAuthStore-ShY26RNz.mjs → previewAuthStore-CJX21dGi.mjs} +1121 -1047
  244. package/dist/{sdk-runtime-CJxkFq2B.mjs → sdk-runtime-BGhyuE-E.mjs} +2 -2
  245. package/dist/{separator-CoFmo8uA.mjs → separator-BFs-Kmv5.mjs} +1 -1
  246. package/dist/server/components.mjs +5909 -5011
  247. package/dist/server/config-validation.mjs +3456 -2354
  248. package/dist/server/config.mjs +3456 -2354
  249. package/dist/server/data.mjs +3454 -2365
  250. package/dist/server/index.mjs +1501 -1491
  251. package/dist/server/next.mjs +7534 -8067
  252. package/dist/server/page-converter.mjs +1900 -2038
  253. package/dist/server/prebuild.mjs +1 -1
  254. package/dist/server/rendering/server.mjs +5618 -4723
  255. package/dist/server/rendering.mjs +6238 -5393
  256. package/dist/server/routing.mjs +3616 -2507
  257. package/dist/server/server.mjs +3300 -3477
  258. package/package.json +1 -1
  259. package/dist/_dts/api/src/previewContentContract.d.ts +0 -4
  260. package/dist/_dts/sdk/src/cli/commands/course.d.ts +0 -6
  261. package/dist/_dts/sdk/src/cli/commands/push/scopes/courses.d.ts +0 -4
  262. package/dist/_dts/sdk/src/client/management/courses.d.ts +0 -10
  263. package/dist/_dts/sdk/src/routing/resolveEntrySubroute.d.ts +0 -36
@@ -1,6 +1,6 @@
1
1
  import type { Brand } from '../../core/src/index';
2
2
  import type { SiteCommandCapabilityGapCode } from './capabilityGaps';
3
- import type { SiteCommandType } from './commands';
3
+ import type { SiteCommandType } from './commandContract';
4
4
  import type { SiteCommandRef } from './refs';
5
5
  export declare const commandScopes: readonly ["site", "style", "media", "page", "block", "navigation", "form", "footer", "content", "staff", "venue", "event_category", "event", "ticket", "course", "pass", "membership", "customer", "customer_pass", "customer_membership", "appointment", "course_enrollment", "event_registration", "pass_redemption", "order", "booking_settings", "appointment_service", "appointment_resource", "appointment_availability", "publish"];
6
6
  export type CommandScope = (typeof commandScopes)[number];
@@ -0,0 +1,11 @@
1
+ import type { SiteCommandOf } from './commandContract';
2
+ type EventCommandContent = SiteCommandOf<'upsertEventSeries'>['input']['content'];
3
+ export declare function mapEventCommandContent<TBody>(content: EventCommandContent, parseBody: (body: unknown) => TBody | undefined): {
4
+ image?: {
5
+ [x: string]: unknown;
6
+ identifier: string;
7
+ } | undefined;
8
+ body?: (TBody & ({} | null)) | undefined;
9
+ summary?: string | undefined;
10
+ } | undefined;
11
+ export {};
@@ -1,4 +1,4 @@
1
- import type { SiteCommandBatch, SiteCommandType } from './commands';
1
+ import type { SiteCommandBatch, SiteCommandType } from './commandContract';
2
2
  import type { AllowedRuntime, CommandRisk, IntendedExposure, SiteCommandCapabilityGap, SiteCommandMetadata } from './domain';
3
3
  import type { SiteCommandRef } from './refs';
4
4
  export type SiteCommandExposureTarget = Readonly<{
@@ -1,12 +1,18 @@
1
1
  export * from './adapter';
2
2
  export * from './capabilityGaps';
3
+ export * from './commandContract';
4
+ export * from './commandDomain';
3
5
  export * from './commands';
4
6
  export * from './domain';
5
7
  export * from './exposure';
8
+ export * from './eventCommandContent';
6
9
  export * from './metadata';
7
10
  export * from './pagePaths';
8
11
  export * from './planner';
9
12
  export * from './refContributions';
10
13
  export * from './refs';
14
+ export * from './siteStyleCommandSchema';
15
+ export * from './siteStyleSelectionSchemaBuilder';
11
16
  export * from './stableJson';
12
17
  export * from './staticExecutionGaps';
18
+ export * from './venueCommandMapping';
@@ -1,6 +1,6 @@
1
1
  import type { SiteCommandConsumerPolicy, SiteCommandMetadata, SiteCommandSemanticMetadata } from './domain';
2
2
  import type { LifecycleIntent } from './domain';
3
- import type { SiteCommand, SiteCommandType } from './commands';
3
+ import type { SiteCommand, SiteCommandType } from './commandContract';
4
4
  export declare const siteCommandMetadata: {
5
5
  readonly configureSiteIdentity: {
6
6
  readonly scope: "site";
@@ -366,32 +366,6 @@ export declare const siteCommandMetadata: {
366
366
  readonly capability: "bookings.event_tickets.write";
367
367
  readonly support: "supported";
368
368
  };
369
- readonly upsertCourse: {
370
- readonly scope: "course";
371
- readonly risk: "medium";
372
- readonly writeSemantics: "upsert";
373
- readonly lifecycleIntent: "mutation";
374
- readonly idempotencyStrategy: "recipe_ref";
375
- readonly conflictPolicy: "update_existing";
376
- readonly previewability: "dry_run_only";
377
- readonly allowedRuntimes: readonly ["development", "staging", "demo", "production"];
378
- readonly intendedExposure: readonly ["recipe", "onboarding_planner", "internal_apply"];
379
- readonly capability: "bookings.courses.write";
380
- readonly support: "supported";
381
- };
382
- readonly deleteCourse: {
383
- readonly scope: "course";
384
- readonly risk: "medium";
385
- readonly writeSemantics: "delete";
386
- readonly lifecycleIntent: "mutation";
387
- readonly idempotencyStrategy: "existing_id";
388
- readonly conflictPolicy: "update_existing";
389
- readonly previewability: "effect_required";
390
- readonly allowedRuntimes: readonly ["development", "staging", "demo", "production"];
391
- readonly intendedExposure: readonly ["sdk_cli", "internal_apply"];
392
- readonly capability: "bookings.courses.delete";
393
- readonly support: "supported";
394
- };
395
369
  readonly upsertBookingPassProduct: {
396
370
  readonly scope: "pass";
397
371
  readonly risk: "medium";
@@ -1,5 +1,5 @@
1
1
  import { type Result } from '../../core/src/index';
2
- import { type SiteCommand, type SiteCommandBatch, type SiteCommandOf, type SiteCommandType } from './commands';
2
+ import { type SiteCommand, type SiteCommandBatch, type SiteCommandOf, type SiteCommandType } from './commandContract';
3
3
  import { type CommandRisk, type LifecycleIntent, type SiteCommandCapabilityGap, type SiteCommandIdempotencyKey, type SiteCommandMetadata, type SiteCommandValidationError } from './domain';
4
4
  import { type ResourceRef } from './refs';
5
5
  type PlannedSiteCommandCommon = Readonly<{
@@ -1,4 +1,4 @@
1
- import type { SiteCommand } from './commands';
1
+ import type { SiteCommand } from './commandContract';
2
2
  export type RefContribution = Readonly<{
3
3
  ref: string;
4
4
  field: string;
@@ -1,5 +1,5 @@
1
1
  import { type Brand, type Result } from '../../core/src/index';
2
- export declare const resourceKinds: readonly ["site-style", "media", "page", "block", "blocks", "nav", "form", "footer", "content", "staff", "venue", "event-category", "event", "course", "ticket", "pass", "membership", "customer", "customer-pass", "customer-membership", "appointment", "course-enrollment", "event-registration", "pass-redemption", "order", "appointment-service", "appointment-resource", "availability"];
2
+ export declare const resourceKinds: readonly ["site-style", "media", "page", "block", "blocks", "nav", "form", "footer", "content", "staff", "venue", "event-category", "event", "ticket", "pass", "membership", "customer", "customer-pass", "customer-membership", "appointment", "course-enrollment", "event-registration", "pass-redemption", "order", "appointment-service", "appointment-resource", "availability"];
3
3
  export type ResourceKind = (typeof resourceKinds)[number];
4
4
  export type CommandRef = Brand<`${string}:${string}`, 'SiteCommandRef:command'>;
5
5
  export type SiteStyleRef = Brand<`site-style:${string}`, 'SiteCommandResourceRef:site-style'>;
@@ -15,7 +15,6 @@ export type StaffRef = Brand<`staff:${string}`, 'SiteCommandResourceRef:staff'>;
15
15
  export type VenueRef = Brand<`venue:${string}`, 'SiteCommandResourceRef:venue'>;
16
16
  export type EventCategoryRef = Brand<`event-category:${string}`, 'SiteCommandResourceRef:event-category'>;
17
17
  export type EventSeriesRef = Brand<`event:${string}`, 'SiteCommandResourceRef:event'>;
18
- export type CourseRef = Brand<`course:${string}`, 'SiteCommandResourceRef:course'>;
19
18
  export type TicketTypeRef = Brand<`ticket:${string}`, 'SiteCommandResourceRef:ticket'>;
20
19
  export type PassProductRef = Brand<`pass:${string}`, 'SiteCommandResourceRef:pass'>;
21
20
  export type MembershipProductRef = Brand<`membership:${string}`, 'SiteCommandResourceRef:membership'>;
@@ -45,7 +44,6 @@ export type ResourceRefByKind = Readonly<{
45
44
  venue: VenueRef;
46
45
  'event-category': EventCategoryRef;
47
46
  event: EventSeriesRef;
48
- course: CourseRef;
49
47
  ticket: TicketTypeRef;
50
48
  pass: PassProductRef;
51
49
  membership: MembershipProductRef;
@@ -85,7 +83,6 @@ export declare function createFooterRef(parts: readonly string[]): FooterRef;
85
83
  export declare function createVenueRef(parts: readonly string[]): VenueRef;
86
84
  export declare function createEventCategoryRef(parts: readonly string[]): EventCategoryRef;
87
85
  export declare function createEventSeriesRef(parts: readonly string[]): EventSeriesRef;
88
- export declare function createCourseRef(parts: readonly string[]): CourseRef;
89
86
  export declare function createSiteCommandSiteRef(parts: readonly string[]): SiteCommandSiteRef;
90
87
  export declare function refSlug(ref: SiteCommandRef | string): string;
91
88
  export declare function parseResourceRef(value: string): Result<ResourceRef, RefParseError>;
@@ -0,0 +1,378 @@
1
+ import { z } from 'zod';
2
+ import type { SiteStyleRef } from './refs';
3
+ export declare const applySiteStyleSelectionCommandSchema: z.ZodObject<{
4
+ type: z.ZodLiteral<"applySiteStyleSelection">;
5
+ ref: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleRef, string>>;
6
+ input: z.ZodObject<{
7
+ changes: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
8
+ kind: z.ZodLiteral<"set-site-style">;
9
+ siteStyleId: z.ZodPipe<z.ZodString, z.ZodTransform<SiteStyleRef, string>>;
10
+ }, z.core.$strict>, z.ZodObject<{
11
+ kind: z.ZodLiteral<"set-button-style">;
12
+ buttonStyleSelection: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
13
+ styleId: z.ZodLiteral<"soft-pill">;
14
+ parameters: z.ZodObject<{}, z.core.$strict>;
15
+ }, z.core.$strict>, z.ZodObject<{
16
+ styleId: z.ZodLiteral<"earth-pill">;
17
+ parameters: z.ZodObject<{}, z.core.$strict>;
18
+ }, z.core.$strict>, z.ZodObject<{
19
+ styleId: z.ZodLiteral<"confident-chip">;
20
+ parameters: z.ZodObject<{}, z.core.$strict>;
21
+ }, z.core.$strict>, z.ZodObject<{
22
+ styleId: z.ZodLiteral<"editorial-link">;
23
+ parameters: z.ZodObject<{}, z.core.$strict>;
24
+ }, z.core.$strict>, z.ZodObject<{
25
+ styleId: z.ZodLiteral<"pebble">;
26
+ parameters: z.ZodObject<{}, z.core.$strict>;
27
+ }, z.core.$strict>, z.ZodObject<{
28
+ styleId: z.ZodLiteral<"ink-stamp">;
29
+ parameters: z.ZodObject<{}, z.core.$strict>;
30
+ }, z.core.$strict>, z.ZodObject<{
31
+ styleId: z.ZodLiteral<"flat-ink">;
32
+ parameters: z.ZodObject<{}, z.core.$strict>;
33
+ }, z.core.$strict>, z.ZodObject<{
34
+ styleId: z.ZodLiteral<"brushed-wash">;
35
+ parameters: z.ZodObject<{}, z.core.$strict>;
36
+ }, z.core.$strict>, z.ZodObject<{
37
+ styleId: z.ZodLiteral<"showtime-pill">;
38
+ parameters: z.ZodObject<{}, z.core.$strict>;
39
+ }, z.core.$strict>, z.ZodObject<{
40
+ styleId: z.ZodLiteral<"joy-stamp">;
41
+ parameters: z.ZodObject<{}, z.core.$strict>;
42
+ }, z.core.$strict>, z.ZodObject<{
43
+ styleId: z.ZodLiteral<"ornate-ritual">;
44
+ parameters: z.ZodObject<{}, z.core.$strict>;
45
+ }, z.core.$strict>, z.ZodObject<{
46
+ styleId: z.ZodLiteral<"quiet-arrow">;
47
+ parameters: z.ZodObject<{
48
+ secondaryTreatment: z.ZodEnum<{
49
+ outlined: "outlined";
50
+ "solid-accent": "solid-accent";
51
+ }>;
52
+ }, z.core.$strict>;
53
+ }, z.core.$strict>], "styleId">>;
54
+ }, z.core.$strict>, z.ZodObject<{
55
+ kind: z.ZodLiteral<"set-palette">;
56
+ command: z.ZodType<import("../../blocks/src/index").PaletteCommand, unknown, z.core.$ZodTypeInternals<import("../../blocks/src/index").PaletteCommand, unknown>>;
57
+ }, z.core.$strict>, z.ZodObject<{
58
+ kind: z.ZodLiteral<"set-typography">;
59
+ typography: z.ZodNullable<z.ZodObject<{
60
+ body: z.ZodObject<{
61
+ family: z.ZodString;
62
+ weight: z.ZodEnum<{
63
+ medium: "medium";
64
+ bold: "bold";
65
+ light: "light";
66
+ regular: "regular";
67
+ semibold: "semibold";
68
+ }>;
69
+ letterSpacing: z.ZodEnum<{
70
+ tight: "tight";
71
+ normal: "normal";
72
+ loose: "loose";
73
+ }>;
74
+ lineHeight: z.ZodEnum<{
75
+ normal: "normal";
76
+ loose: "loose";
77
+ relaxed: "relaxed";
78
+ }>;
79
+ size: z.ZodEnum<{
80
+ md: "md";
81
+ lg: "lg";
82
+ xl: "xl";
83
+ }>;
84
+ }, z.core.$strip>;
85
+ headings: z.ZodObject<{
86
+ default: z.ZodObject<{
87
+ family: z.ZodString;
88
+ weight: z.ZodEnum<{
89
+ medium: "medium";
90
+ bold: "bold";
91
+ light: "light";
92
+ regular: "regular";
93
+ semibold: "semibold";
94
+ }>;
95
+ letterSpacing: z.ZodEnum<{
96
+ tight: "tight";
97
+ normal: "normal";
98
+ loose: "loose";
99
+ }>;
100
+ lineHeight: z.ZodEnum<{
101
+ normal: "normal";
102
+ loose: "loose";
103
+ relaxed: "relaxed";
104
+ }>;
105
+ case: z.ZodNullable<z.ZodEnum<{
106
+ uppercase: "uppercase";
107
+ normal: "normal";
108
+ smallCaps: "smallCaps";
109
+ }>>;
110
+ italic: z.ZodNullable<z.ZodBoolean>;
111
+ colorToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ }, z.core.$strip>;
113
+ h1: z.ZodObject<{
114
+ weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
115
+ medium: "medium";
116
+ bold: "bold";
117
+ light: "light";
118
+ regular: "regular";
119
+ semibold: "semibold";
120
+ }>>>;
121
+ letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
122
+ tight: "tight";
123
+ normal: "normal";
124
+ loose: "loose";
125
+ }>>>;
126
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
127
+ sm: "sm";
128
+ md: "md";
129
+ lg: "lg";
130
+ xl: "xl";
131
+ xs: "xs";
132
+ "2xl": "2xl";
133
+ }>>>;
134
+ lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
135
+ tight: "tight";
136
+ normal: "normal";
137
+ loose: "loose";
138
+ relaxed: "relaxed";
139
+ snug: "snug";
140
+ }>>>;
141
+ italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
142
+ colorToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
+ }, z.core.$strip>;
144
+ h2: z.ZodObject<{
145
+ weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
146
+ medium: "medium";
147
+ bold: "bold";
148
+ light: "light";
149
+ regular: "regular";
150
+ semibold: "semibold";
151
+ }>>>;
152
+ letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
153
+ tight: "tight";
154
+ normal: "normal";
155
+ loose: "loose";
156
+ }>>>;
157
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
158
+ sm: "sm";
159
+ md: "md";
160
+ lg: "lg";
161
+ xl: "xl";
162
+ xs: "xs";
163
+ "2xl": "2xl";
164
+ }>>>;
165
+ lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
166
+ tight: "tight";
167
+ normal: "normal";
168
+ loose: "loose";
169
+ relaxed: "relaxed";
170
+ snug: "snug";
171
+ }>>>;
172
+ italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
173
+ colorToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
174
+ }, z.core.$strip>;
175
+ h3: z.ZodObject<{
176
+ weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
177
+ medium: "medium";
178
+ bold: "bold";
179
+ light: "light";
180
+ regular: "regular";
181
+ semibold: "semibold";
182
+ }>>>;
183
+ letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
184
+ tight: "tight";
185
+ normal: "normal";
186
+ loose: "loose";
187
+ }>>>;
188
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
189
+ sm: "sm";
190
+ md: "md";
191
+ lg: "lg";
192
+ xl: "xl";
193
+ xs: "xs";
194
+ "2xl": "2xl";
195
+ }>>>;
196
+ lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
197
+ tight: "tight";
198
+ normal: "normal";
199
+ loose: "loose";
200
+ relaxed: "relaxed";
201
+ snug: "snug";
202
+ }>>>;
203
+ italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
204
+ colorToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
+ }, z.core.$strip>;
206
+ h4: z.ZodOptional<z.ZodObject<{
207
+ weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
208
+ medium: "medium";
209
+ bold: "bold";
210
+ light: "light";
211
+ regular: "regular";
212
+ semibold: "semibold";
213
+ }>>>;
214
+ letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
215
+ tight: "tight";
216
+ normal: "normal";
217
+ loose: "loose";
218
+ }>>>;
219
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
220
+ sm: "sm";
221
+ md: "md";
222
+ lg: "lg";
223
+ xl: "xl";
224
+ xs: "xs";
225
+ "2xl": "2xl";
226
+ }>>>;
227
+ lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
228
+ tight: "tight";
229
+ normal: "normal";
230
+ loose: "loose";
231
+ relaxed: "relaxed";
232
+ snug: "snug";
233
+ }>>>;
234
+ italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
235
+ colorToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
+ }, z.core.$strip>>;
237
+ h5: z.ZodOptional<z.ZodObject<{
238
+ weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
239
+ medium: "medium";
240
+ bold: "bold";
241
+ light: "light";
242
+ regular: "regular";
243
+ semibold: "semibold";
244
+ }>>>;
245
+ letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
246
+ tight: "tight";
247
+ normal: "normal";
248
+ loose: "loose";
249
+ }>>>;
250
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
251
+ sm: "sm";
252
+ md: "md";
253
+ lg: "lg";
254
+ xl: "xl";
255
+ xs: "xs";
256
+ "2xl": "2xl";
257
+ }>>>;
258
+ lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
259
+ tight: "tight";
260
+ normal: "normal";
261
+ loose: "loose";
262
+ relaxed: "relaxed";
263
+ snug: "snug";
264
+ }>>>;
265
+ italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
266
+ colorToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
267
+ }, z.core.$strip>>;
268
+ h6: z.ZodOptional<z.ZodObject<{
269
+ weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
270
+ medium: "medium";
271
+ bold: "bold";
272
+ light: "light";
273
+ regular: "regular";
274
+ semibold: "semibold";
275
+ }>>>;
276
+ letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
277
+ tight: "tight";
278
+ normal: "normal";
279
+ loose: "loose";
280
+ }>>>;
281
+ size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
282
+ sm: "sm";
283
+ md: "md";
284
+ lg: "lg";
285
+ xl: "xl";
286
+ xs: "xs";
287
+ "2xl": "2xl";
288
+ }>>>;
289
+ lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
290
+ tight: "tight";
291
+ normal: "normal";
292
+ loose: "loose";
293
+ relaxed: "relaxed";
294
+ snug: "snug";
295
+ }>>>;
296
+ italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
297
+ colorToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
+ }, z.core.$strip>>;
299
+ }, z.core.$strip>;
300
+ scale: z.ZodEnum<{
301
+ compact: "compact";
302
+ spacious: "spacious";
303
+ balanced: "balanced";
304
+ minorThird: "minorThird";
305
+ majorThird: "majorThird";
306
+ perfectFourth: "perfectFourth";
307
+ }>;
308
+ proseLinkStyle: z.ZodOptional<z.ZodObject<{
309
+ colorToken: z.ZodOptional<z.ZodString>;
310
+ hoverColorToken: z.ZodOptional<z.ZodString>;
311
+ underline: z.ZodOptional<z.ZodBoolean>;
312
+ decorationColorToken: z.ZodOptional<z.ZodString>;
313
+ hoverDecorationColorToken: z.ZodOptional<z.ZodString>;
314
+ underlineStyle: z.ZodOptional<z.ZodEnum<{
315
+ solid: "solid";
316
+ dotted: "dotted";
317
+ dashed: "dashed";
318
+ }>>;
319
+ underlineThickness: z.ZodOptional<z.ZodEnum<{
320
+ auto: "auto";
321
+ medium: "medium";
322
+ fromFont: "fromFont";
323
+ thin: "thin";
324
+ thick: "thick";
325
+ }>>;
326
+ underlineOffset: z.ZodOptional<z.ZodEnum<{
327
+ auto: "auto";
328
+ tight: "tight";
329
+ normal: "normal";
330
+ loose: "loose";
331
+ }>>;
332
+ }, z.core.$strip>>;
333
+ eyebrow: z.ZodOptional<z.ZodObject<{
334
+ family: z.ZodString;
335
+ size: z.ZodOptional<z.ZodEnum<{
336
+ sm: "sm";
337
+ md: "md";
338
+ lg: "lg";
339
+ }>>;
340
+ weight: z.ZodOptional<z.ZodEnum<{
341
+ medium: "medium";
342
+ bold: "bold";
343
+ light: "light";
344
+ regular: "regular";
345
+ semibold: "semibold";
346
+ }>>;
347
+ letterSpacing: z.ZodOptional<z.ZodEnum<{
348
+ tight: "tight";
349
+ normal: "normal";
350
+ loose: "loose";
351
+ wide: "wide";
352
+ }>>;
353
+ case: z.ZodOptional<z.ZodEnum<{
354
+ uppercase: "uppercase";
355
+ normal: "normal";
356
+ }>>;
357
+ }, z.core.$strip>>;
358
+ }, z.core.$strip>>;
359
+ }, z.core.$strict>, z.ZodObject<{
360
+ kind: z.ZodLiteral<"set-header">;
361
+ selection: z.ZodDiscriminatedUnion<[z.ZodObject<{
362
+ kind: z.ZodLiteral<"default">;
363
+ }, z.core.$strict>, z.ZodObject<{
364
+ kind: z.ZodLiteral<"legacy">;
365
+ headerLookId: z.ZodNullable<z.ZodString>;
366
+ }, z.core.$strict>, z.ZodObject<{
367
+ kind: z.ZodLiteral<"canonical">;
368
+ headerLookId: z.ZodNullable<z.ZodString>;
369
+ layoutId: z.ZodString;
370
+ styleId: z.ZodString;
371
+ }, z.core.$strict>], "kind">;
372
+ }, z.core.$strict>, z.ZodObject<{
373
+ kind: z.ZodLiteral<"set-footer-look">;
374
+ footerLookId: z.ZodNullable<z.ZodString>;
375
+ }, z.core.$strict>], "kind">>>;
376
+ baseSelectionVersion: z.ZodOptional<z.ZodNumber>;
377
+ }, z.core.$strict>;
378
+ }, z.core.$strict>;
@@ -0,0 +1,46 @@
1
+ import { z } from 'zod';
2
+ type SiteStyleSelectionSchemaParts<TSiteStyleId extends z.ZodType, TButtonStyleSelection extends z.ZodType, TPaletteCommand extends z.ZodType, TTypography extends z.ZodType, THeaderLookId extends z.ZodType, THeaderLayoutId extends z.ZodType, THeaderStyleId extends z.ZodType, TFooterLookId extends z.ZodType> = Readonly<{
3
+ siteStyleId: TSiteStyleId;
4
+ buttonStyleSelection: TButtonStyleSelection;
5
+ paletteCommand: TPaletteCommand;
6
+ typography: TTypography;
7
+ headerLookId: THeaderLookId;
8
+ headerLayoutId: THeaderLayoutId;
9
+ headerStyleId: THeaderStyleId;
10
+ footerLookId: TFooterLookId;
11
+ }>;
12
+ export declare function createSiteStyleSelectionChangeSchema<TSiteStyleId extends z.ZodType, TButtonStyleSelection extends z.ZodType, TPaletteCommand extends z.ZodType, TTypography extends z.ZodType, THeaderLookId extends z.ZodType, THeaderLayoutId extends z.ZodType, THeaderStyleId extends z.ZodType, TFooterLookId extends z.ZodType>(parts: SiteStyleSelectionSchemaParts<TSiteStyleId, TButtonStyleSelection, TPaletteCommand, TTypography, THeaderLookId, THeaderLayoutId, THeaderStyleId, TFooterLookId>): z.ZodDiscriminatedUnion<[z.ZodObject<{
13
+ kind: z.ZodLiteral<"set-site-style">;
14
+ siteStyleId: TSiteStyleId;
15
+ }, z.core.$strict>, z.ZodObject<{
16
+ kind: z.ZodLiteral<"set-button-style">;
17
+ buttonStyleSelection: z.ZodNullable<TButtonStyleSelection>;
18
+ }, z.core.$strict>, z.ZodObject<{
19
+ kind: z.ZodLiteral<"set-palette">;
20
+ command: TPaletteCommand;
21
+ }, z.core.$strict>, z.ZodObject<{
22
+ kind: z.ZodLiteral<"set-typography">;
23
+ typography: z.ZodNullable<TTypography>;
24
+ }, z.core.$strict>, z.ZodObject<{
25
+ kind: z.ZodLiteral<"set-header">;
26
+ selection: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
+ kind: z.ZodLiteral<"default">;
28
+ }, z.core.$strict>, z.ZodObject<{
29
+ kind: z.ZodLiteral<"legacy">;
30
+ headerLookId: z.ZodNullable<THeaderLookId>;
31
+ }, z.core.$strict>, z.ZodObject<{
32
+ kind: z.ZodLiteral<"canonical">;
33
+ headerLookId: z.ZodNullable<THeaderLookId>;
34
+ layoutId: THeaderLayoutId;
35
+ styleId: THeaderStyleId;
36
+ }, z.core.$strict>], "kind">;
37
+ }, z.core.$strict>, z.ZodObject<{
38
+ kind: z.ZodLiteral<"set-footer-look">;
39
+ footerLookId: z.ZodNullable<TFooterLookId>;
40
+ }, z.core.$strict>], "kind">;
41
+ export declare function validateUniqueSiteStyleSelectionChanges(input: Readonly<{
42
+ changes: readonly Readonly<{
43
+ kind: string;
44
+ }>[];
45
+ }>, ctx: z.RefinementCtx): void;
46
+ export {};
@@ -1,10 +1,10 @@
1
1
  import type { StaticExecutionGapCode } from './capabilityGaps';
2
- import type { SiteCommand, SiteCommandOf } from './commands';
2
+ import type { SiteCommand, SiteCommandOf } from './commandContract';
3
3
  export type StaticExecutionGap = Readonly<{
4
4
  code: StaticExecutionGapCode;
5
5
  message: string;
6
6
  }>;
7
7
  export declare function staticExecutionGapsForCommand(command: SiteCommand): readonly StaticExecutionGap[];
8
8
  export declare function eventSeriesStaticExecutionGaps(command: SiteCommandOf<'upsertEventSeries'>): readonly StaticExecutionGap[];
9
+ export declare function nativeWholeSeriesStaticExecutionGaps(command: SiteCommandOf<'upsertEventSeries'>): readonly StaticExecutionGap[];
9
10
  export declare function eventTicketTypeStaticExecutionGaps(command: SiteCommandOf<'upsertEventTicketType'>): readonly StaticExecutionGap[];
10
- export declare function courseStaticExecutionGaps(command: SiteCommandOf<'upsertCourse'>): readonly StaticExecutionGap[];
@@ -0,0 +1,21 @@
1
+ import type { SiteCommandOf } from './commandContract';
2
+ export declare function venueManagementFields(command: SiteCommandOf<'upsertVenue'>): {
3
+ slug: string;
4
+ title: string;
5
+ description: string | null;
6
+ timezone: string;
7
+ capacity: number | null;
8
+ address: {
9
+ line1: string | undefined;
10
+ line2: string | undefined;
11
+ city: string | undefined;
12
+ region: string | undefined;
13
+ postcode: string | undefined;
14
+ country: string | undefined;
15
+ } | undefined;
16
+ location: {
17
+ lat: number;
18
+ lng: number;
19
+ } | null;
20
+ mapEmbed: string | null;
21
+ };
@@ -0,0 +1,58 @@
1
+ import type { Theme } from '../schema';
2
+ import { type HeaderLayoutId, type HeaderLookId, type HeaderSelectionContext, type HeaderStyleId } from './headerLooks';
3
+ import type { FooterLookId } from './footerLooks';
4
+ import type { BrandDisplayMode, LogoSizePolicy } from './logoBranding';
5
+ export type HeaderBrandPreferences = Readonly<{
6
+ brandDisplay: BrandDisplayMode;
7
+ logoSize: LogoSizePolicy;
8
+ }>;
9
+ export declare const defaultHeaderBrandPreferences: HeaderBrandPreferences;
10
+ export declare function headerBrandPreferencesFromTheme(theme: Theme | null | undefined): HeaderBrandPreferences;
11
+ export type HeaderSelectionIdentity = Readonly<{
12
+ headerLookId: HeaderLookId | null;
13
+ headerLayoutId: HeaderLayoutId | null;
14
+ headerStyleId: HeaderStyleId | null;
15
+ }>;
16
+ export type HeaderRecompileDirective = Readonly<{
17
+ kind: 'recompile';
18
+ selection: HeaderSelectionIdentity;
19
+ context: HeaderSelectionContext;
20
+ brandPresentation: ReplacementBrandPresentation;
21
+ }>;
22
+ export type HeaderCompilationDirective = Readonly<{
23
+ kind: 'preserve';
24
+ header: Theme['header'];
25
+ selection: HeaderSelectionIdentity;
26
+ }> | HeaderRecompileDirective;
27
+ export type FooterCompilationDirective = Readonly<{
28
+ kind: 'preserve';
29
+ footer: Theme['footer'];
30
+ footerLookId: FooterLookId | null;
31
+ }> | Readonly<{
32
+ kind: 'apply-look';
33
+ footer: Theme['footer'];
34
+ footerLookId: FooterLookId | null;
35
+ }>;
36
+ export type ReplacementBrandPresentation = Readonly<{
37
+ kind: 'apply-logo-context';
38
+ }> | Readonly<{
39
+ kind: 'use-compiled-defaults';
40
+ }>;
41
+ export type SiteThemeCompilationPlan = Readonly<{
42
+ kind: 'replace-site-style';
43
+ header: HeaderRecompileDirective;
44
+ footerLookId: FooterLookId | null;
45
+ }> | Readonly<{
46
+ kind: 'update-selection';
47
+ header: HeaderCompilationDirective;
48
+ footer: FooterCompilationDirective;
49
+ }>;
50
+ export declare function replaceSiteStyleCompilationPlan(input?: Readonly<{
51
+ headerLookId?: HeaderLookId | null;
52
+ headerLayoutId?: HeaderLayoutId | null;
53
+ headerStyleId?: HeaderStyleId | null;
54
+ footerLookId?: FooterLookId | null;
55
+ headerSelectionContext?: Partial<HeaderSelectionContext>;
56
+ }>): Extract<SiteThemeCompilationPlan, {
57
+ kind: 'replace-site-style';
58
+ }>;