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
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,31 @@ jobs:
- name: Run lints
run: ./scripts/lint

upload:
build:
if: github.repository == 'stainless-sdks/orb-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
timeout-minutes: 10
name: upload
name: build
permissions:
contents: read
id-token: write
runs-on: depot-ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

- name: Install dependencies
run: rye sync --all-features

- name: Run build
run: rye build

- name: Get GitHub OIDC Token
id: github-oidc
uses: actions/github-script@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 @@
{
".": "4.2.2"
".": "4.3.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: 116
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-ff68c7ee2669d61716781d01b93f34186fb7a19ff4ad6fc2c0b8f9f4d9c4a588.yml
openapi_spec_hash: 17bdc6b1ca2531dc884c6d156f404f0c
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d4db2933d3d6b8c855e3351dcce658777ec9a413eb78f176b2e63b1e99fddf68.yml
openapi_spec_hash: 858adc7f2e0c8c631ef733dfd8f9ea0a
config_hash: 3c3524be9607afb24d2139ce26ce5389
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 4.3.0 (2025-07-04)

Full Changelog: [v4.2.2...v4.3.0](https://github.com/orbcorp/orb-python/compare/v4.2.2...v4.3.0)

### Features

* **api:** api update ([0b3de08](https://github.com/orbcorp/orb-python/commit/0b3de08c2025ef8eb906445dcf00a7e807ad5efa))


### Chores

* **ci:** change upload type ([5faccd9](https://github.com/orbcorp/orb-python/commit/5faccd99a99d35c4f2a2a9de676b97f971f31cb1))

## 4.2.2 (2025-06-29)

Full Changelog: [v4.2.1...v4.2.2](https://github.com/orbcorp/orb-python/compare/v4.2.1...v4.2.2)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "orb-billing"
version = "4.2.2"
version = "4.3.0"
description = "The official Python library for the orb API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
12 changes: 7 additions & 5 deletions scripts/utils/upload-artifact.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env bash
set -exuo pipefail

RESPONSE=$(curl -X POST "$URL" \
FILENAME=$(basename dist/*.whl)

RESPONSE=$(curl -X POST "$URL?filename=$FILENAME" \
-H "Authorization: Bearer $AUTH" \
-H "Content-Type: application/json")

Expand All @@ -12,13 +14,13 @@ if [[ "$SIGNED_URL" == "null" ]]; then
exit 1
fi

UPLOAD_RESPONSE=$(tar -cz . | curl -v -X PUT \
-H "Content-Type: application/gzip" \
--data-binary @- "$SIGNED_URL" 2>&1)
UPLOAD_RESPONSE=$(curl -v -X PUT \
-H "Content-Type: binary/octet-stream" \
--data-binary "@dist/$FILENAME" "$SIGNED_URL" 2>&1)

if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/orb-python/$SHA'\033[0m"
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/orb-python/$SHA/$FILENAME'\033[0m"
else
echo -e "\033[31mFailed to upload artifact.\033[0m"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion src/orb/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "orb"
__version__ = "4.2.2" # x-release-please-version
__version__ = "4.3.0" # x-release-please-version
2 changes: 1 addition & 1 deletion src/orb/types/shared/new_allocation_price.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class NewAllocationPrice(BaseModel):
amount: str
"""An amount of the currency to allocate to the customer at the specified cadence."""

cadence: Literal["one_time", "monthly", "quarterly", "semi_annual", "annual", "custom"]
cadence: Literal["one_time", "monthly", "quarterly", "semi_annual", "annual"]
"""The cadence at which to allocate the amount to the customer."""

currency: str
Expand Down
2 changes: 1 addition & 1 deletion src/orb/types/shared_params/new_allocation_price.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class NewAllocationPrice(TypedDict, total=False):
amount: Required[str]
"""An amount of the currency to allocate to the customer at the specified cadence."""

cadence: Required[Literal["one_time", "monthly", "quarterly", "semi_annual", "annual", "custom"]]
cadence: Required[Literal["one_time", "monthly", "quarterly", "semi_annual", "annual"]]
"""The cadence at which to allocate the amount to the customer."""

currency: Required[str]
Expand Down