@riverbankcms/sdk 0.136.0 → 0.138.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +109 -0
- package/README.md +7 -4
- package/dist/{PreviewEditorSidebar-BU5ZlhQR.mjs → PreviewEditorSidebar-BVPur_CU.mjs} +12 -18
- package/dist/{PreviewEditorUI-9XkHL-bC.mjs → PreviewEditorUI-DLhWX8oh.mjs} +3 -3
- package/dist/{PreviewQueryProvider-wbEpXryy.mjs → PreviewQueryProvider-BguJY1SW.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-CnWmj-2B.mjs → SdkPreviewModeRuntime-Tda6qw4z.mjs} +1375 -495
- package/dist/{SiteChromeCustomizeContext-B6d5zkog.mjs → SiteChromeCustomizeContext-BHFgMjde.mjs} +35665 -33602
- package/dist/_dts/ai/src/contracts/proposals.d.ts +7226 -3057
- package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +1223 -811
- package/dist/_dts/ai/src/designer/themePatch.d.ts +5 -10
- package/dist/_dts/api/src/accessAdmin.d.ts +16 -18
- package/dist/_dts/api/src/accountApi.d.ts +49 -2
- package/dist/_dts/api/src/appointmentServiceContracts.d.ts +83 -0
- package/dist/_dts/api/src/appointmentServiceLocation.d.ts +12 -0
- package/dist/_dts/api/src/appointmentServiceVisibility.d.ts +14 -0
- package/dist/_dts/api/src/appointmentSetup.d.ts +8 -0
- package/dist/_dts/api/src/bookingConfig.d.ts +35 -87
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +1 -1
- package/dist/_dts/api/src/bookingOperations.d.ts +2 -69
- package/dist/_dts/api/src/bookingRecords.d.ts +2 -2
- package/dist/_dts/api/src/bookingRefundOutcomes.d.ts +2 -2
- package/dist/_dts/api/src/bookingServicePricing.d.ts +47 -0
- package/dist/_dts/api/src/bookings.d.ts +2 -2
- package/dist/_dts/api/src/cache-tags.d.ts +7 -2
- package/dist/_dts/api/src/common/index.d.ts +1 -0
- package/dist/_dts/api/src/common/zodFieldErrors.d.ts +34 -0
- package/dist/_dts/api/src/communications.d.ts +14 -8
- package/dist/_dts/api/src/contentRuntime.d.ts +3 -6
- package/dist/_dts/api/src/domainConnection.d.ts +41 -0
- package/dist/_dts/api/src/endpoints.d.ts +1636 -1637
- package/dist/_dts/api/src/eventAttendanceLabels.d.ts +2 -2
- package/dist/_dts/api/src/eventManagementContracts.d.ts +10 -14
- package/dist/_dts/api/src/index.d.ts +11 -9
- package/dist/_dts/api/src/indexCoreTypes.d.ts +1 -1
- package/dist/_dts/api/src/indexExtendedTypes.d.ts +1 -1
- package/dist/_dts/api/src/media.d.ts +19 -2
- package/dist/_dts/api/src/occurrenceScheduling.d.ts +1 -1
- package/dist/_dts/api/src/participantMessaging.d.ts +3 -3
- package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/publicBookingAvailabilityEndpointDefinitions.d.ts +62 -0
- package/dist/_dts/api/src/publicBookingService.d.ts +109 -2
- package/dist/_dts/api/src/publicEventCheckoutEndpointDefinitions.d.ts +27 -0
- package/dist/_dts/api/src/publicEventEndpointDefinitions.d.ts +7 -0
- package/dist/_dts/api/src/publicExperience/commerceEndpoints.d.ts +2 -1
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +30 -148
- package/dist/_dts/api/src/publicExperience/sharedTypes.d.ts +8 -26
- package/dist/_dts/api/src/publicExperience/siteEndpoints.d.ts +5 -13
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +2 -3
- package/dist/_dts/api/src/schemas/admin-allowed-domains.d.ts +76 -0
- package/dist/_dts/api/src/schemas/admin-observability-logs.d.ts +61 -0
- package/dist/_dts/api/src/schemas/admin-users.d.ts +80 -0
- package/dist/_dts/api/src/schemas/newsletter-memberships.d.ts +98 -0
- package/dist/_dts/api/src/schemas/sdk-entries.d.ts +128 -0
- package/dist/_dts/api/src/schemas/site-api-keys.d.ts +112 -0
- package/dist/_dts/api/src/schemas/support.d.ts +35 -0
- package/dist/_dts/api/src/sdk-event-booking-offer.d.ts +14 -0
- package/dist/_dts/api/src/sdk-event-payment-terms.d.ts +4 -16
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +11 -21
- package/dist/_dts/api/src/sdkContracts.d.ts +8 -23
- package/dist/_dts/api/src/sdkManagedEventContracts.d.ts +37 -0
- package/dist/_dts/api/src/sdkMediaContracts.d.ts +40 -0
- package/dist/_dts/api/src/sdkMediaEndpointDefinitions.d.ts +66 -0
- package/dist/_dts/api/src/sdkThemeWire.d.ts +157 -146
- package/dist/_dts/api/src/siteInfrastructure.d.ts +37 -37
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +35 -54
- package/dist/_dts/api/src/siteOnboarding.d.ts +3 -3
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +38 -16
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +37 -17
- package/dist/_dts/api/src/types.d.ts +2 -2
- package/dist/_dts/api/src/{wholeSeriesOfferings.d.ts → wholeSeriesRuns.d.ts} +11 -67
- package/dist/_dts/block-form/src/FormRenderer.d.ts +3 -1
- package/dist/_dts/block-form/src/backend/store-backend.d.ts +2 -1
- package/dist/_dts/block-form/src/backend/types.d.ts +2 -0
- package/dist/_dts/block-form/src/context/FormFocusContext.d.ts +7 -0
- package/dist/_dts/block-form/src/index.d.ts +2 -0
- package/dist/_dts/block-form/src/manifest/ManifestForm.d.ts +2 -1
- package/dist/_dts/block-form/src/utils/promotedFieldBackend.d.ts +8 -0
- package/dist/_dts/block-form/src/utils/promotedFieldPlan.d.ts +18 -0
- package/dist/_dts/block-form/src/utils/resolvePromotedFields.d.ts +8 -1
- package/dist/_dts/blocks/src/BlockErrorBoundary.d.ts +46 -0
- package/dist/_dts/blocks/src/PageRenderer.d.ts +2 -141
- package/dist/_dts/blocks/src/contracts/index.d.ts +2 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +12 -6
- package/dist/_dts/blocks/src/index.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRenderAudience.d.ts +54 -0
- package/dist/_dts/blocks/src/pageRenderDiagnostics.d.ts +26 -0
- package/dist/_dts/blocks/src/pageRenderPlan.d.ts +116 -0
- package/dist/_dts/blocks/src/pageRenderPreparation.d.ts +109 -0
- package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +1 -0
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +154 -0
- package/dist/_dts/blocks/src/portal/types.d.ts +1 -1
- package/dist/_dts/blocks/src/server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/event-registration.d.ts +12 -20
- package/dist/_dts/blocks/src/system/blocks/events/event-calendar.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/events/eventCalendarDataLoaders.d.ts +3 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/calendarWindow.d.ts +95 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/runGrouping.d.ts +37 -0
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +1046 -773
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +59 -46
- package/dist/_dts/blocks/src/system/blocks/location-map.d.ts +3 -3
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +161 -161
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/model.d.ts +13 -6
- package/dist/_dts/blocks/src/system/blocks/offerings-preview/scheduleSummary.d.ts +10 -4
- package/dist/_dts/blocks/src/system/constants/buttonRoles.d.ts +2 -2
- package/dist/_dts/blocks/src/system/constants/events.d.ts +4 -0
- package/dist/_dts/blocks/src/system/customize/facets.d.ts +4 -4
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/data/publicLoaderCachePolicy.d.ts +5 -9
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +83 -83
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +12 -3
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +8 -8
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +12 -20
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +32 -37
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +15 -18
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +11 -8
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +38 -22
- package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +7 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-details/logic.d.ts +16 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ErrorStep.d.ts +3 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +4 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +5 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/eventScope.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/hooks.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +15 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationDerivations.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorPresentation.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +25 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.d.ts +14 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationSurface.d.ts +3 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationWizardContext.d.ts +4 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/siteCreditPreview.d.ts +0 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/ticketSelectionLines.d.ts +14 -16
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +13 -15
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +7 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +9 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +25 -23
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useWaitlistClaimRestoration.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/utils.d.ts +11 -4
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -13
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +11 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/capacity.d.ts +164 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/cta.d.ts +29 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/dates.d.ts +47 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/index.d.ts +14 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/people.d.ts +6 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/domain/pricing.d.ts +24 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/OfferingTitle.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekAgendaView.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/WeekBoardView.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +1080 -560
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/index.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/listingLayout.d.ts +23 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/offerings-preview.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +7 -7
- package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +11 -0
- package/dist/_dts/commerce/src/moneyReport.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/checkoutErrorCodes.d.ts +1 -1
- package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +57 -0
- package/dist/_dts/commerce/src/purchase/eventOrderOptionSnapshot.d.ts +3 -0
- package/dist/_dts/commerce/src/purchase/index.d.ts +1 -0
- package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +6 -3
- package/dist/_dts/commerce/src/purchase/types.d.ts +3 -2
- package/dist/_dts/commerce/src/waitlists.d.ts +1 -1
- package/dist/_dts/content-editor/src/controller/EntryControllerProvider.d.ts +4 -0
- package/dist/_dts/content-editor/src/controller/useBlockedPublishPlan.d.ts +11 -0
- package/dist/_dts/content-editor/src/hooks/applyBlockedPublishPlan.d.ts +1 -1
- package/dist/_dts/content-editor/src/hooks/blockedPublishPlan.d.ts +13 -5
- package/dist/_dts/content-editor/src/hooks/useEntryActions.d.ts +5 -1
- package/dist/_dts/content-editor/src/hooks/validateBlocksForPublish.d.ts +34 -2
- package/dist/_dts/content-editor/src/index.d.ts +2 -1
- package/dist/_dts/content-editor/src/ui/blockValidationManifestRegistry.d.ts +2 -0
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +4 -2
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +27 -5
- package/dist/_dts/content-model/src/content-types/schema.d.ts +3 -3
- package/dist/_dts/content-model/src/templates/defaults.d.ts +11 -0
- package/dist/_dts/core/src/branded.d.ts +28 -9
- package/dist/_dts/core/src/event-booking-offer-parser.d.ts +82 -0
- package/dist/_dts/core/src/event-booking-offer.d.ts +89 -0
- package/dist/_dts/core/src/event-page-surface-subject.d.ts +81 -4
- package/dist/_dts/core/src/event-pricing.d.ts +81 -89
- package/dist/_dts/core/src/index.d.ts +3 -0
- package/dist/_dts/core/src/non-empty-array.d.ts +3 -0
- package/dist/_dts/core/src/whole-series-run-schedule.d.ts +92 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +495 -279
- package/dist/_dts/db/src/index.d.ts +1 -0
- package/dist/_dts/db/src/utils/postgrestFilter.d.ts +2 -0
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +2 -6
- package/dist/_dts/editor-blocks/src/block-editor/BlockCard.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/block-editor/BlockCardHeader.d.ts +2 -2
- package/dist/_dts/editor-blocks/src/block-editor/BlockSettingsModal.d.ts +4 -2
- package/dist/_dts/editor-blocks/src/block-editor/hooks/useBlockValidationManifests.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/block-editor/types.d.ts +22 -7
- package/dist/_dts/editor-blocks/src/block-editor/useSettingsFieldFocus.d.ts +18 -0
- package/dist/_dts/media-core/src/bulkDeletePlanning.d.ts +4 -0
- package/dist/_dts/media-core/src/fileDomain.d.ts +3 -0
- package/dist/_dts/preview-next/src/client/blocks/previewBatchLoaderParams.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeBrandPreferences.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlHistoryState.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeQuickControlSaveRequest.d.ts +51 -0
- package/dist/_dts/preview-next/src/client/preview/siteChromeSavePlan.d.ts +24 -2
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +23 -1
- package/dist/_dts/preview-next/src/client/preview/usePersistedHeaderPreferences.d.ts +8 -0
- package/dist/_dts/sdk/src/client/{eventSubrouteReadOperations.d.ts → publicEventReadOperations.d.ts} +4 -3
- package/dist/_dts/sdk/src/client/types.d.ts +6 -10
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +3 -3
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +5 -0
- package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +2 -3
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +8 -8
- package/dist/_dts/sdk/src/next/tags.d.ts +5 -8
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +2 -26
- package/dist/_dts/sdk/src/rendering/helpers/footerPageOutline.d.ts +9 -1
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +6 -53
- package/dist/_dts/sdk/src/rendering/server.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +5 -5
- package/dist/_dts/theme-core/src/buttons/styles/recipes/flatInk.d.ts +25 -25
- package/dist/_dts/theme-core/src/buttons/styles/registry.d.ts +25 -25
- package/dist/_dts/theme-core/src/buttons/styles/selection.d.ts +7 -7
- package/dist/_dts/theme-core/src/buttons/types.d.ts +22 -22
- package/dist/_dts/theme-core/src/cards/types.d.ts +49 -49
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/gradients/types.d.ts +5 -0
- package/dist/_dts/theme-core/src/header/interactionPalette.d.ts +26 -3
- package/dist/_dts/theme-core/src/inputs/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +195 -195
- package/dist/_dts/theme-core/src/navigation/types.d.ts +3 -3
- package/dist/_dts/theme-core/src/palette/colors.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/curated/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/schema.d.ts +258 -257
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/cardRoleVocabulary.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/compilationPlan.d.ts +43 -3
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +10 -0
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/headerBrandPresentation.d.ts +63 -0
- package/dist/_dts/theme-core/src/site-styles/headerBytesComparison.d.ts +30 -0
- package/dist/_dts/theme-core/src/site-styles/headerInteractionPalette.d.ts +50 -1
- package/dist/_dts/theme-core/src/site-styles/headerLayoutCatalog.d.ts +48 -9
- package/dist/_dts/theme-core/src/site-styles/headerPreferences.d.ts +162 -0
- package/dist/_dts/theme-core/src/site-styles/headerPreferencesPersistence.d.ts +73 -0
- package/dist/_dts/theme-core/src/site-styles/headerRecompile.d.ts +118 -0
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +10 -1
- package/dist/_dts/theme-core/src/site-styles/headerStyleDefaults.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/headerStyleRecipe.d.ts +7 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +5 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/siteChromeBackgrounds.d.ts +20 -1
- package/dist/_dts/theme-core/src/site-styles/siteChromeNavPreferences.d.ts +43 -2
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +3 -3
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +2 -2
- package/dist/client/{BookingConsentAgreement-DCch21a6.mjs → BookingConsentAgreement-DQUik1Mx.mjs} +2 -2
- package/dist/client/{DiscountCodeDisclosure-DIj1T59K.mjs → DiscountCodeDisclosure-CU67Q4vH.mjs} +1 -1
- package/dist/client/{EventCombined.client-BWVNlXTx.mjs → EventCombined.client-a02TXUgg.mjs} +233 -348
- package/dist/client/{EventListing.client-DVFCDe3i.mjs → EventListing.client-99qx7jFl.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-BY5mIHw9.mjs → LeafletStaticMap-CWzcq73L.mjs} +1 -1
- package/dist/client/{accordion-CK29E8rG.mjs → accordion-D1nb3-Oj.mjs} +1 -1
- package/dist/client/{bookingForm-DFvnet-N.mjs → bookingForm-BGrmLhaO.mjs} +5 -5
- package/dist/client/bookings.mjs +10555 -10475
- package/dist/client/{carousel-BVU5NQlb.mjs → carousel-DSmOx3ad.mjs} +1 -1
- package/dist/client/{cart-BNItcZVa.mjs → cart-COWeOIUk.mjs} +3 -3
- package/dist/client/{checkout-Bu6iCdkP.mjs → checkout-CeysaIJK.mjs} +3 -3
- package/dist/client/client.mjs +58968 -57441
- package/dist/client/{context-BImarOAq.mjs → context-DBzX85Xc.mjs} +46 -18
- package/dist/client/dates-DCYhZBlW.mjs +264 -0
- package/dist/client/{eventCalendar-DS2h-UXD.mjs → eventCalendar-BgsN73Ul.mjs} +21 -44
- package/dist/client/{eventCombined-Drt4Oq9p.mjs → eventCombined-DcZQAMQP.mjs} +3 -3
- package/dist/client/{eventDetails-Bl2vWgTX.mjs → eventDetails-BWwGJ54l.mjs} +131 -51
- package/dist/client/{eventListing-CS7PHY7v.mjs → eventListing-DqYqV8vp.mjs} +3 -3
- package/dist/client/{eventRegistration-D-j8eNy2.mjs → eventRegistration-DQGDgu_e.mjs} +1122 -803
- package/dist/client/{form-RMpoLTyr.mjs → form-ClfpasVT.mjs} +2 -2
- package/dist/client/{headerSection-BYE3Lb3k.mjs → headerSection-BuOMe98N.mjs} +2 -2
- package/dist/client/hooks.mjs +9630 -9526
- package/dist/client/{locationMap-BxSr7Kkh.mjs → locationMap-CEqu_sfa.mjs} +2 -2
- package/dist/client/{newsletterForm-DerbXwFC.mjs → newsletterForm-IbrHjMxy.mjs} +2 -2
- package/dist/client/pricing-xj7MPZlK.mjs +314 -0
- package/dist/client/{productDetail-4SZCLhAf.mjs → productDetail-vxqTt5Xj.mjs} +3 -3
- package/dist/client/{productList-D7AP4GNq.mjs → productList-OTdZu8sb.mjs} +3 -3
- package/dist/client/{propsDecoder-pzBeCh14.mjs → propsDecoder-CY9gGEF7.mjs} +786 -1194
- package/dist/client/rendering/client.mjs +11481 -10469
- package/dist/client/rendering/islands.mjs +17 -17
- package/dist/client/rendering.mjs +26871 -25232
- package/dist/client/{scrollToBlock-CduAKf8T.mjs → scrollToBlock--BFV6kl-.mjs} +1 -1
- package/dist/client/{shop-Cp5p_kGe.mjs → shop-CP4YbDL9.mjs} +6 -6
- package/dist/client/{shop-commerce-DicXYaYX.mjs → shop-commerce-APs4XBXE.mjs} +5 -5
- package/dist/client/{shop-commerce-store-CGWnpY4K.mjs → shop-commerce-store-CAVLxLFr.mjs} +1 -1
- package/dist/client/{shopShared-BDf9ljkm.mjs → shopShared-BnSRrwXI.mjs} +3 -3
- package/dist/client/{useEventFilters-DeeyGYuk.mjs → useEventFilters-1a1by4c8.mjs} +33 -18
- package/dist/preview-next/before-render.mjs +186 -148
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/keepAlive.mjs +186 -148
- package/dist/preview-next/middleware.mjs +186 -148
- package/dist/{previewAuthStore-DbqBol0V.mjs → previewAuthStore-BkEgnYPP.mjs} +186 -148
- package/dist/{sdk-runtime-19MO27F0.mjs → sdk-runtime-DwGfsT0S.mjs} +2 -2
- package/dist/{separator-DaPLtJ1f.mjs → separator-BeqDLneQ.mjs} +1 -1
- package/dist/server/components.mjs +53243 -51879
- package/dist/server/config-validation.mjs +1015 -906
- package/dist/server/config.mjs +1019 -910
- package/dist/server/data.mjs +10304 -10200
- package/dist/server/index.mjs +217 -198
- package/dist/server/next/tags.mjs +18 -4
- package/dist/server/next.mjs +62787 -61617
- package/dist/server/page-converter.mjs +797 -917
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +52557 -51365
- package/dist/server/rendering.mjs +54373 -53054
- package/dist/server/routing.mjs +13274 -13142
- package/dist/server/server.mjs +1076 -1154
- package/dist/server/theme-bridge.mjs +69 -9
- package/dist/server/theme.mjs +27 -8
- package/dist/styles/index.css +32 -1
- package/package.json +1 -1
- package/dist/_dts/api/src/publicExperience/wholeSeriesEndpoints.d.ts +0 -65
- package/dist/_dts/api/src/publicWholeSeriesEndpointDefinitions.d.ts +0 -20
- package/dist/_dts/api/src/sdk-event-pricing.d.ts +0 -61
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/index.d.ts +0 -3
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/pricing.d.ts +0 -50
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/schemas.d.ts +0 -135
- package/dist/_dts/blocks/src/system/blocks/events/whole-series/types.d.ts +0 -87
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCapacity.d.ts +0 -48
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/pricing.d.ts +0 -17
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/utils.d.ts +0 -100
- package/dist/_dts/sdk/src/client/wholeSeriesReadOperations.d.ts +0 -11
- package/dist/_dts/sdk/src/public-api/wholeSeriesContracts.d.ts +0 -2
- /package/dist/_dts/blocks/src/system/runtime/nodes/events/{shared → domain}/destination.d.ts +0 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { RequestOutput } from './support';
|
|
3
|
+
/**
|
|
4
|
+
* Request schemas for the SDK entry read endpoints.
|
|
5
|
+
*
|
|
6
|
+
* This module is the single authority for what those endpoints accept. See
|
|
7
|
+
* `.project/plans/tier2-step5-schema-entrypoint/design.md` for why both sides of
|
|
8
|
+
* a schema are named rather than left to `z.infer`.
|
|
9
|
+
*
|
|
10
|
+
* Covered endpoints: `sdkListEntries`, `sdkPullEntries`, `sdkPullEntriesByType`,
|
|
11
|
+
* `sdkPullEntriesAll`.
|
|
12
|
+
*
|
|
13
|
+
* This is the second family to use the *defaulted* half of the modelled-input
|
|
14
|
+
* rule, after newsletter list memberships. Its pagination both coerces and
|
|
15
|
+
* defaults, so neither side of the schema is the caller's type: `z.input` is
|
|
16
|
+
* `unknown` (coercion accepts anything) and `z.output` makes `page`/`limit`
|
|
17
|
+
* required, which would force every caller to send values the endpoints
|
|
18
|
+
* deliberately fill in. So the client type is modelled below and checked against
|
|
19
|
+
* the schemas instead, exactly as `newsletter-memberships.ts` does.
|
|
20
|
+
*
|
|
21
|
+
* `sdkUpsertEntry` shares this route tree but is deliberately left inline: its
|
|
22
|
+
* body composes `createSdkEntrySlotBlocksInputSchema` from
|
|
23
|
+
* `@riverbankcms/content-model` with the dashboard's own `jsonObjectSchema`, so
|
|
24
|
+
* moving it is a dependency decision rather than a mechanical migration.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* `sdkPullEntries` and `sdkPullEntriesAll`.
|
|
28
|
+
*
|
|
29
|
+
* Both routes declared this same object; the site id is handed to the services
|
|
30
|
+
* as a raw string, so nothing is branded and `brandedUuidParam` is not used.
|
|
31
|
+
*/
|
|
32
|
+
export declare const sdkSiteScopeParamsSchema: z.ZodObject<{
|
|
33
|
+
siteId: z.ZodString;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type SdkSiteScopeParamsOutput = RequestOutput<typeof sdkSiteScopeParamsSchema>;
|
|
36
|
+
/** `sdkPullEntriesByType`. The content type arrives as the `{type}` path segment. */
|
|
37
|
+
export declare const sdkPullEntriesByTypeParamsSchema: z.ZodObject<{
|
|
38
|
+
siteId: z.ZodString;
|
|
39
|
+
type: z.ZodString;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type SdkPullEntriesByTypeParamsOutput = RequestOutput<typeof sdkPullEntriesByTypeParamsSchema>;
|
|
42
|
+
/**
|
|
43
|
+
* `sdkListEntries`. The same shape as the pull-by-type params under a different
|
|
44
|
+
* segment name (`{contentType}`), which is why the two are not shared.
|
|
45
|
+
*/
|
|
46
|
+
export declare const sdkListEntriesParamsSchema: z.ZodObject<{
|
|
47
|
+
siteId: z.ZodString;
|
|
48
|
+
contentType: z.ZodString;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export type SdkListEntriesParamsOutput = RequestOutput<typeof sdkListEntriesParamsSchema>;
|
|
51
|
+
/**
|
|
52
|
+
* The client-facing pagination contract shared by all three listing endpoints —
|
|
53
|
+
* **modelled, not derived**, for the reasons in this module's header and the
|
|
54
|
+
* design doc's "Which side each consumer gets".
|
|
55
|
+
*
|
|
56
|
+
* One model backs three endpoints because the accepted shape is identical; only
|
|
57
|
+
* the *default* differs (`sdkListEntries` pages at 20, the two pull endpoints at
|
|
58
|
+
* 100), and a default is a runtime fact that never reaches the wire type. The
|
|
59
|
+
* per-endpoint schemas below are the authority for those numbers.
|
|
60
|
+
*/
|
|
61
|
+
export type SdkEntryPaginationQueryInput = {
|
|
62
|
+
page?: number;
|
|
63
|
+
limit?: number;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* `sdkPullEntries`.
|
|
67
|
+
*
|
|
68
|
+
* The route parses the search params merged with its already-parsed path params
|
|
69
|
+
* (`includeParamsInInput` defaults to true), which is why `siteId` is repeated
|
|
70
|
+
* in the query schemas here: the schema sees it, and the endpoint's client
|
|
71
|
+
* contract carries it alongside the pagination fields.
|
|
72
|
+
*/
|
|
73
|
+
export declare const sdkPullEntriesQuerySchema: z.ZodObject<{
|
|
74
|
+
siteId: z.ZodString;
|
|
75
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
76
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
/** What the route receives: pagination is always resolved to a number. */
|
|
79
|
+
export type SdkPullEntriesQueryOutput = RequestOutput<typeof sdkPullEntriesQuerySchema>;
|
|
80
|
+
/**
|
|
81
|
+
* What the client machinery actually puts on the URL for `sdkPullEntries`.
|
|
82
|
+
*
|
|
83
|
+
* There is no hand-rolled encoder for any of these endpoints the way `admin.ts`
|
|
84
|
+
* has one for `adminDeleteUser`; the encoding is `apiCallParams`' generic
|
|
85
|
+
* `PathParams & QueryToStringParams`, driven by the published contract. So this
|
|
86
|
+
* is the shape a caller of `apiCall({ endpoint: 'sdkPullEntries' })` must
|
|
87
|
+
* supply, the typetest pins it against that machinery, and a golden test parses
|
|
88
|
+
* exactly this shape. Together they are the link a derivation would otherwise
|
|
89
|
+
* have made: contract → encoded params → accepted by the schema.
|
|
90
|
+
*/
|
|
91
|
+
export type SdkPullEntriesQueryWire = {
|
|
92
|
+
siteId: string;
|
|
93
|
+
page?: string;
|
|
94
|
+
limit?: string;
|
|
95
|
+
};
|
|
96
|
+
/** `sdkPullEntriesByType`. Same pagination, plus the `{type}` path segment. */
|
|
97
|
+
export declare const sdkPullEntriesByTypeQuerySchema: z.ZodObject<{
|
|
98
|
+
siteId: z.ZodString;
|
|
99
|
+
type: z.ZodString;
|
|
100
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
101
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export type SdkPullEntriesByTypeQueryOutput = RequestOutput<typeof sdkPullEntriesByTypeQuerySchema>;
|
|
104
|
+
export type SdkPullEntriesByTypeQueryWire = {
|
|
105
|
+
siteId: string;
|
|
106
|
+
type: string;
|
|
107
|
+
page?: string;
|
|
108
|
+
limit?: string;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* `sdkListEntries`.
|
|
112
|
+
*
|
|
113
|
+
* The management listing endpoint rather than a pull, so its page size defaults
|
|
114
|
+
* to 20 instead of 100. The cap is the same 100.
|
|
115
|
+
*/
|
|
116
|
+
export declare const sdkListEntriesQuerySchema: z.ZodObject<{
|
|
117
|
+
siteId: z.ZodString;
|
|
118
|
+
contentType: z.ZodString;
|
|
119
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
120
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
export type SdkListEntriesQueryOutput = RequestOutput<typeof sdkListEntriesQuerySchema>;
|
|
123
|
+
export type SdkListEntriesQueryWire = {
|
|
124
|
+
siteId: string;
|
|
125
|
+
contentType: string;
|
|
126
|
+
page?: string;
|
|
127
|
+
limit?: string;
|
|
128
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type RequestInput, type RequestOutput } from './support';
|
|
3
|
+
/**
|
|
4
|
+
* Request schemas for the site API-key endpoints.
|
|
5
|
+
*
|
|
6
|
+
* This module is the single authority for what those endpoints accept. The
|
|
7
|
+
* client-facing contract in `APIEndpoints` is derived from `z.input`; the route
|
|
8
|
+
* handler and its service receive `z.output`. Keeping both sides named here is
|
|
9
|
+
* the whole point of the subpath — a `.default()` or a branded transform makes
|
|
10
|
+
* them genuinely different types, and a plain `z.infer` (or a
|
|
11
|
+
* `z.ZodType<Body>` annotation on the schema) silently reports only one of them.
|
|
12
|
+
*
|
|
13
|
+
* Covered endpoints: `listSiteApiKeys`, `createSiteApiKey`, `revokeSiteApiKey`,
|
|
14
|
+
* `getSiteApiKeyAccessLogs`, `listSitePreviewKeys`, `createSitePreviewKey`,
|
|
15
|
+
* `listManagementKeys`, `createManagementKey`, `revokeManagementKey` — the whole
|
|
16
|
+
* domain. The management trio arrived in step 6's fourth batch, after the pilot
|
|
17
|
+
* had shipped the family half-migrated on purpose; see
|
|
18
|
+
* `.project/plans/tier2-step5-schema-entrypoint/design.md`.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Site-scoped routes that pass the raw `siteId` through to their service.
|
|
22
|
+
*
|
|
23
|
+
* Shared by `listSiteApiKeys`, `createSiteApiKey`, `getSiteApiKeyAccessLogs` and
|
|
24
|
+
* the three management-key endpoints.
|
|
25
|
+
*
|
|
26
|
+
* The management route declared this same object separately and annotated it
|
|
27
|
+
* `z.ZodType<APIEndpoints['listManagementKeys']['query']>`, which read as if
|
|
28
|
+
* `siteId` were a query contract. It is not: `/sites/{siteId}/api-keys/management`
|
|
29
|
+
* carries it in the path, `apiCallParams`' `PathParams` owns it on the client
|
|
30
|
+
* side, and those endpoints declare no query at all. It is a path parameter that
|
|
31
|
+
* happened to be typed through the query slot, so it lives here with the other
|
|
32
|
+
* params.
|
|
33
|
+
*/
|
|
34
|
+
export declare const siteApiKeyScopeParamsSchema: z.ZodObject<{
|
|
35
|
+
siteId: z.ZodString;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
/** `revokeSiteApiKey` — both ids are branded before the service sees them. */
|
|
38
|
+
export declare const revokeSiteApiKeyParamsSchema: z.ZodObject<{
|
|
39
|
+
siteId: z.ZodType<import("../../../core/src/index").SiteId, string, z.core.$ZodTypeInternals<import("../../../core/src/index").SiteId, string>>;
|
|
40
|
+
keyId: z.ZodType<import("../../../core/src/index").ApiKeyId, string, z.core.$ZodTypeInternals<import("../../../core/src/index").ApiKeyId, string>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
/** `listSitePreviewKeys` / `createSitePreviewKey`. */
|
|
43
|
+
export declare const sitePreviewKeyParamsSchema: z.ZodObject<{
|
|
44
|
+
siteId: z.ZodType<import("../../../core/src/index").SiteId, string, z.core.$ZodTypeInternals<import("../../../core/src/index").SiteId, string>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
/**
|
|
47
|
+
* `createSiteApiKey`.
|
|
48
|
+
*
|
|
49
|
+
* `environment` is the divergence this pilot exists to demonstrate: senders may
|
|
50
|
+
* omit it, so the wire contract has it optional, while the route always gets a
|
|
51
|
+
* concrete `'live' | 'test'`.
|
|
52
|
+
*/
|
|
53
|
+
export declare const createSiteApiKeyBodySchema: z.ZodObject<{
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
environment: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
56
|
+
test: "test";
|
|
57
|
+
live: "live";
|
|
58
|
+
}>>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
/** What a client sends: `environment` may be omitted. */
|
|
61
|
+
export type CreateSiteApiKeyBodyInput = RequestInput<typeof createSiteApiKeyBodySchema>;
|
|
62
|
+
/** What the route receives: `environment` is always present. */
|
|
63
|
+
export type CreateSiteApiKeyBodyOutput = RequestOutput<typeof createSiteApiKeyBodySchema>;
|
|
64
|
+
/** `createSitePreviewKey`. Input and output agree here; `.trim()` only changes the value. */
|
|
65
|
+
export declare const createSitePreviewKeyBodySchema: z.ZodObject<{
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export type CreateSitePreviewKeyBodyInput = RequestInput<typeof createSitePreviewKeyBodySchema>;
|
|
69
|
+
export type CreateSitePreviewKeyBodyOutput = RequestOutput<typeof createSitePreviewKeyBodySchema>;
|
|
70
|
+
/**
|
|
71
|
+
* `createManagementKey`.
|
|
72
|
+
*
|
|
73
|
+
* Every field is optional and nothing defaults or transforms, so both sides of
|
|
74
|
+
* this schema are the same type. It is here for the same reason the rest of the
|
|
75
|
+
* domain is: the route annotated it `z.ZodType<CreateManagementKeyRequest>`,
|
|
76
|
+
* which pins the output only and would have hidden a divergence had one been
|
|
77
|
+
* introduced later.
|
|
78
|
+
*
|
|
79
|
+
* The normalisation the endpoint documents happens in the service, not here:
|
|
80
|
+
* an omitted `accessMode` becomes `'write'` (preserving the prior all-access
|
|
81
|
+
* behaviour) and an omitted or null `expiresAt` means the key never expires.
|
|
82
|
+
* Neither is a schema default, so neither shows up in the parsed value.
|
|
83
|
+
*/
|
|
84
|
+
export declare const createManagementKeyBodySchema: z.ZodObject<{
|
|
85
|
+
name: z.ZodOptional<z.ZodString>;
|
|
86
|
+
accessMode: z.ZodOptional<z.ZodEnum<{
|
|
87
|
+
write: "write";
|
|
88
|
+
read: "read";
|
|
89
|
+
}>>;
|
|
90
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
export type CreateManagementKeyBodyInput = RequestInput<typeof createManagementKeyBodySchema>;
|
|
93
|
+
export type CreateManagementKeyBodyOutput = RequestOutput<typeof createManagementKeyBodySchema>;
|
|
94
|
+
/** `revokeManagementKey`. The key to revoke travels in the body, not the path. */
|
|
95
|
+
export declare const revokeManagementKeyBodySchema: z.ZodObject<{
|
|
96
|
+
keyId: z.ZodString;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
export type RevokeManagementKeyBodyInput = RequestInput<typeof revokeManagementKeyBodySchema>;
|
|
99
|
+
export type RevokeManagementKeyBodyOutput = RequestOutput<typeof revokeManagementKeyBodySchema>;
|
|
100
|
+
/**
|
|
101
|
+
* `getSiteApiKeyAccessLogs`.
|
|
102
|
+
*
|
|
103
|
+
* Query values always reach the server as strings, so these fields coerce. That
|
|
104
|
+
* makes `z.input` here `unknown`-ish and useless as a contract, which is why the
|
|
105
|
+
* client-facing query type stays `z.output`-shaped: `apiCallParams` owns the
|
|
106
|
+
* string encoding on the way out. Only the parsed side is exported.
|
|
107
|
+
*/
|
|
108
|
+
export declare const siteApiKeyAccessLogsQuerySchema: z.ZodObject<{
|
|
109
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
110
|
+
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
export type SiteApiKeyAccessLogsQueryOutput = RequestOutput<typeof siteApiKeyAccessLogsQuerySchema>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Shared primitives for the schema-bearing request entrypoints under
|
|
4
|
+
* `@riverbankcms/api/schemas/*`.
|
|
5
|
+
*
|
|
6
|
+
* This module is deliberately tiny and deliberately isolated: nothing under
|
|
7
|
+
* `src/schemas/` may be reachable from `request.ts`, `common/index.ts`, or any
|
|
8
|
+
* other lightweight/browser entrypoint, so that attaching Zod schemas to
|
|
9
|
+
* endpoints never grows the shared client bundle. `scripts/check-entrypoint-graph.cjs`
|
|
10
|
+
* enforces that boundary.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The shape a caller must put on the wire.
|
|
14
|
+
*
|
|
15
|
+
* Use this — never `z.infer` — when deriving the client-facing body contract in
|
|
16
|
+
* `APIEndpoints`. Defaults, coercion and transforms all make `z.input` wider
|
|
17
|
+
* (or more optional) than the parsed value the route receives.
|
|
18
|
+
*/
|
|
19
|
+
export type RequestInput<TSchema extends z.ZodType> = z.input<TSchema>;
|
|
20
|
+
/**
|
|
21
|
+
* The parsed value a route handler and its service receive.
|
|
22
|
+
*
|
|
23
|
+
* This is what `z.infer` already means; the alias exists so a schema module can
|
|
24
|
+
* name both sides symmetrically and make the divergence visible at a glance.
|
|
25
|
+
*/
|
|
26
|
+
export type RequestOutput<TSchema extends z.ZodType> = z.output<TSchema>;
|
|
27
|
+
/**
|
|
28
|
+
* A path parameter that arrives as a UUID string and is handed to the route as
|
|
29
|
+
* a branded id.
|
|
30
|
+
*
|
|
31
|
+
* The checks and messages match what the dashboard routes already declared
|
|
32
|
+
* inline (`z.string().uuid().transform(brand)`), so moving a route onto this
|
|
33
|
+
* helper cannot change a 400 body.
|
|
34
|
+
*/
|
|
35
|
+
export declare function brandedUuidParam<TBrand extends string>(brand: (value: string) => TBrand): z.ZodType<TBrand, string>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SdkEventBookingOffer } from './sdkContracts';
|
|
2
|
+
export type SdkEventBookingOfferIssue = Readonly<{
|
|
3
|
+
kind: 'invalid_booking_offer';
|
|
4
|
+
path: readonly string[];
|
|
5
|
+
message: string;
|
|
6
|
+
}>;
|
|
7
|
+
export type SdkEventBookingOfferClassification = Readonly<{
|
|
8
|
+
ok: true;
|
|
9
|
+
bookingOffer: SdkEventBookingOffer | undefined;
|
|
10
|
+
}> | Readonly<{
|
|
11
|
+
ok: false;
|
|
12
|
+
issues: readonly SdkEventBookingOfferIssue[];
|
|
13
|
+
}>;
|
|
14
|
+
export declare function classifySdkEventBookingOffer(input: unknown): SdkEventBookingOfferClassification;
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type SdkEventPaymentTerms =
|
|
3
|
-
export type SdkEventPaymentTermsInput =
|
|
4
|
-
export type SdkEventSupportedPaymentOptionKind =
|
|
5
|
-
export type SdkEventPaymentTermsIssue = Readonly<{
|
|
6
|
-
path: readonly string[];
|
|
7
|
-
message: string;
|
|
8
|
-
}>;
|
|
9
|
-
export type SdkEventPaymentTermsClassification = Readonly<{
|
|
10
|
-
ok: true;
|
|
11
|
-
paymentTerms?: SdkEventPaymentTerms;
|
|
12
|
-
}> | Readonly<{
|
|
13
|
-
ok: false;
|
|
14
|
-
issues: readonly SdkEventPaymentTermsIssue[];
|
|
15
|
-
}>;
|
|
16
|
-
export declare function classifySdkEventPaymentTerms(rawInput: unknown): SdkEventPaymentTermsClassification;
|
|
1
|
+
import type { EventBookingOfferIntent } from '@riverbankcms/site-commands';
|
|
2
|
+
export type SdkEventPaymentTerms = EventBookingOfferIntent['paymentTerms'];
|
|
3
|
+
export type SdkEventPaymentTermsInput = SdkEventPaymentTerms;
|
|
4
|
+
export type SdkEventSupportedPaymentOptionKind = SdkEventPaymentTerms['allowedOptions'][number]['kind'];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { SdkEntryUpsertSlotBlock, SdkEventContentInput, SdkPullEvent, SdkPullEventRun,
|
|
1
|
+
import type { SdkEntryUpsertSlotBlock, SdkEventBookingOffer, SdkEventContentInput, SdkPullEvent, SdkPullEventRun, SdkEventUpsertScheduleInput } from './sdkContracts';
|
|
2
2
|
import { type BookingTimeZone, type UtcIsoDateTimeString } from '../../core/src/index';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export { classifySdkEventBookingOffer } from './sdk-event-booking-offer';
|
|
4
|
+
export type { SdkEventBookingOfferClassification, SdkEventBookingOfferIssue, } from './sdk-event-booking-offer';
|
|
5
|
+
import type { SdkEventBookingOfferIssue } from './sdk-event-booking-offer';
|
|
5
6
|
import { type ClassifySdkEventScheduleOptions, type SdkEventCanonicalSchedule } from './sdk-event-schedule';
|
|
6
7
|
import { z } from 'zod';
|
|
7
8
|
export declare const sdkEventOccurrenceInputSchema: z.ZodObject<{
|
|
@@ -33,8 +34,8 @@ export declare const sdkEventUpsertOptionalFieldSchemas: {
|
|
|
33
34
|
performance: "performance";
|
|
34
35
|
}>>;
|
|
35
36
|
readonly bookingScope: z.ZodOptional<z.ZodEnum<{
|
|
36
|
-
whole_series: "whole_series";
|
|
37
37
|
single_occurrence: "single_occurrence";
|
|
38
|
+
whole_series: "whole_series";
|
|
38
39
|
}>>;
|
|
39
40
|
readonly occurrences: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
41
|
startsAt: z.ZodString;
|
|
@@ -86,8 +87,7 @@ type SdkEventRunUpsertCommon = Readonly<{
|
|
|
86
87
|
status?: SdkPullEventRun['status'];
|
|
87
88
|
visibility?: SdkPullEventRun['visibility'];
|
|
88
89
|
capacity?: number | null;
|
|
89
|
-
|
|
90
|
-
paymentTerms?: SdkEventUpsertPaymentTermsInput;
|
|
90
|
+
bookingOffer?: SdkEventBookingOffer;
|
|
91
91
|
venueRef?: string | null;
|
|
92
92
|
categoryRef?: string | null;
|
|
93
93
|
formRef?: string | null;
|
|
@@ -118,17 +118,14 @@ export type SdkEventUpsertBody = Readonly<{
|
|
|
118
118
|
blocks?: Record<string, SdkEntryUpsertSlotBlock[]>;
|
|
119
119
|
runs: readonly [SdkEventRunUpsertBody, ...SdkEventRunUpsertBody[]];
|
|
120
120
|
}>;
|
|
121
|
-
export type ValidatedSdkEventRunUpsertInput =
|
|
121
|
+
export type ValidatedSdkEventRunUpsertInput = SdkEventRunUpsertBody & Readonly<{
|
|
122
122
|
timingAuthority: SdkEventTimingAuthority;
|
|
123
|
-
pricing?: SdkEventPricing;
|
|
124
|
-
paymentTerms?: SdkEventPaymentTerms;
|
|
125
123
|
}>;
|
|
126
|
-
export type SdkEventRunUpsertParseInput = Omit<SdkEventRunUpsertCommon, '
|
|
124
|
+
export type SdkEventRunUpsertParseInput = Omit<SdkEventRunUpsertCommon, 'bookingOffer'> & Readonly<{
|
|
127
125
|
schedule?: unknown;
|
|
128
126
|
occurrences?: readonly SdkEventOccurrenceInput[];
|
|
129
127
|
bookingScope?: SdkEventBookingScope;
|
|
130
|
-
|
|
131
|
-
paymentTerms?: unknown;
|
|
128
|
+
bookingOffer?: unknown;
|
|
132
129
|
}>;
|
|
133
130
|
/** Legacy flat-series parser input retained for internal command adapters. */
|
|
134
131
|
export type SdkEventUpsertParseInput = Omit<SdkEventRunUpsertParseInput, 'identifier' | 'eventRef'> & Readonly<{
|
|
@@ -155,16 +152,10 @@ export type SdkEventUpsertValidationIssue = Readonly<{
|
|
|
155
152
|
issue: SdkEventTimingIssue;
|
|
156
153
|
}> | Readonly<{
|
|
157
154
|
runIndex: number;
|
|
158
|
-
source: '
|
|
159
|
-
path: readonly string[];
|
|
160
|
-
message: string;
|
|
161
|
-
issue: SdkEventPricingIssue;
|
|
162
|
-
}> | Readonly<{
|
|
163
|
-
runIndex: number;
|
|
164
|
-
source: 'paymentTerms';
|
|
155
|
+
source: 'bookingOffer';
|
|
165
156
|
path: readonly string[];
|
|
166
157
|
message: string;
|
|
167
|
-
issue:
|
|
158
|
+
issue: SdkEventBookingOfferIssue;
|
|
168
159
|
}>;
|
|
169
160
|
export type ValidatedSdkEventUpsertInput = Omit<SdkEventUpsertBody, 'runs'> & Readonly<{
|
|
170
161
|
runs: readonly [
|
|
@@ -194,4 +185,3 @@ export declare function parseSdkEventUpsertInput(input: Omit<SdkEventUpsertBody,
|
|
|
194
185
|
];
|
|
195
186
|
}>, options?: ParseSdkEventUpsertInputOptions): SdkEventUpsertValidationResult;
|
|
196
187
|
export declare function toSdkEventUpsertBody(input: ValidatedSdkEventUpsertInput): SdkEventUpsertBody;
|
|
197
|
-
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { BlockContentSource, BlockContentSourceKind, FieldDefinition, FieldDefinitionInput, SdkCustomBlock, SdkCustomBlockInput, Theme } from '../../blocks/src/index';
|
|
2
2
|
import type { ContentTypeSchema } from '../../content-model/src/index';
|
|
3
3
|
import type { FooterCompositionV1, RichTextDoc } from '../../core/src/index';
|
|
4
|
-
export type { SdkBlockAppearanceChoice, SdkBlockAppearanceOutcome } from './sdkBlockUpsertContracts';
|
|
4
|
+
export type { SdkBlockAppearanceChoice, SdkBlockAppearanceOutcome, } from './sdkBlockUpsertContracts';
|
|
5
5
|
import type { LinkPayload } from './navigation/types';
|
|
6
6
|
import type { JsonValue } from './shared-contracts';
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
7
|
+
import type { EventBookingOfferIntent } from '@riverbankcms/site-commands';
|
|
8
|
+
import type { ManagementMediaAsset } from './sdkMediaContracts';
|
|
9
|
+
export type { ManagementMediaAsset, SdkMediaDeleteApplyResponse, SdkMediaDeletePreviewResponse, SdkMediaDownloadResponse, SdkMediaListResponse, } from './sdkMediaContracts';
|
|
9
10
|
import type { SdkPullEventOccurrence } from './sdk-event-schedule';
|
|
10
11
|
import type { SiteCommandApplicationResult } from '@riverbankcms/site-commands';
|
|
11
12
|
import type { EventPreset } from '../../core/src/index';
|
|
@@ -15,7 +16,7 @@ export type { SdkCatalogButtonRole, SdkCatalogButtonStyleControl, } from './sdkT
|
|
|
15
16
|
import type { SdkPullEventCategory } from './sdkEventCategoryContracts';
|
|
16
17
|
import type { SdkPullSettings } from './sdkSettingsContracts';
|
|
17
18
|
export type { SdkConfigureBookingVerticalRequest, SdkConfigureBookingVerticalResponse, SdkPullSettingsWarning, } from './sdkBookingVerticalContracts';
|
|
18
|
-
export type { SdkPullSettings, SdkPullSettingsResponse } from './sdkSettingsContracts';
|
|
19
|
+
export type { SdkPullSettings, SdkPullSettingsResponse, } from './sdkSettingsContracts';
|
|
19
20
|
export type { SdkPullEventCategory } from './sdkEventCategoryContracts';
|
|
20
21
|
import type { SdkManagementEvent, SdkManagementEventOccurrence, SdkManagementEventRun } from './sdkManagedEventContracts';
|
|
21
22
|
export type { SdkEventOccurrenceDeletionEligibility, SdkEventOccurrenceProvenance, SdkManagementEvent, SdkManagementEventOccurrence, SdkManagementEventRun, } from './sdkManagedEventContracts';
|
|
@@ -277,21 +278,6 @@ export interface SdkBackfillIdentifiersResult {
|
|
|
277
278
|
};
|
|
278
279
|
entries: SdkBackfillEntryResult;
|
|
279
280
|
}
|
|
280
|
-
export interface ManagementMediaAsset {
|
|
281
|
-
id: string;
|
|
282
|
-
siteId: string;
|
|
283
|
-
identifier: string;
|
|
284
|
-
storageBucket: string;
|
|
285
|
-
storagePath: string;
|
|
286
|
-
filename: string;
|
|
287
|
-
mimeType: string;
|
|
288
|
-
width: number | null;
|
|
289
|
-
height: number | null;
|
|
290
|
-
bytes: number | null;
|
|
291
|
-
checksumSha256: string | null;
|
|
292
|
-
createdAt: string;
|
|
293
|
-
updatedAt: string;
|
|
294
|
-
}
|
|
295
281
|
export interface MediaResolveResponse {
|
|
296
282
|
assets: ManagementMediaAsset[];
|
|
297
283
|
missingIdentifiers: string[];
|
|
@@ -842,8 +828,7 @@ export interface SdkPullEventRun {
|
|
|
842
828
|
bookingScope: 'single_occurrence' | 'whole_series';
|
|
843
829
|
occurrences: readonly SdkPullEventOccurrence[];
|
|
844
830
|
capacity: number | null;
|
|
845
|
-
|
|
846
|
-
paymentTerms?: SdkEventPaymentTerms;
|
|
831
|
+
bookingOffer: SdkEventBookingOffer;
|
|
847
832
|
venueRef: string | null;
|
|
848
833
|
categoryRef: string | null;
|
|
849
834
|
formRef: string | null;
|
|
@@ -888,8 +873,8 @@ export type SdkEventStartDurationScheduleInput = {
|
|
|
888
873
|
endsAt?: never;
|
|
889
874
|
};
|
|
890
875
|
export type SdkEventUpsertScheduleInput = SdkEventCanonicalScheduleInput | SdkEventStartEndScheduleInput | SdkEventStartDurationScheduleInput;
|
|
891
|
-
export type
|
|
892
|
-
export type
|
|
876
|
+
export type SdkEventBookingOffer = EventBookingOfferIntent;
|
|
877
|
+
export type SdkEventBookingOfferInput = SdkEventBookingOffer;
|
|
893
878
|
export interface SdkPullEventsResponse {
|
|
894
879
|
events: SdkPullEvent[];
|
|
895
880
|
eventRuns: SdkPullEventRun[];
|
|
@@ -20,6 +20,22 @@ export type SdkEventOccurrenceDeletionEligibility = {
|
|
|
20
20
|
} | {
|
|
21
21
|
kind: 'blocked_completed_occurrence';
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* One event date as the management API reports it.
|
|
25
|
+
*
|
|
26
|
+
* Two different place counts live here on purpose, because two different
|
|
27
|
+
* questions get asked about the same roster (see `attendanceCounts.ts` in
|
|
28
|
+
* `@riverbankcms/bookings/events`, which defines both):
|
|
29
|
+
*
|
|
30
|
+
* - `confirmedPlaces` is what a room holds and what `capacity` is compared
|
|
31
|
+
* against. Only a confirmed booking holds a place.
|
|
32
|
+
* - `registrations` is the wider figure the delete gate needs, because a
|
|
33
|
+
* waitlisted or pending row is still someone you would strand by deleting
|
|
34
|
+
* the date underneath them.
|
|
35
|
+
*
|
|
36
|
+
* They are usually equal, and they diverge exactly when a date has waitlisted
|
|
37
|
+
* or pending rows on it.
|
|
38
|
+
*/
|
|
23
39
|
export interface SdkManagementEventOccurrence {
|
|
24
40
|
id: OccurrenceId;
|
|
25
41
|
seriesId: EventSeriesId;
|
|
@@ -30,6 +46,27 @@ export interface SdkManagementEventOccurrence {
|
|
|
30
46
|
provenance: SdkEventOccurrenceProvenance;
|
|
31
47
|
capacityOverride: number | null;
|
|
32
48
|
capacity: number | null;
|
|
49
|
+
/**
|
|
50
|
+
* Places held by confirmed bookings: the sum of the confirmed rows'
|
|
51
|
+
* ticket-line quantities. The figure to compare against `capacity`, and the
|
|
52
|
+
* same number the dashboard's date list shows.
|
|
53
|
+
*
|
|
54
|
+
* Optional only for the length of one release. A published CLI can be
|
|
55
|
+
* pointed at a dashboard that predates this field, and a required field
|
|
56
|
+
* would fail the whole response parse rather than one column, so clients
|
|
57
|
+
* fall back to `registrations` when it is absent. Make it required — here
|
|
58
|
+
* and in `sdkOccurrenceResponseSchemas.ts` — once every dashboard carrying
|
|
59
|
+
* commit e22c7700f5 is live, and drop the fallbacks with it.
|
|
60
|
+
*/
|
|
61
|
+
confirmedPlaces?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Places held by every row that is not cancelled, so waitlisted and pending
|
|
64
|
+
* rows are counted too. This is the figure `deletionEligibility` is decided
|
|
65
|
+
* on: a date with anyone still attached to it cannot be deleted.
|
|
66
|
+
*
|
|
67
|
+
* The name is kept for compatibility with published CLI output. For
|
|
68
|
+
* "how full is this date", read `confirmedPlaces`.
|
|
69
|
+
*/
|
|
33
70
|
registrations: number;
|
|
34
71
|
deletionEligibility: SdkEventOccurrenceDeletionEligibility;
|
|
35
72
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { MediaDeleteResponse } from './media';
|
|
2
|
+
import type { MediaUsageCheckItem } from './shared-contracts';
|
|
3
|
+
export interface ManagementMediaAsset {
|
|
4
|
+
id: string;
|
|
5
|
+
siteId: string;
|
|
6
|
+
identifier: string;
|
|
7
|
+
storageBucket: string;
|
|
8
|
+
storagePath: string;
|
|
9
|
+
filename: string;
|
|
10
|
+
mimeType: string;
|
|
11
|
+
width: number | null;
|
|
12
|
+
height: number | null;
|
|
13
|
+
bytes: number | null;
|
|
14
|
+
checksumSha256: string | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SdkMediaListResponse {
|
|
19
|
+
items: ManagementMediaAsset[];
|
|
20
|
+
total: number;
|
|
21
|
+
limit: number;
|
|
22
|
+
offset: number;
|
|
23
|
+
nextOffset?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface SdkMediaDownloadResponse {
|
|
26
|
+
transferUrl: string;
|
|
27
|
+
asset: ManagementMediaAsset;
|
|
28
|
+
}
|
|
29
|
+
export type SdkMediaDeletePreviewResponse = {
|
|
30
|
+
kind: 'missing';
|
|
31
|
+
} | {
|
|
32
|
+
kind: 'in_use';
|
|
33
|
+
usage: MediaUsageCheckItem;
|
|
34
|
+
} | {
|
|
35
|
+
kind: 'deletable';
|
|
36
|
+
assetId: string;
|
|
37
|
+
};
|
|
38
|
+
export type SdkMediaDeleteApplyResponse = Exclude<SdkMediaDeletePreviewResponse, {
|
|
39
|
+
kind: 'deletable';
|
|
40
|
+
}> | MediaDeleteResponse;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/** SDK media lookup, listing, deletion and upload endpoints (management-key authenticated). */
|
|
2
|
+
export declare const SDK_MEDIA_ENDPOINT_DEFINITIONS: {
|
|
3
|
+
sdkMediaExists: {
|
|
4
|
+
path: "/sdk/{siteId}/media/exists";
|
|
5
|
+
method: "POST";
|
|
6
|
+
errors: "validation:invalid_input"[];
|
|
7
|
+
auth: "service";
|
|
8
|
+
responseKind: "json";
|
|
9
|
+
};
|
|
10
|
+
sdkMediaFindByChecksum: {
|
|
11
|
+
path: "/sdk/{siteId}/media/find-by-checksum";
|
|
12
|
+
method: "POST";
|
|
13
|
+
errors: "server:internal_error"[];
|
|
14
|
+
auth: "service";
|
|
15
|
+
responseKind: "json";
|
|
16
|
+
};
|
|
17
|
+
sdkMediaResolve: {
|
|
18
|
+
path: "/sdk/{siteId}/media/resolve";
|
|
19
|
+
method: "POST";
|
|
20
|
+
errors: "server:internal_error"[];
|
|
21
|
+
auth: "service";
|
|
22
|
+
responseKind: "json";
|
|
23
|
+
};
|
|
24
|
+
sdkMediaList: {
|
|
25
|
+
path: "/sdk/{siteId}/media";
|
|
26
|
+
method: "GET";
|
|
27
|
+
auth: "service";
|
|
28
|
+
errors: never[];
|
|
29
|
+
responseKind: "json";
|
|
30
|
+
};
|
|
31
|
+
sdkMediaDownload: {
|
|
32
|
+
path: "/sdk/{siteId}/media/{identifier}/download";
|
|
33
|
+
method: "GET";
|
|
34
|
+
auth: "service";
|
|
35
|
+
errors: never[];
|
|
36
|
+
responseKind: "json";
|
|
37
|
+
};
|
|
38
|
+
sdkMediaDeletePreview: {
|
|
39
|
+
path: "/sdk/{siteId}/media/{identifier}/delete-preview";
|
|
40
|
+
method: "POST";
|
|
41
|
+
auth: "service";
|
|
42
|
+
errors: never[];
|
|
43
|
+
responseKind: "json";
|
|
44
|
+
};
|
|
45
|
+
sdkMediaDeleteApply: {
|
|
46
|
+
path: "/sdk/{siteId}/media/{identifier}";
|
|
47
|
+
method: "DELETE";
|
|
48
|
+
auth: "service";
|
|
49
|
+
errors: never[];
|
|
50
|
+
responseKind: "json";
|
|
51
|
+
};
|
|
52
|
+
sdkMediaUploadUrl: {
|
|
53
|
+
path: "/sdk/{siteId}/media/upload-url";
|
|
54
|
+
method: "POST";
|
|
55
|
+
errors: ("validation:invalid_input" | "validation:payload_too_large" | "resource:not_found" | "resource:conflict" | "billing:plan_limit_exceeded" | "server:internal_error")[];
|
|
56
|
+
auth: "service";
|
|
57
|
+
responseKind: "json";
|
|
58
|
+
};
|
|
59
|
+
sdkMediaUploadFinalize: {
|
|
60
|
+
path: "/sdk/{siteId}/media/upload";
|
|
61
|
+
method: "POST";
|
|
62
|
+
errors: ("validation:invalid_input" | "validation:payload_too_large" | "resource:not_found" | "resource:conflict" | "billing:plan_limit_exceeded" | "server:internal_error")[];
|
|
63
|
+
auth: "service";
|
|
64
|
+
responseKind: "json";
|
|
65
|
+
};
|
|
66
|
+
};
|