Changeset View
Changeset View
Standalone View
Standalone View
lib/types/endpoints.js
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | const socketPreferredEndpoints = Object.freeze({ | ||||
UPDATE_ROLE: 'update_role', | UPDATE_ROLE: 'update_role', | ||||
UPDATE_THREAD: 'update_thread', | UPDATE_THREAD: 'update_thread', | ||||
UPDATE_USER_SUBSCRIPTION: 'update_user_subscription', | UPDATE_USER_SUBSCRIPTION: 'update_user_subscription', | ||||
VERIFY_CODE: 'verify_code', | VERIFY_CODE: 'verify_code', | ||||
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', | |||||
}); | }); | ||||
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 |