@searchability/admin-client 0.0.28 → 0.0.29

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 TokenStatus;(function(_0x43a3e9){_0x43a3e9[_0x43a3e9['Ok']=0x0]='Ok',_0x43a3e9[_0x43a3e9['Refresh']=0x1]='Refresh',_0x43a3e9[_0x43a3e9['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}['getStatus'](){if(Date['now']()<this['access_expires'])return TokenStatus['Ok'];if(Date['now']()<this['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
2
+
3
+ class Response{constructor(_0x389d22){this['isSuccess']=_0x389d22;}}class SuccessfulAccountResponse extends Response{constructor(_0x4f3bad){super(!![]),this['account']=_0x4f3bad;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x29c16c){super(![]),this['problem']=_0x29c16c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x2e67be){super(!![]),this['tokens']=_0x2e67be;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x1b4c1f){super(![]),this['problem']=_0x1b4c1f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x370faa){super(!![]),this['apiKey']=_0x370faa;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x32a7e4){super(![]),this['problem']=_0x32a7e4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x30c94f){super(!![]),this['apiKeyValue']=_0x30c94f;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyValueResponse extends Response{constructor(_0x30b6ea){super(![]),this['problem']=_0x30b6ea;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
+
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x163416,_0x37ca36,_0x42c69d,_0x3a8135){function _0x462c76(_0x1d24e1){return _0x1d24e1 instanceof _0x42c69d?_0x1d24e1:new _0x42c69d(function(_0x5be231){_0x5be231(_0x1d24e1);});}return new(_0x42c69d||(_0x42c69d=Promise))(function(_0x15d1e3,_0x44dba2){function _0x45157f(_0x1cf6fe){try{_0xa7f89b(_0x3a8135['next'](_0x1cf6fe));}catch(_0x267a65){_0x44dba2(_0x267a65);}}function _0x3ad566(_0x72306e){try{_0xa7f89b(_0x3a8135['throw'](_0x72306e));}catch(_0x564b31){_0x44dba2(_0x564b31);}}function _0xa7f89b(_0x43f9f0){_0x43f9f0['done']?_0x15d1e3(_0x43f9f0['value']):_0x462c76(_0x43f9f0['value'])['then'](_0x45157f,_0x3ad566);}_0xa7f89b((_0x3a8135=_0x3a8135['apply'](_0x163416,_0x37ca36||[]))['next']());});};class AccountService{constructor(_0x2d68d0){this['fetch']=_0x2d68d0;}['get'](_0x5f0a41,_0xabde2d){return __awaiter$4(this,void 0,void 0,function*(){const _0x33ebf5='Account/'+_0x5f0a41+'/',_0x5da5c3=yield this['fetch']['get'](_0x33ebf5,_0xabde2d);try{if(_0x5da5c3['status']>0xc7&&_0x5da5c3['status']<0x12c){const _0x39a793=yield _0x5da5c3['json']();return new SuccessfulAccountResponse(_0x39a793);}const _0x26fb69=yield _0x5da5c3['json']();return new FailedAccountResponse(_0x26fb69);}catch(_0x353b23){if(_0x353b23 instanceof Error)return new FailedAccountResponse({'detail':_0x353b23['message'],'title':_0x353b23['name'],'status':0x1f4,'instance':'','type':''});throw _0x353b23;}});}}
6
+
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x262fab,_0x3b86d1,_0x36bb2c,_0x30026e){function _0x24d99b(_0x42893e){return _0x42893e instanceof _0x36bb2c?_0x42893e:new _0x36bb2c(function(_0x57451f){_0x57451f(_0x42893e);});}return new(_0x36bb2c||(_0x36bb2c=Promise))(function(_0x4ec620,_0xc7ee48){function _0x3c4453(_0x122421){try{_0x337185(_0x30026e['next'](_0x122421));}catch(_0x4fffbf){_0xc7ee48(_0x4fffbf);}}function _0x1654b6(_0x1b8a48){try{_0x337185(_0x30026e['throw'](_0x1b8a48));}catch(_0x3862f7){_0xc7ee48(_0x3862f7);}}function _0x337185(_0x345526){_0x345526['done']?_0x4ec620(_0x345526['value']):_0x24d99b(_0x345526['value'])['then'](_0x3c4453,_0x1654b6);}_0x337185((_0x30026e=_0x30026e['apply'](_0x262fab,_0x3b86d1||[]))['next']());});};class ApiKeyService{constructor(_0x470dff){this['fetch']=_0x470dff;}['create'](_0x4243c1,_0x37444f,_0x10bc13){return __awaiter$3(this,void 0,void 0,function*(){const _0x40f228='api-key/create',_0x310721={'account_name':_0x4243c1,'api_key_name':_0x37444f};try{const _0x1208ac=yield this['fetch']['post'](_0x40f228,_0x10bc13,_0x310721);if(_0x1208ac['status']>0xc7&&_0x1208ac['status']<0x12c){const _0x1afcb1=yield _0x1208ac['json']();return new SuccessfulApiKeyResponse(_0x1afcb1);}const _0x391294=yield _0x1208ac['json']();return new FailedApiKeyResponse(_0x391294);}catch(_0x318f02){if(_0x318f02 instanceof Error)return new FailedApiKeyResponse({'detail':_0x318f02['message'],'title':_0x318f02['name'],'status':0x1f4,'instance':'','type':''});throw _0x318f02;}});}['view'](_0x892f2a,_0x2e80dd,_0x586b6f){return __awaiter$3(this,void 0,void 0,function*(){const _0x4081ea='api-key/'+_0x892f2a+'/'+_0x2e80dd;try{const _0x476d94=yield this['fetch']['get'](_0x4081ea,_0x586b6f);if(_0x476d94['status']>0xc7&&_0x476d94['status']<0x12c){const _0x40d3fc=yield _0x476d94['json']();return new SuccessfulApiKeyValueResponse(_0x40d3fc);}const _0xb89bae=yield _0x476d94['json']();return new FailedApiKeyValueResponse(_0xb89bae);}catch(_0x56eb97){if(_0x56eb97 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x56eb97['message'],'title':_0x56eb97['name'],'status':0x1f4,'instance':'','type':''});throw _0x56eb97;}});}}
8
+
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0xb11936,_0x1cc8a0,_0x594241,_0x314622){function _0x149d4e(_0xbb8957){return _0xbb8957 instanceof _0x594241?_0xbb8957:new _0x594241(function(_0x2912e7){_0x2912e7(_0xbb8957);});}return new(_0x594241||(_0x594241=Promise))(function(_0x271a6d,_0x1c1b28){function _0x468794(_0x72817){try{_0x280f3f(_0x314622['next'](_0x72817));}catch(_0x501bc6){_0x1c1b28(_0x501bc6);}}function _0x214605(_0x3b33f6){try{_0x280f3f(_0x314622['throw'](_0x3b33f6));}catch(_0xf9d0b9){_0x1c1b28(_0xf9d0b9);}}function _0x280f3f(_0x46dfcf){_0x46dfcf['done']?_0x271a6d(_0x46dfcf['value']):_0x149d4e(_0x46dfcf['value'])['then'](_0x468794,_0x214605);}_0x280f3f((_0x314622=_0x314622['apply'](_0xb11936,_0x1cc8a0||[]))['next']());});};class ListService{constructor(_0x25ab11){this['fetch']=_0x25ab11;}['add'](_0x25220a,_0x1a9635,_0x34d08f){return __awaiter$2(this,void 0,void 0,function*(){const _0x47d0fb='List',_0x38218a={'account_name':_0x25220a,'list_name':_0x1a9635};try{const _0x3defd6=yield this['fetch']['post'](_0x47d0fb,_0x34d08f,_0x38218a);if(_0x3defd6['status']>0xc7&&_0x3defd6['status']<0x12c){const _0x2366c0=yield _0x3defd6['json']();return new SuccessfulAccountResponse(_0x2366c0);}const _0xbbee2e=yield _0x3defd6['json']();return new FailedAccountResponse(_0xbbee2e);}catch(_0x25d9de){if(_0x25d9de instanceof Error)return new FailedAccountResponse({'detail':_0x25d9de['message'],'title':_0x25d9de['name'],'status':0x1f4,'instance':'','type':''});throw _0x25d9de;}});}['remove'](_0x3fb81e,_0x5a93de,_0x383896){return __awaiter$2(this,void 0,void 0,function*(){const _0x11070d='List/'+_0x3fb81e+'/'+_0x5a93de,_0x49c4b1=yield this['fetch']['delete'](_0x11070d,_0x383896);try{if(_0x49c4b1['status']>0xc7&&_0x49c4b1['status']<0x12c){const _0x32e640=yield _0x49c4b1['json']();return new SuccessfulAccountResponse(_0x32e640);}const _0x22044b=yield _0x49c4b1['json']();return new FailedAccountResponse(_0x22044b);}catch(_0x37b73b){if(_0x37b73b instanceof Error)return new FailedAccountResponse({'detail':_0x37b73b['message'],'title':_0x37b73b['name'],'status':0x1f4,'instance':'','type':''});throw _0x37b73b;}});}}
10
+
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x3a0aa6,_0x36ed0c,_0x17723a,_0x46ca6d){function _0x4ec0df(_0x183fd7){return _0x183fd7 instanceof _0x17723a?_0x183fd7:new _0x17723a(function(_0x3df152){_0x3df152(_0x183fd7);});}return new(_0x17723a||(_0x17723a=Promise))(function(_0x2ba4f6,_0x4db1ac){function _0x52373e(_0x56955b){try{_0x29ac38(_0x46ca6d['next'](_0x56955b));}catch(_0x4ecf2a){_0x4db1ac(_0x4ecf2a);}}function _0x32ec8f(_0x145113){try{_0x29ac38(_0x46ca6d['throw'](_0x145113));}catch(_0x94e5d7){_0x4db1ac(_0x94e5d7);}}function _0x29ac38(_0x28e7aa){_0x28e7aa['done']?_0x2ba4f6(_0x28e7aa['value']):_0x4ec0df(_0x28e7aa['value'])['then'](_0x52373e,_0x32ec8f);}_0x29ac38((_0x46ca6d=_0x46ca6d['apply'](_0x3a0aa6,_0x36ed0c||[]))['next']());});};class Fetch{constructor(_0x160807){this['baseUri']=_0x160807,this['getUrl']=_0x46c389=>{return _0x46c389['startsWith']('/')&&(_0x46c389=_0x46c389['replace']('/','')),''+this['baseUri']+_0x46c389;},!_0x160807['endsWith']('/')&&(_0x160807=_0x160807+'/');}['get'](_0x3ac39a,_0x1e75c0){return __awaiter$1(this,void 0,void 0,function*(){const _0x317ba4=this['getUrl'](_0x3ac39a);return yield fetch(_0x317ba4,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1e75c0}});});}['post'](_0x425840,_0x16cdee,_0x193835){return __awaiter$1(this,void 0,void 0,function*(){const _0x36a868=this['getUrl'](_0x425840);return yield fetch(_0x36a868,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x16cdee},'body':_0x193835?JSON['stringify'](_0x193835):null});});}['put'](_0x29feda,_0x1a402b,_0x3774a3){return __awaiter$1(this,void 0,void 0,function*(){const _0xa6f6c7=this['getUrl'](_0x29feda);return yield fetch(_0xa6f6c7,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1a402b},'body':_0x3774a3?JSON['stringify'](_0x3774a3):null});});}['delete'](_0x45a5dc,_0x26022a){return __awaiter$1(this,void 0,void 0,function*(){const _0x1aa108=this['getUrl'](_0x45a5dc);return yield fetch(_0x1aa108,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x26022a}});});}}
12
+
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x45f20e,_0x33786d,_0x178a37,_0x3d5cfc){function _0x2442f6(_0x52bfcd){return _0x52bfcd instanceof _0x178a37?_0x52bfcd:new _0x178a37(function(_0x2672d3){_0x2672d3(_0x52bfcd);});}return new(_0x178a37||(_0x178a37=Promise))(function(_0xd8f452,_0x352ed3){function _0x27dd72(_0x4e416b){try{_0x57a39c(_0x3d5cfc['next'](_0x4e416b));}catch(_0x31a93d){_0x352ed3(_0x31a93d);}}function _0xb6de21(_0x16cca2){try{_0x57a39c(_0x3d5cfc['throw'](_0x16cca2));}catch(_0x1ab15c){_0x352ed3(_0x1ab15c);}}function _0x57a39c(_0x33d849){_0x33d849['done']?_0xd8f452(_0x33d849['value']):_0x2442f6(_0x33d849['value'])['then'](_0x27dd72,_0xb6de21);}_0x57a39c((_0x3d5cfc=_0x3d5cfc['apply'](_0x45f20e,_0x33786d||[]))['next']());});};class AdminClient{constructor(_0x1757f8='https://admin.searchability.dev/'){var _0x40b818=new Fetch(_0x1757f8);this['Accounts']=new AccountService(_0x40b818),this['Lists']=new ListService(_0x40b818),this['ApiKeys']=new ApiKeyService(_0x40b818);}}class AuthClient{constructor(_0x4eb9c1='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x4eb9c1);}['login'](_0x278e02){return __awaiter(this,void 0,void 0,function*(){var _0x1ccb4b='login/'+_0x278e02;try{const _0x3916f7=yield yield fetch(_0x1ccb4b);if(_0x3916f7['status']>0xc7&&_0x3916f7['status']<0x12c){const _0x3544f6=yield _0x3916f7['json']();return new SuccessfulAuthResponse(_0x3544f6);}const _0x4c600c=yield _0x3916f7['json']();return new FailedAuthResponse(_0x4c600c);}catch(_0x2c559c){if(_0x2c559c instanceof Error)return new FailedAuthResponse({'detail':_0x2c559c['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2c559c;}});}['refresh'](_0x20f420){return __awaiter(this,void 0,void 0,function*(){var _0x581872='refresh';try{const _0x1d73fc=yield this['fetch']['post'](_0x581872,_0x20f420,null);if(_0x1d73fc['status']>0xc7&&_0x1d73fc['status']<0x12c){const _0x301718=yield _0x1d73fc['json']();return new SuccessfulAuthResponse(_0x301718);}const _0x14c393=yield _0x1d73fc['json']();return new FailedAuthResponse(_0x14c393);}catch(_0x41740f){if(_0x41740f instanceof Error)return new FailedAuthResponse({'detail':_0x41740f['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x41740f;}});}}
14
+
15
+ export { AdminClient, AuthClient, TokenStatus, Tokens };
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- exports.TokenStatus = void 0;(function(_0x5c65db){_0x5c65db[_0x5c65db['Ok']=0x0]='Ok',_0x5c65db[_0x5c65db['Refresh']=0x1]='Refresh',_0x5c65db[_0x5c65db['Expired']=0x2]='Expired';}(exports.TokenStatus||(exports.TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}['getStatus'](){if(Date['now']()<this['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<this['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
3
+ exports.TokenStatus = void 0;(function(_0x24a862){_0x24a862[_0x24a862['Ok']=0x0]='Ok',_0x24a862[_0x24a862['Refresh']=0x1]='Refresh',_0x24a862[_0x24a862['Expired']=0x2]='Expired';}(exports.TokenStatus||(exports.TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}['getStatus'](){if(Date['now']()<this['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<this['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
4
4
 
5
- class Response{constructor(_0x44db66){this['isSuccess']=_0x44db66;}}class SuccessfulAccountResponse extends Response{constructor(_0x4b820e){super(!![]),this['account']=_0x4b820e;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x453bc8){super(![]),this['problem']=_0x453bc8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0xbd4d6c){super(!![]),this['tokens']=_0xbd4d6c;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x5a3ead){super(![]),this['problem']=_0x5a3ead;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x2cbefc){super(!![]),this['apiKey']=_0x2cbefc;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x1bb362){super(![]),this['problem']=_0x1bb362;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x3e538c){super(!![]),this['apiKeyValue']=_0x3e538c;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyValueResponse extends Response{constructor(_0x238317){super(![]),this['problem']=_0x238317;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
5
+ class Response{constructor(_0x3bce0a){this['isSuccess']=_0x3bce0a;}}class SuccessfulAccountResponse extends Response{constructor(_0x97abb5){super(!![]),this['account']=_0x97abb5;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x26fed6){super(![]),this['problem']=_0x26fed6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x2f9d4a){super(!![]),this['tokens']=_0x2f9d4a;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x30e41a){super(![]),this['problem']=_0x30e41a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x11a573){super(!![]),this['apiKey']=_0x11a573;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x312f50){super(![]),this['problem']=_0x312f50;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x41321b){super(!![]),this['apiKeyValue']=_0x41321b;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyValueResponse extends Response{constructor(_0x2e837a){super(![]),this['problem']=_0x2e837a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
6
6
 
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x1c5803,_0x41db83,_0xff8370,_0x4db940){function _0x42d0f5(_0x31c9e6){return _0x31c9e6 instanceof _0xff8370?_0x31c9e6:new _0xff8370(function(_0x22ef48){_0x22ef48(_0x31c9e6);});}return new(_0xff8370||(_0xff8370=Promise))(function(_0x22767a,_0xad2123){function _0x5ac09b(_0x3e9e1a){try{_0x47b5e5(_0x4db940['next'](_0x3e9e1a));}catch(_0x1cce74){_0xad2123(_0x1cce74);}}function _0x1f4cf9(_0x425cb4){try{_0x47b5e5(_0x4db940['throw'](_0x425cb4));}catch(_0x1792b7){_0xad2123(_0x1792b7);}}function _0x47b5e5(_0x5d4f4d){_0x5d4f4d['done']?_0x22767a(_0x5d4f4d['value']):_0x42d0f5(_0x5d4f4d['value'])['then'](_0x5ac09b,_0x1f4cf9);}_0x47b5e5((_0x4db940=_0x4db940['apply'](_0x1c5803,_0x41db83||[]))['next']());});};class AccountService{constructor(_0x1d6490){this['fetch']=_0x1d6490;}['get'](_0xab5efd,_0x24ac47){return __awaiter$4(this,void 0,void 0,function*(){const _0xfe923f='Account/'+_0xab5efd+'/',_0x26bfd4=yield this['fetch']['get'](_0xfe923f,_0x24ac47);try{if(_0x26bfd4['status']>0xc7&&_0x26bfd4['status']<0x12c){const _0x5f39c8=yield _0x26bfd4['json']();return new SuccessfulAccountResponse(_0x5f39c8);}const _0x3882cc=yield _0x26bfd4['json']();return new FailedAccountResponse(_0x3882cc);}catch(_0x332784){if(_0x332784 instanceof Error)return new FailedAccountResponse({'detail':_0x332784['message'],'title':_0x332784['name'],'status':0x1f4,'instance':'','type':''});throw _0x332784;}});}}
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x2f5bab,_0x1d0632,_0x89a6bd,_0x2a0702){function _0x47097e(_0x1d8be){return _0x1d8be instanceof _0x89a6bd?_0x1d8be:new _0x89a6bd(function(_0x267708){_0x267708(_0x1d8be);});}return new(_0x89a6bd||(_0x89a6bd=Promise))(function(_0x388da0,_0x4a8001){function _0x521832(_0x4aef24){try{_0x34a2c5(_0x2a0702['next'](_0x4aef24));}catch(_0xa65c95){_0x4a8001(_0xa65c95);}}function _0x3d23bc(_0x289fec){try{_0x34a2c5(_0x2a0702['throw'](_0x289fec));}catch(_0x4d75c4){_0x4a8001(_0x4d75c4);}}function _0x34a2c5(_0x9bece1){_0x9bece1['done']?_0x388da0(_0x9bece1['value']):_0x47097e(_0x9bece1['value'])['then'](_0x521832,_0x3d23bc);}_0x34a2c5((_0x2a0702=_0x2a0702['apply'](_0x2f5bab,_0x1d0632||[]))['next']());});};class AccountService{constructor(_0x1407cd){this['fetch']=_0x1407cd;}['get'](_0x6a7ee0,_0x398a88){return __awaiter$4(this,void 0,void 0,function*(){const _0x295606='Account/'+_0x6a7ee0+'/',_0x2d2715=yield this['fetch']['get'](_0x295606,_0x398a88);try{if(_0x2d2715['status']>0xc7&&_0x2d2715['status']<0x12c){const _0x182f27=yield _0x2d2715['json']();return new SuccessfulAccountResponse(_0x182f27);}const _0x4d5536=yield _0x2d2715['json']();return new FailedAccountResponse(_0x4d5536);}catch(_0x2a83d6){if(_0x2a83d6 instanceof Error)return new FailedAccountResponse({'detail':_0x2a83d6['message'],'title':_0x2a83d6['name'],'status':0x1f4,'instance':'','type':''});throw _0x2a83d6;}});}}
8
8
 
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x57a117,_0x4c967b,_0x28929b,_0x1fdbd4){function _0x46681c(_0x4780b1){return _0x4780b1 instanceof _0x28929b?_0x4780b1:new _0x28929b(function(_0x509c6f){_0x509c6f(_0x4780b1);});}return new(_0x28929b||(_0x28929b=Promise))(function(_0x51de6b,_0x405ec8){function _0x52b965(_0x4ec42c){try{_0x2b1e39(_0x1fdbd4['next'](_0x4ec42c));}catch(_0x532cfa){_0x405ec8(_0x532cfa);}}function _0x522a68(_0x59efed){try{_0x2b1e39(_0x1fdbd4['throw'](_0x59efed));}catch(_0x355ee2){_0x405ec8(_0x355ee2);}}function _0x2b1e39(_0x4043e7){_0x4043e7['done']?_0x51de6b(_0x4043e7['value']):_0x46681c(_0x4043e7['value'])['then'](_0x52b965,_0x522a68);}_0x2b1e39((_0x1fdbd4=_0x1fdbd4['apply'](_0x57a117,_0x4c967b||[]))['next']());});};class ApiKeyService{constructor(_0x203fe9){this['fetch']=_0x203fe9;}['create'](_0x2032d3,_0x433f72,_0x21ab60){return __awaiter$3(this,void 0,void 0,function*(){const _0x2bf174='api-key/create',_0x4ab133={'account_name':_0x2032d3,'api_key_name':_0x433f72};try{const _0x44f428=yield this['fetch']['post'](_0x2bf174,_0x21ab60,_0x4ab133);if(_0x44f428['status']>0xc7&&_0x44f428['status']<0x12c){const _0x268fbe=yield _0x44f428['json']();return new SuccessfulApiKeyResponse(_0x268fbe);}const _0x482951=yield _0x44f428['json']();return new FailedApiKeyResponse(_0x482951);}catch(_0x54a475){if(_0x54a475 instanceof Error)return new FailedApiKeyResponse({'detail':_0x54a475['message'],'title':_0x54a475['name'],'status':0x1f4,'instance':'','type':''});throw _0x54a475;}});}['view'](_0x2870e8,_0x47337a,_0x4b1f00){return __awaiter$3(this,void 0,void 0,function*(){const _0x3c7fda='api-key/'+_0x2870e8+'/'+_0x47337a;try{const _0x3ebfb9=yield this['fetch']['get'](_0x3c7fda,_0x4b1f00);if(_0x3ebfb9['status']>0xc7&&_0x3ebfb9['status']<0x12c){const _0x69b3fa=yield _0x3ebfb9['json']();return new SuccessfulApiKeyValueResponse(_0x69b3fa);}const _0xafd0e0=yield _0x3ebfb9['json']();return new FailedApiKeyValueResponse(_0xafd0e0);}catch(_0x481b80){if(_0x481b80 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x481b80['message'],'title':_0x481b80['name'],'status':0x1f4,'instance':'','type':''});throw _0x481b80;}});}}
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x540742,_0x7f802d,_0x433a44,_0x305ec2){function _0x3d9cf4(_0x25191b){return _0x25191b instanceof _0x433a44?_0x25191b:new _0x433a44(function(_0x14892c){_0x14892c(_0x25191b);});}return new(_0x433a44||(_0x433a44=Promise))(function(_0x1c9a60,_0x10e36d){function _0x24ff8e(_0xfd0b6){try{_0x2362bf(_0x305ec2['next'](_0xfd0b6));}catch(_0x5665d9){_0x10e36d(_0x5665d9);}}function _0x3e992f(_0x4d570e){try{_0x2362bf(_0x305ec2['throw'](_0x4d570e));}catch(_0x14499e){_0x10e36d(_0x14499e);}}function _0x2362bf(_0x21b157){_0x21b157['done']?_0x1c9a60(_0x21b157['value']):_0x3d9cf4(_0x21b157['value'])['then'](_0x24ff8e,_0x3e992f);}_0x2362bf((_0x305ec2=_0x305ec2['apply'](_0x540742,_0x7f802d||[]))['next']());});};class ApiKeyService{constructor(_0x4b16a4){this['fetch']=_0x4b16a4;}['create'](_0x2d79fc,_0x41fad2,_0x23c16f){return __awaiter$3(this,void 0,void 0,function*(){const _0x60df06='api-key/create',_0xc4c389={'account_name':_0x2d79fc,'api_key_name':_0x41fad2};try{const _0xec6325=yield this['fetch']['post'](_0x60df06,_0x23c16f,_0xc4c389);if(_0xec6325['status']>0xc7&&_0xec6325['status']<0x12c){const _0x36b110=yield _0xec6325['json']();return new SuccessfulApiKeyResponse(_0x36b110);}const _0x1d2c4e=yield _0xec6325['json']();return new FailedApiKeyResponse(_0x1d2c4e);}catch(_0x1b9024){if(_0x1b9024 instanceof Error)return new FailedApiKeyResponse({'detail':_0x1b9024['message'],'title':_0x1b9024['name'],'status':0x1f4,'instance':'','type':''});throw _0x1b9024;}});}['view'](_0xd0d2,_0xf99c73,_0x4b6040){return __awaiter$3(this,void 0,void 0,function*(){const _0x3cc18a='api-key/'+_0xd0d2+'/'+_0xf99c73;try{const _0x5d3664=yield this['fetch']['get'](_0x3cc18a,_0x4b6040);if(_0x5d3664['status']>0xc7&&_0x5d3664['status']<0x12c){const _0x20e52c=yield _0x5d3664['json']();return new SuccessfulApiKeyValueResponse(_0x20e52c);}const _0x33d51d=yield _0x5d3664['json']();return new FailedApiKeyValueResponse(_0x33d51d);}catch(_0x4f7ae0){if(_0x4f7ae0 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x4f7ae0['message'],'title':_0x4f7ae0['name'],'status':0x1f4,'instance':'','type':''});throw _0x4f7ae0;}});}}
10
10
 
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x4a1f2b,_0x397a9b,_0xc636a6,_0x41b9eb){function _0x268891(_0xe496e3){return _0xe496e3 instanceof _0xc636a6?_0xe496e3:new _0xc636a6(function(_0x5764cf){_0x5764cf(_0xe496e3);});}return new(_0xc636a6||(_0xc636a6=Promise))(function(_0x12e34d,_0x42e86a){function _0x4a7d92(_0xc8629d){try{_0x130f6d(_0x41b9eb['next'](_0xc8629d));}catch(_0x201e0a){_0x42e86a(_0x201e0a);}}function _0x388581(_0x39f537){try{_0x130f6d(_0x41b9eb['throw'](_0x39f537));}catch(_0x46ff98){_0x42e86a(_0x46ff98);}}function _0x130f6d(_0x4c99f4){_0x4c99f4['done']?_0x12e34d(_0x4c99f4['value']):_0x268891(_0x4c99f4['value'])['then'](_0x4a7d92,_0x388581);}_0x130f6d((_0x41b9eb=_0x41b9eb['apply'](_0x4a1f2b,_0x397a9b||[]))['next']());});};class ListService{constructor(_0x5e5bf3){this['fetch']=_0x5e5bf3;}['add'](_0x1857dd,_0x59ffed,_0x42eca9){return __awaiter$2(this,void 0,void 0,function*(){const _0x9a374f='List',_0x4d846e={'account_name':_0x1857dd,'list_name':_0x59ffed};try{const _0x5cf00f=yield this['fetch']['post'](_0x9a374f,_0x42eca9,_0x4d846e);if(_0x5cf00f['status']>0xc7&&_0x5cf00f['status']<0x12c){const _0x5b949b=yield _0x5cf00f['json']();return new SuccessfulAccountResponse(_0x5b949b);}const _0x5b4aed=yield _0x5cf00f['json']();return new FailedAccountResponse(_0x5b4aed);}catch(_0x5bdc35){if(_0x5bdc35 instanceof Error)return new FailedAccountResponse({'detail':_0x5bdc35['message'],'title':_0x5bdc35['name'],'status':0x1f4,'instance':'','type':''});throw _0x5bdc35;}});}['remove'](_0x4ec61b,_0x5a988a,_0x43d006){return __awaiter$2(this,void 0,void 0,function*(){const _0x2e0447='List/'+_0x4ec61b+'/'+_0x5a988a,_0x8e29bb=yield this['fetch']['delete'](_0x2e0447,_0x43d006);try{if(_0x8e29bb['status']>0xc7&&_0x8e29bb['status']<0x12c){const _0xef391f=yield _0x8e29bb['json']();return new SuccessfulAccountResponse(_0xef391f);}const _0x3e7d27=yield _0x8e29bb['json']();return new FailedAccountResponse(_0x3e7d27);}catch(_0x9f5d35){if(_0x9f5d35 instanceof Error)return new FailedAccountResponse({'detail':_0x9f5d35['message'],'title':_0x9f5d35['name'],'status':0x1f4,'instance':'','type':''});throw _0x9f5d35;}});}}
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0xe9c276,_0x35cdf9,_0x482a17,_0xf4fc7f){function _0x285735(_0x162728){return _0x162728 instanceof _0x482a17?_0x162728:new _0x482a17(function(_0x53cfe5){_0x53cfe5(_0x162728);});}return new(_0x482a17||(_0x482a17=Promise))(function(_0x166267,_0x24d943){function _0x6c02aa(_0x26a3de){try{_0x570af7(_0xf4fc7f['next'](_0x26a3de));}catch(_0x2def88){_0x24d943(_0x2def88);}}function _0x148d16(_0x481d89){try{_0x570af7(_0xf4fc7f['throw'](_0x481d89));}catch(_0x515802){_0x24d943(_0x515802);}}function _0x570af7(_0x5129d7){_0x5129d7['done']?_0x166267(_0x5129d7['value']):_0x285735(_0x5129d7['value'])['then'](_0x6c02aa,_0x148d16);}_0x570af7((_0xf4fc7f=_0xf4fc7f['apply'](_0xe9c276,_0x35cdf9||[]))['next']());});};class ListService{constructor(_0x353ad){this['fetch']=_0x353ad;}['add'](_0x39debe,_0x279188,_0x243e7e){return __awaiter$2(this,void 0,void 0,function*(){const _0x5776cc='List',_0x4e61cf={'account_name':_0x39debe,'list_name':_0x279188};try{const _0x4c6782=yield this['fetch']['post'](_0x5776cc,_0x243e7e,_0x4e61cf);if(_0x4c6782['status']>0xc7&&_0x4c6782['status']<0x12c){const _0x3fe66e=yield _0x4c6782['json']();return new SuccessfulAccountResponse(_0x3fe66e);}const _0x2a0668=yield _0x4c6782['json']();return new FailedAccountResponse(_0x2a0668);}catch(_0x71a5ee){if(_0x71a5ee instanceof Error)return new FailedAccountResponse({'detail':_0x71a5ee['message'],'title':_0x71a5ee['name'],'status':0x1f4,'instance':'','type':''});throw _0x71a5ee;}});}['remove'](_0x1b2348,_0x280237,_0x49f43d){return __awaiter$2(this,void 0,void 0,function*(){const _0x20fdb6='List/'+_0x1b2348+'/'+_0x280237,_0x13a104=yield this['fetch']['delete'](_0x20fdb6,_0x49f43d);try{if(_0x13a104['status']>0xc7&&_0x13a104['status']<0x12c){const _0x56fbd8=yield _0x13a104['json']();return new SuccessfulAccountResponse(_0x56fbd8);}const _0x590b7e=yield _0x13a104['json']();return new FailedAccountResponse(_0x590b7e);}catch(_0x44514c){if(_0x44514c instanceof Error)return new FailedAccountResponse({'detail':_0x44514c['message'],'title':_0x44514c['name'],'status':0x1f4,'instance':'','type':''});throw _0x44514c;}});}}
12
12
 
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x4ea46f,_0x19245a,_0x45c4d2,_0x113a75){function _0x1e82ae(_0x5adc9c){return _0x5adc9c instanceof _0x45c4d2?_0x5adc9c:new _0x45c4d2(function(_0x235dc2){_0x235dc2(_0x5adc9c);});}return new(_0x45c4d2||(_0x45c4d2=Promise))(function(_0x397b0c,_0x4890f7){function _0x5e987d(_0x237a84){try{_0x2afc01(_0x113a75['next'](_0x237a84));}catch(_0x4ecee5){_0x4890f7(_0x4ecee5);}}function _0x5b2169(_0x1d732d){try{_0x2afc01(_0x113a75['throw'](_0x1d732d));}catch(_0x5eae79){_0x4890f7(_0x5eae79);}}function _0x2afc01(_0x3bcb8f){_0x3bcb8f['done']?_0x397b0c(_0x3bcb8f['value']):_0x1e82ae(_0x3bcb8f['value'])['then'](_0x5e987d,_0x5b2169);}_0x2afc01((_0x113a75=_0x113a75['apply'](_0x4ea46f,_0x19245a||[]))['next']());});};class Fetch{constructor(_0x38e15d){this['baseUri']=_0x38e15d,this['getUrl']=_0x1097a7=>{return _0x1097a7['startsWith']('/')&&(_0x1097a7=_0x1097a7['replace']('/','')),''+this['baseUri']+_0x1097a7;},!_0x38e15d['endsWith']('/')&&(_0x38e15d=_0x38e15d+'/');}['get'](_0x8d487a,_0x53bcf6){return __awaiter$1(this,void 0,void 0,function*(){const _0x52aa37=this['getUrl'](_0x8d487a);return yield fetch(_0x52aa37,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x53bcf6}});});}['post'](_0x23101f,_0x1fb8b3,_0x3af7c9){return __awaiter$1(this,void 0,void 0,function*(){const _0x492b4c=this['getUrl'](_0x23101f);return yield fetch(_0x492b4c,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1fb8b3},'body':_0x3af7c9?JSON['stringify'](_0x3af7c9):null});});}['put'](_0x451e56,_0x2a7a6f,_0x3bf198){return __awaiter$1(this,void 0,void 0,function*(){const _0x142ea4=this['getUrl'](_0x451e56);return yield fetch(_0x142ea4,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2a7a6f},'body':_0x3bf198?JSON['stringify'](_0x3bf198):null});});}['delete'](_0x3a77b4,_0x29c12b){return __awaiter$1(this,void 0,void 0,function*(){const _0x379e22=this['getUrl'](_0x3a77b4);return yield fetch(_0x379e22,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x29c12b}});});}}
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x8e2726,_0x2a25fd,_0x1fcd89,_0x4b2795){function _0x9ff81d(_0x25ed09){return _0x25ed09 instanceof _0x1fcd89?_0x25ed09:new _0x1fcd89(function(_0x9f9cc){_0x9f9cc(_0x25ed09);});}return new(_0x1fcd89||(_0x1fcd89=Promise))(function(_0x309be9,_0x2099fd){function _0x5a1849(_0x56196c){try{_0x3f4a57(_0x4b2795['next'](_0x56196c));}catch(_0x49f9e0){_0x2099fd(_0x49f9e0);}}function _0x146975(_0x2a5c30){try{_0x3f4a57(_0x4b2795['throw'](_0x2a5c30));}catch(_0x370acb){_0x2099fd(_0x370acb);}}function _0x3f4a57(_0x1ae2f9){_0x1ae2f9['done']?_0x309be9(_0x1ae2f9['value']):_0x9ff81d(_0x1ae2f9['value'])['then'](_0x5a1849,_0x146975);}_0x3f4a57((_0x4b2795=_0x4b2795['apply'](_0x8e2726,_0x2a25fd||[]))['next']());});};class Fetch{constructor(_0x5662e9){this['baseUri']=_0x5662e9,this['getUrl']=_0x10fb04=>{return _0x10fb04['startsWith']('/')&&(_0x10fb04=_0x10fb04['replace']('/','')),''+this['baseUri']+_0x10fb04;},!_0x5662e9['endsWith']('/')&&(_0x5662e9=_0x5662e9+'/');}['get'](_0x20577f,_0x117fca){return __awaiter$1(this,void 0,void 0,function*(){const _0x2507e7=this['getUrl'](_0x20577f);return yield fetch(_0x2507e7,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x117fca}});});}['post'](_0xfaa12b,_0x338a1c,_0x32407f){return __awaiter$1(this,void 0,void 0,function*(){const _0x433a63=this['getUrl'](_0xfaa12b);return yield fetch(_0x433a63,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x338a1c},'body':_0x32407f?JSON['stringify'](_0x32407f):null});});}['put'](_0x5072bb,_0x1187ae,_0x208599){return __awaiter$1(this,void 0,void 0,function*(){const _0xcb32a7=this['getUrl'](_0x5072bb);return yield fetch(_0xcb32a7,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1187ae},'body':_0x208599?JSON['stringify'](_0x208599):null});});}['delete'](_0x3e3401,_0x3d22df){return __awaiter$1(this,void 0,void 0,function*(){const _0x479a53=this['getUrl'](_0x3e3401);return yield fetch(_0x479a53,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3d22df}});});}}
14
14
 
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x5f3571,_0x3a07dd,_0x340743,_0x2d22e6){function _0xd53999(_0x46e833){return _0x46e833 instanceof _0x340743?_0x46e833:new _0x340743(function(_0x2e3a7d){_0x2e3a7d(_0x46e833);});}return new(_0x340743||(_0x340743=Promise))(function(_0x3280a3,_0x1626b9){function _0xb88d37(_0x4d5407){try{_0x26ae58(_0x2d22e6['next'](_0x4d5407));}catch(_0x2d5149){_0x1626b9(_0x2d5149);}}function _0x45fa6f(_0x476b34){try{_0x26ae58(_0x2d22e6['throw'](_0x476b34));}catch(_0x51e175){_0x1626b9(_0x51e175);}}function _0x26ae58(_0x511038){_0x511038['done']?_0x3280a3(_0x511038['value']):_0xd53999(_0x511038['value'])['then'](_0xb88d37,_0x45fa6f);}_0x26ae58((_0x2d22e6=_0x2d22e6['apply'](_0x5f3571,_0x3a07dd||[]))['next']());});};class AdminClient{constructor(_0x758b0f='https://admin.searchability.dev/'){var _0x3cab75=new Fetch(_0x758b0f);this['Accounts']=new AccountService(_0x3cab75),this['Lists']=new ListService(_0x3cab75),this['ApiKeys']=new ApiKeyService(_0x3cab75);}}class AuthClient{constructor(_0x592003='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x592003);}['login'](_0x19b82b){return __awaiter(this,void 0,void 0,function*(){var _0x1568f0='login/'+_0x19b82b;try{const _0x1cd57b=yield yield fetch(_0x1568f0);if(_0x1cd57b['status']>0xc7&&_0x1cd57b['status']<0x12c){const _0x406a23=yield _0x1cd57b['json']();return new SuccessfulAuthResponse(_0x406a23);}const _0x37edb4=yield _0x1cd57b['json']();return new FailedAuthResponse(_0x37edb4);}catch(_0x2d8cde){if(_0x2d8cde instanceof Error)return new FailedAuthResponse({'detail':_0x2d8cde['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2d8cde;}});}['refresh'](_0xf7275d){return __awaiter(this,void 0,void 0,function*(){var _0x14de38='refresh';try{const _0x464567=yield this['fetch']['post'](_0x14de38,_0xf7275d,null);if(_0x464567['status']>0xc7&&_0x464567['status']<0x12c){const _0x216fc7=yield _0x464567['json']();return new SuccessfulAuthResponse(_0x216fc7);}const _0x549ddd=yield _0x464567['json']();return new FailedAuthResponse(_0x549ddd);}catch(_0x324279){if(_0x324279 instanceof Error)return new FailedAuthResponse({'detail':_0x324279['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x324279;}});}}
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x3b7dac,_0x306c63,_0x440f24,_0x18b50e){function _0x4fd278(_0x3a43b2){return _0x3a43b2 instanceof _0x440f24?_0x3a43b2:new _0x440f24(function(_0x5e8fc3){_0x5e8fc3(_0x3a43b2);});}return new(_0x440f24||(_0x440f24=Promise))(function(_0x550810,_0xaba3b9){function _0x1d588f(_0x6146f){try{_0x444776(_0x18b50e['next'](_0x6146f));}catch(_0x3e5f67){_0xaba3b9(_0x3e5f67);}}function _0x3ac8d0(_0x251e49){try{_0x444776(_0x18b50e['throw'](_0x251e49));}catch(_0xd4853c){_0xaba3b9(_0xd4853c);}}function _0x444776(_0x19b716){_0x19b716['done']?_0x550810(_0x19b716['value']):_0x4fd278(_0x19b716['value'])['then'](_0x1d588f,_0x3ac8d0);}_0x444776((_0x18b50e=_0x18b50e['apply'](_0x3b7dac,_0x306c63||[]))['next']());});};class AdminClient{constructor(_0x42ed7a='https://admin.searchability.dev/'){var _0x56057a=new Fetch(_0x42ed7a);this['Accounts']=new AccountService(_0x56057a),this['Lists']=new ListService(_0x56057a),this['ApiKeys']=new ApiKeyService(_0x56057a);}}class AuthClient{constructor(_0x2ec1f8='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x2ec1f8);}['login'](_0x1411c9){return __awaiter(this,void 0,void 0,function*(){var _0x1ba043='login/'+_0x1411c9;try{const _0x8659c=yield yield fetch(_0x1ba043);if(_0x8659c['status']>0xc7&&_0x8659c['status']<0x12c){const _0xb644dd=yield _0x8659c['json']();return new SuccessfulAuthResponse(_0xb644dd);}const _0x1f0879=yield _0x8659c['json']();return new FailedAuthResponse(_0x1f0879);}catch(_0x392498){if(_0x392498 instanceof Error)return new FailedAuthResponse({'detail':_0x392498['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x392498;}});}['refresh'](_0x39c659){return __awaiter(this,void 0,void 0,function*(){var _0x2a4f21='refresh';try{const _0x1c6db8=yield this['fetch']['post'](_0x2a4f21,_0x39c659,null);if(_0x1c6db8['status']>0xc7&&_0x1c6db8['status']<0x12c){const _0x4b292a=yield _0x1c6db8['json']();return new SuccessfulAuthResponse(_0x4b292a);}const _0xc04d03=yield _0x1c6db8['json']();return new FailedAuthResponse(_0xc04d03);}catch(_0x4e8359){if(_0x4e8359 instanceof Error)return new FailedAuthResponse({'detail':_0x4e8359['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x4e8359;}});}}
16
16
 
17
17
  exports.AdminClient = AdminClient;
18
18
  exports.AuthClient = AuthClient;
@@ -1,15 +1,15 @@
1
- var TokenStatus;(function(_0x1c1e6b){_0x1c1e6b[_0x1c1e6b['Ok']=0x0]='Ok',_0x1c1e6b[_0x1c1e6b['Refresh']=0x1]='Refresh',_0x1c1e6b[_0x1c1e6b['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}['getStatus'](){if(Date['now']()<this['access_expires'])return TokenStatus['Ok'];if(Date['now']()<this['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
1
+ var TokenStatus;(function(_0x1150ac){_0x1150ac[_0x1150ac['Ok']=0x0]='Ok',_0x1150ac[_0x1150ac['Refresh']=0x1]='Refresh',_0x1150ac[_0x1150ac['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}['getStatus'](){if(Date['now']()<this['access_expires'])return TokenStatus['Ok'];if(Date['now']()<this['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
2
2
 
3
- class Response{constructor(_0x2618c5){this['isSuccess']=_0x2618c5;}}class SuccessfulAccountResponse extends Response{constructor(_0x5d134e){super(!![]),this['account']=_0x5d134e;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x47f5ff){super(![]),this['problem']=_0x47f5ff;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x4f31bc){super(!![]),this['tokens']=_0x4f31bc;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x947d4a){super(![]),this['problem']=_0x947d4a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x4c573a){super(!![]),this['apiKey']=_0x4c573a;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x27fa97){super(![]),this['problem']=_0x27fa97;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0xe9ac1){super(!![]),this['apiKeyValue']=_0xe9ac1;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyValueResponse extends Response{constructor(_0xc18ad6){super(![]),this['problem']=_0xc18ad6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
3
+ class Response{constructor(_0x1f20ea){this['isSuccess']=_0x1f20ea;}}class SuccessfulAccountResponse extends Response{constructor(_0x4c64c6){super(!![]),this['account']=_0x4c64c6;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x554609){super(![]),this['problem']=_0x554609;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x446159){super(!![]),this['tokens']=_0x446159;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x3c829a){super(![]),this['problem']=_0x3c829a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x3f5489){super(!![]),this['apiKey']=_0x3f5489;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x189a1c){super(![]),this['problem']=_0x189a1c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x5bb313){super(!![]),this['apiKeyValue']=_0x5bb313;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyValueResponse extends Response{constructor(_0x29cd1e){super(![]),this['problem']=_0x29cd1e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x4ff2a8,_0x35a1ed,_0x1ef313,_0x11b828){function _0x217bd1(_0x2507d1){return _0x2507d1 instanceof _0x1ef313?_0x2507d1:new _0x1ef313(function(_0x229c0d){_0x229c0d(_0x2507d1);});}return new(_0x1ef313||(_0x1ef313=Promise))(function(_0x253029,_0x58e7fe){function _0x1ea0c0(_0x5c4aa9){try{_0x334cbf(_0x11b828['next'](_0x5c4aa9));}catch(_0xc6b221){_0x58e7fe(_0xc6b221);}}function _0x2bc91c(_0x460bbc){try{_0x334cbf(_0x11b828['throw'](_0x460bbc));}catch(_0x3dbd8d){_0x58e7fe(_0x3dbd8d);}}function _0x334cbf(_0x1364d3){_0x1364d3['done']?_0x253029(_0x1364d3['value']):_0x217bd1(_0x1364d3['value'])['then'](_0x1ea0c0,_0x2bc91c);}_0x334cbf((_0x11b828=_0x11b828['apply'](_0x4ff2a8,_0x35a1ed||[]))['next']());});};class AccountService{constructor(_0x112bce){this['fetch']=_0x112bce;}['get'](_0x468125,_0x579810){return __awaiter$4(this,void 0,void 0,function*(){const _0x38d5d8='Account/'+_0x468125+'/',_0x42b3a7=yield this['fetch']['get'](_0x38d5d8,_0x579810);try{if(_0x42b3a7['status']>0xc7&&_0x42b3a7['status']<0x12c){const _0x4aee58=yield _0x42b3a7['json']();return new SuccessfulAccountResponse(_0x4aee58);}const _0x42b97c=yield _0x42b3a7['json']();return new FailedAccountResponse(_0x42b97c);}catch(_0x1ab88a){if(_0x1ab88a instanceof Error)return new FailedAccountResponse({'detail':_0x1ab88a['message'],'title':_0x1ab88a['name'],'status':0x1f4,'instance':'','type':''});throw _0x1ab88a;}});}}
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x5d41a8,_0x39af39,_0xd0b88d,_0x38cfe1){function _0x1d3b8f(_0x10d38a){return _0x10d38a instanceof _0xd0b88d?_0x10d38a:new _0xd0b88d(function(_0x106847){_0x106847(_0x10d38a);});}return new(_0xd0b88d||(_0xd0b88d=Promise))(function(_0x5d22b7,_0x28ee9b){function _0x405cdd(_0x5a018d){try{_0x2fb834(_0x38cfe1['next'](_0x5a018d));}catch(_0x46d32c){_0x28ee9b(_0x46d32c);}}function _0x6b9491(_0x580e88){try{_0x2fb834(_0x38cfe1['throw'](_0x580e88));}catch(_0x185b4e){_0x28ee9b(_0x185b4e);}}function _0x2fb834(_0x41607c){_0x41607c['done']?_0x5d22b7(_0x41607c['value']):_0x1d3b8f(_0x41607c['value'])['then'](_0x405cdd,_0x6b9491);}_0x2fb834((_0x38cfe1=_0x38cfe1['apply'](_0x5d41a8,_0x39af39||[]))['next']());});};class AccountService{constructor(_0x28935b){this['fetch']=_0x28935b;}['get'](_0x464bf7,_0x3ae7dd){return __awaiter$4(this,void 0,void 0,function*(){const _0x2170ba='Account/'+_0x464bf7+'/',_0x127417=yield this['fetch']['get'](_0x2170ba,_0x3ae7dd);try{if(_0x127417['status']>0xc7&&_0x127417['status']<0x12c){const _0x595b68=yield _0x127417['json']();return new SuccessfulAccountResponse(_0x595b68);}const _0x2ec558=yield _0x127417['json']();return new FailedAccountResponse(_0x2ec558);}catch(_0x1416db){if(_0x1416db instanceof Error)return new FailedAccountResponse({'detail':_0x1416db['message'],'title':_0x1416db['name'],'status':0x1f4,'instance':'','type':''});throw _0x1416db;}});}}
6
6
 
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x4a1303,_0x11b202,_0x8ad526,_0x24a524){function _0x194a8f(_0x3617d7){return _0x3617d7 instanceof _0x8ad526?_0x3617d7:new _0x8ad526(function(_0x708d5d){_0x708d5d(_0x3617d7);});}return new(_0x8ad526||(_0x8ad526=Promise))(function(_0x216903,_0x19ba76){function _0x1aeb75(_0x4433e7){try{_0x256ce3(_0x24a524['next'](_0x4433e7));}catch(_0x3f2be7){_0x19ba76(_0x3f2be7);}}function _0x1bb2ab(_0xfb0882){try{_0x256ce3(_0x24a524['throw'](_0xfb0882));}catch(_0x2d2113){_0x19ba76(_0x2d2113);}}function _0x256ce3(_0x3bf824){_0x3bf824['done']?_0x216903(_0x3bf824['value']):_0x194a8f(_0x3bf824['value'])['then'](_0x1aeb75,_0x1bb2ab);}_0x256ce3((_0x24a524=_0x24a524['apply'](_0x4a1303,_0x11b202||[]))['next']());});};class ApiKeyService{constructor(_0x3ec99b){this['fetch']=_0x3ec99b;}['create'](_0x5ac415,_0x35cbf4,_0x4833eb){return __awaiter$3(this,void 0,void 0,function*(){const _0x533695='api-key/create',_0xbc9795={'account_name':_0x5ac415,'api_key_name':_0x35cbf4};try{const _0x3908f1=yield this['fetch']['post'](_0x533695,_0x4833eb,_0xbc9795);if(_0x3908f1['status']>0xc7&&_0x3908f1['status']<0x12c){const _0x168d14=yield _0x3908f1['json']();return new SuccessfulApiKeyResponse(_0x168d14);}const _0x5fadc5=yield _0x3908f1['json']();return new FailedApiKeyResponse(_0x5fadc5);}catch(_0x32b255){if(_0x32b255 instanceof Error)return new FailedApiKeyResponse({'detail':_0x32b255['message'],'title':_0x32b255['name'],'status':0x1f4,'instance':'','type':''});throw _0x32b255;}});}['view'](_0x491971,_0x273dff,_0x8c5a58){return __awaiter$3(this,void 0,void 0,function*(){const _0x2d87bf='api-key/'+_0x491971+'/'+_0x273dff;try{const _0x312e36=yield this['fetch']['get'](_0x2d87bf,_0x8c5a58);if(_0x312e36['status']>0xc7&&_0x312e36['status']<0x12c){const _0x32573f=yield _0x312e36['json']();return new SuccessfulApiKeyValueResponse(_0x32573f);}const _0xd6ba29=yield _0x312e36['json']();return new FailedApiKeyValueResponse(_0xd6ba29);}catch(_0x237f93){if(_0x237f93 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x237f93['message'],'title':_0x237f93['name'],'status':0x1f4,'instance':'','type':''});throw _0x237f93;}});}}
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x4d05c8,_0x2bc23d,_0xaae974,_0x574880){function _0x219e88(_0x5d54cf){return _0x5d54cf instanceof _0xaae974?_0x5d54cf:new _0xaae974(function(_0x2c984d){_0x2c984d(_0x5d54cf);});}return new(_0xaae974||(_0xaae974=Promise))(function(_0x5e9ca1,_0x493220){function _0x5cdc6a(_0xb55c2f){try{_0x4c019e(_0x574880['next'](_0xb55c2f));}catch(_0x575eb8){_0x493220(_0x575eb8);}}function _0x4146dd(_0x1fb448){try{_0x4c019e(_0x574880['throw'](_0x1fb448));}catch(_0x16cdd5){_0x493220(_0x16cdd5);}}function _0x4c019e(_0x3b240a){_0x3b240a['done']?_0x5e9ca1(_0x3b240a['value']):_0x219e88(_0x3b240a['value'])['then'](_0x5cdc6a,_0x4146dd);}_0x4c019e((_0x574880=_0x574880['apply'](_0x4d05c8,_0x2bc23d||[]))['next']());});};class ApiKeyService{constructor(_0x193cc2){this['fetch']=_0x193cc2;}['create'](_0x4f44da,_0xb456aa,_0x3f5a02){return __awaiter$3(this,void 0,void 0,function*(){const _0x53f089='api-key/create',_0x5de28c={'account_name':_0x4f44da,'api_key_name':_0xb456aa};try{const _0x1aa0a9=yield this['fetch']['post'](_0x53f089,_0x3f5a02,_0x5de28c);if(_0x1aa0a9['status']>0xc7&&_0x1aa0a9['status']<0x12c){const _0x2742d0=yield _0x1aa0a9['json']();return new SuccessfulApiKeyResponse(_0x2742d0);}const _0x52468f=yield _0x1aa0a9['json']();return new FailedApiKeyResponse(_0x52468f);}catch(_0x451572){if(_0x451572 instanceof Error)return new FailedApiKeyResponse({'detail':_0x451572['message'],'title':_0x451572['name'],'status':0x1f4,'instance':'','type':''});throw _0x451572;}});}['view'](_0xd26af8,_0x4f4d2e,_0x2807ef){return __awaiter$3(this,void 0,void 0,function*(){const _0x3edc1f='api-key/'+_0xd26af8+'/'+_0x4f4d2e;try{const _0x3c3025=yield this['fetch']['get'](_0x3edc1f,_0x2807ef);if(_0x3c3025['status']>0xc7&&_0x3c3025['status']<0x12c){const _0x183480=yield _0x3c3025['json']();return new SuccessfulApiKeyValueResponse(_0x183480);}const _0x557c1c=yield _0x3c3025['json']();return new FailedApiKeyValueResponse(_0x557c1c);}catch(_0x8112dc){if(_0x8112dc instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x8112dc['message'],'title':_0x8112dc['name'],'status':0x1f4,'instance':'','type':''});throw _0x8112dc;}});}}
8
8
 
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x547f0b,_0x4b4867,_0x112f71,_0x146e5d){function _0x391157(_0x1af33c){return _0x1af33c instanceof _0x112f71?_0x1af33c:new _0x112f71(function(_0x51b19){_0x51b19(_0x1af33c);});}return new(_0x112f71||(_0x112f71=Promise))(function(_0x29f4ea,_0xa45e07){function _0x18c5c5(_0x35cc4e){try{_0x18f69d(_0x146e5d['next'](_0x35cc4e));}catch(_0x56a690){_0xa45e07(_0x56a690);}}function _0x480de5(_0x54d47f){try{_0x18f69d(_0x146e5d['throw'](_0x54d47f));}catch(_0x1a1ab5){_0xa45e07(_0x1a1ab5);}}function _0x18f69d(_0x54f271){_0x54f271['done']?_0x29f4ea(_0x54f271['value']):_0x391157(_0x54f271['value'])['then'](_0x18c5c5,_0x480de5);}_0x18f69d((_0x146e5d=_0x146e5d['apply'](_0x547f0b,_0x4b4867||[]))['next']());});};class ListService{constructor(_0x25f54a){this['fetch']=_0x25f54a;}['add'](_0x4f950,_0x10dd11,_0x2a0e11){return __awaiter$2(this,void 0,void 0,function*(){const _0x8ca47c='List',_0x40abbe={'account_name':_0x4f950,'list_name':_0x10dd11};try{const _0x540c73=yield this['fetch']['post'](_0x8ca47c,_0x2a0e11,_0x40abbe);if(_0x540c73['status']>0xc7&&_0x540c73['status']<0x12c){const _0x26241b=yield _0x540c73['json']();return new SuccessfulAccountResponse(_0x26241b);}const _0x3884d8=yield _0x540c73['json']();return new FailedAccountResponse(_0x3884d8);}catch(_0x1c4bea){if(_0x1c4bea instanceof Error)return new FailedAccountResponse({'detail':_0x1c4bea['message'],'title':_0x1c4bea['name'],'status':0x1f4,'instance':'','type':''});throw _0x1c4bea;}});}['remove'](_0x7b1443,_0x3a9b07,_0x644008){return __awaiter$2(this,void 0,void 0,function*(){const _0x49efe3='List/'+_0x7b1443+'/'+_0x3a9b07,_0xfd7c91=yield this['fetch']['delete'](_0x49efe3,_0x644008);try{if(_0xfd7c91['status']>0xc7&&_0xfd7c91['status']<0x12c){const _0x201730=yield _0xfd7c91['json']();return new SuccessfulAccountResponse(_0x201730);}const _0x2d2e1d=yield _0xfd7c91['json']();return new FailedAccountResponse(_0x2d2e1d);}catch(_0x4725e0){if(_0x4725e0 instanceof Error)return new FailedAccountResponse({'detail':_0x4725e0['message'],'title':_0x4725e0['name'],'status':0x1f4,'instance':'','type':''});throw _0x4725e0;}});}}
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x55188f,_0xf274c5,_0x1eb372,_0x34c3ed){function _0x24fcac(_0x2c5253){return _0x2c5253 instanceof _0x1eb372?_0x2c5253:new _0x1eb372(function(_0x385da2){_0x385da2(_0x2c5253);});}return new(_0x1eb372||(_0x1eb372=Promise))(function(_0x34189e,_0x3ad294){function _0x5d47d0(_0x552560){try{_0x1154f7(_0x34c3ed['next'](_0x552560));}catch(_0x2bb1fd){_0x3ad294(_0x2bb1fd);}}function _0x4c8c80(_0x1a7cc2){try{_0x1154f7(_0x34c3ed['throw'](_0x1a7cc2));}catch(_0x504cb0){_0x3ad294(_0x504cb0);}}function _0x1154f7(_0x3626f9){_0x3626f9['done']?_0x34189e(_0x3626f9['value']):_0x24fcac(_0x3626f9['value'])['then'](_0x5d47d0,_0x4c8c80);}_0x1154f7((_0x34c3ed=_0x34c3ed['apply'](_0x55188f,_0xf274c5||[]))['next']());});};class ListService{constructor(_0x3d36fe){this['fetch']=_0x3d36fe;}['add'](_0x9406c2,_0x996ff1,_0x2db87b){return __awaiter$2(this,void 0,void 0,function*(){const _0x1e63f6='List',_0x27bee2={'account_name':_0x9406c2,'list_name':_0x996ff1};try{const _0x348c40=yield this['fetch']['post'](_0x1e63f6,_0x2db87b,_0x27bee2);if(_0x348c40['status']>0xc7&&_0x348c40['status']<0x12c){const _0x53f8fa=yield _0x348c40['json']();return new SuccessfulAccountResponse(_0x53f8fa);}const _0x5ace0c=yield _0x348c40['json']();return new FailedAccountResponse(_0x5ace0c);}catch(_0x3284b6){if(_0x3284b6 instanceof Error)return new FailedAccountResponse({'detail':_0x3284b6['message'],'title':_0x3284b6['name'],'status':0x1f4,'instance':'','type':''});throw _0x3284b6;}});}['remove'](_0x59771c,_0x398bfa,_0x5a3f5e){return __awaiter$2(this,void 0,void 0,function*(){const _0x297b09='List/'+_0x59771c+'/'+_0x398bfa,_0x98ae3=yield this['fetch']['delete'](_0x297b09,_0x5a3f5e);try{if(_0x98ae3['status']>0xc7&&_0x98ae3['status']<0x12c){const _0x3ac4b0=yield _0x98ae3['json']();return new SuccessfulAccountResponse(_0x3ac4b0);}const _0x1ae6f0=yield _0x98ae3['json']();return new FailedAccountResponse(_0x1ae6f0);}catch(_0x38f820){if(_0x38f820 instanceof Error)return new FailedAccountResponse({'detail':_0x38f820['message'],'title':_0x38f820['name'],'status':0x1f4,'instance':'','type':''});throw _0x38f820;}});}}
10
10
 
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0xf4ec03,_0x12a65e,_0x351700,_0x4f0ca5){function _0x576dd2(_0x12c594){return _0x12c594 instanceof _0x351700?_0x12c594:new _0x351700(function(_0x177ac3){_0x177ac3(_0x12c594);});}return new(_0x351700||(_0x351700=Promise))(function(_0x2ccad2,_0x1f0eed){function _0x4f5a4b(_0x274305){try{_0x4cbf5c(_0x4f0ca5['next'](_0x274305));}catch(_0x50c4dd){_0x1f0eed(_0x50c4dd);}}function _0x23f28b(_0x424551){try{_0x4cbf5c(_0x4f0ca5['throw'](_0x424551));}catch(_0x7cb07c){_0x1f0eed(_0x7cb07c);}}function _0x4cbf5c(_0x164146){_0x164146['done']?_0x2ccad2(_0x164146['value']):_0x576dd2(_0x164146['value'])['then'](_0x4f5a4b,_0x23f28b);}_0x4cbf5c((_0x4f0ca5=_0x4f0ca5['apply'](_0xf4ec03,_0x12a65e||[]))['next']());});};class Fetch{constructor(_0x29787d){this['baseUri']=_0x29787d,this['getUrl']=_0x581dc1=>{return _0x581dc1['startsWith']('/')&&(_0x581dc1=_0x581dc1['replace']('/','')),''+this['baseUri']+_0x581dc1;},!_0x29787d['endsWith']('/')&&(_0x29787d=_0x29787d+'/');}['get'](_0x2b1561,_0x1c9fe3){return __awaiter$1(this,void 0,void 0,function*(){const _0x121310=this['getUrl'](_0x2b1561);return yield fetch(_0x121310,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1c9fe3}});});}['post'](_0x3bb5ad,_0x54acd2,_0x5ca06a){return __awaiter$1(this,void 0,void 0,function*(){const _0x31848d=this['getUrl'](_0x3bb5ad);return yield fetch(_0x31848d,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x54acd2},'body':_0x5ca06a?JSON['stringify'](_0x5ca06a):null});});}['put'](_0x5d4c4e,_0x3120f9,_0x57896b){return __awaiter$1(this,void 0,void 0,function*(){const _0x39103b=this['getUrl'](_0x5d4c4e);return yield fetch(_0x39103b,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3120f9},'body':_0x57896b?JSON['stringify'](_0x57896b):null});});}['delete'](_0x5909b9,_0x359d8f){return __awaiter$1(this,void 0,void 0,function*(){const _0x42b4f3=this['getUrl'](_0x5909b9);return yield fetch(_0x42b4f3,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x359d8f}});});}}
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0xfa835,_0x3311ba,_0x2bb8da,_0x109105){function _0x11bcfa(_0x5521a1){return _0x5521a1 instanceof _0x2bb8da?_0x5521a1:new _0x2bb8da(function(_0x56d2df){_0x56d2df(_0x5521a1);});}return new(_0x2bb8da||(_0x2bb8da=Promise))(function(_0x26d77f,_0x5d4a4b){function _0x306bd6(_0xbe467b){try{_0x214a78(_0x109105['next'](_0xbe467b));}catch(_0x350a0c){_0x5d4a4b(_0x350a0c);}}function _0x17fbba(_0x418b0c){try{_0x214a78(_0x109105['throw'](_0x418b0c));}catch(_0x47c378){_0x5d4a4b(_0x47c378);}}function _0x214a78(_0xa7acf3){_0xa7acf3['done']?_0x26d77f(_0xa7acf3['value']):_0x11bcfa(_0xa7acf3['value'])['then'](_0x306bd6,_0x17fbba);}_0x214a78((_0x109105=_0x109105['apply'](_0xfa835,_0x3311ba||[]))['next']());});};class Fetch{constructor(_0x3a736f){this['baseUri']=_0x3a736f,this['getUrl']=_0x260665=>{return _0x260665['startsWith']('/')&&(_0x260665=_0x260665['replace']('/','')),''+this['baseUri']+_0x260665;},!_0x3a736f['endsWith']('/')&&(_0x3a736f=_0x3a736f+'/');}['get'](_0xc01641,_0x40bc31){return __awaiter$1(this,void 0,void 0,function*(){const _0x240a47=this['getUrl'](_0xc01641);return yield fetch(_0x240a47,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x40bc31}});});}['post'](_0x9d5238,_0x18ae0b,_0x3b8dd9){return __awaiter$1(this,void 0,void 0,function*(){const _0x3a701b=this['getUrl'](_0x9d5238);return yield fetch(_0x3a701b,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x18ae0b},'body':_0x3b8dd9?JSON['stringify'](_0x3b8dd9):null});});}['put'](_0x402e62,_0x1df9ed,_0x56a404){return __awaiter$1(this,void 0,void 0,function*(){const _0x5068c6=this['getUrl'](_0x402e62);return yield fetch(_0x5068c6,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1df9ed},'body':_0x56a404?JSON['stringify'](_0x56a404):null});});}['delete'](_0x5dbd12,_0x579147){return __awaiter$1(this,void 0,void 0,function*(){const _0xc8e487=this['getUrl'](_0x5dbd12);return yield fetch(_0xc8e487,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x579147}});});}}
12
12
 
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x20bdfe,_0x1966ca,_0x3d8fe1,_0x27f085){function _0x169b9c(_0x326506){return _0x326506 instanceof _0x3d8fe1?_0x326506:new _0x3d8fe1(function(_0x45136a){_0x45136a(_0x326506);});}return new(_0x3d8fe1||(_0x3d8fe1=Promise))(function(_0x4f7408,_0x5726d){function _0x4fe009(_0x3e66f9){try{_0x4bebaf(_0x27f085['next'](_0x3e66f9));}catch(_0x38599a){_0x5726d(_0x38599a);}}function _0x1492fb(_0x87e133){try{_0x4bebaf(_0x27f085['throw'](_0x87e133));}catch(_0x43b610){_0x5726d(_0x43b610);}}function _0x4bebaf(_0x160549){_0x160549['done']?_0x4f7408(_0x160549['value']):_0x169b9c(_0x160549['value'])['then'](_0x4fe009,_0x1492fb);}_0x4bebaf((_0x27f085=_0x27f085['apply'](_0x20bdfe,_0x1966ca||[]))['next']());});};class AdminClient{constructor(_0x177a12='https://admin.searchability.dev/'){var _0x50a565=new Fetch(_0x177a12);this['Accounts']=new AccountService(_0x50a565),this['Lists']=new ListService(_0x50a565),this['ApiKeys']=new ApiKeyService(_0x50a565);}}class AuthClient{constructor(_0x351495='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x351495);}['login'](_0x1079e8){return __awaiter(this,void 0,void 0,function*(){var _0x135813='login/'+_0x1079e8;try{const _0x1fa861=yield yield fetch(_0x135813);if(_0x1fa861['status']>0xc7&&_0x1fa861['status']<0x12c){const _0x2216c1=yield _0x1fa861['json']();return new SuccessfulAuthResponse(_0x2216c1);}const _0x6afcbd=yield _0x1fa861['json']();return new FailedAuthResponse(_0x6afcbd);}catch(_0x5bb2cf){if(_0x5bb2cf instanceof Error)return new FailedAuthResponse({'detail':_0x5bb2cf['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5bb2cf;}});}['refresh'](_0x1b3d0f){return __awaiter(this,void 0,void 0,function*(){var _0x1dfacb='refresh';try{const _0x14e66e=yield this['fetch']['post'](_0x1dfacb,_0x1b3d0f,null);if(_0x14e66e['status']>0xc7&&_0x14e66e['status']<0x12c){const _0x498579=yield _0x14e66e['json']();return new SuccessfulAuthResponse(_0x498579);}const _0x1c6d19=yield _0x14e66e['json']();return new FailedAuthResponse(_0x1c6d19);}catch(_0x1e7402){if(_0x1e7402 instanceof Error)return new FailedAuthResponse({'detail':_0x1e7402['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x1e7402;}});}}
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x50256d,_0x63e679,_0x389287,_0xa6de5){function _0x26eaf6(_0xc2bd50){return _0xc2bd50 instanceof _0x389287?_0xc2bd50:new _0x389287(function(_0x33b19e){_0x33b19e(_0xc2bd50);});}return new(_0x389287||(_0x389287=Promise))(function(_0x510d52,_0x1815a8){function _0x4036ab(_0x30a554){try{_0xb37dbe(_0xa6de5['next'](_0x30a554));}catch(_0xa0600d){_0x1815a8(_0xa0600d);}}function _0x50e174(_0x218d5b){try{_0xb37dbe(_0xa6de5['throw'](_0x218d5b));}catch(_0x35d012){_0x1815a8(_0x35d012);}}function _0xb37dbe(_0x2bde12){_0x2bde12['done']?_0x510d52(_0x2bde12['value']):_0x26eaf6(_0x2bde12['value'])['then'](_0x4036ab,_0x50e174);}_0xb37dbe((_0xa6de5=_0xa6de5['apply'](_0x50256d,_0x63e679||[]))['next']());});};class AdminClient{constructor(_0x4c7fad='https://admin.searchability.dev/'){var _0x7c5480=new Fetch(_0x4c7fad);this['Accounts']=new AccountService(_0x7c5480),this['Lists']=new ListService(_0x7c5480),this['ApiKeys']=new ApiKeyService(_0x7c5480);}}class AuthClient{constructor(_0x44f7ae='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x44f7ae);}['login'](_0x38f036){return __awaiter(this,void 0,void 0,function*(){var _0xfa8bfe='login/'+_0x38f036;try{const _0x570aed=yield yield fetch(_0xfa8bfe);if(_0x570aed['status']>0xc7&&_0x570aed['status']<0x12c){const _0x209e53=yield _0x570aed['json']();return new SuccessfulAuthResponse(_0x209e53);}const _0x5d8a0f=yield _0x570aed['json']();return new FailedAuthResponse(_0x5d8a0f);}catch(_0x13cdd4){if(_0x13cdd4 instanceof Error)return new FailedAuthResponse({'detail':_0x13cdd4['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x13cdd4;}});}['refresh'](_0x139ec1){return __awaiter(this,void 0,void 0,function*(){var _0x36a48d='refresh';try{const _0x1cac57=yield this['fetch']['post'](_0x36a48d,_0x139ec1,null);if(_0x1cac57['status']>0xc7&&_0x1cac57['status']<0x12c){const _0xbd093b=yield _0x1cac57['json']();return new SuccessfulAuthResponse(_0xbd093b);}const _0x834822=yield _0x1cac57['json']();return new FailedAuthResponse(_0x834822);}catch(_0x27bda8){if(_0x27bda8 instanceof Error)return new FailedAuthResponse({'detail':_0x27bda8['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x27bda8;}});}}
14
14
 
15
15
  export { AdminClient, AuthClient, TokenStatus, Tokens };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "description": "Searchability admin client.",
5
5
  "type": "module",
6
6
  "types": "./dist/types.d.ts",
@@ -1,15 +0,0 @@
1
- var TokenStatus;(function(_0x271677){_0x271677[_0x271677['Ok']=0x0]='Ok',_0x271677[_0x271677['Refresh']=0x1]='Refresh',_0x271677[_0x271677['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}['getStatus'](){if(Date['now']()<this['access_expires'])return TokenStatus['Ok'];if(Date['now']()<this['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
2
-
3
- class Response{constructor(_0x449166){this['isSuccess']=_0x449166;}}class SuccessfulAccountResponse extends Response{constructor(_0x5f3487){super(!![]),this['account']=_0x5f3487;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x26a7e3){super(![]),this['problem']=_0x26a7e3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x308beb){super(!![]),this['tokens']=_0x308beb;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x4cd9e6){super(![]),this['problem']=_0x4cd9e6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x3748ac){super(!![]),this['apiKey']=_0x3748ac;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x1fddf4){super(![]),this['problem']=_0x1fddf4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x40f07b){super(!![]),this['apiKeyValue']=_0x40f07b;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyValueResponse extends Response{constructor(_0x4e0d3d){super(![]),this['problem']=_0x4e0d3d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
-
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x43721e,_0xeb0157,_0xe1faf1,_0x423182){function _0x555064(_0x4ce3a1){return _0x4ce3a1 instanceof _0xe1faf1?_0x4ce3a1:new _0xe1faf1(function(_0x5cc00d){_0x5cc00d(_0x4ce3a1);});}return new(_0xe1faf1||(_0xe1faf1=Promise))(function(_0x4e0e58,_0x37e791){function _0x200c65(_0x367160){try{_0x440568(_0x423182['next'](_0x367160));}catch(_0x540369){_0x37e791(_0x540369);}}function _0x3de339(_0x264f04){try{_0x440568(_0x423182['throw'](_0x264f04));}catch(_0xbb292e){_0x37e791(_0xbb292e);}}function _0x440568(_0x1afc90){_0x1afc90['done']?_0x4e0e58(_0x1afc90['value']):_0x555064(_0x1afc90['value'])['then'](_0x200c65,_0x3de339);}_0x440568((_0x423182=_0x423182['apply'](_0x43721e,_0xeb0157||[]))['next']());});};class AccountService{constructor(_0xde888d){this['fetch']=_0xde888d;}['get'](_0x6bbb34,_0x50c3c3){return __awaiter$4(this,void 0,void 0,function*(){const _0x2f6001='Account/'+_0x6bbb34+'/',_0x33ed4a=yield this['fetch']['get'](_0x2f6001,_0x50c3c3);try{if(_0x33ed4a['status']>0xc7&&_0x33ed4a['status']<0x12c){const _0x4b7c68=yield _0x33ed4a['json']();return new SuccessfulAccountResponse(_0x4b7c68);}const _0x3585da=yield _0x33ed4a['json']();return new FailedAccountResponse(_0x3585da);}catch(_0x5e5d8d){if(_0x5e5d8d instanceof Error)return new FailedAccountResponse({'detail':_0x5e5d8d['message'],'title':_0x5e5d8d['name'],'status':0x1f4,'instance':'','type':''});throw _0x5e5d8d;}});}}
6
-
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x31c83c,_0x45ec0d,_0x533ece,_0x149421){function _0x52f8f7(_0x3e94dc){return _0x3e94dc instanceof _0x533ece?_0x3e94dc:new _0x533ece(function(_0x54e7ec){_0x54e7ec(_0x3e94dc);});}return new(_0x533ece||(_0x533ece=Promise))(function(_0x408fcc,_0x5ad6b9){function _0x4680cd(_0x5a5473){try{_0x28530d(_0x149421['next'](_0x5a5473));}catch(_0x176e56){_0x5ad6b9(_0x176e56);}}function _0x95029b(_0x234578){try{_0x28530d(_0x149421['throw'](_0x234578));}catch(_0x51c147){_0x5ad6b9(_0x51c147);}}function _0x28530d(_0x93f19c){_0x93f19c['done']?_0x408fcc(_0x93f19c['value']):_0x52f8f7(_0x93f19c['value'])['then'](_0x4680cd,_0x95029b);}_0x28530d((_0x149421=_0x149421['apply'](_0x31c83c,_0x45ec0d||[]))['next']());});};class ApiKeyService{constructor(_0x1035a0){this['fetch']=_0x1035a0;}['create'](_0x126c4e,_0x547340,_0x2722ec){return __awaiter$3(this,void 0,void 0,function*(){const _0x3175e3='api-key/create',_0x464d8d={'account_name':_0x126c4e,'api_key_name':_0x547340};try{const _0x2930cf=yield this['fetch']['post'](_0x3175e3,_0x2722ec,_0x464d8d);if(_0x2930cf['status']>0xc7&&_0x2930cf['status']<0x12c){const _0x239e0c=yield _0x2930cf['json']();return new SuccessfulApiKeyResponse(_0x239e0c);}const _0x4cb084=yield _0x2930cf['json']();return new FailedApiKeyResponse(_0x4cb084);}catch(_0x4dad9e){if(_0x4dad9e instanceof Error)return new FailedApiKeyResponse({'detail':_0x4dad9e['message'],'title':_0x4dad9e['name'],'status':0x1f4,'instance':'','type':''});throw _0x4dad9e;}});}['view'](_0x54f04f,_0x50c70f,_0x551d22){return __awaiter$3(this,void 0,void 0,function*(){const _0x5b4ec7='api-key/'+_0x54f04f+'/'+_0x50c70f;try{const _0x85dfe2=yield this['fetch']['get'](_0x5b4ec7,_0x551d22);if(_0x85dfe2['status']>0xc7&&_0x85dfe2['status']<0x12c){const _0x4b6a49=yield _0x85dfe2['json']();return new SuccessfulApiKeyValueResponse(_0x4b6a49);}const _0x43d0d6=yield _0x85dfe2['json']();return new FailedApiKeyValueResponse(_0x43d0d6);}catch(_0x1c7e43){if(_0x1c7e43 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x1c7e43['message'],'title':_0x1c7e43['name'],'status':0x1f4,'instance':'','type':''});throw _0x1c7e43;}});}}
8
-
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x5baed4,_0x453c3b,_0xf42cf2,_0x1014ec){function _0x9884e1(_0x33079e){return _0x33079e instanceof _0xf42cf2?_0x33079e:new _0xf42cf2(function(_0x57bd4a){_0x57bd4a(_0x33079e);});}return new(_0xf42cf2||(_0xf42cf2=Promise))(function(_0x2b3296,_0x313db7){function _0x217c2d(_0x24792b){try{_0x4e0270(_0x1014ec['next'](_0x24792b));}catch(_0x30d6f9){_0x313db7(_0x30d6f9);}}function _0x26b2c6(_0x19d9c8){try{_0x4e0270(_0x1014ec['throw'](_0x19d9c8));}catch(_0x3ebee7){_0x313db7(_0x3ebee7);}}function _0x4e0270(_0x590990){_0x590990['done']?_0x2b3296(_0x590990['value']):_0x9884e1(_0x590990['value'])['then'](_0x217c2d,_0x26b2c6);}_0x4e0270((_0x1014ec=_0x1014ec['apply'](_0x5baed4,_0x453c3b||[]))['next']());});};class ListService{constructor(_0x4c8f13){this['fetch']=_0x4c8f13;}['add'](_0x52bf4d,_0x67c9a5,_0x38186f){return __awaiter$2(this,void 0,void 0,function*(){const _0x24d478='List',_0x483210={'account_name':_0x52bf4d,'list_name':_0x67c9a5};try{const _0x39e41c=yield this['fetch']['post'](_0x24d478,_0x38186f,_0x483210);if(_0x39e41c['status']>0xc7&&_0x39e41c['status']<0x12c){const _0x52a868=yield _0x39e41c['json']();return new SuccessfulAccountResponse(_0x52a868);}const _0x1128cd=yield _0x39e41c['json']();return new FailedAccountResponse(_0x1128cd);}catch(_0x3b6666){if(_0x3b6666 instanceof Error)return new FailedAccountResponse({'detail':_0x3b6666['message'],'title':_0x3b6666['name'],'status':0x1f4,'instance':'','type':''});throw _0x3b6666;}});}['remove'](_0x321521,_0xa2d8d4,_0x231e22){return __awaiter$2(this,void 0,void 0,function*(){const _0x1d70de='List/'+_0x321521+'/'+_0xa2d8d4,_0x57d6be=yield this['fetch']['delete'](_0x1d70de,_0x231e22);try{if(_0x57d6be['status']>0xc7&&_0x57d6be['status']<0x12c){const _0x1b1b67=yield _0x57d6be['json']();return new SuccessfulAccountResponse(_0x1b1b67);}const _0x34890f=yield _0x57d6be['json']();return new FailedAccountResponse(_0x34890f);}catch(_0x574da0){if(_0x574da0 instanceof Error)return new FailedAccountResponse({'detail':_0x574da0['message'],'title':_0x574da0['name'],'status':0x1f4,'instance':'','type':''});throw _0x574da0;}});}}
10
-
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x20b2b1,_0xae281,_0x47d6f5,_0x2406fd){function _0x196057(_0x4057f3){return _0x4057f3 instanceof _0x47d6f5?_0x4057f3:new _0x47d6f5(function(_0x3e86bb){_0x3e86bb(_0x4057f3);});}return new(_0x47d6f5||(_0x47d6f5=Promise))(function(_0x5297d6,_0x7bcd9c){function _0x35076b(_0x555565){try{_0x183b6(_0x2406fd['next'](_0x555565));}catch(_0xa70f1){_0x7bcd9c(_0xa70f1);}}function _0x3929d3(_0x4e37d6){try{_0x183b6(_0x2406fd['throw'](_0x4e37d6));}catch(_0x5c4510){_0x7bcd9c(_0x5c4510);}}function _0x183b6(_0x116749){_0x116749['done']?_0x5297d6(_0x116749['value']):_0x196057(_0x116749['value'])['then'](_0x35076b,_0x3929d3);}_0x183b6((_0x2406fd=_0x2406fd['apply'](_0x20b2b1,_0xae281||[]))['next']());});};class Fetch{constructor(_0x19c11a){this['baseUri']=_0x19c11a,this['getUrl']=_0x5af303=>{return _0x5af303['startsWith']('/')&&(_0x5af303=_0x5af303['replace']('/','')),''+this['baseUri']+_0x5af303;},!_0x19c11a['endsWith']('/')&&(_0x19c11a=_0x19c11a+'/');}['get'](_0x248382,_0x250255){return __awaiter$1(this,void 0,void 0,function*(){const _0x698062=this['getUrl'](_0x248382);return yield fetch(_0x698062,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x250255}});});}['post'](_0x101c03,_0x13c7c1,_0x434e7){return __awaiter$1(this,void 0,void 0,function*(){const _0x4caa09=this['getUrl'](_0x101c03);return yield fetch(_0x4caa09,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x13c7c1},'body':_0x434e7?JSON['stringify'](_0x434e7):null});});}['put'](_0x339d1e,_0x1e16d0,_0x2b649a){return __awaiter$1(this,void 0,void 0,function*(){const _0x3dd678=this['getUrl'](_0x339d1e);return yield fetch(_0x3dd678,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1e16d0},'body':_0x2b649a?JSON['stringify'](_0x2b649a):null});});}['delete'](_0x54038e,_0x4437d7){return __awaiter$1(this,void 0,void 0,function*(){const _0x32fa73=this['getUrl'](_0x54038e);return yield fetch(_0x32fa73,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4437d7}});});}}
12
-
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x581c55,_0x49d3aa,_0x1803e2,_0xe30fbe){function _0x2fbc32(_0x3b074c){return _0x3b074c instanceof _0x1803e2?_0x3b074c:new _0x1803e2(function(_0x266048){_0x266048(_0x3b074c);});}return new(_0x1803e2||(_0x1803e2=Promise))(function(_0x3a3f4d,_0x1a36a4){function _0x576113(_0x1a6d44){try{_0x6c7d8b(_0xe30fbe['next'](_0x1a6d44));}catch(_0xc43b97){_0x1a36a4(_0xc43b97);}}function _0x3c7a44(_0x40de85){try{_0x6c7d8b(_0xe30fbe['throw'](_0x40de85));}catch(_0x3b27c7){_0x1a36a4(_0x3b27c7);}}function _0x6c7d8b(_0x279996){_0x279996['done']?_0x3a3f4d(_0x279996['value']):_0x2fbc32(_0x279996['value'])['then'](_0x576113,_0x3c7a44);}_0x6c7d8b((_0xe30fbe=_0xe30fbe['apply'](_0x581c55,_0x49d3aa||[]))['next']());});};class AdminClient{constructor(_0x356537='https://admin.searchability.dev/'){var _0x5c930e=new Fetch(_0x356537);this['Accounts']=new AccountService(_0x5c930e),this['Lists']=new ListService(_0x5c930e),this['ApiKeys']=new ApiKeyService(_0x5c930e);}}class AuthClient{constructor(_0x5fcf17='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x5fcf17);}['login'](_0x5d355a){return __awaiter(this,void 0,void 0,function*(){var _0x27dacd='login/'+_0x5d355a;try{const _0x2d41fe=yield yield fetch(_0x27dacd);if(_0x2d41fe['status']>0xc7&&_0x2d41fe['status']<0x12c){const _0x3faba8=yield _0x2d41fe['json']();return new SuccessfulAuthResponse(_0x3faba8);}const _0x52050e=yield _0x2d41fe['json']();return new FailedAuthResponse(_0x52050e);}catch(_0x20d490){if(_0x20d490 instanceof Error)return new FailedAuthResponse({'detail':_0x20d490['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x20d490;}});}['refresh'](_0x40719f){return __awaiter(this,void 0,void 0,function*(){var _0x4cb0b5='refresh';try{const _0x6ef65a=yield this['fetch']['post'](_0x4cb0b5,_0x40719f,null);if(_0x6ef65a['status']>0xc7&&_0x6ef65a['status']<0x12c){const _0x522475=yield _0x6ef65a['json']();return new SuccessfulAuthResponse(_0x522475);}const _0x41da34=yield _0x6ef65a['json']();return new FailedAuthResponse(_0x41da34);}catch(_0x268001){if(_0x268001 instanceof Error)return new FailedAuthResponse({'detail':_0x268001['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x268001;}});}}
14
-
15
- export { AdminClient, AuthClient, TokenStatus, Tokens };