@open-wa/wa-automate-types-only 4.26.1 → 4.27.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.
@@ -733,6 +733,10 @@ export interface ConfigObject {
733
733
  * wait for a valid headful session. Not required in recent versions.
734
734
  */
735
735
  waitForRipeSession?: boolean;
736
+ /**
737
+ * Automatically kill the process after a set amount of qr codes
738
+ */
739
+ qrMax?: number;
736
740
  /**@internal */
737
741
  [x: string]: any;
738
742
  }
@@ -1,4 +1,4 @@
1
- import { Page } from 'puppeteer';
1
+ import { Browser, Page } from 'puppeteer';
2
2
  import { Spin } from './events';
3
3
  import { ConfigObject } from '../api/model';
4
4
  export declare function initPage(sessionId?: string, config?: ConfigObject, customUserAgent?: string, spinner?: Spin, _page?: Page, skipAuth?: boolean): Promise<Page>;
@@ -6,3 +6,7 @@ export declare const deleteSessionData: (config: ConfigObject) => boolean;
6
6
  export declare const getSessionDataFilePath: (sessionId: string, config: ConfigObject) => string | boolean;
7
7
  export declare const addScript: (page: Page, js: string) => Promise<unknown>;
8
8
  export declare function injectApi(page: Page): Promise<Page>;
9
+ /**
10
+ * @internal
11
+ */
12
+ export declare const kill: (p: Page, b?: Browser, exit?: boolean) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.26.1",
3
+ "version": "4.27.0",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",