Breaking changes
- Client authentication is now generic. For HTTP Basic or Bearer authentication, construct a Client using
Client.create_with_password
orClient.create_with_api_token
, respectively. Arbitrary authentication methods viarequests.auth.AuthBase
are supported by theClient
constructor'sauth
argument. - JMAP requests are now run using
Client.request
instead ofClient.method_call
orClient.method_calls
, both of which have been removed.Client.request
supports the previous multi-method use cases, with a new pair of classesInvocation
andInvocationResponse
instead of using tuples for multiple requests and responses. MultipleClient.request
overloads with specific typing are provided. - Result references should now use
Ref
instead ofResultReference
.ResultReference
remains but is now intended for internal use.Ref
is simpler to use; in most cases you can simply useRef("/path")
to reference the/path
value of the immediately preceding method.
What's Changed
- Add repository image by @smkent in #30
- Add pull_request to CI triggers by @smkent in #32
- Rework client authentication and add factory methods for basic, bearer auth by @smkent in #33
- Added Set Mailbox Functionality by @bwilliams18 in #31
- Add on_destroy_remove_emails to MailboxSet, unit tests by @smkent in #34
- Implement /changes methods for all models by @smkent in #35
- Implement /queryChanges methods for Mailbox and Email by @smkent in #36
- Implement Identity/set method by @smkent in #37
- Remove unnecessary using property from MailboxSetResponse by @smkent in #38
- Test Thread len by @smkent in #40
- Implement support for EventSource events by @smkent in #39
- Add event source usage example by @smkent in #42
- Rework request interaction by @smkent in #41
- Add remaining fields to MailboxQueryFilterCondition by @smkent in #45
- Implement remaining EmailSubmission methods by @smkent in #46
- Implement Email/copy by @smkent in #47
- Rework JMAP method name configuration code by @smkent in #48
- Improve and streamline type hints by @smkent in #49
- Surface EventSource state events regardless of whether ID is present by @smkent in #50
New Contributors
- @bwilliams18 made their first contribution in #31
Full Changelog: v0.1.7...v0.2.0