forked from Telodendria/Telodendria
1d0a7e62f2
The web versions worked fine, but the old Android ones tend to be strict, which is a great tool for testing.
113 lines
2.5 KiB
JSON
113 lines
2.5 KiB
JSON
{
|
|
"guard": "TELODENDRIA_SCHEMA_SYNCRESPONSE_H",
|
|
"header": "Schema\/SyncResponse.h",
|
|
"types": {
|
|
"Event": {
|
|
"fields": {
|
|
"content": {
|
|
"type": "object",
|
|
"required": true
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
},
|
|
"type": "struct"
|
|
},
|
|
"AccountData": {
|
|
"fields": {
|
|
"events": { "type": "[Event]" }
|
|
},
|
|
"type": "struct"
|
|
},
|
|
"InviteState": {
|
|
"fields": {
|
|
"events": { "type": "[StrippedStateEvent]" }
|
|
},
|
|
"type": "struct"
|
|
},
|
|
"States": {
|
|
"fields": {
|
|
"events": { "type": "array" }
|
|
},
|
|
"type": "struct"
|
|
},
|
|
"StrippedStateEvent": {
|
|
"fields": {
|
|
"content": {
|
|
"type": "object",
|
|
"required": true
|
|
},
|
|
"sender": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"state_key": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"required": true
|
|
}
|
|
},
|
|
"type": "struct"
|
|
},
|
|
"InvitedRooms": {
|
|
"fields": {
|
|
"invite_state": { "type": "InviteState" }
|
|
},
|
|
"type": "struct"
|
|
},
|
|
"ClientEventWithoutRoomID": {
|
|
"fields": {
|
|
"content": { "type": "object", "required": true },
|
|
"event_id": { "type": "string", "required": true },
|
|
"origin_server_ts": { "type": "integer", "required": true },
|
|
"sender": { "type": "string", "required": true },
|
|
"state_key": { "type": "string" },
|
|
"redacts": { "type": "string" },
|
|
"type": { "type": "string", "required": true }
|
|
},
|
|
"type": "struct"
|
|
},
|
|
"Timeline": {
|
|
"fields": {
|
|
"events": { "type": "[ClientEventWithoutRoomID]", "required": true },
|
|
"limited": { "type": "boolean" },
|
|
"prev_batch": { "type": "string" }
|
|
},
|
|
"type": "struct"
|
|
},
|
|
"JoinedRooms": {
|
|
"fields": {
|
|
"timeline": { "type": "Timeline" },
|
|
"state": { "type": "States" }
|
|
},
|
|
"type": "struct"
|
|
},
|
|
"Rooms": {
|
|
"fields": {
|
|
"invite": { "type": "{InvitedRooms}" },
|
|
"join": { "type": "{JoinedRooms}" }
|
|
},
|
|
"type": "struct"
|
|
},
|
|
"SyncResponse": {
|
|
"fields": {
|
|
"next_batch": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"account_data": {
|
|
"type": "AccountData"
|
|
},
|
|
"rooms": {
|
|
"type": "Rooms"
|
|
}
|
|
},
|
|
"type": "struct"
|
|
}
|
|
}
|
|
}
|