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
@@ -92,6 +92,9 @@ export namespace BotMetadata {
92
92
 
93
93
  /** BotMetadata botMessageOriginMetadata */
94
94
  botMessageOriginMetadata?: (BotMetadata.IBotMessageOriginMetadata|null);
95
+
96
+ /** BotMetadata inThreadSurveyMetadata */
97
+ inThreadSurveyMetadata?: (BotMetadata.IInThreadSurveyMetadata|null);
95
98
  }
96
99
 
97
100
  /** Represents a BotMetadata. */
@@ -190,6 +193,9 @@ export namespace BotMetadata {
190
193
  /** BotMetadata botMessageOriginMetadata. */
191
194
  public botMessageOriginMetadata?: (BotMetadata.IBotMessageOriginMetadata|null);
192
195
 
196
+ /** BotMetadata inThreadSurveyMetadata. */
197
+ public inThreadSurveyMetadata?: (BotMetadata.IInThreadSurveyMetadata|null);
198
+
193
199
  /** BotMetadata _avatarMetadata. */
194
200
  public _avatarMetadata?: "avatarMetadata";
195
201
 
@@ -277,6 +283,9 @@ export namespace BotMetadata {
277
283
  /** BotMetadata _botMessageOriginMetadata. */
278
284
  public _botMessageOriginMetadata?: "botMessageOriginMetadata";
279
285
 
286
+ /** BotMetadata _inThreadSurveyMetadata. */
287
+ public _inThreadSurveyMetadata?: "inThreadSurveyMetadata";
288
+
280
289
  /**
281
290
  * Creates a new BotMetadata instance using the specified properties.
282
291
  * @param [properties] Properties to set
@@ -763,6 +772,589 @@ export namespace BotMetadata {
763
772
  public static getTypeUrl(typeUrlPrefix?: string): string;
764
773
  }
765
774
 
775
+ /** Properties of an InThreadSurveyMetadata. */
776
+ interface IInThreadSurveyMetadata {
777
+
778
+ /** InThreadSurveyMetadata tessaSessionId */
779
+ tessaSessionId?: (string|null);
780
+
781
+ /** InThreadSurveyMetadata simonSessionId */
782
+ simonSessionId?: (string|null);
783
+
784
+ /** InThreadSurveyMetadata simonSurveyId */
785
+ simonSurveyId?: (string|null);
786
+
787
+ /** InThreadSurveyMetadata tessaRootId */
788
+ tessaRootId?: (string|null);
789
+
790
+ /** InThreadSurveyMetadata requestId */
791
+ requestId?: (string|null);
792
+
793
+ /** InThreadSurveyMetadata tessaEvent */
794
+ tessaEvent?: (string|null);
795
+
796
+ /** InThreadSurveyMetadata invitationHeaderText */
797
+ invitationHeaderText?: (string|null);
798
+
799
+ /** InThreadSurveyMetadata invitationBodyText */
800
+ invitationBodyText?: (string|null);
801
+
802
+ /** InThreadSurveyMetadata invitationCtaText */
803
+ invitationCtaText?: (string|null);
804
+
805
+ /** InThreadSurveyMetadata invitationCtaUrl */
806
+ invitationCtaUrl?: (string|null);
807
+
808
+ /** InThreadSurveyMetadata surveyTitle */
809
+ surveyTitle?: (string|null);
810
+
811
+ /** InThreadSurveyMetadata questions */
812
+ questions?: (BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion[]|null);
813
+
814
+ /** InThreadSurveyMetadata surveyContinueButtonText */
815
+ surveyContinueButtonText?: (string|null);
816
+
817
+ /** InThreadSurveyMetadata surveySubmitButtonText */
818
+ surveySubmitButtonText?: (string|null);
819
+
820
+ /** InThreadSurveyMetadata privacyStatementFull */
821
+ privacyStatementFull?: (string|null);
822
+
823
+ /** InThreadSurveyMetadata privacyStatementParts */
824
+ privacyStatementParts?: (BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart[]|null);
825
+
826
+ /** InThreadSurveyMetadata feedbackToastText */
827
+ feedbackToastText?: (string|null);
828
+ }
829
+
830
+ /** Represents an InThreadSurveyMetadata. */
831
+ class InThreadSurveyMetadata implements IInThreadSurveyMetadata {
832
+
833
+ /**
834
+ * Constructs a new InThreadSurveyMetadata.
835
+ * @param [properties] Properties to set
836
+ */
837
+ constructor(properties?: BotMetadata.IInThreadSurveyMetadata);
838
+
839
+ /** InThreadSurveyMetadata tessaSessionId. */
840
+ public tessaSessionId?: (string|null);
841
+
842
+ /** InThreadSurveyMetadata simonSessionId. */
843
+ public simonSessionId?: (string|null);
844
+
845
+ /** InThreadSurveyMetadata simonSurveyId. */
846
+ public simonSurveyId?: (string|null);
847
+
848
+ /** InThreadSurveyMetadata tessaRootId. */
849
+ public tessaRootId?: (string|null);
850
+
851
+ /** InThreadSurveyMetadata requestId. */
852
+ public requestId?: (string|null);
853
+
854
+ /** InThreadSurveyMetadata tessaEvent. */
855
+ public tessaEvent?: (string|null);
856
+
857
+ /** InThreadSurveyMetadata invitationHeaderText. */
858
+ public invitationHeaderText?: (string|null);
859
+
860
+ /** InThreadSurveyMetadata invitationBodyText. */
861
+ public invitationBodyText?: (string|null);
862
+
863
+ /** InThreadSurveyMetadata invitationCtaText. */
864
+ public invitationCtaText?: (string|null);
865
+
866
+ /** InThreadSurveyMetadata invitationCtaUrl. */
867
+ public invitationCtaUrl?: (string|null);
868
+
869
+ /** InThreadSurveyMetadata surveyTitle. */
870
+ public surveyTitle?: (string|null);
871
+
872
+ /** InThreadSurveyMetadata questions. */
873
+ public questions: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion[];
874
+
875
+ /** InThreadSurveyMetadata surveyContinueButtonText. */
876
+ public surveyContinueButtonText?: (string|null);
877
+
878
+ /** InThreadSurveyMetadata surveySubmitButtonText. */
879
+ public surveySubmitButtonText?: (string|null);
880
+
881
+ /** InThreadSurveyMetadata privacyStatementFull. */
882
+ public privacyStatementFull?: (string|null);
883
+
884
+ /** InThreadSurveyMetadata privacyStatementParts. */
885
+ public privacyStatementParts: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart[];
886
+
887
+ /** InThreadSurveyMetadata feedbackToastText. */
888
+ public feedbackToastText?: (string|null);
889
+
890
+ /** InThreadSurveyMetadata _tessaSessionId. */
891
+ public _tessaSessionId?: "tessaSessionId";
892
+
893
+ /** InThreadSurveyMetadata _simonSessionId. */
894
+ public _simonSessionId?: "simonSessionId";
895
+
896
+ /** InThreadSurveyMetadata _simonSurveyId. */
897
+ public _simonSurveyId?: "simonSurveyId";
898
+
899
+ /** InThreadSurveyMetadata _tessaRootId. */
900
+ public _tessaRootId?: "tessaRootId";
901
+
902
+ /** InThreadSurveyMetadata _requestId. */
903
+ public _requestId?: "requestId";
904
+
905
+ /** InThreadSurveyMetadata _tessaEvent. */
906
+ public _tessaEvent?: "tessaEvent";
907
+
908
+ /** InThreadSurveyMetadata _invitationHeaderText. */
909
+ public _invitationHeaderText?: "invitationHeaderText";
910
+
911
+ /** InThreadSurveyMetadata _invitationBodyText. */
912
+ public _invitationBodyText?: "invitationBodyText";
913
+
914
+ /** InThreadSurveyMetadata _invitationCtaText. */
915
+ public _invitationCtaText?: "invitationCtaText";
916
+
917
+ /** InThreadSurveyMetadata _invitationCtaUrl. */
918
+ public _invitationCtaUrl?: "invitationCtaUrl";
919
+
920
+ /** InThreadSurveyMetadata _surveyTitle. */
921
+ public _surveyTitle?: "surveyTitle";
922
+
923
+ /** InThreadSurveyMetadata _surveyContinueButtonText. */
924
+ public _surveyContinueButtonText?: "surveyContinueButtonText";
925
+
926
+ /** InThreadSurveyMetadata _surveySubmitButtonText. */
927
+ public _surveySubmitButtonText?: "surveySubmitButtonText";
928
+
929
+ /** InThreadSurveyMetadata _privacyStatementFull. */
930
+ public _privacyStatementFull?: "privacyStatementFull";
931
+
932
+ /** InThreadSurveyMetadata _feedbackToastText. */
933
+ public _feedbackToastText?: "feedbackToastText";
934
+
935
+ /**
936
+ * Creates a new InThreadSurveyMetadata instance using the specified properties.
937
+ * @param [properties] Properties to set
938
+ * @returns InThreadSurveyMetadata instance
939
+ */
940
+ public static create(properties?: BotMetadata.IInThreadSurveyMetadata): BotMetadata.InThreadSurveyMetadata;
941
+
942
+ /**
943
+ * Encodes the specified InThreadSurveyMetadata message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.verify|verify} messages.
944
+ * @param message InThreadSurveyMetadata message or plain object to encode
945
+ * @param [writer] Writer to encode to
946
+ * @returns Writer
947
+ */
948
+ public static encode(message: BotMetadata.IInThreadSurveyMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
949
+
950
+ /**
951
+ * Encodes the specified InThreadSurveyMetadata message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.verify|verify} messages.
952
+ * @param message InThreadSurveyMetadata message or plain object to encode
953
+ * @param [writer] Writer to encode to
954
+ * @returns Writer
955
+ */
956
+ public static encodeDelimited(message: BotMetadata.IInThreadSurveyMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
957
+
958
+ /**
959
+ * Decodes an InThreadSurveyMetadata message from the specified reader or buffer.
960
+ * @param reader Reader or buffer to decode from
961
+ * @param [length] Message length if known beforehand
962
+ * @returns InThreadSurveyMetadata
963
+ * @throws {Error} If the payload is not a reader or valid buffer
964
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
965
+ */
966
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.InThreadSurveyMetadata;
967
+
968
+ /**
969
+ * Decodes an InThreadSurveyMetadata message from the specified reader or buffer, length delimited.
970
+ * @param reader Reader or buffer to decode from
971
+ * @returns InThreadSurveyMetadata
972
+ * @throws {Error} If the payload is not a reader or valid buffer
973
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
974
+ */
975
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.InThreadSurveyMetadata;
976
+
977
+ /**
978
+ * Verifies an InThreadSurveyMetadata message.
979
+ * @param message Plain object to verify
980
+ * @returns `null` if valid, otherwise the reason why it is not
981
+ */
982
+ public static verify(message: { [k: string]: any }): (string|null);
983
+
984
+ /**
985
+ * Creates an InThreadSurveyMetadata message from a plain object. Also converts values to their respective internal types.
986
+ * @param object Plain object
987
+ * @returns InThreadSurveyMetadata
988
+ */
989
+ public static fromObject(object: { [k: string]: any }): BotMetadata.InThreadSurveyMetadata;
990
+
991
+ /**
992
+ * Creates a plain object from an InThreadSurveyMetadata message. Also converts values to other types if specified.
993
+ * @param message InThreadSurveyMetadata
994
+ * @param [options] Conversion options
995
+ * @returns Plain object
996
+ */
997
+ public static toObject(message: BotMetadata.InThreadSurveyMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
998
+
999
+ /**
1000
+ * Converts this InThreadSurveyMetadata to JSON.
1001
+ * @returns JSON object
1002
+ */
1003
+ public toJSON(): { [k: string]: any };
1004
+
1005
+ /**
1006
+ * Gets the default type url for InThreadSurveyMetadata
1007
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1008
+ * @returns The default type url
1009
+ */
1010
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1011
+ }
1012
+
1013
+ namespace InThreadSurveyMetadata {
1014
+
1015
+ /** Properties of an InThreadSurveyOption. */
1016
+ interface IInThreadSurveyOption {
1017
+
1018
+ /** InThreadSurveyOption stringValue */
1019
+ stringValue?: (string|null);
1020
+
1021
+ /** InThreadSurveyOption numericValue */
1022
+ numericValue?: (number|null);
1023
+
1024
+ /** InThreadSurveyOption textTranslated */
1025
+ textTranslated?: (string|null);
1026
+ }
1027
+
1028
+ /** Represents an InThreadSurveyOption. */
1029
+ class InThreadSurveyOption implements IInThreadSurveyOption {
1030
+
1031
+ /**
1032
+ * Constructs a new InThreadSurveyOption.
1033
+ * @param [properties] Properties to set
1034
+ */
1035
+ constructor(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption);
1036
+
1037
+ /** InThreadSurveyOption stringValue. */
1038
+ public stringValue?: (string|null);
1039
+
1040
+ /** InThreadSurveyOption numericValue. */
1041
+ public numericValue?: (number|null);
1042
+
1043
+ /** InThreadSurveyOption textTranslated. */
1044
+ public textTranslated?: (string|null);
1045
+
1046
+ /** InThreadSurveyOption _stringValue. */
1047
+ public _stringValue?: "stringValue";
1048
+
1049
+ /** InThreadSurveyOption _numericValue. */
1050
+ public _numericValue?: "numericValue";
1051
+
1052
+ /** InThreadSurveyOption _textTranslated. */
1053
+ public _textTranslated?: "textTranslated";
1054
+
1055
+ /**
1056
+ * Creates a new InThreadSurveyOption instance using the specified properties.
1057
+ * @param [properties] Properties to set
1058
+ * @returns InThreadSurveyOption instance
1059
+ */
1060
+ public static create(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
1061
+
1062
+ /**
1063
+ * Encodes the specified InThreadSurveyOption message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.verify|verify} messages.
1064
+ * @param message InThreadSurveyOption message or plain object to encode
1065
+ * @param [writer] Writer to encode to
1066
+ * @returns Writer
1067
+ */
1068
+ public static encode(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption, writer?: $protobuf.Writer): $protobuf.Writer;
1069
+
1070
+ /**
1071
+ * Encodes the specified InThreadSurveyOption message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption.verify|verify} messages.
1072
+ * @param message InThreadSurveyOption message or plain object to encode
1073
+ * @param [writer] Writer to encode to
1074
+ * @returns Writer
1075
+ */
1076
+ public static encodeDelimited(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption, writer?: $protobuf.Writer): $protobuf.Writer;
1077
+
1078
+ /**
1079
+ * Decodes an InThreadSurveyOption message from the specified reader or buffer.
1080
+ * @param reader Reader or buffer to decode from
1081
+ * @param [length] Message length if known beforehand
1082
+ * @returns InThreadSurveyOption
1083
+ * @throws {Error} If the payload is not a reader or valid buffer
1084
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1085
+ */
1086
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
1087
+
1088
+ /**
1089
+ * Decodes an InThreadSurveyOption message from the specified reader or buffer, length delimited.
1090
+ * @param reader Reader or buffer to decode from
1091
+ * @returns InThreadSurveyOption
1092
+ * @throws {Error} If the payload is not a reader or valid buffer
1093
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1094
+ */
1095
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
1096
+
1097
+ /**
1098
+ * Verifies an InThreadSurveyOption message.
1099
+ * @param message Plain object to verify
1100
+ * @returns `null` if valid, otherwise the reason why it is not
1101
+ */
1102
+ public static verify(message: { [k: string]: any }): (string|null);
1103
+
1104
+ /**
1105
+ * Creates an InThreadSurveyOption message from a plain object. Also converts values to their respective internal types.
1106
+ * @param object Plain object
1107
+ * @returns InThreadSurveyOption
1108
+ */
1109
+ public static fromObject(object: { [k: string]: any }): BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption;
1110
+
1111
+ /**
1112
+ * Creates a plain object from an InThreadSurveyOption message. Also converts values to other types if specified.
1113
+ * @param message InThreadSurveyOption
1114
+ * @param [options] Conversion options
1115
+ * @returns Plain object
1116
+ */
1117
+ public static toObject(message: BotMetadata.InThreadSurveyMetadata.InThreadSurveyOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
1118
+
1119
+ /**
1120
+ * Converts this InThreadSurveyOption to JSON.
1121
+ * @returns JSON object
1122
+ */
1123
+ public toJSON(): { [k: string]: any };
1124
+
1125
+ /**
1126
+ * Gets the default type url for InThreadSurveyOption
1127
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1128
+ * @returns The default type url
1129
+ */
1130
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1131
+ }
1132
+
1133
+ /** Properties of an InThreadSurveyPrivacyStatementPart. */
1134
+ interface IInThreadSurveyPrivacyStatementPart {
1135
+
1136
+ /** InThreadSurveyPrivacyStatementPart text */
1137
+ text?: (string|null);
1138
+
1139
+ /** InThreadSurveyPrivacyStatementPart url */
1140
+ url?: (string|null);
1141
+ }
1142
+
1143
+ /** Represents an InThreadSurveyPrivacyStatementPart. */
1144
+ class InThreadSurveyPrivacyStatementPart implements IInThreadSurveyPrivacyStatementPart {
1145
+
1146
+ /**
1147
+ * Constructs a new InThreadSurveyPrivacyStatementPart.
1148
+ * @param [properties] Properties to set
1149
+ */
1150
+ constructor(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart);
1151
+
1152
+ /** InThreadSurveyPrivacyStatementPart text. */
1153
+ public text?: (string|null);
1154
+
1155
+ /** InThreadSurveyPrivacyStatementPart url. */
1156
+ public url?: (string|null);
1157
+
1158
+ /** InThreadSurveyPrivacyStatementPart _text. */
1159
+ public _text?: "text";
1160
+
1161
+ /** InThreadSurveyPrivacyStatementPart _url. */
1162
+ public _url?: "url";
1163
+
1164
+ /**
1165
+ * Creates a new InThreadSurveyPrivacyStatementPart instance using the specified properties.
1166
+ * @param [properties] Properties to set
1167
+ * @returns InThreadSurveyPrivacyStatementPart instance
1168
+ */
1169
+ public static create(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart): BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart;
1170
+
1171
+ /**
1172
+ * Encodes the specified InThreadSurveyPrivacyStatementPart message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.verify|verify} messages.
1173
+ * @param message InThreadSurveyPrivacyStatementPart message or plain object to encode
1174
+ * @param [writer] Writer to encode to
1175
+ * @returns Writer
1176
+ */
1177
+ public static encode(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart, writer?: $protobuf.Writer): $protobuf.Writer;
1178
+
1179
+ /**
1180
+ * Encodes the specified InThreadSurveyPrivacyStatementPart message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart.verify|verify} messages.
1181
+ * @param message InThreadSurveyPrivacyStatementPart message or plain object to encode
1182
+ * @param [writer] Writer to encode to
1183
+ * @returns Writer
1184
+ */
1185
+ public static encodeDelimited(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyPrivacyStatementPart, writer?: $protobuf.Writer): $protobuf.Writer;
1186
+
1187
+ /**
1188
+ * Decodes an InThreadSurveyPrivacyStatementPart message from the specified reader or buffer.
1189
+ * @param reader Reader or buffer to decode from
1190
+ * @param [length] Message length if known beforehand
1191
+ * @returns InThreadSurveyPrivacyStatementPart
1192
+ * @throws {Error} If the payload is not a reader or valid buffer
1193
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1194
+ */
1195
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart;
1196
+
1197
+ /**
1198
+ * Decodes an InThreadSurveyPrivacyStatementPart message from the specified reader or buffer, length delimited.
1199
+ * @param reader Reader or buffer to decode from
1200
+ * @returns InThreadSurveyPrivacyStatementPart
1201
+ * @throws {Error} If the payload is not a reader or valid buffer
1202
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1203
+ */
1204
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart;
1205
+
1206
+ /**
1207
+ * Verifies an InThreadSurveyPrivacyStatementPart message.
1208
+ * @param message Plain object to verify
1209
+ * @returns `null` if valid, otherwise the reason why it is not
1210
+ */
1211
+ public static verify(message: { [k: string]: any }): (string|null);
1212
+
1213
+ /**
1214
+ * Creates an InThreadSurveyPrivacyStatementPart message from a plain object. Also converts values to their respective internal types.
1215
+ * @param object Plain object
1216
+ * @returns InThreadSurveyPrivacyStatementPart
1217
+ */
1218
+ public static fromObject(object: { [k: string]: any }): BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart;
1219
+
1220
+ /**
1221
+ * Creates a plain object from an InThreadSurveyPrivacyStatementPart message. Also converts values to other types if specified.
1222
+ * @param message InThreadSurveyPrivacyStatementPart
1223
+ * @param [options] Conversion options
1224
+ * @returns Plain object
1225
+ */
1226
+ public static toObject(message: BotMetadata.InThreadSurveyMetadata.InThreadSurveyPrivacyStatementPart, options?: $protobuf.IConversionOptions): { [k: string]: any };
1227
+
1228
+ /**
1229
+ * Converts this InThreadSurveyPrivacyStatementPart to JSON.
1230
+ * @returns JSON object
1231
+ */
1232
+ public toJSON(): { [k: string]: any };
1233
+
1234
+ /**
1235
+ * Gets the default type url for InThreadSurveyPrivacyStatementPart
1236
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1237
+ * @returns The default type url
1238
+ */
1239
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1240
+ }
1241
+
1242
+ /** Properties of an InThreadSurveyQuestion. */
1243
+ interface IInThreadSurveyQuestion {
1244
+
1245
+ /** InThreadSurveyQuestion questionText */
1246
+ questionText?: (string|null);
1247
+
1248
+ /** InThreadSurveyQuestion questionId */
1249
+ questionId?: (string|null);
1250
+
1251
+ /** InThreadSurveyQuestion questionOptions */
1252
+ questionOptions?: (BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption[]|null);
1253
+ }
1254
+
1255
+ /** Represents an InThreadSurveyQuestion. */
1256
+ class InThreadSurveyQuestion implements IInThreadSurveyQuestion {
1257
+
1258
+ /**
1259
+ * Constructs a new InThreadSurveyQuestion.
1260
+ * @param [properties] Properties to set
1261
+ */
1262
+ constructor(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion);
1263
+
1264
+ /** InThreadSurveyQuestion questionText. */
1265
+ public questionText?: (string|null);
1266
+
1267
+ /** InThreadSurveyQuestion questionId. */
1268
+ public questionId?: (string|null);
1269
+
1270
+ /** InThreadSurveyQuestion questionOptions. */
1271
+ public questionOptions: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyOption[];
1272
+
1273
+ /** InThreadSurveyQuestion _questionText. */
1274
+ public _questionText?: "questionText";
1275
+
1276
+ /** InThreadSurveyQuestion _questionId. */
1277
+ public _questionId?: "questionId";
1278
+
1279
+ /**
1280
+ * Creates a new InThreadSurveyQuestion instance using the specified properties.
1281
+ * @param [properties] Properties to set
1282
+ * @returns InThreadSurveyQuestion instance
1283
+ */
1284
+ public static create(properties?: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion): BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion;
1285
+
1286
+ /**
1287
+ * Encodes the specified InThreadSurveyQuestion message. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.verify|verify} messages.
1288
+ * @param message InThreadSurveyQuestion message or plain object to encode
1289
+ * @param [writer] Writer to encode to
1290
+ * @returns Writer
1291
+ */
1292
+ public static encode(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion, writer?: $protobuf.Writer): $protobuf.Writer;
1293
+
1294
+ /**
1295
+ * Encodes the specified InThreadSurveyQuestion message, length delimited. Does not implicitly {@link BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion.verify|verify} messages.
1296
+ * @param message InThreadSurveyQuestion message or plain object to encode
1297
+ * @param [writer] Writer to encode to
1298
+ * @returns Writer
1299
+ */
1300
+ public static encodeDelimited(message: BotMetadata.InThreadSurveyMetadata.IInThreadSurveyQuestion, writer?: $protobuf.Writer): $protobuf.Writer;
1301
+
1302
+ /**
1303
+ * Decodes an InThreadSurveyQuestion message from the specified reader or buffer.
1304
+ * @param reader Reader or buffer to decode from
1305
+ * @param [length] Message length if known beforehand
1306
+ * @returns InThreadSurveyQuestion
1307
+ * @throws {Error} If the payload is not a reader or valid buffer
1308
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1309
+ */
1310
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion;
1311
+
1312
+ /**
1313
+ * Decodes an InThreadSurveyQuestion message from the specified reader or buffer, length delimited.
1314
+ * @param reader Reader or buffer to decode from
1315
+ * @returns InThreadSurveyQuestion
1316
+ * @throws {Error} If the payload is not a reader or valid buffer
1317
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1318
+ */
1319
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion;
1320
+
1321
+ /**
1322
+ * Verifies an InThreadSurveyQuestion message.
1323
+ * @param message Plain object to verify
1324
+ * @returns `null` if valid, otherwise the reason why it is not
1325
+ */
1326
+ public static verify(message: { [k: string]: any }): (string|null);
1327
+
1328
+ /**
1329
+ * Creates an InThreadSurveyQuestion message from a plain object. Also converts values to their respective internal types.
1330
+ * @param object Plain object
1331
+ * @returns InThreadSurveyQuestion
1332
+ */
1333
+ public static fromObject(object: { [k: string]: any }): BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion;
1334
+
1335
+ /**
1336
+ * Creates a plain object from an InThreadSurveyQuestion message. Also converts values to other types if specified.
1337
+ * @param message InThreadSurveyQuestion
1338
+ * @param [options] Conversion options
1339
+ * @returns Plain object
1340
+ */
1341
+ public static toObject(message: BotMetadata.InThreadSurveyMetadata.InThreadSurveyQuestion, options?: $protobuf.IConversionOptions): { [k: string]: any };
1342
+
1343
+ /**
1344
+ * Converts this InThreadSurveyQuestion to JSON.
1345
+ * @returns JSON object
1346
+ */
1347
+ public toJSON(): { [k: string]: any };
1348
+
1349
+ /**
1350
+ * Gets the default type url for InThreadSurveyQuestion
1351
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1352
+ * @returns The default type url
1353
+ */
1354
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1355
+ }
1356
+ }
1357
+
766
1358
  /** Properties of a BotSourcesMetadata. */
767
1359
  interface IBotSourcesMetadata {
768
1360
 
@@ -3463,7 +4055,8 @@ export namespace BotMetadata {
3463
4055
  /** BotPromotionType enum. */
3464
4056
  enum BotPromotionType {
3465
4057
  UNKNOWN_TYPE = 0,
3466
- C50 = 1
4058
+ C50 = 1,
4059
+ SURVEY_PLATFORM = 2
3467
4060
  }
3468
4061
  }
3469
4062