@searchability/admin-client 0.0.48 → 0.0.49

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(_0x5bf23a){_0x5bf23a[_0x5bf23a['Ok']=0x0]='Ok',_0x5bf23a[_0x5bf23a['Refresh']=0x1]='Refresh',_0x5bf23a[_0x5bf23a['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x403bf3){this['isSuccess']=_0x403bf3;}}class SuccessfulAccountResponse extends Response{constructor(_0x30fe18){super(!![]),this['account']=_0x30fe18;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x19a385){super(!![]),this['list']=_0x19a385;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x5c7ba1){super(![]),this['problem']=_0x5c7ba1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x6f5502){super(![]),this['problem']=_0x6f5502;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x31b91b){super(!![]),this['tokens']=_0x31b91b;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x22a145){super(![]),this['problem']=_0x22a145;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x547246){super(!![]),this['apiKey']=_0x547246;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x20e443){super(![]),this['problem']=_0x20e443;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x614eeb){super(!![]),this['searchService']=_0x614eeb;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x5653fb){super(![]),this['problem']=_0x5653fb;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x557d70){super(!![]),this['searchService']=_0x557d70;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x2917e7){super(!![]),this['searchServices']=_0x2917e7;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x49b613){super(![]),this['problem']=_0x49b613;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x3da34a){super(![]),this['problem']=_0x3da34a;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x54fb70){super(!![]),this['apiKeyValue']=_0x54fb70;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x4dbdd5){super(!![]),this['obj']=_0x4dbdd5;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x4f9a49){super(![]),this['problem']=_0x4f9a49;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x21608c){super(![]),this['problem']=_0x21608c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
2
+
3
+ var __awaiter$5=undefined&&undefined['__awaiter']||function(_0x426fdd,_0x18024e,_0x5acbce,_0x46860b){function _0x4d3a0b(_0x542b22){return _0x542b22 instanceof _0x5acbce?_0x542b22:new _0x5acbce(function(_0x579edd){_0x579edd(_0x542b22);});}return new(_0x5acbce||(_0x5acbce=Promise))(function(_0x1cb9a1,_0x1d3941){function _0x8ac3ca(_0x5a554d){try{_0x2361b0(_0x46860b['next'](_0x5a554d));}catch(_0x1283d4){_0x1d3941(_0x1283d4);}}function _0x10d235(_0x469216){try{_0x2361b0(_0x46860b['throw'](_0x469216));}catch(_0x4b578c){_0x1d3941(_0x4b578c);}}function _0x2361b0(_0x161464){_0x161464['done']?_0x1cb9a1(_0x161464['value']):_0x4d3a0b(_0x161464['value'])['then'](_0x8ac3ca,_0x10d235);}_0x2361b0((_0x46860b=_0x46860b['apply'](_0x426fdd,_0x18024e||[]))['next']());});};class AccountService{constructor(_0x4ff6f9){this['fetch']=_0x4ff6f9;}['get'](_0x37a154,_0x2c9f7a){return __awaiter$5(this,void 0,void 0,function*(){const _0x30a9fc='Account/'+_0x37a154+'/',_0x26a662=yield this['fetch']['get'](_0x30a9fc,_0x2c9f7a);try{if(_0x26a662['status']>0xc7&&_0x26a662['status']<0x12c){const _0x3e0d20=yield _0x26a662['json']();return new SuccessfulAccountResponse(_0x3e0d20);}const _0x933404=yield _0x26a662['json']();return new FailedAccountResponse(_0x933404);}catch(_0x21694b){if(_0x21694b instanceof Error)return new FailedAccountResponse({'detail':_0x21694b['message'],'title':_0x21694b['name'],'status':0x1f4,'instance':'','type':''});throw _0x21694b;}});}}
4
+
5
+ var __awaiter$4=undefined&&undefined['__awaiter']||function(_0x2628a7,_0x4a39f9,_0x33e16a,_0x516753){function _0x5ae7e5(_0x152f37){return _0x152f37 instanceof _0x33e16a?_0x152f37:new _0x33e16a(function(_0x3b7d44){_0x3b7d44(_0x152f37);});}return new(_0x33e16a||(_0x33e16a=Promise))(function(_0x59c9be,_0x1dc615){function _0x465fb9(_0x5db7b1){try{_0x1ef6c9(_0x516753['next'](_0x5db7b1));}catch(_0x4de645){_0x1dc615(_0x4de645);}}function _0x4126a1(_0x53912e){try{_0x1ef6c9(_0x516753['throw'](_0x53912e));}catch(_0x34a12f){_0x1dc615(_0x34a12f);}}function _0x1ef6c9(_0x3f8ba8){_0x3f8ba8['done']?_0x59c9be(_0x3f8ba8['value']):_0x5ae7e5(_0x3f8ba8['value'])['then'](_0x465fb9,_0x4126a1);}_0x1ef6c9((_0x516753=_0x516753['apply'](_0x2628a7,_0x4a39f9||[]))['next']());});};class ApiKeyService{constructor(_0x51c981){this['fetch']=_0x51c981,this['path']='api-key';}['create'](_0x1e7d87,_0x1d6b0c,_0xd7d218){return __awaiter$4(this,void 0,void 0,function*(){const _0x513692={'account_name':_0x1e7d87,'api_key_name':_0x1d6b0c};try{const _0x441418=yield this['fetch']['post'](this['path'],_0xd7d218,_0x513692);if(_0x441418['status']>0xc7&&_0x441418['status']<0x12c){const _0x3ede90=yield _0x441418['json']();return new SuccessfulApiKeyResponse(_0x3ede90);}const _0x4437f6=yield _0x441418['json']();return new FailedApiKeyResponse(_0x4437f6);}catch(_0x19ed73){if(_0x19ed73 instanceof Error)return new FailedApiKeyResponse({'detail':_0x19ed73['message'],'title':_0x19ed73['name'],'status':0x1f4,'instance':'','type':''});throw _0x19ed73;}});}['view'](_0x2de4ff,_0x40b3d0,_0x558c63){return __awaiter$4(this,void 0,void 0,function*(){const _0x23acf6=this['path']+'/'+_0x2de4ff+'/'+_0x40b3d0;try{const _0xb3dcd9=yield this['fetch']['get'](_0x23acf6,_0x558c63);if(_0xb3dcd9['status']>0xc7&&_0xb3dcd9['status']<0x12c){const _0xe192df=yield _0xb3dcd9['json']();return new SuccessfulApiKeyValueResponse(_0xe192df);}const _0x2c43b4=yield _0xb3dcd9['json']();return new FailedApiKeyValueResponse(_0x2c43b4);}catch(_0x567b46){if(_0x567b46 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x567b46['message'],'title':_0x567b46['name'],'status':0x1f4,'instance':'','type':''});throw _0x567b46;}});}['delete'](_0x19576e,_0x572edb,_0x4e58af){return __awaiter$4(this,void 0,void 0,function*(){const _0x3c90f5=this['path']+'/'+_0x19576e+'/'+_0x572edb;try{const _0x26f56c=yield this['fetch']['delete'](_0x3c90f5,_0x4e58af);if(_0x26f56c['status']>0xc7&&_0x26f56c['status']<0x12c)return new SuccessfulResponse({});const _0x2c3bc5=yield _0x26f56c['json']();return new FailedResponse(_0x2c3bc5);}catch(_0x2a3845){if(_0x2a3845 instanceof Error)return new FailedResponse({'detail':_0x2a3845['message'],'title':_0x2a3845['name'],'status':0x1f4,'instance':'','type':''});throw _0x2a3845;}});}}
6
+
7
+ var __awaiter$3=undefined&&undefined['__awaiter']||function(_0x46d336,_0x19b172,_0x6deb43,_0x2da2d1){function _0x3893d1(_0x41a6a5){return _0x41a6a5 instanceof _0x6deb43?_0x41a6a5:new _0x6deb43(function(_0x3a49c6){_0x3a49c6(_0x41a6a5);});}return new(_0x6deb43||(_0x6deb43=Promise))(function(_0x3f6a30,_0xbf5778){function _0x4362fa(_0x2a21c6){try{_0x13f970(_0x2da2d1['next'](_0x2a21c6));}catch(_0x37e6e4){_0xbf5778(_0x37e6e4);}}function _0x3510b4(_0x475111){try{_0x13f970(_0x2da2d1['throw'](_0x475111));}catch(_0xed24d7){_0xbf5778(_0xed24d7);}}function _0x13f970(_0x3a21ae){_0x3a21ae['done']?_0x3f6a30(_0x3a21ae['value']):_0x3893d1(_0x3a21ae['value'])['then'](_0x4362fa,_0x3510b4);}_0x13f970((_0x2da2d1=_0x2da2d1['apply'](_0x46d336,_0x19b172||[]))['next']());});};class ListService{constructor(_0x19bff6){this['fetch']=_0x19bff6;}['add'](_0x59cf08,_0x3b576d,_0x4e3be3,_0x112481){return __awaiter$3(this,void 0,void 0,function*(){const _0x536b5d='List',_0xe83b67={'account_name':_0x59cf08,'list_name':_0x3b576d,'search_service_name':_0x4e3be3};try{const _0x2a38a8=yield this['fetch']['post'](_0x536b5d,_0x112481,_0xe83b67);if(_0x2a38a8['status']>0xc7&&_0x2a38a8['status']<0x12c){const _0x19998b=yield _0x2a38a8['json']();return new SuccessfulListIdentityResponse(_0x19998b);}const _0x4848ea=yield _0x2a38a8['json']();return new FailedListIdentityResponse(_0x4848ea);}catch(_0x3c3762){if(_0x3c3762 instanceof Error)return new FailedListIdentityResponse({'detail':_0x3c3762['message'],'title':_0x3c3762['name'],'status':0x1f4,'instance':'','type':''});throw _0x3c3762;}});}['delete'](_0x4de0f8,_0x462076,_0x55909b){return __awaiter$3(this,void 0,void 0,function*(){const _0x49a659='List/'+_0x4de0f8+'/'+_0x462076,_0x529777=yield this['fetch']['delete'](_0x49a659,_0x55909b);try{if(_0x529777['status']>0xc7&&_0x529777['status']<0x12c)return new SuccessfulResponse({});const _0x14a8e5=yield _0x529777['json']();return new FailedResponse(_0x14a8e5);}catch(_0x5cc288){if(_0x5cc288 instanceof Error)return new FailedResponse({'detail':_0x5cc288['message'],'title':_0x5cc288['name'],'status':0x1f4,'instance':'','type':''});throw _0x5cc288;}});}}
8
+
9
+ var __awaiter$2=undefined&&undefined['__awaiter']||function(_0x5958c7,_0x11cbbc,_0x551125,_0x28a7ea){function _0x15fda8(_0x464047){return _0x464047 instanceof _0x551125?_0x464047:new _0x551125(function(_0x38902e){_0x38902e(_0x464047);});}return new(_0x551125||(_0x551125=Promise))(function(_0x6088e5,_0x55fd0c){function _0x1fea6f(_0x32a268){try{_0x3f54bb(_0x28a7ea['next'](_0x32a268));}catch(_0x2710ef){_0x55fd0c(_0x2710ef);}}function _0x5daaa3(_0x1bdcce){try{_0x3f54bb(_0x28a7ea['throw'](_0x1bdcce));}catch(_0x55e6ba){_0x55fd0c(_0x55e6ba);}}function _0x3f54bb(_0x333cf4){_0x333cf4['done']?_0x6088e5(_0x333cf4['value']):_0x15fda8(_0x333cf4['value'])['then'](_0x1fea6f,_0x5daaa3);}_0x3f54bb((_0x28a7ea=_0x28a7ea['apply'](_0x5958c7,_0x11cbbc||[]))['next']());});};class Fetch{constructor(_0x26653f){this['baseUri']=_0x26653f,this['getUrl']=_0x255924=>{return _0x255924['startsWith']('/')&&(_0x255924=_0x255924['replace']('/','')),''+this['baseUri']+_0x255924;},!_0x26653f['endsWith']('/')&&(_0x26653f=_0x26653f+'/');}['get'](_0x121c6a,_0x26b474){return __awaiter$2(this,void 0,void 0,function*(){const _0x458461=this['getUrl'](_0x121c6a);return yield fetch(_0x458461,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x26b474}});});}['post'](_0x374aa8,_0x362d66,_0x64df8a){return __awaiter$2(this,void 0,void 0,function*(){const _0x49da01=this['getUrl'](_0x374aa8);return yield fetch(_0x49da01,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x362d66},'body':_0x64df8a?JSON['stringify'](_0x64df8a):null});});}['PostNoAuth'](_0x425883,_0x5e06bd){return __awaiter$2(this,void 0,void 0,function*(){const _0x406a6=this['getUrl'](_0x425883);return yield fetch(_0x406a6,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x5e06bd?JSON['stringify'](_0x5e06bd):null});});}['put'](_0x410621,_0x5203e8,_0x39a0bc){return __awaiter$2(this,void 0,void 0,function*(){const _0x4e5aac=this['getUrl'](_0x410621);return yield fetch(_0x4e5aac,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5203e8},'body':_0x39a0bc?JSON['stringify'](_0x39a0bc):null});});}['delete'](_0x32c963,_0x5eb421){return __awaiter$2(this,void 0,void 0,function*(){const _0x449bf6=this['getUrl'](_0x32c963);return yield fetch(_0x449bf6,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5eb421}});});}}
10
+
11
+ var __awaiter$1=undefined&&undefined['__awaiter']||function(_0x3be3cb,_0x54f128,_0x4184c3,_0x521697){function _0x2034d4(_0x5073dd){return _0x5073dd instanceof _0x4184c3?_0x5073dd:new _0x4184c3(function(_0x1e3e2f){_0x1e3e2f(_0x5073dd);});}return new(_0x4184c3||(_0x4184c3=Promise))(function(_0xdf24c6,_0x2d178a){function _0x2348c5(_0x1a0f26){try{_0x37d1dc(_0x521697['next'](_0x1a0f26));}catch(_0x3bf3cc){_0x2d178a(_0x3bf3cc);}}function _0x27c804(_0x580ebb){try{_0x37d1dc(_0x521697['throw'](_0x580ebb));}catch(_0xae94){_0x2d178a(_0xae94);}}function _0x37d1dc(_0x1f00f2){_0x1f00f2['done']?_0xdf24c6(_0x1f00f2['value']):_0x2034d4(_0x1f00f2['value'])['then'](_0x2348c5,_0x27c804);}_0x37d1dc((_0x521697=_0x521697['apply'](_0x3be3cb,_0x54f128||[]))['next']());});};class SearchServersService{constructor(_0x4326f5){this['fetch']=_0x4326f5,this['path']='search-services';}['create'](_0x38690d,_0x3a5162,_0x2f1f73,_0x2266b7,_0x33c1f3,_0x2945b1,_0x584f9f,_0xbb8dc0){return __awaiter$1(this,void 0,void 0,function*(){const _0xe4d01a={'account_name':_0x38690d,'search_service_name':_0x3a5162,'endpoint':_0x2f1f73,'key':_0x2266b7,'country':_0x33c1f3,'provider':_0x2945b1,'index_name':_0x584f9f};try{const _0x299256=yield this['fetch']['post'](this['path'],_0xbb8dc0,_0xe4d01a);if(_0x299256['status']>0xc7&&_0x299256['status']<0x12c){const _0x1dc298=yield _0x299256['json']();return new SuccessfulSearchServiceResponse(_0x1dc298);}const _0x607c7f=yield _0x299256['json']();return new FailedSearchServiceResponse(_0x607c7f);}catch(_0x3f7ac5){if(_0x3f7ac5 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x3f7ac5['message'],'title':_0x3f7ac5['name'],'status':0x1f4,'instance':'','type':''});throw _0x3f7ac5;}});}['delete'](_0x3a38b6,_0x2b47af,_0x48a8c6){return __awaiter$1(this,void 0,void 0,function*(){const _0x170020=this['path']+'/'+_0x3a38b6+'/'+_0x2b47af;try{const _0x22d081=yield this['fetch']['delete'](_0x170020,_0x48a8c6);if(_0x22d081['status']>0xc7&&_0x22d081['status']<0x12c)return new SuccessfulResponse({});const _0x191c7b=yield _0x22d081['json']();return new FailedResponse(_0x191c7b);}catch(_0x2e204a){if(_0x2e204a instanceof Error)return new FailedResponse({'detail':_0x2e204a['message'],'title':_0x2e204a['name'],'status':0x1f4,'instance':'','type':''});throw _0x2e204a;}});}['view'](_0x31e0da,_0x10dba5,_0x336226){return __awaiter$1(this,void 0,void 0,function*(){const _0x11182b=this['path']+'/'+_0x31e0da+'/'+_0x10dba5;try{const _0x40e951=yield this['fetch']['get'](_0x11182b,_0x336226);if(_0x40e951['status']>0xc7&&_0x40e951['status']<0x12c){const _0x3ea21f=yield _0x40e951['json']();return new SuccessfulViewSearchServiceResponse(_0x3ea21f);}const _0x13963d=yield _0x40e951['json']();return new FailedViewSearchServiceResponse(_0x13963d);}catch(_0x22d38b){if(_0x22d38b instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x22d38b['message'],'title':_0x22d38b['name'],'status':0x1f4,'instance':'','type':''});throw _0x22d38b;}});}['edit'](_0x2438a2,_0x5d7fc7,_0x18d25c,_0x480085,_0x16e29f,_0x17280e){return __awaiter$1(this,void 0,void 0,function*(){const _0x490874={'account_name':_0x2438a2,'search_service_name':_0x5d7fc7,'new_search_service_name':_0x18d25c,'key':_0x480085,'country':_0x16e29f};try{const _0x2f09ee=yield this['fetch']['put'](this['path'],_0x17280e,_0x490874);if(_0x2f09ee['status']>0xc7&&_0x2f09ee['status']<0x12c){const _0x4209da=yield _0x2f09ee['json']();return new SuccessfulSearchServiceResponse(_0x4209da);}const _0x12a0be=yield _0x2f09ee['json']();return new FailedSearchServiceResponse(_0x12a0be);}catch(_0x1550b9){if(_0x1550b9 instanceof Error)return new FailedSearchServiceResponse({'detail':_0x1550b9['message'],'title':_0x1550b9['name'],'status':0x1f4,'instance':'','type':''});throw _0x1550b9;}});}['list'](_0x34fae9,_0x32c252){return __awaiter$1(this,void 0,void 0,function*(){const _0x2e2829=this['path']+'/'+_0x34fae9;try{const _0x10193d=yield this['fetch']['get'](_0x2e2829,_0x32c252);if(_0x10193d['status']>0xc7&&_0x10193d['status']<0x12c){const _0x101251=yield _0x10193d['json']();return new SuccessfulListSearchServiceResponse(_0x101251);}const _0x58145a=yield _0x10193d['json']();return new FailedViewSearchServicesResponse(_0x58145a);}catch(_0x64f3d3){if(_0x64f3d3 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x64f3d3['message'],'title':_0x64f3d3['name'],'status':0x1f4,'instance':'','type':''});throw _0x64f3d3;}});}}
12
+
13
+ var __awaiter=undefined&&undefined['__awaiter']||function(_0xa7788f,_0x664f5f,_0x55e5d3,_0xf04eac){function _0x734ca8(_0x3f1099){return _0x3f1099 instanceof _0x55e5d3?_0x3f1099:new _0x55e5d3(function(_0x115397){_0x115397(_0x3f1099);});}return new(_0x55e5d3||(_0x55e5d3=Promise))(function(_0x46ebaa,_0x57e051){function _0x5b3946(_0x327f40){try{_0x133251(_0xf04eac['next'](_0x327f40));}catch(_0x399e9e){_0x57e051(_0x399e9e);}}function _0x50cd68(_0x206365){try{_0x133251(_0xf04eac['throw'](_0x206365));}catch(_0x2fdbcb){_0x57e051(_0x2fdbcb);}}function _0x133251(_0x340a07){_0x340a07['done']?_0x46ebaa(_0x340a07['value']):_0x734ca8(_0x340a07['value'])['then'](_0x5b3946,_0x50cd68);}_0x133251((_0xf04eac=_0xf04eac['apply'](_0xa7788f,_0x664f5f||[]))['next']());});};class AdminClient{constructor(_0xdf0045='https://admin.searchability.dev/'){var _0x299dbc=new Fetch(_0xdf0045);this['Accounts']=new AccountService(_0x299dbc),this['Lists']=new ListService(_0x299dbc),this['ApiKeys']=new ApiKeyService(_0x299dbc),this['SearchServices']=new SearchServersService(_0x299dbc);}}class AuthClient{constructor(_0x55b6b8='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x55b6b8);}['login'](_0x2f647a){return __awaiter(this,void 0,void 0,function*(){const _0x360020='login/'+_0x2f647a;try{const _0x4c0293=yield yield fetch(_0x360020);if(_0x4c0293['status']>0xc7&&_0x4c0293['status']<0x12c){const _0x109b06=yield _0x4c0293['json']();return new SuccessfulAuthResponse(_0x109b06);}const _0x130aa3=yield _0x4c0293['json']();return new FailedAuthResponse(_0x130aa3);}catch(_0x56d12f){if(_0x56d12f instanceof Error)return new FailedAuthResponse({'detail':_0x56d12f['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x56d12f;}});}['refresh'](_0x3c16ea){return __awaiter(this,void 0,void 0,function*(){const _0x41d0db='refresh',_0x5a2ee1={'refresh_token':_0x3c16ea};try{const _0xf125d3=yield this['fetch']['PostNoAuth'](_0x41d0db,_0x5a2ee1);if(_0xf125d3['status']>0xc7&&_0xf125d3['status']<0x12c){const _0xeb09aa=yield _0xf125d3['json']();return new SuccessfulAuthResponse(_0xeb09aa);}const _0x756833=yield _0xf125d3['json']();return new FailedAuthResponse(_0x756833);}catch(_0x4ab1f8){if(_0x4ab1f8 instanceof Error)return new FailedAuthResponse({'detail':_0x4ab1f8['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x4ab1f8;}});}['getTokenStatus'](_0x1d9f21){if(Date['now']()<_0x1d9f21['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x1d9f21['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
14
+
15
+ export { AdminClient, AuthClient, TokenStatus, Tokens };
@@ -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(_0x5c562a){_0x5c562a[_0x5c562a['Ok']=0x0]='Ok',_0x5c562a[_0x5c562a['Refresh']=0x1]='Refresh',_0x5c562a[_0x5c562a['Expired']=0x2]='Expired';}(exports.TokenStatus||(exports.TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x401994){this['isSuccess']=_0x401994;}}class SuccessfulAccountResponse extends Response{constructor(_0x2c7667){super(!![]),this['account']=_0x2c7667;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x4e580b){super(!![]),this['list']=_0x4e580b;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x50babd){super(![]),this['problem']=_0x50babd;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0xd4000c){super(![]),this['problem']=_0xd4000c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x8275b9){super(!![]),this['tokens']=_0x8275b9;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x5397f4){super(![]),this['problem']=_0x5397f4;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x147e5e){super(!![]),this['apiKey']=_0x147e5e;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0x411a2d){super(![]),this['problem']=_0x411a2d;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x1a00ff){super(!![]),this['searchService']=_0x1a00ff;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x457ec6){super(![]),this['problem']=_0x457ec6;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x3ed640){super(!![]),this['searchService']=_0x3ed640;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0xb8e74a){super(!![]),this['searchServices']=_0xb8e74a;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0xee166f){super(![]),this['problem']=_0xee166f;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x2df238){super(![]),this['problem']=_0x2df238;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x3b242a){super(!![]),this['apiKeyValue']=_0x3b242a;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x462bca){super(!![]),this['obj']=_0x462bca;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x5106fb){super(![]),this['problem']=_0x5106fb;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x2757ba){super(![]),this['problem']=_0x2757ba;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
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(_0x1e1de1,_0x11f7c3,_0x26faba,_0x10fed5){function _0x632baf(_0x24c04b){return _0x24c04b instanceof _0x26faba?_0x24c04b:new _0x26faba(function(_0x46fd8c){_0x46fd8c(_0x24c04b);});}return new(_0x26faba||(_0x26faba=Promise))(function(_0x3d71ca,_0x1b200b){function _0x576344(_0x22a9d6){try{_0x3eff4b(_0x10fed5['next'](_0x22a9d6));}catch(_0x47e0cd){_0x1b200b(_0x47e0cd);}}function _0x2f2e61(_0x9cf2f4){try{_0x3eff4b(_0x10fed5['throw'](_0x9cf2f4));}catch(_0x31f6ff){_0x1b200b(_0x31f6ff);}}function _0x3eff4b(_0x4f5a5e){_0x4f5a5e['done']?_0x3d71ca(_0x4f5a5e['value']):_0x632baf(_0x4f5a5e['value'])['then'](_0x576344,_0x2f2e61);}_0x3eff4b((_0x10fed5=_0x10fed5['apply'](_0x1e1de1,_0x11f7c3||[]))['next']());});};class AccountService{constructor(_0x494e47){this['fetch']=_0x494e47;}['get'](_0xd91c9c,_0x198993){return __awaiter$5(this,void 0,void 0,function*(){const _0xad54b4='Account/'+_0xd91c9c+'/',_0x483f69=yield this['fetch']['get'](_0xad54b4,_0x198993);try{if(_0x483f69['status']>0xc7&&_0x483f69['status']<0x12c){const _0x33d5c1=yield _0x483f69['json']();return new SuccessfulAccountResponse(_0x33d5c1);}const _0x2bbfc6=yield _0x483f69['json']();return new FailedAccountResponse(_0x2bbfc6);}catch(_0x4e1a18){if(_0x4e1a18 instanceof Error)return new FailedAccountResponse({'detail':_0x4e1a18['message'],'title':_0x4e1a18['name'],'status':0x1f4,'instance':'','type':''});throw _0x4e1a18;}});}}
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(_0x18548d,_0x4b3187,_0x426be1,_0xd40f3b){function _0x596bb2(_0x20319f){return _0x20319f instanceof _0x426be1?_0x20319f:new _0x426be1(function(_0x586b16){_0x586b16(_0x20319f);});}return new(_0x426be1||(_0x426be1=Promise))(function(_0x4ca739,_0x20ebe0){function _0x20ddde(_0x50c912){try{_0x12a3ed(_0xd40f3b['next'](_0x50c912));}catch(_0x2344b7){_0x20ebe0(_0x2344b7);}}function _0x2fce85(_0xdc5003){try{_0x12a3ed(_0xd40f3b['throw'](_0xdc5003));}catch(_0x1c5cd3){_0x20ebe0(_0x1c5cd3);}}function _0x12a3ed(_0x23a0c4){_0x23a0c4['done']?_0x4ca739(_0x23a0c4['value']):_0x596bb2(_0x23a0c4['value'])['then'](_0x20ddde,_0x2fce85);}_0x12a3ed((_0xd40f3b=_0xd40f3b['apply'](_0x18548d,_0x4b3187||[]))['next']());});};class ApiKeyService{constructor(_0x5942e2){this['fetch']=_0x5942e2,this['path']='api-key';}['create'](_0x496dad,_0x2588f9,_0x2a7f91){return __awaiter$4(this,void 0,void 0,function*(){const _0x3338d9={'account_name':_0x496dad,'api_key_name':_0x2588f9};try{const _0x8c93ff=yield this['fetch']['post'](this['path'],_0x2a7f91,_0x3338d9);if(_0x8c93ff['status']>0xc7&&_0x8c93ff['status']<0x12c){const _0x3d7165=yield _0x8c93ff['json']();return new SuccessfulApiKeyResponse(_0x3d7165);}const _0x5d8cad=yield _0x8c93ff['json']();return new FailedApiKeyResponse(_0x5d8cad);}catch(_0x94ca3){if(_0x94ca3 instanceof Error)return new FailedApiKeyResponse({'detail':_0x94ca3['message'],'title':_0x94ca3['name'],'status':0x1f4,'instance':'','type':''});throw _0x94ca3;}});}['view'](_0x49b76f,_0x29d5f3,_0x2e1606){return __awaiter$4(this,void 0,void 0,function*(){const _0x246c88=this['path']+'/'+_0x49b76f+'/'+_0x29d5f3;try{const _0x571ff4=yield this['fetch']['get'](_0x246c88,_0x2e1606);if(_0x571ff4['status']>0xc7&&_0x571ff4['status']<0x12c){const _0x38112d=yield _0x571ff4['json']();return new SuccessfulApiKeyValueResponse(_0x38112d);}const _0x2e74d6=yield _0x571ff4['json']();return new FailedApiKeyValueResponse(_0x2e74d6);}catch(_0x5304c6){if(_0x5304c6 instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x5304c6['message'],'title':_0x5304c6['name'],'status':0x1f4,'instance':'','type':''});throw _0x5304c6;}});}['delete'](_0xb43339,_0x3c6bc3,_0x4a7c12){return __awaiter$4(this,void 0,void 0,function*(){const _0x478512=this['path']+'/'+_0xb43339+'/'+_0x3c6bc3;try{const _0xc3a137=yield this['fetch']['delete'](_0x478512,_0x4a7c12);if(_0xc3a137['status']>0xc7&&_0xc3a137['status']<0x12c)return new SuccessfulResponse({});const _0x383cb4=yield _0xc3a137['json']();return new FailedResponse(_0x383cb4);}catch(_0x2033ab){if(_0x2033ab instanceof Error)return new FailedResponse({'detail':_0x2033ab['message'],'title':_0x2033ab['name'],'status':0x1f4,'instance':'','type':''});throw _0x2033ab;}});}}
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(_0x450f8f,_0x4eb377,_0x2c09b3,_0xfe3e82){function _0x34cac4(_0x32c8d6){return _0x32c8d6 instanceof _0x2c09b3?_0x32c8d6:new _0x2c09b3(function(_0x4570d1){_0x4570d1(_0x32c8d6);});}return new(_0x2c09b3||(_0x2c09b3=Promise))(function(_0x4d52d9,_0x52d5ac){function _0x279362(_0x2d9f71){try{_0x1ad413(_0xfe3e82['next'](_0x2d9f71));}catch(_0xd39539){_0x52d5ac(_0xd39539);}}function _0x5a1719(_0x2c5552){try{_0x1ad413(_0xfe3e82['throw'](_0x2c5552));}catch(_0x4d38d1){_0x52d5ac(_0x4d38d1);}}function _0x1ad413(_0x23e990){_0x23e990['done']?_0x4d52d9(_0x23e990['value']):_0x34cac4(_0x23e990['value'])['then'](_0x279362,_0x5a1719);}_0x1ad413((_0xfe3e82=_0xfe3e82['apply'](_0x450f8f,_0x4eb377||[]))['next']());});};class ListService{constructor(_0x29881e){this['fetch']=_0x29881e;}['add'](_0x145019,_0x158fbd,_0x265d50,_0x5219e3){return __awaiter$3(this,void 0,void 0,function*(){const _0x2e5cad='List',_0x27c6ad={'account_name':_0x145019,'list_name':_0x158fbd,'search_service_name':_0x265d50};try{const _0x18ded7=yield this['fetch']['post'](_0x2e5cad,_0x5219e3,_0x27c6ad);if(_0x18ded7['status']>0xc7&&_0x18ded7['status']<0x12c){const _0x42fcd9=yield _0x18ded7['json']();return new SuccessfulListIdentityResponse(_0x42fcd9);}const _0xd04a2e=yield _0x18ded7['json']();return new FailedListIdentityResponse(_0xd04a2e);}catch(_0x1e93f1){if(_0x1e93f1 instanceof Error)return new FailedListIdentityResponse({'detail':_0x1e93f1['message'],'title':_0x1e93f1['name'],'status':0x1f4,'instance':'','type':''});throw _0x1e93f1;}});}['delete'](_0x3aebdf,_0x5b5d5c,_0x36fed7){return __awaiter$3(this,void 0,void 0,function*(){const _0x4916d8='List/'+_0x3aebdf+'/'+_0x5b5d5c,_0xfb15a1=yield this['fetch']['delete'](_0x4916d8,_0x36fed7);try{if(_0xfb15a1['status']>0xc7&&_0xfb15a1['status']<0x12c)return new SuccessfulResponse({});const _0x6f788a=yield _0xfb15a1['json']();return new FailedResponse(_0x6f788a);}catch(_0x4abbc0){if(_0x4abbc0 instanceof Error)return new FailedResponse({'detail':_0x4abbc0['message'],'title':_0x4abbc0['name'],'status':0x1f4,'instance':'','type':''});throw _0x4abbc0;}});}}
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(_0x622449,_0x4a73bb,_0x39a9de,_0x2bd08c){function _0x3b89c4(_0x55a223){return _0x55a223 instanceof _0x39a9de?_0x55a223:new _0x39a9de(function(_0x41197e){_0x41197e(_0x55a223);});}return new(_0x39a9de||(_0x39a9de=Promise))(function(_0x5947e3,_0x2da1df){function _0x660f08(_0x4a5bc4){try{_0x4331ca(_0x2bd08c['next'](_0x4a5bc4));}catch(_0x967897){_0x2da1df(_0x967897);}}function _0x1390d2(_0x2e872b){try{_0x4331ca(_0x2bd08c['throw'](_0x2e872b));}catch(_0x11c197){_0x2da1df(_0x11c197);}}function _0x4331ca(_0x8f9c51){_0x8f9c51['done']?_0x5947e3(_0x8f9c51['value']):_0x3b89c4(_0x8f9c51['value'])['then'](_0x660f08,_0x1390d2);}_0x4331ca((_0x2bd08c=_0x2bd08c['apply'](_0x622449,_0x4a73bb||[]))['next']());});};class Fetch{constructor(_0x5b9d37){this['baseUri']=_0x5b9d37,this['getUrl']=_0x27f7ce=>{return _0x27f7ce['startsWith']('/')&&(_0x27f7ce=_0x27f7ce['replace']('/','')),''+this['baseUri']+_0x27f7ce;},!_0x5b9d37['endsWith']('/')&&(_0x5b9d37=_0x5b9d37+'/');}['get'](_0x373c1d,_0x21220a){return __awaiter$2(this,void 0,void 0,function*(){const _0x3a8477=this['getUrl'](_0x373c1d);return yield fetch(_0x3a8477,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x21220a}});});}['post'](_0x2b9c0c,_0x404002,_0x3025a9){return __awaiter$2(this,void 0,void 0,function*(){const _0xe7ae57=this['getUrl'](_0x2b9c0c);return yield fetch(_0xe7ae57,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x404002},'body':_0x3025a9?JSON['stringify'](_0x3025a9):null});});}['PostNoAuth'](_0x4e02b9,_0x1af18f){return __awaiter$2(this,void 0,void 0,function*(){const _0xd16b8d=this['getUrl'](_0x4e02b9);return yield fetch(_0xd16b8d,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0x1af18f?JSON['stringify'](_0x1af18f):null});});}['put'](_0x4fe987,_0x12c51f,_0x1ed980){return __awaiter$2(this,void 0,void 0,function*(){const _0x365c00=this['getUrl'](_0x4fe987);return yield fetch(_0x365c00,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x12c51f},'body':_0x1ed980?JSON['stringify'](_0x1ed980):null});});}['delete'](_0x1627a4,_0x36d6cd){return __awaiter$2(this,void 0,void 0,function*(){const _0x27e2e9=this['getUrl'](_0x1627a4);return yield fetch(_0x27e2e9,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x36d6cd}});});}}
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(_0x1d1854,_0x3661ab,_0x4205ad,_0x5b529f){function _0x3e9800(_0x12446e){return _0x12446e instanceof _0x4205ad?_0x12446e:new _0x4205ad(function(_0x5b02a9){_0x5b02a9(_0x12446e);});}return new(_0x4205ad||(_0x4205ad=Promise))(function(_0x32c08e,_0x541b39){function _0x46d0f2(_0x5dde10){try{_0x29f827(_0x5b529f['next'](_0x5dde10));}catch(_0x1d13b8){_0x541b39(_0x1d13b8);}}function _0x559b72(_0x209697){try{_0x29f827(_0x5b529f['throw'](_0x209697));}catch(_0x502ea5){_0x541b39(_0x502ea5);}}function _0x29f827(_0x16c05a){_0x16c05a['done']?_0x32c08e(_0x16c05a['value']):_0x3e9800(_0x16c05a['value'])['then'](_0x46d0f2,_0x559b72);}_0x29f827((_0x5b529f=_0x5b529f['apply'](_0x1d1854,_0x3661ab||[]))['next']());});};class SearchServersService{constructor(_0x3b830f){this['fetch']=_0x3b830f,this['path']='search-services';}['create'](_0x53f5a8,_0x45b6d4,_0x48439a,_0x12724c,_0x1e1e10,_0x41a52d,_0x307612,_0x211fee){return __awaiter$1(this,void 0,void 0,function*(){const _0x187e6a={'account_name':_0x53f5a8,'search_service_name':_0x45b6d4,'endpoint':_0x48439a,'key':_0x12724c,'country':_0x1e1e10,'provider':_0x41a52d,'index_name':_0x307612};try{const _0x3c1a66=yield this['fetch']['post'](this['path'],_0x211fee,_0x187e6a);if(_0x3c1a66['status']>0xc7&&_0x3c1a66['status']<0x12c){const _0x519a7a=yield _0x3c1a66['json']();return new SuccessfulSearchServiceResponse(_0x519a7a);}const _0x4d1f6f=yield _0x3c1a66['json']();return new FailedSearchServiceResponse(_0x4d1f6f);}catch(_0x5f5d8f){if(_0x5f5d8f instanceof Error)return new FailedSearchServiceResponse({'detail':_0x5f5d8f['message'],'title':_0x5f5d8f['name'],'status':0x1f4,'instance':'','type':''});throw _0x5f5d8f;}});}['delete'](_0x3594b4,_0x283f9b,_0x1ada53){return __awaiter$1(this,void 0,void 0,function*(){const _0x167272=this['path']+'/'+_0x3594b4+'/'+_0x283f9b;try{const _0x304215=yield this['fetch']['delete'](_0x167272,_0x1ada53);if(_0x304215['status']>0xc7&&_0x304215['status']<0x12c)return new SuccessfulResponse({});const _0x10118f=yield _0x304215['json']();return new FailedResponse(_0x10118f);}catch(_0x37b68f){if(_0x37b68f instanceof Error)return new FailedResponse({'detail':_0x37b68f['message'],'title':_0x37b68f['name'],'status':0x1f4,'instance':'','type':''});throw _0x37b68f;}});}['view'](_0xadfe74,_0x51d5c4,_0x5a1559){return __awaiter$1(this,void 0,void 0,function*(){const _0x46937b=this['path']+'/'+_0xadfe74+'/'+_0x51d5c4;try{const _0x1d6956=yield this['fetch']['get'](_0x46937b,_0x5a1559);if(_0x1d6956['status']>0xc7&&_0x1d6956['status']<0x12c){const _0x318fea=yield _0x1d6956['json']();return new SuccessfulViewSearchServiceResponse(_0x318fea);}const _0x3bc94f=yield _0x1d6956['json']();return new FailedViewSearchServiceResponse(_0x3bc94f);}catch(_0x38e2f1){if(_0x38e2f1 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x38e2f1['message'],'title':_0x38e2f1['name'],'status':0x1f4,'instance':'','type':''});throw _0x38e2f1;}});}['edit'](_0x2cc2f0,_0x4c071d,_0x45d11a,_0x2e5f27,_0x8d30a4,_0x5bfff8){return __awaiter$1(this,void 0,void 0,function*(){const _0x423d2e={'account_name':_0x2cc2f0,'search_service_name':_0x4c071d,'new_search_service_name':_0x45d11a,'key':_0x2e5f27,'country':_0x8d30a4};try{const _0x5db4f0=yield this['fetch']['put'](this['path'],_0x5bfff8,_0x423d2e);if(_0x5db4f0['status']>0xc7&&_0x5db4f0['status']<0x12c){const _0x1056f9=yield _0x5db4f0['json']();return new SuccessfulSearchServiceResponse(_0x1056f9);}const _0x1d10a1=yield _0x5db4f0['json']();return new FailedSearchServiceResponse(_0x1d10a1);}catch(_0xee1155){if(_0xee1155 instanceof Error)return new FailedSearchServiceResponse({'detail':_0xee1155['message'],'title':_0xee1155['name'],'status':0x1f4,'instance':'','type':''});throw _0xee1155;}});}['list'](_0xfc06df,_0x12cb48){return __awaiter$1(this,void 0,void 0,function*(){const _0x407cd6=this['path']+'/'+_0xfc06df;try{const _0x49ee34=yield this['fetch']['get'](_0x407cd6,_0x12cb48);if(_0x49ee34['status']>0xc7&&_0x49ee34['status']<0x12c){const _0x23c5d0=yield _0x49ee34['json']();return new SuccessfulListSearchServiceResponse(_0x23c5d0);}const _0x154c2e=yield _0x49ee34['json']();return new FailedViewSearchServicesResponse(_0x154c2e);}catch(_0x5aacd4){if(_0x5aacd4 instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x5aacd4['message'],'title':_0x5aacd4['name'],'status':0x1f4,'instance':'','type':''});throw _0x5aacd4;}});}}
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(_0x2c083f,_0x2317ef,_0x1b64f0,_0x4a41a7){function _0x40cc59(_0x5dccd7){return _0x5dccd7 instanceof _0x1b64f0?_0x5dccd7:new _0x1b64f0(function(_0x466a9e){_0x466a9e(_0x5dccd7);});}return new(_0x1b64f0||(_0x1b64f0=Promise))(function(_0x3f259e,_0x4fd307){function _0x56c070(_0x39df6c){try{_0x33c3ea(_0x4a41a7['next'](_0x39df6c));}catch(_0x3e9eee){_0x4fd307(_0x3e9eee);}}function _0x47a0ea(_0x57c8d3){try{_0x33c3ea(_0x4a41a7['throw'](_0x57c8d3));}catch(_0x4887ae){_0x4fd307(_0x4887ae);}}function _0x33c3ea(_0x203668){_0x203668['done']?_0x3f259e(_0x203668['value']):_0x40cc59(_0x203668['value'])['then'](_0x56c070,_0x47a0ea);}_0x33c3ea((_0x4a41a7=_0x4a41a7['apply'](_0x2c083f,_0x2317ef||[]))['next']());});};class AdminClient{constructor(_0x399904='https://admin.searchability.dev/'){var _0x367823=new Fetch(_0x399904);this['Accounts']=new AccountService(_0x367823),this['Lists']=new ListService(_0x367823),this['ApiKeys']=new ApiKeyService(_0x367823),this['SearchServices']=new SearchServersService(_0x367823);}}class AuthClient{constructor(_0x1d9852='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0x1d9852);}['login'](_0x1cee52){return __awaiter(this,void 0,void 0,function*(){const _0x2ec531='login/'+_0x1cee52;try{const _0x97306a=yield yield fetch(_0x2ec531);if(_0x97306a['status']>0xc7&&_0x97306a['status']<0x12c){const _0x1c0350=yield _0x97306a['json']();return new SuccessfulAuthResponse(_0x1c0350);}const _0x2c3fef=yield _0x97306a['json']();return new FailedAuthResponse(_0x2c3fef);}catch(_0x596443){if(_0x596443 instanceof Error)return new FailedAuthResponse({'detail':_0x596443['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x596443;}});}['refresh'](_0xc947c0){return __awaiter(this,void 0,void 0,function*(){const _0x320ea2='refresh',_0x1d9fc7={'refresh_token':_0xc947c0};try{const _0xedc8b3=yield this['fetch']['PostNoAuth'](_0x320ea2,_0x1d9fc7);if(_0xedc8b3['status']>0xc7&&_0xedc8b3['status']<0x12c){const _0x453dcb=yield _0xedc8b3['json']();return new SuccessfulAuthResponse(_0x453dcb);}const _0x1388bb=yield _0xedc8b3['json']();return new FailedAuthResponse(_0x1388bb);}catch(_0x5f5134){if(_0x5f5134 instanceof Error)return new FailedAuthResponse({'detail':_0x5f5134['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x5f5134;}});}['getTokenStatus'](_0x2adb13){if(Date['now']()<_0x2adb13['access_expires'])return exports.TokenStatus['Ok'];if(Date['now']()<_0x2adb13['refresh_expires'])return exports.TokenStatus['Refresh'];return exports.TokenStatus['Expired'];}}
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(_0x1de3d2){_0x1de3d2[_0x1de3d2['Ok']=0x0]='Ok',_0x1de3d2[_0x1de3d2['Refresh']=0x1]='Refresh',_0x1de3d2[_0x1de3d2['Expired']=0x2]='Expired';}(TokenStatus||(TokenStatus={})));class Tokens{constructor(){this['access_token']='',this['access_expires']=0x0,this['refresh_token']='',this['refresh_expires']=0x0;}}class Response{constructor(_0x53270b){this['isSuccess']=_0x53270b;}}class SuccessfulAccountResponse extends Response{constructor(_0x3bac96){super(!![]),this['account']=_0x3bac96;}['toSuccess'](){return this['account'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListIdentityResponse extends Response{constructor(_0x1524d2){super(!![]),this['list']=_0x1524d2;}['toSuccess'](){return this['list'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAccountResponse extends Response{constructor(_0x3f5569){super(![]),this['problem']=_0x3f5569;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedListIdentityResponse extends Response{constructor(_0x3db51c){super(![]),this['problem']=_0x3db51c;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulAuthResponse extends Response{constructor(_0x1e572b){super(!![]),this['tokens']=_0x1e572b;}['toSuccess'](){return this['tokens'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedAuthResponse extends Response{constructor(_0x2237b1){super(![]),this['problem']=_0x2237b1;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyResponse extends Response{constructor(_0x260a6f){super(!![]),this['apiKey']=_0x260a6f;}['toSuccess'](){return this['apiKey'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedApiKeyResponse extends Response{constructor(_0xc55016){super(![]),this['problem']=_0xc55016;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulSearchServiceResponse extends Response{constructor(_0x32c1b2){super(!![]),this['searchService']=_0x32c1b2;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedSearchServiceResponse extends Response{constructor(_0x5dc5a9){super(![]),this['problem']=_0x5dc5a9;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulViewSearchServiceResponse extends Response{constructor(_0x97277c){super(!![]),this['searchService']=_0x97277c;}['toSuccess'](){return this['searchService'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulListSearchServiceResponse extends Response{constructor(_0x235879){super(!![]),this['searchServices']=_0x235879;}['toSuccess'](){return this['searchServices'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedViewSearchServicesResponse extends Response{constructor(_0x111251){super(![]),this['problem']=_0x111251;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedViewSearchServiceResponse extends Response{constructor(_0x219ebe){super(![]),this['problem']=_0x219ebe;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class SuccessfulApiKeyValueResponse extends Response{constructor(_0x214bcf){super(!![]),this['apiKeyValue']=_0x214bcf;}['toSuccess'](){return this['apiKeyValue'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class SuccessfulResponse extends Response{constructor(_0x545356){super(!![]),this['obj']=_0x545356;}['toSuccess'](){return this['obj'];}['toProblem'](){throw new Error('Did\x20not\x20fail');}}class FailedResponse extends Response{constructor(_0x5e189b){super(![]),this['problem']=_0x5e189b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}class FailedApiKeyValueResponse extends Response{constructor(_0x16029b){super(![]),this['problem']=_0x16029b;}['toSuccess'](){throw new Error('Not\x20a\x20success');}['toProblem'](){return this['problem'];}}
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(_0x4f692a,_0x3bc1d2,_0xc66ce3,_0x5951ae){function _0x450163(_0x1153f2){return _0x1153f2 instanceof _0xc66ce3?_0x1153f2:new _0xc66ce3(function(_0x437b5f){_0x437b5f(_0x1153f2);});}return new(_0xc66ce3||(_0xc66ce3=Promise))(function(_0x16e6bb,_0x30f347){function _0x4a627b(_0x54ead3){try{_0x257d9a(_0x5951ae['next'](_0x54ead3));}catch(_0x3d7c41){_0x30f347(_0x3d7c41);}}function _0x67cb2d(_0x1071a1){try{_0x257d9a(_0x5951ae['throw'](_0x1071a1));}catch(_0x2ee60f){_0x30f347(_0x2ee60f);}}function _0x257d9a(_0x2eb3bf){_0x2eb3bf['done']?_0x16e6bb(_0x2eb3bf['value']):_0x450163(_0x2eb3bf['value'])['then'](_0x4a627b,_0x67cb2d);}_0x257d9a((_0x5951ae=_0x5951ae['apply'](_0x4f692a,_0x3bc1d2||[]))['next']());});};class AccountService{constructor(_0x1ceeca){this['fetch']=_0x1ceeca;}['get'](_0x526264,_0x2762ee){return __awaiter$5(this,void 0,void 0,function*(){const _0x1387bf='Account/'+_0x526264+'/',_0x35bfdc=yield this['fetch']['get'](_0x1387bf,_0x2762ee);try{if(_0x35bfdc['status']>0xc7&&_0x35bfdc['status']<0x12c){const _0x2b4fbd=yield _0x35bfdc['json']();return new SuccessfulAccountResponse(_0x2b4fbd);}const _0x56594b=yield _0x35bfdc['json']();return new FailedAccountResponse(_0x56594b);}catch(_0x97df9c){if(_0x97df9c instanceof Error)return new FailedAccountResponse({'detail':_0x97df9c['message'],'title':_0x97df9c['name'],'status':0x1f4,'instance':'','type':''});throw _0x97df9c;}});}}
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(_0xa2b1f4,_0x1970ea,_0xcd77dc,_0x23e757){function _0x15b396(_0x4ffcde){return _0x4ffcde instanceof _0xcd77dc?_0x4ffcde:new _0xcd77dc(function(_0x265934){_0x265934(_0x4ffcde);});}return new(_0xcd77dc||(_0xcd77dc=Promise))(function(_0x5915aa,_0xc4003c){function _0x42ba91(_0x1a622){try{_0x3d80d9(_0x23e757['next'](_0x1a622));}catch(_0x1b97f3){_0xc4003c(_0x1b97f3);}}function _0x1c1240(_0x5630cd){try{_0x3d80d9(_0x23e757['throw'](_0x5630cd));}catch(_0x525acc){_0xc4003c(_0x525acc);}}function _0x3d80d9(_0x558021){_0x558021['done']?_0x5915aa(_0x558021['value']):_0x15b396(_0x558021['value'])['then'](_0x42ba91,_0x1c1240);}_0x3d80d9((_0x23e757=_0x23e757['apply'](_0xa2b1f4,_0x1970ea||[]))['next']());});};class ApiKeyService{constructor(_0x4e8a25){this['fetch']=_0x4e8a25,this['path']='api-key';}['create'](_0x5b8679,_0xb4c942,_0x5beeb9){return __awaiter$4(this,void 0,void 0,function*(){const _0x399f27={'account_name':_0x5b8679,'api_key_name':_0xb4c942};try{const _0x4064b1=yield this['fetch']['post'](this['path'],_0x5beeb9,_0x399f27);if(_0x4064b1['status']>0xc7&&_0x4064b1['status']<0x12c){const _0x3f3682=yield _0x4064b1['json']();return new SuccessfulApiKeyResponse(_0x3f3682);}const _0x43412a=yield _0x4064b1['json']();return new FailedApiKeyResponse(_0x43412a);}catch(_0x3f16ca){if(_0x3f16ca instanceof Error)return new FailedApiKeyResponse({'detail':_0x3f16ca['message'],'title':_0x3f16ca['name'],'status':0x1f4,'instance':'','type':''});throw _0x3f16ca;}});}['view'](_0x57b3f1,_0x52a09d,_0x4bbfcc){return __awaiter$4(this,void 0,void 0,function*(){const _0x3dfd35=this['path']+'/'+_0x57b3f1+'/'+_0x52a09d;try{const _0x2dc832=yield this['fetch']['get'](_0x3dfd35,_0x4bbfcc);if(_0x2dc832['status']>0xc7&&_0x2dc832['status']<0x12c){const _0x23b8c2=yield _0x2dc832['json']();return new SuccessfulApiKeyValueResponse(_0x23b8c2);}const _0x3902cd=yield _0x2dc832['json']();return new FailedApiKeyValueResponse(_0x3902cd);}catch(_0x524a8f){if(_0x524a8f instanceof Error)return new FailedApiKeyValueResponse({'detail':_0x524a8f['message'],'title':_0x524a8f['name'],'status':0x1f4,'instance':'','type':''});throw _0x524a8f;}});}['delete'](_0x397fa0,_0x5bf6ca,_0x1c09d1){return __awaiter$4(this,void 0,void 0,function*(){const _0x127037=this['path']+'/'+_0x397fa0+'/'+_0x5bf6ca;try{const _0x2c8f0e=yield this['fetch']['delete'](_0x127037,_0x1c09d1);if(_0x2c8f0e['status']>0xc7&&_0x2c8f0e['status']<0x12c)return new SuccessfulResponse({});const _0x284c68=yield _0x2c8f0e['json']();return new FailedResponse(_0x284c68);}catch(_0x21b6cb){if(_0x21b6cb instanceof Error)return new FailedResponse({'detail':_0x21b6cb['message'],'title':_0x21b6cb['name'],'status':0x1f4,'instance':'','type':''});throw _0x21b6cb;}});}}
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(_0xdecb7d,_0x439087,_0x15ff21,_0x1eae3e){function _0x57696e(_0x576e36){return _0x576e36 instanceof _0x15ff21?_0x576e36:new _0x15ff21(function(_0x54c1c3){_0x54c1c3(_0x576e36);});}return new(_0x15ff21||(_0x15ff21=Promise))(function(_0x22f4c8,_0x3986ca){function _0x43d81f(_0x3cdfb4){try{_0x3bbd70(_0x1eae3e['next'](_0x3cdfb4));}catch(_0x510fc1){_0x3986ca(_0x510fc1);}}function _0x208bb6(_0x10a86f){try{_0x3bbd70(_0x1eae3e['throw'](_0x10a86f));}catch(_0xcc00dc){_0x3986ca(_0xcc00dc);}}function _0x3bbd70(_0x2a249e){_0x2a249e['done']?_0x22f4c8(_0x2a249e['value']):_0x57696e(_0x2a249e['value'])['then'](_0x43d81f,_0x208bb6);}_0x3bbd70((_0x1eae3e=_0x1eae3e['apply'](_0xdecb7d,_0x439087||[]))['next']());});};class ListService{constructor(_0x4709a9){this['fetch']=_0x4709a9;}['add'](_0x4f9b95,_0x25d0ce,_0xf46ad,_0x51d038){return __awaiter$3(this,void 0,void 0,function*(){const _0x2c66e4='List',_0xef63d6={'account_name':_0x4f9b95,'list_name':_0x25d0ce,'search_service_name':_0xf46ad};try{const _0x749c44=yield this['fetch']['post'](_0x2c66e4,_0x51d038,_0xef63d6);if(_0x749c44['status']>0xc7&&_0x749c44['status']<0x12c){const _0x18c436=yield _0x749c44['json']();return new SuccessfulListIdentityResponse(_0x18c436);}const _0x2cddd7=yield _0x749c44['json']();return new FailedListIdentityResponse(_0x2cddd7);}catch(_0x160c97){if(_0x160c97 instanceof Error)return new FailedListIdentityResponse({'detail':_0x160c97['message'],'title':_0x160c97['name'],'status':0x1f4,'instance':'','type':''});throw _0x160c97;}});}['delete'](_0x264d2a,_0x5734dc,_0x4463b3){return __awaiter$3(this,void 0,void 0,function*(){const _0x14dcd9='List/'+_0x264d2a+'/'+_0x5734dc,_0x26fef1=yield this['fetch']['delete'](_0x14dcd9,_0x4463b3);try{if(_0x26fef1['status']>0xc7&&_0x26fef1['status']<0x12c)return new SuccessfulResponse({});const _0x6bb66c=yield _0x26fef1['json']();return new FailedResponse(_0x6bb66c);}catch(_0x1db3ba){if(_0x1db3ba instanceof Error)return new FailedResponse({'detail':_0x1db3ba['message'],'title':_0x1db3ba['name'],'status':0x1f4,'instance':'','type':''});throw _0x1db3ba;}});}}
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(_0x1fb909,_0x36b8,_0xe5e263,_0x2d4a07){function _0x31f375(_0x27f845){return _0x27f845 instanceof _0xe5e263?_0x27f845:new _0xe5e263(function(_0x5281a6){_0x5281a6(_0x27f845);});}return new(_0xe5e263||(_0xe5e263=Promise))(function(_0x50f863,_0x19fd40){function _0x424a0(_0x2e8230){try{_0x2a0f01(_0x2d4a07['next'](_0x2e8230));}catch(_0x3e4fea){_0x19fd40(_0x3e4fea);}}function _0x2586ba(_0x5683bf){try{_0x2a0f01(_0x2d4a07['throw'](_0x5683bf));}catch(_0x221a0f){_0x19fd40(_0x221a0f);}}function _0x2a0f01(_0x305254){_0x305254['done']?_0x50f863(_0x305254['value']):_0x31f375(_0x305254['value'])['then'](_0x424a0,_0x2586ba);}_0x2a0f01((_0x2d4a07=_0x2d4a07['apply'](_0x1fb909,_0x36b8||[]))['next']());});};class Fetch{constructor(_0x37e93f){this['baseUri']=_0x37e93f,this['getUrl']=_0x5c1621=>{return _0x5c1621['startsWith']('/')&&(_0x5c1621=_0x5c1621['replace']('/','')),''+this['baseUri']+_0x5c1621;},!_0x37e93f['endsWith']('/')&&(_0x37e93f=_0x37e93f+'/');}['get'](_0x328b41,_0x23410d){return __awaiter$2(this,void 0,void 0,function*(){const _0x2a7729=this['getUrl'](_0x328b41);return yield fetch(_0x2a7729,{'method':'GET','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x23410d}});});}['post'](_0x2f466b,_0x5f5507,_0x4259bc){return __awaiter$2(this,void 0,void 0,function*(){const _0x45c0a=this['getUrl'](_0x2f466b);return yield fetch(_0x45c0a,{'method':'POST','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x5f5507},'body':_0x4259bc?JSON['stringify'](_0x4259bc):null});});}['PostNoAuth'](_0x20c958,_0xfad7e1){return __awaiter$2(this,void 0,void 0,function*(){const _0x17b16a=this['getUrl'](_0x20c958);return yield fetch(_0x17b16a,{'method':'POST','headers':{'Content-Type':'application/json'},'body':_0xfad7e1?JSON['stringify'](_0xfad7e1):null});});}['put'](_0x37604b,_0x33221d,_0x5bfd79){return __awaiter$2(this,void 0,void 0,function*(){const _0x400e3a=this['getUrl'](_0x37604b);return yield fetch(_0x400e3a,{'method':'PUT','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x33221d},'body':_0x5bfd79?JSON['stringify'](_0x5bfd79):null});});}['delete'](_0x4bbcfa,_0x6bb0a5){return __awaiter$2(this,void 0,void 0,function*(){const _0x35129c=this['getUrl'](_0x4bbcfa);return yield fetch(_0x35129c,{'method':'DELETE','headers':{'Content-Type':'application/json','Authorization':'Bearer\x20'+_0x6bb0a5}});});}}
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(_0x53ae5b,_0xfb484e,_0x1229d1,_0x30d28a){function _0x545291(_0x16a8d7){return _0x16a8d7 instanceof _0x1229d1?_0x16a8d7:new _0x1229d1(function(_0x59abfb){_0x59abfb(_0x16a8d7);});}return new(_0x1229d1||(_0x1229d1=Promise))(function(_0x51bdc7,_0x174042){function _0x41074d(_0x5469be){try{_0x55531b(_0x30d28a['next'](_0x5469be));}catch(_0x719b97){_0x174042(_0x719b97);}}function _0x59d488(_0x3f1fda){try{_0x55531b(_0x30d28a['throw'](_0x3f1fda));}catch(_0x21c641){_0x174042(_0x21c641);}}function _0x55531b(_0x378cd6){_0x378cd6['done']?_0x51bdc7(_0x378cd6['value']):_0x545291(_0x378cd6['value'])['then'](_0x41074d,_0x59d488);}_0x55531b((_0x30d28a=_0x30d28a['apply'](_0x53ae5b,_0xfb484e||[]))['next']());});};class SearchServersService{constructor(_0x3afecd){this['fetch']=_0x3afecd,this['path']='search-services';}['create'](_0x3bf996,_0x7a8bf4,_0x469bc7,_0x552f14,_0x27a593,_0x2d1191,_0x3ad85e,_0x211e25){return __awaiter$1(this,void 0,void 0,function*(){const _0x12abe6={'account_name':_0x3bf996,'search_service_name':_0x7a8bf4,'endpoint':_0x469bc7,'key':_0x552f14,'country':_0x27a593,'provider':_0x2d1191,'index_name':_0x3ad85e};try{const _0x3d3a24=yield this['fetch']['post'](this['path'],_0x211e25,_0x12abe6);if(_0x3d3a24['status']>0xc7&&_0x3d3a24['status']<0x12c){const _0x391bdb=yield _0x3d3a24['json']();return new SuccessfulSearchServiceResponse(_0x391bdb);}const _0x9f2346=yield _0x3d3a24['json']();return new FailedSearchServiceResponse(_0x9f2346);}catch(_0x56f78c){if(_0x56f78c instanceof Error)return new FailedSearchServiceResponse({'detail':_0x56f78c['message'],'title':_0x56f78c['name'],'status':0x1f4,'instance':'','type':''});throw _0x56f78c;}});}['delete'](_0x35299d,_0x43fb9d,_0x264caf){return __awaiter$1(this,void 0,void 0,function*(){const _0x42312b=this['path']+'/'+_0x35299d+'/'+_0x43fb9d;try{const _0x11ecc4=yield this['fetch']['delete'](_0x42312b,_0x264caf);if(_0x11ecc4['status']>0xc7&&_0x11ecc4['status']<0x12c)return new SuccessfulResponse({});const _0x38073f=yield _0x11ecc4['json']();return new FailedResponse(_0x38073f);}catch(_0x249a9c){if(_0x249a9c instanceof Error)return new FailedResponse({'detail':_0x249a9c['message'],'title':_0x249a9c['name'],'status':0x1f4,'instance':'','type':''});throw _0x249a9c;}});}['view'](_0x282eb8,_0x5eb807,_0x3e0827){return __awaiter$1(this,void 0,void 0,function*(){const _0x34482a=this['path']+'/'+_0x282eb8+'/'+_0x5eb807;try{const _0x2ee128=yield this['fetch']['get'](_0x34482a,_0x3e0827);if(_0x2ee128['status']>0xc7&&_0x2ee128['status']<0x12c){const _0x344e3f=yield _0x2ee128['json']();return new SuccessfulViewSearchServiceResponse(_0x344e3f);}const _0x3b17bd=yield _0x2ee128['json']();return new FailedViewSearchServiceResponse(_0x3b17bd);}catch(_0x4817f6){if(_0x4817f6 instanceof Error)return new FailedViewSearchServiceResponse({'detail':_0x4817f6['message'],'title':_0x4817f6['name'],'status':0x1f4,'instance':'','type':''});throw _0x4817f6;}});}['edit'](_0x31185b,_0x3110d5,_0x5dc562,_0x2b636e,_0x45d72f,_0x10e8fa){return __awaiter$1(this,void 0,void 0,function*(){const _0x591c4a={'account_name':_0x31185b,'search_service_name':_0x3110d5,'new_search_service_name':_0x5dc562,'key':_0x2b636e,'country':_0x45d72f};try{const _0x340283=yield this['fetch']['put'](this['path'],_0x10e8fa,_0x591c4a);if(_0x340283['status']>0xc7&&_0x340283['status']<0x12c){const _0x4f1982=yield _0x340283['json']();return new SuccessfulSearchServiceResponse(_0x4f1982);}const _0x108932=yield _0x340283['json']();return new FailedSearchServiceResponse(_0x108932);}catch(_0x5c6a1f){if(_0x5c6a1f instanceof Error)return new FailedSearchServiceResponse({'detail':_0x5c6a1f['message'],'title':_0x5c6a1f['name'],'status':0x1f4,'instance':'','type':''});throw _0x5c6a1f;}});}['list'](_0xd76223,_0x415daf){return __awaiter$1(this,void 0,void 0,function*(){const _0x483b6b=this['path']+'/'+_0xd76223;try{const _0x356c44=yield this['fetch']['get'](_0x483b6b,_0x415daf);if(_0x356c44['status']>0xc7&&_0x356c44['status']<0x12c){const _0x5f2914=yield _0x356c44['json']();return new SuccessfulListSearchServiceResponse(_0x5f2914);}const _0x263fcd=yield _0x356c44['json']();return new FailedViewSearchServicesResponse(_0x263fcd);}catch(_0x58dece){if(_0x58dece instanceof Error)return new FailedViewSearchServicesResponse({'detail':_0x58dece['message'],'title':_0x58dece['name'],'status':0x1f4,'instance':'','type':''});throw _0x58dece;}});}}
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(_0x5df082,_0x5239f1,_0x194f86,_0x37c4f2){function _0x5d6186(_0x377509){return _0x377509 instanceof _0x194f86?_0x377509:new _0x194f86(function(_0x14d5c2){_0x14d5c2(_0x377509);});}return new(_0x194f86||(_0x194f86=Promise))(function(_0x57a64e,_0x1417cf){function _0x5973f1(_0x2983f3){try{_0x5809ff(_0x37c4f2['next'](_0x2983f3));}catch(_0x404201){_0x1417cf(_0x404201);}}function _0x4520c6(_0x568d38){try{_0x5809ff(_0x37c4f2['throw'](_0x568d38));}catch(_0x14d9f4){_0x1417cf(_0x14d9f4);}}function _0x5809ff(_0x12128a){_0x12128a['done']?_0x57a64e(_0x12128a['value']):_0x5d6186(_0x12128a['value'])['then'](_0x5973f1,_0x4520c6);}_0x5809ff((_0x37c4f2=_0x37c4f2['apply'](_0x5df082,_0x5239f1||[]))['next']());});};class AdminClient{constructor(_0x204c7c='https://admin.searchability.dev/'){var _0x2ac52f=new Fetch(_0x204c7c);this['Accounts']=new AccountService(_0x2ac52f),this['Lists']=new ListService(_0x2ac52f),this['ApiKeys']=new ApiKeyService(_0x2ac52f),this['SearchServices']=new SearchServersService(_0x2ac52f);}}class AuthClient{constructor(_0xef5911='https://auth.searchability.dev/'){this['fetch']=new Fetch(_0xef5911);}['login'](_0x25cb3a){return __awaiter(this,void 0,void 0,function*(){const _0x15bc58='login/'+_0x25cb3a;try{const _0x15e69d=yield yield fetch(_0x15bc58);if(_0x15e69d['status']>0xc7&&_0x15e69d['status']<0x12c){const _0x5630b4=yield _0x15e69d['json']();return new SuccessfulAuthResponse(_0x5630b4);}const _0x2e364d=yield _0x15e69d['json']();return new FailedAuthResponse(_0x2e364d);}catch(_0x2edb90){if(_0x2edb90 instanceof Error)return new FailedAuthResponse({'detail':_0x2edb90['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x2edb90;}});}['refresh'](_0xd89ac8){return __awaiter(this,void 0,void 0,function*(){const _0x4cd44b='refresh',_0x1e4ca7={'refresh_token':_0xd89ac8};try{const _0x80f374=yield this['fetch']['PostNoAuth'](_0x4cd44b,_0x1e4ca7);if(_0x80f374['status']>0xc7&&_0x80f374['status']<0x12c){const _0x481e01=yield _0x80f374['json']();return new SuccessfulAuthResponse(_0x481e01);}const _0x1c35e4=yield _0x80f374['json']();return new FailedAuthResponse(_0x1c35e4);}catch(_0x222b97){if(_0x222b97 instanceof Error)return new FailedAuthResponse({'detail':_0x222b97['message'],'title':'','status':0x1f4,'instance':'','type':''});throw _0x222b97;}});}['getTokenStatus'](_0x501e3a){if(Date['now']()<_0x501e3a['access_expires'])return TokenStatus['Ok'];if(Date['now']()<_0x501e3a['refresh_expires'])return TokenStatus['Refresh'];return TokenStatus['Expired'];}}
14
14
 
15
15
  export { AdminClient, AuthClient, TokenStatus, Tokens };
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.49",
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 };