Skip to content

Commit cb30d0e

Browse files
Release 0.0.70
1 parent be4686f commit cb30d0e

File tree

5 files changed

+235
-35
lines changed

5 files changed

+235
-35
lines changed

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.69"
6+
version = "0.0.70"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ client = AgentMail(
10271027
api_key="YOUR_API_KEY",
10281028
)
10291029
client.domains.get(
1030-
domain="domain",
1030+
domain_id="domain_id",
10311031
)
10321032

10331033
```
@@ -1044,7 +1044,7 @@ client.domains.get(
10441044
<dl>
10451045
<dd>
10461046

1047-
**domain:** `DomainId`
1047+
**domain_id:** `DomainId`
10481048

10491049
</dd>
10501050
</dl>
@@ -1148,7 +1148,63 @@ client = AgentMail(
11481148
api_key="YOUR_API_KEY",
11491149
)
11501150
client.domains.delete(
1151-
domain="domain",
1151+
domain_id="domain_id",
1152+
)
1153+
1154+
```
1155+
</dd>
1156+
</dl>
1157+
</dd>
1158+
</dl>
1159+
1160+
#### ⚙️ Parameters
1161+
1162+
<dl>
1163+
<dd>
1164+
1165+
<dl>
1166+
<dd>
1167+
1168+
**domain_id:** `DomainId`
1169+
1170+
</dd>
1171+
</dl>
1172+
1173+
<dl>
1174+
<dd>
1175+
1176+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1177+
1178+
</dd>
1179+
</dl>
1180+
</dd>
1181+
</dl>
1182+
1183+
1184+
</dd>
1185+
</dl>
1186+
</details>
1187+
1188+
<details><summary><code>client.domains.<a href="src/agentmail/domains/client.py">verify</a>(...)</code></summary>
1189+
<dl>
1190+
<dd>
1191+
1192+
#### 🔌 Usage
1193+
1194+
<dl>
1195+
<dd>
1196+
1197+
<dl>
1198+
<dd>
1199+
1200+
```python
1201+
from agentmail import AgentMail
1202+
1203+
client = AgentMail(
1204+
api_key="YOUR_API_KEY",
1205+
)
1206+
client.domains.verify(
1207+
domain_id="domain_id",
11521208
)
11531209

11541210
```
@@ -1165,7 +1221,7 @@ client.domains.delete(
11651221
<dl>
11661222
<dd>
11671223

1168-
**domain:** `DomainId`
1224+
**domain_id:** `DomainId`
11691225

11701226
</dd>
11711227
</dl>

src/agentmail/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ def __init__(
2323

2424
def get_headers(self) -> typing.Dict[str, str]:
2525
headers: typing.Dict[str, str] = {
26-
"User-Agent": "agentmail/0.0.69",
26+
"User-Agent": "agentmail/0.0.70",
2727
"X-Fern-Language": "Python",
2828
"X-Fern-SDK-Name": "agentmail",
29-
"X-Fern-SDK-Version": "0.0.69",
29+
"X-Fern-SDK-Version": "0.0.70",
3030
**(self.get_custom_headers() or {}),
3131
}
3232
headers["Authorization"] = f"Bearer {self._get_api_key()}"

src/agentmail/domains/client.py

Lines changed: 78 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ def list(
7070
"""
7171
return self._raw_client.list(limit=limit, page_token=page_token, request_options=request_options)
7272

73-
def get(self, domain: DomainId, *, request_options: typing.Optional[RequestOptions] = None) -> Domain:
73+
def get(self, domain_id: DomainId, *, request_options: typing.Optional[RequestOptions] = None) -> Domain:
7474
"""
7575
Parameters
7676
----------
77-
domain : DomainId
77+
domain_id : DomainId
7878
7979
request_options : typing.Optional[RequestOptions]
8080
Request-specific configuration.
@@ -91,10 +91,10 @@ def get(self, domain: DomainId, *, request_options: typing.Optional[RequestOptio
9191
api_key="YOUR_API_KEY",
9292
)
9393
client.domains.get(
94-
domain="domain",
94+
domain_id="domain_id",
9595
)
9696
"""
97-
_response = self._raw_client.get(domain, request_options=request_options)
97+
_response = self._raw_client.get(domain_id, request_options=request_options)
9898
return _response.data
9999

100100
def create(
@@ -135,11 +135,11 @@ def create(
135135
)
136136
return _response.data
137137

138-
def delete(self, domain: DomainId, *, request_options: typing.Optional[RequestOptions] = None) -> None:
138+
def delete(self, domain_id: DomainId, *, request_options: typing.Optional[RequestOptions] = None) -> None:
139139
"""
140140
Parameters
141141
----------
142-
domain : DomainId
142+
domain_id : DomainId
143143
144144
request_options : typing.Optional[RequestOptions]
145145
Request-specific configuration.
@@ -156,10 +156,37 @@ def delete(self, domain: DomainId, *, request_options: typing.Optional[RequestOp
156156
api_key="YOUR_API_KEY",
157157
)
158158
client.domains.delete(
159-
domain="domain",
159+
domain_id="domain_id",
160+
)
161+
"""
162+
_response = self._raw_client.delete(domain_id, request_options=request_options)
163+
return _response.data
164+
165+
def verify(self, domain_id: DomainId, *, request_options: typing.Optional[RequestOptions] = None) -> None:
166+
"""
167+
Parameters
168+
----------
169+
domain_id : DomainId
170+
171+
request_options : typing.Optional[RequestOptions]
172+
Request-specific configuration.
173+
174+
Returns
175+
-------
176+
None
177+
178+
Examples
179+
--------
180+
from agentmail import AgentMail
181+
182+
client = AgentMail(
183+
api_key="YOUR_API_KEY",
184+
)
185+
client.domains.verify(
186+
domain_id="domain_id",
160187
)
161188
"""
162-
_response = self._raw_client.delete(domain, request_options=request_options)
189+
_response = self._raw_client.verify(domain_id, request_options=request_options)
163190
return _response.data
164191

165192

@@ -224,11 +251,11 @@ async def main() -> None:
224251
"""
225252
return await self._raw_client.list(limit=limit, page_token=page_token, request_options=request_options)
226253

227-
async def get(self, domain: DomainId, *, request_options: typing.Optional[RequestOptions] = None) -> Domain:
254+
async def get(self, domain_id: DomainId, *, request_options: typing.Optional[RequestOptions] = None) -> Domain:
228255
"""
229256
Parameters
230257
----------
231-
domain : DomainId
258+
domain_id : DomainId
232259
233260
request_options : typing.Optional[RequestOptions]
234261
Request-specific configuration.
@@ -250,13 +277,13 @@ async def get(self, domain: DomainId, *, request_options: typing.Optional[Reques
250277
251278
async def main() -> None:
252279
await client.domains.get(
253-
domain="domain",
280+
domain_id="domain_id",
254281
)
255282
256283
257284
asyncio.run(main())
258285
"""
259-
_response = await self._raw_client.get(domain, request_options=request_options)
286+
_response = await self._raw_client.get(domain_id, request_options=request_options)
260287
return _response.data
261288

262289
async def create(
@@ -305,11 +332,11 @@ async def main() -> None:
305332
)
306333
return _response.data
307334

308-
async def delete(self, domain: DomainId, *, request_options: typing.Optional[RequestOptions] = None) -> None:
335+
async def delete(self, domain_id: DomainId, *, request_options: typing.Optional[RequestOptions] = None) -> None:
309336
"""
310337
Parameters
311338
----------
312-
domain : DomainId
339+
domain_id : DomainId
313340
314341
request_options : typing.Optional[RequestOptions]
315342
Request-specific configuration.
@@ -331,11 +358,46 @@ async def delete(self, domain: DomainId, *, request_options: typing.Optional[Req
331358
332359
async def main() -> None:
333360
await client.domains.delete(
334-
domain="domain",
361+
domain_id="domain_id",
362+
)
363+
364+
365+
asyncio.run(main())
366+
"""
367+
_response = await self._raw_client.delete(domain_id, request_options=request_options)
368+
return _response.data
369+
370+
async def verify(self, domain_id: DomainId, *, request_options: typing.Optional[RequestOptions] = None) -> None:
371+
"""
372+
Parameters
373+
----------
374+
domain_id : DomainId
375+
376+
request_options : typing.Optional[RequestOptions]
377+
Request-specific configuration.
378+
379+
Returns
380+
-------
381+
None
382+
383+
Examples
384+
--------
385+
import asyncio
386+
387+
from agentmail import AsyncAgentMail
388+
389+
client = AsyncAgentMail(
390+
api_key="YOUR_API_KEY",
391+
)
392+
393+
394+
async def main() -> None:
395+
await client.domains.verify(
396+
domain_id="domain_id",
335397
)
336398
337399
338400
asyncio.run(main())
339401
"""
340-
_response = await self._raw_client.delete(domain, request_options=request_options)
402+
_response = await self._raw_client.verify(domain_id, request_options=request_options)
341403
return _response.data

0 commit comments

Comments
 (0)