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
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/orb-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: |-
github.repository == 'stainless-sdks/orb-go' &&
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) &&
(github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v6

Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.67.0"
".": "1.68.0"
}
4 changes: 2 additions & 2 deletions .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-17c43dab26af75e1b9f7e61ac8da1219cea65c7d0666d98686b71a60183e458d.yml
openapi_spec_hash: bbbd86881508bb69904eacdbce1e52b6
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-1ca41c4b1d872cf2a198c8cf5edeeeddac012259a7cf211b102bf137c05b8240.yml
openapi_spec_hash: 955066d4865fc42440cd81e40f5f79cd
config_hash: c01c1191b1cd696c7ca855ff6d28a8df
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 1.68.0 (2026-04-03)

Full Changelog: [v1.67.0...v1.68.0](https://github.com/orbcorp/orb-go/compare/v1.67.0...v1.68.0)

### Features

* **api:** api update ([db5a16b](https://github.com/orbcorp/orb-go/commit/db5a16b173854459dcb344ca79e7a97c479a8812))


### Chores

* **ci:** support opting out of skipping builds on metadata-only commits ([9614487](https://github.com/orbcorp/orb-go/commit/9614487789943c5054f9a4eed1b7839d1dac220d))
* **tests:** bump steady to v0.20.1 ([f07c97e](https://github.com/orbcorp/orb-go/commit/f07c97e7799fa07429bc7c3f549a60f549f11aa5))
* **tests:** bump steady to v0.20.2 ([8363a10](https://github.com/orbcorp/orb-go/commit/8363a10eaf419374f6a58e3dcae96d2b53cf769f))

## 1.67.0 (2026-03-26)

Full Changelog: [v1.66.1...v1.67.0](https://github.com/orbcorp/orb-go/compare/v1.66.1...v1.67.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/orbcorp/orb-go@v1.67.0'
go get -u 'github.com/orbcorp/orb-go@v1.68.0'
```

<!-- x-release-please-end -->
Expand Down
6 changes: 2 additions & 4 deletions coupon.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ func (r *CouponService) New(ctx context.Context, body CouponNewParams, opts ...o
//
// The list of coupons is ordered starting from the most recently created coupon.
// The response also includes `pagination_metadata`, which lets the caller retrieve
// the next page of results if they exist. More information about pagination can be
// found in the Pagination-metadata schema.
// the next page of results if they exist.
func (r *CouponService) List(ctx context.Context, query CouponListParams, opts ...option.RequestOption) (res *pagination.Page[Coupon], err error) {
var raw *http.Response
opts = slices.Concat(r.Options, opts)
Expand All @@ -90,8 +89,7 @@ func (r *CouponService) List(ctx context.Context, query CouponListParams, opts .
//
// The list of coupons is ordered starting from the most recently created coupon.
// The response also includes `pagination_metadata`, which lets the caller retrieve
// the next page of results if they exist. More information about pagination can be
// found in the Pagination-metadata schema.
// the next page of results if they exist.
func (r *CouponService) ListAutoPaging(ctx context.Context, query CouponListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Coupon] {
return pagination.NewPageAutoPager(r.List(ctx, query, opts...))
}
Expand Down
10 changes: 4 additions & 6 deletions eventbackfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func NewEventBackfillService(opts ...option.RequestOption) (r *EventBackfillServ
// 3 steps:
//
// 1. Create the backfill, specifying its parameters.
// 2. [Ingest](ingest) usage events, referencing the backfill (query parameter
// `backfill_id`).
// 2. [Ingest](/api-reference/event/ingest-events) usage events, referencing the
// backfill (query parameter `backfill_id`).
// 3. [Close](close-backfill) the backfill, propagating the update in past usage
// throughout Orb.
//
Expand Down Expand Up @@ -94,8 +94,7 @@ func (r *EventBackfillService) New(ctx context.Context, body EventBackfillNewPar
// The list of backfills is ordered starting from the most recently created
// backfill. The response also includes
// [`pagination_metadata`](/api-reference/pagination), which lets the caller
// retrieve the next page of results if they exist. More information about
// pagination can be found in the [Pagination-metadata schema](pagination).
// retrieve the next page of results if they exist.
func (r *EventBackfillService) List(ctx context.Context, query EventBackfillListParams, opts ...option.RequestOption) (res *pagination.Page[EventBackfillListResponse], err error) {
var raw *http.Response
opts = slices.Concat(r.Options, opts)
Expand All @@ -118,8 +117,7 @@ func (r *EventBackfillService) List(ctx context.Context, query EventBackfillList
// The list of backfills is ordered starting from the most recently created
// backfill. The response also includes
// [`pagination_metadata`](/api-reference/pagination), which lets the caller
// retrieve the next page of results if they exist. More information about
// pagination can be found in the [Pagination-metadata schema](pagination).
// retrieve the next page of results if they exist.
func (r *EventBackfillService) ListAutoPaging(ctx context.Context, query EventBackfillListParams, opts ...option.RequestOption) *pagination.PageAutoPager[EventBackfillListResponse] {
return pagination.NewPageAutoPager(r.List(ctx, query, opts...))
}
Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package internal

const PackageVersion = "1.67.0" // x-release-please-version
const PackageVersion = "1.68.0" // x-release-please-version
6 changes: 3 additions & 3 deletions scripts/mock
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ echo "==> Starting mock server with URL ${URL}"
# Run steady mock on the given spec
if [ "$1" == "--daemon" ]; then
# Pre-install the package so the download doesn't eat into the startup timeout
npm exec --package=@stdy/cli@0.19.7 -- steady --version
npm exec --package=@stdy/cli@0.20.2 -- steady --version

npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-query-array-format=brackets --validator-form-array-format=brackets --validator-query-object-format=brackets --validator-form-object-format=brackets "$URL" &> .stdy.log &
npm exec --package=@stdy/cli@0.20.2 -- steady --host 127.0.0.1 -p 4010 --validator-query-array-format=brackets --validator-form-array-format=brackets --validator-query-object-format=brackets --validator-form-object-format=brackets "$URL" &> .stdy.log &

# Wait for server to come online via health endpoint (max 30s)
echo -n "Waiting for server"
Expand All @@ -48,5 +48,5 @@ if [ "$1" == "--daemon" ]; then

echo
else
npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-query-array-format=brackets --validator-form-array-format=brackets --validator-query-object-format=brackets --validator-form-object-format=brackets "$URL"
npm exec --package=@stdy/cli@0.20.2 -- steady --host 127.0.0.1 -p 4010 --validator-query-array-format=brackets --validator-form-array-format=brackets --validator-query-object-format=brackets --validator-form-object-format=brackets "$URL"
fi
2 changes: 1 addition & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ elif ! steady_is_running ; then
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the steady command:"
echo
echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.19.7 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-query-array-format=brackets --validator-form-array-format=brackets --validator-query-object-format=brackets --validator-form-object-format=brackets${NC}"
echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.20.2 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-query-array-format=brackets --validator-form-array-format=brackets --validator-query-object-format=brackets --validator-form-object-format=brackets${NC}"
echo

exit 1
Expand Down
8 changes: 4 additions & 4 deletions subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,10 +466,10 @@ func (r *SubscriptionService) Fetch(ctx context.Context, subscriptionID string,
// metric, in usage units rather than a currency).
//
// The semantics of this endpoint exactly mirror those of
// [fetching a customer's costs](fetch-customer-costs). Use this endpoint to limit
// your analysis of costs to a specific subscription for the customer (e.g. to
// de-aggregate costs when a customer's subscription has started and stopped on the
// same day).
// [fetching a customer's costs](/api-reference/customer/fetch-customer-costs). Use
// this endpoint to limit your analysis of costs to a specific subscription for the
// customer (e.g. to de-aggregate costs when a customer's subscription has started
// and stopped on the same day).
func (r *SubscriptionService) FetchCosts(ctx context.Context, subscriptionID string, query SubscriptionFetchCostsParams, opts ...option.RequestOption) (res *SubscriptionFetchCostsResponse, err error) {
opts = slices.Concat(r.Options, opts)
if subscriptionID == "" {
Expand Down
Loading