import type { RetryConfig } from '../retry.js'; /** * Configuration for RestApiAdapter. */ export type RestApiAdapterConfig = { /** Optional logger for debug output */ logger?: Console; /** * Cache time-to-live in milliseconds. Default: 300000 (5 min). * * If not specified, the adapter checks the `CUNEIFORM_CACHE_TTL` * environment variable before falling back to the default. */ cacheTtl?: number; /** Whether caching is enabled. Default: true */ cacheEnabled?: boolean; /** * Whether to emit @salesforce/core Lifecycle events for telemetry. * When enabled, emits events like 'adapter:describe:start', 'adapter:describe:complete'. * Default: false */ emitLifecycleEvents?: boolean; /** * Retry configuration for transient failures. * If not specified, retries are disabled. */ retry?: RetryConfig; /** * Maximum number of concurrent SOQL COUNT queries per batch in the fallback path. * Used when the `/limits/recordCount` REST endpoint is unavailable. * Default: 10. Valid range: 1-50. */ recordCountBatchSize?: number; };