tempest-express-sdk 0.29.0 → 0.30.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
@@ -2800,6 +2800,26 @@ declare class RabbitBroker implements BrokerManager {
2800
2800
 
2801
2801
  /** A handler for a registered task. */
2802
2802
  type TaskHandler<P = unknown> = (payload: P) => Promise<void> | void;
2803
+ /** One registered task, as the inventory reports it. */
2804
+ interface TaskInventoryEntry {
2805
+ /** The task name handlers are registered under. */
2806
+ name: string;
2807
+ /** A human-readable description, when the registration supplied one. */
2808
+ description: string | null;
2809
+ /** The declared schedule, when the registration supplied one. */
2810
+ schedule: string | null;
2811
+ }
2812
+ /** Optional metadata attached at registration, surfaced by the inventory. */
2813
+ interface TaskRegistrationOptions {
2814
+ /** What the task does, for an operator reading the panel. */
2815
+ description?: string;
2816
+ /**
2817
+ * The schedule this task is expected to run on (a cron expression, an
2818
+ * interval — whatever your scheduler speaks). Recorded and displayed, never
2819
+ * interpreted: the manager consumes a queue, it does not schedule.
2820
+ */
2821
+ schedule?: string;
2822
+ }
2803
2823
  /** Options for {@link TaskManager}. */
2804
2824
  interface TaskManagerOptions {
2805
2825
  /** The broker to publish/consume on. Defaults to a {@link MemoryBroker}. */
@@ -2811,6 +2831,7 @@ declare class TaskManager {
2811
2831
  private readonly broker;
2812
2832
  private readonly queue;
2813
2833
  private readonly handlers;
2834
+ private readonly metadata;
2814
2835
  private unsubscribe;
2815
2836
  /**
2816
2837
  * @param options - Broker and queue name.
@@ -2821,8 +2842,21 @@ declare class TaskManager {
2821
2842
  *
2822
2843
  * @param name - The task name.
2823
2844
  * @param handler - The handler invoked with the task payload.
2845
+ * @param options - Description and declared schedule, surfaced by
2846
+ * {@link TaskManager.inventory} and by the admin panel's tasks page.
2824
2847
  */
2825
- register<P = unknown>(name: string, handler: TaskHandler<P>): void;
2848
+ register<P = unknown>(name: string, handler: TaskHandler<P>, options?: TaskRegistrationOptions): void;
2849
+ /**
2850
+ * Return what this process would run, ordered by name.
2851
+ *
2852
+ * This is the **declared** side of background work — the handlers this
2853
+ * process knows about — not queue state. A broker's pending depth is not
2854
+ * something the manager can see, and a screen that implied otherwise would
2855
+ * be worse than one that says nothing.
2856
+ *
2857
+ * @returns One entry per registered task.
2858
+ */
2859
+ inventory(): TaskInventoryEntry[];
2826
2860
  /**
2827
2861
  * Enqueue a task by name.
2828
2862
  *
@@ -2839,6 +2873,144 @@ declare class TaskManager {
2839
2873
  stop(): Promise<void>;
2840
2874
  }
2841
2875
 
2876
+ /** Lifecycle state of a job row. */
2877
+ declare const JobStatus: {
2878
+ /** Written, not started. */
2879
+ readonly QUEUED: "queued";
2880
+ /** A worker picked it up. */
2881
+ readonly RUNNING: "running";
2882
+ /** Finished cleanly. */
2883
+ readonly SUCCEEDED: "succeeded";
2884
+ /** Finished with an error. */
2885
+ readonly FAILED: "failed";
2886
+ /** An operator stopped it before it finished. */
2887
+ readonly CANCELLED: "cancelled";
2888
+ };
2889
+ /** A {@link JobStatus} value. */
2890
+ type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
2891
+ /**
2892
+ * Base for a persisted job record. Subclass it, set `tablename`, and index
2893
+ * `name` plus `status` in a migration.
2894
+ *
2895
+ * ```ts
2896
+ * export class JobModel extends BaseJobModel {
2897
+ * static override tablename = "job";
2898
+ * }
2899
+ * ```
2900
+ */
2901
+ declare abstract class BaseJobModel extends BaseModel {
2902
+ /** The task name this run belongs to. */
2903
+ name: tempest_db_js.Column<string, tempest_db_js.ColumnFlags & {
2904
+ notNull: true;
2905
+ }>;
2906
+ /** Lifecycle state — a {@link JobStatus} value. */
2907
+ status: tempest_db_js.Column<string, tempest_db_js.ColumnFlags & {
2908
+ notNull: true;
2909
+ } & {
2910
+ hasDefault: true;
2911
+ }>;
2912
+ /** The payload the run was started with. */
2913
+ payload: tempest_db_js.Column<Record<string, unknown>, tempest_db_js.ColumnFlags>;
2914
+ /** Whatever the run produced, for an operator to read afterwards. */
2915
+ result: tempest_db_js.Column<Record<string, unknown>, tempest_db_js.ColumnFlags>;
2916
+ /** The failure message, when the run failed. */
2917
+ error: tempest_db_js.Column<string, tempest_db_js.ColumnFlags>;
2918
+ /** How many times the run has been attempted. */
2919
+ attempts: tempest_db_js.Column<number, tempest_db_js.ColumnFlags & {
2920
+ notNull: true;
2921
+ } & {
2922
+ hasDefault: true;
2923
+ }>;
2924
+ /** When a worker picked it up. */
2925
+ startedAt: tempest_db_js.Column<Date, tempest_db_js.ColumnFlags>;
2926
+ /** When it reached a terminal state. */
2927
+ finishedAt: tempest_db_js.Column<Date, tempest_db_js.ColumnFlags>;
2928
+ }
2929
+ /**
2930
+ * The small surface workers write job rows through.
2931
+ *
2932
+ * Every transition is a method rather than a raw update, so "finished" always
2933
+ * means the same three columns moved together — a status without a
2934
+ * `finishedAt` is the kind of half-written row that makes a history screen lie.
2935
+ */
2936
+ declare class JobStore<C extends ModelClass = ModelClass> {
2937
+ readonly model: C;
2938
+ private readonly repository;
2939
+ /**
2940
+ * @param model - The concrete {@link BaseJobModel} subclass.
2941
+ * @param session - The session rows are written on.
2942
+ */
2943
+ constructor(model: C, session: AsyncSession);
2944
+ /**
2945
+ * Record a job about to run.
2946
+ *
2947
+ * @param name - The task name.
2948
+ * @param payload - The payload the run was started with.
2949
+ * @returns The created row.
2950
+ */
2951
+ enqueue(name: string, payload?: Record<string, unknown>): Promise<Record<string, unknown>>;
2952
+ /**
2953
+ * Mark a job as picked up, counting the attempt.
2954
+ *
2955
+ * @param id - The job id.
2956
+ * @param attempt - Which attempt this is. Default `1`.
2957
+ * @returns How many rows changed.
2958
+ */
2959
+ start(id: string, attempt?: number): Promise<number>;
2960
+ /**
2961
+ * Mark a job as finished cleanly.
2962
+ *
2963
+ * @param id - The job id.
2964
+ * @param result - Whatever the run produced.
2965
+ * @returns How many rows changed.
2966
+ */
2967
+ succeed(id: string, result?: Record<string, unknown>): Promise<number>;
2968
+ /**
2969
+ * Mark a job as failed.
2970
+ *
2971
+ * @param id - The job id.
2972
+ * @param error - The failure, as an `Error` or a message.
2973
+ * @returns How many rows changed.
2974
+ */
2975
+ fail(id: string, error: unknown): Promise<number>;
2976
+ /**
2977
+ * Ask a job to stop.
2978
+ *
2979
+ * A job already in a terminal state is left alone and reported as not
2980
+ * cancelled, so an operator clicking cancel on a run that just finished sees
2981
+ * the truth rather than a row rewritten under them.
2982
+ *
2983
+ * @param id - The job id.
2984
+ * @returns Whether the row moved to `cancelled`.
2985
+ */
2986
+ cancel(id: string): Promise<boolean>;
2987
+ /**
2988
+ * Read one job row.
2989
+ *
2990
+ * @param id - The job id.
2991
+ * @returns The row, or `null`.
2992
+ */
2993
+ get(id: string): Promise<Record<string, unknown> | null>;
2994
+ /**
2995
+ * Read a page of jobs, newest first.
2996
+ *
2997
+ * @param filter - Page, size and optional `name` / `status` filters.
2998
+ * @returns The page plus its metadata.
2999
+ */
3000
+ list(filter?: {
3001
+ page?: number;
3002
+ pageSize?: number;
3003
+ name?: string;
3004
+ status?: JobStatus;
3005
+ }): Promise<{
3006
+ items: Record<string, unknown>[];
3007
+ total: number;
3008
+ page: number;
3009
+ pageSize: number;
3010
+ pages: number;
3011
+ }>;
3012
+ }
3013
+
2842
3014
  /**
2843
3015
  * Feature-flag backends, mirroring `flags.backends`.
2844
3016
  *
@@ -5112,7 +5284,7 @@ declare class AdminSite {
5112
5284
  * It ships as a string rather than an asset because the package publishes only
5113
5285
  * `dist`: a `.css` file on disk would not survive the build.
5114
5286
  */
5115
- /** The stylesheet text. */
5287
+ /** The stylesheet the panel serves: the ported base plus this SDK's additions. */
5116
5288
  declare const ADMIN_CSS: string;
5117
5289
 
5118
5290
  /**
@@ -5520,6 +5692,85 @@ interface AdminLogsView {
5520
5692
  * @returns The full page.
5521
5693
  */
5522
5694
  declare function renderLogsPage(context: AdminRenderContext, view: AdminLogsView): string;
5695
+ /** The tasks page view model. */
5696
+ interface AdminTasksView {
5697
+ /** Declared tasks this process would run, or `null` when no manager was given. */
5698
+ inventory: {
5699
+ name: string;
5700
+ description: string;
5701
+ schedule: string;
5702
+ }[] | null;
5703
+ /** Persisted runs, or `null` when no job store was given. */
5704
+ runs: {
5705
+ rows: {
5706
+ id: string;
5707
+ name: string;
5708
+ status: string;
5709
+ startedAt: string;
5710
+ finishedAt: string;
5711
+ attempts: string;
5712
+ url: string;
5713
+ }[];
5714
+ total: number;
5715
+ page: number;
5716
+ pages: number;
5717
+ prevUrl: string | null;
5718
+ nextUrl: string | null;
5719
+ statuses: {
5720
+ value: string;
5721
+ label: string;
5722
+ selected: boolean;
5723
+ }[];
5724
+ nameQuery: string;
5725
+ } | null;
5726
+ }
5727
+ /**
5728
+ * Render the background-tasks page.
5729
+ *
5730
+ * Either half may be missing: a service given only a `TaskManager` shows what
5731
+ * is declared, one given only a job store shows what ran. A section with no
5732
+ * source is omitted rather than rendered empty, because an empty table implies
5733
+ * there is nothing to see — and what the panel deliberately cannot show is live
5734
+ * queue depth, which no broker exposes.
5735
+ *
5736
+ * @param context - The shared chrome data.
5737
+ * @param view - The prepared tasks view model.
5738
+ * @returns The full page.
5739
+ */
5740
+ declare function renderTasksPage(context: AdminRenderContext, view: AdminTasksView): string;
5741
+ /** One job run, as the detail page renders it. */
5742
+ interface AdminTaskDetailView {
5743
+ /** The job id. */
5744
+ id: string;
5745
+ /** The task name. */
5746
+ name: string;
5747
+ /** Lifecycle state. */
5748
+ status: string;
5749
+ /** Field rows: timestamps, attempts and the like. */
5750
+ fields: {
5751
+ label: string;
5752
+ value: string;
5753
+ }[];
5754
+ /** The payload, pretty-printed, or `null`. */
5755
+ payload: string | null;
5756
+ /** The result, pretty-printed, or `null`. */
5757
+ result: string | null;
5758
+ /** The failure message, or `null`. */
5759
+ error: string | null;
5760
+ /** URL back to the tasks page. */
5761
+ backUrl: string;
5762
+ /** URL the cancel form posts to, or `null` when the run cannot be cancelled. */
5763
+ cancelUrl: string | null;
5764
+ }
5765
+ /**
5766
+ * Render one job run.
5767
+ *
5768
+ * @param context - The shared chrome data (with an active session).
5769
+ * @param view - The prepared run view model.
5770
+ * @returns The full page.
5771
+ * @throws Error When called without a session, since cancel needs a CSRF token.
5772
+ */
5773
+ declare function renderTaskDetailPage(context: AdminRenderContext, view: AdminTaskDetailView): string;
5523
5774
  /** The view model the SQL console renders. */
5524
5775
  interface AdminSqlView {
5525
5776
  /** The submitted statement, echoed back into the textarea. */
@@ -5654,6 +5905,19 @@ interface AdminRouterOptions {
5654
5905
  * and the boundary that holds is the database user behind `run`.
5655
5906
  */
5656
5907
  sqlConsole?: AdminSqlConsoleOptions;
5908
+ /**
5909
+ * Expose the background-tasks page. Either half may be omitted: with only a
5910
+ * `manager` the page shows what this process declares, with only a `jobs`
5911
+ * store it shows what the workers recorded.
5912
+ */
5913
+ tasks?: AdminTasksOptions;
5914
+ }
5915
+ /** Configuration for the optional tasks page. */
5916
+ interface AdminTasksOptions {
5917
+ /** The task manager whose registry supplies the declared schedule. */
5918
+ manager?: TaskManager;
5919
+ /** Builds a job store on the request's session, supplying the run history. */
5920
+ jobs?: (session: AsyncSession) => JobStore;
5657
5921
  }
5658
5922
  /** Configuration for the optional SQL console. */
5659
5923
  interface AdminSqlConsoleOptions {
@@ -7490,6 +7754,6 @@ declare function createTestDatabase(models: readonly ModelClass[]): TestDatabase
7490
7754
  declare function withTestDatabase<T>(models: readonly ModelClass[], fn: (db: TestDatabase) => Promise<T>): Promise<T>;
7491
7755
 
7492
7756
  /** The installed SDK version. Single source of truth for the barrel + CLI. */
7493
- declare const VERSION = "0.29.0";
7757
+ declare const VERSION = "0.30.0";
7494
7758
 
7495
- 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 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, 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, 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, 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, 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, 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 };
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 };