@open-wa/wa-automate-types-only 4.72.1 → 4.72.3

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.
@@ -31,6 +31,20 @@ export interface Message {
31
31
  * 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.
32
32
  */
33
33
  body: string;
34
+ /**
35
+ * The device ID of the device that sent the message. This is only present if the message was sent from host account-linked session. This is useful for determining if a message was sent from a different mobile device (note that whenever a device) or a desktop session.
36
+ *
37
+ * Note: This will emit a number for the current controlled session also but the only way to know if the number represents the current session is by checking `local` (it will be `true` if the message was sent from the current session).
38
+ *
39
+ * If the device ID is `0` then the message was sent from the "root" host account device.
40
+ *
41
+ * This might be undefined for incoming messages.
42
+ */
43
+ device: number;
44
+ /**
45
+ * If the message was sent from this controlled session this will be `true`. This is useful for determining if a message was sent from a different mobile device (note that whenever a device) or a desktop session.
46
+ */
47
+ local: boolean;
34
48
  /**
35
49
  * a convenient way to get the main text content from a message.
36
50
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.72.1",
3
+ "version": "4.72.3",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",