agentboxd 0.1.0__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. {agentboxd-0.1.0 → agentboxd-0.1.2}/CHANGELOG.md +95 -1
  2. {agentboxd-0.1.0 → agentboxd-0.1.2}/PKG-INFO +60 -7
  3. {agentboxd-0.1.0 → agentboxd-0.1.2}/README.md +59 -6
  4. {agentboxd-0.1.0 → agentboxd-0.1.2}/pyproject.toml +1 -1
  5. {agentboxd-0.1.0 → agentboxd-0.1.2}/src/agentboxd/__init__.py +74 -0
  6. {agentboxd-0.1.0 → agentboxd-0.1.2}/src/agentboxd/_client.py +1332 -16
  7. {agentboxd-0.1.0 → agentboxd-0.1.2}/src/agentboxd/_errors.py +8 -2
  8. {agentboxd-0.1.0 → agentboxd-0.1.2}/src/agentboxd/_requests.py +382 -5
  9. {agentboxd-0.1.0 → agentboxd-0.1.2}/src/agentboxd/_stream.py +9 -2
  10. {agentboxd-0.1.0 → agentboxd-0.1.2}/src/agentboxd/_types.py +443 -6
  11. agentboxd-0.1.2/src/agentboxd/_version.py +1 -0
  12. {agentboxd-0.1.0 → agentboxd-0.1.2}/src/agentboxd/identity.py +157 -67
  13. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_agents.py +172 -0
  14. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_asim_phase2.py +140 -0
  15. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_async.py +4 -1
  16. agentboxd-0.1.2/tests/test_calendar.py +374 -0
  17. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_client.py +4 -1
  18. agentboxd-0.1.2/tests/test_deliveries_suppressions.py +95 -0
  19. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_drafts.py +38 -1
  20. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_identity_token.py +41 -0
  21. agentboxd-0.1.2/tests/test_key_expiry_all_mail.py +58 -0
  22. agentboxd-0.1.2/tests/test_memory.py +362 -0
  23. agentboxd-0.1.2/tests/test_reply_to.py +45 -0
  24. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_stream.py +45 -1
  25. agentboxd-0.1.0/src/agentboxd/_version.py +0 -1
  26. {agentboxd-0.1.0 → agentboxd-0.1.2}/.gitignore +0 -0
  27. {agentboxd-0.1.0 → agentboxd-0.1.2}/LICENSE +0 -0
  28. {agentboxd-0.1.0 → agentboxd-0.1.2}/examples/quickstart.py +0 -0
  29. {agentboxd-0.1.0 → agentboxd-0.1.2}/src/agentboxd/_attachments.py +0 -0
  30. {agentboxd-0.1.0 → agentboxd-0.1.2}/src/agentboxd/_consume.py +0 -0
  31. {agentboxd-0.1.0 → agentboxd-0.1.2}/src/agentboxd/_pagination.py +0 -0
  32. {agentboxd-0.1.0 → agentboxd-0.1.2}/src/agentboxd/_signup.py +0 -0
  33. {agentboxd-0.1.0 → agentboxd-0.1.2}/src/agentboxd/_webhooks.py +0 -0
  34. {agentboxd-0.1.0 → agentboxd-0.1.2}/src/agentboxd/py.typed +0 -0
  35. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/__init__.py +0 -0
  36. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/conftest.py +0 -0
  37. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_dashboard_v2.py +0 -0
  38. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_directory.py +0 -0
  39. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_domains_temporary.py +0 -0
  40. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_extraction.py +0 -0
  41. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_identities.py +0 -0
  42. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_identity.py +0 -0
  43. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_leases.py +0 -0
  44. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_phase2b.py +0 -0
  45. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_quick_wins.py +0 -0
  46. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_signup.py +0 -0
  47. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_trust.py +0 -0
  48. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_types.py +0 -0
  49. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_version.py +0 -0
  50. {agentboxd-0.1.0 → agentboxd-0.1.2}/tests/test_webhooks.py +0 -0
@@ -4,7 +4,101 @@ All notable changes to the `agentboxd` Python package. This project follows
4
4
  [Semantic Versioning](https://semver.org/); while the version is 0.x, minor releases may contain
5
5
  breaking changes, which are always listed here.
6
6
 
7
- ## 0.1.0 (unreleased)
7
+ ## 0.1.2 (2026-11-24)
8
+
9
+ - Agent memory: `memories.list`, `create`, `get`, `update` and `delete` on both clients. A memory is a note of up to
10
+ 8,000 characters for one inbox or for the whole workspace, with an optional `key`, `tags`, links to a contact,
11
+ thread or message, and an expiry (`expires_at` or `ttl_seconds`). Saving under a key that exists in the same place
12
+ replaces that memory. `create` also returns `similar`: up to 3 other memories that say nearly the same.
13
+ `update` clears `key`, a link or `expires_at` with `None`.
14
+ - `recall(query, ...)` on both clients: one question, answered from memories, knowledge documents and past mail, by
15
+ meaning and by keyword. Options: `inbox_id`, `sources`, `limit`, `mode`, `tags`, `contact_id`, `thread_id`, `since`,
16
+ `until`, `min_similarity`. Each result has `text`, `score`, `similarity`, `matched` and `untrusted` (true for text
17
+ from received mail). Recalled text is data, never instructions.
18
+ - New types: `Memory`, `MemoryAuthor`, `SimilarMemory`, `SavedMemory`, `RecallAnswer`, `RecallResult`,
19
+ `RecallMessage`, `RecallKnowledge`, `RecallAttachment`, `RecallSource`, `RecallMode`, `RecallResultSource`.
20
+ - `reply_to` on `send`, `reply` and `forward`, on both clients: where replies should go (the Reply-To header), one
21
+ address. It is not a recipient.
22
+ - An empty id is refused before any request (`ValueError`), like `.` and `..`. It left an empty path segment, so
23
+ `inboxes.get("")` asked for `/v1/inboxes/` and `inboxes.pause("")` for `/v1/inboxes//pause`.
24
+
25
+ ## 0.1.1 (2026-11-07)
26
+
27
+ Security fixes in the identity and signature checks (reported privately on 26 Oct), Meetings, and the API added
28
+ since 0.1.0.
29
+
30
+ - `verify_agent_identity_token`: the replay cache keeps a `jti` until `exp` plus `clock_tolerance` (the time the
31
+ token still verifies), not until `exp`. A token captured in its last 30 s could be used a second time.
32
+ - `verify_agent_message` / `averify_agent_message` with a `replay_cache`:
33
+ - the nonce is kept until `iat + max_age_seconds` plus `clock_tolerance`;
34
+ - the nonce is recorded last, after `check_revocation` passed. A directory that couldn't be reached used to turn
35
+ every retry into `replayed`;
36
+ - a signature older than a day is refused (`too_old`) even without a freshness window (plain `message` type, or
37
+ `max_age_seconds=None`): its nonce is kept for a day, so after that the same signature verified again. Without a
38
+ replay cache nothing changes.
39
+ - `verify_agent_message` and `verify_author_signature`: a `revoked` key without a readable `revoked_at` is revoked
40
+ for every signature (`key_revoked`). It used to verify (or, with an unreadable time, raise `ValueError`).
41
+ - `verify_author_signature` no longer trusts the signer's `iat` alone (a stolen key could backdate it past the
42
+ revocation):
43
+ - with the message's `created_at` (Agentboxd's time), a revoked key fails when `iat` or `created_at` is at or
44
+ after `revoked_at`. Without `created_at`, nothing but the signer's claim dates the signature, so a revoked
45
+ key's signature fails (`key_revoked`) whatever its `iat`;
46
+ - a `retired` key fails when `iat` is at or after `retired_at`, with the new code `key_retired`. Old signatures
47
+ stay valid, as the contract says, also on a copy delivered after the rotation;
48
+ - an `iat` in the future, or more than 60 s after `created_at`, fails with the new code `issued_in_future`. New
49
+ arguments `clock_tolerance` (default 30) and `now`.
50
+ - `verify_author_signature` and `sign_agent_message`: `to` and `cc` are one statement of who the message goes to.
51
+ Given either, the signer signs both (the one left out as `[]`), and once either is signed the verifier checks both,
52
+ the one left out meaning none: a cc added to a signed `to` fails with `content_mismatch`. It used to check only
53
+ the one that was signed. The server and the TypeScript SDK do the same.
54
+ - `DirectoryVerifyResult` for an author signature: a revoked key's signature is never `valid` now, whatever its
55
+ `iat`, and `reasons` may say `key_retired` or `issued_in_future`. `key_revoked_at` stays.
56
+ - `verify_agent_message` / `averify_agent_message` refuse a copy whose delivery signature names an author signature
57
+ (`agent_sig`) when the message no longer carries it: `content_mismatch` (`author`), as for a different one.
58
+ - An `agent-keys.json` or `jwks.json` answer that isn't a key set (not JSON, or no `keys` list) raises
59
+ `AgentMessageVerificationError` with code `unknown_key` (`AgentIdentityError` `invalid_token` for identity
60
+ tokens) and isn't cached, so the next call fetches again.
61
+ - `AgentboxdError.docs_url`: for a refused send, where its fix is documented (e.g.
62
+ `https://agentboxd.com/docs/send-refusals#sending_paused`); `None` for other errors.
63
+ - `webhooks.deliveries(webhook_id, status=, cursor=, limit=)`: the delivery log with status code, response time
64
+ (`last_response_ms`), error, attempt number and next retry (`WebhookDelivery`). `webhooks.redeliver(webhook_id,
65
+ delivery_id)` or `webhooks.redeliver(webhook_id, event_id=...)` sends one again with a fresh timestamp.
66
+ - `suppressions.list(...)` / `suppressions.remove(address, confirm=True)`: the workspace's own suppression list
67
+ (`Suppression`). `WebhookEventType` includes `suppression.removed`.
68
+ - `WebhookEventType` includes the team events `member.invited`, `member.invite_revoked`, `member.joined`,
69
+ `member.role_changed` and `member.removed`.
70
+ - `messages.list_all(...)`: messages of every inbox the key can see, newest first (`GET /v1/messages`), with the
71
+ filters of `messages.list` except `promotions`.
72
+ - `account.add_agent(kind, expires_at=...)`: the new key stops working at that time; `AddAgentResult` gains
73
+ `api_key_expires_at`. An expired key raises `AuthenticationError` with `code == "api_key_expired"`.
74
+ - `AsyncAgentboxd.stream()` raises `StreamClosedError` for an `error` frame only when it refuses the subscription
75
+ (`invalid_json`, `invalid_message`, `invalid_subscription`, `inbox_not_found`, `rate_limited`). Any other code,
76
+ such as a database error on the server during the replay, closes the connection and reconnects with backoff and
77
+ `since`. It used to stop.
78
+ - Meetings (beta): `calendar.list(inbox_id, ...)` / `calendar.list_all(...)` (filters `from_`, `to`, `status`,
79
+ `role`, `response`, `message_id`, the screening opt-ins, `cursor`, `limit`; `datetime` and `date` values are sent
80
+ as ISO strings), `calendar.get(event_id)`, `calendar.respond(event_id, "accepted", comment=, propose=)` (the answer
81
+ goes to the organizer only), `calendar.create(inbox_id, title=, start=, attendees=, ...)`,
82
+ `calendar.update(event_id, ...)` (`description`, `location`, `conference_url=None` clear them) and
83
+ `calendar.cancel(event_id, message=)`, sync and async, with `idempotency_key` on the four that send mail. Types
84
+ `CalendarEvent`, `CalendarEventResult`, `CalendarCancelResult`, `CalendarAttendeeInput` and their parts. Ids are
85
+ escaped path segments.
86
+ - `Message` gains `calendar` (`MessageCalendar`: `event_id`, `method`) when it carries calendar content.
87
+ `event_id` is None when the message changed no meeting; `method` is `CalendarMethod`.
88
+ `WebhookEventType` includes `calendar.invite.received`, `calendar.event.created`, `calendar.event.updated`,
89
+ `calendar.event.cancelled` and `calendar.response.received`.
90
+ - Meetings, recurring series: `expand="occurrences"` on `calendar.list` / `calendar.list_all` lists each occurrence of
91
+ a series between `from_` and `to` (at most 2 years); each has `series_id` (None for a single meeting) and the page
92
+ `truncated` (both return `CalendarEventPage`). `CalendarRecurrence` is `{rrule (or None), rdates, exdates}`.
93
+ - Meetings, approval drafts: `draft=True` on `calendar.respond`, `create`, `update` and `cancel` saves the message as
94
+ a draft for a person to approve instead of sending it (needs `drafts:write` instead of `messages:send`). Overloads
95
+ type the result: `CalendarDraftResult` (`event` is None for a new meeting, `message` None, `draft`) or
96
+ `CalendarCancelDraftResult` with `draft=True`, the sent result without it. `Draft` gains `calendar`
97
+ (`DraftCalendar`: `action`, `method`, `event_id`, `removed_attendees`; None for other drafts).
98
+ - `MessageApproval.type` is `"user"`, `"api_key"`, `"connector"` or `"policy"` (a code-level approval policy, not a
99
+ person or a key; `label` names it).
100
+
101
+ ## 0.1.0 (2026-10-05)
8
102
 
9
103
  First public release.
10
104
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: agentboxd
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Python client for Agentboxd: real email inboxes for AI agents. Send, receive, wait for replies, extract OTP codes and magic links.
5
5
  Project-URL: Homepage, https://agentboxd.com
6
6
  Project-URL: Documentation, https://agentboxd.com/docs/python-sdk
@@ -61,12 +61,6 @@ dependency is `httpx`. It is fully typed and ships `py.typed`.
61
61
  pip install agentboxd
62
62
  ```
63
63
 
64
- Not on PyPI yet? Install from the public repository:
65
-
66
- ```bash
67
- pip install "agentboxd @ git+https://github.com/agentboxd/agentboxd#subdirectory=sdk-python"
68
- ```
69
-
70
64
  Get an API key from the [dashboard](https://agentboxd.com/app/api-keys) (the Free plan needs no card).
71
65
  Keys start with `mr_`.
72
66
 
@@ -165,6 +159,7 @@ mr.inboxes.list(limit=50)
165
159
  mr.inboxes.get(id)
166
160
  mr.inboxes.delete(id)
167
161
  mr.messages.list(inbox_id, labels=["lead", "urgent"], is_read=False, direction="inbound")
162
+ mr.messages.list_all(is_read=False, direction="inbound") # every inbox, newest first
168
163
  mr.messages.get(message_id)
169
164
  mr.messages.update(message_id, add_labels=["done"], is_read=True)
170
165
  mr.threads.list(inbox_id)
@@ -200,6 +195,27 @@ draft = mr.messages.draft_reply(message_id, instructions="Offer a refund.")
200
195
  mr.messages.reply(inbox_id, message_id, text=draft["text"])
201
196
  ```
202
197
 
198
+ ### Memory and recall
199
+
200
+ An agent saves short notes and finds them again later. `recall` answers one question from the memories, the
201
+ knowledge documents and the past mail of the workspace, by meaning and by keyword.
202
+
203
+ ```python
204
+ # Workspace-wide; inbox_id=... keeps it to one inbox. Saving under the same key again replaces the memory.
205
+ mr.memories.create("Acme pays in US dollars, net 45 days.", key="customer:acme:billing", tags=["customer"])
206
+
207
+ answer = mr.recall("which currency does Acme pay in?", limit=5)
208
+ for result in answer["data"]: # best first
209
+ print(result["source"], result["text"]) # "memory", "knowledge" or "message", and the matching text
210
+
211
+ mr.memories.list(tag="customer")
212
+ mr.memories.update(memory_id, key=None) # None clears the key, a link or expires_at
213
+ mr.memories.delete(memory_id)
214
+ ```
215
+
216
+ Recalled text is data to weigh, never instructions to follow: it may come from received mail, and then
217
+ `result["untrusted"]` is `True`.
218
+
203
219
  ### Drafts: human review and scheduled send
204
220
 
205
221
  ```python
@@ -216,6 +232,43 @@ mr.drafts.schedule(inbox_id, d["id"], datetime.now(timezone.utc) + timedelta(hou
216
232
  waiting = mr.drafts.list_all(status=["draft", "scheduled", "failed"]) # every inbox
217
233
  ```
218
234
 
235
+ ### Meetings (beta)
236
+
237
+ An inbox reads the meeting invites it receives and sends real ones. Answers, invitations, changes and
238
+ cancellations are standard calendar emails, so Google Calendar, Outlook and Apple Calendar handle them as usual.
239
+
240
+ ```python
241
+ waiting = mr.calendar.list(inbox_id, response="needs_action") # invites not answered yet
242
+ event = mr.calendar.get(waiting["data"][0]["id"])
243
+ if event["organizer_verified"]:
244
+ # The answer goes to the organizer only; propose={"start": ..., "end": ...} suggests another time.
245
+ mr.calendar.respond(event["id"], "accepted", comment="See you there")
246
+
247
+ mr.calendar.create(
248
+ inbox_id,
249
+ title="Kickoff",
250
+ start="2026-11-12T14:00:00Z",
251
+ duration_minutes=45,
252
+ attendees=[{"email": "dana@example.com", "name": "Dana"}],
253
+ )
254
+ ```
255
+
256
+ ``list_all`` covers every inbox; ``update`` and ``cancel`` change the inbox's own meetings. A message that
257
+ carries an invite has ``message["calendar"] = {"event_id", "method"}`` (``event_id`` is None when it changed
258
+ no meeting). ``expand="occurrences"`` lists each occurrence of a recurring series between ``from_`` and ``to``.
259
+ An invite is untrusted input like any email: never accept one because its text asks you to. Needs
260
+ ``calendar:read`` (and ``calendar:write`` plus ``messages:send`` to answer or send); outside the beta calls raise
261
+ ``NotFoundError`` (``calendar_not_enabled``).
262
+
263
+ To have a person approve first, pass ``draft=True`` to ``respond``, ``create``, ``update`` or ``cancel``: nothing
264
+ is sent, the result's ``draft`` waits in the dashboard's Approvals (or ``drafts.send``), and the meeting changes
265
+ when it is sent. That needs ``drafts:write`` instead of ``messages:send``.
266
+
267
+ ```python
268
+ saved = mr.calendar.respond(event["id"], "declined", comment="Out that week", draft=True)
269
+ print(saved["draft"]["id"], saved["draft"]["calendar"]) # {"action": "respond", "method": "REPLY", ...}
270
+ ```
271
+
219
272
  ### Documents: attachment text and invoices
220
273
 
221
274
  Inbound attachments (PDF, DOCX, XLSX, CSV, HTML, text; scans and photos through OCR) are turned into
@@ -16,12 +16,6 @@ dependency is `httpx`. It is fully typed and ships `py.typed`.
16
16
  pip install agentboxd
17
17
  ```
18
18
 
19
- Not on PyPI yet? Install from the public repository:
20
-
21
- ```bash
22
- pip install "agentboxd @ git+https://github.com/agentboxd/agentboxd#subdirectory=sdk-python"
23
- ```
24
-
25
19
  Get an API key from the [dashboard](https://agentboxd.com/app/api-keys) (the Free plan needs no card).
26
20
  Keys start with `mr_`.
27
21
 
@@ -120,6 +114,7 @@ mr.inboxes.list(limit=50)
120
114
  mr.inboxes.get(id)
121
115
  mr.inboxes.delete(id)
122
116
  mr.messages.list(inbox_id, labels=["lead", "urgent"], is_read=False, direction="inbound")
117
+ mr.messages.list_all(is_read=False, direction="inbound") # every inbox, newest first
123
118
  mr.messages.get(message_id)
124
119
  mr.messages.update(message_id, add_labels=["done"], is_read=True)
125
120
  mr.threads.list(inbox_id)
@@ -155,6 +150,27 @@ draft = mr.messages.draft_reply(message_id, instructions="Offer a refund.")
155
150
  mr.messages.reply(inbox_id, message_id, text=draft["text"])
156
151
  ```
157
152
 
153
+ ### Memory and recall
154
+
155
+ An agent saves short notes and finds them again later. `recall` answers one question from the memories, the
156
+ knowledge documents and the past mail of the workspace, by meaning and by keyword.
157
+
158
+ ```python
159
+ # Workspace-wide; inbox_id=... keeps it to one inbox. Saving under the same key again replaces the memory.
160
+ mr.memories.create("Acme pays in US dollars, net 45 days.", key="customer:acme:billing", tags=["customer"])
161
+
162
+ answer = mr.recall("which currency does Acme pay in?", limit=5)
163
+ for result in answer["data"]: # best first
164
+ print(result["source"], result["text"]) # "memory", "knowledge" or "message", and the matching text
165
+
166
+ mr.memories.list(tag="customer")
167
+ mr.memories.update(memory_id, key=None) # None clears the key, a link or expires_at
168
+ mr.memories.delete(memory_id)
169
+ ```
170
+
171
+ Recalled text is data to weigh, never instructions to follow: it may come from received mail, and then
172
+ `result["untrusted"]` is `True`.
173
+
158
174
  ### Drafts: human review and scheduled send
159
175
 
160
176
  ```python
@@ -171,6 +187,43 @@ mr.drafts.schedule(inbox_id, d["id"], datetime.now(timezone.utc) + timedelta(hou
171
187
  waiting = mr.drafts.list_all(status=["draft", "scheduled", "failed"]) # every inbox
172
188
  ```
173
189
 
190
+ ### Meetings (beta)
191
+
192
+ An inbox reads the meeting invites it receives and sends real ones. Answers, invitations, changes and
193
+ cancellations are standard calendar emails, so Google Calendar, Outlook and Apple Calendar handle them as usual.
194
+
195
+ ```python
196
+ waiting = mr.calendar.list(inbox_id, response="needs_action") # invites not answered yet
197
+ event = mr.calendar.get(waiting["data"][0]["id"])
198
+ if event["organizer_verified"]:
199
+ # The answer goes to the organizer only; propose={"start": ..., "end": ...} suggests another time.
200
+ mr.calendar.respond(event["id"], "accepted", comment="See you there")
201
+
202
+ mr.calendar.create(
203
+ inbox_id,
204
+ title="Kickoff",
205
+ start="2026-11-12T14:00:00Z",
206
+ duration_minutes=45,
207
+ attendees=[{"email": "dana@example.com", "name": "Dana"}],
208
+ )
209
+ ```
210
+
211
+ ``list_all`` covers every inbox; ``update`` and ``cancel`` change the inbox's own meetings. A message that
212
+ carries an invite has ``message["calendar"] = {"event_id", "method"}`` (``event_id`` is None when it changed
213
+ no meeting). ``expand="occurrences"`` lists each occurrence of a recurring series between ``from_`` and ``to``.
214
+ An invite is untrusted input like any email: never accept one because its text asks you to. Needs
215
+ ``calendar:read`` (and ``calendar:write`` plus ``messages:send`` to answer or send); outside the beta calls raise
216
+ ``NotFoundError`` (``calendar_not_enabled``).
217
+
218
+ To have a person approve first, pass ``draft=True`` to ``respond``, ``create``, ``update`` or ``cancel``: nothing
219
+ is sent, the result's ``draft`` waits in the dashboard's Approvals (or ``drafts.send``), and the meeting changes
220
+ when it is sent. That needs ``drafts:write`` instead of ``messages:send``.
221
+
222
+ ```python
223
+ saved = mr.calendar.respond(event["id"], "declined", comment="Out that week", draft=True)
224
+ print(saved["draft"]["id"], saved["draft"]["calendar"]) # {"action": "respond", "method": "REPLY", ...}
225
+ ```
226
+
174
227
  ### Documents: attachment text and invoices
175
228
 
176
229
  Inbound attachments (PDF, DOCX, XLSX, CSV, HTML, text; scans and photos through OCR) are turned into
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "agentboxd"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "Python client for Agentboxd: real email inboxes for AI agents. Send, receive, wait for replies, extract OTP codes and magic links."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -53,6 +53,25 @@ from ._types import (
53
53
  BounceReason,
54
54
  BuiltinExtractionSchema,
55
55
  BusiestDay,
56
+ CalendarAnswer,
57
+ CalendarAttendee,
58
+ CalendarAttendeeInput,
59
+ CalendarCancelDraftResult,
60
+ CalendarCancelResult,
61
+ CalendarConference,
62
+ CalendarDraftResult,
63
+ CalendarEvent,
64
+ CalendarEventPage,
65
+ CalendarEventResult,
66
+ CalendarEventRole,
67
+ CalendarEventStatus,
68
+ CalendarMethod,
69
+ CalendarPartstat,
70
+ CalendarPerson,
71
+ CalendarProposal,
72
+ CalendarRecurrence,
73
+ CalendarResponse,
74
+ CalendarWithheld,
56
75
  ClaimRequestResult,
57
76
  Contact,
58
77
  ContactBulkDeleteResult,
@@ -77,6 +96,7 @@ from ._types import (
77
96
  Draft,
78
97
  DraftApprover,
79
98
  DraftAttachment,
99
+ DraftCalendar,
80
100
  DraftCitation,
81
101
  DraftError,
82
102
  DraftKeep,
@@ -121,12 +141,15 @@ from ._types import (
121
141
  LocalScreen,
122
142
  LocalScreenReason,
123
143
  LocalSpam,
144
+ Memory,
145
+ MemoryAuthor,
124
146
  Message,
125
147
  MessageAgent,
126
148
  MessageAi,
127
149
  MessageAnalysis,
128
150
  MessageApproval,
129
151
  MessageAuthor,
152
+ MessageCalendar,
130
153
  MessageCategory,
131
154
  MessageCategoryInfo,
132
155
  MessageChannel,
@@ -154,9 +177,18 @@ from ._types import (
154
177
  PublicHandle,
155
178
  QueueMetrics,
156
179
  QuietHours,
180
+ RecallAnswer,
181
+ RecallAttachment,
182
+ RecallKnowledge,
183
+ RecallMessage,
184
+ RecallMode,
185
+ RecallResult,
186
+ RecallResultSource,
187
+ RecallSource,
157
188
  ResolvedAgent,
158
189
  Resources,
159
190
  ResumedInbox,
191
+ SavedMemory,
160
192
  ScreeningReason,
161
193
  ScreeningState,
162
194
  SearchResult,
@@ -164,10 +196,13 @@ from ._types import (
164
196
  SignupClaim,
165
197
  SignupResult,
166
198
  SignupWorkspace,
199
+ SimilarMemory,
167
200
  Streak,
168
201
  StreamEvent,
169
202
  StreamToken,
170
203
  StructuredExtraction,
204
+ Suppression,
205
+ SuppressionReason,
171
206
  Thread,
172
207
  ThreadWithMessages,
173
208
  UnclaimedRestrictions,
@@ -176,6 +211,8 @@ from ._types import (
176
211
  VerificationResult,
177
212
  Webhook,
178
213
  WebhookCatalogEntry,
214
+ WebhookDelivery,
215
+ WebhookDeliveryStatus,
179
216
  WebhookEvent,
180
217
  WebhookEventType,
181
218
  WebhookPayload,
@@ -224,6 +261,25 @@ __all__ = [
224
261
  "BounceReason",
225
262
  "BuiltinExtractionSchema",
226
263
  "BusiestDay",
264
+ "CalendarAnswer",
265
+ "CalendarAttendee",
266
+ "CalendarAttendeeInput",
267
+ "CalendarCancelDraftResult",
268
+ "CalendarCancelResult",
269
+ "CalendarConference",
270
+ "CalendarDraftResult",
271
+ "CalendarEvent",
272
+ "CalendarEventPage",
273
+ "CalendarEventResult",
274
+ "CalendarEventRole",
275
+ "CalendarEventStatus",
276
+ "CalendarMethod",
277
+ "CalendarPartstat",
278
+ "CalendarPerson",
279
+ "CalendarProposal",
280
+ "CalendarRecurrence",
281
+ "CalendarResponse",
282
+ "CalendarWithheld",
227
283
  "ClaimRequestResult",
228
284
  "ConsumeContext",
229
285
  "Contact",
@@ -249,6 +305,7 @@ __all__ = [
249
305
  "Draft",
250
306
  "DraftApprover",
251
307
  "DraftAttachment",
308
+ "DraftCalendar",
252
309
  "DraftCitation",
253
310
  "DraftError",
254
311
  "DraftKeep",
@@ -296,12 +353,15 @@ __all__ = [
296
353
  "LocalScreenReason",
297
354
  "LocalSpam",
298
355
  "MailroomError",
356
+ "Memory",
357
+ "MemoryAuthor",
299
358
  "Message",
300
359
  "MessageAgent",
301
360
  "MessageAi",
302
361
  "MessageAnalysis",
303
362
  "MessageApproval",
304
363
  "MessageAuthor",
364
+ "MessageCalendar",
305
365
  "MessageCategory",
306
366
  "MessageCategoryInfo",
307
367
  "MessageChannel",
@@ -333,9 +393,18 @@ __all__ = [
333
393
  "QueueMetrics",
334
394
  "QuietHours",
335
395
  "RateLimitError",
396
+ "RecallAnswer",
397
+ "RecallAttachment",
398
+ "RecallKnowledge",
399
+ "RecallMessage",
400
+ "RecallMode",
401
+ "RecallResult",
402
+ "RecallResultSource",
403
+ "RecallSource",
336
404
  "ResolvedAgent",
337
405
  "Resources",
338
406
  "ResumedInbox",
407
+ "SavedMemory",
339
408
  "ScreeningReason",
340
409
  "ScreeningState",
341
410
  "SearchResult",
@@ -344,11 +413,14 @@ __all__ = [
344
413
  "SignupClaim",
345
414
  "SignupResult",
346
415
  "SignupWorkspace",
416
+ "SimilarMemory",
347
417
  "Streak",
348
418
  "StreamClosedError",
349
419
  "StreamEvent",
350
420
  "StreamToken",
351
421
  "StructuredExtraction",
422
+ "Suppression",
423
+ "SuppressionReason",
352
424
  "Thread",
353
425
  "ThreadWithMessages",
354
426
  "UnclaimedRestrictions",
@@ -358,6 +430,8 @@ __all__ = [
358
430
  "VerificationResult",
359
431
  "Webhook",
360
432
  "WebhookCatalogEntry",
433
+ "WebhookDelivery",
434
+ "WebhookDeliveryStatus",
361
435
  "WebhookEvent",
362
436
  "WebhookEventType",
363
437
  "WebhookPayload",