Skip to content

Commit f9591aa

Browse files
authored
Merge pull request #20 from ArkHQ-io/release-please--branches--main--changes--next
release: 0.17.0
2 parents 18d5db3 + c91786e commit f9591aa

21 files changed

Lines changed: 1441 additions & 12 deletions

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.16.0"
2+
".": "0.17.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 35
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/ark%2Fark-39b91ffd46b6e41924f8465ffaaff6ba3c200a68daa513d4f1eb1e4b29aba78f.yml
3-
openapi_spec_hash: 542dd50007316698c83e8b0bdd5e40e2
4-
config_hash: 77a3908ee910a8019f5831d3a3d53c18
1+
configured_endpoints: 40
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/ark%2Fark-628db0b9b7c9da594fa6ad6ce9d95f4ecad92c9e0313f2f1f9977216494dbc5d.yml
3+
openapi_spec_hash: 1773341fbff31b84d2cbcdb37eaad877
4+
config_hash: b090c2bdd7a719c56c825edddc587737

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 0.17.0 (2026-02-03)
4+
5+
Full Changelog: [v0.16.0...v0.17.0](https://github.com/ArkHQ-io/ark-python/compare/v0.16.0...v0.17.0)
6+
7+
### Features
8+
9+
* **api:** Add Tenants ([8ba85ac](https://github.com/ArkHQ-io/ark-python/commit/8ba85ac06c8e1d803f2cf5077a1ff99d4655e178))
10+
* **api:** api update ([eed2900](https://github.com/ArkHQ-io/ark-python/commit/eed2900c69e717e346fe6d5d10d95be29771e233))
11+
* **api:** manual updates ([f355920](https://github.com/ArkHQ-io/ark-python/commit/f355920e2008cf0d5990b15c7292483279ee671c))
12+
* **api:** manual updates ([0e5c6fe](https://github.com/ArkHQ-io/ark-python/commit/0e5c6fe1479ca123629e23c842fc3cdf231876e5))
13+
* **api:** manual updates ([e310cbd](https://github.com/ArkHQ-io/ark-python/commit/e310cbdd0ce739190f1094b6ea1c5dd539eb91c4))
14+
315
## 0.16.0 (2026-01-30)
416

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

api.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,25 @@ from ark.types import UsageRetrieveResponse
154154
Methods:
155155

156156
- <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>
157+
158+
# Tenants
159+
160+
Types:
161+
162+
```python
163+
from ark.types import (
164+
Tenant,
165+
TenantCreateResponse,
166+
TenantRetrieveResponse,
167+
TenantUpdateResponse,
168+
TenantDeleteResponse,
169+
)
170+
```
171+
172+
Methods:
173+
174+
- <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>
175+
- <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>
176+
- <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>
177+
- <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>
178+
- <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>

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ark-email"
3-
version = "0.16.0"
3+
version = "0.17.0"
44
description = "The official Python library for the ark API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/ark/_client.py

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@
3131
)
3232

3333
if TYPE_CHECKING:
34-
from .resources import logs, usage, emails, domains, tracking, webhooks, suppressions
34+
from .resources import logs, usage, emails, domains, tenants, tracking, webhooks, suppressions
3535
from .resources.logs import LogsResource, AsyncLogsResource
3636
from .resources.usage import UsageResource, AsyncUsageResource
3737
from .resources.emails import EmailsResource, AsyncEmailsResource
3838
from .resources.domains import DomainsResource, AsyncDomainsResource
39+
from .resources.tenants import TenantsResource, AsyncTenantsResource
3940
from .resources.tracking import TrackingResource, AsyncTrackingResource
4041
from .resources.webhooks import WebhooksResource, AsyncWebhooksResource
4142
from .resources.suppressions import SuppressionsResource, AsyncSuppressionsResource
@@ -140,6 +141,12 @@ def usage(self) -> UsageResource:
140141

141142
return UsageResource(self)
142143

144+
@cached_property
145+
def tenants(self) -> TenantsResource:
146+
from .resources.tenants import TenantsResource
147+
148+
return TenantsResource(self)
149+
143150
@cached_property
144151
def with_raw_response(self) -> ArkWithRawResponse:
145152
return ArkWithRawResponse(self)
@@ -350,6 +357,12 @@ def usage(self) -> AsyncUsageResource:
350357

351358
return AsyncUsageResource(self)
352359

360+
@cached_property
361+
def tenants(self) -> AsyncTenantsResource:
362+
from .resources.tenants import AsyncTenantsResource
363+
364+
return AsyncTenantsResource(self)
365+
353366
@cached_property
354367
def with_raw_response(self) -> AsyncArkWithRawResponse:
355368
return AsyncArkWithRawResponse(self)
@@ -511,6 +524,12 @@ def usage(self) -> usage.UsageResourceWithRawResponse:
511524

512525
return UsageResourceWithRawResponse(self._client.usage)
513526

527+
@cached_property
528+
def tenants(self) -> tenants.TenantsResourceWithRawResponse:
529+
from .resources.tenants import TenantsResourceWithRawResponse
530+
531+
return TenantsResourceWithRawResponse(self._client.tenants)
532+
514533

515534
class AsyncArkWithRawResponse:
516535
_client: AsyncArk
@@ -560,6 +579,12 @@ def usage(self) -> usage.AsyncUsageResourceWithRawResponse:
560579

561580
return AsyncUsageResourceWithRawResponse(self._client.usage)
562581

582+
@cached_property
583+
def tenants(self) -> tenants.AsyncTenantsResourceWithRawResponse:
584+
from .resources.tenants import AsyncTenantsResourceWithRawResponse
585+
586+
return AsyncTenantsResourceWithRawResponse(self._client.tenants)
587+
563588

564589
class ArkWithStreamedResponse:
565590
_client: Ark
@@ -609,6 +634,12 @@ def usage(self) -> usage.UsageResourceWithStreamingResponse:
609634

610635
return UsageResourceWithStreamingResponse(self._client.usage)
611636

637+
@cached_property
638+
def tenants(self) -> tenants.TenantsResourceWithStreamingResponse:
639+
from .resources.tenants import TenantsResourceWithStreamingResponse
640+
641+
return TenantsResourceWithStreamingResponse(self._client.tenants)
642+
612643

613644
class AsyncArkWithStreamedResponse:
614645
_client: AsyncArk
@@ -658,6 +689,12 @@ def usage(self) -> usage.AsyncUsageResourceWithStreamingResponse:
658689

659690
return AsyncUsageResourceWithStreamingResponse(self._client.usage)
660691

692+
@cached_property
693+
def tenants(self) -> tenants.AsyncTenantsResourceWithStreamingResponse:
694+
from .resources.tenants import AsyncTenantsResourceWithStreamingResponse
695+
696+
return AsyncTenantsResourceWithStreamingResponse(self._client.tenants)
697+
661698

662699
Client = Ark
663700

src/ark/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "ark"
4-
__version__ = "0.16.0" # x-release-please-version
4+
__version__ = "0.17.0" # x-release-please-version

src/ark/resources/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
DomainsResourceWithStreamingResponse,
3333
AsyncDomainsResourceWithStreamingResponse,
3434
)
35+
from .tenants import (
36+
TenantsResource,
37+
AsyncTenantsResource,
38+
TenantsResourceWithRawResponse,
39+
AsyncTenantsResourceWithRawResponse,
40+
TenantsResourceWithStreamingResponse,
41+
AsyncTenantsResourceWithStreamingResponse,
42+
)
3543
from .tracking import (
3644
TrackingResource,
3745
AsyncTrackingResource,
@@ -100,4 +108,10 @@
100108
"AsyncUsageResourceWithRawResponse",
101109
"UsageResourceWithStreamingResponse",
102110
"AsyncUsageResourceWithStreamingResponse",
111+
"TenantsResource",
112+
"AsyncTenantsResource",
113+
"TenantsResourceWithRawResponse",
114+
"AsyncTenantsResourceWithRawResponse",
115+
"TenantsResourceWithStreamingResponse",
116+
"AsyncTenantsResourceWithStreamingResponse",
103117
]

0 commit comments

Comments
 (0)