@riverbankcms/sdk 0.144.0 → 0.146.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 (228) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{PreviewEditorSidebar-CQZNnFiM.mjs → PreviewEditorSidebar-kg2r2Fyi.mjs} +4 -4
  3. package/dist/{PreviewEditorUI-DCNxnmI0.mjs → PreviewEditorUI-sWMLp5dT.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-BCYICImX.mjs → PreviewQueryProvider-Cg51xq1w.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-BJolUbr1.mjs → SdkPreviewModeRuntime-h2ti3Hch.mjs} +688 -519
  6. package/dist/{SiteChromeCustomizeContext-CKgEpoxi.mjs → SiteChromeCustomizeContext-DEACFH9m.mjs} +3381 -2017
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +5643 -66
  8. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +513 -6
  9. package/dist/_dts/api/src/appointmentEndpointDefinitions.d.ts +49 -0
  10. package/dist/_dts/api/src/appointmentServiceCategoryEndpoints.d.ts +75 -0
  11. package/dist/_dts/api/src/appointmentServiceContracts.d.ts +80 -0
  12. package/dist/_dts/api/src/appointmentSetup.d.ts +8 -1
  13. package/dist/_dts/api/src/bookingConfig.d.ts +8 -1
  14. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +10 -26
  15. package/dist/_dts/api/src/bookingManagementEventEndpointTypes.d.ts +45 -1
  16. package/dist/_dts/api/src/clientErrorReporting.d.ts +50 -0
  17. package/dist/_dts/api/src/communications.d.ts +32 -24
  18. package/dist/_dts/api/src/contentRuntime.d.ts +3 -5
  19. package/dist/_dts/api/src/endpoints.d.ts +316 -134
  20. package/dist/_dts/api/src/event-visibility.d.ts +20 -0
  21. package/dist/_dts/api/src/eventManagementContracts.d.ts +56 -3
  22. package/dist/_dts/api/src/eventManagementEndpointDefinitions.d.ts +24 -0
  23. package/dist/_dts/api/src/eventPageWords.d.ts +19 -0
  24. package/dist/_dts/api/src/eventSeriesRegistrationEndpointDefinitions.d.ts +14 -0
  25. package/dist/_dts/api/src/index.d.ts +7 -1
  26. package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
  27. package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
  28. package/dist/_dts/api/src/launchReadiness.d.ts +22 -2
  29. package/dist/_dts/api/src/launchRequirementPriority.d.ts +3 -0
  30. package/dist/_dts/api/src/newsletterCampaignCommandEndpoints.d.ts +13 -0
  31. package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +30 -11
  32. package/dist/_dts/api/src/occurrenceScheduling.d.ts +10 -0
  33. package/dist/_dts/api/src/onboarding/confirmationResend.d.ts +3 -0
  34. package/dist/_dts/api/src/pageSurfaceEndpoints.d.ts +44 -0
  35. package/dist/_dts/api/src/participantMessaging.d.ts +11 -1
  36. package/dist/_dts/api/src/publicBookingService.d.ts +35 -1
  37. package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +13 -0
  38. package/dist/_dts/api/src/publicNewsletterEndpointDefinitions.d.ts +58 -0
  39. package/dist/_dts/api/src/schemas/admin-observability-logs.d.ts +3 -3
  40. package/dist/_dts/api/src/sdk-event-upsert.d.ts +40 -1
  41. package/dist/_dts/api/src/sdkContracts.d.ts +3 -42
  42. package/dist/_dts/api/src/sdkCourseBooking.d.ts +30 -0
  43. package/dist/_dts/api/src/sdkEventEndpointDefinitions.d.ts +76 -0
  44. package/dist/_dts/api/src/sdkEventLifecycle.d.ts +37 -0
  45. package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +18 -0
  46. package/dist/_dts/api/src/sdkPageDesign.d.ts +388 -0
  47. package/dist/_dts/api/src/sdkPageDesignEndpointDefinitions.d.ts +22 -0
  48. package/dist/_dts/api/src/sdkPullEventContracts.d.ts +46 -0
  49. package/dist/_dts/api/src/siteAddressEndpoints.d.ts +29 -0
  50. package/dist/_dts/api/src/siteManagementEndpointDefinitions.d.ts +49 -0
  51. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +4 -38
  52. package/dist/_dts/api/src/siteOnboarding.d.ts +75 -9
  53. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +1 -1
  54. package/dist/_dts/api/src/types.d.ts +8 -1
  55. package/dist/_dts/api/src/wholeSeriesRuns.d.ts +14 -0
  56. package/dist/_dts/blocks/src/PageRenderer.d.ts +4 -4
  57. package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
  58. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +24 -0
  59. package/dist/_dts/blocks/src/index.d.ts +3 -1
  60. package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +10 -0
  61. package/dist/_dts/blocks/src/pageRenderJoins.d.ts +68 -0
  62. package/dist/_dts/blocks/src/pageRenderPlan.d.ts +8 -27
  63. package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +7 -4
  64. package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +40 -23
  65. package/dist/_dts/blocks/src/pageRendererContracts.d.ts +3 -1
  66. package/dist/_dts/blocks/src/server.d.ts +1 -1
  67. package/dist/_dts/blocks/src/system/blocks/appointment-services.d.ts +2 -0
  68. package/dist/_dts/blocks/src/system/blocks/events/eventSelectionFields.d.ts +2 -2
  69. package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +1 -1
  70. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +27 -5
  71. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +14 -1
  72. package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +2 -2
  73. package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +47 -47
  74. package/dist/_dts/blocks/src/system/icons/social.d.ts +1 -1
  75. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +29 -3
  76. package/dist/_dts/blocks/src/system/registry.d.ts +1 -1
  77. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts +8 -1
  78. package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +22 -2
  79. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.headless.state.d.ts +3 -1
  80. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.interactive.d.ts +57 -2
  81. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-categories.d.ts +29 -0
  82. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.service-choices.d.ts +13 -0
  83. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.state.d.ts +3 -3
  84. package/dist/_dts/blocks/src/system/runtime/nodes/booking-runtime-sources.d.ts +13 -1
  85. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventSourceRecovery.d.ts +2 -1
  86. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +23 -7
  87. package/dist/_dts/blocks/src/system/runtime/nodes/form.fields.d.ts +5 -0
  88. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.block-submission.d.ts +36 -0
  89. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.d.ts +1 -1
  90. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +6 -1
  91. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.parts.d.ts +46 -0
  92. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +20 -1
  93. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +2 -1
  94. package/dist/_dts/blocks/src/system/runtime/resolver.d.ts +2 -1
  95. package/dist/_dts/blocks/src/system/runtime/shared/components/CheckboxChoice.d.ts +18 -0
  96. package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +1 -0
  97. package/dist/_dts/content-editor/src/index.d.ts +1 -0
  98. package/dist/_dts/content-editor/src/primitives/previewEditableOutline.d.ts +2 -0
  99. package/dist/_dts/content-editor/src/ui/editorBlockEquality.d.ts +3 -0
  100. package/dist/_dts/content-editor/src/ui/editorSnapshot.d.ts +3 -3
  101. package/dist/_dts/content-model/src/content-types/schema.d.ts +1 -1
  102. package/dist/_dts/core/src/appointment-service-categories.d.ts +108 -0
  103. package/dist/_dts/core/src/block-content-identity.d.ts +5 -0
  104. package/dist/_dts/core/src/editor-state.d.ts +2 -1
  105. package/dist/_dts/core/src/index.d.ts +2 -0
  106. package/dist/_dts/core/src/mailing-list-submission.d.ts +3 -1
  107. package/dist/_dts/core/src/public-event-booking-availability.d.ts +20 -1
  108. package/dist/_dts/core/src/public-profile.d.ts +12 -1
  109. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +711 -242
  110. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +3 -0
  111. package/dist/_dts/editor-blocks/src/block-editor/EmptyState.d.ts +13 -1
  112. package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +2 -2
  113. package/dist/_dts/editor-blocks/src/index.d.ts +1 -0
  114. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/loaders.d.ts +16 -1
  115. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/types.d.ts +13 -0
  116. package/dist/_dts/editor-blocks/src/widgets/site-option-picker/utils.d.ts +29 -0
  117. package/dist/_dts/preview-next/src/client/blocks/BoundaryControl.d.ts +7 -2
  118. package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +1 -1
  119. package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +3 -3
  120. package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +1 -3
  121. package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +2 -2
  122. package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +2 -2
  123. package/dist/_dts/preview-next/src/client/preview/PreviewEntryControllerProvider.d.ts +1 -1
  124. package/dist/_dts/sdk/src/client/runtimeCacheKeys.d.ts +8 -0
  125. package/dist/_dts/sdk/src/client/types.d.ts +1 -1
  126. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  127. package/dist/_dts/sdk/src/contracts/page.d.ts +7 -2
  128. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +5 -0
  129. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +2 -2
  130. package/dist/_dts/sdk/src/next/renderSdkContent.d.ts +0 -1
  131. package/dist/_dts/sdk/src/public-api/contracts.d.ts +6 -8
  132. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +4 -4
  133. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +4 -4
  134. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +7 -2
  135. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +5 -2
  136. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +6 -1
  137. package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +2 -0
  138. package/dist/_dts/sdk/src/rendering/hooks/useContent.d.ts +6 -2
  139. package/dist/_dts/sdk/src/rendering/hooks/usePage.d.ts +5 -1
  140. package/dist/_dts/sdk/src/version.d.ts +1 -1
  141. package/dist/_dts/surfaces/src/index.d.ts +10 -0
  142. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  143. package/dist/_dts/theme-core/src/inputs/checkable.d.ts +42 -0
  144. package/dist/_dts/theme-core/src/inputs/inputGroup.d.ts +19 -0
  145. package/dist/_dts/theme-core/src/layout/boundaryCss.d.ts +3 -0
  146. package/dist/_dts/theme-core/src/site-styles/compositionBudget.d.ts +8 -0
  147. package/dist/_dts/theme-core/src/site-styles/contentTemplateRuntimeCompiler.d.ts +3 -2
  148. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +1 -3
  149. package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +3 -0
  150. package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
  151. package/dist/_dts/theme-core/src/site-styles/joinTreatment.d.ts +132 -0
  152. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorBoundaries.d.ts +31 -0
  153. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +33 -29
  154. package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
  155. package/dist/_dts/theme-core/src/site-styles/pageFlowPresets.d.ts +36 -0
  156. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -10
  157. package/dist/_dts/theme-core/src/site-styles/rawStyleFields.d.ts +17 -4
  158. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +20 -74
  159. package/dist/_dts/theme-core/src/site-styles/sectionBoundaryComposition.d.ts +95 -0
  160. package/dist/_dts/theme-core/src/site-styles/sectionTransitions.d.ts +80 -518
  161. package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +9 -4
  162. package/dist/_dts/theme-core/src/site-styles/transitionCatalogue.d.ts +320 -0
  163. package/dist/_dts/theme-core/src/site-styles/types.d.ts +3 -18
  164. package/dist/_dts/ui/src/navigation-tabs.d.ts +2 -1
  165. package/dist/client/{BookingConsentAgreement-DoAILrkN.mjs → BookingConsentAgreement-BQKL045f.mjs} +2 -2
  166. package/dist/client/CheckboxChoice--W2n6yKs.mjs +24 -0
  167. package/dist/client/{DiscountCodeDisclosure-X528hUTf.mjs → DiscountCodeDisclosure-CsOtjFY7.mjs} +1 -1
  168. package/dist/client/{EventCombined.client-DSBVwq5m.mjs → EventCombined.client-BdRjVbhH.mjs} +6 -6
  169. package/dist/client/{EventListing.client-DmFAX7Vb.mjs → EventListing.client-DBxC6xOU.mjs} +2 -2
  170. package/dist/client/{LeafletStaticMap-BAqXdfhq.mjs → LeafletStaticMap-mHEJKrTs.mjs} +1 -1
  171. package/dist/client/{ThemedButton-BwNFVwi4.mjs → ThemedButton-CE5KYT6z.mjs} +1 -1
  172. package/dist/client/{accordion-DRhMdkbd.mjs → accordion-BEQNSptH.mjs} +1 -1
  173. package/dist/client/{bookingForm-iJ_nCsNF.mjs → bookingForm-AMr-s5vw.mjs} +168 -95
  174. package/dist/client/bookings.mjs +239 -110
  175. package/dist/client/{carousel-D8zuffZr.mjs → carousel-Bbt_QgJy.mjs} +1 -1
  176. package/dist/client/{cart-DeMGJViN.mjs → cart-CnWi30zJ.mjs} +3 -3
  177. package/dist/client/{checkout-DXc06Km2.mjs → checkout-f3nkWgd4.mjs} +3 -3
  178. package/dist/client/client.mjs +3222 -1612
  179. package/dist/client/{context-CDLCfDep.mjs → context-Bc8T6pCe.mjs} +1 -1
  180. package/dist/client/{dates-ClFx7Epy.mjs → dates-DUsCEzLb.mjs} +2 -3
  181. package/dist/client/{eventCalendar-BaGpnOGN.mjs → eventCalendar-CKwgXui5.mjs} +9 -9
  182. package/dist/client/{eventCombined-ywONOx2m.mjs → eventCombined-CBAOSTGR.mjs} +4 -4
  183. package/dist/client/{eventDetails-B2LlOTYY.mjs → eventDetails-Dh-_WiBD.mjs} +4 -4
  184. package/dist/client/{eventListing-CMgxWpqP.mjs → eventListing-CA3frIH5.mjs} +4 -4
  185. package/dist/client/{eventRegistration-BarLDNHR.mjs → eventRegistration-BHtsgdcg.mjs} +21 -22
  186. package/dist/client/{form-BjqKaBJ7.mjs → form-C2h3YAcg.mjs} +135 -104
  187. package/dist/client/{headerSection-CP4XDwz1.mjs → headerSection-lwMuMTH9.mjs} +3 -3
  188. package/dist/client/hooks.mjs +1023 -148
  189. package/dist/client/{locationMap-C5gW-d-w.mjs → locationMap-DJ2bLODV.mjs} +3 -3
  190. package/dist/client/{newsletterForm-afXlVSA0.mjs → newsletterForm-8Pu5K32g.mjs} +225 -102
  191. package/dist/client/{pricing-Bl1CAl28.mjs → pricing-HHx3IgBz.mjs} +1 -1
  192. package/dist/client/{productDetail-CvQ3jWQe.mjs → productDetail-C_1odnAf.mjs} +3 -3
  193. package/dist/client/{productList-U874PGO7.mjs → productList-CtCv-Nmx.mjs} +3 -3
  194. package/dist/client/{propsDecoder-DPXtCZWP.mjs → propsDecoder-Dcgsncxb.mjs} +111 -55
  195. package/dist/client/rendering/client.mjs +1389 -722
  196. package/dist/client/rendering/islands.mjs +17 -17
  197. package/dist/client/rendering.mjs +3136 -1400
  198. package/dist/client/{routeIslandApiConfig-NGYiUWXu.mjs → routeIslandApiConfig-CWLP7wu3.mjs} +1 -1
  199. package/dist/client/{scrollToBlock-0-C3DVhK.mjs → scrollToBlock-BNgaEUpo.mjs} +1 -1
  200. package/dist/client/{shop-BXjXhM9P.mjs → shop-DQXrQ8kJ.mjs} +7 -7
  201. package/dist/client/{shop-commerce-BZ6UlWJ7.mjs → shop-commerce-B88zmWWo.mjs} +6 -6
  202. package/dist/client/{shop-commerce-store-DlSBXb3D.mjs → shop-commerce-store-DtSfkKuX.mjs} +1 -1
  203. package/dist/client/{shopShared-kkEOiLPA.mjs → shopShared-cuaONpkJ.mjs} +4 -4
  204. package/dist/client/{useEventFilters-zvnnE1ro.mjs → useEventFilters-Bukew6Gb.mjs} +6 -6
  205. package/dist/preview-next/before-render.mjs +500 -165
  206. package/dist/preview-next/client/runtime.mjs +4 -4
  207. package/dist/preview-next/editor-base.css +11 -0
  208. package/dist/preview-next/keepAlive.mjs +460 -165
  209. package/dist/preview-next/middleware.mjs +461 -165
  210. package/dist/{previewAuthStore-JA6-I_sL.mjs → previewAuthStore-h5IgbSp4.mjs} +485 -165
  211. package/dist/{sdk-runtime-DFJlQt3q.mjs → sdk-runtime-DTc1uIXn.mjs} +2 -2
  212. package/dist/{separator-o8GHb1xh.mjs → separator-BpHS1KZK.mjs} +1 -1
  213. package/dist/server/components.mjs +3088 -1307
  214. package/dist/server/config-validation.mjs +927 -109
  215. package/dist/server/config.mjs +927 -109
  216. package/dist/server/data.mjs +939 -110
  217. package/dist/server/index.mjs +513 -169
  218. package/dist/server/next.mjs +2874 -1195
  219. package/dist/server/page-converter.mjs +420 -79
  220. package/dist/server/prebuild.mjs +1 -1
  221. package/dist/server/rendering/server.mjs +3071 -1289
  222. package/dist/server/rendering.mjs +3169 -1350
  223. package/dist/server/routing.mjs +1085 -159
  224. package/dist/server/server.mjs +1042 -291
  225. package/dist/server/theme-bridge.mjs +1658 -137
  226. package/dist/server/theme.mjs +6 -4
  227. package/dist/styles/index.css +186 -65
  228. package/package.json +2 -1
@@ -22,6 +22,19 @@ export type PublicNewsletterAPIEndpoints = {
22
22
  siteId: string;
23
23
  token: string;
24
24
  }, string>;
25
+ confirmNewsletterPost: APIEndpoint<never, {
26
+ siteId: string;
27
+ token: string;
28
+ }, string>;
29
+ getNewsletterPreferences: APIEndpoint<never, {
30
+ siteId: string;
31
+ token: string;
32
+ unsubscribe?: string;
33
+ }, string>;
34
+ saveNewsletterPreferences: APIEndpoint<FormData, {
35
+ siteId: string;
36
+ token: string;
37
+ }, string>;
25
38
  getNewsletterArchive: APIEndpoint<never, {
26
39
  siteId: string;
27
40
  token: string;
@@ -0,0 +1,58 @@
1
+ export declare const PUBLIC_NEWSLETTER_ENDPOINT_DEFINITIONS: {
2
+ subscribeNewsletter: {
3
+ path: "/public/sites/{siteId}/newsletter/subscribe";
4
+ method: "POST";
5
+ tags: "public-newsletter-{siteId}"[];
6
+ auth: "public";
7
+ responseKind: "json";
8
+ };
9
+ confirmNewsletter: {
10
+ path: "/public/sites/{siteId}/newsletter/confirm/{token}";
11
+ method: "GET";
12
+ tags: "public-newsletter-{siteId}"[];
13
+ auth: "public";
14
+ responseKind: "text";
15
+ };
16
+ unsubscribeNewsletter: {
17
+ path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}";
18
+ method: "GET";
19
+ tags: "public-newsletter-{siteId}"[];
20
+ auth: "public";
21
+ responseKind: "text";
22
+ };
23
+ unsubscribeNewsletterPost: {
24
+ path: "/public/sites/{siteId}/newsletter/unsubscribe/{token}";
25
+ method: "POST";
26
+ tags: "public-newsletter-{siteId}"[];
27
+ auth: "public";
28
+ responseKind: "text";
29
+ };
30
+ confirmNewsletterPost: {
31
+ path: "/public/sites/{siteId}/newsletter/confirm/{token}";
32
+ method: "POST";
33
+ tags: "public-newsletter-{siteId}"[];
34
+ auth: "public";
35
+ responseKind: "text";
36
+ };
37
+ getNewsletterPreferences: {
38
+ path: "/public/sites/{siteId}/newsletter/preferences/{token}";
39
+ method: "GET";
40
+ tags: "public-newsletter-{siteId}"[];
41
+ auth: "public";
42
+ responseKind: "text";
43
+ };
44
+ saveNewsletterPreferences: {
45
+ path: "/public/sites/{siteId}/newsletter/preferences/{token}";
46
+ method: "POST";
47
+ tags: "public-newsletter-{siteId}"[];
48
+ auth: "public";
49
+ responseKind: "text";
50
+ };
51
+ getNewsletterArchive: {
52
+ path: "/public/sites/{siteId}/newsletter/archive/{token}";
53
+ method: "GET";
54
+ tags: "public-newsletter-{siteId}"[];
55
+ auth: "public";
56
+ responseKind: "text";
57
+ };
58
+ };
@@ -8,8 +8,8 @@ export declare const adminListAxiomLogsQuerySchema: z.ZodObject<{
8
8
  search: z.ZodOptional<z.ZodString>;
9
9
  tail: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
10
10
  mode: z.ZodOptional<z.ZodEnum<{
11
- errors: "errors";
12
11
  all: "all";
12
+ errors: "errors";
13
13
  warnings: "warnings";
14
14
  }>>;
15
15
  }, z.core.$strip>;
@@ -40,8 +40,8 @@ export declare const adminListSupabaseLogsQuerySchema: z.ZodObject<{
40
40
  search: z.ZodOptional<z.ZodString>;
41
41
  tail: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
42
42
  mode: z.ZodOptional<z.ZodEnum<{
43
- errors: "errors";
44
43
  all: "all";
44
+ errors: "errors";
45
45
  warnings: "warnings";
46
46
  }>>;
47
47
  }, z.core.$strip>;
@@ -53,8 +53,8 @@ export declare const adminListVercelLogsQuerySchema: z.ZodObject<{
53
53
  search: z.ZodOptional<z.ZodString>;
54
54
  tail: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
55
55
  mode: z.ZodOptional<z.ZodEnum<{
56
- errors: "errors";
57
56
  all: "all";
57
+ errors: "errors";
58
58
  warnings: "warnings";
59
59
  }>>;
60
60
  }, z.core.$strip>;
@@ -1,3 +1,4 @@
1
+ import type { SdkCourseBookingSettings } from './sdkCourseBooking';
1
2
  import type { SdkEntryUpsertSlotBlock, SdkEventBookingOffer, SdkEventContentInput, SdkPullEvent, SdkPullEventRun, SdkEventUpsertScheduleInput } from './sdkContracts';
2
3
  import { type BookingTimeZone, type UtcIsoDateTimeString } from '../../core/src/index';
3
4
  export { classifySdkEventBookingOffer } from './sdk-event-booking-offer';
@@ -10,6 +11,39 @@ export declare const sdkEventOccurrenceInputSchema: z.ZodObject<{
10
11
  endsAt: z.ZodString;
11
12
  timeZone: z.ZodString;
12
13
  }, z.core.$strip>;
14
+ /**
15
+ * A course's own booking settings, as they are pulled and pushed on the Event.
16
+ * One schema for both directions and for the CLI's site commands, so the three
17
+ * cannot drift apart.
18
+ */
19
+ export declare const sdkCourseBookingSettingsSchema: z.ZodObject<{
20
+ visibility: z.ZodEnum<{
21
+ public: "public";
22
+ unlisted: "unlisted";
23
+ }>;
24
+ acceptsPasses: z.ZodBoolean;
25
+ acceptsMemberships: z.ZodBoolean;
26
+ cancellationPolicy: z.ZodObject<{
27
+ refunds: z.ZodObject<{
28
+ mode: z.ZodEnum<{
29
+ never: "never";
30
+ inherit: "inherit";
31
+ always: "always";
32
+ cutoff: "cutoff";
33
+ }>;
34
+ cutoffHours: z.ZodOptional<z.ZodNumber>;
35
+ }, z.core.$strict>;
36
+ transfers: z.ZodObject<{
37
+ mode: z.ZodEnum<{
38
+ never: "never";
39
+ inherit: "inherit";
40
+ always: "always";
41
+ cutoff: "cutoff";
42
+ }>;
43
+ cutoffHours: z.ZodOptional<z.ZodNumber>;
44
+ }, z.core.$strict>;
45
+ }, z.core.$strict>;
46
+ }, z.core.$strict>;
13
47
  export declare const sdkEventUpsertOptionalFieldSchemas: {
14
48
  readonly path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
49
  readonly status: z.ZodOptional<z.ZodEnum<{
@@ -20,7 +54,6 @@ export declare const sdkEventUpsertOptionalFieldSchemas: {
20
54
  cancelled: "cancelled";
21
55
  }>>;
22
56
  readonly visibility: z.ZodOptional<z.ZodEnum<{
23
- private: "private";
24
57
  public: "public";
25
58
  unlisted: "unlisted";
26
59
  }>>;
@@ -108,6 +141,12 @@ type SdkEventRunExplicitOccurrencesInput = Readonly<{
108
141
  export type SdkEventRunUpsertBody = SdkEventRunUpsertCommon & (SdkEventRunAuthoredScheduleInput | SdkEventRunExplicitOccurrencesInput);
109
142
  export type SdkEventUpsertBody = Readonly<{
110
143
  identifier: string;
144
+ /**
145
+ * A course's listing, passes, memberships and refund policy, written onto
146
+ * every one of its runs in one go. Only a course may send it; leaving it out
147
+ * leaves those settings as they are.
148
+ */
149
+ courseBooking?: SdkCourseBookingSettings;
111
150
  administrativeStatus?: SdkPullEvent['administrativeStatus'];
112
151
  title: string;
113
152
  slug: string;
@@ -2,14 +2,13 @@ import type { SdkSiteLayoutConfig } from './sdkConfig/layout';
2
2
  export type { SdkSiteLayoutConfig } from './sdkConfig/layout';
3
3
  import type { BlockContentSource, BlockContentSourceKind, FieldDefinition, FieldDefinitionInput, SdkCustomBlock, SdkCustomBlockInput, Theme } from '../../blocks/src/index';
4
4
  import type { ContentTypeSchema } from '../../content-model/src/index';
5
- import type { EventPreset, FooterCompositionV1, RichTextDoc } from '../../core/src/index';
5
+ import type { FooterCompositionV1, RichTextDoc } from '../../core/src/index';
6
6
  export type { SdkBlockAppearanceChoice, SdkBlockAppearanceOutcome, } from './sdkBlockUpsertContracts';
7
7
  import type { LinkPayload } from './navigation/types';
8
8
  import type { JsonValue } from './shared-contracts';
9
9
  import type { EventBookingOfferIntent } from '@riverbankcms/site-commands';
10
10
  import type { ManagementMediaAsset } from './sdkMediaContracts';
11
11
  export type { ManagementMediaAsset, SdkMediaDeleteApplyResponse, SdkMediaDeletePreviewResponse, SdkMediaDownloadResponse, SdkMediaListResponse, } from './sdkMediaContracts';
12
- import type { SdkPullEventOccurrence } from './sdk-event-schedule';
13
12
  import type { SiteCommandApplicationResult } from '@riverbankcms/site-commands';
14
13
  import type { SdkThemeWire } from './sdkThemeWire';
15
14
  import type { SdkCatalogButtonStyleControl } from './sdkThemeCatalogContracts';
@@ -770,46 +769,8 @@ export interface SdkPullEventCategoriesResponse {
770
769
  eventCategories: SdkPullEventCategory[];
771
770
  meta: SdkPullMeta;
772
771
  }
773
- export interface SdkPullEvent {
774
- identifier: string;
775
- administrativeStatus: 'active' | 'archived';
776
- title: string;
777
- slug: string;
778
- path: string | null;
779
- preset: EventPreset;
780
- runRefs: readonly [string, ...string[]];
781
- content: {
782
- summary?: string;
783
- body?: RichTextDoc;
784
- image?: Record<string, unknown> & {
785
- identifier: string;
786
- };
787
- [key: string]: unknown;
788
- };
789
- updatedAt: string;
790
- createdAt: string;
791
- contentUpdatedAt: string | null;
792
- blocks?: SdkEntrySlotBlocks;
793
- }
794
- export interface SdkPullEventRun {
795
- identifier: string;
796
- eventRef: string;
797
- name: string | null;
798
- status: 'draft' | 'active' | 'archived' | 'cancelled' | 'completed';
799
- visibility: 'private' | 'public' | 'unlisted';
800
- bookingScope: 'single_occurrence' | 'whole_series';
801
- occurrences: readonly SdkPullEventOccurrence[];
802
- capacity: number | null;
803
- bookingOffer: SdkEventBookingOffer;
804
- venueRef: string | null;
805
- categoryRef: string | null;
806
- formRef: string | null;
807
- settings: Record<string, unknown>;
808
- presentation: Record<string, unknown> | null;
809
- tags: string[];
810
- updatedAt: string;
811
- createdAt: string;
812
- }
772
+ export type { SdkPullEvent, SdkPullEventRun } from './sdkPullEventContracts';
773
+ import type { SdkPullEvent, SdkPullEventRun } from './sdkPullEventContracts';
813
774
  export type { SdkPullEventOccurrence } from './sdk-event-schedule';
814
775
  export type SdkEventContentInput = {
815
776
  summary?: string;
@@ -0,0 +1,30 @@
1
+ import type { z } from 'zod';
2
+ import type { courseBookingSettingsSchema } from '@riverbankcms/site-commands';
3
+ import type { CourseBookingSettingsRequest } from './eventManagementContracts';
4
+ /**
5
+ * The four booking settings a course owns for every one of its runs: where it
6
+ * is listed, whether passes and memberships may be used, and the refunds and
7
+ * transfers policy.
8
+ *
9
+ * Storage is per run, but a run may not be written for them — the course is the
10
+ * single writer — so they are pulled and pushed on the Event and are absent
11
+ * from every whole-series run.
12
+ *
13
+ * Taken from the schema that validates a push, so the wire shape and what the
14
+ * parser admits cannot drift apart.
15
+ */
16
+ export type SdkCourseBookingSettings = z.infer<typeof courseBookingSettingsSchema>;
17
+ type Assert<T extends true> = T;
18
+ /**
19
+ * The pushed settings and the management API's own request are the same four
20
+ * fields; if either changes without the other, this stops compiling.
21
+ */
22
+ export type SdkCourseBookingSettingsMatchesRequest = Assert<SdkCourseBookingSettings extends CourseBookingSettingsRequest ? CourseBookingSettingsRequest extends SdkCourseBookingSettings ? true : false : false>;
23
+ /**
24
+ * Carried by the pulled Event. Present only for a course: an ordinary event
25
+ * owns its own listing and passes, on the run itself.
26
+ */
27
+ export interface SdkPulledCourseBooking {
28
+ courseBooking?: SdkCourseBookingSettings;
29
+ }
30
+ export {};
@@ -0,0 +1,76 @@
1
+ /**
2
+ * The SDK's Event graph: the Events themselves and the occurrences of one run.
3
+ * Extracted from `endpoints.ts` so this family can be read, and added to, on
4
+ * its own. New entries here must declare `errors`; the
5
+ * require-api-endpoint-errors lint enforces that here as in endpoints.ts.
6
+ */
7
+ export declare const SDK_EVENT_ENDPOINT_DEFINITIONS: {
8
+ sdkListEvents: {
9
+ path: "/sdk/{siteId}/events";
10
+ method: "GET";
11
+ auth: "service";
12
+ responseKind: "json";
13
+ };
14
+ sdkUpsertEvent: {
15
+ path: "/sdk/{siteId}/events";
16
+ method: "POST";
17
+ auth: "service";
18
+ responseKind: "json";
19
+ errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "billing:plan_limit_exceeded" | "server:internal_error")[];
20
+ };
21
+ sdkGetEvent: {
22
+ path: "/sdk/{siteId}/events/{identifier}";
23
+ method: "GET";
24
+ auth: "service";
25
+ responseKind: "json";
26
+ };
27
+ sdkDeleteEvent: {
28
+ path: "/sdk/{siteId}/events/{identifier}";
29
+ method: "DELETE";
30
+ auth: "service";
31
+ responseKind: "json";
32
+ errors: ("resource:not_found" | "resource:conflict" | "server:internal_error")[];
33
+ };
34
+ sdkTakeEventOffline: {
35
+ path: "/sdk/{siteId}/events/{identifier}/lifecycle";
36
+ method: "POST";
37
+ auth: "service";
38
+ responseKind: "json";
39
+ errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "server:internal_error")[];
40
+ };
41
+ sdkListEventOccurrences: {
42
+ path: "/sdk/{siteId}/events/{identifier}/runs/{runIdentifier}/occurrences";
43
+ method: "GET";
44
+ auth: "service";
45
+ responseKind: "json";
46
+ errors: ("validation:invalid_input" | "resource:not_found" | "server:internal_error")[];
47
+ };
48
+ sdkAddEventOccurrence: {
49
+ path: "/sdk/{siteId}/events/{identifier}/runs/{runIdentifier}/occurrences";
50
+ method: "POST";
51
+ auth: "service";
52
+ responseKind: "json";
53
+ errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "server:internal_error")[];
54
+ };
55
+ sdkUpdateEventOccurrence: {
56
+ path: "/sdk/{siteId}/events/{identifier}/runs/{runIdentifier}/occurrences/{occurrenceId}";
57
+ method: "PATCH";
58
+ auth: "service";
59
+ responseKind: "json";
60
+ errors: ("validation:invalid_input" | "resource:not_found" | "resource:conflict" | "server:internal_error")[];
61
+ };
62
+ sdkCancelEventOccurrence: {
63
+ path: "/sdk/{siteId}/events/{identifier}/runs/{runIdentifier}/occurrences/{occurrenceId}/cancel";
64
+ method: "POST";
65
+ auth: "service";
66
+ responseKind: "json";
67
+ errors: ("resource:not_found" | "resource:conflict" | "server:internal_error")[];
68
+ };
69
+ sdkDeleteEventOccurrence: {
70
+ path: "/sdk/{siteId}/events/{identifier}/runs/{runIdentifier}/occurrences/{occurrenceId}";
71
+ method: "DELETE";
72
+ auth: "service";
73
+ responseKind: "json";
74
+ errors: ("resource:not_found" | "resource:conflict" | "server:internal_error")[];
75
+ };
76
+ };
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The SDK management lifecycle contract for parent Events.
3
+ *
4
+ * Lifecycle is deliberately a single operation: a management key can take an
5
+ * Event offline, and nothing else. There is no put-online, no archive or
6
+ * restore, and no cancel (issue 1495). The endpoint itself is declared in
7
+ * `sdkEventEndpointDefinitions.ts`.
8
+ */
9
+ import type { EventSeriesId } from '../../core/src/index';
10
+ import type { APIEndpoint } from './apiEndpointTypes';
11
+ /**
12
+ * An `applied` outcome always changed something: at least one run, or the
13
+ * Event page. Running the operation again on an Event that is already offline
14
+ * reports `already-offline` rather than failing.
15
+ */
16
+ export type SdkTakeEventOfflineResponse = Readonly<{
17
+ kind: 'applied';
18
+ changedRunIds: readonly [EventSeriesId, ...EventSeriesId[]];
19
+ pageTakenOffline: boolean;
20
+ }> | Readonly<{
21
+ kind: 'applied';
22
+ changedRunIds: readonly [];
23
+ pageTakenOffline: true;
24
+ }> | Readonly<{
25
+ kind: 'already-offline';
26
+ }>;
27
+ export type SdkTakeEventOfflineBody = Readonly<{
28
+ command: Readonly<{
29
+ kind: 'takeOfferingOffline';
30
+ }>;
31
+ }>;
32
+ export type SdkEventLifecycleAPIEndpoints = {
33
+ sdkTakeEventOffline: APIEndpoint<SdkTakeEventOfflineBody, {
34
+ siteId: string;
35
+ identifier: string;
36
+ }, SdkTakeEventOfflineResponse>;
37
+ };
@@ -1,8 +1,26 @@
1
1
  import type { EventOccurrenceStatus } from './bookingRecords';
2
+ import type { EventPageState } from './eventManagementContracts';
2
3
  import type { EventOfferingId, EventSeriesId, OccurrenceId } from '../../core/src/index';
3
4
  import type { SdkEventCanonicalScheduleInput, SdkPullEvent, SdkPullEventRun } from './sdkContracts';
4
5
  export type SdkManagementEvent = SdkPullEvent & {
5
6
  id: EventOfferingId;
7
+ /**
8
+ * Whether the Event's own page is currently reachable by the public, derived
9
+ * from its route exactly as the dashboard's lifecycle service derives it
10
+ * (`EventPageState`): published means `online`, anything else `offline`.
11
+ *
12
+ * Read-only, and deliberately absent from the portable pull/upsert shape: a
13
+ * page goes online or offline through lifecycle operations, never by being
14
+ * written back in an event file.
15
+ *
16
+ * Optional only for the length of one release, for the same reason as
17
+ * `confirmedPlaces` below. A published CLI can be pointed at a dashboard
18
+ * that predates this field, and making it required would fail the whole
19
+ * event response parse rather than one column. Make it required once every
20
+ * dashboard carrying this change is live. While it is absent, a client
21
+ * cannot prove the page state and must say so rather than assume.
22
+ */
23
+ pageState?: EventPageState;
6
24
  };
7
25
  export type SdkManagementEventRun = SdkPullEventRun & {
8
26
  id: EventSeriesId;