@open-wa/wa-automate-types-only 4.43.0 → 4.43.1

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.
@@ -2,7 +2,7 @@
2
2
  import { Page } from 'puppeteer';
3
3
  import { Chat, LiveLocationChangedEvent, ChatState, ChatMuteDuration, GroupChatCreationResponse, EphemeralDuration } from './model/chat';
4
4
  import { Contact, NumberCheck } from './model/contact';
5
- import { Message } from './model/message';
5
+ import { Message, MessageInfo } from './model/message';
6
6
  import { AxiosRequestConfig } from 'axios';
7
7
  import { ParticipantChangedEventModel } from './model/group-metadata';
8
8
  import { ConfigObject, STATE, LicenseType, Webhook, EventPayload } from './model';
@@ -1057,6 +1057,13 @@ export declare class Client {
1057
1057
  * @returns message object
1058
1058
  */
1059
1059
  getMessageById(messageId: MessageId): Promise<Message>;
1060
+ /**
1061
+ * [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
1062
+ *
1063
+ * Get the detailed message info for a group message sent out by the host account.
1064
+ * @param messageId The message Id
1065
+ */
1066
+ getMessageInfo(messageId: MessageId): Promise<MessageInfo>;
1060
1067
  /**
1061
1068
  * [REQUIRES AN INSIDERS LICENSE-KEY](https://gum.co/open-wa?tier=Insiders%20Program)
1062
1069
  *
@@ -163,6 +163,28 @@ export interface Message {
163
163
  "buttonText": string;
164
164
  };
165
165
  }
166
+ export interface MessageInfoInteraction {
167
+ /**
168
+ * The contact ID of the contact that interacted with the message.
169
+ */
170
+ id: ContactId;
171
+ /**
172
+ * The timestamp of the interaction. You have to x 1000 to use in a JS Date object.
173
+ */
174
+ t: number;
175
+ }
176
+ export interface MessageInfo {
177
+ deliveryRemaining: number;
178
+ playedRemaining: number;
179
+ readRemaining: number;
180
+ delivery: MessageInfoInteraction[];
181
+ read: MessageInfoInteraction[];
182
+ played: MessageInfoInteraction[];
183
+ /**
184
+ * The ID of the message
185
+ */
186
+ id: MessageId;
187
+ }
166
188
  /**
167
189
  * Message types
168
190
  * @readonly
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate-types-only",
3
- "version": "4.43.0",
3
+ "version": "4.43.1",
4
4
  "description": "Types generated from the @open-wa/wa-automate package",
5
5
  "scripts": {
6
6
  "build": "tsc",