@open-wa/wa-automate-types-only 4.71.15 → 4.72.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.
@@ -191,6 +191,7 @@ export interface ProxyServerCredentials {
|
|
191
191
|
}
|
192
192
|
export interface ConfigObject {
|
193
193
|
/**
|
194
|
+
* @deprecated
|
194
195
|
* The authentication object (as a JSON object or a base64 encoded string) that is required to migrate a session from one instance to another or to just restart an existing instance.
|
195
196
|
* This sessionData is provided in a generated JSON file (it's a json file but contains the JSON data as a base64 encoded string) upon QR scan or an event.
|
196
197
|
*
|
@@ -223,6 +224,15 @@ export interface ConfigObject {
|
|
223
224
|
* Setting the sessionData in the environmental variable will override the sessionData object in the config.
|
224
225
|
*/
|
225
226
|
sessionData?: SessionData | Base64;
|
227
|
+
/**
|
228
|
+
* There is a new way to login to your host account by entering a link code after a confirmation step from the host account device. In order to use this feature you MUST set the host account number as a string or number beforehand as a property of the config object.
|
229
|
+
*
|
230
|
+
* e.g
|
231
|
+
* ```
|
232
|
+
* linkCode: '1234567890'
|
233
|
+
* ```
|
234
|
+
*/
|
235
|
+
linkCode?: string;
|
226
236
|
/**
|
227
237
|
* ALPHA EXPERIMENTAL FEATURE! DO NOT USE IN PRODUCTION, REQUIRES TESTING.
|
228
238
|
*
|
@@ -25,6 +25,7 @@ export declare class QRManager {
|
|
25
25
|
setConfig(config: any): void;
|
26
26
|
qrEvF(config?: ConfigObject): any;
|
27
27
|
grabAndEmit(qrData: any, waPage: Page, config: ConfigObject, spinner: Spin): Promise<void>;
|
28
|
+
linkCode(waPage: Page, config?: ConfigObject, spinner?: Spin): Promise<boolean | void | string>;
|
28
29
|
smartQr(waPage: Page, config?: ConfigObject, spinner?: Spin): Promise<boolean | void | string>;
|
29
30
|
emitFirst(waPage: Page, config?: ConfigObject, spinner?: Spin): Promise<void>;
|
30
31
|
/**
|
@@ -47,7 +47,7 @@ export declare enum PREPROCESSORS {
|
|
47
47
|
*
|
48
48
|
* Uploads file to a cloud storage provider (GCP/AWS for now).
|
49
49
|
*
|
50
|
-
* If this preprocessor is set then you have to also set [`cloudUploadOptions`](https://docs.openwa.dev/interfaces/
|
50
|
+
* If this preprocessor is set then you have to also set [`cloudUploadOptions`](https://docs.openwa.dev/docs/reference/api/model/config/interfaces/ConfigObject#clouduploadoptions) in the config.
|
51
51
|
*
|
52
52
|
*/
|
53
53
|
UPLOAD_CLOUD = "UPLOAD_CLOUD"
|