client-api: Remove direct association between transaction ID and access token
This commit is contained in:
parent
c7caf65f65
commit
a7e10770fa
@ -36,9 +36,13 @@ pub mod v3 {
|
|||||||
|
|
||||||
/// The transaction ID for this event.
|
/// The transaction ID for this event.
|
||||||
///
|
///
|
||||||
/// Clients should generate an ID unique across requests with the
|
/// Clients should generate a unique ID across requests within the
|
||||||
/// same access token; it will be used by the server to ensure
|
/// same session. A session is identified by an access token, and
|
||||||
/// idempotency of requests.
|
/// persists when the [access token is refreshed].
|
||||||
|
///
|
||||||
|
/// It will be used by the server to ensure idempotency of requests.
|
||||||
|
///
|
||||||
|
/// [access token is refreshed]: https://spec.matrix.org/v1.4/client-server-api/#refreshing-access-tokens
|
||||||
#[ruma_api(path)]
|
#[ruma_api(path)]
|
||||||
pub txn_id: &'a TransactionId,
|
pub txn_id: &'a TransactionId,
|
||||||
|
|
||||||
|
@ -30,8 +30,13 @@ pub mod v3 {
|
|||||||
|
|
||||||
/// The transaction ID for this event.
|
/// The transaction ID for this event.
|
||||||
///
|
///
|
||||||
/// Clients should generate a unique ID; it will be used by the server to ensure idempotency
|
/// Clients should generate a unique ID across requests within the
|
||||||
/// of requests.
|
/// same session. A session is identified by an access token, and
|
||||||
|
/// persists when the [access token is refreshed].
|
||||||
|
///
|
||||||
|
/// It will be used by the server to ensure idempotency of requests.
|
||||||
|
///
|
||||||
|
/// [access token is refreshed]: https://spec.matrix.org/v1.4/client-server-api/#refreshing-access-tokens
|
||||||
#[ruma_api(path)]
|
#[ruma_api(path)]
|
||||||
pub txn_id: &'a TransactionId,
|
pub txn_id: &'a TransactionId,
|
||||||
|
|
||||||
|
@ -29,7 +29,15 @@ pub mod v3 {
|
|||||||
#[ruma_api(path)]
|
#[ruma_api(path)]
|
||||||
pub event_type: &'a str,
|
pub event_type: &'a str,
|
||||||
|
|
||||||
/// A request identifier unique to the access token used to send the request.
|
/// The transaction ID for this event.
|
||||||
|
///
|
||||||
|
/// Clients should generate a unique ID across requests within the
|
||||||
|
/// same session. A session is identified by an access token, and
|
||||||
|
/// persists when the [access token is refreshed].
|
||||||
|
///
|
||||||
|
/// It will be used by the server to ensure idempotency of requests.
|
||||||
|
///
|
||||||
|
/// [access token is refreshed]: https://spec.matrix.org/v1.4/client-server-api/#refreshing-access-tokens
|
||||||
#[ruma_api(path)]
|
#[ruma_api(path)]
|
||||||
pub txn_id: &'a TransactionId,
|
pub txn_id: &'a TransactionId,
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user