Skip to content

Commit c51176c

Browse files
committed
Release 0.0.7
1 parent 1f0a8d1 commit c51176c

6 files changed

Lines changed: 59 additions & 51 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "agentmail"
33

44
[tool.poetry]
55
name = "agentmail"
6-
version = "0.0.6"
6+
version = "0.0.7"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ client.inboxes.list()
3434
<dl>
3535
<dd>
3636

37-
**limit:** `QueryLimit`
37+
**limit:** `typing.Optional[QueryLimit]`
3838

3939
</dd>
4040
</dl>
4141

4242
<dl>
4343
<dd>
4444

45-
**last_key:** `LastKey`
45+
**last_key:** `typing.Optional[LastKey]`
4646

4747
</dd>
4848
</dl>
@@ -249,31 +249,31 @@ client.messages.list(
249249
<dl>
250250
<dd>
251251

252-
**received:** `Received`
252+
**received:** `typing.Optional[Received]`
253253

254254
</dd>
255255
</dl>
256256

257257
<dl>
258258
<dd>
259259

260-
**sent:** `Sent`
260+
**sent:** `typing.Optional[Sent]`
261261

262262
</dd>
263263
</dl>
264264

265265
<dl>
266266
<dd>
267267

268-
**limit:** `QueryLimit`
268+
**limit:** `typing.Optional[QueryLimit]`
269269

270270
</dd>
271271
</dl>
272272

273273
<dl>
274274
<dd>
275275

276-
**last_key:** `LastKey`
276+
**last_key:** `typing.Optional[LastKey]`
277277

278278
</dd>
279279
</dl>
@@ -627,31 +627,31 @@ client.threads.list(
627627
<dl>
628628
<dd>
629629

630-
**received:** `Received`
630+
**received:** `typing.Optional[Received]`
631631

632632
</dd>
633633
</dl>
634634

635635
<dl>
636636
<dd>
637637

638-
**sent:** `Sent`
638+
**sent:** `typing.Optional[Sent]`
639639

640640
</dd>
641641
</dl>
642642

643643
<dl>
644644
<dd>
645645

646-
**limit:** `QueryLimit`
646+
**limit:** `typing.Optional[QueryLimit]`
647647

648648
</dd>
649649
</dl>
650650

651651
<dl>
652652
<dd>
653653

654-
**last_key:** `LastKey`
654+
**last_key:** `typing.Optional[LastKey]`
655655

656656
</dd>
657657
</dl>

src/agentmail/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_headers(self) -> typing.Dict[str, str]:
2222
headers: typing.Dict[str, str] = {
2323
"X-Fern-Language": "Python",
2424
"X-Fern-SDK-Name": "agentmail",
25-
"X-Fern-SDK-Version": "0.0.6",
25+
"X-Fern-SDK-Version": "0.0.7",
2626
}
2727
headers["Authorization"] = f"Bearer {self._get_api_key()}"
2828
return headers

src/agentmail/inboxes/client.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,18 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
2828
self._client_wrapper = client_wrapper
2929

3030
def list(
31-
self, *, limit: QueryLimit, last_key: LastKey, request_options: typing.Optional[RequestOptions] = None
31+
self,
32+
*,
33+
limit: typing.Optional[QueryLimit] = None,
34+
last_key: typing.Optional[LastKey] = None,
35+
request_options: typing.Optional[RequestOptions] = None,
3236
) -> ListInboxesResponse:
3337
"""
3438
Parameters
3539
----------
36-
limit : QueryLimit
40+
limit : typing.Optional[QueryLimit]
3741
38-
last_key : LastKey
42+
last_key : typing.Optional[LastKey]
3943
4044
request_options : typing.Optional[RequestOptions]
4145
Request-specific configuration.
@@ -208,14 +212,18 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
208212
self._client_wrapper = client_wrapper
209213

210214
async def list(
211-
self, *, limit: QueryLimit, last_key: LastKey, request_options: typing.Optional[RequestOptions] = None
215+
self,
216+
*,
217+
limit: typing.Optional[QueryLimit] = None,
218+
last_key: typing.Optional[LastKey] = None,
219+
request_options: typing.Optional[RequestOptions] = None,
212220
) -> ListInboxesResponse:
213221
"""
214222
Parameters
215223
----------
216-
limit : QueryLimit
224+
limit : typing.Optional[QueryLimit]
217225
218-
last_key : LastKey
226+
last_key : typing.Optional[LastKey]
219227
220228
request_options : typing.Optional[RequestOptions]
221229
Request-specific configuration.

src/agentmail/messages/client.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ def list(
4242
self,
4343
inbox_id: InboxId,
4444
*,
45-
received: Received,
46-
sent: Sent,
47-
limit: QueryLimit,
48-
last_key: LastKey,
45+
received: typing.Optional[Received] = None,
46+
sent: typing.Optional[Sent] = None,
47+
limit: typing.Optional[QueryLimit] = None,
48+
last_key: typing.Optional[LastKey] = None,
4949
request_options: typing.Optional[RequestOptions] = None,
5050
) -> ListMessagesResponse:
5151
"""
@@ -55,13 +55,13 @@ def list(
5555
----------
5656
inbox_id : InboxId
5757
58-
received : Received
58+
received : typing.Optional[Received]
5959
60-
sent : Sent
60+
sent : typing.Optional[Sent]
6161
62-
limit : QueryLimit
62+
limit : typing.Optional[QueryLimit]
6363
64-
last_key : LastKey
64+
last_key : typing.Optional[LastKey]
6565
6666
request_options : typing.Optional[RequestOptions]
6767
Request-specific configuration.
@@ -429,10 +429,10 @@ async def list(
429429
self,
430430
inbox_id: InboxId,
431431
*,
432-
received: Received,
433-
sent: Sent,
434-
limit: QueryLimit,
435-
last_key: LastKey,
432+
received: typing.Optional[Received] = None,
433+
sent: typing.Optional[Sent] = None,
434+
limit: typing.Optional[QueryLimit] = None,
435+
last_key: typing.Optional[LastKey] = None,
436436
request_options: typing.Optional[RequestOptions] = None,
437437
) -> ListMessagesResponse:
438438
"""
@@ -442,13 +442,13 @@ async def list(
442442
----------
443443
inbox_id : InboxId
444444
445-
received : Received
445+
received : typing.Optional[Received]
446446
447-
sent : Sent
447+
sent : typing.Optional[Sent]
448448
449-
limit : QueryLimit
449+
limit : typing.Optional[QueryLimit]
450450
451-
last_key : LastKey
451+
last_key : typing.Optional[LastKey]
452452
453453
request_options : typing.Optional[RequestOptions]
454454
Request-specific configuration.

src/agentmail/threads/client.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
from ..core.client_wrapper import SyncClientWrapper
44
from ..inboxes.types.inbox_id import InboxId
5+
import typing
56
from ..types.received import Received
67
from ..types.sent import Sent
78
from ..types.query_limit import QueryLimit
89
from ..types.last_key import LastKey
9-
import typing
1010
from ..core.request_options import RequestOptions
1111
from .types.list_threads_response import ListThreadsResponse
1212
from ..core.jsonable_encoder import jsonable_encoder
@@ -28,10 +28,10 @@ def list(
2828
self,
2929
inbox_id: InboxId,
3030
*,
31-
received: Received,
32-
sent: Sent,
33-
limit: QueryLimit,
34-
last_key: LastKey,
31+
received: typing.Optional[Received] = None,
32+
sent: typing.Optional[Sent] = None,
33+
limit: typing.Optional[QueryLimit] = None,
34+
last_key: typing.Optional[LastKey] = None,
3535
request_options: typing.Optional[RequestOptions] = None,
3636
) -> ListThreadsResponse:
3737
"""
@@ -41,13 +41,13 @@ def list(
4141
----------
4242
inbox_id : InboxId
4343
44-
received : Received
44+
received : typing.Optional[Received]
4545
46-
sent : Sent
46+
sent : typing.Optional[Sent]
4747
48-
limit : QueryLimit
48+
limit : typing.Optional[QueryLimit]
4949
50-
last_key : LastKey
50+
last_key : typing.Optional[LastKey]
5151
5252
request_options : typing.Optional[RequestOptions]
5353
Request-specific configuration.
@@ -169,10 +169,10 @@ async def list(
169169
self,
170170
inbox_id: InboxId,
171171
*,
172-
received: Received,
173-
sent: Sent,
174-
limit: QueryLimit,
175-
last_key: LastKey,
172+
received: typing.Optional[Received] = None,
173+
sent: typing.Optional[Sent] = None,
174+
limit: typing.Optional[QueryLimit] = None,
175+
last_key: typing.Optional[LastKey] = None,
176176
request_options: typing.Optional[RequestOptions] = None,
177177
) -> ListThreadsResponse:
178178
"""
@@ -182,13 +182,13 @@ async def list(
182182
----------
183183
inbox_id : InboxId
184184
185-
received : Received
185+
received : typing.Optional[Received]
186186
187-
sent : Sent
187+
sent : typing.Optional[Sent]
188188
189-
limit : QueryLimit
189+
limit : typing.Optional[QueryLimit]
190190
191-
last_key : LastKey
191+
last_key : typing.Optional[LastKey]
192192
193193
request_options : typing.Optional[RequestOptions]
194194
Request-specific configuration.

0 commit comments

Comments
 (0)