@owlmeans/wled
v0.1.11
Published
Whitelabel ("wled") core — shared types, models, and module declarations for entity-specific branding/content.
Readme
@owlmeans/wled
Whitelabel ("wled") core — shared types, models, and module declarations for entity-specific branding/content.
Overview
WL_PROVIDE/WL_PROVIDE_PATH— module alias and path for the whitelabel provide endpointWL_TYPE_COMPANY_INFO,WL_TYPE_STYLES,WL_TYPE_MEDIA,WL_TYPE_DNS— whitelabel content type discriminators- Type definitions:
CompanyInfo,CustomStyles,CustomColors,CustomFont,CustomMedia,CustomBrand,ProvideParams,ProvidedWL<T> modules— array containing theGET /wl/provide/:entitydeclaration- AJV models under
model/(e.g.,ProvideParamsSchema)
Installation
bun add @owlmeans/wledUsage
Use the shared module declarations and types when wiring server- and web-side whitelabel features:
import { modules as wlModules } from '@owlmeans/wled'
import type { ProvidedWL, CompanyInfo, CustomStyles } from '@owlmeans/wled'Reference content type discriminators when filtering whitelabel records:
import { WL_TYPE_COMPANY_INFO, WL_TYPE_STYLES } from '@owlmeans/wled'
const companyInfo = await wlResource.load(`${entityId}:${WL_TYPE_COMPANY_INFO}`)The actual server handlers live in @owlmeans/server-wl; web UI in @owlmeans/web-wl / @owlmeans/client-wl.
API
Constants
WL_PROVIDE—'wl-provide'WL_PROVIDE_PATH—'/wl/provide/:entity'WL_TYPE_COMPANY_INFO—'company-info'WL_TYPE_STYLES—'styles'WL_TYPE_MEDIA—'media'WL_TYPE_DNS—'dns'
Types
CompanyInfo, CustomStyles, CustomColors, CustomFont, CustomMedia, CustomBrand, ProvideParams, ProvidedWL<T> — re-exported at the root entry.
modules
Array with one declaration: GET /wl/provide/:entity (alias WL_PROVIDE), with params filter using ProvideParamsSchema.
model
Submodule exporting AJV schemas (e.g., ProvideParamsSchema) and helpers for whitelabel records.
Related Packages
@owlmeans/server-wl— server-side whitelabel handlers (usesmodulesfrom here)@owlmeans/web-wl— web UI components for whitelabel content@owlmeans/client-wl— client-side whitelabel placeholder
Agent guidance
This package ships embedded Claude Code skills and GitHub Copilot instructions under
agent-meta/. After installing your @owlmeans/* packages, run the OwlMeans
agent-skills installer to place them into your project's native locations
(.claude/skills/ and .github/instructions/):
npx @owlmeans/agent-skillsThe embedded files are version-matched to this package release. Do not edit them directly — they are regenerated on each publish. To contribute guidance edits, open a PR against the source monorepo.
