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,38 @@
1
+ syntax = "proto3";
2
+ package SignalWhisperTextProtocol;
3
+ message DeviceConsistencyCodeMessage {
4
+ optional uint32 generation = 1;
5
+ optional bytes signature = 2;
6
+ }
7
+ message SenderKeyDistributionMessage {
8
+ optional uint32 id = 1;
9
+ optional uint32 iteration = 2;
10
+ optional bytes chainKey = 3;
11
+ optional bytes signingKey = 4;
12
+ }
13
+ message SenderKeyMessage {
14
+ optional uint32 id = 1;
15
+ optional uint32 iteration = 2;
16
+ optional bytes ciphertext = 3;
17
+ }
18
+ message KeyExchangeMessage {
19
+ optional uint32 id = 1;
20
+ optional bytes baseKey = 2;
21
+ optional bytes ratchetKey = 3;
22
+ optional bytes identityKey = 4;
23
+ optional bytes baseKeySignature = 5;
24
+ }
25
+ message PreKeySignalMessage {
26
+ optional uint32 registrationId = 5;
27
+ optional uint32 preKeyId = 1;
28
+ optional uint32 signedPreKeyId = 6;
29
+ optional bytes baseKey = 2;
30
+ optional bytes identityKey = 3;
31
+ optional bytes message = 4;
32
+ }
33
+ message SignalMessage {
34
+ optional bytes ratchetKey = 1;
35
+ optional uint32 counter = 2;
36
+ optional uint32 previousCounter = 3;
37
+ optional bytes ciphertext = 4;
38
+ }
@@ -0,0 +1,636 @@
1
+ import * as $protobuf from "protobufjs";
2
+ import Long = require("long");
3
+ /** Namespace StatusAttributions. */
4
+ export namespace StatusAttributions {
5
+ /** Properties of a StatusAttribution. */
6
+ interface IStatusAttribution {
7
+ /** StatusAttribution type */
8
+ type?: (StatusAttributions.StatusAttribution.Type|null);
9
+ /** StatusAttribution actionUrl */
10
+ actionUrl?: (string|null);
11
+ /** StatusAttribution statusReshare */
12
+ statusReshare?: (StatusAttributions.StatusAttribution.IStatusReshare|null);
13
+ /** StatusAttribution externalShare */
14
+ externalShare?: (StatusAttributions.StatusAttribution.IExternalShare|null);
15
+ /** StatusAttribution music */
16
+ music?: (StatusAttributions.StatusAttribution.IMusic|null);
17
+ /** StatusAttribution groupStatus */
18
+ groupStatus?: (StatusAttributions.StatusAttribution.IGroupStatus|null);
19
+ }
20
+ /** Represents a StatusAttribution. */
21
+ class StatusAttribution implements IStatusAttribution {
22
+ /**
23
+ * Constructs a new StatusAttribution.
24
+ * @param [properties] Properties to set
25
+ */
26
+ constructor(properties?: StatusAttributions.IStatusAttribution);
27
+ /** StatusAttribution type. */
28
+ public type?: (StatusAttributions.StatusAttribution.Type|null);
29
+ /** StatusAttribution actionUrl. */
30
+ public actionUrl?: (string|null);
31
+ /** StatusAttribution statusReshare. */
32
+ public statusReshare?: (StatusAttributions.StatusAttribution.IStatusReshare|null);
33
+ /** StatusAttribution externalShare. */
34
+ public externalShare?: (StatusAttributions.StatusAttribution.IExternalShare|null);
35
+ /** StatusAttribution music. */
36
+ public music?: (StatusAttributions.StatusAttribution.IMusic|null);
37
+ /** StatusAttribution groupStatus. */
38
+ public groupStatus?: (StatusAttributions.StatusAttribution.IGroupStatus|null);
39
+ /** StatusAttribution _type. */
40
+ public _type?: "type";
41
+ /** StatusAttribution _actionUrl. */
42
+ public _actionUrl?: "actionUrl";
43
+ /** StatusAttribution attributionData. */
44
+ public attributionData?: ("statusReshare"|"externalShare"|"music"|"groupStatus");
45
+ /**
46
+ * Creates a new StatusAttribution instance using the specified properties.
47
+ * @param [properties] Properties to set
48
+ * @returns StatusAttribution instance
49
+ */
50
+ public static create(properties?: StatusAttributions.IStatusAttribution): StatusAttributions.StatusAttribution;
51
+ /**
52
+ * Encodes the specified StatusAttribution message. Does not implicitly {@link StatusAttributions.StatusAttribution.verify|verify} messages.
53
+ * @param message StatusAttribution message or plain object to encode
54
+ * @param [writer] Writer to encode to
55
+ * @returns Writer
56
+ */
57
+ public static encode(message: StatusAttributions.IStatusAttribution, writer?: $protobuf.Writer): $protobuf.Writer;
58
+ /**
59
+ * Encodes the specified StatusAttribution message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.verify|verify} messages.
60
+ * @param message StatusAttribution message or plain object to encode
61
+ * @param [writer] Writer to encode to
62
+ * @returns Writer
63
+ */
64
+ public static encodeDelimited(message: StatusAttributions.IStatusAttribution, writer?: $protobuf.Writer): $protobuf.Writer;
65
+ /**
66
+ * Decodes a StatusAttribution message from the specified reader or buffer.
67
+ * @param reader Reader or buffer to decode from
68
+ * @param [length] Message length if known beforehand
69
+ * @returns StatusAttribution
70
+ * @throws {Error} If the payload is not a reader or valid buffer
71
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
72
+ */
73
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution;
74
+ /**
75
+ * Decodes a StatusAttribution message from the specified reader or buffer, length delimited.
76
+ * @param reader Reader or buffer to decode from
77
+ * @returns StatusAttribution
78
+ * @throws {Error} If the payload is not a reader or valid buffer
79
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80
+ */
81
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution;
82
+ /**
83
+ * Verifies a StatusAttribution message.
84
+ * @param message Plain object to verify
85
+ * @returns `null` if valid, otherwise the reason why it is not
86
+ */
87
+ public static verify(message: { [k: string]: any }): (string|null);
88
+ /**
89
+ * Creates a StatusAttribution message from a plain object. Also converts values to their respective internal types.
90
+ * @param object Plain object
91
+ * @returns StatusAttribution
92
+ */
93
+ public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution;
94
+ /**
95
+ * Creates a plain object from a StatusAttribution message. Also converts values to other types if specified.
96
+ * @param message StatusAttribution
97
+ * @param [options] Conversion options
98
+ * @returns Plain object
99
+ */
100
+ public static toObject(message: StatusAttributions.StatusAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any };
101
+ /**
102
+ * Converts this StatusAttribution to JSON.
103
+ * @returns JSON object
104
+ */
105
+ public toJSON(): { [k: string]: any };
106
+ /**
107
+ * Gets the default type url for StatusAttribution
108
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
109
+ * @returns The default type url
110
+ */
111
+ public static getTypeUrl(typeUrlPrefix?: string): string;
112
+ }
113
+ namespace StatusAttribution {
114
+ /** Properties of an ExternalShare. */
115
+ interface IExternalShare {
116
+ /** ExternalShare actionUrl */
117
+ actionUrl?: (string|null);
118
+ /** ExternalShare source */
119
+ source?: (StatusAttributions.StatusAttribution.ExternalShare.Source|null);
120
+ /** ExternalShare duration */
121
+ duration?: (number|null);
122
+ /** ExternalShare actionFallbackUrl */
123
+ actionFallbackUrl?: (string|null);
124
+ }
125
+ /** Represents an ExternalShare. */
126
+ class ExternalShare implements IExternalShare {
127
+ /**
128
+ * Constructs a new ExternalShare.
129
+ * @param [properties] Properties to set
130
+ */
131
+ constructor(properties?: StatusAttributions.StatusAttribution.IExternalShare);
132
+ /** ExternalShare actionUrl. */
133
+ public actionUrl?: (string|null);
134
+ /** ExternalShare source. */
135
+ public source?: (StatusAttributions.StatusAttribution.ExternalShare.Source|null);
136
+ /** ExternalShare duration. */
137
+ public duration?: (number|null);
138
+ /** ExternalShare actionFallbackUrl. */
139
+ public actionFallbackUrl?: (string|null);
140
+ /** ExternalShare _actionUrl. */
141
+ public _actionUrl?: "actionUrl";
142
+ /** ExternalShare _source. */
143
+ public _source?: "source";
144
+ /** ExternalShare _duration. */
145
+ public _duration?: "duration";
146
+ /** ExternalShare _actionFallbackUrl. */
147
+ public _actionFallbackUrl?: "actionFallbackUrl";
148
+ /**
149
+ * Creates a new ExternalShare instance using the specified properties.
150
+ * @param [properties] Properties to set
151
+ * @returns ExternalShare instance
152
+ */
153
+ public static create(properties?: StatusAttributions.StatusAttribution.IExternalShare): StatusAttributions.StatusAttribution.ExternalShare;
154
+ /**
155
+ * Encodes the specified ExternalShare message. Does not implicitly {@link StatusAttributions.StatusAttribution.ExternalShare.verify|verify} messages.
156
+ * @param message ExternalShare message or plain object to encode
157
+ * @param [writer] Writer to encode to
158
+ * @returns Writer
159
+ */
160
+ public static encode(message: StatusAttributions.StatusAttribution.IExternalShare, writer?: $protobuf.Writer): $protobuf.Writer;
161
+ /**
162
+ * Encodes the specified ExternalShare message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.ExternalShare.verify|verify} messages.
163
+ * @param message ExternalShare message or plain object to encode
164
+ * @param [writer] Writer to encode to
165
+ * @returns Writer
166
+ */
167
+ public static encodeDelimited(message: StatusAttributions.StatusAttribution.IExternalShare, writer?: $protobuf.Writer): $protobuf.Writer;
168
+ /**
169
+ * Decodes an ExternalShare message from the specified reader or buffer.
170
+ * @param reader Reader or buffer to decode from
171
+ * @param [length] Message length if known beforehand
172
+ * @returns ExternalShare
173
+ * @throws {Error} If the payload is not a reader or valid buffer
174
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
175
+ */
176
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.ExternalShare;
177
+ /**
178
+ * Decodes an ExternalShare message from the specified reader or buffer, length delimited.
179
+ * @param reader Reader or buffer to decode from
180
+ * @returns ExternalShare
181
+ * @throws {Error} If the payload is not a reader or valid buffer
182
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
183
+ */
184
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.ExternalShare;
185
+ /**
186
+ * Verifies an ExternalShare message.
187
+ * @param message Plain object to verify
188
+ * @returns `null` if valid, otherwise the reason why it is not
189
+ */
190
+ public static verify(message: { [k: string]: any }): (string|null);
191
+ /**
192
+ * Creates an ExternalShare message from a plain object. Also converts values to their respective internal types.
193
+ * @param object Plain object
194
+ * @returns ExternalShare
195
+ */
196
+ public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.ExternalShare;
197
+ /**
198
+ * Creates a plain object from an ExternalShare message. Also converts values to other types if specified.
199
+ * @param message ExternalShare
200
+ * @param [options] Conversion options
201
+ * @returns Plain object
202
+ */
203
+ public static toObject(message: StatusAttributions.StatusAttribution.ExternalShare, options?: $protobuf.IConversionOptions): { [k: string]: any };
204
+ /**
205
+ * Converts this ExternalShare to JSON.
206
+ * @returns JSON object
207
+ */
208
+ public toJSON(): { [k: string]: any };
209
+ /**
210
+ * Gets the default type url for ExternalShare
211
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
212
+ * @returns The default type url
213
+ */
214
+ public static getTypeUrl(typeUrlPrefix?: string): string;
215
+ }
216
+ namespace ExternalShare {
217
+ /** Source enum. */
218
+ enum Source {
219
+ UNKNOWN = 0,
220
+ INSTAGRAM = 1,
221
+ FACEBOOK = 2,
222
+ MESSENGER = 3,
223
+ SPOTIFY = 4,
224
+ YOUTUBE = 5,
225
+ PINTEREST = 6
226
+ }
227
+ }
228
+ /** Properties of a GroupStatus. */
229
+ interface IGroupStatus {
230
+ /** GroupStatus authorJid */
231
+ authorJid?: (string|null);
232
+ }
233
+ /** Represents a GroupStatus. */
234
+ class GroupStatus implements IGroupStatus {
235
+ /**
236
+ * Constructs a new GroupStatus.
237
+ * @param [properties] Properties to set
238
+ */
239
+ constructor(properties?: StatusAttributions.StatusAttribution.IGroupStatus);
240
+ /** GroupStatus authorJid. */
241
+ public authorJid?: (string|null);
242
+ /** GroupStatus _authorJid. */
243
+ public _authorJid?: "authorJid";
244
+ /**
245
+ * Creates a new GroupStatus instance using the specified properties.
246
+ * @param [properties] Properties to set
247
+ * @returns GroupStatus instance
248
+ */
249
+ public static create(properties?: StatusAttributions.StatusAttribution.IGroupStatus): StatusAttributions.StatusAttribution.GroupStatus;
250
+ /**
251
+ * Encodes the specified GroupStatus message. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
252
+ * @param message GroupStatus message or plain object to encode
253
+ * @param [writer] Writer to encode to
254
+ * @returns Writer
255
+ */
256
+ public static encode(message: StatusAttributions.StatusAttribution.IGroupStatus, writer?: $protobuf.Writer): $protobuf.Writer;
257
+ /**
258
+ * Encodes the specified GroupStatus message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
259
+ * @param message GroupStatus message or plain object to encode
260
+ * @param [writer] Writer to encode to
261
+ * @returns Writer
262
+ */
263
+ public static encodeDelimited(message: StatusAttributions.StatusAttribution.IGroupStatus, writer?: $protobuf.Writer): $protobuf.Writer;
264
+ /**
265
+ * Decodes a GroupStatus message from the specified reader or buffer.
266
+ * @param reader Reader or buffer to decode from
267
+ * @param [length] Message length if known beforehand
268
+ * @returns GroupStatus
269
+ * @throws {Error} If the payload is not a reader or valid buffer
270
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
271
+ */
272
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.GroupStatus;
273
+ /**
274
+ * Decodes a GroupStatus message from the specified reader or buffer, length delimited.
275
+ * @param reader Reader or buffer to decode from
276
+ * @returns GroupStatus
277
+ * @throws {Error} If the payload is not a reader or valid buffer
278
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
279
+ */
280
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.GroupStatus;
281
+ /**
282
+ * Verifies a GroupStatus message.
283
+ * @param message Plain object to verify
284
+ * @returns `null` if valid, otherwise the reason why it is not
285
+ */
286
+ public static verify(message: { [k: string]: any }): (string|null);
287
+ /**
288
+ * Creates a GroupStatus message from a plain object. Also converts values to their respective internal types.
289
+ * @param object Plain object
290
+ * @returns GroupStatus
291
+ */
292
+ public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.GroupStatus;
293
+ /**
294
+ * Creates a plain object from a GroupStatus message. Also converts values to other types if specified.
295
+ * @param message GroupStatus
296
+ * @param [options] Conversion options
297
+ * @returns Plain object
298
+ */
299
+ public static toObject(message: StatusAttributions.StatusAttribution.GroupStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
300
+ /**
301
+ * Converts this GroupStatus to JSON.
302
+ * @returns JSON object
303
+ */
304
+ public toJSON(): { [k: string]: any };
305
+ /**
306
+ * Gets the default type url for GroupStatus
307
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
308
+ * @returns The default type url
309
+ */
310
+ public static getTypeUrl(typeUrlPrefix?: string): string;
311
+ }
312
+ /** Properties of a Music. */
313
+ interface IMusic {
314
+ /** Music authorName */
315
+ authorName?: (string|null);
316
+ /** Music songId */
317
+ songId?: (string|null);
318
+ /** Music title */
319
+ title?: (string|null);
320
+ /** Music author */
321
+ author?: (string|null);
322
+ /** Music artistAttribution */
323
+ artistAttribution?: (string|null);
324
+ /** Music isExplicit */
325
+ isExplicit?: (boolean|null);
326
+ }
327
+ /** Represents a Music. */
328
+ class Music implements IMusic {
329
+ /**
330
+ * Constructs a new Music.
331
+ * @param [properties] Properties to set
332
+ */
333
+ constructor(properties?: StatusAttributions.StatusAttribution.IMusic);
334
+ /** Music authorName. */
335
+ public authorName?: (string|null);
336
+ /** Music songId. */
337
+ public songId?: (string|null);
338
+ /** Music title. */
339
+ public title?: (string|null);
340
+ /** Music author. */
341
+ public author?: (string|null);
342
+ /** Music artistAttribution. */
343
+ public artistAttribution?: (string|null);
344
+ /** Music isExplicit. */
345
+ public isExplicit?: (boolean|null);
346
+ /** Music _authorName. */
347
+ public _authorName?: "authorName";
348
+ /** Music _songId. */
349
+ public _songId?: "songId";
350
+ /** Music _title. */
351
+ public _title?: "title";
352
+ /** Music _author. */
353
+ public _author?: "author";
354
+ /** Music _artistAttribution. */
355
+ public _artistAttribution?: "artistAttribution";
356
+ /** Music _isExplicit. */
357
+ public _isExplicit?: "isExplicit";
358
+ /**
359
+ * Creates a new Music instance using the specified properties.
360
+ * @param [properties] Properties to set
361
+ * @returns Music instance
362
+ */
363
+ public static create(properties?: StatusAttributions.StatusAttribution.IMusic): StatusAttributions.StatusAttribution.Music;
364
+ /**
365
+ * Encodes the specified Music message. Does not implicitly {@link StatusAttributions.StatusAttribution.Music.verify|verify} messages.
366
+ * @param message Music message or plain object to encode
367
+ * @param [writer] Writer to encode to
368
+ * @returns Writer
369
+ */
370
+ public static encode(message: StatusAttributions.StatusAttribution.IMusic, writer?: $protobuf.Writer): $protobuf.Writer;
371
+ /**
372
+ * Encodes the specified Music message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.Music.verify|verify} messages.
373
+ * @param message Music message or plain object to encode
374
+ * @param [writer] Writer to encode to
375
+ * @returns Writer
376
+ */
377
+ public static encodeDelimited(message: StatusAttributions.StatusAttribution.IMusic, writer?: $protobuf.Writer): $protobuf.Writer;
378
+ /**
379
+ * Decodes a Music message from the specified reader or buffer.
380
+ * @param reader Reader or buffer to decode from
381
+ * @param [length] Message length if known beforehand
382
+ * @returns Music
383
+ * @throws {Error} If the payload is not a reader or valid buffer
384
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
385
+ */
386
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.Music;
387
+ /**
388
+ * Decodes a Music message from the specified reader or buffer, length delimited.
389
+ * @param reader Reader or buffer to decode from
390
+ * @returns Music
391
+ * @throws {Error} If the payload is not a reader or valid buffer
392
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
393
+ */
394
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.Music;
395
+ /**
396
+ * Verifies a Music message.
397
+ * @param message Plain object to verify
398
+ * @returns `null` if valid, otherwise the reason why it is not
399
+ */
400
+ public static verify(message: { [k: string]: any }): (string|null);
401
+ /**
402
+ * Creates a Music message from a plain object. Also converts values to their respective internal types.
403
+ * @param object Plain object
404
+ * @returns Music
405
+ */
406
+ public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.Music;
407
+ /**
408
+ * Creates a plain object from a Music message. Also converts values to other types if specified.
409
+ * @param message Music
410
+ * @param [options] Conversion options
411
+ * @returns Plain object
412
+ */
413
+ public static toObject(message: StatusAttributions.StatusAttribution.Music, options?: $protobuf.IConversionOptions): { [k: string]: any };
414
+ /**
415
+ * Converts this Music to JSON.
416
+ * @returns JSON object
417
+ */
418
+ public toJSON(): { [k: string]: any };
419
+ /**
420
+ * Gets the default type url for Music
421
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
422
+ * @returns The default type url
423
+ */
424
+ public static getTypeUrl(typeUrlPrefix?: string): string;
425
+ }
426
+ /** Properties of a StatusReshare. */
427
+ interface IStatusReshare {
428
+ /** StatusReshare source */
429
+ source?: (StatusAttributions.StatusAttribution.StatusReshare.Source|null);
430
+ /** StatusReshare metadata */
431
+ metadata?: (StatusAttributions.StatusAttribution.StatusReshare.IMetadata|null);
432
+ }
433
+ /** Represents a StatusReshare. */
434
+ class StatusReshare implements IStatusReshare {
435
+ /**
436
+ * Constructs a new StatusReshare.
437
+ * @param [properties] Properties to set
438
+ */
439
+ constructor(properties?: StatusAttributions.StatusAttribution.IStatusReshare);
440
+ /** StatusReshare source. */
441
+ public source?: (StatusAttributions.StatusAttribution.StatusReshare.Source|null);
442
+ /** StatusReshare metadata. */
443
+ public metadata?: (StatusAttributions.StatusAttribution.StatusReshare.IMetadata|null);
444
+ /** StatusReshare _source. */
445
+ public _source?: "source";
446
+ /** StatusReshare _metadata. */
447
+ public _metadata?: "metadata";
448
+ /**
449
+ * Creates a new StatusReshare instance using the specified properties.
450
+ * @param [properties] Properties to set
451
+ * @returns StatusReshare instance
452
+ */
453
+ public static create(properties?: StatusAttributions.StatusAttribution.IStatusReshare): StatusAttributions.StatusAttribution.StatusReshare;
454
+ /**
455
+ * Encodes the specified StatusReshare message. Does not implicitly {@link StatusAttributions.StatusAttribution.StatusReshare.verify|verify} messages.
456
+ * @param message StatusReshare message or plain object to encode
457
+ * @param [writer] Writer to encode to
458
+ * @returns Writer
459
+ */
460
+ public static encode(message: StatusAttributions.StatusAttribution.IStatusReshare, writer?: $protobuf.Writer): $protobuf.Writer;
461
+ /**
462
+ * Encodes the specified StatusReshare message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.StatusReshare.verify|verify} messages.
463
+ * @param message StatusReshare message or plain object to encode
464
+ * @param [writer] Writer to encode to
465
+ * @returns Writer
466
+ */
467
+ public static encodeDelimited(message: StatusAttributions.StatusAttribution.IStatusReshare, writer?: $protobuf.Writer): $protobuf.Writer;
468
+ /**
469
+ * Decodes a StatusReshare message from the specified reader or buffer.
470
+ * @param reader Reader or buffer to decode from
471
+ * @param [length] Message length if known beforehand
472
+ * @returns StatusReshare
473
+ * @throws {Error} If the payload is not a reader or valid buffer
474
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
475
+ */
476
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.StatusReshare;
477
+ /**
478
+ * Decodes a StatusReshare message from the specified reader or buffer, length delimited.
479
+ * @param reader Reader or buffer to decode from
480
+ * @returns StatusReshare
481
+ * @throws {Error} If the payload is not a reader or valid buffer
482
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
483
+ */
484
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.StatusReshare;
485
+ /**
486
+ * Verifies a StatusReshare message.
487
+ * @param message Plain object to verify
488
+ * @returns `null` if valid, otherwise the reason why it is not
489
+ */
490
+ public static verify(message: { [k: string]: any }): (string|null);
491
+ /**
492
+ * Creates a StatusReshare message from a plain object. Also converts values to their respective internal types.
493
+ * @param object Plain object
494
+ * @returns StatusReshare
495
+ */
496
+ public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.StatusReshare;
497
+ /**
498
+ * Creates a plain object from a StatusReshare message. Also converts values to other types if specified.
499
+ * @param message StatusReshare
500
+ * @param [options] Conversion options
501
+ * @returns Plain object
502
+ */
503
+ public static toObject(message: StatusAttributions.StatusAttribution.StatusReshare, options?: $protobuf.IConversionOptions): { [k: string]: any };
504
+ /**
505
+ * Converts this StatusReshare to JSON.
506
+ * @returns JSON object
507
+ */
508
+ public toJSON(): { [k: string]: any };
509
+ /**
510
+ * Gets the default type url for StatusReshare
511
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
512
+ * @returns The default type url
513
+ */
514
+ public static getTypeUrl(typeUrlPrefix?: string): string;
515
+ }
516
+ namespace StatusReshare {
517
+ /** Properties of a Metadata. */
518
+ interface IMetadata {
519
+ /** Metadata duration */
520
+ duration?: (number|null);
521
+ /** Metadata channelJid */
522
+ channelJid?: (string|null);
523
+ /** Metadata channelMessageId */
524
+ channelMessageId?: (number|null);
525
+ /** Metadata hasMultipleReshares */
526
+ hasMultipleReshares?: (boolean|null);
527
+ }
528
+ /** Represents a Metadata. */
529
+ class Metadata implements IMetadata {
530
+ /**
531
+ * Constructs a new Metadata.
532
+ * @param [properties] Properties to set
533
+ */
534
+ constructor(properties?: StatusAttributions.StatusAttribution.StatusReshare.IMetadata);
535
+ /** Metadata duration. */
536
+ public duration?: (number|null);
537
+ /** Metadata channelJid. */
538
+ public channelJid?: (string|null);
539
+ /** Metadata channelMessageId. */
540
+ public channelMessageId?: (number|null);
541
+ /** Metadata hasMultipleReshares. */
542
+ public hasMultipleReshares?: (boolean|null);
543
+ /** Metadata _duration. */
544
+ public _duration?: "duration";
545
+ /** Metadata _channelJid. */
546
+ public _channelJid?: "channelJid";
547
+ /** Metadata _channelMessageId. */
548
+ public _channelMessageId?: "channelMessageId";
549
+ /** Metadata _hasMultipleReshares. */
550
+ public _hasMultipleReshares?: "hasMultipleReshares";
551
+ /**
552
+ * Creates a new Metadata instance using the specified properties.
553
+ * @param [properties] Properties to set
554
+ * @returns Metadata instance
555
+ */
556
+ public static create(properties?: StatusAttributions.StatusAttribution.StatusReshare.IMetadata): StatusAttributions.StatusAttribution.StatusReshare.Metadata;
557
+ /**
558
+ * Encodes the specified Metadata message. Does not implicitly {@link StatusAttributions.StatusAttribution.StatusReshare.Metadata.verify|verify} messages.
559
+ * @param message Metadata message or plain object to encode
560
+ * @param [writer] Writer to encode to
561
+ * @returns Writer
562
+ */
563
+ public static encode(message: StatusAttributions.StatusAttribution.StatusReshare.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
564
+ /**
565
+ * Encodes the specified Metadata message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.StatusReshare.Metadata.verify|verify} messages.
566
+ * @param message Metadata message or plain object to encode
567
+ * @param [writer] Writer to encode to
568
+ * @returns Writer
569
+ */
570
+ public static encodeDelimited(message: StatusAttributions.StatusAttribution.StatusReshare.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
571
+ /**
572
+ * Decodes a Metadata message from the specified reader or buffer.
573
+ * @param reader Reader or buffer to decode from
574
+ * @param [length] Message length if known beforehand
575
+ * @returns Metadata
576
+ * @throws {Error} If the payload is not a reader or valid buffer
577
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
578
+ */
579
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.StatusReshare.Metadata;
580
+ /**
581
+ * Decodes a Metadata message from the specified reader or buffer, length delimited.
582
+ * @param reader Reader or buffer to decode from
583
+ * @returns Metadata
584
+ * @throws {Error} If the payload is not a reader or valid buffer
585
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
586
+ */
587
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.StatusReshare.Metadata;
588
+ /**
589
+ * Verifies a Metadata message.
590
+ * @param message Plain object to verify
591
+ * @returns `null` if valid, otherwise the reason why it is not
592
+ */
593
+ public static verify(message: { [k: string]: any }): (string|null);
594
+ /**
595
+ * Creates a Metadata message from a plain object. Also converts values to their respective internal types.
596
+ * @param object Plain object
597
+ * @returns Metadata
598
+ */
599
+ public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.StatusReshare.Metadata;
600
+ /**
601
+ * Creates a plain object from a Metadata message. Also converts values to other types if specified.
602
+ * @param message Metadata
603
+ * @param [options] Conversion options
604
+ * @returns Plain object
605
+ */
606
+ public static toObject(message: StatusAttributions.StatusAttribution.StatusReshare.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
607
+ /**
608
+ * Converts this Metadata to JSON.
609
+ * @returns JSON object
610
+ */
611
+ public toJSON(): { [k: string]: any };
612
+ /**
613
+ * Gets the default type url for Metadata
614
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
615
+ * @returns The default type url
616
+ */
617
+ public static getTypeUrl(typeUrlPrefix?: string): string;
618
+ }
619
+ /** Source enum. */
620
+ enum Source {
621
+ UNKNOWN = 0,
622
+ INTERNAL_RESHARE = 1,
623
+ MENTION_RESHARE = 2,
624
+ CHANNEL_RESHARE = 3
625
+ }
626
+ }
627
+ /** Type enum. */
628
+ enum Type {
629
+ RESHARE = 0,
630
+ EXTERNAL_SHARE = 1,
631
+ MUSIC = 2,
632
+ STATUS_MENTION = 3,
633
+ GROUP_STATUS = 4
634
+ }
635
+ }
636
+ }