0.50.0

(feat): All endpoint functions now return an HttpResponsePromise<T> instead of a Promise<T>. Using await, .then(), .catch(), and .finally() on these promises behave the same as before, but you can call .withRawResponse() to get a promise that includes the parsed response and the raw response. The raw response let’s you retrieve the response headers, status code, etc.

1const fooBar = await client.foo.bar("id", options);
2const { data: alsoFooBar, rawResponse } = await client.foo.bar("id", options).withRawResponse();
3const {
4 headers,
5 status,
6 url,
7 ...
8} = rawResponse;