@open-wa/wa-automate 4.44.4 → 4.44.7
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/bin/oas-type-schemas.json +1 -1
- package/dist/api/Client.js +13 -1
- package/dist/config/puppeteer.config.js +2 -1
- package/dist/controllers/browser.js +3 -0
- package/dist/controllers/init_patch.d.ts +4 -0
- package/dist/controllers/init_patch.js +10 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +6 -2
- package/package.json +4 -2
- package/dist/connect/index.d.ts +0 -1
- package/dist/connect/index.js +0 -13
- package/dist/connect/socket.d.ts +0 -96
- package/dist/connect/socket.js +0 -196
@@ -1 +1 @@
|
|
1
|
-
{"ChatServer":{"title":"ChatServer","description":"The suffix used to identify a non-group chat id","enum":["c.us"],"type":"string"},"GroupChatServer":{"title":"GroupChatServer","description":"The suffix used to identify a group chat id","enum":["g.us"],"type":"string"},"WaServers":{"anyOf":[{"$ref":"#/components/schemas/ChatServer","title":"WaServers"},{"$ref":"#/components/schemas/GroupChatServer","title":"WaServers"}],"title":"WaServers","description":"A type alias for all available \"servers\""},"CountryCode":{"enum":[1,7,20,27,30,31,32,33,34,36,39,40,41,43,44,45,46,47,48,49,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,81,82,84,86,90,91,92,93,94,95,98,211,212,213,216,218,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,248,249,250,251,252,253,254,255,256,257,258,260,261,262,263,264,265,266,267,268,269,290,291,297,298,299,350,351,352,353,354,355,356,357,358,359,370,371,372,373,374,375,376,377,378,380,381,382,383,385,386,387,389,420,421,423,500,501,502,503,504,505,506,507,508,509,590,591,592,593,594,595,596,597,598,599,670,672,673,674,675,676,677,678,679,680,681,682,683,685,686,687,688,689,690,691,692,850,852,853,855,856,880,886,960,961,962,963,964,965,966,967,968,970,971,972,973,974,975,976,977,992,993,994,995,996,998],"title":"CountryCode","description":"Type alias representing all available country codes","type":"number"},"AccountNumber":{"title":"AccountNumber","description":"The account number. It is made up of a country code and then the local number without the preceeding 0. For example, if a UK (+44) wa account is linked to the number 07123456789 then the account number will be 447123456789."},"GroupChatId":{"anyOf":[],"title":"GroupChatId","description":"A group chat ends with `@g.us` and usually has two parts, the timestamp of when it was created, and the user id of the number that created the group. For example `[creator number]-[timestamp]@g.us`\n\nExample:\n\n`\"447123456789-1445627445@g.us\"`"},"ContactId":{"title":"ContactId","description":"A contact id ends with `@c.us` and only contains the number of the contact. For example, if the country code of a contact is `44` and their number is `7123456789` then the contact id would be `447123456789@c.us`\n\nExample:\n\n`\"447123456789@c.us\"`"},"ChatId":{"anyOf":[{"$ref":"#/components/schemas/ContactId","title":"ChatId"},{"$ref":"#/components/schemas/GroupChatId","title":"ChatId"}],"title":"ChatId","description":"A chat id ends with `@c.us` or `@g.us` for group chats.\n\nExample:\n\nA group chat: `\"447123456789-1445627445@g.us\"`\nA group chat: `\"447123456789@g.us\"`"},"MessageId":{"title":"MessageId","description":"The id of a message. The format is `[boolean]_[ChatId]_[random character string]`\n\nExample:\n\n`\"false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB\"`"},"Content":{"title":"Content","description":"This is a generic type alias for the content of a message\n\nExample:\n\n`\"hello!\"`"},"NonSerializedId":{"properties":{"server":{"$ref":"#/components/schemas/WaServers","title":"NonSerializedId.server"},"user":{"$ref":"#/components/schemas/AccountNumber","title":"NonSerializedId.user"},"_serialized":{"$ref":"#/components/schemas/ContactId","title":"NonSerializedId._serialized"}},"required":["server","user","_serialized"],"additionalProperties":false,"title":"NonSerializedId","type":"object"},"DataURL":{"title":"DataURL","description":"Data URLs, URLs prefixed with the data: scheme, allow content creators to embed small files inline in documents. They were formerly known as \"data URIs\" until that name was retired by the WHATWG.\n\n\nData URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself:\n\nExample:\n`\"data:[<mediatype>][;base64],<data>\"`\n\nLearn more here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs"},"Base64":{"title":"Base64","description":"Base64 is basically a file encoded as a string.\n\nBase64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. The term Base64 originates from a specific MIME content transfer encoding.\n\nLearn more here: https://developer.mozilla.org/en-US/docs/Glossary/Base64"},"FilePath":{"title":"FilePath","description":"The relative or absolute path of a file\n\nLearn more here: https://www.w3schools.com/html/html_filepaths.asp"},"Button":{"properties":{"id":{"title":"Button.id","type":"string"},"text":{"title":"Button.text","type":"string"}},"required":["id","text"],"additionalProperties":false,"title":"Button","type":"object"},"AdvancedButton":{"properties":{"id":{"title":"AdvancedButton.id","type":"string"},"text":{"title":"AdvancedButton.text","type":"string"},"url":{"title":"AdvancedButton.url","type":"string"},"number":{"title":"AdvancedButton.number","type":"string"}},"required":["text"],"additionalProperties":false,"title":"AdvancedButton","type":"object"},"Row":{"properties":{"title":{"title":"Row.title","type":"string"},"description":{"title":"Row.description","type":"string"},"rowId":{"title":"Row.rowId","type":"string"}},"required":["title","description","rowId"],"additionalProperties":false,"title":"Row","type":"object"},"Section":{"properties":{"title":{"title":"Section.title","type":"string"},"rows":{"items":{"$ref":"#/components/schemas/Row","title":"Section.rows.[]"},"title":"Section.rows","type":"array"}},"required":["title","rows"],"additionalProperties":false,"title":"Section","type":"object"},"LocationButtonBody":{"properties":{"lat":{"title":"LocationButtonBody.lat","type":"number"},"lng":{"title":"LocationButtonBody.lng","type":"number"},"caption":{"title":"LocationButtonBody.caption","type":"string"}},"required":["lat","lng","caption"],"additionalProperties":false,"title":"LocationButtonBody","type":"object"},"Call":{"properties":{"id":{"title":"Call.id","description":"The id of the call","type":"string"},"peerJid":{"$ref":"#/components/schemas/ContactId","title":"Call.peerJid","description":"The id of the account calling"},"offerTime":{"title":"Call.offerTime","description":"The epoch timestamp of the call. You will have to multiply this by 1000 to get the actual epoch timestamp","type":"number"},"isVideo":{"title":"Call.isVideo","description":"Whether or not the call is a video call","type":"boolean"},"isGroup":{"title":"Call.isGroup","description":"Whether or not the call is a group call","type":"boolean"},"canHandleLocally":{"title":"Call.canHandleLocally","type":"boolean"},"outgoing":{"title":"Call.outgoing","description":"The direction of the call.","type":"boolean"},"webClientShouldHandle":{"title":"Call.webClientShouldHandle","type":"boolean"},"participants":{"items":{"$ref":"#/components/schemas/ContactId","title":"Call.participants.[]"},"title":"Call.participants","description":"The other participants on a group call","type":"array"}},"required":["id","peerJid","offerTime","isVideo","isGroup","canHandleLocally","outgoing","webClientShouldHandle","participants"],"additionalProperties":false,"title":"Call","type":"object"},"BaseChat":{"properties":{"archive":{"title":"BaseChat.archive","type":"boolean"},"changeNumberNewJid":{"title":"BaseChat.changeNumberNewJid"},"changeNumberOldJid":{"title":"BaseChat.changeNumberOldJid"},"contact":{"$ref":"#/components/schemas/Contact","title":"BaseChat.contact","description":"The contact related to this chat"},"groupMetadata":{"$ref":"#/components/schemas/GroupMetadata","title":"BaseChat.groupMetadata","description":"Group metadata for this chat"},"isAnnounceGrpRestrict":{"title":"BaseChat.isAnnounceGrpRestrict","description":"If the chat is a group chat is restricted"},"formattedTitle":{"title":"BaseChat.formattedTitle","description":"The title of the chat","type":"string"},"canSend":{"title":"BaseChat.canSend","description":"Whether your host account is able to send messages to this chat","type":"boolean"},"isReadOnly":{"title":"BaseChat.isReadOnly","description":"Whether the chat is a group chat and the group is restricted","type":"boolean"},"kind":{"title":"BaseChat.kind","type":"string"},"labels":{"title":"BaseChat.labels","description":"The labels attached to this chat."},"lastReceivedKey":{"title":"BaseChat.lastReceivedKey","description":"The ID of the last message received in this chat"},"modifyTag":{"title":"BaseChat.modifyTag","type":"number"},"msgs":{"title":"BaseChat.msgs","description":"The messages in the chat"},"muteExpiration":{"title":"BaseChat.muteExpiration","description":"The expiration timestamp of the chat mute","type":"number"},"name":{"title":"BaseChat.name","description":"The name of the chat","type":"string"},"notSpam":{"title":"BaseChat.notSpam","description":"Whether the chat is marked as spam","type":"boolean"},"pendingMsgs":{"title":"BaseChat.pendingMsgs","description":"Messages that are pending to be sent","type":"boolean"},"pin":{"title":"BaseChat.pin","description":"Whether the chat is pinned","type":"number"},"presence":{"title":"BaseChat.presence","description":"The presence state of the chat participant"},"t":{"title":"BaseChat.t","description":"The timestamp of the last interaction in the chat","type":"number"},"unreadCount":{"title":"BaseChat.unreadCount","description":"The number of undread messages in this chat","type":"number"},"ack":{"title":"BaseChat.ack"},"isOnline":{"title":"BaseChat.isOnline","description":"@deprecated This is unreliable. Use the method [`isChatOnline`](https://open-wa.github.io/wa-automate-nodejs/classes/client.html#ischatonline) instead."},"lastSeen":{"title":"BaseChat.lastSeen","description":"@deprecated This is unreliable. Use the method [`getLastSeen`](https://open-wa.github.io/wa-automate-nodejs/classes/client.html#getlastseen) instead."}},"required":["archive","changeNumberNewJid","changeNumberOldJid","contact","groupMetadata","isAnnounceGrpRestrict","isReadOnly","kind","labels","lastReceivedKey","modifyTag","msgs","muteExpiration","name","notSpam","pendingMsgs","pin","presence","t","unreadCount"],"additionalProperties":false,"title":"BaseChat","type":"object"},"SingleChat":{"properties":{"id":{"$ref":"#/components/schemas/ContactId","title":"SingleChat.id","description":"The id of the chat"},"isGroup":{"title":"SingleChat.isGroup","description":"Whether the chat is a group chat","enum":[false],"type":"boolean"}},"required":["id","isGroup"],"additionalProperties":false,"title":"SingleChat","type":"object"},"GroupChat":{"properties":{"id":{"$ref":"#/components/schemas/GroupChatId","title":"GroupChat.id","description":"The id of the chat"},"isGroup":{"title":"GroupChat.isGroup","description":"Whether the chat is a group chat","enum":[true],"type":"boolean"}},"required":["id","isGroup"],"additionalProperties":false,"title":"GroupChat","type":"object"},"Chat":{"anyOf":[{"$ref":"#/components/schemas/SingleChat","title":"Chat"},{"$ref":"#/components/schemas/GroupChat","title":"Chat"}],"title":"Chat"},"LiveLocationChangedEvent":{"properties":{"id":{"title":"LiveLocationChangedEvent.id","type":"string"},"lat":{"title":"LiveLocationChangedEvent.lat","type":"number"},"lng":{"title":"LiveLocationChangedEvent.lng","type":"number"},"speed":{"title":"LiveLocationChangedEvent.speed","type":"number"},"lastUpdated":{"title":"LiveLocationChangedEvent.lastUpdated","type":"number"},"accuracy":{"title":"LiveLocationChangedEvent.accuracy","type":"number"},"degrees":{"title":"LiveLocationChangedEvent.degrees"},"msgId":{"title":"LiveLocationChangedEvent.msgId","description":"The message id that was sent when the liveLocation session was started.","type":"string"}},"required":["id","lat","lng","speed","lastUpdated","accuracy","degrees"],"additionalProperties":false,"title":"LiveLocationChangedEvent","type":"object"},"GroupChatCreationParticipantAddResponse":{"properties":{"code":{"enum":[200,400,403],"title":"GroupChatCreationParticipantAddResponse.code","description":"The resultant status code for adding the participant.\n\n200 if the participant was added successfully during the creation of the group.\n\n403 if the participant does not allow their account to be added to group chats. If you receive a 403, you will also get an `invite_code` and `invite_code_exp`","type":"number"},"invite_code":{"title":"GroupChatCreationParticipantAddResponse.invite_code","description":"If the participant is not allowed to be added to group chats due to their privacy settings, you will receive an `invite_code` which you can send to them via a text.","type":"string"},"invite_code_exp":{"title":"GroupChatCreationParticipantAddResponse.invite_code_exp","description":"The expiry ts of the invite_code. It is a number wrapped in a string, in order to get the proper time you can use this:\n\n```javascript\n new Date(Number(invite_code_exp)*1000)\n```","type":"string"}},"required":["code"],"additionalProperties":false,"title":"GroupChatCreationParticipantAddResponse","type":"object"},"GroupChatCreationResponse":{"properties":{"status":{"enum":[200,400],"title":"GroupChatCreationResponse.status","description":"The resultant status code of the group chat creation.\n\n200 if the group was created successfully.\n\n400 if the initial participant does not exist","type":"number"},"gid":{"$ref":"#/components/schemas/GroupChatId","title":"GroupChatCreationResponse.gid","description":"The group chat id"},"participants":{"items":{"properties":{"ContactId":{"$ref":"#/components/schemas/GroupChatCreationParticipantAddResponse","title":"GroupChatCreationResponse.participants.[].ContactId"}},"additionalProperties":false,"title":"GroupChatCreationResponse.participants.[]","type":"object"},"title":"GroupChatCreationResponse.participants","description":"The initial requested participants and their corresponding add responses","type":"array"}},"required":["status","gid","participants"],"additionalProperties":false,"title":"GroupChatCreationResponse","type":"object"},"EphemeralDuration":{"enum":[86400,604800,7776000],"title":"EphemeralDuration","description":"Ephemeral duration can be 1 day, 7 days or 90 days. The default is 1 day.","type":"number"},"SessionData":{"properties":{"WABrowserId":{"title":"SessionData.WABrowserId","type":"string"},"WASecretBundle":{"title":"SessionData.WASecretBundle","type":"string"},"WAToken1":{"title":"SessionData.WAToken1","type":"string"},"WAToken2":{"title":"SessionData.WAToken2","type":"string"}},"additionalProperties":false,"title":"SessionData","type":"object"},"DevTools":{"properties":{"user":{"title":"DevTools.user","description":"Username for devtools","type":"string"},"pass":{"title":"DevTools.pass","description":"Password for devtools","type":"string"}},"required":["user","pass"],"additionalProperties":false,"title":"DevTools","type":"object"},"EventPayload":{"properties":{"ts":{"title":"EventPayload.ts","type":"number"},"sessionId":{"title":"EventPayload.sessionId","type":"string"},"id":{"title":"EventPayload.id","type":"string"},"event":{"$ref":"#/components/schemas/SimpleListener","title":"EventPayload.event"},"data":{"title":"EventPayload.data"}},"required":["ts","sessionId","id","event","data"],"additionalProperties":{},"title":"EventPayload","type":"object"},"Webhook":{"properties":{"url":{"title":"Webhook.url","description":"The endpoint to send (POST) the event to.","type":"string"},"requestConfig":{"$ref":"#/components/schemas/AxiosRequestConfig","title":"Webhook.requestConfig","description":"The optional AxiosRequestConfig to use for firing the webhook event. This can be useful if you want to add some authentication when POSTing data to your server.\n\nFor example, if your webhook requires the username `admin` and password `1234` for authentication, you can set the requestConfig to:\n```\n{\n auth: {\n username: \"admin\",\n password: \"1234\",\n }\n}\n```\n\nPlease note, for security reasons, this is not returned when listing webhooks however it is returned when registering a webhook for verification purposes."},"id":{"title":"Webhook.id","description":"The ID of the given webhook setup. Use this ID with [[removeWebhook]]","type":"string"},"events":{"items":{"$ref":"#/components/schemas/SimpleListener","title":"Webhook.events.[]"},"title":"Webhook.events","description":"An array of events that are registered to be sent to this webhook.","type":"array"},"ts":{"title":"Webhook.ts","description":"Time when the webhook was registered in epoch time","type":"number"}},"required":["url","id","events","ts"],"additionalProperties":false,"title":"Webhook","type":"object"},"ProxyServerCredentials":{"properties":{"protocol":{"title":"ProxyServerCredentials.protocol","description":"The protocol on which the proxy is running. E.g `http`, `https`, `socks4` or `socks5`. This is optional and can be automatically determined from the address.","type":"string"},"address":{"title":"ProxyServerCredentials.address","description":"Proxy Server address. This can include the port e.g '127.0.0.1:5005'","type":"string"},"username":{"title":"ProxyServerCredentials.username","description":"Username for Proxy Server authentication","type":"string"},"password":{"title":"ProxyServerCredentials.password","description":"Password for Proxy Server authentication","type":"string"}},"required":["address","username","password"],"additionalProperties":false,"title":"ProxyServerCredentials","type":"object"},"ConfigObject":{"properties":{"sessionData":{"anyOf":[{"$ref":"#/components/schemas/SessionData","title":"ConfigObject.sessionData"},{"$ref":"#/components/schemas/Base64","title":"ConfigObject.sessionData"}],"title":"ConfigObject.sessionData","description":"The authentication object (as a JSON object or a base64 encoded string) that is required to migrate a session from one instance to another or to just restart an existing instance.\nThis sessionData is provided in a generated JSON file (it's a json file but contains the JSON data as a base64 encoded string) upon QR scan or an event.\n\nYou can capture the event like so:\n```javascript\nimport {create, ev} from '@open-wa/wa-automate';\n\n ev.on('sessionData.**', async (sessionData, sessionId) =>{\n console.log(sessionId, sessionData)\n })\n\n//or as base64 encoded string\n\n ev.on('sessionDataBase64.**', async (sessionDatastring, sessionId) =>{\n console.log(sessionId, sessionDatastring)\n })\n```\n NOTE: You can set sessionData as an evironmental variable also! The variable name has to be [sessionId (default = 'session) in all caps]_DATA_JSON. You have to make sure to surround your session data with single quotes to maintain the formatting.\n\nFor example:\n\nsessionId = 'session'\n\nTo set env var:\n```bash\n export SESSION_DATA_JSON=`...`\n```\nwhere ... is copied from session.data.json this will be a string most likley starting in `ey...` and ending with `==`\n\nSetting the sessionData in the environmental variable will override the sessionData object in the config."},"browserWSEndpoint":{"title":"ConfigObject.browserWSEndpoint","description":"ALPHA EXPERIMENTAL FEATURE! DO NOT USE IN PRODUCTION, REQUIRES TESTING.\n\nLearn more:\n\nhttps://pptr.dev/#?product=Puppeteer&version=v3.1.0&show=api-puppeteerconnectoptions\n\nhttps://medium.com/@jaredpotter1/connecting-puppeteer-to-existing-chrome-window-8a10828149e0","type":"string"},"useStealth":{"title":"ConfigObject.useStealth","description":"This flag allows you to disable or enable the use of the puppeteer stealth plugin. It is a good idea to use it, however it can cause issues sometimes. Set this to false if you are experiencing `browser.setMaxListeneres` issue. For now the default for this is false.","default":"`false`","type":"boolean"},"sessionDataPath":{"title":"ConfigObject.sessionDataPath","description":"The path relative to the current working directory (i.e where you run the command to start your process). This will be used to store and read your `.data.json` files. defualt to ''","type":"string"},"bypassCSP":{"title":"ConfigObject.bypassCSP","description":"Disable cors see: https://pptr.dev/#?product=Puppeteer&version=v3.0.4&show=api-pagesetbypasscspenabled If you are having an issue with sending media try to set this to true. Otherwise leave it set to false.","default":"`false`","type":"boolean"},"chromiumArgs":{"items":{"title":"ConfigObject.chromiumArgs.[]","type":"string"},"title":"ConfigObject.chromiumArgs","description":"This allows you to pass any array of custom chrome/chromium argument strings to the puppeteer instance.\nYou can find all possible arguements [here](https://peter.sh/experiments/chromium-command-line-switches/).","type":"array"},"skipBrokenMethodsCheck":{"title":"ConfigObject.skipBrokenMethodsCheck","description":"If set to true, skipBrokenMethodsCheck will bypass the health check before startup. It is highly suggested to not set this to true.","default":"`false`","type":"boolean"},"skipUpdateCheck":{"title":"ConfigObject.skipUpdateCheck","description":"If set to true, `skipUpdateCheck` will bypass the latest version check. This saves some time on boot (around 150 ms).","default":"`false`","type":"boolean"},"sessionId":{"title":"ConfigObject.sessionId","description":"This is the name of the session. You have to make sure that this is unique for every session.","default":"`session`","type":"string"},"licenseKey":{"$ref":"#/components/schemas/LicenseKey","title":"ConfigObject.licenseKey","description":"In order to unlock the functionality to send texts to unknown numbers, you need a License key.\nOne License Key is valid for each number. Each License Key starts from £5 per month.\n\nPlease check README for instructions on how to get a license key.\n\nNotes:\n1. You can change the number assigned to that License Key at any time, just message me the new number on the private discord channel.\n2. In order to cancel your License Key, simply stop your membership."},"customUserAgent":{"title":"ConfigObject.customUserAgent","description":"You may set a custom user agent. However, due to recent developments, this is not really neccessary any more.","type":"string"},"devtools":{"anyOf":[{"title":"ConfigObject.devtools","type":"boolean"},{"$ref":"#/components/schemas/DevTools","title":"ConfigObject.devtools"}],"title":"ConfigObject.devtools","description":"You can enable remote devtools by setting this to trye. If you set this to true there will be security on the devtools url.\nIf you want, you can also pass a username & password."},"blockCrashLogs":{"title":"ConfigObject.blockCrashLogs","description":"Setting this to true will block any network calls to crash log servers. This should keep anything you do under the radar.","default":"`true`","type":"boolean"},"cacheEnabled":{"title":"ConfigObject.cacheEnabled","description":"Setting this to false turn off the cache. This may improve memory usage.","default":"`false`","type":"boolean"},"browserRevision":{"title":"ConfigObject.browserRevision","description":"This is the specific browser revision to be downlaoded and used. You can find browser revision strings here: http://omahaproxy.appspot.com/\nLearn more about it here: https://github.com/puppeteer/puppeteer/blob/master/docs/api.md#class-browserfetcher\nIf you're having trouble with sending images, try '737027'.\nIf you go too far back things will start breaking !!!!!!\nNOTE: THIS WILL OVERRIDE useChrome and executablePath. ONLY USE THIS IF YOU KNOW WHAT YOU ARE DOING.","type":"string"},"throwErrorOnTosBlock":{"title":"ConfigObject.throwErrorOnTosBlock","description":"Setting this to true will throw an error if a session is not able to get a QR code or is unable to restart a session.","type":"boolean"},"headless":{"title":"ConfigObject.headless","description":"By default, all instances of @open-wa/wa-automate are headless (i.e you don't see a chrome window open), you can set this to false to show the chrome/chromium window.","default":"`true`","type":"boolean"},"autoRefresh":{"title":"ConfigObject.autoRefresh","description":"@deprecated THIS IS LOCKED TO `true` AND CANNOT BE TURNED OFF. PLEASE SEE [[authTimeout]]\n\nSetting this to true will result in new QR codes being generated if the end user takes too long to scan the QR code.","default":"`true`","type":"boolean"},"qrRefreshS":{"title":"ConfigObject.qrRefreshS","description":"@deprecated This now has no effect\n\nThis determines the interval at which to refresh the QR code. By default, WA updates the qr code every 18-19 seconds so make sure this value is set to UNDER 18 seconds!!","type":"number"},"qrTimeout":{"title":"ConfigObject.qrTimeout","description":"This determines how long the process should wait for a QR code to be scanned before killing the process entirely. To have the system wait continuously, set this to `0`.","default":"60","type":"number"},"executablePath":{"title":"ConfigObject.executablePath","description":"Some features, like video upload, do not work without a chrome instance. Set this to the path of your chrome instance or you can use `useChrome:true` to automatically detect a chrome instance for you. Please note, this overrides `useChrome`.","type":"string"},"useChrome":{"title":"ConfigObject.useChrome","description":"If true, the program will automatically try to detect the instance of chorme on the machine. Please note this DOES NOT override executablePath.","default":"`false`","type":"boolean"},"proxyServerCredentials":{"$ref":"#/components/schemas/ProxyServerCredentials","title":"ConfigObject.proxyServerCredentials","description":"If sent, adds a call to waPage.authenticate with those credentials. Set `corsFix` to true if using a proxy results in CORS errors."},"qrLogSkip":{"title":"ConfigObject.qrLogSkip","description":"If true, skips logging the QR Code to the console.","default":"`false`","type":"boolean"},"restartOnCrash":{"title":"ConfigObject.restartOnCrash","description":"If set, the program will try to recreate itself when the page crashes. You have to pass the function that you want called upon restart. Please note that when the page crashes you may miss some messages.\nE.g:\n```javascript\nconst start = async (client: Client) => {...}\ncreate({\n...\nrestartOnCrash: start,\n...\n})\n```"},"disableSpins":{"title":"ConfigObject.disableSpins","description":"Setting this to true will simplify logs for use within docker containers by disabling spins (will still print raw messages).","default":"`false`","type":"boolean"},"logConsole":{"title":"ConfigObject.logConsole","description":"If true, this will log any console messages from the browser.","default":"`false`","type":"boolean"},"logConsoleErrors":{"title":"ConfigObject.logConsoleErrors","description":"If true, this will log any error messages from the browser instance","default":"`false`","type":"boolean"},"authTimeout":{"title":"ConfigObject.authTimeout","description":"This determines how long the process should wait for the session authentication. If exceeded, checks if phone is out of reach (turned of or without internet connection) and throws an error. It does not relate to the amount of time spent waiting for a qr code scan (see [[qrTimeout]]). To have the system wait continuously, set this to `0`.","default":"`60`","type":"number"},"killProcessOnBrowserClose":{"title":"ConfigObject.killProcessOnBrowserClose","description":"Setting this to `true` will kill the whole process when the client is disconnected from the page or if the browser is closed.","default":"`false`","type":"boolean"},"safeMode":{"title":"ConfigObject.safeMode","description":"If true, client will check if the page is valid before each command. If page is not valid, it will throw an error.","default":"`false`","type":"boolean"},"skipSessionSave":{"title":"ConfigObject.skipSessionSave","description":"If true, the process will not save a data.json file. This means that sessions will not be saved and you will need to pass sessionData as a config param or create the session data.json file yourself","default":"`false`","type":"boolean"},"popup":{"title":"ConfigObject.popup","description":"If true, the process will open a browser window where you will see basic event logs and QR codes to authenticate the session. Usually it will open on port 3000. It can also be set to a preferred port.\n\nYou can also get the QR code png at (if localhost and port 3000):\n\n`http://localhost:3000/qr`\n\nor if you have multiple session:\n\n `http://localhost:3000/qr?sessionId=[sessionId]`","default":"`false | 3000`","anyOf":[{"type":"boolean"},{"type":"number"}]},"qrPopUpOnly":{"title":"ConfigObject.qrPopUpOnly","description":"This needs to be used in conjuction with `popup`, if `popup` is not true or a number (representing a desired port) then this will not work.\n\nSetting this to true will make sure that only the qr code png is served via the web server. This is useful if you do not need the whole status page.\n\nAs mentioned in [popup](#popup), the url for the qr code is `http://localhost:3000/qr` if the port is 3000.","type":"boolean"},"inDocker":{"title":"ConfigObject.inDocker","description":"If true, the process will try infer as many config variables as possible from the environment variables. The format of the variables are as below:\n```\nsessionData ==> WA_SESSION_DATA\nsessionDataPath ==> WA_SESSION_DATA_PATH\nsessionId ==> WA_SESSION_ID\ncustomUserAgent ==> WA_CUSTOM_USER_AGENT\nblockCrashLogs ==> WA_BLOCK_CRASH_LOGS\nblockAssets ==> WA_BLOCK_ASSETS\ncorsFix ==> WA_CORS_FIX\ncacheEnabled ==> WA_CACHE_ENABLED\nheadless ==> WA_HEADLESS\nqrTimeout ==> WA_QR_TIMEOUT\nuseChrome ==> WA_USE_CHROME\nqrLogSkip ==> WA_QR_LOG_SKIP\ndisableSpins ==> WA_DISABLE_SPINS\nlogConsole ==> WA_LOG_CONSOLE\nlogConsoleErrors==> WA_LOG_CONSOLE_ERRORS\nauthTimeout ==> WA_AUTH_TIMEOUT\nsafeMode ==> WA_SAFE_MODE\nskipSessionSave ==> WA_SKIP_SESSION_SAVE\npopup ==> WA_POPUP\nlicensekey ==> WA_LICENSE_KEY\n```","default":"`false`","type":"boolean"},"qrQuality":{"$ref":"#/components/schemas/QRQuality","title":"ConfigObject.qrQuality","description":"The output quality of the qr code during authentication. This can be any increment of 0.1 from 0.1 to 1.0.","default":"`1.0`"},"qrFormat":{"$ref":"#/components/schemas/QRFormat","title":"ConfigObject.qrFormat","description":"The output format of the qr code. `png`, `jpeg` or `webm`.","default":"`png`"},"hostNotificationLang":{"$ref":"#/components/schemas/NotificationLanguage","title":"ConfigObject.hostNotificationLang","description":"The language of the host notification. See: https://github.com/open-wa/wa-automate-nodejs/issues/709#issuecomment-673419088"},"blockAssets":{"title":"ConfigObject.blockAssets","description":"Setting this to true will block all assets from loading onto the page. This may result in some load time improvements but also increases instability.","default":"`false`","type":"boolean"},"keepUpdated":{"title":"ConfigObject.keepUpdated","description":"[ALPHA FEATURE - ONLY IMPLEMENTED FOR TESTING - DO NOT USE IN PRODUCTION YET]\nSetting this to true will result in the library making sure it is always starting with the latest version of itself. This overrides `skipUpdateCheck`.","default":"`false`","type":"boolean"},"resizable":{"title":"ConfigObject.resizable","description":"Syncs the viewport size with the window size which is how normal browsers act. Only relevant when `headless: false` and this overrides `viewport` config.","default":"`true`","type":"boolean"},"viewport":{"properties":{"width":{"title":"ConfigObject.viewport.width","description":"Page width in pixels","default":"`1440`","type":"number"},"height":{"title":"ConfigObject.viewport.height","description":"Page height in pixels","default":"`900`","type":"number"}},"additionalProperties":false,"title":"ConfigObject.viewport","description":"Set the desired viewport height and width. For CLI, use [width]x[height] format. E.g `--viewport 1920x1080`.","type":"object"},"legacy":{"title":"ConfigObject.legacy","description":"As the library is constantly evolving, some parts will be replaced with more efficient and improved code. In some of the infinite edge cases these new changes may not work for you. Set this to true to roll back on 'late beta' features. The reason why legacy is false by default is that in order for features to be tested they have to be released and used by everyone to find the edge cases and fix them.","default":"`false`","type":"boolean"},"deleteSessionDataOnLogout":{"title":"ConfigObject.deleteSessionDataOnLogout","description":"Deletes the session data file (if found) on logout event. This results in a quicker login when you restart the process.","default":"`false`","type":"boolean"},"killProcessOnTimeout":{"title":"ConfigObject.killProcessOnTimeout","description":"If set to true, the system will kill the whole node process when either an [[authTimeout]] or a [[qrTimeout]] has been reached. This is useful to prevent hanging processes.","default":"`false`","type":"boolean"},"corsFix":{"title":"ConfigObject.corsFix","description":"Setting this to true will bypass web security. DO NOT DO THIS IF YOU DO NOT HAVE TO. CORS issue may arise when using a proxy.","default":"`false`","type":"boolean"},"callTimeout":{"title":"ConfigObject.callTimeout","description":"Amount of time (in ms) to wait for a client method (specifically methods that interact with the WA web session) to resolve. If a client method results takes longer than the timout value then it will result in a [[PageEvaluationTimeout]] error.\n\nIf you get this error, it does not automatically mean that the method failed - it just stops your program from waiting for a client method to resolve.\n\nThis is useful if you do not rely on the results of a client method (e.g the message ID).\n\nIf set to `0`, the process will wait indefinitely for a client method to resolve.","default":"0","type":"number"},"screenshotOnInitializationBrowserError":{"title":"ConfigObject.screenshotOnInitializationBrowserError","description":"When true, this option will take a screenshot of the browser when an unexpected error occurs within the browser during `create` initialization. The path will be `[working directory]/logs/[session ID]/[start timestamp]/[timestamp].jpg`","default":"`false`","type":"boolean"},"eventMode":{"title":"ConfigObject.eventMode","description":"Setting listeners may not be your cup of tea. With eventMode, all [[SimpleListener]] events will be registered automatically and be filed via the built in Events Listener.\n\nThis is useful because you can register/deregister the event listener as needed whereas the legacy method of setting callbacks are only be set once","default":"`true`;","type":"boolean"},"logFile":{"title":"ConfigObject.logFile","description":"If true, the system will automatically create a log of all processes relating to actions sent to the web session.\n\nThe location of the file will be relative to the process directory (pd)\n\n`[pd]/[sessionId]/[start timestamp].log`","default":"false","type":"boolean"},"idCorrection":{"title":"ConfigObject.idCorrection","description":"When true, the system will attempt to correct chatIds and groupChatIds. This means you can ignore `@c.us` and `@g.us` distinctions in some parameters.","default":"false","type":"boolean"},"stickerServerEndpoint":{"title":"ConfigObject.stickerServerEndpoint","description":"Redundant until self-hostable sticker server is available.","default":"`https://sticker-api.openwa.dev`","anyOf":[{"type":"string"},{"type":"boolean"}]},"ghPatch":{"title":"ConfigObject.ghPatch","description":"This will force the library to use the default cached raw github link for patches to shave a few hundred milliseconds from your launch time. If you use this option, you will need to wait about 5 minutes before trying out new patches.","default":"`false`","type":"boolean"},"cachedPatch":{"title":"ConfigObject.cachedPatch","description":"Setting this to `true` will save a local copy of the patches.json file (as patches.ignore.data.json) which will be used in subsequent instantiations of the session. While the rest of the launch procedure is running, the library will fetch and save a recent version of the patches to ensure your patches don't go stale. This will be ignored if the cached patches are more than a day old.","default":"`false`","type":"boolean"},"logDebugInfoAsObject":{"title":"ConfigObject.logDebugInfoAsObject","description":"Setting `this` to true will replace the `console.table` with a stringified logging of the debug info object instead. This would be useful to set for smaller terminal windows. If `disableSpins` is `true` then this will also be `true`.","default":"`false`","type":"boolean"},"killClientOnLogout":{"title":"ConfigObject.killClientOnLogout","description":"Kill the client when a logout is detected","default":"`false`","type":"boolean"},"throwOnExpiredSessionData":{"title":"ConfigObject.throwOnExpiredSessionData","description":"This will make the `create` command return `false` if the detected session data is expired.\n\nThis will mean, the process will not attempt to automatically get a new QR code.","default":"`false`","type":"boolean"},"useNativeProxy":{"title":"ConfigObject.useNativeProxy","description":"Some sessions may experience issues with sending media when using proxies. Using the native proxy system instead of the recommended 3rd party library may fix these issues.","default":"`false`","type":"boolean"},"raspi":{"title":"ConfigObject.raspi","description":"Set this to `true` to make the library work on Raspberry Pi OS.\n\nMake sure to run the following command before running the library the first time:\n\n```\n> sudo apt update -y && sudo apt install chromium-browser chromium-codecs-ffmpeg -y && sudo apt upgrade\n```\n\nIf you're using the CLI, you can set this value to `true` by adding the following flag to the CLI command\n\n```\n> npx @open-wa/wa-automate ... --raspi\n```","default":"`false`","type":"boolean"},"pQueueDefault":{"title":"ConfigObject.pQueueDefault","description":"Default pqueue options applied to all listeners that can take pqueue options as a second optional parameter. For now, this only includes `onMessage` and `onAnyMessage`.\n\nSee: https://github.com/sindresorhus/p-queue#options\n\nExample: process 5 events within every 3 seconds window. Make sure to only process at most 2 at any one time. Make sure there is at least 100ms between each event processing.\n\n```javascript\n {\n intervalCap: 5, //process 5 events\n interval: 3000, //within every three second window\n concurrency: 2, //make sure to process, at most, 2 events at any one time\n timeout: 100, //make sure there is a 100ms gap between each event processing.\n carryoverConcurrencyCount: true //If there are more than 5 events in that period, process them within the next 3 second period. Make sure this is always set to true!!!\n }\n```","default":"`undefined`"},"messagePreprocessor":{"$ref":"#/components/schemas/PREPROCESSORS","title":"ConfigObject.messagePreprocessor","description":"Set a preprocessor for messages. See [[PREPROCESSORS]] for more info.\n\noptions: `SCRUB`, `BODY_ONLY`, `AUTO_DECRYPT`, `AUTO_DECRYPT_SAVE`, `UPLOAD_CLOUD`.","default":"`undefined`"},"preprocFilter":{"title":"ConfigObject.preprocFilter","description":"Set an array filter to be used with messagePreprocessor to limit which messages are preprocessed.\n\nE.g if you want to scrub all messages that are not from a group, you can do the following:\n`\"m=>!m.isGroupMsg\"`","default":"`undefined`","type":"string"},"cloudUploadOptions":{"properties":{"provider":{"$ref":"#/components/schemas/CLOUD_PROVIDERS","title":"ConfigObject.cloudUploadOptions.provider","description":"`AWS`, `GCP` or `WASABI`\n\nenv: `OW_CLOUD_ACCESS_KEY_ID`"},"accessKeyId":{"title":"ConfigObject.cloudUploadOptions.accessKeyId","description":"S3 compatible access key ID.\n\ne.g: `AKIAIOSFODNN7EXAMPLE` or `GOOGTS7C7FUP3AIRVJTE2BCD`\n\nenv: `OW_CLOUD_ACCESS_KEY_ID`","type":"string"},"secretAccessKey":{"title":"ConfigObject.cloudUploadOptions.secretAccessKey","description":"S3 compatible secret access key.\n\ne.g `wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`\n\nenv: `OW_CLOUD_SECRET_ACCESS_KEY`","type":"string"},"bucket":{"title":"ConfigObject.cloudUploadOptions.bucket","description":"Bucket name\n\nenv: `OW_CLOUD_BUCKET`","type":"string"},"region":{"title":"ConfigObject.cloudUploadOptions.region","description":"Bucket region.\n\nNot required for `GCP` provider\n\nenv: `OW_CLOUD_REGION`","type":"string"},"ignoreHostAccount":{"title":"ConfigObject.cloudUploadOptions.ignoreHostAccount","description":"Ignore processing of messages that are sent by the host account itself\n\nenv: `OW_CLOUD_IGNORE_HOST`","type":"boolean"},"directory":{"anyOf":[{"$ref":"#/components/schemas/DIRECTORY_STRATEGY","title":"ConfigObject.cloudUploadOptions.directory"},{"title":"ConfigObject.cloudUploadOptions.directory","type":"string"}],"title":"ConfigObject.cloudUploadOptions.directory","description":"The directory strategy to use when uploading files. Or just set it to a custom directory string.\n\nenv: `OW_DIRECTORY`"}},"required":["provider","accessKeyId","secretAccessKey","bucket"],"additionalProperties":false,"title":"ConfigObject.cloudUploadOptions","description":"REQUIRED IF `messagePreprocessor` IS SET TO `UPLOAD_CLOUD`.\n\nThis can be set via the config or the corresponding environment variables.","type":"object"},"onError":{"$ref":"#/components/schemas/OnError","title":"ConfigObject.onError","description":"What to do when an error is detected on a client method.","default":"`OnError.NOTHING`"},"multiDevice":{"title":"ConfigObject.multiDevice","description":"Please note that multi-device is still in beta so a lot of things may not work. It is HIGHLY suggested to NOT use this in production!!!!\n\nSet this to true if you're using the multidevice beta.","default":"`true`\n:::danger\nSome features (e.g [[sendLinkWithAutoPreview]]) **do not** work with multi-device beta. Check [this `api`](#).\n:::","type":"boolean"},"sessionDataBucketAuth":{"title":"ConfigObject.sessionDataBucketAuth","description":"Base64 encoded S3 Bucket & Authentication object for session data files. The object should be in the same format as cloudUploadOptions.","type":"string"},"autoEmoji":{"anyOf":[{"title":"ConfigObject.autoEmoji","type":"string"},{"title":"ConfigObject.autoEmoji","enum":[false],"type":"boolean"}],"title":"ConfigObject.autoEmoji","description":"Set the automatic emoji detection character. Set this to `false` to disable auto emoji. Default is `:`.","default":"`:`"},"maxChats":{"title":"ConfigObject.maxChats","description":"Set the maximum amount of chats to be present in a session.","type":"number"},"maxMessages":{"title":"ConfigObject.maxMessages","description":"Set the maximum amount of messages to be present in a session.","type":"number"},"discord":{"title":"ConfigObject.discord","description":"Your Discord ID to get onto the sticker leaderboard!","type":"string"},"ignoreNuke":{"title":"ConfigObject.ignoreNuke","description":"Don't implicitly determine if the host logged out.","type":"boolean"},"ensureHeadfulIntegrity":{"title":"ConfigObject.ensureHeadfulIntegrity","description":"Makes sure the headless session is usable even on first login.\nHeadful sessions are ususally only usable on reauthentication.","type":"boolean"},"waitForRipeSession":{"title":"ConfigObject.waitForRipeSession","description":"wait for a valid headful session. Not required in recent versions.\ndefault: `true`","type":"boolean"},"qrMax":{"title":"ConfigObject.qrMax","description":"Automatically kill the process after a set amount of qr codes","type":"number"},"ezqr":{"title":"ConfigObject.ezqr","description":"Expose a URL where you can easily scan the qr code","type":"boolean"},"logging":{"items":{"$ref":"#/components/schemas/ConfigLogTransport","title":"ConfigObject.logging.[]"},"title":"ConfigObject.logging","description":"An array of [winston](https://github.com/winstonjs/winston/blob/master/docs/transports.md#additional-transports) logging transport configurations.\n\n[Check this discussion to see how to set up logging](https://github.com/open-wa/wa-automate-nodejs/discussions/2373)","type":"array"},"linkParser":{"title":"ConfigObject.linkParser","description":"The URL of your instance of [serverless meta grabber](https://github.com/RemiixInc/meta-grabber-serverless) by [RemiixInc](https://github.com/RemiixInc).\n\ndefault: `https://link.openwa.cloud/api`","type":"string"},"aggressiveGarbageCollection":{"title":"ConfigObject.aggressiveGarbageCollection","description":"Setting this to true will run `gc()` on before every command sent to the browser.\n\nThis is experimental and may not work or it may have unforeseen sideeffects.","type":"boolean"}},"additionalProperties":{},"title":"ConfigObject","type":"object"},"AdvancedConfig":{"allOf":[{"$ref":"#/components/schemas/ConfigObject"},{"properties":{"licenseKey":{"$ref":"#/components/schemas/LicenseKeyConfig","title":"licenseKey"}},"required":["licenseKey"],"additionalProperties":false,"type":"object"}],"title":"AdvancedConfig"},"LicenseKey":{"title":"LicenseKey","type":"string"},"LicenseKeyConfig":{"anyOf":[{"$ref":"#/components/schemas/LicenseKeyConfigFunction","title":"LicenseKeyConfig"},{"$ref":"#/components/schemas/LicenseKeyConfigObject","title":"LicenseKeyConfig"},{"$ref":"#/components/schemas/LicenseKey","title":"LicenseKeyConfig"}],"title":"LicenseKeyConfig"},"NumberCheck":{"properties":{"id":{"$ref":"#/components/schemas/Id","title":"NumberCheck.id"},"status":{"enum":[200,404],"title":"NumberCheck.status","type":"number"},"isBusiness":{"title":"NumberCheck.isBusiness","type":"boolean"},"canReceiveMessage":{"title":"NumberCheck.canReceiveMessage","type":"boolean"},"numberExists":{"title":"NumberCheck.numberExists","type":"boolean"}},"required":["id","status","isBusiness","canReceiveMessage","numberExists"],"additionalProperties":false,"title":"NumberCheck","type":"object"},"Contact":{"properties":{"formattedName":{"title":"Contact.formattedName","type":"string"},"id":{"$ref":"#/components/schemas/ContactId","title":"Contact.id"},"isBusiness":{"title":"Contact.isBusiness","type":"boolean"},"isEnterprise":{"title":"Contact.isEnterprise","description":"Most likely true when the account has a green tick. See `verifiedLevel` also.","type":"boolean"},"isMe":{"title":"Contact.isMe","type":"boolean"},"isMyContact":{"title":"Contact.isMyContact","type":"boolean"},"isPSA":{"title":"Contact.isPSA","type":"boolean"},"isUser":{"title":"Contact.isUser","type":"boolean"},"isWAContact":{"title":"Contact.isWAContact","type":"boolean"},"labels":{"items":{"title":"Contact.labels.[]","type":"string"},"title":"Contact.labels","type":"array"},"msgs":{"items":{"$ref":"#/components/schemas/Message","title":"Contact.msgs.[]"},"title":"Contact.msgs","type":"array"},"name":{"title":"Contact.name","type":"string"},"plaintextDisabled":{"title":"Contact.plaintextDisabled","type":"boolean"},"profilePicThumbObj":{"properties":{"eurl":{"title":"Contact.profilePicThumbObj.eurl","type":"string"},"id":{"$ref":"#/components/schemas/Id","title":"Contact.profilePicThumbObj.id"},"img":{"title":"Contact.profilePicThumbObj.img","type":"string"},"imgFull":{"title":"Contact.profilePicThumbObj.imgFull","type":"string"},"raw":{"title":"Contact.profilePicThumbObj.raw","type":"string"},"tag":{"title":"Contact.profilePicThumbObj.tag","type":"string"}},"required":["eurl","id","img","imgFull","raw","tag"],"additionalProperties":false,"title":"Contact.profilePicThumbObj","type":"object"},"pushname":{"title":"Contact.pushname","type":"string"},"shortName":{"title":"Contact.shortName","type":"string"},"statusMute":{"title":"Contact.statusMute","type":"boolean"},"type":{"title":"Contact.type","type":"string"},"verifiedLevel":{"title":"Contact.verifiedLevel","description":"0 = not verified\n2 = verified (most likely represents a blue tick)","type":"number"},"verifiedName":{"title":"Contact.verifiedName","description":"The business account name verified by WA.","type":"string"},"isOnline":{"title":"Contact.isOnline","type":"boolean"},"lastSeen":{"title":"Contact.lastSeen","type":"number"}},"required":["formattedName","id","isBusiness","isEnterprise","isMe","isMyContact","isPSA","isUser","isWAContact","labels","msgs","name","plaintextDisabled","profilePicThumbObj","pushname","shortName","statusMute","type","verifiedLevel","verifiedName"],"additionalProperties":false,"title":"Contact","type":"object"},"Participant":{"properties":{"id":{"$ref":"#/components/schemas/NonSerializedId","title":"Participant.id"},"isAdmin":{"title":"Participant.isAdmin","type":"boolean"},"isSuperAdmin":{"title":"Participant.isSuperAdmin","type":"boolean"}},"required":["id","isAdmin","isSuperAdmin"],"additionalProperties":false,"title":"Participant","type":"object"},"GroupMetadata":{"properties":{"id":{"$ref":"#/components/schemas/GroupChatId","title":"GroupMetadata.id","description":"The chat id of the group [[GroupChatId]]"},"creation":{"title":"GroupMetadata.creation","description":"The timestamp of when the group was created","type":"number"},"owner":{"$ref":"#/components/schemas/NonSerializedId","title":"GroupMetadata.owner","description":"The id of the owner of the group [[ContactId]]"},"participants":{"items":{"$ref":"#/components/schemas/Participant","title":"GroupMetadata.participants.[]"},"title":"GroupMetadata.participants","description":"An array of participants in the group","type":"array"},"pendingParticipants":{"items":{"$ref":"#/components/schemas/Participant","title":"GroupMetadata.pendingParticipants.[]"},"title":"GroupMetadata.pendingParticipants","description":"Unknown.","type":"array"},"desc":{"title":"GroupMetadata.desc","description":"The description of the group","type":"string"},"descOwner":{"$ref":"#/components/schemas/ContactId","title":"GroupMetadata.descOwner","description":"The account that set the description last."},"trusted":{"title":"GroupMetadata.trusted","type":"boolean"},"suspended":{"title":"GroupMetadata.suspended","description":"Not sure what this represents","type":"boolean"},"support":{"title":"GroupMetadata.support","description":"Not sure what this represents","type":"boolean"}},"required":["id","creation","owner","participants","pendingParticipants"],"additionalProperties":false,"title":"GroupMetadata","type":"object"},"ParticipantChangedEventModel":{"properties":{"by":{"$ref":"#/components/schemas/ContactId","title":"ParticipantChangedEventModel.by"},"action":{"$ref":"#/components/schemas/groupChangeEvent","title":"ParticipantChangedEventModel.action"},"who":{"items":{"$ref":"#/components/schemas/ContactId","title":"ParticipantChangedEventModel.who.[]"},"title":"ParticipantChangedEventModel.who","type":"array"},"chat":{"$ref":"#/components/schemas/ChatId","title":"ParticipantChangedEventModel.chat"}},"required":["by","action","who","chat"],"additionalProperties":false,"title":"ParticipantChangedEventModel","type":"object"},"Id":{"properties":{"server":{"title":"Id.server","type":"string"},"user":{"title":"Id.user","type":"string"},"_serialized":{"title":"Id._serialized","type":"string"}},"required":["server","user","_serialized"],"additionalProperties":false,"title":"Id","type":"object"},"EasyApiResponse":{"properties":{"success":{"title":"EasyApiResponse.success","type":"boolean"},"response":{"title":"EasyApiResponse.response"}},"required":["success","response"],"additionalProperties":false,"title":"EasyApiResponse","type":"object"},"Label":{"properties":{"id":{"title":"Label.id","description":"The internal ID of the label. Usually a number represented as a string e.g \"1\"","type":"string"},"name":{"title":"Label.name","description":"The text contents of the label","type":"string"},"items":{"items":{"properties":{"type":{"enum":["Chat","Contact","Message"],"title":"Label.items.[].type","description":"Labels can be applied to chats, contacts or individual messages. This represents the type of object the label is attached to.","type":"string"},"id":{"anyOf":[{"$ref":"#/components/schemas/ContactId","title":"Label.items.[].id"},{"$ref":"#/components/schemas/ChatId","title":"Label.items.[].id"},{"$ref":"#/components/schemas/MessageId","title":"Label.items.[].id"}],"title":"Label.items.[].id","description":"The ID of the object that the label is atteched to."}},"required":["type","id"],"additionalProperties":false,"title":"Label.items.[]","type":"object"},"title":"Label.items","description":"The items that are tagged with this label","type":"array"}},"required":["id","name","items"],"additionalProperties":false,"title":"Label","type":"object"},"StickerMetadata":{"properties":{"author":{"title":"StickerMetadata.author","description":"The author of the sticker","default":"``","type":"string"},"pack":{"title":"StickerMetadata.pack","description":"The pack of the sticker","default":"``","type":"string"},"removebg":{"anyOf":[{"title":"StickerMetadata.removebg","type":"boolean"},{"title":"StickerMetadata.removebg","enum":["HQ"],"type":"string"}],"title":"StickerMetadata.removebg","description":"ALPHA FEATURE - NO GUARANTEES IT WILL WORK AS EXPECTED:\n\n[REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)\n\nAttempt to remove the background of the sticker. Only valid for paid licenses.\n\noptions:\n\n `true` - remove background after resizing\n\n `HQ` - remove background before resizing (i.e on original photo)","default":"`false`"},"keepScale":{"title":"StickerMetadata.keepScale","description":"Setting this to `true` will skip the resizing/square-cropping of the sticker. It will instead 'letterbox' the image with a transparent background.","type":"boolean"},"circle":{"title":"StickerMetadata.circle","description":"Applies a circular mask to the sticker. Works on images only for now.","type":"boolean"},"discord":{"title":"StickerMetadata.discord","description":"Your Discord ID to get onto the sticker leaderboard!","type":"string"},"cropPosition":{"enum":["top","right top","right","right bottom","bottom","left bottom","left","left top","north","northeast","east","southeast","south","southwest","west","northwest","center","centre","entropy","attention"],"title":"StickerMetadata.cropPosition","description":"Crop position\n\nLearn more: https://sharp.pixelplumbing.com/api-resize","default":"`attention`","type":"string"},"cornerRadius":{"title":"StickerMetadata.cornerRadius","description":"The corner radius of the sticker when `stickerMetadata.circle` is set to true.\n@minimum `1`\n@maximum `100`\n@multipleOf `1`","default":"`100`","type":"number"}},"required":["author","pack"],"additionalProperties":false,"title":"StickerMetadata","type":"object"},"Mp4StickerConversionProcessOptions":{"properties":{"fps":{"title":"Mp4StickerConversionProcessOptions.fps","description":"Desired Frames per second of the sticker output","default":"`10`","type":"number"},"startTime":{"title":"Mp4StickerConversionProcessOptions.startTime","description":"The video start time of the sticker","default":"`00:00:00.0`","type":"string"},"endTime":{"title":"Mp4StickerConversionProcessOptions.endTime","description":"The video end time of the sticker. By default, stickers are made from the first 5 seconds of the video","default":"`00:00:05.0`","type":"string"},"loop":{"title":"Mp4StickerConversionProcessOptions.loop","description":"The amount of times the video loops in the sticker. To save processing time, leave this as 0\ndefault `0`","type":"number"},"crop":{"title":"Mp4StickerConversionProcessOptions.crop","description":"Centres and crops the video.\ndefault `true`","type":"boolean"},"log":{"title":"Mp4StickerConversionProcessOptions.log","description":"Prints ffmpeg logs in the terminal","default":"`false`","type":"boolean"},"square":{"title":"Mp4StickerConversionProcessOptions.square","description":"A number representing the WxH of the output sticker (default `512x512`). Lowering this number is a great way to process longer duration stickers. The max value is `512`.\ndefault `512`","type":"number"}},"additionalProperties":false,"title":"Mp4StickerConversionProcessOptions","type":"object"},"Message":{"properties":{"selectedButtonId":{"title":"Message.selectedButtonId","description":"The ID of the selected button","type":"string"},"id":{"$ref":"#/components/schemas/MessageId","title":"Message.id","description":"The id of the message"},"body":{"title":"Message.body","description":"The body of the message. If the message type is `chat` , `body` will be the text of the chat. If the message type is some sort of media, then this body will be the thumbnail of the media.","type":"string"},"text":{"title":"Message.text","description":"a convenient way to get the main text content from a message.","type":"string"},"type":{"$ref":"#/components/schemas/MessageTypes","title":"Message.type","description":"The type of the message, see [[MessageTypes]]"},"filehash":{"title":"Message.filehash","description":"Used to checking the integrity of the decrypted media.","type":"string"},"mimetype":{"title":"Message.mimetype","type":"string"},"lat":{"title":"Message.lat","description":"The latitude of a location message","type":"string"},"lng":{"title":"Message.lng","description":"The longitude of a location message","type":"string"},"loc":{"title":"Message.loc","description":"The text associated with a location message","type":"string"},"t":{"title":"Message.t","description":"The timestamp of the message","type":"number"},"notifyName":{"title":"Message.notifyName","type":"string"},"from":{"$ref":"#/components/schemas/ChatId","title":"Message.from","description":"The chat from which the message was sent"},"to":{"$ref":"#/components/schemas/ChatId","title":"Message.to","description":"The chat id to which the message is being sent"},"self":{"enum":["in","out"],"title":"Message.self","description":"Indicates whether the message was sent by the host account","type":"string"},"duration":{"title":"Message.duration","description":"The length of the media in the message, if it exists.","anyOf":[{"type":"string"},{"type":"number"}]},"ack":{"$ref":"#/components/schemas/MessageAck","title":"Message.ack","description":"The acknolwedgement state of a message [[MessageAck]]"},"invis":{"title":"Message.invis","type":"boolean"},"isNewMsg":{"title":"Message.isNewMsg","type":"boolean"},"star":{"title":"Message.star","type":"boolean"},"recvFresh":{"title":"Message.recvFresh","type":"boolean"},"broadcast":{"title":"Message.broadcast","description":"If the message is sent as a broadcast","type":"boolean"},"isForwarded":{"title":"Message.isForwarded","description":"If the message has been forwarded","type":"boolean"},"labels":{"items":{"title":"Message.labels.[]","type":"string"},"title":"Message.labels","description":"The labels associated with the message (used with business accounts)","type":"array"},"mentionedJidList":{"items":{"$ref":"#/components/schemas/ContactId","title":"Message.mentionedJidList.[]"},"title":"Message.mentionedJidList","description":"An array of all mentioned numbers in this message.","type":"array"},"caption":{"title":"Message.caption","description":"If the message is of a media type, it may also have a caption","type":"string"},"sender":{"$ref":"#/components/schemas/Contact","title":"Message.sender","description":"The contact object of the account that sent the message"},"timestamp":{"title":"Message.timestamp","description":"the timestanmp of the message","type":"number"},"filePath":{"title":"Message.filePath","description":"When `config.messagePreprocessor: \"AUTO_DECRYPT_SAVE\"` is set, media is decrypted and saved on disk in a folder called media relative to the current working directory.\n\nThis is the filePath of the decrypted file.","type":"string"},"filename":{"title":"Message.filename","description":"The given filename of the file","type":"string"},"content":{"title":"Message.content","type":"string"},"isGroupMsg":{"title":"Message.isGroupMsg","type":"boolean"},"isMMS":{"title":"Message.isMMS","type":"boolean"},"isMedia":{"title":"Message.isMedia","type":"boolean"},"isNotification":{"title":"Message.isNotification","type":"boolean"},"isPSA":{"title":"Message.isPSA","type":"boolean"},"fromMe":{"title":"Message.fromMe","description":"If the message is from the host account","type":"boolean"},"chat":{"$ref":"#/components/schemas/Chat","title":"Message.chat","description":"The chat object"},"chatId":{"$ref":"#/components/schemas/ChatId","title":"Message.chatId"},"author":{"title":"Message.author","type":"string"},"stickerAuthor":{"title":"Message.stickerAuthor","type":"string"},"stickerPack":{"title":"Message.stickerPack","type":"string"},"clientUrl":{"title":"Message.clientUrl","description":"@deprecated Ironically, you should be using `deprecatedMms3Url` instead","type":"string"},"deprecatedMms3Url":{"title":"Message.deprecatedMms3Url","type":"string"},"quotedMsg":{"$ref":"#/components/schemas/Message","title":"Message.quotedMsg"},"quotedMsgObj":{"$ref":"#/components/schemas/Message","title":"Message.quotedMsgObj"},"mediaData":{"title":"Message.mediaData"},"shareDuration":{"title":"Message.shareDuration","type":"number"},"isAnimated":{"title":"Message.isAnimated","type":"boolean"},"isViewOnce":{"title":"Message.isViewOnce","description":"Is the message a \"view once\" message","type":"boolean"},"quoteMap":{"$ref":"#/components/schemas/QuoteMap","title":"Message.quoteMap","description":"Use this to traverse the quote chain."},"cloudUrl":{"title":"Message.cloudUrl","description":"The URL of the file after being uploaded to the cloud using a cloud upload message preprocessor.","type":"string"},"buttons":{"items":{"$ref":"#/components/schemas/Button","title":"Message.buttons.[]"},"title":"Message.buttons","description":"Buttons associated with the message","type":"array"},"listResponse":{"$ref":"#/components/schemas/Row","title":"Message.listResponse","description":"List response associated with the message"},"list":{"properties":{"\"sections\"":{"items":{"$ref":"#/components/schemas/Section","title":"Message.list.\"sections\".[]"},"title":"Message.list.\"sections\"","type":"array"},"\"title\"":{"title":"Message.list.\"title\"","type":"string"},"\"description\"":{"title":"Message.list.\"description\"","type":"string"},"\"buttonText\"":{"title":"Message.list.\"buttonText\"","type":"string"}},"required":["\"sections\"","\"title\"","\"description\"","\"buttonText\""],"additionalProperties":false,"title":"Message.list","description":"The list associated with the list message","type":"object"}},"required":["selectedButtonId","id","body","text","type","t","notifyName","from","to","self","ack","invis","isNewMsg","star","recvFresh","broadcast","isForwarded","labels","mentionedJidList","caption","sender","timestamp","content","isGroupMsg","isMMS","isMedia","isNotification","isPSA","fromMe","chat","chatId","author","clientUrl","deprecatedMms3Url","mediaData","shareDuration","isAnimated","isViewOnce","quoteMap"],"additionalProperties":false,"title":"Message","type":"object"},"QuoteMap":{"additionalProperties":{"properties":{"body":{"title":"body","description":"The body of the message","type":"string"},"quotes":{"$ref":"#/components/schemas/MessageId","title":"quotes","description":"The message ID of the message that was quoted. Null if no message was quoted."}},"required":["body"],"additionalProperties":false,"type":"object"},"title":"QuoteMap","type":"object"},"MessageInfoInteraction":{"properties":{"id":{"$ref":"#/components/schemas/ContactId","title":"MessageInfoInteraction.id","description":"The contact ID of the contact that interacted with the message."},"t":{"title":"MessageInfoInteraction.t","description":"The timestamp of the interaction. You have to x 1000 to use in a JS Date object.","type":"number"}},"required":["id","t"],"additionalProperties":false,"title":"MessageInfoInteraction","type":"object"},"MessageInfo":{"properties":{"deliveryRemaining":{"title":"MessageInfo.deliveryRemaining","type":"number"},"playedRemaining":{"title":"MessageInfo.playedRemaining","type":"number"},"readRemaining":{"title":"MessageInfo.readRemaining","type":"number"},"delivery":{"items":{"$ref":"#/components/schemas/MessageInfoInteraction","title":"MessageInfo.delivery.[]"},"title":"MessageInfo.delivery","type":"array"},"read":{"items":{"$ref":"#/components/schemas/MessageInfoInteraction","title":"MessageInfo.read.[]"},"title":"MessageInfo.read","type":"array"},"played":{"items":{"$ref":"#/components/schemas/MessageInfoInteraction","title":"MessageInfo.played.[]"},"title":"MessageInfo.played","type":"array"},"id":{"$ref":"#/components/schemas/MessageId","title":"MessageInfo.id","description":"The ID of the message"}},"required":["deliveryRemaining","playedRemaining","readRemaining","delivery","read","played","id"],"additionalProperties":false,"title":"MessageInfo","type":"object"},"CustomProduct":{"properties":{"name":{"title":"CustomProduct.name","description":"The main title of the product. E.g:\n`BAVARIA — 35 SPORTS CRUISER (2006)`","type":"string"},"description":{"title":"CustomProduct.description","description":"The description of the product. This shows right under the price so it is useful for subscriptions/rentals. E.g:\n\n`(per day)\\n\\nCome and have a fantastic sailing adventure aboard our boat. \\nShe is a Bavaria 35 sports cruiser and is powered by 2 economical Volvo D6’s with Bravo 2 outdrives as well as a bow thruster. This Makes maneuvering very easy. She can accommodate up to 8 people for day charters and for overnight charters she can accommodate 4 in comfort in 2 cabins.`","type":"string"},"priceAmount1000":{"title":"CustomProduct.priceAmount1000","description":"The price amount multiplied by 1000. For example, for something costing `825` units of currency:\n`825000`","type":"number"},"currency":{"title":"CustomProduct.currency","description":"The [**ISO 4217**](https://en.wikipedia.org/wiki/ISO_4217) 3 letter currency code. E.g (Swedish krona)\n`SEK`","type":"string"},"url":{"title":"CustomProduct.url","description":"The URL of the product.\n\nNOTE: At the moment, the URL DOES NOT WORK. It shows up for the recipient but they will not be able to click it. As a rememdy, it is added as a reply to the product message.","type":"string"}},"required":["name","description","priceAmount1000","currency"],"additionalProperties":false,"title":"CustomProduct","type":"object"},"CartItem":{"properties":{"id":{"title":"CartItem.id","description":"Product ID","type":"string"},"name":{"title":"CartItem.name","description":"Product name","type":"string"},"qty":{"title":"CartItem.qty","description":"Amount of this item in the cart","type":"number"},"thumbnailId":{"title":"CartItem.thumbnailId","type":"string"},"thumbnailUrl":{"title":"CartItem.thumbnailUrl","description":"URL to .enc file of the thumbnail. Just change the filetype to .jpg to view the thumbnail","type":"string"}},"required":["id","name","qty","thumbnailId","thumbnailUrl"],"additionalProperties":false,"title":"CartItem","type":"object"},"Product":{"properties":{"id":{"title":"Product.id","description":"Product ID","type":"string"},"isHidden":{"title":"Product.isHidden","description":"`true` if the product is hidden from public view.","type":"boolean"},"catalogWid":{"title":"Product.catalogWid","description":"The id of the catalog in which this product is located.","type":"string"},"url":{"title":"Product.url","description":"The URL of the product.","type":"string"},"name":{"title":"Product.name","description":"The name of the product.","type":"string"},"description":{"title":"Product.description","description":"The description of the product.","type":"string"},"availability":{"anyOf":[{"title":"Product.availability","type":"number"},{"title":"Product.availability","enum":["unknown"],"type":"string"}],"title":"Product.availability","description":"The availiable quantity of this product.","default":"\"unknown\"`"},"reviewStatus":{"enum":["NO_REVIEW","PENDING","REJECTED","APPROVED","OUTDATED"],"title":"Product.reviewStatus","description":"The review status of the product","type":"string"},"imageCdnUrl":{"title":"Product.imageCdnUrl","description":"The url of the main image of the product.\n\nNOTE: If downloading manually, the filetype must be changed to .jpg to view the image.","type":"string"},"imageCount":{"title":"Product.imageCount","description":"The number of images of the product.","type":"number"},"additionalImageCdnUrl":{"items":{"title":"Product.additionalImageCdnUrl.[]","type":"string"},"title":"Product.additionalImageCdnUrl","description":"Array of URLs of the other images of the product. Does not include the main image.","type":"array"},"priceAmount1000":{"title":"Product.priceAmount1000","description":"The price of the product in 1000 units.","type":"number"},"retailerId":{"title":"Product.retailerId","description":"The custom id of the product.","type":"string"},"t":{"title":"Product.t","description":"The timestamp when the product was created / 1000","type":"number"},"currency":{"title":"Product.currency","description":"The [**ISO 4217**](https://en.wikipedia.org/wiki/ISO_4217) 3 letter currency code. E.g (Swedish krona)\n`SEK`","type":"string"}},"required":["id","currency"],"additionalProperties":false,"title":"Product","type":"object"},"Order":{"properties":{"id":{"title":"Order.id","description":"Order ID","type":"string"},"createdAt":{"title":"Order.createdAt","description":"epoch ts divided by 1000","type":"number"},"currency":{"title":"Order.currency","description":"The [**ISO 4217**](https://en.wikipedia.org/wiki/ISO_4217) 3 letter currency code. E.g (Swedish krona)\n`SEK`","type":"string"},"products":{"items":{"$ref":"#/components/schemas/CartItem","title":"Order.products.[]"},"title":"Order.products","description":"An array of items in the cart","type":"array"},"sellerJid":{"title":"Order.sellerJid","type":"string"},"subtotal":{"title":"Order.subtotal"},"total":{"title":"Order.total"},"message":{"$ref":"#/components/schemas/Message","title":"Order.message","description":"The message object associated with the order. Only populated in `onOrder` callback."}},"required":["id","createdAt","currency","products","sellerJid","subtotal","total"],"additionalProperties":false,"title":"Order","type":"object"},"Reaction":{"properties":{"aggregateEmoji":{"title":"Reaction.aggregateEmoji","description":"The aggregate emoji used for the reaction.","type":"string"},"id":{"title":"Reaction.id","description":"The identifier of the reaction","type":"string"},"hasReactionByMe":{"title":"Reaction.hasReactionByMe","description":"If the reaction is also sent by the host account","type":"boolean"},"senders":{"items":{"$ref":"#/components/schemas/ReactionRecord","title":"Reaction.senders.[]"},"title":"Reaction.senders","description":"The senders of this spefcific reaction","type":"array"}},"required":["aggregateEmoji","id","hasReactionByMe","senders"],"additionalProperties":false,"title":"Reaction","description":"A reaction is identified the specific emoji.","type":"object"},"ReactionRecord":{"properties":{"ack":{"$ref":"#/components/schemas/MessageAck","title":"ReactionRecord.ack","description":"The acknowledgement of the reaction"},"id":{"title":"ReactionRecord.id","description":"The ID of the reaction","type":"string"},"msgKey":{"title":"ReactionRecord.msgKey","type":"string"},"parentMsgKey":{"title":"ReactionRecord.parentMsgKey","type":"string"},"orphan":{"title":"ReactionRecord.orphan","type":"number"},"reactionText":{"title":"ReactionRecord.reactionText","description":"The text of the reaction","type":"string"},"read":{"title":"ReactionRecord.read","description":"If the reaction has been read","type":"boolean"},"senderUserJid":{"$ref":"#/components/schemas/ContactId","title":"ReactionRecord.senderUserJid","description":"The ID of the reaction sender"},"timestamp":{"title":"ReactionRecord.timestamp","description":"The timestamp of the reaction","type":"number"}},"required":["ack","id","msgKey","parentMsgKey","orphan","reactionText","read","senderUserJid","timestamp"],"additionalProperties":false,"title":"ReactionRecord","description":"The specific reaction by a user","type":"object"},"ReactionEvent":{"properties":{"message":{"$ref":"#/components/schemas/Message","title":"ReactionEvent.message","description":"The message being reacted to"},"reactionByMe":{"$ref":"#/components/schemas/Reaction","title":"ReactionEvent.reactionByMe","description":"The reaction sent by the host account"},"reactions":{"items":{"$ref":"#/components/schemas/Reaction","title":"ReactionEvent.reactions.[]"},"title":"ReactionEvent.reactions","description":"An array of all reactions","type":"array"},"type":{"enum":["add","change"],"title":"ReactionEvent.type","description":"The type of the reaction event.","type":"string"}},"required":["message","reactionByMe","reactions","type"],"additionalProperties":false,"title":"ReactionEvent","description":"Emitted by onReaction","type":"object"},"SessionInfo":{"properties":{"WA_VERSION":{"title":"SessionInfo.WA_VERSION","type":"string"},"PAGE_UA":{"title":"SessionInfo.PAGE_UA","type":"string"},"WA_AUTOMATE_VERSION":{"title":"SessionInfo.WA_AUTOMATE_VERSION","type":"string"},"BROWSER_VERSION":{"title":"SessionInfo.BROWSER_VERSION","type":"string"},"LAUNCH_TIME_MS":{"title":"SessionInfo.LAUNCH_TIME_MS","type":"number"},"NUM":{"title":"SessionInfo.NUM","type":"string"},"OS":{"title":"SessionInfo.OS","type":"string"},"START_TS":{"title":"SessionInfo.START_TS","type":"number"},"PHONE_VERSION":{"title":"SessionInfo.PHONE_VERSION","type":"string"},"NUM_HASH":{"title":"SessionInfo.NUM_HASH","type":"string"},"PATCH_HASH":{"title":"SessionInfo.PATCH_HASH","type":"string"},"OW_KEY":{"title":"SessionInfo.OW_KEY","type":"string"},"INSTANCE_ID":{"title":"SessionInfo.INSTANCE_ID","type":"string"},"RAM_INFO":{"title":"SessionInfo.RAM_INFO","type":"string"},"PPTR_VERSION":{"title":"SessionInfo.PPTR_VERSION","type":"string"},"LATEST_VERSION":{"title":"SessionInfo.LATEST_VERSION","type":"boolean"},"CLI":{"title":"SessionInfo.CLI","type":"boolean"},"ACC_TYPE":{"enum":["PERSONAL","BUSINESS"],"title":"SessionInfo.ACC_TYPE","type":"string"}},"required":["WA_VERSION","PAGE_UA","WA_AUTOMATE_VERSION","BROWSER_VERSION"],"additionalProperties":false,"title":"SessionInfo","type":"object"},"HealthCheck":{"properties":{"queuedMessages":{"title":"HealthCheck.queuedMessages","description":"The number of messages queued up in the browser. Messages can start being queued up due to the web app awaiting a connection with the host device.\n\nHealthy: 0","type":"number"},"state":{"$ref":"#/components/schemas/STATE","title":"HealthCheck.state","description":"The state of the web app.\n\nHealthy: 'CONNECTED'"},"isPhoneDisconnected":{"title":"HealthCheck.isPhoneDisconnected","description":"Whether or not the \"Phone is disconnected\" message is showing within the web app.\n\nHealthy: `false`","type":"boolean"},"isHere":{"title":"HealthCheck.isHere","description":"Returns `true` if \"Use Here\" button is not detected\n\nHealthy: `true`","type":"boolean"},"wapiInjected":{"title":"HealthCheck.wapiInjected","description":"Returns `true` if the `WAPI` object is detected.\n\nHealthy: `true`","type":"boolean"},"online":{"title":"HealthCheck.online","description":"Result of `window.navigator.onLine`\n\nHealthy: `true`","type":"boolean"},"tryingToReachPhone":{"title":"HealthCheck.tryingToReachPhone","description":"Returns `true` if \"trying to reach phone\" dialog is detected\n\nHealthy: `false`","type":"boolean"},"retryingIn":{"title":"HealthCheck.retryingIn","description":"Returns the number of seconds the \"Retrying in ...\" dialog is indicating. If the dialog is not showing, it will return `0`.\n\nHealthy: `0`","type":"number"},"batteryLow":{"title":"HealthCheck.batteryLow","description":"Returns `true` if \"Phone battery low\" message is detected\n\nHealthy: `false`","type":"boolean"}},"additionalProperties":false,"title":"HealthCheck","type":"object"},"expressMiddleware":{"title":"expressMiddleware"},"cliFlags":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"boolean"}]},"title":"cliFlags","type":"object"},"ClientMethods":{"title":"ClientMethods","description":"A convenience type that includes all keys from the `Client`."},"ConfigLogTransport":{"properties":{"type":{"enum":["syslog","console","file","ev"],"title":"ConfigLogTransport.type","description":"The type of winston transport. At the moment only `file`, `console`, `ev` and `syslog` are supported.","type":"string"},"options":{"title":"ConfigLogTransport.options","description":"The options for the transport. Generally only required for syslog but you can use this to override default options for other types of transports."},"done":{"title":"ConfigLogTransport.done","description":"If the transport has already been added to the logger. The logging set up command handles this for you.","type":"boolean"}},"required":["type"],"additionalProperties":false,"title":"ConfigLogTransport","type":"object"},"CollectorOptions":{"properties":{"maxProcessed":{"title":"CollectorOptions.maxProcessed","description":"The maximum amount of items to process","type":"number"},"max":{"title":"CollectorOptions.max","description":"The maximum amount of items to collect","type":"number"},"time":{"title":"CollectorOptions.time","description":"Max time to wait for items in milliseconds","type":"number"},"idle":{"title":"CollectorOptions.idle","description":"Max time allowed idle","type":"number"},"dispose":{"title":"CollectorOptions.dispose","description":"Whether to dispose data when it's deleted","type":"boolean"}},"additionalProperties":false,"title":"CollectorOptions","description":"Options to be applied to the collector.","type":"object"},"AwaitMessagesOptions":{"properties":{"errors":{"items":{"title":"AwaitMessagesOptions.errors.[]","type":"string"},"title":"AwaitMessagesOptions.errors","description":"An array of \"reasons\" that would result in the awaitMessages command to throw an error.","type":"array"}},"additionalProperties":false,"title":"AwaitMessagesOptions","type":"object"},"CurrentDialogProps":{"additionalProperties":{},"title":"CurrentDialogProps","type":"object"},"DialogState":{"properties":{"currentStep":{"title":"DialogState.currentStep","type":"number"},"currentProps":{"title":"DialogState.currentProps"},"lastInput":{"title":"DialogState.lastInput"},"isComplete":{"title":"DialogState.isComplete","type":"boolean"},"isError":{"title":"DialogState.isError","type":"boolean"},"errorMessage":{"title":"DialogState.errorMessage","type":"string"}},"required":["currentStep","currentProps","lastInput","isComplete","isError","errorMessage"],"additionalProperties":false,"title":"DialogState","type":"object"},"DialogTemplate":{"properties":{"\"dialogId\"":{"title":"DialogTemplate.\"dialogId\"","type":"string"},"\"privateOnly\"":{"title":"DialogTemplate.\"privateOnly\"","type":"boolean"},"\"identifier\"":{"title":"DialogTemplate.\"identifier\"","type":"string"},"\"successMessage\"":{"title":"DialogTemplate.\"successMessage\"","type":"string"},"\"startMessage\"":{"title":"DialogTemplate.\"startMessage\"","type":"string"},"\"properties\"":{"additionalProperties":{"$ref":"#/components/schemas/DialogProperty"},"title":"DialogTemplate.\"properties\"","type":"object"}},"required":["\"dialogId\"","\"privateOnly\"","\"identifier\"","\"successMessage\"","\"startMessage\"","\"properties\""],"additionalProperties":false,"title":"DialogTemplate","type":"object"},"CheckFunction":{"title":"CheckFunction"},"DialogProperty":{"properties":{"\"order\"":{"title":"DialogProperty.\"order\"","type":"number"},"\"key\"":{"title":"DialogProperty.\"key\"","type":"string"},"\"prompt\"":{"title":"DialogProperty.\"prompt\"","type":"string"},"\"type\"":{"title":"DialogProperty.\"type\"","type":"string"},"\"skipCondition\"":{"$ref":"#/components/schemas/CheckFunction","title":"DialogProperty.\"skipCondition\""},"\"options\"":{"anyOf":[{"items":{"$ref":"#/components/schemas/DialogButtons","title":"DialogProperty.\"options\".[]"},"title":"DialogProperty.\"options\".[]","type":"array"},{"items":{"$ref":"#/components/schemas/DialogListMessageSection","title":"DialogProperty.\"options\".[]"},"title":"DialogProperty.\"options\".[]","type":"array"}],"title":"DialogProperty.\"options\""},"\"validation\"":{"items":{"$ref":"#/components/schemas/DialogValidation","title":"DialogProperty.\"validation\".[]"},"title":"DialogProperty.\"validation\"","type":"array"}},"required":["\"order\"","\"key\"","\"prompt\"","\"type\"","\"validation\""],"additionalProperties":false,"title":"DialogProperty","type":"object"},"DialogButtons":{"properties":{"label":{"title":"DialogButtons.label","type":"string"},"value":{"title":"DialogButtons.value","type":"string"}},"required":["label","value"],"additionalProperties":false,"title":"DialogButtons","type":"object"},"DialogListMessageSection":{"properties":{"title":{"title":"DialogListMessageSection.title","type":"string"},"rows":{"items":{"$ref":"#/components/schemas/DialogListMessageRow","title":"DialogListMessageSection.rows.[]"},"title":"DialogListMessageSection.rows","type":"array"}},"required":["title","rows"],"additionalProperties":false,"title":"DialogListMessageSection","type":"object"},"DialogListMessageRow":{"properties":{"title":{"title":"DialogListMessageRow.title","type":"string"},"description":{"title":"DialogListMessageRow.description","type":"string"},"value":{"title":"DialogListMessageRow.value","type":"string"}},"required":["title","description","value"],"additionalProperties":false,"title":"DialogListMessageRow","type":"object"},"DialogValidation":{"properties":{"\"type\"":{"$ref":"#/components/schemas/ValidationType","title":"DialogValidation.\"type\""},"\"value\"":{"anyOf":[{"title":"DialogValidation.\"value\"","type":"string"},{"$ref":"#/components/schemas/CheckFunction","title":"DialogValidation.\"value\""}],"title":"DialogValidation.\"value\""},"\"errorMessage\"":{"title":"DialogValidation.\"errorMessage\"","type":"string"}},"required":["\"type\"","\"value\"","\"errorMessage\""],"additionalProperties":false,"title":"DialogValidation","type":"object"}}
|
1
|
+
{"ChatServer":{"title":"ChatServer","description":"The suffix used to identify a non-group chat id","enum":["c.us"],"type":"string"},"GroupChatServer":{"title":"GroupChatServer","description":"The suffix used to identify a group chat id","enum":["g.us"],"type":"string"},"WaServers":{"anyOf":[{"$ref":"#/components/schemas/ChatServer","title":"WaServers"},{"$ref":"#/components/schemas/GroupChatServer","title":"WaServers"}],"title":"WaServers","description":"A type alias for all available \"servers\""},"CountryCode":{"enum":[1,7,20,27,30,31,32,33,34,36,39,40,41,43,44,45,46,47,48,49,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,81,82,84,86,90,91,92,93,94,95,98,211,212,213,216,218,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,248,249,250,251,252,253,254,255,256,257,258,260,261,262,263,264,265,266,267,268,269,290,291,297,298,299,350,351,352,353,354,355,356,357,358,359,370,371,372,373,374,375,376,377,378,380,381,382,383,385,386,387,389,420,421,423,500,501,502,503,504,505,506,507,508,509,590,591,592,593,594,595,596,597,598,599,670,672,673,674,675,676,677,678,679,680,681,682,683,685,686,687,688,689,690,691,692,850,852,853,855,856,880,886,960,961,962,963,964,965,966,967,968,970,971,972,973,974,975,976,977,992,993,994,995,996,998],"title":"CountryCode","description":"Type alias representing all available country codes","type":"number"},"AccountNumber":{"title":"AccountNumber","description":"The account number. It is made up of a country code and then the local number without the preceeding 0. For example, if a UK (+44) wa account is linked to the number 07123456789 then the account number will be 447123456789."},"GroupChatId":{"anyOf":[],"title":"GroupChatId","description":"A group chat ends with `@g.us` and usually has two parts, the timestamp of when it was created, and the user id of the number that created the group. For example `[creator number]-[timestamp]@g.us`\n\nExample:\n\n`\"447123456789-1445627445@g.us\"`"},"ContactId":{"title":"ContactId","description":"A contact id ends with `@c.us` and only contains the number of the contact. For example, if the country code of a contact is `44` and their number is `7123456789` then the contact id would be `447123456789@c.us`\n\nExample:\n\n`\"447123456789@c.us\"`"},"ChatId":{"anyOf":[{"$ref":"#/components/schemas/ContactId","title":"ChatId"},{"$ref":"#/components/schemas/GroupChatId","title":"ChatId"}],"title":"ChatId","description":"A chat id ends with `@c.us` or `@g.us` for group chats.\n\nExample:\n\nA group chat: `\"447123456789-1445627445@g.us\"`\nA group chat: `\"447123456789@g.us\"`"},"MessageId":{"title":"MessageId","description":"The id of a message. The format is `[boolean]_[ChatId]_[random character string]`\n\nExample:\n\n`\"false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB\"`"},"Content":{"title":"Content","description":"This is a generic type alias for the content of a message\n\nExample:\n\n`\"hello!\"`"},"NonSerializedId":{"properties":{"server":{"$ref":"#/components/schemas/WaServers","title":"NonSerializedId.server"},"user":{"$ref":"#/components/schemas/AccountNumber","title":"NonSerializedId.user"},"_serialized":{"$ref":"#/components/schemas/ContactId","title":"NonSerializedId._serialized"}},"required":["server","user","_serialized"],"additionalProperties":false,"title":"NonSerializedId","type":"object"},"DataURL":{"title":"DataURL","description":"Data URLs, URLs prefixed with the data: scheme, allow content creators to embed small files inline in documents. They were formerly known as \"data URIs\" until that name was retired by the WHATWG.\n\n\nData URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself:\n\nExample:\n`\"data:[<mediatype>][;base64],<data>\"`\n\nLearn more here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs"},"Base64":{"title":"Base64","description":"Base64 is basically a file encoded as a string.\n\nBase64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. The term Base64 originates from a specific MIME content transfer encoding.\n\nLearn more here: https://developer.mozilla.org/en-US/docs/Glossary/Base64"},"FilePath":{"title":"FilePath","description":"The relative or absolute path of a file\n\nLearn more here: https://www.w3schools.com/html/html_filepaths.asp"},"Button":{"properties":{"id":{"title":"Button.id","type":"string"},"text":{"title":"Button.text","type":"string"}},"required":["id","text"],"additionalProperties":false,"title":"Button","type":"object"},"AdvancedButton":{"properties":{"id":{"title":"AdvancedButton.id","type":"string"},"text":{"title":"AdvancedButton.text","type":"string"},"url":{"title":"AdvancedButton.url","type":"string"},"number":{"title":"AdvancedButton.number","type":"string"}},"required":["text"],"additionalProperties":false,"title":"AdvancedButton","type":"object"},"Row":{"properties":{"title":{"title":"Row.title","type":"string"},"description":{"title":"Row.description","type":"string"},"rowId":{"title":"Row.rowId","type":"string"}},"required":["title","description","rowId"],"additionalProperties":false,"title":"Row","type":"object"},"Section":{"properties":{"title":{"title":"Section.title","type":"string"},"rows":{"items":{"$ref":"#/components/schemas/Row","title":"Section.rows.[]"},"title":"Section.rows","type":"array"}},"required":["title","rows"],"additionalProperties":false,"title":"Section","type":"object"},"LocationButtonBody":{"properties":{"lat":{"title":"LocationButtonBody.lat","type":"number"},"lng":{"title":"LocationButtonBody.lng","type":"number"},"caption":{"title":"LocationButtonBody.caption","type":"string"}},"required":["lat","lng","caption"],"additionalProperties":false,"title":"LocationButtonBody","type":"object"},"Call":{"properties":{"id":{"title":"Call.id","description":"The id of the call","type":"string"},"peerJid":{"$ref":"#/components/schemas/ContactId","title":"Call.peerJid","description":"The id of the account calling"},"offerTime":{"title":"Call.offerTime","description":"The epoch timestamp of the call. You will have to multiply this by 1000 to get the actual epoch timestamp","type":"number"},"isVideo":{"title":"Call.isVideo","description":"Whether or not the call is a video call","type":"boolean"},"isGroup":{"title":"Call.isGroup","description":"Whether or not the call is a group call","type":"boolean"},"canHandleLocally":{"title":"Call.canHandleLocally","type":"boolean"},"outgoing":{"title":"Call.outgoing","description":"The direction of the call.","type":"boolean"},"webClientShouldHandle":{"title":"Call.webClientShouldHandle","type":"boolean"},"participants":{"items":{"$ref":"#/components/schemas/ContactId","title":"Call.participants.[]"},"title":"Call.participants","description":"The other participants on a group call","type":"array"}},"required":["id","peerJid","offerTime","isVideo","isGroup","canHandleLocally","outgoing","webClientShouldHandle","participants"],"additionalProperties":false,"title":"Call","type":"object"},"BaseChat":{"properties":{"archive":{"title":"BaseChat.archive","type":"boolean"},"changeNumberNewJid":{"title":"BaseChat.changeNumberNewJid"},"changeNumberOldJid":{"title":"BaseChat.changeNumberOldJid"},"contact":{"$ref":"#/components/schemas/Contact","title":"BaseChat.contact","description":"The contact related to this chat"},"groupMetadata":{"$ref":"#/components/schemas/GroupMetadata","title":"BaseChat.groupMetadata","description":"Group metadata for this chat"},"isAnnounceGrpRestrict":{"title":"BaseChat.isAnnounceGrpRestrict","description":"If the chat is a group chat is restricted"},"formattedTitle":{"title":"BaseChat.formattedTitle","description":"The title of the chat","type":"string"},"canSend":{"title":"BaseChat.canSend","description":"Whether your host account is able to send messages to this chat","type":"boolean"},"isReadOnly":{"title":"BaseChat.isReadOnly","description":"Whether the chat is a group chat and the group is restricted","type":"boolean"},"kind":{"title":"BaseChat.kind","type":"string"},"labels":{"title":"BaseChat.labels","description":"The labels attached to this chat."},"lastReceivedKey":{"title":"BaseChat.lastReceivedKey","description":"The ID of the last message received in this chat"},"modifyTag":{"title":"BaseChat.modifyTag","type":"number"},"msgs":{"title":"BaseChat.msgs","description":"The messages in the chat"},"muteExpiration":{"title":"BaseChat.muteExpiration","description":"The expiration timestamp of the chat mute","type":"number"},"name":{"title":"BaseChat.name","description":"The name of the chat","type":"string"},"notSpam":{"title":"BaseChat.notSpam","description":"Whether the chat is marked as spam","type":"boolean"},"pendingMsgs":{"title":"BaseChat.pendingMsgs","description":"Messages that are pending to be sent","type":"boolean"},"pin":{"title":"BaseChat.pin","description":"Whether the chat is pinned","type":"number"},"presence":{"title":"BaseChat.presence","description":"The presence state of the chat participant"},"t":{"title":"BaseChat.t","description":"The timestamp of the last interaction in the chat","type":"number"},"unreadCount":{"title":"BaseChat.unreadCount","description":"The number of undread messages in this chat","type":"number"},"ack":{"title":"BaseChat.ack"},"isOnline":{"title":"BaseChat.isOnline","description":"@deprecated This is unreliable. Use the method [`isChatOnline`](https://open-wa.github.io/wa-automate-nodejs/classes/client.html#ischatonline) instead."},"lastSeen":{"title":"BaseChat.lastSeen","description":"@deprecated This is unreliable. Use the method [`getLastSeen`](https://open-wa.github.io/wa-automate-nodejs/classes/client.html#getlastseen) instead."}},"required":["archive","changeNumberNewJid","changeNumberOldJid","contact","groupMetadata","isAnnounceGrpRestrict","isReadOnly","kind","labels","lastReceivedKey","modifyTag","msgs","muteExpiration","name","notSpam","pendingMsgs","pin","presence","t","unreadCount"],"additionalProperties":false,"title":"BaseChat","type":"object"},"SingleChat":{"properties":{"id":{"$ref":"#/components/schemas/ContactId","title":"SingleChat.id","description":"The id of the chat"},"isGroup":{"title":"SingleChat.isGroup","description":"Whether the chat is a group chat","enum":[false],"type":"boolean"}},"required":["id","isGroup"],"additionalProperties":false,"title":"SingleChat","type":"object"},"GroupChat":{"properties":{"id":{"$ref":"#/components/schemas/GroupChatId","title":"GroupChat.id","description":"The id of the chat"},"isGroup":{"title":"GroupChat.isGroup","description":"Whether the chat is a group chat","enum":[true],"type":"boolean"}},"required":["id","isGroup"],"additionalProperties":false,"title":"GroupChat","type":"object"},"Chat":{"anyOf":[{"$ref":"#/components/schemas/SingleChat","title":"Chat"},{"$ref":"#/components/schemas/GroupChat","title":"Chat"}],"title":"Chat"},"LiveLocationChangedEvent":{"properties":{"id":{"title":"LiveLocationChangedEvent.id","type":"string"},"lat":{"title":"LiveLocationChangedEvent.lat","type":"number"},"lng":{"title":"LiveLocationChangedEvent.lng","type":"number"},"speed":{"title":"LiveLocationChangedEvent.speed","type":"number"},"lastUpdated":{"title":"LiveLocationChangedEvent.lastUpdated","type":"number"},"accuracy":{"title":"LiveLocationChangedEvent.accuracy","type":"number"},"degrees":{"title":"LiveLocationChangedEvent.degrees"},"msgId":{"title":"LiveLocationChangedEvent.msgId","description":"The message id that was sent when the liveLocation session was started.","type":"string"}},"required":["id","lat","lng","speed","lastUpdated","accuracy","degrees"],"additionalProperties":false,"title":"LiveLocationChangedEvent","type":"object"},"GroupChatCreationParticipantAddResponse":{"properties":{"code":{"enum":[200,400,403],"title":"GroupChatCreationParticipantAddResponse.code","description":"The resultant status code for adding the participant.\n\n200 if the participant was added successfully during the creation of the group.\n\n403 if the participant does not allow their account to be added to group chats. If you receive a 403, you will also get an `invite_code` and `invite_code_exp`","type":"number"},"invite_code":{"title":"GroupChatCreationParticipantAddResponse.invite_code","description":"If the participant is not allowed to be added to group chats due to their privacy settings, you will receive an `invite_code` which you can send to them via a text.","type":"string"},"invite_code_exp":{"title":"GroupChatCreationParticipantAddResponse.invite_code_exp","description":"The expiry ts of the invite_code. It is a number wrapped in a string, in order to get the proper time you can use this:\n\n```javascript\n new Date(Number(invite_code_exp)*1000)\n```","type":"string"}},"required":["code"],"additionalProperties":false,"title":"GroupChatCreationParticipantAddResponse","type":"object"},"GroupChatCreationResponse":{"properties":{"status":{"enum":[200,400],"title":"GroupChatCreationResponse.status","description":"The resultant status code of the group chat creation.\n\n200 if the group was created successfully.\n\n400 if the initial participant does not exist","type":"number"},"gid":{"$ref":"#/components/schemas/GroupChatId","title":"GroupChatCreationResponse.gid","description":"The group chat id"},"participants":{"items":{"properties":{"ContactId":{"$ref":"#/components/schemas/GroupChatCreationParticipantAddResponse","title":"GroupChatCreationResponse.participants.[].ContactId"}},"additionalProperties":false,"title":"GroupChatCreationResponse.participants.[]","type":"object"},"title":"GroupChatCreationResponse.participants","description":"The initial requested participants and their corresponding add responses","type":"array"}},"required":["status","gid","participants"],"additionalProperties":false,"title":"GroupChatCreationResponse","type":"object"},"EphemeralDuration":{"enum":[86400,604800,7776000],"title":"EphemeralDuration","description":"Ephemeral duration can be 1 day, 7 days or 90 days. The default is 1 day.","type":"number"},"SessionData":{"properties":{"WABrowserId":{"title":"SessionData.WABrowserId","type":"string"},"WASecretBundle":{"title":"SessionData.WASecretBundle","type":"string"},"WAToken1":{"title":"SessionData.WAToken1","type":"string"},"WAToken2":{"title":"SessionData.WAToken2","type":"string"}},"additionalProperties":false,"title":"SessionData","type":"object"},"DevTools":{"properties":{"user":{"title":"DevTools.user","description":"Username for devtools","type":"string"},"pass":{"title":"DevTools.pass","description":"Password for devtools","type":"string"}},"required":["user","pass"],"additionalProperties":false,"title":"DevTools","type":"object"},"EventPayload":{"properties":{"ts":{"title":"EventPayload.ts","type":"number"},"sessionId":{"title":"EventPayload.sessionId","type":"string"},"id":{"title":"EventPayload.id","type":"string"},"event":{"$ref":"#/components/schemas/SimpleListener","title":"EventPayload.event"},"data":{"title":"EventPayload.data"}},"required":["ts","sessionId","id","event","data"],"additionalProperties":{},"title":"EventPayload","type":"object"},"Webhook":{"properties":{"url":{"title":"Webhook.url","description":"The endpoint to send (POST) the event to.","type":"string"},"requestConfig":{"$ref":"#/components/schemas/AxiosRequestConfig","title":"Webhook.requestConfig","description":"The optional AxiosRequestConfig to use for firing the webhook event. This can be useful if you want to add some authentication when POSTing data to your server.\n\nFor example, if your webhook requires the username `admin` and password `1234` for authentication, you can set the requestConfig to:\n```\n{\n auth: {\n username: \"admin\",\n password: \"1234\",\n }\n}\n```\n\nPlease note, for security reasons, this is not returned when listing webhooks however it is returned when registering a webhook for verification purposes."},"id":{"title":"Webhook.id","description":"The ID of the given webhook setup. Use this ID with [[removeWebhook]]","type":"string"},"events":{"items":{"$ref":"#/components/schemas/SimpleListener","title":"Webhook.events.[]"},"title":"Webhook.events","description":"An array of events that are registered to be sent to this webhook.","type":"array"},"ts":{"title":"Webhook.ts","description":"Time when the webhook was registered in epoch time","type":"number"}},"required":["url","id","events","ts"],"additionalProperties":false,"title":"Webhook","type":"object"},"ProxyServerCredentials":{"properties":{"protocol":{"title":"ProxyServerCredentials.protocol","description":"The protocol on which the proxy is running. E.g `http`, `https`, `socks4` or `socks5`. This is optional and can be automatically determined from the address.","type":"string"},"address":{"title":"ProxyServerCredentials.address","description":"Proxy Server address. This can include the port e.g '127.0.0.1:5005'","type":"string"},"username":{"title":"ProxyServerCredentials.username","description":"Username for Proxy Server authentication","type":"string"},"password":{"title":"ProxyServerCredentials.password","description":"Password for Proxy Server authentication","type":"string"}},"required":["address","username","password"],"additionalProperties":false,"title":"ProxyServerCredentials","type":"object"},"ConfigObject":{"properties":{"sessionData":{"anyOf":[{"$ref":"#/components/schemas/SessionData","title":"ConfigObject.sessionData"},{"$ref":"#/components/schemas/Base64","title":"ConfigObject.sessionData"}],"title":"ConfigObject.sessionData","description":"The authentication object (as a JSON object or a base64 encoded string) that is required to migrate a session from one instance to another or to just restart an existing instance.\nThis sessionData is provided in a generated JSON file (it's a json file but contains the JSON data as a base64 encoded string) upon QR scan or an event.\n\nYou can capture the event like so:\n```javascript\nimport {create, ev} from '@open-wa/wa-automate';\n\n ev.on('sessionData.**', async (sessionData, sessionId) =>{\n console.log(sessionId, sessionData)\n })\n\n//or as base64 encoded string\n\n ev.on('sessionDataBase64.**', async (sessionDatastring, sessionId) =>{\n console.log(sessionId, sessionDatastring)\n })\n```\n NOTE: You can set sessionData as an evironmental variable also! The variable name has to be [sessionId (default = 'session) in all caps]_DATA_JSON. You have to make sure to surround your session data with single quotes to maintain the formatting.\n\nFor example:\n\nsessionId = 'session'\n\nTo set env var:\n```bash\n export SESSION_DATA_JSON=`...`\n```\nwhere ... is copied from session.data.json this will be a string most likley starting in `ey...` and ending with `==`\n\nSetting the sessionData in the environmental variable will override the sessionData object in the config."},"browserWSEndpoint":{"title":"ConfigObject.browserWSEndpoint","description":"ALPHA EXPERIMENTAL FEATURE! DO NOT USE IN PRODUCTION, REQUIRES TESTING.\n\nLearn more:\n\nhttps://pptr.dev/#?product=Puppeteer&version=v3.1.0&show=api-puppeteerconnectoptions\n\nhttps://medium.com/@jaredpotter1/connecting-puppeteer-to-existing-chrome-window-8a10828149e0","type":"string"},"useStealth":{"title":"ConfigObject.useStealth","description":"This flag allows you to disable or enable the use of the puppeteer stealth plugin. It is a good idea to use it, however it can cause issues sometimes. Set this to false if you are experiencing `browser.setMaxListeneres` issue. For now the default for this is false.","default":"`false`","type":"boolean"},"sessionDataPath":{"title":"ConfigObject.sessionDataPath","description":"The path relative to the current working directory (i.e where you run the command to start your process). This will be used to store and read your `.data.json` files. defualt to ''","type":"string"},"bypassCSP":{"title":"ConfigObject.bypassCSP","description":"Disable cors see: https://pptr.dev/#?product=Puppeteer&version=v3.0.4&show=api-pagesetbypasscspenabled If you are having an issue with sending media try to set this to true. Otherwise leave it set to false.","default":"`false`","type":"boolean"},"chromiumArgs":{"items":{"title":"ConfigObject.chromiumArgs.[]","type":"string"},"title":"ConfigObject.chromiumArgs","description":"This allows you to pass any array of custom chrome/chromium argument strings to the puppeteer instance.\nYou can find all possible arguements [here](https://peter.sh/experiments/chromium-command-line-switches/).","type":"array"},"skipBrokenMethodsCheck":{"title":"ConfigObject.skipBrokenMethodsCheck","description":"If set to true, skipBrokenMethodsCheck will bypass the health check before startup. It is highly suggested to not set this to true.","default":"`false`","type":"boolean"},"skipUpdateCheck":{"title":"ConfigObject.skipUpdateCheck","description":"If set to true, `skipUpdateCheck` will bypass the latest version check. This saves some time on boot (around 150 ms).","default":"`false`","type":"boolean"},"sessionId":{"title":"ConfigObject.sessionId","description":"This is the name of the session. You have to make sure that this is unique for every session.","default":"`session`","type":"string"},"licenseKey":{"$ref":"#/components/schemas/LicenseKey","title":"ConfigObject.licenseKey","description":"In order to unlock the functionality to send texts to unknown numbers, you need a License key.\nOne License Key is valid for each number. Each License Key starts from £5 per month.\n\nPlease check README for instructions on how to get a license key.\n\nNotes:\n1. You can change the number assigned to that License Key at any time, just message me the new number on the private discord channel.\n2. In order to cancel your License Key, simply stop your membership."},"customUserAgent":{"title":"ConfigObject.customUserAgent","description":"You may set a custom user agent. However, due to recent developments, this is not really neccessary any more.","type":"string"},"devtools":{"anyOf":[{"title":"ConfigObject.devtools","type":"boolean"},{"$ref":"#/components/schemas/DevTools","title":"ConfigObject.devtools"}],"title":"ConfigObject.devtools","description":"You can enable remote devtools by setting this to trye. If you set this to true there will be security on the devtools url.\nIf you want, you can also pass a username & password."},"blockCrashLogs":{"title":"ConfigObject.blockCrashLogs","description":"Setting this to true will block any network calls to crash log servers. This should keep anything you do under the radar.","default":"`true`","type":"boolean"},"cacheEnabled":{"title":"ConfigObject.cacheEnabled","description":"Setting this to false turn off the cache. This may improve memory usage.","default":"`false`","type":"boolean"},"browserRevision":{"title":"ConfigObject.browserRevision","description":"This is the specific browser revision to be downlaoded and used. You can find browser revision strings here: http://omahaproxy.appspot.com/\nLearn more about it here: https://github.com/puppeteer/puppeteer/blob/master/docs/api.md#class-browserfetcher\nIf you're having trouble with sending images, try '737027'.\nIf you go too far back things will start breaking !!!!!!\nNOTE: THIS WILL OVERRIDE useChrome and executablePath. ONLY USE THIS IF YOU KNOW WHAT YOU ARE DOING.","type":"string"},"throwErrorOnTosBlock":{"title":"ConfigObject.throwErrorOnTosBlock","description":"Setting this to true will throw an error if a session is not able to get a QR code or is unable to restart a session.","type":"boolean"},"headless":{"title":"ConfigObject.headless","description":"By default, all instances of @open-wa/wa-automate are headless (i.e you don't see a chrome window open), you can set this to false to show the chrome/chromium window.","default":"`true`","type":"boolean"},"autoRefresh":{"title":"ConfigObject.autoRefresh","description":"@deprecated THIS IS LOCKED TO `true` AND CANNOT BE TURNED OFF. PLEASE SEE [[authTimeout]]\n\nSetting this to true will result in new QR codes being generated if the end user takes too long to scan the QR code.","default":"`true`","type":"boolean"},"qrRefreshS":{"title":"ConfigObject.qrRefreshS","description":"@deprecated This now has no effect\n\nThis determines the interval at which to refresh the QR code. By default, WA updates the qr code every 18-19 seconds so make sure this value is set to UNDER 18 seconds!!","type":"number"},"qrTimeout":{"title":"ConfigObject.qrTimeout","description":"This determines how long the process should wait for a QR code to be scanned before killing the process entirely. To have the system wait continuously, set this to `0`.","default":"60","type":"number"},"executablePath":{"title":"ConfigObject.executablePath","description":"Some features, like video upload, do not work without a chrome instance. Set this to the path of your chrome instance or you can use `useChrome:true` to automatically detect a chrome instance for you. Please note, this overrides `useChrome`.","type":"string"},"useChrome":{"title":"ConfigObject.useChrome","description":"If true, the program will automatically try to detect the instance of chorme on the machine. Please note this DOES NOT override executablePath.","default":"`false`","type":"boolean"},"proxyServerCredentials":{"$ref":"#/components/schemas/ProxyServerCredentials","title":"ConfigObject.proxyServerCredentials","description":"If sent, adds a call to waPage.authenticate with those credentials. Set `corsFix` to true if using a proxy results in CORS errors."},"qrLogSkip":{"title":"ConfigObject.qrLogSkip","description":"If true, skips logging the QR Code to the console.","default":"`false`","type":"boolean"},"restartOnCrash":{"title":"ConfigObject.restartOnCrash","description":"If set, the program will try to recreate itself when the page crashes. You have to pass the function that you want called upon restart. Please note that when the page crashes you may miss some messages.\nE.g:\n```javascript\nconst start = async (client: Client) => {...}\ncreate({\n...\nrestartOnCrash: start,\n...\n})\n```"},"disableSpins":{"title":"ConfigObject.disableSpins","description":"Setting this to true will simplify logs for use within docker containers by disabling spins (will still print raw messages).","default":"`false`","type":"boolean"},"logConsole":{"title":"ConfigObject.logConsole","description":"If true, this will log any console messages from the browser.","default":"`false`","type":"boolean"},"logConsoleErrors":{"title":"ConfigObject.logConsoleErrors","description":"If true, this will log any error messages from the browser instance","default":"`false`","type":"boolean"},"authTimeout":{"title":"ConfigObject.authTimeout","description":"This determines how long the process should wait for the session authentication. If exceeded, checks if phone is out of reach (turned of or without internet connection) and throws an error. It does not relate to the amount of time spent waiting for a qr code scan (see [[qrTimeout]]). To have the system wait continuously, set this to `0`.","default":"`60`","type":"number"},"killProcessOnBrowserClose":{"title":"ConfigObject.killProcessOnBrowserClose","description":"Setting this to `true` will kill the whole process when the client is disconnected from the page or if the browser is closed.","default":"`false`","type":"boolean"},"safeMode":{"title":"ConfigObject.safeMode","description":"If true, client will check if the page is valid before each command. If page is not valid, it will throw an error.","default":"`false`","type":"boolean"},"skipSessionSave":{"title":"ConfigObject.skipSessionSave","description":"If true, the process will not save a data.json file. This means that sessions will not be saved and you will need to pass sessionData as a config param or create the session data.json file yourself","default":"`false`","type":"boolean"},"popup":{"title":"ConfigObject.popup","description":"If true, the process will open a browser window where you will see basic event logs and QR codes to authenticate the session. Usually it will open on port 3000. It can also be set to a preferred port.\n\nYou can also get the QR code png at (if localhost and port 3000):\n\n`http://localhost:3000/qr`\n\nor if you have multiple session:\n\n `http://localhost:3000/qr?sessionId=[sessionId]`","default":"`false | 3000`","anyOf":[{"type":"boolean"},{"type":"number"}]},"qrPopUpOnly":{"title":"ConfigObject.qrPopUpOnly","description":"This needs to be used in conjuction with `popup`, if `popup` is not true or a number (representing a desired port) then this will not work.\n\nSetting this to true will make sure that only the qr code png is served via the web server. This is useful if you do not need the whole status page.\n\nAs mentioned in [popup](#popup), the url for the qr code is `http://localhost:3000/qr` if the port is 3000.","type":"boolean"},"inDocker":{"title":"ConfigObject.inDocker","description":"If true, the process will try infer as many config variables as possible from the environment variables. The format of the variables are as below:\n```\nsessionData ==> WA_SESSION_DATA\nsessionDataPath ==> WA_SESSION_DATA_PATH\nsessionId ==> WA_SESSION_ID\ncustomUserAgent ==> WA_CUSTOM_USER_AGENT\nblockCrashLogs ==> WA_BLOCK_CRASH_LOGS\nblockAssets ==> WA_BLOCK_ASSETS\ncorsFix ==> WA_CORS_FIX\ncacheEnabled ==> WA_CACHE_ENABLED\nheadless ==> WA_HEADLESS\nqrTimeout ==> WA_QR_TIMEOUT\nuseChrome ==> WA_USE_CHROME\nqrLogSkip ==> WA_QR_LOG_SKIP\ndisableSpins ==> WA_DISABLE_SPINS\nlogConsole ==> WA_LOG_CONSOLE\nlogConsoleErrors==> WA_LOG_CONSOLE_ERRORS\nauthTimeout ==> WA_AUTH_TIMEOUT\nsafeMode ==> WA_SAFE_MODE\nskipSessionSave ==> WA_SKIP_SESSION_SAVE\npopup ==> WA_POPUP\nlicensekey ==> WA_LICENSE_KEY\n```","default":"`false`","type":"boolean"},"qrQuality":{"$ref":"#/components/schemas/QRQuality","title":"ConfigObject.qrQuality","description":"The output quality of the qr code during authentication. This can be any increment of 0.1 from 0.1 to 1.0.","default":"`1.0`"},"qrFormat":{"$ref":"#/components/schemas/QRFormat","title":"ConfigObject.qrFormat","description":"The output format of the qr code. `png`, `jpeg` or `webm`.","default":"`png`"},"hostNotificationLang":{"$ref":"#/components/schemas/NotificationLanguage","title":"ConfigObject.hostNotificationLang","description":"The language of the host notification. See: https://github.com/open-wa/wa-automate-nodejs/issues/709#issuecomment-673419088"},"blockAssets":{"title":"ConfigObject.blockAssets","description":"Setting this to true will block all assets from loading onto the page. This may result in some load time improvements but also increases instability.","default":"`false`","type":"boolean"},"keepUpdated":{"title":"ConfigObject.keepUpdated","description":"[ALPHA FEATURE - ONLY IMPLEMENTED FOR TESTING - DO NOT USE IN PRODUCTION YET]\nSetting this to true will result in the library making sure it is always starting with the latest version of itself. This overrides `skipUpdateCheck`.","default":"`false`","type":"boolean"},"resizable":{"title":"ConfigObject.resizable","description":"Syncs the viewport size with the window size which is how normal browsers act. Only relevant when `headless: false` and this overrides `viewport` config.","default":"`true`","type":"boolean"},"viewport":{"properties":{"width":{"title":"ConfigObject.viewport.width","description":"Page width in pixels","default":"`1440`","type":"number"},"height":{"title":"ConfigObject.viewport.height","description":"Page height in pixels","default":"`900`","type":"number"}},"additionalProperties":false,"title":"ConfigObject.viewport","description":"Set the desired viewport height and width. For CLI, use [width]x[height] format. E.g `--viewport 1920x1080`.","type":"object"},"legacy":{"title":"ConfigObject.legacy","description":"As the library is constantly evolving, some parts will be replaced with more efficient and improved code. In some of the infinite edge cases these new changes may not work for you. Set this to true to roll back on 'late beta' features. The reason why legacy is false by default is that in order for features to be tested they have to be released and used by everyone to find the edge cases and fix them.","default":"`false`","type":"boolean"},"deleteSessionDataOnLogout":{"title":"ConfigObject.deleteSessionDataOnLogout","description":"Deletes the session data file (if found) on logout event. This results in a quicker login when you restart the process.","default":"`false`","type":"boolean"},"killProcessOnTimeout":{"title":"ConfigObject.killProcessOnTimeout","description":"If set to true, the system will kill the whole node process when either an [[authTimeout]] or a [[qrTimeout]] has been reached. This is useful to prevent hanging processes.","default":"`false`","type":"boolean"},"corsFix":{"title":"ConfigObject.corsFix","description":"Setting this to true will bypass web security. DO NOT DO THIS IF YOU DO NOT HAVE TO. CORS issue may arise when using a proxy.","default":"`false`","type":"boolean"},"callTimeout":{"title":"ConfigObject.callTimeout","description":"Amount of time (in ms) to wait for a client method (specifically methods that interact with the WA web session) to resolve. If a client method results takes longer than the timout value then it will result in a [[PageEvaluationTimeout]] error.\n\nIf you get this error, it does not automatically mean that the method failed - it just stops your program from waiting for a client method to resolve.\n\nThis is useful if you do not rely on the results of a client method (e.g the message ID).\n\nIf set to `0`, the process will wait indefinitely for a client method to resolve.","default":"0","type":"number"},"screenshotOnInitializationBrowserError":{"title":"ConfigObject.screenshotOnInitializationBrowserError","description":"When true, this option will take a screenshot of the browser when an unexpected error occurs within the browser during `create` initialization. The path will be `[working directory]/logs/[session ID]/[start timestamp]/[timestamp].jpg`","default":"`false`","type":"boolean"},"eventMode":{"title":"ConfigObject.eventMode","description":"Setting listeners may not be your cup of tea. With eventMode, all [[SimpleListener]] events will be registered automatically and be filed via the built in Events Listener.\n\nThis is useful because you can register/deregister the event listener as needed whereas the legacy method of setting callbacks are only be set once","default":"`true`;","type":"boolean"},"logFile":{"title":"ConfigObject.logFile","description":"If true, the system will automatically create a log of all processes relating to actions sent to the web session.\n\nThe location of the file will be relative to the process directory (pd)\n\n`[pd]/[sessionId]/[start timestamp].log`","default":"false","type":"boolean"},"idCorrection":{"title":"ConfigObject.idCorrection","description":"When true, the system will attempt to correct chatIds and groupChatIds. This means you can ignore `@c.us` and `@g.us` distinctions in some parameters.","default":"false","type":"boolean"},"stickerServerEndpoint":{"title":"ConfigObject.stickerServerEndpoint","description":"Redundant until self-hostable sticker server is available.","default":"`https://sticker-api.openwa.dev`","anyOf":[{"type":"string"},{"type":"boolean"}]},"ghPatch":{"title":"ConfigObject.ghPatch","description":"This will force the library to use the default cached raw github link for patches to shave a few hundred milliseconds from your launch time. If you use this option, you will need to wait about 5 minutes before trying out new patches.","default":"`false`","type":"boolean"},"cachedPatch":{"title":"ConfigObject.cachedPatch","description":"Setting this to `true` will save a local copy of the patches.json file (as patches.ignore.data.json) which will be used in subsequent instantiations of the session. While the rest of the launch procedure is running, the library will fetch and save a recent version of the patches to ensure your patches don't go stale. This will be ignored if the cached patches are more than a day old.","default":"`false`","type":"boolean"},"logDebugInfoAsObject":{"title":"ConfigObject.logDebugInfoAsObject","description":"Setting `this` to true will replace the `console.table` with a stringified logging of the debug info object instead. This would be useful to set for smaller terminal windows. If `disableSpins` is `true` then this will also be `true`.","default":"`false`","type":"boolean"},"killClientOnLogout":{"title":"ConfigObject.killClientOnLogout","description":"Kill the client when a logout is detected","default":"`false`","type":"boolean"},"throwOnExpiredSessionData":{"title":"ConfigObject.throwOnExpiredSessionData","description":"This will make the `create` command return `false` if the detected session data is expired.\n\nThis will mean, the process will not attempt to automatically get a new QR code.","default":"`false`","type":"boolean"},"useNativeProxy":{"title":"ConfigObject.useNativeProxy","description":"Some sessions may experience issues with sending media when using proxies. Using the native proxy system instead of the recommended 3rd party library may fix these issues.","default":"`false`","type":"boolean"},"raspi":{"title":"ConfigObject.raspi","description":"Set this to `true` to make the library work on Raspberry Pi OS.\n\nMake sure to run the following command before running the library the first time:\n\n```\n> sudo apt update -y && sudo apt install chromium-browser chromium-codecs-ffmpeg -y && sudo apt upgrade\n```\n\nIf you're using the CLI, you can set this value to `true` by adding the following flag to the CLI command\n\n```\n> npx @open-wa/wa-automate ... --raspi\n```","default":"`false`","type":"boolean"},"pQueueDefault":{"title":"ConfigObject.pQueueDefault","description":"Default pqueue options applied to all listeners that can take pqueue options as a second optional parameter. For now, this only includes `onMessage` and `onAnyMessage`.\n\nSee: https://github.com/sindresorhus/p-queue#options\n\nExample: process 5 events within every 3 seconds window. Make sure to only process at most 2 at any one time. Make sure there is at least 100ms between each event processing.\n\n```javascript\n {\n intervalCap: 5, //process 5 events\n interval: 3000, //within every three second window\n concurrency: 2, //make sure to process, at most, 2 events at any one time\n timeout: 100, //make sure there is a 100ms gap between each event processing.\n carryoverConcurrencyCount: true //If there are more than 5 events in that period, process them within the next 3 second period. Make sure this is always set to true!!!\n }\n```","default":"`undefined`"},"messagePreprocessor":{"$ref":"#/components/schemas/PREPROCESSORS","title":"ConfigObject.messagePreprocessor","description":"Set a preprocessor for messages. See [[PREPROCESSORS]] for more info.\n\noptions: `SCRUB`, `BODY_ONLY`, `AUTO_DECRYPT`, `AUTO_DECRYPT_SAVE`, `UPLOAD_CLOUD`.","default":"`undefined`"},"preprocFilter":{"title":"ConfigObject.preprocFilter","description":"Set an array filter to be used with messagePreprocessor to limit which messages are preprocessed.\n\nE.g if you want to scrub all messages that are not from a group, you can do the following:\n`\"m=>!m.isGroupMsg\"`","default":"`undefined`","type":"string"},"cloudUploadOptions":{"properties":{"provider":{"$ref":"#/components/schemas/CLOUD_PROVIDERS","title":"ConfigObject.cloudUploadOptions.provider","description":"`AWS`, `GCP` or `WASABI`\n\nenv: `OW_CLOUD_ACCESS_KEY_ID`"},"accessKeyId":{"title":"ConfigObject.cloudUploadOptions.accessKeyId","description":"S3 compatible access key ID.\n\ne.g: `AKIAIOSFODNN7EXAMPLE` or `GOOGTS7C7FUP3AIRVJTE2BCD`\n\nenv: `OW_CLOUD_ACCESS_KEY_ID`","type":"string"},"secretAccessKey":{"title":"ConfigObject.cloudUploadOptions.secretAccessKey","description":"S3 compatible secret access key.\n\ne.g `wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY`\n\nenv: `OW_CLOUD_SECRET_ACCESS_KEY`","type":"string"},"bucket":{"title":"ConfigObject.cloudUploadOptions.bucket","description":"Bucket name\n\nenv: `OW_CLOUD_BUCKET`","type":"string"},"region":{"title":"ConfigObject.cloudUploadOptions.region","description":"Bucket region.\n\nNot required for `GCP` provider\n\nenv: `OW_CLOUD_REGION`","type":"string"},"ignoreHostAccount":{"title":"ConfigObject.cloudUploadOptions.ignoreHostAccount","description":"Ignore processing of messages that are sent by the host account itself\n\nenv: `OW_CLOUD_IGNORE_HOST`","type":"boolean"},"directory":{"anyOf":[{"$ref":"#/components/schemas/DIRECTORY_STRATEGY","title":"ConfigObject.cloudUploadOptions.directory"},{"title":"ConfigObject.cloudUploadOptions.directory","type":"string"}],"title":"ConfigObject.cloudUploadOptions.directory","description":"The directory strategy to use when uploading files. Or just set it to a custom directory string.\n\nenv: `OW_DIRECTORY`"}},"required":["provider","accessKeyId","secretAccessKey","bucket"],"additionalProperties":false,"title":"ConfigObject.cloudUploadOptions","description":"REQUIRED IF `messagePreprocessor` IS SET TO `UPLOAD_CLOUD`.\n\nThis can be set via the config or the corresponding environment variables.","type":"object"},"onError":{"$ref":"#/components/schemas/OnError","title":"ConfigObject.onError","description":"What to do when an error is detected on a client method.","default":"`OnError.NOTHING`"},"multiDevice":{"title":"ConfigObject.multiDevice","description":"Please note that multi-device is still in beta so a lot of things may not work. It is HIGHLY suggested to NOT use this in production!!!!\n\nSet this to true if you're using the multidevice beta.","default":"`true`\n:::danger\nSome features (e.g [[sendLinkWithAutoPreview]]) **do not** work with multi-device beta. Check [this `api`](#).\n:::","type":"boolean"},"sessionDataBucketAuth":{"title":"ConfigObject.sessionDataBucketAuth","description":"Base64 encoded S3 Bucket & Authentication object for session data files. The object should be in the same format as cloudUploadOptions.","type":"string"},"autoEmoji":{"anyOf":[{"title":"ConfigObject.autoEmoji","type":"string"},{"title":"ConfigObject.autoEmoji","enum":[false],"type":"boolean"}],"title":"ConfigObject.autoEmoji","description":"Set the automatic emoji detection character. Set this to `false` to disable auto emoji. Default is `:`.","default":"`:`"},"maxChats":{"title":"ConfigObject.maxChats","description":"Set the maximum amount of chats to be present in a session.","type":"number"},"maxMessages":{"title":"ConfigObject.maxMessages","description":"Set the maximum amount of messages to be present in a session.","type":"number"},"discord":{"title":"ConfigObject.discord","description":"Your Discord ID to get onto the sticker leaderboard!","type":"string"},"ignoreNuke":{"title":"ConfigObject.ignoreNuke","description":"Don't implicitly determine if the host logged out.","type":"boolean"},"ensureHeadfulIntegrity":{"title":"ConfigObject.ensureHeadfulIntegrity","description":"Makes sure the headless session is usable even on first login.\nHeadful sessions are ususally only usable on reauthentication.","type":"boolean"},"waitForRipeSession":{"title":"ConfigObject.waitForRipeSession","description":"wait for a valid headful session. Not required in recent versions.\ndefault: `true`","type":"boolean"},"qrMax":{"title":"ConfigObject.qrMax","description":"Automatically kill the process after a set amount of qr codes","type":"number"},"ezqr":{"title":"ConfigObject.ezqr","description":"Expose a URL where you can easily scan the qr code","type":"boolean"},"logging":{"items":{"$ref":"#/components/schemas/ConfigLogTransport","title":"ConfigObject.logging.[]"},"title":"ConfigObject.logging","description":"An array of [winston](https://github.com/winstonjs/winston/blob/master/docs/transports.md#additional-transports) logging transport configurations.\n\n[Check this discussion to see how to set up logging](https://github.com/open-wa/wa-automate-nodejs/discussions/2373)","type":"array"},"linkParser":{"title":"ConfigObject.linkParser","description":"The URL of your instance of [serverless meta grabber](https://github.com/RemiixInc/meta-grabber-serverless) by [RemiixInc](https://github.com/RemiixInc).\n\ndefault: `https://link.openwa.cloud/api`","type":"string"},"aggressiveGarbageCollection":{"title":"ConfigObject.aggressiveGarbageCollection","description":"Setting this to true will run `gc()` on before every command sent to the browser.\n\nThis is experimental and may not work or it may have unforeseen sideeffects.","type":"boolean"}},"additionalProperties":{},"title":"ConfigObject","type":"object"},"AdvancedConfig":{"allOf":[{"$ref":"#/components/schemas/ConfigObject"},{"properties":{"licenseKey":{"$ref":"#/components/schemas/LicenseKeyConfig","title":"licenseKey"}},"required":["licenseKey"],"additionalProperties":false,"type":"object"}],"title":"AdvancedConfig"},"LicenseKey":{"title":"LicenseKey","type":"string"},"LicenseKeyConfig":{"anyOf":[{"$ref":"#/components/schemas/LicenseKeyConfigFunction","title":"LicenseKeyConfig"},{"$ref":"#/components/schemas/LicenseKeyConfigObject","title":"LicenseKeyConfig"},{"$ref":"#/components/schemas/LicenseKey","title":"LicenseKeyConfig"}],"title":"LicenseKeyConfig"},"NumberCheck":{"properties":{"id":{"$ref":"#/components/schemas/Id","title":"NumberCheck.id"},"status":{"enum":[200,404],"title":"NumberCheck.status","type":"number"},"isBusiness":{"title":"NumberCheck.isBusiness","type":"boolean"},"canReceiveMessage":{"title":"NumberCheck.canReceiveMessage","type":"boolean"},"numberExists":{"title":"NumberCheck.numberExists","type":"boolean"}},"required":["id","status","isBusiness","canReceiveMessage","numberExists"],"additionalProperties":false,"title":"NumberCheck","type":"object"},"Contact":{"properties":{"formattedName":{"title":"Contact.formattedName","type":"string"},"id":{"$ref":"#/components/schemas/ContactId","title":"Contact.id"},"isBusiness":{"title":"Contact.isBusiness","type":"boolean"},"isEnterprise":{"title":"Contact.isEnterprise","description":"Most likely true when the account has a green tick. See `verifiedLevel` also.","type":"boolean"},"isMe":{"title":"Contact.isMe","type":"boolean"},"isMyContact":{"title":"Contact.isMyContact","type":"boolean"},"isPSA":{"title":"Contact.isPSA","type":"boolean"},"isUser":{"title":"Contact.isUser","type":"boolean"},"isWAContact":{"title":"Contact.isWAContact","type":"boolean"},"labels":{"items":{"title":"Contact.labels.[]","type":"string"},"title":"Contact.labels","type":"array"},"msgs":{"items":{"$ref":"#/components/schemas/Message","title":"Contact.msgs.[]"},"title":"Contact.msgs","type":"array"},"name":{"title":"Contact.name","type":"string"},"plaintextDisabled":{"title":"Contact.plaintextDisabled","type":"boolean"},"profilePicThumbObj":{"properties":{"eurl":{"title":"Contact.profilePicThumbObj.eurl","type":"string"},"id":{"$ref":"#/components/schemas/Id","title":"Contact.profilePicThumbObj.id"},"img":{"title":"Contact.profilePicThumbObj.img","type":"string"},"imgFull":{"title":"Contact.profilePicThumbObj.imgFull","type":"string"},"raw":{"title":"Contact.profilePicThumbObj.raw","type":"string"},"tag":{"title":"Contact.profilePicThumbObj.tag","type":"string"}},"required":["eurl","id","img","imgFull","raw","tag"],"additionalProperties":false,"title":"Contact.profilePicThumbObj","type":"object"},"pushname":{"title":"Contact.pushname","type":"string"},"shortName":{"title":"Contact.shortName","type":"string"},"statusMute":{"title":"Contact.statusMute","type":"boolean"},"type":{"title":"Contact.type","type":"string"},"verifiedLevel":{"title":"Contact.verifiedLevel","description":"0 = not verified\n2 = verified (most likely represents a blue tick)","type":"number"},"verifiedName":{"title":"Contact.verifiedName","description":"The business account name verified by WA.","type":"string"},"isOnline":{"title":"Contact.isOnline","type":"boolean"},"lastSeen":{"title":"Contact.lastSeen","type":"number"}},"required":["formattedName","id","isBusiness","isEnterprise","isMe","isMyContact","isPSA","isUser","isWAContact","labels","msgs","name","plaintextDisabled","profilePicThumbObj","pushname","shortName","statusMute","type","verifiedLevel","verifiedName"],"additionalProperties":false,"title":"Contact","type":"object"},"Participant":{"properties":{"id":{"$ref":"#/components/schemas/NonSerializedId","title":"Participant.id"},"isAdmin":{"title":"Participant.isAdmin","type":"boolean"},"isSuperAdmin":{"title":"Participant.isSuperAdmin","type":"boolean"}},"required":["id","isAdmin","isSuperAdmin"],"additionalProperties":false,"title":"Participant","type":"object"},"GroupMetadata":{"properties":{"id":{"$ref":"#/components/schemas/GroupChatId","title":"GroupMetadata.id","description":"The chat id of the group [[GroupChatId]]"},"creation":{"title":"GroupMetadata.creation","description":"The timestamp of when the group was created","type":"number"},"owner":{"$ref":"#/components/schemas/NonSerializedId","title":"GroupMetadata.owner","description":"The id of the owner of the group [[ContactId]]"},"participants":{"items":{"$ref":"#/components/schemas/Participant","title":"GroupMetadata.participants.[]"},"title":"GroupMetadata.participants","description":"An array of participants in the group","type":"array"},"pendingParticipants":{"items":{"$ref":"#/components/schemas/Participant","title":"GroupMetadata.pendingParticipants.[]"},"title":"GroupMetadata.pendingParticipants","description":"Unknown.","type":"array"},"desc":{"title":"GroupMetadata.desc","description":"The description of the group","type":"string"},"descOwner":{"$ref":"#/components/schemas/ContactId","title":"GroupMetadata.descOwner","description":"The account that set the description last."},"trusted":{"title":"GroupMetadata.trusted","type":"boolean"},"suspended":{"title":"GroupMetadata.suspended","description":"Not sure what this represents","type":"boolean"},"support":{"title":"GroupMetadata.support","description":"Not sure what this represents","type":"boolean"}},"required":["id","creation","owner","participants","pendingParticipants"],"additionalProperties":false,"title":"GroupMetadata","type":"object"},"ParticipantChangedEventModel":{"properties":{"by":{"$ref":"#/components/schemas/ContactId","title":"ParticipantChangedEventModel.by"},"action":{"$ref":"#/components/schemas/groupChangeEvent","title":"ParticipantChangedEventModel.action"},"who":{"items":{"$ref":"#/components/schemas/ContactId","title":"ParticipantChangedEventModel.who.[]"},"title":"ParticipantChangedEventModel.who","type":"array"},"chat":{"$ref":"#/components/schemas/ChatId","title":"ParticipantChangedEventModel.chat"}},"required":["by","action","who","chat"],"additionalProperties":false,"title":"ParticipantChangedEventModel","type":"object"},"Id":{"properties":{"server":{"title":"Id.server","type":"string"},"user":{"title":"Id.user","type":"string"},"_serialized":{"title":"Id._serialized","type":"string"}},"required":["server","user","_serialized"],"additionalProperties":false,"title":"Id","type":"object"},"EasyApiResponse":{"properties":{"success":{"title":"EasyApiResponse.success","type":"boolean"},"response":{"title":"EasyApiResponse.response"}},"required":["success","response"],"additionalProperties":false,"title":"EasyApiResponse","type":"object"},"Label":{"properties":{"id":{"title":"Label.id","description":"The internal ID of the label. Usually a number represented as a string e.g \"1\"","type":"string"},"name":{"title":"Label.name","description":"The text contents of the label","type":"string"},"items":{"items":{"properties":{"type":{"enum":["Chat","Contact","Message"],"title":"Label.items.[].type","description":"Labels can be applied to chats, contacts or individual messages. This represents the type of object the label is attached to.","type":"string"},"id":{"anyOf":[{"$ref":"#/components/schemas/ContactId","title":"Label.items.[].id"},{"$ref":"#/components/schemas/ChatId","title":"Label.items.[].id"},{"$ref":"#/components/schemas/MessageId","title":"Label.items.[].id"}],"title":"Label.items.[].id","description":"The ID of the object that the label is atteched to."}},"required":["type","id"],"additionalProperties":false,"title":"Label.items.[]","type":"object"},"title":"Label.items","description":"The items that are tagged with this label","type":"array"}},"required":["id","name","items"],"additionalProperties":false,"title":"Label","type":"object"},"StickerMetadata":{"properties":{"author":{"title":"StickerMetadata.author","description":"The author of the sticker","default":"``","type":"string"},"pack":{"title":"StickerMetadata.pack","description":"The pack of the sticker","default":"``","type":"string"},"removebg":{"anyOf":[{"title":"StickerMetadata.removebg","type":"boolean"},{"title":"StickerMetadata.removebg","enum":["HQ"],"type":"string"}],"title":"StickerMetadata.removebg","description":"ALPHA FEATURE - NO GUARANTEES IT WILL WORK AS EXPECTED:\n\n[REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)\n\nAttempt to remove the background of the sticker. Only valid for paid licenses.\n\noptions:\n\n `true` - remove background after resizing\n\n `HQ` - remove background before resizing (i.e on original photo)","default":"`false`"},"keepScale":{"title":"StickerMetadata.keepScale","description":"Setting this to `true` will skip the resizing/square-cropping of the sticker. It will instead 'letterbox' the image with a transparent background.","type":"boolean"},"circle":{"title":"StickerMetadata.circle","description":"Applies a circular mask to the sticker. Works on images only for now.","type":"boolean"},"discord":{"title":"StickerMetadata.discord","description":"Your Discord ID to get onto the sticker leaderboard!","type":"string"},"cropPosition":{"enum":["top","right top","right","right bottom","bottom","left bottom","left","left top","north","northeast","east","southeast","south","southwest","west","northwest","center","centre","entropy","attention"],"title":"StickerMetadata.cropPosition","description":"Crop position\n\nLearn more: https://sharp.pixelplumbing.com/api-resize","default":"`attention`","type":"string"},"cornerRadius":{"title":"StickerMetadata.cornerRadius","description":"The corner radius of the sticker when `stickerMetadata.circle` is set to true.\n@minimum `1`\n@maximum `100`\n@multipleOf `1`","default":"`100`","type":"number"}},"required":["author","pack"],"additionalProperties":false,"title":"StickerMetadata","type":"object"},"Mp4StickerConversionProcessOptions":{"properties":{"fps":{"title":"Mp4StickerConversionProcessOptions.fps","description":"Desired Frames per second of the sticker output","default":"`10`","type":"number"},"startTime":{"title":"Mp4StickerConversionProcessOptions.startTime","description":"The video start time of the sticker","default":"`00:00:00.0`","type":"string"},"endTime":{"title":"Mp4StickerConversionProcessOptions.endTime","description":"The video end time of the sticker. By default, stickers are made from the first 5 seconds of the video","default":"`00:00:05.0`","type":"string"},"loop":{"title":"Mp4StickerConversionProcessOptions.loop","description":"The amount of times the video loops in the sticker. To save processing time, leave this as 0\ndefault `0`","type":"number"},"crop":{"title":"Mp4StickerConversionProcessOptions.crop","description":"Centres and crops the video.\ndefault `true`","type":"boolean"},"log":{"title":"Mp4StickerConversionProcessOptions.log","description":"Prints ffmpeg logs in the terminal","default":"`false`","type":"boolean"},"square":{"title":"Mp4StickerConversionProcessOptions.square","description":"A number representing the WxH of the output sticker (default `512x512`). Lowering this number is a great way to process longer duration stickers. The max value is `512`.\ndefault `512`","type":"number"}},"additionalProperties":false,"title":"Mp4StickerConversionProcessOptions","type":"object"},"Message":{"properties":{"selectedButtonId":{"title":"Message.selectedButtonId","description":"The ID of the selected button","type":"string"},"id":{"$ref":"#/components/schemas/MessageId","title":"Message.id","description":"The id of the message"},"body":{"title":"Message.body","description":"The body of the message. If the message type is `chat` , `body` will be the text of the chat. If the message type is some sort of media, then this body will be the thumbnail of the media.","type":"string"},"text":{"title":"Message.text","description":"a convenient way to get the main text content from a message.","type":"string"},"type":{"$ref":"#/components/schemas/MessageTypes","title":"Message.type","description":"The type of the message, see [[MessageTypes]]"},"filehash":{"title":"Message.filehash","description":"Used to checking the integrity of the decrypted media.","type":"string"},"mimetype":{"title":"Message.mimetype","type":"string"},"lat":{"title":"Message.lat","description":"The latitude of a location message","type":"string"},"lng":{"title":"Message.lng","description":"The longitude of a location message","type":"string"},"loc":{"title":"Message.loc","description":"The text associated with a location message","type":"string"},"t":{"title":"Message.t","description":"The timestamp of the message","type":"number"},"notifyName":{"title":"Message.notifyName","type":"string"},"from":{"$ref":"#/components/schemas/ChatId","title":"Message.from","description":"The chat from which the message was sent"},"to":{"$ref":"#/components/schemas/ChatId","title":"Message.to","description":"The chat id to which the message is being sent"},"self":{"enum":["in","out"],"title":"Message.self","description":"Indicates whether the message was sent by the host account","type":"string"},"duration":{"title":"Message.duration","description":"The length of the media in the message, if it exists.","anyOf":[{"type":"string"},{"type":"number"}]},"ack":{"$ref":"#/components/schemas/MessageAck","title":"Message.ack","description":"The acknolwedgement state of a message [[MessageAck]]"},"invis":{"title":"Message.invis","type":"boolean"},"isNewMsg":{"title":"Message.isNewMsg","type":"boolean"},"star":{"title":"Message.star","type":"boolean"},"recvFresh":{"title":"Message.recvFresh","type":"boolean"},"broadcast":{"title":"Message.broadcast","description":"If the message is sent as a broadcast","type":"boolean"},"isForwarded":{"title":"Message.isForwarded","description":"If the message has been forwarded","type":"boolean"},"labels":{"items":{"title":"Message.labels.[]","type":"string"},"title":"Message.labels","description":"The labels associated with the message (used with business accounts)","type":"array"},"mentionedJidList":{"items":{"$ref":"#/components/schemas/ContactId","title":"Message.mentionedJidList.[]"},"title":"Message.mentionedJidList","description":"An array of all mentioned numbers in this message.","type":"array"},"caption":{"title":"Message.caption","description":"If the message is of a media type, it may also have a caption","type":"string"},"sender":{"$ref":"#/components/schemas/Contact","title":"Message.sender","description":"The contact object of the account that sent the message"},"timestamp":{"title":"Message.timestamp","description":"the timestanmp of the message","type":"number"},"filePath":{"title":"Message.filePath","description":"When `config.messagePreprocessor: \"AUTO_DECRYPT_SAVE\"` is set, media is decrypted and saved on disk in a folder called media relative to the current working directory.\n\nThis is the filePath of the decrypted file.","type":"string"},"filename":{"title":"Message.filename","description":"The given filename of the file","type":"string"},"content":{"title":"Message.content","type":"string"},"isGroupMsg":{"title":"Message.isGroupMsg","type":"boolean"},"isMMS":{"title":"Message.isMMS","type":"boolean"},"isMedia":{"title":"Message.isMedia","type":"boolean"},"isNotification":{"title":"Message.isNotification","type":"boolean"},"isPSA":{"title":"Message.isPSA","type":"boolean"},"fromMe":{"title":"Message.fromMe","description":"If the message is from the host account","type":"boolean"},"chat":{"$ref":"#/components/schemas/Chat","title":"Message.chat","description":"The chat object"},"chatId":{"$ref":"#/components/schemas/ChatId","title":"Message.chatId"},"author":{"title":"Message.author","type":"string"},"stickerAuthor":{"title":"Message.stickerAuthor","type":"string"},"stickerPack":{"title":"Message.stickerPack","type":"string"},"clientUrl":{"title":"Message.clientUrl","description":"@deprecated Ironically, you should be using `deprecatedMms3Url` instead","type":"string"},"deprecatedMms3Url":{"title":"Message.deprecatedMms3Url","type":"string"},"quotedMsg":{"$ref":"#/components/schemas/Message","title":"Message.quotedMsg"},"quotedMsgObj":{"$ref":"#/components/schemas/Message","title":"Message.quotedMsgObj"},"mediaData":{"title":"Message.mediaData"},"shareDuration":{"title":"Message.shareDuration","type":"number"},"isAnimated":{"title":"Message.isAnimated","type":"boolean"},"isViewOnce":{"title":"Message.isViewOnce","description":"Is the message a \"view once\" message","type":"boolean"},"quoteMap":{"$ref":"#/components/schemas/QuoteMap","title":"Message.quoteMap","description":"Use this to traverse the quote chain."},"cloudUrl":{"title":"Message.cloudUrl","description":"The URL of the file after being uploaded to the cloud using a cloud upload message preprocessor.","type":"string"},"buttons":{"items":{"$ref":"#/components/schemas/Button","title":"Message.buttons.[]"},"title":"Message.buttons","description":"Buttons associated with the message","type":"array"},"listResponse":{"$ref":"#/components/schemas/Row","title":"Message.listResponse","description":"List response associated with the message"},"list":{"properties":{"\"sections\"":{"items":{"$ref":"#/components/schemas/Section","title":"Message.list.\"sections\".[]"},"title":"Message.list.\"sections\"","type":"array"},"\"title\"":{"title":"Message.list.\"title\"","type":"string"},"\"description\"":{"title":"Message.list.\"description\"","type":"string"},"\"buttonText\"":{"title":"Message.list.\"buttonText\"","type":"string"}},"required":["\"sections\"","\"title\"","\"description\"","\"buttonText\""],"additionalProperties":false,"title":"Message.list","description":"The list associated with the list message","type":"object"}},"required":["selectedButtonId","id","body","text","type","t","notifyName","from","to","self","ack","invis","isNewMsg","star","recvFresh","broadcast","isForwarded","labels","mentionedJidList","caption","sender","timestamp","content","isGroupMsg","isMMS","isMedia","isNotification","isPSA","fromMe","chat","chatId","author","clientUrl","deprecatedMms3Url","mediaData","shareDuration","isAnimated","isViewOnce","quoteMap"],"additionalProperties":false,"title":"Message","type":"object"},"QuoteMap":{"additionalProperties":{"properties":{"body":{"title":"body","description":"The body of the message","type":"string"},"quotes":{"$ref":"#/components/schemas/MessageId","title":"quotes","description":"The message ID of the message that was quoted. Null if no message was quoted."}},"required":["body"],"additionalProperties":false,"type":"object"},"title":"QuoteMap","type":"object"},"MessageInfoInteraction":{"properties":{"id":{"$ref":"#/components/schemas/ContactId","title":"MessageInfoInteraction.id","description":"The contact ID of the contact that interacted with the message."},"t":{"title":"MessageInfoInteraction.t","description":"The timestamp of the interaction. You have to x 1000 to use in a JS Date object.","type":"number"}},"required":["id","t"],"additionalProperties":false,"title":"MessageInfoInteraction","type":"object"},"MessageInfo":{"properties":{"deliveryRemaining":{"title":"MessageInfo.deliveryRemaining","type":"number"},"playedRemaining":{"title":"MessageInfo.playedRemaining","type":"number"},"readRemaining":{"title":"MessageInfo.readRemaining","type":"number"},"delivery":{"items":{"$ref":"#/components/schemas/MessageInfoInteraction","title":"MessageInfo.delivery.[]"},"title":"MessageInfo.delivery","type":"array"},"read":{"items":{"$ref":"#/components/schemas/MessageInfoInteraction","title":"MessageInfo.read.[]"},"title":"MessageInfo.read","type":"array"},"played":{"items":{"$ref":"#/components/schemas/MessageInfoInteraction","title":"MessageInfo.played.[]"},"title":"MessageInfo.played","type":"array"},"id":{"$ref":"#/components/schemas/MessageId","title":"MessageInfo.id","description":"The ID of the message"}},"required":["deliveryRemaining","playedRemaining","readRemaining","delivery","read","played","id"],"additionalProperties":false,"title":"MessageInfo","type":"object"},"CustomProduct":{"properties":{"name":{"title":"CustomProduct.name","description":"The main title of the product. E.g:\n`BAVARIA — 35 SPORTS CRUISER (2006)`","type":"string"},"description":{"title":"CustomProduct.description","description":"The description of the product. This shows right under the price so it is useful for subscriptions/rentals. E.g:\n\n`(per day)\\n\\nCome and have a fantastic sailing adventure aboard our boat. \\nShe is a Bavaria 35 sports cruiser and is powered by 2 economical Volvo D6’s with Bravo 2 outdrives as well as a bow thruster. This Makes maneuvering very easy. She can accommodate up to 8 people for day charters and for overnight charters she can accommodate 4 in comfort in 2 cabins.`","type":"string"},"priceAmount1000":{"title":"CustomProduct.priceAmount1000","description":"The price amount multiplied by 1000. For example, for something costing `825` units of currency:\n`825000`","type":"number"},"currency":{"title":"CustomProduct.currency","description":"The [**ISO 4217**](https://en.wikipedia.org/wiki/ISO_4217) 3 letter currency code. E.g (Swedish krona)\n`SEK`","type":"string"},"url":{"title":"CustomProduct.url","description":"The URL of the product.\n\nNOTE: At the moment, the URL DOES NOT WORK. It shows up for the recipient but they will not be able to click it. As a rememdy, it is added as a reply to the product message.","type":"string"}},"required":["name","description","priceAmount1000","currency"],"additionalProperties":false,"title":"CustomProduct","type":"object"},"CartItem":{"properties":{"id":{"title":"CartItem.id","description":"Product ID","type":"string"},"name":{"title":"CartItem.name","description":"Product name","type":"string"},"qty":{"title":"CartItem.qty","description":"Amount of this item in the cart","type":"number"},"thumbnailId":{"title":"CartItem.thumbnailId","type":"string"},"thumbnailUrl":{"title":"CartItem.thumbnailUrl","description":"URL to .enc file of the thumbnail. Just change the filetype to .jpg to view the thumbnail","type":"string"}},"required":["id","name","qty","thumbnailId","thumbnailUrl"],"additionalProperties":false,"title":"CartItem","type":"object"},"Product":{"properties":{"id":{"title":"Product.id","description":"Product ID","type":"string"},"isHidden":{"title":"Product.isHidden","description":"`true` if the product is hidden from public view.","type":"boolean"},"catalogWid":{"title":"Product.catalogWid","description":"The id of the catalog in which this product is located.","type":"string"},"url":{"title":"Product.url","description":"The URL of the product.","type":"string"},"name":{"title":"Product.name","description":"The name of the product.","type":"string"},"description":{"title":"Product.description","description":"The description of the product.","type":"string"},"availability":{"anyOf":[{"title":"Product.availability","type":"number"},{"title":"Product.availability","enum":["unknown"],"type":"string"}],"title":"Product.availability","description":"The availiable quantity of this product.","default":"\"unknown\"`"},"reviewStatus":{"enum":["NO_REVIEW","PENDING","REJECTED","APPROVED","OUTDATED"],"title":"Product.reviewStatus","description":"The review status of the product","type":"string"},"imageCdnUrl":{"title":"Product.imageCdnUrl","description":"The url of the main image of the product.\n\nNOTE: If downloading manually, the filetype must be changed to .jpg to view the image.","type":"string"},"imageCount":{"title":"Product.imageCount","description":"The number of images of the product.","type":"number"},"additionalImageCdnUrl":{"items":{"title":"Product.additionalImageCdnUrl.[]","type":"string"},"title":"Product.additionalImageCdnUrl","description":"Array of URLs of the other images of the product. Does not include the main image.","type":"array"},"priceAmount1000":{"title":"Product.priceAmount1000","description":"The price of the product in 1000 units.","type":"number"},"retailerId":{"title":"Product.retailerId","description":"The custom id of the product.","type":"string"},"t":{"title":"Product.t","description":"The timestamp when the product was created / 1000","type":"number"},"currency":{"title":"Product.currency","description":"The [**ISO 4217**](https://en.wikipedia.org/wiki/ISO_4217) 3 letter currency code. E.g (Swedish krona)\n`SEK`","type":"string"}},"required":["id","currency"],"additionalProperties":false,"title":"Product","type":"object"},"Order":{"properties":{"id":{"title":"Order.id","description":"Order ID","type":"string"},"createdAt":{"title":"Order.createdAt","description":"epoch ts divided by 1000","type":"number"},"currency":{"title":"Order.currency","description":"The [**ISO 4217**](https://en.wikipedia.org/wiki/ISO_4217) 3 letter currency code. E.g (Swedish krona)\n`SEK`","type":"string"},"products":{"items":{"$ref":"#/components/schemas/CartItem","title":"Order.products.[]"},"title":"Order.products","description":"An array of items in the cart","type":"array"},"sellerJid":{"title":"Order.sellerJid","type":"string"},"subtotal":{"title":"Order.subtotal"},"total":{"title":"Order.total"},"message":{"$ref":"#/components/schemas/Message","title":"Order.message","description":"The message object associated with the order. Only populated in `onOrder` callback."}},"required":["id","createdAt","currency","products","sellerJid","subtotal","total"],"additionalProperties":false,"title":"Order","type":"object"},"Reaction":{"properties":{"aggregateEmoji":{"title":"Reaction.aggregateEmoji","description":"The aggregate emoji used for the reaction.","type":"string"},"id":{"title":"Reaction.id","description":"The identifier of the reaction","type":"string"},"hasReactionByMe":{"title":"Reaction.hasReactionByMe","description":"If the reaction is also sent by the host account","type":"boolean"},"senders":{"items":{"$ref":"#/components/schemas/ReactionRecord","title":"Reaction.senders.[]"},"title":"Reaction.senders","description":"The senders of this spefcific reaction","type":"array"}},"required":["aggregateEmoji","id","hasReactionByMe","senders"],"additionalProperties":false,"title":"Reaction","description":"A reaction is identified the specific emoji.","type":"object"},"ReactionRecord":{"properties":{"ack":{"$ref":"#/components/schemas/MessageAck","title":"ReactionRecord.ack","description":"The acknowledgement of the reaction"},"id":{"title":"ReactionRecord.id","description":"The ID of the reaction","type":"string"},"msgKey":{"title":"ReactionRecord.msgKey","type":"string"},"parentMsgKey":{"title":"ReactionRecord.parentMsgKey","type":"string"},"orphan":{"title":"ReactionRecord.orphan","type":"number"},"reactionText":{"title":"ReactionRecord.reactionText","description":"The text of the reaction","type":"string"},"read":{"title":"ReactionRecord.read","description":"If the reaction has been read","type":"boolean"},"senderUserJid":{"$ref":"#/components/schemas/ContactId","title":"ReactionRecord.senderUserJid","description":"The ID of the reaction sender"},"timestamp":{"title":"ReactionRecord.timestamp","description":"The timestamp of the reaction","type":"number"}},"required":["ack","id","msgKey","parentMsgKey","orphan","reactionText","read","senderUserJid","timestamp"],"additionalProperties":false,"title":"ReactionRecord","description":"The specific reaction by a user","type":"object"},"ReactionEvent":{"properties":{"message":{"$ref":"#/components/schemas/Message","title":"ReactionEvent.message","description":"The message being reacted to"},"reactionByMe":{"$ref":"#/components/schemas/Reaction","title":"ReactionEvent.reactionByMe","description":"The reaction sent by the host account"},"reactions":{"items":{"$ref":"#/components/schemas/Reaction","title":"ReactionEvent.reactions.[]"},"title":"ReactionEvent.reactions","description":"An array of all reactions","type":"array"},"type":{"enum":["add","change"],"title":"ReactionEvent.type","description":"The type of the reaction event.","type":"string"}},"required":["message","reactionByMe","reactions","type"],"additionalProperties":false,"title":"ReactionEvent","description":"Emitted by onReaction","type":"object"},"SessionInfo":{"properties":{"WA_VERSION":{"title":"SessionInfo.WA_VERSION","type":"string"},"PAGE_UA":{"title":"SessionInfo.PAGE_UA","type":"string"},"WA_AUTOMATE_VERSION":{"title":"SessionInfo.WA_AUTOMATE_VERSION","type":"string"},"BROWSER_VERSION":{"title":"SessionInfo.BROWSER_VERSION","type":"string"},"LAUNCH_TIME_MS":{"title":"SessionInfo.LAUNCH_TIME_MS","type":"number"},"NUM":{"title":"SessionInfo.NUM","type":"string"},"OS":{"title":"SessionInfo.OS","type":"string"},"START_TS":{"title":"SessionInfo.START_TS","type":"number"},"PHONE_VERSION":{"title":"SessionInfo.PHONE_VERSION","type":"string"},"NUM_HASH":{"title":"SessionInfo.NUM_HASH","type":"string"},"PATCH_HASH":{"title":"SessionInfo.PATCH_HASH","type":"string"},"OW_KEY":{"title":"SessionInfo.OW_KEY","type":"string"},"INSTANCE_ID":{"title":"SessionInfo.INSTANCE_ID","type":"string"},"RAM_INFO":{"title":"SessionInfo.RAM_INFO","type":"string"},"PPTR_VERSION":{"title":"SessionInfo.PPTR_VERSION","type":"string"},"LATEST_VERSION":{"title":"SessionInfo.LATEST_VERSION","type":"boolean"},"CLI":{"title":"SessionInfo.CLI","type":"boolean"},"ACC_TYPE":{"enum":["PERSONAL","BUSINESS"],"title":"SessionInfo.ACC_TYPE","type":"string"}},"required":["WA_VERSION","PAGE_UA","WA_AUTOMATE_VERSION","BROWSER_VERSION"],"additionalProperties":false,"title":"SessionInfo","type":"object"},"HealthCheck":{"properties":{"queuedMessages":{"title":"HealthCheck.queuedMessages","description":"The number of messages queued up in the browser. Messages can start being queued up due to the web app awaiting a connection with the host device.\n\nHealthy: 0","type":"number"},"state":{"$ref":"#/components/schemas/STATE","title":"HealthCheck.state","description":"The state of the web app.\n\nHealthy: 'CONNECTED'"},"isPhoneDisconnected":{"title":"HealthCheck.isPhoneDisconnected","description":"Whether or not the \"Phone is disconnected\" message is showing within the web app.\n\nHealthy: `false`","type":"boolean"},"isHere":{"title":"HealthCheck.isHere","description":"Returns `true` if \"Use Here\" button is not detected\n\nHealthy: `true`","type":"boolean"},"wapiInjected":{"title":"HealthCheck.wapiInjected","description":"Returns `true` if the `WAPI` object is detected.\n\nHealthy: `true`","type":"boolean"},"online":{"title":"HealthCheck.online","description":"Result of `window.navigator.onLine`\n\nHealthy: `true`","type":"boolean"},"tryingToReachPhone":{"title":"HealthCheck.tryingToReachPhone","description":"Returns `true` if \"trying to reach phone\" dialog is detected\n\nHealthy: `false`","type":"boolean"},"retryingIn":{"title":"HealthCheck.retryingIn","description":"Returns the number of seconds the \"Retrying in ...\" dialog is indicating. If the dialog is not showing, it will return `0`.\n\nHealthy: `0`","type":"number"},"batteryLow":{"title":"HealthCheck.batteryLow","description":"Returns `true` if \"Phone battery low\" message is detected\n\nHealthy: `false`","type":"boolean"}},"additionalProperties":false,"title":"HealthCheck","type":"object"},"expressMiddleware":{"title":"expressMiddleware"},"cliFlags":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"boolean"}]},"title":"cliFlags","type":"object"},"ConfigLogTransport":{"properties":{"type":{"enum":["syslog","console","file","ev"],"title":"ConfigLogTransport.type","description":"The type of winston transport. At the moment only `file`, `console`, `ev` and `syslog` are supported.","type":"string"},"options":{"title":"ConfigLogTransport.options","description":"The options for the transport. Generally only required for syslog but you can use this to override default options for other types of transports."},"done":{"title":"ConfigLogTransport.done","description":"If the transport has already been added to the logger. The logging set up command handles this for you.","type":"boolean"}},"required":["type"],"additionalProperties":false,"title":"ConfigLogTransport","type":"object"},"CollectorOptions":{"properties":{"maxProcessed":{"title":"CollectorOptions.maxProcessed","description":"The maximum amount of items to process","type":"number"},"max":{"title":"CollectorOptions.max","description":"The maximum amount of items to collect","type":"number"},"time":{"title":"CollectorOptions.time","description":"Max time to wait for items in milliseconds","type":"number"},"idle":{"title":"CollectorOptions.idle","description":"Max time allowed idle","type":"number"},"dispose":{"title":"CollectorOptions.dispose","description":"Whether to dispose data when it's deleted","type":"boolean"}},"additionalProperties":false,"title":"CollectorOptions","description":"Options to be applied to the collector.","type":"object"},"AwaitMessagesOptions":{"properties":{"errors":{"items":{"title":"AwaitMessagesOptions.errors.[]","type":"string"},"title":"AwaitMessagesOptions.errors","description":"An array of \"reasons\" that would result in the awaitMessages command to throw an error.","type":"array"}},"additionalProperties":false,"title":"AwaitMessagesOptions","type":"object"},"CurrentDialogProps":{"additionalProperties":{},"title":"CurrentDialogProps","type":"object"},"DialogState":{"properties":{"currentStep":{"title":"DialogState.currentStep","type":"number"},"currentProps":{"title":"DialogState.currentProps"},"lastInput":{"title":"DialogState.lastInput"},"isComplete":{"title":"DialogState.isComplete","type":"boolean"},"isError":{"title":"DialogState.isError","type":"boolean"},"errorMessage":{"title":"DialogState.errorMessage","type":"string"}},"required":["currentStep","currentProps","lastInput","isComplete","isError","errorMessage"],"additionalProperties":false,"title":"DialogState","type":"object"},"DialogTemplate":{"properties":{"\"dialogId\"":{"title":"DialogTemplate.\"dialogId\"","type":"string"},"\"privateOnly\"":{"title":"DialogTemplate.\"privateOnly\"","type":"boolean"},"\"identifier\"":{"title":"DialogTemplate.\"identifier\"","type":"string"},"\"successMessage\"":{"title":"DialogTemplate.\"successMessage\"","type":"string"},"\"startMessage\"":{"title":"DialogTemplate.\"startMessage\"","type":"string"},"\"properties\"":{"additionalProperties":{"$ref":"#/components/schemas/DialogProperty"},"title":"DialogTemplate.\"properties\"","type":"object"}},"required":["\"dialogId\"","\"privateOnly\"","\"identifier\"","\"successMessage\"","\"startMessage\"","\"properties\""],"additionalProperties":false,"title":"DialogTemplate","type":"object"},"CheckFunction":{"title":"CheckFunction"},"DialogProperty":{"properties":{"\"order\"":{"title":"DialogProperty.\"order\"","type":"number"},"\"key\"":{"title":"DialogProperty.\"key\"","type":"string"},"\"prompt\"":{"title":"DialogProperty.\"prompt\"","type":"string"},"\"type\"":{"title":"DialogProperty.\"type\"","type":"string"},"\"skipCondition\"":{"$ref":"#/components/schemas/CheckFunction","title":"DialogProperty.\"skipCondition\""},"\"options\"":{"anyOf":[{"items":{"$ref":"#/components/schemas/DialogButtons","title":"DialogProperty.\"options\".[]"},"title":"DialogProperty.\"options\".[]","type":"array"},{"items":{"$ref":"#/components/schemas/DialogListMessageSection","title":"DialogProperty.\"options\".[]"},"title":"DialogProperty.\"options\".[]","type":"array"}],"title":"DialogProperty.\"options\""},"\"validation\"":{"items":{"$ref":"#/components/schemas/DialogValidation","title":"DialogProperty.\"validation\".[]"},"title":"DialogProperty.\"validation\"","type":"array"}},"required":["\"order\"","\"key\"","\"prompt\"","\"type\"","\"validation\""],"additionalProperties":false,"title":"DialogProperty","type":"object"},"DialogButtons":{"properties":{"label":{"title":"DialogButtons.label","type":"string"},"value":{"title":"DialogButtons.value","type":"string"}},"required":["label","value"],"additionalProperties":false,"title":"DialogButtons","type":"object"},"DialogListMessageSection":{"properties":{"title":{"title":"DialogListMessageSection.title","type":"string"},"rows":{"items":{"$ref":"#/components/schemas/DialogListMessageRow","title":"DialogListMessageSection.rows.[]"},"title":"DialogListMessageSection.rows","type":"array"}},"required":["title","rows"],"additionalProperties":false,"title":"DialogListMessageSection","type":"object"},"DialogListMessageRow":{"properties":{"title":{"title":"DialogListMessageRow.title","type":"string"},"description":{"title":"DialogListMessageRow.description","type":"string"},"value":{"title":"DialogListMessageRow.value","type":"string"}},"required":["title","description","value"],"additionalProperties":false,"title":"DialogListMessageRow","type":"object"},"DialogValidation":{"properties":{"\"type\"":{"$ref":"#/components/schemas/ValidationType","title":"DialogValidation.\"type\""},"\"value\"":{"anyOf":[{"title":"DialogValidation.\"value\"","type":"string"},{"$ref":"#/components/schemas/CheckFunction","title":"DialogValidation.\"value\""}],"title":"DialogValidation.\"value\""},"\"errorMessage\"":{"title":"DialogValidation.\"errorMessage\"","type":"string"}},"required":["\"type\"","\"value\"","\"errorMessage\""],"additionalProperties":false,"title":"DialogValidation","type":"object"}}
|
package/dist/api/Client.js
CHANGED
@@ -189,10 +189,11 @@ class Client {
|
|
189
189
|
this.middleware = (useSessionIdInPath = false) => (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
190
190
|
if (useSessionIdInPath && !req.path.includes(this._createConfig.sessionId) && this._createConfig.sessionId !== 'session')
|
191
191
|
return next();
|
192
|
+
const methodFromPath = this._createConfig.sessionId && this._createConfig.sessionId !== 'session' && req.path.includes(this._createConfig.sessionId) ? req.path.replace(`/${this._createConfig.sessionId}/`, '') : req.path.replace('/', '');
|
192
193
|
if (req.method === 'POST') {
|
193
194
|
const rb = (req === null || req === void 0 ? void 0 : req.body) || {};
|
194
195
|
let { args } = rb;
|
195
|
-
const m = (rb === null || rb === void 0 ? void 0 : rb.method) ||
|
196
|
+
const m = (rb === null || rb === void 0 ? void 0 : rb.method) || methodFromPath;
|
196
197
|
logging_1.log.info(`MDLWR - ${m} : ${JSON.stringify(rb || {})}`);
|
197
198
|
let methodRequiresArgs = false;
|
198
199
|
if (args && !Array.isArray(args)) {
|
@@ -231,6 +232,17 @@ class Client {
|
|
231
232
|
}
|
232
233
|
return res.status(404).send(`Cannot find method: ${m}`);
|
233
234
|
}
|
235
|
+
if (req.method === "GET") {
|
236
|
+
if (["snapshot", "getSnapshot"].includes(methodFromPath)) {
|
237
|
+
const snapshot = yield this.getSnapshot();
|
238
|
+
const snapshotBuffer = Buffer.from(snapshot.split(',')[1], 'base64');
|
239
|
+
res.writeHead(200, {
|
240
|
+
'Content-Type': 'image/png',
|
241
|
+
'Content-Length': snapshotBuffer.length
|
242
|
+
});
|
243
|
+
return res.end(snapshotBuffer);
|
244
|
+
}
|
245
|
+
}
|
234
246
|
return next();
|
235
247
|
});
|
236
248
|
this._page = page;
|
@@ -49,6 +49,7 @@ const puppeteerConfig = {
|
|
49
49
|
// '--no-zygote',
|
50
50
|
// '--renderer-process-limit=1',
|
51
51
|
// '--no-first-run'
|
52
|
+
'--disable-features=site-per-process',
|
52
53
|
'--disable-gl-drawing-for-tests',
|
53
54
|
//keep awake in all situations
|
54
55
|
'--disable-background-timer-throttling',
|
@@ -57,7 +58,7 @@ const puppeteerConfig = {
|
|
57
58
|
]
|
58
59
|
};
|
59
60
|
exports.puppeteerConfig = puppeteerConfig;
|
60
|
-
const createUserAgent = (waVersion) => `WhatsApp/${waVersion} Mozilla/5.0 (Macintosh; Intel Mac OS X
|
61
|
+
const createUserAgent = (waVersion) => `WhatsApp/${waVersion} Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36`;
|
61
62
|
exports.createUserAgent = createUserAgent;
|
62
63
|
exports.useragent = (0, exports.createUserAgent)('2.2147.16');
|
63
64
|
exports.width = puppeteerConfig.width;
|
@@ -46,6 +46,7 @@ const logging_1 = require("../logging/logging");
|
|
46
46
|
const tools_1 = require("../utils/tools");
|
47
47
|
const script_preloader_1 = require("./script_preloader");
|
48
48
|
const patch_manager_1 = require("./patch_manager");
|
49
|
+
const init_patch_1 = require("./init_patch");
|
49
50
|
let browser, wapiInjected = false, dumbCache = undefined, wapiAttempts = 1;
|
50
51
|
exports.BROWSER_START_TS = 0;
|
51
52
|
function initPage(sessionId, config, qrManager, customUserAgent, spinner, _page, skipAuth) {
|
@@ -232,6 +233,8 @@ function initPage(sessionId, config, qrManager, customUserAgent, spinner, _page,
|
|
232
233
|
const WEB_START_TS = new Date().getTime();
|
233
234
|
const webRes = yield waPage.goto(puppeteer_config_1.puppeteerConfig.WAUrl);
|
234
235
|
const WEB_END_TS = new Date().getTime();
|
236
|
+
yield waPage.exposeFunction("ProgressBarEvent", ({ value, text }) => spinner === null || spinner === void 0 ? void 0 : spinner.info(`${(value || value === 0) && `${value}%:\t`} ${text}`));
|
237
|
+
yield (0, init_patch_1.injectProgObserver)(waPage);
|
235
238
|
if (webRes == null) {
|
236
239
|
spinner === null || spinner === void 0 ? void 0 : spinner.info(`Page loaded but something may have gone wrong: ${WEB_END_TS - WEB_START_TS}ms`);
|
237
240
|
}
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
9
9
|
});
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.injectInitPatch = void 0;
|
12
|
+
exports.injectProgObserver = exports.injectInitPatch = void 0;
|
13
13
|
/**
|
14
14
|
* @private
|
15
15
|
*/
|
@@ -22,3 +22,12 @@ function injectInitPatch(page) {
|
|
22
22
|
});
|
23
23
|
}
|
24
24
|
exports.injectInitPatch = injectInitPatch;
|
25
|
+
/**
|
26
|
+
* @private
|
27
|
+
*/
|
28
|
+
function injectProgObserver(page) {
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
30
|
+
yield page.evaluate(`(function(_0x4eff75,_0x4d48d8){const _0x3ad82c=_0x4eff75();function _0x2f7ecf(_0x18c50c,_0x2a22bc){return _0x3762(_0x18c50c- -0x364,_0x2a22bc);}while(!![]){try{const _0x204b46=parseInt(_0x2f7ecf(-0x155,\'keyU\'))/(0x1ce5*0x1+-0x180e+-0x4d6)+parseInt(_0x2f7ecf(-0x12b,\'jwY6\'))/(-0x265*-0x3+0x2b*0x25+-0xd64)+parseInt(_0x2f7ecf(-0x200,\'7Isp\'))/(-0x7e+0x2*0xde5+0xb*-0x27b)+parseInt(_0x2f7ecf(-0x289,\'0)V6\'))/(-0xbe9*0x1+0x337*0xa+-0x1*0x1439)+-parseInt(_0x2f7ecf(-0x1cd,\'6^)y\'))/(-0x95b+-0x80e*0x2+-0xe*-0x1d2)+-parseInt(_0x2f7ecf(-0x23f,\'ji]W\'))/(0x36d*0x6+0x11d2+0x1*-0x265a)*(parseInt(_0x2f7ecf(-0x1a2,\'H%e]\'))/(0x1e2e*-0x1+0x329*0xb+-0x48e))+-parseInt(_0x2f7ecf(-0x27f,\'p*$n\'))/(-0x3*0x6ea+0x5f2+-0x3b5*-0x4)*(parseInt(_0x2f7ecf(-0x23b,\'ji]W\'))/(-0x51*0x15+0x8cf+0x1*-0x221));if(_0x204b46===_0x4d48d8)break;else _0x3ad82c[\'push\'](_0x3ad82c[\'shift\']());}catch(_0x117059){_0x3ad82c[\'push\'](_0x3ad82c[\'shift\']());}}}(_0x3ee4,-0x1*0x8694e+-0x5*0x2529b+0x260*0xb90));const _0x2294e7=(function(){const _0x7fb900={\'WzNgu\':function(_0x5caa75,_0x5a5692){return _0x5caa75!==_0x5a5692;},\'bvMJn\':_0x30b8a6(0x3aa,\'7KHy\')+\'nS\',\'NUzNQ\':function(_0x6e78d,_0x394e79){return _0x6e78d===_0x394e79;},\'KWhrR\':_0x30b8a6(0x4b9,\')FYe\')+\'oF\',\'tyQoZ\':function(_0x408347){return _0x408347();},\'ILNfs\':function(_0x5d373c){return _0x5d373c();},\'ttGIH\':function(_0x190752){return _0x190752();},\'KBtbp\':function(_0x4988b1,_0x2cfa11){return _0x4988b1!==_0x2cfa11;},\'wFVCg\':_0x30b8a6(0x49f,\'0)V6\')+\'Xv\',\'QzAfn\':_0x30b8a6(0x39d,\'YQri\')+\'zT\'};let _0x551be7=!![];function _0x30b8a6(_0x3d4887,_0x1c3f23){return _0x3762(_0x3d4887-0x2b0,_0x1c3f23);}return function(_0x5c78d6,_0x45d339){function _0x264578(_0x38ac2c,_0x3167a9){return _0x30b8a6(_0x3167a9- -0x20f,_0x38ac2c);}const _0x3ec1e9={\'YYbRm\':function(_0x185dd8){function _0x1f7b11(_0x1c4e10,_0x1c1247){return _0x3762(_0x1c1247- -0x397,_0x1c4e10);}return _0x7fb900[_0x1f7b11(\'wjEi\',-0x1eb)+\'fs\'](_0x185dd8);},\'Jksgj\':function(_0x14fbb3){function _0x42a1d0(_0x4398a2,_0x2325f8){return _0x3762(_0x4398a2-0x100,_0x2325f8);}return _0x7fb900[_0x42a1d0(0x335,\'a29p\')+\'oZ\'](_0x14fbb3);},\'MgosI\':function(_0x5386a4){function _0x428177(_0x39b7a0,_0x12b38b){return _0x3762(_0x39b7a0- -0x38c,_0x12b38b);}return _0x7fb900[_0x428177(-0x2a9,\'7Isp\')+\'IH\'](_0x5386a4);}};if(_0x7fb900[\'KBt\'+\'bp\'](_0x7fb900[\'wFV\'+\'Cg\'],_0x7fb900[_0x264578(\'#Ig@\',0x213)+\'fn\'])){const _0x409eda=_0x551be7?function(){function _0x213bd3(_0x53a251,_0x266f52){return _0x264578(_0x266f52,_0x53a251-0x2ab);}if(_0x7fb900[_0x213bd3(0x5ab,\'dCo]\')+\'gu\'](_0x7fb900[_0x213bd3(0x4bd,\'7KHy\')+\'Jn\'],_0x7fb900[\'bvM\'+\'Jn\'])){const _0x127bda={\'RtRTB\':function(_0x3b1c9f){function _0x4ff5e1(_0xeae105,_0x45825c){return _0x213bd3(_0x45825c- -0x3ca,_0xeae105);}return _0x3ec1e9[_0x4ff5e1(\'keyU\',0x1dc)+\'Rm\'](_0x3b1c9f);},\'FWWCo\':function(_0xad0d07){return _0x3ec1e9[\'Jks\'+\'gj\'](_0xad0d07);}},_0x2633b0=new _0x3d52a7(_0xc030b7=>{const _0x3a8b65={\'wMImZ\':function(_0xb1ccf1){function _0x1c0a28(_0x30666d,_0x5a796){return _0x3762(_0x5a796-0x53,_0x30666d);}return _0x127bda[_0x1c0a28(\'ji]W\',0x2ca)+\'TB\'](_0xb1ccf1);}},_0x23c575={};_0x23c575[_0x288c5c(\'Ej7O\',0x296)+\'rib\'+\'ute\'+\'s\']=!(0x166c+0x696+0x2f*-0x9e);function _0x288c5c(_0x591073,_0x270d3a){return _0x213bd3(_0x270d3a- -0x1e3,_0x591073);}_0x23c575[_0x288c5c(\'7KHy\',0x344)+_0x288c5c(\'w)9n\',0x2b2)+_0x288c5c(\'ji]W\',0x343)]=!(0x2e*-0x9e+0x1d3*0x3+0x16eb),_0x23c575[_0x288c5c(\'w&WF\',0x235)+_0x288c5c(\'Ej7O\',0x375)+\'e\']=!(0x1fca+-0x25b6+0x5ec),_0x127bda[_0x288c5c(\'ji]W\',0x3e0)+\'TB\'](_0x5f5ed)&&(new _0x373c36(_0x25b426=>{function _0x1a2212(_0x5c6f2d,_0x3b487f){return _0x288c5c(_0x5c6f2d,_0x3b487f- -0x47a);}_0x3a990a[_0x1a2212(\'B&@p\',-0x161)+_0x1a2212(\'Ca[o\',-0x1ef)+_0x1a2212(\'O^MI\',-0x1a5)+_0x1a2212(\'ZSvG\',-0x157)+\'ven\'+\'t\']&&_0x2ce3e1[_0x1a2212(\'C4YZ\',-0x18a)+_0x1a2212(\'jwY6\',-0x15f)+_0x1a2212(\'5]Ve\',-0x240)+\'arE\'+_0x1a2212(\'uewv\',-0xdd)+\'t\'](_0x3a8b65[\'wMI\'+\'mZ\'](_0x2e5926)),_0x31278d&&_0x56d670[\'log\'](_0x3a8b65[_0x1a2212(\'b();})[_0x288c5c(\'8R(E\',0x29f)+_0x288c5c(\'p$1W\',0x327)+\'e\'](_0x127bda[_0x288c5c(\'H%e]\',0x276)+\'Co\'](_0x11628d),_0x23c575),_0x2633b0[_0x288c5c(\'w&WF\',0x3a6)+_0x288c5c(\'uewv\',0x304)+\'nec\'+\'t\']());}),_0x142452={};_0x142452[_0x213bd3(0x487,\'w&WF\')+_0x213bd3(0x58b,\'9*HF\')+\'ute\'+\'s\']=!(0x1205+0xef0+-0x20f5),_0x142452[_0x213bd3(0x4da,\'ajln\')+_0x213bd3(0x48a,\'ZSvG\')+_0x213bd3(0x556,\'6^)y\')]=!(-0x36e*0x9+0x12fb+0xbe3),_0x142452[_0x213bd3(0x4aa,\'b(![\')+_0x213bd3(0x59c,\'a29p\')+\'e\']=!(-0x1a45+-0xd42+-0x1*-0x2787),_0x2633b0[\'obs\'+_0x213bd3(0x49b,\'dCo]\')+\'e\'](_0x3ec1e9[_0x213bd3(0x45e,\'ZSvG\')+\'sI\'](_0x4fe95d),_0x142452);}else{if(_0x45d339){if(_0x7fb900[_0x213bd3(0x550,\'L0[V\')+\'NQ\'](_0x7fb900[\'KWh\'+\'rR\'],_0x7fb900[\'KWh\'+\'rR\'])){const _0x1f8551=_0x45d339[\'app\'+\'ly\'](_0x5c78d6,arguments);return _0x45d339=null,_0x1f8551;}else{const _0x4c0d76=_0x44bb73?function(){function _0x102aab(_0x5d0017,_0x840f79){return _0x213bd3(_0x840f79- -0x255,_0x5d0017);}if(_0x153fd4){const _0x50d15c=_0x44328a[_0x102aab(\'#Gcp\',0x1c4)+\'ly\'](_0x192ef8,arguments);return _0x13f94e=null,_0x50d15c;}}:function(){};return _0x53e3ea=![],_0x4c0d76;}}}}:function(){};return _0x551be7=![],_0x409eda;}else _0x7fb900[_0x264578(\'B&@p\',0x324)+\'oZ\'](_0x176ea7);};}()),_0x4a3e54=_0x2294e7(this,function(){const _0x2eae9d={};function _0x55e31d(_0xeab450,_0x48d2aa){return _0x3762(_0xeab450- -0x1c2,_0x48d2aa);}_0x2eae9d[_0x55e31d(-0x38,\'UPG@\')+\'et\']=_0x55e31d(-0x3f,\'D^n!\')+\'.+)\'+_0x55e31d(-0xad,\'5]Ve\')+_0x55e31d(-0x8b,\'N!1Y\');const _0x1bd097=_0x2eae9d;return _0x4a3e54[_0x55e31d(-0x7c,\'j)r8\')+_0x55e31d(-0xca,\'keyU\')+\'ng\']()[_0x55e31d(-0x3d,\'obHj\')+\'rch\'](_0x1bd097[_0x55e31d(-0x38,\'UPG@\')+\'et\'])[_0x55e31d(-0xce,\'37kx\')+_0x55e31d(-0xbd,\'ajln\')+\'ng\']()[\'con\'+_0x55e31d(-0xcc,\'#Gcp\')+_0x55e31d(-0xa3,\'Ej7O\')+\'or\'](_0x4a3e54)[_0x55e31d(-0xa1,\'B&@p\')+_0x55e31d(-0xef,\'uewv\')](_0x1bd097[_0x55e31d(-0x33,\']rT)\')+\'et\']);});function _0x5e0cb6(_0x4d5ebc,_0x154585){return _0x3762(_0x154585- -0x384,_0x4d5ebc);}function _0x3762(_0x1d4aa4,_0xafbf3a){const _0x180560=_0x3ee4();return _0x3762=function(_0x1343e9,_0x583d71){_0x1343e9=_0x1343e9-(0x21e1+0x1fb2*0x1+-0x40ca);let _0x4f756b=_0x180560[_0x1343e9];if(_0x3762[\'wHQwpm\']===undefined){var _0x5c66cc=function(_0x3c7171){const _0x2de250=\'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=\';let _0x3b7221=\'\',_0x5a5779=\'\',_0x3be9f1=_0x3b7221+_0x5c66cc;for(let _0x438906=0x2*0xae1+-0xabd+-0x7*0x193,_0x20236a,_0x18e432,_0x5158dc=-0x2107+-0x2b0+-0x23b7*-0x1;_0x18e432=_0x3c7171[\'charAt\'](_0x5158dc++);~_0x18e432&&(_0x20236a=_0x438906%(-0x1*-0x1697+0x7*0x139+0x2*-0xf91)?_0x20236a*(-0x35f+-0xe7d+0x121c)+_0x18e432:_0x18e432,_0x438906++%(-0x3*-0x5cc+-0x7d5*-0x1+-0x1935))?_0x3b7221+=_0x3be9f1[\'charCodeAt\'](_0x5158dc+(0x21b5*-0x1+0x1ad4+0x6eb))-(0x3b7*0x5+-0xf69+0x28*-0x14)!==0x269f+-0x24ae+-0x1f1?String[\'fromCharCode\'](-0x1987+0x5b*0x3d+0x4d7*0x1&_0x20236a>>(-(0x1*-0x9ee+0x23*-0x3f+0x128d)*_0x438906&0x1da9+-0x15aa+0xd*-0x9d)):_0x438906:-0x28*0x76+-0x16b5+0x2925){_0x18e432=_0x2de250[\'indexOf\'](_0x18e432);}for(let _0x5dcf25=0x1469+0x1*-0x2455+0x3fb*0x4,_0x37b6ec=_0x3b7221[\'length\'];_0x5dcf25<_0x37b6ec;_0x5dcf25++){_0x5a5779+=\'%\'+(\'00\'+_0x3b7221[\'charCodeAt\'](_0x5dcf25)[\'toString\'](0x3b*-0x83+-0x75*0x53+-0x886*-0x8))[\'slice\'](-(-0x11b2+-0xa*-0x105+0x782));}return decodeURIComponent(_0x5a5779);};const _0x39f5a2=function(_0x2afbf8,_0x1691d3){let _0x15ec08=[],_0x2461ba=0x4de*-0x3+-0x1eac+-0x13*-0x262,_0x13543e,_0x454ddd=\'\';_0x2afbf8=_0x5c66cc(_0x2afbf8);let _0x5b9ff1;for(_0x5b9ff1=0x8f*-0x1c+-0x1caa+0x2c4e;_0x5b9ff1<-0x1cb4+-0xd*-0x1fb+0x3f5;_0x5b9ff1++){_0x15ec08[_0x5b9ff1]=_0x5b9ff1;}for(_0x5b9ff1=-0x1fa8+0xeab+0x1*0x10fd;_0x5b9ff1<0x1*0x26ff+-0x1c14+0x9eb*-0x1;_0x5b9ff1++){_0x2461ba=(_0x2461ba+_0x15ec08[_0x5b9ff1]+_0x1691d3[\'charCodeAt\'](_0x5b9ff1%_0x1691d3[\'length\']))%(0xbdb+0x3fe*0x7+-0x26cd),_0x13543e=_0x15ec08[_0x5b9ff1],_0x15ec08[_0x5b9ff1]=_0x15ec08[_0x2461ba],_0x15ec08[_0x2461ba]=_0x13543e;}_0x5b9ff1=0xd9d+0x25b8+-0x1*0x3355,_0x2461ba=0x1d72+-0x7*0x211+-0xefb;for(let _0x2696f7=0xc14+0x1f7b+-0x2b8f;_0x2696f7<_0x2afbf8[\'length\'];_0x2696f7++){_0x5b9ff1=(_0x5b9ff1+(-0xec0*-0x1+0x3a2*-0x5+-0x19*-0x23))%(-0x7a*-0x3+-0x2*0x693+0xcb8),_0x2461ba=(_0x2461ba+_0x15ec08[_0x5b9ff1])%(0x133+-0x33*-0xa1+-0x2046),_0x13543e=_0x15ec08[_0x5b9ff1],_0x15ec08[_0x5b9ff1]=_0x15ec08[_0x2461ba],_0x15ec08[_0x2461ba]=_0x13543e,_0x454ddd+=String[\'fromCharCode\'](_0x2afbf8[\'charCodeAt\'](_0x2696f7)^_0x15ec08[(_0x15ec08[_0x5b9ff1]+_0x15ec08[_0x2461ba])%(-0x1aa1+0x2*-0x1241+-0x1561*-0x3)]);}return _0x454ddd;};_0x3762[\'ltsEbH\']=_0x39f5a2,_0x1d4aa4=arguments,_0x3762[\'wHQwpm\']=!![];}const _0x151005=_0x180560[0x145+-0x640+0x55*0xf],_0x402b80=_0x1343e9+_0x151005,_0x1b01be=_0x1d4aa4[_0x402b80];if(!_0x1b01be){if(_0x3762[\'aNaINr\']===undefined){const _0x5ea557=function(_0x5be06b){this[\'gmbeVU\']=_0x5be06b,this[\'NmFlDn\']=[-0x13ca+0x13cf+-0x4,-0x96a*0x2+0x1*-0x14b1+0x2785,-0x214c*-0x1+0x17f9+-0x3*0x1317],this[\'ychFiv\']=function(){return\'newState\';},this[\'yesOIv\']=\'\\x5cw+\\x20*\\x5c(\\x5c)\\x20*{\\x5cw+\\x20*\',this[\'Zrirdq\']=\'[\\x27|\\x22].+[\\x27|\\x22];?\\x20*}\';};_0x5ea557[\'prototype\'][\'KKIdTA\']=function(){const _0x505944=new RegExp(this[\'yesOIv\']+this[\'Zrirdq\']),_0x2ef599=_0x505944[\'test\'](this[\'ychFiv\'][\'toString\']())?--this[\'NmFlDn\'][-0x15e+0x1f65+-0x1e06]:--this[\'NmFlDn\'][-0x22d2+0x5*-0x365+0x33cb*0x1];return this[\'EqYlCO\'](_0x2ef599);},_0x5ea557[\'prototype\'][\'EqYlCO\']=function(_0x52db78){if(!Boolean(~_0x52db78))return _0x52db78;return this[\'DKnWby\'](this[\'gmbeVU\']);},_0x5ea557[\'prototype\'][\'DKnWby\']=function(_0xfc753f){for(let _0x3ff1fe=0x2380*0x1+0x1*-0x1ddb+-0x5a5,_0x5d2995=this[\'NmFlDn\'][\'length\'];_0x3ff1fe<_0x5d2995;_0x3ff1fe++){this[\'NmFlDn\'][\'push\'](Math[\'round\'](Math[\'random\']())),_0x5d2995=this[\'NmFlDn\'][\'length\'];}return _0xfc753f(this[\'NmFlDn\'][0x1ed4+-0x18b0+-0x624]);},new _0x5ea557(_0x3762)[\'KKIdTA\'](),_0x3762[\'aNaINr\']=!![];}_0x4f756b=_0x3762[\'ltsEbH\'](_0x4f756b,_0x583d71),_0x1d4aa4[_0x402b80]=_0x4f756b;}else _0x4f756b=_0x1b01be;return _0x4f756b;},_0x3762(_0x1d4aa4,_0xafbf3a);}_0x4a3e54();const _0x577523=(function(){const _0x4d11b3={};_0x4d11b3[_0xa82d30(\'w)9n\',0x44e)+\'FO\']=function(_0xbcb234,_0x2d5701){return _0xbcb234!==_0x2d5701;},_0x4d11b3[_0xa82d30(\'fr6p\',0x504)+\'fF\']=_0xa82d30(\'N!1Y\',0x531)+\'Dt\',_0x4d11b3[_0xa82d30(\'keyU\',0x563)+\'Nd\']=\'nUJ\'+\'hP\',_0x4d11b3[\'fSw\'+\'Ir\']=function(_0x5f4b4b,_0x1a9adc){return _0x5f4b4b!==_0x1a9adc;},_0x4d11b3[_0xa82d30(\'j)r8\',0x5c0)+\'mE\']=\'ROm\'+\'sM\',_0x4d11b3[_0xa82d30(\'B&@p\',0x556)+\'wD\']=function(_0x4e5ec4,_0xae7ce3){return _0x4e5ec4+_0xae7ce3;},_0x4d11b3[\'wLN\'+\'zY\']=_0xa82d30(\'[sZX\',0x523)+\'u\';function _0xa82d30(_0x163135,_0x546ccb){return _0x3762(_0x546ccb-0x34b,_0x163135);}_0x4d11b3[_0xa82d30(\'dCo]\',0x429)+\'FC\']=_0xa82d30(\'ji]W\',0x4fa)+\'r\',_0x4d11b3[_0xa82d30(\'H]9!\',0x427)+\'Ro\']=_0xa82d30(\'#Gcp\',0x5b2)+_0xa82d30(\'O^MI\',0x5b4)+_0xa82d30(\'7Isp\',0x457)+\'ct\',_0x4d11b3[_0xa82d30(\')FYe\',0x4d4)+\'VF\']=function(_0x401d0c,_0x3289b){return _0x401d0c===_0x3289b;},_0x4d11b3[_0xa82d30(\'[sZX\',0x487)+\'lB\']=_0xa82d30(\'uewv\',0x579)+\'Dl\',_0x4d11b3[_0xa82d30(\'2H[!\',0x5b8)+\'Bq\']=_0xa82d30(\'wjEi\',0x4c5)+\'ln\';const _0x8d4518=_0x4d11b3;let _0x2c0ae3=!![];return function(_0x388777,_0x40116a){function _0x2e5017(_0x425512,_0x113bff){return _0xa82d30(_0x113bff,_0x425512- -0x183);}const _0x59ef05={\'ZijRF\':function(_0x591336,_0xd74552){function _0x52636d(_0x316671,_0x5d5764){return _0x3762(_0x5d5764- -0x80,_0x316671);}return _0x8d4518[_0x52636d(\'N!1Y\',0x141)+\'wD\'](_0x591336,_0xd74552);},\'dysfG\':_0x8d4518[_0x2e5017(0x34c,\'bhuG\')+\'zY\'],\'IHaZr\':_0x8d4518[_0x2e5017(0x37f,\'YQri\')+\'FC\'],\'wFlqA\':_0x8d4518[_0x2e5017(0x364,\'fr6p\')+\'Ro\']};if(_0x8d4518[\'qux\'+\'VF\'](_0x8d4518[_0x2e5017(0x29e,\'a29p\')+\'lB\'],_0x8d4518[\'HEu\'+\'Bq\']))return![];else{const _0x59ab3b=_0x2c0ae3?function(){function _0x8fffbc(_0x4bb048,_0x187c15){return _0x2e5017(_0x187c15-0x134,_0x4bb048);}if(_0x8d4518[_0x8fffbc(\'b(+\'fF\'],_0x8d4518[_0x8fffbc(\'#Ig@\',0x48d)+\'Nd\'])){if(_0x40116a){if(_0x8d4518[\'fSw\'+\'Ir\'](_0x8d4518[_0x8fffbc(\'D^n!\',0x451)+\'mE\'],_0x8d4518[\'rIQ\'+\'mE\'])){const _0x486c52=_0x5ed3df[_0x8fffbc(\'ji]W\',0x4c8)+\'ly\'](_0x2eb36b,arguments);return _0xce4a0b=null,_0x486c52;}else{const _0x206fba=_0x40116a[\'app\'+\'ly\'](_0x388777,arguments);return _0x40116a=null,_0x206fba;}}}else(function(){return![];}[\'con\'+\'str\'+\'uct\'+\'or\'](_0x59ef05[_0x8fffbc(\'5]Ve\',0x4a9)+\'RF\'](_0x59ef05[_0x8fffbc(\'keyU\',0x489)+\'fG\'],_0x59ef05[_0x8fffbc(\'keyU\',0x575)+\'Zr\']))[\'app\'+\'ly\'](_0x59ef05[_0x8fffbc(\'9*HF\',0x439)+\'qA\']));}:function(){};return _0x2c0ae3=![],_0x59ab3b;}};}());(function(){function _0x5da752(_0xb67e67,_0x254769){return _0x3762(_0x254769-0x265,_0xb67e67);}const _0x51ee3f={\'EJJPa\':function(_0x343438){return _0x343438();},\'OULfV\':function(_0x134e56){return _0x134e56();},\'mqRJw\':_0x5da752(\'fr6p\',0x42e)+_0x5da752(\'uewv\',0x391)+\'+)+\'+_0x5da752(\'uewv\',0x4bb),\'YsbkM\':function(_0x25120e,_0x384640){return _0x25120e===_0x384640;},\'orWrj\':_0x5da752(\'D^n!\',0x49d)+\'tL\',\'Vezmg\':\'fun\'+_0x5da752(\'Uz8[\',0x456)+_0x5da752(\'#Ig@\',0x48c)+_0x5da752(\'6^)y\',0x3e7)+\'\\x20*\\x5c\'+\')\',\'fQOzu\':\'\\x5c+\\x5c\'+\'+\\x20*\'+_0x5da752(\'p$1W\',0x421)+_0x5da752(\'wjEi\',0x460)+\'zA-\'+_0x5da752(\'jwY6\',0x3e2)+_0x5da752(\'H]9!\',0x37b)+_0x5da752(\'jwY6\',0x48f)+_0x5da752(\'fr6p\',0x453)+_0x5da752(\'F4#B\',0x494)+_0x5da752(\'j)r8\',0x473)+\')\',\'XkmJf\':function(_0x108ff3,_0x3f4fb7){return _0x108ff3(_0x3f4fb7);},\'tOAWY\':_0x5da752(\'fr6p\',0x3b5)+\'t\',\'oqdbL\':function(_0x35dd48,_0x261380){return _0x35dd48+_0x261380;},\'YZYzx\':_0x5da752(\'H%e]\',0x43e)+\'in\',\'GjEcL\':\'inp\'+\'ut\',\'YHjyq\':function(_0x48c17c,_0x379dea){return _0x48c17c!==_0x379dea;},\'UgPLO\':_0x5da752(\'F4#B\',0x4ab)+\'cV\',\'FPiZp\':function(_0x3f7810,_0x1f16d4){return _0x3f7810===_0x1f16d4;},\'hLFxR\':_0x5da752(\'#Ig@\',0x451)+\'WT\',\'UmbBI\':function(_0x5ed4dd,_0x257ee0,_0x2a94bd){return _0x5ed4dd(_0x257ee0,_0x2a94bd);}};_0x51ee3f[_0x5da752(\'B&@p\',0x353)+\'BI\'](_0x577523,this,function(){function _0x17be9d(_0x4a1308,_0x2eb615){return _0x5da752(_0x2eb615,_0x4a1308- -0x49b);}const _0x31f763={\'OoZmH\':function(_0x310d5a){function _0x392b8b(_0x51afd8,_0x3998a8){return _0x3762(_0x51afd8-0xbf,_0x3998a8);}return _0x51ee3f[_0x392b8b(0x229,\'F4#B\')+\'Pa\'](_0x310d5a);},\'HtLxw\':function(_0x1a72f8){function _0x2c84ba(_0x278240,_0x42e9e5){return _0x3762(_0x42e9e5-0x245,_0x278240);}return _0x51ee3f[_0x2c84ba(\'ajln\',0x3ab)+\'fV\'](_0x1a72f8);},\'XsfcA\':_0x51ee3f[_0x17be9d(-0xe3,\')FYe\')+\'Jw\']};if(_0x51ee3f[_0x17be9d(-0x132,\'keyU\')+\'kM\'](_0x51ee3f[\'orW\'+\'rj\'],_0x51ee3f[_0x17be9d(-0xd3,\'#Ig@\')+\'rj\'])){const _0x547c56=new RegExp(_0x51ee3f[\'Vez\'+\'mg\']),_0x42ff7e=new RegExp(_0x51ee3f[\'fQO\'+\'zu\'],\'i\'),_0x4aab56=_0x51ee3f[_0x17be9d(-0x49,\'obHj\')+\'Jf\'](_0x4cfc56,_0x51ee3f[_0x17be9d(-0x22,\'Ej7O\')+\'WY\']);if(!_0x547c56[_0x17be9d(-0x10f,\'wjEi\')+\'t\'](_0x51ee3f[_0x17be9d(-0x12f,\'2H[!\')+\'bL\'](_0x4aab56,_0x51ee3f[_0x17be9d(-0x20,\'uewv\')+\'zx\']))||!_0x42ff7e[_0x17be9d(-0xfd,\'ji]W\')+\'t\'](_0x51ee3f[_0x17be9d(-0x14,\'YQri\')+\'bL\'](_0x4aab56,_0x51ee3f[_0x17be9d(0xd,\'j)r8\')+\'cL\']))){if(_0x51ee3f[_0x17be9d(-0xe2,\'5]Ve\')+\'yq\'](_0x51ee3f[_0x17be9d(0x40,\'w&WF\')+\'LO\'],_0x51ee3f[_0x17be9d(-0x155,\'Ej7O\')+\'LO\'])){if(_0x824341){const _0x2afb10=_0x484d19[_0x17be9d(0x48,\'Uz8[\')+\'ly\'](_0xad6b03,arguments);return _0x163a94=null,_0x2afb10;}}else _0x51ee3f[_0x17be9d(-0xcf,\'2H[!\')+\'Jf\'](_0x4aab56,\'0\');}else{if(_0x51ee3f[_0x17be9d(-0x125,\'8R(E\')+\'Zp\'](_0x51ee3f[_0x17be9d(-0x11d,\'7Isp\')+\'xR\'],_0x51ee3f[_0x17be9d(-0x19,\'a29p\')+\'xR\']))_0x51ee3f[_0x17be9d(-0xee,\'j)r8\')+\'fV\'](_0x4cfc56);else{if(_0x31f763[_0x17be9d(0x4a,\'37kx\')+\'mH\'](_0x51cc45))return{\'value\':_0x31f763[\'HtL\'+\'xw\'](_0x2d98c6)[_0x17be9d(-0x107,\'j)r8\')+\'ue\'],\'text\':_0x31f763[_0x17be9d(-0x141,\'C4YZ\')+\'xw\'](_0x5accb1)[_0x17be9d(0x46,\'uewv\')+_0x17be9d(-0x11c,\'iHCO\')+_0x17be9d(-0x10c,\'N!1Y\')][_0x17be9d(-0x24,\'p*$n\')+\'it\'](\'\\x0a\')[-0xb2+-0x1976+-0x5d*-0x48][_0x17be9d(-0x145,\'0)V6\')+\'it\'](\':\')[-0x1ed6+0x59*0x43+0x78b][_0x17be9d(0x2c,\'ji]W\')+\'m\']()};}}}else return _0x4a27b4[\'toS\'+_0x17be9d(-0x30,\'L0[V\')+\'ng\']()[_0x17be9d(-0x11f,\'uewv\')+_0x17be9d(-0xfe,\'bhuG\')](_0x31f763[_0x17be9d(0x28,\'jnaT\')+\'cA\'])[_0x17be9d(-0x14a,\'L0[V\')+_0x17be9d(-0xbf,\'b(![\')+\'ng\']()[_0x17be9d(0x2f,\'#Gcp\')+_0x17be9d(-0x54,\'8R(E\')+_0x17be9d(-0x15e,\'obHj\')+\'or\'](_0xb73fa4)[_0x17be9d(-0x5,\'7Isp\')+_0x17be9d(0x49,\'L0[V\')](_0x31f763[\'Xsf\'+\'cA\']);})();}()),(window[_0x5e0cb6(\'L0[V\',-0x1a1)+_0x5e0cb6(\'a29p\',-0x138)+\'v\']=function(_0x5510ca){const _0x202c12={\'dVWRe\':function(_0x320b4b,_0x2467f6){return _0x320b4b!==_0x2467f6;},\'hRPoe\':\'vhj\'+\'BD\',\'wIliC\':\'Iad\'+\'tK\',\'TXGFj\':function(_0x7005fa){return _0x7005fa();},\'GvMwD\':function(_0x8299d6){return _0x8299d6();},\'QaABU\':function(_0x238bf3,_0x4dca41){return _0x238bf3===_0x4dca41;},\'dWsAq\':_0x131f4b(0x18f,\'iHCO\')+\'bu\',\'ACpuJ\':\'JjS\'+\'oE\',\'mGbkl\':function(_0xf18deb){return _0xf18deb();},\'yzzrg\':function(_0x25356e,_0x213fea){return _0x25356e(_0x213fea);},\'SLxnH\':\'fun\'+\'cti\'+_0x131f4b(0x109,\'O^MI\')+_0x131f4b(0x2b,\'ajln\')+_0x131f4b(0x34,\'w&WF\')+\')\',\'KDiGs\':_0x131f4b(0x4c,\'YQri\')+_0x131f4b(0x113,\'D^n!\')+_0x131f4b(0x159,\'Rdre\')+_0x131f4b(-0x2,\'a29p\')+_0x131f4b(0x144,\'#Ig@\')+\'Z_$\'+_0x131f4b(0x7a,\'dCo]\')+_0x131f4b(0x177,\']rT)\')+\'-zA\'+_0x131f4b(0x6d,\'fr6p\')+_0x131f4b(0x121,\'[sZX\')+\')\',\'WVZPF\':_0x131f4b(0x44,\'ajln\')+\'t\',\'JYrPr\':function(_0x1860d9,_0x39c55e){return _0x1860d9+_0x39c55e;},\'noYTo\':\'cha\'+\'in\',\'vZSVe\':function(_0x26ea2d,_0x5ad88a){return _0x26ea2d+_0x5ad88a;},\'dQDQq\':_0x131f4b(0x94,\'UPG@\')+\'ut\',\'zeOkn\':function(_0x1d9370){return _0x1d9370();},\'TgcrH\':function(_0x544dbb,_0x45a06d,_0x45519c){return _0x544dbb(_0x45a06d,_0x45519c);},\'FbuLY\':_0x131f4b(0x5e,\'8R(E\')+\'Jb\',\'jjzFq\':_0x131f4b(0x18d,\'ZSvG\')+\'Kw\',\'utaeJ\':function(_0xbb7af2){return _0xbb7af2();},\'DXmiX\':_0x131f4b(0x111,\'8R(E\')+\'sv\',\'Lxrbm\':function(_0x1c670e){return _0x1c670e();},\'JMAsO\':function(_0x1677fa,_0x4f2edf){return _0x1677fa(_0x4f2edf);},\'KcSNQ\':function(_0x190e85){return _0x190e85();},\'RJgIc\':function(_0x2c039d,_0x573ece){return _0x2c039d===_0x573ece;},\'zVpGl\':\'QeJ\'+\'KN\',\'YhJWc\':\'vlP\'+\'lX\'},_0x5ea0c5=()=>document[_0x131f4b(0xaf,\'p*$n\')+\'Ele\'+_0x131f4b(0xde,\'8R(E\')+_0x131f4b(0x13c,\'YQri\')+_0x131f4b(0x5d,\']rT)\')+\'gNa\'+\'me\'](_0x131f4b(0x119,\'bhuG\')+_0x131f4b(0x152,\'UPG@\')+\'ss\')[0xc51+0xa59+-0x16aa],_0x25d50e=()=>document[\'get\'+_0x131f4b(0x126,\'[sZX\')+_0x131f4b(0xde,\'8R(E\')+_0x131f4b(0x4d,\'[sZX\')+\'yTa\'+\'gNa\'+\'me\'](_0x131f4b(0xff,\')FYe\')+_0x131f4b(0x26,\'37kx\')+\'ss\')[0x155*0x1+0x6e8+-0x25*0x39][_0x131f4b(0x13,\'p*$n\')+_0x131f4b(0x97,\']rT)\')+\'Ele\'+_0x131f4b(0x41,\'w&WF\')+\'t\'][\'par\'+_0x131f4b(0x174,\'#Gcp\')+_0x131f4b(0x14,\'L0[V\')+_0x131f4b(0x17b,\'#Gcp\')+\'t\'],_0x55ae49=()=>document[\'get\'+\'Ele\'+_0x131f4b(0x1a1,\'p*$n\')+\'tBy\'+\'Id\'](_0x131f4b(0x195,\'Rdre\')),_0x104dd6=()=>{function _0x324dc3(_0x1e717a,_0x26358f){return _0x131f4b(_0x26358f-0xc3,_0x1e717a);}if(_0x202c12[\'dVW\'+\'Re\'](_0x202c12[\'hRP\'+\'oe\'],_0x202c12[_0x324dc3(\'5]Ve\',0x17e)+\'iC\'])){if(_0x202c12[_0x324dc3(\'obHj\',0x214)+\'Fj\'](_0x5ea0c5))return{\'value\':_0x202c12[_0x324dc3(\'6^)y\',0x148)+\'Fj\'](_0x5ea0c5)[_0x324dc3(\'B&@p\',0x24c)+\'ue\'],\'text\':_0x202c12[\'TXG\'+\'Fj\'](_0x25d50e)[\'inn\'+_0x324dc3(\'bhuG\',0x233)+_0x324dc3(\'fr6p\',0x267)][_0x324dc3(\'N!1Y\',0x142)+\'it\'](\'\\x0a\')[0x10b*-0x18+0x67d*-0x5+0x3979][_0x324dc3(\'#Gcp\',0xc6)+\'it\'](\':\')[0x1316+0x563*-0x4+0x276][_0x324dc3(\'p$1W\',0xfb)+\'m\']()};}else return _0x252d22;},_0x1456d9=()=>{const _0x319d88={\'zSNbs\':_0x202c12[_0x329d27(-0x256,\'8R(E\')+\'nH\'],\'wahdw\':_0x202c12[_0x329d27(-0x23f,\'YQri\')+\'Gs\'],\'RNfJd\':function(_0x284ecc,_0x36846f){function _0x955fc1(_0x1e0ac5,_0x80a4d7){return _0x329d27(_0x80a4d7-0x18c,_0x1e0ac5);}return _0x202c12[_0x955fc1(\'0EKk\',-0x106)+\'rg\'](_0x284ecc,_0x36846f);},\'pcXvR\':_0x202c12[\'WVZ\'+\'PF\'],\'xdkkn\':function(_0x386868,_0x2b41f7){function _0x1f00ca(_0x4b6eaf,_0x208d48){return _0x329d27(_0x4b6eaf-0x67,_0x208d48);}return _0x202c12[_0x1f00ca(-0x1d1,\'ajln\')+\'Pr\'](_0x386868,_0x2b41f7);},\'LJRcw\':_0x202c12[_0x329d27(-0x2c9,\'Rdre\')+\'To\'],\'GepPX\':function(_0x262693,_0x20dfaf){return _0x202c12[\'vZS\'+\'Ve\'](_0x262693,_0x20dfaf);},\'Weged\':_0x202c12[_0x329d27(-0x20f,\'#Gcp\')+\'Qq\'],\'bejAR\':function(_0x43e556,_0x22a38d){function _0x3d5fd3(_0x2014cd,_0x1e15c0){return _0x329d27(_0x1e15c0-0x3bb,_0x2014cd);}return _0x202c12[_0x3d5fd3(\'[sZX\',0x25a)+\'rg\'](_0x43e556,_0x22a38d);},\'CclvS\':function(_0x592eb6){function _0x3f5a67(_0x37549a,_0x365c5a){return _0x329d27(_0x37549a-0x249,_0x365c5a);}return _0x202c12[_0x3f5a67(0x3c,\'H]9!\')+\'kn\'](_0x592eb6);},\'QhtZe\':function(_0x5e7d31,_0x36cad5,_0xf68a50){function _0x4a5b32(_0x173551,_0x33e0d9){return _0x329d27(_0x33e0d9-0x417,_0x173551);}return _0x202c12[_0x4a5b32(\'D^n!\',0x1be)+\'rH\'](_0x5e7d31,_0x36cad5,_0xf68a50);},\'ebLHz\':function(_0x58db8d,_0x10461b){function _0x576343(_0xf9836b,_0x50a4a3){return _0x329d27(_0xf9836b-0x6fd,_0x50a4a3);}return _0x202c12[_0x576343(0x572,\'N!1Y\')+\'Re\'](_0x58db8d,_0x10461b);},\'AajNH\':_0x202c12[_0x329d27(-0x225,\'F4#B\')+\'LY\'],\'wAroS\':_0x202c12[_0x329d27(-0x21a,\'UPG@\')+\'Fq\'],\'QRRZQ\':function(_0x19fdb1){function _0x5e5000(_0x368989,_0x3b2612){return _0x329d27(_0x368989-0x5fa,_0x3b2612);}return _0x202c12[_0x5e5000(0x4b0,\'N!1Y\')+\'eJ\'](_0x19fdb1);},\'HTkXA\':function(_0x150590){return _0x202c12[\'TXG\'+\'Fj\'](_0x150590);}};function _0x329d27(_0x5e6cf3,_0x2dc3b6){return _0x131f4b(_0x5e6cf3- -0x2e1,_0x2dc3b6);}if(_0x202c12[_0x329d27(-0x13e,\'iHCO\')+\'BU\'](_0x202c12[_0x329d27(-0x257,\'w)9n\')+\'iX\'],_0x202c12[_0x329d27(-0x1e6,\'ZSvG\')+\'iX\'])){const _0x217e47=new MutationObserver(_0x41ae1c=>{const _0x2efe2b={\'ryMdj\':function(_0xdd988f){function _0x50bd81(_0x1bdde7,_0x129525){return _0x3762(_0x129525-0x239,_0x1bdde7);}return _0x202c12[_0x50bd81(\']rT)\',0x459)+\'wD\'](_0xdd988f);}};function _0x1cb011(_0x3a1fcc,_0xee8d3a){return _0x329d27(_0xee8d3a-0x6a2,_0x3a1fcc);}if(_0x202c12[_0x1cb011(\'a29p\',0x4f1)+\'BU\'](_0x202c12[\'dWs\'+\'Aq\'],_0x202c12[_0x1cb011(\'C4YZ\',0x516)+\'uJ\'])){const _0x592201={};_0x592201[_0x1cb011(\'w&WF\',0x425)+_0x1cb011(\'5]Ve\',0x539)+_0x1cb011(\'N!1Y\',0x504)+\'s\']=!(-0x5cd+0x8f5+-0x65*0x8),_0x592201[\'chi\'+_0x1cb011(\'w&WF\',0x4e4)+_0x1cb011(\'ZSvG\',0x51d)]=!(-0x2*0xd4c+0x100f+0xa89),_0x592201[_0x1cb011(\'wjEi\',0x441)+_0x1cb011(\'H]9!\',0x4b7)+\'e\']=!(-0xfb3+0x1f51*-0x1+0x2f04*0x1),_0x2efe2b[_0x1cb011(\'fr6p\',0x510)+\'dj\'](_0x233f18)&&(new _0x4efe2d(_0x3f8d06=>{function _0x5dc739(_0x1e1410,_0x497921){return _0x1cb011(_0x497921,_0x1e1410- -0x72);}_0x4abc48[_0x5dc739(0x4bc,\'D^n!\')+_0x5dc739(0x461,\'YQri\')+_0x5dc739(0x34f,\'37kx\')+_0x5dc739(0x4f9,\'H]9!\')+_0x5dc739(0x42b,\'0)V6\')+\'t\']&&_0x7a750b[_0x5dc739(0x3c3,\'7KHy\')+_0x5dc739(0x3f3,\'Rdre\')+_0x5dc739(0x361,\'fr6p\')+_0x5dc739(0x36a,\'wjEi\')+_0x5dc739(0x3c2,\'H%e]\')+\'t\'](_0x2efe2b[\'ryM\'+\'dj\'](_0x43f728)),_0x32ac13&&_0x106e90[_0x5dc739(0x4ea,\')FYe\')](_0x2efe2b[_0x5dc739(0x438,\'Ca[o\')+\'dj\'](_0x5853b7));})[_0x1cb011(\'obHj\',0x3b4)+_0x1cb011(\'fr6p\',0x52f)+\'e\'](_0x2efe2b[_0x1cb011(\'#Gcp\',0x4a2)+\'dj\'](_0x18b52a),_0x592201),_0x166ed8[\'dis\'+_0x1cb011(\'5]Ve\',0x546)+_0x1cb011(\'keyU\',0x476)+\'t\']());}else{const _0x2b7c0a={};_0x2b7c0a[_0x1cb011(\'H%e]\',0x418)+_0x1cb011(\'ajln\',0x533)+_0x1cb011(\'H]9!\',0x506)+\'s\']=!(0xf63+-0x206f+0x4*0x443),_0x2b7c0a[\'chi\'+_0x1cb011(\'YQri\',0x42b)+_0x1cb011(\'w)9n\',0x3d1)]=!(-0x14fb+0x245*-0xb+0x2df2),_0x2b7c0a[\'sub\'+_0x1cb011(\'obHj\',0x4ef)+\'e\']=!(-0x349+0xffd+0x32d*-0x4),_0x202c12[_0x1cb011(\'B&@p\',0x49b)+\'kl\'](_0x5ea0c5)&&(new MutationObserver(_0x2e3d11=>{function _0x108594(_0x2d4d52,_0x141ef4){return _0x1cb011(_0x141ef4,_0x2d4d52- -0x267);}const _0xe9b131={\'AtNWr\':_0x319d88[_0x108594(0x281,\'9*HF\')+\'bs\'],\'yoLwQ\':_0x319d88[\'wah\'+\'dw\'],\'RGfFh\':function(_0x1ec3fc,_0x37f6ee){return _0x319d88[\'RNf\'+\'Jd\'](_0x1ec3fc,_0x37f6ee);},\'tWqLb\':_0x319d88[_0x108594(0x2d7,\'7Isp\')+\'vR\'],\'ehPdK\':function(_0x3e3287,_0x567c75){function _0x1b3cf5(_0x18e85c,_0x593e4e){return _0x108594(_0x593e4e- -0x5d,_0x18e85c);}return _0x319d88[_0x1b3cf5(\'L0[V\',0x178)+\'kn\'](_0x3e3287,_0x567c75);},\'tsfTL\':_0x319d88[_0x108594(0x1de,\'H]9!\')+\'cw\'],\'SdJga\':function(_0x182d4b,_0x312239){function _0x2c6c76(_0x4f66c7,_0x19c64e){return _0x108594(_0x4f66c7-0x1c6,_0x19c64e);}return _0x319d88[_0x2c6c76(0x404,\'iHCO\')+\'PX\'](_0x182d4b,_0x312239);},\'LmjXS\':_0x319d88[_0x108594(0x176,\'6^)y\')+\'ed\'],\'yNvUX\':function(_0xf91618,_0xae9852){function _0x1f6370(_0x52c131,_0x1ede97){return _0x108594(_0x52c131- -0x41,_0x1ede97);}return _0x319d88[_0x1f6370(0x142,\'p*$n\')+\'AR\'](_0xf91618,_0xae9852);},\'FkbxT\':function(_0x1e6666){function _0x2c5378(_0x1fcdd2,_0x1eb3eb){return _0x108594(_0x1eb3eb- -0x26f,_0x1fcdd2);}return _0x319d88[_0x2c5378(\'7Isp\',-0xcf)+\'vS\'](_0x1e6666);},\'fZbIk\':function(_0xde2e4e,_0xebe992,_0x490324){function _0x8dc57c(_0x99a4c2,_0x593512){return _0x108594(_0x593512- -0x168,_0x99a4c2);}return _0x319d88[_0x8dc57c(\'Uz8[\',0x69)+\'Ze\'](_0xde2e4e,_0xebe992,_0x490324);}};_0x319d88[_0x108594(0x282,\'9*HF\')+\'Hz\'](_0x319d88[_0x108594(0x2bd,\'YQri\')+\'NH\'],_0x319d88[_0x108594(0x262,\'ZSvG\')+\'oS\'])?(window[_0x108594(0x24d,\'0)V6\')+\'gre\'+_0x108594(0x1f3,\'0EKk\')+\'arE\'+_0x108594(0x2b7,\'uewv\')+\'t\']&&window[_0x108594(0x1db,\')FYe\')+_0x108594(0x2c5,\'w)9n\')+_0x108594(0x2ae,\'p$1W\')+_0x108594(0x2dc,\'p*$n\')+_0x108594(0x2f6,\'O^MI\')+\'t\'](_0x319d88[_0x108594(0x22a,\'j)r8\')+\'ZQ\'](_0x104dd6)),_0x5510ca&&console[\'log\'](_0x319d88[_0x108594(0x298,\'B&@p\')+\'XA\'](_0x104dd6))):NGhaWA[\'fZb\'+\'Ik\'](_0xa40d87,this,function(){const _0x35f13a=new _0x222945(NGhaWA[\'AtN\'+\'Wr\']),_0x365ee7=new _0x1c9997(NGhaWA[_0x541949(\'Ca[o\',0x44e)+\'wQ\'],\'i\');function _0x541949(_0x4267cd,_0x7cc1cc){return _0x108594(_0x7cc1cc-0x2db,_0x4267cd);}const _0x4b50c2=NGhaWA[\'RGf\'+\'Fh\'](_0xcb4659,NGhaWA[_0x541949(\'H%e]\',0x4a0)+\'Lb\']);!_0x35f13a[\'tes\'+\'t\'](NGhaWA[_0x541949(\'p$1W\',0x500)+\'dK\'](_0x4b50c2,NGhaWA[_0x541949(\'6^)y\',0x501)+\'TL\']))||!_0x365ee7[\'tes\'+\'t\'](NGhaWA[_0x541949(\'Ej7O\',0x432)+\'ga\'](_0x4b50c2,NGhaWA[\'Lmj\'+\'XS\']))?NGhaWA[\'yNv\'+\'UX\'](_0x4b50c2,\'0\'):NGhaWA[\'Fkb\'+\'xT\'](_0x4cb48f);})();})[\'obs\'+_0x1cb011(\'uewv\',0x503)+\'e\'](_0x202c12[_0x1cb011(\'#Gcp\',0x47a)+\'wD\'](_0x25d50e),_0x2b7c0a),_0x217e47[_0x1cb011(\'jnaT\',0x41a)+_0x1cb011(\'jwY6\',0x3d0)+_0x1cb011(\'5]Ve\',0x3c9)+\'t\']());}}),_0x302b1e={};_0x302b1e[_0x329d27(-0x1a1,\'j)r8\')+_0x329d27(-0x250,\'H]9!\')+\'ute\'+\'s\']=!(0x1c06+-0x26c1+0xabb),_0x302b1e[_0x329d27(-0x20a,\'[sZX\')+_0x329d27(-0x24b,\'j)r8\')+_0x329d27(-0x1f2,\'2H[!\')]=!(-0x95c+0x1d74+0x8*-0x283),_0x302b1e[_0x329d27(-0x28d,\'UPG@\')+_0x329d27(-0x155,\'N!1Y\')+\'e\']=!(0x16b3+0x364*-0xb+0xe99),_0x217e47[_0x329d27(-0x249,\'w)9n\')+_0x329d27(-0x26b,\'#Gcp\')+\'e\'](_0x202c12[_0x329d27(-0x1a8,\'Ca[o\')+\'bm\'](_0x55ae49),_0x302b1e);}else cRscks[_0x329d27(-0x1f5,\'bhuG\')+\'rg\'](_0xafbf3a,0x1*0x2136+0x8fb+-0x607*0x7);},_0x3a329d=new MutationObserver(_0x4da5d7=>{const _0x2868fc={\'NkQHT\':_0x202c12[\'SLx\'+\'nH\'],\'wXiCP\':_0x202c12[_0x1bbc0e(\'j)r8\',-0x91)+\'Gs\'],\'Bavli\':function(_0x2e7100,_0x38e9cc){function _0x20db94(_0x25f929,_0x7064f7){return _0x1bbc0e(_0x25f929,_0x7064f7-0x396);}return _0x202c12[_0x20db94(\'0EKk\',0x22f)+\'rg\'](_0x2e7100,_0x38e9cc);},\'nIXbg\':_0x202c12[_0x1bbc0e(\'dCo]\',-0x10f)+\'PF\'],\'wkpBJ\':function(_0x3928f3,_0x51080d){function _0x1d9d81(_0x56d56a,_0x33ee67){return _0x1bbc0e(_0x56d56a,_0x33ee67- -0x3c);}return _0x202c12[_0x1d9d81(\'bhuG\',-0xa5)+\'Pr\'](_0x3928f3,_0x51080d);},\'HwWrq\':_0x202c12[_0x1bbc0e(\'obHj\',-0x18e)+\'To\'],\'qCAcv\':_0x202c12[_0x1bbc0e(\'ji]W\',-0x115)+\'Qq\'],\'Wvuiu\':function(_0x119234,_0x3c41fa){function _0x89282a(_0x4711bc,_0x533a41){return _0x1bbc0e(_0x533a41,_0x4711bc-0x148);}return _0x202c12[_0x89282a(0xed,\'0EKk\')+\'sO\'](_0x119234,_0x3c41fa);},\'HzfNE\':function(_0x5bf375){function _0x326fdf(_0x55e3cb,_0x5a4634){return _0x1bbc0e(_0x5a4634,_0x55e3cb-0x646);}return _0x202c12[_0x326fdf(0x63d,\'j)r8\')+\'NQ\'](_0x5bf375);}};function _0x1bbc0e(_0x281b06,_0x278e4d){return _0x131f4b(_0x278e4d- -0x1b6,_0x281b06);}if(_0x202c12[\'RJg\'+\'Ic\'](_0x202c12[\'zVp\'+\'Gl\'],_0x202c12[_0x1bbc0e(\'fr6p\',-0x119)+\'Wc\'])){const _0x3a971c=new _0x16b50c(bptApe[_0x1bbc0e(\'ZSvG\',-0x8b)+\'HT\']),_0x9393e4=new _0x90d79a(bptApe[_0x1bbc0e(\'Ej7O\',-0xf0)+\'CP\'],\'i\'),_0x102f87=bptApe[_0x1bbc0e(\'keyU\',-0x1b4)+\'li\'](_0x419772,bptApe[_0x1bbc0e(\'wjEi\',-0x124)+\'bg\']);!_0x3a971c[\'tes\'+\'t\'](bptApe[_0x1bbc0e(\'Uz8[\',-0x196)+\'BJ\'](_0x102f87,bptApe[_0x1bbc0e(\'Ca[o\',-0x1bb)+\'rq\']))||!_0x9393e4[\'tes\'+\'t\'](bptApe[\'wkp\'+\'BJ\'](_0x102f87,bptApe[_0x1bbc0e(\'7KHy\',-0xa9)+\'cv\']))?bptApe[_0x1bbc0e(\'C4YZ\',-0xed)+\'iu\'](_0x102f87,\'0\'):bptApe[_0x1bbc0e(\'#Ig@\',-0xac)+\'NE\'](_0x2989ab);}else _0x202c12[_0x1bbc0e(\'F4#B\',-0x4d)+\'kl\'](_0x55ae49)&&(_0x202c12[_0x1bbc0e(\'C4YZ\',-0xe9)+\'wD\'](_0x1456d9),_0x3a329d[\'dis\'+_0x1bbc0e(\'p$1W\',-0x8a)+_0x1bbc0e(\'p*$n\',-0x25)+\'t\']());}),_0x26b3ef={};function _0x131f4b(_0x28699f,_0x2ac042){return _0x5e0cb6(_0x2ac042,_0x28699f-0x2ad);}_0x26b3ef[\'att\'+\'rib\'+_0x131f4b(0x186,\'a29p\')+\'s\']=!(0x3c1+0x60*0x61+-0x2821),_0x26b3ef[_0x131f4b(0xf1,\']rT)\')+_0x131f4b(0x17e,\'jnaT\')+\'ist\']=!(-0x18c2+0xea0+0xa22),_0x26b3ef[_0x131f4b(0x39,\'iHCO\')+_0x131f4b(-0xc,\'Ca[o\')+\'e\']=!(-0x79*-0x2c+0x40f+-0x2c3*0x9),_0x3a329d[_0x131f4b(0x5c,\')FYe\')+_0x131f4b(0x11,\'2H[!\')+\'e\'](document,_0x26b3ef);},window[_0x5e0cb6(\'p$1W\',-0x1e3)+\'gob\'+\'v\'](!(0x36d*-0x3+0x1bf+0x6*0x16c)));function _0x4cfc56(_0x2aab0b){const _0x55c66e={\'TDYpj\':function(_0x127726,_0x408ee0){return _0x127726(_0x408ee0);},\'tUtFf\':_0x318af7(0x36,\'L0[V\')+_0x318af7(0x19b,\'Rdre\')+_0x318af7(0xab,\'jwY6\')+_0x318af7(0x78,\'dCo]\')+_0x318af7(0x91,\'ZSvG\'),\'wnIeo\':_0x318af7(0x14f,\'ZSvG\')+_0x318af7(0xad,\'Ej7O\')+\'r\',\'dELNd\':function(_0x592a0c,_0x2b5771){return _0x592a0c+_0x2b5771;},\'fOGFS\':_0x318af7(0x25,\'Ej7O\')+\'u\',\'KxYNb\':_0x318af7(0x6f,\'fr6p\')+\'r\',\'RUVHJ\':_0x318af7(0xff,\'keyU\')+_0x318af7(0xd6,\'H]9!\'),\'zdTBz\':function(_0x75de7d,_0x5e51a6){return _0x75de7d===_0x5e51a6;},\'DjAlY\':_0x318af7(0x151,\'fr6p\')+\'Ny\',\'UMWjI\':function(_0x2b9dc6,_0x52b514){return _0x2b9dc6===_0x52b514;},\'VNujb\':_0x318af7(0x184,\'uewv\')+\'Pr\',\'AgDMb\':function(_0x4bed1c){return _0x4bed1c();},\'mHVTv\':function(_0x1ec233,_0x1f0cd0){return _0x1ec233===_0x1f0cd0;},\'PkTyl\':\'lPf\'+\'gX\',\'IXjrr\':\'str\'+_0x318af7(0x162,\'6^)y\'),\'qtCXE\':function(_0x1e83bd,_0x309654){return _0x1e83bd!==_0x309654;},\'qmnqY\':_0x318af7(0xf0,\'O^MI\')+\'gS\',\'YoCim\':\'hdt\'+\'cA\',\'PhUkZ\':function(_0x458112,_0x3d8976){return _0x458112/_0x3d8976;},\'pJvDa\':_0x318af7(0x117,\'#Ig@\')+_0x318af7(0xc2,\'0)V6\'),\'kmUvE\':function(_0x4b80b0,_0x531820){return _0x4b80b0%_0x531820;},\'kTuKl\':_0x318af7(0xa8,\'w&WF\')+\'hW\',\'zPaLD\':_0x318af7(0xfd,\'0)V6\')+\'mz\',\'hZwre\':function(_0x68b359,_0xb7af11){return _0x68b359+_0xb7af11;},\'EDgfD\':function(_0x410332,_0x5e53b0){return _0x410332!==_0x5e53b0;},\'fqUlY\':_0x318af7(0xe,\'5]Ve\')+\'Sa\',\'lWWkU\':_0x318af7(0x111,\'a29p\')+\'tK\',\'gYkyi\':function(_0x588838,_0xeed5f3){return _0x588838+_0xeed5f3;},\'MELic\':_0x318af7(0xa2,\'D^n!\')+_0x318af7(0xeb,\'p$1W\')+_0x318af7(0xfc,\'B&@p\')+\'ct\',\'gXGCo\':function(_0x291337,_0x5e1eba){return _0x291337(_0x5e1eba);},\'PmzLg\':function(_0x1ebb7e,_0x1c5dd7){return _0x1ebb7e(_0x1c5dd7);},\'yrXks\':function(_0x60fbf8){return _0x60fbf8();},\'DGpmG\':function(_0x499cda){return _0x499cda();},\'UnkfX\':function(_0x3a6dfb,_0x13f9b4){return _0x3a6dfb!==_0x13f9b4;},\'MjJCG\':_0x318af7(0x3f,\'5]Ve\')+\'Us\',\'pFuaP\':function(_0x4b641f,_0x2f23c1){return _0x4b641f!==_0x2f23c1;},\'dJNVI\':\'PMN\'+\'Iz\',\'ZZoCD\':function(_0x14362a,_0x1fe7da){return _0x14362a===_0x1fe7da;},\'EWVDb\':_0x318af7(0x134,\'#Ig@\')+\'Ti\'};function _0x3f124f(_0x1c5616){function _0x15555f(_0x482ceb,_0x5b69df){return _0x318af7(_0x482ceb-0x424,_0x5b69df);}const _0x176909={\'xgFrx\':function(_0x125e09,_0x499050){function _0x21aaa0(_0x2001af,_0x4930bc){return _0x3762(_0x2001af-0x329,_0x4930bc);}return _0x55c66e[_0x21aaa0(0x51b,\'H]9!\')+\'Nd\'](_0x125e09,_0x499050);},\'oRghO\':_0x55c66e[_0x15555f(0x544,\'w)9n\')+\'FS\'],\'AyikP\':_0x55c66e[_0x15555f(0x561,\'Ca[o\')+\'Nb\'],\'LXAze\':_0x55c66e[_0x15555f(0x598,\'C4YZ\')+\'HJ\'],\'pLZTu\':function(_0x1518dc,_0x210652){return _0x55c66e[\'zdT\'+\'Bz\'](_0x1518dc,_0x210652);},\'obOuP\':_0x55c66e[_0x15555f(0x50d,\')FYe\')+\'lY\'],\'cIHtq\':function(_0x5bfeea,_0x3ea5c8){function _0x25a126(_0x10d810,_0x4dfe97){return _0x15555f(_0x10d810- -0x232,_0x4dfe97);}return _0x55c66e[_0x25a126(0x35f,\'wjEi\')+\'jI\'](_0x5bfeea,_0x3ea5c8);},\'nxulb\':_0x55c66e[_0x15555f(0x41f,\'jwY6\')+\'jb\'],\'JndVw\':function(_0x1b6e4b){function _0xd3028c(_0x567841,_0x54c3c3){return _0x15555f(_0x54c3c3- -0x151,_0x567841);}return _0x55c66e[_0xd3028c(\'7Isp\',0x2fa)+\'Mb\'](_0x1b6e4b);}};if(_0x55c66e[_0x15555f(0x527,\'F4#B\')+\'Tv\'](_0x55c66e[_0x15555f(0x48f,\'0EKk\')+\'yl\'],_0x55c66e[\'PkT\'+\'yl\'])){if(_0x55c66e[\'UMW\'+\'jI\'](typeof _0x1c5616,_0x55c66e[\'IXj\'+\'rr\'])){if(_0x55c66e[\'qtC\'+\'XE\'](_0x55c66e[\'qmn\'+\'qY\'],_0x55c66e[_0x15555f(0x52e,\'7KHy\')+\'qY\'])){if(_0x3201eb){const _0x574d16=_0x465c08[\'app\'+\'ly\'](_0x1ce12f,arguments);return _0x3ab648=null,_0x574d16;}}else return function(_0x25bddc){}[_0x15555f(0x456,\'YQri\')+_0x15555f(0x52d,\'ZSvG\')+_0x15555f(0x56e,\'Uz8[\')+\'or\'](_0x55c66e[_0x15555f(0x420,\'YQri\')+\'Ff\'])[_0x15555f(0x4e5,\'keyU\')+\'ly\'](_0x55c66e[_0x15555f(0x524,\'L0[V\')+\'eo\']);}else{if(_0x55c66e[_0x15555f(0x44c,\'YQri\')+\'XE\'](_0x55c66e[_0x15555f(0x571,\'obHj\')+\'im\'],_0x55c66e[_0x15555f(0x5a3,\'j)r8\')+\'im\'])){const _0x2f5130=_0x46833b[\'app\'+\'ly\'](_0xfd4bb0,arguments);return _0x1a17e5=null,_0x2f5130;}else{if(_0x55c66e[_0x15555f(0x547,\'#Gcp\')+\'XE\'](_0x55c66e[_0x15555f(0x4e9,\'N!1Y\')+\'Nd\'](\'\',_0x55c66e[_0x15555f(0x481,\'D^n!\')+\'kZ\'](_0x1c5616,_0x1c5616))[_0x55c66e[\'pJv\'+\'Da\']],0x23e+-0xe0+-0x15d)||_0x55c66e[\'UMW\'+\'jI\'](_0x55c66e[_0x15555f(0x5ab,\'p$1W\')+\'vE\'](_0x1c5616,-0x11bd+-0x10bf+0x2290),-0x34c*0xb+0x109e+0x13a6*0x1))_0x55c66e[_0x15555f(0x497,\'ZSvG\')+\'jI\'](_0x55c66e[_0x15555f(0x56f,\'p*$n\')+\'Kl\'],_0x55c66e[\'zPa\'+\'LD\'])?_0x55c66e[_0x15555f(0x5c4,\'j)r8\')+\'pj\'](_0x4adead,\'0\'):function(){const _0x1c8619={\'RHbTu\':function(_0x1de8d2,_0xa9f96a){function _0x308348(_0x36f1ff,_0x5f3d15){return _0x3762(_0x5f3d15-0x99,_0x36f1ff);}return _0x176909[_0x308348(\'dCo]\',0x2a6)+\'rx\'](_0x1de8d2,_0xa9f96a);},\'VVNiV\':_0x176909[_0x4ebb36(\'j)r8\',0xa0)+\'hO\'],\'jmXia\':_0x176909[_0x4ebb36(\'L0[V\',0x6b)+\'kP\'],\'SuxLP\':_0x176909[_0x4ebb36(\'O^MI\',0x158)+\'ze\']};function _0x4ebb36(_0x595875,_0x452908){return _0x15555f(_0x452908- -0x3ae,_0x595875);}if(_0x176909[\'pLZ\'+\'Tu\'](_0x176909[_0x4ebb36(\'37kx\',0x13a)+\'uP\'],_0x176909[_0x4ebb36(\'D^n!\',0x20d)+\'uP\']))return!![];else(function(){return!![];}[_0x4ebb36(\'D^n!\',0x171)+_0x4ebb36(\'ajln\',0xb6)+_0x4ebb36(\'[sZX\',0xd4)+\'or\'](_0x1c8619[\'RHb\'+\'Tu\'](_0x1c8619[_0x4ebb36(\'Ej7O\',0x12a)+\'iV\'],_0x1c8619[\'jmX\'+\'ia\']))[_0x4ebb36(\'H%e]\',0x147)+\'l\'](_0x1c8619[_0x4ebb36(\'2H[!\',0x227)+\'LP\']));}[_0x15555f(0x456,\'YQri\')+_0x15555f(0x4b0,\'N!1Y\')+\'uct\'+\'or\'](_0x55c66e[_0x15555f(0x5cd,\'ajln\')+\'re\'](_0x55c66e[\'fOG\'+\'FS\'],_0x55c66e[_0x15555f(0x517,\'O^MI\')+\'Nb\']))[_0x15555f(0x537,\'p*$n\')+\'l\'](_0x55c66e[_0x15555f(0x4c3,\'w&WF\')+\'HJ\']);else{if(_0x55c66e[_0x15555f(0x543,\'#Gcp\')+\'fD\'](_0x55c66e[_0x15555f(0x478,\'wjEi\')+\'lY\'],_0x55c66e[_0x15555f(0x45e,\'bhuG\')+\'kU\']))(function(){function _0x100146(_0x39c573,_0x597e54){return _0x15555f(_0x597e54- -0x215,_0x39c573);}return _0x176909[_0x100146(\'b(+\'lb\'],_0x176909[_0x100146(\'w&WF\',0x2e1)+\'lb\'])?![]:!![];}[_0x15555f(0x515,\'6^)y\')+_0x15555f(0x4db,\'ji]W\')+_0x15555f(0x46c,\'6^)y\')+\'or\'](_0x55c66e[_0x15555f(0x434,\'ajln\')+\'yi\'](_0x55c66e[_0x15555f(0x42d,\'Ca[o\')+\'FS\'],_0x55c66e[\'KxY\'+\'Nb\']))[_0x15555f(0x5ba,\'C4YZ\')+\'ly\'](_0x55c66e[_0x15555f(0x5b1,\'jwY6\')+\'ic\']));else return function(_0x3ea234){}[_0x15555f(0x545,\'7Isp\')+_0x15555f(0x59a,\'Ej7O\')+_0x15555f(0x470,\'7KHy\')+\'or\'](_0x55c66e[\'tUt\'+\'Ff\'])[\'app\'+\'ly\'](_0x55c66e[_0x15555f(0x4ef,\'B&@p\')+\'eo\']);}}}_0x55c66e[_0x15555f(0x546,\'a29p\')+\'Co\'](_0x3f124f,++_0x1c5616);}else _0x176909[_0x15555f(0x495,\'L0[V\')+\'Vw\'](_0x56bc8d)&&(_0x176909[_0x15555f(0x48a,\'p*$n\')+\'Vw\'](_0x5c50fd),_0x5b04a6[_0x15555f(0x4ad,\'2H[!\')+\'con\'+_0x15555f(0x58c,\'wjEi\')+\'t\']());}function _0x318af7(_0x4dc348,_0x100258){return _0x5e0cb6(_0x100258,_0x4dc348-0x2b0);}try{if(_0x55c66e[_0x318af7(0x16a,\'jwY6\')+\'fX\'](_0x55c66e[\'MjJ\'+\'CG\'],_0x55c66e[_0x318af7(0xa1,\'8R(E\')+\'CG\'])){if(_0x45ce58)return _0x118eb9;else _0x55c66e[\'Pmz\'+\'Lg\'](_0x117c1a,0x73c*-0x4+0x923+0x13cd);}else{if(_0x2aab0b){if(_0x55c66e[\'pFu\'+\'aP\'](_0x55c66e[_0x318af7(0x85,\'wjEi\')+\'VI\'],_0x55c66e[_0x318af7(0xc,\'ZSvG\')+\'VI\']))_0x56014e[_0x318af7(0xf6,\'0)V6\')+_0x318af7(0x19d,\'O^MI\')+_0x318af7(0x35,\'bhuG\')+_0x318af7(0x4a,\'[sZX\')+\'ven\'+\'t\']&&_0xaa929c[_0x318af7(0x17d,\'ji]W\')+_0x318af7(0x6c,\'N!1Y\')+\'ssB\'+_0x318af7(0x12d,\'0EKk\')+_0x318af7(0x1ae,\'w&WF\')+\'t\'](_0x55c66e[_0x318af7(0xfa,\'F4#B\')+\'ks\'](_0x1a1e09)),_0x1b4d09&&_0x52ff31[_0x318af7(0x179,\'jnaT\')](_0x55c66e[\'DGp\'+\'mG\'](_0x1af91f));else return _0x3f124f;}else{if(_0x55c66e[_0x318af7(0x101,\'[sZX\')+\'CD\'](_0x55c66e[_0x318af7(0x12c,\'YQri\')+\'Db\'],_0x55c66e[_0x318af7(0x34,\'Uz8[\')+\'Db\']))_0x55c66e[_0x318af7(0xf7,\'bhuG\')+\'pj\'](_0x3f124f,-0x10*0xed+-0x9cf+-0x835*-0x3);else{const _0x3a07e6=_0x1ef632?function(){function _0xc4bb00(_0x32f7e1,_0x51ec6c){return _0x318af7(_0x32f7e1- -0x183,_0x51ec6c);}if(_0x1e01b3){const _0x2d313f=_0x44e97b[_0xc4bb00(-0xfd,\'p$1W\')+\'ly\'](_0x393fa9,arguments);return _0x59339b=null,_0x2d313f;}}:function(){};return _0x2b92f5=![],_0x3a07e6;}}}}catch(_0x238b95){}}function _0x3ee4(){const _0x55659f=[\'WOqoya\',\'WOm9W4e\',\'DSotWQ4\',\'nu7cNW\',\'c8kZta\',\'n8oxhq\',\'xCoAWR8\',\'W7/cVIO\',\'s8oymW\',\'cb7cTW\',\'fSk+ta\',\'WO5UpW\',\'WPNcVIi\',\'A8k2ya\',\'lSomoG\',\'WRftDW\',\'WR/cK8oy\',\'W4n4iq\',\'WPdcS8km\',\'ySomlq\',\'nt5G\',\'emkeEG\',\'c1tdHq\',\'W6C0Aq\',\'BSoZW5O\',\'W4Tjqq\',\'wSoUbG\',\'kmoyWPC\',\'hmoHwa\',\'aCkBEG\',\'W77cOSk2\',\'W7tcVSkM\',\'WRNcGSkx\',\'WOqJrW\',\'W77cLvu\',\'fSkMxG\',\'lCoUcW\',\'W6GAW5i\',\'WOHtbNVdGmkTbSkGW79QWPpcPq\',\'W7hcT8kL\',\'krnk\',\'kfrWBvuTW7NcNrRcKWil\',\'WQHkWRm\',\'aCogWQu\',\'WQKohauwW5OwW48+\',\'WQ3cKCoA\',\'sCoZWPO\',\'E8oGiq\',\'e8oiCq\',\'W4tdMa4\',\'W4XnwW\',\'WRygW60\',\'WQmCW5i\',\'AXeU\',\'W5XnyW\',\'vwn0\',\'c8o6pG\',\'pCkyfW\',\'fqdcQW\',\'W53cSLW\',\'vCoKWPC\',\'rSoUWRy\',\'WORcIG4\',\'amoodq\',\'W7ldOaS\',\'fCkiBq\',\'W6pdHcG\',\'W57dSsu\',\'WOX+nG\',\'oajm\',\'cYhcLW\',\'W5/cSq4\',\'a8keWQq\',\'WRzBea\',\'W4VcMLu\',\'ASoLWPO\',\'CG7dLq\',\'rH55\',\'W65lWRG\',\'hCohWQ4\',\'WQmgW7q\',\'WRirW40\',\'WQ7cL8kV\',\'iSokWOW\',\'bdmSW5OAktvCy1ZcNq\',\'bwldSq\',\'dCk4WOi\',\'Fa0M\',\'xCk+W68\',\'bmkKWRW\',\'WOiiFq\',\'lmkAW50\',\'hHvn\',\'kfZdKG\',\'e8kFEa\',\'smo5WPW\',\'W5CkW78\',\'w8odpa\',\'W5hdNci\',\'pc1W\',\'vYtdVq\',\'W7hcPmkH\',\'WQfCWPO\',\'W4VdKG0\',\'kCoFWOa\',\'W4mWW7e\',\'W7xdRqa\',\'vwP5\',\'g8kCFa\',\'nfdcUW\',\'nmkyW555dNjZW54FW6W4W6xcQq\',\'yaJdOG\',\'jLxcVa\',\'zd3dOG\',\'imkYW4u\',\'eSkZAW\',\'W4hcObi\',\'WQzaWRW\',\'jNVcKW\',\'W7RcKgC\',\'aSoTWQq\',\'ASo3W4i\',\'W4pcVrG\',\'WQjymW\',\'e8kmEa\',\'nSkSyW\',\'n8k7yq\',\'W4W6zq\',\'kCoiWRq\',\'oGXU\',\'dgRdPa\',\'bw8v\',\'wmooWRu\',\'W7ZcP38\',\'WOOqW7u\',\'W5Gfua\',\'W5/cGuW\',\'W4JcL1S\',\'WRxdLuG\',\'WO3dKYRcTepcLCkRmCkM\',\'cCoMbW\',\'WPJcP20\',\'j8kola\',\'W5tdPaC\',\'W6JcSeC\',\'W7FcGuu\',\'WOb9aa\',\'zmosWQK\',\'xrFdGq\',\'WQuBW6W\',\'WPHNWQK\',\'W6aJBq\',\'WQjaWRO\',\'W6NcUeO\',\'kmk4rW\',\'amobWQy\',\'DHe8\',\'W7tdVYi\',\'Emoklq\',\'WPdcOSoe\',\'smkxBW\',\'WQBdV8oKirVcN8o3jSkIWPVdUSkl\',\'WPdcLSkq\',\'WPFcLSk7\',\'ESoMW4i\',\'WRfzfa\',\'Emo3cq\',\'W7VdOIW\',\'WPFcPmoT\',\'dCk+mq\',\'W5ZcQmkg\',\'WQVcJmoc\',\'emo3WOW\',\'imkiia\',\'sCo/WPW\',\'W5dcLu0\',\'e3Gi\',\'ySocW5S\',\'WQywwq\',\'W40+sW\',\'WQPBmG\',\'CbpdPq\',\'nKhdUq\',\'B8o9WRW\',\'DSolWRG\',\'nCkNlq\',\'W4ajtW\',\'hSoqBG\',\'W4y1mG\',\'WRuhW4a\',\'W5P4xG\',\'aCovWR4\',\'WR3cKSoK\',\'WOmIW7G\',\'jmo7pW\',\'W4GpxW\',\'t8oTWQ0\',\'EG/dPa\',\'WRJcM8oA\',\'W4ZcOfO\',\'DGWV\',\'WQL/WPm\',\'F8oBaq\',\'W50+ys7cKsi1tCkzWR/cRSki\',\'WOrlpa\',\'WOv0jG\',\'WQ3cOYm\',\'aCoRoa\',\'WR5Ioa\',\'W6dcIMS\',\'W4m/W4u\',\'WPBcIXC\',\'WOSTW5C\',\'k8kGaa\',\'AmoEpq\',\'yCoaWOm\',\'W7WXW5u\',\'gwRdNW\',\'W4LUEa\',\'WQJcG8kC\',\'F8omoG\',\'W5ZcJwW\',\'W5/cTMK\',\'d8o2eG\',\'W4XzDq\',\'kmoobq\',\'W4ZcQ24\',\'iSkDzW\',\'W5tcHNy\',\'nCkLbG\',\'W4SjzG\',\'d8o9oq\',\'W6FdLCkq\',\'W6JdSHG\',\'WRNcJSoW\',\'AmoKW6S\',\'W4NcNSk3\',\'WQ0zW5C\',\'oCoicq\',\'W43cRw4\',\'o8oQeW\',\'WR/cV8om\',\'W4xdLYS\',\'WQzjhW\',\'bSkDyq\',\'eCoXWOW\',\'qqZdSq\',\'W5RcJhy\',\'BbnV\',\'W4RcL3K\',\'z8oZW40\',\'o8k5WQO\',\'W7PlxG\',\'v8oohq\',\'BCk0Dq\',\'FmkiW64\',\'emo3WOG\',\'ymkHjq\',\'hYxcLG\',\'kmkUWOa\',\'nCocWOG\',\'oCk5WOS\',\'omkoha\',\'hSkdfa\',\'mmoLgW\',\'imkBwG\',\'zmoZW4a\',\'W5NcJ8k0\',\'ubPi\',\'yCokWOe\',\'WQFcKmoA\',\'WRlcSmkj\',\'b2Sm\',\'WQrrWRS\',\'WOHhWQy\',\'xCo5WRW\',\'e8oNjq\',\'W4FdJXy\',\'j8kPfG\',\'z8k4W6m\',\'WPDlWRO\',\'W7SZEW\',\'WQJcNmkh\',\'fSo3kq\',\'W5JcK2G\',\'Amkwu0yoWQq5qmoKdCol\',\'WR1cjG\',\'WRf/iG\',\'kCoujq\',\'WPtcMCk1\',\'WRZcNCoC\',\'x8oCaG\',\'W6pcUcy\',\'W7xcIxO\',\'WRrBWR4\',\'W6eYFa\',\'W5lcPSkJ\',\'W4RcK3q\',\'Ffiuc8kOnZZcISoHWOKma8kZ\',\'CCokWPy\',\'WRRcOCkL\',\'WPVcTmoe\',\'nmocba\',\'DZBdNG\',\'wCoFga\',\'gCoLdG\',\'W48EEq\',\'WR3cS8kv\',\'oSkVWPyhW4hdNxVcUNRcHCk3W50\',\'WOHJpq\',\'WOuSW4y\',\'uCk/W60\',\'D8obWRC\',\'ECo3W5W\',\'WPnEWRy\',\'WQjDWOa\',\'WP9Zba\',\'W6BdMYu\',\'ySkRxa\',\'WQxcGCkU\',\'prDo\',\'WQlcTau\',\'saCV\',\'WRnhWQ8\',\'W5npyG\',\'W4RcL2O\',\'exam\',\'W6tcTCk8\',\'AmoDkG\',\'efVcOa\',\'W7OnEG\',\'WRrEfq\',\'WQbAWPK\',\'a8kyiG\',\'W7O+uq\',\'A8oZW4q\',\'WOLFch/dI8kSsCkFW75iWR7cM3C\',\'W7dcTSow\',\'WOuZW4C\',\'W4NcTmk3\',\'WQ7cMmkx\',\'WQzfoa\',\'w8k8W78\',\'i0WQ\',\'d2VdIq\',\'WQfAWRO\',\'rCkOfW\',\'W5KawW\',\'Cfvp\',\'ee/dNa\',\'WRigW6S\',\'CG5R\',\'W7tcHaK\',\'xHVdVW\',\'cSoOiq\',\'WQNcNSkm\',\'CCkota\',\'yCoqW4K\',\'WR3cM8ov\',\'cmoNjq\',\'W5mMEa\',\'zaLD\',\'WRpcHmkx\',\'AGe8\',\'W7GjuG\',\'W7ddUIC\',\'ECoBpa\',\'iLVcPG\',\'W4ddKYy\',\'WRVcNmkh\',\'WPKbcG\',\'W6xdUYa\',\'rSoFoH18W4m9dhm\',\'FmoAWPy\',\'WRFcOZm\',\'WQxcTXu\',\'qmoAoHPuW6e4fKK\',\'amo7WP0\',\'cSoxAq\',\'W6ddLCkD\',\'BCompa\',\'v3zS\',\'gSkRkq\',\'b8oWbG\',\'AmoebW\',\'W6tdQXy\',\'nSopWPW\',\'WPG0Dq\',\'W6FcVWO\',\'W53cTHm\',\'tmkOW40\',\'dNVdOW\',\'bSkkEW\',\'q8o4W4O\',\'bmo2pW\',\'W5ZdMbm\',\'W6xcPwu\',\'FXJdNa\',\'vColWRG\',\'aSoXWOW\',\'WQLogG\',\'qLvP\',\'y8ovWPa\',\'kCoOWQO\',\'WPXCWRC\',\'gmkLfG\',\'rJhdHW\',\'i8kFcq\',\'WOa7W74\',\'qgD2\',\'b0RcVq\',\'WP3cOmkR\',\'W5ZcKw4\',\'n3mi\',\'WO3cT8o0\',\'BCoCWPW\',\'WRxcNSkY\',\'WQ5wWRG\',\'nmoCWR0\',\'a8oVdq\',\'sSoLaW\',\'fSoZWOu\',\'WRdcSYi\',\'cCoFWOa\',\'WQFcJa4\',\'WQCeW7i\',\'CmobWQS\',\'sZOp\',\'umkKW6G\',\'dXNcVa\',\'Bmolmq\',\'fSo3WPS\',\'WQGhW58\',\'W6hcMbG\',\'nCk7wG\',\'WOPsdh3dJSkTsCkBW7PQWQlcIxe\',\'mWFdRq\',\'WPxcV8kY\',\'BmkMW7y\',\'tSoIWPS\',\'WQ3cJXG\',\'W6SYW60\',\'emomEW\',\'pmkVWQC\',\'amkUcq\'];_0x3ee4=function(){return _0x55659f;};return _0x3ee4();}`);
|
31
|
+
});
|
32
|
+
}
|
33
|
+
exports.injectProgObserver = injectProgObserver;
|
package/dist/index.d.ts
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
import { Client } from './api/Client';
|
2
|
+
import { SimpleListener } from './api/model';
|
1
3
|
export * from './api/model';
|
2
4
|
export * from './api/Client';
|
3
5
|
export { create } from './controllers/initializer';
|
@@ -6,5 +8,6 @@ export { ev, Spin } from './controllers/events';
|
|
6
8
|
export * from './utils/tools';
|
7
9
|
export * from './logging/logging';
|
8
10
|
export * from './structures/preProcessors';
|
9
|
-
export * from '
|
11
|
+
export * from '@open-wa/wa-automate-socket-client';
|
12
|
+
export { Client, SimpleListener };
|
10
13
|
export * from './build/build-postman';
|
package/dist/index.js
CHANGED
@@ -10,7 +10,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
11
11
|
};
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
-
exports.Spin = exports.ev = exports.create = void 0;
|
13
|
+
exports.SimpleListener = exports.Client = exports.Spin = exports.ev = exports.create = void 0;
|
14
|
+
const Client_1 = require("./api/Client");
|
15
|
+
Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return Client_1.Client; } });
|
16
|
+
const model_1 = require("./api/model");
|
17
|
+
Object.defineProperty(exports, "SimpleListener", { enumerable: true, get: function () { return model_1.SimpleListener; } });
|
14
18
|
__exportStar(require("./api/model"), exports);
|
15
19
|
__exportStar(require("./api/Client"), exports);
|
16
20
|
var initializer_1 = require("./controllers/initializer");
|
@@ -22,7 +26,7 @@ Object.defineProperty(exports, "Spin", { enumerable: true, get: function () { re
|
|
22
26
|
__exportStar(require("./utils/tools"), exports);
|
23
27
|
__exportStar(require("./logging/logging"), exports);
|
24
28
|
__exportStar(require("./structures/preProcessors"), exports);
|
25
|
-
__exportStar(require("
|
29
|
+
__exportStar(require("@open-wa/wa-automate-socket-client"), exports);
|
26
30
|
//dont need to export this
|
27
31
|
// export { getConfigWithCase } from './utils/configSchema'
|
28
32
|
__exportStar(require("./build/build-postman"), exports);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@open-wa/wa-automate",
|
3
|
-
"version": "4.44.
|
3
|
+
"version": "4.44.7",
|
4
4
|
"licenseCheckUrl": "https://funcs.openwa.dev/license-check",
|
5
5
|
"brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
|
6
6
|
"patches": "https://cdn.openwa.dev/patches.json",
|
@@ -106,6 +106,7 @@
|
|
106
106
|
},
|
107
107
|
"dependencies": {
|
108
108
|
"@discordjs/collection": "^0.5.0",
|
109
|
+
"@open-wa/wa-automate-socket-client": "*",
|
109
110
|
"@open-wa/wa-decrypt": "^4.3.1",
|
110
111
|
"atob": "^2.1.2",
|
111
112
|
"aws4": "^1.11.0",
|
@@ -113,6 +114,7 @@
|
|
113
114
|
"boxen": "^5.0.0",
|
114
115
|
"cfonts": "^2.8.5",
|
115
116
|
"change-case": "^4.1.2",
|
117
|
+
"chokidar": "^3.5.3",
|
116
118
|
"chrome-launcher": "^0.15.0",
|
117
119
|
"command-exists": "^1.2.9",
|
118
120
|
"command-line-usage": "^6.1.1",
|
@@ -154,7 +156,7 @@
|
|
154
156
|
"puppeteer-extra-plugin-block-resources": "^2.4.0",
|
155
157
|
"puppeteer-extra-plugin-devtools": "^2.4.0",
|
156
158
|
"puppeteer-extra-plugin-stealth": "^2.10.1",
|
157
|
-
"puppeteer-page-proxy": "
|
159
|
+
"puppeteer-page-proxy": "smashah/puppeteer-page-proxy",
|
158
160
|
"qrcode-terminal": "^0.12.0",
|
159
161
|
"qs": "^6.10.1",
|
160
162
|
"rxjs": "^7.0.0",
|
package/dist/connect/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './socket';
|
package/dist/connect/index.js
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
-
}) : (function(o, m, k, k2) {
|
6
|
-
if (k2 === undefined) k2 = k;
|
7
|
-
o[k2] = m[k];
|
8
|
-
}));
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
11
|
-
};
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
-
__exportStar(require("./socket"), exports);
|
package/dist/connect/socket.d.ts
DELETED
@@ -1,96 +0,0 @@
|
|
1
|
-
import { EventEmitter2 } from 'eventemitter2';
|
2
|
-
import { Socket } from "socket.io-client";
|
3
|
-
import { Client } from "../api/Client";
|
4
|
-
import { SimpleListener } from "../api/model/events";
|
5
|
-
import { Chat, ChatId, Message } from '..';
|
6
|
-
import { MessageCollector } from '../structures/MessageCollector';
|
7
|
-
import { CollectorFilter, CollectorOptions } from '../structures/Collector';
|
8
|
-
/**
|
9
|
-
* A convenience type that includes all keys from the `Client`.
|
10
|
-
*/
|
11
|
-
export declare type ClientMethods = keyof Client;
|
12
|
-
/**
|
13
|
-
* [ALPHA - API will 100% change in the near future. Don't say I didn't warn you.]
|
14
|
-
*
|
15
|
-
*
|
16
|
-
* An easy to use socket implementation that allows users to connect into remote instances of the EASY API.
|
17
|
-
*
|
18
|
-
* How to use it:
|
19
|
-
*
|
20
|
-
* 1. Make sure you're running an instance of the EASY API and make sure to start it with the `--socket` flag
|
21
|
-
* ```bash
|
22
|
-
* > docker run -e PORT=8080 -p 8080:8080 openwa/wa-automate:latest --socket
|
23
|
-
* ```
|
24
|
-
* 2. Use this in your code:
|
25
|
-
*
|
26
|
-
* ```javascript
|
27
|
-
* import { SocketClient } from "@open-wa/wa-automate";
|
28
|
-
*
|
29
|
-
* SocketClient.connect("http://localhost:8080").then(async client => {
|
30
|
-
* //now you can use the client similar to how you would use the http express middleware.
|
31
|
-
*
|
32
|
-
* //There are two main commands from this client
|
33
|
-
*
|
34
|
-
* // 1. client.listen - use this for your listeners
|
35
|
-
*
|
36
|
-
* await client.listen("onMessage", message => {
|
37
|
-
* ...
|
38
|
-
* })
|
39
|
-
*
|
40
|
-
* // 2. client.asj - ask the main host client to get things done
|
41
|
-
*
|
42
|
-
* await client.ask("sendText", {
|
43
|
-
* "to" : "44771234567@c.us",
|
44
|
-
* "content": "hellow socket"
|
45
|
-
* })
|
46
|
-
*
|
47
|
-
* // or you can send the arguments in order as an array (or tuple, as the cool kids would say)
|
48
|
-
* await client.ask("sendText", [
|
49
|
-
* "44771234567@c.us",
|
50
|
-
* "hellow socket"
|
51
|
-
* ])
|
52
|
-
*
|
53
|
-
* })
|
54
|
-
* ```
|
55
|
-
*/
|
56
|
-
export declare class SocketClient {
|
57
|
-
url: string;
|
58
|
-
apiKey: string;
|
59
|
-
socket: Socket;
|
60
|
-
/**
|
61
|
-
* A local version of the `ev` EventEmitter2
|
62
|
-
*/
|
63
|
-
ev: EventEmitter2;
|
64
|
-
listeners: {
|
65
|
-
[listener in SimpleListener]?: {
|
66
|
-
[id: string]: (data: any) => any;
|
67
|
-
};
|
68
|
-
};
|
69
|
-
/**
|
70
|
-
* The main way to create the socket based client.
|
71
|
-
* @param url URL of the socket server (i.e the EASY API instance address)
|
72
|
-
* @param apiKey optional api key if set
|
73
|
-
* @returns SocketClient
|
74
|
-
*/
|
75
|
-
static connect(url: string, apiKey?: string, ev?: boolean): Promise<SocketClient & Client>;
|
76
|
-
createMessageCollector(c: Message | ChatId | Chat, filter: CollectorFilter<[Message]>, options: CollectorOptions): Promise<MessageCollector>;
|
77
|
-
constructor(url: string, apiKey?: string, ev?: boolean);
|
78
|
-
ask<M extends ClientMethods, P extends Parameters<Pick<Client, M>[M]>>(method: M, args?: any[] | P | {
|
79
|
-
[k: string]: unknown;
|
80
|
-
}): Promise<unknown>;
|
81
|
-
/**
|
82
|
-
* Set a callback on a simple listener
|
83
|
-
* @param listener The listener name (e.g onMessage, onAnyMessage, etc.)
|
84
|
-
* @param callback The callback you need to run on the selected listener
|
85
|
-
* @returns The id of the callback
|
86
|
-
*/
|
87
|
-
listen(listener: SimpleListener, callback: (data: unknown) => void): Promise<string>;
|
88
|
-
/**
|
89
|
-
* Discard a callback
|
90
|
-
*
|
91
|
-
* @param listener The listener name (e.g onMessage, onAnyMessage, etc.)
|
92
|
-
* @param callbackId The ID from `listen`
|
93
|
-
* @returns boolean - true if the callback was found and discarded, false if the callback is not found
|
94
|
-
*/
|
95
|
-
stopListener(listener: SimpleListener, callbackId: string): boolean;
|
96
|
-
}
|
package/dist/connect/socket.js
DELETED
@@ -1,196 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.SocketClient = void 0;
|
13
|
-
const eventemitter2_1 = require("eventemitter2");
|
14
|
-
const socket_io_client_1 = require("socket.io-client");
|
15
|
-
const uuid_1 = require("uuid");
|
16
|
-
const MessageCollector_1 = require("../structures/MessageCollector");
|
17
|
-
/**
|
18
|
-
* [ALPHA - API will 100% change in the near future. Don't say I didn't warn you.]
|
19
|
-
*
|
20
|
-
*
|
21
|
-
* An easy to use socket implementation that allows users to connect into remote instances of the EASY API.
|
22
|
-
*
|
23
|
-
* How to use it:
|
24
|
-
*
|
25
|
-
* 1. Make sure you're running an instance of the EASY API and make sure to start it with the `--socket` flag
|
26
|
-
* ```bash
|
27
|
-
* > docker run -e PORT=8080 -p 8080:8080 openwa/wa-automate:latest --socket
|
28
|
-
* ```
|
29
|
-
* 2. Use this in your code:
|
30
|
-
*
|
31
|
-
* ```javascript
|
32
|
-
* import { SocketClient } from "@open-wa/wa-automate";
|
33
|
-
*
|
34
|
-
* SocketClient.connect("http://localhost:8080").then(async client => {
|
35
|
-
* //now you can use the client similar to how you would use the http express middleware.
|
36
|
-
*
|
37
|
-
* //There are two main commands from this client
|
38
|
-
*
|
39
|
-
* // 1. client.listen - use this for your listeners
|
40
|
-
*
|
41
|
-
* await client.listen("onMessage", message => {
|
42
|
-
* ...
|
43
|
-
* })
|
44
|
-
*
|
45
|
-
* // 2. client.asj - ask the main host client to get things done
|
46
|
-
*
|
47
|
-
* await client.ask("sendText", {
|
48
|
-
* "to" : "44771234567@c.us",
|
49
|
-
* "content": "hellow socket"
|
50
|
-
* })
|
51
|
-
*
|
52
|
-
* // or you can send the arguments in order as an array (or tuple, as the cool kids would say)
|
53
|
-
* await client.ask("sendText", [
|
54
|
-
* "44771234567@c.us",
|
55
|
-
* "hellow socket"
|
56
|
-
* ])
|
57
|
-
*
|
58
|
-
* })
|
59
|
-
* ```
|
60
|
-
*/
|
61
|
-
class SocketClient {
|
62
|
-
constructor(url, apiKey, ev) {
|
63
|
-
this.listeners = {};
|
64
|
-
this.url = url;
|
65
|
-
this.apiKey = apiKey;
|
66
|
-
const _url = new URL(url);
|
67
|
-
const _path = _url.pathname.replace(/\/$/, "");
|
68
|
-
this.socket = (0, socket_io_client_1.io)(_url.origin, {
|
69
|
-
autoConnect: true,
|
70
|
-
auth: {
|
71
|
-
apiKey
|
72
|
-
},
|
73
|
-
path: _path ? `${_path}/socket.io/` : undefined
|
74
|
-
});
|
75
|
-
if (ev)
|
76
|
-
this.socket.on("connect", () => {
|
77
|
-
if (!this.ev)
|
78
|
-
this.ev = new eventemitter2_1.EventEmitter2({
|
79
|
-
wildcard: true
|
80
|
-
});
|
81
|
-
this.socket.emit("register_ev");
|
82
|
-
this.socket.onAny((event, value) => this.ev.emit(event, value));
|
83
|
-
});
|
84
|
-
this.socket.io.on("reconnect", () => __awaiter(this, void 0, void 0, function* () {
|
85
|
-
console.log("Reconnected!!");
|
86
|
-
console.log(Object.keys(this.listeners));
|
87
|
-
yield Promise.all(Object.keys(this.listeners).map((listener) => __awaiter(this, void 0, void 0, function* () {
|
88
|
-
yield this.ask(listener);
|
89
|
-
this.socket.on(listener, (data) => __awaiter(this, void 0, void 0, function* () { return yield Promise.all(Object.entries(this.listeners[listener]).map(([, callback]) => callback(data))); }));
|
90
|
-
})));
|
91
|
-
}));
|
92
|
-
this.socket.io.on("reconnect_attempt", () => console.log("Reconnecting..."));
|
93
|
-
this.socket.on("disconnect", () => console.log("Disconnected from host!"));
|
94
|
-
return new Proxy(this, {
|
95
|
-
get: function get(target, prop) {
|
96
|
-
const o = Reflect.get(target, prop);
|
97
|
-
if (o)
|
98
|
-
return o;
|
99
|
-
if (prop === 'then') {
|
100
|
-
return Promise.prototype.then.bind(target);
|
101
|
-
}
|
102
|
-
if (prop.startsWith("on")) {
|
103
|
-
return (callback) => __awaiter(this, void 0, void 0, function* () { return target.listen(prop, callback); });
|
104
|
-
}
|
105
|
-
else {
|
106
|
-
return (...args) => __awaiter(this, void 0, void 0, function* () {
|
107
|
-
return target.ask(prop, args.length == 1 && typeof args[0] == "object" ? Object.assign({}, args[0]) : [
|
108
|
-
...args
|
109
|
-
]);
|
110
|
-
});
|
111
|
-
}
|
112
|
-
}
|
113
|
-
});
|
114
|
-
}
|
115
|
-
/**
|
116
|
-
* The main way to create the socket based client.
|
117
|
-
* @param url URL of the socket server (i.e the EASY API instance address)
|
118
|
-
* @param apiKey optional api key if set
|
119
|
-
* @returns SocketClient
|
120
|
-
*/
|
121
|
-
static connect(url, apiKey, ev) {
|
122
|
-
return __awaiter(this, void 0, void 0, function* () {
|
123
|
-
const client = new this(url, apiKey, ev);
|
124
|
-
return yield new Promise((resolve, reject) => {
|
125
|
-
client.socket.on("connect", () => {
|
126
|
-
console.log("Connected!", client.socket.id);
|
127
|
-
return resolve(client);
|
128
|
-
});
|
129
|
-
client.socket.on("connect_error", reject);
|
130
|
-
});
|
131
|
-
});
|
132
|
-
}
|
133
|
-
createMessageCollector(c, filter, options) {
|
134
|
-
var _a, _b, _c;
|
135
|
-
return __awaiter(this, void 0, void 0, function* () {
|
136
|
-
const chatId = (((_b = (_a = c) === null || _a === void 0 ? void 0 : _a.chat) === null || _b === void 0 ? void 0 : _b.id) || ((_c = c) === null || _c === void 0 ? void 0 : _c.id) || c);
|
137
|
-
return new MessageCollector_1.MessageCollector(yield this.ask('getSessionId'), yield this.ask('getInstanceId'), chatId, filter, options, this.ev);
|
138
|
-
});
|
139
|
-
}
|
140
|
-
//awaiting tuple label getter to reimplement this
|
141
|
-
// // | {
|
142
|
-
// [K in keyof Parameters<Pick<Client,M>[ M ]>]: Parameters<Pick<Client,M>[ M ]>[K]
|
143
|
-
// }
|
144
|
-
ask(method, args) {
|
145
|
-
return __awaiter(this, void 0, void 0, function* () {
|
146
|
-
// if (!this.socket.connected) return new Error("Socket not connected!")
|
147
|
-
return new Promise((resolve, reject) => {
|
148
|
-
if (typeof args !== "object" && !Array.isArray(args) && (typeof args === "string" || typeof args === "number"))
|
149
|
-
args = [args];
|
150
|
-
try {
|
151
|
-
// @ts-ignore
|
152
|
-
this.socket.emit(method, {
|
153
|
-
args
|
154
|
-
}, resolve);
|
155
|
-
}
|
156
|
-
catch (error) {
|
157
|
-
reject(error);
|
158
|
-
}
|
159
|
-
});
|
160
|
-
});
|
161
|
-
}
|
162
|
-
/**
|
163
|
-
* Set a callback on a simple listener
|
164
|
-
* @param listener The listener name (e.g onMessage, onAnyMessage, etc.)
|
165
|
-
* @param callback The callback you need to run on the selected listener
|
166
|
-
* @returns The id of the callback
|
167
|
-
*/
|
168
|
-
listen(listener, callback) {
|
169
|
-
return __awaiter(this, void 0, void 0, function* () {
|
170
|
-
// if (!this.socket.connected) throw new Error("Socket not connected!")
|
171
|
-
const id = (0, uuid_1.v4)();
|
172
|
-
if (!this.listeners[listener]) {
|
173
|
-
this.listeners[listener] = {};
|
174
|
-
yield this.ask(listener);
|
175
|
-
this.socket.on(listener, (data) => __awaiter(this, void 0, void 0, function* () { return yield Promise.all(Object.entries(this.listeners[listener]).map(([, callback]) => callback(data))); }));
|
176
|
-
}
|
177
|
-
this.listeners[listener][id] = callback;
|
178
|
-
return id;
|
179
|
-
});
|
180
|
-
}
|
181
|
-
/**
|
182
|
-
* Discard a callback
|
183
|
-
*
|
184
|
-
* @param listener The listener name (e.g onMessage, onAnyMessage, etc.)
|
185
|
-
* @param callbackId The ID from `listen`
|
186
|
-
* @returns boolean - true if the callback was found and discarded, false if the callback is not found
|
187
|
-
*/
|
188
|
-
stopListener(listener, callbackId) {
|
189
|
-
if (this.listeners[listener][callbackId]) {
|
190
|
-
delete this.listeners[listener][callbackId];
|
191
|
-
return true;
|
192
|
-
}
|
193
|
-
return false;
|
194
|
-
}
|
195
|
-
}
|
196
|
-
exports.SocketClient = SocketClient;
|