/**
 * API Server Types
 *
 * Type definitions for the REST/WebSocket API server.
 */
export const DEFAULT_SERVER_CONFIG = {
    port: 3000,
    host: '0.0.0.0',
    cors: true,
    corsOrigins: '*',
    rateLimit: true,
    rateLimitWindow: 60000, // 1 minute
    rateLimitMax: 60, // 60 requests per minute
    authEnabled: true,
    jwtSecret: process.env.JWT_SECRET || 'change-me-in-production',
    jwtExpiration: '24h',
    websocketEnabled: true,
    maxConnections: 100,
    bodyLimit: '10mb',
    logging: true,
    docsEnabled: true,
};
export const API_ERRORS = {
    UNAUTHORIZED: { code: 'UNAUTHORIZED', message: 'Authentication required', status: 401 },
    FORBIDDEN: { code: 'FORBIDDEN', message: 'Insufficient permissions', status: 403 },
    NOT_FOUND: { code: 'NOT_FOUND', message: 'Resource not found', status: 404 },
    RATE_LIMITED: { code: 'RATE_LIMITED', message: 'Too many requests', status: 429 },
    VALIDATION_ERROR: { code: 'VALIDATION_ERROR', message: 'Invalid request', status: 400 },
    INTERNAL_ERROR: { code: 'INTERNAL_ERROR', message: 'Internal server error', status: 500 },
    SERVICE_UNAVAILABLE: { code: 'SERVICE_UNAVAILABLE', message: 'Service temporarily unavailable', status: 503 },
};
//# sourceMappingURL=types.js.map