Skip to content

Commit 76647d2

Browse files
committed
Release 0.5.4
1 parent 27173b5 commit 76647d2

20 files changed

Lines changed: 208 additions & 42 deletions

.fern/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"should_generate_websocket_clients": true,
1111
"pyproject_toml": "description = \"The email inbox API for AI agents. Send, receive, reply, and manage threaded email conversations programmatically.\"\nauthors = [\"AgentMail <[email protected]>\"]\nkeywords = [\"email\", \"ai\", \"agent\", \"inbox\", \"api\", \"email-api\", \"ai-agent\", \"llm\", \"langchain\", \"crewai\", \"autonomous-agent\", \"agentmail\"]\nlicense = \"MIT\"\nhomepage = \"https://agentmail.to\"\n"
1212
},
13-
"originGitCommit": "a8b99ef804f0c0f9fd29f0749de231caf43507cf",
14-
"sdkVersion": "0.5.3"
13+
"originGitCommit": "e31628620c2bb9d8fc4dc94848b3fd4379c818b8",
14+
"sdkVersion": "0.5.4"
1515
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44

55
[tool.poetry]
66
name = "agentmail"
7-
version = "0.5.3"
7+
version = "0.5.4"
88
description = ""
99
readme = "README.md"
1010
authors = []

reference.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,6 @@ client = AgentMail(
18881888

18891889
client.domains.create(
18901890
domain="domain",
1891-
feedback_enabled=True,
18921891
)
18931892

18941893
```
@@ -7018,7 +7017,6 @@ client = AgentMail(
70187017
client.pods.domains.create(
70197018
pod_id="pod_id",
70207019
domain="domain",
7021-
feedback_enabled=True,
70227020
)
70237021

70247022
```

src/agentmail/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
RecordStatus,
8383
RecordType,
8484
Status,
85+
SubdomainsEnabled,
8586
UpdateDomainRequest,
8687
VerificationRecord,
8788
VerificationStatus,
@@ -396,6 +397,7 @@
396397
"SendMessageTo": ".messages",
397398
"Start": ".metrics",
398399
"Status": ".domains",
400+
"SubdomainsEnabled": ".domains",
399401
"Subscribe": ".websockets",
400402
"Subscribed": ".websockets",
401403
"Thread": ".threads",
@@ -636,6 +638,7 @@ def __dir__():
636638
"SendMessageTo",
637639
"Start",
638640
"Status",
641+
"SubdomainsEnabled",
639642
"Subscribe",
640643
"Subscribed",
641644
"Thread",

src/agentmail/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ def get_headers(self) -> typing.Dict[str, str]:
2828
import platform
2929

3030
headers: typing.Dict[str, str] = {
31-
"User-Agent": "agentmail/0.5.3",
31+
"User-Agent": "agentmail/0.5.4",
3232
"X-Fern-Language": "Python",
3333
"X-Fern-Runtime": f"python/{platform.python_version()}",
3434
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
3535
"X-Fern-SDK-Name": "agentmail",
36-
"X-Fern-SDK-Version": "0.5.3",
36+
"X-Fern-SDK-Version": "0.5.4",
3737
**(self.get_custom_headers() or {}),
3838
}
3939
api_key = self._get_api_key()

src/agentmail/domains/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
RecordStatus,
1919
RecordType,
2020
Status,
21+
SubdomainsEnabled,
2122
UpdateDomainRequest,
2223
VerificationRecord,
2324
VerificationStatus,
@@ -34,6 +35,7 @@
3435
"RecordStatus": ".types",
3536
"RecordType": ".types",
3637
"Status": ".types",
38+
"SubdomainsEnabled": ".types",
3739
"UpdateDomainRequest": ".types",
3840
"VerificationRecord": ".types",
3941
"VerificationStatus": ".types",
@@ -73,6 +75,7 @@ def __dir__():
7375
"RecordStatus",
7476
"RecordType",
7577
"Status",
78+
"SubdomainsEnabled",
7679
"UpdateDomainRequest",
7780
"VerificationRecord",
7881
"VerificationStatus",

src/agentmail/domains/client.py

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from .types.domain_name import DomainName
1414
from .types.feedback_enabled import FeedbackEnabled
1515
from .types.list_domains_response import ListDomainsResponse
16+
from .types.subdomains_enabled import SubdomainsEnabled
1617

1718
# this is used as the default value for optional parameters
1819
OMIT = typing.cast(typing.Any, ...)
@@ -146,7 +147,8 @@ def create(
146147
self,
147148
*,
148149
domain: DomainName,
149-
feedback_enabled: FeedbackEnabled,
150+
feedback_enabled: typing.Optional[FeedbackEnabled] = OMIT,
151+
subdomains_enabled: typing.Optional[SubdomainsEnabled] = OMIT,
150152
request_options: typing.Optional[RequestOptions] = None,
151153
) -> Domain:
152154
"""
@@ -159,7 +161,9 @@ def create(
159161
----------
160162
domain : DomainName
161163
162-
feedback_enabled : FeedbackEnabled
164+
feedback_enabled : typing.Optional[FeedbackEnabled]
165+
166+
subdomains_enabled : typing.Optional[SubdomainsEnabled]
163167
164168
request_options : typing.Optional[RequestOptions]
165169
Request-specific configuration.
@@ -177,11 +181,13 @@ def create(
177181
)
178182
client.domains.create(
179183
domain="domain",
180-
feedback_enabled=True,
181184
)
182185
"""
183186
_response = self._raw_client.create(
184-
domain=domain, feedback_enabled=feedback_enabled, request_options=request_options
187+
domain=domain,
188+
feedback_enabled=feedback_enabled,
189+
subdomains_enabled=subdomains_enabled,
190+
request_options=request_options,
185191
)
186192
return _response.data
187193

@@ -190,6 +196,7 @@ def update(
190196
domain_id: DomainId,
191197
*,
192198
feedback_enabled: typing.Optional[FeedbackEnabled] = OMIT,
199+
subdomains_enabled: typing.Optional[SubdomainsEnabled] = OMIT,
193200
request_options: typing.Optional[RequestOptions] = None,
194201
) -> Domain:
195202
"""
@@ -204,6 +211,8 @@ def update(
204211
205212
feedback_enabled : typing.Optional[FeedbackEnabled]
206213
214+
subdomains_enabled : typing.Optional[SubdomainsEnabled]
215+
207216
request_options : typing.Optional[RequestOptions]
208217
Request-specific configuration.
209218
@@ -223,7 +232,10 @@ def update(
223232
)
224233
"""
225234
_response = self._raw_client.update(
226-
domain_id, feedback_enabled=feedback_enabled, request_options=request_options
235+
domain_id,
236+
feedback_enabled=feedback_enabled,
237+
subdomains_enabled=subdomains_enabled,
238+
request_options=request_options,
227239
)
228240
return _response.data
229241

@@ -445,7 +457,8 @@ async def create(
445457
self,
446458
*,
447459
domain: DomainName,
448-
feedback_enabled: FeedbackEnabled,
460+
feedback_enabled: typing.Optional[FeedbackEnabled] = OMIT,
461+
subdomains_enabled: typing.Optional[SubdomainsEnabled] = OMIT,
449462
request_options: typing.Optional[RequestOptions] = None,
450463
) -> Domain:
451464
"""
@@ -458,7 +471,9 @@ async def create(
458471
----------
459472
domain : DomainName
460473
461-
feedback_enabled : FeedbackEnabled
474+
feedback_enabled : typing.Optional[FeedbackEnabled]
475+
476+
subdomains_enabled : typing.Optional[SubdomainsEnabled]
462477
463478
request_options : typing.Optional[RequestOptions]
464479
Request-specific configuration.
@@ -481,14 +496,16 @@ async def create(
481496
async def main() -> None:
482497
await client.domains.create(
483498
domain="domain",
484-
feedback_enabled=True,
485499
)
486500
487501
488502
asyncio.run(main())
489503
"""
490504
_response = await self._raw_client.create(
491-
domain=domain, feedback_enabled=feedback_enabled, request_options=request_options
505+
domain=domain,
506+
feedback_enabled=feedback_enabled,
507+
subdomains_enabled=subdomains_enabled,
508+
request_options=request_options,
492509
)
493510
return _response.data
494511

@@ -497,6 +514,7 @@ async def update(
497514
domain_id: DomainId,
498515
*,
499516
feedback_enabled: typing.Optional[FeedbackEnabled] = OMIT,
517+
subdomains_enabled: typing.Optional[SubdomainsEnabled] = OMIT,
500518
request_options: typing.Optional[RequestOptions] = None,
501519
) -> Domain:
502520
"""
@@ -511,6 +529,8 @@ async def update(
511529
512530
feedback_enabled : typing.Optional[FeedbackEnabled]
513531
532+
subdomains_enabled : typing.Optional[SubdomainsEnabled]
533+
514534
request_options : typing.Optional[RequestOptions]
515535
Request-specific configuration.
516536
@@ -538,7 +558,10 @@ async def main() -> None:
538558
asyncio.run(main())
539559
"""
540560
_response = await self._raw_client.update(
541-
domain_id, feedback_enabled=feedback_enabled, request_options=request_options
561+
domain_id,
562+
feedback_enabled=feedback_enabled,
563+
subdomains_enabled=subdomains_enabled,
564+
request_options=request_options,
542565
)
543566
return _response.data
544567

src/agentmail/domains/raw_client.py

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from .types.domain_name import DomainName
2424
from .types.feedback_enabled import FeedbackEnabled
2525
from .types.list_domains_response import ListDomainsResponse
26+
from .types.subdomains_enabled import SubdomainsEnabled
2627
from pydantic import ValidationError as pydantic_ValidationError
2728

2829
# this is used as the default value for optional parameters
@@ -215,7 +216,8 @@ def create(
215216
self,
216217
*,
217218
domain: DomainName,
218-
feedback_enabled: FeedbackEnabled,
219+
feedback_enabled: typing.Optional[FeedbackEnabled] = OMIT,
220+
subdomains_enabled: typing.Optional[SubdomainsEnabled] = OMIT,
219221
request_options: typing.Optional[RequestOptions] = None,
220222
) -> HttpResponse[Domain]:
221223
"""
@@ -228,7 +230,9 @@ def create(
228230
----------
229231
domain : DomainName
230232
231-
feedback_enabled : FeedbackEnabled
233+
feedback_enabled : typing.Optional[FeedbackEnabled]
234+
235+
subdomains_enabled : typing.Optional[SubdomainsEnabled]
232236
233237
request_options : typing.Optional[RequestOptions]
234238
Request-specific configuration.
@@ -244,6 +248,7 @@ def create(
244248
json={
245249
"domain": domain,
246250
"feedback_enabled": feedback_enabled,
251+
"subdomains_enabled": subdomains_enabled,
247252
},
248253
request_options=request_options,
249254
omit=OMIT,
@@ -283,6 +288,7 @@ def update(
283288
domain_id: DomainId,
284289
*,
285290
feedback_enabled: typing.Optional[FeedbackEnabled] = OMIT,
291+
subdomains_enabled: typing.Optional[SubdomainsEnabled] = OMIT,
286292
request_options: typing.Optional[RequestOptions] = None,
287293
) -> HttpResponse[Domain]:
288294
"""
@@ -297,6 +303,8 @@ def update(
297303
298304
feedback_enabled : typing.Optional[FeedbackEnabled]
299305
306+
subdomains_enabled : typing.Optional[SubdomainsEnabled]
307+
300308
request_options : typing.Optional[RequestOptions]
301309
Request-specific configuration.
302310
@@ -310,6 +318,7 @@ def update(
310318
method="PATCH",
311319
json={
312320
"feedback_enabled": feedback_enabled,
321+
"subdomains_enabled": subdomains_enabled,
313322
},
314323
request_options=request_options,
315324
omit=OMIT,
@@ -630,7 +639,8 @@ async def create(
630639
self,
631640
*,
632641
domain: DomainName,
633-
feedback_enabled: FeedbackEnabled,
642+
feedback_enabled: typing.Optional[FeedbackEnabled] = OMIT,
643+
subdomains_enabled: typing.Optional[SubdomainsEnabled] = OMIT,
634644
request_options: typing.Optional[RequestOptions] = None,
635645
) -> AsyncHttpResponse[Domain]:
636646
"""
@@ -643,7 +653,9 @@ async def create(
643653
----------
644654
domain : DomainName
645655
646-
feedback_enabled : FeedbackEnabled
656+
feedback_enabled : typing.Optional[FeedbackEnabled]
657+
658+
subdomains_enabled : typing.Optional[SubdomainsEnabled]
647659
648660
request_options : typing.Optional[RequestOptions]
649661
Request-specific configuration.
@@ -659,6 +671,7 @@ async def create(
659671
json={
660672
"domain": domain,
661673
"feedback_enabled": feedback_enabled,
674+
"subdomains_enabled": subdomains_enabled,
662675
},
663676
request_options=request_options,
664677
omit=OMIT,
@@ -698,6 +711,7 @@ async def update(
698711
domain_id: DomainId,
699712
*,
700713
feedback_enabled: typing.Optional[FeedbackEnabled] = OMIT,
714+
subdomains_enabled: typing.Optional[SubdomainsEnabled] = OMIT,
701715
request_options: typing.Optional[RequestOptions] = None,
702716
) -> AsyncHttpResponse[Domain]:
703717
"""
@@ -712,6 +726,8 @@ async def update(
712726
713727
feedback_enabled : typing.Optional[FeedbackEnabled]
714728
729+
subdomains_enabled : typing.Optional[SubdomainsEnabled]
730+
715731
request_options : typing.Optional[RequestOptions]
716732
Request-specific configuration.
717733
@@ -725,6 +741,7 @@ async def update(
725741
method="PATCH",
726742
json={
727743
"feedback_enabled": feedback_enabled,
744+
"subdomains_enabled": subdomains_enabled,
728745
},
729746
request_options=request_options,
730747
omit=OMIT,

src/agentmail/domains/types/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from .record_status import RecordStatus
1818
from .record_type import RecordType
1919
from .status import Status
20+
from .subdomains_enabled import SubdomainsEnabled
2021
from .update_domain_request import UpdateDomainRequest
2122
from .verification_record import VerificationRecord
2223
from .verification_status import VerificationStatus
@@ -32,6 +33,7 @@
3233
"RecordStatus": ".record_status",
3334
"RecordType": ".record_type",
3435
"Status": ".status",
36+
"SubdomainsEnabled": ".subdomains_enabled",
3537
"UpdateDomainRequest": ".update_domain_request",
3638
"VerificationRecord": ".verification_record",
3739
"VerificationStatus": ".verification_status",
@@ -71,6 +73,7 @@ def __dir__():
7173
"RecordStatus",
7274
"RecordType",
7375
"Status",
76+
"SubdomainsEnabled",
7477
"UpdateDomainRequest",
7578
"VerificationRecord",
7679
"VerificationStatus",

src/agentmail/domains/types/create_domain_request.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
from ...core.unchecked_base_model import UncheckedBaseModel
88
from .domain_name import DomainName
99
from .feedback_enabled import FeedbackEnabled
10+
from .subdomains_enabled import SubdomainsEnabled
1011

1112

1213
class CreateDomainRequest(UncheckedBaseModel):
1314
domain: DomainName
14-
feedback_enabled: FeedbackEnabled
15+
feedback_enabled: typing.Optional[FeedbackEnabled] = None
16+
subdomains_enabled: typing.Optional[SubdomainsEnabled] = None
1517

1618
if IS_PYDANTIC_V2:
1719
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

0 commit comments

Comments
 (0)