Compare commits

..

No commits in common. "a0cc3f30a98dbf3432610af572d4c732de7c2be1" and "619c667aa63798f8bc6e693a7ebf2f295600e5fb" have entirely different histories.

2 changed files with 24 additions and 32 deletions

View file

@ -1 +1 @@
Clarify which tokens can be used in `from` or `to` in `GET /rooms/{roomId}/relations/{eventId}`. The `prev_batch` token from `/sync` can be used as the `from` value in `GET /rooms/{roomId}/relations/{eventId}`.

View file

@ -22,13 +22,13 @@ paths:
description: |- description: |-
Retrieve all of the child events for a given parent event. Retrieve all of the child events for a given parent event.
Note that, in terms of topological ordering, the `from` token should be "after" Note that when paginating the `from` token should be "after" the `to` token in
the `to` token when `dir=b`, and should be "before" the `to` token when `dir=f`. terms of topological ordering, because it is only possible to paginate "backwards"
through events, starting at `from`.
For example, with `dir=b`, passing a `from` token from page 2 of the results, and For example, passing a `from` token from page 2 of the results, and a `to` token
a `to` token from page 1, would return the empty set. The caller can use a `from` from page 1, would return the empty set. The caller can use a `from` token from
token from page 1 and a `to` token from page 2 to paginate over the same range, page 1 and a `to` token from page 2 to paginate over the same range, however.
however.
operationId: getRelatingEvents operationId: getRelatingEvents
security: security:
- accessTokenQuery: [] - accessTokenQuery: []
@ -80,13 +80,13 @@ paths:
Retrieve all of the child events for a given parent event which relate to the parent Retrieve all of the child events for a given parent event which relate to the parent
using the given `relType`. using the given `relType`.
Note that, in terms of topological ordering, the `from` token should be "after" Note that when paginating the `from` token should be "after" the `to` token in
the `to` token when `dir=b`, and should be "before" the `to` token when `dir=f`. terms of topological ordering, because it is only possible to paginate "backwards"
through events, starting at `from`.
For example, with `dir=b`, passing a `from` token from page 2 of the results, and For example, passing a `from` token from page 2 of the results, and a `to` token
a `to` token from page 1, would return the empty set. The caller can use a `from` from page 1, would return the empty set. The caller can use a `from` token from
token from page 1 and a `to` token from page 2 to paginate over the same range, page 1 and a `to` token from page 2 to paginate over the same range, however.
however.
operationId: getRelatingEventsWithRelType operationId: getRelatingEventsWithRelType
security: security:
- accessTokenQuery: [] - accessTokenQuery: []
@ -142,13 +142,13 @@ paths:
Retrieve all of the child events for a given parent event which relate to the parent Retrieve all of the child events for a given parent event which relate to the parent
using the given `relType` and have the given `eventType`. using the given `relType` and have the given `eventType`.
Note that, in terms of topological ordering, the `from` token should be "after" Note that when paginating the `from` token should be "after" the `to` token in
the `to` token when `dir=b`, and should be "before" the `to` token when `dir=f`. terms of topological ordering, because it is only possible to paginate "backwards"
through events, starting at `from`.
For example, with `dir=b`, passing a `from` token from page 2 of the results, and For example, passing a `from` token from page 2 of the results, and a `to` token
a `to` token from page 1, would return the empty set. The caller can use a `from` from page 1, would return the empty set. The caller can use a `from` token from
token from page 1 and a `to` token from page 2 to paginate over the same range, page 1 and a `to` token from page 2 to paginate over the same range, however.
however.
operationId: getRelatingEventsWithRelTypeAndEventType operationId: getRelatingEventsWithRelTypeAndEventType
security: security:
- accessTokenQuery: [] - accessTokenQuery: []
@ -252,14 +252,9 @@ components:
The pagination token to start returning results from. If not supplied, results The pagination token to start returning results from. If not supplied, results
start at the most recent topological event known to the server. start at the most recent topological event known to the server.
If `dir=b`, then `from` can be `next_batch` from a previous call, or a Can be a `next_batch` or `prev_batch` token from a previous call, or a returned
`prev_batch` token from a [`/sync`] or a `start` token from a [`/messages`]. `start` token from [`/messages`](/client-server-api/#get_matrixclientv3roomsroomidmessages),
or a `prev_batch` token from [`/sync`](/client-server-api/#get_matrixclientv3sync).
If `dir=f`, then `from` can be `prev_batch` from a previous call, or a
`next_batch` token from a [`/sync`] or an `end` token from a [`/messages`].
[`/messages`]: /client-server-api/#get_matrixclientv3roomsroomidmessages
[`/sync`]: /client-server-api/#get_matrixclientv3sync
required: false required: false
example: page2_token example: page2_token
schema: schema:
@ -271,11 +266,8 @@ components:
The pagination token to stop returning results at. If not supplied, results The pagination token to stop returning results at. If not supplied, results
continue up to `limit` or until there are no more events. continue up to `limit` or until there are no more events.
Like `from`, this can be a previous token from a prior call to this endpoint, Like `from`, this can be a previous token from a prior call to this endpoint
or from [`/sync`] or [`/messages`]. or from `/messages` or `/sync`.
[`/messages`]: /client-server-api/#get_matrixclientv3roomsroomidmessages
[`/sync`]: /client-server-api/#get_matrixclientv3sync
required: false required: false
example: page3_token example: page3_token
schema: schema: