@wireapp/api-client 20.5.3 → 20.5.4
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/package.json +9 -8
- package/src/APIClient.d.ts +126 -0
- package/src/APIClient.js +269 -0
- package/src/APIClient.js.map +1 -0
- package/src/Config.d.ts +4 -0
- package/src/Config.js +21 -0
- package/src/Config.js.map +1 -0
- package/src/account/AccountAPI.d.ts +69 -0
- package/src/account/AccountAPI.js +202 -0
- package/src/account/AccountAPI.js.map +1 -0
- package/src/account/AccountError.d.ts +7 -0
- package/src/account/AccountError.js +39 -0
- package/src/account/AccountError.js.map +1 -0
- package/src/account/BackendConfigData.d.ts +11 -0
- package/src/account/BackendConfigData.js +21 -0
- package/src/account/BackendConfigData.js.map +1 -0
- package/src/account/CallConfigData.d.ts +9 -0
- package/src/account/CallConfigData.js +21 -0
- package/src/account/CallConfigData.js.map +1 -0
- package/src/account/DomainData.d.ts +6 -0
- package/src/account/DomainData.js +21 -0
- package/src/account/DomainData.js.map +1 -0
- package/src/account/SSOSettings.d.ts +3 -0
- package/src/account/SSOSettings.js +21 -0
- package/src/account/SSOSettings.js.map +1 -0
- package/src/account/index.d.ts +3 -0
- package/src/account/index.js +38 -0
- package/src/account/index.js.map +1 -0
- package/src/asset/AssetAPI.d.ts +48 -0
- package/src/asset/AssetAPI.js +254 -0
- package/src/asset/AssetAPI.js.map +1 -0
- package/src/asset/AssetRetentionPolicy.d.ts +11 -0
- package/src/asset/AssetRetentionPolicy.js +34 -0
- package/src/asset/AssetRetentionPolicy.js.map +1 -0
- package/src/asset/AssetUploadData.d.ts +7 -0
- package/src/asset/AssetUploadData.js +21 -0
- package/src/asset/AssetUploadData.js.map +1 -0
- package/src/asset/AssetUtil.d.ts +2 -0
- package/src/asset/AssetUtil.js +26 -0
- package/src/asset/AssetUtil.js.map +1 -0
- package/src/asset/index.d.ts +4 -0
- package/src/asset/index.js +39 -0
- package/src/asset/index.js.map +1 -0
- package/src/auth/AccessTokenData.d.ts +8 -0
- package/src/auth/AccessTokenData.js +21 -0
- package/src/auth/AccessTokenData.js.map +1 -0
- package/src/auth/AccessTokenStore.d.ts +23 -0
- package/src/auth/AccessTokenStore.js +56 -0
- package/src/auth/AccessTokenStore.js.map +1 -0
- package/src/auth/AuthAPI.d.ts +40 -0
- package/src/auth/AuthAPI.js +164 -0
- package/src/auth/AuthAPI.js.map +1 -0
- package/src/auth/AuthenticationError.d.ts +34 -0
- package/src/auth/AuthenticationError.js +111 -0
- package/src/auth/AuthenticationError.js.map +1 -0
- package/src/auth/ClientPreKey.d.ts +6 -0
- package/src/auth/ClientPreKey.js +21 -0
- package/src/auth/ClientPreKey.js.map +1 -0
- package/src/auth/Context.d.ts +7 -0
- package/src/auth/Context.js +21 -0
- package/src/auth/Context.js.map +1 -0
- package/src/auth/Cookie.d.ts +6 -0
- package/src/auth/Cookie.js +34 -0
- package/src/auth/Cookie.js.map +1 -0
- package/src/auth/CookieList.d.ts +15 -0
- package/src/auth/CookieList.js +21 -0
- package/src/auth/CookieList.js.map +1 -0
- package/src/auth/CookieStore.d.ts +16 -0
- package/src/auth/CookieStore.js +49 -0
- package/src/auth/CookieStore.js.map +1 -0
- package/src/auth/LoginCodeResponse.d.ts +4 -0
- package/src/auth/LoginCodeResponse.js +21 -0
- package/src/auth/LoginCodeResponse.js.map +1 -0
- package/src/auth/LoginData.d.ts +10 -0
- package/src/auth/LoginData.js +21 -0
- package/src/auth/LoginData.js.map +1 -0
- package/src/auth/PreKey.d.ts +6 -0
- package/src/auth/PreKey.js +21 -0
- package/src/auth/PreKey.js.map +1 -0
- package/src/auth/PreKeyBundle.d.ts +14 -0
- package/src/auth/PreKeyBundle.js +21 -0
- package/src/auth/PreKeyBundle.js.map +1 -0
- package/src/auth/RegisterData.d.ts +20 -0
- package/src/auth/RegisterData.js +21 -0
- package/src/auth/RegisterData.js.map +1 -0
- package/src/auth/SendLoginCode.d.ts +5 -0
- package/src/auth/SendLoginCode.js +21 -0
- package/src/auth/SendLoginCode.js.map +1 -0
- package/src/auth/VerificationActionType.d.ts +5 -0
- package/src/auth/VerificationActionType.js +28 -0
- package/src/auth/VerificationActionType.js.map +1 -0
- package/src/auth/index.d.ts +17 -0
- package/src/auth/index.js +53 -0
- package/src/auth/index.js.map +1 -0
- package/src/auth/parseAccessToken.d.ts +18 -0
- package/src/auth/parseAccessToken.js +57 -0
- package/src/auth/parseAccessToken.js.map +1 -0
- package/src/broadcast/BroadcastAPI.d.ts +44 -0
- package/src/broadcast/BroadcastAPI.js +122 -0
- package/src/broadcast/BroadcastAPI.js.map +1 -0
- package/src/broadcast/index.d.ts +1 -0
- package/src/broadcast/index.js +36 -0
- package/src/broadcast/index.js.map +1 -0
- package/src/client/ClientAPI.d.ts +58 -0
- package/src/client/ClientAPI.js +153 -0
- package/src/client/ClientAPI.js.map +1 -0
- package/src/client/ClientCapability.d.ts +3 -0
- package/src/client/ClientCapability.js +26 -0
- package/src/client/ClientCapability.js.map +1 -0
- package/src/client/ClientCapabilityData.d.ts +4 -0
- package/src/client/ClientCapabilityData.js +21 -0
- package/src/client/ClientCapabilityData.js.map +1 -0
- package/src/client/ClientClassification.d.ts +6 -0
- package/src/client/ClientClassification.js +29 -0
- package/src/client/ClientClassification.js.map +1 -0
- package/src/client/ClientError.d.ts +7 -0
- package/src/client/ClientError.js +39 -0
- package/src/client/ClientError.js.map +1 -0
- package/src/client/ClientType.d.ts +6 -0
- package/src/client/ClientType.js +29 -0
- package/src/client/ClientType.js.map +1 -0
- package/src/client/Location.d.ts +4 -0
- package/src/client/Location.js +21 -0
- package/src/client/Location.js.map +1 -0
- package/src/client/NewClient.d.ts +30 -0
- package/src/client/NewClient.js +21 -0
- package/src/client/NewClient.js.map +1 -0
- package/src/client/PublicClient.d.ts +5 -0
- package/src/client/PublicClient.js +21 -0
- package/src/client/PublicClient.js.map +1 -0
- package/src/client/QualifiedPublicClients.d.ts +9 -0
- package/src/client/QualifiedPublicClients.js +21 -0
- package/src/client/QualifiedPublicClients.js.map +1 -0
- package/src/client/RegisteredClient.d.ts +15 -0
- package/src/client/RegisteredClient.js +21 -0
- package/src/client/RegisteredClient.js.map +1 -0
- package/src/client/index.d.ts +11 -0
- package/src/client/index.js +46 -0
- package/src/client/index.js.map +1 -0
- package/src/connection/Connection.d.ts +12 -0
- package/src/connection/Connection.js +21 -0
- package/src/connection/Connection.js.map +1 -0
- package/src/connection/ConnectionAPI.d.ts +60 -0
- package/src/connection/ConnectionAPI.js +199 -0
- package/src/connection/ConnectionAPI.js.map +1 -0
- package/src/connection/ConnectionError.d.ts +7 -0
- package/src/connection/ConnectionError.js +39 -0
- package/src/connection/ConnectionError.js.map +1 -0
- package/src/connection/ConnectionRequest.d.ts +5 -0
- package/src/connection/ConnectionRequest.js +21 -0
- package/src/connection/ConnectionRequest.js.map +1 -0
- package/src/connection/ConnectionStatus.d.ts +10 -0
- package/src/connection/ConnectionStatus.js +33 -0
- package/src/connection/ConnectionStatus.js.map +1 -0
- package/src/connection/ConnectionUpdate.d.ts +4 -0
- package/src/connection/ConnectionUpdate.js +21 -0
- package/src/connection/ConnectionUpdate.js.map +1 -0
- package/src/connection/UserConnectionList.d.ts +5 -0
- package/src/connection/UserConnectionList.js +21 -0
- package/src/connection/UserConnectionList.js.map +1 -0
- package/src/connection/index.d.ts +7 -0
- package/src/connection/index.js +42 -0
- package/src/connection/index.js.map +1 -0
- package/src/conversation/ClientMismatch.d.ts +7 -0
- package/src/conversation/ClientMismatch.js +21 -0
- package/src/conversation/ClientMismatch.js.map +1 -0
- package/src/conversation/Conversation.d.ts +69 -0
- package/src/conversation/Conversation.js +50 -0
- package/src/conversation/Conversation.js.map +1 -0
- package/src/conversation/ConversationAPI/ConversationAPI.d.ts +344 -0
- package/src/conversation/ConversationAPI/ConversationAPI.js +865 -0
- package/src/conversation/ConversationAPI/ConversationAPI.js.map +1 -0
- package/src/conversation/ConversationAPI/index.d.ts +1 -0
- package/src/conversation/ConversationAPI/index.js +36 -0
- package/src/conversation/ConversationAPI/index.js.map +1 -0
- package/src/conversation/ConversationCode.d.ts +8 -0
- package/src/conversation/ConversationCode.js +21 -0
- package/src/conversation/ConversationCode.js.map +1 -0
- package/src/conversation/ConversationError.d.ts +19 -0
- package/src/conversation/ConversationError.js +71 -0
- package/src/conversation/ConversationError.js.map +1 -0
- package/src/conversation/ConversationIds.d.ts +4 -0
- package/src/conversation/ConversationIds.js +21 -0
- package/src/conversation/ConversationIds.js.map +1 -0
- package/src/conversation/ConversationMembers.d.ts +5 -0
- package/src/conversation/ConversationMembers.js +21 -0
- package/src/conversation/ConversationMembers.js.map +1 -0
- package/src/conversation/ConversationRole.d.ts +17 -0
- package/src/conversation/ConversationRole.js +27 -0
- package/src/conversation/ConversationRole.js.map +1 -0
- package/src/conversation/Conversations.d.ts +5 -0
- package/src/conversation/Conversations.js +21 -0
- package/src/conversation/Conversations.js.map +1 -0
- package/src/conversation/Invite.d.ts +3 -0
- package/src/conversation/Invite.js +21 -0
- package/src/conversation/Invite.js.map +1 -0
- package/src/conversation/Member.d.ts +25 -0
- package/src/conversation/Member.js +21 -0
- package/src/conversation/Member.js.map +1 -0
- package/src/conversation/MessageSendingStatus.d.ts +8 -0
- package/src/conversation/MessageSendingStatus.js +21 -0
- package/src/conversation/MessageSendingStatus.js.map +1 -0
- package/src/conversation/MutedStatus.d.ts +5 -0
- package/src/conversation/MutedStatus.js +28 -0
- package/src/conversation/MutedStatus.js.map +1 -0
- package/src/conversation/NewConversation.d.ts +19 -0
- package/src/conversation/NewConversation.js +27 -0
- package/src/conversation/NewConversation.js.map +1 -0
- package/src/conversation/NewOTRMessage.d.ts +17 -0
- package/src/conversation/NewOTRMessage.js +21 -0
- package/src/conversation/NewOTRMessage.js.map +1 -0
- package/src/conversation/OTRClientMap.d.ts +4 -0
- package/src/conversation/OTRClientMap.js +21 -0
- package/src/conversation/OTRClientMap.js.map +1 -0
- package/src/conversation/OTRRecipients.d.ts +7 -0
- package/src/conversation/OTRRecipients.js +21 -0
- package/src/conversation/OTRRecipients.js.map +1 -0
- package/src/conversation/OtherMember.d.ts +18 -0
- package/src/conversation/OtherMember.js +26 -0
- package/src/conversation/OtherMember.js.map +1 -0
- package/src/conversation/QualifiedConversationIds.d.ts +6 -0
- package/src/conversation/QualifiedConversationIds.js +21 -0
- package/src/conversation/QualifiedConversationIds.js.map +1 -0
- package/src/conversation/QualifiedUserClients.d.ts +4 -0
- package/src/conversation/QualifiedUserClients.js +21 -0
- package/src/conversation/QualifiedUserClients.js.map +1 -0
- package/src/conversation/RemoteConversations.d.ts +7 -0
- package/src/conversation/RemoteConversations.js +21 -0
- package/src/conversation/RemoteConversations.js.map +1 -0
- package/src/conversation/ServiceRef.d.ts +4 -0
- package/src/conversation/ServiceRef.js +21 -0
- package/src/conversation/ServiceRef.js.map +1 -0
- package/src/conversation/UserClients.d.ts +5 -0
- package/src/conversation/UserClients.js +21 -0
- package/src/conversation/UserClients.js.map +1 -0
- package/src/conversation/data/ConversationAccessUpdateData.d.ts +10 -0
- package/src/conversation/data/ConversationAccessUpdateData.js +21 -0
- package/src/conversation/data/ConversationAccessUpdateData.js.map +1 -0
- package/src/conversation/data/ConversationCodeUpdateData.d.ts +2 -0
- package/src/conversation/data/ConversationCodeUpdateData.js +21 -0
- package/src/conversation/data/ConversationCodeUpdateData.js.map +1 -0
- package/src/conversation/data/ConversationConnectRequestData.d.ts +6 -0
- package/src/conversation/data/ConversationConnectRequestData.js +21 -0
- package/src/conversation/data/ConversationConnectRequestData.js.map +1 -0
- package/src/conversation/data/ConversationCreateData.d.ts +7 -0
- package/src/conversation/data/ConversationCreateData.js +21 -0
- package/src/conversation/data/ConversationCreateData.js.map +1 -0
- package/src/conversation/data/ConversationJoinData.d.ts +4 -0
- package/src/conversation/data/ConversationJoinData.js +21 -0
- package/src/conversation/data/ConversationJoinData.js.map +1 -0
- package/src/conversation/data/ConversationMLSMessageAddData.d.ts +2 -0
- package/src/conversation/data/ConversationMLSMessageAddData.js +21 -0
- package/src/conversation/data/ConversationMLSMessageAddData.js.map +1 -0
- package/src/conversation/data/ConversationMLSWelcomeData.d.ts +2 -0
- package/src/conversation/data/ConversationMLSWelcomeData.js +21 -0
- package/src/conversation/data/ConversationMLSWelcomeData.js.map +1 -0
- package/src/conversation/data/ConversationMemberJoinData.d.ts +5 -0
- package/src/conversation/data/ConversationMemberJoinData.js +21 -0
- package/src/conversation/data/ConversationMemberJoinData.js.map +1 -0
- package/src/conversation/data/ConversationMemberLeaveData.d.ts +13 -0
- package/src/conversation/data/ConversationMemberLeaveData.js +26 -0
- package/src/conversation/data/ConversationMemberLeaveData.js.map +1 -0
- package/src/conversation/data/ConversationMemberUpdateData.d.ts +28 -0
- package/src/conversation/data/ConversationMemberUpdateData.js +21 -0
- package/src/conversation/data/ConversationMemberUpdateData.js.map +1 -0
- package/src/conversation/data/ConversationMessageTimerUpdateData.d.ts +3 -0
- package/src/conversation/data/ConversationMessageTimerUpdateData.js +21 -0
- package/src/conversation/data/ConversationMessageTimerUpdateData.js.map +1 -0
- package/src/conversation/data/ConversationNameUpdateData.d.ts +3 -0
- package/src/conversation/data/ConversationNameUpdateData.js +21 -0
- package/src/conversation/data/ConversationNameUpdateData.js.map +1 -0
- package/src/conversation/data/ConversationOtrMessageAddData.d.ts +6 -0
- package/src/conversation/data/ConversationOtrMessageAddData.js +21 -0
- package/src/conversation/data/ConversationOtrMessageAddData.js.map +1 -0
- package/src/conversation/data/ConversationReceiptModeUpdateData.d.ts +11 -0
- package/src/conversation/data/ConversationReceiptModeUpdateData.js +31 -0
- package/src/conversation/data/ConversationReceiptModeUpdateData.js.map +1 -0
- package/src/conversation/data/ConversationRenameData.d.ts +3 -0
- package/src/conversation/data/ConversationRenameData.js +21 -0
- package/src/conversation/data/ConversationRenameData.js.map +1 -0
- package/src/conversation/data/ConversationTypingData.d.ts +7 -0
- package/src/conversation/data/ConversationTypingData.js +27 -0
- package/src/conversation/data/ConversationTypingData.js.map +1 -0
- package/src/conversation/data/MlsEventData.d.ts +63 -0
- package/src/conversation/data/MlsEventData.js +21 -0
- package/src/conversation/data/MlsEventData.js.map +1 -0
- package/src/conversation/data/index.d.ts +16 -0
- package/src/conversation/data/index.js +51 -0
- package/src/conversation/data/index.js.map +1 -0
- package/src/conversation/index.d.ts +23 -0
- package/src/conversation/index.js +58 -0
- package/src/conversation/index.js.map +1 -0
- package/src/env/Backend.d.ts +9 -0
- package/src/env/Backend.js +36 -0
- package/src/env/Backend.js.map +1 -0
- package/src/env/index.d.ts +1 -0
- package/src/env/index.js +36 -0
- package/src/env/index.js.map +1 -0
- package/src/event/BackendEvent.d.ts +6 -0
- package/src/event/BackendEvent.js +21 -0
- package/src/event/BackendEvent.js.map +1 -0
- package/src/event/ConversationEvent.d.ts +96 -0
- package/src/event/ConversationEvent.js +41 -0
- package/src/event/ConversationEvent.js.map +1 -0
- package/src/event/TeamEvent.d.ts +57 -0
- package/src/event/TeamEvent.js +34 -0
- package/src/event/TeamEvent.js.map +1 -0
- package/src/event/UserEvent.d.ts +56 -0
- package/src/event/UserEvent.js +37 -0
- package/src/event/UserEvent.js.map +1 -0
- package/src/event/index.d.ts +4 -0
- package/src/event/index.js +39 -0
- package/src/event/index.js.map +1 -0
- package/src/giphy/GiphyAPI.d.ts +39 -0
- package/src/giphy/GiphyAPI.js +101 -0
- package/src/giphy/GiphyAPI.js.map +1 -0
- package/src/giphy/GiphyImage.d.ts +71 -0
- package/src/giphy/GiphyImage.js +21 -0
- package/src/giphy/GiphyImage.js.map +1 -0
- package/src/giphy/GiphyOptions.d.ts +45 -0
- package/src/giphy/GiphyOptions.js +30 -0
- package/src/giphy/GiphyOptions.js.map +1 -0
- package/src/giphy/GiphyResult.d.ts +17 -0
- package/src/giphy/GiphyResult.js +21 -0
- package/src/giphy/GiphyResult.js.map +1 -0
- package/src/giphy/index.d.ts +4 -0
- package/src/giphy/index.js +39 -0
- package/src/giphy/index.js.map +1 -0
- package/src/http/BackendError.d.ts +9 -0
- package/src/http/BackendError.js +33 -0
- package/src/http/BackendError.js.map +1 -0
- package/src/http/BackendErrorLabel.d.ts +96 -0
- package/src/http/BackendErrorLabel.js +131 -0
- package/src/http/BackendErrorLabel.js.map +1 -0
- package/src/http/BackendErrorMapper.d.ts +5 -0
- package/src/http/BackendErrorMapper.js +91 -0
- package/src/http/BackendErrorMapper.js.map +1 -0
- package/src/http/ConnectionState.d.ts +6 -0
- package/src/http/ConnectionState.js +29 -0
- package/src/http/ConnectionState.js.map +1 -0
- package/src/http/ContentType.d.ts +6 -0
- package/src/http/ContentType.js +29 -0
- package/src/http/ContentType.js.map +1 -0
- package/src/http/HttpClient.d.ts +46 -0
- package/src/http/HttpClient.js +229 -0
- package/src/http/HttpClient.js.map +1 -0
- package/src/http/NetworkError.d.ts +4 -0
- package/src/http/NetworkError.js +32 -0
- package/src/http/NetworkError.js.map +1 -0
- package/src/http/RequestCancelable.d.ts +4 -0
- package/src/http/RequestCancelable.js +21 -0
- package/src/http/RequestCancelable.js.map +1 -0
- package/src/http/RequestProgressHandler.d.ts +2 -0
- package/src/http/RequestProgressHandler.js +29 -0
- package/src/http/RequestProgressHandler.js.map +1 -0
- package/src/http/TraceState.d.ts +6 -0
- package/src/http/TraceState.js +21 -0
- package/src/http/TraceState.js.map +1 -0
- package/src/http/index.d.ts +11 -0
- package/src/http/index.js +48 -0
- package/src/http/index.js.map +1 -0
- package/src/notification/Notification.d.ts +12 -0
- package/src/notification/Notification.js +21 -0
- package/src/notification/Notification.js.map +1 -0
- package/src/notification/NotificationAPI.d.ts +41 -0
- package/src/notification/NotificationAPI.js +129 -0
- package/src/notification/NotificationAPI.js.map +1 -0
- package/src/notification/NotificationList.d.ts +7 -0
- package/src/notification/NotificationList.js +21 -0
- package/src/notification/NotificationList.js.map +1 -0
- package/src/notification/index.d.ts +3 -0
- package/src/notification/index.js +38 -0
- package/src/notification/index.js.map +1 -0
- package/src/obfuscation/ObfuscationUtil.d.ts +6 -0
- package/src/obfuscation/ObfuscationUtil.js +41 -0
- package/src/obfuscation/ObfuscationUtil.js.map +1 -0
- package/src/obfuscation/index.d.ts +1 -0
- package/src/obfuscation/index.js +36 -0
- package/src/obfuscation/index.js.map +1 -0
- package/src/self/ChangePassword.d.ts +4 -0
- package/src/self/ChangePassword.js +21 -0
- package/src/self/ChangePassword.js.map +1 -0
- package/src/self/Consent.d.ts +6 -0
- package/src/self/Consent.js +21 -0
- package/src/self/Consent.js.map +1 -0
- package/src/self/ConsentResults.d.ts +4 -0
- package/src/self/ConsentResults.js +21 -0
- package/src/self/ConsentResults.js.map +1 -0
- package/src/self/ConsentType.d.ts +4 -0
- package/src/self/ConsentType.js +27 -0
- package/src/self/ConsentType.js.map +1 -0
- package/src/self/Delete.d.ts +3 -0
- package/src/self/Delete.js +21 -0
- package/src/self/Delete.js.map +1 -0
- package/src/self/Name.d.ts +2 -0
- package/src/self/Name.js +21 -0
- package/src/self/Name.js.map +1 -0
- package/src/self/Picture.d.ts +17 -0
- package/src/self/Picture.js +21 -0
- package/src/self/Picture.js.map +1 -0
- package/src/self/SSOSignature.d.ts +4 -0
- package/src/self/SSOSignature.js +21 -0
- package/src/self/SSOSignature.js.map +1 -0
- package/src/self/Self.d.ts +13 -0
- package/src/self/Self.js +21 -0
- package/src/self/Self.js.map +1 -0
- package/src/self/SelfAPI.d.ts +93 -0
- package/src/self/SelfAPI.js +199 -0
- package/src/self/SelfAPI.js.map +1 -0
- package/src/self/index.d.ts +10 -0
- package/src/self/index.js +45 -0
- package/src/self/index.js.map +1 -0
- package/src/serviceProvider/LoginServiceProviderData.d.ts +2 -0
- package/src/serviceProvider/LoginServiceProviderData.js +21 -0
- package/src/serviceProvider/LoginServiceProviderData.js.map +1 -0
- package/src/serviceProvider/NewServiceProvider.d.ts +5 -0
- package/src/serviceProvider/NewServiceProvider.js +21 -0
- package/src/serviceProvider/NewServiceProvider.js.map +1 -0
- package/src/serviceProvider/RegisteredServiceProvider.d.ts +5 -0
- package/src/serviceProvider/RegisteredServiceProvider.js +21 -0
- package/src/serviceProvider/RegisteredServiceProvider.js.map +1 -0
- package/src/serviceProvider/ServiceProviderAPI.d.ts +28 -0
- package/src/serviceProvider/ServiceProviderAPI.js +93 -0
- package/src/serviceProvider/ServiceProviderAPI.js.map +1 -0
- package/src/serviceProvider/UpdateServiceProviderData.d.ts +2 -0
- package/src/serviceProvider/UpdateServiceProviderData.js +21 -0
- package/src/serviceProvider/UpdateServiceProviderData.js.map +1 -0
- package/src/serviceProvider/index.d.ts +5 -0
- package/src/serviceProvider/index.js +40 -0
- package/src/serviceProvider/index.js.map +1 -0
- package/src/services/Service.d.ts +80 -0
- package/src/services/Service.js +21 -0
- package/src/services/Service.js.map +1 -0
- package/src/services/ServicesAPI.d.ts +79 -0
- package/src/services/ServicesAPI.js +182 -0
- package/src/services/ServicesAPI.js.map +1 -0
- package/src/services/index.d.ts +1 -0
- package/src/services/index.js +36 -0
- package/src/services/index.js.map +1 -0
- package/src/shims/browser/buffer.d.ts +3 -0
- package/src/shims/browser/buffer.js +60 -0
- package/src/shims/browser/buffer.js.map +1 -0
- package/src/shims/browser/cookie.d.ts +5 -0
- package/src/shims/browser/cookie.js +26 -0
- package/src/shims/browser/cookie.js.map +1 -0
- package/src/shims/browser/websocket.d.ts +2 -0
- package/src/shims/browser/websocket.js +21 -0
- package/src/shims/browser/websocket.js.map +1 -0
- package/src/shims/node/buffer.d.ts +4 -0
- package/src/shims/node/buffer.js +31 -0
- package/src/shims/node/buffer.js.map +1 -0
- package/src/shims/node/cookie.d.ts +7 -0
- package/src/shims/node/cookie.js +59 -0
- package/src/shims/node/cookie.js.map +1 -0
- package/src/shims/node/random.d.ts +1 -0
- package/src/shims/node/random.js +28 -0
- package/src/shims/node/random.js.map +1 -0
- package/src/tcp/ReconnectingWebsocket.d.ts +50 -0
- package/src/tcp/ReconnectingWebsocket.js +199 -0
- package/src/tcp/ReconnectingWebsocket.js.map +1 -0
- package/src/tcp/WebSocketClient.d.ts +77 -0
- package/src/tcp/WebSocketClient.js +209 -0
- package/src/tcp/WebSocketClient.js.map +1 -0
- package/src/tcp/index.d.ts +1 -0
- package/src/tcp/index.js +36 -0
- package/src/tcp/index.js.map +1 -0
- package/src/team/TeamError.d.ts +13 -0
- package/src/team/TeamError.js +55 -0
- package/src/team/TeamError.js.map +1 -0
- package/src/team/billing/BillingAPI.d.ts +42 -0
- package/src/team/billing/BillingAPI.js +161 -0
- package/src/team/billing/BillingAPI.js.map +1 -0
- package/src/team/billing/BillingInfo.d.ts +10 -0
- package/src/team/billing/BillingInfo.js +21 -0
- package/src/team/billing/BillingInfo.js.map +1 -0
- package/src/team/billing/BillingTeamData.d.ts +23 -0
- package/src/team/billing/BillingTeamData.js +31 -0
- package/src/team/billing/BillingTeamData.js.map +1 -0
- package/src/team/billing/CardData.d.ts +6 -0
- package/src/team/billing/CardData.js +21 -0
- package/src/team/billing/CardData.js.map +1 -0
- package/src/team/billing/InvoiceData.d.ts +11 -0
- package/src/team/billing/InvoiceData.js +21 -0
- package/src/team/billing/InvoiceData.js.map +1 -0
- package/src/team/billing/InvoiceListData.d.ts +5 -0
- package/src/team/billing/InvoiceListData.js +21 -0
- package/src/team/billing/InvoiceListData.js.map +1 -0
- package/src/team/billing/InvoiceUpcomingData.d.ts +21 -0
- package/src/team/billing/InvoiceUpcomingData.js +21 -0
- package/src/team/billing/InvoiceUpcomingData.js.map +1 -0
- package/src/team/billing/PlanData.d.ts +14 -0
- package/src/team/billing/PlanData.js +27 -0
- package/src/team/billing/PlanData.js.map +1 -0
- package/src/team/billing/SupportedCurrency.d.ts +5 -0
- package/src/team/billing/SupportedCurrency.js +28 -0
- package/src/team/billing/SupportedCurrency.js.map +1 -0
- package/src/team/billing/index.d.ts +6 -0
- package/src/team/billing/index.js +41 -0
- package/src/team/billing/index.js.map +1 -0
- package/src/team/conversation/TeamConversation.d.ts +9 -0
- package/src/team/conversation/TeamConversation.js +21 -0
- package/src/team/conversation/TeamConversation.js.map +1 -0
- package/src/team/conversation/TeamConversationAPI.d.ts +38 -0
- package/src/team/conversation/TeamConversationAPI.js +86 -0
- package/src/team/conversation/TeamConversationAPI.js.map +1 -0
- package/src/team/conversation/index.d.ts +2 -0
- package/src/team/conversation/index.js +37 -0
- package/src/team/conversation/index.js.map +1 -0
- package/src/team/data/TeamConversationCreateData.d.ts +3 -0
- package/src/team/data/TeamConversationCreateData.js +21 -0
- package/src/team/data/TeamConversationCreateData.js.map +1 -0
- package/src/team/data/TeamConversationDeleteData.d.ts +3 -0
- package/src/team/data/TeamConversationDeleteData.js +21 -0
- package/src/team/data/TeamConversationDeleteData.js.map +1 -0
- package/src/team/data/TeamFeatureConfigurationUpdateEventData.d.ts +2 -0
- package/src/team/data/TeamFeatureConfigurationUpdateEventData.js +21 -0
- package/src/team/data/TeamFeatureConfigurationUpdateEventData.js.map +1 -0
- package/src/team/data/TeamMemberJoinData.d.ts +3 -0
- package/src/team/data/TeamMemberJoinData.js +21 -0
- package/src/team/data/TeamMemberJoinData.js.map +1 -0
- package/src/team/data/TeamMemberLeaveData.d.ts +3 -0
- package/src/team/data/TeamMemberLeaveData.js +21 -0
- package/src/team/data/TeamMemberLeaveData.js.map +1 -0
- package/src/team/data/TeamMemberUpdateData.d.ts +5 -0
- package/src/team/data/TeamMemberUpdateData.js +21 -0
- package/src/team/data/TeamMemberUpdateData.js.map +1 -0
- package/src/team/data/TeamUpdateData.d.ts +5 -0
- package/src/team/data/TeamUpdateData.js +21 -0
- package/src/team/data/TeamUpdateData.js.map +1 -0
- package/src/team/data/index.d.ts +7 -0
- package/src/team/data/index.js +42 -0
- package/src/team/data/index.js.map +1 -0
- package/src/team/feature/Feature.d.ts +57 -0
- package/src/team/feature/Feature.js +42 -0
- package/src/team/feature/Feature.js.map +1 -0
- package/src/team/feature/FeatureAPI.d.ts +53 -0
- package/src/team/feature/FeatureAPI.js +286 -0
- package/src/team/feature/FeatureAPI.js.map +1 -0
- package/src/team/feature/FeatureError.d.ts +10 -0
- package/src/team/feature/FeatureError.js +47 -0
- package/src/team/feature/FeatureError.js.map +1 -0
- package/src/team/feature/FeatureList.d.ts +34 -0
- package/src/team/feature/FeatureList.js +39 -0
- package/src/team/feature/FeatureList.js.map +1 -0
- package/src/team/feature/index.d.ts +4 -0
- package/src/team/feature/index.js +39 -0
- package/src/team/feature/index.js.map +1 -0
- package/src/team/identityprovider/IdentityProvider.d.ts +10 -0
- package/src/team/identityprovider/IdentityProvider.js +21 -0
- package/src/team/identityprovider/IdentityProvider.js.map +1 -0
- package/src/team/identityprovider/IdentityProviderAPI.d.ts +18 -0
- package/src/team/identityprovider/IdentityProviderAPI.js +88 -0
- package/src/team/identityprovider/IdentityProviderAPI.js.map +1 -0
- package/src/team/identityprovider/IdentityProviders.d.ts +4 -0
- package/src/team/identityprovider/IdentityProviders.js +21 -0
- package/src/team/identityprovider/IdentityProviders.js.map +1 -0
- package/src/team/identityprovider/index.d.ts +3 -0
- package/src/team/identityprovider/index.js +38 -0
- package/src/team/identityprovider/index.js.map +1 -0
- package/src/team/index.d.ts +12 -0
- package/src/team/index.js +60 -0
- package/src/team/index.js.map +1 -0
- package/src/team/invitation/InvitationError.d.ts +22 -0
- package/src/team/invitation/InvitationError.js +79 -0
- package/src/team/invitation/InvitationError.js.map +1 -0
- package/src/team/invitation/NewTeamInvitation.d.ts +9 -0
- package/src/team/invitation/NewTeamInvitation.js +21 -0
- package/src/team/invitation/NewTeamInvitation.js.map +1 -0
- package/src/team/invitation/TeamInvitation.d.ts +11 -0
- package/src/team/invitation/TeamInvitation.js +21 -0
- package/src/team/invitation/TeamInvitation.js.map +1 -0
- package/src/team/invitation/TeamInvitationAPI.d.ts +19 -0
- package/src/team/invitation/TeamInvitationAPI.js +143 -0
- package/src/team/invitation/TeamInvitationAPI.js.map +1 -0
- package/src/team/invitation/TeamInvitationChunk.d.ts +5 -0
- package/src/team/invitation/TeamInvitationChunk.js +21 -0
- package/src/team/invitation/TeamInvitationChunk.js.map +1 -0
- package/src/team/invitation/index.d.ts +5 -0
- package/src/team/invitation/index.js +40 -0
- package/src/team/invitation/index.js.map +1 -0
- package/src/team/legalhold/LegalHoldAPI.d.ts +20 -0
- package/src/team/legalhold/LegalHoldAPI.js +96 -0
- package/src/team/legalhold/LegalHoldAPI.js.map +1 -0
- package/src/team/legalhold/LegalHoldData.d.ts +20 -0
- package/src/team/legalhold/LegalHoldData.js +28 -0
- package/src/team/legalhold/LegalHoldData.js.map +1 -0
- package/src/team/legalhold/LegalHoldMemberStatus.d.ts +18 -0
- package/src/team/legalhold/LegalHoldMemberStatus.js +29 -0
- package/src/team/legalhold/LegalHoldMemberStatus.js.map +1 -0
- package/src/team/legalhold/NewLegalHoldData.d.ts +5 -0
- package/src/team/legalhold/NewLegalHoldData.js +21 -0
- package/src/team/legalhold/NewLegalHoldData.js.map +1 -0
- package/src/team/legalhold/index.d.ts +4 -0
- package/src/team/legalhold/index.js +39 -0
- package/src/team/legalhold/index.js.map +1 -0
- package/src/team/member/MemberAPI.d.ts +28 -0
- package/src/team/member/MemberAPI.js +144 -0
- package/src/team/member/MemberAPI.js.map +1 -0
- package/src/team/member/MemberCSVResponse.d.ts +4 -0
- package/src/team/member/MemberCSVResponse.js +21 -0
- package/src/team/member/MemberCSVResponse.js.map +1 -0
- package/src/team/member/MemberData.d.ts +11 -0
- package/src/team/member/MemberData.js +21 -0
- package/src/team/member/MemberData.js.map +1 -0
- package/src/team/member/Members.d.ts +5 -0
- package/src/team/member/Members.js +21 -0
- package/src/team/member/Members.js.map +1 -0
- package/src/team/member/Permissions.d.ts +17 -0
- package/src/team/member/Permissions.js +47 -0
- package/src/team/member/Permissions.js.map +1 -0
- package/src/team/member/PermissionsData.d.ts +7 -0
- package/src/team/member/PermissionsData.js +21 -0
- package/src/team/member/PermissionsData.js.map +1 -0
- package/src/team/member/Role.d.ts +18 -0
- package/src/team/member/Role.js +118 -0
- package/src/team/member/Role.js.map +1 -0
- package/src/team/member/UpdatedMemberData.d.ts +2 -0
- package/src/team/member/UpdatedMemberData.js +21 -0
- package/src/team/member/UpdatedMemberData.js.map +1 -0
- package/src/team/member/index.d.ts +7 -0
- package/src/team/member/index.js +42 -0
- package/src/team/member/index.js.map +1 -0
- package/src/team/payment/InvoiceData.d.ts +21 -0
- package/src/team/payment/InvoiceData.js +21 -0
- package/src/team/payment/InvoiceData.js.map +1 -0
- package/src/team/payment/PaymentAPI.d.ts +57 -0
- package/src/team/payment/PaymentAPI.js +156 -0
- package/src/team/payment/PaymentAPI.js.map +1 -0
- package/src/team/payment/PaymentBillingData.d.ts +12 -0
- package/src/team/payment/PaymentBillingData.js +21 -0
- package/src/team/payment/PaymentBillingData.js.map +1 -0
- package/src/team/payment/PaymentData.d.ts +34 -0
- package/src/team/payment/PaymentData.js +30 -0
- package/src/team/payment/PaymentData.js.map +1 -0
- package/src/team/payment/PaymentDataUpdate.d.ts +6 -0
- package/src/team/payment/PaymentDataUpdate.js +21 -0
- package/src/team/payment/PaymentDataUpdate.js.map +1 -0
- package/src/team/payment/PaymentInterval.d.ts +6 -0
- package/src/team/payment/PaymentInterval.js +29 -0
- package/src/team/payment/PaymentInterval.js.map +1 -0
- package/src/team/payment/PaymentPlan.d.ts +12 -0
- package/src/team/payment/PaymentPlan.js +27 -0
- package/src/team/payment/PaymentPlan.js.map +1 -0
- package/src/team/payment/PaymentStripeCharge.d.ts +19 -0
- package/src/team/payment/PaymentStripeCharge.js +27 -0
- package/src/team/payment/PaymentStripeCharge.js.map +1 -0
- package/src/team/payment/PaymentStripeInvoice.d.ts +11 -0
- package/src/team/payment/PaymentStripeInvoice.js +21 -0
- package/src/team/payment/PaymentStripeInvoice.js.map +1 -0
- package/src/team/payment/PaymentStripeInvoices.d.ts +5 -0
- package/src/team/payment/PaymentStripeInvoices.js +21 -0
- package/src/team/payment/PaymentStripeInvoices.js.map +1 -0
- package/src/team/payment/PaymentStripePlan.d.ts +9 -0
- package/src/team/payment/PaymentStripePlan.js +21 -0
- package/src/team/payment/PaymentStripePlan.js.map +1 -0
- package/src/team/payment/SupportedCurrency.d.ts +5 -0
- package/src/team/payment/SupportedCurrency.js +28 -0
- package/src/team/payment/SupportedCurrency.js.map +1 -0
- package/src/team/payment/index.d.ts +12 -0
- package/src/team/payment/index.js +47 -0
- package/src/team/payment/index.js.map +1 -0
- package/src/team/scim/NewScimToken.d.ts +5 -0
- package/src/team/scim/NewScimToken.js +21 -0
- package/src/team/scim/NewScimToken.js.map +1 -0
- package/src/team/scim/ScimAPI.d.ts +14 -0
- package/src/team/scim/ScimAPI.js +57 -0
- package/src/team/scim/ScimAPI.js.map +1 -0
- package/src/team/scim/ScimTokenInfo.d.ts +7 -0
- package/src/team/scim/ScimTokenInfo.js +21 -0
- package/src/team/scim/ScimTokenInfo.js.map +1 -0
- package/src/team/scim/ScimTokenInfoList.d.ts +4 -0
- package/src/team/scim/ScimTokenInfoList.js +21 -0
- package/src/team/scim/ScimTokenInfoList.js.map +1 -0
- package/src/team/scim/index.d.ts +3 -0
- package/src/team/scim/index.js +38 -0
- package/src/team/scim/index.js.map +1 -0
- package/src/team/search/TeamContact.d.ts +10 -0
- package/src/team/search/TeamContact.js +21 -0
- package/src/team/search/TeamContact.js.map +1 -0
- package/src/team/search/TeamSearchAPI.d.ts +16 -0
- package/src/team/search/TeamSearchAPI.js +69 -0
- package/src/team/search/TeamSearchAPI.js.map +1 -0
- package/src/team/search/TeamSearchOptions.d.ts +16 -0
- package/src/team/search/TeamSearchOptions.js +27 -0
- package/src/team/search/TeamSearchOptions.js.map +1 -0
- package/src/team/search/TeamSearchResult.d.ts +7 -0
- package/src/team/search/TeamSearchResult.js +21 -0
- package/src/team/search/TeamSearchResult.js.map +1 -0
- package/src/team/search/index.d.ts +4 -0
- package/src/team/search/index.js +39 -0
- package/src/team/search/index.js.map +1 -0
- package/src/team/service/Provider.d.ts +7 -0
- package/src/team/service/Provider.js +21 -0
- package/src/team/service/Provider.js.map +1 -0
- package/src/team/service/Service.d.ts +11 -0
- package/src/team/service/Service.js +21 -0
- package/src/team/service/Service.js.map +1 -0
- package/src/team/service/ServiceAPI.d.ts +19 -0
- package/src/team/service/ServiceAPI.js +94 -0
- package/src/team/service/ServiceAPI.js.map +1 -0
- package/src/team/service/ServiceWhitelistData.d.ts +5 -0
- package/src/team/service/ServiceWhitelistData.js +21 -0
- package/src/team/service/ServiceWhitelistData.js.map +1 -0
- package/src/team/service/Services.d.ts +5 -0
- package/src/team/service/Services.js +21 -0
- package/src/team/service/Services.js.map +1 -0
- package/src/team/service/index.d.ts +5 -0
- package/src/team/service/index.js +40 -0
- package/src/team/service/index.js.map +1 -0
- package/src/team/team/LeadData.d.ts +16 -0
- package/src/team/team/LeadData.js +21 -0
- package/src/team/team/LeadData.js.map +1 -0
- package/src/team/team/NewTeamData.d.ts +15 -0
- package/src/team/team/NewTeamData.js +21 -0
- package/src/team/team/NewTeamData.js.map +1 -0
- package/src/team/team/TeamAPI.d.ts +26 -0
- package/src/team/team/TeamAPI.js +126 -0
- package/src/team/team/TeamAPI.js.map +1 -0
- package/src/team/team/TeamChunkData.d.ts +5 -0
- package/src/team/team/TeamChunkData.js +21 -0
- package/src/team/team/TeamChunkData.js.map +1 -0
- package/src/team/team/TeamData.d.ts +17 -0
- package/src/team/team/TeamData.js +21 -0
- package/src/team/team/TeamData.js.map +1 -0
- package/src/team/team/TeamInfo.d.ts +5 -0
- package/src/team/team/TeamInfo.js +21 -0
- package/src/team/team/TeamInfo.js.map +1 -0
- package/src/team/team/TeamSizeData.d.ts +3 -0
- package/src/team/team/TeamSizeData.js +21 -0
- package/src/team/team/TeamSizeData.js.map +1 -0
- package/src/team/team/UpdateTeamData.d.ts +10 -0
- package/src/team/team/UpdateTeamData.js +21 -0
- package/src/team/team/UpdateTeamData.js.map +1 -0
- package/src/team/team/index.d.ts +7 -0
- package/src/team/team/index.js +42 -0
- package/src/team/team/index.js.map +1 -0
- package/src/user/Activate.d.ts +24 -0
- package/src/user/Activate.js +21 -0
- package/src/user/Activate.js.map +1 -0
- package/src/user/ActivationResponse.d.ts +5 -0
- package/src/user/ActivationResponse.js +21 -0
- package/src/user/ActivationResponse.js.map +1 -0
- package/src/user/CheckHandles.d.ts +4 -0
- package/src/user/CheckHandles.js +21 -0
- package/src/user/CheckHandles.js.map +1 -0
- package/src/user/CompletePasswordReset.d.ts +7 -0
- package/src/user/CompletePasswordReset.js +21 -0
- package/src/user/CompletePasswordReset.js.map +1 -0
- package/src/user/Contact.d.ts +2 -0
- package/src/user/Contact.js +21 -0
- package/src/user/Contact.js.map +1 -0
- package/src/user/HandleInfo.d.ts +5 -0
- package/src/user/HandleInfo.js +21 -0
- package/src/user/HandleInfo.js.map +1 -0
- package/src/user/LimitedQualifiedUserIdList.d.ts +4 -0
- package/src/user/LimitedQualifiedUserIdList.js +21 -0
- package/src/user/LimitedQualifiedUserIdList.js.map +1 -0
- package/src/user/ManagedSource.d.ts +4 -0
- package/src/user/ManagedSource.js +27 -0
- package/src/user/ManagedSource.js.map +1 -0
- package/src/user/NewPasswordReset.d.ts +4 -0
- package/src/user/NewPasswordReset.js +21 -0
- package/src/user/NewPasswordReset.js.map +1 -0
- package/src/user/QualifiedHandle.d.ts +4 -0
- package/src/user/QualifiedHandle.js +21 -0
- package/src/user/QualifiedHandle.js.map +1 -0
- package/src/user/QualifiedId.d.ts +4 -0
- package/src/user/QualifiedId.js +21 -0
- package/src/user/QualifiedId.js.map +1 -0
- package/src/user/RTCConfiguration.d.ts +5 -0
- package/src/user/RTCConfiguration.js +21 -0
- package/src/user/RTCConfiguration.js.map +1 -0
- package/src/user/RTCIceServer.d.ts +5 -0
- package/src/user/RTCIceServer.js +21 -0
- package/src/user/RTCIceServer.js.map +1 -0
- package/src/user/RichInfo.d.ts +8 -0
- package/src/user/RichInfo.js +21 -0
- package/src/user/RichInfo.js.map +1 -0
- package/src/user/SearchResult.d.ts +7 -0
- package/src/user/SearchResult.js +21 -0
- package/src/user/SearchResult.js.map +1 -0
- package/src/user/SendActivationCode.d.ts +10 -0
- package/src/user/SendActivationCode.js +21 -0
- package/src/user/SendActivationCode.js.map +1 -0
- package/src/user/User.d.ts +20 -0
- package/src/user/User.js +21 -0
- package/src/user/User.js.map +1 -0
- package/src/user/UserAPI.d.ts +235 -0
- package/src/user/UserAPI.js +585 -0
- package/src/user/UserAPI.js.map +1 -0
- package/src/user/UserAsset.d.ts +10 -0
- package/src/user/UserAsset.js +27 -0
- package/src/user/UserAsset.js.map +1 -0
- package/src/user/UserError.d.ts +13 -0
- package/src/user/UserError.js +55 -0
- package/src/user/UserError.js.map +1 -0
- package/src/user/UserPreKeyBundleMap.d.ts +9 -0
- package/src/user/UserPreKeyBundleMap.js +21 -0
- package/src/user/UserPreKeyBundleMap.js.map +1 -0
- package/src/user/UserUpdate.d.ts +2 -0
- package/src/user/UserUpdate.js +21 -0
- package/src/user/UserUpdate.js.map +1 -0
- package/src/user/VerifyDelete.d.ts +4 -0
- package/src/user/VerifyDelete.js +21 -0
- package/src/user/VerifyDelete.js.map +1 -0
- package/src/user/data/UserActivateData.d.ts +4 -0
- package/src/user/data/UserActivateData.js +21 -0
- package/src/user/data/UserActivateData.js.map +1 -0
- package/src/user/data/UserClientAddData.d.ts +4 -0
- package/src/user/data/UserClientAddData.js +21 -0
- package/src/user/data/UserClientAddData.js.map +1 -0
- package/src/user/data/UserClientRemoveData.d.ts +5 -0
- package/src/user/data/UserClientRemoveData.js +21 -0
- package/src/user/data/UserClientRemoveData.js.map +1 -0
- package/src/user/data/UserConnectionData.d.ts +8 -0
- package/src/user/data/UserConnectionData.js +21 -0
- package/src/user/data/UserConnectionData.js.map +1 -0
- package/src/user/data/UserDeleteData.d.ts +3 -0
- package/src/user/data/UserDeleteData.js +21 -0
- package/src/user/data/UserDeleteData.js.map +1 -0
- package/src/user/data/UserLegalHoldDisableData.d.ts +4 -0
- package/src/user/data/UserLegalHoldDisableData.js +21 -0
- package/src/user/data/UserLegalHoldDisableData.js.map +1 -0
- package/src/user/data/UserLegalHoldEnableData.d.ts +4 -0
- package/src/user/data/UserLegalHoldEnableData.js +21 -0
- package/src/user/data/UserLegalHoldEnableData.js.map +1 -0
- package/src/user/data/UserLegalHoldRequestData.d.ts +9 -0
- package/src/user/data/UserLegalHoldRequestData.js +21 -0
- package/src/user/data/UserLegalHoldRequestData.js.map +1 -0
- package/src/user/data/UserPropertiesDeleteData.d.ts +3 -0
- package/src/user/data/UserPropertiesDeleteData.js +21 -0
- package/src/user/data/UserPropertiesDeleteData.js.map +1 -0
- package/src/user/data/UserPropertiesSetData.d.ts +45 -0
- package/src/user/data/UserPropertiesSetData.js +35 -0
- package/src/user/data/UserPropertiesSetData.js.map +1 -0
- package/src/user/data/UserPushRemoveData.d.ts +9 -0
- package/src/user/data/UserPushRemoveData.js +21 -0
- package/src/user/data/UserPushRemoveData.js.map +1 -0
- package/src/user/data/UserPushTokenProvider.d.ts +8 -0
- package/src/user/data/UserPushTokenProvider.js +31 -0
- package/src/user/data/UserPushTokenProvider.js.map +1 -0
- package/src/user/data/UserUpdateData.d.ts +6 -0
- package/src/user/data/UserUpdateData.js +21 -0
- package/src/user/data/UserUpdateData.js.map +1 -0
- package/src/user/data/index.d.ts +12 -0
- package/src/user/data/index.js +47 -0
- package/src/user/data/index.js.map +1 -0
- package/src/user/index.d.ts +22 -0
- package/src/user/index.js +57 -0
- package/src/user/index.js.map +1 -0
- package/src/validation/ValidationError.d.ts +4 -0
- package/src/validation/ValidationError.js +30 -0
- package/src/validation/ValidationError.js.map +1 -0
- package/src/validation/index.d.ts +1 -0
- package/src/validation/index.js +36 -0
- package/src/validation/index.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreKey.js","sourceRoot":"","sources":["PreKey.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClientPreKey } from '../auth/';
|
|
2
|
+
import { QualifiedId } from '../user';
|
|
3
|
+
export interface PreKeyBundleBase {
|
|
4
|
+
/** PreKeys of all clients */
|
|
5
|
+
clients: ClientPreKey[];
|
|
6
|
+
}
|
|
7
|
+
export interface PreKeyBundle extends PreKeyBundleBase {
|
|
8
|
+
/** The user ID */
|
|
9
|
+
user: string;
|
|
10
|
+
}
|
|
11
|
+
export interface QualifiedPreKeyBundle extends PreKeyBundleBase {
|
|
12
|
+
/** The qualified user */
|
|
13
|
+
user: QualifiedId;
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
//# sourceMappingURL=PreKeyBundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreKeyBundle.js","sourceRoot":"","sources":["PreKeyBundle.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TeamData } from '../team/team/TeamData';
|
|
2
|
+
import { User } from '../user/';
|
|
3
|
+
export declare type RegisterData = Pick<User, 'accent_id' | 'assets' | 'email' | 'name'> & {
|
|
4
|
+
/** Email activation code */
|
|
5
|
+
email_code?: string;
|
|
6
|
+
/** Life time of a new temporary guest account */
|
|
7
|
+
expires_in?: number;
|
|
8
|
+
/** Regular invitation code. Mutually exclusive with `team_code` */
|
|
9
|
+
invitation_code?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
locale?: string;
|
|
12
|
+
password?: string;
|
|
13
|
+
phone?: string;
|
|
14
|
+
/** Phone activation code */
|
|
15
|
+
phone_code?: string;
|
|
16
|
+
/** Data for new team account creation */
|
|
17
|
+
team?: TeamData;
|
|
18
|
+
/** Team invitation code for joining an existing team. Mutually exclusive with `invitation_code` */
|
|
19
|
+
team_code?: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
//# sourceMappingURL=RegisterData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegisterData.js","sourceRoot":"","sources":["RegisterData.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Wire
|
|
4
|
+
* Copyright (C) 2019 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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
//# sourceMappingURL=SendLoginCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendLoginCode.js","sourceRoot":"","sources":["SendLoginCode.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Wire
|
|
4
|
+
* Copyright (C) 2022 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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.VerificationActionType = void 0;
|
|
22
|
+
var VerificationActionType;
|
|
23
|
+
(function (VerificationActionType) {
|
|
24
|
+
VerificationActionType["CREATE_SCIM_TOKEN"] = "create_scim_token";
|
|
25
|
+
VerificationActionType["LOGIN"] = "login";
|
|
26
|
+
VerificationActionType["DELETE_TEAM"] = "delete_team";
|
|
27
|
+
})(VerificationActionType = exports.VerificationActionType || (exports.VerificationActionType = {}));
|
|
28
|
+
//# sourceMappingURL=VerificationActionType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerificationActionType.js","sourceRoot":"","sources":["VerificationActionType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAChC,iEAAuC,CAAA;IACvC,yCAAe,CAAA;IACf,qDAA2B,CAAA;AAC7B,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const AUTH_ACCESS_TOKEN_KEY = "access-token";
|
|
2
|
+
export declare const AUTH_COOKIE_KEY = "cookie";
|
|
3
|
+
export declare const AUTH_TABLE_NAME = "authentication";
|
|
4
|
+
export * from './AccessTokenData';
|
|
5
|
+
export * from './AccessTokenStore';
|
|
6
|
+
export * from './AuthAPI';
|
|
7
|
+
export * from './AuthenticationError';
|
|
8
|
+
export * from './ClientPreKey';
|
|
9
|
+
export * from './Context';
|
|
10
|
+
export * from './Cookie';
|
|
11
|
+
export * from './CookieStore';
|
|
12
|
+
export * from './LoginCodeResponse';
|
|
13
|
+
export * from './LoginData';
|
|
14
|
+
export * from './PreKey';
|
|
15
|
+
export * from './PreKeyBundle';
|
|
16
|
+
export * from './RegisterData';
|
|
17
|
+
export * from './SendLoginCode';
|
|
@@ -0,0 +1,53 @@
|
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
+
}
|
|
26
|
+
Object.defineProperty(o, k2, desc);
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.AUTH_TABLE_NAME = exports.AUTH_COOKIE_KEY = exports.AUTH_ACCESS_TOKEN_KEY = void 0;
|
|
36
|
+
exports.AUTH_ACCESS_TOKEN_KEY = 'access-token';
|
|
37
|
+
exports.AUTH_COOKIE_KEY = 'cookie';
|
|
38
|
+
exports.AUTH_TABLE_NAME = 'authentication';
|
|
39
|
+
__exportStar(require("./AccessTokenData"), exports);
|
|
40
|
+
__exportStar(require("./AccessTokenStore"), exports);
|
|
41
|
+
__exportStar(require("./AuthAPI"), exports);
|
|
42
|
+
__exportStar(require("./AuthenticationError"), exports);
|
|
43
|
+
__exportStar(require("./ClientPreKey"), exports);
|
|
44
|
+
__exportStar(require("./Context"), exports);
|
|
45
|
+
__exportStar(require("./Cookie"), exports);
|
|
46
|
+
__exportStar(require("./CookieStore"), exports);
|
|
47
|
+
__exportStar(require("./LoginCodeResponse"), exports);
|
|
48
|
+
__exportStar(require("./LoginData"), exports);
|
|
49
|
+
__exportStar(require("./PreKey"), exports);
|
|
50
|
+
__exportStar(require("./PreKeyBundle"), exports);
|
|
51
|
+
__exportStar(require("./RegisterData"), exports);
|
|
52
|
+
__exportStar(require("./SendLoginCode"), exports);
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;;AAEU,QAAA,qBAAqB,GAAG,cAAc,CAAC;AACvC,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,eAAe,GAAG,gBAAgB,CAAC;AAEhD,oDAAkC;AAClC,qDAAmC;AACnC,4CAA0B;AAC1B,wDAAsC;AACtC,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,gDAA8B;AAC9B,sDAAoC;AACpC,8CAA4B;AAC5B,2CAAyB;AACzB,iDAA+B;AAC/B,iDAA+B;AAC/B,kDAAgC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum AccessTokenType {
|
|
2
|
+
ACCESS_DATA = "access-data",
|
|
3
|
+
USER_DATA = "user-data"
|
|
4
|
+
}
|
|
5
|
+
export interface AccessTokenInfo {
|
|
6
|
+
clientId: string;
|
|
7
|
+
expirationDate: Date;
|
|
8
|
+
keyIndex: number;
|
|
9
|
+
tag: string;
|
|
10
|
+
token: string;
|
|
11
|
+
type: AccessTokenType;
|
|
12
|
+
/** User data only exists in fields from cookies (e.g. "zuid") */
|
|
13
|
+
userData?: string;
|
|
14
|
+
userId: string;
|
|
15
|
+
version: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function parseValue(text: string, key: string): string;
|
|
18
|
+
export declare function parseAccessToken(accessToken: string): AccessTokenInfo;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Wire
|
|
4
|
+
* Copyright (C) 2021 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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.parseAccessToken = exports.parseValue = exports.AccessTokenType = void 0;
|
|
22
|
+
var AccessTokenType;
|
|
23
|
+
(function (AccessTokenType) {
|
|
24
|
+
AccessTokenType["ACCESS_DATA"] = "access-data";
|
|
25
|
+
AccessTokenType["USER_DATA"] = "user-data";
|
|
26
|
+
})(AccessTokenType = exports.AccessTokenType || (exports.AccessTokenType = {}));
|
|
27
|
+
function parseValue(text, key) {
|
|
28
|
+
const pattern = `${key}=`;
|
|
29
|
+
const start = text.indexOf(pattern);
|
|
30
|
+
if (start === -1) {
|
|
31
|
+
return '';
|
|
32
|
+
}
|
|
33
|
+
const payload = text.substr(start + pattern.length);
|
|
34
|
+
const stop = payload.indexOf('.') === -1 ? payload.length : payload.indexOf('.');
|
|
35
|
+
return payload.substr(0, stop);
|
|
36
|
+
}
|
|
37
|
+
exports.parseValue = parseValue;
|
|
38
|
+
function parseAccessToken(accessToken) {
|
|
39
|
+
const tokenVersion = parseValue(accessToken, 'v');
|
|
40
|
+
if (tokenVersion !== '1') {
|
|
41
|
+
throw new Error(`Unsupported access token version "${tokenVersion}".`);
|
|
42
|
+
}
|
|
43
|
+
const expirationDateInMillis = Number(parseValue(accessToken, 'd')) * 1000;
|
|
44
|
+
return {
|
|
45
|
+
clientId: parseValue(accessToken, 'c'),
|
|
46
|
+
expirationDate: new Date(expirationDateInMillis),
|
|
47
|
+
keyIndex: Number(parseValue(accessToken, 'k')),
|
|
48
|
+
tag: parseValue(accessToken, 'l'),
|
|
49
|
+
token: accessToken.split('.')[0],
|
|
50
|
+
type: parseValue(accessToken, 't') === 'a' ? AccessTokenType.ACCESS_DATA : AccessTokenType.USER_DATA,
|
|
51
|
+
userData: parseValue(accessToken, 'r'),
|
|
52
|
+
userId: parseValue(accessToken, 'u'),
|
|
53
|
+
version: Number(tokenVersion),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.parseAccessToken = parseAccessToken;
|
|
57
|
+
//# sourceMappingURL=parseAccessToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseAccessToken.js","sourceRoot":"","sources":["parseAccessToken.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,8CAA2B,CAAA;IAC3B,0CAAuB,CAAA;AACzB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAeD,SAAgB,UAAU,CAAC,IAAY,EAAE,GAAW;IAClD,MAAM,OAAO,GAAG,GAAG,GAAG,GAAG,CAAC;IAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACpC,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;QAChB,OAAO,EAAE,CAAC;KACX;IACD,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACpD,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACjF,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;AACjC,CAAC;AATD,gCASC;AAED,SAAgB,gBAAgB,CAAC,WAAmB;IAClD,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IAElD,IAAI,YAAY,KAAK,GAAG,EAAE;QACxB,MAAM,IAAI,KAAK,CAAC,qCAAqC,YAAY,IAAI,CAAC,CAAC;KACxE;IAED,MAAM,sBAAsB,GAAG,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;IAE3E,OAAO;QACL,QAAQ,EAAE,UAAU,CAAC,WAAW,EAAE,GAAG,CAAC;QACtC,cAAc,EAAE,IAAI,IAAI,CAAC,sBAAsB,CAAC;QAChD,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;QAC9C,GAAG,EAAE,UAAU,CAAC,WAAW,EAAE,GAAG,CAAC;QACjC,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAChC,IAAI,EAAE,UAAU,CAAC,WAAW,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,SAAS;QACpG,QAAQ,EAAE,UAAU,CAAC,WAAW,EAAE,GAAG,CAAC;QACtC,MAAM,EAAE,UAAU,CAAC,WAAW,EAAE,GAAG,CAAC;QACpC,OAAO,EAAE,MAAM,CAAC,YAAY,CAAC;KAC9B,CAAC;AACJ,CAAC;AApBD,4CAoBC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { proteus as ProtobufOTR } from '@wireapp/protocol-messaging/web/otr';
|
|
2
|
+
import { ClientMismatch, MessageSendingStatus, NewOTRMessage } from '../conversation/';
|
|
3
|
+
import { HttpClient } from '../http/';
|
|
4
|
+
export declare class BroadcastAPI {
|
|
5
|
+
private readonly client;
|
|
6
|
+
constructor(client: HttpClient);
|
|
7
|
+
static readonly URL: {
|
|
8
|
+
BROADCAST: string;
|
|
9
|
+
BROADCAST_FEDERATED: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Broadcast an encrypted message to all team members and all contacts (accepts Protobuf).
|
|
13
|
+
* @param sendingClientId The sender's client ID
|
|
14
|
+
* @param messageData The message content
|
|
15
|
+
* @param ignoreMissing Whether to report missing clients or not:
|
|
16
|
+
* `false`: Report about all missing clients
|
|
17
|
+
* `true`: Ignore all missing clients and force sending
|
|
18
|
+
* Array: User IDs specifying which user IDs are allowed to have
|
|
19
|
+
* missing clients
|
|
20
|
+
* `undefined`: Default to setting of `report_missing` in `NewOTRMessage`
|
|
21
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/tab.html#!/postOtrBroadcast
|
|
22
|
+
*/
|
|
23
|
+
postBroadcastMessage(sendingClientId: string, messageData: NewOTRMessage<string>, ignoreMissing?: boolean | string[]): Promise<ClientMismatch>;
|
|
24
|
+
/**
|
|
25
|
+
* Broadcast an encrypted message to all team members and all contacts (accepts Protobuf).
|
|
26
|
+
* @param sendingClientId The sender's client ID
|
|
27
|
+
* @param messageData The message content
|
|
28
|
+
* @param ignoreMissing Whether to report missing clients or not:
|
|
29
|
+
* `false`: Report about all missing clients
|
|
30
|
+
* `true`: Ignore all missing clients and force sending
|
|
31
|
+
* Array: User IDs specifying which user IDs are allowed to have
|
|
32
|
+
* missing clients
|
|
33
|
+
* `undefined`: Default to setting of `report_missing` in `NewOTRMessage`
|
|
34
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/tab.html#!/postOtrBroadcast
|
|
35
|
+
*/
|
|
36
|
+
postBroadcastProtobufMessage(sendingClientId: string, messageData: ProtobufOTR.NewOtrMessage, ignoreMissing?: boolean | string[]): Promise<ClientMismatch>;
|
|
37
|
+
/**
|
|
38
|
+
* Broadcast an encrypted message to all team members and all contacts in federated environments
|
|
39
|
+
* @param sendingClientId The sender's client ID
|
|
40
|
+
* @param messageData The message content
|
|
41
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/tab.html#!/postOtrBroadcast
|
|
42
|
+
*/
|
|
43
|
+
postBroadcastFederatedMessage(sendingClientId: string, messageData: ProtobufOTR.QualifiedNewOtrMessage): Promise<MessageSendingStatus>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.BroadcastAPI = void 0;
|
|
22
|
+
const otr_1 = require("@wireapp/protocol-messaging/web/otr");
|
|
23
|
+
const validation_1 = require("../validation/");
|
|
24
|
+
class BroadcastAPI {
|
|
25
|
+
constructor(client) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Broadcast an encrypted message to all team members and all contacts (accepts Protobuf).
|
|
30
|
+
* @param sendingClientId The sender's client ID
|
|
31
|
+
* @param messageData The message content
|
|
32
|
+
* @param ignoreMissing Whether to report missing clients or not:
|
|
33
|
+
* `false`: Report about all missing clients
|
|
34
|
+
* `true`: Ignore all missing clients and force sending
|
|
35
|
+
* Array: User IDs specifying which user IDs are allowed to have
|
|
36
|
+
* missing clients
|
|
37
|
+
* `undefined`: Default to setting of `report_missing` in `NewOTRMessage`
|
|
38
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/tab.html#!/postOtrBroadcast
|
|
39
|
+
*/
|
|
40
|
+
async postBroadcastMessage(sendingClientId, messageData, ignoreMissing) {
|
|
41
|
+
if (!sendingClientId) {
|
|
42
|
+
throw new validation_1.ValidationError('Unable to send OTR message without client ID.');
|
|
43
|
+
}
|
|
44
|
+
const config = {
|
|
45
|
+
data: messageData,
|
|
46
|
+
method: 'post',
|
|
47
|
+
url: BroadcastAPI.URL.BROADCAST,
|
|
48
|
+
};
|
|
49
|
+
if (typeof ignoreMissing !== 'undefined') {
|
|
50
|
+
const ignore_missing = Array.isArray(ignoreMissing) ? ignoreMissing.join(',') : ignoreMissing;
|
|
51
|
+
config.params = { ignore_missing };
|
|
52
|
+
// `ignore_missing` takes precedence on the server so we can remove
|
|
53
|
+
// `report_missing` to save some bandwidth.
|
|
54
|
+
delete messageData.report_missing;
|
|
55
|
+
}
|
|
56
|
+
else if (typeof messageData.report_missing === 'undefined') {
|
|
57
|
+
// both `ignore_missing` and `report_missing` are undefined
|
|
58
|
+
config.params = { ignore_missing: !!messageData.data };
|
|
59
|
+
}
|
|
60
|
+
const response = await this.client.sendJSON(config);
|
|
61
|
+
return response.data;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Broadcast an encrypted message to all team members and all contacts (accepts Protobuf).
|
|
65
|
+
* @param sendingClientId The sender's client ID
|
|
66
|
+
* @param messageData The message content
|
|
67
|
+
* @param ignoreMissing Whether to report missing clients or not:
|
|
68
|
+
* `false`: Report about all missing clients
|
|
69
|
+
* `true`: Ignore all missing clients and force sending
|
|
70
|
+
* Array: User IDs specifying which user IDs are allowed to have
|
|
71
|
+
* missing clients
|
|
72
|
+
* `undefined`: Default to setting of `report_missing` in `NewOTRMessage`
|
|
73
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/tab.html#!/postOtrBroadcast
|
|
74
|
+
*/
|
|
75
|
+
async postBroadcastProtobufMessage(sendingClientId, messageData, ignoreMissing) {
|
|
76
|
+
if (!sendingClientId) {
|
|
77
|
+
throw new validation_1.ValidationError('Unable to send OTR message without client ID.');
|
|
78
|
+
}
|
|
79
|
+
const config = {
|
|
80
|
+
data: otr_1.proteus.NewOtrMessage.encode(messageData).finish(),
|
|
81
|
+
method: 'post',
|
|
82
|
+
url: BroadcastAPI.URL.BROADCAST,
|
|
83
|
+
};
|
|
84
|
+
if (typeof ignoreMissing !== 'undefined') {
|
|
85
|
+
const ignore_missing = Array.isArray(ignoreMissing) ? ignoreMissing.join(',') : ignoreMissing;
|
|
86
|
+
config.params = { ignore_missing };
|
|
87
|
+
// `ignore_missing` takes precedence on the server so we can remove
|
|
88
|
+
// `report_missing` to save some bandwidth.
|
|
89
|
+
messageData.reportMissing = [];
|
|
90
|
+
}
|
|
91
|
+
else if (typeof messageData.reportMissing === 'undefined' || !messageData.reportMissing.length) {
|
|
92
|
+
// both `ignore_missing` and `report_missing` are undefined
|
|
93
|
+
config.params = { ignore_missing: !!messageData.blob };
|
|
94
|
+
}
|
|
95
|
+
const response = await this.client.sendProtocolBuffer(config);
|
|
96
|
+
return response.data;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Broadcast an encrypted message to all team members and all contacts in federated environments
|
|
100
|
+
* @param sendingClientId The sender's client ID
|
|
101
|
+
* @param messageData The message content
|
|
102
|
+
* @see https://staging-nginz-https.zinfra.io/swagger-ui/tab.html#!/postOtrBroadcast
|
|
103
|
+
*/
|
|
104
|
+
async postBroadcastFederatedMessage(sendingClientId, messageData) {
|
|
105
|
+
if (!sendingClientId) {
|
|
106
|
+
throw new validation_1.ValidationError('Unable to send OTR message without client ID.');
|
|
107
|
+
}
|
|
108
|
+
const config = {
|
|
109
|
+
data: otr_1.proteus.QualifiedNewOtrMessage.encode(messageData).finish().slice(),
|
|
110
|
+
method: 'post',
|
|
111
|
+
url: BroadcastAPI.URL.BROADCAST_FEDERATED,
|
|
112
|
+
};
|
|
113
|
+
const response = await this.client.sendProtocolBuffer(config);
|
|
114
|
+
return response.data;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
exports.BroadcastAPI = BroadcastAPI;
|
|
118
|
+
BroadcastAPI.URL = {
|
|
119
|
+
BROADCAST: '/broadcast/otr/messages',
|
|
120
|
+
BROADCAST_FEDERATED: '/broadcast/proteus/messages',
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=BroadcastAPI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BroadcastAPI.js","sourceRoot":"","sources":["BroadcastAPI.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,6DAA2E;AAG3E,+CAA+C;AAI/C,MAAa,YAAY;IACvB,YAA6B,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAOnD;;;;;;;;;;;OAWG;IACI,KAAK,CAAC,oBAAoB,CAC/B,eAAuB,EACvB,WAAkC,EAClC,aAAkC;QAElC,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,IAAI,4BAAe,CAAC,+CAA+C,CAAC,CAAC;SAC5E;QAED,MAAM,MAAM,GAAuB;YACjC,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,YAAY,CAAC,GAAG,CAAC,SAAS;SAChC,CAAC;QAEF,IAAI,OAAO,aAAa,KAAK,WAAW,EAAE;YACxC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;YAC9F,MAAM,CAAC,MAAM,GAAG,EAAC,cAAc,EAAC,CAAC;YACjC,mEAAmE;YACnE,2CAA2C;YAC3C,OAAO,WAAW,CAAC,cAAc,CAAC;SACnC;aAAM,IAAI,OAAO,WAAW,CAAC,cAAc,KAAK,WAAW,EAAE;YAC5D,2DAA2D;YAC3D,MAAM,CAAC,MAAM,GAAG,EAAC,cAAc,EAAE,CAAC,CAAC,WAAW,CAAC,IAAI,EAAC,CAAC;SACtD;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAiB,MAAM,CAAC,CAAC;QACpE,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;OAWG;IACI,KAAK,CAAC,4BAA4B,CACvC,eAAuB,EACvB,WAAsC,EACtC,aAAkC;QAElC,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,IAAI,4BAAe,CAAC,+CAA+C,CAAC,CAAC;SAC5E;QAED,MAAM,MAAM,GAAuB;YACjC,IAAI,EAAE,aAAW,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE;YAC5D,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,YAAY,CAAC,GAAG,CAAC,SAAS;SAChC,CAAC;QAEF,IAAI,OAAO,aAAa,KAAK,WAAW,EAAE;YACxC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;YAC9F,MAAM,CAAC,MAAM,GAAG,EAAC,cAAc,EAAC,CAAC;YACjC,mEAAmE;YACnE,2CAA2C;YAC3C,WAAW,CAAC,aAAa,GAAG,EAAE,CAAC;SAChC;aAAM,IAAI,OAAO,WAAW,CAAC,aAAa,KAAK,WAAW,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,MAAM,EAAE;YAChG,2DAA2D;YAC3D,MAAM,CAAC,MAAM,GAAG,EAAC,cAAc,EAAE,CAAC,CAAC,WAAW,CAAC,IAAI,EAAC,CAAC;SACtD;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAiB,MAAM,CAAC,CAAC;QAC9E,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,6BAA6B,CACxC,eAAuB,EACvB,WAA+C;QAE/C,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,IAAI,4BAAe,CAAC,+CAA+C,CAAC,CAAC;SAC5E;QAED,MAAM,MAAM,GAAuB;YACjC,IAAI,EAAE,aAAW,CAAC,sBAAsB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;YAC7E,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,YAAY,CAAC,GAAG,CAAC,mBAAmB;SAC1C,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAuB,MAAM,CAAC,CAAC;QACpF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;;AAlHH,oCAmHC;AAhHwB,gBAAG,GAAG;IAC3B,SAAS,EAAE,yBAAyB;IACpC,mBAAmB,EAAE,6BAA6B;CACnD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BroadcastAPI';
|
|
@@ -0,0 +1,36 @@
|
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
+
}
|
|
26
|
+
Object.defineProperty(o, k2, desc);
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
__exportStar(require("./BroadcastAPI"), exports);
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,iDAA+B"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { PreKeyBundle } from '../auth/';
|
|
2
|
+
import { CreateClientPayload, RegisteredClient, UpdateClientPayload } from '../client/';
|
|
3
|
+
import { HttpClient } from '../http/';
|
|
4
|
+
import { ClientCapabilityData } from './ClientCapabilityData';
|
|
5
|
+
declare type ClaimedKeyPackages = {
|
|
6
|
+
key_packages: {
|
|
7
|
+
client: string;
|
|
8
|
+
domain: string;
|
|
9
|
+
key_package: string;
|
|
10
|
+
key_package_ref: string;
|
|
11
|
+
user: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
export declare class ClientAPI {
|
|
15
|
+
private readonly client;
|
|
16
|
+
constructor(client: HttpClient);
|
|
17
|
+
static readonly URL: {
|
|
18
|
+
CLIENTS: string;
|
|
19
|
+
MLS_CLIENTS: string;
|
|
20
|
+
MLS_KEY_PACKAGES: string;
|
|
21
|
+
CAPABILITIES: string;
|
|
22
|
+
PREKEYS: string;
|
|
23
|
+
};
|
|
24
|
+
postClient(newClient: CreateClientPayload): Promise<RegisteredClient>;
|
|
25
|
+
putClient(clientId: string, updatedClient: UpdateClientPayload): Promise<void>;
|
|
26
|
+
getClientCapabilities(clientId: string): Promise<ClientCapabilityData>;
|
|
27
|
+
/**
|
|
28
|
+
* Deletes a client on the backend
|
|
29
|
+
* @param clientId
|
|
30
|
+
* @param password? password can be omitted if the client is a temporary client
|
|
31
|
+
*/
|
|
32
|
+
deleteClient(clientId: string, password?: string): Promise<void>;
|
|
33
|
+
getClient(clientId: string): Promise<RegisteredClient>;
|
|
34
|
+
getClients(): Promise<RegisteredClient[]>;
|
|
35
|
+
getClientPreKeys(clientId: string): Promise<PreKeyBundle>;
|
|
36
|
+
/**
|
|
37
|
+
* Will upload keypackages for an MLS capable client
|
|
38
|
+
* @see https://staging-nginz-https.zinfra.io/api/swagger-ui/#/default/post_mls_key_packages_self__client_
|
|
39
|
+
* @param {string} clientId The client to upload the key packages for
|
|
40
|
+
* @param {string[]} keyPackages The key packages to upload
|
|
41
|
+
*/
|
|
42
|
+
uploadMLSKeyPackages(clientId: string, keyPackages: string[]): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Claim one key package for each client of the given user
|
|
45
|
+
* @param {string} userId The user to claim the key packages for
|
|
46
|
+
* @param {string} userDomain The domain of the user
|
|
47
|
+
* @param {string} skipOwn Do not claim a key package for the given own client id
|
|
48
|
+
* @see https://staging-nginz-https.zinfra.io/api/swagger-ui/#/default/post_mls_key_packages_claim__user_domain___user_
|
|
49
|
+
*/
|
|
50
|
+
claimMLSKeyPackages(userId: string, userDomain: string, skipOwn?: string): Promise<ClaimedKeyPackages>;
|
|
51
|
+
/**
|
|
52
|
+
* Get the number of unused key packages for the given client
|
|
53
|
+
* @param {string} clientId
|
|
54
|
+
* @see https://staging-nginz-https.zinfra.io/api/swagger-ui/#/default/get_mls_key_packages_self__client__count
|
|
55
|
+
*/
|
|
56
|
+
getMLSKeyPackageCount(clientId: string): Promise<number>;
|
|
57
|
+
}
|
|
58
|
+
export {};
|