@searchability/admin-client 0.0.22 → 0.0.24

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(_0x339245,_0x35008f,_0x1c30f1,_0x771fc8){function _0x295ce1(_0x1f8641){return _0x1f8641 instanceof _0x1c30f1?_0x1f8641:new _0x1c30f1(function(_0x3b5b2b){_0x3b5b2b(_0x1f8641);});}return new(_0x1c30f1||(_0x1c30f1=Promise))(function(_0x3bd65,_0x3de036){function _0x3e5e0e(_0x241429){try{_0x10044b(_0x771fc8['next'](_0x241429));}catch(_0x407c7d){_0x3de036(_0x407c7d);}}function _0x24baa5(_0x4a57c1){try{_0x10044b(_0x771fc8['throw'](_0x4a57c1));}catch(_0x27195b){_0x3de036(_0x27195b);}}function _0x10044b(_0x520300){_0x520300['done']?_0x3bd65(_0x520300['value']):_0x295ce1(_0x520300['value'])['then'](_0x3e5e0e,_0x24baa5);}_0x10044b((_0x771fc8=_0x771fc8['apply'](_0x339245,_0x35008f||[]))['next']());});};class TokenManager{constructor(_0xafa69b){this['authClient']=_0xafa69b;}['getOrRefreshTokens'](_0x4c5e7b){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0x4c5e7b['access_expires'])return new SuccessfulAuthResponse(_0x4c5e7b);if(Date['now']()<_0x4c5e7b['refresh_expires'])return yield this['authClient']['refresh'](_0x4c5e7b['refresh_token']);return new FailedAuthResponse({'detail':'Refresh\x20token\x20expired','title':'','status':0x194,'instance':'','type':''});});}}
2
+
3
+ class Response{constructor(_0x378742){this['isSuccess']=_0x378742;}}class SuccessfulAccountResponse extends Response{constructor(_0x5622a2){super(!![]),this['account']=_0x5622a2;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x1a9490){super(![]),this['problem']=_0x1a9490;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x3872bb){super(!![]),this['tokens']=_0x3872bb;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x5571be){super(![]),this['problem']=_0x5571be;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x8412b3){super(!![]),this['apiKey']=_0x8412b3;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x36a6d4){super(![]),this['problem']=_0x36a6d4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
+
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x1bfd63,_0x8d3a68,_0x28124f,_0x4550fd){function _0x130762(_0x3af8b0){return _0x3af8b0 instanceof _0x28124f?_0x3af8b0:new _0x28124f(function(_0x1e61a9){_0x1e61a9(_0x3af8b0);});}return new(_0x28124f||(_0x28124f=Promise))(function(_0x4a2453,_0x5e788b){function _0x33cf3a(_0x52008f){try{_0x4a922c(_0x4550fd['next'](_0x52008f));}catch(_0x2c2d2f){_0x5e788b(_0x2c2d2f);}}function _0xf47496(_0x1bb064){try{_0x4a922c(_0x4550fd['throw'](_0x1bb064));}catch(_0x4cd66c){_0x5e788b(_0x4cd66c);}}function _0x4a922c(_0x260519){_0x260519['done']?_0x4a2453(_0x260519['value']):_0x130762(_0x260519['value'])['then'](_0x33cf3a,_0xf47496);}_0x4a922c((_0x4550fd=_0x4550fd['apply'](_0x1bfd63,_0x8d3a68||[]))['next']());});};class AccountService{constructor(_0x4d77b9){this['fetch']=_0x4d77b9;}['get'](_0x16faec,_0x5818d2){return __awaiter$4(this,void 0,void 0,function*(){const _0x57c869='Account/'+_0x16faec+'/',_0x455684=yield this['fetch']['get'](_0x57c869,_0x5818d2);try{if(_0x455684['status']>0xc7&&_0x455684['status']<0x12c){const _0x532007=yield _0x455684['json']();return new SuccessfulAccountResponse(_0x532007);}const _0x187847=yield _0x455684['json']();return new FailedAccountResponse(_0x187847);}catch(_0x3f19e5){if(_0x3f19e5 instanceof Error)return new FailedAccountResponse({'detail':_0x3f19e5['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3f19e5;}});}}
6
+
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x55bcf8,_0xf2438e,_0x2a1731,_0x48f293){function _0x733e6c(_0x2d41bf){return _0x2d41bf instanceof _0x2a1731?_0x2d41bf:new _0x2a1731(function(_0x51daff){_0x51daff(_0x2d41bf);});}return new(_0x2a1731||(_0x2a1731=Promise))(function(_0x5602bd,_0x3c1ac3){function _0x4e002c(_0x48e7d4){try{_0x5f5b83(_0x48f293['next'](_0x48e7d4));}catch(_0x35052f){_0x3c1ac3(_0x35052f);}}function _0x39e3b9(_0x4e67b0){try{_0x5f5b83(_0x48f293['throw'](_0x4e67b0));}catch(_0x5d069c){_0x3c1ac3(_0x5d069c);}}function _0x5f5b83(_0x370615){_0x370615['done']?_0x5602bd(_0x370615['value']):_0x733e6c(_0x370615['value'])['then'](_0x4e002c,_0x39e3b9);}_0x5f5b83((_0x48f293=_0x48f293['apply'](_0x55bcf8,_0xf2438e||[]))['next']());});};class ApiKeyService{constructor(_0x24b75a){this['fetch']=_0x24b75a;}['create'](_0x114de0,_0x3c4275,_0x23ab0f){return __awaiter$3(this,void 0,void 0,function*(){const _0x5b688b='api-key/create',_0x382f88={'account_name':_0x114de0,'api_key_name':_0x3c4275};try{const _0x1450b0=yield this['fetch']['post'](_0x5b688b,_0x23ab0f,_0x382f88);if(_0x1450b0['status']>0xc7&&_0x1450b0['status']<0x12c){const _0x5e3e4d=yield _0x1450b0['json']();return new SuccessfulApiKeyResponse(_0x5e3e4d);}const _0x4e195a=yield _0x1450b0['json']();return new FailedApiKeyResponse(_0x4e195a);}catch(_0x3196ed){if(_0x3196ed instanceof Error)return new FailedApiKeyResponse({'detail':_0x3196ed['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3196ed;}});}}
8
+
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x2ddd23,_0xad4180,_0x39d3ea,_0x1011e3){function _0x1cd313(_0x47b923){return _0x47b923 instanceof _0x39d3ea?_0x47b923:new _0x39d3ea(function(_0x95fcb9){_0x95fcb9(_0x47b923);});}return new(_0x39d3ea||(_0x39d3ea=Promise))(function(_0x575849,_0x41314d){function _0x5552ce(_0x43b657){try{_0x347bb1(_0x1011e3['next'](_0x43b657));}catch(_0x388821){_0x41314d(_0x388821);}}function _0x40127b(_0x1d8d3b){try{_0x347bb1(_0x1011e3['throw'](_0x1d8d3b));}catch(_0x48b06b){_0x41314d(_0x48b06b);}}function _0x347bb1(_0xa70c06){_0xa70c06['done']?_0x575849(_0xa70c06['value']):_0x1cd313(_0xa70c06['value'])['then'](_0x5552ce,_0x40127b);}_0x347bb1((_0x1011e3=_0x1011e3['apply'](_0x2ddd23,_0xad4180||[]))['next']());});};class ListService{constructor(_0x165b56){this['fetch']=_0x165b56;}['add'](_0x3e6182,_0x3cd265,_0x3510f0){return __awaiter$2(this,void 0,void 0,function*(){const _0xad25d2='List',_0x5faf9e={'account_name':_0x3e6182,'list_name':_0x3cd265};try{const _0x1a310e=yield this['fetch']['post'](_0xad25d2,_0x3510f0,_0x5faf9e);if(_0x1a310e['status']>0xc7&&_0x1a310e['status']<0x12c){const _0x5c3362=yield _0x1a310e['json']();return new SuccessfulAccountResponse(_0x5c3362);}const _0x21fb3d=yield _0x1a310e['json']();return new FailedAccountResponse(_0x21fb3d);}catch(_0x3194ed){if(_0x3194ed instanceof Error)return new FailedAccountResponse({'detail':_0x3194ed['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3194ed;}});}['remove'](_0x5f16f9,_0x16c44c,_0x56635e){return __awaiter$2(this,void 0,void 0,function*(){const _0xbccb21='List/'+_0x5f16f9+'/'+_0x16c44c,_0x2daf06=yield this['fetch']['delete'](_0xbccb21,_0x56635e);try{if(_0x2daf06['status']>0xc7&&_0x2daf06['status']<0x12c){const _0x1f1870=yield _0x2daf06['json']();return new SuccessfulAccountResponse(_0x1f1870);}const _0x2c570d=yield _0x2daf06['json']();return new FailedAccountResponse(_0x2c570d);}catch(_0x3e0247){if(_0x3e0247 instanceof Error)return new FailedAccountResponse({'detail':_0x3e0247['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3e0247;}});}}
10
+
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x55e43e,_0x4dba55,_0x4ebdf3,_0x1a6540){function _0x56b8b0(_0x288ca2){return _0x288ca2 instanceof _0x4ebdf3?_0x288ca2:new _0x4ebdf3(function(_0x344bcf){_0x344bcf(_0x288ca2);});}return new(_0x4ebdf3||(_0x4ebdf3=Promise))(function(_0x51f268,_0xf10781){function _0x8e42e8(_0x5a85ac){try{_0x2f21d1(_0x1a6540['next'](_0x5a85ac));}catch(_0x51c8bc){_0xf10781(_0x51c8bc);}}function _0x1daa76(_0x500225){try{_0x2f21d1(_0x1a6540['throw'](_0x500225));}catch(_0x17a020){_0xf10781(_0x17a020);}}function _0x2f21d1(_0x33fc5b){_0x33fc5b['done']?_0x51f268(_0x33fc5b['value']):_0x56b8b0(_0x33fc5b['value'])['then'](_0x8e42e8,_0x1daa76);}_0x2f21d1((_0x1a6540=_0x1a6540['apply'](_0x55e43e,_0x4dba55||[]))['next']());});};class Fetch{constructor(_0x1d668b){this['baseUri']=_0x1d668b,this['getUrl']=_0xe199dc=>{return _0xe199dc['startsWith']('/')&&(_0xe199dc=_0xe199dc['replace']('/','')),''+this['baseUri']+_0xe199dc;},!_0x1d668b['endsWith']('/')&&(_0x1d668b=_0x1d668b+'/');}['get'](_0x39dfa8,_0x3d22c7){return __awaiter$1(this,void 0,void 0,function*(){const _0x1f1127=this['getUrl'](_0x39dfa8);return yield fetch(_0x1f1127,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3d22c7}});});}['post'](_0x5b5fe7,_0x5ba66d,_0x20906f){return __awaiter$1(this,void 0,void 0,function*(){const _0x324436=this['getUrl'](_0x5b5fe7);return yield fetch(_0x324436,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5ba66d},'body':_0x20906f?JSON['stringify'](_0x20906f):null});});}['put'](_0x52d13a,_0x3e2d05,_0x6219aa){return __awaiter$1(this,void 0,void 0,function*(){const _0x3650a9=this['getUrl'](_0x52d13a);return yield fetch(_0x3650a9,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3e2d05},'body':_0x6219aa?JSON['stringify'](_0x6219aa):null});});}['delete'](_0x461dec,_0x3bd906){return __awaiter$1(this,void 0,void 0,function*(){const _0x92458a=this['getUrl'](_0x461dec);return yield fetch(_0x92458a,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3bd906}});});}}
12
+
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x38ca31,_0x2d8742,_0xe28702,_0x43e6f3){function _0x31b1a5(_0x323186){return _0x323186 instanceof _0xe28702?_0x323186:new _0xe28702(function(_0x348922){_0x348922(_0x323186);});}return new(_0xe28702||(_0xe28702=Promise))(function(_0x49cfe0,_0x5d99a0){function _0x5c3feb(_0x39323c){try{_0x8fa0f5(_0x43e6f3['next'](_0x39323c));}catch(_0x5c81a4){_0x5d99a0(_0x5c81a4);}}function _0x1eca31(_0x132a04){try{_0x8fa0f5(_0x43e6f3['throw'](_0x132a04));}catch(_0x5dd3d0){_0x5d99a0(_0x5dd3d0);}}function _0x8fa0f5(_0x5e1802){_0x5e1802['done']?_0x49cfe0(_0x5e1802['value']):_0x31b1a5(_0x5e1802['value'])['then'](_0x5c3feb,_0x1eca31);}_0x8fa0f5((_0x43e6f3=_0x43e6f3['apply'](_0x38ca31,_0x2d8742||[]))['next']());});};class AdminClient{constructor(_0x3fa06d='https://admin.searchability.dev/'){var _0x3884b6=new Fetch(_0x3fa06d);this['Accounts']=new AccountService(_0x3884b6),this['Lists']=new ListService(_0x3884b6),this['ApiKeys']=new ApiKeyService(_0x3884b6);}}class AuthClient{constructor(_0x3b57f9='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x3b57f9);}['login'](_0x11777a){return __awaiter(this,void 0,void 0,function*(){var _0x1aa19e='login/'+_0x11777a;try{const _0x3c629b=yield yield fetch(_0x1aa19e);if(_0x3c629b['status']>0xc7&&_0x3c629b['status']<0x12c){const _0x5465e9=yield _0x3c629b['json']();return new SuccessfulAuthResponse(_0x5465e9);}const _0x501246=yield _0x3c629b['json']();return new FailedAuthResponse(_0x501246);}catch(_0x47edd2){if(_0x47edd2 instanceof Error)return new FailedAuthResponse({'detail':_0x47edd2['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x47edd2;}});}['refresh'](_0x50d819){return __awaiter(this,void 0,void 0,function*(){var _0x56e24e='refresh';try{const _0x3b14e3=yield this['fetch']['post'](_0x56e24e,_0x50d819,null);if(_0x3b14e3['status']>0xc7&&_0x3b14e3['status']<0x12c){const _0x82a7f=yield _0x3b14e3['json']();return new SuccessfulAuthResponse(_0x82a7f);}const _0x47a347=yield _0x3b14e3['json']();return new FailedAuthResponse(_0x47a347);}catch(_0xef3910){if(_0xef3910 instanceof Error)return new FailedAuthResponse({'detail':_0xef3910['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xef3910;}});}}
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(_0x255288,_0x566112,_0x104399,_0x9b6b06){function _0x594b22(_0x12c362){return _0x12c362 instanceof _0x104399?_0x12c362:new _0x104399(function(_0x61ac65){_0x61ac65(_0x12c362);});}return new(_0x104399||(_0x104399=Promise))(function(_0x38757c,_0x2a08dc){function _0x1d0325(_0x2d2f55){try{_0x163c76(_0x9b6b06['next'](_0x2d2f55));}catch(_0xc5e590){_0x2a08dc(_0xc5e590);}}function _0x21ffbe(_0x3da80b){try{_0x163c76(_0x9b6b06['throw'](_0x3da80b));}catch(_0x1e1fb8){_0x2a08dc(_0x1e1fb8);}}function _0x163c76(_0x423f00){_0x423f00['done']?_0x38757c(_0x423f00['value']):_0x594b22(_0x423f00['value'])['then'](_0x1d0325,_0x21ffbe);}_0x163c76((_0x9b6b06=_0x9b6b06['apply'](_0x255288,_0x566112||[]))['next']());});};class TokenManager{constructor(_0x21653d){this['authClient']=_0x21653d;}['getOrRefreshTokens'](_0x5b17b8){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0x5b17b8['access_expires'])return new SuccessfulAuthResponse(_0x5b17b8);if(Date['now']()<_0x5b17b8['refresh_expires'])return yield this['authClient']['refresh'](_0x5b17b8['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(_0x1cf150){this['isSuccess']=_0x1cf150;}}class SuccessfulAccountResponse extends Response{constructor(_0x2fd7af){super(!![]),this['account']=_0x2fd7af;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x16e4f6){super(![]),this['problem']=_0x16e4f6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x51d40c){super(!![]),this['tokens']=_0x51d40c;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x260d7c){super(![]),this['problem']=_0x260d7c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x1e08a4){super(!![]),this['apiKey']=_0x1e08a4;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x440b4f){super(![]),this['problem']=_0x440b4f;}['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(_0x53c96e,_0x3f732d,_0x817072,_0x4e536d){function _0x1cb5a2(_0x18bfd9){return _0x18bfd9 instanceof _0x817072?_0x18bfd9:new _0x817072(function(_0x4557a8){_0x4557a8(_0x18bfd9);});}return new(_0x817072||(_0x817072=Promise))(function(_0x518e10,_0x1ccd8b){function _0x45c82e(_0x138e09){try{_0x39e65a(_0x4e536d['next'](_0x138e09));}catch(_0x15e8b2){_0x1ccd8b(_0x15e8b2);}}function _0x2a1732(_0x5eec31){try{_0x39e65a(_0x4e536d['throw'](_0x5eec31));}catch(_0x4d9fbc){_0x1ccd8b(_0x4d9fbc);}}function _0x39e65a(_0x294359){_0x294359['done']?_0x518e10(_0x294359['value']):_0x1cb5a2(_0x294359['value'])['then'](_0x45c82e,_0x2a1732);}_0x39e65a((_0x4e536d=_0x4e536d['apply'](_0x53c96e,_0x3f732d||[]))['next']());});};class AccountService{constructor(_0x15b09e){this['fetch']=_0x15b09e;}['get'](_0x266b1f,_0x2a1afe){return __awaiter$4(this,void 0,void 0,function*(){const _0x514508='Account/'+_0x266b1f+'/',_0x1f1517=yield this['fetch']['get'](_0x514508,_0x2a1afe);try{if(_0x1f1517['status']>0xc7&&_0x1f1517['status']<0x12c){const _0x2b507a=yield _0x1f1517['json']();return new SuccessfulAccountResponse(_0x2b507a);}const _0x113bfe=yield _0x1f1517['json']();return new FailedAccountResponse(_0x113bfe);}catch(_0x133985){if(_0x133985 instanceof Error)return new FailedAccountResponse({'detail':_0x133985['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x133985;}});}}
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(_0x3b7732,_0x3cf234,_0x265259,_0x345512){function _0x1b8912(_0x5f361d){return _0x5f361d instanceof _0x265259?_0x5f361d:new _0x265259(function(_0x42e847){_0x42e847(_0x5f361d);});}return new(_0x265259||(_0x265259=Promise))(function(_0x150175,_0x295d89){function _0xe39655(_0x5b2042){try{_0x24efd1(_0x345512['next'](_0x5b2042));}catch(_0x394c54){_0x295d89(_0x394c54);}}function _0x4eb3eb(_0x265635){try{_0x24efd1(_0x345512['throw'](_0x265635));}catch(_0x575827){_0x295d89(_0x575827);}}function _0x24efd1(_0x404f28){_0x404f28['done']?_0x150175(_0x404f28['value']):_0x1b8912(_0x404f28['value'])['then'](_0xe39655,_0x4eb3eb);}_0x24efd1((_0x345512=_0x345512['apply'](_0x3b7732,_0x3cf234||[]))['next']());});};class ApiKeyService{constructor(_0x3484a6){this['fetch']=_0x3484a6;}['create'](_0x3c38b8,_0x27a73f,_0x54685f){return __awaiter$3(this,void 0,void 0,function*(){const _0x5e7060='api-key/create',_0x11e58b={'account_name':_0x3c38b8,'api_key_name':_0x27a73f};try{const _0x2c6f1c=yield this['fetch']['post'](_0x5e7060,_0x54685f,_0x11e58b);if(_0x2c6f1c['status']>0xc7&&_0x2c6f1c['status']<0x12c){const _0x147b23=yield _0x2c6f1c['json']();return new SuccessfulApiKeyResponse(_0x147b23);}const _0x4543a8=yield _0x2c6f1c['json']();return new FailedApiKeyResponse(_0x4543a8);}catch(_0xf5b5f0){if(_0xf5b5f0 instanceof Error)return new FailedApiKeyResponse({'detail':_0xf5b5f0['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xf5b5f0;}});}}
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(_0x49d1f7,_0x191808,_0x1f20b5,_0x9e9609){function _0x1c5008(_0xfa6306){return _0xfa6306 instanceof _0x1f20b5?_0xfa6306:new _0x1f20b5(function(_0x2bfe22){_0x2bfe22(_0xfa6306);});}return new(_0x1f20b5||(_0x1f20b5=Promise))(function(_0x2de118,_0x43d071){function _0x1d2641(_0x1ceb0f){try{_0x28b64f(_0x9e9609['next'](_0x1ceb0f));}catch(_0x32873f){_0x43d071(_0x32873f);}}function _0x55b861(_0x30545c){try{_0x28b64f(_0x9e9609['throw'](_0x30545c));}catch(_0x212850){_0x43d071(_0x212850);}}function _0x28b64f(_0x325548){_0x325548['done']?_0x2de118(_0x325548['value']):_0x1c5008(_0x325548['value'])['then'](_0x1d2641,_0x55b861);}_0x28b64f((_0x9e9609=_0x9e9609['apply'](_0x49d1f7,_0x191808||[]))['next']());});};class ListService{constructor(_0x18fa53){this['fetch']=_0x18fa53;}['add'](_0x513289,_0x2f14fc,_0x56154d){return __awaiter$2(this,void 0,void 0,function*(){const _0x367ee9='List',_0x260320={'account_name':_0x513289,'list_name':_0x2f14fc};try{const _0x1a7f73=yield this['fetch']['post'](_0x367ee9,_0x56154d,_0x260320);if(_0x1a7f73['status']>0xc7&&_0x1a7f73['status']<0x12c){const _0xe7c064=yield _0x1a7f73['json']();return new SuccessfulAccountResponse(_0xe7c064);}const _0x3e2111=yield _0x1a7f73['json']();return new FailedAccountResponse(_0x3e2111);}catch(_0x17d9ab){if(_0x17d9ab instanceof Error)return new FailedAccountResponse({'detail':_0x17d9ab['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x17d9ab;}});}['remove'](_0xa7a639,_0x2f72d6,_0x29c468){return __awaiter$2(this,void 0,void 0,function*(){const _0x5d8f7d='List/'+_0xa7a639+'/'+_0x2f72d6,_0x5cdd2d=yield this['fetch']['delete'](_0x5d8f7d,_0x29c468);try{if(_0x5cdd2d['status']>0xc7&&_0x5cdd2d['status']<0x12c){const _0x573db1=yield _0x5cdd2d['json']();return new SuccessfulAccountResponse(_0x573db1);}const _0x2e9670=yield _0x5cdd2d['json']();return new FailedAccountResponse(_0x2e9670);}catch(_0x48c325){if(_0x48c325 instanceof Error)return new FailedAccountResponse({'detail':_0x48c325['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x48c325;}});}}
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(_0x2b392b,_0x38a1a1,_0x3baf86,_0x161e55){function _0x1320fc(_0x559161){return _0x559161 instanceof _0x3baf86?_0x559161:new _0x3baf86(function(_0x5ec816){_0x5ec816(_0x559161);});}return new(_0x3baf86||(_0x3baf86=Promise))(function(_0x28e140,_0x1ecdcf){function _0x35f2bc(_0x509e94){try{_0x50967c(_0x161e55['next'](_0x509e94));}catch(_0x211092){_0x1ecdcf(_0x211092);}}function _0x2f67e6(_0x5093e7){try{_0x50967c(_0x161e55['throw'](_0x5093e7));}catch(_0x2958df){_0x1ecdcf(_0x2958df);}}function _0x50967c(_0xf79882){_0xf79882['done']?_0x28e140(_0xf79882['value']):_0x1320fc(_0xf79882['value'])['then'](_0x35f2bc,_0x2f67e6);}_0x50967c((_0x161e55=_0x161e55['apply'](_0x2b392b,_0x38a1a1||[]))['next']());});};class Fetch{constructor(_0x120b26){this['baseUri']=_0x120b26,this['getUrl']=_0x393e4a=>{return _0x393e4a['startsWith']('/')&&(_0x393e4a=_0x393e4a['replace']('/','')),''+this['baseUri']+_0x393e4a;},!_0x120b26['endsWith']('/')&&(_0x120b26=_0x120b26+'/');}['get'](_0x36695f,_0x2b91d3){return __awaiter$1(this,void 0,void 0,function*(){const _0x2c006f=this['getUrl'](_0x36695f);return yield fetch(_0x2c006f,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2b91d3}});});}['post'](_0x5939f9,_0x3f9fb1,_0x4e4f55){return __awaiter$1(this,void 0,void 0,function*(){const _0x574f2e=this['getUrl'](_0x5939f9);return yield fetch(_0x574f2e,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3f9fb1},'body':_0x4e4f55?JSON['stringify'](_0x4e4f55):null});});}['put'](_0x490e11,_0x490c6a,_0x533728){return __awaiter$1(this,void 0,void 0,function*(){const _0x426e09=this['getUrl'](_0x490e11);return yield fetch(_0x426e09,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x490c6a},'body':_0x533728?JSON['stringify'](_0x533728):null});});}['delete'](_0x57cfea,_0x38fff4){return __awaiter$1(this,void 0,void 0,function*(){const _0x3a252e=this['getUrl'](_0x57cfea);return yield fetch(_0x3a252e,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x38fff4}});});}}
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(_0x70a7e3,_0x23c876,_0x3c3dfd,_0x49df2a){function _0x263dc7(_0x5435b6){return _0x5435b6 instanceof _0x3c3dfd?_0x5435b6:new _0x3c3dfd(function(_0x4c72a0){_0x4c72a0(_0x5435b6);});}return new(_0x3c3dfd||(_0x3c3dfd=Promise))(function(_0x1368d7,_0x380541){function _0x193502(_0x3d8e95){try{_0xe96160(_0x49df2a['next'](_0x3d8e95));}catch(_0x443858){_0x380541(_0x443858);}}function _0x52c156(_0x1e4338){try{_0xe96160(_0x49df2a['throw'](_0x1e4338));}catch(_0x46fc1f){_0x380541(_0x46fc1f);}}function _0xe96160(_0x59645f){_0x59645f['done']?_0x1368d7(_0x59645f['value']):_0x263dc7(_0x59645f['value'])['then'](_0x193502,_0x52c156);}_0xe96160((_0x49df2a=_0x49df2a['apply'](_0x70a7e3,_0x23c876||[]))['next']());});};class AdminClient{constructor(_0x7289d6='https://admin.searchability.dev/'){var _0x4134e4=new Fetch(_0x7289d6);this['Accounts']=new AccountService(_0x4134e4),this['Lists']=new ListService(_0x4134e4),this['ApiKeys']=new ApiKeyService(_0x4134e4);}}class AuthClient{constructor(_0x37920e='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x37920e);}['login'](_0x4d7be0){return __awaiter(this,void 0,void 0,function*(){var _0x1445cc='login/'+_0x4d7be0;try{const _0x2ceb7e=yield yield fetch(_0x1445cc);if(_0x2ceb7e['status']>0xc7&&_0x2ceb7e['status']<0x12c){const _0x3a33bd=yield _0x2ceb7e['json']();return new SuccessfulAuthResponse(_0x3a33bd);}const _0x36673b=yield _0x2ceb7e['json']();return new FailedAuthResponse(_0x36673b);}catch(_0x55e8da){if(_0x55e8da instanceof Error)return new FailedAuthResponse({'detail':_0x55e8da['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x55e8da;}});}['refresh'](_0x5a2f46){return __awaiter(this,void 0,void 0,function*(){var _0x89c097='refresh';try{const _0x99212b=yield this['fetch']['post'](_0x89c097,_0x5a2f46,null);if(_0x99212b['status']>0xc7&&_0x99212b['status']<0x12c){const _0x1cee4b=yield _0x99212b['json']();return new SuccessfulAuthResponse(_0x1cee4b);}const _0x501c4f=yield _0x99212b['json']();return new FailedAuthResponse(_0x501c4f);}catch(_0x149da7){if(_0x149da7 instanceof Error)return new FailedAuthResponse({'detail':_0x149da7['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x149da7;}});}}
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(_0x22c4a3,_0x171996,_0x331044,_0x57c976){function _0x5b1a02(_0x3d5357){return _0x3d5357 instanceof _0x331044?_0x3d5357:new _0x331044(function(_0x26f6f7){_0x26f6f7(_0x3d5357);});}return new(_0x331044||(_0x331044=Promise))(function(_0x1ab65b,_0x4ed074){function _0x8907a7(_0x7d72c5){try{_0x23831f(_0x57c976['next'](_0x7d72c5));}catch(_0x148e26){_0x4ed074(_0x148e26);}}function _0x55d15f(_0x21bd3d){try{_0x23831f(_0x57c976['throw'](_0x21bd3d));}catch(_0x6b52d4){_0x4ed074(_0x6b52d4);}}function _0x23831f(_0xe082d3){_0xe082d3['done']?_0x1ab65b(_0xe082d3['value']):_0x5b1a02(_0xe082d3['value'])['then'](_0x8907a7,_0x55d15f);}_0x23831f((_0x57c976=_0x57c976['apply'](_0x22c4a3,_0x171996||[]))['next']());});};class TokenManager{constructor(_0xb6d020){this['authClient']=_0xb6d020;}['getOrRefreshTokens'](_0x40a396){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0x40a396['access_expires'])return new SuccessfulAuthResponse(_0x40a396);if(Date['now']()<_0x40a396['refresh_expires'])return yield this['authClient']['refresh'](_0x40a396['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(_0x3ecdbd){this['isSuccess']=_0x3ecdbd;}}class SuccessfulAccountResponse extends Response{constructor(_0x1eeae8){super(!![]),this['account']=_0x1eeae8;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x38c206){super(![]),this['problem']=_0x38c206;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x147c41){super(!![]),this['tokens']=_0x147c41;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x4c823c){super(![]),this['problem']=_0x4c823c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x156eed){super(!![]),this['apiKey']=_0x156eed;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x138ff0){super(![]),this['problem']=_0x138ff0;}['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(_0x4d7613,_0x5d59e6,_0x5d78ad,_0x5d4b8d){function _0x4fdc2b(_0x2b4f51){return _0x2b4f51 instanceof _0x5d78ad?_0x2b4f51:new _0x5d78ad(function(_0x26edf3){_0x26edf3(_0x2b4f51);});}return new(_0x5d78ad||(_0x5d78ad=Promise))(function(_0x19401c,_0x10a790){function _0x5b6d2a(_0x4b194a){try{_0xf7fa22(_0x5d4b8d['next'](_0x4b194a));}catch(_0x595f3b){_0x10a790(_0x595f3b);}}function _0x21e232(_0x131d0f){try{_0xf7fa22(_0x5d4b8d['throw'](_0x131d0f));}catch(_0x501dd2){_0x10a790(_0x501dd2);}}function _0xf7fa22(_0x591869){_0x591869['done']?_0x19401c(_0x591869['value']):_0x4fdc2b(_0x591869['value'])['then'](_0x5b6d2a,_0x21e232);}_0xf7fa22((_0x5d4b8d=_0x5d4b8d['apply'](_0x4d7613,_0x5d59e6||[]))['next']());});};class AccountService{constructor(_0x4e0ded){this['fetch']=_0x4e0ded;}['get'](_0x208018,_0x558210){return __awaiter$4(this,void 0,void 0,function*(){const _0x4f856a='Account/'+_0x208018+'/',_0xea274d=yield this['fetch']['get'](_0x4f856a,_0x558210);try{if(_0xea274d['status']>0xc7&&_0xea274d['status']<0x12c){const _0x42d32e=yield _0xea274d['json']();return new SuccessfulAccountResponse(_0x42d32e);}const _0x285db8=yield _0xea274d['json']();return new FailedAccountResponse(_0x285db8);}catch(_0x225750){if(_0x225750 instanceof Error)return new FailedAccountResponse({'detail':_0x225750['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x225750;}});}}
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(_0x53cd3d,_0x3db661,_0x52e895,_0x5c91a3){function _0x3b4e95(_0x45f15e){return _0x45f15e instanceof _0x52e895?_0x45f15e:new _0x52e895(function(_0x351832){_0x351832(_0x45f15e);});}return new(_0x52e895||(_0x52e895=Promise))(function(_0x3311e5,_0x593842){function _0x3a2e66(_0x2afa18){try{_0x471d51(_0x5c91a3['next'](_0x2afa18));}catch(_0x336ae5){_0x593842(_0x336ae5);}}function _0x34c633(_0x5880fc){try{_0x471d51(_0x5c91a3['throw'](_0x5880fc));}catch(_0x55f923){_0x593842(_0x55f923);}}function _0x471d51(_0xac7d3a){_0xac7d3a['done']?_0x3311e5(_0xac7d3a['value']):_0x3b4e95(_0xac7d3a['value'])['then'](_0x3a2e66,_0x34c633);}_0x471d51((_0x5c91a3=_0x5c91a3['apply'](_0x53cd3d,_0x3db661||[]))['next']());});};class ApiKeyService{constructor(_0x5a6280){this['fetch']=_0x5a6280;}['create'](_0x1b239e,_0x4a05b2,_0x50d2ab){return __awaiter$3(this,void 0,void 0,function*(){const _0x1257a4='api-key/create',_0x97e576={'account_name':_0x1b239e,'api_key_name':_0x4a05b2};try{const _0x482f6c=yield this['fetch']['post'](_0x1257a4,_0x50d2ab,_0x97e576);if(_0x482f6c['status']>0xc7&&_0x482f6c['status']<0x12c){const _0x109175=yield _0x482f6c['json']();return new SuccessfulApiKeyResponse(_0x109175);}const _0xf4f786=yield _0x482f6c['json']();return new FailedApiKeyResponse(_0xf4f786);}catch(_0x254b19){if(_0x254b19 instanceof Error)return new FailedApiKeyResponse({'detail':_0x254b19['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x254b19;}});}}
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(_0x9e87a7,_0x2a48f4,_0x143602,_0x4f56fe){function _0x1244b8(_0xc1de7){return _0xc1de7 instanceof _0x143602?_0xc1de7:new _0x143602(function(_0x1ded71){_0x1ded71(_0xc1de7);});}return new(_0x143602||(_0x143602=Promise))(function(_0x5b3af0,_0x517366){function _0x3cf954(_0x48a149){try{_0x5c6bfd(_0x4f56fe['next'](_0x48a149));}catch(_0xab6880){_0x517366(_0xab6880);}}function _0x237864(_0x44ca8f){try{_0x5c6bfd(_0x4f56fe['throw'](_0x44ca8f));}catch(_0x13f047){_0x517366(_0x13f047);}}function _0x5c6bfd(_0x47a31c){_0x47a31c['done']?_0x5b3af0(_0x47a31c['value']):_0x1244b8(_0x47a31c['value'])['then'](_0x3cf954,_0x237864);}_0x5c6bfd((_0x4f56fe=_0x4f56fe['apply'](_0x9e87a7,_0x2a48f4||[]))['next']());});};class ListService{constructor(_0x43baba){this['fetch']=_0x43baba;}['add'](_0x53f2f5,_0x3a2180,_0x51a19c){return __awaiter$2(this,void 0,void 0,function*(){const _0x54355a='List',_0x41bab3={'account_name':_0x53f2f5,'list_name':_0x3a2180};try{const _0x19c539=yield this['fetch']['post'](_0x54355a,_0x51a19c,_0x41bab3);if(_0x19c539['status']>0xc7&&_0x19c539['status']<0x12c){const _0x1ff9cc=yield _0x19c539['json']();return new SuccessfulAccountResponse(_0x1ff9cc);}const _0x1bacdd=yield _0x19c539['json']();return new FailedAccountResponse(_0x1bacdd);}catch(_0x146d49){if(_0x146d49 instanceof Error)return new FailedAccountResponse({'detail':_0x146d49['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x146d49;}});}['remove'](_0x530088,_0x14f329,_0x2468dd){return __awaiter$2(this,void 0,void 0,function*(){const _0x3cf0b4='List/'+_0x530088+'/'+_0x14f329,_0x1dd50f=yield this['fetch']['delete'](_0x3cf0b4,_0x2468dd);try{if(_0x1dd50f['status']>0xc7&&_0x1dd50f['status']<0x12c){const _0x2cdf9f=yield _0x1dd50f['json']();return new SuccessfulAccountResponse(_0x2cdf9f);}const _0x1e6749=yield _0x1dd50f['json']();return new FailedAccountResponse(_0x1e6749);}catch(_0x44a1bf){if(_0x44a1bf instanceof Error)return new FailedAccountResponse({'detail':_0x44a1bf['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x44a1bf;}});}}
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(_0x1921c9,_0x2b416a,_0x4be3e4,_0x4f11cd){function _0x497a0d(_0x54017c){return _0x54017c instanceof _0x4be3e4?_0x54017c:new _0x4be3e4(function(_0x51e930){_0x51e930(_0x54017c);});}return new(_0x4be3e4||(_0x4be3e4=Promise))(function(_0x1fff5b,_0x5d1c8a){function _0x520750(_0x2258f8){try{_0x453509(_0x4f11cd['next'](_0x2258f8));}catch(_0x90bb21){_0x5d1c8a(_0x90bb21);}}function _0x26a891(_0x2212fd){try{_0x453509(_0x4f11cd['throw'](_0x2212fd));}catch(_0xeaeb91){_0x5d1c8a(_0xeaeb91);}}function _0x453509(_0x54eaa6){_0x54eaa6['done']?_0x1fff5b(_0x54eaa6['value']):_0x497a0d(_0x54eaa6['value'])['then'](_0x520750,_0x26a891);}_0x453509((_0x4f11cd=_0x4f11cd['apply'](_0x1921c9,_0x2b416a||[]))['next']());});};class Fetch{constructor(_0x4c54e3){this['baseUri']=_0x4c54e3,this['getUrl']=_0x181bdc=>{return _0x181bdc['startsWith']('/')&&(_0x181bdc=_0x181bdc['replace']('/','')),''+this['baseUri']+_0x181bdc;},!_0x4c54e3['endsWith']('/')&&(_0x4c54e3=_0x4c54e3+'/');}['get'](_0x1fac36,_0x5ca69b){return __awaiter$1(this,void 0,void 0,function*(){const _0x2bc32d=this['getUrl'](_0x1fac36);return yield fetch(_0x2bc32d,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5ca69b}});});}['post'](_0x320b35,_0x2d223c,_0x37bb9a){return __awaiter$1(this,void 0,void 0,function*(){const _0x2d26b0=this['getUrl'](_0x320b35);return yield fetch(_0x2d26b0,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2d223c},'body':_0x37bb9a?JSON['stringify'](_0x37bb9a):null});});}['put'](_0x56054e,_0xd53b08,_0x37f6f0){return __awaiter$1(this,void 0,void 0,function*(){const _0x137ee5=this['getUrl'](_0x56054e);return yield fetch(_0x137ee5,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xd53b08},'body':_0x37f6f0?JSON['stringify'](_0x37f6f0):null});});}['delete'](_0x5d5ea5,_0x2f0cf2){return __awaiter$1(this,void 0,void 0,function*(){const _0xa4fdf3=this['getUrl'](_0x5d5ea5);return yield fetch(_0xa4fdf3,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2f0cf2}});});}}
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(_0x567704,_0x5d8587,_0x3a3eb4,_0x338534){function _0x387830(_0x274db4){return _0x274db4 instanceof _0x3a3eb4?_0x274db4:new _0x3a3eb4(function(_0x477af7){_0x477af7(_0x274db4);});}return new(_0x3a3eb4||(_0x3a3eb4=Promise))(function(_0x28ee44,_0x2e1716){function _0x4e5f(_0x5125a0){try{_0x3ed8a9(_0x338534['next'](_0x5125a0));}catch(_0x3e8776){_0x2e1716(_0x3e8776);}}function _0x30dcc8(_0x2f0435){try{_0x3ed8a9(_0x338534['throw'](_0x2f0435));}catch(_0x596ce8){_0x2e1716(_0x596ce8);}}function _0x3ed8a9(_0x259943){_0x259943['done']?_0x28ee44(_0x259943['value']):_0x387830(_0x259943['value'])['then'](_0x4e5f,_0x30dcc8);}_0x3ed8a9((_0x338534=_0x338534['apply'](_0x567704,_0x5d8587||[]))['next']());});};class AdminClient{constructor(_0x7df90a='https://admin.searchability.dev/'){var _0x57ab82=new Fetch(_0x7df90a);this['Accounts']=new AccountService(_0x57ab82),this['Lists']=new ListService(_0x57ab82),this['ApiKeys']=new ApiKeyService(_0x57ab82);}}class AuthClient{constructor(_0x1db6ef='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x1db6ef);}['login'](_0xbd46f8){return __awaiter(this,void 0,void 0,function*(){var _0x2fbc3a='login/'+_0xbd46f8;try{const _0x3a9fae=yield yield fetch(_0x2fbc3a);if(_0x3a9fae['status']>0xc7&&_0x3a9fae['status']<0x12c){const _0x3d739d=yield _0x3a9fae['json']();return new SuccessfulAuthResponse(_0x3d739d);}const _0x4ef965=yield _0x3a9fae['json']();return new FailedAuthResponse(_0x4ef965);}catch(_0x2a65c2){if(_0x2a65c2 instanceof Error)return new FailedAuthResponse({'detail':_0x2a65c2['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2a65c2;}});}['refresh'](_0x2a68fe){return __awaiter(this,void 0,void 0,function*(){var _0x5063ea='refresh';try{const _0x339ee0=yield this['fetch']['post'](_0x5063ea,_0x2a68fe,null);if(_0x339ee0['status']>0xc7&&_0x339ee0['status']<0x12c){const _0x54cb3f=yield _0x339ee0['json']();return new SuccessfulAuthResponse(_0x54cb3f);}const _0x208b0f=yield _0x339ee0['json']();return new FailedAuthResponse(_0x208b0f);}catch(_0x342a15){if(_0x342a15 instanceof Error)return new FailedAuthResponse({'detail':_0x342a15['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x342a15;}});}}
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.24",
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 };