Skip to content

Commit efc1a80

Browse files
committed
Release 0.0.26
1 parent ea41415 commit efc1a80

File tree

95 files changed

+413
-416
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+413
-416
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pip install agentmail
1313

1414
## Reference
1515

16-
A full reference for this library is available [here](./reference.md).
16+
A full reference for this library is available [here](https://github.com/agentmail-to/agentmail-python/blob/HEAD/./reference.md).
1717

1818
## Usage
1919

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

src/agentmail/__init__.py

Lines changed: 146 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,84 @@
1414
ValidationErrorResponse,
1515
)
1616
from .errors import IsTakenError, NotFoundError, ValidationError
17-
from . import drafts, inboxes, threads, webhooks
17+
from . import drafts, inboxes, messages, threads, webhooks
1818
from .client import AgentMail, AsyncAgentMail
19+
from .drafts import (
20+
CreateDraftRequest,
21+
Draft,
22+
DraftAttachments,
23+
DraftBcc,
24+
DraftCc,
25+
DraftCreatedAt,
26+
DraftEventId,
27+
DraftHtml,
28+
DraftId,
29+
DraftInReplyTo,
30+
DraftItem,
31+
DraftLabels,
32+
DraftPreview,
33+
DraftReferences,
34+
DraftSubject,
35+
DraftText,
36+
DraftTo,
37+
DraftUpdatedAt,
38+
ListDraftsResponse,
39+
)
1940
from .environment import AgentMailEnvironment
41+
from .messages import (
42+
Addresses,
43+
Attachment,
44+
AttachmentContent,
45+
AttachmentContentType,
46+
AttachmentFilename,
47+
AttachmentId,
48+
AttachmentInline,
49+
AttachmentSize,
50+
ListMessagesResponse,
51+
Message,
52+
MessageAttachments,
53+
MessageBcc,
54+
MessageCc,
55+
MessageEventId,
56+
MessageFrom,
57+
MessageHtml,
58+
MessageId,
59+
MessageInReplyTo,
60+
MessageItem,
61+
MessageLabels,
62+
MessagePreview,
63+
MessageReferences,
64+
MessageRejectedError,
65+
MessageSubject,
66+
MessageText,
67+
MessageTimestamp,
68+
MessageTo,
69+
ReplyToMessageRequest,
70+
SendAttachment,
71+
SendMessageAttachments,
72+
SendMessageBcc,
73+
SendMessageCc,
74+
SendMessageRequest,
75+
SendMessageResponse,
76+
SendMessageTo,
77+
UpdateMessageRequest,
78+
)
79+
from .threads import (
80+
ListThreadsResponse,
81+
Thread,
82+
ThreadAttachment,
83+
ThreadAttachments,
84+
ThreadEventId,
85+
ThreadId,
86+
ThreadItem,
87+
ThreadLabels,
88+
ThreadMessageCount,
89+
ThreadPreview,
90+
ThreadRecipients,
91+
ThreadSenders,
92+
ThreadSubject,
93+
ThreadTimestamp,
94+
)
2095
from .version import __version__
2196
from .webhooks import (
2297
CreateWebhookRequest,
@@ -35,12 +110,38 @@
35110
)
36111

37112
__all__ = [
113+
"Addresses",
38114
"AgentMail",
39115
"AgentMailEnvironment",
40116
"Ascending",
41117
"AsyncAgentMail",
118+
"Attachment",
119+
"AttachmentContent",
120+
"AttachmentContentType",
121+
"AttachmentFilename",
122+
"AttachmentId",
123+
"AttachmentInline",
124+
"AttachmentSize",
42125
"Count",
126+
"CreateDraftRequest",
43127
"CreateWebhookRequest",
128+
"Draft",
129+
"DraftAttachments",
130+
"DraftBcc",
131+
"DraftCc",
132+
"DraftCreatedAt",
133+
"DraftEventId",
134+
"DraftHtml",
135+
"DraftId",
136+
"DraftInReplyTo",
137+
"DraftItem",
138+
"DraftLabels",
139+
"DraftPreview",
140+
"DraftReferences",
141+
"DraftSubject",
142+
"DraftText",
143+
"DraftTo",
144+
"DraftUpdatedAt",
44145
"ErrorName",
45146
"ErrorResponse",
46147
"EventId",
@@ -51,13 +152,56 @@
51152
"Labels",
52153
"LastKey",
53154
"Limit",
155+
"ListDraftsResponse",
156+
"ListMessagesResponse",
157+
"ListThreadsResponse",
54158
"ListWebhooksResponse",
159+
"Message",
160+
"MessageAttachments",
161+
"MessageBcc",
162+
"MessageCc",
163+
"MessageEventId",
164+
"MessageFrom",
165+
"MessageHtml",
166+
"MessageId",
167+
"MessageInReplyTo",
168+
"MessageItem",
169+
"MessageLabels",
170+
"MessagePreview",
55171
"MessageReceivedPayload",
172+
"MessageReferences",
173+
"MessageRejectedError",
174+
"MessageSubject",
175+
"MessageText",
176+
"MessageTimestamp",
177+
"MessageTo",
56178
"NotFoundError",
57179
"OrganizationId",
180+
"ReplyToMessageRequest",
181+
"SendAttachment",
182+
"SendMessageAttachments",
183+
"SendMessageBcc",
184+
"SendMessageCc",
185+
"SendMessageRequest",
186+
"SendMessageResponse",
187+
"SendMessageTo",
58188
"SvixId",
59189
"SvixSignature",
60190
"SvixTimestamp",
191+
"Thread",
192+
"ThreadAttachment",
193+
"ThreadAttachments",
194+
"ThreadEventId",
195+
"ThreadId",
196+
"ThreadItem",
197+
"ThreadLabels",
198+
"ThreadMessageCount",
199+
"ThreadPreview",
200+
"ThreadRecipients",
201+
"ThreadSenders",
202+
"ThreadSubject",
203+
"ThreadTimestamp",
204+
"UpdateMessageRequest",
61205
"Url",
62206
"ValidationError",
63207
"ValidationErrorResponse",
@@ -66,6 +210,7 @@
66210
"__version__",
67211
"drafts",
68212
"inboxes",
213+
"messages",
69214
"threads",
70215
"webhooks",
71216
]

src/agentmail/core/client_wrapper.py

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

2121
def get_headers(self) -> typing.Dict[str, str]:
2222
headers: typing.Dict[str, str] = {
23-
"User-Agent": "agentmail/0.0.25",
23+
"User-Agent": "agentmail/0.0.26",
2424
"X-Fern-Language": "Python",
2525
"X-Fern-SDK-Name": "agentmail",
26-
"X-Fern-SDK-Version": "0.0.25",
26+
"X-Fern-SDK-Version": "0.0.26",
2727
}
2828
headers["Authorization"] = f"Bearer {self._get_api_key()}"
2929
return headers

src/agentmail/drafts/__init__.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,46 @@
22

33
# isort: skip_file
44

5+
from .types import (
6+
CreateDraftRequest,
7+
Draft,
8+
DraftAttachments,
9+
DraftBcc,
10+
DraftCc,
11+
DraftCreatedAt,
12+
DraftEventId,
13+
DraftHtml,
14+
DraftId,
15+
DraftInReplyTo,
16+
DraftItem,
17+
DraftLabels,
18+
DraftPreview,
19+
DraftReferences,
20+
DraftSubject,
21+
DraftText,
22+
DraftTo,
23+
DraftUpdatedAt,
24+
ListDraftsResponse,
25+
)
26+
27+
__all__ = [
28+
"CreateDraftRequest",
29+
"Draft",
30+
"DraftAttachments",
31+
"DraftBcc",
32+
"DraftCc",
33+
"DraftCreatedAt",
34+
"DraftEventId",
35+
"DraftHtml",
36+
"DraftId",
37+
"DraftInReplyTo",
38+
"DraftItem",
39+
"DraftLabels",
40+
"DraftPreview",
41+
"DraftReferences",
42+
"DraftSubject",
43+
"DraftText",
44+
"DraftTo",
45+
"DraftUpdatedAt",
46+
"ListDraftsResponse",
47+
]

src/agentmail/drafts/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
66
from ..core.request_options import RequestOptions
7-
from ..inboxes.drafts.types.draft import Draft
8-
from ..inboxes.drafts.types.draft_id import DraftId
9-
from ..inboxes.drafts.types.list_drafts_response import ListDraftsResponse
107
from ..types.ascending import Ascending
118
from ..types.labels import Labels
129
from ..types.last_key import LastKey
1310
from ..types.limit import Limit
1411
from .raw_client import AsyncRawDraftsClient, RawDraftsClient
12+
from .types.draft import Draft
13+
from .types.draft_id import DraftId
14+
from .types.list_drafts_response import ListDraftsResponse
1515

1616

1717
class DraftsClient:

src/agentmail/drafts/raw_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
from ..core.pydantic_utilities import parse_obj_as
1111
from ..core.request_options import RequestOptions
1212
from ..errors.not_found_error import NotFoundError
13-
from ..inboxes.drafts.types.draft import Draft
14-
from ..inboxes.drafts.types.draft_id import DraftId
15-
from ..inboxes.drafts.types.list_drafts_response import ListDraftsResponse
1613
from ..types.ascending import Ascending
1714
from ..types.error_response import ErrorResponse
1815
from ..types.labels import Labels
1916
from ..types.last_key import LastKey
2017
from ..types.limit import Limit
18+
from .types.draft import Draft
19+
from .types.draft_id import DraftId
20+
from .types.list_drafts_response import ListDraftsResponse
2121

2222

2323
class RawDraftsClient:
File renamed without changes.

src/agentmail/inboxes/drafts/types/create_draft_request.py renamed to src/agentmail/drafts/types/create_draft_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import typing
44

55
import pydantic
6-
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
6+
from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
77
from .draft_bcc import DraftBcc
88
from .draft_cc import DraftCc
99
from .draft_html import DraftHtml

src/agentmail/inboxes/drafts/types/draft.py renamed to src/agentmail/drafts/types/draft.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import typing
44

55
import pydantic
6-
from ....core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
6+
from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7+
from ...inboxes.types.inbox_id import InboxId
78
from ...threads.types.thread_id import ThreadId
8-
from ...types.inbox_id import InboxId
99
from .draft_attachments import DraftAttachments
1010
from .draft_bcc import DraftBcc
1111
from .draft_cc import DraftCc

0 commit comments

Comments
 (0)