@bugbug-io/sdk
    Preparing search index...

    Class ConfigModule

    Config module — BugBug-side configuration and connectivity probes.

    Used by integrators to check API reachability, get IP ranges for firewall allowlists, and surface a one-shot system summary.

    Index

    Constructors

    • Parameters

      • client: BugBugApiClient

      Returns ConfigModule

    Methods

    • Fetch the BugBug infrastructure IP ranges that should be allowlisted for outbound runner traffic.

      Parameters

      Returns Promise<{ ips: string[] }>

    • Liveness probe + token check.

      GET /config/status/ is unauthenticated. If the SDK's apiToken is sent, the server validates it and reports the result via authenticated; an invalid token still returns 200, so this method only throws on transport-level failures.

      Parameters

      Returns Promise<ApiStatus>

    • Probe API connectivity and authentication by making one lightweight call.

      Never throws — transport failures are returned as connected: false with the error message. When the call succeeds, authenticated reflects whether the configured API token is currently valid.

      Parameters

      Returns Promise<ConnectivityStatus>

      A ConnectivityStatus snapshot with response time and message.

    • Single-shot system summary: IP ranges + connectivity probe.

      Internally issues one IP-fetch and reuses it as the connectivity probe to avoid duplicate requests.

      Parameters

      Returns Promise<SdkSystemInfo>

      A SdkSystemInfo snapshot with { ipAddresses, connectivity, timestamp }.