@open-wa/wa-automate-types-only 4.42.6 → 4.43.0

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.
@@ -599,13 +599,17 @@ export declare class Client {
599
599
  */
600
600
  sendMessageWithThumb(thumb: string, url: string, title: string, description: string, text: Content, chatId: ChatId): Promise<MessageId | boolean>;
601
601
  /**
602
+ * Note: `address` and `url` are parameters available to insiders only.
603
+ *
602
604
  * Sends a location message to given chat
603
605
  * @param to chat id: `xxxxx@c.us`
604
606
  * @param lat latitude: '51.5074'
605
607
  * @param lng longitude: '0.1278'
606
608
  * @param loc location text: 'LONDON!'
609
+ * @param address address text: '1 Regents Park!'
610
+ * @param url address text link: 'https://example.com'
607
611
  */
608
- sendLocation(to: ChatId, lat: string, lng: string, loc: string): Promise<boolean | MessageId>;
612
+ sendLocation(to: ChatId, lat: string, lng: string, loc: string, address?: string, url?: string): Promise<boolean | MessageId>;
609
613
  /**
610
614
  * Get the generated user agent, this is so you can send it to the decryption module.
611
615
  * @returns String useragent of wa-web session
@@ -1463,8 +1467,6 @@ export declare class Client {
1463
1467
  */
1464
1468
  setGroupEditToAdminsOnly(groupId: GroupChatId, onlyAdmins: boolean): Promise<boolean>;
1465
1469
  /**
1466
- * [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
1467
- *
1468
1470
  * Change the group chant description
1469
1471
  * @param groupId '0000000000-00000000@g.us' the group id.
1470
1472
  * @param description string The new group description
@@ -1499,10 +1501,11 @@ export declare class Client {
1499
1501
  */
1500
1502
  darkMode(activate: boolean): Promise<boolean>;
1501
1503
  /**
1502
- * [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
1503
1504
  *
1504
1505
  * Automatically reject calls on the host account device. Please note that the device that is calling you will continue to ring.
1505
1506
  *
1507
+ * Update: Due to the nature of MD, the host account will continue ringing.
1508
+ *
1506
1509
  * @param message optional message to send to the calling account when their call is detected and rejected
1507
1510
  */
1508
1511
  autoReject(message?: string): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.42.6",
3
+ "version": "4.43.0",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",