linq-python 0.71.5__py3-none-any.whl → 0.72.1__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.5" # x-release-please-version
4
+ __version__ = "0.72.1" # 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
@@ -32,10 +32,9 @@ class DataPollOption(BaseModel):
32
32
 
33
33
  creator_handle: ChatHandle
34
34
  """
35
- The participant who added this option (poll creator for the initial options;
36
- whoever added later ones). On a poll.updated this differs from the event's
37
- `sender_handle` whenever a remote participant added the option. Null when
38
- unknown.
35
+ The participant who added this option: the poll creator for the options the poll
36
+ was created with, whoever added it for later ones. On a poll.updated it matches
37
+ the event's `sender_handle`.
39
38
  """
40
39
 
41
40
  option_id: str
@@ -53,10 +53,9 @@ class DataPollOption(BaseModel):
53
53
 
54
54
  creator_handle: ChatHandle
55
55
  """
56
- The participant who added this option (poll creator for the initial options;
57
- whoever added later ones). On a poll.updated this differs from the event's
58
- `sender_handle` whenever a remote participant added the option. Null when
59
- unknown.
56
+ The participant who added this option: the poll creator for the options the poll
57
+ was created with, whoever added it for later ones. On a poll.updated it matches
58
+ the event's `sender_handle`.
60
59
  """
61
60
 
62
61
  option_id: str
@@ -32,10 +32,9 @@ class DataPollOption(BaseModel):
32
32
 
33
33
  creator_handle: ChatHandle
34
34
  """
35
- The participant who added this option (poll creator for the initial options;
36
- whoever added later ones). On a poll.updated this differs from the event's
37
- `sender_handle` whenever a remote participant added the option. Null when
38
- unknown.
35
+ The participant who added this option: the poll creator for the options the poll
36
+ was created with, whoever added it for later ones. On a poll.updated it matches
37
+ the event's `sender_handle`.
39
38
  """
40
39
 
41
40
  option_id: str
@@ -32,10 +32,9 @@ class DataPollOption(BaseModel):
32
32
 
33
33
  creator_handle: ChatHandle
34
34
  """
35
- The participant who added this option (poll creator for the initial options;
36
- whoever added later ones). On a poll.updated this differs from the event's
37
- `sender_handle` whenever a remote participant added the option. Null when
38
- unknown.
35
+ The participant who added this option: the poll creator for the options the poll
36
+ was created with, whoever added it for later ones. On a poll.updated it matches
37
+ the event's `sender_handle`.
39
38
  """
40
39
 
41
40
  option_id: str
@@ -75,6 +74,30 @@ class Data(BaseModel):
75
74
 
76
75
  updated_at: datetime
77
76
 
77
+ device_first_seen_at: Optional[datetime] = None
78
+ """
79
+ When the sending device was first seen for this sender (this item's time for a
80
+ newly seen device). Absent for SMS/RCS, for items from your own line, and when
81
+ the device could not be identified.
82
+ """
83
+
84
+ device_id: Optional[str] = None
85
+ """
86
+ An opaque identifier for the sending device, stable per device and the same
87
+ across messages, reactions and poll votes from it. Pair it with `device_status`
88
+ to tell a sender's devices apart, including after a new device has become
89
+ `known`. Absent for SMS/RCS, for items from your own line, and when the device
90
+ could not be identified.
91
+ """
92
+
93
+ device_status: Optional[Literal["first_contact", "known", "new"]] = None
94
+ """The device a sender used, relative to devices we've seen from them before.
95
+
96
+ `first_contact` = their first device (first message we've seen from this
97
+ sender); `known` = a device we've seen before; `new` = a device we have NOT seen
98
+ for a sender who already had one (the account/SIM-takeover signal).
99
+ """
100
+
78
101
  sender_handle: Optional[ChatHandle] = None
79
102
  """The line that created the poll (is_me=false for an inbound poll)."""
80
103
 
@@ -32,10 +32,9 @@ class DataPollOption(BaseModel):
32
32
 
33
33
  creator_handle: ChatHandle
34
34
  """
35
- The participant who added this option (poll creator for the initial options;
36
- whoever added later ones). On a poll.updated this differs from the event's
37
- `sender_handle` whenever a remote participant added the option. Null when
38
- unknown.
35
+ The participant who added this option: the poll creator for the options the poll
36
+ was created with, whoever added it for later ones. On a poll.updated it matches
37
+ the event's `sender_handle`.
39
38
  """
40
39
 
41
40
  option_id: str
@@ -22,10 +22,9 @@ class DataAddedOption(BaseModel):
22
22
 
23
23
  creator_handle: ChatHandle
24
24
  """
25
- The participant who added this option (poll creator for the initial options;
26
- whoever added later ones). On a poll.updated this differs from the event's
27
- `sender_handle` whenever a remote participant added the option. Null when
28
- unknown.
25
+ The participant who added this option: the poll creator for the options the poll
26
+ was created with, whoever added it for later ones. On a poll.updated it matches
27
+ the event's `sender_handle`.
29
28
  """
30
29
 
31
30
  option_id: str
@@ -58,18 +57,46 @@ class Data(BaseModel):
58
57
  """Chat info for poll webhook events."""
59
58
 
60
59
  direction: Literal["inbound", "outbound"]
60
+ """
61
+ Who added the option(s): `outbound` if your line did, `inbound` if another
62
+ participant did. It describes the add, not the poll, so adding an option to a
63
+ participant's poll is `outbound`.
64
+ """
61
65
 
62
66
  message_id: str
63
67
 
64
68
  sender_handle: ChatHandle
65
- """Your line — the one that received or sent this update.
66
-
67
- Always present. On an inbound update this is NOT who added the option: use
68
- `added_options[].creator_handle` for that, which will be the remote participant.
69
+ """
70
+ The participant who added the option(s): your line if you added them, otherwise
71
+ the participant who did. Independent of who created the poll. Always present.
69
72
  """
70
73
 
71
74
  service: str
72
75
 
76
+ device_first_seen_at: Optional[datetime] = None
77
+ """
78
+ When the sending device was first seen for this sender (this item's time for a
79
+ newly seen device). Absent for SMS/RCS, for items from your own line, and when
80
+ the device could not be identified.
81
+ """
82
+
83
+ device_id: Optional[str] = None
84
+ """
85
+ An opaque identifier for the sending device, stable per device and the same
86
+ across messages, reactions and poll votes from it. Pair it with `device_status`
87
+ to tell a sender's devices apart, including after a new device has become
88
+ `known`. Absent for SMS/RCS, for items from your own line, and when the device
89
+ could not be identified.
90
+ """
91
+
92
+ device_status: Optional[Literal["first_contact", "known", "new"]] = None
93
+ """The device a sender used, relative to devices we've seen from them before.
94
+
95
+ `first_contact` = their first device (first message we've seen from this
96
+ sender); `known` = a device we've seen before; `new` = a device we have NOT seen
97
+ for a sender who already had one (the account/SIM-takeover signal).
98
+ """
99
+
73
100
  zero_retention: Optional[bool] = None
74
101
  """True when zero-day-retention applies to this update.
75
102
 
@@ -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.5
3
+ Version: 0.72.1
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=gC2H123VzmW7X7qlhZlC4Uj08VsQOvqbsBclmPSoXDM,157
14
+ linq/_version.py,sha256=pHpzTZIEFN8vNCt9uWGoXUyiOz3gEbBm4uEc4tjVLC0,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
@@ -176,17 +176,17 @@ linq/types/phone_number_status_updated_webhook_event.py,sha256=FxwEX4gMNBhpmOry_
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
179
- linq/types/poll_delivered_webhook_event.py,sha256=qaGeqXAxx194eGzSXc14g453suObXkG5KrqPnRrhvc4,3583
180
- linq/types/poll_failed_webhook_event.py,sha256=fUtSqJ7VVsdnEUdrNe6GOnDTCw7IViqkrByE-KRZcPM,3738
179
+ linq/types/poll_delivered_webhook_event.py,sha256=9r1qThk2uWM5G4yc0F_4aCYVODMM7URJXy3xBrufRPs,3534
180
+ linq/types/poll_failed_webhook_event.py,sha256=cT_6nVdOYV9XDieVs3h6ee_89KYSnnQ9-H7dofROr3o,3689
181
181
  linq/types/poll_reaction_added_webhook_event.py,sha256=V3MyPUOY6whLMRPW-L0VTCUH_49t-OWy2KQIjqLhCe4,1664
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
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
182
+ linq/types/poll_read_webhook_event.py,sha256=rnWP3RuHRaA5k5V_M1mejBkGeRzsIgR8gIGC_CUNelI,3519
183
+ linq/types/poll_received_webhook_event.py,sha256=F62aj8vo5hl5EO7A_fh2O7QU9lFEpGUOwNupKLlI_sQ,4509
184
+ linq/types/poll_sent_webhook_event.py,sha256=2ob3bEvtvWXWxZKA3Wj5Ngi4uLO3-z7wDs4oPeBQIpg,3519
185
+ linq/types/poll_updated_webhook_event.py,sha256=DoI8zp9NHNEUxdQMlaButkY-rd7-_6ocUWo2UaHHAxk,4585
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.5.dist-info/METADATA,sha256=I894YO4yfsAS1TW6B2wcuWyBJEJss4gc17A4SZs7JRY,18056
270
- linq_python-0.71.5.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
271
- linq_python-0.71.5.dist-info/licenses/LICENSE,sha256=zP4mO5gBwuMBJx2-sVWVdjklSfevmIQT68JUQfvjy40,11341
272
- linq_python-0.71.5.dist-info/RECORD,,
269
+ linq_python-0.72.1.dist-info/METADATA,sha256=KS8TWOUXKMlQSa05WXdRvoCZnfK4RtIc21gaKJ-35ow,18056
270
+ linq_python-0.72.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
271
+ linq_python-0.72.1.dist-info/licenses/LICENSE,sha256=zP4mO5gBwuMBJx2-sVWVdjklSfevmIQT68JUQfvjy40,11341
272
+ linq_python-0.72.1.dist-info/RECORD,,