@searchability/admin-client 0.0.23 → 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(_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':''});});}}
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(_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'];}}
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(_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;}});}}
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(_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;}});}}
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(_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;}});}}
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(_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}});});}}
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(_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;}});}}
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(_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':''});});}}
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(_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'];}}
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(_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;}});}}
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(_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;}});}}
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(_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;}});}}
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(_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}});});}}
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(_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;}});}}
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.23",
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(_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 };