@rocket.chat/core-typings 6.3.0-rc.0 → 6.3.0-rc.1
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 +8 -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 @@
|
|
1
|
+
{"version":3,"file":"IRocketChatRecord.js","sourceRoot":"","sources":["../src/IRocketChatRecord.ts"],"names":[],"mappings":""}
|
package/dist/IRole.d.ts
ADDED
package/dist/IRole.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IRole.js","sourceRoot":"","sources":["../src/IRole.ts"],"names":[],"mappings":""}
|
package/dist/IRoom.d.ts
ADDED
@@ -0,0 +1,243 @@
|
|
1
|
+
import type { ILivechatPriority } from './ILivechatPriority';
|
2
|
+
import type { IOmnichannelServiceLevelAgreements } from './IOmnichannelServiceLevelAgreements';
|
3
|
+
import type { IRocketChatRecord } from './IRocketChatRecord';
|
4
|
+
import type { IMessage, MessageTypesValues } from './IMessage';
|
5
|
+
import type { IUser, Username } from './IUser';
|
6
|
+
import type { RoomType } from './RoomType';
|
7
|
+
import type { IVisitor } from './IInquiry';
|
8
|
+
type CallStatus = 'ringing' | 'ended' | 'declined' | 'ongoing';
|
9
|
+
export type RoomID = string;
|
10
|
+
export type ChannelName = string;
|
11
|
+
interface IRequestTranscript {
|
12
|
+
email: string;
|
13
|
+
subject: string;
|
14
|
+
requestedAt: Date;
|
15
|
+
requestedBy: Pick<IUser, '_id' | 'username' | 'name' | 'utcOffset'>;
|
16
|
+
}
|
17
|
+
export interface IRoom extends IRocketChatRecord {
|
18
|
+
_id: RoomID;
|
19
|
+
t: RoomType;
|
20
|
+
name?: string;
|
21
|
+
fname?: string;
|
22
|
+
msgs: number;
|
23
|
+
default?: true;
|
24
|
+
broadcast?: true;
|
25
|
+
featured?: true;
|
26
|
+
announcement?: string;
|
27
|
+
joinCodeRequired?: boolean;
|
28
|
+
announcementDetails?: {
|
29
|
+
style?: string;
|
30
|
+
};
|
31
|
+
encrypted?: boolean;
|
32
|
+
topic?: string;
|
33
|
+
reactWhenReadOnly?: boolean;
|
34
|
+
sysMes?: MessageTypesValues[] | boolean;
|
35
|
+
u: Pick<IUser, '_id' | 'username' | 'name'>;
|
36
|
+
uids?: Array<string>;
|
37
|
+
lastMessage?: IMessage;
|
38
|
+
lm?: Date;
|
39
|
+
usersCount: number;
|
40
|
+
callStatus?: CallStatus;
|
41
|
+
webRtcCallStartTime?: Date;
|
42
|
+
servedBy?: {
|
43
|
+
_id: string;
|
44
|
+
};
|
45
|
+
streamingOptions?: {
|
46
|
+
id?: string;
|
47
|
+
type?: string;
|
48
|
+
url?: string;
|
49
|
+
thumbnail?: string;
|
50
|
+
isAudioOnly?: boolean;
|
51
|
+
message?: string;
|
52
|
+
};
|
53
|
+
prid?: string;
|
54
|
+
avatarETag?: string;
|
55
|
+
teamMain?: boolean;
|
56
|
+
teamId?: string;
|
57
|
+
teamDefault?: boolean;
|
58
|
+
open?: boolean;
|
59
|
+
autoTranslateLanguage?: string;
|
60
|
+
autoTranslate?: boolean;
|
61
|
+
unread?: number;
|
62
|
+
alert?: boolean;
|
63
|
+
hideUnreadStatus?: boolean;
|
64
|
+
hideMentionStatus?: boolean;
|
65
|
+
muted?: string[];
|
66
|
+
unmuted?: string[];
|
67
|
+
usernames?: string[];
|
68
|
+
ts?: Date;
|
69
|
+
cl?: boolean;
|
70
|
+
ro?: boolean;
|
71
|
+
favorite?: boolean;
|
72
|
+
archived?: boolean;
|
73
|
+
description?: string;
|
74
|
+
createdOTR?: boolean;
|
75
|
+
e2eKeyId?: string;
|
76
|
+
federated?: boolean;
|
77
|
+
customFields?: Record<string, any>;
|
78
|
+
channel?: {
|
79
|
+
_id: string;
|
80
|
+
};
|
81
|
+
}
|
82
|
+
export declare const isRoomWithJoinCode: (room: Partial<IRoom>) => room is IRoomWithJoinCode;
|
83
|
+
export interface IRoomWithJoinCode extends IRoom {
|
84
|
+
joinCodeRequired: true;
|
85
|
+
joinCode: string;
|
86
|
+
}
|
87
|
+
export interface IRoomFederated extends IRoom {
|
88
|
+
federated: true;
|
89
|
+
}
|
90
|
+
export declare const isRoomFederated: (room: Partial<IRoom>) => room is IRoomFederated;
|
91
|
+
export interface ICreatedRoom extends IRoom {
|
92
|
+
rid: string;
|
93
|
+
inserted: boolean;
|
94
|
+
}
|
95
|
+
export interface ITeamRoom extends IRoom {
|
96
|
+
teamMain: boolean;
|
97
|
+
teamId: string;
|
98
|
+
}
|
99
|
+
export declare const isTeamRoom: (room: Partial<IRoom>) => room is ITeamRoom;
|
100
|
+
export declare const isPrivateTeamRoom: (room: Partial<IRoom>) => room is ITeamRoom;
|
101
|
+
export declare const isPublicTeamRoom: (room: Partial<IRoom>) => room is ITeamRoom;
|
102
|
+
export declare const isDiscussion: (room: Partial<IRoom>) => room is IRoom;
|
103
|
+
export declare const isPrivateDiscussion: (room: Partial<IRoom>) => room is IRoom;
|
104
|
+
export declare const isPublicDiscussion: (room: Partial<IRoom>) => room is IRoom;
|
105
|
+
export declare const isPublicRoom: (room: Partial<IRoom>) => room is IRoom;
|
106
|
+
export interface IDirectMessageRoom extends Omit<IRoom, 'default' | 'featured' | 'u' | 'name'> {
|
107
|
+
t: 'd';
|
108
|
+
uids: Array<string>;
|
109
|
+
usernames: Array<Username>;
|
110
|
+
}
|
111
|
+
export declare const isDirectMessageRoom: (room: Partial<IRoom> | IDirectMessageRoom) => room is IDirectMessageRoom;
|
112
|
+
export declare const isMultipleDirectMessageRoom: (room: IRoom | IDirectMessageRoom) => room is IDirectMessageRoom;
|
113
|
+
export declare enum OmnichannelSourceType {
|
114
|
+
WIDGET = "widget",
|
115
|
+
EMAIL = "email",
|
116
|
+
SMS = "sms",
|
117
|
+
APP = "app",
|
118
|
+
API = "api",
|
119
|
+
OTHER = "other"
|
120
|
+
}
|
121
|
+
export interface IOmnichannelGenericRoom extends Omit<IRoom, 'default' | 'featured' | 'broadcast' | ''> {
|
122
|
+
t: 'l' | 'v';
|
123
|
+
v: IVisitor;
|
124
|
+
email?: {
|
125
|
+
inbox: string;
|
126
|
+
thread: string[];
|
127
|
+
replyTo: string;
|
128
|
+
subject: string;
|
129
|
+
};
|
130
|
+
source: {
|
131
|
+
type: OmnichannelSourceType;
|
132
|
+
id?: string;
|
133
|
+
alias?: string;
|
134
|
+
label?: string;
|
135
|
+
sidebarIcon?: string;
|
136
|
+
defaultIcon?: string;
|
137
|
+
};
|
138
|
+
transcriptRequest?: IRequestTranscript;
|
139
|
+
servedBy?: {
|
140
|
+
_id: string;
|
141
|
+
ts: Date;
|
142
|
+
username: IUser['username'];
|
143
|
+
};
|
144
|
+
onHold?: boolean;
|
145
|
+
departmentId?: string;
|
146
|
+
lastMessage?: IMessage & {
|
147
|
+
token?: string;
|
148
|
+
};
|
149
|
+
tags?: string[];
|
150
|
+
closedAt?: Date;
|
151
|
+
metrics?: {
|
152
|
+
serviceTimeDuration?: number;
|
153
|
+
};
|
154
|
+
waitingResponse: any;
|
155
|
+
responseBy: any;
|
156
|
+
livechatData: any;
|
157
|
+
queuedAt?: Date;
|
158
|
+
status?: 'queued' | 'taken' | 'ready';
|
159
|
+
ts: Date;
|
160
|
+
label?: string;
|
161
|
+
crmData?: unknown;
|
162
|
+
closer?: 'user' | 'visitor';
|
163
|
+
closedBy?: {
|
164
|
+
_id: string;
|
165
|
+
username: IUser['username'];
|
166
|
+
};
|
167
|
+
closingMessage?: IMessage;
|
168
|
+
departmentAncestors?: string[];
|
169
|
+
}
|
170
|
+
export interface IOmnichannelRoom extends IOmnichannelGenericRoom {
|
171
|
+
t: 'l';
|
172
|
+
omnichannel?: {
|
173
|
+
predictedVisitorAbandonmentAt: Date;
|
174
|
+
};
|
175
|
+
sms?: {
|
176
|
+
from: string;
|
177
|
+
};
|
178
|
+
priorityId?: string;
|
179
|
+
priorityWeight: ILivechatPriority['sortItem'];
|
180
|
+
slaId?: string;
|
181
|
+
estimatedWaitingTimeQueue: IOmnichannelServiceLevelAgreements['dueTimeInMinutes'];
|
182
|
+
pdfTranscriptRequested?: boolean;
|
183
|
+
pdfTranscriptFileId?: string;
|
184
|
+
metrics?: {
|
185
|
+
serviceTimeDuration?: number;
|
186
|
+
chatDuration?: number;
|
187
|
+
v?: {
|
188
|
+
lq: Date;
|
189
|
+
};
|
190
|
+
servedBy?: {
|
191
|
+
lr: Date;
|
192
|
+
};
|
193
|
+
response?: {
|
194
|
+
tt: number;
|
195
|
+
total: number;
|
196
|
+
};
|
197
|
+
};
|
198
|
+
autoTransferredAt?: Date;
|
199
|
+
autoTransferOngoing?: boolean;
|
200
|
+
}
|
201
|
+
export interface IVoipRoom extends IOmnichannelGenericRoom {
|
202
|
+
t: 'v';
|
203
|
+
name: string;
|
204
|
+
callStarted: Date;
|
205
|
+
callDuration?: number;
|
206
|
+
callWaitingTime?: number;
|
207
|
+
callTotalHoldTime?: number;
|
208
|
+
queue: string;
|
209
|
+
callUniqueId?: string;
|
210
|
+
v: IVisitor;
|
211
|
+
direction: 'inbound' | 'outbound';
|
212
|
+
}
|
213
|
+
export interface IOmnichannelRoomFromAppSource extends IOmnichannelRoom {
|
214
|
+
source: {
|
215
|
+
type: OmnichannelSourceType.APP;
|
216
|
+
id: string;
|
217
|
+
alias?: string;
|
218
|
+
sidebarIcon?: string;
|
219
|
+
defaultIcon?: string;
|
220
|
+
};
|
221
|
+
}
|
222
|
+
export type IVoipRoomClosingInfo = Pick<IOmnichannelGenericRoom, 'closer' | 'closedBy' | 'closedAt' | 'tags'> & Pick<IVoipRoom, 'callDuration' | 'callTotalHoldTime'> & {
|
223
|
+
serviceTimeDuration?: number;
|
224
|
+
};
|
225
|
+
export type IOmnichannelRoomClosingInfo = Pick<IOmnichannelGenericRoom, 'closer' | 'closedBy' | 'closedAt' | 'tags'> & {
|
226
|
+
serviceTimeDuration?: number;
|
227
|
+
chatDuration: number;
|
228
|
+
};
|
229
|
+
export declare const isOmnichannelRoom: (room: Pick<IRoom, 't'>) => room is IOmnichannelRoom & IRoom;
|
230
|
+
export declare const isVoipRoom: (room: IRoom) => room is IVoipRoom & IRoom;
|
231
|
+
export declare const isOmnichannelRoomFromAppSource: (room: IRoom) => room is IOmnichannelRoomFromAppSource;
|
232
|
+
export type RoomAdminFieldsType = '_id' | 'prid' | 'fname' | 'name' | 't' | 'cl' | 'u' | 'usernames' | 'usersCount' | 'muted' | 'unmuted' | 'ro' | 'default' | 'favorite' | 'featured' | 'reactWhenReadOnly' | 'topic' | 'msgs' | 'archived' | 'teamId' | 'teamMain' | 'announcement' | 'description' | 'broadcast' | 'uids' | 'avatarETag';
|
233
|
+
export interface IRoomWithRetentionPolicy extends IRoom {
|
234
|
+
retention: {
|
235
|
+
enabled?: boolean;
|
236
|
+
maxAge: number;
|
237
|
+
filesOnly: boolean;
|
238
|
+
excludePinned: boolean;
|
239
|
+
ignoreThreads: boolean;
|
240
|
+
overrideGlobal?: boolean;
|
241
|
+
};
|
242
|
+
}
|
243
|
+
export {};
|
package/dist/IRoom.js
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isOmnichannelRoomFromAppSource = exports.isVoipRoom = exports.isOmnichannelRoom = exports.OmnichannelSourceType = exports.isMultipleDirectMessageRoom = exports.isDirectMessageRoom = exports.isPublicRoom = exports.isPublicDiscussion = exports.isPrivateDiscussion = exports.isDiscussion = exports.isPublicTeamRoom = exports.isPrivateTeamRoom = exports.isTeamRoom = exports.isRoomFederated = exports.isRoomWithJoinCode = void 0;
|
4
|
+
const isRoomWithJoinCode = (room) => 'joinCodeRequired' in room && room.joinCodeRequired === true;
|
5
|
+
exports.isRoomWithJoinCode = isRoomWithJoinCode;
|
6
|
+
const isRoomFederated = (room) => 'federated' in room && room.federated === true;
|
7
|
+
exports.isRoomFederated = isRoomFederated;
|
8
|
+
const isTeamRoom = (room) => !!room.teamMain;
|
9
|
+
exports.isTeamRoom = isTeamRoom;
|
10
|
+
const isPrivateTeamRoom = (room) => (0, exports.isTeamRoom)(room) && room.t === 'p';
|
11
|
+
exports.isPrivateTeamRoom = isPrivateTeamRoom;
|
12
|
+
const isPublicTeamRoom = (room) => (0, exports.isTeamRoom)(room) && room.t === 'c';
|
13
|
+
exports.isPublicTeamRoom = isPublicTeamRoom;
|
14
|
+
const isDiscussion = (room) => !!room.prid;
|
15
|
+
exports.isDiscussion = isDiscussion;
|
16
|
+
const isPrivateDiscussion = (room) => (0, exports.isDiscussion)(room) && room.t === 'p';
|
17
|
+
exports.isPrivateDiscussion = isPrivateDiscussion;
|
18
|
+
const isPublicDiscussion = (room) => (0, exports.isDiscussion)(room) && room.t === 'c';
|
19
|
+
exports.isPublicDiscussion = isPublicDiscussion;
|
20
|
+
const isPublicRoom = (room) => room.t === 'c';
|
21
|
+
exports.isPublicRoom = isPublicRoom;
|
22
|
+
const isDirectMessageRoom = (room) => room.t === 'd';
|
23
|
+
exports.isDirectMessageRoom = isDirectMessageRoom;
|
24
|
+
const isMultipleDirectMessageRoom = (room) => (0, exports.isDirectMessageRoom)(room) && room.uids.length > 2;
|
25
|
+
exports.isMultipleDirectMessageRoom = isMultipleDirectMessageRoom;
|
26
|
+
var OmnichannelSourceType;
|
27
|
+
(function (OmnichannelSourceType) {
|
28
|
+
OmnichannelSourceType["WIDGET"] = "widget";
|
29
|
+
OmnichannelSourceType["EMAIL"] = "email";
|
30
|
+
OmnichannelSourceType["SMS"] = "sms";
|
31
|
+
OmnichannelSourceType["APP"] = "app";
|
32
|
+
OmnichannelSourceType["API"] = "api";
|
33
|
+
OmnichannelSourceType["OTHER"] = "other";
|
34
|
+
})(OmnichannelSourceType || (exports.OmnichannelSourceType = OmnichannelSourceType = {}));
|
35
|
+
const isOmnichannelRoom = (room) => room.t === 'l';
|
36
|
+
exports.isOmnichannelRoom = isOmnichannelRoom;
|
37
|
+
const isVoipRoom = (room) => room.t === 'v';
|
38
|
+
exports.isVoipRoom = isVoipRoom;
|
39
|
+
const isOmnichannelRoomFromAppSource = (room) => {
|
40
|
+
if (!(0, exports.isOmnichannelRoom)(room)) {
|
41
|
+
return false;
|
42
|
+
}
|
43
|
+
return room.source?.type === OmnichannelSourceType.APP;
|
44
|
+
};
|
45
|
+
exports.isOmnichannelRoomFromAppSource = isOmnichannelRoomFromAppSource;
|
46
|
+
//# sourceMappingURL=IRoom.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IRoom.js","sourceRoot":"","sources":["../src/IRoom.ts"],"names":[],"mappings":";;;AAmGO,MAAM,kBAAkB,GAAG,CAAC,IAAoB,EAA6B,EAAE,CACrF,kBAAkB,IAAI,IAAI,IAAK,IAAY,CAAC,gBAAgB,KAAK,IAAI,CAAC;AAD1D,QAAA,kBAAkB,sBACwC;AAWhE,MAAM,eAAe,GAAG,CAAC,IAAoB,EAA0B,EAAE,CAAC,WAAW,IAAI,IAAI,IAAK,IAAY,CAAC,SAAS,KAAK,IAAI,CAAC;AAA5H,QAAA,eAAe,mBAA6G;AAWlI,MAAM,UAAU,GAAG,CAAC,IAAoB,EAAqB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;AAA1E,QAAA,UAAU,cAAgE;AAChF,MAAM,iBAAiB,GAAG,CAAC,IAAoB,EAAqB,EAAE,CAAC,IAAA,kBAAU,EAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC;AAApG,QAAA,iBAAiB,qBAAmF;AAC1G,MAAM,gBAAgB,GAAG,CAAC,IAAoB,EAAqB,EAAE,CAAC,IAAA,kBAAU,EAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC;AAAnG,QAAA,gBAAgB,oBAAmF;AAEzG,MAAM,YAAY,GAAG,CAAC,IAAoB,EAAiB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;AAApE,QAAA,YAAY,gBAAwD;AAC1E,MAAM,mBAAmB,GAAG,CAAC,IAAoB,EAAiB,EAAE,CAAC,IAAA,oBAAY,EAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC;AAApG,QAAA,mBAAmB,uBAAiF;AAC1G,MAAM,kBAAkB,GAAG,CAAC,IAAoB,EAAiB,EAAE,CAAC,IAAA,oBAAY,EAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC;AAAnG,QAAA,kBAAkB,sBAAiF;AAEzG,MAAM,YAAY,GAAG,CAAC,IAAoB,EAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC;AAAvE,QAAA,YAAY,gBAA2D;AAQ7E,MAAM,mBAAmB,GAAG,CAAC,IAAyC,EAA8B,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC;AAAhH,QAAA,mBAAmB,uBAA6F;AACtH,MAAM,2BAA2B,GAAG,CAAC,IAAgC,EAA8B,EAAE,CAC3G,IAAA,2BAAmB,EAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;AADtC,QAAA,2BAA2B,+BACW;AAEnD,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAChC,0CAAiB,CAAA;IACjB,wCAAe,CAAA;IACf,oCAAW,CAAA;IACX,oCAAW,CAAA;IACX,oCAAW,CAAA;IACX,wCAAe,CAAA;AAChB,CAAC,EAPW,qBAAqB,qCAArB,qBAAqB,QAOhC;AA2JM,MAAM,iBAAiB,GAAG,CAAC,IAAsB,EAAoC,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC;AAAjG,QAAA,iBAAiB,qBAAgF;AAEvG,MAAM,UAAU,GAAG,CAAC,IAAW,EAA6B,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC;AAAxE,QAAA,UAAU,cAA8D;AAE9E,MAAM,8BAA8B,GAAG,CAAC,IAAW,EAAyC,EAAE;IACpG,IAAI,CAAC,IAAA,yBAAiB,EAAC,IAAI,CAAC,EAAE;QAC7B,OAAO,KAAK,CAAC;KACb;IAED,OAAO,IAAI,CAAC,MAAM,EAAE,IAAI,KAAK,qBAAqB,CAAC,GAAG,CAAC;AACxD,CAAC,CAAC;AANW,QAAA,8BAA8B,kCAMzC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { IUser } from './IUser';
|
2
|
+
export declare enum ServerEventType {
|
3
|
+
FAILED_LOGIN_ATTEMPT = "failed-login-attempt",
|
4
|
+
LOGIN = "login"
|
5
|
+
}
|
6
|
+
export interface IServerEvent {
|
7
|
+
_id: string;
|
8
|
+
t: ServerEventType;
|
9
|
+
ts: Date;
|
10
|
+
ip: string;
|
11
|
+
u?: Partial<Pick<IUser, '_id' | 'username'>>;
|
12
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ServerEventType = void 0;
|
4
|
+
var ServerEventType;
|
5
|
+
(function (ServerEventType) {
|
6
|
+
ServerEventType["FAILED_LOGIN_ATTEMPT"] = "failed-login-attempt";
|
7
|
+
ServerEventType["LOGIN"] = "login";
|
8
|
+
})(ServerEventType || (exports.ServerEventType = ServerEventType = {}));
|
9
|
+
//# sourceMappingURL=IServerEvent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IServerEvent.js","sourceRoot":"","sources":["../src/IServerEvent.ts"],"names":[],"mappings":";;;AAEA,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,gEAA6C,CAAA;IAC7C,kCAAe,CAAA;AAChB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
export interface IServerInfo {
|
2
|
+
build: {
|
3
|
+
arch: string;
|
4
|
+
cpus: number;
|
5
|
+
date: string;
|
6
|
+
freeMemory: number;
|
7
|
+
nodeVersion: string;
|
8
|
+
osRelease: string;
|
9
|
+
platform: string;
|
10
|
+
totalMemory: number;
|
11
|
+
};
|
12
|
+
commit: {
|
13
|
+
author?: string;
|
14
|
+
branch?: string;
|
15
|
+
date?: string;
|
16
|
+
hash?: string;
|
17
|
+
subject?: string;
|
18
|
+
tag?: string;
|
19
|
+
};
|
20
|
+
marketplaceApiVersion: string;
|
21
|
+
version: string;
|
22
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IServerInfo.js","sourceRoot":"","sources":["../src/IServerInfo.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
import type { IRole } from './IRole';
|
2
|
+
import type { IUser } from './IUser';
|
3
|
+
export interface ISessionDevice {
|
4
|
+
type: string;
|
5
|
+
name: string;
|
6
|
+
longVersion: string;
|
7
|
+
os: {
|
8
|
+
name: string;
|
9
|
+
version: string;
|
10
|
+
};
|
11
|
+
version: string;
|
12
|
+
}
|
13
|
+
export interface ISession {
|
14
|
+
_id: string;
|
15
|
+
type: 'session' | 'computed-session' | 'user_daily';
|
16
|
+
mostImportantRole: IRole['_id'];
|
17
|
+
userId: string;
|
18
|
+
lastActivityAt?: Date;
|
19
|
+
device?: ISessionDevice;
|
20
|
+
roles: string[];
|
21
|
+
year: number;
|
22
|
+
month: number;
|
23
|
+
day: number;
|
24
|
+
instanceId: string;
|
25
|
+
sessionId: string;
|
26
|
+
_updatedAt: Date;
|
27
|
+
createdAt: Date;
|
28
|
+
host: string;
|
29
|
+
ip: string;
|
30
|
+
loginAt: Date;
|
31
|
+
logoutAt?: Date;
|
32
|
+
closedAt?: Date;
|
33
|
+
logoutBy?: IUser['_id'];
|
34
|
+
loginToken?: string;
|
35
|
+
searchTerm: string;
|
36
|
+
}
|
37
|
+
type SessionAggregationResult = {
|
38
|
+
year: number;
|
39
|
+
month: number;
|
40
|
+
day: number;
|
41
|
+
};
|
42
|
+
export type UserSessionAggregationResult = SessionAggregationResult & {
|
43
|
+
data: UserSessionAggregation[];
|
44
|
+
};
|
45
|
+
export type DeviceSessionAggregationResult = SessionAggregationResult & {
|
46
|
+
data: DeviceSessionAggregation[];
|
47
|
+
};
|
48
|
+
export type OSSessionAggregationResult = SessionAggregationResult & {
|
49
|
+
data: OSSessionAggregation[];
|
50
|
+
};
|
51
|
+
export type UserSessionAggregation = Pick<ISession, '_id'> & {
|
52
|
+
count: number;
|
53
|
+
sessions: number;
|
54
|
+
roles: {
|
55
|
+
role: string;
|
56
|
+
count: number;
|
57
|
+
sessions: number;
|
58
|
+
time: number;
|
59
|
+
}[];
|
60
|
+
};
|
61
|
+
export type DeviceSessionAggregation = Pick<ISession, '_id'> & {
|
62
|
+
type: string;
|
63
|
+
name: string;
|
64
|
+
version: string;
|
65
|
+
count: number;
|
66
|
+
time: number;
|
67
|
+
};
|
68
|
+
export type OSSessionAggregation = Pick<ISession, '_id'> & {
|
69
|
+
name: string;
|
70
|
+
version: string;
|
71
|
+
count: number;
|
72
|
+
time: number;
|
73
|
+
};
|
74
|
+
export type DeviceManagementSession = Pick<ISession, '_id' | 'sessionId' | 'device' | 'host' | 'ip' | 'logoutAt' | 'userId' | 'loginAt'>;
|
75
|
+
export type DeviceManagementPopulatedSession = DeviceManagementSession & {
|
76
|
+
_user: Pick<IUser, 'name' | 'username' | 'avatarETag' | 'avatarOrigin'>;
|
77
|
+
};
|
78
|
+
export {};
|
package/dist/ISession.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ISession.js","sourceRoot":"","sources":["../src/ISession.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,222 @@
|
|
1
|
+
import type { IRocketChatAssetConstraint } from './IRocketChatAssets';
|
2
|
+
export type SettingId = string;
|
3
|
+
export type GroupId = SettingId;
|
4
|
+
export type TabId = SettingId;
|
5
|
+
export type SectionName = string;
|
6
|
+
export declare enum SettingEditor {
|
7
|
+
COLOR = "color",
|
8
|
+
EXPRESSION = "expression"
|
9
|
+
}
|
10
|
+
type AssetValue = {
|
11
|
+
defaultUrl?: string;
|
12
|
+
};
|
13
|
+
export type SettingValueMultiSelect = (string | number)[];
|
14
|
+
export type SettingValueRoomPick = {
|
15
|
+
_id: string;
|
16
|
+
name?: string;
|
17
|
+
}[];
|
18
|
+
export type SettingValue = string | boolean | number | SettingValueMultiSelect | SettingValueRoomPick | Date | AssetValue | undefined | null;
|
19
|
+
export interface ISettingSelectOption {
|
20
|
+
key: string | number;
|
21
|
+
i18nLabel: string;
|
22
|
+
}
|
23
|
+
export type ISetting = ISettingBase | ISettingEnterprise | ISettingColor | ISettingCode | ISettingAction | ISettingAsset;
|
24
|
+
type EnableQuery = string | {
|
25
|
+
_id: string;
|
26
|
+
value: any;
|
27
|
+
} | {
|
28
|
+
_id: string;
|
29
|
+
value: any;
|
30
|
+
}[];
|
31
|
+
export interface ISettingBase {
|
32
|
+
_id: SettingId;
|
33
|
+
_updatedAt: Date;
|
34
|
+
type: 'boolean' | 'timezone' | 'string' | 'relativeUrl' | 'password' | 'int' | 'select' | 'multiSelect' | 'language' | 'color' | 'font' | 'code' | 'action' | 'asset' | 'roomPick' | 'group' | 'date' | 'lookup';
|
35
|
+
public: boolean;
|
36
|
+
env: boolean;
|
37
|
+
group?: GroupId;
|
38
|
+
section?: SectionName;
|
39
|
+
tab?: TabId;
|
40
|
+
i18nLabel: string;
|
41
|
+
value: SettingValue;
|
42
|
+
packageValue: SettingValue;
|
43
|
+
blocked: boolean;
|
44
|
+
enableQuery?: EnableQuery;
|
45
|
+
displayQuery?: EnableQuery;
|
46
|
+
sorter: number;
|
47
|
+
properties?: unknown;
|
48
|
+
enterprise?: boolean;
|
49
|
+
requiredOnWizard?: boolean;
|
50
|
+
hidden?: boolean;
|
51
|
+
modules?: Array<string>;
|
52
|
+
invalidValue?: SettingValue;
|
53
|
+
valueSource?: string;
|
54
|
+
secret?: boolean;
|
55
|
+
i18nDescription?: string;
|
56
|
+
autocomplete?: boolean;
|
57
|
+
processEnvValue?: SettingValue;
|
58
|
+
meteorSettingsValue?: SettingValue;
|
59
|
+
ts: Date;
|
60
|
+
createdAt: Date;
|
61
|
+
multiline?: boolean;
|
62
|
+
values?: Array<ISettingSelectOption>;
|
63
|
+
placeholder?: string;
|
64
|
+
lookupEndpoint?: string;
|
65
|
+
wizard?: {
|
66
|
+
step: number;
|
67
|
+
order: number;
|
68
|
+
} | null;
|
69
|
+
persistent?: boolean;
|
70
|
+
readonly?: boolean;
|
71
|
+
alert?: string;
|
72
|
+
private?: boolean;
|
73
|
+
}
|
74
|
+
export interface ISettingGroup {
|
75
|
+
_id: string;
|
76
|
+
hidden: boolean;
|
77
|
+
blocked: boolean;
|
78
|
+
ts?: Date;
|
79
|
+
sorter: number;
|
80
|
+
i18nLabel: string;
|
81
|
+
displayQuery?: EnableQuery;
|
82
|
+
i18nDescription: string;
|
83
|
+
value?: undefined;
|
84
|
+
type: 'group';
|
85
|
+
alert?: string;
|
86
|
+
}
|
87
|
+
export interface ISettingEnterprise extends ISettingBase {
|
88
|
+
enterprise: true;
|
89
|
+
invalidValue: SettingValue;
|
90
|
+
}
|
91
|
+
export interface ISettingColor extends ISettingBase {
|
92
|
+
type: 'color';
|
93
|
+
editor: SettingEditor;
|
94
|
+
packageEditor?: SettingEditor;
|
95
|
+
}
|
96
|
+
export interface ISettingCode extends ISettingBase {
|
97
|
+
type: 'code';
|
98
|
+
code?: string;
|
99
|
+
}
|
100
|
+
export interface ISettingAction extends ISettingBase {
|
101
|
+
type: 'action';
|
102
|
+
value: string;
|
103
|
+
actionText?: string;
|
104
|
+
}
|
105
|
+
export interface ISettingAsset extends ISettingBase {
|
106
|
+
type: 'asset';
|
107
|
+
value: AssetValue;
|
108
|
+
fileConstraints: IRocketChatAssetConstraint;
|
109
|
+
asset: string;
|
110
|
+
}
|
111
|
+
export interface ISettingDate extends ISettingBase {
|
112
|
+
type: 'date';
|
113
|
+
value: Date;
|
114
|
+
}
|
115
|
+
export declare const isSetting: (setting: any) => setting is ISetting;
|
116
|
+
export declare const isDateSetting: (setting: ISetting) => setting is ISettingDate;
|
117
|
+
export declare const isSettingEnterprise: (setting: ISettingBase) => setting is ISettingEnterprise;
|
118
|
+
export declare const isSettingColor: (setting: ISettingBase) => setting is ISettingColor;
|
119
|
+
export declare const isSettingCode: (setting: ISettingBase) => setting is ISettingCode;
|
120
|
+
export declare const isSettingAction: (setting: ISettingBase) => setting is ISettingAction;
|
121
|
+
export declare const isSettingAsset: (setting: ISettingBase) => setting is ISettingAsset;
|
122
|
+
export interface ISettingStatistics {
|
123
|
+
account2fa?: boolean;
|
124
|
+
cannedResponsesEnabled?: boolean;
|
125
|
+
e2e?: boolean;
|
126
|
+
e2eDefaultDirectRoom?: boolean;
|
127
|
+
e2eDefaultPrivateRoom?: boolean;
|
128
|
+
smtpHost?: string;
|
129
|
+
smtpPort?: string;
|
130
|
+
fromEmail?: string;
|
131
|
+
fileUploadEnable?: boolean;
|
132
|
+
frameworkDevMode?: boolean;
|
133
|
+
frameworkEnable?: boolean;
|
134
|
+
surveyEnabled?: boolean;
|
135
|
+
updateChecker?: boolean;
|
136
|
+
liveStream?: boolean;
|
137
|
+
broadcasting?: boolean;
|
138
|
+
allowEditing?: boolean;
|
139
|
+
allowDeleting?: boolean;
|
140
|
+
allowUnrecognizedSlashCommand?: boolean;
|
141
|
+
allowBadWordsFilter?: boolean;
|
142
|
+
readReceiptEnabled?: boolean;
|
143
|
+
readReceiptStoreUsers?: boolean;
|
144
|
+
otrEnable?: boolean;
|
145
|
+
pushEnable?: boolean;
|
146
|
+
globalSearchEnabled?: boolean;
|
147
|
+
threadsEnabled?: boolean;
|
148
|
+
webRTCEnableChannel?: boolean;
|
149
|
+
webRTCEnablePrivate?: boolean;
|
150
|
+
webRTCEnableDirect?: boolean;
|
151
|
+
}
|
152
|
+
export interface ISettingStatisticsObject {
|
153
|
+
accounts?: {
|
154
|
+
account2fa?: boolean;
|
155
|
+
};
|
156
|
+
cannedResponses?: {
|
157
|
+
cannedResponsesEnabled?: boolean;
|
158
|
+
};
|
159
|
+
e2ee?: {
|
160
|
+
e2e?: boolean;
|
161
|
+
e2eDefaultDirectRoom?: boolean;
|
162
|
+
e2eDefaultPrivateRoom?: boolean;
|
163
|
+
};
|
164
|
+
email?: {
|
165
|
+
smtp?: {
|
166
|
+
smtpHost?: string;
|
167
|
+
smtpPort?: string;
|
168
|
+
fromEmail?: string;
|
169
|
+
};
|
170
|
+
};
|
171
|
+
fileUpload?: {
|
172
|
+
fileUploadEnable?: boolean;
|
173
|
+
};
|
174
|
+
general?: {
|
175
|
+
apps?: {
|
176
|
+
frameworkDevMode?: boolean;
|
177
|
+
frameworkEnable?: boolean;
|
178
|
+
};
|
179
|
+
nps?: {
|
180
|
+
surveyEnabled?: boolean;
|
181
|
+
};
|
182
|
+
update?: {
|
183
|
+
updateChecker?: boolean;
|
184
|
+
};
|
185
|
+
};
|
186
|
+
liveStreamAndBroadcasting?: {
|
187
|
+
liveStream?: boolean;
|
188
|
+
broadcasting?: boolean;
|
189
|
+
};
|
190
|
+
message?: {
|
191
|
+
allowEditing?: boolean;
|
192
|
+
allowDeleting?: boolean;
|
193
|
+
allowUnrecognizedSlashCommand?: boolean;
|
194
|
+
allowBadWordsFilter?: boolean;
|
195
|
+
readReceiptEnabled?: boolean;
|
196
|
+
readReceiptStoreUsers?: boolean;
|
197
|
+
};
|
198
|
+
otr?: {
|
199
|
+
otrEnable?: boolean;
|
200
|
+
};
|
201
|
+
push?: {
|
202
|
+
pushEnable?: boolean;
|
203
|
+
};
|
204
|
+
search?: {
|
205
|
+
defaultProvider?: {
|
206
|
+
globalSearchEnabled?: boolean;
|
207
|
+
};
|
208
|
+
};
|
209
|
+
threads?: {
|
210
|
+
threadsEnabled?: boolean;
|
211
|
+
};
|
212
|
+
videoConference?: {
|
213
|
+
bigBlueButton?: boolean;
|
214
|
+
jitsiEnabled?: boolean;
|
215
|
+
};
|
216
|
+
webRTC?: {
|
217
|
+
webRTCEnableChannel?: boolean;
|
218
|
+
webRTCEnablePrivate?: boolean;
|
219
|
+
webRTCEnableDirect?: boolean;
|
220
|
+
};
|
221
|
+
}
|
222
|
+
export {};
|