@searchability/admin-client 0.0.20 → 0.0.22

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(_0x152f77,_0x3f603d,_0x5347f7,_0x1f29c1){function _0x39b537(_0x5f27f8){return _0x5f27f8 instanceof _0x5347f7?_0x5f27f8:new _0x5347f7(function(_0x48f099){_0x48f099(_0x5f27f8);});}return new(_0x5347f7||(_0x5347f7=Promise))(function(_0x4ae349,_0x15d562){function _0x1ace7d(_0xebd144){try{_0x58cf9e(_0x1f29c1['next'](_0xebd144));}catch(_0x1d265b){_0x15d562(_0x1d265b);}}function _0x35c795(_0x50c0d1){try{_0x58cf9e(_0x1f29c1['throw'](_0x50c0d1));}catch(_0x3724d8){_0x15d562(_0x3724d8);}}function _0x58cf9e(_0x38bc71){_0x38bc71['done']?_0x4ae349(_0x38bc71['value']):_0x39b537(_0x38bc71['value'])['then'](_0x1ace7d,_0x35c795);}_0x58cf9e((_0x1f29c1=_0x1f29c1['apply'](_0x152f77,_0x3f603d||[]))['next']());});};class TokenManager{constructor(_0x3fb73b){this['authClient']=_0x3fb73b;}['getOrRefreshTokens'](_0x5de7a8){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0x5de7a8['access_expires'])return new SuccessfulAuthResponse(_0x5de7a8);if(Date['now']()>_0x5de7a8['refresh_expires'])return yield this['authClient']['refresh'](_0x5de7a8['refresh_token']);return new FailedAuthResponse({'detail':'Refresh\x20token\x20expired','title':'','status':0x194,'instance':'','type':''});});}}
2
+
3
+ class Response{constructor(_0x2eda07){this['isSuccess']=_0x2eda07;}}class SuccessfulAccountResponse extends Response{constructor(_0x12976f){super(!![]),this['account']=_0x12976f;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x4ba4e5){super(![]),this['problem']=_0x4ba4e5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x479e96){super(!![]),this['tokens']=_0x479e96;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x3214bc){super(![]),this['problem']=_0x3214bc;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x1d9d77){super(!![]),this['apiKey']=_0x1d9d77;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4e8f33){super(![]),this['problem']=_0x4e8f33;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
+
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x3c473f,_0x3ed1e9,_0x25cb6e,_0xac1063){function _0x3cd3cd(_0x4d8078){return _0x4d8078 instanceof _0x25cb6e?_0x4d8078:new _0x25cb6e(function(_0xc95c66){_0xc95c66(_0x4d8078);});}return new(_0x25cb6e||(_0x25cb6e=Promise))(function(_0x261928,_0x4f497e){function _0x5bd94f(_0x2f9704){try{_0x43f880(_0xac1063['next'](_0x2f9704));}catch(_0x195550){_0x4f497e(_0x195550);}}function _0x111d91(_0x5426c8){try{_0x43f880(_0xac1063['throw'](_0x5426c8));}catch(_0xa0bdf0){_0x4f497e(_0xa0bdf0);}}function _0x43f880(_0x21b9b1){_0x21b9b1['done']?_0x261928(_0x21b9b1['value']):_0x3cd3cd(_0x21b9b1['value'])['then'](_0x5bd94f,_0x111d91);}_0x43f880((_0xac1063=_0xac1063['apply'](_0x3c473f,_0x3ed1e9||[]))['next']());});};class AccountService{constructor(_0x1675d9){this['fetch']=_0x1675d9;}['get'](_0x1bb82f,_0x4e5f30){return __awaiter$4(this,void 0,void 0,function*(){const _0x164396='Account/'+_0x1bb82f+'/',_0x3807c0=yield this['fetch']['get'](_0x164396,_0x4e5f30);try{if(_0x3807c0['status']>0xc7&&_0x3807c0['status']<0x12c){const _0x3f28ca=yield _0x3807c0['json']();return new SuccessfulAccountResponse(_0x3f28ca);}const _0x1b849c=yield _0x3807c0['json']();return new FailedAccountResponse(_0x1b849c);}catch(_0x5584fb){if(_0x5584fb instanceof Error)return new FailedAccountResponse({'detail':_0x5584fb['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5584fb;}});}}
6
+
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x16d1bb,_0x4d1e4e,_0x48aca3,_0x2cb57e){function _0x546196(_0x596770){return _0x596770 instanceof _0x48aca3?_0x596770:new _0x48aca3(function(_0x6b0a0){_0x6b0a0(_0x596770);});}return new(_0x48aca3||(_0x48aca3=Promise))(function(_0x2c2a22,_0x101abd){function _0x270027(_0x5c17f2){try{_0x2fe628(_0x2cb57e['next'](_0x5c17f2));}catch(_0x508972){_0x101abd(_0x508972);}}function _0x4b2a1c(_0xbdfcd){try{_0x2fe628(_0x2cb57e['throw'](_0xbdfcd));}catch(_0x4e3857){_0x101abd(_0x4e3857);}}function _0x2fe628(_0x43043b){_0x43043b['done']?_0x2c2a22(_0x43043b['value']):_0x546196(_0x43043b['value'])['then'](_0x270027,_0x4b2a1c);}_0x2fe628((_0x2cb57e=_0x2cb57e['apply'](_0x16d1bb,_0x4d1e4e||[]))['next']());});};class ApiKeyService{constructor(_0x2ee071){this['fetch']=_0x2ee071;}['create'](_0x42ee0f,_0x45ab5f,_0x2d6610){return __awaiter$3(this,void 0,void 0,function*(){const _0x26f5e0='api-key/create',_0x48faf6={'account_name':_0x42ee0f,'name':_0x45ab5f};try{const _0x3e633b=yield this['fetch']['post'](_0x26f5e0,_0x2d6610,_0x48faf6);if(_0x3e633b['status']>0xc7&&_0x3e633b['status']<0x12c){const _0xb80240=yield _0x3e633b['json']();return new SuccessfulApiKeyResponse(_0xb80240);}const _0x569c88=yield _0x3e633b['json']();return new FailedApiKeyResponse(_0x569c88);}catch(_0x5e00c3){if(_0x5e00c3 instanceof Error)return new FailedApiKeyResponse({'detail':_0x5e00c3['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5e00c3;}});}}
8
+
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x1b2dc2,_0x53156a,_0x424565,_0x8dd3ab){function _0xfca9e2(_0x32dde6){return _0x32dde6 instanceof _0x424565?_0x32dde6:new _0x424565(function(_0x481802){_0x481802(_0x32dde6);});}return new(_0x424565||(_0x424565=Promise))(function(_0x374297,_0x1ec0fb){function _0x282254(_0x26417a){try{_0xdcba79(_0x8dd3ab['next'](_0x26417a));}catch(_0x3c7d1e){_0x1ec0fb(_0x3c7d1e);}}function _0x1d3281(_0xb0dd35){try{_0xdcba79(_0x8dd3ab['throw'](_0xb0dd35));}catch(_0x8243a2){_0x1ec0fb(_0x8243a2);}}function _0xdcba79(_0x21525e){_0x21525e['done']?_0x374297(_0x21525e['value']):_0xfca9e2(_0x21525e['value'])['then'](_0x282254,_0x1d3281);}_0xdcba79((_0x8dd3ab=_0x8dd3ab['apply'](_0x1b2dc2,_0x53156a||[]))['next']());});};class ListService{constructor(_0x1cc06f){this['fetch']=_0x1cc06f;}['add'](_0x231582,_0x464b6c,_0x382544){return __awaiter$2(this,void 0,void 0,function*(){const _0x41abf6='List',_0x1b6635={'account_name':_0x231582,'list_name':_0x464b6c};try{const _0x1d04f7=yield this['fetch']['post'](_0x41abf6,_0x382544,_0x1b6635);if(_0x1d04f7['status']>0xc7&&_0x1d04f7['status']<0x12c){const _0x2d2545=yield _0x1d04f7['json']();return new SuccessfulAccountResponse(_0x2d2545);}const _0x47774f=yield _0x1d04f7['json']();return new FailedAccountResponse(_0x47774f);}catch(_0x5e9d40){if(_0x5e9d40 instanceof Error)return new FailedAccountResponse({'detail':_0x5e9d40['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5e9d40;}});}['remove'](_0xc8fd1f,_0xdaedc5,_0x43f791){return __awaiter$2(this,void 0,void 0,function*(){const _0x26a090='List/'+_0xc8fd1f+'/'+_0xdaedc5,_0x3c0f6f=yield this['fetch']['delete'](_0x26a090,_0x43f791);try{if(_0x3c0f6f['status']>0xc7&&_0x3c0f6f['status']<0x12c){const _0x1c1bbf=yield _0x3c0f6f['json']();return new SuccessfulAccountResponse(_0x1c1bbf);}const _0x34af11=yield _0x3c0f6f['json']();return new FailedAccountResponse(_0x34af11);}catch(_0x39eb71){if(_0x39eb71 instanceof Error)return new FailedAccountResponse({'detail':_0x39eb71['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x39eb71;}});}}
10
+
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x4fc921,_0x25e18d,_0x59eee9,_0x558e55){function _0x14797a(_0x3a6117){return _0x3a6117 instanceof _0x59eee9?_0x3a6117:new _0x59eee9(function(_0x301345){_0x301345(_0x3a6117);});}return new(_0x59eee9||(_0x59eee9=Promise))(function(_0x52980a,_0x5c79bd){function _0x20ef9e(_0x515d73){try{_0x23d990(_0x558e55['next'](_0x515d73));}catch(_0xacdb74){_0x5c79bd(_0xacdb74);}}function _0x376e04(_0x558dad){try{_0x23d990(_0x558e55['throw'](_0x558dad));}catch(_0x533fba){_0x5c79bd(_0x533fba);}}function _0x23d990(_0x9761ac){_0x9761ac['done']?_0x52980a(_0x9761ac['value']):_0x14797a(_0x9761ac['value'])['then'](_0x20ef9e,_0x376e04);}_0x23d990((_0x558e55=_0x558e55['apply'](_0x4fc921,_0x25e18d||[]))['next']());});};class Fetch{constructor(_0xe5d33b){this['baseUri']=_0xe5d33b,this['getUrl']=_0x4c233a=>{return _0x4c233a['startsWith']('/')&&(_0x4c233a=_0x4c233a['replace']('/','')),''+this['baseUri']+_0x4c233a;},!_0xe5d33b['endsWith']('/')&&(_0xe5d33b=_0xe5d33b+'/');}['get'](_0xcefded,_0x27df7d){return __awaiter$1(this,void 0,void 0,function*(){const _0x417725=this['getUrl'](_0xcefded);return yield fetch(_0x417725,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x27df7d}});});}['post'](_0x1fa75d,_0x56713a,_0x5307a5){return __awaiter$1(this,void 0,void 0,function*(){const _0x1022d4=this['getUrl'](_0x1fa75d);return yield fetch(_0x1022d4,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x56713a},'body':_0x5307a5?JSON['stringify'](_0x5307a5):null});});}['put'](_0x3d4531,_0x20a266,_0xc79c46){return __awaiter$1(this,void 0,void 0,function*(){const _0x57734c=this['getUrl'](_0x3d4531);return yield fetch(_0x57734c,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x20a266},'body':_0xc79c46?JSON['stringify'](_0xc79c46):null});});}['delete'](_0x2353d5,_0x87e6ca){return __awaiter$1(this,void 0,void 0,function*(){const _0x42893a=this['getUrl'](_0x2353d5);return yield fetch(_0x42893a,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x87e6ca}});});}}
12
+
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x19eef1,_0x1dda68,_0x1311cd,_0x4d4c19){function _0x1309be(_0x53bb29){return _0x53bb29 instanceof _0x1311cd?_0x53bb29:new _0x1311cd(function(_0x3bedb8){_0x3bedb8(_0x53bb29);});}return new(_0x1311cd||(_0x1311cd=Promise))(function(_0x5e005f,_0x2cee13){function _0x36240c(_0x1200da){try{_0x666ebd(_0x4d4c19['next'](_0x1200da));}catch(_0xb544ac){_0x2cee13(_0xb544ac);}}function _0x25daf8(_0x2be4a9){try{_0x666ebd(_0x4d4c19['throw'](_0x2be4a9));}catch(_0x4e20e8){_0x2cee13(_0x4e20e8);}}function _0x666ebd(_0x53b88d){_0x53b88d['done']?_0x5e005f(_0x53b88d['value']):_0x1309be(_0x53b88d['value'])['then'](_0x36240c,_0x25daf8);}_0x666ebd((_0x4d4c19=_0x4d4c19['apply'](_0x19eef1,_0x1dda68||[]))['next']());});};class AdminClient{constructor(_0x30285b='https://admin.searchability.dev/'){var _0x561aaa=new Fetch(_0x30285b);this['Accounts']=new AccountService(_0x561aaa),this['Lists']=new ListService(_0x561aaa),this['ApiKeys']=new ApiKeyService(_0x561aaa);}}class AuthClient{constructor(_0x4bbf7d='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x4bbf7d);}['login'](_0x24d3dd){return __awaiter(this,void 0,void 0,function*(){var _0x18aff0='login/'+_0x24d3dd;try{const _0x7c1015=yield yield fetch(_0x18aff0);if(_0x7c1015['status']>0xc7&&_0x7c1015['status']<0x12c){const _0x4fab26=yield _0x7c1015['json']();return new SuccessfulAuthResponse(_0x4fab26);}const _0x529e35=yield _0x7c1015['json']();return new FailedAuthResponse(_0x529e35);}catch(_0x55d616){if(_0x55d616 instanceof Error)return new FailedAuthResponse({'detail':_0x55d616['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x55d616;}});}['refresh'](_0x2f0bee){return __awaiter(this,void 0,void 0,function*(){var _0x9143e3='refresh';try{const _0x2b761c=yield this['fetch']['post'](_0x9143e3,_0x2f0bee,null);if(_0x2b761c['status']>0xc7&&_0x2b761c['status']<0x12c){const _0x404564=yield _0x2b761c['json']();return new SuccessfulAuthResponse(_0x404564);}const _0x34f0e6=yield _0x2b761c['json']();return new FailedAuthResponse(_0x34f0e6);}catch(_0x32666c){if(_0x32666c instanceof Error)return new FailedAuthResponse({'detail':_0x32666c['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x32666c;}});}}
14
+
15
+ export { AdminClient, AuthClient, TokenManager };
@@ -1,18 +1,19 @@
1
1
  'use strict';
2
2
 
3
- undefined&&undefined['__awaiter']||function(_0x315a9e,_0xe24ed2,_0xbacc9,_0x214989){function _0x59cb70(_0x3e5a52){return _0x3e5a52 instanceof _0xbacc9?_0x3e5a52:new _0xbacc9(function(_0x375fce){_0x375fce(_0x3e5a52);});}return new(_0xbacc9||(_0xbacc9=Promise))(function(_0x135fa0,_0x553a32){function _0x5db6ed(_0x30f8d9){try{_0x25b5aa(_0x214989['next'](_0x30f8d9));}catch(_0x52ab1f){_0x553a32(_0x52ab1f);}}function _0x18f595(_0x58c48f){try{_0x25b5aa(_0x214989['throw'](_0x58c48f));}catch(_0x297239){_0x553a32(_0x297239);}}function _0x25b5aa(_0x119b78){_0x119b78['done']?_0x135fa0(_0x119b78['value']):_0x59cb70(_0x119b78['value'])['then'](_0x5db6ed,_0x18f595);}_0x25b5aa((_0x214989=_0x214989['apply'](_0x315a9e,_0xe24ed2||[]))['next']());});};
3
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x2963d,_0x1596d0,_0x77b591,_0x3f30f7){function _0x4afc0a(_0x194356){return _0x194356 instanceof _0x77b591?_0x194356:new _0x77b591(function(_0x37ab00){_0x37ab00(_0x194356);});}return new(_0x77b591||(_0x77b591=Promise))(function(_0x2c7504,_0x15beaf){function _0x2a3483(_0x56268d){try{_0x29d58e(_0x3f30f7['next'](_0x56268d));}catch(_0x4e84f0){_0x15beaf(_0x4e84f0);}}function _0x121875(_0x495ee0){try{_0x29d58e(_0x3f30f7['throw'](_0x495ee0));}catch(_0xb1f217){_0x15beaf(_0xb1f217);}}function _0x29d58e(_0x327b0e){_0x327b0e['done']?_0x2c7504(_0x327b0e['value']):_0x4afc0a(_0x327b0e['value'])['then'](_0x2a3483,_0x121875);}_0x29d58e((_0x3f30f7=_0x3f30f7['apply'](_0x2963d,_0x1596d0||[]))['next']());});};class TokenManager{constructor(_0x1daea5){this['authClient']=_0x1daea5;}['getOrRefreshTokens'](_0x448a51){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0x448a51['access_expires'])return new SuccessfulAuthResponse(_0x448a51);if(Date['now']()>_0x448a51['refresh_expires'])return yield this['authClient']['refresh'](_0x448a51['refresh_token']);return new FailedAuthResponse({'detail':'Refresh\x20token\x20expired','title':'','status':0x194,'instance':'','type':''});});}}
4
4
 
5
- class Response{constructor(_0x4755bf){this['isSuccess']=_0x4755bf;}}class SuccessfulAccountResponse extends Response{constructor(_0xa205db){super(!![]),this['account']=_0xa205db;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0xcac449){super(![]),this['problem']=_0xcac449;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x1b3d02){super(!![]),this['tokens']=_0x1b3d02;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x1e2db2){super(![]),this['problem']=_0x1e2db2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x5144f4){super(!![]),this['apiKeys']=_0x5144f4;}['toSuccess'](){return this['apiKeys'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x8dd2be){super(![]),this['problem']=_0x8dd2be;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
5
+ class Response{constructor(_0x42a1f0){this['isSuccess']=_0x42a1f0;}}class SuccessfulAccountResponse extends Response{constructor(_0x3b5e43){super(!![]),this['account']=_0x3b5e43;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x3bfd46){super(![]),this['problem']=_0x3bfd46;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x242d37){super(!![]),this['tokens']=_0x242d37;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x303d43){super(![]),this['problem']=_0x303d43;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x5b7685){super(!![]),this['apiKey']=_0x5b7685;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x5644e5){super(![]),this['problem']=_0x5644e5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
6
6
 
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x531c8f,_0x3695b7,_0x5b3c48,_0x3e3b93){function _0x38a47d(_0x34e610){return _0x34e610 instanceof _0x5b3c48?_0x34e610:new _0x5b3c48(function(_0x2306e2){_0x2306e2(_0x34e610);});}return new(_0x5b3c48||(_0x5b3c48=Promise))(function(_0x4950c1,_0x616cc8){function _0x25a27d(_0x3a22de){try{_0x227918(_0x3e3b93['next'](_0x3a22de));}catch(_0x20f1f7){_0x616cc8(_0x20f1f7);}}function _0x47b968(_0x2de341){try{_0x227918(_0x3e3b93['throw'](_0x2de341));}catch(_0x114eae){_0x616cc8(_0x114eae);}}function _0x227918(_0x187c42){_0x187c42['done']?_0x4950c1(_0x187c42['value']):_0x38a47d(_0x187c42['value'])['then'](_0x25a27d,_0x47b968);}_0x227918((_0x3e3b93=_0x3e3b93['apply'](_0x531c8f,_0x3695b7||[]))['next']());});};class AccountService{constructor(_0x280191){this['fetch']=_0x280191;}['get'](_0x5005ca,_0x264537){return __awaiter$4(this,void 0,void 0,function*(){const _0x1b4a8c='Account/'+_0x5005ca+'/',_0x15401f=yield this['fetch']['get'](_0x1b4a8c,_0x264537);try{if(_0x15401f['status']>0xc7&&_0x15401f['status']<0x12c){const _0x539838=yield _0x15401f['json']();return new SuccessfulAccountResponse(_0x539838);}const _0x27c998=yield _0x15401f['json']();return new FailedAccountResponse(_0x27c998);}catch(_0x331ea8){if(_0x331ea8 instanceof Error)return new FailedAccountResponse({'detail':_0x331ea8['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x331ea8;}});}}
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x1f6b5c,_0x2ca14a,_0x8578bc,_0x4ff2e6){function _0x5dbdf9(_0x9ce6b0){return _0x9ce6b0 instanceof _0x8578bc?_0x9ce6b0:new _0x8578bc(function(_0x4b3eb5){_0x4b3eb5(_0x9ce6b0);});}return new(_0x8578bc||(_0x8578bc=Promise))(function(_0x242551,_0x1b1a53){function _0x1937be(_0x394b76){try{_0x50c891(_0x4ff2e6['next'](_0x394b76));}catch(_0x5866b7){_0x1b1a53(_0x5866b7);}}function _0x18018b(_0x4e752b){try{_0x50c891(_0x4ff2e6['throw'](_0x4e752b));}catch(_0x35fdb0){_0x1b1a53(_0x35fdb0);}}function _0x50c891(_0x32670a){_0x32670a['done']?_0x242551(_0x32670a['value']):_0x5dbdf9(_0x32670a['value'])['then'](_0x1937be,_0x18018b);}_0x50c891((_0x4ff2e6=_0x4ff2e6['apply'](_0x1f6b5c,_0x2ca14a||[]))['next']());});};class AccountService{constructor(_0xb28274){this['fetch']=_0xb28274;}['get'](_0x2d0f37,_0x13e3ae){return __awaiter$4(this,void 0,void 0,function*(){const _0x4a1f29='Account/'+_0x2d0f37+'/',_0x24d81e=yield this['fetch']['get'](_0x4a1f29,_0x13e3ae);try{if(_0x24d81e['status']>0xc7&&_0x24d81e['status']<0x12c){const _0x4572b1=yield _0x24d81e['json']();return new SuccessfulAccountResponse(_0x4572b1);}const _0x51e694=yield _0x24d81e['json']();return new FailedAccountResponse(_0x51e694);}catch(_0x3dbf93){if(_0x3dbf93 instanceof Error)return new FailedAccountResponse({'detail':_0x3dbf93['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3dbf93;}});}}
8
8
 
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x6ff6e6,_0x2eca36,_0x4d7c3c,_0x4c0fff){function _0x12f909(_0x4e2667){return _0x4e2667 instanceof _0x4d7c3c?_0x4e2667:new _0x4d7c3c(function(_0x54af6a){_0x54af6a(_0x4e2667);});}return new(_0x4d7c3c||(_0x4d7c3c=Promise))(function(_0x44d986,_0x589ed3){function _0xd6088e(_0x1eb9c3){try{_0x47c73b(_0x4c0fff['next'](_0x1eb9c3));}catch(_0x2ac3e9){_0x589ed3(_0x2ac3e9);}}function _0x168b81(_0x416fad){try{_0x47c73b(_0x4c0fff['throw'](_0x416fad));}catch(_0x22ae52){_0x589ed3(_0x22ae52);}}function _0x47c73b(_0x572af1){_0x572af1['done']?_0x44d986(_0x572af1['value']):_0x12f909(_0x572af1['value'])['then'](_0xd6088e,_0x168b81);}_0x47c73b((_0x4c0fff=_0x4c0fff['apply'](_0x6ff6e6,_0x2eca36||[]))['next']());});};class ApiKeyService{constructor(_0xd55e7e){this['fetch']=_0xd55e7e;}['create'](_0x24f7d6,_0x5dcbeb,_0x426c89){return __awaiter$3(this,void 0,void 0,function*(){const _0x701fa4='ApiKey/Create',_0x317325={'account_name':_0x24f7d6,'name':_0x5dcbeb};try{const _0x30ac88=yield this['fetch']['post'](_0x701fa4,_0x426c89,_0x317325);if(_0x30ac88['status']>0xc7&&_0x30ac88['status']<0x12c){const _0x3cafa7=yield _0x30ac88['json']();return new SuccessfulApiKeyResponse(_0x3cafa7);}const _0x9f540b=yield _0x30ac88['json']();return new FailedApiKeyResponse(_0x9f540b);}catch(_0x13fbe5){if(_0x13fbe5 instanceof Error)return new FailedApiKeyResponse({'detail':_0x13fbe5['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x13fbe5;}});}}
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x169fc9,_0x2912b5,_0x2e1f6b,_0x3a0e33){function _0x366b2b(_0x58e1e5){return _0x58e1e5 instanceof _0x2e1f6b?_0x58e1e5:new _0x2e1f6b(function(_0x377292){_0x377292(_0x58e1e5);});}return new(_0x2e1f6b||(_0x2e1f6b=Promise))(function(_0x14eb42,_0x32db15){function _0x131d0c(_0x3690a2){try{_0x2d1022(_0x3a0e33['next'](_0x3690a2));}catch(_0x37079f){_0x32db15(_0x37079f);}}function _0x27117b(_0x3a8e82){try{_0x2d1022(_0x3a0e33['throw'](_0x3a8e82));}catch(_0x1dc1d2){_0x32db15(_0x1dc1d2);}}function _0x2d1022(_0x1c31e3){_0x1c31e3['done']?_0x14eb42(_0x1c31e3['value']):_0x366b2b(_0x1c31e3['value'])['then'](_0x131d0c,_0x27117b);}_0x2d1022((_0x3a0e33=_0x3a0e33['apply'](_0x169fc9,_0x2912b5||[]))['next']());});};class ApiKeyService{constructor(_0x21d02a){this['fetch']=_0x21d02a;}['create'](_0x3ec22f,_0x5ee1cd,_0x1f431a){return __awaiter$3(this,void 0,void 0,function*(){const _0x2a0b38='api-key/create',_0xbf2398={'account_name':_0x3ec22f,'name':_0x5ee1cd};try{const _0xe1230c=yield this['fetch']['post'](_0x2a0b38,_0x1f431a,_0xbf2398);if(_0xe1230c['status']>0xc7&&_0xe1230c['status']<0x12c){const _0x5f1992=yield _0xe1230c['json']();return new SuccessfulApiKeyResponse(_0x5f1992);}const _0xad8af3=yield _0xe1230c['json']();return new FailedApiKeyResponse(_0xad8af3);}catch(_0x5beaa8){if(_0x5beaa8 instanceof Error)return new FailedApiKeyResponse({'detail':_0x5beaa8['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5beaa8;}});}}
10
10
 
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x1e890b,_0x2c7cfd,_0x2dcac4,_0x290195){function _0x29f073(_0x4b66ef){return _0x4b66ef instanceof _0x2dcac4?_0x4b66ef:new _0x2dcac4(function(_0xe617db){_0xe617db(_0x4b66ef);});}return new(_0x2dcac4||(_0x2dcac4=Promise))(function(_0x154f8b,_0x2e1ccb){function _0x3d972a(_0x1e3e4a){try{_0x249bd6(_0x290195['next'](_0x1e3e4a));}catch(_0x5bbedd){_0x2e1ccb(_0x5bbedd);}}function _0x1c5c81(_0x15cbc1){try{_0x249bd6(_0x290195['throw'](_0x15cbc1));}catch(_0x32932f){_0x2e1ccb(_0x32932f);}}function _0x249bd6(_0x1ba01f){_0x1ba01f['done']?_0x154f8b(_0x1ba01f['value']):_0x29f073(_0x1ba01f['value'])['then'](_0x3d972a,_0x1c5c81);}_0x249bd6((_0x290195=_0x290195['apply'](_0x1e890b,_0x2c7cfd||[]))['next']());});};class ListService{constructor(_0x203d67){this['fetch']=_0x203d67;}['add'](_0x3fb2c9,_0x1c1de2,_0x3c3708){return __awaiter$2(this,void 0,void 0,function*(){const _0x198887='List',_0x2c3b62={'account_name':_0x3fb2c9,'list_name':_0x1c1de2};try{const _0x407c69=yield this['fetch']['post'](_0x198887,_0x3c3708,_0x2c3b62);if(_0x407c69['status']>0xc7&&_0x407c69['status']<0x12c){const _0x35f49d=yield _0x407c69['json']();return new SuccessfulAccountResponse(_0x35f49d);}const _0xd83fee=yield _0x407c69['json']();return new FailedAccountResponse(_0xd83fee);}catch(_0x9bd929){if(_0x9bd929 instanceof Error)return new FailedAccountResponse({'detail':_0x9bd929['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x9bd929;}});}['remove'](_0x3a3f47,_0x1b534c,_0x52e782){return __awaiter$2(this,void 0,void 0,function*(){const _0x5c7f44='List/'+_0x3a3f47+'/'+_0x1b534c,_0x3ad30b=yield this['fetch']['delete'](_0x5c7f44,_0x52e782);try{if(_0x3ad30b['status']>0xc7&&_0x3ad30b['status']<0x12c){const _0x1875db=yield _0x3ad30b['json']();return new SuccessfulAccountResponse(_0x1875db);}const _0xeb2dda=yield _0x3ad30b['json']();return new FailedAccountResponse(_0xeb2dda);}catch(_0x4b67f5){if(_0x4b67f5 instanceof Error)return new FailedAccountResponse({'detail':_0x4b67f5['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x4b67f5;}});}}
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x24ae4d,_0x29ae09,_0x4f5ca8,_0x55298e){function _0x4d32be(_0x5c3d6d){return _0x5c3d6d instanceof _0x4f5ca8?_0x5c3d6d:new _0x4f5ca8(function(_0x3f2525){_0x3f2525(_0x5c3d6d);});}return new(_0x4f5ca8||(_0x4f5ca8=Promise))(function(_0x2bd212,_0x362c12){function _0x421a09(_0x14df45){try{_0x245d3b(_0x55298e['next'](_0x14df45));}catch(_0xcee581){_0x362c12(_0xcee581);}}function _0x4b3144(_0x20337e){try{_0x245d3b(_0x55298e['throw'](_0x20337e));}catch(_0x125ac2){_0x362c12(_0x125ac2);}}function _0x245d3b(_0x24a78d){_0x24a78d['done']?_0x2bd212(_0x24a78d['value']):_0x4d32be(_0x24a78d['value'])['then'](_0x421a09,_0x4b3144);}_0x245d3b((_0x55298e=_0x55298e['apply'](_0x24ae4d,_0x29ae09||[]))['next']());});};class ListService{constructor(_0x472aa7){this['fetch']=_0x472aa7;}['add'](_0x435d6b,_0x228e36,_0x106511){return __awaiter$2(this,void 0,void 0,function*(){const _0x3f2bc8='List',_0x5f2423={'account_name':_0x435d6b,'list_name':_0x228e36};try{const _0x273f66=yield this['fetch']['post'](_0x3f2bc8,_0x106511,_0x5f2423);if(_0x273f66['status']>0xc7&&_0x273f66['status']<0x12c){const _0x1256f2=yield _0x273f66['json']();return new SuccessfulAccountResponse(_0x1256f2);}const _0x521359=yield _0x273f66['json']();return new FailedAccountResponse(_0x521359);}catch(_0xb8e004){if(_0xb8e004 instanceof Error)return new FailedAccountResponse({'detail':_0xb8e004['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xb8e004;}});}['remove'](_0x517ae6,_0x583108,_0xd576ec){return __awaiter$2(this,void 0,void 0,function*(){const _0x13be7e='List/'+_0x517ae6+'/'+_0x583108,_0x4092b8=yield this['fetch']['delete'](_0x13be7e,_0xd576ec);try{if(_0x4092b8['status']>0xc7&&_0x4092b8['status']<0x12c){const _0x436b72=yield _0x4092b8['json']();return new SuccessfulAccountResponse(_0x436b72);}const _0x1c1f8e=yield _0x4092b8['json']();return new FailedAccountResponse(_0x1c1f8e);}catch(_0x5327ca){if(_0x5327ca instanceof Error)return new FailedAccountResponse({'detail':_0x5327ca['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5327ca;}});}}
12
12
 
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x28e58d,_0x1eaad1,_0x367e6e,_0xeb3f66){function _0x1c89f5(_0x42bb65){return _0x42bb65 instanceof _0x367e6e?_0x42bb65:new _0x367e6e(function(_0xf00699){_0xf00699(_0x42bb65);});}return new(_0x367e6e||(_0x367e6e=Promise))(function(_0x13dd29,_0x408c3e){function _0x58e38f(_0x126bb7){try{_0x2cabad(_0xeb3f66['next'](_0x126bb7));}catch(_0x5b4ada){_0x408c3e(_0x5b4ada);}}function _0x3ec983(_0x34a555){try{_0x2cabad(_0xeb3f66['throw'](_0x34a555));}catch(_0x12ccde){_0x408c3e(_0x12ccde);}}function _0x2cabad(_0x1ba10a){_0x1ba10a['done']?_0x13dd29(_0x1ba10a['value']):_0x1c89f5(_0x1ba10a['value'])['then'](_0x58e38f,_0x3ec983);}_0x2cabad((_0xeb3f66=_0xeb3f66['apply'](_0x28e58d,_0x1eaad1||[]))['next']());});};class Fetch{constructor(_0x44ef85){this['baseUri']=_0x44ef85,this['getUrl']=_0x29ed82=>{return _0x29ed82['startsWith']('/')&&(_0x29ed82=_0x29ed82['replace']('/','')),''+this['baseUri']+_0x29ed82;},!_0x44ef85['endsWith']('/')&&(_0x44ef85=_0x44ef85+'/');}['get'](_0x46745b,_0x2fea04){return __awaiter$1(this,void 0,void 0,function*(){const _0x453328=this['getUrl'](_0x46745b);return yield fetch(_0x453328,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2fea04}});});}['post'](_0x8b1dc9,_0x341676,_0x217a89){return __awaiter$1(this,void 0,void 0,function*(){const _0x49a70b=this['getUrl'](_0x8b1dc9);return yield fetch(_0x49a70b,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x341676},'body':_0x217a89?JSON['stringify'](_0x217a89):null});});}['put'](_0x5ecb04,_0x3b6229,_0x2ceaed){return __awaiter$1(this,void 0,void 0,function*(){const _0x34b741=this['getUrl'](_0x5ecb04);return yield fetch(_0x34b741,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3b6229},'body':_0x2ceaed?JSON['stringify'](_0x2ceaed):null});});}['delete'](_0x59b355,_0x2edcc6){return __awaiter$1(this,void 0,void 0,function*(){const _0x5f041f=this['getUrl'](_0x59b355);return yield fetch(_0x5f041f,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2edcc6}});});}}
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x49ffee,_0x3ee220,_0xd9b074,_0xdef6a2){function _0x316412(_0x53019d){return _0x53019d instanceof _0xd9b074?_0x53019d:new _0xd9b074(function(_0x3d1f0b){_0x3d1f0b(_0x53019d);});}return new(_0xd9b074||(_0xd9b074=Promise))(function(_0x4a26c2,_0x3324c1){function _0x5149b9(_0x4e19bb){try{_0x107907(_0xdef6a2['next'](_0x4e19bb));}catch(_0x461c94){_0x3324c1(_0x461c94);}}function _0x44da98(_0x532fcb){try{_0x107907(_0xdef6a2['throw'](_0x532fcb));}catch(_0x4b1c35){_0x3324c1(_0x4b1c35);}}function _0x107907(_0x38f0f2){_0x38f0f2['done']?_0x4a26c2(_0x38f0f2['value']):_0x316412(_0x38f0f2['value'])['then'](_0x5149b9,_0x44da98);}_0x107907((_0xdef6a2=_0xdef6a2['apply'](_0x49ffee,_0x3ee220||[]))['next']());});};class Fetch{constructor(_0x468fea){this['baseUri']=_0x468fea,this['getUrl']=_0x251431=>{return _0x251431['startsWith']('/')&&(_0x251431=_0x251431['replace']('/','')),''+this['baseUri']+_0x251431;},!_0x468fea['endsWith']('/')&&(_0x468fea=_0x468fea+'/');}['get'](_0x1a72e7,_0x5333fc){return __awaiter$1(this,void 0,void 0,function*(){const _0x553fde=this['getUrl'](_0x1a72e7);return yield fetch(_0x553fde,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5333fc}});});}['post'](_0x5e4e12,_0x3dc14f,_0x148b5d){return __awaiter$1(this,void 0,void 0,function*(){const _0x1314ed=this['getUrl'](_0x5e4e12);return yield fetch(_0x1314ed,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3dc14f},'body':_0x148b5d?JSON['stringify'](_0x148b5d):null});});}['put'](_0x678221,_0x4e56b6,_0x5b3c21){return __awaiter$1(this,void 0,void 0,function*(){const _0x54b4d3=this['getUrl'](_0x678221);return yield fetch(_0x54b4d3,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4e56b6},'body':_0x5b3c21?JSON['stringify'](_0x5b3c21):null});});}['delete'](_0x4b251b,_0x3d3730){return __awaiter$1(this,void 0,void 0,function*(){const _0x267881=this['getUrl'](_0x4b251b);return yield fetch(_0x267881,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3d3730}});});}}
14
14
 
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x56f4d9,_0x54688b,_0x1ba473,_0x15a163){function _0x52d117(_0x209870){return _0x209870 instanceof _0x1ba473?_0x209870:new _0x1ba473(function(_0x471b7c){_0x471b7c(_0x209870);});}return new(_0x1ba473||(_0x1ba473=Promise))(function(_0x429e14,_0x84fcef){function _0x2b0cc3(_0x30593b){try{_0xb793ea(_0x15a163['next'](_0x30593b));}catch(_0xdbee04){_0x84fcef(_0xdbee04);}}function _0x3127bc(_0xb19c86){try{_0xb793ea(_0x15a163['throw'](_0xb19c86));}catch(_0x369fb9){_0x84fcef(_0x369fb9);}}function _0xb793ea(_0xbe6b1f){_0xbe6b1f['done']?_0x429e14(_0xbe6b1f['value']):_0x52d117(_0xbe6b1f['value'])['then'](_0x2b0cc3,_0x3127bc);}_0xb793ea((_0x15a163=_0x15a163['apply'](_0x56f4d9,_0x54688b||[]))['next']());});};class AdminClient{constructor(_0x43503a='https://admin.searchability.dev/'){var _0x4916e5=new Fetch(_0x43503a);this['Accounts']=new AccountService(_0x4916e5),this['Lists']=new ListService(_0x4916e5),this['ApiKeys']=new ApiKeyService(_0x4916e5);}}class AuthClient{constructor(_0x1f84bd='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x1f84bd);}['login'](_0xe598d4){return __awaiter(this,void 0,void 0,function*(){var _0x5396d5='login/'+_0xe598d4;try{const _0x415759=yield yield fetch(_0x5396d5);if(_0x415759['status']>0xc7&&_0x415759['status']<0x12c){const _0x312088=yield _0x415759['json']();return new SuccessfulAuthResponse(_0x312088);}const _0x1f72ae=yield _0x415759['json']();return new FailedAuthResponse(_0x1f72ae);}catch(_0xe9beb1){if(_0xe9beb1 instanceof Error)return new FailedAuthResponse({'detail':_0xe9beb1['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xe9beb1;}});}['refresh'](_0xd7e5de){return __awaiter(this,void 0,void 0,function*(){var _0x16201a='refresh';try{const _0x39edc0=yield this['fetch']['post'](_0x16201a,_0xd7e5de,null);if(_0x39edc0['status']>0xc7&&_0x39edc0['status']<0x12c){const _0x257ea6=yield _0x39edc0['json']();return new SuccessfulAuthResponse(_0x257ea6);}const _0xf1dbd1=yield _0x39edc0['json']();return new FailedAuthResponse(_0xf1dbd1);}catch(_0x2caf9c){if(_0x2caf9c instanceof Error)return new FailedAuthResponse({'detail':_0x2caf9c['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2caf9c;}});}}
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x4036be,_0x589af7,_0x2574a5,_0xbf0e2e){function _0x5e0a29(_0x2c92c0){return _0x2c92c0 instanceof _0x2574a5?_0x2c92c0:new _0x2574a5(function(_0x4ab0ee){_0x4ab0ee(_0x2c92c0);});}return new(_0x2574a5||(_0x2574a5=Promise))(function(_0x9d4145,_0x2389b6){function _0x2592ef(_0x12369e){try{_0x2a81a4(_0xbf0e2e['next'](_0x12369e));}catch(_0x2ed35c){_0x2389b6(_0x2ed35c);}}function _0x3b10c9(_0x1f6749){try{_0x2a81a4(_0xbf0e2e['throw'](_0x1f6749));}catch(_0x58b736){_0x2389b6(_0x58b736);}}function _0x2a81a4(_0x43d6e6){_0x43d6e6['done']?_0x9d4145(_0x43d6e6['value']):_0x5e0a29(_0x43d6e6['value'])['then'](_0x2592ef,_0x3b10c9);}_0x2a81a4((_0xbf0e2e=_0xbf0e2e['apply'](_0x4036be,_0x589af7||[]))['next']());});};class AdminClient{constructor(_0x5af802='https://admin.searchability.dev/'){var _0x33188b=new Fetch(_0x5af802);this['Accounts']=new AccountService(_0x33188b),this['Lists']=new ListService(_0x33188b),this['ApiKeys']=new ApiKeyService(_0x33188b);}}class AuthClient{constructor(_0x494547='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x494547);}['login'](_0x20fe7d){return __awaiter(this,void 0,void 0,function*(){var _0x2878b4='login/'+_0x20fe7d;try{const _0x1c1c17=yield yield fetch(_0x2878b4);if(_0x1c1c17['status']>0xc7&&_0x1c1c17['status']<0x12c){const _0x408b48=yield _0x1c1c17['json']();return new SuccessfulAuthResponse(_0x408b48);}const _0x23186e=yield _0x1c1c17['json']();return new FailedAuthResponse(_0x23186e);}catch(_0x6e50ba){if(_0x6e50ba instanceof Error)return new FailedAuthResponse({'detail':_0x6e50ba['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x6e50ba;}});}['refresh'](_0x37d5e1){return __awaiter(this,void 0,void 0,function*(){var _0xc2edc2='refresh';try{const _0x42b23a=yield this['fetch']['post'](_0xc2edc2,_0x37d5e1,null);if(_0x42b23a['status']>0xc7&&_0x42b23a['status']<0x12c){const _0x4678d4=yield _0x42b23a['json']();return new SuccessfulAuthResponse(_0x4678d4);}const _0x5379dc=yield _0x42b23a['json']();return new FailedAuthResponse(_0x5379dc);}catch(_0xdb8777){if(_0xdb8777 instanceof Error)return new FailedAuthResponse({'detail':_0xdb8777['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xdb8777;}});}}
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(_0x2d2f47,_0x449cb9,_0x5ba582,_0x268e38){function _0xa49de0(_0x532107){return _0x532107 instanceof _0x5ba582?_0x532107:new _0x5ba582(function(_0xa229fe){_0xa229fe(_0x532107);});}return new(_0x5ba582||(_0x5ba582=Promise))(function(_0x3cef02,_0x34701e){function _0x2ef134(_0x93baf7){try{_0x31f1fa(_0x268e38['next'](_0x93baf7));}catch(_0x3b38f7){_0x34701e(_0x3b38f7);}}function _0x4c6580(_0x163e0a){try{_0x31f1fa(_0x268e38['throw'](_0x163e0a));}catch(_0x3ca3f1){_0x34701e(_0x3ca3f1);}}function _0x31f1fa(_0x5da5bf){_0x5da5bf['done']?_0x3cef02(_0x5da5bf['value']):_0xa49de0(_0x5da5bf['value'])['then'](_0x2ef134,_0x4c6580);}_0x31f1fa((_0x268e38=_0x268e38['apply'](_0x2d2f47,_0x449cb9||[]))['next']());});};
1
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x38e87d,_0x2921ee,_0x3f8c70,_0x1911b9){function _0x1e8a26(_0x34d2cd){return _0x34d2cd instanceof _0x3f8c70?_0x34d2cd:new _0x3f8c70(function(_0x7ad0a2){_0x7ad0a2(_0x34d2cd);});}return new(_0x3f8c70||(_0x3f8c70=Promise))(function(_0x39b5a3,_0x2c783b){function _0x3d891c(_0x3fa152){try{_0x4ebf1f(_0x1911b9['next'](_0x3fa152));}catch(_0xfaf49){_0x2c783b(_0xfaf49);}}function _0x3dbe81(_0x4e68cf){try{_0x4ebf1f(_0x1911b9['throw'](_0x4e68cf));}catch(_0x40438d){_0x2c783b(_0x40438d);}}function _0x4ebf1f(_0x40aa6c){_0x40aa6c['done']?_0x39b5a3(_0x40aa6c['value']):_0x1e8a26(_0x40aa6c['value'])['then'](_0x3d891c,_0x3dbe81);}_0x4ebf1f((_0x1911b9=_0x1911b9['apply'](_0x38e87d,_0x2921ee||[]))['next']());});};class TokenManager{constructor(_0x566a8e){this['authClient']=_0x566a8e;}['getOrRefreshTokens'](_0x14cd8b){return __awaiter$5(this,void 0,void 0,function*(){if(Date['now']()<_0x14cd8b['access_expires'])return new SuccessfulAuthResponse(_0x14cd8b);if(Date['now']()>_0x14cd8b['refresh_expires'])return yield this['authClient']['refresh'](_0x14cd8b['refresh_token']);return new FailedAuthResponse({'detail':'Refresh\x20token\x20expired','title':'','status':0x194,'instance':'','type':''});});}}
2
2
 
3
- class Response{constructor(_0x1f1ed3){this['isSuccess']=_0x1f1ed3;}}class SuccessfulAccountResponse extends Response{constructor(_0x58b922){super(!![]),this['account']=_0x58b922;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x13dae7){super(![]),this['problem']=_0x13dae7;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x4418e3){super(!![]),this['tokens']=_0x4418e3;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x1b0c30){super(![]),this['problem']=_0x1b0c30;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x363a15){super(!![]),this['apiKeys']=_0x363a15;}['toSuccess'](){return this['apiKeys'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x2b90bd){super(![]),this['problem']=_0x2b90bd;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
3
+ class Response{constructor(_0xc5b5b){this['isSuccess']=_0xc5b5b;}}class SuccessfulAccountResponse extends Response{constructor(_0x5e2b5d){super(!![]),this['account']=_0x5e2b5d;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x52e606){super(![]),this['problem']=_0x52e606;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x363f48){super(!![]),this['tokens']=_0x363f48;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0xd32181){super(![]),this['problem']=_0xd32181;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x5687a4){super(!![]),this['apiKey']=_0x5687a4;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x26fd92){super(![]),this['problem']=_0x26fd92;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0xba8c58,_0x329163,_0x38c56d,_0x30239f){function _0x3eb280(_0x27c0b7){return _0x27c0b7 instanceof _0x38c56d?_0x27c0b7:new _0x38c56d(function(_0x542748){_0x542748(_0x27c0b7);});}return new(_0x38c56d||(_0x38c56d=Promise))(function(_0x10b0b3,_0x214b11){function _0x104a75(_0x428082){try{_0x266beb(_0x30239f['next'](_0x428082));}catch(_0x3fe783){_0x214b11(_0x3fe783);}}function _0x55c979(_0x2f6179){try{_0x266beb(_0x30239f['throw'](_0x2f6179));}catch(_0x7f30d5){_0x214b11(_0x7f30d5);}}function _0x266beb(_0x160638){_0x160638['done']?_0x10b0b3(_0x160638['value']):_0x3eb280(_0x160638['value'])['then'](_0x104a75,_0x55c979);}_0x266beb((_0x30239f=_0x30239f['apply'](_0xba8c58,_0x329163||[]))['next']());});};class AccountService{constructor(_0x597b2d){this['fetch']=_0x597b2d;}['get'](_0x1cb780,_0x39a285){return __awaiter$4(this,void 0,void 0,function*(){const _0x1b00ab='Account/'+_0x1cb780+'/',_0x498558=yield this['fetch']['get'](_0x1b00ab,_0x39a285);try{if(_0x498558['status']>0xc7&&_0x498558['status']<0x12c){const _0x3416b6=yield _0x498558['json']();return new SuccessfulAccountResponse(_0x3416b6);}const _0x3ebacb=yield _0x498558['json']();return new FailedAccountResponse(_0x3ebacb);}catch(_0x150ee7){if(_0x150ee7 instanceof Error)return new FailedAccountResponse({'detail':_0x150ee7['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x150ee7;}});}}
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x126365,_0x1e79cc,_0x42cdb9,_0x2fc256){function _0x5f0b6a(_0x4d6acc){return _0x4d6acc instanceof _0x42cdb9?_0x4d6acc:new _0x42cdb9(function(_0x5e0efc){_0x5e0efc(_0x4d6acc);});}return new(_0x42cdb9||(_0x42cdb9=Promise))(function(_0x56674b,_0x28e173){function _0x40d38f(_0x406f98){try{_0x57c160(_0x2fc256['next'](_0x406f98));}catch(_0x21a678){_0x28e173(_0x21a678);}}function _0x4d8e47(_0x2a7032){try{_0x57c160(_0x2fc256['throw'](_0x2a7032));}catch(_0x1e8d85){_0x28e173(_0x1e8d85);}}function _0x57c160(_0x5bea9a){_0x5bea9a['done']?_0x56674b(_0x5bea9a['value']):_0x5f0b6a(_0x5bea9a['value'])['then'](_0x40d38f,_0x4d8e47);}_0x57c160((_0x2fc256=_0x2fc256['apply'](_0x126365,_0x1e79cc||[]))['next']());});};class AccountService{constructor(_0x1b259e){this['fetch']=_0x1b259e;}['get'](_0xec0e27,_0x380f5c){return __awaiter$4(this,void 0,void 0,function*(){const _0x272617='Account/'+_0xec0e27+'/',_0x5bd1fd=yield this['fetch']['get'](_0x272617,_0x380f5c);try{if(_0x5bd1fd['status']>0xc7&&_0x5bd1fd['status']<0x12c){const _0x45d909=yield _0x5bd1fd['json']();return new SuccessfulAccountResponse(_0x45d909);}const _0x2f20f8=yield _0x5bd1fd['json']();return new FailedAccountResponse(_0x2f20f8);}catch(_0x18dd5c){if(_0x18dd5c instanceof Error)return new FailedAccountResponse({'detail':_0x18dd5c['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x18dd5c;}});}}
6
6
 
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0xfac54,_0x634d0,_0x2e2de1,_0x28b250){function _0x48b538(_0x1f6b45){return _0x1f6b45 instanceof _0x2e2de1?_0x1f6b45:new _0x2e2de1(function(_0x2eca98){_0x2eca98(_0x1f6b45);});}return new(_0x2e2de1||(_0x2e2de1=Promise))(function(_0x2e6d7c,_0x37fc65){function _0x4f32b8(_0x18428a){try{_0x661e4b(_0x28b250['next'](_0x18428a));}catch(_0x40a3c4){_0x37fc65(_0x40a3c4);}}function _0x27fe89(_0x26c23c){try{_0x661e4b(_0x28b250['throw'](_0x26c23c));}catch(_0x5c4de1){_0x37fc65(_0x5c4de1);}}function _0x661e4b(_0x5c28b){_0x5c28b['done']?_0x2e6d7c(_0x5c28b['value']):_0x48b538(_0x5c28b['value'])['then'](_0x4f32b8,_0x27fe89);}_0x661e4b((_0x28b250=_0x28b250['apply'](_0xfac54,_0x634d0||[]))['next']());});};class ApiKeyService{constructor(_0x3d8460){this['fetch']=_0x3d8460;}['create'](_0x63dcad,_0x2d4668,_0x5d4955){return __awaiter$3(this,void 0,void 0,function*(){const _0x1fd46c='ApiKey/Create',_0x50d860={'account_name':_0x63dcad,'name':_0x2d4668};try{const _0x259b9b=yield this['fetch']['post'](_0x1fd46c,_0x5d4955,_0x50d860);if(_0x259b9b['status']>0xc7&&_0x259b9b['status']<0x12c){const _0xbf2e62=yield _0x259b9b['json']();return new SuccessfulApiKeyResponse(_0xbf2e62);}const _0xf50cd3=yield _0x259b9b['json']();return new FailedApiKeyResponse(_0xf50cd3);}catch(_0x3a4cc2){if(_0x3a4cc2 instanceof Error)return new FailedApiKeyResponse({'detail':_0x3a4cc2['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3a4cc2;}});}}
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x1237eb,_0x195ee5,_0x165c11,_0xb1fe3d){function _0x1662b9(_0x435d7b){return _0x435d7b instanceof _0x165c11?_0x435d7b:new _0x165c11(function(_0x26bfee){_0x26bfee(_0x435d7b);});}return new(_0x165c11||(_0x165c11=Promise))(function(_0x13a39d,_0x45299a){function _0x3af856(_0x567558){try{_0x5eb638(_0xb1fe3d['next'](_0x567558));}catch(_0x48be05){_0x45299a(_0x48be05);}}function _0x2db821(_0x5bc34e){try{_0x5eb638(_0xb1fe3d['throw'](_0x5bc34e));}catch(_0x509ea7){_0x45299a(_0x509ea7);}}function _0x5eb638(_0x10a717){_0x10a717['done']?_0x13a39d(_0x10a717['value']):_0x1662b9(_0x10a717['value'])['then'](_0x3af856,_0x2db821);}_0x5eb638((_0xb1fe3d=_0xb1fe3d['apply'](_0x1237eb,_0x195ee5||[]))['next']());});};class ApiKeyService{constructor(_0x177998){this['fetch']=_0x177998;}['create'](_0x165e47,_0x57d665,_0x1b4032){return __awaiter$3(this,void 0,void 0,function*(){const _0x145b9f='api-key/create',_0x138358={'account_name':_0x165e47,'name':_0x57d665};try{const _0x114143=yield this['fetch']['post'](_0x145b9f,_0x1b4032,_0x138358);if(_0x114143['status']>0xc7&&_0x114143['status']<0x12c){const _0x501786=yield _0x114143['json']();return new SuccessfulApiKeyResponse(_0x501786);}const _0x4eebcd=yield _0x114143['json']();return new FailedApiKeyResponse(_0x4eebcd);}catch(_0x580c47){if(_0x580c47 instanceof Error)return new FailedApiKeyResponse({'detail':_0x580c47['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x580c47;}});}}
8
8
 
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x4961c6,_0x512808,_0x430d07,_0x3f0266){function _0x40a25b(_0x539ecd){return _0x539ecd instanceof _0x430d07?_0x539ecd:new _0x430d07(function(_0x1bcbf4){_0x1bcbf4(_0x539ecd);});}return new(_0x430d07||(_0x430d07=Promise))(function(_0x3d60b7,_0x386fb6){function _0x533d9f(_0x506a95){try{_0x444110(_0x3f0266['next'](_0x506a95));}catch(_0x30681c){_0x386fb6(_0x30681c);}}function _0xd5bbf5(_0x1c3742){try{_0x444110(_0x3f0266['throw'](_0x1c3742));}catch(_0x305391){_0x386fb6(_0x305391);}}function _0x444110(_0xc67b80){_0xc67b80['done']?_0x3d60b7(_0xc67b80['value']):_0x40a25b(_0xc67b80['value'])['then'](_0x533d9f,_0xd5bbf5);}_0x444110((_0x3f0266=_0x3f0266['apply'](_0x4961c6,_0x512808||[]))['next']());});};class ListService{constructor(_0xf18b3){this['fetch']=_0xf18b3;}['add'](_0x2d0644,_0x5c2352,_0x344227){return __awaiter$2(this,void 0,void 0,function*(){const _0x360615='List',_0x371af6={'account_name':_0x2d0644,'list_name':_0x5c2352};try{const _0x172219=yield this['fetch']['post'](_0x360615,_0x344227,_0x371af6);if(_0x172219['status']>0xc7&&_0x172219['status']<0x12c){const _0x19ede9=yield _0x172219['json']();return new SuccessfulAccountResponse(_0x19ede9);}const _0x1770f4=yield _0x172219['json']();return new FailedAccountResponse(_0x1770f4);}catch(_0x42ccc0){if(_0x42ccc0 instanceof Error)return new FailedAccountResponse({'detail':_0x42ccc0['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x42ccc0;}});}['remove'](_0x70e96b,_0x43a1e2,_0x3921e9){return __awaiter$2(this,void 0,void 0,function*(){const _0x224425='List/'+_0x70e96b+'/'+_0x43a1e2,_0x4f6881=yield this['fetch']['delete'](_0x224425,_0x3921e9);try{if(_0x4f6881['status']>0xc7&&_0x4f6881['status']<0x12c){const _0x2998ba=yield _0x4f6881['json']();return new SuccessfulAccountResponse(_0x2998ba);}const _0x2994e8=yield _0x4f6881['json']();return new FailedAccountResponse(_0x2994e8);}catch(_0xccfecf){if(_0xccfecf instanceof Error)return new FailedAccountResponse({'detail':_0xccfecf['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xccfecf;}});}}
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x40fa61,_0x4d34ef,_0xb602f3,_0x2a439){function _0x29fb22(_0x5d288b){return _0x5d288b instanceof _0xb602f3?_0x5d288b:new _0xb602f3(function(_0x529b64){_0x529b64(_0x5d288b);});}return new(_0xb602f3||(_0xb602f3=Promise))(function(_0x32250c,_0x22cfb8){function _0x2550a8(_0x2563d3){try{_0x31eeed(_0x2a439['next'](_0x2563d3));}catch(_0x5dd533){_0x22cfb8(_0x5dd533);}}function _0x382241(_0x3346df){try{_0x31eeed(_0x2a439['throw'](_0x3346df));}catch(_0x4b47d2){_0x22cfb8(_0x4b47d2);}}function _0x31eeed(_0x475b0f){_0x475b0f['done']?_0x32250c(_0x475b0f['value']):_0x29fb22(_0x475b0f['value'])['then'](_0x2550a8,_0x382241);}_0x31eeed((_0x2a439=_0x2a439['apply'](_0x40fa61,_0x4d34ef||[]))['next']());});};class ListService{constructor(_0x7d67c){this['fetch']=_0x7d67c;}['add'](_0x106aa0,_0x2e3ebe,_0x3d078c){return __awaiter$2(this,void 0,void 0,function*(){const _0x382bbd='List',_0x95b903={'account_name':_0x106aa0,'list_name':_0x2e3ebe};try{const _0x197703=yield this['fetch']['post'](_0x382bbd,_0x3d078c,_0x95b903);if(_0x197703['status']>0xc7&&_0x197703['status']<0x12c){const _0x5990b3=yield _0x197703['json']();return new SuccessfulAccountResponse(_0x5990b3);}const _0x53f86a=yield _0x197703['json']();return new FailedAccountResponse(_0x53f86a);}catch(_0x1ef303){if(_0x1ef303 instanceof Error)return new FailedAccountResponse({'detail':_0x1ef303['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x1ef303;}});}['remove'](_0x2228c5,_0x29da96,_0x4c18ad){return __awaiter$2(this,void 0,void 0,function*(){const _0x26d511='List/'+_0x2228c5+'/'+_0x29da96,_0xe8d23a=yield this['fetch']['delete'](_0x26d511,_0x4c18ad);try{if(_0xe8d23a['status']>0xc7&&_0xe8d23a['status']<0x12c){const _0x56e30e=yield _0xe8d23a['json']();return new SuccessfulAccountResponse(_0x56e30e);}const _0x4a9e89=yield _0xe8d23a['json']();return new FailedAccountResponse(_0x4a9e89);}catch(_0x29fb49){if(_0x29fb49 instanceof Error)return new FailedAccountResponse({'detail':_0x29fb49['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x29fb49;}});}}
10
10
 
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x4a6fe5,_0x2d182d,_0x224e69,_0x5a339e){function _0x46abf7(_0x27498f){return _0x27498f instanceof _0x224e69?_0x27498f:new _0x224e69(function(_0x468ca7){_0x468ca7(_0x27498f);});}return new(_0x224e69||(_0x224e69=Promise))(function(_0x620a16,_0xffe0df){function _0x49703b(_0x3c743e){try{_0x4fd57f(_0x5a339e['next'](_0x3c743e));}catch(_0x1faf5e){_0xffe0df(_0x1faf5e);}}function _0x25bc5a(_0x358d1c){try{_0x4fd57f(_0x5a339e['throw'](_0x358d1c));}catch(_0x16dbc1){_0xffe0df(_0x16dbc1);}}function _0x4fd57f(_0x3b5496){_0x3b5496['done']?_0x620a16(_0x3b5496['value']):_0x46abf7(_0x3b5496['value'])['then'](_0x49703b,_0x25bc5a);}_0x4fd57f((_0x5a339e=_0x5a339e['apply'](_0x4a6fe5,_0x2d182d||[]))['next']());});};class Fetch{constructor(_0x146403){this['baseUri']=_0x146403,this['getUrl']=_0x3d8df4=>{return _0x3d8df4['startsWith']('/')&&(_0x3d8df4=_0x3d8df4['replace']('/','')),''+this['baseUri']+_0x3d8df4;},!_0x146403['endsWith']('/')&&(_0x146403=_0x146403+'/');}['get'](_0x38a34f,_0x4e0087){return __awaiter$1(this,void 0,void 0,function*(){const _0x9f1a9a=this['getUrl'](_0x38a34f);return yield fetch(_0x9f1a9a,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4e0087}});});}['post'](_0x357ee1,_0x397d15,_0x2782cc){return __awaiter$1(this,void 0,void 0,function*(){const _0x7dbd29=this['getUrl'](_0x357ee1);return yield fetch(_0x7dbd29,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x397d15},'body':_0x2782cc?JSON['stringify'](_0x2782cc):null});});}['put'](_0x4eadbb,_0x517773,_0x48272){return __awaiter$1(this,void 0,void 0,function*(){const _0x4ca6df=this['getUrl'](_0x4eadbb);return yield fetch(_0x4ca6df,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x517773},'body':_0x48272?JSON['stringify'](_0x48272):null});});}['delete'](_0x3db2e6,_0x35523a){return __awaiter$1(this,void 0,void 0,function*(){const _0x28e4a6=this['getUrl'](_0x3db2e6);return yield fetch(_0x28e4a6,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x35523a}});});}}
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x385044,_0xca158a,_0x4bf943,_0x3e5cd3){function _0x53cf4c(_0x4c0baf){return _0x4c0baf instanceof _0x4bf943?_0x4c0baf:new _0x4bf943(function(_0x569602){_0x569602(_0x4c0baf);});}return new(_0x4bf943||(_0x4bf943=Promise))(function(_0x2b1f49,_0x5b5dc5){function _0x2856ea(_0x48c655){try{_0x4c6e65(_0x3e5cd3['next'](_0x48c655));}catch(_0x58583a){_0x5b5dc5(_0x58583a);}}function _0x3be203(_0x4e029e){try{_0x4c6e65(_0x3e5cd3['throw'](_0x4e029e));}catch(_0x2cdb2f){_0x5b5dc5(_0x2cdb2f);}}function _0x4c6e65(_0x402e14){_0x402e14['done']?_0x2b1f49(_0x402e14['value']):_0x53cf4c(_0x402e14['value'])['then'](_0x2856ea,_0x3be203);}_0x4c6e65((_0x3e5cd3=_0x3e5cd3['apply'](_0x385044,_0xca158a||[]))['next']());});};class Fetch{constructor(_0xb9295e){this['baseUri']=_0xb9295e,this['getUrl']=_0x2e22bd=>{return _0x2e22bd['startsWith']('/')&&(_0x2e22bd=_0x2e22bd['replace']('/','')),''+this['baseUri']+_0x2e22bd;},!_0xb9295e['endsWith']('/')&&(_0xb9295e=_0xb9295e+'/');}['get'](_0x5de8b5,_0x49f102){return __awaiter$1(this,void 0,void 0,function*(){const _0x52a2b3=this['getUrl'](_0x5de8b5);return yield fetch(_0x52a2b3,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x49f102}});});}['post'](_0x3255e5,_0x181c26,_0x41581d){return __awaiter$1(this,void 0,void 0,function*(){const _0x2adb92=this['getUrl'](_0x3255e5);return yield fetch(_0x2adb92,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x181c26},'body':_0x41581d?JSON['stringify'](_0x41581d):null});});}['put'](_0x54eca6,_0x1fa373,_0x30c6ac){return __awaiter$1(this,void 0,void 0,function*(){const _0x396e51=this['getUrl'](_0x54eca6);return yield fetch(_0x396e51,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1fa373},'body':_0x30c6ac?JSON['stringify'](_0x30c6ac):null});});}['delete'](_0xc99bc8,_0x3a26eb){return __awaiter$1(this,void 0,void 0,function*(){const _0x3aa41b=this['getUrl'](_0xc99bc8);return yield fetch(_0x3aa41b,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3a26eb}});});}}
12
12
 
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x99c8e,_0x25af06,_0x2ad405,_0x3243ab){function _0x441787(_0x23b52c){return _0x23b52c instanceof _0x2ad405?_0x23b52c:new _0x2ad405(function(_0x58ad76){_0x58ad76(_0x23b52c);});}return new(_0x2ad405||(_0x2ad405=Promise))(function(_0x34de23,_0x98d354){function _0x3246dc(_0x2e5a46){try{_0x58f4d0(_0x3243ab['next'](_0x2e5a46));}catch(_0x2405e8){_0x98d354(_0x2405e8);}}function _0x3997f3(_0x585014){try{_0x58f4d0(_0x3243ab['throw'](_0x585014));}catch(_0x1e448d){_0x98d354(_0x1e448d);}}function _0x58f4d0(_0x3017b9){_0x3017b9['done']?_0x34de23(_0x3017b9['value']):_0x441787(_0x3017b9['value'])['then'](_0x3246dc,_0x3997f3);}_0x58f4d0((_0x3243ab=_0x3243ab['apply'](_0x99c8e,_0x25af06||[]))['next']());});};class AdminClient{constructor(_0x183679='https://admin.searchability.dev/'){var _0x3dc087=new Fetch(_0x183679);this['Accounts']=new AccountService(_0x3dc087),this['Lists']=new ListService(_0x3dc087),this['ApiKeys']=new ApiKeyService(_0x3dc087);}}class AuthClient{constructor(_0x4ab1e2='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x4ab1e2);}['login'](_0x452586){return __awaiter(this,void 0,void 0,function*(){var _0x5472a8='login/'+_0x452586;try{const _0x21bb8e=yield yield fetch(_0x5472a8);if(_0x21bb8e['status']>0xc7&&_0x21bb8e['status']<0x12c){const _0x516066=yield _0x21bb8e['json']();return new SuccessfulAuthResponse(_0x516066);}const _0x353965=yield _0x21bb8e['json']();return new FailedAuthResponse(_0x353965);}catch(_0x14ddd7){if(_0x14ddd7 instanceof Error)return new FailedAuthResponse({'detail':_0x14ddd7['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x14ddd7;}});}['refresh'](_0x4eb4b0){return __awaiter(this,void 0,void 0,function*(){var _0x15eb2a='refresh';try{const _0x912d4b=yield this['fetch']['post'](_0x15eb2a,_0x4eb4b0,null);if(_0x912d4b['status']>0xc7&&_0x912d4b['status']<0x12c){const _0x2af908=yield _0x912d4b['json']();return new SuccessfulAuthResponse(_0x2af908);}const _0x485c44=yield _0x912d4b['json']();return new FailedAuthResponse(_0x485c44);}catch(_0x2bcff2){if(_0x2bcff2 instanceof Error)return new FailedAuthResponse({'detail':_0x2bcff2['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2bcff2;}});}}
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x4ec62e,_0x5afef9,_0x1d37ab,_0x3500c0){function _0x1e6add(_0x478856){return _0x478856 instanceof _0x1d37ab?_0x478856:new _0x1d37ab(function(_0x485265){_0x485265(_0x478856);});}return new(_0x1d37ab||(_0x1d37ab=Promise))(function(_0x5b3988,_0x1d9acf){function _0x57b0da(_0x750c24){try{_0xef0acc(_0x3500c0['next'](_0x750c24));}catch(_0xdef316){_0x1d9acf(_0xdef316);}}function _0x41c195(_0xc4b711){try{_0xef0acc(_0x3500c0['throw'](_0xc4b711));}catch(_0x12b88e){_0x1d9acf(_0x12b88e);}}function _0xef0acc(_0x96166a){_0x96166a['done']?_0x5b3988(_0x96166a['value']):_0x1e6add(_0x96166a['value'])['then'](_0x57b0da,_0x41c195);}_0xef0acc((_0x3500c0=_0x3500c0['apply'](_0x4ec62e,_0x5afef9||[]))['next']());});};class AdminClient{constructor(_0x3bd028='https://admin.searchability.dev/'){var _0x3964ac=new Fetch(_0x3bd028);this['Accounts']=new AccountService(_0x3964ac),this['Lists']=new ListService(_0x3964ac),this['ApiKeys']=new ApiKeyService(_0x3964ac);}}class AuthClient{constructor(_0x38dfab='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x38dfab);}['login'](_0x35bb0b){return __awaiter(this,void 0,void 0,function*(){var _0xc8465b='login/'+_0x35bb0b;try{const _0x32085d=yield yield fetch(_0xc8465b);if(_0x32085d['status']>0xc7&&_0x32085d['status']<0x12c){const _0x270c63=yield _0x32085d['json']();return new SuccessfulAuthResponse(_0x270c63);}const _0x3e2617=yield _0x32085d['json']();return new FailedAuthResponse(_0x3e2617);}catch(_0x38a207){if(_0x38a207 instanceof Error)return new FailedAuthResponse({'detail':_0x38a207['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x38a207;}});}['refresh'](_0x52f8ed){return __awaiter(this,void 0,void 0,function*(){var _0xafb754='refresh';try{const _0x474698=yield this['fetch']['post'](_0xafb754,_0x52f8ed,null);if(_0x474698['status']>0xc7&&_0x474698['status']<0x12c){const _0xa096a9=yield _0x474698['json']();return new SuccessfulAuthResponse(_0xa096a9);}const _0x2d41fc=yield _0x474698['json']();return new FailedAuthResponse(_0x2d41fc);}catch(_0x2e06c6){if(_0x2e06c6 instanceof Error)return new FailedAuthResponse({'detail':_0x2e06c6['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2e06c6;}});}}
14
14
 
15
- export { AdminClient, AuthClient };
15
+ export { AdminClient, AuthClient, TokenManager };
package/dist/types.d.ts CHANGED
@@ -17,7 +17,7 @@ declare class AccountService {
17
17
  declare class ApiKeyService {
18
18
  readonly fetch: Fetch;
19
19
  constructor(fetch: Fetch);
20
- create(accountName: string, apiKeyName: string, access_token: string): Promise<Response<ApiKey[], Problem>>;
20
+ create(accountName: string, apiKeyName: string, access_token: string): Promise<Response<ApiKey, Problem>>;
21
21
  }
22
22
 
23
23
  declare class ListService {
@@ -115,16 +115,16 @@ declare class FailedAuthResponse extends Response<Tokens, Problem> {
115
115
  toSuccess(): Tokens;
116
116
  toProblem(): Problem;
117
117
  }
118
- declare class SuccessfulApiKeyResponse extends Response<ApiKey[], Problem> {
119
- readonly apiKeys: ApiKey[];
120
- constructor(apiKeys: ApiKey[]);
121
- toSuccess(): ApiKey[];
118
+ declare class SuccessfulApiKeyResponse extends Response<ApiKey, Problem> {
119
+ readonly apiKey: ApiKey;
120
+ constructor(apiKey: ApiKey);
121
+ toSuccess(): ApiKey;
122
122
  toProblem(): Problem;
123
123
  }
124
- declare class FailedApiKeyResponse extends Response<ApiKey[], Problem> {
124
+ declare class FailedApiKeyResponse extends Response<ApiKey, Problem> {
125
125
  readonly problem: Problem;
126
126
  constructor(problem: Problem);
127
- toSuccess(): ApiKey[];
127
+ toSuccess(): ApiKey;
128
128
  toProblem(): Problem;
129
129
  }
130
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
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(_0x1e22eb,_0xeced25,_0x42d7ed,_0x5df34c){function _0x10370c(_0x1f96dc){return _0x1f96dc instanceof _0x42d7ed?_0x1f96dc:new _0x42d7ed(function(_0x4af985){_0x4af985(_0x1f96dc);});}return new(_0x42d7ed||(_0x42d7ed=Promise))(function(_0x5f1ee5,_0x3a6b8f){function _0x9a541e(_0xe837ad){try{_0x5daacf(_0x5df34c['next'](_0xe837ad));}catch(_0x23af2e){_0x3a6b8f(_0x23af2e);}}function _0x5120eb(_0x332b01){try{_0x5daacf(_0x5df34c['throw'](_0x332b01));}catch(_0x1fac20){_0x3a6b8f(_0x1fac20);}}function _0x5daacf(_0x10b532){_0x10b532['done']?_0x5f1ee5(_0x10b532['value']):_0x10370c(_0x10b532['value'])['then'](_0x9a541e,_0x5120eb);}_0x5daacf((_0x5df34c=_0x5df34c['apply'](_0x1e22eb,_0xeced25||[]))['next']());});};
2
-
3
- class Response{constructor(_0x1ee854){this['isSuccess']=_0x1ee854;}}class SuccessfulAccountResponse extends Response{constructor(_0x36834a){super(!![]),this['account']=_0x36834a;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x289130){super(![]),this['problem']=_0x289130;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0xe7a6f0){super(!![]),this['tokens']=_0xe7a6f0;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x76633){super(![]),this['problem']=_0x76633;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x1a7ff9){super(!![]),this['apiKeys']=_0x1a7ff9;}['toSuccess'](){return this['apiKeys'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x277ac3){super(![]),this['problem']=_0x277ac3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
-
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x4ad6d6,_0x2fa10e,_0x4db4bc,_0x44d2b9){function _0x5a53ba(_0x1b182d){return _0x1b182d instanceof _0x4db4bc?_0x1b182d:new _0x4db4bc(function(_0x5aa025){_0x5aa025(_0x1b182d);});}return new(_0x4db4bc||(_0x4db4bc=Promise))(function(_0x1919d5,_0x57d3ef){function _0x4e1a7b(_0x59d79b){try{_0x348477(_0x44d2b9['next'](_0x59d79b));}catch(_0x543cff){_0x57d3ef(_0x543cff);}}function _0xc6ae39(_0x1225c8){try{_0x348477(_0x44d2b9['throw'](_0x1225c8));}catch(_0x18c148){_0x57d3ef(_0x18c148);}}function _0x348477(_0x531a2a){_0x531a2a['done']?_0x1919d5(_0x531a2a['value']):_0x5a53ba(_0x531a2a['value'])['then'](_0x4e1a7b,_0xc6ae39);}_0x348477((_0x44d2b9=_0x44d2b9['apply'](_0x4ad6d6,_0x2fa10e||[]))['next']());});};class AccountService{constructor(_0x9d8414){this['fetch']=_0x9d8414;}['get'](_0x1bb848,_0x3d0ef1){return __awaiter$4(this,void 0,void 0,function*(){const _0x5a39ae='Account/'+_0x1bb848+'/',_0x2977c3=yield this['fetch']['get'](_0x5a39ae,_0x3d0ef1);try{if(_0x2977c3['status']>0xc7&&_0x2977c3['status']<0x12c){const _0x167aa4=yield _0x2977c3['json']();return new SuccessfulAccountResponse(_0x167aa4);}const _0xb2a59f=yield _0x2977c3['json']();return new FailedAccountResponse(_0xb2a59f);}catch(_0x3fc39b){if(_0x3fc39b instanceof Error)return new FailedAccountResponse({'detail':_0x3fc39b['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3fc39b;}});}}
6
-
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x19924e,_0x276b8b,_0x37c97d,_0x42e76b){function _0x174cf2(_0x40f005){return _0x40f005 instanceof _0x37c97d?_0x40f005:new _0x37c97d(function(_0x33560b){_0x33560b(_0x40f005);});}return new(_0x37c97d||(_0x37c97d=Promise))(function(_0x432fc0,_0x544725){function _0x50da0e(_0x5ebbf0){try{_0x1fd4de(_0x42e76b['next'](_0x5ebbf0));}catch(_0x20ea43){_0x544725(_0x20ea43);}}function _0xfb184d(_0x49de2d){try{_0x1fd4de(_0x42e76b['throw'](_0x49de2d));}catch(_0x3c2394){_0x544725(_0x3c2394);}}function _0x1fd4de(_0x11dd49){_0x11dd49['done']?_0x432fc0(_0x11dd49['value']):_0x174cf2(_0x11dd49['value'])['then'](_0x50da0e,_0xfb184d);}_0x1fd4de((_0x42e76b=_0x42e76b['apply'](_0x19924e,_0x276b8b||[]))['next']());});};class ApiKeyService{constructor(_0x58f92a){this['fetch']=_0x58f92a;}['create'](_0x772f3,_0xd2be52,_0xa583fb){return __awaiter$3(this,void 0,void 0,function*(){const _0x6fc91f='ApiKey/Create',_0xca4585={'account_name':_0x772f3,'name':_0xd2be52};try{const _0x1e859f=yield this['fetch']['post'](_0x6fc91f,_0xa583fb,_0xca4585);if(_0x1e859f['status']>0xc7&&_0x1e859f['status']<0x12c){const _0x79a245=yield _0x1e859f['json']();return new SuccessfulApiKeyResponse(_0x79a245);}const _0x15f500=yield _0x1e859f['json']();return new FailedApiKeyResponse(_0x15f500);}catch(_0x1a6b6d){if(_0x1a6b6d instanceof Error)return new FailedApiKeyResponse({'detail':_0x1a6b6d['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x1a6b6d;}});}}
8
-
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x5314d2,_0x55e2a6,_0xaa086f,_0x23c27e){function _0x1ffbcd(_0x5d2339){return _0x5d2339 instanceof _0xaa086f?_0x5d2339:new _0xaa086f(function(_0x3eddc9){_0x3eddc9(_0x5d2339);});}return new(_0xaa086f||(_0xaa086f=Promise))(function(_0x1bec73,_0x29ba20){function _0x29ab73(_0x8a3eab){try{_0x22e7a3(_0x23c27e['next'](_0x8a3eab));}catch(_0x2ae0f1){_0x29ba20(_0x2ae0f1);}}function _0x44febc(_0x201965){try{_0x22e7a3(_0x23c27e['throw'](_0x201965));}catch(_0x793099){_0x29ba20(_0x793099);}}function _0x22e7a3(_0x55524a){_0x55524a['done']?_0x1bec73(_0x55524a['value']):_0x1ffbcd(_0x55524a['value'])['then'](_0x29ab73,_0x44febc);}_0x22e7a3((_0x23c27e=_0x23c27e['apply'](_0x5314d2,_0x55e2a6||[]))['next']());});};class ListService{constructor(_0x75d93b){this['fetch']=_0x75d93b;}['add'](_0x445e86,_0x2afc9d,_0x43e7c0){return __awaiter$2(this,void 0,void 0,function*(){const _0x1969da='List',_0x45e15b={'account_name':_0x445e86,'list_name':_0x2afc9d};try{const _0x42ec23=yield this['fetch']['post'](_0x1969da,_0x43e7c0,_0x45e15b);if(_0x42ec23['status']>0xc7&&_0x42ec23['status']<0x12c){const _0x4f0baf=yield _0x42ec23['json']();return new SuccessfulAccountResponse(_0x4f0baf);}const _0x3d43d5=yield _0x42ec23['json']();return new FailedAccountResponse(_0x3d43d5);}catch(_0x464b0e){if(_0x464b0e instanceof Error)return new FailedAccountResponse({'detail':_0x464b0e['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x464b0e;}});}['remove'](_0x23e7cd,_0x47ffbd,_0x1088e1){return __awaiter$2(this,void 0,void 0,function*(){const _0x5e3404='List/'+_0x23e7cd+'/'+_0x47ffbd,_0x4c70d5=yield this['fetch']['delete'](_0x5e3404,_0x1088e1);try{if(_0x4c70d5['status']>0xc7&&_0x4c70d5['status']<0x12c){const _0x10a01a=yield _0x4c70d5['json']();return new SuccessfulAccountResponse(_0x10a01a);}const _0x2f4f80=yield _0x4c70d5['json']();return new FailedAccountResponse(_0x2f4f80);}catch(_0x11603b){if(_0x11603b instanceof Error)return new FailedAccountResponse({'detail':_0x11603b['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x11603b;}});}}
10
-
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0xcf0452,_0x255c0a,_0x5467ff,_0x1d0cce){function _0x3d3e5c(_0x4bedcf){return _0x4bedcf instanceof _0x5467ff?_0x4bedcf:new _0x5467ff(function(_0x10d891){_0x10d891(_0x4bedcf);});}return new(_0x5467ff||(_0x5467ff=Promise))(function(_0x4b8679,_0x548eb9){function _0x4f86b1(_0x41bfc6){try{_0xde5367(_0x1d0cce['next'](_0x41bfc6));}catch(_0x42c8ab){_0x548eb9(_0x42c8ab);}}function _0x6feb0a(_0x1fb389){try{_0xde5367(_0x1d0cce['throw'](_0x1fb389));}catch(_0x24881e){_0x548eb9(_0x24881e);}}function _0xde5367(_0x3528c3){_0x3528c3['done']?_0x4b8679(_0x3528c3['value']):_0x3d3e5c(_0x3528c3['value'])['then'](_0x4f86b1,_0x6feb0a);}_0xde5367((_0x1d0cce=_0x1d0cce['apply'](_0xcf0452,_0x255c0a||[]))['next']());});};class Fetch{constructor(_0x168c02){this['baseUri']=_0x168c02,this['getUrl']=_0x1df9fc=>{return _0x1df9fc['startsWith']('/')&&(_0x1df9fc=_0x1df9fc['replace']('/','')),''+this['baseUri']+_0x1df9fc;},!_0x168c02['endsWith']('/')&&(_0x168c02=_0x168c02+'/');}['get'](_0x47c117,_0x6ad76){return __awaiter$1(this,void 0,void 0,function*(){const _0x1bc682=this['getUrl'](_0x47c117);return yield fetch(_0x1bc682,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x6ad76}});});}['post'](_0x11346d,_0x228281,_0x4d8f30){return __awaiter$1(this,void 0,void 0,function*(){const _0x138dc5=this['getUrl'](_0x11346d);return yield fetch(_0x138dc5,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x228281},'body':_0x4d8f30?JSON['stringify'](_0x4d8f30):null});});}['put'](_0x1af94e,_0x20a18b,_0x409770){return __awaiter$1(this,void 0,void 0,function*(){const _0x5a85b4=this['getUrl'](_0x1af94e);return yield fetch(_0x5a85b4,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x20a18b},'body':_0x409770?JSON['stringify'](_0x409770):null});});}['delete'](_0x30f8d4,_0x2f63c3){return __awaiter$1(this,void 0,void 0,function*(){const _0x3d943b=this['getUrl'](_0x30f8d4);return yield fetch(_0x3d943b,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2f63c3}});});}}
12
-
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x4f4f17,_0x5a3e3d,_0x3afe3f,_0x2bf4c4){function _0x268e0e(_0x49efe3){return _0x49efe3 instanceof _0x3afe3f?_0x49efe3:new _0x3afe3f(function(_0x3e1ff7){_0x3e1ff7(_0x49efe3);});}return new(_0x3afe3f||(_0x3afe3f=Promise))(function(_0x4f0430,_0x550417){function _0x51312b(_0x4d5dd2){try{_0xfbcc64(_0x2bf4c4['next'](_0x4d5dd2));}catch(_0x1355bb){_0x550417(_0x1355bb);}}function _0x570c7d(_0x4a0083){try{_0xfbcc64(_0x2bf4c4['throw'](_0x4a0083));}catch(_0x327c1d){_0x550417(_0x327c1d);}}function _0xfbcc64(_0x4ee5f4){_0x4ee5f4['done']?_0x4f0430(_0x4ee5f4['value']):_0x268e0e(_0x4ee5f4['value'])['then'](_0x51312b,_0x570c7d);}_0xfbcc64((_0x2bf4c4=_0x2bf4c4['apply'](_0x4f4f17,_0x5a3e3d||[]))['next']());});};class AdminClient{constructor(_0x377ad8='https://admin.searchability.dev/'){var _0x175705=new Fetch(_0x377ad8);this['Accounts']=new AccountService(_0x175705),this['Lists']=new ListService(_0x175705),this['ApiKeys']=new ApiKeyService(_0x175705);}}class AuthClient{constructor(_0x18e197='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x18e197);}['login'](_0x236d5b){return __awaiter(this,void 0,void 0,function*(){var _0x513980='login/'+_0x236d5b;try{const _0x2f7814=yield yield fetch(_0x513980);if(_0x2f7814['status']>0xc7&&_0x2f7814['status']<0x12c){const _0x4d9660=yield _0x2f7814['json']();return new SuccessfulAuthResponse(_0x4d9660);}const _0x4f4578=yield _0x2f7814['json']();return new FailedAuthResponse(_0x4f4578);}catch(_0x27f053){if(_0x27f053 instanceof Error)return new FailedAuthResponse({'detail':_0x27f053['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x27f053;}});}['refresh'](_0x34e89d){return __awaiter(this,void 0,void 0,function*(){var _0x5dd95d='refresh';try{const _0x2fd895=yield this['fetch']['post'](_0x5dd95d,_0x34e89d,null);if(_0x2fd895['status']>0xc7&&_0x2fd895['status']<0x12c){const _0x48c893=yield _0x2fd895['json']();return new SuccessfulAuthResponse(_0x48c893);}const _0x535376=yield _0x2fd895['json']();return new FailedAuthResponse(_0x535376);}catch(_0x5a6216){if(_0x5a6216 instanceof Error)return new FailedAuthResponse({'detail':_0x5a6216['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5a6216;}});}}
14
-
15
- export { AdminClient, AuthClient };