Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/HubSpot/hubspot-api-nodejs/compare/14.1.2...HEAD)
## [Unreleased](https://github.com/HubSpot/hubspot-api-nodejs/compare/14.1.3...HEAD)

## [14.1.3] - 2026-11-02

## Fixed

- Fixed `oauth.v3.advancedApi.revokeToken` failing to handle an empty `200` response.

## [14.1.2] - 2026-10-28

Expand Down
11 changes: 9 additions & 2 deletions codegen/oauth/v3/apis/AdvancedApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,11 @@ export class AdvancedApiResponseProcessor {
* @params response Response returned by the server for a request to revokeToken
* @throws ApiException if the response code was not in [200, 299]
*/
public async revokeTokenWithHttpInfo(response: ResponseContext): Promise<HttpInfo< void>> {
public async revokeTokenWithHttpInfo(response: ResponseContext): Promise<HttpInfo<void >> {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
return new HttpInfo(response.httpStatusCode, response.headers, response.body, undefined);
}
if (isCodeInRange("0", response.httpStatusCode)) {
const body: Error = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
Expand All @@ -362,7 +365,11 @@ export class AdvancedApiResponseProcessor {

// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
return new HttpInfo(response.httpStatusCode, response.headers, response.body, undefined);
const body: void = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"void", ""
) as void;
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
}

throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hubspot/api-client",
"version": "14.1.2",
"version": "14.1.3",
"description": "NodeJS v3 [HubSpot API](https://developers.hubspot.com/docs/api/overview) SDK(Client) files",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
Loading