mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Some checks failed
Spec / 🔎 Validate OpenAPI specifications (push) Has been cancelled
Spec / 🔎 Check Event schema examples (push) Has been cancelled
Spec / 🔎 Check OpenAPI definitions examples (push) Has been cancelled
Spec / 🔎 Check JSON Schemas inline examples (push) Has been cancelled
Spec / ⚙️ Calculate baseURL for later jobs (push) Has been cancelled
Spec / 📢 Run towncrier for changelog (push) Has been cancelled
Spell Check / Spell Check with Typos (push) Has been cancelled
Spec / 🐍 Build OpenAPI definitions (push) Has been cancelled
Spec / 📖 Build the spec (push) Has been cancelled
Spec / 🔎 Validate generated HTML (push) Has been cancelled
Spec / 📖 Build the historical backup spec (push) Has been cancelled
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
---
|
|
$schema: https://json-schema.org/draft/2020-12/schema
|
|
|
|
allOf:
|
|
- $ref: core-event-schema/event.yaml
|
|
description: |-
|
|
Sent by a client to share a secret with another device, in response to an
|
|
`m.secret.request` event. It must be encrypted as an `m.room.encrypted` event
|
|
using [Olm](/client-server-api/#molmv1curve25519-aes-sha2), then sent as a
|
|
to-device event.
|
|
|
|
The `request_id` must match the ID previously given in an `m.secret.request`
|
|
event. The recipient must ensure that this event comes from a device that the
|
|
`m.secret.request` event was originally sent to, and that the device is
|
|
a verified device owned by the recipient. This should be done by checking the
|
|
sender key of the Olm session that the event was sent over.
|
|
properties:
|
|
content:
|
|
properties:
|
|
request_id:
|
|
type: string
|
|
description: |-
|
|
The ID of the request that this is a response to.
|
|
secret:
|
|
type: string
|
|
description: |-
|
|
The contents of the secret
|
|
required:
|
|
- request_id
|
|
- secret
|
|
type:
|
|
enum:
|
|
- m.secret.send
|
|
type: string
|
|
type: object
|