linq-python 0.2.4__py3-none-any.whl → 0.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
linq/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "linq"
4
- __version__ = "0.2.4" # x-release-please-version
4
+ __version__ = "0.3.0" # x-release-please-version
@@ -117,6 +117,9 @@ class MessagesResource(SyncAPIResource):
117
117
  """
118
118
  Edit the text content of a specific part of a previously sent message.
119
119
 
120
+ **Note:** A message can be edited up to 5 times, and only within 15 minutes of
121
+ when it was originally sent.
122
+
120
123
  Args:
121
124
  text: New text content for the message part
122
125
 
@@ -405,6 +408,9 @@ class AsyncMessagesResource(AsyncAPIResource):
405
408
  """
406
409
  Edit the text content of a specific part of a previously sent message.
407
410
 
411
+ **Note:** A message can be edited up to 5 times, and only within 15 minutes of
412
+ when it was originally sent.
413
+
408
414
  Args:
409
415
  text: New text content for the message part
410
416
 
linq/types/chat.py CHANGED
@@ -7,7 +7,17 @@ from .._models import BaseModel
7
7
  from .shared.chat_handle import ChatHandle
8
8
  from .shared.service_type import ServiceType
9
9
 
10
- __all__ = ["Chat"]
10
+ __all__ = ["Chat", "HealthScore"]
11
+
12
+
13
+ class HealthScore(BaseModel):
14
+ """**[BETA]** Health assessment for a chat. Higher `score` means a healthier chat."""
15
+
16
+ reason: str
17
+ """Short summary of what's affecting the score. Empty when the score is 100."""
18
+
19
+ score: int
20
+ """Health score from 0 to 100. Higher is healthier."""
11
21
 
12
22
 
13
23
  class Chat(BaseModel):
@@ -40,5 +50,8 @@ class Chat(BaseModel):
40
50
  updated_at: datetime
41
51
  """When the chat was last updated"""
42
52
 
53
+ health_score: Optional[HealthScore] = None
54
+ """**[BETA]** Health assessment for a chat. Higher `score` means a healthier chat."""
55
+
43
56
  service: Optional[ServiceType] = None
44
57
  """Messaging service type"""
@@ -7,7 +7,17 @@ from .chats.sent_message import SentMessage
7
7
  from .shared.chat_handle import ChatHandle
8
8
  from .shared.service_type import ServiceType
9
9
 
10
- __all__ = ["ChatCreateResponse", "Chat"]
10
+ __all__ = ["ChatCreateResponse", "Chat", "ChatHealthScore"]
11
+
12
+
13
+ class ChatHealthScore(BaseModel):
14
+ """**[BETA]** Health assessment for a chat. Higher `score` means a healthier chat."""
15
+
16
+ reason: str
17
+ """Short summary of what's affecting the score. Empty when the score is 100."""
18
+
19
+ score: int
20
+ """Health score from 0 to 100. Higher is healthier."""
11
21
 
12
22
 
13
23
  class Chat(BaseModel):
@@ -37,6 +47,9 @@ class Chat(BaseModel):
37
47
  service: ServiceType
38
48
  """Messaging service type"""
39
49
 
50
+ health_score: Optional[ChatHealthScore] = None
51
+ """**[BETA]** Health assessment for a chat. Higher `score` means a healthier chat."""
52
+
40
53
 
41
54
  class ChatCreateResponse(BaseModel):
42
55
  """Response for creating a new chat with an initial message"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: linq-python
3
- Version: 0.2.4
3
+ Version: 0.3.0
4
4
  Summary: The official Python library for the linq-api-v3 API
5
5
  Project-URL: Homepage, https://github.com/linq-team/linq-python
6
6
  Project-URL: Repository, https://github.com/linq-team/linq-python
@@ -11,7 +11,7 @@ linq/_resource.py,sha256=IvbBkxho8w_Ru0GHWOBUDwiuaI-CQoi8WWQJZCkfhyg,1118
11
11
  linq/_response.py,sha256=Pyf_g81OCXWawxoGZDNp6h1sHMlDgCOsM5vI9fGEBKE,28923
12
12
  linq/_streaming.py,sha256=zmn_k0MQ0d2f4KisSxNc4cqa3mTw2j75iPRyTL5jk9I,10562
13
13
  linq/_types.py,sha256=C3roEXRjDIicI14d6zJMb2C_vkZ8cffHg00DP0UrGYI,7639
14
- linq/_version.py,sha256=oJAcrdgiuajufLNIFBzD3cqSDzjykSv98MKxu1aX6DA,156
14
+ linq/_version.py,sha256=61BGoNJGmDZPgXOxxuW7yRKrEkaOnR6c0zMwATwIjeo,156
15
15
  linq/pagination.py,sha256=LxWl_sqhWdi6dYzDK1QyEIJd43fvxXMcCwF6Y4ill9I,2464
16
16
  linq/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  linq/_utils/__init__.py,sha256=nQq-iFa5YxTaWySaLigatew5rHgTR0M75FNYm4mrO1s,2313
@@ -33,7 +33,7 @@ linq/resources/__init__.py,sha256=5K3fxu-Cf8pMBrTWLLy_9XX2VJXIvs66Wc-DbDgnQeE,48
33
33
  linq/resources/attachments.py,sha256=uwtQ0Wz-I7-NdRdijoIHnSz5NURPPATBN3ckpEdIhbw,25001
34
34
  linq/resources/capability.py,sha256=-DRB5r-wGMKsTFpYiqK9ktvtwrjBgyrlqF24u8bN4vA,11076
35
35
  linq/resources/contact_card.py,sha256=g2QNjPay7Be2NyYZEMAPVWn4GPLQCc8Kmb5m7F-I6z4,18507
36
- linq/resources/messages.py,sha256=kycQ5K8tL3fGQ3jkeJ1eqnuvhTbn6K4A5QyD_8MGTK4,27140
36
+ linq/resources/messages.py,sha256=ts48wojCHc9wz36XlNoSGbpbPwl1ZFhg44WMWpcA_Nw,27390
37
37
  linq/resources/phone_numbers.py,sha256=GZ4wtv1ZKzKbpJVRCpMSREavmM7fiAbf8uyPN_OeFek,6254
38
38
  linq/resources/phonenumbers.py,sha256=jYVMfp5ThMeksrg19qs3EBSpHPzXo8JcPj9a9CFoOHQ,6385
39
39
  linq/resources/webhook_events.py,sha256=l0IFGKHLnIrPMHrUzhUDj37WBHYo5q3TsDN2tZhom78,11656
@@ -50,9 +50,9 @@ linq/types/attachment_create_response.py,sha256=MmZjUj2HMrvt1A6EKM5INSUwc_VNSmjt
50
50
  linq/types/attachment_retrieve_response.py,sha256=YN6nj88bhRbp2P2mFLVMOyfWYGhRRRtm-P_Aed-2r-A,2631
51
51
  linq/types/capability_check_RCS_params.py,sha256=uyKe5xDP1G62NRTBCv4PTh6SZ4o0Qomdjszoei4DXDE,581
52
52
  linq/types/capability_check_i_message_params.py,sha256=bEFb6sJE_IfAyASwmK3CTlLouXJjgvSjTuOYteFUeVI,591
53
- linq/types/chat.py,sha256=mAlHuAkTyisq1_ZaO0-nr1qkZo5AdKeRXhApY7Okoyw,1067
53
+ linq/types/chat.py,sha256=POWlGr9wWnlNHiqmZkHGh0yg9CT7nF0u2eOURbv6Ydo,1518
54
54
  linq/types/chat_create_params.py,sha256=Z8v2XMHpKbOmQcvL7OBQA51gX8GieEUWhhyE1rPCv0E,1049
55
- linq/types/chat_create_response.py,sha256=xUJckvO_0-zZUGvDw9SB1d18VAvrkPTyOI_7Yhm_5cI,1121
55
+ linq/types/chat_create_response.py,sha256=-wxVNT9z-XI0BRjMN_YSxlfMhzSmqCIIpliIO66P3tM,1584
56
56
  linq/types/chat_created_webhook_event.py,sha256=OuvGRS-ezS8zW_PIlDzeCA6gP5ewoBXJFYSPtM3s6HA,2360
57
57
  linq/types/chat_group_icon_update_failed_webhook_event.py,sha256=WEnE2CWqNFFPa8pG8cC6V6ItgXnpnvNU2JYRoJnaRBM,1981
58
58
  linq/types/chat_group_icon_updated_webhook_event.py,sha256=N2rowdYGoHRI9Jk3Nr80GwXyS0BXLTqL41ahL_qc9dk,1974
@@ -134,7 +134,7 @@ linq/types/shared_params/__init__.py,sha256=FZWRsA1D5DW6IXxenxo9U8-bDW6YiizL-xaw
134
134
  linq/types/shared_params/reaction_type.py,sha256=MP4ekeDAr9lK0wqdvl6FMVa5s0j2w6JhwF8TcF48aSA,317
135
135
  linq/types/shared_params/service_type.py,sha256=AV_VS3d0v059_wou2dts8Jy-NzbGFXa3_VRRpG42N48,259
136
136
  linq/types/shared_params/text_decoration.py,sha256=H-ph17ldBaFRNhajm77DfqjjtQbTNFJj9sepoHHcD80,881
137
- linq_python-0.2.4.dist-info/METADATA,sha256=cNSLEscU0xkDKJMxn6i1Kf-gVFZp6Y7hSwaqyiNMpkQ,17384
138
- linq_python-0.2.4.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
139
- linq_python-0.2.4.dist-info/licenses/LICENSE,sha256=zP4mO5gBwuMBJx2-sVWVdjklSfevmIQT68JUQfvjy40,11341
140
- linq_python-0.2.4.dist-info/RECORD,,
137
+ linq_python-0.3.0.dist-info/METADATA,sha256=pJmghop3QdqS16h3bDhFi_-9WQ22Dj4NntwZ-Fv0Zsk,17384
138
+ linq_python-0.3.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
139
+ linq_python-0.3.0.dist-info/licenses/LICENSE,sha256=zP4mO5gBwuMBJx2-sVWVdjklSfevmIQT68JUQfvjy40,11341
140
+ linq_python-0.3.0.dist-info/RECORD,,