server/app_server_context.ts view source
AppServerContext import type {AppServerContext} from '@fuzdev/fuz_app/server/app_server_context.js'; Context passed to create_route_specs.
deps
type AppDeps
backend
type AppBackend
bootstrap_status
type BootstrapStatus
session_options
type SessionOptions<string>
login_ip_rate_limiter
Per-IP login + password-change rate limiter. One instance per auth
surface — see AppServerOptions.login_ip_rate_limiter for why these
aren't shared.
Each limiter here is what create_app_server resolved: the instance
its option passed, else a default instance under
rate_limiters: 'enforced' (the default). null when disabled — the
option was an explicit null, or the mode is 'disabled_for_testing'.
type RateLimiter | null
signup_ip_rate_limiter
Per-IP signup rate limiter. null when disabled.
type RateLimiter | null
bootstrap_ip_rate_limiter
Per-IP bootstrap rate limiter. null when disabled.
type RateLimiter | null
login_account_rate_limiter
Per-account login rate limiter. null when disabled.
type RateLimiter | null
signup_account_rate_limiter
Per-account signup rate limiter. null when disabled.
type RateLimiter | null
action_ip_rate_limiter
Per-IP action-dispatcher rate limiter — shared across HTTP RPC + WS. null when disabled.
type RateLimiter | null
action_account_rate_limiter
Per-account action-dispatcher rate limiter, keyed on the authenticated
account's id — shared across HTTP RPC + WS. null when disabled.
type RateLimiter | null
audit_sse
Factory-managed audit log SSE. Non-null when the audit_log_sse
option was passed to create_app_server, null when omitted.
Use require_audit_sse(ctx) to assert the invariant.
type AuditLogSse | null