Skip to content
@archipel/platform-core Auto-generated

@breadstone/archipel-platform-core

Namespaces

NamespaceDescription
ISseEventDataRepresents the data of a Server-Sent Event.

Classes

ClassDescription
AppHealthIndicatorHealth indicator for the application.
BcryptServiceThe BcryptService class. Represents the service that provides bcrypt operations.
BlobResourceStrategyStrategy for loading resources from blob storage.
BooleanUtilsBoolean Utility Class. This class provides static methods to parse and format boolean values.
CasingInterceptorThis interceptor is responsible for converting snake_case or other casing styles in the request body to camelCase before passing them to controllers. It also handles the transformation of the response if needed.
CatchUtils-
ConfigModuleThe ConfigModule class.
ConfigRegistryA static, global registry that collects all configuration keys registered by platform libraries. This enables a central overview of every environment variable the application depends on, grouped by source module.
ConfigService-
ConfigStrategyBaseThe ConfigStrategyBase class. Represents the base class for configuration strategies.
ContentTemplateEngineThe ContentTemplateEngine class.
CryptoServiceThe CryptoService class. Represents the service that provides cryptographic operations.
CUIDGeneratorCUID Generator class
DateTimeUtilsTimeSpan Utility Class. Provides methods to parse and format time span values.
DeviceParserServiceThe DeviceParserService class.
EmbeddedResourceStrategyStrategy for loading embedded resources from memory.
EnvironmentConfigStrategyThe EnvironmentConfigStrategy class.
ErrorTemplateServiceService for rendering error page templates.
EventHubProvides a strongly typed event hub that can publish and subscribe to events.
EventModuleModule that provides event hub services.
FileConfigStrategyThe FileConfigStrategy class.
FileResourceStrategyStrategy for loading resources from the local file system.
GlobalExceptionFilterA global exception filter that handles all uncaught exceptions in the application. Returns HTML error pages for browser requests and JSON for API requests.
GUIDGeneratorGUID Generator class
HealthModule-
HealthOrchestratorOrchestrates execution of all registered health indicators and aggregates their results.
HostModuleThe HostModule provides host-related services globally.
HostServiceThe HostService class.
HttpLoggerMiddleware-
IdentifierModule-
IdGeneratorBaseAbstract base class for ID Generators
IntelligenceCapabilityRegistrarBaseProvides a reusable registration flow that allows feature modules to contribute capabilities to the global intelligence registry while keeping their implementation details private.
IntelligenceCapabilityRegistryCentral registry responsible for resolving intelligence capabilities based on intent metadata.
IntelligenceModuleCore module exposing the shared intelligence infrastructure to feature modules.
IntelligenceTextGeneratorExecutes text completions using the configured intelligence provider.
LimitRequestSizeMiddleware-
LocalizedTextRequestRequest DTO for a single localized text entry.
LocalizedTextResponseBase class for localized text responses.
MappingBuilderA mapping builder that uses the mapping service to register maps.
MappingModuleModule that provides mapping services and allows registration of mapping profiles.
MappingNotRegisteredErrorThrown when a keyed mapping is requested but not registered.
MappingProfileBaseBase class for mapping profiles to simplify implementation.
MappingServiceCentral mapping registry supporting keyed & type-based mappings.
MemoryLayeredCacheIn-memory layered cache implementation.
NoopCacheMetricsRecorderNo-op implementation used when no metrics backend is configured.
NormalizedUtilsUtility functions for normalizing data.
OtpServiceOTP service implementation backed by otplib v13.
PageableRequestBase class describing pagination query parameters shared across endpoints.
PageableResponseBase class describing pagination metadata returned alongside list payloads.
ProblemDetailExceptionA NestJS HttpException that represents a Problem Detail as per RFC 7807.
ProblemDetailExceptionFilterA NestJS exception filter that transforms exceptions into Problem Details compliant responses as per RFC 7807.
QuantityResponseBase class for quantity responses.
RedisLayeredCacheGeneric layered cache contract (DB first, then memory, then external fetcher).
ResourceManagerCentral manager for loading resources from various sources. Supports multiple strategies (file, blob, embedded) with caching.
ResourceModuleModule providing the ResourceManager.
ResponseReturn-
SseHubRepresents a server-sent event service.
SseModuleRepresents the SseModule class.
TimeStampResponseThe base class for all time stamp responses.
TypeMappingNotRegisteredErrorThrown when a type mapping is requested but not registered.
UserAvatarGeneratorServiceService for generating GitHub-style identicon avatars.
UserNameGeneratorServiceRandom user name generator class
UUIDGeneratorUUID Generator class

Interfaces

InterfaceDescription
IBlobResourceStrategyConfigConfiguration for the blob resource strategy.
IBlobServiceAdapterMinimal blob service interface to avoid circular dependencies.
ICacheMetricsRecorderMetrics recorder for cache operations. Implementations can forward to Prometheus, OpenTelemetry, etc.
ICacheStatsCache statistics.
IConfigKeyA type-safe config key that encodes both the config key and the type of its value.
IConfigModuleOptionsThe IConfigModuleOptions interface.
IConfigRegistryEntryDescribes a registered configuration entry, including its source module and whether the entry is required or optional (with a default value).
IDeviceInfoInterface for parsed device information
IErrorPageParamsParameters for generating error page content.
IEventKeyRepresents a strongly typed event key that encodes the payload type.
IEventMapRepresents the shape of the event map used by the EventHub.
IFileResourceStrategyConfigConfiguration for the file resource strategy.
IHealthCheckResultRepresents the result of a health check indicator.
IHealthIndicatorDefines the contract for a health indicator that can be orchestrated.
IHostContentParamsParameters for generating host content.
IIdGeneratorInterface for ID generators
IIntelligenceArtifactRepresents a structured artifact returned by a capability.
IIntelligenceCapabilityAbstraction implemented by all capability providers.
IIntelligenceCapabilityMetadataMetadata describing a capability for orchestration and analytics purposes.
IIntelligenceCapabilityPayloadPayload forwarded to capabilities for execution.
IIntelligenceCapabilityRegistryRegistry abstraction responsible for resolving capabilities.
IIntelligenceCapabilityResultRepresents the outcome produced by a capability execution.
IIntelligenceCompletionUsageCaptures usage telemetry returned by the intelligence provider.
IIntelligenceContextDescribes the context aggregated before routing a request to a capability.
IIntelligenceContextBuilderResponsible for composing the context supplied to capabilities.
IIntelligenceConversationMessageSnapshotRepresents a single message returned within a conversation snapshot.
IIntelligenceConversationSnapshotRepresents a lightweight snapshot of a conversation used for context building.
IIntelligenceFollowUpQuestionRepresents a follow-up question suggested to keep the dialogue active.
IIntelligenceIntentRepresents the structured intent resolved from a user message.
IIntelligenceIntentEntityRepresents an entity extracted from a resolved intelligence intent.
IIntelligenceMessageModelRepresents a normalized message stored in persistence.
IIntelligenceMessagePayloadCarries the payload submitted when messaging the intelligence entrypoint.
IIntelligencePromptRepresents the input supplied to the intelligence text generator.
IIntelligencePromptMessageDescribes a normalized message used for text generation prompts.
IIntelligenceProviderConfigurationDescribes the resolved configuration for the intelligence provider.
IIntelligenceResponseMessageRepresents a single assistant message returned by a capability.
IIntelligenceTextCompletionRepresents the normalized completion result produced by the intelligence provider.
IIntelligenceTextGenerationOptionsOptions that can be supplied when generating text with the intelligence provider.
IIntelligenceTextGeneratorAbstraction responsible for executing text completions using the configured provider.
ILayeredCacheGeneric layered cache contract (DB first, then memory, then external fetcher).
ILayeredCacheOptionsIn-memory layered cache: memory (LRU+TTL+SWR) + async loader fallback.
IMappingBuilderDefines the interface for a mapping builder.
IMappingKeyType-safe mapping key that encodes both input and output types. This ensures compile-time type safety when using the mapping service.
IMappingProfileDefines the interface for a mapping profile.
IOtpServiceAbstraction over OTP (One-Time Password) operations.
IOtpUriOptionsOptions for generating an OTP authentication URI (otpauth://).
IRedisLayeredCacheOptionsSkeleton Redis-backed cache (placeholder; implement ioredis logic later). Provides same contract as in-memory layered cache; currently delegates to provided loader only.
IResourceManagerConfigConfiguration for the ResourceManager.
IResourceMetadataMetadata about a resource.
IResourceResultResult of loading a resource.
IResourceStrategyStrategy for loading resources from a specific source.
ISseEventDataRepresents the data of a Server-Sent Event.
ISseHubRepresents a server-sent event service.

Type Aliases

Type AliasDescription
CamelCase-
IntelligenceConversationMessageRoleRepresents the union of supported conversation message roles.
IntelligenceProviderNameRepresents the union of supported intelligence provider identifiers.
ProblemDetailA Problem Detail object as per RFC 7807.
ProblemDetailTypeUrlResolverA function that resolves a type URL for a given HTTP status code and title.
SetOptionalSets the specified keys of T as optional.
StringValue-

Variables

VariableDescription
APP_PORTHTTP port the application listens on.
APP_URLBase URL the application is served from (e.g. https://example.com).
APP_VERSIONSemantic version of the running application (e.g. 1.2.3).
HEALTH_INDICATORS_TOKENInjection token for registered health indicators
ID_GENERATOR_TOKENInterface for ID generators
INTELLIGENCE_MAX_OUTPUT_TOKENSMaximum number of output tokens for the AI model.
INTELLIGENCE_MODELAI model identifier to use for text generation.
INTELLIGENCE_TEMPERATURESampling temperature for the AI model.
INTELLIGENCE_TOP_PTop-p (nucleus sampling) for the AI model.
IntelligenceConversationMessageRolesEnumerates the conversation roles used for contextual snapshots and messages.
IntelligenceProviderNamesEnumerates the supported model providers powering the intelligence pipeline.
IpAddressExtracts the client IP address from the current HTTP request. Handles IPv6 (::1), proxy headers (X-Forwarded-For), and normalizes the output.
IS_PUBLIC_KEY-
LangExtracts the first language token from the Accept-Language header.
NODE_ENVThe current Node.js environment (development, production, etc.).
OTP_SERVICE_TOKENInjection token for IOtpService.
PLATFORM_CORE_CONFIG_ENTRIESAll configuration entries required by platform-core.
TOTP_EPOCH_TOLERANCETOTP verification tolerance expressed in seconds (otplib v13 epochTolerance).
UserAgentExtracts the User-Agent header from the incoming HTTP request.

Functions

FunctionDescription
createConfigKeyCreates a type-safe config key.
createEventKeyCreates a branded event key for the EventHub.
createMappingKeyCreates a type-safe mapping key.
envMarker function for environment strings.
getMimeTypeByFileNameOrExtensionGet MIME type by file name or extension.
PublicThe Public decorator.

Released under the MIT License.