@riverbankcms/sdk 0.125.0 → 0.127.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 (177) hide show
  1. package/README.md +3 -1
  2. package/dist/{PreviewEditorSidebar-BezDOtQ7.mjs → PreviewEditorSidebar-BXtfF7tp.mjs} +122 -301
  3. package/dist/{PreviewEditorUI-CgSqmfo2.mjs → PreviewEditorUI-Dou73Q0K.mjs} +3 -3
  4. package/dist/{PreviewQueryProvider-BH-3-jSj.mjs → PreviewQueryProvider-DgFDIwvK.mjs} +1 -1
  5. package/dist/{SdkPreviewModeRuntime-Co3AHfj0.mjs → SdkPreviewModeRuntime-B0HPXr-l.mjs} +141 -63
  6. package/dist/{SiteChromeCustomizeContext-BHF-KANn.mjs → SiteChromeCustomizeContext-DZiDBAYu.mjs} +5330 -5841
  7. package/dist/_dts/ai/src/contracts/proposals.d.ts +1552 -202
  8. package/dist/_dts/api/src/common/envelope.d.ts +1 -1
  9. package/dist/_dts/api/src/contentRuntime.d.ts +1 -7
  10. package/dist/_dts/api/src/endpoints.d.ts +0 -7
  11. package/dist/_dts/api/src/sdk-event-upsert.d.ts +42 -0
  12. package/dist/_dts/api/src/sdkContracts.d.ts +11 -9
  13. package/dist/_dts/api/src/siteOperations.d.ts +18 -1
  14. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +1 -14
  15. package/dist/_dts/block-form/src/backend/store-backend.d.ts +2 -1
  16. package/dist/_dts/block-form/src/blockDraftSaveability.d.ts +1 -0
  17. package/dist/_dts/blocks/src/index.d.ts +3 -2
  18. package/dist/_dts/blocks/src/lib/media.d.ts +267 -0
  19. package/dist/_dts/blocks/src/system/constants/buttonRoles.d.ts +0 -13
  20. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +15 -2
  21. package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +4 -4
  22. package/dist/_dts/blocks/src/system/runtime/nodes/mergeResolveImageUrlContexts.d.ts +7 -0
  23. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +2 -2
  24. package/dist/_dts/content-editor/src/ui/blockValidationManifestRegistry.d.ts +17 -0
  25. package/dist/_dts/content-editor/src/ui/blockValidationView.d.ts +1 -1
  26. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +4 -0
  27. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +322 -171
  28. package/dist/_dts/editor-blocks/src/BlockEditor.d.ts +4 -0
  29. package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +26 -0
  30. package/dist/_dts/editor-blocks/src/widgets/rich-text/imageInsert.d.ts +3 -3
  31. package/dist/_dts/media-editor/src/MediaEditor.d.ts +2 -2
  32. package/dist/_dts/media-editor/src/context.d.ts +1 -2
  33. package/dist/_dts/media-editor/src/index.d.ts +3 -1
  34. package/dist/_dts/media-editor/src/mediaSelection.d.ts +32 -0
  35. package/dist/_dts/media-editor/src/types.d.ts +3 -1
  36. package/dist/_dts/media-editor/src/useMediaSelection.d.ts +26 -0
  37. package/dist/_dts/preview-next/src/client/index.d.ts +2 -0
  38. package/dist/_dts/preview-next/src/client/preview/HeaderMenuControls.d.ts +12 -0
  39. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +1 -2
  40. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +13 -3
  41. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +7 -2
  42. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +6 -60
  43. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -13
  44. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +8 -100
  45. package/dist/_dts/preview-next/src/client/preview/headerInteractionPaletteSurfaceState.d.ts +8 -0
  46. package/dist/_dts/preview-next/src/client/preview/previewThemeRoles.d.ts +15 -0
  47. package/dist/_dts/preview-next/src/client/preview/siteChromeCustomizeTypes.d.ts +54 -0
  48. package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +13 -3
  49. package/dist/_dts/preview-next/src/client/preview/siteChromeNavQuickControlHistory.d.ts +3 -0
  50. package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +6 -3
  51. package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +1 -4
  52. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -15
  53. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +11 -21
  54. package/dist/_dts/sdk/src/cli/commands/event.d.ts +2 -2
  55. package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +12 -0
  56. package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +6 -0
  57. package/dist/_dts/sdk/src/cli/commands/style.d.ts +1 -1
  58. package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +5 -0
  59. package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +17 -0
  60. package/dist/_dts/sdk/src/cli/content/reader.d.ts +5 -10
  61. package/dist/_dts/sdk/src/cli/migrations/events.d.ts +1 -1
  62. package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +24 -0
  63. package/dist/_dts/sdk/src/client/management/http.d.ts +1 -1
  64. package/dist/_dts/sdk/src/client/management/types.d.ts +3 -28
  65. package/dist/_dts/sdk/src/config/index.d.ts +1 -1
  66. package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -20
  67. package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
  68. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -2
  69. package/dist/_dts/sdk/src/version.d.ts +1 -1
  70. package/dist/_dts/site-commands/src/commandContract.d.ts +33 -5
  71. package/dist/_dts/site-commands/src/commandDomain.d.ts +2 -2
  72. package/dist/_dts/site-commands/src/commands.d.ts +38 -9
  73. package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +28 -1
  74. package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +4 -4
  75. package/dist/_dts/theme-core/src/buttons/effects/presets/background.d.ts +1 -1
  76. package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +0 -18
  77. package/dist/_dts/theme-core/src/buttons/types.d.ts +1 -3
  78. package/dist/_dts/theme-core/src/header/containerSchema.d.ts +20 -0
  79. package/dist/_dts/theme-core/src/header/generateHeaderCss.d.ts +1 -1
  80. package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +14 -0
  81. package/dist/_dts/theme-core/src/header/legacyNavLinkStyle.d.ts +3 -0
  82. package/dist/_dts/theme-core/src/header/paintTargets.d.ts +25 -0
  83. package/dist/_dts/theme-core/src/header/scrollTreatment.d.ts +11 -0
  84. package/dist/_dts/theme-core/src/header/surfaceRules.d.ts +9 -0
  85. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +15 -0
  86. package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
  87. package/dist/_dts/theme-core/src/palette/concretePalette.d.ts +20 -0
  88. package/dist/_dts/theme-core/src/palette/curated/index.d.ts +2 -17
  89. package/dist/_dts/theme-core/src/palette/index.d.ts +1 -6
  90. package/dist/_dts/theme-core/src/palette/schema.d.ts +39 -0
  91. package/dist/_dts/theme-core/src/schema.d.ts +105 -45
  92. package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +3 -51
  93. package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +4 -11
  94. package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +3 -51
  95. package/dist/_dts/theme-core/src/site-styles/headerInteractionPalette.d.ts +32 -0
  96. package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +19 -106
  97. package/dist/_dts/theme-core/src/site-styles/headerOpeningForeground.d.ts +22 -0
  98. package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +2 -0
  99. package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +4 -0
  100. package/dist/_dts/theme-core/src/site-styles/index.d.ts +3 -0
  101. package/dist/_dts/theme-core/src/site-styles/lookOptionGroups.d.ts +24 -0
  102. package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +1 -2
  103. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +4 -22
  104. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorOptions.d.ts +21 -0
  105. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +5 -7
  106. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +5 -6
  107. package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +4 -1
  108. package/dist/cli/index.mjs +1583 -1601
  109. package/dist/cli/init-docs/content/cli-reference.md +6 -3
  110. package/dist/cli/init-docs/content/content-management.md +24 -13
  111. package/dist/client/{DiscountCodeDisclosure-CyPpekBp.mjs → DiscountCodeDisclosure-BDFRp8Y7.mjs} +1 -1
  112. package/dist/client/{EventCombined.client-zywit-60.mjs → EventCombined.client-DJgF1_lf.mjs} +2 -2
  113. package/dist/client/{EventListing.client-J2nLhkKT.mjs → EventListing.client-CnWGNjOr.mjs} +2 -2
  114. package/dist/client/{LeafletStaticMap-CSubXWt6.mjs → LeafletStaticMap-BISs9Bl7.mjs} +1 -1
  115. package/dist/client/{MagicLinkForm-DDLIfiq9.mjs → MagicLinkForm-b5E_HoG9.mjs} +1 -1
  116. package/dist/client/{StepIndicator-DE8EvHIp.mjs → StepIndicator-D8gVYkK-.mjs} +2 -2
  117. package/dist/client/{accordion-Ct5T5NiA.mjs → accordion-DFDajgDz.mjs} +1 -1
  118. package/dist/client/{bookingForm-DMxtLPxw.mjs → bookingForm-Bdqj9-52.mjs} +5 -6
  119. package/dist/client/bookings.mjs +315 -46
  120. package/dist/client/{carousel--FMqgvob.mjs → carousel-Cvqf-kN8.mjs} +1 -1
  121. package/dist/client/{cart-BKX1bWiU.mjs → cart-CuH2TJXP.mjs} +3 -3
  122. package/dist/client/{checkout-B_jxi4WW.mjs → checkout-CMNPpejZ.mjs} +3 -3
  123. package/dist/client/client.mjs +1381 -1427
  124. package/dist/client/{courseRegistration-DH4MlkRD.mjs → courseRegistration-DTEYWL6Z.mjs} +6 -7
  125. package/dist/client/{eventCalendar-BQILwAcL.mjs → eventCalendar-BW-XoxZ0.mjs} +4 -4
  126. package/dist/client/{eventCombined-DFFW_Vmo.mjs → eventCombined-Bpn7s0y9.mjs} +2 -2
  127. package/dist/client/{eventDetails-B045CTSJ.mjs → eventDetails-D2uUSTMH.mjs} +3 -3
  128. package/dist/client/{eventListing-BDMYNVzS.mjs → eventListing-CVr1c094.mjs} +2 -2
  129. package/dist/client/{eventRegistration-CQ2-BSnB.mjs → eventRegistration-Dv4AvkMw.mjs} +30 -22
  130. package/dist/client/{form-DJKuyZgN.mjs → form-DxdKf9fs.mjs} +1 -1
  131. package/dist/client/{headerSection-DeTjfiDo.mjs → headerSection-BaXI5Sro.mjs} +2 -2
  132. package/dist/client/hooks.mjs +851 -976
  133. package/dist/client/{locationMap-i2wDA8gB.mjs → locationMap-BEtW2fKz.mjs} +2 -2
  134. package/dist/client/{newsletterForm-DKiueauk.mjs → newsletterForm-BKKs0S4R.mjs} +1 -1
  135. package/dist/client/{pricing-C01J3Epx.mjs → pricing-ClkqcElA.mjs} +1 -1
  136. package/dist/client/{productDetail-Dfc1sZaX.mjs → productDetail-H-ru8dyy.mjs} +3 -3
  137. package/dist/client/{productList-BXbvXWTF.mjs → productList-Buyi5c0C.mjs} +3 -3
  138. package/dist/client/{propsDecoder-CIR5DQ1l.mjs → propsDecoder-BF7i6Ijg.mjs} +293 -65
  139. package/dist/client/rendering/client.mjs +1145 -1190
  140. package/dist/client/rendering/islands.mjs +18 -18
  141. package/dist/client/rendering.mjs +1257 -1298
  142. package/dist/client/{useDiscountCodeUi-Bcyh4508.mjs → scrollToBlock-D_7t8yWb.mjs} +18 -2
  143. package/dist/client/{shop-BbNwPKM-.mjs → shop-CF7SZQNX.mjs} +5 -6
  144. package/dist/client/{shop-commerce-XO-XMFEt.mjs → shop-commerce-DA7_Rq5p.mjs} +4 -4
  145. package/dist/client/{shop-commerce-store-Byh6OUGK.mjs → shop-commerce-store-BmLqW7Gh.mjs} +1 -1
  146. package/dist/client/{shopShared-Bbq39mwr.mjs → shopShared-WL-E1znM.mjs} +2 -2
  147. package/dist/client/{useEventFilters-C8OOJ3el.mjs → useEventFilters-rc8VLeLV.mjs} +2 -2
  148. package/dist/client/{usePolling-CyJVo9kF.mjs → usePolling-1ncrfd4S.mjs} +2 -2
  149. package/dist/preview-next/before-render.mjs +0 -7
  150. package/dist/preview-next/client/runtime.mjs +4 -4
  151. package/dist/preview-next/middleware.mjs +0 -7
  152. package/dist/{previewAuthStore-CJX21dGi.mjs → previewAuthStore-Dev9CdG9.mjs} +0 -7
  153. package/dist/{sdk-runtime-BGhyuE-E.mjs → sdk-runtime-BnrCCFJq.mjs} +2 -2
  154. package/dist/{separator-BFs-Kmv5.mjs → separator-CFvBx2yl.mjs} +1 -1
  155. package/dist/server/components.mjs +1389 -1489
  156. package/dist/server/config-validation.mjs +851 -976
  157. package/dist/server/config.mjs +851 -976
  158. package/dist/server/data.mjs +851 -976
  159. package/dist/server/index.mjs +1 -8
  160. package/dist/server/next.mjs +1393 -1500
  161. package/dist/server/page-converter.mjs +851 -976
  162. package/dist/server/prebuild.mjs +1 -1
  163. package/dist/server/rendering/server.mjs +1346 -1446
  164. package/dist/server/rendering.mjs +1390 -1490
  165. package/dist/server/routing.mjs +939 -1041
  166. package/dist/server/server.mjs +852 -984
  167. package/dist/server/theme-bridge.mjs +322 -279
  168. package/dist/server/theme.mjs +277 -33
  169. package/package.json +1 -1
  170. package/dist/_dts/editor-blocks/src/widgets/rich-text/ensureRichTextImageAssetIdentifier.d.ts +0 -8
  171. package/dist/_dts/theme-core/src/palette/editorState.d.ts +0 -75
  172. package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +0 -64
  173. package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +0 -81
  174. package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +0 -75
  175. package/dist/_dts/theme-core/src/palette/selection.d.ts +0 -74
  176. package/dist/_dts/theme-core/src/palette/sitePalettePersistence.d.ts +0 -34
  177. package/dist/client/scrollToBlock-C86BYkyV.mjs +0 -17
@@ -13038,6 +13038,7 @@ export type Database = {
13038
13038
  billing_address_json: Json | null;
13039
13039
  cancellation_category: Database["public"]["Enums"]["cancellation_context_category"] | null;
13040
13040
  cancellation_internal_note: string | null;
13041
+ checkout_evidence_pending_since: string | null;
13041
13042
  commit_claim_token: string | null;
13042
13043
  commit_claimed_at: string | null;
13043
13044
  commit_completed_at: string | null;
@@ -13078,6 +13079,7 @@ export type Database = {
13078
13079
  billing_address_json?: Json | null;
13079
13080
  cancellation_category?: Database["public"]["Enums"]["cancellation_context_category"] | null;
13080
13081
  cancellation_internal_note?: string | null;
13082
+ checkout_evidence_pending_since?: string | null;
13081
13083
  commit_claim_token?: string | null;
13082
13084
  commit_claimed_at?: string | null;
13083
13085
  commit_completed_at?: string | null;
@@ -13118,6 +13120,7 @@ export type Database = {
13118
13120
  billing_address_json?: Json | null;
13119
13121
  cancellation_category?: Database["public"]["Enums"]["cancellation_context_category"] | null;
13120
13122
  cancellation_internal_note?: string | null;
13123
+ checkout_evidence_pending_since?: string | null;
13121
13124
  commit_claim_token?: string | null;
13122
13125
  commit_claimed_at?: string | null;
13123
13126
  commit_completed_at?: string | null;
@@ -15695,53 +15698,6 @@ export type Database = {
15695
15698
  }
15696
15699
  ];
15697
15700
  };
15698
- site_palettes: {
15699
- Row: {
15700
- canonical_color_hash: string;
15701
- colors: Json;
15702
- created_at: string;
15703
- id: string;
15704
- mode: string;
15705
- origin_kind: string;
15706
- origin_reference: string | null;
15707
- site_id: string;
15708
- updated_at: string;
15709
- version: number;
15710
- };
15711
- Insert: {
15712
- canonical_color_hash: string;
15713
- colors: Json;
15714
- created_at?: string;
15715
- id?: string;
15716
- mode: string;
15717
- origin_kind: string;
15718
- origin_reference?: string | null;
15719
- site_id: string;
15720
- updated_at?: string;
15721
- version?: number;
15722
- };
15723
- Update: {
15724
- canonical_color_hash?: string;
15725
- colors?: Json;
15726
- created_at?: string;
15727
- id?: string;
15728
- mode?: string;
15729
- origin_kind?: string;
15730
- origin_reference?: string | null;
15731
- site_id?: string;
15732
- updated_at?: string;
15733
- version?: number;
15734
- };
15735
- Relationships: [
15736
- {
15737
- foreignKeyName: "site_palettes_site_id_fkey";
15738
- columns: ["site_id"];
15739
- isOneToOne: false;
15740
- referencedRelation: "sites";
15741
- referencedColumns: ["id"];
15742
- }
15743
- ];
15744
- };
15745
15701
  site_proposal_selections: {
15746
15702
  Row: {
15747
15703
  created_at: string;
@@ -16224,9 +16180,7 @@ export type Database = {
16224
16180
  };
16225
16181
  site_theme_selections: {
16226
16182
  Row: {
16227
- active_curated_palette_value_key: string | null;
16228
- active_site_palette_id: string | null;
16229
- button_personality_id: string | null;
16183
+ button_style_id: string | null;
16230
16184
  button_style_options: Json;
16231
16185
  created_at: string;
16232
16186
  footer_look_id: string | null;
@@ -16243,9 +16197,7 @@ export type Database = {
16243
16197
  user_id: string;
16244
16198
  };
16245
16199
  Insert: {
16246
- active_curated_palette_value_key?: string | null;
16247
- active_site_palette_id?: string | null;
16248
- button_personality_id?: string | null;
16200
+ button_style_id?: string | null;
16249
16201
  button_style_options?: Json;
16250
16202
  created_at?: string;
16251
16203
  footer_look_id?: string | null;
@@ -16262,9 +16214,7 @@ export type Database = {
16262
16214
  user_id: string;
16263
16215
  };
16264
16216
  Update: {
16265
- active_curated_palette_value_key?: string | null;
16266
- active_site_palette_id?: string | null;
16267
- button_personality_id?: string | null;
16217
+ button_style_id?: string | null;
16268
16218
  button_style_options?: Json;
16269
16219
  created_at?: string;
16270
16220
  footer_look_id?: string | null;
@@ -16281,13 +16231,6 @@ export type Database = {
16281
16231
  user_id?: string;
16282
16232
  };
16283
16233
  Relationships: [
16284
- {
16285
- foreignKeyName: "site_theme_selections_active_site_palette_fkey";
16286
- columns: ["active_site_palette_id", "site_id"];
16287
- isOneToOne: false;
16288
- referencedRelation: "site_palettes";
16289
- referencedColumns: ["id", "site_id"];
16290
- },
16291
16234
  {
16292
16235
  foreignKeyName: "site_theme_selections_site_id_fkey";
16293
16236
  columns: ["site_id"];
@@ -16503,6 +16446,14 @@ export type Database = {
16503
16446
  transactional_email_jobs: {
16504
16447
  Row: {
16505
16448
  attempt_count: number;
16449
+ completion_attempt_count: number;
16450
+ completion_completed_at: string | null;
16451
+ completion_last_error: string | null;
16452
+ completion_locked_at: string | null;
16453
+ completion_locked_by: string | null;
16454
+ completion_max_attempts: number;
16455
+ completion_run_after: string | null;
16456
+ completion_status: string;
16506
16457
  created_at: string;
16507
16458
  email_id: string | null;
16508
16459
  email_type: string;
@@ -16513,6 +16464,8 @@ export type Database = {
16513
16464
  locked_by: string | null;
16514
16465
  max_attempts: number;
16515
16466
  payload_json: Json;
16467
+ provider_ambiguity_started_at: string | null;
16468
+ provider_attempt_state: string;
16516
16469
  provider_message_id: string | null;
16517
16470
  run_after: string | null;
16518
16471
  sent_at: string | null;
@@ -16523,6 +16476,14 @@ export type Database = {
16523
16476
  };
16524
16477
  Insert: {
16525
16478
  attempt_count?: number;
16479
+ completion_attempt_count?: number;
16480
+ completion_completed_at?: string | null;
16481
+ completion_last_error?: string | null;
16482
+ completion_locked_at?: string | null;
16483
+ completion_locked_by?: string | null;
16484
+ completion_max_attempts?: number;
16485
+ completion_run_after?: string | null;
16486
+ completion_status?: string;
16526
16487
  created_at?: string;
16527
16488
  email_id?: string | null;
16528
16489
  email_type: string;
@@ -16533,6 +16494,8 @@ export type Database = {
16533
16494
  locked_by?: string | null;
16534
16495
  max_attempts?: number;
16535
16496
  payload_json?: Json;
16497
+ provider_ambiguity_started_at?: string | null;
16498
+ provider_attempt_state?: string;
16536
16499
  provider_message_id?: string | null;
16537
16500
  run_after?: string | null;
16538
16501
  sent_at?: string | null;
@@ -16543,6 +16506,14 @@ export type Database = {
16543
16506
  };
16544
16507
  Update: {
16545
16508
  attempt_count?: number;
16509
+ completion_attempt_count?: number;
16510
+ completion_completed_at?: string | null;
16511
+ completion_last_error?: string | null;
16512
+ completion_locked_at?: string | null;
16513
+ completion_locked_by?: string | null;
16514
+ completion_max_attempts?: number;
16515
+ completion_run_after?: string | null;
16516
+ completion_status?: string;
16546
16517
  created_at?: string;
16547
16518
  email_id?: string | null;
16548
16519
  email_type?: string;
@@ -16553,6 +16524,8 @@ export type Database = {
16553
16524
  locked_by?: string | null;
16554
16525
  max_attempts?: number;
16555
16526
  payload_json?: Json;
16527
+ provider_ambiguity_started_at?: string | null;
16528
+ provider_attempt_state?: string;
16556
16529
  provider_message_id?: string | null;
16557
16530
  run_after?: string | null;
16558
16531
  sent_at?: string | null;
@@ -18782,51 +18755,23 @@ export type Database = {
18782
18755
  updated_at: string;
18783
18756
  }[];
18784
18757
  };
18785
- apply_site_theme_command_authoritative_atomic: {
18758
+ apply_site_theme_command_atomic: {
18786
18759
  Args: {
18787
18760
  p_base_selection_version: number;
18788
- p_button_personality_id: string;
18789
- p_footer_look_id: string;
18790
- p_header_layout_id?: string;
18791
- p_header_look_id: string;
18792
- p_header_style_id?: string;
18793
- p_palette_command: Json;
18794
- p_selection_id?: string;
18795
- p_site_id: string;
18796
- p_theme: Json;
18797
- };
18798
- Returns: {
18799
- active_curated_palette_value_key: string;
18800
- active_site_palette_id: string;
18801
- outcome: string;
18802
- selection_id: string;
18803
- selection_updated_at: string;
18804
- site_palette_version: number;
18805
- style_selection_version: number;
18806
- theme_id: string;
18807
- }[];
18808
- };
18809
- apply_site_theme_command_authoritative_atomic_v2: {
18810
- Args: {
18811
- p_base_selection_version: number;
18812
- p_button_personality_id: string;
18761
+ p_button_style_id: string;
18813
18762
  p_button_style_options: Json;
18814
- p_footer_look_id: string;
18763
+ p_footer_look_id?: string;
18815
18764
  p_header_layout_id?: string;
18816
- p_header_look_id: string;
18765
+ p_header_look_id?: string;
18817
18766
  p_header_style_id?: string;
18818
- p_palette_command: Json;
18819
18767
  p_selection_id?: string;
18820
18768
  p_site_id: string;
18821
18769
  p_theme: Json;
18822
18770
  };
18823
18771
  Returns: {
18824
- active_curated_palette_value_key: string;
18825
- active_site_palette_id: string;
18826
18772
  outcome: string;
18827
18773
  selection_id: string;
18828
18774
  selection_updated_at: string;
18829
- site_palette_version: number;
18830
18775
  style_selection_version: number;
18831
18776
  theme_id: string;
18832
18777
  }[];
@@ -19206,6 +19151,21 @@ export type Database = {
19206
19151
  site_id: string;
19207
19152
  }[];
19208
19153
  };
19154
+ claim_dated_offering_waitlist_capacity_effects_v3_atomic: {
19155
+ Args: {
19156
+ p_claim_ttl?: unknown;
19157
+ p_limit?: number;
19158
+ p_now: string;
19159
+ };
19160
+ Returns: {
19161
+ claim_token: string;
19162
+ effect_id: string;
19163
+ event_series_id: string;
19164
+ reason: string;
19165
+ seats_delta: number;
19166
+ site_id: string;
19167
+ }[];
19168
+ };
19209
19169
  claim_due_appointment_payment_requests: {
19210
19170
  Args: {
19211
19171
  p_claim_ttl_seconds?: number;
@@ -20304,12 +20264,6 @@ export type Database = {
20304
20264
  };
20305
20265
  Returns: Json;
20306
20266
  };
20307
- is_complete_palette_colors: {
20308
- Args: {
20309
- p_colors: Json;
20310
- };
20311
- Returns: boolean;
20312
- };
20313
20267
  is_email_allowed: {
20314
20268
  Args: {
20315
20269
  p_email: string;
@@ -20863,46 +20817,21 @@ export type Database = {
20863
20817
  preparation_outcome: string;
20864
20818
  }[];
20865
20819
  };
20866
- provision_initial_site_theme_authoritative_atomic: {
20867
- Args: {
20868
- p_button_personality_id: string;
20869
- p_footer_look_id?: string;
20870
- p_header_layout_id?: string;
20871
- p_header_look_id?: string;
20872
- p_header_style_id?: string;
20873
- p_palette_command: Json;
20874
- p_site_id: string;
20875
- p_theme: Json;
20876
- p_user_id: string;
20877
- };
20878
- Returns: {
20879
- active_curated_palette_value_key: string;
20880
- active_site_palette_id: string;
20881
- outcome: string;
20882
- selection_id: string;
20883
- site_palette_version: number;
20884
- theme_id: string;
20885
- }[];
20886
- };
20887
- provision_initial_site_theme_authoritative_atomic_v2: {
20820
+ provision_initial_site_theme_atomic: {
20888
20821
  Args: {
20889
- p_button_personality_id: string;
20822
+ p_button_style_id: string;
20890
20823
  p_button_style_options: Json;
20891
20824
  p_footer_look_id?: string;
20892
20825
  p_header_layout_id?: string;
20893
20826
  p_header_look_id?: string;
20894
20827
  p_header_style_id?: string;
20895
- p_palette_command: Json;
20896
20828
  p_site_id: string;
20897
20829
  p_theme: Json;
20898
20830
  p_user_id: string;
20899
20831
  };
20900
20832
  Returns: {
20901
- active_curated_palette_value_key: string;
20902
- active_site_palette_id: string;
20903
20833
  outcome: string;
20904
20834
  selection_id: string;
20905
- site_palette_version: number;
20906
20835
  theme_id: string;
20907
20836
  }[];
20908
20837
  };
@@ -21286,6 +21215,26 @@ export type Database = {
21286
21215
  revocation_outcome: string;
21287
21216
  }[];
21288
21217
  };
21218
+ revoke_dated_offering_consumed_registration_v3_atomic: {
21219
+ Args: {
21220
+ p_enrollment_id: string;
21221
+ p_event_series_id: string;
21222
+ p_hold_id: string;
21223
+ p_intent: string;
21224
+ p_now: string;
21225
+ p_order_item_id?: string;
21226
+ p_refund_id?: string;
21227
+ p_refunded_amount_cents?: number;
21228
+ p_site_id: string;
21229
+ p_waitlist_effect?: string;
21230
+ };
21231
+ Returns: {
21232
+ audit_event_id: string;
21233
+ enrollment_id: string;
21234
+ hold_id: string;
21235
+ revocation_outcome: string;
21236
+ }[];
21237
+ };
21289
21238
  revoke_dated_offering_non_cash_registration_v1_atomic: {
21290
21239
  Args: {
21291
21240
  p_enrollment_id: string;
@@ -21315,6 +21264,20 @@ export type Database = {
21315
21264
  revocation_outcome: string;
21316
21265
  }[];
21317
21266
  };
21267
+ revoke_dated_offering_non_cash_registration_v3_atomic: {
21268
+ Args: {
21269
+ p_enrollment_id: string;
21270
+ p_event_series_id: string;
21271
+ p_now: string;
21272
+ p_order_item_id: string;
21273
+ p_site_id: string;
21274
+ p_waitlist_effect?: string;
21275
+ };
21276
+ Returns: {
21277
+ enrollment_id: string;
21278
+ revocation_outcome: string;
21279
+ }[];
21280
+ };
21318
21281
  revoke_historical_whole_series_registration_v1_atomic: {
21319
21282
  Args: {
21320
21283
  p_enrollment_id: string;
@@ -21341,44 +21304,15 @@ export type Database = {
21341
21304
  outcome: string;
21342
21305
  }[];
21343
21306
  };
21344
- save_current_theme_aggregate_authoritative_atomic: {
21307
+ save_current_theme_aggregate_atomic: {
21345
21308
  Args: {
21346
- p_button_personality_id: string;
21347
- p_expected_selection_version: number;
21348
- p_footer_look_id: string;
21349
- p_header_layout_id?: string;
21350
- p_header_look_id: string;
21351
- p_header_style_id?: string;
21352
- p_palette_command: Json;
21353
- p_selection_id?: string;
21354
- p_selection_overrides: Json;
21355
- p_selection_overrides_mode: string;
21356
- p_site_id: string;
21357
- p_theme: Json;
21358
- p_theme_id?: string;
21359
- p_user_id: string;
21360
- };
21361
- Returns: {
21362
- active_curated_palette_value_key: string;
21363
- active_site_palette_id: string;
21364
- outcome: string;
21365
- selection_id: string;
21366
- selection_updated_at: string;
21367
- site_palette_version: number;
21368
- style_selection_version: number;
21369
- theme_id: string;
21370
- }[];
21371
- };
21372
- save_current_theme_aggregate_authoritative_atomic_v2: {
21373
- Args: {
21374
- p_button_personality_id: string;
21309
+ p_button_style_id: string;
21375
21310
  p_button_style_options: Json;
21376
21311
  p_expected_selection_version: number;
21377
- p_footer_look_id: string;
21312
+ p_footer_look_id?: string;
21378
21313
  p_header_layout_id?: string;
21379
- p_header_look_id: string;
21314
+ p_header_look_id?: string;
21380
21315
  p_header_style_id?: string;
21381
- p_palette_command: Json;
21382
21316
  p_selection_id?: string;
21383
21317
  p_selection_overrides: Json;
21384
21318
  p_selection_overrides_mode: string;
@@ -21388,12 +21322,9 @@ export type Database = {
21388
21322
  p_user_id: string;
21389
21323
  };
21390
21324
  Returns: {
21391
- active_curated_palette_value_key: string;
21392
- active_site_palette_id: string;
21393
21325
  outcome: string;
21394
21326
  selection_id: string;
21395
21327
  selection_updated_at: string;
21396
- site_palette_version: number;
21397
21328
  style_selection_version: number;
21398
21329
  theme_id: string;
21399
21330
  }[];
@@ -21461,13 +21392,6 @@ export type Database = {
21461
21392
  };
21462
21393
  Returns: boolean;
21463
21394
  };
21464
- site_palette_canonical_hash: {
21465
- Args: {
21466
- p_colors: Json;
21467
- p_mode: string;
21468
- };
21469
- Returns: string;
21470
- };
21471
21395
  staff_member_has_customer_record_relationship: {
21472
21396
  Args: {
21473
21397
  p_customer_id: string;
@@ -21505,6 +21429,135 @@ export type Database = {
21505
21429
  };
21506
21430
  Returns: string;
21507
21431
  };
21432
+ transactional_email_claim_completion_effect: {
21433
+ Args: {
21434
+ p_job_id: string;
21435
+ p_lock_timeout_seconds?: number;
21436
+ p_worker_id: string;
21437
+ };
21438
+ Returns: {
21439
+ attempt_count: number;
21440
+ completion_attempt_count: number;
21441
+ completion_completed_at: string | null;
21442
+ completion_last_error: string | null;
21443
+ completion_locked_at: string | null;
21444
+ completion_locked_by: string | null;
21445
+ completion_max_attempts: number;
21446
+ completion_run_after: string | null;
21447
+ completion_status: string;
21448
+ created_at: string;
21449
+ email_id: string | null;
21450
+ email_type: string;
21451
+ id: string;
21452
+ idempotency_key: string;
21453
+ last_error: string | null;
21454
+ locked_at: string | null;
21455
+ locked_by: string | null;
21456
+ max_attempts: number;
21457
+ payload_json: Json;
21458
+ provider_ambiguity_started_at: string | null;
21459
+ provider_attempt_state: string;
21460
+ provider_message_id: string | null;
21461
+ run_after: string | null;
21462
+ sent_at: string | null;
21463
+ site_id: string | null;
21464
+ status: string;
21465
+ updated_at: string;
21466
+ user_id: string | null;
21467
+ }[];
21468
+ SetofOptions: {
21469
+ from: "*";
21470
+ to: "transactional_email_jobs";
21471
+ isOneToOne: false;
21472
+ isSetofReturn: true;
21473
+ };
21474
+ };
21475
+ transactional_email_claim_completion_effects: {
21476
+ Args: {
21477
+ p_limit: number;
21478
+ p_lock_timeout_seconds?: number;
21479
+ p_worker_id: string;
21480
+ };
21481
+ Returns: {
21482
+ attempt_count: number;
21483
+ completion_attempt_count: number;
21484
+ completion_completed_at: string | null;
21485
+ completion_last_error: string | null;
21486
+ completion_locked_at: string | null;
21487
+ completion_locked_by: string | null;
21488
+ completion_max_attempts: number;
21489
+ completion_run_after: string | null;
21490
+ completion_status: string;
21491
+ created_at: string;
21492
+ email_id: string | null;
21493
+ email_type: string;
21494
+ id: string;
21495
+ idempotency_key: string;
21496
+ last_error: string | null;
21497
+ locked_at: string | null;
21498
+ locked_by: string | null;
21499
+ max_attempts: number;
21500
+ payload_json: Json;
21501
+ provider_ambiguity_started_at: string | null;
21502
+ provider_attempt_state: string;
21503
+ provider_message_id: string | null;
21504
+ run_after: string | null;
21505
+ sent_at: string | null;
21506
+ site_id: string | null;
21507
+ status: string;
21508
+ updated_at: string;
21509
+ user_id: string | null;
21510
+ }[];
21511
+ SetofOptions: {
21512
+ from: "*";
21513
+ to: "transactional_email_jobs";
21514
+ isOneToOne: false;
21515
+ isSetofReturn: true;
21516
+ };
21517
+ };
21518
+ transactional_email_claim_job: {
21519
+ Args: {
21520
+ p_job_id: string;
21521
+ p_lock_timeout_seconds?: number;
21522
+ p_worker_id: string;
21523
+ };
21524
+ Returns: {
21525
+ attempt_count: number;
21526
+ completion_attempt_count: number;
21527
+ completion_completed_at: string | null;
21528
+ completion_last_error: string | null;
21529
+ completion_locked_at: string | null;
21530
+ completion_locked_by: string | null;
21531
+ completion_max_attempts: number;
21532
+ completion_run_after: string | null;
21533
+ completion_status: string;
21534
+ created_at: string;
21535
+ email_id: string | null;
21536
+ email_type: string;
21537
+ id: string;
21538
+ idempotency_key: string;
21539
+ last_error: string | null;
21540
+ locked_at: string | null;
21541
+ locked_by: string | null;
21542
+ max_attempts: number;
21543
+ payload_json: Json;
21544
+ provider_ambiguity_started_at: string | null;
21545
+ provider_attempt_state: string;
21546
+ provider_message_id: string | null;
21547
+ run_after: string | null;
21548
+ sent_at: string | null;
21549
+ site_id: string | null;
21550
+ status: string;
21551
+ updated_at: string;
21552
+ user_id: string | null;
21553
+ }[];
21554
+ SetofOptions: {
21555
+ from: "*";
21556
+ to: "transactional_email_jobs";
21557
+ isOneToOne: false;
21558
+ isSetofReturn: true;
21559
+ };
21560
+ };
21508
21561
  transactional_email_claim_jobs: {
21509
21562
  Args: {
21510
21563
  p_limit: number;
@@ -21513,6 +21566,14 @@ export type Database = {
21513
21566
  };
21514
21567
  Returns: {
21515
21568
  attempt_count: number;
21569
+ completion_attempt_count: number;
21570
+ completion_completed_at: string | null;
21571
+ completion_last_error: string | null;
21572
+ completion_locked_at: string | null;
21573
+ completion_locked_by: string | null;
21574
+ completion_max_attempts: number;
21575
+ completion_run_after: string | null;
21576
+ completion_status: string;
21516
21577
  created_at: string;
21517
21578
  email_id: string | null;
21518
21579
  email_type: string;
@@ -21523,6 +21584,8 @@ export type Database = {
21523
21584
  locked_by: string | null;
21524
21585
  max_attempts: number;
21525
21586
  payload_json: Json;
21587
+ provider_ambiguity_started_at: string | null;
21588
+ provider_attempt_state: string;
21526
21589
  provider_message_id: string | null;
21527
21590
  run_after: string | null;
21528
21591
  sent_at: string | null;
@@ -21813,6 +21876,43 @@ export type Database = {
21813
21876
  pricing_option_id: string;
21814
21877
  }[];
21815
21878
  };
21879
+ waitlist_allocate_event_occurrence_holds_v1: {
21880
+ Args: {
21881
+ p_attendance_mode: string;
21882
+ p_event_occurrence_id: string;
21883
+ p_hold_payloads?: Json;
21884
+ p_site_id: string;
21885
+ };
21886
+ Returns: {
21887
+ attendance_mode: string | null;
21888
+ cancelled_at: string | null;
21889
+ consumed_at: string | null;
21890
+ course_id: string | null;
21891
+ created_at: string;
21892
+ email_delivery_status: string;
21893
+ event_occurrence_id: string | null;
21894
+ event_series_id: string | null;
21895
+ expired_at: string | null;
21896
+ expires_at: string;
21897
+ id: string;
21898
+ last_emailed_at: string | null;
21899
+ metadata: Json;
21900
+ reserved_at: string;
21901
+ site_id: string;
21902
+ status: string;
21903
+ subject_kind: string;
21904
+ token_public_id: string;
21905
+ token_secret_hash: string;
21906
+ updated_at: string;
21907
+ waitlist_entry_id: string;
21908
+ }[];
21909
+ SetofOptions: {
21910
+ from: "*";
21911
+ to: "waitlist_holds";
21912
+ isOneToOne: false;
21913
+ isSetofReturn: true;
21914
+ };
21915
+ };
21816
21916
  waitlist_allocate_holds: {
21817
21917
  Args: {
21818
21918
  p_attendance_mode?: string;
@@ -21935,6 +22035,21 @@ export type Database = {
21935
22035
  consumed: boolean;
21936
22036
  }[];
21937
22037
  };
22038
+ waitlist_event_occurrence_capacity_snapshot_v1: {
22039
+ Args: {
22040
+ p_attendance_mode: string;
22041
+ p_event_occurrence_id: string;
22042
+ p_now?: string;
22043
+ p_site_id: string;
22044
+ };
22045
+ Returns: {
22046
+ active_hold_seats: number;
22047
+ available_seats: number;
22048
+ capacity: number;
22049
+ is_unbounded: boolean;
22050
+ occupied_seats: number;
22051
+ }[];
22052
+ };
21938
22053
  waitlist_expire_due_holds: {
21939
22054
  Args: {
21940
22055
  p_hold_id?: string;
@@ -22009,6 +22124,42 @@ export type Database = {
22009
22124
  hold_waitlist_entry_id: string;
22010
22125
  }[];
22011
22126
  };
22127
+ waitlist_expire_due_holds_v3: {
22128
+ Args: {
22129
+ p_hold_id?: string;
22130
+ p_limit?: number;
22131
+ p_now?: string;
22132
+ };
22133
+ Returns: {
22134
+ entry_attendance_mode: string;
22135
+ entry_customer_email: string;
22136
+ entry_customer_id: string;
22137
+ entry_customer_name: string;
22138
+ entry_customer_phone: string;
22139
+ entry_event_occurrence_id: string;
22140
+ entry_event_series_id: string;
22141
+ entry_form_snapshot: Json;
22142
+ entry_id: string;
22143
+ entry_joined_at: string;
22144
+ entry_metadata: Json;
22145
+ entry_site_id: string;
22146
+ entry_source: string;
22147
+ entry_status: string;
22148
+ entry_subject_kind: string;
22149
+ hold_attendance_mode: string;
22150
+ hold_email_delivery_status: string;
22151
+ hold_event_occurrence_id: string;
22152
+ hold_event_series_id: string;
22153
+ hold_expires_at: string;
22154
+ hold_id: string;
22155
+ hold_site_id: string;
22156
+ hold_status: string;
22157
+ hold_subject_kind: string;
22158
+ hold_token_public_id: string;
22159
+ hold_token_secret_hash: string;
22160
+ hold_waitlist_entry_id: string;
22161
+ }[];
22162
+ };
22012
22163
  waitlist_subject_capacity_snapshot: {
22013
22164
  Args: {
22014
22165
  p_attendance_mode?: string;