Skip to content

Commit d138e8d

Browse files
committed
Release 0.0.18
1 parent 27fda5a commit d138e8d

31 files changed

+1161
-27
lines changed

poetry.lock

Lines changed: 4 additions & 4 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
@@ -3,7 +3,7 @@ name = "agentmail"
33

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

reference.md

Lines changed: 247 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,3 +722,250 @@ client.threads.get(
722722
</dl>
723723
</details>
724724

725+
## Webhooks
726+
<details><summary><code>client.webhooks.<a href="src/agentmail/webhooks/client.py">list</a>(...)</code></summary>
727+
<dl>
728+
<dd>
729+
730+
#### 🔌 Usage
731+
732+
<dl>
733+
<dd>
734+
735+
<dl>
736+
<dd>
737+
738+
```python
739+
from agentmail import AgentMail
740+
741+
client = AgentMail(
742+
api_key="YOUR_API_KEY",
743+
)
744+
client.webhooks.list()
745+
746+
```
747+
</dd>
748+
</dl>
749+
</dd>
750+
</dl>
751+
752+
#### ⚙️ Parameters
753+
754+
<dl>
755+
<dd>
756+
757+
<dl>
758+
<dd>
759+
760+
**limit:** `typing.Optional[Limit]`
761+
762+
</dd>
763+
</dl>
764+
765+
<dl>
766+
<dd>
767+
768+
**last_key:** `typing.Optional[LastKey]`
769+
770+
</dd>
771+
</dl>
772+
773+
<dl>
774+
<dd>
775+
776+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
777+
778+
</dd>
779+
</dl>
780+
</dd>
781+
</dl>
782+
783+
784+
</dd>
785+
</dl>
786+
</details>
787+
788+
<details><summary><code>client.webhooks.<a href="src/agentmail/webhooks/client.py">get</a>(...)</code></summary>
789+
<dl>
790+
<dd>
791+
792+
#### 🔌 Usage
793+
794+
<dl>
795+
<dd>
796+
797+
<dl>
798+
<dd>
799+
800+
```python
801+
from agentmail import AgentMail
802+
803+
client = AgentMail(
804+
api_key="YOUR_API_KEY",
805+
)
806+
client.webhooks.get(
807+
webhook_id="webhook_id",
808+
)
809+
810+
```
811+
</dd>
812+
</dl>
813+
</dd>
814+
</dl>
815+
816+
#### ⚙️ Parameters
817+
818+
<dl>
819+
<dd>
820+
821+
<dl>
822+
<dd>
823+
824+
**webhook_id:** `WebhookId`
825+
826+
</dd>
827+
</dl>
828+
829+
<dl>
830+
<dd>
831+
832+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
833+
834+
</dd>
835+
</dl>
836+
</dd>
837+
</dl>
838+
839+
840+
</dd>
841+
</dl>
842+
</details>
843+
844+
<details><summary><code>client.webhooks.<a href="src/agentmail/webhooks/client.py">create</a>(...)</code></summary>
845+
<dl>
846+
<dd>
847+
848+
#### 🔌 Usage
849+
850+
<dl>
851+
<dd>
852+
853+
<dl>
854+
<dd>
855+
856+
```python
857+
from agentmail import AgentMail
858+
859+
client = AgentMail(
860+
api_key="YOUR_API_KEY",
861+
)
862+
client.webhooks.create(
863+
url="url",
864+
)
865+
866+
```
867+
</dd>
868+
</dl>
869+
</dd>
870+
</dl>
871+
872+
#### ⚙️ Parameters
873+
874+
<dl>
875+
<dd>
876+
877+
<dl>
878+
<dd>
879+
880+
**url:** `Url`
881+
882+
</dd>
883+
</dl>
884+
885+
<dl>
886+
<dd>
887+
888+
**events:** `typing.Optional[Events]`
889+
890+
</dd>
891+
</dl>
892+
893+
<dl>
894+
<dd>
895+
896+
**inboxes:** `typing.Optional[Inboxes]`
897+
898+
</dd>
899+
</dl>
900+
901+
<dl>
902+
<dd>
903+
904+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
905+
906+
</dd>
907+
</dl>
908+
</dd>
909+
</dl>
910+
911+
912+
</dd>
913+
</dl>
914+
</details>
915+
916+
<details><summary><code>client.webhooks.<a href="src/agentmail/webhooks/client.py">delete</a>(...)</code></summary>
917+
<dl>
918+
<dd>
919+
920+
#### 🔌 Usage
921+
922+
<dl>
923+
<dd>
924+
925+
<dl>
926+
<dd>
927+
928+
```python
929+
from agentmail import AgentMail
930+
931+
client = AgentMail(
932+
api_key="YOUR_API_KEY",
933+
)
934+
client.webhooks.delete(
935+
webhook_id="webhook_id",
936+
)
937+
938+
```
939+
</dd>
940+
</dl>
941+
</dd>
942+
</dl>
943+
944+
#### ⚙️ Parameters
945+
946+
<dl>
947+
<dd>
948+
949+
<dl>
950+
<dd>
951+
952+
**webhook_id:** `WebhookId`
953+
954+
</dd>
955+
</dl>
956+
957+
<dl>
958+
<dd>
959+
960+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
961+
962+
</dd>
963+
</dl>
964+
</dd>
965+
</dl>
966+
967+
968+
</dd>
969+
</dl>
970+
</details>
971+

src/agentmail/__init__.py

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
ValidationErrorResponse,
1313
)
1414
from .errors import IsTakenError, NotFoundError, ValidationError
15-
from . import inboxes, messages, threads
15+
from . import inboxes, messages, threads, webhooks
1616
from .client import AgentMail, AsyncAgentMail
1717
from .environment import AgentMailEnvironment
1818
from .inboxes import CreateInboxRequest, DisplayName, Inbox, InboxId, ListInboxesResponse
@@ -67,6 +67,22 @@
6767
ThreadTimestamp,
6868
)
6969
from .version import __version__
70+
from .webhooks import (
71+
CreateWebhookRequest,
72+
EventId,
73+
EventType,
74+
Events,
75+
Inboxes,
76+
ListWebhooksResponse,
77+
MessageReceivedPayload,
78+
Payload,
79+
SvixId,
80+
SvixSignature,
81+
SvixTimestamp,
82+
Url,
83+
Webhook,
84+
WebhookId,
85+
)
7086

7187
__all__ = [
7288
"Addresses",
@@ -81,17 +97,23 @@
8197
"AttachmentSize",
8298
"Count",
8399
"CreateInboxRequest",
100+
"CreateWebhookRequest",
84101
"DisplayName",
85102
"ErrorName",
86103
"ErrorResponse",
104+
"EventId",
105+
"EventType",
106+
"Events",
87107
"Inbox",
88108
"InboxId",
109+
"Inboxes",
89110
"IsTakenError",
90111
"LastKey",
91112
"Limit",
92113
"ListInboxesResponse",
93114
"ListMessagesResponse",
94115
"ListThreadsResponse",
116+
"ListWebhooksResponse",
95117
"Message",
96118
"MessageAttachments",
97119
"MessageBcc",
@@ -104,6 +126,7 @@
104126
"MessageItem",
105127
"MessageLabels",
106128
"MessagePreview",
129+
"MessageReceivedPayload",
107130
"MessageReferences",
108131
"MessageReplyTo",
109132
"MessageSubject",
@@ -112,6 +135,7 @@
112135
"MessageTo",
113136
"NotFoundError",
114137
"OrganizationId",
138+
"Payload",
115139
"Received",
116140
"ReplyToMessageRequest",
117141
"SendMessageBcc",
@@ -120,6 +144,9 @@
120144
"SendMessageResponse",
121145
"SendMessageTo",
122146
"Sent",
147+
"SvixId",
148+
"SvixSignature",
149+
"SvixTimestamp",
123150
"Thread",
124151
"ThreadAttachment",
125152
"ThreadAttachments",
@@ -133,10 +160,14 @@
133160
"ThreadSenders",
134161
"ThreadSubject",
135162
"ThreadTimestamp",
163+
"Url",
136164
"ValidationError",
137165
"ValidationErrorResponse",
166+
"Webhook",
167+
"WebhookId",
138168
"__version__",
139169
"inboxes",
140170
"messages",
141171
"threads",
172+
"webhooks",
142173
]

0 commit comments

Comments
 (0)