aiinbx 0.117.0__py3-none-any.whl → 0.141.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.
- aiinbx/_streaming.py +12 -10
- aiinbx/_version.py +1 -1
- aiinbx/resources/domains.py +4 -0
- aiinbx/resources/emails.py +4 -0
- aiinbx/resources/threads.py +4 -0
- {aiinbx-0.117.0.dist-info → aiinbx-0.141.0.dist-info}/METADATA +1 -1
- {aiinbx-0.117.0.dist-info → aiinbx-0.141.0.dist-info}/RECORD +9 -9
- {aiinbx-0.117.0.dist-info → aiinbx-0.141.0.dist-info}/WHEEL +0 -0
- {aiinbx-0.117.0.dist-info → aiinbx-0.141.0.dist-info}/licenses/LICENSE +0 -0
aiinbx/_streaming.py
CHANGED
|
@@ -54,11 +54,12 @@ class Stream(Generic[_T]):
|
|
|
54
54
|
process_data = self._client._process_response_data
|
|
55
55
|
iterator = self._iter_events()
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
try:
|
|
58
|
+
for sse in iterator:
|
|
59
|
+
yield process_data(data=sse.json(), cast_to=cast_to, response=response)
|
|
60
|
+
finally:
|
|
61
|
+
# Ensure the response is closed even if the consumer doesn't read all data
|
|
62
|
+
response.close()
|
|
62
63
|
|
|
63
64
|
def __enter__(self) -> Self:
|
|
64
65
|
return self
|
|
@@ -117,11 +118,12 @@ class AsyncStream(Generic[_T]):
|
|
|
117
118
|
process_data = self._client._process_response_data
|
|
118
119
|
iterator = self._iter_events()
|
|
119
120
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
try:
|
|
122
|
+
async for sse in iterator:
|
|
123
|
+
yield process_data(data=sse.json(), cast_to=cast_to, response=response)
|
|
124
|
+
finally:
|
|
125
|
+
# Ensure the response is closed even if the consumer doesn't read all data
|
|
126
|
+
await response.aclose()
|
|
125
127
|
|
|
126
128
|
async def __aenter__(self) -> Self:
|
|
127
129
|
return self
|
aiinbx/_version.py
CHANGED
aiinbx/resources/domains.py
CHANGED
|
@@ -93,6 +93,8 @@ class DomainsResource(SyncAPIResource):
|
|
|
93
93
|
Retrieve a domain by its ID
|
|
94
94
|
|
|
95
95
|
Args:
|
|
96
|
+
domain_id: The unique identifier of the domain
|
|
97
|
+
|
|
96
98
|
extra_headers: Send extra headers
|
|
97
99
|
|
|
98
100
|
extra_query: Add additional query parameters to the request
|
|
@@ -266,6 +268,8 @@ class AsyncDomainsResource(AsyncAPIResource):
|
|
|
266
268
|
Retrieve a domain by its ID
|
|
267
269
|
|
|
268
270
|
Args:
|
|
271
|
+
domain_id: The unique identifier of the domain
|
|
272
|
+
|
|
269
273
|
extra_headers: Send extra headers
|
|
270
274
|
|
|
271
275
|
extra_query: Add additional query parameters to the request
|
aiinbx/resources/emails.py
CHANGED
|
@@ -60,6 +60,8 @@ class EmailsResource(SyncAPIResource):
|
|
|
60
60
|
Retrieve a specific email by its ID using API key authentication
|
|
61
61
|
|
|
62
62
|
Args:
|
|
63
|
+
email_id: The unique identifier of the email
|
|
64
|
+
|
|
63
65
|
extra_headers: Send extra headers
|
|
64
66
|
|
|
65
67
|
extra_query: Add additional query parameters to the request
|
|
@@ -251,6 +253,8 @@ class AsyncEmailsResource(AsyncAPIResource):
|
|
|
251
253
|
Retrieve a specific email by its ID using API key authentication
|
|
252
254
|
|
|
253
255
|
Args:
|
|
256
|
+
email_id: The unique identifier of the email
|
|
257
|
+
|
|
254
258
|
extra_headers: Send extra headers
|
|
255
259
|
|
|
256
260
|
extra_query: Add additional query parameters to the request
|
aiinbx/resources/threads.py
CHANGED
|
@@ -62,6 +62,8 @@ class ThreadsResource(SyncAPIResource):
|
|
|
62
62
|
authentication
|
|
63
63
|
|
|
64
64
|
Args:
|
|
65
|
+
thread_id: The unique identifier of the thread
|
|
66
|
+
|
|
65
67
|
extra_headers: Send extra headers
|
|
66
68
|
|
|
67
69
|
extra_query: Add additional query parameters to the request
|
|
@@ -257,6 +259,8 @@ class AsyncThreadsResource(AsyncAPIResource):
|
|
|
257
259
|
authentication
|
|
258
260
|
|
|
259
261
|
Args:
|
|
262
|
+
thread_id: The unique identifier of the thread
|
|
263
|
+
|
|
260
264
|
extra_headers: Send extra headers
|
|
261
265
|
|
|
262
266
|
extra_query: Add additional query parameters to the request
|
|
@@ -9,9 +9,9 @@ aiinbx/_models.py,sha256=3D65psj_C02Mw0K2zpBWrn1khmrvtEXgTTQ6P4r3tUY,31837
|
|
|
9
9
|
aiinbx/_qs.py,sha256=craIKyvPktJ94cvf9zn8j8ekG9dWJzhWv0ob34lIOv4,4828
|
|
10
10
|
aiinbx/_resource.py,sha256=R_-4UEtw4XqdaVP9kNZE-XgrsuRBrQeFB0x4vbgWM_k,1100
|
|
11
11
|
aiinbx/_response.py,sha256=bN_uhJdOtEIu7WonnaRndk73_0N7bpUqEqUx_rZUxH8,28788
|
|
12
|
-
aiinbx/_streaming.py,sha256=
|
|
12
|
+
aiinbx/_streaming.py,sha256=7AWeXwBPMgZiPlU6Z5quvQqDqHDkkt9j38z5L0CBk50,10221
|
|
13
13
|
aiinbx/_types.py,sha256=k1TfzLVNmuxwSkopIgy03zuljyVxSEiekHlbSzCR9U0,7236
|
|
14
|
-
aiinbx/_version.py,sha256=
|
|
14
|
+
aiinbx/_version.py,sha256=Cws_xvvXPPC6NZPNuds-2TVI53fvUl2ViS64Lyo9EYM,160
|
|
15
15
|
aiinbx/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
aiinbx/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
17
17
|
aiinbx/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
|
|
@@ -27,10 +27,10 @@ aiinbx/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4786
|
|
|
27
27
|
aiinbx/_utils/_utils.py,sha256=ugfUaneOK7I8h9b3656flwf5u_kthY0gvNuqvgOLoSU,12252
|
|
28
28
|
aiinbx/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
29
29
|
aiinbx/resources/__init__.py,sha256=A9igPOfiP9soOFOLpVfUBwR7looj88eofftT1jXV-jw,2017
|
|
30
|
-
aiinbx/resources/domains.py,sha256
|
|
31
|
-
aiinbx/resources/emails.py,sha256=
|
|
30
|
+
aiinbx/resources/domains.py,sha256=xY9R9UNLwo72X8XOHEVs7bb7samZqHR4uBEyzUNw2z8,17548
|
|
31
|
+
aiinbx/resources/emails.py,sha256=5_FexN9HgTP27_HyfZJuhJswlYiUji_H2Xavgl5EeIs,17951
|
|
32
32
|
aiinbx/resources/meta.py,sha256=pG0ICZDnENRpvhVDPjoCZW509jhxgIpjhb8gG4hRusw,5464
|
|
33
|
-
aiinbx/resources/threads.py,sha256=
|
|
33
|
+
aiinbx/resources/threads.py,sha256=2M68tKRV-hJU-ZszTCjVqaxY530GIvACO9ewwEH6Lbk,18961
|
|
34
34
|
aiinbx/resources/webhooks.py,sha256=2aBYtHvVy4Ngpq_GEEMk0U6Vn_LKFwommXaguEjhhj0,962
|
|
35
35
|
aiinbx/types/__init__.py,sha256=Nax8UISh-wdV5r4vKVb8h1DXCgEhtidtyIjX0ZcBcnE,2424
|
|
36
36
|
aiinbx/types/domain_create_params.py,sha256=6VplEi2RZNbhYkfQ0E08gOYQ9nJyQvvOYu9yUsKfpq8,285
|
|
@@ -58,7 +58,7 @@ aiinbx/types/thread_retrieve_response.py,sha256=s5jj2iwBfcoVPeybIOJUVwRhvnc_0NdE
|
|
|
58
58
|
aiinbx/types/thread_search_params.py,sha256=ZvlTTw4b_swhuC0VoLnU2QI1hYjROiEAyJ4HJXCrR9M,1939
|
|
59
59
|
aiinbx/types/thread_search_response.py,sha256=lldugJNQuQ5tsD9BrgxoDNojAYs7Ks8iZDMxwhnjogY,908
|
|
60
60
|
aiinbx/types/unwrap_webhook_event.py,sha256=6Hp4c5iHNs2lw3DYgRrgvRFBOmms0NADJ5XExEZrICI,1091
|
|
61
|
-
aiinbx-0.
|
|
62
|
-
aiinbx-0.
|
|
63
|
-
aiinbx-0.
|
|
64
|
-
aiinbx-0.
|
|
61
|
+
aiinbx-0.141.0.dist-info/METADATA,sha256=cKpqbHVJkaA9Cy2e-pA1FaVosPO0WlZtjKB46dXugnc,13209
|
|
62
|
+
aiinbx-0.141.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
63
|
+
aiinbx-0.141.0.dist-info/licenses/LICENSE,sha256=i1rY5G0rFWpuWXv5WPoFrQEOrDWycksLhJxuLBF1tZw,11337
|
|
64
|
+
aiinbx-0.141.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|