@kaels/casileys 0.4.3 → 0.4.6

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 (70) hide show
  1. package/README.md +1099 -539
  2. package/WAProto/index.d.ts +237 -34
  3. package/WAProto/index.js +1729 -211
  4. package/lib/Defaults/index.d.ts +8 -2
  5. package/lib/Defaults/index.d.ts.map +1 -1
  6. package/lib/Defaults/index.js +12 -6
  7. package/lib/Defaults/index.js.map +1 -1
  8. package/lib/Socket/business.d.ts +1 -1
  9. package/lib/Socket/chats.d.ts +8 -1
  10. package/lib/Socket/chats.d.ts.map +1 -1
  11. package/lib/Socket/chats.js +13 -8
  12. package/lib/Socket/chats.js.map +1 -1
  13. package/lib/Socket/communities.d.ts +1 -1
  14. package/lib/Socket/groups.d.ts +1 -1
  15. package/lib/Socket/index.d.ts +1 -1
  16. package/lib/Socket/index.js +2 -19
  17. package/lib/Socket/messages-recv.d.ts +1 -1
  18. package/lib/Socket/messages-recv.js +21 -0
  19. package/lib/Socket/messages-send.d.ts +1 -1
  20. package/lib/Socket/newsletter.d.ts +1 -1
  21. package/lib/Socket/socket.d.ts.map +1 -1
  22. package/lib/Socket/socket.js +3 -0
  23. package/lib/Socket/socket.js.map +1 -1
  24. package/lib/Store/make-in-memory-store.js +2 -2
  25. package/lib/Utils/auth-utils.d.ts.map +1 -1
  26. package/lib/Utils/auth-utils.js +5 -1
  27. package/lib/Utils/auth-utils.js.map +1 -1
  28. package/lib/Utils/browser-utils.d.ts +2 -1
  29. package/lib/Utils/browser-utils.d.ts.map +1 -1
  30. package/lib/Utils/browser-utils.js +2 -1
  31. package/lib/Utils/browser-utils.js.map +1 -1
  32. package/lib/Utils/chat-utils.js +1 -1
  33. package/lib/Utils/decode-wa-message.d.ts.map +1 -1
  34. package/lib/Utils/decode-wa-message.js +6 -0
  35. package/lib/Utils/decode-wa-message.js.map +1 -1
  36. package/lib/Utils/event-buffer.js +1 -1
  37. package/lib/Utils/generics.d.ts +1 -1
  38. package/lib/Utils/generics.js +10 -10
  39. package/lib/Utils/group-status.d.ts +58 -0
  40. package/lib/Utils/group-status.js +477 -0
  41. package/lib/Utils/index.d.ts +1 -0
  42. package/lib/Utils/index.js +2 -0
  43. package/lib/Utils/index.js.map +1 -1
  44. package/lib/Utils/messages.d.ts +4 -4
  45. package/lib/Utils/messages.d.ts.map +1 -1
  46. package/lib/Utils/messages.js +32 -64
  47. package/lib/Utils/messages.js.map +1 -1
  48. package/lib/Utils/process-message.d.ts.map +1 -1
  49. package/lib/Utils/process-message.js.map +1 -1
  50. package/lib/Utils/rich-message-utils.d.ts +1 -1
  51. package/lib/Utils/rich-message-utils.d.ts.map +1 -1
  52. package/lib/Utils/rich-message-utils.js +124 -12
  53. package/lib/Utils/rich-message-utils.js.map +1 -1
  54. package/lib/Utils/tc-token-utils.d.ts.map +1 -1
  55. package/lib/Utils/tc-token-utils.js +3 -2
  56. package/lib/Utils/tc-token-utils.js.map +1 -1
  57. package/lib/Utils/use-single-file-auth-state.js +1 -1
  58. package/lib/Utils/use-sqlite-auth-state.d.ts +11 -0
  59. package/lib/Utils/use-sqlite-auth-state.d.ts.map +1 -0
  60. package/lib/Utils/use-sqlite-auth-state.js +109 -0
  61. package/lib/Utils/use-sqlite-auth-state.js.map +1 -0
  62. package/lib/Utils/validate-connection.d.ts.map +1 -1
  63. package/lib/Utils/validate-connection.js +9 -2
  64. package/lib/Utils/validate-connection.js.map +1 -1
  65. package/lib/WABinary/constants.d.ts +16 -0
  66. package/lib/WABinary/constants.d.ts.map +1 -1
  67. package/lib/WABinary/constants.js +99 -5
  68. package/lib/WABinary/constants.js.map +1 -1
  69. package/lib/WABinary/generic-utils.js +1 -1
  70. package/package.json +109 -105
@@ -221,6 +221,22 @@ export namespace proto {
221
221
  public static getTypeUrl(typeUrlPrefix?: string): string;
222
222
  }
223
223
 
224
+ interface IAIMetadataOperation {
225
+ hatchMetadataSync?: (proto.IHatchMetadataSync|null);
226
+ }
227
+
228
+ class AIMetadataOperation implements IAIMetadataOperation {
229
+ constructor(p?: proto.IAIMetadataOperation);
230
+ public hatchMetadataSync?: (proto.IHatchMetadataSync|null);
231
+ public static create(properties?: proto.IAIMetadataOperation): proto.AIMetadataOperation;
232
+ public static encode(m: proto.IAIMetadataOperation, w?: $protobuf.Writer): $protobuf.Writer;
233
+ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIMetadataOperation;
234
+ public static fromObject(d: { [k: string]: any }): proto.AIMetadataOperation;
235
+ public static toObject(m: proto.AIMetadataOperation, o?: $protobuf.IConversionOptions): { [k: string]: any };
236
+ public toJSON(): { [k: string]: any };
237
+ public static getTypeUrl(typeUrlPrefix?: string): string;
238
+ }
239
+
224
240
  interface IAIQueryFanout {
225
241
  messageKey?: (proto.IMessageKey|null);
226
242
  message?: (proto.IMessage|null);
@@ -1121,7 +1137,8 @@ export namespace proto {
1121
1137
  AI_SUBSCRIPTION_ENABLED = 61,
1122
1138
  UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED = 62,
1123
1139
  UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED = 63,
1124
- AI_RICH_RESPONSE_MAPS_V2_ENABLED = 64
1140
+ AI_RICH_RESPONSE_MAPS_V2_ENABLED = 64,
1141
+ AI_SUBSCRIPTION_METERING_ENABLED = 65
1125
1142
  }
1126
1143
  }
1127
1144
 
@@ -1732,6 +1749,7 @@ export namespace proto {
1732
1749
  commandMetadata?: (proto.IBotCommandMetadata|null);
1733
1750
  resolvedToolCallMetadata?: (proto.IBotResolvedToolCallMetadata|null);
1734
1751
  subscriptionUpsellMetadata?: (proto.IAISubscriptionUpsellMetadata|null);
1752
+ pttPromptMetadata?: (proto.IBotPttPromptMetadata|null);
1735
1753
  internalMetadata?: (Uint8Array|null);
1736
1754
  }
1737
1755
 
@@ -1777,6 +1795,7 @@ export namespace proto {
1777
1795
  public commandMetadata?: (proto.IBotCommandMetadata|null);
1778
1796
  public resolvedToolCallMetadata?: (proto.IBotResolvedToolCallMetadata|null);
1779
1797
  public subscriptionUpsellMetadata?: (proto.IAISubscriptionUpsellMetadata|null);
1798
+ public pttPromptMetadata?: (proto.IBotPttPromptMetadata|null);
1780
1799
  public internalMetadata?: (Uint8Array|null);
1781
1800
  public static create(properties?: proto.IBotMetadata): proto.BotMetadata;
1782
1801
  public static encode(m: proto.IBotMetadata, w?: $protobuf.Writer): $protobuf.Writer;
@@ -2182,6 +2201,22 @@ export namespace proto {
2182
2201
  public static getTypeUrl(typeUrlPrefix?: string): string;
2183
2202
  }
2184
2203
 
2204
+ interface IBotPttPromptMetadata {
2205
+ transcript?: (string|null);
2206
+ }
2207
+
2208
+ class BotPttPromptMetadata implements IBotPttPromptMetadata {
2209
+ constructor(p?: proto.IBotPttPromptMetadata);
2210
+ public transcript?: (string|null);
2211
+ public static create(properties?: proto.IBotPttPromptMetadata): proto.BotPttPromptMetadata;
2212
+ public static encode(m: proto.IBotPttPromptMetadata, w?: $protobuf.Writer): $protobuf.Writer;
2213
+ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotPttPromptMetadata;
2214
+ public static fromObject(d: { [k: string]: any }): proto.BotPttPromptMetadata;
2215
+ public static toObject(m: proto.BotPttPromptMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any };
2216
+ public toJSON(): { [k: string]: any };
2217
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2218
+ }
2219
+
2185
2220
  interface IBotQuotaMetadata {
2186
2221
  botFeatureQuotaMetadata?: (proto.BotQuotaMetadata.IBotFeatureQuotaMetadata[]|null);
2187
2222
  }
@@ -2416,7 +2451,8 @@ export namespace proto {
2416
2451
  enum BotSignatureUseCase {
2417
2452
  UNSPECIFIED = 0,
2418
2453
  WA_BOT_MSG = 1,
2419
- WA_TEE_BOT_MSG = 2
2454
+ WA_TEE_BOT_MSG = 2,
2455
+ P2P_PILLS = 3
2420
2456
  }
2421
2457
  }
2422
2458
 
@@ -3587,6 +3623,8 @@ export namespace proto {
3587
3623
  businessJid?: (string|null);
3588
3624
  pills?: (proto.ContextInfo.BusinessInteractionPills.IPill[]|null);
3589
3625
  entryPoint?: (proto.ContextInfo.BusinessInteractionPills.EntryPoint|null);
3626
+ signedPayload?: (Uint8Array|null);
3627
+ signatureEnvelope?: (proto.IBotSignatureVerificationMetadata|null);
3590
3628
  }
3591
3629
 
3592
3630
  class BusinessInteractionPills implements IBusinessInteractionPills {
@@ -3594,6 +3632,8 @@ export namespace proto {
3594
3632
  public businessJid?: (string|null);
3595
3633
  public pills: proto.ContextInfo.BusinessInteractionPills.IPill[];
3596
3634
  public entryPoint?: (proto.ContextInfo.BusinessInteractionPills.EntryPoint|null);
3635
+ public signedPayload?: (Uint8Array|null);
3636
+ public signatureEnvelope?: (proto.IBotSignatureVerificationMetadata|null);
3597
3637
  public static create(properties?: proto.ContextInfo.IBusinessInteractionPills): proto.ContextInfo.BusinessInteractionPills;
3598
3638
  public static encode(m: proto.ContextInfo.IBusinessInteractionPills, w?: $protobuf.Writer): $protobuf.Writer;
3599
3639
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.ContextInfo.BusinessInteractionPills;
@@ -3647,6 +3687,24 @@ export namespace proto {
3647
3687
  SHOP = 11,
3648
3688
  ORDER = 12
3649
3689
  }
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
+ }
3650
3708
  }
3651
3709
 
3652
3710
  interface IBusinessMessageForwardInfo {
@@ -4919,6 +4977,7 @@ export namespace proto {
4919
4977
  groupRootKey?: (Uint8Array|null);
4920
4978
  keyId?: (string|null);
4921
4979
  expiryTimestampMs?: (number|Long|null);
4980
+ createdTimestampMs?: (number|Long|null);
4922
4981
  }
4923
4982
 
4924
4983
  class GroupRootKeyShareEntry implements IGroupRootKeyShareEntry {
@@ -4926,6 +4985,7 @@ export namespace proto {
4926
4985
  public groupRootKey?: (Uint8Array|null);
4927
4986
  public keyId?: (string|null);
4928
4987
  public expiryTimestampMs?: (number|Long|null);
4988
+ public createdTimestampMs?: (number|Long|null);
4929
4989
  public static create(properties?: proto.IGroupRootKeyShareEntry): proto.GroupRootKeyShareEntry;
4930
4990
  public static encode(m: proto.IGroupRootKeyShareEntry, w?: $protobuf.Writer): $protobuf.Writer;
4931
4991
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.GroupRootKeyShareEntry;
@@ -5054,6 +5114,26 @@ export namespace proto {
5054
5114
  }
5055
5115
  }
5056
5116
 
5117
+ interface IHatchMetadataSync {
5118
+ data?: (Uint8Array|null);
5119
+ timestampMs?: (number|Long|null);
5120
+ requestId?: (string|null);
5121
+ }
5122
+
5123
+ class HatchMetadataSync implements IHatchMetadataSync {
5124
+ constructor(p?: proto.IHatchMetadataSync);
5125
+ public data?: (Uint8Array|null);
5126
+ public timestampMs?: (number|Long|null);
5127
+ public requestId?: (string|null);
5128
+ public static create(properties?: proto.IHatchMetadataSync): proto.HatchMetadataSync;
5129
+ public static encode(m: proto.IHatchMetadataSync, w?: $protobuf.Writer): $protobuf.Writer;
5130
+ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.HatchMetadataSync;
5131
+ public static fromObject(d: { [k: string]: any }): proto.HatchMetadataSync;
5132
+ public static toObject(m: proto.HatchMetadataSync, o?: $protobuf.IConversionOptions): { [k: string]: any };
5133
+ public toJSON(): { [k: string]: any };
5134
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5135
+ }
5136
+
5057
5137
  interface IHistorySync {
5058
5138
  syncType?: (proto.HistorySync.HistorySyncType|null);
5059
5139
  conversations?: (proto.IConversation[]|null);
@@ -5885,6 +5965,7 @@ export namespace proto {
5885
5965
  paymentReminderMessage?: (proto.Message.IPaymentReminderMessage|null);
5886
5966
  splitPaymentMessage?: (proto.Message.ISplitPaymentMessage|null);
5887
5967
  newsletterAdminProfileStatusMessage?: (proto.Message.IFutureProofMessage|null);
5968
+ rootSecretDistributeMessage?: (proto.Message.IRootSecretDistributeMessage|null);
5888
5969
  }
5889
5970
 
5890
5971
  class Message implements IMessage {
@@ -5995,6 +6076,7 @@ export namespace proto {
5995
6076
  public paymentReminderMessage?: (proto.Message.IPaymentReminderMessage|null);
5996
6077
  public splitPaymentMessage?: (proto.Message.ISplitPaymentMessage|null);
5997
6078
  public newsletterAdminProfileStatusMessage?: (proto.Message.IFutureProofMessage|null);
6079
+ public rootSecretDistributeMessage?: (proto.Message.IRootSecretDistributeMessage|null);
5998
6080
  public static create(properties?: proto.IMessage): proto.Message;
5999
6081
  public static encode(m: proto.IMessage, w?: $protobuf.Writer): $protobuf.Writer;
6000
6082
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message;
@@ -7588,6 +7670,7 @@ export namespace proto {
7588
7670
  uuid?: (string|null);
7589
7671
  data?: (string|null);
7590
7672
  type?: (string|null);
7673
+ fallback?: (string|null);
7591
7674
  }
7592
7675
 
7593
7676
  class BloksWidget implements IBloksWidget {
@@ -7595,6 +7678,7 @@ export namespace proto {
7595
7678
  public uuid?: (string|null);
7596
7679
  public data?: (string|null);
7597
7680
  public type?: (string|null);
7681
+ public fallback?: (string|null);
7598
7682
  public static create(properties?: proto.Message.InteractiveMessage.IBloksWidget): proto.Message.InteractiveMessage.BloksWidget;
7599
7683
  public static encode(m: proto.Message.InteractiveMessage.IBloksWidget, w?: $protobuf.Writer): $protobuf.Writer;
7600
7684
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.InteractiveMessage.BloksWidget;
@@ -9339,12 +9423,14 @@ export namespace proto {
9339
9423
  interface IPollAddOptionMessage {
9340
9424
  pollCreationMessageKey?: (proto.IMessageKey|null);
9341
9425
  addOption?: (proto.Message.PollCreationMessage.IOption|null);
9426
+ metadata?: (proto.Message.IPollUpdateMessageMetadata|null);
9342
9427
  }
9343
9428
 
9344
9429
  class PollAddOptionMessage implements IPollAddOptionMessage {
9345
9430
  constructor(p?: proto.Message.IPollAddOptionMessage);
9346
9431
  public pollCreationMessageKey?: (proto.IMessageKey|null);
9347
9432
  public addOption?: (proto.Message.PollCreationMessage.IOption|null);
9433
+ public metadata?: (proto.Message.IPollUpdateMessageMetadata|null);
9348
9434
  public static create(properties?: proto.Message.IPollAddOptionMessage): proto.Message.PollAddOptionMessage;
9349
9435
  public static encode(m: proto.Message.IPollAddOptionMessage, w?: $protobuf.Writer): $protobuf.Writer;
9350
9436
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PollAddOptionMessage;
@@ -9506,10 +9592,14 @@ export namespace proto {
9506
9592
  }
9507
9593
 
9508
9594
  interface IPollUpdateMessageMetadata {
9595
+ pollNameHash?: (Uint8Array|null);
9596
+ lastEditStanzaId?: (string|null);
9509
9597
  }
9510
9598
 
9511
9599
  class PollUpdateMessageMetadata implements IPollUpdateMessageMetadata {
9512
9600
  constructor(p?: proto.Message.IPollUpdateMessageMetadata);
9601
+ public pollNameHash?: (Uint8Array|null);
9602
+ public lastEditStanzaId?: (string|null);
9513
9603
  public static create(properties?: proto.Message.IPollUpdateMessageMetadata): proto.Message.PollUpdateMessageMetadata;
9514
9604
  public static encode(m: proto.Message.IPollUpdateMessageMetadata, w?: $protobuf.Writer): $protobuf.Writer;
9515
9605
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.PollUpdateMessageMetadata;
@@ -9650,6 +9740,7 @@ export namespace proto {
9650
9740
  aiMediaCollectionMessage?: (proto.IAIMediaCollectionMessage|null);
9651
9741
  afterReadDuration?: (number|null);
9652
9742
  chatThemeSetting?: (proto.Message.IChatThemeSetting|null);
9743
+ aiMetadataOperation?: (proto.IAIMetadataOperation|null);
9653
9744
  }
9654
9745
 
9655
9746
  class ProtocolMessage implements IProtocolMessage {
@@ -9681,6 +9772,7 @@ export namespace proto {
9681
9772
  public aiMediaCollectionMessage?: (proto.IAIMediaCollectionMessage|null);
9682
9773
  public afterReadDuration?: (number|null);
9683
9774
  public chatThemeSetting?: (proto.Message.IChatThemeSetting|null);
9775
+ public aiMetadataOperation?: (proto.IAIMetadataOperation|null);
9684
9776
  public static create(properties?: proto.Message.IProtocolMessage): proto.Message.ProtocolMessage;
9685
9777
  public static encode(m: proto.Message.IProtocolMessage, w?: $protobuf.Writer): $protobuf.Writer;
9686
9778
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.ProtocolMessage;
@@ -9721,7 +9813,8 @@ export namespace proto {
9721
9813
  GROUP_MEMBER_LABEL_CHANGE = 30,
9722
9814
  AI_MEDIA_COLLECTION_MESSAGE = 31,
9723
9815
  MESSAGE_UNSCHEDULE = 32,
9724
- CHAT_THEME_SETTING = 34
9816
+ CHAT_THEME_SETTING = 34,
9817
+ AI_METADATA_OPERATION = 35
9725
9818
  }
9726
9819
  }
9727
9820
 
@@ -9842,6 +9935,22 @@ export namespace proto {
9842
9935
  }
9843
9936
  }
9844
9937
 
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
+
9845
9954
  interface IScheduledCallCreationMessage {
9846
9955
  scheduledTimestampMs?: (number|Long|null);
9847
9956
  callType?: (proto.Message.ScheduledCallCreationMessage.CallType|null);
@@ -10827,6 +10936,14 @@ export namespace proto {
10827
10936
  pollEndTime?: (number|Long|null);
10828
10937
  pollHideVoterNames?: (boolean|null);
10829
10938
  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);
10830
10947
  }
10831
10948
 
10832
10949
  class MsgOpaqueData implements IMsgOpaqueData {
@@ -10878,6 +10995,14 @@ export namespace proto {
10878
10995
  public pollEndTime?: (number|Long|null);
10879
10996
  public pollHideVoterNames?: (boolean|null);
10880
10997
  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);
10881
11006
  public static create(properties?: proto.IMsgOpaqueData): proto.MsgOpaqueData;
10882
11007
  public static encode(m: proto.IMsgOpaqueData, w?: $protobuf.Writer): $protobuf.Writer;
10883
11008
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.MsgOpaqueData;
@@ -11079,6 +11204,8 @@ export namespace proto {
11079
11204
  THREAD_PIN_ACTION = 85,
11080
11205
  AUTO_ORGANIZE_BUSINESS_CHAT_SETTING = 86,
11081
11206
  BIZ_AI_SETTINGS_NUDGE_ACTION = 87,
11207
+ COEX_V2_VERSION_ACTION = 88,
11208
+ WASA_ROOT_SECRET_ACTION = 89,
11082
11209
  SHARE_OWN_PN = 10001,
11083
11210
  BUSINESS_BROADCAST_ACTION = 10002,
11084
11211
  AI_THREAD_DELETE_ACTION = 10003
@@ -11556,11 +11683,13 @@ export namespace proto {
11556
11683
 
11557
11684
  interface IPollAdditionalMetadata {
11558
11685
  pollInvalidated?: (boolean|null);
11686
+ pollNameHashHistory?: (proto.PollAdditionalMetadata.IPollNameHashHistoryEntry[]|null);
11559
11687
  }
11560
11688
 
11561
11689
  class PollAdditionalMetadata implements IPollAdditionalMetadata {
11562
11690
  constructor(p?: proto.IPollAdditionalMetadata);
11563
11691
  public pollInvalidated?: (boolean|null);
11692
+ public pollNameHashHistory: proto.PollAdditionalMetadata.IPollNameHashHistoryEntry[];
11564
11693
  public static create(properties?: proto.IPollAdditionalMetadata): proto.PollAdditionalMetadata;
11565
11694
  public static encode(m: proto.IPollAdditionalMetadata, w?: $protobuf.Writer): $protobuf.Writer;
11566
11695
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.PollAdditionalMetadata;
@@ -11570,6 +11699,27 @@ export namespace proto {
11570
11699
  public static getTypeUrl(typeUrlPrefix?: string): string;
11571
11700
  }
11572
11701
 
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
+
11573
11723
  interface IPollEncValue {
11574
11724
  encPayload?: (Uint8Array|null);
11575
11725
  encIv?: (Uint8Array|null);
@@ -11594,6 +11744,7 @@ export namespace proto {
11594
11744
  senderTimestampMs?: (number|Long|null);
11595
11745
  serverTimestampMs?: (number|Long|null);
11596
11746
  unread?: (boolean|null);
11747
+ metadata?: (proto.Message.IPollUpdateMessageMetadata|null);
11597
11748
  }
11598
11749
 
11599
11750
  class PollUpdate implements IPollUpdate {
@@ -11603,6 +11754,7 @@ export namespace proto {
11603
11754
  public senderTimestampMs?: (number|Long|null);
11604
11755
  public serverTimestampMs?: (number|Long|null);
11605
11756
  public unread?: (boolean|null);
11757
+ public metadata?: (proto.Message.IPollUpdateMessageMetadata|null);
11606
11758
  public static create(properties?: proto.IPollUpdate): proto.PollUpdate;
11607
11759
  public static encode(m: proto.IPollUpdate, w?: $protobuf.Writer): $protobuf.Writer;
11608
11760
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.PollUpdate;
@@ -12700,6 +12852,8 @@ export namespace proto {
12700
12852
  threadPinAction?: (proto.SyncActionValue.IThreadPinAction|null);
12701
12853
  autoOrganizeBusinessChatSetting?: (proto.SyncActionValue.IAutoOrganizeBusinessChatSetting|null);
12702
12854
  bizAiSettingsNudgeAction?: (proto.SyncActionValue.IBizAISettingsNudgeAction|null);
12855
+ coexV2VersionAction?: (proto.SyncActionValue.ICoexV2VersionAction|null);
12856
+ wasaRootSecretAction?: (proto.SyncActionValue.IWASARootSecretAction|null);
12703
12857
  }
12704
12858
 
12705
12859
  class SyncActionValue implements ISyncActionValue {
@@ -12782,6 +12936,8 @@ export namespace proto {
12782
12936
  public threadPinAction?: (proto.SyncActionValue.IThreadPinAction|null);
12783
12937
  public autoOrganizeBusinessChatSetting?: (proto.SyncActionValue.IAutoOrganizeBusinessChatSetting|null);
12784
12938
  public bizAiSettingsNudgeAction?: (proto.SyncActionValue.IBizAISettingsNudgeAction|null);
12939
+ public coexV2VersionAction?: (proto.SyncActionValue.ICoexV2VersionAction|null);
12940
+ public wasaRootSecretAction?: (proto.SyncActionValue.IWASARootSecretAction|null);
12785
12941
  public static create(properties?: proto.ISyncActionValue): proto.SyncActionValue;
12786
12942
  public static encode(m: proto.ISyncActionValue, w?: $protobuf.Writer): $protobuf.Writer;
12787
12943
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue;
@@ -12795,14 +12951,14 @@ export namespace proto {
12795
12951
 
12796
12952
  interface IAgentAction {
12797
12953
  name?: (string|null);
12798
- deviceID?: (number|null);
12954
+ deviceId?: (number|null);
12799
12955
  isDeleted?: (boolean|null);
12800
12956
  }
12801
12957
 
12802
12958
  class AgentAction implements IAgentAction {
12803
12959
  constructor(p?: proto.SyncActionValue.IAgentAction);
12804
12960
  public name?: (string|null);
12805
- public deviceID?: (number|null);
12961
+ public deviceId?: (number|null);
12806
12962
  public isDeleted?: (boolean|null);
12807
12963
  public static create(properties?: proto.SyncActionValue.IAgentAction): proto.SyncActionValue.AgentAction;
12808
12964
  public static encode(m: proto.SyncActionValue.IAgentAction, w?: $protobuf.Writer): $protobuf.Writer;
@@ -13093,12 +13249,12 @@ export namespace proto {
13093
13249
  }
13094
13250
 
13095
13251
  interface IChatAssignmentAction {
13096
- deviceAgentID?: (string|null);
13252
+ deviceAgentId?: (string|null);
13097
13253
  }
13098
13254
 
13099
13255
  class ChatAssignmentAction implements IChatAssignmentAction {
13100
13256
  constructor(p?: proto.SyncActionValue.IChatAssignmentAction);
13101
- public deviceAgentID?: (string|null);
13257
+ public deviceAgentId?: (string|null);
13102
13258
  public static create(properties?: proto.SyncActionValue.IChatAssignmentAction): proto.SyncActionValue.ChatAssignmentAction;
13103
13259
  public static encode(m: proto.SyncActionValue.IChatAssignmentAction, w?: $protobuf.Writer): $protobuf.Writer;
13104
13260
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.ChatAssignmentAction;
@@ -13140,6 +13296,22 @@ export namespace proto {
13140
13296
  public static getTypeUrl(typeUrlPrefix?: string): string;
13141
13297
  }
13142
13298
 
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
+
13143
13315
  interface IContactAction {
13144
13316
  fullName?: (string|null);
13145
13317
  firstName?: (string|null);
@@ -13436,13 +13608,13 @@ export namespace proto {
13436
13608
 
13437
13609
  interface ILabelAssociationAction {
13438
13610
  labeled?: (boolean|null);
13439
- modelMetaData?: (proto.SyncActionValue.IModelMetadata[]|null);
13611
+ modelMetaData?: (string|null);
13440
13612
  }
13441
13613
 
13442
13614
  class LabelAssociationAction implements ILabelAssociationAction {
13443
13615
  constructor(p?: proto.SyncActionValue.ILabelAssociationAction);
13444
13616
  public labeled?: (boolean|null);
13445
- public modelMetaData: proto.SyncActionValue.IModelMetadata[];
13617
+ public modelMetaData?: (string|null);
13446
13618
  public static create(properties?: proto.SyncActionValue.ILabelAssociationAction): proto.SyncActionValue.LabelAssociationAction;
13447
13619
  public static encode(m: proto.SyncActionValue.ILabelAssociationAction, w?: $protobuf.Writer): $protobuf.Writer;
13448
13620
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.LabelAssociationAction;
@@ -13498,7 +13670,11 @@ export namespace proto {
13498
13670
  DRAFTED = 8,
13499
13671
  AI_HANDOFF = 9,
13500
13672
  CHANNELS = 10,
13501
- AI_RESPONDING = 11
13673
+ AI_RESPONDING = 11,
13674
+ ARCHIVED = 12,
13675
+ LOCKED = 13,
13676
+ INVITES = 14,
13677
+ THIRD_PARTY = 15
13502
13678
  }
13503
13679
  }
13504
13680
 
@@ -13572,11 +13748,13 @@ export namespace proto {
13572
13748
 
13573
13749
  interface IMaibaAIFeaturesControlAction {
13574
13750
  aiFeatureStatus?: (proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIFeatureStatus|null);
13751
+ aiReplyMode?: (proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIReplyMode|null);
13575
13752
  }
13576
13753
 
13577
13754
  class MaibaAIFeaturesControlAction implements IMaibaAIFeaturesControlAction {
13578
13755
  constructor(p?: proto.SyncActionValue.IMaibaAIFeaturesControlAction);
13579
13756
  public aiFeatureStatus?: (proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIFeatureStatus|null);
13757
+ public aiReplyMode?: (proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIReplyMode|null);
13580
13758
  public static create(properties?: proto.SyncActionValue.IMaibaAIFeaturesControlAction): proto.SyncActionValue.MaibaAIFeaturesControlAction;
13581
13759
  public static encode(m: proto.SyncActionValue.IMaibaAIFeaturesControlAction, w?: $protobuf.Writer): $protobuf.Writer;
13582
13760
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.MaibaAIFeaturesControlAction;
@@ -13593,6 +13771,12 @@ export namespace proto {
13593
13771
  ENABLED_HAS_LEARNING = 1,
13594
13772
  DISABLED = 2
13595
13773
  }
13774
+
13775
+ enum MaibaAIReplyMode {
13776
+ MUTED = 0,
13777
+ AI_AGENT = 1,
13778
+ SUGGESTIONS = 2
13779
+ }
13596
13780
  }
13597
13781
 
13598
13782
  interface IMarkChatAsReadAction {
@@ -13694,26 +13878,6 @@ export namespace proto {
13694
13878
  }
13695
13879
  }
13696
13880
 
13697
- interface IModelMetadata {
13698
- modelName?: (string|null);
13699
- isLatestModel?: (boolean|null);
13700
- isDetected?: (boolean|null);
13701
- }
13702
-
13703
- class ModelMetadata implements IModelMetadata {
13704
- constructor(p?: proto.SyncActionValue.IModelMetadata);
13705
- public modelName?: (string|null);
13706
- public isLatestModel?: (boolean|null);
13707
- public isDetected?: (boolean|null);
13708
- public static create(properties?: proto.SyncActionValue.IModelMetadata): proto.SyncActionValue.ModelMetadata;
13709
- public static encode(m: proto.SyncActionValue.IModelMetadata, w?: $protobuf.Writer): $protobuf.Writer;
13710
- public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.SyncActionValue.ModelMetadata;
13711
- public static fromObject(d: { [k: string]: any }): proto.SyncActionValue.ModelMetadata;
13712
- public static toObject(m: proto.SyncActionValue.ModelMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any };
13713
- public toJSON(): { [k: string]: any };
13714
- public static getTypeUrl(typeUrlPrefix?: string): string;
13715
- }
13716
-
13717
13881
  interface IMusicUserIdAction {
13718
13882
  musicUserId?: (string|null);
13719
13883
  musicUserIdMap?: ({ [k: string]: string }|null);
@@ -14306,8 +14470,8 @@ export namespace proto {
14306
14470
  interface IStatusPrivacyAction {
14307
14471
  mode?: (proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode|null);
14308
14472
  userJid?: (string[]|null);
14309
- shareToFB?: (boolean|null);
14310
- shareToIG?: (boolean|null);
14473
+ shareToFb?: (boolean|null);
14474
+ shareToIg?: (boolean|null);
14311
14475
  customLists?: (proto.SyncActionValue.StatusPrivacyAction.ICustomList[]|null);
14312
14476
  modes?: (proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode[]|null);
14313
14477
  }
@@ -14316,8 +14480,8 @@ export namespace proto {
14316
14480
  constructor(p?: proto.SyncActionValue.IStatusPrivacyAction);
14317
14481
  public mode?: (proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode|null);
14318
14482
  public userJid: string[];
14319
- public shareToFB?: (boolean|null);
14320
- public shareToIG?: (boolean|null);
14483
+ public shareToFb?: (boolean|null);
14484
+ public shareToIg?: (boolean|null);
14321
14485
  public customLists: proto.SyncActionValue.StatusPrivacyAction.ICustomList[];
14322
14486
  public modes: proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode[];
14323
14487
  public static create(properties?: proto.SyncActionValue.IStatusPrivacyAction): proto.SyncActionValue.StatusPrivacyAction;
@@ -14639,6 +14803,45 @@ export namespace proto {
14639
14803
  }
14640
14804
  }
14641
14805
 
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
+
14642
14845
  interface IWaffleAccountLinkStateAction {
14643
14846
  linkState?: (proto.SyncActionValue.WaffleAccountLinkStateAction.AccountLinkState|null);
14644
14847
  }