Skip to content

Commit 4de4481

Browse files
Release 1.15.2
1 parent f6242f0 commit 4de4481

11 files changed

Lines changed: 483 additions & 9 deletions

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "polytomic"
33

44
[tool.poetry]
55
name = "polytomic"
6-
version = "1.14.1"
6+
version = "1.15.2"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4767,6 +4767,109 @@ client.identity.get()
47674767
</dl>
47684768

47694769

4770+
</dd>
4771+
</dl>
4772+
</details>
4773+
4774+
## Notifications
4775+
<details><summary><code>client.notifications.<a href="src/polytomic/notifications/client.py">get_global_error_subscribers</a>()</code></summary>
4776+
<dl>
4777+
<dd>
4778+
4779+
#### 🔌 Usage
4780+
4781+
<dl>
4782+
<dd>
4783+
4784+
<dl>
4785+
<dd>
4786+
4787+
```python
4788+
from polytomic import Polytomic
4789+
4790+
client = Polytomic(
4791+
version="YOUR_VERSION",
4792+
token="YOUR_TOKEN",
4793+
)
4794+
client.notifications.get_global_error_subscribers()
4795+
4796+
```
4797+
</dd>
4798+
</dl>
4799+
</dd>
4800+
</dl>
4801+
4802+
#### ⚙️ Parameters
4803+
4804+
<dl>
4805+
<dd>
4806+
4807+
<dl>
4808+
<dd>
4809+
4810+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
4811+
4812+
</dd>
4813+
</dl>
4814+
</dd>
4815+
</dl>
4816+
4817+
4818+
</dd>
4819+
</dl>
4820+
</details>
4821+
4822+
<details><summary><code>client.notifications.<a href="src/polytomic/notifications/client.py">set_global_error_subscribers</a>(...)</code></summary>
4823+
<dl>
4824+
<dd>
4825+
4826+
#### 🔌 Usage
4827+
4828+
<dl>
4829+
<dd>
4830+
4831+
<dl>
4832+
<dd>
4833+
4834+
```python
4835+
from polytomic import Polytomic
4836+
4837+
client = Polytomic(
4838+
version="YOUR_VERSION",
4839+
token="YOUR_TOKEN",
4840+
)
4841+
client.notifications.set_global_error_subscribers()
4842+
4843+
```
4844+
</dd>
4845+
</dl>
4846+
</dd>
4847+
</dl>
4848+
4849+
#### ⚙️ Parameters
4850+
4851+
<dl>
4852+
<dd>
4853+
4854+
<dl>
4855+
<dd>
4856+
4857+
**emails:** `typing.Optional[typing.Sequence[str]]`
4858+
4859+
</dd>
4860+
</dl>
4861+
4862+
<dl>
4863+
<dd>
4864+
4865+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
4866+
4867+
</dd>
4868+
</dl>
4869+
</dd>
4870+
</dl>
4871+
4872+
47704873
</dd>
47714874
</dl>
47724875
</details>

src/polytomic/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
V4BulkSyncScheduleApi,
187187
V4ExportSyncLogsEnvelope,
188188
V4ExportSyncLogsResponse,
189+
V4GlobalErrorSubscribersResponse,
189190
V4QueryResultsEnvelope,
190191
V4RunQueryEnvelope,
191192
V4RunQueryResult,
@@ -216,6 +217,7 @@
216217
jobs,
217218
model_sync,
218219
models,
220+
notifications,
219221
organization,
220222
permissions,
221223
query_runner,
@@ -426,6 +428,7 @@
426428
"V4BulkSyncScheduleApi",
427429
"V4ExportSyncLogsEnvelope",
428430
"V4ExportSyncLogsResponse",
431+
"V4GlobalErrorSubscribersResponse",
429432
"V4QueryResultsEnvelope",
430433
"V4RunQueryEnvelope",
431434
"V4RunQueryResult",
@@ -446,6 +449,7 @@
446449
"jobs",
447450
"model_sync",
448451
"models",
452+
"notifications",
449453
"organization",
450454
"permissions",
451455
"query_runner",

src/polytomic/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from .events.client import EventsClient
1414
from .jobs.client import JobsClient
1515
from .identity.client import IdentityClient
16+
from .notifications.client import NotificationsClient
1617
from .organization.client import OrganizationClient
1718
from .users.client import UsersClient
1819
from .webhooks.client import WebhooksClient
@@ -27,6 +28,7 @@
2728
from .events.client import AsyncEventsClient
2829
from .jobs.client import AsyncJobsClient
2930
from .identity.client import AsyncIdentityClient
31+
from .notifications.client import AsyncNotificationsClient
3032
from .organization.client import AsyncOrganizationClient
3133
from .users.client import AsyncUsersClient
3234
from .webhooks.client import AsyncWebhooksClient
@@ -104,6 +106,7 @@ def __init__(
104106
self.events = EventsClient(client_wrapper=self._client_wrapper)
105107
self.jobs = JobsClient(client_wrapper=self._client_wrapper)
106108
self.identity = IdentityClient(client_wrapper=self._client_wrapper)
109+
self.notifications = NotificationsClient(client_wrapper=self._client_wrapper)
107110
self.organization = OrganizationClient(client_wrapper=self._client_wrapper)
108111
self.users = UsersClient(client_wrapper=self._client_wrapper)
109112
self.webhooks = WebhooksClient(client_wrapper=self._client_wrapper)
@@ -181,6 +184,7 @@ def __init__(
181184
self.events = AsyncEventsClient(client_wrapper=self._client_wrapper)
182185
self.jobs = AsyncJobsClient(client_wrapper=self._client_wrapper)
183186
self.identity = AsyncIdentityClient(client_wrapper=self._client_wrapper)
187+
self.notifications = AsyncNotificationsClient(client_wrapper=self._client_wrapper)
184188
self.organization = AsyncOrganizationClient(client_wrapper=self._client_wrapper)
185189
self.users = AsyncUsersClient(client_wrapper=self._client_wrapper)
186190
self.webhooks = AsyncWebhooksClient(client_wrapper=self._client_wrapper)

src/polytomic/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
2525
"X-Fern-Language": "Python",
2626
"X-Fern-SDK-Name": "polytomic",
27-
"X-Fern-SDK-Version": "1.14.1",
27+
"X-Fern-SDK-Version": "1.15.2",
2828
}
2929
if self._version is not None:
3030
headers["X-Polytomic-Version"] = self._version
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+

0 commit comments

Comments
 (0)