@wppconnect/wa-proto 1.1.1 → 1.1.2

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,7 @@
1
+ ## 1.1.2 (2024-10-25)
2
+
3
+
4
+
1
5
  ## 1.1.1 (2024-10-18)
2
6
 
3
7
 
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.1017677236
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 {
@@ -2186,7 +2199,7 @@ message Message {
2186
2199
  repeated Option options = 3;
2187
2200
  optional uint32 selectableOptionsCount = 4;
2188
2201
  optional ContextInfo contextInfo = 5;
2189
- optional Message.PollType pollType = 6;
2202
+ optional Message.PollMediaType pollMediaType = 6;
2190
2203
  message Option {
2191
2204
  optional string optionName = 1;
2192
2205
  optional string optionHash = 2;
@@ -2199,6 +2212,10 @@ message Message {
2199
2212
  optional bytes encIv = 2;
2200
2213
  }
2201
2214
 
2215
+ enum PollMediaType {
2216
+ TEXT = 1;
2217
+ IMAGE = 2;
2218
+ }
2202
2219
  message PollResultSnapshotMessage {
2203
2220
  optional string name = 1;
2204
2221
  repeated PollVote pollVotes = 2;
@@ -2210,10 +2227,6 @@ message Message {
2210
2227
 
2211
2228
  }
2212
2229
 
2213
- enum PollType {
2214
- TEXT = 1;
2215
- IMAGE = 2;
2216
- }
2217
2230
  message PollUpdateMessage {
2218
2231
  optional MessageKey pollCreationMessageKey = 1;
2219
2232
  optional Message.PollEncValue vote = 2;
@@ -2253,6 +2266,7 @@ message Message {
2253
2266
  optional uint32 productImageCount = 9;
2254
2267
  optional string firstImageId = 11;
2255
2268
  optional int64 salePriceAmount1000 = 12;
2269
+ optional string signedUrl = 13;
2256
2270
  }
2257
2271
 
2258
2272
  }
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
@@ -24845,8 +25064,8 @@ export namespace waproto {
24845
25064
  /** PollCreationMessage contextInfo */
24846
25065
  contextInfo?: (waproto.IContextInfo|null);
24847
25066
 
24848
- /** PollCreationMessage pollType */
24849
- pollType?: (waproto.Message.PollType|null);
25067
+ /** PollCreationMessage pollMediaType */
25068
+ pollMediaType?: (waproto.Message.PollMediaType|null);
24850
25069
  }
24851
25070
 
24852
25071
  /** Represents a PollCreationMessage. */
@@ -24873,8 +25092,8 @@ export namespace waproto {
24873
25092
  /** PollCreationMessage contextInfo. */
24874
25093
  public contextInfo?: (waproto.IContextInfo|null);
24875
25094
 
24876
- /** PollCreationMessage pollType. */
24877
- public pollType?: (waproto.Message.PollType|null);
25095
+ /** PollCreationMessage pollMediaType. */
25096
+ public pollMediaType?: (waproto.Message.PollMediaType|null);
24878
25097
 
24879
25098
  /**
24880
25099
  * Creates a new PollCreationMessage instance using the specified properties.
@@ -25163,6 +25382,12 @@ export namespace waproto {
25163
25382
  public static getTypeUrl(typeUrlPrefix?: string): string;
25164
25383
  }
25165
25384
 
25385
+ /** PollMediaType enum. */
25386
+ enum PollMediaType {
25387
+ TEXT = 1,
25388
+ IMAGE = 2
25389
+ }
25390
+
25166
25391
  /** Properties of a PollResultSnapshotMessage. */
25167
25392
  interface IPollResultSnapshotMessage {
25168
25393
 
@@ -25378,12 +25603,6 @@ export namespace waproto {
25378
25603
  }
25379
25604
  }
25380
25605
 
25381
- /** PollType enum. */
25382
- enum PollType {
25383
- TEXT = 1,
25384
- IMAGE = 2
25385
- }
25386
-
25387
25606
  /** Properties of a PollUpdateMessage. */
25388
25607
  interface IPollUpdateMessage {
25389
25608
 
@@ -25960,6 +26179,9 @@ export namespace waproto {
25960
26179
 
25961
26180
  /** ProductSnapshot salePriceAmount1000 */
25962
26181
  salePriceAmount1000?: (number|Long|null);
26182
+
26183
+ /** ProductSnapshot signedUrl */
26184
+ signedUrl?: (string|null);
25963
26185
  }
25964
26186
 
25965
26187
  /** Represents a ProductSnapshot. */
@@ -26004,6 +26226,9 @@ export namespace waproto {
26004
26226
  /** ProductSnapshot salePriceAmount1000. */
26005
26227
  public salePriceAmount1000?: (number|Long|null);
26006
26228
 
26229
+ /** ProductSnapshot signedUrl. */
26230
+ public signedUrl?: (string|null);
26231
+
26007
26232
  /**
26008
26233
  * Creates a new ProductSnapshot instance using the specified properties.
26009
26234
  * @param [properties] Properties to set