Skip to content

Commit f6242f0

Browse files
Release 1.14.1
1 parent c39fe2d commit f6242f0

9 files changed

Lines changed: 54 additions & 3 deletions

File tree

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.13.0"
6+
version = "1.14.1"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2303,6 +2303,20 @@ client.schemas.refresh(
23032303
<dl>
23042304
<dd>
23052305

2306+
#### 📝 Description
2307+
2308+
<dl>
2309+
<dd>
2310+
2311+
<dl>
2312+
<dd>
2313+
2314+
Polytomic periodically inspects the schemas for connections to discover new fields and update metadata. This endpoint returns the current inspection status.
2315+
</dd>
2316+
</dl>
2317+
</dd>
2318+
</dl>
2319+
23062320
#### 🔌 Usage
23072321

23082322
<dl>

src/polytomic/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
ApiError,
88
ApiKeyResponse,
99
ApiKeyResponseEnvelope,
10+
BackendConnectionCapabilities,
1011
BackendOAuthPrompt,
1112
BulkBulkSyncSchedule,
1213
BulkDiscover,
@@ -235,6 +236,7 @@
235236
"ApiKeyResponse",
236237
"ApiKeyResponseEnvelope",
237238
"AsyncPolytomic",
239+
"BackendConnectionCapabilities",
238240
"BackendOAuthPrompt",
239241
"BadRequestError",
240242
"BulkBulkSyncSchedule",

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.13.0",
27+
"X-Fern-SDK-Version": "1.14.1",
2828
}
2929
if self._version is not None:
3030
headers["X-Polytomic-Version"] = self._version

src/polytomic/schemas/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,8 @@ def get_status(
486486
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
487487
) -> BulkSyncSourceStatusEnvelope:
488488
"""
489+
Polytomic periodically inspects the schemas for connections to discover new fields and update metadata. This endpoint returns the current inspection status.
490+
489491
Parameters
490492
----------
491493
id : str
@@ -1260,6 +1262,8 @@ async def get_status(
12601262
self, id: str, *, request_options: typing.Optional[RequestOptions] = None
12611263
) -> BulkSyncSourceStatusEnvelope:
12621264
"""
1265+
Polytomic periodically inspects the schemas for connections to discover new fields and update metadata. This endpoint returns the current inspection status.
1266+
12631267
Parameters
12641268
----------
12651269
id : str

src/polytomic/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from .api_error import ApiError
88
from .api_key_response import ApiKeyResponse
99
from .api_key_response_envelope import ApiKeyResponseEnvelope
10+
from .backend_connection_capabilities import BackendConnectionCapabilities
1011
from .backend_o_auth_prompt import BackendOAuthPrompt
1112
from .bulk_bulk_sync_schedule import BulkBulkSyncSchedule
1213
from .bulk_discover import BulkDiscover
@@ -206,6 +207,7 @@
206207
"ApiError",
207208
"ApiKeyResponse",
208209
"ApiKeyResponseEnvelope",
210+
"BackendConnectionCapabilities",
209211
"BackendOAuthPrompt",
210212
"BulkBulkSyncSchedule",
211213
"BulkDiscover",
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
from ..core.pydantic_utilities import UniversalBaseModel
4+
import typing
5+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
6+
import pydantic
7+
8+
9+
class BackendConnectionCapabilities(UniversalBaseModel):
10+
destination: typing.Optional[bool] = None
11+
enrichment: typing.Optional[bool] = None
12+
orchestration: typing.Optional[bool] = None
13+
source: typing.Optional[bool] = None
14+
15+
if IS_PYDANTIC_V2:
16+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
17+
else:
18+
19+
class Config:
20+
frozen = True
21+
smart_union = True
22+
extra = pydantic.Extra.allow

src/polytomic/types/connection_type.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.pydantic_utilities import UniversalBaseModel
4-
import typing_extensions
54
import typing
5+
from .backend_connection_capabilities import BackendConnectionCapabilities
6+
import typing_extensions
67
from .v_2_connection_form import V2ConnectionForm
78
from ..core.serialization import FieldMetadata
89
from .backend_o_auth_prompt import BackendOAuthPrompt
@@ -11,6 +12,7 @@
1112

1213

1314
class ConnectionType(UniversalBaseModel):
15+
capabilities: typing.Optional[BackendConnectionCapabilities] = None
1416
configuration_form: typing_extensions.Annotated[
1517
typing.Optional[V2ConnectionForm], FieldMetadata(alias="configurationForm")
1618
] = None

src/polytomic/types/schema_field.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
class SchemaField(UniversalBaseModel):
1414
association: typing.Optional[SchemaAssociation] = None
1515
id: typing.Optional[str] = None
16+
is_primary_key: typing.Optional[bool] = pydantic.Field(default=None)
17+
"""
18+
Whether this field is part of the schema's primary key.
19+
"""
20+
1621
name: typing.Optional[str] = None
1722
remote_type: typing.Optional[str] = pydantic.Field(default=None)
1823
"""

0 commit comments

Comments
 (0)