Hubert Chathi
6fb684397a
Clarify how to interpret missing one time key counts ( #3636 )
2022-01-11 15:30:46 -05:00
Travis Ralston
56532dd688
Describe and hoist stripped state to a first-class citizen ( #3606 )
...
* Describe and hoist stripped state to a first-class citizen
Fixes https://github.com/matrix-org/matrix-doc/issues/3413
MSC: https://github.com/matrix-org/matrix-doc/pull/3173
* Add changelog
* may->can for clarity
* Update text per review
2022-01-05 10:57:59 -07:00
Travis Ralston
224773dc6a
Specify fallback keys ( #3615 )
...
* Specify fallback keys
MSC: https://github.com/matrix-org/matrix-doc/pull/2732
* changelog
* Appease spell check
* Fine, let's appease the spellcheck this way
* Apply suggestions from code review
Co-authored-by: Hubert Chathi <hubert@uhoreg.ca>
* Fix intro
* word wrap
Co-authored-by: Hubert Chathi <hubert@uhoreg.ca>
2022-01-04 20:35:21 -07:00
Travis Ralston
26e0765159
Add guest changes to spec: MSC3069 and MSC3419 ( #3605 )
...
* Add MSC3069 support
https://github.com/matrix-org/matrix-doc/pull/3069
* Add MSC3419 support
https://github.com/matrix-org/matrix-doc/pull/3419
* Normalize and fix guest access endpoints list
* Changelogs
2022-01-04 20:29:40 -07:00
Travis Ralston
e4057072bd
Add registration token UIA type ( #3616 )
...
* Add registration token UIA type
MSC: https://github.com/matrix-org/matrix-doc/pull/3231
**Note**: This introduces the endpoint as v1 rather than r0 given the global versioning changes landed between the acceptance of the MSC and now.
* Fix swagger
* Changelogs
* Update data/api/client-server/registration_tokens.yaml
Co-authored-by: Hubert Chathi <hubert@uhoreg.ca>
Co-authored-by: Hubert Chathi <hubert@uhoreg.ca>
2022-01-04 20:27:58 -07:00
Richard van der Hoff
355e06eaa6
Clarification for /event_auth ( #3583 )
...
The description on this endpoint implied it returned the auth chain for the
full state of the room, which is incorrect.
2022-01-04 16:45:10 +00:00
Travis Ralston
1e9dd4d22e
Avoid use of the word "clobber" ( #3611 )
...
* Avoid use of the word "clobber"
Fixes https://github.com/matrix-org/matrix-doc/issues/1328
* changelog
2021-12-30 22:07:45 -07:00
Dan Callahan
48d8f7202d
Add HTTP 403 to possible profile responses ( #3530 )
...
* Add HTTP 403 to possible profile responses
Some servers may not allow profile lookup over federation, and thus
respond to GET /_matrix/client/v3/profile/{userId} with an HTTP 403.
For example, Synapse can be configured to behave in this way by setting:
allow_profile_lookup_over_federation=false
Thus, this behavior already exists in the wild, and may cause issues for
clients such as https://github.com/vector-im/element-web/issues/17269 .
Synapse could alter its behavior and return an HTTP 404 in these cases,
but amending the Spec seems preferable to align with extant behavior.
Further, allowing HTTP 403 gives clients more specific information as to
why a request has failed, enabling more precise error handling.
Signed-off-by: Dan Callahan <danc@element.io>
* Update changelogs/client_server/newsfragments/3530.clarification
Co-authored-by: Travis Ralston <travpc@gmail.com>
* Annotate misc data about error
Co-authored-by: Travis Ralston <travpc@gmail.com>
Co-authored-by: Travis Ralston <travisr@matrix.org>
2021-12-29 11:30:32 -07:00
Aaron Raimist
01cd41de68
Add GitHub Action to check spelling ( #3591 )
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-12-28 09:17:49 -07:00
Travis Ralston
0fbc6bdab6
Definition of "Standard Identifier Format" ( #3171 )
...
Spec for https://github.com/matrix-org/matrix-doc/pull/2758
2021-12-15 11:38:29 +00:00
Richard van der Hoff
83b24dd54d
Remove definition of Event for /notifications ( #3525 )
...
The documentation for the `/notifications` API had its own special definition
of what an Event was, which was used nowhere else.
The common definition isn't perfect, but it *is* common, so it gives us a
better starting place for improvement.
2021-12-02 17:23:09 +00:00
Richard van der Hoff
7f200c53e8
Move prev_content to unsigned ( #3524 )
2021-12-02 17:22:58 +00:00
Richard van der Hoff
dce06f6dc2
Remove C-S unsigned data from PDU definitions ( #3522 )
...
Remove a bunch of fields from the `unsigned` property of PDUs. These things
shouldn't be passed over the Federation API, and they *really* shouldn't be
trusted if they are sent by another server.
* `replaces_state` *is* returned by Synapse, but probably shouldn't
be.
* `redacted_because`, `prev_sender` and `prev_content` are not sent by Synapse.
2021-11-24 12:31:14 +00:00
Ankur
ac98c8c08c
OpenAPI: Add missing required flag in getRoomKeys ( #3509 )
2021-11-22 13:23:24 -05:00
Ankur
a8cf4d4a56
Open API: Changed RoomKeys to RoomKey ( #3500 )
2021-11-16 14:39:55 -05:00
Will Hunt
51d8560da9
Explicitly link to geo URI spec ( #3492 )
...
* Explicitly link to geo URI spec
* move RFC location
Co-authored-by: Travis Ralston <travisr@matrix.org>
* Create 3492.clarification
Co-authored-by: Travis Ralston <travisr@matrix.org>
2021-11-15 15:58:39 -07:00
Ankur
a034d45e45
typos: Corrected typos in message_pagination.yaml ( #3495 )
2021-11-15 15:29:07 -05:00
Hubert Chathi
033038917d
remove extra type property ( #3482 )
2021-11-10 13:46:24 -05:00
Travis Ralston
5ea6d5610f
Update identity server spec to use global versioning ( #3459 )
...
* Update identity server spec to use global versioning
* changelog
2021-10-26 15:47:40 -06:00
Travis Ralston
5be0df02c5
Start annotating which version of the spec added a thing ( #3425 )
...
* Introduce a new "added-in" template and use it on endpoints
* Use "added-in" on schema properties too
* Annotate sections of the spec with their added versions
* Demo of "added-in" on a room version (to be fleshed out)
* Use clearer versioning semantics
* Update and fix validator for Swagger custom properties
* Fix docs
2021-10-14 13:23:04 -06:00
Travis Ralston
649fc2bdd2
Move room version spec to /rooms ( #3423 )
...
* Cut/paste room version spec to its own page
* Move grammar to bottom + add feature matrix
The version grammar is not as interesting as the actual room versions, so this moves that whole section to the bottom.
* Fix all links to room versions
2021-10-12 14:47:03 -06:00
Travis Ralston
95d850c418
Update client-server API endpoints to move from r0 to v3 (plus whitespace fixes) ( #3421 )
...
* Blind find & replace all on client major version -> v3
* Fix up bad replacements
* Fix anchors for r0->v3
* Changelog
2021-10-12 11:07:01 -06:00
Travis Ralston
2d98cd3084
Describe new global specification versioning ( #3420 )
...
* Update versioning specification for Matrix
As per [MSC2844](https://github.com/matrix-org/matrix-doc/pull/2844 )
* Mention vX versioning in /versions
* Changelog
2021-10-12 11:06:51 -06:00
Andrew Fargo
f1a4a58755
Fix "invite_state" to "knock_state" ( #3428 )
2021-10-05 23:11:40 -06:00
Aaron Raimist
525728971b
Fix two links on the CS API page
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-08-27 19:17:18 +01:00
Richard van der Hoff
6bd7b6cbb5
Clarifications to pagination parameters for various APIs ( #3353 )
2021-08-27 19:17:18 +01:00
Lukas Lihotzki
8a8db03a13
OpenAPI: include peekEvents
...
Disambiguate from getEvents by a trailing space in path (like inviteUser).
Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
2021-08-27 19:17:17 +01:00
Denis Kasak
ddbbd76b32
Fix typo in /_matrix/client/r0/account/3pid/delete.
2021-08-27 19:17:17 +01:00
Hubert Chathi
b231220bbd
Merge pull request #3337 from uhoreg/room_create_canonical_alias
...
room creation: create canonical alias event if alias specified
2021-08-27 19:17:17 +01:00
Alexey Rusakov
fbf4259a83
Merge pull request #3330 from lukaslihotzki/add-titles
...
OpenAPI: add titles
2021-08-27 19:17:17 +01:00
Hubert Chathi
8536cd3e16
drop initial state check
2021-08-27 19:17:17 +01:00
Alexey Rusakov
5749325fc3
Merge pull request #3329 from lukaslihotzki/missing-tags
...
OpenAPI: improve tags
2021-08-27 19:17:17 +01:00
Lukas Lihotzki
13f7df1379
OpenAPI: add titles
2021-08-27 19:17:17 +01:00
Hubert Chathi
89089e8913
Merge pull request #3332 from lukaslihotzki/required-bodies
...
OpenAPI: require all bodies in cross_signing
2021-08-27 19:17:17 +01:00
Lukas Lihotzki
39e70a2902
OpenAPI: split User data tag
...
Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
2021-08-27 19:17:17 +01:00
Hubert Chathi
ee92c94cfe
Mention that a canonical alias event should be created if alias specified
2021-08-27 19:17:17 +01:00
Lukas Lihotzki
1a81a46865
OpenAPI: require all bodies in cross_signing
...
Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
2021-08-27 19:17:17 +01:00
Lukas Lihotzki
97ebe5aec2
OpenAPI: add missing tags
...
peekEvents remains untagged, because it is explicitly excluded.
Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
2021-08-27 19:17:17 +01:00
Lukas Lihotzki
e3070bcdda
OpenAPI: fix key_backup operation IDs
2021-08-27 19:17:17 +01:00
Lukas Lihotzki
c58d423aba
OpenAPI: add auth property in uploadCrossSigningKeys
...
Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
2021-08-27 19:17:17 +01:00
Lukas Lihotzki
91b232df48
OpenAPI: use uri format
...
In avatar_url, pusher url, wellknown base_url, getUrlPreview, and submit_url.
Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
2021-08-27 19:17:17 +01:00
Travis Ralston
cdcc24af11
Merge pull request #3238 from lukaslihotzki/required-bodies
...
OpenAPI: require all bodies in client-server
2021-08-27 19:17:17 +01:00
Neil Alexander
af0ebc7414
/_matrix/federation/v1/user/devices/{userId}: Rename self_signing_keys to self_signing_key (#3312 )
...
Apparently, in response to a /_matrix/federation/v1/user/devices/{userId} request, Synapse actually returns a key called "self_signing_key" instead of "self_signing_keys".
2021-08-27 19:17:17 +01:00
Lukas Lihotzki
ad0ff78316
OpenAPI: require all bodies in client-server
...
Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
2021-08-27 19:17:17 +01:00
Alexey Rusakov
c5631b30b8
sso_login_redirect: Fix a copy-pasted operationId
2021-08-27 19:17:17 +01:00
Christian Paul
86b53be3d1
Add "knock" membership to /members endpoint ( #3254 )
2021-08-27 19:17:15 +01:00
Will Hunt
2794fc8e29
Explicitly call replacement_room a room ID
...
Fixes https://github.com/matrix-org/matrix-doc/issues/3232
2021-08-27 19:17:14 +01:00
Lukas Lihotzki
6c46933fbc
Fix Typo
...
Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
2021-08-27 19:17:14 +01:00
Lukas Lihotzki
2fa7b59e1a
OpenAPI: fix tags of add3PID
...
The tag needs to be set to include add3PID in scripts/swagger/api-docs.json.
Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
2021-08-27 19:17:14 +01:00
Andrew Morgan
ad93aa6546
Update client_secret examples so that they are valid ( #2985 )
...
The regex of allowed characters for a `client_secret` parameter is `[0-9a-zA-Z.=_-]`.
This PR updates the `client_secret` spec examples, which currently include an invalid character (an apostrophe).
2021-08-27 19:17:13 +01:00
Travis Ralston
466911b253
Merge pull request #3170 from matrix-org/travis/spec/msc2713-rm-v1-id
...
Remove v1 identity service API
2021-08-27 19:17:13 +01:00
Travis Ralston
3d217e0de0
Merge pull request #3101 from matrix-org/travis/spec/MSC2320-identity-versions
...
Add identity service versions API
2021-08-27 19:17:13 +01:00
Travis Ralston
c11efb35fe
Merge pull request #3163 from matrix-org/travis/spec/msc2858-multisso
...
Describe social-sign-on (multiple SSO providers)
2021-08-27 19:17:13 +01:00
Travis Ralston
fb3dde1c2c
Merge pull request #3167 from matrix-org/travis/spec/msc2265-lower-3pid
...
Specify that email handling converts to lowercase first
2021-08-27 19:17:13 +01:00
Travis Ralston
c1d1f88a55
Update data/api/identity/versions.yaml
...
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2021-08-27 19:17:12 +01:00
Travis Ralston
2c3d7b1682
Apply suggestions from code review
...
Co-authored-by: Hubert Chathi <hubert@uhoreg.ca>
2021-08-27 19:17:12 +01:00
Travis Ralston
37c3a3f855
Remove v1 identity service API
...
Spec for https://github.com/matrix-org/matrix-doc/pull/2713
2021-08-27 19:17:12 +01:00
Travis Ralston
57f609cf1b
Typo fixes
2021-08-27 19:17:12 +01:00
Travis Ralston
3683d334f7
Clarify render approach
2021-08-27 19:17:12 +01:00
Travis Ralston
3b2c0ff233
Spec device_id on whoami
...
Spec for https://github.com/matrix-org/matrix-doc/pull/2033
2021-08-27 19:17:12 +01:00
Travis Ralston
457f3995af
Merge pull request #3154 from matrix-org/travis/spec/knock-knock-whos-there
...
Add knocking to the spec
2021-08-27 19:17:12 +01:00
Travis Ralston
fc6aa30000
Merge branch 'master' into travis/spec/MSC2320-identity-versions
2021-08-27 19:17:12 +01:00
Travis Ralston
7cef7d0fcf
Specify that email handling converts to lowercase first
...
Spec for https://github.com/matrix-org/matrix-doc/pull/2265
2021-08-27 19:17:12 +01:00
Travis Ralston
be86e638c5
Add identity service versions API
...
Specs [MSC2320](https://github.com/matrix-org/matrix-doc/pull/2320 )
Built upon https://github.com/matrix-org/matrix-doc/pull/3094
2021-08-27 19:17:12 +01:00
Travis Ralston
c124462747
Move brand registry out of structured data directory
...
Markdown is not structured data.
2021-08-27 19:17:12 +01:00
Travis Ralston
8bbcee39a5
Update data/api/server-server/knocks.yaml
...
Co-authored-by: Hubert Chathi <hubert@uhoreg.ca>
2021-08-27 19:17:12 +01:00
Travis Ralston
ee3ca86b6c
Declare required properties correctly
2021-08-27 19:17:12 +01:00
Travis Ralston
3b426846fe
Describe social-sign-on (multiple SSO providers)
...
Spec for [MSC2858](https://github.com/matrix-org/matrix-doc/pull/2858 )
2021-08-27 19:17:12 +01:00
Travis Ralston
fa6cc8a1ff
Add knocking to the spec
...
Spec for https://github.com/matrix-org/matrix-doc/pull/2998
Spec for https://github.com/matrix-org/matrix-doc/pull/2403
This deliberately does not help towards fixing https://github.com/matrix-org/matrix-doc/issues/3153 in order to remain consistent with prior room versions, and to keep the diff smaller on this change. A future change will address room version legibility.
2021-08-27 19:17:12 +01:00
Hubert Chathi
f9dce3dfed
Add spec for verification by QR codes.
2021-08-27 19:17:11 +01:00
Hubert Chathi
b5bdfffa53
spec verification in DMs and m.key.verification.ready/done
2021-08-27 19:17:11 +01:00
Devin Ragotzy
cfc55b243d
Fix user ID examples in direct_to_device schema
2021-08-27 19:17:10 +01:00
Patrick Cloke
cee03d7625
Use the same domain for room ID and avatar URL.
2021-08-27 19:17:10 +01:00
Aaron Raimist
d8d84b64d5
Fix example MXC URI for m.presence
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-08-27 19:17:09 +01:00
Will
3e03e7b17a
A few small fixes in /data and /content
2021-08-27 19:16:42 +01:00
Will
06983e1eb1
Remove RST comment, add bullets into list
2021-08-27 19:16:42 +01:00
Will
215b625d81
Replace csv table with GFM table
2021-08-27 19:16:42 +01:00
Will
873e8b30eb
Fix links in data
2021-08-27 19:16:42 +01:00
Will
27f8867aa0
Change RST code formatting markup to Markdown
2021-08-27 19:16:42 +01:00
Will
c7cf90abfa
Remove RST alert directives, replace with simple Markdown formatting
2021-08-27 19:16:42 +01:00
Will
00c6a866e2
Move raw API and event schemas into /data directory
...
Historical note: this was originally a series of several commits, spread out
over several weeks. They have been squashed together to make `git annotate`
work properly.
The original commits were:
* 91ab3934 <Will> 2021-01-25 21:16:42 -0800 Add raw API end event schemas into /data directory
* aae22f47 <Will> 2021-01-25 21:33:06 -0800 Remove non-data files
* 1092d4ca <Will> 2021-01-26 20:41:33 -0800 Add data-compatiuble extension (.yaml) to all data files that currently omit one
* 21060109 <Will> 2021-01-26 20:57:28 -0800 Remove symlink to event-schemas, and update openAPI schema paths accordingly
* 4f633845 <Travis Ralston> 2021-04-12 21:54:54 -0600 Fix event schema examples too
* 301c7b2f <Will> 2021-02-05 10:15:42 -0800 Restore docs describing OpenAPI extensions that we use
2021-08-27 19:16:39 +01:00