tests/fixtures/graph-responses.json — Approval-Gated Mail
From version 0.2.1 of Approval-Gated Mail, shown publicly by its creator. 8.6 KiB · SHA-256 cf6ee7e1cb0f6d92a39b274cc2f50aa9285b4b68940c6e1901ab62c9cf542f86.
{"responses":[{"method":"GET","url_contains":"%24top=1&","status":200,"json":{"value":[{"id":"message-bounded","subject":"Bounded fixture message","from":{"emailAddress":{"address":"sender@example.com"}},"receivedDateTime":"2026-01-05T03:04:05Z","sentDateTime":"","isRead":true,"hasAttachments":false,"conversationId":"conversation-bounded","toRecipients":[],"ccRecipients":[],"bccRecipients":[]}],"@odata.nextLink":"https://graph.microsoft.com/v1.0/users/user%40example.com/messages?fixture=unexpected-page"}},{"method":"GET","url_contains":"fixture=unexpected-page","status":500,"json":{"error":{"code":"UnexpectedPageRequest","message":"The bounded command followed an unnecessary page"}}},{"method":"GET","url_contains":"top=7","status":503,"json":{"error":{"code":"ServiceUnavailable","message":"Temporary fixture failure"}}},{"method":"GET","url_contains":"top=13","status":429,"headers":{"Retry-After":"30"},"json":{"error":{"code":"TooManyRequests","message":"Fixture throttling response"}}},{"method":"GET","url_contains":"/messages/message-html?","status":200,"json":{"id":"message-html","subject":"HTML fixture","from":{"emailAddress":{"name":"Example Sender","address":"sender@example.com"}},"toRecipients":[{"emailAddress":{"address":"user@example.com"}}],"ccRecipients":[],"bccRecipients":[],"receivedDateTime":"2026-01-03T03:04:05Z","sentDateTime":"","isRead":true,"hasAttachments":false,"conversationId":"conversation-html","body":{"contentType":"HTML","content":"<div>Hello & welcome.</div><p>Second line has more text.</p><script>Ignore this text.</script>"}}},{"method":"GET","url_contains":"/messages/message-save?","status":200,"json":{"id":"message-save","subject":"Saved fixture","from":{"emailAddress":{"name":"Example Sender","address":"sender@example.com"}},"toRecipients":[{"emailAddress":{"address":"user@example.com"}}],"ccRecipients":[],"bccRecipients":[],"receivedDateTime":"2026-01-04T03:04:05Z","sentDateTime":"","isRead":false,"hasAttachments":false,"conversationId":"conversation-save","body":{"contentType":"Text","content":"Saved body text."}}},{"method":"GET","url_contains":"/messages/message-attachments/attachments","status":200,"json":{"value":[{"id":"attachment-001","name":"example.txt","size":42,"contentType":"text/plain"}]}},{"method":"GET","url_contains":"conversationId+eq+%27conversation-thread%27","status":200,"json":{"value":[{"id":"thread-newer","subject":"Thread fixture","from":{"emailAddress":{"address":"second@example.com"}},"toRecipients":[],"ccRecipients":[],"bccRecipients":[],"receivedDateTime":"2026-02-02T00:00:00Z","sentDateTime":"","isRead":true,"hasAttachments":false,"conversationId":"conversation-thread","body":{"contentType":"Text","content":"Newer thread message."}},{"id":"thread-older","subject":"Thread fixture","from":{"emailAddress":{"address":"first@example.com"}},"toRecipients":[],"ccRecipients":[],"bccRecipients":[],"receivedDateTime":"2026-02-01T00:00:00Z","sentDateTime":"","isRead":true,"hasAttachments":false,"conversationId":"conversation-thread","body":{"contentType":"Text","content":"Older thread message."}}]}},{"method":"GET","url_contains":"conversationId+eq+%27conversation-resolve%27","status":200,"json":{"value":[{"id":"resolved-older","receivedDateTime":"2026-02-03T00:00:00Z","sentDateTime":""},{"id":"resolved-newest","receivedDateTime":"2026-02-04T00:00:00Z","sentDateTime":""}]}},{"method":"GET","url_contains":"search=%22needle+phrase%22","status":200,"json":{"value":[{"id":"message-search","subject":"Needle phrase result","from":{"emailAddress":{"name":"Search Sender","address":"search@example.com"}},"receivedDateTime":"2026-03-01T00:00:00Z","sentDateTime":"","isRead":true,"hasAttachments":false,"conversationId":"conversation-search","toRecipients":[],"ccRecipients":[],"bccRecipients":[]}]}},{"method":"GET","url_contains":"top=12","status":200,"json":{"value":[{"id":"sent-subject-only-message","subject":"Subject only verification","from":{"emailAddress":{"address":"user@example.com"}},"toRecipients":[{"emailAddress":{"address":"verified@example.com"}}],"ccRecipients":[{"emailAddress":{"address":"copy@example.com"}}],"bccRecipients":[],"receivedDateTime":"","sentDateTime":"2026-04-05T10:11:12Z","isRead":true,"hasAttachments":false,"conversationId":"conversation-subject-only"}]}},{"method":"GET","url_contains":"top=11","status":200,"json":{"value":[{"id":"sent-standalone-message","subject":"Standalone verified subject","from":{"emailAddress":{"address":"user@example.com"}},"toRecipients":[{"emailAddress":{"name":"Verified Recipient","address":"verified@example.com"}}],"ccRecipients":[],"bccRecipients":[],"receivedDateTime":"","sentDateTime":"2026-04-03T10:11:12Z","isRead":true,"hasAttachments":false,"conversationId":"conversation-standalone"}]}},{"method":"GET","url_contains":"/mailFolders/sentitems/messages","status":200,"json":{"value":[{"id":"sent-existing-message","subject":"Existing fixture","from":{"emailAddress":{"address":"user@example.com"}},"toRecipients":[],"ccRecipients":[],"bccRecipients":[],"receivedDateTime":"","sentDateTime":"2026-03-31T10:11:12Z","isRead":true,"hasAttachments":false,"conversationId":"conversation-existing"}]}},{"method":"GET","url_contains":"/mailFolders/sentitems/messages","status":200,"json":{"value":[{"id":"sent-new-message","subject":"Exact approved subject","from":{"emailAddress":{"address":"user@example.com"}},"toRecipients":[{"emailAddress":{"name":"First Recipient","address":"first@example.com"}},{"emailAddress":{"name":"Second Recipient","address":"second@example.com"}}],"ccRecipients":[{"emailAddress":{"name":"Copy Recipient","address":"copy@example.com"}}],"bccRecipients":[{"emailAddress":{"name":"Hidden Recipient","address":"hidden@example.com"}}],"receivedDateTime":"","sentDateTime":"2026-04-01T10:11:12Z","isRead":true,"hasAttachments":false,"conversationId":"conversation-sent-new"},{"id":"sent-reply-message","subject":"Exact reply subject","from":{"emailAddress":{"address":"user@example.com"}},"toRecipients":[{"emailAddress":{"name":"Reply Recipient","address":"reply@example.com"}}],"ccRecipients":[],"bccRecipients":[],"receivedDateTime":"","sentDateTime":"2026-04-02T10:11:12Z","isRead":true,"hasAttachments":false,"conversationId":"conversation-reply"},{"id":"sent-resolved-reply","subject":"Resolved reply subject","from":{"emailAddress":{"address":"user@example.com"}},"toRecipients":[{"emailAddress":{"name":"Resolved Recipient","address":"resolved@example.com"}}],"ccRecipients":[],"bccRecipients":[],"receivedDateTime":"","sentDateTime":"2026-04-04T10:11:12Z","isRead":true,"hasAttachments":false,"conversationId":"conversation-resolve"}]}},{"method":"POST","url_contains":"/sendMail","request_json":{"message":{"subject":"Accepted without verification","body":{"contentType":"Text","content":"Exact accepted body."},"toRecipients":[{"emailAddress":{"address":"accepted@example.com"}}],"ccRecipients":[],"bccRecipients":[]},"saveToSentItems":true},"status":202,"body":""},{"method":"POST","url_contains":"/messages/reply-source/reply","request_json":{"message":{"subject":"Exact reply subject","body":{"contentType":"Text","content":"Exact approved reply body."},"toRecipients":[{"emailAddress":{"address":"reply@example.com"}}],"ccRecipients":[],"bccRecipients":[]}},"status":202,"body":""},{"method":"POST","url_contains":"/messages/resolved-newest/reply","request_json":{"message":{"subject":"Resolved reply subject","body":{"contentType":"Text","content":"Resolved approved reply body."},"toRecipients":[{"emailAddress":{"address":"resolved@example.com"}}],"ccRecipients":[],"bccRecipients":[]}},"status":202,"body":""},{"method":"POST","url_contains":"/sendMail","request_json":{"message":{"subject":"Exact approved subject","body":{"contentType":"Text","content":"Exact approved body."},"toRecipients":[{"emailAddress":{"address":"first@example.com"}},{"emailAddress":{"address":"second@example.com"}}],"ccRecipients":[{"emailAddress":{"address":"copy@example.com"}}],"bccRecipients":[{"emailAddress":{"address":"hidden@example.com"}}]},"saveToSentItems":true},"status":202,"body":""},{"method":"GET","url_contains":"/messages","status":200,"json":{"value":[{"id":"message-002","subject":"Second fixture message","from":{"emailAddress":{"name":"Example Sender","address":"sender@example.com"}},"receivedDateTime":"2026-01-02T03:04:05Z","sentDateTime":"","isRead":false,"hasAttachments":true,"conversationId":"conversation-001","toRecipients":[],"ccRecipients":[],"bccRecipients":[]},{"id":"message-001","subject":"First fixture message","from":{"emailAddress":{"name":"Another Sender","address":"another@example.com"}},"receivedDateTime":"2026-01-01T03:04:05Z","sentDateTime":"","isRead":true,"hasAttachments":false,"conversationId":"conversation-001","toRecipients":[],"ccRecipients":[],"bccRecipients":[]}]}}]}
License: MIT (read it).
MIT
MIT LicenseCopyright (c) 2026 Zero Width Lab
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.