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)
Optionalevents?: (Optional extra serverless events (e.g., SQS triggers).
OptionaleventSchema?: EventSchemaOptional Zod schemas applied uniformly across all handlers.
Compile-time token selecting the runtime event type (e.g., 'rest' | 'http' | 'sqs').
OptionalfnEnvKeys?: readonly (keyof output<GlobalParamsSchema> | keyof output<StageParamsSchema>)[]Optional; defaults to [] wherever consumed.
Unique function name; used across serverless/OpenAPI outputs.
Optionallogger?: ConsoleLoggerOptional logger; wrapper will default to console.
OptionalresponseSchema?: ResponseSchemathe business handler implementation
Optionalopts: { 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. *