@open-wa/wa-automate-types-only 4.23.14 → 4.23.18
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.
package/dist/api/model/chat.d.ts
CHANGED
@@ -5,26 +5,83 @@ export interface Chat {
|
|
5
5
|
archive: boolean;
|
6
6
|
changeNumberNewJid: any;
|
7
7
|
changeNumberOldJid: any;
|
8
|
+
/**
|
9
|
+
* The contact related to this chat
|
10
|
+
*/
|
8
11
|
contact: Contact;
|
12
|
+
/**
|
13
|
+
* Group metadata for this chat
|
14
|
+
*/
|
9
15
|
groupMetadata: GroupMetadata;
|
16
|
+
/**
|
17
|
+
* The id of the chat
|
18
|
+
*/
|
10
19
|
id: ChatId;
|
20
|
+
/**
|
21
|
+
* If the chat is a group chat is restricted
|
22
|
+
*/
|
11
23
|
isAnnounceGrpRestrict: any;
|
24
|
+
/**
|
25
|
+
* The title of the chat
|
26
|
+
*/
|
12
27
|
formattedTitle?: string;
|
28
|
+
/**
|
29
|
+
* Whether your host account is able to send messages to this chat
|
30
|
+
*/
|
13
31
|
canSend?: boolean;
|
32
|
+
/**
|
33
|
+
* Whether the chat is a group chat
|
34
|
+
*/
|
14
35
|
isGroup: boolean;
|
36
|
+
/**
|
37
|
+
* Whether the chat is a group chat and the group is restricted
|
38
|
+
*/
|
15
39
|
isReadOnly: boolean;
|
16
40
|
kind: string;
|
41
|
+
/**
|
42
|
+
* The labels attached to this chat.
|
43
|
+
*/
|
17
44
|
labels: any;
|
45
|
+
/**
|
46
|
+
* The ID of the last message received in this chat
|
47
|
+
*/
|
18
48
|
lastReceivedKey: any;
|
19
49
|
modifyTag: number;
|
50
|
+
/**
|
51
|
+
* The messages in the chat
|
52
|
+
*/
|
20
53
|
msgs: any;
|
54
|
+
/**
|
55
|
+
* The expiration timestamp of the chat mute
|
56
|
+
*/
|
21
57
|
muteExpiration: number;
|
58
|
+
/**
|
59
|
+
* The name of the chat
|
60
|
+
*/
|
22
61
|
name: string;
|
62
|
+
/**
|
63
|
+
* Whether the chat is marked as spam
|
64
|
+
*/
|
23
65
|
notSpam: boolean;
|
66
|
+
/**
|
67
|
+
* Messages that are pending to be sent
|
68
|
+
*/
|
24
69
|
pendingMsgs: boolean;
|
70
|
+
/**
|
71
|
+
* Whether the chat is pinned
|
72
|
+
*/
|
25
73
|
pin: number;
|
74
|
+
/**
|
75
|
+
* The presence state of the chat participant
|
76
|
+
*/
|
26
77
|
presence: any;
|
78
|
+
/**
|
79
|
+
* The timestamp of the last interaction in the chat
|
80
|
+
*/
|
27
81
|
t: number;
|
82
|
+
/**
|
83
|
+
* The number of undread messages in this chat
|
84
|
+
*/
|
28
85
|
unreadCount: number;
|
29
86
|
ack?: any;
|
30
87
|
/**
|
@@ -44,6 +44,14 @@ export declare type StickerMetadata = {
|
|
44
44
|
* @default `attention`
|
45
45
|
*/
|
46
46
|
cropPosition?: 'top' | 'right top' | 'right' | 'right bottom' | 'bottom' | 'left bottom' | 'left' | 'left top' | 'north' | 'northeast' | 'east' | 'southeast' | 'south' | 'southwest' | 'west' | 'northwest' | 'center' | 'centre' | 'entropy' | 'attention';
|
47
|
+
/**
|
48
|
+
* The corner radius of the sticker when `stickerMetadata.circle` is set to true.
|
49
|
+
* @default `100`
|
50
|
+
* @minimum `1`
|
51
|
+
* @maximum `100`
|
52
|
+
* @multipleOf `1`
|
53
|
+
*/
|
54
|
+
cornerRadius?: number;
|
47
55
|
};
|
48
56
|
export declare type Mp4StickerConversionProcessOptions = {
|
49
57
|
/**
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Page } from 'puppeteer';
|
2
2
|
import { Spin } from './events';
|
3
3
|
import { ConfigObject } from '../api/model';
|
4
|
-
export declare function initPage(sessionId?: string, config?: ConfigObject, customUserAgent?: string, spinner?: Spin): Promise<Page>;
|
4
|
+
export declare function initPage(sessionId?: string, config?: ConfigObject, customUserAgent?: string, spinner?: Spin, _page?: Page, skipAuth?: boolean): Promise<Page>;
|
5
5
|
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>;
|