@rongcloud/electron-renderer 5.20.2 → 5.22.0-alpha.2
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.
- package/index.cjs +1 -1
- package/index.cjs.js +1 -1
- package/index.d.ts +9 -27
- package/index.esm.js +2 -2
- package/index.mjs +2 -2
- package/package.json +2 -2
- package/renderer.cjs.js +1 -1
- package/renderer.esm.js +2 -2
package/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("electron"),t=require("@rongcloud/engine"),r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{u(n.next(e))}catch(e){a(e)}}function l(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,l)}u((n=n.apply(e,t||[])).next())}))}function a(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function i(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function l(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function u(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}var c,s,b,p=function(e){function t(t,r,n,o){var a=e.call(this,t,r,n)||this;return Object.defineProperty(a,"_handleWrite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),a._handleWrite=o,a}return n(t,e),t}(t.BasicLogger),f=0,g=Date.now(),d=function(e){var t=Date.now();return g!==t&&(g=t,f=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,f++].join("__")};t.VersionManage.add("electron-renderer","5.20.2");var y=function(e){function r(r,n,o){var a=this,u=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},b=new p(o.appkey,"IMLib","IM",u);return a=e.call(this,r,n,o,b)||this,c.add(a),Object.defineProperty(a,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),s.set(a,void 0),Object.defineProperty(a,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(a,s,u,"f"),b.setOutputLevel(o.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var l=n[r];if(l){var u={batchMessage:a._batchMessage.bind(a),onRTCDataChange:a._onRTCDataChange.bind(a),onConnected:a._onConnected.bind(a),onNaviDataChange:a._onNaviDataChange.bind(a)};if(u[r])u[r](o,l);else{var c={onConnecting:t.RCConnectionStatus.CONNECTING,onSuspend:t.RCConnectionStatus.SUSPENDED,onDisconnected:t.RCConnectionStatus.DISCONNECTED};c[r]&&a._setConnectionStatus(c[r]),l(o[0])}}else a.logger.error(t.LogTagId.L_UNSUPPORT_NTF_FROM_MAIN_E,r)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=a._resolveMaps[t];o&&(delete a._resolveMaps[t],o.apply(void 0,l([],i(r),!1)))})),a._options.httpInMainProcess&&(t.runtime.httpReq=a.sendHTTPRequest.bind(a)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:o.navigators,areaCode:o.areaCode,logServerUrl:o.logServerUrl,environment:o.environment}),a._cache=a._callMainSync("getMainProcessCache"),a}return n(r,e),Object.defineProperty(r.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_batchMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=e[0].hasMoreMsg;delete e[0].hasMoreMsg,t([e[0]],void 0,r)}}),Object.defineProperty(r.prototype,"_onRTCDataChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=e[0];this._receiveRtcKv(new Uint8Array(r))}}),Object.defineProperty(r.prototype,"_onConnected",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;r=i(e,1),this._cache=r[0],t(void 0)}}),Object.defineProperty(r.prototype,"_onNaviDataChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;r=i(e,1),this._cache.naviInfo=r[0],t([e[0]])}}),Object.defineProperty(r.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(r.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(r.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(r.prototype,"_callMain",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var o,a=d(e);t._resolveMaps[a]=n,(o=window.__ContextBridge__).send.apply(o,l(["__RC_CHANNEL_CALL_MAIN__",a,e],i(r),!1))}))}}),Object.defineProperty(r.prototype,"callExtra",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return this._callMain.apply(this,l(["callExtra",e],i(t),!1))}}),Object.defineProperty(r.prototype,"_send2Main",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];(t=window.__ContextBridge__).send.apply(t,l(["__RC_CHANNEL_SEND_2_MAIN__",e],i(r),!1))}}),Object.defineProperty(r.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return this.logger.info(t.LogTagId.L_CALL_MAIN_SYNC_O,e),(r=window.__ContextBridge__).sendSync.apply(r,l(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],i(n),!1))}}),Object.defineProperty(r.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("refetchNaviInfo")}}),Object.defineProperty(r.prototype,"getNaviInfoFromCache",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.naviInfo}}),Object.defineProperty(r.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new p(this._appkey,e,t,u(this,s,"f"))}}),Object.defineProperty(r.prototype,"getConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.connectionStatus}}),Object.defineProperty(r.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return a(this,(function(o){return[2,this._callMain("connect",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(r.prototype,"getConnectedTime",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.connectedTime}}),Object.defineProperty(r.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("getHistoryMessage",e,t,r,n,o,a,i)}}),Object.defineProperty(r.prototype,"getMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getMessages",e,t,r,n,o,a)}}),Object.defineProperty(r.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getContinuousMessages",e,t,r,n,o,a)}}),Object.defineProperty(r.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("getHistoryMessagesByObjectNames",e,t,r,n,o,a,i)}}),Object.defineProperty(r.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(r.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"recallMsg",e,t)}}),Object.defineProperty(r.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByFilter",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getConversationListByFilter",e)}}),Object.defineProperty(r.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getConversation",e,t,r)}}),Object.defineProperty(r.prototype,"removeConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"removeConversation",e)}}),Object.defineProperty(r.prototype,"batchRemoveConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("batchRemoveConversation",e)}}),Object.defineProperty(r.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getConversationUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(r.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("clearConversationUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFirstUnreadMessage",e,t,r)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessageInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFirstUnreadMessageInfo",e,t,r)}}),Object.defineProperty(r.prototype,"saveConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("saveConversationMessageDraft",e,t,r)}}),Object.defineProperty(r.prototype,"getConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getConversationMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"clearConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("clearConversationMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",b).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(r.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,n,o,a){var i=this,l=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[l]=function(e){try{o(e)}catch(e){i.logger.error(t.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),this._callMain("sendMessage",e,r,n,l,a)}}),Object.defineProperty(r.prototype,"sendReadReceiptMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("sendReadReceiptMessage",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getMessageReader",e,t,r)}}),Object.defineProperty(r.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getMessageReadReceiptV4",e,t)}}),Object.defineProperty(r.prototype,"batchGetMessageReadReceiptInfoV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("updateConversationReadTime",e,t)}}),Object.defineProperty(r.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(r){return[2,this._callMain("disconnect",e,t)]}))}))}}),Object.defineProperty(r.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(r.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("joinChatroom",e,t,r)}}),Object.defineProperty(r.prototype,"joinExistChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("joinExistChatroom",e,t,r)}}),Object.defineProperty(r.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("quitChatroom",e)}}),Object.defineProperty(r.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getChatroomInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(r.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"forceSetChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("forceSetChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"forceRemoveChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("forceRemoveChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"getAllChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getAllChatroomEntry",e)}}),Object.defineProperty(r.prototype,"removeChatroomFromCatch",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._callMain("removeChatroomFromCatch",e)}}),Object.defineProperty(r.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getFileToken",e,t,r,n,o,a)}}),Object.defineProperty(r.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getFileUrl",e,t,r,n)}}),Object.defineProperty(r.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(r.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(r.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getUserStatus",e)}}),Object.defineProperty(r.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("clearConversations",e,t)}}),Object.defineProperty(r.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("addToBlacklist",e)}}),Object.defineProperty(r.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("removeFromBlacklist",e)}}),Object.defineProperty(r.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getBlacklist")}}),Object.defineProperty(r.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getBlacklistStatus",e)}}),Object.defineProperty(r.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("insertMessage",e,t,r)}}),Object.defineProperty(r.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("batchInsertMessage",e,t)}}),Object.defineProperty(r.prototype,"getMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getMessageCount",e,t,r)}}),Object.defineProperty(r.prototype,"deleteMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("deleteMessages",e)}}),Object.defineProperty(r.prototype,"deleteMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o){return this._callMain("deleteMessagesByTimestamp",e,t,r,n,o)}}),Object.defineProperty(r.prototype,"batchClearMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("batchClearMessagesByTimestamp",e)}}),Object.defineProperty(r.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(r.prototype,"clearMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("clearMessages",e,t,r)}}),Object.defineProperty(r.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getMessage",e)}}),Object.defineProperty(r.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageContent",e,t,r)}}),Object.defineProperty(r.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(r.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",b).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(r.prototype,"searchMessageByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o){return this._callMain("searchMessageByContentWithAllChannel",e,t,r,n,o)}}),Object.defineProperty(r.prototype,"searchMessageByContentInTimeRangeWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("searchMessageByContentInTimeRangeWithAllChannel",e,t,r,n,o,a,i)}}),Object.defineProperty(r.prototype,"searchMessageByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("searchMessageByContent",e,t,r,n,o,a,i)}}),Object.defineProperty(r.prototype,"searchMessageByContentAndMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("searchMessageByContentAndMessageType",e,t,r,n,o,a,i)}}),Object.defineProperty(r.prototype,"searchMessagesByUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("searchMessagesByUser",e,t,r,n,o,a)}}),Object.defineProperty(r.prototype,"getMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getMatchedMessage",e,t,r,n)}}),Object.defineProperty(r.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMainSync("getUnreadMentionedMessages",e,t,r)}}),Object.defineProperty(r.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setMessageSentStatus",e,t)}}),Object.defineProperty(r.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setMessageReceivedStatus",e,t)}}),Object.defineProperty(r.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(r.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("clearUnreadCountByTimestamp",e,t,r,n)}}),Object.defineProperty(r.prototype,"clearAllUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,u(this,c,"m",b).call(this,"clearAllUnreadCount")]}))}))}}),Object.defineProperty(r.prototype,"getRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getRemoteHistoryMessages",e,t,r,n,o,a)}}),Object.defineProperty(r.prototype,"getServerTime",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Date.now()-this._cache.deltaTime}}),Object.defineProperty(r.prototype,"getDeviceId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.deviceId}}),Object.defineProperty(r.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(r.prototype,"getCurrentUserId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.crtUserId}}),Object.defineProperty(r.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(r.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){var o,i,l,u;return a(this,(function(a){switch(a.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(n)),[4,this._callMain("rtcSignaling",e,t,r,o)];case 1:return i=a.sent(),l=i.code,u=i.buffer,[2,{code:l,buffer:u?new Uint8Array(u):u}]}}))}))}}),Object.defineProperty(r.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("rtcPing",e,t,r)}}),Object.defineProperty(r.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("createTag",e)}}),Object.defineProperty(r.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("removeTag",e)}}),Object.defineProperty(r.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateTag",e)}}),Object.defineProperty(r.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getTagList")}}),Object.defineProperty(r.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("addTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeTagsForConversation",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getConversationListByTag",e,t,r,n)}}),Object.defineProperty(r.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getUnreadCountByTag",e,t)}}),Object.defineProperty(r.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setConversationStatusInTag",e,t,r)}}),Object.defineProperty(r.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getTagsForConversation",e)}}),Object.defineProperty(r.prototype,"clearData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("clearData")}}),Object.defineProperty(r.prototype,"getGroupMessageDeliverList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupMessageDeliverList",e,t,r)}}),Object.defineProperty(r.prototype,"getPrivateMessageDeliverTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getPrivateMessageDeliverTime",e,t)}}),Object.defineProperty(r.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setCallInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getAllUnreadMentionedCount")}}),Object.defineProperty(r.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getBlockUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,t.fail(t.ErrorCode.NOT_SUPPORT)]}))}))}}),Object.defineProperty(r.prototype,"clearUltraUnreadcount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadMentionedCountByTargetId",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getUltraGroupMessageListByMessageUId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"expandUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"modifyMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getUltraHistoryMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(r.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(r.prototype,"getUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getAllUltraGroupUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadCountByTargetId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"setUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupFirstUnreadMessageTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,this._callMain("getOSInfo")]}))}))}}),Object.defineProperty(r.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,{code:t.ErrorCode.SUCCESS,data:{title:window.__ContextBridge__.getProcessInfo("title"),pid:window.__ContextBridge__.getProcessInfo("pid"),ppid:window.__ContextBridge__.getProcessInfo("ppid"),platform:window.__ContextBridge__.getProcessInfo("platform"),arch:window.__ContextBridge__.getProcessInfo("arch"),uptime:window.__ContextBridge__.callProcessMethod("uptime"),cpuUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),memoryUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),resourceUsage:window.__ContextBridge__.callProcessMethod("cpuUsage")}}]}))}))}}),Object.defineProperty(r.prototype,"getMainProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(r.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setProxy",e)}}),Object.defineProperty(r.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getProxy")}}),Object.defineProperty(r.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("testProxy",e,t)}}),Object.defineProperty(r.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("checkDuplicateMessage",e)}}),Object.defineProperty(r.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setDuplicateMessageConfig",e)}}),Object.defineProperty(r.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(r.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("subscribeUser",e,t,r)}}),Object.defineProperty(r.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("unSubscribeUser",e,t)}}),Object.defineProperty(r.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getSubscribeUserList",e,t,r)}}),Object.defineProperty(r.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getSubscribeUserStatus",e,t)}}),Object.defineProperty(r.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getConversations",e)}}),Object.defineProperty(r.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateMyUserProfile",e)}}),Object.defineProperty(r.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getUserProfiles",e)}}),Object.defineProperty(r.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getMyUserProfile")}}),Object.defineProperty(r.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateMyUserProfileVisibility",e)}}),Object.defineProperty(r.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getMyUserProfileVisibility")}}),Object.defineProperty(r.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("searchUserProfileByUniqueId",e)}}),Object.defineProperty(r.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return a(this,(function(o){return[2,this._callMain("createGroup",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("updateGroupInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getGroupsInfo",e)}}),Object.defineProperty(r.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("kickGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("quitGroup",e,t)}}),Object.defineProperty(r.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("dismissGroup",e)}}),Object.defineProperty(r.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("transferGroupOwner",e,t,r,n)}}),Object.defineProperty(r.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setGroupManagers",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupMembersByRole",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getGroupMembers",e,t)}}),Object.defineProperty(r.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("searchGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("joinGroup",e)}}),Object.defineProperty(r.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("inviteUsersToGroup",e,t)}}),Object.defineProperty(r.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("memberInviteResponse",e)}}),Object.defineProperty(r.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupApplications",e,t,r)}}),Object.defineProperty(r.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getJoinedGroupsByRole",e,t)}}),Object.defineProperty(r.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("searchJoinedGroups",e,t)}}),Object.defineProperty(r.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getJoinedGroups",e)}}),Object.defineProperty(r.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setGroupRemark",e,t)}}),Object.defineProperty(r.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setGroupFollows",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getGroupFollows",e)}}),Object.defineProperty(r.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("addFriend",e,t,r)}}),Object.defineProperty(r.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("deleteFriends",e,t)}}),Object.defineProperty(r.prototype,"acceptFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("acceptFriendApplication",e)}}),Object.defineProperty(r.prototype,"refuseFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("refuseFriendApplication",e,t)}}),Object.defineProperty(r.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setFriendInfo",e,t,r)}}),Object.defineProperty(r.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("checkFriends",e,t)}}),Object.defineProperty(r.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getFriends",e)}}),Object.defineProperty(r.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFriendApplications",e,t,r)}}),Object.defineProperty(r.prototype,"deleteFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("deleteFriendApplication",e,t)}}),Object.defineProperty(r.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getFriendsInfo",e)}}),Object.defineProperty(r.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("searchFriendsInfo",e)}}),Object.defineProperty(r.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setFriendAddPermission",e)}}),Object.defineProperty(r.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getFriendAddPermission")}}),Object.defineProperty(r.prototype,"getRealtimeConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getRealtimeConTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"clearRealtimeConUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"removeRealtimeConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getRealtimeConUnreadCounts",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){return[2,u(this,c,"m",b).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(r.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,u(this,c,"m",b).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,u(this,c,"m",b).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",b).call(this,"getStatsUrlList")}}),Object.defineProperty(r.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptInfoV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"getMessageReadReceiptInfoV5",e,t)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),r}(t.BasicEngine);s=new WeakMap,c=new WeakSet,b=function(e){for(var r=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return new Promise((function(o){var a,u=d(e);r._resolveMaps[u]=function(e){var r=e.code,n=e.msg,a=e.data;r!==t.ErrorCode.SUCCESS?o(t.fail(r,n,a)):o(t.ok(a))},(a=window.__ContextBridge__).send.apply(a,l(["__RC_CHANNEL_CALL_MAIN__",u,e],i(n),!1))}))};var h={on:function(t,r){e.ipcRenderer.on(t,(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.apply(void 0,l([e],i(t),!1))}))},send:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];e.ipcRenderer.send.apply(e.ipcRenderer,l([t],i(r),!1))},sendSync:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e.ipcRenderer.sendSync.apply(e.ipcRenderer,l([t],i(r),!1))},getProcessInfo:function(e){return process[e]},callProcessMethod:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=process)[e].apply(t,l([],i(r),!1))}};window&&(window.RCCppEngine=y,window.__ContextBridge__=h);exports.RCCppEngine=y,exports.initContextBridge=function(){e.contextBridge&&e.contextBridge.exposeInMainWorld("__ContextBridge__",h)};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("electron"),t=require("@rongcloud/engine"),r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,l)}u((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function l(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function u(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}var c,s,b,p=function(e){function r(r,n,a,l){var u=this,c=t.createLogDBProxy();return c.setLogReader((function(e,t,r,n){return o(u,void 0,void 0,(function(){return i(this,(function(e){return[2,{logs:[]}]}))}))})),c.setLogWriter((function(e){l(e)})),u=e.call(this,r,n,a,c)||this}return n(r,e),Object.defineProperty(r.prototype,"getTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(r.prototype,"setTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),r}(t.BasicLogger),f=0,g=Date.now(),d=function(e){var t=Date.now();return g!==t&&(g=t,f=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,f++].join("__")};t.VersionManage.add("electron-renderer","5.22.0-alpha.2");var y=function(e){function r(r,n,o){var i,u=this,b=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},f=new p(o.appkey,"IMLib","IM",b);return u=e.call(this,r,n,o,f)||this,c.add(u),Object.defineProperty(u,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),s.set(u,void 0),Object.defineProperty(u,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(u,s,b,"f"),f.setOutputLevel(o.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var a=n[r];if(a){var l={batchMessage:u._batchMessage.bind(u),onRTCDataChange:u._onRTCDataChange.bind(u),onConnected:u._onConnected.bind(u),onNaviDataChange:u._onNaviDataChange.bind(u)};if(l[r])l[r](o,a);else{var c={onConnecting:t.RCConnectionStatus.CONNECTING,onSuspend:t.RCConnectionStatus.SUSPENDED,onDisconnected:t.RCConnectionStatus.DISCONNECTED};c[r]&&u._setConnectionStatus(c[r]),a(o[0])}}else u.logger.error(t.LogTagId.L_UNSUPPORT_NTF_FROM_MAIN_E,r)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=u._resolveMaps[t];o&&(delete u._resolveMaps[t],o.apply(void 0,l([],a(r),!1)))})),u._options.httpInMainProcess&&(t.runtime.httpReq=u.sendHTTPRequest.bind(u)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:o.navigators,areaCode:o.areaCode,logServerUrl:o.logServerUrl,environment:o.environment,enableReadReceiptStorage:o.enableReadReceiptStorage,useNaviV2:null!==(i=o.useNaviV2)&&void 0!==i&&i}),u._cache=u._callMainSync("getMainProcessCache"),u}return n(r,e),Object.defineProperty(r.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"chatroom",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_batchMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=e[0].hasMoreMsg;delete e[0].hasMoreMsg,t([e[0]],void 0,r)}}),Object.defineProperty(r.prototype,"_onRTCDataChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=e[0];this._receiveRtcKv(new Uint8Array(r))}}),Object.defineProperty(r.prototype,"_onConnected",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;r=a(e,1),this._cache=r[0],t(void 0)}}),Object.defineProperty(r.prototype,"_onNaviDataChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;r=a(e,1),this._cache.naviInfo=r[0],t([e[0]])}}),Object.defineProperty(r.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(r.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(r.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(r.prototype,"_callMain",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var o,i=d(e);t._resolveMaps[i]=n,(o=window.__ContextBridge__).send.apply(o,l(["__RC_CHANNEL_CALL_MAIN__",i,e],a(r),!1))}))}}),Object.defineProperty(r.prototype,"_send2Main",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];(t=window.__ContextBridge__).send.apply(t,l(["__RC_CHANNEL_SEND_2_MAIN__",e],a(r),!1))}}),Object.defineProperty(r.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return this.logger.info(t.LogTagId.L_CALL_MAIN_SYNC_O,e),(r=window.__ContextBridge__).sendSync.apply(r,l(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],a(n),!1))}}),Object.defineProperty(r.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("refetchNaviInfo")}}),Object.defineProperty(r.prototype,"getNaviInfoFromCache",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.naviInfo}}),Object.defineProperty(r.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new p(this._appkey,e,t,u(this,s,"f"))}}),Object.defineProperty(r.prototype,"getConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.connectionStatus}}),Object.defineProperty(r.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return i(this,(function(o){return[2,this._callMain("connect",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(r.prototype,"getConnectedTime",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.connectedTime}}),Object.defineProperty(r.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i,a){return this._callMain("getHistoryMessage",e,t,r,n,o,i,a)}}),Object.defineProperty(r.prototype,"getMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getMessages",e,t,r,n,o,i)}}),Object.defineProperty(r.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getContinuousMessages",e,t,r,n,o,i)}}),Object.defineProperty(r.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i,a){return this._callMain("getHistoryMessagesByObjectNames",e,t,r,n,o,i,a)}}),Object.defineProperty(r.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(r.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"recallMsg",e,t)}}),Object.defineProperty(r.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByFilter",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getConversationListByFilter",e)}}),Object.defineProperty(r.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getConversation",e,t,r)}}),Object.defineProperty(r.prototype,"removeConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"removeConversation",e)}}),Object.defineProperty(r.prototype,"batchRemoveConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("batchRemoveConversation",e)}}),Object.defineProperty(r.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getConversationUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(r.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("clearConversationUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFirstUnreadMessage",e,t,r)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessageInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFirstUnreadMessageInfo",e,t,r)}}),Object.defineProperty(r.prototype,"saveConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("saveConversationMessageDraft",e,t,r)}}),Object.defineProperty(r.prototype,"getConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getConversationMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"clearConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("clearConversationMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",b).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(r.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,n,o,i){var a=this,l=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[l]=function(e){try{o(e)}catch(e){a.logger.error(t.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),this._callMain("sendMessage",e,r,n,l,i)}}),Object.defineProperty(r.prototype,"sendReadReceiptMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("sendReadReceiptMessage",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getMessageReader",e,t,r)}}),Object.defineProperty(r.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getMessageReadReceiptV4",e,t)}}),Object.defineProperty(r.prototype,"batchGetMessageReadReceiptInfoV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("updateConversationReadTime",e,t)}}),Object.defineProperty(r.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return[2,this._callMain("disconnect",e,t)]}))}))}}),Object.defineProperty(r.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(r.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("joinChatroom",e,t,r)}}),Object.defineProperty(r.prototype,"joinExistChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("joinExistChatroom",e,t,r)}}),Object.defineProperty(r.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("quitChatroom",e)}}),Object.defineProperty(r.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getChatroomInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",b).call(this,"getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(r.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"forceSetChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("forceSetChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"forceRemoveChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("forceRemoveChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"getAllChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getAllChatroomEntry",e)}}),Object.defineProperty(r.prototype,"removeChatroomFromCatch",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._callMain("removeChatroomFromCatch",e)}}),Object.defineProperty(r.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getFileToken",e,t,r,n,o,i)}}),Object.defineProperty(r.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getFileUrl",e,t,r,n)}}),Object.defineProperty(r.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(r.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(r.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getUserStatus",e)}}),Object.defineProperty(r.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("clearConversations",e,t)}}),Object.defineProperty(r.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("addToBlacklist",e)}}),Object.defineProperty(r.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("removeFromBlacklist",e)}}),Object.defineProperty(r.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getBlacklist")}}),Object.defineProperty(r.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getBlacklistStatus",e)}}),Object.defineProperty(r.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("insertMessage",e,t,r)}}),Object.defineProperty(r.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("batchInsertMessage",e,t)}}),Object.defineProperty(r.prototype,"getMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getMessageCount",e,t,r)}}),Object.defineProperty(r.prototype,"deleteMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("deleteMessages",e)}}),Object.defineProperty(r.prototype,"deleteMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o){return this._callMain("deleteMessagesByTimestamp",e,t,r,n,o)}}),Object.defineProperty(r.prototype,"batchClearMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("batchClearMessagesByTimestamp",e)}}),Object.defineProperty(r.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(r.prototype,"clearMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("clearMessages",e,t,r)}}),Object.defineProperty(r.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getMessage",e)}}),Object.defineProperty(r.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageContent",e,t,r)}}),Object.defineProperty(r.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(r.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",b).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(r.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(r.prototype,"getMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getMatchedMessage",e,t,r,n)}}),Object.defineProperty(r.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMainSync("getUnreadMentionedMessages",e,t,r)}}),Object.defineProperty(r.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setMessageSentStatus",e,t)}}),Object.defineProperty(r.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setMessageReceivedStatus",e,t)}}),Object.defineProperty(r.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",b).call(this,"updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(r.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("clearUnreadCountByTimestamp",e,t,r,n)}}),Object.defineProperty(r.prototype,"clearAllUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",b).call(this,"clearAllUnreadCount")]}))}))}}),Object.defineProperty(r.prototype,"getRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getRemoteHistoryMessages",e,t,r,n,o,i)}}),Object.defineProperty(r.prototype,"getServerTime",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Date.now()-this._cache.deltaTime}}),Object.defineProperty(r.prototype,"getDeviceId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.deviceId}}),Object.defineProperty(r.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(r.prototype,"getCurrentUserId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.crtUserId}}),Object.defineProperty(r.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(r.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){var o,a,l,u;return i(this,(function(i){switch(i.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(n)),[4,this._callMain("rtcSignaling",e,t,r,o)];case 1:return a=i.sent(),l=a.code,u=a.buffer,[2,{code:l,buffer:u?new Uint8Array(u):u}]}}))}))}}),Object.defineProperty(r.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("rtcPing",e,t,r)}}),Object.defineProperty(r.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("createTag",e)}}),Object.defineProperty(r.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("removeTag",e)}}),Object.defineProperty(r.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateTag",e)}}),Object.defineProperty(r.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getTagList")}}),Object.defineProperty(r.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("addTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeTagsForConversation",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getConversationListByTag",e,t,r,n)}}),Object.defineProperty(r.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getUnreadCountByTag",e,t)}}),Object.defineProperty(r.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setConversationStatusInTag",e,t,r)}}),Object.defineProperty(r.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getTagsForConversation",e)}}),Object.defineProperty(r.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",b).call(this,"clearLocalData")}}),Object.defineProperty(r.prototype,"getGroupMessageDeliverList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupMessageDeliverList",e,t,r)}}),Object.defineProperty(r.prototype,"getPrivateMessageDeliverTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getPrivateMessageDeliverTime",e,t)}}),Object.defineProperty(r.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setCallInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getAllUnreadMentionedCount")}}),Object.defineProperty(r.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getBlockUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,t.fail(t.ErrorCode.NOT_SUPPORT)]}))}))}}),Object.defineProperty(r.prototype,"clearUltraUnreadcount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadMentionedCountByTargetId",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getUltraGroupMessageListByMessageUId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"expandUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"modifyMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getUltraHistoryMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(r.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(r.prototype,"getUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getAllUltraGroupUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadCountByTargetId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"setUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupFirstUnreadMessageTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this._callMain("getOSInfo")]}))}))}}),Object.defineProperty(r.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,{code:t.ErrorCode.SUCCESS,data:{title:window.__ContextBridge__.getProcessInfo("title"),pid:window.__ContextBridge__.getProcessInfo("pid"),ppid:window.__ContextBridge__.getProcessInfo("ppid"),platform:window.__ContextBridge__.getProcessInfo("platform"),arch:window.__ContextBridge__.getProcessInfo("arch"),uptime:window.__ContextBridge__.callProcessMethod("uptime"),cpuUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),memoryUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),resourceUsage:window.__ContextBridge__.callProcessMethod("cpuUsage")}}]}))}))}}),Object.defineProperty(r.prototype,"getMainProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(r.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setProxy",e)}}),Object.defineProperty(r.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getProxy")}}),Object.defineProperty(r.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("testProxy",e,t)}}),Object.defineProperty(r.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("checkDuplicateMessage",e)}}),Object.defineProperty(r.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setDuplicateMessageConfig",e)}}),Object.defineProperty(r.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(r.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("subscribeUser",e,t,r)}}),Object.defineProperty(r.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("unSubscribeUser",e,t)}}),Object.defineProperty(r.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getSubscribeUserList",e,t,r)}}),Object.defineProperty(r.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getSubscribeUserStatus",e,t)}}),Object.defineProperty(r.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getConversations",e)}}),Object.defineProperty(r.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateMyUserProfile",e)}}),Object.defineProperty(r.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getUserProfiles",e)}}),Object.defineProperty(r.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getMyUserProfile")}}),Object.defineProperty(r.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateMyUserProfileVisibility",e)}}),Object.defineProperty(r.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getMyUserProfileVisibility")}}),Object.defineProperty(r.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("searchUserProfileByUniqueId",e)}}),Object.defineProperty(r.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return i(this,(function(o){return[2,this._callMain("createGroup",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("updateGroupInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getGroupsInfo",e)}}),Object.defineProperty(r.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("kickGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("quitGroup",e,t)}}),Object.defineProperty(r.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("dismissGroup",e)}}),Object.defineProperty(r.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("transferGroupOwner",e,t,r,n)}}),Object.defineProperty(r.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setGroupManagers",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupMembersByRole",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getGroupMembers",e,t)}}),Object.defineProperty(r.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("searchGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("joinGroup",e)}}),Object.defineProperty(r.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("inviteUsersToGroup",e,t)}}),Object.defineProperty(r.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("memberInviteResponse",e)}}),Object.defineProperty(r.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupApplications",e,t,r)}}),Object.defineProperty(r.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getJoinedGroupsByRole",e,t)}}),Object.defineProperty(r.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("searchJoinedGroups",e,t)}}),Object.defineProperty(r.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getJoinedGroups",e)}}),Object.defineProperty(r.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setGroupRemark",e,t)}}),Object.defineProperty(r.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setGroupFollows",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getGroupFollows",e)}}),Object.defineProperty(r.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("addFriend",e,t,r)}}),Object.defineProperty(r.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("deleteFriends",e,t)}}),Object.defineProperty(r.prototype,"acceptFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("acceptFriendApplication",e)}}),Object.defineProperty(r.prototype,"refuseFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("refuseFriendApplication",e,t)}}),Object.defineProperty(r.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setFriendInfo",e,t,r)}}),Object.defineProperty(r.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("checkFriends",e,t)}}),Object.defineProperty(r.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getFriends",e)}}),Object.defineProperty(r.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFriendApplications",e,t,r)}}),Object.defineProperty(r.prototype,"deleteFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("deleteFriendApplication",e,t)}}),Object.defineProperty(r.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getFriendsInfo",e)}}),Object.defineProperty(r.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("searchFriendsInfo",e)}}),Object.defineProperty(r.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setFriendAddPermission",e)}}),Object.defineProperty(r.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getFriendAddPermission")}}),Object.defineProperty(r.prototype,"getRealtimeConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getRealtimeConTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"clearRealtimeConUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"removeRealtimeConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getRealtimeConUnreadCounts",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,u(this,c,"m",b).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(r.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",b).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",b).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",b).call(this,"getStatsUrlList")}}),Object.defineProperty(r.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(r.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(r.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"setMessageSpeechToTextVisible",e,t)}}),r}(t.BasicEngine);s=new WeakMap,c=new WeakSet,b=function(e){for(var r=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return new Promise((function(o){var i,u=d(e);r._resolveMaps[u]=function(e){var r=e.code,n=e.msg,i=e.data;r!==t.ErrorCode.SUCCESS?o(t.fail(r,n,i)):o(t.ok(i))},(i=window.__ContextBridge__).send.apply(i,l(["__RC_CHANNEL_CALL_MAIN__",u,e],a(n),!1))}))};var h={on:function(t,r){e.ipcRenderer.on(t,(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.apply(void 0,l([e],a(t),!1))}))},send:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];e.ipcRenderer.send.apply(e.ipcRenderer,l([t],a(r),!1))},sendSync:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e.ipcRenderer.sendSync.apply(e.ipcRenderer,l([t],a(r),!1))},getProcessInfo:function(e){return process[e]},callProcessMethod:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=process)[e].apply(t,l([],a(r),!1))}};window&&(window.RCCppEngine=y,window.__ContextBridge__=h);exports.RCCppEngine=y,exports.initContextBridge=function(){e.contextBridge&&e.contextBridge.exposeInMainWorld("__ContextBridge__",h)};
|
package/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("electron"),t=require("@rongcloud/engine"),r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{u(n.next(e))}catch(e){a(e)}}function l(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,l)}u((n=n.apply(e,t||[])).next())}))}function a(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function i(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function l(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function u(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}var c,s,b,p=function(e){function t(t,r,n,o){var a=e.call(this,t,r,n)||this;return Object.defineProperty(a,"_handleWrite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),a._handleWrite=o,a}return n(t,e),t}(t.BasicLogger),f=0,g=Date.now(),d=function(e){var t=Date.now();return g!==t&&(g=t,f=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,f++].join("__")};t.VersionManage.add("electron-renderer","5.20.2");var y=function(e){function r(r,n,o){var a=this,u=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},b=new p(o.appkey,"IMLib","IM",u);return a=e.call(this,r,n,o,b)||this,c.add(a),Object.defineProperty(a,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),s.set(a,void 0),Object.defineProperty(a,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(a,s,u,"f"),b.setOutputLevel(o.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var l=n[r];if(l){var u={batchMessage:a._batchMessage.bind(a),onRTCDataChange:a._onRTCDataChange.bind(a),onConnected:a._onConnected.bind(a),onNaviDataChange:a._onNaviDataChange.bind(a)};if(u[r])u[r](o,l);else{var c={onConnecting:t.RCConnectionStatus.CONNECTING,onSuspend:t.RCConnectionStatus.SUSPENDED,onDisconnected:t.RCConnectionStatus.DISCONNECTED};c[r]&&a._setConnectionStatus(c[r]),l(o[0])}}else a.logger.error(t.LogTagId.L_UNSUPPORT_NTF_FROM_MAIN_E,r)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=a._resolveMaps[t];o&&(delete a._resolveMaps[t],o.apply(void 0,l([],i(r),!1)))})),a._options.httpInMainProcess&&(t.runtime.httpReq=a.sendHTTPRequest.bind(a)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:o.navigators,areaCode:o.areaCode,logServerUrl:o.logServerUrl,environment:o.environment}),a._cache=a._callMainSync("getMainProcessCache"),a}return n(r,e),Object.defineProperty(r.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_batchMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=e[0].hasMoreMsg;delete e[0].hasMoreMsg,t([e[0]],void 0,r)}}),Object.defineProperty(r.prototype,"_onRTCDataChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=e[0];this._receiveRtcKv(new Uint8Array(r))}}),Object.defineProperty(r.prototype,"_onConnected",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;r=i(e,1),this._cache=r[0],t(void 0)}}),Object.defineProperty(r.prototype,"_onNaviDataChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;r=i(e,1),this._cache.naviInfo=r[0],t([e[0]])}}),Object.defineProperty(r.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(r.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(r.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(r.prototype,"_callMain",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var o,a=d(e);t._resolveMaps[a]=n,(o=window.__ContextBridge__).send.apply(o,l(["__RC_CHANNEL_CALL_MAIN__",a,e],i(r),!1))}))}}),Object.defineProperty(r.prototype,"callExtra",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return this._callMain.apply(this,l(["callExtra",e],i(t),!1))}}),Object.defineProperty(r.prototype,"_send2Main",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];(t=window.__ContextBridge__).send.apply(t,l(["__RC_CHANNEL_SEND_2_MAIN__",e],i(r),!1))}}),Object.defineProperty(r.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return this.logger.info(t.LogTagId.L_CALL_MAIN_SYNC_O,e),(r=window.__ContextBridge__).sendSync.apply(r,l(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],i(n),!1))}}),Object.defineProperty(r.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("refetchNaviInfo")}}),Object.defineProperty(r.prototype,"getNaviInfoFromCache",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.naviInfo}}),Object.defineProperty(r.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new p(this._appkey,e,t,u(this,s,"f"))}}),Object.defineProperty(r.prototype,"getConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.connectionStatus}}),Object.defineProperty(r.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return a(this,(function(o){return[2,this._callMain("connect",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(r.prototype,"getConnectedTime",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.connectedTime}}),Object.defineProperty(r.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("getHistoryMessage",e,t,r,n,o,a,i)}}),Object.defineProperty(r.prototype,"getMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getMessages",e,t,r,n,o,a)}}),Object.defineProperty(r.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getContinuousMessages",e,t,r,n,o,a)}}),Object.defineProperty(r.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("getHistoryMessagesByObjectNames",e,t,r,n,o,a,i)}}),Object.defineProperty(r.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(r.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"recallMsg",e,t)}}),Object.defineProperty(r.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByFilter",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getConversationListByFilter",e)}}),Object.defineProperty(r.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getConversation",e,t,r)}}),Object.defineProperty(r.prototype,"removeConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"removeConversation",e)}}),Object.defineProperty(r.prototype,"batchRemoveConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("batchRemoveConversation",e)}}),Object.defineProperty(r.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getConversationUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(r.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("clearConversationUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFirstUnreadMessage",e,t,r)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessageInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFirstUnreadMessageInfo",e,t,r)}}),Object.defineProperty(r.prototype,"saveConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("saveConversationMessageDraft",e,t,r)}}),Object.defineProperty(r.prototype,"getConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getConversationMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"clearConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("clearConversationMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",b).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(r.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,n,o,a){var i=this,l=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[l]=function(e){try{o(e)}catch(e){i.logger.error(t.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),this._callMain("sendMessage",e,r,n,l,a)}}),Object.defineProperty(r.prototype,"sendReadReceiptMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("sendReadReceiptMessage",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getMessageReader",e,t,r)}}),Object.defineProperty(r.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getMessageReadReceiptV4",e,t)}}),Object.defineProperty(r.prototype,"batchGetMessageReadReceiptInfoV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("updateConversationReadTime",e,t)}}),Object.defineProperty(r.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(r){return[2,this._callMain("disconnect",e,t)]}))}))}}),Object.defineProperty(r.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(r.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("joinChatroom",e,t,r)}}),Object.defineProperty(r.prototype,"joinExistChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("joinExistChatroom",e,t,r)}}),Object.defineProperty(r.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("quitChatroom",e)}}),Object.defineProperty(r.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getChatroomInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(r.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"forceSetChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("forceSetChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"forceRemoveChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("forceRemoveChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"getAllChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getAllChatroomEntry",e)}}),Object.defineProperty(r.prototype,"removeChatroomFromCatch",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._callMain("removeChatroomFromCatch",e)}}),Object.defineProperty(r.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getFileToken",e,t,r,n,o,a)}}),Object.defineProperty(r.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getFileUrl",e,t,r,n)}}),Object.defineProperty(r.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(r.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(r.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getUserStatus",e)}}),Object.defineProperty(r.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("clearConversations",e,t)}}),Object.defineProperty(r.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("addToBlacklist",e)}}),Object.defineProperty(r.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("removeFromBlacklist",e)}}),Object.defineProperty(r.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getBlacklist")}}),Object.defineProperty(r.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getBlacklistStatus",e)}}),Object.defineProperty(r.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("insertMessage",e,t,r)}}),Object.defineProperty(r.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("batchInsertMessage",e,t)}}),Object.defineProperty(r.prototype,"getMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getMessageCount",e,t,r)}}),Object.defineProperty(r.prototype,"deleteMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("deleteMessages",e)}}),Object.defineProperty(r.prototype,"deleteMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o){return this._callMain("deleteMessagesByTimestamp",e,t,r,n,o)}}),Object.defineProperty(r.prototype,"batchClearMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("batchClearMessagesByTimestamp",e)}}),Object.defineProperty(r.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(r.prototype,"clearMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("clearMessages",e,t,r)}}),Object.defineProperty(r.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getMessage",e)}}),Object.defineProperty(r.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageContent",e,t,r)}}),Object.defineProperty(r.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(r.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",b).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(r.prototype,"searchMessageByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o){return this._callMain("searchMessageByContentWithAllChannel",e,t,r,n,o)}}),Object.defineProperty(r.prototype,"searchMessageByContentInTimeRangeWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("searchMessageByContentInTimeRangeWithAllChannel",e,t,r,n,o,a,i)}}),Object.defineProperty(r.prototype,"searchMessageByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("searchMessageByContent",e,t,r,n,o,a,i)}}),Object.defineProperty(r.prototype,"searchMessageByContentAndMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a,i){return this._callMain("searchMessageByContentAndMessageType",e,t,r,n,o,a,i)}}),Object.defineProperty(r.prototype,"searchMessagesByUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("searchMessagesByUser",e,t,r,n,o,a)}}),Object.defineProperty(r.prototype,"getMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getMatchedMessage",e,t,r,n)}}),Object.defineProperty(r.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMainSync("getUnreadMentionedMessages",e,t,r)}}),Object.defineProperty(r.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setMessageSentStatus",e,t)}}),Object.defineProperty(r.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setMessageReceivedStatus",e,t)}}),Object.defineProperty(r.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(r.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("clearUnreadCountByTimestamp",e,t,r,n)}}),Object.defineProperty(r.prototype,"clearAllUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,u(this,c,"m",b).call(this,"clearAllUnreadCount")]}))}))}}),Object.defineProperty(r.prototype,"getRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,a){return this._callMain("getRemoteHistoryMessages",e,t,r,n,o,a)}}),Object.defineProperty(r.prototype,"getServerTime",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Date.now()-this._cache.deltaTime}}),Object.defineProperty(r.prototype,"getDeviceId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.deviceId}}),Object.defineProperty(r.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(r.prototype,"getCurrentUserId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.crtUserId}}),Object.defineProperty(r.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(r.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){var o,i,l,u;return a(this,(function(a){switch(a.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(n)),[4,this._callMain("rtcSignaling",e,t,r,o)];case 1:return i=a.sent(),l=i.code,u=i.buffer,[2,{code:l,buffer:u?new Uint8Array(u):u}]}}))}))}}),Object.defineProperty(r.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("rtcPing",e,t,r)}}),Object.defineProperty(r.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("createTag",e)}}),Object.defineProperty(r.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("removeTag",e)}}),Object.defineProperty(r.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateTag",e)}}),Object.defineProperty(r.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getTagList")}}),Object.defineProperty(r.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("addTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeTagsForConversation",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getConversationListByTag",e,t,r,n)}}),Object.defineProperty(r.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getUnreadCountByTag",e,t)}}),Object.defineProperty(r.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setConversationStatusInTag",e,t,r)}}),Object.defineProperty(r.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getTagsForConversation",e)}}),Object.defineProperty(r.prototype,"clearData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("clearData")}}),Object.defineProperty(r.prototype,"getGroupMessageDeliverList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupMessageDeliverList",e,t,r)}}),Object.defineProperty(r.prototype,"getPrivateMessageDeliverTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getPrivateMessageDeliverTime",e,t)}}),Object.defineProperty(r.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setCallInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getAllUnreadMentionedCount")}}),Object.defineProperty(r.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getBlockUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,t.fail(t.ErrorCode.NOT_SUPPORT)]}))}))}}),Object.defineProperty(r.prototype,"clearUltraUnreadcount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadMentionedCountByTargetId",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getUltraGroupMessageListByMessageUId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"expandUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"modifyMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getUltraHistoryMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(r.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(r.prototype,"getUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getAllUltraGroupUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadCountByTargetId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"setUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupFirstUnreadMessageTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,this._callMain("getOSInfo")]}))}))}}),Object.defineProperty(r.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,{code:t.ErrorCode.SUCCESS,data:{title:window.__ContextBridge__.getProcessInfo("title"),pid:window.__ContextBridge__.getProcessInfo("pid"),ppid:window.__ContextBridge__.getProcessInfo("ppid"),platform:window.__ContextBridge__.getProcessInfo("platform"),arch:window.__ContextBridge__.getProcessInfo("arch"),uptime:window.__ContextBridge__.callProcessMethod("uptime"),cpuUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),memoryUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),resourceUsage:window.__ContextBridge__.callProcessMethod("cpuUsage")}}]}))}))}}),Object.defineProperty(r.prototype,"getMainProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(r.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setProxy",e)}}),Object.defineProperty(r.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getProxy")}}),Object.defineProperty(r.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("testProxy",e,t)}}),Object.defineProperty(r.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("checkDuplicateMessage",e)}}),Object.defineProperty(r.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setDuplicateMessageConfig",e)}}),Object.defineProperty(r.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(r.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("subscribeUser",e,t,r)}}),Object.defineProperty(r.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("unSubscribeUser",e,t)}}),Object.defineProperty(r.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getSubscribeUserList",e,t,r)}}),Object.defineProperty(r.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getSubscribeUserStatus",e,t)}}),Object.defineProperty(r.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getConversations",e)}}),Object.defineProperty(r.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateMyUserProfile",e)}}),Object.defineProperty(r.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getUserProfiles",e)}}),Object.defineProperty(r.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getMyUserProfile")}}),Object.defineProperty(r.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateMyUserProfileVisibility",e)}}),Object.defineProperty(r.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getMyUserProfileVisibility")}}),Object.defineProperty(r.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("searchUserProfileByUniqueId",e)}}),Object.defineProperty(r.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return a(this,(function(o){return[2,this._callMain("createGroup",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("updateGroupInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getGroupsInfo",e)}}),Object.defineProperty(r.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("kickGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("quitGroup",e,t)}}),Object.defineProperty(r.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("dismissGroup",e)}}),Object.defineProperty(r.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("transferGroupOwner",e,t,r,n)}}),Object.defineProperty(r.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setGroupManagers",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupMembersByRole",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getGroupMembers",e,t)}}),Object.defineProperty(r.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("searchGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("joinGroup",e)}}),Object.defineProperty(r.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("inviteUsersToGroup",e,t)}}),Object.defineProperty(r.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("memberInviteResponse",e)}}),Object.defineProperty(r.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupApplications",e,t,r)}}),Object.defineProperty(r.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getJoinedGroupsByRole",e,t)}}),Object.defineProperty(r.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("searchJoinedGroups",e,t)}}),Object.defineProperty(r.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getJoinedGroups",e)}}),Object.defineProperty(r.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setGroupRemark",e,t)}}),Object.defineProperty(r.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setGroupFollows",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getGroupFollows",e)}}),Object.defineProperty(r.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("addFriend",e,t,r)}}),Object.defineProperty(r.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("deleteFriends",e,t)}}),Object.defineProperty(r.prototype,"acceptFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("acceptFriendApplication",e)}}),Object.defineProperty(r.prototype,"refuseFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("refuseFriendApplication",e,t)}}),Object.defineProperty(r.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setFriendInfo",e,t,r)}}),Object.defineProperty(r.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("checkFriends",e,t)}}),Object.defineProperty(r.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getFriends",e)}}),Object.defineProperty(r.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFriendApplications",e,t,r)}}),Object.defineProperty(r.prototype,"deleteFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("deleteFriendApplication",e,t)}}),Object.defineProperty(r.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getFriendsInfo",e)}}),Object.defineProperty(r.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("searchFriendsInfo",e)}}),Object.defineProperty(r.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setFriendAddPermission",e)}}),Object.defineProperty(r.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getFriendAddPermission")}}),Object.defineProperty(r.prototype,"getRealtimeConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getRealtimeConTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"clearRealtimeConUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"removeRealtimeConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getRealtimeConUnreadCounts",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){return[2,u(this,c,"m",b).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(r.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,u(this,c,"m",b).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,u(this,c,"m",b).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",b).call(this,"getStatsUrlList")}}),Object.defineProperty(r.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptInfoV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"getMessageReadReceiptInfoV5",e,t)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),r}(t.BasicEngine);s=new WeakMap,c=new WeakSet,b=function(e){for(var r=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return new Promise((function(o){var a,u=d(e);r._resolveMaps[u]=function(e){var r=e.code,n=e.msg,a=e.data;r!==t.ErrorCode.SUCCESS?o(t.fail(r,n,a)):o(t.ok(a))},(a=window.__ContextBridge__).send.apply(a,l(["__RC_CHANNEL_CALL_MAIN__",u,e],i(n),!1))}))};var h={on:function(t,r){e.ipcRenderer.on(t,(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.apply(void 0,l([e],i(t),!1))}))},send:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];e.ipcRenderer.send.apply(e.ipcRenderer,l([t],i(r),!1))},sendSync:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e.ipcRenderer.sendSync.apply(e.ipcRenderer,l([t],i(r),!1))},getProcessInfo:function(e){return process[e]},callProcessMethod:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=process)[e].apply(t,l([],i(r),!1))}};window&&(window.RCCppEngine=y,window.__ContextBridge__=h);exports.RCCppEngine=y,exports.initContextBridge=function(){e.contextBridge&&e.contextBridge.exposeInMainWorld("__ContextBridge__",h)};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("electron"),t=require("@rongcloud/engine"),r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,l)}u((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function l(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function u(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}var c,s,b,p=function(e){function r(r,n,a,l){var u=this,c=t.createLogDBProxy();return c.setLogReader((function(e,t,r,n){return o(u,void 0,void 0,(function(){return i(this,(function(e){return[2,{logs:[]}]}))}))})),c.setLogWriter((function(e){l(e)})),u=e.call(this,r,n,a,c)||this}return n(r,e),Object.defineProperty(r.prototype,"getTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(r.prototype,"setTimestamp4RealtimeLog",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),r}(t.BasicLogger),f=0,g=Date.now(),d=function(e){var t=Date.now();return g!==t&&(g=t,f=0),[e,window.__ContextBridge__.getProcessInfo("pid"),t,f++].join("__")};t.VersionManage.add("electron-renderer","5.22.0-alpha.2");var y=function(e){function r(r,n,o){var i,u=this,b=function(e){window.__ContextBridge__.send("__RC_CHANNEL_SEND_2_MAIN__","onReceiveRendererLog",e)},f=new p(o.appkey,"IMLib","IM",b);return u=e.call(this,r,n,o,f)||this,c.add(u),Object.defineProperty(u,"_cache",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),s.set(u,void 0),Object.defineProperty(u,"_resolveMaps",{enumerable:!0,configurable:!0,writable:!0,value:{}}),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(u,s,b,"f"),f.setOutputLevel(o.logOutputLevel),window.__ContextBridge__.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(e,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var a=n[r];if(a){var l={batchMessage:u._batchMessage.bind(u),onRTCDataChange:u._onRTCDataChange.bind(u),onConnected:u._onConnected.bind(u),onNaviDataChange:u._onNaviDataChange.bind(u)};if(l[r])l[r](o,a);else{var c={onConnecting:t.RCConnectionStatus.CONNECTING,onSuspend:t.RCConnectionStatus.SUSPENDED,onDisconnected:t.RCConnectionStatus.DISCONNECTED};c[r]&&u._setConnectionStatus(c[r]),a(o[0])}}else u.logger.error(t.LogTagId.L_UNSUPPORT_NTF_FROM_MAIN_E,r)})),window.__ContextBridge__.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=u._resolveMaps[t];o&&(delete u._resolveMaps[t],o.apply(void 0,l([],a(r),!1)))})),u._options.httpInMainProcess&&(t.runtime.httpReq=u.sendHTTPRequest.bind(u)),window.__ContextBridge__.send("__RC_INNER_COMMAND_INIT__",{navigators:o.navigators,areaCode:o.areaCode,logServerUrl:o.logServerUrl,environment:o.environment,enableReadReceiptStorage:o.enableReadReceiptStorage,useNaviV2:null!==(i=o.useNaviV2)&&void 0!==i&&i}),u._cache=u._callMainSync("getMainProcessCache"),u}return n(r,e),Object.defineProperty(r.prototype,"chat",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"chatroom",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_batchMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=e[0].hasMoreMsg;delete e[0].hasMoreMsg,t([e[0]],void 0,r)}}),Object.defineProperty(r.prototype,"_onRTCDataChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=e[0];this._receiveRtcKv(new Uint8Array(r))}}),Object.defineProperty(r.prototype,"_onConnected",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;r=a(e,1),this._cache=r[0],t(void 0)}}),Object.defineProperty(r.prototype,"_onNaviDataChange",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;r=a(e,1),this._cache.naviInfo=r[0],t([e[0]])}}),Object.defineProperty(r.prototype,"_setConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._cache.connectionStatus=e}}),Object.defineProperty(r.prototype,"sendHTTPRequest",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("sendHTTPRequest",e)}}),Object.defineProperty(r.prototype,"setUserStatusListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("TODO -> RCCppEngine.setUserStatusListener")}}),Object.defineProperty(r.prototype,"_callMain",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return new Promise((function(n){var o,i=d(e);t._resolveMaps[i]=n,(o=window.__ContextBridge__).send.apply(o,l(["__RC_CHANNEL_CALL_MAIN__",i,e],a(r),!1))}))}}),Object.defineProperty(r.prototype,"_send2Main",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];(t=window.__ContextBridge__).send.apply(t,l(["__RC_CHANNEL_SEND_2_MAIN__",e],a(r),!1))}}),Object.defineProperty(r.prototype,"_callMainSync",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return this.logger.info(t.LogTagId.L_CALL_MAIN_SYNC_O,e),(r=window.__ContextBridge__).sendSync.apply(r,l(["__RC_CHANNEL_CALL_MAIN_SYNC__",e],a(n),!1))}}),Object.defineProperty(r.prototype,"refetchNaviInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("refetchNaviInfo")}}),Object.defineProperty(r.prototype,"getNaviInfoFromCache",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.naviInfo}}),Object.defineProperty(r.prototype,"createLogger",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new p(this._appkey,e,t,u(this,s,"f"))}}),Object.defineProperty(r.prototype,"getConnectionStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.connectionStatus}}),Object.defineProperty(r.prototype,"connect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return i(this,(function(o){return[2,this._callMain("connect",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"reportSDKInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._send2Main("reportSDKInfo",e)}}),Object.defineProperty(r.prototype,"getConnectedTime",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.connectedTime}}),Object.defineProperty(r.prototype,"getHistoryMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i,a){return this._callMain("getHistoryMessage",e,t,r,n,o,i,a)}}),Object.defineProperty(r.prototype,"getMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getMessages",e,t,r,n,o,i)}}),Object.defineProperty(r.prototype,"getContinuousMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getContinuousMessages",e,t,r,n,o,i)}}),Object.defineProperty(r.prototype,"getHistoryMessagesByObjectNames",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i,a){return this._callMain("getHistoryMessagesByObjectNames",e,t,r,n,o,i,a)}}),Object.defineProperty(r.prototype,"deleteRemoteMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"deleteRemoteMessage",e,t)}}),Object.defineProperty(r.prototype,"recallMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"recallMsg",e,t)}}),Object.defineProperty(r.prototype,"deleteRemoteMessageByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"deleteRemoteMessageByTimestamp",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByFilter",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getConversationListByFilter",e)}}),Object.defineProperty(r.prototype,"getConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getConversation",e,t,r)}}),Object.defineProperty(r.prototype,"removeConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"removeConversation",e)}}),Object.defineProperty(r.prototype,"batchRemoveConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("batchRemoveConversation",e)}}),Object.defineProperty(r.prototype,"getTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getTotalUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getConversationUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getTotalUnreadCountByLevels",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getTotalUnreadCountByLevels",e,t,r)}}),Object.defineProperty(r.prototype,"clearConversationUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("clearConversationUnreadCount",e,t,r)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFirstUnreadMessage",e,t,r)}}),Object.defineProperty(r.prototype,"getFirstUnreadMessageInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFirstUnreadMessageInfo",e,t,r)}}),Object.defineProperty(r.prototype,"saveConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("saveConversationMessageDraft",e,t,r)}}),Object.defineProperty(r.prototype,"getConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getConversationMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"clearConversationMessageDraft",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("clearConversationMessageDraft",e,t)}}),Object.defineProperty(r.prototype,"batchSetConversationToTop",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",b).call(this,"batchSetConversationToTop",e,t,r,n)}}),Object.defineProperty(r.prototype,"batchSetConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"batchSetConversationNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"sendMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r,n,o,i){var a=this,l=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[l]=function(e){try{o(e)}catch(e){a.logger.error(t.LogTagId.L_CALLBACK_E,JSON.stringify({error:null==e?void 0:e.stack,pos:"sendMsgBefore"}))}}),this._callMain("sendMessage",e,r,n,l,i)}}),Object.defineProperty(r.prototype,"sendReadReceiptMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("sendReadReceiptMessage",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReader",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getMessageReader",e,t,r)}}),Object.defineProperty(r.prototype,"sendReadReceiptMessageV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("sendReadReceiptMessageV4",e,t,r)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getMessageReadReceiptV4",e,t)}}),Object.defineProperty(r.prototype,"batchGetMessageReadReceiptInfoV4",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"updateConversationReadTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("updateConversationReadTime",e,t)}}),Object.defineProperty(r.prototype,"disconnect",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return o(this,void 0,void 0,(function(){return i(this,(function(r){return[2,this._callMain("disconnect",e,t)]}))}))}}),Object.defineProperty(r.prototype,"registerMessageType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("registerMessageType",e,t)}}),Object.defineProperty(r.prototype,"joinChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("joinChatroom",e,t,r)}}),Object.defineProperty(r.prototype,"joinExistChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("joinExistChatroom",e,t,r)}}),Object.defineProperty(r.prototype,"quitChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("quitChatroom",e)}}),Object.defineProperty(r.prototype,"getChatroomInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getChatroomInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getChatroomHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",b).call(this,"getChatroomHistoryMessages",e,t,r,n)}}),Object.defineProperty(r.prototype,"setChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"setChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"forceSetChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("forceSetChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"removeChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"forceRemoveChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("forceRemoveChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"removeChatroomEntries",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeChatroomEntries",e,t)}}),Object.defineProperty(r.prototype,"getChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getChatroomEntry",e,t)}}),Object.defineProperty(r.prototype,"getAllChatroomEntry",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getAllChatroomEntry",e)}}),Object.defineProperty(r.prototype,"removeChatroomFromCatch",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._callMain("removeChatroomFromCatch",e)}}),Object.defineProperty(r.prototype,"getFileToken",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getFileToken",e,t,r,n,o,i)}}),Object.defineProperty(r.prototype,"getFileUrl",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getFileUrl",e,t,r,n)}}),Object.defineProperty(r.prototype,"setUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setUserStatus",e)}}),Object.defineProperty(r.prototype,"subscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("subscribeUserStatus",e)}}),Object.defineProperty(r.prototype,"getUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getUserStatus",e)}}),Object.defineProperty(r.prototype,"clearConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("clearConversations",e,t)}}),Object.defineProperty(r.prototype,"addToBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("addToBlacklist",e)}}),Object.defineProperty(r.prototype,"removeFromBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("removeFromBlacklist",e)}}),Object.defineProperty(r.prototype,"getBlacklist",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getBlacklist")}}),Object.defineProperty(r.prototype,"getBlacklistStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getBlacklistStatus",e)}}),Object.defineProperty(r.prototype,"insertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("insertMessage",e,t,r)}}),Object.defineProperty(r.prototype,"batchInsertMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("batchInsertMessage",e,t)}}),Object.defineProperty(r.prototype,"getMessageCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getMessageCount",e,t,r)}}),Object.defineProperty(r.prototype,"deleteMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("deleteMessages",e)}}),Object.defineProperty(r.prototype,"deleteMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o){return this._callMain("deleteMessagesByTimestamp",e,t,r,n,o)}}),Object.defineProperty(r.prototype,"batchClearMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("batchClearMessagesByTimestamp",e)}}),Object.defineProperty(r.prototype,"batchClearRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"batchClearRemoteHistoryMessages",e,t)}}),Object.defineProperty(r.prototype,"clearMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("clearMessages",e,t,r)}}),Object.defineProperty(r.prototype,"getMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getMessage",e)}}),Object.defineProperty(r.prototype,"setMessageContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageContent",e,t,r)}}),Object.defineProperty(r.prototype,"setMessageSearchField",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setMessageSearchField",e,t,r)}}),Object.defineProperty(r.prototype,"searchConversationByContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",b).call(this,"searchConversationByContent",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchConversationByContentWithAllChannel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("searchConversationByContentWithAllChannel",e,t,r)}}),Object.defineProperty(r.prototype,"searchMessagesWithParams",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"searchMessagesWithParams",e)}}),Object.defineProperty(r.prototype,"getMessagesByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getMatchedMessage",e,t,r,n)}}),Object.defineProperty(r.prototype,"getUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMainSync("getUnreadMentionedMessages",e,t,r)}}),Object.defineProperty(r.prototype,"setMessageSentStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setMessageSentStatus",e,t)}}),Object.defineProperty(r.prototype,"setMessageReceivedStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setMessageReceivedStatus",e,t)}}),Object.defineProperty(r.prototype,"updateMessageReceiptStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return u(this,c,"m",b).call(this,"updateMessageReceiptStatus",e,t,r,n)}}),Object.defineProperty(r.prototype,"clearUnreadCountByTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("clearUnreadCountByTimestamp",e,t,r,n)}}),Object.defineProperty(r.prototype,"clearAllUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",b).call(this,"clearAllUnreadCount")]}))}))}}),Object.defineProperty(r.prototype,"getRemoteHistoryMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,o,i){return this._callMain("getRemoteHistoryMessages",e,t,r,n,o,i)}}),Object.defineProperty(r.prototype,"getServerTime",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Date.now()-this._cache.deltaTime}}),Object.defineProperty(r.prototype,"getDeviceId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.deviceId}}),Object.defineProperty(r.prototype,"setPushConfig",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(r.prototype,"getCurrentUserId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._cache.crtUserId}}),Object.defineProperty(r.prototype,"bindRTCRoomForChatroom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("bindRTCRoomForChatroom",e)}}),Object.defineProperty(r.prototype,"rtcSignaling",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){var o,a,l,u;return i(this,(function(i){switch(i.label){case 0:return o=Array.prototype.slice.call(new Uint8Array(n)),[4,this._callMain("rtcSignaling",e,t,r,o)];case 1:return a=i.sent(),l=a.code,u=a.buffer,[2,{code:l,buffer:u?new Uint8Array(u):u}]}}))}))}}),Object.defineProperty(r.prototype,"rtcPing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("rtcPing",e,t,r)}}),Object.defineProperty(r.prototype,"createTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("createTag",e)}}),Object.defineProperty(r.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("removeTag",e)}}),Object.defineProperty(r.prototype,"updateTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateTag",e)}}),Object.defineProperty(r.prototype,"getTagList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getTagList")}}),Object.defineProperty(r.prototype,"addTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("addTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagForConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeTagForConversations",e,t)}}),Object.defineProperty(r.prototype,"removeTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("removeTagsForConversation",e,t)}}),Object.defineProperty(r.prototype,"getConversationListByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("getConversationListByTag",e,t,r,n)}}),Object.defineProperty(r.prototype,"getUnreadCountByTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getUnreadCountByTag",e,t)}}),Object.defineProperty(r.prototype,"setConversationStatusInTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setConversationStatusInTag",e,t,r)}}),Object.defineProperty(r.prototype,"getTagsForConversation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getTagsForConversation",e)}}),Object.defineProperty(r.prototype,"clearLocalData",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",b).call(this,"clearLocalData")}}),Object.defineProperty(r.prototype,"getGroupMessageDeliverList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupMessageDeliverList",e,t,r)}}),Object.defineProperty(r.prototype,"getPrivateMessageDeliverTime",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getPrivateMessageDeliverTime",e,t)}}),Object.defineProperty(r.prototype,"setCallInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setCallInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getAllUnreadMentionedCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getAllUnreadMentionedCount")}}),Object.defineProperty(r.prototype,"getUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getBlockUltraGroupList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,t.fail(t.ErrorCode.NOT_SUPPORT)]}))}))}}),Object.defineProperty(r.prototype,"clearUltraUnreadcount",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadMentionedCountByTargetId",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"sendUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"sendUltraGroupTypingStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getUltraGroupMessageListByMessageUId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"expandUltraMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"modifyMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getUltraHistoryMsg",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getConversationNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getConversationNotificationLevel",e)}}),Object.defineProperty(r.prototype,"setConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"setConversationTypeNotificationLevel",e,t)}}),Object.defineProperty(r.prototype,"getConversationTypeNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getConversationTypeNotificationLevel",e)}}),Object.defineProperty(r.prototype,"getUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,r){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getAllUltraGroupUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadCountByTargetId",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"setUltraGroupDefaultNotificationLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadMentionedMessages",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupFirstUnreadMessageTimestamp",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getUltraGroupUnreadInfoList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})}}),Object.defineProperty(r.prototype,"getOSInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this._callMain("getOSInfo")]}))}))}}),Object.defineProperty(r.prototype,"getProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,{code:t.ErrorCode.SUCCESS,data:{title:window.__ContextBridge__.getProcessInfo("title"),pid:window.__ContextBridge__.getProcessInfo("pid"),ppid:window.__ContextBridge__.getProcessInfo("ppid"),platform:window.__ContextBridge__.getProcessInfo("platform"),arch:window.__ContextBridge__.getProcessInfo("arch"),uptime:window.__ContextBridge__.callProcessMethod("uptime"),cpuUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),memoryUsage:window.__ContextBridge__.callProcessMethod("cpuUsage"),resourceUsage:window.__ContextBridge__.callProcessMethod("cpuUsage")}}]}))}))}}),Object.defineProperty(r.prototype,"getMainProcessInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this._callMain("getMainProcessInfo")]}))}))}}),Object.defineProperty(r.prototype,"setProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setProxy",e)}}),Object.defineProperty(r.prototype,"getProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getProxy")}}),Object.defineProperty(r.prototype,"testProxy",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("testProxy",e,t)}}),Object.defineProperty(r.prototype,"setCheckDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("checkDuplicateMessage",e)}}),Object.defineProperty(r.prototype,"setCheckChatRoomDuplicateMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setDuplicateMessageConfig",e)}}),Object.defineProperty(r.prototype,"setNetwork",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._send2Main("setNetwork",e,t)}}),Object.defineProperty(r.prototype,"subscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("subscribeUser",e,t,r)}}),Object.defineProperty(r.prototype,"unSubscribeUser",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("unSubscribeUser",e,t)}}),Object.defineProperty(r.prototype,"getSubscribeUserList",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getSubscribeUserList",e,t,r)}}),Object.defineProperty(r.prototype,"getSubscribeUserStatus",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getSubscribeUserStatus",e,t)}}),Object.defineProperty(r.prototype,"getConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getConversations",e)}}),Object.defineProperty(r.prototype,"updateMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateMyUserProfile",e)}}),Object.defineProperty(r.prototype,"getUserProfiles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getUserProfiles",e)}}),Object.defineProperty(r.prototype,"getMyUserProfile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getMyUserProfile")}}),Object.defineProperty(r.prototype,"updateMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("updateMyUserProfileVisibility",e)}}),Object.defineProperty(r.prototype,"getMyUserProfileVisibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getMyUserProfileVisibility")}}),Object.defineProperty(r.prototype,"searchUserProfileByUniqueId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("searchUserProfileByUniqueId",e)}}),Object.defineProperty(r.prototype,"createGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return o(this,void 0,void 0,(function(){return i(this,(function(o){return[2,this._callMain("createGroup",e,t,r,n)]}))}))}}),Object.defineProperty(r.prototype,"updateGroupInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("updateGroupInfo",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getGroupsInfo",e)}}),Object.defineProperty(r.prototype,"kickGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("kickGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"quitGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("quitGroup",e,t)}}),Object.defineProperty(r.prototype,"dismissGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("dismissGroup",e)}}),Object.defineProperty(r.prototype,"transferGroupOwner",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("transferGroupOwner",e,t,r,n)}}),Object.defineProperty(r.prototype,"setGroupManagers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setGroupManagers",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembersByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupMembersByRole",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getGroupMembers",e,t)}}),Object.defineProperty(r.prototype,"setGroupMemberInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){return this._callMain("setGroupMemberInfo",e,t,r,n)}}),Object.defineProperty(r.prototype,"searchGroupMembers",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("searchGroupMembers",e,t,r)}}),Object.defineProperty(r.prototype,"joinGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("joinGroup",e)}}),Object.defineProperty(r.prototype,"inviteUsersToGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("inviteUsersToGroup",e,t)}}),Object.defineProperty(r.prototype,"memberInviteResponse",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("memberInviteResponse",e)}}),Object.defineProperty(r.prototype,"getGroupApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getGroupApplications",e,t,r)}}),Object.defineProperty(r.prototype,"getJoinedGroupsByRole",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getJoinedGroupsByRole",e,t)}}),Object.defineProperty(r.prototype,"searchJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("searchJoinedGroups",e,t)}}),Object.defineProperty(r.prototype,"getJoinedGroups",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getJoinedGroups",e)}}),Object.defineProperty(r.prototype,"setGroupRemark",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("setGroupRemark",e,t)}}),Object.defineProperty(r.prototype,"setGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setGroupFollows",e,t,r)}}),Object.defineProperty(r.prototype,"getGroupFollows",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getGroupFollows",e)}}),Object.defineProperty(r.prototype,"addFriend",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("addFriend",e,t,r)}}),Object.defineProperty(r.prototype,"deleteFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("deleteFriends",e,t)}}),Object.defineProperty(r.prototype,"acceptFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("acceptFriendApplication",e)}}),Object.defineProperty(r.prototype,"refuseFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("refuseFriendApplication",e,t)}}),Object.defineProperty(r.prototype,"setFriendInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("setFriendInfo",e,t,r)}}),Object.defineProperty(r.prototype,"checkFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("checkFriends",e,t)}}),Object.defineProperty(r.prototype,"getFriends",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("getFriends",e)}}),Object.defineProperty(r.prototype,"getFriendApplications",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return this._callMain("getFriendApplications",e,t,r)}}),Object.defineProperty(r.prototype,"deleteFriendApplication",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._callMain("deleteFriendApplication",e,t)}}),Object.defineProperty(r.prototype,"getFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("getFriendsInfo",e)}}),Object.defineProperty(r.prototype,"searchFriendsInfo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("searchFriendsInfo",e)}}),Object.defineProperty(r.prototype,"setFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._callMain("setFriendAddPermission",e)}}),Object.defineProperty(r.prototype,"getFriendAddPermission",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._callMain("getFriendAddPermission")}}),Object.defineProperty(r.prototype,"getRealtimeConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getRealtimeConTotalUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"clearRealtimeConUnreadCount",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"removeRealtimeConversations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"getRealtimeConUnreadCounts",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("Method not implemented.")}}),Object.defineProperty(r.prototype,"setNotificationQuietHoursWithSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return o(this,void 0,void 0,(function(){return i(this,(function(t){return[2,u(this,c,"m",b).call(this,"setNotificationQuietHoursWithSetting",e)]}))}))}}),Object.defineProperty(r.prototype,"removeNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",b).call(this,"removeNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getNotificationQuietHoursSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){return[2,u(this,c,"m",b).call(this,"getNotificationQuietHoursSetting")]}))}))}}),Object.defineProperty(r.prototype,"getStatsUrlList",{enumerable:!1,configurable:!0,writable:!0,value:function(){return u(this,c,"m",b).call(this,"getStatsUrlList")}}),Object.defineProperty(r.prototype,"sendReadReceiptResponseV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"sendReadReceiptResponseV5",e,t)}}),Object.defineProperty(r.prototype,"getMessageReadReceiptInfoV5ByIdentifiers",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return u(this,c,"m",b).call(this,"getMessageReadReceiptInfoV5ByIdentifiers",e)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptUsersByPageV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getMessagesReadReceiptUsersByPageV5",e,t,r)}}),Object.defineProperty(r.prototype,"getMessagesReadReceiptByUsersV5",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return u(this,c,"m",b).call(this,"getMessagesReadReceiptByUsersV5",e,t,r)}}),Object.defineProperty(r.prototype,"requestSpeechToTextForMessage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"requestSpeechToTextForMessage",e)}}),Object.defineProperty(r.prototype,"setMessageSpeechToTextVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return u(this,c,"m",b).call(this,"setMessageSpeechToTextVisible",e,t)}}),r}(t.BasicEngine);s=new WeakMap,c=new WeakSet,b=function(e){for(var r=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return new Promise((function(o){var i,u=d(e);r._resolveMaps[u]=function(e){var r=e.code,n=e.msg,i=e.data;r!==t.ErrorCode.SUCCESS?o(t.fail(r,n,i)):o(t.ok(i))},(i=window.__ContextBridge__).send.apply(i,l(["__RC_CHANNEL_CALL_MAIN__",u,e],a(n),!1))}))};var h={on:function(t,r){e.ipcRenderer.on(t,(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];r.apply(void 0,l([e],a(t),!1))}))},send:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];e.ipcRenderer.send.apply(e.ipcRenderer,l([t],a(r),!1))},sendSync:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e.ipcRenderer.sendSync.apply(e.ipcRenderer,l([t],a(r),!1))},getProcessInfo:function(e){return process[e]},callProcessMethod:function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(t=process)[e].apply(t,l([],a(r),!1))}};window&&(window.RCCppEngine=y,window.__ContextBridge__=h);exports.RCCppEngine=y,exports.initContextBridge=function(){e.contextBridge&&e.contextBridge.exposeInMainWorld("__ContextBridge__",h)};
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { BasicEngine, IChatroomModule, IChatModule, IDataHostingModule, Codec, InnerRTCKeyMaps, IEngineWatcher, IAPIContextOption,
|
|
1
|
+
import { BasicEngine, IChatroomModule, IChatModule, IDataHostingModule, Codec, InnerRTCKeyMaps, IEngineWatcher, IAPIContextOption, IPromiseResult, INaviInfo, LogType, BasicLogger, RCConnectionStatus, ConversationType, IReceivedMessage, IAsyncRes, IConversationOption, MessageDirection, RCResult, IRecallMsgOptions, ConversationListFilter, GetConversationListResponse, IReceivedConversation, ErrorCode, NotificationLevel, IFirstUnreadMessageInfo, ISendMsgOptions, IMessageReaderResponse, IMessageReadReceiptV4Response, IGroupReadReceiptData, MessageRegisterParams, IChatroomJoinResponse, IChatroomInfo, IGetHistoryMessageResult, IChrmKVEntry, IChrmKVEntries, FileType, IUploadAuth, UploadMethod, IInsertMsgOptions, IInsertMessage, IClearMessageOption, ISearchMessageParams, ISearchMessagesResult, IAppPushConfig, IRTCRoomBindOption, ITagParam, ITagInfo, IReceivedConversationByTag, ILocalTagStatus, IConversationTag, IGroupMessageDeliverInfo, IUltraGroupConversation, IBaseConversationInfo, OperateStatus, IUltraMsgQueryOptions, IUltraExMsgOptions, IUltraModifyMsgOptions, IGetMsgOption, IOSInfo, IProcessInfo, IProxy, IResponse, INetwork, SubscribeType, ISubscribeUserStatusInfo, IUserProfileInfo, IUpdateMyProfileFail, UserProfileVisibility, IServerGroupBaseInfo, ICreateGroupFail, IErrorKeys, IGroupInfo, IQuitGroupConfig, GroupOperationType, GroupMemberRole, IPagingQueryOption, IPagingQueryResult, IGroupMemberInfo, IProcessCode, GroupOperationRole, GroupOperationStatus, GroupApplicationDirection, GroupApplicationStatus, IGroupApplicationInfo, IFollowsInfo, DirectionType, IFriendRelationInfo, QueryFriendsDirectionType, IFriendInfo, FriendApplicationType, FriendApplicationStatus, IFriendApplicationInfo, FriendAddPermission, IConversationIdentifier, IConversationUnreadCount, INotificationQuietHoursSetting, IMessageIdentifier, ReadReceiptInfoV5, ReadReceiptUsersOption, ReadReceiptUsersResult, IConvertSpeechToTextOption } from '@rongcloud/engine';
|
|
2
2
|
|
|
3
3
|
declare class RCCppEngine extends BasicEngine implements IChatroomModule, IChatModule, IDataHostingModule {
|
|
4
4
|
#private;
|
|
5
5
|
private _cache;
|
|
6
6
|
get chat(): IChatModule;
|
|
7
|
+
get chatroom(): IChatroomModule;
|
|
7
8
|
constructor(codec: Codec<InnerRTCKeyMaps>, watcher: IEngineWatcher, options: IAPIContextOption);
|
|
8
9
|
private _batchMessage;
|
|
9
10
|
private _onRTCDataChange;
|
|
@@ -23,7 +24,6 @@ declare class RCCppEngine extends BasicEngine implements IChatroomModule, IChatM
|
|
|
23
24
|
* @deprecated
|
|
24
25
|
*/
|
|
25
26
|
private _callMain;
|
|
26
|
-
callExtra(method: string | keyof IExtraMethod, ...args: any[]): Promise<IAsyncRes<unknown>>;
|
|
27
27
|
private _send2Main;
|
|
28
28
|
private _callMainSync;
|
|
29
29
|
refetchNaviInfo(): IPromiseResult<INaviInfo | null>;
|
|
@@ -99,10 +99,7 @@ declare class RCCppEngine extends BasicEngine implements IChatroomModule, IChatM
|
|
|
99
99
|
joinExistChatroom(chatroomId: string, count: number, extra?: string): Promise<IAsyncRes<IChatroomJoinResponse>>;
|
|
100
100
|
quitChatroom(chatroomId: string): Promise<ErrorCode>;
|
|
101
101
|
getChatroomInfo(chatroomId: string, count: number, order: number): IPromiseResult<IChatroomInfo>;
|
|
102
|
-
getChatroomHistoryMessages(chatroomId: string, timestamp: number, count: number, order: number):
|
|
103
|
-
list: IReceivedMessage[];
|
|
104
|
-
hasMore: boolean;
|
|
105
|
-
}>;
|
|
102
|
+
getChatroomHistoryMessages(chatroomId: string, timestamp: number, count: number, order: number): Promise<RCResult<IGetHistoryMessageResult>>;
|
|
106
103
|
setChatroomEntry(chatroomId: string, entry: IChrmKVEntry): Promise<ErrorCode>;
|
|
107
104
|
setChatroomEntries(chatroomId: string, entryOptions: IChrmKVEntries): Promise<({
|
|
108
105
|
code: ErrorCode;
|
|
@@ -147,29 +144,12 @@ declare class RCCppEngine extends BasicEngine implements IChatroomModule, IChatM
|
|
|
147
144
|
setMessageSearchField(messageId: number, content: any, searchFiles: string): Promise<ErrorCode>;
|
|
148
145
|
searchConversationByContent(keyword: string, customMessageTypes: string[], channelId: string, conversationTypes: ConversationType[]): Promise<RCResult<IReceivedConversation[]>>;
|
|
149
146
|
searchConversationByContentWithAllChannel(keyword: string, customMessageTypes: string[], conversationTypes?: ConversationType[]): IPromiseResult<IReceivedConversation[]>;
|
|
150
|
-
|
|
151
|
-
messages: IReceivedMessage[];
|
|
152
|
-
count: number;
|
|
153
|
-
}>;
|
|
154
|
-
searchMessageByContentInTimeRangeWithAllChannel(conversationType: ConversationType, targetId: string, keyword: string, startTime: number, endTime: number, offset: number, limit: number): IPromiseResult<{
|
|
155
|
-
messages: IReceivedMessage[];
|
|
156
|
-
}>;
|
|
157
|
-
searchMessageByContent(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, total: number, channelId: string): IPromiseResult<{
|
|
158
|
-
messages: IReceivedMessage[];
|
|
159
|
-
count: number;
|
|
160
|
-
}>;
|
|
161
|
-
searchMessageByContentAndMessageType(conversationType: ConversationType, targetId: string, keyword: string, timestamp: number, count: number, messageTypes: string[], channelId?: string): IPromiseResult<{
|
|
162
|
-
messages: IReceivedMessage[];
|
|
163
|
-
count: number;
|
|
164
|
-
}>;
|
|
165
|
-
searchMessagesByUser(conversationType: ConversationType, targetId: string, userId: string, timestamp: number, count: number, channelId: string): IPromiseResult<{
|
|
166
|
-
messages: IReceivedMessage[];
|
|
167
|
-
}>;
|
|
147
|
+
searchMessagesWithParams(params: ISearchMessageParams): Promise<RCResult<ISearchMessagesResult>>;
|
|
168
148
|
getMessagesByTimestamp(conversation: IConversationOption, timestamp: number, beforeCount: number, afterCount: number): IPromiseResult<IReceivedMessage[]>;
|
|
169
149
|
getUnreadMentionedMessages(conversationType: ConversationType, targetId: string, channelId: string): IReceivedMessage[];
|
|
170
150
|
setMessageSentStatus(messageId: number, sentStatus: number): Promise<ErrorCode>;
|
|
171
151
|
setMessageReceivedStatus(messageId: number, receivedStatus: number): Promise<ErrorCode>;
|
|
172
|
-
updateMessageReceiptStatus(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string):
|
|
152
|
+
updateMessageReceiptStatus(conversationType: ConversationType, targetId: string, timestamp: number, channelId?: string): Promise<RCResult<boolean>>;
|
|
173
153
|
clearUnreadCountByTimestamp(conversationType: ConversationType, targetId: string, timestamp: number, channelId: string): Promise<ErrorCode>;
|
|
174
154
|
clearAllUnreadCount(): Promise<RCResult>;
|
|
175
155
|
getRemoteHistoryMessages(conversationType: ConversationType, targetId: string, timestamp: number, count: number, order: 0 | 1, channelId: string): IPromiseResult<{
|
|
@@ -197,7 +177,7 @@ declare class RCCppEngine extends BasicEngine implements IChatroomModule, IChatM
|
|
|
197
177
|
getUnreadCountByTag(tagId: string, containMuted: boolean): IPromiseResult<number>;
|
|
198
178
|
setConversationStatusInTag(tagId: string, conversation: IConversationOption, status: ILocalTagStatus): IPromiseResult;
|
|
199
179
|
getTagsForConversation(conversation: IConversationOption): IPromiseResult<IConversationTag[]>;
|
|
200
|
-
|
|
180
|
+
clearLocalData(): Promise<RCResult<boolean>>;
|
|
201
181
|
getGroupMessageDeliverList(targetId: string, messageUId: string, channelId: string): Promise<IAsyncRes<IGroupMessageDeliverInfo>>;
|
|
202
182
|
getPrivateMessageDeliverTime(messageUId: string, channelId: string): Promise<IAsyncRes<number>>;
|
|
203
183
|
setCallInfo(targetId: string, key: string, value: string): Promise<IAsyncRes<{
|
|
@@ -365,9 +345,11 @@ declare class RCCppEngine extends BasicEngine implements IChatroomModule, IChatM
|
|
|
365
345
|
*/
|
|
366
346
|
getStatsUrlList(): Promise<RCResult<string[]>>;
|
|
367
347
|
sendReadReceiptResponseV5(conId: IConversationOption, messageUIdArray: string[]): Promise<RCResult>;
|
|
368
|
-
|
|
348
|
+
getMessageReadReceiptInfoV5ByIdentifiers(identifiers: IMessageIdentifier[]): Promise<RCResult<ReadReceiptInfoV5[]>>;
|
|
369
349
|
getMessagesReadReceiptUsersByPageV5(conId: IConversationOption, messageUId: string, opt: ReadReceiptUsersOption): Promise<RCResult<ReadReceiptUsersResult>>;
|
|
370
350
|
getMessagesReadReceiptByUsersV5(conId: IConversationOption, messageUId: string, userList: Array<string>): Promise<RCResult<ReadReceiptUsersResult>>;
|
|
351
|
+
requestSpeechToTextForMessage(messageUId: string, _: IConvertSpeechToTextOption): Promise<RCResult>;
|
|
352
|
+
setMessageSpeechToTextVisible(messageId: number, visible: boolean): Promise<RCResult>;
|
|
371
353
|
}
|
|
372
354
|
|
|
373
355
|
declare const initContextBridge: () => void;
|