linq-python 0.71.4__py3-none-any.whl → 0.72.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.71.4" # x-release-please-version
4
+ __version__ = "0.72.0" # x-release-please-version
@@ -99,6 +99,11 @@ class Data(BaseModel):
99
99
 
100
100
  Describes which part of a message was edited and when. Only text parts can be edited.
101
101
  Only available for subscriptions using `webhook_version: "2026-02-03"`.
102
+
103
+ Unlike `message.received`, reactions and poll events, an edit does not carry
104
+ `device_id`: we cannot yet identify the device an edit came from. Any device on the
105
+ sender's Apple ID can edit a message, so the original message's `device_id` does not
106
+ tell you who made the edit.
102
107
  """
103
108
 
104
109
  id: str
@@ -143,6 +148,11 @@ class MessageEditedWebhookEvent(BaseModel):
143
148
 
144
149
  Describes which part of a message was edited and when. Only text parts can be
145
150
  edited. Only available for subscriptions using `webhook_version: "2026-02-03"`.
151
+
152
+ Unlike `message.received`, reactions and poll events, an edit does not carry
153
+ `device_id`: we cannot yet identify the device an edit came from. Any device on
154
+ the sender's Apple ID can edit a message, so the original message's `device_id`
155
+ does not tell you who made the edit.
146
156
  """
147
157
 
148
158
  event_id: str
@@ -248,15 +248,18 @@ class MessageEventV2(BaseModel):
248
248
 
249
249
  device_first_seen_at: Optional[datetime] = None
250
250
  """
251
- When the sending device was first seen for this sender (the message time for a
252
- newly seen device). Absent for SMS/RCS and for outbound messages.
251
+ When the sending device was first seen for this sender (this item's time for a
252
+ newly seen device). Absent for SMS/RCS, for items from your own line, and when
253
+ the device could not be identified.
253
254
  """
254
255
 
255
256
  device_id: Optional[str] = None
256
- """An opaque identifier for the sending device.
257
-
258
- Pair it with `device_status` to tell a sender's devices apart, including after a
259
- new device has become `known`. Absent for SMS/RCS and for outbound messages.
257
+ """
258
+ An opaque identifier for the sending device, stable per device and the same
259
+ across messages, reactions and poll votes from it. Pair it with `device_status`
260
+ to tell a sender's devices apart, including after a new device has become
261
+ `known`. Absent for SMS/RCS, for items from your own line, and when the device
262
+ could not be identified.
260
263
  """
261
264
 
262
265
  device_status: Optional[Literal["first_contact", "known", "new"]] = None
@@ -75,6 +75,30 @@ class Data(BaseModel):
75
75
 
76
76
  updated_at: datetime
77
77
 
78
+ device_first_seen_at: Optional[datetime] = None
79
+ """
80
+ When the sending device was first seen for this sender (this item's time for a
81
+ newly seen device). Absent for SMS/RCS, for items from your own line, and when
82
+ the device could not be identified.
83
+ """
84
+
85
+ device_id: Optional[str] = None
86
+ """
87
+ An opaque identifier for the sending device, stable per device and the same
88
+ across messages, reactions and poll votes from it. Pair it with `device_status`
89
+ to tell a sender's devices apart, including after a new device has become
90
+ `known`. Absent for SMS/RCS, for items from your own line, and when the device
91
+ could not be identified.
92
+ """
93
+
94
+ device_status: Optional[Literal["first_contact", "known", "new"]] = None
95
+ """The device a sender used, relative to devices we've seen from them before.
96
+
97
+ `first_contact` = their first device (first message we've seen from this
98
+ sender); `known` = a device we've seen before; `new` = a device we have NOT seen
99
+ for a sender who already had one (the account/SIM-takeover signal).
100
+ """
101
+
78
102
  sender_handle: Optional[ChatHandle] = None
79
103
  """The line that created the poll (is_me=false for an inbound poll)."""
80
104
 
@@ -70,6 +70,30 @@ class Data(BaseModel):
70
70
 
71
71
  service: str
72
72
 
73
+ device_first_seen_at: Optional[datetime] = None
74
+ """
75
+ When the sending device was first seen for this sender (this item's time for a
76
+ newly seen device). Absent for SMS/RCS, for items from your own line, and when
77
+ the device could not be identified.
78
+ """
79
+
80
+ device_id: Optional[str] = None
81
+ """
82
+ An opaque identifier for the sending device, stable per device and the same
83
+ across messages, reactions and poll votes from it. Pair it with `device_status`
84
+ to tell a sender's devices apart, including after a new device has become
85
+ `known`. Absent for SMS/RCS, for items from your own line, and when the device
86
+ could not be identified.
87
+ """
88
+
89
+ device_status: Optional[Literal["first_contact", "known", "new"]] = None
90
+ """The device a sender used, relative to devices we've seen from them before.
91
+
92
+ `first_contact` = their first device (first message we've seen from this
93
+ sender); `known` = a device we've seen before; `new` = a device we have NOT seen
94
+ for a sender who already had one (the account/SIM-takeover signal).
95
+ """
96
+
73
97
  zero_retention: Optional[bool] = None
74
98
  """True when zero-day-retention applies to this update.
75
99
 
@@ -38,6 +38,30 @@ class Data(BaseModel):
38
38
 
39
39
  service: str
40
40
 
41
+ device_first_seen_at: Optional[datetime] = None
42
+ """
43
+ When the sending device was first seen for this sender (this item's time for a
44
+ newly seen device). Absent for SMS/RCS, for items from your own line, and when
45
+ the device could not be identified.
46
+ """
47
+
48
+ device_id: Optional[str] = None
49
+ """
50
+ An opaque identifier for the sending device, stable per device and the same
51
+ across messages, reactions and poll votes from it. Pair it with `device_status`
52
+ to tell a sender's devices apart, including after a new device has become
53
+ `known`. Absent for SMS/RCS, for items from your own line, and when the device
54
+ could not be identified.
55
+ """
56
+
57
+ device_status: Optional[Literal["first_contact", "known", "new"]] = None
58
+ """The device a sender used, relative to devices we've seen from them before.
59
+
60
+ `first_contact` = their first device (first message we've seen from this
61
+ sender); `known` = a device we've seen before; `new` = a device we have NOT seen
62
+ for a sender who already had one (the account/SIM-takeover signal).
63
+ """
64
+
41
65
  zero_retention: Optional[bool] = None
42
66
  """True when this poll is on a zero-day-retention line.
43
67
 
@@ -38,6 +38,30 @@ class Data(BaseModel):
38
38
 
39
39
  service: str
40
40
 
41
+ device_first_seen_at: Optional[datetime] = None
42
+ """
43
+ When the sending device was first seen for this sender (this item's time for a
44
+ newly seen device). Absent for SMS/RCS, for items from your own line, and when
45
+ the device could not be identified.
46
+ """
47
+
48
+ device_id: Optional[str] = None
49
+ """
50
+ An opaque identifier for the sending device, stable per device and the same
51
+ across messages, reactions and poll votes from it. Pair it with `device_status`
52
+ to tell a sender's devices apart, including after a new device has become
53
+ `known`. Absent for SMS/RCS, for items from your own line, and when the device
54
+ could not be identified.
55
+ """
56
+
57
+ device_status: Optional[Literal["first_contact", "known", "new"]] = None
58
+ """The device a sender used, relative to devices we've seen from them before.
59
+
60
+ `first_contact` = their first device (first message we've seen from this
61
+ sender); `known` = a device we've seen before; `new` = a device we have NOT seen
62
+ for a sender who already had one (the account/SIM-takeover signal).
63
+ """
64
+
41
65
  zero_retention: Optional[bool] = None
42
66
  """True when this poll is on a zero-day-retention line.
43
67
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  from typing import Optional
4
4
  from datetime import datetime
5
+ from typing_extensions import Literal
5
6
 
6
7
  from pydantic import Field as FieldInfo
7
8
 
@@ -61,6 +62,30 @@ class ReactionEventBase(BaseModel):
61
62
  Null otherwise.
62
63
  """
63
64
 
65
+ device_first_seen_at: Optional[datetime] = None
66
+ """
67
+ When the sending device was first seen for this sender (this item's time for a
68
+ newly seen device). Absent for SMS/RCS, for items from your own line, and when
69
+ the device could not be identified.
70
+ """
71
+
72
+ device_id: Optional[str] = None
73
+ """
74
+ An opaque identifier for the sending device, stable per device and the same
75
+ across messages, reactions and poll votes from it. Pair it with `device_status`
76
+ to tell a sender's devices apart, including after a new device has become
77
+ `known`. Absent for SMS/RCS, for items from your own line, and when the device
78
+ could not be identified.
79
+ """
80
+
81
+ device_status: Optional[Literal["first_contact", "known", "new"]] = None
82
+ """The device a sender used, relative to devices we've seen from them before.
83
+
84
+ `first_contact` = their first device (first message we've seen from this
85
+ sender); `known` = a device we've seen before; `new` = a device we have NOT seen
86
+ for a sender who already had one (the account/SIM-takeover signal).
87
+ """
88
+
64
89
  from_: Optional[str] = FieldInfo(alias="from", default=None)
65
90
  """DEPRECATED: Use from_handle instead.
66
91
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: linq-python
3
- Version: 0.71.4
3
+ Version: 0.72.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=5wOghXewnWmM_Eywd-vMNX7eu_7EVtVkAeiM5dgd3i4,157
14
+ linq/_version.py,sha256=ebOpWD6lar6VYguheF3JEvaw0FQkTy42ezunVuHj1Ss,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
@@ -134,10 +134,10 @@ linq/types/message_content_param.py,sha256=KO_Vd6x19pjZZRTeZRcZlpJAo3uahKiuGL82w
134
134
  linq/types/message_create_params.py,sha256=p0wj9JgdD51HIDH0wG6uYUrPOXJMatZVAwt9C-vPK4c,4120
135
135
  linq/types/message_create_response.py,sha256=B8nD1TOGKNgnCCaodXvUbUDaD9ov9V0s8fFn_5DXi_Y,2254
136
136
  linq/types/message_delivered_webhook_event.py,sha256=GmF5wEKFD69mJTWf-PFoh6PewyHCe_fXL5tgTcHrcgc,2334
137
- linq/types/message_edited_webhook_event.py,sha256=F8VlzLoPob_eJY4ly-xMNE9YWh63SMLFWyGSUhMpD4o,6521
137
+ linq/types/message_edited_webhook_event.py,sha256=CvLiiFGjLYSUghJOEtRmmtlF1znB9TY7VapUA1S3n3Y,7103
138
138
  linq/types/message_effect.py,sha256=XDdqHMnZve_yzCC3fkQ7remgS2R6lgXmf7zJt911MSk,674
139
139
  linq/types/message_effect_param.py,sha256=fjMw5dezdskvm97XNqYAxL2BZXhepYGmW1hTK9J7d5s,649
140
- linq/types/message_event_v2.py,sha256=dDnIIwhMW1LegFu2vcgNRSwhxj2p5UOpTv9Qg_XseUU,11285
140
+ linq/types/message_event_v2.py,sha256=NWaBkljwL2lWcBgtvf0H-jOTUIqRHxsXD95vUDng_2E,11481
141
141
  linq/types/message_failed_webhook_event.py,sha256=A45yNXLqkoRtoWyDIP2jwJJkAvLOWLnJcm2gV6MMYxY,3609
142
142
  linq/types/message_list_messages_thread_params.py,sha256=5cL7SEmcApDXDgWXnwg_F9_kwfac7PWQDLDI1XsDeEM,537
143
143
  linq/types/message_read_webhook_event.py,sha256=DGETV-j30E1AuOc9jdwnDD7qhVxsQkKwvlcTFGBsy4I,2319
@@ -180,13 +180,13 @@ linq/types/poll_delivered_webhook_event.py,sha256=qaGeqXAxx194eGzSXc14g453suObXk
180
180
  linq/types/poll_failed_webhook_event.py,sha256=fUtSqJ7VVsdnEUdrNe6GOnDTCw7IViqkrByE-KRZcPM,3738
181
181
  linq/types/poll_reaction_added_webhook_event.py,sha256=V3MyPUOY6whLMRPW-L0VTCUH_49t-OWy2KQIjqLhCe4,1664
182
182
  linq/types/poll_read_webhook_event.py,sha256=p9vXlUkktQHplX3-j89DxLZyo8WthpeC-jl532l0rNU,3568
183
- linq/types/poll_received_webhook_event.py,sha256=5BqpX5tiKIlO-NF1uIDmoaT_K9RjQa-R2F6iR48-c9A,3473
183
+ linq/types/poll_received_webhook_event.py,sha256=AEX5froqSZfim25tt-kiahLbR9rE0dZ4t-P4Gv0QQfM,4558
184
184
  linq/types/poll_sent_webhook_event.py,sha256=kWXAwkn8ap6NcRYTQqwORwMqVGJ50hkII8L9k7kUm0Q,3568
185
- linq/types/poll_updated_webhook_event.py,sha256=8SN4UA1OrzLqU2pLUTgeO39Bhuntady9Nfrdp5EmNX0,3389
186
- linq/types/poll_vote_added_webhook_event.py,sha256=en0EMNhQm7dGrElDC_mf57AT_4AXF6tImOt29uGXAnE,2425
187
- linq/types/poll_vote_removed_webhook_event.py,sha256=Kc2PNF8CFzywd9Wx3lW2a2OMbQNINTHeZgKZmO-hqKA,2431
185
+ linq/types/poll_updated_webhook_event.py,sha256=dHFAJZZ-tyJrufAguBGmE_uEGqq_S1SN5rQmnKFQDjI,4474
186
+ linq/types/poll_vote_added_webhook_event.py,sha256=A78jqY0wm0y9eQf6Ob2CDN-6gGW7LGIpYic2RUF84Xo,3510
187
+ linq/types/poll_vote_removed_webhook_event.py,sha256=GVoWde8bBfiKQx5OrnQs-yApEDOO5F1GsvC2GN7m6GY,3516
188
188
  linq/types/reaction_added_webhook_event.py,sha256=k5ycd7UFoWGR1yYh3HdbUFrov7DLg8XVE9f3RbP_kMA,1434
189
- linq/types/reaction_event_base.py,sha256=AcjYPz0Cnx-eDLiQqDit9hwIyqv1Xw-MMaUfaLmkebQ,3320
189
+ linq/types/reaction_event_base.py,sha256=XNMh4O_ulmzjuFTiO-lOQhUOPtYM2md8Xca4ismXIv4,4443
190
190
  linq/types/reaction_removed_webhook_event.py,sha256=ebqJnHCXScvgwoifHpJLqI4HnY90_lvveSIwQ26UXTQ,1442
191
191
  linq/types/reply_to.py,sha256=660HtuDOD2y7X5yOQS64O8z9b-2t51YY9FBIoac6iSk,567
192
192
  linq/types/reply_to_param.py,sha256=vW2s-ARICB29XzgwQy0dtx4XQ8KZPkTR8PTYKBVXEK4,608
@@ -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.71.4.dist-info/METADATA,sha256=ZoCSD6PTwG0K2Dg6-paOTUDZ734pgNSOVR639ATcoD0,18056
270
- linq_python-0.71.4.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
271
- linq_python-0.71.4.dist-info/licenses/LICENSE,sha256=zP4mO5gBwuMBJx2-sVWVdjklSfevmIQT68JUQfvjy40,11341
272
- linq_python-0.71.4.dist-info/RECORD,,
269
+ linq_python-0.72.0.dist-info/METADATA,sha256=n5zbmAXZ6JcMBwhD9n6UTBnXcs3tHV7if4dRjcT8T8c,18056
270
+ linq_python-0.72.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
271
+ linq_python-0.72.0.dist-info/licenses/LICENSE,sha256=zP4mO5gBwuMBJx2-sVWVdjklSfevmIQT68JUQfvjy40,11341
272
+ linq_python-0.72.0.dist-info/RECORD,,