diff --git a/lib/types/endpoints.js b/lib/types/endpoints.js --- a/lib/types/endpoints.js +++ b/lib/types/endpoints.js @@ -54,7 +54,12 @@ }); type SocketOnlyEndpoint = $Values; -const socketPreferredEndpoints = Object.freeze({ +const socketPreferredEndpoints = Object.freeze({}); +type SocketPreferredEndpoint = $Values; + +const httpPreferredEndpoints = Object.freeze({ + CREATE_REPORT: 'create_report', + CREATE_REPORTS: 'create_reports', CREATE_ENTRY: 'create_entry', CREATE_ERROR_REPORT: 'create_error_report', CREATE_MESSAGE_REPORT: 'create_message_report', @@ -108,12 +113,6 @@ GET_OLM_SESSION_INITIALIZATION_DATA: 'get_olm_session_initialization_data', VERSION: 'version', }); -type SocketPreferredEndpoint = $Values; - -const httpPreferredEndpoints = Object.freeze({ - CREATE_REPORT: 'create_report', - CREATE_REPORTS: 'create_reports', -}); type HTTPPreferredEndpoint = $Values; const socketPreferredEndpointSet = new Set([