sanka-baileyss 2.3.2 → 2.3.4

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 (159) 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/Group/sender-key-record.js +23 -28
  24. package/lib/Signal/libsignal.d.ts +1 -0
  25. package/lib/Socket/Client/index.js +13 -9
  26. package/lib/Socket/Client/types.d.ts +11 -10
  27. package/lib/Socket/Client/types.js +11 -7
  28. package/lib/Socket/Client/websocket.d.ts +9 -8
  29. package/lib/Socket/Client/websocket.js +52 -47
  30. package/lib/Socket/business.d.ts +185 -182
  31. package/lib/Socket/business.js +258 -249
  32. package/lib/Socket/chats.d.ts +90 -87
  33. package/lib/Socket/chats.js +1095 -888
  34. package/lib/Socket/community.d.ts +131 -0
  35. package/lib/Socket/community.js +369 -0
  36. package/lib/Socket/groups.d.ts +50 -41
  37. package/lib/Socket/groups.js +10 -3
  38. package/lib/Socket/index.d.ts +5 -1
  39. package/lib/Socket/index.js +19 -5
  40. package/lib/Socket/messages-recv.d.ts +6 -2
  41. package/lib/Socket/messages-recv.js +31 -8
  42. package/lib/Socket/messages-send.d.ts +5 -1
  43. package/lib/Socket/messages-send.js +1293 -1351
  44. package/lib/Socket/newsletter.d.ts +142 -135
  45. package/lib/Socket/newsletter.js +274 -230
  46. package/lib/Socket/socket.d.ts +37 -35
  47. package/lib/Socket/usync.d.ts +31 -30
  48. package/lib/Socket/usync.js +74 -62
  49. package/lib/Types/Auth.d.ts +89 -72
  50. package/lib/Types/Auth.js +1 -0
  51. package/lib/Types/Call.d.ts +11 -10
  52. package/lib/Types/Call.js +1 -0
  53. package/lib/Types/Chat.d.ts +85 -62
  54. package/lib/Types/Chat.js +4 -1
  55. package/lib/Types/Contact.js +1 -0
  56. package/lib/Types/Events.d.ts +209 -191
  57. package/lib/Types/Events.js +1 -0
  58. package/lib/Types/GroupMetadata.d.ts +12 -27
  59. package/lib/Types/GroupMetadata.js +1 -0
  60. package/lib/Types/Label.d.ts +41 -39
  61. package/lib/Types/Label.js +24 -21
  62. package/lib/Types/LabelAssociation.d.ts +18 -12
  63. package/lib/Types/LabelAssociation.js +6 -3
  64. package/lib/Types/Message.d.ts +3 -2
  65. package/lib/Types/Message.js +7 -3
  66. package/lib/Types/MexUpdates.d.ts +9 -0
  67. package/lib/Types/MexUpdates.js +18 -0
  68. package/lib/Types/Newsletter.d.ts +84 -67
  69. package/lib/Types/Newsletter.js +30 -23
  70. package/lib/Types/Product.d.ts +70 -56
  71. package/lib/Types/Product.js +1 -0
  72. package/lib/Types/Signal.d.ts +46 -35
  73. package/lib/Types/Signal.js +1 -0
  74. package/lib/Types/Socket.d.ts +105 -101
  75. package/lib/Types/Socket.js +1 -0
  76. package/lib/Types/State.d.ts +37 -23
  77. package/lib/Types/State.js +13 -1
  78. package/lib/Types/USync.d.ts +21 -20
  79. package/lib/Types/USync.js +1 -0
  80. package/lib/Types/index.d.ts +51 -42
  81. package/lib/Types/index.js +25 -19
  82. package/lib/Utils/auth-utils.d.ts +14 -11
  83. package/lib/Utils/auth-utils.js +189 -182
  84. package/lib/Utils/baileys-event-stream.d.ts +12 -10
  85. package/lib/Utils/baileys-event-stream.js +52 -46
  86. package/lib/Utils/business.d.ts +15 -8
  87. package/lib/Utils/business.js +229 -217
  88. package/lib/Utils/chat-utils.d.ts +22 -12
  89. package/lib/Utils/chat-utils.js +57 -27
  90. package/lib/Utils/crypto.d.ts +31 -15
  91. package/lib/Utils/crypto.js +136 -107
  92. package/lib/Utils/decode-wa-message.d.ts +34 -245
  93. package/lib/Utils/decode-wa-message.js +205 -217
  94. package/lib/Utils/event-buffer.d.ts +30 -26
  95. package/lib/Utils/event-buffer.js +519 -515
  96. package/lib/Utils/history.d.ts +2 -8
  97. package/lib/Utils/index.js +13 -9
  98. package/lib/Utils/link-preview.d.ts +16 -14
  99. package/lib/Utils/link-preview.js +100 -92
  100. package/lib/Utils/logger.d.ts +9 -7
  101. package/lib/Utils/logger.js +1 -1
  102. package/lib/Utils/lt-hash.d.ts +10 -8
  103. package/lib/Utils/lt-hash.js +49 -44
  104. package/lib/Utils/make-mutex.d.ts +4 -2
  105. package/lib/Utils/make-mutex.js +43 -39
  106. package/lib/Utils/messages-media.d.ts +75 -50
  107. package/lib/Utils/messages.d.ts +60 -35
  108. package/lib/Utils/messages.js +87 -8
  109. package/lib/Utils/noise-handler.d.ts +13 -12
  110. package/lib/Utils/noise-handler.js +143 -138
  111. package/lib/Utils/process-message.d.ts +32 -24
  112. package/lib/Utils/process-message.js +387 -367
  113. package/lib/Utils/signal.d.ts +24 -15
  114. package/lib/Utils/signal.js +143 -131
  115. package/lib/Utils/use-mongo-file-auth-state.d.ts +3 -2
  116. package/lib/Utils/use-mongo-file-auth-state.js +72 -63
  117. package/lib/Utils/use-multi-file-auth-state.d.ts +9 -8
  118. package/lib/Utils/use-multi-file-auth-state.js +110 -102
  119. package/lib/Utils/use-single-file-auth-state.d.ts +8 -7
  120. package/lib/Utils/use-single-file-auth-state.js +66 -61
  121. package/lib/Utils/validate-connection.d.ts +5 -2
  122. package/lib/Utils/validate-connection.js +7 -6
  123. package/lib/WABinary/constants.d.ts +24 -21
  124. package/lib/WABinary/constants.js +1302 -31
  125. package/lib/WABinary/decode.d.ts +4 -1
  126. package/lib/WABinary/decode.js +267 -234
  127. package/lib/WABinary/encode.d.ts +1 -0
  128. package/lib/WABinary/encode.js +248 -226
  129. package/lib/WABinary/generic-utils.d.ts +13 -1
  130. package/lib/WABinary/generic-utils.js +113 -96
  131. package/lib/WABinary/index.js +13 -9
  132. package/lib/WABinary/jid-utils.d.ts +23 -4
  133. package/lib/WABinary/jid-utils.js +58 -39
  134. package/lib/WABinary/types.d.ts +15 -11
  135. package/lib/WABinary/types.js +1 -0
  136. package/lib/WAM/BinaryInfo.d.ts +14 -14
  137. package/lib/WAM/BinaryInfo.js +11 -8
  138. package/lib/WAM/constants.d.ts +34 -26
  139. package/lib/WAM/constants.js +15358 -15349
  140. package/lib/WAM/encode.d.ts +1 -0
  141. package/lib/WAM/encode.js +153 -144
  142. package/lib/WAM/index.js +13 -9
  143. package/lib/index.js +11 -11
  144. package/package.json +1 -66
  145. package/WASignalGroup/GroupProtocol.js +0 -1771
  146. package/WASignalGroup/ciphertext_message.js +0 -10
  147. package/WASignalGroup/group_cipher.js +0 -103
  148. package/WASignalGroup/group_session_builder.js +0 -39
  149. package/WASignalGroup/index.js +0 -5
  150. package/WASignalGroup/keyhelper.js +0 -17
  151. package/WASignalGroup/protobufs.js +0 -2
  152. package/WASignalGroup/queue_job.js +0 -64
  153. package/WASignalGroup/sender_chain_key.js +0 -38
  154. package/WASignalGroup/sender_key_distribution_message.js +0 -68
  155. package/WASignalGroup/sender_key_message.js +0 -79
  156. package/WASignalGroup/sender_key_name.js +0 -59
  157. package/WASignalGroup/sender_key_record.js +0 -47
  158. package/WASignalGroup/sender_key_state.js +0 -110
  159. package/WASignalGroup/sender_message_key.js +0 -30
@@ -10640,6 +10640,9 @@ export namespace E2E {
10640
10640
 
10641
10641
  /** ExternalAdReplyInfo wtwaWebsiteUrl */
10642
10642
  wtwaWebsiteUrl?: (string|null);
10643
+
10644
+ /** ExternalAdReplyInfo adPreviewUrl */
10645
+ adPreviewUrl?: (string|null);
10643
10646
  }
10644
10647
 
10645
10648
  /** Represents an ExternalAdReplyInfo. */
@@ -10729,6 +10732,9 @@ export namespace E2E {
10729
10732
  /** ExternalAdReplyInfo wtwaWebsiteUrl. */
10730
10733
  public wtwaWebsiteUrl: string;
10731
10734
 
10735
+ /** ExternalAdReplyInfo adPreviewUrl. */
10736
+ public adPreviewUrl: string;
10737
+
10732
10738
  /**
10733
10739
  * Creates a new ExternalAdReplyInfo instance using the specified properties.
10734
10740
  * @param [properties] Properties to set
@@ -18729,6 +18735,9 @@ export namespace E2E {
18729
18735
 
18730
18736
  /** CarouselMessage messageVersion */
18731
18737
  messageVersion?: (number|null);
18738
+
18739
+ /** CarouselMessage carouselCardType */
18740
+ carouselCardType?: (E2E.Message.InteractiveMessage.CarouselMessage.CarouselCardType|null);
18732
18741
  }
18733
18742
 
18734
18743
  /** Represents a CarouselMessage. */
@@ -18746,6 +18755,9 @@ export namespace E2E {
18746
18755
  /** CarouselMessage messageVersion. */
18747
18756
  public messageVersion: number;
18748
18757
 
18758
+ /** CarouselMessage carouselCardType. */
18759
+ public carouselCardType: E2E.Message.InteractiveMessage.CarouselMessage.CarouselCardType;
18760
+
18749
18761
  /**
18750
18762
  * Creates a new CarouselMessage instance using the specified properties.
18751
18763
  * @param [properties] Properties to set
@@ -18824,6 +18836,15 @@ export namespace E2E {
18824
18836
  public static getTypeUrl(typeUrlPrefix?: string): string;
18825
18837
  }
18826
18838
 
18839
+ namespace CarouselMessage {
18840
+
18841
+ /** CarouselCardType enum. */
18842
+ enum CarouselCardType {
18843
+ DEFAULT = 0,
18844
+ ALBUM = 1
18845
+ }
18846
+ }
18847
+
18827
18848
  /** Properties of a CollectionMessage. */
18828
18849
  interface ICollectionMessage {
18829
18850
 
@@ -21860,8 +21881,8 @@ export namespace E2E {
21860
21881
  /** MessageHistoryMetadata historyReceivers */
21861
21882
  historyReceivers?: (string[]|null);
21862
21883
 
21863
- /** MessageHistoryMetadata firstMessageTimestamp */
21864
- firstMessageTimestamp?: (number|Long|null);
21884
+ /** MessageHistoryMetadata oldestMessageTimestamp */
21885
+ oldestMessageTimestamp?: (number|Long|null);
21865
21886
 
21866
21887
  /** MessageHistoryMetadata messageCount */
21867
21888
  messageCount?: (number|Long|null);
@@ -21879,8 +21900,8 @@ export namespace E2E {
21879
21900
  /** MessageHistoryMetadata historyReceivers. */
21880
21901
  public historyReceivers: string[];
21881
21902
 
21882
- /** MessageHistoryMetadata firstMessageTimestamp. */
21883
- public firstMessageTimestamp: (number|Long);
21903
+ /** MessageHistoryMetadata oldestMessageTimestamp. */
21904
+ public oldestMessageTimestamp: (number|Long);
21884
21905
 
21885
21906
  /** MessageHistoryMetadata messageCount. */
21886
21907
  public messageCount: (number|Long);
@@ -23944,6 +23965,12 @@ export namespace E2E {
23944
23965
 
23945
23966
  /** CompanionCanonicalUserNonceFetchResponse nonce */
23946
23967
  nonce?: (string|null);
23968
+
23969
+ /** CompanionCanonicalUserNonceFetchResponse waFbid */
23970
+ waFbid?: (string|null);
23971
+
23972
+ /** CompanionCanonicalUserNonceFetchResponse forceRefresh */
23973
+ forceRefresh?: (boolean|null);
23947
23974
  }
23948
23975
 
23949
23976
  /** Represents a CompanionCanonicalUserNonceFetchResponse. */
@@ -23958,6 +23985,12 @@ export namespace E2E {
23958
23985
  /** CompanionCanonicalUserNonceFetchResponse nonce. */
23959
23986
  public nonce: string;
23960
23987
 
23988
+ /** CompanionCanonicalUserNonceFetchResponse waFbid. */
23989
+ public waFbid: string;
23990
+
23991
+ /** CompanionCanonicalUserNonceFetchResponse forceRefresh. */
23992
+ public forceRefresh: boolean;
23993
+
23961
23994
  /**
23962
23995
  * Creates a new CompanionCanonicalUserNonceFetchResponse instance using the specified properties.
23963
23996
  * @param [properties] Properties to set
@@ -27638,6 +27671,9 @@ export namespace E2E {
27638
27671
 
27639
27672
  /** SendPaymentMessage background */
27640
27673
  background?: (E2E.IPaymentBackground|null);
27674
+
27675
+ /** SendPaymentMessage transactionData */
27676
+ transactionData?: (string|null);
27641
27677
  }
27642
27678
 
27643
27679
  /** Represents a SendPaymentMessage. */
@@ -27658,6 +27694,9 @@ export namespace E2E {
27658
27694
  /** SendPaymentMessage background. */
27659
27695
  public background?: (E2E.IPaymentBackground|null);
27660
27696
 
27697
+ /** SendPaymentMessage transactionData. */
27698
+ public transactionData: string;
27699
+
27661
27700
  /**
27662
27701
  * Creates a new SendPaymentMessage instance using the specified properties.
27663
27702
  * @param [properties] Properties to set
@@ -30735,6 +30774,9 @@ export namespace BotMetadata {
30735
30774
 
30736
30775
  /** BotMetadata botMessageOriginMetadata */
30737
30776
  botMessageOriginMetadata?: (BotMetadata.IBotMessageOriginMetadata|null);
30777
+
30778
+ /** BotMetadata inThreadSurveyMetadata */
30779
+ inThreadSurveyMetadata?: (BotMetadata.IInThreadSurveyMetadata|null);
30738
30780
  }
30739
30781
 
30740
30782
  /** Represents a BotMetadata. */
@@ -30833,6 +30875,9 @@ export namespace BotMetadata {
30833
30875
  /** BotMetadata botMessageOriginMetadata. */
30834
30876
  public botMessageOriginMetadata?: (BotMetadata.IBotMessageOriginMetadata|null);
30835
30877
 
30878
+ /** BotMetadata inThreadSurveyMetadata. */
30879
+ public inThreadSurveyMetadata?: (BotMetadata.IInThreadSurveyMetadata|null);
30880
+
30836
30881
  /**
30837
30882
  * Creates a new BotMetadata instance using the specified properties.
30838
30883
  * @param [properties] Properties to set
@@ -31310,6 +31355,523 @@ export namespace BotMetadata {
31310
31355
  public static getTypeUrl(typeUrlPrefix?: string): string;
31311
31356
  }
31312
31357
 
31358
+ /** Properties of an InThreadSurveyMetadata. */
31359
+ interface IInThreadSurveyMetadata {
31360
+
31361
+ /** InThreadSurveyMetadata tessaSessionId */
31362
+ tessaSessionId?: (string|null);
31363
+
31364
+ /** InThreadSurveyMetadata simonSessionId */
31365
+ simonSessionId?: (string|null);
31366
+
31367
+ /** InThreadSurveyMetadata simonSurveyId */
31368
+ simonSurveyId?: (string|null);
31369
+
31370
+ /** InThreadSurveyMetadata tessaRootId */
31371
+ tessaRootId?: (string|null);
31372
+
31373
+ /** InThreadSurveyMetadata requestId */
31374
+ requestId?: (string|null);
31375
+
31376
+ /** InThreadSurveyMetadata tessaEvent */
31377
+ tessaEvent?: (string|null);
31378
+
31379
+ /** InThreadSurveyMetadata invitationHeaderText */
31380
+ invitationHeaderText?: (string|null);
31381
+
31382
+ /** InThreadSurveyMetadata invitationBodyText */
31383
+ invitationBodyText?: (string|null);
31384
+
31385
+ /** InThreadSurveyMetadata invitationCtaText */
31386
+ invitationCtaText?: (string|null);
31387
+
31388
+ /** InThreadSurveyMetadata invitationCtaUrl */
31389
+ invitationCtaUrl?: (string|null);
31390
+
31391
+ /** InThreadSurveyMetadata surveyTitle */
31392
+ surveyTitle?: (string|null);
31393
+
31394
+ /** InThreadSurveyMetadata questions */
31395
+ questions?: (BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion[]|null);
31396
+
31397
+ /** InThreadSurveyMetadata surveyContinueButtonText */
31398
+ surveyContinueButtonText?: (string|null);
31399
+
31400
+ /** InThreadSurveyMetadata surveySubmitButtonText */
31401
+ surveySubmitButtonText?: (string|null);
31402
+
31403
+ /** InThreadSurveyMetadata privacyStatementFull */
31404
+ privacyStatementFull?: (string|null);
31405
+
31406
+ /** InThreadSurveyMetadata privacyStatementParts */
31407
+ privacyStatementParts?: (BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart[]|null);
31408
+
31409
+ /** InThreadSurveyMetadata feedbackToastText */
31410
+ feedbackToastText?: (string|null);
31411
+ }
31412
+
31413
+ /** Represents an InThreadSurveyMetadata. */
31414
+ class InThreadSurveyMetadata implements IInThreadSurveyMetadata {
31415
+
31416
+ /**
31417
+ * Constructs a new InThreadSurveyMetadata.
31418
+ * @param [properties] Properties to set
31419
+ */
31420
+ constructor(properties?: BotMetadata.IInThreadSurveyMetadata);
31421
+
31422
+ /** InThreadSurveyMetadata tessaSessionId. */
31423
+ public tessaSessionId: string;
31424
+
31425
+ /** InThreadSurveyMetadata simonSessionId. */
31426
+ public simonSessionId: string;
31427
+
31428
+ /** InThreadSurveyMetadata simonSurveyId. */
31429
+ public simonSurveyId: string;
31430
+
31431
+ /** InThreadSurveyMetadata tessaRootId. */
31432
+ public tessaRootId: string;
31433
+
31434
+ /** InThreadSurveyMetadata requestId. */
31435
+ public requestId: string;
31436
+
31437
+ /** InThreadSurveyMetadata tessaEvent. */
31438
+ public tessaEvent: string;
31439
+
31440
+ /** InThreadSurveyMetadata invitationHeaderText. */
31441
+ public invitationHeaderText: string;
31442
+
31443
+ /** InThreadSurveyMetadata invitationBodyText. */
31444
+ public invitationBodyText: string;
31445
+
31446
+ /** InThreadSurveyMetadata invitationCtaText. */
31447
+ public invitationCtaText: string;
31448
+
31449
+ /** InThreadSurveyMetadata invitationCtaUrl. */
31450
+ public invitationCtaUrl: string;
31451
+
31452
+ /** InThreadSurveyMetadata surveyTitle. */
31453
+ public surveyTitle: string;
31454
+
31455
+ /** InThreadSurveyMetadata questions. */
31456
+ public questions: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion[];
31457
+
31458
+ /** InThreadSurveyMetadata surveyContinueButtonText. */
31459
+ public surveyContinueButtonText: string;
31460
+
31461
+ /** InThreadSurveyMetadata surveySubmitButtonText. */
31462
+ public surveySubmitButtonText: string;
31463
+
31464
+ /** InThreadSurveyMetadata privacyStatementFull. */
31465
+ public privacyStatementFull: string;
31466
+
31467
+ /** InThreadSurveyMetadata privacyStatementParts. */
31468
+ public privacyStatementParts: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart[];
31469
+
31470
+ /** InThreadSurveyMetadata feedbackToastText. */
31471
+ public feedbackToastText: string;
31472
+
31473
+ /**
31474
+ * Creates a new InThreadSurveyMetadata instance using the specified properties.
31475
+ * @param [properties] Properties to set
31476
+ * @returns InThreadSurveyMetadata instance
31477
+ */
31478
+ public static create(properties?: BotMetadata.IInThreadSurveyMetadata): BotMetadata.InThreadSurveyMetadata;
31479
+
31480
+ /**
31481
+ * Encodes the specified InThreadSurveyMetadata message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.verify|verify} messages.
31482
+ * @param message InThreadSurveyMetadata message or plain object to encode
31483
+ * @param [writer] Writer to encode to
31484
+ * @returns Writer
31485
+ */
31486
+ public static encode(message: BotMetadata.IInThreadSurveyMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
31487
+
31488
+ /**
31489
+ * Encodes the specified InThreadSurveyMetadata message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.verify|verify} messages.
31490
+ * @param message InThreadSurveyMetadata message or plain object to encode
31491
+ * @param [writer] Writer to encode to
31492
+ * @returns Writer
31493
+ */
31494
+ public static encodeDelimited(message: BotMetadata.IInThreadSurveyMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
31495
+
31496
+ /**
31497
+ * Decodes an InThreadSurveyMetadata message from the specified reader or buffer.
31498
+ * @param reader Reader or buffer to decode from
31499
+ * @param [length] Message length if known beforehand
31500
+ * @returns InThreadSurveyMetadata
31501
+ * @throws {Error} If the payload is not a reader or valid buffer
31502
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31503
+ */
31504
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.InThreadSurveyMetadata;
31505
+
31506
+ /**
31507
+ * Decodes an InThreadSurveyMetadata message from the specified reader or buffer, length delimited.
31508
+ * @param reader Reader or buffer to decode from
31509
+ * @returns InThreadSurveyMetadata
31510
+ * @throws {Error} If the payload is not a reader or valid buffer
31511
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31512
+ */
31513
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.InThreadSurveyMetadata;
31514
+
31515
+ /**
31516
+ * Verifies an InThreadSurveyMetadata message.
31517
+ * @param message Plain object to verify
31518
+ * @returns `null` if valid, otherwise the reason why it is not
31519
+ */
31520
+ public static verify(message: { [k: string]: any }): (string|null);
31521
+
31522
+ /**
31523
+ * Creates an InThreadSurveyMetadata message from a plain object. Also converts values to their respective internal types.
31524
+ * @param object Plain object
31525
+ * @returns InThreadSurveyMetadata
31526
+ */
31527
+ public static fromObject(object: { [k: string]: any }): BotMetadata.InThreadSurveyMetadata;
31528
+
31529
+ /**
31530
+ * Creates a plain object from an InThreadSurveyMetadata message. Also converts values to other types if specified.
31531
+ * @param message InThreadSurveyMetadata
31532
+ * @param [options] Conversion options
31533
+ * @returns Plain object
31534
+ */
31535
+ public static toObject(message: BotMetadata.InThreadSurveyMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
31536
+
31537
+ /**
31538
+ * Converts this InThreadSurveyMetadata to JSON.
31539
+ * @returns JSON object
31540
+ */
31541
+ public toJSON(): { [k: string]: any };
31542
+
31543
+ /**
31544
+ * Gets the default type url for InThreadSurveyMetadata
31545
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
31546
+ * @returns The default type url
31547
+ */
31548
+ public static getTypeUrl(typeUrlPrefix?: string): string;
31549
+ }
31550
+
31551
+ namespace InThreadSurveyMetadata {
31552
+
31553
+ /** Properties of an InThreadSurveyOption. */
31554
+ interface IInThreadSurveyOption {
31555
+
31556
+ /** InThreadSurveyOption stringValue */
31557
+ stringValue?: (string|null);
31558
+
31559
+ /** InThreadSurveyOption numericValue */
31560
+ numericValue?: (number|null);
31561
+
31562
+ /** InThreadSurveyOption textTranslated */
31563
+ textTranslated?: (string|null);
31564
+ }
31565
+
31566
+ /** Represents an InThreadSurveyOption. */
31567
+ class InThreadSurveyOption implements IInThreadSurveyOption {
31568
+
31569
+ /**
31570
+ * Constructs a new InThreadSurveyOption.
31571
+ * @param [properties] Properties to set
31572
+ */
31573
+ constructor(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption);
31574
+
31575
+ /** InThreadSurveyOption stringValue. */
31576
+ public stringValue: string;
31577
+
31578
+ /** InThreadSurveyOption numericValue. */
31579
+ public numericValue: number;
31580
+
31581
+ /** InThreadSurveyOption textTranslated. */
31582
+ public textTranslated: string;
31583
+
31584
+ /**
31585
+ * Creates a new InThreadSurveyOption instance using the specified properties.
31586
+ * @param [properties] Properties to set
31587
+ * @returns InThreadSurveyOption instance
31588
+ */
31589
+ public static create(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
31590
+
31591
+ /**
31592
+ * Encodes the specified InThreadSurveyOption message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.verify|verify} messages.
31593
+ * @param message InThreadSurveyOption message or plain object to encode
31594
+ * @param [writer] Writer to encode to
31595
+ * @returns Writer
31596
+ */
31597
+ public static encode(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption, writer?: $protobuf.Writer): $protobuf.Writer;
31598
+
31599
+ /**
31600
+ * Encodes the specified InThreadSurveyOption message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.verify|verify} messages.
31601
+ * @param message InThreadSurveyOption message or plain object to encode
31602
+ * @param [writer] Writer to encode to
31603
+ * @returns Writer
31604
+ */
31605
+ public static encodeDelimited(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption, writer?: $protobuf.Writer): $protobuf.Writer;
31606
+
31607
+ /**
31608
+ * Decodes an InThreadSurveyOption message from the specified reader or buffer.
31609
+ * @param reader Reader or buffer to decode from
31610
+ * @param [length] Message length if known beforehand
31611
+ * @returns InThreadSurveyOption
31612
+ * @throws {Error} If the payload is not a reader or valid buffer
31613
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31614
+ */
31615
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
31616
+
31617
+ /**
31618
+ * Decodes an InThreadSurveyOption message from the specified reader or buffer, length delimited.
31619
+ * @param reader Reader or buffer to decode from
31620
+ * @returns InThreadSurveyOption
31621
+ * @throws {Error} If the payload is not a reader or valid buffer
31622
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31623
+ */
31624
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
31625
+
31626
+ /**
31627
+ * Verifies an InThreadSurveyOption message.
31628
+ * @param message Plain object to verify
31629
+ * @returns `null` if valid, otherwise the reason why it is not
31630
+ */
31631
+ public static verify(message: { [k: string]: any }): (string|null);
31632
+
31633
+ /**
31634
+ * Creates an InThreadSurveyOption message from a plain object. Also converts values to their respective internal types.
31635
+ * @param object Plain object
31636
+ * @returns InThreadSurveyOption
31637
+ */
31638
+ public static fromObject(object: { [k: string]: any }): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
31639
+
31640
+ /**
31641
+ * Creates a plain object from an InThreadSurveyOption message. Also converts values to other types if specified.
31642
+ * @param message InThreadSurveyOption
31643
+ * @param [options] Conversion options
31644
+ * @returns Plain object
31645
+ */
31646
+ public static toObject(message: BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
31647
+
31648
+ /**
31649
+ * Converts this InThreadSurveyOption to JSON.
31650
+ * @returns JSON object
31651
+ */
31652
+ public toJSON(): { [k: string]: any };
31653
+
31654
+ /**
31655
+ * Gets the default type url for InThreadSurveyOption
31656
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
31657
+ * @returns The default type url
31658
+ */
31659
+ public static getTypeUrl(typeUrlPrefix?: string): string;
31660
+ }
31661
+
31662
+ /** Properties of an InThreadSurveyPrivacyStatementPart. */
31663
+ interface IInThreadSurveyPrivacyStatementPart {
31664
+
31665
+ /** InThreadSurveyPrivacyStatementPart text */
31666
+ text?: (string|null);
31667
+
31668
+ /** InThreadSurveyPrivacyStatementPart url */
31669
+ url?: (string|null);
31670
+ }
31671
+
31672
+ /** Represents an InThreadSurveyPrivacyStatementPart. */
31673
+ class InThreadSurveyPrivacyStatementPart implements IInThreadSurveyPrivacyStatementPart {
31674
+
31675
+ /**
31676
+ * Constructs a new InThreadSurveyPrivacyStatementPart.
31677
+ * @param [properties] Properties to set
31678
+ */
31679
+ constructor(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart);
31680
+
31681
+ /** InThreadSurveyPrivacyStatementPart text. */
31682
+ public text: string;
31683
+
31684
+ /** InThreadSurveyPrivacyStatementPart url. */
31685
+ public url: string;
31686
+
31687
+ /**
31688
+ * Creates a new InThreadSurveyPrivacyStatementPart instance using the specified properties.
31689
+ * @param [properties] Properties to set
31690
+ * @returns InThreadSurveyPrivacyStatementPart instance
31691
+ */
31692
+ public static create(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart): BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart;
31693
+
31694
+ /**
31695
+ * Encodes the specified InThreadSurveyPrivacyStatementPart message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.verify|verify} messages.
31696
+ * @param message InThreadSurveyPrivacyStatementPart message or plain object to encode
31697
+ * @param [writer] Writer to encode to
31698
+ * @returns Writer
31699
+ */
31700
+ public static encode(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart, writer?: $protobuf.Writer): $protobuf.Writer;
31701
+
31702
+ /**
31703
+ * Encodes the specified InThreadSurveyPrivacyStatementPart message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.verify|verify} messages.
31704
+ * @param message InThreadSurveyPrivacyStatementPart message or plain object to encode
31705
+ * @param [writer] Writer to encode to
31706
+ * @returns Writer
31707
+ */
31708
+ public static encodeDelimited(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart, writer?: $protobuf.Writer): $protobuf.Writer;
31709
+
31710
+ /**
31711
+ * Decodes an InThreadSurveyPrivacyStatementPart message from the specified reader or buffer.
31712
+ * @param reader Reader or buffer to decode from
31713
+ * @param [length] Message length if known beforehand
31714
+ * @returns InThreadSurveyPrivacyStatementPart
31715
+ * @throws {Error} If the payload is not a reader or valid buffer
31716
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31717
+ */
31718
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart;
31719
+
31720
+ /**
31721
+ * Decodes an InThreadSurveyPrivacyStatementPart message from the specified reader or buffer, length delimited.
31722
+ * @param reader Reader or buffer to decode from
31723
+ * @returns InThreadSurveyPrivacyStatementPart
31724
+ * @throws {Error} If the payload is not a reader or valid buffer
31725
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31726
+ */
31727
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart;
31728
+
31729
+ /**
31730
+ * Verifies an InThreadSurveyPrivacyStatementPart message.
31731
+ * @param message Plain object to verify
31732
+ * @returns `null` if valid, otherwise the reason why it is not
31733
+ */
31734
+ public static verify(message: { [k: string]: any }): (string|null);
31735
+
31736
+ /**
31737
+ * Creates an InThreadSurveyPrivacyStatementPart message from a plain object. Also converts values to their respective internal types.
31738
+ * @param object Plain object
31739
+ * @returns InThreadSurveyPrivacyStatementPart
31740
+ */
31741
+ public static fromObject(object: { [k: string]: any }): BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart;
31742
+
31743
+ /**
31744
+ * Creates a plain object from an InThreadSurveyPrivacyStatementPart message. Also converts values to other types if specified.
31745
+ * @param message InThreadSurveyPrivacyStatementPart
31746
+ * @param [options] Conversion options
31747
+ * @returns Plain object
31748
+ */
31749
+ public static toObject(message: BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart, options?: $protobuf.IConversionOptions): { [k: string]: any };
31750
+
31751
+ /**
31752
+ * Converts this InThreadSurveyPrivacyStatementPart to JSON.
31753
+ * @returns JSON object
31754
+ */
31755
+ public toJSON(): { [k: string]: any };
31756
+
31757
+ /**
31758
+ * Gets the default type url for InThreadSurveyPrivacyStatementPart
31759
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
31760
+ * @returns The default type url
31761
+ */
31762
+ public static getTypeUrl(typeUrlPrefix?: string): string;
31763
+ }
31764
+
31765
+ /** Properties of an InThreadSurveyQuestion. */
31766
+ interface IInThreadSurveyQuestion {
31767
+
31768
+ /** InThreadSurveyQuestion questionText */
31769
+ questionText?: (string|null);
31770
+
31771
+ /** InThreadSurveyQuestion questionId */
31772
+ questionId?: (string|null);
31773
+
31774
+ /** InThreadSurveyQuestion questionOptions */
31775
+ questionOptions?: (BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption[]|null);
31776
+ }
31777
+
31778
+ /** Represents an InThreadSurveyQuestion. */
31779
+ class InThreadSurveyQuestion implements IInThreadSurveyQuestion {
31780
+
31781
+ /**
31782
+ * Constructs a new InThreadSurveyQuestion.
31783
+ * @param [properties] Properties to set
31784
+ */
31785
+ constructor(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion);
31786
+
31787
+ /** InThreadSurveyQuestion questionText. */
31788
+ public questionText: string;
31789
+
31790
+ /** InThreadSurveyQuestion questionId. */
31791
+ public questionId: string;
31792
+
31793
+ /** InThreadSurveyQuestion questionOptions. */
31794
+ public questionOptions: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption[];
31795
+
31796
+ /**
31797
+ * Creates a new InThreadSurveyQuestion instance using the specified properties.
31798
+ * @param [properties] Properties to set
31799
+ * @returns InThreadSurveyQuestion instance
31800
+ */
31801
+ public static create(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion): BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion;
31802
+
31803
+ /**
31804
+ * Encodes the specified InThreadSurveyQuestion message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.verify|verify} messages.
31805
+ * @param message InThreadSurveyQuestion message or plain object to encode
31806
+ * @param [writer] Writer to encode to
31807
+ * @returns Writer
31808
+ */
31809
+ public static encode(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion, writer?: $protobuf.Writer): $protobuf.Writer;
31810
+
31811
+ /**
31812
+ * Encodes the specified InThreadSurveyQuestion message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.verify|verify} messages.
31813
+ * @param message InThreadSurveyQuestion message or plain object to encode
31814
+ * @param [writer] Writer to encode to
31815
+ * @returns Writer
31816
+ */
31817
+ public static encodeDelimited(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion, writer?: $protobuf.Writer): $protobuf.Writer;
31818
+
31819
+ /**
31820
+ * Decodes an InThreadSurveyQuestion message from the specified reader or buffer.
31821
+ * @param reader Reader or buffer to decode from
31822
+ * @param [length] Message length if known beforehand
31823
+ * @returns InThreadSurveyQuestion
31824
+ * @throws {Error} If the payload is not a reader or valid buffer
31825
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31826
+ */
31827
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion;
31828
+
31829
+ /**
31830
+ * Decodes an InThreadSurveyQuestion message from the specified reader or buffer, length delimited.
31831
+ * @param reader Reader or buffer to decode from
31832
+ * @returns InThreadSurveyQuestion
31833
+ * @throws {Error} If the payload is not a reader or valid buffer
31834
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31835
+ */
31836
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion;
31837
+
31838
+ /**
31839
+ * Verifies an InThreadSurveyQuestion message.
31840
+ * @param message Plain object to verify
31841
+ * @returns `null` if valid, otherwise the reason why it is not
31842
+ */
31843
+ public static verify(message: { [k: string]: any }): (string|null);
31844
+
31845
+ /**
31846
+ * Creates an InThreadSurveyQuestion message from a plain object. Also converts values to their respective internal types.
31847
+ * @param object Plain object
31848
+ * @returns InThreadSurveyQuestion
31849
+ */
31850
+ public static fromObject(object: { [k: string]: any }): BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion;
31851
+
31852
+ /**
31853
+ * Creates a plain object from an InThreadSurveyQuestion message. Also converts values to other types if specified.
31854
+ * @param message InThreadSurveyQuestion
31855
+ * @param [options] Conversion options
31856
+ * @returns Plain object
31857
+ */
31858
+ public static toObject(message: BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion, options?: $protobuf.IConversionOptions): { [k: string]: any };
31859
+
31860
+ /**
31861
+ * Converts this InThreadSurveyQuestion to JSON.
31862
+ * @returns JSON object
31863
+ */
31864
+ public toJSON(): { [k: string]: any };
31865
+
31866
+ /**
31867
+ * Gets the default type url for InThreadSurveyQuestion
31868
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
31869
+ * @returns The default type url
31870
+ */
31871
+ public static getTypeUrl(typeUrlPrefix?: string): string;
31872
+ }
31873
+ }
31874
+
31313
31875
  /** Properties of a BotSourcesMetadata. */
31314
31876
  interface IBotSourcesMetadata {
31315
31877
 
@@ -33860,7 +34422,8 @@ export namespace BotMetadata {
33860
34422
  /** BotPromotionType enum. */
33861
34423
  enum BotPromotionType {
33862
34424
  UNKNOWN_TYPE = 0,
33863
- C50 = 1
34425
+ C50 = 1,
34426
+ SURVEY_PLATFORM = 2
33864
34427
  }
33865
34428
  }
33866
34429
 
@@ -35781,7 +36344,8 @@ export namespace StatusAttributions {
35781
36344
  enum Source {
35782
36345
  UNKNOWN = 0,
35783
36346
  RAY_BAN_META_GLASSES = 1,
35784
- OAKLEY_META_GLASSES = 2
36347
+ OAKLEY_META_GLASSES = 2,
36348
+ HYPERNOVA_GLASSES = 3
35785
36349
  }
35786
36350
  }
35787
36351