tempest-express-sdk 0.21.0 → 0.22.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
@@ -374,7 +374,7 @@ declare const paginationFilterSchema: z.ZodObject<{
374
374
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
375
375
  pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
376
376
  orderBy: z.ZodOptional<z.ZodString>;
377
- ascending: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
377
+ ascending: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
378
378
  }, z.core.$strip>;
379
379
  /** The parsed shape of {@link paginationFilterSchema}. */
380
380
  type PaginationFilter = z.infer<typeof paginationFilterSchema>;
@@ -416,7 +416,7 @@ declare const cursorPaginationFilterSchema: z.ZodObject<{
416
416
  cursor: z.ZodOptional<z.ZodString>;
417
417
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
418
418
  orderBy: z.ZodDefault<z.ZodString>;
419
- ascending: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
419
+ ascending: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
420
420
  }, z.core.$strip>;
421
421
  /** The parsed shape of {@link cursorPaginationFilterSchema}. */
422
422
  type CursorPaginationFilter = z.infer<typeof cursorPaginationFilterSchema>;
@@ -490,6 +490,31 @@ declare const hexColorField: z.ZodString;
490
490
  * to strings, so money stays exact instead of drifting through a float.
491
491
  */
492
492
  declare const priceField: z.ZodString;
493
+ /**
494
+ * A boolean read from a **textual** source — a query string or an environment
495
+ * variable, where every value arrives as a string.
496
+ *
497
+ * `z.coerce.boolean()` is the wrong tool for those: it is `Boolean(input)`, so
498
+ * every non-empty string is `true` — `"false"` and `"0"` included — and there is
499
+ * no way to ask for `false` over the wire. This reads the usual textual tokens
500
+ * in both directions (`true`/`1`/`yes`/`on`/`y`/`enabled` and
501
+ * `false`/`0`/`no`/`off`/`n`/`disabled`, case-insensitive, surrounding
502
+ * whitespace trimmed) and **rejects** anything else, so a typo surfaces as a
503
+ * validation error instead of silently becoming `false`.
504
+ *
505
+ * An absent value — and an empty or whitespace-only string, which is how an
506
+ * unset `.env` entry (`DEBUG=`) reaches the schema — falls back to
507
+ * `defaultValue`. Real booleans pass through untouched, so a schema built for
508
+ * `process.env` still parses a synthetic object in tests.
509
+ *
510
+ * The OpenAPI metadata is pinned to `type: boolean` (with the default) so the
511
+ * document describes the field the client actually sends, not the union used to
512
+ * parse it.
513
+ *
514
+ * @param defaultValue - The value used when the field is absent or empty.
515
+ * @returns A zod schema producing a `boolean`.
516
+ */
517
+ declare function looseBoolean(defaultValue: boolean): z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
493
518
 
494
519
  /**
495
520
  * Delta-sync pagination schemas, mirroring `schemas.pagination` (Sync* half).
@@ -507,7 +532,7 @@ declare const syncFilterSchema: z.ZodObject<{
507
532
  since: z.ZodOptional<z.ZodCoercedDate<unknown>>;
508
533
  cursor: z.ZodOptional<z.ZodString>;
509
534
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
510
- includeDeleted: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
535
+ includeDeleted: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
511
536
  }, z.core.$strip>;
512
537
  /** The parsed shape of {@link syncFilterSchema}. */
513
538
  type SyncFilter = z.infer<typeof syncFilterSchema>;
@@ -593,7 +618,7 @@ type LogEntry = z.infer<typeof logEntrySchema>;
593
618
  declare const serverSettingsShape: {
594
619
  readonly HOST: z.ZodDefault<z.ZodString>;
595
620
  readonly PORT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
596
- readonly DEBUG: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
621
+ readonly DEBUG: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
597
622
  };
598
623
  /** Database connection settings. */
599
624
  declare const databaseSettingsShape: {
@@ -609,7 +634,7 @@ declare const baseAppSettingsShape: {
609
634
  readonly DATABASE_URL: z.ZodDefault<z.ZodString>;
610
635
  readonly HOST: z.ZodDefault<z.ZodString>;
611
636
  readonly PORT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
612
- readonly DEBUG: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
637
+ readonly DEBUG: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
613
638
  };
614
639
  /** A zod object built from {@link baseAppSettingsShape}. */
615
640
  declare const baseAppSettingsSchema: z.ZodObject<{
@@ -617,7 +642,7 @@ declare const baseAppSettingsSchema: z.ZodObject<{
617
642
  DATABASE_URL: z.ZodDefault<z.ZodString>;
618
643
  HOST: z.ZodDefault<z.ZodString>;
619
644
  PORT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
620
- DEBUG: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
645
+ DEBUG: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
621
646
  }, z.core.$strip>;
622
647
  /** The parsed shape of {@link baseAppSettingsSchema}. */
623
648
  type BaseAppSettings = z.infer<typeof baseAppSettingsSchema>;
@@ -661,15 +686,6 @@ declare function loadSettings<S extends z.ZodType>(schema: S, env?: NodeJS.Proce
661
686
  * fragments stay pure and testable.
662
687
  */
663
688
 
664
- /**
665
- * Parse an environment string into a boolean. Unlike `z.coerce.boolean()`
666
- * (which treats every non-empty string — including `"false"` — as `true`), this
667
- * reads the usual truthy tokens and treats everything else as `false`.
668
- *
669
- * @param defaultValue - The value when the variable is absent.
670
- * @returns A zod schema coercing `"true"`/`"1"`/`"yes"`/`"on"` to `true`.
671
- */
672
- declare function envBoolean(defaultValue: boolean): z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
673
689
  /**
674
690
  * Parse a comma-separated environment string into a trimmed, non-empty list.
675
691
  *
@@ -685,7 +701,7 @@ declare const logSettingsShape: {
685
701
  WARNING: "WARNING";
686
702
  ERROR: "ERROR";
687
703
  }>>;
688
- readonly LOG_JSON: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
704
+ readonly LOG_JSON: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
689
705
  readonly LOG_DIR: z.ZodDefault<z.ZodString>;
690
706
  };
691
707
  /** Redis connection settings (cache / sessions / SSE broker). */
@@ -716,8 +732,8 @@ declare const emailSettingsShape: {
716
732
  readonly SMTP_USERNAME: z.ZodOptional<z.ZodString>;
717
733
  readonly SMTP_PASSWORD: z.ZodOptional<z.ZodString>;
718
734
  readonly SMTP_FROM_ADDR: z.ZodDefault<z.ZodString>;
719
- readonly SMTP_USE_TLS: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
720
- readonly SMTP_USE_SSL: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
735
+ readonly SMTP_USE_TLS: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
736
+ readonly SMTP_USE_SSL: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
721
737
  readonly SMTP_TIMEOUT_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
722
738
  };
723
739
  /** Local upload storage settings. */
@@ -732,7 +748,7 @@ declare const minioSettingsShape: {
732
748
  readonly MINIO_ENDPOINT: z.ZodDefault<z.ZodString>;
733
749
  readonly MINIO_ACCESS_KEY: z.ZodDefault<z.ZodString>;
734
750
  readonly MINIO_SECRET_KEY: z.ZodDefault<z.ZodString>;
735
- readonly MINIO_SECURE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
751
+ readonly MINIO_SECURE: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
736
752
  readonly MINIO_REGION: z.ZodDefault<z.ZodString>;
737
753
  readonly MINIO_DEFAULT_BUCKET: z.ZodDefault<z.ZodString>;
738
754
  readonly MINIO_PUBLIC_ENDPOINT: z.ZodOptional<z.ZodString>;
@@ -748,18 +764,18 @@ declare const webPushSettingsShape: {
748
764
  /** Server-side session settings (cookie + TTL). */
749
765
  declare const sessionSettingsShape: {
750
766
  readonly SESSION_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
751
- readonly SESSION_SLIDING: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
767
+ readonly SESSION_SLIDING: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
752
768
  readonly SESSION_COOKIE_NAME: z.ZodDefault<z.ZodString>;
753
769
  readonly SESSION_COOKIE_DOMAIN: z.ZodOptional<z.ZodString>;
754
770
  readonly SESSION_COOKIE_PATH: z.ZodDefault<z.ZodString>;
755
- readonly SESSION_COOKIE_SECURE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
756
- readonly SESSION_COOKIE_HTTPONLY: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
771
+ readonly SESSION_COOKIE_SECURE: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
772
+ readonly SESSION_COOKIE_HTTPONLY: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
757
773
  readonly SESSION_COOKIE_SAMESITE: z.ZodDefault<z.ZodEnum<{
758
774
  lax: "lax";
759
775
  strict: "strict";
760
776
  none: "none";
761
777
  }>>;
762
- readonly SESSION_ROTATE_ON_LOGIN: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
778
+ readonly SESSION_ROTATE_ON_LOGIN: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
763
779
  };
764
780
  /** WebSocket hub tuning. */
765
781
  declare const webSocketSettingsShape: {
@@ -775,16 +791,16 @@ declare const webSocketSettingsShape: {
775
791
  * decoupled frontend.
776
792
  */
777
793
  declare const authSettingsShape: {
778
- readonly AUTH_AUTO_ACTIVATE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
779
- readonly AUTH_RETURN_TOKEN_IN_RESPONSE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
794
+ readonly AUTH_AUTO_ACTIVATE: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
795
+ readonly AUTH_RETURN_TOKEN_IN_RESPONSE: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
780
796
  readonly AUTH_ACTIVATION_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
781
797
  readonly AUTH_PASSWORD_RESET_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
782
798
  readonly AUTH_ACTIVATION_URL_TEMPLATE: z.ZodDefault<z.ZodString>;
783
799
  readonly AUTH_PASSWORD_RESET_URL_TEMPLATE: z.ZodDefault<z.ZodString>;
784
800
  readonly AUTH_PASSWORD_MIN_LENGTH: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
785
- readonly AUTH_PASSWORD_REQUIRE_COMPLEXITY: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
801
+ readonly AUTH_PASSWORD_REQUIRE_COMPLEXITY: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
786
802
  readonly AUTH_DEFAULT_LOCALE: z.ZodDefault<z.ZodString>;
787
- readonly AUTH_MFA_ENABLED: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
803
+ readonly AUTH_MFA_ENABLED: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
788
804
  readonly AUTH_MFA_ISSUER: z.ZodDefault<z.ZodString>;
789
805
  readonly AUTH_MFA_RECOVERY_CODES_COUNT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
790
806
  readonly AUTH_MFA_TOKEN_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -794,7 +810,7 @@ declare const authSettingsShape: {
794
810
  cookie: "cookie";
795
811
  both: "both";
796
812
  }>>;
797
- readonly AUTH_COOKIE_SECURE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
813
+ readonly AUTH_COOKIE_SECURE: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
798
814
  readonly AUTH_COOKIE_SAMESITE: z.ZodDefault<z.ZodEnum<{
799
815
  lax: "lax";
800
816
  strict: "strict";
@@ -5157,6 +5173,6 @@ declare function createTestDatabase(models: readonly ModelClass[]): TestDatabase
5157
5173
  declare function withTestDatabase<T>(models: readonly ModelClass[], fn: (db: TestDatabase) => Promise<T>): Promise<T>;
5158
5174
 
5159
5175
  /** The installed SDK version. Single source of truth for the barrel + CLI. */
5160
- declare const VERSION = "0.21.0";
5176
+ declare const VERSION = "0.22.0";
5161
5177
 
5162
- 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, AuditAction, type AuthResponse, type AuthResultPageOptions, type AuthRouterOptions, type AuthUser, type BackupOptions, type BaseAppSettings, BaseAuditLogModel, BaseController, BaseModel, BaseOAuthClient, BaseOutboxModel, type BaseResponse, BaseService, BaseUserModel, BaseUserRefreshTokenModel, BaseUserTokenModel, type BodySizeLimitOptions, type BroadcastOptions, type BroadcastResult, type BrokerManager, CEP_PATTERN, CNPJ_PATTERN, CPF_PATTERN, type CPUMetrics, CSRF_COOKIE_NAME, CSRF_HEADER_NAME, type CacheManager, type CachedOptions, type CachedResponse, type CatalogData, CircuitOpenError, type ClientIpOptions, CompositeFeatureFlagBackend, ConflictException, type CreateAppOpenApi, type CreateAppOptions, type CsrfOptions, type CursorPaginationFilter, 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, 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 MetricsRouterOptions, MetricsUtils, type MfaChallenge, type MfaChallengeInput, type MfaCodeInput, type MfaEnrollment, MfaService, type MfaServiceOptions, type MfaStore, 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 PasswordResetConfirmInput, type PasswordResetFormOptions, type PasswordResetRequestInput, PasswordResetService, type PasswordResetServiceOptions, type PasswordResetStore, PasswordUtils, 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 RedocOptions, type RefreshInput, Region, type RegionValue, type RegisterExceptionHandlersOptions, type RequestContext, type RequestTracingOptions, 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 StateBR, type SwaggerOptions, type SyncFilter, type SystemMetrics, TOTPHelper, type TOTPOptions, type TaskHandler, TaskManager, type TaskManagerOptions, 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, UserAuthService, type UserAuthServiceOptions, 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, activationSchema, addLogSink, attachWebSocketHub, authResponseSchema, authSettingsShape, backupDatabase, baseAppSettingsSchema, baseAppSettingsShape, baseResponseSchema, bearerToken, bodySizeLimitMiddleware, broadcastText, buildContentDisposition, buildPaginationLinkHeader, cached, centsField, cepField, citiesByUf, cnpjField, coerceFlag, configureFileLogging, configureLogging, corsSettingsShape, cpfField, cpfOrCnpjField, createApp, createOpenApiRegistry, createTestDatabase, createdByColumn, csrfMiddleware, cursorPaginationFilterSchema, cursorPaginationSchema, databaseSettingsShape, decodeCursor, defaultMessageCatalog, defineEnum, deletedAtColumn, diffSnapshots, emailSettingsShape, encodeCursor, envBoolean, envList, generateCsrfToken, generateOAuthState, generateOpaqueToken, generateOpenApiDocument, getAuth, getClientIp, getConditions, getPaginationConditions, getRequestId, getState, hashOpaqueToken, hexColorField, idempotencyMiddleware, inboundMessageSchema, isValidCep, isValidCity, isValidCnpj, isValidCpf, isValidCpfCnpj, isValidPhoneBr, isValidUf, jwtSettingsShape, keyByHeader, keyByIp, keyByJwtClaim, keyByJwtSubject, latitudeField, listStates, loadSettings, logEntrySchema, logSettingsShape, loginSchema, longitudeField, makeAdminRouter, makeAppExceptionHandler, makeAuthRouter, makeFlagGuard, makeHealthRouter, makeJwtAuthMiddleware, makeLogsRouter, makeMetricsRouter, makeSessionMiddleware, makeToolSpecRouter, makeTwilioWebhookRouter, makeUnhandledExceptionHandler, makeWhatsAppWebhookRouter, mfaChallengeSchema, mfaCodeSchema, mfaEnrollResponseSchema, minioSettingsShape, modifyDict, mountOpenApiJson, mountRedoc, mountSwaggerUi, nonEmptyStrField, nonNegativeFloatField, nonNegativeIntField, normalizeCep, normalizeCnpj, normalizeCpf, normalizeCpfCnpj, normalizePhoneBr, normalizeUf, notFoundHandler, onlyDigits, paginationFilterSchema, paginationSchema, parseAcceptLanguage, parseCookies, passwordResetConfirmSchema, passwordResetRequestSchema, percentField, phoneBrField, portField, positiveFloatField, positiveIntField, priceField, prometheusMiddleware, rabbitmqSettingsShape, rateLimitMiddleware, ratingField, ratioField, redisSettingsShape, refreshSchema, registerExceptionHandlers, renderAuthResultPage, renderPasswordResetFormPage, requestIdMiddleware, requestTracingMiddleware, requireRoles, resolveDownloadPath, runServer, runWithRequestContext, sendBytesDownload, sendFileDownload, serverSettingsShape, sessionCookie, sessionSettingsShape, setRequestId, signupSchema, slugField, snapshot, sseResponse, statesByRegion, syncFilterSchema, syncPaginationSchema, tableNameFor, toDict, toUtc, tokenFromUrl, tokenPairSchema, tokenSettingsShape, ufField, updatedByColumn, uploadSettingsShape, userPublicSchema, utcnow, validateTwilioSignature, verifyOpaqueToken, webPushKeysSchema, webPushPayloadSchema, webPushSettingsShape, webPushSubscriptionSchema, webSocketSettingsShape, withTestDatabase, wrapWithSlowQueryLog, wsEnvelopeSchema };
5178
+ 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, AuditAction, type AuthResponse, type AuthResultPageOptions, type AuthRouterOptions, type AuthUser, type BackupOptions, type BaseAppSettings, BaseAuditLogModel, BaseController, BaseModel, BaseOAuthClient, BaseOutboxModel, type BaseResponse, BaseService, BaseUserModel, BaseUserRefreshTokenModel, BaseUserTokenModel, type BodySizeLimitOptions, type BroadcastOptions, type BroadcastResult, type BrokerManager, CEP_PATTERN, CNPJ_PATTERN, CPF_PATTERN, type CPUMetrics, CSRF_COOKIE_NAME, CSRF_HEADER_NAME, type CacheManager, type CachedOptions, type CachedResponse, type CatalogData, CircuitOpenError, type ClientIpOptions, CompositeFeatureFlagBackend, ConflictException, type CreateAppOpenApi, type CreateAppOptions, type CsrfOptions, type CursorPaginationFilter, 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, 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 MetricsRouterOptions, MetricsUtils, type MfaChallenge, type MfaChallengeInput, type MfaCodeInput, type MfaEnrollment, MfaService, type MfaServiceOptions, type MfaStore, 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 PasswordResetConfirmInput, type PasswordResetFormOptions, type PasswordResetRequestInput, PasswordResetService, type PasswordResetServiceOptions, type PasswordResetStore, PasswordUtils, 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 RedocOptions, type RefreshInput, Region, type RegionValue, type RegisterExceptionHandlersOptions, type RequestContext, type RequestTracingOptions, 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 StateBR, type SwaggerOptions, type SyncFilter, type SystemMetrics, TOTPHelper, type TOTPOptions, type TaskHandler, TaskManager, type TaskManagerOptions, 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, UserAuthService, type UserAuthServiceOptions, 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, activationSchema, addLogSink, attachWebSocketHub, authResponseSchema, authSettingsShape, backupDatabase, baseAppSettingsSchema, baseAppSettingsShape, baseResponseSchema, bearerToken, bodySizeLimitMiddleware, broadcastText, buildContentDisposition, buildPaginationLinkHeader, cached, centsField, cepField, citiesByUf, cnpjField, coerceFlag, configureFileLogging, configureLogging, corsSettingsShape, cpfField, cpfOrCnpjField, createApp, createOpenApiRegistry, createTestDatabase, createdByColumn, csrfMiddleware, cursorPaginationFilterSchema, cursorPaginationSchema, databaseSettingsShape, decodeCursor, defaultMessageCatalog, defineEnum, deletedAtColumn, diffSnapshots, emailSettingsShape, encodeCursor, looseBoolean as envBoolean, envList, generateCsrfToken, generateOAuthState, generateOpaqueToken, generateOpenApiDocument, getAuth, getClientIp, getConditions, getPaginationConditions, getRequestId, getState, hashOpaqueToken, hexColorField, idempotencyMiddleware, inboundMessageSchema, isValidCep, isValidCity, isValidCnpj, isValidCpf, isValidCpfCnpj, isValidPhoneBr, isValidUf, jwtSettingsShape, keyByHeader, keyByIp, keyByJwtClaim, keyByJwtSubject, latitudeField, listStates, loadSettings, logEntrySchema, logSettingsShape, loginSchema, longitudeField, looseBoolean, makeAdminRouter, makeAppExceptionHandler, makeAuthRouter, makeFlagGuard, makeHealthRouter, makeJwtAuthMiddleware, makeLogsRouter, makeMetricsRouter, makeSessionMiddleware, makeToolSpecRouter, makeTwilioWebhookRouter, makeUnhandledExceptionHandler, makeWhatsAppWebhookRouter, mfaChallengeSchema, mfaCodeSchema, mfaEnrollResponseSchema, minioSettingsShape, modifyDict, mountOpenApiJson, mountRedoc, mountSwaggerUi, nonEmptyStrField, nonNegativeFloatField, nonNegativeIntField, normalizeCep, normalizeCnpj, normalizeCpf, normalizeCpfCnpj, normalizePhoneBr, normalizeUf, notFoundHandler, onlyDigits, paginationFilterSchema, paginationSchema, parseAcceptLanguage, parseCookies, passwordResetConfirmSchema, passwordResetRequestSchema, percentField, phoneBrField, portField, positiveFloatField, positiveIntField, priceField, prometheusMiddleware, rabbitmqSettingsShape, rateLimitMiddleware, ratingField, ratioField, redisSettingsShape, refreshSchema, registerExceptionHandlers, renderAuthResultPage, renderPasswordResetFormPage, requestIdMiddleware, requestTracingMiddleware, requireRoles, resolveDownloadPath, runServer, runWithRequestContext, sendBytesDownload, sendFileDownload, serverSettingsShape, sessionCookie, sessionSettingsShape, setRequestId, signupSchema, slugField, snapshot, sseResponse, statesByRegion, syncFilterSchema, syncPaginationSchema, tableNameFor, toDict, toUtc, tokenFromUrl, tokenPairSchema, tokenSettingsShape, ufField, updatedByColumn, uploadSettingsShape, userPublicSchema, utcnow, validateTwilioSignature, verifyOpaqueToken, webPushKeysSchema, webPushPayloadSchema, webPushSettingsShape, webPushSubscriptionSchema, webSocketSettingsShape, withTestDatabase, wrapWithSlowQueryLog, wsEnvelopeSchema };
package/dist/index.d.ts CHANGED
@@ -374,7 +374,7 @@ declare const paginationFilterSchema: z.ZodObject<{
374
374
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
375
375
  pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
376
376
  orderBy: z.ZodOptional<z.ZodString>;
377
- ascending: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
377
+ ascending: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
378
378
  }, z.core.$strip>;
379
379
  /** The parsed shape of {@link paginationFilterSchema}. */
380
380
  type PaginationFilter = z.infer<typeof paginationFilterSchema>;
@@ -416,7 +416,7 @@ declare const cursorPaginationFilterSchema: z.ZodObject<{
416
416
  cursor: z.ZodOptional<z.ZodString>;
417
417
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
418
418
  orderBy: z.ZodDefault<z.ZodString>;
419
- ascending: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
419
+ ascending: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
420
420
  }, z.core.$strip>;
421
421
  /** The parsed shape of {@link cursorPaginationFilterSchema}. */
422
422
  type CursorPaginationFilter = z.infer<typeof cursorPaginationFilterSchema>;
@@ -490,6 +490,31 @@ declare const hexColorField: z.ZodString;
490
490
  * to strings, so money stays exact instead of drifting through a float.
491
491
  */
492
492
  declare const priceField: z.ZodString;
493
+ /**
494
+ * A boolean read from a **textual** source — a query string or an environment
495
+ * variable, where every value arrives as a string.
496
+ *
497
+ * `z.coerce.boolean()` is the wrong tool for those: it is `Boolean(input)`, so
498
+ * every non-empty string is `true` — `"false"` and `"0"` included — and there is
499
+ * no way to ask for `false` over the wire. This reads the usual textual tokens
500
+ * in both directions (`true`/`1`/`yes`/`on`/`y`/`enabled` and
501
+ * `false`/`0`/`no`/`off`/`n`/`disabled`, case-insensitive, surrounding
502
+ * whitespace trimmed) and **rejects** anything else, so a typo surfaces as a
503
+ * validation error instead of silently becoming `false`.
504
+ *
505
+ * An absent value — and an empty or whitespace-only string, which is how an
506
+ * unset `.env` entry (`DEBUG=`) reaches the schema — falls back to
507
+ * `defaultValue`. Real booleans pass through untouched, so a schema built for
508
+ * `process.env` still parses a synthetic object in tests.
509
+ *
510
+ * The OpenAPI metadata is pinned to `type: boolean` (with the default) so the
511
+ * document describes the field the client actually sends, not the union used to
512
+ * parse it.
513
+ *
514
+ * @param defaultValue - The value used when the field is absent or empty.
515
+ * @returns A zod schema producing a `boolean`.
516
+ */
517
+ declare function looseBoolean(defaultValue: boolean): z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
493
518
 
494
519
  /**
495
520
  * Delta-sync pagination schemas, mirroring `schemas.pagination` (Sync* half).
@@ -507,7 +532,7 @@ declare const syncFilterSchema: z.ZodObject<{
507
532
  since: z.ZodOptional<z.ZodCoercedDate<unknown>>;
508
533
  cursor: z.ZodOptional<z.ZodString>;
509
534
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
510
- includeDeleted: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
535
+ includeDeleted: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
511
536
  }, z.core.$strip>;
512
537
  /** The parsed shape of {@link syncFilterSchema}. */
513
538
  type SyncFilter = z.infer<typeof syncFilterSchema>;
@@ -593,7 +618,7 @@ type LogEntry = z.infer<typeof logEntrySchema>;
593
618
  declare const serverSettingsShape: {
594
619
  readonly HOST: z.ZodDefault<z.ZodString>;
595
620
  readonly PORT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
596
- readonly DEBUG: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
621
+ readonly DEBUG: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
597
622
  };
598
623
  /** Database connection settings. */
599
624
  declare const databaseSettingsShape: {
@@ -609,7 +634,7 @@ declare const baseAppSettingsShape: {
609
634
  readonly DATABASE_URL: z.ZodDefault<z.ZodString>;
610
635
  readonly HOST: z.ZodDefault<z.ZodString>;
611
636
  readonly PORT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
612
- readonly DEBUG: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
637
+ readonly DEBUG: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
613
638
  };
614
639
  /** A zod object built from {@link baseAppSettingsShape}. */
615
640
  declare const baseAppSettingsSchema: z.ZodObject<{
@@ -617,7 +642,7 @@ declare const baseAppSettingsSchema: z.ZodObject<{
617
642
  DATABASE_URL: z.ZodDefault<z.ZodString>;
618
643
  HOST: z.ZodDefault<z.ZodString>;
619
644
  PORT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
620
- DEBUG: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
645
+ DEBUG: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
621
646
  }, z.core.$strip>;
622
647
  /** The parsed shape of {@link baseAppSettingsSchema}. */
623
648
  type BaseAppSettings = z.infer<typeof baseAppSettingsSchema>;
@@ -661,15 +686,6 @@ declare function loadSettings<S extends z.ZodType>(schema: S, env?: NodeJS.Proce
661
686
  * fragments stay pure and testable.
662
687
  */
663
688
 
664
- /**
665
- * Parse an environment string into a boolean. Unlike `z.coerce.boolean()`
666
- * (which treats every non-empty string — including `"false"` — as `true`), this
667
- * reads the usual truthy tokens and treats everything else as `false`.
668
- *
669
- * @param defaultValue - The value when the variable is absent.
670
- * @returns A zod schema coercing `"true"`/`"1"`/`"yes"`/`"on"` to `true`.
671
- */
672
- declare function envBoolean(defaultValue: boolean): z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
673
689
  /**
674
690
  * Parse a comma-separated environment string into a trimmed, non-empty list.
675
691
  *
@@ -685,7 +701,7 @@ declare const logSettingsShape: {
685
701
  WARNING: "WARNING";
686
702
  ERROR: "ERROR";
687
703
  }>>;
688
- readonly LOG_JSON: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
704
+ readonly LOG_JSON: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
689
705
  readonly LOG_DIR: z.ZodDefault<z.ZodString>;
690
706
  };
691
707
  /** Redis connection settings (cache / sessions / SSE broker). */
@@ -716,8 +732,8 @@ declare const emailSettingsShape: {
716
732
  readonly SMTP_USERNAME: z.ZodOptional<z.ZodString>;
717
733
  readonly SMTP_PASSWORD: z.ZodOptional<z.ZodString>;
718
734
  readonly SMTP_FROM_ADDR: z.ZodDefault<z.ZodString>;
719
- readonly SMTP_USE_TLS: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
720
- readonly SMTP_USE_SSL: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
735
+ readonly SMTP_USE_TLS: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
736
+ readonly SMTP_USE_SSL: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
721
737
  readonly SMTP_TIMEOUT_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
722
738
  };
723
739
  /** Local upload storage settings. */
@@ -732,7 +748,7 @@ declare const minioSettingsShape: {
732
748
  readonly MINIO_ENDPOINT: z.ZodDefault<z.ZodString>;
733
749
  readonly MINIO_ACCESS_KEY: z.ZodDefault<z.ZodString>;
734
750
  readonly MINIO_SECRET_KEY: z.ZodDefault<z.ZodString>;
735
- readonly MINIO_SECURE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
751
+ readonly MINIO_SECURE: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
736
752
  readonly MINIO_REGION: z.ZodDefault<z.ZodString>;
737
753
  readonly MINIO_DEFAULT_BUCKET: z.ZodDefault<z.ZodString>;
738
754
  readonly MINIO_PUBLIC_ENDPOINT: z.ZodOptional<z.ZodString>;
@@ -748,18 +764,18 @@ declare const webPushSettingsShape: {
748
764
  /** Server-side session settings (cookie + TTL). */
749
765
  declare const sessionSettingsShape: {
750
766
  readonly SESSION_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
751
- readonly SESSION_SLIDING: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
767
+ readonly SESSION_SLIDING: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
752
768
  readonly SESSION_COOKIE_NAME: z.ZodDefault<z.ZodString>;
753
769
  readonly SESSION_COOKIE_DOMAIN: z.ZodOptional<z.ZodString>;
754
770
  readonly SESSION_COOKIE_PATH: z.ZodDefault<z.ZodString>;
755
- readonly SESSION_COOKIE_SECURE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
756
- readonly SESSION_COOKIE_HTTPONLY: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
771
+ readonly SESSION_COOKIE_SECURE: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
772
+ readonly SESSION_COOKIE_HTTPONLY: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
757
773
  readonly SESSION_COOKIE_SAMESITE: z.ZodDefault<z.ZodEnum<{
758
774
  lax: "lax";
759
775
  strict: "strict";
760
776
  none: "none";
761
777
  }>>;
762
- readonly SESSION_ROTATE_ON_LOGIN: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
778
+ readonly SESSION_ROTATE_ON_LOGIN: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
763
779
  };
764
780
  /** WebSocket hub tuning. */
765
781
  declare const webSocketSettingsShape: {
@@ -775,16 +791,16 @@ declare const webSocketSettingsShape: {
775
791
  * decoupled frontend.
776
792
  */
777
793
  declare const authSettingsShape: {
778
- readonly AUTH_AUTO_ACTIVATE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
779
- readonly AUTH_RETURN_TOKEN_IN_RESPONSE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
794
+ readonly AUTH_AUTO_ACTIVATE: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
795
+ readonly AUTH_RETURN_TOKEN_IN_RESPONSE: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
780
796
  readonly AUTH_ACTIVATION_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
781
797
  readonly AUTH_PASSWORD_RESET_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
782
798
  readonly AUTH_ACTIVATION_URL_TEMPLATE: z.ZodDefault<z.ZodString>;
783
799
  readonly AUTH_PASSWORD_RESET_URL_TEMPLATE: z.ZodDefault<z.ZodString>;
784
800
  readonly AUTH_PASSWORD_MIN_LENGTH: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
785
- readonly AUTH_PASSWORD_REQUIRE_COMPLEXITY: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
801
+ readonly AUTH_PASSWORD_REQUIRE_COMPLEXITY: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
786
802
  readonly AUTH_DEFAULT_LOCALE: z.ZodDefault<z.ZodString>;
787
- readonly AUTH_MFA_ENABLED: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
803
+ readonly AUTH_MFA_ENABLED: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
788
804
  readonly AUTH_MFA_ISSUER: z.ZodDefault<z.ZodString>;
789
805
  readonly AUTH_MFA_RECOVERY_CODES_COUNT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
790
806
  readonly AUTH_MFA_TOKEN_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -794,7 +810,7 @@ declare const authSettingsShape: {
794
810
  cookie: "cookie";
795
811
  both: "both";
796
812
  }>>;
797
- readonly AUTH_COOKIE_SECURE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
813
+ readonly AUTH_COOKIE_SECURE: z.ZodPreprocess<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodCodec<z.ZodString, z.ZodBoolean>]>>, unknown>;
798
814
  readonly AUTH_COOKIE_SAMESITE: z.ZodDefault<z.ZodEnum<{
799
815
  lax: "lax";
800
816
  strict: "strict";
@@ -5157,6 +5173,6 @@ declare function createTestDatabase(models: readonly ModelClass[]): TestDatabase
5157
5173
  declare function withTestDatabase<T>(models: readonly ModelClass[], fn: (db: TestDatabase) => Promise<T>): Promise<T>;
5158
5174
 
5159
5175
  /** The installed SDK version. Single source of truth for the barrel + CLI. */
5160
- declare const VERSION = "0.21.0";
5176
+ declare const VERSION = "0.22.0";
5161
5177
 
5162
- 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, AuditAction, type AuthResponse, type AuthResultPageOptions, type AuthRouterOptions, type AuthUser, type BackupOptions, type BaseAppSettings, BaseAuditLogModel, BaseController, BaseModel, BaseOAuthClient, BaseOutboxModel, type BaseResponse, BaseService, BaseUserModel, BaseUserRefreshTokenModel, BaseUserTokenModel, type BodySizeLimitOptions, type BroadcastOptions, type BroadcastResult, type BrokerManager, CEP_PATTERN, CNPJ_PATTERN, CPF_PATTERN, type CPUMetrics, CSRF_COOKIE_NAME, CSRF_HEADER_NAME, type CacheManager, type CachedOptions, type CachedResponse, type CatalogData, CircuitOpenError, type ClientIpOptions, CompositeFeatureFlagBackend, ConflictException, type CreateAppOpenApi, type CreateAppOptions, type CsrfOptions, type CursorPaginationFilter, 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, 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 MetricsRouterOptions, MetricsUtils, type MfaChallenge, type MfaChallengeInput, type MfaCodeInput, type MfaEnrollment, MfaService, type MfaServiceOptions, type MfaStore, 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 PasswordResetConfirmInput, type PasswordResetFormOptions, type PasswordResetRequestInput, PasswordResetService, type PasswordResetServiceOptions, type PasswordResetStore, PasswordUtils, 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 RedocOptions, type RefreshInput, Region, type RegionValue, type RegisterExceptionHandlersOptions, type RequestContext, type RequestTracingOptions, 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 StateBR, type SwaggerOptions, type SyncFilter, type SystemMetrics, TOTPHelper, type TOTPOptions, type TaskHandler, TaskManager, type TaskManagerOptions, 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, UserAuthService, type UserAuthServiceOptions, 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, activationSchema, addLogSink, attachWebSocketHub, authResponseSchema, authSettingsShape, backupDatabase, baseAppSettingsSchema, baseAppSettingsShape, baseResponseSchema, bearerToken, bodySizeLimitMiddleware, broadcastText, buildContentDisposition, buildPaginationLinkHeader, cached, centsField, cepField, citiesByUf, cnpjField, coerceFlag, configureFileLogging, configureLogging, corsSettingsShape, cpfField, cpfOrCnpjField, createApp, createOpenApiRegistry, createTestDatabase, createdByColumn, csrfMiddleware, cursorPaginationFilterSchema, cursorPaginationSchema, databaseSettingsShape, decodeCursor, defaultMessageCatalog, defineEnum, deletedAtColumn, diffSnapshots, emailSettingsShape, encodeCursor, envBoolean, envList, generateCsrfToken, generateOAuthState, generateOpaqueToken, generateOpenApiDocument, getAuth, getClientIp, getConditions, getPaginationConditions, getRequestId, getState, hashOpaqueToken, hexColorField, idempotencyMiddleware, inboundMessageSchema, isValidCep, isValidCity, isValidCnpj, isValidCpf, isValidCpfCnpj, isValidPhoneBr, isValidUf, jwtSettingsShape, keyByHeader, keyByIp, keyByJwtClaim, keyByJwtSubject, latitudeField, listStates, loadSettings, logEntrySchema, logSettingsShape, loginSchema, longitudeField, makeAdminRouter, makeAppExceptionHandler, makeAuthRouter, makeFlagGuard, makeHealthRouter, makeJwtAuthMiddleware, makeLogsRouter, makeMetricsRouter, makeSessionMiddleware, makeToolSpecRouter, makeTwilioWebhookRouter, makeUnhandledExceptionHandler, makeWhatsAppWebhookRouter, mfaChallengeSchema, mfaCodeSchema, mfaEnrollResponseSchema, minioSettingsShape, modifyDict, mountOpenApiJson, mountRedoc, mountSwaggerUi, nonEmptyStrField, nonNegativeFloatField, nonNegativeIntField, normalizeCep, normalizeCnpj, normalizeCpf, normalizeCpfCnpj, normalizePhoneBr, normalizeUf, notFoundHandler, onlyDigits, paginationFilterSchema, paginationSchema, parseAcceptLanguage, parseCookies, passwordResetConfirmSchema, passwordResetRequestSchema, percentField, phoneBrField, portField, positiveFloatField, positiveIntField, priceField, prometheusMiddleware, rabbitmqSettingsShape, rateLimitMiddleware, ratingField, ratioField, redisSettingsShape, refreshSchema, registerExceptionHandlers, renderAuthResultPage, renderPasswordResetFormPage, requestIdMiddleware, requestTracingMiddleware, requireRoles, resolveDownloadPath, runServer, runWithRequestContext, sendBytesDownload, sendFileDownload, serverSettingsShape, sessionCookie, sessionSettingsShape, setRequestId, signupSchema, slugField, snapshot, sseResponse, statesByRegion, syncFilterSchema, syncPaginationSchema, tableNameFor, toDict, toUtc, tokenFromUrl, tokenPairSchema, tokenSettingsShape, ufField, updatedByColumn, uploadSettingsShape, userPublicSchema, utcnow, validateTwilioSignature, verifyOpaqueToken, webPushKeysSchema, webPushPayloadSchema, webPushSettingsShape, webPushSubscriptionSchema, webSocketSettingsShape, withTestDatabase, wrapWithSlowQueryLog, wsEnvelopeSchema };
5178
+ 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, AuditAction, type AuthResponse, type AuthResultPageOptions, type AuthRouterOptions, type AuthUser, type BackupOptions, type BaseAppSettings, BaseAuditLogModel, BaseController, BaseModel, BaseOAuthClient, BaseOutboxModel, type BaseResponse, BaseService, BaseUserModel, BaseUserRefreshTokenModel, BaseUserTokenModel, type BodySizeLimitOptions, type BroadcastOptions, type BroadcastResult, type BrokerManager, CEP_PATTERN, CNPJ_PATTERN, CPF_PATTERN, type CPUMetrics, CSRF_COOKIE_NAME, CSRF_HEADER_NAME, type CacheManager, type CachedOptions, type CachedResponse, type CatalogData, CircuitOpenError, type ClientIpOptions, CompositeFeatureFlagBackend, ConflictException, type CreateAppOpenApi, type CreateAppOptions, type CsrfOptions, type CursorPaginationFilter, 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, 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 MetricsRouterOptions, MetricsUtils, type MfaChallenge, type MfaChallengeInput, type MfaCodeInput, type MfaEnrollment, MfaService, type MfaServiceOptions, type MfaStore, 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 PasswordResetConfirmInput, type PasswordResetFormOptions, type PasswordResetRequestInput, PasswordResetService, type PasswordResetServiceOptions, type PasswordResetStore, PasswordUtils, 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 RedocOptions, type RefreshInput, Region, type RegionValue, type RegisterExceptionHandlersOptions, type RequestContext, type RequestTracingOptions, 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 StateBR, type SwaggerOptions, type SyncFilter, type SystemMetrics, TOTPHelper, type TOTPOptions, type TaskHandler, TaskManager, type TaskManagerOptions, 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, UserAuthService, type UserAuthServiceOptions, 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, activationSchema, addLogSink, attachWebSocketHub, authResponseSchema, authSettingsShape, backupDatabase, baseAppSettingsSchema, baseAppSettingsShape, baseResponseSchema, bearerToken, bodySizeLimitMiddleware, broadcastText, buildContentDisposition, buildPaginationLinkHeader, cached, centsField, cepField, citiesByUf, cnpjField, coerceFlag, configureFileLogging, configureLogging, corsSettingsShape, cpfField, cpfOrCnpjField, createApp, createOpenApiRegistry, createTestDatabase, createdByColumn, csrfMiddleware, cursorPaginationFilterSchema, cursorPaginationSchema, databaseSettingsShape, decodeCursor, defaultMessageCatalog, defineEnum, deletedAtColumn, diffSnapshots, emailSettingsShape, encodeCursor, looseBoolean as envBoolean, envList, generateCsrfToken, generateOAuthState, generateOpaqueToken, generateOpenApiDocument, getAuth, getClientIp, getConditions, getPaginationConditions, getRequestId, getState, hashOpaqueToken, hexColorField, idempotencyMiddleware, inboundMessageSchema, isValidCep, isValidCity, isValidCnpj, isValidCpf, isValidCpfCnpj, isValidPhoneBr, isValidUf, jwtSettingsShape, keyByHeader, keyByIp, keyByJwtClaim, keyByJwtSubject, latitudeField, listStates, loadSettings, logEntrySchema, logSettingsShape, loginSchema, longitudeField, looseBoolean, makeAdminRouter, makeAppExceptionHandler, makeAuthRouter, makeFlagGuard, makeHealthRouter, makeJwtAuthMiddleware, makeLogsRouter, makeMetricsRouter, makeSessionMiddleware, makeToolSpecRouter, makeTwilioWebhookRouter, makeUnhandledExceptionHandler, makeWhatsAppWebhookRouter, mfaChallengeSchema, mfaCodeSchema, mfaEnrollResponseSchema, minioSettingsShape, modifyDict, mountOpenApiJson, mountRedoc, mountSwaggerUi, nonEmptyStrField, nonNegativeFloatField, nonNegativeIntField, normalizeCep, normalizeCnpj, normalizeCpf, normalizeCpfCnpj, normalizePhoneBr, normalizeUf, notFoundHandler, onlyDigits, paginationFilterSchema, paginationSchema, parseAcceptLanguage, parseCookies, passwordResetConfirmSchema, passwordResetRequestSchema, percentField, phoneBrField, portField, positiveFloatField, positiveIntField, priceField, prometheusMiddleware, rabbitmqSettingsShape, rateLimitMiddleware, ratingField, ratioField, redisSettingsShape, refreshSchema, registerExceptionHandlers, renderAuthResultPage, renderPasswordResetFormPage, requestIdMiddleware, requestTracingMiddleware, requireRoles, resolveDownloadPath, runServer, runWithRequestContext, sendBytesDownload, sendFileDownload, serverSettingsShape, sessionCookie, sessionSettingsShape, setRequestId, signupSchema, slugField, snapshot, sseResponse, statesByRegion, syncFilterSchema, syncPaginationSchema, tableNameFor, toDict, toUtc, tokenFromUrl, tokenPairSchema, tokenSettingsShape, ufField, updatedByColumn, uploadSettingsShape, userPublicSchema, utcnow, validateTwilioSignature, verifyOpaqueToken, webPushKeysSchema, webPushPayloadSchema, webPushSettingsShape, webPushSubscriptionSchema, webSocketSettingsShape, withTestDatabase, wrapWithSlowQueryLog, wsEnvelopeSchema };