@rocket.chat/core-typings 6.3.0-rc.0 → 6.3.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/ACDQueues.d.ts +35 -0
- package/dist/ACDQueues.js +3 -0
- package/dist/ACDQueues.js.map +1 -0
- package/dist/AppOverview.d.ts +104 -0
- package/dist/AppOverview.js +3 -0
- package/dist/AppOverview.js.map +1 -0
- package/dist/AppRequests.d.ts +38 -0
- package/dist/AppRequests.js +3 -0
- package/dist/AppRequests.js.map +1 -0
- package/dist/Apps.d.ts +122 -0
- package/dist/Apps.js +12 -0
- package/dist/Apps.js.map +1 -0
- package/dist/AppsTokens.d.ts +11 -0
- package/dist/AppsTokens.js +3 -0
- package/dist/AppsTokens.js.map +1 -0
- package/dist/CustomFieldMetadata.d.ts +11 -0
- package/dist/CustomFieldMetadata.js +3 -0
- package/dist/CustomFieldMetadata.js.map +1 -0
- package/dist/FeaturedApps.d.ts +6 -0
- package/dist/FeaturedApps.js +3 -0
- package/dist/FeaturedApps.js.map +1 -0
- package/dist/IAnalytic.d.ts +29 -0
- package/dist/IAnalytic.js +3 -0
- package/dist/IAnalytic.js.map +1 -0
- package/dist/IAutoTranslate.d.ts +25 -0
- package/dist/IAutoTranslate.js +3 -0
- package/dist/IAutoTranslate.js.map +1 -0
- package/dist/IAvatar.d.ts +2 -0
- package/dist/IAvatar.js +3 -0
- package/dist/IAvatar.js.map +1 -0
- package/dist/IBanner.d.ts +30 -0
- package/dist/IBanner.js +11 -0
- package/dist/IBanner.js.map +1 -0
- package/dist/IBaseData.d.ts +3 -0
- package/dist/IBaseData.js +3 -0
- package/dist/IBaseData.js.map +1 -0
- package/dist/ICalendarEvent.d.ts +13 -0
- package/dist/ICalendarEvent.js +3 -0
- package/dist/ICalendarEvent.js.map +1 -0
- package/dist/ICloud.d.ts +41 -0
- package/dist/ICloud.js +3 -0
- package/dist/ICloud.js.map +1 -0
- package/dist/ICredentialToken.d.ts +9 -0
- package/dist/ICredentialToken.js +3 -0
- package/dist/ICredentialToken.js.map +1 -0
- package/dist/ICronHistoryItem.d.ts +9 -0
- package/dist/ICronHistoryItem.js +3 -0
- package/dist/ICronHistoryItem.js.map +1 -0
- package/dist/ICustomEmojiDescriptor.d.ts +6 -0
- package/dist/ICustomEmojiDescriptor.js +3 -0
- package/dist/ICustomEmojiDescriptor.js.map +1 -0
- package/dist/ICustomOAuthConfig.d.ts +16 -0
- package/dist/ICustomOAuthConfig.js +3 -0
- package/dist/ICustomOAuthConfig.js.map +1 -0
- package/dist/ICustomSound.d.ts +8 -0
- package/dist/ICustomSound.js +3 -0
- package/dist/ICustomSound.js.map +1 -0
- package/dist/ICustomUserStatus.d.ts +5 -0
- package/dist/ICustomUserStatus.js +3 -0
- package/dist/ICustomUserStatus.js.map +1 -0
- package/dist/IEmailInbox.d.ts +31 -0
- package/dist/IEmailInbox.js +3 -0
- package/dist/IEmailInbox.js.map +1 -0
- package/dist/IEmailMessageHistory.d.ts +5 -0
- package/dist/IEmailMessageHistory.js +3 -0
- package/dist/IEmailMessageHistory.js.map +1 -0
- package/dist/IEmoji.d.ts +3 -0
- package/dist/IEmoji.js +3 -0
- package/dist/IEmoji.js.map +1 -0
- package/dist/IEmojiCustom.d.ts +6 -0
- package/dist/IEmojiCustom.js +3 -0
- package/dist/IEmojiCustom.js.map +1 -0
- package/dist/IExportOperation.d.ts +28 -0
- package/dist/IExportOperation.js +3 -0
- package/dist/IExportOperation.js.map +1 -0
- package/dist/IIncomingMessage.d.ts +6 -0
- package/dist/IIncomingMessage.js +3 -0
- package/dist/IIncomingMessage.js.map +1 -0
- package/dist/IInquiry.d.ts +56 -0
- package/dist/IInquiry.js +11 -0
- package/dist/IInquiry.js.map +1 -0
- package/dist/IInstanceStatus.d.ts +23 -0
- package/dist/IInstanceStatus.js +3 -0
- package/dist/IInstanceStatus.js.map +1 -0
- package/dist/IIntegration.d.ts +64 -0
- package/dist/IIntegration.js +3 -0
- package/dist/IIntegration.js.map +1 -0
- package/dist/IIntegrationHistory.d.ts +26 -0
- package/dist/IIntegrationHistory.js +3 -0
- package/dist/IIntegrationHistory.js.map +1 -0
- package/dist/IInvite.d.ts +11 -0
- package/dist/IInvite.js +3 -0
- package/dist/IInvite.js.map +1 -0
- package/dist/ILivechatAgent.d.ts +15 -0
- package/dist/ILivechatAgent.js +9 -0
- package/dist/ILivechatAgent.js.map +1 -0
- package/dist/ILivechatAgentActivity.d.ts +13 -0
- package/dist/ILivechatAgentActivity.js +3 -0
- package/dist/ILivechatAgentActivity.js.map +1 -0
- package/dist/ILivechatBusinessHour.d.ts +43 -0
- package/dist/ILivechatBusinessHour.js +14 -0
- package/dist/ILivechatBusinessHour.js.map +1 -0
- package/dist/ILivechatCustomField.d.ts +13 -0
- package/dist/ILivechatCustomField.js +3 -0
- package/dist/ILivechatCustomField.js.map +1 -0
- package/dist/ILivechatDepartment.d.ts +33 -0
- package/dist/ILivechatDepartment.js +3 -0
- package/dist/ILivechatDepartment.js.map +1 -0
- package/dist/ILivechatDepartmentAgents.d.ts +9 -0
- package/dist/ILivechatDepartmentAgents.js +3 -0
- package/dist/ILivechatDepartmentAgents.js.map +1 -0
- package/dist/ILivechatDepartmentRecord.d.ts +19 -0
- package/dist/ILivechatDepartmentRecord.js +3 -0
- package/dist/ILivechatDepartmentRecord.js.map +1 -0
- package/dist/ILivechatMonitor.d.ts +10 -0
- package/dist/ILivechatMonitor.js +3 -0
- package/dist/ILivechatMonitor.js.map +1 -0
- package/dist/ILivechatMonitorRecord.d.ts +9 -0
- package/dist/ILivechatMonitorRecord.js +3 -0
- package/dist/ILivechatMonitorRecord.js.map +1 -0
- package/dist/ILivechatPriority.d.ts +16 -0
- package/dist/ILivechatPriority.js +13 -0
- package/dist/ILivechatPriority.js.map +1 -0
- package/dist/ILivechatTag.d.ts +7 -0
- package/dist/ILivechatTag.js +3 -0
- package/dist/ILivechatTag.js.map +1 -0
- package/dist/ILivechatTagRecord.d.ts +8 -0
- package/dist/ILivechatTagRecord.js +3 -0
- package/dist/ILivechatTagRecord.js.map +1 -0
- package/dist/ILivechatTrigger.d.ts +26 -0
- package/dist/ILivechatTrigger.js +10 -0
- package/dist/ILivechatTrigger.js.map +1 -0
- package/dist/ILivechatUnitMonitor.d.ts +6 -0
- package/dist/ILivechatUnitMonitor.js +3 -0
- package/dist/ILivechatUnitMonitor.js.map +1 -0
- package/dist/ILivechatVisitor.d.ts +62 -0
- package/dist/ILivechatVisitor.js +6 -0
- package/dist/ILivechatVisitor.js.map +1 -0
- package/dist/ILoginServiceConfiguration.d.ts +6 -0
- package/dist/ILoginServiceConfiguration.js +3 -0
- package/dist/ILoginServiceConfiguration.js.map +1 -0
- package/dist/ILogs.d.ts +18 -0
- package/dist/ILogs.js +3 -0
- package/dist/ILogs.js.map +1 -0
- package/dist/IMessage/IMessage.d.ts +249 -0
- package/dist/IMessage/IMessage.js +42 -0
- package/dist/IMessage/IMessage.js.map +1 -0
- package/dist/IMessage/MessageAttachment/FieldProps.d.ts +5 -0
- package/dist/IMessage/MessageAttachment/FieldProps.js +3 -0
- package/dist/IMessage/MessageAttachment/FieldProps.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/AudioAttachmentProps.d.ts +17 -0
- package/dist/IMessage/MessageAttachment/Files/AudioAttachmentProps.js +6 -0
- package/dist/IMessage/MessageAttachment/Files/AudioAttachmentProps.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/Dimensions.d.ts +4 -0
- package/dist/IMessage/MessageAttachment/Files/Dimensions.js +3 -0
- package/dist/IMessage/MessageAttachment/Files/Dimensions.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/FileAttachmentProps.d.ts +8 -0
- package/dist/IMessage/MessageAttachment/Files/FileAttachmentProps.js +6 -0
- package/dist/IMessage/MessageAttachment/Files/FileAttachmentProps.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/FileProp.d.ts +7 -0
- package/dist/IMessage/MessageAttachment/Files/FileProp.js +3 -0
- package/dist/IMessage/MessageAttachment/Files/FileProp.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/ImageAttachmentProps.d.ts +22 -0
- package/dist/IMessage/MessageAttachment/Files/ImageAttachmentProps.js +6 -0
- package/dist/IMessage/MessageAttachment/Files/ImageAttachmentProps.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/PDFAttachmentProps.d.ts +5 -0
- package/dist/IMessage/MessageAttachment/Files/PDFAttachmentProps.js +3 -0
- package/dist/IMessage/MessageAttachment/Files/PDFAttachmentProps.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/VideoAttachmentProps.d.ts +17 -0
- package/dist/IMessage/MessageAttachment/Files/VideoAttachmentProps.js +6 -0
- package/dist/IMessage/MessageAttachment/Files/VideoAttachmentProps.js.map +1 -0
- package/dist/IMessage/MessageAttachment/Files/index.d.ts +7 -0
- package/dist/IMessage/MessageAttachment/Files/index.js +24 -0
- package/dist/IMessage/MessageAttachment/Files/index.js.map +1 -0
- package/dist/IMessage/MessageAttachment/MessageAttachment.d.ts +5 -0
- package/dist/IMessage/MessageAttachment/MessageAttachment.js +3 -0
- package/dist/IMessage/MessageAttachment/MessageAttachment.js.map +1 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentAction.d.ts +20 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentAction.js +7 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentAction.js.map +1 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentBase.d.ts +14 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentBase.js +3 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentBase.js.map +1 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentDefault.d.ts +19 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentDefault.js +3 -0
- package/dist/IMessage/MessageAttachment/MessageAttachmentDefault.js.map +1 -0
- package/dist/IMessage/MessageAttachment/MessageQuoteAttachment.d.ts +13 -0
- package/dist/IMessage/MessageAttachment/MessageQuoteAttachment.js +6 -0
- package/dist/IMessage/MessageAttachment/MessageQuoteAttachment.js.map +1 -0
- package/dist/IMessage/MessageAttachment/TranslatedMessageAttachment.d.ts +9 -0
- package/dist/IMessage/MessageAttachment/TranslatedMessageAttachment.js +8 -0
- package/dist/IMessage/MessageAttachment/TranslatedMessageAttachment.js.map +1 -0
- package/dist/IMessage/MessageAttachment/index.d.ts +8 -0
- package/dist/IMessage/MessageAttachment/index.js +25 -0
- package/dist/IMessage/MessageAttachment/index.js.map +1 -0
- package/dist/IMessage/index.d.ts +2 -0
- package/dist/IMessage/index.js +19 -0
- package/dist/IMessage/index.js.map +1 -0
- package/dist/IMethodThisType.d.ts +15 -0
- package/dist/IMethodThisType.js +3 -0
- package/dist/IMethodThisType.js.map +1 -0
- package/dist/IMethodType.d.ts +4 -0
- package/dist/IMethodType.js +3 -0
- package/dist/IMethodType.js.map +1 -0
- package/dist/IModerationReport.d.ts +30 -0
- package/dist/IModerationReport.js +3 -0
- package/dist/IModerationReport.js.map +1 -0
- package/dist/INotification.d.ts +69 -0
- package/dist/INotification.js +3 -0
- package/dist/INotification.js.map +1 -0
- package/dist/INps.d.ts +31 -0
- package/dist/INps.js +17 -0
- package/dist/INps.js.map +1 -0
- package/dist/IOAuthAccessToken.d.ts +9 -0
- package/dist/IOAuthAccessToken.js +3 -0
- package/dist/IOAuthAccessToken.js.map +1 -0
- package/dist/IOAuthApps.d.ts +15 -0
- package/dist/IOAuthApps.js +3 -0
- package/dist/IOAuthApps.js.map +1 -0
- package/dist/IOAuthAuthCode.d.ts +8 -0
- package/dist/IOAuthAuthCode.js +3 -0
- package/dist/IOAuthAuthCode.js.map +1 -0
- package/dist/IOAuthRefreshToken.d.ts +7 -0
- package/dist/IOAuthRefreshToken.js +3 -0
- package/dist/IOAuthRefreshToken.js.map +1 -0
- package/dist/IOEmbedCache.d.ts +5 -0
- package/dist/IOEmbedCache.js +3 -0
- package/dist/IOEmbedCache.js.map +1 -0
- package/dist/IOembed.d.ts +43 -0
- package/dist/IOembed.js +8 -0
- package/dist/IOembed.js.map +1 -0
- package/dist/IOmnichannel.d.ts +11 -0
- package/dist/IOmnichannel.js +10 -0
- package/dist/IOmnichannel.js.map +1 -0
- package/dist/IOmnichannelAgent.d.ts +5 -0
- package/dist/IOmnichannelAgent.js +3 -0
- package/dist/IOmnichannelAgent.js.map +1 -0
- package/dist/IOmnichannelBusinessUnit.d.ts +10 -0
- package/dist/IOmnichannelBusinessUnit.js +3 -0
- package/dist/IOmnichannelBusinessUnit.js.map +1 -0
- package/dist/IOmnichannelCannedResponse.d.ts +16 -0
- package/dist/IOmnichannelCannedResponse.js +3 -0
- package/dist/IOmnichannelCannedResponse.js.map +1 -0
- package/dist/IOmnichannelCustomAgent.d.ts +4 -0
- package/dist/IOmnichannelCustomAgent.js +3 -0
- package/dist/IOmnichannelCustomAgent.js.map +1 -0
- package/dist/IOmnichannelServiceLevelAgreements.d.ts +9 -0
- package/dist/IOmnichannelServiceLevelAgreements.js +7 -0
- package/dist/IOmnichannelServiceLevelAgreements.js.map +1 -0
- package/dist/IOmnichannelVoipServiceResult.d.ts +10 -0
- package/dist/IOmnichannelVoipServiceResult.js +3 -0
- package/dist/IOmnichannelVoipServiceResult.js.map +1 -0
- package/dist/IPassword.d.ts +4 -0
- package/dist/IPassword.js +3 -0
- package/dist/IPassword.js.map +1 -0
- package/dist/IPbxEvent.d.ts +12 -0
- package/dist/IPbxEvent.js +3 -0
- package/dist/IPbxEvent.js.map +1 -0
- package/dist/IPermission.d.ts +12 -0
- package/dist/IPermission.js +3 -0
- package/dist/IPermission.js.map +1 -0
- package/dist/IPushNotificationConfig.d.ts +18 -0
- package/dist/IPushNotificationConfig.js +3 -0
- package/dist/IPushNotificationConfig.js.map +1 -0
- package/dist/IPushToken.d.ts +10 -0
- package/dist/IPushToken.js +3 -0
- package/dist/IPushToken.js.map +1 -0
- package/dist/IReport.d.ts +8 -0
- package/dist/IReport.js +3 -0
- package/dist/IReport.js.map +1 -0
- package/dist/IRocketChatAssets.d.ts +53 -0
- package/dist/IRocketChatAssets.js +3 -0
- package/dist/IRocketChatAssets.js.map +1 -0
- package/dist/IRocketChatRecord.d.ts +10 -0
- package/dist/IRocketChatRecord.js +3 -0
- package/dist/IRocketChatRecord.js.map +1 -0
- package/dist/IRole.d.ts +8 -0
- package/dist/IRole.js +3 -0
- package/dist/IRole.js.map +1 -0
- package/dist/IRoom.d.ts +243 -0
- package/dist/IRoom.js +46 -0
- package/dist/IRoom.js.map +1 -0
- package/dist/IServerEvent.d.ts +12 -0
- package/dist/IServerEvent.js +9 -0
- package/dist/IServerEvent.js.map +1 -0
- package/dist/IServerInfo.d.ts +22 -0
- package/dist/IServerInfo.js +3 -0
- package/dist/IServerInfo.js.map +1 -0
- package/dist/ISession.d.ts +78 -0
- package/dist/ISession.js +3 -0
- package/dist/ISession.js.map +1 -0
- package/dist/ISetting.d.ts +222 -0
- package/dist/ISetting.js +31 -0
- package/dist/ISetting.js.map +1 -0
- package/dist/ISmarshHistory.d.ts +5 -0
- package/dist/ISmarshHistory.js +3 -0
- package/dist/ISmarshHistory.js.map +1 -0
- package/dist/ISocketConnection.d.ts +14 -0
- package/dist/ISocketConnection.js +3 -0
- package/dist/ISocketConnection.js.map +1 -0
- package/dist/IStats.d.ts +216 -0
- package/dist/IStats.js +3 -0
- package/dist/IStats.js.map +1 -0
- package/dist/ISubscription.d.ts +63 -0
- package/dist/ISubscription.js +3 -0
- package/dist/ISubscription.js.map +1 -0
- package/dist/ITeam.d.ts +45 -0
- package/dist/ITeam.js +9 -0
- package/dist/ITeam.js.map +1 -0
- package/dist/IUpload.d.ts +49 -0
- package/dist/IUpload.js +3 -0
- package/dist/IUpload.js.map +1 -0
- package/dist/IUser.d.ts +198 -0
- package/dist/IUser.js +8 -0
- package/dist/IUser.js.map +1 -0
- package/dist/IUserAction.d.ts +12 -0
- package/dist/IUserAction.js +3 -0
- package/dist/IUserAction.js.map +1 -0
- package/dist/IUserDataFile.d.ts +2 -0
- package/dist/IUserDataFile.js +3 -0
- package/dist/IUserDataFile.js.map +1 -0
- package/dist/IUserSession.d.ts +12 -0
- package/dist/IUserSession.js +3 -0
- package/dist/IUserSession.js.map +1 -0
- package/dist/IUserStatus.d.ts +5 -0
- package/dist/IUserStatus.js +3 -0
- package/dist/IUserStatus.js.map +1 -0
- package/dist/IVideoConference.d.ts +75 -0
- package/dist/IVideoConference.js +24 -0
- package/dist/IVideoConference.js.map +1 -0
- package/dist/IVoipConnectorResult.d.ts +6 -0
- package/dist/IVoipConnectorResult.js +3 -0
- package/dist/IVoipConnectorResult.js.map +1 -0
- package/dist/IVoipExtension.d.ts +38 -0
- package/dist/IVoipExtension.js +22 -0
- package/dist/IVoipExtension.js.map +1 -0
- package/dist/IVoipServerConfig.d.ts +24 -0
- package/dist/IVoipServerConfig.js +11 -0
- package/dist/IVoipServerConfig.js.map +1 -0
- package/dist/IVoipServerConnectivityStatus.d.ts +4 -0
- package/dist/IVoipServerConnectivityStatus.js +3 -0
- package/dist/IVoipServerConnectivityStatus.js.map +1 -0
- package/dist/IWebdavAccount.d.ts +19 -0
- package/dist/IWebdavAccount.js +3 -0
- package/dist/IWebdavAccount.js.map +1 -0
- package/dist/MarketplaceRest.d.ts +15 -0
- package/dist/MarketplaceRest.js +3 -0
- package/dist/MarketplaceRest.js.map +1 -0
- package/dist/MessageReads.d.ts +8 -0
- package/dist/MessageReads.js +3 -0
- package/dist/MessageReads.js.map +1 -0
- package/dist/OmichannelRoutingConfig.d.ts +16 -0
- package/dist/OmichannelRoutingConfig.js +3 -0
- package/dist/OmichannelRoutingConfig.js.map +1 -0
- package/dist/ReadReceipt.d.ts +12 -0
- package/dist/ReadReceipt.js +3 -0
- package/dist/ReadReceipt.js.map +1 -0
- package/dist/RoomType.d.ts +1 -0
- package/dist/RoomType.js +3 -0
- package/dist/RoomType.js.map +1 -0
- package/dist/Serialized.d.ts +3 -0
- package/dist/Serialized.js +3 -0
- package/dist/Serialized.js.map +1 -0
- package/dist/SlashCommands/index.d.ts +45 -0
- package/dist/SlashCommands/index.js +3 -0
- package/dist/SlashCommands/index.js.map +1 -0
- package/dist/SpotlightUser.d.ts +10 -0
- package/dist/SpotlightUser.js +3 -0
- package/dist/SpotlightUser.js.map +1 -0
- package/dist/UIKit.d.ts +53 -0
- package/dist/UIKit.js +17 -0
- package/dist/UIKit.js.map +1 -0
- package/dist/UserStatus.d.ts +7 -0
- package/dist/UserStatus.js +12 -0
- package/dist/UserStatus.js.map +1 -0
- package/dist/VideoConferenceCapabilities.d.ts +5 -0
- package/dist/VideoConferenceCapabilities.js +3 -0
- package/dist/VideoConferenceCapabilities.js.map +1 -0
- package/dist/VideoConferenceOptions.d.ts +4 -0
- package/dist/VideoConferenceOptions.js +3 -0
- package/dist/VideoConferenceOptions.js.map +1 -0
- package/dist/ee/IAuditLog.d.ts +22 -0
- package/dist/ee/IAuditLog.js +3 -0
- package/dist/ee/IAuditLog.js.map +1 -0
- package/dist/ee/ILicense/ILicense.d.ts +19 -0
- package/dist/ee/ILicense/ILicense.js +3 -0
- package/dist/ee/ILicense/ILicense.js.map +1 -0
- package/dist/ee/ILicense/ILicenseTag.d.ts +4 -0
- package/dist/ee/ILicense/ILicenseTag.js +3 -0
- package/dist/ee/ILicense/ILicenseTag.js.map +1 -0
- package/dist/federation/IMatrixBridgedRoom.d.ts +5 -0
- package/dist/federation/IMatrixBridgedRoom.js +3 -0
- package/dist/federation/IMatrixBridgedRoom.js.map +1 -0
- package/dist/federation/IMatrixBridgedUser.d.ts +7 -0
- package/dist/federation/IMatrixBridgedUser.js +3 -0
- package/dist/federation/IMatrixBridgedUser.js.map +1 -0
- package/dist/federation/index.d.ts +3 -0
- package/dist/federation/index.js +20 -0
- package/dist/federation/index.js.map +1 -0
- package/dist/federation/v1/FederationKey.d.ts +5 -0
- package/dist/federation/v1/FederationKey.js +3 -0
- package/dist/federation/v1/FederationKey.js.map +1 -0
- package/dist/federation/v1/IFederationEvent.d.ts +12 -0
- package/dist/federation/v1/IFederationEvent.js +3 -0
- package/dist/federation/v1/IFederationEvent.js.map +1 -0
- package/dist/federation/v1/IFederationServer.d.ts +4 -0
- package/dist/federation/v1/IFederationServer.js +3 -0
- package/dist/federation/v1/IFederationServer.js.map +1 -0
- package/dist/federation/v1/events.d.ts +15 -0
- package/dist/federation/v1/events.js +21 -0
- package/dist/federation/v1/events.js.map +1 -0
- package/dist/federation/v1/index.d.ts +4 -0
- package/dist/federation/v1/index.js +6 -0
- package/dist/federation/v1/index.js.map +1 -0
- package/dist/import/IImport.d.ts +13 -0
- package/dist/import/IImport.js +3 -0
- package/dist/import/IImport.js.map +1 -0
- package/dist/import/IImportChannel.d.ts +14 -0
- package/dist/import/IImportChannel.js +3 -0
- package/dist/import/IImportChannel.js.map +1 -0
- package/dist/import/IImportFileData.d.ts +7 -0
- package/dist/import/IImportFileData.js +3 -0
- package/dist/import/IImportFileData.js.map +1 -0
- package/dist/import/IImportMessage.d.ts +45 -0
- package/dist/import/IImportMessage.js +3 -0
- package/dist/import/IImportMessage.js.map +1 -0
- package/dist/import/IImportProgress.d.ts +10 -0
- package/dist/import/IImportProgress.js +3 -0
- package/dist/import/IImportProgress.js.map +1 -0
- package/dist/import/IImportRecord.d.ts +31 -0
- package/dist/import/IImportRecord.js +3 -0
- package/dist/import/IImportRecord.js.map +1 -0
- package/dist/import/IImportUser.d.ts +16 -0
- package/dist/import/IImportUser.js +3 -0
- package/dist/import/IImportUser.js.map +1 -0
- package/dist/import/index.d.ts +7 -0
- package/dist/import/index.js +24 -0
- package/dist/import/index.js.map +1 -0
- package/dist/index.d.ts +119 -0
- package/dist/index.js +139 -0
- package/dist/index.js.map +1 -0
- package/dist/ldap/ILDAPCallback.d.ts +10 -0
- package/dist/ldap/ILDAPCallback.js +3 -0
- package/dist/ldap/ILDAPCallback.js.map +1 -0
- package/dist/ldap/ILDAPEntry.d.ts +3 -0
- package/dist/ldap/ILDAPEntry.js +3 -0
- package/dist/ldap/ILDAPEntry.js.map +1 -0
- package/dist/ldap/ILDAPLoginRequest.d.ts +6 -0
- package/dist/ldap/ILDAPLoginRequest.js +3 -0
- package/dist/ldap/ILDAPLoginRequest.js.map +1 -0
- package/dist/ldap/ILDAPLoginResult.d.ts +4 -0
- package/dist/ldap/ILDAPLoginResult.js +3 -0
- package/dist/ldap/ILDAPLoginResult.js.map +1 -0
- package/dist/ldap/ILDAPOptions.d.ts +30 -0
- package/dist/ldap/ILDAPOptions.js +3 -0
- package/dist/ldap/ILDAPOptions.js.map +1 -0
- package/dist/ldap/ILDAPUniqueIdentifierField.d.ts +4 -0
- package/dist/ldap/ILDAPUniqueIdentifierField.js +3 -0
- package/dist/ldap/ILDAPUniqueIdentifierField.js.map +1 -0
- package/dist/ldap/index.d.ts +6 -0
- package/dist/ldap/index.js +23 -0
- package/dist/ldap/index.js.map +1 -0
- package/dist/migrations/IControl.d.ts +7 -0
- package/dist/migrations/IControl.js +3 -0
- package/dist/migrations/IControl.js.map +1 -0
- package/dist/omnichannel/index.d.ts +2 -0
- package/dist/omnichannel/index.js +19 -0
- package/dist/omnichannel/index.js.map +1 -0
- package/dist/omnichannel/routing.d.ts +20 -0
- package/dist/omnichannel/routing.js +3 -0
- package/dist/omnichannel/routing.js.map +1 -0
- package/dist/omnichannel/sms.d.ts +59 -0
- package/dist/omnichannel/sms.js +12 -0
- package/dist/omnichannel/sms.js.map +1 -0
- package/dist/search/IMessageSearchProvider.d.ts +10 -0
- package/dist/search/IMessageSearchProvider.js +3 -0
- package/dist/search/IMessageSearchProvider.js.map +1 -0
- package/dist/search/IMessageSearchSuggestion.d.ts +3 -0
- package/dist/search/IMessageSearchSuggestion.js +3 -0
- package/dist/search/IMessageSearchSuggestion.js.map +1 -0
- package/dist/search/index.d.ts +2 -0
- package/dist/search/index.js +19 -0
- package/dist/search/index.js.map +1 -0
- package/dist/utils.d.ts +14 -0
- package/dist/utils.js +3 -0
- package/dist/utils.js.map +1 -0
- package/dist/voip/CallStates.d.ts +5 -0
- package/dist/voip/CallStates.js +7 -0
- package/dist/voip/CallStates.js.map +1 -0
- package/dist/voip/ConnectionState.d.ts +5 -0
- package/dist/voip/ConnectionState.js +7 -0
- package/dist/voip/ConnectionState.js.map +1 -0
- package/dist/voip/ICallDetails.d.ts +6 -0
- package/dist/voip/ICallDetails.js +3 -0
- package/dist/voip/ICallDetails.js.map +1 -0
- package/dist/voip/ICallerInfo.d.ts +5 -0
- package/dist/voip/ICallerInfo.js +3 -0
- package/dist/voip/ICallerInfo.js.map +1 -0
- package/dist/voip/IConnectionDelegate.d.ts +20 -0
- package/dist/voip/IConnectionDelegate.js +3 -0
- package/dist/voip/IConnectionDelegate.js.map +1 -0
- package/dist/voip/IEvents.d.ts +113 -0
- package/dist/voip/IEvents.js +26 -0
- package/dist/voip/IEvents.js.map +1 -0
- package/dist/voip/IQueueInfo.d.ts +8 -0
- package/dist/voip/IQueueInfo.js +7 -0
- package/dist/voip/IQueueInfo.js.map +1 -0
- package/dist/voip/IRegisterHandlerDelegate.d.ts +32 -0
- package/dist/voip/IRegisterHandlerDelegate.js +3 -0
- package/dist/voip/IRegisterHandlerDelegate.js.map +1 -0
- package/dist/voip/IRegistrationInfo.d.ts +19 -0
- package/dist/voip/IRegistrationInfo.js +9 -0
- package/dist/voip/IRegistrationInfo.js.map +1 -0
- package/dist/voip/IVoipClientEvents.d.ts +96 -0
- package/dist/voip/IVoipClientEvents.js +16 -0
- package/dist/voip/IVoipClientEvents.js.map +1 -0
- package/dist/voip/Operations.d.ts +15 -0
- package/dist/voip/Operations.js +20 -0
- package/dist/voip/Operations.js.map +1 -0
- package/dist/voip/SignalingSocketEvents.d.ts +8 -0
- package/dist/voip/SignalingSocketEvents.js +3 -0
- package/dist/voip/SignalingSocketEvents.js.map +1 -0
- package/dist/voip/UserState.d.ts +5 -0
- package/dist/voip/UserState.js +12 -0
- package/dist/voip/UserState.js.map +1 -0
- package/dist/voip/VoIPUserConfiguration.d.ts +50 -0
- package/dist/voip/VoIPUserConfiguration.js +3 -0
- package/dist/voip/VoIPUserConfiguration.js.map +1 -0
- package/dist/voip/VoIpCallerInfo.d.ts +15 -0
- package/dist/voip/VoIpCallerInfo.js +3 -0
- package/dist/voip/VoIpCallerInfo.js.map +1 -0
- package/dist/voip/VoipClientEvents.d.ts +8 -0
- package/dist/voip/VoipClientEvents.js +13 -0
- package/dist/voip/VoipClientEvents.js.map +1 -0
- package/dist/voip/VoipEvents.d.ts +21 -0
- package/dist/voip/VoipEvents.js +3 -0
- package/dist/voip/VoipEvents.js.map +1 -0
- package/dist/voip/WorkflowTypes.d.ts +10 -0
- package/dist/voip/WorkflowTypes.js +15 -0
- package/dist/voip/WorkflowTypes.js.map +1 -0
- package/dist/voip/index.d.ts +18 -0
- package/dist/voip/index.js +35 -0
- package/dist/voip/index.js.map +1 -0
- package/package.json +1 -1
@@ -0,0 +1,33 @@
|
|
1
|
+
export interface ILivechatDepartment {
|
2
|
+
_id: string;
|
3
|
+
name: string;
|
4
|
+
enabled: boolean;
|
5
|
+
description?: string;
|
6
|
+
showOnRegistration: boolean;
|
7
|
+
showOnOfflineForm: boolean;
|
8
|
+
requestTagBeforeClosingChat?: boolean;
|
9
|
+
email: string;
|
10
|
+
chatClosingTags?: string[];
|
11
|
+
offlineMessageChannelName: string;
|
12
|
+
numAgents: number;
|
13
|
+
_updatedAt?: Date;
|
14
|
+
businessHourId?: string;
|
15
|
+
fallbackForwardDepartment?: string;
|
16
|
+
archived?: boolean;
|
17
|
+
departmentsAllowedToForward?: string[];
|
18
|
+
maxNumberSimultaneousChat?: number;
|
19
|
+
ancestors?: string[];
|
20
|
+
[k: string]: any;
|
21
|
+
}
|
22
|
+
export type LivechatDepartmentDTO = {
|
23
|
+
enabled: boolean;
|
24
|
+
name: string;
|
25
|
+
description?: string | undefined;
|
26
|
+
showOnRegistration: boolean;
|
27
|
+
email: string;
|
28
|
+
showOnOfflineForm: boolean;
|
29
|
+
requestTagBeforeClosingChat?: boolean | undefined;
|
30
|
+
chatClosingTags?: string[] | undefined;
|
31
|
+
fallbackForwardDepartment?: string | undefined;
|
32
|
+
departmentsAllowedToForward?: string[] | undefined;
|
33
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ILivechatDepartment.js","sourceRoot":"","sources":["../src/ILivechatDepartment.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ILivechatDepartmentAgents.js","sourceRoot":"","sources":["../src/ILivechatDepartmentAgents.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type { IRocketChatRecord } from './IRocketChatRecord';
|
2
|
+
/** @deprecated */
|
3
|
+
export interface ILivechatDepartmentRecord extends IRocketChatRecord {
|
4
|
+
_id: string;
|
5
|
+
name: string;
|
6
|
+
enabled: boolean;
|
7
|
+
description?: string;
|
8
|
+
showOnRegistration: boolean;
|
9
|
+
showOnOfflineForm: boolean;
|
10
|
+
requestTagBeforeClosingChat?: boolean;
|
11
|
+
email: string;
|
12
|
+
chatClosingTags?: string[];
|
13
|
+
offlineMessageChannelName: string;
|
14
|
+
numAgents: number;
|
15
|
+
businessHourId?: string;
|
16
|
+
fallbackForwardDepartment?: string;
|
17
|
+
departmentsAllowedToForward?: string[];
|
18
|
+
[k: string]: any;
|
19
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ILivechatDepartmentRecord.js","sourceRoot":"","sources":["../src/ILivechatDepartmentRecord.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ILivechatMonitor.js","sourceRoot":"","sources":["../src/ILivechatMonitor.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ILivechatMonitorRecord.js","sourceRoot":"","sources":["../src/ILivechatMonitorRecord.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { IRocketChatRecord } from './IRocketChatRecord';
|
2
|
+
export declare enum LivechatPriorityWeight {
|
3
|
+
LOWEST = 5,
|
4
|
+
LOW = 4,
|
5
|
+
MEDIUM = 3,
|
6
|
+
HIGH = 2,
|
7
|
+
HIGHEST = 1,
|
8
|
+
NOT_SPECIFIED = 99
|
9
|
+
}
|
10
|
+
export interface ILivechatPriority extends IRocketChatRecord {
|
11
|
+
name?: string;
|
12
|
+
i18n: string;
|
13
|
+
sortItem: LivechatPriorityWeight;
|
14
|
+
dirty: boolean;
|
15
|
+
}
|
16
|
+
export type ILivechatPriorityData = Omit<ILivechatPriority, '_id' | '_updatedAt'>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.LivechatPriorityWeight = void 0;
|
4
|
+
var LivechatPriorityWeight;
|
5
|
+
(function (LivechatPriorityWeight) {
|
6
|
+
LivechatPriorityWeight[LivechatPriorityWeight["LOWEST"] = 5] = "LOWEST";
|
7
|
+
LivechatPriorityWeight[LivechatPriorityWeight["LOW"] = 4] = "LOW";
|
8
|
+
LivechatPriorityWeight[LivechatPriorityWeight["MEDIUM"] = 3] = "MEDIUM";
|
9
|
+
LivechatPriorityWeight[LivechatPriorityWeight["HIGH"] = 2] = "HIGH";
|
10
|
+
LivechatPriorityWeight[LivechatPriorityWeight["HIGHEST"] = 1] = "HIGHEST";
|
11
|
+
LivechatPriorityWeight[LivechatPriorityWeight["NOT_SPECIFIED"] = 99] = "NOT_SPECIFIED";
|
12
|
+
})(LivechatPriorityWeight || (exports.LivechatPriorityWeight = LivechatPriorityWeight = {}));
|
13
|
+
//# sourceMappingURL=ILivechatPriority.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ILivechatPriority.js","sourceRoot":"","sources":["../src/ILivechatPriority.ts"],"names":[],"mappings":";;;AAEA,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IACjC,uEAAU,CAAA;IACV,iEAAO,CAAA;IACP,uEAAU,CAAA;IACV,mEAAQ,CAAA;IACR,yEAAW,CAAA;IACX,sFAAkB,CAAA;AACnB,CAAC,EAPW,sBAAsB,sCAAtB,sBAAsB,QAOjC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ILivechatTag.js","sourceRoot":"","sources":["../src/ILivechatTag.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ILivechatTagRecord.js","sourceRoot":"","sources":["../src/ILivechatTagRecord.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import type { IRocketChatRecord } from './IRocketChatRecord';
|
2
|
+
export declare enum ILivechatTriggerType {
|
3
|
+
TIME_ON_SITE = "time-on-site",
|
4
|
+
PAGE_URL = "page-url",
|
5
|
+
CHAT_OPENED_BY_VISITOR = "chat-opened-by-visitor"
|
6
|
+
}
|
7
|
+
export interface ILivechatTriggerCondition {
|
8
|
+
name: ILivechatTriggerType;
|
9
|
+
value?: string | number;
|
10
|
+
}
|
11
|
+
export interface ILivechatTriggerAction {
|
12
|
+
name: 'send-message';
|
13
|
+
params?: {
|
14
|
+
sender: 'queue' | 'custom';
|
15
|
+
msg: string;
|
16
|
+
name: string;
|
17
|
+
};
|
18
|
+
}
|
19
|
+
export interface ILivechatTrigger extends IRocketChatRecord {
|
20
|
+
name: string;
|
21
|
+
description: string;
|
22
|
+
enabled: boolean;
|
23
|
+
runOnce: boolean;
|
24
|
+
conditions: ILivechatTriggerCondition[];
|
25
|
+
actions: ILivechatTriggerAction[];
|
26
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ILivechatTriggerType = void 0;
|
4
|
+
var ILivechatTriggerType;
|
5
|
+
(function (ILivechatTriggerType) {
|
6
|
+
ILivechatTriggerType["TIME_ON_SITE"] = "time-on-site";
|
7
|
+
ILivechatTriggerType["PAGE_URL"] = "page-url";
|
8
|
+
ILivechatTriggerType["CHAT_OPENED_BY_VISITOR"] = "chat-opened-by-visitor";
|
9
|
+
})(ILivechatTriggerType || (exports.ILivechatTriggerType = ILivechatTriggerType = {}));
|
10
|
+
//# sourceMappingURL=ILivechatTrigger.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ILivechatTrigger.js","sourceRoot":"","sources":["../src/ILivechatTrigger.ts"],"names":[],"mappings":";;;AAEA,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC/B,qDAA6B,CAAA;IAC7B,6CAAqB,CAAA;IACrB,yEAAiD,CAAA;AAClD,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ILivechatUnitMonitor.js","sourceRoot":"","sources":["../src/ILivechatUnitMonitor.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import type { IRocketChatRecord } from './IRocketChatRecord';
|
2
|
+
export interface IVisitorPhone {
|
3
|
+
phoneNumber: string;
|
4
|
+
}
|
5
|
+
export interface IVisitorLastChat {
|
6
|
+
_id: string;
|
7
|
+
ts: string;
|
8
|
+
}
|
9
|
+
export interface ILivechatVisitorConnectionData {
|
10
|
+
httpHeaders: {
|
11
|
+
[k: string]: string;
|
12
|
+
};
|
13
|
+
clientAddress: string;
|
14
|
+
}
|
15
|
+
export interface IVisitorEmail {
|
16
|
+
address: string;
|
17
|
+
}
|
18
|
+
interface ILivechatData {
|
19
|
+
[k: string]: unknown;
|
20
|
+
}
|
21
|
+
export interface ILivechatVisitor extends IRocketChatRecord {
|
22
|
+
username: string;
|
23
|
+
ts: Date;
|
24
|
+
token: string;
|
25
|
+
department?: string;
|
26
|
+
name?: string;
|
27
|
+
phone?: IVisitorPhone[] | null;
|
28
|
+
lastChat?: IVisitorLastChat;
|
29
|
+
userAgent?: string;
|
30
|
+
ip?: string;
|
31
|
+
host?: string;
|
32
|
+
visitorEmails?: IVisitorEmail[];
|
33
|
+
status?: 'loading' | 'online' | 'busy' | 'away' | 'offline';
|
34
|
+
lastAgent?: {
|
35
|
+
username: string;
|
36
|
+
agentId: string;
|
37
|
+
ts: Date;
|
38
|
+
};
|
39
|
+
livechatData?: ILivechatData;
|
40
|
+
contactManager?: {
|
41
|
+
username: string;
|
42
|
+
};
|
43
|
+
}
|
44
|
+
export interface ILivechatVisitorDTO {
|
45
|
+
id?: string;
|
46
|
+
token: string;
|
47
|
+
name?: string;
|
48
|
+
email?: string;
|
49
|
+
department?: string;
|
50
|
+
phone?: string;
|
51
|
+
username?: string;
|
52
|
+
customFields?: {
|
53
|
+
key: string;
|
54
|
+
value: string;
|
55
|
+
overwrite: boolean;
|
56
|
+
}[];
|
57
|
+
connectionData?: {
|
58
|
+
httpHeaders: Record<string, string | string[] | undefined>;
|
59
|
+
};
|
60
|
+
}
|
61
|
+
export declare const isILivechatVisitor: (a: any) => a is ILivechatVisitor;
|
62
|
+
export {};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isILivechatVisitor = void 0;
|
4
|
+
const isILivechatVisitor = (a) => typeof a?.token === 'string';
|
5
|
+
exports.isILivechatVisitor = isILivechatVisitor;
|
6
|
+
//# sourceMappingURL=ILivechatVisitor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ILivechatVisitor.js","sourceRoot":"","sources":["../src/ILivechatVisitor.ts"],"names":[],"mappings":";;;AAoEO,MAAM,kBAAkB,GAAG,CAAC,CAAM,EAAyB,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,KAAK,QAAQ,CAAC;AAArF,QAAA,kBAAkB,sBAAmE"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ILoginServiceConfiguration.js","sourceRoot":"","sources":["../src/ILoginServiceConfiguration.ts"],"names":[],"mappings":""}
|
package/dist/ILogs.d.ts
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
export interface ILogEntry {
|
2
|
+
args: string[];
|
3
|
+
caller: string;
|
4
|
+
severity: string;
|
5
|
+
timestamp: string;
|
6
|
+
}
|
7
|
+
export interface ILogItem {
|
8
|
+
appId: string;
|
9
|
+
endTime: string;
|
10
|
+
entries: ILogEntry[];
|
11
|
+
instanceId: string;
|
12
|
+
method: string;
|
13
|
+
startTime: string;
|
14
|
+
totalTime: number;
|
15
|
+
_createdAt: string;
|
16
|
+
_id: string;
|
17
|
+
_updatedAt: string;
|
18
|
+
}
|
package/dist/ILogs.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ILogs.js","sourceRoot":"","sources":["../src/ILogs.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,249 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import type { UrlWithStringQuery } from 'url';
|
3
|
+
import type Icons from '@rocket.chat/icons';
|
4
|
+
import type { MessageSurfaceLayout } from '@rocket.chat/ui-kit';
|
5
|
+
import type { Root } from '@rocket.chat/message-parser';
|
6
|
+
import type { IRocketChatRecord } from '../IRocketChatRecord';
|
7
|
+
import type { IUser } from '../IUser';
|
8
|
+
import type { IRoom, RoomID } from '../IRoom';
|
9
|
+
import type { MessageAttachment } from './MessageAttachment/MessageAttachment';
|
10
|
+
import type { FileProp } from './MessageAttachment/Files/FileProp';
|
11
|
+
import type { ILivechatVisitor } from '../ILivechatVisitor';
|
12
|
+
import type { IOmnichannelServiceLevelAgreements } from '../IOmnichannelServiceLevelAgreements';
|
13
|
+
import type { ILivechatPriority } from '../ILivechatPriority';
|
14
|
+
type MentionType = 'user' | 'team';
|
15
|
+
type MessageUrl = {
|
16
|
+
url: string;
|
17
|
+
source?: string;
|
18
|
+
meta: Record<string, string>;
|
19
|
+
headers?: {
|
20
|
+
contentLength: string;
|
21
|
+
} | {
|
22
|
+
contentType: string;
|
23
|
+
} | {
|
24
|
+
contentLength: string;
|
25
|
+
contentType: string;
|
26
|
+
};
|
27
|
+
ignoreParse?: boolean;
|
28
|
+
parsedUrl?: Pick<UrlWithStringQuery, 'host' | 'hash' | 'pathname' | 'protocol' | 'port' | 'query' | 'search' | 'hostname'>;
|
29
|
+
};
|
30
|
+
type VoipMessageTypesValues = 'voip-call-started' | 'voip-call-declined' | 'voip-call-on-hold' | 'voip-call-unhold' | 'voip-call-ended' | 'voip-call-duration' | 'voip-call-wrapup' | 'voip-call-ended-unexpectedly';
|
31
|
+
type TeamMessageTypes = 'removed-user-from-team' | 'added-user-to-team' | 'ult' | 'user-converted-to-team' | 'user-converted-to-channel' | 'user-removed-room-from-team' | 'user-deleted-room-from-team' | 'user-added-room-to-team' | 'ujt';
|
32
|
+
type LivechatMessageTypes = 'livechat_navigation_history' | 'livechat_transfer_history' | 'omnichannel_priority_change_history' | 'omnichannel_sla_change_history' | 'livechat_transcript_history' | 'livechat_video_call' | 'livechat_transfer_history_fallback' | 'livechat-close' | 'livechat_webrtc_video_call' | 'livechat-started';
|
33
|
+
type OmnichannelTypesValues = 'omnichannel_placed_chat_on_hold' | 'omnichannel_on_hold_chat_resumed';
|
34
|
+
type OtrMessageTypeValues = 'otr' | 'otr-ack';
|
35
|
+
export type OtrSystemMessages = 'user_joined_otr' | 'user_requested_otr_key_refresh' | 'user_key_refreshed_successfully';
|
36
|
+
export type MessageTypesValues = 'e2e' | 'uj' | 'ul' | 'ru' | 'au' | 'mute_unmute' | 'r' | 'ut' | 'wm' | 'rm' | 'subscription-role-added' | 'subscription-role-removed' | 'room-archived' | 'room-unarchived' | 'room_changed_privacy' | 'room_changed_description' | 'room_changed_announcement' | 'room_changed_avatar' | 'room_changed_topic' | 'room_e2e_enabled' | 'room_e2e_disabled' | 'user-muted' | 'user-unmuted' | 'room-removed-read-only' | 'room-set-read-only' | 'room-allowed-reacting' | 'room-disallowed-reacting' | 'command' | 'videoconf' | 'message_pinned' | 'new-moderator' | 'moderator-removed' | 'new-owner' | 'owner-removed' | 'new-leader' | 'leader-removed' | 'discussion-created' | LivechatMessageTypes | TeamMessageTypes | VoipMessageTypesValues | OmnichannelTypesValues | OtrMessageTypeValues | OtrSystemMessages;
|
37
|
+
export type TokenType = 'code' | 'inlinecode' | 'bold' | 'italic' | 'strike' | 'link';
|
38
|
+
export type Token = {
|
39
|
+
token: string;
|
40
|
+
text: string;
|
41
|
+
type?: TokenType;
|
42
|
+
noHtml?: string;
|
43
|
+
} & TokenExtra;
|
44
|
+
export type TokenExtra = {
|
45
|
+
highlight?: boolean;
|
46
|
+
noHtml?: string;
|
47
|
+
};
|
48
|
+
export interface IMessage extends IRocketChatRecord {
|
49
|
+
rid: RoomID;
|
50
|
+
msg: string;
|
51
|
+
tmid?: string;
|
52
|
+
tshow?: boolean;
|
53
|
+
ts: Date;
|
54
|
+
mentions?: ({
|
55
|
+
type: MentionType;
|
56
|
+
} & Pick<IUser, '_id' | 'username' | 'name'>)[];
|
57
|
+
groupable?: boolean;
|
58
|
+
channels?: Pick<IRoom, '_id' | 'name'>[];
|
59
|
+
u: Required<Pick<IUser, '_id' | 'username'>> & Pick<IUser, 'name'>;
|
60
|
+
blocks?: MessageSurfaceLayout;
|
61
|
+
alias?: string;
|
62
|
+
md?: Root;
|
63
|
+
_hidden?: boolean;
|
64
|
+
imported?: boolean;
|
65
|
+
replies?: IUser['_id'][];
|
66
|
+
location?: {
|
67
|
+
type: 'Point';
|
68
|
+
coordinates: [number, number];
|
69
|
+
};
|
70
|
+
starred?: {
|
71
|
+
_id: IUser['_id'];
|
72
|
+
}[];
|
73
|
+
pinned?: boolean;
|
74
|
+
pinnedAt?: Date;
|
75
|
+
pinnedBy?: Pick<IUser, '_id' | 'username'>;
|
76
|
+
unread?: boolean;
|
77
|
+
temp?: boolean;
|
78
|
+
drid?: RoomID;
|
79
|
+
tlm?: Date;
|
80
|
+
dcount?: number;
|
81
|
+
tcount?: number;
|
82
|
+
t?: MessageTypesValues;
|
83
|
+
e2e?: 'pending' | 'done';
|
84
|
+
otrAck?: string;
|
85
|
+
urls?: MessageUrl[];
|
86
|
+
/** @deprecated Deprecated */
|
87
|
+
actionLinks?: {
|
88
|
+
icon: keyof typeof Icons;
|
89
|
+
i18nLabel: unknown;
|
90
|
+
label: string;
|
91
|
+
method_id: string;
|
92
|
+
params: string;
|
93
|
+
}[];
|
94
|
+
/** @deprecated Deprecated in favor of files */
|
95
|
+
file?: FileProp;
|
96
|
+
fileUpload?: {
|
97
|
+
publicFilePath: string;
|
98
|
+
type?: string;
|
99
|
+
size?: number;
|
100
|
+
};
|
101
|
+
files?: FileProp[];
|
102
|
+
attachments?: MessageAttachment[];
|
103
|
+
reactions?: {
|
104
|
+
[key: string]: {
|
105
|
+
names?: (string | undefined)[];
|
106
|
+
usernames: string[];
|
107
|
+
federationReactionEventIds?: Record<string, string>;
|
108
|
+
};
|
109
|
+
};
|
110
|
+
private?: boolean;
|
111
|
+
bot?: boolean;
|
112
|
+
sentByEmail?: boolean;
|
113
|
+
webRtcCallEndTs?: Date;
|
114
|
+
role?: string;
|
115
|
+
avatar?: string;
|
116
|
+
emoji?: string;
|
117
|
+
tokens?: Token[];
|
118
|
+
html?: string;
|
119
|
+
token?: string;
|
120
|
+
federation?: {
|
121
|
+
eventId: string;
|
122
|
+
};
|
123
|
+
slaData?: {
|
124
|
+
definedBy: Pick<IUser, '_id' | 'username'>;
|
125
|
+
sla?: Pick<IOmnichannelServiceLevelAgreements, 'name'>;
|
126
|
+
};
|
127
|
+
priorityData?: {
|
128
|
+
definedBy: Pick<IUser, '_id' | 'username'>;
|
129
|
+
priority?: Pick<ILivechatPriority, 'name' | 'i18n'>;
|
130
|
+
};
|
131
|
+
}
|
132
|
+
export type MessageSystem = {
|
133
|
+
t: 'system';
|
134
|
+
};
|
135
|
+
export interface IEditedMessage extends IMessage {
|
136
|
+
editedAt: Date;
|
137
|
+
editedBy: Pick<IUser, '_id' | 'username'>;
|
138
|
+
}
|
139
|
+
export declare const isEditedMessage: (message: IMessage) => message is IEditedMessage;
|
140
|
+
export declare const isDeletedMessage: (message: IMessage) => message is IEditedMessage;
|
141
|
+
export declare const isMessageFromMatrixFederation: (message: IMessage) => boolean;
|
142
|
+
export interface ITranslatedMessage extends IMessage {
|
143
|
+
translations: {
|
144
|
+
[key: string]: string;
|
145
|
+
} & {
|
146
|
+
original?: string;
|
147
|
+
};
|
148
|
+
translationProvider: string;
|
149
|
+
autoTranslateShowInverse?: boolean;
|
150
|
+
autoTranslateFetching?: boolean;
|
151
|
+
}
|
152
|
+
export declare const isTranslatedMessage: (message: IMessage) => message is ITranslatedMessage;
|
153
|
+
export interface IThreadMainMessage extends IMessage {
|
154
|
+
tcount: number;
|
155
|
+
tlm: Date;
|
156
|
+
replies: IUser['_id'][];
|
157
|
+
}
|
158
|
+
export interface IThreadMessage extends IMessage {
|
159
|
+
tmid: string;
|
160
|
+
}
|
161
|
+
export declare const isThreadMainMessage: (message: IMessage) => message is IThreadMainMessage;
|
162
|
+
export declare const isThreadMessage: (message: IMessage) => message is IThreadMessage;
|
163
|
+
export interface IDiscussionMessage extends IMessage {
|
164
|
+
drid: string;
|
165
|
+
dlm?: Date;
|
166
|
+
dcount: number;
|
167
|
+
}
|
168
|
+
export declare const isDiscussionMessage: (message: IMessage) => message is IDiscussionMessage;
|
169
|
+
export interface IPrivateMessage extends IMessage {
|
170
|
+
private: true;
|
171
|
+
}
|
172
|
+
export declare const isPrivateMessage: (message: IMessage) => message is IPrivateMessage;
|
173
|
+
export interface IMessageReactionsNormalized extends IMessage {
|
174
|
+
reactions: {
|
175
|
+
[key: string]: {
|
176
|
+
usernames: Required<IUser['_id']>[];
|
177
|
+
names: Required<IUser>['name'][];
|
178
|
+
};
|
179
|
+
};
|
180
|
+
}
|
181
|
+
export declare const isMessageReactionsNormalized: (message: IMessage) => message is IMessageReactionsNormalized;
|
182
|
+
export interface IOmnichannelSystemMessage extends IMessage {
|
183
|
+
navigation?: {
|
184
|
+
page: {
|
185
|
+
title: string;
|
186
|
+
location: {
|
187
|
+
href: string;
|
188
|
+
};
|
189
|
+
token?: string;
|
190
|
+
};
|
191
|
+
};
|
192
|
+
transferData?: {
|
193
|
+
comment: string;
|
194
|
+
transferredBy: {
|
195
|
+
name?: string;
|
196
|
+
username: string;
|
197
|
+
};
|
198
|
+
transferredTo: {
|
199
|
+
name?: string;
|
200
|
+
username: string;
|
201
|
+
};
|
202
|
+
nextDepartment?: {
|
203
|
+
_id: string;
|
204
|
+
name?: string;
|
205
|
+
};
|
206
|
+
scope: 'department' | 'agent' | 'queue';
|
207
|
+
};
|
208
|
+
requestData?: {
|
209
|
+
type: 'visitor' | 'user';
|
210
|
+
visitor?: ILivechatVisitor;
|
211
|
+
user?: Pick<IUser, '_id' | 'name' | 'username' | 'utcOffset'> | null;
|
212
|
+
};
|
213
|
+
webRtcCallEndTs?: Date;
|
214
|
+
comment?: string;
|
215
|
+
}
|
216
|
+
export type IVoipMessage = IMessage & {
|
217
|
+
voipData: {
|
218
|
+
callDuration?: number;
|
219
|
+
callStarted?: string;
|
220
|
+
callWaitingTime?: string;
|
221
|
+
};
|
222
|
+
};
|
223
|
+
export interface IMessageDiscussion extends IMessage {
|
224
|
+
drid: RoomID;
|
225
|
+
}
|
226
|
+
export declare const isMessageDiscussion: (message: IMessage) => message is IMessageDiscussion;
|
227
|
+
export type IMessageInbox = IMessage & {
|
228
|
+
email?: {
|
229
|
+
references?: string[];
|
230
|
+
messageId?: string;
|
231
|
+
thread?: string[];
|
232
|
+
};
|
233
|
+
};
|
234
|
+
export declare const isIMessageInbox: (message: IMessage) => message is IMessageInbox;
|
235
|
+
export declare const isVoipMessage: (message: IMessage) => message is IVoipMessage;
|
236
|
+
export type IE2EEMessage = IMessage & {
|
237
|
+
t: 'e2e';
|
238
|
+
e2e: 'pending' | 'done';
|
239
|
+
};
|
240
|
+
export type IOTRMessage = IMessage & {
|
241
|
+
t: 'otr' | 'otr-ack';
|
242
|
+
};
|
243
|
+
export type IVideoConfMessage = IMessage & {
|
244
|
+
t: 'videoconf';
|
245
|
+
};
|
246
|
+
export declare const isE2EEMessage: (message: IMessage) => message is IE2EEMessage;
|
247
|
+
export declare const isOTRMessage: (message: IMessage) => message is IOTRMessage;
|
248
|
+
export declare const isVideoConfMessage: (message: IMessage) => message is IVideoConfMessage;
|
249
|
+
export {};
|