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.2.5"
".": "0.3.0"
}
4 changes: 2 additions & 2 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-36db2d614fc8cc86744b1677db6c3217c273fc366a40fd98fbc1034febb5ad36.yml
openapi_spec_hash: aab0034296b3ef4681f3ab8a8a8f1249
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/linq%2Flinq-api-v3-ff83d38ba9be07068f3eeef202f37fb92cf4b6b6a12f1ad2f258f45de70f5afd.yml
openapi_spec_hash: b15a3d49366346cd2d22a5acc029b03b
config_hash: be5410c6c4d8f36a7cd93c8950bc90d6
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.3.0 (2026-04-23)

Full Changelog: [v0.2.5...v0.3.0](https://github.com/linq-team/linq-python/compare/v0.2.5...v0.3.0)

### Features

* **api:** expose health_score on chats (BETA) ([b7d22d6](https://github.com/linq-team/linq-python/commit/b7d22d642e1192a77dd695c178eee322357de024))


### Chores

* **internal:** more robust bootstrap script ([b504bb9](https://github.com/linq-team/linq-python/commit/b504bb9f84501d3e20fe3654a67e739fa1986e77))

## 0.2.5 (2026-04-20)

Full Changelog: [v0.2.4...v0.2.5](https://github.com/linq-team/linq-python/compare/v0.2.4...v0.2.5)
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.2.5"
version = "0.3.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 scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

cd "$(dirname "$0")/.."

if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "${SKIP_BREW:-}" != "1" ] && [ -t 0 ]; then
brew bundle check >/dev/null 2>&1 || {
echo -n "==> Install Homebrew dependencies? (y/N): "
read -r response
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.2.5" # x-release-please-version
__version__ = "0.3.0" # x-release-please-version
15 changes: 14 additions & 1 deletion src/linq/types/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@
from .shared.chat_handle import ChatHandle
from .shared.service_type import ServiceType

__all__ = ["Chat"]
__all__ = ["Chat", "HealthScore"]


class HealthScore(BaseModel):
"""**[BETA]** Health assessment for a chat. Higher `score` means a healthier chat."""

reason: str
"""Short summary of what's affecting the score. Empty when the score is 100."""

score: int
"""Health score from 0 to 100. Higher is healthier."""


class Chat(BaseModel):
Expand Down Expand Up @@ -40,5 +50,8 @@ class Chat(BaseModel):
updated_at: datetime
"""When the chat was last updated"""

health_score: Optional[HealthScore] = None
"""**[BETA]** Health assessment for a chat. Higher `score` means a healthier chat."""

service: Optional[ServiceType] = None
"""Messaging service type"""
15 changes: 14 additions & 1 deletion src/linq/types/chat_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@
from .shared.chat_handle import ChatHandle
from .shared.service_type import ServiceType

__all__ = ["ChatCreateResponse", "Chat"]
__all__ = ["ChatCreateResponse", "Chat", "ChatHealthScore"]


class ChatHealthScore(BaseModel):
"""**[BETA]** Health assessment for a chat. Higher `score` means a healthier chat."""

reason: str
"""Short summary of what's affecting the score. Empty when the score is 100."""

score: int
"""Health score from 0 to 100. Higher is healthier."""


class Chat(BaseModel):
Expand Down Expand Up @@ -37,6 +47,9 @@ class Chat(BaseModel):
service: ServiceType
"""Messaging service type"""

health_score: Optional[ChatHealthScore] = None
"""**[BETA]** Health assessment for a chat. Higher `score` means a healthier chat."""


class ChatCreateResponse(BaseModel):
"""Response for creating a new chat with an initial message"""
Expand Down
Loading