sanka-baileyss 2.3.2 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/WAProto/BotMetadata/BotMetadata.d.ts +594 -1
  2. package/WAProto/BotMetadata/BotMetadata.js +1910 -148
  3. package/WAProto/BotMetadata/BotMetadata.proto +36 -0
  4. package/WAProto/E2E/E2E.d.ts +570 -6
  5. package/WAProto/E2E/E2E.js +1591 -26
  6. package/WAProto/E2E/E2E.proto +10 -1
  7. package/WAProto/HistorySync/HistorySync.d.ts +806 -6
  8. package/WAProto/HistorySync/HistorySync.js +2193 -29
  9. package/WAProto/HistorySync/HistorySync.proto +2 -1
  10. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +570 -6
  11. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +1591 -26
  12. package/WAProto/StatusAttributions/StatusAttributions.d.ts +2 -1
  13. package/WAProto/StatusAttributions/StatusAttributions.js +7 -0
  14. package/WAProto/StatusAttributions/StatusAttributions.proto +1 -0
  15. package/WAProto/SyncAction/SyncAction.d.ts +230 -0
  16. package/WAProto/SyncAction/SyncAction.js +578 -2
  17. package/WAProto/SyncAction/SyncAction.proto +13 -1
  18. package/WAProto/Web/Web.d.ts +570 -6
  19. package/WAProto/Web/Web.js +1591 -26
  20. package/lib/Defaults/baileys-version.json +2 -2
  21. package/lib/Defaults/index.d.ts +42 -25
  22. package/lib/Defaults/index.js +6 -2
  23. package/lib/Signal/libsignal.d.ts +1 -0
  24. package/lib/Socket/Client/index.js +13 -9
  25. package/lib/Socket/Client/types.d.ts +11 -10
  26. package/lib/Socket/Client/types.js +11 -7
  27. package/lib/Socket/Client/websocket.d.ts +9 -8
  28. package/lib/Socket/Client/websocket.js +52 -47
  29. package/lib/Socket/business.d.ts +185 -182
  30. package/lib/Socket/business.js +258 -249
  31. package/lib/Socket/chats.d.ts +90 -87
  32. package/lib/Socket/chats.js +1095 -888
  33. package/lib/Socket/community.d.ts +131 -0
  34. package/lib/Socket/community.js +369 -0
  35. package/lib/Socket/groups.d.ts +50 -41
  36. package/lib/Socket/groups.js +10 -3
  37. package/lib/Socket/index.d.ts +5 -1
  38. package/lib/Socket/index.js +19 -5
  39. package/lib/Socket/messages-recv.d.ts +6 -2
  40. package/lib/Socket/messages-recv.js +31 -8
  41. package/lib/Socket/messages-send.d.ts +5 -1
  42. package/lib/Socket/messages-send.js +1293 -1351
  43. package/lib/Socket/newsletter.d.ts +142 -135
  44. package/lib/Socket/newsletter.js +274 -230
  45. package/lib/Socket/socket.d.ts +37 -35
  46. package/lib/Socket/usync.d.ts +31 -30
  47. package/lib/Socket/usync.js +74 -62
  48. package/lib/Types/Auth.d.ts +89 -72
  49. package/lib/Types/Auth.js +1 -0
  50. package/lib/Types/Call.d.ts +11 -10
  51. package/lib/Types/Call.js +1 -0
  52. package/lib/Types/Chat.d.ts +85 -62
  53. package/lib/Types/Chat.js +4 -1
  54. package/lib/Types/Contact.js +1 -0
  55. package/lib/Types/Events.d.ts +209 -191
  56. package/lib/Types/Events.js +1 -0
  57. package/lib/Types/GroupMetadata.d.ts +12 -27
  58. package/lib/Types/GroupMetadata.js +1 -0
  59. package/lib/Types/Label.d.ts +41 -39
  60. package/lib/Types/Label.js +24 -21
  61. package/lib/Types/LabelAssociation.d.ts +18 -12
  62. package/lib/Types/LabelAssociation.js +6 -3
  63. package/lib/Types/Message.d.ts +3 -2
  64. package/lib/Types/Message.js +7 -3
  65. package/lib/Types/MexUpdates.d.ts +9 -0
  66. package/lib/Types/MexUpdates.js +18 -0
  67. package/lib/Types/Newsletter.d.ts +84 -67
  68. package/lib/Types/Newsletter.js +30 -23
  69. package/lib/Types/Product.d.ts +70 -56
  70. package/lib/Types/Product.js +1 -0
  71. package/lib/Types/Signal.d.ts +46 -35
  72. package/lib/Types/Signal.js +1 -0
  73. package/lib/Types/Socket.d.ts +105 -101
  74. package/lib/Types/Socket.js +1 -0
  75. package/lib/Types/State.d.ts +37 -23
  76. package/lib/Types/State.js +13 -1
  77. package/lib/Types/USync.d.ts +21 -20
  78. package/lib/Types/USync.js +1 -0
  79. package/lib/Types/index.d.ts +51 -42
  80. package/lib/Types/index.js +25 -19
  81. package/lib/Utils/auth-utils.d.ts +14 -11
  82. package/lib/Utils/auth-utils.js +189 -182
  83. package/lib/Utils/baileys-event-stream.d.ts +12 -10
  84. package/lib/Utils/baileys-event-stream.js +52 -46
  85. package/lib/Utils/business.d.ts +15 -8
  86. package/lib/Utils/business.js +229 -217
  87. package/lib/Utils/chat-utils.d.ts +22 -12
  88. package/lib/Utils/chat-utils.js +57 -27
  89. package/lib/Utils/crypto.d.ts +31 -15
  90. package/lib/Utils/crypto.js +136 -107
  91. package/lib/Utils/decode-wa-message.d.ts +34 -245
  92. package/lib/Utils/decode-wa-message.js +205 -217
  93. package/lib/Utils/event-buffer.d.ts +30 -26
  94. package/lib/Utils/event-buffer.js +519 -515
  95. package/lib/Utils/history.d.ts +2 -8
  96. package/lib/Utils/index.js +13 -9
  97. package/lib/Utils/link-preview.d.ts +16 -14
  98. package/lib/Utils/link-preview.js +100 -92
  99. package/lib/Utils/logger.d.ts +9 -7
  100. package/lib/Utils/logger.js +1 -1
  101. package/lib/Utils/lt-hash.d.ts +10 -8
  102. package/lib/Utils/lt-hash.js +49 -44
  103. package/lib/Utils/make-mutex.d.ts +4 -2
  104. package/lib/Utils/make-mutex.js +43 -39
  105. package/lib/Utils/messages-media.d.ts +75 -50
  106. package/lib/Utils/messages.d.ts +60 -35
  107. package/lib/Utils/messages.js +87 -8
  108. package/lib/Utils/noise-handler.d.ts +13 -12
  109. package/lib/Utils/noise-handler.js +143 -138
  110. package/lib/Utils/process-message.d.ts +32 -24
  111. package/lib/Utils/process-message.js +387 -367
  112. package/lib/Utils/signal.d.ts +24 -15
  113. package/lib/Utils/signal.js +143 -131
  114. package/lib/Utils/use-mongo-file-auth-state.d.ts +3 -2
  115. package/lib/Utils/use-mongo-file-auth-state.js +72 -63
  116. package/lib/Utils/use-multi-file-auth-state.d.ts +9 -8
  117. package/lib/Utils/use-multi-file-auth-state.js +110 -102
  118. package/lib/Utils/use-single-file-auth-state.d.ts +8 -7
  119. package/lib/Utils/use-single-file-auth-state.js +66 -61
  120. package/lib/Utils/validate-connection.d.ts +5 -2
  121. package/lib/Utils/validate-connection.js +7 -6
  122. package/lib/WABinary/constants.d.ts +24 -21
  123. package/lib/WABinary/constants.js +1302 -31
  124. package/lib/WABinary/decode.d.ts +4 -1
  125. package/lib/WABinary/decode.js +267 -234
  126. package/lib/WABinary/encode.d.ts +1 -0
  127. package/lib/WABinary/encode.js +248 -226
  128. package/lib/WABinary/generic-utils.d.ts +13 -1
  129. package/lib/WABinary/generic-utils.js +113 -96
  130. package/lib/WABinary/index.js +13 -9
  131. package/lib/WABinary/jid-utils.d.ts +23 -4
  132. package/lib/WABinary/jid-utils.js +58 -39
  133. package/lib/WABinary/types.d.ts +15 -11
  134. package/lib/WABinary/types.js +1 -0
  135. package/lib/WAM/BinaryInfo.d.ts +14 -14
  136. package/lib/WAM/BinaryInfo.js +11 -8
  137. package/lib/WAM/constants.d.ts +34 -26
  138. package/lib/WAM/constants.js +15358 -15349
  139. package/lib/WAM/encode.d.ts +1 -0
  140. package/lib/WAM/encode.js +153 -144
  141. package/lib/WAM/index.js +13 -9
  142. package/lib/index.js +11 -11
  143. package/package.json +1 -2
  144. package/WASignalGroup/GroupProtocol.js +0 -1771
  145. package/WASignalGroup/ciphertext_message.js +0 -10
  146. package/WASignalGroup/group_cipher.js +0 -103
  147. package/WASignalGroup/group_session_builder.js +0 -39
  148. package/WASignalGroup/index.js +0 -5
  149. package/WASignalGroup/keyhelper.js +0 -17
  150. package/WASignalGroup/protobufs.js +0 -2
  151. package/WASignalGroup/queue_job.js +0 -64
  152. package/WASignalGroup/sender_chain_key.js +0 -38
  153. package/WASignalGroup/sender_key_distribution_message.js +0 -68
  154. package/WASignalGroup/sender_key_message.js +0 -79
  155. package/WASignalGroup/sender_key_name.js +0 -59
  156. package/WASignalGroup/sender_key_record.js +0 -47
  157. package/WASignalGroup/sender_key_state.js +0 -110
  158. package/WASignalGroup/sender_message_key.js +0 -30
@@ -7972,6 +7972,9 @@ export namespace E2E {
7972
7972
 
7973
7973
  /** ExternalAdReplyInfo wtwaWebsiteUrl */
7974
7974
  wtwaWebsiteUrl?: (string|null);
7975
+
7976
+ /** ExternalAdReplyInfo adPreviewUrl */
7977
+ adPreviewUrl?: (string|null);
7975
7978
  }
7976
7979
 
7977
7980
  /** Represents an ExternalAdReplyInfo. */
@@ -8061,6 +8064,9 @@ export namespace E2E {
8061
8064
  /** ExternalAdReplyInfo wtwaWebsiteUrl. */
8062
8065
  public wtwaWebsiteUrl: string;
8063
8066
 
8067
+ /** ExternalAdReplyInfo adPreviewUrl. */
8068
+ public adPreviewUrl: string;
8069
+
8064
8070
  /**
8065
8071
  * Creates a new ExternalAdReplyInfo instance using the specified properties.
8066
8072
  * @param [properties] Properties to set
@@ -16061,6 +16067,9 @@ export namespace E2E {
16061
16067
 
16062
16068
  /** CarouselMessage messageVersion */
16063
16069
  messageVersion?: (number|null);
16070
+
16071
+ /** CarouselMessage carouselCardType */
16072
+ carouselCardType?: (E2E.Message.InteractiveMessage.CarouselMessage.CarouselCardType|null);
16064
16073
  }
16065
16074
 
16066
16075
  /** Represents a CarouselMessage. */
@@ -16078,6 +16087,9 @@ export namespace E2E {
16078
16087
  /** CarouselMessage messageVersion. */
16079
16088
  public messageVersion: number;
16080
16089
 
16090
+ /** CarouselMessage carouselCardType. */
16091
+ public carouselCardType: E2E.Message.InteractiveMessage.CarouselMessage.CarouselCardType;
16092
+
16081
16093
  /**
16082
16094
  * Creates a new CarouselMessage instance using the specified properties.
16083
16095
  * @param [properties] Properties to set
@@ -16156,6 +16168,15 @@ export namespace E2E {
16156
16168
  public static getTypeUrl(typeUrlPrefix?: string): string;
16157
16169
  }
16158
16170
 
16171
+ namespace CarouselMessage {
16172
+
16173
+ /** CarouselCardType enum. */
16174
+ enum CarouselCardType {
16175
+ DEFAULT = 0,
16176
+ ALBUM = 1
16177
+ }
16178
+ }
16179
+
16159
16180
  /** Properties of a CollectionMessage. */
16160
16181
  interface ICollectionMessage {
16161
16182
 
@@ -19192,8 +19213,8 @@ export namespace E2E {
19192
19213
  /** MessageHistoryMetadata historyReceivers */
19193
19214
  historyReceivers?: (string[]|null);
19194
19215
 
19195
- /** MessageHistoryMetadata firstMessageTimestamp */
19196
- firstMessageTimestamp?: (number|Long|null);
19216
+ /** MessageHistoryMetadata oldestMessageTimestamp */
19217
+ oldestMessageTimestamp?: (number|Long|null);
19197
19218
 
19198
19219
  /** MessageHistoryMetadata messageCount */
19199
19220
  messageCount?: (number|Long|null);
@@ -19211,8 +19232,8 @@ export namespace E2E {
19211
19232
  /** MessageHistoryMetadata historyReceivers. */
19212
19233
  public historyReceivers: string[];
19213
19234
 
19214
- /** MessageHistoryMetadata firstMessageTimestamp. */
19215
- public firstMessageTimestamp: (number|Long);
19235
+ /** MessageHistoryMetadata oldestMessageTimestamp. */
19236
+ public oldestMessageTimestamp: (number|Long);
19216
19237
 
19217
19238
  /** MessageHistoryMetadata messageCount. */
19218
19239
  public messageCount: (number|Long);
@@ -21276,6 +21297,12 @@ export namespace E2E {
21276
21297
 
21277
21298
  /** CompanionCanonicalUserNonceFetchResponse nonce */
21278
21299
  nonce?: (string|null);
21300
+
21301
+ /** CompanionCanonicalUserNonceFetchResponse waFbid */
21302
+ waFbid?: (string|null);
21303
+
21304
+ /** CompanionCanonicalUserNonceFetchResponse forceRefresh */
21305
+ forceRefresh?: (boolean|null);
21279
21306
  }
21280
21307
 
21281
21308
  /** Represents a CompanionCanonicalUserNonceFetchResponse. */
@@ -21290,6 +21317,12 @@ export namespace E2E {
21290
21317
  /** CompanionCanonicalUserNonceFetchResponse nonce. */
21291
21318
  public nonce: string;
21292
21319
 
21320
+ /** CompanionCanonicalUserNonceFetchResponse waFbid. */
21321
+ public waFbid: string;
21322
+
21323
+ /** CompanionCanonicalUserNonceFetchResponse forceRefresh. */
21324
+ public forceRefresh: boolean;
21325
+
21293
21326
  /**
21294
21327
  * Creates a new CompanionCanonicalUserNonceFetchResponse instance using the specified properties.
21295
21328
  * @param [properties] Properties to set
@@ -24970,6 +25003,9 @@ export namespace E2E {
24970
25003
 
24971
25004
  /** SendPaymentMessage background */
24972
25005
  background?: (E2E.IPaymentBackground|null);
25006
+
25007
+ /** SendPaymentMessage transactionData */
25008
+ transactionData?: (string|null);
24973
25009
  }
24974
25010
 
24975
25011
  /** Represents a SendPaymentMessage. */
@@ -24990,6 +25026,9 @@ export namespace E2E {
24990
25026
  /** SendPaymentMessage background. */
24991
25027
  public background?: (E2E.IPaymentBackground|null);
24992
25028
 
25029
+ /** SendPaymentMessage transactionData. */
25030
+ public transactionData: string;
25031
+
24993
25032
  /**
24994
25033
  * Creates a new SendPaymentMessage instance using the specified properties.
24995
25034
  * @param [properties] Properties to set
@@ -28067,6 +28106,9 @@ export namespace BotMetadata {
28067
28106
 
28068
28107
  /** BotMetadata botMessageOriginMetadata */
28069
28108
  botMessageOriginMetadata?: (BotMetadata.IBotMessageOriginMetadata|null);
28109
+
28110
+ /** BotMetadata inThreadSurveyMetadata */
28111
+ inThreadSurveyMetadata?: (BotMetadata.IInThreadSurveyMetadata|null);
28070
28112
  }
28071
28113
 
28072
28114
  /** Represents a BotMetadata. */
@@ -28165,6 +28207,9 @@ export namespace BotMetadata {
28165
28207
  /** BotMetadata botMessageOriginMetadata. */
28166
28208
  public botMessageOriginMetadata?: (BotMetadata.IBotMessageOriginMetadata|null);
28167
28209
 
28210
+ /** BotMetadata inThreadSurveyMetadata. */
28211
+ public inThreadSurveyMetadata?: (BotMetadata.IInThreadSurveyMetadata|null);
28212
+
28168
28213
  /**
28169
28214
  * Creates a new BotMetadata instance using the specified properties.
28170
28215
  * @param [properties] Properties to set
@@ -28642,6 +28687,523 @@ export namespace BotMetadata {
28642
28687
  public static getTypeUrl(typeUrlPrefix?: string): string;
28643
28688
  }
28644
28689
 
28690
+ /** Properties of an InThreadSurveyMetadata. */
28691
+ interface IInThreadSurveyMetadata {
28692
+
28693
+ /** InThreadSurveyMetadata tessaSessionId */
28694
+ tessaSessionId?: (string|null);
28695
+
28696
+ /** InThreadSurveyMetadata simonSessionId */
28697
+ simonSessionId?: (string|null);
28698
+
28699
+ /** InThreadSurveyMetadata simonSurveyId */
28700
+ simonSurveyId?: (string|null);
28701
+
28702
+ /** InThreadSurveyMetadata tessaRootId */
28703
+ tessaRootId?: (string|null);
28704
+
28705
+ /** InThreadSurveyMetadata requestId */
28706
+ requestId?: (string|null);
28707
+
28708
+ /** InThreadSurveyMetadata tessaEvent */
28709
+ tessaEvent?: (string|null);
28710
+
28711
+ /** InThreadSurveyMetadata invitationHeaderText */
28712
+ invitationHeaderText?: (string|null);
28713
+
28714
+ /** InThreadSurveyMetadata invitationBodyText */
28715
+ invitationBodyText?: (string|null);
28716
+
28717
+ /** InThreadSurveyMetadata invitationCtaText */
28718
+ invitationCtaText?: (string|null);
28719
+
28720
+ /** InThreadSurveyMetadata invitationCtaUrl */
28721
+ invitationCtaUrl?: (string|null);
28722
+
28723
+ /** InThreadSurveyMetadata surveyTitle */
28724
+ surveyTitle?: (string|null);
28725
+
28726
+ /** InThreadSurveyMetadata questions */
28727
+ questions?: (BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion[]|null);
28728
+
28729
+ /** InThreadSurveyMetadata surveyContinueButtonText */
28730
+ surveyContinueButtonText?: (string|null);
28731
+
28732
+ /** InThreadSurveyMetadata surveySubmitButtonText */
28733
+ surveySubmitButtonText?: (string|null);
28734
+
28735
+ /** InThreadSurveyMetadata privacyStatementFull */
28736
+ privacyStatementFull?: (string|null);
28737
+
28738
+ /** InThreadSurveyMetadata privacyStatementParts */
28739
+ privacyStatementParts?: (BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart[]|null);
28740
+
28741
+ /** InThreadSurveyMetadata feedbackToastText */
28742
+ feedbackToastText?: (string|null);
28743
+ }
28744
+
28745
+ /** Represents an InThreadSurveyMetadata. */
28746
+ class InThreadSurveyMetadata implements IInThreadSurveyMetadata {
28747
+
28748
+ /**
28749
+ * Constructs a new InThreadSurveyMetadata.
28750
+ * @param [properties] Properties to set
28751
+ */
28752
+ constructor(properties?: BotMetadata.IInThreadSurveyMetadata);
28753
+
28754
+ /** InThreadSurveyMetadata tessaSessionId. */
28755
+ public tessaSessionId: string;
28756
+
28757
+ /** InThreadSurveyMetadata simonSessionId. */
28758
+ public simonSessionId: string;
28759
+
28760
+ /** InThreadSurveyMetadata simonSurveyId. */
28761
+ public simonSurveyId: string;
28762
+
28763
+ /** InThreadSurveyMetadata tessaRootId. */
28764
+ public tessaRootId: string;
28765
+
28766
+ /** InThreadSurveyMetadata requestId. */
28767
+ public requestId: string;
28768
+
28769
+ /** InThreadSurveyMetadata tessaEvent. */
28770
+ public tessaEvent: string;
28771
+
28772
+ /** InThreadSurveyMetadata invitationHeaderText. */
28773
+ public invitationHeaderText: string;
28774
+
28775
+ /** InThreadSurveyMetadata invitationBodyText. */
28776
+ public invitationBodyText: string;
28777
+
28778
+ /** InThreadSurveyMetadata invitationCtaText. */
28779
+ public invitationCtaText: string;
28780
+
28781
+ /** InThreadSurveyMetadata invitationCtaUrl. */
28782
+ public invitationCtaUrl: string;
28783
+
28784
+ /** InThreadSurveyMetadata surveyTitle. */
28785
+ public surveyTitle: string;
28786
+
28787
+ /** InThreadSurveyMetadata questions. */
28788
+ public questions: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion[];
28789
+
28790
+ /** InThreadSurveyMetadata surveyContinueButtonText. */
28791
+ public surveyContinueButtonText: string;
28792
+
28793
+ /** InThreadSurveyMetadata surveySubmitButtonText. */
28794
+ public surveySubmitButtonText: string;
28795
+
28796
+ /** InThreadSurveyMetadata privacyStatementFull. */
28797
+ public privacyStatementFull: string;
28798
+
28799
+ /** InThreadSurveyMetadata privacyStatementParts. */
28800
+ public privacyStatementParts: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart[];
28801
+
28802
+ /** InThreadSurveyMetadata feedbackToastText. */
28803
+ public feedbackToastText: string;
28804
+
28805
+ /**
28806
+ * Creates a new InThreadSurveyMetadata instance using the specified properties.
28807
+ * @param [properties] Properties to set
28808
+ * @returns InThreadSurveyMetadata instance
28809
+ */
28810
+ public static create(properties?: BotMetadata.IInThreadSurveyMetadata): BotMetadata.InThreadSurveyMetadata;
28811
+
28812
+ /**
28813
+ * Encodes the specified InThreadSurveyMetadata message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.verify|verify} messages.
28814
+ * @param message InThreadSurveyMetadata message or plain object to encode
28815
+ * @param [writer] Writer to encode to
28816
+ * @returns Writer
28817
+ */
28818
+ public static encode(message: BotMetadata.IInThreadSurveyMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
28819
+
28820
+ /**
28821
+ * Encodes the specified InThreadSurveyMetadata message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.verify|verify} messages.
28822
+ * @param message InThreadSurveyMetadata message or plain object to encode
28823
+ * @param [writer] Writer to encode to
28824
+ * @returns Writer
28825
+ */
28826
+ public static encodeDelimited(message: BotMetadata.IInThreadSurveyMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
28827
+
28828
+ /**
28829
+ * Decodes an InThreadSurveyMetadata message from the specified reader or buffer.
28830
+ * @param reader Reader or buffer to decode from
28831
+ * @param [length] Message length if known beforehand
28832
+ * @returns InThreadSurveyMetadata
28833
+ * @throws {Error} If the payload is not a reader or valid buffer
28834
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28835
+ */
28836
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.InThreadSurveyMetadata;
28837
+
28838
+ /**
28839
+ * Decodes an InThreadSurveyMetadata message from the specified reader or buffer, length delimited.
28840
+ * @param reader Reader or buffer to decode from
28841
+ * @returns InThreadSurveyMetadata
28842
+ * @throws {Error} If the payload is not a reader or valid buffer
28843
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28844
+ */
28845
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.InThreadSurveyMetadata;
28846
+
28847
+ /**
28848
+ * Verifies an InThreadSurveyMetadata message.
28849
+ * @param message Plain object to verify
28850
+ * @returns `null` if valid, otherwise the reason why it is not
28851
+ */
28852
+ public static verify(message: { [k: string]: any }): (string|null);
28853
+
28854
+ /**
28855
+ * Creates an InThreadSurveyMetadata message from a plain object. Also converts values to their respective internal types.
28856
+ * @param object Plain object
28857
+ * @returns InThreadSurveyMetadata
28858
+ */
28859
+ public static fromObject(object: { [k: string]: any }): BotMetadata.InThreadSurveyMetadata;
28860
+
28861
+ /**
28862
+ * Creates a plain object from an InThreadSurveyMetadata message. Also converts values to other types if specified.
28863
+ * @param message InThreadSurveyMetadata
28864
+ * @param [options] Conversion options
28865
+ * @returns Plain object
28866
+ */
28867
+ public static toObject(message: BotMetadata.InThreadSurveyMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
28868
+
28869
+ /**
28870
+ * Converts this InThreadSurveyMetadata to JSON.
28871
+ * @returns JSON object
28872
+ */
28873
+ public toJSON(): { [k: string]: any };
28874
+
28875
+ /**
28876
+ * Gets the default type url for InThreadSurveyMetadata
28877
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
28878
+ * @returns The default type url
28879
+ */
28880
+ public static getTypeUrl(typeUrlPrefix?: string): string;
28881
+ }
28882
+
28883
+ namespace InThreadSurveyMetadata {
28884
+
28885
+ /** Properties of an InThreadSurveyOption. */
28886
+ interface IInThreadSurveyOption {
28887
+
28888
+ /** InThreadSurveyOption stringValue */
28889
+ stringValue?: (string|null);
28890
+
28891
+ /** InThreadSurveyOption numericValue */
28892
+ numericValue?: (number|null);
28893
+
28894
+ /** InThreadSurveyOption textTranslated */
28895
+ textTranslated?: (string|null);
28896
+ }
28897
+
28898
+ /** Represents an InThreadSurveyOption. */
28899
+ class InThreadSurveyOption implements IInThreadSurveyOption {
28900
+
28901
+ /**
28902
+ * Constructs a new InThreadSurveyOption.
28903
+ * @param [properties] Properties to set
28904
+ */
28905
+ constructor(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption);
28906
+
28907
+ /** InThreadSurveyOption stringValue. */
28908
+ public stringValue: string;
28909
+
28910
+ /** InThreadSurveyOption numericValue. */
28911
+ public numericValue: number;
28912
+
28913
+ /** InThreadSurveyOption textTranslated. */
28914
+ public textTranslated: string;
28915
+
28916
+ /**
28917
+ * Creates a new InThreadSurveyOption instance using the specified properties.
28918
+ * @param [properties] Properties to set
28919
+ * @returns InThreadSurveyOption instance
28920
+ */
28921
+ public static create(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
28922
+
28923
+ /**
28924
+ * Encodes the specified InThreadSurveyOption message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.verify|verify} messages.
28925
+ * @param message InThreadSurveyOption message or plain object to encode
28926
+ * @param [writer] Writer to encode to
28927
+ * @returns Writer
28928
+ */
28929
+ public static encode(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption, writer?: $protobuf.Writer): $protobuf.Writer;
28930
+
28931
+ /**
28932
+ * Encodes the specified InThreadSurveyOption message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.verify|verify} messages.
28933
+ * @param message InThreadSurveyOption message or plain object to encode
28934
+ * @param [writer] Writer to encode to
28935
+ * @returns Writer
28936
+ */
28937
+ public static encodeDelimited(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption, writer?: $protobuf.Writer): $protobuf.Writer;
28938
+
28939
+ /**
28940
+ * Decodes an InThreadSurveyOption message from the specified reader or buffer.
28941
+ * @param reader Reader or buffer to decode from
28942
+ * @param [length] Message length if known beforehand
28943
+ * @returns InThreadSurveyOption
28944
+ * @throws {Error} If the payload is not a reader or valid buffer
28945
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28946
+ */
28947
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
28948
+
28949
+ /**
28950
+ * Decodes an InThreadSurveyOption message from the specified reader or buffer, length delimited.
28951
+ * @param reader Reader or buffer to decode from
28952
+ * @returns InThreadSurveyOption
28953
+ * @throws {Error} If the payload is not a reader or valid buffer
28954
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28955
+ */
28956
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
28957
+
28958
+ /**
28959
+ * Verifies an InThreadSurveyOption message.
28960
+ * @param message Plain object to verify
28961
+ * @returns `null` if valid, otherwise the reason why it is not
28962
+ */
28963
+ public static verify(message: { [k: string]: any }): (string|null);
28964
+
28965
+ /**
28966
+ * Creates an InThreadSurveyOption message from a plain object. Also converts values to their respective internal types.
28967
+ * @param object Plain object
28968
+ * @returns InThreadSurveyOption
28969
+ */
28970
+ public static fromObject(object: { [k: string]: any }): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
28971
+
28972
+ /**
28973
+ * Creates a plain object from an InThreadSurveyOption message. Also converts values to other types if specified.
28974
+ * @param message InThreadSurveyOption
28975
+ * @param [options] Conversion options
28976
+ * @returns Plain object
28977
+ */
28978
+ public static toObject(message: BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
28979
+
28980
+ /**
28981
+ * Converts this InThreadSurveyOption to JSON.
28982
+ * @returns JSON object
28983
+ */
28984
+ public toJSON(): { [k: string]: any };
28985
+
28986
+ /**
28987
+ * Gets the default type url for InThreadSurveyOption
28988
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
28989
+ * @returns The default type url
28990
+ */
28991
+ public static getTypeUrl(typeUrlPrefix?: string): string;
28992
+ }
28993
+
28994
+ /** Properties of an InThreadSurveyPrivacyStatementPart. */
28995
+ interface IInThreadSurveyPrivacyStatementPart {
28996
+
28997
+ /** InThreadSurveyPrivacyStatementPart text */
28998
+ text?: (string|null);
28999
+
29000
+ /** InThreadSurveyPrivacyStatementPart url */
29001
+ url?: (string|null);
29002
+ }
29003
+
29004
+ /** Represents an InThreadSurveyPrivacyStatementPart. */
29005
+ class InThreadSurveyPrivacyStatementPart implements IInThreadSurveyPrivacyStatementPart {
29006
+
29007
+ /**
29008
+ * Constructs a new InThreadSurveyPrivacyStatementPart.
29009
+ * @param [properties] Properties to set
29010
+ */
29011
+ constructor(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart);
29012
+
29013
+ /** InThreadSurveyPrivacyStatementPart text. */
29014
+ public text: string;
29015
+
29016
+ /** InThreadSurveyPrivacyStatementPart url. */
29017
+ public url: string;
29018
+
29019
+ /**
29020
+ * Creates a new InThreadSurveyPrivacyStatementPart instance using the specified properties.
29021
+ * @param [properties] Properties to set
29022
+ * @returns InThreadSurveyPrivacyStatementPart instance
29023
+ */
29024
+ public static create(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart): BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart;
29025
+
29026
+ /**
29027
+ * Encodes the specified InThreadSurveyPrivacyStatementPart message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.verify|verify} messages.
29028
+ * @param message InThreadSurveyPrivacyStatementPart message or plain object to encode
29029
+ * @param [writer] Writer to encode to
29030
+ * @returns Writer
29031
+ */
29032
+ public static encode(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart, writer?: $protobuf.Writer): $protobuf.Writer;
29033
+
29034
+ /**
29035
+ * Encodes the specified InThreadSurveyPrivacyStatementPart message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.verify|verify} messages.
29036
+ * @param message InThreadSurveyPrivacyStatementPart message or plain object to encode
29037
+ * @param [writer] Writer to encode to
29038
+ * @returns Writer
29039
+ */
29040
+ public static encodeDelimited(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart, writer?: $protobuf.Writer): $protobuf.Writer;
29041
+
29042
+ /**
29043
+ * Decodes an InThreadSurveyPrivacyStatementPart message from the specified reader or buffer.
29044
+ * @param reader Reader or buffer to decode from
29045
+ * @param [length] Message length if known beforehand
29046
+ * @returns InThreadSurveyPrivacyStatementPart
29047
+ * @throws {Error} If the payload is not a reader or valid buffer
29048
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29049
+ */
29050
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart;
29051
+
29052
+ /**
29053
+ * Decodes an InThreadSurveyPrivacyStatementPart message from the specified reader or buffer, length delimited.
29054
+ * @param reader Reader or buffer to decode from
29055
+ * @returns InThreadSurveyPrivacyStatementPart
29056
+ * @throws {Error} If the payload is not a reader or valid buffer
29057
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29058
+ */
29059
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart;
29060
+
29061
+ /**
29062
+ * Verifies an InThreadSurveyPrivacyStatementPart message.
29063
+ * @param message Plain object to verify
29064
+ * @returns `null` if valid, otherwise the reason why it is not
29065
+ */
29066
+ public static verify(message: { [k: string]: any }): (string|null);
29067
+
29068
+ /**
29069
+ * Creates an InThreadSurveyPrivacyStatementPart message from a plain object. Also converts values to their respective internal types.
29070
+ * @param object Plain object
29071
+ * @returns InThreadSurveyPrivacyStatementPart
29072
+ */
29073
+ public static fromObject(object: { [k: string]: any }): BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart;
29074
+
29075
+ /**
29076
+ * Creates a plain object from an InThreadSurveyPrivacyStatementPart message. Also converts values to other types if specified.
29077
+ * @param message InThreadSurveyPrivacyStatementPart
29078
+ * @param [options] Conversion options
29079
+ * @returns Plain object
29080
+ */
29081
+ public static toObject(message: BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart, options?: $protobuf.IConversionOptions): { [k: string]: any };
29082
+
29083
+ /**
29084
+ * Converts this InThreadSurveyPrivacyStatementPart to JSON.
29085
+ * @returns JSON object
29086
+ */
29087
+ public toJSON(): { [k: string]: any };
29088
+
29089
+ /**
29090
+ * Gets the default type url for InThreadSurveyPrivacyStatementPart
29091
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
29092
+ * @returns The default type url
29093
+ */
29094
+ public static getTypeUrl(typeUrlPrefix?: string): string;
29095
+ }
29096
+
29097
+ /** Properties of an InThreadSurveyQuestion. */
29098
+ interface IInThreadSurveyQuestion {
29099
+
29100
+ /** InThreadSurveyQuestion questionText */
29101
+ questionText?: (string|null);
29102
+
29103
+ /** InThreadSurveyQuestion questionId */
29104
+ questionId?: (string|null);
29105
+
29106
+ /** InThreadSurveyQuestion questionOptions */
29107
+ questionOptions?: (BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption[]|null);
29108
+ }
29109
+
29110
+ /** Represents an InThreadSurveyQuestion. */
29111
+ class InThreadSurveyQuestion implements IInThreadSurveyQuestion {
29112
+
29113
+ /**
29114
+ * Constructs a new InThreadSurveyQuestion.
29115
+ * @param [properties] Properties to set
29116
+ */
29117
+ constructor(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion);
29118
+
29119
+ /** InThreadSurveyQuestion questionText. */
29120
+ public questionText: string;
29121
+
29122
+ /** InThreadSurveyQuestion questionId. */
29123
+ public questionId: string;
29124
+
29125
+ /** InThreadSurveyQuestion questionOptions. */
29126
+ public questionOptions: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption[];
29127
+
29128
+ /**
29129
+ * Creates a new InThreadSurveyQuestion instance using the specified properties.
29130
+ * @param [properties] Properties to set
29131
+ * @returns InThreadSurveyQuestion instance
29132
+ */
29133
+ public static create(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion): BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion;
29134
+
29135
+ /**
29136
+ * Encodes the specified InThreadSurveyQuestion message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.verify|verify} messages.
29137
+ * @param message InThreadSurveyQuestion message or plain object to encode
29138
+ * @param [writer] Writer to encode to
29139
+ * @returns Writer
29140
+ */
29141
+ public static encode(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion, writer?: $protobuf.Writer): $protobuf.Writer;
29142
+
29143
+ /**
29144
+ * Encodes the specified InThreadSurveyQuestion message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.verify|verify} messages.
29145
+ * @param message InThreadSurveyQuestion message or plain object to encode
29146
+ * @param [writer] Writer to encode to
29147
+ * @returns Writer
29148
+ */
29149
+ public static encodeDelimited(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion, writer?: $protobuf.Writer): $protobuf.Writer;
29150
+
29151
+ /**
29152
+ * Decodes an InThreadSurveyQuestion message from the specified reader or buffer.
29153
+ * @param reader Reader or buffer to decode from
29154
+ * @param [length] Message length if known beforehand
29155
+ * @returns InThreadSurveyQuestion
29156
+ * @throws {Error} If the payload is not a reader or valid buffer
29157
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29158
+ */
29159
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion;
29160
+
29161
+ /**
29162
+ * Decodes an InThreadSurveyQuestion message from the specified reader or buffer, length delimited.
29163
+ * @param reader Reader or buffer to decode from
29164
+ * @returns InThreadSurveyQuestion
29165
+ * @throws {Error} If the payload is not a reader or valid buffer
29166
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29167
+ */
29168
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion;
29169
+
29170
+ /**
29171
+ * Verifies an InThreadSurveyQuestion message.
29172
+ * @param message Plain object to verify
29173
+ * @returns `null` if valid, otherwise the reason why it is not
29174
+ */
29175
+ public static verify(message: { [k: string]: any }): (string|null);
29176
+
29177
+ /**
29178
+ * Creates an InThreadSurveyQuestion message from a plain object. Also converts values to their respective internal types.
29179
+ * @param object Plain object
29180
+ * @returns InThreadSurveyQuestion
29181
+ */
29182
+ public static fromObject(object: { [k: string]: any }): BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion;
29183
+
29184
+ /**
29185
+ * Creates a plain object from an InThreadSurveyQuestion message. Also converts values to other types if specified.
29186
+ * @param message InThreadSurveyQuestion
29187
+ * @param [options] Conversion options
29188
+ * @returns Plain object
29189
+ */
29190
+ public static toObject(message: BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion, options?: $protobuf.IConversionOptions): { [k: string]: any };
29191
+
29192
+ /**
29193
+ * Converts this InThreadSurveyQuestion to JSON.
29194
+ * @returns JSON object
29195
+ */
29196
+ public toJSON(): { [k: string]: any };
29197
+
29198
+ /**
29199
+ * Gets the default type url for InThreadSurveyQuestion
29200
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
29201
+ * @returns The default type url
29202
+ */
29203
+ public static getTypeUrl(typeUrlPrefix?: string): string;
29204
+ }
29205
+ }
29206
+
28645
29207
  /** Properties of a BotSourcesMetadata. */
28646
29208
  interface IBotSourcesMetadata {
28647
29209
 
@@ -31192,7 +31754,8 @@ export namespace BotMetadata {
31192
31754
  /** BotPromotionType enum. */
31193
31755
  enum BotPromotionType {
31194
31756
  UNKNOWN_TYPE = 0,
31195
- C50 = 1
31757
+ C50 = 1,
31758
+ SURVEY_PLATFORM = 2
31196
31759
  }
31197
31760
  }
31198
31761
 
@@ -33113,7 +33676,8 @@ export namespace StatusAttributions {
33113
33676
  enum Source {
33114
33677
  UNKNOWN = 0,
33115
33678
  RAY_BAN_META_GLASSES = 1,
33116
- OAKLEY_META_GLASSES = 2
33679
+ OAKLEY_META_GLASSES = 2,
33680
+ HYPERNOVA_GLASSES = 3
33117
33681
  }
33118
33682
  }
33119
33683