@searchability/admin-client 0.0.19 → 0.0.21

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(_0x54b690,_0x478e2b,_0x49ade5,_0x538a23){function _0x10e540(_0x2413bd){return _0x2413bd instanceof _0x49ade5?_0x2413bd:new _0x49ade5(function(_0x90f4fc){_0x90f4fc(_0x2413bd);});}return new(_0x49ade5||(_0x49ade5=Promise))(function(_0x223395,_0x3da0d8){function _0x50b448(_0xea70c9){try{_0x4dbe62(_0x538a23['next'](_0xea70c9));}catch(_0x69fafa){_0x3da0d8(_0x69fafa);}}function _0x4dd4b2(_0x1b95b5){try{_0x4dbe62(_0x538a23['throw'](_0x1b95b5));}catch(_0x112eab){_0x3da0d8(_0x112eab);}}function _0x4dbe62(_0x4ea396){_0x4ea396['done']?_0x223395(_0x4ea396['value']):_0x10e540(_0x4ea396['value'])['then'](_0x50b448,_0x4dd4b2);}_0x4dbe62((_0x538a23=_0x538a23['apply'](_0x54b690,_0x478e2b||[]))['next']());});};class TokenManager{constructor(_0x5d0b29){this['authClient']=_0x5d0b29;}['getOrRefreshTokens'](_0xa73c87){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0xa73c87['access_expires'])return new SuccessfulAuthResponse(_0xa73c87);if(Date['now']()>_0xa73c87['refresh_expires'])return yield this['authClient']['refresh'](_0xa73c87['refresh_token']);return new FailedAuthResponse({'detail':'Refresh\x20token\x20expired','title':'','status':0x194,'instance':'','type':''});});}}
2
+
3
+ class Response{constructor(_0x37fa23){this['isSuccess']=_0x37fa23;}}class SuccessfulAccountResponse extends Response{constructor(_0x13089d){super(!![]),this['account']=_0x13089d;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x13e768){super(![]),this['problem']=_0x13e768;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x5adb03){super(!![]),this['tokens']=_0x5adb03;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0xd82e62){super(![]),this['problem']=_0xd82e62;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x227613){super(!![]),this['apiKeys']=_0x227613;}['toSuccess'](){return this['apiKeys'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x3a490d){super(![]),this['problem']=_0x3a490d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
+
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x54c679,_0x42cbe8,_0x2d7567,_0xba6753){function _0x35055f(_0x4fb648){return _0x4fb648 instanceof _0x2d7567?_0x4fb648:new _0x2d7567(function(_0x3bdc42){_0x3bdc42(_0x4fb648);});}return new(_0x2d7567||(_0x2d7567=Promise))(function(_0x540c5a,_0x2cfe7f){function _0x2e909d(_0x2b0aae){try{_0x41532e(_0xba6753['next'](_0x2b0aae));}catch(_0x11dec1){_0x2cfe7f(_0x11dec1);}}function _0x2260cb(_0x149d37){try{_0x41532e(_0xba6753['throw'](_0x149d37));}catch(_0x27a354){_0x2cfe7f(_0x27a354);}}function _0x41532e(_0x11f78f){_0x11f78f['done']?_0x540c5a(_0x11f78f['value']):_0x35055f(_0x11f78f['value'])['then'](_0x2e909d,_0x2260cb);}_0x41532e((_0xba6753=_0xba6753['apply'](_0x54c679,_0x42cbe8||[]))['next']());});};class AccountService{constructor(_0x2944b3){this['fetch']=_0x2944b3;}['get'](_0x2f08b6,_0x54f4ef){return __awaiter$4(this,void 0,void 0,function*(){const _0x252331='Account/'+_0x2f08b6+'/',_0x13fa0a=yield this['fetch']['get'](_0x252331,_0x54f4ef);try{if(_0x13fa0a['status']>0xc7&&_0x13fa0a['status']<0x12c){const _0x45565a=yield _0x13fa0a['json']();return new SuccessfulAccountResponse(_0x45565a);}const _0x1b88f2=yield _0x13fa0a['json']();return new FailedAccountResponse(_0x1b88f2);}catch(_0x81e3a5){if(_0x81e3a5 instanceof Error)return new FailedAccountResponse({'detail':_0x81e3a5['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x81e3a5;}});}}
6
+
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0xfc9f78,_0x521589,_0x26fc23,_0x3ab864){function _0x56cabb(_0x1c5146){return _0x1c5146 instanceof _0x26fc23?_0x1c5146:new _0x26fc23(function(_0x3b16ab){_0x3b16ab(_0x1c5146);});}return new(_0x26fc23||(_0x26fc23=Promise))(function(_0x454522,_0x4d47dd){function _0x3b50bc(_0x242a60){try{_0xe5d335(_0x3ab864['next'](_0x242a60));}catch(_0x10dbc2){_0x4d47dd(_0x10dbc2);}}function _0x462cb9(_0x3c6a24){try{_0xe5d335(_0x3ab864['throw'](_0x3c6a24));}catch(_0x49f683){_0x4d47dd(_0x49f683);}}function _0xe5d335(_0x986196){_0x986196['done']?_0x454522(_0x986196['value']):_0x56cabb(_0x986196['value'])['then'](_0x3b50bc,_0x462cb9);}_0xe5d335((_0x3ab864=_0x3ab864['apply'](_0xfc9f78,_0x521589||[]))['next']());});};class ApiKeyService{constructor(_0x1b95b3){this['fetch']=_0x1b95b3;}['create'](_0x31f678,_0x88cd5f,_0xa660a9){return __awaiter$3(this,void 0,void 0,function*(){const _0x3d17d4='ApiKey/Create',_0x33c43d={'account_name':_0x31f678,'name':_0x88cd5f};try{const _0x5d64f7=yield this['fetch']['post'](_0x3d17d4,_0xa660a9,_0x33c43d);if(_0x5d64f7['status']>0xc7&&_0x5d64f7['status']<0x12c){const _0x49cc85=yield _0x5d64f7['json']();return new SuccessfulApiKeyResponse(_0x49cc85);}const _0x1035f3=yield _0x5d64f7['json']();return new FailedApiKeyResponse(_0x1035f3);}catch(_0x2ecd65){if(_0x2ecd65 instanceof Error)return new FailedApiKeyResponse({'detail':_0x2ecd65['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2ecd65;}});}}
8
+
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x1541e8,_0x36758e,_0x30129e,_0x299512){function _0x2d4f4f(_0x41de95){return _0x41de95 instanceof _0x30129e?_0x41de95:new _0x30129e(function(_0x4c2914){_0x4c2914(_0x41de95);});}return new(_0x30129e||(_0x30129e=Promise))(function(_0x4e0625,_0x2d2671){function _0x48e593(_0x292180){try{_0x3a2d43(_0x299512['next'](_0x292180));}catch(_0x513643){_0x2d2671(_0x513643);}}function _0x2514ea(_0x410408){try{_0x3a2d43(_0x299512['throw'](_0x410408));}catch(_0x4e4a2d){_0x2d2671(_0x4e4a2d);}}function _0x3a2d43(_0x1201c6){_0x1201c6['done']?_0x4e0625(_0x1201c6['value']):_0x2d4f4f(_0x1201c6['value'])['then'](_0x48e593,_0x2514ea);}_0x3a2d43((_0x299512=_0x299512['apply'](_0x1541e8,_0x36758e||[]))['next']());});};class ListService{constructor(_0x568209){this['fetch']=_0x568209;}['add'](_0xabfbd5,_0x3b520d,_0x703b66){return __awaiter$2(this,void 0,void 0,function*(){const _0x16bb99='List',_0x3b048f={'account_name':_0xabfbd5,'list_name':_0x3b520d};try{const _0x15e271=yield this['fetch']['post'](_0x16bb99,_0x703b66,_0x3b048f);if(_0x15e271['status']>0xc7&&_0x15e271['status']<0x12c){const _0x1a5abd=yield _0x15e271['json']();return new SuccessfulAccountResponse(_0x1a5abd);}const _0x556a15=yield _0x15e271['json']();return new FailedAccountResponse(_0x556a15);}catch(_0x5c91f8){if(_0x5c91f8 instanceof Error)return new FailedAccountResponse({'detail':_0x5c91f8['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5c91f8;}});}['remove'](_0x281107,_0x17843b,_0x31d24a){return __awaiter$2(this,void 0,void 0,function*(){const _0x47e058='List/'+_0x281107+'/'+_0x17843b,_0x3bacd8=yield this['fetch']['delete'](_0x47e058,_0x31d24a);try{if(_0x3bacd8['status']>0xc7&&_0x3bacd8['status']<0x12c){const _0x5c4482=yield _0x3bacd8['json']();return new SuccessfulAccountResponse(_0x5c4482);}const _0x3463a4=yield _0x3bacd8['json']();return new FailedAccountResponse(_0x3463a4);}catch(_0x751fc9){if(_0x751fc9 instanceof Error)return new FailedAccountResponse({'detail':_0x751fc9['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x751fc9;}});}}
10
+
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x256c5d,_0x380ff2,_0x3f2c9c,_0x52444f){function _0x157255(_0x488e1a){return _0x488e1a instanceof _0x3f2c9c?_0x488e1a:new _0x3f2c9c(function(_0x1accdf){_0x1accdf(_0x488e1a);});}return new(_0x3f2c9c||(_0x3f2c9c=Promise))(function(_0x403b63,_0x1b065c){function _0x58115b(_0x4da783){try{_0x8d3f21(_0x52444f['next'](_0x4da783));}catch(_0x3c6030){_0x1b065c(_0x3c6030);}}function _0x17b709(_0x1d8554){try{_0x8d3f21(_0x52444f['throw'](_0x1d8554));}catch(_0x1640ae){_0x1b065c(_0x1640ae);}}function _0x8d3f21(_0x2f26c1){_0x2f26c1['done']?_0x403b63(_0x2f26c1['value']):_0x157255(_0x2f26c1['value'])['then'](_0x58115b,_0x17b709);}_0x8d3f21((_0x52444f=_0x52444f['apply'](_0x256c5d,_0x380ff2||[]))['next']());});};class Fetch{constructor(_0x296f93){this['baseUri']=_0x296f93,this['getUrl']=_0x52dad9=>{return _0x52dad9['startsWith']('/')&&(_0x52dad9=_0x52dad9['replace']('/','')),''+this['baseUri']+_0x52dad9;},!_0x296f93['endsWith']('/')&&(_0x296f93=_0x296f93+'/');}['get'](_0x495adc,_0xe5f488){return __awaiter$1(this,void 0,void 0,function*(){const _0x262199=this['getUrl'](_0x495adc);return yield fetch(_0x262199,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xe5f488}});});}['post'](_0x3b9a36,_0x5326e7,_0x9e9ab6){return __awaiter$1(this,void 0,void 0,function*(){const _0xff10ab=this['getUrl'](_0x3b9a36);return yield fetch(_0xff10ab,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5326e7},'body':_0x9e9ab6?JSON['stringify'](_0x9e9ab6):null});});}['put'](_0x8d7257,_0x987873,_0x218ebf){return __awaiter$1(this,void 0,void 0,function*(){const _0x2fe704=this['getUrl'](_0x8d7257);return yield fetch(_0x2fe704,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x987873},'body':_0x218ebf?JSON['stringify'](_0x218ebf):null});});}['delete'](_0x1149b7,_0x3210f2){return __awaiter$1(this,void 0,void 0,function*(){const _0x4087d8=this['getUrl'](_0x1149b7);return yield fetch(_0x4087d8,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3210f2}});});}}
12
+
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x446d4c,_0x2a827b,_0x119f1e,_0x377e96){function _0x863bad(_0x428c19){return _0x428c19 instanceof _0x119f1e?_0x428c19:new _0x119f1e(function(_0x2c6dc2){_0x2c6dc2(_0x428c19);});}return new(_0x119f1e||(_0x119f1e=Promise))(function(_0x21181b,_0x2643e3){function _0x30bc71(_0x3f0c02){try{_0x5fdef5(_0x377e96['next'](_0x3f0c02));}catch(_0x24c155){_0x2643e3(_0x24c155);}}function _0x2cdfe9(_0x8cd318){try{_0x5fdef5(_0x377e96['throw'](_0x8cd318));}catch(_0x38dac1){_0x2643e3(_0x38dac1);}}function _0x5fdef5(_0x4c5a38){_0x4c5a38['done']?_0x21181b(_0x4c5a38['value']):_0x863bad(_0x4c5a38['value'])['then'](_0x30bc71,_0x2cdfe9);}_0x5fdef5((_0x377e96=_0x377e96['apply'](_0x446d4c,_0x2a827b||[]))['next']());});};class AdminClient{constructor(_0x23adc2='https://admin.searchability.dev/'){var _0x39845b=new Fetch(_0x23adc2);this['Accounts']=new AccountService(_0x39845b),this['Lists']=new ListService(_0x39845b),this['ApiKeys']=new ApiKeyService(_0x39845b);}}class AuthClient{constructor(_0x3477b2='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x3477b2);}['login'](_0x2a8000){return __awaiter(this,void 0,void 0,function*(){var _0x383ad9='login/'+_0x2a8000;try{const _0x585892=yield yield fetch(_0x383ad9);if(_0x585892['status']>0xc7&&_0x585892['status']<0x12c){const _0x40c18a=yield _0x585892['json']();return new SuccessfulAuthResponse(_0x40c18a);}const _0x52450f=yield _0x585892['json']();return new FailedAuthResponse(_0x52450f);}catch(_0x5b8686){if(_0x5b8686 instanceof Error)return new FailedAuthResponse({'detail':_0x5b8686['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5b8686;}});}['refresh'](_0x231c38){return __awaiter(this,void 0,void 0,function*(){var _0x3f1dba='refresh';try{const _0x11754b=yield this['fetch']['post'](_0x3f1dba,_0x231c38,null);if(_0x11754b['status']>0xc7&&_0x11754b['status']<0x12c){const _0x59e235=yield _0x11754b['json']();return new SuccessfulAuthResponse(_0x59e235);}const _0x56f3bd=yield _0x11754b['json']();return new FailedAuthResponse(_0x56f3bd);}catch(_0xda903e){if(_0xda903e instanceof Error)return new FailedAuthResponse({'detail':_0xda903e['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xda903e;}});}}
14
+
15
+ export { AdminClient, AuthClient, TokenManager };
@@ -1,18 +1,19 @@
1
1
  'use strict';
2
2
 
3
- undefined&&undefined['__awaiter']||function(_0x5a3a39,_0x4b2db0,_0x124244,_0x1bf66b){function _0x4f5cb4(_0x2ad17){return _0x2ad17 instanceof _0x124244?_0x2ad17:new _0x124244(function(_0x5804e8){_0x5804e8(_0x2ad17);});}return new(_0x124244||(_0x124244=Promise))(function(_0x48d0e7,_0x2bfe18){function _0x8fe6e2(_0x416f54){try{_0x2c9684(_0x1bf66b['next'](_0x416f54));}catch(_0x22a44b){_0x2bfe18(_0x22a44b);}}function _0x19c1bb(_0x321a05){try{_0x2c9684(_0x1bf66b['throw'](_0x321a05));}catch(_0x4f2b53){_0x2bfe18(_0x4f2b53);}}function _0x2c9684(_0x2e8b8a){_0x2e8b8a['done']?_0x48d0e7(_0x2e8b8a['value']):_0x4f5cb4(_0x2e8b8a['value'])['then'](_0x8fe6e2,_0x19c1bb);}_0x2c9684((_0x1bf66b=_0x1bf66b['apply'](_0x5a3a39,_0x4b2db0||[]))['next']());});};
3
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x730119,_0x2646ac,_0x28ce7c,_0x443d94){function _0x48a52f(_0x43d741){return _0x43d741 instanceof _0x28ce7c?_0x43d741:new _0x28ce7c(function(_0x5eb8bb){_0x5eb8bb(_0x43d741);});}return new(_0x28ce7c||(_0x28ce7c=Promise))(function(_0x3a4901,_0x45b1be){function _0x52d075(_0x204557){try{_0x39dca9(_0x443d94['next'](_0x204557));}catch(_0x2757a4){_0x45b1be(_0x2757a4);}}function _0x1743a5(_0x279cd9){try{_0x39dca9(_0x443d94['throw'](_0x279cd9));}catch(_0x353ceb){_0x45b1be(_0x353ceb);}}function _0x39dca9(_0x57227e){_0x57227e['done']?_0x3a4901(_0x57227e['value']):_0x48a52f(_0x57227e['value'])['then'](_0x52d075,_0x1743a5);}_0x39dca9((_0x443d94=_0x443d94['apply'](_0x730119,_0x2646ac||[]))['next']());});};class TokenManager{constructor(_0x480b8d){this['authClient']=_0x480b8d;}['getOrRefreshTokens'](_0x15c69b){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0x15c69b['access_expires'])return new SuccessfulAuthResponse(_0x15c69b);if(Date['now']()>_0x15c69b['refresh_expires'])return yield this['authClient']['refresh'](_0x15c69b['refresh_token']);return new FailedAuthResponse({'detail':'Refresh\x20token\x20expired','title':'','status':0x194,'instance':'','type':''});});}}
4
4
 
5
- class Response{constructor(_0x6261e8){this['isSuccess']=_0x6261e8;}}class SuccessfulAccountResponse extends Response{constructor(_0x39d384){super(!![]),this['account']=_0x39d384;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x1b3eaa){super(![]),this['problem']=_0x1b3eaa;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x2810a1){super(!![]),this['tokens']=_0x2810a1;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x4cafbb){super(![]),this['problem']=_0x4cafbb;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x34d443){super(!![]),this['apiKeys']=_0x34d443;}['toSuccess'](){return this['apiKeys'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4c81f7){super(![]),this['problem']=_0x4c81f7;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
5
+ class Response{constructor(_0x518734){this['isSuccess']=_0x518734;}}class SuccessfulAccountResponse extends Response{constructor(_0x5e398e){super(!![]),this['account']=_0x5e398e;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x33fb6e){super(![]),this['problem']=_0x33fb6e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x2004f7){super(!![]),this['tokens']=_0x2004f7;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x1af344){super(![]),this['problem']=_0x1af344;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x21ccbd){super(!![]),this['apiKeys']=_0x21ccbd;}['toSuccess'](){return this['apiKeys'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x3e5db4){super(![]),this['problem']=_0x3e5db4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
6
6
 
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x638aa9,_0x5bee76,_0x49b5ca,_0x24c39b){function _0x1fe46f(_0x24a58c){return _0x24a58c instanceof _0x49b5ca?_0x24a58c:new _0x49b5ca(function(_0x164e7b){_0x164e7b(_0x24a58c);});}return new(_0x49b5ca||(_0x49b5ca=Promise))(function(_0x6f5cf5,_0x4f2398){function _0x46519b(_0xd12512){try{_0x3ce84e(_0x24c39b['next'](_0xd12512));}catch(_0x1cdfec){_0x4f2398(_0x1cdfec);}}function _0x69bde(_0x9f315){try{_0x3ce84e(_0x24c39b['throw'](_0x9f315));}catch(_0x1a2ef4){_0x4f2398(_0x1a2ef4);}}function _0x3ce84e(_0x5a407e){_0x5a407e['done']?_0x6f5cf5(_0x5a407e['value']):_0x1fe46f(_0x5a407e['value'])['then'](_0x46519b,_0x69bde);}_0x3ce84e((_0x24c39b=_0x24c39b['apply'](_0x638aa9,_0x5bee76||[]))['next']());});};class AccountService{constructor(_0x1477d2){this['fetch']=_0x1477d2;}['get'](_0x452bfa,_0x43a4e0){return __awaiter$4(this,void 0,void 0,function*(){const _0x459b6b='Account/'+_0x452bfa+'/',_0x123515=yield this['fetch']['get'](_0x459b6b,_0x43a4e0);try{if(_0x123515['status']>0xc7&&_0x123515['status']<0x12c){const _0x2ada05=yield _0x123515['json']();return new SuccessfulAccountResponse(_0x2ada05);}const _0x26eac9=yield _0x123515['json']();return new FailedAccountResponse(_0x26eac9);}catch(_0x5c9b1d){if(_0x5c9b1d instanceof Error)return new FailedAccountResponse({'detail':_0x5c9b1d['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5c9b1d;}});}}
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0xaf19e2,_0x4986f3,_0x599ca9,_0x4140ca){function _0x3fa9e2(_0x51a812){return _0x51a812 instanceof _0x599ca9?_0x51a812:new _0x599ca9(function(_0x4265ff){_0x4265ff(_0x51a812);});}return new(_0x599ca9||(_0x599ca9=Promise))(function(_0x475ded,_0x3d11e2){function _0x56561a(_0x148b9c){try{_0x23a0b1(_0x4140ca['next'](_0x148b9c));}catch(_0x24757f){_0x3d11e2(_0x24757f);}}function _0x238de6(_0x1d6358){try{_0x23a0b1(_0x4140ca['throw'](_0x1d6358));}catch(_0x502a92){_0x3d11e2(_0x502a92);}}function _0x23a0b1(_0xc3c53b){_0xc3c53b['done']?_0x475ded(_0xc3c53b['value']):_0x3fa9e2(_0xc3c53b['value'])['then'](_0x56561a,_0x238de6);}_0x23a0b1((_0x4140ca=_0x4140ca['apply'](_0xaf19e2,_0x4986f3||[]))['next']());});};class AccountService{constructor(_0x107cc8){this['fetch']=_0x107cc8;}['get'](_0x316791,_0x492cbf){return __awaiter$4(this,void 0,void 0,function*(){const _0x43e99e='Account/'+_0x316791+'/',_0x4ddd35=yield this['fetch']['get'](_0x43e99e,_0x492cbf);try{if(_0x4ddd35['status']>0xc7&&_0x4ddd35['status']<0x12c){const _0x40bcdb=yield _0x4ddd35['json']();return new SuccessfulAccountResponse(_0x40bcdb);}const _0x18edf1=yield _0x4ddd35['json']();return new FailedAccountResponse(_0x18edf1);}catch(_0x140210){if(_0x140210 instanceof Error)return new FailedAccountResponse({'detail':_0x140210['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x140210;}});}}
8
8
 
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x297eab,_0x1ea1bc,_0x114ff4,_0x4ad39d){function _0x59d6e4(_0x86e2aa){return _0x86e2aa instanceof _0x114ff4?_0x86e2aa:new _0x114ff4(function(_0x1a6119){_0x1a6119(_0x86e2aa);});}return new(_0x114ff4||(_0x114ff4=Promise))(function(_0x5124e0,_0x39ab71){function _0x22e634(_0x598f7f){try{_0x26a4c3(_0x4ad39d['next'](_0x598f7f));}catch(_0x417eb0){_0x39ab71(_0x417eb0);}}function _0x32f4ef(_0x59222d){try{_0x26a4c3(_0x4ad39d['throw'](_0x59222d));}catch(_0x2af4c){_0x39ab71(_0x2af4c);}}function _0x26a4c3(_0x563776){_0x563776['done']?_0x5124e0(_0x563776['value']):_0x59d6e4(_0x563776['value'])['then'](_0x22e634,_0x32f4ef);}_0x26a4c3((_0x4ad39d=_0x4ad39d['apply'](_0x297eab,_0x1ea1bc||[]))['next']());});};class ApiKeyService{constructor(_0x6115e0){this['fetch']=_0x6115e0;}['create'](_0x3350ad,_0x48682a,_0x2ef38b){return __awaiter$3(this,void 0,void 0,function*(){const _0x52cbf4='ApiKey/Create',_0x562165={'account_name':_0x3350ad,'name':_0x48682a};try{const _0x29de61=yield this['fetch']['post'](_0x52cbf4,_0x2ef38b,_0x562165);if(_0x29de61['status']>0xc7&&_0x29de61['status']<0x12c){const _0x2fd35f=yield _0x29de61['json']();return new SuccessfulApiKeyResponse(_0x2fd35f);}const _0x321782=yield _0x29de61['json']();return new FailedApiKeyResponse(_0x321782);}catch(_0x5c263a){if(_0x5c263a instanceof Error)return new FailedApiKeyResponse({'detail':_0x5c263a['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5c263a;}});}}
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x1d1e18,_0x267cd5,_0x583b08,_0xeeb812){function _0x211fe8(_0x49b4ad){return _0x49b4ad instanceof _0x583b08?_0x49b4ad:new _0x583b08(function(_0x1fde52){_0x1fde52(_0x49b4ad);});}return new(_0x583b08||(_0x583b08=Promise))(function(_0x44a895,_0x260d9e){function _0x3eae37(_0x324c3c){try{_0x4dcad9(_0xeeb812['next'](_0x324c3c));}catch(_0x140172){_0x260d9e(_0x140172);}}function _0x3594a0(_0x5e72a4){try{_0x4dcad9(_0xeeb812['throw'](_0x5e72a4));}catch(_0x47afaf){_0x260d9e(_0x47afaf);}}function _0x4dcad9(_0x2d7099){_0x2d7099['done']?_0x44a895(_0x2d7099['value']):_0x211fe8(_0x2d7099['value'])['then'](_0x3eae37,_0x3594a0);}_0x4dcad9((_0xeeb812=_0xeeb812['apply'](_0x1d1e18,_0x267cd5||[]))['next']());});};class ApiKeyService{constructor(_0x279b40){this['fetch']=_0x279b40;}['create'](_0x3b0bb7,_0x30748a,_0x115906){return __awaiter$3(this,void 0,void 0,function*(){const _0x320e8d='ApiKey/Create',_0x234b6a={'account_name':_0x3b0bb7,'name':_0x30748a};try{const _0xc94914=yield this['fetch']['post'](_0x320e8d,_0x115906,_0x234b6a);if(_0xc94914['status']>0xc7&&_0xc94914['status']<0x12c){const _0x7df47d=yield _0xc94914['json']();return new SuccessfulApiKeyResponse(_0x7df47d);}const _0x215b4d=yield _0xc94914['json']();return new FailedApiKeyResponse(_0x215b4d);}catch(_0x1598ad){if(_0x1598ad instanceof Error)return new FailedApiKeyResponse({'detail':_0x1598ad['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x1598ad;}});}}
10
10
 
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x3d9183,_0x3c1184,_0x108637,_0x2ffffe){function _0x4e2d48(_0xe7ac56){return _0xe7ac56 instanceof _0x108637?_0xe7ac56:new _0x108637(function(_0xd6db18){_0xd6db18(_0xe7ac56);});}return new(_0x108637||(_0x108637=Promise))(function(_0x17a555,_0x1c7ba7){function _0xcbfde6(_0x3eb90c){try{_0x1bcb35(_0x2ffffe['next'](_0x3eb90c));}catch(_0x1ad236){_0x1c7ba7(_0x1ad236);}}function _0x5ee071(_0x47284a){try{_0x1bcb35(_0x2ffffe['throw'](_0x47284a));}catch(_0x253d38){_0x1c7ba7(_0x253d38);}}function _0x1bcb35(_0x137445){_0x137445['done']?_0x17a555(_0x137445['value']):_0x4e2d48(_0x137445['value'])['then'](_0xcbfde6,_0x5ee071);}_0x1bcb35((_0x2ffffe=_0x2ffffe['apply'](_0x3d9183,_0x3c1184||[]))['next']());});};class ListService{constructor(_0x405058){this['fetch']=_0x405058;}['add'](_0xd35366,_0x13f56b,_0x2991bf){return __awaiter$2(this,void 0,void 0,function*(){const _0x370fbb='List',_0x40ea26={'account_name':_0xd35366,'list_name':_0x13f56b};try{const _0x576b49=yield this['fetch']['post'](_0x370fbb,_0x2991bf,_0x40ea26);if(_0x576b49['status']>0xc7&&_0x576b49['status']<0x12c){const _0x50f4c3=yield _0x576b49['json']();return new SuccessfulAccountResponse(_0x50f4c3);}const _0x5e27b1=yield _0x576b49['json']();return new FailedAccountResponse(_0x5e27b1);}catch(_0x4890e2){if(_0x4890e2 instanceof Error)return new FailedAccountResponse({'detail':_0x4890e2['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x4890e2;}});}['remove'](_0x5159b2,_0x1284ca,_0x1fa661){return __awaiter$2(this,void 0,void 0,function*(){const _0x1fbb63='List/'+_0x5159b2+'/'+_0x1284ca,_0x544dc4=yield this['fetch']['delete'](_0x1fbb63,_0x1fa661);try{if(_0x544dc4['status']>0xc7&&_0x544dc4['status']<0x12c){const _0x27310a=yield _0x544dc4['json']();return new SuccessfulAccountResponse(_0x27310a);}const _0x347eff=yield _0x544dc4['json']();return new FailedAccountResponse(_0x347eff);}catch(_0x54849a){if(_0x54849a instanceof Error)return new FailedAccountResponse({'detail':_0x54849a['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x54849a;}});}}
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x5a1b7a,_0x146e2d,_0x1745bd,_0x4d901d){function _0x4efd2e(_0x7f8a20){return _0x7f8a20 instanceof _0x1745bd?_0x7f8a20:new _0x1745bd(function(_0x594444){_0x594444(_0x7f8a20);});}return new(_0x1745bd||(_0x1745bd=Promise))(function(_0x3d68b6,_0x58e53f){function _0x383af4(_0x1c38b2){try{_0x1496c9(_0x4d901d['next'](_0x1c38b2));}catch(_0x3a5128){_0x58e53f(_0x3a5128);}}function _0x1fb7d0(_0x1a7f40){try{_0x1496c9(_0x4d901d['throw'](_0x1a7f40));}catch(_0x146616){_0x58e53f(_0x146616);}}function _0x1496c9(_0xe569a2){_0xe569a2['done']?_0x3d68b6(_0xe569a2['value']):_0x4efd2e(_0xe569a2['value'])['then'](_0x383af4,_0x1fb7d0);}_0x1496c9((_0x4d901d=_0x4d901d['apply'](_0x5a1b7a,_0x146e2d||[]))['next']());});};class ListService{constructor(_0x46c866){this['fetch']=_0x46c866;}['add'](_0x243ec4,_0x5a8016,_0x45dbf4){return __awaiter$2(this,void 0,void 0,function*(){const _0x2bb0a1='List',_0x55d3d5={'account_name':_0x243ec4,'list_name':_0x5a8016};try{const _0x538217=yield this['fetch']['post'](_0x2bb0a1,_0x45dbf4,_0x55d3d5);if(_0x538217['status']>0xc7&&_0x538217['status']<0x12c){const _0x356c06=yield _0x538217['json']();return new SuccessfulAccountResponse(_0x356c06);}const _0x3b5a6a=yield _0x538217['json']();return new FailedAccountResponse(_0x3b5a6a);}catch(_0x54cd18){if(_0x54cd18 instanceof Error)return new FailedAccountResponse({'detail':_0x54cd18['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x54cd18;}});}['remove'](_0x353387,_0x11f6d4,_0x4d0f78){return __awaiter$2(this,void 0,void 0,function*(){const _0x1dc2f0='List/'+_0x353387+'/'+_0x11f6d4,_0x2647eb=yield this['fetch']['delete'](_0x1dc2f0,_0x4d0f78);try{if(_0x2647eb['status']>0xc7&&_0x2647eb['status']<0x12c){const _0x580fd4=yield _0x2647eb['json']();return new SuccessfulAccountResponse(_0x580fd4);}const _0x4d997d=yield _0x2647eb['json']();return new FailedAccountResponse(_0x4d997d);}catch(_0x141a44){if(_0x141a44 instanceof Error)return new FailedAccountResponse({'detail':_0x141a44['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x141a44;}});}}
12
12
 
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x38d705,_0x28c9db,_0x45b149,_0x415d26){function _0x3595b3(_0x345d0d){return _0x345d0d instanceof _0x45b149?_0x345d0d:new _0x45b149(function(_0x5731c4){_0x5731c4(_0x345d0d);});}return new(_0x45b149||(_0x45b149=Promise))(function(_0x4df549,_0x2fb9eb){function _0x1cb0b4(_0x4eda17){try{_0x409df3(_0x415d26['next'](_0x4eda17));}catch(_0x2a98fb){_0x2fb9eb(_0x2a98fb);}}function _0x517736(_0x79f4c6){try{_0x409df3(_0x415d26['throw'](_0x79f4c6));}catch(_0x42561a){_0x2fb9eb(_0x42561a);}}function _0x409df3(_0x352f01){_0x352f01['done']?_0x4df549(_0x352f01['value']):_0x3595b3(_0x352f01['value'])['then'](_0x1cb0b4,_0x517736);}_0x409df3((_0x415d26=_0x415d26['apply'](_0x38d705,_0x28c9db||[]))['next']());});};class Fetch{constructor(_0x334189){this['baseUri']=_0x334189,this['getUrl']=_0x3607ed=>{return _0x3607ed['startsWith']('/')&&(_0x3607ed=_0x3607ed['replace']('/','')),''+this['baseUri']+_0x3607ed;},!_0x334189['endsWith']('/')&&(_0x334189=_0x334189+'/');}['get'](_0x445f7d,_0x333780){return __awaiter$1(this,void 0,void 0,function*(){const _0x54967c=this['getUrl'](_0x445f7d);return yield fetch(_0x54967c,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x333780}});});}['post'](_0x4bc071,_0xe27281,_0x1ae075){return __awaiter$1(this,void 0,void 0,function*(){const _0x57075a=this['getUrl'](_0x4bc071);return yield fetch(_0x57075a,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xe27281},'body':_0x1ae075?JSON['stringify'](_0x1ae075):null});});}['put'](_0x4cde64,_0x17dbe0,_0x11ca4a){return __awaiter$1(this,void 0,void 0,function*(){const _0x14e033=this['getUrl'](_0x4cde64);return yield fetch(_0x14e033,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x17dbe0},'body':_0x11ca4a?JSON['stringify'](_0x11ca4a):null});});}['delete'](_0x47b0ca,_0x57e746){return __awaiter$1(this,void 0,void 0,function*(){const _0x18ad7e=this['getUrl'](_0x47b0ca);return yield fetch(_0x18ad7e,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x57e746}});});}}
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x38e79e,_0x3fe442,_0x2c9269,_0x49a1af){function _0x49f3ac(_0x24259e){return _0x24259e instanceof _0x2c9269?_0x24259e:new _0x2c9269(function(_0x316164){_0x316164(_0x24259e);});}return new(_0x2c9269||(_0x2c9269=Promise))(function(_0x124bf3,_0x36bdfb){function _0x4d161c(_0x48eaf3){try{_0x5b31cf(_0x49a1af['next'](_0x48eaf3));}catch(_0x12899d){_0x36bdfb(_0x12899d);}}function _0x5c4394(_0x4650a7){try{_0x5b31cf(_0x49a1af['throw'](_0x4650a7));}catch(_0x544e9a){_0x36bdfb(_0x544e9a);}}function _0x5b31cf(_0x30e18e){_0x30e18e['done']?_0x124bf3(_0x30e18e['value']):_0x49f3ac(_0x30e18e['value'])['then'](_0x4d161c,_0x5c4394);}_0x5b31cf((_0x49a1af=_0x49a1af['apply'](_0x38e79e,_0x3fe442||[]))['next']());});};class Fetch{constructor(_0x4ddd14){this['baseUri']=_0x4ddd14,this['getUrl']=_0x1e1f8e=>{return _0x1e1f8e['startsWith']('/')&&(_0x1e1f8e=_0x1e1f8e['replace']('/','')),''+this['baseUri']+_0x1e1f8e;},!_0x4ddd14['endsWith']('/')&&(_0x4ddd14=_0x4ddd14+'/');}['get'](_0x23d55a,_0x3f4a15){return __awaiter$1(this,void 0,void 0,function*(){const _0x800211=this['getUrl'](_0x23d55a);return yield fetch(_0x800211,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3f4a15}});});}['post'](_0x43f5ba,_0x4cdc95,_0x4a9465){return __awaiter$1(this,void 0,void 0,function*(){const _0x42a6a0=this['getUrl'](_0x43f5ba);return yield fetch(_0x42a6a0,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4cdc95},'body':_0x4a9465?JSON['stringify'](_0x4a9465):null});});}['put'](_0x3af181,_0x161868,_0x4220e0){return __awaiter$1(this,void 0,void 0,function*(){const _0xb672d2=this['getUrl'](_0x3af181);return yield fetch(_0xb672d2,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x161868},'body':_0x4220e0?JSON['stringify'](_0x4220e0):null});});}['delete'](_0xa3cec7,_0x54c713){return __awaiter$1(this,void 0,void 0,function*(){const _0xaa1e19=this['getUrl'](_0xa3cec7);return yield fetch(_0xaa1e19,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x54c713}});});}}
14
14
 
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x5ae4e8,_0x48869d,_0x517c83,_0x366159){function _0x261e4b(_0x3556e1){return _0x3556e1 instanceof _0x517c83?_0x3556e1:new _0x517c83(function(_0x38ef69){_0x38ef69(_0x3556e1);});}return new(_0x517c83||(_0x517c83=Promise))(function(_0x3411ca,_0xa25297){function _0xa8f513(_0x5c8a0b){try{_0x27bc60(_0x366159['next'](_0x5c8a0b));}catch(_0x2fa74a){_0xa25297(_0x2fa74a);}}function _0x5ac595(_0x2cc04f){try{_0x27bc60(_0x366159['throw'](_0x2cc04f));}catch(_0x2c9130){_0xa25297(_0x2c9130);}}function _0x27bc60(_0x33625d){_0x33625d['done']?_0x3411ca(_0x33625d['value']):_0x261e4b(_0x33625d['value'])['then'](_0xa8f513,_0x5ac595);}_0x27bc60((_0x366159=_0x366159['apply'](_0x5ae4e8,_0x48869d||[]))['next']());});};class AdminClient{constructor(_0x58c4eb='https://admin.searchability.dev/'){var _0x3d5929=new Fetch(_0x58c4eb);this['Accounts']=new AccountService(_0x3d5929),this['Lists']=new ListService(_0x3d5929),this['ApiKeys']=new ApiKeyService(_0x3d5929);}}class AuthClient{constructor(_0x58438c='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x58438c);}['login'](_0x39164a){return __awaiter(this,void 0,void 0,function*(){var _0x4728a3='login/'+_0x39164a;try{const _0x13f038=yield yield fetch(_0x4728a3);if(_0x13f038['status']>0xc7&&_0x13f038['status']<0x12c){const _0x303c46=yield _0x13f038['json']();return new SuccessfulAuthResponse(_0x303c46);}const _0x51d2b7=yield _0x13f038['json']();return new FailedAuthResponse(_0x51d2b7);}catch(_0x3e1c41){if(_0x3e1c41 instanceof Error)return new FailedAuthResponse({'detail':_0x3e1c41['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3e1c41;}});}['refresh'](_0x121fa5){return __awaiter(this,void 0,void 0,function*(){var _0x1d99a2='refresh';try{const _0x529646=yield this['fetch']['post'](_0x1d99a2,_0x121fa5,null);if(_0x529646['status']>0xc7&&_0x529646['status']<0x12c){const _0xaae093=yield _0x529646['json']();return new SuccessfulAuthResponse(_0xaae093);}const _0x4e55c1=yield _0x529646['json']();return new FailedAuthResponse(_0x4e55c1);}catch(_0x167d20){if(_0x167d20 instanceof Error)return new FailedAuthResponse({'detail':_0x167d20['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x167d20;}});}}
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x25c425,_0x28a24f,_0x5df903,_0x50dde4){function _0x336b66(_0x65dc2a){return _0x65dc2a instanceof _0x5df903?_0x65dc2a:new _0x5df903(function(_0x40ce84){_0x40ce84(_0x65dc2a);});}return new(_0x5df903||(_0x5df903=Promise))(function(_0x54183b,_0x56b7b7){function _0x766927(_0x284cff){try{_0x25ef7c(_0x50dde4['next'](_0x284cff));}catch(_0x5533e9){_0x56b7b7(_0x5533e9);}}function _0x4c7f5f(_0x340d39){try{_0x25ef7c(_0x50dde4['throw'](_0x340d39));}catch(_0x535ce4){_0x56b7b7(_0x535ce4);}}function _0x25ef7c(_0x4da363){_0x4da363['done']?_0x54183b(_0x4da363['value']):_0x336b66(_0x4da363['value'])['then'](_0x766927,_0x4c7f5f);}_0x25ef7c((_0x50dde4=_0x50dde4['apply'](_0x25c425,_0x28a24f||[]))['next']());});};class AdminClient{constructor(_0x4b8bad='https://admin.searchability.dev/'){var _0x2e2f91=new Fetch(_0x4b8bad);this['Accounts']=new AccountService(_0x2e2f91),this['Lists']=new ListService(_0x2e2f91),this['ApiKeys']=new ApiKeyService(_0x2e2f91);}}class AuthClient{constructor(_0x1d03f2='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x1d03f2);}['login'](_0x57f3bf){return __awaiter(this,void 0,void 0,function*(){var _0x15ea1d='login/'+_0x57f3bf;try{const _0x2f2165=yield yield fetch(_0x15ea1d);if(_0x2f2165['status']>0xc7&&_0x2f2165['status']<0x12c){const _0x236a81=yield _0x2f2165['json']();return new SuccessfulAuthResponse(_0x236a81);}const _0x264aa0=yield _0x2f2165['json']();return new FailedAuthResponse(_0x264aa0);}catch(_0x2ff3f9){if(_0x2ff3f9 instanceof Error)return new FailedAuthResponse({'detail':_0x2ff3f9['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2ff3f9;}});}['refresh'](_0x121c11){return __awaiter(this,void 0,void 0,function*(){var _0x3fb64b='refresh';try{const _0x142b63=yield this['fetch']['post'](_0x3fb64b,_0x121c11,null);if(_0x142b63['status']>0xc7&&_0x142b63['status']<0x12c){const _0x4ec451=yield _0x142b63['json']();return new SuccessfulAuthResponse(_0x4ec451);}const _0x55b5c=yield _0x142b63['json']();return new FailedAuthResponse(_0x55b5c);}catch(_0x2d8bc5){if(_0x2d8bc5 instanceof Error)return new FailedAuthResponse({'detail':_0x2d8bc5['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2d8bc5;}});}}
16
16
 
17
17
  exports.AdminClient = AdminClient;
18
18
  exports.AuthClient = AuthClient;
19
+ exports.TokenManager = TokenManager;
@@ -1,15 +1,15 @@
1
- undefined&&undefined['__awaiter']||function(_0x25163a,_0x2cd093,_0x56c610,_0x437d07){function _0x35ad0f(_0x252ce7){return _0x252ce7 instanceof _0x56c610?_0x252ce7:new _0x56c610(function(_0xed7672){_0xed7672(_0x252ce7);});}return new(_0x56c610||(_0x56c610=Promise))(function(_0x3b3252,_0x42694f){function _0x245882(_0x1d71bd){try{_0x595711(_0x437d07['next'](_0x1d71bd));}catch(_0x406e25){_0x42694f(_0x406e25);}}function _0x329afd(_0x5e2dff){try{_0x595711(_0x437d07['throw'](_0x5e2dff));}catch(_0xb3dc33){_0x42694f(_0xb3dc33);}}function _0x595711(_0x596ffe){_0x596ffe['done']?_0x3b3252(_0x596ffe['value']):_0x35ad0f(_0x596ffe['value'])['then'](_0x245882,_0x329afd);}_0x595711((_0x437d07=_0x437d07['apply'](_0x25163a,_0x2cd093||[]))['next']());});};
1
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x5b4a89,_0x32f7af,_0x50644a,_0x5cb049){function _0x51e270(_0x2ede50){return _0x2ede50 instanceof _0x50644a?_0x2ede50:new _0x50644a(function(_0x4fbd1a){_0x4fbd1a(_0x2ede50);});}return new(_0x50644a||(_0x50644a=Promise))(function(_0x5ab5ee,_0x298117){function _0x5aff81(_0x256c0a){try{_0x476ef3(_0x5cb049['next'](_0x256c0a));}catch(_0x29be2d){_0x298117(_0x29be2d);}}function _0x3141cb(_0x4d593e){try{_0x476ef3(_0x5cb049['throw'](_0x4d593e));}catch(_0x1cf487){_0x298117(_0x1cf487);}}function _0x476ef3(_0x4f995f){_0x4f995f['done']?_0x5ab5ee(_0x4f995f['value']):_0x51e270(_0x4f995f['value'])['then'](_0x5aff81,_0x3141cb);}_0x476ef3((_0x5cb049=_0x5cb049['apply'](_0x5b4a89,_0x32f7af||[]))['next']());});};class TokenManager{constructor(_0x308faf){this['authClient']=_0x308faf;}['getOrRefreshTokens'](_0x13db25){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0x13db25['access_expires'])return new SuccessfulAuthResponse(_0x13db25);if(Date['now']()>_0x13db25['refresh_expires'])return yield this['authClient']['refresh'](_0x13db25['refresh_token']);return new FailedAuthResponse({'detail':'Refresh\x20token\x20expired','title':'','status':0x194,'instance':'','type':''});});}}
2
2
 
3
- class Response{constructor(_0x3acc20){this['isSuccess']=_0x3acc20;}}class SuccessfulAccountResponse extends Response{constructor(_0x3a013b){super(!![]),this['account']=_0x3a013b;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x1a7c0a){super(![]),this['problem']=_0x1a7c0a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x1fddfe){super(!![]),this['tokens']=_0x1fddfe;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x45075a){super(![]),this['problem']=_0x45075a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x43d601){super(!![]),this['apiKeys']=_0x43d601;}['toSuccess'](){return this['apiKeys'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x2adf23){super(![]),this['problem']=_0x2adf23;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
3
+ class Response{constructor(_0x59afaf){this['isSuccess']=_0x59afaf;}}class SuccessfulAccountResponse extends Response{constructor(_0x2cd475){super(!![]),this['account']=_0x2cd475;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x25b722){super(![]),this['problem']=_0x25b722;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x2c61a2){super(!![]),this['tokens']=_0x2c61a2;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x48c047){super(![]),this['problem']=_0x48c047;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x511615){super(!![]),this['apiKeys']=_0x511615;}['toSuccess'](){return this['apiKeys'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x41d2c3){super(![]),this['problem']=_0x41d2c3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x3c4753,_0x52680e,_0x19bd1f,_0x2dc09d){function _0x29af53(_0x4b0c76){return _0x4b0c76 instanceof _0x19bd1f?_0x4b0c76:new _0x19bd1f(function(_0xab98d2){_0xab98d2(_0x4b0c76);});}return new(_0x19bd1f||(_0x19bd1f=Promise))(function(_0x43ef76,_0x42a227){function _0x5380f3(_0x51427c){try{_0x5b3ee9(_0x2dc09d['next'](_0x51427c));}catch(_0x1d2f1c){_0x42a227(_0x1d2f1c);}}function _0x5875d7(_0x28a689){try{_0x5b3ee9(_0x2dc09d['throw'](_0x28a689));}catch(_0x33c07f){_0x42a227(_0x33c07f);}}function _0x5b3ee9(_0x27dc68){_0x27dc68['done']?_0x43ef76(_0x27dc68['value']):_0x29af53(_0x27dc68['value'])['then'](_0x5380f3,_0x5875d7);}_0x5b3ee9((_0x2dc09d=_0x2dc09d['apply'](_0x3c4753,_0x52680e||[]))['next']());});};class AccountService{constructor(_0x5736f2){this['fetch']=_0x5736f2;}['get'](_0x1e7994,_0x1523fe){return __awaiter$4(this,void 0,void 0,function*(){const _0x422eea='Account/'+_0x1e7994+'/',_0x19fb5d=yield this['fetch']['get'](_0x422eea,_0x1523fe);try{if(_0x19fb5d['status']>0xc7&&_0x19fb5d['status']<0x12c){const _0x358154=yield _0x19fb5d['json']();return new SuccessfulAccountResponse(_0x358154);}const _0x39556e=yield _0x19fb5d['json']();return new FailedAccountResponse(_0x39556e);}catch(_0x32c4c8){if(_0x32c4c8 instanceof Error)return new FailedAccountResponse({'detail':_0x32c4c8['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x32c4c8;}});}}
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x22096a,_0xd0733e,_0x12b7d2,_0x1bdb9e){function _0x31cc87(_0x26b04a){return _0x26b04a instanceof _0x12b7d2?_0x26b04a:new _0x12b7d2(function(_0x131196){_0x131196(_0x26b04a);});}return new(_0x12b7d2||(_0x12b7d2=Promise))(function(_0x484857,_0x53993a){function _0x348e97(_0x3306d2){try{_0x3fa438(_0x1bdb9e['next'](_0x3306d2));}catch(_0x4b0427){_0x53993a(_0x4b0427);}}function _0x26dcf3(_0x278c2d){try{_0x3fa438(_0x1bdb9e['throw'](_0x278c2d));}catch(_0x2c18ab){_0x53993a(_0x2c18ab);}}function _0x3fa438(_0xce15ba){_0xce15ba['done']?_0x484857(_0xce15ba['value']):_0x31cc87(_0xce15ba['value'])['then'](_0x348e97,_0x26dcf3);}_0x3fa438((_0x1bdb9e=_0x1bdb9e['apply'](_0x22096a,_0xd0733e||[]))['next']());});};class AccountService{constructor(_0x2f351a){this['fetch']=_0x2f351a;}['get'](_0x3ac3ae,_0x598eb9){return __awaiter$4(this,void 0,void 0,function*(){const _0x7a3bcc='Account/'+_0x3ac3ae+'/',_0x283d65=yield this['fetch']['get'](_0x7a3bcc,_0x598eb9);try{if(_0x283d65['status']>0xc7&&_0x283d65['status']<0x12c){const _0x500378=yield _0x283d65['json']();return new SuccessfulAccountResponse(_0x500378);}const _0x82cce9=yield _0x283d65['json']();return new FailedAccountResponse(_0x82cce9);}catch(_0x37e4d9){if(_0x37e4d9 instanceof Error)return new FailedAccountResponse({'detail':_0x37e4d9['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x37e4d9;}});}}
6
6
 
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x52a64c,_0x58641b,_0x47c2ca,_0x8c76f0){function _0xcccad0(_0x2f3c7f){return _0x2f3c7f instanceof _0x47c2ca?_0x2f3c7f:new _0x47c2ca(function(_0x4aeb94){_0x4aeb94(_0x2f3c7f);});}return new(_0x47c2ca||(_0x47c2ca=Promise))(function(_0x5c9d78,_0x57a643){function _0x127f4e(_0x12a15e){try{_0x1ba5a6(_0x8c76f0['next'](_0x12a15e));}catch(_0x3eb407){_0x57a643(_0x3eb407);}}function _0x30bdb0(_0x16ecca){try{_0x1ba5a6(_0x8c76f0['throw'](_0x16ecca));}catch(_0x2ed893){_0x57a643(_0x2ed893);}}function _0x1ba5a6(_0xd15cc7){_0xd15cc7['done']?_0x5c9d78(_0xd15cc7['value']):_0xcccad0(_0xd15cc7['value'])['then'](_0x127f4e,_0x30bdb0);}_0x1ba5a6((_0x8c76f0=_0x8c76f0['apply'](_0x52a64c,_0x58641b||[]))['next']());});};class ApiKeyService{constructor(_0x5884a5){this['fetch']=_0x5884a5;}['create'](_0x36c24c,_0x3d05a6,_0x3e4b30){return __awaiter$3(this,void 0,void 0,function*(){const _0x2e30e6='ApiKey/Create',_0x7f8a7a={'account_name':_0x36c24c,'name':_0x3d05a6};try{const _0x29fedf=yield this['fetch']['post'](_0x2e30e6,_0x3e4b30,_0x7f8a7a);if(_0x29fedf['status']>0xc7&&_0x29fedf['status']<0x12c){const _0x4cbf04=yield _0x29fedf['json']();return new SuccessfulApiKeyResponse(_0x4cbf04);}const _0x323403=yield _0x29fedf['json']();return new FailedApiKeyResponse(_0x323403);}catch(_0x4b67d3){if(_0x4b67d3 instanceof Error)return new FailedApiKeyResponse({'detail':_0x4b67d3['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x4b67d3;}});}}
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x5932cb,_0x15a3be,_0x31a213,_0x5b04a8){function _0x316e02(_0x4ec7cc){return _0x4ec7cc instanceof _0x31a213?_0x4ec7cc:new _0x31a213(function(_0x2eac4c){_0x2eac4c(_0x4ec7cc);});}return new(_0x31a213||(_0x31a213=Promise))(function(_0x316b95,_0x369012){function _0x563758(_0x3fdca8){try{_0x1fd2a5(_0x5b04a8['next'](_0x3fdca8));}catch(_0x2f80f3){_0x369012(_0x2f80f3);}}function _0x352776(_0x972feb){try{_0x1fd2a5(_0x5b04a8['throw'](_0x972feb));}catch(_0x3abc94){_0x369012(_0x3abc94);}}function _0x1fd2a5(_0x1b6f88){_0x1b6f88['done']?_0x316b95(_0x1b6f88['value']):_0x316e02(_0x1b6f88['value'])['then'](_0x563758,_0x352776);}_0x1fd2a5((_0x5b04a8=_0x5b04a8['apply'](_0x5932cb,_0x15a3be||[]))['next']());});};class ApiKeyService{constructor(_0x5232be){this['fetch']=_0x5232be;}['create'](_0x5c019b,_0x41f8ce,_0x4573c1){return __awaiter$3(this,void 0,void 0,function*(){const _0x5b2598='ApiKey/Create',_0x4ce31c={'account_name':_0x5c019b,'name':_0x41f8ce};try{const _0x301b84=yield this['fetch']['post'](_0x5b2598,_0x4573c1,_0x4ce31c);if(_0x301b84['status']>0xc7&&_0x301b84['status']<0x12c){const _0x5593b3=yield _0x301b84['json']();return new SuccessfulApiKeyResponse(_0x5593b3);}const _0xc7e2d9=yield _0x301b84['json']();return new FailedApiKeyResponse(_0xc7e2d9);}catch(_0x12efbc){if(_0x12efbc instanceof Error)return new FailedApiKeyResponse({'detail':_0x12efbc['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x12efbc;}});}}
8
8
 
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x4fd7bf,_0x3e7276,_0x3e5528,_0x130860){function _0x3f822e(_0x1b2048){return _0x1b2048 instanceof _0x3e5528?_0x1b2048:new _0x3e5528(function(_0x721e1e){_0x721e1e(_0x1b2048);});}return new(_0x3e5528||(_0x3e5528=Promise))(function(_0x483e6f,_0x193fc3){function _0x36624a(_0x5f0140){try{_0x5fb01b(_0x130860['next'](_0x5f0140));}catch(_0x29f2b0){_0x193fc3(_0x29f2b0);}}function _0x299e2b(_0x5a870b){try{_0x5fb01b(_0x130860['throw'](_0x5a870b));}catch(_0x145e0e){_0x193fc3(_0x145e0e);}}function _0x5fb01b(_0x47354a){_0x47354a['done']?_0x483e6f(_0x47354a['value']):_0x3f822e(_0x47354a['value'])['then'](_0x36624a,_0x299e2b);}_0x5fb01b((_0x130860=_0x130860['apply'](_0x4fd7bf,_0x3e7276||[]))['next']());});};class ListService{constructor(_0x2e4d46){this['fetch']=_0x2e4d46;}['add'](_0x4bcf41,_0x37ae8d,_0x30bb8c){return __awaiter$2(this,void 0,void 0,function*(){const _0x1181b5='List',_0x5ef467={'account_name':_0x4bcf41,'list_name':_0x37ae8d};try{const _0x53858e=yield this['fetch']['post'](_0x1181b5,_0x30bb8c,_0x5ef467);if(_0x53858e['status']>0xc7&&_0x53858e['status']<0x12c){const _0x36f3cb=yield _0x53858e['json']();return new SuccessfulAccountResponse(_0x36f3cb);}const _0x10dee1=yield _0x53858e['json']();return new FailedAccountResponse(_0x10dee1);}catch(_0x5319db){if(_0x5319db instanceof Error)return new FailedAccountResponse({'detail':_0x5319db['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5319db;}});}['remove'](_0x447e2e,_0x27b8fe,_0x44a3f7){return __awaiter$2(this,void 0,void 0,function*(){const _0x2f3420='List/'+_0x447e2e+'/'+_0x27b8fe,_0x48baa7=yield this['fetch']['delete'](_0x2f3420,_0x44a3f7);try{if(_0x48baa7['status']>0xc7&&_0x48baa7['status']<0x12c){const _0x17b2ec=yield _0x48baa7['json']();return new SuccessfulAccountResponse(_0x17b2ec);}const _0x371b60=yield _0x48baa7['json']();return new FailedAccountResponse(_0x371b60);}catch(_0x526098){if(_0x526098 instanceof Error)return new FailedAccountResponse({'detail':_0x526098['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x526098;}});}}
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x2ddcc6,_0x527139,_0x5a65a1,_0x809ed0){function _0xe540cc(_0x3dcd91){return _0x3dcd91 instanceof _0x5a65a1?_0x3dcd91:new _0x5a65a1(function(_0x1cd6e7){_0x1cd6e7(_0x3dcd91);});}return new(_0x5a65a1||(_0x5a65a1=Promise))(function(_0x18108e,_0x2ac54d){function _0xc46f54(_0x349461){try{_0x4d4ef9(_0x809ed0['next'](_0x349461));}catch(_0x7e7ce2){_0x2ac54d(_0x7e7ce2);}}function _0x1018ac(_0x397bdc){try{_0x4d4ef9(_0x809ed0['throw'](_0x397bdc));}catch(_0x35b40f){_0x2ac54d(_0x35b40f);}}function _0x4d4ef9(_0x3d157d){_0x3d157d['done']?_0x18108e(_0x3d157d['value']):_0xe540cc(_0x3d157d['value'])['then'](_0xc46f54,_0x1018ac);}_0x4d4ef9((_0x809ed0=_0x809ed0['apply'](_0x2ddcc6,_0x527139||[]))['next']());});};class ListService{constructor(_0x2abe61){this['fetch']=_0x2abe61;}['add'](_0x3606d7,_0x559a8f,_0x3d55db){return __awaiter$2(this,void 0,void 0,function*(){const _0x5c0736='List',_0x4149fe={'account_name':_0x3606d7,'list_name':_0x559a8f};try{const _0x221728=yield this['fetch']['post'](_0x5c0736,_0x3d55db,_0x4149fe);if(_0x221728['status']>0xc7&&_0x221728['status']<0x12c){const _0x4b3b8b=yield _0x221728['json']();return new SuccessfulAccountResponse(_0x4b3b8b);}const _0x15b0ca=yield _0x221728['json']();return new FailedAccountResponse(_0x15b0ca);}catch(_0x430424){if(_0x430424 instanceof Error)return new FailedAccountResponse({'detail':_0x430424['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x430424;}});}['remove'](_0x2cad64,_0x1bf135,_0x27273d){return __awaiter$2(this,void 0,void 0,function*(){const _0x23d984='List/'+_0x2cad64+'/'+_0x1bf135,_0x27ec8b=yield this['fetch']['delete'](_0x23d984,_0x27273d);try{if(_0x27ec8b['status']>0xc7&&_0x27ec8b['status']<0x12c){const _0x2dc89c=yield _0x27ec8b['json']();return new SuccessfulAccountResponse(_0x2dc89c);}const _0x3dd70b=yield _0x27ec8b['json']();return new FailedAccountResponse(_0x3dd70b);}catch(_0x15a70e){if(_0x15a70e instanceof Error)return new FailedAccountResponse({'detail':_0x15a70e['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x15a70e;}});}}
10
10
 
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x500f64,_0x374050,_0x63ef5b,_0x121883){function _0x27ae9a(_0x703431){return _0x703431 instanceof _0x63ef5b?_0x703431:new _0x63ef5b(function(_0x57094c){_0x57094c(_0x703431);});}return new(_0x63ef5b||(_0x63ef5b=Promise))(function(_0x344238,_0x2d47be){function _0x3bebdf(_0x4b744e){try{_0x5ce552(_0x121883['next'](_0x4b744e));}catch(_0x271f45){_0x2d47be(_0x271f45);}}function _0x5eb669(_0x1a8dea){try{_0x5ce552(_0x121883['throw'](_0x1a8dea));}catch(_0x389204){_0x2d47be(_0x389204);}}function _0x5ce552(_0x58c370){_0x58c370['done']?_0x344238(_0x58c370['value']):_0x27ae9a(_0x58c370['value'])['then'](_0x3bebdf,_0x5eb669);}_0x5ce552((_0x121883=_0x121883['apply'](_0x500f64,_0x374050||[]))['next']());});};class Fetch{constructor(_0xe293af){this['baseUri']=_0xe293af,this['getUrl']=_0x429412=>{return _0x429412['startsWith']('/')&&(_0x429412=_0x429412['replace']('/','')),''+this['baseUri']+_0x429412;},!_0xe293af['endsWith']('/')&&(_0xe293af=_0xe293af+'/');}['get'](_0x212db6,_0x5f53ba){return __awaiter$1(this,void 0,void 0,function*(){const _0xf36fa2=this['getUrl'](_0x212db6);return yield fetch(_0xf36fa2,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5f53ba}});});}['post'](_0x3ea1b5,_0x3b9489,_0x1bef5e){return __awaiter$1(this,void 0,void 0,function*(){const _0x15e6aa=this['getUrl'](_0x3ea1b5);return yield fetch(_0x15e6aa,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3b9489},'body':_0x1bef5e?JSON['stringify'](_0x1bef5e):null});});}['put'](_0x167d92,_0x56e7e5,_0x130abd){return __awaiter$1(this,void 0,void 0,function*(){const _0xb49915=this['getUrl'](_0x167d92);return yield fetch(_0xb49915,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x56e7e5},'body':_0x130abd?JSON['stringify'](_0x130abd):null});});}['delete'](_0x38a2de,_0x5e7052){return __awaiter$1(this,void 0,void 0,function*(){const _0x1b5ef9=this['getUrl'](_0x38a2de);return yield fetch(_0x1b5ef9,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5e7052}});});}}
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x245dc6,_0x551cd9,_0xe9acda,_0x2de215){function _0xee13d4(_0x248e24){return _0x248e24 instanceof _0xe9acda?_0x248e24:new _0xe9acda(function(_0x30003b){_0x30003b(_0x248e24);});}return new(_0xe9acda||(_0xe9acda=Promise))(function(_0x555a6b,_0x44b834){function _0x560b97(_0x2604a9){try{_0x294680(_0x2de215['next'](_0x2604a9));}catch(_0x1c1b4b){_0x44b834(_0x1c1b4b);}}function _0x35bc3c(_0x35d065){try{_0x294680(_0x2de215['throw'](_0x35d065));}catch(_0x1929a8){_0x44b834(_0x1929a8);}}function _0x294680(_0x241596){_0x241596['done']?_0x555a6b(_0x241596['value']):_0xee13d4(_0x241596['value'])['then'](_0x560b97,_0x35bc3c);}_0x294680((_0x2de215=_0x2de215['apply'](_0x245dc6,_0x551cd9||[]))['next']());});};class Fetch{constructor(_0x1929c3){this['baseUri']=_0x1929c3,this['getUrl']=_0xd2ad13=>{return _0xd2ad13['startsWith']('/')&&(_0xd2ad13=_0xd2ad13['replace']('/','')),''+this['baseUri']+_0xd2ad13;},!_0x1929c3['endsWith']('/')&&(_0x1929c3=_0x1929c3+'/');}['get'](_0x158893,_0x234d59){return __awaiter$1(this,void 0,void 0,function*(){const _0xa61909=this['getUrl'](_0x158893);return yield fetch(_0xa61909,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x234d59}});});}['post'](_0x573cc2,_0x4e5461,_0x5a4c36){return __awaiter$1(this,void 0,void 0,function*(){const _0x4d1c17=this['getUrl'](_0x573cc2);return yield fetch(_0x4d1c17,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4e5461},'body':_0x5a4c36?JSON['stringify'](_0x5a4c36):null});});}['put'](_0x1823a1,_0x5bb308,_0x46fc8b){return __awaiter$1(this,void 0,void 0,function*(){const _0x4a5bee=this['getUrl'](_0x1823a1);return yield fetch(_0x4a5bee,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5bb308},'body':_0x46fc8b?JSON['stringify'](_0x46fc8b):null});});}['delete'](_0x4ab055,_0x317c74){return __awaiter$1(this,void 0,void 0,function*(){const _0x7bc614=this['getUrl'](_0x4ab055);return yield fetch(_0x7bc614,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x317c74}});});}}
12
12
 
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x30ec2d,_0x495c9e,_0x5808c2,_0x4d1590){function _0x365bfd(_0x1dda4b){return _0x1dda4b instanceof _0x5808c2?_0x1dda4b:new _0x5808c2(function(_0x5f12ea){_0x5f12ea(_0x1dda4b);});}return new(_0x5808c2||(_0x5808c2=Promise))(function(_0x29bc69,_0x57e19e){function _0x3fd2ec(_0x1fe67){try{_0x1efa58(_0x4d1590['next'](_0x1fe67));}catch(_0x16d5ed){_0x57e19e(_0x16d5ed);}}function _0x4807d2(_0x2718b5){try{_0x1efa58(_0x4d1590['throw'](_0x2718b5));}catch(_0x5817d8){_0x57e19e(_0x5817d8);}}function _0x1efa58(_0xbaac0e){_0xbaac0e['done']?_0x29bc69(_0xbaac0e['value']):_0x365bfd(_0xbaac0e['value'])['then'](_0x3fd2ec,_0x4807d2);}_0x1efa58((_0x4d1590=_0x4d1590['apply'](_0x30ec2d,_0x495c9e||[]))['next']());});};class AdminClient{constructor(_0x11d52d='https://admin.searchability.dev/'){var _0x464c78=new Fetch(_0x11d52d);this['Accounts']=new AccountService(_0x464c78),this['Lists']=new ListService(_0x464c78),this['ApiKeys']=new ApiKeyService(_0x464c78);}}class AuthClient{constructor(_0x5a69b3='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x5a69b3);}['login'](_0x7083b7){return __awaiter(this,void 0,void 0,function*(){var _0x147d33='login/'+_0x7083b7;try{const _0xab2a0f=yield yield fetch(_0x147d33);if(_0xab2a0f['status']>0xc7&&_0xab2a0f['status']<0x12c){const _0x558548=yield _0xab2a0f['json']();return new SuccessfulAuthResponse(_0x558548);}const _0x1df465=yield _0xab2a0f['json']();return new FailedAuthResponse(_0x1df465);}catch(_0x172fd6){if(_0x172fd6 instanceof Error)return new FailedAuthResponse({'detail':_0x172fd6['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x172fd6;}});}['refresh'](_0x2b28cb){return __awaiter(this,void 0,void 0,function*(){var _0x74e973='refresh';try{const _0xad4a3d=yield this['fetch']['post'](_0x74e973,_0x2b28cb,null);if(_0xad4a3d['status']>0xc7&&_0xad4a3d['status']<0x12c){const _0xd8ac17=yield _0xad4a3d['json']();return new SuccessfulAuthResponse(_0xd8ac17);}const _0x244082=yield _0xad4a3d['json']();return new FailedAuthResponse(_0x244082);}catch(_0x3e05af){if(_0x3e05af instanceof Error)return new FailedAuthResponse({'detail':_0x3e05af['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3e05af;}});}}
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x55f3dc,_0x57b942,_0x1557fa,_0x5b2429){function _0x83ea0c(_0x48ff13){return _0x48ff13 instanceof _0x1557fa?_0x48ff13:new _0x1557fa(function(_0x5d4725){_0x5d4725(_0x48ff13);});}return new(_0x1557fa||(_0x1557fa=Promise))(function(_0x34739f,_0x40b823){function _0x1be40b(_0x41f994){try{_0x44b6ed(_0x5b2429['next'](_0x41f994));}catch(_0x535c3e){_0x40b823(_0x535c3e);}}function _0x14f0e1(_0x3c5923){try{_0x44b6ed(_0x5b2429['throw'](_0x3c5923));}catch(_0x5d25ac){_0x40b823(_0x5d25ac);}}function _0x44b6ed(_0x3a8aa1){_0x3a8aa1['done']?_0x34739f(_0x3a8aa1['value']):_0x83ea0c(_0x3a8aa1['value'])['then'](_0x1be40b,_0x14f0e1);}_0x44b6ed((_0x5b2429=_0x5b2429['apply'](_0x55f3dc,_0x57b942||[]))['next']());});};class AdminClient{constructor(_0x444f17='https://admin.searchability.dev/'){var _0x7113b8=new Fetch(_0x444f17);this['Accounts']=new AccountService(_0x7113b8),this['Lists']=new ListService(_0x7113b8),this['ApiKeys']=new ApiKeyService(_0x7113b8);}}class AuthClient{constructor(_0x4390b9='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x4390b9);}['login'](_0x128ca5){return __awaiter(this,void 0,void 0,function*(){var _0x5909af='login/'+_0x128ca5;try{const _0x5cf210=yield yield fetch(_0x5909af);if(_0x5cf210['status']>0xc7&&_0x5cf210['status']<0x12c){const _0x3b4782=yield _0x5cf210['json']();return new SuccessfulAuthResponse(_0x3b4782);}const _0x20666c=yield _0x5cf210['json']();return new FailedAuthResponse(_0x20666c);}catch(_0x2312f3){if(_0x2312f3 instanceof Error)return new FailedAuthResponse({'detail':_0x2312f3['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2312f3;}});}['refresh'](_0x3dd018){return __awaiter(this,void 0,void 0,function*(){var _0x5849f6='refresh';try{const _0x4f5186=yield this['fetch']['post'](_0x5849f6,_0x3dd018,null);if(_0x4f5186['status']>0xc7&&_0x4f5186['status']<0x12c){const _0x257d29=yield _0x4f5186['json']();return new SuccessfulAuthResponse(_0x257d29);}const _0x36ae34=yield _0x4f5186['json']();return new FailedAuthResponse(_0x36ae34);}catch(_0x21cc1d){if(_0x21cc1d instanceof Error)return new FailedAuthResponse({'detail':_0x21cc1d['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x21cc1d;}});}}
14
14
 
15
- export { AdminClient, AuthClient };
15
+ export { AdminClient, AuthClient, TokenManager };
package/dist/types.d.ts CHANGED
@@ -40,6 +40,12 @@ declare class AuthClient {
40
40
  refresh(refreshToken: string): Promise<Response<Tokens, Problem>>;
41
41
  }
42
42
 
43
+ declare class TokenManager {
44
+ readonly authClient: AuthClient;
45
+ constructor(authClient: AuthClient);
46
+ getOrRefreshTokens(tokens: Tokens): Promise<Response<Tokens, Problem>>;
47
+ }
48
+
43
49
  declare abstract class Response<S, F> {
44
50
  readonly isSuccess: boolean;
45
51
  constructor(isSuccess: boolean);
@@ -122,4 +128,4 @@ declare class FailedApiKeyResponse extends Response<ApiKey[], Problem> {
122
128
  toProblem(): Problem;
123
129
  }
124
130
 
125
- export { type Account, AdminClient, type ApiKey, AuthClient, type Error, FailedAccountResponse, FailedApiKeyResponse, FailedAuthResponse, type List, type ListIdentity, type Problem, Response, SuccessfulAccountResponse, SuccessfulApiKeyResponse, SuccessfulAuthResponse, type Tokens };
131
+ export { type Account, AdminClient, type ApiKey, AuthClient, type Error, FailedAccountResponse, FailedApiKeyResponse, FailedAuthResponse, type List, type ListIdentity, type Problem, Response, SuccessfulAccountResponse, SuccessfulApiKeyResponse, SuccessfulAuthResponse, TokenManager, type Tokens };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "Searchability admin client.",
5
5
  "type": "module",
6
6
  "types": "./dist/types.d.ts",
@@ -1,15 +0,0 @@
1
- undefined&&undefined['__awaiter']||function(_0x5752fa,_0x11668b,_0x5d6697,_0x4716de){function _0x26f552(_0x51e87e){return _0x51e87e instanceof _0x5d6697?_0x51e87e:new _0x5d6697(function(_0x40c70e){_0x40c70e(_0x51e87e);});}return new(_0x5d6697||(_0x5d6697=Promise))(function(_0x4d24a8,_0x197e2d){function _0x24355f(_0x524591){try{_0x296b5b(_0x4716de['next'](_0x524591));}catch(_0x3c6680){_0x197e2d(_0x3c6680);}}function _0x1d5d38(_0x53b635){try{_0x296b5b(_0x4716de['throw'](_0x53b635));}catch(_0x550e80){_0x197e2d(_0x550e80);}}function _0x296b5b(_0xb960b9){_0xb960b9['done']?_0x4d24a8(_0xb960b9['value']):_0x26f552(_0xb960b9['value'])['then'](_0x24355f,_0x1d5d38);}_0x296b5b((_0x4716de=_0x4716de['apply'](_0x5752fa,_0x11668b||[]))['next']());});};
2
-
3
- class Response{constructor(_0x4cd842){this['isSuccess']=_0x4cd842;}}class SuccessfulAccountResponse extends Response{constructor(_0x3c979a){super(!![]),this['account']=_0x3c979a;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x2542b4){super(![]),this['problem']=_0x2542b4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x214b3f){super(!![]),this['tokens']=_0x214b3f;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x40acd9){super(![]),this['problem']=_0x40acd9;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x414f35){super(!![]),this['apiKeys']=_0x414f35;}['toSuccess'](){return this['apiKeys'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x5f8d5d){super(![]),this['problem']=_0x5f8d5d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
-
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x10c32f,_0x5a703f,_0x5ac711,_0x3721c9){function _0x547941(_0x36a478){return _0x36a478 instanceof _0x5ac711?_0x36a478:new _0x5ac711(function(_0x534d13){_0x534d13(_0x36a478);});}return new(_0x5ac711||(_0x5ac711=Promise))(function(_0x47072d,_0x2c96bd){function _0x4d00d7(_0x2432d3){try{_0xc02bf6(_0x3721c9['next'](_0x2432d3));}catch(_0x268f9f){_0x2c96bd(_0x268f9f);}}function _0x322f09(_0x774371){try{_0xc02bf6(_0x3721c9['throw'](_0x774371));}catch(_0x411e2c){_0x2c96bd(_0x411e2c);}}function _0xc02bf6(_0x4cab66){_0x4cab66['done']?_0x47072d(_0x4cab66['value']):_0x547941(_0x4cab66['value'])['then'](_0x4d00d7,_0x322f09);}_0xc02bf6((_0x3721c9=_0x3721c9['apply'](_0x10c32f,_0x5a703f||[]))['next']());});};class AccountService{constructor(_0x4dadc6){this['fetch']=_0x4dadc6;}['get'](_0x45686c,_0x31ceb7){return __awaiter$4(this,void 0,void 0,function*(){const _0x438504='Account/'+_0x45686c+'/',_0x4af386=yield this['fetch']['get'](_0x438504,_0x31ceb7);try{if(_0x4af386['status']>0xc7&&_0x4af386['status']<0x12c){const _0x329ff2=yield _0x4af386['json']();return new SuccessfulAccountResponse(_0x329ff2);}const _0x1ea9f9=yield _0x4af386['json']();return new FailedAccountResponse(_0x1ea9f9);}catch(_0x5e66ef){if(_0x5e66ef instanceof Error)return new FailedAccountResponse({'detail':_0x5e66ef['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5e66ef;}});}}
6
-
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x493fbf,_0x2b3a8e,_0x532e4d,_0x3ab447){function _0x5e40ee(_0x56d398){return _0x56d398 instanceof _0x532e4d?_0x56d398:new _0x532e4d(function(_0x579e0e){_0x579e0e(_0x56d398);});}return new(_0x532e4d||(_0x532e4d=Promise))(function(_0x228706,_0x477131){function _0x250412(_0x3ac6bf){try{_0x2bbc83(_0x3ab447['next'](_0x3ac6bf));}catch(_0x240cea){_0x477131(_0x240cea);}}function _0x47ddc2(_0x2134f1){try{_0x2bbc83(_0x3ab447['throw'](_0x2134f1));}catch(_0xec1b59){_0x477131(_0xec1b59);}}function _0x2bbc83(_0x10ce95){_0x10ce95['done']?_0x228706(_0x10ce95['value']):_0x5e40ee(_0x10ce95['value'])['then'](_0x250412,_0x47ddc2);}_0x2bbc83((_0x3ab447=_0x3ab447['apply'](_0x493fbf,_0x2b3a8e||[]))['next']());});};class ApiKeyService{constructor(_0x43e298){this['fetch']=_0x43e298;}['create'](_0x3102ed,_0x2a82e5,_0xa0a72b){return __awaiter$3(this,void 0,void 0,function*(){const _0x800e6f='ApiKey/Create',_0x47359f={'account_name':_0x3102ed,'name':_0x2a82e5};try{const _0x4a4d13=yield this['fetch']['post'](_0x800e6f,_0xa0a72b,_0x47359f);if(_0x4a4d13['status']>0xc7&&_0x4a4d13['status']<0x12c){const _0x1880f5=yield _0x4a4d13['json']();return new SuccessfulApiKeyResponse(_0x1880f5);}const _0x593db8=yield _0x4a4d13['json']();return new FailedApiKeyResponse(_0x593db8);}catch(_0x40832a){if(_0x40832a instanceof Error)return new FailedApiKeyResponse({'detail':_0x40832a['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x40832a;}});}}
8
-
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x4d6946,_0x158da6,_0x23b090,_0x5321ef){function _0x255d11(_0x1daf43){return _0x1daf43 instanceof _0x23b090?_0x1daf43:new _0x23b090(function(_0x20df5f){_0x20df5f(_0x1daf43);});}return new(_0x23b090||(_0x23b090=Promise))(function(_0x345980,_0x130395){function _0xd8a402(_0x4bfe5d){try{_0x131506(_0x5321ef['next'](_0x4bfe5d));}catch(_0x16666a){_0x130395(_0x16666a);}}function _0x28ab9a(_0x268837){try{_0x131506(_0x5321ef['throw'](_0x268837));}catch(_0x4d7c7b){_0x130395(_0x4d7c7b);}}function _0x131506(_0x1a5e80){_0x1a5e80['done']?_0x345980(_0x1a5e80['value']):_0x255d11(_0x1a5e80['value'])['then'](_0xd8a402,_0x28ab9a);}_0x131506((_0x5321ef=_0x5321ef['apply'](_0x4d6946,_0x158da6||[]))['next']());});};class ListService{constructor(_0x1b4447){this['fetch']=_0x1b4447;}['add'](_0x2bb44d,_0x546294,_0x461737){return __awaiter$2(this,void 0,void 0,function*(){const _0xa5b684='List',_0x299626={'account_name':_0x2bb44d,'list_name':_0x546294};try{const _0xa074ae=yield this['fetch']['post'](_0xa5b684,_0x461737,_0x299626);if(_0xa074ae['status']>0xc7&&_0xa074ae['status']<0x12c){const _0xd32ffe=yield _0xa074ae['json']();return new SuccessfulAccountResponse(_0xd32ffe);}const _0x2ea622=yield _0xa074ae['json']();return new FailedAccountResponse(_0x2ea622);}catch(_0x584934){if(_0x584934 instanceof Error)return new FailedAccountResponse({'detail':_0x584934['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x584934;}});}['remove'](_0x244654,_0xf7bbc1,_0x5bcb72){return __awaiter$2(this,void 0,void 0,function*(){const _0x4aa5f7='List/'+_0x244654+'/'+_0xf7bbc1,_0x5bcc7b=yield this['fetch']['delete'](_0x4aa5f7,_0x5bcb72);try{if(_0x5bcc7b['status']>0xc7&&_0x5bcc7b['status']<0x12c){const _0x355b61=yield _0x5bcc7b['json']();return new SuccessfulAccountResponse(_0x355b61);}const _0x30eb7f=yield _0x5bcc7b['json']();return new FailedAccountResponse(_0x30eb7f);}catch(_0x1f7a31){if(_0x1f7a31 instanceof Error)return new FailedAccountResponse({'detail':_0x1f7a31['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x1f7a31;}});}}
10
-
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x5cce3a,_0x471e96,_0x51ab35,_0x488726){function _0x349cdb(_0x512f76){return _0x512f76 instanceof _0x51ab35?_0x512f76:new _0x51ab35(function(_0x4752ec){_0x4752ec(_0x512f76);});}return new(_0x51ab35||(_0x51ab35=Promise))(function(_0x46623c,_0x3845ca){function _0x379db1(_0x4c5992){try{_0x46f509(_0x488726['next'](_0x4c5992));}catch(_0x1e8aae){_0x3845ca(_0x1e8aae);}}function _0x3c157d(_0x153929){try{_0x46f509(_0x488726['throw'](_0x153929));}catch(_0x159cd1){_0x3845ca(_0x159cd1);}}function _0x46f509(_0x25017c){_0x25017c['done']?_0x46623c(_0x25017c['value']):_0x349cdb(_0x25017c['value'])['then'](_0x379db1,_0x3c157d);}_0x46f509((_0x488726=_0x488726['apply'](_0x5cce3a,_0x471e96||[]))['next']());});};class Fetch{constructor(_0x48cf35){this['baseUri']=_0x48cf35,this['getUrl']=_0x2e27f9=>{return _0x2e27f9['startsWith']('/')&&(_0x2e27f9=_0x2e27f9['replace']('/','')),''+this['baseUri']+_0x2e27f9;},!_0x48cf35['endsWith']('/')&&(_0x48cf35=_0x48cf35+'/');}['get'](_0x5e3020,_0x1ccf8f){return __awaiter$1(this,void 0,void 0,function*(){const _0x2ce524=this['getUrl'](_0x5e3020);return yield fetch(_0x2ce524,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1ccf8f}});});}['post'](_0x129067,_0x50dd0c,_0x1ce492){return __awaiter$1(this,void 0,void 0,function*(){const _0x3efc81=this['getUrl'](_0x129067);return yield fetch(_0x3efc81,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x50dd0c},'body':_0x1ce492?JSON['stringify'](_0x1ce492):null});});}['put'](_0x1d21fb,_0x37d94e,_0x4d7e0f){return __awaiter$1(this,void 0,void 0,function*(){const _0x29e41d=this['getUrl'](_0x1d21fb);return yield fetch(_0x29e41d,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x37d94e},'body':_0x4d7e0f?JSON['stringify'](_0x4d7e0f):null});});}['delete'](_0x35b1c5,_0x73c78e){return __awaiter$1(this,void 0,void 0,function*(){const _0x486371=this['getUrl'](_0x35b1c5);return yield fetch(_0x486371,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x73c78e}});});}}
12
-
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x1087ac,_0x592444,_0x869b98,_0x1c708b){function _0x164bed(_0x2c812e){return _0x2c812e instanceof _0x869b98?_0x2c812e:new _0x869b98(function(_0x3976c4){_0x3976c4(_0x2c812e);});}return new(_0x869b98||(_0x869b98=Promise))(function(_0x49d719,_0x332193){function _0x500ea4(_0x3675e0){try{_0x2b3a9c(_0x1c708b['next'](_0x3675e0));}catch(_0x4962f8){_0x332193(_0x4962f8);}}function _0x177d88(_0x1fd817){try{_0x2b3a9c(_0x1c708b['throw'](_0x1fd817));}catch(_0x2f2cfd){_0x332193(_0x2f2cfd);}}function _0x2b3a9c(_0x2b207b){_0x2b207b['done']?_0x49d719(_0x2b207b['value']):_0x164bed(_0x2b207b['value'])['then'](_0x500ea4,_0x177d88);}_0x2b3a9c((_0x1c708b=_0x1c708b['apply'](_0x1087ac,_0x592444||[]))['next']());});};class AdminClient{constructor(_0x671dc9='https://admin.searchability.dev/'){var _0x3d4602=new Fetch(_0x671dc9);this['Accounts']=new AccountService(_0x3d4602),this['Lists']=new ListService(_0x3d4602),this['ApiKeys']=new ApiKeyService(_0x3d4602);}}class AuthClient{constructor(_0x4e121a='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x4e121a);}['login'](_0x49d261){return __awaiter(this,void 0,void 0,function*(){var _0x4aca23='login/'+_0x49d261;try{const _0x435990=yield yield fetch(_0x4aca23);if(_0x435990['status']>0xc7&&_0x435990['status']<0x12c){const _0x2ee1c2=yield _0x435990['json']();return new SuccessfulAuthResponse(_0x2ee1c2);}const _0x3a4c1f=yield _0x435990['json']();return new FailedAuthResponse(_0x3a4c1f);}catch(_0xdfac83){if(_0xdfac83 instanceof Error)return new FailedAuthResponse({'detail':_0xdfac83['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xdfac83;}});}['refresh'](_0xabba94){return __awaiter(this,void 0,void 0,function*(){var _0x5adb0f='refresh';try{const _0x12e09b=yield this['fetch']['post'](_0x5adb0f,_0xabba94,null);if(_0x12e09b['status']>0xc7&&_0x12e09b['status']<0x12c){const _0x5b9eee=yield _0x12e09b['json']();return new SuccessfulAuthResponse(_0x5b9eee);}const _0x218a4e=yield _0x12e09b['json']();return new FailedAuthResponse(_0x218a4e);}catch(_0x2ead5f){if(_0x2ead5f instanceof Error)return new FailedAuthResponse({'detail':_0x2ead5f['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2ead5f;}});}}
14
-
15
- export { AdminClient, AuthClient };