linq-python 0.70.1__py3-none-any.whl → 0.71.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.70.1" # x-release-please-version
4
+ __version__ = "0.71.0" # x-release-please-version
@@ -4,6 +4,7 @@ from typing import List, Optional
4
4
  from typing_extensions import Literal
5
5
 
6
6
  from .._models import BaseModel
7
+ from .reputation_driver_key import ReputationDriverKey
7
8
 
8
9
  __all__ = ["PhoneNumberListResponse", "PhoneNumber", "PhoneNumberReputation"]
9
10
 
@@ -23,8 +24,32 @@ class PhoneNumberReputation(BaseModel):
23
24
  Deep-link to the relevant section of the Phone Reputation guide for this status.
24
25
  """
25
26
 
27
+ reason_codes: List[ReputationDriverKey]
28
+ """What is behind `state`, in a stable order.
29
+
30
+ Empty when nothing is. Same vocabulary as the reputation report's drivers.
31
+ """
32
+
33
+ state: Literal["HEALTHY", "WATCH", "NEEDS_ATTENTION", "DELIVERY_LIMITED"]
34
+ """Current state of this phone line.
35
+
36
+ - `HEALTHY` — This line is in good standing.
37
+ - `WATCH` — A recent change in activity that usually settles on its own.
38
+ - `NEEDS_ATTENTION` — A sustained pattern that needs a change in how this line
39
+ is used.
40
+ - `DELIVERY_LIMITED` — Outbound messages from this line are not being delivered.
41
+
42
+ Defaults to `HEALTHY` for lines that have not yet been scored.
43
+ """
44
+
26
45
  status: Literal["HEALTHY", "AT_RISK", "CRITICAL"]
27
- """Current reputation of this phone line.
46
+ """**Legacy.** Use `state`.
47
+
48
+ Derived from `state`: `HEALTHY` and `WATCH` report `HEALTHY`, `NEEDS_ATTENTION`
49
+ reports `AT_RISK`, and `DELIVERY_LIMITED` reports `CRITICAL`. It stays available
50
+ for a long notice period before removal.
51
+
52
+ Current reputation of this phone line.
28
53
 
29
54
  - `HEALTHY` — The line is in good standing. Send normally.
30
55
  - `AT_RISK` — Warning signs on the line: engagement is low across many of its
@@ -1,9 +1,11 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ from typing import List, Optional
3
4
  from datetime import datetime
4
5
  from typing_extensions import Literal
5
6
 
6
7
  from .._models import BaseModel
8
+ from .reputation_driver_key import ReputationDriverKey
7
9
 
8
10
  __all__ = ["PhoneNumberStatusUpdatedWebhookEvent", "Data"]
9
11
 
@@ -29,6 +31,15 @@ class Data(BaseModel):
29
31
  previous_status: Literal["ACTIVE", "FLAGGED"]
30
32
  """The previous service status"""
31
33
 
34
+ new_state: Optional[Literal["HEALTHY", "WATCH", "NEEDS_ATTENTION", "DELIVERY_LIMITED"]] = None
35
+ """The new line state"""
36
+
37
+ previous_state: Optional[Literal["HEALTHY", "WATCH", "NEEDS_ATTENTION", "DELIVERY_LIMITED"]] = None
38
+ """The previous line state"""
39
+
40
+ reason_codes: Optional[List[ReputationDriverKey]] = None
41
+ """What is behind `new_state`, in a stable order. Empty when nothing is."""
42
+
32
43
 
33
44
  class PhoneNumberStatusUpdatedWebhookEvent(BaseModel):
34
45
  """Complete webhook payload for phone_number.status_updated events"""
@@ -43,7 +43,7 @@ class ReputationDriver(BaseModel):
43
43
  """
44
44
 
45
45
  label: Optional[str] = None
46
- """Display name for `key`, ready to show as-is (for example "Delivery issue")."""
46
+ """Display name for `key`, ready to show as-is (for example "Delivery Limited")."""
47
47
 
48
48
  metric: Optional[str] = None
49
49
  """A specific observed figure when available; otherwise a short qualitative note."""
@@ -34,7 +34,13 @@ class ReputationReport(BaseModel):
34
34
  """
35
35
 
36
36
  severity: Optional[Literal["HEALTHY", "AT_RISK", "CRITICAL"]] = None
37
- """Current reputation of this phone line.
37
+ """**Legacy.** Use `state`.
38
+
39
+ Derived from `state`: `HEALTHY` and `WATCH` report `HEALTHY`, `NEEDS_ATTENTION`
40
+ reports `AT_RISK`, and `DELIVERY_LIMITED` reports `CRITICAL`. It stays available
41
+ for a long notice period before removal.
42
+
43
+ Current reputation of this phone line.
38
44
 
39
45
  - `HEALTHY` — The line is in good standing. Send normally.
40
46
  - `AT_RISK` — Warning signs on the line: engagement is low across many of its
@@ -66,6 +66,12 @@ class TextPartParam(TypedDict, total=False):
66
66
  highlighted and are notified even if they have muted the chat. SMS and RCS
67
67
  recipients receive the same message as plain text — no highlight, and no mute
68
68
  override. One send, two experiences.
69
+
70
+ A mention part can also carry `text_decorations` (e.g. the mention on `"Kevin"`
71
+ and bold on `"today"` in `"Kevin, the report is due today"`). A decoration
72
+ cannot overlap the mention, which is `mention_range` or the entire `value`
73
+ without it; iMessage drops the mention under a decoration. It cannot be combined
74
+ with `inline_stickers`.
69
75
  """
70
76
 
71
77
  mention_range: Iterable[int]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: linq-python
3
- Version: 0.70.1
3
+ Version: 0.71.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=qrCEcjX_Yc2ofAEdW5DcTaji-Ct1o6v7P0mCi-wDlDM,7747
14
- linq/_version.py,sha256=jQ7aTuoMpgglXKJIWeQNUE9MYuzuLXTTpoF3xOV1ljE,157
14
+ linq/_version.py,sha256=OxcrHA6evCqHwRWljVQd4VjUQgvV7dmN1bzRE00UpUY,157
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
@@ -170,9 +170,9 @@ linq/types/payment_succeeded_webhook_event.py,sha256=ck2VEqqP4R8TNMGEgqHssZn551n
170
170
  linq/types/phone_number_assigned_webhook_event.py,sha256=MVpKVfMknoqg-H2hsC-ltRycoOUWuN_uklG-QrAmg-E,3715
171
171
  linq/types/phone_number_forwarding_updated_webhook_event.py,sha256=LP7Wy4DqeScrNjXnsbQlc_jG5IqnN9UGhk8EqHAZuQY,12607
172
172
  linq/types/phone_number_line_type_updated_webhook_event.py,sha256=6ccQQvOFmS8qa1tCedzgBPx8ioJFUXWT8FJrtJGOhLo,3878
173
- linq/types/phone_number_list_response.py,sha256=bnYBxLtjmMQdk-q5VAeru5_jQo3gxZA0YkhOMGngj9o,3406
173
+ linq/types/phone_number_list_response.py,sha256=Xy4bZHcXGAfu27exdvY6GIC2u1vEDdI4Hhox0fpjX9A,4403
174
174
  linq/types/phone_number_released_webhook_event.py,sha256=Nawxf8Su6SXU_V6y3Yj2ktTdw_n1gcOr-Fn3cUuj6Ec,3715
175
- linq/types/phone_number_status_updated_webhook_event.py,sha256=44wm3QA2xQm-bQejYLQk_RF__YexZrcBid5MTHWLGqc,4060
175
+ linq/types/phone_number_status_updated_webhook_event.py,sha256=FxwEX4gMNBhpmOry_VatKtsh7XEDCeewRJGYqaWzoNg,4559
176
176
  linq/types/phone_number_update_params.py,sha256=MCe9AusPptApEV1rhjMjgG2cO77oV_XU4GKhYGw986k,431
177
177
  linq/types/phone_number_update_response.py,sha256=y7S15ru48IMK0-pUkE8I0ksItk0iwWVOhghA-GP-7Pw,472
178
178
  linq/types/phonenumber_list_response.py,sha256=Om7UusgPWl6Y_vbuQz2LY-Fdo8f8Mjjlzc9ARSCNMLU,953
@@ -193,11 +193,11 @@ linq/types/reply_to_param.py,sha256=vW2s-ARICB29XzgwQy0dtx4XQ8KZPkTR8PTYKBVXEK4,
193
193
  linq/types/reputation_action_item.py,sha256=b2Kp_DWSsVPSJ-XJ_K4A1nJIN3ZI4xsCeIpFAzFeu6M,460
194
194
  linq/types/reputation_audit.py,sha256=Q4-g_n0YmI0xuACIfy7PdUHjUyJX0rS4RF4Fp9t7nnA,901
195
195
  linq/types/reputation_audit_started.py,sha256=JWNMoPUXbUlwgdVEgf6FVoUFo1SXm9z8v2p4zeAikXc,518
196
- linq/types/reputation_driver.py,sha256=Vpj4XJ05vsQYyfgB--dlAqkv_6_SsPeDEgqju3JsGJc,2758
196
+ linq/types/reputation_driver.py,sha256=8Ct6WNy6gclIwhQly5V6MVJ956QLYVFbla-fmIaRpEw,2760
197
197
  linq/types/reputation_driver_key.py,sha256=3wO41sgv61_wfV1rSyqjznD_pQeAKlTmdqVmP3Xu8Sw,374
198
198
  linq/types/reputation_evidence.py,sha256=kPvkQG9vDFFNYr9oI8fYKrpI398vARrwTVNzyfLecaA,850
199
199
  linq/types/reputation_opt_out_chat.py,sha256=JlXtMh6hFogzBnj6k17N8_gIr1tdGhRuQG72G5mLd14,374
200
- linq/types/reputation_report.py,sha256=Qfb55LZBEEFP973kJ0U35xqhImig_DVjDrtvf5lIGNw,2283
200
+ linq/types/reputation_report.py,sha256=mOlT3pygF2mrsi6HwfrYQNywFyOAqwwPAhlAe5SwhD4,2528
201
201
  linq/types/reputation_unhealthy_chat.py,sha256=xKLVBiZ8CSJY3eXpDOKbbyxVU4rbjxmFs-JZ6Mzy0UQ,813
202
202
  linq/types/schemas_media_part_response.py,sha256=FQDn6dRtjaffytIBcyCvh3mzjI8zQGumCJMIfmglv5U,648
203
203
  linq/types/schemas_message_effect.py,sha256=YsHH-ym9WLnHhNdfXCGi_ki-CvXNem4wr2283_YpWXA,517
@@ -213,7 +213,7 @@ linq/types/supported_content_type.py,sha256=7BPbFv-Bh9WV7bAQLgeIQjv_FjLDoZINpwZ2
213
213
  linq/types/team_member_added_webhook_event.py,sha256=WJovn72vQ_E7jBIKaw81kUcLu8quDYUQGvPTodUwVkY,12581
214
214
  linq/types/team_member_signed_in_webhook_event.py,sha256=NQXYHKTQwVq6zoyscA9Ty-tNXxwe02akWSAP6P9CG68,12587
215
215
  linq/types/team_member_signed_out_webhook_event.py,sha256=ERs_-nEU5xRUq11mU7knEF559Tdix-6spSk__BAXroc,12589
216
- linq/types/text_part_param.py,sha256=md-SaxZTtldwH_LcHAk7V465XA2e6k_FjngpPjKMyWU,4291
216
+ linq/types/text_part_param.py,sha256=AaZkFfvHiaZjEJcbJ0tbDvp1xp-yggchUoG_A9sZ-Zc,4647
217
217
  linq/types/unwrap_webhook_event.py,sha256=BCXPVbKY2IV_tBg7sJCyTakd_WacpYpR64Ty7qWj8zc,9614
218
218
  linq/types/webhook_event_list_response.py,sha256=ntF6w8BbSWYqAJzk--uaNnFxEVUxgWfzSMo7PJZPsPs,543
219
219
  linq/types/webhook_event_type.py,sha256=M573wOIXHZX8TMa26oct05kJ_TAQWz0ncJk0-pXkEp4,2226
@@ -266,7 +266,7 @@ linq/types/shared_params/__init__.py,sha256=FZWRsA1D5DW6IXxenxo9U8-bDW6YiizL-xaw
266
266
  linq/types/shared_params/reaction_type.py,sha256=MP4ekeDAr9lK0wqdvl6FMVa5s0j2w6JhwF8TcF48aSA,317
267
267
  linq/types/shared_params/service_type.py,sha256=AV_VS3d0v059_wou2dts8Jy-NzbGFXa3_VRRpG42N48,259
268
268
  linq/types/shared_params/text_decoration.py,sha256=H-ph17ldBaFRNhajm77DfqjjtQbTNFJj9sepoHHcD80,881
269
- linq_python-0.70.1.dist-info/METADATA,sha256=FI8v9652tlGk6jEj-77vYIHpcqCBTHoeXawy82rSry4,18056
270
- linq_python-0.70.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
271
- linq_python-0.70.1.dist-info/licenses/LICENSE,sha256=zP4mO5gBwuMBJx2-sVWVdjklSfevmIQT68JUQfvjy40,11341
272
- linq_python-0.70.1.dist-info/RECORD,,
269
+ linq_python-0.71.0.dist-info/METADATA,sha256=VuwQZBUnslrJNkjG_7u3oGejGtNvdvOFjbkdk5WDheE,18056
270
+ linq_python-0.71.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
271
+ linq_python-0.71.0.dist-info/licenses/LICENSE,sha256=zP4mO5gBwuMBJx2-sVWVdjklSfevmIQT68JUQfvjy40,11341
272
+ linq_python-0.71.0.dist-info/RECORD,,