{ "guard": "TELODENDRIA_KEY_UPLOAD_H", "header": "Schema/KeyUpload.h", "types": { "DeviceKeys": { "type": "struct", "fields": { "device_id": { "type": "string", "required": true }, "user_id": { "type": "string", "required": true }, "algorithms": { "type": "[string]", "required": true }, "keys": { "type": "{string}", "required": true }, "signatures": { "//": "TODO: More complex j2s types.", "//": "This is meant to be a map from user ID to ", "//": "algo+device ID to a signature(string).", "type": "object", "required": true } } }, "KeyResponse": { "type": "struct", "fields": { "one_time_key_counts": { "type": "{integer}", "required": true } } }, "KeyUploadRequest": { "type": "struct", "fields": { "device_keys": { "type": "DeviceKeys", "required": false }, "fallback_keys": { "//": "This is a one-time key.", "type": "object", "required": false }, "one_time_keys": { "//": "This is a one-time key.", "type": "object", "required": false } } } } }