tempest-express-sdk 0.30.0 → 0.32.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/dist/index.d.cts CHANGED
@@ -8,7 +8,7 @@ import * as ws from 'ws';
8
8
  import { Server } from 'node:http';
9
9
  import { Readable } from 'node:stream';
10
10
  import { OpenAPIRegistry } from '@asteasolutions/zod-to-openapi';
11
- export { OpenAPIRegistry } from '@asteasolutions/zod-to-openapi';
11
+ export { OpenAPIRegistry, extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi';
12
12
  import { BinaryLike } from 'node:crypto';
13
13
 
14
14
  /**
@@ -324,6 +324,14 @@ declare function defaultMessageCatalog(): MessageCatalog;
324
324
  * module re-exports a `z` already augmented with `.openapi()` (so every schema
325
325
  * can carry OpenAPI metadata) and a {@link toDict} helper matching
326
326
  * `BaseSchema.to_dict` (drop nullish, exclude keys, merge extras).
327
+ *
328
+ * **The `z` this module exports is the augmented instance.** `extendZodWithOpenApi`
329
+ * patches `ZodType.prototype`, and zod v4 copies prototype members into each
330
+ * instance at construction — so only schemas built *after* this module has been
331
+ * evaluated carry `.openapi()`. Importing `z` from here rather than from `zod`
332
+ * makes that ordering automatic. It is not a requirement:
333
+ * `createOpenApiRegistry()` re-tags an un-patched schema on registration, so a
334
+ * project importing `z` straight from `zod` works too.
327
335
  */
328
336
 
329
337
  /** Options for {@link toDict}. */
@@ -6550,10 +6558,23 @@ declare function requireRoles(...roles: string[]): RequestHandler;
6550
6558
  * OpenAPI document generation from Zod schemas.
6551
6559
  *
6552
6560
  * Thin wrapper over `@asteasolutions/zod-to-openapi`. Register schemas and
6553
- * paths on a {@link OpenAPIRegistry}, then call {@link generateOpenApiDocument}
6554
- * to produce a spec that drives both Swagger UI and Redoc. Because every SDK
6555
- * schema is built from the `.openapi()`-augmented `z`, descriptions, examples
6556
- * and component names flow straight into the document.
6561
+ * paths on a registry, then call {@link generateOpenApiDocument} to produce a
6562
+ * spec that drives both Swagger UI and Redoc.
6563
+ *
6564
+ * ## Why the registry normalizes schemas
6565
+ *
6566
+ * `zod-to-openapi` adds `.openapi()` by patching `ZodType.prototype`. Zod v4
6567
+ * copies prototype members into each instance at construction, so the patch
6568
+ * does **not** reach schemas built *before* this module was evaluated — and
6569
+ * declaring schemas in `schemas/*.ts` while importing the SDK only in the docs
6570
+ * layer is the natural order, which means the failing order is the common one.
6571
+ * The symptom was a `TypeError: zodSchema.openapi is not a function` thrown
6572
+ * from inside `node_modules` at boot.
6573
+ *
6574
+ * {@link createOpenApiRegistry} therefore returns a registry that re-tags such
6575
+ * a schema through `.meta({ id })` — which builds a fresh instance, and so a
6576
+ * patched one — before handing it to the library. The same call site works
6577
+ * whatever order the modules happened to evaluate in.
6557
6578
  */
6558
6579
 
6559
6580
  /** Minimal `info` block for the generated document. */
@@ -6578,9 +6599,10 @@ interface GenerateOpenApiOptions {
6578
6599
  v31?: boolean;
6579
6600
  }
6580
6601
  /**
6581
- * Create a fresh, empty {@link OpenAPIRegistry}.
6602
+ * Create a fresh, empty registry.
6582
6603
  *
6583
- * @returns A registry to register schemas and paths on.
6604
+ * @returns A registry to register schemas and paths on, tolerant of the order
6605
+ * the caller's modules evaluated in.
6584
6606
  */
6585
6607
  declare function createOpenApiRegistry(): OpenAPIRegistry;
6586
6608
  /**
@@ -6961,6 +6983,256 @@ interface MetricsRouterOptions {
6961
6983
  */
6962
6984
  declare function makeMetricsRouter(options?: MetricsRouterOptions): Router;
6963
6985
 
6986
+ /**
6987
+ * AsyncAPI 3.0 document generation from Zod schemas.
6988
+ *
6989
+ * The sibling of `@/api/openapi` for everything OpenAPI cannot describe: a
6990
+ * WebSocket connection, where messages travel in both directions and the
6991
+ * server speaks first as often as the client does. OpenAPI models one
6992
+ * request and its response, so a socket route documented there degrades to
6993
+ * prose — which is what happened, and prose generates no client.
6994
+ *
6995
+ * ## Direction is stated, never inferred
6996
+ *
6997
+ * AsyncAPI's `action` is relative to **the application that publishes the
6998
+ * document**: `receive` means *this* application receives, so a
6999
+ * server-authored document spells a client's send as `receive`. A generated
7000
+ * consumer has to invert every one of them, and getting the sign wrong
7001
+ * produces a client that compiles, type-checks and does the opposite.
7002
+ *
7003
+ * This registry therefore never takes `action`. It takes
7004
+ * {@link OperationDirection} — `clientToServer` or `serverToClient` — which
7005
+ * cannot be read backwards, and translates. The document also carries
7006
+ * {@link PERSPECTIVE_EXTENSION} so a reader never has to assume whose point
7007
+ * of view it encodes.
7008
+ *
7009
+ * ## Payloads come from the same schemas that validate
7010
+ *
7011
+ * Message payloads are generated from the caller's Zod schemas through
7012
+ * `zod-to-openapi`'s `generateComponents`, so the documented shape and the
7013
+ * shape the server actually accepts cannot drift: they are one object.
7014
+ */
7015
+
7016
+ /**
7017
+ * Extension key recording whose point of view `action` is written from.
7018
+ *
7019
+ * Always `"server"` for a document this registry produces: the service that
7020
+ * serves the socket is the one describing it. A consumer that reads the
7021
+ * document inverts every action, and should refuse a document where this is
7022
+ * absent rather than guess.
7023
+ */
7024
+ declare const PERSPECTIVE_EXTENSION: string;
7025
+ /** The AsyncAPI version every document this module emits declares. */
7026
+ declare const ASYNCAPI_VERSION: string;
7027
+ /**
7028
+ * Which way a message travels, from the point of view of the client.
7029
+ *
7030
+ * Deliberately not AsyncAPI's `send`/`receive`: those are relative to the
7031
+ * document's author, and the whole class of bug this names away is a
7032
+ * consumer reading them as its own.
7033
+ */
7034
+ type OperationDirection = "clientToServer" | "serverToClient";
7035
+ /** A message the socket carries, in one direction. */
7036
+ interface AsyncApiMessage {
7037
+ /** Component name, and the key the operation refers to it by. */
7038
+ name: string;
7039
+ /** Zod schema for the frame. Becomes the message `payload`. */
7040
+ schema: z.ZodType;
7041
+ /** One-line summary shown by document viewers. */
7042
+ summary?: string;
7043
+ /** Longer prose. Markdown is supported by the renderers. */
7044
+ description?: string;
7045
+ /** Media type of the payload. Default `application/json`. */
7046
+ contentType?: string;
7047
+ }
7048
+ /** A channel — for WebSocket, the connection itself. */
7049
+ interface AsyncApiChannel {
7050
+ /** Key the channel is registered under, and referred to by. */
7051
+ name: string;
7052
+ /** Path the socket is served at, e.g. `/ws`. */
7053
+ address: string;
7054
+ /** One-line summary. */
7055
+ title?: string;
7056
+ /** Longer prose. */
7057
+ description?: string;
7058
+ /** Headers required on the HTTP upgrade, e.g. an API key. */
7059
+ handshakeHeaders?: z.ZodType;
7060
+ /** Query parameters accepted on the upgrade. */
7061
+ handshakeQuery?: z.ZodType;
7062
+ }
7063
+ /** An operation — a set of messages travelling one way on one channel. */
7064
+ interface AsyncApiOperation {
7065
+ /** Key the operation is registered under. */
7066
+ name: string;
7067
+ /** `name` of a channel registered on this registry. */
7068
+ channel: string;
7069
+ /** Which way the messages travel, from the client's point of view. */
7070
+ direction: OperationDirection;
7071
+ /** `name` of each message, all registered on this registry. */
7072
+ messages: string[];
7073
+ /** One-line summary. */
7074
+ summary?: string;
7075
+ /** Longer prose. */
7076
+ description?: string;
7077
+ }
7078
+ /** The document `info` block. */
7079
+ interface AsyncApiInfo {
7080
+ /** API title shown in the document header. */
7081
+ title: string;
7082
+ /** API version string. */
7083
+ version: string;
7084
+ /** Optional long description. */
7085
+ description?: string;
7086
+ }
7087
+ /** Options for {@link generateAsyncApiDocument}. */
7088
+ interface GenerateAsyncApiOptions {
7089
+ /** The document `info` block. */
7090
+ info: AsyncApiInfo;
7091
+ /** Server entries. `protocol` is the transport, e.g. `"ws"`. */
7092
+ servers?: Record<string, {
7093
+ host: string;
7094
+ protocol: string;
7095
+ pathname?: string;
7096
+ }>;
7097
+ /** Media type assumed where a message does not state one. */
7098
+ defaultContentType?: string;
7099
+ }
7100
+ /**
7101
+ * Collects channels, messages and operations, then renders the document.
7102
+ *
7103
+ * Registration order does not matter — references are resolved when
7104
+ * {@link AsyncApiRegistry.generate} runs, so a channel may be registered
7105
+ * after the operation that points at it.
7106
+ */
7107
+ declare class AsyncApiRegistry {
7108
+ /** Channels by `name`. */
7109
+ private readonly channels;
7110
+ /** Messages by `name`. */
7111
+ private readonly messages;
7112
+ /** Operations, in registration order. */
7113
+ private readonly operations;
7114
+ /**
7115
+ * Register the connection a socket is served on.
7116
+ *
7117
+ * @param channel - The channel definition.
7118
+ * @returns This registry, for chaining.
7119
+ * @throws Error When `name` is already registered.
7120
+ */
7121
+ registerChannel(channel: AsyncApiChannel): this;
7122
+ /**
7123
+ * Register one frame the socket carries.
7124
+ *
7125
+ * @param message - The message definition.
7126
+ * @returns This registry, for chaining.
7127
+ * @throws Error When `name` is already registered.
7128
+ */
7129
+ registerMessage(message: AsyncApiMessage): this;
7130
+ /**
7131
+ * Register a set of messages travelling one way on one channel.
7132
+ *
7133
+ * @param operation - The operation definition.
7134
+ * @returns This registry, for chaining.
7135
+ * @throws Error When `name` is already registered.
7136
+ */
7137
+ registerOperation(operation: AsyncApiOperation): this;
7138
+ /**
7139
+ * Render the AsyncAPI document.
7140
+ *
7141
+ * @param options - The `info` block, optional servers and default content
7142
+ * type.
7143
+ * @returns The document, JSON-serializable.
7144
+ * @throws Error When an operation names a channel or a message that was
7145
+ * never registered. A dangling `$ref` produces a document that validates
7146
+ * structurally and generates a client missing the frame, so it fails
7147
+ * here instead.
7148
+ */
7149
+ generate(options: GenerateAsyncApiOptions): Record<string, unknown>;
7150
+ /**
7151
+ * Fail when an operation points at something that was never registered.
7152
+ *
7153
+ * @throws Error Naming the operation and what it could not resolve.
7154
+ */
7155
+ private assertReferencesResolve;
7156
+ /**
7157
+ * Render every payload schema through the OpenAPI generator.
7158
+ *
7159
+ * @returns Component schemas keyed by message name, plus any handshake
7160
+ * schema a channel declared.
7161
+ *
7162
+ * AsyncAPI 3 payloads are JSON Schema, and `generateComponents` emits
7163
+ * exactly that from the Zod objects already validating at runtime. Reusing
7164
+ * it is what keeps the document from describing a shape the server would
7165
+ * reject.
7166
+ */
7167
+ private renderPayloads;
7168
+ /**
7169
+ * Render `components.messages`.
7170
+ *
7171
+ * @returns Message objects keyed by name, each pointing at its payload.
7172
+ */
7173
+ private renderMessages;
7174
+ /**
7175
+ * Render `channels`, each listing every message it can carry.
7176
+ *
7177
+ * @param schemas - The rendered component schemas, to inline the
7178
+ * handshake ones into the binding.
7179
+ * @returns Channel objects keyed by name.
7180
+ *
7181
+ * The handshake schemas are **inlined** rather than `$ref`-ed. The
7182
+ * specification types the binding's `headers` and `query` as
7183
+ * `oneOf: [Schema, Reference]`, and a bare `{"$ref": ...}` object
7184
+ * satisfies both branches — so `oneOf` sees two matches and the document
7185
+ * fails validation against AsyncAPI's own JSON Schema. Measured: the same
7186
+ * binding with the schema inlined validates clean.
7187
+ *
7188
+ * A channel lists every registered message rather than only those its own
7189
+ * operations use: the specification requires an operation's `messages` to
7190
+ * be a subset of its channel's, and with one connection per document the
7191
+ * distinction buys nothing.
7192
+ */
7193
+ private renderChannels;
7194
+ /**
7195
+ * Render `operations`, translating each direction into an `action`.
7196
+ *
7197
+ * @returns Operation objects keyed by name.
7198
+ */
7199
+ private renderOperations;
7200
+ }
7201
+ /**
7202
+ * Create a fresh, empty AsyncAPI registry.
7203
+ *
7204
+ * @returns A registry to register channels, messages and operations on.
7205
+ */
7206
+ declare function createAsyncApiRegistry(): AsyncApiRegistry;
7207
+ /**
7208
+ * Generate an AsyncAPI document from a populated registry.
7209
+ *
7210
+ * @param registry - The registry holding channels, messages and operations.
7211
+ * @param options - The `info` block, optional servers and default content
7212
+ * type.
7213
+ * @returns The generated document (plain object, JSON-serializable).
7214
+ * @throws Error When an operation refers to something unregistered.
7215
+ */
7216
+ declare function generateAsyncApiDocument(registry: AsyncApiRegistry, options: GenerateAsyncApiOptions): Record<string, unknown>;
7217
+
7218
+ /** Serving the AsyncAPI document over HTTP. */
7219
+
7220
+ /** A generated AsyncAPI document, as a plain JSON-serializable object. */
7221
+ type AsyncApiDocument = Record<string, unknown>;
7222
+ /**
7223
+ * Serve the AsyncAPI document as JSON.
7224
+ *
7225
+ * @param app - The Express application.
7226
+ * @param path - Route to serve it at, e.g. `/asyncapi.json`.
7227
+ * @param document - The document from `generateAsyncApiDocument`.
7228
+ * @returns Nothing.
7229
+ *
7230
+ * The mirror of `mountOpenApiJson`, and mounted next to it: a service that
7231
+ * speaks both HTTP and WebSocket publishes two documents, because no single
7232
+ * format describes both.
7233
+ */
7234
+ declare function mountAsyncApiJson(app: Express, path: string, document: AsyncApiDocument): void;
7235
+
6964
7236
  /**
6965
7237
  * Application factory and server runner, mirroring `api.app` + `api.server`.
6966
7238
  *
@@ -6986,6 +7258,19 @@ interface CreateAppOpenApi extends GenerateOpenApiOptions {
6986
7258
  /** Extra Redoc options. */
6987
7259
  redoc?: RedocOptions;
6988
7260
  }
7261
+ /**
7262
+ * AsyncAPI documentation configuration for {@link createApp}.
7263
+ *
7264
+ * Sits beside {@link CreateAppOpenApi} rather than inside it: a service that
7265
+ * speaks HTTP and WebSocket publishes two documents, because no single format
7266
+ * describes both.
7267
+ */
7268
+ interface CreateAppAsyncApi extends GenerateAsyncApiOptions {
7269
+ /** Registry holding the registered channels, messages and operations. */
7270
+ registry: AsyncApiRegistry;
7271
+ /** Route serving the document JSON. Default `/asyncapi.json`. */
7272
+ jsonPath?: string;
7273
+ }
6989
7274
  /** Options for {@link createApp}. */
6990
7275
  interface CreateAppOptions {
6991
7276
  /** Allowed CORS origins. `"*"` or a list; omit/`false` to disable CORS. */
@@ -6996,6 +7281,8 @@ interface CreateAppOptions {
6996
7281
  configure?: (app: Express) => void | Promise<void>;
6997
7282
  /** OpenAPI docs configuration; omit to skip Swagger/Redoc. */
6998
7283
  openapi?: CreateAppOpenApi;
7284
+ /** AsyncAPI docs configuration; omit when the service serves no socket. */
7285
+ asyncapi?: CreateAppAsyncApi;
6999
7286
  /** Message catalog for localized error responses. */
7000
7287
  catalog?: MessageCatalog;
7001
7288
  /** Error-handling options forwarded to {@link registerExceptionHandlers}. */
@@ -7754,6 +8041,6 @@ declare function createTestDatabase(models: readonly ModelClass[]): TestDatabase
7754
8041
  declare function withTestDatabase<T>(models: readonly ModelClass[], fn: (db: TestDatabase) => Promise<T>): Promise<T>;
7755
8042
 
7756
8043
  /** The installed SDK version. Single source of truth for the barrel + CLI. */
7757
- declare const VERSION = "0.30.0";
8044
+ declare const VERSION = "0.32.0";
7758
8045
 
7759
- export { ADMIN_CSS, type ActivationInput, ActivationService, type ActivationServiceOptions, type ActivationStore, type AdminAccessPolicy, type AdminAction, type AdminActionCategory, type AdminActionContext, type AdminActionHandler, type AdminActionOptions, type AdminActionResult, type AdminAuditEntryView, type AdminAuditView, type AdminAuthBackend, type AdminAutomapOptions, type AdminBusinessCardView, type AdminDashboardCard, type AdminDashboardMetrics, type AdminDetailView, type AdminFilterKind, type AdminFilterView, type AdminFormField, type AdminFormView, type AdminImportView, type AdminInline, type AdminInlineOptions, type AdminInlineRowView, type AdminInlineView, type AdminJsonField, type AdminJsonListQuery, type AdminJsonListResult, type AdminJsonResource, type AdminJsonRouterOptions, AdminJsonSite, type AdminLens, type AdminLensOptions, type AdminListView, type AdminLogEntry, type AdminLogRowView, type AdminLogsView, type AdminMessage, type AdminMfaVerifier, AdminModel, type AdminModelOptions, type AdminNavEntry, AdminPermission, type AdminRenderContext, type AdminRouterOptions, type AdminRow, type AdminSelectOption, type AdminSession, AdminSessionStore, type AdminSessionStoreOptions, AdminSite, type AdminSiteOptions, type AdminSortView, type AdminSqlConsoleOptions, type AdminSqlView, type AdminTaskDetailView, type AdminTasksOptions, type AdminTasksView, type AdminTheme, type AdminWidget, AppException, type AppExceptionHandlerOptions, type AppExceptionOptions, type AttachWebSocketOptions, AttemptThrottle, type AttemptThrottleOptions, AuditAction, type AuthResponse, type AuthResultPageOptions, type AuthRouterOptions, type AuthUser, type BackupOptions, type BaseAppSettings, BaseAuditLogModel, BaseController, BaseJobModel, BaseModel, BaseOAuthClient, BaseOutboxModel, type BaseResponse, BaseService, BaseUserModel, BaseUserRefreshTokenModel, BaseUserTokenModel, type BodySizeLimitOptions, type BroadcastOptions, type BroadcastResult, type BrokerManager, type BuildFormFieldsOptions, type BulkActionOption, CEP_PATTERN, CNPJ_PATTERN, CPF_PATTERN, type CPUMetrics, CSRF_COOKIE_NAME, CSRF_HEADER_NAME, type CacheManager, type CachedOptions, type CachedResponse, type CardCompute, type CardData, type CatalogData, CircuitOpenError, type ClientIpOptions, CompositeFeatureFlagBackend, ConflictException, type CreateAppOpenApi, type CreateAppOptions, type CsrfOptions, type CursorPaginationFilter, DEFAULT_DOCS_FAVICON, DEFAULT_LOCALE, type DownloadOptions, type EmailMessage, type EmailOptions, EmailProvider, type EmailProviderOptions, EmailUtils, type Enum, type EnumHelpers, type EnumSpec, EnvFeatureFlagBackend, EventStream, type EventStreamOptions, type ExceptionDetails, ExpiredTokenException, type FeatureFlagBackend, FeatureFlags, type FieldChange, type FileLoggingHandle, type FileLoggingOptions, type FlagContext, ForbiddenException, type GPUMetrics, type GenerateOpenApiOptions, GitHubOAuthClient, GoogleOAuthClient, GracefulShutdown, type GracefulShutdownOptions, HTTPClient, type HTTPClientOptions, HTTP_500_LOG_FILE, HTTP_500_MARKER, type HandshakeInfo, type HealthCheck, type HealthRouterOptions, HttpMetrics, IDEMPOTENCY_HEADER, type IdempotencyOptions, type IdempotencyRedisLike, type IdempotencyStore, type InboundHandler, type InboundMessage, InvalidTokenException, type IssuedSession, JSONLogger, JWTUtils, type JWTUtilsOptions, JobStatus, JobStore, type JwtAuthOptions, type JwtClaims, type JwtDecoderLike, LEVEL_LOG_FILES, LocalUploadStorage, type LocalUploadStorageOptions, type LogEntry, type LogExtra, type LogLevel, type LogSink, type LogSource, type LoginInput, type LoginResult, type LogsRouterOptions, type MediaKind, MemoryBroker, MemoryCacheManager, MemoryFeatureFlagBackend, MemoryIdempotencyStore, type MemoryMetrics, MemoryRateLimitStore, MemorySessionStore, MemoryThrottleBackend, MessageCatalog, type MessageHandler, MessagingHub, type MessagingProvider, type MetricCard, type MetricPartition, type MetricTrend, type MetricValue, type MetricsRouterOptions, MetricsUtils, type MfaChallenge, type MfaChallengeInput, type MfaCodeInput, type MfaEnrollment, MfaService, type MfaServiceOptions, type MfaStore, MultipartLimitError, NotFoundException, type OAuthClientOptions, OAuthError, type OAuthTokens, type OAuthUser, OIDCProvider, type OIDCProviderOptions, type OpenApiDocument, type OpenApiInfo, type OutboundMedia, type OutboundResult, type OutboxPublisher, OutboxRelay, type OutboxRelayOptions, OutboxStatus, PHONE_BR_PATTERN, type PaginationFilter, type PaginationLinkOptions, type ParseFormBodyOptions, type ParseMultipartOptions, type ParsedAdminForm, type ParsedMultipart, type PasswordResetConfirmInput, type PasswordResetFormOptions, type PasswordResetRequestInput, PasswordResetService, type PasswordResetServiceOptions, type PasswordResetStore, PasswordUtils, REDOC_CDN_URL, REQUEST_ID_HEADER, RabbitBroker, type RabbitBrokerOptions, type RateLimitKeyFunc, type RateLimitOptions, type RateLimitRedisLike, type RateLimitResult, type RateLimitStore, RedisCacheManager, RedisIdempotencyStore, type RedisLike, type RedisPublisherLike, RedisRateLimitStore, RedisSSEBroker, type RedisSSEBrokerOptions, RedisSessionStore, type RedisSubscriberLike, type RedocBundleSource, type RedocOptions, type RefreshInput, Region, type RegionValue, type RegisterExceptionHandlersOptions, type RequestContext, type RequestTracingOptions, type ResolvedAdminTheme, type ResponseMapper, RetryPolicy, type RunServerOptions, type S3ClientLike, S3UploadStorage, type S3UploadStorageOptions, SSEBroker, type SaveOptions, type SendOptions, ServerSentEvent, type ServerSentEventInit, type Session, type SessionMiddlewareOptions, type SessionRedisLike, SessionService, type SessionServiceOptions, type SessionStore, type SignupInput, type SlowQueryOptions, type SpecProvider, type SqlAnalysis, type SqlAuditEntry, type SqlAuditHook, SqlCapability, type SqlConsolePolicy, type StateBR, type SwaggerOptions, type SyncFilter, type SystemMetrics, TOTPHelper, type TOTPOptions, type TaskHandler, type TaskInventoryEntry, TaskManager, type TaskManagerOptions, type TaskRegistrationOptions, TelegramProvider, type TelegramProviderOptions, TenantScopedRepository, type TestDatabase, type ThrottleBackend, type ThrottleStatus, type ToDictOptions, type TokenPair, TooManyRequestsException, type TooManyRequestsOptions, type ToolSpecOptions, TwilioSmsProvider, type TwilioSmsProviderOptions, type TwilioWebhookOptions, UF, type UFValue, UnauthorizedException, type UnhandledExceptionHandlerOptions, type UploadResult, type UploadStorage, type UploadedFile, UserAuthService, type UserAuthServiceOptions, UserModelAuthBackend, type UserModelAuthBackendOptions, type UserPublic, type UserStore, UserTokenPurpose, VERSION, ValidationException, type WSEnvelope, WebPushDispatcher, type WebPushDispatcherOptions, WebPushError, WebPushGoneError, type WebPushKeys, type WebPushPayload, type WebPushSubscription, type WebSocketConnection, WebSocketHub, type WebSocketHubOptions, type WebSocketLike, type WebhookSignatureOptions, WebhookSignatureVerifier, WhatsAppProvider, type WhatsAppProviderOptions, type WhatsAppWebhookOptions, type WidgetSpec, activationSchema, addLogSink, adminAction, adminColumns, adminInline, adminLens, adminThemeCss, analyzeSql, attachWebSocketHub, authResponseSchema, authSettingsShape, backupDatabase, baseAppSettingsSchema, baseAppSettingsShape, baseResponseSchema, bearerToken, bodySizeLimitMiddleware, broadcastText, buildContentDisposition, buildFormFields, buildPaginationLinkHeader, cached, centsField, cepField, checkSqlPolicy, citiesByUf, cnpjField, coerceFlag, configureFileLogging, configureLogging, corsSettingsShape, cpfField, cpfOrCnpjField, createApp, createOpenApiRegistry, createTestDatabase, createdByColumn, csrfMiddleware, csrfTokenMatches, cursorPaginationFilterSchema, cursorPaginationSchema, databaseSettingsShape, decodeCursor, defaultMessageCatalog, defineEnum, deletedAtColumn, diffSnapshots, emailSettingsShape, encodeCursor, looseBoolean as envBoolean, envList, escapeHtml, filterForColumn, filterLogEntries, foreignKeyFields, foreignKeyLabel, foreignKeyTable, formatCellValue, formatFieldValue, generateCsrfToken, generateOAuthState, generateOpaqueToken, generateOpenApiDocument, getAuth, getClientIp, getConditions, getPaginationConditions, getRequestId, getState, groupInlineSubmission, hashOpaqueToken, hexColorField, humanizeField, idempotencyMiddleware, inboundMessageSchema, isColumnOptional, isMultipart, isSearchableColumn, isValidCep, isValidCity, isValidCnpj, isValidCpf, isValidCpfCnpj, isValidPhoneBr, isValidUf, jwtSettingsShape, keyByHeader, keyByIp, keyByJwtClaim, keyByJwtSubject, latitudeField, listStates, loadSettings, loadSqlParser, logEntrySchema, logSettingsShape, loginSchema, longitudeField, looseBoolean, makeAdminJsonRouter, makeAdminRouter, makeAppExceptionHandler, makeAuthRouter, makeFlagGuard, makeHealthRouter, makeJwtAuthMiddleware, makeLogsRouter, makeMetricsRouter, makeSessionMiddleware, makeToolSpecRouter, makeTwilioWebhookRouter, makeUnhandledExceptionHandler, makeWhatsAppWebhookRouter, metricCard, mfaChallengeSchema, mfaCodeSchema, mfaEnrollResponseSchema, minioSettingsShape, modifyDict, mountOpenApiJson, mountRedoc, mountSwaggerUi, nonEmptyStrField, nonNegativeFloatField, nonNegativeIntField, normalizeCep, normalizeCnpj, normalizeCpf, normalizeCpfCnpj, normalizePhoneBr, normalizeUf, notFoundHandler, onlyDigits, paginationFilterSchema, paginationSchema, parseAcceptLanguage, parseCookies, parseCsv, parseFormBody, parseMultipart, partitionTotal, passwordResetConfirmSchema, passwordResetRequestSchema, percentField, phoneBrField, portField, positiveFloatField, positiveIntField, priceField, prometheusMiddleware, rabbitmqSettingsShape, rateLimitMiddleware, ratingField, ratioField, readLogEntries, redisSettingsShape, refreshSchema, registerExceptionHandlers, renderAuthResultPage, renderDashboardPage, renderDetailPage, renderFormPage, renderImportPage, renderLayout, renderListPage, renderLogEntriesJson, renderLogEntriesMarkdown, renderLoginPage, renderLogsPage, renderMfaPage, renderPasswordResetFormPage, renderSqlPage, renderTaskDetailPage, renderTasksPage, requestIdMiddleware, requestTracingMiddleware, requireRoles, resolveAdminTheme, resolveDownloadPath, resolveRedocBundle, runServer, runWithRequestContext, sendBytesDownload, sendFileDownload, serverSettingsShape, sessionCookie, sessionSettingsShape, setRequestId, signupSchema, slugField, snapshot, sseResponse, statesByRegion, syncFilterSchema, syncPaginationSchema, tableNameFor, toDict, toLogEntry, toUtc, tokenFromUrl, tokenPairSchema, tokenSettingsShape, trendDirection, trendPercent, ufField, updatedByColumn, uploadSettingsShape, userPublicSchema, utcnow, validateTwilioSignature, verifyOpaqueToken, webPushKeysSchema, webPushPayloadSchema, webPushSettingsShape, webPushSubscriptionSchema, webSocketSettingsShape, widgetForColumn, withTestDatabase, wrapWithSlowQueryLog, wsEnvelopeSchema };
8046
+ export { ADMIN_CSS, ASYNCAPI_VERSION, type ActivationInput, ActivationService, type ActivationServiceOptions, type ActivationStore, type AdminAccessPolicy, type AdminAction, type AdminActionCategory, type AdminActionContext, type AdminActionHandler, type AdminActionOptions, type AdminActionResult, type AdminAuditEntryView, type AdminAuditView, type AdminAuthBackend, type AdminAutomapOptions, type AdminBusinessCardView, type AdminDashboardCard, type AdminDashboardMetrics, type AdminDetailView, type AdminFilterKind, type AdminFilterView, type AdminFormField, type AdminFormView, type AdminImportView, type AdminInline, type AdminInlineOptions, type AdminInlineRowView, type AdminInlineView, type AdminJsonField, type AdminJsonListQuery, type AdminJsonListResult, type AdminJsonResource, type AdminJsonRouterOptions, AdminJsonSite, type AdminLens, type AdminLensOptions, type AdminListView, type AdminLogEntry, type AdminLogRowView, type AdminLogsView, type AdminMessage, type AdminMfaVerifier, AdminModel, type AdminModelOptions, type AdminNavEntry, AdminPermission, type AdminRenderContext, type AdminRouterOptions, type AdminRow, type AdminSelectOption, type AdminSession, AdminSessionStore, type AdminSessionStoreOptions, AdminSite, type AdminSiteOptions, type AdminSortView, type AdminSqlConsoleOptions, type AdminSqlView, type AdminTaskDetailView, type AdminTasksOptions, type AdminTasksView, type AdminTheme, type AdminWidget, AppException, type AppExceptionHandlerOptions, type AppExceptionOptions, type AsyncApiChannel, type AsyncApiDocument, type AsyncApiInfo, type AsyncApiMessage, type AsyncApiOperation, AsyncApiRegistry, type AttachWebSocketOptions, AttemptThrottle, type AttemptThrottleOptions, AuditAction, type AuthResponse, type AuthResultPageOptions, type AuthRouterOptions, type AuthUser, type BackupOptions, type BaseAppSettings, BaseAuditLogModel, BaseController, BaseJobModel, BaseModel, BaseOAuthClient, BaseOutboxModel, type BaseResponse, BaseService, BaseUserModel, BaseUserRefreshTokenModel, BaseUserTokenModel, type BodySizeLimitOptions, type BroadcastOptions, type BroadcastResult, type BrokerManager, type BuildFormFieldsOptions, type BulkActionOption, CEP_PATTERN, CNPJ_PATTERN, CPF_PATTERN, type CPUMetrics, CSRF_COOKIE_NAME, CSRF_HEADER_NAME, type CacheManager, type CachedOptions, type CachedResponse, type CardCompute, type CardData, type CatalogData, CircuitOpenError, type ClientIpOptions, CompositeFeatureFlagBackend, ConflictException, type CreateAppOpenApi, type CreateAppOptions, type CsrfOptions, type CursorPaginationFilter, DEFAULT_DOCS_FAVICON, DEFAULT_LOCALE, type DownloadOptions, type EmailMessage, type EmailOptions, EmailProvider, type EmailProviderOptions, EmailUtils, type Enum, type EnumHelpers, type EnumSpec, EnvFeatureFlagBackend, EventStream, type EventStreamOptions, type ExceptionDetails, ExpiredTokenException, type FeatureFlagBackend, FeatureFlags, type FieldChange, type FileLoggingHandle, type FileLoggingOptions, type FlagContext, ForbiddenException, type GPUMetrics, type GenerateAsyncApiOptions, type GenerateOpenApiOptions, GitHubOAuthClient, GoogleOAuthClient, GracefulShutdown, type GracefulShutdownOptions, HTTPClient, type HTTPClientOptions, HTTP_500_LOG_FILE, HTTP_500_MARKER, type HandshakeInfo, type HealthCheck, type HealthRouterOptions, HttpMetrics, IDEMPOTENCY_HEADER, type IdempotencyOptions, type IdempotencyRedisLike, type IdempotencyStore, type InboundHandler, type InboundMessage, InvalidTokenException, type IssuedSession, JSONLogger, JWTUtils, type JWTUtilsOptions, JobStatus, JobStore, type JwtAuthOptions, type JwtClaims, type JwtDecoderLike, LEVEL_LOG_FILES, LocalUploadStorage, type LocalUploadStorageOptions, type LogEntry, type LogExtra, type LogLevel, type LogSink, type LogSource, type LoginInput, type LoginResult, type LogsRouterOptions, type MediaKind, MemoryBroker, MemoryCacheManager, MemoryFeatureFlagBackend, MemoryIdempotencyStore, type MemoryMetrics, MemoryRateLimitStore, MemorySessionStore, MemoryThrottleBackend, MessageCatalog, type MessageHandler, MessagingHub, type MessagingProvider, type MetricCard, type MetricPartition, type MetricTrend, type MetricValue, type MetricsRouterOptions, MetricsUtils, type MfaChallenge, type MfaChallengeInput, type MfaCodeInput, type MfaEnrollment, MfaService, type MfaServiceOptions, type MfaStore, MultipartLimitError, NotFoundException, type OAuthClientOptions, OAuthError, type OAuthTokens, type OAuthUser, OIDCProvider, type OIDCProviderOptions, type OpenApiDocument, type OpenApiInfo, type OperationDirection, type OutboundMedia, type OutboundResult, type OutboxPublisher, OutboxRelay, type OutboxRelayOptions, OutboxStatus, PERSPECTIVE_EXTENSION, PHONE_BR_PATTERN, type PaginationFilter, type PaginationLinkOptions, type ParseFormBodyOptions, type ParseMultipartOptions, type ParsedAdminForm, type ParsedMultipart, type PasswordResetConfirmInput, type PasswordResetFormOptions, type PasswordResetRequestInput, PasswordResetService, type PasswordResetServiceOptions, type PasswordResetStore, PasswordUtils, REDOC_CDN_URL, REQUEST_ID_HEADER, RabbitBroker, type RabbitBrokerOptions, type RateLimitKeyFunc, type RateLimitOptions, type RateLimitRedisLike, type RateLimitResult, type RateLimitStore, RedisCacheManager, RedisIdempotencyStore, type RedisLike, type RedisPublisherLike, RedisRateLimitStore, RedisSSEBroker, type RedisSSEBrokerOptions, RedisSessionStore, type RedisSubscriberLike, type RedocBundleSource, type RedocOptions, type RefreshInput, Region, type RegionValue, type RegisterExceptionHandlersOptions, type RequestContext, type RequestTracingOptions, type ResolvedAdminTheme, type ResponseMapper, RetryPolicy, type RunServerOptions, type S3ClientLike, S3UploadStorage, type S3UploadStorageOptions, SSEBroker, type SaveOptions, type SendOptions, ServerSentEvent, type ServerSentEventInit, type Session, type SessionMiddlewareOptions, type SessionRedisLike, SessionService, type SessionServiceOptions, type SessionStore, type SignupInput, type SlowQueryOptions, type SpecProvider, type SqlAnalysis, type SqlAuditEntry, type SqlAuditHook, SqlCapability, type SqlConsolePolicy, type StateBR, type SwaggerOptions, type SyncFilter, type SystemMetrics, TOTPHelper, type TOTPOptions, type TaskHandler, type TaskInventoryEntry, TaskManager, type TaskManagerOptions, type TaskRegistrationOptions, TelegramProvider, type TelegramProviderOptions, TenantScopedRepository, type TestDatabase, type ThrottleBackend, type ThrottleStatus, type ToDictOptions, type TokenPair, TooManyRequestsException, type TooManyRequestsOptions, type ToolSpecOptions, TwilioSmsProvider, type TwilioSmsProviderOptions, type TwilioWebhookOptions, UF, type UFValue, UnauthorizedException, type UnhandledExceptionHandlerOptions, type UploadResult, type UploadStorage, type UploadedFile, UserAuthService, type UserAuthServiceOptions, UserModelAuthBackend, type UserModelAuthBackendOptions, type UserPublic, type UserStore, UserTokenPurpose, VERSION, ValidationException, type WSEnvelope, WebPushDispatcher, type WebPushDispatcherOptions, WebPushError, WebPushGoneError, type WebPushKeys, type WebPushPayload, type WebPushSubscription, type WebSocketConnection, WebSocketHub, type WebSocketHubOptions, type WebSocketLike, type WebhookSignatureOptions, WebhookSignatureVerifier, WhatsAppProvider, type WhatsAppProviderOptions, type WhatsAppWebhookOptions, type WidgetSpec, activationSchema, addLogSink, adminAction, adminColumns, adminInline, adminLens, adminThemeCss, analyzeSql, attachWebSocketHub, authResponseSchema, authSettingsShape, backupDatabase, baseAppSettingsSchema, baseAppSettingsShape, baseResponseSchema, bearerToken, bodySizeLimitMiddleware, broadcastText, buildContentDisposition, buildFormFields, buildPaginationLinkHeader, cached, centsField, cepField, checkSqlPolicy, citiesByUf, cnpjField, coerceFlag, configureFileLogging, configureLogging, corsSettingsShape, cpfField, cpfOrCnpjField, createApp, createAsyncApiRegistry, createOpenApiRegistry, createTestDatabase, createdByColumn, csrfMiddleware, csrfTokenMatches, cursorPaginationFilterSchema, cursorPaginationSchema, databaseSettingsShape, decodeCursor, defaultMessageCatalog, defineEnum, deletedAtColumn, diffSnapshots, emailSettingsShape, encodeCursor, looseBoolean as envBoolean, envList, escapeHtml, filterForColumn, filterLogEntries, foreignKeyFields, foreignKeyLabel, foreignKeyTable, formatCellValue, formatFieldValue, generateAsyncApiDocument, generateCsrfToken, generateOAuthState, generateOpaqueToken, generateOpenApiDocument, getAuth, getClientIp, getConditions, getPaginationConditions, getRequestId, getState, groupInlineSubmission, hashOpaqueToken, hexColorField, humanizeField, idempotencyMiddleware, inboundMessageSchema, isColumnOptional, isMultipart, isSearchableColumn, isValidCep, isValidCity, isValidCnpj, isValidCpf, isValidCpfCnpj, isValidPhoneBr, isValidUf, jwtSettingsShape, keyByHeader, keyByIp, keyByJwtClaim, keyByJwtSubject, latitudeField, listStates, loadSettings, loadSqlParser, logEntrySchema, logSettingsShape, loginSchema, longitudeField, looseBoolean, makeAdminJsonRouter, makeAdminRouter, makeAppExceptionHandler, makeAuthRouter, makeFlagGuard, makeHealthRouter, makeJwtAuthMiddleware, makeLogsRouter, makeMetricsRouter, makeSessionMiddleware, makeToolSpecRouter, makeTwilioWebhookRouter, makeUnhandledExceptionHandler, makeWhatsAppWebhookRouter, metricCard, mfaChallengeSchema, mfaCodeSchema, mfaEnrollResponseSchema, minioSettingsShape, modifyDict, mountAsyncApiJson, mountOpenApiJson, mountRedoc, mountSwaggerUi, nonEmptyStrField, nonNegativeFloatField, nonNegativeIntField, normalizeCep, normalizeCnpj, normalizeCpf, normalizeCpfCnpj, normalizePhoneBr, normalizeUf, notFoundHandler, onlyDigits, paginationFilterSchema, paginationSchema, parseAcceptLanguage, parseCookies, parseCsv, parseFormBody, parseMultipart, partitionTotal, passwordResetConfirmSchema, passwordResetRequestSchema, percentField, phoneBrField, portField, positiveFloatField, positiveIntField, priceField, prometheusMiddleware, rabbitmqSettingsShape, rateLimitMiddleware, ratingField, ratioField, readLogEntries, redisSettingsShape, refreshSchema, registerExceptionHandlers, renderAuthResultPage, renderDashboardPage, renderDetailPage, renderFormPage, renderImportPage, renderLayout, renderListPage, renderLogEntriesJson, renderLogEntriesMarkdown, renderLoginPage, renderLogsPage, renderMfaPage, renderPasswordResetFormPage, renderSqlPage, renderTaskDetailPage, renderTasksPage, requestIdMiddleware, requestTracingMiddleware, requireRoles, resolveAdminTheme, resolveDownloadPath, resolveRedocBundle, runServer, runWithRequestContext, sendBytesDownload, sendFileDownload, serverSettingsShape, sessionCookie, sessionSettingsShape, setRequestId, signupSchema, slugField, snapshot, sseResponse, statesByRegion, syncFilterSchema, syncPaginationSchema, tableNameFor, toDict, toLogEntry, toUtc, tokenFromUrl, tokenPairSchema, tokenSettingsShape, trendDirection, trendPercent, ufField, updatedByColumn, uploadSettingsShape, userPublicSchema, utcnow, validateTwilioSignature, verifyOpaqueToken, webPushKeysSchema, webPushPayloadSchema, webPushSettingsShape, webPushSubscriptionSchema, webSocketSettingsShape, widgetForColumn, withTestDatabase, wrapWithSlowQueryLog, wsEnvelopeSchema };