BeechCMS / @beechcms/core
@beechcms/core
@beechcms/core - Botanical Engine
Shared package of the Beech CMS monorepo. In v0.4.0 the Botanical Engine is a SQL schema compiler: it reads TypeScript Seeds and generates deterministic DDL + parameterized queries.
Classes
- AllowAllRoleGuard
- CsvRowReader
- DraftConflictError
- DraftSaveConflictError
- EntryConflictError
- EntryNotFoundError
- HookValidationError
- InMemorySeedRegistry
- IntrospectionError
- LineReader
- MediaPresetCatalogError
- NoopAntivirusProvider
- NoOpQueueService
- NoOpScheduler
- PermissionRoleGuard
- PrivacyNotConfiguredError
- PrivacyService
- RelationTargetNotFoundError
- RepositoryError
- SeedRegistry
- SlugConflictError
- TokenBucketRateLimiter
- UnconfiguredPrivacyService
- VirusTotalAntivirusProvider
Interfaces
- AccountSummary
- ActiveSessionSummary
- ActivityActor
- ActivityLogEntry
- ActivityLogListOptions
- ActivityLogRecord
- ActivityLogVisibility
- ActorContext
- AgentIntentPending
- AgentIntentPendingResponse
- AgentIntentRecord
- AgentOperationSpec
- AntivirusScanResult
- AuthorizationCodeRecord
- AuthorizedClientSummary
- Automation
- AutomationEventPayload
- AutomationTrigger
- BackrefItem
- BackrefSource
- BeechBucket
- BeechHooks
- Branch
- BulkDeleteResult
- ConsentRecord
- ContentLastWriter
- ContentRepository
- ContentView
- ContentViewPatch
- ContentViewRecord
- ContractBranch
- ContractSeed
- CountSinceOptions
- CreateAutomationInput
- CsvEncodeOptions
- DashboardColumn
- DashboardLayout
- DashboardLayoutContext
- DashboardLayoutRecord
- DashboardLayoutViewer
- DashboardPageLayout
- DashboardSection
- DashboardSeedConfig
- DashboardWidgetInstance
- DateRange
- DeletionLedgerEvent
- DistributionSlice
- DraftSummary
- EffectivePermissions
- EmailProvider
- ExcludedOperationSpec
- ExtendPlan
- FileFieldOptions
- FileTypeDefinition
- FilterCondition
- FilteredDashboardLayout
- FilterGroup
- FormLayout
- GetBucketResult
- GrowthResult
- HookActor
- HookContext
- IActivityLogger
- IActivityLogRepository
- IAgentIntentRepository
- IAnalyticsRepository
- IAntivirusProvider
- IAutomationRepository
- IAutomationRunner
- IBackrefRepository
- IClock
- IContentScanRepository
- IContentViewRepository
- IDashboardLayoutRepository
- IDeletionLedger
- IDemoDataRepository
- IdempotencyRecord
- IdempotencyRepository
- IHashProvider
- IIdGenerator
- IImageTransformer
- IInvitationRepository
- ImageTransformSpec
- ImportPayload
- InitialRoleGrant
- INotificationRepository
- INotificationService
- InvitationRecord
- InvitationRedemption
- IOAuthAuthorizationCodeRepository
- IOAuthClientRepository
- IOAuthConsentRepository
- IOAuthTokenRepository
- IPasswordResetTokenRepository
- IPrivacyService
- IQueueService
- IRateLimiter
- IRoleAssignmentRepository
- IRoleGuard
- IRoleRepository
- IScheduler
- ISchemaMutator
- ISearchRepository
- ISeedLayoutRepository
- ISeedMediaPurgeRepository
- ISeedRegistry
- ISeedRepository
- ISessionRepository
- ISiteSettingsRepository
- IssueTokenOptions
- ITimeTrapTokenRepository
- ITokenService
- IUserRepository
- IVectorRepository
- IWidgetRepository
- JobContext
- JwtClaims
- KanbanAxisCandidate
- KanbanColumnDescriptor
- KanbanCompatibility
- KanbanConfig
- KanbanMoveBody
- LayoutColumn
- LayoutField
- LayoutSection
- LayoutTab
- LeaderboardEntry
- LeaderboardOptions
- LiveColumn
- LiveForeignKey
- LiveIndex
- LiveSchema
- LiveTable
- LocaleConfig
- LocaleSettings
- MagicBytesValidationResult
- MediaDimensions
- MediaObject
- MediaRepository
- MediaTransformRequest
- NewAssignmentInput
- NewAuthorizationCode
- NewContentView
- NewInvitationInput
- NewOAuthToken
- NewPasswordResetToken
- NewRefreshToken
- NewRoleInput
- NewUserInput
- NotificationRecord
- NumberFieldOptions
- OAuthClientRecord
- OAuthTokenRecord
- OperationRiskInput
- OutboundEmail
- PageRequest
- ParameterizedQuery
- PermissionAssignment
- PresignOptions
- PurgeOptions
- PurgeResult
- PutBucketOptions
- QuarantinedSeed
- QueryGroupResult
- QueueMessage
- RateLimitResult
- RedeemPasswordResetInput
- RefreshTokenRecord
- RelationStorageFinding
- RepositoryOptions
- ResolvedClassification
- RoleRecord
- SchemaColumn
- SchemaContract
- SchemaQueryExecutor
- ScopeGrantDecision
- SearchCountResult
- SearchQueryOptions
- SearchResultRow
- Seed
- SeedApplyInput
- SeedApplyResult
- SeedDefinitionDiff
- SeedLayoutRecord
- SeedPurgeJob
- SeedPurgeRow
- SeedRecord
- SeedTypesOptions
- SeedValidationIssue
- SelectLocale
- SelectOptions
- SetVariableAction
- SiteSettings
- SystemStatsRepository
- TagMigrationPlan
- TagMigrationStep
- TagOption
- TagOrphan
- TimeseriesPoint
- TokenBucketOptions
- TransformedImage
- TriggerCondition
- UserRecord
- ValidateCardConfigOptions
- ValidatedInvitation
- ValidatedResetToken
- ValidateSeedPayloadOptions
- ValidateSeedPayloadResult
- ValidationDetail
- WhenGroup
- WhenPredicate
- WidgetListFilter
- WidgetListOptions
- WidgetListResult
Type Aliases
- ActivityAction
- AdminGuardedResult
- AgentEnvironment
- AgentIntentRisk
- AgentIntentStatus
- AggregateFormula
- AnalyticsMetric
- AntivirusStatus
- AutomationAction
- AutomationTriggerEvent
- BackrefMap
- BatchWrite
- BranchDefinitionLike
- BranchType
- BulkFieldUpdate
- CardSlotField
- ContentViewConfig
- CreateContentViewInput
- CreateNotificationInput
- CreateNotificationRecord
- DashboardIconName
- DashboardLayoutWriteResult
- DashboardView
- DataClassification
- EntityType
- FileAccept
- FileCategory
- FilterOperator
- FilterType
- FolderStyle
- FormatCompatibility
- ImageOutputMime
- JobHandler
- JobRegistry
- KanbanAxisBranchType
- KanbanCardConfig
- KanbanIncompatibleReason
- KanbanViewConfig
- LineParseErrorCode
- LineParseResult
- LocalizedDictionary
- LocalizedPatch
- LockedWidgetReconciliation
- LoginRequest
- MediaOutputFormat
- MediaPreset
- MediaPresetCatalog
- MediaQuality
- MediaTransformErrorCode
- MediaTransformQuery
- NewAgentIntentInput
- NotificationType
- OAuthScope
- OAuthTokenType
- OperationExposure
- OperationMethod
- OperationRisk
- OperationRiskRule
- OperationSpec
- Permission
- PkceChallengeMethod
- RelationStorageIssue
- RemoveContentViewResult
- ResolvedOptions
- RichtextEnvelopeV1
- Scope
- SearchSupport
- SeedDefinitionLike
- SeedDestructiveApplyInput
- SeedLookup
- SeedPurgePhase
- TagMigrationAction
- TagValueRejection
- TagValueResult
- TimeWindow
- TransferFormat
- TransferRecord
- TrashedMode
- UiPreferences
- UiPreferencesInput
- UpdateAutomationInput
- UpdateContentViewInput
- ValidateCardConfigResult
- ValidateDashboardLayoutResult
- ValidateLayoutResult
- ViewColumnRef
- ViewConditionalFormat
- ViewFilter
- ViewSystemColumn
- WhenNode
- WhenOp
- WhenOperand
- WidgetRequirement
- WidgetRequirementLookup
- WidgetWindow
Variables
- ABSOLUTE_MAX_MEDIA_DIMENSION
- ARCHIVE_EXTENSIONS
- ARCHIVE_MIME_TYPES
- AUTHORIZABLE_VIEWS
- AUTOMATION_RESERVED_WORDS
- BLOCKED_IMAGE_EXTENSIONS
- BLOCKED_IMAGE_MIME_TYPES
- BRANCH_ALIAS_RE
- BRANCH_DEFINITION_FLAGS
- cardSlotFieldSchema
- contentViewConfigSchema
- createContentViewInputSchema
- createNotificationSchema
- DASHBOARD_ICON_NAMES
- DASHBOARD_PAGE_LABEL_MAX
- DASHBOARD_SECTION_LABEL_MAX
- DASHBOARD_WIDGET_TITLE_MAX
- dashboardColumnSchema
- dashboardLayoutSchema
- dashboardPageSchema
- dashboardSectionSchema
- dashboardWidgetInstanceSchema
- DEFAULT_AUTHORIZED_VIEWS
- DEFAULT_DASHBOARD_ICON
- DEFAULT_DASHBOARD_SCOPE
- DEFAULT_EXPORT_MAX_ROWS
- DEFAULT_EXPORT_PAGE_SIZE
- DEFAULT_IMPORT_CHUNK_ROWS
- DEFAULT_MEDIA_FORMAT
- DEFAULT_MEDIA_MAX_DIMENSION
- DEFAULT_MEDIA_PRESETS
- DEFAULT_MEDIA_QUALITY
- DEFAULT_MEDIA_SCALE_WIDTHS
- DEFAULT_TRASH_RETENTION_DAYS
- DOCUMENT_EXTENSIONS
- DOCUMENT_MIME_TYPES
- EMPTY_UI_PREFERENCES
- EXPORT_SYSTEM_COLUMNS
- FOLDER_COLORS
- FOLDER_ICONS
- folderStyleSchema
- FORBIDDEN_MEDIA_TRANSFORM_PARAMS
- formLayoutSchema
- FULL_WIDTH_BRANCH_TYPES
- GLOBAL_SCOPE
- IMAGE_EXTENSIONS
- IMAGE_MIME_TYPES
- IMPORT_JOBS_SEED_SLUG
- kanbanCardConfigSchema
- kanbanViewConfigSchema
- LAYOUT_SECTION_LABEL_MAX
- LAYOUT_TAB_LABEL_MAX
- layoutColumnSchema
- layoutFieldSchema
- layoutSectionSchema
- layoutTabSchema
- LOCALE_CODE_RE
- LOCALIZABLE_BRANCH_TYPES
- LOCKED_WIDGET_TYPE
- LOGIN_PASSWORD_MAX_BYTES
- LOGIN_PASSWORD_MAX_LENGTH
- LOGIN_PASSWORD_MIN_LENGTH
- loginRequestSchema
- MAX_DASHBOARD_LAYOUT_BYTES
- MAX_FOLDER_STYLES
- MAX_JOB_ERROR_SAMPLES
- MAX_LAYOUT_BYTES
- MAX_PAGE_SIZE
- MAX_RETENTION_DAYS
- MAX_ROLES_PER_PAGE
- MAX_SECTIONS_PER_PAGE
- MAX_SLUG_LENGTH
- MAX_VIEW_CONDITIONS
- MAX_WIDGET_CONFIG_BYTES
- MAX_WIDGETS_PER_COLUMN
- MEDIA_OUTPUT_FORMATS
- MEDIA_QUALITIES
- MEDIA_QUALITY_VALUES
- METADATA_SLOT_CAP
- OAUTH_SCOPES
- OPERATION_CATALOG
- PALETTE_PIN_ID_MAX_LENGTH
- PALETTE_PINS_MAX
- PERMISSIONS
- PKCE_CHALLENGE_METHOD
- PKCE_VERIFIER_MAX_LENGTH
- PKCE_VERIFIER_MIN_LENGTH
- reorderContentViewsInputSchema
- resolveCoreWidgetRequirement
- RICHTEXT_SCHEMA_VERSION
- SCHEMA_FINGERPRINT_VERSION
- SCOPE_GRANT_REQUIREMENTS
- SEED_DEFINITION_FLAGS
- SEED_REGISTRY
- SEED_SLUG_RE
- SLUG_RE
- SQL_RESERVED_WORDS
- SUPER_ADMIN_ROLE_NAME
- SUPPORTED_FILE_TYPES
- SYSTEM_ALIASES
- SYSTEM_COLUMNS
- SYSTEM_SEED_SLUGS
- SystemClock
- SystemIdGenerator
- TAG_MAX_BYTES
- TAG_MAX_COUNT
- TAG_MAX_LENGTH
- TAG_MIGRATION_PALETTE
- TAG_OPTION_COLOR_RE
- TAG_OPTIONS_MAX_COUNT
- TAG_RAW_MAX_COUNT
- TRANSFER_FORMATS
- TRANSFORMABLE_MEDIA_MIME_TYPES
- TRASHED_SLUG_INFIX
- UI_PREFERENCES_MAX_BYTES
- uiPreferencesSchema
- UNSUPPORTED_BRANCH_TYPES
- updateContentViewInputSchema
- VIEW_DENSITIES
- VIEW_FILTER_OPERATORS
- VIEW_FORMAT_TARGETS
- VIEW_FORMAT_TONES
- VIEW_SYSTEM_COLUMNS
- VIEW_TEXT_STYLES
- VIEW_TITLE_MAX_LENGTH
- VIEW_TYPE_IDS
- viewAppearanceSchema
- viewColumnRefSchema
- viewConditionalFormatSchema
- viewConditionSchema
- viewFilterSchema
- viewGroupBySchema
- viewSortSchema
- viewTitleSchema
- WIDGET_TYPE_REGEX
Functions
- activeClause
- activeCondition
- agentEnvironment
- applyLocalizedPatch
- asLocaleDictionaries
- asLocaleDictionary
- assertSafeIdentifier
- auditRelationStorage
- buildBackrefMap
- buildEffectivePermissions
- buildImageTransformSpec
- buildMediaPresetCatalog
- buildSelectQuery
- canGrant
- canonicalizeMime
- canonicalMediaTransformQuery
- canonicalStringify
- checkFormatCompatibility
- closestDashboardIconNames
- compactLocalizedDictionary
- computeMediaVariantEtag
- computeSchemaFingerprint
- createTolerantSeedRegistry
- defineSeed
- deriveCodeChallenge
- deriveScaleOutput
- deserializeFromDb
- diffSeedDefinition
- draftTableName
- emptyViewConfig
- encodeCsvRow
- encodeCsvValue
- encodeNdjsonLine
- exportColumns
- extensionFromUrl
- extractIndexableText
- filterDashboardLayoutByWidgetRequirements
- filterDashboardLayoutForViewer
- filterEntryForActor
- findBranchById
- findTagOption
- findTagOrphans
- findUnappliedFilters
- formatScopes
- fromCsvCells
- fromTrashedSlug
- ftsTableName
- generateAddColumn
- generateAddDraftSnapshotColumn
- generateCreateTable
- generateDefaultDashboardLayout
- generateDefaultLayout
- generateDraftTable
- generateDropColumn
- generateDropOrphanColumn
- generateDropTable
- generateEnableSoftDelete
- generateEntrySlug
- generateFtsTable
- generateFtsTriggers
- generateIndexes
- generateJunctionDraftTable
- generateJunctionIndexes
- generateJunctionTable
- generateRenameColumn
- generateRetypeColumn
- generateRetypeIncompatibleCount
- generateSeedPurgeGuards
- generateSeedTypes
- generateTimeTrapToken
- generateVectorTable
- getExpectedColumns
- getFileTypeByExtension
- getFileTypeByMime
- getSeed
- hasBlindIndex
- hasDashboardLayoutStructuralChange
- hasPermission
- hasPermissionAnywhere
- hasTagMigrationWork
- ifNoneMatchMatches
- indexableSearchBranches
- interfaceForSeed
- introspectSchema
- introspectSeedDefinitions
- introspectTable
- isAgentIntentPendingResponse
- isCardEligibleBranch
- isDashboardIconName
- isDashboardLayoutEditor
- isDateRange
- isEffectivelyEmpty
- isExtensionAccepted
- isFlatSeed
- isFullWidthBranch
- isGalleryBranch
- isImageMediaBranch
- isKanbanAxisRequired
- isLayoutableBranch
- isLocaleCode
- isLocaleDictionary
- isLocalizedBranch
- isLocalizedWriteDictionary
- isMimeAccepted
- isOAuthScope
- isPermission
- isPrivateHost
- isRichtextEnvelopeV1
- isScopeSubset
- isSearchSupported
- isSeedSetValid
- isSeoBranch
- isSingleChoiceTags
- isSystemSeedSlug
- isTransferFormat
- isTransformableMime
- isValidAccountEmail
- isValidCodeVerifier
- isValidColumn
- isValidContentStatus
- isValidRetentionDays
- isViewAuthorized
- isWidgetLockedFor
- isWidgetRequirementMet
- junctionTableName
- kanbanColumnEntryValue
- kanbanColumnFilter
- listTables
- localizedAliasesIn
- manualTagSteps
- matchBytePrefix
- matchesFileSignature
- matchOperation
- mediaPresetSignature
- mergeContentViewOrder
- mergeLocalizedFields
- nextBranchId
- nonFlatBranches
- normalizeBranchDefinition
- normalizeClassification
- normalizeSeedDefinition
- normalizeTagValue
- parseMediaTransformQuery
- parseNdjsonLine
- parseScopeString
- parseStoredUiPreferences
- pascalCase
- permissionsForScope
- permissionsHeldAnywhere
- planCreateSeed
- planExtendSeed
- planFtsRebuild
- planTagMigration
- projectContentView
- projectContentViews
- projectSchemaContract
- reconcileLayoutWithSeed
- reconcileLockedWidgets
- registerSeeds
- requiresConfirmation
- reservedBranchAliasReason
- resolveAuthorizedViews
- resolveCandidateIds
- resolveClassification
- resolveFileOptions
- resolveKanbanColumns
- resolveKanbanConfig
- resolveLocaleConfig
- resolveLocalizedFields
- resolveLocalizedValue
- resolveOperationRisk
- resolvePolicies
- resolveRelationAvatar
- resolveRetentionDays
- resolveSearchSupport
- serializeForDb
- sha256hex
- signWebhookBody
- slugify
- sortSeedsByDependencies
- tableName
- tagMigrationStatements
- tagOptionsIssues
- tagOptionValues
- timingSafeEqual
- toCsvCells
- toImportPayload
- toLocalizedPatch
- toTrashedSlug
- tsTypeForBranch
- uiPreferencesByteLength
- validateAndSanitizeSeedPayload
- validateCardConfigAgainstSeed
- validateDashboardLayout
- validateLayoutAgainstSeed
- validateSeedDefinitions
- validateViewConfigAgainstSeed
- vectorTableName
- verifyHashField
- verifyMagicBytes
- verifyPkceChallenge
- verifyTimeTrapToken
- verifyWebhookSignature
- viewConfigChoiceIssues