@open-wa/wa-automate-types-only 4.23.12 → 4.23.16

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.
@@ -1198,6 +1198,12 @@ export declare class Client {
1198
1198
  * @returns list of messages
1199
1199
  */
1200
1200
  getIndicatedNewMessages(): Promise<Message[]>;
1201
+ /**
1202
+ * Fires all unread messages to the onMessage listener.
1203
+ * Make sure to call this AFTER setting your listeners.
1204
+ * @returns array of message IDs
1205
+ */
1206
+ emitUnreadMessages(): Promise<MessageId[]>;
1201
1207
  /**
1202
1208
  * Retrieves all Messages in a chat that have been loaded within the WA web instance.
1203
1209
  *
@@ -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
  /**
@@ -97,6 +97,10 @@ export declare enum STATE {
97
97
  */
98
98
  DISCONNECTED = "DISCONNECTED"
99
99
  }
100
+ export declare type EasyApiResponse = {
101
+ success: boolean;
102
+ response: any;
103
+ };
100
104
  export * from './config';
101
105
  export * from './media';
102
106
  export * from './aliases';
@@ -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,2 +1,3 @@
1
1
  export declare const collections: {};
2
2
  export declare const generateCollections: any;
3
+ export declare const getTypeSchemas: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.23.12",
3
+ "version": "4.23.16",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",