/** * Zod Schemas for Wonder Logger Configuration * * Defines validation schemas for YAML config files. */ import { z } from 'zod'; /** * Service metadata schema */ export declare const serviceSchema: z.ZodObject<{ name: z.ZodString; version: z.ZodDefault; environment: z.ZodDefault; }, z.core.$strip>; /** * Logger transport schemas */ /** * Console transport variant-specific options */ export declare const prettyOptionsSchema: z.ZodObject<{ colorize: z.ZodOptional; translateTime: z.ZodOptional; ignore: z.ZodOptional; singleLine: z.ZodOptional; hideObject: z.ZodOptional; }, z.core.$strip>; export declare const minimalOptionsSchema: z.ZodObject<{ colorize: z.ZodOptional; }, z.core.$strip>; export declare const alignedOptionsSchema: z.ZodObject<{ colorize: z.ZodOptional; showTimestamp: z.ZodOptional; timestampFormat: z.ZodOptional>; dataFormat: z.ZodOptional>; excludeFields: z.ZodOptional>; includeFields: z.ZodOptional>; }, z.core.$strip>; /** * Console transport schema with variant support * * Variants: * - 'json': Raw JSON to stdout (default) * - 'pretty': pino-pretty multi-line output * - 'minimal': Message only, no structured data * - 'aligned': Padded level labels with single-line data * * DEPRECATED: `pretty: boolean` still works for backward compatibility */ export declare const consoleTransportSchema: z.ZodObject<{ type: z.ZodLiteral<"console">; level: z.ZodOptional>; variant: z.ZodOptional>; prettyOptions: z.ZodOptional; translateTime: z.ZodOptional; ignore: z.ZodOptional; singleLine: z.ZodOptional; hideObject: z.ZodOptional; }, z.core.$strip>>; minimalOptions: z.ZodOptional; }, z.core.$strip>>; alignedOptions: z.ZodOptional; showTimestamp: z.ZodOptional; timestampFormat: z.ZodOptional>; dataFormat: z.ZodOptional>; excludeFields: z.ZodOptional>; includeFields: z.ZodOptional>; }, z.core.$strip>>; pretty: z.ZodOptional; }, z.core.$strip>; export declare const fileTransportSchema: z.ZodObject<{ type: z.ZodLiteral<"file">; dir: z.ZodDefault; fileName: z.ZodDefault; level: z.ZodOptional>; sync: z.ZodDefault; mkdir: z.ZodDefault; }, z.core.$strip>; export declare const otelTransportSchema: z.ZodObject<{ type: z.ZodLiteral<"otel">; endpoint: z.ZodDefault; level: z.ZodOptional>; exportIntervalMillis: z.ZodDefault; }, z.core.$strip>; export declare const memoryTransportSchema: z.ZodObject<{ type: z.ZodLiteral<"memory">; name: z.ZodOptional; maxSize: z.ZodDefault; level: z.ZodOptional>; }, z.core.$strip>; export declare const transportSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"console">; level: z.ZodOptional>; variant: z.ZodOptional>; prettyOptions: z.ZodOptional; translateTime: z.ZodOptional; ignore: z.ZodOptional; singleLine: z.ZodOptional; hideObject: z.ZodOptional; }, z.core.$strip>>; minimalOptions: z.ZodOptional; }, z.core.$strip>>; alignedOptions: z.ZodOptional; showTimestamp: z.ZodOptional; timestampFormat: z.ZodOptional>; dataFormat: z.ZodOptional>; excludeFields: z.ZodOptional>; includeFields: z.ZodOptional>; }, z.core.$strip>>; pretty: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; dir: z.ZodDefault; fileName: z.ZodDefault; level: z.ZodOptional>; sync: z.ZodDefault; mkdir: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"otel">; endpoint: z.ZodDefault; level: z.ZodOptional>; exportIntervalMillis: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"memory">; name: z.ZodOptional; maxSize: z.ZodDefault; level: z.ZodOptional>; }, z.core.$strip>], "type">; /** * Logger plugins schema */ export declare const loggerPluginsSchema: z.ZodObject<{ traceContext: z.ZodDefault; morganStream: z.ZodDefault; }, z.core.$strip>; /** * Hash censor for a redaction rule: the value is replaced by the first `length` hex chars of * its digest, so lines about the same subject stay joinable without printing the subject. */ export declare const redactHashSchema: z.ZodObject<{ algorithm: z.ZodDefault>; length: z.ZodDefault; }, z.core.$strip>; /** * One `logger.redact` entry. * * - A string: a key (`password`) is redacted at any depth and in any case; a pino path * (`req.headers.authorization`, `*.token`) is redacted exactly where it points. The value * becomes `[Redacted]`. See `logger/redact.ts`. * - An object: `paths` follow the same rules, and the value becomes `censor`, or its hash when * `hash` is set. */ export declare const redactEntrySchema: z.ZodUnion; censor: z.ZodOptional; hash: z.ZodOptional>; length: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>]>; /** * Main logger configuration schema */ export declare const loggerConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; level: z.ZodDefault>; redact: z.ZodDefault; censor: z.ZodOptional; hash: z.ZodOptional>; length: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>]>>>; transports: z.ZodDefault; level: z.ZodOptional>; variant: z.ZodOptional>; prettyOptions: z.ZodOptional; translateTime: z.ZodOptional; ignore: z.ZodOptional; singleLine: z.ZodOptional; hideObject: z.ZodOptional; }, z.core.$strip>>; minimalOptions: z.ZodOptional; }, z.core.$strip>>; alignedOptions: z.ZodOptional; showTimestamp: z.ZodOptional; timestampFormat: z.ZodOptional>; dataFormat: z.ZodOptional>; excludeFields: z.ZodOptional>; includeFields: z.ZodOptional>; }, z.core.$strip>>; pretty: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; dir: z.ZodDefault; fileName: z.ZodDefault; level: z.ZodOptional>; sync: z.ZodDefault; mkdir: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"otel">; endpoint: z.ZodDefault; level: z.ZodOptional>; exportIntervalMillis: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"memory">; name: z.ZodOptional; maxSize: z.ZodDefault; level: z.ZodOptional>; }, z.core.$strip>], "type">>>; plugins: z.ZodDefault; morganStream: z.ZodDefault; }, z.core.$strip>>>; }, z.core.$strip>; /** * OpenTelemetry tracing schema */ export declare const tracingConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; exporter: z.ZodDefault>; sampleRate: z.ZodDefault; ignorePaths: z.ZodDefault>; }, z.core.$strip>; /** * OpenTelemetry metrics exporters schema */ export declare const prometheusExporterSchema: z.ZodObject<{ type: z.ZodLiteral<"prometheus">; port: z.ZodDefault; }, z.core.$strip>; export declare const otlpMetricsExporterSchema: z.ZodObject<{ type: z.ZodLiteral<"otlp">; endpoint: z.ZodOptional; exportIntervalMillis: z.ZodDefault; }, z.core.$strip>; export declare const metricsExporterSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"prometheus">; port: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"otlp">; endpoint: z.ZodOptional; exportIntervalMillis: z.ZodDefault; }, z.core.$strip>], "type">; /** * OpenTelemetry metrics schema */ export declare const metricsConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; exporters: z.ZodDefault; port: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"otlp">; endpoint: z.ZodOptional; exportIntervalMillis: z.ZodDefault; }, z.core.$strip>], "type">>>; exportIntervalMillis: z.ZodDefault; }, z.core.$strip>; /** * OpenTelemetry instrumentation schema */ export declare const instrumentationConfigSchema: z.ZodObject<{ auto: z.ZodDefault; http: z.ZodDefault; }, z.core.$strip>; /** * Main OpenTelemetry configuration schema */ export declare const otelConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; tracing: z.ZodDefault; exporter: z.ZodDefault>; sampleRate: z.ZodDefault; ignorePaths: z.ZodDefault>; }, z.core.$strip>>>; metrics: z.ZodDefault; exporters: z.ZodDefault; port: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"otlp">; endpoint: z.ZodOptional; exportIntervalMillis: z.ZodDefault; }, z.core.$strip>], "type">>>; exportIntervalMillis: z.ZodDefault; }, z.core.$strip>>>; instrumentation: z.ZodDefault; http: z.ZodDefault; }, z.core.$strip>>>; }, z.core.$strip>; /** * Root configuration schema */ export declare const configSchema: z.ZodObject<{ service: z.ZodObject<{ name: z.ZodString; version: z.ZodDefault; environment: z.ZodDefault; }, z.core.$strip>; logger: z.ZodDefault; level: z.ZodDefault>; redact: z.ZodDefault; censor: z.ZodOptional; hash: z.ZodOptional>; length: z.ZodDefault; }, z.core.$strip>>; }, z.core.$strip>]>>>; transports: z.ZodDefault; level: z.ZodOptional>; variant: z.ZodOptional>; prettyOptions: z.ZodOptional; translateTime: z.ZodOptional; ignore: z.ZodOptional; singleLine: z.ZodOptional; hideObject: z.ZodOptional; }, z.core.$strip>>; minimalOptions: z.ZodOptional; }, z.core.$strip>>; alignedOptions: z.ZodOptional; showTimestamp: z.ZodOptional; timestampFormat: z.ZodOptional>; dataFormat: z.ZodOptional>; excludeFields: z.ZodOptional>; includeFields: z.ZodOptional>; }, z.core.$strip>>; pretty: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file">; dir: z.ZodDefault; fileName: z.ZodDefault; level: z.ZodOptional>; sync: z.ZodDefault; mkdir: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"otel">; endpoint: z.ZodDefault; level: z.ZodOptional>; exportIntervalMillis: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"memory">; name: z.ZodOptional; maxSize: z.ZodDefault; level: z.ZodOptional>; }, z.core.$strip>], "type">>>; plugins: z.ZodDefault; morganStream: z.ZodDefault; }, z.core.$strip>>>; }, z.core.$strip>>>; otel: z.ZodDefault; tracing: z.ZodDefault; exporter: z.ZodDefault>; sampleRate: z.ZodDefault; ignorePaths: z.ZodDefault>; }, z.core.$strip>>>; metrics: z.ZodDefault; exporters: z.ZodDefault; port: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"otlp">; endpoint: z.ZodOptional; exportIntervalMillis: z.ZodDefault; }, z.core.$strip>], "type">>>; exportIntervalMillis: z.ZodDefault; }, z.core.$strip>>>; instrumentation: z.ZodDefault; http: z.ZodDefault; }, z.core.$strip>>>; }, z.core.$strip>>>; _configDir: z.ZodOptional; }, z.core.$strip>; /** * Type exports inferred from schemas */ export type ServiceConfig = z.infer; export type PrettyOptions = z.infer; export type MinimalOptions = z.infer; export type AlignedOptions = z.infer; export type ConsoleTransportConfig = z.infer; export type FileTransportConfig = z.infer; export type OtelTransportConfig = z.infer; export type MemoryTransportConfig = z.infer; export type TransportConfig = z.infer; export type RedactHashConfig = z.infer; export type RedactEntryConfig = z.infer; export type LoggerPluginsConfig = z.infer; export type LoggerConfig = z.infer; export type TracingConfig = z.infer; export type PrometheusExporterConfig = z.infer; export type OtlpMetricsExporterConfig = z.infer; export type MetricsExporterConfig = z.infer; export type MetricsConfig = z.infer; export type InstrumentationConfig = z.infer; export type OtelConfig = z.infer; export type WonderLoggerConfig = z.infer; //# sourceMappingURL=schema.d.ts.map