Skip to content

Commit 656be09

Browse files
committed
Release 0.5.1
1 parent 232744b commit 656be09

40 files changed

Lines changed: 937 additions & 50 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 <support@agentmail.cc>\"]\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": "fc071d5e0e0eb3c8595f975421d4868ecec5e059",
14-
"sdkVersion": "0.5.0"
13+
"originGitCommit": "ce6195b8094a5746e91e27a5dcae0280cc8f3e70",
14+
"sdkVersion": "0.5.1"
1515
}

poetry.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.0"
7+
version = "0.5.1"
88
description = ""
99
readme = "README.md"
1010
authors = []

reference.md

Lines changed: 128 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ client = AgentMail(
280280

281281
client.inboxes.update(
282282
inbox_id="inbox_id",
283-
display_name="display_name",
284283
)
285284

286285
```
@@ -977,6 +976,9 @@ client.webhooks.create(
977976
<dl>
978977
<dd>
979978

979+
Update inbox or pod subscriptions, or replace the webhook's `event_types` in full when you pass a
980+
non-empty `event_types` array (see request field docs). Inbox and pod changes use add/remove lists.
981+
980982
**CLI:**
981983
```bash
982984
agentmail webhooks update --webhook-id <webhook_id> --add-inbox-id <inbox_id>
@@ -1227,7 +1229,7 @@ Verify an agent organization using the 6-digit OTP sent to the human's email dur
12271229

12281230
On success, the organization is upgraded from `agent_unverified` to `agent_verified`, the send allowlist is removed, and free plan entitlements are applied.
12291231

1230-
The OTP expires after 24 hours and allows a maximum of 10 attempts.
1232+
The OTP expires after 24 hours and allows a maximum of 10 attempts. If you run into any difficulties receiving the OTP code, you can also create an account on [console.agentmail.to](https://console.agentmail.to) using the human email address you provided to verify your account.
12311233

12321234
**CLI:**
12331235
```bash
@@ -3939,6 +3941,14 @@ client.inboxes.messages.list(
39393941
<dl>
39403942
<dd>
39413943

3944+
**include_unauthenticated:** `typing.Optional[IncludeUnauthenticated]`
3945+
3946+
</dd>
3947+
</dl>
3948+
3949+
<dl>
3950+
<dd>
3951+
39423952
**include_trash:** `typing.Optional[IncludeTrash]`
39433953

39443954
</dd>
@@ -4040,6 +4050,98 @@ client.inboxes.messages.get(
40404050
</dl>
40414051

40424052

4053+
</dd>
4054+
</dl>
4055+
</details>
4056+
4057+
<details><summary><code>client.inboxes.messages.<a href="src/agentmail/inboxes/messages/client.py">batch_get</a>(...) -> BatchGetMessagesResponse</code></summary>
4058+
<dl>
4059+
<dd>
4060+
4061+
#### 📝 Description
4062+
4063+
<dl>
4064+
<dd>
4065+
4066+
<dl>
4067+
<dd>
4068+
4069+
Fetch metadata for up to 500 messages in one request. Missing or
4070+
restricted IDs are silently omitted; compare `count` against `limit`
4071+
to detect misses.
4072+
4073+
**CLI:**
4074+
```bash
4075+
agentmail inboxes:messages batch-get --inbox-id <inbox_id> --message-id <id1> --message-id <id2>
4076+
```
4077+
</dd>
4078+
</dl>
4079+
</dd>
4080+
</dl>
4081+
4082+
#### 🔌 Usage
4083+
4084+
<dl>
4085+
<dd>
4086+
4087+
<dl>
4088+
<dd>
4089+
4090+
```python
4091+
from agentmail import AgentMail
4092+
from agentmail.environment import AgentMailEnvironment
4093+
4094+
client = AgentMail(
4095+
api_key="<token>",
4096+
environment=AgentMailEnvironment.PROD,
4097+
)
4098+
4099+
client.inboxes.messages.batch_get(
4100+
inbox_id="inbox_id",
4101+
message_ids=[
4102+
"message_ids",
4103+
"message_ids"
4104+
],
4105+
)
4106+
4107+
```
4108+
</dd>
4109+
</dl>
4110+
</dd>
4111+
</dl>
4112+
4113+
#### ⚙️ Parameters
4114+
4115+
<dl>
4116+
<dd>
4117+
4118+
<dl>
4119+
<dd>
4120+
4121+
**inbox_id:** `InboxId`
4122+
4123+
</dd>
4124+
</dl>
4125+
4126+
<dl>
4127+
<dd>
4128+
4129+
**request:** `BatchGetMessagesRequest`
4130+
4131+
</dd>
4132+
</dl>
4133+
4134+
<dl>
4135+
<dd>
4136+
4137+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
4138+
4139+
</dd>
4140+
</dl>
4141+
</dd>
4142+
</dl>
4143+
4144+
40434145
</dd>
40444146
</dl>
40454147
</details>
@@ -5020,6 +5122,14 @@ client.inboxes.threads.list(
50205122
<dl>
50215123
<dd>
50225124

5125+
**include_unauthenticated:** `typing.Optional[IncludeUnauthenticated]`
5126+
5127+
</dd>
5128+
</dl>
5129+
5130+
<dl>
5131+
<dd>
5132+
50235133
**include_trash:** `typing.Optional[IncludeTrash]`
50245134

50255135
</dd>
@@ -7469,7 +7579,6 @@ client = AgentMail(
74697579
client.pods.inboxes.update(
74707580
pod_id="pod_id",
74717581
inbox_id="inbox_id",
7472-
display_name="display_name",
74737582
)
74747583

74757584
```
@@ -8281,6 +8390,14 @@ client.pods.threads.list(
82818390
<dl>
82828391
<dd>
82838392

8393+
**include_unauthenticated:** `typing.Optional[IncludeUnauthenticated]`
8394+
8395+
</dd>
8396+
</dl>
8397+
8398+
<dl>
8399+
<dd>
8400+
82848401
**include_trash:** `typing.Optional[IncludeTrash]`
82858402

82868403
</dd>
@@ -8784,6 +8901,14 @@ client.threads.list()
87848901
<dl>
87858902
<dd>
87868903

8904+
**include_unauthenticated:** `typing.Optional[IncludeUnauthenticated]`
8905+
8906+
</dd>
8907+
</dl>
8908+
8909+
<dl>
8910+
<dd>
8911+
87878912
**include_trash:** `typing.Optional[IncludeTrash]`
87888913

87898914
</dd>

src/agentmail/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
IncludeBlocked,
1818
IncludeSpam,
1919
IncludeTrash,
20+
IncludeUnauthenticated,
2021
Labels,
2122
Limit,
2223
OrganizationId,
@@ -142,6 +143,9 @@
142143
)
143144
from .messages import (
144145
Addresses,
146+
BatchGetMessagesMessageIds,
147+
BatchGetMessagesRequest,
148+
BatchGetMessagesResponse,
145149
ListMessagesResponse,
146150
Message,
147151
MessageAttachments,
@@ -239,6 +243,9 @@
239243
"AttachmentId": ".attachments",
240244
"AttachmentResponse": ".attachments",
241245
"AttachmentSize": ".attachments",
246+
"BatchGetMessagesMessageIds": ".messages",
247+
"BatchGetMessagesRequest": ".messages",
248+
"BatchGetMessagesResponse": ".messages",
242249
"Before": ".types",
243250
"Bounce": ".events",
244251
"ClientId": ".domains",
@@ -293,6 +300,7 @@
293300
"IncludeBlocked": ".types",
294301
"IncludeSpam": ".types",
295302
"IncludeTrash": ".types",
303+
"IncludeUnauthenticated": ".types",
296304
"IsTakenError": ".errors",
297305
"Labels": ".types",
298306
"Limit": ".types",
@@ -465,6 +473,9 @@ def __dir__():
465473
"AttachmentId",
466474
"AttachmentResponse",
467475
"AttachmentSize",
476+
"BatchGetMessagesMessageIds",
477+
"BatchGetMessagesRequest",
478+
"BatchGetMessagesResponse",
468479
"Before",
469480
"Bounce",
470481
"ClientId",
@@ -519,6 +530,7 @@ def __dir__():
519530
"IncludeBlocked",
520531
"IncludeSpam",
521532
"IncludeTrash",
533+
"IncludeUnauthenticated",
522534
"IsTakenError",
523535
"Labels",
524536
"Limit",

0 commit comments

Comments
 (0)