@wireapp/core 30.7.0 → 30.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [30.7.2](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@30.7.1...@wireapp/core@30.7.2) (2022-09-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @wireapp/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [30.7.1](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@30.7.0...@wireapp/core@30.7.1) (2022-09-14)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* fix demo type errors ([#4393](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/issues/4393)) ([65b4a86](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/commit/65b4a86e72f7c1ef04bc48470548824a375d2890))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [30.7.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@30.6.1...@wireapp/core@30.7.0) (2022-09-14)
|
|
7
26
|
|
|
8
27
|
|
package/package.json
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
},
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@open-wc/webpack-import-meta-loader": "0.4.7",
|
|
7
|
-
"@otak/core-crypto": "0.3.0-es2017",
|
|
8
7
|
"@types/long": "4.0.1",
|
|
9
8
|
"@types/node": "~14",
|
|
10
9
|
"@wireapp/api-client": "20.3.1",
|
|
11
10
|
"@wireapp/commons": "4.3.0",
|
|
11
|
+
"@wireapp/core-crypto": "0.4.0",
|
|
12
12
|
"@wireapp/cryptobox": "12.8.0",
|
|
13
13
|
"@wireapp/store-engine-dexie": "1.6.10",
|
|
14
14
|
"bazinga64": "5.10.0",
|
|
@@ -77,6 +77,6 @@
|
|
|
77
77
|
"test:node": "nyc jasmine --config=jasmine.json",
|
|
78
78
|
"watch": "tsc ---watch"
|
|
79
79
|
},
|
|
80
|
-
"version": "30.7.
|
|
81
|
-
"gitHead": "
|
|
80
|
+
"version": "30.7.2",
|
|
81
|
+
"gitHead": "5c05f4c0eea63367bf61f725fbba5860dd909d0e"
|
|
82
82
|
}
|
package/src/main/Account.js
CHANGED
|
@@ -144,12 +144,14 @@ class Account extends events_1.EventEmitter {
|
|
|
144
144
|
// Assumption: client gets only initialized once
|
|
145
145
|
if (initClient) {
|
|
146
146
|
await this.initClient({ clientType });
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
147
|
+
if (this.mlsConfig) {
|
|
148
|
+
// initialize schedulers for pending mls proposals once client is initialized
|
|
149
|
+
await ((_a = this.service) === null || _a === void 0 ? void 0 : _a.notification.checkExistingPendingProposals());
|
|
150
|
+
// initialize schedulers for renewing key materials
|
|
151
|
+
await ((_b = this.service) === null || _b === void 0 ? void 0 : _b.notification.checkForKeyMaterialsUpdate());
|
|
152
|
+
// initialize scheduler for syncing key packages with backend
|
|
153
|
+
await ((_c = this.service) === null || _c === void 0 ? void 0 : _c.notification.checkForKeyPackagesBackendSync());
|
|
154
|
+
}
|
|
153
155
|
}
|
|
154
156
|
return context;
|
|
155
157
|
}
|
|
@@ -280,7 +282,7 @@ class Account extends events_1.EventEmitter {
|
|
|
280
282
|
throw new Error('Services are not set.');
|
|
281
283
|
}
|
|
282
284
|
const coreCryptoKeyId = 'corecrypto-key';
|
|
283
|
-
const { CoreCrypto } = await Promise.resolve().then(() => __importStar(require('@
|
|
285
|
+
const { CoreCrypto } = await Promise.resolve().then(() => __importStar(require('@wireapp/core-crypto')));
|
|
284
286
|
const dbName = this.generateSecretsDbName(context);
|
|
285
287
|
const secretStore = mlsConfig.secretsCrypto
|
|
286
288
|
? await (0, encryptedStore_1.createCustomEncryptedStore)(dbName, mlsConfig.secretsCrypto)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddProposalArgs, CommitBundle, ConversationConfiguration, ConversationId, CoreCrypto, DecryptedMessage, ExternalProposalArgs, ExternalProposalType, ExternalRemoveProposalArgs, Invitee, ProposalArgs, ProposalType, RemoveProposalArgs } from '@
|
|
1
|
+
import { AddProposalArgs, CommitBundle, ConversationConfiguration, ConversationId, CoreCrypto, DecryptedMessage, ExternalProposalArgs, ExternalProposalType, ExternalRemoveProposalArgs, Invitee, ProposalArgs, ProposalType, RemoveProposalArgs } from '@wireapp/core-crypto/platforms/web/corecrypto';
|
|
2
2
|
import { APIClient } from '@wireapp/api-client';
|
|
3
3
|
import { QualifiedUsers } from '../../conversation';
|
|
4
4
|
import type { MLSConfig } from '../types';
|
|
@@ -13,7 +13,7 @@ export declare class MLSService {
|
|
|
13
13
|
private uploadCommitBundle;
|
|
14
14
|
addUsersToExistingConversation(groupIdDecodedFromBase64: Uint8Array, invitee: Invitee[]): Promise<PostMlsMessageResponse | null>;
|
|
15
15
|
getKeyPackagesPayload(qualifiedUsers: QualifiedUsers[]): Promise<Invitee[]>;
|
|
16
|
-
newProposal(proposalType: ProposalType, args: ProposalArgs | AddProposalArgs | RemoveProposalArgs): Promise<
|
|
16
|
+
newProposal(proposalType: ProposalType, args: ProposalArgs | AddProposalArgs | RemoveProposalArgs): Promise<import("@wireapp/core-crypto/platforms/web/corecrypto").ProposalBundle>;
|
|
17
17
|
newExternalProposal(externalProposalType: ExternalProposalType, args: ExternalProposalArgs | ExternalRemoveProposalArgs): Promise<Uint8Array>;
|
|
18
18
|
processWelcomeMessage(welcomeMessage: Uint8Array): Promise<ConversationId>;
|
|
19
19
|
decryptMessage(conversationId: ConversationId, payload: Uint8Array): Promise<DecryptedMessage>;
|