Skip to content

chore(internal): codegen related update #564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 1, 2025
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
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Reporting Security Issues

This SDK is generated by [Stainless Software Inc](http://stainlessapi.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.

To report a security issue, please contact the Stainless team at security@stainlessapi.com.
To report a security issue, please contact the Stainless team at security@stainless.com.

## Responsible Disclosure

Expand Down
4 changes: 2 additions & 2 deletions src/orb/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(
# part of our public interface in the future.
_strict_response_validation: bool = False,
) -> None:
"""Construct a new synchronous orb client instance.
"""Construct a new synchronous Orb client instance.

This automatically infers the following arguments from their corresponding environment variables if they are not provided:
- `api_key` from `ORB_API_KEY`
Expand Down Expand Up @@ -343,7 +343,7 @@ def __init__(
# part of our public interface in the future.
_strict_response_validation: bool = False,
) -> None:
"""Construct a new async orb client instance.
"""Construct a new async AsyncOrb client instance.

This automatically infers the following arguments from their corresponding environment variables if they are not provided:
- `api_key` from `ORB_API_KEY`
Expand Down
24 changes: 12 additions & 12 deletions tests/api_resources/test_customers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ class TestCustomers:
@parametrize
def test_method_create(self, client: Orb) -> None:
customer = client.customers.create(
email="dev@stainlessapi.com",
email="dev@stainless.com",
name="x",
)
assert_matches_type(Customer, customer, path=["response"])

@parametrize
def test_method_create_with_all_params(self, client: Orb) -> None:
customer = client.customers.create(
email="dev@stainlessapi.com",
email="dev@stainless.com",
name="x",
accounting_sync_configuration={
"accounting_providers": [
Expand Down Expand Up @@ -89,7 +89,7 @@ def test_method_create_with_all_params(self, client: Orb) -> None:
@parametrize
def test_raw_response_create(self, client: Orb) -> None:
response = client.customers.with_raw_response.create(
email="dev@stainlessapi.com",
email="dev@stainless.com",
name="x",
)

Expand All @@ -101,7 +101,7 @@ def test_raw_response_create(self, client: Orb) -> None:
@parametrize
def test_streaming_response_create(self, client: Orb) -> None:
with client.customers.with_streaming_response.create(
email="dev@stainlessapi.com",
email="dev@stainless.com",
name="x",
) as response:
assert not response.is_closed
Expand Down Expand Up @@ -143,7 +143,7 @@ def test_method_update_with_all_params(self, client: Orb) -> None:
"state": "state",
},
currency="currency",
email="dev@stainlessapi.com",
email="dev@stainless.com",
email_delivery=True,
external_customer_id="external_customer_id",
hierarchy={
Expand Down Expand Up @@ -465,7 +465,7 @@ def test_method_update_by_external_id_with_all_params(self, client: Orb) -> None
"state": "state",
},
currency="currency",
email="dev@stainlessapi.com",
email="dev@stainless.com",
email_delivery=True,
external_customer_id="external_customer_id",
hierarchy={
Expand Down Expand Up @@ -537,15 +537,15 @@ class TestAsyncCustomers:
@parametrize
async def test_method_create(self, async_client: AsyncOrb) -> None:
customer = await async_client.customers.create(
email="dev@stainlessapi.com",
email="dev@stainless.com",
name="x",
)
assert_matches_type(Customer, customer, path=["response"])

@parametrize
async def test_method_create_with_all_params(self, async_client: AsyncOrb) -> None:
customer = await async_client.customers.create(
email="dev@stainlessapi.com",
email="dev@stainless.com",
name="x",
accounting_sync_configuration={
"accounting_providers": [
Expand Down Expand Up @@ -602,7 +602,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOrb) -> No
@parametrize
async def test_raw_response_create(self, async_client: AsyncOrb) -> None:
response = await async_client.customers.with_raw_response.create(
email="dev@stainlessapi.com",
email="dev@stainless.com",
name="x",
)

Expand All @@ -614,7 +614,7 @@ async def test_raw_response_create(self, async_client: AsyncOrb) -> None:
@parametrize
async def test_streaming_response_create(self, async_client: AsyncOrb) -> None:
async with async_client.customers.with_streaming_response.create(
email="dev@stainlessapi.com",
email="dev@stainless.com",
name="x",
) as response:
assert not response.is_closed
Expand Down Expand Up @@ -656,7 +656,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncOrb) -> No
"state": "state",
},
currency="currency",
email="dev@stainlessapi.com",
email="dev@stainless.com",
email_delivery=True,
external_customer_id="external_customer_id",
hierarchy={
Expand Down Expand Up @@ -990,7 +990,7 @@ async def test_method_update_by_external_id_with_all_params(self, async_client:
"state": "state",
},
currency="currency",
email="dev@stainlessapi.com",
email="dev@stainless.com",
email_delivery=True,
external_customer_id="external_customer_id",
hierarchy={
Expand Down
16 changes: 8 additions & 8 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:

respx_mock.post("/customers").mock(side_effect=retry_handler)

response = client.customers.with_raw_response.create(email="dev@stainlessapi.com", name="x")
response = client.customers.with_raw_response.create(email="dev@stainless.com", name="x")

assert response.retries_taken == failures_before_success
assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success
Expand All @@ -816,7 +816,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
respx_mock.post("/customers").mock(side_effect=retry_handler)

response = client.customers.with_raw_response.create(
email="dev@stainlessapi.com", name="x", extra_headers={"x-stainless-retry-count": Omit()}
email="dev@stainless.com", name="x", extra_headers={"x-stainless-retry-count": Omit()}
)

assert len(response.http_request.headers.get_list("x-stainless-retry-count")) == 0
Expand All @@ -841,7 +841,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
respx_mock.post("/customers").mock(side_effect=retry_handler)

response = client.customers.with_raw_response.create(
email="dev@stainlessapi.com", name="x", extra_headers={"x-stainless-retry-count": "42"}
email="dev@stainless.com", name="x", extra_headers={"x-stainless-retry-count": "42"}
)

assert response.http_request.headers.get("x-stainless-retry-count") == "42"
Expand All @@ -865,7 +865,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:

respx_mock.post("/customers").mock(side_effect=retry_handler)

with client.customers.with_streaming_response.create(email="dev@stainlessapi.com", name="x") as response:
with client.customers.with_streaming_response.create(email="dev@stainless.com", name="x") as response:
assert response.retries_taken == failures_before_success
assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success

Expand Down Expand Up @@ -1626,7 +1626,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:

respx_mock.post("/customers").mock(side_effect=retry_handler)

response = await client.customers.with_raw_response.create(email="dev@stainlessapi.com", name="x")
response = await client.customers.with_raw_response.create(email="dev@stainless.com", name="x")

assert response.retries_taken == failures_before_success
assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success
Expand All @@ -1652,7 +1652,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
respx_mock.post("/customers").mock(side_effect=retry_handler)

response = await client.customers.with_raw_response.create(
email="dev@stainlessapi.com", name="x", extra_headers={"x-stainless-retry-count": Omit()}
email="dev@stainless.com", name="x", extra_headers={"x-stainless-retry-count": Omit()}
)

assert len(response.http_request.headers.get_list("x-stainless-retry-count")) == 0
Expand All @@ -1678,7 +1678,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
respx_mock.post("/customers").mock(side_effect=retry_handler)

response = await client.customers.with_raw_response.create(
email="dev@stainlessapi.com", name="x", extra_headers={"x-stainless-retry-count": "42"}
email="dev@stainless.com", name="x", extra_headers={"x-stainless-retry-count": "42"}
)

assert response.http_request.headers.get("x-stainless-retry-count") == "42"
Expand All @@ -1703,7 +1703,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:

respx_mock.post("/customers").mock(side_effect=retry_handler)

async with client.customers.with_streaming_response.create(email="dev@stainlessapi.com", name="x") as response:
async with client.customers.with_streaming_response.create(email="dev@stainless.com", name="x") as response:
assert response.retries_taken == failures_before_success
assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success

Expand Down