diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7f58a50..6b7b74c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.5" + ".": "0.3.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index cc5bb81..0f42596 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-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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 611c892..2563b97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index a99852a..4f0a6d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/scripts/bootstrap b/scripts/bootstrap index 4638ec6..5a23841 100755 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -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 diff --git a/src/linq/_version.py b/src/linq/_version.py index 14d10c0..ee4467c 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.2.5" # x-release-please-version +__version__ = "0.3.0" # x-release-please-version diff --git a/src/linq/types/chat.py b/src/linq/types/chat.py index fc502f1..242ffe3 100644 --- a/src/linq/types/chat.py +++ b/src/linq/types/chat.py @@ -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): @@ -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""" diff --git a/src/linq/types/chat_create_response.py b/src/linq/types/chat_create_response.py index 6668732..9efb755 100644 --- a/src/linq/types/chat_create_response.py +++ b/src/linq/types/chat_create_response.py @@ -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): @@ -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"""