diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b64d3dcb..6b6edec6 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.43.0" + ".": "5.44.0" } diff --git a/.stats.yml b/.stats.yml index e572dc25..a6cf36af 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 126 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-9f1a41612765cb08d100b2c9e85080e93306e8d0942d535f16052c3eb18d9b8b.yml -openapi_spec_hash: 6dd28f36adc7e7d6a9245585eaf9b9c1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-931771ff4ab183044ee50ce43ea794ac0a15bfafbaf7df61ac0344af3ff08944.yml +openapi_spec_hash: 71371804e373f662585284bf5d93cc62 config_hash: bcf82bddb691f6be773ac6cae8c03b9a diff --git a/CHANGELOG.md b/CHANGELOG.md index 59f291a2..600830bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 5.44.0 (2026-02-03) + +Full Changelog: [v5.43.0...v5.44.0](https://github.com/orbcorp/orb-node/compare/v5.43.0...v5.44.0) + +### Features + +* **api:** api update ([e416790](https://github.com/orbcorp/orb-node/commit/e416790073c3b73cdcb84d963a90f3c954f61a25)) + + +### Chores + +* **client:** do not parse responses with empty content-length ([c494aed](https://github.com/orbcorp/orb-node/commit/c494aed5c72aedd6e0f5d1e0a2e73dbc3cf78713)) + ## 5.43.0 (2026-01-23) Full Changelog: [v5.42.0...v5.43.0](https://github.com/orbcorp/orb-node/compare/v5.42.0...v5.43.0) diff --git a/package.json b/package.json index c185d14d..ea6a6c42 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orb-billing", - "version": "5.43.0", + "version": "5.44.0", "description": "The official TypeScript library for the Orb API", "author": "Orb ", "types": "dist/index.d.ts", diff --git a/src/core.ts b/src/core.ts index ad818e3a..961aff1f 100644 --- a/src/core.ts +++ b/src/core.ts @@ -70,6 +70,12 @@ async function defaultParseResponse(props: APIResponseProps): Promise { const mediaType = contentType?.split(';')[0]?.trim(); const isJSON = mediaType?.includes('application/json') || mediaType?.endsWith('+json'); if (isJSON) { + const contentLength = response.headers.get('content-length'); + if (contentLength === '0') { + // if there is no content we can't do anything + return undefined as T; + } + const json = await response.json(); debug('response', response.status, response.url, response.headers, json); diff --git a/src/resources/alerts.ts b/src/resources/alerts.ts index dde07be2..7e3ab7c9 100644 --- a/src/resources/alerts.ts +++ b/src/resources/alerts.ts @@ -224,13 +224,19 @@ export interface Alert { | 'credit_balance_dropped' | 'credit_balance_recovered' | 'usage_exceeded' - | 'cost_exceeded'; + | 'cost_exceeded' + | 'license_balance_threshold_reached'; /** * The current status of the alert. This field is only present for credit balance * alerts. */ balance_alert_status?: Array | null; + + /** + * Minified license type for alert serialization. + */ + license_type?: Alert.LicenseType | null; } export namespace Alert { @@ -273,6 +279,13 @@ export namespace Alert { */ threshold_value: number; } + + /** + * Minified license type for alert serialization. + */ + export interface LicenseType { + id: string; + } } /** diff --git a/src/version.ts b/src/version.ts index f7ca7683..407974e3 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '5.43.0'; // x-release-please-version +export const VERSION = '5.44.0'; // x-release-please-version