@elfhkry666/baileys 0.3.20 → 0.3.22

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 (45) hide show
  1. package/README.md +68 -2022
  2. package/WAProto/index.d.ts +31 -168
  3. package/WAProto/index.js +211 -1256
  4. package/lib/Defaults/index.d.ts +1 -1
  5. package/lib/Defaults/index.js +2 -1
  6. package/lib/Socket/business.d.ts +1 -1
  7. package/lib/Socket/chats.d.ts +1 -8
  8. package/lib/Socket/chats.d.ts.map +1 -1
  9. package/lib/Socket/chats.js +7 -12
  10. package/lib/Socket/chats.js.map +1 -1
  11. package/lib/Socket/communities.d.ts +1 -1
  12. package/lib/Socket/groups.d.ts +1 -1
  13. package/lib/Socket/index.d.ts +1 -1
  14. package/lib/Socket/messages-recv.d.ts +1 -1
  15. package/lib/Socket/messages-send.d.ts +1 -1
  16. package/lib/Socket/newsletter.d.ts +1 -1
  17. package/lib/Socket/newsletter.js +9 -12
  18. package/lib/Socket/socket.d.ts.map +1 -1
  19. package/lib/Socket/socket.js +0 -3
  20. package/lib/Socket/socket.js.map +1 -1
  21. package/lib/Utils/auth-utils.d.ts.map +1 -1
  22. package/lib/Utils/auth-utils.js +1 -5
  23. package/lib/Utils/auth-utils.js.map +1 -1
  24. package/lib/Utils/browser-utils.d.ts +0 -1
  25. package/lib/Utils/browser-utils.d.ts.map +1 -1
  26. package/lib/Utils/browser-utils.js +0 -1
  27. package/lib/Utils/browser-utils.js.map +1 -1
  28. package/lib/Utils/generics.js +1 -1
  29. package/lib/Utils/messages.d.ts +4 -4
  30. package/lib/Utils/messages.d.ts.map +1 -1
  31. package/lib/Utils/messages.js +54 -21
  32. package/lib/Utils/messages.js.map +1 -1
  33. package/lib/Utils/rich-message-utils.d.ts +1 -1
  34. package/lib/Utils/rich-message-utils.d.ts.map +1 -1
  35. package/lib/Utils/rich-message-utils.js +10 -122
  36. package/lib/Utils/rich-message-utils.js.map +1 -1
  37. package/lib/Utils/tc-token-utils.d.ts.map +1 -1
  38. package/lib/Utils/tc-token-utils.js +2 -3
  39. package/lib/Utils/tc-token-utils.js.map +1 -1
  40. package/lib/Utils/use-single-file-auth-state.js +1 -1
  41. package/lib/Utils/validate-connection.d.ts.map +1 -1
  42. package/lib/Utils/validate-connection.js +2 -9
  43. package/lib/Utils/validate-connection.js.map +1 -1
  44. package/lib/index.js +7 -8
  45. package/package.json +14 -45
@@ -2451,8 +2451,7 @@ export namespace proto {
2451
2451
  enum BotSignatureUseCase {
2452
2452
  UNSPECIFIED = 0,
2453
2453
  WA_BOT_MSG = 1,
2454
- WA_TEE_BOT_MSG = 2,
2455
- P2P_PILLS = 3
2454
+ WA_TEE_BOT_MSG = 2
2456
2455
  }
2457
2456
  }
2458
2457
 
@@ -3623,8 +3622,6 @@ export namespace proto {
3623
3622
  businessJid?: (string|null);
3624
3623
  pills?: (proto.ContextInfo.BusinessInteractionPills.IPill[]|null);
3625
3624
  entryPoint?: (proto.ContextInfo.BusinessInteractionPills.EntryPoint|null);
3626
- signedPayload?: (Uint8Array|null);
3627
- signatureEnvelope?: (proto.IBotSignatureVerificationMetadata|null);
3628
3625
  }
3629
3626
 
3630
3627
  class BusinessInteractionPills implements IBusinessInteractionPills {
@@ -3632,8 +3629,6 @@ export namespace proto {
3632
3629
  public businessJid?: (string|null);
3633
3630
  public pills: proto.ContextInfo.BusinessInteractionPills.IPill[];
3634
3631
  public entryPoint?: (proto.ContextInfo.BusinessInteractionPills.EntryPoint|null);
3635
- public signedPayload?: (Uint8Array|null);
3636
- public signatureEnvelope?: (proto.IBotSignatureVerificationMetadata|null);
3637
3632
  public static create(properties?: proto.ContextInfo.IBusinessInteractionPills): proto.ContextInfo.BusinessInteractionPills;
3638
3633
  public static encode(m: proto.ContextInfo.IBusinessInteractionPills, w?: $protobuf.Writer): $protobuf.Writer;
3639
3634
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo.BusinessInteractionPills;
@@ -3687,24 +3682,6 @@ export namespace proto {
3687
3682
  SHOP = 11,
3688
3683
  ORDER = 12
3689
3684
  }
3690
-
3691
- interface ISignedPayload {
3692
- verifiedName?: (string|null);
3693
- pills?: (proto.ContextInfo.BusinessInteractionPills.IPill[]|null);
3694
- }
3695
-
3696
- class SignedPayload implements ISignedPayload {
3697
- constructor(p?: proto.ContextInfo.BusinessInteractionPills.ISignedPayload);
3698
- public verifiedName?: (string|null);
3699
- public pills: proto.ContextInfo.BusinessInteractionPills.IPill[];
3700
- public static create(properties?: proto.ContextInfo.BusinessInteractionPills.ISignedPayload): proto.ContextInfo.BusinessInteractionPills.SignedPayload;
3701
- public static encode(m: proto.ContextInfo.BusinessInteractionPills.ISignedPayload, w?: $protobuf.Writer): $protobuf.Writer;
3702
- public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo.BusinessInteractionPills.SignedPayload;
3703
- public static fromObject(d: { [k: string]: any }): proto.ContextInfo.BusinessInteractionPills.SignedPayload;
3704
- public static toObject(m: proto.ContextInfo.BusinessInteractionPills.SignedPayload, o?: $protobuf.IConversionOptions): { [k: string]: any };
3705
- public toJSON(): { [k: string]: any };
3706
- public static getTypeUrl(typeUrlPrefix?: string): string;
3707
- }
3708
3685
  }
3709
3686
 
3710
3687
  interface IBusinessMessageForwardInfo {
@@ -5965,7 +5942,6 @@ export namespace proto {
5965
5942
  paymentReminderMessage?: (proto.Message.IPaymentReminderMessage|null);
5966
5943
  splitPaymentMessage?: (proto.Message.ISplitPaymentMessage|null);
5967
5944
  newsletterAdminProfileStatusMessage?: (proto.Message.IFutureProofMessage|null);
5968
- rootSecretDistributeMessage?: (proto.Message.IRootSecretDistributeMessage|null);
5969
5945
  }
5970
5946
 
5971
5947
  class Message implements IMessage {
@@ -6076,7 +6052,6 @@ export namespace proto {
6076
6052
  public paymentReminderMessage?: (proto.Message.IPaymentReminderMessage|null);
6077
6053
  public splitPaymentMessage?: (proto.Message.ISplitPaymentMessage|null);
6078
6054
  public newsletterAdminProfileStatusMessage?: (proto.Message.IFutureProofMessage|null);
6079
- public rootSecretDistributeMessage?: (proto.Message.IRootSecretDistributeMessage|null);
6080
6055
  public static create(properties?: proto.IMessage): proto.Message;
6081
6056
  public static encode(m: proto.IMessage, w?: $protobuf.Writer): $protobuf.Writer;
6082
6057
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message;
@@ -9423,14 +9398,12 @@ export namespace proto {
9423
9398
  interface IPollAddOptionMessage {
9424
9399
  pollCreationMessageKey?: (proto.IMessageKey|null);
9425
9400
  addOption?: (proto.Message.PollCreationMessage.IOption|null);
9426
- metadata?: (proto.Message.IPollUpdateMessageMetadata|null);
9427
9401
  }
9428
9402
 
9429
9403
  class PollAddOptionMessage implements IPollAddOptionMessage {
9430
9404
  constructor(p?: proto.Message.IPollAddOptionMessage);
9431
9405
  public pollCreationMessageKey?: (proto.IMessageKey|null);
9432
9406
  public addOption?: (proto.Message.PollCreationMessage.IOption|null);
9433
- public metadata?: (proto.Message.IPollUpdateMessageMetadata|null);
9434
9407
  public static create(properties?: proto.Message.IPollAddOptionMessage): proto.Message.PollAddOptionMessage;
9435
9408
  public static encode(m: proto.Message.IPollAddOptionMessage, w?: $protobuf.Writer): $protobuf.Writer;
9436
9409
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PollAddOptionMessage;
@@ -9592,14 +9565,10 @@ export namespace proto {
9592
9565
  }
9593
9566
 
9594
9567
  interface IPollUpdateMessageMetadata {
9595
- pollNameHash?: (Uint8Array|null);
9596
- lastEditStanzaId?: (string|null);
9597
9568
  }
9598
9569
 
9599
9570
  class PollUpdateMessageMetadata implements IPollUpdateMessageMetadata {
9600
9571
  constructor(p?: proto.Message.IPollUpdateMessageMetadata);
9601
- public pollNameHash?: (Uint8Array|null);
9602
- public lastEditStanzaId?: (string|null);
9603
9572
  public static create(properties?: proto.Message.IPollUpdateMessageMetadata): proto.Message.PollUpdateMessageMetadata;
9604
9573
  public static encode(m: proto.Message.IPollUpdateMessageMetadata, w?: $protobuf.Writer): $protobuf.Writer;
9605
9574
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PollUpdateMessageMetadata;
@@ -9935,22 +9904,6 @@ export namespace proto {
9935
9904
  }
9936
9905
  }
9937
9906
 
9938
- interface IRootSecretDistributeMessage {
9939
- chatJid?: (string|null);
9940
- }
9941
-
9942
- class RootSecretDistributeMessage implements IRootSecretDistributeMessage {
9943
- constructor(p?: proto.Message.IRootSecretDistributeMessage);
9944
- public chatJid?: (string|null);
9945
- public static create(properties?: proto.Message.IRootSecretDistributeMessage): proto.Message.RootSecretDistributeMessage;
9946
- public static encode(m: proto.Message.IRootSecretDistributeMessage, w?: $protobuf.Writer): $protobuf.Writer;
9947
- public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.RootSecretDistributeMessage;
9948
- public static fromObject(d: { [k: string]: any }): proto.Message.RootSecretDistributeMessage;
9949
- public static toObject(m: proto.Message.RootSecretDistributeMessage, o?: $protobuf.IConversionOptions): { [k: string]: any };
9950
- public toJSON(): { [k: string]: any };
9951
- public static getTypeUrl(typeUrlPrefix?: string): string;
9952
- }
9953
-
9954
9907
  interface IScheduledCallCreationMessage {
9955
9908
  scheduledTimestampMs?: (number|Long|null);
9956
9909
  callType?: (proto.Message.ScheduledCallCreationMessage.CallType|null);
@@ -10936,14 +10889,6 @@ export namespace proto {
10936
10889
  pollEndTime?: (number|Long|null);
10937
10890
  pollHideVoterNames?: (boolean|null);
10938
10891
  pollAllowAddOption?: (boolean|null);
10939
- sharableEventInviteId?: (string|null);
10940
- sharableEventInviteTitle?: (string|null);
10941
- sharableEventInviteStartTime?: (number|Long|null);
10942
- sharableEventInviteEndTime?: (number|Long|null);
10943
- sharableEventInviteCaption?: (string|null);
10944
- sharableEventInviteIsCanceled?: (boolean|null);
10945
- sharableEventInviteJpegThumbnail?: (Uint8Array|null);
10946
- sharableEventInviteCallLink?: (string|null);
10947
10892
  }
10948
10893
 
10949
10894
  class MsgOpaqueData implements IMsgOpaqueData {
@@ -10995,14 +10940,6 @@ export namespace proto {
10995
10940
  public pollEndTime?: (number|Long|null);
10996
10941
  public pollHideVoterNames?: (boolean|null);
10997
10942
  public pollAllowAddOption?: (boolean|null);
10998
- public sharableEventInviteId?: (string|null);
10999
- public sharableEventInviteTitle?: (string|null);
11000
- public sharableEventInviteStartTime?: (number|Long|null);
11001
- public sharableEventInviteEndTime?: (number|Long|null);
11002
- public sharableEventInviteCaption?: (string|null);
11003
- public sharableEventInviteIsCanceled?: (boolean|null);
11004
- public sharableEventInviteJpegThumbnail?: (Uint8Array|null);
11005
- public sharableEventInviteCallLink?: (string|null);
11006
10943
  public static create(properties?: proto.IMsgOpaqueData): proto.MsgOpaqueData;
11007
10944
  public static encode(m: proto.IMsgOpaqueData, w?: $protobuf.Writer): $protobuf.Writer;
11008
10945
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.MsgOpaqueData;
@@ -11204,8 +11141,6 @@ export namespace proto {
11204
11141
  THREAD_PIN_ACTION = 85,
11205
11142
  AUTO_ORGANIZE_BUSINESS_CHAT_SETTING = 86,
11206
11143
  BIZ_AI_SETTINGS_NUDGE_ACTION = 87,
11207
- COEX_V2_VERSION_ACTION = 88,
11208
- WASA_ROOT_SECRET_ACTION = 89,
11209
11144
  SHARE_OWN_PN = 10001,
11210
11145
  BUSINESS_BROADCAST_ACTION = 10002,
11211
11146
  AI_THREAD_DELETE_ACTION = 10003
@@ -11683,13 +11618,11 @@ export namespace proto {
11683
11618
 
11684
11619
  interface IPollAdditionalMetadata {
11685
11620
  pollInvalidated?: (boolean|null);
11686
- pollNameHashHistory?: (proto.PollAdditionalMetadata.IPollNameHashHistoryEntry[]|null);
11687
11621
  }
11688
11622
 
11689
11623
  class PollAdditionalMetadata implements IPollAdditionalMetadata {
11690
11624
  constructor(p?: proto.IPollAdditionalMetadata);
11691
11625
  public pollInvalidated?: (boolean|null);
11692
- public pollNameHashHistory: proto.PollAdditionalMetadata.IPollNameHashHistoryEntry[];
11693
11626
  public static create(properties?: proto.IPollAdditionalMetadata): proto.PollAdditionalMetadata;
11694
11627
  public static encode(m: proto.IPollAdditionalMetadata, w?: $protobuf.Writer): $protobuf.Writer;
11695
11628
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.PollAdditionalMetadata;
@@ -11699,27 +11632,6 @@ export namespace proto {
11699
11632
  public static getTypeUrl(typeUrlPrefix?: string): string;
11700
11633
  }
11701
11634
 
11702
- namespace PollAdditionalMetadata {
11703
-
11704
- interface IPollNameHashHistoryEntry {
11705
- editStanzaId?: (string|null);
11706
- pollNameHash?: (Uint8Array|null);
11707
- }
11708
-
11709
- class PollNameHashHistoryEntry implements IPollNameHashHistoryEntry {
11710
- constructor(p?: proto.PollAdditionalMetadata.IPollNameHashHistoryEntry);
11711
- public editStanzaId?: (string|null);
11712
- public pollNameHash?: (Uint8Array|null);
11713
- public static create(properties?: proto.PollAdditionalMetadata.IPollNameHashHistoryEntry): proto.PollAdditionalMetadata.PollNameHashHistoryEntry;
11714
- public static encode(m: proto.PollAdditionalMetadata.IPollNameHashHistoryEntry, w?: $protobuf.Writer): $protobuf.Writer;
11715
- public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.PollAdditionalMetadata.PollNameHashHistoryEntry;
11716
- public static fromObject(d: { [k: string]: any }): proto.PollAdditionalMetadata.PollNameHashHistoryEntry;
11717
- public static toObject(m: proto.PollAdditionalMetadata.PollNameHashHistoryEntry, o?: $protobuf.IConversionOptions): { [k: string]: any };
11718
- public toJSON(): { [k: string]: any };
11719
- public static getTypeUrl(typeUrlPrefix?: string): string;
11720
- }
11721
- }
11722
-
11723
11635
  interface IPollEncValue {
11724
11636
  encPayload?: (Uint8Array|null);
11725
11637
  encIv?: (Uint8Array|null);
@@ -11744,7 +11656,6 @@ export namespace proto {
11744
11656
  senderTimestampMs?: (number|Long|null);
11745
11657
  serverTimestampMs?: (number|Long|null);
11746
11658
  unread?: (boolean|null);
11747
- metadata?: (proto.Message.IPollUpdateMessageMetadata|null);
11748
11659
  }
11749
11660
 
11750
11661
  class PollUpdate implements IPollUpdate {
@@ -11754,7 +11665,6 @@ export namespace proto {
11754
11665
  public senderTimestampMs?: (number|Long|null);
11755
11666
  public serverTimestampMs?: (number|Long|null);
11756
11667
  public unread?: (boolean|null);
11757
- public metadata?: (proto.Message.IPollUpdateMessageMetadata|null);
11758
11668
  public static create(properties?: proto.IPollUpdate): proto.PollUpdate;
11759
11669
  public static encode(m: proto.IPollUpdate, w?: $protobuf.Writer): $protobuf.Writer;
11760
11670
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.PollUpdate;
@@ -12852,8 +12762,6 @@ export namespace proto {
12852
12762
  threadPinAction?: (proto.SyncActionValue.IThreadPinAction|null);
12853
12763
  autoOrganizeBusinessChatSetting?: (proto.SyncActionValue.IAutoOrganizeBusinessChatSetting|null);
12854
12764
  bizAiSettingsNudgeAction?: (proto.SyncActionValue.IBizAISettingsNudgeAction|null);
12855
- coexV2VersionAction?: (proto.SyncActionValue.ICoexV2VersionAction|null);
12856
- wasaRootSecretAction?: (proto.SyncActionValue.IWASARootSecretAction|null);
12857
12765
  }
12858
12766
 
12859
12767
  class SyncActionValue implements ISyncActionValue {
@@ -12936,8 +12844,6 @@ export namespace proto {
12936
12844
  public threadPinAction?: (proto.SyncActionValue.IThreadPinAction|null);
12937
12845
  public autoOrganizeBusinessChatSetting?: (proto.SyncActionValue.IAutoOrganizeBusinessChatSetting|null);
12938
12846
  public bizAiSettingsNudgeAction?: (proto.SyncActionValue.IBizAISettingsNudgeAction|null);
12939
- public coexV2VersionAction?: (proto.SyncActionValue.ICoexV2VersionAction|null);
12940
- public wasaRootSecretAction?: (proto.SyncActionValue.IWASARootSecretAction|null);
12941
12847
  public static create(properties?: proto.ISyncActionValue): proto.SyncActionValue;
12942
12848
  public static encode(m: proto.ISyncActionValue, w?: $protobuf.Writer): $protobuf.Writer;
12943
12849
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue;
@@ -12951,14 +12857,14 @@ export namespace proto {
12951
12857
 
12952
12858
  interface IAgentAction {
12953
12859
  name?: (string|null);
12954
- deviceId?: (number|null);
12860
+ deviceID?: (number|null);
12955
12861
  isDeleted?: (boolean|null);
12956
12862
  }
12957
12863
 
12958
12864
  class AgentAction implements IAgentAction {
12959
12865
  constructor(p?: proto.SyncActionValue.IAgentAction);
12960
12866
  public name?: (string|null);
12961
- public deviceId?: (number|null);
12867
+ public deviceID?: (number|null);
12962
12868
  public isDeleted?: (boolean|null);
12963
12869
  public static create(properties?: proto.SyncActionValue.IAgentAction): proto.SyncActionValue.AgentAction;
12964
12870
  public static encode(m: proto.SyncActionValue.IAgentAction, w?: $protobuf.Writer): $protobuf.Writer;
@@ -13249,12 +13155,12 @@ export namespace proto {
13249
13155
  }
13250
13156
 
13251
13157
  interface IChatAssignmentAction {
13252
- deviceAgentId?: (string|null);
13158
+ deviceAgentID?: (string|null);
13253
13159
  }
13254
13160
 
13255
13161
  class ChatAssignmentAction implements IChatAssignmentAction {
13256
13162
  constructor(p?: proto.SyncActionValue.IChatAssignmentAction);
13257
- public deviceAgentId?: (string|null);
13163
+ public deviceAgentID?: (string|null);
13258
13164
  public static create(properties?: proto.SyncActionValue.IChatAssignmentAction): proto.SyncActionValue.ChatAssignmentAction;
13259
13165
  public static encode(m: proto.SyncActionValue.IChatAssignmentAction, w?: $protobuf.Writer): $protobuf.Writer;
13260
13166
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.ChatAssignmentAction;
@@ -13296,22 +13202,6 @@ export namespace proto {
13296
13202
  public static getTypeUrl(typeUrlPrefix?: string): string;
13297
13203
  }
13298
13204
 
13299
- interface ICoexV2VersionAction {
13300
- version?: (number|Long|null);
13301
- }
13302
-
13303
- class CoexV2VersionAction implements ICoexV2VersionAction {
13304
- constructor(p?: proto.SyncActionValue.ICoexV2VersionAction);
13305
- public version?: (number|Long|null);
13306
- public static create(properties?: proto.SyncActionValue.ICoexV2VersionAction): proto.SyncActionValue.CoexV2VersionAction;
13307
- public static encode(m: proto.SyncActionValue.ICoexV2VersionAction, w?: $protobuf.Writer): $protobuf.Writer;
13308
- public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.CoexV2VersionAction;
13309
- public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.CoexV2VersionAction;
13310
- public static toObject(m: proto.SyncActionValue.CoexV2VersionAction, o?: $protobuf.IConversionOptions): { [k: string]: any };
13311
- public toJSON(): { [k: string]: any };
13312
- public static getTypeUrl(typeUrlPrefix?: string): string;
13313
- }
13314
-
13315
13205
  interface IContactAction {
13316
13206
  fullName?: (string|null);
13317
13207
  firstName?: (string|null);
@@ -13608,13 +13498,13 @@ export namespace proto {
13608
13498
 
13609
13499
  interface ILabelAssociationAction {
13610
13500
  labeled?: (boolean|null);
13611
- modelMetaData?: (string|null);
13501
+ modelMetaData?: (proto.SyncActionValue.IModelMetadata[]|null);
13612
13502
  }
13613
13503
 
13614
13504
  class LabelAssociationAction implements ILabelAssociationAction {
13615
13505
  constructor(p?: proto.SyncActionValue.ILabelAssociationAction);
13616
13506
  public labeled?: (boolean|null);
13617
- public modelMetaData?: (string|null);
13507
+ public modelMetaData: proto.SyncActionValue.IModelMetadata[];
13618
13508
  public static create(properties?: proto.SyncActionValue.ILabelAssociationAction): proto.SyncActionValue.LabelAssociationAction;
13619
13509
  public static encode(m: proto.SyncActionValue.ILabelAssociationAction, w?: $protobuf.Writer): $protobuf.Writer;
13620
13510
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.LabelAssociationAction;
@@ -13748,13 +13638,11 @@ export namespace proto {
13748
13638
 
13749
13639
  interface IMaibaAIFeaturesControlAction {
13750
13640
  aiFeatureStatus?: (proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIFeatureStatus|null);
13751
- aiReplyMode?: (proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIReplyMode|null);
13752
13641
  }
13753
13642
 
13754
13643
  class MaibaAIFeaturesControlAction implements IMaibaAIFeaturesControlAction {
13755
13644
  constructor(p?: proto.SyncActionValue.IMaibaAIFeaturesControlAction);
13756
13645
  public aiFeatureStatus?: (proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIFeatureStatus|null);
13757
- public aiReplyMode?: (proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIReplyMode|null);
13758
13646
  public static create(properties?: proto.SyncActionValue.IMaibaAIFeaturesControlAction): proto.SyncActionValue.MaibaAIFeaturesControlAction;
13759
13647
  public static encode(m: proto.SyncActionValue.IMaibaAIFeaturesControlAction, w?: $protobuf.Writer): $protobuf.Writer;
13760
13648
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.MaibaAIFeaturesControlAction;
@@ -13771,12 +13659,6 @@ export namespace proto {
13771
13659
  ENABLED_HAS_LEARNING = 1,
13772
13660
  DISABLED = 2
13773
13661
  }
13774
-
13775
- enum MaibaAIReplyMode {
13776
- MUTED = 0,
13777
- AI_AGENT = 1,
13778
- SUGGESTIONS = 2
13779
- }
13780
13662
  }
13781
13663
 
13782
13664
  interface IMarkChatAsReadAction {
@@ -13878,6 +13760,26 @@ export namespace proto {
13878
13760
  }
13879
13761
  }
13880
13762
 
13763
+ interface IModelMetadata {
13764
+ modelName?: (string|null);
13765
+ isLatestModel?: (boolean|null);
13766
+ isDetected?: (boolean|null);
13767
+ }
13768
+
13769
+ class ModelMetadata implements IModelMetadata {
13770
+ constructor(p?: proto.SyncActionValue.IModelMetadata);
13771
+ public modelName?: (string|null);
13772
+ public isLatestModel?: (boolean|null);
13773
+ public isDetected?: (boolean|null);
13774
+ public static create(properties?: proto.SyncActionValue.IModelMetadata): proto.SyncActionValue.ModelMetadata;
13775
+ public static encode(m: proto.SyncActionValue.IModelMetadata, w?: $protobuf.Writer): $protobuf.Writer;
13776
+ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.ModelMetadata;
13777
+ public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.ModelMetadata;
13778
+ public static toObject(m: proto.SyncActionValue.ModelMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any };
13779
+ public toJSON(): { [k: string]: any };
13780
+ public static getTypeUrl(typeUrlPrefix?: string): string;
13781
+ }
13782
+
13881
13783
  interface IMusicUserIdAction {
13882
13784
  musicUserId?: (string|null);
13883
13785
  musicUserIdMap?: ({ [k: string]: string }|null);
@@ -14470,8 +14372,8 @@ export namespace proto {
14470
14372
  interface IStatusPrivacyAction {
14471
14373
  mode?: (proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode|null);
14472
14374
  userJid?: (string[]|null);
14473
- shareToFb?: (boolean|null);
14474
- shareToIg?: (boolean|null);
14375
+ shareToFB?: (boolean|null);
14376
+ shareToIG?: (boolean|null);
14475
14377
  customLists?: (proto.SyncActionValue.StatusPrivacyAction.ICustomList[]|null);
14476
14378
  modes?: (proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode[]|null);
14477
14379
  }
@@ -14480,8 +14382,8 @@ export namespace proto {
14480
14382
  constructor(p?: proto.SyncActionValue.IStatusPrivacyAction);
14481
14383
  public mode?: (proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode|null);
14482
14384
  public userJid: string[];
14483
- public shareToFb?: (boolean|null);
14484
- public shareToIg?: (boolean|null);
14385
+ public shareToFB?: (boolean|null);
14386
+ public shareToIG?: (boolean|null);
14485
14387
  public customLists: proto.SyncActionValue.StatusPrivacyAction.ICustomList[];
14486
14388
  public modes: proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode[];
14487
14389
  public static create(properties?: proto.SyncActionValue.IStatusPrivacyAction): proto.SyncActionValue.StatusPrivacyAction;
@@ -14803,45 +14705,6 @@ export namespace proto {
14803
14705
  }
14804
14706
  }
14805
14707
 
14806
- interface IWASARootSecretAction {
14807
- secrets?: (proto.SyncActionValue.WASARootSecretAction.IRootSecretEntry[]|null);
14808
- }
14809
-
14810
- class WASARootSecretAction implements IWASARootSecretAction {
14811
- constructor(p?: proto.SyncActionValue.IWASARootSecretAction);
14812
- public secrets: proto.SyncActionValue.WASARootSecretAction.IRootSecretEntry[];
14813
- public static create(properties?: proto.SyncActionValue.IWASARootSecretAction): proto.SyncActionValue.WASARootSecretAction;
14814
- public static encode(m: proto.SyncActionValue.IWASARootSecretAction, w?: $protobuf.Writer): $protobuf.Writer;
14815
- public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.WASARootSecretAction;
14816
- public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.WASARootSecretAction;
14817
- public static toObject(m: proto.SyncActionValue.WASARootSecretAction, o?: $protobuf.IConversionOptions): { [k: string]: any };
14818
- public toJSON(): { [k: string]: any };
14819
- public static getTypeUrl(typeUrlPrefix?: string): string;
14820
- }
14821
-
14822
- namespace WASARootSecretAction {
14823
-
14824
- interface IRootSecretEntry {
14825
- id?: (string|null);
14826
- rootSecret?: (Uint8Array|null);
14827
- epoch?: (number|Long|null);
14828
- }
14829
-
14830
- class RootSecretEntry implements IRootSecretEntry {
14831
- constructor(p?: proto.SyncActionValue.WASARootSecretAction.IRootSecretEntry);
14832
- public id?: (string|null);
14833
- public rootSecret?: (Uint8Array|null);
14834
- public epoch?: (number|Long|null);
14835
- public static create(properties?: proto.SyncActionValue.WASARootSecretAction.IRootSecretEntry): proto.SyncActionValue.WASARootSecretAction.RootSecretEntry;
14836
- public static encode(m: proto.SyncActionValue.WASARootSecretAction.IRootSecretEntry, w?: $protobuf.Writer): $protobuf.Writer;
14837
- public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.WASARootSecretAction.RootSecretEntry;
14838
- public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.WASARootSecretAction.RootSecretEntry;
14839
- public static toObject(m: proto.SyncActionValue.WASARootSecretAction.RootSecretEntry, o?: $protobuf.IConversionOptions): { [k: string]: any };
14840
- public toJSON(): { [k: string]: any };
14841
- public static getTypeUrl(typeUrlPrefix?: string): string;
14842
- }
14843
- }
14844
-
14845
14708
  interface IWaffleAccountLinkStateAction {
14846
14709
  linkState?: (proto.SyncActionValue.WaffleAccountLinkStateAction.AccountLinkState|null);
14847
14710
  }