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 @@
{
".": "5.55.0"
".": "5.56.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 139
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-07428f2af8d77b3af7d838375b0fb5adce7fba2c8312ca84bcd8ef340d782bbc.yml
openapi_spec_hash: 99d6e3e97bab8a25399a63f3db134542
openapi_spec_hash: bba0e6257d3d2f8612c5ad14b95839e2
config_hash: c01c1191b1cd696c7ca855ff6d28a8df
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 5.56.0 (2026-04-27)

Full Changelog: [v5.55.0...v5.56.0](https://github.com/orbcorp/orb-node/compare/v5.55.0...v5.56.0)

### Features

* **api:** api update ([5a431ce](https://github.com/orbcorp/orb-node/commit/5a431ce9fa4f26d11d784537aa393dc27742657e))

## 5.55.0 (2026-04-27)

Full Changelog: [v5.54.0...v5.55.0](https://github.com/orbcorp/orb-node/compare/v5.54.0...v5.55.0)
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": "5.55.0",
"version": "5.56.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <team@withorb.com>",
"types": "dist/index.d.ts",
Expand Down
320 changes: 320 additions & 0 deletions src/resources/beta/beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ export namespace BetaCreatePlanVersionParams {
| Shared.NewPlanScalableMatrixWithTieredPricingPrice
| Shared.NewPlanCumulativeGroupedBulkPrice
| AddPrice.NewPlanCumulativeGroupedAllocationPrice
| AddPrice.NewPlanDailyCreditAllowancePrice
| Shared.NewPlanMinimumCompositePrice
| AddPrice.NewPlanPercentCompositePrice
| AddPrice.NewPlanEventOutputPrice
Expand Down Expand Up @@ -912,6 +913,165 @@ export namespace BetaCreatePlanVersionParams {
}
}

export interface NewPlanDailyCreditAllowancePrice {
/**
* The cadence to bill for this price on.
*/
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';

/**
* Configuration for daily_credit_allowance pricing
*/
daily_credit_allowance_config: NewPlanDailyCreditAllowancePrice.DailyCreditAllowanceConfig;

/**
* The id of the item the price will be associated with.
*/
item_id: string;

/**
* The pricing model type
*/
model_type: 'daily_credit_allowance';

/**
* The name of the price.
*/
name: string;

/**
* The id of the billable metric for the price. Only needed if the price is
* usage-based.
*/
billable_metric_id?: string | null;

/**
* If the Price represents a fixed cost, the price will be billed in-advance if
* this is true, and in-arrears if this is false.
*/
billed_in_advance?: boolean | null;

/**
* For custom cadence: specifies the duration of the billing period in days or
* months.
*/
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;

/**
* The per unit conversion rate of the price currency to the invoicing currency.
*/
conversion_rate?: number | null;

/**
* The configuration for the rate of the price currency to the invoicing currency.
*/
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;

/**
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
* price is billed.
*/
currency?: string | null;

/**
* For dimensional price: specifies a price group and dimension values
*/
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;

/**
* An alias for the price.
*/
external_price_id?: string | null;

/**
* If the Price represents a fixed cost, this represents the quantity of units
* applied.
*/
fixed_price_quantity?: number | null;

/**
* The property used to group this price on an invoice
*/
invoice_grouping_key?: string | null;

/**
* Within each billing cycle, specifies the cadence at which invoices are produced.
* If unspecified, a single invoice is produced per billing cycle.
*/
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;

/**
* The ID of the license type to associate with this price.
*/
license_type_id?: string | null;

/**
* User-specified key/value pairs for the resource. Individual keys can be removed
* by setting the value to `null`, and the entire metadata mapping can be cleared
* by setting `metadata` to `null`.
*/
metadata?: { [key: string]: string | null } | null;

/**
* A transient ID that can be used to reference this price when adding adjustments
* in the same API call.
*/
reference_id?: string | null;
}

export namespace NewPlanDailyCreditAllowancePrice {
/**
* Configuration for daily_credit_allowance pricing
*/
export interface DailyCreditAllowanceConfig {
/**
* Credits granted per day. Lose-it-or-use-it; does not roll over.
*/
daily_allowance: string;

/**
* Default per-unit credit rate for any usage not bucketed into a specified
* matrix_value
*/
default_unit_amount: string;

/**
* One or two event property values to evaluate matrix groups by
*/
dimensions: Array<string | null>;

/**
* Event property whose value identifies the day bucket the event belongs to (e.g.
* 'event_day' set to an ISO date string in the customer's timezone). The allowance
* resets per distinct value of this property.
*/
event_day_property: string;

/**
* Per-dimension credit rates
*/
matrix_values: Array<DailyCreditAllowanceConfig.MatrixValue>;
}

export namespace DailyCreditAllowanceConfig {
/**
* Per-dimension credit price for the daily credit allowance model.
*/
export interface MatrixValue {
/**
* One or two matrix keys to filter usage to this value by. For example, ["model"]
* could be used to apply a different credit rate to each AI model.
*/
dimension_values: Array<string | null>;

/**
* Credits charged per unit of usage matching the specified dimension_values
*/
unit_amount: string;
}
}
}

export interface NewPlanPercentCompositePrice {
/**
* The cadence to bill for this price on.
Expand Down Expand Up @@ -1261,6 +1421,7 @@ export namespace BetaCreatePlanVersionParams {
| Shared.NewPlanScalableMatrixWithTieredPricingPrice
| Shared.NewPlanCumulativeGroupedBulkPrice
| ReplacePrice.NewPlanCumulativeGroupedAllocationPrice
| ReplacePrice.NewPlanDailyCreditAllowancePrice
| Shared.NewPlanMinimumCompositePrice
| ReplacePrice.NewPlanPercentCompositePrice
| ReplacePrice.NewPlanEventOutputPrice
Expand Down Expand Up @@ -1960,6 +2121,165 @@ export namespace BetaCreatePlanVersionParams {
}
}

export interface NewPlanDailyCreditAllowancePrice {
/**
* The cadence to bill for this price on.
*/
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';

/**
* Configuration for daily_credit_allowance pricing
*/
daily_credit_allowance_config: NewPlanDailyCreditAllowancePrice.DailyCreditAllowanceConfig;

/**
* The id of the item the price will be associated with.
*/
item_id: string;

/**
* The pricing model type
*/
model_type: 'daily_credit_allowance';

/**
* The name of the price.
*/
name: string;

/**
* The id of the billable metric for the price. Only needed if the price is
* usage-based.
*/
billable_metric_id?: string | null;

/**
* If the Price represents a fixed cost, the price will be billed in-advance if
* this is true, and in-arrears if this is false.
*/
billed_in_advance?: boolean | null;

/**
* For custom cadence: specifies the duration of the billing period in days or
* months.
*/
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;

/**
* The per unit conversion rate of the price currency to the invoicing currency.
*/
conversion_rate?: number | null;

/**
* The configuration for the rate of the price currency to the invoicing currency.
*/
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;

/**
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
* price is billed.
*/
currency?: string | null;

/**
* For dimensional price: specifies a price group and dimension values
*/
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;

/**
* An alias for the price.
*/
external_price_id?: string | null;

/**
* If the Price represents a fixed cost, this represents the quantity of units
* applied.
*/
fixed_price_quantity?: number | null;

/**
* The property used to group this price on an invoice
*/
invoice_grouping_key?: string | null;

/**
* Within each billing cycle, specifies the cadence at which invoices are produced.
* If unspecified, a single invoice is produced per billing cycle.
*/
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;

/**
* The ID of the license type to associate with this price.
*/
license_type_id?: string | null;

/**
* User-specified key/value pairs for the resource. Individual keys can be removed
* by setting the value to `null`, and the entire metadata mapping can be cleared
* by setting `metadata` to `null`.
*/
metadata?: { [key: string]: string | null } | null;

/**
* A transient ID that can be used to reference this price when adding adjustments
* in the same API call.
*/
reference_id?: string | null;
}

export namespace NewPlanDailyCreditAllowancePrice {
/**
* Configuration for daily_credit_allowance pricing
*/
export interface DailyCreditAllowanceConfig {
/**
* Credits granted per day. Lose-it-or-use-it; does not roll over.
*/
daily_allowance: string;

/**
* Default per-unit credit rate for any usage not bucketed into a specified
* matrix_value
*/
default_unit_amount: string;

/**
* One or two event property values to evaluate matrix groups by
*/
dimensions: Array<string | null>;

/**
* Event property whose value identifies the day bucket the event belongs to (e.g.
* 'event_day' set to an ISO date string in the customer's timezone). The allowance
* resets per distinct value of this property.
*/
event_day_property: string;

/**
* Per-dimension credit rates
*/
matrix_values: Array<DailyCreditAllowanceConfig.MatrixValue>;
}

export namespace DailyCreditAllowanceConfig {
/**
* Per-dimension credit price for the daily credit allowance model.
*/
export interface MatrixValue {
/**
* One or two matrix keys to filter usage to this value by. For example, ["model"]
* could be used to apply a different credit rate to each AI model.
*/
dimension_values: Array<string | null>;

/**
* Credits charged per unit of usage matching the specified dimension_values
*/
unit_amount: string;
}
}
}

export interface NewPlanPercentCompositePrice {
/**
* The cadence to bill for this price on.
Expand Down
Loading
Loading