tempest-express-sdk 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/chunk-4QZZGHGV.js +6 -0
- package/dist/{chunk-PKUUVK7K.js.map → chunk-4QZZGHGV.js.map} +1 -1
- package/dist/cli.cjs +2 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +218 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +161 -7
- package/dist/index.d.ts +161 -7
- package/dist/index.js +216 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-PKUUVK7K.js +0 -6
package/dist/index.d.cts
CHANGED
|
@@ -1291,8 +1291,9 @@ declare class HTTPClient {
|
|
|
1291
1291
|
* System metrics, mirroring `utils.metrics.MetricsUtils`.
|
|
1292
1292
|
*
|
|
1293
1293
|
* Reads CPU, memory and process stats from Node's built-in `node:os` /
|
|
1294
|
-
* `process` — no native dependency
|
|
1295
|
-
*
|
|
1294
|
+
* `process` — no native dependency. Optional GPU metrics shell out to
|
|
1295
|
+
* `nvidia-smi` (returns `[]` when unavailable). Includes a Prometheus
|
|
1296
|
+
* text-format exporter.
|
|
1296
1297
|
*/
|
|
1297
1298
|
/** CPU load metrics. */
|
|
1298
1299
|
interface CPUMetrics {
|
|
@@ -1316,6 +1317,19 @@ interface MemoryMetrics {
|
|
|
1316
1317
|
/** Resident set size of the current process. */
|
|
1317
1318
|
processRss: number;
|
|
1318
1319
|
}
|
|
1320
|
+
/** A single GPU's metrics (from `nvidia-smi`). */
|
|
1321
|
+
interface GPUMetrics {
|
|
1322
|
+
/** GPU index. */
|
|
1323
|
+
index: number;
|
|
1324
|
+
/** GPU utilization percent. */
|
|
1325
|
+
utilizationPercent: number;
|
|
1326
|
+
/** Used memory in MiB. */
|
|
1327
|
+
memoryUsedMb: number;
|
|
1328
|
+
/** Total memory in MiB. */
|
|
1329
|
+
memoryTotalMb: number;
|
|
1330
|
+
/** Core temperature in °C. */
|
|
1331
|
+
temperatureC: number;
|
|
1332
|
+
}
|
|
1319
1333
|
/** A snapshot of system + process metrics. */
|
|
1320
1334
|
interface SystemMetrics {
|
|
1321
1335
|
cpu: CPUMetrics;
|
|
@@ -1330,17 +1344,26 @@ declare function readMemory(): MemoryMetrics;
|
|
|
1330
1344
|
/** Read a full system snapshot. */
|
|
1331
1345
|
declare function readSystem(): SystemMetrics;
|
|
1332
1346
|
/**
|
|
1333
|
-
*
|
|
1347
|
+
* Read GPU metrics via `nvidia-smi`. Returns `[]` when the tool is absent or
|
|
1348
|
+
* fails (no GPU, not installed) — never throws.
|
|
1334
1349
|
*
|
|
1335
|
-
* @
|
|
1350
|
+
* @returns One {@link GPUMetrics} per detected GPU.
|
|
1351
|
+
*/
|
|
1352
|
+
declare function readGpus(): Promise<GPUMetrics[]>;
|
|
1353
|
+
/**
|
|
1354
|
+
* Render metrics as Prometheus text-format.
|
|
1355
|
+
*
|
|
1356
|
+
* @param snapshot - A system snapshot (defaults to a fresh {@link readSystem}).
|
|
1357
|
+
* @param gpus - Optional GPU metrics to append (from {@link readGpus}).
|
|
1336
1358
|
* @returns The Prometheus exposition text.
|
|
1337
1359
|
*/
|
|
1338
|
-
declare function toPrometheus(snapshot?: SystemMetrics): string;
|
|
1360
|
+
declare function toPrometheus(snapshot?: SystemMetrics, gpus?: GPUMetrics[]): string;
|
|
1339
1361
|
/** Stateless system-metrics reader + Prometheus exporter. */
|
|
1340
1362
|
declare const MetricsUtils: {
|
|
1341
1363
|
readonly cpu: typeof readCpu;
|
|
1342
1364
|
readonly memory: typeof readMemory;
|
|
1343
1365
|
readonly system: typeof readSystem;
|
|
1366
|
+
readonly gpus: typeof readGpus;
|
|
1344
1367
|
readonly toPrometheus: typeof toPrometheus;
|
|
1345
1368
|
};
|
|
1346
1369
|
|
|
@@ -1635,6 +1658,45 @@ interface SessionMiddlewareOptions {
|
|
|
1635
1658
|
*/
|
|
1636
1659
|
declare function makeSessionMiddleware(service: SessionService, options?: SessionMiddlewareOptions): RequestHandler;
|
|
1637
1660
|
|
|
1661
|
+
/**
|
|
1662
|
+
* Redis-backed {@link SessionStore} for multi-replica deployments.
|
|
1663
|
+
*
|
|
1664
|
+
* Sessions live under `sess:<idHash>` with a Redis TTL; a per-user set
|
|
1665
|
+
* (`sess:user:<userId>`) indexes them so `listByUser`/`deleteByUser` work
|
|
1666
|
+
* without scanning. Takes an injected client (node-redis v4 compatible) so the
|
|
1667
|
+
* SDK never hard-depends on `redis`. Expired keys drop via TTL; stale index
|
|
1668
|
+
* entries are pruned lazily on read.
|
|
1669
|
+
*/
|
|
1670
|
+
|
|
1671
|
+
/** The subset of a node-redis v4 client this store needs. */
|
|
1672
|
+
interface SessionRedisLike {
|
|
1673
|
+
get(key: string): Promise<string | null>;
|
|
1674
|
+
set(key: string, value: string, options?: {
|
|
1675
|
+
EX?: number;
|
|
1676
|
+
}): Promise<unknown>;
|
|
1677
|
+
del(key: string): Promise<unknown>;
|
|
1678
|
+
sAdd(key: string, member: string): Promise<unknown>;
|
|
1679
|
+
sRem(key: string, member: string): Promise<unknown>;
|
|
1680
|
+
sMembers(key: string): Promise<string[]>;
|
|
1681
|
+
}
|
|
1682
|
+
/** Redis-backed session store. */
|
|
1683
|
+
declare class RedisSessionStore implements SessionStore {
|
|
1684
|
+
private readonly client;
|
|
1685
|
+
private readonly prefix;
|
|
1686
|
+
/**
|
|
1687
|
+
* @param client - A connected node-redis v4 (or compatible) client.
|
|
1688
|
+
* @param prefix - Key prefix. Default `sess:`.
|
|
1689
|
+
*/
|
|
1690
|
+
constructor(client: SessionRedisLike, prefix?: string);
|
|
1691
|
+
private key;
|
|
1692
|
+
private userKey;
|
|
1693
|
+
get(idHash: string): Promise<Session | null>;
|
|
1694
|
+
set(session: Session): Promise<void>;
|
|
1695
|
+
delete(idHash: string): Promise<void>;
|
|
1696
|
+
deleteByUser(userId: string): Promise<number>;
|
|
1697
|
+
listByUser(userId: string): Promise<Session[]>;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1638
1700
|
/**
|
|
1639
1701
|
* Server-Sent Events primitives, mirroring `sse.event_stream`.
|
|
1640
1702
|
*
|
|
@@ -1761,6 +1823,73 @@ declare class SSEBroker {
|
|
|
1761
1823
|
publish(channel: string, data: unknown, event?: string): number;
|
|
1762
1824
|
}
|
|
1763
1825
|
|
|
1826
|
+
/**
|
|
1827
|
+
* Redis pub/sub SSE broker for multi-replica deployments.
|
|
1828
|
+
*
|
|
1829
|
+
* The in-process {@link SSEBroker} only reaches subscribers on the same node.
|
|
1830
|
+
* {@link RedisSSEBroker} publishes to a Redis channel; every replica's
|
|
1831
|
+
* subscriber connection receives it and fans out to its local {@link EventStream}s
|
|
1832
|
+
* — so a publish on any node reaches SSE clients on all nodes. Takes injected
|
|
1833
|
+
* node-redis v4 clients (a dedicated subscriber connection, per Redis pub/sub
|
|
1834
|
+
* rules) so the SDK never hard-depends on `redis`.
|
|
1835
|
+
*/
|
|
1836
|
+
|
|
1837
|
+
/** Publisher side (the main client). */
|
|
1838
|
+
interface RedisPublisherLike {
|
|
1839
|
+
publish(channel: string, message: string): Promise<unknown>;
|
|
1840
|
+
}
|
|
1841
|
+
/** Subscriber side (a dedicated connection — `client.duplicate()`). */
|
|
1842
|
+
interface RedisSubscriberLike {
|
|
1843
|
+
subscribe(channel: string, listener: (message: string) => void): Promise<unknown>;
|
|
1844
|
+
unsubscribe(channel: string): Promise<unknown>;
|
|
1845
|
+
}
|
|
1846
|
+
/** Options for {@link RedisSSEBroker}. */
|
|
1847
|
+
interface RedisSSEBrokerOptions extends EventStreamOptions {
|
|
1848
|
+
/** Redis channel prefix. Default `sse:`. */
|
|
1849
|
+
prefix?: string;
|
|
1850
|
+
}
|
|
1851
|
+
/** Cross-replica SSE fan-out over Redis pub/sub. */
|
|
1852
|
+
declare class RedisSSEBroker {
|
|
1853
|
+
private readonly publisher;
|
|
1854
|
+
private readonly subscriber;
|
|
1855
|
+
private readonly local;
|
|
1856
|
+
private readonly prefix;
|
|
1857
|
+
private readonly streamOptions;
|
|
1858
|
+
/**
|
|
1859
|
+
* @param publisher - The main Redis client (used to `publish`).
|
|
1860
|
+
* @param subscriber - A dedicated subscriber connection (`client.duplicate()`).
|
|
1861
|
+
* @param options - Channel prefix + per-stream options.
|
|
1862
|
+
*/
|
|
1863
|
+
constructor(publisher: RedisPublisherLike, subscriber: RedisSubscriberLike, options?: RedisSSEBrokerOptions);
|
|
1864
|
+
private channelKey;
|
|
1865
|
+
/** Emit a decoded payload to every local stream on a channel. */
|
|
1866
|
+
private emitLocal;
|
|
1867
|
+
/**
|
|
1868
|
+
* Register a subscriber stream, subscribing to the Redis channel on first use.
|
|
1869
|
+
*
|
|
1870
|
+
* @param channel - The channel name.
|
|
1871
|
+
* @returns A fresh {@link EventStream} to serve to the client.
|
|
1872
|
+
*/
|
|
1873
|
+
register(channel: string): Promise<EventStream>;
|
|
1874
|
+
/**
|
|
1875
|
+
* Remove a subscriber stream; unsubscribe from Redis when the last leaves.
|
|
1876
|
+
*
|
|
1877
|
+
* @param channel - The channel name.
|
|
1878
|
+
* @param stream - The stream to remove.
|
|
1879
|
+
*/
|
|
1880
|
+
unregister(channel: string, stream: EventStream): Promise<void>;
|
|
1881
|
+
/** Local subscriber count on `channel` (this replica only). */
|
|
1882
|
+
localSubscribers(channel: string): number;
|
|
1883
|
+
/**
|
|
1884
|
+
* Publish to every subscriber across all replicas.
|
|
1885
|
+
*
|
|
1886
|
+
* @param channel - The channel name.
|
|
1887
|
+
* @param data - The payload (JSON-encoded).
|
|
1888
|
+
* @param event - Optional event name.
|
|
1889
|
+
*/
|
|
1890
|
+
publish(channel: string, data: unknown, event?: string): Promise<void>;
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1764
1893
|
/** WebSocket message envelope, mirroring `websockets.schemas`. */
|
|
1765
1894
|
|
|
1766
1895
|
/** The canonical message envelope exchanged over a socket. */
|
|
@@ -3403,6 +3532,31 @@ interface HealthRouterOptions {
|
|
|
3403
3532
|
*/
|
|
3404
3533
|
declare function makeHealthRouter(options?: HealthRouterOptions): Router;
|
|
3405
3534
|
|
|
3535
|
+
/**
|
|
3536
|
+
* Prometheus `/metrics` router, mirroring `api.routers.metrics`.
|
|
3537
|
+
*
|
|
3538
|
+
* Serves {@link MetricsUtils.toPrometheus} as `text/plain`. Optionally includes
|
|
3539
|
+
* GPU metrics (via `nvidia-smi`) and can be guarded so the endpoint stays on the
|
|
3540
|
+
* internal network / behind auth.
|
|
3541
|
+
*/
|
|
3542
|
+
|
|
3543
|
+
/** Options for {@link makeMetricsRouter}. */
|
|
3544
|
+
interface MetricsRouterOptions {
|
|
3545
|
+
/** Route path. Default `/metrics`. */
|
|
3546
|
+
path?: string;
|
|
3547
|
+
/** Include GPU metrics via `nvidia-smi` (adds a subprocess call). Default `false`. */
|
|
3548
|
+
includeGpu?: boolean;
|
|
3549
|
+
/** Optional guard middleware (e.g. internal-network or token check). */
|
|
3550
|
+
guard?: RequestHandler;
|
|
3551
|
+
}
|
|
3552
|
+
/**
|
|
3553
|
+
* Build the Prometheus metrics router.
|
|
3554
|
+
*
|
|
3555
|
+
* @param options - Path, GPU toggle and optional guard.
|
|
3556
|
+
* @returns An Express router exposing the metrics endpoint.
|
|
3557
|
+
*/
|
|
3558
|
+
declare function makeMetricsRouter(options?: MetricsRouterOptions): Router;
|
|
3559
|
+
|
|
3406
3560
|
/**
|
|
3407
3561
|
* Application factory and server runner, mirroring `api.app` + `api.server`.
|
|
3408
3562
|
*
|
|
@@ -3469,6 +3623,6 @@ interface RunServerOptions {
|
|
|
3469
3623
|
declare function runServer(app: Express, options?: RunServerOptions): Promise<Server>;
|
|
3470
3624
|
|
|
3471
3625
|
/** The installed SDK version. Single source of truth for the barrel + CLI. */
|
|
3472
|
-
declare const VERSION = "0.
|
|
3626
|
+
declare const VERSION = "0.9.0";
|
|
3473
3627
|
|
|
3474
|
-
export { type ActivationInput, ActivationService, type ActivationServiceOptions, type ActivationStore, type AdminField, type AdminListQuery, type AdminListResult, type AdminResource, type AdminRouterOptions, AdminSite, AppException, type AppExceptionHandlerOptions, type AppExceptionOptions, type AttachWebSocketOptions, AttemptThrottle, type AttemptThrottleOptions, type AuthResponse, type AuthRouterOptions, type AuthUser, type BaseAppSettings, BaseController, BaseModel, type BaseResponse, BaseService, type BrokerManager, CEP_PATTERN, CNPJ_PATTERN, CPF_PATTERN, type CPUMetrics, type CacheManager, type CachedOptions, type CatalogData, CircuitOpenError, type ClientIpOptions, CompositeFeatureFlagBackend, ConflictException, type CreateAppOpenApi, type CreateAppOptions, type CursorPaginationFilter, DEFAULT_LOCALE, type EmailMessage, type EmailOptions, EmailUtils, type Enum, type EnumHelpers, type EnumSpec, EnvFeatureFlagBackend, EventStream, type EventStreamOptions, type ExceptionDetails, ExpiredTokenException, type FeatureFlagBackend, FeatureFlags, type FlagContext, ForbiddenException, type GenerateOpenApiOptions, HTTPClient, type HTTPClientOptions, HTTP_500_MARKER, type HandshakeInfo, type HealthCheck, type HealthRouterOptions, type InboundHandler, type InboundMessage, InvalidTokenException, type IssuedSession, JSONLogger, JWTUtils, type JWTUtilsOptions, type JwtAuthOptions, type JwtClaims, LocalUploadStorage, type LocalUploadStorageOptions, type LogExtra, type LogLevel, type LoginInput, type MediaKind, MemoryBroker, MemoryCacheManager, MemoryFeatureFlagBackend, type MemoryMetrics, MemorySessionStore, MemoryThrottleBackend, MessageCatalog, type MessageHandler, type MessagingProvider, MetricsUtils, type MfaCodeInput, type MfaEnrollment, MfaService, type MfaServiceOptions, type MfaStore, NotFoundException, type OpenApiDocument, type OpenApiInfo, type OutboundMedia, type OutboundResult, PHONE_BR_PATTERN, type PaginationFilter, type PasswordResetConfirmInput, type PasswordResetRequestInput, PasswordResetService, type PasswordResetServiceOptions, type PasswordResetStore, PasswordUtils, REQUEST_ID_HEADER, RabbitBroker, type RabbitBrokerOptions, RedisCacheManager, type RedisLike, type RedocOptions, type RefreshInput, Region, type RegionValue, type RegisterExceptionHandlersOptions, type RequestContext, type ResponseMapper, RetryPolicy, type RunServerOptions, SSEBroker, type SaveOptions, type SendOptions, ServerSentEvent, type ServerSentEventInit, type Session, type SessionMiddlewareOptions, SessionService, type SessionServiceOptions, type SessionStore, type SignupInput, type StateBR, type SwaggerOptions, type SystemMetrics, TOTPHelper, type TOTPOptions, type TaskHandler, TaskManager, type TaskManagerOptions, TelegramProvider, type TelegramProviderOptions, type ThrottleBackend, type ThrottleStatus, type ToDictOptions, type TokenPair, TooManyRequestsException, type TooManyRequestsOptions, TwilioSmsProvider, type TwilioSmsProviderOptions, type TwilioWebhookOptions, UF, type UFValue, UnauthorizedException, type UnhandledExceptionHandlerOptions, type UploadResult, type UploadStorage, UserAuthService, type UserAuthServiceOptions, type UserPublic, type UserStore, VERSION, ValidationException, type WSEnvelope, WebPushDispatcher, type WebPushDispatcherOptions, WebPushError, WebPushGoneError, type WebPushKeys, type WebPushPayload, type WebPushSubscription, type WebSocketConnection, WebSocketHub, type WebSocketHubOptions, type WebSocketLike, WhatsAppProvider, type WhatsAppProviderOptions, type WhatsAppWebhookOptions, activationSchema, attachWebSocketHub, authResponseSchema, baseAppSettingsSchema, baseAppSettingsShape, baseResponseSchema, bearerToken, buildContentDisposition, cached, cepField, citiesByUf, cnpjField, coerceFlag, configureLogging, corsSettingsShape, cpfField, cpfOrCnpjField, createApp, createOpenApiRegistry, createdByColumn, cursorPaginationFilterSchema, cursorPaginationSchema, databaseSettingsShape, decodeCursor, defaultMessageCatalog, defineEnum, deletedAtColumn, encodeCursor, generateOpaqueToken, generateOpenApiDocument, getAuth, getClientIp, getConditions, getPaginationConditions, getRequestId, getState, hashOpaqueToken, inboundMessageSchema, isValidCep, isValidCity, isValidCnpj, isValidCpf, isValidCpfCnpj, isValidPhoneBr, isValidUf, listStates, loadSettings, loginSchema, makeAdminRouter, makeAppExceptionHandler, makeAuthRouter, makeFlagGuard, makeHealthRouter, makeJwtAuthMiddleware, makeSessionMiddleware, makeTwilioWebhookRouter, makeUnhandledExceptionHandler, makeWhatsAppWebhookRouter, mfaCodeSchema, mfaEnrollResponseSchema, modifyDict, mountOpenApiJson, mountRedoc, mountSwaggerUi, normalizeCep, normalizeCnpj, normalizeCpf, normalizeCpfCnpj, normalizePhoneBr, normalizeUf, notFoundHandler, onlyDigits, paginationFilterSchema, paginationSchema, parseAcceptLanguage, parseCookies, passwordResetConfirmSchema, passwordResetRequestSchema, phoneBrField, refreshSchema, registerExceptionHandlers, requestIdMiddleware, requireRoles, runServer, runWithRequestContext, serverSettingsShape, sessionCookie, setRequestId, signupSchema, sseResponse, statesByRegion, tableNameFor, toDict, toUtc, tokenFromUrl, tokenPairSchema, ufField, updatedByColumn, userPublicSchema, utcnow, validateTwilioSignature, verifyOpaqueToken, webPushKeysSchema, webPushPayloadSchema, webPushSubscriptionSchema, wsEnvelopeSchema };
|
|
3628
|
+
export { type ActivationInput, ActivationService, type ActivationServiceOptions, type ActivationStore, type AdminField, type AdminListQuery, type AdminListResult, type AdminResource, type AdminRouterOptions, AdminSite, AppException, type AppExceptionHandlerOptions, type AppExceptionOptions, type AttachWebSocketOptions, AttemptThrottle, type AttemptThrottleOptions, type AuthResponse, type AuthRouterOptions, type AuthUser, type BaseAppSettings, BaseController, BaseModel, type BaseResponse, BaseService, type BrokerManager, CEP_PATTERN, CNPJ_PATTERN, CPF_PATTERN, type CPUMetrics, type CacheManager, type CachedOptions, type CatalogData, CircuitOpenError, type ClientIpOptions, CompositeFeatureFlagBackend, ConflictException, type CreateAppOpenApi, type CreateAppOptions, type CursorPaginationFilter, DEFAULT_LOCALE, type EmailMessage, type EmailOptions, EmailUtils, type Enum, type EnumHelpers, type EnumSpec, EnvFeatureFlagBackend, EventStream, type EventStreamOptions, type ExceptionDetails, ExpiredTokenException, type FeatureFlagBackend, FeatureFlags, type FlagContext, ForbiddenException, type GPUMetrics, type GenerateOpenApiOptions, HTTPClient, type HTTPClientOptions, HTTP_500_MARKER, type HandshakeInfo, type HealthCheck, type HealthRouterOptions, type InboundHandler, type InboundMessage, InvalidTokenException, type IssuedSession, JSONLogger, JWTUtils, type JWTUtilsOptions, type JwtAuthOptions, type JwtClaims, LocalUploadStorage, type LocalUploadStorageOptions, type LogExtra, type LogLevel, type LoginInput, type MediaKind, MemoryBroker, MemoryCacheManager, MemoryFeatureFlagBackend, type MemoryMetrics, MemorySessionStore, MemoryThrottleBackend, MessageCatalog, type MessageHandler, type MessagingProvider, type MetricsRouterOptions, MetricsUtils, type MfaCodeInput, type MfaEnrollment, MfaService, type MfaServiceOptions, type MfaStore, NotFoundException, type OpenApiDocument, type OpenApiInfo, type OutboundMedia, type OutboundResult, PHONE_BR_PATTERN, type PaginationFilter, type PasswordResetConfirmInput, type PasswordResetRequestInput, PasswordResetService, type PasswordResetServiceOptions, type PasswordResetStore, PasswordUtils, REQUEST_ID_HEADER, RabbitBroker, type RabbitBrokerOptions, RedisCacheManager, type RedisLike, type RedisPublisherLike, RedisSSEBroker, type RedisSSEBrokerOptions, RedisSessionStore, type RedisSubscriberLike, type RedocOptions, type RefreshInput, Region, type RegionValue, type RegisterExceptionHandlersOptions, type RequestContext, type ResponseMapper, RetryPolicy, type RunServerOptions, SSEBroker, type SaveOptions, type SendOptions, ServerSentEvent, type ServerSentEventInit, type Session, type SessionMiddlewareOptions, type SessionRedisLike, SessionService, type SessionServiceOptions, type SessionStore, type SignupInput, type StateBR, type SwaggerOptions, type SystemMetrics, TOTPHelper, type TOTPOptions, type TaskHandler, TaskManager, type TaskManagerOptions, TelegramProvider, type TelegramProviderOptions, type ThrottleBackend, type ThrottleStatus, type ToDictOptions, type TokenPair, TooManyRequestsException, type TooManyRequestsOptions, TwilioSmsProvider, type TwilioSmsProviderOptions, type TwilioWebhookOptions, UF, type UFValue, UnauthorizedException, type UnhandledExceptionHandlerOptions, type UploadResult, type UploadStorage, UserAuthService, type UserAuthServiceOptions, type UserPublic, type UserStore, VERSION, ValidationException, type WSEnvelope, WebPushDispatcher, type WebPushDispatcherOptions, WebPushError, WebPushGoneError, type WebPushKeys, type WebPushPayload, type WebPushSubscription, type WebSocketConnection, WebSocketHub, type WebSocketHubOptions, type WebSocketLike, WhatsAppProvider, type WhatsAppProviderOptions, type WhatsAppWebhookOptions, activationSchema, attachWebSocketHub, authResponseSchema, baseAppSettingsSchema, baseAppSettingsShape, baseResponseSchema, bearerToken, buildContentDisposition, cached, cepField, citiesByUf, cnpjField, coerceFlag, configureLogging, corsSettingsShape, cpfField, cpfOrCnpjField, createApp, createOpenApiRegistry, createdByColumn, cursorPaginationFilterSchema, cursorPaginationSchema, databaseSettingsShape, decodeCursor, defaultMessageCatalog, defineEnum, deletedAtColumn, encodeCursor, generateOpaqueToken, generateOpenApiDocument, getAuth, getClientIp, getConditions, getPaginationConditions, getRequestId, getState, hashOpaqueToken, inboundMessageSchema, isValidCep, isValidCity, isValidCnpj, isValidCpf, isValidCpfCnpj, isValidPhoneBr, isValidUf, listStates, loadSettings, loginSchema, makeAdminRouter, makeAppExceptionHandler, makeAuthRouter, makeFlagGuard, makeHealthRouter, makeJwtAuthMiddleware, makeMetricsRouter, makeSessionMiddleware, makeTwilioWebhookRouter, makeUnhandledExceptionHandler, makeWhatsAppWebhookRouter, mfaCodeSchema, mfaEnrollResponseSchema, modifyDict, mountOpenApiJson, mountRedoc, mountSwaggerUi, normalizeCep, normalizeCnpj, normalizeCpf, normalizeCpfCnpj, normalizePhoneBr, normalizeUf, notFoundHandler, onlyDigits, paginationFilterSchema, paginationSchema, parseAcceptLanguage, parseCookies, passwordResetConfirmSchema, passwordResetRequestSchema, phoneBrField, refreshSchema, registerExceptionHandlers, requestIdMiddleware, requireRoles, runServer, runWithRequestContext, serverSettingsShape, sessionCookie, setRequestId, signupSchema, sseResponse, statesByRegion, tableNameFor, toDict, toUtc, tokenFromUrl, tokenPairSchema, ufField, updatedByColumn, userPublicSchema, utcnow, validateTwilioSignature, verifyOpaqueToken, webPushKeysSchema, webPushPayloadSchema, webPushSubscriptionSchema, wsEnvelopeSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -1291,8 +1291,9 @@ declare class HTTPClient {
|
|
|
1291
1291
|
* System metrics, mirroring `utils.metrics.MetricsUtils`.
|
|
1292
1292
|
*
|
|
1293
1293
|
* Reads CPU, memory and process stats from Node's built-in `node:os` /
|
|
1294
|
-
* `process` — no native dependency
|
|
1295
|
-
*
|
|
1294
|
+
* `process` — no native dependency. Optional GPU metrics shell out to
|
|
1295
|
+
* `nvidia-smi` (returns `[]` when unavailable). Includes a Prometheus
|
|
1296
|
+
* text-format exporter.
|
|
1296
1297
|
*/
|
|
1297
1298
|
/** CPU load metrics. */
|
|
1298
1299
|
interface CPUMetrics {
|
|
@@ -1316,6 +1317,19 @@ interface MemoryMetrics {
|
|
|
1316
1317
|
/** Resident set size of the current process. */
|
|
1317
1318
|
processRss: number;
|
|
1318
1319
|
}
|
|
1320
|
+
/** A single GPU's metrics (from `nvidia-smi`). */
|
|
1321
|
+
interface GPUMetrics {
|
|
1322
|
+
/** GPU index. */
|
|
1323
|
+
index: number;
|
|
1324
|
+
/** GPU utilization percent. */
|
|
1325
|
+
utilizationPercent: number;
|
|
1326
|
+
/** Used memory in MiB. */
|
|
1327
|
+
memoryUsedMb: number;
|
|
1328
|
+
/** Total memory in MiB. */
|
|
1329
|
+
memoryTotalMb: number;
|
|
1330
|
+
/** Core temperature in °C. */
|
|
1331
|
+
temperatureC: number;
|
|
1332
|
+
}
|
|
1319
1333
|
/** A snapshot of system + process metrics. */
|
|
1320
1334
|
interface SystemMetrics {
|
|
1321
1335
|
cpu: CPUMetrics;
|
|
@@ -1330,17 +1344,26 @@ declare function readMemory(): MemoryMetrics;
|
|
|
1330
1344
|
/** Read a full system snapshot. */
|
|
1331
1345
|
declare function readSystem(): SystemMetrics;
|
|
1332
1346
|
/**
|
|
1333
|
-
*
|
|
1347
|
+
* Read GPU metrics via `nvidia-smi`. Returns `[]` when the tool is absent or
|
|
1348
|
+
* fails (no GPU, not installed) — never throws.
|
|
1334
1349
|
*
|
|
1335
|
-
* @
|
|
1350
|
+
* @returns One {@link GPUMetrics} per detected GPU.
|
|
1351
|
+
*/
|
|
1352
|
+
declare function readGpus(): Promise<GPUMetrics[]>;
|
|
1353
|
+
/**
|
|
1354
|
+
* Render metrics as Prometheus text-format.
|
|
1355
|
+
*
|
|
1356
|
+
* @param snapshot - A system snapshot (defaults to a fresh {@link readSystem}).
|
|
1357
|
+
* @param gpus - Optional GPU metrics to append (from {@link readGpus}).
|
|
1336
1358
|
* @returns The Prometheus exposition text.
|
|
1337
1359
|
*/
|
|
1338
|
-
declare function toPrometheus(snapshot?: SystemMetrics): string;
|
|
1360
|
+
declare function toPrometheus(snapshot?: SystemMetrics, gpus?: GPUMetrics[]): string;
|
|
1339
1361
|
/** Stateless system-metrics reader + Prometheus exporter. */
|
|
1340
1362
|
declare const MetricsUtils: {
|
|
1341
1363
|
readonly cpu: typeof readCpu;
|
|
1342
1364
|
readonly memory: typeof readMemory;
|
|
1343
1365
|
readonly system: typeof readSystem;
|
|
1366
|
+
readonly gpus: typeof readGpus;
|
|
1344
1367
|
readonly toPrometheus: typeof toPrometheus;
|
|
1345
1368
|
};
|
|
1346
1369
|
|
|
@@ -1635,6 +1658,45 @@ interface SessionMiddlewareOptions {
|
|
|
1635
1658
|
*/
|
|
1636
1659
|
declare function makeSessionMiddleware(service: SessionService, options?: SessionMiddlewareOptions): RequestHandler;
|
|
1637
1660
|
|
|
1661
|
+
/**
|
|
1662
|
+
* Redis-backed {@link SessionStore} for multi-replica deployments.
|
|
1663
|
+
*
|
|
1664
|
+
* Sessions live under `sess:<idHash>` with a Redis TTL; a per-user set
|
|
1665
|
+
* (`sess:user:<userId>`) indexes them so `listByUser`/`deleteByUser` work
|
|
1666
|
+
* without scanning. Takes an injected client (node-redis v4 compatible) so the
|
|
1667
|
+
* SDK never hard-depends on `redis`. Expired keys drop via TTL; stale index
|
|
1668
|
+
* entries are pruned lazily on read.
|
|
1669
|
+
*/
|
|
1670
|
+
|
|
1671
|
+
/** The subset of a node-redis v4 client this store needs. */
|
|
1672
|
+
interface SessionRedisLike {
|
|
1673
|
+
get(key: string): Promise<string | null>;
|
|
1674
|
+
set(key: string, value: string, options?: {
|
|
1675
|
+
EX?: number;
|
|
1676
|
+
}): Promise<unknown>;
|
|
1677
|
+
del(key: string): Promise<unknown>;
|
|
1678
|
+
sAdd(key: string, member: string): Promise<unknown>;
|
|
1679
|
+
sRem(key: string, member: string): Promise<unknown>;
|
|
1680
|
+
sMembers(key: string): Promise<string[]>;
|
|
1681
|
+
}
|
|
1682
|
+
/** Redis-backed session store. */
|
|
1683
|
+
declare class RedisSessionStore implements SessionStore {
|
|
1684
|
+
private readonly client;
|
|
1685
|
+
private readonly prefix;
|
|
1686
|
+
/**
|
|
1687
|
+
* @param client - A connected node-redis v4 (or compatible) client.
|
|
1688
|
+
* @param prefix - Key prefix. Default `sess:`.
|
|
1689
|
+
*/
|
|
1690
|
+
constructor(client: SessionRedisLike, prefix?: string);
|
|
1691
|
+
private key;
|
|
1692
|
+
private userKey;
|
|
1693
|
+
get(idHash: string): Promise<Session | null>;
|
|
1694
|
+
set(session: Session): Promise<void>;
|
|
1695
|
+
delete(idHash: string): Promise<void>;
|
|
1696
|
+
deleteByUser(userId: string): Promise<number>;
|
|
1697
|
+
listByUser(userId: string): Promise<Session[]>;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1638
1700
|
/**
|
|
1639
1701
|
* Server-Sent Events primitives, mirroring `sse.event_stream`.
|
|
1640
1702
|
*
|
|
@@ -1761,6 +1823,73 @@ declare class SSEBroker {
|
|
|
1761
1823
|
publish(channel: string, data: unknown, event?: string): number;
|
|
1762
1824
|
}
|
|
1763
1825
|
|
|
1826
|
+
/**
|
|
1827
|
+
* Redis pub/sub SSE broker for multi-replica deployments.
|
|
1828
|
+
*
|
|
1829
|
+
* The in-process {@link SSEBroker} only reaches subscribers on the same node.
|
|
1830
|
+
* {@link RedisSSEBroker} publishes to a Redis channel; every replica's
|
|
1831
|
+
* subscriber connection receives it and fans out to its local {@link EventStream}s
|
|
1832
|
+
* — so a publish on any node reaches SSE clients on all nodes. Takes injected
|
|
1833
|
+
* node-redis v4 clients (a dedicated subscriber connection, per Redis pub/sub
|
|
1834
|
+
* rules) so the SDK never hard-depends on `redis`.
|
|
1835
|
+
*/
|
|
1836
|
+
|
|
1837
|
+
/** Publisher side (the main client). */
|
|
1838
|
+
interface RedisPublisherLike {
|
|
1839
|
+
publish(channel: string, message: string): Promise<unknown>;
|
|
1840
|
+
}
|
|
1841
|
+
/** Subscriber side (a dedicated connection — `client.duplicate()`). */
|
|
1842
|
+
interface RedisSubscriberLike {
|
|
1843
|
+
subscribe(channel: string, listener: (message: string) => void): Promise<unknown>;
|
|
1844
|
+
unsubscribe(channel: string): Promise<unknown>;
|
|
1845
|
+
}
|
|
1846
|
+
/** Options for {@link RedisSSEBroker}. */
|
|
1847
|
+
interface RedisSSEBrokerOptions extends EventStreamOptions {
|
|
1848
|
+
/** Redis channel prefix. Default `sse:`. */
|
|
1849
|
+
prefix?: string;
|
|
1850
|
+
}
|
|
1851
|
+
/** Cross-replica SSE fan-out over Redis pub/sub. */
|
|
1852
|
+
declare class RedisSSEBroker {
|
|
1853
|
+
private readonly publisher;
|
|
1854
|
+
private readonly subscriber;
|
|
1855
|
+
private readonly local;
|
|
1856
|
+
private readonly prefix;
|
|
1857
|
+
private readonly streamOptions;
|
|
1858
|
+
/**
|
|
1859
|
+
* @param publisher - The main Redis client (used to `publish`).
|
|
1860
|
+
* @param subscriber - A dedicated subscriber connection (`client.duplicate()`).
|
|
1861
|
+
* @param options - Channel prefix + per-stream options.
|
|
1862
|
+
*/
|
|
1863
|
+
constructor(publisher: RedisPublisherLike, subscriber: RedisSubscriberLike, options?: RedisSSEBrokerOptions);
|
|
1864
|
+
private channelKey;
|
|
1865
|
+
/** Emit a decoded payload to every local stream on a channel. */
|
|
1866
|
+
private emitLocal;
|
|
1867
|
+
/**
|
|
1868
|
+
* Register a subscriber stream, subscribing to the Redis channel on first use.
|
|
1869
|
+
*
|
|
1870
|
+
* @param channel - The channel name.
|
|
1871
|
+
* @returns A fresh {@link EventStream} to serve to the client.
|
|
1872
|
+
*/
|
|
1873
|
+
register(channel: string): Promise<EventStream>;
|
|
1874
|
+
/**
|
|
1875
|
+
* Remove a subscriber stream; unsubscribe from Redis when the last leaves.
|
|
1876
|
+
*
|
|
1877
|
+
* @param channel - The channel name.
|
|
1878
|
+
* @param stream - The stream to remove.
|
|
1879
|
+
*/
|
|
1880
|
+
unregister(channel: string, stream: EventStream): Promise<void>;
|
|
1881
|
+
/** Local subscriber count on `channel` (this replica only). */
|
|
1882
|
+
localSubscribers(channel: string): number;
|
|
1883
|
+
/**
|
|
1884
|
+
* Publish to every subscriber across all replicas.
|
|
1885
|
+
*
|
|
1886
|
+
* @param channel - The channel name.
|
|
1887
|
+
* @param data - The payload (JSON-encoded).
|
|
1888
|
+
* @param event - Optional event name.
|
|
1889
|
+
*/
|
|
1890
|
+
publish(channel: string, data: unknown, event?: string): Promise<void>;
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1764
1893
|
/** WebSocket message envelope, mirroring `websockets.schemas`. */
|
|
1765
1894
|
|
|
1766
1895
|
/** The canonical message envelope exchanged over a socket. */
|
|
@@ -3403,6 +3532,31 @@ interface HealthRouterOptions {
|
|
|
3403
3532
|
*/
|
|
3404
3533
|
declare function makeHealthRouter(options?: HealthRouterOptions): Router;
|
|
3405
3534
|
|
|
3535
|
+
/**
|
|
3536
|
+
* Prometheus `/metrics` router, mirroring `api.routers.metrics`.
|
|
3537
|
+
*
|
|
3538
|
+
* Serves {@link MetricsUtils.toPrometheus} as `text/plain`. Optionally includes
|
|
3539
|
+
* GPU metrics (via `nvidia-smi`) and can be guarded so the endpoint stays on the
|
|
3540
|
+
* internal network / behind auth.
|
|
3541
|
+
*/
|
|
3542
|
+
|
|
3543
|
+
/** Options for {@link makeMetricsRouter}. */
|
|
3544
|
+
interface MetricsRouterOptions {
|
|
3545
|
+
/** Route path. Default `/metrics`. */
|
|
3546
|
+
path?: string;
|
|
3547
|
+
/** Include GPU metrics via `nvidia-smi` (adds a subprocess call). Default `false`. */
|
|
3548
|
+
includeGpu?: boolean;
|
|
3549
|
+
/** Optional guard middleware (e.g. internal-network or token check). */
|
|
3550
|
+
guard?: RequestHandler;
|
|
3551
|
+
}
|
|
3552
|
+
/**
|
|
3553
|
+
* Build the Prometheus metrics router.
|
|
3554
|
+
*
|
|
3555
|
+
* @param options - Path, GPU toggle and optional guard.
|
|
3556
|
+
* @returns An Express router exposing the metrics endpoint.
|
|
3557
|
+
*/
|
|
3558
|
+
declare function makeMetricsRouter(options?: MetricsRouterOptions): Router;
|
|
3559
|
+
|
|
3406
3560
|
/**
|
|
3407
3561
|
* Application factory and server runner, mirroring `api.app` + `api.server`.
|
|
3408
3562
|
*
|
|
@@ -3469,6 +3623,6 @@ interface RunServerOptions {
|
|
|
3469
3623
|
declare function runServer(app: Express, options?: RunServerOptions): Promise<Server>;
|
|
3470
3624
|
|
|
3471
3625
|
/** The installed SDK version. Single source of truth for the barrel + CLI. */
|
|
3472
|
-
declare const VERSION = "0.
|
|
3626
|
+
declare const VERSION = "0.9.0";
|
|
3473
3627
|
|
|
3474
|
-
export { type ActivationInput, ActivationService, type ActivationServiceOptions, type ActivationStore, type AdminField, type AdminListQuery, type AdminListResult, type AdminResource, type AdminRouterOptions, AdminSite, AppException, type AppExceptionHandlerOptions, type AppExceptionOptions, type AttachWebSocketOptions, AttemptThrottle, type AttemptThrottleOptions, type AuthResponse, type AuthRouterOptions, type AuthUser, type BaseAppSettings, BaseController, BaseModel, type BaseResponse, BaseService, type BrokerManager, CEP_PATTERN, CNPJ_PATTERN, CPF_PATTERN, type CPUMetrics, type CacheManager, type CachedOptions, type CatalogData, CircuitOpenError, type ClientIpOptions, CompositeFeatureFlagBackend, ConflictException, type CreateAppOpenApi, type CreateAppOptions, type CursorPaginationFilter, DEFAULT_LOCALE, type EmailMessage, type EmailOptions, EmailUtils, type Enum, type EnumHelpers, type EnumSpec, EnvFeatureFlagBackend, EventStream, type EventStreamOptions, type ExceptionDetails, ExpiredTokenException, type FeatureFlagBackend, FeatureFlags, type FlagContext, ForbiddenException, type GenerateOpenApiOptions, HTTPClient, type HTTPClientOptions, HTTP_500_MARKER, type HandshakeInfo, type HealthCheck, type HealthRouterOptions, type InboundHandler, type InboundMessage, InvalidTokenException, type IssuedSession, JSONLogger, JWTUtils, type JWTUtilsOptions, type JwtAuthOptions, type JwtClaims, LocalUploadStorage, type LocalUploadStorageOptions, type LogExtra, type LogLevel, type LoginInput, type MediaKind, MemoryBroker, MemoryCacheManager, MemoryFeatureFlagBackend, type MemoryMetrics, MemorySessionStore, MemoryThrottleBackend, MessageCatalog, type MessageHandler, type MessagingProvider, MetricsUtils, type MfaCodeInput, type MfaEnrollment, MfaService, type MfaServiceOptions, type MfaStore, NotFoundException, type OpenApiDocument, type OpenApiInfo, type OutboundMedia, type OutboundResult, PHONE_BR_PATTERN, type PaginationFilter, type PasswordResetConfirmInput, type PasswordResetRequestInput, PasswordResetService, type PasswordResetServiceOptions, type PasswordResetStore, PasswordUtils, REQUEST_ID_HEADER, RabbitBroker, type RabbitBrokerOptions, RedisCacheManager, type RedisLike, type RedocOptions, type RefreshInput, Region, type RegionValue, type RegisterExceptionHandlersOptions, type RequestContext, type ResponseMapper, RetryPolicy, type RunServerOptions, SSEBroker, type SaveOptions, type SendOptions, ServerSentEvent, type ServerSentEventInit, type Session, type SessionMiddlewareOptions, SessionService, type SessionServiceOptions, type SessionStore, type SignupInput, type StateBR, type SwaggerOptions, type SystemMetrics, TOTPHelper, type TOTPOptions, type TaskHandler, TaskManager, type TaskManagerOptions, TelegramProvider, type TelegramProviderOptions, type ThrottleBackend, type ThrottleStatus, type ToDictOptions, type TokenPair, TooManyRequestsException, type TooManyRequestsOptions, TwilioSmsProvider, type TwilioSmsProviderOptions, type TwilioWebhookOptions, UF, type UFValue, UnauthorizedException, type UnhandledExceptionHandlerOptions, type UploadResult, type UploadStorage, UserAuthService, type UserAuthServiceOptions, type UserPublic, type UserStore, VERSION, ValidationException, type WSEnvelope, WebPushDispatcher, type WebPushDispatcherOptions, WebPushError, WebPushGoneError, type WebPushKeys, type WebPushPayload, type WebPushSubscription, type WebSocketConnection, WebSocketHub, type WebSocketHubOptions, type WebSocketLike, WhatsAppProvider, type WhatsAppProviderOptions, type WhatsAppWebhookOptions, activationSchema, attachWebSocketHub, authResponseSchema, baseAppSettingsSchema, baseAppSettingsShape, baseResponseSchema, bearerToken, buildContentDisposition, cached, cepField, citiesByUf, cnpjField, coerceFlag, configureLogging, corsSettingsShape, cpfField, cpfOrCnpjField, createApp, createOpenApiRegistry, createdByColumn, cursorPaginationFilterSchema, cursorPaginationSchema, databaseSettingsShape, decodeCursor, defaultMessageCatalog, defineEnum, deletedAtColumn, encodeCursor, generateOpaqueToken, generateOpenApiDocument, getAuth, getClientIp, getConditions, getPaginationConditions, getRequestId, getState, hashOpaqueToken, inboundMessageSchema, isValidCep, isValidCity, isValidCnpj, isValidCpf, isValidCpfCnpj, isValidPhoneBr, isValidUf, listStates, loadSettings, loginSchema, makeAdminRouter, makeAppExceptionHandler, makeAuthRouter, makeFlagGuard, makeHealthRouter, makeJwtAuthMiddleware, makeSessionMiddleware, makeTwilioWebhookRouter, makeUnhandledExceptionHandler, makeWhatsAppWebhookRouter, mfaCodeSchema, mfaEnrollResponseSchema, modifyDict, mountOpenApiJson, mountRedoc, mountSwaggerUi, normalizeCep, normalizeCnpj, normalizeCpf, normalizeCpfCnpj, normalizePhoneBr, normalizeUf, notFoundHandler, onlyDigits, paginationFilterSchema, paginationSchema, parseAcceptLanguage, parseCookies, passwordResetConfirmSchema, passwordResetRequestSchema, phoneBrField, refreshSchema, registerExceptionHandlers, requestIdMiddleware, requireRoles, runServer, runWithRequestContext, serverSettingsShape, sessionCookie, setRequestId, signupSchema, sseResponse, statesByRegion, tableNameFor, toDict, toUtc, tokenFromUrl, tokenPairSchema, ufField, updatedByColumn, userPublicSchema, utcnow, validateTwilioSignature, verifyOpaqueToken, webPushKeysSchema, webPushPayloadSchema, webPushSubscriptionSchema, wsEnvelopeSchema };
|
|
3628
|
+
export { type ActivationInput, ActivationService, type ActivationServiceOptions, type ActivationStore, type AdminField, type AdminListQuery, type AdminListResult, type AdminResource, type AdminRouterOptions, AdminSite, AppException, type AppExceptionHandlerOptions, type AppExceptionOptions, type AttachWebSocketOptions, AttemptThrottle, type AttemptThrottleOptions, type AuthResponse, type AuthRouterOptions, type AuthUser, type BaseAppSettings, BaseController, BaseModel, type BaseResponse, BaseService, type BrokerManager, CEP_PATTERN, CNPJ_PATTERN, CPF_PATTERN, type CPUMetrics, type CacheManager, type CachedOptions, type CatalogData, CircuitOpenError, type ClientIpOptions, CompositeFeatureFlagBackend, ConflictException, type CreateAppOpenApi, type CreateAppOptions, type CursorPaginationFilter, DEFAULT_LOCALE, type EmailMessage, type EmailOptions, EmailUtils, type Enum, type EnumHelpers, type EnumSpec, EnvFeatureFlagBackend, EventStream, type EventStreamOptions, type ExceptionDetails, ExpiredTokenException, type FeatureFlagBackend, FeatureFlags, type FlagContext, ForbiddenException, type GPUMetrics, type GenerateOpenApiOptions, HTTPClient, type HTTPClientOptions, HTTP_500_MARKER, type HandshakeInfo, type HealthCheck, type HealthRouterOptions, type InboundHandler, type InboundMessage, InvalidTokenException, type IssuedSession, JSONLogger, JWTUtils, type JWTUtilsOptions, type JwtAuthOptions, type JwtClaims, LocalUploadStorage, type LocalUploadStorageOptions, type LogExtra, type LogLevel, type LoginInput, type MediaKind, MemoryBroker, MemoryCacheManager, MemoryFeatureFlagBackend, type MemoryMetrics, MemorySessionStore, MemoryThrottleBackend, MessageCatalog, type MessageHandler, type MessagingProvider, type MetricsRouterOptions, MetricsUtils, type MfaCodeInput, type MfaEnrollment, MfaService, type MfaServiceOptions, type MfaStore, NotFoundException, type OpenApiDocument, type OpenApiInfo, type OutboundMedia, type OutboundResult, PHONE_BR_PATTERN, type PaginationFilter, type PasswordResetConfirmInput, type PasswordResetRequestInput, PasswordResetService, type PasswordResetServiceOptions, type PasswordResetStore, PasswordUtils, REQUEST_ID_HEADER, RabbitBroker, type RabbitBrokerOptions, RedisCacheManager, type RedisLike, type RedisPublisherLike, RedisSSEBroker, type RedisSSEBrokerOptions, RedisSessionStore, type RedisSubscriberLike, type RedocOptions, type RefreshInput, Region, type RegionValue, type RegisterExceptionHandlersOptions, type RequestContext, type ResponseMapper, RetryPolicy, type RunServerOptions, SSEBroker, type SaveOptions, type SendOptions, ServerSentEvent, type ServerSentEventInit, type Session, type SessionMiddlewareOptions, type SessionRedisLike, SessionService, type SessionServiceOptions, type SessionStore, type SignupInput, type StateBR, type SwaggerOptions, type SystemMetrics, TOTPHelper, type TOTPOptions, type TaskHandler, TaskManager, type TaskManagerOptions, TelegramProvider, type TelegramProviderOptions, type ThrottleBackend, type ThrottleStatus, type ToDictOptions, type TokenPair, TooManyRequestsException, type TooManyRequestsOptions, TwilioSmsProvider, type TwilioSmsProviderOptions, type TwilioWebhookOptions, UF, type UFValue, UnauthorizedException, type UnhandledExceptionHandlerOptions, type UploadResult, type UploadStorage, UserAuthService, type UserAuthServiceOptions, type UserPublic, type UserStore, VERSION, ValidationException, type WSEnvelope, WebPushDispatcher, type WebPushDispatcherOptions, WebPushError, WebPushGoneError, type WebPushKeys, type WebPushPayload, type WebPushSubscription, type WebSocketConnection, WebSocketHub, type WebSocketHubOptions, type WebSocketLike, WhatsAppProvider, type WhatsAppProviderOptions, type WhatsAppWebhookOptions, activationSchema, attachWebSocketHub, authResponseSchema, baseAppSettingsSchema, baseAppSettingsShape, baseResponseSchema, bearerToken, buildContentDisposition, cached, cepField, citiesByUf, cnpjField, coerceFlag, configureLogging, corsSettingsShape, cpfField, cpfOrCnpjField, createApp, createOpenApiRegistry, createdByColumn, cursorPaginationFilterSchema, cursorPaginationSchema, databaseSettingsShape, decodeCursor, defaultMessageCatalog, defineEnum, deletedAtColumn, encodeCursor, generateOpaqueToken, generateOpenApiDocument, getAuth, getClientIp, getConditions, getPaginationConditions, getRequestId, getState, hashOpaqueToken, inboundMessageSchema, isValidCep, isValidCity, isValidCnpj, isValidCpf, isValidCpfCnpj, isValidPhoneBr, isValidUf, listStates, loadSettings, loginSchema, makeAdminRouter, makeAppExceptionHandler, makeAuthRouter, makeFlagGuard, makeHealthRouter, makeJwtAuthMiddleware, makeMetricsRouter, makeSessionMiddleware, makeTwilioWebhookRouter, makeUnhandledExceptionHandler, makeWhatsAppWebhookRouter, mfaCodeSchema, mfaEnrollResponseSchema, modifyDict, mountOpenApiJson, mountRedoc, mountSwaggerUi, normalizeCep, normalizeCnpj, normalizeCpf, normalizeCpfCnpj, normalizePhoneBr, normalizeUf, notFoundHandler, onlyDigits, paginationFilterSchema, paginationSchema, parseAcceptLanguage, parseCookies, passwordResetConfirmSchema, passwordResetRequestSchema, phoneBrField, refreshSchema, registerExceptionHandlers, requestIdMiddleware, requireRoles, runServer, runWithRequestContext, serverSettingsShape, sessionCookie, setRequestId, signupSchema, sseResponse, statesByRegion, tableNameFor, toDict, toUtc, tokenFromUrl, tokenPairSchema, ufField, updatedByColumn, userPublicSchema, utcnow, validateTwilioSignature, verifyOpaqueToken, webPushKeysSchema, webPushPayloadSchema, webPushSubscriptionSchema, wsEnvelopeSchema };
|