linq-python 0.67.6__py3-none-any.whl → 0.68.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.67.6" # x-release-please-version
4
+ __version__ = "0.68.1" # x-release-please-version
@@ -529,8 +529,10 @@ class MessagesResource(SyncAPIResource):
529
529
  **Stickers** are iMessage-only and cannot be removed, so `operation: "remove"`
530
530
  with `type: "sticker"` is rejected. Position, size and rotation are optional via
531
531
  `placement`, and can be changed afterwards with
532
- `PATCH /v3/messages/{messageId}/reactions/{reactionId}`. An animated image peels
533
- as an animated sticker, in whatever shape the file already has.
532
+ `PATCH /v3/messages/{messageId}/reactions/{reactionId}`. A GIF with a
533
+ transparent background peels as an animated sticker, in the shape of the file. A
534
+ GIF with a solid background has its subject cut out and peels as a still; if no
535
+ subject is found, it peels as-is.
534
536
 
535
537
  **Polls** take stickers only. Any tapback on a poll message — standard or
536
538
  `custom` — is rejected with a 400.
@@ -1368,8 +1370,10 @@ class AsyncMessagesResource(AsyncAPIResource):
1368
1370
  **Stickers** are iMessage-only and cannot be removed, so `operation: "remove"`
1369
1371
  with `type: "sticker"` is rejected. Position, size and rotation are optional via
1370
1372
  `placement`, and can be changed afterwards with
1371
- `PATCH /v3/messages/{messageId}/reactions/{reactionId}`. An animated image peels
1372
- as an animated sticker, in whatever shape the file already has.
1373
+ `PATCH /v3/messages/{messageId}/reactions/{reactionId}`. A GIF with a
1374
+ transparent background peels as an animated sticker, in the shape of the file. A
1375
+ GIF with a solid background has its subject cut out and peels as a still; if no
1376
+ subject is found, it peels as-is.
1373
1377
 
1374
1378
  **Polls** take stickers only. Any tapback on a poll message — standard or
1375
1379
  `custom` — is rejected with a 400.
@@ -30,8 +30,9 @@ class MediaPartParam(TypedDict, total=False):
30
30
  background. An image that has already been cut out is sent as-is. If no subject
31
31
  can be found, the image sends as an ordinary photo.
32
32
 
33
- An animated image sends as an animated sticker, in whatever shape the file
34
- already has — the cut-out does not apply to it.
33
+ A GIF with a transparent background sends as an animated sticker, in the shape
34
+ of the file. A GIF with a solid background has its subject cut out and sends as
35
+ a still; if no subject is found, it sends as-is.
35
36
 
36
37
  **iMessage only.** On SMS/RCS the flag is ignored and the image sends as a
37
38
  photo.
@@ -127,6 +127,22 @@ class Placement(TypedDict, total=False):
127
127
  recipient's screen renders narrower than the sender's.
128
128
  """
129
129
 
130
+ anchor: Literal["top_left", "top", "top_right", "left", "center", "right", "bottom_left", "bottom", "bottom_right"]
131
+ """Which point of the sticker sits at `x`/`y`.
132
+
133
+ Omit it to place the sticker's centre there, as without `anchor`.
134
+
135
+ Use it to line a sticker up with the bubble's edges:
136
+ `x: 1, y: 0, anchor: "bottom_right"` rests the sticker on the bubble's top-right
137
+ corner, right edges flush. With `anchor` set, `x`/`y` past the bubble's edge are
138
+ measured in sticker widths/heights, so `y: -0.1` lifts it clear by the same gap
139
+ on every message. A sticker never extends past the bubble's left edge.
140
+
141
+ With `anchor` set, `scale` is the size on an iPhone on every message, and the
142
+ edges stay lined up on every device. Other screens scale the sticker with the
143
+ bubble.
144
+ """
145
+
130
146
  rotation: float
131
147
  """Clockwise rotation in degrees."""
132
148
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import Required, Annotated, TypedDict
5
+ from typing_extensions import Literal, Required, Annotated, TypedDict
6
6
 
7
7
  from .._utils import PropertyInfo
8
8
 
@@ -64,6 +64,22 @@ class Placement(TypedDict, total=False):
64
64
  recipient's screen renders narrower than the sender's.
65
65
  """
66
66
 
67
+ anchor: Literal["top_left", "top", "top_right", "left", "center", "right", "bottom_left", "bottom", "bottom_right"]
68
+ """Which point of the sticker sits at `x`/`y`.
69
+
70
+ Omit it to place the sticker's centre there, as without `anchor`.
71
+
72
+ Use it to line a sticker up with the bubble's edges:
73
+ `x: 1, y: 0, anchor: "bottom_right"` rests the sticker on the bubble's top-right
74
+ corner, right edges flush. With `anchor` set, `x`/`y` past the bubble's edge are
75
+ measured in sticker widths/heights, so `y: -0.1` lifts it clear by the same gap
76
+ on every message. A sticker never extends past the bubble's left edge.
77
+
78
+ With `anchor` set, `scale` is the size on an iPhone on every message, and the
79
+ edges stay lined up on every device. Other screens scale the sticker with the
80
+ bubble.
81
+ """
82
+
67
83
  rotation: float
68
84
  """Clockwise rotation in degrees."""
69
85
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: linq-python
3
- Version: 0.67.6
3
+ Version: 0.68.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=4W2qR4ssgjBVJnby0e3R-JHECXI1p94lUxhJ12ceP5I,157
14
+ linq/_version.py,sha256=K3kbbL6ZMFEvJPIijyenPIXp2FCNThlx0vrN7XxrohY,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
@@ -56,7 +56,7 @@ linq/resources/chats/participants.py,sha256=8Y0Qo84yWIDF9YJ-wm1s5fatPPkKs2cD8dGh
56
56
  linq/resources/chats/polls.py,sha256=EloFxr2I0uqfi9Tq0_mOS6dvcWU-QQHwAP5tsFXViQQ,20862
57
57
  linq/resources/chats/typing.py,sha256=ZZeWq9CYJHvphVcwJ5lyFs4meKkSs3GVzcZLKbGi5q0,16022
58
58
  linq/resources/messages/__init__.py,sha256=-SXl5iP6itR7jvnqCnGfOA2dDf-CZBBOpSYnzzKwqmg,1002
59
- linq/resources/messages/messages.py,sha256=GPYQQlBWk1pMVprTBfGRUW8s9zNDaMAi0w1jNGTCLLc,127376
59
+ linq/resources/messages/messages.py,sha256=Dndks6I3hz8JxAqgRn2dArcdLzbahOngn_NzQQfuEHA,127648
60
60
  linq/resources/messages/poll.py,sha256=bFSv54zzyKeg4M-X1DHQj45AoVJY-m0HclJVXvxW-QE,28795
61
61
  linq/types/__init__.py,sha256=PqqYpr_iTVsw9tayEtUfC1YHx2uuKUDQAiM0hF3BY0g,17785
62
62
  linq/types/api_token_activated_webhook_event.py,sha256=v58QDQhRyWbiw_E5_uuyCT4TwPoWWDD43JyFc9nP5bk,12585
@@ -126,9 +126,9 @@ linq/types/inline_sticker_param.py,sha256=b-8z8CYUPhIeVwa9AucuAZiuw6-4YX1OyMigzW
126
126
  linq/types/link_part_param.py,sha256=gVV83xRuKhwyByrcNEh5DtsITOvYkm2YePLYPHdfzqY,684
127
127
  linq/types/location_sharing_started_webhook_event.py,sha256=0t29h99HmQnOCS7X_sv9PmLDimNNak4Ln0N0MiX7eaE,4215
128
128
  linq/types/location_sharing_stopped_webhook_event.py,sha256=rSnZYInEk0QcX2tvWtNT_5M4y7Tej-qHECh818bVadQ,4091
129
- linq/types/media_part_param.py,sha256=778syq5UtSByCS0XqbVy1R9XI17dpjzDcC6BZ2C2R5k,2839
129
+ linq/types/media_part_param.py,sha256=j5Khi5Gg9_2X7ngEbeJLQ3_yeYsQw5Sgbnc3lPVXfYE,2926
130
130
  linq/types/message.py,sha256=ocsryWmyrgohqj2_iWGMVw98bzEDMsPIT1iwrwBU3EY,8185
131
- linq/types/message_add_reaction_params.py,sha256=tm0kHXTiZx2WzFRrstPH_o68m2UcLOBSX0Uw0CHMDUE,5365
131
+ linq/types/message_add_reaction_params.py,sha256=h3ag3bwjTzeNb0ZfOTyEOwzI8YGy_i0BfYqwE7wvjDc,6180
132
132
  linq/types/message_add_reaction_response.py,sha256=FiZTc7e89QqkhJL696vGbtxmXe668IIuhgu1tWJMYnw,341
133
133
  linq/types/message_content_param.py,sha256=KO_Vd6x19pjZZRTeZRcZlpJAo3uahKiuGL82wqEfuJM,11918
134
134
  linq/types/message_create_params.py,sha256=p0wj9JgdD51HIDH0wG6uYUrPOXJMatZVAwt9C-vPK4c,4120
@@ -146,7 +146,7 @@ linq/types/message_sent_webhook_event.py,sha256=bzjaDYOVq-A8haX9DWYXab1Fim0mk-0H
146
146
  linq/types/message_update_app_card_params.py,sha256=ma9RqlEb0p59U3qj4QvrWy8l-EoJx9mDvuiMfkLdZOc,6055
147
147
  linq/types/message_update_app_card_response.py,sha256=vtMECaYkCSo2gAgDr8muu_aTt_QCR2lFgkdfc1hIQ6c,497
148
148
  linq/types/message_update_params.py,sha256=LODGwTIkbQRd8jfs-XOXSAm6z_f6bhPEvkqbjWD-spQ,414
149
- linq/types/message_update_sticker_placement_params.py,sha256=ErZm8ynyAK3H4o_XAosf7Abi8QyEEZEbaD7KNOhSoco,3277
149
+ linq/types/message_update_sticker_placement_params.py,sha256=yUsnOOQEZ6Ly28E8MB7D7EoIxsJH-wZ6EAyCy5M_zgw,4101
150
150
  linq/types/message_update_sticker_placement_response.py,sha256=7QQFvOW2kvfi8xGoG9YzGSX9Nt9U9ACUKuY_v9tg4m8,364
151
151
  linq/types/participant_added_webhook_event.py,sha256=rryjic-2rOlbUTdAXXW9zH7T4SAAofsUQ-ZY6Q00GCw,1950
152
152
  linq/types/participant_removed_webhook_event.py,sha256=dgbT2-ZnUobA5HLWHdkxD0z0XWlB6aKs98PpBDHNWIg,1968
@@ -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.67.6.dist-info/METADATA,sha256=yQfmmPnry4GZCFwtIEoeEXfghoqV-vrcndaxCovTlX8,18056
270
- linq_python-0.67.6.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
271
- linq_python-0.67.6.dist-info/licenses/LICENSE,sha256=zP4mO5gBwuMBJx2-sVWVdjklSfevmIQT68JUQfvjy40,11341
272
- linq_python-0.67.6.dist-info/RECORD,,
269
+ linq_python-0.68.1.dist-info/METADATA,sha256=PJKl7saJgvy8aXOOc_9iBNjU7ZPssptrdEB8vRfbIc0,18056
270
+ linq_python-0.68.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
271
+ linq_python-0.68.1.dist-info/licenses/LICENSE,sha256=zP4mO5gBwuMBJx2-sVWVdjklSfevmIQT68JUQfvjy40,11341
272
+ linq_python-0.68.1.dist-info/RECORD,,