dcodeindra-baileyspro 2.3.9

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 (286) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2534 -0
  3. package/WAProto/Adv/Adv.d.ts +518 -0
  4. package/WAProto/Adv/Adv.js +1734 -0
  5. package/WAProto/Adv/Adv.proto +36 -0
  6. package/WAProto/BotMetadata/BotMetadata.d.ts +5745 -0
  7. package/WAProto/BotMetadata/BotMetadata.js +16291 -0
  8. package/WAProto/BotMetadata/BotMetadata.proto +463 -0
  9. package/WAProto/Cert/Cert.d.ts +497 -0
  10. package/WAProto/Cert/Cert.js +1503 -0
  11. package/WAProto/Cert/Cert.proto +28 -0
  12. package/WAProto/ChatLockSettings/ChatLockSettings.d.ts +391 -0
  13. package/WAProto/ChatLockSettings/ChatLockSettings.js +1155 -0
  14. package/WAProto/ChatLockSettings/ChatLockSettings.proto +7 -0
  15. package/WAProto/CompanionReg/CompanionReg.d.ts +1055 -0
  16. package/WAProto/CompanionReg/CompanionReg.js +3532 -0
  17. package/WAProto/CompanionReg/CompanionReg.proto +89 -0
  18. package/WAProto/DeviceCapabilities/DeviceCapabilities.d.ts +187 -0
  19. package/WAProto/DeviceCapabilities/DeviceCapabilities.js +520 -0
  20. package/WAProto/DeviceCapabilities/DeviceCapabilities.proto +14 -0
  21. package/WAProto/E2E/E2E.d.ts +28417 -0
  22. package/WAProto/E2E/E2E.js +98438 -0
  23. package/WAProto/E2E/E2E.proto +2289 -0
  24. package/WAProto/Ephemeral/Ephemeral.d.ts +95 -0
  25. package/WAProto/Ephemeral/Ephemeral.js +269 -0
  26. package/WAProto/Ephemeral/Ephemeral.proto +6 -0
  27. package/WAProto/HistorySync/HistorySync.d.ts +40728 -0
  28. package/WAProto/HistorySync/HistorySync.js +142980 -0
  29. package/WAProto/HistorySync/HistorySync.proto +207 -0
  30. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.d.ts +189 -0
  31. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.js +585 -0
  32. package/WAProto/LidMigrationSyncPayload/LidMigrationSyncPayload.proto +11 -0
  33. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.d.ts +461 -0
  34. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.js +1559 -0
  35. package/WAProto/MdStorageChatRowOpaqueData/MdStorageChatRowOpaqueData.proto +37 -0
  36. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +29294 -0
  37. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +101732 -0
  38. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.proto +76 -0
  39. package/WAProto/MmsRetry/MmsRetry.d.ts +200 -0
  40. package/WAProto/MmsRetry/MmsRetry.js +586 -0
  41. package/WAProto/MmsRetry/MmsRetry.proto +17 -0
  42. package/WAProto/Protocol/Protocol.d.ts +218 -0
  43. package/WAProto/Protocol/Protocol.js +701 -0
  44. package/WAProto/Protocol/Protocol.proto +20 -0
  45. package/WAProto/Reporting/Reporting.d.ts +301 -0
  46. package/WAProto/Reporting/Reporting.js +989 -0
  47. package/WAProto/Reporting/Reporting.proto +19 -0
  48. package/WAProto/ServerSync/ServerSync.d.ts +1050 -0
  49. package/WAProto/ServerSync/ServerSync.js +3176 -0
  50. package/WAProto/ServerSync/ServerSync.proto +59 -0
  51. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.d.ts +1507 -0
  52. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.js +4756 -0
  53. package/WAProto/SignalLocalStorageProtocol/SignalLocalStorageProtocol.proto +88 -0
  54. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.d.ts +617 -0
  55. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.js +1940 -0
  56. package/WAProto/SignalWhisperTextProtocol/SignalWhisperTextProtocol.proto +38 -0
  57. package/WAProto/StatusAttributions/StatusAttributions.d.ts +636 -0
  58. package/WAProto/StatusAttributions/StatusAttributions.js +2037 -0
  59. package/WAProto/StatusAttributions/StatusAttributions.proto +61 -0
  60. package/WAProto/SyncAction/SyncAction.d.ts +7227 -0
  61. package/WAProto/SyncAction/SyncAction.js +22271 -0
  62. package/WAProto/SyncAction/SyncAction.proto +423 -0
  63. package/WAProto/UserPassword/UserPassword.d.ts +298 -0
  64. package/WAProto/UserPassword/UserPassword.js +898 -0
  65. package/WAProto/UserPassword/UserPassword.proto +27 -0
  66. package/WAProto/VnameCert/VnameCert.d.ts +658 -0
  67. package/WAProto/VnameCert/VnameCert.js +2225 -0
  68. package/WAProto/VnameCert/VnameCert.proto +60 -0
  69. package/WAProto/Wa6/Wa6.d.ts +1613 -0
  70. package/WAProto/Wa6/Wa6.js +6299 -0
  71. package/WAProto/Wa6/Wa6.proto +229 -0
  72. package/WAProto/Web/Web.d.ts +31718 -0
  73. package/WAProto/Web/Web.js +113402 -0
  74. package/WAProto/Web/Web.proto +545 -0
  75. package/WAProto/index.d.ts +49 -0
  76. package/WAProto/index.js +28 -0
  77. package/WASignalGroup/GroupProtocol.js +1771 -0
  78. package/WASignalGroup/ciphertext_message.js +10 -0
  79. package/WASignalGroup/group_cipher.js +103 -0
  80. package/WASignalGroup/group_session_builder.js +39 -0
  81. package/WASignalGroup/index.js +5 -0
  82. package/WASignalGroup/keyhelper.js +17 -0
  83. package/WASignalGroup/protobufs.js +2 -0
  84. package/WASignalGroup/queue_job.js +64 -0
  85. package/WASignalGroup/sender_chain_key.js +38 -0
  86. package/WASignalGroup/sender_key_distribution_message.js +68 -0
  87. package/WASignalGroup/sender_key_message.js +79 -0
  88. package/WASignalGroup/sender_key_name.js +59 -0
  89. package/WASignalGroup/sender_key_record.js +47 -0
  90. package/WASignalGroup/sender_key_state.js +110 -0
  91. package/WASignalGroup/sender_message_key.js +30 -0
  92. package/check-node-version.js +10 -0
  93. package/lib/Defaults/baileys-version.json +3 -0
  94. package/lib/Defaults/index.d.ts +51 -0
  95. package/lib/Defaults/index.js +108 -0
  96. package/lib/Defaults/phonenumber-mcc.json +223 -0
  97. package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
  98. package/lib/Signal/Group/ciphertext-message.js +19 -0
  99. package/lib/Signal/Group/group-session-builder.d.ts +17 -0
  100. package/lib/Signal/Group/group-session-builder.js +72 -0
  101. package/lib/Signal/Group/group_cipher.d.ts +19 -0
  102. package/lib/Signal/Group/group_cipher.js +99 -0
  103. package/lib/Signal/Group/index.d.ts +11 -0
  104. package/lib/Signal/Group/index.js +61 -0
  105. package/lib/Signal/Group/keyhelper.d.ts +16 -0
  106. package/lib/Signal/Group/keyhelper.js +66 -0
  107. package/lib/Signal/Group/queue-job.d.ts +1 -0
  108. package/lib/Signal/Group/queue-job.js +64 -0
  109. package/lib/Signal/Group/sender-chain-key.d.ts +14 -0
  110. package/lib/Signal/Group/sender-chain-key.js +39 -0
  111. package/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
  112. package/lib/Signal/Group/sender-key-distribution-message.js +71 -0
  113. package/lib/Signal/Group/sender-key-message.d.ts +19 -0
  114. package/lib/Signal/Group/sender-key-message.js +73 -0
  115. package/lib/Signal/Group/sender-key-name.d.ts +19 -0
  116. package/lib/Signal/Group/sender-key-name.js +59 -0
  117. package/lib/Signal/Group/sender-key-record.d.ts +32 -0
  118. package/lib/Signal/Group/sender-key-record.js +53 -0
  119. package/lib/Signal/Group/sender-key-record.ts +77 -0
  120. package/lib/Signal/Group/sender-key-state.d.ts +44 -0
  121. package/lib/Signal/Group/sender-key-state.js +104 -0
  122. package/lib/Signal/Group/sender-message-key.d.ts +11 -0
  123. package/lib/Signal/Group/sender-message-key.js +33 -0
  124. package/lib/Signal/libsignal.d.ts +3 -0
  125. package/lib/Signal/libsignal.js +153 -0
  126. package/lib/Socket/Client/index.d.ts +2 -0
  127. package/lib/Socket/Client/index.js +18 -0
  128. package/lib/Socket/Client/types.d.ts +15 -0
  129. package/lib/Socket/Client/types.js +14 -0
  130. package/lib/Socket/Client/websocket.d.ts +12 -0
  131. package/lib/Socket/Client/websocket.js +57 -0
  132. package/lib/Socket/business.d.ts +181 -0
  133. package/lib/Socket/business.js +259 -0
  134. package/lib/Socket/chats.d.ts +95 -0
  135. package/lib/Socket/chats.js +906 -0
  136. package/lib/Socket/community.d.ts +131 -0
  137. package/lib/Socket/community.js +369 -0
  138. package/lib/Socket/groups.d.ts +122 -0
  139. package/lib/Socket/groups.js +360 -0
  140. package/lib/Socket/index.d.ts +183 -0
  141. package/lib/Socket/index.js +10 -0
  142. package/lib/Socket/messages-recv.d.ts +170 -0
  143. package/lib/Socket/messages-recv.js +1074 -0
  144. package/lib/Socket/messages-send.d.ts +161 -0
  145. package/lib/Socket/messages-send.js +982 -0
  146. package/lib/Socket/newsletter.d.ts +140 -0
  147. package/lib/Socket/newsletter.js +242 -0
  148. package/lib/Socket/socket.d.ts +43 -0
  149. package/lib/Socket/socket.js +749 -0
  150. package/lib/Socket/usync.d.ts +36 -0
  151. package/lib/Socket/usync.js +71 -0
  152. package/lib/Store/index.d.ts +4 -0
  153. package/lib/Store/index.js +20 -0
  154. package/lib/Store/make-cache-manager-store.d.ts +13 -0
  155. package/lib/Store/make-cache-manager-store.js +77 -0
  156. package/lib/Store/make-in-memory-store.d.ts +117 -0
  157. package/lib/Store/make-in-memory-store.js +420 -0
  158. package/lib/Store/make-ordered-dictionary.d.ts +12 -0
  159. package/lib/Store/make-ordered-dictionary.js +83 -0
  160. package/lib/Store/object-repository.d.ts +10 -0
  161. package/lib/Store/object-repository.js +28 -0
  162. package/lib/Types/Auth.d.ts +103 -0
  163. package/lib/Types/Auth.js +2 -0
  164. package/lib/Types/Call.d.ts +13 -0
  165. package/lib/Types/Call.js +2 -0
  166. package/lib/Types/Chat.d.ts +115 -0
  167. package/lib/Types/Chat.js +6 -0
  168. package/lib/Types/Contact.d.ts +35 -0
  169. package/lib/Types/Contact.js +2 -0
  170. package/lib/Types/Events.d.ts +208 -0
  171. package/lib/Types/Events.js +2 -0
  172. package/lib/Types/GroupMetadata.d.ts +81 -0
  173. package/lib/Types/GroupMetadata.js +2 -0
  174. package/lib/Types/Label.d.ts +46 -0
  175. package/lib/Types/Label.js +28 -0
  176. package/lib/Types/LabelAssociation.d.ts +29 -0
  177. package/lib/Types/LabelAssociation.js +10 -0
  178. package/lib/Types/Message.d.ts +480 -0
  179. package/lib/Types/Message.js +9 -0
  180. package/lib/Types/MexUpdates.d.ts +9 -0
  181. package/lib/Types/MexUpdates.js +18 -0
  182. package/lib/Types/Newsletter.d.ts +92 -0
  183. package/lib/Types/Newsletter.js +33 -0
  184. package/lib/Types/Product.d.ts +78 -0
  185. package/lib/Types/Product.js +2 -0
  186. package/lib/Types/Signal.d.ts +57 -0
  187. package/lib/Types/Signal.js +2 -0
  188. package/lib/Types/Socket.d.ts +116 -0
  189. package/lib/Types/Socket.js +2 -0
  190. package/lib/Types/State.d.ts +27 -0
  191. package/lib/Types/State.js +2 -0
  192. package/lib/Types/USync.d.ts +25 -0
  193. package/lib/Types/USync.js +2 -0
  194. package/lib/Types/index.d.ts +70 -0
  195. package/lib/Types/index.js +42 -0
  196. package/lib/Utils/auth-utils.d.ts +18 -0
  197. package/lib/Utils/auth-utils.js +198 -0
  198. package/lib/Utils/baileys-event-stream.d.ts +16 -0
  199. package/lib/Utils/baileys-event-stream.js +64 -0
  200. package/lib/Utils/business.d.ts +22 -0
  201. package/lib/Utils/business.js +243 -0
  202. package/lib/Utils/chat-utils.d.ts +72 -0
  203. package/lib/Utils/chat-utils.js +762 -0
  204. package/lib/Utils/crypto.d.ts +40 -0
  205. package/lib/Utils/crypto.js +150 -0
  206. package/lib/Utils/decode-wa-message.d.ts +252 -0
  207. package/lib/Utils/decode-wa-message.js +232 -0
  208. package/lib/Utils/event-buffer.d.ts +35 -0
  209. package/lib/Utils/event-buffer.js +539 -0
  210. package/lib/Utils/generics.d.ts +96 -0
  211. package/lib/Utils/generics.js +553 -0
  212. package/lib/Utils/history.d.ts +29 -0
  213. package/lib/Utils/history.js +109 -0
  214. package/lib/Utils/index.d.ts +19 -0
  215. package/lib/Utils/index.js +35 -0
  216. package/lib/Utils/link-preview.d.ts +21 -0
  217. package/lib/Utils/link-preview.js +112 -0
  218. package/lib/Utils/logger.d.ts +11 -0
  219. package/lib/Utils/logger.js +7 -0
  220. package/lib/Utils/lt-hash.d.ts +12 -0
  221. package/lib/Utils/lt-hash.js +53 -0
  222. package/lib/Utils/make-mutex.d.ts +7 -0
  223. package/lib/Utils/make-mutex.js +45 -0
  224. package/lib/Utils/messages-media.d.ts +104 -0
  225. package/lib/Utils/messages-media.js +751 -0
  226. package/lib/Utils/messages.d.ts +80 -0
  227. package/lib/Utils/messages.js +1741 -0
  228. package/lib/Utils/noise-handler.d.ts +19 -0
  229. package/lib/Utils/noise-handler.js +150 -0
  230. package/lib/Utils/process-message.d.ts +41 -0
  231. package/lib/Utils/process-message.js +391 -0
  232. package/lib/Utils/signal.d.ts +33 -0
  233. package/lib/Utils/signal.js +154 -0
  234. package/lib/Utils/use-mongo-file-auth-state.d.ts +5 -0
  235. package/lib/Utils/use-mongo-file-auth-state.js +75 -0
  236. package/lib/Utils/use-multi-file-auth-state.d.ts +12 -0
  237. package/lib/Utils/use-multi-file-auth-state.js +123 -0
  238. package/lib/Utils/use-single-file-auth-state.d.ts +12 -0
  239. package/lib/Utils/use-single-file-auth-state.js +75 -0
  240. package/lib/Utils/validate-connection.d.ts +10 -0
  241. package/lib/Utils/validate-connection.js +174 -0
  242. package/lib/WABinary/constants.d.ts +27 -0
  243. package/lib/WABinary/constants.js +45 -0
  244. package/lib/WABinary/decode.d.ts +6 -0
  245. package/lib/WABinary/decode.js +255 -0
  246. package/lib/WABinary/encode.d.ts +2 -0
  247. package/lib/WABinary/encode.js +243 -0
  248. package/lib/WABinary/generic-utils.d.ts +16 -0
  249. package/lib/WABinary/generic-utils.js +125 -0
  250. package/lib/WABinary/index.d.ts +5 -0
  251. package/lib/WABinary/index.js +21 -0
  252. package/lib/WABinary/jid-utils.d.ts +34 -0
  253. package/lib/WABinary/jid-utils.js +73 -0
  254. package/lib/WABinary/types.d.ts +18 -0
  255. package/lib/WABinary/types.js +2 -0
  256. package/lib/WAM/BinaryInfo.d.ts +16 -0
  257. package/lib/WAM/BinaryInfo.js +14 -0
  258. package/lib/WAM/constants.d.ts +39 -0
  259. package/lib/WAM/constants.js +15362 -0
  260. package/lib/WAM/encode.d.ts +2 -0
  261. package/lib/WAM/encode.js +156 -0
  262. package/lib/WAM/index.d.ts +3 -0
  263. package/lib/WAM/index.js +19 -0
  264. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.d.ts +25 -0
  265. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +60 -0
  266. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +9 -0
  267. package/lib/WAUSync/Protocols/USyncContactProtocol.js +32 -0
  268. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +22 -0
  269. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +58 -0
  270. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +12 -0
  271. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +31 -0
  272. package/lib/WAUSync/Protocols/USyncLIDProtocol.d.ts +8 -0
  273. package/lib/WAUSync/Protocols/USyncLIDProtocol.js +26 -0
  274. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +12 -0
  275. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +42 -0
  276. package/lib/WAUSync/Protocols/index.d.ts +6 -0
  277. package/lib/WAUSync/Protocols/index.js +22 -0
  278. package/lib/WAUSync/USyncQuery.d.ts +28 -0
  279. package/lib/WAUSync/USyncQuery.js +88 -0
  280. package/lib/WAUSync/USyncUser.d.ts +12 -0
  281. package/lib/WAUSync/USyncUser.js +27 -0
  282. package/lib/WAUSync/index.d.ts +3 -0
  283. package/lib/WAUSync/index.js +19 -0
  284. package/lib/index.d.ts +13 -0
  285. package/lib/index.js +45 -0
  286. package/package.json +63 -0
@@ -0,0 +1,461 @@
1
+ import * as $protobuf from "protobufjs";
2
+ import Long = require("long");
3
+ /** Namespace MdStorageChatRowOpaqueData. */
4
+ export namespace MdStorageChatRowOpaqueData {
5
+ /** Properties of a ChatRowOpaqueData. */
6
+ interface IChatRowOpaqueData {
7
+ /** ChatRowOpaqueData draftMessage */
8
+ draftMessage?: (MdStorageChatRowOpaqueData.ChatRowOpaqueData.IDraftMessage|null);
9
+ }
10
+ /** Represents a ChatRowOpaqueData. */
11
+ class ChatRowOpaqueData implements IChatRowOpaqueData {
12
+ /**
13
+ * Constructs a new ChatRowOpaqueData.
14
+ * @param [properties] Properties to set
15
+ */
16
+ constructor(properties?: MdStorageChatRowOpaqueData.IChatRowOpaqueData);
17
+ /** ChatRowOpaqueData draftMessage. */
18
+ public draftMessage?: (MdStorageChatRowOpaqueData.ChatRowOpaqueData.IDraftMessage|null);
19
+ /** ChatRowOpaqueData _draftMessage. */
20
+ public _draftMessage?: "draftMessage";
21
+ /**
22
+ * Creates a new ChatRowOpaqueData instance using the specified properties.
23
+ * @param [properties] Properties to set
24
+ * @returns ChatRowOpaqueData instance
25
+ */
26
+ public static create(properties?: MdStorageChatRowOpaqueData.IChatRowOpaqueData): MdStorageChatRowOpaqueData.ChatRowOpaqueData;
27
+ /**
28
+ * Encodes the specified ChatRowOpaqueData message. Does not implicitly {@link MdStorageChatRowOpaqueData.ChatRowOpaqueData.verify|verify} messages.
29
+ * @param message ChatRowOpaqueData message or plain object to encode
30
+ * @param [writer] Writer to encode to
31
+ * @returns Writer
32
+ */
33
+ public static encode(message: MdStorageChatRowOpaqueData.IChatRowOpaqueData, writer?: $protobuf.Writer): $protobuf.Writer;
34
+ /**
35
+ * Encodes the specified ChatRowOpaqueData message, length delimited. Does not implicitly {@link MdStorageChatRowOpaqueData.ChatRowOpaqueData.verify|verify} messages.
36
+ * @param message ChatRowOpaqueData message or plain object to encode
37
+ * @param [writer] Writer to encode to
38
+ * @returns Writer
39
+ */
40
+ public static encodeDelimited(message: MdStorageChatRowOpaqueData.IChatRowOpaqueData, writer?: $protobuf.Writer): $protobuf.Writer;
41
+ /**
42
+ * Decodes a ChatRowOpaqueData message from the specified reader or buffer.
43
+ * @param reader Reader or buffer to decode from
44
+ * @param [length] Message length if known beforehand
45
+ * @returns ChatRowOpaqueData
46
+ * @throws {Error} If the payload is not a reader or valid buffer
47
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48
+ */
49
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): MdStorageChatRowOpaqueData.ChatRowOpaqueData;
50
+ /**
51
+ * Decodes a ChatRowOpaqueData message from the specified reader or buffer, length delimited.
52
+ * @param reader Reader or buffer to decode from
53
+ * @returns ChatRowOpaqueData
54
+ * @throws {Error} If the payload is not a reader or valid buffer
55
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56
+ */
57
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): MdStorageChatRowOpaqueData.ChatRowOpaqueData;
58
+ /**
59
+ * Verifies a ChatRowOpaqueData message.
60
+ * @param message Plain object to verify
61
+ * @returns `null` if valid, otherwise the reason why it is not
62
+ */
63
+ public static verify(message: { [k: string]: any }): (string|null);
64
+ /**
65
+ * Creates a ChatRowOpaqueData message from a plain object. Also converts values to their respective internal types.
66
+ * @param object Plain object
67
+ * @returns ChatRowOpaqueData
68
+ */
69
+ public static fromObject(object: { [k: string]: any }): MdStorageChatRowOpaqueData.ChatRowOpaqueData;
70
+ /**
71
+ * Creates a plain object from a ChatRowOpaqueData message. Also converts values to other types if specified.
72
+ * @param message ChatRowOpaqueData
73
+ * @param [options] Conversion options
74
+ * @returns Plain object
75
+ */
76
+ public static toObject(message: MdStorageChatRowOpaqueData.ChatRowOpaqueData, options?: $protobuf.IConversionOptions): { [k: string]: any };
77
+ /**
78
+ * Converts this ChatRowOpaqueData to JSON.
79
+ * @returns JSON object
80
+ */
81
+ public toJSON(): { [k: string]: any };
82
+ /**
83
+ * Gets the default type url for ChatRowOpaqueData
84
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
85
+ * @returns The default type url
86
+ */
87
+ public static getTypeUrl(typeUrlPrefix?: string): string;
88
+ }
89
+ namespace ChatRowOpaqueData {
90
+ /** Properties of a DraftMessage. */
91
+ interface IDraftMessage {
92
+ /** DraftMessage text */
93
+ text?: (string|null);
94
+ /** DraftMessage omittedUrl */
95
+ omittedUrl?: (string|null);
96
+ /** DraftMessage ctwaContextLinkData */
97
+ ctwaContextLinkData?: (MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.ICtwaContextLinkData|null);
98
+ /** DraftMessage ctwaContext */
99
+ ctwaContext?: (MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.ICtwaContextData|null);
100
+ /** DraftMessage timestamp */
101
+ timestamp?: (number|Long|null);
102
+ }
103
+ /** Represents a DraftMessage. */
104
+ class DraftMessage implements IDraftMessage {
105
+ /**
106
+ * Constructs a new DraftMessage.
107
+ * @param [properties] Properties to set
108
+ */
109
+ constructor(properties?: MdStorageChatRowOpaqueData.ChatRowOpaqueData.IDraftMessage);
110
+ /** DraftMessage text. */
111
+ public text?: (string|null);
112
+ /** DraftMessage omittedUrl. */
113
+ public omittedUrl?: (string|null);
114
+ /** DraftMessage ctwaContextLinkData. */
115
+ public ctwaContextLinkData?: (MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.ICtwaContextLinkData|null);
116
+ /** DraftMessage ctwaContext. */
117
+ public ctwaContext?: (MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.ICtwaContextData|null);
118
+ /** DraftMessage timestamp. */
119
+ public timestamp?: (number|Long|null);
120
+ /** DraftMessage _text. */
121
+ public _text?: "text";
122
+ /** DraftMessage _omittedUrl. */
123
+ public _omittedUrl?: "omittedUrl";
124
+ /** DraftMessage _ctwaContextLinkData. */
125
+ public _ctwaContextLinkData?: "ctwaContextLinkData";
126
+ /** DraftMessage _ctwaContext. */
127
+ public _ctwaContext?: "ctwaContext";
128
+ /** DraftMessage _timestamp. */
129
+ public _timestamp?: "timestamp";
130
+ /**
131
+ * Creates a new DraftMessage instance using the specified properties.
132
+ * @param [properties] Properties to set
133
+ * @returns DraftMessage instance
134
+ */
135
+ public static create(properties?: MdStorageChatRowOpaqueData.ChatRowOpaqueData.IDraftMessage): MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage;
136
+ /**
137
+ * Encodes the specified DraftMessage message. Does not implicitly {@link MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.verify|verify} messages.
138
+ * @param message DraftMessage message or plain object to encode
139
+ * @param [writer] Writer to encode to
140
+ * @returns Writer
141
+ */
142
+ public static encode(message: MdStorageChatRowOpaqueData.ChatRowOpaqueData.IDraftMessage, writer?: $protobuf.Writer): $protobuf.Writer;
143
+ /**
144
+ * Encodes the specified DraftMessage message, length delimited. Does not implicitly {@link MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.verify|verify} messages.
145
+ * @param message DraftMessage message or plain object to encode
146
+ * @param [writer] Writer to encode to
147
+ * @returns Writer
148
+ */
149
+ public static encodeDelimited(message: MdStorageChatRowOpaqueData.ChatRowOpaqueData.IDraftMessage, writer?: $protobuf.Writer): $protobuf.Writer;
150
+ /**
151
+ * Decodes a DraftMessage message from the specified reader or buffer.
152
+ * @param reader Reader or buffer to decode from
153
+ * @param [length] Message length if known beforehand
154
+ * @returns DraftMessage
155
+ * @throws {Error} If the payload is not a reader or valid buffer
156
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
157
+ */
158
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage;
159
+ /**
160
+ * Decodes a DraftMessage message from the specified reader or buffer, length delimited.
161
+ * @param reader Reader or buffer to decode from
162
+ * @returns DraftMessage
163
+ * @throws {Error} If the payload is not a reader or valid buffer
164
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
165
+ */
166
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage;
167
+ /**
168
+ * Verifies a DraftMessage message.
169
+ * @param message Plain object to verify
170
+ * @returns `null` if valid, otherwise the reason why it is not
171
+ */
172
+ public static verify(message: { [k: string]: any }): (string|null);
173
+ /**
174
+ * Creates a DraftMessage message from a plain object. Also converts values to their respective internal types.
175
+ * @param object Plain object
176
+ * @returns DraftMessage
177
+ */
178
+ public static fromObject(object: { [k: string]: any }): MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage;
179
+ /**
180
+ * Creates a plain object from a DraftMessage message. Also converts values to other types if specified.
181
+ * @param message DraftMessage
182
+ * @param [options] Conversion options
183
+ * @returns Plain object
184
+ */
185
+ public static toObject(message: MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
186
+ /**
187
+ * Converts this DraftMessage to JSON.
188
+ * @returns JSON object
189
+ */
190
+ public toJSON(): { [k: string]: any };
191
+ /**
192
+ * Gets the default type url for DraftMessage
193
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
194
+ * @returns The default type url
195
+ */
196
+ public static getTypeUrl(typeUrlPrefix?: string): string;
197
+ }
198
+ namespace DraftMessage {
199
+ /** Properties of a CtwaContextData. */
200
+ interface ICtwaContextData {
201
+ /** CtwaContextData conversionSource */
202
+ conversionSource?: (string|null);
203
+ /** CtwaContextData conversionData */
204
+ conversionData?: (Uint8Array|null);
205
+ /** CtwaContextData sourceUrl */
206
+ sourceUrl?: (string|null);
207
+ /** CtwaContextData sourceId */
208
+ sourceId?: (string|null);
209
+ /** CtwaContextData sourceType */
210
+ sourceType?: (string|null);
211
+ /** CtwaContextData title */
212
+ title?: (string|null);
213
+ /** CtwaContextData description */
214
+ description?: (string|null);
215
+ /** CtwaContextData thumbnail */
216
+ thumbnail?: (string|null);
217
+ /** CtwaContextData thumbnailUrl */
218
+ thumbnailUrl?: (string|null);
219
+ /** CtwaContextData mediaType */
220
+ mediaType?: (MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextData.ContextInfoExternalAdReplyInfoMediaType|null);
221
+ /** CtwaContextData mediaUrl */
222
+ mediaUrl?: (string|null);
223
+ /** CtwaContextData isSuspiciousLink */
224
+ isSuspiciousLink?: (boolean|null);
225
+ }
226
+ /** Represents a CtwaContextData. */
227
+ class CtwaContextData implements ICtwaContextData {
228
+ /**
229
+ * Constructs a new CtwaContextData.
230
+ * @param [properties] Properties to set
231
+ */
232
+ constructor(properties?: MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.ICtwaContextData);
233
+ /** CtwaContextData conversionSource. */
234
+ public conversionSource?: (string|null);
235
+ /** CtwaContextData conversionData. */
236
+ public conversionData?: (Uint8Array|null);
237
+ /** CtwaContextData sourceUrl. */
238
+ public sourceUrl?: (string|null);
239
+ /** CtwaContextData sourceId. */
240
+ public sourceId?: (string|null);
241
+ /** CtwaContextData sourceType. */
242
+ public sourceType?: (string|null);
243
+ /** CtwaContextData title. */
244
+ public title?: (string|null);
245
+ /** CtwaContextData description. */
246
+ public description?: (string|null);
247
+ /** CtwaContextData thumbnail. */
248
+ public thumbnail?: (string|null);
249
+ /** CtwaContextData thumbnailUrl. */
250
+ public thumbnailUrl?: (string|null);
251
+ /** CtwaContextData mediaType. */
252
+ public mediaType?: (MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextData.ContextInfoExternalAdReplyInfoMediaType|null);
253
+ /** CtwaContextData mediaUrl. */
254
+ public mediaUrl?: (string|null);
255
+ /** CtwaContextData isSuspiciousLink. */
256
+ public isSuspiciousLink?: (boolean|null);
257
+ /** CtwaContextData _conversionSource. */
258
+ public _conversionSource?: "conversionSource";
259
+ /** CtwaContextData _conversionData. */
260
+ public _conversionData?: "conversionData";
261
+ /** CtwaContextData _sourceUrl. */
262
+ public _sourceUrl?: "sourceUrl";
263
+ /** CtwaContextData _sourceId. */
264
+ public _sourceId?: "sourceId";
265
+ /** CtwaContextData _sourceType. */
266
+ public _sourceType?: "sourceType";
267
+ /** CtwaContextData _title. */
268
+ public _title?: "title";
269
+ /** CtwaContextData _description. */
270
+ public _description?: "description";
271
+ /** CtwaContextData _thumbnail. */
272
+ public _thumbnail?: "thumbnail";
273
+ /** CtwaContextData _thumbnailUrl. */
274
+ public _thumbnailUrl?: "thumbnailUrl";
275
+ /** CtwaContextData _mediaType. */
276
+ public _mediaType?: "mediaType";
277
+ /** CtwaContextData _mediaUrl. */
278
+ public _mediaUrl?: "mediaUrl";
279
+ /** CtwaContextData _isSuspiciousLink. */
280
+ public _isSuspiciousLink?: "isSuspiciousLink";
281
+ /**
282
+ * Creates a new CtwaContextData instance using the specified properties.
283
+ * @param [properties] Properties to set
284
+ * @returns CtwaContextData instance
285
+ */
286
+ public static create(properties?: MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.ICtwaContextData): MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextData;
287
+ /**
288
+ * Encodes the specified CtwaContextData message. Does not implicitly {@link MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextData.verify|verify} messages.
289
+ * @param message CtwaContextData message or plain object to encode
290
+ * @param [writer] Writer to encode to
291
+ * @returns Writer
292
+ */
293
+ public static encode(message: MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.ICtwaContextData, writer?: $protobuf.Writer): $protobuf.Writer;
294
+ /**
295
+ * Encodes the specified CtwaContextData message, length delimited. Does not implicitly {@link MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextData.verify|verify} messages.
296
+ * @param message CtwaContextData message or plain object to encode
297
+ * @param [writer] Writer to encode to
298
+ * @returns Writer
299
+ */
300
+ public static encodeDelimited(message: MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.ICtwaContextData, writer?: $protobuf.Writer): $protobuf.Writer;
301
+ /**
302
+ * Decodes a CtwaContextData message from the specified reader or buffer.
303
+ * @param reader Reader or buffer to decode from
304
+ * @param [length] Message length if known beforehand
305
+ * @returns CtwaContextData
306
+ * @throws {Error} If the payload is not a reader or valid buffer
307
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
308
+ */
309
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextData;
310
+ /**
311
+ * Decodes a CtwaContextData message from the specified reader or buffer, length delimited.
312
+ * @param reader Reader or buffer to decode from
313
+ * @returns CtwaContextData
314
+ * @throws {Error} If the payload is not a reader or valid buffer
315
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
316
+ */
317
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextData;
318
+ /**
319
+ * Verifies a CtwaContextData message.
320
+ * @param message Plain object to verify
321
+ * @returns `null` if valid, otherwise the reason why it is not
322
+ */
323
+ public static verify(message: { [k: string]: any }): (string|null);
324
+ /**
325
+ * Creates a CtwaContextData message from a plain object. Also converts values to their respective internal types.
326
+ * @param object Plain object
327
+ * @returns CtwaContextData
328
+ */
329
+ public static fromObject(object: { [k: string]: any }): MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextData;
330
+ /**
331
+ * Creates a plain object from a CtwaContextData message. Also converts values to other types if specified.
332
+ * @param message CtwaContextData
333
+ * @param [options] Conversion options
334
+ * @returns Plain object
335
+ */
336
+ public static toObject(message: MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextData, options?: $protobuf.IConversionOptions): { [k: string]: any };
337
+ /**
338
+ * Converts this CtwaContextData to JSON.
339
+ * @returns JSON object
340
+ */
341
+ public toJSON(): { [k: string]: any };
342
+ /**
343
+ * Gets the default type url for CtwaContextData
344
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
345
+ * @returns The default type url
346
+ */
347
+ public static getTypeUrl(typeUrlPrefix?: string): string;
348
+ }
349
+ namespace CtwaContextData {
350
+ /** ContextInfoExternalAdReplyInfoMediaType enum. */
351
+ enum ContextInfoExternalAdReplyInfoMediaType {
352
+ NONE = 0,
353
+ IMAGE = 1,
354
+ VIDEO = 2
355
+ }
356
+ }
357
+ /** Properties of a CtwaContextLinkData. */
358
+ interface ICtwaContextLinkData {
359
+ /** CtwaContextLinkData context */
360
+ context?: (string|null);
361
+ /** CtwaContextLinkData sourceUrl */
362
+ sourceUrl?: (string|null);
363
+ /** CtwaContextLinkData icebreaker */
364
+ icebreaker?: (string|null);
365
+ /** CtwaContextLinkData phone */
366
+ phone?: (string|null);
367
+ }
368
+ /** Represents a CtwaContextLinkData. */
369
+ class CtwaContextLinkData implements ICtwaContextLinkData {
370
+ /**
371
+ * Constructs a new CtwaContextLinkData.
372
+ * @param [properties] Properties to set
373
+ */
374
+ constructor(properties?: MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.ICtwaContextLinkData);
375
+ /** CtwaContextLinkData context. */
376
+ public context?: (string|null);
377
+ /** CtwaContextLinkData sourceUrl. */
378
+ public sourceUrl?: (string|null);
379
+ /** CtwaContextLinkData icebreaker. */
380
+ public icebreaker?: (string|null);
381
+ /** CtwaContextLinkData phone. */
382
+ public phone?: (string|null);
383
+ /** CtwaContextLinkData _context. */
384
+ public _context?: "context";
385
+ /** CtwaContextLinkData _sourceUrl. */
386
+ public _sourceUrl?: "sourceUrl";
387
+ /** CtwaContextLinkData _icebreaker. */
388
+ public _icebreaker?: "icebreaker";
389
+ /** CtwaContextLinkData _phone. */
390
+ public _phone?: "phone";
391
+ /**
392
+ * Creates a new CtwaContextLinkData instance using the specified properties.
393
+ * @param [properties] Properties to set
394
+ * @returns CtwaContextLinkData instance
395
+ */
396
+ public static create(properties?: MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.ICtwaContextLinkData): MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextLinkData;
397
+ /**
398
+ * Encodes the specified CtwaContextLinkData message. Does not implicitly {@link MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextLinkData.verify|verify} messages.
399
+ * @param message CtwaContextLinkData message or plain object to encode
400
+ * @param [writer] Writer to encode to
401
+ * @returns Writer
402
+ */
403
+ public static encode(message: MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.ICtwaContextLinkData, writer?: $protobuf.Writer): $protobuf.Writer;
404
+ /**
405
+ * Encodes the specified CtwaContextLinkData message, length delimited. Does not implicitly {@link MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextLinkData.verify|verify} messages.
406
+ * @param message CtwaContextLinkData message or plain object to encode
407
+ * @param [writer] Writer to encode to
408
+ * @returns Writer
409
+ */
410
+ public static encodeDelimited(message: MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.ICtwaContextLinkData, writer?: $protobuf.Writer): $protobuf.Writer;
411
+ /**
412
+ * Decodes a CtwaContextLinkData message from the specified reader or buffer.
413
+ * @param reader Reader or buffer to decode from
414
+ * @param [length] Message length if known beforehand
415
+ * @returns CtwaContextLinkData
416
+ * @throws {Error} If the payload is not a reader or valid buffer
417
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
418
+ */
419
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextLinkData;
420
+ /**
421
+ * Decodes a CtwaContextLinkData message from the specified reader or buffer, length delimited.
422
+ * @param reader Reader or buffer to decode from
423
+ * @returns CtwaContextLinkData
424
+ * @throws {Error} If the payload is not a reader or valid buffer
425
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
426
+ */
427
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextLinkData;
428
+ /**
429
+ * Verifies a CtwaContextLinkData message.
430
+ * @param message Plain object to verify
431
+ * @returns `null` if valid, otherwise the reason why it is not
432
+ */
433
+ public static verify(message: { [k: string]: any }): (string|null);
434
+ /**
435
+ * Creates a CtwaContextLinkData message from a plain object. Also converts values to their respective internal types.
436
+ * @param object Plain object
437
+ * @returns CtwaContextLinkData
438
+ */
439
+ public static fromObject(object: { [k: string]: any }): MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextLinkData;
440
+ /**
441
+ * Creates a plain object from a CtwaContextLinkData message. Also converts values to other types if specified.
442
+ * @param message CtwaContextLinkData
443
+ * @param [options] Conversion options
444
+ * @returns Plain object
445
+ */
446
+ public static toObject(message: MdStorageChatRowOpaqueData.ChatRowOpaqueData.DraftMessage.CtwaContextLinkData, options?: $protobuf.IConversionOptions): { [k: string]: any };
447
+ /**
448
+ * Converts this CtwaContextLinkData to JSON.
449
+ * @returns JSON object
450
+ */
451
+ public toJSON(): { [k: string]: any };
452
+ /**
453
+ * Gets the default type url for CtwaContextLinkData
454
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
455
+ * @returns The default type url
456
+ */
457
+ public static getTypeUrl(typeUrlPrefix?: string): string;
458
+ }
459
+ }
460
+ }
461
+ }