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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.16.0"
".": "0.17.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 35
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/ark%2Fark-39b91ffd46b6e41924f8465ffaaff6ba3c200a68daa513d4f1eb1e4b29aba78f.yml
openapi_spec_hash: 542dd50007316698c83e8b0bdd5e40e2
config_hash: 77a3908ee910a8019f5831d3a3d53c18
configured_endpoints: 40
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/ark%2Fark-628db0b9b7c9da594fa6ad6ce9d95f4ecad92c9e0313f2f1f9977216494dbc5d.yml
openapi_spec_hash: 1773341fbff31b84d2cbcdb37eaad877
config_hash: b090c2bdd7a719c56c825edddc587737
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 0.17.0 (2026-02-03)

Full Changelog: [v0.16.0...v0.17.0](https://github.com/ArkHQ-io/ark-python/compare/v0.16.0...v0.17.0)

### Features

* **api:** Add Tenants ([8ba85ac](https://github.com/ArkHQ-io/ark-python/commit/8ba85ac06c8e1d803f2cf5077a1ff99d4655e178))
* **api:** api update ([eed2900](https://github.com/ArkHQ-io/ark-python/commit/eed2900c69e717e346fe6d5d10d95be29771e233))
* **api:** manual updates ([f355920](https://github.com/ArkHQ-io/ark-python/commit/f355920e2008cf0d5990b15c7292483279ee671c))
* **api:** manual updates ([0e5c6fe](https://github.com/ArkHQ-io/ark-python/commit/0e5c6fe1479ca123629e23c842fc3cdf231876e5))
* **api:** manual updates ([e310cbd](https://github.com/ArkHQ-io/ark-python/commit/e310cbdd0ce739190f1094b6ea1c5dd539eb91c4))

## 0.16.0 (2026-01-30)

Full Changelog: [v0.15.0...v0.16.0](https://github.com/ArkHQ-io/ark-python/compare/v0.15.0...v0.16.0)
Expand Down
22 changes: 22 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,25 @@ from ark.types import UsageRetrieveResponse
Methods:

- <code title="get /usage">client.usage.<a href="./src/ark/resources/usage.py">retrieve</a>() -> <a href="./src/ark/types/usage_retrieve_response.py">UsageRetrieveResponse</a></code>

# Tenants

Types:

```python
from ark.types import (
Tenant,
TenantCreateResponse,
TenantRetrieveResponse,
TenantUpdateResponse,
TenantDeleteResponse,
)
```

Methods:

- <code title="post /tenants">client.tenants.<a href="./src/ark/resources/tenants.py">create</a>(\*\*<a href="src/ark/types/tenant_create_params.py">params</a>) -> <a href="./src/ark/types/tenant_create_response.py">TenantCreateResponse</a></code>
- <code title="get /tenants/{tenantId}">client.tenants.<a href="./src/ark/resources/tenants.py">retrieve</a>(tenant_id) -> <a href="./src/ark/types/tenant_retrieve_response.py">TenantRetrieveResponse</a></code>
- <code title="patch /tenants/{tenantId}">client.tenants.<a href="./src/ark/resources/tenants.py">update</a>(tenant_id, \*\*<a href="src/ark/types/tenant_update_params.py">params</a>) -> <a href="./src/ark/types/tenant_update_response.py">TenantUpdateResponse</a></code>
- <code title="get /tenants">client.tenants.<a href="./src/ark/resources/tenants.py">list</a>(\*\*<a href="src/ark/types/tenant_list_params.py">params</a>) -> <a href="./src/ark/types/tenant.py">SyncPageNumberPagination[Tenant]</a></code>
- <code title="delete /tenants/{tenantId}">client.tenants.<a href="./src/ark/resources/tenants.py">delete</a>(tenant_id) -> <a href="./src/ark/types/tenant_delete_response.py">TenantDeleteResponse</a></code>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "ark-email"
version = "0.16.0"
version = "0.17.0"
description = "The official Python library for the ark API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
39 changes: 38 additions & 1 deletion src/ark/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@
)

if TYPE_CHECKING:
from .resources import logs, usage, emails, domains, tracking, webhooks, suppressions
from .resources import logs, usage, emails, domains, tenants, tracking, webhooks, suppressions
from .resources.logs import LogsResource, AsyncLogsResource
from .resources.usage import UsageResource, AsyncUsageResource
from .resources.emails import EmailsResource, AsyncEmailsResource
from .resources.domains import DomainsResource, AsyncDomainsResource
from .resources.tenants import TenantsResource, AsyncTenantsResource
from .resources.tracking import TrackingResource, AsyncTrackingResource
from .resources.webhooks import WebhooksResource, AsyncWebhooksResource
from .resources.suppressions import SuppressionsResource, AsyncSuppressionsResource
Expand Down Expand Up @@ -140,6 +141,12 @@ def usage(self) -> UsageResource:

return UsageResource(self)

@cached_property
def tenants(self) -> TenantsResource:
from .resources.tenants import TenantsResource

return TenantsResource(self)

@cached_property
def with_raw_response(self) -> ArkWithRawResponse:
return ArkWithRawResponse(self)
Expand Down Expand Up @@ -350,6 +357,12 @@ def usage(self) -> AsyncUsageResource:

return AsyncUsageResource(self)

@cached_property
def tenants(self) -> AsyncTenantsResource:
from .resources.tenants import AsyncTenantsResource

return AsyncTenantsResource(self)

@cached_property
def with_raw_response(self) -> AsyncArkWithRawResponse:
return AsyncArkWithRawResponse(self)
Expand Down Expand Up @@ -511,6 +524,12 @@ def usage(self) -> usage.UsageResourceWithRawResponse:

return UsageResourceWithRawResponse(self._client.usage)

@cached_property
def tenants(self) -> tenants.TenantsResourceWithRawResponse:
from .resources.tenants import TenantsResourceWithRawResponse

return TenantsResourceWithRawResponse(self._client.tenants)


class AsyncArkWithRawResponse:
_client: AsyncArk
Expand Down Expand Up @@ -560,6 +579,12 @@ def usage(self) -> usage.AsyncUsageResourceWithRawResponse:

return AsyncUsageResourceWithRawResponse(self._client.usage)

@cached_property
def tenants(self) -> tenants.AsyncTenantsResourceWithRawResponse:
from .resources.tenants import AsyncTenantsResourceWithRawResponse

return AsyncTenantsResourceWithRawResponse(self._client.tenants)


class ArkWithStreamedResponse:
_client: Ark
Expand Down Expand Up @@ -609,6 +634,12 @@ def usage(self) -> usage.UsageResourceWithStreamingResponse:

return UsageResourceWithStreamingResponse(self._client.usage)

@cached_property
def tenants(self) -> tenants.TenantsResourceWithStreamingResponse:
from .resources.tenants import TenantsResourceWithStreamingResponse

return TenantsResourceWithStreamingResponse(self._client.tenants)


class AsyncArkWithStreamedResponse:
_client: AsyncArk
Expand Down Expand Up @@ -658,6 +689,12 @@ def usage(self) -> usage.AsyncUsageResourceWithStreamingResponse:

return AsyncUsageResourceWithStreamingResponse(self._client.usage)

@cached_property
def tenants(self) -> tenants.AsyncTenantsResourceWithStreamingResponse:
from .resources.tenants import AsyncTenantsResourceWithStreamingResponse

return AsyncTenantsResourceWithStreamingResponse(self._client.tenants)


Client = Ark

Expand Down
2 changes: 1 addition & 1 deletion src/ark/_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__ = "ark"
__version__ = "0.16.0" # x-release-please-version
__version__ = "0.17.0" # x-release-please-version
14 changes: 14 additions & 0 deletions src/ark/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
DomainsResourceWithStreamingResponse,
AsyncDomainsResourceWithStreamingResponse,
)
from .tenants import (
TenantsResource,
AsyncTenantsResource,
TenantsResourceWithRawResponse,
AsyncTenantsResourceWithRawResponse,
TenantsResourceWithStreamingResponse,
AsyncTenantsResourceWithStreamingResponse,
)
from .tracking import (
TrackingResource,
AsyncTrackingResource,
Expand Down Expand Up @@ -100,4 +108,10 @@
"AsyncUsageResourceWithRawResponse",
"UsageResourceWithStreamingResponse",
"AsyncUsageResourceWithStreamingResponse",
"TenantsResource",
"AsyncTenantsResource",
"TenantsResourceWithRawResponse",
"AsyncTenantsResourceWithRawResponse",
"TenantsResourceWithStreamingResponse",
"AsyncTenantsResourceWithStreamingResponse",
]
Loading
Loading