@open-wa/wa-automate-types-only 4.61.2 → 4.62.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -588,13 +588,7 @@ export declare class Client {
588
588
  sendPaymentRequest(to: ChatId, amount: number, currency: string, message?: string): Promise<boolean | MessageId>;
589
589
  /**
590
590
  *
591
- * @deprecated
592
- *
593
- * :::danger
594
- *
595
- * Buttons are broken for the foreseeable future. Please DO NOT get a license solely for access to buttons. They are no longer reliable due to recent changes at WA.
596
- *
597
- * :::
591
+ * {@license:insiders@}
598
592
  *
599
593
  * Send generic quick reply buttons. This is an insiders feature for MD accounts.
600
594
  *
@@ -607,11 +601,11 @@ export declare class Client {
607
601
  sendButtons(to: ChatId, body: string | LocationButtonBody, buttons: Button[], title?: string, footer?: string): Promise<boolean | MessageId>;
608
602
  /**
609
603
  *
610
- * @deprecated
604
+ * {@license:insiders@}
611
605
  *
612
606
  * :::danger
613
607
  *
614
- * Buttons are broken for the foreseeable future. Please DO NOT get a license solely for access to buttons. They are no longer reliable due to recent changes at WA.
608
+ * Template messages (URL & CALL buttons) are broken for the foreseeable future. Please DO NOT get a license solely for access to URL or CALL buttons. They are no longer reliable due to recent changes at WA.
615
609
  *
616
610
  * :::
617
611
  *
@@ -637,14 +631,8 @@ export declare class Client {
637
631
  */
638
632
  sendBanner(to: ChatId, base64: Base64): Promise<boolean | MessageId>;
639
633
  /**
640
- * @deprecated
641
- *
642
- *
643
- * :::danger
644
634
  *
645
- * Buttons are broken for the foreseeable future. Please DO NOT get a license solely for access to buttons. They are no longer reliable due to recent changes at WA.
646
- *
647
- * :::
635
+ * {@license:insiders@}
648
636
  *
649
637
  * Send a list message. This will not work when being sent from business accounts!
650
638
  *
@@ -336,6 +336,12 @@ export interface ConfigObject {
336
336
  * @default 60
337
337
  */
338
338
  qrTimeout?: number;
339
+ /**
340
+ * This determines how long the process should wait for a session to load fully before continuing the launch process.
341
+ * Set this to 0 to wait forever. Default is 5 seconds.
342
+ * @default 5
343
+ */
344
+ waitForRipeSessionTimeout?: number;
339
345
  /**
340
346
  * 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`.
341
347
  */
@@ -10,7 +10,7 @@ import { Page } from 'puppeteer';
10
10
  */
11
11
  export declare const isAuthenticated: (waPage: Page) => Promise<unknown>;
12
12
  export declare const needsToScan: (waPage: Page) => Observable<unknown>;
13
- export declare const waitForRipeSession: (waPage: Page) => Promise<boolean>;
13
+ export declare const waitForRipeSession: (waPage: Page, waitForRipeSessionTimeout?: number) => Promise<boolean>;
14
14
  export declare const sessionDataInvalid: (waPage: Page) => Promise<string>;
15
15
  export declare const phoneIsOutOfReach: (waPage: Page) => Promise<boolean>;
16
16
  export declare class QRManager {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.61.2",
3
+ "version": "4.62.1",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",