Changeset View
Changeset View
Standalone View
Standalone View
lib/types/endpoints.js
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | const socketPreferredEndpoints = Object.freeze({ | ||||
VERIFY_INVITE_LINK: 'verify_invite_link', | VERIFY_INVITE_LINK: 'verify_invite_link', | ||||
SIWE_NONCE: 'siwe_nonce', | SIWE_NONCE: 'siwe_nonce', | ||||
SIWE_AUTH: 'siwe_auth', | SIWE_AUTH: 'siwe_auth', | ||||
UPDATE_USER_AVATAR: 'update_user_avatar', | UPDATE_USER_AVATAR: 'update_user_avatar', | ||||
UPLOAD_MEDIA_METADATA: 'upload_media_metadata', | UPLOAD_MEDIA_METADATA: 'upload_media_metadata', | ||||
SEARCH_MESSAGES: 'search_messages', | SEARCH_MESSAGES: 'search_messages', | ||||
GET_OLM_SESSION_INITIALIZATION_DATA: 'get_olm_session_initialization_data', | GET_OLM_SESSION_INITIALIZATION_DATA: 'get_olm_session_initialization_data', | ||||
VERSION: 'version', | VERSION: 'version', | ||||
FETCH_LATEST_MESSAGES: 'fetch_latest_messages', | |||||
}); | }); | ||||
type SocketPreferredEndpoint = $Values<typeof socketPreferredEndpoints>; | type SocketPreferredEndpoint = $Values<typeof socketPreferredEndpoints>; | ||||
const httpPreferredEndpoints = Object.freeze({ | const httpPreferredEndpoints = Object.freeze({ | ||||
CREATE_REPORT: 'create_report', | CREATE_REPORT: 'create_report', | ||||
CREATE_REPORTS: 'create_reports', | CREATE_REPORTS: 'create_reports', | ||||
}); | }); | ||||
type HTTPPreferredEndpoint = $Values<typeof httpPreferredEndpoints>; | type HTTPPreferredEndpoint = $Values<typeof httpPreferredEndpoints>; | ||||
Show All 22 Lines |