diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3d2ac0b..10f3091 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0" + ".": "0.2.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 14e591f..b5c1565 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 34 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/linq%2Flinq-api-v3-9eb50e6e25eb7aace6b8e49d6069f3ebb43d85860d54ec60d89f0b28185bc442.yml -openapi_spec_hash: 530751c9ac110b9cadc518dccbfd475a -config_hash: a5ced29c3394cebb394e059386db9a23 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/linq%2Flinq-api-v3-f8792c6b363e576dac7e828e06a800eb52eaf45c1ea653ae6db16289e64b575d.yml +openapi_spec_hash: 2f0f5e232bdf9c4e2021773575354fdb +config_hash: be5410c6c4d8f36a7cd93c8950bc90d6 diff --git a/CHANGELOG.md b/CHANGELOG.md index 930ba6f..116d379 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.2.0 (2026-04-04) + +Full Changelog: [v0.1.0...v0.2.0](https://github.com/linq-team/linq-python/compare/v0.1.0...v0.2.0) + +### Features + +* **api:** config cleanup ([6827b8f](https://github.com/linq-team/linq-python/commit/6827b8f725103369b7588c47daf86368f5f3f8f0)) + ## 0.1.0 (2026-04-01) Full Changelog: [v0.0.1...v0.1.0](https://github.com/linq-team/linq-python/compare/v0.0.1...v0.1.0) diff --git a/api.md b/api.md index 962233b..a4578c2 100644 --- a/api.md +++ b/api.md @@ -3,6 +3,7 @@ ```python from linq.types import ( ChatHandle, + LinkPartResponse, MediaPartResponse, Reaction, ReactionType, diff --git a/pyproject.toml b/pyproject.toml index f1d666d..76b5b1a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "linq-python" -version = "0.1.0" +version = "0.2.0" description = "The official Python library for the linq-api-v3 API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/linq/_version.py b/src/linq/_version.py index 6a11c5c..a893922 100644 --- a/src/linq/_version.py +++ b/src/linq/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "linq" -__version__ = "0.1.0" # x-release-please-version +__version__ = "0.2.0" # x-release-please-version diff --git a/src/linq/types/__init__.py b/src/linq/types/__init__.py index 2746e84..09c0991 100644 --- a/src/linq/types/__init__.py +++ b/src/linq/types/__init__.py @@ -9,6 +9,7 @@ ServiceType as ServiceType, ReactionType as ReactionType, TextDecoration as TextDecoration, + LinkPartResponse as LinkPartResponse, TextPartResponse as TextPartResponse, MediaPartResponse as MediaPartResponse, ) diff --git a/src/linq/types/chats/sent_message.py b/src/linq/types/chats/sent_message.py index 6a6a622..1935df5 100644 --- a/src/linq/types/chats/sent_message.py +++ b/src/linq/types/chats/sent_message.py @@ -7,29 +7,15 @@ from ..._models import BaseModel from ..reply_to import ReplyTo from ..message_effect import MessageEffect -from ..shared.reaction import Reaction from ..shared.chat_handle import ChatHandle from ..shared.service_type import ServiceType +from ..shared.link_part_response import LinkPartResponse from ..shared.text_part_response import TextPartResponse from ..shared.media_part_response import MediaPartResponse -__all__ = ["SentMessage", "Part", "PartLinkPartResponse"] +__all__ = ["SentMessage", "Part"] - -class PartLinkPartResponse(BaseModel): - """A rich link preview part""" - - reactions: Optional[List[Reaction]] = None - """Reactions on this message part""" - - type: Literal["link"] - """Indicates this is a rich link preview part""" - - value: str - """The URL""" - - -Part: TypeAlias = Union[TextPartResponse, MediaPartResponse, PartLinkPartResponse] +Part: TypeAlias = Union[TextPartResponse, MediaPartResponse, LinkPartResponse] class SentMessage(BaseModel): diff --git a/src/linq/types/message.py b/src/linq/types/message.py index b49c259..ea8f463 100644 --- a/src/linq/types/message.py +++ b/src/linq/types/message.py @@ -2,36 +2,22 @@ from typing import List, Union, Optional from datetime import datetime -from typing_extensions import Literal, TypeAlias +from typing_extensions import TypeAlias from pydantic import Field as FieldInfo from .._models import BaseModel from .reply_to import ReplyTo from .message_effect import MessageEffect -from .shared.reaction import Reaction from .shared.chat_handle import ChatHandle from .shared.service_type import ServiceType +from .shared.link_part_response import LinkPartResponse from .shared.text_part_response import TextPartResponse from .shared.media_part_response import MediaPartResponse -__all__ = ["Message", "Part", "PartLinkPartResponse"] +__all__ = ["Message", "Part"] - -class PartLinkPartResponse(BaseModel): - """A rich link preview part""" - - reactions: Optional[List[Reaction]] = None - """Reactions on this message part""" - - type: Literal["link"] - """Indicates this is a rich link preview part""" - - value: str - """The URL""" - - -Part: TypeAlias = Union[TextPartResponse, MediaPartResponse, PartLinkPartResponse] +Part: TypeAlias = Union[TextPartResponse, MediaPartResponse, LinkPartResponse] class Message(BaseModel): diff --git a/src/linq/types/shared/__init__.py b/src/linq/types/shared/__init__.py index f062562..a0a17fc 100644 --- a/src/linq/types/shared/__init__.py +++ b/src/linq/types/shared/__init__.py @@ -5,5 +5,6 @@ from .service_type import ServiceType as ServiceType from .reaction_type import ReactionType as ReactionType from .text_decoration import TextDecoration as TextDecoration +from .link_part_response import LinkPartResponse as LinkPartResponse from .text_part_response import TextPartResponse as TextPartResponse from .media_part_response import MediaPartResponse as MediaPartResponse diff --git a/src/linq/types/shared/link_part_response.py b/src/linq/types/shared/link_part_response.py new file mode 100644 index 0000000..abd97d8 --- /dev/null +++ b/src/linq/types/shared/link_part_response.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from .reaction import Reaction +from ..._models import BaseModel + +__all__ = ["LinkPartResponse"] + + +class LinkPartResponse(BaseModel): + """A rich link preview part""" + + reactions: Optional[List[Reaction]] = None + """Reactions on this message part""" + + type: Literal["link"] + """Indicates this is a rich link preview part""" + + value: str + """The URL"""