global params schema type
stage params schema type
event token → runtime type map
a key of EventTypeMap
optional Zod schema for event (validated before handler)
optional Zod schema for response (validated after handler)
per‑function configuration (branded with env nodes)
Optional
events?: (Optional extra serverless events (e.g., SQS triggers).
Optional
eventSchema?: EventSchemaOptional Zod schemas applied uniformly across all handlers.
Compile-time token selecting the runtime event type (e.g., 'rest' | 'http' | 'sqs').
Optional
fnEnvKeys?: readonly (keyof output<GlobalParamsSchema> | keyof output<StageParamsSchema>)[]Optional; defaults to [] wherever consumed.
Unique function name; used across serverless/OpenAPI outputs.
Optional
logger?: ConsoleLoggerOptional logger; wrapper will default to console
.
Optional
responseSchema?: ResponseSchemathe business handler implementation
Optional
opts: { httpConfig?: AppHttpConfig; httpEventTypeTokens?: readonly string[] }optional runtime overrides (e.g., widen HTTP tokens)
a Lambda‑compatible handler function
Wrap a business handler with SMOZ runtime. *