@wireapp/wire-apps-js-sdk 0.0.1-alpha → 0.1.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 +23 -8
- package/build/WireAppSdk.d.ts +22 -7
- package/build/WireAppSdk.d.ts.map +1 -1
- package/build/WireAppSdk.js +69 -47
- package/build/WireAppSdk.js.map +1 -1
- package/build/api/AssetsApiClient.d.ts +4 -4
- package/build/api/AssetsApiClient.d.ts.map +1 -1
- package/build/api/AssetsApiClient.js +7 -7
- package/build/api/AssetsApiClient.js.map +1 -1
- package/build/api/AssetsTransferService.d.ts +3 -3
- package/build/api/AssetsTransferService.d.ts.map +1 -1
- package/build/api/AssetsTransferService.js +9 -10
- package/build/api/AssetsTransferService.js.map +1 -1
- package/build/api/ClientsApiClient.d.ts +4 -4
- package/build/api/ClientsApiClient.d.ts.map +1 -1
- package/build/api/ClientsApiClient.js +7 -7
- package/build/api/ClientsApiClient.js.map +1 -1
- package/build/api/ClientsService.d.ts +3 -3
- package/build/api/ClientsService.d.ts.map +1 -1
- package/build/api/ClientsService.js +3 -3
- package/build/api/ClientsService.js.map +1 -1
- package/build/api/ConversationService.d.ts +34 -22
- package/build/api/ConversationService.d.ts.map +1 -1
- package/build/api/ConversationService.js +91 -84
- package/build/api/ConversationService.js.map +1 -1
- package/build/api/ConversationsApiClient.d.ts +7 -9
- package/build/api/ConversationsApiClient.d.ts.map +1 -1
- package/build/api/ConversationsApiClient.js +10 -20
- package/build/api/ConversationsApiClient.js.map +1 -1
- package/build/api/FeatureConfigsApiClient.d.ts +2 -2
- package/build/api/FeatureConfigsApiClient.d.ts.map +1 -1
- package/build/api/FeatureConfigsApiClient.js +3 -3
- package/build/api/FeatureConfigsApiClient.js.map +1 -1
- package/build/api/FeatureConfigsService.d.ts +1 -1
- package/build/api/FeatureConfigsService.d.ts.map +1 -1
- package/build/api/FeatureConfigsService.js +16 -16
- package/build/api/FeatureConfigsService.js.map +1 -1
- package/build/api/MlsApiClient.d.ts +4 -4
- package/build/api/MlsApiClient.d.ts.map +1 -1
- package/build/api/MlsApiClient.js +12 -12
- package/build/api/MlsApiClient.js.map +1 -1
- package/build/api/MlsService.d.ts +5 -5
- package/build/api/MlsService.d.ts.map +1 -1
- package/build/api/MlsService.js +23 -23
- package/build/api/MlsService.js.map +1 -1
- package/build/api/NotificationsApiClient.d.ts +4 -4
- package/build/api/NotificationsApiClient.d.ts.map +1 -1
- package/build/api/NotificationsApiClient.js +22 -22
- package/build/api/NotificationsApiClient.js.map +1 -1
- package/build/api/OneToOneConversationsApiClient.d.ts +3 -3
- package/build/api/OneToOneConversationsApiClient.d.ts.map +1 -1
- package/build/api/OneToOneConversationsApiClient.js +4 -4
- package/build/api/OneToOneConversationsApiClient.js.map +1 -1
- package/build/api/SearchApiClient.d.ts +2 -2
- package/build/api/SearchApiClient.d.ts.map +1 -1
- package/build/api/SearchApiClient.js +9 -8
- package/build/api/SearchApiClient.js.map +1 -1
- package/build/api/SelfApiClient.d.ts +9 -0
- package/build/api/SelfApiClient.d.ts.map +1 -0
- package/build/api/SelfApiClient.js +42 -0
- package/build/api/SelfApiClient.js.map +1 -0
- package/build/api/SelfService.d.ts +12 -0
- package/build/api/SelfService.d.ts.map +1 -0
- package/build/api/SelfService.js +81 -0
- package/build/api/SelfService.js.map +1 -0
- package/build/api/TeamsApiClient.d.ts +3 -3
- package/build/api/TeamsApiClient.d.ts.map +1 -1
- package/build/api/TeamsApiClient.js +4 -4
- package/build/api/TeamsApiClient.js.map +1 -1
- package/build/api/UserService.d.ts +6 -5
- package/build/api/UserService.d.ts.map +1 -1
- package/build/api/UserService.js +20 -11
- package/build/api/UserService.js.map +1 -1
- package/build/api/UsersApiClient.d.ts +8 -5
- package/build/api/UsersApiClient.d.ts.map +1 -1
- package/build/api/UsersApiClient.js +13 -8
- package/build/api/UsersApiClient.js.map +1 -1
- package/build/api/model/AddMembersToConversationResult.d.ts +1 -1
- package/build/api/model/AddMembersToConversationResult.d.ts.map +1 -1
- package/build/api/model/AddMembersToConversationResult.js +14 -14
- package/build/api/model/AddMembersToConversationResult.js.map +1 -1
- package/build/api/model/ConversationIdsPaginationConfig.js +14 -14
- package/build/api/model/ConversationIdsPaginationConfig.js.map +1 -1
- package/build/api/model/ConversationMemberOtherResponse.d.ts +2 -2
- package/build/api/model/ConversationMemberOtherResponse.d.ts.map +1 -1
- package/build/api/model/ConversationMemberOtherResponse.js +14 -14
- package/build/api/model/ConversationMemberOtherResponse.js.map +1 -1
- package/build/api/model/ConversationMemberSelfResponse.d.ts +2 -2
- package/build/api/model/ConversationMemberSelfResponse.d.ts.map +1 -1
- package/build/api/model/ConversationMemberSelfResponse.js +14 -14
- package/build/api/model/ConversationMemberSelfResponse.js.map +1 -1
- package/build/api/model/ConversationMembersResponse.d.ts +2 -2
- package/build/api/model/ConversationMembersResponse.d.ts.map +1 -1
- package/build/api/model/ConversationMembersResponse.js +14 -14
- package/build/api/model/ConversationMembersResponse.js.map +1 -1
- package/build/api/model/RemoveMembersFromConversationResult.d.ts +1 -1
- package/build/api/model/RemoveMembersFromConversationResult.d.ts.map +1 -1
- package/build/api/model/RemoveMembersFromConversationResult.js +14 -14
- package/build/api/model/RemoveMembersFromConversationResult.js.map +1 -1
- package/build/api/model/UserClientResponse.js +14 -14
- package/build/api/model/UserClientResponse.js.map +1 -1
- package/build/api/model/UserResponse.d.ts +4 -2
- package/build/api/model/UserResponse.d.ts.map +1 -1
- package/build/api/model/UserResponse.js +14 -14
- package/build/api/model/UserResponse.js.map +1 -1
- package/build/api/model/asset/AssetUploadData.d.ts.map +1 -1
- package/build/api/model/asset/AssetUploadResponse.d.ts.map +1 -1
- package/build/api/request/CapabilitiesRequest.js +14 -14
- package/build/api/request/CapabilitiesRequest.js.map +1 -1
- package/build/api/request/ClientUpdateRequest.d.ts +1 -1
- package/build/api/request/ClientUpdateRequest.d.ts.map +1 -1
- package/build/api/request/ClientUpdateRequest.js +14 -14
- package/build/api/request/ClientUpdateRequest.js.map +1 -1
- package/build/api/request/ConversationIdsRequest.d.ts +1 -1
- package/build/api/request/ConversationIdsRequest.js +14 -14
- package/build/api/request/ConversationIdsRequest.js.map +1 -1
- package/build/api/request/CreateConversationRequest.d.ts +9 -9
- package/build/api/request/CreateConversationRequest.d.ts.map +1 -1
- package/build/api/request/CreateConversationRequest.js +8 -11
- package/build/api/request/CreateConversationRequest.js.map +1 -1
- package/build/api/request/MlsKeyPackagesRequest.js +14 -14
- package/build/api/request/MlsKeyPackagesRequest.js.map +1 -1
- package/build/api/request/PreKeyRequest.d.ts.map +1 -1
- package/build/api/request/PreKeyRequest.js +14 -14
- package/build/api/request/PreKeyRequest.js.map +1 -1
- package/build/api/request/RegisterClientRequest.d.ts +2 -2
- package/build/api/request/RegisterClientRequest.d.ts.map +1 -1
- package/build/api/request/RegisterClientRequest.js +18 -20
- package/build/api/request/RegisterClientRequest.js.map +1 -1
- package/build/api/response/ClaimedKeyPackageList.d.ts.map +1 -1
- package/build/api/response/ClaimedKeyPackageList.js +14 -14
- package/build/api/response/ClaimedKeyPackageList.js.map +1 -1
- package/build/api/response/ConversationIdsResponse.d.ts +1 -1
- package/build/api/response/ConversationIdsResponse.js +14 -14
- package/build/api/response/ConversationIdsResponse.js.map +1 -1
- package/build/api/response/ConversationResponse.d.ts +4 -4
- package/build/api/response/ConversationResponse.d.ts.map +1 -1
- package/build/api/response/ConversationResponse.js +14 -14
- package/build/api/response/ConversationResponse.js.map +1 -1
- package/build/api/response/ConversationsResponse.d.ts +2 -2
- package/build/api/response/ConversationsResponse.js +14 -14
- package/build/api/response/ConversationsResponse.js.map +1 -1
- package/build/api/response/EventResponse.d.ts +1 -1
- package/build/api/response/EventResponse.d.ts.map +1 -1
- package/build/api/response/EventResponse.js +14 -14
- package/build/api/response/EventResponse.js.map +1 -1
- package/build/api/response/FeatureConfigsResponse.d.ts +1 -1
- package/build/api/response/FeatureConfigsResponse.d.ts.map +1 -1
- package/build/api/response/FeatureConfigsResponse.js +14 -14
- package/build/api/response/FeatureConfigsResponse.js.map +1 -1
- package/build/api/response/ListUsersResponse.d.ts +7 -0
- package/build/api/response/ListUsersResponse.d.ts.map +1 -0
- package/build/api/response/ListUsersResponse.js +17 -0
- package/build/api/response/ListUsersResponse.js.map +1 -0
- package/build/api/response/MlsPublicKeysResponse.d.ts +2 -2
- package/build/api/response/MlsPublicKeysResponse.d.ts.map +1 -1
- package/build/api/response/MlsPublicKeysResponse.js +18 -17
- package/build/api/response/MlsPublicKeysResponse.js.map +1 -1
- package/build/api/response/NotificationsResponse.d.ts +1 -1
- package/build/api/response/NotificationsResponse.js +14 -14
- package/build/api/response/NotificationsResponse.js.map +1 -1
- package/build/api/response/OneToOneConversationResponse.d.ts +2 -2
- package/build/api/response/OneToOneConversationResponse.d.ts.map +1 -1
- package/build/api/response/OneToOneConversationResponse.js +14 -14
- package/build/api/response/OneToOneConversationResponse.js.map +1 -1
- package/build/api/response/RegisterClientResponse.js +14 -14
- package/build/api/response/RegisterClientResponse.js.map +1 -1
- package/build/api/response/SearchContactsResponse.d.ts +1 -1
- package/build/api/response/SearchContactsResponse.d.ts.map +1 -1
- package/build/api/response/SelfResponse.d.ts +6 -0
- package/build/api/response/SelfResponse.d.ts.map +1 -0
- package/build/api/response/SelfResponse.js +17 -0
- package/build/api/response/SelfResponse.js.map +1 -0
- package/build/core/BackendConnectionListener.d.ts +31 -0
- package/build/core/BackendConnectionListener.d.ts.map +1 -0
- package/build/core/BackendConnectionListener.js +17 -0
- package/build/core/BackendConnectionListener.js.map +1 -0
- package/build/core/CoreCryptoClient.d.ts +10 -7
- package/build/core/CoreCryptoClient.d.ts.map +1 -1
- package/build/core/CoreCryptoClient.js +49 -32
- package/build/core/CoreCryptoClient.js.map +1 -1
- package/build/core/CoreCryptoMlsTransport.d.ts +2 -2
- package/build/core/CoreCryptoMlsTransport.d.ts.map +1 -1
- package/build/core/CoreCryptoMlsTransport.js +18 -17
- package/build/core/CoreCryptoMlsTransport.js.map +1 -1
- package/build/core/CoreCryptoService.d.ts +15 -14
- package/build/core/CoreCryptoService.d.ts.map +1 -1
- package/build/core/CoreCryptoService.js +67 -55
- package/build/core/CoreCryptoService.js.map +1 -1
- package/build/core/HttpClient.d.ts +1 -1
- package/build/core/HttpClient.d.ts.map +1 -1
- package/build/core/HttpClient.js +66 -76
- package/build/core/HttpClient.js.map +1 -1
- package/build/core/HttpRetryHelper.d.ts +1 -1
- package/build/core/HttpRetryHelper.d.ts.map +1 -1
- package/build/core/HttpRetryHelper.js +4 -4
- package/build/core/HttpRetryHelper.js.map +1 -1
- package/build/core/HttpRetryPolicy.js.map +1 -1
- package/build/core/WebSocketClient.d.ts +9 -4
- package/build/core/WebSocketClient.d.ts.map +1 -1
- package/build/core/WebSocketClient.js +66 -35
- package/build/core/WebSocketClient.js.map +1 -1
- package/build/core/WireApplicationManager.d.ts +24 -15
- package/build/core/WireApplicationManager.d.ts.map +1 -1
- package/build/core/WireApplicationManager.js +67 -32
- package/build/core/WireApplicationManager.js.map +1 -1
- package/build/core/WireEventsHandler.d.ts +7 -8
- package/build/core/WireEventsHandler.d.ts.map +1 -1
- package/build/core/WireEventsHandler.js +9 -13
- package/build/core/WireEventsHandler.js.map +1 -1
- package/build/core/event/DeleteConversationEventProcessor.d.ts +4 -4
- package/build/core/event/DeleteConversationEventProcessor.d.ts.map +1 -1
- package/build/core/event/DeleteConversationEventProcessor.js +7 -7
- package/build/core/event/DeleteConversationEventProcessor.js.map +1 -1
- package/build/core/event/EventProcessor.d.ts +2 -2
- package/build/core/event/EventProcessor.d.ts.map +1 -1
- package/build/core/event/EventRouter.d.ts +3 -3
- package/build/core/event/EventRouter.d.ts.map +1 -1
- package/build/core/event/EventRouter.js +18 -18
- package/build/core/event/EventRouter.js.map +1 -1
- package/build/core/event/MemberJoinEventProcessor.d.ts +4 -4
- package/build/core/event/MemberJoinEventProcessor.d.ts.map +1 -1
- package/build/core/event/MemberJoinEventProcessor.js +14 -11
- package/build/core/event/MemberJoinEventProcessor.js.map +1 -1
- package/build/core/event/MemberLeaveEventProcessor.d.ts +4 -4
- package/build/core/event/MemberLeaveEventProcessor.d.ts.map +1 -1
- package/build/core/event/MemberLeaveEventProcessor.js +12 -9
- package/build/core/event/MemberLeaveEventProcessor.js.map +1 -1
- package/build/core/event/MemberUpdateEventProcessor.d.ts +3 -3
- package/build/core/event/MemberUpdateEventProcessor.d.ts.map +1 -1
- package/build/core/event/MemberUpdateEventProcessor.js +6 -6
- package/build/core/event/MemberUpdateEventProcessor.js.map +1 -1
- package/build/core/event/MessageTimerUpdateEventProcessor.d.ts +11 -0
- package/build/core/event/MessageTimerUpdateEventProcessor.d.ts.map +1 -0
- package/build/core/event/MessageTimerUpdateEventProcessor.js +49 -0
- package/build/core/event/MessageTimerUpdateEventProcessor.js.map +1 -0
- package/build/core/event/MlsMessageEventProcessor.d.ts +6 -6
- package/build/core/event/MlsMessageEventProcessor.d.ts.map +1 -1
- package/build/core/event/MlsMessageEventProcessor.js +31 -26
- package/build/core/event/MlsMessageEventProcessor.js.map +1 -1
- package/build/core/event/MlsResetEventProcessor.d.ts +3 -3
- package/build/core/event/MlsResetEventProcessor.d.ts.map +1 -1
- package/build/core/event/MlsResetEventProcessor.js +6 -6
- package/build/core/event/MlsResetEventProcessor.js.map +1 -1
- package/build/core/event/MlsWelcomeEventProcessor.d.ts +7 -7
- package/build/core/event/MlsWelcomeEventProcessor.d.ts.map +1 -1
- package/build/core/event/MlsWelcomeEventProcessor.js +12 -12
- package/build/core/event/MlsWelcomeEventProcessor.js.map +1 -1
- package/build/core/event/NewConversationEventProcessor.d.ts +3 -3
- package/build/core/event/NewConversationEventProcessor.d.ts.map +1 -1
- package/build/core/event/NewConversationEventProcessor.js +6 -6
- package/build/core/event/NewConversationEventProcessor.js.map +1 -1
- package/build/core/event/processors.index.d.ts +9 -8
- package/build/core/event/processors.index.d.ts.map +1 -1
- package/build/core/event/processors.index.js +9 -8
- package/build/core/event/processors.index.js.map +1 -1
- package/build/db/AppPropertiesRepository.d.ts +2 -2
- package/build/db/AppPropertiesRepository.d.ts.map +1 -1
- package/build/db/AppPropertiesRepository.js +34 -23
- package/build/db/AppPropertiesRepository.js.map +1 -1
- package/build/db/ConversationMemberRepository.d.ts +3 -3
- package/build/db/ConversationMemberRepository.d.ts.map +1 -1
- package/build/db/ConversationMemberRepository.js +40 -26
- package/build/db/ConversationMemberRepository.js.map +1 -1
- package/build/db/ConversationRepository.d.ts +7 -2
- package/build/db/ConversationRepository.d.ts.map +1 -1
- package/build/db/ConversationRepository.js +72 -46
- package/build/db/ConversationRepository.js.map +1 -1
- package/build/db/DatabaseService.d.ts.map +1 -1
- package/build/db/DatabaseService.js +29 -27
- package/build/db/DatabaseService.js.map +1 -1
- package/build/db/migrations/0002_perfect_karnak.sql +1 -0
- package/build/db/migrations/meta/0002_snapshot.json +204 -0
- package/build/db/migrations/meta/_journal.json +7 -0
- package/build/db/model/AppEntity.js +14 -14
- package/build/db/model/AppEntity.js.map +1 -1
- package/build/db/model/ConversationEntity.d.ts +2 -1
- package/build/db/model/ConversationEntity.d.ts.map +1 -1
- package/build/db/model/ConversationEntity.js +14 -14
- package/build/db/model/ConversationEntity.js.map +1 -1
- package/build/db/model/ConversationMemberEntity.js +14 -14
- package/build/db/model/ConversationMemberEntity.js.map +1 -1
- package/build/db/relations.d.ts.map +1 -1
- package/build/db/relations.js +4 -4
- package/build/db/relations.js.map +1 -1
- package/build/db/schema.d.ts +17 -0
- package/build/db/schema.d.ts.map +1 -1
- package/build/db/schema.js +27 -19
- package/build/db/schema.js.map +1 -1
- package/build/exception/CoreCryptoMlsException.d.ts.map +1 -0
- package/build/exception/CoreCryptoMlsException.js +25 -0
- package/build/exception/CoreCryptoMlsException.js.map +1 -0
- package/build/exception/MlsException.d.ts.map +1 -0
- package/build/exception/MlsException.js +25 -0
- package/build/exception/MlsException.js.map +1 -0
- package/build/exception/WireApiError.d.ts.map +1 -0
- package/build/exception/WireApiError.js +17 -0
- package/build/exception/WireApiError.js.map +1 -0
- package/build/{model/exception → exception}/WireApiException.d.ts +1 -1
- package/build/exception/WireApiException.d.ts.map +1 -0
- package/build/{model/exception → exception}/WireApiException.js +2 -2
- package/build/exception/WireApiException.js.map +1 -0
- package/build/exception/WireException.d.ts +41 -0
- package/build/exception/WireException.d.ts.map +1 -0
- package/build/exception/WireException.js +81 -0
- package/build/exception/WireException.js.map +1 -0
- package/build/index.d.ts +18 -12
- package/build/index.d.ts.map +1 -1
- package/build/index.js +27 -22
- package/build/index.js.map +1 -1
- package/build/mappers/PreKeyMapper.d.ts +2 -2
- package/build/mappers/PreKeyMapper.d.ts.map +1 -1
- package/build/mappers/PreKeyMapper.js +14 -14
- package/build/mappers/PreKeyMapper.js.map +1 -1
- package/build/mappers/conversation/ConversationMapper.d.ts +2 -2
- package/build/mappers/conversation/ConversationMapper.d.ts.map +1 -1
- package/build/mappers/conversation/ConversationMapper.js +16 -15
- package/build/mappers/conversation/ConversationMapper.js.map +1 -1
- package/build/mappers/conversation/ConversationMemberMapper.d.ts +2 -2
- package/build/mappers/conversation/ConversationMemberMapper.d.ts.map +1 -1
- package/build/mappers/conversation/ConversationMemberMapper.js +15 -15
- package/build/mappers/conversation/ConversationMemberMapper.js.map +1 -1
- package/build/mappers/protobuf/EncryptionAlgorithmMapper.d.ts +4 -4
- package/build/mappers/protobuf/EncryptionAlgorithmMapper.d.ts.map +1 -1
- package/build/mappers/protobuf/EncryptionAlgorithmMapper.js +28 -23
- package/build/mappers/protobuf/EncryptionAlgorithmMapper.js.map +1 -1
- package/build/mappers/protobuf/MessageContentEncoder.d.ts +1 -1
- package/build/mappers/protobuf/MessageContentEncoder.d.ts.map +1 -1
- package/build/mappers/protobuf/MessageContentEncoder.js +4 -4
- package/build/mappers/protobuf/MessageContentEncoder.js.map +1 -1
- package/build/mappers/protobuf/MessageLinkPreviewMapper.d.ts +4 -4
- package/build/mappers/protobuf/MessageLinkPreviewMapper.d.ts.map +1 -1
- package/build/mappers/protobuf/MessageLinkPreviewMapper.js +18 -17
- package/build/mappers/protobuf/MessageLinkPreviewMapper.js.map +1 -1
- package/build/mappers/protobuf/MessageMentionMapper.d.ts +4 -4
- package/build/mappers/protobuf/MessageMentionMapper.d.ts.map +1 -1
- package/build/mappers/protobuf/MessageMentionMapper.js +16 -16
- package/build/mappers/protobuf/MessageMentionMapper.js.map +1 -1
- package/build/mappers/protobuf/ProtobufDeserializer.d.ts +2 -2
- package/build/mappers/protobuf/ProtobufDeserializer.d.ts.map +1 -1
- package/build/mappers/protobuf/ProtobufDeserializer.js +44 -40
- package/build/mappers/protobuf/ProtobufDeserializer.js.map +1 -1
- package/build/mappers/protobuf/ProtobufSerializer.d.ts.map +1 -1
- package/build/mappers/protobuf/ProtobufSerializer.js +51 -47
- package/build/mappers/protobuf/ProtobufSerializer.js.map +1 -1
- package/build/model/Asset.d.ts +1 -1
- package/build/model/Asset.d.ts.map +1 -1
- package/build/model/Asset.js +14 -14
- package/build/model/Asset.js.map +1 -1
- package/build/model/ClaimedKeyPackagesResult.d.ts +1 -1
- package/build/model/ClaimedKeyPackagesResult.d.ts.map +1 -1
- package/build/model/ClaimedKeyPackagesResult.js +14 -14
- package/build/model/ClaimedKeyPackagesResult.js.map +1 -1
- package/build/model/CryptoClientId.d.ts.map +1 -1
- package/build/model/CryptoClientId.js +14 -14
- package/build/model/CryptoClientId.js.map +1 -1
- package/build/model/CryptoProtocol.js +14 -14
- package/build/model/CryptoProtocol.js.map +1 -1
- package/build/model/DecryptedMlsMessage.d.ts +6 -0
- package/build/model/DecryptedMlsMessage.d.ts.map +1 -0
- package/build/model/DecryptedMlsMessage.js +17 -0
- package/build/model/DecryptedMlsMessage.js.map +1 -0
- package/build/model/EventContentDTO.d.ts +14 -4
- package/build/model/EventContentDTO.d.ts.map +1 -1
- package/build/model/EventContentDTO.js +14 -14
- package/build/model/EventContentDTO.js.map +1 -1
- package/build/model/PreKeyCrypto.js +14 -14
- package/build/model/PreKeyCrypto.js.map +1 -1
- package/build/model/QualifiedId.d.ts +4 -0
- package/build/model/QualifiedId.d.ts.map +1 -1
- package/build/model/QualifiedId.js +21 -15
- package/build/model/QualifiedId.js.map +1 -1
- package/build/model/TeamId.js +15 -15
- package/build/model/TeamId.js.map +1 -1
- package/build/model/UserType.d.ts +6 -0
- package/build/model/UserType.d.ts.map +1 -0
- package/build/model/UserType.js +22 -0
- package/build/model/UserType.js.map +1 -0
- package/build/model/WireMessage.d.ts +5 -5
- package/build/model/WireMessage.d.ts.map +1 -1
- package/build/model/WireMessage.js +43 -45
- package/build/model/WireMessage.js.map +1 -1
- package/build/model/WireUser.d.ts +5 -3
- package/build/model/WireUser.d.ts.map +1 -1
- package/build/model/WireUser.js +3 -1
- package/build/model/WireUser.js.map +1 -1
- package/build/model/conversation/Conversation.d.ts +2 -1
- package/build/model/conversation/Conversation.d.ts.map +1 -1
- package/build/model/conversation/Conversation.js +15 -15
- package/build/model/conversation/Conversation.js.map +1 -1
- package/build/model/conversation/ConversationMember.d.ts +2 -2
- package/build/model/conversation/ConversationMember.d.ts.map +1 -1
- package/build/model/conversation/ConversationMember.js +14 -14
- package/build/model/conversation/ConversationMember.js.map +1 -1
- package/build/model/conversation/ConversationRole.d.ts.map +1 -1
- package/build/model/conversation/ConversationRole.js +14 -14
- package/build/model/conversation/ConversationRole.js.map +1 -1
- package/build/model/conversation/ConversationType.js +14 -14
- package/build/model/conversation/ConversationType.js.map +1 -1
- package/build/model/protobuf/MessageEncryptionAlgorithm.d.ts.map +1 -1
- package/build/model/protobuf/MessageEncryptionAlgorithm.js +14 -14
- package/build/model/protobuf/MessageEncryptionAlgorithm.js.map +1 -1
- package/build/service/AppProperties.d.ts +12 -1
- package/build/service/AppProperties.d.ts.map +1 -1
- package/build/service/AppProperties.js +60 -26
- package/build/service/AppProperties.js.map +1 -1
- package/build/service/MlsFallbackStrategy.d.ts +3 -3
- package/build/service/MlsFallbackStrategy.d.ts.map +1 -1
- package/build/service/MlsFallbackStrategy.js +18 -18
- package/build/service/MlsFallbackStrategy.js.map +1 -1
- package/build/service/NotificationsService.d.ts +3 -3
- package/build/service/NotificationsService.d.ts.map +1 -1
- package/build/service/NotificationsService.js +19 -19
- package/build/service/NotificationsService.js.map +1 -1
- package/build/utils/AESUtils.d.ts +1 -1
- package/build/utils/AESUtils.d.ts.map +1 -1
- package/build/utils/AESUtils.js +15 -15
- package/build/utils/AESUtils.js.map +1 -1
- package/build/utils/BufferUtils.d.ts.map +1 -1
- package/build/utils/BufferUtils.js +15 -15
- package/build/utils/BufferUtils.js.map +1 -1
- package/build/utils/DependencyInjectionTokens.d.ts +0 -2
- package/build/utils/DependencyInjectionTokens.d.ts.map +1 -1
- package/build/utils/DependencyInjectionTokens.js +19 -21
- package/build/utils/DependencyInjectionTokens.js.map +1 -1
- package/build/utils/HashUtils.js +14 -14
- package/build/utils/HashUtils.js.map +1 -1
- package/build/utils/ObfuscateUtil.js +15 -15
- package/build/utils/ObfuscateUtil.js.map +1 -1
- package/build/utils/StoragePaths.js +18 -18
- package/build/utils/StoragePaths.js.map +1 -1
- package/build/utils/logger/ConsoleLogger.d.ts +2 -2
- package/build/utils/logger/ConsoleLogger.d.ts.map +1 -1
- package/build/utils/logger/ConsoleLogger.js +1 -1
- package/build/utils/logger/ConsoleLogger.js.map +1 -1
- package/build/utils/logger/Logger.d.ts.map +1 -1
- package/build/utils/logger/LoggerFactory.d.ts +1 -1
- package/build/utils/logger/LoggerFactory.d.ts.map +1 -1
- package/build/utils/logger/LoggerFactory.js +2 -2
- package/build/utils/logger/LoggerFactory.js.map +1 -1
- package/package.json +22 -8
- package/src/WireAppSdk.ts +78 -65
- package/src/api/AssetsApiClient.ts +20 -35
- package/src/api/AssetsTransferService.ts +20 -32
- package/src/api/ClientsApiClient.ts +16 -29
- package/src/api/ClientsService.ts +7 -14
- package/src/api/ConversationService.ts +221 -154
- package/src/api/ConversationsApiClient.ts +25 -29
- package/src/api/FeatureConfigsApiClient.ts +4 -4
- package/src/api/FeatureConfigsService.ts +17 -17
- package/src/api/MlsApiClient.ts +23 -31
- package/src/api/MlsService.ts +31 -41
- package/src/api/NotificationsApiClient.ts +27 -32
- package/src/api/OneToOneConversationsApiClient.ts +7 -10
- package/src/api/SearchApiClient.ts +20 -22
- package/src/api/SelfApiClient.ts +30 -0
- package/src/api/SelfService.ts +81 -0
- package/src/api/TeamsApiClient.ts +10 -10
- package/src/api/UserService.ts +43 -38
- package/src/api/UsersApiClient.ts +27 -23
- package/src/api/model/AddMembersToConversationResult.ts +15 -15
- package/src/api/model/ConversationIdsPaginationConfig.ts +14 -14
- package/src/api/model/ConversationMemberOtherResponse.ts +16 -16
- package/src/api/model/ConversationMemberSelfResponse.ts +16 -16
- package/src/api/model/ConversationMembersResponse.ts +17 -17
- package/src/api/model/RemoveMembersFromConversationResult.ts +15 -15
- package/src/api/model/UserClientResponse.ts +14 -14
- package/src/api/model/UserResponse.ts +18 -16
- package/src/api/model/asset/AssetUploadData.ts +2 -2
- package/src/api/model/asset/AssetUploadResponse.ts +3 -3
- package/src/api/request/CapabilitiesRequest.ts +15 -15
- package/src/api/request/ClientUpdateRequest.ts +15 -15
- package/src/api/request/ConversationIdsRequest.ts +15 -15
- package/src/api/request/CreateConversationRequest.ts +11 -14
- package/src/api/request/MlsKeyPackagesRequest.ts +14 -14
- package/src/api/request/PreKeyRequest.ts +15 -18
- package/src/api/request/RegisterClientRequest.ts +19 -21
- package/src/api/response/ClaimedKeyPackageList.ts +18 -18
- package/src/api/response/ConversationIdsResponse.ts +15 -15
- package/src/api/response/ConversationResponse.ts +18 -18
- package/src/api/response/ConversationsResponse.ts +16 -16
- package/src/api/response/EventResponse.ts +17 -17
- package/src/api/response/FeatureConfigsResponse.ts +15 -15
- package/src/api/response/ListUsersResponse.ts +23 -0
- package/src/api/response/MlsPublicKeysResponse.ts +24 -23
- package/src/api/response/NotificationsResponse.ts +15 -15
- package/src/api/response/OneToOneConversationResponse.ts +16 -17
- package/src/api/response/RegisterClientResponse.ts +14 -14
- package/src/api/response/SearchContactsResponse.ts +10 -10
- package/src/api/response/SelfResponse.ts +22 -0
- package/src/core/BackendConnectionListener.ts +47 -0
- package/src/core/CoreCryptoClient.ts +93 -117
- package/src/core/CoreCryptoMlsTransport.ts +24 -25
- package/src/core/CoreCryptoService.ts +93 -98
- package/src/core/HttpClient.ts +106 -125
- package/src/core/HttpRetryHelper.ts +6 -9
- package/src/core/HttpRetryPolicy.ts +5 -5
- package/src/core/WebSocketClient.ts +87 -47
- package/src/core/WireApplicationManager.ts +120 -68
- package/src/core/WireEventsHandler.ts +26 -35
- package/src/core/event/DeleteConversationEventProcessor.ts +16 -17
- package/src/core/event/EventProcessor.ts +3 -3
- package/src/core/event/EventRouter.ts +31 -35
- package/src/core/event/MemberJoinEventProcessor.ts +24 -21
- package/src/core/event/MemberLeaveEventProcessor.ts +23 -17
- package/src/core/event/MemberUpdateEventProcessor.ts +15 -16
- package/src/core/event/MessageTimerUpdateEventProcessor.ts +41 -0
- package/src/core/event/MlsMessageEventProcessor.ts +48 -38
- package/src/core/event/MlsResetEventProcessor.ts +13 -16
- package/src/core/event/MlsWelcomeEventProcessor.ts +24 -29
- package/src/core/event/NewConversationEventProcessor.ts +14 -15
- package/src/core/event/processors.index.ts +9 -8
- package/src/db/AppPropertiesRepository.ts +45 -39
- package/src/db/ConversationMemberRepository.ts +85 -77
- package/src/db/ConversationRepository.ts +86 -71
- package/src/db/DatabaseService.ts +34 -32
- package/src/db/migrations/0002_perfect_karnak.sql +1 -0
- package/src/db/migrations/meta/0002_snapshot.json +204 -0
- package/src/db/migrations/meta/_journal.json +7 -0
- package/src/db/model/AppEntity.ts +14 -14
- package/src/db/model/ConversationEntity.ts +16 -15
- package/src/db/model/ConversationMemberEntity.ts +14 -14
- package/src/db/relations.ts +6 -6
- package/src/db/schema.ts +47 -33
- package/src/exception/CoreCryptoMlsException.ts +26 -0
- package/src/exception/MlsException.ts +26 -0
- package/src/exception/WireApiError.ts +21 -0
- package/src/{model/exception → exception}/WireApiException.ts +9 -9
- package/src/exception/WireException.ts +94 -0
- package/src/index.ts +43 -27
- package/src/mappers/PreKeyMapper.ts +16 -16
- package/src/mappers/conversation/ConversationMapper.ts +18 -17
- package/src/mappers/conversation/ConversationMemberMapper.ts +18 -19
- package/src/mappers/protobuf/EncryptionAlgorithmMapper.ts +32 -27
- package/src/mappers/protobuf/MessageContentEncoder.ts +34 -50
- package/src/mappers/protobuf/MessageLinkPreviewMapper.ts +38 -37
- package/src/mappers/protobuf/MessageMentionMapper.ts +22 -22
- package/src/mappers/protobuf/ProtobufDeserializer.ts +78 -72
- package/src/mappers/protobuf/ProtobufSerializer.ts +137 -155
- package/src/model/Asset.ts +18 -18
- package/src/model/ClaimedKeyPackagesResult.ts +17 -17
- package/src/model/CryptoClientId.ts +16 -25
- package/src/model/CryptoProtocol.ts +17 -17
- package/src/model/DecryptedMlsMessage.ts +22 -0
- package/src/model/EventContentDTO.ts +36 -24
- package/src/model/PreKeyCrypto.ts +14 -14
- package/src/model/QualifiedId.ts +25 -18
- package/src/model/TeamId.ts +15 -15
- package/src/model/UserType.ts +21 -0
- package/src/model/WireMessage.ts +164 -196
- package/src/model/WireUser.ts +4 -3
- package/src/model/conversation/ChannelAddPermissionType.ts +2 -3
- package/src/model/conversation/Conversation.ts +16 -15
- package/src/model/conversation/ConversationAccess.ts +5 -6
- package/src/model/conversation/ConversationAccessRole.ts +5 -6
- package/src/model/conversation/ConversationMember.ts +16 -16
- package/src/model/conversation/ConversationRole.ts +17 -18
- package/src/model/conversation/ConversationType.ts +14 -14
- package/src/model/conversation/GroupConversationType.ts +2 -3
- package/src/model/conversation/ReceiptMode.ts +0 -1
- package/src/model/protobuf/MessageEncryptionAlgorithm.ts +18 -15
- package/src/service/AppProperties.ts +76 -40
- package/src/service/MlsFallbackStrategy.ts +21 -24
- package/src/service/NotificationsService.ts +22 -22
- package/src/utils/AESUtils.ts +25 -28
- package/src/utils/BufferUtils.ts +16 -16
- package/src/utils/DependencyInjectionTokens.ts +19 -21
- package/src/utils/HashUtils.ts +15 -15
- package/src/utils/ObfuscateUtil.ts +15 -15
- package/src/utils/StoragePaths.ts +18 -18
- package/src/utils/logger/ConsoleLogger.ts +8 -9
- package/src/utils/logger/LogLevel.ts +1 -1
- package/src/utils/logger/Logger.ts +4 -4
- package/src/utils/logger/LoggerFactory.ts +6 -6
- package/build/model/exception/CoreCryptoMlsException.d.ts.map +0 -1
- package/build/model/exception/CoreCryptoMlsException.js +0 -25
- package/build/model/exception/CoreCryptoMlsException.js.map +0 -1
- package/build/model/exception/MlsException.d.ts.map +0 -1
- package/build/model/exception/MlsException.js +0 -25
- package/build/model/exception/MlsException.js.map +0 -1
- package/build/model/exception/WireApiError.d.ts.map +0 -1
- package/build/model/exception/WireApiError.js +0 -17
- package/build/model/exception/WireApiError.js.map +0 -1
- package/build/model/exception/WireApiException.d.ts.map +0 -1
- package/build/model/exception/WireApiException.js.map +0 -1
- package/src/model/exception/CoreCryptoMlsException.ts +0 -26
- package/src/model/exception/MlsException.ts +0 -26
- package/src/model/exception/WireApiError.ts +0 -21
- /package/build/{model/exception → exception}/CoreCryptoMlsException.d.ts +0 -0
- /package/build/{model/exception → exception}/MlsException.d.ts +0 -0
- /package/build/{model/exception → exception}/WireApiError.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelfApiClient.d.ts","sourceRoot":"","sources":["../../src/api/SelfApiClient.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAChD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,4BAA4B,CAAA;AAE5D,qBACa,aAAa;IACZ,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAE1C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAE5B,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC;CAGvC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Wire
|
|
3
|
+
* Copyright (C) 2026 Wire Swiss GmbH
|
|
4
|
+
*
|
|
5
|
+
* This program is free software: you can redistribute it and/or modify
|
|
6
|
+
* it under the terms of the GNU General Public License as published by
|
|
7
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
* (at your option) any later version.
|
|
9
|
+
* This program is distributed in the hope that it will be useful,
|
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
* GNU General Public License for more details.
|
|
13
|
+
* You should have received a copy of the GNU General Public License
|
|
14
|
+
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
15
|
+
*/
|
|
16
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
17
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
20
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21
|
+
};
|
|
22
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
23
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24
|
+
};
|
|
25
|
+
import { singleton } from 'tsyringe';
|
|
26
|
+
import { HttpClient } from '../core/HttpClient.js';
|
|
27
|
+
let SelfApiClient = class SelfApiClient {
|
|
28
|
+
httpClient;
|
|
29
|
+
constructor(httpClient) {
|
|
30
|
+
this.httpClient = httpClient;
|
|
31
|
+
}
|
|
32
|
+
basePath = 'self';
|
|
33
|
+
async getSelf() {
|
|
34
|
+
return await this.httpClient.getRequest(this.basePath);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
SelfApiClient = __decorate([
|
|
38
|
+
singleton(),
|
|
39
|
+
__metadata("design:paramtypes", [HttpClient])
|
|
40
|
+
], SelfApiClient);
|
|
41
|
+
export { SelfApiClient };
|
|
42
|
+
//# sourceMappingURL=SelfApiClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelfApiClient.js","sourceRoot":"","sources":["../../src/api/SelfApiClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;AAEH,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAA;AAClC,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAIzC,IAAM,aAAa,GAAnB,MAAM,aAAa;IACJ;IAApB,YAAoB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAE7B,QAAQ,GAAG,MAAM,CAAA;IAElC,KAAK,CAAC,OAAO;QACX,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,CAAe,IAAI,CAAC,QAAQ,CAAC,CAAA;IACtE,CAAC;CACF,CAAA;AARY,aAAa;IADzB,SAAS,EAAE;qCAEsB,UAAU;GAD/B,aAAa,CAQzB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SelfApiClient } from './SelfApiClient.js';
|
|
2
|
+
import { AppProperties } from '../service/AppProperties.js';
|
|
3
|
+
export declare class SelfService {
|
|
4
|
+
private selfApiClient;
|
|
5
|
+
private appProperties;
|
|
6
|
+
private logger;
|
|
7
|
+
constructor(selfApiClient: SelfApiClient, appProperties: AppProperties);
|
|
8
|
+
fetchAndSaveApplicationData(): Promise<void>;
|
|
9
|
+
private saveApplicationQualifiedId;
|
|
10
|
+
private saveApplicationTeamId;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=SelfService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelfService.d.ts","sourceRoot":"","sources":["../../src/api/SelfService.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAA;AAMzD,qBACa,WAAW;IAIpB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,aAAa;IAJvB,OAAO,CAAC,MAAM,CAAiD;gBAGrD,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa;IAGhC,2BAA2B,IAAI,OAAO,CAAC,IAAI,CAAC;IAQlD,OAAO,CAAC,0BAA0B;IAiBlC,OAAO,CAAC,qBAAqB;CAsB9B"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Wire
|
|
3
|
+
* Copyright (C) 2026 Wire Swiss GmbH
|
|
4
|
+
*
|
|
5
|
+
* This program is free software: you can redistribute it and/or modify
|
|
6
|
+
* it under the terms of the GNU General Public License as published by
|
|
7
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
* (at your option) any later version.
|
|
9
|
+
* This program is distributed in the hope that it will be useful,
|
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
* GNU General Public License for more details.
|
|
13
|
+
* You should have received a copy of the GNU General Public License
|
|
14
|
+
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
15
|
+
*/
|
|
16
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
17
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
20
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21
|
+
};
|
|
22
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
23
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24
|
+
};
|
|
25
|
+
import { singleton } from 'tsyringe';
|
|
26
|
+
import { SelfApiClient } from './SelfApiClient.js';
|
|
27
|
+
import { AppProperties } from '../service/AppProperties.js';
|
|
28
|
+
import { QualifiedId } from '../model/QualifiedId.js';
|
|
29
|
+
import { LoggerFactory } from '../utils/logger/LoggerFactory.js';
|
|
30
|
+
import { InvalidParameterError, UnknownError } from '../exception/WireException.js';
|
|
31
|
+
import { TeamId } from '../model/TeamId.js';
|
|
32
|
+
let SelfService = class SelfService {
|
|
33
|
+
selfApiClient;
|
|
34
|
+
appProperties;
|
|
35
|
+
logger = LoggerFactory.getLogger(this.constructor.name);
|
|
36
|
+
constructor(selfApiClient, appProperties) {
|
|
37
|
+
this.selfApiClient = selfApiClient;
|
|
38
|
+
this.appProperties = appProperties;
|
|
39
|
+
}
|
|
40
|
+
async fetchAndSaveApplicationData() {
|
|
41
|
+
const response = await this.selfApiClient.getSelf();
|
|
42
|
+
const appUserId = new QualifiedId(response.qualified_id.id, response.qualified_id.domain);
|
|
43
|
+
this.saveApplicationQualifiedId(appUserId);
|
|
44
|
+
this.saveApplicationTeamId(response.team);
|
|
45
|
+
}
|
|
46
|
+
saveApplicationQualifiedId(appUserId) {
|
|
47
|
+
if (!this.appProperties.hasApplicationQualifiedId()) {
|
|
48
|
+
this.logger.info(`Saving application QualifiedId: ${appUserId}`);
|
|
49
|
+
this.appProperties.saveApplicationQualifiedId(appUserId);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const storedApplicationQualifiedId = this.appProperties.getApplicationQualifiedId();
|
|
53
|
+
if (!QualifiedId.equals(storedApplicationQualifiedId, appUserId)) {
|
|
54
|
+
throw new UnknownError(`Stored application QualifiedId ${storedApplicationQualifiedId} does not match fetched self QualifiedId ${appUserId}. Clear SDK storage before using a token for another app.`);
|
|
55
|
+
}
|
|
56
|
+
this.logger.info(`Application QualifiedId already stored: ${storedApplicationQualifiedId}`);
|
|
57
|
+
}
|
|
58
|
+
saveApplicationTeamId(teamId) {
|
|
59
|
+
if (!teamId) {
|
|
60
|
+
throw new InvalidParameterError('The Application does not belong to a team');
|
|
61
|
+
}
|
|
62
|
+
const applicationTeamId = new TeamId(teamId);
|
|
63
|
+
if (!this.appProperties.hasApplicationTeamId()) {
|
|
64
|
+
this.logger.info(`Saving application TeamId: ${applicationTeamId}`);
|
|
65
|
+
this.appProperties.saveApplicationTeamId(applicationTeamId.value);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const storedApplicationTeamId = this.appProperties.getApplicationTeamId();
|
|
69
|
+
if (storedApplicationTeamId.value !== applicationTeamId.value) {
|
|
70
|
+
throw new UnknownError(`Stored application TeamId ${storedApplicationTeamId} does not match fetched self TeamId ${applicationTeamId}. Clear SDK storage before using a token for another app.`);
|
|
71
|
+
}
|
|
72
|
+
this.logger.info(`Application TeamId already stored: ${applicationTeamId}`);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
SelfService = __decorate([
|
|
76
|
+
singleton(),
|
|
77
|
+
__metadata("design:paramtypes", [SelfApiClient,
|
|
78
|
+
AppProperties])
|
|
79
|
+
], SelfService);
|
|
80
|
+
export { SelfService };
|
|
81
|
+
//# sourceMappingURL=SelfService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelfService.js","sourceRoot":"","sources":["../../src/api/SelfService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;AAEH,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAA;AAClC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAA;AAC9D,OAAO,EAAC,qBAAqB,EAAE,YAAY,EAAC,MAAM,+BAA+B,CAAA;AACjF,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAA;AAGlC,IAAM,WAAW,GAAjB,MAAM,WAAW;IAIZ;IACA;IAJF,MAAM,GAAG,aAAa,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;IAE/D,YACU,aAA4B,EAC5B,aAA4B;QAD5B,kBAAa,GAAb,aAAa,CAAe;QAC5B,kBAAa,GAAb,aAAa,CAAe;IACnC,CAAC;IAEJ,KAAK,CAAC,2BAA2B;QAC/B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAA;QACnD,MAAM,SAAS,GAAG,IAAI,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,EAAE,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,CAAA;QAEzF,IAAI,CAAC,0BAA0B,CAAC,SAAS,CAAC,CAAA;QAC1C,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;IAC3C,CAAC;IAEO,0BAA0B,CAAC,SAAsB;QACvD,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,yBAAyB,EAAE,EAAE,CAAC;YACpD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,mCAAmC,SAAS,EAAE,CAAC,CAAA;YAChE,IAAI,CAAC,aAAa,CAAC,0BAA0B,CAAC,SAAS,CAAC,CAAA;YACxD,OAAM;QACR,CAAC;QAED,MAAM,4BAA4B,GAAG,IAAI,CAAC,aAAa,CAAC,yBAAyB,EAAE,CAAA;QACnF,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,4BAA4B,EAAE,SAAS,CAAC,EAAE,CAAC;YACjE,MAAM,IAAI,YAAY,CACpB,kCAAkC,4BAA4B,4CAA4C,SAAS,2DAA2D,CAC/K,CAAA;QACH,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,2CAA2C,4BAA4B,EAAE,CAAC,CAAA;IAC7F,CAAC;IAEO,qBAAqB,CAAC,MAAe;QAC3C,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,qBAAqB,CAAC,2CAA2C,CAAC,CAAA;QAC9E,CAAC;QAED,MAAM,iBAAiB,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,CAAA;QAE5C,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,oBAAoB,EAAE,EAAE,CAAC;YAC/C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,8BAA8B,iBAAiB,EAAE,CAAC,CAAA;YACnE,IAAI,CAAC,aAAa,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAA;YACjE,OAAM;QACR,CAAC;QAED,MAAM,uBAAuB,GAAG,IAAI,CAAC,aAAa,CAAC,oBAAoB,EAAE,CAAA;QACzE,IAAI,uBAAuB,CAAC,KAAK,KAAK,iBAAiB,CAAC,KAAK,EAAE,CAAC;YAC9D,MAAM,IAAI,YAAY,CACpB,6BAA6B,uBAAuB,uCAAuC,iBAAiB,2DAA2D,CACxK,CAAA;QACH,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sCAAsC,iBAAiB,EAAE,CAAC,CAAA;IAC7E,CAAC;CACF,CAAA;AAvDY,WAAW;IADvB,SAAS,EAAE;qCAKe,aAAa;QACb,aAAa;GAL3B,WAAW,CAuDvB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HttpClient } from
|
|
2
|
-
import type { QualifiedId } from
|
|
3
|
-
import type { TeamId } from
|
|
1
|
+
import { HttpClient } from '../core/HttpClient.js';
|
|
2
|
+
import type { QualifiedId } from '../model/QualifiedId.js';
|
|
3
|
+
import type { TeamId } from '../model/TeamId.js';
|
|
4
4
|
export declare class TeamsApiClient {
|
|
5
5
|
private httpClient;
|
|
6
6
|
constructor(httpClient: HttpClient);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeamsApiClient.d.ts","sourceRoot":"","sources":["../../src/api/TeamsApiClient.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"TeamsApiClient.d.ts","sourceRoot":"","sources":["../../src/api/TeamsApiClient.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAChD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAA;AAGxD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAA;AAE9C,qBACa,cAAc;IACb,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAE1C,OAAO,CAAC,MAAM,CAAiD;IAC/D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IAE7B,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAUrF"}
|
|
@@ -22,16 +22,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
22
22
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
23
23
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24
24
|
};
|
|
25
|
-
import { HttpClient } from
|
|
26
|
-
import { singleton } from
|
|
27
|
-
import { LoggerFactory } from
|
|
25
|
+
import { HttpClient } from '../core/HttpClient.js';
|
|
26
|
+
import { singleton } from 'tsyringe';
|
|
27
|
+
import { LoggerFactory } from '../utils/logger/LoggerFactory.js';
|
|
28
28
|
let TeamsApiClient = class TeamsApiClient {
|
|
29
29
|
httpClient;
|
|
30
30
|
constructor(httpClient) {
|
|
31
31
|
this.httpClient = httpClient;
|
|
32
32
|
}
|
|
33
33
|
logger = LoggerFactory.getLogger(this.constructor.name);
|
|
34
|
-
basePath =
|
|
34
|
+
basePath = 'teams';
|
|
35
35
|
async deleteConversation(teamId, conversationId) {
|
|
36
36
|
this.logger.info(`Conversation will be deleted in the backend. teamId: ${teamId}, conversationId: ${conversationId}`);
|
|
37
37
|
const path = `${this.basePath}/${teamId.value}/conversations/${conversationId.id}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeamsApiClient.js","sourceRoot":"","sources":["../../src/api/TeamsApiClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;AAEH,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"TeamsApiClient.js","sourceRoot":"","sources":["../../src/api/TeamsApiClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;AAEH,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAEhD,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAA;AAClC,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAA;AAIvD,IAAM,cAAc,GAApB,MAAM,cAAc;IACL;IAApB,YAAoB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEtC,MAAM,GAAG,aAAa,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;IAC9C,QAAQ,GAAG,OAAO,CAAA;IAEnC,KAAK,CAAC,kBAAkB,CAAC,MAAc,EAAE,cAA2B;QAClE,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,wDAAwD,MAAM,qBAAqB,cAAc,EAAE,CACpG,CAAA;QAED,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,KAAK,kBAAkB,cAAc,CAAC,EAAE,EAAE,CAAA;QAClF,MAAM,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA;QAEzC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,mDAAmD,MAAM,qBAAqB,cAAc,EAAE,CAAC,CAAA;IAClH,CAAC;CACF,CAAA;AAhBY,cAAc;IAD1B,SAAS,EAAE;qCAEsB,UAAU;GAD/B,cAAc,CAgB1B"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { UsersApiClient } from
|
|
2
|
-
import { SearchApiClient } from
|
|
3
|
-
import { QualifiedId } from
|
|
4
|
-
import { CryptoClientId } from
|
|
5
|
-
import { WireUser } from
|
|
1
|
+
import { UsersApiClient } from './UsersApiClient.js';
|
|
2
|
+
import { SearchApiClient } from './SearchApiClient.js';
|
|
3
|
+
import { QualifiedId } from '../model/QualifiedId.js';
|
|
4
|
+
import { CryptoClientId } from '../model/CryptoClientId.js';
|
|
5
|
+
import { WireUser } from '../model/WireUser.js';
|
|
6
6
|
export declare class UserService {
|
|
7
7
|
private usersApiClient;
|
|
8
8
|
private searchApiClient;
|
|
9
9
|
private logger;
|
|
10
10
|
constructor(usersApiClient: UsersApiClient, searchApiClient: SearchApiClient);
|
|
11
11
|
getUser(userQualifiedId: QualifiedId): Promise<WireUser>;
|
|
12
|
+
getUsers(userIds: QualifiedId[]): Promise<WireUser[]>;
|
|
12
13
|
/**
|
|
13
14
|
* Searches for users matching the given query on the specified domain.
|
|
14
15
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserService.d.ts","sourceRoot":"","sources":["../../src/api/UserService.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"UserService.d.ts","sourceRoot":"","sources":["../../src/api/UserService.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAA;AAGnD,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAA;AAK7C,qBACa,WAAW;IAIpB,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,eAAe;IAJzB,OAAO,CAAC,MAAM,CAAiD;gBAGrD,cAAc,EAAE,cAAc,EAC9B,eAAe,EAAE,eAAe;IAGpC,OAAO,CAAC,eAAe,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;IAKxD,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAS3D;;;;;;;;;;OAUG;IACG,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAM/F,OAAO,CAAC,yBAAyB;IAYjC,OAAO,CAAC,4BAA4B;IAW9B,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC;CAwBxF"}
|
package/build/api/UserService.js
CHANGED
|
@@ -22,14 +22,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
22
22
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
23
23
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24
24
|
};
|
|
25
|
-
import { singleton } from
|
|
26
|
-
import { UsersApiClient } from
|
|
27
|
-
import { SearchApiClient } from
|
|
28
|
-
import { QualifiedId } from
|
|
29
|
-
import { LoggerFactory } from
|
|
30
|
-
import { CryptoClientId } from
|
|
31
|
-
import { WireUser } from
|
|
32
|
-
import { TeamId } from
|
|
25
|
+
import { singleton } from 'tsyringe';
|
|
26
|
+
import { UsersApiClient } from './UsersApiClient.js';
|
|
27
|
+
import { SearchApiClient } from './SearchApiClient.js';
|
|
28
|
+
import { QualifiedId } from '../model/QualifiedId.js';
|
|
29
|
+
import { LoggerFactory } from '../utils/logger/LoggerFactory.js';
|
|
30
|
+
import { CryptoClientId } from '../model/CryptoClientId.js';
|
|
31
|
+
import { WireUser } from '../model/WireUser.js';
|
|
32
|
+
import { TeamId } from '../model/TeamId.js';
|
|
33
|
+
import { obfuscateId } from '../utils/ObfuscateUtil.js';
|
|
33
34
|
let UserService = class UserService {
|
|
34
35
|
usersApiClient;
|
|
35
36
|
searchApiClient;
|
|
@@ -42,6 +43,14 @@ let UserService = class UserService {
|
|
|
42
43
|
const response = await this.usersApiClient.getUser(userQualifiedId.id, userQualifiedId.domain);
|
|
43
44
|
return this.mapUserResponseToWireUser(response);
|
|
44
45
|
}
|
|
46
|
+
async getUsers(userIds) {
|
|
47
|
+
this.logger.info(`Fetching ${userIds.length} users by qualified IDs`);
|
|
48
|
+
const response = await this.usersApiClient.listUsers(userIds);
|
|
49
|
+
if (response.failed?.length) {
|
|
50
|
+
response.failed.forEach((id) => this.logger.warn(`Failed to fetch user: ${obfuscateId(id.id)}@${id.domain}`));
|
|
51
|
+
}
|
|
52
|
+
return response.found.map((user) => this.mapUserResponseToWireUser(user));
|
|
53
|
+
}
|
|
45
54
|
/**
|
|
46
55
|
* Searches for users matching the given query on the specified domain.
|
|
47
56
|
*
|
|
@@ -56,10 +65,10 @@ let UserService = class UserService {
|
|
|
56
65
|
async searchUsers(query, domain, numberOfResults) {
|
|
57
66
|
this.logger.info(`Searching users with query: ${query} on domain: ${domain}`);
|
|
58
67
|
const response = await this.searchApiClient.searchUsers(query, domain, numberOfResults);
|
|
59
|
-
return response.documents.map(doc => this.mapContactDocumentToWireUser(doc));
|
|
68
|
+
return response.documents.map((doc) => this.mapContactDocumentToWireUser(doc));
|
|
60
69
|
}
|
|
61
70
|
mapUserResponseToWireUser(userResponse) {
|
|
62
|
-
return new WireUser(new QualifiedId(userResponse.qualified_id.id, userResponse.qualified_id.domain), userResponse.name, userResponse.deleted, userResponse.email, userResponse.handle, userResponse.team ? new TeamId(userResponse.team) : undefined);
|
|
71
|
+
return new WireUser(new QualifiedId(userResponse.qualified_id.id, userResponse.qualified_id.domain), userResponse.name, userResponse.deleted, userResponse.email, userResponse.handle, userResponse.team ? new TeamId(userResponse.team) : undefined, userResponse.type);
|
|
63
72
|
}
|
|
64
73
|
mapContactDocumentToWireUser(doc) {
|
|
65
74
|
return new WireUser(new QualifiedId(doc.qualified_id.id, doc.qualified_id.domain), doc.name, false, undefined, doc.handle ?? undefined, doc.team ? new TeamId(doc.team) : undefined);
|
|
@@ -69,7 +78,7 @@ let UserService = class UserService {
|
|
|
69
78
|
if (userIds.length === 0)
|
|
70
79
|
return new Map();
|
|
71
80
|
const usersToClients = await this.usersApiClient.getClientsByUserIds(userIds);
|
|
72
|
-
return new Map(userIds.flatMap(qualifiedUserId => {
|
|
81
|
+
return new Map(userIds.flatMap((qualifiedUserId) => {
|
|
73
82
|
const key = QualifiedId.toKey(qualifiedUserId);
|
|
74
83
|
const userClientResponses = usersToClients.get(key);
|
|
75
84
|
if (!userClientResponses?.length) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserService.js","sourceRoot":"","sources":["../../src/api/UserService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;AAEH,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"UserService.js","sourceRoot":"","sources":["../../src/api/UserService.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { HttpClient } from
|
|
2
|
-
import type { UserResponse } from
|
|
3
|
-
import type { UserClientResponse } from
|
|
4
|
-
import { QualifiedId } from
|
|
1
|
+
import { HttpClient } from '../core/HttpClient.js';
|
|
2
|
+
import type { UserResponse } from './model/UserResponse.js';
|
|
3
|
+
import type { UserClientResponse } from './model/UserClientResponse.js';
|
|
4
|
+
import { QualifiedId } from '../model/QualifiedId.js';
|
|
5
|
+
import type { ListUsersResponse } from './response/ListUsersResponse.js';
|
|
5
6
|
export declare class UsersApiClient {
|
|
6
7
|
private httpClient;
|
|
7
8
|
constructor(httpClient: HttpClient);
|
|
8
|
-
private readonly
|
|
9
|
+
private readonly basePathUsers;
|
|
10
|
+
private readonly basePathListUsers;
|
|
9
11
|
getUser(userId: string, userDomain: string): Promise<UserResponse>;
|
|
10
12
|
getClientsByUserIds(userIds: QualifiedId[]): Promise<Map<string, UserClientResponse[]>>;
|
|
13
|
+
listUsers(userIds: QualifiedId[]): Promise<ListUsersResponse>;
|
|
11
14
|
}
|
|
12
15
|
//# sourceMappingURL=UsersApiClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsersApiClient.d.ts","sourceRoot":"","sources":["../../src/api/UsersApiClient.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"UsersApiClient.d.ts","sourceRoot":"","sources":["../../src/api/UsersApiClient.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAChD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAA;AAEzD,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAA;AACrE,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAA;AACnD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AAEtE,qBACa,cAAc;IACb,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAE1C,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAU;IACxC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAe;IAE3C,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAKlE,mBAAmB,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAyBvF,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAIpE"}
|
|
@@ -22,23 +22,23 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
22
22
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
23
23
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24
24
|
};
|
|
25
|
-
import { HttpClient } from
|
|
26
|
-
import { singleton } from
|
|
27
|
-
import { QualifiedId } from
|
|
25
|
+
import { HttpClient } from '../core/HttpClient.js';
|
|
26
|
+
import { singleton } from 'tsyringe';
|
|
27
|
+
import { QualifiedId } from '../model/QualifiedId.js';
|
|
28
28
|
let UsersApiClient = class UsersApiClient {
|
|
29
29
|
httpClient;
|
|
30
30
|
constructor(httpClient) {
|
|
31
31
|
this.httpClient = httpClient;
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
basePathUsers = 'users';
|
|
34
|
+
basePathListUsers = 'list-users';
|
|
34
35
|
async getUser(userId, userDomain) {
|
|
35
|
-
const path = `${this.
|
|
36
|
+
const path = `${this.basePathUsers}/${userDomain}/${userId}`;
|
|
36
37
|
return await this.httpClient.getRequest(path);
|
|
37
38
|
}
|
|
38
39
|
async getClientsByUserIds(userIds) {
|
|
39
|
-
const path = `${this.
|
|
40
|
-
const response = await this.httpClient
|
|
41
|
-
.postRequest(path, { qualified_users: userIds });
|
|
40
|
+
const path = `${this.basePathUsers}/list-clients`;
|
|
41
|
+
const response = await this.httpClient.postRequest(path, { qualified_users: userIds });
|
|
42
42
|
const result = new Map();
|
|
43
43
|
for (const domain of Object.keys(response.qualified_user_map)) {
|
|
44
44
|
const usersInDomain = response.qualified_user_map[domain];
|
|
@@ -54,6 +54,11 @@ let UsersApiClient = class UsersApiClient {
|
|
|
54
54
|
}
|
|
55
55
|
return result;
|
|
56
56
|
}
|
|
57
|
+
// Note that this method is using {$basePathListUsers} as the base path
|
|
58
|
+
async listUsers(userIds) {
|
|
59
|
+
const path = `${this.basePathListUsers}`;
|
|
60
|
+
return await this.httpClient.postRequest(path, { qualified_ids: userIds });
|
|
61
|
+
}
|
|
57
62
|
};
|
|
58
63
|
UsersApiClient = __decorate([
|
|
59
64
|
singleton(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsersApiClient.js","sourceRoot":"","sources":["../../src/api/UsersApiClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;AAEH,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"UsersApiClient.js","sourceRoot":"","sources":["../../src/api/UsersApiClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;AAEH,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAEhD,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAA;AAElC,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAA;AAI5C,IAAM,cAAc,GAApB,MAAM,cAAc;IACL;IAApB,YAAoB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAE7B,aAAa,GAAG,OAAO,CAAA;IACvB,iBAAiB,GAAG,YAAY,CAAA;IAEjD,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,UAAkB;QAC9C,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,aAAa,IAAI,UAAU,IAAI,MAAM,EAAE,CAAA;QAC5D,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,UAAU,CAAe,IAAI,CAAC,CAAA;IAC7D,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,OAAsB;QAC9C,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,aAAa,eAAe,CAAA;QACjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,WAAW,CAE/C,IAAI,EAAE,EAAC,eAAe,EAAE,OAAO,EAAC,CAAC,CAAA;QAEpC,MAAM,MAAM,GAAG,IAAI,GAAG,EAAgC,CAAA;QAEtD,KAAK,MAAM,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;YAC9D,MAAM,aAAa,GAAG,QAAQ,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;YACzD,IAAI,CAAC,aAAa;gBAAE,SAAQ;YAE5B,KAAK,MAAM,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;gBAChD,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,CAAA;gBACrC,IAAI,CAAC,OAAO;oBAAE,SAAQ;gBAEtB,MAAM,GAAG,GAAG,WAAW,CAAC,KAAK,CAAC,IAAI,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;gBAC9D,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;YAC1B,CAAC;QACH,CAAC;QAED,OAAO,MAAM,CAAA;IACf,CAAC;IAED,uEAAuE;IACvE,KAAK,CAAC,SAAS,CAAC,OAAsB;QACpC,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAA;QACxC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,WAAW,CAAoB,IAAI,EAAE,EAAC,aAAa,EAAE,OAAO,EAAC,CAAC,CAAA;IAC7F,CAAC;CACF,CAAA;AAxCY,cAAc;IAD1B,SAAS,EAAE;qCAEsB,UAAU;GAD/B,cAAc,CAwC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddMembersToConversationResult.d.ts","sourceRoot":"","sources":["../../../src/api/model/AddMembersToConversationResult.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"AddMembersToConversationResult.d.ts","sourceRoot":"","sources":["../../../src/api/model/AddMembersToConversationResult.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAA;AAE3D,MAAM,WAAW,8BAA8B;IAC7C,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,kBAAkB,EAAE,WAAW,EAAE,CAAA;CAClC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Wire
|
|
3
|
-
* Copyright (C) 2026 Wire Swiss GmbH
|
|
4
|
-
*
|
|
5
|
-
* This program is free software: you can redistribute it and/or modify
|
|
6
|
-
* it under the terms of the GNU General Public License as published by
|
|
7
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
8
|
-
* (at your option) any later version.
|
|
9
|
-
* This program is distributed in the hope that it will be useful,
|
|
10
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
* GNU General Public License for more details.
|
|
13
|
-
* You should have received a copy of the GNU General Public License
|
|
14
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
15
|
-
*/
|
|
2
|
+
* Wire
|
|
3
|
+
* Copyright (C) 2026 Wire Swiss GmbH
|
|
4
|
+
*
|
|
5
|
+
* This program is free software: you can redistribute it and/or modify
|
|
6
|
+
* it under the terms of the GNU General Public License as published by
|
|
7
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
* (at your option) any later version.
|
|
9
|
+
* This program is distributed in the hope that it will be useful,
|
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
* GNU General Public License for more details.
|
|
13
|
+
* You should have received a copy of the GNU General Public License
|
|
14
|
+
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
15
|
+
*/
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=AddMembersToConversationResult.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddMembersToConversationResult.js","sourceRoot":"","sources":["../../../src/api/model/AddMembersToConversationResult.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"AddMembersToConversationResult.js","sourceRoot":"","sources":["../../../src/api/model/AddMembersToConversationResult.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Wire
|
|
3
|
-
* Copyright (C) 2026 Wire Swiss GmbH
|
|
4
|
-
*
|
|
5
|
-
* This program is free software: you can redistribute it and/or modify
|
|
6
|
-
* it under the terms of the GNU General Public License as published by
|
|
7
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
8
|
-
* (at your option) any later version.
|
|
9
|
-
* This program is distributed in the hope that it will be useful,
|
|
10
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
* GNU General Public License for more details.
|
|
13
|
-
* You should have received a copy of the GNU General Public License
|
|
14
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
15
|
-
*/
|
|
2
|
+
* Wire
|
|
3
|
+
* Copyright (C) 2026 Wire Swiss GmbH
|
|
4
|
+
*
|
|
5
|
+
* This program is free software: you can redistribute it and/or modify
|
|
6
|
+
* it under the terms of the GNU General Public License as published by
|
|
7
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
* (at your option) any later version.
|
|
9
|
+
* This program is distributed in the hope that it will be useful,
|
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
* GNU General Public License for more details.
|
|
13
|
+
* You should have received a copy of the GNU General Public License
|
|
14
|
+
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
15
|
+
*/
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=ConversationIdsPaginationConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationIdsPaginationConfig.js","sourceRoot":"","sources":["../../../src/api/model/ConversationIdsPaginationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ConversationIdsPaginationConfig.js","sourceRoot":"","sources":["../../../src/api/model/ConversationIdsPaginationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConversationRole } from
|
|
2
|
-
import type { QualifiedId } from
|
|
1
|
+
import type { ConversationRole } from '../../model/conversation/ConversationRole.js';
|
|
2
|
+
import type { QualifiedId } from '../../model/QualifiedId.js';
|
|
3
3
|
export interface ConversationMemberOtherResponse {
|
|
4
4
|
qualified_id: QualifiedId;
|
|
5
5
|
conversation_role: ConversationRole;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationMemberOtherResponse.d.ts","sourceRoot":"","sources":["../../../src/api/model/ConversationMemberOtherResponse.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ConversationMemberOtherResponse.d.ts","sourceRoot":"","sources":["../../../src/api/model/ConversationMemberOtherResponse.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAA;AAClF,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAA;AAE3D,MAAM,WAAW,+BAA+B;IAC9C,YAAY,EAAE,WAAW,CAAA;IACzB,iBAAiB,EAAE,gBAAgB,CAAA;CACpC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Wire
|
|
3
|
-
* Copyright (C) 2025 Wire Swiss GmbH
|
|
4
|
-
*
|
|
5
|
-
* This program is free software: you can redistribute it and/or modify
|
|
6
|
-
* it under the terms of the GNU General Public License as published by
|
|
7
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
8
|
-
* (at your option) any later version.
|
|
9
|
-
* This program is distributed in the hope that it will be useful,
|
|
10
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
* GNU General Public License for more details.
|
|
13
|
-
* You should have received a copy of the GNU General Public License
|
|
14
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
15
|
-
*/
|
|
2
|
+
* Wire
|
|
3
|
+
* Copyright (C) 2025 Wire Swiss GmbH
|
|
4
|
+
*
|
|
5
|
+
* This program is free software: you can redistribute it and/or modify
|
|
6
|
+
* it under the terms of the GNU General Public License as published by
|
|
7
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
* (at your option) any later version.
|
|
9
|
+
* This program is distributed in the hope that it will be useful,
|
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
* GNU General Public License for more details.
|
|
13
|
+
* You should have received a copy of the GNU General Public License
|
|
14
|
+
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
15
|
+
*/
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=ConversationMemberOtherResponse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationMemberOtherResponse.js","sourceRoot":"","sources":["../../../src/api/model/ConversationMemberOtherResponse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ConversationMemberOtherResponse.js","sourceRoot":"","sources":["../../../src/api/model/ConversationMemberOtherResponse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConversationRole } from
|
|
2
|
-
import type { QualifiedId } from
|
|
1
|
+
import type { ConversationRole } from '../../model/conversation/ConversationRole.js';
|
|
2
|
+
import type { QualifiedId } from '../../model/QualifiedId.js';
|
|
3
3
|
export interface ConversationMemberSelfResponse {
|
|
4
4
|
qualified_id: QualifiedId;
|
|
5
5
|
conversation_role: ConversationRole;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationMemberSelfResponse.d.ts","sourceRoot":"","sources":["../../../src/api/model/ConversationMemberSelfResponse.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ConversationMemberSelfResponse.d.ts","sourceRoot":"","sources":["../../../src/api/model/ConversationMemberSelfResponse.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAA;AAClF,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAA;AAE3D,MAAM,WAAW,8BAA8B;IAC7C,YAAY,EAAE,WAAW,CAAA;IACzB,iBAAiB,EAAE,gBAAgB,CAAA;CACpC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Wire
|
|
3
|
-
* Copyright (C) 2025 Wire Swiss GmbH
|
|
4
|
-
*
|
|
5
|
-
* This program is free software: you can redistribute it and/or modify
|
|
6
|
-
* it under the terms of the GNU General Public License as published by
|
|
7
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
8
|
-
* (at your option) any later version.
|
|
9
|
-
* This program is distributed in the hope that it will be useful,
|
|
10
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
* GNU General Public License for more details.
|
|
13
|
-
* You should have received a copy of the GNU General Public License
|
|
14
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
15
|
-
*/
|
|
2
|
+
* Wire
|
|
3
|
+
* Copyright (C) 2025 Wire Swiss GmbH
|
|
4
|
+
*
|
|
5
|
+
* This program is free software: you can redistribute it and/or modify
|
|
6
|
+
* it under the terms of the GNU General Public License as published by
|
|
7
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
* (at your option) any later version.
|
|
9
|
+
* This program is distributed in the hope that it will be useful,
|
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
* GNU General Public License for more details.
|
|
13
|
+
* You should have received a copy of the GNU General Public License
|
|
14
|
+
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
15
|
+
*/
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=ConversationMemberSelfResponse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationMemberSelfResponse.js","sourceRoot":"","sources":["../../../src/api/model/ConversationMemberSelfResponse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ConversationMemberSelfResponse.js","sourceRoot":"","sources":["../../../src/api/model/ConversationMemberSelfResponse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConversationMemberOtherResponse } from
|
|
2
|
-
import type { ConversationMemberSelfResponse } from
|
|
1
|
+
import type { ConversationMemberOtherResponse } from './ConversationMemberOtherResponse.js';
|
|
2
|
+
import type { ConversationMemberSelfResponse } from './ConversationMemberSelfResponse.js';
|
|
3
3
|
export interface ConversationMembersResponse {
|
|
4
4
|
others: ConversationMemberOtherResponse[];
|
|
5
5
|
self: ConversationMemberSelfResponse;
|