@wireapp/wire-apps-js-sdk 0.0.1-alpha
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/LICENSE +674 -0
- package/README.md +141 -0
- package/build/WireAppSdk.d.ts +31 -0
- package/build/WireAppSdk.d.ts.map +1 -0
- package/build/WireAppSdk.js +159 -0
- package/build/WireAppSdk.js.map +1 -0
- package/build/api/AssetsApiClient.d.ts +12 -0
- package/build/api/AssetsApiClient.d.ts.map +1 -0
- package/build/api/AssetsApiClient.js +67 -0
- package/build/api/AssetsApiClient.js.map +1 -0
- package/build/api/AssetsTransferService.d.ts +12 -0
- package/build/api/AssetsTransferService.d.ts.map +1 -0
- package/build/api/AssetsTransferService.js +80 -0
- package/build/api/AssetsTransferService.js.map +1 -0
- package/build/api/ClientsApiClient.d.ts +13 -0
- package/build/api/ClientsApiClient.d.ts.map +1 -0
- package/build/api/ClientsApiClient.js +59 -0
- package/build/api/ClientsApiClient.js.map +1 -0
- package/build/api/ClientsService.d.ts +10 -0
- package/build/api/ClientsService.d.ts.map +1 -0
- package/build/api/ClientsService.js +45 -0
- package/build/api/ClientsService.js.map +1 -0
- package/build/api/ConversationService.d.ts +83 -0
- package/build/api/ConversationService.d.ts.map +1 -0
- package/build/api/ConversationService.js +534 -0
- package/build/api/ConversationService.js.map +1 -0
- package/build/api/ConversationsApiClient.d.ts +23 -0
- package/build/api/ConversationsApiClient.d.ts.map +1 -0
- package/build/api/ConversationsApiClient.js +113 -0
- package/build/api/ConversationsApiClient.js.map +1 -0
- package/build/api/FeatureConfigsApiClient.d.ts +9 -0
- package/build/api/FeatureConfigsApiClient.d.ts.map +1 -0
- package/build/api/FeatureConfigsApiClient.js +43 -0
- package/build/api/FeatureConfigsApiClient.js.map +1 -0
- package/build/api/FeatureConfigsService.d.ts +8 -0
- package/build/api/FeatureConfigsService.d.ts.map +1 -0
- package/build/api/FeatureConfigsService.js +45 -0
- package/build/api/FeatureConfigsService.js.map +1 -0
- package/build/api/MlsApiClient.d.ts +23 -0
- package/build/api/MlsApiClient.d.ts.map +1 -0
- package/build/api/MlsApiClient.js +77 -0
- package/build/api/MlsApiClient.js.map +1 -0
- package/build/api/MlsService.d.ts +17 -0
- package/build/api/MlsService.d.ts.map +1 -0
- package/build/api/MlsService.js +87 -0
- package/build/api/MlsService.js.map +1 -0
- package/build/api/NotificationsApiClient.d.ts +17 -0
- package/build/api/NotificationsApiClient.d.ts.map +1 -0
- package/build/api/NotificationsApiClient.js +60 -0
- package/build/api/NotificationsApiClient.js.map +1 -0
- package/build/api/OneToOneConversationsApiClient.d.ts +11 -0
- package/build/api/OneToOneConversationsApiClient.d.ts.map +1 -0
- package/build/api/OneToOneConversationsApiClient.js +45 -0
- package/build/api/OneToOneConversationsApiClient.js.map +1 -0
- package/build/api/SearchApiClient.d.ts +9 -0
- package/build/api/SearchApiClient.d.ts.map +1 -0
- package/build/api/SearchApiClient.js +61 -0
- package/build/api/SearchApiClient.js.map +1 -0
- package/build/api/TeamsApiClient.d.ts +11 -0
- package/build/api/TeamsApiClient.d.ts.map +1 -0
- package/build/api/TeamsApiClient.js +47 -0
- package/build/api/TeamsApiClient.js.map +1 -0
- package/build/api/UserService.d.ts +28 -0
- package/build/api/UserService.d.ts.map +1 -0
- package/build/api/UserService.js +90 -0
- package/build/api/UserService.js.map +1 -0
- package/build/api/UsersApiClient.d.ts +12 -0
- package/build/api/UsersApiClient.d.ts.map +1 -0
- package/build/api/UsersApiClient.js +63 -0
- package/build/api/UsersApiClient.js.map +1 -0
- package/build/api/model/AddMembersToConversationResult.d.ts +6 -0
- package/build/api/model/AddMembersToConversationResult.d.ts.map +1 -0
- package/build/api/model/AddMembersToConversationResult.js +17 -0
- package/build/api/model/AddMembersToConversationResult.js.map +1 -0
- package/build/api/model/ConversationIdsPaginationConfig.d.ts +5 -0
- package/build/api/model/ConversationIdsPaginationConfig.d.ts.map +1 -0
- package/build/api/model/ConversationIdsPaginationConfig.js +17 -0
- package/build/api/model/ConversationIdsPaginationConfig.js.map +1 -0
- package/build/api/model/ConversationMemberOtherResponse.d.ts +7 -0
- package/build/api/model/ConversationMemberOtherResponse.d.ts.map +1 -0
- package/build/api/model/ConversationMemberOtherResponse.js +17 -0
- package/build/api/model/ConversationMemberOtherResponse.js.map +1 -0
- package/build/api/model/ConversationMemberSelfResponse.d.ts +7 -0
- package/build/api/model/ConversationMemberSelfResponse.d.ts.map +1 -0
- package/build/api/model/ConversationMemberSelfResponse.js +17 -0
- package/build/api/model/ConversationMemberSelfResponse.js.map +1 -0
- package/build/api/model/ConversationMembersResponse.d.ts +7 -0
- package/build/api/model/ConversationMembersResponse.d.ts.map +1 -0
- package/build/api/model/ConversationMembersResponse.js +17 -0
- package/build/api/model/ConversationMembersResponse.js.map +1 -0
- package/build/api/model/ConversationTeamInfo.d.ts +5 -0
- package/build/api/model/ConversationTeamInfo.d.ts.map +1 -0
- package/build/api/model/ConversationTeamInfo.js +17 -0
- package/build/api/model/ConversationTeamInfo.js.map +1 -0
- package/build/api/model/RemoveMembersFromConversationResult.d.ts +5 -0
- package/build/api/model/RemoveMembersFromConversationResult.d.ts.map +1 -0
- package/build/api/model/RemoveMembersFromConversationResult.js +17 -0
- package/build/api/model/RemoveMembersFromConversationResult.js.map +1 -0
- package/build/api/model/UserClientResponse.d.ts +4 -0
- package/build/api/model/UserClientResponse.d.ts.map +1 -0
- package/build/api/model/UserClientResponse.js +17 -0
- package/build/api/model/UserClientResponse.js.map +1 -0
- package/build/api/model/UserResponse.d.ts +12 -0
- package/build/api/model/UserResponse.d.ts.map +1 -0
- package/build/api/model/UserResponse.js +17 -0
- package/build/api/model/UserResponse.js.map +1 -0
- package/build/api/model/asset/AssetUploadData.d.ts +5 -0
- package/build/api/model/asset/AssetUploadData.d.ts.map +1 -0
- package/build/api/model/asset/AssetUploadData.js +17 -0
- package/build/api/model/asset/AssetUploadData.js.map +1 -0
- package/build/api/model/asset/AssetUploadResponse.d.ts +7 -0
- package/build/api/model/asset/AssetUploadResponse.d.ts.map +1 -0
- package/build/api/model/asset/AssetUploadResponse.js +17 -0
- package/build/api/model/asset/AssetUploadResponse.js.map +1 -0
- package/build/api/request/CapabilitiesRequest.d.ts +4 -0
- package/build/api/request/CapabilitiesRequest.d.ts.map +1 -0
- package/build/api/request/CapabilitiesRequest.js +20 -0
- package/build/api/request/CapabilitiesRequest.js.map +1 -0
- package/build/api/request/ClientUpdateRequest.d.ts +5 -0
- package/build/api/request/ClientUpdateRequest.d.ts.map +1 -0
- package/build/api/request/ClientUpdateRequest.js +17 -0
- package/build/api/request/ClientUpdateRequest.js.map +1 -0
- package/build/api/request/ConversationIdsRequest.d.ts +5 -0
- package/build/api/request/ConversationIdsRequest.d.ts.map +1 -0
- package/build/api/request/ConversationIdsRequest.js +17 -0
- package/build/api/request/ConversationIdsRequest.js.map +1 -0
- package/build/api/request/CreateConversationRequest.d.ts +30 -0
- package/build/api/request/CreateConversationRequest.d.ts.map +1 -0
- package/build/api/request/CreateConversationRequest.js +57 -0
- package/build/api/request/CreateConversationRequest.js.map +1 -0
- package/build/api/request/MlsKeyPackagesRequest.d.ts +4 -0
- package/build/api/request/MlsKeyPackagesRequest.d.ts.map +1 -0
- package/build/api/request/MlsKeyPackagesRequest.js +17 -0
- package/build/api/request/MlsKeyPackagesRequest.js.map +1 -0
- package/build/api/request/PreKeyRequest.d.ts +6 -0
- package/build/api/request/PreKeyRequest.d.ts.map +1 -0
- package/build/api/request/PreKeyRequest.js +24 -0
- package/build/api/request/PreKeyRequest.js.map +1 -0
- package/build/api/request/RegisterClientRequest.d.ts +14 -0
- package/build/api/request/RegisterClientRequest.d.ts.map +1 -0
- package/build/api/request/RegisterClientRequest.js +36 -0
- package/build/api/request/RegisterClientRequest.js.map +1 -0
- package/build/api/response/AccessResponse.d.ts +7 -0
- package/build/api/response/AccessResponse.d.ts.map +1 -0
- package/build/api/response/AccessResponse.js +17 -0
- package/build/api/response/AccessResponse.js.map +1 -0
- package/build/api/response/ClaimedKeyPackageList.d.ts +14 -0
- package/build/api/response/ClaimedKeyPackageList.d.ts.map +1 -0
- package/build/api/response/ClaimedKeyPackageList.js +17 -0
- package/build/api/response/ClaimedKeyPackageList.js.map +1 -0
- package/build/api/response/ConversationIdsResponse.d.ts +7 -0
- package/build/api/response/ConversationIdsResponse.d.ts.map +1 -0
- package/build/api/response/ConversationIdsResponse.js +17 -0
- package/build/api/response/ConversationIdsResponse.js.map +1 -0
- package/build/api/response/ConversationResponse.d.ts +16 -0
- package/build/api/response/ConversationResponse.d.ts.map +1 -0
- package/build/api/response/ConversationResponse.js +17 -0
- package/build/api/response/ConversationResponse.js.map +1 -0
- package/build/api/response/ConversationsResponse.d.ts +8 -0
- package/build/api/response/ConversationsResponse.d.ts.map +1 -0
- package/build/api/response/ConversationsResponse.js +17 -0
- package/build/api/response/ConversationsResponse.js.map +1 -0
- package/build/api/response/EventResponse.d.ts +7 -0
- package/build/api/response/EventResponse.d.ts.map +1 -0
- package/build/api/response/EventResponse.js +17 -0
- package/build/api/response/EventResponse.js.map +1 -0
- package/build/api/response/FeatureConfigsResponse.d.ts +19 -0
- package/build/api/response/FeatureConfigsResponse.d.ts.map +1 -0
- package/build/api/response/FeatureConfigsResponse.js +17 -0
- package/build/api/response/FeatureConfigsResponse.js.map +1 -0
- package/build/api/response/MlsPublicKeysResponse.d.ts +7 -0
- package/build/api/response/MlsPublicKeysResponse.d.ts.map +1 -0
- package/build/api/response/MlsPublicKeysResponse.js +42 -0
- package/build/api/response/MlsPublicKeysResponse.js.map +1 -0
- package/build/api/response/NotificationsResponse.d.ts +7 -0
- package/build/api/response/NotificationsResponse.d.ts.map +1 -0
- package/build/api/response/NotificationsResponse.js +17 -0
- package/build/api/response/NotificationsResponse.js.map +1 -0
- package/build/api/response/OneToOneConversationResponse.d.ts +7 -0
- package/build/api/response/OneToOneConversationResponse.d.ts.map +1 -0
- package/build/api/response/OneToOneConversationResponse.js +17 -0
- package/build/api/response/OneToOneConversationResponse.js.map +1 -0
- package/build/api/response/RegisterClientResponse.d.ts +4 -0
- package/build/api/response/RegisterClientResponse.d.ts.map +1 -0
- package/build/api/response/RegisterClientResponse.js +17 -0
- package/build/api/response/RegisterClientResponse.js.map +1 -0
- package/build/api/response/SearchContactsResponse.d.ts +15 -0
- package/build/api/response/SearchContactsResponse.d.ts.map +1 -0
- package/build/api/response/SearchContactsResponse.js +17 -0
- package/build/api/response/SearchContactsResponse.js.map +1 -0
- package/build/core/CoreCryptoClient.d.ts +48 -0
- package/build/core/CoreCryptoClient.d.ts.map +1 -0
- package/build/core/CoreCryptoClient.js +219 -0
- package/build/core/CoreCryptoClient.js.map +1 -0
- package/build/core/CoreCryptoMlsTransport.d.ts +19 -0
- package/build/core/CoreCryptoMlsTransport.d.ts.map +1 -0
- package/build/core/CoreCryptoMlsTransport.js +64 -0
- package/build/core/CoreCryptoMlsTransport.js.map +1 -0
- package/build/core/CoreCryptoService.d.ts +59 -0
- package/build/core/CoreCryptoService.d.ts.map +1 -0
- package/build/core/CoreCryptoService.js +233 -0
- package/build/core/CoreCryptoService.js.map +1 -0
- package/build/core/HttpClient.d.ts +47 -0
- package/build/core/HttpClient.d.ts.map +1 -0
- package/build/core/HttpClient.js +258 -0
- package/build/core/HttpClient.js.map +1 -0
- package/build/core/HttpRetryHelper.d.ts +16 -0
- package/build/core/HttpRetryHelper.d.ts.map +1 -0
- package/build/core/HttpRetryHelper.js +49 -0
- package/build/core/HttpRetryHelper.js.map +1 -0
- package/build/core/HttpRetryPolicy.d.ts +7 -0
- package/build/core/HttpRetryPolicy.d.ts.map +1 -0
- package/build/core/HttpRetryPolicy.js +29 -0
- package/build/core/HttpRetryPolicy.js.map +1 -0
- package/build/core/WebSocketClient.d.ts +37 -0
- package/build/core/WebSocketClient.d.ts.map +1 -0
- package/build/core/WebSocketClient.js +244 -0
- package/build/core/WebSocketClient.js.map +1 -0
- package/build/core/WireApplicationManager.d.ts +39 -0
- package/build/core/WireApplicationManager.d.ts.map +1 -0
- package/build/core/WireApplicationManager.js +142 -0
- package/build/core/WireApplicationManager.js.map +1 -0
- package/build/core/WireEventsHandler.d.ts +33 -0
- package/build/core/WireEventsHandler.d.ts.map +1 -0
- package/build/core/WireEventsHandler.js +78 -0
- package/build/core/WireEventsHandler.js.map +1 -0
- package/build/core/event/DeleteConversationEventProcessor.d.ts +13 -0
- package/build/core/event/DeleteConversationEventProcessor.d.ts.map +1 -0
- package/build/core/event/DeleteConversationEventProcessor.js +58 -0
- package/build/core/event/DeleteConversationEventProcessor.js.map +1 -0
- package/build/core/event/EventProcessor.d.ts +6 -0
- package/build/core/event/EventProcessor.d.ts.map +1 -0
- package/build/core/event/EventProcessor.js +17 -0
- package/build/core/event/EventProcessor.js.map +1 -0
- package/build/core/event/EventRouter.d.ts +10 -0
- package/build/core/event/EventRouter.d.ts.map +1 -0
- package/build/core/event/EventRouter.js +58 -0
- package/build/core/event/EventRouter.js.map +1 -0
- package/build/core/event/MemberJoinEventProcessor.d.ts +13 -0
- package/build/core/event/MemberJoinEventProcessor.d.ts.map +1 -0
- package/build/core/event/MemberJoinEventProcessor.js +63 -0
- package/build/core/event/MemberJoinEventProcessor.js.map +1 -0
- package/build/core/event/MemberLeaveEventProcessor.d.ts +13 -0
- package/build/core/event/MemberLeaveEventProcessor.d.ts.map +1 -0
- package/build/core/event/MemberLeaveEventProcessor.js +58 -0
- package/build/core/event/MemberLeaveEventProcessor.js.map +1 -0
- package/build/core/event/MemberUpdateEventProcessor.d.ts +11 -0
- package/build/core/event/MemberUpdateEventProcessor.d.ts.map +1 -0
- package/build/core/event/MemberUpdateEventProcessor.js +50 -0
- package/build/core/event/MemberUpdateEventProcessor.js.map +1 -0
- package/build/core/event/MlsMessageEventProcessor.d.ts +18 -0
- package/build/core/event/MlsMessageEventProcessor.d.ts.map +1 -0
- package/build/core/event/MlsMessageEventProcessor.js +134 -0
- package/build/core/event/MlsMessageEventProcessor.js.map +1 -0
- package/build/core/event/MlsResetEventProcessor.d.ts +11 -0
- package/build/core/event/MlsResetEventProcessor.d.ts.map +1 -0
- package/build/core/event/MlsResetEventProcessor.js +48 -0
- package/build/core/event/MlsResetEventProcessor.js.map +1 -0
- package/build/core/event/MlsWelcomeEventProcessor.d.ts +18 -0
- package/build/core/event/MlsWelcomeEventProcessor.d.ts.map +1 -0
- package/build/core/event/MlsWelcomeEventProcessor.js +77 -0
- package/build/core/event/MlsWelcomeEventProcessor.js.map +1 -0
- package/build/core/event/NewConversationEventProcessor.d.ts +11 -0
- package/build/core/event/NewConversationEventProcessor.d.ts.map +1 -0
- package/build/core/event/NewConversationEventProcessor.js +49 -0
- package/build/core/event/NewConversationEventProcessor.js.map +1 -0
- package/build/core/event/processors.index.d.ts +9 -0
- package/build/core/event/processors.index.d.ts.map +1 -0
- package/build/core/event/processors.index.js +24 -0
- package/build/core/event/processors.index.js.map +1 -0
- package/build/db/AppPropertiesRepository.d.ts +16 -0
- package/build/db/AppPropertiesRepository.d.ts.map +1 -0
- package/build/db/AppPropertiesRepository.js +64 -0
- package/build/db/AppPropertiesRepository.js.map +1 -0
- package/build/db/ConversationMemberRepository.d.ts +23 -0
- package/build/db/ConversationMemberRepository.d.ts.map +1 -0
- package/build/db/ConversationMemberRepository.js +125 -0
- package/build/db/ConversationMemberRepository.js.map +1 -0
- package/build/db/ConversationRepository.d.ts +17 -0
- package/build/db/ConversationRepository.d.ts.map +1 -0
- package/build/db/ConversationRepository.js +100 -0
- package/build/db/ConversationRepository.js.map +1 -0
- package/build/db/DatabaseService.d.ts +12 -0
- package/build/db/DatabaseService.d.ts.map +1 -0
- package/build/db/DatabaseService.js +73 -0
- package/build/db/DatabaseService.js.map +1 -0
- package/build/db/migrations/0000_pink_lord_tyger.sql +27 -0
- package/build/db/migrations/0001_steady_selene.sql +16 -0
- package/build/db/migrations/meta/0000_snapshot.json +194 -0
- package/build/db/migrations/meta/0001_snapshot.json +197 -0
- package/build/db/migrations/meta/_journal.json +20 -0
- package/build/db/model/AppEntity.d.ts +5 -0
- package/build/db/model/AppEntity.d.ts.map +1 -0
- package/build/db/model/AppEntity.js +17 -0
- package/build/db/model/AppEntity.js.map +1 -0
- package/build/db/model/ConversationEntity.d.ts +11 -0
- package/build/db/model/ConversationEntity.d.ts.map +1 -0
- package/build/db/model/ConversationEntity.js +17 -0
- package/build/db/model/ConversationEntity.js.map +1 -0
- package/build/db/model/ConversationMemberEntity.d.ts +9 -0
- package/build/db/model/ConversationMemberEntity.d.ts.map +1 -0
- package/build/db/model/ConversationMemberEntity.js +17 -0
- package/build/db/model/ConversationMemberEntity.js.map +1 -0
- package/build/db/relations.d.ts +7 -0
- package/build/db/relations.d.ts.map +1 -0
- package/build/db/relations.js +12 -0
- package/build/db/relations.js.map +1 -0
- package/build/db/schema.d.ts +324 -0
- package/build/db/schema.d.ts.map +1 -0
- package/build/db/schema.js +34 -0
- package/build/db/schema.js.map +1 -0
- package/build/generated/messages.d.ts +5517 -0
- package/build/generated/messages.d.ts.map +1 -0
- package/build/generated/messages.js +14470 -0
- package/build/generated/messages.js.map +1 -0
- package/build/generated/package.json +3 -0
- package/build/index.d.ts +14 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +34 -0
- package/build/index.js.map +1 -0
- package/build/mappers/PreKeyMapper.d.ts +4 -0
- package/build/mappers/PreKeyMapper.d.ts.map +1 -0
- package/build/mappers/PreKeyMapper.js +22 -0
- package/build/mappers/PreKeyMapper.js.map +1 -0
- package/build/mappers/conversation/ConversationMapper.d.ts +6 -0
- package/build/mappers/conversation/ConversationMapper.d.ts.map +1 -0
- package/build/mappers/conversation/ConversationMapper.js +27 -0
- package/build/mappers/conversation/ConversationMapper.js.map +1 -0
- package/build/mappers/conversation/ConversationMemberMapper.d.ts +6 -0
- package/build/mappers/conversation/ConversationMemberMapper.d.ts.map +1 -0
- package/build/mappers/conversation/ConversationMemberMapper.js +25 -0
- package/build/mappers/conversation/ConversationMemberMapper.js.map +1 -0
- package/build/mappers/protobuf/EncryptionAlgorithmMapper.d.ts +7 -0
- package/build/mappers/protobuf/EncryptionAlgorithmMapper.d.ts.map +1 -0
- package/build/mappers/protobuf/EncryptionAlgorithmMapper.js +35 -0
- package/build/mappers/protobuf/EncryptionAlgorithmMapper.js.map +1 -0
- package/build/mappers/protobuf/MessageContentEncoder.d.ts +9 -0
- package/build/mappers/protobuf/MessageContentEncoder.d.ts.map +1 -0
- package/build/mappers/protobuf/MessageContentEncoder.js +85 -0
- package/build/mappers/protobuf/MessageContentEncoder.js.map +1 -0
- package/build/mappers/protobuf/MessageLinkPreviewMapper.d.ts +7 -0
- package/build/mappers/protobuf/MessageLinkPreviewMapper.d.ts.map +1 -0
- package/build/mappers/protobuf/MessageLinkPreviewMapper.js +79 -0
- package/build/mappers/protobuf/MessageLinkPreviewMapper.js.map +1 -0
- package/build/mappers/protobuf/MessageMentionMapper.d.ts +7 -0
- package/build/mappers/protobuf/MessageMentionMapper.d.ts.map +1 -0
- package/build/mappers/protobuf/MessageMentionMapper.js +39 -0
- package/build/mappers/protobuf/MessageMentionMapper.js.map +1 -0
- package/build/mappers/protobuf/ProtobufDeserializer.d.ts +12 -0
- package/build/mappers/protobuf/ProtobufDeserializer.d.ts.map +1 -0
- package/build/mappers/protobuf/ProtobufDeserializer.js +343 -0
- package/build/mappers/protobuf/ProtobufDeserializer.js.map +1 -0
- package/build/mappers/protobuf/ProtobufSerializer.d.ts +15 -0
- package/build/mappers/protobuf/ProtobufSerializer.d.ts.map +1 -0
- package/build/mappers/protobuf/ProtobufSerializer.js +331 -0
- package/build/mappers/protobuf/ProtobufSerializer.js.map +1 -0
- package/build/model/Asset.d.ts +9 -0
- package/build/model/Asset.d.ts.map +1 -0
- package/build/model/Asset.js +17 -0
- package/build/model/Asset.js.map +1 -0
- package/build/model/ClaimedKeyPackagesResult.d.ts +7 -0
- package/build/model/ClaimedKeyPackagesResult.d.ts.map +1 -0
- package/build/model/ClaimedKeyPackagesResult.js +17 -0
- package/build/model/ClaimedKeyPackagesResult.js.map +1 -0
- package/build/model/CryptoClientId.d.ts +8 -0
- package/build/model/CryptoClientId.d.ts.map +1 -0
- package/build/model/CryptoClientId.js +29 -0
- package/build/model/CryptoClientId.js.map +1 -0
- package/build/model/CryptoProtocol.d.ts +6 -0
- package/build/model/CryptoProtocol.d.ts.map +1 -0
- package/build/model/CryptoProtocol.js +22 -0
- package/build/model/CryptoProtocol.js.map +1 -0
- package/build/model/EventContentDTO.d.ts +84 -0
- package/build/model/EventContentDTO.d.ts.map +1 -0
- package/build/model/EventContentDTO.js +17 -0
- package/build/model/EventContentDTO.js.map +1 -0
- package/build/model/MlsPublicKeys.d.ts +7 -0
- package/build/model/MlsPublicKeys.d.ts.map +1 -0
- package/build/model/MlsPublicKeys.js +17 -0
- package/build/model/MlsPublicKeys.js.map +1 -0
- package/build/model/PreKeyCrypto.d.ts +6 -0
- package/build/model/PreKeyCrypto.d.ts.map +1 -0
- package/build/model/PreKeyCrypto.js +24 -0
- package/build/model/PreKeyCrypto.js.map +1 -0
- package/build/model/QualifiedId.d.ts +17 -0
- package/build/model/QualifiedId.d.ts.map +1 -0
- package/build/model/QualifiedId.js +43 -0
- package/build/model/QualifiedId.js.map +1 -0
- package/build/model/TeamId.d.ts +6 -0
- package/build/model/TeamId.d.ts.map +1 -0
- package/build/model/TeamId.js +26 -0
- package/build/model/TeamId.js.map +1 -0
- package/build/model/WireMessage.d.ts +336 -0
- package/build/model/WireMessage.d.ts.map +1 -0
- package/build/model/WireMessage.js +270 -0
- package/build/model/WireMessage.js.map +1 -0
- package/build/model/WireUser.d.ts +12 -0
- package/build/model/WireUser.d.ts.map +1 -0
- package/build/model/WireUser.js +32 -0
- package/build/model/WireUser.js.map +1 -0
- package/build/model/conversation/ChannelAddPermissionType.d.ts +7 -0
- package/build/model/conversation/ChannelAddPermissionType.d.ts.map +1 -0
- package/build/model/conversation/ChannelAddPermissionType.js +23 -0
- package/build/model/conversation/ChannelAddPermissionType.js.map +1 -0
- package/build/model/conversation/Conversation.d.ts +9 -0
- package/build/model/conversation/Conversation.d.ts.map +1 -0
- package/build/model/conversation/Conversation.js +17 -0
- package/build/model/conversation/Conversation.js.map +1 -0
- package/build/model/conversation/ConversationAccess.d.ts +8 -0
- package/build/model/conversation/ConversationAccess.d.ts.map +1 -0
- package/build/model/conversation/ConversationAccess.js +24 -0
- package/build/model/conversation/ConversationAccess.js.map +1 -0
- package/build/model/conversation/ConversationAccessRole.d.ts +8 -0
- package/build/model/conversation/ConversationAccessRole.d.ts.map +1 -0
- package/build/model/conversation/ConversationAccessRole.js +24 -0
- package/build/model/conversation/ConversationAccessRole.js.map +1 -0
- package/build/model/conversation/ConversationMember.d.ts +7 -0
- package/build/model/conversation/ConversationMember.d.ts.map +1 -0
- package/build/model/conversation/ConversationMember.js +17 -0
- package/build/model/conversation/ConversationMember.js.map +1 -0
- package/build/model/conversation/ConversationRole.d.ts +6 -0
- package/build/model/conversation/ConversationRole.d.ts.map +1 -0
- package/build/model/conversation/ConversationRole.js +29 -0
- package/build/model/conversation/ConversationRole.js.map +1 -0
- package/build/model/conversation/ConversationType.d.ts +6 -0
- package/build/model/conversation/ConversationType.d.ts.map +1 -0
- package/build/model/conversation/ConversationType.js +22 -0
- package/build/model/conversation/ConversationType.js.map +1 -0
- package/build/model/conversation/GroupConversationType.d.ts +5 -0
- package/build/model/conversation/GroupConversationType.d.ts.map +1 -0
- package/build/model/conversation/GroupConversationType.js +21 -0
- package/build/model/conversation/GroupConversationType.js.map +1 -0
- package/build/model/conversation/ReceiptMode.d.ts +5 -0
- package/build/model/conversation/ReceiptMode.d.ts.map +1 -0
- package/build/model/conversation/ReceiptMode.js +21 -0
- package/build/model/conversation/ReceiptMode.js.map +1 -0
- package/build/model/exception/CoreCryptoMlsException.d.ts +5 -0
- package/build/model/exception/CoreCryptoMlsException.d.ts.map +1 -0
- package/build/model/exception/CoreCryptoMlsException.js +25 -0
- package/build/model/exception/CoreCryptoMlsException.js.map +1 -0
- package/build/model/exception/MlsException.d.ts +5 -0
- package/build/model/exception/MlsException.d.ts.map +1 -0
- package/build/model/exception/MlsException.js +25 -0
- package/build/model/exception/MlsException.js.map +1 -0
- package/build/model/exception/WireApiError.d.ts +6 -0
- package/build/model/exception/WireApiError.d.ts.map +1 -0
- package/build/model/exception/WireApiError.js +17 -0
- package/build/model/exception/WireApiError.js.map +1 -0
- package/build/model/exception/WireApiException.d.ts +8 -0
- package/build/model/exception/WireApiException.d.ts.map +1 -0
- package/build/model/exception/WireApiException.js +29 -0
- package/build/model/exception/WireApiException.js.map +1 -0
- package/build/model/protobuf/MessageEncryptionAlgorithm.d.ts +5 -0
- package/build/model/protobuf/MessageEncryptionAlgorithm.d.ts.map +1 -0
- package/build/model/protobuf/MessageEncryptionAlgorithm.js +21 -0
- package/build/model/protobuf/MessageEncryptionAlgorithm.js.map +1 -0
- package/build/service/AppProperties.d.ts +25 -0
- package/build/service/AppProperties.d.ts.map +1 -0
- package/build/service/AppProperties.js +105 -0
- package/build/service/AppProperties.js.map +1 -0
- package/build/service/MlsFallbackStrategy.d.ts +11 -0
- package/build/service/MlsFallbackStrategy.d.ts.map +1 -0
- package/build/service/MlsFallbackStrategy.js +57 -0
- package/build/service/MlsFallbackStrategy.js.map +1 -0
- package/build/service/NotificationsService.d.ts +14 -0
- package/build/service/NotificationsService.d.ts.map +1 -0
- package/build/service/NotificationsService.js +71 -0
- package/build/service/NotificationsService.js.map +1 -0
- package/build/utils/AESUtils.d.ts +11 -0
- package/build/utils/AESUtils.d.ts.map +1 -0
- package/build/utils/AESUtils.js +47 -0
- package/build/utils/AESUtils.js.map +1 -0
- package/build/utils/BufferUtils.d.ts +2 -0
- package/build/utils/BufferUtils.d.ts.map +1 -0
- package/build/utils/BufferUtils.js +17 -0
- package/build/utils/BufferUtils.js.map +1 -0
- package/build/utils/DependencyInjectionTokens.d.ts +8 -0
- package/build/utils/DependencyInjectionTokens.d.ts.map +1 -0
- package/build/utils/DependencyInjectionTokens.js +23 -0
- package/build/utils/DependencyInjectionTokens.js.map +1 -0
- package/build/utils/HashUtils.d.ts +5 -0
- package/build/utils/HashUtils.d.ts.map +1 -0
- package/build/utils/HashUtils.js +25 -0
- package/build/utils/HashUtils.js.map +1 -0
- package/build/utils/ObfuscateUtil.d.ts +3 -0
- package/build/utils/ObfuscateUtil.d.ts.map +1 -0
- package/build/utils/ObfuscateUtil.js +30 -0
- package/build/utils/ObfuscateUtil.js.map +1 -0
- package/build/utils/StoragePaths.d.ts +4 -0
- package/build/utils/StoragePaths.d.ts.map +1 -0
- package/build/utils/StoragePaths.js +22 -0
- package/build/utils/StoragePaths.js.map +1 -0
- package/build/utils/logger/ConsoleLogger.d.ts +12 -0
- package/build/utils/logger/ConsoleLogger.d.ts.map +1 -0
- package/build/utils/logger/ConsoleLogger.js +31 -0
- package/build/utils/logger/ConsoleLogger.js.map +1 -0
- package/build/utils/logger/LogLevel.d.ts +7 -0
- package/build/utils/logger/LogLevel.d.ts.map +1 -0
- package/build/utils/logger/LogLevel.js +8 -0
- package/build/utils/logger/LogLevel.js.map +1 -0
- package/build/utils/logger/Logger.d.ts +27 -0
- package/build/utils/logger/Logger.d.ts.map +1 -0
- package/build/utils/logger/Logger.js +2 -0
- package/build/utils/logger/Logger.js.map +1 -0
- package/build/utils/logger/LoggerFactory.d.ts +7 -0
- package/build/utils/logger/LoggerFactory.d.ts.map +1 -0
- package/build/utils/logger/LoggerFactory.js +19 -0
- package/build/utils/logger/LoggerFactory.js.map +1 -0
- package/package.json +105 -0
- package/src/WireAppSdk.ts +224 -0
- package/src/api/AssetsApiClient.ts +77 -0
- package/src/api/AssetsTransferService.ts +96 -0
- package/src/api/ClientsApiClient.ts +71 -0
- package/src/api/ClientsService.ts +40 -0
- package/src/api/ConversationService.ts +654 -0
- package/src/api/ConversationsApiClient.ts +141 -0
- package/src/api/FeatureConfigsApiClient.ts +31 -0
- package/src/api/FeatureConfigsService.ts +33 -0
- package/src/api/MlsApiClient.ts +81 -0
- package/src/api/MlsService.ts +99 -0
- package/src/api/NotificationsApiClient.ts +58 -0
- package/src/api/OneToOneConversationsApiClient.ts +39 -0
- package/src/api/SearchApiClient.ts +58 -0
- package/src/api/TeamsApiClient.ts +40 -0
- package/src/api/UserService.ts +111 -0
- package/src/api/UsersApiClient.ts +61 -0
- package/src/api/model/AddMembersToConversationResult.ts +22 -0
- package/src/api/model/ConversationIdsPaginationConfig.ts +20 -0
- package/src/api/model/ConversationMemberOtherResponse.ts +23 -0
- package/src/api/model/ConversationMemberSelfResponse.ts +23 -0
- package/src/api/model/ConversationMembersResponse.ts +23 -0
- package/src/api/model/ConversationTeamInfo.ts +20 -0
- package/src/api/model/RemoveMembersFromConversationResult.ts +21 -0
- package/src/api/model/UserClientResponse.ts +19 -0
- package/src/api/model/UserResponse.ts +28 -0
- package/src/api/model/asset/AssetUploadData.ts +20 -0
- package/src/api/model/asset/AssetUploadResponse.ts +22 -0
- package/src/api/request/CapabilitiesRequest.ts +19 -0
- package/src/api/request/ClientUpdateRequest.ts +21 -0
- package/src/api/request/ConversationIdsRequest.ts +21 -0
- package/src/api/request/CreateConversationRequest.ts +86 -0
- package/src/api/request/MlsKeyPackagesRequest.ts +19 -0
- package/src/api/request/PreKeyRequest.ts +28 -0
- package/src/api/request/RegisterClientRequest.ts +46 -0
- package/src/api/response/AccessResponse.ts +22 -0
- package/src/api/response/ClaimedKeyPackageList.ts +30 -0
- package/src/api/response/ConversationIdsResponse.ts +23 -0
- package/src/api/response/ConversationResponse.ts +32 -0
- package/src/api/response/ConversationsResponse.ts +24 -0
- package/src/api/response/EventResponse.ts +23 -0
- package/src/api/response/FeatureConfigsResponse.ts +37 -0
- package/src/api/response/MlsPublicKeysResponse.ts +58 -0
- package/src/api/response/NotificationsResponse.ts +23 -0
- package/src/api/response/OneToOneConversationResponse.ts +24 -0
- package/src/api/response/RegisterClientResponse.ts +19 -0
- package/src/api/response/SearchContactsResponse.ts +32 -0
- package/src/core/CoreCryptoClient.ts +361 -0
- package/src/core/CoreCryptoMlsTransport.ts +58 -0
- package/src/core/CoreCryptoService.ts +276 -0
- package/src/core/HttpClient.ts +363 -0
- package/src/core/HttpRetryHelper.ts +57 -0
- package/src/core/HttpRetryPolicy.ts +40 -0
- package/src/core/WebSocketClient.ts +245 -0
- package/src/core/WireApplicationManager.ts +162 -0
- package/src/core/WireEventsHandler.ts +118 -0
- package/src/core/event/DeleteConversationEventProcessor.ts +47 -0
- package/src/core/event/EventProcessor.ts +22 -0
- package/src/core/event/EventRouter.ts +54 -0
- package/src/core/event/MemberJoinEventProcessor.ts +54 -0
- package/src/core/event/MemberLeaveEventProcessor.ts +47 -0
- package/src/core/event/MemberUpdateEventProcessor.ts +44 -0
- package/src/core/event/MlsMessageEventProcessor.ts +124 -0
- package/src/core/event/MlsResetEventProcessor.ts +42 -0
- package/src/core/event/MlsWelcomeEventProcessor.ts +68 -0
- package/src/core/event/NewConversationEventProcessor.ts +42 -0
- package/src/core/event/processors.index.ts +24 -0
- package/src/db/AppPropertiesRepository.ts +62 -0
- package/src/db/ConversationMemberRepository.ts +163 -0
- package/src/db/ConversationRepository.ts +119 -0
- package/src/db/DatabaseService.ts +69 -0
- package/src/db/migrations/0000_pink_lord_tyger.sql +27 -0
- package/src/db/migrations/0001_steady_selene.sql +16 -0
- package/src/db/migrations/meta/0000_snapshot.json +194 -0
- package/src/db/migrations/meta/0001_snapshot.json +197 -0
- package/src/db/migrations/meta/_journal.json +20 -0
- package/src/db/model/AppEntity.ts +20 -0
- package/src/db/model/ConversationEntity.ts +27 -0
- package/src/db/model/ConversationMemberEntity.ts +24 -0
- package/src/db/relations.ts +13 -0
- package/src/db/schema.ts +38 -0
- package/src/index.ts +67 -0
- package/src/mappers/PreKeyMapper.ts +25 -0
- package/src/mappers/conversation/ConversationMapper.ts +30 -0
- package/src/mappers/conversation/ConversationMemberMapper.ts +30 -0
- package/src/mappers/protobuf/EncryptionAlgorithmMapper.ts +39 -0
- package/src/mappers/protobuf/MessageContentEncoder.ts +121 -0
- package/src/mappers/protobuf/MessageLinkPreviewMapper.ts +89 -0
- package/src/mappers/protobuf/MessageMentionMapper.ts +43 -0
- package/src/mappers/protobuf/ProtobufDeserializer.ts +470 -0
- package/src/mappers/protobuf/ProtobufSerializer.ts +449 -0
- package/src/model/Asset.ts +26 -0
- package/src/model/ClaimedKeyPackagesResult.ts +23 -0
- package/src/model/CryptoClientId.ts +40 -0
- package/src/model/CryptoProtocol.ts +21 -0
- package/src/model/EventContentDTO.ts +123 -0
- package/src/model/MlsPublicKeys.ts +22 -0
- package/src/model/PreKeyCrypto.ts +25 -0
- package/src/model/QualifiedId.ts +45 -0
- package/src/model/TeamId.ts +25 -0
- package/src/model/WireMessage.ts +632 -0
- package/src/model/WireUser.ts +30 -0
- package/src/model/conversation/ChannelAddPermissionType.ts +23 -0
- package/src/model/conversation/Conversation.ts +25 -0
- package/src/model/conversation/ConversationAccess.ts +24 -0
- package/src/model/conversation/ConversationAccessRole.ts +24 -0
- package/src/model/conversation/ConversationMember.ts +23 -0
- package/src/model/conversation/ConversationRole.ts +30 -0
- package/src/model/conversation/ConversationType.ts +21 -0
- package/src/model/conversation/GroupConversationType.ts +21 -0
- package/src/model/conversation/ReceiptMode.ts +21 -0
- package/src/model/exception/CoreCryptoMlsException.ts +26 -0
- package/src/model/exception/MlsException.ts +26 -0
- package/src/model/exception/WireApiError.ts +21 -0
- package/src/model/exception/WireApiException.ts +33 -0
- package/src/model/protobuf/MessageEncryptionAlgorithm.ts +17 -0
- package/src/proto/messages.proto +383 -0
- package/src/service/AppProperties.ts +110 -0
- package/src/service/MlsFallbackStrategy.ts +52 -0
- package/src/service/NotificationsService.ts +65 -0
- package/src/utils/AESUtils.ts +62 -0
- package/src/utils/BufferUtils.ts +18 -0
- package/src/utils/DependencyInjectionTokens.ts +25 -0
- package/src/utils/HashUtils.ts +27 -0
- package/src/utils/ObfuscateUtil.ts +31 -0
- package/src/utils/StoragePaths.ts +23 -0
- package/src/utils/logger/ConsoleLogger.ts +35 -0
- package/src/utils/logger/LogLevel.ts +6 -0
- package/src/utils/logger/Logger.ts +29 -0
- package/src/utils/logger/LoggerFactory.ts +27 -0
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { WireAppSdk } from './WireAppSdk.js';
|
|
2
|
+
export { WireEventsHandler } from "./core/WireEventsHandler.js";
|
|
3
|
+
export type { Logger } from "./utils/logger/Logger.js";
|
|
4
|
+
export { LogLevel } from "./utils/logger/LogLevel.js";
|
|
5
|
+
export { ConsoleLogger } from "./utils/logger/ConsoleLogger.js";
|
|
6
|
+
export { type WireMessage, TextMessage, TextEditedMessage, AssetMessage, CompositeButton, CompositeButtonAction, CompositeMessage, CompositeEditedMessage, Ping, Location, DeletedMessage, Receipt, ReceiptType, WireMessageType, Reaction, Ignored, Unknown, type LinkPreview, type Audio, type Image, type Video } from "./model/WireMessage.js";
|
|
7
|
+
export type { Conversation } from "./model/conversation/Conversation.js";
|
|
8
|
+
export type { ConversationMember } from "./model/conversation/ConversationMember.js";
|
|
9
|
+
export { ConversationRole } from "./model/conversation/ConversationRole.js";
|
|
10
|
+
export type { RemoveMembersFromConversationResult } from "./api/model/RemoveMembersFromConversationResult.js";
|
|
11
|
+
export { QualifiedId } from "./model/QualifiedId.js";
|
|
12
|
+
export { WireUser } from "./model/WireUser.js";
|
|
13
|
+
export { obfuscateId } from "./utils/ObfuscateUtil.js";
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAK/D,YAAY,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAK/D,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,IAAI,EACJ,QAAQ,EACR,cAAc,EACd,OAAO,EACP,WAAW,EACX,eAAe,EACf,QAAQ,EACR,OAAO,EACP,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,KAAK,EACV,KAAK,KAAK,EACV,KAAK,KAAK,EACX,MAAM,wBAAwB,CAAA;AAE/B,YAAY,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACzE,YAAY,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,YAAY,EAAE,mCAAmC,EAAE,MAAM,oDAAoD,CAAC;AAC9G,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA"}
|
package/build/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
*/
|
|
16
|
+
// ============================================
|
|
17
|
+
// Main SDK Class
|
|
18
|
+
// ============================================
|
|
19
|
+
export { WireAppSdk } from './WireAppSdk.js';
|
|
20
|
+
// ============================================
|
|
21
|
+
// Core Components
|
|
22
|
+
// ============================================
|
|
23
|
+
export { WireEventsHandler } from "./core/WireEventsHandler.js";
|
|
24
|
+
export { LogLevel } from "./utils/logger/LogLevel.js";
|
|
25
|
+
export { ConsoleLogger } from "./utils/logger/ConsoleLogger.js";
|
|
26
|
+
// ============================================
|
|
27
|
+
// Model Classes
|
|
28
|
+
// ============================================
|
|
29
|
+
export { TextMessage, TextEditedMessage, AssetMessage, CompositeButton, CompositeButtonAction, CompositeMessage, CompositeEditedMessage, Ping, Location, DeletedMessage, Receipt, ReceiptType, WireMessageType, Reaction, Ignored, Unknown } from "./model/WireMessage.js";
|
|
30
|
+
export { ConversationRole } from "./model/conversation/ConversationRole.js";
|
|
31
|
+
export { QualifiedId } from "./model/QualifiedId.js";
|
|
32
|
+
export { WireUser } from "./model/WireUser.js";
|
|
33
|
+
export { obfuscateId } from "./utils/ObfuscateUtil.js";
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;EAcE;AAEF,+CAA+C;AAC/C,iBAAiB;AACjB,+CAA+C;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,+CAA+C;AAC/C,kBAAkB;AAClB,+CAA+C;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAM/D,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/D,+CAA+C;AAC/C,gBAAgB;AAChB,+CAA+C;AAC/C,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,IAAI,EACJ,QAAQ,EACR,cAAc,EACd,OAAO,EACP,WAAW,EACX,eAAe,EACf,QAAQ,EACR,OAAO,EACP,OAAO,EAKR,MAAM,wBAAwB,CAAA;AAI/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreKeyMapper.d.ts","sourceRoot":"","sources":["../../src/mappers/PreKeyMapper.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,aAAa,CAKtE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export function mapToPreKeyRequest(preKey) {
|
|
17
|
+
return {
|
|
18
|
+
id: preKey.id,
|
|
19
|
+
key: preKey.encodedData
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=PreKeyMapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreKeyMapper.js","sourceRoot":"","sources":["../../src/mappers/PreKeyMapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;EAcE;AAKF,MAAM,UAAU,kBAAkB,CAAC,MAAoB;IACrD,OAAO;QACL,EAAE,EAAE,MAAM,CAAC,EAAE;QACb,GAAG,EAAE,MAAM,CAAC,WAAW;KACxB,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ConversationEntity } from "../../db/model/ConversationEntity.js";
|
|
2
|
+
import type { Conversation } from "../../model/conversation/Conversation.js";
|
|
3
|
+
export declare class ConversationMapper {
|
|
4
|
+
static fromEntity(conversationEntity: ConversationEntity): Conversation;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=ConversationMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationMapper.d.ts","sourceRoot":"","sources":["../../../src/mappers/conversation/ConversationMapper.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAE7E,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,UAAU,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,YAAY;CASxE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export class ConversationMapper {
|
|
17
|
+
static fromEntity(conversationEntity) {
|
|
18
|
+
return {
|
|
19
|
+
id: conversationEntity.id,
|
|
20
|
+
domain: conversationEntity.domain,
|
|
21
|
+
name: conversationEntity.name,
|
|
22
|
+
type: conversationEntity.type,
|
|
23
|
+
teamId: conversationEntity.teamId
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=ConversationMapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationMapper.js","sourceRoot":"","sources":["../../../src/mappers/conversation/ConversationMapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;EAcE;AAKF,MAAM,OAAO,kBAAkB;IAC7B,MAAM,CAAC,UAAU,CAAC,kBAAsC;QACtD,OAAO;YACL,EAAE,EAAE,kBAAkB,CAAC,EAAE;YACzB,MAAM,EAAE,kBAAkB,CAAC,MAAM;YACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI;YAC7B,IAAI,EAAE,kBAAkB,CAAC,IAAI;YAC7B,MAAM,EAAE,kBAAkB,CAAC,MAAM;SAClC,CAAA;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ConversationMemberEntity } from "../../db/model/ConversationMemberEntity.js";
|
|
2
|
+
import type { ConversationMember } from "../../model/conversation/ConversationMember.js";
|
|
3
|
+
export declare class ConversationMemberMapper {
|
|
4
|
+
static fromEntity(entity: ConversationMemberEntity): ConversationMember;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=ConversationMemberMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationMemberMapper.d.ts","sourceRoot":"","sources":["../../../src/mappers/conversation/ConversationMemberMapper.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,4CAA4C,CAAC;AACzF,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,gDAAgD,CAAC;AAIvF,qBAAa,wBAAwB;IACnC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,wBAAwB,GAAG,kBAAkB;CAMxE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
import { QualifiedId } from "../../model/QualifiedId.js";
|
|
17
|
+
export class ConversationMemberMapper {
|
|
18
|
+
static fromEntity(entity) {
|
|
19
|
+
return {
|
|
20
|
+
userId: new QualifiedId(entity.userId, entity.userDomain),
|
|
21
|
+
role: entity.role
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=ConversationMemberMapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationMemberMapper.js","sourceRoot":"","sources":["../../../src/mappers/conversation/ConversationMemberMapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;EAcE;AAMF,OAAO,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AAEvD,MAAM,OAAO,wBAAwB;IACnC,MAAM,CAAC,UAAU,CAAC,MAAgC;QAChD,OAAO;YACL,MAAM,EAAE,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;YACzD,IAAI,EAAE,MAAM,CAAC,IAAwB;SACtC,CAAA;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EncryptionAlgorithm as ProtobufEncryptionAlgorithm } from '../../generated/messages.js';
|
|
2
|
+
import { MessageEncryptionAlgorithm } from "../../model/protobuf/MessageEncryptionAlgorithm.js";
|
|
3
|
+
export declare class EncryptionAlgorithmMapper {
|
|
4
|
+
static fromProtobufModel(encryptionAlgorithm: ProtobufEncryptionAlgorithm | null | undefined): MessageEncryptionAlgorithm;
|
|
5
|
+
static toProtobufModel(encryptionAlgorithm: MessageEncryptionAlgorithm): ProtobufEncryptionAlgorithm;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=EncryptionAlgorithmMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EncryptionAlgorithmMapper.d.ts","sourceRoot":"","sources":["../../../src/mappers/protobuf/EncryptionAlgorithmMapper.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAC,mBAAmB,IAAI,2BAA2B,EAAC,MAAM,6BAA6B,CAAC;AACpG,OAAO,EAAC,0BAA0B,EAAC,MAAM,oDAAoD,CAAC;AAI9F,qBAAa,yBAAyB;IACpC,MAAM,CAAC,iBAAiB,CAAC,mBAAmB,EAAE,2BAA2B,GAAG,IAAI,GAAG,SAAS,GAAG,0BAA0B;IAQzH,MAAM,CAAC,eAAe,CAAC,mBAAmB,EAAE,0BAA0B,GAAG,2BAA2B;CAOrG"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
import rootMessage from '../../generated/messages.js';
|
|
17
|
+
import { MessageEncryptionAlgorithm } from "../../model/protobuf/MessageEncryptionAlgorithm.js";
|
|
18
|
+
const { EncryptionAlgorithm } = rootMessage;
|
|
19
|
+
export class EncryptionAlgorithmMapper {
|
|
20
|
+
static fromProtobufModel(encryptionAlgorithm) {
|
|
21
|
+
switch (encryptionAlgorithm) {
|
|
22
|
+
case EncryptionAlgorithm.AES_CBC: return MessageEncryptionAlgorithm.AES_CBC;
|
|
23
|
+
case EncryptionAlgorithm.AES_GCM: return MessageEncryptionAlgorithm.AES_GCM;
|
|
24
|
+
default: return MessageEncryptionAlgorithm.AES_CBC;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
static toProtobufModel(encryptionAlgorithm) {
|
|
28
|
+
switch (encryptionAlgorithm) {
|
|
29
|
+
case MessageEncryptionAlgorithm.AES_CBC: return EncryptionAlgorithm.AES_CBC;
|
|
30
|
+
case MessageEncryptionAlgorithm.AES_GCM: return EncryptionAlgorithm.AES_GCM;
|
|
31
|
+
default: return EncryptionAlgorithm.AES_CBC;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=EncryptionAlgorithmMapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EncryptionAlgorithmMapper.js","sourceRoot":"","sources":["../../../src/mappers/protobuf/EncryptionAlgorithmMapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;EAcE;AAEF,OAAO,WAAW,MAAM,6BAA6B,CAAC;AAEtD,OAAO,EAAC,0BAA0B,EAAC,MAAM,oDAAoD,CAAC;AAE9F,MAAM,EAAC,mBAAmB,EAAC,GAAG,WAAW,CAAC;AAE1C,MAAM,OAAO,yBAAyB;IACpC,MAAM,CAAC,iBAAiB,CAAC,mBAAmE;QAC1F,QAAQ,mBAAmB,EAAE,CAAC;YAC5B,KAAK,mBAAmB,CAAC,OAAO,CAAC,CAAC,OAAO,0BAA0B,CAAC,OAAO,CAAC;YAC5E,KAAK,mBAAmB,CAAC,OAAO,CAAC,CAAC,OAAO,0BAA0B,CAAC,OAAO,CAAC;YAC5E,OAAO,CAAC,CAAC,OAAO,0BAA0B,CAAC,OAAO,CAAC;QACrD,CAAC;IACH,CAAC;IAED,MAAM,CAAC,eAAe,CAAC,mBAA+C;QACpE,QAAQ,mBAAmB,EAAE,CAAC;YAC5B,KAAK,0BAA0B,CAAC,OAAO,CAAC,CAAC,OAAO,mBAAmB,CAAC,OAAO,CAAC;YAC5E,KAAK,0BAA0B,CAAC,OAAO,CAAC,CAAC,OAAO,mBAAmB,CAAC,OAAO,CAAC;YAC5E,OAAO,CAAC,CAAC,OAAO,mBAAmB,CAAC,OAAO,CAAC;QAC9C,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type WireMessage } from "../../model/WireMessage.js";
|
|
2
|
+
export declare class EncodedMessageContent {
|
|
3
|
+
readonly sha256Digest: Buffer;
|
|
4
|
+
constructor(byteArray: Buffer);
|
|
5
|
+
}
|
|
6
|
+
export declare const MessageContentEncoder: {
|
|
7
|
+
encodeMessageContent(message: WireMessage): EncodedMessageContent | null;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=MessageContentEncoder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageContentEncoder.d.ts","sourceRoot":"","sources":["../../../src/mappers/protobuf/MessageContentEncoder.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAC,KAAK,WAAW,EAAkB,MAAM,4BAA4B,CAAC;AAS7E,qBAAa,qBAAqB;IAChC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;gBAElB,SAAS,EAAE,MAAM;CAG9B;AAoED,eAAO,MAAM,qBAAqB;kCACF,WAAW,GAAG,qBAAqB,GAAG,IAAI;CAkBzE,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
import { HashUtils } from "../../utils/HashUtils.js";
|
|
17
|
+
import { concatToBuffer } from "../../utils/BufferUtils.js";
|
|
18
|
+
import { WireMessageType } from "../../model/WireMessage.js";
|
|
19
|
+
import { LoggerFactory } from "../../utils/logger/LoggerFactory.js";
|
|
20
|
+
const MILLIS_IN_SEC = 1000;
|
|
21
|
+
const COORDINATES_ROUNDING = 1000;
|
|
22
|
+
const LONG_SIZE_BYTES = 8;
|
|
23
|
+
const logger = LoggerFactory.getLogger('MessageContentEncoder');
|
|
24
|
+
export class EncodedMessageContent {
|
|
25
|
+
sha256Digest;
|
|
26
|
+
constructor(byteArray) {
|
|
27
|
+
this.sha256Digest = HashUtils.calculateSha256Hash(byteArray);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Converts a string into a UTF-16BE encoded byte array.
|
|
32
|
+
*/
|
|
33
|
+
function toUTF16BEByteArray(value) {
|
|
34
|
+
const result = Buffer.alloc(value.length * 2);
|
|
35
|
+
for (let i = 0; i < value.length; i++) {
|
|
36
|
+
result.writeUInt16BE(value.charCodeAt(i), i * 2);
|
|
37
|
+
}
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Converts an integer (safe up to 2^53) into an 8-byte big-endian byte array.
|
|
42
|
+
*/
|
|
43
|
+
function toByteArray(value) {
|
|
44
|
+
const result = Buffer.alloc(LONG_SIZE_BYTES);
|
|
45
|
+
result.writeBigInt64BE(BigInt(Math.trunc(value)));
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
function encodeMessageTimeStampInMillis(messageTimeStampInMillis) {
|
|
49
|
+
const messageTimeStampInSec = Math.floor(messageTimeStampInMillis / MILLIS_IN_SEC);
|
|
50
|
+
return toByteArray(messageTimeStampInSec);
|
|
51
|
+
}
|
|
52
|
+
function wrapIntoResult(messageTimeStampByteArray, messageTextBodyUTF16BE) {
|
|
53
|
+
const bom = new Uint8Array([0xfe, 0xff]);
|
|
54
|
+
return new EncodedMessageContent(concatToBuffer(bom, messageTextBodyUTF16BE, messageTimeStampByteArray));
|
|
55
|
+
}
|
|
56
|
+
function encodeMessageAsset(messageTimeStampInMillis, assetId) {
|
|
57
|
+
return wrapIntoResult(encodeMessageTimeStampInMillis(messageTimeStampInMillis), toUTF16BEByteArray(assetId));
|
|
58
|
+
}
|
|
59
|
+
function encodeMessageTextBody(messageTimeStampInMillis, messageTextBody) {
|
|
60
|
+
return wrapIntoResult(encodeMessageTimeStampInMillis(messageTimeStampInMillis), toUTF16BEByteArray(messageTextBody));
|
|
61
|
+
}
|
|
62
|
+
function encodeLocationCoordinates(latitude, longitude, messageTimeStampInMillis) {
|
|
63
|
+
const latitudeBEBytes = toByteArray(Math.round(latitude * COORDINATES_ROUNDING));
|
|
64
|
+
const longitudeBEBytes = toByteArray(Math.round(longitude * COORDINATES_ROUNDING));
|
|
65
|
+
const timestampBytes = encodeMessageTimeStampInMillis(messageTimeStampInMillis);
|
|
66
|
+
return new EncodedMessageContent(concatToBuffer(latitudeBEBytes, longitudeBEBytes, timestampBytes));
|
|
67
|
+
}
|
|
68
|
+
export const MessageContentEncoder = {
|
|
69
|
+
encodeMessageContent(message) {
|
|
70
|
+
switch (message.type) {
|
|
71
|
+
case WireMessageType.ASSET:
|
|
72
|
+
return message.remoteData?.assetId
|
|
73
|
+
? encodeMessageAsset(new Date(message.timestamp).getTime(), message.remoteData.assetId)
|
|
74
|
+
: null;
|
|
75
|
+
case WireMessageType.TEXT:
|
|
76
|
+
return encodeMessageTextBody(new Date(message.timestamp).getTime(), message.text);
|
|
77
|
+
case WireMessageType.LOCATION:
|
|
78
|
+
return encodeLocationCoordinates(message.latitude, message.longitude, new Date(message.timestamp).getTime());
|
|
79
|
+
default:
|
|
80
|
+
logger.warn('Attempting to encode message with unsupported content type');
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=MessageContentEncoder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageContentEncoder.js","sourceRoot":"","sources":["../../../src/mappers/protobuf/MessageContentEncoder.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ILinkPreview } from "../../generated/messages.js";
|
|
2
|
+
import type { LinkPreview } from "../../model/WireMessage.js";
|
|
3
|
+
export declare class MessageLinkPreviewMapper {
|
|
4
|
+
static fromProtobuf(linkPreview: ILinkPreview): LinkPreview;
|
|
5
|
+
static toProtobuf(linkPreview: LinkPreview): ILinkPreview;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=MessageLinkPreviewMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageLinkPreviewMapper.d.ts","sourceRoot":"","sources":["../../../src/mappers/protobuf/MessageLinkPreviewMapper.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAQ,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AAG5D,qBAAa,wBAAwB;IACnC,MAAM,CAAC,YAAY,CAAC,WAAW,EAAE,YAAY,GAAG,WAAW;IA4B3D,MAAM,CAAC,UAAU,CAAC,WAAW,EAAE,WAAW,GAAG,YAAY;CAuC1D"}
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
import { EncryptionAlgorithmMapper } from "./EncryptionAlgorithmMapper.js";
|
|
17
|
+
export class MessageLinkPreviewMapper {
|
|
18
|
+
static fromProtobuf(linkPreview) {
|
|
19
|
+
const hasImage = linkPreview.image != null;
|
|
20
|
+
return {
|
|
21
|
+
summary: linkPreview.summary ?? null,
|
|
22
|
+
title: linkPreview.title ?? null,
|
|
23
|
+
url: linkPreview.url,
|
|
24
|
+
urlOffset: linkPreview.urlOffset ?? 0,
|
|
25
|
+
permanentUrl: linkPreview.permanentUrl ?? null,
|
|
26
|
+
image: hasImage
|
|
27
|
+
? {
|
|
28
|
+
mimeType: linkPreview.image?.original?.mimeType ?? '*/*',
|
|
29
|
+
assetDataSize: linkPreview.image?.original?.size ?? 0,
|
|
30
|
+
assetName: linkPreview.image?.original?.name ?? null,
|
|
31
|
+
assetHeight: linkPreview.image?.original?.image?.height ?? 0,
|
|
32
|
+
assetWidth: linkPreview.image?.original?.image?.width ?? 0,
|
|
33
|
+
assetDataPath: null,
|
|
34
|
+
assetToken: linkPreview.image?.uploaded?.assetToken ?? null,
|
|
35
|
+
assetDomain: linkPreview.image?.uploaded?.assetDomain ?? null,
|
|
36
|
+
assetKey: linkPreview.image?.uploaded?.assetId ?? null,
|
|
37
|
+
metadata: null,
|
|
38
|
+
otrKey: linkPreview.image?.uploaded?.otrKey ?? new Uint8Array(0),
|
|
39
|
+
sha256Key: linkPreview.image?.uploaded?.sha256 ?? new Uint8Array(0),
|
|
40
|
+
encryptionAlgorithm: EncryptionAlgorithmMapper.fromProtobufModel(linkPreview.image?.uploaded?.encryption)
|
|
41
|
+
} : null
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
static toProtobuf(linkPreview) {
|
|
45
|
+
const result = {
|
|
46
|
+
url: linkPreview.url,
|
|
47
|
+
urlOffset: linkPreview.urlOffset,
|
|
48
|
+
permanentUrl: linkPreview.permanentUrl ?? null,
|
|
49
|
+
title: linkPreview.title ?? null,
|
|
50
|
+
summary: linkPreview.summary ?? null
|
|
51
|
+
};
|
|
52
|
+
if (linkPreview.image) {
|
|
53
|
+
const image = linkPreview.image;
|
|
54
|
+
const original = {
|
|
55
|
+
size: image.assetDataSize,
|
|
56
|
+
mimeType: image.mimeType,
|
|
57
|
+
image: {
|
|
58
|
+
width: image.assetWidth,
|
|
59
|
+
height: image.assetHeight,
|
|
60
|
+
},
|
|
61
|
+
name: image.assetName ?? null
|
|
62
|
+
};
|
|
63
|
+
const uploaded = {
|
|
64
|
+
otrKey: image.otrKey,
|
|
65
|
+
sha256: image.sha256Key,
|
|
66
|
+
assetId: image.assetKey ?? null,
|
|
67
|
+
assetToken: image.assetToken ?? null,
|
|
68
|
+
assetDomain: image.assetDomain ?? null,
|
|
69
|
+
encryption: EncryptionAlgorithmMapper.toProtobufModel(image.encryptionAlgorithm)
|
|
70
|
+
};
|
|
71
|
+
result.image = {
|
|
72
|
+
original,
|
|
73
|
+
uploaded
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
return result;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=MessageLinkPreviewMapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageLinkPreviewMapper.js","sourceRoot":"","sources":["../../../src/mappers/protobuf/MessageLinkPreviewMapper.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IMention } from "../../generated/messages.js";
|
|
2
|
+
import type { Mention } from "../../model/WireMessage.js";
|
|
3
|
+
export declare class MessageMentionMapper {
|
|
4
|
+
static fromProtobuf(mention: IMention): Mention | null;
|
|
5
|
+
static toProtobuf(mention: Mention): IMention;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=MessageMentionMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageMentionMapper.d.ts","sourceRoot":"","sources":["../../../src/mappers/protobuf/MessageMentionMapper.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAE1D,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAC;AAExD,qBAAa,oBAAoB;IAC/B,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,GAAG,IAAI;IAWtD,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ;CAU9C"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
import { QualifiedId } from "../../model/QualifiedId.js";
|
|
17
|
+
export class MessageMentionMapper {
|
|
18
|
+
static fromProtobuf(mention) {
|
|
19
|
+
if (!mention.qualifiedUserId?.id || !mention.qualifiedUserId?.domain) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
userId: new QualifiedId(mention.qualifiedUserId.id, mention.qualifiedUserId.domain),
|
|
24
|
+
offset: mention.start,
|
|
25
|
+
length: mention.length,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static toProtobuf(mention) {
|
|
29
|
+
return {
|
|
30
|
+
qualifiedUserId: {
|
|
31
|
+
id: mention.userId.id,
|
|
32
|
+
domain: mention.userId.domain
|
|
33
|
+
},
|
|
34
|
+
start: mention.offset,
|
|
35
|
+
length: mention.length
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=MessageMentionMapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageMentionMapper.js","sourceRoot":"","sources":["../../../src/mappers/protobuf/MessageMentionMapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;EAcE;AAGF,OAAO,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AAGvD,MAAM,OAAO,oBAAoB;IAC/B,MAAM,CAAC,YAAY,CAAC,OAAiB;QACnC,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,MAAM,EAAE,CAAC;YACrE,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO;YACL,MAAM,EAAE,IAAI,WAAW,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,EAAE,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC;YACnF,MAAM,EAAE,OAAO,CAAC,KAAK;YACrB,MAAM,EAAE,OAAO,CAAC,MAAM;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,OAAgB;QAChC,OAAO;YACL,eAAe,EAAE;gBACf,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE;gBACrB,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM;aAC9B;YACD,KAAK,EAAE,OAAO,CAAC,MAAM;YACrB,MAAM,EAAE,OAAO,CAAC,MAAM;SACvB,CAAA;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { QualifiedId } from "../../model/QualifiedId.js";
|
|
2
|
+
import type { WireMessage } from "../../model/WireMessage.js";
|
|
3
|
+
/**
|
|
4
|
+
* Utility object responsible for mapping a GenericMessage to WireMessage
|
|
5
|
+
*/
|
|
6
|
+
export declare const ProtobufDeserializer: {
|
|
7
|
+
/**
|
|
8
|
+
* Converts a GenericMessage to a WireMessage
|
|
9
|
+
*/
|
|
10
|
+
toWireMessage: (message: Uint8Array, qualifiedConversation: QualifiedId, senderId: QualifiedId, timestamp: Date) => WireMessage;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=ProtobufDeserializer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProtobufDeserializer.d.ts","sourceRoot":"","sources":["../../../src/mappers/protobuf/ProtobufDeserializer.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,KAAK,EACV,WAAW,EAOZ,MAAM,4BAA4B,CAAC;AAuBpC;;GAEG;AACH,eAAO,MAAM,oBAAoB;IAC/B;;OAEG;6BAEQ,UAAU,yBACI,WAAW,YACxB,WAAW,aACV,IAAI,KACd,WAAW;CAuCf,CAAA"}
|