@riverbankcms/sdk 0.138.0 → 0.139.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 (208) hide show
  1. package/README.md +11 -15
  2. package/dist/{PreviewEditorSidebar-BVPur_CU.mjs → PreviewEditorSidebar-BDeenhi3.mjs} +4 -4
  3. package/dist/{PreviewEditorUI-DLhWX8oh.mjs → PreviewEditorUI-DSRhgjF5.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-BguJY1SW.mjs → PreviewQueryProvider-D2K8GLUG.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-Tda6qw4z.mjs → SdkPreviewModeRuntime-CL7wSnYu.mjs} +47 -27
  6. package/dist/{SiteChromeCustomizeContext-BHFgMjde.mjs → SiteChromeCustomizeContext-BhDn-5ir.mjs} +7771 -5863
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +99 -330
  8. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +9 -30
  9. package/dist/_dts/api/src/billing.d.ts +10 -3
  10. package/dist/_dts/api/src/contentRuntime.d.ts +8 -1
  11. package/dist/_dts/api/src/endpoints.d.ts +182 -103
  12. package/dist/_dts/api/src/footerSettings.d.ts +2 -5
  13. package/dist/_dts/api/src/index.d.ts +11 -9
  14. package/dist/_dts/api/src/mailchimpIntegration.d.ts +2 -59
  15. package/dist/_dts/api/src/mailingListIntegration.d.ts +117 -0
  16. package/dist/_dts/api/src/navigation/locations.d.ts +1 -0
  17. package/dist/_dts/api/src/navigation.d.ts +1 -26
  18. package/dist/_dts/api/src/newsletterEndpointDefinitions.d.ts +109 -2
  19. package/dist/_dts/api/src/onboarding/surfaceData.d.ts +185 -0
  20. package/dist/_dts/api/src/privacyPolicy.d.ts +74 -2
  21. package/dist/_dts/api/src/publicBookingAvailabilityEndpointDefinitions.d.ts +6 -6
  22. package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +1 -1
  23. package/dist/_dts/api/src/publicExperience/newsletterEndpoints.d.ts +2 -4
  24. package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +10 -24
  25. package/dist/_dts/api/src/publicReadEndpointDefinitions.d.ts +73 -0
  26. package/dist/_dts/api/src/schemas/site-api-keys.d.ts +1 -1
  27. package/dist/_dts/api/src/sdkContracts.d.ts +2 -10
  28. package/dist/_dts/api/src/sdkThemeWire.d.ts +2 -2
  29. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +0 -29
  30. package/dist/_dts/api/src/siteOnboarding.d.ts +91 -228
  31. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +1 -9
  32. package/dist/_dts/api/src/siteSettings.d.ts +20 -1
  33. package/dist/_dts/api/src/types.d.ts +5 -4
  34. package/dist/_dts/billing/src/membership/index.d.ts +14 -7
  35. package/dist/_dts/billing/src/plans/display.d.ts +15 -0
  36. package/dist/_dts/billing/src/plans/registry.d.ts +2 -0
  37. package/dist/_dts/billing/src/plans/standing.d.ts +19 -0
  38. package/dist/_dts/billing/src/plans/types.d.ts +1 -7
  39. package/dist/_dts/billing/src/subscriptions/evidence.d.ts +12 -0
  40. package/dist/_dts/billing/src/subscriptions/standingEvidence.d.ts +31 -0
  41. package/dist/_dts/billing/src/subscriptions/store.d.ts +23 -5
  42. package/dist/_dts/blocks/src/PageRenderer.d.ts +6 -15
  43. package/dist/_dts/blocks/src/client.d.ts +1 -1
  44. package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +32 -16
  45. package/dist/_dts/blocks/src/pageRendererContracts.d.ts +4 -0
  46. package/dist/_dts/blocks/src/pageRenderingMode.d.ts +12 -6
  47. package/dist/_dts/blocks/src/system/blocks/appointment-services.d.ts +11 -0
  48. package/dist/_dts/blocks/src/system/blocks/contact-newsletter.d.ts +39 -66
  49. package/dist/_dts/blocks/src/system/blocks/newsletter-signup.d.ts +39 -114
  50. package/dist/_dts/blocks/src/system/blocks/offerings-preview/catalogue.d.ts +18 -0
  51. package/dist/_dts/blocks/src/system/blocks/offerings-preview/fields.d.ts +2 -0
  52. package/dist/_dts/blocks/src/system/blocks/offerings-preview/index.d.ts +4 -0
  53. package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +7 -13
  54. package/dist/_dts/blocks/src/system/constants/blockKinds.d.ts +1 -1
  55. package/dist/_dts/blocks/src/system/data/index.d.ts +2 -2
  56. package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
  57. package/dist/_dts/blocks/src/system/data/publicLoaderCachePolicy.d.ts +2 -74
  58. package/dist/_dts/blocks/src/system/fragments/library/newsletterForm.d.ts +33 -100
  59. package/dist/_dts/blocks/src/system/runtime/api/types/newsletter.d.ts +5 -15
  60. package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +48 -24
  61. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +24 -12
  62. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +3 -0
  63. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +1 -1
  64. package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarToday.d.ts +22 -0
  65. package/dist/_dts/blocks/src/system/runtime/nodes/appointment-services.d.ts +51 -0
  66. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -0
  67. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +0 -1
  68. package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +28 -0
  69. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/bookability.d.ts +9 -0
  70. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +14 -0
  71. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/duration.d.ts +2 -0
  72. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/index.d.ts +4 -0
  73. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/location.d.ts +2 -0
  74. package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/quickDates.d.ts +16 -0
  75. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/AgendaEventCard.d.ts +9 -1
  76. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CalendarDayCell.d.ts +2 -0
  77. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/CalendarDayHeaders.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/EventCard.d.ts +5 -0
  80. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventModals.d.ts +2 -1
  81. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/EventQuickDates.d.ts +15 -0
  82. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +7 -3
  83. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.d.ts +1 -0
  84. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/index.d.ts +2 -0
  85. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/timetableModel.d.ts +1 -0
  86. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/useHydrationReady.d.ts +6 -0
  87. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.state.d.ts +3 -0
  88. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.interactive.d.ts +56 -33
  89. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.submission.d.ts +3 -3
  90. package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.types.d.ts +13 -31
  91. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-catalogue.d.ts +14 -0
  92. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview-content.d.ts +23 -0
  93. package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +4 -2
  94. package/dist/_dts/blocks/src/system/transforms/registry/formatting.d.ts +5 -0
  95. package/dist/_dts/commerce/src/purchase/index.d.ts +1 -0
  96. package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +5 -12
  97. package/dist/_dts/commerce/src/purchase/stripeCommissionMetadata.d.ts +34 -0
  98. package/dist/_dts/content-editor/src/footerEngagementDraft.d.ts +6 -24
  99. package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +1 -2
  100. package/dist/_dts/core/src/footer-engagement.d.ts +2 -6
  101. package/dist/_dts/core/src/index.d.ts +9 -1
  102. package/dist/_dts/core/src/mailing-list-identifiers.d.ts +21 -0
  103. package/dist/_dts/core/src/mailing-list-runtime.d.ts +42 -0
  104. package/dist/_dts/core/src/mailing-list-setup-parser.d.ts +14 -0
  105. package/dist/_dts/core/src/mailing-list-setup.d.ts +129 -0
  106. package/dist/_dts/core/src/mailing-list-submission.d.ts +244 -0
  107. package/dist/_dts/core/src/mailing-list-targeting-parser.d.ts +12 -0
  108. package/dist/_dts/core/src/mailing-list-targeting.d.ts +93 -0
  109. package/dist/_dts/core/src/navigation-locations.d.ts +28 -0
  110. package/dist/_dts/core/src/public-profile.d.ts +9 -1
  111. package/dist/_dts/core/src/public-read-cache-contract.d.ts +45 -0
  112. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +529 -373
  113. package/dist/_dts/editor-blocks/src/widgets/index.d.ts +1 -0
  114. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/MailingListTargetingField.d.ts +11 -0
  115. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/context.d.ts +13 -0
  116. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/index.d.ts +3 -0
  117. package/dist/_dts/editor-blocks/src/widgets/mailing-list-targeting/loaders.d.ts +6 -0
  118. package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +1 -0
  119. package/dist/_dts/sdk/src/client/publicAppointmentReadOperations.d.ts +12 -0
  120. package/dist/_dts/sdk/src/client/publicEventReadOperations.d.ts +2 -1
  121. package/dist/_dts/sdk/src/client/publicLoaderCacheAccess.d.ts +11 -4
  122. package/dist/_dts/sdk/src/config/content-types.d.ts +3 -13
  123. package/dist/_dts/sdk/src/config/content-validation.d.ts +5 -8
  124. package/dist/_dts/sdk/src/constants.d.ts +3 -3
  125. package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
  126. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +12 -31
  127. package/dist/_dts/sdk/src/navigation/index.d.ts +11 -29
  128. package/dist/_dts/sdk/src/next/index.d.ts +4 -4
  129. package/dist/_dts/sdk/src/prebuild/types.d.ts +1 -5
  130. package/dist/_dts/sdk/src/public-api/contracts.d.ts +33 -16
  131. package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +3 -0
  132. package/dist/_dts/sdk/src/rendering/client.d.ts +3 -20
  133. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +3 -0
  134. package/dist/_dts/sdk/src/rendering/helpers/loadContent.d.ts +4 -0
  135. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +1 -0
  136. package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
  137. package/dist/_dts/sdk/src/types/block-kinds.d.ts +1 -1
  138. package/dist/_dts/sdk/src/version.d.ts +1 -1
  139. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  140. package/dist/_dts/theme-core/src/hosted-booking-appearance.d.ts +41 -0
  141. package/dist/_dts/theme-core/src/index.d.ts +1 -0
  142. package/dist/_dts/theme-core/src/runtime/buildThemeRuntime.d.ts +0 -1
  143. package/dist/_dts/theme-core/src/tokens/tokens.d.ts +7 -0
  144. package/dist/_dts/ui/src/badge.d.ts +1 -1
  145. package/dist/_dts/ui/src/callout.d.ts +1 -1
  146. package/dist/client/{BookingConsentAgreement-DQUik1Mx.mjs → BookingConsentAgreement-CZvTDtsK.mjs} +2 -2
  147. package/dist/client/{DiscountCodeDisclosure-CU67Q4vH.mjs → DiscountCodeDisclosure-D-DsLCMU.mjs} +1 -1
  148. package/dist/client/{EventCombined.client-a02TXUgg.mjs → EventCombined.client-dWqgd5ZO.mjs} +443 -199
  149. package/dist/client/{EventListing.client-99qx7jFl.mjs → EventListing.client-BMRa9IYp.mjs} +2 -2
  150. package/dist/client/{LeafletStaticMap-CWzcq73L.mjs → LeafletStaticMap-D21W9kBZ.mjs} +1 -1
  151. package/dist/client/{accordion-D1nb3-Oj.mjs → accordion-FxF_ta47.mjs} +1 -1
  152. package/dist/client/{bookingForm-BGrmLhaO.mjs → bookingForm-YnwW4TGw.mjs} +5 -5
  153. package/dist/client/bookings.mjs +43 -2
  154. package/dist/client/{carousel-DSmOx3ad.mjs → carousel-vng7fFT5.mjs} +1 -1
  155. package/dist/client/{cart-COWeOIUk.mjs → cart-DEPDsjNk.mjs} +3 -3
  156. package/dist/client/{checkout-CeysaIJK.mjs → checkout-CZRWu9rW.mjs} +3 -3
  157. package/dist/client/client.mjs +3331 -1407
  158. package/dist/client/{context-DBzX85Xc.mjs → context-DvU_WUmd.mjs} +4 -3
  159. package/dist/client/{dates-DCYhZBlW.mjs → dates-wnPMiRl5.mjs} +21 -3
  160. package/dist/client/{eventCalendar-BgsN73Ul.mjs → eventCalendar-BA3Q5L15.mjs} +80 -78
  161. package/dist/client/{eventCombined-DcZQAMQP.mjs → eventCombined-51wgR-1R.mjs} +3 -3
  162. package/dist/client/{eventDetails-BWwGJ54l.mjs → eventDetails-modaetpm.mjs} +4 -4
  163. package/dist/client/{eventListing-DqYqV8vp.mjs → eventListing-D8t2J3Kv.mjs} +3 -3
  164. package/dist/client/{eventRegistration-DQGDgu_e.mjs → eventRegistration-CYqtkCE_.mjs} +49 -9
  165. package/dist/client/{form-ClfpasVT.mjs → form-CBKXN5In.mjs} +2 -2
  166. package/dist/client/{headerSection-BuOMe98N.mjs → headerSection-DylDqNrs.mjs} +2 -2
  167. package/dist/client/hooks.mjs +1259 -555
  168. package/dist/client/{locationMap-CEqu_sfa.mjs → locationMap-CvWrG0vZ.mjs} +2 -2
  169. package/dist/client/{newsletterForm-IbrHjMxy.mjs → newsletterForm-Btwk70zw.mjs} +117 -38
  170. package/dist/client/{pricing-xj7MPZlK.mjs → pricing-Uzw-GQ6Y.mjs} +1 -1
  171. package/dist/client/{productDetail-vxqTt5Xj.mjs → productDetail-JLcUYKnd.mjs} +3 -3
  172. package/dist/client/{productList-OTdZu8sb.mjs → productList-FM0cbUzj.mjs} +3 -3
  173. package/dist/client/{propsDecoder-CY9gGEF7.mjs → propsDecoder-DYzafZb2.mjs} +592 -152
  174. package/dist/client/rendering/client.mjs +2259 -835
  175. package/dist/client/rendering/islands.mjs +17 -17
  176. package/dist/client/rendering.mjs +3308 -1236
  177. package/dist/client/{scrollToBlock--BFV6kl-.mjs → scrollToBlock-CvXszexS.mjs} +1 -1
  178. package/dist/client/{shop-CP4YbDL9.mjs → shop-BIcjvy5a.mjs} +6 -6
  179. package/dist/client/{shop-commerce-APs4XBXE.mjs → shop-commerce-BZQsy7xw.mjs} +5 -5
  180. package/dist/client/{shop-commerce-store-CAVLxLFr.mjs → shop-commerce-store-D5V7XAb5.mjs} +1 -1
  181. package/dist/client/{shopShared-BnSRrwXI.mjs → shopShared-DowkXevB.mjs} +3 -3
  182. package/dist/client/{useEventFilters-1a1by4c8.mjs → useEventFilters-oMoTw_JE.mjs} +56 -9
  183. package/dist/preview-next/before-render.mjs +238 -111
  184. package/dist/preview-next/client/runtime.mjs +4 -4
  185. package/dist/preview-next/keepAlive.mjs +238 -111
  186. package/dist/preview-next/middleware.mjs +238 -111
  187. package/dist/{previewAuthStore-BkEgnYPP.mjs → previewAuthStore-COUyAKaX.mjs} +238 -111
  188. package/dist/{sdk-runtime-DwGfsT0S.mjs → sdk-runtime-D4k2LSGF.mjs} +2 -2
  189. package/dist/{separator-BeqDLneQ.mjs → separator-UGtpag4Z.mjs} +1 -1
  190. package/dist/server/components.mjs +2697 -1023
  191. package/dist/server/config-validation.mjs +2424 -1720
  192. package/dist/server/config.mjs +2429 -1724
  193. package/dist/server/data.mjs +1164 -454
  194. package/dist/server/index.mjs +364 -280
  195. package/dist/server/navigation.mjs +16 -47
  196. package/dist/server/next.mjs +2915 -1380
  197. package/dist/server/page-converter.mjs +969 -522
  198. package/dist/server/prebuild.mjs +2 -3
  199. package/dist/server/rendering/server.mjs +2704 -1030
  200. package/dist/server/rendering.mjs +2742 -1063
  201. package/dist/server/routing.mjs +1386 -595
  202. package/dist/server/server.mjs +2878 -2324
  203. package/dist/server/theme-bridge.mjs +292 -24
  204. package/dist/styles/index.css +289 -25
  205. package/package.json +1 -1
  206. package/dist/_dts/api/src/navigation/identity.d.ts +0 -59
  207. package/dist/_dts/blocks/src/system/blocks/newsletter-signup-destination.d.ts +0 -291
  208. package/dist/_dts/core/src/newsletter-signup-destination.d.ts +0 -38
@@ -1497,6 +1497,39 @@ export type Database = {
1497
1497
  }
1498
1498
  ];
1499
1499
  };
1500
+ billing_commission_reconciliation_requests: {
1501
+ Row: {
1502
+ attempts: number;
1503
+ lease_token: string | null;
1504
+ locked_until: string | null;
1505
+ next_attempt_at: string;
1506
+ requested_at: string;
1507
+ revision: string;
1508
+ target_id: string;
1509
+ target_kind: string;
1510
+ };
1511
+ Insert: {
1512
+ attempts?: number;
1513
+ lease_token?: string | null;
1514
+ locked_until?: string | null;
1515
+ next_attempt_at?: string;
1516
+ requested_at?: string;
1517
+ revision?: string;
1518
+ target_id: string;
1519
+ target_kind: string;
1520
+ };
1521
+ Update: {
1522
+ attempts?: number;
1523
+ lease_token?: string | null;
1524
+ locked_until?: string | null;
1525
+ next_attempt_at?: string;
1526
+ requested_at?: string;
1527
+ revision?: string;
1528
+ target_id?: string;
1529
+ target_kind?: string;
1530
+ };
1531
+ Relationships: [];
1532
+ };
1500
1533
  billing_component_registrar_attempts: {
1501
1534
  Row: {
1502
1535
  billing_component_id: string;
@@ -4626,6 +4659,188 @@ export type Database = {
4626
4659
  };
4627
4660
  Relationships: [];
4628
4661
  };
4662
+ brevo_confirmation_template_cache: {
4663
+ Row: {
4664
+ connection_id: string;
4665
+ created_at: string;
4666
+ fetched_at: string;
4667
+ id: string;
4668
+ name: string;
4669
+ site_id: string;
4670
+ template_id: number;
4671
+ updated_at: string;
4672
+ };
4673
+ Insert: {
4674
+ connection_id: string;
4675
+ created_at?: string;
4676
+ fetched_at: string;
4677
+ id?: string;
4678
+ name: string;
4679
+ site_id: string;
4680
+ template_id: number;
4681
+ updated_at?: string;
4682
+ };
4683
+ Update: {
4684
+ connection_id?: string;
4685
+ created_at?: string;
4686
+ fetched_at?: string;
4687
+ id?: string;
4688
+ name?: string;
4689
+ site_id?: string;
4690
+ template_id?: number;
4691
+ updated_at?: string;
4692
+ };
4693
+ Relationships: [
4694
+ {
4695
+ foreignKeyName: "brevo_template_cache_connection_site_fkey";
4696
+ columns: ["connection_id", "site_id"];
4697
+ isOneToOne: false;
4698
+ referencedRelation: "brevo_integration_connections";
4699
+ referencedColumns: ["id", "site_id"];
4700
+ }
4701
+ ];
4702
+ };
4703
+ brevo_integration_connection_keys: {
4704
+ Row: {
4705
+ api_key_encrypted: string;
4706
+ api_key_key_version: string;
4707
+ connection_id: string;
4708
+ created_at: string;
4709
+ site_id: string;
4710
+ updated_at: string;
4711
+ };
4712
+ Insert: {
4713
+ api_key_encrypted: string;
4714
+ api_key_key_version: string;
4715
+ connection_id: string;
4716
+ created_at?: string;
4717
+ site_id: string;
4718
+ updated_at?: string;
4719
+ };
4720
+ Update: {
4721
+ api_key_encrypted?: string;
4722
+ api_key_key_version?: string;
4723
+ connection_id?: string;
4724
+ created_at?: string;
4725
+ site_id?: string;
4726
+ updated_at?: string;
4727
+ };
4728
+ Relationships: [
4729
+ {
4730
+ foreignKeyName: "brevo_connection_keys_connection_site_fkey";
4731
+ columns: ["connection_id", "site_id"];
4732
+ isOneToOne: false;
4733
+ referencedRelation: "brevo_integration_connections";
4734
+ referencedColumns: ["id", "site_id"];
4735
+ }
4736
+ ];
4737
+ };
4738
+ brevo_integration_connections: {
4739
+ Row: {
4740
+ account_email: string | null;
4741
+ account_id: string | null;
4742
+ account_name: string | null;
4743
+ attribute_catalog: Json;
4744
+ connected_at: string | null;
4745
+ created_at: string;
4746
+ disconnected_at: string | null;
4747
+ id: string;
4748
+ last_failure_at: string | null;
4749
+ last_failure_code: string | null;
4750
+ needs_reauth_at: string | null;
4751
+ refreshed_at: string | null;
4752
+ site_id: string;
4753
+ status: string;
4754
+ updated_at: string;
4755
+ };
4756
+ Insert: {
4757
+ account_email?: string | null;
4758
+ account_id?: string | null;
4759
+ account_name?: string | null;
4760
+ attribute_catalog?: Json;
4761
+ connected_at?: string | null;
4762
+ created_at?: string;
4763
+ disconnected_at?: string | null;
4764
+ id?: string;
4765
+ last_failure_at?: string | null;
4766
+ last_failure_code?: string | null;
4767
+ needs_reauth_at?: string | null;
4768
+ refreshed_at?: string | null;
4769
+ site_id: string;
4770
+ status: string;
4771
+ updated_at?: string;
4772
+ };
4773
+ Update: {
4774
+ account_email?: string | null;
4775
+ account_id?: string | null;
4776
+ account_name?: string | null;
4777
+ attribute_catalog?: Json;
4778
+ connected_at?: string | null;
4779
+ created_at?: string;
4780
+ disconnected_at?: string | null;
4781
+ id?: string;
4782
+ last_failure_at?: string | null;
4783
+ last_failure_code?: string | null;
4784
+ needs_reauth_at?: string | null;
4785
+ refreshed_at?: string | null;
4786
+ site_id?: string;
4787
+ status?: string;
4788
+ updated_at?: string;
4789
+ };
4790
+ Relationships: [
4791
+ {
4792
+ foreignKeyName: "brevo_integration_connections_site_id_fkey";
4793
+ columns: ["site_id"];
4794
+ isOneToOne: false;
4795
+ referencedRelation: "sites";
4796
+ referencedColumns: ["id"];
4797
+ }
4798
+ ];
4799
+ };
4800
+ brevo_list_cache: {
4801
+ Row: {
4802
+ connection_id: string;
4803
+ created_at: string;
4804
+ fetched_at: string;
4805
+ id: string;
4806
+ list_id: number;
4807
+ name: string;
4808
+ site_id: string;
4809
+ total_subscribers: number | null;
4810
+ updated_at: string;
4811
+ };
4812
+ Insert: {
4813
+ connection_id: string;
4814
+ created_at?: string;
4815
+ fetched_at: string;
4816
+ id?: string;
4817
+ list_id: number;
4818
+ name: string;
4819
+ site_id: string;
4820
+ total_subscribers?: number | null;
4821
+ updated_at?: string;
4822
+ };
4823
+ Update: {
4824
+ connection_id?: string;
4825
+ created_at?: string;
4826
+ fetched_at?: string;
4827
+ id?: string;
4828
+ list_id?: number;
4829
+ name?: string;
4830
+ site_id?: string;
4831
+ total_subscribers?: number | null;
4832
+ updated_at?: string;
4833
+ };
4834
+ Relationships: [
4835
+ {
4836
+ foreignKeyName: "brevo_list_cache_connection_site_fkey";
4837
+ columns: ["connection_id", "site_id"];
4838
+ isOneToOne: false;
4839
+ referencedRelation: "brevo_integration_connections";
4840
+ referencedColumns: ["id", "site_id"];
4841
+ }
4842
+ ];
4843
+ };
4629
4844
  brief_turn_envelopes: {
4630
4845
  Row: {
4631
4846
  brief_id: string;
@@ -8069,7 +8284,6 @@ export type Database = {
8069
8284
  };
8070
8285
  event_instances: {
8071
8286
  Row: {
8072
- capacity: number | null;
8073
8287
  created_at: string;
8074
8288
  description: Json;
8075
8289
  id: string;
@@ -8083,7 +8297,6 @@ export type Database = {
8083
8297
  venue_id: string | null;
8084
8298
  };
8085
8299
  Insert: {
8086
- capacity?: number | null;
8087
8300
  created_at?: string;
8088
8301
  description?: Json;
8089
8302
  id?: string;
@@ -8097,7 +8310,6 @@ export type Database = {
8097
8310
  venue_id?: string | null;
8098
8311
  };
8099
8312
  Update: {
8100
- capacity?: number | null;
8101
8313
  created_at?: string;
8102
8314
  description?: Json;
8103
8315
  id?: string;
@@ -10236,7 +10448,9 @@ export type Database = {
10236
10448
  created_at: string;
10237
10449
  fetched_at: string;
10238
10450
  id: string;
10451
+ interest_catalog: Json;
10239
10452
  member_count: number | null;
10453
+ merge_field_catalog: Json;
10240
10454
  name: string;
10241
10455
  required_merge_fields: Json;
10242
10456
  site_id: string;
@@ -10252,7 +10466,9 @@ export type Database = {
10252
10466
  created_at?: string;
10253
10467
  fetched_at?: string;
10254
10468
  id?: string;
10469
+ interest_catalog?: Json;
10255
10470
  member_count?: number | null;
10471
+ merge_field_catalog?: Json;
10256
10472
  name: string;
10257
10473
  required_merge_fields?: Json;
10258
10474
  site_id: string;
@@ -10268,7 +10484,9 @@ export type Database = {
10268
10484
  created_at?: string;
10269
10485
  fetched_at?: string;
10270
10486
  id?: string;
10487
+ interest_catalog?: Json;
10271
10488
  member_count?: number | null;
10489
+ merge_field_catalog?: Json;
10272
10490
  name?: string;
10273
10491
  required_merge_fields?: Json;
10274
10492
  site_id?: string;
@@ -10450,6 +10668,127 @@ export type Database = {
10450
10668
  }
10451
10669
  ];
10452
10670
  };
10671
+ mailing_list_setups: {
10672
+ Row: {
10673
+ created_at: string;
10674
+ global_form: Json;
10675
+ last_acknowledged_signup_at: string | null;
10676
+ last_known_failure_at: string | null;
10677
+ last_known_failure_code: string | null;
10678
+ provider: string;
10679
+ provider_config: Json;
10680
+ setup_revision: number;
10681
+ site_id: string;
10682
+ updated_at: string;
10683
+ };
10684
+ Insert: {
10685
+ created_at?: string;
10686
+ global_form: Json;
10687
+ last_acknowledged_signup_at?: string | null;
10688
+ last_known_failure_at?: string | null;
10689
+ last_known_failure_code?: string | null;
10690
+ provider: string;
10691
+ provider_config: Json;
10692
+ setup_revision?: number;
10693
+ site_id: string;
10694
+ updated_at?: string;
10695
+ };
10696
+ Update: {
10697
+ created_at?: string;
10698
+ global_form?: Json;
10699
+ last_acknowledged_signup_at?: string | null;
10700
+ last_known_failure_at?: string | null;
10701
+ last_known_failure_code?: string | null;
10702
+ provider?: string;
10703
+ provider_config?: Json;
10704
+ setup_revision?: number;
10705
+ site_id?: string;
10706
+ updated_at?: string;
10707
+ };
10708
+ Relationships: [
10709
+ {
10710
+ foreignKeyName: "mailing_list_setups_site_id_fkey";
10711
+ columns: ["site_id"];
10712
+ isOneToOne: true;
10713
+ referencedRelation: "sites";
10714
+ referencedColumns: ["id"];
10715
+ }
10716
+ ];
10717
+ };
10718
+ mailing_list_signup_consents: {
10719
+ Row: {
10720
+ anonymized_at: string | null;
10721
+ confirmation_snapshot: Json;
10722
+ connection_id: string;
10723
+ consented_at: string;
10724
+ created_at: string;
10725
+ id: string;
10726
+ ip_address: unknown;
10727
+ metadata_minimized_at: string | null;
10728
+ normalized_email: string | null;
10729
+ outcome_kind: string;
10730
+ outcome_reason: string | null;
10731
+ provider: string;
10732
+ referer: string | null;
10733
+ setup_revision: number;
10734
+ site_id: string;
10735
+ source_snapshot: Json;
10736
+ target_snapshot: Json;
10737
+ updated_at: string;
10738
+ user_agent: string | null;
10739
+ };
10740
+ Insert: {
10741
+ anonymized_at?: string | null;
10742
+ confirmation_snapshot: Json;
10743
+ connection_id: string;
10744
+ consented_at: string;
10745
+ created_at?: string;
10746
+ id?: string;
10747
+ ip_address?: unknown;
10748
+ metadata_minimized_at?: string | null;
10749
+ normalized_email?: string | null;
10750
+ outcome_kind: string;
10751
+ outcome_reason?: string | null;
10752
+ provider: string;
10753
+ referer?: string | null;
10754
+ setup_revision: number;
10755
+ site_id: string;
10756
+ source_snapshot: Json;
10757
+ target_snapshot: Json;
10758
+ updated_at?: string;
10759
+ user_agent?: string | null;
10760
+ };
10761
+ Update: {
10762
+ anonymized_at?: string | null;
10763
+ confirmation_snapshot?: Json;
10764
+ connection_id?: string;
10765
+ consented_at?: string;
10766
+ created_at?: string;
10767
+ id?: string;
10768
+ ip_address?: unknown;
10769
+ metadata_minimized_at?: string | null;
10770
+ normalized_email?: string | null;
10771
+ outcome_kind?: string;
10772
+ outcome_reason?: string | null;
10773
+ provider?: string;
10774
+ referer?: string | null;
10775
+ setup_revision?: number;
10776
+ site_id?: string;
10777
+ source_snapshot?: Json;
10778
+ target_snapshot?: Json;
10779
+ updated_at?: string;
10780
+ user_agent?: string | null;
10781
+ };
10782
+ Relationships: [
10783
+ {
10784
+ foreignKeyName: "mailing_list_signup_consents_site_id_fkey";
10785
+ columns: ["site_id"];
10786
+ isOneToOne: false;
10787
+ referencedRelation: "sites";
10788
+ referencedColumns: ["id"];
10789
+ }
10790
+ ];
10791
+ };
10453
10792
  media_asset_labels: {
10454
10793
  Row: {
10455
10794
  asset_id: string;
@@ -10860,13 +11199,8 @@ export type Database = {
10860
11199
  navigation_menus: {
10861
11200
  Row: {
10862
11201
  created_at: string;
10863
- footer_role: Database["public"]["Enums"]["footer_navigation_role"] | null;
10864
11202
  id: string;
10865
- identifier: string | null;
10866
- is_footer: boolean;
10867
- is_primary: boolean;
10868
- name: string;
10869
- position: number;
11203
+ location: Database["public"]["Enums"]["navigation_location"];
10870
11204
  sdk_content_hash: string | null;
10871
11205
  sdk_synced_at: string | null;
10872
11206
  site_id: string;
@@ -10875,13 +11209,8 @@ export type Database = {
10875
11209
  };
10876
11210
  Insert: {
10877
11211
  created_at?: string;
10878
- footer_role?: Database["public"]["Enums"]["footer_navigation_role"] | null;
10879
11212
  id?: string;
10880
- identifier?: string | null;
10881
- is_footer?: boolean;
10882
- is_primary?: boolean;
10883
- name: string;
10884
- position?: number;
11213
+ location: Database["public"]["Enums"]["navigation_location"];
10885
11214
  sdk_content_hash?: string | null;
10886
11215
  sdk_synced_at?: string | null;
10887
11216
  site_id: string;
@@ -10890,13 +11219,8 @@ export type Database = {
10890
11219
  };
10891
11220
  Update: {
10892
11221
  created_at?: string;
10893
- footer_role?: Database["public"]["Enums"]["footer_navigation_role"] | null;
10894
11222
  id?: string;
10895
- identifier?: string | null;
10896
- is_footer?: boolean;
10897
- is_primary?: boolean;
10898
- name?: string;
10899
- position?: number;
11223
+ location?: Database["public"]["Enums"]["navigation_location"];
10900
11224
  sdk_content_hash?: string | null;
10901
11225
  sdk_synced_at?: string | null;
10902
11226
  site_id?: string;
@@ -11026,285 +11350,75 @@ export type Database = {
11026
11350
  site_id: string;
11027
11351
  subscriber_id: string;
11028
11352
  };
11029
- Insert: {
11030
- created_at?: string;
11031
- id?: string;
11032
- list_id: string;
11033
- site_id: string;
11034
- subscriber_id: string;
11035
- };
11036
- Update: {
11037
- created_at?: string;
11038
- id?: string;
11039
- list_id?: string;
11040
- site_id?: string;
11041
- subscriber_id?: string;
11042
- };
11043
- Relationships: [
11044
- {
11045
- foreignKeyName: "newsletter_list_memberships_list_id_fkey";
11046
- columns: ["list_id"];
11047
- isOneToOne: false;
11048
- referencedRelation: "newsletter_lists";
11049
- referencedColumns: ["id"];
11050
- },
11051
- {
11052
- foreignKeyName: "newsletter_list_memberships_site_id_fkey";
11053
- columns: ["site_id"];
11054
- isOneToOne: false;
11055
- referencedRelation: "sites";
11056
- referencedColumns: ["id"];
11057
- },
11058
- {
11059
- foreignKeyName: "newsletter_list_memberships_subscriber_id_fkey";
11060
- columns: ["subscriber_id"];
11061
- isOneToOne: false;
11062
- referencedRelation: "newsletter_subscribers";
11063
- referencedColumns: ["id"];
11064
- }
11065
- ];
11066
- };
11067
- newsletter_lists: {
11068
- Row: {
11069
- created_at: string;
11070
- description: string | null;
11071
- id: string;
11072
- name: string;
11073
- name_lower: string | null;
11074
- site_id: string;
11075
- updated_at: string;
11076
- };
11077
- Insert: {
11078
- created_at?: string;
11079
- description?: string | null;
11080
- id?: string;
11081
- name: string;
11082
- name_lower?: string | null;
11083
- site_id: string;
11084
- updated_at?: string;
11085
- };
11086
- Update: {
11087
- created_at?: string;
11088
- description?: string | null;
11089
- id?: string;
11090
- name?: string;
11091
- name_lower?: string | null;
11092
- site_id?: string;
11093
- updated_at?: string;
11094
- };
11095
- Relationships: [
11096
- {
11097
- foreignKeyName: "newsletter_lists_site_id_fkey";
11098
- columns: ["site_id"];
11099
- isOneToOne: false;
11100
- referencedRelation: "sites";
11101
- referencedColumns: ["id"];
11102
- }
11103
- ];
11104
- };
11105
- newsletter_mailchimp_signup_mirrors: {
11106
- Row: {
11107
- anonymized_at: string | null;
11108
- anonymized_by: string | null;
11109
- attempt_count: number;
11110
- audience_id: string;
11111
- company: string | null;
11112
- connection_id: string;
11113
- consent_ip: string | null;
11114
- consent_metadata: Json | null;
11115
- consent_referer: string | null;
11116
- consent_source: string;
11117
- consent_user_agent: string | null;
11118
- consented_at: string;
11119
- created_at: string;
11120
- email: string | null;
11121
- email_lower: string | null;
11122
- first_name: string | null;
11123
- full_name: string | null;
11124
- id: string;
11125
- last_name: string | null;
11126
- last_source_block_id: string | null;
11127
- last_sync_attempt_at: string | null;
11128
- last_sync_error_category: string | null;
11129
- last_sync_error_message: string | null;
11130
- last_synced_at: string | null;
11131
- locked_at: string | null;
11132
- locked_by: string | null;
11133
- mailchimp_member_id: string | null;
11134
- max_attempts: number;
11135
- next_retry_at: string | null;
11136
- phone: string | null;
11137
- site_id: string;
11138
- source_block_ids: string[];
11139
- sync_idempotency_key: string | null;
11140
- sync_status: Database["public"]["Enums"]["mailchimp_signup_sync_status"];
11141
- tags: string[];
11142
- updated_at: string;
11143
- };
11144
- Insert: {
11145
- anonymized_at?: string | null;
11146
- anonymized_by?: string | null;
11147
- attempt_count?: number;
11148
- audience_id: string;
11149
- company?: string | null;
11150
- connection_id: string;
11151
- consent_ip?: string | null;
11152
- consent_metadata?: Json | null;
11153
- consent_referer?: string | null;
11154
- consent_source: string;
11155
- consent_user_agent?: string | null;
11156
- consented_at: string;
11157
- created_at?: string;
11158
- email?: string | null;
11159
- email_lower?: string | null;
11160
- first_name?: string | null;
11161
- full_name?: string | null;
11162
- id?: string;
11163
- last_name?: string | null;
11164
- last_source_block_id?: string | null;
11165
- last_sync_attempt_at?: string | null;
11166
- last_sync_error_category?: string | null;
11167
- last_sync_error_message?: string | null;
11168
- last_synced_at?: string | null;
11169
- locked_at?: string | null;
11170
- locked_by?: string | null;
11171
- mailchimp_member_id?: string | null;
11172
- max_attempts?: number;
11173
- next_retry_at?: string | null;
11174
- phone?: string | null;
11353
+ Insert: {
11354
+ created_at?: string;
11355
+ id?: string;
11356
+ list_id: string;
11175
11357
  site_id: string;
11176
- source_block_ids?: string[];
11177
- sync_idempotency_key?: string | null;
11178
- sync_status?: Database["public"]["Enums"]["mailchimp_signup_sync_status"];
11179
- tags?: string[];
11180
- updated_at?: string;
11358
+ subscriber_id: string;
11181
11359
  };
11182
11360
  Update: {
11183
- anonymized_at?: string | null;
11184
- anonymized_by?: string | null;
11185
- attempt_count?: number;
11186
- audience_id?: string;
11187
- company?: string | null;
11188
- connection_id?: string;
11189
- consent_ip?: string | null;
11190
- consent_metadata?: Json | null;
11191
- consent_referer?: string | null;
11192
- consent_source?: string;
11193
- consent_user_agent?: string | null;
11194
- consented_at?: string;
11195
11361
  created_at?: string;
11196
- email?: string | null;
11197
- email_lower?: string | null;
11198
- first_name?: string | null;
11199
- full_name?: string | null;
11200
11362
  id?: string;
11201
- last_name?: string | null;
11202
- last_source_block_id?: string | null;
11203
- last_sync_attempt_at?: string | null;
11204
- last_sync_error_category?: string | null;
11205
- last_sync_error_message?: string | null;
11206
- last_synced_at?: string | null;
11207
- locked_at?: string | null;
11208
- locked_by?: string | null;
11209
- mailchimp_member_id?: string | null;
11210
- max_attempts?: number;
11211
- next_retry_at?: string | null;
11212
- phone?: string | null;
11363
+ list_id?: string;
11213
11364
  site_id?: string;
11214
- source_block_ids?: string[];
11215
- sync_idempotency_key?: string | null;
11216
- sync_status?: Database["public"]["Enums"]["mailchimp_signup_sync_status"];
11217
- tags?: string[];
11218
- updated_at?: string;
11365
+ subscriber_id?: string;
11219
11366
  };
11220
11367
  Relationships: [
11221
11368
  {
11222
- foreignKeyName: "newsletter_mailchimp_signup_mirrors_site_id_fkey";
11369
+ foreignKeyName: "newsletter_list_memberships_list_id_fkey";
11370
+ columns: ["list_id"];
11371
+ isOneToOne: false;
11372
+ referencedRelation: "newsletter_lists";
11373
+ referencedColumns: ["id"];
11374
+ },
11375
+ {
11376
+ foreignKeyName: "newsletter_list_memberships_site_id_fkey";
11223
11377
  columns: ["site_id"];
11224
11378
  isOneToOne: false;
11225
11379
  referencedRelation: "sites";
11226
11380
  referencedColumns: ["id"];
11381
+ },
11382
+ {
11383
+ foreignKeyName: "newsletter_list_memberships_subscriber_id_fkey";
11384
+ columns: ["subscriber_id"];
11385
+ isOneToOne: false;
11386
+ referencedRelation: "newsletter_subscribers";
11387
+ referencedColumns: ["id"];
11227
11388
  }
11228
11389
  ];
11229
11390
  };
11230
- newsletter_mailchimp_signup_sync_attempts: {
11391
+ newsletter_lists: {
11231
11392
  Row: {
11232
- attempt_number: number;
11233
- completed_at: string | null;
11234
11393
  created_at: string;
11235
- error_category: string | null;
11236
- error_message: string | null;
11394
+ description: string | null;
11237
11395
  id: string;
11238
- mailchimp_member_id: string | null;
11239
- metadata: Json | null;
11240
- mirror_id: string;
11241
- next_retry_at: string | null;
11242
- provider_status: string | null;
11243
- retryable: boolean | null;
11396
+ name: string;
11397
+ name_lower: string | null;
11244
11398
  site_id: string;
11245
- started_at: string;
11246
- status: Database["public"]["Enums"]["mailchimp_signup_sync_attempt_status"];
11247
- sync_idempotency_key: string;
11248
11399
  updated_at: string;
11249
- worker_id: string | null;
11250
11400
  };
11251
11401
  Insert: {
11252
- attempt_number: number;
11253
- completed_at?: string | null;
11254
11402
  created_at?: string;
11255
- error_category?: string | null;
11256
- error_message?: string | null;
11403
+ description?: string | null;
11257
11404
  id?: string;
11258
- mailchimp_member_id?: string | null;
11259
- metadata?: Json | null;
11260
- mirror_id: string;
11261
- next_retry_at?: string | null;
11262
- provider_status?: string | null;
11263
- retryable?: boolean | null;
11405
+ name: string;
11406
+ name_lower?: string | null;
11264
11407
  site_id: string;
11265
- started_at?: string;
11266
- status: Database["public"]["Enums"]["mailchimp_signup_sync_attempt_status"];
11267
- sync_idempotency_key: string;
11268
11408
  updated_at?: string;
11269
- worker_id?: string | null;
11270
11409
  };
11271
11410
  Update: {
11272
- attempt_number?: number;
11273
- completed_at?: string | null;
11274
11411
  created_at?: string;
11275
- error_category?: string | null;
11276
- error_message?: string | null;
11412
+ description?: string | null;
11277
11413
  id?: string;
11278
- mailchimp_member_id?: string | null;
11279
- metadata?: Json | null;
11280
- mirror_id?: string;
11281
- next_retry_at?: string | null;
11282
- provider_status?: string | null;
11283
- retryable?: boolean | null;
11414
+ name?: string;
11415
+ name_lower?: string | null;
11284
11416
  site_id?: string;
11285
- started_at?: string;
11286
- status?: Database["public"]["Enums"]["mailchimp_signup_sync_attempt_status"];
11287
- sync_idempotency_key?: string;
11288
11417
  updated_at?: string;
11289
- worker_id?: string | null;
11290
11418
  };
11291
11419
  Relationships: [
11292
11420
  {
11293
- foreignKeyName: "newsletter_mailchimp_signup_sync_attempts_mirror_id_fkey";
11294
- columns: ["mirror_id"];
11295
- isOneToOne: false;
11296
- referencedRelation: "newsletter_mailchimp_signup_mirrors";
11297
- referencedColumns: ["id"];
11298
- },
11299
- {
11300
- foreignKeyName: "newsletter_mailchimp_signup_sync_attempts_mirror_site_fkey";
11301
- columns: ["mirror_id", "site_id"];
11302
- isOneToOne: false;
11303
- referencedRelation: "newsletter_mailchimp_signup_mirrors";
11304
- referencedColumns: ["id", "site_id"];
11305
- },
11306
- {
11307
- foreignKeyName: "newsletter_mailchimp_signup_sync_attempts_site_id_fkey";
11421
+ foreignKeyName: "newsletter_lists_site_id_fkey";
11308
11422
  columns: ["site_id"];
11309
11423
  isOneToOne: false;
11310
11424
  referencedRelation: "sites";
@@ -18351,6 +18465,14 @@ export type Database = {
18351
18465
  };
18352
18466
  Returns: number;
18353
18467
  };
18468
+ anonymize_mailing_list_signup_consent_v1: {
18469
+ Args: {
18470
+ p_anonymized_at?: string;
18471
+ p_consent_id: string;
18472
+ p_site_id: string;
18473
+ };
18474
+ Returns: boolean;
18475
+ };
18354
18476
  apply_canonical_order_refund_projection: {
18355
18477
  Args: {
18356
18478
  p_expected_order_refunded_cents: number;
@@ -18420,6 +18542,17 @@ export type Database = {
18420
18542
  };
18421
18543
  Returns: Json;
18422
18544
  };
18545
+ apply_mailing_list_setup_v1: {
18546
+ Args: {
18547
+ p_expected_revision: number;
18548
+ p_global_form: Json;
18549
+ p_provider: string;
18550
+ p_provider_config: Json;
18551
+ p_reset_placements: boolean;
18552
+ p_site_id: string;
18553
+ };
18554
+ Returns: Json;
18555
+ };
18423
18556
  apply_newsletter_subscriber_rectification: {
18424
18557
  Args: {
18425
18558
  audit_actor_user_id: string;
@@ -18871,6 +19004,25 @@ export type Database = {
18871
19004
  notification_id: string;
18872
19005
  }[];
18873
19006
  };
19007
+ claim_booking_commission_reconciliation: {
19008
+ Args: never;
19009
+ Returns: {
19010
+ attempts: number;
19011
+ lease_token: string | null;
19012
+ locked_until: string | null;
19013
+ next_attempt_at: string;
19014
+ requested_at: string;
19015
+ revision: string;
19016
+ target_id: string;
19017
+ target_kind: string;
19018
+ }[];
19019
+ SetofOptions: {
19020
+ from: "*";
19021
+ to: "billing_commission_reconciliation_requests";
19022
+ isOneToOne: false;
19023
+ isSetofReturn: true;
19024
+ };
19025
+ };
18874
19026
  claim_dated_offering_non_cash_projections_v2_atomic: {
18875
19027
  Args: {
18876
19028
  p_claim_ttl?: string;
@@ -19258,6 +19410,44 @@ export type Database = {
19258
19410
  transition_outcome: string;
19259
19411
  }[];
19260
19412
  };
19413
+ connect_brevo_account_v1: {
19414
+ Args: {
19415
+ p_account_email: string;
19416
+ p_account_id: string;
19417
+ p_account_name: string;
19418
+ p_api_key_encrypted: string;
19419
+ p_api_key_key_version: string;
19420
+ p_attributes: Json;
19421
+ p_connected_at: string;
19422
+ p_connection_id: string;
19423
+ p_lists: Json;
19424
+ p_site_id: string;
19425
+ p_templates: Json;
19426
+ };
19427
+ Returns: {
19428
+ account_email: string | null;
19429
+ account_id: string | null;
19430
+ account_name: string | null;
19431
+ attribute_catalog: Json;
19432
+ connected_at: string | null;
19433
+ created_at: string;
19434
+ disconnected_at: string | null;
19435
+ id: string;
19436
+ last_failure_at: string | null;
19437
+ last_failure_code: string | null;
19438
+ needs_reauth_at: string | null;
19439
+ refreshed_at: string | null;
19440
+ site_id: string;
19441
+ status: string;
19442
+ updated_at: string;
19443
+ }[];
19444
+ SetofOptions: {
19445
+ from: "*";
19446
+ to: "brevo_integration_connections";
19447
+ isOneToOne: false;
19448
+ isSetofReturn: true;
19449
+ };
19450
+ };
19261
19451
  consume_booking_customer_credit_reservation: {
19262
19452
  Args: {
19263
19453
  p_booking_payment_id?: string;
@@ -19614,6 +19804,13 @@ export type Database = {
19614
19804
  runs_count: number;
19615
19805
  }[];
19616
19806
  };
19807
+ delete_newsletter_topic_with_references_v1: {
19808
+ Args: {
19809
+ p_site_id: string;
19810
+ p_topic_id: string;
19811
+ };
19812
+ Returns: Json;
19813
+ };
19617
19814
  discard_page_surface_draft_content_guarded: {
19618
19815
  Args: {
19619
19816
  p_expected_draft_updated_at: string;
@@ -19860,6 +20057,16 @@ export type Database = {
19860
20057
  };
19861
20058
  Returns: Json;
19862
20059
  };
20060
+ finish_booking_commission_reconciliation: {
20061
+ Args: {
20062
+ p_lease_token: string;
20063
+ p_revision: string;
20064
+ p_succeeded: boolean;
20065
+ p_target_id: string;
20066
+ p_target_kind: string;
20067
+ };
20068
+ Returns: undefined;
20069
+ };
19863
20070
  get_auth_user_id_by_email: {
19864
20071
  Args: {
19865
20072
  p_email: string;
@@ -20031,6 +20238,30 @@ export type Database = {
20031
20238
  staff_member_id: string;
20032
20239
  }[];
20033
20240
  };
20241
+ list_mailing_list_placement_modes_v1: {
20242
+ Args: {
20243
+ p_site_id: string;
20244
+ };
20245
+ Returns: Json;
20246
+ };
20247
+ list_public_event_catalogue_representatives_v1: {
20248
+ Args: {
20249
+ p_from_date: string;
20250
+ p_include_drafts?: boolean;
20251
+ p_series_ids: string[];
20252
+ p_site_id: string;
20253
+ p_staff_member_id?: string;
20254
+ p_to_date?: string;
20255
+ };
20256
+ Returns: {
20257
+ capacity_override: number;
20258
+ ends_at: string;
20259
+ id: string;
20260
+ series_id: string;
20261
+ starts_at: string;
20262
+ status: string;
20263
+ }[];
20264
+ };
20034
20265
  list_visible_appointment_overlap_slots: {
20035
20266
  Args: {
20036
20267
  p_end_at: string;
@@ -20098,6 +20329,14 @@ export type Database = {
20098
20329
  included: number;
20099
20330
  }[];
20100
20331
  };
20332
+ minimize_mailing_list_signup_consent_metadata_v1: {
20333
+ Args: {
20334
+ p_consent_id: string;
20335
+ p_minimized_at?: string;
20336
+ p_site_id: string;
20337
+ };
20338
+ Returns: boolean;
20339
+ };
20101
20340
  move_event_series_to_shared_offering_content: {
20102
20341
  Args: {
20103
20342
  p_event_offering_id: string;
@@ -20109,109 +20348,6 @@ export type Database = {
20109
20348
  };
20110
20349
  Returns: undefined;
20111
20350
  };
20112
- newsletter_anonymize_mailchimp_signup_mirror: {
20113
- Args: {
20114
- p_actor_user_id?: string;
20115
- p_anonymized_at: string;
20116
- p_mirror_id: string;
20117
- p_site_id: string;
20118
- };
20119
- Returns: {
20120
- anonymized_at: string | null;
20121
- anonymized_by: string | null;
20122
- attempt_count: number;
20123
- audience_id: string;
20124
- company: string | null;
20125
- connection_id: string;
20126
- consent_ip: string | null;
20127
- consent_metadata: Json | null;
20128
- consent_referer: string | null;
20129
- consent_source: string;
20130
- consent_user_agent: string | null;
20131
- consented_at: string;
20132
- created_at: string;
20133
- email: string | null;
20134
- email_lower: string | null;
20135
- first_name: string | null;
20136
- full_name: string | null;
20137
- id: string;
20138
- last_name: string | null;
20139
- last_source_block_id: string | null;
20140
- last_sync_attempt_at: string | null;
20141
- last_sync_error_category: string | null;
20142
- last_sync_error_message: string | null;
20143
- last_synced_at: string | null;
20144
- locked_at: string | null;
20145
- locked_by: string | null;
20146
- mailchimp_member_id: string | null;
20147
- max_attempts: number;
20148
- next_retry_at: string | null;
20149
- phone: string | null;
20150
- site_id: string;
20151
- source_block_ids: string[];
20152
- sync_idempotency_key: string | null;
20153
- sync_status: Database["public"]["Enums"]["mailchimp_signup_sync_status"];
20154
- tags: string[];
20155
- updated_at: string;
20156
- };
20157
- SetofOptions: {
20158
- from: "*";
20159
- to: "newsletter_mailchimp_signup_mirrors";
20160
- isOneToOne: true;
20161
- isSetofReturn: false;
20162
- };
20163
- };
20164
- newsletter_claim_mailchimp_signup_mirrors: {
20165
- Args: {
20166
- p_limit?: number;
20167
- p_lock_timeout_seconds?: number;
20168
- p_worker_id?: string;
20169
- };
20170
- Returns: {
20171
- anonymized_at: string | null;
20172
- anonymized_by: string | null;
20173
- attempt_count: number;
20174
- audience_id: string;
20175
- company: string | null;
20176
- connection_id: string;
20177
- consent_ip: string | null;
20178
- consent_metadata: Json | null;
20179
- consent_referer: string | null;
20180
- consent_source: string;
20181
- consent_user_agent: string | null;
20182
- consented_at: string;
20183
- created_at: string;
20184
- email: string | null;
20185
- email_lower: string | null;
20186
- first_name: string | null;
20187
- full_name: string | null;
20188
- id: string;
20189
- last_name: string | null;
20190
- last_source_block_id: string | null;
20191
- last_sync_attempt_at: string | null;
20192
- last_sync_error_category: string | null;
20193
- last_sync_error_message: string | null;
20194
- last_synced_at: string | null;
20195
- locked_at: string | null;
20196
- locked_by: string | null;
20197
- mailchimp_member_id: string | null;
20198
- max_attempts: number;
20199
- next_retry_at: string | null;
20200
- phone: string | null;
20201
- site_id: string;
20202
- source_block_ids: string[];
20203
- sync_idempotency_key: string | null;
20204
- sync_status: Database["public"]["Enums"]["mailchimp_signup_sync_status"];
20205
- tags: string[];
20206
- updated_at: string;
20207
- }[];
20208
- SetofOptions: {
20209
- from: "*";
20210
- to: "newsletter_mailchimp_signup_mirrors";
20211
- isOneToOne: false;
20212
- isSetofReturn: true;
20213
- };
20214
- };
20215
20351
  newsletter_claim_send_jobs: {
20216
20352
  Args: {
20217
20353
  p_limit: number;
@@ -20754,6 +20890,30 @@ export type Database = {
20754
20890
  };
20755
20891
  Returns: string;
20756
20892
  };
20893
+ replace_brevo_catalog_v1: {
20894
+ Args: {
20895
+ p_attributes: Json;
20896
+ p_connection_id: string;
20897
+ p_fetched_at: string;
20898
+ p_lists: Json;
20899
+ p_site_id: string;
20900
+ p_templates: Json;
20901
+ };
20902
+ Returns: undefined;
20903
+ };
20904
+ request_booking_commission_reconciliation: {
20905
+ Args: {
20906
+ p_user_id: string;
20907
+ };
20908
+ Returns: undefined;
20909
+ };
20910
+ request_booking_commission_target_reconciliation: {
20911
+ Args: {
20912
+ p_target_id: string;
20913
+ p_target_kind: string;
20914
+ };
20915
+ Returns: undefined;
20916
+ };
20757
20917
  reschedule_appointment_for_actor: {
20758
20918
  Args: {
20759
20919
  p_appointment_id: string;
@@ -21751,7 +21911,6 @@ export type Database = {
21751
21911
  content_owner_kind: "block" | "entry" | "page" | "entry_slot" | "surface_slot" | "page_surface";
21752
21912
  content_stage: "draft" | "published";
21753
21913
  event_reminder_marker_kind: "scheduled" | "sent";
21754
- footer_navigation_role: "main" | "legal-policy";
21755
21914
  gsc_property_type: "domain" | "url_prefix";
21756
21915
  impersonation_scope: "read" | "write";
21757
21916
  mailchimp_audience_cache_status: "available" | "stale" | "unavailable";
@@ -21759,8 +21918,7 @@ export type Database = {
21759
21918
  mailchimp_oauth_return_intent: "newsletter_settings" | "block_editor" | "site_integrations_settings";
21760
21919
  mailchimp_oauth_state_action: "connect" | "reauth";
21761
21920
  mailchimp_reauth_reason: "token_revoked" | "account_access_lost" | "permission_denied" | "unknown_auth_failure";
21762
- mailchimp_signup_sync_attempt_status: "started" | "synced" | "pending_external_confirmation" | "failed_retryable" | "failed_terminal" | "skipped";
21763
- mailchimp_signup_sync_status: "queued" | "synced" | "pending_external_confirmation" | "failed_retryable" | "failed_terminal" | "processing";
21921
+ navigation_location: "main" | "footer" | "legal";
21764
21922
  newsletter_campaign_status: "draft" | "scheduled" | "sending" | "sent" | "cancelled" | "failed";
21765
21923
  newsletter_send_job_status: "pending" | "processing" | "completed" | "failed" | "cancelled";
21766
21924
  newsletter_sender_entity_type: "individual" | "company" | "llp" | "charity" | "other";
@@ -22422,7 +22580,6 @@ export declare const Constants: {
22422
22580
  readonly content_owner_kind: readonly ["block", "entry", "page", "entry_slot", "surface_slot", "page_surface"];
22423
22581
  readonly content_stage: readonly ["draft", "published"];
22424
22582
  readonly event_reminder_marker_kind: readonly ["scheduled", "sent"];
22425
- readonly footer_navigation_role: readonly ["main", "legal-policy"];
22426
22583
  readonly gsc_property_type: readonly ["domain", "url_prefix"];
22427
22584
  readonly impersonation_scope: readonly ["read", "write"];
22428
22585
  readonly mailchimp_audience_cache_status: readonly ["available", "stale", "unavailable"];
@@ -22430,8 +22587,7 @@ export declare const Constants: {
22430
22587
  readonly mailchimp_oauth_return_intent: readonly ["newsletter_settings", "block_editor", "site_integrations_settings"];
22431
22588
  readonly mailchimp_oauth_state_action: readonly ["connect", "reauth"];
22432
22589
  readonly mailchimp_reauth_reason: readonly ["token_revoked", "account_access_lost", "permission_denied", "unknown_auth_failure"];
22433
- readonly mailchimp_signup_sync_attempt_status: readonly ["started", "synced", "pending_external_confirmation", "failed_retryable", "failed_terminal", "skipped"];
22434
- readonly mailchimp_signup_sync_status: readonly ["queued", "synced", "pending_external_confirmation", "failed_retryable", "failed_terminal", "processing"];
22590
+ readonly navigation_location: readonly ["main", "footer", "legal"];
22435
22591
  readonly newsletter_campaign_status: readonly ["draft", "scheduled", "sending", "sent", "cancelled", "failed"];
22436
22592
  readonly newsletter_send_job_status: readonly ["pending", "processing", "completed", "failed", "cancelled"];
22437
22593
  readonly newsletter_sender_entity_type: readonly ["individual", "company", "llp", "charity", "other"];