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.1.0"
".": "0.2.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
1 change: 1 addition & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
```python
from linq.types import (
ChatHandle,
LinkPartResponse,
MediaPartResponse,
Reaction,
ReactionType,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/linq/_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__ = "linq"
__version__ = "0.1.0" # x-release-please-version
__version__ = "0.2.0" # x-release-please-version
1 change: 1 addition & 0 deletions src/linq/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
ServiceType as ServiceType,
ReactionType as ReactionType,
TextDecoration as TextDecoration,
LinkPartResponse as LinkPartResponse,
TextPartResponse as TextPartResponse,
MediaPartResponse as MediaPartResponse,
)
Expand Down
20 changes: 3 additions & 17 deletions src/linq/types/chats/sent_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
22 changes: 4 additions & 18 deletions src/linq/types/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions src/linq/types/shared/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
22 changes: 22 additions & 0 deletions src/linq/types/shared/link_part_response.py
Original file line number Diff line number Diff line change
@@ -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"""
Loading