|
|
@ -52,12 +52,17 @@ paths:
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
200:
|
|
|
|
description: |-
|
|
|
|
description: |-
|
|
|
|
An unsigned event that the sending server may use as a template
|
|
|
|
A template to be used to call ``/send_leave``.
|
|
|
|
for when it calls ``/send_leave``.
|
|
|
|
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
|
|
|
|
|
schema:
|
|
|
|
|
|
|
|
type: object
|
|
|
|
|
|
|
|
properties:
|
|
|
|
|
|
|
|
event:
|
|
|
|
allOf:
|
|
|
|
allOf:
|
|
|
|
- $ref: "definitions/unsigned_pdu.yaml"
|
|
|
|
- $ref: "definitions/unsigned_pdu.yaml"
|
|
|
|
- type: object
|
|
|
|
- description: |-
|
|
|
|
|
|
|
|
An unsigned template event.
|
|
|
|
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
properties:
|
|
|
|
# Note: we override a bunch of parameters to change their descriptions
|
|
|
|
# Note: we override a bunch of parameters to change their descriptions
|
|
|
|
sender:
|
|
|
|
sender:
|
|
|
@ -126,6 +131,7 @@ paths:
|
|
|
|
- state_key
|
|
|
|
- state_key
|
|
|
|
examples:
|
|
|
|
examples:
|
|
|
|
application/json: {
|
|
|
|
application/json: {
|
|
|
|
|
|
|
|
"event": {
|
|
|
|
"$ref": "examples/unsigned_pdu.json",
|
|
|
|
"$ref": "examples/unsigned_pdu.json",
|
|
|
|
"type": "m.room.member",
|
|
|
|
"type": "m.room.member",
|
|
|
|
"state_key": "@someone:example.org",
|
|
|
|
"state_key": "@someone:example.org",
|
|
|
@ -138,6 +144,7 @@ paths:
|
|
|
|
["$room_p0wer_l3vels_3vent:matrix.org", {"sha256": "abase64encodedsha256hashshouldbe43byteslong"}]
|
|
|
|
["$room_p0wer_l3vels_3vent:matrix.org", {"sha256": "abase64encodedsha256hashshouldbe43byteslong"}]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
403:
|
|
|
|
403:
|
|
|
|
description: |-
|
|
|
|
description: |-
|
|
|
|
The request is not authorized. This could mean that the user is not in the room.
|
|
|
|
The request is not authorized. This could mean that the user is not in the room.
|
|
|
|