@wireapp/core 46.4.0 → 46.4.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.
@@ -1 +1 @@
1
- {"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../src/Account.ts"],"names":[],"mappings":"AAmBA,OAAO,EACL,YAAY,EAGZ,OAAO,EACP,MAAM,EAEN,SAAS,EAEV,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAuB,UAAU,EAAE,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEnG,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AASxD,OAAO,EAAC,SAAS,EAAE,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAC,UAAU,EAAe,MAAM,uBAAuB,CAAC;AAE/D,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,WAAW,CAAC;AACpD,OAAO,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAChD,OAAO,EAAC,YAAY,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAElE,OAAO,EAAC,sBAAsB,EAAC,MAAM,8DAA8D,CAAC;AACpG,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AACtC,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,EAAC,iBAAiB,EAAE,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAMvE,OAAO,EAAC,mBAAmB,EAAO,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,iEAAiE,CAAC;AACjG,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAC,MAAM,gCAAgC,CAA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Ac;IAKtB,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,uBAAuB;YAIjB,UAAU;IAuBxB,OAAO,CAAC,yBAAyB,CAS/B;CACH"}
package/lib/Account.js CHANGED
@@ -461,7 +461,7 @@ class Account extends commons_1.TypedEventEmitter {
461
461
  onNotificationStreamProgress(progress);
462
462
  }, handleMissedNotifications, abortHandler);
463
463
  this.logger.info(`Finished processing notifications ${JSON.stringify(results)}`, results);
464
- if (abortHandler.isAborted()) {
464
+ if (abortHandler.signal.aborted) {
465
465
  this.logger.warn('Ending connection process as websocket was closed');
466
466
  return;
467
467
  }
@@ -44,31 +44,31 @@ export declare class AcmeService {
44
44
  };
45
45
  expires: string;
46
46
  challenges: {
47
- type: string;
48
- url: string;
49
- target: string;
50
47
  status: string;
48
+ url: string;
49
+ type: string;
51
50
  token: string;
51
+ target: string;
52
52
  }[];
53
53
  }>>;
54
54
  validateDpopChallenge(url: AcmeChallenge['url'], payload: Uint8Array): Promise<PostJoseRequestReturnValue<{
55
- type: string;
56
- url: string;
57
- target: string;
58
55
  status: string;
56
+ url: string;
57
+ type: string;
59
58
  token: string;
59
+ target: string;
60
60
  }>>;
61
61
  validateOidcChallenge(url: AcmeChallenge['url'], payload: Uint8Array): Promise<PostJoseRequestReturnValue<{
62
- type: string;
63
- url: string;
64
- target: string;
65
62
  status: string;
63
+ url: string;
64
+ type: string;
66
65
  token: string;
66
+ target: string;
67
+ validated?: string | undefined;
67
68
  error?: {
68
69
  type: string;
69
70
  detail: string;
70
71
  } | undefined;
71
- validated?: string | undefined;
72
72
  }>>;
73
73
  checkStatusOfOrder(url: string, payload: Uint8Array): Promise<PostJoseRequestReturnValue<{
74
74
  id: string;
@@ -85,7 +85,6 @@ export declare class AcmeService {
85
85
  }>>;
86
86
  finalizeOrder(url: string, payload: Uint8Array): Promise<PostJoseRequestReturnValue<{
87
87
  id: string;
88
- certificate: string;
89
88
  status: string;
90
89
  authorizations: string[];
91
90
  expires: string;
@@ -96,6 +95,7 @@ export declare class AcmeService {
96
95
  value: string;
97
96
  }[];
98
97
  finalize: string;
98
+ certificate: string;
99
99
  }>>;
100
100
  getCertificate(url: string, payload: Uint8Array): Promise<PostJoseRequestReturnValue<string>>;
101
101
  }
@@ -122,17 +122,17 @@ export declare const AuthorizationResponseSchema: z.ZodObject<{
122
122
  token: z.ZodString;
123
123
  target: z.ZodString;
124
124
  }, "strip", z.ZodTypeAny, {
125
- type: string;
126
- url: string;
127
- target: string;
128
125
  status: string;
129
- token: string;
130
- }, {
131
- type: string;
132
126
  url: string;
127
+ type: string;
128
+ token: string;
133
129
  target: string;
130
+ }, {
134
131
  status: string;
132
+ url: string;
133
+ type: string;
135
134
  token: string;
135
+ target: string;
136
136
  }>, "many">;
137
137
  }, "strip", z.ZodTypeAny, {
138
138
  status: string;
@@ -142,11 +142,11 @@ export declare const AuthorizationResponseSchema: z.ZodObject<{
142
142
  };
143
143
  expires: string;
144
144
  challenges: {
145
- type: string;
146
- url: string;
147
- target: string;
148
145
  status: string;
146
+ url: string;
147
+ type: string;
149
148
  token: string;
149
+ target: string;
150
150
  }[];
151
151
  }, {
152
152
  status: string;
@@ -156,11 +156,11 @@ export declare const AuthorizationResponseSchema: z.ZodObject<{
156
156
  };
157
157
  expires: string;
158
158
  challenges: {
159
- type: string;
160
- url: string;
161
- target: string;
162
159
  status: string;
160
+ url: string;
161
+ type: string;
163
162
  token: string;
163
+ target: string;
164
164
  }[];
165
165
  }>;
166
166
  export type AuthorizationResponseData = z.infer<typeof AuthorizationResponseSchema>;
@@ -171,17 +171,17 @@ export declare const DpopChallengeResponseSchema: z.ZodObject<{
171
171
  token: z.ZodString;
172
172
  target: z.ZodString;
173
173
  }, "strip", z.ZodTypeAny, {
174
- type: string;
175
- url: string;
176
- target: string;
177
174
  status: string;
178
- token: string;
179
- }, {
180
- type: string;
181
175
  url: string;
176
+ type: string;
177
+ token: string;
182
178
  target: string;
179
+ }, {
183
180
  status: string;
181
+ url: string;
182
+ type: string;
184
183
  token: string;
184
+ target: string;
185
185
  }>;
186
186
  export type DpopChallengeResponseData = z.infer<typeof DpopChallengeResponseSchema>;
187
187
  export declare const OidcChallengeResponseSchema: z.ZodObject<{
@@ -202,27 +202,27 @@ export declare const OidcChallengeResponseSchema: z.ZodObject<{
202
202
  detail: string;
203
203
  }>>;
204
204
  }, "strip", z.ZodTypeAny, {
205
- type: string;
206
- url: string;
207
- target: string;
208
205
  status: string;
206
+ url: string;
207
+ type: string;
209
208
  token: string;
209
+ target: string;
210
+ validated?: string | undefined;
210
211
  error?: {
211
212
  type: string;
212
213
  detail: string;
213
214
  } | undefined;
214
- validated?: string | undefined;
215
215
  }, {
216
- type: string;
217
- url: string;
218
- target: string;
219
216
  status: string;
217
+ url: string;
218
+ type: string;
220
219
  token: string;
220
+ target: string;
221
+ validated?: string | undefined;
221
222
  error?: {
222
223
  type: string;
223
224
  detail: string;
224
225
  } | undefined;
225
- validated?: string | undefined;
226
226
  }>;
227
227
  export type OidcChallengeResponseData = z.infer<typeof OidcChallengeResponseSchema>;
228
228
  export declare const CheckStatusOfOrderResponseSchema: z.ZodObject<{
@@ -290,7 +290,6 @@ export declare const FinalizeOrderResponseSchema: z.ZodObject<{
290
290
  certificate: z.ZodString;
291
291
  }, "strip", z.ZodTypeAny, {
292
292
  id: string;
293
- certificate: string;
294
293
  status: string;
295
294
  authorizations: string[];
296
295
  expires: string;
@@ -301,9 +300,9 @@ export declare const FinalizeOrderResponseSchema: z.ZodObject<{
301
300
  value: string;
302
301
  }[];
303
302
  finalize: string;
303
+ certificate: string;
304
304
  }, {
305
305
  id: string;
306
- certificate: string;
307
306
  status: string;
308
307
  authorizations: string[];
309
308
  expires: string;
@@ -314,6 +313,7 @@ export declare const FinalizeOrderResponseSchema: z.ZodObject<{
314
313
  value: string;
315
314
  }[];
316
315
  finalize: string;
316
+ certificate: string;
317
317
  }>;
318
318
  export type FinalizeOrderResponseData = z.infer<typeof FinalizeOrderResponseSchema>;
319
319
  export declare const GetCertificateResponseSchema: z.ZodString;
@@ -1,9 +1,9 @@
1
1
  import { DoWireDpopChallengeParams } from './DpopChallenge.types';
2
2
  export declare const doWireDpopChallenge: ({ apiClient, clientId, authData, identity, nonce, connection, expirySecs, }: DoWireDpopChallengeParams) => Promise<import("../../Connection/AcmeServer/AcmeService.types").PostJoseRequestReturnValue<{
3
- type: string;
4
- url: string;
5
- target: string;
6
3
  status: string;
4
+ url: string;
5
+ type: string;
7
6
  token: string;
7
+ target: string;
8
8
  }>>;
9
9
  //# sourceMappingURL=DpopChallenge.d.ts.map
@@ -9,16 +9,16 @@ interface DoWireOidcChallengeParams {
9
9
  oAuthIdToken: string;
10
10
  }
11
11
  export declare const doWireOidcChallenge: ({ connection, authData, identity, nonce, oAuthIdToken, }: DoWireOidcChallengeParams) => Promise<import("../Connection/AcmeServer/AcmeService.types").PostJoseRequestReturnValue<{
12
- type: string;
13
- url: string;
14
- target: string;
15
12
  status: string;
13
+ url: string;
14
+ type: string;
16
15
  token: string;
16
+ target: string;
17
+ validated?: string | undefined;
17
18
  error?: {
18
19
  type: string;
19
20
  detail: string;
20
21
  } | undefined;
21
- validated?: string | undefined;
22
22
  }>>;
23
23
  export {};
24
24
  //# sourceMappingURL=OidcChallenge.d.ts.map
@@ -11,36 +11,36 @@ export declare const InitialDataSchema: z.ZodObject<{
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  id: string;
13
13
  domain: string;
14
- handle: string;
15
14
  displayName: string;
15
+ handle: string;
16
16
  teamId: string;
17
17
  }, {
18
18
  id: string;
19
19
  domain: string;
20
- handle: string;
21
20
  displayName: string;
21
+ handle: string;
22
22
  teamId: string;
23
23
  }>;
24
24
  }, "strip", z.ZodTypeAny, {
25
+ clientId: string;
26
+ discoveryUrl: string;
25
27
  user: {
26
28
  id: string;
27
29
  domain: string;
28
- handle: string;
29
30
  displayName: string;
31
+ handle: string;
30
32
  teamId: string;
31
33
  };
34
+ }, {
32
35
  clientId: string;
33
36
  discoveryUrl: string;
34
- }, {
35
37
  user: {
36
38
  id: string;
37
39
  domain: string;
38
- handle: string;
39
40
  displayName: string;
41
+ handle: string;
40
42
  teamId: string;
41
43
  };
42
- clientId: string;
43
- discoveryUrl: string;
44
44
  }>;
45
45
  export type InitialData = z.infer<typeof InitialDataSchema>;
46
46
  export declare const EnrollmentFlowDataSchema: z.ZodObject<{
@@ -54,12 +54,12 @@ export declare const EnrollmentFlowDataSchema: z.ZodObject<{
54
54
  target: z.ZodString;
55
55
  }, "strip", z.ZodTypeAny, {
56
56
  url: string;
57
- target: string;
58
57
  delegate: Uint8Array;
58
+ target: string;
59
59
  }, {
60
60
  url: string;
61
- target: string;
62
61
  delegate: Uint8Array;
62
+ target: string;
63
63
  }>;
64
64
  oidcChallenge: z.ZodObject<{
65
65
  delegate: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
@@ -67,73 +67,73 @@ export declare const EnrollmentFlowDataSchema: z.ZodObject<{
67
67
  target: z.ZodString;
68
68
  }, "strip", z.ZodTypeAny, {
69
69
  url: string;
70
- target: string;
71
70
  delegate: Uint8Array;
71
+ target: string;
72
72
  }, {
73
73
  url: string;
74
- target: string;
75
74
  delegate: Uint8Array;
75
+ target: string;
76
76
  }>;
77
77
  }, "strip", z.ZodTypeAny, {
78
78
  keyauth: string;
79
79
  dpopChallenge: {
80
80
  url: string;
81
- target: string;
82
81
  delegate: Uint8Array;
82
+ target: string;
83
83
  };
84
84
  oidcChallenge: {
85
85
  url: string;
86
- target: string;
87
86
  delegate: Uint8Array;
87
+ target: string;
88
88
  };
89
89
  }, {
90
90
  keyauth: string;
91
91
  dpopChallenge: {
92
92
  url: string;
93
- target: string;
94
93
  delegate: Uint8Array;
94
+ target: string;
95
95
  };
96
96
  oidcChallenge: {
97
97
  url: string;
98
- target: string;
99
98
  delegate: Uint8Array;
99
+ target: string;
100
100
  };
101
101
  }>;
102
102
  nonce: z.ZodString;
103
103
  }, "strip", z.ZodTypeAny, {
104
- nonce: string;
105
104
  handle: Uint8Array;
106
105
  orderUrl: string;
107
106
  authorization: {
108
107
  keyauth: string;
109
108
  dpopChallenge: {
110
109
  url: string;
111
- target: string;
112
110
  delegate: Uint8Array;
111
+ target: string;
113
112
  };
114
113
  oidcChallenge: {
115
114
  url: string;
116
- target: string;
117
115
  delegate: Uint8Array;
116
+ target: string;
118
117
  };
119
118
  };
120
- }, {
121
119
  nonce: string;
120
+ }, {
122
121
  handle: Uint8Array;
123
122
  orderUrl: string;
124
123
  authorization: {
125
124
  keyauth: string;
126
125
  dpopChallenge: {
127
126
  url: string;
128
- target: string;
129
127
  delegate: Uint8Array;
128
+ target: string;
130
129
  };
131
130
  oidcChallenge: {
132
131
  url: string;
133
- target: string;
134
132
  delegate: Uint8Array;
133
+ target: string;
135
134
  };
136
135
  };
136
+ nonce: string;
137
137
  }>;
138
138
  export type EnrollmentFlowData = z.infer<typeof EnrollmentFlowDataSchema>;
139
139
  export type UnidentifiedEnrollmentFlowData = Omit<EnrollmentFlowData, 'handle'>;
@@ -3,7 +3,7 @@ import { APIClient } from '@wireapp/api-client';
3
3
  export declare class NotificationBackendRepository {
4
4
  private readonly apiClient;
5
5
  constructor(apiClient: APIClient);
6
- getAllNotifications(clientId?: string, lastNotificationId?: string): Promise<{
6
+ getAllNotifications(clientId?: string, lastNotificationId?: string, abortController?: AbortController): Promise<{
7
7
  notifications: Notification[];
8
8
  missedNotification?: string;
9
9
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationBackendRepository.d.ts","sourceRoot":"","sources":["../../src/notification/NotificationBackendRepository.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAC,MAAM,uCAAuC,CAAC;AAEnE,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAE9C,qBAAa,6BAA6B;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAEpC,mBAAmB,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM;;;;IAIxE,mBAAmB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAGrE"}
1
+ {"version":3,"file":"NotificationBackendRepository.d.ts","sourceRoot":"","sources":["../../src/notification/NotificationBackendRepository.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAC,MAAM,uCAAuC,CAAC;AAEnE,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAE9C,qBAAa,6BAA6B;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAEpC,mBAAmB,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,eAAe;;;;IAI3G,mBAAmB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAGrE"}
@@ -24,8 +24,8 @@ class NotificationBackendRepository {
24
24
  constructor(apiClient) {
25
25
  this.apiClient = apiClient;
26
26
  }
27
- async getAllNotifications(clientId, lastNotificationId) {
28
- return this.apiClient.api.notification.getAllNotifications(clientId, lastNotificationId);
27
+ async getAllNotifications(clientId, lastNotificationId, abortController) {
28
+ return this.apiClient.api.notification.getAllNotifications(clientId, lastNotificationId, abortController);
29
29
  }
30
30
  getLastNotification(clientId) {
31
31
  return this.apiClient.api.notification.getLastNotification(clientId);
@@ -1,6 +1,5 @@
1
1
  import { BackendEvent } from '@wireapp/api-client/lib/event';
2
2
  import { Notification } from '@wireapp/api-client/lib/notification/';
3
- import { AbortHandler } from '@wireapp/api-client/lib/tcp';
4
3
  import { APIClient } from '@wireapp/api-client';
5
4
  import { TypedEventEmitter } from '@wireapp/commons';
6
5
  import { GenericMessage } from '@wireapp/protocol-messaging';
@@ -56,7 +55,7 @@ export declare class NotificationService extends TypedEventEmitter<Events> {
56
55
  getNotificationEventList(): Promise<BackendEvent[]>;
57
56
  setLastEventDate(eventDate: Date): Promise<Date>;
58
57
  private setLastNotificationId;
59
- processNotificationStream(notificationHandler: NotificationHandler, onMissedNotifications: (notificationId: string) => void, abortHandler: AbortHandler): Promise<{
58
+ processNotificationStream(notificationHandler: NotificationHandler, onMissedNotifications: (notificationId: string) => void, abortHandler: AbortController): Promise<{
60
59
  total: number;
61
60
  error: number;
62
61
  success: number;
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationService.d.ts","sourceRoot":"","sources":["../../src/notification/NotificationService.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,YAAY,EAAC,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AAGzD,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAC,cAAc,EAAC,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAC,UAAU,EAA4B,MAAM,uBAAuB,CAAC;AAI5E,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAC,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAY,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,MAAM,MAAM,mBAAmB,GAAG;IAChC,0CAA0C;IAC1C,KAAK,EAAE,YAAY,CAAC;IACpB,kEAAkE;IAClE,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,8FAA8F;IAC9F,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAC1B;IAAC,MAAM,EAAE,WAAW,CAAA;CAAC,GACrB;IAAC,MAAM,EAAE,SAAS,CAAA;CAAC,GACnB;IAAC,MAAM,E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Ae,GAC5B,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAAC;IAoC3D;;;;;;;OAOG;IACH,OAAO,CAAC,eAAe;IAYT,kBAAkB,CAC9B,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,kBAAkB,EAC1B,MAAM,GAAE,OAAe,GACtB,cAAc,CAAC,mBAAmB,CAAC;IAmCtC;;;;;OAKG;YACW,WAAW;CAc1B"}
@@ -50,9 +50,9 @@ class NotificationService extends commons_1.TypedEventEmitter {
50
50
  this.backend = new NotificationBackendRepository_1.NotificationBackendRepository(this.apiClient);
51
51
  this.database = new NotificationDatabaseRepository_1.NotificationDatabaseRepository(storeEngine);
52
52
  }
53
- async getAllNotifications(since) {
53
+ async getAllNotifications(since, abortController) {
54
54
  const clientId = this.apiClient.clientId;
55
- return this.backend.getAllNotifications(clientId, since);
55
+ return this.backend.getAllNotifications(clientId, since, abortController);
56
56
  }
57
57
  /** Should only be called with a completely new client. */
58
58
  async initializeNotificationStream(clientId) {
@@ -89,7 +89,7 @@ class NotificationService extends commons_1.TypedEventEmitter {
89
89
  }
90
90
  async processNotificationStream(notificationHandler, onMissedNotifications, abortHandler) {
91
91
  const lastNotificationId = await this.database.getLastNotificationId();
92
- const { notifications, missedNotification } = await this.getAllNotifications(lastNotificationId);
92
+ const { notifications, missedNotification } = await this.getAllNotifications(lastNotificationId, abortHandler);
93
93
  if (missedNotification) {
94
94
  onMissedNotifications(missedNotification);
95
95
  }
@@ -99,7 +99,7 @@ class NotificationService extends commons_1.TypedEventEmitter {
99
99
  : `No notification to process from the stream`;
100
100
  this.logger.log(logMessage);
101
101
  for (const [index, notification] of notifications.entries()) {
102
- if (abortHandler.isAborted()) {
102
+ if (abortHandler.signal.aborted) {
103
103
  /* Stop handling notifications if the websocket has been disconnected.
104
104
  * Upon reconnecting we are going to restart handling the notification stream for where we left of
105
105
  */
@@ -5,11 +5,11 @@ export declare class UserService {
5
5
  private readonly apiClient;
6
6
  constructor(apiClient: APIClient);
7
7
  getUser(userId: string | QualifiedId): Promise<User>;
8
- getUsers(userIds: QualifiedId[]): Promise<{
8
+ getUsers(userIds: QualifiedId[]): Promise<never[] | {
9
9
  found: User[];
10
10
  failed?: QualifiedId[];
11
11
  not_found?: QualifiedId[];
12
- } | never[]>;
12
+ }>;
13
13
  /**
14
14
  * Get the list of other user's supported protocols.
15
15
  */
package/package.json CHANGED
@@ -11,16 +11,16 @@
11
11
  "./lib/cryptography/AssetCryptography/crypto.node": "./lib/cryptography/AssetCryptography/crypto.browser.js"
12
12
  },
13
13
  "dependencies": {
14
- "@wireapp/api-client": "^27.6.0",
15
- "@wireapp/commons": "^5.2.10",
14
+ "@wireapp/api-client": "^27.6.2",
15
+ "@wireapp/commons": "^5.2.13",
16
16
  "@wireapp/core-crypto": "1.0.2",
17
17
  "@wireapp/cryptobox": "12.8.0",
18
- "@wireapp/priority-queue": "^2.1.8",
19
- "@wireapp/promise-queue": "^2.3.5",
18
+ "@wireapp/priority-queue": "^2.1.11",
19
+ "@wireapp/promise-queue": "^2.3.8",
20
20
  "@wireapp/protocol-messaging": "1.50.0",
21
- "@wireapp/store-engine": "5.1.8",
21
+ "@wireapp/store-engine": "5.1.11",
22
22
  "axios": "1.7.7",
23
- "bazinga64": "^6.3.8",
23
+ "bazinga64": "^6.3.11",
24
24
  "deepmerge-ts": "6.0.0",
25
25
  "hash.js": "1.1.7",
26
26
  "http-status-codes": "2.3.0",
@@ -36,7 +36,6 @@
36
36
  "@swc/jest": "^0.2.23",
37
37
  "@types/jest": "^29.2.0",
38
38
  "@types/long": "^5.0.0",
39
- "@types/rimraf": "4.0.5",
40
39
  "@types/tough-cookie": "4.0.5",
41
40
  "@types/uuid": "9.0.8",
42
41
  "commander": "12.1.0",
@@ -62,6 +61,6 @@
62
61
  "test:coverage": "jest --coverage",
63
62
  "watch": "tsc --watch"
64
63
  },
65
- "version": "46.4.0",
66
- "gitHead": "71e7ff9d92067f0c0d275d0f5b47f9b6d31dd776"
64
+ "version": "46.4.2",
65
+ "gitHead": "a2d0cafbe2a9adcc34ae62e2f94e27ccf0709cfa"
67
66
  }