modules
ChatKitty JS Core SDK / Exports
ChatKitty JS Core SDK
Table of contents
References
Enumerations
Classes
- AddChannelModeratorRequest
- AddedChannelModeratorResult
- BlockUserRequest
- BlockUserSucceededResult
- CannotAddModeratorToChannelError
- ChannelContext
- ChannelNotInvitableError
- ChannelNotPubliclyJoinableError
- ChatKitty
- ChatKittyConfiguration
- ChatKittyError
- ChatKittyFailedResult
- ChatKittyFile
- ChatKittyModelReference
- ChatKittyPaginator
- ChatKittySucceededResult
- ChatSession
- CheckChannelUnreadRequest
- CheckChannelUnreadSucceededResult
- CheckUserIsChannelMemberRequest
- CheckUserIsChannelMemberSucceededResult
- ClearChannelHistoryRequest
- ClearChannelHistorySucceededResult
- CountMessageRepliesRequest
- CountSucceededResult
- CountUnreadMessagesRequest
- CreateChatKittyExternalFileProperties
- CreateThreadRequest
- CreatedChannelResult
- CreatedThreadResult
- DeleteChannelRequest
- DeleteMessageRequest
- DeleteMessageSucceededResult
- DeleteUserBlockedRecordRequest
- DeleteUserBlockedRecordSucceededResult
- DeletedChannelResult
- EditMessageRequest
- EditedMessageSucceededResult
- Emoji
- Event
- HideChannelRequest
- HideChannelSucceededResult
- InviteUserRequest
- InvitedUserResult
- JoinChannelRequest
- JoinedChannelResult
- Keystrokes
- LeaveChannelRequest
- LeftChannelResult
- ListChannelMembersFilter
- ListChannelMembersRequest
- ListChannelMessagesFilter
- ListChannelMessagesRequest
- ListChannelThreadsFilter
- ListChannelThreadsRequest
- ListChannelsFilter
- ListChannelsRequest
- ListChannelsSucceededResult
- ListMessageRepliesRequest
- ListMessagesSucceededResult
- ListReactionsRequest
- ListReactionsSucceededResult
- ListReadReceiptsRequest
- ListReadReceiptsSucceededResult
- ListThreadsSucceededResult
- ListUnreadChannelsFilter
- ListUnreadChannelsRequest
- ListUserBlockedRecordsSucceededResult
- ListUserSucceededResult
- ListUsersFilter
- ListUsersMessagesFilter
- ListUsersMessagesRequest
- ListUsersRequest
- ListUsersSucceededResult
- MessageLink
- MessageLinkPreview
- MessageLinkPreviewImage
- MessageNotAReplyError
- MuteChannelRequest
- MutedChannelResult
- NoActiveSessionError
- NotAChannelMemberError
- NotificationData
- PageOutOfBoundsError
- ReactToMessageRequest
- ReactedToMessageResult
- Reaction
- ReactionSummary
- ReadChannelRequest
- ReadChannelSucceededResult
- ReadMessageRequest
- ReadMessageSucceededResult
- ReadReceipt
- ReadThreadRequest
- ReadThreadSucceededResult
- RemoveReactionRequest
- RemovedReactionResult
- RetrieveChannelContextRequest
- RetrieveChannelContextSucceededResult
- RetrieveChannelSucceededResult
- RetrieveChannelUnreadRequest
- RetrieveCurrentUserSuccessfulResult
- RetrieveLastReadMessageRequest
- RetrieveLastReadMessageSucceededResult
- RetrieveMessageChannelRequest
- RetrieveMessageChannelSucceededResult
- RetrieveMessageParentRequest
- RetrieveMessageParentSucceededResult
- RetrieveThreadChannelRequest
- RetrieveThreadChannelSucceededResult
- RetrieveThreadMessageRequest
- RetrieveThreadMessageSucceededResult
- SendChannelKeystrokesRequest
- SendThreadKeystrokesRequest
- SentFileMessageResult
- SentTextMessageResult
- SessionActiveError
- StartChatSessionRequest
- StartSessionRequest
- StartedChatSessionResult
- StartedSessionResult
- SystemSentMessageNotificationData
- Thread
- TriggerEventRequest
- TriggeredEventResult
- UnmuteChannelRequest
- UnmutedChannelResult
- UnreadMessageRequest
- UnreadMessageSucceededResult
- UpdateChannelRequest
- UpdateCurrentUserDisplayPictureRequest
- UpdateMessagePropertiesRequest
- UpdatedChannelResult
- UpdatedCurrentUserDisplayPictureResult
- UpdatedCurrentUserResult
- UpdatedMessagePropertiesSucceededResult
- UserBlockedRecord
- UserMentionedChannelNotificationData
- UserMentionedNotificationData
- UserPresence
- UserRepliedToMessageNotificationData
- UserSentMessageNotificationData
- UserSession
Interfaces
- BaseChannel
- BaseCreateChannelRequest
- BaseMessage
- BaseMessageMention
- BaseNotification
- BaseUser
- ChatKittyObserver
- ChatKittyUploadProgressListener
- CreateGroupChannelRequest
- GroupChannel
Type Aliases
- AddChannelModeratorResult
- BaseFileMessage
- BaseTextMessage
- BaseUserMessage
- BlockUserResult
- Channel
- ChannelMessageMention
- ChatKittyUnsubscribe
- ChatKittyUserReference
- CheckChannelUnreadResult
- CheckUserIsChannelMemberResult
- ClearChannelHistoryResult
- CountResult
- CountUnreadChannelsRequest
- CreateChannelRequest
- CreateChannelResult
- CreateChatKittyFileProperties
- CreateDirectChannelRequest
- CreatePrivateChannelRequest
- CreatePublicChannelRequest
- CreateThreadResult
- CurrentUser
- DeleteChannelResult
- DeleteMessageResult
- DeleteUserBlockedRecordResult
- DirectChannel
- EditMessageResult
- FileMessage
- FileSystemMessage
- FileUserMessage
- HideChannelResult
- InviteUserResult
- JoinChannelResult
- LeaveChannelResult
- ListChannelsResult
- ListMessagesRequest
- ListMessagesResult
- ListReactionsResult
- ListReadReceiptsResult
- ListThreadsRequest
- ListThreadsResult
- ListUserBlockedRecordsResult
- ListUsersResult
- Message
- MessageMention
- MuteChannelResult
- Notification
- PrivateChannel
- PublicChannel
- ReactToMessageResult
- ReadChannelResult
- ReadMessageResult
- ReadThreadResult
- RemoveReactionResult
- RetrieveChannelContextResult
- RetrieveChannelResult
- RetrieveCurrentUserResult
- RetrieveLastReadMessageResult
- RetrieveMessageChannelResult
- RetrieveMessageParentResult
- RetrieveThreadChannelResult
- RetrieveThreadMessageResult
- RetrieveUserResult
- SendChannelMessageRequest
- SendFileMessageRequest
- SendKeystrokesRequest
- SendMessageReplyRequest
- SendMessageRequest
- SendMessageResult
- SendTextMessageRequest
- SendThreadMessageRequest
- SentMessageResult
- StartChatSessionResult
- StartSessionResult
- SystemMessage
- SystemSentMessageNotification
- TextMessage
- TextSystemMessage
- TextUserMessage
- TriggerEventResult
- UnmuteChannelResult
- UnreadMessageResult
- UpdateChannelResult
- UpdateCurrentUserDisplayPictureResult
- UpdateCurrentUserResult
- UpdateMessagePropertiesResult
- User
- UserMentionedChannelNotification
- UserMentionedNotification
- UserMessage
- UserMessageMention
- UserRepliedToMessageNotification
- UserSentMessageNotification
Functions
- isDirectChannel
- isFileMessage
- isPrivateChannel
- isPublicChannel
- isSystemMessage
- isSystemSentMessageNotification
- isTextMessage
- isUserMentionedChannelNotification
- isUserMentionedNotification
- isUserMessage
- isUserRepliedToMessageNotification
- isUserSentMessageNotification
- sentFileMessage
- sentTextMessage
References
default
Renames and re-exports ChatKitty
Type Aliases
AddChannelModeratorResult
Ƭ AddChannelModeratorResult: AddedChannelModeratorResult
| ChatKittyFailedResult
Defined in
BaseFileMessage
Ƭ BaseFileMessage: BaseMessage
& { file
: ChatKittyFile
}
Defined in
BaseTextMessage
Ƭ BaseTextMessage: BaseMessage
& { body
: string
; links
: MessageLink
[] ; mentions?
: MessageMention
[] }
Defined in
BaseUserMessage
Ƭ BaseUserMessage: BaseMessage
& { user
: User
}
Defined in
BlockUserResult
Ƭ BlockUserResult: BlockUserSucceededResult
| ChatKittyFailedResult
Defined in
Channel
Ƭ Channel: DirectChannel
| PublicChannel
| PrivateChannel
Defined in
ChannelMessageMention
Ƭ ChannelMessageMention: BaseMessageMention
& { channel
: Channel
}
Defined in
ChatKittyUnsubscribe
Ƭ ChatKittyUnsubscribe: () => void
Type declaration
▸ (): void
Returns
void
Defined in
ChatKittyUserReference
Ƭ ChatKittyUserReference: ChatKittyModelReference
| { username
: string
}
Defined in
CheckChannelUnreadResult
Ƭ CheckChannelUnreadResult: CheckChannelUnreadSucceededResult
| ChatKittyFailedResult
Defined in
CheckUserIsChannelMemberResult
Ƭ CheckUserIsChannelMemberResult: CheckUserIsChannelMemberSucceededResult
| ChatKittyFailedResult
Defined in
ClearChannelHistoryResult
Ƭ ClearChannelHistoryResult: ClearChannelHistorySucceededResult
| ChatKittyFailedResult
Defined in
CountResult
Ƭ CountResult: CountSucceededResult
| ChatKittyFailedResult
Defined in
CountUnreadChannelsRequest
Ƭ CountUnreadChannelsRequest: ListUnreadChannelsRequest
Defined in
CreateChannelRequest
Ƭ CreateChannelRequest: CreateDirectChannelRequest
| CreatePublicChannelRequest
| CreatePrivateChannelRequest
Defined in
CreateChannelResult
Ƭ CreateChannelResult: CreatedChannelResult
| ChatKittyFailedResult
Defined in
CreateChatKittyFileProperties
Ƭ CreateChatKittyFileProperties: CreateChatKittyExternalFileProperties
| File
| { name
: string
; size
: number
; type
: string
; uri
: string
}
Defined in
CreateDirectChannelRequest
Ƭ CreateDirectChannelRequest: BaseCreateChannelRequest
& { type
: "DIRECT"
}
Defined in
CreatePrivateChannelRequest
Ƭ CreatePrivateChannelRequest: CreateGroupChannelRequest
& { type
: "PRIVATE"
}
Defined in
CreatePublicChannelRequest
Ƭ CreatePublicChannelRequest: CreateGroupChannelRequest
& { type
: "PUBLIC"
}
Defined in
CreateThreadResult
Ƭ CreateThreadResult: CreatedThreadResult
| ChatKittyFailedResult
Defined in
CurrentUser
Ƭ CurrentUser: BaseUser
& { }
Defined in
DeleteChannelResult
Ƭ DeleteChannelResult: DeletedChannelResult
| ChatKittyFailedResult
Defined in
DeleteMessageResult
Ƭ DeleteMessageResult: DeleteMessageSucceededResult
| ChatKittyFailedResult
Defined in
DeleteUserBlockedRecordResult
Ƭ DeleteUserBlockedRecordResult: DeleteUserBlockedRecordSucceededResult
| ChatKittyFailedResult
Defined in
DirectChannel
Ƭ DirectChannel: BaseChannel
& { members
: User
[] ; type
: "DIRECT"
}
Defined in
EditMessageResult
Ƭ EditMessageResult: EditedMessageSucceededResult
| ChatKittyFailedResult
Defined in
FileMessage
Ƭ FileMessage: FileSystemMessage
| FileUserMessage
Defined in
FileSystemMessage
Ƭ FileSystemMessage: BaseFileMessage
& { type
: "SYSTEM_FILE"
}
Defined in
FileUserMessage
Ƭ FileUserMessage: BaseFileMessage
& BaseUserMessage
& { type
: "FILE"
}
Defined in
HideChannelResult
Ƭ HideChannelResult: HideChannelSucceededResult
| ChatKittyFailedResult
Defined in
InviteUserResult
Ƭ InviteUserResult: InvitedUserResult
| ChatKittyFailedResult
Defined in
JoinChannelResult
Ƭ JoinChannelResult: JoinedChannelResult
| ChatKittyFailedResult
Defined in
LeaveChannelResult
Ƭ LeaveChannelResult: LeftChannelResult
| ChatKittyFailedResult
Defined in
ListChannelsResult
Ƭ ListChannelsResult: ListChannelsSucceededResult
| ChatKittyFailedResult
Defined in
ListMessagesRequest
Ƭ ListMessagesRequest: ListUsersMessagesRequest
| ListChannelMessagesRequest
| ListMessageRepliesRequest
Defined in
ListMessagesResult
Ƭ ListMessagesResult: ListMessagesSucceededResult
| ChatKittyFailedResult
Defined in
ListReactionsResult
Ƭ ListReactionsResult: ListReactionsSucceededResult
| ChatKittyFailedResult
Defined in
ListReadReceiptsResult
Ƭ ListReadReceiptsResult: ListReadReceiptsSucceededResult
| ChatKittyFailedResult
Defined in
ListThreadsRequest
Ƭ ListThreadsRequest: ListChannelThreadsRequest
Defined in
ListThreadsResult
Ƭ ListThreadsResult: ListThreadsSucceededResult
| ChatKittyFailedResult
Defined in
ListUserBlockedRecordsResult
Ƭ ListUserBlockedRecordsResult: ListUserBlockedRecordsSucceededResult
| ChatKittyFailedResult
Defined in
ListUsersResult
Ƭ ListUsersResult: ListUsersSucceededResult
| ChatKittyFailedResult
Defined in
Message
Ƭ Message: SystemMessage
| UserMessage
Defined in
MessageMention
Ƭ MessageMention: ChannelMessageMention
| UserMessageMention
Defined in
MuteChannelResult
Ƭ MuteChannelResult: MutedChannelResult
| ChatKittyFailedResult
Defined in
Notification
Ƭ Notification: SystemSentMessageNotification
| UserSentMessageNotification
| UserRepliedToMessageNotification
| UserMentionedNotification
| UserMentionedChannelNotification
Defined in
PrivateChannel
Ƭ PrivateChannel: GroupChannel
& { type
: "PRIVATE"
}
Defined in
PublicChannel
Ƭ PublicChannel: GroupChannel
& { type
: "PUBLIC"
}
Defined in
ReactToMessageResult
Ƭ ReactToMessageResult: ReactedToMessageResult
| ChatKittyFailedResult
Defined in
ReadChannelResult
Ƭ ReadChannelResult: ReadChannelSucceededResult
| ChatKittyFailedResult
Defined in
ReadMessageResult
Ƭ ReadMessageResult: ReadMessageSucceededResult
| ChatKittyFailedResult
Defined in
ReadThreadResult
Ƭ ReadThreadResult: ReadThreadSucceededResult
| ChatKittyFailedResult
Defined in
RemoveReactionResult
Ƭ RemoveReactionResult: RemovedReactionResult
| ChatKittyFailedResult
Defined in
RetrieveChannelContextResult
Ƭ RetrieveChannelContextResult: RetrieveChannelContextSucceededResult
| ChatKittyFailedResult
Defined in
RetrieveChannelResult
Ƭ RetrieveChannelResult: RetrieveChannelSucceededResult
| ChatKittyFailedResult
Defined in
RetrieveCurrentUserResult
Ƭ RetrieveCurrentUserResult: RetrieveCurrentUserSuccessfulResult
| ChatKittyFailedResult
Defined in
RetrieveLastReadMessageResult
Ƭ RetrieveLastReadMessageResult: RetrieveLastReadMessageSucceededResult
| ChatKittyFailedResult
Defined in
RetrieveMessageChannelResult
Ƭ RetrieveMessageChannelResult: RetrieveMessageChannelSucceededResult
| ChatKittyFailedResult
Defined in
RetrieveMessageParentResult
Ƭ RetrieveMessageParentResult: RetrieveMessageParentSucceededResult
| ChatKittyFailedResult
Defined in
RetrieveThreadChannelResult
Ƭ RetrieveThreadChannelResult: RetrieveThreadChannelSucceededResult
| ChatKittyFailedResult
Defined in
RetrieveThreadMessageResult
Ƭ RetrieveThreadMessageResult: RetrieveThreadMessageSucceededResult
| ChatKittyFailedResult
Defined in
RetrieveUserResult
Ƭ RetrieveUserResult: ListUserSucceededResult
| ChatKittyFailedResult
Defined in
SendChannelMessageRequest
Ƭ SendChannelMessageRequest: Object
Type declaration
Name | Type |
---|---|
channel | Channel |
Defined in
SendFileMessageRequest
Ƭ SendFileMessageRequest: SendChannelMessageRequest
| SendMessageReplyRequest
| SendThreadMessageRequest
& { file
: CreateChatKittyFileProperties
; groupTag?
: string
; progressListener?
: ChatKittyUploadProgressListener
; properties?
: unknown
}
Defined in
SendKeystrokesRequest
Ƭ SendKeystrokesRequest: SendChannelKeystrokesRequest
| SendThreadKeystrokesRequest
Defined in
SendMessageReplyRequest
Ƭ SendMessageReplyRequest: Object
Type declaration
Name | Type |
---|---|
message | Message |
Defined in
SendMessageRequest
Ƭ SendMessageRequest: SendTextMessageRequest
| SendFileMessageRequest
Defined in
SendMessageResult
Ƭ SendMessageResult: SentMessageResult
| ChatKittyFailedResult
Defined in
SendTextMessageRequest
Ƭ SendTextMessageRequest: SendChannelMessageRequest
| SendMessageReplyRequest
| SendThreadMessageRequest
& { body
: string
; groupTag?
: string
; properties?
: unknown
}
Defined in
SendThreadMessageRequest
Ƭ SendThreadMessageRequest: Object
Type declaration
Name | Type |
---|---|
thread | Thread |
Defined in
SentMessageResult
Ƭ SentMessageResult: SentTextMessageResult
| SentFileMessageResult
Defined in
StartChatSessionResult
Ƭ StartChatSessionResult: StartedChatSessionResult
Defined in
StartSessionResult
Ƭ StartSessionResult: StartedSessionResult
| ChatKittyFailedResult
Defined in
SystemMessage
Ƭ SystemMessage: TextSystemMessage
| FileSystemMessage
Defined in
SystemSentMessageNotification
Ƭ SystemSentMessageNotification: BaseNotification
& { data
: SystemSentMessageNotificationData
}
Defined in
TextMessage
Ƭ TextMessage: TextSystemMessage
| TextUserMessage
Defined in
TextSystemMessage
Ƭ TextSystemMessage: BaseTextMessage
& { type
: "SYSTEM_TEXT"
}
Defined in
TextUserMessage
Ƭ TextUserMessage: BaseTextMessage
& BaseUserMessage
& { type
: "TEXT"
}
Defined in
TriggerEventResult
Ƭ TriggerEventResult: TriggeredEventResult
| ChatKittyFailedResult
Defined in
UnmuteChannelResult
Ƭ UnmuteChannelResult: UnmutedChannelResult
| ChatKittyFailedResult
Defined in
UnreadMessageResult
Ƭ UnreadMessageResult: UnreadMessageSucceededResult
| ChatKittyFailedResult
Defined in
UpdateChannelResult
Ƭ UpdateChannelResult: UpdatedChannelResult
| ChatKittyFailedResult
Defined in
UpdateCurrentUserDisplayPictureResult
Ƭ UpdateCurrentUserDisplayPictureResult: UpdatedCurrentUserDisplayPictureResult
| ChatKittyFailedResult
Defined in
UpdateCurrentUserResult
Ƭ UpdateCurrentUserResult: UpdatedCurrentUserResult
| ChatKittyFailedResult
Defined in
UpdateMessagePropertiesResult
Ƭ UpdateMessagePropertiesResult: UpdatedMessagePropertiesSucceededResult
| ChatKittyFailedResult
Defined in
User
Ƭ User: BaseUser
& { }
Defined in
UserMentionedChannelNotification
Ƭ UserMentionedChannelNotification: BaseNotification
& { data
: UserMentionedChannelNotificationData
}
Defined in
UserMentionedNotification
Ƭ UserMentionedNotification: BaseNotification
& { data
: UserMentionedNotificationData
}
Defined in
UserMessage
Ƭ UserMessage: TextUserMessage
| FileUserMessage
Defined in
UserMessageMention
Ƭ UserMessageMention: BaseMessageMention
& { user
: User
}
Defined in
UserRepliedToMessageNotification
Ƭ UserRepliedToMessageNotification: BaseNotification
& { data
: UserRepliedToMessageNotificationData
}
Defined in
UserSentMessageNotification
Ƭ UserSentMessageNotification: BaseNotification
& { data
: UserSentMessageNotificationData
}
Defined in
Functions
isDirectChannel
▸ isDirectChannel(channel
): channel is DirectChannel
Parameters
Name | Type |
---|---|
channel | Channel |
Returns
channel is DirectChannel
Defined in
isFileMessage
▸ isFileMessage(message
): message is FileMessage
Parameters
Name | Type |
---|---|
message | Message |
Returns
message is FileMessage
Defined in
isPrivateChannel
▸ isPrivateChannel(channel
): channel is PrivateChannel
Parameters
Name | Type |
---|---|
channel | Channel |
Returns
channel is PrivateChannel
Defined in
isPublicChannel
▸ isPublicChannel(channel
): channel is PublicChannel
Parameters
Name | Type |
---|---|
channel | Channel |
Returns
channel is PublicChannel
Defined in
isSystemMessage
▸ isSystemMessage(message
): message is SystemMessage
Parameters
Name | Type |
---|---|
message | Message |
Returns
message is SystemMessage
Defined in
isSystemSentMessageNotification
▸ isSystemSentMessageNotification(notification
): notification is SystemSentMessageNotification
Parameters
Name | Type |
---|---|
notification | Notification |
Returns
notification is SystemSentMessageNotification
Defined in
isTextMessage
▸ isTextMessage(message
): message is TextMessage
Parameters
Name | Type |
---|---|
message | Message |
Returns
message is TextMessage
Defined in
isUserMentionedChannelNotification
▸ isUserMentionedChannelNotification(notification
): notification is UserMentionedChannelNotification
Parameters
Name | Type |
---|---|
notification | Notification |
Returns
notification is UserMentionedChannelNotification
Defined in
isUserMentionedNotification
▸ isUserMentionedNotification(notification
): notification is UserMentionedNotification
Parameters
Name | Type |
---|---|
notification | Notification |
Returns
notification is UserMentionedNotification
Defined in
isUserMessage
▸ isUserMessage(message
): message is UserMessage
Parameters
Name | Type |
---|---|
message | Message |
Returns
message is UserMessage
Defined in
isUserRepliedToMessageNotification
▸ isUserRepliedToMessageNotification(notification
): notification is UserRepliedToMessageNotification
Parameters
Name | Type |
---|---|
notification | Notification |
Returns
notification is UserRepliedToMessageNotification
Defined in
isUserSentMessageNotification
▸ isUserSentMessageNotification(notification
): notification is UserSentMessageNotification
Parameters
Name | Type |
---|---|
notification | Notification |
Returns
notification is UserSentMessageNotification
Defined in
sentFileMessage
▸ sentFileMessage(result
): result is SentFileMessageResult
Parameters
Name | Type |
---|---|
result | SentMessageResult |
Returns
result is SentFileMessageResult
Defined in
sentTextMessage
▸ sentTextMessage(result
): result is SentTextMessageResult
Parameters
Name | Type |
---|---|
result | SentMessageResult |
Returns
result is SentTextMessageResult