@searchability/admin-client 0.0.43 → 0.0.44

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(_0x3538ba){_0x3538ba[_0x3538ba['Ok']=0x0]='Ok',_0x3538ba[_0x3538ba['Refresh']=0x1]='Refresh',_0x3538ba[_0x3538ba['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x16c42d){this['isSuccess']=_0x16c42d;}}class SuccessfulAccountResponse extends Response{constructor(_0x39a57a){super(!![]),this['account']=_0x39a57a;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x2cfba2){super(![]),this['problem']=_0x2cfba2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x4308f2){super(!![]),this['tokens']=_0x4308f2;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x59789b){super(![]),this['problem']=_0x59789b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x3062f4){super(!![]),this['apiKey']=_0x3062f4;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x1f4a3d){super(![]),this['problem']=_0x1f4a3d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0xcdf71d){super(!![]),this['searchService']=_0xcdf71d;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x145690){super(![]),this['problem']=_0x145690;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x50f15a){super(!![]),this['searchService']=_0x50f15a;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServiceResponse extends Response{constructor(_0x5b41c4){super(![]),this['problem']=_0x5b41c4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x397fc3){super(!![]),this['apiKeyValue']=_0x397fc3;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x1f9897){super(!![]),this['obj']=_0x1f9897;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x110db8){super(![]),this['problem']=_0x110db8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x4cccf1){super(![]),this['problem']=_0x4cccf1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
+
3
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x50a3c9,_0x586433,_0x145ca8,_0x22a5ae){function _0x36b57b(_0xadfd0){return _0xadfd0 instanceof _0x145ca8?_0xadfd0:new _0x145ca8(function(_0x2a24ed){_0x2a24ed(_0xadfd0);});}return new(_0x145ca8||(_0x145ca8=Promise))(function(_0xdf23ef,_0x2b884f){function _0x45faf6(_0x2cf5e6){try{_0x1985bb(_0x22a5ae['next'](_0x2cf5e6));}catch(_0x2a3572){_0x2b884f(_0x2a3572);}}function _0x2bd217(_0x20794d){try{_0x1985bb(_0x22a5ae['throw'](_0x20794d));}catch(_0x592c90){_0x2b884f(_0x592c90);}}function _0x1985bb(_0x3315fc){_0x3315fc['done']?_0xdf23ef(_0x3315fc['value']):_0x36b57b(_0x3315fc['value'])['then'](_0x45faf6,_0x2bd217);}_0x1985bb((_0x22a5ae=_0x22a5ae['apply'](_0x50a3c9,_0x586433||[]))['next']());});};class AccountService{constructor(_0x510641){this['fetch']=_0x510641;}['get'](_0x33ed0c,_0x164838){return __awaiter$5(this,void 0,void 0,function*(){const _0x201bfb='Account/'+_0x33ed0c+'/',_0x5667bd=yield this['fetch']['get'](_0x201bfb,_0x164838);try{if(_0x5667bd['status']>0xc7&&_0x5667bd['status']<0x12c){const _0x2922d7=yield _0x5667bd['json']();return new SuccessfulAccountResponse(_0x2922d7);}const _0x4420cf=yield _0x5667bd['json']();return new FailedAccountResponse(_0x4420cf);}catch(_0x154c13){if(_0x154c13 instanceof Error)return new FailedAccountResponse({'detail':_0x154c13['message'],'title':_0x154c13['name'],'status':0x1f4,'instance':'','type':''});throw _0x154c13;}});}}
4
+
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x495d37,_0x54d20e,_0x13606a,_0x4a9157){function _0x15e583(_0x102b10){return _0x102b10 instanceof _0x13606a?_0x102b10:new _0x13606a(function(_0xb2a19d){_0xb2a19d(_0x102b10);});}return new(_0x13606a||(_0x13606a=Promise))(function(_0x4bc6b4,_0xf8a53f){function _0x2d0dd0(_0x5967ed){try{_0x44f35a(_0x4a9157['next'](_0x5967ed));}catch(_0x2d01f0){_0xf8a53f(_0x2d01f0);}}function _0xaa517d(_0x49aea6){try{_0x44f35a(_0x4a9157['throw'](_0x49aea6));}catch(_0x253ee4){_0xf8a53f(_0x253ee4);}}function _0x44f35a(_0x1a6b78){_0x1a6b78['done']?_0x4bc6b4(_0x1a6b78['value']):_0x15e583(_0x1a6b78['value'])['then'](_0x2d0dd0,_0xaa517d);}_0x44f35a((_0x4a9157=_0x4a9157['apply'](_0x495d37,_0x54d20e||[]))['next']());});};class ApiKeyService{constructor(_0x1775a5){this['fetch']=_0x1775a5,this['path']='api-key';}['create'](_0x3dda47,_0x3954c3,_0x4b5b5f){return __awaiter$4(this,void 0,void 0,function*(){const _0x38c8c1={'account_name':_0x3dda47,'api_key_name':_0x3954c3};try{const _0x49950c=yield this['fetch']['post'](this['path'],_0x4b5b5f,_0x38c8c1);if(_0x49950c['status']>0xc7&&_0x49950c['status']<0x12c){const _0x22fc65=yield _0x49950c['json']();return new SuccessfulApiKeyResponse(_0x22fc65);}const _0x4c3d69=yield _0x49950c['json']();return new FailedApiKeyResponse(_0x4c3d69);}catch(_0x39624d){if(_0x39624d instanceof Error)return new FailedApiKeyResponse({'detail':_0x39624d['message'],'title':_0x39624d['name'],'status':0x1f4,'instance':'','type':''});throw _0x39624d;}});}['view'](_0x104630,_0x3226c9,_0x39f7f8){return __awaiter$4(this,void 0,void 0,function*(){const _0xd999eb=this['path']+'/'+_0x104630+'/'+_0x3226c9;try{const _0x540492=yield this['fetch']['get'](_0xd999eb,_0x39f7f8);if(_0x540492['status']>0xc7&&_0x540492['status']<0x12c){const _0x2a464d=yield _0x540492['json']();return new SuccessfulApiKeyValueResponse(_0x2a464d);}const _0x14c815=yield _0x540492['json']();return new FailedApiKeyValueResponse(_0x14c815);}catch(_0x4725f7){if(_0x4725f7 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x4725f7['message'],'title':_0x4725f7['name'],'status':0x1f4,'instance':'','type':''});throw _0x4725f7;}});}['delete'](_0x37f254,_0x35c5f4,_0x3fb721){return __awaiter$4(this,void 0,void 0,function*(){const _0x2198e5=this['path']+'/'+_0x37f254+'/'+_0x35c5f4;try{const _0x2ef813=yield this['fetch']['delete'](_0x2198e5,_0x3fb721);if(_0x2ef813['status']>0xc7&&_0x2ef813['status']<0x12c)return new SuccessfulResponse({});const _0x1f6903=yield _0x2ef813['json']();return new FailedResponse(_0x1f6903);}catch(_0x161bec){if(_0x161bec instanceof Error)return new FailedResponse({'detail':_0x161bec['message'],'title':_0x161bec['name'],'status':0x1f4,'instance':'','type':''});throw _0x161bec;}});}}
6
+
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x4262e7,_0x896abb,_0x3abf5e,_0x1394de){function _0x6c8e48(_0x2ac293){return _0x2ac293 instanceof _0x3abf5e?_0x2ac293:new _0x3abf5e(function(_0xed3f6a){_0xed3f6a(_0x2ac293);});}return new(_0x3abf5e||(_0x3abf5e=Promise))(function(_0x21e9e3,_0x37f372){function _0x4fa78b(_0xfaf999){try{_0x1558fd(_0x1394de['next'](_0xfaf999));}catch(_0x20505d){_0x37f372(_0x20505d);}}function _0x25db80(_0x1fc64e){try{_0x1558fd(_0x1394de['throw'](_0x1fc64e));}catch(_0x498e82){_0x37f372(_0x498e82);}}function _0x1558fd(_0x30d317){_0x30d317['done']?_0x21e9e3(_0x30d317['value']):_0x6c8e48(_0x30d317['value'])['then'](_0x4fa78b,_0x25db80);}_0x1558fd((_0x1394de=_0x1394de['apply'](_0x4262e7,_0x896abb||[]))['next']());});};class ListService{constructor(_0x58fb76){this['fetch']=_0x58fb76;}['add'](_0x553c82,_0x294abc,_0x3eb2c0){return __awaiter$3(this,void 0,void 0,function*(){const _0x53e11a='List',_0x3f193d={'account_name':_0x553c82,'list_name':_0x294abc};try{const _0x155cb4=yield this['fetch']['post'](_0x53e11a,_0x3eb2c0,_0x3f193d);if(_0x155cb4['status']>0xc7&&_0x155cb4['status']<0x12c){const _0x5d18b3=yield _0x155cb4['json']();return new SuccessfulAccountResponse(_0x5d18b3);}const _0x497210=yield _0x155cb4['json']();return new FailedAccountResponse(_0x497210);}catch(_0xe3e3b){if(_0xe3e3b instanceof Error)return new FailedAccountResponse({'detail':_0xe3e3b['message'],'title':_0xe3e3b['name'],'status':0x1f4,'instance':'','type':''});throw _0xe3e3b;}});}['remove'](_0x195da,_0x366cb8,_0x7924d){return __awaiter$3(this,void 0,void 0,function*(){const _0x3045ee='List/'+_0x195da+'/'+_0x366cb8,_0x165220=yield this['fetch']['delete'](_0x3045ee,_0x7924d);try{if(_0x165220['status']>0xc7&&_0x165220['status']<0x12c){const _0x171bd0=yield _0x165220['json']();return new SuccessfulAccountResponse(_0x171bd0);}const _0xf6da3e=yield _0x165220['json']();return new FailedAccountResponse(_0xf6da3e);}catch(_0x1cc5d9){if(_0x1cc5d9 instanceof Error)return new FailedAccountResponse({'detail':_0x1cc5d9['message'],'title':_0x1cc5d9['name'],'status':0x1f4,'instance':'','type':''});throw _0x1cc5d9;}});}}
8
+
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0xbf9695,_0x12b2f1,_0x19ab8f,_0x34da1a){function _0x1673d9(_0x18ea3){return _0x18ea3 instanceof _0x19ab8f?_0x18ea3:new _0x19ab8f(function(_0x580534){_0x580534(_0x18ea3);});}return new(_0x19ab8f||(_0x19ab8f=Promise))(function(_0x11a659,_0xfabf82){function _0x320a0e(_0xcb3227){try{_0x5aaf59(_0x34da1a['next'](_0xcb3227));}catch(_0x2f9838){_0xfabf82(_0x2f9838);}}function _0x52ab89(_0x2110d2){try{_0x5aaf59(_0x34da1a['throw'](_0x2110d2));}catch(_0x1a0833){_0xfabf82(_0x1a0833);}}function _0x5aaf59(_0x5d29f9){_0x5d29f9['done']?_0x11a659(_0x5d29f9['value']):_0x1673d9(_0x5d29f9['value'])['then'](_0x320a0e,_0x52ab89);}_0x5aaf59((_0x34da1a=_0x34da1a['apply'](_0xbf9695,_0x12b2f1||[]))['next']());});};class Fetch{constructor(_0xfb9a42){this['baseUri']=_0xfb9a42,this['getUrl']=_0x297a58=>{return _0x297a58['startsWith']('/')&&(_0x297a58=_0x297a58['replace']('/','')),''+this['baseUri']+_0x297a58;},!_0xfb9a42['endsWith']('/')&&(_0xfb9a42=_0xfb9a42+'/');}['get'](_0x2728ac,_0x3673a6){return __awaiter$2(this,void 0,void 0,function*(){const _0xb298e0=this['getUrl'](_0x2728ac);return yield fetch(_0xb298e0,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3673a6}});});}['post'](_0x36fc06,_0x58d8b3,_0x22484d){return __awaiter$2(this,void 0,void 0,function*(){const _0x1a5e8c=this['getUrl'](_0x36fc06);return yield fetch(_0x1a5e8c,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x58d8b3},'body':_0x22484d?JSON['stringify'](_0x22484d):null});});}['PostNoAuth'](_0x1cc3a5,_0x5cad82){return __awaiter$2(this,void 0,void 0,function*(){const _0x330faf=this['getUrl'](_0x1cc3a5);return yield fetch(_0x330faf,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x5cad82?JSON['stringify'](_0x5cad82):null});});}['put'](_0x211122,_0x594fc4,_0x25adfc){return __awaiter$2(this,void 0,void 0,function*(){const _0x3ea47b=this['getUrl'](_0x211122);return yield fetch(_0x3ea47b,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x594fc4},'body':_0x25adfc?JSON['stringify'](_0x25adfc):null});});}['delete'](_0x1781a2,_0x3969f7){return __awaiter$2(this,void 0,void 0,function*(){const _0x4b2b6a=this['getUrl'](_0x1781a2);return yield fetch(_0x4b2b6a,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3969f7}});});}}
10
+
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x49ad91,_0x14d32b,_0x597176,_0x38cb5e){function _0x4b04f7(_0x32d671){return _0x32d671 instanceof _0x597176?_0x32d671:new _0x597176(function(_0x28e074){_0x28e074(_0x32d671);});}return new(_0x597176||(_0x597176=Promise))(function(_0x4eacf9,_0x31a1d8){function _0xacd5f4(_0x438bd3){try{_0x15bd31(_0x38cb5e['next'](_0x438bd3));}catch(_0x2b8d81){_0x31a1d8(_0x2b8d81);}}function _0x33cdaf(_0x529ccf){try{_0x15bd31(_0x38cb5e['throw'](_0x529ccf));}catch(_0x5525e3){_0x31a1d8(_0x5525e3);}}function _0x15bd31(_0x201dfd){_0x201dfd['done']?_0x4eacf9(_0x201dfd['value']):_0x4b04f7(_0x201dfd['value'])['then'](_0xacd5f4,_0x33cdaf);}_0x15bd31((_0x38cb5e=_0x38cb5e['apply'](_0x49ad91,_0x14d32b||[]))['next']());});};class SearchServersService{constructor(_0x2f4faf){this['fetch']=_0x2f4faf,this['path']='search-services';}['create'](_0x4f6edf,_0x1988ed,_0x129cd4,_0x460690,_0x5b0849,_0x16c5a0,_0x450bb2,_0x5f4114){return __awaiter$1(this,void 0,void 0,function*(){const _0x542281={'account_name':_0x4f6edf,'search_service_name':_0x1988ed,'endpoint':_0x129cd4,'key':_0x460690,'country':_0x5b0849,'provider':_0x16c5a0,'index_name':_0x450bb2};try{const _0x193b40=yield this['fetch']['post'](this['path'],_0x5f4114,_0x542281);if(_0x193b40['status']>0xc7&&_0x193b40['status']<0x12c){const _0x4a04aa=yield _0x193b40['json']();return new SuccessfulSearchServiceResponse(_0x4a04aa);}const _0x420295=yield _0x193b40['json']();return new FailedSearchServiceResponse(_0x420295);}catch(_0x1e10f3){if(_0x1e10f3 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x1e10f3['message'],'title':_0x1e10f3['name'],'status':0x1f4,'instance':'','type':''});throw _0x1e10f3;}});}['delete'](_0x1cad5c,_0x280b8f,_0x295d7b){return __awaiter$1(this,void 0,void 0,function*(){const _0x1d550d=this['path']+'/'+_0x1cad5c+'/'+_0x280b8f;try{const _0x525fd2=yield this['fetch']['delete'](_0x1d550d,_0x295d7b);if(_0x525fd2['status']>0xc7&&_0x525fd2['status']<0x12c)return new SuccessfulResponse({});const _0x42d0a6=yield _0x525fd2['json']();return new FailedResponse(_0x42d0a6);}catch(_0x5c8026){if(_0x5c8026 instanceof Error)return new FailedResponse({'detail':_0x5c8026['message'],'title':_0x5c8026['name'],'status':0x1f4,'instance':'','type':''});throw _0x5c8026;}});}['view'](_0x21b61d,_0x2965dc,_0x2adef9){return __awaiter$1(this,void 0,void 0,function*(){const _0x493783=this['path']+'/'+_0x21b61d+'/'+_0x2965dc;try{const _0x5e2a9e=yield this['fetch']['get'](_0x493783,_0x2adef9);if(_0x5e2a9e['status']>0xc7&&_0x5e2a9e['status']<0x12c){const _0x12bd6f=yield _0x5e2a9e['json']();return new SuccessfulViewSearchServiceResponse(_0x12bd6f);}const _0x5401ee=yield _0x5e2a9e['json']();return new FailedViewSearchServiceResponse(_0x5401ee);}catch(_0x360da7){if(_0x360da7 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x360da7['message'],'title':_0x360da7['name'],'status':0x1f4,'instance':'','type':''});throw _0x360da7;}});}['edit'](_0x574c6c,_0x2be1b2,_0x3d0dfc,_0x4550d0,_0x3f40dd,_0x238495){return __awaiter$1(this,void 0,void 0,function*(){const _0x344472={'account_name':_0x574c6c,'search_service_name':_0x2be1b2,'new_search_service_name':_0x3d0dfc,'key':_0x4550d0,'country':_0x3f40dd};try{const _0x2ea75e=yield this['fetch']['put'](this['path'],_0x238495,_0x344472);if(_0x2ea75e['status']>0xc7&&_0x2ea75e['status']<0x12c){const _0x55056d=yield _0x2ea75e['json']();return new SuccessfulSearchServiceResponse(_0x55056d);}const _0x41fa66=yield _0x2ea75e['json']();return new FailedSearchServiceResponse(_0x41fa66);}catch(_0x1ae6be){if(_0x1ae6be instanceof Error)return new FailedSearchServiceResponse({'detail':_0x1ae6be['message'],'title':_0x1ae6be['name'],'status':0x1f4,'instance':'','type':''});throw _0x1ae6be;}});}}
12
+
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x580498,_0x3e739a,_0x31964f,_0x490fab){function _0x1c60b8(_0x4783cb){return _0x4783cb instanceof _0x31964f?_0x4783cb:new _0x31964f(function(_0x1bab0c){_0x1bab0c(_0x4783cb);});}return new(_0x31964f||(_0x31964f=Promise))(function(_0x53a3da,_0xa666f2){function _0x2167a2(_0x53c867){try{_0x4e9ff8(_0x490fab['next'](_0x53c867));}catch(_0x5c9235){_0xa666f2(_0x5c9235);}}function _0x146f80(_0x3cc9f6){try{_0x4e9ff8(_0x490fab['throw'](_0x3cc9f6));}catch(_0x525e60){_0xa666f2(_0x525e60);}}function _0x4e9ff8(_0xd2af22){_0xd2af22['done']?_0x53a3da(_0xd2af22['value']):_0x1c60b8(_0xd2af22['value'])['then'](_0x2167a2,_0x146f80);}_0x4e9ff8((_0x490fab=_0x490fab['apply'](_0x580498,_0x3e739a||[]))['next']());});};class AdminClient{constructor(_0x4bf181='https://admin.searchability.dev/'){var _0x4b3ebf=new Fetch(_0x4bf181);this['Accounts']=new AccountService(_0x4b3ebf),this['Lists']=new ListService(_0x4b3ebf),this['ApiKeys']=new ApiKeyService(_0x4b3ebf),this['SearchServices']=new SearchServersService(_0x4b3ebf);}}class AuthClient{constructor(_0x25ba4e='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x25ba4e);}['login'](_0xe1f699){return __awaiter(this,void 0,void 0,function*(){const _0x51e9b4='login/'+_0xe1f699;try{const _0x50a6b5=yield yield fetch(_0x51e9b4);if(_0x50a6b5['status']>0xc7&&_0x50a6b5['status']<0x12c){const _0x199b66=yield _0x50a6b5['json']();return new SuccessfulAuthResponse(_0x199b66);}const _0x187e58=yield _0x50a6b5['json']();return new FailedAuthResponse(_0x187e58);}catch(_0x14f369){if(_0x14f369 instanceof Error)return new FailedAuthResponse({'detail':_0x14f369['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x14f369;}});}['refresh'](_0x289975){return __awaiter(this,void 0,void 0,function*(){const _0x2bebfe='refresh',_0xc99217={'refresh_token':_0x289975};try{const _0x1faa9f=yield this['fetch']['PostNoAuth'](_0x2bebfe,_0xc99217);if(_0x1faa9f['status']>0xc7&&_0x1faa9f['status']<0x12c){const _0x35289d=yield _0x1faa9f['json']();return new SuccessfulAuthResponse(_0x35289d);}const _0x4d8c6f=yield _0x1faa9f['json']();return new FailedAuthResponse(_0x4d8c6f);}catch(_0x273c50){if(_0x273c50 instanceof Error)return new FailedAuthResponse({'detail':_0x273c50['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x273c50;}});}['getTokenStatus'](_0x23c085){if(Date['now']()<_0x23c085['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x23c085['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
14
+
15
+ export { AdminClient, AuthClient, TokenStatus, Tokens };
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- exports.TokenStatus = void 0;(function(_0x4bf030){_0x4bf030[_0x4bf030['Ok']=0x0]='Ok',_0x4bf030[_0x4bf030['Refresh']=0x1]='Refresh',_0x4bf030[_0x4bf030['Expired']=0x2]='Expired';}(exports.TokenStatus||(exports.TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x3fbf65){this['isSuccess']=_0x3fbf65;}}class SuccessfulAccountResponse extends Response{constructor(_0x4e38aa){super(!![]),this['account']=_0x4e38aa;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x1165ed){super(![]),this['problem']=_0x1165ed;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x3b7aa0){super(!![]),this['tokens']=_0x3b7aa0;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x8734d4){super(![]),this['problem']=_0x8734d4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x535374){super(!![]),this['apiKey']=_0x535374;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x26da03){super(![]),this['problem']=_0x26da03;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x5cfd09){super(!![]),this['searchService']=_0x5cfd09;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x402f74){super(![]),this['problem']=_0x402f74;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x3d3db2){super(!![]),this['searchService']=_0x3d3db2;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServiceResponse extends Response{constructor(_0x424c80){super(![]),this['problem']=_0x424c80;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x314fd3){super(!![]),this['apiKeyValue']=_0x314fd3;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x34bac3){super(!![]),this['obj']=_0x34bac3;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x85bf88){super(![]),this['problem']=_0x85bf88;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x54158a){super(![]),this['problem']=_0x54158a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
3
+ exports.TokenStatus = void 0;(function(_0x4266d1){_0x4266d1[_0x4266d1['Ok']=0x0]='Ok',_0x4266d1[_0x4266d1['Refresh']=0x1]='Refresh',_0x4266d1[_0x4266d1['Expired']=0x2]='Expired';}(exports.TokenStatus||(exports.TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x190e38){this['isSuccess']=_0x190e38;}}class SuccessfulAccountResponse extends Response{constructor(_0x5ec4c4){super(!![]),this['account']=_0x5ec4c4;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x1d820f){super(![]),this['problem']=_0x1d820f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x47da5b){super(!![]),this['tokens']=_0x47da5b;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x28736f){super(![]),this['problem']=_0x28736f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0xd96cf1){super(!![]),this['apiKey']=_0xd96cf1;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x7f381e){super(![]),this['problem']=_0x7f381e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x268cf6){super(!![]),this['searchService']=_0x268cf6;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x51b8dc){super(![]),this['problem']=_0x51b8dc;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x5667ab){super(!![]),this['searchService']=_0x5667ab;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServiceResponse extends Response{constructor(_0x1bcb6f){super(![]),this['problem']=_0x1bcb6f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x16dc8c){super(!![]),this['apiKeyValue']=_0x16dc8c;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x4dcc8d){super(!![]),this['obj']=_0x4dcc8d;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0xadbd46){super(![]),this['problem']=_0xadbd46;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x421bfa){super(![]),this['problem']=_0x421bfa;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
5
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x418c94,_0x2c45f7,_0x4e1766,_0x17aabc){function _0x41d6b6(_0x5cfcdd){return _0x5cfcdd instanceof _0x4e1766?_0x5cfcdd:new _0x4e1766(function(_0x323f52){_0x323f52(_0x5cfcdd);});}return new(_0x4e1766||(_0x4e1766=Promise))(function(_0x305d1e,_0x2aebc4){function _0x202373(_0x2f0ee6){try{_0x4df82(_0x17aabc['next'](_0x2f0ee6));}catch(_0x637445){_0x2aebc4(_0x637445);}}function _0x30fb8b(_0x5ee5f0){try{_0x4df82(_0x17aabc['throw'](_0x5ee5f0));}catch(_0x2c4c07){_0x2aebc4(_0x2c4c07);}}function _0x4df82(_0x491475){_0x491475['done']?_0x305d1e(_0x491475['value']):_0x41d6b6(_0x491475['value'])['then'](_0x202373,_0x30fb8b);}_0x4df82((_0x17aabc=_0x17aabc['apply'](_0x418c94,_0x2c45f7||[]))['next']());});};class AccountService{constructor(_0x2ab13b){this['fetch']=_0x2ab13b;}['get'](_0x314dcb,_0x35c64b){return __awaiter$5(this,void 0,void 0,function*(){const _0x122a20='Account/'+_0x314dcb+'/',_0x11e799=yield this['fetch']['get'](_0x122a20,_0x35c64b);try{if(_0x11e799['status']>0xc7&&_0x11e799['status']<0x12c){const _0x4a8eac=yield _0x11e799['json']();return new SuccessfulAccountResponse(_0x4a8eac);}const _0x439925=yield _0x11e799['json']();return new FailedAccountResponse(_0x439925);}catch(_0x1c7fa8){if(_0x1c7fa8 instanceof Error)return new FailedAccountResponse({'detail':_0x1c7fa8['message'],'title':_0x1c7fa8['name'],'status':0x1f4,'instance':'','type':''});throw _0x1c7fa8;}});}}
5
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x1b4c21,_0xe81850,_0x43884c,_0xd18604){function _0x3fd056(_0x17a780){return _0x17a780 instanceof _0x43884c?_0x17a780:new _0x43884c(function(_0x19e9a2){_0x19e9a2(_0x17a780);});}return new(_0x43884c||(_0x43884c=Promise))(function(_0x316878,_0x304032){function _0xc933e1(_0x493c47){try{_0xce7557(_0xd18604['next'](_0x493c47));}catch(_0x2faf61){_0x304032(_0x2faf61);}}function _0x51a1a4(_0x34ae81){try{_0xce7557(_0xd18604['throw'](_0x34ae81));}catch(_0x3701a8){_0x304032(_0x3701a8);}}function _0xce7557(_0x1136b2){_0x1136b2['done']?_0x316878(_0x1136b2['value']):_0x3fd056(_0x1136b2['value'])['then'](_0xc933e1,_0x51a1a4);}_0xce7557((_0xd18604=_0xd18604['apply'](_0x1b4c21,_0xe81850||[]))['next']());});};class AccountService{constructor(_0x1c638e){this['fetch']=_0x1c638e;}['get'](_0x545fd7,_0x4f1199){return __awaiter$5(this,void 0,void 0,function*(){const _0x16f5f2='Account/'+_0x545fd7+'/',_0x2189b4=yield this['fetch']['get'](_0x16f5f2,_0x4f1199);try{if(_0x2189b4['status']>0xc7&&_0x2189b4['status']<0x12c){const _0x16dc4c=yield _0x2189b4['json']();return new SuccessfulAccountResponse(_0x16dc4c);}const _0x41a292=yield _0x2189b4['json']();return new FailedAccountResponse(_0x41a292);}catch(_0x134eba){if(_0x134eba instanceof Error)return new FailedAccountResponse({'detail':_0x134eba['message'],'title':_0x134eba['name'],'status':0x1f4,'instance':'','type':''});throw _0x134eba;}});}}
6
6
 
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x5eba7c,_0x58c1d4,_0x44e4d8,_0x5df17a){function _0xf67cbd(_0x28e216){return _0x28e216 instanceof _0x44e4d8?_0x28e216:new _0x44e4d8(function(_0x5c584a){_0x5c584a(_0x28e216);});}return new(_0x44e4d8||(_0x44e4d8=Promise))(function(_0x5d3af1,_0x321d97){function _0xd26e36(_0x55946a){try{_0x5e116c(_0x5df17a['next'](_0x55946a));}catch(_0x43a5ea){_0x321d97(_0x43a5ea);}}function _0x1c8433(_0x1a847a){try{_0x5e116c(_0x5df17a['throw'](_0x1a847a));}catch(_0x414ef4){_0x321d97(_0x414ef4);}}function _0x5e116c(_0x579771){_0x579771['done']?_0x5d3af1(_0x579771['value']):_0xf67cbd(_0x579771['value'])['then'](_0xd26e36,_0x1c8433);}_0x5e116c((_0x5df17a=_0x5df17a['apply'](_0x5eba7c,_0x58c1d4||[]))['next']());});};class ApiKeyService{constructor(_0x93d4bc){this['fetch']=_0x93d4bc,this['path']='api-key';}['create'](_0x3b6235,_0x357fa9,_0x10c4c8){return __awaiter$4(this,void 0,void 0,function*(){const _0x1419aa={'account_name':_0x3b6235,'api_key_name':_0x357fa9};try{const _0x4b7d5b=yield this['fetch']['post'](this['path'],_0x10c4c8,_0x1419aa);if(_0x4b7d5b['status']>0xc7&&_0x4b7d5b['status']<0x12c){const _0x5cea2b=yield _0x4b7d5b['json']();return new SuccessfulApiKeyResponse(_0x5cea2b);}const _0x3e6815=yield _0x4b7d5b['json']();return new FailedApiKeyResponse(_0x3e6815);}catch(_0x34a8d2){if(_0x34a8d2 instanceof Error)return new FailedApiKeyResponse({'detail':_0x34a8d2['message'],'title':_0x34a8d2['name'],'status':0x1f4,'instance':'','type':''});throw _0x34a8d2;}});}['view'](_0x1ebfd3,_0x49dd10,_0x4e5204){return __awaiter$4(this,void 0,void 0,function*(){const _0x44eb5d=this['path']+'/'+_0x1ebfd3+'/'+_0x49dd10;try{const _0x4ad156=yield this['fetch']['get'](_0x44eb5d,_0x4e5204);if(_0x4ad156['status']>0xc7&&_0x4ad156['status']<0x12c){const _0x3a7444=yield _0x4ad156['json']();return new SuccessfulApiKeyValueResponse(_0x3a7444);}const _0x31b625=yield _0x4ad156['json']();return new FailedApiKeyValueResponse(_0x31b625);}catch(_0x5cd360){if(_0x5cd360 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x5cd360['message'],'title':_0x5cd360['name'],'status':0x1f4,'instance':'','type':''});throw _0x5cd360;}});}['delete'](_0x5c299a,_0x4c63a2,_0x18859f){return __awaiter$4(this,void 0,void 0,function*(){const _0x47a01a=this['path']+'/'+_0x5c299a+'/'+_0x4c63a2;try{const _0x4e182c=yield this['fetch']['delete'](_0x47a01a,_0x18859f);if(_0x4e182c['status']>0xc7&&_0x4e182c['status']<0x12c)return new SuccessfulResponse({});const _0x499fed=yield _0x4e182c['json']();return new FailedResponse(_0x499fed);}catch(_0x593ecf){if(_0x593ecf instanceof Error)return new FailedResponse({'detail':_0x593ecf['message'],'title':_0x593ecf['name'],'status':0x1f4,'instance':'','type':''});throw _0x593ecf;}});}}
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x5097bf,_0x202df4,_0x5dec8f,_0x2eee95){function _0x52fa23(_0xbb2ce3){return _0xbb2ce3 instanceof _0x5dec8f?_0xbb2ce3:new _0x5dec8f(function(_0x4b7cb9){_0x4b7cb9(_0xbb2ce3);});}return new(_0x5dec8f||(_0x5dec8f=Promise))(function(_0x2a8799,_0xe6119c){function _0x16fcf6(_0x1fbc1f){try{_0x26392b(_0x2eee95['next'](_0x1fbc1f));}catch(_0x4794c2){_0xe6119c(_0x4794c2);}}function _0x340114(_0x57130a){try{_0x26392b(_0x2eee95['throw'](_0x57130a));}catch(_0x14828d){_0xe6119c(_0x14828d);}}function _0x26392b(_0x46cfa5){_0x46cfa5['done']?_0x2a8799(_0x46cfa5['value']):_0x52fa23(_0x46cfa5['value'])['then'](_0x16fcf6,_0x340114);}_0x26392b((_0x2eee95=_0x2eee95['apply'](_0x5097bf,_0x202df4||[]))['next']());});};class ApiKeyService{constructor(_0xa50ea7){this['fetch']=_0xa50ea7,this['path']='api-key';}['create'](_0x550f4a,_0x4bd049,_0x226cd2){return __awaiter$4(this,void 0,void 0,function*(){const _0x262051={'account_name':_0x550f4a,'api_key_name':_0x4bd049};try{const _0x4bd347=yield this['fetch']['post'](this['path'],_0x226cd2,_0x262051);if(_0x4bd347['status']>0xc7&&_0x4bd347['status']<0x12c){const _0x3ee07d=yield _0x4bd347['json']();return new SuccessfulApiKeyResponse(_0x3ee07d);}const _0xed201b=yield _0x4bd347['json']();return new FailedApiKeyResponse(_0xed201b);}catch(_0x3a7c43){if(_0x3a7c43 instanceof Error)return new FailedApiKeyResponse({'detail':_0x3a7c43['message'],'title':_0x3a7c43['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a7c43;}});}['view'](_0x3fa01a,_0x5e0964,_0x5d4201){return __awaiter$4(this,void 0,void 0,function*(){const _0xf8aab1=this['path']+'/'+_0x3fa01a+'/'+_0x5e0964;try{const _0x14ccdf=yield this['fetch']['get'](_0xf8aab1,_0x5d4201);if(_0x14ccdf['status']>0xc7&&_0x14ccdf['status']<0x12c){const _0xd5fa12=yield _0x14ccdf['json']();return new SuccessfulApiKeyValueResponse(_0xd5fa12);}const _0x490774=yield _0x14ccdf['json']();return new FailedApiKeyValueResponse(_0x490774);}catch(_0x42c05a){if(_0x42c05a instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x42c05a['message'],'title':_0x42c05a['name'],'status':0x1f4,'instance':'','type':''});throw _0x42c05a;}});}['delete'](_0xabe050,_0x5de05d,_0xb205fa){return __awaiter$4(this,void 0,void 0,function*(){const _0x311491=this['path']+'/'+_0xabe050+'/'+_0x5de05d;try{const _0x526a50=yield this['fetch']['delete'](_0x311491,_0xb205fa);if(_0x526a50['status']>0xc7&&_0x526a50['status']<0x12c)return new SuccessfulResponse({});const _0x2ad633=yield _0x526a50['json']();return new FailedResponse(_0x2ad633);}catch(_0x3e1812){if(_0x3e1812 instanceof Error)return new FailedResponse({'detail':_0x3e1812['message'],'title':_0x3e1812['name'],'status':0x1f4,'instance':'','type':''});throw _0x3e1812;}});}}
8
8
 
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x44bdf3,_0x1a1b38,_0x3276c8,_0x141bab){function _0xb6f0fa(_0x251c22){return _0x251c22 instanceof _0x3276c8?_0x251c22:new _0x3276c8(function(_0x35dc66){_0x35dc66(_0x251c22);});}return new(_0x3276c8||(_0x3276c8=Promise))(function(_0x2fd667,_0x3fccc8){function _0x2ece06(_0x4ab2cd){try{_0x5f0fd8(_0x141bab['next'](_0x4ab2cd));}catch(_0x4c3ef4){_0x3fccc8(_0x4c3ef4);}}function _0x3b729b(_0x2a47cc){try{_0x5f0fd8(_0x141bab['throw'](_0x2a47cc));}catch(_0x2d3621){_0x3fccc8(_0x2d3621);}}function _0x5f0fd8(_0xb17e1d){_0xb17e1d['done']?_0x2fd667(_0xb17e1d['value']):_0xb6f0fa(_0xb17e1d['value'])['then'](_0x2ece06,_0x3b729b);}_0x5f0fd8((_0x141bab=_0x141bab['apply'](_0x44bdf3,_0x1a1b38||[]))['next']());});};class ListService{constructor(_0x1096b7){this['fetch']=_0x1096b7;}['add'](_0x2e6405,_0x1f6ac4,_0x3eec4f){return __awaiter$3(this,void 0,void 0,function*(){const _0x20accf='List',_0x1ceeb3={'account_name':_0x2e6405,'list_name':_0x1f6ac4};try{const _0x15a286=yield this['fetch']['post'](_0x20accf,_0x3eec4f,_0x1ceeb3);if(_0x15a286['status']>0xc7&&_0x15a286['status']<0x12c){const _0x4379ad=yield _0x15a286['json']();return new SuccessfulAccountResponse(_0x4379ad);}const _0x1ab6ee=yield _0x15a286['json']();return new FailedAccountResponse(_0x1ab6ee);}catch(_0x589816){if(_0x589816 instanceof Error)return new FailedAccountResponse({'detail':_0x589816['message'],'title':_0x589816['name'],'status':0x1f4,'instance':'','type':''});throw _0x589816;}});}['remove'](_0x30de5c,_0x2f3d5b,_0xab790e){return __awaiter$3(this,void 0,void 0,function*(){const _0x5d53b8='List/'+_0x30de5c+'/'+_0x2f3d5b,_0x441fb9=yield this['fetch']['delete'](_0x5d53b8,_0xab790e);try{if(_0x441fb9['status']>0xc7&&_0x441fb9['status']<0x12c){const _0x573901=yield _0x441fb9['json']();return new SuccessfulAccountResponse(_0x573901);}const _0xc8555f=yield _0x441fb9['json']();return new FailedAccountResponse(_0xc8555f);}catch(_0x229452){if(_0x229452 instanceof Error)return new FailedAccountResponse({'detail':_0x229452['message'],'title':_0x229452['name'],'status':0x1f4,'instance':'','type':''});throw _0x229452;}});}}
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x11a295,_0x3aea31,_0x294ab0,_0x389eeb){function _0x1d6663(_0x48d43a){return _0x48d43a instanceof _0x294ab0?_0x48d43a:new _0x294ab0(function(_0x13c022){_0x13c022(_0x48d43a);});}return new(_0x294ab0||(_0x294ab0=Promise))(function(_0x3ae4cc,_0xec3871){function _0x22d508(_0x9a7ae4){try{_0x287fc4(_0x389eeb['next'](_0x9a7ae4));}catch(_0x3e2896){_0xec3871(_0x3e2896);}}function _0x24ff57(_0x5c7029){try{_0x287fc4(_0x389eeb['throw'](_0x5c7029));}catch(_0x584e52){_0xec3871(_0x584e52);}}function _0x287fc4(_0x1007b8){_0x1007b8['done']?_0x3ae4cc(_0x1007b8['value']):_0x1d6663(_0x1007b8['value'])['then'](_0x22d508,_0x24ff57);}_0x287fc4((_0x389eeb=_0x389eeb['apply'](_0x11a295,_0x3aea31||[]))['next']());});};class ListService{constructor(_0x3de860){this['fetch']=_0x3de860;}['add'](_0x198256,_0x327d30,_0x4d454b){return __awaiter$3(this,void 0,void 0,function*(){const _0x118864='List',_0x4be88d={'account_name':_0x198256,'list_name':_0x327d30};try{const _0x2c69ce=yield this['fetch']['post'](_0x118864,_0x4d454b,_0x4be88d);if(_0x2c69ce['status']>0xc7&&_0x2c69ce['status']<0x12c){const _0x193cda=yield _0x2c69ce['json']();return new SuccessfulAccountResponse(_0x193cda);}const _0x49a980=yield _0x2c69ce['json']();return new FailedAccountResponse(_0x49a980);}catch(_0x3dff23){if(_0x3dff23 instanceof Error)return new FailedAccountResponse({'detail':_0x3dff23['message'],'title':_0x3dff23['name'],'status':0x1f4,'instance':'','type':''});throw _0x3dff23;}});}['remove'](_0x169f93,_0x5ae8ef,_0x37c1c3){return __awaiter$3(this,void 0,void 0,function*(){const _0xba99cb='List/'+_0x169f93+'/'+_0x5ae8ef,_0x410710=yield this['fetch']['delete'](_0xba99cb,_0x37c1c3);try{if(_0x410710['status']>0xc7&&_0x410710['status']<0x12c){const _0x35fac1=yield _0x410710['json']();return new SuccessfulAccountResponse(_0x35fac1);}const _0x36ccc2=yield _0x410710['json']();return new FailedAccountResponse(_0x36ccc2);}catch(_0x4ad713){if(_0x4ad713 instanceof Error)return new FailedAccountResponse({'detail':_0x4ad713['message'],'title':_0x4ad713['name'],'status':0x1f4,'instance':'','type':''});throw _0x4ad713;}});}}
10
10
 
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x46b4f9,_0x442f29,_0x4449d1,_0x506bed){function _0x10c818(_0x291b68){return _0x291b68 instanceof _0x4449d1?_0x291b68:new _0x4449d1(function(_0x231738){_0x231738(_0x291b68);});}return new(_0x4449d1||(_0x4449d1=Promise))(function(_0x22d5f1,_0x1b9018){function _0x56090b(_0x26ab85){try{_0x4ec8b7(_0x506bed['next'](_0x26ab85));}catch(_0x3195bb){_0x1b9018(_0x3195bb);}}function _0x1b94c5(_0xbe1b53){try{_0x4ec8b7(_0x506bed['throw'](_0xbe1b53));}catch(_0x286269){_0x1b9018(_0x286269);}}function _0x4ec8b7(_0x136a39){_0x136a39['done']?_0x22d5f1(_0x136a39['value']):_0x10c818(_0x136a39['value'])['then'](_0x56090b,_0x1b94c5);}_0x4ec8b7((_0x506bed=_0x506bed['apply'](_0x46b4f9,_0x442f29||[]))['next']());});};class Fetch{constructor(_0x3f5841){this['baseUri']=_0x3f5841,this['getUrl']=_0x397e1f=>{return _0x397e1f['startsWith']('/')&&(_0x397e1f=_0x397e1f['replace']('/','')),''+this['baseUri']+_0x397e1f;},!_0x3f5841['endsWith']('/')&&(_0x3f5841=_0x3f5841+'/');}['get'](_0x4d8b6c,_0x2798c0){return __awaiter$2(this,void 0,void 0,function*(){const _0x5e1089=this['getUrl'](_0x4d8b6c);return yield fetch(_0x5e1089,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2798c0}});});}['post'](_0x38a209,_0x1898ef,_0x1626e6){return __awaiter$2(this,void 0,void 0,function*(){const _0x2b2ec9=this['getUrl'](_0x38a209);return yield fetch(_0x2b2ec9,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1898ef},'body':_0x1626e6?JSON['stringify'](_0x1626e6):null});});}['PostNoAuth'](_0x2338ea,_0x5259d7){return __awaiter$2(this,void 0,void 0,function*(){const _0x530eb4=this['getUrl'](_0x2338ea);return yield fetch(_0x530eb4,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x5259d7?JSON['stringify'](_0x5259d7):null});});}['put'](_0x5aa518,_0xe3a816,_0x35ce0c){return __awaiter$2(this,void 0,void 0,function*(){const _0x121404=this['getUrl'](_0x5aa518);return yield fetch(_0x121404,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xe3a816},'body':_0x35ce0c?JSON['stringify'](_0x35ce0c):null});});}['delete'](_0x3769e1,_0x5ab117){return __awaiter$2(this,void 0,void 0,function*(){const _0x12c585=this['getUrl'](_0x3769e1);return yield fetch(_0x12c585,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5ab117}});});}}
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x497825,_0x3a7a20,_0x4123f0,_0x525f25){function _0xae6383(_0x5b6978){return _0x5b6978 instanceof _0x4123f0?_0x5b6978:new _0x4123f0(function(_0x5ca883){_0x5ca883(_0x5b6978);});}return new(_0x4123f0||(_0x4123f0=Promise))(function(_0x55e8f6,_0x485629){function _0x5b7e6b(_0x23c3a8){try{_0x393fd3(_0x525f25['next'](_0x23c3a8));}catch(_0x5caf1d){_0x485629(_0x5caf1d);}}function _0x1f1e3f(_0x3f971e){try{_0x393fd3(_0x525f25['throw'](_0x3f971e));}catch(_0x57b924){_0x485629(_0x57b924);}}function _0x393fd3(_0x44d897){_0x44d897['done']?_0x55e8f6(_0x44d897['value']):_0xae6383(_0x44d897['value'])['then'](_0x5b7e6b,_0x1f1e3f);}_0x393fd3((_0x525f25=_0x525f25['apply'](_0x497825,_0x3a7a20||[]))['next']());});};class Fetch{constructor(_0x16f501){this['baseUri']=_0x16f501,this['getUrl']=_0x14d6b8=>{return _0x14d6b8['startsWith']('/')&&(_0x14d6b8=_0x14d6b8['replace']('/','')),''+this['baseUri']+_0x14d6b8;},!_0x16f501['endsWith']('/')&&(_0x16f501=_0x16f501+'/');}['get'](_0x56b0cc,_0xd2f7e1){return __awaiter$2(this,void 0,void 0,function*(){const _0x3f4fc3=this['getUrl'](_0x56b0cc);return yield fetch(_0x3f4fc3,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xd2f7e1}});});}['post'](_0x5ecf15,_0x39d15d,_0x2ef8cb){return __awaiter$2(this,void 0,void 0,function*(){const _0x4828e6=this['getUrl'](_0x5ecf15);return yield fetch(_0x4828e6,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x39d15d},'body':_0x2ef8cb?JSON['stringify'](_0x2ef8cb):null});});}['PostNoAuth'](_0x5847dc,_0x194487){return __awaiter$2(this,void 0,void 0,function*(){const _0x16fa0b=this['getUrl'](_0x5847dc);return yield fetch(_0x16fa0b,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x194487?JSON['stringify'](_0x194487):null});});}['put'](_0x3ec7de,_0x242c44,_0x4ae95a){return __awaiter$2(this,void 0,void 0,function*(){const _0x33641c=this['getUrl'](_0x3ec7de);return yield fetch(_0x33641c,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x242c44},'body':_0x4ae95a?JSON['stringify'](_0x4ae95a):null});});}['delete'](_0x1cb041,_0x8db22a){return __awaiter$2(this,void 0,void 0,function*(){const _0x419205=this['getUrl'](_0x1cb041);return yield fetch(_0x419205,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x8db22a}});});}}
12
12
 
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x3ad26e,_0x139bd4,_0x3cf704,_0x246127){function _0x24b55e(_0x2cc156){return _0x2cc156 instanceof _0x3cf704?_0x2cc156:new _0x3cf704(function(_0x40715b){_0x40715b(_0x2cc156);});}return new(_0x3cf704||(_0x3cf704=Promise))(function(_0x46cbbb,_0x21fed5){function _0xeec6f(_0xe627e9){try{_0x4e1439(_0x246127['next'](_0xe627e9));}catch(_0x3cd434){_0x21fed5(_0x3cd434);}}function _0x2b8c27(_0x23f824){try{_0x4e1439(_0x246127['throw'](_0x23f824));}catch(_0x4b5f47){_0x21fed5(_0x4b5f47);}}function _0x4e1439(_0x157f78){_0x157f78['done']?_0x46cbbb(_0x157f78['value']):_0x24b55e(_0x157f78['value'])['then'](_0xeec6f,_0x2b8c27);}_0x4e1439((_0x246127=_0x246127['apply'](_0x3ad26e,_0x139bd4||[]))['next']());});};class SearchServersService{constructor(_0x5c5926){this['fetch']=_0x5c5926,this['path']='search-services';}['create'](_0x39a275,_0x244270,_0x1d7f1a,_0x5090b1,_0x35c7d5,_0x2996e8,_0x472e12,_0xdbe87b){return __awaiter$1(this,void 0,void 0,function*(){const _0x40dad1={'account_name':_0x39a275,'search_service_name':_0x244270,'endpoint':_0x1d7f1a,'key':_0x5090b1,'country':_0x35c7d5,'provider':_0x2996e8,'index_name':_0x472e12};try{const _0x22be12=yield this['fetch']['post'](this['path'],_0xdbe87b,_0x40dad1);if(_0x22be12['status']>0xc7&&_0x22be12['status']<0x12c){const _0x256d8e=yield _0x22be12['json']();return new SuccessfulSearchServiceResponse(_0x256d8e);}const _0x59ee1a=yield _0x22be12['json']();return new FailedSearchServiceResponse(_0x59ee1a);}catch(_0x401f7d){if(_0x401f7d instanceof Error)return new FailedSearchServiceResponse({'detail':_0x401f7d['message'],'title':_0x401f7d['name'],'status':0x1f4,'instance':'','type':''});throw _0x401f7d;}});}['delete'](_0x1a6907,_0x3600a4,_0x4d36af){return __awaiter$1(this,void 0,void 0,function*(){const _0x1f71ac=this['path']+'/'+_0x1a6907+'/'+_0x3600a4;try{const _0x494b45=yield this['fetch']['delete'](_0x1f71ac,_0x4d36af);if(_0x494b45['status']>0xc7&&_0x494b45['status']<0x12c)return new SuccessfulResponse({});const _0x29d296=yield _0x494b45['json']();return new FailedResponse(_0x29d296);}catch(_0x4669cf){if(_0x4669cf instanceof Error)return new FailedResponse({'detail':_0x4669cf['message'],'title':_0x4669cf['name'],'status':0x1f4,'instance':'','type':''});throw _0x4669cf;}});}['view'](_0x463ce4,_0x591340,_0x5668bf){return __awaiter$1(this,void 0,void 0,function*(){const _0x1e7800=this['path']+'/'+_0x463ce4+'/'+_0x591340;try{const _0x48ee74=yield this['fetch']['get'](_0x1e7800,_0x5668bf);if(_0x48ee74['status']>0xc7&&_0x48ee74['status']<0x12c){const _0x1dc781=yield _0x48ee74['json']();return new SuccessfulViewSearchServiceResponse(_0x1dc781);}const _0x4fbe83=yield _0x48ee74['json']();return new FailedViewSearchServiceResponse(_0x4fbe83);}catch(_0x3ca1b9){if(_0x3ca1b9 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x3ca1b9['message'],'title':_0x3ca1b9['name'],'status':0x1f4,'instance':'','type':''});throw _0x3ca1b9;}});}['edit'](_0x2c2c7d,_0xe58007,_0x283b25,_0x45cd77,_0x202c40,_0x28d87d){return __awaiter$1(this,void 0,void 0,function*(){const _0x142f8c={'account_name':_0x2c2c7d,'search_service_name':_0xe58007,'new_search_service_name':_0x283b25,'key':_0x45cd77,'country':_0x202c40};try{const _0x5bc4c9=yield this['fetch']['put'](this['path'],_0x28d87d,_0x142f8c);if(_0x5bc4c9['status']>0xc7&&_0x5bc4c9['status']<0x12c){const _0x57090f=yield _0x5bc4c9['json']();return new SuccessfulSearchServiceResponse(_0x57090f);}const _0x1fce5d=yield _0x5bc4c9['json']();return new FailedSearchServiceResponse(_0x1fce5d);}catch(_0xcc0e2f){if(_0xcc0e2f instanceof Error)return new FailedSearchServiceResponse({'detail':_0xcc0e2f['message'],'title':_0xcc0e2f['name'],'status':0x1f4,'instance':'','type':''});throw _0xcc0e2f;}});}}
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0xec7368,_0x4265a9,_0x1bce36,_0x2ce035){function _0x5e61d0(_0x20fede){return _0x20fede instanceof _0x1bce36?_0x20fede:new _0x1bce36(function(_0x5bf9a7){_0x5bf9a7(_0x20fede);});}return new(_0x1bce36||(_0x1bce36=Promise))(function(_0x24796e,_0x3d04f4){function _0x352e2c(_0x1288b1){try{_0x160767(_0x2ce035['next'](_0x1288b1));}catch(_0x776e9e){_0x3d04f4(_0x776e9e);}}function _0x273e12(_0x4bf54d){try{_0x160767(_0x2ce035['throw'](_0x4bf54d));}catch(_0x23438d){_0x3d04f4(_0x23438d);}}function _0x160767(_0x3f4aea){_0x3f4aea['done']?_0x24796e(_0x3f4aea['value']):_0x5e61d0(_0x3f4aea['value'])['then'](_0x352e2c,_0x273e12);}_0x160767((_0x2ce035=_0x2ce035['apply'](_0xec7368,_0x4265a9||[]))['next']());});};class SearchServersService{constructor(_0x3f1e41){this['fetch']=_0x3f1e41,this['path']='search-services';}['create'](_0x1da71b,_0x20c46a,_0x4de549,_0x26cdc6,_0xc120a7,_0x4a2dd4,_0x56d016,_0x125016){return __awaiter$1(this,void 0,void 0,function*(){const _0x3f6749={'account_name':_0x1da71b,'search_service_name':_0x20c46a,'endpoint':_0x4de549,'key':_0x26cdc6,'country':_0xc120a7,'provider':_0x4a2dd4,'index_name':_0x56d016};try{const _0x202c9d=yield this['fetch']['post'](this['path'],_0x125016,_0x3f6749);if(_0x202c9d['status']>0xc7&&_0x202c9d['status']<0x12c){const _0x265125=yield _0x202c9d['json']();return new SuccessfulSearchServiceResponse(_0x265125);}const _0x448e5b=yield _0x202c9d['json']();return new FailedSearchServiceResponse(_0x448e5b);}catch(_0x2f08bb){if(_0x2f08bb instanceof Error)return new FailedSearchServiceResponse({'detail':_0x2f08bb['message'],'title':_0x2f08bb['name'],'status':0x1f4,'instance':'','type':''});throw _0x2f08bb;}});}['delete'](_0x2bf79e,_0x3f72d2,_0x3a173f){return __awaiter$1(this,void 0,void 0,function*(){const _0x5d5ed7=this['path']+'/'+_0x2bf79e+'/'+_0x3f72d2;try{const _0x544d40=yield this['fetch']['delete'](_0x5d5ed7,_0x3a173f);if(_0x544d40['status']>0xc7&&_0x544d40['status']<0x12c)return new SuccessfulResponse({});const _0x574c13=yield _0x544d40['json']();return new FailedResponse(_0x574c13);}catch(_0x4ece7e){if(_0x4ece7e instanceof Error)return new FailedResponse({'detail':_0x4ece7e['message'],'title':_0x4ece7e['name'],'status':0x1f4,'instance':'','type':''});throw _0x4ece7e;}});}['view'](_0x14d55a,_0x2110e2,_0x1adf1b){return __awaiter$1(this,void 0,void 0,function*(){const _0x46f808=this['path']+'/'+_0x14d55a+'/'+_0x2110e2;try{const _0x1e22fb=yield this['fetch']['get'](_0x46f808,_0x1adf1b);if(_0x1e22fb['status']>0xc7&&_0x1e22fb['status']<0x12c){const _0x4fd2f4=yield _0x1e22fb['json']();return new SuccessfulViewSearchServiceResponse(_0x4fd2f4);}const _0x51e0e9=yield _0x1e22fb['json']();return new FailedViewSearchServiceResponse(_0x51e0e9);}catch(_0x278ed5){if(_0x278ed5 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x278ed5['message'],'title':_0x278ed5['name'],'status':0x1f4,'instance':'','type':''});throw _0x278ed5;}});}['edit'](_0x1c698d,_0x401d2a,_0x4fda80,_0x4089f9,_0x16df4d,_0x3caa13){return __awaiter$1(this,void 0,void 0,function*(){const _0x3bd531={'account_name':_0x1c698d,'search_service_name':_0x401d2a,'new_search_service_name':_0x4fda80,'key':_0x4089f9,'country':_0x16df4d};try{const _0xd76266=yield this['fetch']['put'](this['path'],_0x3caa13,_0x3bd531);if(_0xd76266['status']>0xc7&&_0xd76266['status']<0x12c){const _0x5a0c44=yield _0xd76266['json']();return new SuccessfulSearchServiceResponse(_0x5a0c44);}const _0xcf9669=yield _0xd76266['json']();return new FailedSearchServiceResponse(_0xcf9669);}catch(_0x15aab1){if(_0x15aab1 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x15aab1['message'],'title':_0x15aab1['name'],'status':0x1f4,'instance':'','type':''});throw _0x15aab1;}});}}
14
14
 
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x290239,_0x4cac74,_0x18792d,_0x29ff06){function _0x3979b5(_0x5b4adf){return _0x5b4adf instanceof _0x18792d?_0x5b4adf:new _0x18792d(function(_0x1ba535){_0x1ba535(_0x5b4adf);});}return new(_0x18792d||(_0x18792d=Promise))(function(_0x2d37fc,_0x5567ee){function _0x59c1d3(_0x26caa3){try{_0x32b87a(_0x29ff06['next'](_0x26caa3));}catch(_0x355e46){_0x5567ee(_0x355e46);}}function _0x42032f(_0x21ded0){try{_0x32b87a(_0x29ff06['throw'](_0x21ded0));}catch(_0x548d34){_0x5567ee(_0x548d34);}}function _0x32b87a(_0x15dc37){_0x15dc37['done']?_0x2d37fc(_0x15dc37['value']):_0x3979b5(_0x15dc37['value'])['then'](_0x59c1d3,_0x42032f);}_0x32b87a((_0x29ff06=_0x29ff06['apply'](_0x290239,_0x4cac74||[]))['next']());});};class AdminClient{constructor(_0x26f5ce='https://admin.searchability.dev/'){var _0x38c272=new Fetch(_0x26f5ce);this['Accounts']=new AccountService(_0x38c272),this['Lists']=new ListService(_0x38c272),this['ApiKeys']=new ApiKeyService(_0x38c272),this['SearchServices']=new SearchServersService(_0x38c272);}}class AuthClient{constructor(_0x15d46b='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x15d46b);}['login'](_0x2600ab){return __awaiter(this,void 0,void 0,function*(){const _0x2cb41a='login/'+_0x2600ab;try{const _0x466826=yield yield fetch(_0x2cb41a);if(_0x466826['status']>0xc7&&_0x466826['status']<0x12c){const _0x319d31=yield _0x466826['json']();return new SuccessfulAuthResponse(_0x319d31);}const _0x499610=yield _0x466826['json']();return new FailedAuthResponse(_0x499610);}catch(_0x13cd5e){if(_0x13cd5e instanceof Error)return new FailedAuthResponse({'detail':_0x13cd5e['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x13cd5e;}});}['refresh'](_0x21e98f){return __awaiter(this,void 0,void 0,function*(){const _0x3ed01c='refresh',_0x1ea57a={'refresh_token':_0x21e98f};try{const _0x3afbaf=yield this['fetch']['PostNoAuth'](_0x3ed01c,_0x1ea57a);if(_0x3afbaf['status']>0xc7&&_0x3afbaf['status']<0x12c){const _0x4b866a=yield _0x3afbaf['json']();return new SuccessfulAuthResponse(_0x4b866a);}const _0x5e8748=yield _0x3afbaf['json']();return new FailedAuthResponse(_0x5e8748);}catch(_0x24cad5){if(_0x24cad5 instanceof Error)return new FailedAuthResponse({'detail':_0x24cad5['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x24cad5;}});}['getTokenStatus'](_0x39ac79){if(Date['now']()<_0x39ac79['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x39ac79['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0xcc568d,_0x17c0e7,_0xbf2245,_0x246a9c){function _0x1731e4(_0x5a3617){return _0x5a3617 instanceof _0xbf2245?_0x5a3617:new _0xbf2245(function(_0x404f20){_0x404f20(_0x5a3617);});}return new(_0xbf2245||(_0xbf2245=Promise))(function(_0x33d736,_0x2edf1f){function _0x23a752(_0x132a0f){try{_0x48febe(_0x246a9c['next'](_0x132a0f));}catch(_0x4c8597){_0x2edf1f(_0x4c8597);}}function _0x19eeec(_0x47109f){try{_0x48febe(_0x246a9c['throw'](_0x47109f));}catch(_0x2dd4db){_0x2edf1f(_0x2dd4db);}}function _0x48febe(_0x351363){_0x351363['done']?_0x33d736(_0x351363['value']):_0x1731e4(_0x351363['value'])['then'](_0x23a752,_0x19eeec);}_0x48febe((_0x246a9c=_0x246a9c['apply'](_0xcc568d,_0x17c0e7||[]))['next']());});};class AdminClient{constructor(_0x464225='https://admin.searchability.dev/'){var _0x1c489e=new Fetch(_0x464225);this['Accounts']=new AccountService(_0x1c489e),this['Lists']=new ListService(_0x1c489e),this['ApiKeys']=new ApiKeyService(_0x1c489e),this['SearchServices']=new SearchServersService(_0x1c489e);}}class AuthClient{constructor(_0x3f3a30='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x3f3a30);}['login'](_0x479f1f){return __awaiter(this,void 0,void 0,function*(){const _0x572176='login/'+_0x479f1f;try{const _0x1989e9=yield yield fetch(_0x572176);if(_0x1989e9['status']>0xc7&&_0x1989e9['status']<0x12c){const _0x14ac1d=yield _0x1989e9['json']();return new SuccessfulAuthResponse(_0x14ac1d);}const _0x18477e=yield _0x1989e9['json']();return new FailedAuthResponse(_0x18477e);}catch(_0xba0995){if(_0xba0995 instanceof Error)return new FailedAuthResponse({'detail':_0xba0995['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xba0995;}});}['refresh'](_0x1fd4b7){return __awaiter(this,void 0,void 0,function*(){const _0x5bf38f='refresh',_0x53ed7d={'refresh_token':_0x1fd4b7};try{const _0x4f723c=yield this['fetch']['PostNoAuth'](_0x5bf38f,_0x53ed7d);if(_0x4f723c['status']>0xc7&&_0x4f723c['status']<0x12c){const _0x2d4ffb=yield _0x4f723c['json']();return new SuccessfulAuthResponse(_0x2d4ffb);}const _0x41abfd=yield _0x4f723c['json']();return new FailedAuthResponse(_0x41abfd);}catch(_0x5b3997){if(_0x5b3997 instanceof Error)return new FailedAuthResponse({'detail':_0x5b3997['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5b3997;}});}['getTokenStatus'](_0x9e6a2f){if(Date['now']()<_0x9e6a2f['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x9e6a2f['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
16
16
 
17
17
  exports.AdminClient = AdminClient;
18
18
  exports.AuthClient = AuthClient;
@@ -1,15 +1,15 @@
1
- var TokenStatus;(function(_0xe26518){_0xe26518[_0xe26518['Ok']=0x0]='Ok',_0xe26518[_0xe26518['Refresh']=0x1]='Refresh',_0xe26518[_0xe26518['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x2b9f7d){this['isSuccess']=_0x2b9f7d;}}class SuccessfulAccountResponse extends Response{constructor(_0x222725){super(!![]),this['account']=_0x222725;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x20bbfc){super(![]),this['problem']=_0x20bbfc;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x288ed5){super(!![]),this['tokens']=_0x288ed5;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x31035a){super(![]),this['problem']=_0x31035a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x461f92){super(!![]),this['apiKey']=_0x461f92;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x6b571a){super(![]),this['problem']=_0x6b571a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x47f50a){super(!![]),this['searchService']=_0x47f50a;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x6dad8c){super(![]),this['problem']=_0x6dad8c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x3464a1){super(!![]),this['searchService']=_0x3464a1;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServiceResponse extends Response{constructor(_0x31621c){super(![]),this['problem']=_0x31621c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x56f229){super(!![]),this['apiKeyValue']=_0x56f229;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x59fbf5){super(!![]),this['obj']=_0x59fbf5;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x51e305){super(![]),this['problem']=_0x51e305;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x1b3ec7){super(![]),this['problem']=_0x1b3ec7;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
1
+ var TokenStatus;(function(_0x586c99){_0x586c99[_0x586c99['Ok']=0x0]='Ok',_0x586c99[_0x586c99['Refresh']=0x1]='Refresh',_0x586c99[_0x586c99['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x53f224){this['isSuccess']=_0x53f224;}}class SuccessfulAccountResponse extends Response{constructor(_0x3b7690){super(!![]),this['account']=_0x3b7690;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x214be3){super(![]),this['problem']=_0x214be3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0xce52d4){super(!![]),this['tokens']=_0xce52d4;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x1e5ae1){super(![]),this['problem']=_0x1e5ae1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x1a8699){super(!![]),this['apiKey']=_0x1a8699;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x30aef5){super(![]),this['problem']=_0x30aef5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x1c2298){super(!![]),this['searchService']=_0x1c2298;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x2a199e){super(![]),this['problem']=_0x2a199e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x160940){super(!![]),this['searchService']=_0x160940;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServiceResponse extends Response{constructor(_0x129879){super(![]),this['problem']=_0x129879;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0xb67755){super(!![]),this['apiKeyValue']=_0xb67755;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x4c108a){super(!![]),this['obj']=_0x4c108a;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x7cd99f){super(![]),this['problem']=_0x7cd99f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x3afe5f){super(![]),this['problem']=_0x3afe5f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
2
 
3
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x5a867c,_0x6ebe64,_0x39144d,_0x51129d){function _0x18f919(_0x525014){return _0x525014 instanceof _0x39144d?_0x525014:new _0x39144d(function(_0x10f336){_0x10f336(_0x525014);});}return new(_0x39144d||(_0x39144d=Promise))(function(_0x390084,_0x3986be){function _0x47d665(_0x6dfdcb){try{_0x179850(_0x51129d['next'](_0x6dfdcb));}catch(_0x4cefc8){_0x3986be(_0x4cefc8);}}function _0x3041a8(_0x40c112){try{_0x179850(_0x51129d['throw'](_0x40c112));}catch(_0x5a94ed){_0x3986be(_0x5a94ed);}}function _0x179850(_0xbcb6c6){_0xbcb6c6['done']?_0x390084(_0xbcb6c6['value']):_0x18f919(_0xbcb6c6['value'])['then'](_0x47d665,_0x3041a8);}_0x179850((_0x51129d=_0x51129d['apply'](_0x5a867c,_0x6ebe64||[]))['next']());});};class AccountService{constructor(_0x589004){this['fetch']=_0x589004;}['get'](_0x315f80,_0x587597){return __awaiter$5(this,void 0,void 0,function*(){const _0x26628d='Account/'+_0x315f80+'/',_0x3f0880=yield this['fetch']['get'](_0x26628d,_0x587597);try{if(_0x3f0880['status']>0xc7&&_0x3f0880['status']<0x12c){const _0x55c3c4=yield _0x3f0880['json']();return new SuccessfulAccountResponse(_0x55c3c4);}const _0x12e6e3=yield _0x3f0880['json']();return new FailedAccountResponse(_0x12e6e3);}catch(_0x407128){if(_0x407128 instanceof Error)return new FailedAccountResponse({'detail':_0x407128['message'],'title':_0x407128['name'],'status':0x1f4,'instance':'','type':''});throw _0x407128;}});}}
3
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0xa1dcc0,_0x47f5aa,_0x19437e,_0x1763e4){function _0x1ce90f(_0x1e06ab){return _0x1e06ab instanceof _0x19437e?_0x1e06ab:new _0x19437e(function(_0x12c1a2){_0x12c1a2(_0x1e06ab);});}return new(_0x19437e||(_0x19437e=Promise))(function(_0x411e7b,_0x39638a){function _0x2ff95e(_0x2e871d){try{_0x52463e(_0x1763e4['next'](_0x2e871d));}catch(_0x3ff50b){_0x39638a(_0x3ff50b);}}function _0xe45d3f(_0x1d8649){try{_0x52463e(_0x1763e4['throw'](_0x1d8649));}catch(_0x50e377){_0x39638a(_0x50e377);}}function _0x52463e(_0x315f4b){_0x315f4b['done']?_0x411e7b(_0x315f4b['value']):_0x1ce90f(_0x315f4b['value'])['then'](_0x2ff95e,_0xe45d3f);}_0x52463e((_0x1763e4=_0x1763e4['apply'](_0xa1dcc0,_0x47f5aa||[]))['next']());});};class AccountService{constructor(_0x1431d7){this['fetch']=_0x1431d7;}['get'](_0x4ae8aa,_0x4910a8){return __awaiter$5(this,void 0,void 0,function*(){const _0x205e07='Account/'+_0x4ae8aa+'/',_0x5b0e7e=yield this['fetch']['get'](_0x205e07,_0x4910a8);try{if(_0x5b0e7e['status']>0xc7&&_0x5b0e7e['status']<0x12c){const _0x1bdc6c=yield _0x5b0e7e['json']();return new SuccessfulAccountResponse(_0x1bdc6c);}const _0x174a38=yield _0x5b0e7e['json']();return new FailedAccountResponse(_0x174a38);}catch(_0x101a0d){if(_0x101a0d instanceof Error)return new FailedAccountResponse({'detail':_0x101a0d['message'],'title':_0x101a0d['name'],'status':0x1f4,'instance':'','type':''});throw _0x101a0d;}});}}
4
4
 
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x5a66f9,_0x5e5d1c,_0x9f5ada,_0x381109){function _0x45786f(_0x2fa5bc){return _0x2fa5bc instanceof _0x9f5ada?_0x2fa5bc:new _0x9f5ada(function(_0x5b6433){_0x5b6433(_0x2fa5bc);});}return new(_0x9f5ada||(_0x9f5ada=Promise))(function(_0x336903,_0x2fa082){function _0x1a5795(_0x4d0945){try{_0x5575b4(_0x381109['next'](_0x4d0945));}catch(_0x1b362e){_0x2fa082(_0x1b362e);}}function _0x241207(_0x11d5f9){try{_0x5575b4(_0x381109['throw'](_0x11d5f9));}catch(_0xaa8c51){_0x2fa082(_0xaa8c51);}}function _0x5575b4(_0x43e6c6){_0x43e6c6['done']?_0x336903(_0x43e6c6['value']):_0x45786f(_0x43e6c6['value'])['then'](_0x1a5795,_0x241207);}_0x5575b4((_0x381109=_0x381109['apply'](_0x5a66f9,_0x5e5d1c||[]))['next']());});};class ApiKeyService{constructor(_0x4d1b18){this['fetch']=_0x4d1b18,this['path']='api-key';}['create'](_0x228e30,_0x286025,_0x569fc7){return __awaiter$4(this,void 0,void 0,function*(){const _0x80a29={'account_name':_0x228e30,'api_key_name':_0x286025};try{const _0x3cd9b3=yield this['fetch']['post'](this['path'],_0x569fc7,_0x80a29);if(_0x3cd9b3['status']>0xc7&&_0x3cd9b3['status']<0x12c){const _0x54a325=yield _0x3cd9b3['json']();return new SuccessfulApiKeyResponse(_0x54a325);}const _0x404d7b=yield _0x3cd9b3['json']();return new FailedApiKeyResponse(_0x404d7b);}catch(_0x2acbd3){if(_0x2acbd3 instanceof Error)return new FailedApiKeyResponse({'detail':_0x2acbd3['message'],'title':_0x2acbd3['name'],'status':0x1f4,'instance':'','type':''});throw _0x2acbd3;}});}['view'](_0xf7b80,_0x47b4c4,_0x3c3180){return __awaiter$4(this,void 0,void 0,function*(){const _0x176d07=this['path']+'/'+_0xf7b80+'/'+_0x47b4c4;try{const _0x2ae575=yield this['fetch']['get'](_0x176d07,_0x3c3180);if(_0x2ae575['status']>0xc7&&_0x2ae575['status']<0x12c){const _0xb10d01=yield _0x2ae575['json']();return new SuccessfulApiKeyValueResponse(_0xb10d01);}const _0x58caab=yield _0x2ae575['json']();return new FailedApiKeyValueResponse(_0x58caab);}catch(_0x124c65){if(_0x124c65 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x124c65['message'],'title':_0x124c65['name'],'status':0x1f4,'instance':'','type':''});throw _0x124c65;}});}['delete'](_0x445b15,_0x32f61e,_0x1b96f5){return __awaiter$4(this,void 0,void 0,function*(){const _0x45d684=this['path']+'/'+_0x445b15+'/'+_0x32f61e;try{const _0x3d63d9=yield this['fetch']['delete'](_0x45d684,_0x1b96f5);if(_0x3d63d9['status']>0xc7&&_0x3d63d9['status']<0x12c)return new SuccessfulResponse({});const _0x2f4b50=yield _0x3d63d9['json']();return new FailedResponse(_0x2f4b50);}catch(_0xb1b651){if(_0xb1b651 instanceof Error)return new FailedResponse({'detail':_0xb1b651['message'],'title':_0xb1b651['name'],'status':0x1f4,'instance':'','type':''});throw _0xb1b651;}});}}
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x35b659,_0x319e11,_0x284fe4,_0x3181db){function _0x328710(_0xaa7410){return _0xaa7410 instanceof _0x284fe4?_0xaa7410:new _0x284fe4(function(_0x5f59cf){_0x5f59cf(_0xaa7410);});}return new(_0x284fe4||(_0x284fe4=Promise))(function(_0x4de485,_0x4e4412){function _0x2e2514(_0xeba0be){try{_0xb165a(_0x3181db['next'](_0xeba0be));}catch(_0xd20884){_0x4e4412(_0xd20884);}}function _0xb5fd89(_0xe8f75e){try{_0xb165a(_0x3181db['throw'](_0xe8f75e));}catch(_0x46b79d){_0x4e4412(_0x46b79d);}}function _0xb165a(_0x42cf9c){_0x42cf9c['done']?_0x4de485(_0x42cf9c['value']):_0x328710(_0x42cf9c['value'])['then'](_0x2e2514,_0xb5fd89);}_0xb165a((_0x3181db=_0x3181db['apply'](_0x35b659,_0x319e11||[]))['next']());});};class ApiKeyService{constructor(_0x2d2bf4){this['fetch']=_0x2d2bf4,this['path']='api-key';}['create'](_0x81473b,_0x5ac088,_0x3e1254){return __awaiter$4(this,void 0,void 0,function*(){const _0x287eaf={'account_name':_0x81473b,'api_key_name':_0x5ac088};try{const _0x423b47=yield this['fetch']['post'](this['path'],_0x3e1254,_0x287eaf);if(_0x423b47['status']>0xc7&&_0x423b47['status']<0x12c){const _0x2b4f3e=yield _0x423b47['json']();return new SuccessfulApiKeyResponse(_0x2b4f3e);}const _0x170240=yield _0x423b47['json']();return new FailedApiKeyResponse(_0x170240);}catch(_0x1530a2){if(_0x1530a2 instanceof Error)return new FailedApiKeyResponse({'detail':_0x1530a2['message'],'title':_0x1530a2['name'],'status':0x1f4,'instance':'','type':''});throw _0x1530a2;}});}['view'](_0x179b02,_0x2fcbf2,_0x4e2366){return __awaiter$4(this,void 0,void 0,function*(){const _0x467786=this['path']+'/'+_0x179b02+'/'+_0x2fcbf2;try{const _0x1fc8b7=yield this['fetch']['get'](_0x467786,_0x4e2366);if(_0x1fc8b7['status']>0xc7&&_0x1fc8b7['status']<0x12c){const _0x1b6a9e=yield _0x1fc8b7['json']();return new SuccessfulApiKeyValueResponse(_0x1b6a9e);}const _0x42b435=yield _0x1fc8b7['json']();return new FailedApiKeyValueResponse(_0x42b435);}catch(_0x13311d){if(_0x13311d instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x13311d['message'],'title':_0x13311d['name'],'status':0x1f4,'instance':'','type':''});throw _0x13311d;}});}['delete'](_0x591b82,_0x4170d2,_0x14db60){return __awaiter$4(this,void 0,void 0,function*(){const _0x42979=this['path']+'/'+_0x591b82+'/'+_0x4170d2;try{const _0x3466c8=yield this['fetch']['delete'](_0x42979,_0x14db60);if(_0x3466c8['status']>0xc7&&_0x3466c8['status']<0x12c)return new SuccessfulResponse({});const _0x180c3b=yield _0x3466c8['json']();return new FailedResponse(_0x180c3b);}catch(_0x2d0599){if(_0x2d0599 instanceof Error)return new FailedResponse({'detail':_0x2d0599['message'],'title':_0x2d0599['name'],'status':0x1f4,'instance':'','type':''});throw _0x2d0599;}});}}
6
6
 
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x38c1c1,_0xd42dd5,_0x6cb06d,_0x5f2c13){function _0x21c133(_0x2b9a23){return _0x2b9a23 instanceof _0x6cb06d?_0x2b9a23:new _0x6cb06d(function(_0x415fc9){_0x415fc9(_0x2b9a23);});}return new(_0x6cb06d||(_0x6cb06d=Promise))(function(_0xe101d0,_0x2ed484){function _0x322275(_0x219ec6){try{_0x53ad2a(_0x5f2c13['next'](_0x219ec6));}catch(_0x3e3383){_0x2ed484(_0x3e3383);}}function _0x5b1a24(_0xbea8f9){try{_0x53ad2a(_0x5f2c13['throw'](_0xbea8f9));}catch(_0x4edde1){_0x2ed484(_0x4edde1);}}function _0x53ad2a(_0x2da2d0){_0x2da2d0['done']?_0xe101d0(_0x2da2d0['value']):_0x21c133(_0x2da2d0['value'])['then'](_0x322275,_0x5b1a24);}_0x53ad2a((_0x5f2c13=_0x5f2c13['apply'](_0x38c1c1,_0xd42dd5||[]))['next']());});};class ListService{constructor(_0x2f0b32){this['fetch']=_0x2f0b32;}['add'](_0x5e76e4,_0x3357de,_0x13805c){return __awaiter$3(this,void 0,void 0,function*(){const _0x5f4580='List',_0x363531={'account_name':_0x5e76e4,'list_name':_0x3357de};try{const _0x8b075=yield this['fetch']['post'](_0x5f4580,_0x13805c,_0x363531);if(_0x8b075['status']>0xc7&&_0x8b075['status']<0x12c){const _0x433fc6=yield _0x8b075['json']();return new SuccessfulAccountResponse(_0x433fc6);}const _0x50d74b=yield _0x8b075['json']();return new FailedAccountResponse(_0x50d74b);}catch(_0x583e50){if(_0x583e50 instanceof Error)return new FailedAccountResponse({'detail':_0x583e50['message'],'title':_0x583e50['name'],'status':0x1f4,'instance':'','type':''});throw _0x583e50;}});}['remove'](_0x3c5b83,_0x2cfaa2,_0x419a6e){return __awaiter$3(this,void 0,void 0,function*(){const _0x13c74f='List/'+_0x3c5b83+'/'+_0x2cfaa2,_0x2cb172=yield this['fetch']['delete'](_0x13c74f,_0x419a6e);try{if(_0x2cb172['status']>0xc7&&_0x2cb172['status']<0x12c){const _0xcf52cb=yield _0x2cb172['json']();return new SuccessfulAccountResponse(_0xcf52cb);}const _0x1eb799=yield _0x2cb172['json']();return new FailedAccountResponse(_0x1eb799);}catch(_0x454eb2){if(_0x454eb2 instanceof Error)return new FailedAccountResponse({'detail':_0x454eb2['message'],'title':_0x454eb2['name'],'status':0x1f4,'instance':'','type':''});throw _0x454eb2;}});}}
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x4abed7,_0x5e26a1,_0x2381d0,_0x649862){function _0x1f80ec(_0x50962c){return _0x50962c instanceof _0x2381d0?_0x50962c:new _0x2381d0(function(_0x56594d){_0x56594d(_0x50962c);});}return new(_0x2381d0||(_0x2381d0=Promise))(function(_0x5a0b99,_0x566830){function _0xf10e14(_0x2bf8bd){try{_0x1d6fc6(_0x649862['next'](_0x2bf8bd));}catch(_0x289642){_0x566830(_0x289642);}}function _0xd13102(_0x5fae1d){try{_0x1d6fc6(_0x649862['throw'](_0x5fae1d));}catch(_0x5258ee){_0x566830(_0x5258ee);}}function _0x1d6fc6(_0x313834){_0x313834['done']?_0x5a0b99(_0x313834['value']):_0x1f80ec(_0x313834['value'])['then'](_0xf10e14,_0xd13102);}_0x1d6fc6((_0x649862=_0x649862['apply'](_0x4abed7,_0x5e26a1||[]))['next']());});};class ListService{constructor(_0x4d34a3){this['fetch']=_0x4d34a3;}['add'](_0x50e995,_0x5424c5,_0x10359a){return __awaiter$3(this,void 0,void 0,function*(){const _0x17f885='List',_0x1e5e3a={'account_name':_0x50e995,'list_name':_0x5424c5};try{const _0x274f1b=yield this['fetch']['post'](_0x17f885,_0x10359a,_0x1e5e3a);if(_0x274f1b['status']>0xc7&&_0x274f1b['status']<0x12c){const _0x2d2670=yield _0x274f1b['json']();return new SuccessfulAccountResponse(_0x2d2670);}const _0x42ac58=yield _0x274f1b['json']();return new FailedAccountResponse(_0x42ac58);}catch(_0x149a89){if(_0x149a89 instanceof Error)return new FailedAccountResponse({'detail':_0x149a89['message'],'title':_0x149a89['name'],'status':0x1f4,'instance':'','type':''});throw _0x149a89;}});}['remove'](_0x29a09d,_0x16f882,_0x11aa0d){return __awaiter$3(this,void 0,void 0,function*(){const _0xf0993f='List/'+_0x29a09d+'/'+_0x16f882,_0x5b6fd0=yield this['fetch']['delete'](_0xf0993f,_0x11aa0d);try{if(_0x5b6fd0['status']>0xc7&&_0x5b6fd0['status']<0x12c){const _0x518186=yield _0x5b6fd0['json']();return new SuccessfulAccountResponse(_0x518186);}const _0x478ff2=yield _0x5b6fd0['json']();return new FailedAccountResponse(_0x478ff2);}catch(_0xeeb970){if(_0xeeb970 instanceof Error)return new FailedAccountResponse({'detail':_0xeeb970['message'],'title':_0xeeb970['name'],'status':0x1f4,'instance':'','type':''});throw _0xeeb970;}});}}
8
8
 
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x43a0c3,_0x2b6143,_0x433161,_0x51bfa0){function _0x8a0425(_0x16a894){return _0x16a894 instanceof _0x433161?_0x16a894:new _0x433161(function(_0x3480f7){_0x3480f7(_0x16a894);});}return new(_0x433161||(_0x433161=Promise))(function(_0x3a834b,_0x3c874e){function _0x480085(_0x5a60d5){try{_0x28f3d9(_0x51bfa0['next'](_0x5a60d5));}catch(_0x2dffc8){_0x3c874e(_0x2dffc8);}}function _0x5824c2(_0x50f80c){try{_0x28f3d9(_0x51bfa0['throw'](_0x50f80c));}catch(_0x50fa7a){_0x3c874e(_0x50fa7a);}}function _0x28f3d9(_0x311453){_0x311453['done']?_0x3a834b(_0x311453['value']):_0x8a0425(_0x311453['value'])['then'](_0x480085,_0x5824c2);}_0x28f3d9((_0x51bfa0=_0x51bfa0['apply'](_0x43a0c3,_0x2b6143||[]))['next']());});};class Fetch{constructor(_0x2eea82){this['baseUri']=_0x2eea82,this['getUrl']=_0x4c19b1=>{return _0x4c19b1['startsWith']('/')&&(_0x4c19b1=_0x4c19b1['replace']('/','')),''+this['baseUri']+_0x4c19b1;},!_0x2eea82['endsWith']('/')&&(_0x2eea82=_0x2eea82+'/');}['get'](_0x4b450f,_0x57a003){return __awaiter$2(this,void 0,void 0,function*(){const _0x1e05a8=this['getUrl'](_0x4b450f);return yield fetch(_0x1e05a8,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x57a003}});});}['post'](_0x417967,_0x3632a3,_0x1fb4dc){return __awaiter$2(this,void 0,void 0,function*(){const _0x451400=this['getUrl'](_0x417967);return yield fetch(_0x451400,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3632a3},'body':_0x1fb4dc?JSON['stringify'](_0x1fb4dc):null});});}['PostNoAuth'](_0x4d136c,_0x199990){return __awaiter$2(this,void 0,void 0,function*(){const _0x2ece97=this['getUrl'](_0x4d136c);return yield fetch(_0x2ece97,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x199990?JSON['stringify'](_0x199990):null});});}['put'](_0x2571ae,_0x504583,_0x3c372d){return __awaiter$2(this,void 0,void 0,function*(){const _0x1b8153=this['getUrl'](_0x2571ae);return yield fetch(_0x1b8153,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x504583},'body':_0x3c372d?JSON['stringify'](_0x3c372d):null});});}['delete'](_0x3c281a,_0x210dfd){return __awaiter$2(this,void 0,void 0,function*(){const _0x5c91c4=this['getUrl'](_0x3c281a);return yield fetch(_0x5c91c4,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x210dfd}});});}}
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x54ab92,_0x530af8,_0x51ed8a,_0x469bba){function _0x3a194b(_0x3baced){return _0x3baced instanceof _0x51ed8a?_0x3baced:new _0x51ed8a(function(_0x3b7e2e){_0x3b7e2e(_0x3baced);});}return new(_0x51ed8a||(_0x51ed8a=Promise))(function(_0x28cce1,_0x19dd29){function _0x8e30b4(_0x3f4ca2){try{_0x560f6b(_0x469bba['next'](_0x3f4ca2));}catch(_0x8421f9){_0x19dd29(_0x8421f9);}}function _0x489000(_0x2a93ed){try{_0x560f6b(_0x469bba['throw'](_0x2a93ed));}catch(_0x465be6){_0x19dd29(_0x465be6);}}function _0x560f6b(_0xd7f216){_0xd7f216['done']?_0x28cce1(_0xd7f216['value']):_0x3a194b(_0xd7f216['value'])['then'](_0x8e30b4,_0x489000);}_0x560f6b((_0x469bba=_0x469bba['apply'](_0x54ab92,_0x530af8||[]))['next']());});};class Fetch{constructor(_0x570b2e){this['baseUri']=_0x570b2e,this['getUrl']=_0x36b1a7=>{return _0x36b1a7['startsWith']('/')&&(_0x36b1a7=_0x36b1a7['replace']('/','')),''+this['baseUri']+_0x36b1a7;},!_0x570b2e['endsWith']('/')&&(_0x570b2e=_0x570b2e+'/');}['get'](_0x198bb8,_0x4b9157){return __awaiter$2(this,void 0,void 0,function*(){const _0x24fed2=this['getUrl'](_0x198bb8);return yield fetch(_0x24fed2,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4b9157}});});}['post'](_0x4e571c,_0x36d454,_0x246a3c){return __awaiter$2(this,void 0,void 0,function*(){const _0x1f85ed=this['getUrl'](_0x4e571c);return yield fetch(_0x1f85ed,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x36d454},'body':_0x246a3c?JSON['stringify'](_0x246a3c):null});});}['PostNoAuth'](_0xa03310,_0x192fa8){return __awaiter$2(this,void 0,void 0,function*(){const _0x3ec2d0=this['getUrl'](_0xa03310);return yield fetch(_0x3ec2d0,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x192fa8?JSON['stringify'](_0x192fa8):null});});}['put'](_0x4b9665,_0x497e1c,_0x3120f1){return __awaiter$2(this,void 0,void 0,function*(){const _0x3842c0=this['getUrl'](_0x4b9665);return yield fetch(_0x3842c0,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x497e1c},'body':_0x3120f1?JSON['stringify'](_0x3120f1):null});});}['delete'](_0x53e94a,_0x2fa308){return __awaiter$2(this,void 0,void 0,function*(){const _0x4c825d=this['getUrl'](_0x53e94a);return yield fetch(_0x4c825d,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2fa308}});});}}
10
10
 
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x31afc4,_0x54eb3f,_0x643ef7,_0x1d9e18){function _0x4176c9(_0x25b13e){return _0x25b13e instanceof _0x643ef7?_0x25b13e:new _0x643ef7(function(_0x282edc){_0x282edc(_0x25b13e);});}return new(_0x643ef7||(_0x643ef7=Promise))(function(_0x4eb245,_0x348b08){function _0xe5a06f(_0x433f0c){try{_0x75f799(_0x1d9e18['next'](_0x433f0c));}catch(_0x300287){_0x348b08(_0x300287);}}function _0x2c54ce(_0x372419){try{_0x75f799(_0x1d9e18['throw'](_0x372419));}catch(_0x4cc310){_0x348b08(_0x4cc310);}}function _0x75f799(_0x54913c){_0x54913c['done']?_0x4eb245(_0x54913c['value']):_0x4176c9(_0x54913c['value'])['then'](_0xe5a06f,_0x2c54ce);}_0x75f799((_0x1d9e18=_0x1d9e18['apply'](_0x31afc4,_0x54eb3f||[]))['next']());});};class SearchServersService{constructor(_0xe85b19){this['fetch']=_0xe85b19,this['path']='search-services';}['create'](_0x57438e,_0xae077c,_0x3f59f7,_0x11ff4a,_0xa74bb6,_0x5ec02e,_0xd49d0f,_0x39acfe){return __awaiter$1(this,void 0,void 0,function*(){const _0x5c9f47={'account_name':_0x57438e,'search_service_name':_0xae077c,'endpoint':_0x3f59f7,'key':_0x11ff4a,'country':_0xa74bb6,'provider':_0x5ec02e,'index_name':_0xd49d0f};try{const _0x49c11b=yield this['fetch']['post'](this['path'],_0x39acfe,_0x5c9f47);if(_0x49c11b['status']>0xc7&&_0x49c11b['status']<0x12c){const _0x574a73=yield _0x49c11b['json']();return new SuccessfulSearchServiceResponse(_0x574a73);}const _0x5d85cd=yield _0x49c11b['json']();return new FailedSearchServiceResponse(_0x5d85cd);}catch(_0x963b0){if(_0x963b0 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x963b0['message'],'title':_0x963b0['name'],'status':0x1f4,'instance':'','type':''});throw _0x963b0;}});}['delete'](_0x43c62f,_0x30976a,_0x217369){return __awaiter$1(this,void 0,void 0,function*(){const _0x27c8e5=this['path']+'/'+_0x43c62f+'/'+_0x30976a;try{const _0x2cb878=yield this['fetch']['delete'](_0x27c8e5,_0x217369);if(_0x2cb878['status']>0xc7&&_0x2cb878['status']<0x12c)return new SuccessfulResponse({});const _0x1f71c4=yield _0x2cb878['json']();return new FailedResponse(_0x1f71c4);}catch(_0x4c5a2b){if(_0x4c5a2b instanceof Error)return new FailedResponse({'detail':_0x4c5a2b['message'],'title':_0x4c5a2b['name'],'status':0x1f4,'instance':'','type':''});throw _0x4c5a2b;}});}['view'](_0x11255e,_0x19d562,_0x551a7a){return __awaiter$1(this,void 0,void 0,function*(){const _0x10fd25=this['path']+'/'+_0x11255e+'/'+_0x19d562;try{const _0x75064e=yield this['fetch']['get'](_0x10fd25,_0x551a7a);if(_0x75064e['status']>0xc7&&_0x75064e['status']<0x12c){const _0x47619c=yield _0x75064e['json']();return new SuccessfulViewSearchServiceResponse(_0x47619c);}const _0x426eeb=yield _0x75064e['json']();return new FailedViewSearchServiceResponse(_0x426eeb);}catch(_0x2adefc){if(_0x2adefc instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x2adefc['message'],'title':_0x2adefc['name'],'status':0x1f4,'instance':'','type':''});throw _0x2adefc;}});}['edit'](_0x333a7f,_0x36585f,_0x413faa,_0x1fc0da,_0x472679,_0x5847ec){return __awaiter$1(this,void 0,void 0,function*(){const _0x33e6e4={'account_name':_0x333a7f,'search_service_name':_0x36585f,'new_search_service_name':_0x413faa,'key':_0x1fc0da,'country':_0x472679};try{const _0x1c18b7=yield this['fetch']['put'](this['path'],_0x5847ec,_0x33e6e4);if(_0x1c18b7['status']>0xc7&&_0x1c18b7['status']<0x12c){const _0x5cc9f2=yield _0x1c18b7['json']();return new SuccessfulSearchServiceResponse(_0x5cc9f2);}const _0xc09109=yield _0x1c18b7['json']();return new FailedSearchServiceResponse(_0xc09109);}catch(_0x1a200b){if(_0x1a200b instanceof Error)return new FailedSearchServiceResponse({'detail':_0x1a200b['message'],'title':_0x1a200b['name'],'status':0x1f4,'instance':'','type':''});throw _0x1a200b;}});}}
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x21766e,_0x12f01b,_0x18e721,_0xd99b0a){function _0x43e121(_0x3059ad){return _0x3059ad instanceof _0x18e721?_0x3059ad:new _0x18e721(function(_0x4adafd){_0x4adafd(_0x3059ad);});}return new(_0x18e721||(_0x18e721=Promise))(function(_0xbfb347,_0x534236){function _0x4ac058(_0x34fee0){try{_0x153bb3(_0xd99b0a['next'](_0x34fee0));}catch(_0x2131b5){_0x534236(_0x2131b5);}}function _0x580706(_0x1bc418){try{_0x153bb3(_0xd99b0a['throw'](_0x1bc418));}catch(_0x1103b2){_0x534236(_0x1103b2);}}function _0x153bb3(_0x37f2ab){_0x37f2ab['done']?_0xbfb347(_0x37f2ab['value']):_0x43e121(_0x37f2ab['value'])['then'](_0x4ac058,_0x580706);}_0x153bb3((_0xd99b0a=_0xd99b0a['apply'](_0x21766e,_0x12f01b||[]))['next']());});};class SearchServersService{constructor(_0x43fcfc){this['fetch']=_0x43fcfc,this['path']='search-services';}['create'](_0x4dea2d,_0x4de4eb,_0x27676e,_0x298a63,_0x55ccfb,_0x59fba5,_0xb80cce,_0x8d82c6){return __awaiter$1(this,void 0,void 0,function*(){const _0x340e98={'account_name':_0x4dea2d,'search_service_name':_0x4de4eb,'endpoint':_0x27676e,'key':_0x298a63,'country':_0x55ccfb,'provider':_0x59fba5,'index_name':_0xb80cce};try{const _0x5bf5bf=yield this['fetch']['post'](this['path'],_0x8d82c6,_0x340e98);if(_0x5bf5bf['status']>0xc7&&_0x5bf5bf['status']<0x12c){const _0x142f1e=yield _0x5bf5bf['json']();return new SuccessfulSearchServiceResponse(_0x142f1e);}const _0x5e1f57=yield _0x5bf5bf['json']();return new FailedSearchServiceResponse(_0x5e1f57);}catch(_0x27eafd){if(_0x27eafd instanceof Error)return new FailedSearchServiceResponse({'detail':_0x27eafd['message'],'title':_0x27eafd['name'],'status':0x1f4,'instance':'','type':''});throw _0x27eafd;}});}['delete'](_0x4c1ff2,_0x47f7b6,_0x2e2c0d){return __awaiter$1(this,void 0,void 0,function*(){const _0x2b6f46=this['path']+'/'+_0x4c1ff2+'/'+_0x47f7b6;try{const _0x5e01ee=yield this['fetch']['delete'](_0x2b6f46,_0x2e2c0d);if(_0x5e01ee['status']>0xc7&&_0x5e01ee['status']<0x12c)return new SuccessfulResponse({});const _0x51bbcb=yield _0x5e01ee['json']();return new FailedResponse(_0x51bbcb);}catch(_0x1c6c06){if(_0x1c6c06 instanceof Error)return new FailedResponse({'detail':_0x1c6c06['message'],'title':_0x1c6c06['name'],'status':0x1f4,'instance':'','type':''});throw _0x1c6c06;}});}['view'](_0x11aeec,_0x47e605,_0x4763b2){return __awaiter$1(this,void 0,void 0,function*(){const _0x9a8376=this['path']+'/'+_0x11aeec+'/'+_0x47e605;try{const _0x27cace=yield this['fetch']['get'](_0x9a8376,_0x4763b2);if(_0x27cace['status']>0xc7&&_0x27cace['status']<0x12c){const _0x1f29e4=yield _0x27cace['json']();return new SuccessfulViewSearchServiceResponse(_0x1f29e4);}const _0x627132=yield _0x27cace['json']();return new FailedViewSearchServiceResponse(_0x627132);}catch(_0x27acc8){if(_0x27acc8 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x27acc8['message'],'title':_0x27acc8['name'],'status':0x1f4,'instance':'','type':''});throw _0x27acc8;}});}['edit'](_0xf052e9,_0x3cf73e,_0x1ae929,_0x3949e1,_0xf855fb,_0x324008){return __awaiter$1(this,void 0,void 0,function*(){const _0x19eed0={'account_name':_0xf052e9,'search_service_name':_0x3cf73e,'new_search_service_name':_0x1ae929,'key':_0x3949e1,'country':_0xf855fb};try{const _0x118eac=yield this['fetch']['put'](this['path'],_0x324008,_0x19eed0);if(_0x118eac['status']>0xc7&&_0x118eac['status']<0x12c){const _0x2b0496=yield _0x118eac['json']();return new SuccessfulSearchServiceResponse(_0x2b0496);}const _0x2ec859=yield _0x118eac['json']();return new FailedSearchServiceResponse(_0x2ec859);}catch(_0x215b0a){if(_0x215b0a instanceof Error)return new FailedSearchServiceResponse({'detail':_0x215b0a['message'],'title':_0x215b0a['name'],'status':0x1f4,'instance':'','type':''});throw _0x215b0a;}});}}
12
12
 
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x1cda97,_0x1af37a,_0x134a82,_0x2ca084){function _0x463f49(_0xb954d4){return _0xb954d4 instanceof _0x134a82?_0xb954d4:new _0x134a82(function(_0x598182){_0x598182(_0xb954d4);});}return new(_0x134a82||(_0x134a82=Promise))(function(_0x37446b,_0x7361b7){function _0x316572(_0x21221f){try{_0x4f65fb(_0x2ca084['next'](_0x21221f));}catch(_0x5476eb){_0x7361b7(_0x5476eb);}}function _0x5d8318(_0x47b4ee){try{_0x4f65fb(_0x2ca084['throw'](_0x47b4ee));}catch(_0x34f870){_0x7361b7(_0x34f870);}}function _0x4f65fb(_0x488db6){_0x488db6['done']?_0x37446b(_0x488db6['value']):_0x463f49(_0x488db6['value'])['then'](_0x316572,_0x5d8318);}_0x4f65fb((_0x2ca084=_0x2ca084['apply'](_0x1cda97,_0x1af37a||[]))['next']());});};class AdminClient{constructor(_0x2de1e9='https://admin.searchability.dev/'){var _0x3628ec=new Fetch(_0x2de1e9);this['Accounts']=new AccountService(_0x3628ec),this['Lists']=new ListService(_0x3628ec),this['ApiKeys']=new ApiKeyService(_0x3628ec),this['SearchServices']=new SearchServersService(_0x3628ec);}}class AuthClient{constructor(_0x248a46='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x248a46);}['login'](_0x15b7fc){return __awaiter(this,void 0,void 0,function*(){const _0x28625f='login/'+_0x15b7fc;try{const _0x2a6d5d=yield yield fetch(_0x28625f);if(_0x2a6d5d['status']>0xc7&&_0x2a6d5d['status']<0x12c){const _0x5a3d86=yield _0x2a6d5d['json']();return new SuccessfulAuthResponse(_0x5a3d86);}const _0x4e9cc6=yield _0x2a6d5d['json']();return new FailedAuthResponse(_0x4e9cc6);}catch(_0x597ba4){if(_0x597ba4 instanceof Error)return new FailedAuthResponse({'detail':_0x597ba4['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x597ba4;}});}['refresh'](_0x3dc1e5){return __awaiter(this,void 0,void 0,function*(){const _0x5a38c1='refresh',_0x1a8310={'refresh_token':_0x3dc1e5};try{const _0x92d333=yield this['fetch']['PostNoAuth'](_0x5a38c1,_0x1a8310);if(_0x92d333['status']>0xc7&&_0x92d333['status']<0x12c){const _0x2ea849=yield _0x92d333['json']();return new SuccessfulAuthResponse(_0x2ea849);}const _0x59ba39=yield _0x92d333['json']();return new FailedAuthResponse(_0x59ba39);}catch(_0x3158f5){if(_0x3158f5 instanceof Error)return new FailedAuthResponse({'detail':_0x3158f5['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3158f5;}});}['getTokenStatus'](_0xdfd039){if(Date['now']()<_0xdfd039['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0xdfd039['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x4da6ef,_0xd3a1bc,_0x167696,_0x43dcab){function _0x38306f(_0x3d0a53){return _0x3d0a53 instanceof _0x167696?_0x3d0a53:new _0x167696(function(_0x1cd603){_0x1cd603(_0x3d0a53);});}return new(_0x167696||(_0x167696=Promise))(function(_0x122e1b,_0x2aa2fa){function _0x39cd1b(_0x2e1868){try{_0x357bf0(_0x43dcab['next'](_0x2e1868));}catch(_0x3a8f86){_0x2aa2fa(_0x3a8f86);}}function _0x5abfd6(_0x1f0767){try{_0x357bf0(_0x43dcab['throw'](_0x1f0767));}catch(_0x34a61b){_0x2aa2fa(_0x34a61b);}}function _0x357bf0(_0x37a654){_0x37a654['done']?_0x122e1b(_0x37a654['value']):_0x38306f(_0x37a654['value'])['then'](_0x39cd1b,_0x5abfd6);}_0x357bf0((_0x43dcab=_0x43dcab['apply'](_0x4da6ef,_0xd3a1bc||[]))['next']());});};class AdminClient{constructor(_0x286ec4='https://admin.searchability.dev/'){var _0x1021ca=new Fetch(_0x286ec4);this['Accounts']=new AccountService(_0x1021ca),this['Lists']=new ListService(_0x1021ca),this['ApiKeys']=new ApiKeyService(_0x1021ca),this['SearchServices']=new SearchServersService(_0x1021ca);}}class AuthClient{constructor(_0x3136a0='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x3136a0);}['login'](_0x3bc298){return __awaiter(this,void 0,void 0,function*(){const _0x567721='login/'+_0x3bc298;try{const _0x42624e=yield yield fetch(_0x567721);if(_0x42624e['status']>0xc7&&_0x42624e['status']<0x12c){const _0x4223f4=yield _0x42624e['json']();return new SuccessfulAuthResponse(_0x4223f4);}const _0x19485e=yield _0x42624e['json']();return new FailedAuthResponse(_0x19485e);}catch(_0xa9cc39){if(_0xa9cc39 instanceof Error)return new FailedAuthResponse({'detail':_0xa9cc39['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xa9cc39;}});}['refresh'](_0x5e21fb){return __awaiter(this,void 0,void 0,function*(){const _0x311e48='refresh',_0x5cd55d={'refresh_token':_0x5e21fb};try{const _0x2eb912=yield this['fetch']['PostNoAuth'](_0x311e48,_0x5cd55d);if(_0x2eb912['status']>0xc7&&_0x2eb912['status']<0x12c){const _0x565862=yield _0x2eb912['json']();return new SuccessfulAuthResponse(_0x565862);}const _0x53c458=yield _0x2eb912['json']();return new FailedAuthResponse(_0x53c458);}catch(_0xb94047){if(_0xb94047 instanceof Error)return new FailedAuthResponse({'detail':_0xb94047['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0xb94047;}});}['getTokenStatus'](_0x5f485c){if(Date['now']()<_0x5f485c['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x5f485c['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
14
14
 
15
15
  export { AdminClient, AuthClient, TokenStatus, Tokens };
package/dist/types.d.ts CHANGED
@@ -99,7 +99,7 @@ type SearchService = {
99
99
  };
100
100
  type SearchServiceDetails = {
101
101
  endpoint: string;
102
- key: number;
102
+ key: string;
103
103
  search_service_name: string;
104
104
  country: string;
105
105
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
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(_0x1657bc){_0x1657bc[_0x1657bc['Ok']=0x0]='Ok',_0x1657bc[_0x1657bc['Refresh']=0x1]='Refresh',_0x1657bc[_0x1657bc['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x24e853){this['isSuccess']=_0x24e853;}}class SuccessfulAccountResponse extends Response{constructor(_0xa7bd23){super(!![]),this['account']=_0xa7bd23;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x37f4a0){super(![]),this['problem']=_0x37f4a0;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x1f2f3f){super(!![]),this['tokens']=_0x1f2f3f;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x3c15b9){super(![]),this['problem']=_0x3c15b9;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x5c2ce5){super(!![]),this['apiKey']=_0x5c2ce5;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4339e0){super(![]),this['problem']=_0x4339e0;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x10cf26){super(!![]),this['searchService']=_0x10cf26;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x863521){super(![]),this['problem']=_0x863521;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x38ee4f){super(!![]),this['searchService']=_0x38ee4f;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServiceResponse extends Response{constructor(_0x2f3def){super(![]),this['problem']=_0x2f3def;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x41e158){super(!![]),this['apiKeyValue']=_0x41e158;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x6ec54){super(!![]),this['obj']=_0x6ec54;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x2ceca5){super(![]),this['problem']=_0x2ceca5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x45bbfe){super(![]),this['problem']=_0x45bbfe;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
-
3
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x3c8771,_0x565542,_0x18da64,_0x3b8021){function _0x346b9a(_0x6671b0){return _0x6671b0 instanceof _0x18da64?_0x6671b0:new _0x18da64(function(_0x5333fb){_0x5333fb(_0x6671b0);});}return new(_0x18da64||(_0x18da64=Promise))(function(_0x1e01e1,_0xf25510){function _0x2ed569(_0x1e7c6f){try{_0x1e567a(_0x3b8021['next'](_0x1e7c6f));}catch(_0xa4f8e){_0xf25510(_0xa4f8e);}}function _0x152511(_0x26c622){try{_0x1e567a(_0x3b8021['throw'](_0x26c622));}catch(_0x3bceef){_0xf25510(_0x3bceef);}}function _0x1e567a(_0x99bd8a){_0x99bd8a['done']?_0x1e01e1(_0x99bd8a['value']):_0x346b9a(_0x99bd8a['value'])['then'](_0x2ed569,_0x152511);}_0x1e567a((_0x3b8021=_0x3b8021['apply'](_0x3c8771,_0x565542||[]))['next']());});};class AccountService{constructor(_0x566705){this['fetch']=_0x566705;}['get'](_0x394835,_0x2f04d1){return __awaiter$5(this,void 0,void 0,function*(){const _0x4cad6d='Account/'+_0x394835+'/',_0x3a55a3=yield this['fetch']['get'](_0x4cad6d,_0x2f04d1);try{if(_0x3a55a3['status']>0xc7&&_0x3a55a3['status']<0x12c){const _0x241d15=yield _0x3a55a3['json']();return new SuccessfulAccountResponse(_0x241d15);}const _0x2a256a=yield _0x3a55a3['json']();return new FailedAccountResponse(_0x2a256a);}catch(_0x106b8f){if(_0x106b8f instanceof Error)return new FailedAccountResponse({'detail':_0x106b8f['message'],'title':_0x106b8f['name'],'status':0x1f4,'instance':'','type':''});throw _0x106b8f;}});}}
4
-
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x31ca20,_0x1ec559,_0x5163b9,_0xd2577e){function _0x15b24d(_0x3f0834){return _0x3f0834 instanceof _0x5163b9?_0x3f0834:new _0x5163b9(function(_0x4e7889){_0x4e7889(_0x3f0834);});}return new(_0x5163b9||(_0x5163b9=Promise))(function(_0x497c44,_0x22e806){function _0x29e5bb(_0x98572c){try{_0x59cb99(_0xd2577e['next'](_0x98572c));}catch(_0x4c609a){_0x22e806(_0x4c609a);}}function _0x44215c(_0x135113){try{_0x59cb99(_0xd2577e['throw'](_0x135113));}catch(_0x1d004a){_0x22e806(_0x1d004a);}}function _0x59cb99(_0x402644){_0x402644['done']?_0x497c44(_0x402644['value']):_0x15b24d(_0x402644['value'])['then'](_0x29e5bb,_0x44215c);}_0x59cb99((_0xd2577e=_0xd2577e['apply'](_0x31ca20,_0x1ec559||[]))['next']());});};class ApiKeyService{constructor(_0x37746e){this['fetch']=_0x37746e,this['path']='api-key';}['create'](_0x4ed844,_0x23a8a2,_0x48af70){return __awaiter$4(this,void 0,void 0,function*(){const _0x10feb1={'account_name':_0x4ed844,'api_key_name':_0x23a8a2};try{const _0x1e9408=yield this['fetch']['post'](this['path'],_0x48af70,_0x10feb1);if(_0x1e9408['status']>0xc7&&_0x1e9408['status']<0x12c){const _0x2421b9=yield _0x1e9408['json']();return new SuccessfulApiKeyResponse(_0x2421b9);}const _0x3aa7d5=yield _0x1e9408['json']();return new FailedApiKeyResponse(_0x3aa7d5);}catch(_0x2c4a7b){if(_0x2c4a7b instanceof Error)return new FailedApiKeyResponse({'detail':_0x2c4a7b['message'],'title':_0x2c4a7b['name'],'status':0x1f4,'instance':'','type':''});throw _0x2c4a7b;}});}['view'](_0x34a471,_0x1fc857,_0x42cc3b){return __awaiter$4(this,void 0,void 0,function*(){const _0x397056=this['path']+'/'+_0x34a471+'/'+_0x1fc857;try{const _0x46de3d=yield this['fetch']['get'](_0x397056,_0x42cc3b);if(_0x46de3d['status']>0xc7&&_0x46de3d['status']<0x12c){const _0x489af4=yield _0x46de3d['json']();return new SuccessfulApiKeyValueResponse(_0x489af4);}const _0x127216=yield _0x46de3d['json']();return new FailedApiKeyValueResponse(_0x127216);}catch(_0x1a7c2b){if(_0x1a7c2b instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x1a7c2b['message'],'title':_0x1a7c2b['name'],'status':0x1f4,'instance':'','type':''});throw _0x1a7c2b;}});}['delete'](_0x136e89,_0x4d36a6,_0x31f866){return __awaiter$4(this,void 0,void 0,function*(){const _0x36690b=this['path']+'/'+_0x136e89+'/'+_0x4d36a6;try{const _0x2e66f2=yield this['fetch']['delete'](_0x36690b,_0x31f866);if(_0x2e66f2['status']>0xc7&&_0x2e66f2['status']<0x12c)return new SuccessfulResponse({});const _0x41caf9=yield _0x2e66f2['json']();return new FailedResponse(_0x41caf9);}catch(_0x3eccb9){if(_0x3eccb9 instanceof Error)return new FailedResponse({'detail':_0x3eccb9['message'],'title':_0x3eccb9['name'],'status':0x1f4,'instance':'','type':''});throw _0x3eccb9;}});}}
6
-
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x129dd6,_0x3defb4,_0x2775d2,_0x289cd8){function _0x25614e(_0x33c4e8){return _0x33c4e8 instanceof _0x2775d2?_0x33c4e8:new _0x2775d2(function(_0x33c8c4){_0x33c8c4(_0x33c4e8);});}return new(_0x2775d2||(_0x2775d2=Promise))(function(_0x49aca9,_0x497958){function _0x1f9492(_0x14cec1){try{_0x52a68f(_0x289cd8['next'](_0x14cec1));}catch(_0x484928){_0x497958(_0x484928);}}function _0x1d6a84(_0x4c33a9){try{_0x52a68f(_0x289cd8['throw'](_0x4c33a9));}catch(_0xa520af){_0x497958(_0xa520af);}}function _0x52a68f(_0x384d06){_0x384d06['done']?_0x49aca9(_0x384d06['value']):_0x25614e(_0x384d06['value'])['then'](_0x1f9492,_0x1d6a84);}_0x52a68f((_0x289cd8=_0x289cd8['apply'](_0x129dd6,_0x3defb4||[]))['next']());});};class ListService{constructor(_0x3945f4){this['fetch']=_0x3945f4;}['add'](_0xc21631,_0x5bf506,_0x3d9539){return __awaiter$3(this,void 0,void 0,function*(){const _0x394a96='List',_0x562962={'account_name':_0xc21631,'list_name':_0x5bf506};try{const _0x136be6=yield this['fetch']['post'](_0x394a96,_0x3d9539,_0x562962);if(_0x136be6['status']>0xc7&&_0x136be6['status']<0x12c){const _0x4e78dc=yield _0x136be6['json']();return new SuccessfulAccountResponse(_0x4e78dc);}const _0x2a7762=yield _0x136be6['json']();return new FailedAccountResponse(_0x2a7762);}catch(_0x1ca36a){if(_0x1ca36a instanceof Error)return new FailedAccountResponse({'detail':_0x1ca36a['message'],'title':_0x1ca36a['name'],'status':0x1f4,'instance':'','type':''});throw _0x1ca36a;}});}['remove'](_0x495b6c,_0x2f4c4,_0x3769bd){return __awaiter$3(this,void 0,void 0,function*(){const _0x52cdd2='List/'+_0x495b6c+'/'+_0x2f4c4,_0x3b22ce=yield this['fetch']['delete'](_0x52cdd2,_0x3769bd);try{if(_0x3b22ce['status']>0xc7&&_0x3b22ce['status']<0x12c){const _0x2c0173=yield _0x3b22ce['json']();return new SuccessfulAccountResponse(_0x2c0173);}const _0x5146f2=yield _0x3b22ce['json']();return new FailedAccountResponse(_0x5146f2);}catch(_0x41f304){if(_0x41f304 instanceof Error)return new FailedAccountResponse({'detail':_0x41f304['message'],'title':_0x41f304['name'],'status':0x1f4,'instance':'','type':''});throw _0x41f304;}});}}
8
-
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x533568,_0x1e8a15,_0x26a36b,_0x4d0e6b){function _0x5092ce(_0x24ac5d){return _0x24ac5d instanceof _0x26a36b?_0x24ac5d:new _0x26a36b(function(_0x1eef8f){_0x1eef8f(_0x24ac5d);});}return new(_0x26a36b||(_0x26a36b=Promise))(function(_0xb52719,_0x1565f8){function _0x2be6f2(_0x1326fb){try{_0x4325a8(_0x4d0e6b['next'](_0x1326fb));}catch(_0x488340){_0x1565f8(_0x488340);}}function _0x432fa4(_0x519e71){try{_0x4325a8(_0x4d0e6b['throw'](_0x519e71));}catch(_0x344b33){_0x1565f8(_0x344b33);}}function _0x4325a8(_0x7d1628){_0x7d1628['done']?_0xb52719(_0x7d1628['value']):_0x5092ce(_0x7d1628['value'])['then'](_0x2be6f2,_0x432fa4);}_0x4325a8((_0x4d0e6b=_0x4d0e6b['apply'](_0x533568,_0x1e8a15||[]))['next']());});};class Fetch{constructor(_0x164cda){this['baseUri']=_0x164cda,this['getUrl']=_0x7ee547=>{return _0x7ee547['startsWith']('/')&&(_0x7ee547=_0x7ee547['replace']('/','')),''+this['baseUri']+_0x7ee547;},!_0x164cda['endsWith']('/')&&(_0x164cda=_0x164cda+'/');}['get'](_0xc9202b,_0x88a043){return __awaiter$2(this,void 0,void 0,function*(){const _0x3a6966=this['getUrl'](_0xc9202b);return yield fetch(_0x3a6966,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x88a043}});});}['post'](_0x3aa557,_0xbde142,_0x46b3d1){return __awaiter$2(this,void 0,void 0,function*(){const _0x1b1079=this['getUrl'](_0x3aa557);return yield fetch(_0x1b1079,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xbde142},'body':_0x46b3d1?JSON['stringify'](_0x46b3d1):null});});}['PostNoAuth'](_0x5c0d0e,_0x5d9d4b){return __awaiter$2(this,void 0,void 0,function*(){const _0x5754fe=this['getUrl'](_0x5c0d0e);return yield fetch(_0x5754fe,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x5d9d4b?JSON['stringify'](_0x5d9d4b):null});});}['put'](_0x3a5369,_0x19d67f,_0x4455b1){return __awaiter$2(this,void 0,void 0,function*(){const _0x1e4357=this['getUrl'](_0x3a5369);return yield fetch(_0x1e4357,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x19d67f},'body':_0x4455b1?JSON['stringify'](_0x4455b1):null});});}['delete'](_0x13a073,_0x3290ff){return __awaiter$2(this,void 0,void 0,function*(){const _0x2038ca=this['getUrl'](_0x13a073);return yield fetch(_0x2038ca,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3290ff}});});}}
10
-
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x1a962a,_0x474c36,_0x1a4695,_0x57cceb){function _0x49864d(_0xd6495d){return _0xd6495d instanceof _0x1a4695?_0xd6495d:new _0x1a4695(function(_0x24b4cf){_0x24b4cf(_0xd6495d);});}return new(_0x1a4695||(_0x1a4695=Promise))(function(_0x11ab3d,_0x878945){function _0x2bfb9b(_0x3b986c){try{_0x15894c(_0x57cceb['next'](_0x3b986c));}catch(_0x3fcd8b){_0x878945(_0x3fcd8b);}}function _0x148532(_0x6c5d87){try{_0x15894c(_0x57cceb['throw'](_0x6c5d87));}catch(_0x1826c0){_0x878945(_0x1826c0);}}function _0x15894c(_0x4bb123){_0x4bb123['done']?_0x11ab3d(_0x4bb123['value']):_0x49864d(_0x4bb123['value'])['then'](_0x2bfb9b,_0x148532);}_0x15894c((_0x57cceb=_0x57cceb['apply'](_0x1a962a,_0x474c36||[]))['next']());});};class SearchServersService{constructor(_0x4b6b53){this['fetch']=_0x4b6b53,this['path']='search-services';}['create'](_0x182c00,_0x377be7,_0x369639,_0x3a218c,_0x49e340,_0x3f51de,_0x2c5588,_0x4d5a0a){return __awaiter$1(this,void 0,void 0,function*(){const _0x11fe33={'account_name':_0x182c00,'search_service_name':_0x377be7,'endpoint':_0x369639,'key':_0x3a218c,'country':_0x49e340,'provider':_0x3f51de,'index_name':_0x2c5588};try{const _0x1202d6=yield this['fetch']['post'](this['path'],_0x4d5a0a,_0x11fe33);if(_0x1202d6['status']>0xc7&&_0x1202d6['status']<0x12c){const _0x37fa61=yield _0x1202d6['json']();return new SuccessfulSearchServiceResponse(_0x37fa61);}const _0xb63bf8=yield _0x1202d6['json']();return new FailedSearchServiceResponse(_0xb63bf8);}catch(_0x481151){if(_0x481151 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x481151['message'],'title':_0x481151['name'],'status':0x1f4,'instance':'','type':''});throw _0x481151;}});}['delete'](_0x4a0d71,_0xd6a43c,_0x15ea8d){return __awaiter$1(this,void 0,void 0,function*(){const _0x1d6f56=this['path']+'/'+_0x4a0d71+'/'+_0xd6a43c;try{const _0x1ae4e3=yield this['fetch']['delete'](_0x1d6f56,_0x15ea8d);if(_0x1ae4e3['status']>0xc7&&_0x1ae4e3['status']<0x12c)return new SuccessfulResponse({});const _0x5781cf=yield _0x1ae4e3['json']();return new FailedResponse(_0x5781cf);}catch(_0x2ce485){if(_0x2ce485 instanceof Error)return new FailedResponse({'detail':_0x2ce485['message'],'title':_0x2ce485['name'],'status':0x1f4,'instance':'','type':''});throw _0x2ce485;}});}['view'](_0x699e4d,_0x95a3a0,_0x4fc591){return __awaiter$1(this,void 0,void 0,function*(){const _0x3c957e=this['path']+'/'+_0x699e4d+'/'+_0x95a3a0;try{const _0x16d1d9=yield this['fetch']['get'](_0x3c957e,_0x4fc591);if(_0x16d1d9['status']>0xc7&&_0x16d1d9['status']<0x12c){const _0x1711df=yield _0x16d1d9['json']();return new SuccessfulViewSearchServiceResponse(_0x1711df);}const _0x570dc3=yield _0x16d1d9['json']();return new FailedViewSearchServiceResponse(_0x570dc3);}catch(_0x1dec00){if(_0x1dec00 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x1dec00['message'],'title':_0x1dec00['name'],'status':0x1f4,'instance':'','type':''});throw _0x1dec00;}});}['edit'](_0x5e2e04,_0x21e88d,_0x58827f,_0x20c8eb,_0x444ec1,_0x475492){return __awaiter$1(this,void 0,void 0,function*(){const _0x41a179={'account_name':_0x5e2e04,'search_service_name':_0x21e88d,'new_search_service_name':_0x58827f,'key':_0x20c8eb,'country':_0x444ec1};try{const _0xf223b4=yield this['fetch']['put'](this['path'],_0x475492,_0x41a179);if(_0xf223b4['status']>0xc7&&_0xf223b4['status']<0x12c){const _0x429013=yield _0xf223b4['json']();return new SuccessfulSearchServiceResponse(_0x429013);}const _0x2b0185=yield _0xf223b4['json']();return new FailedSearchServiceResponse(_0x2b0185);}catch(_0x1f520b){if(_0x1f520b instanceof Error)return new FailedSearchServiceResponse({'detail':_0x1f520b['message'],'title':_0x1f520b['name'],'status':0x1f4,'instance':'','type':''});throw _0x1f520b;}});}}
12
-
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x110c51,_0x5dfe15,_0x43bd9d,_0x31a5cc){function _0x17d3de(_0x6d78ae){return _0x6d78ae instanceof _0x43bd9d?_0x6d78ae:new _0x43bd9d(function(_0x5a98a3){_0x5a98a3(_0x6d78ae);});}return new(_0x43bd9d||(_0x43bd9d=Promise))(function(_0x95cc7e,_0x36db03){function _0xf2aabd(_0x1f52e8){try{_0x5b4aa7(_0x31a5cc['next'](_0x1f52e8));}catch(_0x52ee4f){_0x36db03(_0x52ee4f);}}function _0x2b365e(_0x31dec7){try{_0x5b4aa7(_0x31a5cc['throw'](_0x31dec7));}catch(_0x4d08ed){_0x36db03(_0x4d08ed);}}function _0x5b4aa7(_0x190fb2){_0x190fb2['done']?_0x95cc7e(_0x190fb2['value']):_0x17d3de(_0x190fb2['value'])['then'](_0xf2aabd,_0x2b365e);}_0x5b4aa7((_0x31a5cc=_0x31a5cc['apply'](_0x110c51,_0x5dfe15||[]))['next']());});};class AdminClient{constructor(_0x2b9592='https://admin.searchability.dev/'){var _0x279405=new Fetch(_0x2b9592);this['Accounts']=new AccountService(_0x279405),this['Lists']=new ListService(_0x279405),this['ApiKeys']=new ApiKeyService(_0x279405),this['SearchServices']=new SearchServersService(_0x279405);}}class AuthClient{constructor(_0x495e8a='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x495e8a);}['login'](_0x104289){return __awaiter(this,void 0,void 0,function*(){const _0x2b9178='login/'+_0x104289;try{const _0x3b8120=yield yield fetch(_0x2b9178);if(_0x3b8120['status']>0xc7&&_0x3b8120['status']<0x12c){const _0x54ac91=yield _0x3b8120['json']();return new SuccessfulAuthResponse(_0x54ac91);}const _0x54ef5d=yield _0x3b8120['json']();return new FailedAuthResponse(_0x54ef5d);}catch(_0x1711c2){if(_0x1711c2 instanceof Error)return new FailedAuthResponse({'detail':_0x1711c2['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x1711c2;}});}['refresh'](_0x58497c){return __awaiter(this,void 0,void 0,function*(){const _0x2ee047='refresh',_0x305589={'refresh_token':_0x58497c};try{const _0x594a7b=yield this['fetch']['PostNoAuth'](_0x2ee047,_0x305589);if(_0x594a7b['status']>0xc7&&_0x594a7b['status']<0x12c){const _0x2b8d11=yield _0x594a7b['json']();return new SuccessfulAuthResponse(_0x2b8d11);}const _0x21a972=yield _0x594a7b['json']();return new FailedAuthResponse(_0x21a972);}catch(_0x3ef3be){if(_0x3ef3be instanceof Error)return new FailedAuthResponse({'detail':_0x3ef3be['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3ef3be;}});}['getTokenStatus'](_0x6e27a0){if(Date['now']()<_0x6e27a0['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x6e27a0['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
14
-
15
- export { AdminClient, AuthClient, TokenStatus, Tokens };