@open-wa/wa-automate-types-only 4.47.0 → 4.47.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -537,6 +537,12 @@ export declare class Client {
537
537
  *
538
538
  * Send advanced buttons with media body. This is an insiders feature for MD accounts.
539
539
  *
540
+ * :::caution
541
+ *
542
+ * Button messages are being progressively handicapped by recipient mobile devices. Some recipients may not see some types of button messages even though their devices will receive them.
543
+ *
544
+ * :::
545
+ *
540
546
  * Body can be location, image, video or document. Buttons can be quick reply, url or call buttons.
541
547
  *
542
548
  * @param {ChatId} to chat id
@@ -754,6 +760,10 @@ export declare class Client {
754
760
  * Returns an object with all of your host device details
755
761
  */
756
762
  getMe(): Promise<any>;
763
+ /**
764
+ * Returns an object with properties of internal features and boolean values that represent if the respective feature is enabled or not.
765
+ */
766
+ getFeatures(): Promise<any>;
757
767
  /**
758
768
  * Returns a PNG DataURL screenshot of the session
759
769
  * @returns `Promise<DataURL>`
@@ -1,4 +1,5 @@
1
1
  export * from './chat';
2
+ export * from './call';
2
3
  export * from './contact';
3
4
  export * from './message';
4
5
  export * from './errors';
@@ -153,6 +153,12 @@ export interface Message {
153
153
  mediaData: unknown;
154
154
  shareDuration: number;
155
155
  isAnimated: boolean;
156
+ ctwaContext?: {
157
+ sourceUrl: string;
158
+ thumbnail: string | null;
159
+ mediaType: number;
160
+ isSuspiciousLink: boolean | null;
161
+ };
156
162
  /**
157
163
  * Is the message a "view once" message
158
164
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.47.0",
3
+ "version": "4.47.2",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",