@open-wa/wa-automate-types-only 4.41.0 → 4.42.1

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.
@@ -458,7 +458,7 @@ export declare class Client {
458
458
  *
459
459
  * [[Detecting Logouts]]
460
460
  */
461
- forceRefocus(): Promise<void>;
461
+ forceRefocus(): Promise<boolean>;
462
462
  /**
463
463
  * Check if the "Phone not Cconnected" message is showing in the browser. If it is showing, then this will return `true`.
464
464
  *
@@ -469,6 +469,10 @@ export declare class Client {
469
469
  * Runs a health check to help you determine if/when is an appropiate time to restart/refresh the session.
470
470
  */
471
471
  healthCheck(): Promise<HealthCheck>;
472
+ /**
473
+ * Get the stats of the current process and the corresponding browser process.
474
+ */
475
+ getProcessStats(): Promise<any>;
472
476
  /**
473
477
  * A list of participants in the chat who have their live location on. If the chat does not exist, or the chat does not have any contacts actively sharing their live locations, it will return false. If it's a chat with a single contact, there will be only 1 value in the array if the contact has their livelocation on.
474
478
  * Please note. This should only be called once every 30 or so seconds. This forces the phone to grab the latest live location data for the number. This can be used in conjunction with onLiveLocation (this will trigger onLiveLocation).
@@ -566,8 +570,10 @@ export declare class Client {
566
570
  * @param to chat id: `xxxxx@c.us`
567
571
  * @param content text message
568
572
  * @param replyMessageId id of message to reply to
573
+ * @param hideTags Removes all tags within the message
574
+ * @param mentions You can optionally add an array of contact IDs to tag only specific people
569
575
  */
570
- sendReplyWithMentions(to: ChatId, content: Content, replyMessageId: MessageId): Promise<boolean | MessageId>;
576
+ sendReplyWithMentions(to: ChatId, content: Content, replyMessageId: MessageId, hideTags?: boolean, mentions?: ContactId[]): Promise<boolean | MessageId>;
571
577
  /**
572
578
  * [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
573
579
  *
@@ -0,0 +1 @@
1
+ export declare const pidTreeUsage: (pid: any) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.41.0",
3
+ "version": "4.42.1",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",