2023-08-10 00:08:33 +00:00
|
|
|
{
|
|
|
|
"guard": "TELODENDRIA_SCHEMA_PDUV1_H",
|
|
|
|
"header": "Schema/PduV1.h",
|
|
|
|
"types": {
|
2024-08-22 10:10:37 +00:00
|
|
|
"PduV1Status": {
|
|
|
|
"type": "enum",
|
|
|
|
"fields": {
|
|
|
|
"dropped": { "name": "PDUV1_STATUS_DROPPED" },
|
|
|
|
"softfail": { "name": "PDUV1_STATUS_SOFTFAIL" },
|
|
|
|
|
|
|
|
"accepted": { "name": "PDUV1_STATUS_ACCEPTED" },
|
|
|
|
"rejected": { "name": "PDUV1_STATUS_REJECTED" }
|
|
|
|
}
|
|
|
|
},
|
2023-08-10 00:08:33 +00:00
|
|
|
"PduV1EventHash": {
|
|
|
|
"type": "struct",
|
|
|
|
"fields": {
|
|
|
|
"sha256": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"PduV1UnsignedData": {
|
|
|
|
"type": "struct",
|
|
|
|
"fields": {
|
|
|
|
"age": {
|
|
|
|
"type": "integer"
|
2024-06-14 21:30:35 +00:00
|
|
|
},
|
|
|
|
"next_events": {
|
|
|
|
"type": "[string]",
|
|
|
|
"required": false
|
2024-08-22 10:10:37 +00:00
|
|
|
},
|
|
|
|
"pdu_status": {
|
|
|
|
"type": "PduV1Status",
|
|
|
|
"required": false
|
2023-08-10 00:08:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"PduV1": {
|
|
|
|
"type": "struct",
|
|
|
|
"fields": {
|
|
|
|
"auth_events": {
|
|
|
|
"type": "array",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"content": {
|
|
|
|
"type": "object",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"depth": {
|
|
|
|
"type": "integer",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"event_id": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"hashes": {
|
|
|
|
"type": "PduV1EventHash",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"origin_server_ts": {
|
|
|
|
"type": "integer",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"prev_events": {
|
|
|
|
"type": "array",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"redacts": {
|
2024-05-17 21:57:32 +00:00
|
|
|
"type": "string",
|
|
|
|
"required": false
|
2023-08-10 00:08:33 +00:00
|
|
|
},
|
|
|
|
"room_id": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"sender": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"signatures": {
|
|
|
|
"type": "object",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"state_key": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"_unsigned": {
|
|
|
|
"type": "PduV1UnsignedData"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|