Commit graph

100 commits

Author SHA1 Message Date
Damir Jelić
a7b83d9cd1 docs(sdk): Improve the docs docs and use the readme for the crate docs 2021-09-09 20:57:58 +02:00
Damir Jelić
db1efcd1fc feat(sdk): Expose the cross signing user identities
This patch adds support to fetch cross signing user identities from the
crypto store, those can now be used to request verifications and inspect
the master keys of users.
2021-09-09 10:40:36 +02:00
Damir Jelić
6e4a57046e fix(sdk): Use a pure HTTP error for methods that don't touch local state 2021-09-09 10:30:46 +02:00
Jonas Platte
3c38b26770
Rewrap doc comments 2021-09-08 20:19:07 +02:00
Jonas Platte
67912f3768
Fix / improve event handler documentation 2021-09-08 19:23:19 +02:00
Jonas Platte
ddea1bdb9e
Rewrap crate feature flag docs 2021-09-08 19:12:58 +02:00
Jonas Platte
2fdad12521
Rewrite event handler abstraction 2021-08-17 00:26:01 +02:00
Jonas Platte
6e29251886
Remove matrix_sdk_base::Error re-export
It's not part of the public API.
2021-06-23 16:12:22 +02:00
Jonas Platte
4a7010bab1
Reexport independent external crates entirely
… instead of reexporting individual items.
2021-06-23 16:12:22 +02:00
Damir Jelić
3cf843d24f matrix-sdk: Rework the public API for answering verifications 2021-06-17 12:17:11 +02:00
Jonas Platte
1168c39c20
Move ruma re-export from matrix-sdk-common to matrix-sdk 2021-06-07 19:50:14 +02:00
Damir Jelić
7cca358399 Merge branch 'master' into verification-improvements 2021-06-04 18:37:42 +02:00
Damir Jelić
ee40d917d1 Merge branch 'feat/appservice-client-config' 2021-05-31 13:28:31 +02:00
Kévin Commaille
b805670c8a
sdk: Add methods for media content 2021-05-25 21:43:01 +02:00
Johannes Becker
cc591cce1c appservice: Improve docs 2021-05-25 10:05:51 +02:00
Damir Jelić
3f57a2a9f2 Merge branch 'master' into sas-longer-flow 2021-05-13 11:26:40 +02:00
Damir Jelić
09a7858702 crypto: Initial support for the longer to-device verification flow 2021-05-13 11:15:56 +02:00
Devin Ragotzy
5f09d091cb Add cargo fmt to ci using nightly 2021-05-12 15:38:59 -04:00
Devin Ragotzy
c85f4d4f0c Add rustfmt config file and run over workspace 2021-05-12 15:36:52 -04:00
Johannes Becker
87099676f9 appservice: Improve docs 2021-05-10 08:43:06 +02:00
Jonas Platte
bd02ff901f Avoid needless copies by changing http::Request<Vec<u8>> to http::Request<Bytes> 2021-04-26 17:31:27 +02:00
Johannes Becker
242d46c9a1 matrix-sdk: require_auth_for_profile_requests feature and force_auth request config
forces authentication for `get_avatar` which was previously done with
the unstable-synapse-quirks feature in ruma
2021-04-26 17:31:25 +02:00
Johannes Becker
5c882f89e8 chore: bump ruma 2021-04-26 08:05:58 +02:00
Johannes Becker
95421f1713 matrix-sdk!: send_request returns Bytes
Prevents unnecessary copy
2021-04-19 12:26:10 +02:00
Julian Sparber
b5de203499 matrix-sdk: Add RequestConfig that replaces timeout for requests
This exposes the retry behavior to the developer. This way the user can
set if a request should be retried or failed immidiatly.

This also make sure that the timeout set by the user is used for all
requests. Of-course it can't be used for uploaded and syncs with
timeout, but this doesn't change the behavior for those requests.
2021-04-07 10:35:31 +02:00
Damir Jelić
fdb1e3482e Merge branch 'bump-ruma' 2021-04-06 12:44:33 +02:00
Kévin Commaille
7c34ac4e82
Bump ruma to 2f1b9f097930bf7908ca539f2ab7bb0ccf5d8b25
Use MxcUri instead of String for media URLs.

Fix wrong MXC URIs in tests.

Remove method parse_mxc no longer useful.

Apply new non-exhaustive types: CrossSigningKey, OneTimeKey and SignedKey.

Apply endpoint name change: send_state_event_for_key to send_state_event
2021-04-05 19:49:55 +02:00
Julian Sparber
e72f4cee59 matrix-sdk: Add RoomMember 2021-04-02 20:39:50 +02:00
Julian Sparber
d35e730052 matrix-sdk: Add function to get users avatar 2021-03-25 15:01:41 +01:00
Kévin Commaille
8679e81555 client: Add login_with_sso 2021-03-23 15:30:40 +01:00
Julian Sparber
382ec01bc3 move matrix_sdk_base::EventHandler to matrix_sdk 2021-03-17 15:29:26 +01:00
Julian Sparber
5d66ff475f matrix-sdk: Reexport matrix_sdk_base::Room as BaseRoom 2021-03-17 12:17:37 +01:00
Julian Sparber
88e230689e matrix-sdk: Add high-level room API 2021-03-13 13:15:50 +01:00
Julian Sparber
bc2c924c88 matrix-sdk-base: remove InvitedRoom, JoinedRoom, LeftRoom and RoomState
They are all replaced by `Room`
2021-03-05 12:19:50 +01:00
Julian Sparber
f6f382e28a matrix-sdk: Export RoomType 2021-03-03 11:35:02 +01:00
Damir Jelić
1db89741bc matrix-sdk: Re-export the EncryptionInfo struct 2021-02-16 09:42:23 +01:00
Cédric Barreteau
b6f2c43330 Rename EventEmitter to EventHandler 2021-02-13 11:01:31 +01:00
Damir Jelić
0289f564b4 Merge branch 'pub-exports' 2021-02-07 13:58:33 +01:00
Devin Ragotzy
fcd1c87765 matrix_sdk: export CustomEvent and StateChanges add docs to StateChanges 2021-02-04 15:54:20 -05:00
Damir Jelić
585ca9fdf7 matrix-sdk: Split out the http errors into a sub-enum 2021-01-31 18:09:03 +01:00
Damir Jelić
bf4f32eccf crypto: Remove the sqlite store for now 2021-01-27 15:29:42 +01:00
Damir Jelić
cf07fc8e8e Merge branch 'master' into new-state-store 2021-01-21 19:58:40 +01:00
Tilo Spannagel
7b8d2b5319 Add support for ruma feature flag markdown
Signed-off-by: Tilo Spannagel <development@tilosp.de>
2021-01-21 18:22:17 +01:00
Damir Jelić
d07063af2b base: Add some error handling to the state store 2021-01-18 18:07:53 +01:00
Damir Jelić
8857335a7d Merge branch 'crypto-improvements' into new-state-store 2020-12-22 16:18:46 +01:00
Damir Jelić
a370eb1e37 base: Re-introduce the event emitter. 2020-12-19 20:20:39 +01:00
Damir Jelić
f9af880176 base: Upcast the bare rooms based on the membership state 2020-12-19 16:37:35 +01:00
Damir Jelić
6f35a05311 matrix-sdk: Allow users to get a reference to the store. 2020-12-11 09:52:39 +01:00
Damir Jelić
7198b0daba crypto: WIP key verification request handling. 2020-12-09 17:18:23 +01:00
Damir Jelić
b36d907fac base: Add the power level event to the room member. 2020-12-06 18:11:32 +01:00