UNPKG

@river-build/sdk

Version:

For more details, visit the following resources:

66 lines 3.48 kB
export var EventStatus; (function (EventStatus) { /** The event was not sent and will no longer be retried. */ EventStatus["NOT_SENT"] = "not_sent"; /** The message is being encrypted */ EventStatus["ENCRYPTING"] = "encrypting"; /** The event is in the process of being sent. */ EventStatus["SENDING"] = "sending"; /** The event is in a queue waiting to be sent. */ EventStatus["QUEUED"] = "queued"; /** The event has been sent to the server, but we have not yet received the echo. */ EventStatus["SENT"] = "sent"; /** The event was cancelled before it was successfully sent. */ EventStatus["CANCELLED"] = "cancelled"; /** We received this event */ EventStatus["RECEIVED"] = "received"; })(EventStatus || (EventStatus = {})); export var RiverTimelineEvent; (function (RiverTimelineEvent) { RiverTimelineEvent["ChannelCreate"] = "m.channel.create"; RiverTimelineEvent["ChannelMessage"] = "m.channel.message"; RiverTimelineEvent["ChannelMessageEncrypted"] = "m.channel.encrypted"; RiverTimelineEvent["ChannelMessageEncryptedWithRef"] = "m.channel.encrypted_with_ref"; RiverTimelineEvent["ChannelMessageMissing"] = "m.channel.missing"; RiverTimelineEvent["ChannelProperties"] = "m.channel.properties"; RiverTimelineEvent["Fulfillment"] = "m.fulfillment"; RiverTimelineEvent["Inception"] = "m.inception"; RiverTimelineEvent["KeySolicitation"] = "m.key_solicitation"; RiverTimelineEvent["MemberBlockchainTransaction"] = "m.member_blockchain_transaction"; RiverTimelineEvent["MiniblockHeader"] = "m.miniblockheader"; RiverTimelineEvent["Pin"] = "m.pin"; RiverTimelineEvent["Reaction"] = "m.reaction"; RiverTimelineEvent["RedactedEvent"] = "m.redacted_event"; RiverTimelineEvent["RedactionActionEvent"] = "m.redaction_action"; RiverTimelineEvent["SpaceUpdateAutojoin"] = "m.space.update_autojoin"; RiverTimelineEvent["SpaceUpdateHideUserJoinLeaves"] = "m.space.update_channel_hide_user_join_leaves"; RiverTimelineEvent["SpaceImage"] = "m.space.image"; RiverTimelineEvent["SpaceUsername"] = "m.space.username"; RiverTimelineEvent["SpaceDisplayName"] = "m.space.display_name"; RiverTimelineEvent["SpaceEnsAddress"] = "m.space.ens_name"; RiverTimelineEvent["SpaceNft"] = "m.space.nft"; RiverTimelineEvent["SpaceReview"] = "m.space.review"; RiverTimelineEvent["StreamEncryptionAlgorithm"] = "m.stream_encryption_algorithm"; RiverTimelineEvent["StreamMembership"] = "m.stream_membership"; RiverTimelineEvent["TipEvent"] = "m.tip_event"; RiverTimelineEvent["TokenTransfer"] = "m.token_transfer"; RiverTimelineEvent["Unpin"] = "m.unpin"; RiverTimelineEvent["UserBlockchainTransaction"] = "m.user_blockchain_transaction"; RiverTimelineEvent["UserReceivedBlockchainTransaction"] = "m.user_received_blockchain_transaction"; })(RiverTimelineEvent || (RiverTimelineEvent = {})); // TODO: membership here doenst map 1-1 to MembershipOp export var Membership; (function (Membership) { Membership["Join"] = "join"; Membership["Invite"] = "invite"; Membership["Leave"] = "leave"; Membership["Ban"] = "ban"; Membership["None"] = ""; })(Membership || (Membership = {})); export var MessageType; (function (MessageType) { MessageType["Text"] = "m.text"; MessageType["GM"] = "m.gm"; MessageType["Image"] = "m.image"; })(MessageType || (MessageType = {})); //# sourceMappingURL=timeline-types.js.map