@searchability/admin-client 0.0.50 → 0.0.52

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(_0x27e844){_0x27e844[_0x27e844['Ok']=0x0]='Ok',_0x27e844[_0x27e844['Refresh']=0x1]='Refresh',_0x27e844[_0x27e844['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(_0x288543){this['isSuccess']=_0x288543;}}class SuccessfulAccountResponse extends Response{constructor(_0x24f984){super(!![]),this['account']=_0x24f984;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x5bc751){super(!![]),this['list']=_0x5bc751;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x3416dd){super(!![]),this['list']=_0x3416dd;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0xca7f3e){super(![]),this['problem']=_0xca7f3e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x1591d6){super(![]),this['problem']=_0x1591d6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x51892f){super(![]),this['problem']=_0x51892f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x4a0eca){super(!![]),this['tokens']=_0x4a0eca;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x9099c5){super(![]),this['problem']=_0x9099c5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x3f3a32){super(!![]),this['apiKey']=_0x3f3a32;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x3c37d1){super(![]),this['problem']=_0x3c37d1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x3a3007){super(!![]),this['searchService']=_0x3a3007;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0xbfa31a){super(![]),this['problem']=_0xbfa31a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x13b5ab){super(!![]),this['searchService']=_0x13b5ab;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x4bbb32){super(!![]),this['searchServices']=_0x4bbb32;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x239b28){super(![]),this['problem']=_0x239b28;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x164126){super(![]),this['problem']=_0x164126;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x27550a){super(!![]),this['apiKeyValue']=_0x27550a;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x34c835){super(!![]),this['obj']=_0x34c835;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x12e17d){super(![]),this['problem']=_0x12e17d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0xc2f36c){super(![]),this['problem']=_0xc2f36c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
+
3
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x34d04a,_0x39b68d,_0x5b14d0,_0x239d0d){function _0x25b026(_0x167de8){return _0x167de8 instanceof _0x5b14d0?_0x167de8:new _0x5b14d0(function(_0x300bfb){_0x300bfb(_0x167de8);});}return new(_0x5b14d0||(_0x5b14d0=Promise))(function(_0x3d6e0f,_0x1e9546){function _0x1060b1(_0x4439a9){try{_0x3de2ff(_0x239d0d['next'](_0x4439a9));}catch(_0xf3051c){_0x1e9546(_0xf3051c);}}function _0x160e1b(_0x33556f){try{_0x3de2ff(_0x239d0d['throw'](_0x33556f));}catch(_0x2cc6a7){_0x1e9546(_0x2cc6a7);}}function _0x3de2ff(_0xb4b441){_0xb4b441['done']?_0x3d6e0f(_0xb4b441['value']):_0x25b026(_0xb4b441['value'])['then'](_0x1060b1,_0x160e1b);}_0x3de2ff((_0x239d0d=_0x239d0d['apply'](_0x34d04a,_0x39b68d||[]))['next']());});};class AccountService{constructor(_0x53edf5){this['fetch']=_0x53edf5;}['get'](_0x141f61,_0x2e9861){return __awaiter$5(this,void 0,void 0,function*(){const _0x2c8dfd='Account/'+_0x141f61+'/',_0x43b2ab=yield this['fetch']['get'](_0x2c8dfd,_0x2e9861);try{if(_0x43b2ab['status']>0xc7&&_0x43b2ab['status']<0x12c){const _0x1783d2=yield _0x43b2ab['json']();return new SuccessfulAccountResponse(_0x1783d2);}const _0x2ce9d1=yield _0x43b2ab['json']();return new FailedAccountResponse(_0x2ce9d1);}catch(_0x44876){if(_0x44876 instanceof Error)return new FailedAccountResponse({'detail':_0x44876['message'],'title':_0x44876['name'],'status':0x1f4,'instance':'','type':''});throw _0x44876;}});}}
4
+
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x4c1e2b,_0x4612cc,_0x525bd1,_0x2011cf){function _0x3fd622(_0x9514f9){return _0x9514f9 instanceof _0x525bd1?_0x9514f9:new _0x525bd1(function(_0x3e5f68){_0x3e5f68(_0x9514f9);});}return new(_0x525bd1||(_0x525bd1=Promise))(function(_0x48717b,_0x1dd05c){function _0x35c34d(_0xf27f36){try{_0x5c5f22(_0x2011cf['next'](_0xf27f36));}catch(_0x3614ca){_0x1dd05c(_0x3614ca);}}function _0x2f8f76(_0x2fc123){try{_0x5c5f22(_0x2011cf['throw'](_0x2fc123));}catch(_0x42c731){_0x1dd05c(_0x42c731);}}function _0x5c5f22(_0x5a19ee){_0x5a19ee['done']?_0x48717b(_0x5a19ee['value']):_0x3fd622(_0x5a19ee['value'])['then'](_0x35c34d,_0x2f8f76);}_0x5c5f22((_0x2011cf=_0x2011cf['apply'](_0x4c1e2b,_0x4612cc||[]))['next']());});};class ApiKeyService{constructor(_0x556478){this['fetch']=_0x556478,this['path']='api-key';}['create'](_0x4f645a,_0x427787,_0x546355){return __awaiter$4(this,void 0,void 0,function*(){const _0x3a4e3d={'account_name':_0x4f645a,'api_key_name':_0x427787};try{const _0x4d6195=yield this['fetch']['post'](this['path'],_0x546355,_0x3a4e3d);if(_0x4d6195['status']>0xc7&&_0x4d6195['status']<0x12c){const _0x4c1975=yield _0x4d6195['json']();return new SuccessfulApiKeyResponse(_0x4c1975);}const _0x43a65a=yield _0x4d6195['json']();return new FailedApiKeyResponse(_0x43a65a);}catch(_0x52a69a){if(_0x52a69a instanceof Error)return new FailedApiKeyResponse({'detail':_0x52a69a['message'],'title':_0x52a69a['name'],'status':0x1f4,'instance':'','type':''});throw _0x52a69a;}});}['view'](_0x40e76c,_0x1e1c95,_0x4ffe54){return __awaiter$4(this,void 0,void 0,function*(){const _0x2d4bf7=this['path']+'/'+_0x40e76c+'/'+_0x1e1c95;try{const _0x5931d0=yield this['fetch']['get'](_0x2d4bf7,_0x4ffe54);if(_0x5931d0['status']>0xc7&&_0x5931d0['status']<0x12c){const _0x3f03e7=yield _0x5931d0['json']();return new SuccessfulApiKeyValueResponse(_0x3f03e7);}const _0x3b7fb1=yield _0x5931d0['json']();return new FailedApiKeyValueResponse(_0x3b7fb1);}catch(_0x182e29){if(_0x182e29 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x182e29['message'],'title':_0x182e29['name'],'status':0x1f4,'instance':'','type':''});throw _0x182e29;}});}['delete'](_0x8073da,_0x404cf3,_0x27828d){return __awaiter$4(this,void 0,void 0,function*(){const _0x5ede4a=this['path']+'/'+_0x8073da+'/'+_0x404cf3;try{const _0xabff91=yield this['fetch']['delete'](_0x5ede4a,_0x27828d);if(_0xabff91['status']>0xc7&&_0xabff91['status']<0x12c)return new SuccessfulResponse({});const _0x4104d6=yield _0xabff91['json']();return new FailedResponse(_0x4104d6);}catch(_0x3ef045){if(_0x3ef045 instanceof Error)return new FailedResponse({'detail':_0x3ef045['message'],'title':_0x3ef045['name'],'status':0x1f4,'instance':'','type':''});throw _0x3ef045;}});}}
6
+
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x3a6f0c,_0x3ba789,_0x132502,_0xa75cda){function _0x40046a(_0x5a7651){return _0x5a7651 instanceof _0x132502?_0x5a7651:new _0x132502(function(_0x3c743c){_0x3c743c(_0x5a7651);});}return new(_0x132502||(_0x132502=Promise))(function(_0x43202a,_0x3f01b3){function _0x296f1d(_0x2d8184){try{_0x2884ee(_0xa75cda['next'](_0x2d8184));}catch(_0x57f4af){_0x3f01b3(_0x57f4af);}}function _0x32ddf9(_0x4a3b99){try{_0x2884ee(_0xa75cda['throw'](_0x4a3b99));}catch(_0x5bed63){_0x3f01b3(_0x5bed63);}}function _0x2884ee(_0x3e60b1){_0x3e60b1['done']?_0x43202a(_0x3e60b1['value']):_0x40046a(_0x3e60b1['value'])['then'](_0x296f1d,_0x32ddf9);}_0x2884ee((_0xa75cda=_0xa75cda['apply'](_0x3a6f0c,_0x3ba789||[]))['next']());});};class ListService{constructor(_0x322258){this['fetch']=_0x322258;}['add'](_0x21046d,_0x4f0d32,_0x770de4,_0x188d97){return __awaiter$3(this,void 0,void 0,function*(){const _0x14bb5a='List',_0x1f345e={'account_name':_0x21046d,'list_name':_0x4f0d32,'search_service_name':_0x770de4};try{const _0x13c142=yield this['fetch']['post'](_0x14bb5a,_0x188d97,_0x1f345e);if(_0x13c142['status']>0xc7&&_0x13c142['status']<0x12c){const _0x3b5590=yield _0x13c142['json']();return new SuccessfulListIdentityResponse(_0x3b5590);}const _0x9b7fac=yield _0x13c142['json']();return new FailedListIdentityResponse(_0x9b7fac);}catch(_0x3f9e1f){if(_0x3f9e1f instanceof Error)return new FailedListIdentityResponse({'detail':_0x3f9e1f['message'],'title':_0x3f9e1f['name'],'status':0x1f4,'instance':'','type':''});throw _0x3f9e1f;}});}['delete'](_0x1aef55,_0x50fc45,_0x2565b0){return __awaiter$3(this,void 0,void 0,function*(){const _0x233c7b='List/'+_0x1aef55+'/'+_0x50fc45,_0x3608db=yield this['fetch']['delete'](_0x233c7b,_0x2565b0);try{if(_0x3608db['status']>0xc7&&_0x3608db['status']<0x12c)return new SuccessfulResponse({});const _0x20c1f8=yield _0x3608db['json']();return new FailedResponse(_0x20c1f8);}catch(_0x1059e1){if(_0x1059e1 instanceof Error)return new FailedResponse({'detail':_0x1059e1['message'],'title':_0x1059e1['name'],'status':0x1f4,'instance':'','type':''});throw _0x1059e1;}});}['get'](_0x1ebcaa,_0x345cff,_0x144493){return __awaiter$3(this,void 0,void 0,function*(){const _0x1ba808='List/'+_0x1ebcaa+'/'+_0x345cff;try{const _0xf536cb=yield this['fetch']['get'](_0x1ba808,_0x144493);if(_0xf536cb['status']>0xc7&&_0xf536cb['status']<0x12c){const _0x2a3eb3=yield _0xf536cb['json']();return new SuccessfulListResponse(_0x2a3eb3);}const _0x12c309=yield _0xf536cb['json']();return new FailedListResponse(_0x12c309);}catch(_0x3a4a43){if(_0x3a4a43 instanceof Error)return new FailedListResponse({'detail':_0x3a4a43['message'],'title':_0x3a4a43['name'],'status':0x1f4,'instance':'','type':''});throw _0x3a4a43;}});}}
8
+
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x200ce1,_0x4cc81c,_0x3f3509,_0x4855d5){function _0x540635(_0x1417ee){return _0x1417ee instanceof _0x3f3509?_0x1417ee:new _0x3f3509(function(_0xf6c4c2){_0xf6c4c2(_0x1417ee);});}return new(_0x3f3509||(_0x3f3509=Promise))(function(_0x3c0193,_0x3ba3fd){function _0x378609(_0x85a497){try{_0x4627c9(_0x4855d5['next'](_0x85a497));}catch(_0x15142b){_0x3ba3fd(_0x15142b);}}function _0x140ab0(_0xf8ea9d){try{_0x4627c9(_0x4855d5['throw'](_0xf8ea9d));}catch(_0x27e474){_0x3ba3fd(_0x27e474);}}function _0x4627c9(_0x11bd97){_0x11bd97['done']?_0x3c0193(_0x11bd97['value']):_0x540635(_0x11bd97['value'])['then'](_0x378609,_0x140ab0);}_0x4627c9((_0x4855d5=_0x4855d5['apply'](_0x200ce1,_0x4cc81c||[]))['next']());});};class Fetch{constructor(_0x4f1705){this['baseUri']=_0x4f1705,this['getUrl']=_0x5810e2=>{return _0x5810e2['startsWith']('/')&&(_0x5810e2=_0x5810e2['replace']('/','')),''+this['baseUri']+_0x5810e2;},!_0x4f1705['endsWith']('/')&&(_0x4f1705=_0x4f1705+'/');}['get'](_0xccc257,_0x56a225){return __awaiter$2(this,void 0,void 0,function*(){const _0x201fae=this['getUrl'](_0xccc257);return yield fetch(_0x201fae,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x56a225}});});}['post'](_0x10fdda,_0x5064a0,_0x4fe66f){return __awaiter$2(this,void 0,void 0,function*(){const _0x54dbf3=this['getUrl'](_0x10fdda);return yield fetch(_0x54dbf3,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5064a0},'body':_0x4fe66f?JSON['stringify'](_0x4fe66f):null});});}['PostNoAuth'](_0x16d6db,_0x1ac101){return __awaiter$2(this,void 0,void 0,function*(){const _0x35da47=this['getUrl'](_0x16d6db);return yield fetch(_0x35da47,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x1ac101?JSON['stringify'](_0x1ac101):null});});}['put'](_0x8f237f,_0x2bf8de,_0x5d2ca2){return __awaiter$2(this,void 0,void 0,function*(){const _0x4a9c53=this['getUrl'](_0x8f237f);return yield fetch(_0x4a9c53,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2bf8de},'body':_0x5d2ca2?JSON['stringify'](_0x5d2ca2):null});});}['delete'](_0x2edd0a,_0xe94f66){return __awaiter$2(this,void 0,void 0,function*(){const _0x3abce0=this['getUrl'](_0x2edd0a);return yield fetch(_0x3abce0,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xe94f66}});});}}
10
+
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0xa807cd,_0xc7e6f7,_0x2f051f,_0x20381a){function _0x2c4c19(_0xbc922d){return _0xbc922d instanceof _0x2f051f?_0xbc922d:new _0x2f051f(function(_0x1f60f5){_0x1f60f5(_0xbc922d);});}return new(_0x2f051f||(_0x2f051f=Promise))(function(_0x5e5e04,_0x241c90){function _0x4abd5e(_0x1c67cf){try{_0x15802c(_0x20381a['next'](_0x1c67cf));}catch(_0x3db402){_0x241c90(_0x3db402);}}function _0x4b5bdd(_0x116fd6){try{_0x15802c(_0x20381a['throw'](_0x116fd6));}catch(_0x5daa48){_0x241c90(_0x5daa48);}}function _0x15802c(_0x31d6c6){_0x31d6c6['done']?_0x5e5e04(_0x31d6c6['value']):_0x2c4c19(_0x31d6c6['value'])['then'](_0x4abd5e,_0x4b5bdd);}_0x15802c((_0x20381a=_0x20381a['apply'](_0xa807cd,_0xc7e6f7||[]))['next']());});};class SearchServersService{constructor(_0x440d99){this['fetch']=_0x440d99,this['path']='search-services';}['create'](_0x5b5523,_0x15c917,_0x59ccc6,_0x5cf9e7,_0x1042d2,_0x3c7d9d,_0x1434d5,_0x1cac66){return __awaiter$1(this,void 0,void 0,function*(){const _0x521af1={'account_name':_0x5b5523,'search_service_name':_0x15c917,'endpoint':_0x59ccc6,'key':_0x5cf9e7,'country':_0x1042d2,'provider':_0x3c7d9d,'index_name':_0x1434d5};try{const _0x4513c8=yield this['fetch']['post'](this['path'],_0x1cac66,_0x521af1);if(_0x4513c8['status']>0xc7&&_0x4513c8['status']<0x12c){const _0x208e6e=yield _0x4513c8['json']();return new SuccessfulSearchServiceResponse(_0x208e6e);}const _0x225a9d=yield _0x4513c8['json']();return new FailedSearchServiceResponse(_0x225a9d);}catch(_0x15fc24){if(_0x15fc24 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x15fc24['message'],'title':_0x15fc24['name'],'status':0x1f4,'instance':'','type':''});throw _0x15fc24;}});}['delete'](_0x359a3f,_0x485bd0,_0x497b11){return __awaiter$1(this,void 0,void 0,function*(){const _0x1fd7a1=this['path']+'/'+_0x359a3f+'/'+_0x485bd0;try{const _0x4b2b17=yield this['fetch']['delete'](_0x1fd7a1,_0x497b11);if(_0x4b2b17['status']>0xc7&&_0x4b2b17['status']<0x12c)return new SuccessfulResponse({});const _0x162c58=yield _0x4b2b17['json']();return new FailedResponse(_0x162c58);}catch(_0x5d84b4){if(_0x5d84b4 instanceof Error)return new FailedResponse({'detail':_0x5d84b4['message'],'title':_0x5d84b4['name'],'status':0x1f4,'instance':'','type':''});throw _0x5d84b4;}});}['view'](_0x42b04c,_0x476e42,_0x124585){return __awaiter$1(this,void 0,void 0,function*(){const _0x338638=this['path']+'/'+_0x42b04c+'/'+_0x476e42;try{const _0x1547c9=yield this['fetch']['get'](_0x338638,_0x124585);if(_0x1547c9['status']>0xc7&&_0x1547c9['status']<0x12c){const _0x330d4b=yield _0x1547c9['json']();return new SuccessfulViewSearchServiceResponse(_0x330d4b);}const _0x3bb7ee=yield _0x1547c9['json']();return new FailedViewSearchServiceResponse(_0x3bb7ee);}catch(_0x11e356){if(_0x11e356 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x11e356['message'],'title':_0x11e356['name'],'status':0x1f4,'instance':'','type':''});throw _0x11e356;}});}['edit'](_0x1a0fb6,_0x4ccf6d,_0xf37c0c,_0x2f2758,_0x41c0e3,_0x495936){return __awaiter$1(this,void 0,void 0,function*(){const _0x13e1b9={'account_name':_0x1a0fb6,'search_service_name':_0x4ccf6d,'new_search_service_name':_0xf37c0c,'key':_0x2f2758,'country':_0x41c0e3};try{const _0x14219b=yield this['fetch']['put'](this['path'],_0x495936,_0x13e1b9);if(_0x14219b['status']>0xc7&&_0x14219b['status']<0x12c){const _0x23b1c9=yield _0x14219b['json']();return new SuccessfulSearchServiceResponse(_0x23b1c9);}const _0x591cfd=yield _0x14219b['json']();return new FailedSearchServiceResponse(_0x591cfd);}catch(_0x77036b){if(_0x77036b instanceof Error)return new FailedSearchServiceResponse({'detail':_0x77036b['message'],'title':_0x77036b['name'],'status':0x1f4,'instance':'','type':''});throw _0x77036b;}});}['list'](_0x5d063f,_0x58a5ef){return __awaiter$1(this,void 0,void 0,function*(){const _0x249262=this['path']+'/'+_0x5d063f;try{const _0x551a9b=yield this['fetch']['get'](_0x249262,_0x58a5ef);if(_0x551a9b['status']>0xc7&&_0x551a9b['status']<0x12c){const _0x3378fb=yield _0x551a9b['json']();return new SuccessfulListSearchServiceResponse(_0x3378fb);}const _0x13cbc1=yield _0x551a9b['json']();return new FailedViewSearchServicesResponse(_0x13cbc1);}catch(_0x578b0f){if(_0x578b0f instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x578b0f['message'],'title':_0x578b0f['name'],'status':0x1f4,'instance':'','type':''});throw _0x578b0f;}});}}
12
+
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x497e0c,_0x21eeda,_0xa0138e,_0xc9cdff){function _0x2ce7fb(_0x439a1a){return _0x439a1a instanceof _0xa0138e?_0x439a1a:new _0xa0138e(function(_0x27e652){_0x27e652(_0x439a1a);});}return new(_0xa0138e||(_0xa0138e=Promise))(function(_0xf9929f,_0x410019){function _0x95ea0a(_0x4ab691){try{_0x25fbf5(_0xc9cdff['next'](_0x4ab691));}catch(_0x5671c4){_0x410019(_0x5671c4);}}function _0x1b2c4e(_0x5b1178){try{_0x25fbf5(_0xc9cdff['throw'](_0x5b1178));}catch(_0x4e7cb1){_0x410019(_0x4e7cb1);}}function _0x25fbf5(_0x29d151){_0x29d151['done']?_0xf9929f(_0x29d151['value']):_0x2ce7fb(_0x29d151['value'])['then'](_0x95ea0a,_0x1b2c4e);}_0x25fbf5((_0xc9cdff=_0xc9cdff['apply'](_0x497e0c,_0x21eeda||[]))['next']());});};class AdminClient{constructor(_0x1311d5='https://admin.searchability.dev/'){var _0xf1ffac=new Fetch(_0x1311d5);this['Accounts']=new AccountService(_0xf1ffac),this['Lists']=new ListService(_0xf1ffac),this['ApiKeys']=new ApiKeyService(_0xf1ffac),this['SearchServices']=new SearchServersService(_0xf1ffac);}}class AuthClient{constructor(_0x290384='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x290384);}['login'](_0xea2ef8){return __awaiter(this,void 0,void 0,function*(){const _0x5e3c4f='login/'+_0xea2ef8;try{const _0x4e1607=yield yield fetch(_0x5e3c4f);if(_0x4e1607['status']>0xc7&&_0x4e1607['status']<0x12c){const _0x355860=yield _0x4e1607['json']();return new SuccessfulAuthResponse(_0x355860);}const _0xd2790b=yield _0x4e1607['json']();return new FailedAuthResponse(_0xd2790b);}catch(_0x34e40a){if(_0x34e40a instanceof Error)return new FailedAuthResponse({'detail':_0x34e40a['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x34e40a;}});}['refresh'](_0x3cc966){return __awaiter(this,void 0,void 0,function*(){const _0x462caf='refresh',_0x46aa4e={'refresh_token':_0x3cc966};try{const _0x4bfa1c=yield this['fetch']['PostNoAuth'](_0x462caf,_0x46aa4e);if(_0x4bfa1c['status']>0xc7&&_0x4bfa1c['status']<0x12c){const _0x4dbad8=yield _0x4bfa1c['json']();return new SuccessfulAuthResponse(_0x4dbad8);}const _0xd563e9=yield _0x4bfa1c['json']();return new FailedAuthResponse(_0xd563e9);}catch(_0x4cc547){if(_0x4cc547 instanceof Error)return new FailedAuthResponse({'detail':_0x4cc547['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x4cc547;}});}['getTokenStatus'](_0x15c529){if(Date['now']()<_0x15c529['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x15c529['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(_0x42351a){_0x42351a[_0x42351a['Ok']=0x0]='Ok',_0x42351a[_0x42351a['Refresh']=0x1]='Refresh',_0x42351a[_0x42351a['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(_0x5299c7){this['isSuccess']=_0x5299c7;}}class SuccessfulAccountResponse extends Response{constructor(_0x374324){super(!![]),this['account']=_0x374324;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x406481){super(!![]),this['list']=_0x406481;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x2333fd){super(![]),this['problem']=_0x2333fd;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x2996e8){super(![]),this['problem']=_0x2996e8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x2a4e3f){super(!![]),this['tokens']=_0x2a4e3f;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x2d678e){super(![]),this['problem']=_0x2d678e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x571fde){super(!![]),this['apiKey']=_0x571fde;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4b42aa){super(![]),this['problem']=_0x4b42aa;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x235f22){super(!![]),this['searchService']=_0x235f22;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x39b1b4){super(![]),this['problem']=_0x39b1b4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x2480e5){super(!![]),this['searchService']=_0x2480e5;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x50a1f8){super(!![]),this['searchServices']=_0x50a1f8;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x13ec3d){super(![]),this['problem']=_0x13ec3d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x426f14){super(![]),this['problem']=_0x426f14;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x3f3069){super(!![]),this['apiKeyValue']=_0x3f3069;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x53c17c){super(!![]),this['obj']=_0x53c17c;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x200ae4){super(![]),this['problem']=_0x200ae4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x466669){super(![]),this['problem']=_0x466669;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
3
+ exports.TokenStatus = void 0;(function(_0x1afaeb){_0x1afaeb[_0x1afaeb['Ok']=0x0]='Ok',_0x1afaeb[_0x1afaeb['Refresh']=0x1]='Refresh',_0x1afaeb[_0x1afaeb['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(_0x230e98){this['isSuccess']=_0x230e98;}}class SuccessfulAccountResponse extends Response{constructor(_0x22ac93){super(!![]),this['account']=_0x22ac93;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x4fb3b2){super(!![]),this['list']=_0x4fb3b2;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x4d510b){super(!![]),this['list']=_0x4d510b;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x244286){super(![]),this['problem']=_0x244286;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x55695d){super(![]),this['problem']=_0x55695d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x38a4f0){super(![]),this['problem']=_0x38a4f0;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x3b1e33){super(!![]),this['tokens']=_0x3b1e33;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x54d959){super(![]),this['problem']=_0x54d959;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x5d1fdb){super(!![]),this['apiKey']=_0x5d1fdb;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0xcc37d6){super(![]),this['problem']=_0xcc37d6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x52cbaa){super(!![]),this['searchService']=_0x52cbaa;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x2a4bc1){super(![]),this['problem']=_0x2a4bc1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0xef42a2){super(!![]),this['searchService']=_0xef42a2;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x157a99){super(!![]),this['searchServices']=_0x157a99;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x30b462){super(![]),this['problem']=_0x30b462;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x461c76){super(![]),this['problem']=_0x461c76;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x42f3fe){super(!![]),this['apiKeyValue']=_0x42f3fe;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x3975d2){super(!![]),this['obj']=_0x3975d2;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x4e55bd){super(![]),this['problem']=_0x4e55bd;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x27c4b8){super(![]),this['problem']=_0x27c4b8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
5
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x1eab9a,_0x4f8518,_0x1c1d71,_0x3d86dc){function _0x5c7738(_0x12b189){return _0x12b189 instanceof _0x1c1d71?_0x12b189:new _0x1c1d71(function(_0x4b8d98){_0x4b8d98(_0x12b189);});}return new(_0x1c1d71||(_0x1c1d71=Promise))(function(_0x17a630,_0x4ed6ac){function _0x1e020d(_0x272d3a){try{_0x3334f2(_0x3d86dc['next'](_0x272d3a));}catch(_0x3f4516){_0x4ed6ac(_0x3f4516);}}function _0x2958f9(_0x4bc183){try{_0x3334f2(_0x3d86dc['throw'](_0x4bc183));}catch(_0x5cea19){_0x4ed6ac(_0x5cea19);}}function _0x3334f2(_0x398718){_0x398718['done']?_0x17a630(_0x398718['value']):_0x5c7738(_0x398718['value'])['then'](_0x1e020d,_0x2958f9);}_0x3334f2((_0x3d86dc=_0x3d86dc['apply'](_0x1eab9a,_0x4f8518||[]))['next']());});};class AccountService{constructor(_0x36e39d){this['fetch']=_0x36e39d;}['get'](_0x71ff90,_0x3ac812){return __awaiter$5(this,void 0,void 0,function*(){const _0x2a9785='Account/'+_0x71ff90+'/',_0x4cd903=yield this['fetch']['get'](_0x2a9785,_0x3ac812);try{if(_0x4cd903['status']>0xc7&&_0x4cd903['status']<0x12c){const _0x21fc63=yield _0x4cd903['json']();return new SuccessfulAccountResponse(_0x21fc63);}const _0x2c7891=yield _0x4cd903['json']();return new FailedAccountResponse(_0x2c7891);}catch(_0x464f8d){if(_0x464f8d instanceof Error)return new FailedAccountResponse({'detail':_0x464f8d['message'],'title':_0x464f8d['name'],'status':0x1f4,'instance':'','type':''});throw _0x464f8d;}});}}
5
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x24ecdd,_0x5b4108,_0x1386ca,_0x4f064f){function _0x24f79a(_0x3fde52){return _0x3fde52 instanceof _0x1386ca?_0x3fde52:new _0x1386ca(function(_0x1b20e3){_0x1b20e3(_0x3fde52);});}return new(_0x1386ca||(_0x1386ca=Promise))(function(_0x44a2bf,_0x4b82f9){function _0x2a9706(_0xb7a2cd){try{_0x1aa5f3(_0x4f064f['next'](_0xb7a2cd));}catch(_0xdbefc1){_0x4b82f9(_0xdbefc1);}}function _0x30b05b(_0xca3b63){try{_0x1aa5f3(_0x4f064f['throw'](_0xca3b63));}catch(_0x50ff54){_0x4b82f9(_0x50ff54);}}function _0x1aa5f3(_0x40bcfa){_0x40bcfa['done']?_0x44a2bf(_0x40bcfa['value']):_0x24f79a(_0x40bcfa['value'])['then'](_0x2a9706,_0x30b05b);}_0x1aa5f3((_0x4f064f=_0x4f064f['apply'](_0x24ecdd,_0x5b4108||[]))['next']());});};class AccountService{constructor(_0x4d6043){this['fetch']=_0x4d6043;}['get'](_0x2ace22,_0x50689a){return __awaiter$5(this,void 0,void 0,function*(){const _0x1b1bb3='Account/'+_0x2ace22+'/',_0x113661=yield this['fetch']['get'](_0x1b1bb3,_0x50689a);try{if(_0x113661['status']>0xc7&&_0x113661['status']<0x12c){const _0x1dba82=yield _0x113661['json']();return new SuccessfulAccountResponse(_0x1dba82);}const _0x2871d3=yield _0x113661['json']();return new FailedAccountResponse(_0x2871d3);}catch(_0x265d10){if(_0x265d10 instanceof Error)return new FailedAccountResponse({'detail':_0x265d10['message'],'title':_0x265d10['name'],'status':0x1f4,'instance':'','type':''});throw _0x265d10;}});}}
6
6
 
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x220c99,_0xc50d51,_0x51a21e,_0x48b1bf){function _0xf83330(_0x556724){return _0x556724 instanceof _0x51a21e?_0x556724:new _0x51a21e(function(_0x22a056){_0x22a056(_0x556724);});}return new(_0x51a21e||(_0x51a21e=Promise))(function(_0x38193a,_0x2fdf2e){function _0x1e7dc7(_0xfb953d){try{_0x5596de(_0x48b1bf['next'](_0xfb953d));}catch(_0x2f33a5){_0x2fdf2e(_0x2f33a5);}}function _0x1cd5a6(_0x5854d9){try{_0x5596de(_0x48b1bf['throw'](_0x5854d9));}catch(_0x495af7){_0x2fdf2e(_0x495af7);}}function _0x5596de(_0x306b5c){_0x306b5c['done']?_0x38193a(_0x306b5c['value']):_0xf83330(_0x306b5c['value'])['then'](_0x1e7dc7,_0x1cd5a6);}_0x5596de((_0x48b1bf=_0x48b1bf['apply'](_0x220c99,_0xc50d51||[]))['next']());});};class ApiKeyService{constructor(_0x281150){this['fetch']=_0x281150,this['path']='api-key';}['create'](_0x32bd2b,_0x45bde7,_0x209fee){return __awaiter$4(this,void 0,void 0,function*(){const _0x5df6ec={'account_name':_0x32bd2b,'api_key_name':_0x45bde7};try{const _0x53095a=yield this['fetch']['post'](this['path'],_0x209fee,_0x5df6ec);if(_0x53095a['status']>0xc7&&_0x53095a['status']<0x12c){const _0x2c3fad=yield _0x53095a['json']();return new SuccessfulApiKeyResponse(_0x2c3fad);}const _0x444d27=yield _0x53095a['json']();return new FailedApiKeyResponse(_0x444d27);}catch(_0x3ec24b){if(_0x3ec24b instanceof Error)return new FailedApiKeyResponse({'detail':_0x3ec24b['message'],'title':_0x3ec24b['name'],'status':0x1f4,'instance':'','type':''});throw _0x3ec24b;}});}['view'](_0x566cfd,_0x41cf6d,_0x3a56ab){return __awaiter$4(this,void 0,void 0,function*(){const _0x34083c=this['path']+'/'+_0x566cfd+'/'+_0x41cf6d;try{const _0xe6432e=yield this['fetch']['get'](_0x34083c,_0x3a56ab);if(_0xe6432e['status']>0xc7&&_0xe6432e['status']<0x12c){const _0x3a3132=yield _0xe6432e['json']();return new SuccessfulApiKeyValueResponse(_0x3a3132);}const _0x4bfdb3=yield _0xe6432e['json']();return new FailedApiKeyValueResponse(_0x4bfdb3);}catch(_0x335021){if(_0x335021 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x335021['message'],'title':_0x335021['name'],'status':0x1f4,'instance':'','type':''});throw _0x335021;}});}['delete'](_0x4f8e06,_0x3a297b,_0x2cb9a0){return __awaiter$4(this,void 0,void 0,function*(){const _0x5c27a7=this['path']+'/'+_0x4f8e06+'/'+_0x3a297b;try{const _0xa1ccc3=yield this['fetch']['delete'](_0x5c27a7,_0x2cb9a0);if(_0xa1ccc3['status']>0xc7&&_0xa1ccc3['status']<0x12c)return new SuccessfulResponse({});const _0xb4bfa3=yield _0xa1ccc3['json']();return new FailedResponse(_0xb4bfa3);}catch(_0x5ebc2a){if(_0x5ebc2a instanceof Error)return new FailedResponse({'detail':_0x5ebc2a['message'],'title':_0x5ebc2a['name'],'status':0x1f4,'instance':'','type':''});throw _0x5ebc2a;}});}}
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x1df396,_0x32755f,_0x10b90e,_0x54463d){function _0x368171(_0x12396e){return _0x12396e instanceof _0x10b90e?_0x12396e:new _0x10b90e(function(_0x58d5fe){_0x58d5fe(_0x12396e);});}return new(_0x10b90e||(_0x10b90e=Promise))(function(_0x57ad53,_0x474a74){function _0x448425(_0x3b0ac5){try{_0x3040ef(_0x54463d['next'](_0x3b0ac5));}catch(_0x5b8e1d){_0x474a74(_0x5b8e1d);}}function _0x319603(_0x410f9e){try{_0x3040ef(_0x54463d['throw'](_0x410f9e));}catch(_0x51e7af){_0x474a74(_0x51e7af);}}function _0x3040ef(_0x161a2b){_0x161a2b['done']?_0x57ad53(_0x161a2b['value']):_0x368171(_0x161a2b['value'])['then'](_0x448425,_0x319603);}_0x3040ef((_0x54463d=_0x54463d['apply'](_0x1df396,_0x32755f||[]))['next']());});};class ApiKeyService{constructor(_0x131e57){this['fetch']=_0x131e57,this['path']='api-key';}['create'](_0x1da47a,_0x46a05e,_0x20426b){return __awaiter$4(this,void 0,void 0,function*(){const _0x42cc28={'account_name':_0x1da47a,'api_key_name':_0x46a05e};try{const _0x410624=yield this['fetch']['post'](this['path'],_0x20426b,_0x42cc28);if(_0x410624['status']>0xc7&&_0x410624['status']<0x12c){const _0x464a73=yield _0x410624['json']();return new SuccessfulApiKeyResponse(_0x464a73);}const _0x277afd=yield _0x410624['json']();return new FailedApiKeyResponse(_0x277afd);}catch(_0x269c06){if(_0x269c06 instanceof Error)return new FailedApiKeyResponse({'detail':_0x269c06['message'],'title':_0x269c06['name'],'status':0x1f4,'instance':'','type':''});throw _0x269c06;}});}['view'](_0x501861,_0x23a238,_0x170c37){return __awaiter$4(this,void 0,void 0,function*(){const _0x1a3419=this['path']+'/'+_0x501861+'/'+_0x23a238;try{const _0x240d67=yield this['fetch']['get'](_0x1a3419,_0x170c37);if(_0x240d67['status']>0xc7&&_0x240d67['status']<0x12c){const _0x38ec01=yield _0x240d67['json']();return new SuccessfulApiKeyValueResponse(_0x38ec01);}const _0x498b8a=yield _0x240d67['json']();return new FailedApiKeyValueResponse(_0x498b8a);}catch(_0x531054){if(_0x531054 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x531054['message'],'title':_0x531054['name'],'status':0x1f4,'instance':'','type':''});throw _0x531054;}});}['delete'](_0xfe96d5,_0x269089,_0x495289){return __awaiter$4(this,void 0,void 0,function*(){const _0x46a3af=this['path']+'/'+_0xfe96d5+'/'+_0x269089;try{const _0x560192=yield this['fetch']['delete'](_0x46a3af,_0x495289);if(_0x560192['status']>0xc7&&_0x560192['status']<0x12c)return new SuccessfulResponse({});const _0x3693bb=yield _0x560192['json']();return new FailedResponse(_0x3693bb);}catch(_0x2afaec){if(_0x2afaec instanceof Error)return new FailedResponse({'detail':_0x2afaec['message'],'title':_0x2afaec['name'],'status':0x1f4,'instance':'','type':''});throw _0x2afaec;}});}}
8
8
 
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x545c39,_0x3a3bc1,_0x382677,_0x1017a4){function _0x27a1e0(_0x3b50ca){return _0x3b50ca instanceof _0x382677?_0x3b50ca:new _0x382677(function(_0x56df69){_0x56df69(_0x3b50ca);});}return new(_0x382677||(_0x382677=Promise))(function(_0x3b2a6b,_0x3d8b5c){function _0x48d3cc(_0x43d4aa){try{_0x1ee421(_0x1017a4['next'](_0x43d4aa));}catch(_0x3181e3){_0x3d8b5c(_0x3181e3);}}function _0x45baba(_0x3f38e4){try{_0x1ee421(_0x1017a4['throw'](_0x3f38e4));}catch(_0x554d02){_0x3d8b5c(_0x554d02);}}function _0x1ee421(_0x2d994e){_0x2d994e['done']?_0x3b2a6b(_0x2d994e['value']):_0x27a1e0(_0x2d994e['value'])['then'](_0x48d3cc,_0x45baba);}_0x1ee421((_0x1017a4=_0x1017a4['apply'](_0x545c39,_0x3a3bc1||[]))['next']());});};class ListService{constructor(_0x1b1e0b){this['fetch']=_0x1b1e0b;}['add'](_0xc4458f,_0x32adcf,_0x1540fe,_0x313177){return __awaiter$3(this,void 0,void 0,function*(){const _0x1a1efa='List',_0x49a952={'account_name':_0xc4458f,'list_name':_0x32adcf,'search_service_name':_0x1540fe};try{const _0x326518=yield this['fetch']['post'](_0x1a1efa,_0x313177,_0x49a952);if(_0x326518['status']>0xc7&&_0x326518['status']<0x12c){const _0x81fdaf=yield _0x326518['json']();return new SuccessfulListIdentityResponse(_0x81fdaf);}const _0x25c15f=yield _0x326518['json']();return new FailedListIdentityResponse(_0x25c15f);}catch(_0x4e91f5){if(_0x4e91f5 instanceof Error)return new FailedListIdentityResponse({'detail':_0x4e91f5['message'],'title':_0x4e91f5['name'],'status':0x1f4,'instance':'','type':''});throw _0x4e91f5;}});}['delete'](_0x5a63bd,_0x1c2bc9,_0x55d26a){return __awaiter$3(this,void 0,void 0,function*(){const _0x168df8='List/'+_0x5a63bd+'/'+_0x1c2bc9,_0xea2bbd=yield this['fetch']['delete'](_0x168df8,_0x55d26a);try{if(_0xea2bbd['status']>0xc7&&_0xea2bbd['status']<0x12c)return new SuccessfulResponse({});const _0x43eb44=yield _0xea2bbd['json']();return new FailedResponse(_0x43eb44);}catch(_0x4816d8){if(_0x4816d8 instanceof Error)return new FailedResponse({'detail':_0x4816d8['message'],'title':_0x4816d8['name'],'status':0x1f4,'instance':'','type':''});throw _0x4816d8;}});}}
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x6a1ea7,_0x21806c,_0x411cbd,_0x187c7b){function _0x56dfc1(_0xe19732){return _0xe19732 instanceof _0x411cbd?_0xe19732:new _0x411cbd(function(_0x236255){_0x236255(_0xe19732);});}return new(_0x411cbd||(_0x411cbd=Promise))(function(_0x51eee5,_0x25a0f8){function _0x193f66(_0x1032de){try{_0x37ee3f(_0x187c7b['next'](_0x1032de));}catch(_0xf864ff){_0x25a0f8(_0xf864ff);}}function _0x1383ea(_0x11263c){try{_0x37ee3f(_0x187c7b['throw'](_0x11263c));}catch(_0x73baa9){_0x25a0f8(_0x73baa9);}}function _0x37ee3f(_0x124c8f){_0x124c8f['done']?_0x51eee5(_0x124c8f['value']):_0x56dfc1(_0x124c8f['value'])['then'](_0x193f66,_0x1383ea);}_0x37ee3f((_0x187c7b=_0x187c7b['apply'](_0x6a1ea7,_0x21806c||[]))['next']());});};class ListService{constructor(_0x55396f){this['fetch']=_0x55396f;}['add'](_0x1b9f27,_0x527452,_0x37a41b,_0x5295d5){return __awaiter$3(this,void 0,void 0,function*(){const _0xa3499b='List',_0x21208a={'account_name':_0x1b9f27,'list_name':_0x527452,'search_service_name':_0x37a41b};try{const _0x1704d9=yield this['fetch']['post'](_0xa3499b,_0x5295d5,_0x21208a);if(_0x1704d9['status']>0xc7&&_0x1704d9['status']<0x12c){const _0x2f0f0e=yield _0x1704d9['json']();return new SuccessfulListIdentityResponse(_0x2f0f0e);}const _0x1ac010=yield _0x1704d9['json']();return new FailedListIdentityResponse(_0x1ac010);}catch(_0xb3ee1a){if(_0xb3ee1a instanceof Error)return new FailedListIdentityResponse({'detail':_0xb3ee1a['message'],'title':_0xb3ee1a['name'],'status':0x1f4,'instance':'','type':''});throw _0xb3ee1a;}});}['delete'](_0x1a183c,_0x309c9d,_0x3a201b){return __awaiter$3(this,void 0,void 0,function*(){const _0x1b1fa6='List/'+_0x1a183c+'/'+_0x309c9d,_0x6027b=yield this['fetch']['delete'](_0x1b1fa6,_0x3a201b);try{if(_0x6027b['status']>0xc7&&_0x6027b['status']<0x12c)return new SuccessfulResponse({});const _0x5894e3=yield _0x6027b['json']();return new FailedResponse(_0x5894e3);}catch(_0x4072d6){if(_0x4072d6 instanceof Error)return new FailedResponse({'detail':_0x4072d6['message'],'title':_0x4072d6['name'],'status':0x1f4,'instance':'','type':''});throw _0x4072d6;}});}['get'](_0x389df7,_0x59c35e,_0x3c1051){return __awaiter$3(this,void 0,void 0,function*(){const _0x46a718='List/'+_0x389df7+'/'+_0x59c35e;try{const _0x83417f=yield this['fetch']['get'](_0x46a718,_0x3c1051);if(_0x83417f['status']>0xc7&&_0x83417f['status']<0x12c){const _0x3000b7=yield _0x83417f['json']();return new SuccessfulListResponse(_0x3000b7);}const _0x3eb1f3=yield _0x83417f['json']();return new FailedListResponse(_0x3eb1f3);}catch(_0x2d15e4){if(_0x2d15e4 instanceof Error)return new FailedListResponse({'detail':_0x2d15e4['message'],'title':_0x2d15e4['name'],'status':0x1f4,'instance':'','type':''});throw _0x2d15e4;}});}}
10
10
 
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x952f47,_0x41240e,_0x49508c,_0x33d5ef){function _0x175c65(_0x1481a9){return _0x1481a9 instanceof _0x49508c?_0x1481a9:new _0x49508c(function(_0x921366){_0x921366(_0x1481a9);});}return new(_0x49508c||(_0x49508c=Promise))(function(_0x3c0a03,_0x54ce64){function _0x1953f4(_0x4a8441){try{_0x5ab7f0(_0x33d5ef['next'](_0x4a8441));}catch(_0x58cba5){_0x54ce64(_0x58cba5);}}function _0x9ed3aa(_0x3cb1dd){try{_0x5ab7f0(_0x33d5ef['throw'](_0x3cb1dd));}catch(_0x2ecbcc){_0x54ce64(_0x2ecbcc);}}function _0x5ab7f0(_0xbfa907){_0xbfa907['done']?_0x3c0a03(_0xbfa907['value']):_0x175c65(_0xbfa907['value'])['then'](_0x1953f4,_0x9ed3aa);}_0x5ab7f0((_0x33d5ef=_0x33d5ef['apply'](_0x952f47,_0x41240e||[]))['next']());});};class Fetch{constructor(_0x1e2130){this['baseUri']=_0x1e2130,this['getUrl']=_0x2bf6fe=>{return _0x2bf6fe['startsWith']('/')&&(_0x2bf6fe=_0x2bf6fe['replace']('/','')),''+this['baseUri']+_0x2bf6fe;},!_0x1e2130['endsWith']('/')&&(_0x1e2130=_0x1e2130+'/');}['get'](_0x327c10,_0xa089bc){return __awaiter$2(this,void 0,void 0,function*(){const _0x58a76d=this['getUrl'](_0x327c10);return yield fetch(_0x58a76d,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xa089bc}});});}['post'](_0x330852,_0x2ab831,_0x14b652){return __awaiter$2(this,void 0,void 0,function*(){const _0x3d1462=this['getUrl'](_0x330852);return yield fetch(_0x3d1462,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2ab831},'body':_0x14b652?JSON['stringify'](_0x14b652):null});});}['PostNoAuth'](_0x1c9d3a,_0x3bb23b){return __awaiter$2(this,void 0,void 0,function*(){const _0xc4df0b=this['getUrl'](_0x1c9d3a);return yield fetch(_0xc4df0b,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x3bb23b?JSON['stringify'](_0x3bb23b):null});});}['put'](_0x5091bd,_0x3de2e0,_0x59163d){return __awaiter$2(this,void 0,void 0,function*(){const _0x5d8f5e=this['getUrl'](_0x5091bd);return yield fetch(_0x5d8f5e,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3de2e0},'body':_0x59163d?JSON['stringify'](_0x59163d):null});});}['delete'](_0x109fec,_0x149c51){return __awaiter$2(this,void 0,void 0,function*(){const _0x29e64e=this['getUrl'](_0x109fec);return yield fetch(_0x29e64e,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x149c51}});});}}
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x797931,_0x125e2a,_0x5c0873,_0x474226){function _0x5c7a26(_0x1d3519){return _0x1d3519 instanceof _0x5c0873?_0x1d3519:new _0x5c0873(function(_0x46223e){_0x46223e(_0x1d3519);});}return new(_0x5c0873||(_0x5c0873=Promise))(function(_0x4c4e3e,_0x5e790c){function _0x823f21(_0x524986){try{_0x36d145(_0x474226['next'](_0x524986));}catch(_0x3cf9be){_0x5e790c(_0x3cf9be);}}function _0x1c8dc1(_0x31e6bd){try{_0x36d145(_0x474226['throw'](_0x31e6bd));}catch(_0x3e9535){_0x5e790c(_0x3e9535);}}function _0x36d145(_0x52cc5f){_0x52cc5f['done']?_0x4c4e3e(_0x52cc5f['value']):_0x5c7a26(_0x52cc5f['value'])['then'](_0x823f21,_0x1c8dc1);}_0x36d145((_0x474226=_0x474226['apply'](_0x797931,_0x125e2a||[]))['next']());});};class Fetch{constructor(_0x4f4607){this['baseUri']=_0x4f4607,this['getUrl']=_0x211770=>{return _0x211770['startsWith']('/')&&(_0x211770=_0x211770['replace']('/','')),''+this['baseUri']+_0x211770;},!_0x4f4607['endsWith']('/')&&(_0x4f4607=_0x4f4607+'/');}['get'](_0x4dce56,_0x22de44){return __awaiter$2(this,void 0,void 0,function*(){const _0x172d67=this['getUrl'](_0x4dce56);return yield fetch(_0x172d67,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x22de44}});});}['post'](_0x277c5f,_0x1c6935,_0x464f46){return __awaiter$2(this,void 0,void 0,function*(){const _0xedd20b=this['getUrl'](_0x277c5f);return yield fetch(_0xedd20b,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1c6935},'body':_0x464f46?JSON['stringify'](_0x464f46):null});});}['PostNoAuth'](_0x154ddf,_0x51195d){return __awaiter$2(this,void 0,void 0,function*(){const _0x5ab9ad=this['getUrl'](_0x154ddf);return yield fetch(_0x5ab9ad,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x51195d?JSON['stringify'](_0x51195d):null});});}['put'](_0x4473ba,_0x48a055,_0x552952){return __awaiter$2(this,void 0,void 0,function*(){const _0x119af5=this['getUrl'](_0x4473ba);return yield fetch(_0x119af5,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x48a055},'body':_0x552952?JSON['stringify'](_0x552952):null});});}['delete'](_0x3082ff,_0x46173d){return __awaiter$2(this,void 0,void 0,function*(){const _0x2988ce=this['getUrl'](_0x3082ff);return yield fetch(_0x2988ce,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x46173d}});});}}
12
12
 
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x3b1c05,_0x5ea840,_0x5629a4,_0xf61ba3){function _0x502838(_0x2c979d){return _0x2c979d instanceof _0x5629a4?_0x2c979d:new _0x5629a4(function(_0x5544ae){_0x5544ae(_0x2c979d);});}return new(_0x5629a4||(_0x5629a4=Promise))(function(_0x6ab3a9,_0x2a14f2){function _0x3ba0e2(_0x2b4194){try{_0x19250a(_0xf61ba3['next'](_0x2b4194));}catch(_0x419237){_0x2a14f2(_0x419237);}}function _0x446d76(_0x2a8221){try{_0x19250a(_0xf61ba3['throw'](_0x2a8221));}catch(_0x5e0f69){_0x2a14f2(_0x5e0f69);}}function _0x19250a(_0x360d17){_0x360d17['done']?_0x6ab3a9(_0x360d17['value']):_0x502838(_0x360d17['value'])['then'](_0x3ba0e2,_0x446d76);}_0x19250a((_0xf61ba3=_0xf61ba3['apply'](_0x3b1c05,_0x5ea840||[]))['next']());});};class SearchServersService{constructor(_0x66c33f){this['fetch']=_0x66c33f,this['path']='search-services';}['create'](_0x31b480,_0x1c380b,_0x147ab7,_0x2e2967,_0x3cf953,_0x55652c,_0x30664a,_0x69c1e){return __awaiter$1(this,void 0,void 0,function*(){const _0x53b9b1={'account_name':_0x31b480,'search_service_name':_0x1c380b,'endpoint':_0x147ab7,'key':_0x2e2967,'country':_0x3cf953,'provider':_0x55652c,'index_name':_0x30664a};try{const _0x4f4295=yield this['fetch']['post'](this['path'],_0x69c1e,_0x53b9b1);if(_0x4f4295['status']>0xc7&&_0x4f4295['status']<0x12c){const _0x27702a=yield _0x4f4295['json']();return new SuccessfulSearchServiceResponse(_0x27702a);}const _0xe1c117=yield _0x4f4295['json']();return new FailedSearchServiceResponse(_0xe1c117);}catch(_0x31f14d){if(_0x31f14d instanceof Error)return new FailedSearchServiceResponse({'detail':_0x31f14d['message'],'title':_0x31f14d['name'],'status':0x1f4,'instance':'','type':''});throw _0x31f14d;}});}['delete'](_0x2ea6de,_0x34acd0,_0x5cb2cc){return __awaiter$1(this,void 0,void 0,function*(){const _0x3d635c=this['path']+'/'+_0x2ea6de+'/'+_0x34acd0;try{const _0x3a27a5=yield this['fetch']['delete'](_0x3d635c,_0x5cb2cc);if(_0x3a27a5['status']>0xc7&&_0x3a27a5['status']<0x12c)return new SuccessfulResponse({});const _0x4b8ea7=yield _0x3a27a5['json']();return new FailedResponse(_0x4b8ea7);}catch(_0x59891e){if(_0x59891e instanceof Error)return new FailedResponse({'detail':_0x59891e['message'],'title':_0x59891e['name'],'status':0x1f4,'instance':'','type':''});throw _0x59891e;}});}['view'](_0x17ad27,_0x172f3a,_0x36dc42){return __awaiter$1(this,void 0,void 0,function*(){const _0x29fa9d=this['path']+'/'+_0x17ad27+'/'+_0x172f3a;try{const _0x267ed8=yield this['fetch']['get'](_0x29fa9d,_0x36dc42);if(_0x267ed8['status']>0xc7&&_0x267ed8['status']<0x12c){const _0x4b9aba=yield _0x267ed8['json']();return new SuccessfulViewSearchServiceResponse(_0x4b9aba);}const _0x4a9deb=yield _0x267ed8['json']();return new FailedViewSearchServiceResponse(_0x4a9deb);}catch(_0x48d6a5){if(_0x48d6a5 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x48d6a5['message'],'title':_0x48d6a5['name'],'status':0x1f4,'instance':'','type':''});throw _0x48d6a5;}});}['edit'](_0x93d12c,_0x15b527,_0x3c0425,_0x37b638,_0x5d677f,_0x3d815e){return __awaiter$1(this,void 0,void 0,function*(){const _0x4c7a90={'account_name':_0x93d12c,'search_service_name':_0x15b527,'new_search_service_name':_0x3c0425,'key':_0x37b638,'country':_0x5d677f};try{const _0x189181=yield this['fetch']['put'](this['path'],_0x3d815e,_0x4c7a90);if(_0x189181['status']>0xc7&&_0x189181['status']<0x12c){const _0x1736eb=yield _0x189181['json']();return new SuccessfulSearchServiceResponse(_0x1736eb);}const _0x174e15=yield _0x189181['json']();return new FailedSearchServiceResponse(_0x174e15);}catch(_0x49ba28){if(_0x49ba28 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x49ba28['message'],'title':_0x49ba28['name'],'status':0x1f4,'instance':'','type':''});throw _0x49ba28;}});}['list'](_0x3da9bf,_0x59546f){return __awaiter$1(this,void 0,void 0,function*(){const _0x2277d4=this['path']+'/'+_0x3da9bf;try{const _0x1fbdfe=yield this['fetch']['get'](_0x2277d4,_0x59546f);if(_0x1fbdfe['status']>0xc7&&_0x1fbdfe['status']<0x12c){const _0x4e76e5=yield _0x1fbdfe['json']();return new SuccessfulListSearchServiceResponse(_0x4e76e5);}const _0x23f82e=yield _0x1fbdfe['json']();return new FailedViewSearchServicesResponse(_0x23f82e);}catch(_0xb58f51){if(_0xb58f51 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0xb58f51['message'],'title':_0xb58f51['name'],'status':0x1f4,'instance':'','type':''});throw _0xb58f51;}});}}
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x1f47bc,_0x115ae1,_0x265b47,_0x559274){function _0x181beb(_0x551e8b){return _0x551e8b instanceof _0x265b47?_0x551e8b:new _0x265b47(function(_0x511121){_0x511121(_0x551e8b);});}return new(_0x265b47||(_0x265b47=Promise))(function(_0x17ebdd,_0x422d6f){function _0x5ad00a(_0x3a64b1){try{_0x5339a5(_0x559274['next'](_0x3a64b1));}catch(_0x33c121){_0x422d6f(_0x33c121);}}function _0x313a19(_0x353eb1){try{_0x5339a5(_0x559274['throw'](_0x353eb1));}catch(_0x969a14){_0x422d6f(_0x969a14);}}function _0x5339a5(_0x503f2d){_0x503f2d['done']?_0x17ebdd(_0x503f2d['value']):_0x181beb(_0x503f2d['value'])['then'](_0x5ad00a,_0x313a19);}_0x5339a5((_0x559274=_0x559274['apply'](_0x1f47bc,_0x115ae1||[]))['next']());});};class SearchServersService{constructor(_0x46f159){this['fetch']=_0x46f159,this['path']='search-services';}['create'](_0x3909ae,_0x3acdd8,_0x4d1b23,_0x104abf,_0x307f3f,_0x433f74,_0x576810,_0x35fdff){return __awaiter$1(this,void 0,void 0,function*(){const _0x8c8f6e={'account_name':_0x3909ae,'search_service_name':_0x3acdd8,'endpoint':_0x4d1b23,'key':_0x104abf,'country':_0x307f3f,'provider':_0x433f74,'index_name':_0x576810};try{const _0x1a970e=yield this['fetch']['post'](this['path'],_0x35fdff,_0x8c8f6e);if(_0x1a970e['status']>0xc7&&_0x1a970e['status']<0x12c){const _0x3b7c30=yield _0x1a970e['json']();return new SuccessfulSearchServiceResponse(_0x3b7c30);}const _0x49ca5c=yield _0x1a970e['json']();return new FailedSearchServiceResponse(_0x49ca5c);}catch(_0x22bc5e){if(_0x22bc5e instanceof Error)return new FailedSearchServiceResponse({'detail':_0x22bc5e['message'],'title':_0x22bc5e['name'],'status':0x1f4,'instance':'','type':''});throw _0x22bc5e;}});}['delete'](_0x20a48b,_0x4878e9,_0x1b6a12){return __awaiter$1(this,void 0,void 0,function*(){const _0x224eac=this['path']+'/'+_0x20a48b+'/'+_0x4878e9;try{const _0x49cba6=yield this['fetch']['delete'](_0x224eac,_0x1b6a12);if(_0x49cba6['status']>0xc7&&_0x49cba6['status']<0x12c)return new SuccessfulResponse({});const _0x34ee7f=yield _0x49cba6['json']();return new FailedResponse(_0x34ee7f);}catch(_0x2ab864){if(_0x2ab864 instanceof Error)return new FailedResponse({'detail':_0x2ab864['message'],'title':_0x2ab864['name'],'status':0x1f4,'instance':'','type':''});throw _0x2ab864;}});}['view'](_0x30ff7e,_0x45834e,_0x1dacc4){return __awaiter$1(this,void 0,void 0,function*(){const _0x28f1b0=this['path']+'/'+_0x30ff7e+'/'+_0x45834e;try{const _0x380b5f=yield this['fetch']['get'](_0x28f1b0,_0x1dacc4);if(_0x380b5f['status']>0xc7&&_0x380b5f['status']<0x12c){const _0x5c31a6=yield _0x380b5f['json']();return new SuccessfulViewSearchServiceResponse(_0x5c31a6);}const _0x8b5e60=yield _0x380b5f['json']();return new FailedViewSearchServiceResponse(_0x8b5e60);}catch(_0x198abc){if(_0x198abc instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x198abc['message'],'title':_0x198abc['name'],'status':0x1f4,'instance':'','type':''});throw _0x198abc;}});}['edit'](_0x550412,_0x36a741,_0xfe0cdf,_0x1b8274,_0x282938,_0x1543ca){return __awaiter$1(this,void 0,void 0,function*(){const _0x3100af={'account_name':_0x550412,'search_service_name':_0x36a741,'new_search_service_name':_0xfe0cdf,'key':_0x1b8274,'country':_0x282938};try{const _0x172d1d=yield this['fetch']['put'](this['path'],_0x1543ca,_0x3100af);if(_0x172d1d['status']>0xc7&&_0x172d1d['status']<0x12c){const _0x55c900=yield _0x172d1d['json']();return new SuccessfulSearchServiceResponse(_0x55c900);}const _0x50051d=yield _0x172d1d['json']();return new FailedSearchServiceResponse(_0x50051d);}catch(_0x7174d8){if(_0x7174d8 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x7174d8['message'],'title':_0x7174d8['name'],'status':0x1f4,'instance':'','type':''});throw _0x7174d8;}});}['list'](_0x301fd5,_0xc02087){return __awaiter$1(this,void 0,void 0,function*(){const _0x5d88de=this['path']+'/'+_0x301fd5;try{const _0x51f715=yield this['fetch']['get'](_0x5d88de,_0xc02087);if(_0x51f715['status']>0xc7&&_0x51f715['status']<0x12c){const _0x2e6a32=yield _0x51f715['json']();return new SuccessfulListSearchServiceResponse(_0x2e6a32);}const _0x4942c6=yield _0x51f715['json']();return new FailedViewSearchServicesResponse(_0x4942c6);}catch(_0x27789b){if(_0x27789b instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x27789b['message'],'title':_0x27789b['name'],'status':0x1f4,'instance':'','type':''});throw _0x27789b;}});}}
14
14
 
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x1f292d,_0x507403,_0x596783,_0x252803){function _0x3420ba(_0x54daca){return _0x54daca instanceof _0x596783?_0x54daca:new _0x596783(function(_0x6b74f3){_0x6b74f3(_0x54daca);});}return new(_0x596783||(_0x596783=Promise))(function(_0x4b343b,_0x27c19f){function _0x5a8ff3(_0x453cb7){try{_0xbcc52f(_0x252803['next'](_0x453cb7));}catch(_0x5f2730){_0x27c19f(_0x5f2730);}}function _0x348f42(_0x1b4a30){try{_0xbcc52f(_0x252803['throw'](_0x1b4a30));}catch(_0x48d2c0){_0x27c19f(_0x48d2c0);}}function _0xbcc52f(_0x3f389a){_0x3f389a['done']?_0x4b343b(_0x3f389a['value']):_0x3420ba(_0x3f389a['value'])['then'](_0x5a8ff3,_0x348f42);}_0xbcc52f((_0x252803=_0x252803['apply'](_0x1f292d,_0x507403||[]))['next']());});};class AdminClient{constructor(_0x4f4dbc='https://admin.searchability.dev/'){var _0x29460c=new Fetch(_0x4f4dbc);this['Accounts']=new AccountService(_0x29460c),this['Lists']=new ListService(_0x29460c),this['ApiKeys']=new ApiKeyService(_0x29460c),this['SearchServices']=new SearchServersService(_0x29460c);}}class AuthClient{constructor(_0x1e7586='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x1e7586);}['login'](_0x171a05){return __awaiter(this,void 0,void 0,function*(){const _0x2211b7='login/'+_0x171a05;try{const _0x4edb2b=yield yield fetch(_0x2211b7);if(_0x4edb2b['status']>0xc7&&_0x4edb2b['status']<0x12c){const _0x4370b6=yield _0x4edb2b['json']();return new SuccessfulAuthResponse(_0x4370b6);}const _0x3051a3=yield _0x4edb2b['json']();return new FailedAuthResponse(_0x3051a3);}catch(_0x2fc8a1){if(_0x2fc8a1 instanceof Error)return new FailedAuthResponse({'detail':_0x2fc8a1['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2fc8a1;}});}['refresh'](_0x433cbc){return __awaiter(this,void 0,void 0,function*(){const _0x1846f9='refresh',_0x44e338={'refresh_token':_0x433cbc};try{const _0x5edddd=yield this['fetch']['PostNoAuth'](_0x1846f9,_0x44e338);if(_0x5edddd['status']>0xc7&&_0x5edddd['status']<0x12c){const _0x562d54=yield _0x5edddd['json']();return new SuccessfulAuthResponse(_0x562d54);}const _0x2252a8=yield _0x5edddd['json']();return new FailedAuthResponse(_0x2252a8);}catch(_0x2b0404){if(_0x2b0404 instanceof Error)return new FailedAuthResponse({'detail':_0x2b0404['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2b0404;}});}['getTokenStatus'](_0x3a9cec){if(Date['now']()<_0x3a9cec['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x3a9cec['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x4b9d12,_0x5776d7,_0x40530d,_0x143145){function _0x147ad7(_0x391883){return _0x391883 instanceof _0x40530d?_0x391883:new _0x40530d(function(_0x437b6d){_0x437b6d(_0x391883);});}return new(_0x40530d||(_0x40530d=Promise))(function(_0x364c2a,_0x630576){function _0x2d74d0(_0x4700db){try{_0x451031(_0x143145['next'](_0x4700db));}catch(_0x54235b){_0x630576(_0x54235b);}}function _0x378a14(_0x4bd867){try{_0x451031(_0x143145['throw'](_0x4bd867));}catch(_0x2ec174){_0x630576(_0x2ec174);}}function _0x451031(_0x17edd1){_0x17edd1['done']?_0x364c2a(_0x17edd1['value']):_0x147ad7(_0x17edd1['value'])['then'](_0x2d74d0,_0x378a14);}_0x451031((_0x143145=_0x143145['apply'](_0x4b9d12,_0x5776d7||[]))['next']());});};class AdminClient{constructor(_0x2ca57e='https://admin.searchability.dev/'){var _0x5ced33=new Fetch(_0x2ca57e);this['Accounts']=new AccountService(_0x5ced33),this['Lists']=new ListService(_0x5ced33),this['ApiKeys']=new ApiKeyService(_0x5ced33),this['SearchServices']=new SearchServersService(_0x5ced33);}}class AuthClient{constructor(_0x37ce75='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x37ce75);}['login'](_0x322ea4){return __awaiter(this,void 0,void 0,function*(){const _0x833271='login/'+_0x322ea4;try{const _0x70b64e=yield yield fetch(_0x833271);if(_0x70b64e['status']>0xc7&&_0x70b64e['status']<0x12c){const _0x1529c2=yield _0x70b64e['json']();return new SuccessfulAuthResponse(_0x1529c2);}const _0x8beb05=yield _0x70b64e['json']();return new FailedAuthResponse(_0x8beb05);}catch(_0x46634c){if(_0x46634c instanceof Error)return new FailedAuthResponse({'detail':_0x46634c['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x46634c;}});}['refresh'](_0x111f85){return __awaiter(this,void 0,void 0,function*(){const _0x2a7eb5='refresh',_0x56adbd={'refresh_token':_0x111f85};try{const _0x44a4d5=yield this['fetch']['PostNoAuth'](_0x2a7eb5,_0x56adbd);if(_0x44a4d5['status']>0xc7&&_0x44a4d5['status']<0x12c){const _0x36f52b=yield _0x44a4d5['json']();return new SuccessfulAuthResponse(_0x36f52b);}const _0x1bc980=yield _0x44a4d5['json']();return new FailedAuthResponse(_0x1bc980);}catch(_0x3565aa){if(_0x3565aa instanceof Error)return new FailedAuthResponse({'detail':_0x3565aa['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3565aa;}});}['getTokenStatus'](_0x2b3176){if(Date['now']()<_0x2b3176['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x2b3176['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(_0x555e90){_0x555e90[_0x555e90['Ok']=0x0]='Ok',_0x555e90[_0x555e90['Refresh']=0x1]='Refresh',_0x555e90[_0x555e90['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(_0x589bb8){this['isSuccess']=_0x589bb8;}}class SuccessfulAccountResponse extends Response{constructor(_0x12cf26){super(!![]),this['account']=_0x12cf26;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x337f7f){super(!![]),this['list']=_0x337f7f;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x54739e){super(![]),this['problem']=_0x54739e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0xfce474){super(![]),this['problem']=_0xfce474;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x6820f3){super(!![]),this['tokens']=_0x6820f3;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0xfea91){super(![]),this['problem']=_0xfea91;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x526533){super(!![]),this['apiKey']=_0x526533;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x498a19){super(![]),this['problem']=_0x498a19;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x4661af){super(!![]),this['searchService']=_0x4661af;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x28a996){super(![]),this['problem']=_0x28a996;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x1b39c1){super(!![]),this['searchService']=_0x1b39c1;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x48333e){super(!![]),this['searchServices']=_0x48333e;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x3d20ef){super(![]),this['problem']=_0x3d20ef;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x352169){super(![]),this['problem']=_0x352169;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x19c35c){super(!![]),this['apiKeyValue']=_0x19c35c;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x547d84){super(!![]),this['obj']=_0x547d84;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x4ee5ef){super(![]),this['problem']=_0x4ee5ef;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x43eace){super(![]),this['problem']=_0x43eace;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
1
+ var TokenStatus;(function(_0x954cc7){_0x954cc7[_0x954cc7['Ok']=0x0]='Ok',_0x954cc7[_0x954cc7['Refresh']=0x1]='Refresh',_0x954cc7[_0x954cc7['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(_0x20f074){this['isSuccess']=_0x20f074;}}class SuccessfulAccountResponse extends Response{constructor(_0x1d06f3){super(!![]),this['account']=_0x1d06f3;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x45f67d){super(!![]),this['list']=_0x45f67d;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListResponse extends Response{constructor(_0x141a4a){super(!![]),this['list']=_0x141a4a;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x5339f9){super(![]),this['problem']=_0x5339f9;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x1ec3c4){super(![]),this['problem']=_0x1ec3c4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListResponse extends Response{constructor(_0x14b312){super(![]),this['problem']=_0x14b312;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x44ec1d){super(!![]),this['tokens']=_0x44ec1d;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x11d76a){super(![]),this['problem']=_0x11d76a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x3921e9){super(!![]),this['apiKey']=_0x3921e9;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x5f1d35){super(![]),this['problem']=_0x5f1d35;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x1bf56f){super(!![]),this['searchService']=_0x1bf56f;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x3cfaaa){super(![]),this['problem']=_0x3cfaaa;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x2dd889){super(!![]),this['searchService']=_0x2dd889;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0xbf8e11){super(!![]),this['searchServices']=_0xbf8e11;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x3ec28c){super(![]),this['problem']=_0x3ec28c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x5d4352){super(![]),this['problem']=_0x5d4352;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x33d275){super(!![]),this['apiKeyValue']=_0x33d275;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x50e7cb){super(!![]),this['obj']=_0x50e7cb;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x5fe3c2){super(![]),this['problem']=_0x5fe3c2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x30698c){super(![]),this['problem']=_0x30698c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
2
 
3
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x2a05b1,_0x4c762f,_0xf95329,_0x32edbd){function _0x17f574(_0x219640){return _0x219640 instanceof _0xf95329?_0x219640:new _0xf95329(function(_0x2629b3){_0x2629b3(_0x219640);});}return new(_0xf95329||(_0xf95329=Promise))(function(_0x1d1067,_0x504440){function _0x3b8b49(_0x3dc1c3){try{_0x473375(_0x32edbd['next'](_0x3dc1c3));}catch(_0x590f84){_0x504440(_0x590f84);}}function _0x368a9b(_0x5a0520){try{_0x473375(_0x32edbd['throw'](_0x5a0520));}catch(_0x467aed){_0x504440(_0x467aed);}}function _0x473375(_0x146cc1){_0x146cc1['done']?_0x1d1067(_0x146cc1['value']):_0x17f574(_0x146cc1['value'])['then'](_0x3b8b49,_0x368a9b);}_0x473375((_0x32edbd=_0x32edbd['apply'](_0x2a05b1,_0x4c762f||[]))['next']());});};class AccountService{constructor(_0x752749){this['fetch']=_0x752749;}['get'](_0x4f9a59,_0x1ef069){return __awaiter$5(this,void 0,void 0,function*(){const _0x4a249e='Account/'+_0x4f9a59+'/',_0x2d409a=yield this['fetch']['get'](_0x4a249e,_0x1ef069);try{if(_0x2d409a['status']>0xc7&&_0x2d409a['status']<0x12c){const _0x1dac3e=yield _0x2d409a['json']();return new SuccessfulAccountResponse(_0x1dac3e);}const _0x974e81=yield _0x2d409a['json']();return new FailedAccountResponse(_0x974e81);}catch(_0x2cf5fe){if(_0x2cf5fe instanceof Error)return new FailedAccountResponse({'detail':_0x2cf5fe['message'],'title':_0x2cf5fe['name'],'status':0x1f4,'instance':'','type':''});throw _0x2cf5fe;}});}}
3
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x5d826b,_0xf6c046,_0x272787,_0x826ad5){function _0x21900d(_0x159792){return _0x159792 instanceof _0x272787?_0x159792:new _0x272787(function(_0x2717b5){_0x2717b5(_0x159792);});}return new(_0x272787||(_0x272787=Promise))(function(_0x4f8d64,_0x571fbf){function _0x121b01(_0x3bd247){try{_0x3a2f8c(_0x826ad5['next'](_0x3bd247));}catch(_0x4e966a){_0x571fbf(_0x4e966a);}}function _0xa306a(_0x2d599a){try{_0x3a2f8c(_0x826ad5['throw'](_0x2d599a));}catch(_0x192192){_0x571fbf(_0x192192);}}function _0x3a2f8c(_0xbf5bae){_0xbf5bae['done']?_0x4f8d64(_0xbf5bae['value']):_0x21900d(_0xbf5bae['value'])['then'](_0x121b01,_0xa306a);}_0x3a2f8c((_0x826ad5=_0x826ad5['apply'](_0x5d826b,_0xf6c046||[]))['next']());});};class AccountService{constructor(_0x470ecc){this['fetch']=_0x470ecc;}['get'](_0x5ff359,_0x5e95d6){return __awaiter$5(this,void 0,void 0,function*(){const _0xa7d57='Account/'+_0x5ff359+'/',_0x195a43=yield this['fetch']['get'](_0xa7d57,_0x5e95d6);try{if(_0x195a43['status']>0xc7&&_0x195a43['status']<0x12c){const _0x1274c4=yield _0x195a43['json']();return new SuccessfulAccountResponse(_0x1274c4);}const _0x24aa90=yield _0x195a43['json']();return new FailedAccountResponse(_0x24aa90);}catch(_0x46483b){if(_0x46483b instanceof Error)return new FailedAccountResponse({'detail':_0x46483b['message'],'title':_0x46483b['name'],'status':0x1f4,'instance':'','type':''});throw _0x46483b;}});}}
4
4
 
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0xfeb29d,_0x48be09,_0x5b8aa2,_0x384ee0){function _0x222072(_0x2b7af4){return _0x2b7af4 instanceof _0x5b8aa2?_0x2b7af4:new _0x5b8aa2(function(_0x215376){_0x215376(_0x2b7af4);});}return new(_0x5b8aa2||(_0x5b8aa2=Promise))(function(_0xc454b0,_0x1c83d0){function _0x5ddc97(_0x2509b1){try{_0x36aabd(_0x384ee0['next'](_0x2509b1));}catch(_0x529ed4){_0x1c83d0(_0x529ed4);}}function _0xda9521(_0x5875bd){try{_0x36aabd(_0x384ee0['throw'](_0x5875bd));}catch(_0x428e4c){_0x1c83d0(_0x428e4c);}}function _0x36aabd(_0x4ba395){_0x4ba395['done']?_0xc454b0(_0x4ba395['value']):_0x222072(_0x4ba395['value'])['then'](_0x5ddc97,_0xda9521);}_0x36aabd((_0x384ee0=_0x384ee0['apply'](_0xfeb29d,_0x48be09||[]))['next']());});};class ApiKeyService{constructor(_0x5473f7){this['fetch']=_0x5473f7,this['path']='api-key';}['create'](_0xafa8b3,_0x5878e7,_0x44cbb0){return __awaiter$4(this,void 0,void 0,function*(){const _0x4a9f5c={'account_name':_0xafa8b3,'api_key_name':_0x5878e7};try{const _0x5567c8=yield this['fetch']['post'](this['path'],_0x44cbb0,_0x4a9f5c);if(_0x5567c8['status']>0xc7&&_0x5567c8['status']<0x12c){const _0x12a62a=yield _0x5567c8['json']();return new SuccessfulApiKeyResponse(_0x12a62a);}const _0x43a490=yield _0x5567c8['json']();return new FailedApiKeyResponse(_0x43a490);}catch(_0x17dfaf){if(_0x17dfaf instanceof Error)return new FailedApiKeyResponse({'detail':_0x17dfaf['message'],'title':_0x17dfaf['name'],'status':0x1f4,'instance':'','type':''});throw _0x17dfaf;}});}['view'](_0x4a530c,_0x195abb,_0x9240e){return __awaiter$4(this,void 0,void 0,function*(){const _0x31c519=this['path']+'/'+_0x4a530c+'/'+_0x195abb;try{const _0x183824=yield this['fetch']['get'](_0x31c519,_0x9240e);if(_0x183824['status']>0xc7&&_0x183824['status']<0x12c){const _0x4d5209=yield _0x183824['json']();return new SuccessfulApiKeyValueResponse(_0x4d5209);}const _0x500e88=yield _0x183824['json']();return new FailedApiKeyValueResponse(_0x500e88);}catch(_0x4392ee){if(_0x4392ee instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x4392ee['message'],'title':_0x4392ee['name'],'status':0x1f4,'instance':'','type':''});throw _0x4392ee;}});}['delete'](_0xb52d88,_0x442b90,_0x4c2aa5){return __awaiter$4(this,void 0,void 0,function*(){const _0x79baf4=this['path']+'/'+_0xb52d88+'/'+_0x442b90;try{const _0x2e74d3=yield this['fetch']['delete'](_0x79baf4,_0x4c2aa5);if(_0x2e74d3['status']>0xc7&&_0x2e74d3['status']<0x12c)return new SuccessfulResponse({});const _0x22a5b4=yield _0x2e74d3['json']();return new FailedResponse(_0x22a5b4);}catch(_0x3c9fc2){if(_0x3c9fc2 instanceof Error)return new FailedResponse({'detail':_0x3c9fc2['message'],'title':_0x3c9fc2['name'],'status':0x1f4,'instance':'','type':''});throw _0x3c9fc2;}});}}
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x13f348,_0x2e8685,_0x2d573e,_0x40f527){function _0x3d0d09(_0x1a646d){return _0x1a646d instanceof _0x2d573e?_0x1a646d:new _0x2d573e(function(_0x59258c){_0x59258c(_0x1a646d);});}return new(_0x2d573e||(_0x2d573e=Promise))(function(_0x259b0c,_0x211d28){function _0x1aee46(_0x1df6a2){try{_0xe060fe(_0x40f527['next'](_0x1df6a2));}catch(_0x406d6e){_0x211d28(_0x406d6e);}}function _0x57aa10(_0x327aab){try{_0xe060fe(_0x40f527['throw'](_0x327aab));}catch(_0x1e3487){_0x211d28(_0x1e3487);}}function _0xe060fe(_0x48656f){_0x48656f['done']?_0x259b0c(_0x48656f['value']):_0x3d0d09(_0x48656f['value'])['then'](_0x1aee46,_0x57aa10);}_0xe060fe((_0x40f527=_0x40f527['apply'](_0x13f348,_0x2e8685||[]))['next']());});};class ApiKeyService{constructor(_0x400c69){this['fetch']=_0x400c69,this['path']='api-key';}['create'](_0x3d2d36,_0x5c368e,_0x382239){return __awaiter$4(this,void 0,void 0,function*(){const _0x56098d={'account_name':_0x3d2d36,'api_key_name':_0x5c368e};try{const _0x38b724=yield this['fetch']['post'](this['path'],_0x382239,_0x56098d);if(_0x38b724['status']>0xc7&&_0x38b724['status']<0x12c){const _0x50af16=yield _0x38b724['json']();return new SuccessfulApiKeyResponse(_0x50af16);}const _0x185e7d=yield _0x38b724['json']();return new FailedApiKeyResponse(_0x185e7d);}catch(_0x486d9b){if(_0x486d9b instanceof Error)return new FailedApiKeyResponse({'detail':_0x486d9b['message'],'title':_0x486d9b['name'],'status':0x1f4,'instance':'','type':''});throw _0x486d9b;}});}['view'](_0x52e352,_0x26ad5f,_0x155ad8){return __awaiter$4(this,void 0,void 0,function*(){const _0x55c5ee=this['path']+'/'+_0x52e352+'/'+_0x26ad5f;try{const _0x1fb52b=yield this['fetch']['get'](_0x55c5ee,_0x155ad8);if(_0x1fb52b['status']>0xc7&&_0x1fb52b['status']<0x12c){const _0x8331e=yield _0x1fb52b['json']();return new SuccessfulApiKeyValueResponse(_0x8331e);}const _0x4ea577=yield _0x1fb52b['json']();return new FailedApiKeyValueResponse(_0x4ea577);}catch(_0x50530f){if(_0x50530f instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x50530f['message'],'title':_0x50530f['name'],'status':0x1f4,'instance':'','type':''});throw _0x50530f;}});}['delete'](_0x2bfccc,_0x31d98f,_0x1d12ac){return __awaiter$4(this,void 0,void 0,function*(){const _0x3ddab1=this['path']+'/'+_0x2bfccc+'/'+_0x31d98f;try{const _0x15c899=yield this['fetch']['delete'](_0x3ddab1,_0x1d12ac);if(_0x15c899['status']>0xc7&&_0x15c899['status']<0x12c)return new SuccessfulResponse({});const _0x376aad=yield _0x15c899['json']();return new FailedResponse(_0x376aad);}catch(_0x22d8af){if(_0x22d8af instanceof Error)return new FailedResponse({'detail':_0x22d8af['message'],'title':_0x22d8af['name'],'status':0x1f4,'instance':'','type':''});throw _0x22d8af;}});}}
6
6
 
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x1838f1,_0x5819d6,_0x43e904,_0x3ddecc){function _0x4513bd(_0xf82162){return _0xf82162 instanceof _0x43e904?_0xf82162:new _0x43e904(function(_0x5a626a){_0x5a626a(_0xf82162);});}return new(_0x43e904||(_0x43e904=Promise))(function(_0x501575,_0x4b5d8b){function _0x376516(_0x51fd74){try{_0x18c221(_0x3ddecc['next'](_0x51fd74));}catch(_0x493c5a){_0x4b5d8b(_0x493c5a);}}function _0x47c6fb(_0x41a135){try{_0x18c221(_0x3ddecc['throw'](_0x41a135));}catch(_0x5bc499){_0x4b5d8b(_0x5bc499);}}function _0x18c221(_0x5e1853){_0x5e1853['done']?_0x501575(_0x5e1853['value']):_0x4513bd(_0x5e1853['value'])['then'](_0x376516,_0x47c6fb);}_0x18c221((_0x3ddecc=_0x3ddecc['apply'](_0x1838f1,_0x5819d6||[]))['next']());});};class ListService{constructor(_0x238516){this['fetch']=_0x238516;}['add'](_0xd6a7de,_0x25c151,_0x302e6b,_0xb8cf9){return __awaiter$3(this,void 0,void 0,function*(){const _0x53613b='List',_0x45f41f={'account_name':_0xd6a7de,'list_name':_0x25c151,'search_service_name':_0x302e6b};try{const _0x1d2766=yield this['fetch']['post'](_0x53613b,_0xb8cf9,_0x45f41f);if(_0x1d2766['status']>0xc7&&_0x1d2766['status']<0x12c){const _0x1e4936=yield _0x1d2766['json']();return new SuccessfulListIdentityResponse(_0x1e4936);}const _0x39ed28=yield _0x1d2766['json']();return new FailedListIdentityResponse(_0x39ed28);}catch(_0x3cc0f1){if(_0x3cc0f1 instanceof Error)return new FailedListIdentityResponse({'detail':_0x3cc0f1['message'],'title':_0x3cc0f1['name'],'status':0x1f4,'instance':'','type':''});throw _0x3cc0f1;}});}['delete'](_0x2bd52a,_0x3dd9b4,_0x5e9538){return __awaiter$3(this,void 0,void 0,function*(){const _0x540ca='List/'+_0x2bd52a+'/'+_0x3dd9b4,_0x187558=yield this['fetch']['delete'](_0x540ca,_0x5e9538);try{if(_0x187558['status']>0xc7&&_0x187558['status']<0x12c)return new SuccessfulResponse({});const _0x5a864a=yield _0x187558['json']();return new FailedResponse(_0x5a864a);}catch(_0x2408c6){if(_0x2408c6 instanceof Error)return new FailedResponse({'detail':_0x2408c6['message'],'title':_0x2408c6['name'],'status':0x1f4,'instance':'','type':''});throw _0x2408c6;}});}}
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x33ee51,_0x1f0cd2,_0x16aacb,_0x39706f){function _0x350024(_0x312c59){return _0x312c59 instanceof _0x16aacb?_0x312c59:new _0x16aacb(function(_0x4c1494){_0x4c1494(_0x312c59);});}return new(_0x16aacb||(_0x16aacb=Promise))(function(_0x509b2c,_0x5645c9){function _0x5f1167(_0x248a9c){try{_0x2c0568(_0x39706f['next'](_0x248a9c));}catch(_0x318490){_0x5645c9(_0x318490);}}function _0x5e8fc5(_0x47759e){try{_0x2c0568(_0x39706f['throw'](_0x47759e));}catch(_0x3035fd){_0x5645c9(_0x3035fd);}}function _0x2c0568(_0x5bf5cb){_0x5bf5cb['done']?_0x509b2c(_0x5bf5cb['value']):_0x350024(_0x5bf5cb['value'])['then'](_0x5f1167,_0x5e8fc5);}_0x2c0568((_0x39706f=_0x39706f['apply'](_0x33ee51,_0x1f0cd2||[]))['next']());});};class ListService{constructor(_0x386d03){this['fetch']=_0x386d03;}['add'](_0x16781e,_0x1fbff1,_0x2d9d10,_0x2b94ec){return __awaiter$3(this,void 0,void 0,function*(){const _0x42a71a='List',_0x3c89a3={'account_name':_0x16781e,'list_name':_0x1fbff1,'search_service_name':_0x2d9d10};try{const _0x23a88e=yield this['fetch']['post'](_0x42a71a,_0x2b94ec,_0x3c89a3);if(_0x23a88e['status']>0xc7&&_0x23a88e['status']<0x12c){const _0x396dce=yield _0x23a88e['json']();return new SuccessfulListIdentityResponse(_0x396dce);}const _0x47d466=yield _0x23a88e['json']();return new FailedListIdentityResponse(_0x47d466);}catch(_0x7f40fa){if(_0x7f40fa instanceof Error)return new FailedListIdentityResponse({'detail':_0x7f40fa['message'],'title':_0x7f40fa['name'],'status':0x1f4,'instance':'','type':''});throw _0x7f40fa;}});}['delete'](_0x3bf363,_0x5baf8c,_0x2843a1){return __awaiter$3(this,void 0,void 0,function*(){const _0x58af5f='List/'+_0x3bf363+'/'+_0x5baf8c,_0x3838d7=yield this['fetch']['delete'](_0x58af5f,_0x2843a1);try{if(_0x3838d7['status']>0xc7&&_0x3838d7['status']<0x12c)return new SuccessfulResponse({});const _0x24bb71=yield _0x3838d7['json']();return new FailedResponse(_0x24bb71);}catch(_0x5b54c8){if(_0x5b54c8 instanceof Error)return new FailedResponse({'detail':_0x5b54c8['message'],'title':_0x5b54c8['name'],'status':0x1f4,'instance':'','type':''});throw _0x5b54c8;}});}['get'](_0x4aa1e4,_0x5d9364,_0x4bc909){return __awaiter$3(this,void 0,void 0,function*(){const _0x3a183e='List/'+_0x4aa1e4+'/'+_0x5d9364;try{const _0xf9f08b=yield this['fetch']['get'](_0x3a183e,_0x4bc909);if(_0xf9f08b['status']>0xc7&&_0xf9f08b['status']<0x12c){const _0x1666b8=yield _0xf9f08b['json']();return new SuccessfulListResponse(_0x1666b8);}const _0x441869=yield _0xf9f08b['json']();return new FailedListResponse(_0x441869);}catch(_0x373d88){if(_0x373d88 instanceof Error)return new FailedListResponse({'detail':_0x373d88['message'],'title':_0x373d88['name'],'status':0x1f4,'instance':'','type':''});throw _0x373d88;}});}}
8
8
 
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0xbe4d84,_0x4bcce8,_0x505326,_0x225f15){function _0x1c95ce(_0x542a7d){return _0x542a7d instanceof _0x505326?_0x542a7d:new _0x505326(function(_0x41f423){_0x41f423(_0x542a7d);});}return new(_0x505326||(_0x505326=Promise))(function(_0x439ab9,_0x8f84a3){function _0x1a7f3e(_0x54df4d){try{_0x266286(_0x225f15['next'](_0x54df4d));}catch(_0x39b84d){_0x8f84a3(_0x39b84d);}}function _0x4445e2(_0x435c6d){try{_0x266286(_0x225f15['throw'](_0x435c6d));}catch(_0x3bddc1){_0x8f84a3(_0x3bddc1);}}function _0x266286(_0x1bb28a){_0x1bb28a['done']?_0x439ab9(_0x1bb28a['value']):_0x1c95ce(_0x1bb28a['value'])['then'](_0x1a7f3e,_0x4445e2);}_0x266286((_0x225f15=_0x225f15['apply'](_0xbe4d84,_0x4bcce8||[]))['next']());});};class Fetch{constructor(_0x323f65){this['baseUri']=_0x323f65,this['getUrl']=_0x3879fe=>{return _0x3879fe['startsWith']('/')&&(_0x3879fe=_0x3879fe['replace']('/','')),''+this['baseUri']+_0x3879fe;},!_0x323f65['endsWith']('/')&&(_0x323f65=_0x323f65+'/');}['get'](_0x39a1f2,_0x454431){return __awaiter$2(this,void 0,void 0,function*(){const _0x19f3d3=this['getUrl'](_0x39a1f2);return yield fetch(_0x19f3d3,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x454431}});});}['post'](_0x2b904a,_0x5833dd,_0x368f05){return __awaiter$2(this,void 0,void 0,function*(){const _0x2679c0=this['getUrl'](_0x2b904a);return yield fetch(_0x2679c0,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5833dd},'body':_0x368f05?JSON['stringify'](_0x368f05):null});});}['PostNoAuth'](_0x1f862f,_0x337d1b){return __awaiter$2(this,void 0,void 0,function*(){const _0x521e34=this['getUrl'](_0x1f862f);return yield fetch(_0x521e34,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x337d1b?JSON['stringify'](_0x337d1b):null});});}['put'](_0x11e230,_0xacdd83,_0x1aa708){return __awaiter$2(this,void 0,void 0,function*(){const _0x10fb51=this['getUrl'](_0x11e230);return yield fetch(_0x10fb51,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xacdd83},'body':_0x1aa708?JSON['stringify'](_0x1aa708):null});});}['delete'](_0x4ddd4f,_0x9be57e){return __awaiter$2(this,void 0,void 0,function*(){const _0x287a33=this['getUrl'](_0x4ddd4f);return yield fetch(_0x287a33,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x9be57e}});});}}
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x5d42e4,_0x467c06,_0x281375,_0x5f4c12){function _0x53d371(_0x141e07){return _0x141e07 instanceof _0x281375?_0x141e07:new _0x281375(function(_0x4e3621){_0x4e3621(_0x141e07);});}return new(_0x281375||(_0x281375=Promise))(function(_0x2410f6,_0xcd3dcd){function _0x15bf51(_0x7a68d5){try{_0x52c8c8(_0x5f4c12['next'](_0x7a68d5));}catch(_0xe50f98){_0xcd3dcd(_0xe50f98);}}function _0x51c878(_0xbb0cbd){try{_0x52c8c8(_0x5f4c12['throw'](_0xbb0cbd));}catch(_0x149a5f){_0xcd3dcd(_0x149a5f);}}function _0x52c8c8(_0x3b6755){_0x3b6755['done']?_0x2410f6(_0x3b6755['value']):_0x53d371(_0x3b6755['value'])['then'](_0x15bf51,_0x51c878);}_0x52c8c8((_0x5f4c12=_0x5f4c12['apply'](_0x5d42e4,_0x467c06||[]))['next']());});};class Fetch{constructor(_0x44bfaf){this['baseUri']=_0x44bfaf,this['getUrl']=_0x49afd9=>{return _0x49afd9['startsWith']('/')&&(_0x49afd9=_0x49afd9['replace']('/','')),''+this['baseUri']+_0x49afd9;},!_0x44bfaf['endsWith']('/')&&(_0x44bfaf=_0x44bfaf+'/');}['get'](_0x2f9666,_0x1714bd){return __awaiter$2(this,void 0,void 0,function*(){const _0x245583=this['getUrl'](_0x2f9666);return yield fetch(_0x245583,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1714bd}});});}['post'](_0x100655,_0x677a6f,_0x1127b9){return __awaiter$2(this,void 0,void 0,function*(){const _0x3d6221=this['getUrl'](_0x100655);return yield fetch(_0x3d6221,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x677a6f},'body':_0x1127b9?JSON['stringify'](_0x1127b9):null});});}['PostNoAuth'](_0x1cf14e,_0x7eadd){return __awaiter$2(this,void 0,void 0,function*(){const _0x4b8b44=this['getUrl'](_0x1cf14e);return yield fetch(_0x4b8b44,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x7eadd?JSON['stringify'](_0x7eadd):null});});}['put'](_0x279c44,_0x2a6152,_0x583a80){return __awaiter$2(this,void 0,void 0,function*(){const _0x2ef595=this['getUrl'](_0x279c44);return yield fetch(_0x2ef595,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2a6152},'body':_0x583a80?JSON['stringify'](_0x583a80):null});});}['delete'](_0x1951f6,_0x4264db){return __awaiter$2(this,void 0,void 0,function*(){const _0x427f5d=this['getUrl'](_0x1951f6);return yield fetch(_0x427f5d,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4264db}});});}}
10
10
 
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0xd28365,_0x46d8af,_0x16d274,_0x1cf27b){function _0x1d1c9d(_0x2eb5f8){return _0x2eb5f8 instanceof _0x16d274?_0x2eb5f8:new _0x16d274(function(_0x24ca8c){_0x24ca8c(_0x2eb5f8);});}return new(_0x16d274||(_0x16d274=Promise))(function(_0x1e3507,_0x3b35df){function _0x3d56b6(_0x57986b){try{_0x4dff30(_0x1cf27b['next'](_0x57986b));}catch(_0x445967){_0x3b35df(_0x445967);}}function _0x4e1eb1(_0x371fda){try{_0x4dff30(_0x1cf27b['throw'](_0x371fda));}catch(_0x4acfcc){_0x3b35df(_0x4acfcc);}}function _0x4dff30(_0x3e736e){_0x3e736e['done']?_0x1e3507(_0x3e736e['value']):_0x1d1c9d(_0x3e736e['value'])['then'](_0x3d56b6,_0x4e1eb1);}_0x4dff30((_0x1cf27b=_0x1cf27b['apply'](_0xd28365,_0x46d8af||[]))['next']());});};class SearchServersService{constructor(_0xfb75fc){this['fetch']=_0xfb75fc,this['path']='search-services';}['create'](_0x415143,_0x3fc3c8,_0x2de9b0,_0x33779b,_0x31e24f,_0x19e818,_0x37a32f,_0x1b8a55){return __awaiter$1(this,void 0,void 0,function*(){const _0x2f1455={'account_name':_0x415143,'search_service_name':_0x3fc3c8,'endpoint':_0x2de9b0,'key':_0x33779b,'country':_0x31e24f,'provider':_0x19e818,'index_name':_0x37a32f};try{const _0x5a0a98=yield this['fetch']['post'](this['path'],_0x1b8a55,_0x2f1455);if(_0x5a0a98['status']>0xc7&&_0x5a0a98['status']<0x12c){const _0x3d12b3=yield _0x5a0a98['json']();return new SuccessfulSearchServiceResponse(_0x3d12b3);}const _0x1638f0=yield _0x5a0a98['json']();return new FailedSearchServiceResponse(_0x1638f0);}catch(_0x2057b6){if(_0x2057b6 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x2057b6['message'],'title':_0x2057b6['name'],'status':0x1f4,'instance':'','type':''});throw _0x2057b6;}});}['delete'](_0x5549af,_0x35079b,_0x1ced64){return __awaiter$1(this,void 0,void 0,function*(){const _0x6a5f6e=this['path']+'/'+_0x5549af+'/'+_0x35079b;try{const _0x2caf61=yield this['fetch']['delete'](_0x6a5f6e,_0x1ced64);if(_0x2caf61['status']>0xc7&&_0x2caf61['status']<0x12c)return new SuccessfulResponse({});const _0x469eaa=yield _0x2caf61['json']();return new FailedResponse(_0x469eaa);}catch(_0x14c895){if(_0x14c895 instanceof Error)return new FailedResponse({'detail':_0x14c895['message'],'title':_0x14c895['name'],'status':0x1f4,'instance':'','type':''});throw _0x14c895;}});}['view'](_0x4a4ee8,_0x9c3ab5,_0x421cc9){return __awaiter$1(this,void 0,void 0,function*(){const _0x352364=this['path']+'/'+_0x4a4ee8+'/'+_0x9c3ab5;try{const _0x557e39=yield this['fetch']['get'](_0x352364,_0x421cc9);if(_0x557e39['status']>0xc7&&_0x557e39['status']<0x12c){const _0x409f45=yield _0x557e39['json']();return new SuccessfulViewSearchServiceResponse(_0x409f45);}const _0x14a27a=yield _0x557e39['json']();return new FailedViewSearchServiceResponse(_0x14a27a);}catch(_0x13a041){if(_0x13a041 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x13a041['message'],'title':_0x13a041['name'],'status':0x1f4,'instance':'','type':''});throw _0x13a041;}});}['edit'](_0x1aa7bd,_0x4496d0,_0x482c9f,_0x3ded2f,_0x4a06e6,_0x332f83){return __awaiter$1(this,void 0,void 0,function*(){const _0x23e650={'account_name':_0x1aa7bd,'search_service_name':_0x4496d0,'new_search_service_name':_0x482c9f,'key':_0x3ded2f,'country':_0x4a06e6};try{const _0x26d9d3=yield this['fetch']['put'](this['path'],_0x332f83,_0x23e650);if(_0x26d9d3['status']>0xc7&&_0x26d9d3['status']<0x12c){const _0xf5cecc=yield _0x26d9d3['json']();return new SuccessfulSearchServiceResponse(_0xf5cecc);}const _0x33e20c=yield _0x26d9d3['json']();return new FailedSearchServiceResponse(_0x33e20c);}catch(_0x2d148f){if(_0x2d148f instanceof Error)return new FailedSearchServiceResponse({'detail':_0x2d148f['message'],'title':_0x2d148f['name'],'status':0x1f4,'instance':'','type':''});throw _0x2d148f;}});}['list'](_0x29f883,_0x5f2567){return __awaiter$1(this,void 0,void 0,function*(){const _0x27de72=this['path']+'/'+_0x29f883;try{const _0x309531=yield this['fetch']['get'](_0x27de72,_0x5f2567);if(_0x309531['status']>0xc7&&_0x309531['status']<0x12c){const _0x3ed655=yield _0x309531['json']();return new SuccessfulListSearchServiceResponse(_0x3ed655);}const _0x3096f4=yield _0x309531['json']();return new FailedViewSearchServicesResponse(_0x3096f4);}catch(_0x486c3d){if(_0x486c3d instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x486c3d['message'],'title':_0x486c3d['name'],'status':0x1f4,'instance':'','type':''});throw _0x486c3d;}});}}
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x474c96,_0x210ae4,_0x39d2a2,_0xf614e){function _0x115234(_0x313ce6){return _0x313ce6 instanceof _0x39d2a2?_0x313ce6:new _0x39d2a2(function(_0x1a54ab){_0x1a54ab(_0x313ce6);});}return new(_0x39d2a2||(_0x39d2a2=Promise))(function(_0x2b528e,_0x146bea){function _0x2ec1cc(_0xfe44b5){try{_0x1c96e0(_0xf614e['next'](_0xfe44b5));}catch(_0xfdda67){_0x146bea(_0xfdda67);}}function _0x1b8fc4(_0x1b2b06){try{_0x1c96e0(_0xf614e['throw'](_0x1b2b06));}catch(_0x14d753){_0x146bea(_0x14d753);}}function _0x1c96e0(_0x142acc){_0x142acc['done']?_0x2b528e(_0x142acc['value']):_0x115234(_0x142acc['value'])['then'](_0x2ec1cc,_0x1b8fc4);}_0x1c96e0((_0xf614e=_0xf614e['apply'](_0x474c96,_0x210ae4||[]))['next']());});};class SearchServersService{constructor(_0x233893){this['fetch']=_0x233893,this['path']='search-services';}['create'](_0x306bdc,_0xb8dd5d,_0x14c556,_0x1aea1f,_0x455d4b,_0x43280a,_0x2a6911,_0x8b0a99){return __awaiter$1(this,void 0,void 0,function*(){const _0x159f3b={'account_name':_0x306bdc,'search_service_name':_0xb8dd5d,'endpoint':_0x14c556,'key':_0x1aea1f,'country':_0x455d4b,'provider':_0x43280a,'index_name':_0x2a6911};try{const _0x265ee2=yield this['fetch']['post'](this['path'],_0x8b0a99,_0x159f3b);if(_0x265ee2['status']>0xc7&&_0x265ee2['status']<0x12c){const _0x2c13dd=yield _0x265ee2['json']();return new SuccessfulSearchServiceResponse(_0x2c13dd);}const _0x440182=yield _0x265ee2['json']();return new FailedSearchServiceResponse(_0x440182);}catch(_0x14df38){if(_0x14df38 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x14df38['message'],'title':_0x14df38['name'],'status':0x1f4,'instance':'','type':''});throw _0x14df38;}});}['delete'](_0x3e7111,_0x30642e,_0x17ed2){return __awaiter$1(this,void 0,void 0,function*(){const _0x53c6db=this['path']+'/'+_0x3e7111+'/'+_0x30642e;try{const _0x57e3c8=yield this['fetch']['delete'](_0x53c6db,_0x17ed2);if(_0x57e3c8['status']>0xc7&&_0x57e3c8['status']<0x12c)return new SuccessfulResponse({});const _0x1939d8=yield _0x57e3c8['json']();return new FailedResponse(_0x1939d8);}catch(_0x6d6ee4){if(_0x6d6ee4 instanceof Error)return new FailedResponse({'detail':_0x6d6ee4['message'],'title':_0x6d6ee4['name'],'status':0x1f4,'instance':'','type':''});throw _0x6d6ee4;}});}['view'](_0x22b79b,_0x3b3889,_0x2ec5a0){return __awaiter$1(this,void 0,void 0,function*(){const _0x2ca117=this['path']+'/'+_0x22b79b+'/'+_0x3b3889;try{const _0x201ee9=yield this['fetch']['get'](_0x2ca117,_0x2ec5a0);if(_0x201ee9['status']>0xc7&&_0x201ee9['status']<0x12c){const _0xecefe5=yield _0x201ee9['json']();return new SuccessfulViewSearchServiceResponse(_0xecefe5);}const _0x687560=yield _0x201ee9['json']();return new FailedViewSearchServiceResponse(_0x687560);}catch(_0x67526a){if(_0x67526a instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x67526a['message'],'title':_0x67526a['name'],'status':0x1f4,'instance':'','type':''});throw _0x67526a;}});}['edit'](_0x335162,_0xe7591d,_0x606b91,_0x741435,_0x12a654,_0x440baa){return __awaiter$1(this,void 0,void 0,function*(){const _0x539034={'account_name':_0x335162,'search_service_name':_0xe7591d,'new_search_service_name':_0x606b91,'key':_0x741435,'country':_0x12a654};try{const _0x3d55e8=yield this['fetch']['put'](this['path'],_0x440baa,_0x539034);if(_0x3d55e8['status']>0xc7&&_0x3d55e8['status']<0x12c){const _0x56b92d=yield _0x3d55e8['json']();return new SuccessfulSearchServiceResponse(_0x56b92d);}const _0x308a24=yield _0x3d55e8['json']();return new FailedSearchServiceResponse(_0x308a24);}catch(_0x3074db){if(_0x3074db instanceof Error)return new FailedSearchServiceResponse({'detail':_0x3074db['message'],'title':_0x3074db['name'],'status':0x1f4,'instance':'','type':''});throw _0x3074db;}});}['list'](_0x456f14,_0x200c97){return __awaiter$1(this,void 0,void 0,function*(){const _0x58093a=this['path']+'/'+_0x456f14;try{const _0x464972=yield this['fetch']['get'](_0x58093a,_0x200c97);if(_0x464972['status']>0xc7&&_0x464972['status']<0x12c){const _0x3cf321=yield _0x464972['json']();return new SuccessfulListSearchServiceResponse(_0x3cf321);}const _0x10c647=yield _0x464972['json']();return new FailedViewSearchServicesResponse(_0x10c647);}catch(_0x18416d){if(_0x18416d instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x18416d['message'],'title':_0x18416d['name'],'status':0x1f4,'instance':'','type':''});throw _0x18416d;}});}}
12
12
 
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x33f109,_0x320004,_0x1de34a,_0x5af53b){function _0x4058aa(_0x4fc652){return _0x4fc652 instanceof _0x1de34a?_0x4fc652:new _0x1de34a(function(_0x25e3bb){_0x25e3bb(_0x4fc652);});}return new(_0x1de34a||(_0x1de34a=Promise))(function(_0xb45fde,_0x21b07b){function _0x15dd82(_0x313c41){try{_0x52c8c9(_0x5af53b['next'](_0x313c41));}catch(_0x52e114){_0x21b07b(_0x52e114);}}function _0x212e9d(_0x46d4ce){try{_0x52c8c9(_0x5af53b['throw'](_0x46d4ce));}catch(_0x4d4dad){_0x21b07b(_0x4d4dad);}}function _0x52c8c9(_0x51810c){_0x51810c['done']?_0xb45fde(_0x51810c['value']):_0x4058aa(_0x51810c['value'])['then'](_0x15dd82,_0x212e9d);}_0x52c8c9((_0x5af53b=_0x5af53b['apply'](_0x33f109,_0x320004||[]))['next']());});};class AdminClient{constructor(_0x2092dc='https://admin.searchability.dev/'){var _0x436d55=new Fetch(_0x2092dc);this['Accounts']=new AccountService(_0x436d55),this['Lists']=new ListService(_0x436d55),this['ApiKeys']=new ApiKeyService(_0x436d55),this['SearchServices']=new SearchServersService(_0x436d55);}}class AuthClient{constructor(_0x57fc74='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x57fc74);}['login'](_0x3f0da6){return __awaiter(this,void 0,void 0,function*(){const _0x33b375='login/'+_0x3f0da6;try{const _0x455a9d=yield yield fetch(_0x33b375);if(_0x455a9d['status']>0xc7&&_0x455a9d['status']<0x12c){const _0x3d69b6=yield _0x455a9d['json']();return new SuccessfulAuthResponse(_0x3d69b6);}const _0x89b6f8=yield _0x455a9d['json']();return new FailedAuthResponse(_0x89b6f8);}catch(_0x3d7efe){if(_0x3d7efe instanceof Error)return new FailedAuthResponse({'detail':_0x3d7efe['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3d7efe;}});}['refresh'](_0x5882b6){return __awaiter(this,void 0,void 0,function*(){const _0x4b3c1d='refresh',_0x4367f0={'refresh_token':_0x5882b6};try{const _0x343902=yield this['fetch']['PostNoAuth'](_0x4b3c1d,_0x4367f0);if(_0x343902['status']>0xc7&&_0x343902['status']<0x12c){const _0x2438fd=yield _0x343902['json']();return new SuccessfulAuthResponse(_0x2438fd);}const _0xf5cc44=yield _0x343902['json']();return new FailedAuthResponse(_0xf5cc44);}catch(_0x288d21){if(_0x288d21 instanceof Error)return new FailedAuthResponse({'detail':_0x288d21['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x288d21;}});}['getTokenStatus'](_0x474292){if(Date['now']()<_0x474292['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x474292['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x2bd030,_0x50fb1f,_0x43a242,_0x35a250){function _0x3fb7fa(_0x2a5661){return _0x2a5661 instanceof _0x43a242?_0x2a5661:new _0x43a242(function(_0x3f155f){_0x3f155f(_0x2a5661);});}return new(_0x43a242||(_0x43a242=Promise))(function(_0x10aa0b,_0x3fa2bf){function _0x20e4cb(_0x150ec4){try{_0x15032a(_0x35a250['next'](_0x150ec4));}catch(_0x35033d){_0x3fa2bf(_0x35033d);}}function _0x1eb6cc(_0x2a9786){try{_0x15032a(_0x35a250['throw'](_0x2a9786));}catch(_0x480921){_0x3fa2bf(_0x480921);}}function _0x15032a(_0x5c773f){_0x5c773f['done']?_0x10aa0b(_0x5c773f['value']):_0x3fb7fa(_0x5c773f['value'])['then'](_0x20e4cb,_0x1eb6cc);}_0x15032a((_0x35a250=_0x35a250['apply'](_0x2bd030,_0x50fb1f||[]))['next']());});};class AdminClient{constructor(_0x4c55f8='https://admin.searchability.dev/'){var _0x1a90ee=new Fetch(_0x4c55f8);this['Accounts']=new AccountService(_0x1a90ee),this['Lists']=new ListService(_0x1a90ee),this['ApiKeys']=new ApiKeyService(_0x1a90ee),this['SearchServices']=new SearchServersService(_0x1a90ee);}}class AuthClient{constructor(_0x30482d='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x30482d);}['login'](_0xe5da6){return __awaiter(this,void 0,void 0,function*(){const _0x173735='login/'+_0xe5da6;try{const _0x1ffad8=yield yield fetch(_0x173735);if(_0x1ffad8['status']>0xc7&&_0x1ffad8['status']<0x12c){const _0x1452cd=yield _0x1ffad8['json']();return new SuccessfulAuthResponse(_0x1452cd);}const _0x11e363=yield _0x1ffad8['json']();return new FailedAuthResponse(_0x11e363);}catch(_0x531394){if(_0x531394 instanceof Error)return new FailedAuthResponse({'detail':_0x531394['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x531394;}});}['refresh'](_0x2218b7){return __awaiter(this,void 0,void 0,function*(){const _0x423bb9='refresh',_0x85ab99={'refresh_token':_0x2218b7};try{const _0x31ea9b=yield this['fetch']['PostNoAuth'](_0x423bb9,_0x85ab99);if(_0x31ea9b['status']>0xc7&&_0x31ea9b['status']<0x12c){const _0x1d7a26=yield _0x31ea9b['json']();return new SuccessfulAuthResponse(_0x1d7a26);}const _0xb2cf1=yield _0x31ea9b['json']();return new FailedAuthResponse(_0xb2cf1);}catch(_0x455798){if(_0x455798 instanceof Error)return new FailedAuthResponse({'detail':_0x455798['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x455798;}});}['getTokenStatus'](_0x4c3631){if(Date['now']()<_0x4c3631['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x4c3631['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
14
14
 
15
15
  export { AdminClient, AuthClient, TokenStatus, Tokens };
package/dist/types.d.ts CHANGED
@@ -29,6 +29,7 @@ declare class ListService {
29
29
  constructor(fetch: Fetch);
30
30
  add(account_name: string, list_name: string, search_service_name: string, access_token: string): Promise<Response<ListIdentity, Problem>>;
31
31
  delete(accountName: string, listName: string, access_token: string): Promise<Response<any, Problem>>;
32
+ get(account_name: string, list_name: string, access_token: string): Promise<Response<List, Problem>>;
32
33
  }
33
34
 
34
35
  declare class SearchServersService {
@@ -78,15 +79,16 @@ declare abstract class Response<S, F> {
78
79
  abstract toProblem(): F;
79
80
  }
80
81
  type List = {
81
- name: string;
82
+ list_name: string;
82
83
  created: number;
83
84
  version: number;
84
85
  };
85
86
  type ListIdentity = {
86
- name: string;
87
+ list_name: string;
87
88
  created: number;
88
89
  account_name: string;
89
90
  is_shared: boolean;
91
+ version: number;
90
92
  };
91
93
  type ApiKey = {
92
94
  name: string;
@@ -141,6 +143,12 @@ declare class SuccessfulListIdentityResponse extends Response<ListIdentity, Prob
141
143
  toSuccess(): ListIdentity;
142
144
  toProblem(): Problem;
143
145
  }
146
+ declare class SuccessfulListResponse extends Response<List, Problem> {
147
+ readonly list: List;
148
+ constructor(list: List);
149
+ toSuccess(): List;
150
+ toProblem(): Problem;
151
+ }
144
152
  declare class FailedAccountResponse extends Response<Account, Problem> {
145
153
  readonly problem: Problem;
146
154
  constructor(problem: Problem);
@@ -153,6 +161,12 @@ declare class FailedListIdentityResponse extends Response<ListIdentity, Problem>
153
161
  toSuccess(): ListIdentity;
154
162
  toProblem(): Problem;
155
163
  }
164
+ declare class FailedListResponse extends Response<List, Problem> {
165
+ readonly problem: Problem;
166
+ constructor(problem: Problem);
167
+ toSuccess(): List;
168
+ toProblem(): Problem;
169
+ }
156
170
  declare class SuccessfulAuthResponse extends Response<Tokens, Problem> {
157
171
  readonly tokens: Tokens;
158
172
  constructor(tokens: Tokens);
@@ -238,4 +252,4 @@ declare class FailedApiKeyValueResponse extends Response<ApiKeyValue, Problem> {
238
252
  toProblem(): Problem;
239
253
  }
240
254
 
241
- export { type Account, AdminClient, type ApiKey, type ApiKeyValue, AuthClient, type Error, FailedAccountResponse, FailedApiKeyResponse, FailedApiKeyValueResponse, FailedAuthResponse, FailedListIdentityResponse, FailedResponse, FailedSearchServiceResponse, FailedViewSearchServiceResponse, FailedViewSearchServicesResponse, type List, type ListIdentity, type Problem, type RefreshRequest, Response, type SearchService, type SearchServiceDetails, SuccessfulAccountResponse, SuccessfulApiKeyResponse, SuccessfulApiKeyValueResponse, SuccessfulAuthResponse, SuccessfulListIdentityResponse, SuccessfulListSearchServiceResponse, SuccessfulResponse, SuccessfulSearchServiceResponse, SuccessfulViewSearchServiceResponse, TokenStatus, Tokens };
255
+ export { type Account, AdminClient, type ApiKey, type ApiKeyValue, AuthClient, type Error, FailedAccountResponse, FailedApiKeyResponse, FailedApiKeyValueResponse, FailedAuthResponse, FailedListIdentityResponse, FailedListResponse, FailedResponse, FailedSearchServiceResponse, FailedViewSearchServiceResponse, FailedViewSearchServicesResponse, type List, type ListIdentity, type Problem, type RefreshRequest, Response, type SearchService, type SearchServiceDetails, SuccessfulAccountResponse, SuccessfulApiKeyResponse, SuccessfulApiKeyValueResponse, SuccessfulAuthResponse, SuccessfulListIdentityResponse, SuccessfulListResponse, SuccessfulListSearchServiceResponse, SuccessfulResponse, SuccessfulSearchServiceResponse, SuccessfulViewSearchServiceResponse, TokenStatus, Tokens };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
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(_0x2572fc){_0x2572fc[_0x2572fc['Ok']=0x0]='Ok',_0x2572fc[_0x2572fc['Refresh']=0x1]='Refresh',_0x2572fc[_0x2572fc['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(_0x2d696d){this['isSuccess']=_0x2d696d;}}class SuccessfulAccountResponse extends Response{constructor(_0x5303c2){super(!![]),this['account']=_0x5303c2;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x3b352a){super(!![]),this['list']=_0x3b352a;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x26d555){super(![]),this['problem']=_0x26d555;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x3e32af){super(![]),this['problem']=_0x3e32af;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x29489e){super(!![]),this['tokens']=_0x29489e;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x588eb4){super(![]),this['problem']=_0x588eb4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x104009){super(!![]),this['apiKey']=_0x104009;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x1f8431){super(![]),this['problem']=_0x1f8431;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x247dfc){super(!![]),this['searchService']=_0x247dfc;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x45565a){super(![]),this['problem']=_0x45565a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x114b12){super(!![]),this['searchService']=_0x114b12;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x2a7f20){super(!![]),this['searchServices']=_0x2a7f20;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x5f4189){super(![]),this['problem']=_0x5f4189;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x1f1ae1){super(![]),this['problem']=_0x1f1ae1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x515941){super(!![]),this['apiKeyValue']=_0x515941;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x99ddb1){super(!![]),this['obj']=_0x99ddb1;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x9d3a7f){super(![]),this['problem']=_0x9d3a7f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x864247){super(![]),this['problem']=_0x864247;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
-
3
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x5dc25c,_0x558621,_0x14fea1,_0x34672e){function _0x5a4fd6(_0x36d198){return _0x36d198 instanceof _0x14fea1?_0x36d198:new _0x14fea1(function(_0x9a99c7){_0x9a99c7(_0x36d198);});}return new(_0x14fea1||(_0x14fea1=Promise))(function(_0xe32fe4,_0x319541){function _0x47799a(_0x1be21c){try{_0x27e0b9(_0x34672e['next'](_0x1be21c));}catch(_0xac2ef8){_0x319541(_0xac2ef8);}}function _0x320ae2(_0x4d0f81){try{_0x27e0b9(_0x34672e['throw'](_0x4d0f81));}catch(_0x397ff6){_0x319541(_0x397ff6);}}function _0x27e0b9(_0x332518){_0x332518['done']?_0xe32fe4(_0x332518['value']):_0x5a4fd6(_0x332518['value'])['then'](_0x47799a,_0x320ae2);}_0x27e0b9((_0x34672e=_0x34672e['apply'](_0x5dc25c,_0x558621||[]))['next']());});};class AccountService{constructor(_0x2e60cf){this['fetch']=_0x2e60cf;}['get'](_0x2262ef,_0x1607ac){return __awaiter$5(this,void 0,void 0,function*(){const _0xb39ba4='Account/'+_0x2262ef+'/',_0x438b6f=yield this['fetch']['get'](_0xb39ba4,_0x1607ac);try{if(_0x438b6f['status']>0xc7&&_0x438b6f['status']<0x12c){const _0x4aa140=yield _0x438b6f['json']();return new SuccessfulAccountResponse(_0x4aa140);}const _0x2d0de7=yield _0x438b6f['json']();return new FailedAccountResponse(_0x2d0de7);}catch(_0x2be3b){if(_0x2be3b instanceof Error)return new FailedAccountResponse({'detail':_0x2be3b['message'],'title':_0x2be3b['name'],'status':0x1f4,'instance':'','type':''});throw _0x2be3b;}});}}
4
-
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x1072db,_0x180026,_0xb1736c,_0x24f697){function _0x18c5d7(_0x33e196){return _0x33e196 instanceof _0xb1736c?_0x33e196:new _0xb1736c(function(_0x28c474){_0x28c474(_0x33e196);});}return new(_0xb1736c||(_0xb1736c=Promise))(function(_0x4d4c,_0x15a194){function _0x37855b(_0x121eba){try{_0x1b12b7(_0x24f697['next'](_0x121eba));}catch(_0x4b6282){_0x15a194(_0x4b6282);}}function _0x340e58(_0x5cd7a3){try{_0x1b12b7(_0x24f697['throw'](_0x5cd7a3));}catch(_0x3d403a){_0x15a194(_0x3d403a);}}function _0x1b12b7(_0x2125f0){_0x2125f0['done']?_0x4d4c(_0x2125f0['value']):_0x18c5d7(_0x2125f0['value'])['then'](_0x37855b,_0x340e58);}_0x1b12b7((_0x24f697=_0x24f697['apply'](_0x1072db,_0x180026||[]))['next']());});};class ApiKeyService{constructor(_0x8d7856){this['fetch']=_0x8d7856,this['path']='api-key';}['create'](_0x191e7e,_0xb974ab,_0x32bf2f){return __awaiter$4(this,void 0,void 0,function*(){const _0x37a143={'account_name':_0x191e7e,'api_key_name':_0xb974ab};try{const _0x7b252a=yield this['fetch']['post'](this['path'],_0x32bf2f,_0x37a143);if(_0x7b252a['status']>0xc7&&_0x7b252a['status']<0x12c){const _0x323e63=yield _0x7b252a['json']();return new SuccessfulApiKeyResponse(_0x323e63);}const _0x29f759=yield _0x7b252a['json']();return new FailedApiKeyResponse(_0x29f759);}catch(_0x3004b7){if(_0x3004b7 instanceof Error)return new FailedApiKeyResponse({'detail':_0x3004b7['message'],'title':_0x3004b7['name'],'status':0x1f4,'instance':'','type':''});throw _0x3004b7;}});}['view'](_0x444317,_0x772a5d,_0x4d6d95){return __awaiter$4(this,void 0,void 0,function*(){const _0x494904=this['path']+'/'+_0x444317+'/'+_0x772a5d;try{const _0x388115=yield this['fetch']['get'](_0x494904,_0x4d6d95);if(_0x388115['status']>0xc7&&_0x388115['status']<0x12c){const _0x5ee9b2=yield _0x388115['json']();return new SuccessfulApiKeyValueResponse(_0x5ee9b2);}const _0x21026a=yield _0x388115['json']();return new FailedApiKeyValueResponse(_0x21026a);}catch(_0x410d8c){if(_0x410d8c instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x410d8c['message'],'title':_0x410d8c['name'],'status':0x1f4,'instance':'','type':''});throw _0x410d8c;}});}['delete'](_0x36ab2b,_0x4b03d2,_0x945383){return __awaiter$4(this,void 0,void 0,function*(){const _0x1b98e8=this['path']+'/'+_0x36ab2b+'/'+_0x4b03d2;try{const _0x2d12b1=yield this['fetch']['delete'](_0x1b98e8,_0x945383);if(_0x2d12b1['status']>0xc7&&_0x2d12b1['status']<0x12c)return new SuccessfulResponse({});const _0x29881c=yield _0x2d12b1['json']();return new FailedResponse(_0x29881c);}catch(_0x28f4c4){if(_0x28f4c4 instanceof Error)return new FailedResponse({'detail':_0x28f4c4['message'],'title':_0x28f4c4['name'],'status':0x1f4,'instance':'','type':''});throw _0x28f4c4;}});}}
6
-
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x11a703,_0xd918b5,_0xe0ec9c,_0x15c1b8){function _0x1f864c(_0x5bc137){return _0x5bc137 instanceof _0xe0ec9c?_0x5bc137:new _0xe0ec9c(function(_0x168bca){_0x168bca(_0x5bc137);});}return new(_0xe0ec9c||(_0xe0ec9c=Promise))(function(_0x5941c8,_0x5044a6){function _0x334458(_0x39c946){try{_0x519df3(_0x15c1b8['next'](_0x39c946));}catch(_0x5bd0b5){_0x5044a6(_0x5bd0b5);}}function _0x3c4f28(_0x41d9be){try{_0x519df3(_0x15c1b8['throw'](_0x41d9be));}catch(_0x1efe8f){_0x5044a6(_0x1efe8f);}}function _0x519df3(_0x372d3f){_0x372d3f['done']?_0x5941c8(_0x372d3f['value']):_0x1f864c(_0x372d3f['value'])['then'](_0x334458,_0x3c4f28);}_0x519df3((_0x15c1b8=_0x15c1b8['apply'](_0x11a703,_0xd918b5||[]))['next']());});};class ListService{constructor(_0xecc096){this['fetch']=_0xecc096;}['add'](_0x2db3be,_0x59e227,_0x5a17e0,_0x34ead9){return __awaiter$3(this,void 0,void 0,function*(){const _0x2a777c='List',_0x2889a6={'account_name':_0x2db3be,'list_name':_0x59e227,'search_service_name':_0x5a17e0};try{const _0xded512=yield this['fetch']['post'](_0x2a777c,_0x34ead9,_0x2889a6);if(_0xded512['status']>0xc7&&_0xded512['status']<0x12c){const _0xfcf411=yield _0xded512['json']();return new SuccessfulListIdentityResponse(_0xfcf411);}const _0x327136=yield _0xded512['json']();return new FailedListIdentityResponse(_0x327136);}catch(_0x5ee5ea){if(_0x5ee5ea instanceof Error)return new FailedListIdentityResponse({'detail':_0x5ee5ea['message'],'title':_0x5ee5ea['name'],'status':0x1f4,'instance':'','type':''});throw _0x5ee5ea;}});}['delete'](_0x514cbb,_0xf84ee8,_0x268ec6){return __awaiter$3(this,void 0,void 0,function*(){const _0x135602='List/'+_0x514cbb+'/'+_0xf84ee8,_0x52e9cf=yield this['fetch']['delete'](_0x135602,_0x268ec6);try{if(_0x52e9cf['status']>0xc7&&_0x52e9cf['status']<0x12c)return new SuccessfulResponse({});const _0xa4a88d=yield _0x52e9cf['json']();return new FailedResponse(_0xa4a88d);}catch(_0x25a462){if(_0x25a462 instanceof Error)return new FailedResponse({'detail':_0x25a462['message'],'title':_0x25a462['name'],'status':0x1f4,'instance':'','type':''});throw _0x25a462;}});}}
8
-
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x1950d4,_0x115c3e,_0x1bd874,_0x595906){function _0x33f831(_0x5db6b5){return _0x5db6b5 instanceof _0x1bd874?_0x5db6b5:new _0x1bd874(function(_0xdcb173){_0xdcb173(_0x5db6b5);});}return new(_0x1bd874||(_0x1bd874=Promise))(function(_0x11d972,_0x181f2e){function _0x323656(_0x3a7eca){try{_0x15f75d(_0x595906['next'](_0x3a7eca));}catch(_0x10bcca){_0x181f2e(_0x10bcca);}}function _0x225d2e(_0x599696){try{_0x15f75d(_0x595906['throw'](_0x599696));}catch(_0x46ca07){_0x181f2e(_0x46ca07);}}function _0x15f75d(_0x17903a){_0x17903a['done']?_0x11d972(_0x17903a['value']):_0x33f831(_0x17903a['value'])['then'](_0x323656,_0x225d2e);}_0x15f75d((_0x595906=_0x595906['apply'](_0x1950d4,_0x115c3e||[]))['next']());});};class Fetch{constructor(_0x4ecfb8){this['baseUri']=_0x4ecfb8,this['getUrl']=_0x437bd9=>{return _0x437bd9['startsWith']('/')&&(_0x437bd9=_0x437bd9['replace']('/','')),''+this['baseUri']+_0x437bd9;},!_0x4ecfb8['endsWith']('/')&&(_0x4ecfb8=_0x4ecfb8+'/');}['get'](_0xddc773,_0x27a809){return __awaiter$2(this,void 0,void 0,function*(){const _0xc071c6=this['getUrl'](_0xddc773);return yield fetch(_0xc071c6,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x27a809}});});}['post'](_0xbbc82f,_0x5b085c,_0x2d45de){return __awaiter$2(this,void 0,void 0,function*(){const _0x4fddfe=this['getUrl'](_0xbbc82f);return yield fetch(_0x4fddfe,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5b085c},'body':_0x2d45de?JSON['stringify'](_0x2d45de):null});});}['PostNoAuth'](_0x2d3528,_0x2c01e1){return __awaiter$2(this,void 0,void 0,function*(){const _0x1e7910=this['getUrl'](_0x2d3528);return yield fetch(_0x1e7910,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x2c01e1?JSON['stringify'](_0x2c01e1):null});});}['put'](_0x25cd07,_0x18cb5d,_0x28b70d){return __awaiter$2(this,void 0,void 0,function*(){const _0x9aacde=this['getUrl'](_0x25cd07);return yield fetch(_0x9aacde,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x18cb5d},'body':_0x28b70d?JSON['stringify'](_0x28b70d):null});});}['delete'](_0x5e6515,_0x57f1d8){return __awaiter$2(this,void 0,void 0,function*(){const _0x2114cc=this['getUrl'](_0x5e6515);return yield fetch(_0x2114cc,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x57f1d8}});});}}
10
-
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x2616cb,_0x512df2,_0xf679c1,_0x930653){function _0x469b71(_0x378b85){return _0x378b85 instanceof _0xf679c1?_0x378b85:new _0xf679c1(function(_0xc73ec3){_0xc73ec3(_0x378b85);});}return new(_0xf679c1||(_0xf679c1=Promise))(function(_0x42a295,_0x4e2df4){function _0x462c8e(_0x53c834){try{_0x5b11b2(_0x930653['next'](_0x53c834));}catch(_0x4dac94){_0x4e2df4(_0x4dac94);}}function _0x2c28aa(_0x113741){try{_0x5b11b2(_0x930653['throw'](_0x113741));}catch(_0x29258d){_0x4e2df4(_0x29258d);}}function _0x5b11b2(_0x355d59){_0x355d59['done']?_0x42a295(_0x355d59['value']):_0x469b71(_0x355d59['value'])['then'](_0x462c8e,_0x2c28aa);}_0x5b11b2((_0x930653=_0x930653['apply'](_0x2616cb,_0x512df2||[]))['next']());});};class SearchServersService{constructor(_0x31a2aa){this['fetch']=_0x31a2aa,this['path']='search-services';}['create'](_0x38d142,_0x24e2b1,_0x159b49,_0x2a3b8e,_0xf5f9b5,_0x2d841a,_0x2f294a,_0x59e7be){return __awaiter$1(this,void 0,void 0,function*(){const _0x30e25c={'account_name':_0x38d142,'search_service_name':_0x24e2b1,'endpoint':_0x159b49,'key':_0x2a3b8e,'country':_0xf5f9b5,'provider':_0x2d841a,'index_name':_0x2f294a};try{const _0x5b659d=yield this['fetch']['post'](this['path'],_0x59e7be,_0x30e25c);if(_0x5b659d['status']>0xc7&&_0x5b659d['status']<0x12c){const _0x39540d=yield _0x5b659d['json']();return new SuccessfulSearchServiceResponse(_0x39540d);}const _0x43efc5=yield _0x5b659d['json']();return new FailedSearchServiceResponse(_0x43efc5);}catch(_0x44646a){if(_0x44646a instanceof Error)return new FailedSearchServiceResponse({'detail':_0x44646a['message'],'title':_0x44646a['name'],'status':0x1f4,'instance':'','type':''});throw _0x44646a;}});}['delete'](_0x8d44e3,_0xf0b5cd,_0x291e64){return __awaiter$1(this,void 0,void 0,function*(){const _0x3c7b47=this['path']+'/'+_0x8d44e3+'/'+_0xf0b5cd;try{const _0x36f641=yield this['fetch']['delete'](_0x3c7b47,_0x291e64);if(_0x36f641['status']>0xc7&&_0x36f641['status']<0x12c)return new SuccessfulResponse({});const _0x4587c4=yield _0x36f641['json']();return new FailedResponse(_0x4587c4);}catch(_0x1f70e7){if(_0x1f70e7 instanceof Error)return new FailedResponse({'detail':_0x1f70e7['message'],'title':_0x1f70e7['name'],'status':0x1f4,'instance':'','type':''});throw _0x1f70e7;}});}['view'](_0x5479a6,_0x28caa1,_0x45c618){return __awaiter$1(this,void 0,void 0,function*(){const _0x58fc63=this['path']+'/'+_0x5479a6+'/'+_0x28caa1;try{const _0x460a4a=yield this['fetch']['get'](_0x58fc63,_0x45c618);if(_0x460a4a['status']>0xc7&&_0x460a4a['status']<0x12c){const _0x380a35=yield _0x460a4a['json']();return new SuccessfulViewSearchServiceResponse(_0x380a35);}const _0x21a29b=yield _0x460a4a['json']();return new FailedViewSearchServiceResponse(_0x21a29b);}catch(_0x5e9ac4){if(_0x5e9ac4 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x5e9ac4['message'],'title':_0x5e9ac4['name'],'status':0x1f4,'instance':'','type':''});throw _0x5e9ac4;}});}['edit'](_0x48e433,_0x5b2a7f,_0x278a27,_0x56361d,_0x362c42,_0x3093f0){return __awaiter$1(this,void 0,void 0,function*(){const _0x3062a0={'account_name':_0x48e433,'search_service_name':_0x5b2a7f,'new_search_service_name':_0x278a27,'key':_0x56361d,'country':_0x362c42};try{const _0x21e322=yield this['fetch']['put'](this['path'],_0x3093f0,_0x3062a0);if(_0x21e322['status']>0xc7&&_0x21e322['status']<0x12c){const _0x50a417=yield _0x21e322['json']();return new SuccessfulSearchServiceResponse(_0x50a417);}const _0x2bf822=yield _0x21e322['json']();return new FailedSearchServiceResponse(_0x2bf822);}catch(_0x9ed6ff){if(_0x9ed6ff instanceof Error)return new FailedSearchServiceResponse({'detail':_0x9ed6ff['message'],'title':_0x9ed6ff['name'],'status':0x1f4,'instance':'','type':''});throw _0x9ed6ff;}});}['list'](_0x337d40,_0x1081da){return __awaiter$1(this,void 0,void 0,function*(){const _0x110b19=this['path']+'/'+_0x337d40;try{const _0x37dbf9=yield this['fetch']['get'](_0x110b19,_0x1081da);if(_0x37dbf9['status']>0xc7&&_0x37dbf9['status']<0x12c){const _0x12ff4a=yield _0x37dbf9['json']();return new SuccessfulListSearchServiceResponse(_0x12ff4a);}const _0x1c500c=yield _0x37dbf9['json']();return new FailedViewSearchServicesResponse(_0x1c500c);}catch(_0x2438d6){if(_0x2438d6 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x2438d6['message'],'title':_0x2438d6['name'],'status':0x1f4,'instance':'','type':''});throw _0x2438d6;}});}}
12
-
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0xf3f2b7,_0x1b26f7,_0x188a9a,_0x41d92a){function _0x44c6b0(_0x3cfd64){return _0x3cfd64 instanceof _0x188a9a?_0x3cfd64:new _0x188a9a(function(_0x187d7c){_0x187d7c(_0x3cfd64);});}return new(_0x188a9a||(_0x188a9a=Promise))(function(_0x354f39,_0x596c5f){function _0x296a48(_0x5bb362){try{_0x532961(_0x41d92a['next'](_0x5bb362));}catch(_0x21fe18){_0x596c5f(_0x21fe18);}}function _0x3b6b9e(_0x8552ab){try{_0x532961(_0x41d92a['throw'](_0x8552ab));}catch(_0x4ae7e9){_0x596c5f(_0x4ae7e9);}}function _0x532961(_0x2b4a75){_0x2b4a75['done']?_0x354f39(_0x2b4a75['value']):_0x44c6b0(_0x2b4a75['value'])['then'](_0x296a48,_0x3b6b9e);}_0x532961((_0x41d92a=_0x41d92a['apply'](_0xf3f2b7,_0x1b26f7||[]))['next']());});};class AdminClient{constructor(_0x1c5bda='https://admin.searchability.dev/'){var _0x31a9c6=new Fetch(_0x1c5bda);this['Accounts']=new AccountService(_0x31a9c6),this['Lists']=new ListService(_0x31a9c6),this['ApiKeys']=new ApiKeyService(_0x31a9c6),this['SearchServices']=new SearchServersService(_0x31a9c6);}}class AuthClient{constructor(_0x490d4e='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x490d4e);}['login'](_0x389127){return __awaiter(this,void 0,void 0,function*(){const _0x5d0cea='login/'+_0x389127;try{const _0x37d9fd=yield yield fetch(_0x5d0cea);if(_0x37d9fd['status']>0xc7&&_0x37d9fd['status']<0x12c){const _0x4a4548=yield _0x37d9fd['json']();return new SuccessfulAuthResponse(_0x4a4548);}const _0x431465=yield _0x37d9fd['json']();return new FailedAuthResponse(_0x431465);}catch(_0x3377a7){if(_0x3377a7 instanceof Error)return new FailedAuthResponse({'detail':_0x3377a7['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3377a7;}});}['refresh'](_0xc4f97d){return __awaiter(this,void 0,void 0,function*(){const _0x45ef5f='refresh',_0x55c4e6={'refresh_token':_0xc4f97d};try{const _0x564290=yield this['fetch']['PostNoAuth'](_0x45ef5f,_0x55c4e6);if(_0x564290['status']>0xc7&&_0x564290['status']<0x12c){const _0x37df4a=yield _0x564290['json']();return new SuccessfulAuthResponse(_0x37df4a);}const _0x58fe51=yield _0x564290['json']();return new FailedAuthResponse(_0x58fe51);}catch(_0x32685d){if(_0x32685d instanceof Error)return new FailedAuthResponse({'detail':_0x32685d['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x32685d;}});}['getTokenStatus'](_0x2cbe6e){if(Date['now']()<_0x2cbe6e['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x2cbe6e['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
14
-
15
- export { AdminClient, AuthClient, TokenStatus, Tokens };