@riverbankcms/sdk 0.135.1 → 0.137.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 (220) hide show
  1. package/CHANGELOG.md +114 -0
  2. package/README.md +4 -8
  3. package/dist/{PreviewEditorSidebar-D4p_5TdY.mjs → PreviewEditorSidebar-Bn6cONPa.mjs} +8 -8
  4. package/dist/{PreviewEditorUI-D0cRoTX1.mjs → PreviewEditorUI-LAwXZPSx.mjs} +3 -3
  5. package/dist/{PreviewQueryProvider-DcgaESkm.mjs → PreviewQueryProvider-ztQUdsNo.mjs} +1 -1
  6. package/dist/{SdkPreviewModeRuntime-BKLtM3Nz.mjs → SdkPreviewModeRuntime-BbbGsI_v.mjs} +621 -238
  7. package/dist/{SiteChromeCustomizeContext-61X2m7QV.mjs → SiteChromeCustomizeContext-BbkNSt5a.mjs} +5041 -2407
  8. package/dist/_dts/ai/src/contracts/proposals.d.ts +18 -850
  9. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +412 -2316
  10. package/dist/_dts/ai/src/designer/themePatch.d.ts +5 -10
  11. package/dist/_dts/api/src/accessAdmin.d.ts +1 -9
  12. package/dist/_dts/api/src/accountApi.d.ts +49 -2
  13. package/dist/_dts/api/src/contentRuntime.d.ts +7 -4
  14. package/dist/_dts/api/src/domainConnection.d.ts +41 -0
  15. package/dist/_dts/api/src/endpoints.d.ts +201 -181
  16. package/dist/_dts/api/src/index.d.ts +5 -3
  17. package/dist/_dts/api/src/media.d.ts +19 -2
  18. package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +7 -0
  19. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +26 -0
  20. package/dist/_dts/api/src/sdkBlockContentAdmission.d.ts +5 -0
  21. package/dist/_dts/api/src/sdkContracts.d.ts +2 -15
  22. package/dist/_dts/api/src/sdkMediaContracts.d.ts +40 -0
  23. package/dist/_dts/api/src/sdkMediaEndpointDefinitions.d.ts +61 -0
  24. package/dist/_dts/api/src/sdkThemeWire.d.ts +21 -436
  25. package/dist/_dts/api/src/siteInfrastructure.d.ts +17 -23
  26. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +7 -21
  27. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +27 -3
  28. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +37 -17
  29. package/dist/_dts/api/src/types.d.ts +1 -1
  30. package/dist/_dts/block-form/src/blockDraftSaveability.d.ts +2 -3
  31. package/dist/_dts/block-form/src/utils/slug.d.ts +6 -0
  32. package/dist/_dts/blocks/src/PageRenderer.d.ts +13 -7
  33. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +48 -0
  34. package/dist/_dts/blocks/src/definitions.d.ts +14 -0
  35. package/dist/_dts/blocks/src/index.d.ts +4 -3
  36. package/dist/_dts/blocks/src/pageRenderAdmission.d.ts +49 -0
  37. package/dist/_dts/blocks/src/pageRendererBlockSupport.d.ts +75 -0
  38. package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +2 -0
  39. package/dist/_dts/blocks/src/server.d.ts +2 -2
  40. package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +1 -1
  41. package/dist/_dts/blocks/src/system/data/index.d.ts +2 -0
  42. package/dist/_dts/blocks/src/system/data/publicLoaderCachePolicy.d.ts +78 -0
  43. package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +2 -18
  44. package/dist/_dts/blocks/src/system/manifest/validation.d.ts +103 -16
  45. package/dist/_dts/blocks/src/system/node/validation-constants.d.ts +1 -1
  46. package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +4 -2
  47. package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +8 -0
  48. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
  49. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +19 -0
  50. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +52 -0
  51. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -0
  52. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +47 -21
  53. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +38 -9
  54. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ErrorStep.d.ts +3 -5
  55. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/VerifyingTimeoutStep.d.ts +3 -1
  56. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
  57. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +1 -1
  58. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +2 -0
  59. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorPresentation.d.ts +5 -0
  60. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +25 -0
  61. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationWizardContext.d.ts +4 -0
  62. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +8 -3
  63. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +2 -0
  64. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +5 -2
  65. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +2 -0
  66. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.client.d.ts +2 -2
  67. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +40 -0
  68. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +2 -0
  69. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +43 -0
  70. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/capacity.d.ts +164 -0
  71. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/cta.d.ts +29 -0
  72. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +47 -0
  73. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/index.d.ts +14 -0
  74. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/people.d.ts +6 -0
  75. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/pricing.d.ts +31 -0
  76. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CalendarDayCell.d.ts +3 -1
  77. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CalendarNavigationChevron.d.ts +4 -0
  78. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/DayEventsModal.d.ts +2 -1
  79. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventModalContext.d.ts +3 -2
  80. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/OfferingTitle.d.ts +11 -0
  81. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +4 -1
  82. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekBoardView.d.ts +31 -3
  83. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.d.ts +3 -1
  84. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +9 -1
  85. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/index.d.ts +3 -1
  86. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listingLayout.d.ts +23 -0
  87. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/timetableModel.d.ts +4 -3
  88. package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +0 -1
  89. package/dist/_dts/calendar/src/grid.d.ts +24 -66
  90. package/dist/_dts/calendar/src/index.d.ts +2 -2
  91. package/dist/_dts/calendar/src/timetable.d.ts +5 -9
  92. package/dist/_dts/commerce/src/purchase/allocation.d.ts +11 -0
  93. package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +57 -0
  94. package/dist/_dts/commerce/src/purchase/index.d.ts +3 -0
  95. package/dist/_dts/commerce/src/purchase/settlement.d.ts +33 -0
  96. package/dist/_dts/commerce/src/purchase/stripeCheckoutReturnUrl.d.ts +8 -0
  97. package/dist/_dts/content-model/src/templates/defaults.d.ts +6 -0
  98. package/dist/_dts/core/src/slug.d.ts +20 -5
  99. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +8 -40
  100. package/dist/_dts/db/src/index.d.ts +1 -0
  101. package/dist/_dts/db/src/utils/postgrestFilter.d.ts +2 -0
  102. package/dist/_dts/media-core/src/bulkDeletePlanning.d.ts +4 -0
  103. package/dist/_dts/media-core/src/fileDomain.d.ts +3 -0
  104. package/dist/_dts/preview-next/src/client/blocks/EditablePageRenderer.d.ts +1 -1
  105. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -0
  106. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
  107. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -2
  108. package/dist/_dts/preview-next/src/client/preview/headerInteractionPaletteSurfaceState.d.ts +2 -1
  109. package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +1 -1
  110. package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -0
  111. package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlSaveRequest.d.ts +51 -0
  112. package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +24 -2
  113. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +23 -1
  114. package/dist/_dts/preview-next/src/client/preview/usePersistedHeaderPreferences.d.ts +8 -0
  115. package/dist/_dts/sdk/src/client/publicLoaderCacheAccess.d.ts +6 -0
  116. package/dist/_dts/sdk/src/public-api/contracts.d.ts +7 -2
  117. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +10 -6
  118. package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +0 -1
  119. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +4 -4
  120. package/dist/_dts/sdk/src/rendering/helpers/footerPageOutline.d.ts +3 -0
  121. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +3 -0
  122. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  123. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +17 -0
  124. package/dist/_dts/sdk/src/rendering/helpers/templateContent.d.ts +9 -3
  125. package/dist/_dts/sdk/src/rendering/hooks/usePage.d.ts +1 -1
  126. package/dist/_dts/sdk/src/rendering/index.d.ts +2 -2
  127. package/dist/_dts/sdk/src/rendering/overrideResolution.d.ts +7 -4
  128. package/dist/_dts/sdk/src/version.d.ts +1 -1
  129. package/dist/_dts/theme-core/src/cards/types.d.ts +8 -8
  130. package/dist/_dts/theme-core/src/data.d.ts +12 -0
  131. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  132. package/dist/_dts/theme-core/src/gradients/types.d.ts +5 -0
  133. package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +25 -2
  134. package/dist/_dts/theme-core/src/header/legacyHeaderVariant.d.ts +2 -6
  135. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +9 -810
  136. package/dist/_dts/theme-core/src/schema.d.ts +460 -1285
  137. package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +43 -3
  138. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +223 -1
  139. package/dist/_dts/theme-core/src/site-styles/headerBrandPresentation.d.ts +63 -0
  140. package/dist/_dts/theme-core/src/site-styles/headerBytesComparison.d.ts +30 -0
  141. package/dist/_dts/theme-core/src/site-styles/headerInteractionPalette.d.ts +50 -1
  142. package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +48 -38
  143. package/dist/_dts/theme-core/src/site-styles/headerLayoutStyles.d.ts +10 -0
  144. package/dist/_dts/theme-core/src/site-styles/headerLayoutTypes.d.ts +8 -5
  145. package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +4 -4
  146. package/dist/_dts/theme-core/src/site-styles/headerPreferences.d.ts +162 -0
  147. package/dist/_dts/theme-core/src/site-styles/headerPreferencesPersistence.d.ts +73 -0
  148. package/dist/_dts/theme-core/src/site-styles/headerRecompile.d.ts +118 -0
  149. package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +25 -2
  150. package/dist/_dts/theme-core/src/site-styles/headerStyleDefaults.d.ts +465 -0
  151. package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +168 -0
  152. package/dist/_dts/theme-core/src/site-styles/index.d.ts +5 -0
  153. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +1 -1
  154. package/dist/_dts/theme-core/src/site-styles/siteChromeBackgrounds.d.ts +20 -1
  155. package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +43 -2
  156. package/dist/client/{BookingConsentAgreement-Bz9znbpn.mjs → BookingConsentAgreement--_fUCZe-.mjs} +2 -2
  157. package/dist/client/{DiscountCodeDisclosure-35Ru8yB9.mjs → DiscountCodeDisclosure-BMipSoDJ.mjs} +1 -1
  158. package/dist/client/{EventCombined.client-BKB0ZxRR.mjs → EventCombined.client-CwJOxn7A.mjs} +274 -278
  159. package/dist/client/{EventListing.client-Dx8I21ok.mjs → EventListing.client-eVwiylPW.mjs} +2 -2
  160. package/dist/client/{LeafletStaticMap-CEWx-Bhe.mjs → LeafletStaticMap-IKenna5u.mjs} +1 -1
  161. package/dist/client/{accordion-KIDsKTwS.mjs → accordion-MGAO3PuE.mjs} +1 -1
  162. package/dist/client/{bookingForm-D96Rmp-5.mjs → bookingForm-CudlQPUu.mjs} +5 -5
  163. package/dist/client/bookings.mjs +476 -98
  164. package/dist/client/capacity-BW00PO7s.mjs +271 -0
  165. package/dist/client/{carousel-YwUgyL66.mjs → carousel-BrbGJ2Jl.mjs} +1 -1
  166. package/dist/client/{cart-BbwuNrUT.mjs → cart-Bq5eU0xZ.mjs} +3 -3
  167. package/dist/client/{checkout-hp1ucmEY.mjs → checkout-BAFVRdrK.mjs} +3 -3
  168. package/dist/client/client.mjs +4641 -2721
  169. package/dist/client/{context-DljQn8L5.mjs → context-DCkiHVdD.mjs} +20 -5
  170. package/dist/client/dates-2RPXHQy4.mjs +264 -0
  171. package/dist/client/{eventCalendar-DU4iNLpo.mjs → eventCalendar-B0O-hPF7.mjs} +261 -126
  172. package/dist/client/{eventCombined-CZuupW8m.mjs → eventCombined-DCkDaoDI.mjs} +3 -3
  173. package/dist/client/{eventDetails-DPQWwCIi.mjs → eventDetails-D8GG2dnD.mjs} +7 -4
  174. package/dist/client/{eventListing-C7oMidwS.mjs → eventListing-3ssV_bxz.mjs} +3 -3
  175. package/dist/client/{eventRegistration-zEiunlUs.mjs → eventRegistration-bPQo3kVw.mjs} +610 -313
  176. package/dist/client/{form-D2KIyCVJ.mjs → form-qMv8RDkk.mjs} +2 -2
  177. package/dist/client/{headerSection-CK5uChUK.mjs → headerSection-CH0Sc5hX.mjs} +2 -2
  178. package/dist/client/hooks.mjs +2514 -308
  179. package/dist/client/{locationMap-DLQNH1ln.mjs → locationMap-0_xlBnNI.mjs} +2 -2
  180. package/dist/client/{newsletterForm-ZuhIG7fZ.mjs → newsletterForm-NUW7m9RI.mjs} +2 -2
  181. package/dist/client/{productDetail-7hIcGeae.mjs → productDetail-FBEOM7jW.mjs} +3 -3
  182. package/dist/client/{productList-T4Cii1ot.mjs → productList-R0OSGhnn.mjs} +3 -3
  183. package/dist/client/{propsDecoder-mB0aC_Fi.mjs → propsDecoder-pYvx_Srl.mjs} +179 -401
  184. package/dist/client/rendering/client.mjs +3496 -2223
  185. package/dist/client/rendering/islands.mjs +17 -17
  186. package/dist/client/rendering.mjs +4400 -2510
  187. package/dist/client/{scrollToBlock-Du5mHgvL.mjs → scrollToBlock-ByQv96M2.mjs} +1 -1
  188. package/dist/client/{shop-B5zAcKZn.mjs → shop-RUG9DmRE.mjs} +6 -6
  189. package/dist/client/{shop-commerce-BKBZB6l5.mjs → shop-commerce-B76Jz23B.mjs} +5 -5
  190. package/dist/client/{shop-commerce-store-Cq4qlNtQ.mjs → shop-commerce-store-QuQNdDsD.mjs} +1 -1
  191. package/dist/client/{shopShared-DYGzEs9D.mjs → shopShared-vXU1omwJ.mjs} +3 -3
  192. package/dist/client/{useEventFilters-Bphkda8m.mjs → useEventFilters-ByuU6HLA.mjs} +33 -18
  193. package/dist/preview-next/before-render.mjs +86 -51
  194. package/dist/preview-next/client/runtime.mjs +4 -4
  195. package/dist/preview-next/keepAlive.mjs +86 -51
  196. package/dist/preview-next/middleware.mjs +86 -51
  197. package/dist/{previewAuthStore-C7ksxt5b.mjs → previewAuthStore-L_cKW8Sb.mjs} +86 -51
  198. package/dist/{sdk-runtime-BbIC8G4J.mjs → sdk-runtime-sUMr5d70.mjs} +2 -2
  199. package/dist/{separator-CadhAtI7.mjs → separator-BIHkie5i.mjs} +1 -1
  200. package/dist/server/components.mjs +4397 -2960
  201. package/dist/server/config-validation.mjs +354 -145
  202. package/dist/server/config.mjs +354 -145
  203. package/dist/server/data.mjs +354 -144
  204. package/dist/server/index.mjs +201 -55
  205. package/dist/server/manifest.mjs +0 -1
  206. package/dist/server/next.mjs +4046 -2611
  207. package/dist/server/page-converter.mjs +225 -122
  208. package/dist/server/prebuild.mjs +1 -1
  209. package/dist/server/rendering/server.mjs +4105 -2636
  210. package/dist/server/rendering.mjs +4522 -3087
  211. package/dist/server/routing.mjs +3289 -1637
  212. package/dist/server/server.mjs +23175 -21079
  213. package/dist/server/theme-bridge.mjs +708 -272
  214. package/dist/server/theme.mjs +29 -25
  215. package/dist/styles/index.css +624 -181
  216. package/package.json +1 -1
  217. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCapacity.d.ts +0 -48
  218. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/pricing.d.ts +0 -17
  219. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +0 -100
  220. /package/dist/_dts/blocks/src/system/runtime/nodes/events/{shared → domain}/destination.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-35Ru8yB9.mjs";
2
+ import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-BMipSoDJ.mjs";
3
3
  import { useEffect, useReducer, useRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/shared/components/CheckIcon.tsx
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { At as assertNever, en as assertNever$1, o as formatCommercePrice, s as formatInterval, st as themeButtonClassName, t as defineIslandPropsDecoder } from "./propsDecoder-mB0aC_Fi.mjs";
3
- import { n as useBlockApi } from "./context-DljQn8L5.mjs";
4
- import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-Du5mHgvL.mjs";
5
- import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-35Ru8yB9.mjs";
2
+ import { X as themeButtonClassName, o as formatCommercePrice, qt as assertNever$1, s as formatInterval, t as defineIslandPropsDecoder, yt as assertNever } from "./propsDecoder-pYvx_Srl.mjs";
3
+ import { n as useBlockApi } from "./context-DCkiHVdD.mjs";
4
+ import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-ByQv96M2.mjs";
5
+ import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-BMipSoDJ.mjs";
6
6
  import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
7
7
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-AGs4cE7t.mjs";
8
8
  import { n as consumeSearchParams } from "./urlParams-D71VXFGx.mjs";
9
9
  import { t as CrossIcon } from "./CrossIcon-Dn1KRKW5.mjs";
10
- import { _ as MembershipCardView, a as getDiscountApplyFeedback, b as PassesMembershipsSectionView, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassPurchaseUnavailable } from "./shopShared-DYGzEs9D.mjs";
11
- import { t as addPassToCommerceCart } from "./shop-commerce-store-Cq4qlNtQ.mjs";
10
+ import { _ as MembershipCardView, a as getDiscountApplyFeedback, b as PassesMembershipsSectionView, d as planDirectShopCheckoutRequest, i as getAppliedDiscountCode, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, t as mountShopBlockIsland, v as PassCardView, y as PassPurchaseUnavailable } from "./shopShared-vXU1omwJ.mjs";
11
+ import { t as addPassToCommerceCart } from "./shop-commerce-store-QuQNdDsD.mjs";
12
12
  import { t as ModalShell } from "./ModalShell-CqkBvBIC.mjs";
13
13
  import React, { useCallback, useEffect, useRef, useState } from "react";
14
14
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { At as assertNever, Ft as reportWorkflowError, Ot as RichTextDocSchema, a as buildProductDetailDisplay, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, jt as clearWorkflowFeedback, lt as logger, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, st as themeButtonClassName, u as buildProductCartItem } from "./propsDecoder-mB0aC_Fi.mjs";
3
- import { n as useBlockApi } from "./context-DljQn8L5.mjs";
4
- import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-35Ru8yB9.mjs";
2
+ import { Q as logger, X as themeButtonClassName, _t as RichTextDocSchema, a as buildProductDetailDisplay, bt as clearWorkflowFeedback, d as deriveCommerceCheckoutState, i as buildProductCardDisplay, n as getShopDisplayForItems, o as formatCommercePrice, p as productItemKey, u as buildProductCartItem, wt as reportWorkflowError, yt as assertNever } from "./propsDecoder-pYvx_Srl.mjs";
3
+ import { n as useBlockApi } from "./context-DCkiHVdD.mjs";
4
+ import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-BMipSoDJ.mjs";
5
5
  import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
6
6
  import { n as RichText, t as buildCheckoutReturnUrls } from "./checkoutUrls-BuseL0dw.mjs";
7
7
  import { t as consumeSearchParam } from "./urlParams-D71VXFGx.mjs";
8
8
  import { t as CarouselNodeClient } from "./carousel.client-59G_WMr4.mjs";
9
9
  import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-ClwHwYVA.mjs";
10
- import { C as ProductGalleryFrameView, S as ProductDetailView, T as VariantSelectView, a as getDiscountApplyFeedback, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as ProductListSectionView, x as ProductCardView } from "./shopShared-DYGzEs9D.mjs";
11
- import { n as useCommerceCart } from "./shop-commerce-store-Cq4qlNtQ.mjs";
10
+ import { C as ProductGalleryFrameView, S as ProductDetailView, T as VariantSelectView, a as getDiscountApplyFeedback, c as aggregateCartDiscountUiState, f as planUnifiedCheckoutRequest, g as CheckoutShellView, h as CartShellView, i as getAppliedDiscountCode, l as checkoutFormForDiscountUiState, m as useTransientShopAddFeedback, n as useDiscountApply, o as initialDiscountApplyState, p as ShopAddFeedback, r as discountApplyReducer, s as isDiscountApplyInFlight, u as planCartDiscountAvailabilityRequests, w as ProductListSectionView, x as ProductCardView } from "./shopShared-vXU1omwJ.mjs";
11
+ import { n as useCommerceCart } from "./shop-commerce-store-QuQNdDsD.mjs";
12
12
  import * as React$1 from "react";
13
13
  import { useEffect, useState } from "react";
14
14
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-mB0aC_Fi.mjs";
2
+ import { c as EMPTY_COMMERCE_CART_STATE, f as parseStoredCommerceCartState, l as buildPassCartItem, m as reduceCommerceCart } from "./propsDecoder-pYvx_Srl.mjs";
3
3
  import * as React$1 from "react";
4
4
  //#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
5
5
  const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { E as ok, T as err } from "./colorStyles-CrxJrPjJ.mjs";
3
- import { At as assertNever } from "./propsDecoder-mB0aC_Fi.mjs";
4
- import { t as BlockApiProvider } from "./context-DljQn8L5.mjs";
5
- import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-35Ru8yB9.mjs";
3
+ import { yt as assertNever } from "./propsDecoder-pYvx_Srl.mjs";
4
+ import { t as BlockApiProvider } from "./context-DCkiHVdD.mjs";
5
+ import { i as getAutoAppliedDiscountPreview, n as discountAvailabilityAllowsManualEntry, r as discountAvailabilityHasDiscounts } from "./DiscountCodeDisclosure-BMipSoDJ.mjs";
6
6
  import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
7
7
  import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
8
8
  import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-UNsfPcYq.mjs";
@@ -1,9 +1,11 @@
1
1
  "use client";
2
2
  import { d as hexToRgb, u as relativeLuminance } from "./colorStyles-CrxJrPjJ.mjs";
3
- import { A as isSemanticSpacing, At as assertNever, B as formatEventPrice, F as normalizeCsvString, H as formatEventTeacherLine, I as normalizeOptionalId, L as formatDate, N as getEventRuntimeFiltersKey, P as normalizeCsvIds, R as formatEventCompactDateRail, U as formatTime, X as getEventAvailability, at as resolveOnColorForThemeToken, ct as normalizeCardRole, it as isCssColorLiteral, j as resolveSpacing, k as SEMANTIC_SPACING_VALUES, ot as resolveTokenOrCssColorValue, q as resolveEventCta, rt as boxBackgroundSchema, st as themeButtonClassName } from "./propsDecoder-mB0aC_Fi.mjs";
3
+ import { A as isSemanticSpacing, F as normalizeCsvString, I as normalizeOptionalId, J as resolveOnColorForThemeToken, K as boxBackgroundSchema, N as getEventRuntimeFiltersKey, P as normalizeCsvIds, X as themeButtonClassName, Y as resolveTokenOrCssColorValue, Z as normalizeCardRole, j as resolveSpacing, k as SEMANTIC_SPACING_VALUES, q as isCssColorLiteral, yt as assertNever, z as formatEventPrice } from "./propsDecoder-pYvx_Srl.mjs";
4
4
  import { a as getCurrentResolveImageUrlContext, i as computeMediaTransformStyle, l as resolveMediaNodeResponsiveImage, n as MediaPlaceholder, o as renderAudio, s as renderVideo, t as ImagePresets } from "./media-BOHuueS5.mjs";
5
- import { n as useBlockApi } from "./context-DljQn8L5.mjs";
6
- import { t as LeafletStaticMap } from "./LeafletStaticMap-CEWx-Bhe.mjs";
5
+ import { r as formatEventRemainingPlaces } from "./capacity-BW00PO7s.mjs";
6
+ import { c as resolveEventCta, i as formatTime, l as resolveEventLinkProps, n as formatEventCompactDateRail, t as formatDate } from "./dates-2RPXHQy4.mjs";
7
+ import { n as useBlockApi } from "./context-DCkiHVdD.mjs";
8
+ import { t as LeafletStaticMap } from "./LeafletStaticMap-IKenna5u.mjs";
7
9
  import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
8
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
11
  //#region ../theme-core/src/palette/utils/textColor.ts
@@ -47,6 +49,22 @@ function clamp255(value) {
47
49
  return Math.max(0, Math.min(255, value));
48
50
  }
49
51
  //#endregion
52
+ //#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
53
+ function formatTeamMemberNames(names) {
54
+ const normalized = names.map((name) => name.trim()).filter(Boolean);
55
+ if (normalized.length === 0) return null;
56
+ const [firstName, secondName] = normalized;
57
+ if (!firstName) return null;
58
+ if (normalized.length === 1) return firstName;
59
+ if (normalized.length === 2 && secondName) return `${firstName} and ${secondName}`;
60
+ const finalName = normalized[normalized.length - 1] ?? "";
61
+ return `${normalized.slice(0, -1).join(", ")}, and ${finalName}`;
62
+ }
63
+ function formatEventTeacherLine(event) {
64
+ const names = formatTeamMemberNames((event.teamMembers ?? []).map((teamMember) => teamMember.name));
65
+ return names ? `with ${names}` : null;
66
+ }
67
+ //#endregion
50
68
  //#region ../blocks/src/system/runtime/nodes/events/shared/EmptyState.tsx
51
69
  /**
52
70
  * EmptyState Component
@@ -448,7 +466,6 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
448
466
  const formattedDate = formatDate(event.startsAt, { timeZone });
449
467
  const formattedTime = `${formatTime(event.startsAt, { timeZone })} - ${formatTime(event.endsAt, { timeZone })}`;
450
468
  const cta = resolveEventCta(event, buttonText);
451
- const { available: spotsLeft, isFull: isSoldOut } = getEventAvailability(event);
452
469
  const cardClass = boxStyleClassNames({ role: cardRole }, { baseClass: "event-card" });
453
470
  const buttonClass = themeButtonClassName({
454
471
  variant: buttonVariant,
@@ -464,10 +481,7 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
464
481
  } : null;
465
482
  const hasImage = Boolean(showImage && image);
466
483
  const teacherLine = formatEventTeacherLine(event);
467
- const capacityText = showCapacity ? formatCapacityText(event, {
468
- isSoldOut,
469
- spotsLeft
470
- }) : null;
484
+ const capacityText = showCapacity ? formatEventRemainingPlaces(event, { full: "Sold out" }) : null;
471
485
  return /* @__PURE__ */ jsxs("article", {
472
486
  className: `${cardClass} group rb-flex rb-flex-col rb-h-full ${eventCardOrientationClass(orientation)}`,
473
487
  "data-orientation": orientation,
@@ -533,7 +547,11 @@ function EventCardContent(props) {
533
547
  }),
534
548
  /* @__PURE__ */ jsx("h3", {
535
549
  className: "card-title rb-mb-3",
536
- children: props.title
550
+ children: /* @__PURE__ */ jsx("a", {
551
+ className: "event-title-link",
552
+ ...resolveEventLinkProps(event),
553
+ children: props.title
554
+ })
537
555
  }),
538
556
  /* @__PURE__ */ jsx("div", {
539
557
  className: "rb-mb-2 rb-caption",
@@ -610,13 +628,6 @@ function eventCardOrientationClass(orientation) {
610
628
  case "vertical": return "event-card--vertical";
611
629
  }
612
630
  }
613
- function formatCapacityText(event, options) {
614
- if (event.capacity == null) return null;
615
- if (options.isSoldOut) return "Sold out";
616
- if (options.spotsLeft == null) return null;
617
- const count = options.spotsLeft;
618
- return `${count} ${count === 1 ? "spot" : "spots"} available`;
619
- }
620
631
  function getCategoryBadgeStyle(background) {
621
632
  const normalized = background?.trim() ?? "";
622
633
  if (!normalized) return {
@@ -1005,7 +1016,11 @@ const EventCompactRow = ({ event, buttonVariant = "primary", buttonText }) => {
1005
1016
  className: "event-compact-row-content",
1006
1017
  children: [/* @__PURE__ */ jsx("h3", {
1007
1018
  className: "event-compact-row-title",
1008
- children: event.title
1019
+ children: /* @__PURE__ */ jsx("a", {
1020
+ className: "event-title-link",
1021
+ ...resolveEventLinkProps(event),
1022
+ children: event.title
1023
+ })
1009
1024
  }), /* @__PURE__ */ jsxs("div", {
1010
1025
  className: "event-compact-row-meta",
1011
1026
  children: [
@@ -1638,4 +1653,4 @@ function useEventFilters({ showCategoryFilter = "auto", showVenueFilter = false,
1638
1653
  };
1639
1654
  }
1640
1655
  //#endregion
1641
- export { EventCardClient as a, EventPaginatedListView as i, useEventPagination as n, EventFilters as o, toError as r, useEventFilters as t };
1656
+ export { EventCardClient as a, EventPaginatedListView as i, useEventPagination as n, EventFilters as o, toError as r, formatEventTeacherLine as s, useEventFilters as t };
@@ -1235,6 +1235,13 @@ const PUBLIC_WHOLE_SERIES_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1235
1235
  //#endregion
1236
1236
  //#region ../api/src/publicEventEndpointDefinitions.ts
1237
1237
  const PUBLIC_EVENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1238
+ resolvePublicEventCheckoutReturn: {
1239
+ path: "/public/sites/{siteId}/events/checkout-return",
1240
+ method: "POST",
1241
+ tags: [TAG_TEMPLATES.publicEvents, "event-checkout"],
1242
+ auth: "public",
1243
+ responseKind: "json"
1244
+ },
1238
1245
  getPublicEventRegistrationOptions: {
1239
1246
  path: "/public/sites/{siteId}/events/registration-options",
1240
1247
  method: "POST",
@@ -1619,6 +1626,83 @@ const SDK_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1619
1626
  errors: ["validation:invalid_input", "server:internal_error"]
1620
1627
  }
1621
1628
  });
1629
+ //#endregion
1630
+ //#region ../api/src/sdkMediaEndpointDefinitions.ts
1631
+ const SDK_MEDIA_ENDPOINT_DEFINITIONS = {
1632
+ sdkMediaExists: {
1633
+ path: "/sdk/{siteId}/media/exists",
1634
+ method: "POST",
1635
+ errors: ["validation:invalid_input"],
1636
+ auth: "service",
1637
+ responseKind: "json"
1638
+ },
1639
+ sdkMediaFindByChecksum: {
1640
+ path: "/sdk/{siteId}/media/find-by-checksum",
1641
+ method: "POST",
1642
+ errors: ["server:internal_error"],
1643
+ auth: "service",
1644
+ responseKind: "json"
1645
+ },
1646
+ sdkMediaResolve: {
1647
+ path: "/sdk/{siteId}/media/resolve",
1648
+ method: "POST",
1649
+ errors: ["server:internal_error"],
1650
+ auth: "service",
1651
+ responseKind: "json"
1652
+ },
1653
+ sdkMediaList: {
1654
+ path: "/sdk/{siteId}/media",
1655
+ method: "GET",
1656
+ auth: "service",
1657
+ responseKind: "json"
1658
+ },
1659
+ sdkMediaDownload: {
1660
+ path: "/sdk/{siteId}/media/{identifier}/download",
1661
+ method: "GET",
1662
+ auth: "service",
1663
+ responseKind: "json"
1664
+ },
1665
+ sdkMediaDeletePreview: {
1666
+ path: "/sdk/{siteId}/media/{identifier}/delete-preview",
1667
+ method: "POST",
1668
+ auth: "service",
1669
+ responseKind: "json"
1670
+ },
1671
+ sdkMediaDeleteApply: {
1672
+ path: "/sdk/{siteId}/media/{identifier}",
1673
+ method: "DELETE",
1674
+ auth: "service",
1675
+ responseKind: "json"
1676
+ },
1677
+ sdkMediaUploadUrl: {
1678
+ path: "/sdk/{siteId}/media/upload-url",
1679
+ method: "POST",
1680
+ errors: [
1681
+ "resource:not_found",
1682
+ "validation:invalid_input",
1683
+ "resource:conflict",
1684
+ "validation:payload_too_large",
1685
+ "billing:plan_limit_exceeded",
1686
+ "server:internal_error"
1687
+ ],
1688
+ auth: "service",
1689
+ responseKind: "json"
1690
+ },
1691
+ sdkMediaUploadFinalize: {
1692
+ path: "/sdk/{siteId}/media/upload",
1693
+ method: "POST",
1694
+ errors: [
1695
+ "resource:not_found",
1696
+ "validation:invalid_input",
1697
+ "resource:conflict",
1698
+ "validation:payload_too_large",
1699
+ "billing:plan_limit_exceeded",
1700
+ "server:internal_error"
1701
+ ],
1702
+ auth: "service",
1703
+ responseKind: "json"
1704
+ }
1705
+ };
1622
1706
  const API_ENDPOINTS = {
1623
1707
  ...ACCOUNT_ENDPOINT_DEFINITIONS,
1624
1708
  ...PUBLIC_EVENT_ENDPOINT_DEFINITIONS,
@@ -3759,26 +3843,6 @@ const API_ENDPOINTS = {
3759
3843
  auth: "public",
3760
3844
  responseKind: "json"
3761
3845
  },
3762
- createTheme: {
3763
- path: "/ai/chat/create-theme",
3764
- method: "POST",
3765
- revalidate: 60,
3766
- tags: ["theme", "ai-theme"],
3767
- auth: "user",
3768
- responseKind: "json"
3769
- },
3770
- generateThemes: {
3771
- path: "/theme/generate",
3772
- method: "POST",
3773
- errors: [
3774
- "validation:invalid_input",
3775
- "resource:not_found",
3776
- "server:internal_error"
3777
- ],
3778
- tags: ["theme"],
3779
- auth: "user",
3780
- responseKind: "json"
3781
- },
3782
3846
  extractThemeFromInspiration: {
3783
3847
  path: "/theme/extract-from-inspiration",
3784
3848
  method: "POST",
@@ -3952,7 +4016,7 @@ const API_ENDPOINTS = {
3952
4016
  method: "DELETE",
3953
4017
  tags: ["media", "media-{assetId}"],
3954
4018
  auth: "user",
3955
- responseKind: "void"
4019
+ responseKind: "json"
3956
4020
  },
3957
4021
  mediaBulkDelete: {
3958
4022
  path: "/media/bulk-delete",
@@ -6538,42 +6602,13 @@ const API_ENDPOINTS = {
6538
6602
  auth: "user",
6539
6603
  responseKind: "json"
6540
6604
  },
6605
+ ...SDK_MEDIA_ENDPOINT_DEFINITIONS,
6541
6606
  sdkIdentifiersBackfill: {
6542
6607
  path: "/sdk/{siteId}/identifiers/backfill",
6543
6608
  method: "POST",
6544
6609
  auth: "service",
6545
6610
  responseKind: "json"
6546
6611
  },
6547
- sdkMediaExists: {
6548
- path: "/sdk/{siteId}/media/exists",
6549
- method: "POST",
6550
- auth: "service",
6551
- responseKind: "json"
6552
- },
6553
- sdkMediaFindByChecksum: {
6554
- path: "/sdk/{siteId}/media/find-by-checksum",
6555
- method: "POST",
6556
- auth: "service",
6557
- responseKind: "json"
6558
- },
6559
- sdkMediaResolve: {
6560
- path: "/sdk/{siteId}/media/resolve",
6561
- method: "POST",
6562
- auth: "service",
6563
- responseKind: "json"
6564
- },
6565
- sdkMediaUploadUrl: {
6566
- path: "/sdk/{siteId}/media/upload-url",
6567
- method: "POST",
6568
- auth: "service",
6569
- responseKind: "json"
6570
- },
6571
- sdkMediaUploadFinalize: {
6572
- path: "/sdk/{siteId}/media/upload",
6573
- method: "POST",
6574
- auth: "service",
6575
- responseKind: "json"
6576
- },
6577
6612
  sdkUpdateWorkflowRunStatus: {
6578
6613
  path: "/sdk/{siteId}/workflows/runs/{runId}/status",
6579
6614
  method: "POST",
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { a as usePreviewLayout, i as useOptionalPreviewLayout, n as createPreviewQueryClient, r as PreviewLayoutProvider, t as PreviewQueryProvider } from "../../PreviewQueryProvider-DcgaESkm.mjs";
2
+ import { a as usePreviewLayout, i as useOptionalPreviewLayout, n as createPreviewQueryClient, r as PreviewLayoutProvider, t as PreviewQueryProvider } from "../../PreviewQueryProvider-ztQUdsNo.mjs";
3
3
  import React from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/preview-next/client/runtime.tsx
6
6
  const LazySdkPreviewMode = React.lazy(async () => {
7
- return { default: (await import("../../SdkPreviewModeRuntime-BKLtM3Nz.mjs").then((n) => n.n)).SdkPreviewModeRuntime };
7
+ return { default: (await import("../../SdkPreviewModeRuntime-BbbGsI_v.mjs").then((n) => n.n)).SdkPreviewModeRuntime };
8
8
  });
9
9
  const LazyPreviewShell = React.lazy(async () => {
10
- return { default: (await import("../../sdk-runtime-BbIC8G4J.mjs")).PreviewShell };
10
+ return { default: (await import("../../sdk-runtime-sUMr5d70.mjs")).PreviewShell };
11
11
  });
12
12
  const LazyPreviewShellLayout = React.lazy(async () => {
13
- return { default: (await import("../../sdk-runtime-BbIC8G4J.mjs")).PreviewShellLayout };
13
+ return { default: (await import("../../sdk-runtime-sUMr5d70.mjs")).PreviewShellLayout };
14
14
  });
15
15
  function SdkPreviewMode(props) {
16
16
  return /* @__PURE__ */ jsx(React.Suspense, {
@@ -1265,6 +1265,13 @@ const PUBLIC_WHOLE_SERIES_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1265
1265
  //#endregion
1266
1266
  //#region ../api/src/publicEventEndpointDefinitions.ts
1267
1267
  const PUBLIC_EVENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1268
+ resolvePublicEventCheckoutReturn: {
1269
+ path: "/public/sites/{siteId}/events/checkout-return",
1270
+ method: "POST",
1271
+ tags: [TAG_TEMPLATES.publicEvents, "event-checkout"],
1272
+ auth: "public",
1273
+ responseKind: "json"
1274
+ },
1268
1275
  getPublicEventRegistrationOptions: {
1269
1276
  path: "/public/sites/{siteId}/events/registration-options",
1270
1277
  method: "POST",
@@ -1649,6 +1656,83 @@ const SDK_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
1649
1656
  errors: ["validation:invalid_input", "server:internal_error"]
1650
1657
  }
1651
1658
  });
1659
+ //#endregion
1660
+ //#region ../api/src/sdkMediaEndpointDefinitions.ts
1661
+ const SDK_MEDIA_ENDPOINT_DEFINITIONS = {
1662
+ sdkMediaExists: {
1663
+ path: "/sdk/{siteId}/media/exists",
1664
+ method: "POST",
1665
+ errors: ["validation:invalid_input"],
1666
+ auth: "service",
1667
+ responseKind: "json"
1668
+ },
1669
+ sdkMediaFindByChecksum: {
1670
+ path: "/sdk/{siteId}/media/find-by-checksum",
1671
+ method: "POST",
1672
+ errors: ["server:internal_error"],
1673
+ auth: "service",
1674
+ responseKind: "json"
1675
+ },
1676
+ sdkMediaResolve: {
1677
+ path: "/sdk/{siteId}/media/resolve",
1678
+ method: "POST",
1679
+ errors: ["server:internal_error"],
1680
+ auth: "service",
1681
+ responseKind: "json"
1682
+ },
1683
+ sdkMediaList: {
1684
+ path: "/sdk/{siteId}/media",
1685
+ method: "GET",
1686
+ auth: "service",
1687
+ responseKind: "json"
1688
+ },
1689
+ sdkMediaDownload: {
1690
+ path: "/sdk/{siteId}/media/{identifier}/download",
1691
+ method: "GET",
1692
+ auth: "service",
1693
+ responseKind: "json"
1694
+ },
1695
+ sdkMediaDeletePreview: {
1696
+ path: "/sdk/{siteId}/media/{identifier}/delete-preview",
1697
+ method: "POST",
1698
+ auth: "service",
1699
+ responseKind: "json"
1700
+ },
1701
+ sdkMediaDeleteApply: {
1702
+ path: "/sdk/{siteId}/media/{identifier}",
1703
+ method: "DELETE",
1704
+ auth: "service",
1705
+ responseKind: "json"
1706
+ },
1707
+ sdkMediaUploadUrl: {
1708
+ path: "/sdk/{siteId}/media/upload-url",
1709
+ method: "POST",
1710
+ errors: [
1711
+ "resource:not_found",
1712
+ "validation:invalid_input",
1713
+ "resource:conflict",
1714
+ "validation:payload_too_large",
1715
+ "billing:plan_limit_exceeded",
1716
+ "server:internal_error"
1717
+ ],
1718
+ auth: "service",
1719
+ responseKind: "json"
1720
+ },
1721
+ sdkMediaUploadFinalize: {
1722
+ path: "/sdk/{siteId}/media/upload",
1723
+ method: "POST",
1724
+ errors: [
1725
+ "resource:not_found",
1726
+ "validation:invalid_input",
1727
+ "resource:conflict",
1728
+ "validation:payload_too_large",
1729
+ "billing:plan_limit_exceeded",
1730
+ "server:internal_error"
1731
+ ],
1732
+ auth: "service",
1733
+ responseKind: "json"
1734
+ }
1735
+ };
1652
1736
  const API_ENDPOINTS = {
1653
1737
  ...ACCOUNT_ENDPOINT_DEFINITIONS,
1654
1738
  ...PUBLIC_EVENT_ENDPOINT_DEFINITIONS,
@@ -3789,26 +3873,6 @@ const API_ENDPOINTS = {
3789
3873
  auth: "public",
3790
3874
  responseKind: "json"
3791
3875
  },
3792
- createTheme: {
3793
- path: "/ai/chat/create-theme",
3794
- method: "POST",
3795
- revalidate: 60,
3796
- tags: ["theme", "ai-theme"],
3797
- auth: "user",
3798
- responseKind: "json"
3799
- },
3800
- generateThemes: {
3801
- path: "/theme/generate",
3802
- method: "POST",
3803
- errors: [
3804
- "validation:invalid_input",
3805
- "resource:not_found",
3806
- "server:internal_error"
3807
- ],
3808
- tags: ["theme"],
3809
- auth: "user",
3810
- responseKind: "json"
3811
- },
3812
3876
  extractThemeFromInspiration: {
3813
3877
  path: "/theme/extract-from-inspiration",
3814
3878
  method: "POST",
@@ -3982,7 +4046,7 @@ const API_ENDPOINTS = {
3982
4046
  method: "DELETE",
3983
4047
  tags: ["media", "media-{assetId}"],
3984
4048
  auth: "user",
3985
- responseKind: "void"
4049
+ responseKind: "json"
3986
4050
  },
3987
4051
  mediaBulkDelete: {
3988
4052
  path: "/media/bulk-delete",
@@ -6568,42 +6632,13 @@ const API_ENDPOINTS = {
6568
6632
  auth: "user",
6569
6633
  responseKind: "json"
6570
6634
  },
6635
+ ...SDK_MEDIA_ENDPOINT_DEFINITIONS,
6571
6636
  sdkIdentifiersBackfill: {
6572
6637
  path: "/sdk/{siteId}/identifiers/backfill",
6573
6638
  method: "POST",
6574
6639
  auth: "service",
6575
6640
  responseKind: "json"
6576
6641
  },
6577
- sdkMediaExists: {
6578
- path: "/sdk/{siteId}/media/exists",
6579
- method: "POST",
6580
- auth: "service",
6581
- responseKind: "json"
6582
- },
6583
- sdkMediaFindByChecksum: {
6584
- path: "/sdk/{siteId}/media/find-by-checksum",
6585
- method: "POST",
6586
- auth: "service",
6587
- responseKind: "json"
6588
- },
6589
- sdkMediaResolve: {
6590
- path: "/sdk/{siteId}/media/resolve",
6591
- method: "POST",
6592
- auth: "service",
6593
- responseKind: "json"
6594
- },
6595
- sdkMediaUploadUrl: {
6596
- path: "/sdk/{siteId}/media/upload-url",
6597
- method: "POST",
6598
- auth: "service",
6599
- responseKind: "json"
6600
- },
6601
- sdkMediaUploadFinalize: {
6602
- path: "/sdk/{siteId}/media/upload",
6603
- method: "POST",
6604
- auth: "service",
6605
- responseKind: "json"
6606
- },
6607
6642
  sdkUpdateWorkflowRunStatus: {
6608
6643
  path: "/sdk/{siteId}/workflows/runs/{runId}/status",
6609
6644
  method: "POST",