Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/responders/thread-responders.js
// @flow | // @flow | ||||
import t from 'tcomb'; | import t from 'tcomb'; | ||||
import type { TInterface, TUnion } from 'tcomb'; | import type { TInterface, TUnion } from 'tcomb'; | ||||
import { rawEntryInfoValidator } from 'lib/types/entry-types.js'; | import { rawEntryInfoValidator } from 'lib/types/entry-types.js'; | ||||
import { mediaValidator } from 'lib/types/media-types.js'; | import { mediaValidator } from 'lib/types/media-types.js'; | ||||
import { | import { | ||||
rawMessageInfoValidator, | rawMessageInfoValidator, | ||||
messageTruncationStatusesValidator, | messageTruncationStatusesValidator, | ||||
} from 'lib/types/message-types.js'; | } from 'lib/types/message-types.js'; | ||||
import { threadTypes } from 'lib/types/thread-types-enum.js'; | |||||
import { | import { | ||||
type ThreadDeletionRequest, | type ThreadDeletionRequest, | ||||
type RoleChangeRequest, | type RoleChangeRequest, | ||||
type ChangeThreadSettingsResult, | type ChangeThreadSettingsResult, | ||||
type RemoveMembersRequest, | type RemoveMembersRequest, | ||||
type LeaveThreadRequest, | type LeaveThreadRequest, | ||||
type LeaveThreadResult, | type LeaveThreadResult, | ||||
type UpdateThreadRequest, | type UpdateThreadRequest, | ||||
type ServerNewThreadRequest, | type ServerNewThreadRequest, | ||||
type NewThreadResponse, | type NewThreadResponse, | ||||
type ServerThreadJoinRequest, | type ServerThreadJoinRequest, | ||||
type ThreadJoinResult, | type ThreadJoinResult, | ||||
type ThreadFetchMediaResult, | type ThreadFetchMediaResult, | ||||
type ThreadFetchMediaRequest, | type ThreadFetchMediaRequest, | ||||
type ToggleMessagePinRequest, | type ToggleMessagePinRequest, | ||||
type ToggleMessagePinResult, | type ToggleMessagePinResult, | ||||
threadTypes, | |||||
rawThreadInfoValidator, | rawThreadInfoValidator, | ||||
} from 'lib/types/thread-types.js'; | } from 'lib/types/thread-types.js'; | ||||
import { serverUpdateInfoValidator } from 'lib/types/update-types.js'; | import { serverUpdateInfoValidator } from 'lib/types/update-types.js'; | ||||
import { userInfosValidator } from 'lib/types/user-types.js'; | import { userInfosValidator } from 'lib/types/user-types.js'; | ||||
import { updateUserAvatarRequestValidator } from 'lib/utils/avatar-utils.js'; | import { updateUserAvatarRequestValidator } from 'lib/utils/avatar-utils.js'; | ||||
import { values } from 'lib/utils/objects.js'; | import { values } from 'lib/utils/objects.js'; | ||||
import { | import { | ||||
tShape, | tShape, | ||||
▲ Show 20 Lines • Show All 294 Lines • Show Last 20 Lines |