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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "4.44.0"
".": "4.45.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 101
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-726c25fdf0fdd4b7c5a9c36d30e33990d2a4b63c4260be340400f8ded23b578f.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-52bd3046e73f201c4d08edfa92756791c015be907691a7893f8e7782cc2aea6f.yml
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 4.45.0 (2025-01-03)

Full Changelog: [v4.44.0...v4.45.0](https://github.com/orbcorp/orb-node/compare/v4.44.0...v4.45.0)

### Features

* **api:** api update ([#437](https://github.com/orbcorp/orb-node/issues/437)) ([daef0ee](https://github.com/orbcorp/orb-node/commit/daef0eece9bd089b20074a04ebe9e956d22cb03d))


### Chores

* **internal:** codegen related update ([#435](https://github.com/orbcorp/orb-node/issues/435)) ([d538b3d](https://github.com/orbcorp/orb-node/commit/d538b3d8bc0d3dad4715c56d90b1f5be2a511f7f))

## 4.44.0 (2024-12-24)

Full Changelog: [v4.43.0...v4.44.0](https://github.com/orbcorp/orb-node/compare/v4.43.0...v4.44.0)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2024 Orb
Copyright 2025 Orb

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orb-billing",
"version": "4.44.0",
"version": "4.45.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
54 changes: 45 additions & 9 deletions src/resources/alerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,6 @@ export class AlertsPage extends Page<Alert> {}
*
* Alerts created through the API can be scoped to either customers or
* subscriptions.
*
* | Scope | Monitors | Vaild Alert Types |
* | ------------ | ------------------------------ | ----------------------------------------------------------------------------------- |
* | Customer | A customer's credit balance | `credit_balance_depleted`, `credit_balance_recovered`, and `credit_balance_dropped` |
* | Subscription | A subscription's usage or cost | `usage_exceeded` and `cost_exceeded` |
*/
export interface Alert {
/**
Expand All @@ -195,7 +190,7 @@ export interface Alert {
/**
* The customer the alert applies to.
*/
customer: Record<string, string | null> | null;
customer: Alert.Customer | null;

/**
* Whether the alert is enabled or disabled.
Expand All @@ -205,17 +200,17 @@ export interface Alert {
/**
* The metric the alert applies to.
*/
metric: Record<string, string | null> | null;
metric: Alert.Metric | null;

/**
* The plan the alert applies to.
*/
plan: Record<string, string | null> | null;
plan: Alert.Plan | null;

/**
* The subscription the alert applies to.
*/
subscription: Record<string, string | null> | null;
subscription: Alert.Subscription | null;

/**
* The thresholds that define the conditions under which the alert will be
Expand All @@ -235,6 +230,47 @@ export interface Alert {
}

export namespace Alert {
/**
* The customer the alert applies to.
*/
export interface Customer {
id: string;

external_customer_id: string | null;
}

/**
* The metric the alert applies to.
*/
export interface Metric {
id: string;
}

/**
* The plan the alert applies to.
*/
export interface Plan {
id: string | null;

/**
* An optional user-defined ID for this plan resource, used throughout the system
* as an alias for this Plan. Use this field to identify a plan by an existing
* identifier in your system.
*/
external_plan_id: string | null;

name: string | null;

plan_version: string;
}

/**
* The subscription the alert applies to.
*/
export interface Subscription {
id: string;
}

/**
* Thresholds are used to define the conditions under which an alert will be
* triggered.
Expand Down
6 changes: 4 additions & 2 deletions src/resources/events/backfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ export class Backfills extends APIResource {
* only affect events for that customer. If neither is specified, the backfill will
* affect all customers.
*
* When `replace_existing_events` is `true`, the field `filter` can be optionally
* added which enables filtering using
* When `replace_existing_events` is `true`, this indicates that existing events in
* the timeframe should no longer be counted towards invoiced usage. In this
* scenario, the parameter `filter` can be optionally added which enables filtering
* using
* [computed properties](../guides/extensibility/advanced-metrics#computed-properties).
* The expressiveness of computed properties allows you to deprecate existing
* events based on both a period of time and specific property values.
Expand Down
4 changes: 2 additions & 2 deletions src/resources/events/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export class Events extends APIResource {
* call to a payment gateway failed and the user should not be billed)
*
* If you want to only change specific properties of an event, but keep the event
* as part of the billing calculation, use the [Amend single event](amend-event)
* endpoint instead.
* as part of the billing calculation, use the [Amend event](amend-event) endpoint
* instead.
*
* This API is always audit-safe. The process will still retain the deprecated
* event, though it will be ignored for billing calculations. For auditing and data
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '4.44.0'; // x-release-please-version
export const VERSION = '4.45.0'; // x-release-please-version
Loading