@@ -42,7 +42,7 @@ pub struct KeysUploadRequest {
42
42
#[ wasm_bindgen( readonly) ]
43
43
pub id : JsString ,
44
44
45
- /// A JSON-encoded string containing the rest of the payload: `device_keys`,
45
+ /// A JSON-encoded object containing the rest of the payload: `device_keys`,
46
46
/// `one_time_keys`, `fallback_keys`.
47
47
///
48
48
/// It represents the body of the HTTP request.
@@ -78,7 +78,7 @@ pub struct KeysQueryRequest {
78
78
#[ wasm_bindgen( readonly) ]
79
79
pub id : JsString ,
80
80
81
- /// A JSON-encoded string containing the rest of the payload: `timeout`,
81
+ /// A JSON-encoded object containing the rest of the payload: `timeout`,
82
82
/// `device_keys`, `token`.
83
83
///
84
84
/// It represents the body of the HTTP request.
@@ -115,7 +115,7 @@ pub struct KeysClaimRequest {
115
115
#[ wasm_bindgen( readonly) ]
116
116
pub id : JsString ,
117
117
118
- /// A JSON-encoded string containing the rest of the payload: `timeout`,
118
+ /// A JSON-encoded object containing the rest of the payload: `timeout`,
119
119
/// `one_time_keys`.
120
120
///
121
121
/// It represents the body of the HTTP request.
@@ -163,7 +163,7 @@ pub struct ToDeviceRequest {
163
163
#[ wasm_bindgen( readonly) ]
164
164
pub txn_id : JsString ,
165
165
166
- /// A JSON-encoded string containing the rest of the payload: `messages`.
166
+ /// A JSON-encoded object containing the rest of the payload: `messages`.
167
167
///
168
168
/// It represents the body of the HTTP request.
169
169
#[ wasm_bindgen( readonly) ]
@@ -206,7 +206,7 @@ pub struct SignatureUploadRequest {
206
206
#[ wasm_bindgen( readonly) ]
207
207
pub id : Option < JsString > ,
208
208
209
- /// A JSON-encoded string containing the payload of the request
209
+ /// A JSON-encoded object containing the payload of the request
210
210
///
211
211
/// It represents the body of the HTTP request.
212
212
#[ wasm_bindgen( readonly, js_name = "body" ) ]
@@ -255,7 +255,7 @@ pub struct RoomMessageRequest {
255
255
#[ wasm_bindgen( readonly) ]
256
256
pub event_type : JsString ,
257
257
258
- /// A JSON-encoded string containing the message's content.
258
+ /// A JSON-encoded object containing the message's content.
259
259
#[ wasm_bindgen( readonly, js_name = "body" ) ]
260
260
pub content : JsString ,
261
261
}
@@ -292,7 +292,7 @@ pub struct KeysBackupRequest {
292
292
#[ wasm_bindgen( readonly) ]
293
293
pub id : JsString ,
294
294
295
- /// A JSON-encoded string containing the rest of the payload: `rooms`.
295
+ /// A JSON-encoded object containing the rest of the payload: `rooms`.
296
296
///
297
297
/// It represents the body of the HTTP request.
298
298
#[ wasm_bindgen( readonly) ]
@@ -552,7 +552,7 @@ pub enum RequestType {
552
552
#[ wasm_bindgen( getter_with_clone) ]
553
553
#[ derive( Debug , Clone ) ]
554
554
pub struct UploadSigningKeysRequest {
555
- /// A JSON-encoded string containing the rest of the payload: `master_key`,
555
+ /// A JSON-encoded object containing the rest of the payload: `master_key`,
556
556
/// `self_signing_key`, `user_signing_key`.
557
557
///
558
558
/// It represents the body of the HTTP request.
@@ -600,7 +600,7 @@ impl TryFrom<&OriginalUploadSigningKeysRequest> for UploadSigningKeysRequest {
600
600
#[ derive( Debug ) ]
601
601
/// A request that will upload a dehydrated device to the server.
602
602
pub struct PutDehydratedDeviceRequest {
603
- /// A JSON-encoded string containing the rest of the payload: `rooms`.
603
+ /// A JSON-encoded object containing the rest of the payload: `rooms`.
604
604
///
605
605
/// It represents the body of the HTTP request.
606
606
#[ wasm_bindgen( readonly) ]
0 commit comments