@searchability/admin-client 0.0.49 → 0.0.51

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(_0x3a3c61){_0x3a3c61[_0x3a3c61['Ok']=0x0]='Ok',_0x3a3c61[_0x3a3c61['Refresh']=0x1]='Refresh',_0x3a3c61[_0x3a3c61['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(_0x4cb7cc){this['isSuccess']=_0x4cb7cc;}}class SuccessfulAccountResponse extends Response{constructor(_0x15df36){super(!![]),this['account']=_0x15df36;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x168c68){super(!![]),this['list']=_0x168c68;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x372633){super(![]),this['problem']=_0x372633;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x52e1b8){super(![]),this['problem']=_0x52e1b8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x24dc79){super(!![]),this['tokens']=_0x24dc79;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x33eaf5){super(![]),this['problem']=_0x33eaf5;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x318ac0){super(!![]),this['apiKey']=_0x318ac0;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x28ccd7){super(![]),this['problem']=_0x28ccd7;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x9b657d){super(!![]),this['searchService']=_0x9b657d;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x3c9326){super(![]),this['problem']=_0x3c9326;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x1f59b2){super(!![]),this['searchService']=_0x1f59b2;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x136616){super(!![]),this['searchServices']=_0x136616;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x4431bd){super(![]),this['problem']=_0x4431bd;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x1d5ba3){super(![]),this['problem']=_0x1d5ba3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x22d012){super(!![]),this['apiKeyValue']=_0x22d012;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x29fe10){super(!![]),this['obj']=_0x29fe10;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x123454){super(![]),this['problem']=_0x123454;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x18a617){super(![]),this['problem']=_0x18a617;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
+
3
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x41dc50,_0x1e6d53,_0x118ca2,_0x8091ff){function _0x12c9c8(_0x59a04){return _0x59a04 instanceof _0x118ca2?_0x59a04:new _0x118ca2(function(_0x539b90){_0x539b90(_0x59a04);});}return new(_0x118ca2||(_0x118ca2=Promise))(function(_0x5b1046,_0x3ccf53){function _0x477aae(_0x50ae3b){try{_0x45cf35(_0x8091ff['next'](_0x50ae3b));}catch(_0x2db49d){_0x3ccf53(_0x2db49d);}}function _0x2f98a9(_0x33420c){try{_0x45cf35(_0x8091ff['throw'](_0x33420c));}catch(_0x27423f){_0x3ccf53(_0x27423f);}}function _0x45cf35(_0x3f43a3){_0x3f43a3['done']?_0x5b1046(_0x3f43a3['value']):_0x12c9c8(_0x3f43a3['value'])['then'](_0x477aae,_0x2f98a9);}_0x45cf35((_0x8091ff=_0x8091ff['apply'](_0x41dc50,_0x1e6d53||[]))['next']());});};class AccountService{constructor(_0x490fff){this['fetch']=_0x490fff;}['get'](_0x33d833,_0xa1708c){return __awaiter$5(this,void 0,void 0,function*(){const _0x5b7ed8='Account/'+_0x33d833+'/',_0x179676=yield this['fetch']['get'](_0x5b7ed8,_0xa1708c);try{if(_0x179676['status']>0xc7&&_0x179676['status']<0x12c){const _0x52b299=yield _0x179676['json']();return new SuccessfulAccountResponse(_0x52b299);}const _0x1cbd50=yield _0x179676['json']();return new FailedAccountResponse(_0x1cbd50);}catch(_0x1bfd2b){if(_0x1bfd2b instanceof Error)return new FailedAccountResponse({'detail':_0x1bfd2b['message'],'title':_0x1bfd2b['name'],'status':0x1f4,'instance':'','type':''});throw _0x1bfd2b;}});}}
4
+
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x4240c9,_0x4e13e1,_0xde722a,_0x4ba40c){function _0x11e859(_0x47b648){return _0x47b648 instanceof _0xde722a?_0x47b648:new _0xde722a(function(_0x2fb42a){_0x2fb42a(_0x47b648);});}return new(_0xde722a||(_0xde722a=Promise))(function(_0x6d089a,_0x59fac0){function _0x16c82f(_0x4d2581){try{_0xcf71f(_0x4ba40c['next'](_0x4d2581));}catch(_0x8490ac){_0x59fac0(_0x8490ac);}}function _0x4fb2cb(_0x4a8eed){try{_0xcf71f(_0x4ba40c['throw'](_0x4a8eed));}catch(_0x72fa0d){_0x59fac0(_0x72fa0d);}}function _0xcf71f(_0x3fcc58){_0x3fcc58['done']?_0x6d089a(_0x3fcc58['value']):_0x11e859(_0x3fcc58['value'])['then'](_0x16c82f,_0x4fb2cb);}_0xcf71f((_0x4ba40c=_0x4ba40c['apply'](_0x4240c9,_0x4e13e1||[]))['next']());});};class ApiKeyService{constructor(_0x15857f){this['fetch']=_0x15857f,this['path']='api-key';}['create'](_0x43d1f7,_0x371d1d,_0x2a10c8){return __awaiter$4(this,void 0,void 0,function*(){const _0xa045da={'account_name':_0x43d1f7,'api_key_name':_0x371d1d};try{const _0x25b02a=yield this['fetch']['post'](this['path'],_0x2a10c8,_0xa045da);if(_0x25b02a['status']>0xc7&&_0x25b02a['status']<0x12c){const _0x519910=yield _0x25b02a['json']();return new SuccessfulApiKeyResponse(_0x519910);}const _0x52eaa3=yield _0x25b02a['json']();return new FailedApiKeyResponse(_0x52eaa3);}catch(_0x551823){if(_0x551823 instanceof Error)return new FailedApiKeyResponse({'detail':_0x551823['message'],'title':_0x551823['name'],'status':0x1f4,'instance':'','type':''});throw _0x551823;}});}['view'](_0x1bfecd,_0x3fbc98,_0x1ef69b){return __awaiter$4(this,void 0,void 0,function*(){const _0x29c5cc=this['path']+'/'+_0x1bfecd+'/'+_0x3fbc98;try{const _0xb24d1b=yield this['fetch']['get'](_0x29c5cc,_0x1ef69b);if(_0xb24d1b['status']>0xc7&&_0xb24d1b['status']<0x12c){const _0x1bd15a=yield _0xb24d1b['json']();return new SuccessfulApiKeyValueResponse(_0x1bd15a);}const _0x599031=yield _0xb24d1b['json']();return new FailedApiKeyValueResponse(_0x599031);}catch(_0x1e9aa0){if(_0x1e9aa0 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x1e9aa0['message'],'title':_0x1e9aa0['name'],'status':0x1f4,'instance':'','type':''});throw _0x1e9aa0;}});}['delete'](_0x39dac5,_0x5aa382,_0x53aae2){return __awaiter$4(this,void 0,void 0,function*(){const _0x211648=this['path']+'/'+_0x39dac5+'/'+_0x5aa382;try{const _0x1fbf1c=yield this['fetch']['delete'](_0x211648,_0x53aae2);if(_0x1fbf1c['status']>0xc7&&_0x1fbf1c['status']<0x12c)return new SuccessfulResponse({});const _0x10e2be=yield _0x1fbf1c['json']();return new FailedResponse(_0x10e2be);}catch(_0x3de8b8){if(_0x3de8b8 instanceof Error)return new FailedResponse({'detail':_0x3de8b8['message'],'title':_0x3de8b8['name'],'status':0x1f4,'instance':'','type':''});throw _0x3de8b8;}});}}
6
+
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x43a57b,_0x520d4e,_0x83fa6,_0xfd87ff){function _0x19ab47(_0x381508){return _0x381508 instanceof _0x83fa6?_0x381508:new _0x83fa6(function(_0x480a05){_0x480a05(_0x381508);});}return new(_0x83fa6||(_0x83fa6=Promise))(function(_0x196e9f,_0x558811){function _0x1d8e2d(_0x2bbac3){try{_0x786d43(_0xfd87ff['next'](_0x2bbac3));}catch(_0x4d2bd4){_0x558811(_0x4d2bd4);}}function _0x12c2a9(_0x2cf742){try{_0x786d43(_0xfd87ff['throw'](_0x2cf742));}catch(_0x14080d){_0x558811(_0x14080d);}}function _0x786d43(_0x4c5a75){_0x4c5a75['done']?_0x196e9f(_0x4c5a75['value']):_0x19ab47(_0x4c5a75['value'])['then'](_0x1d8e2d,_0x12c2a9);}_0x786d43((_0xfd87ff=_0xfd87ff['apply'](_0x43a57b,_0x520d4e||[]))['next']());});};class ListService{constructor(_0x96eac8){this['fetch']=_0x96eac8;}['add'](_0x519675,_0x2fc79a,_0x47fb4a,_0x2b49ae){return __awaiter$3(this,void 0,void 0,function*(){const _0x16299f='List',_0x134376={'account_name':_0x519675,'list_name':_0x2fc79a,'search_service_name':_0x47fb4a};try{const _0x445d59=yield this['fetch']['post'](_0x16299f,_0x2b49ae,_0x134376);if(_0x445d59['status']>0xc7&&_0x445d59['status']<0x12c){const _0x40a7c1=yield _0x445d59['json']();return new SuccessfulListIdentityResponse(_0x40a7c1);}const _0x5a7b90=yield _0x445d59['json']();return new FailedListIdentityResponse(_0x5a7b90);}catch(_0x18f069){if(_0x18f069 instanceof Error)return new FailedListIdentityResponse({'detail':_0x18f069['message'],'title':_0x18f069['name'],'status':0x1f4,'instance':'','type':''});throw _0x18f069;}});}['delete'](_0x474951,_0x5ac25f,_0x5053a7){return __awaiter$3(this,void 0,void 0,function*(){const _0x30a91b='List/'+_0x474951+'/'+_0x5ac25f,_0x4b84ff=yield this['fetch']['delete'](_0x30a91b,_0x5053a7);try{if(_0x4b84ff['status']>0xc7&&_0x4b84ff['status']<0x12c)return new SuccessfulResponse({});const _0x125a5f=yield _0x4b84ff['json']();return new FailedResponse(_0x125a5f);}catch(_0x278716){if(_0x278716 instanceof Error)return new FailedResponse({'detail':_0x278716['message'],'title':_0x278716['name'],'status':0x1f4,'instance':'','type':''});throw _0x278716;}});}}
8
+
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x5c14c5,_0x56b357,_0x4ba30,_0x34c639){function _0x432e2f(_0x189097){return _0x189097 instanceof _0x4ba30?_0x189097:new _0x4ba30(function(_0x3837e7){_0x3837e7(_0x189097);});}return new(_0x4ba30||(_0x4ba30=Promise))(function(_0x25f663,_0x6e28ac){function _0x2358b2(_0x523571){try{_0x9ec049(_0x34c639['next'](_0x523571));}catch(_0x2ec678){_0x6e28ac(_0x2ec678);}}function _0x59e990(_0x5ae4f7){try{_0x9ec049(_0x34c639['throw'](_0x5ae4f7));}catch(_0x2f7d73){_0x6e28ac(_0x2f7d73);}}function _0x9ec049(_0x3353a7){_0x3353a7['done']?_0x25f663(_0x3353a7['value']):_0x432e2f(_0x3353a7['value'])['then'](_0x2358b2,_0x59e990);}_0x9ec049((_0x34c639=_0x34c639['apply'](_0x5c14c5,_0x56b357||[]))['next']());});};class Fetch{constructor(_0x37ea83){this['baseUri']=_0x37ea83,this['getUrl']=_0x44b482=>{return _0x44b482['startsWith']('/')&&(_0x44b482=_0x44b482['replace']('/','')),''+this['baseUri']+_0x44b482;},!_0x37ea83['endsWith']('/')&&(_0x37ea83=_0x37ea83+'/');}['get'](_0x2eeb26,_0x1d76f7){return __awaiter$2(this,void 0,void 0,function*(){const _0x7bfd15=this['getUrl'](_0x2eeb26);return yield fetch(_0x7bfd15,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x1d76f7}});});}['post'](_0xbe425a,_0x133004,_0xe1540b){return __awaiter$2(this,void 0,void 0,function*(){const _0x251414=this['getUrl'](_0xbe425a);return yield fetch(_0x251414,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x133004},'body':_0xe1540b?JSON['stringify'](_0xe1540b):null});});}['PostNoAuth'](_0x4491be,_0x40d9d9){return __awaiter$2(this,void 0,void 0,function*(){const _0xfe7b61=this['getUrl'](_0x4491be);return yield fetch(_0xfe7b61,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x40d9d9?JSON['stringify'](_0x40d9d9):null});});}['put'](_0x49b431,_0x53a195,_0x4dccfd){return __awaiter$2(this,void 0,void 0,function*(){const _0x192d05=this['getUrl'](_0x49b431);return yield fetch(_0x192d05,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x53a195},'body':_0x4dccfd?JSON['stringify'](_0x4dccfd):null});});}['delete'](_0x4b1810,_0xe124c7){return __awaiter$2(this,void 0,void 0,function*(){const _0x2537c1=this['getUrl'](_0x4b1810);return yield fetch(_0x2537c1,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xe124c7}});});}}
10
+
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x514e0c,_0x40fc3b,_0x207a93,_0x4b418f){function _0x4d6d76(_0x5b3e50){return _0x5b3e50 instanceof _0x207a93?_0x5b3e50:new _0x207a93(function(_0x296dd){_0x296dd(_0x5b3e50);});}return new(_0x207a93||(_0x207a93=Promise))(function(_0x1f817e,_0x314765){function _0x275fd3(_0x5b9cd7){try{_0x5c30a9(_0x4b418f['next'](_0x5b9cd7));}catch(_0x4a28e1){_0x314765(_0x4a28e1);}}function _0x444d6d(_0x5a3a3c){try{_0x5c30a9(_0x4b418f['throw'](_0x5a3a3c));}catch(_0x366eb5){_0x314765(_0x366eb5);}}function _0x5c30a9(_0x3f2a68){_0x3f2a68['done']?_0x1f817e(_0x3f2a68['value']):_0x4d6d76(_0x3f2a68['value'])['then'](_0x275fd3,_0x444d6d);}_0x5c30a9((_0x4b418f=_0x4b418f['apply'](_0x514e0c,_0x40fc3b||[]))['next']());});};class SearchServersService{constructor(_0x4a1d53){this['fetch']=_0x4a1d53,this['path']='search-services';}['create'](_0x4f15d3,_0x35f9e1,_0x1de1b7,_0x3acc75,_0x434b32,_0x527565,_0x1d899f,_0x53fc04){return __awaiter$1(this,void 0,void 0,function*(){const _0x405272={'account_name':_0x4f15d3,'search_service_name':_0x35f9e1,'endpoint':_0x1de1b7,'key':_0x3acc75,'country':_0x434b32,'provider':_0x527565,'index_name':_0x1d899f};try{const _0x15fe8d=yield this['fetch']['post'](this['path'],_0x53fc04,_0x405272);if(_0x15fe8d['status']>0xc7&&_0x15fe8d['status']<0x12c){const _0x3bea15=yield _0x15fe8d['json']();return new SuccessfulSearchServiceResponse(_0x3bea15);}const _0x2171b4=yield _0x15fe8d['json']();return new FailedSearchServiceResponse(_0x2171b4);}catch(_0x566ab9){if(_0x566ab9 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x566ab9['message'],'title':_0x566ab9['name'],'status':0x1f4,'instance':'','type':''});throw _0x566ab9;}});}['delete'](_0x3ebcf9,_0x5eb38d,_0x474b7d){return __awaiter$1(this,void 0,void 0,function*(){const _0x472cac=this['path']+'/'+_0x3ebcf9+'/'+_0x5eb38d;try{const _0xfd3f60=yield this['fetch']['delete'](_0x472cac,_0x474b7d);if(_0xfd3f60['status']>0xc7&&_0xfd3f60['status']<0x12c)return new SuccessfulResponse({});const _0x4fe1f7=yield _0xfd3f60['json']();return new FailedResponse(_0x4fe1f7);}catch(_0x39ce74){if(_0x39ce74 instanceof Error)return new FailedResponse({'detail':_0x39ce74['message'],'title':_0x39ce74['name'],'status':0x1f4,'instance':'','type':''});throw _0x39ce74;}});}['view'](_0x114635,_0x8983c7,_0x4c181f){return __awaiter$1(this,void 0,void 0,function*(){const _0x51e215=this['path']+'/'+_0x114635+'/'+_0x8983c7;try{const _0x4fc798=yield this['fetch']['get'](_0x51e215,_0x4c181f);if(_0x4fc798['status']>0xc7&&_0x4fc798['status']<0x12c){const _0x192f89=yield _0x4fc798['json']();return new SuccessfulViewSearchServiceResponse(_0x192f89);}const _0x32170c=yield _0x4fc798['json']();return new FailedViewSearchServiceResponse(_0x32170c);}catch(_0x45a2a1){if(_0x45a2a1 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x45a2a1['message'],'title':_0x45a2a1['name'],'status':0x1f4,'instance':'','type':''});throw _0x45a2a1;}});}['edit'](_0x3da1ed,_0x18d41c,_0xfd5b99,_0xa26064,_0x3ddbc3,_0x51e7c7){return __awaiter$1(this,void 0,void 0,function*(){const _0x43648e={'account_name':_0x3da1ed,'search_service_name':_0x18d41c,'new_search_service_name':_0xfd5b99,'key':_0xa26064,'country':_0x3ddbc3};try{const _0x31db25=yield this['fetch']['put'](this['path'],_0x51e7c7,_0x43648e);if(_0x31db25['status']>0xc7&&_0x31db25['status']<0x12c){const _0x3c3361=yield _0x31db25['json']();return new SuccessfulSearchServiceResponse(_0x3c3361);}const _0x50f005=yield _0x31db25['json']();return new FailedSearchServiceResponse(_0x50f005);}catch(_0x2a73d8){if(_0x2a73d8 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x2a73d8['message'],'title':_0x2a73d8['name'],'status':0x1f4,'instance':'','type':''});throw _0x2a73d8;}});}['list'](_0x3bfbc6,_0x2486d8){return __awaiter$1(this,void 0,void 0,function*(){const _0x349c65=this['path']+'/'+_0x3bfbc6;try{const _0x16a15a=yield this['fetch']['get'](_0x349c65,_0x2486d8);if(_0x16a15a['status']>0xc7&&_0x16a15a['status']<0x12c){const _0x107996=yield _0x16a15a['json']();return new SuccessfulListSearchServiceResponse(_0x107996);}const _0x316ec8=yield _0x16a15a['json']();return new FailedViewSearchServicesResponse(_0x316ec8);}catch(_0x373e9a){if(_0x373e9a instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x373e9a['message'],'title':_0x373e9a['name'],'status':0x1f4,'instance':'','type':''});throw _0x373e9a;}});}}
12
+
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x36bb2c,_0x5ed8f2,_0x112abe,_0x3a9465){function _0x5c1100(_0x196e79){return _0x196e79 instanceof _0x112abe?_0x196e79:new _0x112abe(function(_0x4e1494){_0x4e1494(_0x196e79);});}return new(_0x112abe||(_0x112abe=Promise))(function(_0x356577,_0x39303e){function _0x59a786(_0x3e4460){try{_0x294a86(_0x3a9465['next'](_0x3e4460));}catch(_0x5b80b3){_0x39303e(_0x5b80b3);}}function _0x1fea99(_0x276827){try{_0x294a86(_0x3a9465['throw'](_0x276827));}catch(_0x43bc0c){_0x39303e(_0x43bc0c);}}function _0x294a86(_0xed0f4f){_0xed0f4f['done']?_0x356577(_0xed0f4f['value']):_0x5c1100(_0xed0f4f['value'])['then'](_0x59a786,_0x1fea99);}_0x294a86((_0x3a9465=_0x3a9465['apply'](_0x36bb2c,_0x5ed8f2||[]))['next']());});};class AdminClient{constructor(_0x204981='https://admin.searchability.dev/'){var _0x7b9b5a=new Fetch(_0x204981);this['Accounts']=new AccountService(_0x7b9b5a),this['Lists']=new ListService(_0x7b9b5a),this['ApiKeys']=new ApiKeyService(_0x7b9b5a),this['SearchServices']=new SearchServersService(_0x7b9b5a);}}class AuthClient{constructor(_0x80cec1='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x80cec1);}['login'](_0x5d9742){return __awaiter(this,void 0,void 0,function*(){const _0x2d37b3='login/'+_0x5d9742;try{const _0x563d31=yield yield fetch(_0x2d37b3);if(_0x563d31['status']>0xc7&&_0x563d31['status']<0x12c){const _0x16eb94=yield _0x563d31['json']();return new SuccessfulAuthResponse(_0x16eb94);}const _0x1eb7e4=yield _0x563d31['json']();return new FailedAuthResponse(_0x1eb7e4);}catch(_0x462de1){if(_0x462de1 instanceof Error)return new FailedAuthResponse({'detail':_0x462de1['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x462de1;}});}['refresh'](_0xb2d835){return __awaiter(this,void 0,void 0,function*(){const _0x116a02='refresh',_0x3dcd62={'refresh_token':_0xb2d835};try{const _0x47f712=yield this['fetch']['PostNoAuth'](_0x116a02,_0x3dcd62);if(_0x47f712['status']>0xc7&&_0x47f712['status']<0x12c){const _0x5b1025=yield _0x47f712['json']();return new SuccessfulAuthResponse(_0x5b1025);}const _0x142419=yield _0x47f712['json']();return new FailedAuthResponse(_0x142419);}catch(_0x3f095e){if(_0x3f095e instanceof Error)return new FailedAuthResponse({'detail':_0x3f095e['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3f095e;}});}['getTokenStatus'](_0xa17523){if(Date['now']()<_0xa17523['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0xa17523['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(_0x5c562a){_0x5c562a[_0x5c562a['Ok']=0x0]='Ok',_0x5c562a[_0x5c562a['Refresh']=0x1]='Refresh',_0x5c562a[_0x5c562a['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(_0x401994){this['isSuccess']=_0x401994;}}class SuccessfulAccountResponse extends Response{constructor(_0x2c7667){super(!![]),this['account']=_0x2c7667;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x4e580b){super(!![]),this['list']=_0x4e580b;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x50babd){super(![]),this['problem']=_0x50babd;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0xd4000c){super(![]),this['problem']=_0xd4000c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x8275b9){super(!![]),this['tokens']=_0x8275b9;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x5397f4){super(![]),this['problem']=_0x5397f4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x147e5e){super(!![]),this['apiKey']=_0x147e5e;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x411a2d){super(![]),this['problem']=_0x411a2d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x1a00ff){super(!![]),this['searchService']=_0x1a00ff;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x457ec6){super(![]),this['problem']=_0x457ec6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x3ed640){super(!![]),this['searchService']=_0x3ed640;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0xb8e74a){super(!![]),this['searchServices']=_0xb8e74a;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0xee166f){super(![]),this['problem']=_0xee166f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x2df238){super(![]),this['problem']=_0x2df238;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x3b242a){super(!![]),this['apiKeyValue']=_0x3b242a;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x462bca){super(!![]),this['obj']=_0x462bca;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x5106fb){super(![]),this['problem']=_0x5106fb;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x2757ba){super(![]),this['problem']=_0x2757ba;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
3
+ exports.TokenStatus = void 0;(function(_0x29dac7){_0x29dac7[_0x29dac7['Ok']=0x0]='Ok',_0x29dac7[_0x29dac7['Refresh']=0x1]='Refresh',_0x29dac7[_0x29dac7['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(_0x26480f){this['isSuccess']=_0x26480f;}}class SuccessfulAccountResponse extends Response{constructor(_0x2c3121){super(!![]),this['account']=_0x2c3121;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x6a1761){super(!![]),this['list']=_0x6a1761;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x4c6aa6){super(![]),this['problem']=_0x4c6aa6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x565eb1){super(![]),this['problem']=_0x565eb1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x51c230){super(!![]),this['tokens']=_0x51c230;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0xbaf373){super(![]),this['problem']=_0xbaf373;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x572fe0){super(!![]),this['apiKey']=_0x572fe0;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4abdbb){super(![]),this['problem']=_0x4abdbb;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x1c52e9){super(!![]),this['searchService']=_0x1c52e9;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x65975b){super(![]),this['problem']=_0x65975b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x168c94){super(!![]),this['searchService']=_0x168c94;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x46b5d2){super(!![]),this['searchServices']=_0x46b5d2;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x1619ee){super(![]),this['problem']=_0x1619ee;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x28677b){super(![]),this['problem']=_0x28677b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x53d9c7){super(!![]),this['apiKeyValue']=_0x53d9c7;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x113bec){super(!![]),this['obj']=_0x113bec;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x33afc4){super(![]),this['problem']=_0x33afc4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x2e563d){super(![]),this['problem']=_0x2e563d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
5
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x1e1de1,_0x11f7c3,_0x26faba,_0x10fed5){function _0x632baf(_0x24c04b){return _0x24c04b instanceof _0x26faba?_0x24c04b:new _0x26faba(function(_0x46fd8c){_0x46fd8c(_0x24c04b);});}return new(_0x26faba||(_0x26faba=Promise))(function(_0x3d71ca,_0x1b200b){function _0x576344(_0x22a9d6){try{_0x3eff4b(_0x10fed5['next'](_0x22a9d6));}catch(_0x47e0cd){_0x1b200b(_0x47e0cd);}}function _0x2f2e61(_0x9cf2f4){try{_0x3eff4b(_0x10fed5['throw'](_0x9cf2f4));}catch(_0x31f6ff){_0x1b200b(_0x31f6ff);}}function _0x3eff4b(_0x4f5a5e){_0x4f5a5e['done']?_0x3d71ca(_0x4f5a5e['value']):_0x632baf(_0x4f5a5e['value'])['then'](_0x576344,_0x2f2e61);}_0x3eff4b((_0x10fed5=_0x10fed5['apply'](_0x1e1de1,_0x11f7c3||[]))['next']());});};class AccountService{constructor(_0x494e47){this['fetch']=_0x494e47;}['get'](_0xd91c9c,_0x198993){return __awaiter$5(this,void 0,void 0,function*(){const _0xad54b4='Account/'+_0xd91c9c+'/',_0x483f69=yield this['fetch']['get'](_0xad54b4,_0x198993);try{if(_0x483f69['status']>0xc7&&_0x483f69['status']<0x12c){const _0x33d5c1=yield _0x483f69['json']();return new SuccessfulAccountResponse(_0x33d5c1);}const _0x2bbfc6=yield _0x483f69['json']();return new FailedAccountResponse(_0x2bbfc6);}catch(_0x4e1a18){if(_0x4e1a18 instanceof Error)return new FailedAccountResponse({'detail':_0x4e1a18['message'],'title':_0x4e1a18['name'],'status':0x1f4,'instance':'','type':''});throw _0x4e1a18;}});}}
5
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x2871e5,_0x347d4b,_0x12beb3,_0x26ff61){function _0x24fdea(_0x47be3d){return _0x47be3d instanceof _0x12beb3?_0x47be3d:new _0x12beb3(function(_0xa07927){_0xa07927(_0x47be3d);});}return new(_0x12beb3||(_0x12beb3=Promise))(function(_0x1b96b7,_0xda8b81){function _0x5ec1f9(_0x5dfb79){try{_0x4d2cc9(_0x26ff61['next'](_0x5dfb79));}catch(_0x26214f){_0xda8b81(_0x26214f);}}function _0x17dbac(_0x5139fb){try{_0x4d2cc9(_0x26ff61['throw'](_0x5139fb));}catch(_0x1af6c0){_0xda8b81(_0x1af6c0);}}function _0x4d2cc9(_0x523371){_0x523371['done']?_0x1b96b7(_0x523371['value']):_0x24fdea(_0x523371['value'])['then'](_0x5ec1f9,_0x17dbac);}_0x4d2cc9((_0x26ff61=_0x26ff61['apply'](_0x2871e5,_0x347d4b||[]))['next']());});};class AccountService{constructor(_0x214c49){this['fetch']=_0x214c49;}['get'](_0x52ed50,_0x2c7c13){return __awaiter$5(this,void 0,void 0,function*(){const _0x2cac59='Account/'+_0x52ed50+'/',_0x214202=yield this['fetch']['get'](_0x2cac59,_0x2c7c13);try{if(_0x214202['status']>0xc7&&_0x214202['status']<0x12c){const _0xfc0d9a=yield _0x214202['json']();return new SuccessfulAccountResponse(_0xfc0d9a);}const _0x457619=yield _0x214202['json']();return new FailedAccountResponse(_0x457619);}catch(_0x2adadf){if(_0x2adadf instanceof Error)return new FailedAccountResponse({'detail':_0x2adadf['message'],'title':_0x2adadf['name'],'status':0x1f4,'instance':'','type':''});throw _0x2adadf;}});}}
6
6
 
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x18548d,_0x4b3187,_0x426be1,_0xd40f3b){function _0x596bb2(_0x20319f){return _0x20319f instanceof _0x426be1?_0x20319f:new _0x426be1(function(_0x586b16){_0x586b16(_0x20319f);});}return new(_0x426be1||(_0x426be1=Promise))(function(_0x4ca739,_0x20ebe0){function _0x20ddde(_0x50c912){try{_0x12a3ed(_0xd40f3b['next'](_0x50c912));}catch(_0x2344b7){_0x20ebe0(_0x2344b7);}}function _0x2fce85(_0xdc5003){try{_0x12a3ed(_0xd40f3b['throw'](_0xdc5003));}catch(_0x1c5cd3){_0x20ebe0(_0x1c5cd3);}}function _0x12a3ed(_0x23a0c4){_0x23a0c4['done']?_0x4ca739(_0x23a0c4['value']):_0x596bb2(_0x23a0c4['value'])['then'](_0x20ddde,_0x2fce85);}_0x12a3ed((_0xd40f3b=_0xd40f3b['apply'](_0x18548d,_0x4b3187||[]))['next']());});};class ApiKeyService{constructor(_0x5942e2){this['fetch']=_0x5942e2,this['path']='api-key';}['create'](_0x496dad,_0x2588f9,_0x2a7f91){return __awaiter$4(this,void 0,void 0,function*(){const _0x3338d9={'account_name':_0x496dad,'api_key_name':_0x2588f9};try{const _0x8c93ff=yield this['fetch']['post'](this['path'],_0x2a7f91,_0x3338d9);if(_0x8c93ff['status']>0xc7&&_0x8c93ff['status']<0x12c){const _0x3d7165=yield _0x8c93ff['json']();return new SuccessfulApiKeyResponse(_0x3d7165);}const _0x5d8cad=yield _0x8c93ff['json']();return new FailedApiKeyResponse(_0x5d8cad);}catch(_0x94ca3){if(_0x94ca3 instanceof Error)return new FailedApiKeyResponse({'detail':_0x94ca3['message'],'title':_0x94ca3['name'],'status':0x1f4,'instance':'','type':''});throw _0x94ca3;}});}['view'](_0x49b76f,_0x29d5f3,_0x2e1606){return __awaiter$4(this,void 0,void 0,function*(){const _0x246c88=this['path']+'/'+_0x49b76f+'/'+_0x29d5f3;try{const _0x571ff4=yield this['fetch']['get'](_0x246c88,_0x2e1606);if(_0x571ff4['status']>0xc7&&_0x571ff4['status']<0x12c){const _0x38112d=yield _0x571ff4['json']();return new SuccessfulApiKeyValueResponse(_0x38112d);}const _0x2e74d6=yield _0x571ff4['json']();return new FailedApiKeyValueResponse(_0x2e74d6);}catch(_0x5304c6){if(_0x5304c6 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x5304c6['message'],'title':_0x5304c6['name'],'status':0x1f4,'instance':'','type':''});throw _0x5304c6;}});}['delete'](_0xb43339,_0x3c6bc3,_0x4a7c12){return __awaiter$4(this,void 0,void 0,function*(){const _0x478512=this['path']+'/'+_0xb43339+'/'+_0x3c6bc3;try{const _0xc3a137=yield this['fetch']['delete'](_0x478512,_0x4a7c12);if(_0xc3a137['status']>0xc7&&_0xc3a137['status']<0x12c)return new SuccessfulResponse({});const _0x383cb4=yield _0xc3a137['json']();return new FailedResponse(_0x383cb4);}catch(_0x2033ab){if(_0x2033ab instanceof Error)return new FailedResponse({'detail':_0x2033ab['message'],'title':_0x2033ab['name'],'status':0x1f4,'instance':'','type':''});throw _0x2033ab;}});}}
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x407abe,_0x300d5d,_0x35f5a1,_0x29db79){function _0x568901(_0x197e2a){return _0x197e2a instanceof _0x35f5a1?_0x197e2a:new _0x35f5a1(function(_0x529207){_0x529207(_0x197e2a);});}return new(_0x35f5a1||(_0x35f5a1=Promise))(function(_0x1e852d,_0x1d6b07){function _0x7f05c2(_0x1b79e5){try{_0x40bf66(_0x29db79['next'](_0x1b79e5));}catch(_0x3af2f5){_0x1d6b07(_0x3af2f5);}}function _0x9a2a28(_0x582e48){try{_0x40bf66(_0x29db79['throw'](_0x582e48));}catch(_0x7f1695){_0x1d6b07(_0x7f1695);}}function _0x40bf66(_0x4c4c32){_0x4c4c32['done']?_0x1e852d(_0x4c4c32['value']):_0x568901(_0x4c4c32['value'])['then'](_0x7f05c2,_0x9a2a28);}_0x40bf66((_0x29db79=_0x29db79['apply'](_0x407abe,_0x300d5d||[]))['next']());});};class ApiKeyService{constructor(_0x1b42fb){this['fetch']=_0x1b42fb,this['path']='api-key';}['create'](_0x4082fc,_0x16f34f,_0x4fc36e){return __awaiter$4(this,void 0,void 0,function*(){const _0x148e89={'account_name':_0x4082fc,'api_key_name':_0x16f34f};try{const _0x1a7ae7=yield this['fetch']['post'](this['path'],_0x4fc36e,_0x148e89);if(_0x1a7ae7['status']>0xc7&&_0x1a7ae7['status']<0x12c){const _0x41cd08=yield _0x1a7ae7['json']();return new SuccessfulApiKeyResponse(_0x41cd08);}const _0x15bbe0=yield _0x1a7ae7['json']();return new FailedApiKeyResponse(_0x15bbe0);}catch(_0x2d0d18){if(_0x2d0d18 instanceof Error)return new FailedApiKeyResponse({'detail':_0x2d0d18['message'],'title':_0x2d0d18['name'],'status':0x1f4,'instance':'','type':''});throw _0x2d0d18;}});}['view'](_0x4d783d,_0x247613,_0x21991){return __awaiter$4(this,void 0,void 0,function*(){const _0x4b7280=this['path']+'/'+_0x4d783d+'/'+_0x247613;try{const _0x4f8d5e=yield this['fetch']['get'](_0x4b7280,_0x21991);if(_0x4f8d5e['status']>0xc7&&_0x4f8d5e['status']<0x12c){const _0x306ab1=yield _0x4f8d5e['json']();return new SuccessfulApiKeyValueResponse(_0x306ab1);}const _0x3ddd8d=yield _0x4f8d5e['json']();return new FailedApiKeyValueResponse(_0x3ddd8d);}catch(_0x35bd5c){if(_0x35bd5c instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x35bd5c['message'],'title':_0x35bd5c['name'],'status':0x1f4,'instance':'','type':''});throw _0x35bd5c;}});}['delete'](_0x9579cc,_0x215b2d,_0x4febf8){return __awaiter$4(this,void 0,void 0,function*(){const _0x5f001e=this['path']+'/'+_0x9579cc+'/'+_0x215b2d;try{const _0x1d030f=yield this['fetch']['delete'](_0x5f001e,_0x4febf8);if(_0x1d030f['status']>0xc7&&_0x1d030f['status']<0x12c)return new SuccessfulResponse({});const _0x2bc008=yield _0x1d030f['json']();return new FailedResponse(_0x2bc008);}catch(_0xd7bfda){if(_0xd7bfda instanceof Error)return new FailedResponse({'detail':_0xd7bfda['message'],'title':_0xd7bfda['name'],'status':0x1f4,'instance':'','type':''});throw _0xd7bfda;}});}}
8
8
 
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x450f8f,_0x4eb377,_0x2c09b3,_0xfe3e82){function _0x34cac4(_0x32c8d6){return _0x32c8d6 instanceof _0x2c09b3?_0x32c8d6:new _0x2c09b3(function(_0x4570d1){_0x4570d1(_0x32c8d6);});}return new(_0x2c09b3||(_0x2c09b3=Promise))(function(_0x4d52d9,_0x52d5ac){function _0x279362(_0x2d9f71){try{_0x1ad413(_0xfe3e82['next'](_0x2d9f71));}catch(_0xd39539){_0x52d5ac(_0xd39539);}}function _0x5a1719(_0x2c5552){try{_0x1ad413(_0xfe3e82['throw'](_0x2c5552));}catch(_0x4d38d1){_0x52d5ac(_0x4d38d1);}}function _0x1ad413(_0x23e990){_0x23e990['done']?_0x4d52d9(_0x23e990['value']):_0x34cac4(_0x23e990['value'])['then'](_0x279362,_0x5a1719);}_0x1ad413((_0xfe3e82=_0xfe3e82['apply'](_0x450f8f,_0x4eb377||[]))['next']());});};class ListService{constructor(_0x29881e){this['fetch']=_0x29881e;}['add'](_0x145019,_0x158fbd,_0x265d50,_0x5219e3){return __awaiter$3(this,void 0,void 0,function*(){const _0x2e5cad='List',_0x27c6ad={'account_name':_0x145019,'list_name':_0x158fbd,'search_service_name':_0x265d50};try{const _0x18ded7=yield this['fetch']['post'](_0x2e5cad,_0x5219e3,_0x27c6ad);if(_0x18ded7['status']>0xc7&&_0x18ded7['status']<0x12c){const _0x42fcd9=yield _0x18ded7['json']();return new SuccessfulListIdentityResponse(_0x42fcd9);}const _0xd04a2e=yield _0x18ded7['json']();return new FailedListIdentityResponse(_0xd04a2e);}catch(_0x1e93f1){if(_0x1e93f1 instanceof Error)return new FailedListIdentityResponse({'detail':_0x1e93f1['message'],'title':_0x1e93f1['name'],'status':0x1f4,'instance':'','type':''});throw _0x1e93f1;}});}['delete'](_0x3aebdf,_0x5b5d5c,_0x36fed7){return __awaiter$3(this,void 0,void 0,function*(){const _0x4916d8='List/'+_0x3aebdf+'/'+_0x5b5d5c,_0xfb15a1=yield this['fetch']['delete'](_0x4916d8,_0x36fed7);try{if(_0xfb15a1['status']>0xc7&&_0xfb15a1['status']<0x12c)return new SuccessfulResponse({});const _0x6f788a=yield _0xfb15a1['json']();return new FailedResponse(_0x6f788a);}catch(_0x4abbc0){if(_0x4abbc0 instanceof Error)return new FailedResponse({'detail':_0x4abbc0['message'],'title':_0x4abbc0['name'],'status':0x1f4,'instance':'','type':''});throw _0x4abbc0;}});}}
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x3899c3,_0x2e1f4f,_0x58066b,_0x17aab0){function _0x26d387(_0x4a8626){return _0x4a8626 instanceof _0x58066b?_0x4a8626:new _0x58066b(function(_0x9024bb){_0x9024bb(_0x4a8626);});}return new(_0x58066b||(_0x58066b=Promise))(function(_0x4e428b,_0x9118e2){function _0x5b110c(_0x28842b){try{_0x46b60d(_0x17aab0['next'](_0x28842b));}catch(_0x689ef5){_0x9118e2(_0x689ef5);}}function _0x37a3fb(_0x313af1){try{_0x46b60d(_0x17aab0['throw'](_0x313af1));}catch(_0xe438){_0x9118e2(_0xe438);}}function _0x46b60d(_0x49a961){_0x49a961['done']?_0x4e428b(_0x49a961['value']):_0x26d387(_0x49a961['value'])['then'](_0x5b110c,_0x37a3fb);}_0x46b60d((_0x17aab0=_0x17aab0['apply'](_0x3899c3,_0x2e1f4f||[]))['next']());});};class ListService{constructor(_0x384638){this['fetch']=_0x384638;}['add'](_0x4ed590,_0x1a6dcd,_0x1641d2,_0x524014){return __awaiter$3(this,void 0,void 0,function*(){const _0x49f529='List',_0x3c95e2={'account_name':_0x4ed590,'list_name':_0x1a6dcd,'search_service_name':_0x1641d2};try{const _0x398804=yield this['fetch']['post'](_0x49f529,_0x524014,_0x3c95e2);if(_0x398804['status']>0xc7&&_0x398804['status']<0x12c){const _0x2737c6=yield _0x398804['json']();return new SuccessfulListIdentityResponse(_0x2737c6);}const _0x2fa79c=yield _0x398804['json']();return new FailedListIdentityResponse(_0x2fa79c);}catch(_0x54628f){if(_0x54628f instanceof Error)return new FailedListIdentityResponse({'detail':_0x54628f['message'],'title':_0x54628f['name'],'status':0x1f4,'instance':'','type':''});throw _0x54628f;}});}['delete'](_0x2d030f,_0x3c3533,_0x12bbcb){return __awaiter$3(this,void 0,void 0,function*(){const _0x459da4='List/'+_0x2d030f+'/'+_0x3c3533,_0x144d5f=yield this['fetch']['delete'](_0x459da4,_0x12bbcb);try{if(_0x144d5f['status']>0xc7&&_0x144d5f['status']<0x12c)return new SuccessfulResponse({});const _0x1e3ff6=yield _0x144d5f['json']();return new FailedResponse(_0x1e3ff6);}catch(_0x459eeb){if(_0x459eeb instanceof Error)return new FailedResponse({'detail':_0x459eeb['message'],'title':_0x459eeb['name'],'status':0x1f4,'instance':'','type':''});throw _0x459eeb;}});}}
10
10
 
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x622449,_0x4a73bb,_0x39a9de,_0x2bd08c){function _0x3b89c4(_0x55a223){return _0x55a223 instanceof _0x39a9de?_0x55a223:new _0x39a9de(function(_0x41197e){_0x41197e(_0x55a223);});}return new(_0x39a9de||(_0x39a9de=Promise))(function(_0x5947e3,_0x2da1df){function _0x660f08(_0x4a5bc4){try{_0x4331ca(_0x2bd08c['next'](_0x4a5bc4));}catch(_0x967897){_0x2da1df(_0x967897);}}function _0x1390d2(_0x2e872b){try{_0x4331ca(_0x2bd08c['throw'](_0x2e872b));}catch(_0x11c197){_0x2da1df(_0x11c197);}}function _0x4331ca(_0x8f9c51){_0x8f9c51['done']?_0x5947e3(_0x8f9c51['value']):_0x3b89c4(_0x8f9c51['value'])['then'](_0x660f08,_0x1390d2);}_0x4331ca((_0x2bd08c=_0x2bd08c['apply'](_0x622449,_0x4a73bb||[]))['next']());});};class Fetch{constructor(_0x5b9d37){this['baseUri']=_0x5b9d37,this['getUrl']=_0x27f7ce=>{return _0x27f7ce['startsWith']('/')&&(_0x27f7ce=_0x27f7ce['replace']('/','')),''+this['baseUri']+_0x27f7ce;},!_0x5b9d37['endsWith']('/')&&(_0x5b9d37=_0x5b9d37+'/');}['get'](_0x373c1d,_0x21220a){return __awaiter$2(this,void 0,void 0,function*(){const _0x3a8477=this['getUrl'](_0x373c1d);return yield fetch(_0x3a8477,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x21220a}});});}['post'](_0x2b9c0c,_0x404002,_0x3025a9){return __awaiter$2(this,void 0,void 0,function*(){const _0xe7ae57=this['getUrl'](_0x2b9c0c);return yield fetch(_0xe7ae57,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x404002},'body':_0x3025a9?JSON['stringify'](_0x3025a9):null});});}['PostNoAuth'](_0x4e02b9,_0x1af18f){return __awaiter$2(this,void 0,void 0,function*(){const _0xd16b8d=this['getUrl'](_0x4e02b9);return yield fetch(_0xd16b8d,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x1af18f?JSON['stringify'](_0x1af18f):null});});}['put'](_0x4fe987,_0x12c51f,_0x1ed980){return __awaiter$2(this,void 0,void 0,function*(){const _0x365c00=this['getUrl'](_0x4fe987);return yield fetch(_0x365c00,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x12c51f},'body':_0x1ed980?JSON['stringify'](_0x1ed980):null});});}['delete'](_0x1627a4,_0x36d6cd){return __awaiter$2(this,void 0,void 0,function*(){const _0x27e2e9=this['getUrl'](_0x1627a4);return yield fetch(_0x27e2e9,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x36d6cd}});});}}
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x5a1f14,_0x29599b,_0x3b7b65,_0x2e1d62){function _0x4fae3d(_0x2376e6){return _0x2376e6 instanceof _0x3b7b65?_0x2376e6:new _0x3b7b65(function(_0xd22dd6){_0xd22dd6(_0x2376e6);});}return new(_0x3b7b65||(_0x3b7b65=Promise))(function(_0x1a7743,_0x4fd681){function _0x408cf2(_0xbb6357){try{_0x20b3e8(_0x2e1d62['next'](_0xbb6357));}catch(_0x14b0dc){_0x4fd681(_0x14b0dc);}}function _0x3cf698(_0x4f0228){try{_0x20b3e8(_0x2e1d62['throw'](_0x4f0228));}catch(_0x1f82ec){_0x4fd681(_0x1f82ec);}}function _0x20b3e8(_0x30987d){_0x30987d['done']?_0x1a7743(_0x30987d['value']):_0x4fae3d(_0x30987d['value'])['then'](_0x408cf2,_0x3cf698);}_0x20b3e8((_0x2e1d62=_0x2e1d62['apply'](_0x5a1f14,_0x29599b||[]))['next']());});};class Fetch{constructor(_0x5804a4){this['baseUri']=_0x5804a4,this['getUrl']=_0x289a72=>{return _0x289a72['startsWith']('/')&&(_0x289a72=_0x289a72['replace']('/','')),''+this['baseUri']+_0x289a72;},!_0x5804a4['endsWith']('/')&&(_0x5804a4=_0x5804a4+'/');}['get'](_0x30f839,_0x13eaf3){return __awaiter$2(this,void 0,void 0,function*(){const _0x16ce89=this['getUrl'](_0x30f839);return yield fetch(_0x16ce89,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x13eaf3}});});}['post'](_0x36ac3e,_0xf1c163,_0x2a9f31){return __awaiter$2(this,void 0,void 0,function*(){const _0x561c33=this['getUrl'](_0x36ac3e);return yield fetch(_0x561c33,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xf1c163},'body':_0x2a9f31?JSON['stringify'](_0x2a9f31):null});});}['PostNoAuth'](_0x3028a2,_0x437213){return __awaiter$2(this,void 0,void 0,function*(){const _0x4fbcb7=this['getUrl'](_0x3028a2);return yield fetch(_0x4fbcb7,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x437213?JSON['stringify'](_0x437213):null});});}['put'](_0x5944bc,_0x4e7632,_0x4ea562){return __awaiter$2(this,void 0,void 0,function*(){const _0x36a742=this['getUrl'](_0x5944bc);return yield fetch(_0x36a742,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4e7632},'body':_0x4ea562?JSON['stringify'](_0x4ea562):null});});}['delete'](_0x3655f5,_0x2bd898){return __awaiter$2(this,void 0,void 0,function*(){const _0x319eb2=this['getUrl'](_0x3655f5);return yield fetch(_0x319eb2,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2bd898}});});}}
12
12
 
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x1d1854,_0x3661ab,_0x4205ad,_0x5b529f){function _0x3e9800(_0x12446e){return _0x12446e instanceof _0x4205ad?_0x12446e:new _0x4205ad(function(_0x5b02a9){_0x5b02a9(_0x12446e);});}return new(_0x4205ad||(_0x4205ad=Promise))(function(_0x32c08e,_0x541b39){function _0x46d0f2(_0x5dde10){try{_0x29f827(_0x5b529f['next'](_0x5dde10));}catch(_0x1d13b8){_0x541b39(_0x1d13b8);}}function _0x559b72(_0x209697){try{_0x29f827(_0x5b529f['throw'](_0x209697));}catch(_0x502ea5){_0x541b39(_0x502ea5);}}function _0x29f827(_0x16c05a){_0x16c05a['done']?_0x32c08e(_0x16c05a['value']):_0x3e9800(_0x16c05a['value'])['then'](_0x46d0f2,_0x559b72);}_0x29f827((_0x5b529f=_0x5b529f['apply'](_0x1d1854,_0x3661ab||[]))['next']());});};class SearchServersService{constructor(_0x3b830f){this['fetch']=_0x3b830f,this['path']='search-services';}['create'](_0x53f5a8,_0x45b6d4,_0x48439a,_0x12724c,_0x1e1e10,_0x41a52d,_0x307612,_0x211fee){return __awaiter$1(this,void 0,void 0,function*(){const _0x187e6a={'account_name':_0x53f5a8,'search_service_name':_0x45b6d4,'endpoint':_0x48439a,'key':_0x12724c,'country':_0x1e1e10,'provider':_0x41a52d,'index_name':_0x307612};try{const _0x3c1a66=yield this['fetch']['post'](this['path'],_0x211fee,_0x187e6a);if(_0x3c1a66['status']>0xc7&&_0x3c1a66['status']<0x12c){const _0x519a7a=yield _0x3c1a66['json']();return new SuccessfulSearchServiceResponse(_0x519a7a);}const _0x4d1f6f=yield _0x3c1a66['json']();return new FailedSearchServiceResponse(_0x4d1f6f);}catch(_0x5f5d8f){if(_0x5f5d8f instanceof Error)return new FailedSearchServiceResponse({'detail':_0x5f5d8f['message'],'title':_0x5f5d8f['name'],'status':0x1f4,'instance':'','type':''});throw _0x5f5d8f;}});}['delete'](_0x3594b4,_0x283f9b,_0x1ada53){return __awaiter$1(this,void 0,void 0,function*(){const _0x167272=this['path']+'/'+_0x3594b4+'/'+_0x283f9b;try{const _0x304215=yield this['fetch']['delete'](_0x167272,_0x1ada53);if(_0x304215['status']>0xc7&&_0x304215['status']<0x12c)return new SuccessfulResponse({});const _0x10118f=yield _0x304215['json']();return new FailedResponse(_0x10118f);}catch(_0x37b68f){if(_0x37b68f instanceof Error)return new FailedResponse({'detail':_0x37b68f['message'],'title':_0x37b68f['name'],'status':0x1f4,'instance':'','type':''});throw _0x37b68f;}});}['view'](_0xadfe74,_0x51d5c4,_0x5a1559){return __awaiter$1(this,void 0,void 0,function*(){const _0x46937b=this['path']+'/'+_0xadfe74+'/'+_0x51d5c4;try{const _0x1d6956=yield this['fetch']['get'](_0x46937b,_0x5a1559);if(_0x1d6956['status']>0xc7&&_0x1d6956['status']<0x12c){const _0x318fea=yield _0x1d6956['json']();return new SuccessfulViewSearchServiceResponse(_0x318fea);}const _0x3bc94f=yield _0x1d6956['json']();return new FailedViewSearchServiceResponse(_0x3bc94f);}catch(_0x38e2f1){if(_0x38e2f1 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x38e2f1['message'],'title':_0x38e2f1['name'],'status':0x1f4,'instance':'','type':''});throw _0x38e2f1;}});}['edit'](_0x2cc2f0,_0x4c071d,_0x45d11a,_0x2e5f27,_0x8d30a4,_0x5bfff8){return __awaiter$1(this,void 0,void 0,function*(){const _0x423d2e={'account_name':_0x2cc2f0,'search_service_name':_0x4c071d,'new_search_service_name':_0x45d11a,'key':_0x2e5f27,'country':_0x8d30a4};try{const _0x5db4f0=yield this['fetch']['put'](this['path'],_0x5bfff8,_0x423d2e);if(_0x5db4f0['status']>0xc7&&_0x5db4f0['status']<0x12c){const _0x1056f9=yield _0x5db4f0['json']();return new SuccessfulSearchServiceResponse(_0x1056f9);}const _0x1d10a1=yield _0x5db4f0['json']();return new FailedSearchServiceResponse(_0x1d10a1);}catch(_0xee1155){if(_0xee1155 instanceof Error)return new FailedSearchServiceResponse({'detail':_0xee1155['message'],'title':_0xee1155['name'],'status':0x1f4,'instance':'','type':''});throw _0xee1155;}});}['list'](_0xfc06df,_0x12cb48){return __awaiter$1(this,void 0,void 0,function*(){const _0x407cd6=this['path']+'/'+_0xfc06df;try{const _0x49ee34=yield this['fetch']['get'](_0x407cd6,_0x12cb48);if(_0x49ee34['status']>0xc7&&_0x49ee34['status']<0x12c){const _0x23c5d0=yield _0x49ee34['json']();return new SuccessfulListSearchServiceResponse(_0x23c5d0);}const _0x154c2e=yield _0x49ee34['json']();return new FailedViewSearchServicesResponse(_0x154c2e);}catch(_0x5aacd4){if(_0x5aacd4 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x5aacd4['message'],'title':_0x5aacd4['name'],'status':0x1f4,'instance':'','type':''});throw _0x5aacd4;}});}}
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x856241,_0x1d6191,_0x593b3e,_0x201c67){function _0x1c49f4(_0x158e71){return _0x158e71 instanceof _0x593b3e?_0x158e71:new _0x593b3e(function(_0x2fb1ea){_0x2fb1ea(_0x158e71);});}return new(_0x593b3e||(_0x593b3e=Promise))(function(_0x225284,_0x14d7de){function _0x155d76(_0x16d257){try{_0x324a77(_0x201c67['next'](_0x16d257));}catch(_0x590ddd){_0x14d7de(_0x590ddd);}}function _0x4dfda9(_0x3d0648){try{_0x324a77(_0x201c67['throw'](_0x3d0648));}catch(_0x30d7d6){_0x14d7de(_0x30d7d6);}}function _0x324a77(_0x30ea4a){_0x30ea4a['done']?_0x225284(_0x30ea4a['value']):_0x1c49f4(_0x30ea4a['value'])['then'](_0x155d76,_0x4dfda9);}_0x324a77((_0x201c67=_0x201c67['apply'](_0x856241,_0x1d6191||[]))['next']());});};class SearchServersService{constructor(_0x26d5da){this['fetch']=_0x26d5da,this['path']='search-services';}['create'](_0x2655ef,_0x19dcc5,_0x18789d,_0x2d254b,_0x57168b,_0x5792c7,_0x3950b9,_0xfc1161){return __awaiter$1(this,void 0,void 0,function*(){const _0x295985={'account_name':_0x2655ef,'search_service_name':_0x19dcc5,'endpoint':_0x18789d,'key':_0x2d254b,'country':_0x57168b,'provider':_0x5792c7,'index_name':_0x3950b9};try{const _0x5d21d6=yield this['fetch']['post'](this['path'],_0xfc1161,_0x295985);if(_0x5d21d6['status']>0xc7&&_0x5d21d6['status']<0x12c){const _0x26eb43=yield _0x5d21d6['json']();return new SuccessfulSearchServiceResponse(_0x26eb43);}const _0x47aa8f=yield _0x5d21d6['json']();return new FailedSearchServiceResponse(_0x47aa8f);}catch(_0x5dd800){if(_0x5dd800 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x5dd800['message'],'title':_0x5dd800['name'],'status':0x1f4,'instance':'','type':''});throw _0x5dd800;}});}['delete'](_0x257fb9,_0x19f011,_0x52ca94){return __awaiter$1(this,void 0,void 0,function*(){const _0x12ca21=this['path']+'/'+_0x257fb9+'/'+_0x19f011;try{const _0x2a0242=yield this['fetch']['delete'](_0x12ca21,_0x52ca94);if(_0x2a0242['status']>0xc7&&_0x2a0242['status']<0x12c)return new SuccessfulResponse({});const _0x1e40d4=yield _0x2a0242['json']();return new FailedResponse(_0x1e40d4);}catch(_0x191b13){if(_0x191b13 instanceof Error)return new FailedResponse({'detail':_0x191b13['message'],'title':_0x191b13['name'],'status':0x1f4,'instance':'','type':''});throw _0x191b13;}});}['view'](_0x17bd15,_0x514a27,_0x41fbda){return __awaiter$1(this,void 0,void 0,function*(){const _0x58bde0=this['path']+'/'+_0x17bd15+'/'+_0x514a27;try{const _0x4eb539=yield this['fetch']['get'](_0x58bde0,_0x41fbda);if(_0x4eb539['status']>0xc7&&_0x4eb539['status']<0x12c){const _0x144269=yield _0x4eb539['json']();return new SuccessfulViewSearchServiceResponse(_0x144269);}const _0x4598aa=yield _0x4eb539['json']();return new FailedViewSearchServiceResponse(_0x4598aa);}catch(_0x4f553b){if(_0x4f553b instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x4f553b['message'],'title':_0x4f553b['name'],'status':0x1f4,'instance':'','type':''});throw _0x4f553b;}});}['edit'](_0x22fe52,_0x50de67,_0x38a65a,_0x23686b,_0x3213b0,_0x267910){return __awaiter$1(this,void 0,void 0,function*(){const _0x511ad6={'account_name':_0x22fe52,'search_service_name':_0x50de67,'new_search_service_name':_0x38a65a,'key':_0x23686b,'country':_0x3213b0};try{const _0x175009=yield this['fetch']['put'](this['path'],_0x267910,_0x511ad6);if(_0x175009['status']>0xc7&&_0x175009['status']<0x12c){const _0x59ba3e=yield _0x175009['json']();return new SuccessfulSearchServiceResponse(_0x59ba3e);}const _0x1a01c6=yield _0x175009['json']();return new FailedSearchServiceResponse(_0x1a01c6);}catch(_0x28e5bc){if(_0x28e5bc instanceof Error)return new FailedSearchServiceResponse({'detail':_0x28e5bc['message'],'title':_0x28e5bc['name'],'status':0x1f4,'instance':'','type':''});throw _0x28e5bc;}});}['list'](_0x5ee896,_0x6f8fb8){return __awaiter$1(this,void 0,void 0,function*(){const _0xb0c93d=this['path']+'/'+_0x5ee896;try{const _0x50b0b8=yield this['fetch']['get'](_0xb0c93d,_0x6f8fb8);if(_0x50b0b8['status']>0xc7&&_0x50b0b8['status']<0x12c){const _0x41eeb9=yield _0x50b0b8['json']();return new SuccessfulListSearchServiceResponse(_0x41eeb9);}const _0x3cb226=yield _0x50b0b8['json']();return new FailedViewSearchServicesResponse(_0x3cb226);}catch(_0x22d980){if(_0x22d980 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x22d980['message'],'title':_0x22d980['name'],'status':0x1f4,'instance':'','type':''});throw _0x22d980;}});}}
14
14
 
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x2c083f,_0x2317ef,_0x1b64f0,_0x4a41a7){function _0x40cc59(_0x5dccd7){return _0x5dccd7 instanceof _0x1b64f0?_0x5dccd7:new _0x1b64f0(function(_0x466a9e){_0x466a9e(_0x5dccd7);});}return new(_0x1b64f0||(_0x1b64f0=Promise))(function(_0x3f259e,_0x4fd307){function _0x56c070(_0x39df6c){try{_0x33c3ea(_0x4a41a7['next'](_0x39df6c));}catch(_0x3e9eee){_0x4fd307(_0x3e9eee);}}function _0x47a0ea(_0x57c8d3){try{_0x33c3ea(_0x4a41a7['throw'](_0x57c8d3));}catch(_0x4887ae){_0x4fd307(_0x4887ae);}}function _0x33c3ea(_0x203668){_0x203668['done']?_0x3f259e(_0x203668['value']):_0x40cc59(_0x203668['value'])['then'](_0x56c070,_0x47a0ea);}_0x33c3ea((_0x4a41a7=_0x4a41a7['apply'](_0x2c083f,_0x2317ef||[]))['next']());});};class AdminClient{constructor(_0x399904='https://admin.searchability.dev/'){var _0x367823=new Fetch(_0x399904);this['Accounts']=new AccountService(_0x367823),this['Lists']=new ListService(_0x367823),this['ApiKeys']=new ApiKeyService(_0x367823),this['SearchServices']=new SearchServersService(_0x367823);}}class AuthClient{constructor(_0x1d9852='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x1d9852);}['login'](_0x1cee52){return __awaiter(this,void 0,void 0,function*(){const _0x2ec531='login/'+_0x1cee52;try{const _0x97306a=yield yield fetch(_0x2ec531);if(_0x97306a['status']>0xc7&&_0x97306a['status']<0x12c){const _0x1c0350=yield _0x97306a['json']();return new SuccessfulAuthResponse(_0x1c0350);}const _0x2c3fef=yield _0x97306a['json']();return new FailedAuthResponse(_0x2c3fef);}catch(_0x596443){if(_0x596443 instanceof Error)return new FailedAuthResponse({'detail':_0x596443['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x596443;}});}['refresh'](_0xc947c0){return __awaiter(this,void 0,void 0,function*(){const _0x320ea2='refresh',_0x1d9fc7={'refresh_token':_0xc947c0};try{const _0xedc8b3=yield this['fetch']['PostNoAuth'](_0x320ea2,_0x1d9fc7);if(_0xedc8b3['status']>0xc7&&_0xedc8b3['status']<0x12c){const _0x453dcb=yield _0xedc8b3['json']();return new SuccessfulAuthResponse(_0x453dcb);}const _0x1388bb=yield _0xedc8b3['json']();return new FailedAuthResponse(_0x1388bb);}catch(_0x5f5134){if(_0x5f5134 instanceof Error)return new FailedAuthResponse({'detail':_0x5f5134['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5f5134;}});}['getTokenStatus'](_0x2adb13){if(Date['now']()<_0x2adb13['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x2adb13['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x3b447d,_0x4a07c9,_0x2fada3,_0x263ef1){function _0x3bca5f(_0x28889a){return _0x28889a instanceof _0x2fada3?_0x28889a:new _0x2fada3(function(_0x41d457){_0x41d457(_0x28889a);});}return new(_0x2fada3||(_0x2fada3=Promise))(function(_0x22c01c,_0x1844f1){function _0x5e6bdf(_0x4bc9f2){try{_0x4fae2a(_0x263ef1['next'](_0x4bc9f2));}catch(_0x5dbee8){_0x1844f1(_0x5dbee8);}}function _0x2a9685(_0x2e9e10){try{_0x4fae2a(_0x263ef1['throw'](_0x2e9e10));}catch(_0x5a75a4){_0x1844f1(_0x5a75a4);}}function _0x4fae2a(_0x3f1279){_0x3f1279['done']?_0x22c01c(_0x3f1279['value']):_0x3bca5f(_0x3f1279['value'])['then'](_0x5e6bdf,_0x2a9685);}_0x4fae2a((_0x263ef1=_0x263ef1['apply'](_0x3b447d,_0x4a07c9||[]))['next']());});};class AdminClient{constructor(_0x40364d='https://admin.searchability.dev/'){var _0x40e2d2=new Fetch(_0x40364d);this['Accounts']=new AccountService(_0x40e2d2),this['Lists']=new ListService(_0x40e2d2),this['ApiKeys']=new ApiKeyService(_0x40e2d2),this['SearchServices']=new SearchServersService(_0x40e2d2);}}class AuthClient{constructor(_0x36f390='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x36f390);}['login'](_0x501f8a){return __awaiter(this,void 0,void 0,function*(){const _0x49eb1e='login/'+_0x501f8a;try{const _0x575fd4=yield yield fetch(_0x49eb1e);if(_0x575fd4['status']>0xc7&&_0x575fd4['status']<0x12c){const _0x38848c=yield _0x575fd4['json']();return new SuccessfulAuthResponse(_0x38848c);}const _0x547b7a=yield _0x575fd4['json']();return new FailedAuthResponse(_0x547b7a);}catch(_0x5ed2d6){if(_0x5ed2d6 instanceof Error)return new FailedAuthResponse({'detail':_0x5ed2d6['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5ed2d6;}});}['refresh'](_0x37d6e0){return __awaiter(this,void 0,void 0,function*(){const _0x5d5e1a='refresh',_0x1fb9c9={'refresh_token':_0x37d6e0};try{const _0x2d6824=yield this['fetch']['PostNoAuth'](_0x5d5e1a,_0x1fb9c9);if(_0x2d6824['status']>0xc7&&_0x2d6824['status']<0x12c){const _0x3ca147=yield _0x2d6824['json']();return new SuccessfulAuthResponse(_0x3ca147);}const _0x1a059b=yield _0x2d6824['json']();return new FailedAuthResponse(_0x1a059b);}catch(_0x2c6c3e){if(_0x2c6c3e instanceof Error)return new FailedAuthResponse({'detail':_0x2c6c3e['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2c6c3e;}});}['getTokenStatus'](_0x13f11b){if(Date['now']()<_0x13f11b['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x13f11b['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(_0x1de3d2){_0x1de3d2[_0x1de3d2['Ok']=0x0]='Ok',_0x1de3d2[_0x1de3d2['Refresh']=0x1]='Refresh',_0x1de3d2[_0x1de3d2['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(_0x53270b){this['isSuccess']=_0x53270b;}}class SuccessfulAccountResponse extends Response{constructor(_0x3bac96){super(!![]),this['account']=_0x3bac96;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x1524d2){super(!![]),this['list']=_0x1524d2;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x3f5569){super(![]),this['problem']=_0x3f5569;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x3db51c){super(![]),this['problem']=_0x3db51c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x1e572b){super(!![]),this['tokens']=_0x1e572b;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x2237b1){super(![]),this['problem']=_0x2237b1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x260a6f){super(!![]),this['apiKey']=_0x260a6f;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0xc55016){super(![]),this['problem']=_0xc55016;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x32c1b2){super(!![]),this['searchService']=_0x32c1b2;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x5dc5a9){super(![]),this['problem']=_0x5dc5a9;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x97277c){super(!![]),this['searchService']=_0x97277c;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x235879){super(!![]),this['searchServices']=_0x235879;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x111251){super(![]),this['problem']=_0x111251;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x219ebe){super(![]),this['problem']=_0x219ebe;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x214bcf){super(!![]),this['apiKeyValue']=_0x214bcf;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x545356){super(!![]),this['obj']=_0x545356;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x5e189b){super(![]),this['problem']=_0x5e189b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x16029b){super(![]),this['problem']=_0x16029b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
1
+ var TokenStatus;(function(_0x2c44d6){_0x2c44d6[_0x2c44d6['Ok']=0x0]='Ok',_0x2c44d6[_0x2c44d6['Refresh']=0x1]='Refresh',_0x2c44d6[_0x2c44d6['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(_0x174783){this['isSuccess']=_0x174783;}}class SuccessfulAccountResponse extends Response{constructor(_0x491436){super(!![]),this['account']=_0x491436;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x1c3031){super(!![]),this['list']=_0x1c3031;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x41aed2){super(![]),this['problem']=_0x41aed2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x5a660b){super(![]),this['problem']=_0x5a660b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x28c1aa){super(!![]),this['tokens']=_0x28c1aa;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x2b62e4){super(![]),this['problem']=_0x2b62e4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x11b977){super(!![]),this['apiKey']=_0x11b977;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x225fa8){super(![]),this['problem']=_0x225fa8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x37167a){super(!![]),this['searchService']=_0x37167a;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x100b23){super(![]),this['problem']=_0x100b23;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0xb014d4){super(!![]),this['searchService']=_0xb014d4;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x49c26d){super(!![]),this['searchServices']=_0x49c26d;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x25be0d){super(![]),this['problem']=_0x25be0d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x367514){super(![]),this['problem']=_0x367514;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x202d49){super(!![]),this['apiKeyValue']=_0x202d49;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x17eb4d){super(!![]),this['obj']=_0x17eb4d;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0xafb6d3){super(![]),this['problem']=_0xafb6d3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x19a53e){super(![]),this['problem']=_0x19a53e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
2
 
3
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x4f692a,_0x3bc1d2,_0xc66ce3,_0x5951ae){function _0x450163(_0x1153f2){return _0x1153f2 instanceof _0xc66ce3?_0x1153f2:new _0xc66ce3(function(_0x437b5f){_0x437b5f(_0x1153f2);});}return new(_0xc66ce3||(_0xc66ce3=Promise))(function(_0x16e6bb,_0x30f347){function _0x4a627b(_0x54ead3){try{_0x257d9a(_0x5951ae['next'](_0x54ead3));}catch(_0x3d7c41){_0x30f347(_0x3d7c41);}}function _0x67cb2d(_0x1071a1){try{_0x257d9a(_0x5951ae['throw'](_0x1071a1));}catch(_0x2ee60f){_0x30f347(_0x2ee60f);}}function _0x257d9a(_0x2eb3bf){_0x2eb3bf['done']?_0x16e6bb(_0x2eb3bf['value']):_0x450163(_0x2eb3bf['value'])['then'](_0x4a627b,_0x67cb2d);}_0x257d9a((_0x5951ae=_0x5951ae['apply'](_0x4f692a,_0x3bc1d2||[]))['next']());});};class AccountService{constructor(_0x1ceeca){this['fetch']=_0x1ceeca;}['get'](_0x526264,_0x2762ee){return __awaiter$5(this,void 0,void 0,function*(){const _0x1387bf='Account/'+_0x526264+'/',_0x35bfdc=yield this['fetch']['get'](_0x1387bf,_0x2762ee);try{if(_0x35bfdc['status']>0xc7&&_0x35bfdc['status']<0x12c){const _0x2b4fbd=yield _0x35bfdc['json']();return new SuccessfulAccountResponse(_0x2b4fbd);}const _0x56594b=yield _0x35bfdc['json']();return new FailedAccountResponse(_0x56594b);}catch(_0x97df9c){if(_0x97df9c instanceof Error)return new FailedAccountResponse({'detail':_0x97df9c['message'],'title':_0x97df9c['name'],'status':0x1f4,'instance':'','type':''});throw _0x97df9c;}});}}
3
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x35f880,_0x2b7ac6,_0x412686,_0x399f62){function _0x398bf7(_0x803bf5){return _0x803bf5 instanceof _0x412686?_0x803bf5:new _0x412686(function(_0x16bd5f){_0x16bd5f(_0x803bf5);});}return new(_0x412686||(_0x412686=Promise))(function(_0x291275,_0x3f0298){function _0x56e2bb(_0x1bf412){try{_0x14e948(_0x399f62['next'](_0x1bf412));}catch(_0x25dc13){_0x3f0298(_0x25dc13);}}function _0x2d402e(_0x3a06e9){try{_0x14e948(_0x399f62['throw'](_0x3a06e9));}catch(_0x121bcb){_0x3f0298(_0x121bcb);}}function _0x14e948(_0x459440){_0x459440['done']?_0x291275(_0x459440['value']):_0x398bf7(_0x459440['value'])['then'](_0x56e2bb,_0x2d402e);}_0x14e948((_0x399f62=_0x399f62['apply'](_0x35f880,_0x2b7ac6||[]))['next']());});};class AccountService{constructor(_0x295a65){this['fetch']=_0x295a65;}['get'](_0x1ee0fb,_0x368afb){return __awaiter$5(this,void 0,void 0,function*(){const _0x4a1dd='Account/'+_0x1ee0fb+'/',_0x5eea39=yield this['fetch']['get'](_0x4a1dd,_0x368afb);try{if(_0x5eea39['status']>0xc7&&_0x5eea39['status']<0x12c){const _0x486839=yield _0x5eea39['json']();return new SuccessfulAccountResponse(_0x486839);}const _0x1923fd=yield _0x5eea39['json']();return new FailedAccountResponse(_0x1923fd);}catch(_0x151bd7){if(_0x151bd7 instanceof Error)return new FailedAccountResponse({'detail':_0x151bd7['message'],'title':_0x151bd7['name'],'status':0x1f4,'instance':'','type':''});throw _0x151bd7;}});}}
4
4
 
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0xa2b1f4,_0x1970ea,_0xcd77dc,_0x23e757){function _0x15b396(_0x4ffcde){return _0x4ffcde instanceof _0xcd77dc?_0x4ffcde:new _0xcd77dc(function(_0x265934){_0x265934(_0x4ffcde);});}return new(_0xcd77dc||(_0xcd77dc=Promise))(function(_0x5915aa,_0xc4003c){function _0x42ba91(_0x1a622){try{_0x3d80d9(_0x23e757['next'](_0x1a622));}catch(_0x1b97f3){_0xc4003c(_0x1b97f3);}}function _0x1c1240(_0x5630cd){try{_0x3d80d9(_0x23e757['throw'](_0x5630cd));}catch(_0x525acc){_0xc4003c(_0x525acc);}}function _0x3d80d9(_0x558021){_0x558021['done']?_0x5915aa(_0x558021['value']):_0x15b396(_0x558021['value'])['then'](_0x42ba91,_0x1c1240);}_0x3d80d9((_0x23e757=_0x23e757['apply'](_0xa2b1f4,_0x1970ea||[]))['next']());});};class ApiKeyService{constructor(_0x4e8a25){this['fetch']=_0x4e8a25,this['path']='api-key';}['create'](_0x5b8679,_0xb4c942,_0x5beeb9){return __awaiter$4(this,void 0,void 0,function*(){const _0x399f27={'account_name':_0x5b8679,'api_key_name':_0xb4c942};try{const _0x4064b1=yield this['fetch']['post'](this['path'],_0x5beeb9,_0x399f27);if(_0x4064b1['status']>0xc7&&_0x4064b1['status']<0x12c){const _0x3f3682=yield _0x4064b1['json']();return new SuccessfulApiKeyResponse(_0x3f3682);}const _0x43412a=yield _0x4064b1['json']();return new FailedApiKeyResponse(_0x43412a);}catch(_0x3f16ca){if(_0x3f16ca instanceof Error)return new FailedApiKeyResponse({'detail':_0x3f16ca['message'],'title':_0x3f16ca['name'],'status':0x1f4,'instance':'','type':''});throw _0x3f16ca;}});}['view'](_0x57b3f1,_0x52a09d,_0x4bbfcc){return __awaiter$4(this,void 0,void 0,function*(){const _0x3dfd35=this['path']+'/'+_0x57b3f1+'/'+_0x52a09d;try{const _0x2dc832=yield this['fetch']['get'](_0x3dfd35,_0x4bbfcc);if(_0x2dc832['status']>0xc7&&_0x2dc832['status']<0x12c){const _0x23b8c2=yield _0x2dc832['json']();return new SuccessfulApiKeyValueResponse(_0x23b8c2);}const _0x3902cd=yield _0x2dc832['json']();return new FailedApiKeyValueResponse(_0x3902cd);}catch(_0x524a8f){if(_0x524a8f instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x524a8f['message'],'title':_0x524a8f['name'],'status':0x1f4,'instance':'','type':''});throw _0x524a8f;}});}['delete'](_0x397fa0,_0x5bf6ca,_0x1c09d1){return __awaiter$4(this,void 0,void 0,function*(){const _0x127037=this['path']+'/'+_0x397fa0+'/'+_0x5bf6ca;try{const _0x2c8f0e=yield this['fetch']['delete'](_0x127037,_0x1c09d1);if(_0x2c8f0e['status']>0xc7&&_0x2c8f0e['status']<0x12c)return new SuccessfulResponse({});const _0x284c68=yield _0x2c8f0e['json']();return new FailedResponse(_0x284c68);}catch(_0x21b6cb){if(_0x21b6cb instanceof Error)return new FailedResponse({'detail':_0x21b6cb['message'],'title':_0x21b6cb['name'],'status':0x1f4,'instance':'','type':''});throw _0x21b6cb;}});}}
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x2625c0,_0x33df41,_0x5f4063,_0x9ce0d5){function _0x121248(_0x114615){return _0x114615 instanceof _0x5f4063?_0x114615:new _0x5f4063(function(_0x418b01){_0x418b01(_0x114615);});}return new(_0x5f4063||(_0x5f4063=Promise))(function(_0x1f5c82,_0x4ea4e5){function _0x5e1d25(_0x233fe0){try{_0x30811d(_0x9ce0d5['next'](_0x233fe0));}catch(_0x80d200){_0x4ea4e5(_0x80d200);}}function _0x4f59c5(_0xd27cb7){try{_0x30811d(_0x9ce0d5['throw'](_0xd27cb7));}catch(_0x2d7e05){_0x4ea4e5(_0x2d7e05);}}function _0x30811d(_0x29cab9){_0x29cab9['done']?_0x1f5c82(_0x29cab9['value']):_0x121248(_0x29cab9['value'])['then'](_0x5e1d25,_0x4f59c5);}_0x30811d((_0x9ce0d5=_0x9ce0d5['apply'](_0x2625c0,_0x33df41||[]))['next']());});};class ApiKeyService{constructor(_0x47f520){this['fetch']=_0x47f520,this['path']='api-key';}['create'](_0x35f0dd,_0xb5a53d,_0xd0c71){return __awaiter$4(this,void 0,void 0,function*(){const _0x5f1083={'account_name':_0x35f0dd,'api_key_name':_0xb5a53d};try{const _0xcc3749=yield this['fetch']['post'](this['path'],_0xd0c71,_0x5f1083);if(_0xcc3749['status']>0xc7&&_0xcc3749['status']<0x12c){const _0x4c4c0e=yield _0xcc3749['json']();return new SuccessfulApiKeyResponse(_0x4c4c0e);}const _0x2aa5de=yield _0xcc3749['json']();return new FailedApiKeyResponse(_0x2aa5de);}catch(_0x88e05a){if(_0x88e05a instanceof Error)return new FailedApiKeyResponse({'detail':_0x88e05a['message'],'title':_0x88e05a['name'],'status':0x1f4,'instance':'','type':''});throw _0x88e05a;}});}['view'](_0x28f632,_0x27ff8a,_0x472399){return __awaiter$4(this,void 0,void 0,function*(){const _0x1c2826=this['path']+'/'+_0x28f632+'/'+_0x27ff8a;try{const _0x4936a5=yield this['fetch']['get'](_0x1c2826,_0x472399);if(_0x4936a5['status']>0xc7&&_0x4936a5['status']<0x12c){const _0x540b8b=yield _0x4936a5['json']();return new SuccessfulApiKeyValueResponse(_0x540b8b);}const _0x21c9c3=yield _0x4936a5['json']();return new FailedApiKeyValueResponse(_0x21c9c3);}catch(_0x40fe91){if(_0x40fe91 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x40fe91['message'],'title':_0x40fe91['name'],'status':0x1f4,'instance':'','type':''});throw _0x40fe91;}});}['delete'](_0x1d3dcd,_0x34157a,_0x314338){return __awaiter$4(this,void 0,void 0,function*(){const _0x50b3e3=this['path']+'/'+_0x1d3dcd+'/'+_0x34157a;try{const _0x3f195e=yield this['fetch']['delete'](_0x50b3e3,_0x314338);if(_0x3f195e['status']>0xc7&&_0x3f195e['status']<0x12c)return new SuccessfulResponse({});const _0x27d726=yield _0x3f195e['json']();return new FailedResponse(_0x27d726);}catch(_0x378450){if(_0x378450 instanceof Error)return new FailedResponse({'detail':_0x378450['message'],'title':_0x378450['name'],'status':0x1f4,'instance':'','type':''});throw _0x378450;}});}}
6
6
 
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0xdecb7d,_0x439087,_0x15ff21,_0x1eae3e){function _0x57696e(_0x576e36){return _0x576e36 instanceof _0x15ff21?_0x576e36:new _0x15ff21(function(_0x54c1c3){_0x54c1c3(_0x576e36);});}return new(_0x15ff21||(_0x15ff21=Promise))(function(_0x22f4c8,_0x3986ca){function _0x43d81f(_0x3cdfb4){try{_0x3bbd70(_0x1eae3e['next'](_0x3cdfb4));}catch(_0x510fc1){_0x3986ca(_0x510fc1);}}function _0x208bb6(_0x10a86f){try{_0x3bbd70(_0x1eae3e['throw'](_0x10a86f));}catch(_0xcc00dc){_0x3986ca(_0xcc00dc);}}function _0x3bbd70(_0x2a249e){_0x2a249e['done']?_0x22f4c8(_0x2a249e['value']):_0x57696e(_0x2a249e['value'])['then'](_0x43d81f,_0x208bb6);}_0x3bbd70((_0x1eae3e=_0x1eae3e['apply'](_0xdecb7d,_0x439087||[]))['next']());});};class ListService{constructor(_0x4709a9){this['fetch']=_0x4709a9;}['add'](_0x4f9b95,_0x25d0ce,_0xf46ad,_0x51d038){return __awaiter$3(this,void 0,void 0,function*(){const _0x2c66e4='List',_0xef63d6={'account_name':_0x4f9b95,'list_name':_0x25d0ce,'search_service_name':_0xf46ad};try{const _0x749c44=yield this['fetch']['post'](_0x2c66e4,_0x51d038,_0xef63d6);if(_0x749c44['status']>0xc7&&_0x749c44['status']<0x12c){const _0x18c436=yield _0x749c44['json']();return new SuccessfulListIdentityResponse(_0x18c436);}const _0x2cddd7=yield _0x749c44['json']();return new FailedListIdentityResponse(_0x2cddd7);}catch(_0x160c97){if(_0x160c97 instanceof Error)return new FailedListIdentityResponse({'detail':_0x160c97['message'],'title':_0x160c97['name'],'status':0x1f4,'instance':'','type':''});throw _0x160c97;}});}['delete'](_0x264d2a,_0x5734dc,_0x4463b3){return __awaiter$3(this,void 0,void 0,function*(){const _0x14dcd9='List/'+_0x264d2a+'/'+_0x5734dc,_0x26fef1=yield this['fetch']['delete'](_0x14dcd9,_0x4463b3);try{if(_0x26fef1['status']>0xc7&&_0x26fef1['status']<0x12c)return new SuccessfulResponse({});const _0x6bb66c=yield _0x26fef1['json']();return new FailedResponse(_0x6bb66c);}catch(_0x1db3ba){if(_0x1db3ba instanceof Error)return new FailedResponse({'detail':_0x1db3ba['message'],'title':_0x1db3ba['name'],'status':0x1f4,'instance':'','type':''});throw _0x1db3ba;}});}}
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x469d92,_0x561302,_0x45e6d5,_0x430be2){function _0x4d2542(_0x2ccb91){return _0x2ccb91 instanceof _0x45e6d5?_0x2ccb91:new _0x45e6d5(function(_0x52e186){_0x52e186(_0x2ccb91);});}return new(_0x45e6d5||(_0x45e6d5=Promise))(function(_0x5590a4,_0x5207dc){function _0x1955b7(_0x3e3881){try{_0x3bf085(_0x430be2['next'](_0x3e3881));}catch(_0x308edc){_0x5207dc(_0x308edc);}}function _0x37d2aa(_0x3ef31f){try{_0x3bf085(_0x430be2['throw'](_0x3ef31f));}catch(_0x1af0e9){_0x5207dc(_0x1af0e9);}}function _0x3bf085(_0x1ba551){_0x1ba551['done']?_0x5590a4(_0x1ba551['value']):_0x4d2542(_0x1ba551['value'])['then'](_0x1955b7,_0x37d2aa);}_0x3bf085((_0x430be2=_0x430be2['apply'](_0x469d92,_0x561302||[]))['next']());});};class ListService{constructor(_0x351e6a){this['fetch']=_0x351e6a;}['add'](_0x4d0298,_0x53e870,_0x436730,_0x558937){return __awaiter$3(this,void 0,void 0,function*(){const _0x51860e='List',_0x3fb27f={'account_name':_0x4d0298,'list_name':_0x53e870,'search_service_name':_0x436730};try{const _0x49325c=yield this['fetch']['post'](_0x51860e,_0x558937,_0x3fb27f);if(_0x49325c['status']>0xc7&&_0x49325c['status']<0x12c){const _0x427174=yield _0x49325c['json']();return new SuccessfulListIdentityResponse(_0x427174);}const _0x4dff3f=yield _0x49325c['json']();return new FailedListIdentityResponse(_0x4dff3f);}catch(_0x2db80e){if(_0x2db80e instanceof Error)return new FailedListIdentityResponse({'detail':_0x2db80e['message'],'title':_0x2db80e['name'],'status':0x1f4,'instance':'','type':''});throw _0x2db80e;}});}['delete'](_0x1a96d2,_0x3e100e,_0x1e00e3){return __awaiter$3(this,void 0,void 0,function*(){const _0x1169da='List/'+_0x1a96d2+'/'+_0x3e100e,_0x469bc6=yield this['fetch']['delete'](_0x1169da,_0x1e00e3);try{if(_0x469bc6['status']>0xc7&&_0x469bc6['status']<0x12c)return new SuccessfulResponse({});const _0x1057ca=yield _0x469bc6['json']();return new FailedResponse(_0x1057ca);}catch(_0x5b21ed){if(_0x5b21ed instanceof Error)return new FailedResponse({'detail':_0x5b21ed['message'],'title':_0x5b21ed['name'],'status':0x1f4,'instance':'','type':''});throw _0x5b21ed;}});}}
8
8
 
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x1fb909,_0x36b8,_0xe5e263,_0x2d4a07){function _0x31f375(_0x27f845){return _0x27f845 instanceof _0xe5e263?_0x27f845:new _0xe5e263(function(_0x5281a6){_0x5281a6(_0x27f845);});}return new(_0xe5e263||(_0xe5e263=Promise))(function(_0x50f863,_0x19fd40){function _0x424a0(_0x2e8230){try{_0x2a0f01(_0x2d4a07['next'](_0x2e8230));}catch(_0x3e4fea){_0x19fd40(_0x3e4fea);}}function _0x2586ba(_0x5683bf){try{_0x2a0f01(_0x2d4a07['throw'](_0x5683bf));}catch(_0x221a0f){_0x19fd40(_0x221a0f);}}function _0x2a0f01(_0x305254){_0x305254['done']?_0x50f863(_0x305254['value']):_0x31f375(_0x305254['value'])['then'](_0x424a0,_0x2586ba);}_0x2a0f01((_0x2d4a07=_0x2d4a07['apply'](_0x1fb909,_0x36b8||[]))['next']());});};class Fetch{constructor(_0x37e93f){this['baseUri']=_0x37e93f,this['getUrl']=_0x5c1621=>{return _0x5c1621['startsWith']('/')&&(_0x5c1621=_0x5c1621['replace']('/','')),''+this['baseUri']+_0x5c1621;},!_0x37e93f['endsWith']('/')&&(_0x37e93f=_0x37e93f+'/');}['get'](_0x328b41,_0x23410d){return __awaiter$2(this,void 0,void 0,function*(){const _0x2a7729=this['getUrl'](_0x328b41);return yield fetch(_0x2a7729,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x23410d}});});}['post'](_0x2f466b,_0x5f5507,_0x4259bc){return __awaiter$2(this,void 0,void 0,function*(){const _0x45c0a=this['getUrl'](_0x2f466b);return yield fetch(_0x45c0a,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5f5507},'body':_0x4259bc?JSON['stringify'](_0x4259bc):null});});}['PostNoAuth'](_0x20c958,_0xfad7e1){return __awaiter$2(this,void 0,void 0,function*(){const _0x17b16a=this['getUrl'](_0x20c958);return yield fetch(_0x17b16a,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0xfad7e1?JSON['stringify'](_0xfad7e1):null});});}['put'](_0x37604b,_0x33221d,_0x5bfd79){return __awaiter$2(this,void 0,void 0,function*(){const _0x400e3a=this['getUrl'](_0x37604b);return yield fetch(_0x400e3a,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x33221d},'body':_0x5bfd79?JSON['stringify'](_0x5bfd79):null});});}['delete'](_0x4bbcfa,_0x6bb0a5){return __awaiter$2(this,void 0,void 0,function*(){const _0x35129c=this['getUrl'](_0x4bbcfa);return yield fetch(_0x35129c,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x6bb0a5}});});}}
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x43c404,_0xafe0c5,_0x396b8e,_0x1fbb30){function _0x41e9c8(_0x4a96fa){return _0x4a96fa instanceof _0x396b8e?_0x4a96fa:new _0x396b8e(function(_0x358d6e){_0x358d6e(_0x4a96fa);});}return new(_0x396b8e||(_0x396b8e=Promise))(function(_0x5e9ab8,_0xa4d331){function _0x257f64(_0x36b45a){try{_0x3360b9(_0x1fbb30['next'](_0x36b45a));}catch(_0x2cdf66){_0xa4d331(_0x2cdf66);}}function _0x54a3a1(_0x2e0366){try{_0x3360b9(_0x1fbb30['throw'](_0x2e0366));}catch(_0x1f9923){_0xa4d331(_0x1f9923);}}function _0x3360b9(_0x185576){_0x185576['done']?_0x5e9ab8(_0x185576['value']):_0x41e9c8(_0x185576['value'])['then'](_0x257f64,_0x54a3a1);}_0x3360b9((_0x1fbb30=_0x1fbb30['apply'](_0x43c404,_0xafe0c5||[]))['next']());});};class Fetch{constructor(_0x4b360d){this['baseUri']=_0x4b360d,this['getUrl']=_0x32e19b=>{return _0x32e19b['startsWith']('/')&&(_0x32e19b=_0x32e19b['replace']('/','')),''+this['baseUri']+_0x32e19b;},!_0x4b360d['endsWith']('/')&&(_0x4b360d=_0x4b360d+'/');}['get'](_0x197d40,_0x40a79d){return __awaiter$2(this,void 0,void 0,function*(){const _0x9305ad=this['getUrl'](_0x197d40);return yield fetch(_0x9305ad,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x40a79d}});});}['post'](_0x3d082f,_0x557e3f,_0x10594d){return __awaiter$2(this,void 0,void 0,function*(){const _0x141c97=this['getUrl'](_0x3d082f);return yield fetch(_0x141c97,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x557e3f},'body':_0x10594d?JSON['stringify'](_0x10594d):null});});}['PostNoAuth'](_0x495b2c,_0x2c4dfe){return __awaiter$2(this,void 0,void 0,function*(){const _0x5ad615=this['getUrl'](_0x495b2c);return yield fetch(_0x5ad615,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x2c4dfe?JSON['stringify'](_0x2c4dfe):null});});}['put'](_0x5a205d,_0x4dc9f9,_0x505043){return __awaiter$2(this,void 0,void 0,function*(){const _0x37112c=this['getUrl'](_0x5a205d);return yield fetch(_0x37112c,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4dc9f9},'body':_0x505043?JSON['stringify'](_0x505043):null});});}['delete'](_0x328120,_0x2ce678){return __awaiter$2(this,void 0,void 0,function*(){const _0x4634e5=this['getUrl'](_0x328120);return yield fetch(_0x4634e5,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2ce678}});});}}
10
10
 
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x53ae5b,_0xfb484e,_0x1229d1,_0x30d28a){function _0x545291(_0x16a8d7){return _0x16a8d7 instanceof _0x1229d1?_0x16a8d7:new _0x1229d1(function(_0x59abfb){_0x59abfb(_0x16a8d7);});}return new(_0x1229d1||(_0x1229d1=Promise))(function(_0x51bdc7,_0x174042){function _0x41074d(_0x5469be){try{_0x55531b(_0x30d28a['next'](_0x5469be));}catch(_0x719b97){_0x174042(_0x719b97);}}function _0x59d488(_0x3f1fda){try{_0x55531b(_0x30d28a['throw'](_0x3f1fda));}catch(_0x21c641){_0x174042(_0x21c641);}}function _0x55531b(_0x378cd6){_0x378cd6['done']?_0x51bdc7(_0x378cd6['value']):_0x545291(_0x378cd6['value'])['then'](_0x41074d,_0x59d488);}_0x55531b((_0x30d28a=_0x30d28a['apply'](_0x53ae5b,_0xfb484e||[]))['next']());});};class SearchServersService{constructor(_0x3afecd){this['fetch']=_0x3afecd,this['path']='search-services';}['create'](_0x3bf996,_0x7a8bf4,_0x469bc7,_0x552f14,_0x27a593,_0x2d1191,_0x3ad85e,_0x211e25){return __awaiter$1(this,void 0,void 0,function*(){const _0x12abe6={'account_name':_0x3bf996,'search_service_name':_0x7a8bf4,'endpoint':_0x469bc7,'key':_0x552f14,'country':_0x27a593,'provider':_0x2d1191,'index_name':_0x3ad85e};try{const _0x3d3a24=yield this['fetch']['post'](this['path'],_0x211e25,_0x12abe6);if(_0x3d3a24['status']>0xc7&&_0x3d3a24['status']<0x12c){const _0x391bdb=yield _0x3d3a24['json']();return new SuccessfulSearchServiceResponse(_0x391bdb);}const _0x9f2346=yield _0x3d3a24['json']();return new FailedSearchServiceResponse(_0x9f2346);}catch(_0x56f78c){if(_0x56f78c instanceof Error)return new FailedSearchServiceResponse({'detail':_0x56f78c['message'],'title':_0x56f78c['name'],'status':0x1f4,'instance':'','type':''});throw _0x56f78c;}});}['delete'](_0x35299d,_0x43fb9d,_0x264caf){return __awaiter$1(this,void 0,void 0,function*(){const _0x42312b=this['path']+'/'+_0x35299d+'/'+_0x43fb9d;try{const _0x11ecc4=yield this['fetch']['delete'](_0x42312b,_0x264caf);if(_0x11ecc4['status']>0xc7&&_0x11ecc4['status']<0x12c)return new SuccessfulResponse({});const _0x38073f=yield _0x11ecc4['json']();return new FailedResponse(_0x38073f);}catch(_0x249a9c){if(_0x249a9c instanceof Error)return new FailedResponse({'detail':_0x249a9c['message'],'title':_0x249a9c['name'],'status':0x1f4,'instance':'','type':''});throw _0x249a9c;}});}['view'](_0x282eb8,_0x5eb807,_0x3e0827){return __awaiter$1(this,void 0,void 0,function*(){const _0x34482a=this['path']+'/'+_0x282eb8+'/'+_0x5eb807;try{const _0x2ee128=yield this['fetch']['get'](_0x34482a,_0x3e0827);if(_0x2ee128['status']>0xc7&&_0x2ee128['status']<0x12c){const _0x344e3f=yield _0x2ee128['json']();return new SuccessfulViewSearchServiceResponse(_0x344e3f);}const _0x3b17bd=yield _0x2ee128['json']();return new FailedViewSearchServiceResponse(_0x3b17bd);}catch(_0x4817f6){if(_0x4817f6 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x4817f6['message'],'title':_0x4817f6['name'],'status':0x1f4,'instance':'','type':''});throw _0x4817f6;}});}['edit'](_0x31185b,_0x3110d5,_0x5dc562,_0x2b636e,_0x45d72f,_0x10e8fa){return __awaiter$1(this,void 0,void 0,function*(){const _0x591c4a={'account_name':_0x31185b,'search_service_name':_0x3110d5,'new_search_service_name':_0x5dc562,'key':_0x2b636e,'country':_0x45d72f};try{const _0x340283=yield this['fetch']['put'](this['path'],_0x10e8fa,_0x591c4a);if(_0x340283['status']>0xc7&&_0x340283['status']<0x12c){const _0x4f1982=yield _0x340283['json']();return new SuccessfulSearchServiceResponse(_0x4f1982);}const _0x108932=yield _0x340283['json']();return new FailedSearchServiceResponse(_0x108932);}catch(_0x5c6a1f){if(_0x5c6a1f instanceof Error)return new FailedSearchServiceResponse({'detail':_0x5c6a1f['message'],'title':_0x5c6a1f['name'],'status':0x1f4,'instance':'','type':''});throw _0x5c6a1f;}});}['list'](_0xd76223,_0x415daf){return __awaiter$1(this,void 0,void 0,function*(){const _0x483b6b=this['path']+'/'+_0xd76223;try{const _0x356c44=yield this['fetch']['get'](_0x483b6b,_0x415daf);if(_0x356c44['status']>0xc7&&_0x356c44['status']<0x12c){const _0x5f2914=yield _0x356c44['json']();return new SuccessfulListSearchServiceResponse(_0x5f2914);}const _0x263fcd=yield _0x356c44['json']();return new FailedViewSearchServicesResponse(_0x263fcd);}catch(_0x58dece){if(_0x58dece instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x58dece['message'],'title':_0x58dece['name'],'status':0x1f4,'instance':'','type':''});throw _0x58dece;}});}}
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x4de4ed,_0x573e21,_0x1e4644,_0x2e9b01){function _0x290617(_0x41f341){return _0x41f341 instanceof _0x1e4644?_0x41f341:new _0x1e4644(function(_0x3fea12){_0x3fea12(_0x41f341);});}return new(_0x1e4644||(_0x1e4644=Promise))(function(_0x14d606,_0x3976e3){function _0x532c15(_0x1d37da){try{_0x4e0373(_0x2e9b01['next'](_0x1d37da));}catch(_0x1bb841){_0x3976e3(_0x1bb841);}}function _0x41f962(_0x53aa56){try{_0x4e0373(_0x2e9b01['throw'](_0x53aa56));}catch(_0x8be13c){_0x3976e3(_0x8be13c);}}function _0x4e0373(_0xe78425){_0xe78425['done']?_0x14d606(_0xe78425['value']):_0x290617(_0xe78425['value'])['then'](_0x532c15,_0x41f962);}_0x4e0373((_0x2e9b01=_0x2e9b01['apply'](_0x4de4ed,_0x573e21||[]))['next']());});};class SearchServersService{constructor(_0x2d1f8f){this['fetch']=_0x2d1f8f,this['path']='search-services';}['create'](_0x44e24b,_0x5589a6,_0x4707a9,_0x50feef,_0x4679f5,_0x4fae29,_0x2b5d00,_0x3f4b11){return __awaiter$1(this,void 0,void 0,function*(){const _0x21f824={'account_name':_0x44e24b,'search_service_name':_0x5589a6,'endpoint':_0x4707a9,'key':_0x50feef,'country':_0x4679f5,'provider':_0x4fae29,'index_name':_0x2b5d00};try{const _0xc99383=yield this['fetch']['post'](this['path'],_0x3f4b11,_0x21f824);if(_0xc99383['status']>0xc7&&_0xc99383['status']<0x12c){const _0x2774a5=yield _0xc99383['json']();return new SuccessfulSearchServiceResponse(_0x2774a5);}const _0x841743=yield _0xc99383['json']();return new FailedSearchServiceResponse(_0x841743);}catch(_0x514534){if(_0x514534 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x514534['message'],'title':_0x514534['name'],'status':0x1f4,'instance':'','type':''});throw _0x514534;}});}['delete'](_0x15e30b,_0x37a306,_0x338246){return __awaiter$1(this,void 0,void 0,function*(){const _0x1904e1=this['path']+'/'+_0x15e30b+'/'+_0x37a306;try{const _0x1652c0=yield this['fetch']['delete'](_0x1904e1,_0x338246);if(_0x1652c0['status']>0xc7&&_0x1652c0['status']<0x12c)return new SuccessfulResponse({});const _0x5abc33=yield _0x1652c0['json']();return new FailedResponse(_0x5abc33);}catch(_0x68d40c){if(_0x68d40c instanceof Error)return new FailedResponse({'detail':_0x68d40c['message'],'title':_0x68d40c['name'],'status':0x1f4,'instance':'','type':''});throw _0x68d40c;}});}['view'](_0x3b05ae,_0xa03f7f,_0xcb4c07){return __awaiter$1(this,void 0,void 0,function*(){const _0x36e87e=this['path']+'/'+_0x3b05ae+'/'+_0xa03f7f;try{const _0x280cf6=yield this['fetch']['get'](_0x36e87e,_0xcb4c07);if(_0x280cf6['status']>0xc7&&_0x280cf6['status']<0x12c){const _0x57ae57=yield _0x280cf6['json']();return new SuccessfulViewSearchServiceResponse(_0x57ae57);}const _0x49180c=yield _0x280cf6['json']();return new FailedViewSearchServiceResponse(_0x49180c);}catch(_0x505066){if(_0x505066 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x505066['message'],'title':_0x505066['name'],'status':0x1f4,'instance':'','type':''});throw _0x505066;}});}['edit'](_0x2ff7af,_0x303208,_0x46aaeb,_0x3d1967,_0x276990,_0x5e8a9){return __awaiter$1(this,void 0,void 0,function*(){const _0x2ff036={'account_name':_0x2ff7af,'search_service_name':_0x303208,'new_search_service_name':_0x46aaeb,'key':_0x3d1967,'country':_0x276990};try{const _0x4feb12=yield this['fetch']['put'](this['path'],_0x5e8a9,_0x2ff036);if(_0x4feb12['status']>0xc7&&_0x4feb12['status']<0x12c){const _0x32016e=yield _0x4feb12['json']();return new SuccessfulSearchServiceResponse(_0x32016e);}const _0x274485=yield _0x4feb12['json']();return new FailedSearchServiceResponse(_0x274485);}catch(_0x1545fe){if(_0x1545fe instanceof Error)return new FailedSearchServiceResponse({'detail':_0x1545fe['message'],'title':_0x1545fe['name'],'status':0x1f4,'instance':'','type':''});throw _0x1545fe;}});}['list'](_0x1c152b,_0x100164){return __awaiter$1(this,void 0,void 0,function*(){const _0x5ced86=this['path']+'/'+_0x1c152b;try{const _0x497ec8=yield this['fetch']['get'](_0x5ced86,_0x100164);if(_0x497ec8['status']>0xc7&&_0x497ec8['status']<0x12c){const _0x1091e6=yield _0x497ec8['json']();return new SuccessfulListSearchServiceResponse(_0x1091e6);}const _0x148ec1=yield _0x497ec8['json']();return new FailedViewSearchServicesResponse(_0x148ec1);}catch(_0x3e8de3){if(_0x3e8de3 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x3e8de3['message'],'title':_0x3e8de3['name'],'status':0x1f4,'instance':'','type':''});throw _0x3e8de3;}});}}
12
12
 
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x5df082,_0x5239f1,_0x194f86,_0x37c4f2){function _0x5d6186(_0x377509){return _0x377509 instanceof _0x194f86?_0x377509:new _0x194f86(function(_0x14d5c2){_0x14d5c2(_0x377509);});}return new(_0x194f86||(_0x194f86=Promise))(function(_0x57a64e,_0x1417cf){function _0x5973f1(_0x2983f3){try{_0x5809ff(_0x37c4f2['next'](_0x2983f3));}catch(_0x404201){_0x1417cf(_0x404201);}}function _0x4520c6(_0x568d38){try{_0x5809ff(_0x37c4f2['throw'](_0x568d38));}catch(_0x14d9f4){_0x1417cf(_0x14d9f4);}}function _0x5809ff(_0x12128a){_0x12128a['done']?_0x57a64e(_0x12128a['value']):_0x5d6186(_0x12128a['value'])['then'](_0x5973f1,_0x4520c6);}_0x5809ff((_0x37c4f2=_0x37c4f2['apply'](_0x5df082,_0x5239f1||[]))['next']());});};class AdminClient{constructor(_0x204c7c='https://admin.searchability.dev/'){var _0x2ac52f=new Fetch(_0x204c7c);this['Accounts']=new AccountService(_0x2ac52f),this['Lists']=new ListService(_0x2ac52f),this['ApiKeys']=new ApiKeyService(_0x2ac52f),this['SearchServices']=new SearchServersService(_0x2ac52f);}}class AuthClient{constructor(_0xef5911='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0xef5911);}['login'](_0x25cb3a){return __awaiter(this,void 0,void 0,function*(){const _0x15bc58='login/'+_0x25cb3a;try{const _0x15e69d=yield yield fetch(_0x15bc58);if(_0x15e69d['status']>0xc7&&_0x15e69d['status']<0x12c){const _0x5630b4=yield _0x15e69d['json']();return new SuccessfulAuthResponse(_0x5630b4);}const _0x2e364d=yield _0x15e69d['json']();return new FailedAuthResponse(_0x2e364d);}catch(_0x2edb90){if(_0x2edb90 instanceof Error)return new FailedAuthResponse({'detail':_0x2edb90['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2edb90;}});}['refresh'](_0xd89ac8){return __awaiter(this,void 0,void 0,function*(){const _0x4cd44b='refresh',_0x1e4ca7={'refresh_token':_0xd89ac8};try{const _0x80f374=yield this['fetch']['PostNoAuth'](_0x4cd44b,_0x1e4ca7);if(_0x80f374['status']>0xc7&&_0x80f374['status']<0x12c){const _0x481e01=yield _0x80f374['json']();return new SuccessfulAuthResponse(_0x481e01);}const _0x1c35e4=yield _0x80f374['json']();return new FailedAuthResponse(_0x1c35e4);}catch(_0x222b97){if(_0x222b97 instanceof Error)return new FailedAuthResponse({'detail':_0x222b97['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x222b97;}});}['getTokenStatus'](_0x501e3a){if(Date['now']()<_0x501e3a['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x501e3a['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x41d7dd,_0x1147b6,_0x3868db,_0x1fdf01){function _0x2632bd(_0x3036a6){return _0x3036a6 instanceof _0x3868db?_0x3036a6:new _0x3868db(function(_0x2b87fc){_0x2b87fc(_0x3036a6);});}return new(_0x3868db||(_0x3868db=Promise))(function(_0x407546,_0x373209){function _0x28200d(_0x5f63c3){try{_0x1d0d19(_0x1fdf01['next'](_0x5f63c3));}catch(_0x3cee2c){_0x373209(_0x3cee2c);}}function _0x3c2bf2(_0x298dd4){try{_0x1d0d19(_0x1fdf01['throw'](_0x298dd4));}catch(_0x4d3f45){_0x373209(_0x4d3f45);}}function _0x1d0d19(_0x174229){_0x174229['done']?_0x407546(_0x174229['value']):_0x2632bd(_0x174229['value'])['then'](_0x28200d,_0x3c2bf2);}_0x1d0d19((_0x1fdf01=_0x1fdf01['apply'](_0x41d7dd,_0x1147b6||[]))['next']());});};class AdminClient{constructor(_0x4816d9='https://admin.searchability.dev/'){var _0x441149=new Fetch(_0x4816d9);this['Accounts']=new AccountService(_0x441149),this['Lists']=new ListService(_0x441149),this['ApiKeys']=new ApiKeyService(_0x441149),this['SearchServices']=new SearchServersService(_0x441149);}}class AuthClient{constructor(_0x23f554='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x23f554);}['login'](_0x40ebb8){return __awaiter(this,void 0,void 0,function*(){const _0x871af7='login/'+_0x40ebb8;try{const _0x160d7e=yield yield fetch(_0x871af7);if(_0x160d7e['status']>0xc7&&_0x160d7e['status']<0x12c){const _0x57b933=yield _0x160d7e['json']();return new SuccessfulAuthResponse(_0x57b933);}const _0x10736a=yield _0x160d7e['json']();return new FailedAuthResponse(_0x10736a);}catch(_0x4963f7){if(_0x4963f7 instanceof Error)return new FailedAuthResponse({'detail':_0x4963f7['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x4963f7;}});}['refresh'](_0x5ae000){return __awaiter(this,void 0,void 0,function*(){const _0x3ce96b='refresh',_0x506f04={'refresh_token':_0x5ae000};try{const _0x2a9712=yield this['fetch']['PostNoAuth'](_0x3ce96b,_0x506f04);if(_0x2a9712['status']>0xc7&&_0x2a9712['status']<0x12c){const _0x5e4a3b=yield _0x2a9712['json']();return new SuccessfulAuthResponse(_0x5e4a3b);}const _0x4cbd60=yield _0x2a9712['json']();return new FailedAuthResponse(_0x4cbd60);}catch(_0x317dd1){if(_0x317dd1 instanceof Error)return new FailedAuthResponse({'detail':_0x317dd1['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x317dd1;}});}['getTokenStatus'](_0x5a39bb){if(Date['now']()<_0x5a39bb['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x5a39bb['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
14
14
 
15
15
  export { AdminClient, AuthClient, TokenStatus, Tokens };
package/dist/types.d.ts CHANGED
@@ -86,7 +86,8 @@ type ListIdentity = {
86
86
  name: string;
87
87
  created: number;
88
88
  account_name: string;
89
- image_path: string;
89
+ is_shared: boolean;
90
+ version: number;
90
91
  };
91
92
  type ApiKey = {
92
93
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
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(_0x5bf23a){_0x5bf23a[_0x5bf23a['Ok']=0x0]='Ok',_0x5bf23a[_0x5bf23a['Refresh']=0x1]='Refresh',_0x5bf23a[_0x5bf23a['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(_0x403bf3){this['isSuccess']=_0x403bf3;}}class SuccessfulAccountResponse extends Response{constructor(_0x30fe18){super(!![]),this['account']=_0x30fe18;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x19a385){super(!![]),this['list']=_0x19a385;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x5c7ba1){super(![]),this['problem']=_0x5c7ba1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x6f5502){super(![]),this['problem']=_0x6f5502;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x31b91b){super(!![]),this['tokens']=_0x31b91b;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x22a145){super(![]),this['problem']=_0x22a145;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x547246){super(!![]),this['apiKey']=_0x547246;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x20e443){super(![]),this['problem']=_0x20e443;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x614eeb){super(!![]),this['searchService']=_0x614eeb;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x5653fb){super(![]),this['problem']=_0x5653fb;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x557d70){super(!![]),this['searchService']=_0x557d70;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x2917e7){super(!![]),this['searchServices']=_0x2917e7;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x49b613){super(![]),this['problem']=_0x49b613;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x3da34a){super(![]),this['problem']=_0x3da34a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x54fb70){super(!![]),this['apiKeyValue']=_0x54fb70;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x4dbdd5){super(!![]),this['obj']=_0x4dbdd5;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x4f9a49){super(![]),this['problem']=_0x4f9a49;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x21608c){super(![]),this['problem']=_0x21608c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
-
3
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x426fdd,_0x18024e,_0x5acbce,_0x46860b){function _0x4d3a0b(_0x542b22){return _0x542b22 instanceof _0x5acbce?_0x542b22:new _0x5acbce(function(_0x579edd){_0x579edd(_0x542b22);});}return new(_0x5acbce||(_0x5acbce=Promise))(function(_0x1cb9a1,_0x1d3941){function _0x8ac3ca(_0x5a554d){try{_0x2361b0(_0x46860b['next'](_0x5a554d));}catch(_0x1283d4){_0x1d3941(_0x1283d4);}}function _0x10d235(_0x469216){try{_0x2361b0(_0x46860b['throw'](_0x469216));}catch(_0x4b578c){_0x1d3941(_0x4b578c);}}function _0x2361b0(_0x161464){_0x161464['done']?_0x1cb9a1(_0x161464['value']):_0x4d3a0b(_0x161464['value'])['then'](_0x8ac3ca,_0x10d235);}_0x2361b0((_0x46860b=_0x46860b['apply'](_0x426fdd,_0x18024e||[]))['next']());});};class AccountService{constructor(_0x4ff6f9){this['fetch']=_0x4ff6f9;}['get'](_0x37a154,_0x2c9f7a){return __awaiter$5(this,void 0,void 0,function*(){const _0x30a9fc='Account/'+_0x37a154+'/',_0x26a662=yield this['fetch']['get'](_0x30a9fc,_0x2c9f7a);try{if(_0x26a662['status']>0xc7&&_0x26a662['status']<0x12c){const _0x3e0d20=yield _0x26a662['json']();return new SuccessfulAccountResponse(_0x3e0d20);}const _0x933404=yield _0x26a662['json']();return new FailedAccountResponse(_0x933404);}catch(_0x21694b){if(_0x21694b instanceof Error)return new FailedAccountResponse({'detail':_0x21694b['message'],'title':_0x21694b['name'],'status':0x1f4,'instance':'','type':''});throw _0x21694b;}});}}
4
-
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x2628a7,_0x4a39f9,_0x33e16a,_0x516753){function _0x5ae7e5(_0x152f37){return _0x152f37 instanceof _0x33e16a?_0x152f37:new _0x33e16a(function(_0x3b7d44){_0x3b7d44(_0x152f37);});}return new(_0x33e16a||(_0x33e16a=Promise))(function(_0x59c9be,_0x1dc615){function _0x465fb9(_0x5db7b1){try{_0x1ef6c9(_0x516753['next'](_0x5db7b1));}catch(_0x4de645){_0x1dc615(_0x4de645);}}function _0x4126a1(_0x53912e){try{_0x1ef6c9(_0x516753['throw'](_0x53912e));}catch(_0x34a12f){_0x1dc615(_0x34a12f);}}function _0x1ef6c9(_0x3f8ba8){_0x3f8ba8['done']?_0x59c9be(_0x3f8ba8['value']):_0x5ae7e5(_0x3f8ba8['value'])['then'](_0x465fb9,_0x4126a1);}_0x1ef6c9((_0x516753=_0x516753['apply'](_0x2628a7,_0x4a39f9||[]))['next']());});};class ApiKeyService{constructor(_0x51c981){this['fetch']=_0x51c981,this['path']='api-key';}['create'](_0x1e7d87,_0x1d6b0c,_0xd7d218){return __awaiter$4(this,void 0,void 0,function*(){const _0x513692={'account_name':_0x1e7d87,'api_key_name':_0x1d6b0c};try{const _0x441418=yield this['fetch']['post'](this['path'],_0xd7d218,_0x513692);if(_0x441418['status']>0xc7&&_0x441418['status']<0x12c){const _0x3ede90=yield _0x441418['json']();return new SuccessfulApiKeyResponse(_0x3ede90);}const _0x4437f6=yield _0x441418['json']();return new FailedApiKeyResponse(_0x4437f6);}catch(_0x19ed73){if(_0x19ed73 instanceof Error)return new FailedApiKeyResponse({'detail':_0x19ed73['message'],'title':_0x19ed73['name'],'status':0x1f4,'instance':'','type':''});throw _0x19ed73;}});}['view'](_0x2de4ff,_0x40b3d0,_0x558c63){return __awaiter$4(this,void 0,void 0,function*(){const _0x23acf6=this['path']+'/'+_0x2de4ff+'/'+_0x40b3d0;try{const _0xb3dcd9=yield this['fetch']['get'](_0x23acf6,_0x558c63);if(_0xb3dcd9['status']>0xc7&&_0xb3dcd9['status']<0x12c){const _0xe192df=yield _0xb3dcd9['json']();return new SuccessfulApiKeyValueResponse(_0xe192df);}const _0x2c43b4=yield _0xb3dcd9['json']();return new FailedApiKeyValueResponse(_0x2c43b4);}catch(_0x567b46){if(_0x567b46 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x567b46['message'],'title':_0x567b46['name'],'status':0x1f4,'instance':'','type':''});throw _0x567b46;}});}['delete'](_0x19576e,_0x572edb,_0x4e58af){return __awaiter$4(this,void 0,void 0,function*(){const _0x3c90f5=this['path']+'/'+_0x19576e+'/'+_0x572edb;try{const _0x26f56c=yield this['fetch']['delete'](_0x3c90f5,_0x4e58af);if(_0x26f56c['status']>0xc7&&_0x26f56c['status']<0x12c)return new SuccessfulResponse({});const _0x2c3bc5=yield _0x26f56c['json']();return new FailedResponse(_0x2c3bc5);}catch(_0x2a3845){if(_0x2a3845 instanceof Error)return new FailedResponse({'detail':_0x2a3845['message'],'title':_0x2a3845['name'],'status':0x1f4,'instance':'','type':''});throw _0x2a3845;}});}}
6
-
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x46d336,_0x19b172,_0x6deb43,_0x2da2d1){function _0x3893d1(_0x41a6a5){return _0x41a6a5 instanceof _0x6deb43?_0x41a6a5:new _0x6deb43(function(_0x3a49c6){_0x3a49c6(_0x41a6a5);});}return new(_0x6deb43||(_0x6deb43=Promise))(function(_0x3f6a30,_0xbf5778){function _0x4362fa(_0x2a21c6){try{_0x13f970(_0x2da2d1['next'](_0x2a21c6));}catch(_0x37e6e4){_0xbf5778(_0x37e6e4);}}function _0x3510b4(_0x475111){try{_0x13f970(_0x2da2d1['throw'](_0x475111));}catch(_0xed24d7){_0xbf5778(_0xed24d7);}}function _0x13f970(_0x3a21ae){_0x3a21ae['done']?_0x3f6a30(_0x3a21ae['value']):_0x3893d1(_0x3a21ae['value'])['then'](_0x4362fa,_0x3510b4);}_0x13f970((_0x2da2d1=_0x2da2d1['apply'](_0x46d336,_0x19b172||[]))['next']());});};class ListService{constructor(_0x19bff6){this['fetch']=_0x19bff6;}['add'](_0x59cf08,_0x3b576d,_0x4e3be3,_0x112481){return __awaiter$3(this,void 0,void 0,function*(){const _0x536b5d='List',_0xe83b67={'account_name':_0x59cf08,'list_name':_0x3b576d,'search_service_name':_0x4e3be3};try{const _0x2a38a8=yield this['fetch']['post'](_0x536b5d,_0x112481,_0xe83b67);if(_0x2a38a8['status']>0xc7&&_0x2a38a8['status']<0x12c){const _0x19998b=yield _0x2a38a8['json']();return new SuccessfulListIdentityResponse(_0x19998b);}const _0x4848ea=yield _0x2a38a8['json']();return new FailedListIdentityResponse(_0x4848ea);}catch(_0x3c3762){if(_0x3c3762 instanceof Error)return new FailedListIdentityResponse({'detail':_0x3c3762['message'],'title':_0x3c3762['name'],'status':0x1f4,'instance':'','type':''});throw _0x3c3762;}});}['delete'](_0x4de0f8,_0x462076,_0x55909b){return __awaiter$3(this,void 0,void 0,function*(){const _0x49a659='List/'+_0x4de0f8+'/'+_0x462076,_0x529777=yield this['fetch']['delete'](_0x49a659,_0x55909b);try{if(_0x529777['status']>0xc7&&_0x529777['status']<0x12c)return new SuccessfulResponse({});const _0x14a8e5=yield _0x529777['json']();return new FailedResponse(_0x14a8e5);}catch(_0x5cc288){if(_0x5cc288 instanceof Error)return new FailedResponse({'detail':_0x5cc288['message'],'title':_0x5cc288['name'],'status':0x1f4,'instance':'','type':''});throw _0x5cc288;}});}}
8
-
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x5958c7,_0x11cbbc,_0x551125,_0x28a7ea){function _0x15fda8(_0x464047){return _0x464047 instanceof _0x551125?_0x464047:new _0x551125(function(_0x38902e){_0x38902e(_0x464047);});}return new(_0x551125||(_0x551125=Promise))(function(_0x6088e5,_0x55fd0c){function _0x1fea6f(_0x32a268){try{_0x3f54bb(_0x28a7ea['next'](_0x32a268));}catch(_0x2710ef){_0x55fd0c(_0x2710ef);}}function _0x5daaa3(_0x1bdcce){try{_0x3f54bb(_0x28a7ea['throw'](_0x1bdcce));}catch(_0x55e6ba){_0x55fd0c(_0x55e6ba);}}function _0x3f54bb(_0x333cf4){_0x333cf4['done']?_0x6088e5(_0x333cf4['value']):_0x15fda8(_0x333cf4['value'])['then'](_0x1fea6f,_0x5daaa3);}_0x3f54bb((_0x28a7ea=_0x28a7ea['apply'](_0x5958c7,_0x11cbbc||[]))['next']());});};class Fetch{constructor(_0x26653f){this['baseUri']=_0x26653f,this['getUrl']=_0x255924=>{return _0x255924['startsWith']('/')&&(_0x255924=_0x255924['replace']('/','')),''+this['baseUri']+_0x255924;},!_0x26653f['endsWith']('/')&&(_0x26653f=_0x26653f+'/');}['get'](_0x121c6a,_0x26b474){return __awaiter$2(this,void 0,void 0,function*(){const _0x458461=this['getUrl'](_0x121c6a);return yield fetch(_0x458461,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x26b474}});});}['post'](_0x374aa8,_0x362d66,_0x64df8a){return __awaiter$2(this,void 0,void 0,function*(){const _0x49da01=this['getUrl'](_0x374aa8);return yield fetch(_0x49da01,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x362d66},'body':_0x64df8a?JSON['stringify'](_0x64df8a):null});});}['PostNoAuth'](_0x425883,_0x5e06bd){return __awaiter$2(this,void 0,void 0,function*(){const _0x406a6=this['getUrl'](_0x425883);return yield fetch(_0x406a6,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x5e06bd?JSON['stringify'](_0x5e06bd):null});});}['put'](_0x410621,_0x5203e8,_0x39a0bc){return __awaiter$2(this,void 0,void 0,function*(){const _0x4e5aac=this['getUrl'](_0x410621);return yield fetch(_0x4e5aac,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5203e8},'body':_0x39a0bc?JSON['stringify'](_0x39a0bc):null});});}['delete'](_0x32c963,_0x5eb421){return __awaiter$2(this,void 0,void 0,function*(){const _0x449bf6=this['getUrl'](_0x32c963);return yield fetch(_0x449bf6,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5eb421}});});}}
10
-
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x3be3cb,_0x54f128,_0x4184c3,_0x521697){function _0x2034d4(_0x5073dd){return _0x5073dd instanceof _0x4184c3?_0x5073dd:new _0x4184c3(function(_0x1e3e2f){_0x1e3e2f(_0x5073dd);});}return new(_0x4184c3||(_0x4184c3=Promise))(function(_0xdf24c6,_0x2d178a){function _0x2348c5(_0x1a0f26){try{_0x37d1dc(_0x521697['next'](_0x1a0f26));}catch(_0x3bf3cc){_0x2d178a(_0x3bf3cc);}}function _0x27c804(_0x580ebb){try{_0x37d1dc(_0x521697['throw'](_0x580ebb));}catch(_0xae94){_0x2d178a(_0xae94);}}function _0x37d1dc(_0x1f00f2){_0x1f00f2['done']?_0xdf24c6(_0x1f00f2['value']):_0x2034d4(_0x1f00f2['value'])['then'](_0x2348c5,_0x27c804);}_0x37d1dc((_0x521697=_0x521697['apply'](_0x3be3cb,_0x54f128||[]))['next']());});};class SearchServersService{constructor(_0x4326f5){this['fetch']=_0x4326f5,this['path']='search-services';}['create'](_0x38690d,_0x3a5162,_0x2f1f73,_0x2266b7,_0x33c1f3,_0x2945b1,_0x584f9f,_0xbb8dc0){return __awaiter$1(this,void 0,void 0,function*(){const _0xe4d01a={'account_name':_0x38690d,'search_service_name':_0x3a5162,'endpoint':_0x2f1f73,'key':_0x2266b7,'country':_0x33c1f3,'provider':_0x2945b1,'index_name':_0x584f9f};try{const _0x299256=yield this['fetch']['post'](this['path'],_0xbb8dc0,_0xe4d01a);if(_0x299256['status']>0xc7&&_0x299256['status']<0x12c){const _0x1dc298=yield _0x299256['json']();return new SuccessfulSearchServiceResponse(_0x1dc298);}const _0x607c7f=yield _0x299256['json']();return new FailedSearchServiceResponse(_0x607c7f);}catch(_0x3f7ac5){if(_0x3f7ac5 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x3f7ac5['message'],'title':_0x3f7ac5['name'],'status':0x1f4,'instance':'','type':''});throw _0x3f7ac5;}});}['delete'](_0x3a38b6,_0x2b47af,_0x48a8c6){return __awaiter$1(this,void 0,void 0,function*(){const _0x170020=this['path']+'/'+_0x3a38b6+'/'+_0x2b47af;try{const _0x22d081=yield this['fetch']['delete'](_0x170020,_0x48a8c6);if(_0x22d081['status']>0xc7&&_0x22d081['status']<0x12c)return new SuccessfulResponse({});const _0x191c7b=yield _0x22d081['json']();return new FailedResponse(_0x191c7b);}catch(_0x2e204a){if(_0x2e204a instanceof Error)return new FailedResponse({'detail':_0x2e204a['message'],'title':_0x2e204a['name'],'status':0x1f4,'instance':'','type':''});throw _0x2e204a;}});}['view'](_0x31e0da,_0x10dba5,_0x336226){return __awaiter$1(this,void 0,void 0,function*(){const _0x11182b=this['path']+'/'+_0x31e0da+'/'+_0x10dba5;try{const _0x40e951=yield this['fetch']['get'](_0x11182b,_0x336226);if(_0x40e951['status']>0xc7&&_0x40e951['status']<0x12c){const _0x3ea21f=yield _0x40e951['json']();return new SuccessfulViewSearchServiceResponse(_0x3ea21f);}const _0x13963d=yield _0x40e951['json']();return new FailedViewSearchServiceResponse(_0x13963d);}catch(_0x22d38b){if(_0x22d38b instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x22d38b['message'],'title':_0x22d38b['name'],'status':0x1f4,'instance':'','type':''});throw _0x22d38b;}});}['edit'](_0x2438a2,_0x5d7fc7,_0x18d25c,_0x480085,_0x16e29f,_0x17280e){return __awaiter$1(this,void 0,void 0,function*(){const _0x490874={'account_name':_0x2438a2,'search_service_name':_0x5d7fc7,'new_search_service_name':_0x18d25c,'key':_0x480085,'country':_0x16e29f};try{const _0x2f09ee=yield this['fetch']['put'](this['path'],_0x17280e,_0x490874);if(_0x2f09ee['status']>0xc7&&_0x2f09ee['status']<0x12c){const _0x4209da=yield _0x2f09ee['json']();return new SuccessfulSearchServiceResponse(_0x4209da);}const _0x12a0be=yield _0x2f09ee['json']();return new FailedSearchServiceResponse(_0x12a0be);}catch(_0x1550b9){if(_0x1550b9 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x1550b9['message'],'title':_0x1550b9['name'],'status':0x1f4,'instance':'','type':''});throw _0x1550b9;}});}['list'](_0x34fae9,_0x32c252){return __awaiter$1(this,void 0,void 0,function*(){const _0x2e2829=this['path']+'/'+_0x34fae9;try{const _0x10193d=yield this['fetch']['get'](_0x2e2829,_0x32c252);if(_0x10193d['status']>0xc7&&_0x10193d['status']<0x12c){const _0x101251=yield _0x10193d['json']();return new SuccessfulListSearchServiceResponse(_0x101251);}const _0x58145a=yield _0x10193d['json']();return new FailedViewSearchServicesResponse(_0x58145a);}catch(_0x64f3d3){if(_0x64f3d3 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x64f3d3['message'],'title':_0x64f3d3['name'],'status':0x1f4,'instance':'','type':''});throw _0x64f3d3;}});}}
12
-
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0xa7788f,_0x664f5f,_0x55e5d3,_0xf04eac){function _0x734ca8(_0x3f1099){return _0x3f1099 instanceof _0x55e5d3?_0x3f1099:new _0x55e5d3(function(_0x115397){_0x115397(_0x3f1099);});}return new(_0x55e5d3||(_0x55e5d3=Promise))(function(_0x46ebaa,_0x57e051){function _0x5b3946(_0x327f40){try{_0x133251(_0xf04eac['next'](_0x327f40));}catch(_0x399e9e){_0x57e051(_0x399e9e);}}function _0x50cd68(_0x206365){try{_0x133251(_0xf04eac['throw'](_0x206365));}catch(_0x2fdbcb){_0x57e051(_0x2fdbcb);}}function _0x133251(_0x340a07){_0x340a07['done']?_0x46ebaa(_0x340a07['value']):_0x734ca8(_0x340a07['value'])['then'](_0x5b3946,_0x50cd68);}_0x133251((_0xf04eac=_0xf04eac['apply'](_0xa7788f,_0x664f5f||[]))['next']());});};class AdminClient{constructor(_0xdf0045='https://admin.searchability.dev/'){var _0x299dbc=new Fetch(_0xdf0045);this['Accounts']=new AccountService(_0x299dbc),this['Lists']=new ListService(_0x299dbc),this['ApiKeys']=new ApiKeyService(_0x299dbc),this['SearchServices']=new SearchServersService(_0x299dbc);}}class AuthClient{constructor(_0x55b6b8='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x55b6b8);}['login'](_0x2f647a){return __awaiter(this,void 0,void 0,function*(){const _0x360020='login/'+_0x2f647a;try{const _0x4c0293=yield yield fetch(_0x360020);if(_0x4c0293['status']>0xc7&&_0x4c0293['status']<0x12c){const _0x109b06=yield _0x4c0293['json']();return new SuccessfulAuthResponse(_0x109b06);}const _0x130aa3=yield _0x4c0293['json']();return new FailedAuthResponse(_0x130aa3);}catch(_0x56d12f){if(_0x56d12f instanceof Error)return new FailedAuthResponse({'detail':_0x56d12f['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x56d12f;}});}['refresh'](_0x3c16ea){return __awaiter(this,void 0,void 0,function*(){const _0x41d0db='refresh',_0x5a2ee1={'refresh_token':_0x3c16ea};try{const _0xf125d3=yield this['fetch']['PostNoAuth'](_0x41d0db,_0x5a2ee1);if(_0xf125d3['status']>0xc7&&_0xf125d3['status']<0x12c){const _0xeb09aa=yield _0xf125d3['json']();return new SuccessfulAuthResponse(_0xeb09aa);}const _0x756833=yield _0xf125d3['json']();return new FailedAuthResponse(_0x756833);}catch(_0x4ab1f8){if(_0x4ab1f8 instanceof Error)return new FailedAuthResponse({'detail':_0x4ab1f8['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x4ab1f8;}});}['getTokenStatus'](_0x1d9f21){if(Date['now']()<_0x1d9f21['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x1d9f21['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
14
-
15
- export { AdminClient, AuthClient, TokenStatus, Tokens };