@wireapp/api-client 16.8.0 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/package.json +2 -2
- package/src/APIClient.d.ts +31 -77
- package/src/APIClient.js +34 -79
- package/src/APIClient.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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
|
+
# [17.0.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/api-client/compare/@wireapp/api-client@16.8.0...@wireapp/api-client@17.0.0) (2022-02-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Code Refactoring
|
|
10
|
+
|
|
11
|
+
* **api-client:** Move all the specific apis to an `api` namespace of the ApiClient ([#4228](https://github.com/wireapp/wire-web-packages/tree/main/packages/api-client/issues/4228)) ([d18b348](https://github.com/wireapp/wire-web-packages/tree/main/packages/api-client/commit/d18b34841822eea20114d99db67dc376b1311f15))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **api-client:** All the specific api accessible from the apiClient have moved from `apiClient.<specificApi>.api` to `apiClient.api.<specificApi>` (eg. `apiClient.user.api` needs to be replaced with `apiClient.api.user`)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [16.8.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/api-client/compare/@wireapp/api-client@16.7.0...@wireapp/api-client@16.8.0) (2022-02-17)
|
|
7
23
|
|
|
8
24
|
|
package/package.json
CHANGED
package/src/APIClient.d.ts
CHANGED
|
@@ -30,85 +30,38 @@ export interface APIClient {
|
|
|
30
30
|
on(event: TOPIC.COOKIE_REFRESH, listener: (cookie?: Cookie) => void): this;
|
|
31
31
|
on(event: TOPIC.ACCESS_TOKEN_REFRESH, listener: (accessToken: AccessTokenData) => void): this;
|
|
32
32
|
}
|
|
33
|
+
declare type Apis = {
|
|
34
|
+
account: AccountAPI;
|
|
35
|
+
asset: AssetAPI;
|
|
36
|
+
auth: AuthAPI;
|
|
37
|
+
broadcast: BroadcastAPI;
|
|
38
|
+
client: ClientAPI;
|
|
39
|
+
connection: ConnectionAPI;
|
|
40
|
+
conversation: ConversationAPI;
|
|
41
|
+
giphy: GiphyAPI;
|
|
42
|
+
notification: NotificationAPI;
|
|
43
|
+
self: SelfAPI;
|
|
44
|
+
services: ServicesAPI;
|
|
45
|
+
serviceProvider: ServiceProviderAPI;
|
|
46
|
+
teams: {
|
|
47
|
+
conversation: TeamConversationAPI;
|
|
48
|
+
feature: FeatureAPI;
|
|
49
|
+
identityProvider: IdentityProviderAPI;
|
|
50
|
+
invitation: TeamInvitationAPI;
|
|
51
|
+
legalhold: LegalHoldAPI;
|
|
52
|
+
member: MemberAPI;
|
|
53
|
+
payment: PaymentAPI;
|
|
54
|
+
billing: BillingAPI;
|
|
55
|
+
scim: ScimAPI;
|
|
56
|
+
search: TeamSearchAPI;
|
|
57
|
+
service: ServiceAPI;
|
|
58
|
+
team: TeamAPI;
|
|
59
|
+
};
|
|
60
|
+
user: UserAPI;
|
|
61
|
+
};
|
|
33
62
|
export declare class APIClient extends EventEmitter {
|
|
34
63
|
private readonly logger;
|
|
35
|
-
|
|
36
|
-
api: AccountAPI;
|
|
37
|
-
};
|
|
38
|
-
asset: {
|
|
39
|
-
api: AssetAPI;
|
|
40
|
-
};
|
|
41
|
-
auth: {
|
|
42
|
-
api: AuthAPI;
|
|
43
|
-
};
|
|
44
|
-
broadcast: {
|
|
45
|
-
api: BroadcastAPI;
|
|
46
|
-
};
|
|
47
|
-
client: {
|
|
48
|
-
api: ClientAPI;
|
|
49
|
-
};
|
|
50
|
-
connection: {
|
|
51
|
-
api: ConnectionAPI;
|
|
52
|
-
};
|
|
53
|
-
conversation: {
|
|
54
|
-
api: ConversationAPI;
|
|
55
|
-
};
|
|
56
|
-
giphy: {
|
|
57
|
-
api: GiphyAPI;
|
|
58
|
-
};
|
|
59
|
-
notification: {
|
|
60
|
-
api: NotificationAPI;
|
|
61
|
-
};
|
|
62
|
-
self: {
|
|
63
|
-
api: SelfAPI;
|
|
64
|
-
};
|
|
65
|
-
services: {
|
|
66
|
-
api: ServicesAPI;
|
|
67
|
-
};
|
|
68
|
-
serviceProvider: {
|
|
69
|
-
api: ServiceProviderAPI;
|
|
70
|
-
};
|
|
71
|
-
teams: {
|
|
72
|
-
conversation: {
|
|
73
|
-
api: TeamConversationAPI;
|
|
74
|
-
};
|
|
75
|
-
feature: {
|
|
76
|
-
api: FeatureAPI;
|
|
77
|
-
};
|
|
78
|
-
identityProvider: {
|
|
79
|
-
api: IdentityProviderAPI;
|
|
80
|
-
};
|
|
81
|
-
invitation: {
|
|
82
|
-
api: TeamInvitationAPI;
|
|
83
|
-
};
|
|
84
|
-
legalhold: {
|
|
85
|
-
api: LegalHoldAPI;
|
|
86
|
-
};
|
|
87
|
-
member: {
|
|
88
|
-
api: MemberAPI;
|
|
89
|
-
};
|
|
90
|
-
payment: {
|
|
91
|
-
api: PaymentAPI;
|
|
92
|
-
};
|
|
93
|
-
billing: {
|
|
94
|
-
api: BillingAPI;
|
|
95
|
-
};
|
|
96
|
-
scim: {
|
|
97
|
-
api: ScimAPI;
|
|
98
|
-
};
|
|
99
|
-
search: {
|
|
100
|
-
api: TeamSearchAPI;
|
|
101
|
-
};
|
|
102
|
-
service: {
|
|
103
|
-
api: ServiceAPI;
|
|
104
|
-
};
|
|
105
|
-
team: {
|
|
106
|
-
api: TeamAPI;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
user: {
|
|
110
|
-
api: UserAPI;
|
|
111
|
-
};
|
|
64
|
+
api: Apis;
|
|
112
65
|
private readonly accessTokenStore;
|
|
113
66
|
context?: Context;
|
|
114
67
|
transport: {
|
|
@@ -123,6 +76,7 @@ export declare class APIClient extends EventEmitter {
|
|
|
123
76
|
static readonly TOPIC: typeof TOPIC;
|
|
124
77
|
static VERSION: string;
|
|
125
78
|
constructor(config?: Config);
|
|
79
|
+
private configureApis;
|
|
126
80
|
init(clientType?: ClientType, cookie?: Cookie): Promise<Context>;
|
|
127
81
|
login(loginData: LoginData): Promise<Context>;
|
|
128
82
|
loginWithToken(accessTokenString: string, clientType?: ClientType): Promise<Context>;
|
package/src/APIClient.js
CHANGED
|
@@ -85,82 +85,37 @@ class APIClient extends events_1.EventEmitter {
|
|
|
85
85
|
http: httpClient,
|
|
86
86
|
ws: webSocket,
|
|
87
87
|
};
|
|
88
|
-
this.
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
};
|
|
118
|
-
this.self = {
|
|
119
|
-
api: new self_1.SelfAPI(this.transport.http),
|
|
120
|
-
};
|
|
121
|
-
this.serviceProvider = {
|
|
122
|
-
api: new serviceProvider_1.ServiceProviderAPI(this.transport.http),
|
|
123
|
-
};
|
|
124
|
-
this.teams = {
|
|
125
|
-
conversation: {
|
|
126
|
-
api: new team_1.TeamConversationAPI(this.transport.http),
|
|
127
|
-
},
|
|
128
|
-
feature: {
|
|
129
|
-
api: new team_1.FeatureAPI(this.transport.http),
|
|
130
|
-
},
|
|
131
|
-
identityProvider: {
|
|
132
|
-
api: new team_1.IdentityProviderAPI(this.transport.http),
|
|
133
|
-
},
|
|
134
|
-
invitation: {
|
|
135
|
-
api: new team_1.TeamInvitationAPI(this.transport.http),
|
|
136
|
-
},
|
|
137
|
-
legalhold: {
|
|
138
|
-
api: new team_1.LegalHoldAPI(this.transport.http),
|
|
139
|
-
},
|
|
140
|
-
member: {
|
|
141
|
-
api: new team_1.MemberAPI(this.transport.http),
|
|
142
|
-
},
|
|
143
|
-
payment: {
|
|
144
|
-
api: new team_1.PaymentAPI(this.transport.http),
|
|
145
|
-
},
|
|
146
|
-
billing: {
|
|
147
|
-
api: new team_1.BillingAPI(this.transport.http),
|
|
148
|
-
},
|
|
149
|
-
scim: {
|
|
150
|
-
api: new ScimAPI_1.ScimAPI(this.transport.http),
|
|
151
|
-
},
|
|
152
|
-
search: {
|
|
153
|
-
api: new search_1.TeamSearchAPI(this.transport.http),
|
|
154
|
-
},
|
|
155
|
-
service: {
|
|
156
|
-
api: new team_1.ServiceAPI(this.transport.http),
|
|
157
|
-
},
|
|
158
|
-
team: {
|
|
159
|
-
api: new team_1.TeamAPI(this.transport.http),
|
|
88
|
+
this.api = this.configureApis(0);
|
|
89
|
+
}
|
|
90
|
+
configureApis(_) {
|
|
91
|
+
return {
|
|
92
|
+
account: new AccountAPI_1.AccountAPI(this.transport.http),
|
|
93
|
+
asset: new asset_1.AssetAPI(this.transport.http),
|
|
94
|
+
auth: new auth_1.AuthAPI(this.transport.http),
|
|
95
|
+
services: new services_1.ServicesAPI(this.transport.http),
|
|
96
|
+
broadcast: new broadcast_1.BroadcastAPI(this.transport.http),
|
|
97
|
+
client: new client_1.ClientAPI(this.transport.http),
|
|
98
|
+
connection: new connection_1.ConnectionAPI(this.transport.http),
|
|
99
|
+
conversation: new conversation_1.ConversationAPI(this.transport.http),
|
|
100
|
+
giphy: new giphy_1.GiphyAPI(this.transport.http),
|
|
101
|
+
notification: new notification_1.NotificationAPI(this.transport.http),
|
|
102
|
+
self: new self_1.SelfAPI(this.transport.http),
|
|
103
|
+
serviceProvider: new serviceProvider_1.ServiceProviderAPI(this.transport.http),
|
|
104
|
+
teams: {
|
|
105
|
+
conversation: new team_1.TeamConversationAPI(this.transport.http),
|
|
106
|
+
feature: new team_1.FeatureAPI(this.transport.http),
|
|
107
|
+
identityProvider: new team_1.IdentityProviderAPI(this.transport.http),
|
|
108
|
+
invitation: new team_1.TeamInvitationAPI(this.transport.http),
|
|
109
|
+
legalhold: new team_1.LegalHoldAPI(this.transport.http),
|
|
110
|
+
member: new team_1.MemberAPI(this.transport.http),
|
|
111
|
+
payment: new team_1.PaymentAPI(this.transport.http),
|
|
112
|
+
billing: new team_1.BillingAPI(this.transport.http),
|
|
113
|
+
scim: new ScimAPI_1.ScimAPI(this.transport.http),
|
|
114
|
+
search: new search_1.TeamSearchAPI(this.transport.http),
|
|
115
|
+
service: new team_1.ServiceAPI(this.transport.http),
|
|
116
|
+
team: new team_1.TeamAPI(this.transport.http),
|
|
160
117
|
},
|
|
161
|
-
|
|
162
|
-
this.user = {
|
|
163
|
-
api: new user_1.UserAPI(this.transport.http),
|
|
118
|
+
user: new user_1.UserAPI(this.transport.http),
|
|
164
119
|
};
|
|
165
120
|
}
|
|
166
121
|
async init(clientType = client_1.ClientType.NONE, cookie) {
|
|
@@ -174,7 +129,7 @@ class APIClient extends events_1.EventEmitter {
|
|
|
174
129
|
if (this.context) {
|
|
175
130
|
await this.logout();
|
|
176
131
|
}
|
|
177
|
-
const accessToken = await this.auth.
|
|
132
|
+
const accessToken = await this.api.auth.postLogin(loginData);
|
|
178
133
|
this.logger.info(`Saved initial access token. It will expire in "${accessToken.expires_in}" seconds.`, obfuscation_1.ObfuscationUtil.obfuscateAccessToken(accessToken));
|
|
179
134
|
await this.accessTokenStore.updateToken(accessToken);
|
|
180
135
|
return this.createContext(accessToken.user, loginData.clientType);
|
|
@@ -194,7 +149,7 @@ class APIClient extends events_1.EventEmitter {
|
|
|
194
149
|
if (this.context) {
|
|
195
150
|
await this.logout();
|
|
196
151
|
}
|
|
197
|
-
const user = await this.auth.
|
|
152
|
+
const user = await this.api.auth.postRegister(userAccount);
|
|
198
153
|
await this.createContext(user.id, clientType);
|
|
199
154
|
return this.init(clientType, CookieStore_1.CookieStore.getCookie());
|
|
200
155
|
}
|
|
@@ -202,7 +157,7 @@ class APIClient extends events_1.EventEmitter {
|
|
|
202
157
|
try {
|
|
203
158
|
this.disconnect('Closed by client logout');
|
|
204
159
|
if (!options.skipLogoutRequest) {
|
|
205
|
-
await this.auth.
|
|
160
|
+
await this.api.auth.postLogout();
|
|
206
161
|
}
|
|
207
162
|
}
|
|
208
163
|
catch (error) {
|
|
@@ -220,7 +175,7 @@ class APIClient extends events_1.EventEmitter {
|
|
|
220
175
|
var _a;
|
|
221
176
|
let selfDomain = undefined;
|
|
222
177
|
try {
|
|
223
|
-
const self = await this.self.
|
|
178
|
+
const self = await this.api.self.getSelf();
|
|
224
179
|
selfDomain = (_a = self.qualified_id) === null || _a === void 0 ? void 0 : _a.domain;
|
|
225
180
|
this.logger.info(`Got self domain "${selfDomain}"`);
|
|
226
181
|
}
|
package/src/APIClient.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"APIClient.js","sourceRoot":"","sources":["APIClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;AAEH,mCAAoC;AACpC,sDAA8B;AAE9B,kCAUiB;AACjB,qDAAgD;AAChD,oCAAkC;AAClC,gCAA+B;AAC/B,4CAA0C;AAC1C,sCAAgD;AAChD,8CAA4C;AAC5C,kDAAgD;AAChD,oDAA+C;AAC/C,oCAAkC;AAClC,kCAAiD;AACjD,kDAAgD;AAChD,gDAA+C;AAC/C,gCAAkD;AAClD,kCAAgC;AAChC,uDAAqD;AACrD,yCAAuC;AACvC,kCAWiB;AACjB,kCAAgC;AAEhC,0CAA4C;AAC5C,8DAAyD;AACzD,iDAA4C;AAE5C,MAAM,EAAC,OAAO,EAAC,GAAsB,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEhE,IAAK,KAKJ;AALD,WAAK,KAAK;IACR,sEAA6D,CAAA;IAC7D,0DA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