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.6.0"
".": "0.7.0"
}
2 changes: 1 addition & 1 deletion .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-37a94929911f4b5944524a51b722bb0eea0b0b167fd79814181f58ed877aa341.yml
openapi_spec_hash: 795bd7e48e4d2affc5943c57ee111d52
openapi_spec_hash: a3d001964480c894a5b6cb9ffa4fa47b
config_hash: 3ab31decde29ec61e02db7dcb5313f82
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.7.0 (2026-04-30)

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

### Features

* [PoC] sync risk lookup on message.received via NATS req/reply ([8a0e4fb](https://github.com/linq-team/linq-python/commit/8a0e4fbac82a824759b563d3b241e513e85c53d3))
* **webhooks:** nest health_score under chat (PLT-540) + remove standalone opt_out/opt_in webhooks ([59ab16c](https://github.com/linq-team/linq-python/commit/59ab16c54abb0cb25e68aed20acf9198611eaf48))

## 0.6.0 (2026-04-28)

Full Changelog: [v0.5.0...v0.6.0](https://github.com/linq-team/linq-python/compare/v0.5.0...v0.6.0)
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.6.0"
version = "0.7.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.6.0" # x-release-please-version
__version__ = "0.7.0" # x-release-please-version
12 changes: 10 additions & 2 deletions src/linq/types/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@


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

Higher `score` is healthier.
`null` when a score isn't available yet. Scoring may change during beta.
"""

reason: str
"""Short summary of what's affecting the score. Empty when the score is 100."""
Expand Down Expand Up @@ -51,7 +55,11 @@ class Chat(BaseModel):
"""When the chat was last updated"""

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

Higher `score` is healthier. `null` when a score isn't available yet. Scoring
may change during beta.
"""

service: Optional[ServiceType] = None
"""Messaging service type"""
12 changes: 10 additions & 2 deletions src/linq/types/chat_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@


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

Higher `score` is healthier.
`null` when a score isn't available yet. Scoring may change during beta.
"""

reason: str
"""Short summary of what's affecting the score. Empty when the score is 100."""
Expand Down Expand Up @@ -48,7 +52,11 @@ class Chat(BaseModel):
"""Messaging service type"""

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

Higher `score` is healthier. `null` when a score isn't available yet. Scoring
may change during beta.
"""


class ChatCreateResponse(BaseModel):
Expand Down
23 changes: 22 additions & 1 deletion src/linq/types/message_event_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,21 @@
from .schemas_text_part_response import SchemasTextPartResponse
from .schemas_media_part_response import SchemasMediaPartResponse

__all__ = ["MessageEventV2", "Chat", "Part", "PartSchemasLinkPartResponse", "ReplyTo"]
__all__ = ["MessageEventV2", "Chat", "ChatHealthScore", "Part", "PartSchemasLinkPartResponse", "ReplyTo"]


class ChatHealthScore(BaseModel):
"""**[BETA]** Health assessment for a chat.

Higher `score` is healthier.
`null` when a score isn't available yet. Scoring may change during beta.
"""

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 All @@ -21,6 +35,13 @@ class Chat(BaseModel):
id: str
"""Chat identifier"""

health_score: Optional[ChatHealthScore] = None
"""**[BETA]** Health assessment for a chat.

Higher `score` is healthier. `null` when a score isn't available yet. Scoring
may change during beta.
"""

is_group: Optional[bool] = None
"""Whether this is a group chat"""

Expand Down
2 changes: 0 additions & 2 deletions src/linq/types/phone_number_status_updated_webhook_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ class PhoneNumberStatusUpdatedWebhookEvent(BaseModel):
"message.delivered",
"message.failed",
"message.edited",
"message.opt_out",
"message.opt_in",
"reaction.added",
"reaction.removed",
"participant.added",
Expand Down
2 changes: 0 additions & 2 deletions src/linq/types/webhook_event_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"message.delivered",
"message.failed",
"message.edited",
"message.opt_out",
"message.opt_in",
"reaction.added",
"reaction.removed",
"participant.added",
Expand Down
Loading