@wazo/sdk 0.37.38 → 0.37.39
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/dist/wazo-sdk.js +2 -2
- package/esm/__tests__/api-client.test.js +9 -0
- package/esm/__tests__/web-rtc-client.test.js +9 -0
- package/esm/api/auth.js +2 -0
- package/esm/api-client.js +9 -0
- package/esm/checker/Checker.js +9 -0
- package/esm/checker/checks/aor.js +9 -0
- package/esm/checker/checks/api.js +9 -0
- package/esm/checker/checks/index.js +9 -0
- package/esm/checker/checks/webrtc-transport.js +9 -0
- package/esm/checker/checks/webrtc.js +9 -0
- package/esm/domain/AdHocAPIConference.js +9 -0
- package/esm/domain/Features.js +9 -0
- package/esm/domain/Phone/CTIPhone.js +9 -0
- package/esm/index.js +16 -0
- package/esm/service/CallApi.js +9 -0
- package/esm/service/getApiClient.js +9 -0
- package/esm/simple/Auth.js +16 -0
- package/esm/simple/Configuration.js +16 -0
- package/esm/simple/Directory.js +9 -0
- package/esm/simple/Phone.js +16 -0
- package/esm/simple/index.js +16 -0
- package/esm/simple/room/LocalParticipant.js +16 -0
- package/esm/simple/room/Participant.js +16 -0
- package/esm/simple/room/RemoteParticipant.js +16 -0
- package/esm/simple/room/Room.js +16 -0
- package/esm/simple/room/SipRoom.js +16 -0
- package/esm/simple/room/Stream.js +16 -0
- package/esm/simple/room/__tests__/RemoteParticipant.test.js +16 -0
- package/esm/simple/utils.js +16 -0
- package/esm/web-rtc-client.js +9 -0
- package/lib/__tests__/api-client.test.js +9 -0
- package/lib/__tests__/web-rtc-client.test.js +9 -0
- package/lib/api/auth.js +2 -0
- package/lib/api-client.js +9 -0
- package/lib/checker/Checker.js +9 -0
- package/lib/checker/checks/aor.js +9 -0
- package/lib/checker/checks/api.js +9 -0
- package/lib/checker/checks/index.js +9 -0
- package/lib/checker/checks/webrtc-transport.js +9 -0
- package/lib/checker/checks/webrtc.js +9 -0
- package/lib/domain/AdHocAPIConference.js +9 -0
- package/lib/domain/Features.js +9 -0
- package/lib/domain/Phone/CTIPhone.js +9 -0
- package/lib/index.js +16 -0
- package/lib/service/CallApi.js +9 -0
- package/lib/service/getApiClient.js +9 -0
- package/lib/simple/Auth.js +16 -0
- package/lib/simple/Configuration.js +16 -0
- package/lib/simple/Directory.js +9 -0
- package/lib/simple/Phone.js +16 -0
- package/lib/simple/index.js +16 -0
- package/lib/simple/room/LocalParticipant.js +16 -0
- package/lib/simple/room/Participant.js +16 -0
- package/lib/simple/room/RemoteParticipant.js +16 -0
- package/lib/simple/room/Room.js +16 -0
- package/lib/simple/room/SipRoom.js +16 -0
- package/lib/simple/room/Stream.js +16 -0
- package/lib/simple/room/__tests__/RemoteParticipant.test.js +16 -0
- package/lib/simple/utils.js +16 -0
- package/lib/web-rtc-client.js +9 -0
- package/package.json +1 -1
- package/src/api/auth.js +2 -0
- package/src/api-client.js +7 -0
- package/src/simple/Auth.js +7 -0
|
@@ -2258,12 +2258,14 @@ var authMethods = (client , baseUrl ) => ({
|
|
|
2258
2258
|
backend ,
|
|
2259
2259
|
expiration ,
|
|
2260
2260
|
isMobile = false,
|
|
2261
|
+
tenantId ,
|
|
2261
2262
|
) => {
|
|
2262
2263
|
const body = {
|
|
2263
2264
|
backend: backend || DEFAULT_BACKEND_USER,
|
|
2264
2265
|
expiration: expiration || DETAULT_EXPIRATION,
|
|
2265
2266
|
refresh_token: refreshToken,
|
|
2266
2267
|
client_id: client.clientId,
|
|
2268
|
+
tenant_id: tenantId,
|
|
2267
2269
|
};
|
|
2268
2270
|
|
|
2269
2271
|
const headers = {
|
|
@@ -5415,6 +5417,7 @@ class ApiClient {
|
|
|
5415
5417
|
|
|
5416
5418
|
|
|
5417
5419
|
|
|
5420
|
+
|
|
5418
5421
|
|
|
5419
5422
|
|
|
5420
5423
|
|
|
@@ -5455,6 +5458,7 @@ class ApiClient {
|
|
|
5455
5458
|
logger$a.info('refresh token callback called', {
|
|
5456
5459
|
refreshToken: this.refreshToken,
|
|
5457
5460
|
refreshBackend: this.refreshBackend,
|
|
5461
|
+
refreshTenantId: this.refreshTenantId,
|
|
5458
5462
|
refreshExpiration: this.refreshExpiration,
|
|
5459
5463
|
isMobile: this.isMobile,
|
|
5460
5464
|
});
|
|
@@ -5468,6 +5472,7 @@ class ApiClient {
|
|
|
5468
5472
|
this.refreshBackend,
|
|
5469
5473
|
this.refreshExpiration,
|
|
5470
5474
|
this.isMobile,
|
|
5475
|
+
this.refreshTenantId,
|
|
5471
5476
|
);
|
|
5472
5477
|
|
|
5473
5478
|
logger$a.info('token refreshed', { token: session.token });
|
|
@@ -5509,6 +5514,10 @@ class ApiClient {
|
|
|
5509
5514
|
this.refreshBackend = refreshBackend;
|
|
5510
5515
|
}
|
|
5511
5516
|
|
|
5517
|
+
setRefreshTenantId(tenantId ) {
|
|
5518
|
+
this.refreshTenantId = tenantId;
|
|
5519
|
+
}
|
|
5520
|
+
|
|
5512
5521
|
setIsMobile(isMobile ) {
|
|
5513
5522
|
this.isMobile = isMobile;
|
|
5514
5523
|
}
|
|
@@ -5680,6 +5689,13 @@ class Auth {
|
|
|
5680
5689
|
expiration: this.expiration,
|
|
5681
5690
|
mobile: this.mobile,
|
|
5682
5691
|
});
|
|
5692
|
+
|
|
5693
|
+
if (backend) {
|
|
5694
|
+
getApiClient().setRefreshBackend(backend);
|
|
5695
|
+
}
|
|
5696
|
+
|
|
5697
|
+
getApiClient().setRefreshTenantId(tenantId);
|
|
5698
|
+
|
|
5683
5699
|
return this._onAuthenticated(rawSession);
|
|
5684
5700
|
}
|
|
5685
5701
|
|
|
@@ -2258,12 +2258,14 @@ var authMethods = (client , baseUrl ) => ({
|
|
|
2258
2258
|
backend ,
|
|
2259
2259
|
expiration ,
|
|
2260
2260
|
isMobile = false,
|
|
2261
|
+
tenantId ,
|
|
2261
2262
|
) => {
|
|
2262
2263
|
const body = {
|
|
2263
2264
|
backend: backend || DEFAULT_BACKEND_USER,
|
|
2264
2265
|
expiration: expiration || DETAULT_EXPIRATION,
|
|
2265
2266
|
refresh_token: refreshToken,
|
|
2266
2267
|
client_id: client.clientId,
|
|
2268
|
+
tenant_id: tenantId,
|
|
2267
2269
|
};
|
|
2268
2270
|
|
|
2269
2271
|
const headers = {
|
|
@@ -5415,6 +5417,7 @@ class ApiClient {
|
|
|
5415
5417
|
|
|
5416
5418
|
|
|
5417
5419
|
|
|
5420
|
+
|
|
5418
5421
|
|
|
5419
5422
|
|
|
5420
5423
|
|
|
@@ -5455,6 +5458,7 @@ class ApiClient {
|
|
|
5455
5458
|
logger$a.info('refresh token callback called', {
|
|
5456
5459
|
refreshToken: this.refreshToken,
|
|
5457
5460
|
refreshBackend: this.refreshBackend,
|
|
5461
|
+
refreshTenantId: this.refreshTenantId,
|
|
5458
5462
|
refreshExpiration: this.refreshExpiration,
|
|
5459
5463
|
isMobile: this.isMobile,
|
|
5460
5464
|
});
|
|
@@ -5468,6 +5472,7 @@ class ApiClient {
|
|
|
5468
5472
|
this.refreshBackend,
|
|
5469
5473
|
this.refreshExpiration,
|
|
5470
5474
|
this.isMobile,
|
|
5475
|
+
this.refreshTenantId,
|
|
5471
5476
|
);
|
|
5472
5477
|
|
|
5473
5478
|
logger$a.info('token refreshed', { token: session.token });
|
|
@@ -5509,6 +5514,10 @@ class ApiClient {
|
|
|
5509
5514
|
this.refreshBackend = refreshBackend;
|
|
5510
5515
|
}
|
|
5511
5516
|
|
|
5517
|
+
setRefreshTenantId(tenantId ) {
|
|
5518
|
+
this.refreshTenantId = tenantId;
|
|
5519
|
+
}
|
|
5520
|
+
|
|
5512
5521
|
setIsMobile(isMobile ) {
|
|
5513
5522
|
this.isMobile = isMobile;
|
|
5514
5523
|
}
|
|
@@ -5680,6 +5689,13 @@ class Auth {
|
|
|
5680
5689
|
expiration: this.expiration,
|
|
5681
5690
|
mobile: this.mobile,
|
|
5682
5691
|
});
|
|
5692
|
+
|
|
5693
|
+
if (backend) {
|
|
5694
|
+
getApiClient().setRefreshBackend(backend);
|
|
5695
|
+
}
|
|
5696
|
+
|
|
5697
|
+
getApiClient().setRefreshTenantId(tenantId);
|
|
5698
|
+
|
|
5683
5699
|
return this._onAuthenticated(rawSession);
|
|
5684
5700
|
}
|
|
5685
5701
|
|
|
@@ -2258,12 +2258,14 @@ var authMethods = (client , baseUrl ) => ({
|
|
|
2258
2258
|
backend ,
|
|
2259
2259
|
expiration ,
|
|
2260
2260
|
isMobile = false,
|
|
2261
|
+
tenantId ,
|
|
2261
2262
|
) => {
|
|
2262
2263
|
const body = {
|
|
2263
2264
|
backend: backend || DEFAULT_BACKEND_USER,
|
|
2264
2265
|
expiration: expiration || DETAULT_EXPIRATION,
|
|
2265
2266
|
refresh_token: refreshToken,
|
|
2266
2267
|
client_id: client.clientId,
|
|
2268
|
+
tenant_id: tenantId,
|
|
2267
2269
|
};
|
|
2268
2270
|
|
|
2269
2271
|
const headers = {
|
|
@@ -5415,6 +5417,7 @@ class ApiClient {
|
|
|
5415
5417
|
|
|
5416
5418
|
|
|
5417
5419
|
|
|
5420
|
+
|
|
5418
5421
|
|
|
5419
5422
|
|
|
5420
5423
|
|
|
@@ -5455,6 +5458,7 @@ class ApiClient {
|
|
|
5455
5458
|
logger$a.info('refresh token callback called', {
|
|
5456
5459
|
refreshToken: this.refreshToken,
|
|
5457
5460
|
refreshBackend: this.refreshBackend,
|
|
5461
|
+
refreshTenantId: this.refreshTenantId,
|
|
5458
5462
|
refreshExpiration: this.refreshExpiration,
|
|
5459
5463
|
isMobile: this.isMobile,
|
|
5460
5464
|
});
|
|
@@ -5468,6 +5472,7 @@ class ApiClient {
|
|
|
5468
5472
|
this.refreshBackend,
|
|
5469
5473
|
this.refreshExpiration,
|
|
5470
5474
|
this.isMobile,
|
|
5475
|
+
this.refreshTenantId,
|
|
5471
5476
|
);
|
|
5472
5477
|
|
|
5473
5478
|
logger$a.info('token refreshed', { token: session.token });
|
|
@@ -5509,6 +5514,10 @@ class ApiClient {
|
|
|
5509
5514
|
this.refreshBackend = refreshBackend;
|
|
5510
5515
|
}
|
|
5511
5516
|
|
|
5517
|
+
setRefreshTenantId(tenantId ) {
|
|
5518
|
+
this.refreshTenantId = tenantId;
|
|
5519
|
+
}
|
|
5520
|
+
|
|
5512
5521
|
setIsMobile(isMobile ) {
|
|
5513
5522
|
this.isMobile = isMobile;
|
|
5514
5523
|
}
|
|
@@ -5680,6 +5689,13 @@ class Auth {
|
|
|
5680
5689
|
expiration: this.expiration,
|
|
5681
5690
|
mobile: this.mobile,
|
|
5682
5691
|
});
|
|
5692
|
+
|
|
5693
|
+
if (backend) {
|
|
5694
|
+
getApiClient().setRefreshBackend(backend);
|
|
5695
|
+
}
|
|
5696
|
+
|
|
5697
|
+
getApiClient().setRefreshTenantId(tenantId);
|
|
5698
|
+
|
|
5683
5699
|
return this._onAuthenticated(rawSession);
|
|
5684
5700
|
}
|
|
5685
5701
|
|
package/esm/simple/utils.js
CHANGED
|
@@ -2258,12 +2258,14 @@ var authMethods = (client , baseUrl ) => ({
|
|
|
2258
2258
|
backend ,
|
|
2259
2259
|
expiration ,
|
|
2260
2260
|
isMobile = false,
|
|
2261
|
+
tenantId ,
|
|
2261
2262
|
) => {
|
|
2262
2263
|
const body = {
|
|
2263
2264
|
backend: backend || DEFAULT_BACKEND_USER,
|
|
2264
2265
|
expiration: expiration || DETAULT_EXPIRATION,
|
|
2265
2266
|
refresh_token: refreshToken,
|
|
2266
2267
|
client_id: client.clientId,
|
|
2268
|
+
tenant_id: tenantId,
|
|
2267
2269
|
};
|
|
2268
2270
|
|
|
2269
2271
|
const headers = {
|
|
@@ -5415,6 +5417,7 @@ class ApiClient {
|
|
|
5415
5417
|
|
|
5416
5418
|
|
|
5417
5419
|
|
|
5420
|
+
|
|
5418
5421
|
|
|
5419
5422
|
|
|
5420
5423
|
|
|
@@ -5455,6 +5458,7 @@ class ApiClient {
|
|
|
5455
5458
|
logger$a.info('refresh token callback called', {
|
|
5456
5459
|
refreshToken: this.refreshToken,
|
|
5457
5460
|
refreshBackend: this.refreshBackend,
|
|
5461
|
+
refreshTenantId: this.refreshTenantId,
|
|
5458
5462
|
refreshExpiration: this.refreshExpiration,
|
|
5459
5463
|
isMobile: this.isMobile,
|
|
5460
5464
|
});
|
|
@@ -5468,6 +5472,7 @@ class ApiClient {
|
|
|
5468
5472
|
this.refreshBackend,
|
|
5469
5473
|
this.refreshExpiration,
|
|
5470
5474
|
this.isMobile,
|
|
5475
|
+
this.refreshTenantId,
|
|
5471
5476
|
);
|
|
5472
5477
|
|
|
5473
5478
|
logger$a.info('token refreshed', { token: session.token });
|
|
@@ -5509,6 +5514,10 @@ class ApiClient {
|
|
|
5509
5514
|
this.refreshBackend = refreshBackend;
|
|
5510
5515
|
}
|
|
5511
5516
|
|
|
5517
|
+
setRefreshTenantId(tenantId ) {
|
|
5518
|
+
this.refreshTenantId = tenantId;
|
|
5519
|
+
}
|
|
5520
|
+
|
|
5512
5521
|
setIsMobile(isMobile ) {
|
|
5513
5522
|
this.isMobile = isMobile;
|
|
5514
5523
|
}
|
|
@@ -5680,6 +5689,13 @@ class Auth {
|
|
|
5680
5689
|
expiration: this.expiration,
|
|
5681
5690
|
mobile: this.mobile,
|
|
5682
5691
|
});
|
|
5692
|
+
|
|
5693
|
+
if (backend) {
|
|
5694
|
+
getApiClient().setRefreshBackend(backend);
|
|
5695
|
+
}
|
|
5696
|
+
|
|
5697
|
+
getApiClient().setRefreshTenantId(tenantId);
|
|
5698
|
+
|
|
5683
5699
|
return this._onAuthenticated(rawSession);
|
|
5684
5700
|
}
|
|
5685
5701
|
|
package/esm/web-rtc-client.js
CHANGED
|
@@ -2786,12 +2786,14 @@ var authMethods = (client , baseUrl ) => ({
|
|
|
2786
2786
|
backend ,
|
|
2787
2787
|
expiration ,
|
|
2788
2788
|
isMobile = false,
|
|
2789
|
+
tenantId ,
|
|
2789
2790
|
) => {
|
|
2790
2791
|
const body = {
|
|
2791
2792
|
backend: backend || DEFAULT_BACKEND_USER,
|
|
2792
2793
|
expiration: expiration || DETAULT_EXPIRATION,
|
|
2793
2794
|
refresh_token: refreshToken,
|
|
2794
2795
|
client_id: client.clientId,
|
|
2796
|
+
tenant_id: tenantId,
|
|
2795
2797
|
};
|
|
2796
2798
|
|
|
2797
2799
|
const headers = {
|
|
@@ -5129,6 +5131,7 @@ class ApiClient {
|
|
|
5129
5131
|
|
|
5130
5132
|
|
|
5131
5133
|
|
|
5134
|
+
|
|
5132
5135
|
|
|
5133
5136
|
|
|
5134
5137
|
|
|
@@ -5169,6 +5172,7 @@ class ApiClient {
|
|
|
5169
5172
|
logger$1.info('refresh token callback called', {
|
|
5170
5173
|
refreshToken: this.refreshToken,
|
|
5171
5174
|
refreshBackend: this.refreshBackend,
|
|
5175
|
+
refreshTenantId: this.refreshTenantId,
|
|
5172
5176
|
refreshExpiration: this.refreshExpiration,
|
|
5173
5177
|
isMobile: this.isMobile,
|
|
5174
5178
|
});
|
|
@@ -5182,6 +5186,7 @@ class ApiClient {
|
|
|
5182
5186
|
this.refreshBackend,
|
|
5183
5187
|
this.refreshExpiration,
|
|
5184
5188
|
this.isMobile,
|
|
5189
|
+
this.refreshTenantId,
|
|
5185
5190
|
);
|
|
5186
5191
|
|
|
5187
5192
|
logger$1.info('token refreshed', { token: session.token });
|
|
@@ -5223,6 +5228,10 @@ class ApiClient {
|
|
|
5223
5228
|
this.refreshBackend = refreshBackend;
|
|
5224
5229
|
}
|
|
5225
5230
|
|
|
5231
|
+
setRefreshTenantId(tenantId ) {
|
|
5232
|
+
this.refreshTenantId = tenantId;
|
|
5233
|
+
}
|
|
5234
|
+
|
|
5226
5235
|
setIsMobile(isMobile ) {
|
|
5227
5236
|
this.isMobile = isMobile;
|
|
5228
5237
|
}
|
|
@@ -2244,12 +2244,14 @@ var authMethods = (client , baseUrl ) => ({
|
|
|
2244
2244
|
backend ,
|
|
2245
2245
|
expiration ,
|
|
2246
2246
|
isMobile = false,
|
|
2247
|
+
tenantId ,
|
|
2247
2248
|
) => {
|
|
2248
2249
|
const body = {
|
|
2249
2250
|
backend: backend || DEFAULT_BACKEND_USER,
|
|
2250
2251
|
expiration: expiration || DETAULT_EXPIRATION,
|
|
2251
2252
|
refresh_token: refreshToken,
|
|
2252
2253
|
client_id: client.clientId,
|
|
2254
|
+
tenant_id: tenantId,
|
|
2253
2255
|
};
|
|
2254
2256
|
|
|
2255
2257
|
const headers = {
|
|
@@ -4587,6 +4589,7 @@ class ApiClient {
|
|
|
4587
4589
|
|
|
4588
4590
|
|
|
4589
4591
|
|
|
4592
|
+
|
|
4590
4593
|
|
|
4591
4594
|
|
|
4592
4595
|
|
|
@@ -4627,6 +4630,7 @@ class ApiClient {
|
|
|
4627
4630
|
logger.info('refresh token callback called', {
|
|
4628
4631
|
refreshToken: this.refreshToken,
|
|
4629
4632
|
refreshBackend: this.refreshBackend,
|
|
4633
|
+
refreshTenantId: this.refreshTenantId,
|
|
4630
4634
|
refreshExpiration: this.refreshExpiration,
|
|
4631
4635
|
isMobile: this.isMobile,
|
|
4632
4636
|
});
|
|
@@ -4640,6 +4644,7 @@ class ApiClient {
|
|
|
4640
4644
|
this.refreshBackend,
|
|
4641
4645
|
this.refreshExpiration,
|
|
4642
4646
|
this.isMobile,
|
|
4647
|
+
this.refreshTenantId,
|
|
4643
4648
|
);
|
|
4644
4649
|
|
|
4645
4650
|
logger.info('token refreshed', { token: session.token });
|
|
@@ -4681,6 +4686,10 @@ class ApiClient {
|
|
|
4681
4686
|
this.refreshBackend = refreshBackend;
|
|
4682
4687
|
}
|
|
4683
4688
|
|
|
4689
|
+
setRefreshTenantId(tenantId ) {
|
|
4690
|
+
this.refreshTenantId = tenantId;
|
|
4691
|
+
}
|
|
4692
|
+
|
|
4684
4693
|
setIsMobile(isMobile ) {
|
|
4685
4694
|
this.isMobile = isMobile;
|
|
4686
4695
|
}
|
|
@@ -2795,12 +2795,14 @@ var authMethods = (client , baseUrl ) => ({
|
|
|
2795
2795
|
backend ,
|
|
2796
2796
|
expiration ,
|
|
2797
2797
|
isMobile = false,
|
|
2798
|
+
tenantId ,
|
|
2798
2799
|
) => {
|
|
2799
2800
|
const body = {
|
|
2800
2801
|
backend: backend || DEFAULT_BACKEND_USER,
|
|
2801
2802
|
expiration: expiration || DETAULT_EXPIRATION,
|
|
2802
2803
|
refresh_token: refreshToken,
|
|
2803
2804
|
client_id: client.clientId,
|
|
2805
|
+
tenant_id: tenantId,
|
|
2804
2806
|
};
|
|
2805
2807
|
|
|
2806
2808
|
const headers = {
|
|
@@ -5138,6 +5140,7 @@ class ApiClient {
|
|
|
5138
5140
|
|
|
5139
5141
|
|
|
5140
5142
|
|
|
5143
|
+
|
|
5141
5144
|
|
|
5142
5145
|
|
|
5143
5146
|
|
|
@@ -5178,6 +5181,7 @@ class ApiClient {
|
|
|
5178
5181
|
logger$1.info('refresh token callback called', {
|
|
5179
5182
|
refreshToken: this.refreshToken,
|
|
5180
5183
|
refreshBackend: this.refreshBackend,
|
|
5184
|
+
refreshTenantId: this.refreshTenantId,
|
|
5181
5185
|
refreshExpiration: this.refreshExpiration,
|
|
5182
5186
|
isMobile: this.isMobile,
|
|
5183
5187
|
});
|
|
@@ -5191,6 +5195,7 @@ class ApiClient {
|
|
|
5191
5195
|
this.refreshBackend,
|
|
5192
5196
|
this.refreshExpiration,
|
|
5193
5197
|
this.isMobile,
|
|
5198
|
+
this.refreshTenantId,
|
|
5194
5199
|
);
|
|
5195
5200
|
|
|
5196
5201
|
logger$1.info('token refreshed', { token: session.token });
|
|
@@ -5232,6 +5237,10 @@ class ApiClient {
|
|
|
5232
5237
|
this.refreshBackend = refreshBackend;
|
|
5233
5238
|
}
|
|
5234
5239
|
|
|
5240
|
+
setRefreshTenantId(tenantId ) {
|
|
5241
|
+
this.refreshTenantId = tenantId;
|
|
5242
|
+
}
|
|
5243
|
+
|
|
5235
5244
|
setIsMobile(isMobile ) {
|
|
5236
5245
|
this.isMobile = isMobile;
|
|
5237
5246
|
}
|
package/lib/api/auth.js
CHANGED
|
@@ -1004,12 +1004,14 @@ var auth = (client , baseUrl ) => ({
|
|
|
1004
1004
|
backend ,
|
|
1005
1005
|
expiration ,
|
|
1006
1006
|
isMobile = false,
|
|
1007
|
+
tenantId ,
|
|
1007
1008
|
) => {
|
|
1008
1009
|
const body = {
|
|
1009
1010
|
backend: backend || DEFAULT_BACKEND_USER,
|
|
1010
1011
|
expiration: expiration || DETAULT_EXPIRATION,
|
|
1011
1012
|
refresh_token: refreshToken,
|
|
1012
1013
|
client_id: client.clientId,
|
|
1014
|
+
tenant_id: tenantId,
|
|
1013
1015
|
};
|
|
1014
1016
|
|
|
1015
1017
|
const headers = {
|
package/lib/api-client.js
CHANGED
|
@@ -2244,12 +2244,14 @@ var authMethods = (client , baseUrl ) => ({
|
|
|
2244
2244
|
backend ,
|
|
2245
2245
|
expiration ,
|
|
2246
2246
|
isMobile = false,
|
|
2247
|
+
tenantId ,
|
|
2247
2248
|
) => {
|
|
2248
2249
|
const body = {
|
|
2249
2250
|
backend: backend || DEFAULT_BACKEND_USER,
|
|
2250
2251
|
expiration: expiration || DETAULT_EXPIRATION,
|
|
2251
2252
|
refresh_token: refreshToken,
|
|
2252
2253
|
client_id: client.clientId,
|
|
2254
|
+
tenant_id: tenantId,
|
|
2253
2255
|
};
|
|
2254
2256
|
|
|
2255
2257
|
const headers = {
|
|
@@ -4587,6 +4589,7 @@ class ApiClient {
|
|
|
4587
4589
|
|
|
4588
4590
|
|
|
4589
4591
|
|
|
4592
|
+
|
|
4590
4593
|
|
|
4591
4594
|
|
|
4592
4595
|
|
|
@@ -4627,6 +4630,7 @@ class ApiClient {
|
|
|
4627
4630
|
logger.info('refresh token callback called', {
|
|
4628
4631
|
refreshToken: this.refreshToken,
|
|
4629
4632
|
refreshBackend: this.refreshBackend,
|
|
4633
|
+
refreshTenantId: this.refreshTenantId,
|
|
4630
4634
|
refreshExpiration: this.refreshExpiration,
|
|
4631
4635
|
isMobile: this.isMobile,
|
|
4632
4636
|
});
|
|
@@ -4640,6 +4644,7 @@ class ApiClient {
|
|
|
4640
4644
|
this.refreshBackend,
|
|
4641
4645
|
this.refreshExpiration,
|
|
4642
4646
|
this.isMobile,
|
|
4647
|
+
this.refreshTenantId,
|
|
4643
4648
|
);
|
|
4644
4649
|
|
|
4645
4650
|
logger.info('token refreshed', { token: session.token });
|
|
@@ -4681,6 +4686,10 @@ class ApiClient {
|
|
|
4681
4686
|
this.refreshBackend = refreshBackend;
|
|
4682
4687
|
}
|
|
4683
4688
|
|
|
4689
|
+
setRefreshTenantId(tenantId ) {
|
|
4690
|
+
this.refreshTenantId = tenantId;
|
|
4691
|
+
}
|
|
4692
|
+
|
|
4684
4693
|
setIsMobile(isMobile ) {
|
|
4685
4694
|
this.isMobile = isMobile;
|
|
4686
4695
|
}
|
package/lib/checker/Checker.js
CHANGED
|
@@ -2266,12 +2266,14 @@ var authMethods = (client , baseUrl ) => ({
|
|
|
2266
2266
|
backend ,
|
|
2267
2267
|
expiration ,
|
|
2268
2268
|
isMobile = false,
|
|
2269
|
+
tenantId ,
|
|
2269
2270
|
) => {
|
|
2270
2271
|
const body = {
|
|
2271
2272
|
backend: backend || DEFAULT_BACKEND_USER,
|
|
2272
2273
|
expiration: expiration || DETAULT_EXPIRATION,
|
|
2273
2274
|
refresh_token: refreshToken,
|
|
2274
2275
|
client_id: client.clientId,
|
|
2276
|
+
tenant_id: tenantId,
|
|
2275
2277
|
};
|
|
2276
2278
|
|
|
2277
2279
|
const headers = {
|
|
@@ -4635,6 +4637,7 @@ class ApiClient {
|
|
|
4635
4637
|
|
|
4636
4638
|
|
|
4637
4639
|
|
|
4640
|
+
|
|
4638
4641
|
|
|
4639
4642
|
|
|
4640
4643
|
|
|
@@ -4675,6 +4678,7 @@ class ApiClient {
|
|
|
4675
4678
|
logger$3.info('refresh token callback called', {
|
|
4676
4679
|
refreshToken: this.refreshToken,
|
|
4677
4680
|
refreshBackend: this.refreshBackend,
|
|
4681
|
+
refreshTenantId: this.refreshTenantId,
|
|
4678
4682
|
refreshExpiration: this.refreshExpiration,
|
|
4679
4683
|
isMobile: this.isMobile,
|
|
4680
4684
|
});
|
|
@@ -4688,6 +4692,7 @@ class ApiClient {
|
|
|
4688
4692
|
this.refreshBackend,
|
|
4689
4693
|
this.refreshExpiration,
|
|
4690
4694
|
this.isMobile,
|
|
4695
|
+
this.refreshTenantId,
|
|
4691
4696
|
);
|
|
4692
4697
|
|
|
4693
4698
|
logger$3.info('token refreshed', { token: session.token });
|
|
@@ -4729,6 +4734,10 @@ class ApiClient {
|
|
|
4729
4734
|
this.refreshBackend = refreshBackend;
|
|
4730
4735
|
}
|
|
4731
4736
|
|
|
4737
|
+
setRefreshTenantId(tenantId ) {
|
|
4738
|
+
this.refreshTenantId = tenantId;
|
|
4739
|
+
}
|
|
4740
|
+
|
|
4732
4741
|
setIsMobile(isMobile ) {
|
|
4733
4742
|
this.isMobile = isMobile;
|
|
4734
4743
|
}
|
|
@@ -2244,12 +2244,14 @@ var authMethods = (client , baseUrl ) => ({
|
|
|
2244
2244
|
backend ,
|
|
2245
2245
|
expiration ,
|
|
2246
2246
|
isMobile = false,
|
|
2247
|
+
tenantId ,
|
|
2247
2248
|
) => {
|
|
2248
2249
|
const body = {
|
|
2249
2250
|
backend: backend || DEFAULT_BACKEND_USER,
|
|
2250
2251
|
expiration: expiration || DETAULT_EXPIRATION,
|
|
2251
2252
|
refresh_token: refreshToken,
|
|
2252
2253
|
client_id: client.clientId,
|
|
2254
|
+
tenant_id: tenantId,
|
|
2253
2255
|
};
|
|
2254
2256
|
|
|
2255
2257
|
const headers = {
|
|
@@ -4587,6 +4589,7 @@ class ApiClient {
|
|
|
4587
4589
|
|
|
4588
4590
|
|
|
4589
4591
|
|
|
4592
|
+
|
|
4590
4593
|
|
|
4591
4594
|
|
|
4592
4595
|
|
|
@@ -4627,6 +4630,7 @@ class ApiClient {
|
|
|
4627
4630
|
logger.info('refresh token callback called', {
|
|
4628
4631
|
refreshToken: this.refreshToken,
|
|
4629
4632
|
refreshBackend: this.refreshBackend,
|
|
4633
|
+
refreshTenantId: this.refreshTenantId,
|
|
4630
4634
|
refreshExpiration: this.refreshExpiration,
|
|
4631
4635
|
isMobile: this.isMobile,
|
|
4632
4636
|
});
|
|
@@ -4640,6 +4644,7 @@ class ApiClient {
|
|
|
4640
4644
|
this.refreshBackend,
|
|
4641
4645
|
this.refreshExpiration,
|
|
4642
4646
|
this.isMobile,
|
|
4647
|
+
this.refreshTenantId,
|
|
4643
4648
|
);
|
|
4644
4649
|
|
|
4645
4650
|
logger.info('token refreshed', { token: session.token });
|
|
@@ -4681,6 +4686,10 @@ class ApiClient {
|
|
|
4681
4686
|
this.refreshBackend = refreshBackend;
|
|
4682
4687
|
}
|
|
4683
4688
|
|
|
4689
|
+
setRefreshTenantId(tenantId ) {
|
|
4690
|
+
this.refreshTenantId = tenantId;
|
|
4691
|
+
}
|
|
4692
|
+
|
|
4684
4693
|
setIsMobile(isMobile ) {
|
|
4685
4694
|
this.isMobile = isMobile;
|
|
4686
4695
|
}
|
|
@@ -2244,12 +2244,14 @@ var authMethods = (client , baseUrl ) => ({
|
|
|
2244
2244
|
backend ,
|
|
2245
2245
|
expiration ,
|
|
2246
2246
|
isMobile = false,
|
|
2247
|
+
tenantId ,
|
|
2247
2248
|
) => {
|
|
2248
2249
|
const body = {
|
|
2249
2250
|
backend: backend || DEFAULT_BACKEND_USER,
|
|
2250
2251
|
expiration: expiration || DETAULT_EXPIRATION,
|
|
2251
2252
|
refresh_token: refreshToken,
|
|
2252
2253
|
client_id: client.clientId,
|
|
2254
|
+
tenant_id: tenantId,
|
|
2253
2255
|
};
|
|
2254
2256
|
|
|
2255
2257
|
const headers = {
|
|
@@ -4587,6 +4589,7 @@ class ApiClient {
|
|
|
4587
4589
|
|
|
4588
4590
|
|
|
4589
4591
|
|
|
4592
|
+
|
|
4590
4593
|
|
|
4591
4594
|
|
|
4592
4595
|
|
|
@@ -4627,6 +4630,7 @@ class ApiClient {
|
|
|
4627
4630
|
logger.info('refresh token callback called', {
|
|
4628
4631
|
refreshToken: this.refreshToken,
|
|
4629
4632
|
refreshBackend: this.refreshBackend,
|
|
4633
|
+
refreshTenantId: this.refreshTenantId,
|
|
4630
4634
|
refreshExpiration: this.refreshExpiration,
|
|
4631
4635
|
isMobile: this.isMobile,
|
|
4632
4636
|
});
|
|
@@ -4640,6 +4644,7 @@ class ApiClient {
|
|
|
4640
4644
|
this.refreshBackend,
|
|
4641
4645
|
this.refreshExpiration,
|
|
4642
4646
|
this.isMobile,
|
|
4647
|
+
this.refreshTenantId,
|
|
4643
4648
|
);
|
|
4644
4649
|
|
|
4645
4650
|
logger.info('token refreshed', { token: session.token });
|
|
@@ -4681,6 +4686,10 @@ class ApiClient {
|
|
|
4681
4686
|
this.refreshBackend = refreshBackend;
|
|
4682
4687
|
}
|
|
4683
4688
|
|
|
4689
|
+
setRefreshTenantId(tenantId ) {
|
|
4690
|
+
this.refreshTenantId = tenantId;
|
|
4691
|
+
}
|
|
4692
|
+
|
|
4684
4693
|
setIsMobile(isMobile ) {
|
|
4685
4694
|
this.isMobile = isMobile;
|
|
4686
4695
|
}
|
|
@@ -2266,12 +2266,14 @@ var authMethods = (client , baseUrl ) => ({
|
|
|
2266
2266
|
backend ,
|
|
2267
2267
|
expiration ,
|
|
2268
2268
|
isMobile = false,
|
|
2269
|
+
tenantId ,
|
|
2269
2270
|
) => {
|
|
2270
2271
|
const body = {
|
|
2271
2272
|
backend: backend || DEFAULT_BACKEND_USER,
|
|
2272
2273
|
expiration: expiration || DETAULT_EXPIRATION,
|
|
2273
2274
|
refresh_token: refreshToken,
|
|
2274
2275
|
client_id: client.clientId,
|
|
2276
|
+
tenant_id: tenantId,
|
|
2275
2277
|
};
|
|
2276
2278
|
|
|
2277
2279
|
const headers = {
|
|
@@ -4635,6 +4637,7 @@ class ApiClient {
|
|
|
4635
4637
|
|
|
4636
4638
|
|
|
4637
4639
|
|
|
4640
|
+
|
|
4638
4641
|
|
|
4639
4642
|
|
|
4640
4643
|
|
|
@@ -4675,6 +4678,7 @@ class ApiClient {
|
|
|
4675
4678
|
logger$2.info('refresh token callback called', {
|
|
4676
4679
|
refreshToken: this.refreshToken,
|
|
4677
4680
|
refreshBackend: this.refreshBackend,
|
|
4681
|
+
refreshTenantId: this.refreshTenantId,
|
|
4678
4682
|
refreshExpiration: this.refreshExpiration,
|
|
4679
4683
|
isMobile: this.isMobile,
|
|
4680
4684
|
});
|
|
@@ -4688,6 +4692,7 @@ class ApiClient {
|
|
|
4688
4692
|
this.refreshBackend,
|
|
4689
4693
|
this.refreshExpiration,
|
|
4690
4694
|
this.isMobile,
|
|
4695
|
+
this.refreshTenantId,
|
|
4691
4696
|
);
|
|
4692
4697
|
|
|
4693
4698
|
logger$2.info('token refreshed', { token: session.token });
|
|
@@ -4729,6 +4734,10 @@ class ApiClient {
|
|
|
4729
4734
|
this.refreshBackend = refreshBackend;
|
|
4730
4735
|
}
|
|
4731
4736
|
|
|
4737
|
+
setRefreshTenantId(tenantId ) {
|
|
4738
|
+
this.refreshTenantId = tenantId;
|
|
4739
|
+
}
|
|
4740
|
+
|
|
4732
4741
|
setIsMobile(isMobile ) {
|
|
4733
4742
|
this.isMobile = isMobile;
|
|
4734
4743
|
}
|