@wppconnect/wa-js 1.1.18 → 1.2.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 (213) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/chat/functions/canMute.d.ts +1 -1
  3. package/dist/chat/functions/getMessageById.d.ts +2 -2
  4. package/dist/chat/functions/getMessages.d.ts +3 -3
  5. package/dist/chat/functions/markIsComposing.d.ts +2 -2
  6. package/dist/chat/functions/markIsPaused.d.ts +1 -1
  7. package/dist/chat/functions/markIsRead.d.ts +1 -1
  8. package/dist/chat/functions/markIsRecording.d.ts +2 -2
  9. package/dist/chat/functions/markIsUnread.d.ts +1 -1
  10. package/dist/chat/functions/mute.d.ts +3 -3
  11. package/dist/chat/functions/openChatAt.d.ts +1 -1
  12. package/dist/chat/functions/openChatBottom.d.ts +1 -1
  13. package/dist/chat/functions/openChatFromUnread.d.ts +1 -1
  14. package/dist/chat/functions/prepareLinkPreview.d.ts +2 -2
  15. package/dist/chat/functions/sendFileMessage.d.ts +5 -5
  16. package/dist/chat/functions/sendListMessage.d.ts +1 -1
  17. package/dist/chat/functions/unmute.d.ts +1 -1
  18. package/dist/chat/types.d.ts +8 -8
  19. package/dist/{auth → conn}/eventEmitter.d.ts +37 -3
  20. package/dist/conn/events/index.d.ts +22 -0
  21. package/dist/{auth/events/registerChangeEvent.d.ts → conn/events/registerAuthCodeChangeEvent.d.ts} +0 -0
  22. package/dist/{auth/events/registerIdleEvent.d.ts → conn/events/registerAuthenticatedEvent.d.ts} +0 -0
  23. package/dist/{auth → conn}/events/registerLogoutEvent.d.ts +0 -0
  24. package/dist/{auth/functions/poke.d.ts → conn/events/registerMainLoadedEvent.d.ts} +1 -1
  25. package/dist/conn/events/registerMainReadyEvent.d.ts +16 -0
  26. package/dist/conn/events/registerQRCodeIdleEvent.d.ts +16 -0
  27. package/dist/conn/events/registerRequireAuthEvent.d.ts +16 -0
  28. package/dist/{auth → conn}/functions/getAuthCode.d.ts +0 -0
  29. package/dist/{auth → conn}/functions/index.d.ts +2 -1
  30. package/dist/{auth → conn}/functions/isAuthenticated.d.ts +0 -0
  31. package/dist/{auth → conn}/functions/isIdle.d.ts +0 -0
  32. package/dist/conn/functions/isMainLoaded.d.ts +24 -0
  33. package/dist/{auth → conn}/functions/isMultiDevice.d.ts +0 -0
  34. package/dist/{auth → conn}/functions/logout.d.ts +0 -0
  35. package/dist/conn/functions/refreshQR.d.ts +28 -0
  36. package/dist/{auth → conn}/functions/setMultiDevice.d.ts +1 -1
  37. package/dist/{auth → conn}/index.d.ts +0 -0
  38. package/dist/{auth → conn}/types.d.ts +0 -0
  39. package/dist/contact/functions/getStatus.d.ts +1 -1
  40. package/dist/contact/functions/queryExists.d.ts +1 -1
  41. package/dist/group/functions/getInviteCode.d.ts +1 -1
  42. package/dist/group/functions/getParticipants.d.ts +1 -1
  43. package/dist/group/functions/leave.d.ts +1 -1
  44. package/dist/group/functions/revokeInviteCode.d.ts +1 -1
  45. package/dist/group/functions/setDescription.d.ts +1 -1
  46. package/dist/group/functions/setProperty.d.ts +8 -8
  47. package/dist/group/functions/setSubject.d.ts +1 -1
  48. package/dist/index.d.ts +1 -1
  49. package/dist/labels/functions/addOrRemoveLabels.d.ts +1 -1
  50. package/dist/whatsapp/collections/BaseCollection.d.ts +1 -1
  51. package/dist/whatsapp/collections/BlocklistCollection.d.ts +1 -1
  52. package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +1 -1
  53. package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +1 -1
  54. package/dist/whatsapp/collections/ButtonCollection.d.ts +1 -1
  55. package/dist/whatsapp/collections/CallCollection.d.ts +1 -1
  56. package/dist/whatsapp/collections/CartCollection.d.ts +1 -1
  57. package/dist/whatsapp/collections/CartItemCollection.d.ts +1 -1
  58. package/dist/whatsapp/collections/CatalogCollection.d.ts +1 -1
  59. package/dist/whatsapp/collections/ChatCollection.d.ts +1 -1
  60. package/dist/whatsapp/collections/ChatstateCollection.d.ts +1 -1
  61. package/dist/whatsapp/collections/Collection.d.ts +2 -2
  62. package/dist/whatsapp/collections/ContactCollection.d.ts +1 -1
  63. package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +1 -1
  64. package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +1 -1
  65. package/dist/whatsapp/collections/LabelCollection.d.ts +1 -1
  66. package/dist/whatsapp/collections/LabelItemCollection.d.ts +1 -1
  67. package/dist/whatsapp/collections/LiveLocationCollection.d.ts +1 -1
  68. package/dist/whatsapp/collections/MsgCollection.d.ts +1 -1
  69. package/dist/whatsapp/collections/MsgInfoCollection.d.ts +1 -1
  70. package/dist/whatsapp/collections/MuteCollection.d.ts +1 -1
  71. package/dist/whatsapp/collections/OrderCollection.d.ts +1 -1
  72. package/dist/whatsapp/collections/OrderItemCollection.d.ts +1 -1
  73. package/dist/whatsapp/collections/ParticipantCollection.d.ts +1 -1
  74. package/dist/whatsapp/collections/PresenceCollection.d.ts +1 -1
  75. package/dist/whatsapp/collections/ProductCollCollection.d.ts +1 -1
  76. package/dist/whatsapp/collections/ProductCollection.d.ts +1 -1
  77. package/dist/whatsapp/collections/ProductImageCollection.d.ts +1 -1
  78. package/dist/whatsapp/collections/ProductMessageListCollection.d.ts +1 -1
  79. package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +1 -1
  80. package/dist/whatsapp/collections/QuickReplyCollection.d.ts +1 -1
  81. package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +1 -1
  82. package/dist/whatsapp/collections/RecentStickerCollection.d.ts +1 -1
  83. package/dist/whatsapp/collections/StarredMsgCollection.d.ts +1 -1
  84. package/dist/whatsapp/collections/StarredStickerCollection.d.ts +1 -1
  85. package/dist/whatsapp/collections/StatusCollection.d.ts +1 -1
  86. package/dist/whatsapp/collections/StatusV3Collection.d.ts +1 -1
  87. package/dist/whatsapp/collections/StickerCollection.d.ts +1 -1
  88. package/dist/whatsapp/collections/StickerPackCollection.d.ts +1 -1
  89. package/dist/whatsapp/collections/StickerSearchCollection.d.ts +1 -1
  90. package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +1 -1
  91. package/dist/whatsapp/enums/ACK.d.ts +46 -0
  92. package/dist/whatsapp/enums/GROUP_SETTING_TYPE.d.ts +1 -1
  93. package/dist/whatsapp/enums/LogoutReason.d.ts +1 -1
  94. package/dist/whatsapp/enums/MSG_TYPE.d.ts +54 -0
  95. package/dist/whatsapp/enums/OUTWARD_TYPES.d.ts +1 -1
  96. package/dist/whatsapp/enums/SOCKET_STATE.d.ts +42 -0
  97. package/dist/whatsapp/enums/SendMsgResult.d.ts +1 -1
  98. package/dist/whatsapp/enums/index.d.ts +2 -0
  99. package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +1 -1
  100. package/dist/whatsapp/functions/blockContact.d.ts +2 -2
  101. package/dist/whatsapp/functions/createMsgProtobuf.d.ts +1 -1
  102. package/dist/whatsapp/functions/fetchLinkPreview.d.ts +1 -1
  103. package/dist/whatsapp/functions/findChat.d.ts +1 -1
  104. package/dist/whatsapp/functions/findFirstWebLink.d.ts +1 -1
  105. package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -1
  106. package/dist/whatsapp/functions/groupParticipants.d.ts +4 -4
  107. package/dist/whatsapp/functions/handleAck.d.ts +3 -3
  108. package/dist/whatsapp/functions/isAuthenticated.d.ts +1 -1
  109. package/dist/whatsapp/functions/markSeen.d.ts +3 -3
  110. package/dist/whatsapp/functions/msgFindQuery.d.ts +1 -1
  111. package/dist/whatsapp/functions/products.d.ts +4 -4
  112. package/dist/whatsapp/functions/profilePic.d.ts +1 -1
  113. package/dist/whatsapp/functions/randomId.d.ts +1 -3
  114. package/dist/whatsapp/functions/sendCallSignalingMsg.d.ts +1 -1
  115. package/dist/whatsapp/functions/sendClear.d.ts +1 -1
  116. package/dist/whatsapp/functions/sendCreateGroup.d.ts +1 -1
  117. package/dist/whatsapp/functions/sendDelete.d.ts +1 -1
  118. package/dist/whatsapp/functions/sendExitGroup.d.ts +1 -1
  119. package/dist/whatsapp/functions/sendJoinGroupViaInvite.d.ts +1 -1
  120. package/dist/whatsapp/functions/sendQueryExists.d.ts +1 -1
  121. package/dist/whatsapp/functions/sendQueryGroupInvite.d.ts +1 -1
  122. package/dist/whatsapp/functions/sendRevokeGroupInviteCode.d.ts +1 -1
  123. package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +1 -1
  124. package/dist/whatsapp/functions/setGroup.d.ts +3 -3
  125. package/dist/whatsapp/functions/status.d.ts +2 -2
  126. package/dist/whatsapp/functions/uploadProductImage.d.ts +1 -1
  127. package/dist/whatsapp/misc/Base64.d.ts +1 -1
  128. package/dist/whatsapp/misc/Browser.d.ts +1 -1
  129. package/dist/whatsapp/misc/ChatPresence.d.ts +1 -1
  130. package/dist/whatsapp/misc/Clock.d.ts +2 -2
  131. package/dist/whatsapp/misc/Cmd.d.ts +2 -2
  132. package/dist/whatsapp/misc/Conn.d.ts +1 -1
  133. package/dist/whatsapp/misc/Constants.d.ts +28 -432
  134. package/dist/whatsapp/misc/EventEmitter.d.ts +1 -1
  135. package/dist/whatsapp/misc/Features.d.ts +1 -1
  136. package/dist/whatsapp/misc/ImageUtils.d.ts +1 -1
  137. package/dist/whatsapp/misc/Locale.d.ts +1 -1
  138. package/dist/whatsapp/misc/MediaBlobCache.d.ts +2 -2
  139. package/dist/whatsapp/misc/MediaObject.d.ts +1 -1
  140. package/dist/whatsapp/misc/MediaObjectUtil.d.ts +1 -1
  141. package/dist/whatsapp/misc/MediaPrep.d.ts +1 -1
  142. package/dist/whatsapp/misc/MediaUtils.d.ts +1 -1
  143. package/dist/whatsapp/misc/MsgKey.d.ts +5 -1
  144. package/dist/whatsapp/misc/MsgLoadState.d.ts +2 -2
  145. package/dist/whatsapp/misc/OpaqueData.d.ts +2 -2
  146. package/dist/whatsapp/misc/Socket.d.ts +18 -0
  147. package/dist/{auth/events/index.d.ts → whatsapp/misc/Stream.d.ts} +3 -3
  148. package/dist/whatsapp/misc/UserPrefs.d.ts +1 -1
  149. package/dist/whatsapp/misc/VCard.d.ts +1 -1
  150. package/dist/whatsapp/misc/Wap.d.ts +2 -2
  151. package/dist/whatsapp/misc/Wid.d.ts +1 -1
  152. package/dist/whatsapp/misc/WidFactory.d.ts +1 -1
  153. package/dist/whatsapp/misc/index.d.ts +2 -1
  154. package/dist/whatsapp/models/AttachMediaModel.d.ts +2 -2
  155. package/dist/whatsapp/models/BlocklistModel.d.ts +2 -2
  156. package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +2 -2
  157. package/dist/whatsapp/models/BusinessProfileModel.d.ts +2 -2
  158. package/dist/whatsapp/models/CallModel.d.ts +2 -2
  159. package/dist/whatsapp/models/CallParticipantModel.d.ts +2 -2
  160. package/dist/whatsapp/models/CartItemModel.d.ts +2 -2
  161. package/dist/whatsapp/models/CartModel.d.ts +2 -2
  162. package/dist/whatsapp/models/CatalogModel.d.ts +2 -2
  163. package/dist/whatsapp/models/ChatModel.d.ts +2 -2
  164. package/dist/whatsapp/models/ChatPreferenceModel.d.ts +2 -2
  165. package/dist/whatsapp/models/ChatstateModel.d.ts +2 -2
  166. package/dist/whatsapp/models/ConnModel.d.ts +2 -2
  167. package/dist/whatsapp/models/ContactModel.d.ts +2 -2
  168. package/dist/whatsapp/models/ConversionTupleModel.d.ts +2 -2
  169. package/dist/whatsapp/models/EmojiVariantModel.d.ts +2 -2
  170. package/dist/whatsapp/models/GroupMetadataModel.d.ts +2 -2
  171. package/dist/whatsapp/models/LabelItemModel.d.ts +2 -2
  172. package/dist/whatsapp/models/LabelModel.d.ts +2 -2
  173. package/dist/whatsapp/models/LiveLocationModel.d.ts +2 -2
  174. package/dist/whatsapp/models/LiveLocationParticipantModel.d.ts +2 -2
  175. package/dist/whatsapp/models/MediaDataModel.d.ts +2 -2
  176. package/dist/whatsapp/models/Model.d.ts +3 -3
  177. package/dist/whatsapp/models/ModelChatBase.d.ts +1 -1
  178. package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +2 -2
  179. package/dist/whatsapp/models/MsgInfoModel.d.ts +2 -2
  180. package/dist/whatsapp/models/MsgModel.d.ts +2 -2
  181. package/dist/whatsapp/models/MuteModel.d.ts +2 -2
  182. package/dist/whatsapp/models/OrderItemModel.d.ts +2 -2
  183. package/dist/whatsapp/models/OrderModel.d.ts +2 -2
  184. package/dist/whatsapp/models/ParticipantModel.d.ts +2 -2
  185. package/dist/whatsapp/models/ProductCollModel.d.ts +2 -2
  186. package/dist/whatsapp/models/ProductImageModel.d.ts +2 -2
  187. package/dist/whatsapp/models/ProductMessageListModel.d.ts +2 -2
  188. package/dist/whatsapp/models/ProductModel.d.ts +2 -2
  189. package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +2 -2
  190. package/dist/whatsapp/models/QuickReplyModel.d.ts +2 -2
  191. package/dist/whatsapp/models/RecentEmojiModel.d.ts +2 -2
  192. package/dist/whatsapp/models/RecentStickerModel.d.ts +2 -2
  193. package/dist/whatsapp/models/ReplyButtonModel.d.ts +2 -2
  194. package/dist/whatsapp/models/{StateModel.d.ts → SocketModel.d.ts} +5 -5
  195. package/dist/whatsapp/models/StatusModel.d.ts +2 -2
  196. package/dist/whatsapp/models/StatusV3Model.d.ts +2 -2
  197. package/dist/whatsapp/models/StickerModel.d.ts +2 -2
  198. package/dist/whatsapp/models/StickerPackModel.d.ts +2 -2
  199. package/dist/whatsapp/models/StreamModel.d.ts +61 -0
  200. package/dist/whatsapp/models/TemplateButtonModel.d.ts +2 -2
  201. package/dist/whatsapp/models/UnreadMentionModel.d.ts +2 -2
  202. package/dist/whatsapp/models/WebCallModel.d.ts +2 -2
  203. package/dist/whatsapp/models/index.d.ts +2 -1
  204. package/dist/whatsapp/multidevice/adv.d.ts +1 -1
  205. package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +1 -1
  206. package/dist/whatsapp/multidevice/waSignalStore.d.ts +1 -1
  207. package/dist/whatsapp/stores.d.ts +29 -29
  208. package/dist/wppconnect-wa.js +1 -1
  209. package/package.json +18 -23
  210. package/tests/check-auth.ts +2 -2
  211. package/tests/prepare.ts +3 -3
  212. package/dist/internal.d.ts +0 -21
  213. package/dist/whatsapp/misc/State.d.ts +0 -18
@@ -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
+ /** @whatsapp 62583 */
17
+ export declare enum SOCKET_STATE {
18
+ OPENING = "OPENING",
19
+ PAIRING = "PAIRING",
20
+ UNPAIRED = "UNPAIRED",
21
+ UNPAIRED_IDLE = "UNPAIRED_IDLE",
22
+ CONNECTED = "CONNECTED",
23
+ TIMEOUT = "TIMEOUT",
24
+ CONFLICT = "CONFLICT",
25
+ UNLAUNCHED = "UNLAUNCHED",
26
+ PROXYBLOCK = "PROXYBLOCK",
27
+ TOS_BLOCK = "TOS_BLOCK",
28
+ SMB_TOS_BLOCK = "SMB_TOS_BLOCK",
29
+ DEPRECATED_VERSION = "DEPRECATED_VERSION"
30
+ }
31
+ /** @whatsapp 62583 */
32
+ export declare enum SOCKET_STREAM {
33
+ DISCONNECTED = "DISCONNECTED",
34
+ SYNCING = "SYNCING",
35
+ RESUMING = "RESUMING",
36
+ CONNECTED = "CONNECTED"
37
+ }
38
+ /** @whatsapp 62583 */
39
+ export declare enum WATCHED_SOCKET_STATE {
40
+ OPEN = "OPEN",
41
+ CLOSED = "CLOSED"
42
+ }
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 11424 */
16
+ /** @whatsapp 13705 */
17
17
  export declare enum SendMsgResult {
18
18
  OK = "OK",
19
19
  ERROR_NETWORK = "ERROR_NETWORK",
@@ -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
+ export * from './ACK';
16
17
  export * from './GROUP_SETTING_TYPE';
17
18
  export * from './LogoutReason';
19
+ export * from './MSG_TYPE';
18
20
  export * from './OUTWARD_TYPES';
19
21
  export * from './SendMsgResult';
@@ -15,5 +15,5 @@
15
15
  */
16
16
  import { SendMsgResult } from '../enums';
17
17
  import { ChatModel, ModelPropertiesContructor, MsgModel } from '../models';
18
- /** @whatsapp 12862 */
18
+ /** @whatsapp 75887 */
19
19
  export declare function addAndSendMsgToChat(chat: ChatModel, message: ModelPropertiesContructor<MsgModel>): Promise<[Promise<MsgModel>, Promise<SendMsgResult>]>;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ContactModel } from '../models';
17
- /** @whatsapp 93671 */
17
+ /** @whatsapp 80140 */
18
18
  export declare function blockContact(contact: ContactModel): Promise<void>;
19
- /** @whatsapp 93671 */
19
+ /** @whatsapp 80140 */
20
20
  export declare function unblockContact(contact: ContactModel): Promise<void>;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { MsgModel } from '..';
17
- /** @whatsapp 56346 */
17
+ /** @whatsapp 6565 */
18
18
  export declare function createMsgProtobuf(e: MsgModel, t?: {
19
19
  [key: string]: any;
20
20
  }): Promise<any>;
@@ -25,5 +25,5 @@ export interface LinkPreviewResult {
25
25
  doNotPlayInline: boolean;
26
26
  };
27
27
  }
28
- /** @whatsapp 362 */
28
+ /** @whatsapp 75820 */
29
29
  export declare function fetchLinkPreview(url: string): Promise<null | LinkPreviewResult>;
@@ -15,5 +15,5 @@
15
15
  */
16
16
  import { Wid } from '..';
17
17
  import { ChatModel } from '../models';
18
- /** @whatsapp 42423 */
18
+ /** @whatsapp 50101 */
19
19
  export declare function findChat(wid: Wid): Promise<ChatModel>;
@@ -13,5 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 23740 */
16
+ /** @whatsapp 31042 */
17
17
  export declare function findFirstWebLink(message: string): undefined | string;
@@ -13,5 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 98863 */
16
+ /** @whatsapp 16413 */
17
17
  export declare function getOrGenerate(): string;
@@ -14,11 +14,11 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel, ParticipantModel } from '..';
17
- /** @whatsapp 27251 */
17
+ /** @whatsapp 89389 */
18
18
  export declare function addParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
19
- /** @whatsapp 27251 */
19
+ /** @whatsapp 89389 */
20
20
  export declare function removeParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
21
- /** @whatsapp 27251 */
21
+ /** @whatsapp 89389 */
22
22
  export declare function promoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
23
- /** @whatsapp 27251 */
23
+ /** @whatsapp 89389 */
24
24
  export declare function demoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
@@ -13,9 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 95782 */
16
+ /** @whatsapp 90756 */
17
17
  export declare function handleStatusSimpleAck(ackData: any): Promise<any>;
18
- /** @whatsapp 33630 */
18
+ /** @whatsapp 48309 */
19
19
  export declare function handleChatSimpleAck(ackData: any): Promise<any>;
20
- /** @whatsapp 14569 */
20
+ /** @whatsapp 84947 */
21
21
  export declare function handleGroupSimpleAck(ackData: any): Promise<any>;
@@ -13,5 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 93784 */
16
+ /** @whatsapp 13194 */
17
17
  export declare function isAuthenticated(): boolean;
@@ -14,11 +14,11 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel, MsgModel } from '../models';
17
- /** @whatsapp 9301 */
17
+ /** @whatsapp 9609 */
18
18
  export declare function markUnread(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
19
- /** @whatsapp 9301 */
19
+ /** @whatsapp 9609 */
20
20
  export declare function sendSeen(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
21
- /** @whatsapp 12785 */
21
+ /** @whatsapp 30734 */
22
22
  export declare function markPlayed(msg: MsgModel): Promise<void>;
23
23
  /**
24
24
  * @whatsapp 2.2146.9:64850
@@ -23,5 +23,5 @@ export interface MsgFindQueryParams {
23
23
  id?: string;
24
24
  participant?: any;
25
25
  }
26
- /** @whatsapp 91626 */
26
+ /** @whatsapp 76581 */
27
27
  export declare function msgFindQuery(direction: 'after' | 'before', params: MsgFindQueryParams): Promise<ModelPropertiesContructor<MsgModel>[]>;
@@ -16,11 +16,11 @@
16
16
  import { ProductModel } from '..';
17
17
  /** @whatsapp 2.2144.10:35339 */
18
18
  export declare function createBusinessCatalog(): Promise<any>;
19
- /** @whatsapp 426 */
19
+ /** @whatsapp 96519 */
20
20
  export declare function addProduct(product: ProductModel, imageWidth?: number, imageHeight?: number): Promise<any>;
21
- /** @whatsapp 426 */
21
+ /** @whatsapp 96519 */
22
22
  export declare function editProduct(product: ProductModel, imageWidth?: number, imageHeight?: number): Promise<any>;
23
- /** @whatsapp 426 */
23
+ /** @whatsapp 96519 */
24
24
  export declare function deleteProducts(productIds: string[]): Promise<any>;
25
- /** @whatsapp 426 */
25
+ /** @whatsapp 96519 */
26
26
  export declare function sendProductToChat(...args: any[]): Promise<any>;
@@ -16,6 +16,6 @@
16
16
  import { Wid } from '..';
17
17
  /**
18
18
  * This function can be used to define a group picture or self profile
19
- * @whatsapp 36161
19
+ * @whatsapp 5018
20
20
  */
21
21
  export declare function sendSetPicture(chat: Wid, previewBase64: string, pictureBase64: string): Promise<void>;
@@ -13,7 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 2753 */
16
+ /** @whatsapp 65212 */
17
17
  export declare function randomMessageId(): string;
18
- /** @whatsapp 2753 */
19
- export declare function randomId(): string;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { Wid } from '..';
17
17
  import { ChatModel } from '../models';
18
- /** @whatsapp 67935 */
18
+ /** @whatsapp 56981 */
19
19
  export declare function sendCallSignalingMsg(data: {
20
20
  common: {
21
21
  type?: string;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 59098 */
17
+ /** @whatsapp 83802 */
18
18
  export declare function sendClear(chat: ChatModel, keepStarred?: boolean): Promise<void>;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '..';
17
- /** @whatsapp 75830 */
17
+ /** @whatsapp 79583 */
18
18
  export declare function sendCreateGroup(groupName: string, participants: Wid[], ephemeral?: number, dogfooding?: boolean): Promise<{
19
19
  gid: Wid;
20
20
  participants: {
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 86212 */
17
+ /** @whatsapp 20052 */
18
18
  export declare function sendDelete(chat: ChatModel): Promise<void>;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 94881 */
17
+ /** @whatsapp 5501 */
18
18
  export declare function sendExitGroup(group: ChatModel): Promise<void>;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '..';
17
- /** @whatsapp 65705 */
17
+ /** @whatsapp 69586 */
18
18
  export declare function sendJoinGroupViaInvite(code: string): Promise<Wid>;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '..';
17
- /** @whatsapp 54150 */
17
+ /** @whatsapp 69722 */
18
18
  export declare function sendQueryExists(contact: Wid): Promise<{
19
19
  wid: Wid;
20
20
  biz: boolean;
@@ -40,5 +40,5 @@ export interface QueryGroupInviteResult {
40
40
  support: boolean;
41
41
  suspended: boolean;
42
42
  }
43
- /** @whatsapp 85709 */
43
+ /** @whatsapp 10790 */
44
44
  export declare function sendQueryGroupInvite(inviteCode: string): Promise<QueryGroupInviteResult>;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '..';
17
- /** @whatsapp 65705 */
17
+ /** @whatsapp 69586 */
18
18
  export declare function sendRevokeGroupInviteCode(groupId: Wid): Promise<string>;
@@ -13,5 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 54701 */
16
+ /** @whatsapp 5524 */
17
17
  export declare function sendTextMsgToChat(chat: any, message: any, options: any): Promise<string>;
@@ -15,9 +15,9 @@
15
15
  */
16
16
  import { Wid } from '..';
17
17
  import { GROUP_SETTING_TYPE } from '../enums';
18
- /** @whatsapp 66365 */
18
+ /** @whatsapp 57490 */
19
19
  export declare function sendSetGroupSubject(groupId: Wid, subject: string): Promise<void>;
20
- /** @whatsapp 66365 */
20
+ /** @whatsapp 57490 */
21
21
  export declare function sendSetGroupDescription(groupId: Wid, description: string, tagId: string, previousTagId?: string): Promise<void>;
22
- /** @whatsapp 66365 */
22
+ /** @whatsapp 57490 */
23
23
  export declare function sendSetGroupProperty(groupId: Wid, property: GROUP_SETTING_TYPE, value: number): Promise<void>;
@@ -14,12 +14,12 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '..';
17
- /** @whatsapp 12391 */
17
+ /** @whatsapp 51316 */
18
18
  export declare function getStatus(contactId: Wid): Promise<{
19
19
  id: Wid;
20
20
  status: string;
21
21
  }>;
22
- /** @whatsapp 12391 */
22
+ /** @whatsapp 51316 */
23
23
  export declare function setMyStatus(status: string, seqId?: number): Promise<{
24
24
  status: number;
25
25
  }>;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { OpaqueData } from '..';
17
- /** @whatsapp 22367 */
17
+ /** @whatsapp 78986 */
18
18
  export declare function uploadProductImage(mediaBlob: OpaqueData, filehash: string): Promise<string>;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 76512 */
16
+ /** @whatsapp 15688 */
17
17
  export declare namespace Base64 {
18
18
  const BASE64_DATA_URL_SCHEME: 'data:image/jpeg;base64,';
19
19
  function encodeB64(data: ArrayLike<number> | ArrayBufferLike): string;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 5897 */
16
+ /** @whatsapp 87045 */
17
17
  export declare namespace Browser {
18
18
  let promptUnloadGuards: number;
19
19
  function id(): string;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 58487 */
17
+ /** @whatsapp 371 */
18
18
  export declare namespace ChatPresence {
19
19
  function markComposing(chat: ChatModel): Promise<void>;
20
20
  function markPaused(chat: ChatModel): Promise<void>;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 21810 */
16
+ /** @whatsapp 22683 */
17
17
  export declare class ClockClass {
18
18
  is24h: boolean;
19
19
  skew: number;
@@ -41,5 +41,5 @@ export declare class ClockClass {
41
41
  liveLocationLastUpdatedStr(timestamp: number): string;
42
42
  shouldUseIntlDateTimeFormat(): boolean;
43
43
  }
44
- /** @whatsapp 21810 */
44
+ /** @whatsapp 22683 */
45
45
  export declare const Clock: ClockClass;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { ChatModel } from '..';
17
17
  import { EventEmitter } from '.';
18
- /** @whatsapp 2751 */
18
+ /** @whatsapp 88102 */
19
19
  export declare class CmdClass extends EventEmitter {
20
20
  isMainLoaded: boolean;
21
21
  uiBusy: number;
@@ -144,5 +144,5 @@ export declare class CmdClass extends EventEmitter {
144
144
  showCountrySelector(e?: any, t?: any, r?: any): void;
145
145
  toggleStickerMaker(): void;
146
146
  }
147
- /** @whatsapp 2751 */
147
+ /** @whatsapp 88102 */
148
148
  export declare const Cmd: CmdClass;
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ConnModel } from '../models';
17
- /** @whatsapp 13798 */
17
+ /** @whatsapp 17239 */
18
18
  export declare const Conn: ConnModel;