YounndAI Domains

YounndAI Domains

The Schema Registry

Typed schemas for
every industry

Structured tags with typed fields, validation rules, and trust signals. Open standard. Managed registry.

Explore RegistryLearn the Format
31 Official Domains//Open Standard//Schema as a Service
YounndAI Domains
DomainsSchemaPricingDocs
  1. Docs
  2. Sdk
  3. API Reference
sdk

API Reference

Every exported function, type, and error class from @younndai/domains.

Constants

ExportTypeDescription
VERSIONstringPackage version

Bundled Domains

FunctionReturnsDescription
getBundledDomain(id)DomainSchema | nullGet bundled domain
listBundledDomains()string[]List all bundled domain IDs
isBundledDomain(id)booleanCheck if domain is bundled

Registry Client

FunctionReturnsDescription
getDomain(id, opts?)Promise<DomainSchema | null>Fetch single domain
getDomains(ids[])Promise<Map>Fetch multiple domains
fetchDomainList(opts?)Promise<{domains, total}>List with filters
searchDomains(query)Promise<DomainSchema[]>Full-text search
getDomainVersions(id)Promise<DomainVersion[]>Version history
getRegistryStats()Promise<RegistryStats>Aggregate stats
listNamespaces(opts?)Promise<Namespace[]>List namespaces
getNamespace(path)Promise<Namespace>Get namespace
getNotices(opts?)Promise<Notice[]>Active notices
getAnnouncements(opts?)Promise<Announcement[]>Announcements
checkRegistryHealth()Promise<RegistryHealthResult>Health check

Configuration

FunctionDescription
configureClient(config)Full configuration
setRegistryUrl(url)Set base URL
getRegistryUrl()Get current URL
setCacheAdapter(adapter)Swap cache backend
clearDomainCache()Flush cache
getDomainCacheStats()Cache diagnostics
resetCacheStats()Zero stat counters

Local Registry

FunctionDescription
registerDomain(schema)Register locally (T3)
unregisterDomain(id)Remove local domain
isOfficialDomain(id)Check if bundled
listDomains(filter?)List loaded domains
getDomainTags(domains[])Additive tag set
getLocalDomain(id)Get single local domain

Resolution

FunctionDescription
resolveDomain(id, opts?)T1→T3→T2 unified resolution

Introspection

Async variants take a domain ID. Sync variants (add Sync suffix) take a DomainSchema object.

FunctionDescription
getRecordTags / getRecordTagsSyncAll record tags
getRecordSchema / getRecordSchemaSyncRecord definition
getRequiredFields / getRequiredFieldsSyncRequired fields
getOptionalFields / getOptionalFieldsSyncOptional fields
getFieldConstraints / getFieldConstraintsSyncField constraints
describeRecord / describeRecordSyncStructured summary

Lookup

FunctionDescription
findDomainsByTag(tag)Reverse tag lookup
buildTagIndex()Force index rebuild

Validation

FunctionDescription
validateRecord(domainId, tag, data)Async validation
validateRecordSync(tag, data, domain)Sync validation
validateRecords(entries[])Batch validation
validateFields(data, constraints)Low-level field check

Offline Bundles

FunctionDescription
downloadRegistryBundle(opts?)Download all domains
serializeBundle(bundle)Bundle → JSON string
deserializeBundle(json)JSON string → bundle
loadBundleFromJSON(json)Parse JSON → bundle
applyBundle(bundle, registerFn)Register all locally
getBundleManifest(bundle)Lightweight summary

Error Classes

ClassWhen Thrown
DomainNotFoundErrorAPI returns 404
RegistryUnavailableErrorNetwork failure, timeout, 5xx
AccessDeniedErrorAPI returns 403

Taxonomy (@younndai/domains/taxonomy)

ExportDescription
SET_TYPESDomain set type data
CONFORMANCE_LEVELSConformance tier data
CONFORMANCE_ORDEROrdered level keys
VERIFICATIONVerification config data
DOMAIN_STATESDomain state definitions
TRUST_LEVELSTrust level definitions
resolveSetType(path, tier)Classify domain tier
resolveConformanceLevel(score)Score → conformance level
isInstitutional(path)Check institutional path
resolveTrustLevel(verified, score, setType)Composite trust signal
getFreshnessLabel(date)Freshness indicator

JSON Schema (@younndai/domains/json-schema)

ExportDescription
recordToJSONSchema(record, tag, domainId)Single record → JSON Schema
fieldToJSONSchema(constraint)Single field
domainToJSONSchemas(domain)All records
exportJSONSchemas(domainId)Async full domain

Adapter

ExportDescription
loadDomainFromJSON(raw)Convert raw JSON → DomainSchema

Normalize

ExportDescription
normalizeDomainId(id)Normalize domain ID
lookupWithFallback(id)Lookup with alias fallback
← ConfigurationFAQ →

On This Page

Constants
Bundled Domains
Registry Client
Configuration
Local Registry
Resolution
Introspection
Lookup
Validation
Offline Bundles
Error Classes
Taxonomy (@younndai/domains/taxonomy)
JSON Schema (@younndai/domains/json-schema)
Adapter
Normalize
Registry
Schema
Pricing
API
GitHub
YounndAI
YounndAIYou and AI, unifiedBuilt withNollamaNollama
© — YounndAI™. You and AI, unified. (pronounced “yoon-dye”). All rights reserved.