From 23ee7ed33bc17e63be63dff60d74ad19c957ce95 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 14:36:35 +0000 Subject: [PATCH 1/4] chore(docs): improve alert endpoints descriptions (#194) --- .stats.yml | 2 +- src/resources/alerts.ts | 106 +++++++++++++----------------- src/resources/customers/costs.ts | 20 +++--- src/resources/events/backfills.ts | 4 ++ src/resources/events/events.ts | 4 +- 5 files changed, 65 insertions(+), 71 deletions(-) diff --git a/.stats.yml b/.stats.yml index 339e187..e1458a6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 90 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb-513711d9c7ecfa388704769b0eacdfaef1752c88942b061c28f4239260089651.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb-0b1c2d4534e85da8966d80448ccc6bf4db184f0d5642478af14ba4c9eeadafed.yml diff --git a/src/resources/alerts.ts b/src/resources/alerts.ts index 60a3f0b..3675f09 100644 --- a/src/resources/alerts.ts +++ b/src/resources/alerts.ts @@ -15,18 +15,17 @@ export class Alerts extends APIResource { } /** - * This endpoint returns a list of all - * [`alerts`](https://docs.withorb.com/guides/product-catalog/configuring-alerts). + * This endpoint returns a list of alerts within Orb. * - * The list of alerts is ordered starting from the most recently created alert. - * This endpoint follows Orb's - * [standardized pagination format](../reference/pagination). - * - * The request must specify one of customer_id, external_customer_id, - * subscription_id, or plan_id + * The request must specify one of `customer_id`, `external_customer_id`, or + * `subscription_id`. * * If querying by subscripion_id, the endpoint will return the subscription level * alerts as well as the plan level alerts associated with the subscription. + * + * The list of alerts is ordered starting from the most recently created alert. + * This endpoint follows Orb's + * [standardized pagination format](../reference/pagination). */ list(query?: AlertListParams, options?: Core.RequestOptions): Core.PagePromise; list(options?: Core.RequestOptions): Core.PagePromise; @@ -86,11 +85,12 @@ export class Alerts extends APIResource { * * Plan level alerts can be of two types: `usage_exceeded` or `cost_exceeded`. A * `usage_exceeded` alert is scoped to a particular metric and is triggered when - * the usage of that metric exceeds a predefined thresholds during the current - * invoice cycle. A `cost_exceeded` alert is triggered when the total cost of the - * subscription on the plan surpasses predefined thresholds in the current invoice - * cycle.Each plan can have one `cost_exceeded` alert and one `usage_exceeded` - * alert per metric that is apart of the plan. + * the usage of that metric exceeds predefined thresholds during the current + * billing cycle. A `cost_exceeded` alert is triggered when the total amount due + * during the current billing cycle surpasses predefined thresholds. + * `cost_exceeded` alerts do not include burndown of pre-purchase credits. Each + * plan can have one `cost_exceeded` alert and one `usage_exceeded` alert per + * metric that is a part of the plan. */ createForPlan( planId: string, @@ -105,13 +105,13 @@ export class Alerts extends APIResource { * * Subscription level alerts can be one of two types: `usage_exceeded` or * `cost_exceeded`. A `usage_exceeded` alert is scoped to a particular metric and - * is triggered when the usage of that metric exceeds a predefined thresholds - * during the current invoice cycle. A `cost_exceeded` alert is triggered when the - * total cost of the subscription surpasses predefined thresholds in the current - * invoice cycle. Each subscription can have one `cost_exceeded` alert and one - * `usage_exceeded` alert per metric that is apart of the subscription. Alerts are - * triggered based on usage or cost conditions met during the current invoice - * cycle. + * is triggered when the usage of that metric exceeds predefined thresholds during + * the current billing cycle. A `cost_exceeded` alert is triggered when the total + * amount due during the current billing cycle surpasses predefined thresholds. + * `cost_exceeded` alerts do not include burndown of pre-purchase credits. Each + * subscription can have one `cost_exceeded` alert and one `usage_exceeded` alert + * per metric that is a part of the subscription. Alerts are triggered based on + * usage or cost conditions met during the current billing cycle. */ createForSubscription( subscriptionId: string, @@ -123,11 +123,6 @@ export class Alerts extends APIResource { /** * This endpoint can be used to disable an alert. - * - * By default, disabling a plan level alert will apply to all subscriptions on that - * plan. In order to toggle a plan level alert for a specific subscription, the - * client must provide the plan level alert id as well as the subscription_id - * parameter. */ disable( alertConfigurationId: string, @@ -152,11 +147,6 @@ export class Alerts extends APIResource { /** * This endpoint can be used to enable an alert. - * - * By default, enabling a plan level alert will apply to all subscriptions on that - * plan. In order to toggle a plan level alert for a specific subscription, the - * client must provide the plan level alert id as well as the subscription_id - * parameter. */ enable( alertConfigurationId: string, @@ -183,25 +173,17 @@ export class Alerts extends APIResource { export class AlertsPage extends Page {} /** - * An - * [Alert within Orb](https://docs.withorb.com/guides/product-catalog/configuring-alerts) - * monitors a customer's spending, usage, or credit balance and triggers a webhook - * when a threshold is exceeded. - * - * Alerts can be configured to monitor usage, cost, or credit balance. Alerts can - * be scoped to either a customer, a plan, or a subscription. - * - * Customer scoped alerts track a customer's credit balance. Valid customer alert - * types are "credit_balance_depleted", "credit_balance_recovered", and - * "credit_balance_dropped". + * [Alerts within Orb](https://docs.withorb.com/guides/product-catalog/configuring-alerts) + * monitor spending, usage, or credit balance and trigger webhooks when a threshold + * is exceeded. * - * Subscription scoped alerts track a subscriptions's usage or cost. Valid plan - * alert types are "usage_exceeded" or "cost_exceeded". + * Alerts created through the API can be scoped to either customers or + * subscriptions. * - * Plan scoped alerts are similar to subscriptions alerts but when a plan alert is - * created, it is propagated to all subscriptions associated with the plan. - * Disabling a plan alert will disable the alert for all subscriptions. Valid plan - * alert types are "usage_exceeded" or "cost_exceeded". + * | 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 { /** @@ -215,7 +197,7 @@ export interface Alert { created_at: string; /** - * The name of the currency the credit balance for this alert is denominated in. + * The name of the currency the credit balance or invoice cost is denominated in. */ currency: string | null; @@ -268,8 +250,9 @@ export namespace Alert { */ export interface Threshold { /** - * The value at which an alert will fire. For credit balance alerts, the alert will fire at or below this value. For usage and - * cost alerts, the alert will fire at or above this value. + * The value at which an alert will fire. For credit balance alerts, the alert will + * fire at or below this value. For usage and cost alerts, the alert will fire at + * or above this value. */ value: number; } @@ -334,8 +317,9 @@ export namespace AlertCreateForCustomerParams { */ export interface Threshold { /** - * The value at which an alert will fire. For credit balance alerts, the alert will fire at or below this value. For usage and - * cost alerts, the alert will fire at or above this value. + * The value at which an alert will fire. For credit balance alerts, the alert will + * fire at or below this value. For usage and cost alerts, the alert will fire at + * or above this value. */ value: number; } @@ -365,8 +349,9 @@ export namespace AlertCreateForExternalCustomerParams { */ export interface Threshold { /** - * The value at which an alert will fire. For credit balance alerts, the alert will fire at or below this value. For usage and - * cost alerts, the alert will fire at or above this value. + * The value at which an alert will fire. For credit balance alerts, the alert will + * fire at or below this value. For usage and cost alerts, the alert will fire at + * or above this value. */ value: number; } @@ -389,7 +374,8 @@ export interface AlertCreateForPlanParams { metric_id?: string | null; /** - * The plan version to create alerts for. If not specified, the default will be the plan's active plan version. + * The plan version to create alerts for. If not specified, the default will be the + * plan's active plan version. */ plan_version?: number | null; } @@ -401,8 +387,9 @@ export namespace AlertCreateForPlanParams { */ export interface Threshold { /** - * The value at which an alert will fire. For credit balance alerts, the alert will fire at or below this value. For usage and - * cost alerts, the alert will fire at or above this value. + * The value at which an alert will fire. For credit balance alerts, the alert will + * fire at or below this value. For usage and cost alerts, the alert will fire at + * or above this value. */ value: number; } @@ -432,8 +419,9 @@ export namespace AlertCreateForSubscriptionParams { */ export interface Threshold { /** - * The value at which an alert will fire. For credit balance alerts, the alert will fire at or below this value. For usage and - * cost alerts, the alert will fire at or above this value. + * The value at which an alert will fire. For credit balance alerts, the alert will + * fire at or below this value. For usage and cost alerts, the alert will fire at + * or above this value. */ value: number; } diff --git a/src/resources/customers/costs.ts b/src/resources/customers/costs.ts index aa6373f..b6b9028 100644 --- a/src/resources/customers/costs.ts +++ b/src/resources/customers/costs.ts @@ -86,11 +86,11 @@ export class Costs extends APIResource { * * ## Timeframe bounds * - * If no timeframe bounds are specified, the response will default to the current - * billing period for the customer's subscription. For subscriptions that have - * ended, this will be the billing period when they were last active. If the - * subscription starts or ends within the timeframe, the response will only include - * windows where the subscription is active. + * For an active subscription, both timeframes should be specified in the request. + * If a subscription starts or ends within the timeframe, the response will only + * include windows where the subscription is active. If a subscription has ended, + * no timeframe bounds need to be specified and the response will default to the + * billing period when the subscription was last active. * * As noted above, `timeframe_start` for a given cumulative datapoint is always the * beginning of the billing period, and `timeframe_end` is incremented one day at a @@ -239,11 +239,11 @@ export class Costs extends APIResource { * * ## Timeframe bounds * - * If no timeframe bounds are specified, the response will default to the current - * billing period for the customer's subscription. For subscriptions that have - * ended, this will be the billing period when they were last active. If the - * subscription starts or ends within the timeframe, the response will only include - * windows where the subscription is active. + * For an active subscription, both timeframes should be specified in the request. + * If a subscription starts or ends within the timeframe, the response will only + * include windows where the subscription is active. If a subscription has ended, + * no timeframe bounds need to be specified and the response will default to the + * billing period when the subscription was last active. * * As noted above, `timeframe_start` for a given cumulative datapoint is always the * beginning of the billing period, and `timeframe_end` is incremented one day at a diff --git a/src/resources/events/backfills.ts b/src/resources/events/backfills.ts index 573f04c..5234725 100644 --- a/src/resources/events/backfills.ts +++ b/src/resources/events/backfills.ts @@ -33,6 +33,10 @@ export class Backfills extends APIResource { * timeframe will be replaced with the newly ingested events associated with the * backfill. If `false`, newly ingested events will be added to the existing * events. + * + * If a `customer_id` or `external_customer_id` is specified, the backfill will + * only affect events for that customer. If neither is specified, the backfill will + * affect all customers. */ create(body: BackfillCreateParams, options?: Core.RequestOptions): Core.APIPromise { return this._client.post('/events/backfills', { body, ...options }); diff --git a/src/resources/events/events.ts b/src/resources/events/events.ts index dd125d1..77e71b6 100644 --- a/src/resources/events/events.ts +++ b/src/resources/events/events.ts @@ -241,7 +241,9 @@ export class Events extends APIResource { * Orb's idempotency guarantees allow you to implement safe retry logic in the * event of network or machine failures, ensuring data fidelity. Each event in the * request payload is associated with an idempotency key, and Orb guarantees that a - * single idempotency key will be successfully ingested at most once. + * single idempotency key will be successfully ingested at most once. Note that + * when Orb encounters events with duplicate idempotency keys and differing event + * bodies in a batch of events, the entire batch will be rejected. * * - Successful responses return a 200 HTTP status code. The response contains * information about previously processed events. From 1afa7defea4a549657dded707b77208ae2b3befa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 18:57:14 +0000 Subject: [PATCH 2/4] chore: rebuild project due to oas spec rename (#196) --- .github/workflows/ci.yml | 3 +- .stats.yml | 4 +- api.md | 5 +- src/index.ts | 3 - src/resources/alerts.ts | 130 +---------------------------- src/resources/index.ts | 3 - tests/api-resources/alerts.test.ts | 39 --------- 7 files changed, 9 insertions(+), 178 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d629abb..f6b6073 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: lint: name: lint runs-on: ubuntu-latest - if: github.repository == 'orbcorp/orb-node' + steps: - uses: actions/checkout@v4 @@ -31,7 +31,6 @@ jobs: test: name: test runs-on: ubuntu-latest - if: github.repository == 'orbcorp/orb-node' steps: - uses: actions/checkout@v4 diff --git a/.stats.yml b/.stats.yml index e1458a6..76f4098 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ -configured_endpoints: 90 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb-0b1c2d4534e85da8966d80448ccc6bf4db184f0d5642478af14ba4c9eeadafed.yml +configured_endpoints: 89 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-762f50aa6ea13f42e719339aa5cb31233984499720a7be832182357f949927a1.yml diff --git a/api.md b/api.md index da4e092..cda2718 100644 --- a/api.md +++ b/api.md @@ -312,7 +312,6 @@ Methods: - client.alerts.list({ ...params }) -> AlertsPage - client.alerts.createForCustomer(customerId, { ...params }) -> Alert - client.alerts.createForExternalCustomer(externalCustomerId, { ...params }) -> Alert -- client.alerts.createForPlan(planId, { ...params }) -> Alert - client.alerts.createForSubscription(subscriptionId, { ...params }) -> Alert -- client.alerts.disable(alertConfigurationId, { ...params }) -> Alert -- client.alerts.enable(alertConfigurationId, { ...params }) -> Alert +- client.alerts.disable(alertConfigurationId) -> Alert +- client.alerts.enable(alertConfigurationId) -> Alert diff --git a/src/index.ts b/src/index.ts index a04c495..4d8ead9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -333,10 +333,7 @@ export namespace Orb { export import AlertListParams = API.AlertListParams; export import AlertCreateForCustomerParams = API.AlertCreateForCustomerParams; export import AlertCreateForExternalCustomerParams = API.AlertCreateForExternalCustomerParams; - export import AlertCreateForPlanParams = API.AlertCreateForPlanParams; export import AlertCreateForSubscriptionParams = API.AlertCreateForSubscriptionParams; - export import AlertDisableParams = API.AlertDisableParams; - export import AlertEnableParams = API.AlertEnableParams; export import BillingCycleRelativeDate = API.BillingCycleRelativeDate; export import Discount = API.Discount; diff --git a/src/resources/alerts.ts b/src/resources/alerts.ts index 3675f09..ef31536 100644 --- a/src/resources/alerts.ts +++ b/src/resources/alerts.ts @@ -77,29 +77,6 @@ export class Alerts extends APIResource { return this._client.post(`/alerts/external_customer_id/${externalCustomerId}`, { body, ...options }); } - /** - * This endpoint is used to create alerts at the plan level. Plan level alerts are - * automatically propagated to all subscriptions associated with the plan. These - * alerts are scoped to a specific plan version; if no version is specified, the - * active plan version is used. - * - * Plan level alerts can be of two types: `usage_exceeded` or `cost_exceeded`. A - * `usage_exceeded` alert is scoped to a particular metric and is triggered when - * the usage of that metric exceeds predefined thresholds during the current - * billing cycle. A `cost_exceeded` alert is triggered when the total amount due - * during the current billing cycle surpasses predefined thresholds. - * `cost_exceeded` alerts do not include burndown of pre-purchase credits. Each - * plan can have one `cost_exceeded` alert and one `usage_exceeded` alert per - * metric that is a part of the plan. - */ - createForPlan( - planId: string, - body: AlertCreateForPlanParams, - options?: Core.RequestOptions, - ): Core.APIPromise { - return this._client.post(`/alerts/plan_id/${planId}`, { body, ...options }); - } - /** * This endpoint is used to create alerts at the subscription level. * @@ -124,49 +101,15 @@ export class Alerts extends APIResource { /** * This endpoint can be used to disable an alert. */ - disable( - alertConfigurationId: string, - params?: AlertDisableParams, - options?: Core.RequestOptions, - ): Core.APIPromise; - disable(alertConfigurationId: string, options?: Core.RequestOptions): Core.APIPromise; - disable( - alertConfigurationId: string, - params: AlertDisableParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(params)) { - return this.disable(alertConfigurationId, {}, params); - } - const { subscription_id } = params; - return this._client.post(`/alerts/${alertConfigurationId}/disable`, { - query: { subscription_id }, - ...options, - }); + disable(alertConfigurationId: string, options?: Core.RequestOptions): Core.APIPromise { + return this._client.post(`/alerts/${alertConfigurationId}/disable`, options); } /** * This endpoint can be used to enable an alert. */ - enable( - alertConfigurationId: string, - params?: AlertEnableParams, - options?: Core.RequestOptions, - ): Core.APIPromise; - enable(alertConfigurationId: string, options?: Core.RequestOptions): Core.APIPromise; - enable( - alertConfigurationId: string, - params: AlertEnableParams | Core.RequestOptions = {}, - options?: Core.RequestOptions, - ): Core.APIPromise { - if (isRequestOptions(params)) { - return this.enable(alertConfigurationId, {}, params); - } - const { subscription_id } = params; - return this._client.post(`/alerts/${alertConfigurationId}/enable`, { - query: { subscription_id }, - ...options, - }); + enable(alertConfigurationId: string, options?: Core.RequestOptions): Core.APIPromise { + return this._client.post(`/alerts/${alertConfigurationId}/enable`, options); } } @@ -277,16 +220,6 @@ export interface AlertListParams extends PageParams { */ external_customer_id?: string | null; - /** - * Fetch alerts scoped to this plan_id - */ - plan_id?: string | null; - - /** - * If provided alongside plan_id, only the alerts that are scoped to the specified plan_version will be returned. - */ - plan_version?: number | null; - /** * Fetch alerts scoped to this subscription_id */ @@ -357,44 +290,6 @@ export namespace AlertCreateForExternalCustomerParams { } } -export interface AlertCreateForPlanParams { - /** - * The thresholds for the alert. - */ - thresholds: Array; - - /** - * The thresholds that define the values at which the alert will be triggered. - */ - type: string; - - /** - * The metric to track usage for. - */ - metric_id?: string | null; - - /** - * The plan version to create alerts for. If not specified, the default will be the - * plan's active plan version. - */ - plan_version?: number | null; -} - -export namespace AlertCreateForPlanParams { - /** - * Thresholds are used to define the conditions under which an alert will be - * triggered. - */ - export interface Threshold { - /** - * The value at which an alert will fire. For credit balance alerts, the alert will - * fire at or below this value. For usage and cost alerts, the alert will fire at - * or above this value. - */ - value: number; - } -} - export interface AlertCreateForSubscriptionParams { /** * The thresholds for the alert. @@ -427,28 +322,11 @@ export namespace AlertCreateForSubscriptionParams { } } -export interface AlertDisableParams { - /** - * Used to update the status of a plan alert scoped to this subscription_id - */ - subscription_id?: string | null; -} - -export interface AlertEnableParams { - /** - * Used to update the status of a plan alert scoped to this subscription_id - */ - subscription_id?: string | null; -} - export namespace Alerts { export import Alert = AlertsAPI.Alert; export import AlertsPage = AlertsAPI.AlertsPage; export import AlertListParams = AlertsAPI.AlertListParams; export import AlertCreateForCustomerParams = AlertsAPI.AlertCreateForCustomerParams; export import AlertCreateForExternalCustomerParams = AlertsAPI.AlertCreateForExternalCustomerParams; - export import AlertCreateForPlanParams = AlertsAPI.AlertCreateForPlanParams; export import AlertCreateForSubscriptionParams = AlertsAPI.AlertCreateForSubscriptionParams; - export import AlertDisableParams = AlertsAPI.AlertDisableParams; - export import AlertEnableParams = AlertsAPI.AlertEnableParams; } diff --git a/src/resources/index.ts b/src/resources/index.ts index a3ec9fb..7578bfe 100644 --- a/src/resources/index.ts +++ b/src/resources/index.ts @@ -6,10 +6,7 @@ export { AlertListParams, AlertCreateForCustomerParams, AlertCreateForExternalCustomerParams, - AlertCreateForPlanParams, AlertCreateForSubscriptionParams, - AlertDisableParams, - AlertEnableParams, AlertsPage, Alerts, } from './alerts'; diff --git a/tests/api-resources/alerts.test.ts b/tests/api-resources/alerts.test.ts index ce94df5..16e2242 100644 --- a/tests/api-resources/alerts.test.ts +++ b/tests/api-resources/alerts.test.ts @@ -59,8 +59,6 @@ describe('resource alerts', () => { customer_id: 'string', external_customer_id: 'string', limit: 0, - plan_id: 'string', - plan_version: 0, subscription_id: 'string', }, { path: '/_stainless_unknown_path' }, @@ -109,29 +107,6 @@ describe('resource alerts', () => { }); }); - test('createForPlan: only required params', async () => { - const responsePromise = orb.alerts.createForPlan('string', { - thresholds: [{ value: 0 }, { value: 0 }, { value: 0 }], - type: 'string', - }); - const rawResponse = await responsePromise.asResponse(); - expect(rawResponse).toBeInstanceOf(Response); - const response = await responsePromise; - expect(response).not.toBeInstanceOf(Response); - const dataAndResponse = await responsePromise.withResponse(); - expect(dataAndResponse.data).toBe(response); - expect(dataAndResponse.response).toBe(rawResponse); - }); - - test('createForPlan: required and optional params', async () => { - const response = await orb.alerts.createForPlan('string', { - thresholds: [{ value: 0 }, { value: 0 }, { value: 0 }], - type: 'string', - metric_id: 'string', - plan_version: 0, - }); - }); - test('createForSubscription: only required params', async () => { const responsePromise = orb.alerts.createForSubscription('string', { thresholds: [{ value: 0 }, { value: 0 }, { value: 0 }], @@ -172,13 +147,6 @@ describe('resource alerts', () => { ); }); - test('disable: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - orb.alerts.disable('string', { subscription_id: 'string' }, { path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Orb.NotFoundError); - }); - test('enable', async () => { const responsePromise = orb.alerts.enable('string'); const rawResponse = await responsePromise.asResponse(); @@ -196,11 +164,4 @@ describe('resource alerts', () => { Orb.NotFoundError, ); }); - - test('enable: request options and params are passed correctly', async () => { - // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error - await expect( - orb.alerts.enable('string', { subscription_id: 'string' }, { path: '/_stainless_unknown_path' }), - ).rejects.toThrow(Orb.NotFoundError); - }); }); From 66999d9db101bff76d53b47a50d7e32b8d65032e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 19:00:18 +0000 Subject: [PATCH 3/4] fix(api): remove alert parameters and method that aren't supported by the live API (#197) --- .github/workflows/ci.yml | 3 ++- .stats.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6b6073..d629abb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: lint: name: lint runs-on: ubuntu-latest - + if: github.repository == 'orbcorp/orb-node' steps: - uses: actions/checkout@v4 @@ -31,6 +31,7 @@ jobs: test: name: test runs-on: ubuntu-latest + if: github.repository == 'orbcorp/orb-node' steps: - uses: actions/checkout@v4 diff --git a/.stats.yml b/.stats.yml index 76f4098..73e6990 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 89 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-762f50aa6ea13f42e719339aa5cb31233984499720a7be832182357f949927a1.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb-762f50aa6ea13f42e719339aa5cb31233984499720a7be832182357f949927a1.yml From 75c045840bce6b0b1715d2dbc8e2504de66cc644 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 19:00:36 +0000 Subject: [PATCH 4/4] release: 2.6.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 14 ++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 69e82f1..8ff2f5e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.6.0" + ".": "2.6.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b37d1c..4eda91e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 2.6.1 (2024-05-10) + +Full Changelog: [v2.6.0...v2.6.1](https://github.com/orbcorp/orb-node/compare/v2.6.0...v2.6.1) + +### Bug Fixes + +* **api:** remove alert parameters and method that aren't supported by the live API ([#197](https://github.com/orbcorp/orb-node/issues/197)) ([66999d9](https://github.com/orbcorp/orb-node/commit/66999d9db101bff76d53b47a50d7e32b8d65032e)) + + +### Chores + +* **docs:** improve alert endpoints descriptions ([#194](https://github.com/orbcorp/orb-node/issues/194)) ([23ee7ed](https://github.com/orbcorp/orb-node/commit/23ee7ed33bc17e63be63dff60d74ad19c957ce95)) +* rebuild project due to oas spec rename ([#196](https://github.com/orbcorp/orb-node/issues/196)) ([1afa7de](https://github.com/orbcorp/orb-node/commit/1afa7defea4a549657dded707b77208ae2b3befa)) + ## 2.6.0 (2024-05-09) Full Changelog: [v2.5.1...v2.6.0](https://github.com/orbcorp/orb-node/compare/v2.5.1...v2.6.0) diff --git a/package.json b/package.json index 6c92cec..cad1299 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orb-billing", - "version": "2.6.0", + "version": "2.6.1", "description": "The official TypeScript library for the Orb API", "author": "Orb ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index cc6e4a8..f9d065f 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '2.6.0'; // x-release-please-version +export const VERSION = '2.6.1'; // x-release-please-version