/** * 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 */ export declare const consoleTransportSchema: z.ZodObject<{ type: z.ZodLiteral<"console">; pretty: z.ZodDefault; level: z.ZodOptional>; prettyOptions: z.ZodOptional; translateTime: z.ZodOptional; ignore: z.ZodOptional; singleLine: z.ZodOptional; }, z.core.$strip>>; }, 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">; pretty: z.ZodDefault; level: z.ZodOptional>; prettyOptions: z.ZodOptional; translateTime: z.ZodOptional; ignore: z.ZodOptional; singleLine: z.ZodOptional; }, z.core.$strip>>; }, 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>; /** * Main logger configuration schema */ export declare const loggerConfigSchema: z.ZodObject<{ enabled: z.ZodDefault; level: z.ZodDefault>; redact: z.ZodDefault>; transports: z.ZodDefault; pretty: z.ZodDefault; level: z.ZodOptional>; prettyOptions: z.ZodOptional; translateTime: z.ZodOptional; ignore: z.ZodOptional; singleLine: z.ZodOptional; }, z.core.$strip>>; }, 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>; endpoint: z.ZodOptional; sampleRate: 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.ZodDefault; 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.ZodDefault; 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.ZodDefault; 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>; endpoint: z.ZodOptional; sampleRate: 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.ZodDefault; 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>; transports: z.ZodDefault; pretty: z.ZodDefault; level: z.ZodOptional>; prettyOptions: z.ZodOptional; translateTime: z.ZodOptional; ignore: z.ZodOptional; singleLine: z.ZodOptional; }, z.core.$strip>>; }, 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>; endpoint: z.ZodOptional; sampleRate: 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.ZodDefault; 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 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 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