/** * @fileoverview ThingsBoard Connection Types * @description Connection-specific type definitions * @author XCON Studio */ import type { ConnectionConfig } from '@xcons/datasource'; /** * ThingsBoard specific connection configuration */ export interface ThingsBoardConnectionConfig extends ConnectionConfig { /** ThingsBoard server base URL */ baseUrl: string; /** Username for authentication */ username?: string; /** Password for authentication */ password?: string; /** JWT token for authentication */ token?: string; /** API key for authentication */ apiKey?: string; /** Request timeout in milliseconds (default: 10000) */ timeout?: number; /** Number of retry attempts for failed requests (default: 3) */ retryAttempts?: number; /** Delay between retry attempts in milliseconds (default: 1000) */ retryDelay?: number; /** Enable debug logging (default: false) */ debug?: boolean; } /** * ThingsBoard authentication response */ export interface ThingsBoardAuthResponse { /** JWT access token */ token: string; /** JWT refresh token */ refreshToken: string; /** Token expiration time */ expiresIn?: number; } /** * Error types for ThingsBoard operations */ export declare class ThingsBoardError extends Error { statusCode?: number | undefined; response?: any | undefined; constructor(message: string, statusCode?: number | undefined, response?: any | undefined); } //# sourceMappingURL=types.d.ts.map