@wireapp/api-client 21.0.6 → 22.0.0
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/README.md +5 -5
- package/{src → lib}/APIClient.d.ts +0 -0
- package/{src → lib}/APIClient.js +0 -0
- package/lib/APIClient.js.map +1 -0
- package/{src → lib}/Config.d.ts +0 -0
- package/{src → lib}/Config.js +0 -0
- package/lib/Config.js.map +1 -0
- package/{src → lib}/account/AccountAPI.d.ts +0 -0
- package/{src → lib}/account/AccountAPI.js +0 -0
- package/lib/account/AccountAPI.js.map +1 -0
- package/{src → lib}/account/AccountError.d.ts +0 -0
- package/{src → lib}/account/AccountError.js +0 -0
- package/lib/account/AccountError.js.map +1 -0
- package/{src → lib}/account/BackendConfigData.d.ts +0 -0
- package/{src → lib}/account/BackendConfigData.js +0 -0
- package/lib/account/BackendConfigData.js.map +1 -0
- package/{src → lib}/account/CallConfigData.d.ts +0 -0
- package/{src → lib}/account/CallConfigData.js +0 -0
- package/lib/account/CallConfigData.js.map +1 -0
- package/{src → lib}/account/DomainData.d.ts +0 -0
- package/{src → lib}/account/DomainData.js +0 -0
- package/lib/account/DomainData.js.map +1 -0
- package/{src → lib}/account/SSOSettings.d.ts +0 -0
- package/{src → lib}/account/SSOSettings.js +0 -0
- package/lib/account/SSOSettings.js.map +1 -0
- package/{src → lib}/account/index.d.ts +0 -0
- package/{src → lib}/account/index.js +0 -0
- package/lib/account/index.js.map +1 -0
- package/{src → lib}/asset/AssetAPI.d.ts +0 -0
- package/{src → lib}/asset/AssetAPI.js +0 -0
- package/lib/asset/AssetAPI.js.map +1 -0
- package/{src → lib}/asset/AssetRetentionPolicy.d.ts +0 -0
- package/{src → lib}/asset/AssetRetentionPolicy.js +0 -0
- package/lib/asset/AssetRetentionPolicy.js.map +1 -0
- package/{src → lib}/asset/AssetUploadData.d.ts +0 -0
- package/{src → lib}/asset/AssetUploadData.js +0 -0
- package/lib/asset/AssetUploadData.js.map +1 -0
- package/{src → lib}/asset/AssetUtil.d.ts +0 -0
- package/{src → lib}/asset/AssetUtil.js +0 -0
- package/lib/asset/AssetUtil.js.map +1 -0
- package/{src → lib}/asset/index.d.ts +0 -0
- package/{src → lib}/asset/index.js +0 -0
- package/lib/asset/index.js.map +1 -0
- package/{src → lib}/auth/AccessTokenData.d.ts +0 -0
- package/{src → lib}/auth/AccessTokenData.js +0 -0
- package/lib/auth/AccessTokenData.js.map +1 -0
- package/{src → lib}/auth/AccessTokenStore.d.ts +0 -0
- package/{src → lib}/auth/AccessTokenStore.js +0 -0
- package/lib/auth/AccessTokenStore.js.map +1 -0
- package/{src → lib}/auth/AuthAPI.d.ts +0 -0
- package/{src → lib}/auth/AuthAPI.js +0 -0
- package/lib/auth/AuthAPI.js.map +1 -0
- package/{src → lib}/auth/AuthenticationError.d.ts +0 -0
- package/{src → lib}/auth/AuthenticationError.js +0 -0
- package/lib/auth/AuthenticationError.js.map +1 -0
- package/{src → lib}/auth/ClientPreKey.d.ts +0 -0
- package/{src → lib}/auth/ClientPreKey.js +0 -0
- package/lib/auth/ClientPreKey.js.map +1 -0
- package/{src → lib}/auth/Context.d.ts +0 -0
- package/{src → lib}/auth/Context.js +0 -0
- package/lib/auth/Context.js.map +1 -0
- package/{src → lib}/auth/Cookie.d.ts +0 -0
- package/{src → lib}/auth/Cookie.js +0 -0
- package/lib/auth/Cookie.js.map +1 -0
- package/{src → lib}/auth/CookieList.d.ts +0 -0
- package/{src → lib}/auth/CookieList.js +0 -0
- package/lib/auth/CookieList.js.map +1 -0
- package/{src → lib}/auth/CookieStore.d.ts +0 -0
- package/{src → lib}/auth/CookieStore.js +0 -0
- package/lib/auth/CookieStore.js.map +1 -0
- package/{src → lib}/auth/LoginCodeResponse.d.ts +0 -0
- package/{src → lib}/auth/LoginCodeResponse.js +0 -0
- package/lib/auth/LoginCodeResponse.js.map +1 -0
- package/{src → lib}/auth/LoginData.d.ts +0 -0
- package/{src → lib}/auth/LoginData.js +0 -0
- package/lib/auth/LoginData.js.map +1 -0
- package/{src → lib}/auth/PreKey.d.ts +0 -0
- package/{src → lib}/auth/PreKey.js +0 -0
- package/lib/auth/PreKey.js.map +1 -0
- package/{src → lib}/auth/PreKeyBundle.d.ts +0 -0
- package/{src → lib}/auth/PreKeyBundle.js +0 -0
- package/lib/auth/PreKeyBundle.js.map +1 -0
- package/{src → lib}/auth/RegisterData.d.ts +0 -0
- package/{src → lib}/auth/RegisterData.js +0 -0
- package/lib/auth/RegisterData.js.map +1 -0
- package/{src → lib}/auth/SendLoginCode.d.ts +0 -0
- package/{src → lib}/auth/SendLoginCode.js +0 -0
- package/lib/auth/SendLoginCode.js.map +1 -0
- package/{src → lib}/auth/VerificationActionType.d.ts +0 -0
- package/{src → lib}/auth/VerificationActionType.js +0 -0
- package/lib/auth/VerificationActionType.js.map +1 -0
- package/{src → lib}/auth/index.d.ts +0 -0
- package/{src → lib}/auth/index.js +0 -0
- package/lib/auth/index.js.map +1 -0
- package/{src → lib}/auth/parseAccessToken.d.ts +0 -0
- package/{src → lib}/auth/parseAccessToken.js +0 -0
- package/lib/auth/parseAccessToken.js.map +1 -0
- package/{src → lib}/broadcast/BroadcastAPI.d.ts +0 -0
- package/{src → lib}/broadcast/BroadcastAPI.js +0 -0
- package/lib/broadcast/BroadcastAPI.js.map +1 -0
- package/{src → lib}/broadcast/index.d.ts +0 -0
- package/{src → lib}/broadcast/index.js +0 -0
- package/lib/broadcast/index.js.map +1 -0
- package/{src → lib}/client/ClientAPI.d.ts +0 -0
- package/{src → lib}/client/ClientAPI.js +0 -0
- package/lib/client/ClientAPI.js.map +1 -0
- package/{src → lib}/client/ClientCapability.d.ts +0 -0
- package/{src → lib}/client/ClientCapability.js +0 -0
- package/lib/client/ClientCapability.js.map +1 -0
- package/{src → lib}/client/ClientCapabilityData.d.ts +0 -0
- package/{src → lib}/client/ClientCapabilityData.js +0 -0
- package/lib/client/ClientCapabilityData.js.map +1 -0
- package/{src → lib}/client/ClientClassification.d.ts +0 -0
- package/{src → lib}/client/ClientClassification.js +0 -0
- package/lib/client/ClientClassification.js.map +1 -0
- package/{src → lib}/client/ClientError.d.ts +0 -0
- package/{src → lib}/client/ClientError.js +0 -0
- package/lib/client/ClientError.js.map +1 -0
- package/{src → lib}/client/ClientType.d.ts +0 -0
- package/{src → lib}/client/ClientType.js +0 -0
- package/lib/client/ClientType.js.map +1 -0
- package/{src → lib}/client/Location.d.ts +0 -0
- package/{src → lib}/client/Location.js +0 -0
- package/lib/client/Location.js.map +1 -0
- package/{src → lib}/client/NewClient.d.ts +0 -0
- package/{src → lib}/client/NewClient.js +0 -0
- package/lib/client/NewClient.js.map +1 -0
- package/{src → lib}/client/PublicClient.d.ts +0 -0
- package/{src → lib}/client/PublicClient.js +0 -0
- package/lib/client/PublicClient.js.map +1 -0
- package/{src → lib}/client/QualifiedPublicClients.d.ts +0 -0
- package/{src → lib}/client/QualifiedPublicClients.js +0 -0
- package/lib/client/QualifiedPublicClients.js.map +1 -0
- package/{src → lib}/client/RegisteredClient.d.ts +0 -0
- package/{src → lib}/client/RegisteredClient.js +0 -0
- package/lib/client/RegisteredClient.js.map +1 -0
- package/{src → lib}/client/index.d.ts +0 -0
- package/{src → lib}/client/index.js +0 -0
- package/lib/client/index.js.map +1 -0
- package/{src → lib}/connection/Connection.d.ts +0 -0
- package/{src → lib}/connection/Connection.js +0 -0
- package/lib/connection/Connection.js.map +1 -0
- package/{src → lib}/connection/ConnectionAPI.d.ts +0 -0
- package/{src → lib}/connection/ConnectionAPI.js +0 -0
- package/lib/connection/ConnectionAPI.js.map +1 -0
- package/{src → lib}/connection/ConnectionError.d.ts +0 -0
- package/{src → lib}/connection/ConnectionError.js +0 -0
- package/lib/connection/ConnectionError.js.map +1 -0
- package/{src → lib}/connection/ConnectionRequest.d.ts +0 -0
- package/{src → lib}/connection/ConnectionRequest.js +0 -0
- package/lib/connection/ConnectionRequest.js.map +1 -0
- package/{src → lib}/connection/ConnectionStatus.d.ts +0 -0
- package/{src → lib}/connection/ConnectionStatus.js +0 -0
- package/lib/connection/ConnectionStatus.js.map +1 -0
- package/{src → lib}/connection/ConnectionUpdate.d.ts +0 -0
- package/{src → lib}/connection/ConnectionUpdate.js +0 -0
- package/lib/connection/ConnectionUpdate.js.map +1 -0
- package/{src → lib}/connection/UserConnectionList.d.ts +0 -0
- package/{src → lib}/connection/UserConnectionList.js +0 -0
- package/lib/connection/UserConnectionList.js.map +1 -0
- package/{src → lib}/connection/index.d.ts +0 -0
- package/{src → lib}/connection/index.js +0 -0
- package/lib/connection/index.js.map +1 -0
- package/{src → lib}/conversation/ClientMismatch.d.ts +0 -0
- package/{src → lib}/conversation/ClientMismatch.js +0 -0
- package/lib/conversation/ClientMismatch.js.map +1 -0
- package/{src → lib}/conversation/Conversation.d.ts +0 -0
- package/{src → lib}/conversation/Conversation.js +0 -0
- package/lib/conversation/Conversation.js.map +1 -0
- package/{src → lib}/conversation/ConversationAPI/ConversationAPI.d.ts +0 -0
- package/lib/conversation/ConversationAPI/ConversationAPI.js +873 -0
- package/lib/conversation/ConversationAPI/ConversationAPI.js.map +1 -0
- package/{src → lib}/conversation/ConversationAPI/index.d.ts +0 -0
- package/{src → lib}/conversation/ConversationAPI/index.js +0 -0
- package/lib/conversation/ConversationAPI/index.js.map +1 -0
- package/{src → lib}/conversation/ConversationCode.d.ts +0 -0
- package/{src → lib}/conversation/ConversationCode.js +0 -0
- package/lib/conversation/ConversationCode.js.map +1 -0
- package/{src → lib}/conversation/ConversationError.d.ts +0 -0
- package/{src → lib}/conversation/ConversationError.js +0 -0
- package/lib/conversation/ConversationError.js.map +1 -0
- package/{src → lib}/conversation/ConversationIds.d.ts +0 -0
- package/{src → lib}/conversation/ConversationIds.js +0 -0
- package/lib/conversation/ConversationIds.js.map +1 -0
- package/{src → lib}/conversation/ConversationMembers.d.ts +0 -0
- package/{src → lib}/conversation/ConversationMembers.js +0 -0
- package/lib/conversation/ConversationMembers.js.map +1 -0
- package/{src → lib}/conversation/ConversationRole.d.ts +0 -0
- package/{src → lib}/conversation/ConversationRole.js +0 -0
- package/lib/conversation/ConversationRole.js.map +1 -0
- package/{src → lib}/conversation/Conversations.d.ts +0 -0
- package/{src → lib}/conversation/Conversations.js +0 -0
- package/lib/conversation/Conversations.js.map +1 -0
- package/{src → lib}/conversation/Invite.d.ts +0 -0
- package/{src → lib}/conversation/Invite.js +0 -0
- package/lib/conversation/Invite.js.map +1 -0
- package/{src → lib}/conversation/Member.d.ts +0 -0
- package/{src → lib}/conversation/Member.js +0 -0
- package/lib/conversation/Member.js.map +1 -0
- package/{src → lib}/conversation/MessageSendingStatus.d.ts +0 -0
- package/{src → lib}/conversation/MessageSendingStatus.js +0 -0
- package/lib/conversation/MessageSendingStatus.js.map +1 -0
- package/{src → lib}/conversation/MutedStatus.d.ts +0 -0
- package/{src → lib}/conversation/MutedStatus.js +0 -0
- package/lib/conversation/MutedStatus.js.map +1 -0
- package/{src → lib}/conversation/NewConversation.d.ts +0 -0
- package/{src → lib}/conversation/NewConversation.js +0 -0
- package/lib/conversation/NewConversation.js.map +1 -0
- package/{src → lib}/conversation/NewOTRMessage.d.ts +0 -0
- package/{src → lib}/conversation/NewOTRMessage.js +0 -0
- package/lib/conversation/NewOTRMessage.js.map +1 -0
- package/{src → lib}/conversation/OTRClientMap.d.ts +0 -0
- package/{src → lib}/conversation/OTRClientMap.js +0 -0
- package/lib/conversation/OTRClientMap.js.map +1 -0
- package/{src → lib}/conversation/OTRRecipients.d.ts +0 -0
- package/{src → lib}/conversation/OTRRecipients.js +0 -0
- package/lib/conversation/OTRRecipients.js.map +1 -0
- package/{src → lib}/conversation/OtherMember.d.ts +0 -0
- package/{src → lib}/conversation/OtherMember.js +0 -0
- package/lib/conversation/OtherMember.js.map +1 -0
- package/{src → lib}/conversation/QualifiedConversationIds.d.ts +0 -0
- package/{src → lib}/conversation/QualifiedConversationIds.js +0 -0
- package/lib/conversation/QualifiedConversationIds.js.map +1 -0
- package/{src → lib}/conversation/QualifiedUserClients.d.ts +0 -0
- package/{src → lib}/conversation/QualifiedUserClients.js +0 -0
- package/lib/conversation/QualifiedUserClients.js.map +1 -0
- package/{src → lib}/conversation/RemoteConversations.d.ts +0 -0
- package/{src → lib}/conversation/RemoteConversations.js +0 -0
- package/lib/conversation/RemoteConversations.js.map +1 -0
- package/{src → lib}/conversation/ServiceRef.d.ts +0 -0
- package/{src → lib}/conversation/ServiceRef.js +0 -0
- package/lib/conversation/ServiceRef.js.map +1 -0
- package/{src → lib}/conversation/UserClients.d.ts +0 -0
- package/{src → lib}/conversation/UserClients.js +0 -0
- package/lib/conversation/UserClients.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationAccessUpdateData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationAccessUpdateData.js +0 -0
- package/lib/conversation/data/ConversationAccessUpdateData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationCodeUpdateData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationCodeUpdateData.js +0 -0
- package/lib/conversation/data/ConversationCodeUpdateData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationConnectRequestData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationConnectRequestData.js +0 -0
- package/lib/conversation/data/ConversationConnectRequestData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationCreateData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationCreateData.js +0 -0
- package/lib/conversation/data/ConversationCreateData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationJoinData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationJoinData.js +0 -0
- package/lib/conversation/data/ConversationJoinData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationMLSMessageAddData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationMLSMessageAddData.js +0 -0
- package/lib/conversation/data/ConversationMLSMessageAddData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationMLSWelcomeData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationMLSWelcomeData.js +0 -0
- package/lib/conversation/data/ConversationMLSWelcomeData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationMemberJoinData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationMemberJoinData.js +0 -0
- package/lib/conversation/data/ConversationMemberJoinData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationMemberLeaveData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationMemberLeaveData.js +0 -0
- package/lib/conversation/data/ConversationMemberLeaveData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationMemberUpdateData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationMemberUpdateData.js +0 -0
- package/lib/conversation/data/ConversationMemberUpdateData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationMessageTimerUpdateData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationMessageTimerUpdateData.js +0 -0
- package/lib/conversation/data/ConversationMessageTimerUpdateData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationNameUpdateData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationNameUpdateData.js +0 -0
- package/lib/conversation/data/ConversationNameUpdateData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationOtrMessageAddData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationOtrMessageAddData.js +0 -0
- package/lib/conversation/data/ConversationOtrMessageAddData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationReceiptModeUpdateData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationReceiptModeUpdateData.js +0 -0
- package/lib/conversation/data/ConversationReceiptModeUpdateData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationRenameData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationRenameData.js +0 -0
- package/lib/conversation/data/ConversationRenameData.js.map +1 -0
- package/{src → lib}/conversation/data/ConversationTypingData.d.ts +0 -0
- package/{src → lib}/conversation/data/ConversationTypingData.js +0 -0
- package/lib/conversation/data/ConversationTypingData.js.map +1 -0
- package/{src → lib}/conversation/data/MlsEventData.d.ts +0 -0
- package/{src → lib}/conversation/data/MlsEventData.js +0 -0
- package/lib/conversation/data/MlsEventData.js.map +1 -0
- package/{src → lib}/conversation/data/index.d.ts +0 -0
- package/{src → lib}/conversation/data/index.js +0 -0
- package/lib/conversation/data/index.js.map +1 -0
- package/{src → lib}/conversation/index.d.ts +0 -0
- package/{src → lib}/conversation/index.js +0 -0
- package/lib/conversation/index.js.map +1 -0
- package/lib/demo/http401.d.ts +1 -0
- package/lib/demo/http401.js +30 -0
- package/lib/demo/http401.js.map +1 -0
- package/lib/demo/initClient.d.ts +2 -0
- package/lib/demo/initClient.js +43 -0
- package/lib/demo/initClient.js.map +1 -0
- package/lib/demo/self.d.ts +1 -0
- package/lib/demo/self.js +30 -0
- package/lib/demo/self.js.map +1 -0
- package/{src → lib}/env/Backend.d.ts +0 -0
- package/{src → lib}/env/Backend.js +0 -0
- package/lib/env/Backend.js.map +1 -0
- package/{src → lib}/env/index.d.ts +0 -0
- package/{src → lib}/env/index.js +0 -0
- package/lib/env/index.js.map +1 -0
- package/{src → lib}/event/BackendEvent.d.ts +0 -0
- package/{src → lib}/event/BackendEvent.js +0 -0
- package/lib/event/BackendEvent.js.map +1 -0
- package/{src → lib}/event/ConversationEvent.d.ts +0 -0
- package/{src → lib}/event/ConversationEvent.js +0 -0
- package/lib/event/ConversationEvent.js.map +1 -0
- package/{src → lib}/event/TeamEvent.d.ts +0 -0
- package/{src → lib}/event/TeamEvent.js +0 -0
- package/lib/event/TeamEvent.js.map +1 -0
- package/{src → lib}/event/UserEvent.d.ts +0 -0
- package/{src → lib}/event/UserEvent.js +0 -0
- package/lib/event/UserEvent.js.map +1 -0
- package/{src → lib}/event/index.d.ts +0 -0
- package/{src → lib}/event/index.js +0 -0
- package/lib/event/index.js.map +1 -0
- package/{src → lib}/giphy/GiphyAPI.d.ts +0 -0
- package/{src → lib}/giphy/GiphyAPI.js +0 -0
- package/lib/giphy/GiphyAPI.js.map +1 -0
- package/{src → lib}/giphy/GiphyImage.d.ts +0 -0
- package/{src → lib}/giphy/GiphyImage.js +0 -0
- package/lib/giphy/GiphyImage.js.map +1 -0
- package/{src → lib}/giphy/GiphyOptions.d.ts +0 -0
- package/{src → lib}/giphy/GiphyOptions.js +0 -0
- package/lib/giphy/GiphyOptions.js.map +1 -0
- package/{src → lib}/giphy/GiphyResult.d.ts +0 -0
- package/{src → lib}/giphy/GiphyResult.js +0 -0
- package/lib/giphy/GiphyResult.js.map +1 -0
- package/{src → lib}/giphy/index.d.ts +0 -0
- package/{src → lib}/giphy/index.js +0 -0
- package/lib/giphy/index.js.map +1 -0
- package/{src → lib}/http/BackendError.d.ts +0 -0
- package/{src → lib}/http/BackendError.js +0 -0
- package/lib/http/BackendError.js.map +1 -0
- package/{src → lib}/http/BackendErrorLabel.d.ts +0 -0
- package/{src → lib}/http/BackendErrorLabel.js +0 -0
- package/lib/http/BackendErrorLabel.js.map +1 -0
- package/{src → lib}/http/BackendErrorMapper.d.ts +0 -0
- package/{src → lib}/http/BackendErrorMapper.js +0 -0
- package/lib/http/BackendErrorMapper.js.map +1 -0
- package/{src → lib}/http/ConnectionState.d.ts +0 -0
- package/{src → lib}/http/ConnectionState.js +0 -0
- package/lib/http/ConnectionState.js.map +1 -0
- package/{src → lib}/http/ContentType.d.ts +0 -0
- package/{src → lib}/http/ContentType.js +0 -0
- package/lib/http/ContentType.js.map +1 -0
- package/{src → lib}/http/HttpClient.d.ts +0 -0
- package/{src → lib}/http/HttpClient.js +0 -0
- package/lib/http/HttpClient.js.map +1 -0
- package/{src → lib}/http/NetworkError.d.ts +0 -0
- package/{src → lib}/http/NetworkError.js +0 -0
- package/lib/http/NetworkError.js.map +1 -0
- package/{src → lib}/http/RequestCancelable.d.ts +0 -0
- package/{src → lib}/http/RequestCancelable.js +0 -0
- package/lib/http/RequestCancelable.js.map +1 -0
- package/{src → lib}/http/RequestProgressHandler.d.ts +0 -0
- package/{src → lib}/http/RequestProgressHandler.js +0 -0
- package/lib/http/RequestProgressHandler.js.map +1 -0
- package/{src → lib}/http/TraceState.d.ts +0 -0
- package/{src → lib}/http/TraceState.js +0 -0
- package/lib/http/TraceState.js.map +1 -0
- package/{src → lib}/http/index.d.ts +0 -0
- package/{src → lib}/http/index.js +0 -0
- package/lib/http/index.js.map +1 -0
- package/{src → lib}/notification/Notification.d.ts +0 -0
- package/{src → lib}/notification/Notification.js +0 -0
- package/lib/notification/Notification.js.map +1 -0
- package/{src → lib}/notification/NotificationAPI/NotificationAPI.d.ts +0 -0
- package/{src → lib}/notification/NotificationAPI/NotificationAPI.js +0 -0
- package/lib/notification/NotificationAPI/NotificationAPI.js.map +1 -0
- package/{src → lib}/notification/NotificationAPI/NotificationsAPI.mocks.d.ts +0 -0
- package/{src → lib}/notification/NotificationAPI/NotificationsAPI.mocks.js +0 -0
- package/lib/notification/NotificationAPI/NotificationsAPI.mocks.js.map +1 -0
- package/{src → lib}/notification/NotificationAPI/index.d.ts +0 -0
- package/{src → lib}/notification/NotificationAPI/index.js +0 -0
- package/lib/notification/NotificationAPI/index.js.map +1 -0
- package/{src → lib}/notification/NotificationList.d.ts +0 -0
- package/{src → lib}/notification/NotificationList.js +0 -0
- package/lib/notification/NotificationList.js.map +1 -0
- package/{src → lib}/notification/index.d.ts +0 -0
- package/{src → lib}/notification/index.js +0 -0
- package/lib/notification/index.js.map +1 -0
- package/{src → lib}/obfuscation/ObfuscationUtil.d.ts +0 -0
- package/{src → lib}/obfuscation/ObfuscationUtil.js +0 -0
- package/lib/obfuscation/ObfuscationUtil.js.map +1 -0
- package/{src → lib}/obfuscation/index.d.ts +0 -0
- package/{src → lib}/obfuscation/index.js +0 -0
- package/lib/obfuscation/index.js.map +1 -0
- package/{src → lib}/self/ChangePassword.d.ts +0 -0
- package/{src → lib}/self/ChangePassword.js +0 -0
- package/lib/self/ChangePassword.js.map +1 -0
- package/{src → lib}/self/Consent.d.ts +0 -0
- package/{src → lib}/self/Consent.js +0 -0
- package/lib/self/Consent.js.map +1 -0
- package/{src → lib}/self/ConsentResults.d.ts +0 -0
- package/{src → lib}/self/ConsentResults.js +0 -0
- package/lib/self/ConsentResults.js.map +1 -0
- package/{src → lib}/self/ConsentType.d.ts +0 -0
- package/{src → lib}/self/ConsentType.js +0 -0
- package/lib/self/ConsentType.js.map +1 -0
- package/{src → lib}/self/Delete.d.ts +0 -0
- package/{src → lib}/self/Delete.js +0 -0
- package/lib/self/Delete.js.map +1 -0
- package/{src → lib}/self/Name.d.ts +0 -0
- package/{src → lib}/self/Name.js +0 -0
- package/lib/self/Name.js.map +1 -0
- package/{src → lib}/self/Picture.d.ts +0 -0
- package/{src → lib}/self/Picture.js +0 -0
- package/lib/self/Picture.js.map +1 -0
- package/{src → lib}/self/SSOSignature.d.ts +0 -0
- package/{src → lib}/self/SSOSignature.js +0 -0
- package/lib/self/SSOSignature.js.map +1 -0
- package/{src → lib}/self/Self.d.ts +0 -0
- package/{src → lib}/self/Self.js +0 -0
- package/lib/self/Self.js.map +1 -0
- package/{src → lib}/self/SelfAPI.d.ts +0 -0
- package/{src → lib}/self/SelfAPI.js +0 -0
- package/lib/self/SelfAPI.js.map +1 -0
- package/{src → lib}/self/index.d.ts +0 -0
- package/{src → lib}/self/index.js +0 -0
- package/lib/self/index.js.map +1 -0
- package/{src → lib}/serviceProvider/LoginServiceProviderData.d.ts +0 -0
- package/{src → lib}/serviceProvider/LoginServiceProviderData.js +0 -0
- package/lib/serviceProvider/LoginServiceProviderData.js.map +1 -0
- package/{src → lib}/serviceProvider/NewServiceProvider.d.ts +0 -0
- package/{src → lib}/serviceProvider/NewServiceProvider.js +0 -0
- package/lib/serviceProvider/NewServiceProvider.js.map +1 -0
- package/{src → lib}/serviceProvider/RegisteredServiceProvider.d.ts +0 -0
- package/{src → lib}/serviceProvider/RegisteredServiceProvider.js +0 -0
- package/lib/serviceProvider/RegisteredServiceProvider.js.map +1 -0
- package/{src → lib}/serviceProvider/ServiceProviderAPI.d.ts +0 -0
- package/{src → lib}/serviceProvider/ServiceProviderAPI.js +0 -0
- package/lib/serviceProvider/ServiceProviderAPI.js.map +1 -0
- package/{src → lib}/serviceProvider/UpdateServiceProviderData.d.ts +0 -0
- package/{src → lib}/serviceProvider/UpdateServiceProviderData.js +0 -0
- package/lib/serviceProvider/UpdateServiceProviderData.js.map +1 -0
- package/{src → lib}/serviceProvider/index.d.ts +0 -0
- package/{src → lib}/serviceProvider/index.js +0 -0
- package/lib/serviceProvider/index.js.map +1 -0
- package/{src → lib}/services/Service.d.ts +0 -0
- package/{src → lib}/services/Service.js +0 -0
- package/lib/services/Service.js.map +1 -0
- package/{src → lib}/services/ServicesAPI.d.ts +0 -0
- package/{src → lib}/services/ServicesAPI.js +0 -0
- package/lib/services/ServicesAPI.js.map +1 -0
- package/{src → lib}/services/index.d.ts +0 -0
- package/{src → lib}/services/index.js +0 -0
- package/lib/services/index.js.map +1 -0
- package/{src → lib}/shims/browser/buffer.d.ts +0 -0
- package/{src → lib}/shims/browser/buffer.js +0 -0
- package/lib/shims/browser/buffer.js.map +1 -0
- package/{src → lib}/shims/browser/cookie.d.ts +0 -0
- package/{src → lib}/shims/browser/cookie.js +0 -0
- package/lib/shims/browser/cookie.js.map +1 -0
- package/{src → lib}/shims/browser/websocket.d.ts +0 -0
- package/{src → lib}/shims/browser/websocket.js +0 -0
- package/lib/shims/browser/websocket.js.map +1 -0
- package/{src → lib}/shims/node/buffer.d.ts +0 -0
- package/{src → lib}/shims/node/buffer.js +0 -0
- package/lib/shims/node/buffer.js.map +1 -0
- package/{src → lib}/shims/node/cookie.d.ts +0 -0
- package/{src → lib}/shims/node/cookie.js +0 -0
- package/lib/shims/node/cookie.js.map +1 -0
- package/{src → lib}/shims/node/random.d.ts +0 -0
- package/{src → lib}/shims/node/random.js +0 -0
- package/lib/shims/node/random.js.map +1 -0
- package/{src → lib}/shims/node/websocket.d.ts +0 -0
- package/{src → lib}/shims/node/websocket.js +0 -0
- package/lib/shims/node/websocket.js.map +1 -0
- package/{src → lib}/tcp/ReconnectingWebsocket.d.ts +0 -0
- package/{src → lib}/tcp/ReconnectingWebsocket.js +0 -0
- package/lib/tcp/ReconnectingWebsocket.js.map +1 -0
- package/{src → lib}/tcp/WebSocketClient.d.ts +0 -0
- package/{src → lib}/tcp/WebSocketClient.js +0 -0
- package/lib/tcp/WebSocketClient.js.map +1 -0
- package/{src → lib}/tcp/index.d.ts +0 -0
- package/{src → lib}/tcp/index.js +0 -0
- package/lib/tcp/index.js.map +1 -0
- package/{src → lib}/team/TeamError.d.ts +0 -0
- package/{src → lib}/team/TeamError.js +0 -0
- package/lib/team/TeamError.js.map +1 -0
- package/{src → lib}/team/billing/BillingAPI.d.ts +0 -0
- package/{src → lib}/team/billing/BillingAPI.js +0 -0
- package/lib/team/billing/BillingAPI.js.map +1 -0
- package/{src → lib}/team/billing/BillingInfo.d.ts +0 -0
- package/{src → lib}/team/billing/BillingInfo.js +0 -0
- package/lib/team/billing/BillingInfo.js.map +1 -0
- package/{src → lib}/team/billing/BillingTeamData.d.ts +0 -0
- package/{src → lib}/team/billing/BillingTeamData.js +0 -0
- package/lib/team/billing/BillingTeamData.js.map +1 -0
- package/{src → lib}/team/billing/CardData.d.ts +0 -0
- package/{src → lib}/team/billing/CardData.js +0 -0
- package/lib/team/billing/CardData.js.map +1 -0
- package/{src → lib}/team/billing/InvoiceData.d.ts +0 -0
- package/{src → lib}/team/billing/InvoiceData.js +0 -0
- package/lib/team/billing/InvoiceData.js.map +1 -0
- package/{src → lib}/team/billing/InvoiceListData.d.ts +0 -0
- package/{src → lib}/team/billing/InvoiceListData.js +0 -0
- package/lib/team/billing/InvoiceListData.js.map +1 -0
- package/{src → lib}/team/billing/InvoiceUpcomingData.d.ts +0 -0
- package/{src → lib}/team/billing/InvoiceUpcomingData.js +0 -0
- package/lib/team/billing/InvoiceUpcomingData.js.map +1 -0
- package/{src → lib}/team/billing/PlanData.d.ts +0 -0
- package/{src → lib}/team/billing/PlanData.js +0 -0
- package/lib/team/billing/PlanData.js.map +1 -0
- package/{src → lib}/team/billing/SupportedCurrency.d.ts +0 -0
- package/{src → lib}/team/billing/SupportedCurrency.js +0 -0
- package/lib/team/billing/SupportedCurrency.js.map +1 -0
- package/{src → lib}/team/billing/index.d.ts +0 -0
- package/{src → lib}/team/billing/index.js +0 -0
- package/lib/team/billing/index.js.map +1 -0
- package/{src → lib}/team/conversation/TeamConversation.d.ts +0 -0
- package/{src → lib}/team/conversation/TeamConversation.js +0 -0
- package/lib/team/conversation/TeamConversation.js.map +1 -0
- package/{src → lib}/team/conversation/TeamConversationAPI.d.ts +0 -0
- package/{src → lib}/team/conversation/TeamConversationAPI.js +0 -0
- package/lib/team/conversation/TeamConversationAPI.js.map +1 -0
- package/{src → lib}/team/conversation/index.d.ts +0 -0
- package/{src → lib}/team/conversation/index.js +0 -0
- package/lib/team/conversation/index.js.map +1 -0
- package/{src → lib}/team/data/TeamConversationCreateData.d.ts +0 -0
- package/{src → lib}/team/data/TeamConversationCreateData.js +0 -0
- package/lib/team/data/TeamConversationCreateData.js.map +1 -0
- package/{src → lib}/team/data/TeamConversationDeleteData.d.ts +0 -0
- package/{src → lib}/team/data/TeamConversationDeleteData.js +0 -0
- package/lib/team/data/TeamConversationDeleteData.js.map +1 -0
- package/{src → lib}/team/data/TeamFeatureConfigurationUpdateEventData.d.ts +0 -0
- package/{src → lib}/team/data/TeamFeatureConfigurationUpdateEventData.js +0 -0
- package/lib/team/data/TeamFeatureConfigurationUpdateEventData.js.map +1 -0
- package/{src → lib}/team/data/TeamMemberJoinData.d.ts +0 -0
- package/{src → lib}/team/data/TeamMemberJoinData.js +0 -0
- package/lib/team/data/TeamMemberJoinData.js.map +1 -0
- package/{src → lib}/team/data/TeamMemberLeaveData.d.ts +0 -0
- package/{src → lib}/team/data/TeamMemberLeaveData.js +0 -0
- package/lib/team/data/TeamMemberLeaveData.js.map +1 -0
- package/{src → lib}/team/data/TeamMemberUpdateData.d.ts +0 -0
- package/{src → lib}/team/data/TeamMemberUpdateData.js +0 -0
- package/lib/team/data/TeamMemberUpdateData.js.map +1 -0
- package/{src → lib}/team/data/TeamUpdateData.d.ts +0 -0
- package/{src → lib}/team/data/TeamUpdateData.js +0 -0
- package/lib/team/data/TeamUpdateData.js.map +1 -0
- package/{src → lib}/team/data/index.d.ts +0 -0
- package/{src → lib}/team/data/index.js +0 -0
- package/lib/team/data/index.js.map +1 -0
- package/{src → lib}/team/feature/Feature.d.ts +0 -0
- package/{src → lib}/team/feature/Feature.js +0 -0
- package/lib/team/feature/Feature.js.map +1 -0
- package/{src → lib}/team/feature/FeatureAPI.d.ts +0 -0
- package/{src → lib}/team/feature/FeatureAPI.js +0 -0
- package/lib/team/feature/FeatureAPI.js.map +1 -0
- package/{src → lib}/team/feature/FeatureError.d.ts +0 -0
- package/{src → lib}/team/feature/FeatureError.js +0 -0
- package/lib/team/feature/FeatureError.js.map +1 -0
- package/{src → lib}/team/feature/FeatureList.d.ts +0 -0
- package/{src → lib}/team/feature/FeatureList.js +0 -0
- package/lib/team/feature/FeatureList.js.map +1 -0
- package/{src → lib}/team/feature/index.d.ts +0 -0
- package/{src → lib}/team/feature/index.js +0 -0
- package/lib/team/feature/index.js.map +1 -0
- package/{src → lib}/team/identityprovider/IdentityProvider.d.ts +0 -0
- package/{src → lib}/team/identityprovider/IdentityProvider.js +0 -0
- package/lib/team/identityprovider/IdentityProvider.js.map +1 -0
- package/{src → lib}/team/identityprovider/IdentityProviderAPI.d.ts +0 -0
- package/{src → lib}/team/identityprovider/IdentityProviderAPI.js +0 -0
- package/lib/team/identityprovider/IdentityProviderAPI.js.map +1 -0
- package/{src → lib}/team/identityprovider/IdentityProviders.d.ts +0 -0
- package/{src → lib}/team/identityprovider/IdentityProviders.js +0 -0
- package/lib/team/identityprovider/IdentityProviders.js.map +1 -0
- package/{src → lib}/team/identityprovider/index.d.ts +0 -0
- package/{src → lib}/team/identityprovider/index.js +0 -0
- package/lib/team/identityprovider/index.js.map +1 -0
- package/{src → lib}/team/index.d.ts +0 -0
- package/{src → lib}/team/index.js +0 -0
- package/lib/team/index.js.map +1 -0
- package/{src → lib}/team/invitation/InvitationError.d.ts +0 -0
- package/{src → lib}/team/invitation/InvitationError.js +0 -0
- package/lib/team/invitation/InvitationError.js.map +1 -0
- package/{src → lib}/team/invitation/NewTeamInvitation.d.ts +0 -0
- package/{src → lib}/team/invitation/NewTeamInvitation.js +0 -0
- package/lib/team/invitation/NewTeamInvitation.js.map +1 -0
- package/{src → lib}/team/invitation/TeamInvitation.d.ts +0 -0
- package/{src → lib}/team/invitation/TeamInvitation.js +0 -0
- package/lib/team/invitation/TeamInvitation.js.map +1 -0
- package/{src → lib}/team/invitation/TeamInvitationAPI.d.ts +0 -0
- package/{src → lib}/team/invitation/TeamInvitationAPI.js +0 -0
- package/lib/team/invitation/TeamInvitationAPI.js.map +1 -0
- package/{src → lib}/team/invitation/TeamInvitationChunk.d.ts +0 -0
- package/{src → lib}/team/invitation/TeamInvitationChunk.js +0 -0
- package/lib/team/invitation/TeamInvitationChunk.js.map +1 -0
- package/{src → lib}/team/invitation/index.d.ts +0 -0
- package/{src → lib}/team/invitation/index.js +0 -0
- package/lib/team/invitation/index.js.map +1 -0
- package/{src → lib}/team/legalhold/LegalHoldAPI.d.ts +0 -0
- package/{src → lib}/team/legalhold/LegalHoldAPI.js +0 -0
- package/lib/team/legalhold/LegalHoldAPI.js.map +1 -0
- package/{src → lib}/team/legalhold/LegalHoldData.d.ts +0 -0
- package/{src → lib}/team/legalhold/LegalHoldData.js +0 -0
- package/lib/team/legalhold/LegalHoldData.js.map +1 -0
- package/{src → lib}/team/legalhold/LegalHoldMemberStatus.d.ts +0 -0
- package/{src → lib}/team/legalhold/LegalHoldMemberStatus.js +0 -0
- package/lib/team/legalhold/LegalHoldMemberStatus.js.map +1 -0
- package/{src → lib}/team/legalhold/NewLegalHoldData.d.ts +0 -0
- package/{src → lib}/team/legalhold/NewLegalHoldData.js +0 -0
- package/lib/team/legalhold/NewLegalHoldData.js.map +1 -0
- package/{src → lib}/team/legalhold/index.d.ts +0 -0
- package/{src → lib}/team/legalhold/index.js +0 -0
- package/lib/team/legalhold/index.js.map +1 -0
- package/{src → lib}/team/member/MemberAPI.d.ts +0 -0
- package/{src → lib}/team/member/MemberAPI.js +0 -0
- package/lib/team/member/MemberAPI.js.map +1 -0
- package/{src → lib}/team/member/MemberCSVResponse.d.ts +0 -0
- package/{src → lib}/team/member/MemberCSVResponse.js +0 -0
- package/lib/team/member/MemberCSVResponse.js.map +1 -0
- package/{src → lib}/team/member/MemberData.d.ts +0 -0
- package/{src → lib}/team/member/MemberData.js +0 -0
- package/lib/team/member/MemberData.js.map +1 -0
- package/{src → lib}/team/member/Members.d.ts +0 -0
- package/{src → lib}/team/member/Members.js +0 -0
- package/lib/team/member/Members.js.map +1 -0
- package/{src → lib}/team/member/Permissions.d.ts +0 -0
- package/{src → lib}/team/member/Permissions.js +0 -0
- package/lib/team/member/Permissions.js.map +1 -0
- package/{src → lib}/team/member/PermissionsData.d.ts +0 -0
- package/{src → lib}/team/member/PermissionsData.js +0 -0
- package/lib/team/member/PermissionsData.js.map +1 -0
- package/{src → lib}/team/member/Role.d.ts +0 -0
- package/{src → lib}/team/member/Role.js +0 -0
- package/lib/team/member/Role.js.map +1 -0
- package/{src → lib}/team/member/UpdatedMemberData.d.ts +0 -0
- package/{src → lib}/team/member/UpdatedMemberData.js +0 -0
- package/lib/team/member/UpdatedMemberData.js.map +1 -0
- package/{src → lib}/team/member/index.d.ts +0 -0
- package/{src → lib}/team/member/index.js +0 -0
- package/lib/team/member/index.js.map +1 -0
- package/{src → lib}/team/payment/InvoiceData.d.ts +0 -0
- package/{src → lib}/team/payment/InvoiceData.js +0 -0
- package/lib/team/payment/InvoiceData.js.map +1 -0
- package/{src → lib}/team/payment/PaymentAPI.d.ts +0 -0
- package/{src → lib}/team/payment/PaymentAPI.js +0 -0
- package/lib/team/payment/PaymentAPI.js.map +1 -0
- package/{src → lib}/team/payment/PaymentBillingData.d.ts +0 -0
- package/{src → lib}/team/payment/PaymentBillingData.js +0 -0
- package/lib/team/payment/PaymentBillingData.js.map +1 -0
- package/{src → lib}/team/payment/PaymentData.d.ts +0 -0
- package/{src → lib}/team/payment/PaymentData.js +0 -0
- package/lib/team/payment/PaymentData.js.map +1 -0
- package/{src → lib}/team/payment/PaymentDataUpdate.d.ts +0 -0
- package/{src → lib}/team/payment/PaymentDataUpdate.js +0 -0
- package/lib/team/payment/PaymentDataUpdate.js.map +1 -0
- package/{src → lib}/team/payment/PaymentInterval.d.ts +0 -0
- package/{src → lib}/team/payment/PaymentInterval.js +0 -0
- package/lib/team/payment/PaymentInterval.js.map +1 -0
- package/{src → lib}/team/payment/PaymentPlan.d.ts +0 -0
- package/{src → lib}/team/payment/PaymentPlan.js +0 -0
- package/lib/team/payment/PaymentPlan.js.map +1 -0
- package/{src → lib}/team/payment/PaymentStripeCharge.d.ts +0 -0
- package/{src → lib}/team/payment/PaymentStripeCharge.js +0 -0
- package/lib/team/payment/PaymentStripeCharge.js.map +1 -0
- package/{src → lib}/team/payment/PaymentStripeInvoice.d.ts +0 -0
- package/{src → lib}/team/payment/PaymentStripeInvoice.js +0 -0
- package/lib/team/payment/PaymentStripeInvoice.js.map +1 -0
- package/{src → lib}/team/payment/PaymentStripeInvoices.d.ts +0 -0
- package/{src → lib}/team/payment/PaymentStripeInvoices.js +0 -0
- package/lib/team/payment/PaymentStripeInvoices.js.map +1 -0
- package/{src → lib}/team/payment/PaymentStripePlan.d.ts +0 -0
- package/{src → lib}/team/payment/PaymentStripePlan.js +0 -0
- package/lib/team/payment/PaymentStripePlan.js.map +1 -0
- package/{src → lib}/team/payment/SupportedCurrency.d.ts +0 -0
- package/{src → lib}/team/payment/SupportedCurrency.js +0 -0
- package/lib/team/payment/SupportedCurrency.js.map +1 -0
- package/{src → lib}/team/payment/index.d.ts +0 -0
- package/{src → lib}/team/payment/index.js +0 -0
- package/lib/team/payment/index.js.map +1 -0
- package/{src → lib}/team/scim/NewScimToken.d.ts +0 -0
- package/{src → lib}/team/scim/NewScimToken.js +0 -0
- package/lib/team/scim/NewScimToken.js.map +1 -0
- package/{src → lib}/team/scim/ScimAPI.d.ts +0 -0
- package/{src → lib}/team/scim/ScimAPI.js +0 -0
- package/lib/team/scim/ScimAPI.js.map +1 -0
- package/{src → lib}/team/scim/ScimTokenInfo.d.ts +0 -0
- package/{src → lib}/team/scim/ScimTokenInfo.js +0 -0
- package/lib/team/scim/ScimTokenInfo.js.map +1 -0
- package/{src → lib}/team/scim/ScimTokenInfoList.d.ts +0 -0
- package/{src → lib}/team/scim/ScimTokenInfoList.js +0 -0
- package/lib/team/scim/ScimTokenInfoList.js.map +1 -0
- package/{src → lib}/team/scim/index.d.ts +0 -0
- package/{src → lib}/team/scim/index.js +0 -0
- package/lib/team/scim/index.js.map +1 -0
- package/{src → lib}/team/search/TeamContact.d.ts +0 -0
- package/{src → lib}/team/search/TeamContact.js +0 -0
- package/lib/team/search/TeamContact.js.map +1 -0
- package/{src → lib}/team/search/TeamSearchAPI.d.ts +0 -0
- package/{src → lib}/team/search/TeamSearchAPI.js +0 -0
- package/lib/team/search/TeamSearchAPI.js.map +1 -0
- package/{src → lib}/team/search/TeamSearchOptions.d.ts +0 -0
- package/{src → lib}/team/search/TeamSearchOptions.js +0 -0
- package/lib/team/search/TeamSearchOptions.js.map +1 -0
- package/{src → lib}/team/search/TeamSearchResult.d.ts +0 -0
- package/{src → lib}/team/search/TeamSearchResult.js +0 -0
- package/lib/team/search/TeamSearchResult.js.map +1 -0
- package/{src → lib}/team/search/index.d.ts +0 -0
- package/{src → lib}/team/search/index.js +0 -0
- package/lib/team/search/index.js.map +1 -0
- package/{src → lib}/team/service/Provider.d.ts +0 -0
- package/{src → lib}/team/service/Provider.js +0 -0
- package/lib/team/service/Provider.js.map +1 -0
- package/{src → lib}/team/service/Service.d.ts +0 -0
- package/{src → lib}/team/service/Service.js +0 -0
- package/lib/team/service/Service.js.map +1 -0
- package/{src → lib}/team/service/ServiceAPI.d.ts +0 -0
- package/{src → lib}/team/service/ServiceAPI.js +0 -0
- package/lib/team/service/ServiceAPI.js.map +1 -0
- package/{src → lib}/team/service/ServiceWhitelistData.d.ts +0 -0
- package/{src → lib}/team/service/ServiceWhitelistData.js +0 -0
- package/lib/team/service/ServiceWhitelistData.js.map +1 -0
- package/{src → lib}/team/service/Services.d.ts +0 -0
- package/{src → lib}/team/service/Services.js +0 -0
- package/lib/team/service/Services.js.map +1 -0
- package/{src → lib}/team/service/index.d.ts +0 -0
- package/{src → lib}/team/service/index.js +0 -0
- package/lib/team/service/index.js.map +1 -0
- package/{src → lib}/team/team/LeadData.d.ts +0 -0
- package/{src → lib}/team/team/LeadData.js +0 -0
- package/lib/team/team/LeadData.js.map +1 -0
- package/{src → lib}/team/team/NewTeamData.d.ts +0 -0
- package/{src → lib}/team/team/NewTeamData.js +0 -0
- package/lib/team/team/NewTeamData.js.map +1 -0
- package/{src → lib}/team/team/TeamAPI.d.ts +0 -0
- package/{src → lib}/team/team/TeamAPI.js +0 -0
- package/lib/team/team/TeamAPI.js.map +1 -0
- package/{src → lib}/team/team/TeamChunkData.d.ts +0 -0
- package/{src → lib}/team/team/TeamChunkData.js +0 -0
- package/lib/team/team/TeamChunkData.js.map +1 -0
- package/{src → lib}/team/team/TeamData.d.ts +0 -0
- package/{src → lib}/team/team/TeamData.js +0 -0
- package/lib/team/team/TeamData.js.map +1 -0
- package/{src → lib}/team/team/TeamInfo.d.ts +0 -0
- package/{src → lib}/team/team/TeamInfo.js +0 -0
- package/lib/team/team/TeamInfo.js.map +1 -0
- package/{src → lib}/team/team/TeamSizeData.d.ts +0 -0
- package/{src → lib}/team/team/TeamSizeData.js +0 -0
- package/lib/team/team/TeamSizeData.js.map +1 -0
- package/{src → lib}/team/team/UpdateTeamData.d.ts +0 -0
- package/{src → lib}/team/team/UpdateTeamData.js +0 -0
- package/lib/team/team/UpdateTeamData.js.map +1 -0
- package/{src → lib}/team/team/index.d.ts +0 -0
- package/{src → lib}/team/team/index.js +0 -0
- package/lib/team/team/index.js.map +1 -0
- package/{src → lib}/user/Activate.d.ts +0 -0
- package/{src → lib}/user/Activate.js +0 -0
- package/lib/user/Activate.js.map +1 -0
- package/{src → lib}/user/ActivationResponse.d.ts +0 -0
- package/{src → lib}/user/ActivationResponse.js +0 -0
- package/lib/user/ActivationResponse.js.map +1 -0
- package/{src → lib}/user/CheckHandles.d.ts +0 -0
- package/{src → lib}/user/CheckHandles.js +0 -0
- package/lib/user/CheckHandles.js.map +1 -0
- package/{src → lib}/user/CompletePasswordReset.d.ts +0 -0
- package/{src → lib}/user/CompletePasswordReset.js +0 -0
- package/lib/user/CompletePasswordReset.js.map +1 -0
- package/{src → lib}/user/Contact.d.ts +0 -0
- package/{src → lib}/user/Contact.js +0 -0
- package/lib/user/Contact.js.map +1 -0
- package/{src → lib}/user/HandleInfo.d.ts +0 -0
- package/{src → lib}/user/HandleInfo.js +0 -0
- package/lib/user/HandleInfo.js.map +1 -0
- package/{src → lib}/user/LimitedQualifiedUserIdList.d.ts +0 -0
- package/{src → lib}/user/LimitedQualifiedUserIdList.js +0 -0
- package/lib/user/LimitedQualifiedUserIdList.js.map +1 -0
- package/{src → lib}/user/ManagedSource.d.ts +0 -0
- package/{src → lib}/user/ManagedSource.js +0 -0
- package/lib/user/ManagedSource.js.map +1 -0
- package/{src → lib}/user/NewPasswordReset.d.ts +0 -0
- package/{src → lib}/user/NewPasswordReset.js +0 -0
- package/lib/user/NewPasswordReset.js.map +1 -0
- package/{src → lib}/user/QualifiedHandle.d.ts +0 -0
- package/{src → lib}/user/QualifiedHandle.js +0 -0
- package/lib/user/QualifiedHandle.js.map +1 -0
- package/{src → lib}/user/QualifiedId.d.ts +0 -0
- package/{src → lib}/user/QualifiedId.js +0 -0
- package/lib/user/QualifiedId.js.map +1 -0
- package/{src → lib}/user/RTCConfiguration.d.ts +0 -0
- package/{src → lib}/user/RTCConfiguration.js +0 -0
- package/lib/user/RTCConfiguration.js.map +1 -0
- package/{src → lib}/user/RTCIceServer.d.ts +0 -0
- package/{src → lib}/user/RTCIceServer.js +0 -0
- package/lib/user/RTCIceServer.js.map +1 -0
- package/{src → lib}/user/RichInfo.d.ts +0 -0
- package/{src → lib}/user/RichInfo.js +0 -0
- package/lib/user/RichInfo.js.map +1 -0
- package/{src → lib}/user/SearchResult.d.ts +0 -0
- package/{src → lib}/user/SearchResult.js +0 -0
- package/lib/user/SearchResult.js.map +1 -0
- package/{src → lib}/user/SendActivationCode.d.ts +0 -0
- package/{src → lib}/user/SendActivationCode.js +0 -0
- package/lib/user/SendActivationCode.js.map +1 -0
- package/{src → lib}/user/User.d.ts +0 -0
- package/{src → lib}/user/User.js +0 -0
- package/lib/user/User.js.map +1 -0
- package/{src → lib}/user/UserAPI.d.ts +0 -0
- package/{src → lib}/user/UserAPI.js +0 -0
- package/lib/user/UserAPI.js.map +1 -0
- package/{src → lib}/user/UserAsset.d.ts +0 -0
- package/{src → lib}/user/UserAsset.js +0 -0
- package/lib/user/UserAsset.js.map +1 -0
- package/{src → lib}/user/UserError.d.ts +0 -0
- package/{src → lib}/user/UserError.js +0 -0
- package/lib/user/UserError.js.map +1 -0
- package/{src → lib}/user/UserPreKeyBundleMap.d.ts +0 -0
- package/{src → lib}/user/UserPreKeyBundleMap.js +0 -0
- package/lib/user/UserPreKeyBundleMap.js.map +1 -0
- package/{src → lib}/user/UserUpdate.d.ts +0 -0
- package/{src → lib}/user/UserUpdate.js +0 -0
- package/lib/user/UserUpdate.js.map +1 -0
- package/{src → lib}/user/VerifyDelete.d.ts +0 -0
- package/{src → lib}/user/VerifyDelete.js +0 -0
- package/lib/user/VerifyDelete.js.map +1 -0
- package/{src → lib}/user/data/UserActivateData.d.ts +0 -0
- package/{src → lib}/user/data/UserActivateData.js +0 -0
- package/lib/user/data/UserActivateData.js.map +1 -0
- package/{src → lib}/user/data/UserClientAddData.d.ts +0 -0
- package/{src → lib}/user/data/UserClientAddData.js +0 -0
- package/lib/user/data/UserClientAddData.js.map +1 -0
- package/{src → lib}/user/data/UserClientRemoveData.d.ts +0 -0
- package/{src → lib}/user/data/UserClientRemoveData.js +0 -0
- package/lib/user/data/UserClientRemoveData.js.map +1 -0
- package/{src → lib}/user/data/UserConnectionData.d.ts +0 -0
- package/{src → lib}/user/data/UserConnectionData.js +0 -0
- package/lib/user/data/UserConnectionData.js.map +1 -0
- package/{src → lib}/user/data/UserDeleteData.d.ts +0 -0
- package/{src → lib}/user/data/UserDeleteData.js +0 -0
- package/lib/user/data/UserDeleteData.js.map +1 -0
- package/{src → lib}/user/data/UserLegalHoldDisableData.d.ts +0 -0
- package/{src → lib}/user/data/UserLegalHoldDisableData.js +0 -0
- package/lib/user/data/UserLegalHoldDisableData.js.map +1 -0
- package/{src → lib}/user/data/UserLegalHoldEnableData.d.ts +0 -0
- package/{src → lib}/user/data/UserLegalHoldEnableData.js +0 -0
- package/lib/user/data/UserLegalHoldEnableData.js.map +1 -0
- package/{src → lib}/user/data/UserLegalHoldRequestData.d.ts +0 -0
- package/{src → lib}/user/data/UserLegalHoldRequestData.js +0 -0
- package/lib/user/data/UserLegalHoldRequestData.js.map +1 -0
- package/{src → lib}/user/data/UserPropertiesDeleteData.d.ts +0 -0
- package/{src → lib}/user/data/UserPropertiesDeleteData.js +0 -0
- package/lib/user/data/UserPropertiesDeleteData.js.map +1 -0
- package/{src → lib}/user/data/UserPropertiesSetData.d.ts +0 -0
- package/{src → lib}/user/data/UserPropertiesSetData.js +0 -0
- package/lib/user/data/UserPropertiesSetData.js.map +1 -0
- package/{src → lib}/user/data/UserPushRemoveData.d.ts +0 -0
- package/{src → lib}/user/data/UserPushRemoveData.js +0 -0
- package/lib/user/data/UserPushRemoveData.js.map +1 -0
- package/{src → lib}/user/data/UserPushTokenProvider.d.ts +0 -0
- package/{src → lib}/user/data/UserPushTokenProvider.js +0 -0
- package/lib/user/data/UserPushTokenProvider.js.map +1 -0
- package/{src → lib}/user/data/UserUpdateData.d.ts +0 -0
- package/{src → lib}/user/data/UserUpdateData.js +0 -0
- package/lib/user/data/UserUpdateData.js.map +1 -0
- package/{src → lib}/user/data/index.d.ts +0 -0
- package/{src → lib}/user/data/index.js +0 -0
- package/lib/user/data/index.js.map +1 -0
- package/{src → lib}/user/index.d.ts +0 -0
- package/{src → lib}/user/index.js +0 -0
- package/lib/user/index.js.map +1 -0
- package/{src → lib}/validation/ValidationError.d.ts +0 -0
- package/{src → lib}/validation/ValidationError.js +0 -0
- package/lib/validation/ValidationError.js.map +1 -0
- package/{src → lib}/validation/index.d.ts +0 -0
- package/{src → lib}/validation/index.js +0 -0
- package/lib/validation/index.js.map +1 -0
- package/package.json +20 -23
- package/src/APIClient.js.map +0 -1
- package/src/Config.js.map +0 -1
- package/src/account/AccountAPI.js.map +0 -1
- package/src/account/AccountError.js.map +0 -1
- package/src/account/BackendConfigData.js.map +0 -1
- package/src/account/CallConfigData.js.map +0 -1
- package/src/account/DomainData.js.map +0 -1
- package/src/account/SSOSettings.js.map +0 -1
- package/src/account/index.js.map +0 -1
- package/src/asset/AssetAPI.js.map +0 -1
- package/src/asset/AssetRetentionPolicy.js.map +0 -1
- package/src/asset/AssetUploadData.js.map +0 -1
- package/src/asset/AssetUtil.js.map +0 -1
- package/src/asset/index.js.map +0 -1
- package/src/auth/AccessTokenData.js.map +0 -1
- package/src/auth/AccessTokenStore.js.map +0 -1
- package/src/auth/AuthAPI.js.map +0 -1
- package/src/auth/AuthenticationError.js.map +0 -1
- package/src/auth/ClientPreKey.js.map +0 -1
- package/src/auth/Context.js.map +0 -1
- package/src/auth/Cookie.js.map +0 -1
- package/src/auth/CookieList.js.map +0 -1
- package/src/auth/CookieStore.js.map +0 -1
- package/src/auth/LoginCodeResponse.js.map +0 -1
- package/src/auth/LoginData.js.map +0 -1
- package/src/auth/PreKey.js.map +0 -1
- package/src/auth/PreKeyBundle.js.map +0 -1
- package/src/auth/RegisterData.js.map +0 -1
- package/src/auth/SendLoginCode.js.map +0 -1
- package/src/auth/VerificationActionType.js.map +0 -1
- package/src/auth/index.js.map +0 -1
- package/src/auth/parseAccessToken.js.map +0 -1
- package/src/broadcast/BroadcastAPI.js.map +0 -1
- package/src/broadcast/index.js.map +0 -1
- package/src/client/ClientAPI.js.map +0 -1
- package/src/client/ClientCapability.js.map +0 -1
- package/src/client/ClientCapabilityData.js.map +0 -1
- package/src/client/ClientClassification.js.map +0 -1
- package/src/client/ClientError.js.map +0 -1
- package/src/client/ClientType.js.map +0 -1
- package/src/client/Location.js.map +0 -1
- package/src/client/NewClient.js.map +0 -1
- package/src/client/PublicClient.js.map +0 -1
- package/src/client/QualifiedPublicClients.js.map +0 -1
- package/src/client/RegisteredClient.js.map +0 -1
- package/src/client/index.js.map +0 -1
- package/src/connection/Connection.js.map +0 -1
- package/src/connection/ConnectionAPI.js.map +0 -1
- package/src/connection/ConnectionError.js.map +0 -1
- package/src/connection/ConnectionRequest.js.map +0 -1
- package/src/connection/ConnectionStatus.js.map +0 -1
- package/src/connection/ConnectionUpdate.js.map +0 -1
- package/src/connection/UserConnectionList.js.map +0 -1
- package/src/connection/index.js.map +0 -1
- package/src/conversation/ClientMismatch.js.map +0 -1
- package/src/conversation/Conversation.js.map +0 -1
- package/src/conversation/ConversationAPI/ConversationAPI.js +0 -873
- package/src/conversation/ConversationAPI/ConversationAPI.js.map +0 -1
- package/src/conversation/ConversationAPI/index.js.map +0 -1
- package/src/conversation/ConversationCode.js.map +0 -1
- package/src/conversation/ConversationError.js.map +0 -1
- package/src/conversation/ConversationIds.js.map +0 -1
- package/src/conversation/ConversationMembers.js.map +0 -1
- package/src/conversation/ConversationRole.js.map +0 -1
- package/src/conversation/Conversations.js.map +0 -1
- package/src/conversation/Invite.js.map +0 -1
- package/src/conversation/Member.js.map +0 -1
- package/src/conversation/MessageSendingStatus.js.map +0 -1
- package/src/conversation/MutedStatus.js.map +0 -1
- package/src/conversation/NewConversation.js.map +0 -1
- package/src/conversation/NewOTRMessage.js.map +0 -1
- package/src/conversation/OTRClientMap.js.map +0 -1
- package/src/conversation/OTRRecipients.js.map +0 -1
- package/src/conversation/OtherMember.js.map +0 -1
- package/src/conversation/QualifiedConversationIds.js.map +0 -1
- package/src/conversation/QualifiedUserClients.js.map +0 -1
- package/src/conversation/RemoteConversations.js.map +0 -1
- package/src/conversation/ServiceRef.js.map +0 -1
- package/src/conversation/UserClients.js.map +0 -1
- package/src/conversation/data/ConversationAccessUpdateData.js.map +0 -1
- package/src/conversation/data/ConversationCodeUpdateData.js.map +0 -1
- package/src/conversation/data/ConversationConnectRequestData.js.map +0 -1
- package/src/conversation/data/ConversationCreateData.js.map +0 -1
- package/src/conversation/data/ConversationJoinData.js.map +0 -1
- package/src/conversation/data/ConversationMLSMessageAddData.js.map +0 -1
- package/src/conversation/data/ConversationMLSWelcomeData.js.map +0 -1
- package/src/conversation/data/ConversationMemberJoinData.js.map +0 -1
- package/src/conversation/data/ConversationMemberLeaveData.js.map +0 -1
- package/src/conversation/data/ConversationMemberUpdateData.js.map +0 -1
- package/src/conversation/data/ConversationMessageTimerUpdateData.js.map +0 -1
- package/src/conversation/data/ConversationNameUpdateData.js.map +0 -1
- package/src/conversation/data/ConversationOtrMessageAddData.js.map +0 -1
- package/src/conversation/data/ConversationReceiptModeUpdateData.js.map +0 -1
- package/src/conversation/data/ConversationRenameData.js.map +0 -1
- package/src/conversation/data/ConversationTypingData.js.map +0 -1
- package/src/conversation/data/MlsEventData.js.map +0 -1
- package/src/conversation/data/index.js.map +0 -1
- package/src/conversation/index.js.map +0 -1
- package/src/env/Backend.js.map +0 -1
- package/src/env/index.js.map +0 -1
- package/src/event/BackendEvent.js.map +0 -1
- package/src/event/ConversationEvent.js.map +0 -1
- package/src/event/TeamEvent.js.map +0 -1
- package/src/event/UserEvent.js.map +0 -1
- package/src/event/index.js.map +0 -1
- package/src/giphy/GiphyAPI.js.map +0 -1
- package/src/giphy/GiphyImage.js.map +0 -1
- package/src/giphy/GiphyOptions.js.map +0 -1
- package/src/giphy/GiphyResult.js.map +0 -1
- package/src/giphy/index.js.map +0 -1
- package/src/http/BackendError.js.map +0 -1
- package/src/http/BackendErrorLabel.js.map +0 -1
- package/src/http/BackendErrorMapper.js.map +0 -1
- package/src/http/ConnectionState.js.map +0 -1
- package/src/http/ContentType.js.map +0 -1
- package/src/http/HttpClient.js.map +0 -1
- package/src/http/NetworkError.js.map +0 -1
- package/src/http/RequestCancelable.js.map +0 -1
- package/src/http/RequestProgressHandler.js.map +0 -1
- package/src/http/TraceState.js.map +0 -1
- package/src/http/index.js.map +0 -1
- package/src/notification/Notification.js.map +0 -1
- package/src/notification/NotificationAPI/NotificationAPI.js.map +0 -1
- package/src/notification/NotificationAPI/NotificationsAPI.mocks.js.map +0 -1
- package/src/notification/NotificationAPI/index.js.map +0 -1
- package/src/notification/NotificationList.js.map +0 -1
- package/src/notification/index.js.map +0 -1
- package/src/obfuscation/ObfuscationUtil.js.map +0 -1
- package/src/obfuscation/index.js.map +0 -1
- package/src/self/ChangePassword.js.map +0 -1
- package/src/self/Consent.js.map +0 -1
- package/src/self/ConsentResults.js.map +0 -1
- package/src/self/ConsentType.js.map +0 -1
- package/src/self/Delete.js.map +0 -1
- package/src/self/Name.js.map +0 -1
- package/src/self/Picture.js.map +0 -1
- package/src/self/SSOSignature.js.map +0 -1
- package/src/self/Self.js.map +0 -1
- package/src/self/SelfAPI.js.map +0 -1
- package/src/self/index.js.map +0 -1
- package/src/serviceProvider/LoginServiceProviderData.js.map +0 -1
- package/src/serviceProvider/NewServiceProvider.js.map +0 -1
- package/src/serviceProvider/RegisteredServiceProvider.js.map +0 -1
- package/src/serviceProvider/ServiceProviderAPI.js.map +0 -1
- package/src/serviceProvider/UpdateServiceProviderData.js.map +0 -1
- package/src/serviceProvider/index.js.map +0 -1
- package/src/services/Service.js.map +0 -1
- package/src/services/ServicesAPI.js.map +0 -1
- package/src/services/index.js.map +0 -1
- package/src/shims/browser/buffer.js.map +0 -1
- package/src/shims/browser/cookie.js.map +0 -1
- package/src/shims/browser/websocket.js.map +0 -1
- package/src/shims/node/buffer.js.map +0 -1
- package/src/shims/node/cookie.js.map +0 -1
- package/src/shims/node/random.js.map +0 -1
- package/src/shims/node/websocket.js.map +0 -1
- package/src/tcp/ReconnectingWebsocket.js.map +0 -1
- package/src/tcp/WebSocketClient.js.map +0 -1
- package/src/tcp/index.js.map +0 -1
- package/src/team/TeamError.js.map +0 -1
- package/src/team/billing/BillingAPI.js.map +0 -1
- package/src/team/billing/BillingInfo.js.map +0 -1
- package/src/team/billing/BillingTeamData.js.map +0 -1
- package/src/team/billing/CardData.js.map +0 -1
- package/src/team/billing/InvoiceData.js.map +0 -1
- package/src/team/billing/InvoiceListData.js.map +0 -1
- package/src/team/billing/InvoiceUpcomingData.js.map +0 -1
- package/src/team/billing/PlanData.js.map +0 -1
- package/src/team/billing/SupportedCurrency.js.map +0 -1
- package/src/team/billing/index.js.map +0 -1
- package/src/team/conversation/TeamConversation.js.map +0 -1
- package/src/team/conversation/TeamConversationAPI.js.map +0 -1
- package/src/team/conversation/index.js.map +0 -1
- package/src/team/data/TeamConversationCreateData.js.map +0 -1
- package/src/team/data/TeamConversationDeleteData.js.map +0 -1
- package/src/team/data/TeamFeatureConfigurationUpdateEventData.js.map +0 -1
- package/src/team/data/TeamMemberJoinData.js.map +0 -1
- package/src/team/data/TeamMemberLeaveData.js.map +0 -1
- package/src/team/data/TeamMemberUpdateData.js.map +0 -1
- package/src/team/data/TeamUpdateData.js.map +0 -1
- package/src/team/data/index.js.map +0 -1
- package/src/team/feature/Feature.js.map +0 -1
- package/src/team/feature/FeatureAPI.js.map +0 -1
- package/src/team/feature/FeatureError.js.map +0 -1
- package/src/team/feature/FeatureList.js.map +0 -1
- package/src/team/feature/index.js.map +0 -1
- package/src/team/identityprovider/IdentityProvider.js.map +0 -1
- package/src/team/identityprovider/IdentityProviderAPI.js.map +0 -1
- package/src/team/identityprovider/IdentityProviders.js.map +0 -1
- package/src/team/identityprovider/index.js.map +0 -1
- package/src/team/index.js.map +0 -1
- package/src/team/invitation/InvitationError.js.map +0 -1
- package/src/team/invitation/NewTeamInvitation.js.map +0 -1
- package/src/team/invitation/TeamInvitation.js.map +0 -1
- package/src/team/invitation/TeamInvitationAPI.js.map +0 -1
- package/src/team/invitation/TeamInvitationChunk.js.map +0 -1
- package/src/team/invitation/index.js.map +0 -1
- package/src/team/legalhold/LegalHoldAPI.js.map +0 -1
- package/src/team/legalhold/LegalHoldData.js.map +0 -1
- package/src/team/legalhold/LegalHoldMemberStatus.js.map +0 -1
- package/src/team/legalhold/NewLegalHoldData.js.map +0 -1
- package/src/team/legalhold/index.js.map +0 -1
- package/src/team/member/MemberAPI.js.map +0 -1
- package/src/team/member/MemberCSVResponse.js.map +0 -1
- package/src/team/member/MemberData.js.map +0 -1
- package/src/team/member/Members.js.map +0 -1
- package/src/team/member/Permissions.js.map +0 -1
- package/src/team/member/PermissionsData.js.map +0 -1
- package/src/team/member/Role.js.map +0 -1
- package/src/team/member/UpdatedMemberData.js.map +0 -1
- package/src/team/member/index.js.map +0 -1
- package/src/team/payment/InvoiceData.js.map +0 -1
- package/src/team/payment/PaymentAPI.js.map +0 -1
- package/src/team/payment/PaymentBillingData.js.map +0 -1
- package/src/team/payment/PaymentData.js.map +0 -1
- package/src/team/payment/PaymentDataUpdate.js.map +0 -1
- package/src/team/payment/PaymentInterval.js.map +0 -1
- package/src/team/payment/PaymentPlan.js.map +0 -1
- package/src/team/payment/PaymentStripeCharge.js.map +0 -1
- package/src/team/payment/PaymentStripeInvoice.js.map +0 -1
- package/src/team/payment/PaymentStripeInvoices.js.map +0 -1
- package/src/team/payment/PaymentStripePlan.js.map +0 -1
- package/src/team/payment/SupportedCurrency.js.map +0 -1
- package/src/team/payment/index.js.map +0 -1
- package/src/team/scim/NewScimToken.js.map +0 -1
- package/src/team/scim/ScimAPI.js.map +0 -1
- package/src/team/scim/ScimTokenInfo.js.map +0 -1
- package/src/team/scim/ScimTokenInfoList.js.map +0 -1
- package/src/team/scim/index.js.map +0 -1
- package/src/team/search/TeamContact.js.map +0 -1
- package/src/team/search/TeamSearchAPI.js.map +0 -1
- package/src/team/search/TeamSearchOptions.js.map +0 -1
- package/src/team/search/TeamSearchResult.js.map +0 -1
- package/src/team/search/index.js.map +0 -1
- package/src/team/service/Provider.js.map +0 -1
- package/src/team/service/Service.js.map +0 -1
- package/src/team/service/ServiceAPI.js.map +0 -1
- package/src/team/service/ServiceWhitelistData.js.map +0 -1
- package/src/team/service/Services.js.map +0 -1
- package/src/team/service/index.js.map +0 -1
- package/src/team/team/LeadData.js.map +0 -1
- package/src/team/team/NewTeamData.js.map +0 -1
- package/src/team/team/TeamAPI.js.map +0 -1
- package/src/team/team/TeamChunkData.js.map +0 -1
- package/src/team/team/TeamData.js.map +0 -1
- package/src/team/team/TeamInfo.js.map +0 -1
- package/src/team/team/TeamSizeData.js.map +0 -1
- package/src/team/team/UpdateTeamData.js.map +0 -1
- package/src/team/team/index.js.map +0 -1
- package/src/user/Activate.js.map +0 -1
- package/src/user/ActivationResponse.js.map +0 -1
- package/src/user/CheckHandles.js.map +0 -1
- package/src/user/CompletePasswordReset.js.map +0 -1
- package/src/user/Contact.js.map +0 -1
- package/src/user/HandleInfo.js.map +0 -1
- package/src/user/LimitedQualifiedUserIdList.js.map +0 -1
- package/src/user/ManagedSource.js.map +0 -1
- package/src/user/NewPasswordReset.js.map +0 -1
- package/src/user/QualifiedHandle.js.map +0 -1
- package/src/user/QualifiedId.js.map +0 -1
- package/src/user/RTCConfiguration.js.map +0 -1
- package/src/user/RTCIceServer.js.map +0 -1
- package/src/user/RichInfo.js.map +0 -1
- package/src/user/SearchResult.js.map +0 -1
- package/src/user/SendActivationCode.js.map +0 -1
- package/src/user/User.js.map +0 -1
- package/src/user/UserAPI.js.map +0 -1
- package/src/user/UserAsset.js.map +0 -1
- package/src/user/UserError.js.map +0 -1
- package/src/user/UserPreKeyBundleMap.js.map +0 -1
- package/src/user/UserUpdate.js.map +0 -1
- package/src/user/VerifyDelete.js.map +0 -1
- package/src/user/data/UserActivateData.js.map +0 -1
- package/src/user/data/UserClientAddData.js.map +0 -1
- package/src/user/data/UserClientRemoveData.js.map +0 -1
- package/src/user/data/UserConnectionData.js.map +0 -1
- package/src/user/data/UserDeleteData.js.map +0 -1
- package/src/user/data/UserLegalHoldDisableData.js.map +0 -1
- package/src/user/data/UserLegalHoldEnableData.js.map +0 -1
- package/src/user/data/UserLegalHoldRequestData.js.map +0 -1
- package/src/user/data/UserPropertiesDeleteData.js.map +0 -1
- package/src/user/data/UserPropertiesSetData.js.map +0 -1
- package/src/user/data/UserPushRemoveData.js.map +0 -1
- package/src/user/data/UserPushTokenProvider.js.map +0 -1
- package/src/user/data/UserUpdateData.js.map +0 -1
- package/src/user/data/index.js.map +0 -1
- package/src/user/index.js.map +0 -1
- package/src/validation/ValidationError.js.map +0 -1
- package/src/validation/index.js.map +0 -1
|
@@ -0,0 +1,873 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Wire
|
|
4
|
+
* Copyright (C) 2018 Wire Swiss GmbH
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU General Public License as published by
|
|
8
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
* (at your option) any later version.
|
|
10
|
+
*
|
|
11
|
+
* This program is distributed in the hope that it will be useful,
|
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
+
* GNU General Public License for more details.
|
|
15
|
+
*
|
|
16
|
+
* You should have received a copy of the GNU General Public License
|
|
17
|
+
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.ConversationAPI = void 0;
|
|
25
|
+
const otr_1 = require("@wireapp/protocol-messaging/web/otr");
|
|
26
|
+
const axios_1 = __importDefault(require("axios"));
|
|
27
|
+
const validation_1 = require("../../validation");
|
|
28
|
+
const __1 = require("..");
|
|
29
|
+
const http_1 = require("../../http");
|
|
30
|
+
const ConversationError_1 = require("../ConversationError");
|
|
31
|
+
const ArrayUtil_1 = require("@wireapp/commons/lib/util/ArrayUtil");
|
|
32
|
+
class ConversationAPI {
|
|
33
|
+
constructor(client, backendFeatures) {
|
|
34
|
+
this.client = client;
|
|
35
|
+
this.backendFeatures = backendFeatures;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Delete a conversation code.
|
|
39
|
+
* @param conversationId ID of conversation to delete the code for
|
|
40
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/deleteConversationCode
|
|
41
|
+
*/
|
|
42
|
+
async deleteConversationCode(conversationId) {
|
|
43
|
+
const config = {
|
|
44
|
+
method: 'delete',
|
|
45
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.CODE}`,
|
|
46
|
+
};
|
|
47
|
+
const response = await this.client.sendJSON(config);
|
|
48
|
+
return response.data;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Use `deleteService()` instead.
|
|
52
|
+
*/
|
|
53
|
+
deleteBot(conversationId, serviceId) {
|
|
54
|
+
return this.deleteService(conversationId, serviceId);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Remove service from conversation.
|
|
58
|
+
* @param conversationId The conversation ID to remove the service from
|
|
59
|
+
* @param serviceId The ID of the service to be removed from the conversation
|
|
60
|
+
*/
|
|
61
|
+
async deleteService(conversationId, serviceId) {
|
|
62
|
+
const config = {
|
|
63
|
+
method: 'delete',
|
|
64
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.BOTS}/${serviceId}`,
|
|
65
|
+
};
|
|
66
|
+
await this.client.sendJSON(config);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Remove member from conversation.
|
|
70
|
+
* @param conversationId The conversation ID to remove the user from
|
|
71
|
+
* @param userId The user to remove
|
|
72
|
+
* @see https://staging-nginz-https.zinfra.io/api/swagger-ui/#/default/delete_conversations__cnv_domain___cnv__members__usr_domain___usr_
|
|
73
|
+
*/
|
|
74
|
+
async deleteMember(conversationId, userId) {
|
|
75
|
+
const url = `${ConversationAPI.URL.CONVERSATIONS}/${conversationId.domain}/${conversationId.id}/${ConversationAPI.URL.MEMBERS}/${userId.domain}/${userId.id}`;
|
|
76
|
+
const response = await this.client.sendJSON({
|
|
77
|
+
method: 'delete',
|
|
78
|
+
url,
|
|
79
|
+
});
|
|
80
|
+
return response.data;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Get all conversations.
|
|
84
|
+
* @deprecated - use getConversationList instead
|
|
85
|
+
*/
|
|
86
|
+
getAllConversations() {
|
|
87
|
+
let allConversations = [];
|
|
88
|
+
const getConversationChunks = async (conversationId) => {
|
|
89
|
+
const { conversations, has_more } = await this.getConversations(conversationId, ConversationAPI.MAX_CHUNK_SIZE);
|
|
90
|
+
if (conversations.length) {
|
|
91
|
+
allConversations = allConversations.concat(conversations);
|
|
92
|
+
}
|
|
93
|
+
if (has_more) {
|
|
94
|
+
const lastConversation = conversations.pop();
|
|
95
|
+
if (lastConversation) {
|
|
96
|
+
return getConversationChunks(lastConversation.id);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return allConversations;
|
|
100
|
+
};
|
|
101
|
+
return getConversationChunks();
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Get a conversation code.
|
|
105
|
+
* @param conversationId ID of conversation to get the code for
|
|
106
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/getConversationCode
|
|
107
|
+
*/
|
|
108
|
+
async getConversationCode(conversationId) {
|
|
109
|
+
const config = {
|
|
110
|
+
method: 'GET',
|
|
111
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.CODE}`,
|
|
112
|
+
};
|
|
113
|
+
const response = await this.client.sendJSON(config);
|
|
114
|
+
return response.data;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @param conversationId
|
|
118
|
+
* @deprecated use feature.getAllFeatures instead
|
|
119
|
+
*/
|
|
120
|
+
async getConversationGuestLinkFeature(conversationId) {
|
|
121
|
+
const config = {
|
|
122
|
+
method: 'get',
|
|
123
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/features/conversationGuestLinks`,
|
|
124
|
+
};
|
|
125
|
+
const response = await this.client.sendJSON(config);
|
|
126
|
+
return response.data;
|
|
127
|
+
}
|
|
128
|
+
async getConversation(conversationId) {
|
|
129
|
+
return this.backendFeatures.federationEndpoints && typeof conversationId !== 'string'
|
|
130
|
+
? this.getConversation_v2(conversationId)
|
|
131
|
+
: this.getConversation_v1(typeof conversationId === 'string' ? conversationId : conversationId.id);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Get a conversation by ID.
|
|
135
|
+
* @param conversationId The conversation ID
|
|
136
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/conversation
|
|
137
|
+
*/
|
|
138
|
+
async getConversation_v1(conversationId) {
|
|
139
|
+
const url = `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}`;
|
|
140
|
+
const config = {
|
|
141
|
+
method: 'get',
|
|
142
|
+
url,
|
|
143
|
+
};
|
|
144
|
+
const response = await this.client.sendJSON(config);
|
|
145
|
+
return response.data;
|
|
146
|
+
}
|
|
147
|
+
async getConversation_v2(conversationId) {
|
|
148
|
+
const { id, domain } = conversationId;
|
|
149
|
+
const url = `${ConversationAPI.URL.CONVERSATIONS}/${domain}/${id}`;
|
|
150
|
+
const config = {
|
|
151
|
+
method: 'get',
|
|
152
|
+
url,
|
|
153
|
+
};
|
|
154
|
+
const response = await this.client.sendJSON(config);
|
|
155
|
+
return response.data;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Get all qualified conversation IDs.
|
|
159
|
+
* @param limit Max. number of qualified IDs to return
|
|
160
|
+
*/
|
|
161
|
+
async getQualifiedConversationIds(limit = 0) {
|
|
162
|
+
const config = {
|
|
163
|
+
data: {},
|
|
164
|
+
method: 'post',
|
|
165
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${ConversationAPI.URL.LIST_IDS}`,
|
|
166
|
+
};
|
|
167
|
+
if (limit > 0) {
|
|
168
|
+
config.data.size = limit;
|
|
169
|
+
}
|
|
170
|
+
const allConversations = [];
|
|
171
|
+
const getConversationChunks = async (pagingState) => {
|
|
172
|
+
if (pagingState) {
|
|
173
|
+
config.data.paging_state = pagingState;
|
|
174
|
+
}
|
|
175
|
+
const { data } = await this.client.sendJSON(config);
|
|
176
|
+
const { qualified_conversations, has_more, paging_state } = data;
|
|
177
|
+
allConversations.push(...qualified_conversations);
|
|
178
|
+
if (has_more) {
|
|
179
|
+
return getConversationChunks(paging_state);
|
|
180
|
+
}
|
|
181
|
+
return allConversations;
|
|
182
|
+
};
|
|
183
|
+
return getConversationChunks();
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Get all conversation IDs.
|
|
187
|
+
* @param limit Max. number of IDs to return
|
|
188
|
+
* @param conversationId Conversation ID to start from (exclusive)
|
|
189
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/conversationIds
|
|
190
|
+
* @deprecated Use `getListConversations()` instead.
|
|
191
|
+
*/
|
|
192
|
+
async getConversationIds(limit, conversationId) {
|
|
193
|
+
const config = {
|
|
194
|
+
method: 'get',
|
|
195
|
+
params: {
|
|
196
|
+
size: limit,
|
|
197
|
+
start: conversationId,
|
|
198
|
+
},
|
|
199
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${ConversationAPI.URL.IDS}`,
|
|
200
|
+
};
|
|
201
|
+
const response = await this.client.sendJSON(config);
|
|
202
|
+
return response.data;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Get conversations as chunks.
|
|
206
|
+
* Note: At most 500 conversations are returned per request.
|
|
207
|
+
* @param startConversationId Conversation ID to start from (exclusive). Mutually exclusive with `conversationIds`.
|
|
208
|
+
* @param limit Max. number of conversations to return
|
|
209
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/conversations
|
|
210
|
+
*/
|
|
211
|
+
getConversations(startConversationId, limit = ConversationAPI.MAX_CHUNK_SIZE) {
|
|
212
|
+
return this._getConversations(startConversationId, undefined, limit);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Get conversation metadata for a list of conversation qualified ids
|
|
216
|
+
* @see https://staging-nginz-https.zinfra.io/api/swagger-ui/#/default/post_conversations_list_v2
|
|
217
|
+
*/
|
|
218
|
+
async getConversationsByQualifiedIds(conversations) {
|
|
219
|
+
var _a, _b, _c, _d, _e, _f;
|
|
220
|
+
const chunks = (0, ArrayUtil_1.chunk)(conversations, ConversationAPI.MAX_CHUNK_SIZE);
|
|
221
|
+
let results = { found: [], failed: [], not_found: [] };
|
|
222
|
+
for (const chunk of chunks) {
|
|
223
|
+
const config = {
|
|
224
|
+
data: { qualified_ids: chunk },
|
|
225
|
+
method: 'post',
|
|
226
|
+
url: this.backendFeatures.version >= 2
|
|
227
|
+
? `${ConversationAPI.URL.CONVERSATIONS}/${ConversationAPI.URL.LIST}`
|
|
228
|
+
: `${ConversationAPI.URL.CONVERSATIONS}/${ConversationAPI.URL.LIST}/${ConversationAPI.URL.V2}`,
|
|
229
|
+
};
|
|
230
|
+
const { data } = await this.client.sendJSON(config);
|
|
231
|
+
results = {
|
|
232
|
+
found: (_a = results.found) === null || _a === void 0 ? void 0 : _a.concat((_b = data.found) !== null && _b !== void 0 ? _b : []),
|
|
233
|
+
not_found: (_c = results.not_found) === null || _c === void 0 ? void 0 : _c.concat((_d = data.not_found) !== null && _d !== void 0 ? _d : []),
|
|
234
|
+
failed: (_e = results.failed) === null || _e === void 0 ? void 0 : _e.concat((_f = data.failed) !== null && _f !== void 0 ? _f : []),
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
return results;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Get all local & remote conversations from a federated backend.
|
|
241
|
+
*/
|
|
242
|
+
async getConversationList() {
|
|
243
|
+
if (!this.backendFeatures.federationEndpoints) {
|
|
244
|
+
return { found: await this.getAllConversations() };
|
|
245
|
+
}
|
|
246
|
+
const allConversationIds = await this.getQualifiedConversationIds();
|
|
247
|
+
const conversations = await this.getConversationsByQualifiedIds(allConversationIds);
|
|
248
|
+
return conversations;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Get conversations.
|
|
252
|
+
* Note: At most 500 conversations are returned per request.
|
|
253
|
+
* @param conversationId Conversation ID to start from (exclusive). Mutually exclusive with `conversationIds`.
|
|
254
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/conversations
|
|
255
|
+
*/
|
|
256
|
+
async getConversationsByIds(filteredConversationIds) {
|
|
257
|
+
let allConversations = [];
|
|
258
|
+
const getConversationChunk = async (chunkedConversationIds) => {
|
|
259
|
+
const { conversations } = await this._getConversations(undefined, chunkedConversationIds, ConversationAPI.MAX_CHUNK_SIZE);
|
|
260
|
+
return conversations;
|
|
261
|
+
};
|
|
262
|
+
for (let index = 0; index < filteredConversationIds.length; index += ConversationAPI.MAX_CHUNK_SIZE) {
|
|
263
|
+
const requestChunk = filteredConversationIds.slice(index, index + ConversationAPI.MAX_CHUNK_SIZE);
|
|
264
|
+
if (requestChunk.length) {
|
|
265
|
+
const conversationChunk = await getConversationChunk(requestChunk);
|
|
266
|
+
if (conversationChunk.length) {
|
|
267
|
+
allConversations = allConversations.concat(conversationChunk);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return allConversations;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Get conversations.
|
|
275
|
+
* Note: At most 500 conversations are returned per request.
|
|
276
|
+
* @param startConversationId Conversation ID to start from (exclusive). Mutually exclusive with `conversationIds`.
|
|
277
|
+
* @param filteredConversationIds Mutually exclusive with `startConversationId`. At most 32 IDs per request.
|
|
278
|
+
* @param limit Max. number of conversations to return
|
|
279
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/conversations
|
|
280
|
+
*/
|
|
281
|
+
async _getConversations(startConversationId, filteredConversationIds, limit = ConversationAPI.MAX_CHUNK_SIZE) {
|
|
282
|
+
const config = {
|
|
283
|
+
method: 'get',
|
|
284
|
+
params: {
|
|
285
|
+
size: limit,
|
|
286
|
+
start: startConversationId,
|
|
287
|
+
},
|
|
288
|
+
url: ConversationAPI.URL.CONVERSATIONS,
|
|
289
|
+
};
|
|
290
|
+
if (filteredConversationIds) {
|
|
291
|
+
config.params.ids = filteredConversationIds.join(',');
|
|
292
|
+
}
|
|
293
|
+
const response = await this.client.sendJSON(config);
|
|
294
|
+
return response.data;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Get existing roles available for the given conversation.
|
|
298
|
+
* @param conversationId The Conversation ID to get roles for
|
|
299
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/getConversationsRoles
|
|
300
|
+
*/
|
|
301
|
+
async getRoles(conversationId) {
|
|
302
|
+
const config = {
|
|
303
|
+
method: 'get',
|
|
304
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.ROLES}`,
|
|
305
|
+
};
|
|
306
|
+
const response = await this.client.sendJSON(config);
|
|
307
|
+
return response.data;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Get self membership properties.
|
|
311
|
+
* @param conversationId The Conversation ID to get properties for
|
|
312
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/getSelf
|
|
313
|
+
*/
|
|
314
|
+
async getMembershipProperties(conversationId) {
|
|
315
|
+
const config = {
|
|
316
|
+
method: 'get',
|
|
317
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/self`,
|
|
318
|
+
};
|
|
319
|
+
const response = await this.client.sendJSON(config);
|
|
320
|
+
return response.data;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Create a 1:1-conversation.
|
|
324
|
+
* @param conversationData The new conversation
|
|
325
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/createOne2OneConversation
|
|
326
|
+
*/
|
|
327
|
+
async post1to1(conversationData) {
|
|
328
|
+
const config = {
|
|
329
|
+
data: conversationData,
|
|
330
|
+
method: 'post',
|
|
331
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/one2one`,
|
|
332
|
+
};
|
|
333
|
+
await this.client.sendJSON(config);
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Add users to an existing conversation.
|
|
337
|
+
* @param conversationId The conversation ID
|
|
338
|
+
* @param invitationData The new conversation
|
|
339
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/addMembers
|
|
340
|
+
*/
|
|
341
|
+
async postAddMembers(conversationId, invitationData) {
|
|
342
|
+
const config = {
|
|
343
|
+
data: invitationData,
|
|
344
|
+
method: 'post',
|
|
345
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.MEMBERS}`,
|
|
346
|
+
};
|
|
347
|
+
try {
|
|
348
|
+
const response = await this.client.sendJSON(config);
|
|
349
|
+
return response.data;
|
|
350
|
+
}
|
|
351
|
+
catch (error) {
|
|
352
|
+
const backendError = error;
|
|
353
|
+
switch (backendError.label) {
|
|
354
|
+
case http_1.BackendErrorLabel.LEGAL_HOLD_MISSING_CONSENT: {
|
|
355
|
+
throw new ConversationError_1.ConversationLegalholdMissingConsentError(backendError.message);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
throw error;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* @deprecated Use `postService()` instead.
|
|
363
|
+
*/
|
|
364
|
+
postBot(conversationId, providerId, serviceId) {
|
|
365
|
+
return this.postService(conversationId, providerId, serviceId);
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Add a service to an existing conversation.
|
|
369
|
+
* @param conversationId ID of the conversation to add services to
|
|
370
|
+
* @param providerId ID of the service provider
|
|
371
|
+
* @param serviceId ID of the service provider
|
|
372
|
+
*/
|
|
373
|
+
async postService(conversationId, providerId, serviceId) {
|
|
374
|
+
const config = {
|
|
375
|
+
data: {
|
|
376
|
+
provider: providerId,
|
|
377
|
+
service: serviceId,
|
|
378
|
+
},
|
|
379
|
+
method: 'post',
|
|
380
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.BOTS}`,
|
|
381
|
+
};
|
|
382
|
+
const response = await this.client.sendJSON(config);
|
|
383
|
+
return response.data;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Create a new conversation
|
|
387
|
+
* @param conversationData The new conversation
|
|
388
|
+
* @see https://staging-nginz-https.zinfra.io/api/swagger-ui/#/default/post_conversations
|
|
389
|
+
*/
|
|
390
|
+
async postConversation(conversationData) {
|
|
391
|
+
const config = {
|
|
392
|
+
data: conversationData,
|
|
393
|
+
method: 'post',
|
|
394
|
+
url: ConversationAPI.URL.CONVERSATIONS,
|
|
395
|
+
};
|
|
396
|
+
try {
|
|
397
|
+
const response = await this.client.sendJSON(config);
|
|
398
|
+
return response.data;
|
|
399
|
+
}
|
|
400
|
+
catch (error) {
|
|
401
|
+
const backendError = error;
|
|
402
|
+
switch (backendError.label) {
|
|
403
|
+
case http_1.BackendErrorLabel.LEGAL_HOLD_MISSING_CONSENT: {
|
|
404
|
+
throw new ConversationError_1.ConversationLegalholdMissingConsentError(backendError.message);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
throw error;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Create or recreate a conversation code.
|
|
412
|
+
* @param conversationId ID of conversation to request the code for
|
|
413
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/createConversationCode
|
|
414
|
+
*/
|
|
415
|
+
async postConversationCodeRequest(conversationId) {
|
|
416
|
+
const config = {
|
|
417
|
+
method: 'post',
|
|
418
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.CODE}`,
|
|
419
|
+
};
|
|
420
|
+
const response = await this.client.sendJSON(config);
|
|
421
|
+
return response.data;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Validate a conversation code.
|
|
425
|
+
* @param conversationCode The conversation code
|
|
426
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/checkConversationCode
|
|
427
|
+
*/
|
|
428
|
+
async postConversationCodeCheck(conversationCode) {
|
|
429
|
+
const config = {
|
|
430
|
+
data: conversationCode,
|
|
431
|
+
method: 'post',
|
|
432
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}${ConversationAPI.URL.CODE_CHECK}`,
|
|
433
|
+
};
|
|
434
|
+
try {
|
|
435
|
+
await this.client.sendJSON(config);
|
|
436
|
+
}
|
|
437
|
+
catch (error) {
|
|
438
|
+
const backendError = error;
|
|
439
|
+
switch (backendError.label) {
|
|
440
|
+
case http_1.BackendErrorLabel.NO_CONVERSATION_CODE: {
|
|
441
|
+
throw new ConversationError_1.ConversationCodeNotFoundError(backendError.message);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
throw error;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Join a conversation by conversation code.
|
|
449
|
+
* @param conversationCode The conversation code
|
|
450
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/joinConversationByCode
|
|
451
|
+
*/
|
|
452
|
+
async postJoinByCode(conversationCode) {
|
|
453
|
+
const config = {
|
|
454
|
+
data: conversationCode,
|
|
455
|
+
method: 'post',
|
|
456
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}${ConversationAPI.URL.JOIN}`,
|
|
457
|
+
};
|
|
458
|
+
try {
|
|
459
|
+
const response = await this.client.sendJSON(config);
|
|
460
|
+
return response.data;
|
|
461
|
+
}
|
|
462
|
+
catch (error) {
|
|
463
|
+
const backendError = error;
|
|
464
|
+
switch (backendError.label) {
|
|
465
|
+
case http_1.BackendErrorLabel.NO_CONVERSATION_CODE: {
|
|
466
|
+
throw new ConversationError_1.ConversationCodeNotFoundError(backendError.message);
|
|
467
|
+
}
|
|
468
|
+
case http_1.BackendErrorLabel.TOO_MANY_MEMBERS: {
|
|
469
|
+
throw new ConversationError_1.ConversationFullError(backendError.message);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
throw error;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Get information about a conversation by conversation code.
|
|
477
|
+
* @param conversationCode The conversation code
|
|
478
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/joinConversationByCode
|
|
479
|
+
*/
|
|
480
|
+
async getJoinByCode(conversationCode) {
|
|
481
|
+
const config = {
|
|
482
|
+
params: conversationCode,
|
|
483
|
+
method: 'get',
|
|
484
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}${ConversationAPI.URL.JOIN}`,
|
|
485
|
+
};
|
|
486
|
+
try {
|
|
487
|
+
const response = await this.client.sendJSON(config);
|
|
488
|
+
return response.data;
|
|
489
|
+
}
|
|
490
|
+
catch (error) {
|
|
491
|
+
const backendError = error;
|
|
492
|
+
switch (backendError.label) {
|
|
493
|
+
case http_1.BackendErrorLabel.NO_CONVERSATION_CODE: {
|
|
494
|
+
throw new ConversationError_1.ConversationCodeNotFoundError(backendError.message);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
throw error;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Join a conversation.
|
|
502
|
+
* @param conversationId The conversation ID
|
|
503
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/joinConversation
|
|
504
|
+
*/
|
|
505
|
+
async postJoin(conversationId) {
|
|
506
|
+
const config = {
|
|
507
|
+
method: 'post',
|
|
508
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}`,
|
|
509
|
+
};
|
|
510
|
+
const response = await this.client.sendJSON(config);
|
|
511
|
+
return response.data;
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Post an encrypted message to a conversation.
|
|
515
|
+
* @param sendingClientId The sender's client ID
|
|
516
|
+
* @param conversationId The conversation ID
|
|
517
|
+
* @param messageData The message content
|
|
518
|
+
* @param ignoreMissing Whether to report missing clients or not:
|
|
519
|
+
* `false`: Report about all missing clients
|
|
520
|
+
* `true`: Ignore all missing clients and force sending.
|
|
521
|
+
* Array: User IDs specifying which user IDs are allowed to have
|
|
522
|
+
* missing clients
|
|
523
|
+
* `undefined`: Default to setting of `report_missing` in `NewOTRMessage`
|
|
524
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/postOtrMessage
|
|
525
|
+
*/
|
|
526
|
+
async postOTRMessage(sendingClientId, conversationId, messageData, ignoreMissing) {
|
|
527
|
+
if (!sendingClientId) {
|
|
528
|
+
throw new validation_1.ValidationError('Unable to send OTR message without client ID.');
|
|
529
|
+
}
|
|
530
|
+
messageData || (messageData = {
|
|
531
|
+
recipients: {},
|
|
532
|
+
sender: sendingClientId,
|
|
533
|
+
});
|
|
534
|
+
const config = {
|
|
535
|
+
data: messageData,
|
|
536
|
+
method: 'post',
|
|
537
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.OTR}/${ConversationAPI.URL.MESSAGES}`,
|
|
538
|
+
};
|
|
539
|
+
if (typeof ignoreMissing !== 'undefined') {
|
|
540
|
+
const ignore_missing = Array.isArray(ignoreMissing) ? ignoreMissing.join(',') : ignoreMissing;
|
|
541
|
+
config.params = { ignore_missing };
|
|
542
|
+
// `ignore_missing` takes precedence on the server so we can remove
|
|
543
|
+
// `report_missing` to save some bandwidth.
|
|
544
|
+
delete messageData.report_missing;
|
|
545
|
+
}
|
|
546
|
+
else if (typeof messageData.report_missing === 'undefined' || !messageData.report_missing.length) {
|
|
547
|
+
// both `ignore_missing` and `report_missing` are undefined
|
|
548
|
+
config.params = { ignore_missing: !!messageData.data };
|
|
549
|
+
}
|
|
550
|
+
const response = await this.client.sendJSON(config, true);
|
|
551
|
+
return response.data;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* This endpoint ensures that the list of clients is correct and only sends the message if the list is correct.
|
|
555
|
+
* To override this, the endpoint accepts `client_mismatch_strategy` in the body. It can have these values:
|
|
556
|
+
*
|
|
557
|
+
* - `report_all`: When set, the message is not sent if any clients are missing. The missing clients are reported
|
|
558
|
+
* in the response.
|
|
559
|
+
* - `ignore_all`: When set, no checks about missing clients are carried out.
|
|
560
|
+
* - `report_only`: Takes a list of qualified UserIDs. If any clients of the listed users are missing, the message is
|
|
561
|
+
* not sent. The missing clients are reported in the response.
|
|
562
|
+
* - `ignore_only`: Takes a list of qualified UserIDs. If any clients of the non-listed users are missing, the message
|
|
563
|
+
* is not sent. The missing clients are reported in the response.
|
|
564
|
+
*
|
|
565
|
+
* The sending of messages in a federated conversation could theorectically fail partially. To make this case
|
|
566
|
+
* unlikely, the backend first gets a list of clients from all the involved backends and then tries to send a message.
|
|
567
|
+
* So, if any backend is down, the message is not propagated to anyone. But the actual message fan out to multiple
|
|
568
|
+
* backends could still fail partially. This type of failure is reported as a 201, the clients for which the message
|
|
569
|
+
* sending failed are part of the response body.
|
|
570
|
+
*
|
|
571
|
+
* This endpoint can lead to OtrMessageAdd event being sent to the recipients.
|
|
572
|
+
*
|
|
573
|
+
* @see https://nginz-https.anta.wire.link/api/swagger-ui/#/default/post_conversations__cnv_domain___cnv__proteus_messages
|
|
574
|
+
*/
|
|
575
|
+
async postOTRMessageV2(conversationId, domain, messageData) {
|
|
576
|
+
const config = {
|
|
577
|
+
/*
|
|
578
|
+
* We need to slice the content of what protobuf has generated in order for Axios to send the correct data (see https://github.com/axios/axios/issues/4068)
|
|
579
|
+
* FIXME: The `slice` can be removed as soon as Axios publishes a version with the dataview issue fixed.
|
|
580
|
+
*/
|
|
581
|
+
data: otr_1.proteus.QualifiedNewOtrMessage.encode(messageData).finish().slice(),
|
|
582
|
+
method: 'post',
|
|
583
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${domain}/${conversationId}/${ConversationAPI.URL.PROTEUS}/${ConversationAPI.URL.MESSAGES}`,
|
|
584
|
+
};
|
|
585
|
+
const response = await this.client.sendProtocolBuffer(config, true);
|
|
586
|
+
return response.data;
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* Post an encrypted message to a conversation.
|
|
590
|
+
* @param sendingClientId The sender's client ID
|
|
591
|
+
* @param conversationId The conversation ID
|
|
592
|
+
* @param messageData The message content
|
|
593
|
+
* @param ignoreMissing Whether to report missing clients or not:
|
|
594
|
+
* `false`: Report about all missing clients
|
|
595
|
+
* `true`: Ignore all missing clients and force sending.
|
|
596
|
+
* Array: User IDs specifying which user IDs are allowed to have
|
|
597
|
+
* missing clients
|
|
598
|
+
* `undefined`: Default to setting of `report_missing` in `NewOTRMessage`
|
|
599
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/postOtrMessage
|
|
600
|
+
*/
|
|
601
|
+
async postOTRProtobufMessage(sendingClientId, conversationId, messageData, ignoreMissing) {
|
|
602
|
+
if (!sendingClientId) {
|
|
603
|
+
throw new validation_1.ValidationError('Unable to send OTR message without client ID.');
|
|
604
|
+
}
|
|
605
|
+
const config = {
|
|
606
|
+
/*
|
|
607
|
+
* We need to slice the content of what protobuf has generated in order for Axios to send the correct buffer (see https://github.com/axios/axios/issues/4068)
|
|
608
|
+
* FIXME: The `slice` can be removed as soon as Axios publishes a version with the dataview issue fixed.
|
|
609
|
+
*/
|
|
610
|
+
data: otr_1.proteus.NewOtrMessage.encode(messageData).finish().slice(),
|
|
611
|
+
method: 'post',
|
|
612
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.OTR}/${ConversationAPI.URL.MESSAGES}`,
|
|
613
|
+
};
|
|
614
|
+
if (typeof ignoreMissing !== 'undefined') {
|
|
615
|
+
const ignore_missing = Array.isArray(ignoreMissing) ? ignoreMissing.join(',') : ignoreMissing;
|
|
616
|
+
config.params = { ignore_missing };
|
|
617
|
+
// `ignore_missing` takes precedence on the server so we can remove
|
|
618
|
+
// `report_missing` to save some bandwidth.
|
|
619
|
+
messageData.reportMissing = [];
|
|
620
|
+
}
|
|
621
|
+
else if (typeof messageData.reportMissing === 'undefined' || !messageData.reportMissing.length) {
|
|
622
|
+
// both `ignore_missing` and `report_missing` are undefined
|
|
623
|
+
config.params = { ignore_missing: !!messageData.blob };
|
|
624
|
+
}
|
|
625
|
+
const response = await this.client.sendProtocolBuffer(config, true);
|
|
626
|
+
return response.data;
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Post an encrypted message to a conversation.
|
|
630
|
+
* @param messageData Mls message payload in TLS format. Please refer to the MLS specification for details.
|
|
631
|
+
* @see https://messaginglayersecurity.rocks/mls-protocol/draft-ietf-mls-protocol.html#name-message-framing
|
|
632
|
+
* @see https://staging-nginz-https.zinfra.io/api/swagger-ui/#/default/post_mls_messages
|
|
633
|
+
*/
|
|
634
|
+
async postMlsMessage(messageData) {
|
|
635
|
+
const config = {
|
|
636
|
+
data: messageData,
|
|
637
|
+
method: 'post',
|
|
638
|
+
url: `${ConversationAPI.URL.MLS}/${ConversationAPI.URL.MESSAGES}`,
|
|
639
|
+
};
|
|
640
|
+
const response = await this.client.sendProtocolMls(config, true);
|
|
641
|
+
return response.data;
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* Post the welcome encrypted message to a conversation.
|
|
645
|
+
* @param messageData Mls welocome message payload in TLS format. Please refer to the MLS specification for details.
|
|
646
|
+
* @see https://messaginglayersecurity.rocks/mls-protocol/draft-ietf-mls-protocol.html#name-message-framing
|
|
647
|
+
* @see https://staging-nginz-https.zinfra.io/api/swagger-ui/#/default/post_mls_welcome
|
|
648
|
+
*/
|
|
649
|
+
async postMlsWelcomeMessage(messageData) {
|
|
650
|
+
const config = {
|
|
651
|
+
data: messageData,
|
|
652
|
+
method: 'post',
|
|
653
|
+
url: `${ConversationAPI.URL.MLS}/welcome`,
|
|
654
|
+
};
|
|
655
|
+
await this.client.sendProtocolMls(config, true);
|
|
656
|
+
}
|
|
657
|
+
async postForClients(clientId, conversationId) {
|
|
658
|
+
var _a;
|
|
659
|
+
try {
|
|
660
|
+
await this.postOTRMessage(clientId, conversationId);
|
|
661
|
+
throw new Error(`Expected backend to throw error.`);
|
|
662
|
+
}
|
|
663
|
+
catch (error) {
|
|
664
|
+
if (axios_1.default.isAxiosError(error) && ((_a = error.response) === null || _a === void 0 ? void 0 : _a.data)) {
|
|
665
|
+
return error.response.data;
|
|
666
|
+
}
|
|
667
|
+
throw error;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* Create a self-conversation.
|
|
672
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/createSelfConversation
|
|
673
|
+
*/
|
|
674
|
+
async postSelf() {
|
|
675
|
+
const config = {
|
|
676
|
+
method: 'post',
|
|
677
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${ConversationAPI.URL.SELF}`,
|
|
678
|
+
};
|
|
679
|
+
const response = await this.client.sendJSON(config);
|
|
680
|
+
return response.data;
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* Send typing notifications.
|
|
684
|
+
* @param conversationId The Conversation ID to send notifications in
|
|
685
|
+
* @param typingData The typing status
|
|
686
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/isTyping
|
|
687
|
+
*/
|
|
688
|
+
async postTyping(conversationId, typingData) {
|
|
689
|
+
const config = {
|
|
690
|
+
data: typingData,
|
|
691
|
+
method: 'post',
|
|
692
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.TYPING}`,
|
|
693
|
+
};
|
|
694
|
+
await this.client.sendJSON(config);
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* Update access modes for a conversation.
|
|
698
|
+
* @param conversationId The conversation ID to update the access mode of
|
|
699
|
+
* @param accessData The new access data
|
|
700
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/updateConversationAccess
|
|
701
|
+
*/
|
|
702
|
+
async putAccess(conversationId, accessData) {
|
|
703
|
+
const config = {
|
|
704
|
+
data: accessData,
|
|
705
|
+
method: 'put',
|
|
706
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.ACCESS}`,
|
|
707
|
+
};
|
|
708
|
+
const response = await this.client.sendJSON(config);
|
|
709
|
+
return response.data;
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Update conversation properties.
|
|
713
|
+
* @param conversationId The conversation ID to update properties of
|
|
714
|
+
* @param conversationNameData The new conversation name
|
|
715
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/updateConversation
|
|
716
|
+
*/
|
|
717
|
+
async putConversation(conversationId, conversationNameData) {
|
|
718
|
+
const config = {
|
|
719
|
+
data: conversationNameData,
|
|
720
|
+
method: 'put',
|
|
721
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.NAME}`,
|
|
722
|
+
};
|
|
723
|
+
const response = await this.client.sendJSON(config);
|
|
724
|
+
return response.data;
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* Update the message timer for a conversation.
|
|
728
|
+
* @param conversationId The conversation ID
|
|
729
|
+
* @param conversationData The new message timer
|
|
730
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/updateConversationMessageTimer
|
|
731
|
+
*/
|
|
732
|
+
async putConversationMessageTimer(conversationId, messageTimerData) {
|
|
733
|
+
const config = {
|
|
734
|
+
data: messageTimerData,
|
|
735
|
+
method: 'put',
|
|
736
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.MESSAGE_TIMER}`,
|
|
737
|
+
};
|
|
738
|
+
const response = await this.client.sendJSON(config);
|
|
739
|
+
return response.data;
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* Update the receipt mode for a conversation.
|
|
743
|
+
* @param conversationId The conversation ID
|
|
744
|
+
* @param receiptModeData The new receipt mode
|
|
745
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/updateConversationReceiptMode
|
|
746
|
+
*/
|
|
747
|
+
async putConversationReceiptMode(conversationId, receiptModeData) {
|
|
748
|
+
const config = {
|
|
749
|
+
data: receiptModeData,
|
|
750
|
+
method: 'put',
|
|
751
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.RECEIPT_MODE}`,
|
|
752
|
+
};
|
|
753
|
+
const response = await this.client.sendJSON(config);
|
|
754
|
+
return response.data;
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* Add users to an existing conversation.
|
|
758
|
+
* @param conversationId The conversation ID to add the users to
|
|
759
|
+
* @param users List of users to add to a conversation
|
|
760
|
+
*/
|
|
761
|
+
async postMembersV0(conversationId, userIds) {
|
|
762
|
+
const config = {
|
|
763
|
+
data: {
|
|
764
|
+
conversation_role: __1.DefaultConversationRoleName.WIRE_MEMBER,
|
|
765
|
+
users: userIds,
|
|
766
|
+
},
|
|
767
|
+
method: 'post',
|
|
768
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.MEMBERS}`,
|
|
769
|
+
};
|
|
770
|
+
try {
|
|
771
|
+
const response = await this.client.sendJSON(config);
|
|
772
|
+
return response.data;
|
|
773
|
+
}
|
|
774
|
+
catch (error) {
|
|
775
|
+
const backendError = error;
|
|
776
|
+
switch (backendError.label) {
|
|
777
|
+
case http_1.BackendErrorLabel.LEGAL_HOLD_MISSING_CONSENT: {
|
|
778
|
+
throw new ConversationError_1.ConversationLegalholdMissingConsentError(backendError.message);
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
throw error;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* Add qualified members to an existing Proteus conversation.
|
|
786
|
+
* @param conversationId The conversation ID to add the users to
|
|
787
|
+
* @param users List of users to add to a conversation
|
|
788
|
+
*/
|
|
789
|
+
async postMembers(conversationId, users) {
|
|
790
|
+
if (!this.backendFeatures.federationEndpoints) {
|
|
791
|
+
return this.postMembersV0(conversationId.id, users.map(user => user.id));
|
|
792
|
+
}
|
|
793
|
+
const config = {
|
|
794
|
+
data: {
|
|
795
|
+
conversation_role: __1.DefaultConversationRoleName.WIRE_MEMBER,
|
|
796
|
+
qualified_users: users,
|
|
797
|
+
},
|
|
798
|
+
method: 'post',
|
|
799
|
+
url: this.backendFeatures.version >= 2
|
|
800
|
+
? `${ConversationAPI.URL.CONVERSATIONS}/${conversationId.domain}/${conversationId.id}/${ConversationAPI.URL.MEMBERS}`
|
|
801
|
+
: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId.id}/${ConversationAPI.URL.MEMBERS}/${ConversationAPI.URL.V2}`,
|
|
802
|
+
};
|
|
803
|
+
try {
|
|
804
|
+
const response = await this.client.sendJSON(config);
|
|
805
|
+
return response.data;
|
|
806
|
+
}
|
|
807
|
+
catch (error) {
|
|
808
|
+
const backendError = error;
|
|
809
|
+
switch (backendError.label) {
|
|
810
|
+
case http_1.BackendErrorLabel.LEGAL_HOLD_MISSING_CONSENT: {
|
|
811
|
+
throw new ConversationError_1.ConversationLegalholdMissingConsentError(backendError.message);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
throw error;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* Update membership of the specified user in a certain conversation
|
|
819
|
+
* @param userId The user ID
|
|
820
|
+
* @param conversationId The conversation ID to change the user's membership in
|
|
821
|
+
* @param memberUpdateData The new member data
|
|
822
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/updateOtherMember
|
|
823
|
+
*/
|
|
824
|
+
async putOtherMember(userId, conversationId, memberUpdateData) {
|
|
825
|
+
const config = {
|
|
826
|
+
data: memberUpdateData,
|
|
827
|
+
method: 'put',
|
|
828
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.MEMBERS}/${userId}`,
|
|
829
|
+
};
|
|
830
|
+
await this.client.sendJSON(config);
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
* Update self membership properties.
|
|
834
|
+
* @param conversationId The Conversation ID
|
|
835
|
+
* @param memberData The new conversation
|
|
836
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/conversations/updateSelf
|
|
837
|
+
*/
|
|
838
|
+
async putMembershipProperties(conversationId, memberData) {
|
|
839
|
+
const config = {
|
|
840
|
+
data: memberData,
|
|
841
|
+
method: 'put',
|
|
842
|
+
url: `${ConversationAPI.URL.CONVERSATIONS}/${conversationId}/${ConversationAPI.URL.SELF}`,
|
|
843
|
+
};
|
|
844
|
+
await this.client.sendJSON(config);
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
exports.ConversationAPI = ConversationAPI;
|
|
848
|
+
ConversationAPI.MAX_CHUNK_SIZE = 500;
|
|
849
|
+
ConversationAPI.URL = {
|
|
850
|
+
ACCESS: 'access',
|
|
851
|
+
BOTS: 'bots',
|
|
852
|
+
CLIENTS: '/clients',
|
|
853
|
+
CODE: 'code',
|
|
854
|
+
CODE_CHECK: '/code-check',
|
|
855
|
+
CONVERSATIONS: '/conversations',
|
|
856
|
+
MLS: '/mls',
|
|
857
|
+
IDS: 'ids',
|
|
858
|
+
JOIN: '/join',
|
|
859
|
+
LIST: 'list',
|
|
860
|
+
LIST_IDS: 'list-ids',
|
|
861
|
+
MEMBERS: 'members',
|
|
862
|
+
MESSAGE_TIMER: 'message-timer',
|
|
863
|
+
MESSAGES: 'messages',
|
|
864
|
+
NAME: 'name',
|
|
865
|
+
OTR: 'otr',
|
|
866
|
+
PROTEUS: 'proteus',
|
|
867
|
+
RECEIPT_MODE: 'receipt-mode',
|
|
868
|
+
ROLES: 'roles',
|
|
869
|
+
SELF: 'self',
|
|
870
|
+
TYPING: 'typing',
|
|
871
|
+
V2: 'v2',
|
|
872
|
+
};
|
|
873
|
+
//# sourceMappingURL=ConversationAPI.js.map
|