credix
Version:
Official SDK for Credix Credit Management System
45 lines • 1.32 kB
TypeScript
/**
* SDK Configuration
*/
export interface SDKConfig {
/** API Key for authentication */
apiKey: string;
/** Secret Key for authentication */
secretKey: string;
/**
* Optional base URL override for development only.
* - Must point to localhost/127.0.0.1
* - Requires `debug: true`
* - Not allowed when `NODE_ENV === 'production'`
*/
baseUrl?: string;
/** Request timeout in milliseconds (optional, defaults to 30000) */
timeout?: number;
/** Maximum number of retries (optional, defaults to 3) */
maxRetries?: number;
/** Enable debug mode (optional, defaults to false) */
debug?: boolean;
/** Custom headers to include in all requests (optional) */
headers?: Record<string, string>;
}
/**
* Internal configuration with defaults
*/
export interface InternalConfig extends Required<Omit<SDKConfig, 'headers'>> {
/** Fixed base URL for production API */
baseUrl: string;
headers?: Record<string, string>;
}
/**
* Default configuration values
*/
export declare const DEFAULT_CONFIG: {
readonly baseUrl: "https://om-sdk-gateway-70t3kruk.an.gateway.dev";
readonly timeout: 30000;
readonly maxRetries: 3;
readonly debug: false;
};
/**
* API endpoints configuration
*/
//# sourceMappingURL=config.d.ts.map