npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@setu-ts/common

v0.10.0

Published

Shared contracts, capability tokens, and pure codecs every Setu-TS package builds on

Readme

@setu-ts/common

IRuntimeServices.reportError? is the optional last-resort JSON error sink used by the kernel and errorHandler when no logger is registered. Implementations contain serialization and write failures. IErrorResponder.statusFor? purely predicts the owner's served status for a thrown value; request logging consumes it without reporting a clamp twice. A custom response hook can serve a different status, which the predictor does not reflect.

Shared types, interfaces, and capability tokens for the Setu-TS framework.

This package is the framework's contract layer: every other package depends on it, and it depends on nothing. It contains only interfaces, type aliases, constants, and pure zero-dependency type utilities — no runtime behavior beyond those.

Installation

# npm (pnpm add / yarn add / bun add work the same way)
npm install @setu-ts/common

# Deno
deno add npm:@setu-ts/common

What's Inside

| Area | Exports | | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Capability tokens | CAPABILITIES, createCapabilityToken(), CapabilityToken, StandardCapability | | Plugin contract | IPlugin, IPluginContext, IApplication, context APIs (IRouterApi, IMiddlewareApi, ILifecycleApi, …) | | Service registry | IServiceRegistry, RegisterOptions, ServiceFactory | | HTTP abstractions | IRequest, IResponse, IRequestContext, IMiddleware, MiddlewareFunction, RouteHandler, RouteDefinition, ResponseSnapshot, ResponseSnapshotInit | | Runtime abstraction | IRuntimeServices, IFileSystem, IHttpAdapter | | Optional DI | IContainer, Provider, ServiceScope | | Domain contracts | ILogger, IConfig, IValidationService, IHealthIndicator, IMetric, IJwtService, IOrmAdapter, ICacheStore, IEventBus, IMessageBroker, IQueue, ISecretManager, IAuditLogger, ICircuitBreaker, IStorage, IMailer, INotifier, IFeatureFlags, ITenantResolver | | Shared types | HttpMethod, RuntimePlatform, LogLevel, LifecyclePhase, HealthStatus, MetricType, PLUGIN_PRIORITY | | Utility types | Result<T, E> (ok, err, isOk, isErr, unwrap), Option<T> (some, none, isSome, isNone, fromNullable), PathPattern (createPathMatcher) |

Usage

Resolve capabilities by token, typed by the interfaces defined here:

import { CAPABILITIES, type ILogger, type IPlugin } from '@setu-ts/common';

export function MyPlugin(): IPlugin {
  return {
    name: 'my-plugin',
    version: '1.0.0',
    dependencies: [CAPABILITIES.LOGGER],
    register(ctx) {
      const logger = ctx.services.get<ILogger>(CAPABILITIES.LOGGER);
      logger.info('my-plugin registered');
    },
  };
}

Handle fallible operations without throwing:

import { err, ok, type Result } from '@setu-ts/common';

function parsePort(raw: string): Result<number, RangeError> {
  const port = Number(raw);
  return Number.isInteger(port) && port > 0 && port < 65536
    ? ok(port)
    : err(new RangeError(`Invalid port: ${raw}`));
}

Response snapshots

IResponse.snapshot().headers is the documented live Headers view for middleware and application code. ResponseSnapshot.responseInit is an @internal kernel-to-runtime optimization hint: adapters may use its snapshot-local header input while constructing a native response, including adding derived headers such as Content-Length. Do not consume it from application or middleware code.

Rules

  • Zero dependencies, always.
  • No runtime-specific APIs — ever.
  • Every export is public API: documented in the repository's PUBLIC_API.md, JSDoc'd, and covered by the backward-compatibility policy.

Ingress behaviours

IngressKind, IngressContext, IIngressBehavior, BehaviorLike, and composeBehaviorChain provide one transport-neutral, void-result behaviour chain for queue jobs, scheduler fires, broker deliveries, and WebSocket frames. An IngressContext contains only kind, name, payload, and the optional attempt, headers and consumer fields. Behaviours run in declared order; returning without next() short-circuits the native handler.

consumer (M109a) is a dispatch identity, not a capability or state bag: the subscription's SubscribeOptions.queue when given, otherwise subscription:<instance>:<n> on 'messaging', and the job name on 'queue'; absent on 'scheduler' and 'websocket'. It exists so per-consumer state (an idempotency record) is keyed per subscriber rather than per topic.

WebSocketUpgradeGuard and WebSocketGuardDecision are the separate, route-scoped handshake guard types. They run before an accepted upgrade; they are not frame behaviours.

Idempotency (M109a)

CAPABILITIES.IDEMPOTENCY ('idempotency') names the provider of the idempotency service. The common package holds only the contracts — the store port IIdempotencyStore and its IdempotencyClaimRequest, IdempotencyClaimResult and IdempotencySettleResult types, the service contract IIdempotencyService, the route option type IdempotentRouteOptions with IdempotencyKeySource and IdempotencyFingerprintSource, and the ingress option types IdempotentIngressOptions (with its shared half IdempotentIngressCommonOptions), IngressIdempotencyKeySource and IngressIdempotencyFingerprintSource. The mechanism — IdempotencyPlugin, idempotent(), idempotentIngress() and @Idempotent — lives in @setu-ts/idempotency-plugin. The guarantee is no duplicate processing within the limits of the store — it is not a single-execution guarantee.

Error diagnostics

serializeError() preserves ordinary error fields plus a deliberately small classifier allowlist: code, errno, syscall, severity, constraint, codeName, and statusCode. Only strings, finite numbers, and booleans are kept; objects such as driver query payloads and $metadata are omitted. Classifier strings are capped at 512 Unicode code points, aggregate errors keep at most eight direct members, and the complete serialized tree is bounded to 64 nodes. An aggregate that is truncated reports omittedErrorCount.

Redaction

Classification and redaction live in @setu-ts/common so every egress plugin shares one policy shape. A RedactionPolicy maps dot-path field patterns to a classification, and classifications to redactors:

| Member | Meaning | | ----------------- | --------------------------------------------------------------------------- | | fields | Dot-path patterns, each mapped to a classification or to a FieldRedaction | | redactors | Redactor selected by the classification a matched pattern carries | | defaultRedactor | Fallback used when redactors has no entry for that classification |

A fields value is either a classification string ('pii') or a FieldRedaction ({ classification, redactor? }). The object form lets one classification carry two treatments — mask the email, erase the name — without inventing a second classification string. redactValue and redactRecord select a redactor in this order: the matched field's own redactor, then redactors[classification], then defaultRedactor, then eraseRedactor.

The framework knows four classifications — DATA_CLASSIFICATIONS.PII ('pii'), PHI ('phi'), PCI ('pci') and SECRET ('secret') — and accepts any other string, which reaches redactors[<string>].

import { createMaskRedactor, createRedactionService, DATA_CLASSIFICATIONS } from '@setu-ts/common';

const service = createRedactionService({
  fields: {
    'user.email': {
      classification: DATA_CLASSIFICATIONS.PII,
      redactor: createMaskRedactor({ keep: 4 }),
    },
    'user.name': DATA_CLASSIFICATIONS.PII,
    'auth.token': DATA_CLASSIFICATIONS.SECRET,
  },
});

service.redactRecord({ user: { email: '[email protected]', name: 'Jane' } });

The precedence above is executable:

| Expression | Value | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | | (await import('@setu-ts/common')).createRedactionService({ fields: { email: { classification: 'pii', redactor: () => 'field' } }, redactors: { pii: () => 'class' } }).redactValue('email', 'x') | "field" | | (await import('@setu-ts/common')).createRedactionService({ fields: { name: { classification: 'pii' } }, redactors: { pii: () => 'class' } }).redactValue('name', 'x') | "class" | | (await import('@setu-ts/common')).createRedactionService({ fields: { name: { classification: 'pii' } }, defaultRedactor: () => 'default' }).redactValue('name', 'x') | "default" | | (await import('@setu-ts/common')).createRedactionService({ fields: { token: { classification: 'secret' } } }).redactValue('token', 'x') | "[Redacted]" | | (await import('@setu-ts/common')).createRedactionService({ fields: { 'user.email': { classification: 'pii', redactor: (await import('@setu-ts/common')).createMaskRedactor({ keep: 4 }) } } }).redactValue('user.email', '[email protected]') | "************.com" |

See the repository's PUBLIC_API.md for the FieldRedaction type, the classification table, and the full contract, and ARCHITECTURE.md for how this package fits the plugin architecture.

Exports

| Export | Kind | | ------------------------------------- | --------- | | assertPrimaryKeyUnchanged | function | | assertRealPathContained | function | | attachConnectionErrorReporter | function | | authorizationFailureInit | function | | brandErrorResponder | function | | causeMessage | function | | checkWritePrecondition | function | | compileRealtimeDiagnosticsAlias | function | | composeBehaviorChain | function | | contentTypeFor | function | | contextToTraceparent | function | | createCachedProbe | function | | createCapabilityToken | function | | createConnectionErrorReporter | function | | createMaskRedactor | function | | createPathMatcher | function | | createRealtimeObservationCollector | function | | createRedactionService | function | | deadlineRangeError | function | | decodeCursor | function | | decodeFrameData | function | | encodeCursor | function | | encodeFrameData | function | | eraseRedactor | function | | err | function | | errorResponderOf | function | | extractContextFromHeaders | function | | formEncodingOf | function | | fromNullable | function | | fullJitterDelay | function | | hasForbiddenAliasCharacter | function | | httpStatusHintOf | function | | isConnectionFault | function | | isConnectionFaultCode | function | | isErr | function | | isLexicallyContained | function | | isNone | function | | isOk | function | | isPromiseLike | function | | isScopeType | function | | isSome | function | | isValidPublishId | function | | isWebSocketUpgradeRequest | function | | isWorkerReadySignal | function | | isWorkerTaskReply | function | | isWorkerTaskRequest | function | | keysetPredicate | function | | mintNextCursor | function | | none | function | | ok | function | | parseCookie | function | | parseFormBody | function | | parseJsonBody | function | | parsePublishOptions | function | | parseTraceparentToContext | function | | publicRequestUrl | function | | publishHeaderNameProblem | function | | publishHeaderValueProblem | function | | publishIdProblem | function | | replaceLocale | function | | replacePrincipal | function | | replaceTenant | function | | requestOriginOf | function | | resolveKeysetSort | function | | resolveProbeTiming | function | | resolveRegistryEntry | function | | resolveResponseStatus | function | | respondWithAuthorizationFailure | function | | respondWithError | function | | responseMetadataOf | function | | scopedPermissionAbility | function | | scopedRoleAbility | function | | scopeFromParam | function | | scopeFromTenant | function | | sealRequestIdentity | function | | securityMetadataOf | function | | serializeCookie | function | | serializeError | function | | setUpgradeIntent | function | | some | function | | sortFingerprint | function | | splitWorkerEnv | function | | tenantBindingMismatch | function | | unwrap | function | | upgradeIntentOf | function | | validatedStateKey | function | | validationMetadataOf | function | | withDeadline | function | | withHttpStatusHint | function | | withResponseMetadata | function | | withSecurityMetadata | function | | withValidationMetadata | function | | DuplicateKeyError | class | | InvalidCursorError | class | | MalformedRequestBodyError | class | | OptionalDependencyUnavailableError | class | | PrimaryKeyChangeError | class | | ReconnectSupervisor | class | | UnsupportedFormEncodingError | class | | CAPABILITIES | const | | CLIENT_IP_STATE_KEY | const | | CREDENTIAL_SOURCE_STATE_KEY | const | | DATA_CLASSIFICATIONS | const | | DEDUPLICATION_ID_HEADER | const | | DEFAULT_SECRET_FIELD_PATTERNS | const | | ERROR_RESPONDER_BRAND | const | | ERROR_RESPONDER_STATE_KEY | const | | HTTP_STATUS_HINT | const | | IDEMPOTENCY_RECORD_KIND | const | | INBOX_RECORD_KIND | const | | MAX_PUBLISH_HEADER_NAME_BYTES | const | | MAX_PUBLISH_HEADER_VALUE_BYTES | const | | MAX_PUBLISH_HEADERS | const | | MAX_PUBLISH_ID_BYTES | const | | MAX_SCOPE_ID_LENGTH | const | | ORDERING_KEY_HEADER | const | | OUTBOX_RECORD_KIND | const | | PLUGIN_PRIORITY | const | | REQUEST_ORIGIN_STATE_KEY | const | | RESERVED_HEADER_NAMES | const | | RESERVED_HEADER_PREFIXES | const | | RESPONSE_METADATA | const | | SCOPED_RBAC_POLICY | const | | SECURITY_METADATA | const | | SESSION_STATE_KEY | const | | SESSION_TENANT_BINDING_KEY | const | | SESSION_TENANT_BINDING_STATE_KEY | const | | TELEMETRY_CONTEXT_OPAQUE | const | | TRACEPARENT_HEADER | const | | TRACESTATE_HEADER | const | | UPGRADE_INTENT | const | | VALIDATION_METADATA | const | | AddJobOptions | interface | | AuditEntry | interface | | AuthorizationDecisionObservation | interface | | AuthorizationDecisionStep | interface | | AuthorizationDiagnosticsBatch | interface | | BehaviorLike | interface | | BulkheadPolicy | interface | | CacheDiagnosticsRecord | interface | | CacheDiagnosticsResponse | interface | | CacheDiagnosticsSnapshot | interface | | CachedProbeOptions | interface | | CircuitBreakerPolicy | interface | | ClassProvider | interface | | ConfigDiagnosticsSnapshot | interface | | ConfigProvenanceEntry | interface | | ConnectionErrorReporter | interface | | ConnectionErrorReporterOptions | interface | | CookieAttributes | interface | | CqrsCommand | interface | | CqrsQuery | interface | | CqrsRequest | interface | | CursorPayload | interface | | DeadlineOptions | interface | | DiagnosticsBatch | interface | | DiagnosticsEdge | interface | | DiagnosticsEvent | interface | | DiagnosticsNode | interface | | DiagnosticsSnapshot | interface | | EncodedPayload | interface | | EnvVarSpec | interface | | Err | interface | | ErrorResponderTarget | interface | | ErrorResponseInit | interface | | EventDiagnosticsRecord | interface | | EventDiagnosticsResponse | interface | | EventDiagnosticsSnapshot | interface | | FactoryProvider | interface | | FieldRedaction | interface | | FlagContext | interface | | FormBody | interface | | FormFile | interface | | GraphqlConnectionInfo | interface | | GraphqlExecutionOutcome | interface | | GraphqlExecutionResult | interface | | GraphqlFormattedError | interface | | GraphqlOperationContext | interface | | GraphqlRequestParams | interface | | GrpcServiceDefinition | interface | | HandlerResult | interface | | HealthCheckResult | interface | | HealthDiagnosticsObservation | interface | | HealthDiagnosticsSnapshot | interface | | HealthReport | interface | | HttpStatusHint | interface | | IAdapterTransaction | interface | | IApplication | interface | | IAuditLogger | interface | | IAuthorizationDiagnosticsSource | interface | | IAuthorizationPolicyService | interface | | IAuthorizationService | interface | | IAuthService | interface | | IAuthSessionService | interface | | IAuthStrategy | interface | | ICacheDiagnosticsSource | interface | | ICacheStore | interface | | ICircuitBreaker | interface | | ICliApi | interface | | ICommandBus | interface | | ICommandHandler | interface | | IConfig | interface | | IConfigDiagnosticsSource | interface | | IContainer | interface | | ICounter | interface | | ICqrsFacade | interface | | IDatabaseAdapter | interface | | IDataSource | interface | | IDecoratorApi | interface | | IdempotencyClaimRequest | interface | | IdempotentIngressCommonOptions | interface | | IdempotentRouteOptions | interface | | IdempotentWithinOptions | interface | | IdempotentWithinResult | interface | | IDiagnosticsSource | interface | | IDnsResolver | interface | | IDomainEvent | interface | | IEnvironmentApi | interface | | IErrorResponder | interface | | IEventBus | interface | | IEventDiagnosticsSource | interface | | IFeatureFlags | interface | | IFileSystem | interface | | IGauge | interface | | IGrantSource | interface | | IGraphqlService | interface | | IGrpcService | interface | | IHealthApi | interface | | IHealthDiagnosticsSource | interface | | IHealthIndicator | interface | | IHealthService | interface | | IHistogram | interface | | IHttpAdapter | interface | | IIdempotencyService | interface | | IIdempotencyStore | interface | | IInboxStore | interface | | IIngressBehavior | interface | | IJob | interface | | IJwtService | interface | | ILifecycleApi | interface | | ILocalDiagnosticsListener | interface | | ILocalDiagnosticsListenerFactory | interface | | ILocalizer | interface | | ILogger | interface | | IMailer | interface | | IMessageBroker | interface | | IMetadataStore | interface | | IMetric | interface | | IMetricsApi | interface | | IMetricsService | interface | | IMiddleware | interface | | IMiddlewareApi | interface | | IMultiTenancyService | interface | | InboxFailureUpdate | interface | | InboxIds | interface | | InboxRecord | interface | | InboxStoreStats | interface | | IngressContext | interface | | INotifier | interface | | IOpenApiApi | interface | | IOrmAdapter | interface | | IOutboundHttpDiagnosticsSource | interface | | IOutboxStore | interface | | IOutboxWriteScope | interface | | IPipelineBehavior | interface | | IPlugin | interface | | IPluginContext | interface | | IPrincipal | interface | | IQueryBus | interface | | IQueryHandler | interface | | IQueue | interface | | IQueueDiagnosticsSource | interface | | IRealtimeBackplane | interface | | IRealtimeDiagnosticsSource | interface | | IRealtimeObservationCollector | interface | | IRedactionService | interface | | IRequest | interface | | IRequestContext | interface | | IResilienceService | interface | | IResponse | interface | | IRouterApi | interface | | IRuntimeServices | interface | | IScheduler | interface | | ISchedulerDiagnosticsSource | interface | | IScopedRoleSource | interface | | ISecretManager | interface | | IServiceDiscovery | interface | | IServiceRegistry | interface | | ISession | interface | | ISessionService | interface | | ISessionStore | interface | | ISpan | interface | | ISseConnection | interface | | ISseService | interface | | ISsrService | interface | | IStorage | interface | | IStorageDiagnosticsSource | interface | | ISubscription | interface | | ISummary | interface | | ITelemetryService | interface | | ITenant | interface | | ITenantDataStore | interface | | ITenantRepository | interface | | ITenantResolver | interface | | ITraceDiagnosticsSource | interface | | ITransaction | interface | | ITransactionalIdempotencyStore | interface | | ITransactionIsolationSupport | interface | | IValidationService | interface | | IViewEngine | interface | | IWebSocketConnection | interface | | IWebSocketService | interface | | IWebSocketTransport | interface | | IWorkerHandle | interface | | IWorkerHost | interface | | IWorkerPool | interface | | JwtSignOptions | interface | | LocalDiagnosticsListenerOptions | interface | | MailMessage | interface | | MaskOptions | interface | | MessageMetadata | interface | | MetricConfig | interface | | MetricOptions | interface | | MiddlewareOptions | interface | | None | interface | | NormalizedQuery | interface | | NotificationMessage | interface | | Ok | interface | | OutboundHttpDiagnosticsRecord | interface | | OutboundHttpDiagnosticsResponse | interface | | OutboundHttpDiagnosticsSnapshot | interface | | OutboxKey | interface | | OutboxRecord | interface | | OutboxStoreStats | interface | | PageResult | interface | | ParsedPublishOptions | interface | | PendingSignIn | interface | | PickOptions | interface | | PluralForms | interface | | PolicyAbilityInfo | interface | | PolicyDefinition | interface | | ProbeTiming | interface | | ProcessOptions | interface | | ProviderOptions | interface | | PublishOptions | interface | | PutObjectOptions | interface | | QueueAttemptObservation | interface | | QueueDepthObservation | interface | | QueueDiagnosticsBatch | interface | | QueueDiagnosticsSourceBatch | interface | | QueueDiagnosticsSourceStatus | interface | | QueueSourceAttemptObservation | interface | | QueueSourceDepthObservation | interface | | RbacConfig | interface | | RealtimeDiagnosticsGauges | interface | | RealtimeDiagnosticsOptions | interface | | RealtimeDiagnosticsRecord | interface | | RealtimeDiagnosticsResponse | interface | | RealtimeDiagnosticsSnapshot | interface | | RealtimeFrame | interface | | RealtimeGaugeReading | interface | | RealtimeObservationCollectorInit | interface | | ReconnectSupervisorOptions | interface | | RecurringOptions | interface | | RedactionContext | interface | | RedactionPolicy | interface | | RegisterOptions | interface | | RequestOptions | interface | | RetryOptions | interface | | RetryPolicy | interface | | RoleDefinition | interface | | RoomBroadcastOptions | interface | | RouteDefinition | interface | | RouteInfo | interface | | RouteResponseMetadata | interface | | RouteSchema | interface | | RouteSecurityMetadata | interface | | RouteValidationMetadata | interface | | ScheduledJob | interface | | ScheduleOptions | interface | | SchedulerDiagnosticsRecord | interface | | SchedulerDiagnosticsResponse | interface | | SchedulerDiagnosticsSnapshot | interface | | ScopedGrant | interface | | ScopedRbacTarget | interface | | ScopedRoleDefinition | interface | | ScopeRef | interface | | SerializedError | interface | | ServiceInstance | interface | | SignedUrlOptions | interface | | SignInOptions | interface | | Some | interface | | SpanContext | interface | | SpanOptions | interface | | SplitWorkerEnv | interface | | SrvRecord | interface | | SseChannel | interface | | SseMessage | interface | | StartOptions | interface | | StatResult | interface | | StorageDiagnosticsRecord | interface | | StorageDiagnosticsResponse | interface | | StorageDiagnosticsSnapshot | interface | | SubscribeOptions | interface | | TaskPoolStats | interface | | TelemetryContext | interface | | TraceDiagnosticsBatch | interface | | TraceLinkRelationship | interface | | TraceObservation | interface | | TraceparentSource | interface | | TraceSamplerDescription | interface | | TransactionalIdempotencyClaim | interface | | TransactionalIdempotencyRecord | interface | | TransactionOptions | interface | | ValidationIssue | interface | | ValidationMiddlewareOptions | interface | | ValueProvider | interface | | WebSocketCloseEvent | interface | | WebSocketConnectionContext | interface | | WebSocketEventSink | interface | | WebSocketHandlers | interface | | WebSocketRoom | interface | | WebSocketRouteOptions | interface | | WebSocketUpgradeIntent | interface | | WorkerErrorShape | interface | | WorkerReadySignal | interface | | WorkerRunOptions | interface | | WorkerTaskReply | interface | | WorkerTaskRequest | interface | | WrapOptions | interface | | AnonymousPolicyCheck | type | | AuthMethod | type | | AuthorizationCoverage | type | | AuthorizationDecisionOperation | type | | AuthorizationDecisionReason | type | | AuthorizationFailure | type | | AuthorizationSourceState | type | | BackoffStrategy | type | | CacheDiagnosticsOperation | type | | CapabilityToken | type | | ChannelSendResult | type | | CircuitState | type | | CliCommandHandler | type | | Component | type | | ConfigProvenanceOrigin | type | | ConfigSchemaEffect | type | | ConnectionErrorLogger | type | | Constructor | type | | CursorValue | type | | DataClassification | type | | DecoratorHandler | type | | DiagnosticsEdgeKind | type | | DiagnosticsEventKind | type | | DiagnosticsEventOutcome | type | | DiagnosticsEventStage | type | | DiagnosticsFailureCode | type | | DiagnosticsInspectorState | type | | DiagnosticsNodeKind | type | | DiagnosticsSnapshotState | type | | EntityKey | type | | EventDiagnosticsCoverage | type | | EventDiagnosticsState | type | | EventHandler | type | | EventObservationOperation | type | | FilterComparison | type | | FilterExpression | type | | FilterOperator | type | | FormEncoding | type | | FormValue | type | | GrantQuery | type | | GraphqlSubscriptionOutcome | type | | GrpcServingStatus | type | | HardenedCall | type | | HealthIndicatorFn | type | | HealthObservationState | type | | HealthStatus | type | | HttpMethod | type | | IdempotencyClaimResult | type | | IdempotencyFingerprintSource | type | | IdempotencyKeySource | type | | IdempotencySettleResult | type | | IdempotentIngressOptions | type | | InboxReleaseOutcome | type | | InboxStatus | type | | IngressIdempotencyFingerprintSource | type | | IngressIdempotencyKeySource | type | | IngressKind | type | | ITenantIsolationStrategy | type | | JobProcessor | type | | JsonValue | type | | LifecyclePhase | type | | LoadBalanceStrategy | type | | LocalizationMessage | type | | LogLevel | type | | LogMetadata | type | | MessageCatalogue | type | | MessageHandler | type | | MetricType | type | | MiddlewareFunction | type | | NextFunction | type | | Option | type | | OrderDirection | type | | OutboundHttpStatusClass | type | | OutboxStatus | type | | OutboxTransition | type | | PathPattern | type | | PluginPriority | type | | PolicyAbility | type | | PolicyCheck | type | | PolicyRef | type | | PolicyTarget | type | | Provider | type | | QueueDepthCoverage | type | | QueueDepthCycleCoverage | type | | QueueDepthScope | type | | QueueDiagnosticsFailure | type | | QueueProcessorOutcome | type | | QueueSettlementState | type | | QueueSourceFailure | type | | QueueSourceState | type | | RealtimeFrameHandler | type | | RealtimeFrameKind | type | | RealtimeGaugeState | type | | RealtimeObservationOperation | type | | RealtimeSourceKind | type | | ReconnectMode | type | | Redactor | type | | RegistryFactory | type | | RequestHandler | type | | RequestOrigin | type | | ResilientCall | type | | ResponseSnapshot | type | | ResponseSnapshotInit | type | | Result | type | | RouteHandler | type | | RpcFetchHandler | type | | RuntimePlatform | type | | RuntimeSignal | type | | SchedulerBackoff | type | | SchedulerDiagnosticsOperation | type | | SchedulerJobHandler | type | | ScopeSource | type | | SecurityRequirement | type | | ServerHandle | type | | ServiceFactory | type | | ServiceOutcome | type | | ServiceScope | type | | SessionData | type | | SessionView | type | | SignInOutcome | type | | SpanAttributeValue | type | | SpanKind | type | | SpanStatus | type | | StandardCapability | type | | StorageDiagnosticsOperation | type | | TimerHandle | type | | TraceCoverage | type | | TraceInstrumentationKind | type | | TraceOutcome | type | | TraceParentVisibility | type | | TraceSourceState | type | | TransactionIsolationLevel | type | | Unsubscribe | type | | ValidationTarget | type | | WebSocketGuardDecision | type | | WebSocketReadyState | type | | WebSocketUpgradeDecision | type | | WebSocketUpgradeGuard | type | | WebSocketUpgradeRouter | type | | WritePrecondition | type | | WritePreconditionCheck | type |

Generated from the package barrel by pnpm run docs:exports; pnpm run check:docs fails when it drifts.

Readiness and dependency outages (M113b)

isConnectionFault(error: unknown): boolean walks up to five cause objects, stops at cycles, and recognises the eight node/net connection-fault codes plus measured ioredis 5 outage rejections. It never mutates errors. Command errors such as WRONGTYPE remain unclassified.

isConnectionFaultCode(code: unknown): boolean returns true only for a string in the module-private set: ECONNREFUSED, ECONNRESET, ETIMEDOUT, EHOSTUNREACH, ENETUNREACH, ENOTFOUND, EAI_AGAIN, EPIPE. Use the predicate instead of the removed, unreleased CONNECTION_FAULT_CODES export; callers cannot mutate the classification vocabulary.