Changeset View
Changeset View
Standalone View
Standalone View
lib/types/message-types.js
Show First 20 Lines • Show All 722 Lines • ▼ Show 20 Lines | export type SearchMessagesRequest = { | ||||
+threadID: string, | +threadID: string, | ||||
+cursor?: string, | +cursor?: string, | ||||
}; | }; | ||||
export type SearchMessagesResponse = { | export type SearchMessagesResponse = { | ||||
+messages: $ReadOnlyArray<RawMessageInfo>, | +messages: $ReadOnlyArray<RawMessageInfo>, | ||||
+endReached: boolean, | +endReached: boolean, | ||||
}; | }; | ||||
export type FetchLatestMessagesRequest = { | |||||
+home: boolean, | |||||
+fromMessage: string, | |||||
}; | |||||
export type FetchLatestMessagesResponse = { | |||||
+rawMessageInfos: $ReadOnlyArray<RawMessageInfo>, | |||||
+truncationStatuses: MessageTruncationStatuses, | |||||
+oldestMessage: ?string, | |||||
}; |