/** * Central control-plane module. * * Hosts the central server and its in-memory control-plane adapters, separate * from the local session WebUI server (src/webui) and from the local * control-plane adapter (src/infrastructure/localControlPlane). The central * server never couples to a local repository session * (docs/enterprise-control-plane.md §3.3, §4, §16.4). Auth + RBAC for central * routes lives in `./auth` (dev-token adapter today; OAuth/OIDC is a future * adapter boundary — §13). */ export { createMateriaCentralServer, type MateriaCentralServer, type MateriaCentralServerOptions, } from "./server/index.js"; export { createInMemoryCentralPorts, type InMemoryCentralPortsOptions, } from "./controlPlane/inMemoryCentralPorts.js"; export { createInMemoryCentralCatalogRepository, hashCentralContent, type CentralCatalogRepository, type InMemoryCentralCatalogRepositoryOptions, CatalogConflictError, CatalogNotFoundError, CatalogVersionMismatchError, CentralCatalogWriteError, } from "./controlPlane/centralCatalogRepository.js"; export { createInMemoryModelPolicyRepository, type CentralModelPolicyRepository, type InMemoryModelPolicyRepositoryOptions, CentralModelPolicyWriteError, ModelPolicyConflictError, ModelPolicyNotFoundError, ModelPolicyVersionMismatchError, } from "./controlPlane/inMemoryModelPolicyRepository.js"; export { CENTRAL_SERVICE_ID, CENTRAL_CONTROL_PLANE_SCOPE, CENTRAL_IN_MEMORY_EVENT_CAP, nowIso, } from "./controlPlane/shared.js"; export { handleMateriaCentralRequest, type MateriaCentralRouteDeps, } from "./server/routes.js"; export { handleCentralCatalogRoute, type CentralCatalogRouteDeps, } from "./server/catalog.js"; export { handleCentralModelPolicyRoute, type CentralModelPolicyRouteDeps, } from "./server/modelPolicy.js"; export { handleCentralModelCatalogRoute, type CentralModelCatalogRouteDeps, } from "./server/modelCatalog.js"; export { handleCentralTelemetryRoute, type CentralTelemetryRouteDeps, } from "./server/telemetry.js"; export { normalizeEnrichedEvent, normalizeTelemetryIngestBody, type NormalizedTelemetryIngest, type NormalizeTelemetryIngestOptions, type NormalizeTelemetryIngestResult, } from "./controlPlane/telemetryIngest.js"; export { sendJson, readJsonBody, isPlainObject, errorMessage, } from "./server/http.js"; // Central auth + RBAC (dev-token adapter + role registry + route guard). export { BEARER_SCHEME, readBearerToken, type AuthAdapter, type AuthFailureReason, type AuthRequest, type AuthRequestHeaders, type AuthResolution, DEFAULT_CENTRAL_ROLE_REGISTRY, DEFAULT_CENTRAL_ROLES, createRoleRegistry, type RoleRegistry, DEFAULT_DEV_TOKEN_ADMIN, DEFAULT_DEV_TOKEN_READER, DEFAULT_DEV_TOKEN_SINK, DEFAULT_DEV_TOKEN_TENANT_ID, DEV_TOKEN_METHOD_KIND, createDevTokenAuthAdapter, defaultDevTokenPrincipals, defaultDevTokensReferenceDefaultRoles, type DevTokenAuthAdapterOptions, type DevTokenPrincipal, type DevTokenPrincipalConfig, FORBIDDEN_ERROR, UNAUTHORIZED_ERROR, checkPermission, requirePermission, sendForbidden, sendUnauthorized, type CentralAuth, type CentralAuthOptions, type RequirePermissionInput, type RequirePermissionResult, createDefaultCentralAuth, } from "./auth/index.js";