Package Exports and Reference
This page summarizes the public exports from src/index.ts so the docs site
matches the package surface more closely.
Top-level classes
LioranDBClientMongoClientDbCollectionFindCursorAggregationCursorAuthServiceUsersServiceRolesServiceClusterServiceBackupsServiceSettingsServiceTokenManagerHttpTransportHttpDataTransportGrpcDataTransport
Top-level config helpers
parseConnectionString()normalizeMongoClientConfig()normalizeLioranDBClientConfig()isNormalizedConfig()defaultSchemeForProtocol()
Exported auth types
AuthTokensAuthLoginResponsePrincipalSessionStatusSessionView
Exported common config and diagnostic types
ClientTransportClientProtocolConnectionStringSchemeMutableUriOptionsImmutableUriOptionsMutableMongoClientConfigImmutableMongoClientConfigTransportResponseDiagnosticsTransportResponseObserverDiagnosticHeaderAccessorDeepReadonly
Exported CRUD and cursor types
DocumentJsonPrimitiveJsonObjectJsonArrayJsonValueWithId<TSchema>OptionalUnlessRequiredId<TSchema>Filter<TSchema>Projection<TSchema>SortDirectionSortEntrySortFindOptions<TSchema>AggregateOptionsCursorOperationOptionsWriteOptionsUpdateOptionsInsertOneResultInsertManyResultUpdateResultDeleteResultCreateCollectionResultDropCollectionResult
Exported transport types
HttpApiErrorBodyHttpApiEnvelopeHttpSuccessEnvelopeHttpErrorEnvelopeHttpRequestOptionsCursorPageStateFindPageLioranDataTransportTransportCollectionContext
Exported admin and management types
PermissionNameRoleGrantScopePermissionGrantRoleRecordUserRecordCreateUserInputUpdateUserInputResetUserPasswordInputCreateRoleInputUpdateRoleInputLiveStatusStateTransitionReadyStatusServerInfoNodeConfigViewClusterSummaryClusterPartitionPlacementPartitionHealthViewBackupCreateInputBackupJobTypeBackupJobStatusBackupScopeScheduleTypeBackupScheduleBackupRetentionSettingsBackupSettingsCorsSettingsBackupJobRecordRestoreInputRestoreJobStatusRestoreValidationResultsNodeRestoreProgressRestoreJobRecordRestoreResponseLimitOverridePerformanceSettingsLimitSettingsRedactedSettingsMapAuthSessionListPermissionsListUserListRoleListBackupJobListClusterHealthSnapshotLoginPayload
Exported errors
Base error layer
LioranDriverErrorApiErrorAuthErrorNetworkErrorTimeoutErrorConfigurationErrorSerializationError
Auth-specific errors
AuthenticationErrorAuthorizationErrorPasswordChangeRequiredErrorSessionExpiredError
Cursor and client lifecycle errors
ClientClosedErrorCursorClosedErrorCursorInitializedError
Connection and protocol errors
ConnectionErrorDnsResolutionErrorRequestAbortedErrorTlsErrorProtocolError
Server-side classified errors
LioranServerErrorConflictErrorDuplicateKeyErrorNotFoundErrorServerNotReadyErrorServerOverloadedErrorServerUnavailableErrorValidationError
Exported constants
DRIVER_VERSIONDRIVER_ERROR_CODESDRIVER_WARNING_CODES
Practical examples of helper exports
defaultSchemeForProtocol("https")
Returns:
Helper result
liorandb+https
isNormalizedConfig(value)
Useful when a function may receive either raw options or already-normalized config and needs to branch safely.
TransportResponseObserver
Use this when you need request-by-request diagnostics without patching the driver internals.
OptionalUnlessRequiredId<TSchema>
This type lets inserts omit _id when your schema does not require it, while
still preserving _id if your schema explicitly defines it.
What is intentionally not documented as public API
The package contains many internal helpers that are not exported from
src/index.ts, including:
- low-level URL utilities
- serialization internals
- error-classification internals
- transport implementation internals
- service-local helper functions such as
withTimeout()and role grant mappers
Those are useful for understanding the codebase, but they are not part of the promised top-level package surface.