orb-billing 5.44.0 → 5.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +52 -0
- package/core.d.ts +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +8 -17
- package/core.js.map +1 -1
- package/core.mjs +8 -17
- package/core.mjs.map +1 -1
- package/index.d.mts +91 -5
- package/index.d.ts +91 -5
- package/index.d.ts.map +1 -1
- package/index.js +90 -2
- package/index.js.map +1 -1
- package/index.mjs +91 -3
- package/index.mjs.map +1 -1
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +33 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/alerts.d.ts +21 -0
- package/resources/alerts.d.ts.map +1 -1
- package/resources/alerts.js +6 -0
- package/resources/alerts.js.map +1 -1
- package/resources/alerts.mjs +6 -0
- package/resources/alerts.mjs.map +1 -1
- package/resources/beta/beta.d.ts +8293 -140
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +5 -0
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +5 -0
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/external-plan-id.d.ts +8293 -140
- package/resources/beta/external-plan-id.d.ts.map +1 -1
- package/resources/beta/external-plan-id.js +5 -0
- package/resources/beta/external-plan-id.js.map +1 -1
- package/resources/beta/external-plan-id.mjs +5 -0
- package/resources/beta/external-plan-id.mjs.map +1 -1
- package/resources/coupons/coupons.d.ts +3 -0
- package/resources/coupons/coupons.d.ts.map +1 -1
- package/resources/coupons/coupons.js +3 -0
- package/resources/coupons/coupons.js.map +1 -1
- package/resources/coupons/coupons.mjs +3 -0
- package/resources/coupons/coupons.mjs.map +1 -1
- package/resources/coupons/subscriptions.d.ts +3 -0
- package/resources/coupons/subscriptions.d.ts.map +1 -1
- package/resources/coupons/subscriptions.js +3 -0
- package/resources/coupons/subscriptions.js.map +1 -1
- package/resources/coupons/subscriptions.mjs +3 -0
- package/resources/coupons/subscriptions.mjs.map +1 -1
- package/resources/credit-blocks.d.ts +85 -1
- package/resources/credit-blocks.d.ts.map +1 -1
- package/resources/credit-blocks.js +22 -0
- package/resources/credit-blocks.js.map +1 -1
- package/resources/credit-blocks.mjs +22 -0
- package/resources/credit-blocks.mjs.map +1 -1
- package/resources/credit-notes.d.ts +4 -0
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js +4 -0
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs +4 -0
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/balance-transactions.d.ts +16 -0
- package/resources/customers/balance-transactions.d.ts.map +1 -1
- package/resources/customers/balance-transactions.js +16 -0
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs +16 -0
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/costs.d.ts +16 -0
- package/resources/customers/costs.d.ts.map +1 -1
- package/resources/customers/costs.js +16 -0
- package/resources/customers/costs.js.map +1 -1
- package/resources/customers/costs.mjs +16 -0
- package/resources/customers/costs.mjs.map +1 -1
- package/resources/customers/credits/credits.d.ts +39 -0
- package/resources/customers/credits/credits.d.ts.map +1 -1
- package/resources/customers/credits/credits.js +3 -0
- package/resources/customers/credits/credits.js.map +1 -1
- package/resources/customers/credits/credits.mjs +3 -0
- package/resources/customers/credits/credits.mjs.map +1 -1
- package/resources/customers/credits/ledger.d.ts +31 -4
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js +19 -2
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs +19 -2
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/credits/top-ups.d.ts +3 -0
- package/resources/customers/credits/top-ups.d.ts.map +1 -1
- package/resources/customers/credits/top-ups.js +3 -0
- package/resources/customers/credits/top-ups.js.map +1 -1
- package/resources/customers/credits/top-ups.mjs +3 -0
- package/resources/customers/credits/top-ups.mjs.map +1 -1
- package/resources/customers/customers.d.ts +57 -12
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +20 -3
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +20 -3
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts +1 -1
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts.map +1 -1
- package/resources/events/backfills.d.ts +5 -0
- package/resources/events/backfills.d.ts.map +1 -1
- package/resources/events/backfills.js +5 -0
- package/resources/events/backfills.js.map +1 -1
- package/resources/events/backfills.mjs +5 -0
- package/resources/events/backfills.mjs.map +1 -1
- package/resources/events/events.d.ts +5 -0
- package/resources/events/events.d.ts.map +1 -1
- package/resources/events/events.js +5 -0
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs +5 -0
- package/resources/events/events.mjs.map +1 -1
- package/resources/events/volume.d.ts +5 -0
- package/resources/events/volume.d.ts.map +1 -1
- package/resources/events/volume.js +5 -0
- package/resources/events/volume.js.map +1 -1
- package/resources/events/volume.mjs +5 -0
- package/resources/events/volume.mjs.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +6 -0
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoice-line-items.js +6 -0
- package/resources/invoice-line-items.js.map +1 -1
- package/resources/invoice-line-items.mjs +6 -0
- package/resources/invoice-line-items.mjs.map +1 -1
- package/resources/invoices.d.ts +443 -10
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +24 -9
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +24 -9
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.d.ts +6 -2
- package/resources/items.d.ts.map +1 -1
- package/resources/items.js +4 -0
- package/resources/items.js.map +1 -1
- package/resources/items.mjs +4 -0
- package/resources/items.mjs.map +1 -1
- package/resources/license-types.d.ts +113 -0
- package/resources/license-types.d.ts.map +1 -0
- package/resources/license-types.js +44 -0
- package/resources/license-types.js.map +1 -0
- package/resources/license-types.mjs +39 -0
- package/resources/license-types.mjs.map +1 -0
- package/resources/licenses/external-licenses.d.ts +114 -0
- package/resources/licenses/external-licenses.d.ts.map +1 -0
- package/resources/licenses/external-licenses.js +18 -0
- package/resources/licenses/external-licenses.js.map +1 -0
- package/resources/licenses/external-licenses.mjs +14 -0
- package/resources/licenses/external-licenses.mjs.map +1 -0
- package/resources/licenses/index.d.ts +4 -0
- package/resources/licenses/index.d.ts.map +1 -0
- package/resources/licenses/index.js +12 -0
- package/resources/licenses/index.js.map +1 -0
- package/resources/licenses/index.mjs +5 -0
- package/resources/licenses/index.mjs.map +1 -0
- package/resources/licenses/licenses.d.ts +133 -0
- package/resources/licenses/licenses.d.ts.map +1 -0
- package/resources/licenses/licenses.js +86 -0
- package/resources/licenses/licenses.js.map +1 -0
- package/resources/licenses/licenses.mjs +58 -0
- package/resources/licenses/licenses.mjs.map +1 -0
- package/resources/licenses/usage.d.ts +211 -0
- package/resources/licenses/usage.d.ts.map +1 -0
- package/resources/licenses/usage.js +25 -0
- package/resources/licenses/usage.js.map +1 -0
- package/resources/licenses/usage.mjs +21 -0
- package/resources/licenses/usage.mjs.map +1 -0
- package/resources/licenses.d.ts +2 -0
- package/resources/licenses.d.ts.map +1 -0
- package/resources/licenses.js +19 -0
- package/resources/licenses.js.map +1 -0
- package/resources/licenses.mjs +3 -0
- package/resources/licenses.mjs.map +1 -0
- package/resources/metrics.d.ts +7 -0
- package/resources/metrics.d.ts.map +1 -1
- package/resources/metrics.js +4 -0
- package/resources/metrics.js.map +1 -1
- package/resources/metrics.mjs +4 -0
- package/resources/metrics.mjs.map +1 -1
- package/resources/plans/external-plan-id.d.ts +5 -0
- package/resources/plans/external-plan-id.d.ts.map +1 -1
- package/resources/plans/external-plan-id.js +5 -0
- package/resources/plans/external-plan-id.js.map +1 -1
- package/resources/plans/external-plan-id.mjs +5 -0
- package/resources/plans/external-plan-id.mjs.map +1 -1
- package/resources/plans/migrations.d.ts +5 -0
- package/resources/plans/migrations.d.ts.map +1 -1
- package/resources/plans/migrations.js +5 -0
- package/resources/plans/migrations.js.map +1 -1
- package/resources/plans/migrations.mjs +5 -0
- package/resources/plans/migrations.mjs.map +1 -1
- package/resources/plans/plans.d.ts +4200 -121
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js +5 -0
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs +5 -0
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/external-price-id.d.ts +9 -0
- package/resources/prices/external-price-id.d.ts.map +1 -1
- package/resources/prices/external-price-id.js +9 -0
- package/resources/prices/external-price-id.js.map +1 -1
- package/resources/prices/external-price-id.mjs +9 -0
- package/resources/prices/external-price-id.mjs.map +1 -1
- package/resources/prices/prices.d.ts +198 -0
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +9 -0
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +9 -0
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.d.ts +1040 -6
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/subscriptions.d.ts +262 -0
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/core.ts +10 -21
- package/src/index.ts +151 -5
- package/src/internal/utils/query.ts +7 -0
- package/src/resources/alerts.ts +24 -0
- package/src/resources/beta/beta.ts +9945 -194
- package/src/resources/beta/external-plan-id.ts +9945 -194
- package/src/resources/coupons/coupons.ts +3 -0
- package/src/resources/coupons/subscriptions.ts +3 -0
- package/src/resources/credit-blocks.ts +110 -1
- package/src/resources/credit-notes.ts +4 -0
- package/src/resources/customers/balance-transactions.ts +16 -0
- package/src/resources/customers/costs.ts +16 -0
- package/src/resources/customers/credits/credits.ts +45 -0
- package/src/resources/customers/credits/ledger.ts +33 -4
- package/src/resources/customers/credits/top-ups.ts +3 -0
- package/src/resources/customers/customers.ts +89 -12
- package/src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts +1 -1
- package/src/resources/events/backfills.ts +5 -0
- package/src/resources/events/events.ts +5 -0
- package/src/resources/events/volume.ts +5 -0
- package/src/resources/index.ts +30 -1
- package/src/resources/invoice-line-items.ts +6 -0
- package/src/resources/invoices.ts +541 -10
- package/src/resources/items.ts +8 -2
- package/src/resources/license-types.ts +163 -0
- package/src/resources/licenses/external-licenses.ts +147 -0
- package/src/resources/licenses/index.ts +27 -0
- package/src/resources/licenses/licenses.ts +248 -0
- package/src/resources/licenses/usage.ts +280 -0
- package/src/resources/licenses.ts +3 -0
- package/src/resources/metrics.ts +6 -0
- package/src/resources/plans/external-plan-id.ts +5 -0
- package/src/resources/plans/migrations.ts +5 -0
- package/src/resources/plans/plans.ts +5004 -126
- package/src/resources/prices/external-price-id.ts +9 -0
- package/src/resources/prices/prices.ts +237 -0
- package/src/resources/shared.ts +1213 -0
- package/src/resources/subscriptions.ts +311 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/index.mjs
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
var _Orb_instances, _a, _Orb_baseURLOverridden;
|
|
3
|
-
import
|
|
3
|
+
import { stringifyQuery } from "./internal/utils/query.mjs";
|
|
4
4
|
import * as Core from "./core.mjs";
|
|
5
5
|
import * as Errors from "./error.mjs";
|
|
6
6
|
import * as Pagination from "./pagination.mjs";
|
|
7
7
|
import * as Uploads from "./uploads.mjs";
|
|
8
8
|
import * as API from "./resources/index.mjs";
|
|
9
9
|
import { Alerts, AlertsPage, } from "./resources/alerts.mjs";
|
|
10
|
-
import { CreditBlocks } from "./resources/credit-blocks.mjs";
|
|
10
|
+
import { CreditBlocks, } from "./resources/credit-blocks.mjs";
|
|
11
11
|
import { CreditNotes } from "./resources/credit-notes.mjs";
|
|
12
12
|
import { InvoiceLineItems, } from "./resources/invoice-line-items.mjs";
|
|
13
13
|
import { InvoiceListSummaryResponsesPage, Invoices, } from "./resources/invoices.mjs";
|
|
14
14
|
import { Items, ItemsPage, } from "./resources/items.mjs";
|
|
15
|
+
import { LicenseTypeListResponsesPage, LicenseTypes, } from "./resources/license-types.mjs";
|
|
15
16
|
import { BillableMetricsPage, Metrics, } from "./resources/metrics.mjs";
|
|
16
17
|
import { SubscriptionChangeListResponsesPage, SubscriptionChanges, } from "./resources/subscription-changes.mjs";
|
|
17
18
|
import { SubscriptionFetchScheduleResponsesPage, SubscriptionsPage, } from "./resources/subscriptions.mjs";
|
|
@@ -21,6 +22,7 @@ import { Coupons, CouponsPage, } from "./resources/coupons/coupons.mjs";
|
|
|
21
22
|
import { Customers, CustomersPage, } from "./resources/customers/customers.mjs";
|
|
22
23
|
import { DimensionalPriceGroupsPage, } from "./resources/dimensional-price-groups/dimensional-price-groups.mjs";
|
|
23
24
|
import { Events, } from "./resources/events/events.mjs";
|
|
25
|
+
import { LicenseListResponsesPage, Licenses, } from "./resources/licenses/licenses.mjs";
|
|
24
26
|
import { Plans, PlansPage, } from "./resources/plans/plans.mjs";
|
|
25
27
|
import { Prices, } from "./resources/prices/prices.mjs";
|
|
26
28
|
/**
|
|
@@ -60,23 +62,105 @@ export class Orb extends Core.APIClient {
|
|
|
60
62
|
});
|
|
61
63
|
_Orb_instances.add(this);
|
|
62
64
|
this.topLevel = new API.TopLevel(this);
|
|
65
|
+
/**
|
|
66
|
+
* The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be subscribed to by a
|
|
67
|
+
* customer. Plans define the billing behavior of the subscription. You can see more about how to configure prices
|
|
68
|
+
* in the [Price resource](/reference/price).
|
|
69
|
+
*/
|
|
63
70
|
this.beta = new API.Beta(this);
|
|
71
|
+
/**
|
|
72
|
+
* A coupon represents a reusable discount configuration that can be applied either as a fixed or percentage amount to an invoice or subscription. Coupons are activated using a redemption code, which applies the discount to a subscription or invoice. The duration of a coupon determines how long it remains available for use by end users.
|
|
73
|
+
*/
|
|
64
74
|
this.coupons = new API.Coupons(this);
|
|
75
|
+
/**
|
|
76
|
+
* The [Credit Note](/invoicing/credit-notes) resource represents a credit that has been applied to a
|
|
77
|
+
* particular invoice.
|
|
78
|
+
*/
|
|
65
79
|
this.creditNotes = new API.CreditNotes(this);
|
|
80
|
+
/**
|
|
81
|
+
* A customer is a buyer of your products, and the other party to the billing relationship.
|
|
82
|
+
*
|
|
83
|
+
* In Orb, customers are assigned system generated identifiers automatically, but it's often desirable to have these
|
|
84
|
+
* match existing identifiers in your system. To avoid having to denormalize Orb ID information, you can pass in an
|
|
85
|
+
* `external_customer_id` with your own identifier. See
|
|
86
|
+
* [Customer ID Aliases](/events-and-metrics/customer-aliases) for further information about how these
|
|
87
|
+
* aliases work in Orb.
|
|
88
|
+
*
|
|
89
|
+
* In addition to having an identifier in your system, a customer may exist in a payment provider solution like
|
|
90
|
+
* Stripe. Use the `payment_provider_id` and the `payment_provider` enum field to express this mapping.
|
|
91
|
+
*
|
|
92
|
+
* A customer also has a timezone (from the standard [IANA timezone database](https://www.iana.org/time-zones)), which
|
|
93
|
+
* defaults to your account's timezone. See [Timezone localization](/essentials/timezones) for
|
|
94
|
+
* information on what this timezone parameter influences within Orb.
|
|
95
|
+
*/
|
|
66
96
|
this.customers = new API.Customers(this);
|
|
97
|
+
/**
|
|
98
|
+
* The [Event](/core-concepts#event) resource represents a usage event that has been created for a
|
|
99
|
+
* customer. Events are the core of Orb's usage-based billing model, and are used to calculate the usage charges for
|
|
100
|
+
* a given billing period.
|
|
101
|
+
*/
|
|
67
102
|
this.events = new API.Events(this);
|
|
103
|
+
/**
|
|
104
|
+
* An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity, representing the request for payment for
|
|
105
|
+
* a single subscription. This includes a set of line items, which correspond to prices in the subscription's plan and
|
|
106
|
+
* can represent fixed recurring fees or usage-based fees. They are generated at the end of a billing period, or as
|
|
107
|
+
* the result of an action, such as a cancellation.
|
|
108
|
+
*/
|
|
68
109
|
this.invoiceLineItems = new API.InvoiceLineItems(this);
|
|
110
|
+
/**
|
|
111
|
+
* An [`Invoice`](/core-concepts#invoice) is a fundamental billing entity, representing the request for payment for
|
|
112
|
+
* a single subscription. This includes a set of line items, which correspond to prices in the subscription's plan and
|
|
113
|
+
* can represent fixed recurring fees or usage-based fees. They are generated at the end of a billing period, or as
|
|
114
|
+
* the result of an action, such as a cancellation.
|
|
115
|
+
*/
|
|
69
116
|
this.invoices = new API.Invoices(this);
|
|
117
|
+
/**
|
|
118
|
+
* The Item resource represents a sellable product or good. Items are associated with all line items, billable metrics,
|
|
119
|
+
* and prices and are used for defining external sync behavior for invoices and tax calculation purposes.
|
|
120
|
+
*/
|
|
70
121
|
this.items = new API.Items(this);
|
|
122
|
+
/**
|
|
123
|
+
* The Metric resource represents a calculation of a quantity based on events.
|
|
124
|
+
* Metrics are defined by the query that transforms raw usage events into meaningful values for your customers.
|
|
125
|
+
*/
|
|
71
126
|
this.metrics = new API.Metrics(this);
|
|
127
|
+
/**
|
|
128
|
+
* The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be subscribed to by a
|
|
129
|
+
* customer. Plans define the billing behavior of the subscription. You can see more about how to configure prices
|
|
130
|
+
* in the [Price resource](/reference/price).
|
|
131
|
+
*/
|
|
72
132
|
this.plans = new API.Plans(this);
|
|
133
|
+
/**
|
|
134
|
+
* The Price resource represents a price that can be billed on a subscription, resulting in a charge on an invoice in
|
|
135
|
+
* the form of an invoice line item. Prices take a quantity and determine an amount to bill.
|
|
136
|
+
*
|
|
137
|
+
* Orb supports a few different pricing models out of the box. Each of these models is serialized differently in a
|
|
138
|
+
* given Price object. The model_type field determines the key for the configuration object that is present.
|
|
139
|
+
*
|
|
140
|
+
* For more on the types of prices, see [the core concepts documentation](/core-concepts#plan-and-price)
|
|
141
|
+
*/
|
|
73
142
|
this.prices = new API.Prices(this);
|
|
74
143
|
this.subscriptions = new API.Subscriptions(this);
|
|
75
144
|
this.webhooks = new API.Webhooks(this);
|
|
145
|
+
/**
|
|
146
|
+
* [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
|
|
147
|
+
* usage, or credit balance and trigger webhooks when a threshold is exceeded.
|
|
148
|
+
*
|
|
149
|
+
* Alerts created through the API can be scoped to either customers or subscriptions.
|
|
150
|
+
*/
|
|
76
151
|
this.alerts = new API.Alerts(this);
|
|
77
152
|
this.dimensionalPriceGroups = new API.DimensionalPriceGroups(this);
|
|
78
153
|
this.subscriptionChanges = new API.SubscriptionChanges(this);
|
|
154
|
+
/**
|
|
155
|
+
* The [Credit Ledger Entry resource](/product-catalog/prepurchase) models prepaid credits within Orb.
|
|
156
|
+
*/
|
|
79
157
|
this.creditBlocks = new API.CreditBlocks(this);
|
|
158
|
+
/**
|
|
159
|
+
* The LicenseType resource represents a type of license that can be assigned to users.
|
|
160
|
+
* License types are used during billing by grouping metrics on the configured grouping key.
|
|
161
|
+
*/
|
|
162
|
+
this.licenseTypes = new API.LicenseTypes(this);
|
|
163
|
+
this.licenses = new API.Licenses(this);
|
|
80
164
|
this._options = options;
|
|
81
165
|
this.idempotencyHeader = 'Idempotency-Key';
|
|
82
166
|
this.apiKey = apiKey;
|
|
@@ -95,7 +179,7 @@ export class Orb extends Core.APIClient {
|
|
|
95
179
|
return { Authorization: `Bearer ${this.apiKey}` };
|
|
96
180
|
}
|
|
97
181
|
stringifyQuery(query) {
|
|
98
|
-
return
|
|
182
|
+
return stringifyQuery(query);
|
|
99
183
|
}
|
|
100
184
|
}
|
|
101
185
|
_a = Orb, _Orb_instances = new WeakSet(), _Orb_baseURLOverridden = function _Orb_baseURLOverridden() {
|
|
@@ -156,6 +240,10 @@ Orb.DimensionalPriceGroupsPage = DimensionalPriceGroupsPage;
|
|
|
156
240
|
Orb.SubscriptionChanges = SubscriptionChanges;
|
|
157
241
|
Orb.SubscriptionChangeListResponsesPage = SubscriptionChangeListResponsesPage;
|
|
158
242
|
Orb.CreditBlocks = CreditBlocks;
|
|
243
|
+
Orb.LicenseTypes = LicenseTypes;
|
|
244
|
+
Orb.LicenseTypeListResponsesPage = LicenseTypeListResponsesPage;
|
|
245
|
+
Orb.Licenses = Licenses;
|
|
246
|
+
Orb.LicenseListResponsesPage = LicenseListResponsesPage;
|
|
159
247
|
export { toFile, fileFromPath } from "./uploads.mjs";
|
|
160
248
|
export { OrbError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, URLNotFound, NotFoundError, ConflictError, RateLimitError, BadRequestError, RequestTooLarge, TooManyRequests, ResourceNotFound, ResourceConflict, ResourceTooLarge, AuthenticationError, InternalServerError, ConstraintViolation, FeatureNotAvailable, PermissionDeniedError, RequestValidationError, OrbAuthenticationError, OrbInternalServerError, UnprocessableEntityError, DuplicateResourceCreation, } from "./error.mjs";
|
|
161
249
|
export default Orb;
|
package/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,cAAc,EAAE;OAClB,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,UAAU;OAEf,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EASL,MAAM,EACN,UAAU,GAEX;OACM,EAGL,YAAY,GACb;OACM,EAAgD,WAAW,EAAE;OAC7D,EAGL,gBAAgB,GACjB;OACM,EAUL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AAChE,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACxB,GAAG,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;OAsXjD,EAAE,MAAM,EAAE,YAAY,EAAE;OACxB,EACL,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,GAC1B;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/internal/utils/query.ts"],"names":[],"mappings":"AAIA,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,UAErE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.stringifyQuery = void 0;
|
|
28
|
+
const qs = __importStar(require("../qs/stringify.js"));
|
|
29
|
+
function stringifyQuery(query) {
|
|
30
|
+
return qs.stringify(query, { arrayFormat: 'brackets' });
|
|
31
|
+
}
|
|
32
|
+
exports.stringifyQuery = stringifyQuery;
|
|
33
|
+
//# sourceMappingURL=query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/internal/utils/query.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,uDAAsC;AAEtC,SAAgB,cAAc,CAAC,KAAuC;IACpE,OAAO,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC,CAAC;AAC1D,CAAC;AAFD,wCAEC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import * as qs from "../qs/stringify.mjs";
|
|
3
|
+
export function stringifyQuery(query) {
|
|
4
|
+
return qs.stringify(query, { arrayFormat: 'brackets' });
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=query.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.mjs","sourceRoot":"","sources":["../../src/internal/utils/query.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,KAAK,EAAE;AAEd,MAAM,UAAU,cAAc,CAAC,KAAuC;IACpE,OAAO,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC,CAAC;AAC1D,CAAC"}
|
package/package.json
CHANGED
package/resources/alerts.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ import { APIResource } from "../resource.js";
|
|
|
2
2
|
import * as Core from "../core.js";
|
|
3
3
|
import * as Shared from "./shared.js";
|
|
4
4
|
import { Page, type PageParams } from "../pagination.js";
|
|
5
|
+
/**
|
|
6
|
+
* [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
|
|
7
|
+
* usage, or credit balance and trigger webhooks when a threshold is exceeded.
|
|
8
|
+
*
|
|
9
|
+
* Alerts created through the API can be scoped to either customers or subscriptions.
|
|
10
|
+
*/
|
|
5
11
|
export declare class Alerts extends APIResource {
|
|
6
12
|
/**
|
|
7
13
|
* This endpoint retrieves an alert by its ID.
|
|
@@ -133,6 +139,11 @@ export interface Alert {
|
|
|
133
139
|
* alerts.
|
|
134
140
|
*/
|
|
135
141
|
balance_alert_status?: Array<Alert.BalanceAlertStatus> | null;
|
|
142
|
+
/**
|
|
143
|
+
* The property keys to group cost alerts by. Only present for cost alerts with
|
|
144
|
+
* grouping enabled.
|
|
145
|
+
*/
|
|
146
|
+
grouping_keys?: Array<string> | null;
|
|
136
147
|
/**
|
|
137
148
|
* Minified license type for alert serialization.
|
|
138
149
|
*/
|
|
@@ -252,10 +263,20 @@ export interface AlertCreateForSubscriptionParams {
|
|
|
252
263
|
* The type of alert to create. This must be a valid alert type.
|
|
253
264
|
*/
|
|
254
265
|
type: 'usage_exceeded' | 'cost_exceeded';
|
|
266
|
+
/**
|
|
267
|
+
* The property keys to group cost alerts by. Only applicable for cost_exceeded
|
|
268
|
+
* alerts.
|
|
269
|
+
*/
|
|
270
|
+
grouping_keys?: Array<string> | null;
|
|
255
271
|
/**
|
|
256
272
|
* The metric to track usage for.
|
|
257
273
|
*/
|
|
258
274
|
metric_id?: string | null;
|
|
275
|
+
/**
|
|
276
|
+
* The pricing unit to use for grouped cost alerts. Required when grouping_keys is
|
|
277
|
+
* set.
|
|
278
|
+
*/
|
|
279
|
+
pricing_unit_id?: string | null;
|
|
259
280
|
}
|
|
260
281
|
export interface AlertDisableParams {
|
|
261
282
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../src/resources/alerts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEtD,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;IAIhF;;OAEG;IACH,MAAM,CACJ,oBAAoB,EAAE,MAAM,EAC5B,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;IAIzB;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,KAAK,CAAC;IACjG,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,KAAK,CAAC;IAWxE;;;;;;;;;OASG;IACH,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,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,SAAS,IAAI,SAAS,EAC3B,UAAU,IAAI,UAAU,EACxB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/alerts.js
CHANGED
|
@@ -5,6 +5,12 @@ exports.AlertsPage = exports.Alerts = void 0;
|
|
|
5
5
|
const resource_1 = require("../resource.js");
|
|
6
6
|
const core_1 = require("../core.js");
|
|
7
7
|
const pagination_1 = require("../pagination.js");
|
|
8
|
+
/**
|
|
9
|
+
* [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
|
|
10
|
+
* usage, or credit balance and trigger webhooks when a threshold is exceeded.
|
|
11
|
+
*
|
|
12
|
+
* Alerts created through the API can be scoped to either customers or subscriptions.
|
|
13
|
+
*/
|
|
8
14
|
class Alerts extends resource_1.APIResource {
|
|
9
15
|
/**
|
|
10
16
|
* This endpoint retrieves an alert by its ID.
|
package/resources/alerts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.js","sourceRoot":"","sources":["../src/resources/alerts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Ac,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAaD,OAAO,CACL,oBAA4B,EAC5B,SAAmD,EAAE,EACrD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;SACvD;QACD,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,oBAAoB,UAAU,EAAE;YAClE,KAAK,EAAE,EAAE,eAAe,EAAE;YAC1B,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAaD,MAAM,CACJ,oBAA4B,EAC5B,SAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;SACtD;QACD,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,oBAAoB,SAAS,EAAE;YACjE,KAAK,EAAE,EAAE,eAAe,EAAE;YAC1B,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAxJD,wBAwJC;AAED,MAAa,UAAW,SAAQ,iBAAW;CAAG;AAA9C,gCAA8C;AAgQ9C,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC"}
|
package/resources/alerts.mjs
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
import { APIResource } from "../resource.mjs";
|
|
3
3
|
import { isRequestOptions } from "../core.mjs";
|
|
4
4
|
import { Page } from "../pagination.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
|
|
7
|
+
* usage, or credit balance and trigger webhooks when a threshold is exceeded.
|
|
8
|
+
*
|
|
9
|
+
* Alerts created through the API can be scoped to either customers or subscriptions.
|
|
10
|
+
*/
|
|
5
11
|
export class Alerts extends APIResource {
|
|
6
12
|
/**
|
|
7
13
|
* This endpoint retrieves an alert by its ID.
|
package/resources/alerts.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.mjs","sourceRoot":"","sources":["../src/resources/alerts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,EAAE,IAAI,EAAmB;AAEhC,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,oBAA4B,EAC5B,IAAuB,EACvB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,oBAAoB,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAiBD,IAAI,CACF,QAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;OASG;IACH,iBAAiB,CACf,UAAkB,EAClB,IAAkC,EAClC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,UAA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