1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00
Commit Graph

109 Commits

Author SHA1 Message Date
David Baker
2ae4d07971 Fix setIdentityServer 2019-08-15 12:01:40 +01:00
David Baker
f57df2bee5 Catch no ID server on other method 2019-08-12 16:06:37 +01:00
David Baker
4c6d11d9ed Add setIdentityServerUrl
Hopefully fairly self explanatory. The ID server URL can be changed
fairly readily, whereas the HS URL would require a different access
token etc.
2019-08-09 18:05:37 +01:00
Michael Telatynski
05d77a85c9 Merge pull request #1011 from matrix-org/t3chguy/add-rooms-roomid-report-eventid
Add matrix base API to report an event
2019-08-08 15:21:20 +01:00
Michael Telatynski
c21382d721 Add matrix base API to report an event
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-08-08 15:16:11 +01:00
J. Ryan Stinnett
8c15125e23 Fix POST body for v2 IS requests
POST bodies for v2 IS requests must be sent as JSON.

Part of https://github.com/vector-im/riot-web/issues/10159
2019-08-08 10:29:14 +01:00
J. Ryan Stinnett
64ddbd97dd Merge pull request #1009 from matrix-org/jryans/user-settings-toggle-3pid
Add API for bulk lookup on the Identity Server
2019-08-07 18:05:58 +01:00
J. Ryan Stinnett
9c24bcb7a9 Tweak the type 2019-08-07 18:05:32 +01:00
J. Ryan Stinnett
8f016726f0 Add API for bulk lookup on the Identity Server
This adds support for querying `/bulk_lookup` on the IS to check several 3PIDs
at the same time.

Part of https://github.com/vector-im/riot-web/issues/10159
2019-08-07 17:45:13 +01:00
J. Ryan Stinnett
649fe7a490 Merge pull request #1000 from matrix-org/t3chguy/remove_authedRequestWithPrefix
Remove deprecated authedRequestWithPrefix and requestWithPrefix
2019-08-06 18:58:24 +01:00
J. Ryan Stinnett
f05bf3f845 Merge pull request #1007 from matrix-org/jryans/is-account-info
Add API for checking IS account info
2019-08-01 17:28:08 +01:00
J. Ryan Stinnett
4ebe60b2ad Add API for checking IS account info
Part of https://github.com/vector-im/riot-web/issues/10452
2019-08-01 12:02:56 +01:00
Travis Ralston
5c2aa4677f Support rewriting push rules when our internal defaults change
and change our internal default for tombstones
2019-07-31 10:52:44 -06:00
J. Ryan Stinnett
50c590ae26 Note cleanup issue 2019-07-30 10:38:53 +01:00
J. Ryan Stinnett
516dff06ee Rename isAccessToken to identityAccessToken 2019-07-30 10:06:52 +01:00
J. Ryan Stinnett
6f042a2142 Add IS v2 support to other IS APIs
This adds v2 support with fallback to other IS APIs in the SDK.
2019-07-29 14:55:40 +01:00
J. Ryan Stinnett
91416bdbb2 Add IS v1 API fallback for lookup 2019-07-29 14:44:15 +01:00
J. Ryan Stinnett
9b093f7569 Add first pass of IS v2 API with authentication
This only updates the `/lookup` API so far. It also doesn't handle falling back
to v1.
2019-07-29 13:15:19 +01:00
Michael Telatynski
b004d1602d Remove deprecated authedRequestWithPrefix and requestWithPrefix
replacing as documented with authedRequest

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-29 12:25:38 +01:00
David Baker
6cca73b999 Merge pull request #988 from matrix-org/dbkr/terms
Support for MSC2140 (terms of service for IS/IM)
2019-07-23 10:32:05 +01:00
David Baker
fafd6df13e Use standard _matrix path for terms endpoints 2019-07-22 18:53:36 +01:00
David Baker
b694d53b73 Revert 8004e82c50
We need to switch the paths over all at once, so we can't commit
this yet: leave it until scalar suypports the new API then we can
update develop to use the _matrix paths.

(Also for some reason I broke the IS path too)
2019-07-15 14:26:16 +01:00
David Baker
8004e82c50 Use _matrix prefix for terms API 2019-07-15 13:51:39 +01:00
Travis Ralston
c1f28bd410 Add a request method to /devices
Turns out `HTTP /devices undefined` is invalid.

Regressed in https://github.com/matrix-org/matrix-js-sdk/pull/990
2019-07-11 14:35:04 -06:00
David Baker
5b9e158035 unused param
getTerms is un-authed so doesn't need the access token
2019-07-11 16:28:41 +01:00
Travis Ralston
07629bfb9a unstable -> stable 2019-07-10 13:11:46 -06:00
David Baker
9e5c2732c9 consistent spacing 2019-07-10 12:18:41 +01:00
David Baker
b8957fa917 omit null params 2019-07-10 12:17:52 +01:00
David Baker
52c139dcdc Forgot /terms for ISes
and IMs shouldn't have a slash
2019-07-10 12:15:31 +01:00
David Baker
39d4bf1494 SERVICE_TYPES 2019-07-10 12:08:13 +01:00
David Baker
524fea1297 lint 2019-07-10 10:43:54 +01:00
David Baker
e9528ebb98 Support for MSC2140 (terms of service for IS/IM) 2019-07-09 18:50:01 +01:00
Bruno Windels
4f044de79e add jsdocs 2019-06-26 15:48:39 +02:00
Bruno Windels
da116e6077 remove c/p leftover 2019-06-26 15:48:27 +02:00
Bruno Windels
2489180c47 rename pagination token option to from, more in line with cs api 2019-06-26 15:47:59 +02:00
Bruno Windels
c75ca1c2d6 fix lint and encode path params properly 2019-06-26 12:10:24 +02:00
Bruno Windels
67462e9fc4 support paginating relations 2019-06-26 12:00:25 +02:00
Bruno Windels
424b6303ef basic support for /relations endpoint 2019-06-26 12:00:25 +02:00
David Baker
65dd5cc6ad use right variable 2019-06-13 16:30:39 +01:00
David Baker
8aeb994839 Expose the inhibit_login flag to register 2019-06-13 16:23:11 +01:00
Bruno Windels
b5df016b1b remove unused method 2019-06-04 15:28:40 +02:00
Bruno Windels
8194287391 make redactEvent go through same local-echo aware path as other events 2019-06-03 18:37:25 +02:00
Sergii Stotskyi
4ef970b4da fix(login): saves access_token and user_id after login for all login types
Signed-off-by: Sergii Stotskyi <sergiy.stotskiy@gmail.com>

Fixes #876
2019-05-28 17:47:49 +03:00
Travis Ralston
09438b440e Fix spelling error in txnId for redactions
Fixes https://github.com/vector-im/riot-web/issues/9700
2019-05-13 13:43:44 -06:00
jkasun
430da8ac09 JS Doc Fix 2019-04-15 20:34:39 +05:30
jkasun
348c293962 Argument Length Check, Duplicate Fix for Redact Funcation 2019-04-13 22:23:57 +05:30
jkasun
c495b12cef change event redact, POST request to PUT request 2019-04-07 00:19:02 +05:30
J. Ryan Stinnett
26893b9877 Merge pull request #589 from johbo/add-thirdparty-user
Add getThirdpartyUser to base api
2018-12-18 00:38:09 +00:00
Richard van der Hoff
5b51096e37 fix default login type for getSsoLoginUrl 2018-11-19 13:08:41 +00:00
Richard van der Hoff
578cb4e268 Add 'getSsoLoginUrl' function 2018-11-15 19:00:37 +00:00