@searchability/admin-client 0.0.48 → 0.0.50

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(_0x2572fc){_0x2572fc[_0x2572fc['Ok']=0x0]='Ok',_0x2572fc[_0x2572fc['Refresh']=0x1]='Refresh',_0x2572fc[_0x2572fc['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x2d696d){this['isSuccess']=_0x2d696d;}}class SuccessfulAccountResponse extends Response{constructor(_0x5303c2){super(!![]),this['account']=_0x5303c2;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x3b352a){super(!![]),this['list']=_0x3b352a;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x26d555){super(![]),this['problem']=_0x26d555;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x3e32af){super(![]),this['problem']=_0x3e32af;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x29489e){super(!![]),this['tokens']=_0x29489e;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x588eb4){super(![]),this['problem']=_0x588eb4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x104009){super(!![]),this['apiKey']=_0x104009;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x1f8431){super(![]),this['problem']=_0x1f8431;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x247dfc){super(!![]),this['searchService']=_0x247dfc;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x45565a){super(![]),this['problem']=_0x45565a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x114b12){super(!![]),this['searchService']=_0x114b12;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x2a7f20){super(!![]),this['searchServices']=_0x2a7f20;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x5f4189){super(![]),this['problem']=_0x5f4189;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x1f1ae1){super(![]),this['problem']=_0x1f1ae1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x515941){super(!![]),this['apiKeyValue']=_0x515941;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x99ddb1){super(!![]),this['obj']=_0x99ddb1;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x9d3a7f){super(![]),this['problem']=_0x9d3a7f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x864247){super(![]),this['problem']=_0x864247;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
+
3
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x5dc25c,_0x558621,_0x14fea1,_0x34672e){function _0x5a4fd6(_0x36d198){return _0x36d198 instanceof _0x14fea1?_0x36d198:new _0x14fea1(function(_0x9a99c7){_0x9a99c7(_0x36d198);});}return new(_0x14fea1||(_0x14fea1=Promise))(function(_0xe32fe4,_0x319541){function _0x47799a(_0x1be21c){try{_0x27e0b9(_0x34672e['next'](_0x1be21c));}catch(_0xac2ef8){_0x319541(_0xac2ef8);}}function _0x320ae2(_0x4d0f81){try{_0x27e0b9(_0x34672e['throw'](_0x4d0f81));}catch(_0x397ff6){_0x319541(_0x397ff6);}}function _0x27e0b9(_0x332518){_0x332518['done']?_0xe32fe4(_0x332518['value']):_0x5a4fd6(_0x332518['value'])['then'](_0x47799a,_0x320ae2);}_0x27e0b9((_0x34672e=_0x34672e['apply'](_0x5dc25c,_0x558621||[]))['next']());});};class AccountService{constructor(_0x2e60cf){this['fetch']=_0x2e60cf;}['get'](_0x2262ef,_0x1607ac){return __awaiter$5(this,void 0,void 0,function*(){const _0xb39ba4='Account/'+_0x2262ef+'/',_0x438b6f=yield this['fetch']['get'](_0xb39ba4,_0x1607ac);try{if(_0x438b6f['status']>0xc7&&_0x438b6f['status']<0x12c){const _0x4aa140=yield _0x438b6f['json']();return new SuccessfulAccountResponse(_0x4aa140);}const _0x2d0de7=yield _0x438b6f['json']();return new FailedAccountResponse(_0x2d0de7);}catch(_0x2be3b){if(_0x2be3b instanceof Error)return new FailedAccountResponse({'detail':_0x2be3b['message'],'title':_0x2be3b['name'],'status':0x1f4,'instance':'','type':''});throw _0x2be3b;}});}}
4
+
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x1072db,_0x180026,_0xb1736c,_0x24f697){function _0x18c5d7(_0x33e196){return _0x33e196 instanceof _0xb1736c?_0x33e196:new _0xb1736c(function(_0x28c474){_0x28c474(_0x33e196);});}return new(_0xb1736c||(_0xb1736c=Promise))(function(_0x4d4c,_0x15a194){function _0x37855b(_0x121eba){try{_0x1b12b7(_0x24f697['next'](_0x121eba));}catch(_0x4b6282){_0x15a194(_0x4b6282);}}function _0x340e58(_0x5cd7a3){try{_0x1b12b7(_0x24f697['throw'](_0x5cd7a3));}catch(_0x3d403a){_0x15a194(_0x3d403a);}}function _0x1b12b7(_0x2125f0){_0x2125f0['done']?_0x4d4c(_0x2125f0['value']):_0x18c5d7(_0x2125f0['value'])['then'](_0x37855b,_0x340e58);}_0x1b12b7((_0x24f697=_0x24f697['apply'](_0x1072db,_0x180026||[]))['next']());});};class ApiKeyService{constructor(_0x8d7856){this['fetch']=_0x8d7856,this['path']='api-key';}['create'](_0x191e7e,_0xb974ab,_0x32bf2f){return __awaiter$4(this,void 0,void 0,function*(){const _0x37a143={'account_name':_0x191e7e,'api_key_name':_0xb974ab};try{const _0x7b252a=yield this['fetch']['post'](this['path'],_0x32bf2f,_0x37a143);if(_0x7b252a['status']>0xc7&&_0x7b252a['status']<0x12c){const _0x323e63=yield _0x7b252a['json']();return new SuccessfulApiKeyResponse(_0x323e63);}const _0x29f759=yield _0x7b252a['json']();return new FailedApiKeyResponse(_0x29f759);}catch(_0x3004b7){if(_0x3004b7 instanceof Error)return new FailedApiKeyResponse({'detail':_0x3004b7['message'],'title':_0x3004b7['name'],'status':0x1f4,'instance':'','type':''});throw _0x3004b7;}});}['view'](_0x444317,_0x772a5d,_0x4d6d95){return __awaiter$4(this,void 0,void 0,function*(){const _0x494904=this['path']+'/'+_0x444317+'/'+_0x772a5d;try{const _0x388115=yield this['fetch']['get'](_0x494904,_0x4d6d95);if(_0x388115['status']>0xc7&&_0x388115['status']<0x12c){const _0x5ee9b2=yield _0x388115['json']();return new SuccessfulApiKeyValueResponse(_0x5ee9b2);}const _0x21026a=yield _0x388115['json']();return new FailedApiKeyValueResponse(_0x21026a);}catch(_0x410d8c){if(_0x410d8c instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x410d8c['message'],'title':_0x410d8c['name'],'status':0x1f4,'instance':'','type':''});throw _0x410d8c;}});}['delete'](_0x36ab2b,_0x4b03d2,_0x945383){return __awaiter$4(this,void 0,void 0,function*(){const _0x1b98e8=this['path']+'/'+_0x36ab2b+'/'+_0x4b03d2;try{const _0x2d12b1=yield this['fetch']['delete'](_0x1b98e8,_0x945383);if(_0x2d12b1['status']>0xc7&&_0x2d12b1['status']<0x12c)return new SuccessfulResponse({});const _0x29881c=yield _0x2d12b1['json']();return new FailedResponse(_0x29881c);}catch(_0x28f4c4){if(_0x28f4c4 instanceof Error)return new FailedResponse({'detail':_0x28f4c4['message'],'title':_0x28f4c4['name'],'status':0x1f4,'instance':'','type':''});throw _0x28f4c4;}});}}
6
+
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x11a703,_0xd918b5,_0xe0ec9c,_0x15c1b8){function _0x1f864c(_0x5bc137){return _0x5bc137 instanceof _0xe0ec9c?_0x5bc137:new _0xe0ec9c(function(_0x168bca){_0x168bca(_0x5bc137);});}return new(_0xe0ec9c||(_0xe0ec9c=Promise))(function(_0x5941c8,_0x5044a6){function _0x334458(_0x39c946){try{_0x519df3(_0x15c1b8['next'](_0x39c946));}catch(_0x5bd0b5){_0x5044a6(_0x5bd0b5);}}function _0x3c4f28(_0x41d9be){try{_0x519df3(_0x15c1b8['throw'](_0x41d9be));}catch(_0x1efe8f){_0x5044a6(_0x1efe8f);}}function _0x519df3(_0x372d3f){_0x372d3f['done']?_0x5941c8(_0x372d3f['value']):_0x1f864c(_0x372d3f['value'])['then'](_0x334458,_0x3c4f28);}_0x519df3((_0x15c1b8=_0x15c1b8['apply'](_0x11a703,_0xd918b5||[]))['next']());});};class ListService{constructor(_0xecc096){this['fetch']=_0xecc096;}['add'](_0x2db3be,_0x59e227,_0x5a17e0,_0x34ead9){return __awaiter$3(this,void 0,void 0,function*(){const _0x2a777c='List',_0x2889a6={'account_name':_0x2db3be,'list_name':_0x59e227,'search_service_name':_0x5a17e0};try{const _0xded512=yield this['fetch']['post'](_0x2a777c,_0x34ead9,_0x2889a6);if(_0xded512['status']>0xc7&&_0xded512['status']<0x12c){const _0xfcf411=yield _0xded512['json']();return new SuccessfulListIdentityResponse(_0xfcf411);}const _0x327136=yield _0xded512['json']();return new FailedListIdentityResponse(_0x327136);}catch(_0x5ee5ea){if(_0x5ee5ea instanceof Error)return new FailedListIdentityResponse({'detail':_0x5ee5ea['message'],'title':_0x5ee5ea['name'],'status':0x1f4,'instance':'','type':''});throw _0x5ee5ea;}});}['delete'](_0x514cbb,_0xf84ee8,_0x268ec6){return __awaiter$3(this,void 0,void 0,function*(){const _0x135602='List/'+_0x514cbb+'/'+_0xf84ee8,_0x52e9cf=yield this['fetch']['delete'](_0x135602,_0x268ec6);try{if(_0x52e9cf['status']>0xc7&&_0x52e9cf['status']<0x12c)return new SuccessfulResponse({});const _0xa4a88d=yield _0x52e9cf['json']();return new FailedResponse(_0xa4a88d);}catch(_0x25a462){if(_0x25a462 instanceof Error)return new FailedResponse({'detail':_0x25a462['message'],'title':_0x25a462['name'],'status':0x1f4,'instance':'','type':''});throw _0x25a462;}});}}
8
+
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x1950d4,_0x115c3e,_0x1bd874,_0x595906){function _0x33f831(_0x5db6b5){return _0x5db6b5 instanceof _0x1bd874?_0x5db6b5:new _0x1bd874(function(_0xdcb173){_0xdcb173(_0x5db6b5);});}return new(_0x1bd874||(_0x1bd874=Promise))(function(_0x11d972,_0x181f2e){function _0x323656(_0x3a7eca){try{_0x15f75d(_0x595906['next'](_0x3a7eca));}catch(_0x10bcca){_0x181f2e(_0x10bcca);}}function _0x225d2e(_0x599696){try{_0x15f75d(_0x595906['throw'](_0x599696));}catch(_0x46ca07){_0x181f2e(_0x46ca07);}}function _0x15f75d(_0x17903a){_0x17903a['done']?_0x11d972(_0x17903a['value']):_0x33f831(_0x17903a['value'])['then'](_0x323656,_0x225d2e);}_0x15f75d((_0x595906=_0x595906['apply'](_0x1950d4,_0x115c3e||[]))['next']());});};class Fetch{constructor(_0x4ecfb8){this['baseUri']=_0x4ecfb8,this['getUrl']=_0x437bd9=>{return _0x437bd9['startsWith']('/')&&(_0x437bd9=_0x437bd9['replace']('/','')),''+this['baseUri']+_0x437bd9;},!_0x4ecfb8['endsWith']('/')&&(_0x4ecfb8=_0x4ecfb8+'/');}['get'](_0xddc773,_0x27a809){return __awaiter$2(this,void 0,void 0,function*(){const _0xc071c6=this['getUrl'](_0xddc773);return yield fetch(_0xc071c6,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x27a809}});});}['post'](_0xbbc82f,_0x5b085c,_0x2d45de){return __awaiter$2(this,void 0,void 0,function*(){const _0x4fddfe=this['getUrl'](_0xbbc82f);return yield fetch(_0x4fddfe,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5b085c},'body':_0x2d45de?JSON['stringify'](_0x2d45de):null});});}['PostNoAuth'](_0x2d3528,_0x2c01e1){return __awaiter$2(this,void 0,void 0,function*(){const _0x1e7910=this['getUrl'](_0x2d3528);return yield fetch(_0x1e7910,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x2c01e1?JSON['stringify'](_0x2c01e1):null});});}['put'](_0x25cd07,_0x18cb5d,_0x28b70d){return __awaiter$2(this,void 0,void 0,function*(){const _0x9aacde=this['getUrl'](_0x25cd07);return yield fetch(_0x9aacde,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x18cb5d},'body':_0x28b70d?JSON['stringify'](_0x28b70d):null});});}['delete'](_0x5e6515,_0x57f1d8){return __awaiter$2(this,void 0,void 0,function*(){const _0x2114cc=this['getUrl'](_0x5e6515);return yield fetch(_0x2114cc,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x57f1d8}});});}}
10
+
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x2616cb,_0x512df2,_0xf679c1,_0x930653){function _0x469b71(_0x378b85){return _0x378b85 instanceof _0xf679c1?_0x378b85:new _0xf679c1(function(_0xc73ec3){_0xc73ec3(_0x378b85);});}return new(_0xf679c1||(_0xf679c1=Promise))(function(_0x42a295,_0x4e2df4){function _0x462c8e(_0x53c834){try{_0x5b11b2(_0x930653['next'](_0x53c834));}catch(_0x4dac94){_0x4e2df4(_0x4dac94);}}function _0x2c28aa(_0x113741){try{_0x5b11b2(_0x930653['throw'](_0x113741));}catch(_0x29258d){_0x4e2df4(_0x29258d);}}function _0x5b11b2(_0x355d59){_0x355d59['done']?_0x42a295(_0x355d59['value']):_0x469b71(_0x355d59['value'])['then'](_0x462c8e,_0x2c28aa);}_0x5b11b2((_0x930653=_0x930653['apply'](_0x2616cb,_0x512df2||[]))['next']());});};class SearchServersService{constructor(_0x31a2aa){this['fetch']=_0x31a2aa,this['path']='search-services';}['create'](_0x38d142,_0x24e2b1,_0x159b49,_0x2a3b8e,_0xf5f9b5,_0x2d841a,_0x2f294a,_0x59e7be){return __awaiter$1(this,void 0,void 0,function*(){const _0x30e25c={'account_name':_0x38d142,'search_service_name':_0x24e2b1,'endpoint':_0x159b49,'key':_0x2a3b8e,'country':_0xf5f9b5,'provider':_0x2d841a,'index_name':_0x2f294a};try{const _0x5b659d=yield this['fetch']['post'](this['path'],_0x59e7be,_0x30e25c);if(_0x5b659d['status']>0xc7&&_0x5b659d['status']<0x12c){const _0x39540d=yield _0x5b659d['json']();return new SuccessfulSearchServiceResponse(_0x39540d);}const _0x43efc5=yield _0x5b659d['json']();return new FailedSearchServiceResponse(_0x43efc5);}catch(_0x44646a){if(_0x44646a instanceof Error)return new FailedSearchServiceResponse({'detail':_0x44646a['message'],'title':_0x44646a['name'],'status':0x1f4,'instance':'','type':''});throw _0x44646a;}});}['delete'](_0x8d44e3,_0xf0b5cd,_0x291e64){return __awaiter$1(this,void 0,void 0,function*(){const _0x3c7b47=this['path']+'/'+_0x8d44e3+'/'+_0xf0b5cd;try{const _0x36f641=yield this['fetch']['delete'](_0x3c7b47,_0x291e64);if(_0x36f641['status']>0xc7&&_0x36f641['status']<0x12c)return new SuccessfulResponse({});const _0x4587c4=yield _0x36f641['json']();return new FailedResponse(_0x4587c4);}catch(_0x1f70e7){if(_0x1f70e7 instanceof Error)return new FailedResponse({'detail':_0x1f70e7['message'],'title':_0x1f70e7['name'],'status':0x1f4,'instance':'','type':''});throw _0x1f70e7;}});}['view'](_0x5479a6,_0x28caa1,_0x45c618){return __awaiter$1(this,void 0,void 0,function*(){const _0x58fc63=this['path']+'/'+_0x5479a6+'/'+_0x28caa1;try{const _0x460a4a=yield this['fetch']['get'](_0x58fc63,_0x45c618);if(_0x460a4a['status']>0xc7&&_0x460a4a['status']<0x12c){const _0x380a35=yield _0x460a4a['json']();return new SuccessfulViewSearchServiceResponse(_0x380a35);}const _0x21a29b=yield _0x460a4a['json']();return new FailedViewSearchServiceResponse(_0x21a29b);}catch(_0x5e9ac4){if(_0x5e9ac4 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x5e9ac4['message'],'title':_0x5e9ac4['name'],'status':0x1f4,'instance':'','type':''});throw _0x5e9ac4;}});}['edit'](_0x48e433,_0x5b2a7f,_0x278a27,_0x56361d,_0x362c42,_0x3093f0){return __awaiter$1(this,void 0,void 0,function*(){const _0x3062a0={'account_name':_0x48e433,'search_service_name':_0x5b2a7f,'new_search_service_name':_0x278a27,'key':_0x56361d,'country':_0x362c42};try{const _0x21e322=yield this['fetch']['put'](this['path'],_0x3093f0,_0x3062a0);if(_0x21e322['status']>0xc7&&_0x21e322['status']<0x12c){const _0x50a417=yield _0x21e322['json']();return new SuccessfulSearchServiceResponse(_0x50a417);}const _0x2bf822=yield _0x21e322['json']();return new FailedSearchServiceResponse(_0x2bf822);}catch(_0x9ed6ff){if(_0x9ed6ff instanceof Error)return new FailedSearchServiceResponse({'detail':_0x9ed6ff['message'],'title':_0x9ed6ff['name'],'status':0x1f4,'instance':'','type':''});throw _0x9ed6ff;}});}['list'](_0x337d40,_0x1081da){return __awaiter$1(this,void 0,void 0,function*(){const _0x110b19=this['path']+'/'+_0x337d40;try{const _0x37dbf9=yield this['fetch']['get'](_0x110b19,_0x1081da);if(_0x37dbf9['status']>0xc7&&_0x37dbf9['status']<0x12c){const _0x12ff4a=yield _0x37dbf9['json']();return new SuccessfulListSearchServiceResponse(_0x12ff4a);}const _0x1c500c=yield _0x37dbf9['json']();return new FailedViewSearchServicesResponse(_0x1c500c);}catch(_0x2438d6){if(_0x2438d6 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x2438d6['message'],'title':_0x2438d6['name'],'status':0x1f4,'instance':'','type':''});throw _0x2438d6;}});}}
12
+
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0xf3f2b7,_0x1b26f7,_0x188a9a,_0x41d92a){function _0x44c6b0(_0x3cfd64){return _0x3cfd64 instanceof _0x188a9a?_0x3cfd64:new _0x188a9a(function(_0x187d7c){_0x187d7c(_0x3cfd64);});}return new(_0x188a9a||(_0x188a9a=Promise))(function(_0x354f39,_0x596c5f){function _0x296a48(_0x5bb362){try{_0x532961(_0x41d92a['next'](_0x5bb362));}catch(_0x21fe18){_0x596c5f(_0x21fe18);}}function _0x3b6b9e(_0x8552ab){try{_0x532961(_0x41d92a['throw'](_0x8552ab));}catch(_0x4ae7e9){_0x596c5f(_0x4ae7e9);}}function _0x532961(_0x2b4a75){_0x2b4a75['done']?_0x354f39(_0x2b4a75['value']):_0x44c6b0(_0x2b4a75['value'])['then'](_0x296a48,_0x3b6b9e);}_0x532961((_0x41d92a=_0x41d92a['apply'](_0xf3f2b7,_0x1b26f7||[]))['next']());});};class AdminClient{constructor(_0x1c5bda='https://admin.searchability.dev/'){var _0x31a9c6=new Fetch(_0x1c5bda);this['Accounts']=new AccountService(_0x31a9c6),this['Lists']=new ListService(_0x31a9c6),this['ApiKeys']=new ApiKeyService(_0x31a9c6),this['SearchServices']=new SearchServersService(_0x31a9c6);}}class AuthClient{constructor(_0x490d4e='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x490d4e);}['login'](_0x389127){return __awaiter(this,void 0,void 0,function*(){const _0x5d0cea='login/'+_0x389127;try{const _0x37d9fd=yield yield fetch(_0x5d0cea);if(_0x37d9fd['status']>0xc7&&_0x37d9fd['status']<0x12c){const _0x4a4548=yield _0x37d9fd['json']();return new SuccessfulAuthResponse(_0x4a4548);}const _0x431465=yield _0x37d9fd['json']();return new FailedAuthResponse(_0x431465);}catch(_0x3377a7){if(_0x3377a7 instanceof Error)return new FailedAuthResponse({'detail':_0x3377a7['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3377a7;}});}['refresh'](_0xc4f97d){return __awaiter(this,void 0,void 0,function*(){const _0x45ef5f='refresh',_0x55c4e6={'refresh_token':_0xc4f97d};try{const _0x564290=yield this['fetch']['PostNoAuth'](_0x45ef5f,_0x55c4e6);if(_0x564290['status']>0xc7&&_0x564290['status']<0x12c){const _0x37df4a=yield _0x564290['json']();return new SuccessfulAuthResponse(_0x37df4a);}const _0x58fe51=yield _0x564290['json']();return new FailedAuthResponse(_0x58fe51);}catch(_0x32685d){if(_0x32685d instanceof Error)return new FailedAuthResponse({'detail':_0x32685d['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x32685d;}});}['getTokenStatus'](_0x2cbe6e){if(Date['now']()<_0x2cbe6e['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x2cbe6e['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
14
+
15
+ export { AdminClient, AuthClient, TokenStatus, Tokens };
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- exports.TokenStatus = void 0;(function(_0x2d48b9){_0x2d48b9[_0x2d48b9['Ok']=0x0]='Ok',_0x2d48b9[_0x2d48b9['Refresh']=0x1]='Refresh',_0x2d48b9[_0x2d48b9['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(_0x36cea9){this['isSuccess']=_0x36cea9;}}class SuccessfulAccountResponse extends Response{constructor(_0x436424){super(!![]),this['account']=_0x436424;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0xcd3a0b){super(!![]),this['list']=_0xcd3a0b;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x4ba35d){super(![]),this['problem']=_0x4ba35d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x4913e6){super(![]),this['problem']=_0x4913e6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x77722c){super(!![]),this['tokens']=_0x77722c;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x198c3a){super(![]),this['problem']=_0x198c3a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x3db14c){super(!![]),this['apiKey']=_0x3db14c;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x5482c2){super(![]),this['problem']=_0x5482c2;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x54ffc0){super(!![]),this['searchService']=_0x54ffc0;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x3b18b0){super(![]),this['problem']=_0x3b18b0;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x27b916){super(!![]),this['searchService']=_0x27b916;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0xbabe32){super(!![]),this['searchServices']=_0xbabe32;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x5b44ea){super(![]),this['problem']=_0x5b44ea;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x1d7116){super(![]),this['problem']=_0x1d7116;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x5395aa){super(!![]),this['apiKeyValue']=_0x5395aa;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0xb9330e){super(!![]),this['obj']=_0xb9330e;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x1b95f3){super(![]),this['problem']=_0x1b95f3;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x4f0d41){super(![]),this['problem']=_0x4f0d41;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
3
+ exports.TokenStatus = void 0;(function(_0x42351a){_0x42351a[_0x42351a['Ok']=0x0]='Ok',_0x42351a[_0x42351a['Refresh']=0x1]='Refresh',_0x42351a[_0x42351a['Expired']=0x2]='Expired';}(exports.TokenStatus||(exports.TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x5299c7){this['isSuccess']=_0x5299c7;}}class SuccessfulAccountResponse extends Response{constructor(_0x374324){super(!![]),this['account']=_0x374324;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x406481){super(!![]),this['list']=_0x406481;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x2333fd){super(![]),this['problem']=_0x2333fd;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x2996e8){super(![]),this['problem']=_0x2996e8;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x2a4e3f){super(!![]),this['tokens']=_0x2a4e3f;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x2d678e){super(![]),this['problem']=_0x2d678e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x571fde){super(!![]),this['apiKey']=_0x571fde;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x4b42aa){super(![]),this['problem']=_0x4b42aa;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x235f22){super(!![]),this['searchService']=_0x235f22;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x39b1b4){super(![]),this['problem']=_0x39b1b4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x2480e5){super(!![]),this['searchService']=_0x2480e5;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x50a1f8){super(!![]),this['searchServices']=_0x50a1f8;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x13ec3d){super(![]),this['problem']=_0x13ec3d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x426f14){super(![]),this['problem']=_0x426f14;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x3f3069){super(!![]),this['apiKeyValue']=_0x3f3069;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x53c17c){super(!![]),this['obj']=_0x53c17c;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x200ae4){super(![]),this['problem']=_0x200ae4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x466669){super(![]),this['problem']=_0x466669;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
4
4
 
5
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x4d092d,_0x2c130f,_0x5772a3,_0x551dfe){function _0x15e747(_0x33b752){return _0x33b752 instanceof _0x5772a3?_0x33b752:new _0x5772a3(function(_0x5e7c28){_0x5e7c28(_0x33b752);});}return new(_0x5772a3||(_0x5772a3=Promise))(function(_0x31cc4f,_0x242c9b){function _0x2cfac6(_0x190dde){try{_0x446de5(_0x551dfe['next'](_0x190dde));}catch(_0xcaa4dc){_0x242c9b(_0xcaa4dc);}}function _0x3cb3d1(_0x5eeb7f){try{_0x446de5(_0x551dfe['throw'](_0x5eeb7f));}catch(_0x1b14d2){_0x242c9b(_0x1b14d2);}}function _0x446de5(_0x431311){_0x431311['done']?_0x31cc4f(_0x431311['value']):_0x15e747(_0x431311['value'])['then'](_0x2cfac6,_0x3cb3d1);}_0x446de5((_0x551dfe=_0x551dfe['apply'](_0x4d092d,_0x2c130f||[]))['next']());});};class AccountService{constructor(_0x2ea1ea){this['fetch']=_0x2ea1ea;}['get'](_0x3c7617,_0x4dfcd6){return __awaiter$5(this,void 0,void 0,function*(){const _0x1d8a0d='Account/'+_0x3c7617+'/',_0x4f8485=yield this['fetch']['get'](_0x1d8a0d,_0x4dfcd6);try{if(_0x4f8485['status']>0xc7&&_0x4f8485['status']<0x12c){const _0x59ac5e=yield _0x4f8485['json']();return new SuccessfulAccountResponse(_0x59ac5e);}const _0x3be07b=yield _0x4f8485['json']();return new FailedAccountResponse(_0x3be07b);}catch(_0x308180){if(_0x308180 instanceof Error)return new FailedAccountResponse({'detail':_0x308180['message'],'title':_0x308180['name'],'status':0x1f4,'instance':'','type':''});throw _0x308180;}});}}
5
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x1eab9a,_0x4f8518,_0x1c1d71,_0x3d86dc){function _0x5c7738(_0x12b189){return _0x12b189 instanceof _0x1c1d71?_0x12b189:new _0x1c1d71(function(_0x4b8d98){_0x4b8d98(_0x12b189);});}return new(_0x1c1d71||(_0x1c1d71=Promise))(function(_0x17a630,_0x4ed6ac){function _0x1e020d(_0x272d3a){try{_0x3334f2(_0x3d86dc['next'](_0x272d3a));}catch(_0x3f4516){_0x4ed6ac(_0x3f4516);}}function _0x2958f9(_0x4bc183){try{_0x3334f2(_0x3d86dc['throw'](_0x4bc183));}catch(_0x5cea19){_0x4ed6ac(_0x5cea19);}}function _0x3334f2(_0x398718){_0x398718['done']?_0x17a630(_0x398718['value']):_0x5c7738(_0x398718['value'])['then'](_0x1e020d,_0x2958f9);}_0x3334f2((_0x3d86dc=_0x3d86dc['apply'](_0x1eab9a,_0x4f8518||[]))['next']());});};class AccountService{constructor(_0x36e39d){this['fetch']=_0x36e39d;}['get'](_0x71ff90,_0x3ac812){return __awaiter$5(this,void 0,void 0,function*(){const _0x2a9785='Account/'+_0x71ff90+'/',_0x4cd903=yield this['fetch']['get'](_0x2a9785,_0x3ac812);try{if(_0x4cd903['status']>0xc7&&_0x4cd903['status']<0x12c){const _0x21fc63=yield _0x4cd903['json']();return new SuccessfulAccountResponse(_0x21fc63);}const _0x2c7891=yield _0x4cd903['json']();return new FailedAccountResponse(_0x2c7891);}catch(_0x464f8d){if(_0x464f8d instanceof Error)return new FailedAccountResponse({'detail':_0x464f8d['message'],'title':_0x464f8d['name'],'status':0x1f4,'instance':'','type':''});throw _0x464f8d;}});}}
6
6
 
7
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x24d482,_0xf4d54f,_0x39fcf9,_0x6e42b6){function _0x27cdca(_0x52901a){return _0x52901a instanceof _0x39fcf9?_0x52901a:new _0x39fcf9(function(_0xf01f56){_0xf01f56(_0x52901a);});}return new(_0x39fcf9||(_0x39fcf9=Promise))(function(_0x536328,_0x1d676c){function _0x4d5d69(_0x385b85){try{_0x158012(_0x6e42b6['next'](_0x385b85));}catch(_0x374381){_0x1d676c(_0x374381);}}function _0x324b44(_0x530176){try{_0x158012(_0x6e42b6['throw'](_0x530176));}catch(_0x553bcc){_0x1d676c(_0x553bcc);}}function _0x158012(_0x2963cd){_0x2963cd['done']?_0x536328(_0x2963cd['value']):_0x27cdca(_0x2963cd['value'])['then'](_0x4d5d69,_0x324b44);}_0x158012((_0x6e42b6=_0x6e42b6['apply'](_0x24d482,_0xf4d54f||[]))['next']());});};class ApiKeyService{constructor(_0x120b42){this['fetch']=_0x120b42,this['path']='api-key';}['create'](_0x356297,_0x4c06b5,_0x48769c){return __awaiter$4(this,void 0,void 0,function*(){const _0x38b212={'account_name':_0x356297,'api_key_name':_0x4c06b5};try{const _0x5dd74a=yield this['fetch']['post'](this['path'],_0x48769c,_0x38b212);if(_0x5dd74a['status']>0xc7&&_0x5dd74a['status']<0x12c){const _0x568c91=yield _0x5dd74a['json']();return new SuccessfulApiKeyResponse(_0x568c91);}const _0x15a6f9=yield _0x5dd74a['json']();return new FailedApiKeyResponse(_0x15a6f9);}catch(_0x419211){if(_0x419211 instanceof Error)return new FailedApiKeyResponse({'detail':_0x419211['message'],'title':_0x419211['name'],'status':0x1f4,'instance':'','type':''});throw _0x419211;}});}['view'](_0x23ead0,_0x676fd9,_0x5d6843){return __awaiter$4(this,void 0,void 0,function*(){const _0x5add62=this['path']+'/'+_0x23ead0+'/'+_0x676fd9;try{const _0xfd5eff=yield this['fetch']['get'](_0x5add62,_0x5d6843);if(_0xfd5eff['status']>0xc7&&_0xfd5eff['status']<0x12c){const _0x460ae8=yield _0xfd5eff['json']();return new SuccessfulApiKeyValueResponse(_0x460ae8);}const _0x43eff5=yield _0xfd5eff['json']();return new FailedApiKeyValueResponse(_0x43eff5);}catch(_0x274298){if(_0x274298 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x274298['message'],'title':_0x274298['name'],'status':0x1f4,'instance':'','type':''});throw _0x274298;}});}['delete'](_0x21f338,_0x3791a2,_0x1723f1){return __awaiter$4(this,void 0,void 0,function*(){const _0x21907b=this['path']+'/'+_0x21f338+'/'+_0x3791a2;try{const _0xd844a3=yield this['fetch']['delete'](_0x21907b,_0x1723f1);if(_0xd844a3['status']>0xc7&&_0xd844a3['status']<0x12c)return new SuccessfulResponse({});const _0xfff0c4=yield _0xd844a3['json']();return new FailedResponse(_0xfff0c4);}catch(_0xc9f2ee){if(_0xc9f2ee instanceof Error)return new FailedResponse({'detail':_0xc9f2ee['message'],'title':_0xc9f2ee['name'],'status':0x1f4,'instance':'','type':''});throw _0xc9f2ee;}});}}
7
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x220c99,_0xc50d51,_0x51a21e,_0x48b1bf){function _0xf83330(_0x556724){return _0x556724 instanceof _0x51a21e?_0x556724:new _0x51a21e(function(_0x22a056){_0x22a056(_0x556724);});}return new(_0x51a21e||(_0x51a21e=Promise))(function(_0x38193a,_0x2fdf2e){function _0x1e7dc7(_0xfb953d){try{_0x5596de(_0x48b1bf['next'](_0xfb953d));}catch(_0x2f33a5){_0x2fdf2e(_0x2f33a5);}}function _0x1cd5a6(_0x5854d9){try{_0x5596de(_0x48b1bf['throw'](_0x5854d9));}catch(_0x495af7){_0x2fdf2e(_0x495af7);}}function _0x5596de(_0x306b5c){_0x306b5c['done']?_0x38193a(_0x306b5c['value']):_0xf83330(_0x306b5c['value'])['then'](_0x1e7dc7,_0x1cd5a6);}_0x5596de((_0x48b1bf=_0x48b1bf['apply'](_0x220c99,_0xc50d51||[]))['next']());});};class ApiKeyService{constructor(_0x281150){this['fetch']=_0x281150,this['path']='api-key';}['create'](_0x32bd2b,_0x45bde7,_0x209fee){return __awaiter$4(this,void 0,void 0,function*(){const _0x5df6ec={'account_name':_0x32bd2b,'api_key_name':_0x45bde7};try{const _0x53095a=yield this['fetch']['post'](this['path'],_0x209fee,_0x5df6ec);if(_0x53095a['status']>0xc7&&_0x53095a['status']<0x12c){const _0x2c3fad=yield _0x53095a['json']();return new SuccessfulApiKeyResponse(_0x2c3fad);}const _0x444d27=yield _0x53095a['json']();return new FailedApiKeyResponse(_0x444d27);}catch(_0x3ec24b){if(_0x3ec24b instanceof Error)return new FailedApiKeyResponse({'detail':_0x3ec24b['message'],'title':_0x3ec24b['name'],'status':0x1f4,'instance':'','type':''});throw _0x3ec24b;}});}['view'](_0x566cfd,_0x41cf6d,_0x3a56ab){return __awaiter$4(this,void 0,void 0,function*(){const _0x34083c=this['path']+'/'+_0x566cfd+'/'+_0x41cf6d;try{const _0xe6432e=yield this['fetch']['get'](_0x34083c,_0x3a56ab);if(_0xe6432e['status']>0xc7&&_0xe6432e['status']<0x12c){const _0x3a3132=yield _0xe6432e['json']();return new SuccessfulApiKeyValueResponse(_0x3a3132);}const _0x4bfdb3=yield _0xe6432e['json']();return new FailedApiKeyValueResponse(_0x4bfdb3);}catch(_0x335021){if(_0x335021 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x335021['message'],'title':_0x335021['name'],'status':0x1f4,'instance':'','type':''});throw _0x335021;}});}['delete'](_0x4f8e06,_0x3a297b,_0x2cb9a0){return __awaiter$4(this,void 0,void 0,function*(){const _0x5c27a7=this['path']+'/'+_0x4f8e06+'/'+_0x3a297b;try{const _0xa1ccc3=yield this['fetch']['delete'](_0x5c27a7,_0x2cb9a0);if(_0xa1ccc3['status']>0xc7&&_0xa1ccc3['status']<0x12c)return new SuccessfulResponse({});const _0xb4bfa3=yield _0xa1ccc3['json']();return new FailedResponse(_0xb4bfa3);}catch(_0x5ebc2a){if(_0x5ebc2a instanceof Error)return new FailedResponse({'detail':_0x5ebc2a['message'],'title':_0x5ebc2a['name'],'status':0x1f4,'instance':'','type':''});throw _0x5ebc2a;}});}}
8
8
 
9
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x5a3dc7,_0x18d12a,_0x2bc141,_0xd7c18a){function _0x588824(_0x3b3919){return _0x3b3919 instanceof _0x2bc141?_0x3b3919:new _0x2bc141(function(_0xbb68e0){_0xbb68e0(_0x3b3919);});}return new(_0x2bc141||(_0x2bc141=Promise))(function(_0x45aae3,_0x26ca65){function _0x5c1555(_0x20a7e1){try{_0x291822(_0xd7c18a['next'](_0x20a7e1));}catch(_0x2ff207){_0x26ca65(_0x2ff207);}}function _0xe1640f(_0x2b9631){try{_0x291822(_0xd7c18a['throw'](_0x2b9631));}catch(_0x55b078){_0x26ca65(_0x55b078);}}function _0x291822(_0x2e5e61){_0x2e5e61['done']?_0x45aae3(_0x2e5e61['value']):_0x588824(_0x2e5e61['value'])['then'](_0x5c1555,_0xe1640f);}_0x291822((_0xd7c18a=_0xd7c18a['apply'](_0x5a3dc7,_0x18d12a||[]))['next']());});};class ListService{constructor(_0xe09779){this['fetch']=_0xe09779;}['add'](_0x3dc361,_0x5c8ba9,_0x4ce58c,_0x33d97b){return __awaiter$3(this,void 0,void 0,function*(){const _0x5db087='List',_0xfb2ec5={'account_name':_0x3dc361,'list_name':_0x5c8ba9,'search_service_name':_0x4ce58c};try{const _0x2ddcec=yield this['fetch']['post'](_0x5db087,_0x33d97b,_0xfb2ec5);if(_0x2ddcec['status']>0xc7&&_0x2ddcec['status']<0x12c){const _0x1bc970=yield _0x2ddcec['json']();return new SuccessfulListIdentityResponse(_0x1bc970);}const _0x340dd4=yield _0x2ddcec['json']();return new FailedListIdentityResponse(_0x340dd4);}catch(_0x18046a){if(_0x18046a instanceof Error)return new FailedListIdentityResponse({'detail':_0x18046a['message'],'title':_0x18046a['name'],'status':0x1f4,'instance':'','type':''});throw _0x18046a;}});}['delete'](_0x35cfa1,_0x2974de,_0x842cb6){return __awaiter$3(this,void 0,void 0,function*(){const _0x524d72='List/'+_0x35cfa1+'/'+_0x2974de,_0x25a7b7=yield this['fetch']['delete'](_0x524d72,_0x842cb6);try{if(_0x25a7b7['status']>0xc7&&_0x25a7b7['status']<0x12c){const _0x41d3af=yield _0x25a7b7['json']();return new SuccessfulResponse({});}const _0x5e99a5=yield _0x25a7b7['json']();return new FailedResponse(_0x5e99a5);}catch(_0x4b68fb){if(_0x4b68fb instanceof Error)return new FailedResponse({'detail':_0x4b68fb['message'],'title':_0x4b68fb['name'],'status':0x1f4,'instance':'','type':''});throw _0x4b68fb;}});}}
9
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x545c39,_0x3a3bc1,_0x382677,_0x1017a4){function _0x27a1e0(_0x3b50ca){return _0x3b50ca instanceof _0x382677?_0x3b50ca:new _0x382677(function(_0x56df69){_0x56df69(_0x3b50ca);});}return new(_0x382677||(_0x382677=Promise))(function(_0x3b2a6b,_0x3d8b5c){function _0x48d3cc(_0x43d4aa){try{_0x1ee421(_0x1017a4['next'](_0x43d4aa));}catch(_0x3181e3){_0x3d8b5c(_0x3181e3);}}function _0x45baba(_0x3f38e4){try{_0x1ee421(_0x1017a4['throw'](_0x3f38e4));}catch(_0x554d02){_0x3d8b5c(_0x554d02);}}function _0x1ee421(_0x2d994e){_0x2d994e['done']?_0x3b2a6b(_0x2d994e['value']):_0x27a1e0(_0x2d994e['value'])['then'](_0x48d3cc,_0x45baba);}_0x1ee421((_0x1017a4=_0x1017a4['apply'](_0x545c39,_0x3a3bc1||[]))['next']());});};class ListService{constructor(_0x1b1e0b){this['fetch']=_0x1b1e0b;}['add'](_0xc4458f,_0x32adcf,_0x1540fe,_0x313177){return __awaiter$3(this,void 0,void 0,function*(){const _0x1a1efa='List',_0x49a952={'account_name':_0xc4458f,'list_name':_0x32adcf,'search_service_name':_0x1540fe};try{const _0x326518=yield this['fetch']['post'](_0x1a1efa,_0x313177,_0x49a952);if(_0x326518['status']>0xc7&&_0x326518['status']<0x12c){const _0x81fdaf=yield _0x326518['json']();return new SuccessfulListIdentityResponse(_0x81fdaf);}const _0x25c15f=yield _0x326518['json']();return new FailedListIdentityResponse(_0x25c15f);}catch(_0x4e91f5){if(_0x4e91f5 instanceof Error)return new FailedListIdentityResponse({'detail':_0x4e91f5['message'],'title':_0x4e91f5['name'],'status':0x1f4,'instance':'','type':''});throw _0x4e91f5;}});}['delete'](_0x5a63bd,_0x1c2bc9,_0x55d26a){return __awaiter$3(this,void 0,void 0,function*(){const _0x168df8='List/'+_0x5a63bd+'/'+_0x1c2bc9,_0xea2bbd=yield this['fetch']['delete'](_0x168df8,_0x55d26a);try{if(_0xea2bbd['status']>0xc7&&_0xea2bbd['status']<0x12c)return new SuccessfulResponse({});const _0x43eb44=yield _0xea2bbd['json']();return new FailedResponse(_0x43eb44);}catch(_0x4816d8){if(_0x4816d8 instanceof Error)return new FailedResponse({'detail':_0x4816d8['message'],'title':_0x4816d8['name'],'status':0x1f4,'instance':'','type':''});throw _0x4816d8;}});}}
10
10
 
11
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x1662e8,_0x4351e1,_0x120107,_0x351d2e){function _0x34d7eb(_0x5244fd){return _0x5244fd instanceof _0x120107?_0x5244fd:new _0x120107(function(_0x288426){_0x288426(_0x5244fd);});}return new(_0x120107||(_0x120107=Promise))(function(_0x2cce69,_0x3d95d5){function _0x4b7262(_0x3e466f){try{_0x4d0b97(_0x351d2e['next'](_0x3e466f));}catch(_0x394cfe){_0x3d95d5(_0x394cfe);}}function _0x364ce7(_0x4ba6e3){try{_0x4d0b97(_0x351d2e['throw'](_0x4ba6e3));}catch(_0x56778d){_0x3d95d5(_0x56778d);}}function _0x4d0b97(_0x5deaa9){_0x5deaa9['done']?_0x2cce69(_0x5deaa9['value']):_0x34d7eb(_0x5deaa9['value'])['then'](_0x4b7262,_0x364ce7);}_0x4d0b97((_0x351d2e=_0x351d2e['apply'](_0x1662e8,_0x4351e1||[]))['next']());});};class Fetch{constructor(_0x544f21){this['baseUri']=_0x544f21,this['getUrl']=_0x1b8d2f=>{return _0x1b8d2f['startsWith']('/')&&(_0x1b8d2f=_0x1b8d2f['replace']('/','')),''+this['baseUri']+_0x1b8d2f;},!_0x544f21['endsWith']('/')&&(_0x544f21=_0x544f21+'/');}['get'](_0x21ff2b,_0x23a592){return __awaiter$2(this,void 0,void 0,function*(){const _0x5427a0=this['getUrl'](_0x21ff2b);return yield fetch(_0x5427a0,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x23a592}});});}['post'](_0x620b97,_0x239f2d,_0x4036e9){return __awaiter$2(this,void 0,void 0,function*(){const _0x16efb7=this['getUrl'](_0x620b97);return yield fetch(_0x16efb7,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x239f2d},'body':_0x4036e9?JSON['stringify'](_0x4036e9):null});});}['PostNoAuth'](_0x4ad639,_0x558a38){return __awaiter$2(this,void 0,void 0,function*(){const _0x17d259=this['getUrl'](_0x4ad639);return yield fetch(_0x17d259,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x558a38?JSON['stringify'](_0x558a38):null});});}['put'](_0x5a8bf0,_0x505e35,_0x3f220e){return __awaiter$2(this,void 0,void 0,function*(){const _0x1c5c5b=this['getUrl'](_0x5a8bf0);return yield fetch(_0x1c5c5b,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x505e35},'body':_0x3f220e?JSON['stringify'](_0x3f220e):null});});}['delete'](_0x2b3c2b,_0x234022){return __awaiter$2(this,void 0,void 0,function*(){const _0x46e971=this['getUrl'](_0x2b3c2b);return yield fetch(_0x46e971,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x234022}});});}}
11
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x952f47,_0x41240e,_0x49508c,_0x33d5ef){function _0x175c65(_0x1481a9){return _0x1481a9 instanceof _0x49508c?_0x1481a9:new _0x49508c(function(_0x921366){_0x921366(_0x1481a9);});}return new(_0x49508c||(_0x49508c=Promise))(function(_0x3c0a03,_0x54ce64){function _0x1953f4(_0x4a8441){try{_0x5ab7f0(_0x33d5ef['next'](_0x4a8441));}catch(_0x58cba5){_0x54ce64(_0x58cba5);}}function _0x9ed3aa(_0x3cb1dd){try{_0x5ab7f0(_0x33d5ef['throw'](_0x3cb1dd));}catch(_0x2ecbcc){_0x54ce64(_0x2ecbcc);}}function _0x5ab7f0(_0xbfa907){_0xbfa907['done']?_0x3c0a03(_0xbfa907['value']):_0x175c65(_0xbfa907['value'])['then'](_0x1953f4,_0x9ed3aa);}_0x5ab7f0((_0x33d5ef=_0x33d5ef['apply'](_0x952f47,_0x41240e||[]))['next']());});};class Fetch{constructor(_0x1e2130){this['baseUri']=_0x1e2130,this['getUrl']=_0x2bf6fe=>{return _0x2bf6fe['startsWith']('/')&&(_0x2bf6fe=_0x2bf6fe['replace']('/','')),''+this['baseUri']+_0x2bf6fe;},!_0x1e2130['endsWith']('/')&&(_0x1e2130=_0x1e2130+'/');}['get'](_0x327c10,_0xa089bc){return __awaiter$2(this,void 0,void 0,function*(){const _0x58a76d=this['getUrl'](_0x327c10);return yield fetch(_0x58a76d,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xa089bc}});});}['post'](_0x330852,_0x2ab831,_0x14b652){return __awaiter$2(this,void 0,void 0,function*(){const _0x3d1462=this['getUrl'](_0x330852);return yield fetch(_0x3d1462,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x2ab831},'body':_0x14b652?JSON['stringify'](_0x14b652):null});});}['PostNoAuth'](_0x1c9d3a,_0x3bb23b){return __awaiter$2(this,void 0,void 0,function*(){const _0xc4df0b=this['getUrl'](_0x1c9d3a);return yield fetch(_0xc4df0b,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x3bb23b?JSON['stringify'](_0x3bb23b):null});});}['put'](_0x5091bd,_0x3de2e0,_0x59163d){return __awaiter$2(this,void 0,void 0,function*(){const _0x5d8f5e=this['getUrl'](_0x5091bd);return yield fetch(_0x5d8f5e,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x3de2e0},'body':_0x59163d?JSON['stringify'](_0x59163d):null});});}['delete'](_0x109fec,_0x149c51){return __awaiter$2(this,void 0,void 0,function*(){const _0x29e64e=this['getUrl'](_0x109fec);return yield fetch(_0x29e64e,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x149c51}});});}}
12
12
 
13
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x472044,_0x41162e,_0x534f25,_0x14528d){function _0x1c9775(_0x26fc34){return _0x26fc34 instanceof _0x534f25?_0x26fc34:new _0x534f25(function(_0x3a6859){_0x3a6859(_0x26fc34);});}return new(_0x534f25||(_0x534f25=Promise))(function(_0x1b0b5d,_0x59a150){function _0x441282(_0x350430){try{_0x6898e(_0x14528d['next'](_0x350430));}catch(_0x3d6839){_0x59a150(_0x3d6839);}}function _0xe31d4c(_0x33badd){try{_0x6898e(_0x14528d['throw'](_0x33badd));}catch(_0x3490f9){_0x59a150(_0x3490f9);}}function _0x6898e(_0x21ffb6){_0x21ffb6['done']?_0x1b0b5d(_0x21ffb6['value']):_0x1c9775(_0x21ffb6['value'])['then'](_0x441282,_0xe31d4c);}_0x6898e((_0x14528d=_0x14528d['apply'](_0x472044,_0x41162e||[]))['next']());});};class SearchServersService{constructor(_0x456268){this['fetch']=_0x456268,this['path']='search-services';}['create'](_0x54103e,_0x4ab377,_0x5a675e,_0x2d7e6d,_0x11bd5b,_0x2a544a,_0x26647b,_0x6596a1){return __awaiter$1(this,void 0,void 0,function*(){const _0x5cba27={'account_name':_0x54103e,'search_service_name':_0x4ab377,'endpoint':_0x5a675e,'key':_0x2d7e6d,'country':_0x11bd5b,'provider':_0x2a544a,'index_name':_0x26647b};try{const _0x6d36a4=yield this['fetch']['post'](this['path'],_0x6596a1,_0x5cba27);if(_0x6d36a4['status']>0xc7&&_0x6d36a4['status']<0x12c){const _0x532d0a=yield _0x6d36a4['json']();return new SuccessfulSearchServiceResponse(_0x532d0a);}const _0x456be6=yield _0x6d36a4['json']();return new FailedSearchServiceResponse(_0x456be6);}catch(_0x3922ec){if(_0x3922ec instanceof Error)return new FailedSearchServiceResponse({'detail':_0x3922ec['message'],'title':_0x3922ec['name'],'status':0x1f4,'instance':'','type':''});throw _0x3922ec;}});}['delete'](_0x451f08,_0x1b744d,_0x4163e0){return __awaiter$1(this,void 0,void 0,function*(){const _0x3b0b69=this['path']+'/'+_0x451f08+'/'+_0x1b744d;try{const _0x8b0201=yield this['fetch']['delete'](_0x3b0b69,_0x4163e0);if(_0x8b0201['status']>0xc7&&_0x8b0201['status']<0x12c)return new SuccessfulResponse({});const _0x3a3a31=yield _0x8b0201['json']();return new FailedResponse(_0x3a3a31);}catch(_0x52480e){if(_0x52480e instanceof Error)return new FailedResponse({'detail':_0x52480e['message'],'title':_0x52480e['name'],'status':0x1f4,'instance':'','type':''});throw _0x52480e;}});}['view'](_0x10b29c,_0x8a94f0,_0x242e3f){return __awaiter$1(this,void 0,void 0,function*(){const _0x48eec0=this['path']+'/'+_0x10b29c+'/'+_0x8a94f0;try{const _0x51868a=yield this['fetch']['get'](_0x48eec0,_0x242e3f);if(_0x51868a['status']>0xc7&&_0x51868a['status']<0x12c){const _0x171f7e=yield _0x51868a['json']();return new SuccessfulViewSearchServiceResponse(_0x171f7e);}const _0x4a40a8=yield _0x51868a['json']();return new FailedViewSearchServiceResponse(_0x4a40a8);}catch(_0x4d6211){if(_0x4d6211 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x4d6211['message'],'title':_0x4d6211['name'],'status':0x1f4,'instance':'','type':''});throw _0x4d6211;}});}['edit'](_0x58d898,_0x5ac8e1,_0x43d3f9,_0x5be5d6,_0x319955,_0x28f09d){return __awaiter$1(this,void 0,void 0,function*(){const _0x3a441f={'account_name':_0x58d898,'search_service_name':_0x5ac8e1,'new_search_service_name':_0x43d3f9,'key':_0x5be5d6,'country':_0x319955};try{const _0x450bfc=yield this['fetch']['put'](this['path'],_0x28f09d,_0x3a441f);if(_0x450bfc['status']>0xc7&&_0x450bfc['status']<0x12c){const _0x5381db=yield _0x450bfc['json']();return new SuccessfulSearchServiceResponse(_0x5381db);}const _0x21457f=yield _0x450bfc['json']();return new FailedSearchServiceResponse(_0x21457f);}catch(_0x461ed8){if(_0x461ed8 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x461ed8['message'],'title':_0x461ed8['name'],'status':0x1f4,'instance':'','type':''});throw _0x461ed8;}});}['list'](_0x300234,_0xd882ea){return __awaiter$1(this,void 0,void 0,function*(){const _0x44a770=this['path']+'/'+_0x300234;try{const _0x33e8da=yield this['fetch']['get'](_0x44a770,_0xd882ea);if(_0x33e8da['status']>0xc7&&_0x33e8da['status']<0x12c){const _0xa42780=yield _0x33e8da['json']();return new SuccessfulListSearchServiceResponse(_0xa42780);}const _0x2e1367=yield _0x33e8da['json']();return new FailedViewSearchServicesResponse(_0x2e1367);}catch(_0x18a369){if(_0x18a369 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x18a369['message'],'title':_0x18a369['name'],'status':0x1f4,'instance':'','type':''});throw _0x18a369;}});}}
13
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x3b1c05,_0x5ea840,_0x5629a4,_0xf61ba3){function _0x502838(_0x2c979d){return _0x2c979d instanceof _0x5629a4?_0x2c979d:new _0x5629a4(function(_0x5544ae){_0x5544ae(_0x2c979d);});}return new(_0x5629a4||(_0x5629a4=Promise))(function(_0x6ab3a9,_0x2a14f2){function _0x3ba0e2(_0x2b4194){try{_0x19250a(_0xf61ba3['next'](_0x2b4194));}catch(_0x419237){_0x2a14f2(_0x419237);}}function _0x446d76(_0x2a8221){try{_0x19250a(_0xf61ba3['throw'](_0x2a8221));}catch(_0x5e0f69){_0x2a14f2(_0x5e0f69);}}function _0x19250a(_0x360d17){_0x360d17['done']?_0x6ab3a9(_0x360d17['value']):_0x502838(_0x360d17['value'])['then'](_0x3ba0e2,_0x446d76);}_0x19250a((_0xf61ba3=_0xf61ba3['apply'](_0x3b1c05,_0x5ea840||[]))['next']());});};class SearchServersService{constructor(_0x66c33f){this['fetch']=_0x66c33f,this['path']='search-services';}['create'](_0x31b480,_0x1c380b,_0x147ab7,_0x2e2967,_0x3cf953,_0x55652c,_0x30664a,_0x69c1e){return __awaiter$1(this,void 0,void 0,function*(){const _0x53b9b1={'account_name':_0x31b480,'search_service_name':_0x1c380b,'endpoint':_0x147ab7,'key':_0x2e2967,'country':_0x3cf953,'provider':_0x55652c,'index_name':_0x30664a};try{const _0x4f4295=yield this['fetch']['post'](this['path'],_0x69c1e,_0x53b9b1);if(_0x4f4295['status']>0xc7&&_0x4f4295['status']<0x12c){const _0x27702a=yield _0x4f4295['json']();return new SuccessfulSearchServiceResponse(_0x27702a);}const _0xe1c117=yield _0x4f4295['json']();return new FailedSearchServiceResponse(_0xe1c117);}catch(_0x31f14d){if(_0x31f14d instanceof Error)return new FailedSearchServiceResponse({'detail':_0x31f14d['message'],'title':_0x31f14d['name'],'status':0x1f4,'instance':'','type':''});throw _0x31f14d;}});}['delete'](_0x2ea6de,_0x34acd0,_0x5cb2cc){return __awaiter$1(this,void 0,void 0,function*(){const _0x3d635c=this['path']+'/'+_0x2ea6de+'/'+_0x34acd0;try{const _0x3a27a5=yield this['fetch']['delete'](_0x3d635c,_0x5cb2cc);if(_0x3a27a5['status']>0xc7&&_0x3a27a5['status']<0x12c)return new SuccessfulResponse({});const _0x4b8ea7=yield _0x3a27a5['json']();return new FailedResponse(_0x4b8ea7);}catch(_0x59891e){if(_0x59891e instanceof Error)return new FailedResponse({'detail':_0x59891e['message'],'title':_0x59891e['name'],'status':0x1f4,'instance':'','type':''});throw _0x59891e;}});}['view'](_0x17ad27,_0x172f3a,_0x36dc42){return __awaiter$1(this,void 0,void 0,function*(){const _0x29fa9d=this['path']+'/'+_0x17ad27+'/'+_0x172f3a;try{const _0x267ed8=yield this['fetch']['get'](_0x29fa9d,_0x36dc42);if(_0x267ed8['status']>0xc7&&_0x267ed8['status']<0x12c){const _0x4b9aba=yield _0x267ed8['json']();return new SuccessfulViewSearchServiceResponse(_0x4b9aba);}const _0x4a9deb=yield _0x267ed8['json']();return new FailedViewSearchServiceResponse(_0x4a9deb);}catch(_0x48d6a5){if(_0x48d6a5 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x48d6a5['message'],'title':_0x48d6a5['name'],'status':0x1f4,'instance':'','type':''});throw _0x48d6a5;}});}['edit'](_0x93d12c,_0x15b527,_0x3c0425,_0x37b638,_0x5d677f,_0x3d815e){return __awaiter$1(this,void 0,void 0,function*(){const _0x4c7a90={'account_name':_0x93d12c,'search_service_name':_0x15b527,'new_search_service_name':_0x3c0425,'key':_0x37b638,'country':_0x5d677f};try{const _0x189181=yield this['fetch']['put'](this['path'],_0x3d815e,_0x4c7a90);if(_0x189181['status']>0xc7&&_0x189181['status']<0x12c){const _0x1736eb=yield _0x189181['json']();return new SuccessfulSearchServiceResponse(_0x1736eb);}const _0x174e15=yield _0x189181['json']();return new FailedSearchServiceResponse(_0x174e15);}catch(_0x49ba28){if(_0x49ba28 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x49ba28['message'],'title':_0x49ba28['name'],'status':0x1f4,'instance':'','type':''});throw _0x49ba28;}});}['list'](_0x3da9bf,_0x59546f){return __awaiter$1(this,void 0,void 0,function*(){const _0x2277d4=this['path']+'/'+_0x3da9bf;try{const _0x1fbdfe=yield this['fetch']['get'](_0x2277d4,_0x59546f);if(_0x1fbdfe['status']>0xc7&&_0x1fbdfe['status']<0x12c){const _0x4e76e5=yield _0x1fbdfe['json']();return new SuccessfulListSearchServiceResponse(_0x4e76e5);}const _0x23f82e=yield _0x1fbdfe['json']();return new FailedViewSearchServicesResponse(_0x23f82e);}catch(_0xb58f51){if(_0xb58f51 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0xb58f51['message'],'title':_0xb58f51['name'],'status':0x1f4,'instance':'','type':''});throw _0xb58f51;}});}}
14
14
 
15
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x4533fc,_0x5121c4,_0x1c784d,_0x2120cb){function _0x1d9792(_0x226e88){return _0x226e88 instanceof _0x1c784d?_0x226e88:new _0x1c784d(function(_0x70600d){_0x70600d(_0x226e88);});}return new(_0x1c784d||(_0x1c784d=Promise))(function(_0x336753,_0x4ef15d){function _0x2e2c24(_0x4a8177){try{_0x392036(_0x2120cb['next'](_0x4a8177));}catch(_0x200d2b){_0x4ef15d(_0x200d2b);}}function _0xfad683(_0x4d7716){try{_0x392036(_0x2120cb['throw'](_0x4d7716));}catch(_0x3445dd){_0x4ef15d(_0x3445dd);}}function _0x392036(_0x2f8eee){_0x2f8eee['done']?_0x336753(_0x2f8eee['value']):_0x1d9792(_0x2f8eee['value'])['then'](_0x2e2c24,_0xfad683);}_0x392036((_0x2120cb=_0x2120cb['apply'](_0x4533fc,_0x5121c4||[]))['next']());});};class AdminClient{constructor(_0x4402b0='https://admin.searchability.dev/'){var _0x32db57=new Fetch(_0x4402b0);this['Accounts']=new AccountService(_0x32db57),this['Lists']=new ListService(_0x32db57),this['ApiKeys']=new ApiKeyService(_0x32db57),this['SearchServices']=new SearchServersService(_0x32db57);}}class AuthClient{constructor(_0x422da3='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x422da3);}['login'](_0x2428e9){return __awaiter(this,void 0,void 0,function*(){const _0x21608b='login/'+_0x2428e9;try{const _0x1965df=yield yield fetch(_0x21608b);if(_0x1965df['status']>0xc7&&_0x1965df['status']<0x12c){const _0xbc2ee=yield _0x1965df['json']();return new SuccessfulAuthResponse(_0xbc2ee);}const _0xc47595=yield _0x1965df['json']();return new FailedAuthResponse(_0xc47595);}catch(_0x838c03){if(_0x838c03 instanceof Error)return new FailedAuthResponse({'detail':_0x838c03['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x838c03;}});}['refresh'](_0x284bfa){return __awaiter(this,void 0,void 0,function*(){const _0x403c38='refresh',_0x14174f={'refresh_token':_0x284bfa};try{const _0x1a2c4c=yield this['fetch']['PostNoAuth'](_0x403c38,_0x14174f);if(_0x1a2c4c['status']>0xc7&&_0x1a2c4c['status']<0x12c){const _0x492469=yield _0x1a2c4c['json']();return new SuccessfulAuthResponse(_0x492469);}const _0x863366=yield _0x1a2c4c['json']();return new FailedAuthResponse(_0x863366);}catch(_0x532292){if(_0x532292 instanceof Error)return new FailedAuthResponse({'detail':_0x532292['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x532292;}});}['getTokenStatus'](_0x488c71){if(Date['now']()<_0x488c71['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x488c71['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
15
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x1f292d,_0x507403,_0x596783,_0x252803){function _0x3420ba(_0x54daca){return _0x54daca instanceof _0x596783?_0x54daca:new _0x596783(function(_0x6b74f3){_0x6b74f3(_0x54daca);});}return new(_0x596783||(_0x596783=Promise))(function(_0x4b343b,_0x27c19f){function _0x5a8ff3(_0x453cb7){try{_0xbcc52f(_0x252803['next'](_0x453cb7));}catch(_0x5f2730){_0x27c19f(_0x5f2730);}}function _0x348f42(_0x1b4a30){try{_0xbcc52f(_0x252803['throw'](_0x1b4a30));}catch(_0x48d2c0){_0x27c19f(_0x48d2c0);}}function _0xbcc52f(_0x3f389a){_0x3f389a['done']?_0x4b343b(_0x3f389a['value']):_0x3420ba(_0x3f389a['value'])['then'](_0x5a8ff3,_0x348f42);}_0xbcc52f((_0x252803=_0x252803['apply'](_0x1f292d,_0x507403||[]))['next']());});};class AdminClient{constructor(_0x4f4dbc='https://admin.searchability.dev/'){var _0x29460c=new Fetch(_0x4f4dbc);this['Accounts']=new AccountService(_0x29460c),this['Lists']=new ListService(_0x29460c),this['ApiKeys']=new ApiKeyService(_0x29460c),this['SearchServices']=new SearchServersService(_0x29460c);}}class AuthClient{constructor(_0x1e7586='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x1e7586);}['login'](_0x171a05){return __awaiter(this,void 0,void 0,function*(){const _0x2211b7='login/'+_0x171a05;try{const _0x4edb2b=yield yield fetch(_0x2211b7);if(_0x4edb2b['status']>0xc7&&_0x4edb2b['status']<0x12c){const _0x4370b6=yield _0x4edb2b['json']();return new SuccessfulAuthResponse(_0x4370b6);}const _0x3051a3=yield _0x4edb2b['json']();return new FailedAuthResponse(_0x3051a3);}catch(_0x2fc8a1){if(_0x2fc8a1 instanceof Error)return new FailedAuthResponse({'detail':_0x2fc8a1['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2fc8a1;}});}['refresh'](_0x433cbc){return __awaiter(this,void 0,void 0,function*(){const _0x1846f9='refresh',_0x44e338={'refresh_token':_0x433cbc};try{const _0x5edddd=yield this['fetch']['PostNoAuth'](_0x1846f9,_0x44e338);if(_0x5edddd['status']>0xc7&&_0x5edddd['status']<0x12c){const _0x562d54=yield _0x5edddd['json']();return new SuccessfulAuthResponse(_0x562d54);}const _0x2252a8=yield _0x5edddd['json']();return new FailedAuthResponse(_0x2252a8);}catch(_0x2b0404){if(_0x2b0404 instanceof Error)return new FailedAuthResponse({'detail':_0x2b0404['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2b0404;}});}['getTokenStatus'](_0x3a9cec){if(Date['now']()<_0x3a9cec['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x3a9cec['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
16
16
 
17
17
  exports.AdminClient = AdminClient;
18
18
  exports.AuthClient = AuthClient;
@@ -1,15 +1,15 @@
1
- var TokenStatus;(function(_0x153689){_0x153689[_0x153689['Ok']=0x0]='Ok',_0x153689[_0x153689['Refresh']=0x1]='Refresh',_0x153689[_0x153689['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(_0x10070e){this['isSuccess']=_0x10070e;}}class SuccessfulAccountResponse extends Response{constructor(_0x3edcf7){super(!![]),this['account']=_0x3edcf7;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x1ce362){super(!![]),this['list']=_0x1ce362;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x5a1c5b){super(![]),this['problem']=_0x5a1c5b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x53810e){super(![]),this['problem']=_0x53810e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x4b58eb){super(!![]),this['tokens']=_0x4b58eb;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x52eb4d){super(![]),this['problem']=_0x52eb4d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x32032a){super(!![]),this['apiKey']=_0x32032a;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x50e8fa){super(![]),this['problem']=_0x50e8fa;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x41ddc5){super(!![]),this['searchService']=_0x41ddc5;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x13de3f){super(![]),this['problem']=_0x13de3f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x3454cf){super(!![]),this['searchService']=_0x3454cf;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x58adee){super(!![]),this['searchServices']=_0x58adee;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x162e5b){super(![]),this['problem']=_0x162e5b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x4de720){super(![]),this['problem']=_0x4de720;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x1c5d6d){super(!![]),this['apiKeyValue']=_0x1c5d6d;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x142fab){super(!![]),this['obj']=_0x142fab;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x184e09){super(![]),this['problem']=_0x184e09;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x436126){super(![]),this['problem']=_0x436126;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
1
+ var TokenStatus;(function(_0x555e90){_0x555e90[_0x555e90['Ok']=0x0]='Ok',_0x555e90[_0x555e90['Refresh']=0x1]='Refresh',_0x555e90[_0x555e90['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x589bb8){this['isSuccess']=_0x589bb8;}}class SuccessfulAccountResponse extends Response{constructor(_0x12cf26){super(!![]),this['account']=_0x12cf26;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x337f7f){super(!![]),this['list']=_0x337f7f;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x54739e){super(![]),this['problem']=_0x54739e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0xfce474){super(![]),this['problem']=_0xfce474;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x6820f3){super(!![]),this['tokens']=_0x6820f3;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0xfea91){super(![]),this['problem']=_0xfea91;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x526533){super(!![]),this['apiKey']=_0x526533;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x498a19){super(![]),this['problem']=_0x498a19;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x4661af){super(!![]),this['searchService']=_0x4661af;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x28a996){super(![]),this['problem']=_0x28a996;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x1b39c1){super(!![]),this['searchService']=_0x1b39c1;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x48333e){super(!![]),this['searchServices']=_0x48333e;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x3d20ef){super(![]),this['problem']=_0x3d20ef;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x352169){super(![]),this['problem']=_0x352169;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x19c35c){super(!![]),this['apiKeyValue']=_0x19c35c;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x547d84){super(!![]),this['obj']=_0x547d84;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x4ee5ef){super(![]),this['problem']=_0x4ee5ef;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x43eace){super(![]),this['problem']=_0x43eace;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
2
 
3
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x1ea23a,_0x41763a,_0x1d37eb,_0x44cde9){function _0x227f0e(_0x952e73){return _0x952e73 instanceof _0x1d37eb?_0x952e73:new _0x1d37eb(function(_0xe5691){_0xe5691(_0x952e73);});}return new(_0x1d37eb||(_0x1d37eb=Promise))(function(_0x386284,_0x10cdc3){function _0x526f2e(_0x42ecbe){try{_0x731dc9(_0x44cde9['next'](_0x42ecbe));}catch(_0x33236d){_0x10cdc3(_0x33236d);}}function _0x48e7a7(_0x5ae244){try{_0x731dc9(_0x44cde9['throw'](_0x5ae244));}catch(_0x47c4f1){_0x10cdc3(_0x47c4f1);}}function _0x731dc9(_0x3e0c73){_0x3e0c73['done']?_0x386284(_0x3e0c73['value']):_0x227f0e(_0x3e0c73['value'])['then'](_0x526f2e,_0x48e7a7);}_0x731dc9((_0x44cde9=_0x44cde9['apply'](_0x1ea23a,_0x41763a||[]))['next']());});};class AccountService{constructor(_0x37cfbd){this['fetch']=_0x37cfbd;}['get'](_0x933e9a,_0x20c96d){return __awaiter$5(this,void 0,void 0,function*(){const _0x28b243='Account/'+_0x933e9a+'/',_0x2ffe35=yield this['fetch']['get'](_0x28b243,_0x20c96d);try{if(_0x2ffe35['status']>0xc7&&_0x2ffe35['status']<0x12c){const _0x342988=yield _0x2ffe35['json']();return new SuccessfulAccountResponse(_0x342988);}const _0x544eb9=yield _0x2ffe35['json']();return new FailedAccountResponse(_0x544eb9);}catch(_0x2c41a0){if(_0x2c41a0 instanceof Error)return new FailedAccountResponse({'detail':_0x2c41a0['message'],'title':_0x2c41a0['name'],'status':0x1f4,'instance':'','type':''});throw _0x2c41a0;}});}}
3
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x2a05b1,_0x4c762f,_0xf95329,_0x32edbd){function _0x17f574(_0x219640){return _0x219640 instanceof _0xf95329?_0x219640:new _0xf95329(function(_0x2629b3){_0x2629b3(_0x219640);});}return new(_0xf95329||(_0xf95329=Promise))(function(_0x1d1067,_0x504440){function _0x3b8b49(_0x3dc1c3){try{_0x473375(_0x32edbd['next'](_0x3dc1c3));}catch(_0x590f84){_0x504440(_0x590f84);}}function _0x368a9b(_0x5a0520){try{_0x473375(_0x32edbd['throw'](_0x5a0520));}catch(_0x467aed){_0x504440(_0x467aed);}}function _0x473375(_0x146cc1){_0x146cc1['done']?_0x1d1067(_0x146cc1['value']):_0x17f574(_0x146cc1['value'])['then'](_0x3b8b49,_0x368a9b);}_0x473375((_0x32edbd=_0x32edbd['apply'](_0x2a05b1,_0x4c762f||[]))['next']());});};class AccountService{constructor(_0x752749){this['fetch']=_0x752749;}['get'](_0x4f9a59,_0x1ef069){return __awaiter$5(this,void 0,void 0,function*(){const _0x4a249e='Account/'+_0x4f9a59+'/',_0x2d409a=yield this['fetch']['get'](_0x4a249e,_0x1ef069);try{if(_0x2d409a['status']>0xc7&&_0x2d409a['status']<0x12c){const _0x1dac3e=yield _0x2d409a['json']();return new SuccessfulAccountResponse(_0x1dac3e);}const _0x974e81=yield _0x2d409a['json']();return new FailedAccountResponse(_0x974e81);}catch(_0x2cf5fe){if(_0x2cf5fe instanceof Error)return new FailedAccountResponse({'detail':_0x2cf5fe['message'],'title':_0x2cf5fe['name'],'status':0x1f4,'instance':'','type':''});throw _0x2cf5fe;}});}}
4
4
 
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x9413e6,_0x23ec10,_0x5b0a22,_0x30ace4){function _0x34d972(_0xfc20fd){return _0xfc20fd instanceof _0x5b0a22?_0xfc20fd:new _0x5b0a22(function(_0x2c6b0c){_0x2c6b0c(_0xfc20fd);});}return new(_0x5b0a22||(_0x5b0a22=Promise))(function(_0x511bda,_0x35f709){function _0x377d37(_0x24bea7){try{_0x3d6d2c(_0x30ace4['next'](_0x24bea7));}catch(_0xd5bf17){_0x35f709(_0xd5bf17);}}function _0x922c65(_0x536c2f){try{_0x3d6d2c(_0x30ace4['throw'](_0x536c2f));}catch(_0x3ca593){_0x35f709(_0x3ca593);}}function _0x3d6d2c(_0x2057ea){_0x2057ea['done']?_0x511bda(_0x2057ea['value']):_0x34d972(_0x2057ea['value'])['then'](_0x377d37,_0x922c65);}_0x3d6d2c((_0x30ace4=_0x30ace4['apply'](_0x9413e6,_0x23ec10||[]))['next']());});};class ApiKeyService{constructor(_0x50d1a7){this['fetch']=_0x50d1a7,this['path']='api-key';}['create'](_0x296dae,_0xf4875e,_0x4220eb){return __awaiter$4(this,void 0,void 0,function*(){const _0x4bb96f={'account_name':_0x296dae,'api_key_name':_0xf4875e};try{const _0x574f70=yield this['fetch']['post'](this['path'],_0x4220eb,_0x4bb96f);if(_0x574f70['status']>0xc7&&_0x574f70['status']<0x12c){const _0x7765f3=yield _0x574f70['json']();return new SuccessfulApiKeyResponse(_0x7765f3);}const _0x2b9be2=yield _0x574f70['json']();return new FailedApiKeyResponse(_0x2b9be2);}catch(_0x241d2c){if(_0x241d2c instanceof Error)return new FailedApiKeyResponse({'detail':_0x241d2c['message'],'title':_0x241d2c['name'],'status':0x1f4,'instance':'','type':''});throw _0x241d2c;}});}['view'](_0x1582ef,_0x3b1802,_0x12b9b2){return __awaiter$4(this,void 0,void 0,function*(){const _0x483ba6=this['path']+'/'+_0x1582ef+'/'+_0x3b1802;try{const _0x106f62=yield this['fetch']['get'](_0x483ba6,_0x12b9b2);if(_0x106f62['status']>0xc7&&_0x106f62['status']<0x12c){const _0xfe6e41=yield _0x106f62['json']();return new SuccessfulApiKeyValueResponse(_0xfe6e41);}const _0x3c3999=yield _0x106f62['json']();return new FailedApiKeyValueResponse(_0x3c3999);}catch(_0x3e3efc){if(_0x3e3efc instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x3e3efc['message'],'title':_0x3e3efc['name'],'status':0x1f4,'instance':'','type':''});throw _0x3e3efc;}});}['delete'](_0x2ce01b,_0x273481,_0x3f4d56){return __awaiter$4(this,void 0,void 0,function*(){const _0x29ed89=this['path']+'/'+_0x2ce01b+'/'+_0x273481;try{const _0x40e951=yield this['fetch']['delete'](_0x29ed89,_0x3f4d56);if(_0x40e951['status']>0xc7&&_0x40e951['status']<0x12c)return new SuccessfulResponse({});const _0x45a00c=yield _0x40e951['json']();return new FailedResponse(_0x45a00c);}catch(_0x214916){if(_0x214916 instanceof Error)return new FailedResponse({'detail':_0x214916['message'],'title':_0x214916['name'],'status':0x1f4,'instance':'','type':''});throw _0x214916;}});}}
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0xfeb29d,_0x48be09,_0x5b8aa2,_0x384ee0){function _0x222072(_0x2b7af4){return _0x2b7af4 instanceof _0x5b8aa2?_0x2b7af4:new _0x5b8aa2(function(_0x215376){_0x215376(_0x2b7af4);});}return new(_0x5b8aa2||(_0x5b8aa2=Promise))(function(_0xc454b0,_0x1c83d0){function _0x5ddc97(_0x2509b1){try{_0x36aabd(_0x384ee0['next'](_0x2509b1));}catch(_0x529ed4){_0x1c83d0(_0x529ed4);}}function _0xda9521(_0x5875bd){try{_0x36aabd(_0x384ee0['throw'](_0x5875bd));}catch(_0x428e4c){_0x1c83d0(_0x428e4c);}}function _0x36aabd(_0x4ba395){_0x4ba395['done']?_0xc454b0(_0x4ba395['value']):_0x222072(_0x4ba395['value'])['then'](_0x5ddc97,_0xda9521);}_0x36aabd((_0x384ee0=_0x384ee0['apply'](_0xfeb29d,_0x48be09||[]))['next']());});};class ApiKeyService{constructor(_0x5473f7){this['fetch']=_0x5473f7,this['path']='api-key';}['create'](_0xafa8b3,_0x5878e7,_0x44cbb0){return __awaiter$4(this,void 0,void 0,function*(){const _0x4a9f5c={'account_name':_0xafa8b3,'api_key_name':_0x5878e7};try{const _0x5567c8=yield this['fetch']['post'](this['path'],_0x44cbb0,_0x4a9f5c);if(_0x5567c8['status']>0xc7&&_0x5567c8['status']<0x12c){const _0x12a62a=yield _0x5567c8['json']();return new SuccessfulApiKeyResponse(_0x12a62a);}const _0x43a490=yield _0x5567c8['json']();return new FailedApiKeyResponse(_0x43a490);}catch(_0x17dfaf){if(_0x17dfaf instanceof Error)return new FailedApiKeyResponse({'detail':_0x17dfaf['message'],'title':_0x17dfaf['name'],'status':0x1f4,'instance':'','type':''});throw _0x17dfaf;}});}['view'](_0x4a530c,_0x195abb,_0x9240e){return __awaiter$4(this,void 0,void 0,function*(){const _0x31c519=this['path']+'/'+_0x4a530c+'/'+_0x195abb;try{const _0x183824=yield this['fetch']['get'](_0x31c519,_0x9240e);if(_0x183824['status']>0xc7&&_0x183824['status']<0x12c){const _0x4d5209=yield _0x183824['json']();return new SuccessfulApiKeyValueResponse(_0x4d5209);}const _0x500e88=yield _0x183824['json']();return new FailedApiKeyValueResponse(_0x500e88);}catch(_0x4392ee){if(_0x4392ee instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x4392ee['message'],'title':_0x4392ee['name'],'status':0x1f4,'instance':'','type':''});throw _0x4392ee;}});}['delete'](_0xb52d88,_0x442b90,_0x4c2aa5){return __awaiter$4(this,void 0,void 0,function*(){const _0x79baf4=this['path']+'/'+_0xb52d88+'/'+_0x442b90;try{const _0x2e74d3=yield this['fetch']['delete'](_0x79baf4,_0x4c2aa5);if(_0x2e74d3['status']>0xc7&&_0x2e74d3['status']<0x12c)return new SuccessfulResponse({});const _0x22a5b4=yield _0x2e74d3['json']();return new FailedResponse(_0x22a5b4);}catch(_0x3c9fc2){if(_0x3c9fc2 instanceof Error)return new FailedResponse({'detail':_0x3c9fc2['message'],'title':_0x3c9fc2['name'],'status':0x1f4,'instance':'','type':''});throw _0x3c9fc2;}});}}
6
6
 
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x2704ad,_0x56c8a0,_0x38950e,_0x5f0396){function _0x46d09b(_0x354e26){return _0x354e26 instanceof _0x38950e?_0x354e26:new _0x38950e(function(_0x2c5bfa){_0x2c5bfa(_0x354e26);});}return new(_0x38950e||(_0x38950e=Promise))(function(_0x5a60c4,_0x1d8b78){function _0x910245(_0x4ac265){try{_0x11c6c5(_0x5f0396['next'](_0x4ac265));}catch(_0x76cfb3){_0x1d8b78(_0x76cfb3);}}function _0x1cce60(_0x53323f){try{_0x11c6c5(_0x5f0396['throw'](_0x53323f));}catch(_0x26174a){_0x1d8b78(_0x26174a);}}function _0x11c6c5(_0x510e69){_0x510e69['done']?_0x5a60c4(_0x510e69['value']):_0x46d09b(_0x510e69['value'])['then'](_0x910245,_0x1cce60);}_0x11c6c5((_0x5f0396=_0x5f0396['apply'](_0x2704ad,_0x56c8a0||[]))['next']());});};class ListService{constructor(_0x1ac37b){this['fetch']=_0x1ac37b;}['add'](_0x5e4883,_0x1b0881,_0x3c8a01,_0x2d3564){return __awaiter$3(this,void 0,void 0,function*(){const _0x234ab0='List',_0x7ac033={'account_name':_0x5e4883,'list_name':_0x1b0881,'search_service_name':_0x3c8a01};try{const _0x5820e4=yield this['fetch']['post'](_0x234ab0,_0x2d3564,_0x7ac033);if(_0x5820e4['status']>0xc7&&_0x5820e4['status']<0x12c){const _0x4f7ef7=yield _0x5820e4['json']();return new SuccessfulListIdentityResponse(_0x4f7ef7);}const _0x4e79e6=yield _0x5820e4['json']();return new FailedListIdentityResponse(_0x4e79e6);}catch(_0x550a71){if(_0x550a71 instanceof Error)return new FailedListIdentityResponse({'detail':_0x550a71['message'],'title':_0x550a71['name'],'status':0x1f4,'instance':'','type':''});throw _0x550a71;}});}['delete'](_0x2c98de,_0x3eb9cd,_0x119ba1){return __awaiter$3(this,void 0,void 0,function*(){const _0x1745bb='List/'+_0x2c98de+'/'+_0x3eb9cd,_0x36b2c5=yield this['fetch']['delete'](_0x1745bb,_0x119ba1);try{if(_0x36b2c5['status']>0xc7&&_0x36b2c5['status']<0x12c){const _0x10e726=yield _0x36b2c5['json']();return new SuccessfulResponse({});}const _0x4f84d0=yield _0x36b2c5['json']();return new FailedResponse(_0x4f84d0);}catch(_0x542285){if(_0x542285 instanceof Error)return new FailedResponse({'detail':_0x542285['message'],'title':_0x542285['name'],'status':0x1f4,'instance':'','type':''});throw _0x542285;}});}}
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x1838f1,_0x5819d6,_0x43e904,_0x3ddecc){function _0x4513bd(_0xf82162){return _0xf82162 instanceof _0x43e904?_0xf82162:new _0x43e904(function(_0x5a626a){_0x5a626a(_0xf82162);});}return new(_0x43e904||(_0x43e904=Promise))(function(_0x501575,_0x4b5d8b){function _0x376516(_0x51fd74){try{_0x18c221(_0x3ddecc['next'](_0x51fd74));}catch(_0x493c5a){_0x4b5d8b(_0x493c5a);}}function _0x47c6fb(_0x41a135){try{_0x18c221(_0x3ddecc['throw'](_0x41a135));}catch(_0x5bc499){_0x4b5d8b(_0x5bc499);}}function _0x18c221(_0x5e1853){_0x5e1853['done']?_0x501575(_0x5e1853['value']):_0x4513bd(_0x5e1853['value'])['then'](_0x376516,_0x47c6fb);}_0x18c221((_0x3ddecc=_0x3ddecc['apply'](_0x1838f1,_0x5819d6||[]))['next']());});};class ListService{constructor(_0x238516){this['fetch']=_0x238516;}['add'](_0xd6a7de,_0x25c151,_0x302e6b,_0xb8cf9){return __awaiter$3(this,void 0,void 0,function*(){const _0x53613b='List',_0x45f41f={'account_name':_0xd6a7de,'list_name':_0x25c151,'search_service_name':_0x302e6b};try{const _0x1d2766=yield this['fetch']['post'](_0x53613b,_0xb8cf9,_0x45f41f);if(_0x1d2766['status']>0xc7&&_0x1d2766['status']<0x12c){const _0x1e4936=yield _0x1d2766['json']();return new SuccessfulListIdentityResponse(_0x1e4936);}const _0x39ed28=yield _0x1d2766['json']();return new FailedListIdentityResponse(_0x39ed28);}catch(_0x3cc0f1){if(_0x3cc0f1 instanceof Error)return new FailedListIdentityResponse({'detail':_0x3cc0f1['message'],'title':_0x3cc0f1['name'],'status':0x1f4,'instance':'','type':''});throw _0x3cc0f1;}});}['delete'](_0x2bd52a,_0x3dd9b4,_0x5e9538){return __awaiter$3(this,void 0,void 0,function*(){const _0x540ca='List/'+_0x2bd52a+'/'+_0x3dd9b4,_0x187558=yield this['fetch']['delete'](_0x540ca,_0x5e9538);try{if(_0x187558['status']>0xc7&&_0x187558['status']<0x12c)return new SuccessfulResponse({});const _0x5a864a=yield _0x187558['json']();return new FailedResponse(_0x5a864a);}catch(_0x2408c6){if(_0x2408c6 instanceof Error)return new FailedResponse({'detail':_0x2408c6['message'],'title':_0x2408c6['name'],'status':0x1f4,'instance':'','type':''});throw _0x2408c6;}});}}
8
8
 
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x20c5b3,_0x127b6c,_0x144635,_0x44c69d){function _0x21d51b(_0xf45ec6){return _0xf45ec6 instanceof _0x144635?_0xf45ec6:new _0x144635(function(_0x10af1c){_0x10af1c(_0xf45ec6);});}return new(_0x144635||(_0x144635=Promise))(function(_0x380b5a,_0x26c943){function _0x256923(_0x359ad6){try{_0x9a4915(_0x44c69d['next'](_0x359ad6));}catch(_0x8ee4f8){_0x26c943(_0x8ee4f8);}}function _0x304af6(_0x5ac963){try{_0x9a4915(_0x44c69d['throw'](_0x5ac963));}catch(_0x410224){_0x26c943(_0x410224);}}function _0x9a4915(_0x7f1f7e){_0x7f1f7e['done']?_0x380b5a(_0x7f1f7e['value']):_0x21d51b(_0x7f1f7e['value'])['then'](_0x256923,_0x304af6);}_0x9a4915((_0x44c69d=_0x44c69d['apply'](_0x20c5b3,_0x127b6c||[]))['next']());});};class Fetch{constructor(_0x24ff7c){this['baseUri']=_0x24ff7c,this['getUrl']=_0x387801=>{return _0x387801['startsWith']('/')&&(_0x387801=_0x387801['replace']('/','')),''+this['baseUri']+_0x387801;},!_0x24ff7c['endsWith']('/')&&(_0x24ff7c=_0x24ff7c+'/');}['get'](_0x39a1f8,_0x150680){return __awaiter$2(this,void 0,void 0,function*(){const _0x2a96e6=this['getUrl'](_0x39a1f8);return yield fetch(_0x2a96e6,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x150680}});});}['post'](_0x3d8d19,_0x245f1a,_0x9f85f3){return __awaiter$2(this,void 0,void 0,function*(){const _0x22b7be=this['getUrl'](_0x3d8d19);return yield fetch(_0x22b7be,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x245f1a},'body':_0x9f85f3?JSON['stringify'](_0x9f85f3):null});});}['PostNoAuth'](_0x271e2d,_0x5729d1){return __awaiter$2(this,void 0,void 0,function*(){const _0x4d6d76=this['getUrl'](_0x271e2d);return yield fetch(_0x4d6d76,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x5729d1?JSON['stringify'](_0x5729d1):null});});}['put'](_0x198603,_0x421e4d,_0x345beb){return __awaiter$2(this,void 0,void 0,function*(){const _0x185e3f=this['getUrl'](_0x198603);return yield fetch(_0x185e3f,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x421e4d},'body':_0x345beb?JSON['stringify'](_0x345beb):null});});}['delete'](_0x23ec04,_0x45e1c5){return __awaiter$2(this,void 0,void 0,function*(){const _0x10da4e=this['getUrl'](_0x23ec04);return yield fetch(_0x10da4e,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x45e1c5}});});}}
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0xbe4d84,_0x4bcce8,_0x505326,_0x225f15){function _0x1c95ce(_0x542a7d){return _0x542a7d instanceof _0x505326?_0x542a7d:new _0x505326(function(_0x41f423){_0x41f423(_0x542a7d);});}return new(_0x505326||(_0x505326=Promise))(function(_0x439ab9,_0x8f84a3){function _0x1a7f3e(_0x54df4d){try{_0x266286(_0x225f15['next'](_0x54df4d));}catch(_0x39b84d){_0x8f84a3(_0x39b84d);}}function _0x4445e2(_0x435c6d){try{_0x266286(_0x225f15['throw'](_0x435c6d));}catch(_0x3bddc1){_0x8f84a3(_0x3bddc1);}}function _0x266286(_0x1bb28a){_0x1bb28a['done']?_0x439ab9(_0x1bb28a['value']):_0x1c95ce(_0x1bb28a['value'])['then'](_0x1a7f3e,_0x4445e2);}_0x266286((_0x225f15=_0x225f15['apply'](_0xbe4d84,_0x4bcce8||[]))['next']());});};class Fetch{constructor(_0x323f65){this['baseUri']=_0x323f65,this['getUrl']=_0x3879fe=>{return _0x3879fe['startsWith']('/')&&(_0x3879fe=_0x3879fe['replace']('/','')),''+this['baseUri']+_0x3879fe;},!_0x323f65['endsWith']('/')&&(_0x323f65=_0x323f65+'/');}['get'](_0x39a1f2,_0x454431){return __awaiter$2(this,void 0,void 0,function*(){const _0x19f3d3=this['getUrl'](_0x39a1f2);return yield fetch(_0x19f3d3,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x454431}});});}['post'](_0x2b904a,_0x5833dd,_0x368f05){return __awaiter$2(this,void 0,void 0,function*(){const _0x2679c0=this['getUrl'](_0x2b904a);return yield fetch(_0x2679c0,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5833dd},'body':_0x368f05?JSON['stringify'](_0x368f05):null});});}['PostNoAuth'](_0x1f862f,_0x337d1b){return __awaiter$2(this,void 0,void 0,function*(){const _0x521e34=this['getUrl'](_0x1f862f);return yield fetch(_0x521e34,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x337d1b?JSON['stringify'](_0x337d1b):null});});}['put'](_0x11e230,_0xacdd83,_0x1aa708){return __awaiter$2(this,void 0,void 0,function*(){const _0x10fb51=this['getUrl'](_0x11e230);return yield fetch(_0x10fb51,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xacdd83},'body':_0x1aa708?JSON['stringify'](_0x1aa708):null});});}['delete'](_0x4ddd4f,_0x9be57e){return __awaiter$2(this,void 0,void 0,function*(){const _0x287a33=this['getUrl'](_0x4ddd4f);return yield fetch(_0x287a33,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x9be57e}});});}}
10
10
 
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x4cfd74,_0x1e6c1c,_0x4ceee3,_0x588068){function _0x17667d(_0x35479f){return _0x35479f instanceof _0x4ceee3?_0x35479f:new _0x4ceee3(function(_0x164373){_0x164373(_0x35479f);});}return new(_0x4ceee3||(_0x4ceee3=Promise))(function(_0x27be0b,_0x359567){function _0x21a536(_0x2ff402){try{_0x51c17f(_0x588068['next'](_0x2ff402));}catch(_0x34d4c5){_0x359567(_0x34d4c5);}}function _0x19c080(_0x103028){try{_0x51c17f(_0x588068['throw'](_0x103028));}catch(_0x5cc1c6){_0x359567(_0x5cc1c6);}}function _0x51c17f(_0xd56060){_0xd56060['done']?_0x27be0b(_0xd56060['value']):_0x17667d(_0xd56060['value'])['then'](_0x21a536,_0x19c080);}_0x51c17f((_0x588068=_0x588068['apply'](_0x4cfd74,_0x1e6c1c||[]))['next']());});};class SearchServersService{constructor(_0x52b150){this['fetch']=_0x52b150,this['path']='search-services';}['create'](_0x57bbc0,_0x4d52c5,_0xe01f47,_0x2ab26b,_0x20df33,_0xb4c848,_0x357ec0,_0x5643d6){return __awaiter$1(this,void 0,void 0,function*(){const _0x69c31c={'account_name':_0x57bbc0,'search_service_name':_0x4d52c5,'endpoint':_0xe01f47,'key':_0x2ab26b,'country':_0x20df33,'provider':_0xb4c848,'index_name':_0x357ec0};try{const _0x4a45df=yield this['fetch']['post'](this['path'],_0x5643d6,_0x69c31c);if(_0x4a45df['status']>0xc7&&_0x4a45df['status']<0x12c){const _0x1e7184=yield _0x4a45df['json']();return new SuccessfulSearchServiceResponse(_0x1e7184);}const _0x3308d4=yield _0x4a45df['json']();return new FailedSearchServiceResponse(_0x3308d4);}catch(_0xa26e87){if(_0xa26e87 instanceof Error)return new FailedSearchServiceResponse({'detail':_0xa26e87['message'],'title':_0xa26e87['name'],'status':0x1f4,'instance':'','type':''});throw _0xa26e87;}});}['delete'](_0x4b3b28,_0x11172b,_0x3bfb03){return __awaiter$1(this,void 0,void 0,function*(){const _0x18aa5e=this['path']+'/'+_0x4b3b28+'/'+_0x11172b;try{const _0x34dfff=yield this['fetch']['delete'](_0x18aa5e,_0x3bfb03);if(_0x34dfff['status']>0xc7&&_0x34dfff['status']<0x12c)return new SuccessfulResponse({});const _0x1bd43a=yield _0x34dfff['json']();return new FailedResponse(_0x1bd43a);}catch(_0xf7d186){if(_0xf7d186 instanceof Error)return new FailedResponse({'detail':_0xf7d186['message'],'title':_0xf7d186['name'],'status':0x1f4,'instance':'','type':''});throw _0xf7d186;}});}['view'](_0x43a899,_0x514e41,_0x2626bf){return __awaiter$1(this,void 0,void 0,function*(){const _0x157b21=this['path']+'/'+_0x43a899+'/'+_0x514e41;try{const _0x519b58=yield this['fetch']['get'](_0x157b21,_0x2626bf);if(_0x519b58['status']>0xc7&&_0x519b58['status']<0x12c){const _0x489b65=yield _0x519b58['json']();return new SuccessfulViewSearchServiceResponse(_0x489b65);}const _0xbe68bd=yield _0x519b58['json']();return new FailedViewSearchServiceResponse(_0xbe68bd);}catch(_0xc3d335){if(_0xc3d335 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0xc3d335['message'],'title':_0xc3d335['name'],'status':0x1f4,'instance':'','type':''});throw _0xc3d335;}});}['edit'](_0x4ac268,_0xdd786f,_0x50fecd,_0x5f24a4,_0x37082f,_0x32a0ae){return __awaiter$1(this,void 0,void 0,function*(){const _0x25ff8d={'account_name':_0x4ac268,'search_service_name':_0xdd786f,'new_search_service_name':_0x50fecd,'key':_0x5f24a4,'country':_0x37082f};try{const _0x3d028d=yield this['fetch']['put'](this['path'],_0x32a0ae,_0x25ff8d);if(_0x3d028d['status']>0xc7&&_0x3d028d['status']<0x12c){const _0xf01ea6=yield _0x3d028d['json']();return new SuccessfulSearchServiceResponse(_0xf01ea6);}const _0x4fd514=yield _0x3d028d['json']();return new FailedSearchServiceResponse(_0x4fd514);}catch(_0x1f00e1){if(_0x1f00e1 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x1f00e1['message'],'title':_0x1f00e1['name'],'status':0x1f4,'instance':'','type':''});throw _0x1f00e1;}});}['list'](_0x3b9fa8,_0x3b6a20){return __awaiter$1(this,void 0,void 0,function*(){const _0x13f7b1=this['path']+'/'+_0x3b9fa8;try{const _0x1008d9=yield this['fetch']['get'](_0x13f7b1,_0x3b6a20);if(_0x1008d9['status']>0xc7&&_0x1008d9['status']<0x12c){const _0x33e831=yield _0x1008d9['json']();return new SuccessfulListSearchServiceResponse(_0x33e831);}const _0xcefdd5=yield _0x1008d9['json']();return new FailedViewSearchServicesResponse(_0xcefdd5);}catch(_0x580988){if(_0x580988 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x580988['message'],'title':_0x580988['name'],'status':0x1f4,'instance':'','type':''});throw _0x580988;}});}}
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0xd28365,_0x46d8af,_0x16d274,_0x1cf27b){function _0x1d1c9d(_0x2eb5f8){return _0x2eb5f8 instanceof _0x16d274?_0x2eb5f8:new _0x16d274(function(_0x24ca8c){_0x24ca8c(_0x2eb5f8);});}return new(_0x16d274||(_0x16d274=Promise))(function(_0x1e3507,_0x3b35df){function _0x3d56b6(_0x57986b){try{_0x4dff30(_0x1cf27b['next'](_0x57986b));}catch(_0x445967){_0x3b35df(_0x445967);}}function _0x4e1eb1(_0x371fda){try{_0x4dff30(_0x1cf27b['throw'](_0x371fda));}catch(_0x4acfcc){_0x3b35df(_0x4acfcc);}}function _0x4dff30(_0x3e736e){_0x3e736e['done']?_0x1e3507(_0x3e736e['value']):_0x1d1c9d(_0x3e736e['value'])['then'](_0x3d56b6,_0x4e1eb1);}_0x4dff30((_0x1cf27b=_0x1cf27b['apply'](_0xd28365,_0x46d8af||[]))['next']());});};class SearchServersService{constructor(_0xfb75fc){this['fetch']=_0xfb75fc,this['path']='search-services';}['create'](_0x415143,_0x3fc3c8,_0x2de9b0,_0x33779b,_0x31e24f,_0x19e818,_0x37a32f,_0x1b8a55){return __awaiter$1(this,void 0,void 0,function*(){const _0x2f1455={'account_name':_0x415143,'search_service_name':_0x3fc3c8,'endpoint':_0x2de9b0,'key':_0x33779b,'country':_0x31e24f,'provider':_0x19e818,'index_name':_0x37a32f};try{const _0x5a0a98=yield this['fetch']['post'](this['path'],_0x1b8a55,_0x2f1455);if(_0x5a0a98['status']>0xc7&&_0x5a0a98['status']<0x12c){const _0x3d12b3=yield _0x5a0a98['json']();return new SuccessfulSearchServiceResponse(_0x3d12b3);}const _0x1638f0=yield _0x5a0a98['json']();return new FailedSearchServiceResponse(_0x1638f0);}catch(_0x2057b6){if(_0x2057b6 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x2057b6['message'],'title':_0x2057b6['name'],'status':0x1f4,'instance':'','type':''});throw _0x2057b6;}});}['delete'](_0x5549af,_0x35079b,_0x1ced64){return __awaiter$1(this,void 0,void 0,function*(){const _0x6a5f6e=this['path']+'/'+_0x5549af+'/'+_0x35079b;try{const _0x2caf61=yield this['fetch']['delete'](_0x6a5f6e,_0x1ced64);if(_0x2caf61['status']>0xc7&&_0x2caf61['status']<0x12c)return new SuccessfulResponse({});const _0x469eaa=yield _0x2caf61['json']();return new FailedResponse(_0x469eaa);}catch(_0x14c895){if(_0x14c895 instanceof Error)return new FailedResponse({'detail':_0x14c895['message'],'title':_0x14c895['name'],'status':0x1f4,'instance':'','type':''});throw _0x14c895;}});}['view'](_0x4a4ee8,_0x9c3ab5,_0x421cc9){return __awaiter$1(this,void 0,void 0,function*(){const _0x352364=this['path']+'/'+_0x4a4ee8+'/'+_0x9c3ab5;try{const _0x557e39=yield this['fetch']['get'](_0x352364,_0x421cc9);if(_0x557e39['status']>0xc7&&_0x557e39['status']<0x12c){const _0x409f45=yield _0x557e39['json']();return new SuccessfulViewSearchServiceResponse(_0x409f45);}const _0x14a27a=yield _0x557e39['json']();return new FailedViewSearchServiceResponse(_0x14a27a);}catch(_0x13a041){if(_0x13a041 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x13a041['message'],'title':_0x13a041['name'],'status':0x1f4,'instance':'','type':''});throw _0x13a041;}});}['edit'](_0x1aa7bd,_0x4496d0,_0x482c9f,_0x3ded2f,_0x4a06e6,_0x332f83){return __awaiter$1(this,void 0,void 0,function*(){const _0x23e650={'account_name':_0x1aa7bd,'search_service_name':_0x4496d0,'new_search_service_name':_0x482c9f,'key':_0x3ded2f,'country':_0x4a06e6};try{const _0x26d9d3=yield this['fetch']['put'](this['path'],_0x332f83,_0x23e650);if(_0x26d9d3['status']>0xc7&&_0x26d9d3['status']<0x12c){const _0xf5cecc=yield _0x26d9d3['json']();return new SuccessfulSearchServiceResponse(_0xf5cecc);}const _0x33e20c=yield _0x26d9d3['json']();return new FailedSearchServiceResponse(_0x33e20c);}catch(_0x2d148f){if(_0x2d148f instanceof Error)return new FailedSearchServiceResponse({'detail':_0x2d148f['message'],'title':_0x2d148f['name'],'status':0x1f4,'instance':'','type':''});throw _0x2d148f;}});}['list'](_0x29f883,_0x5f2567){return __awaiter$1(this,void 0,void 0,function*(){const _0x27de72=this['path']+'/'+_0x29f883;try{const _0x309531=yield this['fetch']['get'](_0x27de72,_0x5f2567);if(_0x309531['status']>0xc7&&_0x309531['status']<0x12c){const _0x3ed655=yield _0x309531['json']();return new SuccessfulListSearchServiceResponse(_0x3ed655);}const _0x3096f4=yield _0x309531['json']();return new FailedViewSearchServicesResponse(_0x3096f4);}catch(_0x486c3d){if(_0x486c3d instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x486c3d['message'],'title':_0x486c3d['name'],'status':0x1f4,'instance':'','type':''});throw _0x486c3d;}});}}
12
12
 
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x8db23,_0x33e99b,_0x421b51,_0x233461){function _0x251216(_0x508ccd){return _0x508ccd instanceof _0x421b51?_0x508ccd:new _0x421b51(function(_0x484c19){_0x484c19(_0x508ccd);});}return new(_0x421b51||(_0x421b51=Promise))(function(_0x49c43d,_0x203b7e){function _0x2b1790(_0x240408){try{_0x3a1fef(_0x233461['next'](_0x240408));}catch(_0x11fcf8){_0x203b7e(_0x11fcf8);}}function _0x26c97f(_0x33d14d){try{_0x3a1fef(_0x233461['throw'](_0x33d14d));}catch(_0x391129){_0x203b7e(_0x391129);}}function _0x3a1fef(_0x219a97){_0x219a97['done']?_0x49c43d(_0x219a97['value']):_0x251216(_0x219a97['value'])['then'](_0x2b1790,_0x26c97f);}_0x3a1fef((_0x233461=_0x233461['apply'](_0x8db23,_0x33e99b||[]))['next']());});};class AdminClient{constructor(_0x5648cb='https://admin.searchability.dev/'){var _0x5cf6f2=new Fetch(_0x5648cb);this['Accounts']=new AccountService(_0x5cf6f2),this['Lists']=new ListService(_0x5cf6f2),this['ApiKeys']=new ApiKeyService(_0x5cf6f2),this['SearchServices']=new SearchServersService(_0x5cf6f2);}}class AuthClient{constructor(_0x37d78f='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x37d78f);}['login'](_0x184cd5){return __awaiter(this,void 0,void 0,function*(){const _0x5a244b='login/'+_0x184cd5;try{const _0x447217=yield yield fetch(_0x5a244b);if(_0x447217['status']>0xc7&&_0x447217['status']<0x12c){const _0x12b4c4=yield _0x447217['json']();return new SuccessfulAuthResponse(_0x12b4c4);}const _0x6a1559=yield _0x447217['json']();return new FailedAuthResponse(_0x6a1559);}catch(_0x10476f){if(_0x10476f instanceof Error)return new FailedAuthResponse({'detail':_0x10476f['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x10476f;}});}['refresh'](_0x9d3de1){return __awaiter(this,void 0,void 0,function*(){const _0x40be3d='refresh',_0x235380={'refresh_token':_0x9d3de1};try{const _0x123b19=yield this['fetch']['PostNoAuth'](_0x40be3d,_0x235380);if(_0x123b19['status']>0xc7&&_0x123b19['status']<0x12c){const _0x59d0eb=yield _0x123b19['json']();return new SuccessfulAuthResponse(_0x59d0eb);}const _0x531a3a=yield _0x123b19['json']();return new FailedAuthResponse(_0x531a3a);}catch(_0x5b5217){if(_0x5b5217 instanceof Error)return new FailedAuthResponse({'detail':_0x5b5217['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5b5217;}});}['getTokenStatus'](_0x4f4be7){if(Date['now']()<_0x4f4be7['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x4f4be7['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0x33f109,_0x320004,_0x1de34a,_0x5af53b){function _0x4058aa(_0x4fc652){return _0x4fc652 instanceof _0x1de34a?_0x4fc652:new _0x1de34a(function(_0x25e3bb){_0x25e3bb(_0x4fc652);});}return new(_0x1de34a||(_0x1de34a=Promise))(function(_0xb45fde,_0x21b07b){function _0x15dd82(_0x313c41){try{_0x52c8c9(_0x5af53b['next'](_0x313c41));}catch(_0x52e114){_0x21b07b(_0x52e114);}}function _0x212e9d(_0x46d4ce){try{_0x52c8c9(_0x5af53b['throw'](_0x46d4ce));}catch(_0x4d4dad){_0x21b07b(_0x4d4dad);}}function _0x52c8c9(_0x51810c){_0x51810c['done']?_0xb45fde(_0x51810c['value']):_0x4058aa(_0x51810c['value'])['then'](_0x15dd82,_0x212e9d);}_0x52c8c9((_0x5af53b=_0x5af53b['apply'](_0x33f109,_0x320004||[]))['next']());});};class AdminClient{constructor(_0x2092dc='https://admin.searchability.dev/'){var _0x436d55=new Fetch(_0x2092dc);this['Accounts']=new AccountService(_0x436d55),this['Lists']=new ListService(_0x436d55),this['ApiKeys']=new ApiKeyService(_0x436d55),this['SearchServices']=new SearchServersService(_0x436d55);}}class AuthClient{constructor(_0x57fc74='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x57fc74);}['login'](_0x3f0da6){return __awaiter(this,void 0,void 0,function*(){const _0x33b375='login/'+_0x3f0da6;try{const _0x455a9d=yield yield fetch(_0x33b375);if(_0x455a9d['status']>0xc7&&_0x455a9d['status']<0x12c){const _0x3d69b6=yield _0x455a9d['json']();return new SuccessfulAuthResponse(_0x3d69b6);}const _0x89b6f8=yield _0x455a9d['json']();return new FailedAuthResponse(_0x89b6f8);}catch(_0x3d7efe){if(_0x3d7efe instanceof Error)return new FailedAuthResponse({'detail':_0x3d7efe['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x3d7efe;}});}['refresh'](_0x5882b6){return __awaiter(this,void 0,void 0,function*(){const _0x4b3c1d='refresh',_0x4367f0={'refresh_token':_0x5882b6};try{const _0x343902=yield this['fetch']['PostNoAuth'](_0x4b3c1d,_0x4367f0);if(_0x343902['status']>0xc7&&_0x343902['status']<0x12c){const _0x2438fd=yield _0x343902['json']();return new SuccessfulAuthResponse(_0x2438fd);}const _0xf5cc44=yield _0x343902['json']();return new FailedAuthResponse(_0xf5cc44);}catch(_0x288d21){if(_0x288d21 instanceof Error)return new FailedAuthResponse({'detail':_0x288d21['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x288d21;}});}['getTokenStatus'](_0x474292){if(Date['now']()<_0x474292['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x474292['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
14
14
 
15
15
  export { AdminClient, AuthClient, TokenStatus, Tokens };
package/dist/types.d.ts CHANGED
@@ -86,7 +86,7 @@ type ListIdentity = {
86
86
  name: string;
87
87
  created: number;
88
88
  account_name: string;
89
- image_path: string;
89
+ is_shared: boolean;
90
90
  };
91
91
  type ApiKey = {
92
92
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchability/admin-client",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
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(_0x4484a4){_0x4484a4[_0x4484a4['Ok']=0x0]='Ok',_0x4484a4[_0x4484a4['Refresh']=0x1]='Refresh',_0x4484a4[_0x4484a4['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(_0x23010e){this['isSuccess']=_0x23010e;}}class SuccessfulAccountResponse extends Response{constructor(_0x5e29df){super(!![]),this['account']=_0x5e29df;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x56284a){super(!![]),this['list']=_0x56284a;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x96db80){super(![]),this['problem']=_0x96db80;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x435f12){super(![]),this['problem']=_0x435f12;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0xc319bf){super(!![]),this['tokens']=_0xc319bf;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x3be8ee){super(![]),this['problem']=_0x3be8ee;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x7457be){super(!![]),this['apiKey']=_0x7457be;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x3e7093){super(![]),this['problem']=_0x3e7093;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x120b44){super(!![]),this['searchService']=_0x120b44;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x5f058e){super(![]),this['problem']=_0x5f058e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x402a6b){super(!![]),this['searchService']=_0x402a6b;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x5430f7){super(!![]),this['searchServices']=_0x5430f7;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x3c15da){super(![]),this['problem']=_0x3c15da;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x4bb88f){super(![]),this['problem']=_0x4bb88f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x340df7){super(!![]),this['apiKeyValue']=_0x340df7;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x29ae97){super(!![]),this['obj']=_0x29ae97;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x435ada){super(![]),this['problem']=_0x435ada;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x1ba74e){super(![]),this['problem']=_0x1ba74e;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
-
3
- var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x5eb207,_0x2ad83f,_0x23cede,_0x46959f){function _0x564424(_0x5ae378){return _0x5ae378 instanceof _0x23cede?_0x5ae378:new _0x23cede(function(_0x51fb59){_0x51fb59(_0x5ae378);});}return new(_0x23cede||(_0x23cede=Promise))(function(_0x586e13,_0x28fdea){function _0x229c13(_0x4bc106){try{_0x5acdee(_0x46959f['next'](_0x4bc106));}catch(_0x365989){_0x28fdea(_0x365989);}}function _0x440f99(_0x4a77f0){try{_0x5acdee(_0x46959f['throw'](_0x4a77f0));}catch(_0x3d8653){_0x28fdea(_0x3d8653);}}function _0x5acdee(_0x178b43){_0x178b43['done']?_0x586e13(_0x178b43['value']):_0x564424(_0x178b43['value'])['then'](_0x229c13,_0x440f99);}_0x5acdee((_0x46959f=_0x46959f['apply'](_0x5eb207,_0x2ad83f||[]))['next']());});};class AccountService{constructor(_0x58dcb2){this['fetch']=_0x58dcb2;}['get'](_0x4ac82a,_0x1658a5){return __awaiter$5(this,void 0,void 0,function*(){const _0xb2f227='Account/'+_0x4ac82a+'/',_0x12db7a=yield this['fetch']['get'](_0xb2f227,_0x1658a5);try{if(_0x12db7a['status']>0xc7&&_0x12db7a['status']<0x12c){const _0x5d6bb8=yield _0x12db7a['json']();return new SuccessfulAccountResponse(_0x5d6bb8);}const _0x3418e4=yield _0x12db7a['json']();return new FailedAccountResponse(_0x3418e4);}catch(_0x5bf35c){if(_0x5bf35c instanceof Error)return new FailedAccountResponse({'detail':_0x5bf35c['message'],'title':_0x5bf35c['name'],'status':0x1f4,'instance':'','type':''});throw _0x5bf35c;}});}}
4
-
5
- var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x2f7a89,_0x47cfaf,_0x4738ad,_0x2d2c9e){function _0x3a3007(_0x265adf){return _0x265adf instanceof _0x4738ad?_0x265adf:new _0x4738ad(function(_0x5c49fe){_0x5c49fe(_0x265adf);});}return new(_0x4738ad||(_0x4738ad=Promise))(function(_0x435b0c,_0x41990b){function _0x14e635(_0x3bc6c5){try{_0x314a0a(_0x2d2c9e['next'](_0x3bc6c5));}catch(_0x2212f2){_0x41990b(_0x2212f2);}}function _0x44c27a(_0xf80c0){try{_0x314a0a(_0x2d2c9e['throw'](_0xf80c0));}catch(_0x1f78e7){_0x41990b(_0x1f78e7);}}function _0x314a0a(_0x1d204c){_0x1d204c['done']?_0x435b0c(_0x1d204c['value']):_0x3a3007(_0x1d204c['value'])['then'](_0x14e635,_0x44c27a);}_0x314a0a((_0x2d2c9e=_0x2d2c9e['apply'](_0x2f7a89,_0x47cfaf||[]))['next']());});};class ApiKeyService{constructor(_0x326fdb){this['fetch']=_0x326fdb,this['path']='api-key';}['create'](_0x387675,_0xe4970c,_0x3fd5dc){return __awaiter$4(this,void 0,void 0,function*(){const _0x211342={'account_name':_0x387675,'api_key_name':_0xe4970c};try{const _0x3503e7=yield this['fetch']['post'](this['path'],_0x3fd5dc,_0x211342);if(_0x3503e7['status']>0xc7&&_0x3503e7['status']<0x12c){const _0x1d4929=yield _0x3503e7['json']();return new SuccessfulApiKeyResponse(_0x1d4929);}const _0xb7571f=yield _0x3503e7['json']();return new FailedApiKeyResponse(_0xb7571f);}catch(_0xfb9c3d){if(_0xfb9c3d instanceof Error)return new FailedApiKeyResponse({'detail':_0xfb9c3d['message'],'title':_0xfb9c3d['name'],'status':0x1f4,'instance':'','type':''});throw _0xfb9c3d;}});}['view'](_0x3c26c2,_0x4e6329,_0x4f3ec0){return __awaiter$4(this,void 0,void 0,function*(){const _0x592452=this['path']+'/'+_0x3c26c2+'/'+_0x4e6329;try{const _0x25c8fe=yield this['fetch']['get'](_0x592452,_0x4f3ec0);if(_0x25c8fe['status']>0xc7&&_0x25c8fe['status']<0x12c){const _0x1baaff=yield _0x25c8fe['json']();return new SuccessfulApiKeyValueResponse(_0x1baaff);}const _0x34ec20=yield _0x25c8fe['json']();return new FailedApiKeyValueResponse(_0x34ec20);}catch(_0x525506){if(_0x525506 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x525506['message'],'title':_0x525506['name'],'status':0x1f4,'instance':'','type':''});throw _0x525506;}});}['delete'](_0x2c7de2,_0x16a7c8,_0x56157a){return __awaiter$4(this,void 0,void 0,function*(){const _0x3ce124=this['path']+'/'+_0x2c7de2+'/'+_0x16a7c8;try{const _0x2dc0de=yield this['fetch']['delete'](_0x3ce124,_0x56157a);if(_0x2dc0de['status']>0xc7&&_0x2dc0de['status']<0x12c)return new SuccessfulResponse({});const _0x582257=yield _0x2dc0de['json']();return new FailedResponse(_0x582257);}catch(_0x272287){if(_0x272287 instanceof Error)return new FailedResponse({'detail':_0x272287['message'],'title':_0x272287['name'],'status':0x1f4,'instance':'','type':''});throw _0x272287;}});}}
6
-
7
- var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x31ebcc,_0x4e509c,_0x331c16,_0x1c9140){function _0x1badbf(_0x29fde0){return _0x29fde0 instanceof _0x331c16?_0x29fde0:new _0x331c16(function(_0x16d246){_0x16d246(_0x29fde0);});}return new(_0x331c16||(_0x331c16=Promise))(function(_0x5dbcf9,_0x18ee62){function _0x3dbf87(_0x2a64c7){try{_0x1e88df(_0x1c9140['next'](_0x2a64c7));}catch(_0x4cb806){_0x18ee62(_0x4cb806);}}function _0xf56fa1(_0x5037e5){try{_0x1e88df(_0x1c9140['throw'](_0x5037e5));}catch(_0x189572){_0x18ee62(_0x189572);}}function _0x1e88df(_0x36cb5d){_0x36cb5d['done']?_0x5dbcf9(_0x36cb5d['value']):_0x1badbf(_0x36cb5d['value'])['then'](_0x3dbf87,_0xf56fa1);}_0x1e88df((_0x1c9140=_0x1c9140['apply'](_0x31ebcc,_0x4e509c||[]))['next']());});};class ListService{constructor(_0x5e8b1c){this['fetch']=_0x5e8b1c;}['add'](_0x505e73,_0x590948,_0x97e635,_0x2a10d4){return __awaiter$3(this,void 0,void 0,function*(){const _0x3fce7f='List',_0x2f3740={'account_name':_0x505e73,'list_name':_0x590948,'search_service_name':_0x97e635};try{const _0x1c7f56=yield this['fetch']['post'](_0x3fce7f,_0x2a10d4,_0x2f3740);if(_0x1c7f56['status']>0xc7&&_0x1c7f56['status']<0x12c){const _0x44f2f3=yield _0x1c7f56['json']();return new SuccessfulListIdentityResponse(_0x44f2f3);}const _0x2ebc2f=yield _0x1c7f56['json']();return new FailedListIdentityResponse(_0x2ebc2f);}catch(_0x1ac64d){if(_0x1ac64d instanceof Error)return new FailedListIdentityResponse({'detail':_0x1ac64d['message'],'title':_0x1ac64d['name'],'status':0x1f4,'instance':'','type':''});throw _0x1ac64d;}});}['delete'](_0x509c81,_0x72d82c,_0xabccf9){return __awaiter$3(this,void 0,void 0,function*(){const _0x2389fe='List/'+_0x509c81+'/'+_0x72d82c,_0x51e444=yield this['fetch']['delete'](_0x2389fe,_0xabccf9);try{if(_0x51e444['status']>0xc7&&_0x51e444['status']<0x12c){const _0x40c190=yield _0x51e444['json']();return new SuccessfulResponse({});}const _0x47d537=yield _0x51e444['json']();return new FailedResponse(_0x47d537);}catch(_0x576d63){if(_0x576d63 instanceof Error)return new FailedResponse({'detail':_0x576d63['message'],'title':_0x576d63['name'],'status':0x1f4,'instance':'','type':''});throw _0x576d63;}});}}
8
-
9
- var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x5f29b9,_0x542994,_0x28eeb0,_0x59c58b){function _0x375966(_0x472de7){return _0x472de7 instanceof _0x28eeb0?_0x472de7:new _0x28eeb0(function(_0x451e92){_0x451e92(_0x472de7);});}return new(_0x28eeb0||(_0x28eeb0=Promise))(function(_0x28864d,_0xcbf1aa){function _0x2341e5(_0x472031){try{_0x1c8a41(_0x59c58b['next'](_0x472031));}catch(_0x528fa6){_0xcbf1aa(_0x528fa6);}}function _0x1fa7d5(_0x1727d1){try{_0x1c8a41(_0x59c58b['throw'](_0x1727d1));}catch(_0x347044){_0xcbf1aa(_0x347044);}}function _0x1c8a41(_0x54965e){_0x54965e['done']?_0x28864d(_0x54965e['value']):_0x375966(_0x54965e['value'])['then'](_0x2341e5,_0x1fa7d5);}_0x1c8a41((_0x59c58b=_0x59c58b['apply'](_0x5f29b9,_0x542994||[]))['next']());});};class Fetch{constructor(_0x11bada){this['baseUri']=_0x11bada,this['getUrl']=_0x446985=>{return _0x446985['startsWith']('/')&&(_0x446985=_0x446985['replace']('/','')),''+this['baseUri']+_0x446985;},!_0x11bada['endsWith']('/')&&(_0x11bada=_0x11bada+'/');}['get'](_0x268d79,_0xa3565a){return __awaiter$2(this,void 0,void 0,function*(){const _0x268f2e=this['getUrl'](_0x268d79);return yield fetch(_0x268f2e,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0xa3565a}});});}['post'](_0x4a006e,_0x4f317c,_0x62041e){return __awaiter$2(this,void 0,void 0,function*(){const _0x460bb0=this['getUrl'](_0x4a006e);return yield fetch(_0x460bb0,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x4f317c},'body':_0x62041e?JSON['stringify'](_0x62041e):null});});}['PostNoAuth'](_0x3c58e8,_0x60545d){return __awaiter$2(this,void 0,void 0,function*(){const _0x5bbf2b=this['getUrl'](_0x3c58e8);return yield fetch(_0x5bbf2b,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x60545d?JSON['stringify'](_0x60545d):null});});}['put'](_0x23207b,_0x38340a,_0x2e9eef){return __awaiter$2(this,void 0,void 0,function*(){const _0x37ac4e=this['getUrl'](_0x23207b);return yield fetch(_0x37ac4e,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x38340a},'body':_0x2e9eef?JSON['stringify'](_0x2e9eef):null});});}['delete'](_0x1f654a,_0x863f4e){return __awaiter$2(this,void 0,void 0,function*(){const _0x1a2923=this['getUrl'](_0x1f654a);return yield fetch(_0x1a2923,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x863f4e}});});}}
10
-
11
- var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x466f0b,_0xe13cc5,_0x3b704a,_0x2180bf){function _0x35174f(_0x3479a5){return _0x3479a5 instanceof _0x3b704a?_0x3479a5:new _0x3b704a(function(_0x2c695c){_0x2c695c(_0x3479a5);});}return new(_0x3b704a||(_0x3b704a=Promise))(function(_0x3315e1,_0x3071f8){function _0x4865a0(_0x522991){try{_0x56db9f(_0x2180bf['next'](_0x522991));}catch(_0x48ca93){_0x3071f8(_0x48ca93);}}function _0x5732fb(_0x5949ec){try{_0x56db9f(_0x2180bf['throw'](_0x5949ec));}catch(_0x269193){_0x3071f8(_0x269193);}}function _0x56db9f(_0x4063e8){_0x4063e8['done']?_0x3315e1(_0x4063e8['value']):_0x35174f(_0x4063e8['value'])['then'](_0x4865a0,_0x5732fb);}_0x56db9f((_0x2180bf=_0x2180bf['apply'](_0x466f0b,_0xe13cc5||[]))['next']());});};class SearchServersService{constructor(_0x29af2e){this['fetch']=_0x29af2e,this['path']='search-services';}['create'](_0x57bee6,_0xff17b7,_0x2c412e,_0x24ecef,_0x28ee89,_0xba9aa1,_0x494d0a,_0x52b1c9){return __awaiter$1(this,void 0,void 0,function*(){const _0x812e38={'account_name':_0x57bee6,'search_service_name':_0xff17b7,'endpoint':_0x2c412e,'key':_0x24ecef,'country':_0x28ee89,'provider':_0xba9aa1,'index_name':_0x494d0a};try{const _0x34250d=yield this['fetch']['post'](this['path'],_0x52b1c9,_0x812e38);if(_0x34250d['status']>0xc7&&_0x34250d['status']<0x12c){const _0x26b847=yield _0x34250d['json']();return new SuccessfulSearchServiceResponse(_0x26b847);}const _0x4bcf19=yield _0x34250d['json']();return new FailedSearchServiceResponse(_0x4bcf19);}catch(_0x1e11c4){if(_0x1e11c4 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x1e11c4['message'],'title':_0x1e11c4['name'],'status':0x1f4,'instance':'','type':''});throw _0x1e11c4;}});}['delete'](_0x5cc305,_0xd0d13b,_0x4e62ee){return __awaiter$1(this,void 0,void 0,function*(){const _0x57fdbd=this['path']+'/'+_0x5cc305+'/'+_0xd0d13b;try{const _0x57980b=yield this['fetch']['delete'](_0x57fdbd,_0x4e62ee);if(_0x57980b['status']>0xc7&&_0x57980b['status']<0x12c)return new SuccessfulResponse({});const _0x9359ab=yield _0x57980b['json']();return new FailedResponse(_0x9359ab);}catch(_0xb23924){if(_0xb23924 instanceof Error)return new FailedResponse({'detail':_0xb23924['message'],'title':_0xb23924['name'],'status':0x1f4,'instance':'','type':''});throw _0xb23924;}});}['view'](_0x2b5c47,_0x190e2f,_0x45f490){return __awaiter$1(this,void 0,void 0,function*(){const _0x35d21c=this['path']+'/'+_0x2b5c47+'/'+_0x190e2f;try{const _0x23e44c=yield this['fetch']['get'](_0x35d21c,_0x45f490);if(_0x23e44c['status']>0xc7&&_0x23e44c['status']<0x12c){const _0x5c5407=yield _0x23e44c['json']();return new SuccessfulViewSearchServiceResponse(_0x5c5407);}const _0x117f4e=yield _0x23e44c['json']();return new FailedViewSearchServiceResponse(_0x117f4e);}catch(_0x2ca9e1){if(_0x2ca9e1 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x2ca9e1['message'],'title':_0x2ca9e1['name'],'status':0x1f4,'instance':'','type':''});throw _0x2ca9e1;}});}['edit'](_0x470b15,_0x5e25b1,_0x3bc911,_0x7ba462,_0x2dc51b,_0x211e8a){return __awaiter$1(this,void 0,void 0,function*(){const _0x51b167={'account_name':_0x470b15,'search_service_name':_0x5e25b1,'new_search_service_name':_0x3bc911,'key':_0x7ba462,'country':_0x2dc51b};try{const _0x1d343d=yield this['fetch']['put'](this['path'],_0x211e8a,_0x51b167);if(_0x1d343d['status']>0xc7&&_0x1d343d['status']<0x12c){const _0x555040=yield _0x1d343d['json']();return new SuccessfulSearchServiceResponse(_0x555040);}const _0x16ef6c=yield _0x1d343d['json']();return new FailedSearchServiceResponse(_0x16ef6c);}catch(_0x3e6133){if(_0x3e6133 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x3e6133['message'],'title':_0x3e6133['name'],'status':0x1f4,'instance':'','type':''});throw _0x3e6133;}});}['list'](_0x1dacb2,_0x5faaaf){return __awaiter$1(this,void 0,void 0,function*(){const _0x3f81b9=this['path']+'/'+_0x1dacb2;try{const _0x63493c=yield this['fetch']['get'](_0x3f81b9,_0x5faaaf);if(_0x63493c['status']>0xc7&&_0x63493c['status']<0x12c){const _0x54f5c4=yield _0x63493c['json']();return new SuccessfulListSearchServiceResponse(_0x54f5c4);}const _0x1b0425=yield _0x63493c['json']();return new FailedViewSearchServicesResponse(_0x1b0425);}catch(_0xd69e79){if(_0xd69e79 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0xd69e79['message'],'title':_0xd69e79['name'],'status':0x1f4,'instance':'','type':''});throw _0xd69e79;}});}}
12
-
13
- var __awaiter=undefined&&undefined['__awaiter']||function(_0x580bfa,_0x4defda,_0x59f252,_0x14d194){function _0x3daa5b(_0x50da8d){return _0x50da8d instanceof _0x59f252?_0x50da8d:new _0x59f252(function(_0x43f649){_0x43f649(_0x50da8d);});}return new(_0x59f252||(_0x59f252=Promise))(function(_0x5c5a3d,_0x594aa9){function _0x2a62b5(_0x52b48f){try{_0x305919(_0x14d194['next'](_0x52b48f));}catch(_0x48a6dc){_0x594aa9(_0x48a6dc);}}function _0x8d3f30(_0x543882){try{_0x305919(_0x14d194['throw'](_0x543882));}catch(_0x94c55){_0x594aa9(_0x94c55);}}function _0x305919(_0x3652f8){_0x3652f8['done']?_0x5c5a3d(_0x3652f8['value']):_0x3daa5b(_0x3652f8['value'])['then'](_0x2a62b5,_0x8d3f30);}_0x305919((_0x14d194=_0x14d194['apply'](_0x580bfa,_0x4defda||[]))['next']());});};class AdminClient{constructor(_0x539006='https://admin.searchability.dev/'){var _0x3fd087=new Fetch(_0x539006);this['Accounts']=new AccountService(_0x3fd087),this['Lists']=new ListService(_0x3fd087),this['ApiKeys']=new ApiKeyService(_0x3fd087),this['SearchServices']=new SearchServersService(_0x3fd087);}}class AuthClient{constructor(_0x1f4a08='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x1f4a08);}['login'](_0x2b9ac7){return __awaiter(this,void 0,void 0,function*(){const _0x5c8338='login/'+_0x2b9ac7;try{const _0x494947=yield yield fetch(_0x5c8338);if(_0x494947['status']>0xc7&&_0x494947['status']<0x12c){const _0x3be166=yield _0x494947['json']();return new SuccessfulAuthResponse(_0x3be166);}const _0x13d869=yield _0x494947['json']();return new FailedAuthResponse(_0x13d869);}catch(_0x49d251){if(_0x49d251 instanceof Error)return new FailedAuthResponse({'detail':_0x49d251['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x49d251;}});}['refresh'](_0x4db934){return __awaiter(this,void 0,void 0,function*(){const _0x366f9e='refresh',_0x552bbf={'refresh_token':_0x4db934};try{const _0x2374cd=yield this['fetch']['PostNoAuth'](_0x366f9e,_0x552bbf);if(_0x2374cd['status']>0xc7&&_0x2374cd['status']<0x12c){const _0x327d41=yield _0x2374cd['json']();return new SuccessfulAuthResponse(_0x327d41);}const _0x59ac51=yield _0x2374cd['json']();return new FailedAuthResponse(_0x59ac51);}catch(_0x17e6c0){if(_0x17e6c0 instanceof Error)return new FailedAuthResponse({'detail':_0x17e6c0['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x17e6c0;}});}['getTokenStatus'](_0x3d8e13){if(Date['now']()<_0x3d8e13['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x3d8e13['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
14
-
15
- export { AdminClient, AuthClient, TokenStatus, Tokens };