@wppconnect/wa-js 2.7.2 → 2.8.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.
Files changed (181) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/config.d.ts +10 -0
  3. package/dist/contact/functions/getStatus.d.ts +1 -1
  4. package/dist/eventEmitter/eventEmitter.d.ts +5 -1
  5. package/dist/group/functions/addParticipants.d.ts +20 -1
  6. package/dist/group/functions/index.d.ts +1 -0
  7. package/dist/group/functions/setIcon.d.ts +31 -0
  8. package/dist/profile/functions/index.d.ts +1 -0
  9. package/dist/profile/functions/setMyProfilePicture.d.ts +32 -0
  10. package/dist/status/functions/index.d.ts +2 -0
  11. package/dist/status/functions/sendImageStatus.d.ts +26 -0
  12. package/dist/status/functions/sendVideoStatus.d.ts +26 -0
  13. package/dist/util/index.d.ts +1 -0
  14. package/dist/{profile/functions/queryExists.d.ts → util/resizeImage.d.ts} +2 -5
  15. package/dist/whatsapp/collections/AggReactionsCollection.d.ts +3 -1
  16. package/dist/whatsapp/collections/BaseCollection.d.ts +4 -2
  17. package/dist/whatsapp/collections/BlocklistCollection.d.ts +3 -1
  18. package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +3 -1
  19. package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +3 -1
  20. package/dist/whatsapp/collections/CallCollection.d.ts +1 -0
  21. package/dist/whatsapp/collections/CartCollection.d.ts +3 -1
  22. package/dist/whatsapp/collections/CartItemCollection.d.ts +3 -1
  23. package/dist/whatsapp/collections/CatalogCollection.d.ts +3 -1
  24. package/dist/whatsapp/collections/ChatCollection.d.ts +3 -1
  25. package/dist/whatsapp/collections/ChatstateCollection.d.ts +3 -1
  26. package/dist/whatsapp/collections/Collection.d.ts +6 -2
  27. package/dist/whatsapp/collections/ContactCollection.d.ts +5 -4
  28. package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +3 -1
  29. package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +3 -1
  30. package/dist/whatsapp/collections/LabelCollection.d.ts +3 -1
  31. package/dist/whatsapp/collections/LabelItemCollection.d.ts +3 -1
  32. package/dist/whatsapp/collections/LiveLocationCollection.d.ts +3 -1
  33. package/dist/whatsapp/collections/MsgCollection.d.ts +3 -1
  34. package/dist/whatsapp/collections/MsgInfoCollection.d.ts +3 -1
  35. package/dist/whatsapp/collections/OrderCollection.d.ts +3 -1
  36. package/dist/whatsapp/collections/OrderItemCollection.d.ts +3 -1
  37. package/dist/whatsapp/collections/ParticipantCollection.d.ts +1 -0
  38. package/dist/whatsapp/collections/PresenceCollection.d.ts +3 -1
  39. package/dist/whatsapp/collections/ProductCollCollection.d.ts +3 -1
  40. package/dist/whatsapp/collections/ProductCollection.d.ts +3 -1
  41. package/dist/whatsapp/collections/ProductImageCollection.d.ts +3 -1
  42. package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +3 -1
  43. package/dist/whatsapp/collections/QuickReplyCollection.d.ts +3 -1
  44. package/dist/whatsapp/collections/ReactionsCollection.d.ts +3 -1
  45. package/dist/whatsapp/collections/ReactionsSendersCollection.d.ts +3 -1
  46. package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +3 -1
  47. package/dist/whatsapp/collections/RecentStickerCollection.d.ts +1 -0
  48. package/dist/whatsapp/collections/StarredMsgCollection.d.ts +3 -1
  49. package/dist/whatsapp/collections/StatusV3Collection.d.ts +3 -1
  50. package/dist/whatsapp/collections/StickerCollection.d.ts +3 -1
  51. package/dist/whatsapp/collections/StickerPackCollection.d.ts +1 -0
  52. package/dist/whatsapp/collections/StickerSearchCollection.d.ts +3 -1
  53. package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +3 -1
  54. package/dist/whatsapp/enums/ACK.d.ts +3 -0
  55. package/dist/whatsapp/enums/CALL_STATES.d.ts +1 -0
  56. package/dist/whatsapp/enums/GROUP_SETTING_TYPE.d.ts +1 -0
  57. package/dist/whatsapp/enums/LogoutReason.d.ts +1 -0
  58. package/dist/whatsapp/enums/MSG_TYPE.d.ts +2 -0
  59. package/dist/whatsapp/enums/SendMsgResult.d.ts +3 -1
  60. package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +3 -1
  61. package/dist/whatsapp/functions/blockContact.d.ts +6 -2
  62. package/dist/whatsapp/functions/createMsgProtobuf.d.ts +3 -1
  63. package/dist/whatsapp/functions/createOrUpdateReactions.d.ts +3 -1
  64. package/dist/whatsapp/functions/encryptAndSendGroupMsg.d.ts +1 -0
  65. package/dist/whatsapp/functions/encryptAndSendMsg.d.ts +1 -0
  66. package/dist/whatsapp/functions/fetchLinkPreview.d.ts +1 -0
  67. package/dist/whatsapp/functions/findChat.d.ts +3 -1
  68. package/dist/whatsapp/functions/findFirstWebLink.d.ts +1 -0
  69. package/dist/whatsapp/functions/genMinimalLinkPreview.d.ts +1 -0
  70. package/dist/whatsapp/functions/generateVideoThumbsAndDuration.d.ts +2 -1
  71. package/dist/whatsapp/functions/getFanOutList.d.ts +2 -0
  72. package/dist/whatsapp/functions/getGroupSenderKeyList.d.ts +6 -0
  73. package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -0
  74. package/dist/whatsapp/functions/groupParticipants.d.ts +12 -4
  75. package/dist/whatsapp/functions/handleAck.d.ts +12 -3
  76. package/dist/whatsapp/functions/index.d.ts +2 -0
  77. package/dist/whatsapp/functions/isAuthenticated.d.ts +2 -0
  78. package/dist/whatsapp/functions/markSeen.d.ts +3 -1
  79. package/dist/whatsapp/functions/mediaTypeFromProtobuf.d.ts +1 -0
  80. package/dist/whatsapp/functions/products.d.ts +12 -4
  81. package/dist/whatsapp/functions/profilePic.d.ts +7 -1
  82. package/dist/whatsapp/functions/randomId.d.ts +1 -0
  83. package/dist/whatsapp/functions/sendClear.d.ts +3 -1
  84. package/dist/whatsapp/functions/sendDelete.d.ts +3 -1
  85. package/dist/whatsapp/functions/sendExitGroup.d.ts +3 -1
  86. package/dist/whatsapp/functions/sendGroupParticipants.d.ts +42 -0
  87. package/dist/whatsapp/functions/sendJoinGroupViaInvite.d.ts +3 -1
  88. package/dist/whatsapp/functions/sendQueryGroupInvite.d.ts +3 -1
  89. package/dist/whatsapp/functions/sendReactionToMsg.d.ts +3 -1
  90. package/dist/whatsapp/functions/sendRevokeGroupInviteCode.d.ts +3 -1
  91. package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +3 -1
  92. package/dist/whatsapp/functions/setArchive.d.ts +1 -0
  93. package/dist/whatsapp/functions/setGroup.d.ts +9 -3
  94. package/dist/whatsapp/functions/setPin.d.ts +1 -0
  95. package/dist/whatsapp/functions/status.d.ts +2 -0
  96. package/dist/whatsapp/functions/typeAttributeFromProtobuf.d.ts +3 -1
  97. package/dist/whatsapp/functions/updateParticipants.d.ts +27 -0
  98. package/dist/whatsapp/functions/uploadProductImage.d.ts +3 -1
  99. package/dist/whatsapp/functions/uploadThumbnail.d.ts +1 -0
  100. package/dist/whatsapp/misc/Base64.d.ts +3 -1
  101. package/dist/whatsapp/misc/Browser.d.ts +1 -0
  102. package/dist/whatsapp/misc/ChatPresence.d.ts +3 -1
  103. package/dist/whatsapp/misc/Cmd.d.ts +2 -0
  104. package/dist/whatsapp/misc/Conn.d.ts +3 -1
  105. package/dist/whatsapp/misc/Constants.d.ts +1 -0
  106. package/dist/whatsapp/misc/EventEmitter.d.ts +1 -0
  107. package/dist/whatsapp/misc/Features.d.ts +1 -0
  108. package/dist/whatsapp/misc/ImageUtils.d.ts +1 -0
  109. package/dist/whatsapp/misc/Locale.d.ts +1 -0
  110. package/dist/whatsapp/misc/MediaBlobCache.d.ts +6 -2
  111. package/dist/whatsapp/misc/MediaEntry.d.ts +2 -1
  112. package/dist/whatsapp/misc/MediaObject.d.ts +3 -1
  113. package/dist/whatsapp/misc/MediaObjectUtil.d.ts +3 -1
  114. package/dist/whatsapp/misc/MediaPrep.d.ts +3 -1
  115. package/dist/whatsapp/misc/MediaUtils.d.ts +3 -1
  116. package/dist/whatsapp/misc/MsgKey.d.ts +1 -0
  117. package/dist/whatsapp/misc/MsgLoadState.d.ts +6 -2
  118. package/dist/whatsapp/misc/OpaqueData.d.ts +6 -2
  119. package/dist/whatsapp/misc/Socket.d.ts +3 -1
  120. package/dist/whatsapp/misc/Stream.d.ts +3 -1
  121. package/dist/whatsapp/misc/UserPrefs.d.ts +1 -0
  122. package/dist/whatsapp/misc/VCard.d.ts +1 -0
  123. package/dist/whatsapp/misc/Wap.d.ts +2 -0
  124. package/dist/whatsapp/misc/Wid.d.ts +1 -0
  125. package/dist/whatsapp/misc/WidFactory.d.ts +1 -0
  126. package/dist/whatsapp/models/AggReactionsModel.d.ts +2 -0
  127. package/dist/whatsapp/models/AttachMediaModel.d.ts +6 -2
  128. package/dist/whatsapp/models/BlocklistModel.d.ts +6 -2
  129. package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +6 -2
  130. package/dist/whatsapp/models/BusinessProfileModel.d.ts +6 -2
  131. package/dist/whatsapp/models/CallModel.d.ts +2 -0
  132. package/dist/whatsapp/models/CallParticipantModel.d.ts +2 -0
  133. package/dist/whatsapp/models/CartItemModel.d.ts +6 -2
  134. package/dist/whatsapp/models/CartModel.d.ts +6 -2
  135. package/dist/whatsapp/models/CatalogModel.d.ts +6 -2
  136. package/dist/whatsapp/models/ChatPreferenceModel.d.ts +6 -2
  137. package/dist/whatsapp/models/ChatstateModel.d.ts +6 -2
  138. package/dist/whatsapp/models/ConnModel.d.ts +6 -2
  139. package/dist/whatsapp/models/ContactModel.d.ts +6 -2
  140. package/dist/whatsapp/models/ConversionTupleModel.d.ts +6 -2
  141. package/dist/whatsapp/models/EmojiVariantModel.d.ts +6 -2
  142. package/dist/whatsapp/models/GroupMetadataModel.d.ts +6 -2
  143. package/dist/whatsapp/models/LabelItemModel.d.ts +6 -2
  144. package/dist/whatsapp/models/LabelModel.d.ts +6 -2
  145. package/dist/whatsapp/models/LiveLocationParticipantModel.d.ts +6 -2
  146. package/dist/whatsapp/models/MediaDataModel.d.ts +6 -2
  147. package/dist/whatsapp/models/Model.d.ts +3 -1
  148. package/dist/whatsapp/models/ModelChatBase.d.ts +3 -1
  149. package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +6 -2
  150. package/dist/whatsapp/models/MsgInfoModel.d.ts +6 -2
  151. package/dist/whatsapp/models/MuteModel.d.ts +6 -2
  152. package/dist/whatsapp/models/OrderItemModel.d.ts +6 -2
  153. package/dist/whatsapp/models/OrderModel.d.ts +6 -2
  154. package/dist/whatsapp/models/ParticipantModel.d.ts +6 -2
  155. package/dist/whatsapp/models/PresenceModel.d.ts +6 -2
  156. package/dist/whatsapp/models/ProductCollModel.d.ts +6 -2
  157. package/dist/whatsapp/models/ProductImageModel.d.ts +6 -2
  158. package/dist/whatsapp/models/ProductMessageListModel.d.ts +6 -2
  159. package/dist/whatsapp/models/ProductModel.d.ts +6 -2
  160. package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +6 -2
  161. package/dist/whatsapp/models/QuickReplyModel.d.ts +6 -2
  162. package/dist/whatsapp/models/ReactionsModel.d.ts +2 -0
  163. package/dist/whatsapp/models/ReactionsSendersModel.d.ts +2 -0
  164. package/dist/whatsapp/models/RecentStickerModel.d.ts +6 -2
  165. package/dist/whatsapp/models/ReplyButtonModel.d.ts +6 -2
  166. package/dist/whatsapp/models/StatusModel.d.ts +6 -2
  167. package/dist/whatsapp/models/StatusV3Model.d.ts +9 -5
  168. package/dist/whatsapp/models/StickerModel.d.ts +2 -0
  169. package/dist/whatsapp/models/StickerPackModel.d.ts +6 -2
  170. package/dist/whatsapp/models/StreamModel.d.ts +6 -2
  171. package/dist/whatsapp/models/TemplateButtonModel.d.ts +6 -2
  172. package/dist/whatsapp/models/UnreadMentionModel.d.ts +6 -2
  173. package/dist/whatsapp/models/WebCallModel.d.ts +2 -0
  174. package/dist/whatsapp/multidevice/adv.d.ts +1 -0
  175. package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +1 -0
  176. package/dist/whatsapp/multidevice/waSignalStore.d.ts +1 -0
  177. package/dist/whatsapp/stores.d.ts +76 -25
  178. package/dist/wppconnect-wa.js +1 -1
  179. package/dist/wppconnect-wa.js.LICENSE.txt +10 -0
  180. package/package.json +20 -19
  181. package/dist/eventEmitter/index.d.ts +0 -195
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { RecentEmojiModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 92671 */
18
+ /** @whatsapp 92671
19
+ * @whatsapp 492671 >= 2.2222.8
20
+ */
19
21
  export declare class RecentEmojiCollection extends Collection<RecentEmojiModel> {
20
22
  static cachePolicy?: any;
21
23
  static model: RecentEmojiModel;
@@ -17,6 +17,7 @@ import { StickerModel } from '../models';
17
17
  import { Collection } from './Collection';
18
18
  /** @whatsapp 49264
19
19
  * @whatsapp 91692 >= 2.2212.8
20
+ * @whatsapp 191692 >= 2.2222.8
20
21
  */
21
22
  export declare class RecentStickerCollection extends Collection<StickerModel> {
22
23
  static model: StickerModel;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { MsgModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 19011 */
18
+ /** @whatsapp 19011
19
+ * @whatsapp 719011 >= 2.2222.8
20
+ */
19
21
  export declare class StarredMsgCollection extends Collection<MsgModel> {
20
22
  static model: MsgModel;
21
23
  syncPromise?: any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { StatusV3Model } from '../models';
17
17
  import { BaseCollection } from '.';
18
- /** @whatsapp 59387 */
18
+ /** @whatsapp 59387
19
+ * @whatsapp 459387 >= 2.2222.8
20
+ */
19
21
  export declare class StatusV3Collection extends BaseCollection<StatusV3Model> {
20
22
  static model: StatusV3Model;
21
23
  loadMore(e?: any, t?: any, r?: any): any;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { StickerModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 67963 */
18
+ /** @whatsapp 67963
19
+ * @whatsapp 767963 >= 2.2222.8
20
+ */
19
21
  export declare class StickerCollection extends Collection<StickerModel> {
20
22
  static model: StickerModel;
21
23
  fetch(): any;
@@ -17,6 +17,7 @@ import { StickerPackModel } from '../models';
17
17
  import { Collection } from './Collection';
18
18
  /** @whatsapp 44333
19
19
  * @whatsapp 66299 >= 2.2212.8
20
+ * @whatsapp 366299 >= 2.2222.8
20
21
  */
21
22
  export declare class StickerPackCollection extends Collection<StickerPackModel> {
22
23
  static model: StickerPackModel;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { StickerModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 45068 */
18
+ /** @whatsapp 45068
19
+ * @whatsapp 545068 >= 2.2222.8
20
+ */
19
21
  export declare class StickerSearchCollection extends Collection<StickerModel> {
20
22
  static model: StickerModel;
21
23
  isFetchingData(): boolean;
@@ -15,7 +15,9 @@
15
15
  */
16
16
  import { TemplateButtonModel } from '../models';
17
17
  import { Collection } from './Collection';
18
- /** @whatsapp 82988 */
18
+ /** @whatsapp 82988
19
+ * @whatsapp 682988 >= 2.2222.8
20
+ */
19
21
  export declare class TemplateButtonCollection extends Collection<TemplateButtonModel> {
20
22
  static model: TemplateButtonModel;
21
23
  static comparator(): any;
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /** @whatsapp 35470
17
17
  * @whatsapp 69618 >= 2.2204.13
18
+ * @whatsapp 535470 >= 2.2222.8
18
19
  */
19
20
  export declare enum ACK {
20
21
  MD_DOWNGRADE = -7,
@@ -33,6 +34,7 @@ export declare enum ACK {
33
34
  }
34
35
  /** @whatsapp 35470
35
36
  * @whatsapp 69618 >= 2.2204.13
37
+ * @whatsapp 535470 >= 2.2222.8
36
38
  */
37
39
  export declare enum EDIT_ATTR {
38
40
  SENDER_REVOKE = 7,
@@ -40,6 +42,7 @@ export declare enum EDIT_ATTR {
40
42
  }
41
43
  /** @whatsapp 35470
42
44
  * @whatsapp 69618 >= 2.2204.13
45
+ * @whatsapp 535470 >= 2.2222.8
43
46
  */
44
47
  export declare enum ACK_STRING {
45
48
  SENDER = "sender",
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /**
17
17
  * @whatsapp 49835
18
+ * @whatsapp 749835 >= 2.2222.8
18
19
  */
19
20
  export declare enum CALL_STATES {
20
21
  INCOMING_RING = "INCOMING_RING",
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /** @whatsapp 12380
17
17
  * @whatsapp 69618 >= 2.2204.13
18
+ * @whatsapp 312380 >= 2.2222.8
18
19
  */
19
20
  export declare enum GROUP_SETTING_TYPE {
20
21
  ANNOUNCEMENT = "announcement",
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /** @whatsapp 83578
17
17
  * @whatsapp 88950 >= 2.2218.4
18
+ * @whatsapp 788950 >= 2.2222.8
18
19
  */
19
20
  export declare enum LogoutReason {
20
21
  USER_INITIATED = "user_initiated",
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /** @whatsapp 15461
17
17
  * @whatsapp 69618 >= 2.2204.13
18
+ * @whatsapp 115461 >= 2.2222.8
18
19
  */
19
20
  export declare enum MSG_TYPE {
20
21
  NOTIFICATION = "notification",
@@ -54,5 +55,6 @@ export declare enum MSG_TYPE {
54
55
  }
55
56
  /** @whatsapp 15461
56
57
  * @whatsapp 69618 >= 2.2204.13
58
+ * @whatsapp 115461 >= 2.2222.8
57
59
  */
58
60
  export declare const SYSTEM_MESSAGE_TYPES: string[];
@@ -13,7 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 13705 */
16
+ /** @whatsapp 13705
17
+ * @whatsapp 413705 >= 2.2222.8
18
+ */
17
19
  export declare enum SendMsgResult {
18
20
  OK = "OK",
19
21
  ERROR_NETWORK = "ERROR_NETWORK",
@@ -15,5 +15,7 @@
15
15
  */
16
16
  import { SendMsgResult } from '../enums';
17
17
  import { ChatModel, ModelPropertiesContructor, MsgModel } from '../models';
18
- /** @whatsapp 75887 */
18
+ /** @whatsapp 75887
19
+ * @whatsapp 975887 >= 2.2222.8
20
+ */
19
21
  export declare function addAndSendMsgToChat(chat: ChatModel, message: ModelPropertiesContructor<MsgModel>): Promise<[Promise<MsgModel>, Promise<SendMsgResult>]>;
@@ -14,7 +14,11 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ContactModel } from '../models';
17
- /** @whatsapp 80140 */
17
+ /** @whatsapp 80140
18
+ * @whatsapp 780140 >= 2.2222.8
19
+ */
18
20
  export declare function blockContact(contact: ContactModel): Promise<void>;
19
- /** @whatsapp 80140 */
21
+ /** @whatsapp 80140
22
+ * @whatsapp 780140 >= 2.2222.8
23
+ */
20
24
  export declare function unblockContact(contact: ContactModel): Promise<void>;
@@ -14,7 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { MsgModel } from '..';
17
- /** @whatsapp 6565 */
17
+ /** @whatsapp 6565
18
+ * @whatsapp 606565 >= 2.2222.8
19
+ */
18
20
  export declare function createMsgProtobuf(e: MsgModel, t?: {
19
21
  [key: string]: any;
20
22
  }): {
@@ -23,5 +23,7 @@ export interface ReactionData {
23
23
  senderUserJid: string;
24
24
  timestamp: number;
25
25
  }
26
- /** @whatsapp 7394 */
26
+ /** @whatsapp 7394
27
+ * @whatsapp 307394 >= 2.2222.8
28
+ */
27
29
  export declare function createOrUpdateReactions(data: ReactionData[]): Promise<any>;
@@ -16,5 +16,6 @@
16
16
  import { MsgModel } from '../models';
17
17
  /**
18
18
  * @whatsapp 51974
19
+ * @whatsapp 951974 >= 2.2222.8
19
20
  */
20
21
  export declare function encryptAndSendGroupMsg(message: MsgModel, protobuf: any): Promise<any>;
@@ -16,5 +16,6 @@
16
16
  import { MsgModel } from '../models';
17
17
  /**
18
18
  * @whatsapp 95547
19
+ * @whatsapp 695547 >= 2.2222.8
19
20
  */
20
21
  export declare function encryptAndSendMsg(message: MsgModel): Promise<any>;
@@ -27,5 +27,6 @@ export interface LinkPreviewResult {
27
27
  }
28
28
  /** @whatsapp 19146
29
29
  * @whatsapp 75820 >= 2.2204.13
30
+ * @whatsapp 519146 >= 2.2222.8
30
31
  */
31
32
  export declare function fetchLinkPreview(url: string): Promise<null | LinkPreviewResult>;
@@ -15,5 +15,7 @@
15
15
  */
16
16
  import { Wid } from '..';
17
17
  import { ChatModel } from '../models';
18
- /** @whatsapp 50101 */
18
+ /** @whatsapp 50101
19
+ * @whatsapp 650101 >= 2.2222.8
20
+ */
19
21
  export declare function findChat(wid: Wid): Promise<ChatModel>;
@@ -15,5 +15,6 @@
15
15
  */
16
16
  /** @whatsapp 29929
17
17
  * @whatsapp 31042 >= 2.2204.13
18
+ * @whatsapp 829929 >= 2.2222.8
18
19
  */
19
20
  export declare function findFirstWebLink(message: string): undefined | string;
@@ -16,6 +16,7 @@
16
16
  import { LinkPreviewResult } from './fetchLinkPreview';
17
17
  /**
18
18
  * @whatsapp 92375
19
+ * @whatsapp 692375 >= 2.2222.8
19
20
  */
20
21
  export declare function genMinimalLinkPreview(data: {
21
22
  anchor: undefined;
@@ -15,7 +15,8 @@
15
15
  */
16
16
  /**
17
17
  * @whatsapp 51428
18
- * */
18
+ * @whatsapp 551428 >= 2.2222.8
19
+ */
19
20
  export declare function generateVideoThumbsAndDuration(data: {
20
21
  file: Blob;
21
22
  maxDimensions: number[];
@@ -16,6 +16,8 @@
16
16
  import { Wid } from '../misc';
17
17
  /**
18
18
  * @whatsapp 16104
19
+ * @whatsapp 416104 >= 2.2222.8
20
+ * @whatsapp 963388 >= 2.2224.7
19
21
  */
20
22
  export declare function getFanOutList(param: {
21
23
  wids: Wid[];
@@ -16,9 +16,15 @@
16
16
  import { Wid } from '../misc';
17
17
  /**
18
18
  * @whatsapp 43201
19
+ * @whatsapp 543201 >= 2.2222.8
19
20
  */
20
21
  export declare function getGroupSenderKeyList(wid: Wid): Promise<{
21
22
  skList: Wid[];
22
23
  skDistribList: Wid[];
23
24
  rotateKey: boolean;
24
25
  }>;
26
+ /**
27
+ * @whatsapp 43201
28
+ * @whatsapp 543201 >= 2.2222.8
29
+ */
30
+ export declare function markForgetSenderKey(wid: Wid, participants: Wid[]): Promise<any>;
@@ -16,5 +16,6 @@
16
16
  /** @whatsapp 98250
17
17
  * @whatsapp 16413 >= 2.2204.13
18
18
  * @whatsapp 66333 >= 2.2218.4
19
+ * @whatsapp 266333 >= 2.2222.8
19
20
  */
20
21
  export declare function getOrGenerate(): string;
@@ -14,11 +14,19 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel, ParticipantModel } from '..';
17
- /** @whatsapp 89389 */
17
+ /** @whatsapp 89389
18
+ * @whatsapp 389389 >= 2.2222.8
19
+ */
18
20
  export declare function addParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
19
- /** @whatsapp 89389 */
21
+ /** @whatsapp 89389
22
+ * @whatsapp 389389 >= 2.2222.8
23
+ */
20
24
  export declare function removeParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
21
- /** @whatsapp 89389 */
25
+ /** @whatsapp 89389
26
+ * @whatsapp 389389 >= 2.2222.8
27
+ */
22
28
  export declare function promoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
23
- /** @whatsapp 89389 */
29
+ /** @whatsapp 89389
30
+ * @whatsapp 389389 >= 2.2222.8
31
+ */
24
32
  export declare function demoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
@@ -30,21 +30,30 @@ export interface SimpleAckData {
30
30
  /**
31
31
  * @whatsapp 90756
32
32
  * @deprecated
33
+ * @whatsapp 590756 >= 2.2222.8
33
34
  */
34
35
  export declare function handleStatusSimpleAck(ackData: SimpleAckData): Promise<any>;
35
36
  /**
36
37
  * @whatsapp 48309
37
38
  * @deprecated
39
+ * @whatsapp 648309 >= 2.2222.8
38
40
  */
39
41
  export declare function handleChatSimpleAck(ackData: SimpleAckData): Promise<any>;
40
42
  /**
41
43
  * @whatsapp 84947
42
44
  * @deprecated
45
+ * @whatsapp 284947 >= 2.2222.8
43
46
  */
44
47
  export declare function handleGroupSimpleAck(ackData: SimpleAckData): Promise<any>;
45
- /** @whatsapp 90756 */
48
+ /** @whatsapp 90756
49
+ * @whatsapp 590756 >= 2.2222.8
50
+ */
46
51
  export declare function handleStatusSimpleReceipt(ackData: SimpleAckData): Promise<any>;
47
- /** @whatsapp 48309 */
52
+ /** @whatsapp 48309
53
+ * @whatsapp 648309 >= 2.2222.8
54
+ */
48
55
  export declare function handleChatSimpleReceipt(ackData: SimpleAckData): Promise<any>;
49
- /** @whatsapp 84947 */
56
+ /** @whatsapp 84947
57
+ * @whatsapp 284947 >= 2.2222.8
58
+ */
50
59
  export declare function handleGroupSimpleReceipt(ackData: SimpleAckData): Promise<any>;
@@ -42,6 +42,7 @@ export * from './sendClear';
42
42
  export * from './sendCreateGroup';
43
43
  export * from './sendDelete';
44
44
  export * from './sendExitGroup';
45
+ export * from './sendGroupParticipants';
45
46
  export * from './sendJoinGroupViaInvite';
46
47
  export * from './sendQueryExists';
47
48
  export * from './sendQueryGroupInvite';
@@ -53,5 +54,6 @@ export * from './setGroup';
53
54
  export * from './setPin';
54
55
  export * from './status';
55
56
  export * from './typeAttributeFromProtobuf';
57
+ export * from './updateParticipants';
56
58
  export * from './uploadProductImage';
57
59
  export * from './uploadThumbnail';
@@ -16,10 +16,12 @@
16
16
  /**
17
17
  * @whatsapp 13194
18
18
  * @whatsapp 9530 >= 2.2210.9
19
+ * @whatsapp 909530 >= 2.2222.8
19
20
  */
20
21
  export declare function isAuthenticated(): boolean;
21
22
  /**
22
23
  * @whatsapp 13194 >= 2.2208.11
23
24
  * @whatsapp 9530 >= 2.2210.9
25
+ * @whatsapp 909530 >= 2.2222.8
24
26
  */
25
27
  export declare function isLoggedIn(): boolean;
@@ -18,7 +18,9 @@ import { ChatModel, MsgModel } from '../models';
18
18
  export declare function markUnread(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
19
19
  /** @whatsapp 9609 */
20
20
  export declare function sendSeen(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
21
- /** @whatsapp 30734 */
21
+ /** @whatsapp 30734
22
+ * @whatsapp 730734 >= 2.2222.8
23
+ */
22
24
  export declare function markPlayed(msg: MsgModel): Promise<void>;
23
25
  /**
24
26
  * @whatsapp 2.2146.9:64850
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /** @whatsapp 95318
17
17
  * @whatsapp 58853 >= 2.2218.4
18
+ * @whatsapp 458853 >= 2.2222.8
18
19
  */
19
20
  export declare function mediaTypeFromProtobuf(protoMessage: {
20
21
  [key: string]: any;
@@ -16,11 +16,19 @@
16
16
  import { ProductModel } from '..';
17
17
  /** @whatsapp 2.2144.10:35339 */
18
18
  export declare function createBusinessCatalog(): Promise<any>;
19
- /** @whatsapp 96519 */
19
+ /** @whatsapp 96519
20
+ * @whatsapp 196519 >= 2.2222.8
21
+ */
20
22
  export declare function addProduct(product: ProductModel, imageWidth?: number, imageHeight?: number): Promise<any>;
21
- /** @whatsapp 96519 */
23
+ /** @whatsapp 96519
24
+ * @whatsapp 196519 >= 2.2222.8
25
+ */
22
26
  export declare function editProduct(product: ProductModel, imageWidth?: number, imageHeight?: number): Promise<any>;
23
- /** @whatsapp 96519 */
27
+ /** @whatsapp 96519
28
+ * @whatsapp 196519 >= 2.2222.8
29
+ */
24
30
  export declare function deleteProducts(productIds: string[]): Promise<any>;
25
- /** @whatsapp 96519 */
31
+ /** @whatsapp 96519
32
+ * @whatsapp 196519 >= 2.2222.8
33
+ */
26
34
  export declare function sendProductToChat(...args: any[]): Promise<any>;
@@ -19,4 +19,10 @@ import { Wid } from '..';
19
19
  * @whatsapp 78426
20
20
  * @whatsapp 5018 >= 2.2204.13
21
21
  */
22
- export declare function sendSetPicture(chat: Wid, previewBase64: string, pictureBase64: string): Promise<void>;
22
+ export declare function sendSetPicture(chat: Wid, previewBase64: string, pictureBase64: string): Promise<{
23
+ eurl: string;
24
+ status: number;
25
+ tag: string;
26
+ token: string;
27
+ _duplicate: boolean;
28
+ }>;
@@ -15,5 +15,6 @@
15
15
  */
16
16
  /** @whatsapp 65212
17
17
  * @whatsapp 15860 >= 2.2204.13
18
+ * @whatsapp 465212 >= 2.2222.8
18
19
  */
19
20
  export declare function randomMessageId(): string;
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 83802 */
17
+ /** @whatsapp 83802
18
+ * @whatsapp 483802 >= 2.2222.8
19
+ */
18
20
  export declare function sendClear(chat: ChatModel, keepStarred?: boolean): Promise<void>;
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 20052 */
17
+ /** @whatsapp 20052
18
+ * @whatsapp 920052 >= 2.2222.8
19
+ */
18
20
  export declare function sendDelete(chat: ChatModel): Promise<void>;
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 5501 */
17
+ /** @whatsapp 5501
18
+ * @whatsapp 605501 >= 2.2222.8
19
+ */
18
20
  export declare function sendExitGroup(group: ChatModel): Promise<void>;
@@ -0,0 +1,42 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '..';
17
+ /**
18
+ * @whatsapp 437722 >= 2.2222.8
19
+ */
20
+ export declare function sendAddParticipants(group: Wid, participants: Wid[]): Promise<{
21
+ participants?: {
22
+ [key: `${number}@c.us`]: {
23
+ code: string;
24
+ invite_code: string | null;
25
+ invite_code_exp: string | null;
26
+ };
27
+ }[];
28
+ status: number;
29
+ [key: `${number}@c.us`]: number;
30
+ }>;
31
+ /**
32
+ * @whatsapp 437722 >= 2.2222.8
33
+ */
34
+ export declare function sendRemoveParticipants(group: Wid, participants: Wid[]): Promise<void>;
35
+ /**
36
+ * @whatsapp 437722 >= 2.2222.8
37
+ */
38
+ export declare function sendPromoteParticipants(group: Wid, participants: Wid[]): Promise<void>;
39
+ /**
40
+ * @whatsapp 437722 >= 2.2222.8
41
+ */
42
+ export declare function sendDemoteParticipants(group: Wid, participants: Wid[]): Promise<void>;
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '..';
17
- /** @whatsapp 69586 */
17
+ /** @whatsapp 69586
18
+ * @whatsapp 769586 >= 2.2222.8
19
+ */
18
20
  export declare function sendJoinGroupViaInvite(code: string): Promise<Wid>;
@@ -40,5 +40,7 @@ export interface QueryGroupInviteResult {
40
40
  support: boolean;
41
41
  suspended: boolean;
42
42
  }
43
- /** @whatsapp 10790 */
43
+ /** @whatsapp 10790
44
+ * @whatsapp 810790 >= 2.2222.8
45
+ */
44
46
  export declare function sendQueryGroupInvite(inviteCode: string): Promise<QueryGroupInviteResult>;
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { MsgModel } from '../models';
17
- /** @whatsapp 21357 */
17
+ /** @whatsapp 21357
18
+ * @whatsapp 621357 >= 2.2222.8
19
+ */
18
20
  export declare function sendReactionToMsg(msg: MsgModel, reactionText: string): Promise<string>;
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '..';
17
- /** @whatsapp 69586 */
17
+ /** @whatsapp 69586
18
+ * @whatsapp 769586 >= 2.2222.8
19
+ */
18
20
  export declare function sendRevokeGroupInviteCode(groupId: Wid): Promise<string>;
@@ -13,5 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 5524 */
16
+ /** @whatsapp 5524
17
+ * @whatsapp 105524 >= 2.2222.8
18
+ */
17
19
  export declare function sendTextMsgToChat(chat: any, message: any, options: any): Promise<string>;
@@ -16,5 +16,6 @@
16
16
  import { ChatModel } from '../models';
17
17
  /**
18
18
  * @whatsapp 59992
19
+ * @whatsapp 259992 >= 2.2222.8
19
20
  */
20
21
  export declare function setArchive(chat: ChatModel, archive: boolean, id?: string): Promise<void>;
@@ -15,9 +15,15 @@
15
15
  */
16
16
  import { Wid } from '..';
17
17
  import { GROUP_SETTING_TYPE } from '../enums';
18
- /** @whatsapp 57490 */
18
+ /** @whatsapp 57490
19
+ * @whatsapp 357490 >= 2.2222.8
20
+ */
19
21
  export declare function sendSetGroupSubject(groupId: Wid, subject: string): Promise<void>;
20
- /** @whatsapp 57490 */
22
+ /** @whatsapp 57490
23
+ * @whatsapp 357490 >= 2.2222.8
24
+ */
21
25
  export declare function sendSetGroupDescription(groupId: Wid, description: string, tagId: string, previousTagId?: string): Promise<void>;
22
- /** @whatsapp 57490 */
26
+ /** @whatsapp 57490
27
+ * @whatsapp 357490 >= 2.2222.8
28
+ */
23
29
  export declare function sendSetGroupProperty(groupId: Wid, property: GROUP_SETTING_TYPE, value: number): Promise<void>;
@@ -16,5 +16,6 @@
16
16
  import { ChatModel } from '../models';
17
17
  /**
18
18
  * @whatsapp 10236
19
+ * @whatsapp 510236 >= 2.2222.8
19
20
  */
20
21
  export declare function setPin(chat: ChatModel, pin: boolean): Promise<void>;
@@ -16,6 +16,7 @@
16
16
  import { Wid } from '..';
17
17
  /** @whatsapp 46898
18
18
  * @whatsapp 51316 >= 2.2204.13
19
+ * @whatsapp 546898 >= 2.2222.8
19
20
  */
20
21
  export declare function getStatus(contactId: Wid): Promise<{
21
22
  id: Wid;
@@ -23,6 +24,7 @@ export declare function getStatus(contactId: Wid): Promise<{
23
24
  }>;
24
25
  /** @whatsapp 46898
25
26
  * @whatsapp 51316 >= 2.2204.13
27
+ * @whatsapp 546898 >= 2.2222.8
26
28
  */
27
29
  export declare function setMyStatus(status: string, seqId?: number): Promise<{
28
30
  status: number;