@wppconnect/wa-js 1.0.7 → 1.0.11

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 (150) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/chat/Chat.d.ts +76 -10
  3. package/dist/chat/types.d.ts +88 -1
  4. package/dist/contact/Contact.d.ts +26 -0
  5. package/dist/contact/index.d.ts +20 -0
  6. package/dist/contact/types.d.ts +18 -0
  7. package/dist/{whatsapp/enums/TextFontStyle.d.ts → enums.d.ts} +0 -3
  8. package/dist/group/Group.d.ts +9 -0
  9. package/dist/index.d.ts +1 -0
  10. package/dist/internal.d.ts +1 -0
  11. package/dist/status/Status.d.ts +1 -6
  12. package/dist/status/types.d.ts +1 -1
  13. package/dist/{whatsapp/misc/Stringable.d.ts → types.d.ts} +0 -0
  14. package/dist/util/errors.d.ts +3 -1
  15. package/dist/whatsapp/collections/BlocklistCollection.d.ts +1 -1
  16. package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +1 -1
  17. package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +1 -1
  18. package/dist/whatsapp/collections/ButtonCollection.d.ts +1 -1
  19. package/dist/whatsapp/collections/CallCollection.d.ts +1 -1
  20. package/dist/whatsapp/collections/CartCollection.d.ts +1 -1
  21. package/dist/whatsapp/collections/CartItemCollection.d.ts +1 -1
  22. package/dist/whatsapp/collections/CatalogCollection.d.ts +1 -1
  23. package/dist/whatsapp/collections/ChatCollection.d.ts +1 -1
  24. package/dist/whatsapp/collections/ChatstateCollection.d.ts +1 -1
  25. package/dist/whatsapp/collections/Collection.d.ts +4 -3
  26. package/dist/whatsapp/collections/CollectionCache.d.ts +2 -2
  27. package/dist/whatsapp/collections/ContactCollection.d.ts +1 -1
  28. package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +1 -1
  29. package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +1 -1
  30. package/dist/whatsapp/collections/LabelCollection.d.ts +1 -1
  31. package/dist/whatsapp/collections/LabelItemCollection.d.ts +1 -1
  32. package/dist/whatsapp/collections/LiveLocationCollection.d.ts +1 -1
  33. package/dist/whatsapp/collections/MsgCollection.d.ts +1 -1
  34. package/dist/whatsapp/collections/MsgInfoCollection.d.ts +1 -1
  35. package/dist/whatsapp/collections/MuteCollection.d.ts +1 -1
  36. package/dist/whatsapp/collections/OrderCollection.d.ts +1 -1
  37. package/dist/whatsapp/collections/OrderItemCollection.d.ts +1 -1
  38. package/dist/whatsapp/collections/ParticipantCollection.d.ts +1 -1
  39. package/dist/whatsapp/collections/PresenceCollection.d.ts +1 -1
  40. package/dist/whatsapp/collections/ProductCollCollection.d.ts +1 -1
  41. package/dist/whatsapp/collections/ProductCollection.d.ts +1 -1
  42. package/dist/whatsapp/collections/ProductImageCollection.d.ts +1 -1
  43. package/dist/whatsapp/collections/ProductMessageListCollection.d.ts +1 -1
  44. package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +1 -1
  45. package/dist/whatsapp/collections/QuickReplyCollection.d.ts +1 -1
  46. package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +1 -1
  47. package/dist/whatsapp/collections/RecentStickerCollection.d.ts +1 -1
  48. package/dist/whatsapp/collections/StarredMsgCollection.d.ts +1 -1
  49. package/dist/whatsapp/collections/StarredStickerCollection.d.ts +1 -1
  50. package/dist/whatsapp/collections/StatusCollection.d.ts +1 -1
  51. package/dist/whatsapp/collections/StatusV3Collection.d.ts +1 -1
  52. package/dist/whatsapp/collections/StickerCollection.d.ts +1 -1
  53. package/dist/whatsapp/collections/StickerPackCollection.d.ts +1 -1
  54. package/dist/whatsapp/collections/StickerSearchCollection.d.ts +1 -1
  55. package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +1 -1
  56. package/dist/whatsapp/enums/LogoutReason.d.ts +1 -1
  57. package/dist/whatsapp/enums/OUTWARD_TYPES.d.ts +26 -0
  58. package/dist/whatsapp/enums/SendMsgResult.d.ts +1 -1
  59. package/dist/whatsapp/enums/index.d.ts +1 -1
  60. package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +1 -1
  61. package/dist/whatsapp/functions/blockContact.d.ts +2 -2
  62. package/dist/whatsapp/functions/findChat.d.ts +1 -1
  63. package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -1
  64. package/dist/whatsapp/functions/groupParticipants.d.ts +4 -4
  65. package/dist/whatsapp/functions/index.d.ts +2 -0
  66. package/dist/whatsapp/functions/isAuthenticated.d.ts +1 -1
  67. package/dist/whatsapp/functions/msgFindQuery.d.ts +1 -1
  68. package/dist/whatsapp/functions/randomId.d.ts +2 -2
  69. package/dist/whatsapp/functions/sendClear.d.ts +1 -1
  70. package/dist/whatsapp/functions/sendCreateGroup.d.ts +26 -0
  71. package/dist/whatsapp/functions/sendDelete.d.ts +1 -1
  72. package/dist/whatsapp/functions/sendQueryExists.d.ts +21 -0
  73. package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +1 -1
  74. package/dist/whatsapp/misc/Base64.d.ts +1 -1
  75. package/dist/whatsapp/misc/Browser.d.ts +1 -1
  76. package/dist/whatsapp/misc/ClockSkew.d.ts +1 -1
  77. package/dist/whatsapp/misc/Cmd.d.ts +2 -5
  78. package/dist/whatsapp/misc/Conn.d.ts +1 -1
  79. package/dist/whatsapp/misc/Constants.d.ts +1 -1
  80. package/dist/whatsapp/misc/EventEmitter.d.ts +1 -1
  81. package/dist/whatsapp/misc/Features.d.ts +1 -1
  82. package/dist/whatsapp/misc/ImageUtils.d.ts +1 -1
  83. package/dist/whatsapp/misc/Locale.d.ts +20 -0
  84. package/dist/whatsapp/misc/MediaObject.d.ts +64 -0
  85. package/dist/whatsapp/misc/MediaObjectUtil.d.ts +20 -0
  86. package/dist/whatsapp/misc/MediaPrep.d.ts +45 -0
  87. package/dist/whatsapp/misc/MediaUtils.d.ts +1 -1
  88. package/dist/whatsapp/misc/MsgKey.d.ts +1 -1
  89. package/dist/whatsapp/misc/MsgLoadState.d.ts +2 -2
  90. package/dist/whatsapp/misc/OpaqueData.d.ts +39 -0
  91. package/dist/whatsapp/misc/State.d.ts +1 -1
  92. package/dist/whatsapp/misc/UserPrefs.d.ts +1 -1
  93. package/dist/whatsapp/misc/Wid.d.ts +1 -1
  94. package/dist/whatsapp/misc/WidFactory.d.ts +1 -1
  95. package/dist/whatsapp/misc/index.d.ts +5 -1
  96. package/dist/whatsapp/models/AttachMediaModel.d.ts +2 -2
  97. package/dist/whatsapp/models/BlocklistModel.d.ts +2 -2
  98. package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +2 -2
  99. package/dist/whatsapp/models/BusinessProfileModel.d.ts +2 -2
  100. package/dist/whatsapp/models/CallModel.d.ts +2 -2
  101. package/dist/whatsapp/models/CallParticipantModel.d.ts +2 -2
  102. package/dist/whatsapp/models/CartItemModel.d.ts +2 -2
  103. package/dist/whatsapp/models/CartModel.d.ts +2 -2
  104. package/dist/whatsapp/models/CatalogModel.d.ts +2 -2
  105. package/dist/whatsapp/models/ChatModel.d.ts +12 -6
  106. package/dist/whatsapp/models/ChatPreferenceModel.d.ts +2 -2
  107. package/dist/whatsapp/models/ChatstateModel.d.ts +2 -2
  108. package/dist/whatsapp/models/ConnModel.d.ts +2 -2
  109. package/dist/whatsapp/models/ContactModel.d.ts +2 -2
  110. package/dist/whatsapp/models/ConversionTupleModel.d.ts +2 -2
  111. package/dist/whatsapp/models/EmojiVariantModel.d.ts +2 -2
  112. package/dist/whatsapp/models/GroupMetadataModel.d.ts +2 -2
  113. package/dist/whatsapp/models/LabelItemModel.d.ts +2 -2
  114. package/dist/whatsapp/models/LabelModel.d.ts +2 -2
  115. package/dist/whatsapp/models/LiveLocationModel.d.ts +2 -2
  116. package/dist/whatsapp/models/LiveLocationParticipantModel.d.ts +2 -2
  117. package/dist/whatsapp/models/MediaDataModel.d.ts +4 -3
  118. package/dist/whatsapp/models/Model.d.ts +3 -2
  119. package/dist/whatsapp/models/ModelChatBase.d.ts +1 -1
  120. package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +2 -2
  121. package/dist/whatsapp/models/MsgInfoModel.d.ts +2 -2
  122. package/dist/whatsapp/models/MsgModel.d.ts +6 -6
  123. package/dist/whatsapp/models/MuteModel.d.ts +2 -2
  124. package/dist/whatsapp/models/OrderItemModel.d.ts +2 -2
  125. package/dist/whatsapp/models/OrderModel.d.ts +2 -2
  126. package/dist/whatsapp/models/ParticipantModel.d.ts +2 -2
  127. package/dist/whatsapp/models/ProductCollModel.d.ts +2 -2
  128. package/dist/whatsapp/models/ProductImageModel.d.ts +2 -2
  129. package/dist/whatsapp/models/ProductModel.d.ts +2 -2
  130. package/dist/whatsapp/models/Product_listModel.d.ts +2 -2
  131. package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +2 -2
  132. package/dist/whatsapp/models/QuickReplyModel.d.ts +2 -2
  133. package/dist/whatsapp/models/RecentEmojiModel.d.ts +2 -2
  134. package/dist/whatsapp/models/RecentStickerModel.d.ts +2 -2
  135. package/dist/whatsapp/models/ReplyButtonModel.d.ts +2 -2
  136. package/dist/whatsapp/models/StateModel.d.ts +2 -2
  137. package/dist/whatsapp/models/StatusModel.d.ts +2 -2
  138. package/dist/whatsapp/models/StatusV3Model.d.ts +2 -2
  139. package/dist/whatsapp/models/StickerModel.d.ts +2 -2
  140. package/dist/whatsapp/models/StickerPackModel.d.ts +2 -2
  141. package/dist/whatsapp/models/TemplateButtonModel.d.ts +2 -2
  142. package/dist/whatsapp/models/UnreadMentionModel.d.ts +2 -2
  143. package/dist/whatsapp/models/WebCallModel.d.ts +2 -2
  144. package/dist/whatsapp/multidevice/adv.d.ts +1 -1
  145. package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +1 -1
  146. package/dist/whatsapp/multidevice/waSignalStore.d.ts +1 -1
  147. package/dist/whatsapp/stores.d.ts +29 -29
  148. package/dist/wppconnect-wa.js +1 -1
  149. package/dist/wppconnect-wa.js.LICENSE.txt +9 -0
  150. package/package.json +17 -13
@@ -0,0 +1,45 @@
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 { ChatModel, MediaDataModel, ModelPropertiesContructor, MsgModel } from '..';
17
+ import { OUTWARD_TYPES, SendMsgResult } from '../enums';
18
+ import { OpaqueData } from '.';
19
+ /** @whatsapp 2.2144.8:57990 */
20
+ export declare namespace MediaPrep {
21
+ function prepRawMedia(data: OpaqueData, options: {
22
+ isPtt?: boolean;
23
+ asDocument?: boolean;
24
+ asGif?: boolean;
25
+ isAudio?: boolean;
26
+ asSticker?: boolean;
27
+ }): MediaPrep;
28
+ class MediaPrep {
29
+ constructor(type: OUTWARD_TYPES, p: any);
30
+ sendToChat(e: ChatModel, options: {
31
+ caption?: string;
32
+ quotedMsg?: MsgModel;
33
+ productMsgOptions?: ModelPropertiesContructor<MsgModel>;
34
+ type?: any;
35
+ mentionedJidList?: any;
36
+ isForwarded?: boolean;
37
+ forwardingScore?: any;
38
+ multicast?: any;
39
+ forwardedFromWeb?: boolean;
40
+ ctwaContext?: any;
41
+ isViewOnce?: boolean;
42
+ }): Promise<SendMsgResult>;
43
+ waitForPrep(): Promise<MediaDataModel>;
44
+ }
45
+ }
@@ -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 2.2140.7:63063 */
16
+ /** @whatsapp 2.2144.8:63063 */
17
17
  export declare namespace MediaUtils {
18
18
  function getImageWidthHeight(): Promise<{
19
19
  width: number;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from './Wid';
17
- /** @whatsapp 2.2140.7:77043 */
17
+ /** @whatsapp 2.2144.8:77043 */
18
18
  export declare class MsgKey {
19
19
  constructor(options: {
20
20
  from: Wid;
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { CollectionCache } from '../collections';
17
17
  import { Model, MsgModel } from '../models';
18
- /** @whatsapp 2.2140.7:97490 */
18
+ /** @whatsapp 2.2144.8:97490 */
19
19
  export declare class MsgLoadState extends Model {
20
20
  noEarlierMsgs: any;
21
21
  isLoadingEarlierMsgs: any;
@@ -23,7 +23,7 @@ export declare class MsgLoadState extends Model {
23
23
  isLoadingAroundMsgs: any;
24
24
  contextLoaded: any;
25
25
  }
26
- /** @whatsapp 2.2140.7:97490 */
26
+ /** @whatsapp 2.2144.8:97490 */
27
27
  export declare class MsgLoad extends CollectionCache<MsgModel> {
28
28
  msgLoadState: MsgLoadState;
29
29
  loadRecentPromise?: Promise<any>;
@@ -0,0 +1,39 @@
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 2.2144.8:52937 */
17
+ export declare class OpaqueDataBase {
18
+ released: boolean;
19
+ retain(): void;
20
+ autorelease(): void;
21
+ autoreleaseWhenPromiseCompletes(e: Promise<any>): void;
22
+ throwIfReleased(e: any): void;
23
+ }
24
+ /** @whatsapp 2.2144.8:52937 */
25
+ export declare class OpaqueData extends OpaqueDataBase {
26
+ url(): string;
27
+ getBase64(): string;
28
+ filepath(): string;
29
+ wavFilepath(): string;
30
+ setWavFilepath(): string;
31
+ validate(): Promise<boolean>;
32
+ size(): number;
33
+ formData(): string;
34
+ type(): string;
35
+ forceToBlob(): string;
36
+ isBlobEqual(e: any): string;
37
+ static createFromBase64Jpeg(base64: string): Promise<OpaqueData>;
38
+ static createFromData(blob: BlobPart, type?: string): Promise<OpaqueData>;
39
+ }
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { StateModel } from '../models';
17
- /** @whatsapp 2.2140.7:72787 */
17
+ /** @whatsapp 2.2144.8:72787 */
18
18
  export declare const State: StateModel;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from './Wid';
17
- /** @whatsapp 2.2140.7:86723 */
17
+ /** @whatsapp 2.2144.8:86723 */
18
18
  export declare namespace UserPrefs {
19
19
  function setMe(wid: Wid): void;
20
20
  function getMe(): Wid;
@@ -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 2.2140.7:69635 */
16
+ /** @whatsapp 2.2144.8:69635 */
17
17
  export declare class Wid {
18
18
  constructor(id: string, options?: {
19
19
  intentionallyUsePrivateConstructor: boolean;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from './Wid';
17
- /** @whatsapp 2.2140.7:89573 */
17
+ /** @whatsapp 2.2144.8:89573 */
18
18
  export declare namespace WidFactory {
19
19
  function createDeviceWid(wid: string): Wid;
20
20
  function createDeviceWidFromUserAndDevice(user: string, device: string): Wid;
@@ -22,11 +22,15 @@ export * from './Constants';
22
22
  export * from './EventEmitter';
23
23
  export * from './Features';
24
24
  export * from './ImageUtils';
25
+ export * from './Locale';
26
+ export * from './MediaObject';
27
+ export * from './MediaObjectUtil';
28
+ export * from './MediaPrep';
25
29
  export * from './MediaUtils';
26
30
  export * from './MsgKey';
27
31
  export * from './MsgLoadState';
32
+ export * from './OpaqueData';
28
33
  export * from './State';
29
- export * from './Stringable';
30
34
  export * from './UserPrefs';
31
35
  export * from './Wid';
32
36
  export * from './WidFactory';
@@ -46,10 +46,10 @@ interface Derived {
46
46
  filesize?: any;
47
47
  fileExt?: any;
48
48
  }
49
- /** @whatsapp 2.2140.7:73754 */
49
+ /** @whatsapp 2.2144.8:73754 */
50
50
  export declare interface AttachMediaModel extends ModelProxy<Props, Session, Derived> {
51
51
  }
52
- /** @whatsapp 2.2140.7:73754 */
52
+ /** @whatsapp 2.2144.8:73754 */
53
53
  export declare class AttachMediaModel extends Model {
54
54
  constructor(proterties?: ModelPropertiesContructor<AttachMediaModel>, options?: ModelOptions);
55
55
  processAttachment(e?: any): any;
@@ -24,10 +24,10 @@ interface Session {
24
24
  }
25
25
  interface Derived {
26
26
  }
27
- /** @whatsapp 2.2140.7:43123 */
27
+ /** @whatsapp 2.2144.8:43123 */
28
28
  export declare interface BlocklistModel extends ModelProxy<Props, Session, Derived> {
29
29
  }
30
- /** @whatsapp 2.2140.7:43123 */
30
+ /** @whatsapp 2.2144.8:43123 */
31
31
  export declare class BlocklistModel extends Model<BlocklistCollection> {
32
32
  idClass: typeof Wid;
33
33
  constructor(proterties?: ModelPropertiesContructor<BlocklistModel>, options?: ModelOptions);
@@ -25,10 +25,10 @@ interface Session {
25
25
  }
26
26
  interface Derived {
27
27
  }
28
- /** @whatsapp 2.2140.7:32816 */
28
+ /** @whatsapp 2.2144.8:32816 */
29
29
  export declare interface BusinessCategoriesResultModel extends ModelProxy<Props, Session, Derived> {
30
30
  }
31
- /** @whatsapp 2.2140.7:32816 */
31
+ /** @whatsapp 2.2144.8:32816 */
32
32
  export declare class BusinessCategoriesResultModel extends Model<BusinessCategoriesResultCollection> {
33
33
  idClass: typeof Wid;
34
34
  constructor(proterties?: ModelPropertiesContructor<BusinessCategoriesResultModel>, options?: ModelOptions);
@@ -36,10 +36,10 @@ interface Session {
36
36
  }
37
37
  interface Derived {
38
38
  }
39
- /** @whatsapp 2.2140.7:42097 */
39
+ /** @whatsapp 2.2144.8:42097 */
40
40
  export declare interface BusinessProfileModel extends ModelProxy<Props, Session, Derived> {
41
41
  }
42
- /** @whatsapp 2.2140.7:42097 */
42
+ /** @whatsapp 2.2144.8:42097 */
43
43
  export declare class BusinessProfileModel extends Model<BusinessProfileCollection> {
44
44
  idClass: typeof Wid;
45
45
  constructor(proterties?: ModelPropertiesContructor<BusinessProfileModel>, options?: ModelOptions);
@@ -32,10 +32,10 @@ interface Session {
32
32
  }
33
33
  interface Derived {
34
34
  }
35
- /** @whatsapp 2.2140.7:70026 */
35
+ /** @whatsapp 2.2144.8:70026 */
36
36
  export declare interface CallModel extends ModelProxy<Props, Session, Derived> {
37
37
  }
38
- /** @whatsapp 2.2140.7:70026 */
38
+ /** @whatsapp 2.2144.8:70026 */
39
39
  export declare class CallModel extends Model<CallCollection> {
40
40
  constructor(proterties?: ModelPropertiesContructor<CallModel>, options?: ModelOptions);
41
41
  getState(): any;
@@ -34,10 +34,10 @@ interface Session {
34
34
  }
35
35
  interface Derived {
36
36
  }
37
- /** @whatsapp 2.2140.7:5483 */
37
+ /** @whatsapp 2.2144.8:5483 */
38
38
  export declare interface CallParticipantModel extends ModelProxy<Props, Session, Derived> {
39
39
  }
40
- /** @whatsapp 2.2140.7:5483 */
40
+ /** @whatsapp 2.2144.8:5483 */
41
41
  export declare class CallParticipantModel extends Model {
42
42
  constructor(proterties?: ModelPropertiesContructor<CallParticipantModel>, options?: ModelOptions);
43
43
  }
@@ -28,10 +28,10 @@ interface Session {
28
28
  }
29
29
  interface Derived {
30
30
  }
31
- /** @whatsapp 2.2140.7:53685 */
31
+ /** @whatsapp 2.2144.8:53685 */
32
32
  export declare interface CartItemModel extends ModelProxy<Props, Session, Derived> {
33
33
  }
34
- /** @whatsapp 2.2140.7:53685 */
34
+ /** @whatsapp 2.2144.8:53685 */
35
35
  export declare class CartItemModel extends Model<CartCollection> {
36
36
  constructor(proterties?: ModelPropertiesContructor<CartItemModel>, options?: ModelOptions);
37
37
  getCollection(): CartCollection;
@@ -28,10 +28,10 @@ interface Session {
28
28
  }
29
29
  interface Derived {
30
30
  }
31
- /** @whatsapp 2.2140.7:95537 */
31
+ /** @whatsapp 2.2144.8:95537 */
32
32
  export declare interface CartModel extends ModelProxy<Props, Session, Derived> {
33
33
  }
34
- /** @whatsapp 2.2140.7:95537 */
34
+ /** @whatsapp 2.2144.8:95537 */
35
35
  export declare class CartModel extends Model<CartCollection> {
36
36
  constructor(proterties?: ModelPropertiesContructor<CartModel>, options?: ModelOptions);
37
37
  countTotals(): any;
@@ -27,10 +27,10 @@ interface Session {
27
27
  }
28
28
  interface Derived {
29
29
  }
30
- /** @whatsapp 2.2140.7:73310 */
30
+ /** @whatsapp 2.2144.8:73310 */
31
31
  export declare interface CatalogModel extends ModelProxy<Props, Session, Derived> {
32
32
  }
33
- /** @whatsapp 2.2140.7:73310 */
33
+ /** @whatsapp 2.2144.8:73310 */
34
34
  export declare class CatalogModel extends Model<CatalogCollection> {
35
35
  idClass: typeof Wid;
36
36
  constructor(proterties?: ModelPropertiesContructor<CatalogModel>, options?: ModelOptions);
@@ -14,8 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatCollection } from '../collections';
17
+ import { SendMsgResult } from '../enums';
17
18
  import { MsgKey, MsgLoad, Wid } from '../misc';
18
- import { GroupMetadataModel } from '.';
19
+ import { GroupMetadataModel, MsgModel } from '.';
19
20
  import { ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
20
21
  import { ModelChatBase, PropsChatBase, SessionChatBase } from './ModelChatBase';
21
22
  interface Props extends PropsChatBase {
@@ -94,10 +95,10 @@ interface Derived {
94
95
  showChangeNumberNotification?: any;
95
96
  shouldShowUnreadInTitle?: any;
96
97
  }
97
- /** @whatsapp 2.2140.7:58380 */
98
+ /** @whatsapp 2.2144.8:58380 */
98
99
  export declare interface ChatModel extends ModelProxy<Props, Session, Derived> {
99
100
  }
100
- /** @whatsapp 2.2140.7:58380 */
101
+ /** @whatsapp 2.2144.8:58380 */
101
102
  export declare class ChatModel extends ModelChatBase {
102
103
  idClass: typeof Wid;
103
104
  constructor(proterties?: ModelPropertiesContructor<ChatModel>, options?: ModelOptions);
@@ -129,12 +130,17 @@ export declare class ChatModel extends ModelChatBase {
129
130
  loadEarlierMsgs(e?: any, t?: any): any;
130
131
  isMostRecentCMC(e?: any): boolean;
131
132
  loadRecentMsgs(e?: any): any;
132
- getSearchContext(e?: any, t?: any): {
133
+ getSearchContext(msg: MsgModel | MsgKey, options?: {
134
+ isQuotedMsgAvailable: boolean;
135
+ }): {
133
136
  collection: MsgLoad;
137
+ msg?: MsgModel;
138
+ key?: MsgKey;
139
+ highlightMsg: true;
134
140
  };
135
141
  sendStarMsgs(e?: any, t?: any): any;
136
- sendRevokeMsgs(e?: any, t?: any): any;
137
- sendDeleteMsgs(e?: any, t?: any): any;
142
+ sendRevokeMsgs(messages: MsgModel[], deleteMediaInDevice?: boolean): Promise<SendMsgResult>;
143
+ sendDeleteMsgs(messages: MsgModel[], deleteMediaInDevice?: boolean): Promise<SendMsgResult>;
138
144
  deleteMsgs(e?: any, t?: any): any;
139
145
  deleteMsgsOlderThan(e?: any, t?: any, r?: any): any;
140
146
  deleteMsgsBeforeMsgInclusive(e?: any, t?: boolean, r?: any): any;
@@ -26,10 +26,10 @@ interface Session {
26
26
  }
27
27
  interface Derived {
28
28
  }
29
- /** @whatsapp 2.2140.7:23821 */
29
+ /** @whatsapp 2.2144.8:23821 */
30
30
  export declare interface ChatPreferenceModel extends ModelProxy<Props, Session, Derived> {
31
31
  }
32
- /** @whatsapp 2.2140.7:23821 */
32
+ /** @whatsapp 2.2144.8:23821 */
33
33
  export declare class ChatPreferenceModel extends Model {
34
34
  idClass: typeof Wid;
35
35
  allowedIds?: any;
@@ -27,10 +27,10 @@ interface Session {
27
27
  }
28
28
  interface Derived {
29
29
  }
30
- /** @whatsapp 2.2140.7:42165 */
30
+ /** @whatsapp 2.2144.8:42165 */
31
31
  export declare interface ChatstateModel extends ModelProxy<Props, Session, Derived> {
32
32
  }
33
- /** @whatsapp 2.2140.7:42165 */
33
+ /** @whatsapp 2.2144.8:42165 */
34
34
  export declare class ChatstateModel extends Model {
35
35
  idClass: typeof Wid;
36
36
  allowedIds?: any;
@@ -53,10 +53,10 @@ interface Derived {
53
53
  tosShowCallNotification?: any;
54
54
  isSMB?: boolean;
55
55
  }
56
- /** @whatsapp 2.2140.7:9322 */
56
+ /** @whatsapp 2.2144.8:9322 */
57
57
  export declare interface ConnModel extends ModelProxy<Props, Session, Derived> {
58
58
  }
59
- /** @whatsapp 2.2140.7:9322 */
59
+ /** @whatsapp 2.2144.8:9322 */
60
60
  export declare class ConnModel extends Model {
61
61
  constructor(proterties?: ModelPropertiesContructor<ConnModel>, options?: ModelOptions);
62
62
  canSetMyPushname(): boolean;
@@ -70,10 +70,10 @@ interface Derived {
70
70
  showBusinessCheckmarkAsPrimary?: any;
71
71
  showBusinessCheckmarkAsSecondary?: any;
72
72
  }
73
- /** @whatsapp 2.2140.7:27387 */
73
+ /** @whatsapp 2.2144.8:27387 */
74
74
  export declare interface ContactModel extends ModelProxy<Props, Session, Derived> {
75
75
  }
76
- /** @whatsapp 2.2140.7:27387 */
76
+ /** @whatsapp 2.2144.8:27387 */
77
77
  export declare class ContactModel extends Model<ContactCollection> {
78
78
  idClass: typeof Wid;
79
79
  constructor(proterties?: ModelPropertiesContructor<ContactModel>, options?: ModelOptions);
@@ -27,10 +27,10 @@ interface Session {
27
27
  }
28
28
  interface Derived {
29
29
  }
30
- /** @whatsapp 2.2140.7:71815 */
30
+ /** @whatsapp 2.2144.8:71815 */
31
31
  export declare interface ConversionTupleModel extends ModelProxy<Props, Session, Derived> {
32
32
  }
33
- /** @whatsapp 2.2140.7:71815 */
33
+ /** @whatsapp 2.2144.8:71815 */
34
34
  export declare class ConversionTupleModel extends Model {
35
35
  idClass: typeof Wid;
36
36
  constructor(proterties?: ModelPropertiesContructor<ConversionTupleModel>, options?: ModelOptions);
@@ -23,10 +23,10 @@ interface Session {
23
23
  }
24
24
  interface Derived {
25
25
  }
26
- /** @whatsapp 2.2140.7:14996 */
26
+ /** @whatsapp 2.2144.8:14996 */
27
27
  export declare interface EmojiVariantModel extends ModelProxy<Props, Session, Derived> {
28
28
  }
29
- /** @whatsapp 2.2140.7:14996 */
29
+ /** @whatsapp 2.2144.8:14996 */
30
30
  export declare class EmojiVariantModel extends Model {
31
31
  constructor(proterties?: ModelPropertiesContructor<EmojiVariantModel>, options?: ModelOptions);
32
32
  }
@@ -43,10 +43,10 @@ interface Session {
43
43
  interface Derived {
44
44
  groupInviteLink?: any;
45
45
  }
46
- /** @whatsapp 2.2140.7:28197 */
46
+ /** @whatsapp 2.2144.8:28197 */
47
47
  export declare interface GroupMetadataModel extends ModelProxy<Props, Session, Derived> {
48
48
  }
49
- /** @whatsapp 2.2140.7:28197 */
49
+ /** @whatsapp 2.2144.8:28197 */
50
50
  export declare class GroupMetadataModel extends Model {
51
51
  idClass: typeof Wid;
52
52
  participants: ParticipantCollection;
@@ -25,10 +25,10 @@ interface Session {
25
25
  }
26
26
  interface Derived {
27
27
  }
28
- /** @whatsapp 2.2140.7:36705 */
28
+ /** @whatsapp 2.2144.8:36705 */
29
29
  export declare interface LabelItemModel extends ModelProxy<Props, Session, Derived> {
30
30
  }
31
- /** @whatsapp 2.2140.7:36705 */
31
+ /** @whatsapp 2.2144.8:36705 */
32
32
  export declare class LabelItemModel extends Model {
33
33
  constructor(proterties?: ModelPropertiesContructor<LabelItemModel>, options?: ModelOptions);
34
34
  }
@@ -26,10 +26,10 @@ interface Session {
26
26
  interface Derived {
27
27
  hexColor?: any;
28
28
  }
29
- /** @whatsapp 2.2140.7:14137 */
29
+ /** @whatsapp 2.2144.8:14137 */
30
30
  export declare interface LabelModel extends ModelProxy<Props, Session, Derived> {
31
31
  }
32
- /** @whatsapp 2.2140.7:14137 */
32
+ /** @whatsapp 2.2144.8:14137 */
33
33
  export declare class LabelModel extends Model {
34
34
  constructor(proterties?: ModelPropertiesContructor<LabelModel>, options?: ModelOptions);
35
35
  }
@@ -28,10 +28,10 @@ interface Session {
28
28
  }
29
29
  interface Derived {
30
30
  }
31
- /** @whatsapp 2.2140.7:82600 */
31
+ /** @whatsapp 2.2144.8:82600 */
32
32
  export declare interface LiveLocationModel extends ModelProxy<Props, Session, Derived> {
33
33
  }
34
- /** @whatsapp 2.2140.7:82600 */
34
+ /** @whatsapp 2.2144.8:82600 */
35
35
  export declare class LiveLocationModel extends Model<LiveLocationCollection> {
36
36
  idClass: typeof Wid;
37
37
  constructor(proterties?: ModelPropertiesContructor<LiveLocationModel>, options?: ModelOptions);
@@ -38,10 +38,10 @@ interface Derived {
38
38
  isMe: boolean;
39
39
  valid?: any;
40
40
  }
41
- /** @whatsapp 2.2140.7:77872 */
41
+ /** @whatsapp 2.2144.8:77872 */
42
42
  export declare interface LiveLocationParticipantModel extends ModelProxy<Props, Session, Derived> {
43
43
  }
44
- /** @whatsapp 2.2140.7:77872 */
44
+ /** @whatsapp 2.2144.8:77872 */
45
45
  export declare class LiveLocationParticipantModel extends Model {
46
46
  idClass: typeof Wid;
47
47
  constructor(proterties?: ModelPropertiesContructor<LiveLocationParticipantModel>, options?: ModelOptions);
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { OpaqueData } from '..';
16
17
  import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
17
18
  interface Props {
18
19
  type?: any;
@@ -24,7 +25,7 @@ interface Props {
24
25
  size?: any;
25
26
  filehash?: any;
26
27
  mimetype?: any;
27
- mediaBlob?: any;
28
+ mediaBlob?: OpaqueData;
28
29
  renderableUrl?: any;
29
30
  fullHeight?: any;
30
31
  fullWidth?: any;
@@ -62,10 +63,10 @@ interface Session {
62
63
  interface Derived {
63
64
  streamable?: any;
64
65
  }
65
- /** @whatsapp 2.2140.7:49694 */
66
+ /** @whatsapp 2.2144.8:49694 */
66
67
  export declare interface MediaDataModel extends ModelProxy<Props, Session, Derived> {
67
68
  }
68
- /** @whatsapp 2.2140.7:49694 */
69
+ /** @whatsapp 2.2144.8:49694 */
69
70
  export declare class MediaDataModel extends Model {
70
71
  static TYPE?: any;
71
72
  constructor(proterties?: ModelPropertiesContructor<MediaDataModel>, options?: ModelOptions);
@@ -13,8 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { Stringable } from '../../types';
16
17
  import { WritableProperties } from '../../util';
17
- import { EventEmitter, Stringable } from '../misc';
18
+ import { EventEmitter } from '../misc';
18
19
  export declare type ModelProxy<P, S, D> = P & S & Readonly<D> & {
19
20
  get attributes(): P & S;
20
21
  get isState(): true;
@@ -32,7 +33,7 @@ export interface ModelOptions {
32
33
  parent?: any;
33
34
  silent?: any;
34
35
  }
35
- /** @whatsapp 2.2140.7:57283 */
36
+ /** @whatsapp 2.2144.8:57283 */
36
37
  export declare class Model<Collection = undefined> extends EventEmitter {
37
38
  static Proxy: string;
38
39
  static idClass?: any;
@@ -30,7 +30,7 @@ export interface SessionChatBase {
30
30
  msgsLength: number;
31
31
  msgsChanged: number;
32
32
  }
33
- /** @whatsapp 2.2140.7:53362 */
33
+ /** @whatsapp 2.2144.8:53362 */
34
34
  export declare class ModelChatBase extends Model<ChatCollection> {
35
35
  msgs: MsgLoad;
36
36
  onEmptyMRM(): void;
@@ -24,10 +24,10 @@ interface Session {
24
24
  }
25
25
  interface Derived {
26
26
  }
27
- /** @whatsapp 2.2140.7:81750 */
27
+ /** @whatsapp 2.2144.8:81750 */
28
28
  export declare interface MsgButtonReplyMsgModel extends ModelProxy<Props, Session, Derived> {
29
29
  }
30
- /** @whatsapp 2.2140.7:81750 */
30
+ /** @whatsapp 2.2144.8:81750 */
31
31
  export declare class MsgButtonReplyMsgModel extends Model {
32
32
  idClass: typeof MsgKey;
33
33
  constructor(proterties?: ModelPropertiesContructor<MsgButtonReplyMsgModel>, options?: ModelOptions);
@@ -30,10 +30,10 @@ interface Session {
30
30
  interface Derived {
31
31
  settled?: any;
32
32
  }
33
- /** @whatsapp 2.2140.7:63463 */
33
+ /** @whatsapp 2.2144.8:63463 */
34
34
  export declare interface MsgInfoModel extends ModelProxy<Props, Session, Derived> {
35
35
  }
36
- /** @whatsapp 2.2140.7:63463 */
36
+ /** @whatsapp 2.2144.8:63463 */
37
37
  export declare class MsgInfoModel extends Model<MsgInfoCollection> {
38
38
  idClass: typeof MsgKey;
39
39
  constructor(proterties?: ModelPropertiesContructor<MsgInfoModel>, options?: ModelOptions);
@@ -13,8 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { TextFontStyle } from '../../enums';
16
17
  import { ButtonCollection, MsgCollection } from '../collections';
17
- import { TextFontStyle } from '../enums';
18
18
  import { MsgKey, Wid } from '../misc';
19
19
  import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
20
20
  interface Props {
@@ -108,12 +108,12 @@ interface Props {
108
108
  sessionId?: any;
109
109
  recipients?: any;
110
110
  broadcast?: any;
111
- quotedMsg?: any;
111
+ quotedMsg?: MsgModel;
112
112
  quotedStanzaID?: any;
113
113
  quotedRemoteJid?: any;
114
114
  quotedParticipant?: any;
115
- mentionedJidList?: any;
116
- footer?: any;
115
+ mentionedJidList?: Wid[];
116
+ footer?: string;
117
117
  hydratedButtons?: any;
118
118
  buttons?: any;
119
119
  selectedId?: any;
@@ -275,10 +275,10 @@ interface Derived {
275
275
  initialPageSize?: any;
276
276
  productListHeaderImage?: any;
277
277
  }
278
- /** @whatsapp 2.2140.7:92954 */
278
+ /** @whatsapp 2.2144.8:92954 */
279
279
  export declare interface MsgModel extends ModelProxy<Props, Session, Derived> {
280
280
  }
281
- /** @whatsapp 2.2140.7:92954 */
281
+ /** @whatsapp 2.2144.8:92954 */
282
282
  export declare class MsgModel extends Model {
283
283
  idClass: typeof MsgKey;
284
284
  constructor(proterties: ModelPropertiesContructor<MsgModel, 'id'>, options?: ModelOptions);