Skip to content

Commit 8894eb9

Browse files
authored
Merge pull request #603 from orbcorp/release-please--branches--main--changes--next--components--orb-billing
release: 5.0.0
2 parents e4cb5eb + 194ee4b commit 8894eb9

35 files changed

+14858
-75950
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "4.74.0"
2+
".": "5.0.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 115
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d513be954ba2cb57489bd048f93790cabb13849f0f04d328a5a15694c99550df.yml
3-
openapi_spec_hash: 0d42694f412abf65defc3f88646a809c
4-
config_hash: 1e2186b09e57d7d27b6ab5c8e6410b31
1+
configured_endpoints: 116
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c2a4808c828c8288c5c8dfe2fdfa51d4d7c1bcc33cacc6b859d0cf4b35ce95cc.yml
3+
openapi_spec_hash: a2b5a1bfabbd03dd1b411791576eb502
4+
config_hash: 3c3524be9607afb24d2139ce26ce5389

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Changelog
22

3+
## 5.0.0 (2025-06-09)
4+
5+
Full Changelog: [v4.74.0...v5.0.0](https://github.com/orbcorp/orb-node/compare/v4.74.0...v5.0.0)
6+
7+
### ⚠ BREAKING CHANGES
8+
9+
* **client:** breaking change to re-use types
10+
11+
### Features
12+
13+
* **api:** api update ([f568653](https://github.com/orbcorp/orb-node/commit/f5686531660890c996aed2bcd3fbfdbf6ba71013))
14+
* **api:** api update ([4c28249](https://github.com/orbcorp/orb-node/commit/4c28249f71e8a9aa3d75ac9a448ebb6f70301af2))
15+
* **api:** api update ([9dc5bb3](https://github.com/orbcorp/orb-node/commit/9dc5bb3e4d0e2005691b3a886591a317bd84a60a))
16+
* **api:** api update ([9328fae](https://github.com/orbcorp/orb-node/commit/9328faed43114dfe9f4fead3e6da314f6e626d33))
17+
* **api:** api update ([44e9c35](https://github.com/orbcorp/orb-node/commit/44e9c35fb3b805cccb264647d7686fa00dd2a71b))
18+
* **api:** manual updates ([8cc1c0b](https://github.com/orbcorp/orb-node/commit/8cc1c0bfb17d0ec2537e9470340a7926df177a28))
19+
* **client:** breaking change to re-use types ([17a06ae](https://github.com/orbcorp/orb-node/commit/17a06aea5f1edb125fb033156a8eb76c6510cd76))
20+
21+
22+
### Chores
23+
24+
* **internal:** codegen related update ([89ce8ec](https://github.com/orbcorp/orb-node/commit/89ce8ecf96b39394f17eb8b7735cc710d0e50cc4))
25+
326
## 4.74.0 (2025-06-03)
427

528
Full Changelog: [v4.73.0...v4.74.0](https://github.com/orbcorp/orb-node/compare/v4.73.0...v4.74.0)

api.md

Lines changed: 195 additions & 29 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "orb-billing",
3-
"version": "4.74.0",
3+
"version": "5.0.0",
44
"description": "The official TypeScript library for the Orb API",
55
"author": "Orb <team@withorb.com>",
66
"types": "dist/index.d.ts",

src/index.ts

Lines changed: 219 additions & 42 deletions
Large diffs are not rendered by default.

src/resources/alerts.ts

Lines changed: 20 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { APIResource } from '../resource';
44
import { isRequestOptions } from '../core';
55
import * as Core from '../core';
6+
import * as Shared from './shared';
67
import { Page, type PageParams } from '../pagination';
78

89
export class Alerts extends APIResource {
@@ -187,7 +188,7 @@ export interface Alert {
187188
/**
188189
* The customer the alert applies to.
189190
*/
190-
customer: Alert.Customer | null;
191+
customer: Shared.CustomerMinified | null;
191192

192193
/**
193194
* Whether the alert is enabled or disabled.
@@ -207,13 +208,13 @@ export interface Alert {
207208
/**
208209
* The subscription the alert applies to.
209210
*/
210-
subscription: Alert.Subscription | null;
211+
subscription: Shared.SubscriptionMinified | null;
211212

212213
/**
213214
* The thresholds that define the conditions under which the alert will be
214215
* triggered.
215216
*/
216-
thresholds: Array<Alert.Threshold> | null;
217+
thresholds: Array<Threshold> | null;
217218

218219
/**
219220
* The type of alert. This must be a valid alert type.
@@ -233,15 +234,6 @@ export interface Alert {
233234
}
234235

235236
export namespace Alert {
236-
/**
237-
* The customer the alert applies to.
238-
*/
239-
export interface Customer {
240-
id: string;
241-
242-
external_customer_id: string | null;
243-
}
244-
245237
/**
246238
* The metric the alert applies to.
247239
*/
@@ -267,26 +259,6 @@ export namespace Alert {
267259
plan_version: string;
268260
}
269261

270-
/**
271-
* The subscription the alert applies to.
272-
*/
273-
export interface Subscription {
274-
id: string;
275-
}
276-
277-
/**
278-
* Thresholds are used to define the conditions under which an alert will be
279-
* triggered.
280-
*/
281-
export interface Threshold {
282-
/**
283-
* The value at which an alert will fire. For credit balance alerts, the alert will
284-
* fire at or below this value. For usage and cost alerts, the alert will fire at
285-
* or above this value.
286-
*/
287-
value: number;
288-
}
289-
290262
/**
291263
* Alert status is used to determine if an alert is currently in-alert or not.
292264
*/
@@ -303,26 +275,24 @@ export namespace Alert {
303275
}
304276
}
305277

306-
export interface AlertUpdateParams {
278+
/**
279+
* Thresholds are used to define the conditions under which an alert will be
280+
* triggered.
281+
*/
282+
export interface Threshold {
307283
/**
308-
* The thresholds that define the values at which the alert will be triggered.
284+
* The value at which an alert will fire. For credit balance alerts, the alert will
285+
* fire at or below this value. For usage and cost alerts, the alert will fire at
286+
* or above this value.
309287
*/
310-
thresholds: Array<AlertUpdateParams.Threshold>;
288+
value: number;
311289
}
312290

313-
export namespace AlertUpdateParams {
291+
export interface AlertUpdateParams {
314292
/**
315-
* Thresholds are used to define the conditions under which an alert will be
316-
* triggered.
293+
* The thresholds that define the values at which the alert will be triggered.
317294
*/
318-
export interface Threshold {
319-
/**
320-
* The value at which an alert will fire. For credit balance alerts, the alert will
321-
* fire at or below this value. For usage and cost alerts, the alert will fire at
322-
* or above this value.
323-
*/
324-
value: number;
325-
}
295+
thresholds: Array<Threshold>;
326296
}
327297

328298
export interface AlertListParams extends PageParams {
@@ -364,22 +334,7 @@ export interface AlertCreateForCustomerParams {
364334
/**
365335
* The thresholds that define the values at which the alert will be triggered.
366336
*/
367-
thresholds?: Array<AlertCreateForCustomerParams.Threshold> | null;
368-
}
369-
370-
export namespace AlertCreateForCustomerParams {
371-
/**
372-
* Thresholds are used to define the conditions under which an alert will be
373-
* triggered.
374-
*/
375-
export interface Threshold {
376-
/**
377-
* The value at which an alert will fire. For credit balance alerts, the alert will
378-
* fire at or below this value. For usage and cost alerts, the alert will fire at
379-
* or above this value.
380-
*/
381-
value: number;
382-
}
337+
thresholds?: Array<Threshold> | null;
383338
}
384339

385340
export interface AlertCreateForExternalCustomerParams {
@@ -396,29 +351,14 @@ export interface AlertCreateForExternalCustomerParams {
396351
/**
397352
* The thresholds that define the values at which the alert will be triggered.
398353
*/
399-
thresholds?: Array<AlertCreateForExternalCustomerParams.Threshold> | null;
400-
}
401-
402-
export namespace AlertCreateForExternalCustomerParams {
403-
/**
404-
* Thresholds are used to define the conditions under which an alert will be
405-
* triggered.
406-
*/
407-
export interface Threshold {
408-
/**
409-
* The value at which an alert will fire. For credit balance alerts, the alert will
410-
* fire at or below this value. For usage and cost alerts, the alert will fire at
411-
* or above this value.
412-
*/
413-
value: number;
414-
}
354+
thresholds?: Array<Threshold> | null;
415355
}
416356

417357
export interface AlertCreateForSubscriptionParams {
418358
/**
419359
* The thresholds that define the values at which the alert will be triggered.
420360
*/
421-
thresholds: Array<AlertCreateForSubscriptionParams.Threshold>;
361+
thresholds: Array<Threshold>;
422362

423363
/**
424364
* The type of alert to create. This must be a valid alert type.
@@ -431,21 +371,6 @@ export interface AlertCreateForSubscriptionParams {
431371
metric_id?: string | null;
432372
}
433373

434-
export namespace AlertCreateForSubscriptionParams {
435-
/**
436-
* Thresholds are used to define the conditions under which an alert will be
437-
* triggered.
438-
*/
439-
export interface Threshold {
440-
/**
441-
* The value at which an alert will fire. For credit balance alerts, the alert will
442-
* fire at or below this value. For usage and cost alerts, the alert will fire at
443-
* or above this value.
444-
*/
445-
value: number;
446-
}
447-
}
448-
449374
export interface AlertDisableParams {
450375
/**
451376
* Used to update the status of a plan alert scoped to this subscription_id
@@ -465,6 +390,7 @@ Alerts.AlertsPage = AlertsPage;
465390
export declare namespace Alerts {
466391
export {
467392
type Alert as Alert,
393+
type Threshold as Threshold,
468394
AlertsPage as AlertsPage,
469395
type AlertUpdateParams as AlertUpdateParams,
470396
type AlertListParams as AlertListParams,

0 commit comments

Comments
 (0)