@wppconnect/wa-proto 1.1.1 → 1.1.3

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 1.1.3 (2024-10-30)
2
+
3
+
4
+
5
+ ## 1.1.2 (2024-10-25)
6
+
7
+
8
+
1
9
  ## 1.1.1 (2024-10-18)
2
10
 
3
11
 
package/WAProto.proto CHANGED
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package waproto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1017440561
4
+ /// WhatsApp Version: 2.3000.1017784046
5
5
 
6
6
  message ADVDeviceIdentity {
7
7
  optional uint32 rawId = 1;
@@ -117,6 +117,7 @@ message BotCapabilityMetadata {
117
117
  PROGRESS_INDICATOR = 1;
118
118
  RICH_RESPONSE_HEADING = 2;
119
119
  RICH_RESPONSE_NESTED_LIST = 3;
120
+ AI_MEMORY = 4;
120
121
  WA_IG_1P_PLUGIN_RANKING_CONTROL = 10;
121
122
  WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11;
122
123
  WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12;
@@ -207,6 +208,7 @@ message BotPluginMetadata {
207
208
  optional MessageKey parentPluginMessageKey = 10;
208
209
  optional PluginType deprecatedField = 11;
209
210
  optional PluginType parentPluginType = 12;
211
+ optional string faviconCdnUrl = 13;
210
212
  enum PluginType {
211
213
  REELS = 1;
212
214
  SEARCH = 2;
@@ -222,6 +224,15 @@ message BotProgressIndicatorMetadata {
222
224
  optional string progressDescription = 1;
223
225
  }
224
226
 
227
+ message BotPromptSuggestion {
228
+ optional string prompt = 1;
229
+ optional string promptId = 2;
230
+ }
231
+
232
+ message BotPromptSuggestions {
233
+ repeated BotPromptSuggestion suggestions = 1;
234
+ }
235
+
225
236
  message BotReminderMetadata {
226
237
  optional MessageKey requestMessageKey = 1;
227
238
  optional ReminderAction action = 2;
@@ -259,6 +270,8 @@ enum BotSessionSource {
259
270
  message BotSuggestedPromptMetadata {
260
271
  repeated string suggestedPrompts = 1;
261
272
  optional uint32 selectedPromptIndex = 2;
273
+ optional BotPromptSuggestions promptSuggestions = 3;
274
+ optional string selectedPromptId = 4;
262
275
  }
263
276
 
264
277
  message CallLogRecord {
@@ -1258,6 +1271,7 @@ message Message {
1258
1271
  optional FutureProofMessage pollCreationMessageV4 = 89;
1259
1272
  optional FutureProofMessage pollCreationOptionImageMessage = 90;
1260
1273
  optional FutureProofMessage associatedChildMessage = 91;
1274
+ optional FutureProofMessage groupStatusMentionMessage = 92;
1261
1275
  message AlbumMessage {
1262
1276
  optional uint32 expectedImageCount = 2;
1263
1277
  optional uint32 expectedVideoCount = 3;
@@ -2186,7 +2200,7 @@ message Message {
2186
2200
  repeated Option options = 3;
2187
2201
  optional uint32 selectableOptionsCount = 4;
2188
2202
  optional ContextInfo contextInfo = 5;
2189
- optional Message.PollType pollType = 6;
2203
+ optional Message.PollMediaType pollMediaType = 6;
2190
2204
  message Option {
2191
2205
  optional string optionName = 1;
2192
2206
  optional string optionHash = 2;
@@ -2199,6 +2213,10 @@ message Message {
2199
2213
  optional bytes encIv = 2;
2200
2214
  }
2201
2215
 
2216
+ enum PollMediaType {
2217
+ TEXT = 1;
2218
+ IMAGE = 2;
2219
+ }
2202
2220
  message PollResultSnapshotMessage {
2203
2221
  optional string name = 1;
2204
2222
  repeated PollVote pollVotes = 2;
@@ -2210,10 +2228,6 @@ message Message {
2210
2228
 
2211
2229
  }
2212
2230
 
2213
- enum PollType {
2214
- TEXT = 1;
2215
- IMAGE = 2;
2216
- }
2217
2231
  message PollUpdateMessage {
2218
2232
  optional MessageKey pollCreationMessageKey = 1;
2219
2233
  optional Message.PollEncValue vote = 2;
@@ -2253,6 +2267,7 @@ message Message {
2253
2267
  optional uint32 productImageCount = 9;
2254
2268
  optional string firstImageId = 11;
2255
2269
  optional int64 salePriceAmount1000 = 12;
2270
+ optional string signedUrl = 13;
2256
2271
  }
2257
2272
 
2258
2273
  }
package/dist/index.d.ts CHANGED
@@ -1529,6 +1529,7 @@ export namespace waproto {
1529
1529
  PROGRESS_INDICATOR = 1,
1530
1530
  RICH_RESPONSE_HEADING = 2,
1531
1531
  RICH_RESPONSE_NESTED_LIST = 3,
1532
+ AI_MEMORY = 4,
1532
1533
  WA_IG_1P_PLUGIN_RANKING_CONTROL = 10,
1533
1534
  WA_IG_1P_PLUGIN_RANKING_UPDATE_1 = 11,
1534
1535
  WA_IG_1P_PLUGIN_RANKING_UPDATE_2 = 12
@@ -2430,6 +2431,9 @@ export namespace waproto {
2430
2431
 
2431
2432
  /** BotPluginMetadata parentPluginType */
2432
2433
  parentPluginType?: (waproto.BotPluginMetadata.PluginType|null);
2434
+
2435
+ /** BotPluginMetadata faviconCdnUrl */
2436
+ faviconCdnUrl?: (string|null);
2433
2437
  }
2434
2438
 
2435
2439
  /** Represents a BotPluginMetadata. */
@@ -2474,6 +2478,9 @@ export namespace waproto {
2474
2478
  /** BotPluginMetadata parentPluginType. */
2475
2479
  public parentPluginType?: (waproto.BotPluginMetadata.PluginType|null);
2476
2480
 
2481
+ /** BotPluginMetadata faviconCdnUrl. */
2482
+ public faviconCdnUrl?: (string|null);
2483
+
2477
2484
  /**
2478
2485
  * Creates a new BotPluginMetadata instance using the specified properties.
2479
2486
  * @param [properties] Properties to set
@@ -2665,6 +2672,206 @@ export namespace waproto {
2665
2672
  public static getTypeUrl(typeUrlPrefix?: string): string;
2666
2673
  }
2667
2674
 
2675
+ /** Properties of a BotPromptSuggestion. */
2676
+ interface IBotPromptSuggestion {
2677
+
2678
+ /** BotPromptSuggestion prompt */
2679
+ prompt?: (string|null);
2680
+
2681
+ /** BotPromptSuggestion promptId */
2682
+ promptId?: (string|null);
2683
+ }
2684
+
2685
+ /** Represents a BotPromptSuggestion. */
2686
+ class BotPromptSuggestion implements IBotPromptSuggestion {
2687
+
2688
+ /**
2689
+ * Constructs a new BotPromptSuggestion.
2690
+ * @param [properties] Properties to set
2691
+ */
2692
+ constructor(properties?: waproto.IBotPromptSuggestion);
2693
+
2694
+ /** BotPromptSuggestion prompt. */
2695
+ public prompt?: (string|null);
2696
+
2697
+ /** BotPromptSuggestion promptId. */
2698
+ public promptId?: (string|null);
2699
+
2700
+ /**
2701
+ * Creates a new BotPromptSuggestion instance using the specified properties.
2702
+ * @param [properties] Properties to set
2703
+ * @returns BotPromptSuggestion instance
2704
+ */
2705
+ public static create(properties?: waproto.IBotPromptSuggestion): waproto.BotPromptSuggestion;
2706
+
2707
+ /**
2708
+ * Encodes the specified BotPromptSuggestion message. Does not implicitly {@link waproto.BotPromptSuggestion.verify|verify} messages.
2709
+ * @param message BotPromptSuggestion message or plain object to encode
2710
+ * @param [writer] Writer to encode to
2711
+ * @returns Writer
2712
+ */
2713
+ public static encode(message: waproto.IBotPromptSuggestion, writer?: $protobuf.Writer): $protobuf.Writer;
2714
+
2715
+ /**
2716
+ * Encodes the specified BotPromptSuggestion message, length delimited. Does not implicitly {@link waproto.BotPromptSuggestion.verify|verify} messages.
2717
+ * @param message BotPromptSuggestion message or plain object to encode
2718
+ * @param [writer] Writer to encode to
2719
+ * @returns Writer
2720
+ */
2721
+ public static encodeDelimited(message: waproto.IBotPromptSuggestion, writer?: $protobuf.Writer): $protobuf.Writer;
2722
+
2723
+ /**
2724
+ * Decodes a BotPromptSuggestion message from the specified reader or buffer.
2725
+ * @param reader Reader or buffer to decode from
2726
+ * @param [length] Message length if known beforehand
2727
+ * @returns BotPromptSuggestion
2728
+ * @throws {Error} If the payload is not a reader or valid buffer
2729
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2730
+ */
2731
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.BotPromptSuggestion;
2732
+
2733
+ /**
2734
+ * Decodes a BotPromptSuggestion message from the specified reader or buffer, length delimited.
2735
+ * @param reader Reader or buffer to decode from
2736
+ * @returns BotPromptSuggestion
2737
+ * @throws {Error} If the payload is not a reader or valid buffer
2738
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2739
+ */
2740
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.BotPromptSuggestion;
2741
+
2742
+ /**
2743
+ * Verifies a BotPromptSuggestion message.
2744
+ * @param message Plain object to verify
2745
+ * @returns `null` if valid, otherwise the reason why it is not
2746
+ */
2747
+ public static verify(message: { [k: string]: any }): (string|null);
2748
+
2749
+ /**
2750
+ * Creates a BotPromptSuggestion message from a plain object. Also converts values to their respective internal types.
2751
+ * @param object Plain object
2752
+ * @returns BotPromptSuggestion
2753
+ */
2754
+ public static fromObject(object: { [k: string]: any }): waproto.BotPromptSuggestion;
2755
+
2756
+ /**
2757
+ * Creates a plain object from a BotPromptSuggestion message. Also converts values to other types if specified.
2758
+ * @param message BotPromptSuggestion
2759
+ * @param [options] Conversion options
2760
+ * @returns Plain object
2761
+ */
2762
+ public static toObject(message: waproto.BotPromptSuggestion, options?: $protobuf.IConversionOptions): { [k: string]: any };
2763
+
2764
+ /**
2765
+ * Converts this BotPromptSuggestion to JSON.
2766
+ * @returns JSON object
2767
+ */
2768
+ public toJSON(): { [k: string]: any };
2769
+
2770
+ /**
2771
+ * Gets the default type url for BotPromptSuggestion
2772
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2773
+ * @returns The default type url
2774
+ */
2775
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2776
+ }
2777
+
2778
+ /** Properties of a BotPromptSuggestions. */
2779
+ interface IBotPromptSuggestions {
2780
+
2781
+ /** BotPromptSuggestions suggestions */
2782
+ suggestions?: (waproto.IBotPromptSuggestion[]|null);
2783
+ }
2784
+
2785
+ /** Represents a BotPromptSuggestions. */
2786
+ class BotPromptSuggestions implements IBotPromptSuggestions {
2787
+
2788
+ /**
2789
+ * Constructs a new BotPromptSuggestions.
2790
+ * @param [properties] Properties to set
2791
+ */
2792
+ constructor(properties?: waproto.IBotPromptSuggestions);
2793
+
2794
+ /** BotPromptSuggestions suggestions. */
2795
+ public suggestions: waproto.IBotPromptSuggestion[];
2796
+
2797
+ /**
2798
+ * Creates a new BotPromptSuggestions instance using the specified properties.
2799
+ * @param [properties] Properties to set
2800
+ * @returns BotPromptSuggestions instance
2801
+ */
2802
+ public static create(properties?: waproto.IBotPromptSuggestions): waproto.BotPromptSuggestions;
2803
+
2804
+ /**
2805
+ * Encodes the specified BotPromptSuggestions message. Does not implicitly {@link waproto.BotPromptSuggestions.verify|verify} messages.
2806
+ * @param message BotPromptSuggestions message or plain object to encode
2807
+ * @param [writer] Writer to encode to
2808
+ * @returns Writer
2809
+ */
2810
+ public static encode(message: waproto.IBotPromptSuggestions, writer?: $protobuf.Writer): $protobuf.Writer;
2811
+
2812
+ /**
2813
+ * Encodes the specified BotPromptSuggestions message, length delimited. Does not implicitly {@link waproto.BotPromptSuggestions.verify|verify} messages.
2814
+ * @param message BotPromptSuggestions message or plain object to encode
2815
+ * @param [writer] Writer to encode to
2816
+ * @returns Writer
2817
+ */
2818
+ public static encodeDelimited(message: waproto.IBotPromptSuggestions, writer?: $protobuf.Writer): $protobuf.Writer;
2819
+
2820
+ /**
2821
+ * Decodes a BotPromptSuggestions message from the specified reader or buffer.
2822
+ * @param reader Reader or buffer to decode from
2823
+ * @param [length] Message length if known beforehand
2824
+ * @returns BotPromptSuggestions
2825
+ * @throws {Error} If the payload is not a reader or valid buffer
2826
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2827
+ */
2828
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.BotPromptSuggestions;
2829
+
2830
+ /**
2831
+ * Decodes a BotPromptSuggestions message from the specified reader or buffer, length delimited.
2832
+ * @param reader Reader or buffer to decode from
2833
+ * @returns BotPromptSuggestions
2834
+ * @throws {Error} If the payload is not a reader or valid buffer
2835
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2836
+ */
2837
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.BotPromptSuggestions;
2838
+
2839
+ /**
2840
+ * Verifies a BotPromptSuggestions message.
2841
+ * @param message Plain object to verify
2842
+ * @returns `null` if valid, otherwise the reason why it is not
2843
+ */
2844
+ public static verify(message: { [k: string]: any }): (string|null);
2845
+
2846
+ /**
2847
+ * Creates a BotPromptSuggestions message from a plain object. Also converts values to their respective internal types.
2848
+ * @param object Plain object
2849
+ * @returns BotPromptSuggestions
2850
+ */
2851
+ public static fromObject(object: { [k: string]: any }): waproto.BotPromptSuggestions;
2852
+
2853
+ /**
2854
+ * Creates a plain object from a BotPromptSuggestions message. Also converts values to other types if specified.
2855
+ * @param message BotPromptSuggestions
2856
+ * @param [options] Conversion options
2857
+ * @returns Plain object
2858
+ */
2859
+ public static toObject(message: waproto.BotPromptSuggestions, options?: $protobuf.IConversionOptions): { [k: string]: any };
2860
+
2861
+ /**
2862
+ * Converts this BotPromptSuggestions to JSON.
2863
+ * @returns JSON object
2864
+ */
2865
+ public toJSON(): { [k: string]: any };
2866
+
2867
+ /**
2868
+ * Gets the default type url for BotPromptSuggestions
2869
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2870
+ * @returns The default type url
2871
+ */
2872
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2873
+ }
2874
+
2668
2875
  /** Properties of a BotReminderMetadata. */
2669
2876
  interface IBotReminderMetadata {
2670
2877
 
@@ -2927,6 +3134,12 @@ export namespace waproto {
2927
3134
 
2928
3135
  /** BotSuggestedPromptMetadata selectedPromptIndex */
2929
3136
  selectedPromptIndex?: (number|null);
3137
+
3138
+ /** BotSuggestedPromptMetadata promptSuggestions */
3139
+ promptSuggestions?: (waproto.IBotPromptSuggestions|null);
3140
+
3141
+ /** BotSuggestedPromptMetadata selectedPromptId */
3142
+ selectedPromptId?: (string|null);
2930
3143
  }
2931
3144
 
2932
3145
  /** Represents a BotSuggestedPromptMetadata. */
@@ -2944,6 +3157,12 @@ export namespace waproto {
2944
3157
  /** BotSuggestedPromptMetadata selectedPromptIndex. */
2945
3158
  public selectedPromptIndex?: (number|null);
2946
3159
 
3160
+ /** BotSuggestedPromptMetadata promptSuggestions. */
3161
+ public promptSuggestions?: (waproto.IBotPromptSuggestions|null);
3162
+
3163
+ /** BotSuggestedPromptMetadata selectedPromptId. */
3164
+ public selectedPromptId?: (string|null);
3165
+
2947
3166
  /**
2948
3167
  * Creates a new BotSuggestedPromptMetadata instance using the specified properties.
2949
3168
  * @param [properties] Properties to set
@@ -13153,6 +13372,9 @@ export namespace waproto {
13153
13372
 
13154
13373
  /** Message associatedChildMessage */
13155
13374
  associatedChildMessage?: (waproto.Message.IFutureProofMessage|null);
13375
+
13376
+ /** Message groupStatusMentionMessage */
13377
+ groupStatusMentionMessage?: (waproto.Message.IFutureProofMessage|null);
13156
13378
  }
13157
13379
 
13158
13380
  /** Represents a Message. */
@@ -13392,6 +13614,9 @@ export namespace waproto {
13392
13614
  /** Message associatedChildMessage. */
13393
13615
  public associatedChildMessage?: (waproto.Message.IFutureProofMessage|null);
13394
13616
 
13617
+ /** Message groupStatusMentionMessage. */
13618
+ public groupStatusMentionMessage?: (waproto.Message.IFutureProofMessage|null);
13619
+
13395
13620
  /**
13396
13621
  * Creates a new Message instance using the specified properties.
13397
13622
  * @param [properties] Properties to set
@@ -24845,8 +25070,8 @@ export namespace waproto {
24845
25070
  /** PollCreationMessage contextInfo */
24846
25071
  contextInfo?: (waproto.IContextInfo|null);
24847
25072
 
24848
- /** PollCreationMessage pollType */
24849
- pollType?: (waproto.Message.PollType|null);
25073
+ /** PollCreationMessage pollMediaType */
25074
+ pollMediaType?: (waproto.Message.PollMediaType|null);
24850
25075
  }
24851
25076
 
24852
25077
  /** Represents a PollCreationMessage. */
@@ -24873,8 +25098,8 @@ export namespace waproto {
24873
25098
  /** PollCreationMessage contextInfo. */
24874
25099
  public contextInfo?: (waproto.IContextInfo|null);
24875
25100
 
24876
- /** PollCreationMessage pollType. */
24877
- public pollType?: (waproto.Message.PollType|null);
25101
+ /** PollCreationMessage pollMediaType. */
25102
+ public pollMediaType?: (waproto.Message.PollMediaType|null);
24878
25103
 
24879
25104
  /**
24880
25105
  * Creates a new PollCreationMessage instance using the specified properties.
@@ -25163,6 +25388,12 @@ export namespace waproto {
25163
25388
  public static getTypeUrl(typeUrlPrefix?: string): string;
25164
25389
  }
25165
25390
 
25391
+ /** PollMediaType enum. */
25392
+ enum PollMediaType {
25393
+ TEXT = 1,
25394
+ IMAGE = 2
25395
+ }
25396
+
25166
25397
  /** Properties of a PollResultSnapshotMessage. */
25167
25398
  interface IPollResultSnapshotMessage {
25168
25399
 
@@ -25378,12 +25609,6 @@ export namespace waproto {
25378
25609
  }
25379
25610
  }
25380
25611
 
25381
- /** PollType enum. */
25382
- enum PollType {
25383
- TEXT = 1,
25384
- IMAGE = 2
25385
- }
25386
-
25387
25612
  /** Properties of a PollUpdateMessage. */
25388
25613
  interface IPollUpdateMessage {
25389
25614
 
@@ -25960,6 +26185,9 @@ export namespace waproto {
25960
26185
 
25961
26186
  /** ProductSnapshot salePriceAmount1000 */
25962
26187
  salePriceAmount1000?: (number|Long|null);
26188
+
26189
+ /** ProductSnapshot signedUrl */
26190
+ signedUrl?: (string|null);
25963
26191
  }
25964
26192
 
25965
26193
  /** Represents a ProductSnapshot. */
@@ -26004,6 +26232,9 @@ export namespace waproto {
26004
26232
  /** ProductSnapshot salePriceAmount1000. */
26005
26233
  public salePriceAmount1000?: (number|Long|null);
26006
26234
 
26235
+ /** ProductSnapshot signedUrl. */
26236
+ public signedUrl?: (string|null);
26237
+
26007
26238
  /**
26008
26239
  * Creates a new ProductSnapshot instance using the specified properties.
26009
26240
  * @param [properties] Properties to set