Damir Jelić
329d461a2f
feat(crypto): Add customized event type for the forwarded room key
2022-08-10 13:28:54 +02:00
Damir Jelić
603176f521
chore(crypto): Bump vodozemac
...
Vodozemac got some new knobs to twiddle with. This patch updates
vodozemac and sets the knobs to use the olm/megolm v1 supported
encryption schemes.
2022-08-05 14:06:42 +02:00
Jonas Platte
a4f3c3a070
refactor!: Give sled / indexeddb types unique names
2022-08-04 17:04:31 +02:00
Damir Jelić
f055e939e7
refactor(crypto): Use the vodozemac method to decide if a session is better
...
This patch delegates the decision making if a session is better to
vodozemac. Vodozemac has better insights if a group session can be
considered to be better.
2022-08-04 15:09:09 +02:00
Benjamin Kampmann
3bdb2f22ea
build(crypto-js): Pin yarg-parser to 21.0.1 to prevent upgrade bug
...
We are effected by https://github.com/yargs/yargs-parser/issues/452
through the transient dependency of jest on yargs
2022-08-04 12:21:18 +02:00
Jonas Platte
2430d7f267
chore: Remove unneeded docsrs Cargo features
2022-08-03 15:33:53 +02:00
Damir Jelić
3ca3016539
refactor(crypto): Use the curve 25519 key type for inbound group sessions
2022-08-03 15:28:24 +02:00
Kévin Commaille
9064e7b02d
feat(sdk): Add support for refresh tokens
2022-08-03 10:42:28 +02:00
Doug
b884c5baae
chore(bindings/ffi): Print each step when building XCFramework.
2022-07-28 13:37:02 +02:00
Damir Jelić
03a4814a1a
refactor(crypto): Use our own type for megolm
2022-07-28 12:48:12 +02:00
Damir Jelić
7e70997e1c
feat(crypto): Add customized m.room.encrypted events
2022-07-28 12:48:12 +02:00
Doug
57c1e68893
Rename limit to timeline_limit.
...
Use a u16 instead.
2022-07-27 18:03:04 +01:00
Doug
a875c4b373
Expose room membership in the FFI.
2022-07-27 17:23:09 +01:00
Doug
f6e215dac3
Add limit parameter to start_sync.
2022-07-27 17:22:17 +01:00
Benjamin Kampmann
fe40b3753a
Merge pull request #870 from Hywan/feat-crypto-js-npm-publish
...
chore: Update or add `git-cliff` config' & prepare `crypto-js` for publishing
2022-07-27 14:28:40 +02:00
Benjamin Kampmann
e871114436
docs(crypto-ffi): fixing path
2022-07-27 13:43:39 +02:00
Benjamin Kampmann
fb4dd4d875
test(crypto-js): fixing path
2022-07-27 13:32:26 +02:00
Damir Jelić
4175e6badf
feat(bindings/ffi): Allow clients to be restored using only an access token
...
This functionality is important to allow clients to log in using an OIDC server. The OIDC server returns only an access token, the client needs to fetch the user ID and device ID from the Matrix server separately.
This lives in the bindings for now since OIDC support in Matrix is being actively developed.
2022-07-26 17:10:50 +02:00
Doug
a951a273e7
Rebase and rename method.
...
Add a device ID parameter to restore_with_access_token
2022-07-26 15:00:02 +01:00
Doug
f13f590b7f
Add login_access_token to the FFI auth service.
2022-07-26 15:00:02 +01:00
Doug
1eadd0ba2d
Revert changes to store path. Use whoami for path.
2022-07-26 14:50:51 +01:00
Doug
b6b1f904e0
Fix clippy warning.
2022-07-26 14:50:51 +01:00
Doug
f31528c926
Allow a client to be built without a store path.
...
Throw an error on login if it is missing.
2022-07-26 14:50:51 +01:00
Doug
05fab8c394
Add a store_path method on the FFI client.
2022-07-26 14:48:37 +01:00
Jonas Platte
f8e729f7f3
chore: Use implicit named arguments for formatting macros more
2022-07-25 20:30:12 +02:00
Damir Jelić
79d13148fb
chore: Remove TryFrom/TryInto imports
2022-07-25 19:06:15 +02:00
Benjamin Kampmann
f34c2f0574
ci: fix typos
2022-07-21 17:28:38 +02:00
Ivan Enderlin
6ce5d0b507
chore(crypto-js): Add cliff.toml for git-cliff.
2022-07-21 15:50:11 +02:00
Ivan Enderlin
db7824efbd
chore(crypto-nodejs): Update Conventional Commits types.
2022-07-21 15:49:26 +02:00
Ivan Enderlin
ee4702d04a
feat(bindings/crypto-js) Update package name, and use package scope.
2022-07-21 15:47:55 +02:00
Benjamin Kampmann
6f18e35b72
Merge remote-tracking branch 'origin/main' into ben-release-crypto-nodes-beta0
2022-07-21 10:25:26 +02:00
Jonas Platte
45829efa7e
feat(bindings): Tracing configuration through FFI
2022-07-20 16:38:51 +02:00
Kévin Commaille
a6bd7fc82f
chore: Update Ruma
2022-07-20 12:18:06 +00:00
Stefan Ceriu
5c53a5f699
chore(bindings/apple): Remove unnecessary +nightly flag from debug builds
2022-07-20 14:53:00 +03:00
Stefan Ceriu
021bf55074
feat(bindings/sdk-ffi): Expose full tracing configuration string through ffi.
2022-07-20 13:39:15 +03:00
Stefan Ceriu
0043de4028
Update bindings/matrix-sdk-ffi/Cargo.toml
...
Co-authored-by: Jonas Platte <jplatte@matrix.org >
2022-07-20 13:28:58 +03:00
Stefan Ceriu
f9bb86c52f
feat(bindings/sdk-ffi): Allow ffi users to configure tracing and log levels
2022-07-20 12:56:42 +03:00
Stefan Ceriu
1cd18f49aa
chore(bindings/apple): Remove now unnecessary debug script module import following module map rename
2022-07-20 12:29:36 +03:00
Benjamin Kampmann
8b160dfd38
Merge pull request #857 from matrix-org/doug/homeserver-details
...
Add a `HomeserverLoginDetails` to the FFI's auth service.
2022-07-20 10:27:09 +02:00
Doug
77f7dbbbc8
Support server URLs. Join homeserver details futures.
2022-07-19 16:16:03 +01:00
Doug
93d879f356
Add homeserver_details property.
2022-07-19 12:48:00 +01:00
Doug
a10a26a68d
Tidy up authentication service.
...
Add HomeserverLoginDetails
2022-07-19 11:36:34 +01:00
Johannes Becker
aa8206d6c8
chore: Bump ruma
2022-07-18 19:32:16 +02:00
Johannes Becker
f937d82336
chore: Bump ruma
2022-07-18 16:46:34 +00:00
Ivan Enderlin
fdef2dd86d
feat(bindings/crypto-js): Redirect panics and logs into JavaScript console
...
feat(bindings/crypto-js): Redirect panics and logs into JavaScript console
2022-07-18 14:59:50 +02:00
Ivan Enderlin
c72ec36b3a
chore(style) Make cargo fmt happy.
2022-07-18 14:39:39 +02:00
Stefan Ceriu
f215c92d0b
fix(bindings/apple): Remove briding header as no longer needed after corectly naming the module map
2022-07-18 13:09:39 +02:00
Ivan Enderlin
daa0fc0206
doc(bindings/crypto-js): Fix typos.
2022-07-18 10:05:05 +02:00
Ivan Enderlin
3d1c96fbec
feat(bindings/crypto-js): Redirect errors to console.error.
2022-07-18 09:51:44 +02:00
Ivan Enderlin
decd3fcb43
feat(bindings/crypto-js) Simplify code for feature = "tracing".
...
This patch creates one `inner` module for when `feature = "tracing"`,
and one for when `no(feature = "tracing")`. Then, let's expose
everything from `inner::*`.
This patch also replaces `Tracing.install` by `new Tracing`. In case
of `not(feature = "tracing")`, `new Tracing` raises an error.
The goal is to remove all the `#[cfg(…)]` annotations everywhere. Now
there is only 2 of them.
2022-07-18 09:44:42 +02:00