@searchability/admin-client 0.0.22 → 0.0.23

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.
@@ -0,0 +1,15 @@
1
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x44f477,_0x1b83e7,_0x48ce9b,_0x52d587){function _0x1626b7(_0x3fe531){return _0x3fe531 instanceof _0x48ce9b?_0x3fe531:new _0x48ce9b(function(_0x58b07c){_0x58b07c(_0x3fe531);});}return new(_0x48ce9b||(_0x48ce9b=Promise))(function(_0x51be5b,_0x34634e){function _0x3fddd0(_0xb5ba75){try{_0x581be7(_0x52d587['next'](_0xb5ba75));}catch(_0x47e9fd){_0x34634e(_0x47e9fd);}}function _0x573b25(_0x418dc8){try{_0x581be7(_0x52d587['throw'](_0x418dc8));}catch(_0x2e02dc){_0x34634e(_0x2e02dc);}}function _0x581be7(_0x1d5f74){_0x1d5f74['done']?_0x51be5b(_0x1d5f74['value']):_0x1626b7(_0x1d5f74['value'])['then'](_0x3fddd0,_0x573b25);}_0x581be7((_0x52d587=_0x52d587['apply'](_0x44f477,_0x1b83e7||[]))['next']());});};class TokenManager{constructor(_0x20bb08){this['authClient']=_0x20bb08;}['getOrRefreshTokens'](_0x315b43){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0x315b43['access_expires'])return new SuccessfulAuthResponse(_0x315b43);if(Date['now']()<_0x315b43['refresh_expires'])return yield this['authClient']['refresh'](_0x315b43['refresh_token']);return new FailedAuthResponse({'detail':'Refresh\x20token\x20expired','title':'','status':0x194,'instance':'','type':''});});}}
2
+
3
+ class Response{constructor(_0x45cf60){this['isSuccess']=_0x45cf60;}}class SuccessfulAccountResponse extends Response{constructor(_0x2a15f1){super(!![]),this['account']=_0x2a15f1;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x20e39b){super(![]),this['problem']=_0x20e39b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x83b875){super(!![]),this['tokens']=_0x83b875;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x182dd7){super(![]),this['problem']=_0x182dd7;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x205bf){super(!![]),this['apiKey']=_0x205bf;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x557be8){super(![]),this['problem']=_0x557be8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
+
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x441ea5,_0x11aa17,_0x48d4c5,_0x40dff4){function _0x3de208(_0x2adc82){return _0x2adc82 instanceof _0x48d4c5?_0x2adc82:new _0x48d4c5(function(_0x53d671){_0x53d671(_0x2adc82);});}return new(_0x48d4c5||(_0x48d4c5=Promise))(function(_0x11bf6e,_0x5b0155){function _0xd48b4d(_0x5f5494){try{_0xaf3a66(_0x40dff4['next'](_0x5f5494));}catch(_0x4e20c5){_0x5b0155(_0x4e20c5);}}function _0x37bd99(_0x3f90b6){try{_0xaf3a66(_0x40dff4['throw'](_0x3f90b6));}catch(_0x254340){_0x5b0155(_0x254340);}}function _0xaf3a66(_0x306f23){_0x306f23['done']?_0x11bf6e(_0x306f23['value']):_0x3de208(_0x306f23['value'])['then'](_0xd48b4d,_0x37bd99);}_0xaf3a66((_0x40dff4=_0x40dff4['apply'](_0x441ea5,_0x11aa17||[]))['next']());});};class AccountService{constructor(_0x2703c2){this['fetch']=_0x2703c2;}['get'](_0x228b93,_0x1ea745){return __awaiter$4(this,void 0,void 0,function*(){const _0x1b548a='Account/'+_0x228b93+'/',_0x4453d2=yield this['fetch']['get'](_0x1b548a,_0x1ea745);try{if(_0x4453d2['status']>0xc7&&_0x4453d2['status']<0x12c){const _0x3b93c9=yield _0x4453d2['json']();return new SuccessfulAccountResponse(_0x3b93c9);}const _0x45735e=yield _0x4453d2['json']();return new FailedAccountResponse(_0x45735e);}catch(_0x11dc98){if(_0x11dc98 instanceof Error)return new FailedAccountResponse({'detail':_0x11dc98['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x11dc98;}});}}
6
+
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x5cdf06,_0x2ff28a,_0x379669,_0x2930da){function _0x3fd433(_0x1acd7b){return _0x1acd7b instanceof _0x379669?_0x1acd7b:new _0x379669(function(_0x2063ba){_0x2063ba(_0x1acd7b);});}return new(_0x379669||(_0x379669=Promise))(function(_0x349c2e,_0x85aa75){function _0x5e84dc(_0xfe89a8){try{_0x504fee(_0x2930da['next'](_0xfe89a8));}catch(_0x5c8dd5){_0x85aa75(_0x5c8dd5);}}function _0x523367(_0xe0ce95){try{_0x504fee(_0x2930da['throw'](_0xe0ce95));}catch(_0x2ca475){_0x85aa75(_0x2ca475);}}function _0x504fee(_0x43758b){_0x43758b['done']?_0x349c2e(_0x43758b['value']):_0x3fd433(_0x43758b['value'])['then'](_0x5e84dc,_0x523367);}_0x504fee((_0x2930da=_0x2930da['apply'](_0x5cdf06,_0x2ff28a||[]))['next']());});};class ApiKeyService{constructor(_0x3d36b8){this['fetch']=_0x3d36b8;}['create'](_0x4c5180,_0x1f4a0d,_0x5a382d){return __awaiter$3(this,void 0,void 0,function*(){const _0x11a57d='api-key/create',_0x1b6c34={'account_name':_0x4c5180,'name':_0x1f4a0d};try{const _0x56428c=yield this['fetch']['post'](_0x11a57d,_0x5a382d,_0x1b6c34);if(_0x56428c['status']>0xc7&&_0x56428c['status']<0x12c){const _0x6d04bb=yield _0x56428c['json']();return new SuccessfulApiKeyResponse(_0x6d04bb);}const _0x231940=yield _0x56428c['json']();return new FailedApiKeyResponse(_0x231940);}catch(_0x199053){if(_0x199053 instanceof Error)return new FailedApiKeyResponse({'detail':_0x199053['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x199053;}});}}
8
+
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x25a745,_0x2ec3fb,_0x175d2f,_0x33af9a){function _0x1aade1(_0x1c926c){return _0x1c926c instanceof _0x175d2f?_0x1c926c:new _0x175d2f(function(_0xa22aee){_0xa22aee(_0x1c926c);});}return new(_0x175d2f||(_0x175d2f=Promise))(function(_0xa03cd3,_0x546585){function _0x15894f(_0x4663dc){try{_0x32f129(_0x33af9a['next'](_0x4663dc));}catch(_0x29eac7){_0x546585(_0x29eac7);}}function _0x1097f5(_0x3779a9){try{_0x32f129(_0x33af9a['throw'](_0x3779a9));}catch(_0x472a92){_0x546585(_0x472a92);}}function _0x32f129(_0x2e5c78){_0x2e5c78['done']?_0xa03cd3(_0x2e5c78['value']):_0x1aade1(_0x2e5c78['value'])['then'](_0x15894f,_0x1097f5);}_0x32f129((_0x33af9a=_0x33af9a['apply'](_0x25a745,_0x2ec3fb||[]))['next']());});};class ListService{constructor(_0x4f6463){this['fetch']=_0x4f6463;}['add'](_0x440a98,_0x20bb78,_0xe914c){return __awaiter$2(this,void 0,void 0,function*(){const _0x11fd6e='List',_0x48e319={'account_name':_0x440a98,'list_name':_0x20bb78};try{const _0x25368b=yield this['fetch']['post'](_0x11fd6e,_0xe914c,_0x48e319);if(_0x25368b['status']>0xc7&&_0x25368b['status']<0x12c){const _0x171062=yield _0x25368b['json']();return new SuccessfulAccountResponse(_0x171062);}const _0x10f8c0=yield _0x25368b['json']();return new FailedAccountResponse(_0x10f8c0);}catch(_0x16cd79){if(_0x16cd79 instanceof Error)return new FailedAccountResponse({'detail':_0x16cd79['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x16cd79;}});}['remove'](_0x389fdf,_0x1ea6f2,_0x496aa9){return __awaiter$2(this,void 0,void 0,function*(){const _0x573ec4='List/'+_0x389fdf+'/'+_0x1ea6f2,_0x4cbfb0=yield this['fetch']['delete'](_0x573ec4,_0x496aa9);try{if(_0x4cbfb0['status']>0xc7&&_0x4cbfb0['status']<0x12c){const _0x3c42f9=yield _0x4cbfb0['json']();return new SuccessfulAccountResponse(_0x3c42f9);}const _0x5a96b8=yield _0x4cbfb0['json']();return new FailedAccountResponse(_0x5a96b8);}catch(_0x9c8282){if(_0x9c8282 instanceof Error)return new FailedAccountResponse({'detail':_0x9c8282['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x9c8282;}});}}
10
+
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x2882c4,_0x4b4fec,_0x1288d2,_0x1fce2b){function _0x535a14(_0x196362){return _0x196362 instanceof _0x1288d2?_0x196362:new _0x1288d2(function(_0x51eadc){_0x51eadc(_0x196362);});}return new(_0x1288d2||(_0x1288d2=Promise))(function(_0x1aca60,_0x416953){function _0x4f19f6(_0x16b88d){try{_0x5627ce(_0x1fce2b['next'](_0x16b88d));}catch(_0x3066db){_0x416953(_0x3066db);}}function _0x4b52d3(_0x307f9b){try{_0x5627ce(_0x1fce2b['throw'](_0x307f9b));}catch(_0x13421a){_0x416953(_0x13421a);}}function _0x5627ce(_0x556378){_0x556378['done']?_0x1aca60(_0x556378['value']):_0x535a14(_0x556378['value'])['then'](_0x4f19f6,_0x4b52d3);}_0x5627ce((_0x1fce2b=_0x1fce2b['apply'](_0x2882c4,_0x4b4fec||[]))['next']());});};class Fetch{constructor(_0x3dcfce){this['baseUri']=_0x3dcfce,this['getUrl']=_0x458b61=>{return _0x458b61['startsWith']('/')&&(_0x458b61=_0x458b61['replace']('/','')),''+this['baseUri']+_0x458b61;},!_0x3dcfce['endsWith']('/')&&(_0x3dcfce=_0x3dcfce+'/');}['get'](_0x37afad,_0x4f6e6d){return __awaiter$1(this,void 0,void 0,function*(){const _0x17a626=this['getUrl'](_0x37afad);return yield fetch(_0x17a626,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4f6e6d}});});}['post'](_0x520208,_0x300dee,_0x2d2fc3){return __awaiter$1(this,void 0,void 0,function*(){const _0x55a618=this['getUrl'](_0x520208);return yield fetch(_0x55a618,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x300dee},'body':_0x2d2fc3?JSON['stringify'](_0x2d2fc3):null});});}['put'](_0x446bb5,_0x1578a9,_0x41f8ac){return __awaiter$1(this,void 0,void 0,function*(){const _0x1cf7f0=this['getUrl'](_0x446bb5);return yield fetch(_0x1cf7f0,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1578a9},'body':_0x41f8ac?JSON['stringify'](_0x41f8ac):null});});}['delete'](_0xf9151,_0x5de882){return __awaiter$1(this,void 0,void 0,function*(){const _0x4e0003=this['getUrl'](_0xf9151);return yield fetch(_0x4e0003,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5de882}});});}}
12
+
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x3403e8,_0x13b235,_0x178983,_0x4fe9c9){function _0x40247e(_0x4a8c73){return _0x4a8c73 instanceof _0x178983?_0x4a8c73:new _0x178983(function(_0x3bd9ec){_0x3bd9ec(_0x4a8c73);});}return new(_0x178983||(_0x178983=Promise))(function(_0xb71dca,_0x218214){function _0x26d7a2(_0x340a9f){try{_0x1dfa00(_0x4fe9c9['next'](_0x340a9f));}catch(_0x4a23a1){_0x218214(_0x4a23a1);}}function _0xc9b51e(_0x4fcd44){try{_0x1dfa00(_0x4fe9c9['throw'](_0x4fcd44));}catch(_0x3bad0c){_0x218214(_0x3bad0c);}}function _0x1dfa00(_0x2c5af9){_0x2c5af9['done']?_0xb71dca(_0x2c5af9['value']):_0x40247e(_0x2c5af9['value'])['then'](_0x26d7a2,_0xc9b51e);}_0x1dfa00((_0x4fe9c9=_0x4fe9c9['apply'](_0x3403e8,_0x13b235||[]))['next']());});};class AdminClient{constructor(_0xa3d5fd='https://admin.searchability.dev/'){var _0x27f0cc=new Fetch(_0xa3d5fd);this['Accounts']=new AccountService(_0x27f0cc),this['Lists']=new ListService(_0x27f0cc),this['ApiKeys']=new ApiKeyService(_0x27f0cc);}}class AuthClient{constructor(_0x3e1e80='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x3e1e80);}['login'](_0x883ae){return __awaiter(this,void 0,void 0,function*(){var _0x2ead09='login/'+_0x883ae;try{const _0x5d1151=yield yield fetch(_0x2ead09);if(_0x5d1151['status']>0xc7&&_0x5d1151['status']<0x12c){const _0x29bb0b=yield _0x5d1151['json']();return new SuccessfulAuthResponse(_0x29bb0b);}const _0x5d7616=yield _0x5d1151['json']();return new FailedAuthResponse(_0x5d7616);}catch(_0x23308d){if(_0x23308d instanceof Error)return new FailedAuthResponse({'detail':_0x23308d['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x23308d;}});}['refresh'](_0x54f035){return __awaiter(this,void 0,void 0,function*(){var _0x2fe84e='refresh';try{const _0x4d758b=yield this['fetch']['post'](_0x2fe84e,_0x54f035,null);if(_0x4d758b['status']>0xc7&&_0x4d758b['status']<0x12c){const _0x4fe23b=yield _0x4d758b['json']();return new SuccessfulAuthResponse(_0x4fe23b);}const _0xcd3ada=yield _0x4d758b['json']();return new FailedAuthResponse(_0xcd3ada);}catch(_0x481aba){if(_0x481aba instanceof Error)return new FailedAuthResponse({'detail':_0x481aba['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x481aba;}});}}
14
+
15
+ export { AdminClient, AuthClient, TokenManager };
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x2963d,_0x1596d0,_0x77b591,_0x3f30f7){function _0x4afc0a(_0x194356){return _0x194356 instanceof _0x77b591?_0x194356:new _0x77b591(function(_0x37ab00){_0x37ab00(_0x194356);});}return new(_0x77b591||(_0x77b591=Promise))(function(_0x2c7504,_0x15beaf){function _0x2a3483(_0x56268d){try{_0x29d58e(_0x3f30f7['next'](_0x56268d));}catch(_0x4e84f0){_0x15beaf(_0x4e84f0);}}function _0x121875(_0x495ee0){try{_0x29d58e(_0x3f30f7['throw'](_0x495ee0));}catch(_0xb1f217){_0x15beaf(_0xb1f217);}}function _0x29d58e(_0x327b0e){_0x327b0e['done']?_0x2c7504(_0x327b0e['value']):_0x4afc0a(_0x327b0e['value'])['then'](_0x2a3483,_0x121875);}_0x29d58e((_0x3f30f7=_0x3f30f7['apply'](_0x2963d,_0x1596d0||[]))['next']());});};class TokenManager{constructor(_0x1daea5){this['authClient']=_0x1daea5;}['getOrRefreshTokens'](_0x448a51){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0x448a51['access_expires'])return new SuccessfulAuthResponse(_0x448a51);if(Date['now']()>_0x448a51['refresh_expires'])return yield this['authClient']['refresh'](_0x448a51['refresh_token']);return new FailedAuthResponse({'detail':'Refresh\x20token\x20expired','title':'','status':0x194,'instance':'','type':''});});}}
3
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x30daa8,_0x46d1ad,_0x2ebcd2,_0x4077a9){function _0x2707c6(_0x2d4e29){return _0x2d4e29 instanceof _0x2ebcd2?_0x2d4e29:new _0x2ebcd2(function(_0x29e307){_0x29e307(_0x2d4e29);});}return new(_0x2ebcd2||(_0x2ebcd2=Promise))(function(_0x1372a0,_0x402bca){function _0x498abb(_0x303e29){try{_0x152a11(_0x4077a9['next'](_0x303e29));}catch(_0x3b6aa3){_0x402bca(_0x3b6aa3);}}function _0x4dbb09(_0x20fca1){try{_0x152a11(_0x4077a9['throw'](_0x20fca1));}catch(_0x2fc374){_0x402bca(_0x2fc374);}}function _0x152a11(_0x5183d4){_0x5183d4['done']?_0x1372a0(_0x5183d4['value']):_0x2707c6(_0x5183d4['value'])['then'](_0x498abb,_0x4dbb09);}_0x152a11((_0x4077a9=_0x4077a9['apply'](_0x30daa8,_0x46d1ad||[]))['next']());});};class TokenManager{constructor(_0x7543f7){this['authClient']=_0x7543f7;}['getOrRefreshTokens'](_0x11998e){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0x11998e['access_expires'])return new SuccessfulAuthResponse(_0x11998e);if(Date['now']()<_0x11998e['refresh_expires'])return yield this['authClient']['refresh'](_0x11998e['refresh_token']);return new FailedAuthResponse({'detail':'Refresh\x20token\x20expired','title':'','status':0x194,'instance':'','type':''});});}}
4
4
 
5
- class Response{constructor(_0x42a1f0){this['isSuccess']=_0x42a1f0;}}class SuccessfulAccountResponse extends Response{constructor(_0x3b5e43){super(!![]),this['account']=_0x3b5e43;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x3bfd46){super(![]),this['problem']=_0x3bfd46;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x242d37){super(!![]),this['tokens']=_0x242d37;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x303d43){super(![]),this['problem']=_0x303d43;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x5b7685){super(!![]),this['apiKey']=_0x5b7685;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x5644e5){super(![]),this['problem']=_0x5644e5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
5
+ class Response{constructor(_0x416de7){this['isSuccess']=_0x416de7;}}class SuccessfulAccountResponse extends Response{constructor(_0x3db019){super(!![]),this['account']=_0x3db019;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x2d1de4){super(![]),this['problem']=_0x2d1de4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x5765a2){super(!![]),this['tokens']=_0x5765a2;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x34db6c){super(![]),this['problem']=_0x34db6c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x1ba737){super(!![]),this['apiKey']=_0x1ba737;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x59ba96){super(![]),this['problem']=_0x59ba96;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
6
6
 
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x1f6b5c,_0x2ca14a,_0x8578bc,_0x4ff2e6){function _0x5dbdf9(_0x9ce6b0){return _0x9ce6b0 instanceof _0x8578bc?_0x9ce6b0:new _0x8578bc(function(_0x4b3eb5){_0x4b3eb5(_0x9ce6b0);});}return new(_0x8578bc||(_0x8578bc=Promise))(function(_0x242551,_0x1b1a53){function _0x1937be(_0x394b76){try{_0x50c891(_0x4ff2e6['next'](_0x394b76));}catch(_0x5866b7){_0x1b1a53(_0x5866b7);}}function _0x18018b(_0x4e752b){try{_0x50c891(_0x4ff2e6['throw'](_0x4e752b));}catch(_0x35fdb0){_0x1b1a53(_0x35fdb0);}}function _0x50c891(_0x32670a){_0x32670a['done']?_0x242551(_0x32670a['value']):_0x5dbdf9(_0x32670a['value'])['then'](_0x1937be,_0x18018b);}_0x50c891((_0x4ff2e6=_0x4ff2e6['apply'](_0x1f6b5c,_0x2ca14a||[]))['next']());});};class AccountService{constructor(_0xb28274){this['fetch']=_0xb28274;}['get'](_0x2d0f37,_0x13e3ae){return __awaiter$4(this,void 0,void 0,function*(){const _0x4a1f29='Account/'+_0x2d0f37+'/',_0x24d81e=yield this['fetch']['get'](_0x4a1f29,_0x13e3ae);try{if(_0x24d81e['status']>0xc7&&_0x24d81e['status']<0x12c){const _0x4572b1=yield _0x24d81e['json']();return new SuccessfulAccountResponse(_0x4572b1);}const _0x51e694=yield _0x24d81e['json']();return new FailedAccountResponse(_0x51e694);}catch(_0x3dbf93){if(_0x3dbf93 instanceof Error)return new FailedAccountResponse({'detail':_0x3dbf93['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3dbf93;}});}}
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x4fcf35,_0x5c0b51,_0x1c9547,_0x9aaa65){function _0x454fa3(_0x3c6510){return _0x3c6510 instanceof _0x1c9547?_0x3c6510:new _0x1c9547(function(_0x107765){_0x107765(_0x3c6510);});}return new(_0x1c9547||(_0x1c9547=Promise))(function(_0x5037c6,_0x31ef0a){function _0x173fd8(_0x5a04cb){try{_0x36dc84(_0x9aaa65['next'](_0x5a04cb));}catch(_0x100bf4){_0x31ef0a(_0x100bf4);}}function _0x12adbc(_0xe8ed03){try{_0x36dc84(_0x9aaa65['throw'](_0xe8ed03));}catch(_0x8a0fb){_0x31ef0a(_0x8a0fb);}}function _0x36dc84(_0x4ffa1a){_0x4ffa1a['done']?_0x5037c6(_0x4ffa1a['value']):_0x454fa3(_0x4ffa1a['value'])['then'](_0x173fd8,_0x12adbc);}_0x36dc84((_0x9aaa65=_0x9aaa65['apply'](_0x4fcf35,_0x5c0b51||[]))['next']());});};class AccountService{constructor(_0xccd093){this['fetch']=_0xccd093;}['get'](_0x56f8a5,_0x15c01d){return __awaiter$4(this,void 0,void 0,function*(){const _0x1de3a3='Account/'+_0x56f8a5+'/',_0x3141f7=yield this['fetch']['get'](_0x1de3a3,_0x15c01d);try{if(_0x3141f7['status']>0xc7&&_0x3141f7['status']<0x12c){const _0x261f58=yield _0x3141f7['json']();return new SuccessfulAccountResponse(_0x261f58);}const _0x304335=yield _0x3141f7['json']();return new FailedAccountResponse(_0x304335);}catch(_0x2c9fdb){if(_0x2c9fdb instanceof Error)return new FailedAccountResponse({'detail':_0x2c9fdb['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2c9fdb;}});}}
8
8
 
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x169fc9,_0x2912b5,_0x2e1f6b,_0x3a0e33){function _0x366b2b(_0x58e1e5){return _0x58e1e5 instanceof _0x2e1f6b?_0x58e1e5:new _0x2e1f6b(function(_0x377292){_0x377292(_0x58e1e5);});}return new(_0x2e1f6b||(_0x2e1f6b=Promise))(function(_0x14eb42,_0x32db15){function _0x131d0c(_0x3690a2){try{_0x2d1022(_0x3a0e33['next'](_0x3690a2));}catch(_0x37079f){_0x32db15(_0x37079f);}}function _0x27117b(_0x3a8e82){try{_0x2d1022(_0x3a0e33['throw'](_0x3a8e82));}catch(_0x1dc1d2){_0x32db15(_0x1dc1d2);}}function _0x2d1022(_0x1c31e3){_0x1c31e3['done']?_0x14eb42(_0x1c31e3['value']):_0x366b2b(_0x1c31e3['value'])['then'](_0x131d0c,_0x27117b);}_0x2d1022((_0x3a0e33=_0x3a0e33['apply'](_0x169fc9,_0x2912b5||[]))['next']());});};class ApiKeyService{constructor(_0x21d02a){this['fetch']=_0x21d02a;}['create'](_0x3ec22f,_0x5ee1cd,_0x1f431a){return __awaiter$3(this,void 0,void 0,function*(){const _0x2a0b38='api-key/create',_0xbf2398={'account_name':_0x3ec22f,'name':_0x5ee1cd};try{const _0xe1230c=yield this['fetch']['post'](_0x2a0b38,_0x1f431a,_0xbf2398);if(_0xe1230c['status']>0xc7&&_0xe1230c['status']<0x12c){const _0x5f1992=yield _0xe1230c['json']();return new SuccessfulApiKeyResponse(_0x5f1992);}const _0xad8af3=yield _0xe1230c['json']();return new FailedApiKeyResponse(_0xad8af3);}catch(_0x5beaa8){if(_0x5beaa8 instanceof Error)return new FailedApiKeyResponse({'detail':_0x5beaa8['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5beaa8;}});}}
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x3cf3a3,_0x140cd7,_0x5f50e2,_0x19a3c5){function _0xdd6acc(_0x538b87){return _0x538b87 instanceof _0x5f50e2?_0x538b87:new _0x5f50e2(function(_0x2cdc3c){_0x2cdc3c(_0x538b87);});}return new(_0x5f50e2||(_0x5f50e2=Promise))(function(_0x443f1e,_0x5de789){function _0xe2841e(_0x527e20){try{_0x29bf8b(_0x19a3c5['next'](_0x527e20));}catch(_0x35f4b7){_0x5de789(_0x35f4b7);}}function _0x4449da(_0x1d841e){try{_0x29bf8b(_0x19a3c5['throw'](_0x1d841e));}catch(_0x52fece){_0x5de789(_0x52fece);}}function _0x29bf8b(_0x1da191){_0x1da191['done']?_0x443f1e(_0x1da191['value']):_0xdd6acc(_0x1da191['value'])['then'](_0xe2841e,_0x4449da);}_0x29bf8b((_0x19a3c5=_0x19a3c5['apply'](_0x3cf3a3,_0x140cd7||[]))['next']());});};class ApiKeyService{constructor(_0x326415){this['fetch']=_0x326415;}['create'](_0x436589,_0x41bc05,_0x527759){return __awaiter$3(this,void 0,void 0,function*(){const _0x1e0ba4='api-key/create',_0x4c9829={'account_name':_0x436589,'name':_0x41bc05};try{const _0x29f0ae=yield this['fetch']['post'](_0x1e0ba4,_0x527759,_0x4c9829);if(_0x29f0ae['status']>0xc7&&_0x29f0ae['status']<0x12c){const _0x377bcf=yield _0x29f0ae['json']();return new SuccessfulApiKeyResponse(_0x377bcf);}const _0x4a772c=yield _0x29f0ae['json']();return new FailedApiKeyResponse(_0x4a772c);}catch(_0xcfffc3){if(_0xcfffc3 instanceof Error)return new FailedApiKeyResponse({'detail':_0xcfffc3['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xcfffc3;}});}}
10
10
 
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x24ae4d,_0x29ae09,_0x4f5ca8,_0x55298e){function _0x4d32be(_0x5c3d6d){return _0x5c3d6d instanceof _0x4f5ca8?_0x5c3d6d:new _0x4f5ca8(function(_0x3f2525){_0x3f2525(_0x5c3d6d);});}return new(_0x4f5ca8||(_0x4f5ca8=Promise))(function(_0x2bd212,_0x362c12){function _0x421a09(_0x14df45){try{_0x245d3b(_0x55298e['next'](_0x14df45));}catch(_0xcee581){_0x362c12(_0xcee581);}}function _0x4b3144(_0x20337e){try{_0x245d3b(_0x55298e['throw'](_0x20337e));}catch(_0x125ac2){_0x362c12(_0x125ac2);}}function _0x245d3b(_0x24a78d){_0x24a78d['done']?_0x2bd212(_0x24a78d['value']):_0x4d32be(_0x24a78d['value'])['then'](_0x421a09,_0x4b3144);}_0x245d3b((_0x55298e=_0x55298e['apply'](_0x24ae4d,_0x29ae09||[]))['next']());});};class ListService{constructor(_0x472aa7){this['fetch']=_0x472aa7;}['add'](_0x435d6b,_0x228e36,_0x106511){return __awaiter$2(this,void 0,void 0,function*(){const _0x3f2bc8='List',_0x5f2423={'account_name':_0x435d6b,'list_name':_0x228e36};try{const _0x273f66=yield this['fetch']['post'](_0x3f2bc8,_0x106511,_0x5f2423);if(_0x273f66['status']>0xc7&&_0x273f66['status']<0x12c){const _0x1256f2=yield _0x273f66['json']();return new SuccessfulAccountResponse(_0x1256f2);}const _0x521359=yield _0x273f66['json']();return new FailedAccountResponse(_0x521359);}catch(_0xb8e004){if(_0xb8e004 instanceof Error)return new FailedAccountResponse({'detail':_0xb8e004['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xb8e004;}});}['remove'](_0x517ae6,_0x583108,_0xd576ec){return __awaiter$2(this,void 0,void 0,function*(){const _0x13be7e='List/'+_0x517ae6+'/'+_0x583108,_0x4092b8=yield this['fetch']['delete'](_0x13be7e,_0xd576ec);try{if(_0x4092b8['status']>0xc7&&_0x4092b8['status']<0x12c){const _0x436b72=yield _0x4092b8['json']();return new SuccessfulAccountResponse(_0x436b72);}const _0x1c1f8e=yield _0x4092b8['json']();return new FailedAccountResponse(_0x1c1f8e);}catch(_0x5327ca){if(_0x5327ca instanceof Error)return new FailedAccountResponse({'detail':_0x5327ca['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5327ca;}});}}
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x3e3e1e,_0xae332f,_0x41d5cc,_0x400401){function _0x285e66(_0x809834){return _0x809834 instanceof _0x41d5cc?_0x809834:new _0x41d5cc(function(_0x4ad534){_0x4ad534(_0x809834);});}return new(_0x41d5cc||(_0x41d5cc=Promise))(function(_0x1f4f6a,_0x5aa650){function _0x20e626(_0xa16206){try{_0x6731b9(_0x400401['next'](_0xa16206));}catch(_0x416673){_0x5aa650(_0x416673);}}function _0x4e2f05(_0x521ebc){try{_0x6731b9(_0x400401['throw'](_0x521ebc));}catch(_0x38c25f){_0x5aa650(_0x38c25f);}}function _0x6731b9(_0x45b093){_0x45b093['done']?_0x1f4f6a(_0x45b093['value']):_0x285e66(_0x45b093['value'])['then'](_0x20e626,_0x4e2f05);}_0x6731b9((_0x400401=_0x400401['apply'](_0x3e3e1e,_0xae332f||[]))['next']());});};class ListService{constructor(_0x34f7ab){this['fetch']=_0x34f7ab;}['add'](_0x22025c,_0x90be9c,_0x443081){return __awaiter$2(this,void 0,void 0,function*(){const _0x149c65='List',_0x83cd21={'account_name':_0x22025c,'list_name':_0x90be9c};try{const _0xb03c59=yield this['fetch']['post'](_0x149c65,_0x443081,_0x83cd21);if(_0xb03c59['status']>0xc7&&_0xb03c59['status']<0x12c){const _0x4bfca3=yield _0xb03c59['json']();return new SuccessfulAccountResponse(_0x4bfca3);}const _0x4711f9=yield _0xb03c59['json']();return new FailedAccountResponse(_0x4711f9);}catch(_0x23c94d){if(_0x23c94d instanceof Error)return new FailedAccountResponse({'detail':_0x23c94d['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x23c94d;}});}['remove'](_0x585cb5,_0x406591,_0x28ef3b){return __awaiter$2(this,void 0,void 0,function*(){const _0x56ebb2='List/'+_0x585cb5+'/'+_0x406591,_0x566865=yield this['fetch']['delete'](_0x56ebb2,_0x28ef3b);try{if(_0x566865['status']>0xc7&&_0x566865['status']<0x12c){const _0x3ba098=yield _0x566865['json']();return new SuccessfulAccountResponse(_0x3ba098);}const _0x46c42f=yield _0x566865['json']();return new FailedAccountResponse(_0x46c42f);}catch(_0x5a937a){if(_0x5a937a instanceof Error)return new FailedAccountResponse({'detail':_0x5a937a['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5a937a;}});}}
12
12
 
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x49ffee,_0x3ee220,_0xd9b074,_0xdef6a2){function _0x316412(_0x53019d){return _0x53019d instanceof _0xd9b074?_0x53019d:new _0xd9b074(function(_0x3d1f0b){_0x3d1f0b(_0x53019d);});}return new(_0xd9b074||(_0xd9b074=Promise))(function(_0x4a26c2,_0x3324c1){function _0x5149b9(_0x4e19bb){try{_0x107907(_0xdef6a2['next'](_0x4e19bb));}catch(_0x461c94){_0x3324c1(_0x461c94);}}function _0x44da98(_0x532fcb){try{_0x107907(_0xdef6a2['throw'](_0x532fcb));}catch(_0x4b1c35){_0x3324c1(_0x4b1c35);}}function _0x107907(_0x38f0f2){_0x38f0f2['done']?_0x4a26c2(_0x38f0f2['value']):_0x316412(_0x38f0f2['value'])['then'](_0x5149b9,_0x44da98);}_0x107907((_0xdef6a2=_0xdef6a2['apply'](_0x49ffee,_0x3ee220||[]))['next']());});};class Fetch{constructor(_0x468fea){this['baseUri']=_0x468fea,this['getUrl']=_0x251431=>{return _0x251431['startsWith']('/')&&(_0x251431=_0x251431['replace']('/','')),''+this['baseUri']+_0x251431;},!_0x468fea['endsWith']('/')&&(_0x468fea=_0x468fea+'/');}['get'](_0x1a72e7,_0x5333fc){return __awaiter$1(this,void 0,void 0,function*(){const _0x553fde=this['getUrl'](_0x1a72e7);return yield fetch(_0x553fde,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5333fc}});});}['post'](_0x5e4e12,_0x3dc14f,_0x148b5d){return __awaiter$1(this,void 0,void 0,function*(){const _0x1314ed=this['getUrl'](_0x5e4e12);return yield fetch(_0x1314ed,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3dc14f},'body':_0x148b5d?JSON['stringify'](_0x148b5d):null});});}['put'](_0x678221,_0x4e56b6,_0x5b3c21){return __awaiter$1(this,void 0,void 0,function*(){const _0x54b4d3=this['getUrl'](_0x678221);return yield fetch(_0x54b4d3,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4e56b6},'body':_0x5b3c21?JSON['stringify'](_0x5b3c21):null});});}['delete'](_0x4b251b,_0x3d3730){return __awaiter$1(this,void 0,void 0,function*(){const _0x267881=this['getUrl'](_0x4b251b);return yield fetch(_0x267881,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3d3730}});});}}
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x30e969,_0xb8331,_0x2d6554,_0x11fc95){function _0x108094(_0x46914e){return _0x46914e instanceof _0x2d6554?_0x46914e:new _0x2d6554(function(_0x1cfb8e){_0x1cfb8e(_0x46914e);});}return new(_0x2d6554||(_0x2d6554=Promise))(function(_0x134846,_0x27da27){function _0x4099b2(_0x1fa98d){try{_0x3fa855(_0x11fc95['next'](_0x1fa98d));}catch(_0x17e4b2){_0x27da27(_0x17e4b2);}}function _0x30555d(_0x3c4282){try{_0x3fa855(_0x11fc95['throw'](_0x3c4282));}catch(_0x5e7262){_0x27da27(_0x5e7262);}}function _0x3fa855(_0xc73347){_0xc73347['done']?_0x134846(_0xc73347['value']):_0x108094(_0xc73347['value'])['then'](_0x4099b2,_0x30555d);}_0x3fa855((_0x11fc95=_0x11fc95['apply'](_0x30e969,_0xb8331||[]))['next']());});};class Fetch{constructor(_0x403f0d){this['baseUri']=_0x403f0d,this['getUrl']=_0x217f38=>{return _0x217f38['startsWith']('/')&&(_0x217f38=_0x217f38['replace']('/','')),''+this['baseUri']+_0x217f38;},!_0x403f0d['endsWith']('/')&&(_0x403f0d=_0x403f0d+'/');}['get'](_0x13f400,_0x519512){return __awaiter$1(this,void 0,void 0,function*(){const _0x234385=this['getUrl'](_0x13f400);return yield fetch(_0x234385,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x519512}});});}['post'](_0x41fdbf,_0x2098ac,_0x378a77){return __awaiter$1(this,void 0,void 0,function*(){const _0x359041=this['getUrl'](_0x41fdbf);return yield fetch(_0x359041,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2098ac},'body':_0x378a77?JSON['stringify'](_0x378a77):null});});}['put'](_0x39543b,_0x3e18b9,_0x575b61){return __awaiter$1(this,void 0,void 0,function*(){const _0x385021=this['getUrl'](_0x39543b);return yield fetch(_0x385021,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3e18b9},'body':_0x575b61?JSON['stringify'](_0x575b61):null});});}['delete'](_0x2c6035,_0x5127b7){return __awaiter$1(this,void 0,void 0,function*(){const _0x283d78=this['getUrl'](_0x2c6035);return yield fetch(_0x283d78,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5127b7}});});}}
14
14
 
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x4036be,_0x589af7,_0x2574a5,_0xbf0e2e){function _0x5e0a29(_0x2c92c0){return _0x2c92c0 instanceof _0x2574a5?_0x2c92c0:new _0x2574a5(function(_0x4ab0ee){_0x4ab0ee(_0x2c92c0);});}return new(_0x2574a5||(_0x2574a5=Promise))(function(_0x9d4145,_0x2389b6){function _0x2592ef(_0x12369e){try{_0x2a81a4(_0xbf0e2e['next'](_0x12369e));}catch(_0x2ed35c){_0x2389b6(_0x2ed35c);}}function _0x3b10c9(_0x1f6749){try{_0x2a81a4(_0xbf0e2e['throw'](_0x1f6749));}catch(_0x58b736){_0x2389b6(_0x58b736);}}function _0x2a81a4(_0x43d6e6){_0x43d6e6['done']?_0x9d4145(_0x43d6e6['value']):_0x5e0a29(_0x43d6e6['value'])['then'](_0x2592ef,_0x3b10c9);}_0x2a81a4((_0xbf0e2e=_0xbf0e2e['apply'](_0x4036be,_0x589af7||[]))['next']());});};class AdminClient{constructor(_0x5af802='https://admin.searchability.dev/'){var _0x33188b=new Fetch(_0x5af802);this['Accounts']=new AccountService(_0x33188b),this['Lists']=new ListService(_0x33188b),this['ApiKeys']=new ApiKeyService(_0x33188b);}}class AuthClient{constructor(_0x494547='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x494547);}['login'](_0x20fe7d){return __awaiter(this,void 0,void 0,function*(){var _0x2878b4='login/'+_0x20fe7d;try{const _0x1c1c17=yield yield fetch(_0x2878b4);if(_0x1c1c17['status']>0xc7&&_0x1c1c17['status']<0x12c){const _0x408b48=yield _0x1c1c17['json']();return new SuccessfulAuthResponse(_0x408b48);}const _0x23186e=yield _0x1c1c17['json']();return new FailedAuthResponse(_0x23186e);}catch(_0x6e50ba){if(_0x6e50ba instanceof Error)return new FailedAuthResponse({'detail':_0x6e50ba['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x6e50ba;}});}['refresh'](_0x37d5e1){return __awaiter(this,void 0,void 0,function*(){var _0xc2edc2='refresh';try{const _0x42b23a=yield this['fetch']['post'](_0xc2edc2,_0x37d5e1,null);if(_0x42b23a['status']>0xc7&&_0x42b23a['status']<0x12c){const _0x4678d4=yield _0x42b23a['json']();return new SuccessfulAuthResponse(_0x4678d4);}const _0x5379dc=yield _0x42b23a['json']();return new FailedAuthResponse(_0x5379dc);}catch(_0xdb8777){if(_0xdb8777 instanceof Error)return new FailedAuthResponse({'detail':_0xdb8777['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xdb8777;}});}}
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x3256d5,_0x5c4a27,_0x3cc980,_0x12cd7c){function _0x215077(_0x175098){return _0x175098 instanceof _0x3cc980?_0x175098:new _0x3cc980(function(_0x4fb161){_0x4fb161(_0x175098);});}return new(_0x3cc980||(_0x3cc980=Promise))(function(_0x315db0,_0x339bb5){function _0x364f21(_0x5b3ab1){try{_0x1f3842(_0x12cd7c['next'](_0x5b3ab1));}catch(_0x55361d){_0x339bb5(_0x55361d);}}function _0x41e441(_0x27a65d){try{_0x1f3842(_0x12cd7c['throw'](_0x27a65d));}catch(_0x102cf3){_0x339bb5(_0x102cf3);}}function _0x1f3842(_0x214cd2){_0x214cd2['done']?_0x315db0(_0x214cd2['value']):_0x215077(_0x214cd2['value'])['then'](_0x364f21,_0x41e441);}_0x1f3842((_0x12cd7c=_0x12cd7c['apply'](_0x3256d5,_0x5c4a27||[]))['next']());});};class AdminClient{constructor(_0x5141bf='https://admin.searchability.dev/'){var _0x31a385=new Fetch(_0x5141bf);this['Accounts']=new AccountService(_0x31a385),this['Lists']=new ListService(_0x31a385),this['ApiKeys']=new ApiKeyService(_0x31a385);}}class AuthClient{constructor(_0x2cce21='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x2cce21);}['login'](_0x2a073f){return __awaiter(this,void 0,void 0,function*(){var _0x1c1280='login/'+_0x2a073f;try{const _0x498ddc=yield yield fetch(_0x1c1280);if(_0x498ddc['status']>0xc7&&_0x498ddc['status']<0x12c){const _0x5c5809=yield _0x498ddc['json']();return new SuccessfulAuthResponse(_0x5c5809);}const _0x2f5bc2=yield _0x498ddc['json']();return new FailedAuthResponse(_0x2f5bc2);}catch(_0x7769a3){if(_0x7769a3 instanceof Error)return new FailedAuthResponse({'detail':_0x7769a3['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x7769a3;}});}['refresh'](_0x416526){return __awaiter(this,void 0,void 0,function*(){var _0x5b3b81='refresh';try{const _0x506930=yield this['fetch']['post'](_0x5b3b81,_0x416526,null);if(_0x506930['status']>0xc7&&_0x506930['status']<0x12c){const _0x4f9d0a=yield _0x506930['json']();return new SuccessfulAuthResponse(_0x4f9d0a);}const _0x489cce=yield _0x506930['json']();return new FailedAuthResponse(_0x489cce);}catch(_0x3e68a9){if(_0x3e68a9 instanceof Error)return new FailedAuthResponse({'detail':_0x3e68a9['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3e68a9;}});}}
16
16
 
17
17
  exports.AdminClient = AdminClient;
18
18
  exports.AuthClient = AuthClient;
@@ -1,15 +1,15 @@
1
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x38e87d,_0x2921ee,_0x3f8c70,_0x1911b9){function _0x1e8a26(_0x34d2cd){return _0x34d2cd instanceof _0x3f8c70?_0x34d2cd:new _0x3f8c70(function(_0x7ad0a2){_0x7ad0a2(_0x34d2cd);});}return new(_0x3f8c70||(_0x3f8c70=Promise))(function(_0x39b5a3,_0x2c783b){function _0x3d891c(_0x3fa152){try{_0x4ebf1f(_0x1911b9['next'](_0x3fa152));}catch(_0xfaf49){_0x2c783b(_0xfaf49);}}function _0x3dbe81(_0x4e68cf){try{_0x4ebf1f(_0x1911b9['throw'](_0x4e68cf));}catch(_0x40438d){_0x2c783b(_0x40438d);}}function _0x4ebf1f(_0x40aa6c){_0x40aa6c['done']?_0x39b5a3(_0x40aa6c['value']):_0x1e8a26(_0x40aa6c['value'])['then'](_0x3d891c,_0x3dbe81);}_0x4ebf1f((_0x1911b9=_0x1911b9['apply'](_0x38e87d,_0x2921ee||[]))['next']());});};class TokenManager{constructor(_0x566a8e){this['authClient']=_0x566a8e;}['getOrRefreshTokens'](_0x14cd8b){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0x14cd8b['access_expires'])return new SuccessfulAuthResponse(_0x14cd8b);if(Date['now']()>_0x14cd8b['refresh_expires'])return yield this['authClient']['refresh'](_0x14cd8b['refresh_token']);return new FailedAuthResponse({'detail':'Refresh\x20token\x20expired','title':'','status':0x194,'instance':'','type':''});});}}
1
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x31f1ca,_0x1f5c6a,_0x12d055,_0x3a4e2a){function _0x4d6770(_0x181ea3){return _0x181ea3 instanceof _0x12d055?_0x181ea3:new _0x12d055(function(_0x2f496c){_0x2f496c(_0x181ea3);});}return new(_0x12d055||(_0x12d055=Promise))(function(_0x36a472,_0x2a0da6){function _0x4c9600(_0x172bdc){try{_0xc8c02d(_0x3a4e2a['next'](_0x172bdc));}catch(_0x56740b){_0x2a0da6(_0x56740b);}}function _0x343d51(_0x32b650){try{_0xc8c02d(_0x3a4e2a['throw'](_0x32b650));}catch(_0x4fb1c7){_0x2a0da6(_0x4fb1c7);}}function _0xc8c02d(_0x56c547){_0x56c547['done']?_0x36a472(_0x56c547['value']):_0x4d6770(_0x56c547['value'])['then'](_0x4c9600,_0x343d51);}_0xc8c02d((_0x3a4e2a=_0x3a4e2a['apply'](_0x31f1ca,_0x1f5c6a||[]))['next']());});};class TokenManager{constructor(_0x10f951){this['authClient']=_0x10f951;}['getOrRefreshTokens'](_0x1f3ae5){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0x1f3ae5['access_expires'])return new SuccessfulAuthResponse(_0x1f3ae5);if(Date['now']()<_0x1f3ae5['refresh_expires'])return yield this['authClient']['refresh'](_0x1f3ae5['refresh_token']);return new FailedAuthResponse({'detail':'Refresh\x20token\x20expired','title':'','status':0x194,'instance':'','type':''});});}}
2
2
 
3
- class Response{constructor(_0xc5b5b){this['isSuccess']=_0xc5b5b;}}class SuccessfulAccountResponse extends Response{constructor(_0x5e2b5d){super(!![]),this['account']=_0x5e2b5d;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x52e606){super(![]),this['problem']=_0x52e606;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x363f48){super(!![]),this['tokens']=_0x363f48;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0xd32181){super(![]),this['problem']=_0xd32181;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x5687a4){super(!![]),this['apiKey']=_0x5687a4;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x26fd92){super(![]),this['problem']=_0x26fd92;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
3
+ class Response{constructor(_0x4b6280){this['isSuccess']=_0x4b6280;}}class SuccessfulAccountResponse extends Response{constructor(_0x15746a){super(!![]),this['account']=_0x15746a;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x4babc5){super(![]),this['problem']=_0x4babc5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x2705ce){super(!![]),this['tokens']=_0x2705ce;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x19c586){super(![]),this['problem']=_0x19c586;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x15e5bd){super(!![]),this['apiKey']=_0x15e5bd;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x488313){super(![]),this['problem']=_0x488313;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x126365,_0x1e79cc,_0x42cdb9,_0x2fc256){function _0x5f0b6a(_0x4d6acc){return _0x4d6acc instanceof _0x42cdb9?_0x4d6acc:new _0x42cdb9(function(_0x5e0efc){_0x5e0efc(_0x4d6acc);});}return new(_0x42cdb9||(_0x42cdb9=Promise))(function(_0x56674b,_0x28e173){function _0x40d38f(_0x406f98){try{_0x57c160(_0x2fc256['next'](_0x406f98));}catch(_0x21a678){_0x28e173(_0x21a678);}}function _0x4d8e47(_0x2a7032){try{_0x57c160(_0x2fc256['throw'](_0x2a7032));}catch(_0x1e8d85){_0x28e173(_0x1e8d85);}}function _0x57c160(_0x5bea9a){_0x5bea9a['done']?_0x56674b(_0x5bea9a['value']):_0x5f0b6a(_0x5bea9a['value'])['then'](_0x40d38f,_0x4d8e47);}_0x57c160((_0x2fc256=_0x2fc256['apply'](_0x126365,_0x1e79cc||[]))['next']());});};class AccountService{constructor(_0x1b259e){this['fetch']=_0x1b259e;}['get'](_0xec0e27,_0x380f5c){return __awaiter$4(this,void 0,void 0,function*(){const _0x272617='Account/'+_0xec0e27+'/',_0x5bd1fd=yield this['fetch']['get'](_0x272617,_0x380f5c);try{if(_0x5bd1fd['status']>0xc7&&_0x5bd1fd['status']<0x12c){const _0x45d909=yield _0x5bd1fd['json']();return new SuccessfulAccountResponse(_0x45d909);}const _0x2f20f8=yield _0x5bd1fd['json']();return new FailedAccountResponse(_0x2f20f8);}catch(_0x18dd5c){if(_0x18dd5c instanceof Error)return new FailedAccountResponse({'detail':_0x18dd5c['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x18dd5c;}});}}
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x17657f,_0x18e79d,_0x313d83,_0x5e6ae3){function _0x179342(_0x4b809a){return _0x4b809a instanceof _0x313d83?_0x4b809a:new _0x313d83(function(_0x3e6ae9){_0x3e6ae9(_0x4b809a);});}return new(_0x313d83||(_0x313d83=Promise))(function(_0x4283c3,_0x4e5217){function _0x3f448e(_0x547e0c){try{_0xb504cf(_0x5e6ae3['next'](_0x547e0c));}catch(_0x576886){_0x4e5217(_0x576886);}}function _0x4b3d35(_0x1fe4f2){try{_0xb504cf(_0x5e6ae3['throw'](_0x1fe4f2));}catch(_0x424b22){_0x4e5217(_0x424b22);}}function _0xb504cf(_0x25bef6){_0x25bef6['done']?_0x4283c3(_0x25bef6['value']):_0x179342(_0x25bef6['value'])['then'](_0x3f448e,_0x4b3d35);}_0xb504cf((_0x5e6ae3=_0x5e6ae3['apply'](_0x17657f,_0x18e79d||[]))['next']());});};class AccountService{constructor(_0x5247a2){this['fetch']=_0x5247a2;}['get'](_0x75505d,_0x5ac1cd){return __awaiter$4(this,void 0,void 0,function*(){const _0x49c6f2='Account/'+_0x75505d+'/',_0x35f2af=yield this['fetch']['get'](_0x49c6f2,_0x5ac1cd);try{if(_0x35f2af['status']>0xc7&&_0x35f2af['status']<0x12c){const _0x30e19e=yield _0x35f2af['json']();return new SuccessfulAccountResponse(_0x30e19e);}const _0x27ced0=yield _0x35f2af['json']();return new FailedAccountResponse(_0x27ced0);}catch(_0x434eda){if(_0x434eda instanceof Error)return new FailedAccountResponse({'detail':_0x434eda['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x434eda;}});}}
6
6
 
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x1237eb,_0x195ee5,_0x165c11,_0xb1fe3d){function _0x1662b9(_0x435d7b){return _0x435d7b instanceof _0x165c11?_0x435d7b:new _0x165c11(function(_0x26bfee){_0x26bfee(_0x435d7b);});}return new(_0x165c11||(_0x165c11=Promise))(function(_0x13a39d,_0x45299a){function _0x3af856(_0x567558){try{_0x5eb638(_0xb1fe3d['next'](_0x567558));}catch(_0x48be05){_0x45299a(_0x48be05);}}function _0x2db821(_0x5bc34e){try{_0x5eb638(_0xb1fe3d['throw'](_0x5bc34e));}catch(_0x509ea7){_0x45299a(_0x509ea7);}}function _0x5eb638(_0x10a717){_0x10a717['done']?_0x13a39d(_0x10a717['value']):_0x1662b9(_0x10a717['value'])['then'](_0x3af856,_0x2db821);}_0x5eb638((_0xb1fe3d=_0xb1fe3d['apply'](_0x1237eb,_0x195ee5||[]))['next']());});};class ApiKeyService{constructor(_0x177998){this['fetch']=_0x177998;}['create'](_0x165e47,_0x57d665,_0x1b4032){return __awaiter$3(this,void 0,void 0,function*(){const _0x145b9f='api-key/create',_0x138358={'account_name':_0x165e47,'name':_0x57d665};try{const _0x114143=yield this['fetch']['post'](_0x145b9f,_0x1b4032,_0x138358);if(_0x114143['status']>0xc7&&_0x114143['status']<0x12c){const _0x501786=yield _0x114143['json']();return new SuccessfulApiKeyResponse(_0x501786);}const _0x4eebcd=yield _0x114143['json']();return new FailedApiKeyResponse(_0x4eebcd);}catch(_0x580c47){if(_0x580c47 instanceof Error)return new FailedApiKeyResponse({'detail':_0x580c47['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x580c47;}});}}
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x23b06c,_0x50a8ce,_0x21847c,_0x471ed3){function _0x2534cb(_0x3bd958){return _0x3bd958 instanceof _0x21847c?_0x3bd958:new _0x21847c(function(_0x14f9a7){_0x14f9a7(_0x3bd958);});}return new(_0x21847c||(_0x21847c=Promise))(function(_0x19524b,_0x56de72){function _0x5b9ccc(_0x5cb518){try{_0x1c4aea(_0x471ed3['next'](_0x5cb518));}catch(_0x5e403f){_0x56de72(_0x5e403f);}}function _0x4af8cc(_0x414b4a){try{_0x1c4aea(_0x471ed3['throw'](_0x414b4a));}catch(_0x4fd2cb){_0x56de72(_0x4fd2cb);}}function _0x1c4aea(_0x3e66e6){_0x3e66e6['done']?_0x19524b(_0x3e66e6['value']):_0x2534cb(_0x3e66e6['value'])['then'](_0x5b9ccc,_0x4af8cc);}_0x1c4aea((_0x471ed3=_0x471ed3['apply'](_0x23b06c,_0x50a8ce||[]))['next']());});};class ApiKeyService{constructor(_0x5239ae){this['fetch']=_0x5239ae;}['create'](_0x5a3a51,_0x23fece,_0x101229){return __awaiter$3(this,void 0,void 0,function*(){const _0x58478c='api-key/create',_0x1ad7ed={'account_name':_0x5a3a51,'name':_0x23fece};try{const _0x180e5e=yield this['fetch']['post'](_0x58478c,_0x101229,_0x1ad7ed);if(_0x180e5e['status']>0xc7&&_0x180e5e['status']<0x12c){const _0x5c06b9=yield _0x180e5e['json']();return new SuccessfulApiKeyResponse(_0x5c06b9);}const _0x4f1f0c=yield _0x180e5e['json']();return new FailedApiKeyResponse(_0x4f1f0c);}catch(_0x38ed3d){if(_0x38ed3d instanceof Error)return new FailedApiKeyResponse({'detail':_0x38ed3d['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x38ed3d;}});}}
8
8
 
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x40fa61,_0x4d34ef,_0xb602f3,_0x2a439){function _0x29fb22(_0x5d288b){return _0x5d288b instanceof _0xb602f3?_0x5d288b:new _0xb602f3(function(_0x529b64){_0x529b64(_0x5d288b);});}return new(_0xb602f3||(_0xb602f3=Promise))(function(_0x32250c,_0x22cfb8){function _0x2550a8(_0x2563d3){try{_0x31eeed(_0x2a439['next'](_0x2563d3));}catch(_0x5dd533){_0x22cfb8(_0x5dd533);}}function _0x382241(_0x3346df){try{_0x31eeed(_0x2a439['throw'](_0x3346df));}catch(_0x4b47d2){_0x22cfb8(_0x4b47d2);}}function _0x31eeed(_0x475b0f){_0x475b0f['done']?_0x32250c(_0x475b0f['value']):_0x29fb22(_0x475b0f['value'])['then'](_0x2550a8,_0x382241);}_0x31eeed((_0x2a439=_0x2a439['apply'](_0x40fa61,_0x4d34ef||[]))['next']());});};class ListService{constructor(_0x7d67c){this['fetch']=_0x7d67c;}['add'](_0x106aa0,_0x2e3ebe,_0x3d078c){return __awaiter$2(this,void 0,void 0,function*(){const _0x382bbd='List',_0x95b903={'account_name':_0x106aa0,'list_name':_0x2e3ebe};try{const _0x197703=yield this['fetch']['post'](_0x382bbd,_0x3d078c,_0x95b903);if(_0x197703['status']>0xc7&&_0x197703['status']<0x12c){const _0x5990b3=yield _0x197703['json']();return new SuccessfulAccountResponse(_0x5990b3);}const _0x53f86a=yield _0x197703['json']();return new FailedAccountResponse(_0x53f86a);}catch(_0x1ef303){if(_0x1ef303 instanceof Error)return new FailedAccountResponse({'detail':_0x1ef303['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x1ef303;}});}['remove'](_0x2228c5,_0x29da96,_0x4c18ad){return __awaiter$2(this,void 0,void 0,function*(){const _0x26d511='List/'+_0x2228c5+'/'+_0x29da96,_0xe8d23a=yield this['fetch']['delete'](_0x26d511,_0x4c18ad);try{if(_0xe8d23a['status']>0xc7&&_0xe8d23a['status']<0x12c){const _0x56e30e=yield _0xe8d23a['json']();return new SuccessfulAccountResponse(_0x56e30e);}const _0x4a9e89=yield _0xe8d23a['json']();return new FailedAccountResponse(_0x4a9e89);}catch(_0x29fb49){if(_0x29fb49 instanceof Error)return new FailedAccountResponse({'detail':_0x29fb49['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x29fb49;}});}}
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0xdc163b,_0x39b9cf,_0x5ef981,_0x4f18b8){function _0x5f009a(_0x4d62c8){return _0x4d62c8 instanceof _0x5ef981?_0x4d62c8:new _0x5ef981(function(_0x57d094){_0x57d094(_0x4d62c8);});}return new(_0x5ef981||(_0x5ef981=Promise))(function(_0xd7ae0d,_0x1b0fba){function _0x3c2023(_0x26719d){try{_0x2006bc(_0x4f18b8['next'](_0x26719d));}catch(_0x21fd2c){_0x1b0fba(_0x21fd2c);}}function _0x1f2a98(_0x339f22){try{_0x2006bc(_0x4f18b8['throw'](_0x339f22));}catch(_0x42a39a){_0x1b0fba(_0x42a39a);}}function _0x2006bc(_0x2870be){_0x2870be['done']?_0xd7ae0d(_0x2870be['value']):_0x5f009a(_0x2870be['value'])['then'](_0x3c2023,_0x1f2a98);}_0x2006bc((_0x4f18b8=_0x4f18b8['apply'](_0xdc163b,_0x39b9cf||[]))['next']());});};class ListService{constructor(_0x1d8010){this['fetch']=_0x1d8010;}['add'](_0x227172,_0x49dc25,_0x494544){return __awaiter$2(this,void 0,void 0,function*(){const _0x41183f='List',_0x1ba37a={'account_name':_0x227172,'list_name':_0x49dc25};try{const _0xf52e84=yield this['fetch']['post'](_0x41183f,_0x494544,_0x1ba37a);if(_0xf52e84['status']>0xc7&&_0xf52e84['status']<0x12c){const _0x5baf5d=yield _0xf52e84['json']();return new SuccessfulAccountResponse(_0x5baf5d);}const _0x497607=yield _0xf52e84['json']();return new FailedAccountResponse(_0x497607);}catch(_0x2535ed){if(_0x2535ed instanceof Error)return new FailedAccountResponse({'detail':_0x2535ed['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2535ed;}});}['remove'](_0x5a594b,_0x928b1d,_0x3fa4d5){return __awaiter$2(this,void 0,void 0,function*(){const _0x32df2d='List/'+_0x5a594b+'/'+_0x928b1d,_0x1a712e=yield this['fetch']['delete'](_0x32df2d,_0x3fa4d5);try{if(_0x1a712e['status']>0xc7&&_0x1a712e['status']<0x12c){const _0x587b01=yield _0x1a712e['json']();return new SuccessfulAccountResponse(_0x587b01);}const _0x2b60b5=yield _0x1a712e['json']();return new FailedAccountResponse(_0x2b60b5);}catch(_0x4f1f8e){if(_0x4f1f8e instanceof Error)return new FailedAccountResponse({'detail':_0x4f1f8e['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x4f1f8e;}});}}
10
10
 
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x385044,_0xca158a,_0x4bf943,_0x3e5cd3){function _0x53cf4c(_0x4c0baf){return _0x4c0baf instanceof _0x4bf943?_0x4c0baf:new _0x4bf943(function(_0x569602){_0x569602(_0x4c0baf);});}return new(_0x4bf943||(_0x4bf943=Promise))(function(_0x2b1f49,_0x5b5dc5){function _0x2856ea(_0x48c655){try{_0x4c6e65(_0x3e5cd3['next'](_0x48c655));}catch(_0x58583a){_0x5b5dc5(_0x58583a);}}function _0x3be203(_0x4e029e){try{_0x4c6e65(_0x3e5cd3['throw'](_0x4e029e));}catch(_0x2cdb2f){_0x5b5dc5(_0x2cdb2f);}}function _0x4c6e65(_0x402e14){_0x402e14['done']?_0x2b1f49(_0x402e14['value']):_0x53cf4c(_0x402e14['value'])['then'](_0x2856ea,_0x3be203);}_0x4c6e65((_0x3e5cd3=_0x3e5cd3['apply'](_0x385044,_0xca158a||[]))['next']());});};class Fetch{constructor(_0xb9295e){this['baseUri']=_0xb9295e,this['getUrl']=_0x2e22bd=>{return _0x2e22bd['startsWith']('/')&&(_0x2e22bd=_0x2e22bd['replace']('/','')),''+this['baseUri']+_0x2e22bd;},!_0xb9295e['endsWith']('/')&&(_0xb9295e=_0xb9295e+'/');}['get'](_0x5de8b5,_0x49f102){return __awaiter$1(this,void 0,void 0,function*(){const _0x52a2b3=this['getUrl'](_0x5de8b5);return yield fetch(_0x52a2b3,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x49f102}});});}['post'](_0x3255e5,_0x181c26,_0x41581d){return __awaiter$1(this,void 0,void 0,function*(){const _0x2adb92=this['getUrl'](_0x3255e5);return yield fetch(_0x2adb92,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x181c26},'body':_0x41581d?JSON['stringify'](_0x41581d):null});});}['put'](_0x54eca6,_0x1fa373,_0x30c6ac){return __awaiter$1(this,void 0,void 0,function*(){const _0x396e51=this['getUrl'](_0x54eca6);return yield fetch(_0x396e51,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1fa373},'body':_0x30c6ac?JSON['stringify'](_0x30c6ac):null});});}['delete'](_0xc99bc8,_0x3a26eb){return __awaiter$1(this,void 0,void 0,function*(){const _0x3aa41b=this['getUrl'](_0xc99bc8);return yield fetch(_0x3aa41b,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3a26eb}});});}}
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x2a13c7,_0x3f035b,_0x5b2117,_0x2b04bd){function _0x1c03f9(_0x104ad6){return _0x104ad6 instanceof _0x5b2117?_0x104ad6:new _0x5b2117(function(_0x2a0a2c){_0x2a0a2c(_0x104ad6);});}return new(_0x5b2117||(_0x5b2117=Promise))(function(_0x1eac07,_0x3aa0bc){function _0x34f332(_0x46ebf3){try{_0x3ca2ff(_0x2b04bd['next'](_0x46ebf3));}catch(_0x59ff93){_0x3aa0bc(_0x59ff93);}}function _0x57c4ed(_0x49a7fc){try{_0x3ca2ff(_0x2b04bd['throw'](_0x49a7fc));}catch(_0x58d04d){_0x3aa0bc(_0x58d04d);}}function _0x3ca2ff(_0x9d5d09){_0x9d5d09['done']?_0x1eac07(_0x9d5d09['value']):_0x1c03f9(_0x9d5d09['value'])['then'](_0x34f332,_0x57c4ed);}_0x3ca2ff((_0x2b04bd=_0x2b04bd['apply'](_0x2a13c7,_0x3f035b||[]))['next']());});};class Fetch{constructor(_0x1d6de1){this['baseUri']=_0x1d6de1,this['getUrl']=_0x46648c=>{return _0x46648c['startsWith']('/')&&(_0x46648c=_0x46648c['replace']('/','')),''+this['baseUri']+_0x46648c;},!_0x1d6de1['endsWith']('/')&&(_0x1d6de1=_0x1d6de1+'/');}['get'](_0x7ea006,_0x5bd59d){return __awaiter$1(this,void 0,void 0,function*(){const _0x318b00=this['getUrl'](_0x7ea006);return yield fetch(_0x318b00,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5bd59d}});});}['post'](_0x424e23,_0x3dea13,_0x1cc1c0){return __awaiter$1(this,void 0,void 0,function*(){const _0x2be1ec=this['getUrl'](_0x424e23);return yield fetch(_0x2be1ec,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3dea13},'body':_0x1cc1c0?JSON['stringify'](_0x1cc1c0):null});});}['put'](_0x1bee68,_0x2076d4,_0x210900){return __awaiter$1(this,void 0,void 0,function*(){const _0x593186=this['getUrl'](_0x1bee68);return yield fetch(_0x593186,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2076d4},'body':_0x210900?JSON['stringify'](_0x210900):null});});}['delete'](_0x39acaa,_0x38186b){return __awaiter$1(this,void 0,void 0,function*(){const _0x462699=this['getUrl'](_0x39acaa);return yield fetch(_0x462699,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x38186b}});});}}
12
12
 
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x4ec62e,_0x5afef9,_0x1d37ab,_0x3500c0){function _0x1e6add(_0x478856){return _0x478856 instanceof _0x1d37ab?_0x478856:new _0x1d37ab(function(_0x485265){_0x485265(_0x478856);});}return new(_0x1d37ab||(_0x1d37ab=Promise))(function(_0x5b3988,_0x1d9acf){function _0x57b0da(_0x750c24){try{_0xef0acc(_0x3500c0['next'](_0x750c24));}catch(_0xdef316){_0x1d9acf(_0xdef316);}}function _0x41c195(_0xc4b711){try{_0xef0acc(_0x3500c0['throw'](_0xc4b711));}catch(_0x12b88e){_0x1d9acf(_0x12b88e);}}function _0xef0acc(_0x96166a){_0x96166a['done']?_0x5b3988(_0x96166a['value']):_0x1e6add(_0x96166a['value'])['then'](_0x57b0da,_0x41c195);}_0xef0acc((_0x3500c0=_0x3500c0['apply'](_0x4ec62e,_0x5afef9||[]))['next']());});};class AdminClient{constructor(_0x3bd028='https://admin.searchability.dev/'){var _0x3964ac=new Fetch(_0x3bd028);this['Accounts']=new AccountService(_0x3964ac),this['Lists']=new ListService(_0x3964ac),this['ApiKeys']=new ApiKeyService(_0x3964ac);}}class AuthClient{constructor(_0x38dfab='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x38dfab);}['login'](_0x35bb0b){return __awaiter(this,void 0,void 0,function*(){var _0xc8465b='login/'+_0x35bb0b;try{const _0x32085d=yield yield fetch(_0xc8465b);if(_0x32085d['status']>0xc7&&_0x32085d['status']<0x12c){const _0x270c63=yield _0x32085d['json']();return new SuccessfulAuthResponse(_0x270c63);}const _0x3e2617=yield _0x32085d['json']();return new FailedAuthResponse(_0x3e2617);}catch(_0x38a207){if(_0x38a207 instanceof Error)return new FailedAuthResponse({'detail':_0x38a207['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x38a207;}});}['refresh'](_0x52f8ed){return __awaiter(this,void 0,void 0,function*(){var _0xafb754='refresh';try{const _0x474698=yield this['fetch']['post'](_0xafb754,_0x52f8ed,null);if(_0x474698['status']>0xc7&&_0x474698['status']<0x12c){const _0xa096a9=yield _0x474698['json']();return new SuccessfulAuthResponse(_0xa096a9);}const _0x2d41fc=yield _0x474698['json']();return new FailedAuthResponse(_0x2d41fc);}catch(_0x2e06c6){if(_0x2e06c6 instanceof Error)return new FailedAuthResponse({'detail':_0x2e06c6['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2e06c6;}});}}
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x34d8bb,_0x279ae0,_0x503ac5,_0x417fec){function _0x48964a(_0x429a24){return _0x429a24 instanceof _0x503ac5?_0x429a24:new _0x503ac5(function(_0x25b07e){_0x25b07e(_0x429a24);});}return new(_0x503ac5||(_0x503ac5=Promise))(function(_0x17932e,_0x5421ff){function _0x5216a1(_0x510321){try{_0xdbfd8a(_0x417fec['next'](_0x510321));}catch(_0x156b69){_0x5421ff(_0x156b69);}}function _0x111065(_0x3a5ca8){try{_0xdbfd8a(_0x417fec['throw'](_0x3a5ca8));}catch(_0x18101e){_0x5421ff(_0x18101e);}}function _0xdbfd8a(_0xa43d57){_0xa43d57['done']?_0x17932e(_0xa43d57['value']):_0x48964a(_0xa43d57['value'])['then'](_0x5216a1,_0x111065);}_0xdbfd8a((_0x417fec=_0x417fec['apply'](_0x34d8bb,_0x279ae0||[]))['next']());});};class AdminClient{constructor(_0x1ad5a7='https://admin.searchability.dev/'){var _0x92e6a=new Fetch(_0x1ad5a7);this['Accounts']=new AccountService(_0x92e6a),this['Lists']=new ListService(_0x92e6a),this['ApiKeys']=new ApiKeyService(_0x92e6a);}}class AuthClient{constructor(_0x5ae042='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x5ae042);}['login'](_0x15056b){return __awaiter(this,void 0,void 0,function*(){var _0xaa5f70='login/'+_0x15056b;try{const _0x52eed3=yield yield fetch(_0xaa5f70);if(_0x52eed3['status']>0xc7&&_0x52eed3['status']<0x12c){const _0x328584=yield _0x52eed3['json']();return new SuccessfulAuthResponse(_0x328584);}const _0x46ec56=yield _0x52eed3['json']();return new FailedAuthResponse(_0x46ec56);}catch(_0x802033){if(_0x802033 instanceof Error)return new FailedAuthResponse({'detail':_0x802033['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x802033;}});}['refresh'](_0xeaf9cd){return __awaiter(this,void 0,void 0,function*(){var _0x5493b5='refresh';try{const _0x41ad32=yield this['fetch']['post'](_0x5493b5,_0xeaf9cd,null);if(_0x41ad32['status']>0xc7&&_0x41ad32['status']<0x12c){const _0xdcf927=yield _0x41ad32['json']();return new SuccessfulAuthResponse(_0xdcf927);}const _0x3ac3d0=yield _0x41ad32['json']();return new FailedAuthResponse(_0x3ac3d0);}catch(_0x50e501){if(_0x50e501 instanceof Error)return new FailedAuthResponse({'detail':_0x50e501['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x50e501;}});}}
14
14
 
15
15
  export { AdminClient, AuthClient, TokenManager };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "Searchability admin client.",
5
5
  "type": "module",
6
6
  "types": "./dist/types.d.ts",
@@ -1,15 +0,0 @@
1
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x152f77,_0x3f603d,_0x5347f7,_0x1f29c1){function _0x39b537(_0x5f27f8){return _0x5f27f8 instanceof _0x5347f7?_0x5f27f8:new _0x5347f7(function(_0x48f099){_0x48f099(_0x5f27f8);});}return new(_0x5347f7||(_0x5347f7=Promise))(function(_0x4ae349,_0x15d562){function _0x1ace7d(_0xebd144){try{_0x58cf9e(_0x1f29c1['next'](_0xebd144));}catch(_0x1d265b){_0x15d562(_0x1d265b);}}function _0x35c795(_0x50c0d1){try{_0x58cf9e(_0x1f29c1['throw'](_0x50c0d1));}catch(_0x3724d8){_0x15d562(_0x3724d8);}}function _0x58cf9e(_0x38bc71){_0x38bc71['done']?_0x4ae349(_0x38bc71['value']):_0x39b537(_0x38bc71['value'])['then'](_0x1ace7d,_0x35c795);}_0x58cf9e((_0x1f29c1=_0x1f29c1['apply'](_0x152f77,_0x3f603d||[]))['next']());});};class TokenManager{constructor(_0x3fb73b){this['authClient']=_0x3fb73b;}['getOrRefreshTokens'](_0x5de7a8){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0x5de7a8['access_expires'])return new SuccessfulAuthResponse(_0x5de7a8);if(Date['now']()>_0x5de7a8['refresh_expires'])return yield this['authClient']['refresh'](_0x5de7a8['refresh_token']);return new FailedAuthResponse({'detail':'Refresh\x20token\x20expired','title':'','status':0x194,'instance':'','type':''});});}}
2
-
3
- class Response{constructor(_0x2eda07){this['isSuccess']=_0x2eda07;}}class SuccessfulAccountResponse extends Response{constructor(_0x12976f){super(!![]),this['account']=_0x12976f;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x4ba4e5){super(![]),this['problem']=_0x4ba4e5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x479e96){super(!![]),this['tokens']=_0x479e96;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x3214bc){super(![]),this['problem']=_0x3214bc;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x1d9d77){super(!![]),this['apiKey']=_0x1d9d77;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4e8f33){super(![]),this['problem']=_0x4e8f33;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
-
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x3c473f,_0x3ed1e9,_0x25cb6e,_0xac1063){function _0x3cd3cd(_0x4d8078){return _0x4d8078 instanceof _0x25cb6e?_0x4d8078:new _0x25cb6e(function(_0xc95c66){_0xc95c66(_0x4d8078);});}return new(_0x25cb6e||(_0x25cb6e=Promise))(function(_0x261928,_0x4f497e){function _0x5bd94f(_0x2f9704){try{_0x43f880(_0xac1063['next'](_0x2f9704));}catch(_0x195550){_0x4f497e(_0x195550);}}function _0x111d91(_0x5426c8){try{_0x43f880(_0xac1063['throw'](_0x5426c8));}catch(_0xa0bdf0){_0x4f497e(_0xa0bdf0);}}function _0x43f880(_0x21b9b1){_0x21b9b1['done']?_0x261928(_0x21b9b1['value']):_0x3cd3cd(_0x21b9b1['value'])['then'](_0x5bd94f,_0x111d91);}_0x43f880((_0xac1063=_0xac1063['apply'](_0x3c473f,_0x3ed1e9||[]))['next']());});};class AccountService{constructor(_0x1675d9){this['fetch']=_0x1675d9;}['get'](_0x1bb82f,_0x4e5f30){return __awaiter$4(this,void 0,void 0,function*(){const _0x164396='Account/'+_0x1bb82f+'/',_0x3807c0=yield this['fetch']['get'](_0x164396,_0x4e5f30);try{if(_0x3807c0['status']>0xc7&&_0x3807c0['status']<0x12c){const _0x3f28ca=yield _0x3807c0['json']();return new SuccessfulAccountResponse(_0x3f28ca);}const _0x1b849c=yield _0x3807c0['json']();return new FailedAccountResponse(_0x1b849c);}catch(_0x5584fb){if(_0x5584fb instanceof Error)return new FailedAccountResponse({'detail':_0x5584fb['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5584fb;}});}}
6
-
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x16d1bb,_0x4d1e4e,_0x48aca3,_0x2cb57e){function _0x546196(_0x596770){return _0x596770 instanceof _0x48aca3?_0x596770:new _0x48aca3(function(_0x6b0a0){_0x6b0a0(_0x596770);});}return new(_0x48aca3||(_0x48aca3=Promise))(function(_0x2c2a22,_0x101abd){function _0x270027(_0x5c17f2){try{_0x2fe628(_0x2cb57e['next'](_0x5c17f2));}catch(_0x508972){_0x101abd(_0x508972);}}function _0x4b2a1c(_0xbdfcd){try{_0x2fe628(_0x2cb57e['throw'](_0xbdfcd));}catch(_0x4e3857){_0x101abd(_0x4e3857);}}function _0x2fe628(_0x43043b){_0x43043b['done']?_0x2c2a22(_0x43043b['value']):_0x546196(_0x43043b['value'])['then'](_0x270027,_0x4b2a1c);}_0x2fe628((_0x2cb57e=_0x2cb57e['apply'](_0x16d1bb,_0x4d1e4e||[]))['next']());});};class ApiKeyService{constructor(_0x2ee071){this['fetch']=_0x2ee071;}['create'](_0x42ee0f,_0x45ab5f,_0x2d6610){return __awaiter$3(this,void 0,void 0,function*(){const _0x26f5e0='api-key/create',_0x48faf6={'account_name':_0x42ee0f,'name':_0x45ab5f};try{const _0x3e633b=yield this['fetch']['post'](_0x26f5e0,_0x2d6610,_0x48faf6);if(_0x3e633b['status']>0xc7&&_0x3e633b['status']<0x12c){const _0xb80240=yield _0x3e633b['json']();return new SuccessfulApiKeyResponse(_0xb80240);}const _0x569c88=yield _0x3e633b['json']();return new FailedApiKeyResponse(_0x569c88);}catch(_0x5e00c3){if(_0x5e00c3 instanceof Error)return new FailedApiKeyResponse({'detail':_0x5e00c3['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5e00c3;}});}}
8
-
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x1b2dc2,_0x53156a,_0x424565,_0x8dd3ab){function _0xfca9e2(_0x32dde6){return _0x32dde6 instanceof _0x424565?_0x32dde6:new _0x424565(function(_0x481802){_0x481802(_0x32dde6);});}return new(_0x424565||(_0x424565=Promise))(function(_0x374297,_0x1ec0fb){function _0x282254(_0x26417a){try{_0xdcba79(_0x8dd3ab['next'](_0x26417a));}catch(_0x3c7d1e){_0x1ec0fb(_0x3c7d1e);}}function _0x1d3281(_0xb0dd35){try{_0xdcba79(_0x8dd3ab['throw'](_0xb0dd35));}catch(_0x8243a2){_0x1ec0fb(_0x8243a2);}}function _0xdcba79(_0x21525e){_0x21525e['done']?_0x374297(_0x21525e['value']):_0xfca9e2(_0x21525e['value'])['then'](_0x282254,_0x1d3281);}_0xdcba79((_0x8dd3ab=_0x8dd3ab['apply'](_0x1b2dc2,_0x53156a||[]))['next']());});};class ListService{constructor(_0x1cc06f){this['fetch']=_0x1cc06f;}['add'](_0x231582,_0x464b6c,_0x382544){return __awaiter$2(this,void 0,void 0,function*(){const _0x41abf6='List',_0x1b6635={'account_name':_0x231582,'list_name':_0x464b6c};try{const _0x1d04f7=yield this['fetch']['post'](_0x41abf6,_0x382544,_0x1b6635);if(_0x1d04f7['status']>0xc7&&_0x1d04f7['status']<0x12c){const _0x2d2545=yield _0x1d04f7['json']();return new SuccessfulAccountResponse(_0x2d2545);}const _0x47774f=yield _0x1d04f7['json']();return new FailedAccountResponse(_0x47774f);}catch(_0x5e9d40){if(_0x5e9d40 instanceof Error)return new FailedAccountResponse({'detail':_0x5e9d40['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5e9d40;}});}['remove'](_0xc8fd1f,_0xdaedc5,_0x43f791){return __awaiter$2(this,void 0,void 0,function*(){const _0x26a090='List/'+_0xc8fd1f+'/'+_0xdaedc5,_0x3c0f6f=yield this['fetch']['delete'](_0x26a090,_0x43f791);try{if(_0x3c0f6f['status']>0xc7&&_0x3c0f6f['status']<0x12c){const _0x1c1bbf=yield _0x3c0f6f['json']();return new SuccessfulAccountResponse(_0x1c1bbf);}const _0x34af11=yield _0x3c0f6f['json']();return new FailedAccountResponse(_0x34af11);}catch(_0x39eb71){if(_0x39eb71 instanceof Error)return new FailedAccountResponse({'detail':_0x39eb71['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x39eb71;}});}}
10
-
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x4fc921,_0x25e18d,_0x59eee9,_0x558e55){function _0x14797a(_0x3a6117){return _0x3a6117 instanceof _0x59eee9?_0x3a6117:new _0x59eee9(function(_0x301345){_0x301345(_0x3a6117);});}return new(_0x59eee9||(_0x59eee9=Promise))(function(_0x52980a,_0x5c79bd){function _0x20ef9e(_0x515d73){try{_0x23d990(_0x558e55['next'](_0x515d73));}catch(_0xacdb74){_0x5c79bd(_0xacdb74);}}function _0x376e04(_0x558dad){try{_0x23d990(_0x558e55['throw'](_0x558dad));}catch(_0x533fba){_0x5c79bd(_0x533fba);}}function _0x23d990(_0x9761ac){_0x9761ac['done']?_0x52980a(_0x9761ac['value']):_0x14797a(_0x9761ac['value'])['then'](_0x20ef9e,_0x376e04);}_0x23d990((_0x558e55=_0x558e55['apply'](_0x4fc921,_0x25e18d||[]))['next']());});};class Fetch{constructor(_0xe5d33b){this['baseUri']=_0xe5d33b,this['getUrl']=_0x4c233a=>{return _0x4c233a['startsWith']('/')&&(_0x4c233a=_0x4c233a['replace']('/','')),''+this['baseUri']+_0x4c233a;},!_0xe5d33b['endsWith']('/')&&(_0xe5d33b=_0xe5d33b+'/');}['get'](_0xcefded,_0x27df7d){return __awaiter$1(this,void 0,void 0,function*(){const _0x417725=this['getUrl'](_0xcefded);return yield fetch(_0x417725,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x27df7d}});});}['post'](_0x1fa75d,_0x56713a,_0x5307a5){return __awaiter$1(this,void 0,void 0,function*(){const _0x1022d4=this['getUrl'](_0x1fa75d);return yield fetch(_0x1022d4,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x56713a},'body':_0x5307a5?JSON['stringify'](_0x5307a5):null});});}['put'](_0x3d4531,_0x20a266,_0xc79c46){return __awaiter$1(this,void 0,void 0,function*(){const _0x57734c=this['getUrl'](_0x3d4531);return yield fetch(_0x57734c,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x20a266},'body':_0xc79c46?JSON['stringify'](_0xc79c46):null});});}['delete'](_0x2353d5,_0x87e6ca){return __awaiter$1(this,void 0,void 0,function*(){const _0x42893a=this['getUrl'](_0x2353d5);return yield fetch(_0x42893a,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x87e6ca}});});}}
12
-
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x19eef1,_0x1dda68,_0x1311cd,_0x4d4c19){function _0x1309be(_0x53bb29){return _0x53bb29 instanceof _0x1311cd?_0x53bb29:new _0x1311cd(function(_0x3bedb8){_0x3bedb8(_0x53bb29);});}return new(_0x1311cd||(_0x1311cd=Promise))(function(_0x5e005f,_0x2cee13){function _0x36240c(_0x1200da){try{_0x666ebd(_0x4d4c19['next'](_0x1200da));}catch(_0xb544ac){_0x2cee13(_0xb544ac);}}function _0x25daf8(_0x2be4a9){try{_0x666ebd(_0x4d4c19['throw'](_0x2be4a9));}catch(_0x4e20e8){_0x2cee13(_0x4e20e8);}}function _0x666ebd(_0x53b88d){_0x53b88d['done']?_0x5e005f(_0x53b88d['value']):_0x1309be(_0x53b88d['value'])['then'](_0x36240c,_0x25daf8);}_0x666ebd((_0x4d4c19=_0x4d4c19['apply'](_0x19eef1,_0x1dda68||[]))['next']());});};class AdminClient{constructor(_0x30285b='https://admin.searchability.dev/'){var _0x561aaa=new Fetch(_0x30285b);this['Accounts']=new AccountService(_0x561aaa),this['Lists']=new ListService(_0x561aaa),this['ApiKeys']=new ApiKeyService(_0x561aaa);}}class AuthClient{constructor(_0x4bbf7d='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x4bbf7d);}['login'](_0x24d3dd){return __awaiter(this,void 0,void 0,function*(){var _0x18aff0='login/'+_0x24d3dd;try{const _0x7c1015=yield yield fetch(_0x18aff0);if(_0x7c1015['status']>0xc7&&_0x7c1015['status']<0x12c){const _0x4fab26=yield _0x7c1015['json']();return new SuccessfulAuthResponse(_0x4fab26);}const _0x529e35=yield _0x7c1015['json']();return new FailedAuthResponse(_0x529e35);}catch(_0x55d616){if(_0x55d616 instanceof Error)return new FailedAuthResponse({'detail':_0x55d616['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x55d616;}});}['refresh'](_0x2f0bee){return __awaiter(this,void 0,void 0,function*(){var _0x9143e3='refresh';try{const _0x2b761c=yield this['fetch']['post'](_0x9143e3,_0x2f0bee,null);if(_0x2b761c['status']>0xc7&&_0x2b761c['status']<0x12c){const _0x404564=yield _0x2b761c['json']();return new SuccessfulAuthResponse(_0x404564);}const _0x34f0e6=yield _0x2b761c['json']();return new FailedAuthResponse(_0x34f0e6);}catch(_0x32666c){if(_0x32666c instanceof Error)return new FailedAuthResponse({'detail':_0x32666c['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x32666c;}});}}
14
-
15
- export { AdminClient, AuthClient, TokenManager };