linq-python 0.62.0__py3-none-any.whl → 0.63.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.62.0" # x-release-please-version
4
+ __version__ = "0.63.0" # x-release-please-version
@@ -2,6 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from typing_extensions import Literal
6
+
5
7
  import httpx
6
8
 
7
9
  from ..types import available_number_retrieve_params
@@ -64,6 +66,7 @@ class AvailableNumberResource(SyncAPIResource):
64
66
  *,
65
67
  exclude_from: SequenceNotStr[str] | Omit = omit,
66
68
  to: SequenceNotStr[str] | Omit = omit,
69
+ type: Literal["RCS", "iMessage"] | Omit = omit,
67
70
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
68
71
  # The extra values given here take precedence over values defined on the client or passed to this method.
69
72
  extra_headers: Headers | None = None,
@@ -90,6 +93,9 @@ class AvailableNumberResource(SyncAPIResource):
90
93
  recipients so they can save the line as a contact. Lines you pass in
91
94
  `exclude_from` are left out of the vCard too.
92
95
 
96
+ Pass `type` to pick only from one kind of line — for example `RCS` to get one of
97
+ your Android (RCS-only) lines. Omit it to choose from all of them.
98
+
93
99
  Args:
94
100
  exclude_from: Lines (E.164) to leave out of this selection. Applies to the returned
95
101
  `phone_number`, to the sticky choice when `to` is given, and to the vCard's
@@ -104,6 +110,16 @@ class AvailableNumberResource(SyncAPIResource):
104
110
  an existing chat with these recipients makes the choice sticky. Repeat the
105
111
  parameter for multiple recipients.
106
112
 
113
+ type: Only return a line of this kind. Case-insensitive.
114
+
115
+ - `RCS`: Android lines, which send RCS (and SMS) only.
116
+ - `iMessage`: iMessage lines.
117
+
118
+ Applies to the returned `phone_number`, to the sticky choice when `to` is given
119
+ (an existing chat on another kind of line is not returned), and to the vCard's
120
+ backup numbers. Omit it to choose from all your lines. Returns 503 if you have
121
+ no available line of this kind.
122
+
107
123
  extra_headers: Send extra headers
108
124
 
109
125
  extra_query: Add additional query parameters to the request
@@ -123,6 +139,7 @@ class AvailableNumberResource(SyncAPIResource):
123
139
  {
124
140
  "exclude_from": exclude_from,
125
141
  "to": to,
142
+ "type": type,
126
143
  },
127
144
  available_number_retrieve_params.AvailableNumberRetrieveParams,
128
145
  ),
@@ -174,6 +191,7 @@ class AsyncAvailableNumberResource(AsyncAPIResource):
174
191
  *,
175
192
  exclude_from: SequenceNotStr[str] | Omit = omit,
176
193
  to: SequenceNotStr[str] | Omit = omit,
194
+ type: Literal["RCS", "iMessage"] | Omit = omit,
177
195
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
178
196
  # The extra values given here take precedence over values defined on the client or passed to this method.
179
197
  extra_headers: Headers | None = None,
@@ -200,6 +218,9 @@ class AsyncAvailableNumberResource(AsyncAPIResource):
200
218
  recipients so they can save the line as a contact. Lines you pass in
201
219
  `exclude_from` are left out of the vCard too.
202
220
 
221
+ Pass `type` to pick only from one kind of line — for example `RCS` to get one of
222
+ your Android (RCS-only) lines. Omit it to choose from all of them.
223
+
203
224
  Args:
204
225
  exclude_from: Lines (E.164) to leave out of this selection. Applies to the returned
205
226
  `phone_number`, to the sticky choice when `to` is given, and to the vCard's
@@ -214,6 +235,16 @@ class AsyncAvailableNumberResource(AsyncAPIResource):
214
235
  an existing chat with these recipients makes the choice sticky. Repeat the
215
236
  parameter for multiple recipients.
216
237
 
238
+ type: Only return a line of this kind. Case-insensitive.
239
+
240
+ - `RCS`: Android lines, which send RCS (and SMS) only.
241
+ - `iMessage`: iMessage lines.
242
+
243
+ Applies to the returned `phone_number`, to the sticky choice when `to` is given
244
+ (an existing chat on another kind of line is not returned), and to the vCard's
245
+ backup numbers. Omit it to choose from all your lines. Returns 503 if you have
246
+ no available line of this kind.
247
+
217
248
  extra_headers: Send extra headers
218
249
 
219
250
  extra_query: Add additional query parameters to the request
@@ -233,6 +264,7 @@ class AsyncAvailableNumberResource(AsyncAPIResource):
233
264
  {
234
265
  "exclude_from": exclude_from,
235
266
  "to": to,
267
+ "type": type,
236
268
  },
237
269
  available_number_retrieve_params.AvailableNumberRetrieveParams,
238
270
  ),
@@ -677,9 +677,9 @@ class MessagesResource(SyncAPIResource):
677
677
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
678
678
  ) -> MessageUpdateAppCardResponse:
679
679
  """
680
- Replaces a previously delivered `imessage_app` card on the recipient's screen
681
- with new content, instead of posting a new bubble (like a game move redrawing
682
- the board).
680
+ Replaces a previously sent `imessage_app` card on the recipient's screen with
681
+ new content, instead of posting a new bubble (like a game move redrawing the
682
+ board).
683
683
 
684
684
  The update is delivered as a **new message** with its own id and delivery
685
685
  lifecycle (`message.sent` / `message.delivered` / `message.failed` webhooks fire
@@ -690,8 +690,9 @@ class MessagesResource(SyncAPIResource):
690
690
 
691
691
  - The referenced message must be an `imessage_app` card sent by you (`400`
692
692
  otherwise — inbound cards cannot be updated).
693
- - The referenced card must already be delivered (`409` otherwise — retry after
694
- the `message.delivered` webhook for it).
693
+ - The referenced card must already be sent (`409` otherwise — retry after its
694
+ `message.sent` webhook, in both direct messages and group chats). An update
695
+ sent the instant that webhook arrives can still get one `409`; retry it.
695
696
  - The app identity (`team_id`, `bundle_id`, name) is inherited from the original
696
697
  card and cannot change; only `url`, `fallback_text`, and `layout` are
697
698
  replaced.
@@ -1465,9 +1466,9 @@ class AsyncMessagesResource(AsyncAPIResource):
1465
1466
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
1466
1467
  ) -> MessageUpdateAppCardResponse:
1467
1468
  """
1468
- Replaces a previously delivered `imessage_app` card on the recipient's screen
1469
- with new content, instead of posting a new bubble (like a game move redrawing
1470
- the board).
1469
+ Replaces a previously sent `imessage_app` card on the recipient's screen with
1470
+ new content, instead of posting a new bubble (like a game move redrawing the
1471
+ board).
1471
1472
 
1472
1473
  The update is delivered as a **new message** with its own id and delivery
1473
1474
  lifecycle (`message.sent` / `message.delivered` / `message.failed` webhooks fire
@@ -1478,8 +1479,9 @@ class AsyncMessagesResource(AsyncAPIResource):
1478
1479
 
1479
1480
  - The referenced message must be an `imessage_app` card sent by you (`400`
1480
1481
  otherwise — inbound cards cannot be updated).
1481
- - The referenced card must already be delivered (`409` otherwise — retry after
1482
- the `message.delivered` webhook for it).
1482
+ - The referenced card must already be sent (`409` otherwise — retry after its
1483
+ `message.sent` webhook, in both direct messages and group chats). An update
1484
+ sent the instant that webhook arrives can still get one `409`; retry it.
1483
1485
  - The app identity (`team_id`, `bundle_id`, name) is inherited from the original
1484
1486
  card and cannot change; only `url`, `fallback_text`, and `layout` are
1485
1487
  replaced.
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import TypedDict
5
+ from typing_extensions import Literal, TypedDict
6
6
 
7
7
  from .._types import SequenceNotStr
8
8
 
@@ -28,3 +28,15 @@ class AvailableNumberRetrieveParams(TypedDict, total=False):
28
28
  When provided, an existing chat with these recipients makes the choice sticky.
29
29
  Repeat the parameter for multiple recipients.
30
30
  """
31
+
32
+ type: Literal["RCS", "iMessage"]
33
+ """Only return a line of this kind. Case-insensitive.
34
+
35
+ - `RCS`: Android lines, which send RCS (and SMS) only.
36
+ - `iMessage`: iMessage lines.
37
+
38
+ Applies to the returned `phone_number`, to the sticky choice when `to` is given
39
+ (an existing chat on another kind of line is not returned), and to the vCard's
40
+ backup numbers. Omit it to choose from all your lines. Returns 503 if you have
41
+ no available line of this kind.
42
+ """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: linq-python
3
- Version: 0.62.0
3
+ Version: 0.63.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=eM2s6CqJ-yO1sMfXyP4O-xelkdvG8UUVnv4eQhlaHgg,157
14
+ linq/_version.py,sha256=dqQ7wYphG6zVsMHIJlAUe2_NNDElpGyegR-SXIjkUmc,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
@@ -31,7 +31,7 @@ linq/_utils/_utils.py,sha256=2nPOzDrPe2GADpLCRM4bNQS8Mu7LjEiCG_LJ2AAL6jg,13111
31
31
  linq/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
32
32
  linq/resources/__init__.py,sha256=AONqTz59mNy8Yg5oD53U0CQt3aWY-wj2QiXyQdGOJjc,8713
33
33
  linq/resources/attachments.py,sha256=iT67-6UKBA09OSpNd6eSgYgu4MnzZjEu260UQx2ZUEc,46049
34
- linq/resources/available_number.py,sha256=n486_XK_OfY0A2sPoQzUZSUlIUHejv2nM7fJUgLQ3lI,12809
34
+ linq/resources/available_number.py,sha256=u4eddgAgY--3X-vBSf6-BDBDlTA-QbxKhjj0AjCE1rA,14388
35
35
  linq/resources/blocked_handles.py,sha256=CVL9ol1vUAZUfwkwiYxE63m3PIQTieHEY5gPVZI6N04,14884
36
36
  linq/resources/capability.py,sha256=pDsfEnGkvCtnVdvE5VYMfQuaHKWROkE0DXVSPMEyeUQ,13040
37
37
  linq/resources/contact_card.py,sha256=PDdknp20dGeCjhGmXeNeR_L9WnaT1qc7DzCttTC25r8,19317
@@ -54,7 +54,7 @@ linq/resources/chats/participants.py,sha256=8Y0Qo84yWIDF9YJ-wm1s5fatPPkKs2cD8dGh
54
54
  linq/resources/chats/polls.py,sha256=EloFxr2I0uqfi9Tq0_mOS6dvcWU-QQHwAP5tsFXViQQ,20862
55
55
  linq/resources/chats/typing.py,sha256=ZZeWq9CYJHvphVcwJ5lyFs4meKkSs3GVzcZLKbGi5q0,16022
56
56
  linq/resources/messages/__init__.py,sha256=-SXl5iP6itR7jvnqCnGfOA2dDf-CZBBOpSYnzzKwqmg,1002
57
- linq/resources/messages/messages.py,sha256=ylDVY-kTn5CfL6eI7GzzuwuuVJY0n7ysE80mhNAaOX8,122094
57
+ linq/resources/messages/messages.py,sha256=BbJZAlYp5zQyX4M_7SkQCD9WizmW8h_DB2wVARMvVWo,122318
58
58
  linq/resources/messages/poll.py,sha256=bFSv54zzyKeg4M-X1DHQj45AoVJY-m0HclJVXvxW-QE,28795
59
59
  linq/types/__init__.py,sha256=MxKcUN557HA1lhLfydiBdbqW4A8a4R0ir-MaG4q6vIw,16155
60
60
  linq/types/api_token_activated_webhook_event.py,sha256=MiAzZm0CpvWqPakkk3_Q8wY7YYO35c8hUDvsnA4K7vA,12714
@@ -66,7 +66,7 @@ linq/types/api_token_renamed_webhook_event.py,sha256=uRUTGCV3RqW29UMj66sYDwNlBlN
66
66
  linq/types/attachment_create_params.py,sha256=jw68hl25ik8CCJ08t0_dcQpyAG_J8N_9oQzP5sshv_U,2361
67
67
  linq/types/attachment_create_response.py,sha256=_UiAI2ZYF_VAi_OoRmRExdzEcQ77IG8U57botnshdkY,1444
68
68
  linq/types/attachment_retrieve_response.py,sha256=trfa39YaDA6CCtRfI-7G_Xcc43BDQbUh7Lfdw5IJqKw,2751
69
- linq/types/available_number_retrieve_params.py,sha256=Bao3dSQcKWPZEIPNCRBLg8Hi8JrdazX51OBZ-qqwdA0,1063
69
+ linq/types/available_number_retrieve_params.py,sha256=Qg8aVyG8eMrab1J6M9drp20ytqVHyQUIg5jUJJh6-WU,1557
70
70
  linq/types/available_number_retrieve_response.py,sha256=A-Fn9yXeoekAjlrfI7ijYzt_oRnPJ809umrIJ2_Up6I,681
71
71
  linq/types/blocked_handle_block_params.py,sha256=4FqA4hhd4u2xT3Le_03bmgaeX0EQnwckHp4wh-HKBOA,526
72
72
  linq/types/blocked_handle_block_response.py,sha256=rEb1Tx2fhy2KSDwuhhOKyOj3UCFCVD4gkxkdutLGeCs,300
@@ -247,7 +247,7 @@ linq/types/shared_params/__init__.py,sha256=FZWRsA1D5DW6IXxenxo9U8-bDW6YiizL-xaw
247
247
  linq/types/shared_params/reaction_type.py,sha256=MP4ekeDAr9lK0wqdvl6FMVa5s0j2w6JhwF8TcF48aSA,317
248
248
  linq/types/shared_params/service_type.py,sha256=AV_VS3d0v059_wou2dts8Jy-NzbGFXa3_VRRpG42N48,259
249
249
  linq/types/shared_params/text_decoration.py,sha256=H-ph17ldBaFRNhajm77DfqjjtQbTNFJj9sepoHHcD80,881
250
- linq_python-0.62.0.dist-info/METADATA,sha256=5LlQs-2o9CBHaBrBGqSqzcNgZglzF3UVQvELe5BXuPk,18056
251
- linq_python-0.62.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
252
- linq_python-0.62.0.dist-info/licenses/LICENSE,sha256=zP4mO5gBwuMBJx2-sVWVdjklSfevmIQT68JUQfvjy40,11341
253
- linq_python-0.62.0.dist-info/RECORD,,
250
+ linq_python-0.63.0.dist-info/METADATA,sha256=dsGpv3gpoxGCEZCfefHtAXJrKg6OTwXOZpPdJ6Sly8Y,18056
251
+ linq_python-0.63.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
252
+ linq_python-0.63.0.dist-info/licenses/LICENSE,sha256=zP4mO5gBwuMBJx2-sVWVdjklSfevmIQT68JUQfvjy40,11341
253
+ linq_python-0.63.0.dist-info/RECORD,,