@riverbankcms/sdk 0.136.0 → 0.138.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 (343) hide show
  1. package/CHANGELOG.md +109 -0
  2. package/README.md +7 -4
  3. package/dist/{PreviewEditorSidebar-BU5ZlhQR.mjs → PreviewEditorSidebar-BVPur_CU.mjs} +12 -18
  4. package/dist/{PreviewEditorUI-9XkHL-bC.mjs → PreviewEditorUI-DLhWX8oh.mjs} +3 -3
  5. package/dist/{PreviewQueryProvider-wbEpXryy.mjs → PreviewQueryProvider-BguJY1SW.mjs} +1 -1
  6. package/dist/{SdkPreviewModeRuntime-CnWmj-2B.mjs → SdkPreviewModeRuntime-Tda6qw4z.mjs} +1375 -495
  7. package/dist/{SiteChromeCustomizeContext-B6d5zkog.mjs → SiteChromeCustomizeContext-BHFgMjde.mjs} +35665 -33602
  8. package/dist/_dts/ai/src/contracts/proposals.d.ts +7226 -3057
  9. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +1223 -811
  10. package/dist/_dts/ai/src/designer/themePatch.d.ts +5 -10
  11. package/dist/_dts/api/src/accessAdmin.d.ts +16 -18
  12. package/dist/_dts/api/src/accountApi.d.ts +49 -2
  13. package/dist/_dts/api/src/appointmentServiceContracts.d.ts +83 -0
  14. package/dist/_dts/api/src/appointmentServiceLocation.d.ts +12 -0
  15. package/dist/_dts/api/src/appointmentServiceVisibility.d.ts +14 -0
  16. package/dist/_dts/api/src/appointmentSetup.d.ts +8 -0
  17. package/dist/_dts/api/src/bookingConfig.d.ts +35 -87
  18. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +1 -1
  19. package/dist/_dts/api/src/bookingOperations.d.ts +2 -69
  20. package/dist/_dts/api/src/bookingRecords.d.ts +2 -2
  21. package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +2 -2
  22. package/dist/_dts/api/src/bookingServicePricing.d.ts +47 -0
  23. package/dist/_dts/api/src/bookings.d.ts +2 -2
  24. package/dist/_dts/api/src/cache-tags.d.ts +7 -2
  25. package/dist/_dts/api/src/common/index.d.ts +1 -0
  26. package/dist/_dts/api/src/common/zodFieldErrors.d.ts +34 -0
  27. package/dist/_dts/api/src/communications.d.ts +14 -8
  28. package/dist/_dts/api/src/contentRuntime.d.ts +3 -6
  29. package/dist/_dts/api/src/domainConnection.d.ts +41 -0
  30. package/dist/_dts/api/src/endpoints.d.ts +1636 -1637
  31. package/dist/_dts/api/src/eventAttendanceLabels.d.ts +2 -2
  32. package/dist/_dts/api/src/eventManagementContracts.d.ts +10 -14
  33. package/dist/_dts/api/src/index.d.ts +11 -9
  34. package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
  35. package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
  36. package/dist/_dts/api/src/media.d.ts +19 -2
  37. package/dist/_dts/api/src/occurrenceScheduling.d.ts +1 -1
  38. package/dist/_dts/api/src/participantMessaging.d.ts +3 -3
  39. package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
  40. package/dist/_dts/api/src/publicBookingAvailabilityEndpointDefinitions.d.ts +62 -0
  41. package/dist/_dts/api/src/publicBookingService.d.ts +109 -2
  42. package/dist/_dts/api/src/publicEventCheckoutEndpointDefinitions.d.ts +27 -0
  43. package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +7 -0
  44. package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +2 -1
  45. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +30 -148
  46. package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +8 -26
  47. package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +5 -13
  48. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +2 -3
  49. package/dist/_dts/api/src/schemas/admin-allowed-domains.d.ts +76 -0
  50. package/dist/_dts/api/src/schemas/admin-observability-logs.d.ts +61 -0
  51. package/dist/_dts/api/src/schemas/admin-users.d.ts +80 -0
  52. package/dist/_dts/api/src/schemas/newsletter-memberships.d.ts +98 -0
  53. package/dist/_dts/api/src/schemas/sdk-entries.d.ts +128 -0
  54. package/dist/_dts/api/src/schemas/site-api-keys.d.ts +112 -0
  55. package/dist/_dts/api/src/schemas/support.d.ts +35 -0
  56. package/dist/_dts/api/src/sdk-event-booking-offer.d.ts +14 -0
  57. package/dist/_dts/api/src/sdk-event-payment-terms.d.ts +4 -16
  58. package/dist/_dts/api/src/sdk-event-upsert.d.ts +11 -21
  59. package/dist/_dts/api/src/sdkContracts.d.ts +8 -23
  60. package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +37 -0
  61. package/dist/_dts/api/src/sdkMediaContracts.d.ts +40 -0
  62. package/dist/_dts/api/src/sdkMediaEndpointDefinitions.d.ts +66 -0
  63. package/dist/_dts/api/src/sdkThemeWire.d.ts +157 -146
  64. package/dist/_dts/api/src/siteInfrastructure.d.ts +37 -37
  65. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +35 -54
  66. package/dist/_dts/api/src/siteOnboarding.d.ts +3 -3
  67. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +38 -16
  68. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +37 -17
  69. package/dist/_dts/api/src/types.d.ts +2 -2
  70. package/dist/_dts/api/src/{wholeSeriesOfferings.d.ts → wholeSeriesRuns.d.ts} +11 -67
  71. package/dist/_dts/block-form/src/FormRenderer.d.ts +3 -1
  72. package/dist/_dts/block-form/src/backend/store-backend.d.ts +2 -1
  73. package/dist/_dts/block-form/src/backend/types.d.ts +2 -0
  74. package/dist/_dts/block-form/src/context/FormFocusContext.d.ts +7 -0
  75. package/dist/_dts/block-form/src/index.d.ts +2 -0
  76. package/dist/_dts/block-form/src/manifest/ManifestForm.d.ts +2 -1
  77. package/dist/_dts/block-form/src/utils/promotedFieldBackend.d.ts +8 -0
  78. package/dist/_dts/block-form/src/utils/promotedFieldPlan.d.ts +18 -0
  79. package/dist/_dts/block-form/src/utils/resolvePromotedFields.d.ts +8 -1
  80. package/dist/_dts/blocks/src/BlockErrorBoundary.d.ts +46 -0
  81. package/dist/_dts/blocks/src/PageRenderer.d.ts +2 -141
  82. package/dist/_dts/blocks/src/contracts/index.d.ts +2 -0
  83. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +12 -6
  84. package/dist/_dts/blocks/src/index.d.ts +1 -0
  85. package/dist/_dts/blocks/src/pageRenderAudience.d.ts +54 -0
  86. package/dist/_dts/blocks/src/pageRenderDiagnostics.d.ts +26 -0
  87. package/dist/_dts/blocks/src/pageRenderPlan.d.ts +116 -0
  88. package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +109 -0
  89. package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +1 -0
  90. package/dist/_dts/blocks/src/pageRendererContracts.d.ts +154 -0
  91. package/dist/_dts/blocks/src/portal/types.d.ts +1 -1
  92. package/dist/_dts/blocks/src/server.d.ts +1 -0
  93. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +12 -20
  94. package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -1
  95. package/dist/_dts/blocks/src/system/blocks/events/eventCalendarDataLoaders.d.ts +3 -0
  96. package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +95 -0
  97. package/dist/_dts/blocks/src/system/blocks/events/shared/index.d.ts +1 -0
  98. package/dist/_dts/blocks/src/system/blocks/events/shared/runGrouping.d.ts +37 -0
  99. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +1046 -773
  100. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +59 -46
  101. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -3
  102. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +161 -161
  103. package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +13 -6
  104. package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +10 -4
  105. package/dist/_dts/blocks/src/system/constants/buttonRoles.d.ts +2 -2
  106. package/dist/_dts/blocks/src/system/constants/events.d.ts +4 -0
  107. package/dist/_dts/blocks/src/system/customize/facets.d.ts +4 -4
  108. package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
  109. package/dist/_dts/blocks/src/system/data/publicLoaderCachePolicy.d.ts +5 -9
  110. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +83 -83
  111. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +12 -3
  112. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +8 -8
  113. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
  114. package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +13 -0
  115. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +12 -20
  116. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +32 -37
  117. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +15 -18
  118. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +11 -8
  119. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +38 -22
  120. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +7 -0
  121. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.d.ts +2 -2
  122. package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +16 -4
  123. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ErrorStep.d.ts +3 -5
  124. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +4 -2
  125. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +1 -1
  126. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +5 -3
  127. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +1 -1
  128. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +1 -1
  129. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +2 -0
  130. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +15 -0
  131. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +2 -2
  132. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorPresentation.d.ts +5 -0
  133. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +25 -0
  134. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.d.ts +14 -3
  135. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts +3 -21
  136. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationWizardContext.d.ts +4 -0
  137. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/siteCreditPreview.d.ts +0 -3
  138. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ticketSelectionLines.d.ts +14 -16
  139. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +13 -15
  140. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +7 -3
  141. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +9 -3
  142. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +25 -23
  143. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +2 -0
  144. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +11 -4
  145. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -13
  146. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +5 -0
  147. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +1 -0
  148. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +11 -3
  149. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/capacity.d.ts +164 -0
  150. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/cta.d.ts +29 -0
  151. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +47 -0
  152. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/index.d.ts +14 -0
  153. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/people.d.ts +6 -0
  154. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/pricing.d.ts +24 -0
  155. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/OfferingTitle.d.ts +11 -0
  156. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +1 -1
  157. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekBoardView.d.ts +1 -1
  158. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +1080 -560
  159. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.d.ts +2 -2
  160. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/index.d.ts +3 -1
  161. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listingLayout.d.ts +23 -0
  162. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
  163. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +7 -7
  164. package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +11 -0
  165. package/dist/_dts/commerce/src/moneyReport.d.ts +1 -1
  166. package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
  167. package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +57 -0
  168. package/dist/_dts/commerce/src/purchase/eventOrderOptionSnapshot.d.ts +3 -0
  169. package/dist/_dts/commerce/src/purchase/index.d.ts +1 -0
  170. package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +6 -3
  171. package/dist/_dts/commerce/src/purchase/types.d.ts +3 -2
  172. package/dist/_dts/commerce/src/waitlists.d.ts +1 -1
  173. package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +4 -0
  174. package/dist/_dts/content-editor/src/controller/useBlockedPublishPlan.d.ts +11 -0
  175. package/dist/_dts/content-editor/src/hooks/applyBlockedPublishPlan.d.ts +1 -1
  176. package/dist/_dts/content-editor/src/hooks/blockedPublishPlan.d.ts +13 -5
  177. package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +5 -1
  178. package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +34 -2
  179. package/dist/_dts/content-editor/src/index.d.ts +2 -1
  180. package/dist/_dts/content-editor/src/ui/blockValidationManifestRegistry.d.ts +2 -0
  181. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +4 -2
  182. package/dist/_dts/content-editor/src/ui/stores/types.d.ts +27 -5
  183. package/dist/_dts/content-model/src/content-types/schema.d.ts +3 -3
  184. package/dist/_dts/content-model/src/templates/defaults.d.ts +11 -0
  185. package/dist/_dts/core/src/branded.d.ts +28 -9
  186. package/dist/_dts/core/src/event-booking-offer-parser.d.ts +82 -0
  187. package/dist/_dts/core/src/event-booking-offer.d.ts +89 -0
  188. package/dist/_dts/core/src/event-page-surface-subject.d.ts +81 -4
  189. package/dist/_dts/core/src/event-pricing.d.ts +81 -89
  190. package/dist/_dts/core/src/index.d.ts +3 -0
  191. package/dist/_dts/core/src/non-empty-array.d.ts +3 -0
  192. package/dist/_dts/core/src/whole-series-run-schedule.d.ts +92 -0
  193. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +495 -279
  194. package/dist/_dts/db/src/index.d.ts +1 -0
  195. package/dist/_dts/db/src/utils/postgrestFilter.d.ts +2 -0
  196. package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -6
  197. package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +1 -1
  198. package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +2 -2
  199. package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +4 -2
  200. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +1 -0
  201. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +22 -7
  202. package/dist/_dts/editor-blocks/src/block-editor/useSettingsFieldFocus.d.ts +18 -0
  203. package/dist/_dts/media-core/src/bulkDeletePlanning.d.ts +4 -0
  204. package/dist/_dts/media-core/src/fileDomain.d.ts +3 -0
  205. package/dist/_dts/preview-next/src/client/blocks/previewBatchLoaderParams.d.ts +2 -0
  206. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -0
  207. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
  208. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -2
  209. package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +1 -1
  210. package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -0
  211. package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlSaveRequest.d.ts +51 -0
  212. package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +24 -2
  213. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +23 -1
  214. package/dist/_dts/preview-next/src/client/preview/usePersistedHeaderPreferences.d.ts +8 -0
  215. package/dist/_dts/sdk/src/client/{eventSubrouteReadOperations.d.ts → publicEventReadOperations.d.ts} +4 -3
  216. package/dist/_dts/sdk/src/client/types.d.ts +6 -10
  217. package/dist/_dts/sdk/src/config/types.d.ts +1 -1
  218. package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
  219. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +5 -0
  220. package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +2 -3
  221. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +8 -8
  222. package/dist/_dts/sdk/src/next/tags.d.ts +5 -8
  223. package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -26
  224. package/dist/_dts/sdk/src/rendering/helpers/footerPageOutline.d.ts +9 -1
  225. package/dist/_dts/sdk/src/rendering/index.d.ts +1 -0
  226. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -53
  227. package/dist/_dts/sdk/src/rendering/server.d.ts +1 -0
  228. package/dist/_dts/sdk/src/version.d.ts +1 -1
  229. package/dist/_dts/theme-core/src/accordions/types.d.ts +5 -5
  230. package/dist/_dts/theme-core/src/buttons/styles/recipes/flatInk.d.ts +25 -25
  231. package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +25 -25
  232. package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +7 -7
  233. package/dist/_dts/theme-core/src/buttons/types.d.ts +22 -22
  234. package/dist/_dts/theme-core/src/cards/types.d.ts +49 -49
  235. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  236. package/dist/_dts/theme-core/src/gradients/types.d.ts +5 -0
  237. package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +26 -3
  238. package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
  239. package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
  240. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +195 -195
  241. package/dist/_dts/theme-core/src/navigation/types.d.ts +3 -3
  242. package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
  243. package/dist/_dts/theme-core/src/palette/curated/types.d.ts +2 -2
  244. package/dist/_dts/theme-core/src/schema.d.ts +258 -257
  245. package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +1 -1
  246. package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
  247. package/dist/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +1 -1
  248. package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +43 -3
  249. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +10 -0
  250. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +4 -4
  251. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
  252. package/dist/_dts/theme-core/src/site-styles/headerBrandPresentation.d.ts +63 -0
  253. package/dist/_dts/theme-core/src/site-styles/headerBytesComparison.d.ts +30 -0
  254. package/dist/_dts/theme-core/src/site-styles/headerInteractionPalette.d.ts +50 -1
  255. package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +48 -9
  256. package/dist/_dts/theme-core/src/site-styles/headerPreferences.d.ts +162 -0
  257. package/dist/_dts/theme-core/src/site-styles/headerPreferencesPersistence.d.ts +73 -0
  258. package/dist/_dts/theme-core/src/site-styles/headerRecompile.d.ts +118 -0
  259. package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +10 -1
  260. package/dist/_dts/theme-core/src/site-styles/headerStyleDefaults.d.ts +1 -1
  261. package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +7 -0
  262. package/dist/_dts/theme-core/src/site-styles/index.d.ts +5 -0
  263. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +1 -1
  264. package/dist/_dts/theme-core/src/site-styles/siteChromeBackgrounds.d.ts +20 -1
  265. package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +43 -2
  266. package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
  267. package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +3 -3
  268. package/dist/_dts/ui/src/badge.d.ts +1 -1
  269. package/dist/_dts/ui/src/button.d.ts +2 -2
  270. package/dist/client/{BookingConsentAgreement-DCch21a6.mjs → BookingConsentAgreement-DQUik1Mx.mjs} +2 -2
  271. package/dist/client/{DiscountCodeDisclosure-DIj1T59K.mjs → DiscountCodeDisclosure-CU67Q4vH.mjs} +1 -1
  272. package/dist/client/{EventCombined.client-BWVNlXTx.mjs → EventCombined.client-a02TXUgg.mjs} +233 -348
  273. package/dist/client/{EventListing.client-DVFCDe3i.mjs → EventListing.client-99qx7jFl.mjs} +2 -2
  274. package/dist/client/{LeafletStaticMap-BY5mIHw9.mjs → LeafletStaticMap-CWzcq73L.mjs} +1 -1
  275. package/dist/client/{accordion-CK29E8rG.mjs → accordion-D1nb3-Oj.mjs} +1 -1
  276. package/dist/client/{bookingForm-DFvnet-N.mjs → bookingForm-BGrmLhaO.mjs} +5 -5
  277. package/dist/client/bookings.mjs +10555 -10475
  278. package/dist/client/{carousel-BVU5NQlb.mjs → carousel-DSmOx3ad.mjs} +1 -1
  279. package/dist/client/{cart-BNItcZVa.mjs → cart-COWeOIUk.mjs} +3 -3
  280. package/dist/client/{checkout-Bu6iCdkP.mjs → checkout-CeysaIJK.mjs} +3 -3
  281. package/dist/client/client.mjs +58968 -57441
  282. package/dist/client/{context-BImarOAq.mjs → context-DBzX85Xc.mjs} +46 -18
  283. package/dist/client/dates-DCYhZBlW.mjs +264 -0
  284. package/dist/client/{eventCalendar-DS2h-UXD.mjs → eventCalendar-BgsN73Ul.mjs} +21 -44
  285. package/dist/client/{eventCombined-Drt4Oq9p.mjs → eventCombined-DcZQAMQP.mjs} +3 -3
  286. package/dist/client/{eventDetails-Bl2vWgTX.mjs → eventDetails-BWwGJ54l.mjs} +131 -51
  287. package/dist/client/{eventListing-CS7PHY7v.mjs → eventListing-DqYqV8vp.mjs} +3 -3
  288. package/dist/client/{eventRegistration-D-j8eNy2.mjs → eventRegistration-DQGDgu_e.mjs} +1122 -803
  289. package/dist/client/{form-RMpoLTyr.mjs → form-ClfpasVT.mjs} +2 -2
  290. package/dist/client/{headerSection-BYE3Lb3k.mjs → headerSection-BuOMe98N.mjs} +2 -2
  291. package/dist/client/hooks.mjs +9630 -9526
  292. package/dist/client/{locationMap-BxSr7Kkh.mjs → locationMap-CEqu_sfa.mjs} +2 -2
  293. package/dist/client/{newsletterForm-DerbXwFC.mjs → newsletterForm-IbrHjMxy.mjs} +2 -2
  294. package/dist/client/pricing-xj7MPZlK.mjs +314 -0
  295. package/dist/client/{productDetail-4SZCLhAf.mjs → productDetail-vxqTt5Xj.mjs} +3 -3
  296. package/dist/client/{productList-D7AP4GNq.mjs → productList-OTdZu8sb.mjs} +3 -3
  297. package/dist/client/{propsDecoder-pzBeCh14.mjs → propsDecoder-CY9gGEF7.mjs} +786 -1194
  298. package/dist/client/rendering/client.mjs +11481 -10469
  299. package/dist/client/rendering/islands.mjs +17 -17
  300. package/dist/client/rendering.mjs +26871 -25232
  301. package/dist/client/{scrollToBlock-CduAKf8T.mjs → scrollToBlock--BFV6kl-.mjs} +1 -1
  302. package/dist/client/{shop-Cp5p_kGe.mjs → shop-CP4YbDL9.mjs} +6 -6
  303. package/dist/client/{shop-commerce-DicXYaYX.mjs → shop-commerce-APs4XBXE.mjs} +5 -5
  304. package/dist/client/{shop-commerce-store-CGWnpY4K.mjs → shop-commerce-store-CAVLxLFr.mjs} +1 -1
  305. package/dist/client/{shopShared-BDf9ljkm.mjs → shopShared-BnSRrwXI.mjs} +3 -3
  306. package/dist/client/{useEventFilters-DeeyGYuk.mjs → useEventFilters-1a1by4c8.mjs} +33 -18
  307. package/dist/preview-next/before-render.mjs +186 -148
  308. package/dist/preview-next/client/runtime.mjs +4 -4
  309. package/dist/preview-next/keepAlive.mjs +186 -148
  310. package/dist/preview-next/middleware.mjs +186 -148
  311. package/dist/{previewAuthStore-DbqBol0V.mjs → previewAuthStore-BkEgnYPP.mjs} +186 -148
  312. package/dist/{sdk-runtime-19MO27F0.mjs → sdk-runtime-DwGfsT0S.mjs} +2 -2
  313. package/dist/{separator-DaPLtJ1f.mjs → separator-BeqDLneQ.mjs} +1 -1
  314. package/dist/server/components.mjs +53243 -51879
  315. package/dist/server/config-validation.mjs +1015 -906
  316. package/dist/server/config.mjs +1019 -910
  317. package/dist/server/data.mjs +10304 -10200
  318. package/dist/server/index.mjs +217 -198
  319. package/dist/server/next/tags.mjs +18 -4
  320. package/dist/server/next.mjs +62787 -61617
  321. package/dist/server/page-converter.mjs +797 -917
  322. package/dist/server/prebuild.mjs +1 -1
  323. package/dist/server/rendering/server.mjs +52557 -51365
  324. package/dist/server/rendering.mjs +54373 -53054
  325. package/dist/server/routing.mjs +13274 -13142
  326. package/dist/server/server.mjs +1076 -1154
  327. package/dist/server/theme-bridge.mjs +69 -9
  328. package/dist/server/theme.mjs +27 -8
  329. package/dist/styles/index.css +32 -1
  330. package/package.json +1 -1
  331. package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +0 -65
  332. package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +0 -20
  333. package/dist/_dts/api/src/sdk-event-pricing.d.ts +0 -61
  334. package/dist/_dts/blocks/src/system/blocks/events/whole-series/index.d.ts +0 -3
  335. package/dist/_dts/blocks/src/system/blocks/events/whole-series/pricing.d.ts +0 -50
  336. package/dist/_dts/blocks/src/system/blocks/events/whole-series/schemas.d.ts +0 -135
  337. package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +0 -87
  338. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCapacity.d.ts +0 -48
  339. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/pricing.d.ts +0 -17
  340. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +0 -100
  341. package/dist/_dts/sdk/src/client/wholeSeriesReadOperations.d.ts +0 -11
  342. package/dist/_dts/sdk/src/public-api/wholeSeriesContracts.d.ts +0 -2
  343. /package/dist/_dts/blocks/src/system/runtime/nodes/events/{shared → domain}/destination.d.ts +0 -0
@@ -5,13 +5,23 @@
5
5
  */
6
6
  import type { APIEndpoint } from '../apiEndpointTypes';
7
7
  import type { EventRegistrationOptionsRequest, EventRegistrationOptionsResponse } from '../../../blocks/src/system/blocks/event-registration';
8
- import type { BookingConsent, PublicEventBookingAvailability, PublicEventPricing } from '../../../core/src/index';
9
- import type { PublicEventDestination } from '../event-listing-destination';
10
- import type { BookingPaymentTermsConfig, BookingPricing, DirectCheckoutCollectionOptionKind, EventAttendanceMode, EventDeliveryMode, EventPricingMode, PublicEventEligibilityTicketTypeRecord, PublicEventTicketTypeRecord } from '../bookingConfig';
11
- import type { EventPreset } from '../../../core/src/index';
12
- import type { PublicTeamMemberSummary } from '../teamMembers';
13
- import type { EventTicketLineSummaryResponse, EventTicketSelectionRequest, PublicEventLoaderParams, PublicEventRecurrence, PublicEventScheduleScope } from './sharedTypes';
8
+ import type { PublicWaitlistClaimResponse } from '../../../commerce/src/index';
9
+ import type { DirectCheckoutCollectionOptionKind, EventAttendanceMode } from '../bookingConfig';
10
+ import type { EventTicketLineSummaryResponse, EventTicketSelectionRequest, PublicEventLoaderParams } from './sharedTypes';
11
+ /**
12
+ * The canonical public Event record.
13
+ *
14
+ * Declared once in `@riverbankcms/blocks` (the lowest package that owns every
15
+ * constituent shape) and surfaced here as the wire contract. Nothing restates
16
+ * it: the dashboard projection and every block consumer import these names.
17
+ */
18
+ export type { PublicEvent, PublicEventBase, PublicWholeSeriesRun, PublicWholeSeriesRunLifecycle, PublicWholeSeriesRunVisibility, PublicRunSession, } from '../../../blocks/src/system/blocks/events/shared/types';
19
+ import type { PublicEvent } from '../../../blocks/src/system/blocks/events/shared/types';
20
+ import type { CalendarWindowRequest, CalendarWindowPage } from '../../../blocks/src/contracts/index';
14
21
  export type PublicEventAPIEndpoints = {
22
+ listPublicEventCalendarWindow: APIEndpoint<never, {
23
+ siteId: string;
24
+ } & CalendarWindowRequest, CalendarWindowPage>;
15
25
  getPublicBookingCalendarFeedIcs: APIEndpoint<never, {
16
26
  siteId: string;
17
27
  token: string;
@@ -19,92 +29,7 @@ export type PublicEventAPIEndpoints = {
19
29
  listPublicEvents: APIEndpoint<never, {
20
30
  siteId: string;
21
31
  stage?: string;
22
- } & PublicEventLoaderParams, Array<{
23
- bookingScope: 'single_occurrence' | 'whole_series';
24
- eventPreset?: EventPreset;
25
- eventDestinationMode?: import('../event-destination-policy').EventDestinationMode;
26
- destination: PublicEventDestination;
27
- scheduleScope?: Exclude<PublicEventScheduleScope, 'any'>;
28
- recurrence?: PublicEventRecurrence;
29
- id: string;
30
- occurrenceId: string;
31
- seriesId: string;
32
- title: string;
33
- description: string | null;
34
- presentation?: {
35
- title?: string | null;
36
- summary?: string | null;
37
- image?: {
38
- type: 'image' | 'video' | 'audio';
39
- purpose?: string;
40
- placeholder?: boolean;
41
- assetId?: string;
42
- src?: string;
43
- alt?: string;
44
- width?: number;
45
- height?: number;
46
- storageBucket?: string;
47
- storagePath?: string;
48
- transform?: {
49
- rect?: [number, number, number, number];
50
- hotspot?: {
51
- x: number;
52
- y: number;
53
- radius?: number;
54
- };
55
- };
56
- } | null;
57
- };
58
- slug: string;
59
- path: string | null;
60
- requiresRegistration: boolean;
61
- bookingAvailability: PublicEventBookingAvailability;
62
- deliveryMode: EventDeliveryMode;
63
- attendanceModes: Array<{
64
- mode: EventAttendanceMode;
65
- capacity: number | null;
66
- registeredCount: number;
67
- availableSpots: number | null;
68
- waitlistEnabled: boolean;
69
- }>;
70
- startsAt: string;
71
- endsAt: string;
72
- capacity: number | null;
73
- registeredCount: number;
74
- availableSpots: number | null;
75
- waitlistEnabled: boolean;
76
- venue: {
77
- id: string;
78
- name: string;
79
- address: string | null;
80
- location: {
81
- lat: number;
82
- lng: number;
83
- } | null;
84
- } | null;
85
- eventCategory: {
86
- id: string;
87
- name: string;
88
- color: string | null;
89
- } | null;
90
- teamMembers?: PublicTeamMemberSummary[];
91
- status?: 'active' | 'draft' | 'cancelled' | 'completed' | 'archived';
92
- pricing: PublicEventPricing<PublicEventTicketTypeRecord>;
93
- paymentTerms: BookingPaymentTermsConfig;
94
- consent: BookingConsent | null;
95
- accessRestriction: 'none' | 'category';
96
- allowedCategoryIds: string[];
97
- requireGuestDetails?: boolean;
98
- timeZone: string;
99
- acceptsPasses?: boolean;
100
- acceptsMemberships?: boolean;
101
- wholeSeries?: {
102
- eventSeriesId: string;
103
- pricing: BookingPricing;
104
- currency: string;
105
- enrollmentOpen: boolean;
106
- } | null;
107
- }>>;
32
+ } & PublicEventLoaderParams, PublicEvent[]>;
108
33
  getPublicEventFilters: APIEndpoint<never, {
109
34
  siteId: string;
110
35
  stage?: string;
@@ -162,6 +87,14 @@ export type PublicEventAPIEndpoints = {
162
87
  } | null;
163
88
  }>;
164
89
  registerForEvent: APIEndpoint<{
90
+ /**
91
+ * Client-generated command identity for this submission (UUID).
92
+ *
93
+ * Generated once when the customer submits and retained across transport
94
+ * retries, so a lost response can be replayed rather than double-booked.
95
+ * The single-occurrence commit is keyed on it; see #1273.
96
+ */
97
+ registrationCommandId: string;
165
98
  subject: {
166
99
  kind: 'occurrence';
167
100
  occurrenceId: string;
@@ -288,62 +221,6 @@ export type PublicEventAPIEndpoints = {
288
221
  waitlistPosition: number | null;
289
222
  alreadyRegistered?: boolean;
290
223
  }>;
291
- checkPublicEventEligibility: APIEndpoint<{
292
- occurrenceId: string;
293
- attendanceMode?: EventAttendanceMode;
294
- email: string;
295
- ticketSelections: EventTicketSelectionRequest[];
296
- selectedSlidingAmount?: number;
297
- }, {
298
- siteId: string;
299
- }, {
300
- customerExists: boolean;
301
- eligibility: {
302
- isFull: boolean;
303
- waitlistEnabled: boolean;
304
- canJoinWaitlist: boolean;
305
- membership: {
306
- customerMembershipId: string;
307
- membershipName: string;
308
- } | null;
309
- passes: Array<{
310
- customerPassId: string;
311
- passName: string;
312
- creditsRemaining: number;
313
- }>;
314
- requiresPayment: boolean;
315
- pricingMode?: EventPricingMode;
316
- selectedTicketTypeId?: string | null;
317
- ticketLines: EventTicketLineSummaryResponse[];
318
- ticketTypes?: PublicEventEligibilityTicketTypeRecord[];
319
- eventPrice: number | null;
320
- eventPriceCurrency: string | null;
321
- eventAcceptsPasses: boolean;
322
- eventAcceptsMemberships: boolean;
323
- requiresAuthForPasses: boolean;
324
- requiresAuthForMemberships: boolean;
325
- availableForPurchase: {
326
- passes: Array<{
327
- id: string;
328
- name: string;
329
- description: string | null;
330
- price: number;
331
- currency: string;
332
- creditsTotal: number;
333
- pricePerCredit: number;
334
- validDays: number | null;
335
- }>;
336
- memberships: Array<{
337
- id: string;
338
- name: string;
339
- description: string | null;
340
- price: number;
341
- currency: string;
342
- interval: 'month' | 'year';
343
- }>;
344
- };
345
- };
346
- }>;
347
224
  getPublicEventRegistrationOptions: APIEndpoint<PublicEventRegistrationOptionsRequest, {
348
225
  siteId: string;
349
226
  }, PublicEventRegistrationOptionsResponse>;
@@ -390,6 +267,11 @@ export type PublicEventAPIEndpoints = {
390
267
  siteId: string;
391
268
  token: string;
392
269
  }, string>;
270
+ resolveWaitlistClaim: APIEndpoint<{
271
+ claimToken: string;
272
+ }, {
273
+ siteId: string;
274
+ }, PublicWaitlistClaimResponse>;
393
275
  };
394
276
  export type PublicEventRegistrationOptionsRequest = EventRegistrationOptionsRequest;
395
277
  export type PublicEventRegistrationOptionsResponse = EventRegistrationOptionsResponse;
@@ -6,11 +6,11 @@
6
6
  import type { AutoAppliedDiscountPreview } from '../bookingRecords';
7
7
  export declare const PUBLIC_EVENT_TICKET_SELECTION_CONTRACT_VERSION: "public-event-ticket-selection.v2";
8
8
  export type EventTicketSelectionRequest = {
9
- ticketTypeId?: string | null;
9
+ pricingOptionId?: string | null;
10
10
  quantity: number;
11
11
  };
12
12
  export type EventTicketLineSummaryResponse = {
13
- ticketTypeId: string | null;
13
+ pricingOptionId: string | null;
14
14
  label: string;
15
15
  description: string | null;
16
16
  quantity: number;
@@ -18,7 +18,7 @@ export type EventTicketLineSummaryResponse = {
18
18
  subtotalCents: number;
19
19
  currency: string;
20
20
  };
21
- export type { PublicWholeSeriesPriceDisplay, PublicEventPriceDisplay, PublicEventPricing, } from '../../../core/src/index';
21
+ export type { PublicEventPriceDisplay, PublicEventPricing, } from '../../../core/src/index';
22
22
  /** Query parameters accepted by the public event list loaders. */
23
23
  export type PublicEventLoaderParams = {
24
24
  limit?: string;
@@ -37,6 +37,11 @@ export type PublicEventLoaderParams = {
37
37
  runSeriesId?: string;
38
38
  seriesSlug?: string;
39
39
  includeOccurrenceId?: string;
40
+ /**
41
+ * What the read is asking for: `'occurrences'` (default) for a page of dates,
42
+ * or `'runs'` for one row per whole-series run regardless of date.
43
+ */
44
+ readIntent?: string;
40
45
  detailLevel?: string;
41
46
  readProfile?: string;
42
47
  };
@@ -115,29 +120,6 @@ export type PublicDiscountContext = PublicEventDiscountContext | {
115
120
  type: 'membership';
116
121
  membershipId: string;
117
122
  } | PublicProductDiscountContext;
118
- export type WholeSeriesEligibilityResponse = {
119
- eventSeriesId: string;
120
- canEnroll: boolean;
121
- canJoinWaitlist: boolean;
122
- reason?: string;
123
- availableSpots: number | null;
124
- isFull: boolean;
125
- isOnWaitlist: boolean;
126
- waitlistEnabled: boolean;
127
- price: {
128
- cents: number | null;
129
- currency: string;
130
- };
131
- paymentOptions: {
132
- free: boolean;
133
- membership: boolean;
134
- stripe: boolean;
135
- };
136
- eligibleMemberships?: Array<{
137
- customerMembershipId: string;
138
- membershipName: string;
139
- }>;
140
- };
141
123
  export type DiscountsAvailableResponse = Readonly<{
142
124
  type: 'none';
143
125
  }> | Readonly<{
@@ -4,6 +4,7 @@
4
4
  * Merged into `PublicExperienceAPIEndpoints` by `../publicExperienceEndpoints`.
5
5
  */
6
6
  import type { APIEndpoint } from '../apiEndpointTypes';
7
+ import type { CalendarWindowRequest } from '../../../blocks/src/contracts/index';
7
8
  import type { PublicTeamMemberBlockItem } from '../teamMembers';
8
9
  import type { GeneratedIconRenderAssetsRequest, GeneratedIconRenderAssetsResponse } from '../siteIcons';
9
10
  import type { PublicEventDetailsLoaderParams, PublicEventLoaderParams } from './sharedTypes';
@@ -16,6 +17,10 @@ export type PublicSiteAPIEndpoints = {
16
17
  }>;
17
18
  batchBlockLoaders: APIEndpoint<{
18
19
  requests: Array<{
20
+ id: string;
21
+ endpoint: 'listPublicEventCalendarWindow';
22
+ params?: CalendarWindowRequest;
23
+ } | {
19
24
  id: string;
20
25
  endpoint: 'listPublicEvents';
21
26
  params?: PublicEventLoaderParams;
@@ -23,19 +28,6 @@ export type PublicSiteAPIEndpoints = {
23
28
  id: string;
24
29
  endpoint: 'getPublicEventDetails';
25
30
  params?: PublicEventDetailsLoaderParams;
26
- } | {
27
- id: string;
28
- endpoint: 'listPublicWholeSeriesOfferings';
29
- params?: {
30
- limit?: string;
31
- };
32
- } | {
33
- id: string;
34
- endpoint: 'getPublicWholeSeriesOffering';
35
- params?: {
36
- eventSeriesId?: string;
37
- stage?: string;
38
- };
39
31
  } | {
40
32
  id: string;
41
33
  endpoint: 'listPublicTeamMembers';
@@ -6,10 +6,9 @@
6
6
  * merged here. This module stays the single import site for consumers.
7
7
  */
8
8
  import type { PublicCommerceAPIEndpoints } from './publicExperience/commerceEndpoints';
9
- import type { PublicWholeSeriesAPIEndpoints } from './publicExperience/wholeSeriesEndpoints';
10
9
  import type { PublicEventAPIEndpoints } from './publicExperience/eventEndpoints';
11
10
  import type { PublicNewsletterAPIEndpoints } from './publicExperience/newsletterEndpoints';
12
11
  import type { PublicSiteAPIEndpoints } from './publicExperience/siteEndpoints';
13
12
  export * from './publicExperience/sharedTypes';
14
- export type { PublicEventRegistrationOptionsRequest, PublicEventRegistrationOptionsResponse, } from './publicExperience/eventEndpoints';
15
- export type PublicExperienceAPIEndpoints = PublicEventAPIEndpoints & PublicWholeSeriesAPIEndpoints & PublicCommerceAPIEndpoints & PublicSiteAPIEndpoints & PublicNewsletterAPIEndpoints;
13
+ export type { PublicEvent, PublicEventBase, PublicEventRegistrationOptionsRequest, PublicEventRegistrationOptionsResponse, PublicRunSession, PublicWholeSeriesRun, PublicWholeSeriesRunLifecycle, PublicWholeSeriesRunVisibility, } from './publicExperience/eventEndpoints';
14
+ export type PublicExperienceAPIEndpoints = PublicEventAPIEndpoints & PublicCommerceAPIEndpoints & PublicSiteAPIEndpoints & PublicNewsletterAPIEndpoints;
@@ -0,0 +1,76 @@
1
+ import { z } from 'zod';
2
+ import type { RequestInput, RequestOutput } from './support';
3
+ /**
4
+ * Request schemas for the admin allowed-email-domain endpoints.
5
+ *
6
+ * This module is the single authority for what those endpoints accept. The
7
+ * client-facing body contract in `APIEndpoints` is derived from `z.input`; the
8
+ * route handler and its service receive `z.output`. See
9
+ * `.project/plans/tier2-step5-schema-entrypoint/design.md` for why both sides
10
+ * are named here rather than left to `z.infer`.
11
+ *
12
+ * Covered endpoints: `adminListAllowedDomains`, `adminAddAllowedDomain`,
13
+ * `adminDeleteAllowedDomain`.
14
+ *
15
+ * Allowed domains get their own module rather than joining `admin-users.ts`:
16
+ * the layout is per-family, and this family has its own routes, its own service
17
+ * and its own response types in `accessAdmin.ts`. Sharing a module would also
18
+ * put two unrelated schema trees behind one entrypoint, which is the thing the
19
+ * per-domain split exists to avoid.
20
+ */
21
+ /**
22
+ * `adminDeleteAllowedDomain`.
23
+ *
24
+ * The service takes the raw uuid string, so nothing is branded on the way
25
+ * through and `brandedUuidParam` is deliberately not used.
26
+ *
27
+ * Note this is a *path* parameter — `/admin/allowed-domains/{domainId}` — even
28
+ * though the endpoint declares `{ domainId: string }` in its query slot. That
29
+ * is the same confusion batch 4 untangled on `listManagementKeys`: `APIEndpoint`'s
30
+ * second parameter carries both path params and query, and `apiCallParams`'
31
+ * `PathParams` is what actually puts `domainId` in the client's `params`. The
32
+ * contract is left exactly as it was (removing the query declaration would be a
33
+ * contract edit, not a schema migration) and `admin-allowed-domains.typetest.ts`
34
+ * pins that the encoded params are the same either way.
35
+ */
36
+ export declare const adminDeleteAllowedDomainParamsSchema: z.ZodObject<{
37
+ domainId: z.ZodString;
38
+ }, z.core.$strip>;
39
+ export type AdminDeleteAllowedDomainParamsOutput = RequestOutput<typeof adminDeleteAllowedDomainParamsSchema>;
40
+ /**
41
+ * `adminListAllowedDomains`.
42
+ *
43
+ * The clean case: `tenantId` neither defaults, coerces nor transforms, so
44
+ * `z.output` is exactly the shape a sender may put on the wire and the client
45
+ * contract derives from it.
46
+ *
47
+ * `.nullable()` is carried over verbatim from the route. A URL cannot express
48
+ * `null`, so the null arm is unreachable through the client machinery — which
49
+ * stringifies query values — and only the body schema below can actually
50
+ * receive one. It stays because dropping it would narrow a published optional
51
+ * field, which is a contract decision rather than part of a schema migration.
52
+ */
53
+ export declare const adminListAllowedDomainsQuerySchema: z.ZodObject<{
54
+ tenantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ }, z.core.$strip>;
56
+ /** What the route receives, and what the client contract is derived from. */
57
+ export type AdminListAllowedDomainsQueryOutput = RequestOutput<typeof adminListAllowedDomainsQuerySchema>;
58
+ /**
59
+ * `adminAddAllowedDomain`.
60
+ *
61
+ * Nothing defaults, coerces or transforms, so `z.input` and `z.output` are the
62
+ * same type and the contract derives from the input side with no divergence.
63
+ * `.trim()` changes the value but not the type.
64
+ *
65
+ * The schema is stricter than the published type in ways the type cannot say —
66
+ * `domain` is capped at 255 characters and `tenantId` must be a uuid — which was
67
+ * already true when the schema lived in the route file.
68
+ */
69
+ export declare const adminAddAllowedDomainBodySchema: z.ZodObject<{
70
+ domain: z.ZodString;
71
+ tenantId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ }, z.core.$strip>;
73
+ /** What a client sends: `tenantId` may be omitted or explicitly null. */
74
+ export type AdminAddAllowedDomainBodyInput = RequestInput<typeof adminAddAllowedDomainBodySchema>;
75
+ /** What the route receives. Same shape — this body has no divergence. */
76
+ export type AdminAddAllowedDomainBodyOutput = RequestOutput<typeof adminAddAllowedDomainBodySchema>;
@@ -0,0 +1,61 @@
1
+ import { z } from 'zod';
2
+ import type { RequestOutput } from './support';
3
+ /** `adminListAxiomLogs`. `dataset` picks which Axiom dataset to tail. */
4
+ export declare const adminListAxiomLogsQuerySchema: z.ZodObject<{
5
+ dataset: z.ZodOptional<z.ZodString>;
6
+ since: z.ZodOptional<z.ZodString>;
7
+ until: z.ZodOptional<z.ZodString>;
8
+ search: z.ZodOptional<z.ZodString>;
9
+ tail: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
10
+ mode: z.ZodOptional<z.ZodEnum<{
11
+ errors: "errors";
12
+ all: "all";
13
+ warnings: "warnings";
14
+ }>>;
15
+ }, z.core.$strip>;
16
+ export type AdminListAxiomLogsQueryOutput = RequestOutput<typeof adminListAxiomLogsQuerySchema>;
17
+ /**
18
+ * `adminListErrorLogs`.
19
+ *
20
+ * The aggregated error feed has no `'all'` mode — it is already only errors and
21
+ * warnings — and its `source` filter takes a list rather than a single value.
22
+ */
23
+ export declare const adminListErrorLogsQuerySchema: z.ZodObject<{
24
+ source: z.ZodOptional<z.ZodArray<z.ZodString>>;
25
+ since: z.ZodOptional<z.ZodString>;
26
+ until: z.ZodOptional<z.ZodString>;
27
+ search: z.ZodOptional<z.ZodString>;
28
+ tail: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
29
+ mode: z.ZodOptional<z.ZodEnum<{
30
+ errors: "errors";
31
+ warnings: "warnings";
32
+ }>>;
33
+ }, z.core.$strip>;
34
+ export type AdminListErrorLogsQueryOutput = RequestOutput<typeof adminListErrorLogsQuerySchema>;
35
+ /** `adminListSupabaseLogs`. `source` names a single Supabase log source. */
36
+ export declare const adminListSupabaseLogsQuerySchema: z.ZodObject<{
37
+ source: z.ZodOptional<z.ZodString>;
38
+ since: z.ZodOptional<z.ZodString>;
39
+ until: z.ZodOptional<z.ZodString>;
40
+ search: z.ZodOptional<z.ZodString>;
41
+ tail: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
42
+ mode: z.ZodOptional<z.ZodEnum<{
43
+ errors: "errors";
44
+ all: "all";
45
+ warnings: "warnings";
46
+ }>>;
47
+ }, z.core.$strip>;
48
+ export type AdminListSupabaseLogsQueryOutput = RequestOutput<typeof adminListSupabaseLogsQuerySchema>;
49
+ /** `adminListVercelLogs`. No source or dataset selector. */
50
+ export declare const adminListVercelLogsQuerySchema: z.ZodObject<{
51
+ since: z.ZodOptional<z.ZodString>;
52
+ until: z.ZodOptional<z.ZodString>;
53
+ search: z.ZodOptional<z.ZodString>;
54
+ tail: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
55
+ mode: z.ZodOptional<z.ZodEnum<{
56
+ errors: "errors";
57
+ all: "all";
58
+ warnings: "warnings";
59
+ }>>;
60
+ }, z.core.$strip>;
61
+ export type AdminListVercelLogsQueryOutput = RequestOutput<typeof adminListVercelLogsQuerySchema>;
@@ -0,0 +1,80 @@
1
+ import { z } from 'zod';
2
+ import type { RequestInput, RequestOutput } from './support';
3
+ /**
4
+ * Request schemas for the admin user-management endpoints.
5
+ *
6
+ * This module is the single authority for what those endpoints accept. The
7
+ * client-facing body contract in `APIEndpoints` is derived from `z.input`; the
8
+ * route handler and its service receive `z.output`. See
9
+ * `.project/plans/tier2-step5-schema-entrypoint/design.md` for why both sides
10
+ * are named here rather than left to `z.infer`.
11
+ *
12
+ * Covered endpoints: `adminCreateUser`, `adminDeleteUser`.
13
+ */
14
+ /**
15
+ * `adminDeleteUser`.
16
+ *
17
+ * The service takes the raw uuid string (it is handed to Supabase auth admin
18
+ * calls, not to a branded-id helper), so nothing is branded on the way through.
19
+ */
20
+ export declare const adminDeleteUserParamsSchema: z.ZodObject<{
21
+ userId: z.ZodString;
22
+ }, z.core.$strip>;
23
+ export type AdminDeleteUserParamsOutput = RequestOutput<typeof adminDeleteUserParamsSchema>;
24
+ /**
25
+ * `adminCreateUser`.
26
+ *
27
+ * `sendInvite` is the divergence: senders may omit it, so the wire contract has
28
+ * it optional, while the route always receives a concrete boolean. The route
29
+ * file previously annotated this schema `z.ZodType<CreateAdminUserRequest>`,
30
+ * which pinned only the output and hid that difference.
31
+ */
32
+ export declare const adminCreateUserBodySchema: z.ZodObject<{
33
+ email: z.ZodString;
34
+ displayName: z.ZodOptional<z.ZodString>;
35
+ sendInvite: z.ZodDefault<z.ZodBoolean>;
36
+ }, z.core.$strip>;
37
+ /** What a client sends: `sendInvite` and `displayName` may both be omitted. */
38
+ export type AdminCreateUserBodyInput = RequestInput<typeof adminCreateUserBodySchema>;
39
+ /** What the route receives: `sendInvite` is always present. */
40
+ export type AdminCreateUserBodyOutput = RequestOutput<typeof adminCreateUserBodySchema>;
41
+ /**
42
+ * `adminDeleteUser`.
43
+ *
44
+ * This is the first migrated query with a value-changing `.transform()`, so
45
+ * neither side of the schema can be handed straight to the client contract:
46
+ * `z.input` is the four literal spellings the URL may carry, and `z.output` is
47
+ * the decoded boolean. See `AdminDeleteUserQueryInput`.
48
+ */
49
+ export declare const adminDeleteUserQuerySchema: z.ZodObject<{
50
+ force: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"1">, z.ZodLiteral<"0">, z.ZodLiteral<"true">, z.ZodLiteral<"false">]>>, z.ZodTransform<boolean | undefined, "0" | "1" | "true" | "false" | undefined>>;
51
+ }, z.core.$strip>;
52
+ /**
53
+ * The client-facing query contract for `adminDeleteUser` — **modelled, not
54
+ * derived**, and the worked example of the rule in the design doc's "Which side
55
+ * each consumer gets".
56
+ *
57
+ * Callers have always expressed this as a boolean (`adminDeleteUser(client, id,
58
+ * { force: true })`), and the `adminDeleteUser` wrapper in `admin.ts` encodes
59
+ * it onto the URL — sending `force=true` or omitting the parameter entirely.
60
+ * Deriving from `z.input` would replace `boolean` with the literal union
61
+ * `'1' | '0' | 'true' | 'false'` and break every existing caller; deriving from
62
+ * `z.output` would be a coincidence, since the transform is what makes the two
63
+ * sides agree in shape at all. So the type stays hand-written and the schema is
64
+ * checked against it instead: the wrapper's params expression is annotated with
65
+ * `AdminDeleteUserQueryWire` below, so its actual encoding must be something
66
+ * this schema accepts, and `admin-users.typetest.ts` asserts the parsed value
67
+ * matches the model.
68
+ */
69
+ export type AdminDeleteUserQueryInput = {
70
+ force?: boolean;
71
+ };
72
+ /**
73
+ * The wire spellings the query schema accepts, as a type the `adminDeleteUser`
74
+ * client wrapper annotates its params with (type-only — no zod reaches the
75
+ * client bundle). If the wrapper's hand-rolled encoding and this schema ever
76
+ * disagree, that annotation is where the compiler says so.
77
+ */
78
+ export type AdminDeleteUserQueryWire = RequestInput<typeof adminDeleteUserQuerySchema>;
79
+ /** What the route receives after the transform has decoded the wire spelling. */
80
+ export type AdminDeleteUserQueryOutput = RequestOutput<typeof adminDeleteUserQuerySchema>;
@@ -0,0 +1,98 @@
1
+ import { z } from 'zod';
2
+ import type { RequestInput, RequestOutput } from './support';
3
+ /**
4
+ * Request schemas for the newsletter list-membership endpoints.
5
+ *
6
+ * This module is the single authority for what those endpoints accept. The
7
+ * client-facing body contract in `APIEndpoints` is derived from `z.input`; the
8
+ * route handler and its service receive `z.output`. See
9
+ * `.project/plans/tier2-step5-schema-entrypoint/design.md` for why both sides
10
+ * are named here rather than left to `z.infer`.
11
+ *
12
+ * Covered endpoints: `listNewsletterListMembers`, `updateNewsletterListMemberships`.
13
+ *
14
+ * This is the family that exercises the *defaulted* half of the modelled-input
15
+ * rule. Its query pagination both coerces and defaults, so neither side of the
16
+ * schema is the caller's type: `z.input` is `unknown` (coercion accepts
17
+ * anything) and `z.output` makes `limit`/`offset` required, which would force
18
+ * every caller to send a value the endpoint deliberately fills in. So the client
19
+ * type is modelled below and checked against the schema instead.
20
+ */
21
+ /**
22
+ * `listNewsletterListMembers` / `updateNewsletterListMemberships`.
23
+ *
24
+ * Neither id is branded — the newsletter services take the raw strings — so
25
+ * `brandedUuidParam` is deliberately not used here and the 400 messages are the
26
+ * ones the route already authored.
27
+ */
28
+ export declare const newsletterListMembershipParamsSchema: z.ZodObject<{
29
+ siteId: z.ZodString;
30
+ listId: z.ZodString;
31
+ }, z.core.$strip>;
32
+ export type NewsletterListMembershipParamsOutput = RequestOutput<typeof newsletterListMembershipParamsSchema>;
33
+ /**
34
+ * `listNewsletterListMembers`.
35
+ *
36
+ * The route parses the search params merged with its already-parsed path params
37
+ * (`includeParamsInInput` defaults to true), which is why `siteId` and `listId`
38
+ * are repeated here: the schema sees them, and the endpoint's client contract
39
+ * carries them alongside the pagination fields.
40
+ */
41
+ export declare const listNewsletterListMembersQuerySchema: z.ZodObject<{
42
+ siteId: z.ZodString;
43
+ listId: z.ZodString;
44
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
45
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
46
+ }, z.core.$strip>;
47
+ /**
48
+ * The client-facing pagination contract — **modelled, not derived**, and the
49
+ * worked example of the defaulted half of the rule in the design doc's "Which
50
+ * side each consumer gets".
51
+ *
52
+ * Deriving from `z.output` would publish `limit: number; offset: number`, making
53
+ * both required and breaking every caller that omits them (the dashboard's
54
+ * member picker sends both, but nothing in the contract says it has to).
55
+ * Deriving from `z.input` would publish `unknown`, which is not a contract at
56
+ * all. So the model stays wider on optionality than the parsed value on purpose,
57
+ * and `newsletter-memberships.typetest.ts` holds the schema to it.
58
+ */
59
+ export type ListNewsletterListMembersQueryInput = {
60
+ limit?: number;
61
+ offset?: number;
62
+ };
63
+ /**
64
+ * What the client machinery actually puts on the URL.
65
+ *
66
+ * There is no hand-rolled encoder for this endpoint the way `admin.ts` has one
67
+ * for `adminDeleteUser`; the encoding is `apiCallParams`' generic
68
+ * `PathParams & QueryToStringParams`, driven by the published contract. So this
69
+ * is the shape a caller of `apiCall({ endpoint: 'listNewsletterListMembers' })`
70
+ * must supply, and the typetest pins it against that machinery while a golden
71
+ * test parses exactly this shape. Together they are the link a derivation would
72
+ * otherwise have made: contract → encoded params → something the schema accepts.
73
+ */
74
+ export type ListNewsletterListMembersQueryWire = {
75
+ siteId: string;
76
+ listId: string;
77
+ limit?: string;
78
+ offset?: string;
79
+ };
80
+ /** What the route receives: pagination is always resolved to a number. */
81
+ export type ListNewsletterListMembersQueryOutput = RequestOutput<typeof listNewsletterListMembersQuerySchema>;
82
+ /**
83
+ * `updateNewsletterListMemberships`.
84
+ *
85
+ * The `.default([])` pair is the body-side twin of `adminCreateUser`'s
86
+ * `sendInvite`: both arrays may be omitted on the wire and are always present
87
+ * once the route has parsed them. The route file annotated this schema
88
+ * `z.ZodType<UpdateNewsletterListMembershipsRequest>`, which pinned the output
89
+ * only and hid that difference.
90
+ */
91
+ export declare const updateNewsletterListMembershipsBodySchema: z.ZodObject<{
92
+ addSubscriberIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
93
+ removeSubscriberIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
94
+ }, z.core.$strip>;
95
+ /** What a client sends: either array may be omitted. */
96
+ export type UpdateNewsletterListMembershipsBodyInput = RequestInput<typeof updateNewsletterListMembershipsBodySchema>;
97
+ /** What the route receives: both arrays are always present. */
98
+ export type UpdateNewsletterListMembershipsBodyOutput = RequestOutput<typeof updateNewsletterListMembershipsBodySchema>;