Creates the envelope-aware fetch wrapper: base origin, bearer attach, x-correlation-id, {data}/{error} envelope unwrap → KibanApiError, single 401-refresh-and-retry.
{data}
{error}
Creates the envelope-aware fetch wrapper: base origin, bearer attach, x-correlation-id,
{data}/{error}envelope unwrap → KibanApiError, single 401-refresh-and-retry.