@wppconnect/wa-proto 2.3000.1052045173 → 2.3000.1052144417

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.
@@ -0,0 +1,17 @@
1
+ # Private deepmerge backport
2
+
3
+ This repository-maintained artifact is based on deepmerge4.3.1 and the prototype-poisoning fix from upstream PR274, commit c5ad573121574db1c625b0aabcc6114ed7df6c5a. Its local version4.3.2+wppconnect.1 identifies our security patch and preserves4.x dependency compatibility. It is not a published upstream release. The package is private and must not be published to a registry.
4
+
5
+ Both copy loops reject the __proto__ key before assigning properties. Other merging behavior is preserved. The is-mergeable-object1.1.0 helper is included locally because the original Git source declares it only as a development dependency. Original MIT notices are retained.
6
+
7
+ Source references:
8
+
9
+ - https://github.com/TehShrike/deepmerge/tree/5b87756a5671635679001cbac72aa42f23472c81
10
+ - https://github.com/TehShrike/deepmerge/pull/274/commits/c5ad573121574db1c625b0aabcc6114ed7df6c5a
11
+ - https://github.com/TehShrike/is-mergeable-object/tree/v1.1.0
12
+
13
+ The readable files in vendor/deepmerge and the local tarball represent the same runtime implementation. Native installed-package tests compare their contents. No install scripts, registry publication or changes to unrelated installed dependencies are needed.
14
+
15
+ Only development tooling uses this backport here; published protocol runtime dependencies are unchanged. The browser-helper override removes extract-zip while retaining the patched Rebrowser23 connector. Native regression tests and the actual WhatsApp bundle fetch/compile path validate that consumer.
16
+
17
+ Keep the regression tests when removing this backport after a validated upstream release is available.
package/WAProto.proto CHANGED
@@ -1,7 +1,7 @@
1
1
  syntax = "proto3";
2
2
  package waproto;
3
3
 
4
- /// WhatsApp Version: 2.3000.1052045173
4
+ /// WhatsApp Version: 2.3000.1052144417
5
5
 
6
6
  message ACP2Setting {
7
7
  optional bool enabled = 1;
@@ -506,6 +506,7 @@ message BotCapabilityMetadata {
506
506
  AI_MUSE_JARVIS_SCHEMA_ENABLED = 81;
507
507
  AI_STUDY_QUIZ_ENABLED = 82;
508
508
  HATCH_CVM_ENABLED = 83;
509
+ RICH_RESPONSE_SOCIAL_ENTITY_PREFETCH_SCHEDULER_ENABLED = 84;
509
510
  }
510
511
  }
511
512
 
@@ -1377,6 +1378,8 @@ message ClientPayload {
1377
1378
  DESKTOP = 2;
1378
1379
  WEARABLE = 3;
1379
1380
  VR = 4;
1381
+ SMART_DISPLAY = 5;
1382
+ SMART_SPEAKER = 6;
1380
1383
  }
1381
1384
  enum DistributionChannel {
1382
1385
  APPSTORE = 0;
@@ -4951,6 +4954,7 @@ enum MutationProps {
4951
4954
  BB_PRO_PENDING_CUSTOMER_BASE_ACTION = 98;
4952
4955
  COMMUNITY_NESTING_STATE_ACTION = 99;
4953
4956
  SHARED_DEVICE_SECRET_ACTION = 100;
4957
+ HATCH_CVM_SECRET_ACTION = 101;
4954
4958
  SHARE_OWN_PN = 10001;
4955
4959
  BUSINESS_BROADCAST_ACTION = 10002;
4956
4960
  AI_THREAD_DELETE_ACTION = 10003;
@@ -5690,6 +5694,7 @@ message SyncActionValue {
5690
5694
  optional BBProPendingCustomerBaseAction bbProPendingCustomerBaseAction = 98;
5691
5695
  optional CommunityNestingStateAction communityNestingStateAction = 99;
5692
5696
  optional SharedDeviceSecretAction sharedDeviceSecretAction = 100;
5697
+ optional HatchCVMSecretAction hatchCvmSecretAction = 101;
5693
5698
  message AgentAction {
5694
5699
  optional string name = 1;
5695
5700
  optional int32 deviceId = 2;
@@ -5836,9 +5841,9 @@ message SyncActionValue {
5836
5841
  message CommunityNestingStateAction {
5837
5842
  optional NestingState nestingState = 1;
5838
5843
  enum NestingState {
5839
- NESTING_STATE_UNKNOWN = 0;
5840
- NESTING_STATE_NESTED = 1;
5841
- NESTING_STATE_UNNESTED = 2;
5844
+ PLATFORM_DEFAULT = 0;
5845
+ NESTED = 1;
5846
+ UNNESTED = 2;
5842
5847
  }
5843
5848
  }
5844
5849
 
@@ -5933,6 +5938,11 @@ message SyncActionValue {
5933
5938
  }
5934
5939
  }
5935
5940
 
5941
+ message HatchCVMSecretAction {
5942
+ optional bytes secret = 1;
5943
+ optional int64 generation = 2;
5944
+ }
5945
+
5936
5946
  message InteractiveMessageAction {
5937
5947
  required InteractiveMessageActionMode type = 1;
5938
5948
  optional string agmId = 2;
@@ -6212,12 +6222,19 @@ message SyncActionValue {
6212
6222
  optional string chatThemeId = 32;
6213
6223
  optional string colorSchemeId = 33;
6214
6224
  optional string stockWallpaperImageId = 34;
6225
+ optional MediaAutoDownloadQualitySetting mediaAutoDownloadQuality = 35;
6215
6226
  enum DisplayMode {
6216
6227
  DISPLAY_MODE_UNKNOWN = 0;
6217
6228
  ALWAYS = 1;
6218
6229
  NEVER = 2;
6219
6230
  ONLY_WHEN_APP_IS_OPEN = 3;
6220
6231
  }
6232
+ enum MediaAutoDownloadQualitySetting {
6233
+ MEDIA_AUTO_DOWNLOAD_QUALITY_UNKNOWN = 0;
6234
+ MEDIA_AUTO_DOWNLOAD_QUALITY_STANDARD = 1;
6235
+ MEDIA_AUTO_DOWNLOAD_QUALITY_HD = 2;
6236
+ MEDIA_AUTO_DOWNLOAD_QUALITY_AUTO = 3;
6237
+ }
6221
6238
  enum MediaQualitySetting {
6222
6239
  MEDIA_QUALITY_UNKNOWN = 0;
6223
6240
  STANDARD = 1;
@@ -6259,6 +6276,7 @@ message SyncActionValue {
6259
6276
  CHAT_THEME_ID = 32;
6260
6277
  COLOR_SCHEME_ID = 33;
6261
6278
  STOCK_WALLPAPER_IMAGE_ID = 34;
6279
+ MEDIA_AUTO_DOWNLOAD_QUALITY = 35;
6262
6280
  }
6263
6281
  enum SettingPlatform {
6264
6282
  PLATFORM_UNKNOWN = 0;
package/dist/index.d.ts CHANGED
@@ -7332,7 +7332,10 @@ export namespace waproto {
7332
7332
  AI_STUDY_QUIZ_ENABLED = 82,
7333
7333
 
7334
7334
  /** HATCH_CVM_ENABLED value */
7335
- HATCH_CVM_ENABLED = 83
7335
+ HATCH_CVM_ENABLED = 83,
7336
+
7337
+ /** RICH_RESPONSE_SOCIAL_ENTITY_PREFETCH_SCHEDULER_ENABLED value */
7338
+ RICH_RESPONSE_SOCIAL_ENTITY_PREFETCH_SCHEDULER_ENABLED = 84
7336
7339
  }
7337
7340
  }
7338
7341
 
@@ -18651,7 +18654,13 @@ export namespace waproto {
18651
18654
  WEARABLE = 3,
18652
18655
 
18653
18656
  /** VR value */
18654
- VR = 4
18657
+ VR = 4,
18658
+
18659
+ /** SMART_DISPLAY value */
18660
+ SMART_DISPLAY = 5,
18661
+
18662
+ /** SMART_SPEAKER value */
18663
+ SMART_SPEAKER = 6
18655
18664
  }
18656
18665
 
18657
18666
  /** DistributionChannel enum. */
@@ -66407,6 +66416,9 @@ export namespace waproto {
66407
66416
  /** SHARED_DEVICE_SECRET_ACTION value */
66408
66417
  SHARED_DEVICE_SECRET_ACTION = 100,
66409
66418
 
66419
+ /** HATCH_CVM_SECRET_ACTION value */
66420
+ HATCH_CVM_SECRET_ACTION = 101,
66421
+
66410
66422
  /** SHARE_OWN_PN value */
66411
66423
  SHARE_OWN_PN = 10001,
66412
66424
 
@@ -76492,6 +76504,9 @@ export namespace waproto {
76492
76504
  /** SyncActionValue sharedDeviceSecretAction. */
76493
76505
  sharedDeviceSecretAction?: (waproto.SyncActionValue.SharedDeviceSecretAction.$Properties|null);
76494
76506
 
76507
+ /** SyncActionValue hatchCvmSecretAction. */
76508
+ hatchCvmSecretAction?: (waproto.SyncActionValue.HatchCVMSecretAction.$Properties|null);
76509
+
76495
76510
  /**
76496
76511
  * Creates a new SyncActionValue instance using the specified properties.
76497
76512
  * @param [properties] Properties to set
@@ -76849,6 +76864,9 @@ export namespace waproto {
76849
76864
  /** SyncActionValue sharedDeviceSecretAction */
76850
76865
  sharedDeviceSecretAction?: (waproto.SyncActionValue.SharedDeviceSecretAction.$Properties|null);
76851
76866
 
76867
+ /** SyncActionValue hatchCvmSecretAction */
76868
+ hatchCvmSecretAction?: (waproto.SyncActionValue.HatchCVMSecretAction.$Properties|null);
76869
+
76852
76870
  /** Unknown fields preserved while decoding when enabled */
76853
76871
  $unknowns?: Uint8Array[];
76854
76872
  }
@@ -76946,6 +76964,7 @@ export namespace waproto {
76946
76964
  bbProPendingCustomerBaseAction?: waproto.SyncActionValue.BBProPendingCustomerBaseAction.$Shape|null;
76947
76965
  communityNestingStateAction?: waproto.SyncActionValue.CommunityNestingStateAction.$Shape|null;
76948
76966
  sharedDeviceSecretAction?: waproto.SyncActionValue.SharedDeviceSecretAction.$Shape|null;
76967
+ hatchCvmSecretAction?: waproto.SyncActionValue.HatchCVMSecretAction.$Shape|null;
76949
76968
  $unknowns?: Uint8Array[];
76950
76969
  };
76951
76970
 
@@ -79772,14 +79791,14 @@ export namespace waproto {
79772
79791
  /** NestingState enum. */
79773
79792
  enum NestingState {
79774
79793
 
79775
- /** NESTING_STATE_UNKNOWN value */
79776
- NESTING_STATE_UNKNOWN = 0,
79794
+ /** PLATFORM_DEFAULT value */
79795
+ PLATFORM_DEFAULT = 0,
79777
79796
 
79778
- /** NESTING_STATE_NESTED value */
79779
- NESTING_STATE_NESTED = 1,
79797
+ /** NESTED value */
79798
+ NESTED = 1,
79780
79799
 
79781
- /** NESTING_STATE_UNNESTED value */
79782
- NESTING_STATE_UNNESTED = 2
79800
+ /** UNNESTED value */
79801
+ UNNESTED = 2
79783
79802
  }
79784
79803
  }
79785
79804
 
@@ -81800,6 +81819,129 @@ export namespace waproto {
81800
81819
  }
81801
81820
  }
81802
81821
 
81822
+ /**
81823
+ * Properties of a HatchCVMSecretAction.
81824
+ * @deprecated Use waproto.SyncActionValue.HatchCVMSecretAction.$Properties instead.
81825
+ */
81826
+ interface IHatchCVMSecretAction extends waproto.SyncActionValue.HatchCVMSecretAction.$Properties {
81827
+ }
81828
+
81829
+ /** Represents a HatchCVMSecretAction. */
81830
+ class HatchCVMSecretAction {
81831
+
81832
+ /**
81833
+ * Constructs a new HatchCVMSecretAction.
81834
+ * @param [properties] Properties to set
81835
+ */
81836
+ constructor(properties?: waproto.SyncActionValue.HatchCVMSecretAction.$Properties);
81837
+
81838
+ /** Unknown fields preserved while decoding when enabled */
81839
+ $unknowns?: Uint8Array[];
81840
+
81841
+ /** HatchCVMSecretAction secret. */
81842
+ secret?: (Uint8Array|null);
81843
+
81844
+ /** HatchCVMSecretAction generation. */
81845
+ generation?: (number|Long|null);
81846
+
81847
+ /**
81848
+ * Creates a new HatchCVMSecretAction instance using the specified properties.
81849
+ * @param [properties] Properties to set
81850
+ * @returns HatchCVMSecretAction instance
81851
+ */
81852
+ static create(properties: waproto.SyncActionValue.HatchCVMSecretAction.$Shape): waproto.SyncActionValue.HatchCVMSecretAction & waproto.SyncActionValue.HatchCVMSecretAction.$Shape;
81853
+ static create(properties?: waproto.SyncActionValue.HatchCVMSecretAction.$Properties): waproto.SyncActionValue.HatchCVMSecretAction;
81854
+
81855
+ /**
81856
+ * Encodes the specified HatchCVMSecretAction message. Does not implicitly {@link waproto.SyncActionValue.HatchCVMSecretAction.verify|verify} messages.
81857
+ * @param message HatchCVMSecretAction message or plain object to encode
81858
+ * @param [writer] Writer to encode to
81859
+ * @returns Writer
81860
+ */
81861
+ static encode(message: waproto.SyncActionValue.HatchCVMSecretAction.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
81862
+
81863
+ /**
81864
+ * Encodes the specified HatchCVMSecretAction message, length delimited. Does not implicitly {@link waproto.SyncActionValue.HatchCVMSecretAction.verify|verify} messages.
81865
+ * @param message HatchCVMSecretAction message or plain object to encode
81866
+ * @param [writer] Writer to encode to
81867
+ * @returns Writer
81868
+ */
81869
+ static encodeDelimited(message: waproto.SyncActionValue.HatchCVMSecretAction.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
81870
+
81871
+ /**
81872
+ * Decodes a HatchCVMSecretAction message from the specified reader or buffer.
81873
+ * @param reader Reader or buffer to decode from
81874
+ * @param [length] Message length if known beforehand
81875
+ * @returns {waproto.SyncActionValue.HatchCVMSecretAction & waproto.SyncActionValue.HatchCVMSecretAction.$Shape} HatchCVMSecretAction
81876
+ * @throws {Error} If the payload is not a reader or valid buffer
81877
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81878
+ */
81879
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.SyncActionValue.HatchCVMSecretAction & waproto.SyncActionValue.HatchCVMSecretAction.$Shape;
81880
+
81881
+ /**
81882
+ * Decodes a HatchCVMSecretAction message from the specified reader or buffer, length delimited.
81883
+ * @param reader Reader or buffer to decode from
81884
+ * @returns {waproto.SyncActionValue.HatchCVMSecretAction & waproto.SyncActionValue.HatchCVMSecretAction.$Shape} HatchCVMSecretAction
81885
+ * @throws {Error} If the payload is not a reader or valid buffer
81886
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81887
+ */
81888
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.SyncActionValue.HatchCVMSecretAction & waproto.SyncActionValue.HatchCVMSecretAction.$Shape;
81889
+
81890
+ /**
81891
+ * Verifies a HatchCVMSecretAction message.
81892
+ * @param message Plain object to verify
81893
+ * @returns `null` if valid, otherwise the reason why it is not
81894
+ */
81895
+ static verify(message: { [k: string]: any }): (string|null);
81896
+
81897
+ /**
81898
+ * Creates a HatchCVMSecretAction message from a plain object. Also converts values to their respective internal types.
81899
+ * @param object Plain object
81900
+ * @returns HatchCVMSecretAction
81901
+ */
81902
+ static fromObject(object: { [k: string]: any }): waproto.SyncActionValue.HatchCVMSecretAction;
81903
+
81904
+ /**
81905
+ * Creates a plain object from a HatchCVMSecretAction message. Also converts values to other types if specified.
81906
+ * @param message HatchCVMSecretAction
81907
+ * @param [options] Conversion options
81908
+ * @returns Plain object
81909
+ */
81910
+ static toObject(message: waproto.SyncActionValue.HatchCVMSecretAction, options?: $protobuf.IConversionOptions): { [k: string]: any };
81911
+
81912
+ /**
81913
+ * Converts this HatchCVMSecretAction to JSON.
81914
+ * @returns JSON object
81915
+ */
81916
+ toJSON(): { [k: string]: any };
81917
+
81918
+ /**
81919
+ * Gets the type url for HatchCVMSecretAction
81920
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
81921
+ * @returns The type url
81922
+ */
81923
+ static getTypeUrl(prefix?: string): string;
81924
+ }
81925
+
81926
+ namespace HatchCVMSecretAction {
81927
+
81928
+ /** Properties of a HatchCVMSecretAction. */
81929
+ interface $Properties {
81930
+
81931
+ /** HatchCVMSecretAction secret */
81932
+ secret?: (Uint8Array|null);
81933
+
81934
+ /** HatchCVMSecretAction generation */
81935
+ generation?: (number|Long|null);
81936
+
81937
+ /** Unknown fields preserved while decoding when enabled */
81938
+ $unknowns?: Uint8Array[];
81939
+ }
81940
+
81941
+ /** Shape of a HatchCVMSecretAction. */
81942
+ type $Shape = waproto.SyncActionValue.HatchCVMSecretAction.$Properties;
81943
+ }
81944
+
81803
81945
  /**
81804
81946
  * Properties of an InteractiveMessageAction.
81805
81947
  * @deprecated Use waproto.SyncActionValue.InteractiveMessageAction.$Properties instead.
@@ -86530,6 +86672,9 @@ export namespace waproto {
86530
86672
  /** SettingsSyncAction stockWallpaperImageId. */
86531
86673
  stockWallpaperImageId?: (string|null);
86532
86674
 
86675
+ /** SettingsSyncAction mediaAutoDownloadQuality. */
86676
+ mediaAutoDownloadQuality?: (waproto.SyncActionValue.SettingsSyncAction.MediaAutoDownloadQualitySetting|null);
86677
+
86533
86678
  /**
86534
86679
  * Creates a new SettingsSyncAction instance using the specified properties.
86535
86680
  * @param [properties] Properties to set
@@ -86716,6 +86861,9 @@ export namespace waproto {
86716
86861
  /** SettingsSyncAction stockWallpaperImageId */
86717
86862
  stockWallpaperImageId?: (string|null);
86718
86863
 
86864
+ /** SettingsSyncAction mediaAutoDownloadQuality */
86865
+ mediaAutoDownloadQuality?: (waproto.SyncActionValue.SettingsSyncAction.MediaAutoDownloadQualitySetting|null);
86866
+
86719
86867
  /** Unknown fields preserved while decoding when enabled */
86720
86868
  $unknowns?: Uint8Array[];
86721
86869
  }
@@ -86739,6 +86887,22 @@ export namespace waproto {
86739
86887
  ONLY_WHEN_APP_IS_OPEN = 3
86740
86888
  }
86741
86889
 
86890
+ /** MediaAutoDownloadQualitySetting enum. */
86891
+ enum MediaAutoDownloadQualitySetting {
86892
+
86893
+ /** MEDIA_AUTO_DOWNLOAD_QUALITY_UNKNOWN value */
86894
+ MEDIA_AUTO_DOWNLOAD_QUALITY_UNKNOWN = 0,
86895
+
86896
+ /** MEDIA_AUTO_DOWNLOAD_QUALITY_STANDARD value */
86897
+ MEDIA_AUTO_DOWNLOAD_QUALITY_STANDARD = 1,
86898
+
86899
+ /** MEDIA_AUTO_DOWNLOAD_QUALITY_HD value */
86900
+ MEDIA_AUTO_DOWNLOAD_QUALITY_HD = 2,
86901
+
86902
+ /** MEDIA_AUTO_DOWNLOAD_QUALITY_AUTO value */
86903
+ MEDIA_AUTO_DOWNLOAD_QUALITY_AUTO = 3
86904
+ }
86905
+
86742
86906
  /** MediaQualitySetting enum. */
86743
86907
  enum MediaQualitySetting {
86744
86908
 
@@ -86858,7 +87022,10 @@ export namespace waproto {
86858
87022
  COLOR_SCHEME_ID = 33,
86859
87023
 
86860
87024
  /** STOCK_WALLPAPER_IMAGE_ID value */
86861
- STOCK_WALLPAPER_IMAGE_ID = 34
87025
+ STOCK_WALLPAPER_IMAGE_ID = 34,
87026
+
87027
+ /** MEDIA_AUTO_DOWNLOAD_QUALITY value */
87028
+ MEDIA_AUTO_DOWNLOAD_QUALITY = 35
86862
87029
  }
86863
87030
 
86864
87031
  /** SettingPlatform enum. */